diff --git a/.gitattributes b/.gitattributes index 3b3b67e5690e0307486509eeadaaa20af1e22dfd..f35cf412ad9c51ac84195183ebf46b617dce652f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -68,3 +68,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text `/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYTxTm2V2.js.br filter=lfs diff=lfs merge=lfs -text `/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DNekb51P2.js.br filter=lfs diff=lfs merge=lfs -text `/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DR1dImtM2.js.br filter=lfs diff=lfs merge=lfs -text +`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/hf_xet.pyd filter=lfs diff=lfs merge=lfs -text diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/INSTALLER b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a1b589e38a32041e49332e5e81c2d363dc418d68 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/METADATA b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..8c0b3430505e31dfc906e7a35f6537d460f688ee --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/METADATA @@ -0,0 +1,284 @@ +Metadata-Version: 2.4 +Name: gradio +Version: 6.26.0 +Summary: Python library for easily interacting with trained machine learning models +Project-URL: Homepage, https://github.com/gradio-app/gradio +Author-email: Abubakar Abid , Ali Abid , Ali Abdalla , Dawood Khan , Ahsen Khaliq , Pete Allen , Ömer Faruk Özdemir , Freddy A Boulton , Hannah Blair +License-Expression: Apache-2.0 +License-File: LICENSE +Keywords: machine learning,reproducibility,visualization +Classifier: Development Status :: 5 - Production/Stable +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Topic :: Scientific/Engineering +Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence +Classifier: Topic :: Scientific/Engineering :: Visualization +Requires-Python: >=3.10 +Requires-Dist: anyio<5.0,>=3.0 +Requires-Dist: audioop-lts<=0.2.2; python_version >= '3.13' +Requires-Dist: brotli>=1.1.0 +Requires-Dist: fastapi<1.0,>=0.115.2 +Requires-Dist: gradio-client==2.6.1 +Requires-Dist: groovy~=0.1 +Requires-Dist: hf-gradio<1.0,>=0.4.1 +Requires-Dist: httpx<1.0,>=0.24.1 +Requires-Dist: huggingface-hub<2.0,>=1.16.0 +Requires-Dist: jinja2<4.0 +Requires-Dist: markupsafe<4.0,>=2.0 +Requires-Dist: numpy<3.0,>=1.0 +Requires-Dist: orjson~=3.0 +Requires-Dist: packaging +Requires-Dist: pandas<4.0,>=1.0 +Requires-Dist: pillow<13.0,>=8.0 +Requires-Dist: pydantic<=3.0,>=2.0 +Requires-Dist: pydub<1.0 +Requires-Dist: python-multipart<1.0,>=0.0.18 +Requires-Dist: pytz>=2017.2 +Requires-Dist: pyyaml<7.0,>=5.0 +Requires-Dist: safehttpx<0.2.0,>=0.1.7 +Requires-Dist: semantic-version~=2.0 +Requires-Dist: starlette<2.0,>=1.0.1 +Requires-Dist: tomlkit<0.15.0,>=0.12.0 +Requires-Dist: typer<1.0,>=0.12 +Requires-Dist: typing-extensions~=4.0 +Requires-Dist: uvicorn>=0.14.0 +Provides-Extra: mcp +Requires-Dist: mcp<2.0.0,>=1.21.0; extra == 'mcp' +Requires-Dist: pydantic<=2.12.5,>=2.11.10; extra == 'mcp' +Provides-Extra: oauth +Requires-Dist: authlib; extra == 'oauth' +Requires-Dist: itsdangerous; extra == 'oauth' +Description-Content-Type: text/markdown + + + +
+ +gradio + +
+ +
+ +Gradio 5.0 - the easiest way to build AI web apps | Product Hunt +gradio-app%2Fgradio | Trendshift + + +[![gradio-backend](https://github.com/gradio-app/gradio/actions/workflows/test-python.yml/badge.svg)](https://github.com/gradio-app/gradio/actions/workflows/test-python.yml) +[![gradio-ui](https://github.com/gradio-app/gradio/actions/workflows/tests-js.yml/badge.svg)](https://github.com/gradio-app/gradio/actions/workflows/tests-js.yml) +[![PyPI](https://img.shields.io/pypi/v/gradio)](https://pypi.org/project/gradio/) +[![PyPI downloads](https://img.shields.io/pypi/dm/gradio)](https://pypi.org/project/gradio/) +![Python version](https://img.shields.io/badge/python-3.10+-important) +[![Twitter follow](https://img.shields.io/twitter/follow/gradio?style=social&label=follow)](https://twitter.com/gradio) + +[Website](https://gradio.app) +| [Documentation](https://gradio.app/docs/) +| [Guides](https://gradio.app/guides/) +| [Getting Started](https://gradio.app/getting_started/) +| [Examples](demo/) + +
+ +
+ +English | [中文](https://raw.githubusercontent.com/gradio-app/gradio/main/readme_files/zh-cn#readme) + +
+ +# Gradio: Build Machine Learning Web Apps — in Python + + + +Gradio is an open-source Python package that allows you to quickly **build** a demo or web application for your machine learning model, API, or any arbitrary Python function. You can then **share** a link to your demo or web application in just a few seconds using Gradio's built-in sharing features. *No JavaScript, CSS, or web hosting experience needed!* + + + +It just takes a few lines of Python to create your own demo, so let's get started 💫 + + +### Installation + +**Prerequisite**: Gradio requires [Python 3.10 or higher](https://www.python.org/downloads/). + + +We recommend installing Gradio using `pip`, which is included by default in Python. Run this in your terminal or command prompt: + +```bash +pip install --upgrade gradio +``` + + +> [!TIP] + > It is best to install Gradio in a virtual environment. Detailed installation instructions for all common operating systems are provided here. + +### Building Your First Demo + +You can run Gradio in your favorite code editor, Jupyter notebook, Google Colab, or anywhere else you write Python. Let's write your first Gradio app: + + +```python +import gradio as gr + +def greet(name, intensity): + return "Hello, " + name + "!" * int(intensity) + +demo = gr.Interface( + fn=greet, + inputs=["text", "slider"], + outputs=["text"], + api_name="predict" +) + +demo.launch() +``` + + + +> [!TIP] + > We shorten the imported name from gradio to gr. This is a widely adopted convention for better readability of code. + +Now, run your code. If you've written the Python code in a file named `app.py`, then you would run `python app.py` from the terminal. + +The demo below will open in a browser on [http://localhost:7860](http://localhost:7860) if running from a file. If you are running within a notebook, the demo will appear embedded within the notebook. + +![`hello_world_4` demo](https://raw.githubusercontent.com/gradio-app/gradio/main/demo/hello_world_4/screenshot.gif) + +Type your name in the textbox on the left, drag the slider, and then press the Submit button. You should see a friendly greeting on the right. + +> [!TIP] + > When developing locally, you can run your Gradio app in hot reload mode, which automatically reloads the Gradio app whenever you make changes to the file. To do this, simply type in gradio before the name of the file instead of python. In the example above, you would type: `gradio app.py` in your terminal. You can also enable vibe mode by using the --vibe flag, e.g. gradio --vibe app.py, which provides an in-browser chat that can be used to write or edit your Gradio app using natural language. Learn more in the Hot Reloading Guide. + + +**Understanding the `Interface` Class** + +You'll notice that in order to make your first demo, you created an instance of the `gr.Interface` class. The `Interface` class is designed to create demos for machine learning models which accept one or more inputs, and return one or more outputs. + +The `Interface` class has three core arguments: + +- `fn`: the function to wrap a user interface (UI) around +- `inputs`: the Gradio component(s) to use for the input. The number of components should match the number of arguments in your function. +- `outputs`: the Gradio component(s) to use for the output. The number of components should match the number of return values from your function. + +The `fn` argument is very flexible -- you can pass *any* Python function that you want to wrap with a UI. In the example above, we saw a relatively simple function, but the function could be anything from a music generator to a tax calculator to the prediction function of a pretrained machine learning model. + +The `inputs` and `outputs` arguments take one or more Gradio components. As we'll see, Gradio includes more than [30 built-in components](https://www.gradio.app/docs/gradio/introduction) (such as the `gr.Textbox()`, `gr.Image()`, and `gr.HTML()` components) that are designed for machine learning applications. + +> [!TIP] + > For the `inputs` and `outputs` arguments, you can pass in the name of these components as a string (`"textbox"`) or an instance of the class (`gr.Textbox()`). + +If your function accepts more than one argument, as is the case above, pass a list of input components to `inputs`, with each input component corresponding to one of the arguments of the function, in order. The same holds true if your function returns more than one value: simply pass in a list of components to `outputs`. This flexibility makes the `Interface` class a very powerful way to create demos. + +We'll dive deeper into the `gr.Interface` on our series on [building Interfaces](https://www.gradio.app/main/guides/the-interface-class). + +### Sharing Your Demo + +What good is a beautiful demo if you can't share it? Gradio lets you easily share a machine learning demo without having to worry about the hassle of hosting on a web server. Simply set `share=True` in `launch()`, and a publicly accessible URL will be created for your demo. Let's revisit our example demo, but change the last line as follows: + +```python +import gradio as gr + +def greet(name): + return "Hello " + name + "!" + +demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox") + +demo.launch(share=True) # Share your demo with just 1 extra parameter 🚀 +``` + +When you run this code, a public URL will be generated for your demo in a matter of seconds, something like: + +👉   `https://a23dsf231adb.gradio.live` + +Now, anyone around the world can try your Gradio demo from their browser, while the machine learning model and all computation continues to run locally on your computer. + +To learn more about sharing your demo, read our dedicated guide on [sharing your Gradio application](https://www.gradio.app/guides/sharing-your-app). + + +### An Overview of Gradio + +So far, we've been discussing the `Interface` class, which is a high-level class that lets you build demos quickly with Gradio. But what else does Gradio include? + +#### Custom Demos with `gr.Blocks` + +Gradio offers a low-level approach for designing web apps with more customizable layouts and data flows with the `gr.Blocks` class. Blocks supports things like controlling where components appear on the page, handling multiple data flows and more complex interactions (e.g. outputs can serve as inputs to other functions), and updating properties/visibility of components based on user interaction — still all in Python. + +You can build very custom and complex applications using `gr.Blocks()`. For example, the popular image generation [Automatic1111 Web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) is built using Gradio Blocks. We dive deeper into the `gr.Blocks` on our series on [building with Blocks](https://www.gradio.app/guides/blocks-and-event-listeners). + +#### Chatbots with `gr.ChatInterface` + +Gradio includes another high-level class, `gr.ChatInterface`, which is specifically designed to create Chatbot UIs. Similar to `Interface`, you supply a function and Gradio creates a fully working Chatbot UI. If you're interested in creating a chatbot, you can jump straight to [our dedicated guide on `gr.ChatInterface`](https://www.gradio.app/guides/creating-a-chatbot-fast). + +#### The Gradio Python & JavaScript Ecosystem + +That's the gist of the core `gradio` Python library, but Gradio is actually so much more! It's an entire ecosystem of Python and JavaScript libraries that let you build machine learning applications, or query them programmatically, in Python or JavaScript. Here are other related parts of the Gradio ecosystem: + +* [Gradio Python Client](https://www.gradio.app/guides/getting-started-with-the-python-client) (`gradio_client`): query any Gradio app programmatically in Python. +* [Gradio JavaScript Client](https://www.gradio.app/guides/getting-started-with-the-js-client) (`@gradio/client`): query any Gradio app programmatically in JavaScript. +* [Hugging Face Spaces](https://huggingface.co/spaces): the most popular place to host Gradio applications — for free! +* [Server mode](https://www.gradio.app/guides/server-mode) (`gradio.Server`): build a custom frontend with Gradio's backend — queue, streaming, MCP, ZeroGPU, and Spaces hosting included. + +### What's Next? + +Keep learning about Gradio sequentially using the Gradio Guides, which include explanations as well as example code and embedded interactive demos. Next up: [let's dive deeper into the Interface class](https://www.gradio.app/guides/the-interface-class). + +Or, if you already know the basics and are looking for something specific, you can search the more [technical API documentation](https://www.gradio.app/docs/). + + +### AI Coding Skills + +Gradio provides a "skill" that enriches AI coding assistants (like Cursor, Claude Code, Codex, etc.) with Gradio-specific knowledge, so that they can build Gradio apps more effectively. This is especially useful when creating custom Gradio components or styling. Install the Gradio skill for your coding assistant with a single command: + +```bash +gradio skills add --cursor # or --claude, --codex, --opencode +``` + +Use `--global` to install at the user level (applies to all projects). Your skill will be automatically available for the particular coding agent. + +You can also install a skill for a **specific Gradio Space**, which generates API usage docs (Python, JS, cURL) on the fly: + +```bash +gradio skills add abidlabs/en2fr --cursor +``` + +## Questions? + +If you'd like to report a bug or have a feature request, please create an [issue on GitHub](https://github.com/gradio-app/gradio/issues/new/choose). For general questions about usage, we are available on [our Discord server](https://discord.com/invite/feTf9x3ZSB) and happy to help. + +If you like Gradio, please leave us a ⭐ on GitHub! + +## Open Source Stack + +Gradio is built on top of many wonderful open-source libraries! + +[huggingface](https://huggingface.co) +[python](https://www.python.org) +[fastapi](https://fastapi.tiangolo.com) +[encode](https://www.encode.io) +[svelte](https://svelte.dev) +[vite](https://vitejs.dev) +[pnpm](https://pnpm.io) +[tailwind](https://tailwindcss.com) +[storybook](https://storybook.js.org/) +[chromatic](https://www.chromatic.com/) + +## License + +Gradio is licensed under the Apache License 2.0 found in the [LICENSE](LICENSE) file in the root directory of this repository. + +## Citation + +Also check out the paper _[Gradio: Hassle-Free Sharing and Testing of ML Models in the Wild](https://arxiv.org/abs/1906.02569), ICML HILL 2019_, and please cite it if you use Gradio in your work. + +``` +@article{abid2019gradio, + title = {Gradio: Hassle-Free Sharing and Testing of ML Models in the Wild}, + author = {Abid, Abubakar and Abdalla, Ali and Abid, Ali and Khan, Dawood and Alfozan, Abdulrahman and Zou, James}, + journal = {arXiv preprint arXiv:1906.02569}, + year = {2019}, +} +``` diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/RECORD b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..f8116097b7926325691aa80dbb8baea032e4f5c2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/RECORD @@ -0,0 +1,2566 @@ +../../Scripts/gradio.exe,sha256=w6CO0DbLI1rb_P1ABIv9ftX6W9UzN0i-zQ0C0iMhZSE,108368 +../../Scripts/upload_theme.exe,sha256=Bf7fkZZfsqeYD3baGb2lSGGAMCGsSkFdRmQnrDnxukQ,108386 +gradio-6.26.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +gradio-6.26.0.dist-info/METADATA,sha256=a5-e-9QNOK20lyMbmvRkDQlv9lJ5qFw40Ra_bsWRveY,17045 +gradio-6.26.0.dist-info/RECORD,, +gradio-6.26.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio-6.26.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87 +gradio-6.26.0.dist-info/entry_points.txt,sha256=1XW1nK_lUq93N9mkj5E6Z_YXfouT_l7v-25wf6HzkFE,89 +gradio-6.26.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357 +gradio/.dockerignore,sha256=yqqbJvPhtVNTTvla3dhpqUgRO5OFeneITtoSg70NFdY,43 +gradio/CHANGELOG.md,sha256=4GXocG3WI1cPqHH5j9svPv_8DmFl0bb3Cki4ShP1sYU,834085 +gradio/__init__.py,sha256=6ga_SwXAKgnPnS10qdEcRDdX0Q6gQ9a0XGgVvHHF1Vw,5420 +gradio/__main__.py,sha256=uWOD_InlMpggpGv4R2ayVvQ7bPZjGkONwMSYOddxBfU,65 +gradio/__pycache__/__init__.cpython-311.pyc,, +gradio/__pycache__/__main__.cpython-311.pyc,, +gradio/__pycache__/analytics.cpython-311.pyc,, +gradio/__pycache__/block_function.cpython-311.pyc,, +gradio/__pycache__/blocks.cpython-311.pyc,, +gradio/__pycache__/blocks_events.cpython-311.pyc,, +gradio/__pycache__/brotli_middleware.cpython-311.pyc,, +gradio/__pycache__/caching.cpython-311.pyc,, +gradio/__pycache__/chat_interface.cpython-311.pyc,, +gradio/__pycache__/component_meta.cpython-311.pyc,, +gradio/__pycache__/context.cpython-311.pyc,, +gradio/__pycache__/data_classes.cpython-311.pyc,, +gradio/__pycache__/events.cpython-311.pyc,, +gradio/__pycache__/exceptions.cpython-311.pyc,, +gradio/__pycache__/external.cpython-311.pyc,, +gradio/__pycache__/external_utils.cpython-311.pyc,, +gradio/__pycache__/flagging.cpython-311.pyc,, +gradio/__pycache__/helpers.cpython-311.pyc,, +gradio/__pycache__/http_server.cpython-311.pyc,, +gradio/__pycache__/i18n.cpython-311.pyc,, +gradio/__pycache__/image_utils.cpython-311.pyc,, +gradio/__pycache__/interface.cpython-311.pyc,, +gradio/__pycache__/ipython_ext.cpython-311.pyc,, +gradio/__pycache__/mcp.cpython-311.pyc,, +gradio/__pycache__/media.cpython-311.pyc,, +gradio/__pycache__/monitoring_dashboard.cpython-311.pyc,, +gradio/__pycache__/networking.cpython-311.pyc,, +gradio/__pycache__/node_server.cpython-311.pyc,, +gradio/__pycache__/oauth.cpython-311.pyc,, +gradio/__pycache__/pipelines.cpython-311.pyc,, +gradio/__pycache__/pipelines_utils.cpython-311.pyc,, +gradio/__pycache__/processing_utils.cpython-311.pyc,, +gradio/__pycache__/profiling.cpython-311.pyc,, +gradio/__pycache__/queueing.cpython-311.pyc,, +gradio/__pycache__/ranged_response.cpython-311.pyc,, +gradio/__pycache__/renderable.cpython-311.pyc,, +gradio/__pycache__/route_utils.cpython-311.pyc,, +gradio/__pycache__/routes.cpython-311.pyc,, +gradio/__pycache__/screen_recording_utils.cpython-311.pyc,, +gradio/__pycache__/server.cpython-311.pyc,, +gradio/__pycache__/server_messages.cpython-311.pyc,, +gradio/__pycache__/state_holder.cpython-311.pyc,, +gradio/__pycache__/static_server.cpython-311.pyc,, +gradio/__pycache__/templates.cpython-311.pyc,, +gradio/__pycache__/tunneling.cpython-311.pyc,, +gradio/__pycache__/utils.cpython-311.pyc,, +gradio/__pycache__/validators.cpython-311.pyc,, +gradio/__pycache__/workflow.cpython-311.pyc,, +gradio/__pycache__/workflow_api.cpython-311.pyc,, +gradio/_simple_templates/__init__.py,sha256=Gch9wDUHBu3eMMRKYdGrkLTJuqckvLSMT6tbsNs8Z2M,183 +gradio/_simple_templates/__pycache__/__init__.cpython-311.pyc,, +gradio/_simple_templates/__pycache__/simpledropdown.cpython-311.pyc,, +gradio/_simple_templates/__pycache__/simpleimage.cpython-311.pyc,, +gradio/_simple_templates/__pycache__/simpletextbox.cpython-311.pyc,, +gradio/_simple_templates/simpledropdown.py,sha256=uVXSU_KeEJ9TiRj5HqIWMHVfq2StUMjjxJ5OL4YKg90,7052 +gradio/_simple_templates/simpleimage.py,sha256=ZoUzVJTRe4sGAJbediA4_dF8TNWZK1LpHV6LBFRkBhg,6332 +gradio/_simple_templates/simpletextbox.py,sha256=3QstlITk2MdrDLnI8H4GKAfuW7Kk0Fp7dDFXhSd5QP0,5856 +gradio/_vendor/__init__.py,sha256=OaM_LiqfHO5Jl7RSxm5vz81nXziNs05cmG316v-z3YM,63 +gradio/_vendor/__pycache__/__init__.cpython-311.pyc,, +gradio/_vendor/aiofiles/__init__.py,sha256=DYqUwak6MVosBjbAsgyEnFFP-HUZCG5h7X4owoeyYHw,345 +gradio/_vendor/aiofiles/__pycache__/__init__.cpython-311.pyc,, +gradio/_vendor/aiofiles/__pycache__/base.cpython-311.pyc,, +gradio/_vendor/aiofiles/__pycache__/os.cpython-311.pyc,, +gradio/_vendor/aiofiles/__pycache__/ospath.cpython-311.pyc,, +gradio/_vendor/aiofiles/base.py,sha256=5dj79_O4TnO3S-dIknxkZeEJApqQSpjxb7--zvjQF78,1785 +gradio/_vendor/aiofiles/os.py,sha256=0DrsG-eH4h7xRzglv9pIWsQuzqe7ZhVYw5FQS18fIys,1153 +gradio/_vendor/aiofiles/ospath.py,sha256=WaYelz_k6ykAFRLStr4bqYIfCVQ-5GGzIqIizykbY2Q,794 +gradio/_vendor/aiofiles/tempfile/__init__.py,sha256=7QUdrTcMqrF4B_UAjhd6NyB87EYw6rOURSKkdOyMPio,10236 +gradio/_vendor/aiofiles/tempfile/__pycache__/__init__.cpython-311.pyc,, +gradio/_vendor/aiofiles/tempfile/__pycache__/temptypes.cpython-311.pyc,, +gradio/_vendor/aiofiles/tempfile/temptypes.py,sha256=jrNZ4NyLZeQ1yNj4JWYpWNA3xbImYfdu1J823Rpbmg0,2095 +gradio/_vendor/aiofiles/threadpool/__init__.py,sha256=7xvphtoYF6nvrBSMq7dQqYXz1JJAVjWk3JVaV_S7_P4,3126 +gradio/_vendor/aiofiles/threadpool/__pycache__/__init__.cpython-311.pyc,, +gradio/_vendor/aiofiles/threadpool/__pycache__/binary.cpython-311.pyc,, +gradio/_vendor/aiofiles/threadpool/__pycache__/text.cpython-311.pyc,, +gradio/_vendor/aiofiles/threadpool/__pycache__/utils.cpython-311.pyc,, +gradio/_vendor/aiofiles/threadpool/binary.py,sha256=hp-km9VCRu0MLz_wAEUfbCz7OL7xtn9iGAawabpnp5U,2315 +gradio/_vendor/aiofiles/threadpool/text.py,sha256=fNmpw2PEkj0BZSldipJXAgZqVGLxALcfOMiuDQ54Eas,1223 +gradio/_vendor/aiofiles/threadpool/utils.py,sha256=B59dSZwO_WZs2dFFycKeA91iD2Xq2nNw1EFF8YMBI5k,1868 +gradio/_vendor/ffmpy/__init__.py,sha256=V35dif9q5U16VDP-fYVaJBpxtL6OfVP5tFGw3O1nQTo,158 +gradio/_vendor/ffmpy/__pycache__/__init__.cpython-311.pyc,, +gradio/_vendor/ffmpy/__pycache__/ffmpy.cpython-311.pyc,, +gradio/_vendor/ffmpy/ffmpy.py,sha256=uuk69YdtMd7n6yE3F_Q6qqVHiFXJC5n1ZNLzJ3NbvNM,10101 +gradio/_vendor/ffmpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/_vendor/licenses/aiofiles.LICENSE,sha256=y16Ofl9KOYjhBjwULGDcLfdWBfTEZRXnduOspt-XbhQ,11325 +gradio/_vendor/licenses/aiofiles.NOTICE,sha256=EExY0dRQvWR0wJ2LZLwBgnM6YKw9jCU-M0zegpRSD_E,55 +gradio/_vendor/licenses/ffmpy.LICENSE,sha256=KRY28xdaqWSpx6ZdI_f-KMVBV7HfB2s7uQajuhVLsn4,1059 +gradio/_workflow_curated_snapshot.json,sha256=_0scOM4mfDi5C7lHUDlh7HqJM9C6Y64h3F5yyj8djjQ,10824 +gradio/analytics.py,sha256=fSFTi_KIn24egy9KpOavMKxW6whMEixmruUKlsbPoqU,7806 +gradio/block_function.py,sha256=el-fa5NCyIG-7YEQ5ulzSbpjo4EdJ39ZmAmjXz32NQ0,6817 +gradio/blocks.py,sha256=UIFuQmw5Li8f8ttDMcdg0MFvsYzUNJGrDtH6l6yH-GQ,173246 +gradio/blocks_events.py,sha256=K7qyl6qji8_e4eV5PbbOUmOWNlBWnPLaZIx45bFZP5E,911 +gradio/brotli_middleware.py,sha256=cwpp_kX_oye4bWqUfuIG557sC8ogy7vVn0A22k-4H5Y,8782 +gradio/caching.py,sha256=aiqX_Wjxb7_a2cgtX_VPgp2v25y04j72ePyXUmxgufs,20615 +gradio/chat_interface.py,sha256=8odrzO-OSizZtSH8E4h_6Bf-66GZZXKCnXbNDdzLOw8,52653 +gradio/cli/__init__.py,sha256=LCZZt6fpSgLtZAfmLowkyuIdEEWEeTBgZOCaAYeWDwI,135 +gradio/cli/__pycache__/__init__.cpython-311.pyc,, +gradio/cli/__pycache__/cli.cpython-311.pyc,, +gradio/cli/cli.py,sha256=T-rzjEL8M1y8Gbm5ZfTk8lXG7ktHlNMcxPqklHewtSQ,2642 +gradio/cli/commands/__init__.py,sha256=sCCmnvr2bEfYy5I3Gtwj0S66_laHooJxLxmrHDyUfys,580 +gradio/cli/commands/__pycache__/__init__.cpython-311.pyc,, +gradio/cli/commands/__pycache__/cli_env_info.cpython-311.pyc,, +gradio/cli/commands/__pycache__/deploy_space.cpython-311.pyc,, +gradio/cli/commands/__pycache__/display.cpython-311.pyc,, +gradio/cli/commands/__pycache__/hf_login.cpython-311.pyc,, +gradio/cli/commands/__pycache__/load.cpython-311.pyc,, +gradio/cli/commands/__pycache__/load_chat.cpython-311.pyc,, +gradio/cli/commands/__pycache__/reload.cpython-311.pyc,, +gradio/cli/commands/__pycache__/sketch.cpython-311.pyc,, +gradio/cli/commands/__pycache__/skills.cpython-311.pyc,, +gradio/cli/commands/__pycache__/upload_mcp.cpython-311.pyc,, +gradio/cli/commands/__pycache__/utils.cpython-311.pyc,, +gradio/cli/commands/cli_env_info.py,sha256=9FPHcCAP07BUSztYnR6KTqeVZ5qkJ6v3yKadUDZusy0,1544 +gradio/cli/commands/components/__init__.py,sha256=jArxVms_ZS6eug_h3jSt4pbNpU0XFAAkZ_qbrA9Xrk8,40 +gradio/cli/commands/components/__pycache__/__init__.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/_create_utils.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/_docs_assets.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/_docs_utils.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/app.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/build.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/create.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/dev.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/docs.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/install_component.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/publish.cpython-311.pyc,, +gradio/cli/commands/components/__pycache__/show.cpython-311.pyc,, +gradio/cli/commands/components/_create_utils.py,sha256=w9rrWBjzYrvm9yTE0T5odldhdJV2O-rMrrvCshrgMAs,14787 +gradio/cli/commands/components/_docs_assets.py,sha256=Kp3uZ5KPczZAykGilW-KSomI5ltXFWWsfvSOahF-kXY,2556 +gradio/cli/commands/components/_docs_utils.py,sha256=cOSMhVVFjpoY6a_07qzhZu4GxLfBg9csnAaAdEr6CF8,27881 +gradio/cli/commands/components/app.py,sha256=EPduChTv9dnpzi0Ru7K-CdRFME7TnFBjT0T2NhwGWps,910 +gradio/cli/commands/components/build.py,sha256=rUYif5N3dhaGg7j6VbVzk445HNS9-D1X3g-6tFePW44,6808 +gradio/cli/commands/components/create.py,sha256=01f0g7yH4rejCTeHXBDdWCl0Tz29RVFLBq5v5MuIP1o,7800 +gradio/cli/commands/components/dev.py,sha256=369VLh0z2x96ddVSkHT9u0zg3p4l8IO8f-Kz8wBT7AE,4061 +gradio/cli/commands/components/docs.py,sha256=_QBQq1_vYwdikYRq8J7YQ4JBBctY-RjWOGbXIHTAHf4,7133 +gradio/cli/commands/components/files/README.md,sha256=H2sQSrGi_n65JlmkMsz2KYWJT4Wyn2EwEQOSvyFZzeM,352 +gradio/cli/commands/components/files/gitignore,sha256=PpQhmvGKrGI5Mt5YbNvGKjVW0LD6SoiTDXQ59dOOhI4,124 +gradio/cli/commands/components/files/gradio.config.js,sha256=a2pxGcUNNaW5sWifOFr9tTpVQaY1Ecbdm0_7S7RUiw0,110 +gradio/cli/commands/components/files/pyproject_.toml,sha256=VsJBiCSeWedjFh6fbL4VTDwy7XC4Ct0i3GpEU-zC_K4,1727 +gradio/cli/commands/components/files/tsconfig.json,sha256=DtuyCD1JyJMtsjU7bf7KVc3-Es2sjKrvHVxBoRBCNUw,321 +gradio/cli/commands/components/install_component.py,sha256=DPyOv3ZVqksDmcba9Ds7X2EPGde0wvYsGnnfcclsQsE,6619 +gradio/cli/commands/components/publish.py,sha256=ziNgDmP0_AMDzXuEImSh79oxaW1cB1uT4HY4jiV6vJM,11671 +gradio/cli/commands/components/show.py,sha256=MKx04ZPuwxMzKo8H26ZjvIFy8R2G-dceAwuH0Ms0uCs,2241 +gradio/cli/commands/deploy_space.py,sha256=iRVbWMGNvNWZTorkhc8639YHNjZsxqvwsg_l2PWCIQY,11012 +gradio/cli/commands/deploy_space_action.yaml,sha256=H8fTuoaAsRaGwjBgM_q81NgW8NTHCNdXw4nhOVYNifg,541 +gradio/cli/commands/display.py,sha256=Qjj3q_6Hxvo_NEIYYvWMgxOY8xaq5dkAtB7mQp202Xs,845 +gradio/cli/commands/hf_login.py,sha256=imuqi-EKcKdERGA9zzU3GDzFPW7Ivl77p2lBa5eaJKo,1693 +gradio/cli/commands/load.py,sha256=VsbB23fndVWu3OFITdaTpB46uqwlcCgVTCkjkreR1JQ,260 +gradio/cli/commands/load_chat.py,sha256=e08iIu6qpL7uAstHeIufxS-DCyTNjPb00MfJlhlZ66k,1798 +gradio/cli/commands/reload.py,sha256=v4QcAWnA1qDL_vgSXzxfnQTopzkm2kstb96C2lfomBE,4782 +gradio/cli/commands/sketch.py,sha256=6YYFGCmBrrpp6TVuSJX46RnaVJ_Ww1IJvjM4cnU25iE,269 +gradio/cli/commands/skills.py,sha256=XUH_WyYnpZuYUTex-bmkTXDYJcReImKlPn74xuKyJ-w,14039 +gradio/cli/commands/upload_mcp.py,sha256=3pd6nKXa5TIEF91bi-ZR35YeygvxyQBrMlrxHTH1XdY,1395 +gradio/cli/commands/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/component_meta.py,sha256=NG8wLx0x_7Pkg5smEfsznPNcbBL7-3MBTTAwJ9ermOQ,12898 +gradio/components/__init__.py,sha256=77wR_gmJpmp7sNPTlxHjb1j9WnSPLl_oIPowVbYGlag,3953 +gradio/components/__pycache__/__init__.cpython-311.pyc,, +gradio/components/__pycache__/annotated_image.cpython-311.pyc,, +gradio/components/__pycache__/api_component.cpython-311.pyc,, +gradio/components/__pycache__/audio.cpython-311.pyc,, +gradio/components/__pycache__/base.cpython-311.pyc,, +gradio/components/__pycache__/browser_state.cpython-311.pyc,, +gradio/components/__pycache__/button.cpython-311.pyc,, +gradio/components/__pycache__/chatbot.cpython-311.pyc,, +gradio/components/__pycache__/checkbox.cpython-311.pyc,, +gradio/components/__pycache__/checkboxgroup.cpython-311.pyc,, +gradio/components/__pycache__/clear_button.cpython-311.pyc,, +gradio/components/__pycache__/code.cpython-311.pyc,, +gradio/components/__pycache__/color_picker.cpython-311.pyc,, +gradio/components/__pycache__/dataframe.cpython-311.pyc,, +gradio/components/__pycache__/dataset.cpython-311.pyc,, +gradio/components/__pycache__/datetime.cpython-311.pyc,, +gradio/components/__pycache__/deep_link_button.cpython-311.pyc,, +gradio/components/__pycache__/dialogue.cpython-311.pyc,, +gradio/components/__pycache__/download_button.cpython-311.pyc,, +gradio/components/__pycache__/dropdown.cpython-311.pyc,, +gradio/components/__pycache__/duplicate_button.cpython-311.pyc,, +gradio/components/__pycache__/fallback.cpython-311.pyc,, +gradio/components/__pycache__/file.cpython-311.pyc,, +gradio/components/__pycache__/file_explorer.cpython-311.pyc,, +gradio/components/__pycache__/gallery.cpython-311.pyc,, +gradio/components/__pycache__/highlighted_text.cpython-311.pyc,, +gradio/components/__pycache__/html.cpython-311.pyc,, +gradio/components/__pycache__/image.cpython-311.pyc,, +gradio/components/__pycache__/image_editor.cpython-311.pyc,, +gradio/components/__pycache__/imageslider.cpython-311.pyc,, +gradio/components/__pycache__/json_component.cpython-311.pyc,, +gradio/components/__pycache__/label.cpython-311.pyc,, +gradio/components/__pycache__/login_button.cpython-311.pyc,, +gradio/components/__pycache__/markdown.cpython-311.pyc,, +gradio/components/__pycache__/model3d.cpython-311.pyc,, +gradio/components/__pycache__/multimodal_textbox.cpython-311.pyc,, +gradio/components/__pycache__/native_plot.cpython-311.pyc,, +gradio/components/__pycache__/navbar.cpython-311.pyc,, +gradio/components/__pycache__/number.cpython-311.pyc,, +gradio/components/__pycache__/paramviewer.cpython-311.pyc,, +gradio/components/__pycache__/plot.cpython-311.pyc,, +gradio/components/__pycache__/radio.cpython-311.pyc,, +gradio/components/__pycache__/slider.cpython-311.pyc,, +gradio/components/__pycache__/state.cpython-311.pyc,, +gradio/components/__pycache__/textbox.cpython-311.pyc,, +gradio/components/__pycache__/timer.cpython-311.pyc,, +gradio/components/__pycache__/upload_button.cpython-311.pyc,, +gradio/components/__pycache__/video.cpython-311.pyc,, +gradio/components/__pycache__/workflowcanvas.cpython-311.pyc,, +gradio/components/annotated_image.py,sha256=gd_gYVPwSaRLkzAj7Y6nPLKsFzFQXlu2jwTkI_DVcAA,12864 +gradio/components/api_component.py,sha256=MNHEHL1Y8X3q9qzdW8H3Me6CWGZLG6BZU3azJvsG2Fo,1150 +gradio/components/audio.py,sha256=VqIshgvSvpy60wer_UJknK58V96tBIBjsbbrMzx7MbM,23928 +gradio/components/base.py,sha256=4_gVuiy0abOU5jDwv-a5f4xKV8aY1DbClnoE0u53L4c,16656 +gradio/components/browser_state.py,sha256=8Zu3gh2cbrfqRQGTSw16lBI-mi_As668C1hHQrvKZvE,2958 +gradio/components/button.py,sha256=j4S7ho9EIpP6Bcjrue2uk46IrLBRnYGxtfEPq1BouFY,6102 +gradio/components/chatbot.py,sha256=1t0NTBWG2Cpf3rY0KKxveM4quV2AcOkbMmcI9dPoVpE,37378 +gradio/components/checkbox.py,sha256=MiLSanc59300C7lMF96VslGXVx4CYGVe3KGdQyyJM9w,6510 +gradio/components/checkboxgroup.py,sha256=XtIlhZ4vrLI1N_5zlQebid5z43PeCoUIWNLy91VXPSw,9282 +gradio/components/clear_button.py,sha256=2Hmg4nqIZ73wpDDBoWvxN4ukz6NBInTE6NWJzVX3KqM,8322 +gradio/components/code.py,sha256=Kd9eVtHii_Lb3yz9RGi2s1ql5aGHvbRNRQhq_tUjLyM,9253 +gradio/components/color_picker.py,sha256=uE8oYvjvI58qSt4VEspwR2ssfoAlKXS3L3bnDagoAMg,6222 +gradio/components/custom_html_components/__pycache__/audio_gallery.cpython-311.pyc,, +gradio/components/custom_html_components/__pycache__/colored_checkbox_group.cpython-311.pyc,, +gradio/components/custom_html_components/audio_gallery.py,sha256=C85-U8eh0mzPJRgzLBSnUygZsLdXarXcYi_Q6hRk73s,6944 +gradio/components/custom_html_components/colored_checkbox_group.py,sha256=HqZl9R_8KZGHdwR3yHqXBZiXPphBbqFIpSfcVmzQRuY,3964 +gradio/components/dataframe.py,sha256=_ztjznqmBljE2Lf0ECCZvVvJg5MIyHvByZuAm_YIhSE,30719 +gradio/components/dataset.py,sha256=tUNXYQ75jaJDfnHDef9DJ8J-5uRCkxujFxnfIi7KlbQ,10749 +gradio/components/datetime.py,sha256=56gzTKcBTQA893jAF9qyYwULtOKwyNQfB0bzgdicDNM,8394 +gradio/components/deep_link_button.py,sha256=6cfrKCSRfop7FgRB6fC36JJu6UWSnwYOwyWRqZsn1eg,4667 +gradio/components/dialogue.py,sha256=FMKziFpg9nIVbg2AMTzdirye0SllgvHKjvxh_R0xIx4,13148 +gradio/components/download_button.py,sha256=bFfmYg4b7qWYL4wafrAQoNgRmNIWq8VTMfm0zN1y-NY,6125 +gradio/components/dropdown.py,sha256=dQzgsf3aUprO3OUmHaSt3EC3YBHkVTU4cj44dFaR-c4,12524 +gradio/components/duplicate_button.py,sha256=CEVNGW5LqT0LnIK1lcK9825RTENAqxkXvfoN86oihcE,5456 +gradio/components/fallback.py,sha256=qEa0H93m1ViVoGp5-LoSOWzE_BGux42T_BPN3a13AE8,1057 +gradio/components/file.py,sha256=fGsJpHAlLB6nzRRN2z0z8plsO6yDJmDK-audd2Ag2Bw,12844 +gradio/components/file_explorer.py,sha256=vWlLMl_x0zMQepsqZcZabvv3k1KIom1eFaGPpUb6uzU,12008 +gradio/components/gallery.py,sha256=kqK4npSaGuIdUvio-OS8S9MFSZxnHX9SFJ_nKl4k2ac,17445 +gradio/components/highlighted_text.py,sha256=_0Jv5gRB_Z4qLqSGDNM2kBtr0pLTftRlewkgge4AbP8,11997 +gradio/components/html.py,sha256=uOsEsKcJYqdRvhCgOdqKkVxs4tUEODP0mDQJRcMNRHg,21330 +gradio/components/image.py,sha256=Bk614-3f4IBvvylTkwF4tLUT6tIFqnO_iLBjTh3sKx8,14120 +gradio/components/image_editor.py,sha256=dwbEKUFFytpWlHqoL3PXtRr_saj2KW_kQkBADlL0kps,25649 +gradio/components/imageslider.py,sha256=d19FmaOuj3PU2GRREUnJlzthnhBPb6bjwRUJRPswSKk,12280 +gradio/components/json_component.py,sha256=UixWPcNOMvLlu48ppRbF9ZfyWCpqqAlJvXSlcgODP7k,8954 +gradio/components/label.py,sha256=y6AIPjac2NQf10PMGjQmWr-8MeWorGHBlwaO7zwUf9A,9501 +gradio/components/login_button.py,sha256=kKy4d816hRepdbx7S5jdP3KkkIuiyWbmJzcSNPfHE04,5054 +gradio/components/markdown.py,sha256=tNwshgKNk0GkXGMq3iSufA9ql695QzcMX_D5lun5K7Q,9165 +gradio/components/model3d.py,sha256=FZMopA6Ng--IR38jgAhMoFt8N5bR-vJKUjldCgtTlhA,9096 +gradio/components/multimodal_textbox.py,sha256=mrxoD8iWEQS0tL8eEUTGFOc3kV7HY3NFFqgIr6HSUq4,13948 +gradio/components/native_plot.py,sha256=ZpvjFpyRvoG-w1EsH47o4i5yhS7y5Jol91RF9PK30JE,13445 +gradio/components/navbar.py,sha256=xX7iWr_FUn7Av8G_5uLf1UuvayeKkXLY9WTsRUypiwU,3871 +gradio/components/number.py,sha256=0bFIX-0EWioPN43_Cb1sDcoVpi6wygMxwA3IvuWqzas,9542 +gradio/components/paramviewer.py,sha256=CClv41QD-aZmd8pJ3wxi5C3S1uEJzinV8Uw-IMzGy_Q,6021 +gradio/components/plot.py,sha256=lSKJ6LsSSAstYIjeIGU5fTEWjn6yFdWIZcn-fRXPJ7s,8637 +gradio/components/radio.py,sha256=SN4RtTfjNu6F2ticYsSpXGJ0ORNE-_d2ELwWKmINgRo,8718 +gradio/components/slider.py,sha256=ci9thEXTDWuwxqOZ82KM6dEsGLk-1yJFyEPxAAAlEx8,8691 +gradio/components/state.py,sha256=SchYq5JaA0jWAzbpEGVK2GBgy5KwrsO7PqJk1BMEdD4,3477 +gradio/components/textbox.py,sha256=TQVY84QNuUzTuiAW66fB1oaUx0o1fu_ExX0dz5Gceew,12486 +gradio/components/timer.py,sha256=7_R9gMbXy6zsYXBsS8XqI1C7PJ9s1TnwfaAsjhxAUvI,1978 +gradio/components/upload_button.py,sha256=Jv0QFmVInwKHzuMKZQJain1K7ScB1C2Ct13d2mF8ILk,11493 +gradio/components/video.py,sha256=j66bw2bYCGzBpwH3Y4Nc71FXgWU77AHmfNgfaqNPD7w,29108 +gradio/components/workflowcanvas.py,sha256=LT3Tf3ePM3D26ZvTU90AbUu4WFG9r-o3Bl5qNUiPoqc,4534 +gradio/context.py,sha256=EH9TtJOwkBNDTOJjKMkkTURDwd_ZGslSaQHmfivtSXE,2118 +gradio/data_classes.py,sha256=x-5S0rS4lefEIOWkLXBM4HZ8HroK9BENWTW_U6yG28w,13252 +gradio/events.py,sha256=PbD_qqZucH_q7_JqCKld8uH6i_TzZ9TGl4IEuWIpEDc,64131 +gradio/exceptions.py,sha256=4ZxPBxd7Qn_z18DykPTzMpyAMZV0ieY9-2ruYcr2Fxw,3626 +gradio/external.py,sha256=HsQQ2DIGogV9cpUUS8ObQN6kMZe1SrQACIPar4cygcU,43358 +gradio/external_utils.py,sha256=-VQyYEUiRaaYbzA3-zN_9YMqeM0AQlhXwb5ZwQtNp5E,21214 +gradio/flagging.py,sha256=LszwWr1mRrGLv48swkCA1pv2p2MElsUwivh2ZahCsdw,15361 +gradio/helpers.py,sha256=mzcl6UK1uB8CeksxOMtSd64O7CV2tepIf6MES0XwnSA,56502 +gradio/http_server.py,sha256=C6sCfAU-F_RuqexWRMz_9OyXNRbORDn4JI5-iIk_ceY,7955 +gradio/i18n.py,sha256=aFRvfQ8kb0WuQsEEybOnp5ngNHs8E10cHuM20AWr6y0,4610 +gradio/icons/README.md,sha256=p_N7_BGQNMOL8ZhLKU0v2aTd6JKx9TudGNGWTVJGAbE,152 +gradio/icons/huggingface-logo.svg,sha256=NhPHPwfMrhkRi_5tL4zRJxg9CM-ZRopwjgkJU-EW7Qo,4634 +gradio/icons/link.svg,sha256=w71tQzhRqCwDSE94VWknZgVjxtBcBz2dcK2X5NPCTlA,354 +gradio/icons/plus.svg,sha256=PbxK2HJRfQKyuP_57u68w_pq7v60u4AgN7FDssfz23E,480 +gradio/image_utils.py,sha256=mZJ07tOj5JQFd2aMI5M5Ethgkmmoxq86Hn5Ag-92pvk,12148 +gradio/interface.py,sha256=8N7xZ-hX7r5WLzOjSOARK3uAJx-AEbw83YmAm-d4tCA,48981 +gradio/ipython_ext.py,sha256=xIToVkKq3lQwvAFYXC6ePf5nNmqm11RP3ky9l-9UMzY,2624 +gradio/layouts/__init__.py,sha256=_7_khsko333vDRdphsGfMFMvBP_nFFxGOh_1RWPzZ78,454 +gradio/layouts/__pycache__/__init__.cpython-311.pyc,, +gradio/layouts/__pycache__/accordion.cpython-311.pyc,, +gradio/layouts/__pycache__/column.cpython-311.pyc,, +gradio/layouts/__pycache__/draggable.cpython-311.pyc,, +gradio/layouts/__pycache__/form.cpython-311.pyc,, +gradio/layouts/__pycache__/group.cpython-311.pyc,, +gradio/layouts/__pycache__/row.cpython-311.pyc,, +gradio/layouts/__pycache__/sidebar.cpython-311.pyc,, +gradio/layouts/__pycache__/tabs.cpython-311.pyc,, +gradio/layouts/__pycache__/walkthrough.cpython-311.pyc,, +gradio/layouts/accordion.py,sha256=_thiCYUipVG8YGVXD5hLPmkU1_IpNfc3x87bsQ09MQk,2578 +gradio/layouts/column.py,sha256=Z61ji3NizKjmG6o9vPJXM5RmMkZlhWe7O68EWXVwQ8k,3884 +gradio/layouts/draggable.py,sha256=dsfALua21NqfCpp-DTgq0MexxWfWP-Zb2R8NgeH3axo,2615 +gradio/layouts/form.py,sha256=puQdkXTLdff-KRaejjg0DffehxM4i7i_sBbV8omfPJ4,2775 +gradio/layouts/group.py,sha256=h6p2_TPFCaLSouoIFF0r_lwQC4BS9_GXyyVgm3dU3Mg,2298 +gradio/layouts/row.py,sha256=BLjeGTrAMc3ppux1DnHgGhaNJVXantaSZJO-oyJlaYs,4723 +gradio/layouts/sidebar.py,sha256=leY0S2XzLBvWGv_rLal2Sss-cYU4V9q2ovT__chTJxQ,3005 +gradio/layouts/tabs.py,sha256=uCmPv2ZsfBKabNDd9kJG4f0-ReB53vM-7NRHpuxklRU,7424 +gradio/layouts/walkthrough.py,sha256=WLP_5r_wDaBcVSSIis34StBpuoW2CTzZdw6FJ7eHhhc,5136 +gradio/mcp.py,sha256=kw1vujecFyrRdOw0kOFb3BDdlEGGuAvkFvex-05A_jY,64528 +gradio/media.py,sha256=2mYuuT1nLskvNbOrlMQXlmelrGzwyDvDS5BLDkT7OMg,4192 +gradio/media_assets/audio/audio_sample.wav,sha256=rvN2KgIRr8t2EBOn4lPdocYAotgSEz0qszPvxaOllm0,16136 +gradio/media_assets/audio/cantina.wav,sha256=Ll9zABsyTkE73PZY_KVIUFfDM_QZjlHn6Guy53LNCXM,132344 +gradio/media_assets/audio/cate_blanch.mp3,sha256=hOEpmwFc3WgNolJI6uIBu_L-oGbTcTxesJtGNMXw_tQ,67208 +gradio/media_assets/audio/cate_blanch_2.mp3,sha256=6tfpQLMKv-LlPOfteG8_E0xdRBMlVM58dxWApBYWFnA,35816 +gradio/media_assets/audio/heath_ledger.mp3,sha256=NgpdNpIKte9Wkfwi7v-x35G81JjZzc2_n974GHR78r4,28416 +gradio/media_assets/audio/recording1.wav,sha256=HQh4dnlf8ryLbhqHLrmpssykTbGGbpyfoA31olVpGf8,639020 +gradio/media_assets/audio/sax.wav,sha256=Eu4yxmJX4cmO0PL3twih6rY47An0xp3aPsHXgEenvk0,1536044 +gradio/media_assets/data/imagenet_labels.json,sha256=cOFcINl7o961nUZBlzi-JtKuPDnVVTk7LRrlhcnePf8,18188 +gradio/media_assets/data/s1.srt,sha256=Y6pCAa-Lx2W2oP--ZzjyfArxKNAl3KmpMuOA7_pS770,367 +gradio/media_assets/data/s2.vtt,sha256=_goBBHy4Zh_y0Rr1rSBVh5Ku6aQvyG22UixWRN_YhZQ,181 +gradio/media_assets/data/s3.json,sha256=_6wGL1YISu-JuwvskFC3GcQsJ8v5GkVOo7m0FW25T-M,292 +gradio/media_assets/data/sample.txt,sha256=WKRKFUkC_A25UV3JpbWG4zgWZvlRVIDIfSIfzi2Rwtg,13 +gradio/media_assets/data/time.csv,sha256=bCMY7foyHO-RdPsvhKVELqYFb6MC5cIZQUc497JLbIg,67 +gradio/media_assets/data/titanic.csv,sha256=fRGP74tsz3-BERh3vDiFNvex5JimVePWSdGaqgEOn28,61194 +gradio/media_assets/images/avatar.png,sha256=kro78PrtWrWR7FrT0G-olAnupN5pSyts6jzJieCOzHk,5328 +gradio/media_assets/images/bus.png,sha256=OWx7U1hp5EGP2dlldjXlE0xrpiaBkFnwsm6bj7yCp2E,1951 +gradio/media_assets/images/cheetah.jpg,sha256=KbAJD17EcdrQJkq8IOzDyAoBM6Y6A9Ed-SDjmgk_5sg,53144 +gradio/media_assets/images/cheetah1.jpg,sha256=NVUL-7qZblnCQq8A9qFKnA0FXfvFKtBpoaTowcOcoJU,20552 +gradio/media_assets/images/groot.jpeg,sha256=__TQXTAIjaDwc65Ksh0i0Ry9Vs-rcR88NZ-qu_hXcHY,349746 +gradio/media_assets/images/hf-logo_transpng.png,sha256=Wn-fc0uvof_B0Z_6ocCr6mP9EEX14Liyie8UM4JDsNU,43650 +gradio/media_assets/images/lion.jpg,sha256=TEXs4AB18VLLLmz9Xx39fcjoMEImRoW09HACYkDv8-8,18489 +gradio/media_assets/images/logo.png,sha256=kro78PrtWrWR7FrT0G-olAnupN5pSyts6jzJieCOzHk,5328 +gradio/media_assets/images/screenshot.gif,sha256=Ld9RNndSl_J0yvebvSvrjPFypdiUFZfMgu20NYjFTGU,92391 +gradio/media_assets/images/tower.jpg,sha256=9X-W96cfiXOdJ66P_An3PNLxdBXRbJTULcsNVx9OsO4,112385 +gradio/media_assets/models3d/Bunny.obj,sha256=yT5Kb8ZCMZT_iyTeNy0KBjImQpAwKhHTkfgyMToNVe8,198443 +gradio/media_assets/models3d/Duck.glb,sha256=Zb-Tj1TWBz5hnnbgB4ILv5gM3D3A2uwNlIMP_ErlSrU,120484 +gradio/media_assets/models3d/Fox.gltf,sha256=lyHEdMOTXaK-G4lQs2QM3HOVG89CfQ1bMW6h08GAT8M,240667 +gradio/media_assets/models3d/face.obj,sha256=NA7l8ZNCTnQSncuSnWwdViLM7U0-oljReId_d7etJV4,72476 +gradio/media_assets/models3d/sofia.stl,sha256=ucdk2zM-72RfhQDAvepDKnmQ6_NMONUFY11vVix87HA,675084 +gradio/media_assets/videos/a.mp4,sha256=pvluE9_WlCPRxsyIPW0Ihv2K5cafWodmHFaYzov5kbU,130399 +gradio/media_assets/videos/b.avi,sha256=MuIyosUhohgd2RUSiWWCthDlgWrk8yRM8cifvHymSrM,319342 +gradio/media_assets/videos/b.mp4,sha256=_H4F7YAslNdOkAXjvFPVq_02q0tjvhYC9s_ml7eJxBg,261179 +gradio/media_assets/videos/muted_b.mp4,sha256=4yYgCNRxIu4papafAvZm4M3ph9M1_koM5JK4IvmJ0Oc,50813 +gradio/media_assets/videos/world.mp4,sha256=cZRNdDDEYfDNbn_RDO5-tyeGNSo2ePx7wK49QQ9yrs4,1570024 +gradio/monitoring_dashboard.py,sha256=BQtEPaVvg-ho_FDkO8Dc_bFmGn11F7Kz5Ww7gpDiae0,3258 +gradio/networking.py,sha256=5btVA-7uqITyMTTM0-eviyGiCbRY6Rz4BLnZ3yj5C38,2671 +gradio/node_server.py,sha256=BIJ_EB8g9KGiM8UxWVBcQ6ZM5MVBndlW41s2qgeLXSY,12689 +gradio/oauth.py,sha256=VenuV7oDCppR6nN1vB3nBAjax0xXbOaKgpqIzAwmS9I,16403 +gradio/package.json,sha256=OxVgjWgV7wj9ney-5bGC4V38jNYhx1Z9Z4MYXJBmbhA,106 +gradio/pipelines.py,sha256=VFrWKwQfY-XqpXbB1eA2Htuzvxs6wyfADzj9b5uRIAU,4798 +gradio/pipelines_utils.py,sha256=Md6S9ukTKnaqrJDlWrhBLt61EvqmA5ZJcQZc16gy3ts,33022 +gradio/processing_utils.py,sha256=Tf7x8Xx1iApa8igVqwd6BQBomRRgdphiQ08oikNtSlo,50361 +gradio/profiling.py,sha256=jChu70IU_kfrfcla6DlpDpUrrngyH0vtFFX9Z--Hoq8,7674 +gradio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/queueing.py,sha256=YwDHG1o9F4WFGt0bxKkE1BxHl_vrJm5q2nUCvvvzQr8,46054 +gradio/ranged_response.py,sha256=o8YZjTEV261vz_LZt0WPJAEQKqOSXgfxSWiQWE8-Jvs,6398 +gradio/renderable.py,sha256=nwBVsuh6DIcApnC5ltaxxsSCwLmVdjdt3gxmbQNwu-A,8855 +gradio/route_utils.py,sha256=xGBmR2NuLCSUE1o-o8B7RteijQK700DnOt6AW4cWubs,55504 +gradio/routes.py,sha256=q7vbrSADm0fsE9wtCwhtIpORLM4Cs7JK0DdzY1xzRRA,115862 +gradio/screen_recording_utils.py,sha256=Wo535p4jscfNg3OPVqlgCadw5g4Yhw034t658SlHPd0,11996 +gradio/server.py,sha256=haNVyo-mE2kUv3kpjAsEpIFY4zbJdTrKKy_iIosKLkA,13253 +gradio/server_messages.py,sha256=Zw9S_iqZIWg_e46-Tg2St6VRuAo0HgljOgf5S4zd2zM,2523 +gradio/state_holder.py,sha256=upSLiYBBaHl3Dywa-R4uRodzmTgo7Ty9ZU-RX_FWLag,6105 +gradio/static_server.py,sha256=DcWViIxEMIUvMD2PhR_4P2E1vnlOYeqr5NVtYgux1jg,8321 +gradio/stubs/anyio.pyi,sha256=9zsCajOuHYo0f_D8F8rQ897TiAeXpZrp4XJpnqgTlKw,2445 +gradio/templates.py,sha256=nPCLApnpLFDs55o_a0sLvVo_2mswsbLXdwvDQ_itLfM,28528 +gradio/templates/frontend/assets/AltairPlot-BYxgqvo5.js,sha256=sy690vLiuvtrKwWMCuCiwLbwXYD9uGZem1WBh-uM1yk,691473 +gradio/templates/frontend/assets/AltairPlot-t5CeUkWN.css,sha256=zUktLbghdqXtQ-kqwS82_kT9lryBkvTMed5POLtDZh0,880 +gradio/templates/frontend/assets/ApiDocs-6osJUigr.css,sha256=X2FZAUGuCptDr_TuI1DtBXmoiKVZEp4bSC_-_qMyKgs,22195 +gradio/templates/frontend/assets/ApiDocs-Cr1DAF87.js,sha256=RG7PRrIpjf3txyFicmxTpdqEMhZPnQRt7F4sRDp72Og,69787 +gradio/templates/frontend/assets/ApiRecorder-BXM0NqLC.css,sha256=EUSBFOf8hziYg2A8_eizE-kvb4zcjeZdAOOtlRmDFOk,772 +gradio/templates/frontend/assets/ApiRecorder-DjAtOEJJ.js,sha256=M-_LlvcHm4Y2AAD8ricYP62TH3ZO5YtDtAR4fvov6Rw,977 +gradio/templates/frontend/assets/Blocks-0aNuD791.css,sha256=jSCEnsGO39Pyx99EyMWfNCFYZVID9fZ-1ZfVHC4WiiM,2208 +gradio/templates/frontend/assets/Blocks-DDFr0Niq.js,sha256=p_INMNK-Ofj2NAqzjgt2EFOMTOfLNZTqU93VxlR8Njs,29978 +gradio/templates/frontend/assets/BokehPlot-4FxaFuT4.css,sha256=v4Ie6QjmVXu-hJb7TYrSSMekEjnoHcYgXlA04S63qFw,65 +gradio/templates/frontend/assets/BokehPlot-CyWSD6zs.js,sha256=quqfliukFvW43dJv3LinBRCuq6y57phqArRm1JudbmU,2506 +gradio/templates/frontend/assets/Canvas3D-zLMvGz_w.js,sha256=EtR0IZR2RGF7hKf8aUQwOy7rOJ0ZwIjIEnUYuwIROWk,6026 +gradio/templates/frontend/assets/Canvas3DGS-DMYa4mTq.js,sha256=XLpfiGGE9oiuziEU3PeIECupsgY9Oa-i_CLsRtUaUww,160616 +gradio/templates/frontend/assets/CanvasPool-CLFcudoo.js,sha256=kv_dGnP52GN5K9ZVlDjng0ynUH6oJCBHuwVscemC4lQ,1063 +gradio/templates/frontend/assets/CanvasTextSystem-fRL-OKor.js,sha256=mmqZEKQF7ezmQT6OKO4Z81m87-V5ar1S-P3qJliYMl8,170989 +gradio/templates/frontend/assets/EXT_lights_area-SOx6_q07.js,sha256=x1l8yQUNZ_0pSdZnfDWYYt6C5F4bPH_UEm3r7w0hkDg,6412 +gradio/templates/frontend/assets/EXT_lights_ies-Cy_kMsb7.js,sha256=1kOmsw7M8UDLGU848434wKhplrcBnV7Zc8tQnwSxvVs,1791 +gradio/templates/frontend/assets/EXT_lights_image_based-Da4ay0XD.js,sha256=tBIP5UTMArRr0VFf8dkvOO_mCJO_4ekuPzTxYy9hJzo,3017 +gradio/templates/frontend/assets/EXT_mesh_gpu_instancing-CK0WoOxp.js,sha256=oQi5wcaeVs9fBdJmSTMm7g8qTTGRN2zaAhZj2oRXenE,1896 +gradio/templates/frontend/assets/EXT_meshopt_compression-BEJj-KJ1.js,sha256=IyCmyOn80Q7Z99DU16SsdSrOBgfWBU95MeYyNhIZ68E,1428 +gradio/templates/frontend/assets/EXT_texture_avif-B9vrGW30.js,sha256=WzmNPqDYSH1sIcQ6wttop2VUCBr2N_NSk7VH8_bLYm4,663 +gradio/templates/frontend/assets/EXT_texture_webp-8hfDvlI1.js,sha256=xNxnBXRDsL6xUhTY-0L1xbw43pnu7SwbOFS83uDjcvk,663 +gradio/templates/frontend/assets/Example-0X2pyPJp.js,sha256=4jBm0-Pc7zQOwzDAWA5ec4tlB8ZKe5RiZ2L1QEGdYJ0,740 +gradio/templates/frontend/assets/Example-3dKDFY4a2.js,sha256=FFtYwk6lfZQ8f8LPNFek09KIQOlTIiFzZJ2ng325WBs,551 +gradio/templates/frontend/assets/Example-B1swpn2y.css,sha256=3g66RE47bMB5ZoSgEA9JiTaYOqeJyp9XN6O2damXXzk,113 +gradio/templates/frontend/assets/Example-B38sx5Cv.css,sha256=4led4e8-C_-WNtT4D2atbYuNbd0XM0knG6btHJ4d_7k,531 +gradio/templates/frontend/assets/Example-B85Ci2Rt.js,sha256=1jZpMcT2b5gJuVzD8IMzVnCgmRFunswkR0-0DoYZIAg,369 +gradio/templates/frontend/assets/Example-BDLP_Uhu.js,sha256=i9rkZBBtatGtHtvoleNC3VXuVxQwjxb8KmLxShnjoQE,828 +gradio/templates/frontend/assets/Example-BG5zdIqX.css,sha256=-v26ntCwz97mNbPXslSgyJxsudcCMLOUBgX3VGobAqs,46 +gradio/templates/frontend/assets/Example-BHd1o9CD.css,sha256=Z2CGIiDVF_wrYT7ux3DBa78zB0HB7k7OZfj2J3MtFq8,448 +gradio/templates/frontend/assets/Example-BK-tWmkG.css,sha256=IEnwSVGC3vTsVyPVCTa5bES5Jz-oyYo7M-YM-pYsgps,96 +gradio/templates/frontend/assets/Example-BK75PbeQ.js,sha256=XQjt67H-OEh2ViIdvNlNELTFGtqHVny8KvqWLDwRjUY,309 +gradio/templates/frontend/assets/Example-BUUMH8K0.css,sha256=XVhMa1oBYMWyOLxS53Gfp9HvAfCGsD7j9J_AQh2Xy-Q,61 +gradio/templates/frontend/assets/Example-BX7dXiim.js,sha256=Kuyh97I1Eocw0JycbnpZsxT5gpj3COxGD0LZCIPDj_Q,617 +gradio/templates/frontend/assets/Example-BamLtfbF.js,sha256=9C6bK9aYrr0YRr8Z7oS3jJj3hJwIYmk0y3U2gMDEbIs,179 +gradio/templates/frontend/assets/Example-BeU1J4ps.css,sha256=hE6hWJFUH_p0ocOMXgcxZ4ke01m4K9FUJLg8vyRB6Ks,61 +gradio/templates/frontend/assets/Example-BepMAXIN.js,sha256=fFXPu4DNxwHOrY-PChKXBSjqLyjQsEdUzwteh2GbPOA,439 +gradio/templates/frontend/assets/Example-BjTvdRul.js,sha256=zW5VoTwxrAyJkIy_5HeBlvsbUia3mghsBxs3XshLnHE,1515 +gradio/templates/frontend/assets/Example-BmCBZDIF.js,sha256=64Alc8wcLr-Ta-OcXMxq8gmnstmgTOOMfKNcrR-bGuY,499 +gradio/templates/frontend/assets/Example-C1Twyudg.css,sha256=tz8iAddseb_w0kgQnRDcZK34q2D-vVJornunIvdZIoY,552 +gradio/templates/frontend/assets/Example-C84_Hdh-.js,sha256=lI470kXGgV9IBI8FKqD2QpTcK0n13vgIe6JMJRum9uA,419 +gradio/templates/frontend/assets/Example-C8caxuJP.js,sha256=qep1yAuSz31fjGJVmKpouPdl-DhBoW-JLDMiGnV-JfI,368 +gradio/templates/frontend/assets/Example-CBF0eVSe.js,sha256=9l5UF7h3X9QS4walGMaxRHSCI-g9dsHdN9XkJbGJNb8,566 +gradio/templates/frontend/assets/Example-CExJWHv_.js,sha256=opC4ur1wQ_lyA831j8jscL6RlpWrWvmRdcLWsKMi0Bs,487 +gradio/templates/frontend/assets/Example-CN8DitSg.js,sha256=sYVlEhh3DcX9FvGjVc5Uv1FLjQlLNlUcyfnXqukpoGI,369 +gradio/templates/frontend/assets/Example-CYh5xqXY.js,sha256=rbWFN2c050KU0bs3DVTbDrzORMjutIBLYQ4f07Se8Vs,550 +gradio/templates/frontend/assets/Example-Cb41fFYF.css,sha256=us-SIIXW4ttkKweUCpGmXJNRTW4CSdWu-8yXPN8-RCM,201 +gradio/templates/frontend/assets/Example-CbsQ_w0w.js,sha256=8JW2y8M88uh36XkKL-bSx4HnVAYb0U0cgkZXJikrkqM,504 +gradio/templates/frontend/assets/Example-CgIc4GLa.css,sha256=t9dgbRW3eu5vQhc-edCbG9b8XF4htjNB6x0Vf1ccS2c,61 +gradio/templates/frontend/assets/Example-ClCEvrVq.css,sha256=UobXI8OS9H1pxOgfT2_6z0LVgNDPjfKsnvkhptu3kqU,796 +gradio/templates/frontend/assets/Example-CnjfKiXR.js,sha256=rAm_tkMfZuOLDcKZMTQMRKf6xUFRcwJPyNs04gqTEFA,579 +gradio/templates/frontend/assets/Example-CpKp4Gmn.js,sha256=fQlgTlwfJg9sKgZxOlZyMrdVB_fCnLHutPALVfkJcmA,500 +gradio/templates/frontend/assets/Example-Cpi22WGa.css,sha256=xJk57VlRat7i9SZ-qivIUQ18fJxxd00iUVVeCn-fXY0,61 +gradio/templates/frontend/assets/Example-CqSXPQC0.css,sha256=xKkZdi_80XLs9nRCDpEy7Gp3UqvQDXWNP70cZDyeN84,451 +gradio/templates/frontend/assets/Example-D2nbjfVb.css,sha256=vvMUylpIy522skgO6D7p1j1kn-U2cBWCpZ_tEBPxUNM,61 +gradio/templates/frontend/assets/Example-D7V1mKY3.js,sha256=8UXGRoA7b3J6I6_ehDfzev9T7-Fokj_eJN_KBxXfrw0,356 +gradio/templates/frontend/assets/Example-D81L9Y8U.js,sha256=eNCEMWE8ks-d1t0E9O75Q4HKZeD2YlhUih_hWbK0W7g,386 +gradio/templates/frontend/assets/Example-DEodHMtm.js,sha256=gxh7fLzwW6XN6B1uYlDYkkjmxKGBved6-V4hrpPO3gE,1479 +gradio/templates/frontend/assets/Example-DG5wkFQp.css,sha256=TjBXBeeD9iiko8QnXu3JK7VSBw96YpwSgxo7NVy36Dg,737 +gradio/templates/frontend/assets/Example-DO-WzQxB.css,sha256=unWHk87lrJW5eztPnjPkEsMCUNN4mhEBLBK5-hcghn8,240 +gradio/templates/frontend/assets/Example-DRNfFsvd.js,sha256=6sRctd-2CSNFEULmWQkJVChfgbhimOITZdL3aNBYGEM,1591 +gradio/templates/frontend/assets/Example-DSMNiXnn.css,sha256=75NgLDQu1d9FheoZlBgb0_IEj4pCVlOaPjqQL3fsbhc,60 +gradio/templates/frontend/assets/Example-DW2_K6RJ.js,sha256=SxYBJu2AKXQ6d71HN_wnymOz7SFS-TiOTevhDfMF9SU,1099 +gradio/templates/frontend/assets/Example-DWDv4qx4.css,sha256=GegCwMNn87FlryDA_jj3k-NNHWFirGXAPrRwv6xphrg,60 +gradio/templates/frontend/assets/Example-Djjag0Nf.js,sha256=81GKqjPhlNlfTaQZ35yjQH_8c3QrkirFQuujg0qP8jU,421 +gradio/templates/frontend/assets/Example-Do5iR6B9.css,sha256=7LsrCI4ZaB7NcO42y4myGNuoc49_Cr6XgrVLJo900cA,60 +gradio/templates/frontend/assets/Example-Ly4CaRhL.js,sha256=_4uO-QnSsetCi_-CbB2O6o3sPR7VXmXYT3vXSX86XHM,379 +gradio/templates/frontend/assets/Example-PnzFsODt.css,sha256=7fMy4rf41CyabgX5UuifkiuNXoqJ32dqzzMrQZI8tjo,60 +gradio/templates/frontend/assets/Example-QWdMqwA5.css,sha256=PmuwdkofRzSJz5ttXRveslbOebFJRrnLv3TSEk92Khs,60 +gradio/templates/frontend/assets/Example-RXDI_Ar6.css,sha256=edjKTVm2PNWsssxHb-U4ARnsgEM3LTpgJnL-Eo-uCTc,61 +gradio/templates/frontend/assets/Example-a89iaIwm.js,sha256=0GtvVROPSka6DjT7EkBIQ5JHTqLvrBv1Pnzl9smuHak,378 +gradio/templates/frontend/assets/Example-bHSd0VUC.css,sha256=f-BjTQu4yySEczcMl0dnHy624wMWt_LWtBHwcINMV68,99 +gradio/templates/frontend/assets/Example-f0xYWeFJ.js,sha256=6TU6Am7fUy2BhQ-NBAFRaPiZT3ov1kMsl1Qssq0n87g,380 +gradio/templates/frontend/assets/Example-guFL0Sj1.css,sha256=GYRCFy9vj25r0Qlu-dF7P1iIYhOYUGravSzMi4yB7fk,60 +gradio/templates/frontend/assets/Example-ju9UzsGI.css,sha256=xaFl8zFFrcWPb14WVV73WCn-2UEh3R1IC0Ce8uOmMw8,1990 +gradio/templates/frontend/assets/Example-qsJQ3Pbm.css,sha256=6KR4yOa8Rtaoeh8nx6NbvmtMc9BlHW5yWyjl3WgVh4w,1085 +gradio/templates/frontend/assets/Example-zffv55Vc.js,sha256=e4dvmJGzZfsF2kfQjbDORV_NKrR0naAZ_b_Omhf1kIM,778 +gradio/templates/frontend/assets/ExtrasAsMetadata-yfBvrWAf.js,sha256=rJCLlZqhuxNQFykBdWSfLHdp5PCcdr3V1Zi3IwEOtnk,768 +gradio/templates/frontend/assets/FederatedEventTarget-D37OKGTD.js,sha256=59ZPKjVLezgjjG_0EmRjY6uZUEGGNh-ub6gl3J-Bpmk,42430 +gradio/templates/frontend/assets/FileBlob-7MRLQ6TG-BvRk9kiK.js,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/templates/frontend/assets/Gallery-gDhqSXoB.js,sha256=APw5JOTveNZBUkQrwFjcupDALQxOSBWGwwnJd_0-Xvg,13096 +gradio/templates/frontend/assets/Gallery-mNrXguI2.css,sha256=7P0VKGJvK3GqHBCPEtq-2gp9uen1uqrPaolBCafYu9o,4883 +gradio/templates/frontend/assets/HTML-BuYIBbeV.css,sha256=IGzRduyp9NkEmpepXc3-XvaDgt3ARlUFLHcMH5vN0Iw,496 +gradio/templates/frontend/assets/HTML-C4ADBvkk.js,sha256=R5s3fUM2AatXZiFlkIW1YFGrCQSLEKkdjuFZxe6QBdU,109373 +gradio/templates/frontend/assets/Image-C6EwRAez.js,sha256=FVICikJfnxGwQBpoMTIdHBK4TRILKHFRh9GwSWTEdGo,662 +gradio/templates/frontend/assets/Image-Da_XA0w6.css,sha256=_0NGLkvaxuGyjlaBUXHyYxIn8CIT3H8sPPZNWy1zOUg,37 +gradio/templates/frontend/assets/ImagePreview-B2sIO-1d.css,sha256=TZDqmrBuKYmcJuQGxF__sUB1GRl4sGEuiD3r6sfqnBk,773 +gradio/templates/frontend/assets/ImagePreview-DkOjf1wS.js,sha256=fcb6VjjoJC2Yj0DPqbFPUAL0qD4-7VzCs6pwxYh1TOE,2906 +gradio/templates/frontend/assets/Index-0BNpv4xP.js,sha256=DB9ynxPcjL_gWouFGSuxnIXaUnHlYIhanIec9seCkV0,7055 +gradio/templates/frontend/assets/Index-2tzE3aT5.js,sha256=UH6RrSPH5oO-tJRg9nnckc2xgSV3Lg_fcviKzl4pLm4,10649 +gradio/templates/frontend/assets/Index-3FqI08xq.css,sha256=37Go18KrhpxtGodVA7yM0M_Xyzy2xJZaSpuGHvAqGGk,102 +gradio/templates/frontend/assets/Index-B1boDmpg.js,sha256=q5TuJ538VHcdAQgWbsrQeVa7UVLr3KkK5Wrp9_19MgQ,274765 +gradio/templates/frontend/assets/Index-B2IoSUlF.css,sha256=-eGSqq7jT_aNCeDNw46jMlJ3bJAwYMxcm6iEpNK8w5Q,4134 +gradio/templates/frontend/assets/Index-B3LSO2or.css,sha256=dKXMjYSOzZUoCbBN5TrmM3HDAcyWUmoCsvocSssgeAM,2956 +gradio/templates/frontend/assets/Index-B5I364ct.js,sha256=XRuluOPomooP7EO7b_K65Yl-ZITzd1QO1qDXt3f7Ufs,10555 +gradio/templates/frontend/assets/Index-B8_fuuLw.js,sha256=PkmVGHLV1AsSgZyINvGitJcKZFwznRc8fEYmdMVr6_I,11187 +gradio/templates/frontend/assets/Index-BARIKWon.css,sha256=YEAuIrRzRVIeXr2Ucn4D8psjK2RPAOeLT7RGY_Lq-W0,6857 +gradio/templates/frontend/assets/Index-BEAaBpyn.css,sha256=fqZbZ4RvTToiW-wdXkemGbNncH8uFZzHKvFze_NI8vI,1815 +gradio/templates/frontend/assets/Index-BEX8QkIZ.js,sha256=dMP736J5Tgyn5naEOMD1VqPxQUC5bC2FVoQ9s4wjKI8,2199 +gradio/templates/frontend/assets/Index-BF-wbmOv.js,sha256=HuQroWOvFzs3SpgAFU-G9fEjCOnsUIY4jaNbVh2YG9Q,3043 +gradio/templates/frontend/assets/Index-BGK55NKF.css,sha256=yDwCbLuE1-hn4GMmZeFHEkKJmFxEKTMUEnlrqcpX_3U,438 +gradio/templates/frontend/assets/Index-BGn2UPhU.js,sha256=Pr-lJ7VyiOy8EuwZPFRrMKzCtGmv8rnHMbg6R0cFDe8,18159 +gradio/templates/frontend/assets/Index-BHng8pvl.css,sha256=aEHzY6hhvNnLoXqHZ13hrcMDQCDJoleM7oZS4ZgGbEw,1342 +gradio/templates/frontend/assets/Index-BQy4D5vy.css,sha256=76hhyd6vpNKGcrYAlXUfMz1pYofh1lVTOKFXIg4jMF8,17841 +gradio/templates/frontend/assets/Index-BRutebFN.js,sha256=ttmpXV5art9VrP_TKUhtjiFoJXOHUrn_L9X9fc-IqWI,453 +gradio/templates/frontend/assets/Index-BS86oJxu.js,sha256=pvqPx6h3xYUf2xnbdPjB_aFYv2ohiH-X_e23LahV7KI,212074 +gradio/templates/frontend/assets/Index-BTOchpZo.js,sha256=615QX_Qewe-Xtp9aNTlwi-zMsG63EW_KmHyO4cyuYw0,3589 +gradio/templates/frontend/assets/Index-Ba0kRe4M.css,sha256=8y_b624DHVVn6MB3rSqd3QNJr4XnHkTTSN7cVHMztkg,3167 +gradio/templates/frontend/assets/Index-BaDEyhmX.js,sha256=e_VkIDEGxJc9VLuyWmaEKP8msje-8nfAHxHuhYH5TnM,2610 +gradio/templates/frontend/assets/Index-Bcyx5Q3E.css,sha256=BVwy7RSU2xf4sMU90AjakU8j2vWlUOt8lU9JmMQHbfE,72631 +gradio/templates/frontend/assets/Index-Be6pmDUX.js,sha256=G380pcVl96vsweMgPKgVkFUgKiPn5L2WkqOuyH-fw7M,70862 +gradio/templates/frontend/assets/Index-BgJHsyvf.css,sha256=E6UG4oAvWd6jnWgRkumCHJkbIABeHkbq2D-8bBp01dE,945 +gradio/templates/frontend/assets/Index-Bl-AJwo7.js,sha256=6gQeA2yG05RGCEcduXsTBk_sO4ntMWVLukLyfm98ZM8,4026 +gradio/templates/frontend/assets/Index-BplHadsI.css,sha256=k7EQfJXHqRy3JGLpfoY140KU-jf5pGQONfrO3Xt-Pdo,6928 +gradio/templates/frontend/assets/Index-BqFl71Ew.js,sha256=TzYhApJLAhxAZ9FsZdXpBv20EDNbVvRw-67bp_QBwrE,6609 +gradio/templates/frontend/assets/Index-Bqii6RB8.css,sha256=ICK3haWNSdyzAjbku-KegFywXB0stq2KW7x9z69-YY4,3954 +gradio/templates/frontend/assets/Index-BsY5MJj7.js,sha256=N9cVVVjVvKaM29B6Nk3BDuTogyOThe5kNaOiYT84kC8,412 +gradio/templates/frontend/assets/Index-BsaKcsdE.css,sha256=sMJDny-HBKIszMYlZ-LMFod8yCUD2vH0niP69Qzgv0Y,205 +gradio/templates/frontend/assets/Index-BtjwKZJb.js,sha256=JSLl7IqLEH3Lr-AesFrWPOLsLetxMIwue2YuXob4TdU,3379 +gradio/templates/frontend/assets/Index-Bzhscryh.css,sha256=g5yrERGPB2uZ4vC_QQcZSXaJNZ8nLnazJht4Ssx7SNw,18790 +gradio/templates/frontend/assets/Index-C0a4XNvV.js,sha256=ZmFkUcZkMetblWFnCDBLAONXaQgRQx2b9bQnDB9wfL4,84628 +gradio/templates/frontend/assets/Index-C1GyojFs.css,sha256=EJLnhaEV0YVRKuLUJuhA792DRFaPxbviTz_GkI_aSME,526 +gradio/templates/frontend/assets/Index-C6IXUoUa.css,sha256=Nflj5J-6dvLR_Cf_fCgi4y5_4RLVqSvB-dDy-rsDz90,6281 +gradio/templates/frontend/assets/Index-C7bDEUy8.js,sha256=SP9PyU9i_yEFKsWoTPEA0DE3iQ5cv3YgAdhsacHJbiU,2088 +gradio/templates/frontend/assets/Index-C8ejT5n_.js,sha256=QZ7lKhu_9Xl23XSgAPy0ngHfGJhlgk0xZLk3e_bmSws,45736 +gradio/templates/frontend/assets/Index-C9aehMzN.js,sha256=y3kt-0yatXHhd49p6Z_0nndJ3pIBfOnDL67vuGtRYjs,6362 +gradio/templates/frontend/assets/Index-CA1QTtuq.css,sha256=rhS-aEomVQa5aQeu-EngtPh-J_hUU4oQlv0sp2jfH7U,404 +gradio/templates/frontend/assets/Index-CBZbGZzx.js,sha256=fvj9iJuuWUiWzVhbeKnpCcEMQom6Z28qMrZyC23MR_w,2765 +gradio/templates/frontend/assets/Index-CBd8zOaV.js,sha256=pEWsomyCy-b7gcBbRlM5N0DQELvZOXF6r9KD9vjkuQI,12889 +gradio/templates/frontend/assets/Index-CBfSpNAf.css,sha256=QMZ2hTIko0iQuK4iK2fUliPGYbErfkA5j_usuFgCnB0,3723 +gradio/templates/frontend/assets/Index-CEkpRavc.js,sha256=NRa2A_5XXoYBdRT4oK0QC1zsUUFSyNQu2ssu1hQtn38,996 +gradio/templates/frontend/assets/Index-CPzQF6ks.js,sha256=5BQTc6HGmxhvDQ1v9F6LgKNp65-44DtGOIi71Mq73_c,8713 +gradio/templates/frontend/assets/Index-CRgHWhLi.css,sha256=cyC9AUCsugoAquoENrOlhwNiMez6iojFp6EWT2L2BMU,278 +gradio/templates/frontend/assets/Index-CWf2xCP-.css,sha256=QEwzWAB4s1WI_HAKDzjmYECoIaOpll-kUufUEOScGNQ,2050 +gradio/templates/frontend/assets/Index-CWg6ZASC.css,sha256=urq0xfX2BJC89sXiObs-0WtxIGG_4GWDOkHmjz-QN-A,902 +gradio/templates/frontend/assets/Index-CcsdfK63.css,sha256=k1Aj_eekMGbUsBcHdLxP3z4UThzYbicJyrXQLlRR1Ww,3268 +gradio/templates/frontend/assets/Index-CdmNcLYG.css,sha256=rS0xLYS7yqU2TDJFWNghOM2VInCV74Vt7wYUKwNqNSk,10128 +gradio/templates/frontend/assets/Index-Cgx-aBqH.js,sha256=0ks1GxoBs3CCnWLlOvtPDO9Pq__WqNTrbdjlYiWkXNY,1576 +gradio/templates/frontend/assets/Index-Cj6XGCNo.js,sha256=etaUk4rZns5Xhs3Iq8miHp6YBLgdQvg59Q-TjeatNWA,9872 +gradio/templates/frontend/assets/Index-Cp4EMr1v.js,sha256=We6Qb2ipWKOYRgaZ0OcY-yNPLpZcuCbLXVPwNRHIw9c,116047 +gradio/templates/frontend/assets/Index-CqWGT-SJ.js,sha256=FuGrHzOur2Se_BOnIAqRnlZLMC-ww2Df9Hb0NHyDY3g,3631 +gradio/templates/frontend/assets/Index-Cr_YPqE0.css,sha256=u5lEkzlRyhCcHhmf6gYt8Qm0jd2zDo6kUY4_PjOnom4,4647 +gradio/templates/frontend/assets/Index-CuBpy66D.css,sha256=oBUnuIdCE6hOiOJgiW2-j088xAMXT74gdYW7PqTYCek,2794 +gradio/templates/frontend/assets/Index-CvOXDAXN.css,sha256=URrFlkk07fNX08HHk_JDl_pc6D-WbO8rpEFkfbwzbiM,2666 +gradio/templates/frontend/assets/Index-Cwp1HNkg.js,sha256=mQhcrZJQkMU5Kzm8KCvJV_8TXHzNvFujZieEgbC9cNo,2656 +gradio/templates/frontend/assets/Index-D-h_yCjW.css,sha256=tFF9EPUWscNXBeYzK1AaIqEI3hO3ajeSvD_VFdoz4AM,6689 +gradio/templates/frontend/assets/Index-D-t5joK92.js,sha256=4nkRjp7EaLaAzYpySm1mnO3wYcQckB9yEJmCgZQZGY0,30456 +gradio/templates/frontend/assets/Index-DAlLRNvy.js,sha256=FLRTTcc1E07R0DOAoLE8DVI8ljKAAAIwbRw_6fQf2RQ,660 +gradio/templates/frontend/assets/Index-DCRdhmCA.css,sha256=1ukY5jOFol70BkEysBlTHsui4Q60pjB4JlidC0I17Uc,316 +gradio/templates/frontend/assets/Index-DKIzZVIo.css,sha256=Q4Xm58GfMzWM-77-0BEoh1XdpdLNBDnQKrUVEDBl9dc,91 +gradio/templates/frontend/assets/Index-DKpOrjPv.js,sha256=sr8y5KtGWzx_1c1w-WimlGJwQo1Yh8XIH_P-Ux3RSKQ,16640 +gradio/templates/frontend/assets/Index-DOWWMP04.css,sha256=C1cYwPGjkqtTJVWyEfZeNPNl0McNwcj8e9P7o6GUHzQ,3091 +gradio/templates/frontend/assets/Index-DPrNLxxB2.js,sha256=RjimhWq7DFvKCw_iJHyIfO9OupLOn-3NIVhchwXkIsI,10412 +gradio/templates/frontend/assets/Index-DRCpmDeD.css,sha256=ZFERJ0zoDBYZaUkzkPhLo6AYGOp_Qr14gbHPqpON9Xo,5952 +gradio/templates/frontend/assets/Index-DSwIN9XJ.js,sha256=XRkg1V_zn9zKEh7PU5ZFOA8UOemk27JWfYYMPpGUX7s,27416 +gradio/templates/frontend/assets/Index-DTdApZSv.js,sha256=E_xFq8fkbKA686ckQ4fhBfsUB45f-cMiOsMeoDi6_oc,3730 +gradio/templates/frontend/assets/Index-DUAJPHl02.js,sha256=POd3j5uGKBcI_QA1Rs-0G9bbOguf_-lm9OHndSn80Q0,13358 +gradio/templates/frontend/assets/Index-DYkLshQb.js,sha256=T7zItYU3DG1jpB3LtUEipjlQeK1TroZDZRg8wRo874k,2949 +gradio/templates/frontend/assets/Index-DdCFxe0P.js,sha256=s2-VQ73yhx6k-iFvgo19uqWYaD2zBusKd8UEOqeOY9U,292 +gradio/templates/frontend/assets/Index-DgD8sjzA.css,sha256=turFrKZOURmRyPwyuKlymWETlIafywRJyD5uHfbt2aM,445 +gradio/templates/frontend/assets/Index-DhGZygOA.js,sha256=LzEtulhJX5N66_nWKRhDIetuy-woZbqYcKWSQqQLbHU,4525 +gradio/templates/frontend/assets/Index-DkaV9IGe.css,sha256=uB1KexJ7ei7CWYtOX-DbTGvqPcF4ZNcrFK0dxaosVz0,2245 +gradio/templates/frontend/assets/Index-DmMp0-rK.js,sha256=Oodv-qGXjD_vtH4iLjpf6vMhBr4hqc8gAiAy0BYSioc,3333 +gradio/templates/frontend/assets/Index-DnxvIExx.js,sha256=pBMXff2rGu286FNa8cx8kbXArg_oQtf6zMa6yTOzk7U,4046 +gradio/templates/frontend/assets/Index-DrCM5gzc.css,sha256=aJb3YED5Fk9ORC0eYKbkRugkzu9I0_ICjeUehaLG6Ko,478 +gradio/templates/frontend/assets/Index-DuuyCZYu.js,sha256=0_1zGfCYA_WAltvf6fl6056zYbUCLmqBcD0AOqZeEDU,2149 +gradio/templates/frontend/assets/Index-EZ26xow6.css,sha256=auGtZXVqHCeEUiNMenXeRW-i-FBOxRPGZdZPe8dQrho,9098 +gradio/templates/frontend/assets/Index-EcGL5Mc3.css,sha256=fWjzWPBqWWzgMsz3Jv_6hXKfiO5hUvZ5_p-QdWkexgg,2606 +gradio/templates/frontend/assets/Index-GgT5NFWC.js,sha256=nQmmZybOVZQfVfg5-Ub3YyJNlTcNAiRTha8vGhMvjhw,10018 +gradio/templates/frontend/assets/Index-HSTED4K72.js,sha256=xxDh5iJsO5BbPVgG9wAVtYOoa9qHCdDtHN88Z9NrF7Y,1419 +gradio/templates/frontend/assets/Index-LKTY8Jbn.css,sha256=5viMA5oyUHXlB2MFqxu3qrD9Jlltb7Xrz7RvDQdYkcE,704 +gradio/templates/frontend/assets/Index-O9LU53nH.css,sha256=pw_nTjekHpW6kg0hiHInsqmttAdH2DYg3bXVDZTkmXM,13082 +gradio/templates/frontend/assets/Index-OVRKBlkD.js,sha256=zuAsy34lvQ20qwCPHUiU41bkca8a9UflNqJKUeITgfM,2139 +gradio/templates/frontend/assets/Index-QeApph23.js,sha256=O2j1HE0Lm7XeGeKMPG_KiU4ME8pUIul3ADLAyZvVtQU,6739 +gradio/templates/frontend/assets/Index-VzTVYr-q.css,sha256=cNtSUzNwqZKgPTm7k49tTizp9URAj3v9egjAukxYdHU,196 +gradio/templates/frontend/assets/Index-Xhg3Ucw_.css,sha256=cTtcpRUL8MvpsNBDZnkcVl7CySjCHiE13yPbCymZLTg,135 +gradio/templates/frontend/assets/Index-YfXSgqSc.css,sha256=plzSQLi_7eCiRXTewPmlgPLcnX18UyDM8fvabo-bA9Q,2885 +gradio/templates/frontend/assets/Index-dp8qAiZ6.js,sha256=gctIV087mCz_GuiVFsI-sYv_zQjn5gv0HX5xR0PLTi0,963 +gradio/templates/frontend/assets/Index-j-xwmL9e.css,sha256=rg6mR_9DQJM46lx814rQRiy5zMddd3dn719_Mp1IBXg,1902 +gradio/templates/frontend/assets/Index-l0AUS9hi.css,sha256=m-3De8prl0cjz2B4tCasXHNZIdiaCP5N2ckrWfpz-fU,348 +gradio/templates/frontend/assets/Index-nz772N1q.css,sha256=Gg23_9BE7pkN9gLDcXs_Ttqxu6joBDRup38h6z2eL8Y,2134 +gradio/templates/frontend/assets/Index-q5yZ9Rht.js,sha256=Nm-yvm3pZbBzkl8TrGHqEYIM-WwGxn2m6iVjKRi05RQ,2068 +gradio/templates/frontend/assets/Index-qfFmvSx9.js,sha256=w1qC6sJTteYGZmIgFyK_nE5xaMDmrtwt6BVqvlDcRsY,3700 +gradio/templates/frontend/assets/Index-rMZ1EyqX.js,sha256=iqbi2T47zCeTVcHthcWHD5PyTQ8poovtVFg5EVIEeFw,12436 +gradio/templates/frontend/assets/Index-viNnK3Gp.js,sha256=S1xdna1_u2U874oFOR5VaqDLEioJu3xMVL3P8iuTiHk,4134 +gradio/templates/frontend/assets/JSON-4hsSZ3V7.css,sha256=3fZxGHKBpF5j5dsTAVg15ez86I1qnQKVmSx3nRv4GBE,2279 +gradio/templates/frontend/assets/JSON-_J_eq5-e.js,sha256=kl4jiqSc4b1FSMxSVxW-9PfCzegEYSEyZQwm4hk76uI,6366 +gradio/templates/frontend/assets/KHR_animation_pointer-B04TDpqz.js,sha256=0Ee5OArpxt6oDcV8vhaDrzTRXaMjv3YSuwJCi304Iso,15537 +gradio/templates/frontend/assets/KHR_draco_mesh_compression-C3c2cw4F.js,sha256=wUPI4FKVcf64oWz6EZ1Kz8h4kyiSq55FevmpKD5pEmo,8990 +gradio/templates/frontend/assets/KHR_interactivity-396vigfx.js,sha256=_qK4A7CkQeOO6OWq2S5Z4aNyVxzxNRq02GCSEkNbN3o,59141 +gradio/templates/frontend/assets/KHR_lights_punctual-DGzR5JuQ.js,sha256=QkCLgY5wmKeNF8ktGNTkZhQM-AthyZt5RWVPd2a_OTo,4496 +gradio/templates/frontend/assets/KHR_materials_anisotropy-BgVL9UMc.js,sha256=tj5PqKEME---Nggd7ksAmFqZGfrgSqrGAbo7K8-yqrY,1192 +gradio/templates/frontend/assets/KHR_materials_clearcoat-DqSaBzCI.js,sha256=SmE-hPewxXxy4Y_vWAoegWCY1bjj1VaHUjuHVzsQyk0,1720 +gradio/templates/frontend/assets/KHR_materials_diffuse_roughness-DEaIc7gP.js,sha256=q6oLgO-8HJw2yWcE7ciuWCQNOWRecNGDNEaWboFJSAA,1011 +gradio/templates/frontend/assets/KHR_materials_diffuse_transmission-Cn7e4u5U.js,sha256=gAVOpl0nmQ1aCdwLwA_vNZ_tSIRoeefzleWmdBxyCtQ,1553 +gradio/templates/frontend/assets/KHR_materials_dispersion-DfteSuZO.js,sha256=p_gGXoxr_9SdJ-FvRTqhQx1xnbcKsAgnDmcyJHhoy-Q,812 +gradio/templates/frontend/assets/KHR_materials_emissive_strength-DxUj5gXM.js,sha256=NP9mosny510veWTmMpC9-lD8NmMbBSsAufjYGPsGBP0,727 +gradio/templates/frontend/assets/KHR_materials_ior-DlrWA479.js,sha256=S9DqwhzV5zghoziJYsYVN1xt6jyTrb8wshdOVUH6_C0,759 +gradio/templates/frontend/assets/KHR_materials_iridescence--LQu-rbt.js,sha256=Ds--vDUaI2aQ9KB-Ul9TWlrRIl_pkY2X-RO9Yx43pAI,1345 +gradio/templates/frontend/assets/KHR_materials_pbrSpecularGlossiness-CiFzKESP.js,sha256=V0GiqRM9JG3oQQ3rzmk5pd9ocm8gfu2q0e5uCq2VYDQ,1670 +gradio/templates/frontend/assets/KHR_materials_sheen-BZSK3pt-.js,sha256=fDxhfOpwy-JTM54rl_1GwgtF_gVnrjWCFftB9804bOo,1359 +gradio/templates/frontend/assets/KHR_materials_specular-DsReiUoH.js,sha256=jybao5q4Mkz9oGlyP6rGurTIUorTzvg4cDo2jpGu1tE,1504 +gradio/templates/frontend/assets/KHR_materials_transmission-qiRnI9rL.js,sha256=fXUJ5zltArlOxDm9c8lquRjvmHflJ4ze7qKq5PyXbHw,5805 +gradio/templates/frontend/assets/KHR_materials_unlit-DstfeU3c.js,sha256=RBRAYH3un61VJX1BpgGIfNN8kjDCCj4HKvfSmlYjN7I,1066 +gradio/templates/frontend/assets/KHR_materials_variants-B74-CXSu.js,sha256=iy2XRbQ8TgKSGFvuSVwG4GjoG47h7hZI4BgPLg5CUiU,3809 +gradio/templates/frontend/assets/KHR_materials_volume-CaX-mh-O.js,sha256=aJ9zLckaiWSXPSwQ6piooehcEka4EzdxveZgn-VTDtY,1427 +gradio/templates/frontend/assets/KHR_mesh_quantization-BXdVmtDr.js,sha256=xrzI7c6EeriQFtkUw3NKCFTdhoz6KcmlyU0frXL6GLQ,236 +gradio/templates/frontend/assets/KHR_node_hoverability-B8FPab-Y.js,sha256=PQkhSQIazDEp25V1YLW4a8Ge98-H7dnlOPjUItuJKYs,3342 +gradio/templates/frontend/assets/KHR_node_selectability-DXaAKUiO.js,sha256=kSUoF6b0bmZPhXngZIgFLIvY9jRKpdn-lTd5cO8RYBI,2138 +gradio/templates/frontend/assets/KHR_node_visibility-jzBPoi3L.js,sha256=afftg41_ct_lfZSxmhTD6duw3JDNLMRy1M9UhPRsCmo,1001 +gradio/templates/frontend/assets/KHR_texture_basisu-uyXqCQUJ.js,sha256=Eu9yh2lcu0M-3RuMmvky8sqEQcxUEruKz6Mwyj-KUFw,738 +gradio/templates/frontend/assets/KHR_texture_transform-BGJSK8wl.js,sha256=BgO8h0Z_j3TVsLqztJGVuqv2ERx1Q4gVD9mmKkDUotE,817 +gradio/templates/frontend/assets/KHR_xmp_json_ld-D2HTGqQz.js,sha256=XfLwHlglMot63cnkSi9SuZ_xExnpfbyj-IurvTvS5FQ,641 +gradio/templates/frontend/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076 +gradio/templates/frontend/assets/KaTeX_AMS-Regular-DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516 +gradio/templates/frontend/assets/KaTeX_AMS-Regular-DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632 +gradio/templates/frontend/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf,sha256=B9jjA85PwStLtU8QBBcN0ZCh89tF1AD-aAYN8-CJcmg,12368 +gradio/templates/frontend/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff,sha256=Gua9dHVZDpfn8UWongnM3jIvemvAuRYHsci47igpD-0,7716 +gradio/templates/frontend/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2,sha256=3ncB5Czx9M8LdmwD-yeXcgfu4vT9XXb6ghiEBtpD6kw,6912 +gradio/templates/frontend/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff,sha256=M5jdAjAlV6eT8oY_iOAtls4Q3yq_-gfI6fqQd1EW5lw,7656 +gradio/templates/frontend/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2,sha256=XVPnCtYHwjUhYt7J4JI_tU7Nr6zL9gTNjc99APrLmJs,6908 +gradio/templates/frontend/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf,sha256=7Qt0Ny_u_LucBmay4hDaN7fkn6f7vz7rEdtfaT2s-7c,12344 +gradio/templates/frontend/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf,sha256=kWPfnHEiQy5klbQin6kHHPmuhqdYrl78SSTsLhptvOE,19584 +gradio/templates/frontend/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff,sha256=m-fOuIAEq4rRJAgiRvv8ykCR42OF1Oxu0d9nN12tUPs,13296 +gradio/templates/frontend/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2,sha256=dERO_Vk8AF4_RXO0RSRwTArwqTf-kRzKnpQGjQ0UDT8,11348 +gradio/templates/frontend/assets/KaTeX_Fraktur-Regular-CB_wures.ttf,sha256=Hm-VeekOLKw3-PYKWXxDbgdcEUOFZSt8vrDewEISkbM,19572 +gradio/templates/frontend/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2,sha256=UYFNJw0G_wJV26B5mZT6TYyE0R8JlR1HWV9Kux82Atw,11316 +gradio/templates/frontend/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff,sha256=Xih1O-cX2sl_VZ9JvBC-nPPBJN3KvaZlnRHLaP68ZGM,13208 +gradio/templates/frontend/assets/KaTeX_Main-Bold-Cx986IdX.woff2,sha256=D2DRuJeTjskYyM4HMJJBG6-UOPZzlGVpP_GLD50gsCE,25324 +gradio/templates/frontend/assets/KaTeX_Main-Bold-Jm3AIy58.woff,sha256=x2xdaWKX1RucsWOcfaQzTw597IG0KxEhO14l72cbuCI,29912 +gradio/templates/frontend/assets/KaTeX_Main-Bold-waoOVXN0.ttf,sha256=E4rCjRZjswN-nF9SNx-lxj2DJPSjjSLNVz5uo6P9DPg,51336 +gradio/templates/frontend/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2,sha256=mc1Co8By2Rjy9EmEqAfPeqFuE1Rf0IdfwHxsZfmecVs,16780 +gradio/templates/frontend/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf,sha256=cO4fZKIPIEjCGUDvRtAUT9IVuqlTymmv0eMemFRPcI8,32968 +gradio/templates/frontend/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff,sha256=pvfsDYRqx62XWtuJWcN-1JuUrLxK5DbbnOniAofkpkw,19412 +gradio/templates/frontend/assets/KaTeX_Main-Italic-3WenGoN9.ttf,sha256=DYWufMMPI3kKfxpYxKES_cqKrnaba6EUKa8dmLG2yzo,33580 +gradio/templates/frontend/assets/KaTeX_Main-Italic-BMLOBm91.woff,sha256=8dbvhvOxGlKL1RhRmb0kQ-yysN6tltiGdLWiwSviS98,19676 +gradio/templates/frontend/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2,sha256=l0ecpszpBqvJYeyslvql-couYbjnZw1HWCa83umnwmc,16988 +gradio/templates/frontend/assets/KaTeX_Main-Regular-B22Nviop.woff2,sha256=wjQs2Lhp4BdSqTIdwXIT_EDU0Ex5aIwdQ_LPMWq9eGY,26272 +gradio/templates/frontend/assets/KaTeX_Main-Regular-Dr94JaBh.woff,sha256=xjaNh-iho6XTN2I9g9jcS4aPJCqa1HYjfW-NHg8WjNw,30772 +gradio/templates/frontend/assets/KaTeX_Main-Regular-ypZvNtVU.ttf,sha256=0DMvUoaDcP2Drn-kZHD5DI8uqy_PErxPiAgLNAyVqDA,53580 +gradio/templates/frontend/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf,sha256=-Td6sCcc2lmvJLz_vUak0MijVy_6_bs43irV6nsNXuU,31196 +gradio/templates/frontend/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2,sha256=3Ec0TbtstbZVyEYNVh9N9fUBuQyAStPGzsZf4yI1GrE,16400 +gradio/templates/frontend/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff,sha256=hQwK9cIjhJf-uvXkYdiAv0WMNB9C9PMw8bGrVpixmY4,18668 +gradio/templates/frontend/assets/KaTeX_Math-Italic-DA0__PXp.woff,sha256=io0kRYE3GRK48_WiPiQ3yypZzZvK67A0bnIsBXN6JXE,18748 +gradio/templates/frontend/assets/KaTeX_Math-Italic-flOr_0UB.ttf,sha256=CM6Y5RsE1YlFowHmOeAraZivKf39Yae4r90Hu_xHnUo,31308 +gradio/templates/frontend/assets/KaTeX_Math-Italic-t53AETM-.woff2,sha256=evWMXsjxMqLd3pAnxteBTezOTTuCKhEZKkKiDi6XMmQ,16440 +gradio/templates/frontend/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf,sha256=Hs4D95-VJ31X3H9rQ1p04TebDUYQSoUwKGtg_0k2nqA,24504 +gradio/templates/frontend/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2,sha256=6ZrlEUS_EjLvzBv-Wt02JixoZrD6qyT6dXQOG5hXemI,12216 +gradio/templates/frontend/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff,sha256=7OA8_YPiLCEs3vZv64RC0loIO-uYjbPxiD8_lzjXULo,14408 +gradio/templates/frontend/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2,sha256=ALJqyCXiCVBWOW4FU7isJtP4rRWMOCbii0xFs4XEcUo,12028 +gradio/templates/frontend/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff,sha256=ke5nUAzAEpqgrOOsXGH_FpIQLw8x0CtpNH-6Ndy3W_I,14112 +gradio/templates/frontend/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf,sha256=OTHdgfrthroCG7K73Db1vtmjjWtPQHespZsmWqGwIIM,22364 +gradio/templates/frontend/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf,sha256=826ol-GfSi5XHR6QDk43EOQ43rBahCSGBFugo-YWpK0,19436 +gradio/templates/frontend/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff,sha256=EeTcimRx_21u5WHVPRD96PdInnmCV_9EnF03wZdDVgU,12316 +gradio/templates/frontend/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2,sha256=aOjHPvQq_TzOxYvw-6MCzORIk45_wCCl4x-KlS7uE0I,10344 +gradio/templates/frontend/assets/KaTeX_Script-Regular-C5JkGWo-.ttf,sha256=HGfwaP6ouwm_CZwIixz2S9J1Fqbgf0aENEhzVku2amc,16648 +gradio/templates/frontend/assets/KaTeX_Script-Regular-D3wIWfF6.woff2,sha256=A21OlRSbaf-bzAzVV3Hv6yX_o5Ryk-aazXjVrDKMaEs,9644 +gradio/templates/frontend/assets/KaTeX_Script-Regular-D5yQViql.woff,sha256=2WzfKzvdTWSo_V90pMRn8SOopzkxzUNYifCP-vm_lHo,10588 +gradio/templates/frontend/assets/KaTeX_Size1-Regular-C195tn64.woff,sha256=yUPMmGOE9Z6GvqX9fcUKnE3-Vnp8BetA1nkHIN6tl8k,6496 +gradio/templates/frontend/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf,sha256=lbbS8aUBc7_tuMY-HRyZsQQn0KTfQgHLRFE7ImlRois,12228 +gradio/templates/frontend/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2,sha256=a0fEAWa22-IaXfyncYQT8hR_0jmb4bpgXYrTnO3yXf4,5468 +gradio/templates/frontend/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf,sha256=prIJn7VVxg46DbOgiELr8dcyxutOS_RJE2E77U_E45s,11508 +gradio/templates/frontend/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2,sha256=0ExUIZ-ersbU1P1C37KHhZdaR5TWsvxx5Wa5zW24Qt0,5208 +gradio/templates/frontend/assets/KaTeX_Size2-Regular-oD1tc_U0.woff,sha256=IBTFI8MhC8wWZkjE1MxX8Ft0ffB6JCd79xxR5n3Hnj0,6188 +gradio/templates/frontend/assets/KaTeX_Size3-Regular-CTq5MqoE.woff,sha256=ara2Lpti2uLADdkPeRvRCVC-Dsw0kNfWBF9Rwuj-CUk,4420 +gradio/templates/frontend/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf,sha256=UA4E1U8NUWZjMsnSCJqoA74iqoeOylOeWfpTxuUisII,7588 +gradio/templates/frontend/assets/KaTeX_Size4-Regular-BF-4gkZK.woff,sha256=mfnGdQtInJRivwSQC9P5Od-bgpM52qqqme9Ulc3d6lg,5980 +gradio/templates/frontend/assets/KaTeX_Size4-Regular-DWFBv043.ttf,sha256=xkc2fR3U4WJGhxfQIOH8Dx3Fwm6_3_vlUmFxO_iMWHc,10364 +gradio/templates/frontend/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2,sha256=pK99QURAocF5CCXPtwDPnPQ7DyxLBPDrxSMBGtmFPsA,4928 +gradio/templates/frontend/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff,sha256=4U_tArGrp86fWv1YRLXQMhsiNR_rxyDg3ouHI1J2Cfc,16028 +gradio/templates/frontend/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2,sha256=cdUX1ngneHz6vfGGkUzDNY7aU543kxlB8rL9SiH2jAs,13568 +gradio/templates/frontend/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf,sha256=8B8-h9nGphwMCBzrV3q9hk6wCmEvesFiDdaRX60u9ao,27556 +gradio/templates/frontend/assets/Login-CfvgKHi0.css,sha256=Enr7mdZFm65qFoC653jbYT5aYSaaR_W1bAcoxqsHKVw,578 +gradio/templates/frontend/assets/Login-DswHWqbB.js,sha256=magCIeDATH5Hx18gqDHSpqcZ-Yp8hGyNveqEQuhlBrk,2289 +gradio/templates/frontend/assets/MSFT_audio_emitter-D2XbcRAX.js,sha256=zCWoUA3jhuvbOMQ_-6MgmhzlWphkQwUMSD88YlwdMOQ,31055 +gradio/templates/frontend/assets/MSFT_lod-BDS_l_bP.js,sha256=qXJvNbF0FUMAboNITsS6njNtI9JjEDMclnfYmhA3ygo,5781 +gradio/templates/frontend/assets/MSFT_minecraftMesh-Cq5aH2LY.js,sha256=xDmlM46p3RgmBhs-ehYkxiNl1TmZha6nYYqLBetK7IM,703 +gradio/templates/frontend/assets/MSFT_sRGBFactors-CacQulS4.js,sha256=NFWVqsW1X5Vm7ySo1dRTPOrxEcx5A0mD9kwoLVBeAIM,728 +gradio/templates/frontend/assets/MatplotlibPlot-B0ScQYYv.js,sha256=AHyrRy30x8_EzxYhXLBosw0uOg22tg49fPkiWGl0Pdw,455 +gradio/templates/frontend/assets/MatplotlibPlot-DNA1T45v.css,sha256=JRvp1FL8JVMgDctiL4XMLHLgE1cjc8nPISH6qhMNCNM,247 +gradio/templates/frontend/assets/MinimalAudioPlayer-CzMbAGNO.css,sha256=NoasEkCwvfPspmVs0mdKjszDSSdBKsDlTxKDtAIMFno,1020 +gradio/templates/frontend/assets/MinimalAudioPlayer-DI4rPdjE.js,sha256=ZORlAdlFyI0G0QJxqnYpy7VcOiWF3zz2mFCveabcx2c,33663 +gradio/templates/frontend/assets/Model3D-CAhmGe0p.css,sha256=B55gJqzxYdioGNWo8XMoC1Yq6vOTTe38AL9wgn5eCvU,264 +gradio/templates/frontend/assets/Model3D-kUHpQOvq.js,sha256=glxu-F2L7lp67bJ2ScE1x40CDQpaRv41UeCG-jnjMPQ,8053 +gradio/templates/frontend/assets/Plot-CdAORtfr.js,sha256=NxJiAkE5eO6UZKeg3scLgjX-SC-B9kKBlj9KFX6v1Go,2477 +gradio/templates/frontend/assets/PlotlyPlot-JYjKXZQ0.js,sha256=tue8Mg_AYzkd7lrcBsSjg3z6LR7RqU3YHHmWe8wlhgY,4594709 +gradio/templates/frontend/assets/Settings-CLcIyVb0.css,sha256=qAdkNYjSLMNdpNoFN32Ntgz1KdWjmz75sSzfyyJbP-o,2754 +gradio/templates/frontend/assets/Settings-DBFFtwXE.js,sha256=UVLExhP5lL4sQqYiozT40451uIUIAYAIREfGxmRgo1c,7047 +gradio/templates/frontend/assets/SharedSystems-DozfB4LX.js,sha256=IMzKU19i0vDua04PKpXZ-L7mCfEtyPe-lRTaMqzMlmw,59557 +gradio/templates/frontend/assets/StaticAudio-Dr1JIwK9.css,sha256=i-c_22dA74e9dx3yI2Xxdq8CV3TqY-sOsML28-k713Y,3789 +gradio/templates/frontend/assets/StaticAudio-YEhXY2b1.js,sha256=FiDX8AmkBYKHM4mSIEiYxWQZoLJN9Pn1JszllJ3ucvY,415543 +gradio/templates/frontend/assets/Video-DhlctVlJ.js,sha256=S6EwXZAhu0l4An5TZOcgr8b65NUEmGcBtbBkqYuJPHM,526957 +gradio/templates/frontend/assets/Video-DyHPMawA.css,sha256=_81qKERq7qDJeJeEb1MchvclUyWqyUbPvfolLWtKpnE,850 +gradio/templates/frontend/assets/VideoPreview-XzwDzWGL.js,sha256=3Z7D0B5IZ0wJadQUWoHUkjSPtiWAxiF26UPb_LsHhQA,13490 +gradio/templates/frontend/assets/VideoPreview-e2li-GXz.css,sha256=6hS6n_4vKcTZV-vx2eg-lpNJg0hyufdi-76z5bZrTVQ,4952 +gradio/templates/frontend/assets/VolumeLevels-KS6SC9_F.js,sha256=1NtQxiRS7CP3TidXrC56BE3yd70Ge-he9u1kyNlSxmc,329 +gradio/templates/frontend/assets/WebGLRenderer-BpWaOPEV.js,sha256=ur2yWfIcKEGpHvgDWFmMBk99vDCsM1OV87T_7zsmCV8,67 +gradio/templates/frontend/assets/WebGPURenderer-CW4voloG.js,sha256=byDq7QB9VuBzbay3P9NywsLrVWUdLyDwRzl9AtPjvvQ,68 +gradio/templates/frontend/assets/__vite-browser-external-B0RrT0g9.js,sha256=otBGbBUdmqzKO86XHkOC23G-zB5tzo1pP-4SY9RWeto,84 +gradio/templates/frontend/assets/abnfDiagram-VCTEODGH-CfrtwaDn.js,sha256=q6kzztF94jZB44XGfcU8BAPKiUY9XpiuYqSg4YL6p-0,1858 +gradio/templates/frontend/assets/abstractAudioBus-DTkjRtKs.js,sha256=d2CuohmC_7TyF2E5yc_ohEyqhRcjuQaqEPMorPQ75IY,119 +gradio/templates/frontend/assets/abstractEngine.cubeTexture-CQVhJu6X.js,sha256=ZuNbEMyIKBGK9kLeCoDx6X9ri_5yko2PNfLjE74b3bk,2292 +gradio/templates/frontend/assets/abstractMesh-C8s6FId7.js,sha256=cXIczW5yY4RR76CGrt1ibpLUkE7g3uFZEScQf_PdiHo,79385 +gradio/templates/frontend/assets/abstractSoundInstance-y8v__oR6.js,sha256=JhJCUdyl1vobygZ9mG61d2tooZVF3rQ9w_4jYJuCxzw,2643 +gradio/templates/frontend/assets/abstractSoundSource-BBOwr4LM.js,sha256=mNHbSlGpxxpSwIzT7phkp5jJ0KSIFs2IShjMAsuJlUY,1484 +gradio/templates/frontend/assets/animation-B_700h_m.js,sha256=pE69PMV79GfaQDvzF_V29Qg0QGX4mEmUgwUdaSStMeE,17066 +gradio/templates/frontend/assets/animationGroup-YcssqhCr.js,sha256=bIYj0rBFmzJCNn8jvTO50BtJdRTEXmUt-YmO3Wi40iY,34324 +gradio/templates/frontend/assets/api-logo-CCEtYehn.js,sha256=hA01zPEDb5pa-x3xPRhHQ6qEwSznKq4V21k-UBOZCfk,1891 +gradio/templates/frontend/assets/ar-GRtlg-rU.js,sha256=wMDRLx7bV38pdNknxwlqpQeqXvhTb90k8d_RrsTjQiI,6203 +gradio/templates/frontend/assets/arc-CPiob6KA.js,sha256=CtL-ntlNi5ssO6rk-7L7SG07lXlTAQUgzC0VdNm-jIY,3449 +gradio/templates/frontend/assets/architecture-7GRP2DOG-BZEqdDNw.js,sha256=mLnnmpq2WKs3CQdTKVpzQhxamxJkioXM9CvxmNpRRwA,131 +gradio/templates/frontend/assets/architectureDiagram-5GKGNRK7-DJAFoWtp.js,sha256=rTAKa5JK-kl_mOwuUBli_ho7G4-OXrP6UJwDYDQkZak,149366 +gradio/templates/frontend/assets/arrayTools-CyiP4af0.js,sha256=cFQASzumiO-DOqjIQ0xiqo0SN52FvOO6gFj0edpmV_U,628 +gradio/templates/frontend/assets/assetContainer-DHGiqS5-.js,sha256=T1W7gIgvlWui9CyprNr_FAY5j4GhHUDYqQXmn-WsUHw,25425 +gradio/templates/frontend/assets/audio-B-0Anr4d.css,sha256=kfoxQUdKJSN5c5n8HW0X3fzZjcDU7DXVQcKgh4Gsgc8,6078 +gradio/templates/frontend/assets/audio-gFQFODlq.js,sha256=t_QBAZOXrtI61ICU065KDyC4K6O19g3utte3bxsebcI,22255 +gradio/templates/frontend/assets/audioEngine-B3qIItuY.js,sha256=2ZD_RPBB38ClA41uLD_MQwtj6b_YpxK-pjXTGTYBaGM,24321 +gradio/templates/frontend/assets/auto-render-CnNQEB_4.js,sha256=V50Nr6ff0pXbAPeQJrxPYsB78JTLddEXSyYYgkbm9Ic,266214 +gradio/templates/frontend/assets/babylonFileParser.function-DfRu9gsf.js,sha256=71VK1TAbBQLh7EgPvJhZCZVIMjGwIRzqhZf50svbpJE,42 +gradio/templates/frontend/assets/background.fragment-4bfuMuF9.js,sha256=N9TPZsu3HYvKkaZjKSkTRHVzYoxNJ2QXXXn-P9p-uD8,9469 +gradio/templates/frontend/assets/background.fragment-Bdf8RFXE.js,sha256=57THs7iN-t2b2HdzNZ4Nxrv_0yvj3urBd54cwatu1ww,9715 +gradio/templates/frontend/assets/background.vertex-D1Ry2Gs0.js,sha256=yKxkuAWW7NbLjHUQQx_jQHhl8AWFrk36iGEORItROCI,3748 +gradio/templates/frontend/assets/background.vertex-MesTcMx1.js,sha256=n2ZJvGlc-3coArHnxIOChaL11_M3f-mXQY0hzaKPyR8,3805 +gradio/templates/frontend/assets/backgroundUboDeclaration-B9gdMPsB.js,sha256=jADp1x__l6raIF8ezVa0bleGq5UH1LiO8eLTOfXnOgI,659 +gradio/templates/frontend/assets/backgroundUboDeclaration-DBFuh3xm.js,sha256=G5SCLWMS3P4lpQFjDDotZXLrF7ZQw5Yic8-coa75PL8,682 +gradio/templates/frontend/assets/bakedVertexAnimation-ByrDP9UX.js,sha256=iTWHSaDlGycyovhI9t5nAUIwkrUin5P5kjB7YHvUICA,6709 +gradio/templates/frontend/assets/bakedVertexAnimation-DS-FWsHx.js,sha256=80Q9eGBw4LWUs69IaKQ-kQWOtTPEruBJglL_OtfootA,2785 +gradio/templates/frontend/assets/baseTexture-C06xSDOu.js,sha256=WdmjtDCU8stmALASYltElNvm4Q1pVlwSGZhhXlZuaLs,10691 +gradio/templates/frontend/assets/baseTexture.polynomial-CoXw3YcH.js,sha256=a1XaWiAptQskBKyvX-79ve6mGZA0Uu4Lck_jY829ojc,1049 +gradio/templates/frontend/assets/basisTextureLoader-D3d0PC4i.js,sha256=ILAfZHF03bcJGKiJHkpoYpjJ4rGIde1VCZuuCeZEf-I,8346 +gradio/templates/frontend/assets/blockDiagram-NRAW4CY4-CxxhHA47.js,sha256=eBKyJnuB0uGPQNTJZrv_vZ6u-zLsLBaTpdC9gYDxGKY,41513 +gradio/templates/frontend/assets/bone-CCgQH7Ym.js,sha256=nJEXBmlGvB59cUZPIZPTt3gCmeZ-uJMC59T-xkfj_TI,11635 +gradio/templates/frontend/assets/bonesDeclaration-B7wjhknY.js,sha256=Cy8PMaOGITz-ThsQgqsa64YiCcntD3KHVpSEUyyKSLU,986 +gradio/templates/frontend/assets/bonesVertex-BIfu6COM.js,sha256=S2OSozvPSTtAal3rLcA-uQKz-5LDM3MXbjDVIa09zb4,2701 +gradio/templates/frontend/assets/boundingInfo-Chj2o8gQ.js,sha256=8A0QuV55qtu-UNfhAuORenTM7h8uMU5dm8N1HkVoluQ,7961 +gradio/templates/frontend/assets/brdfTextureTools-C1Aqx_9W.js,sha256=siyZ69TETOONVkGjal-T2U2WJfy1lMNfsr6XZWTRldU,34508 +gradio/templates/frontend/assets/browser-j4vcKnNL.js,sha256=7X6BGfQOsq23d6X6ovQeSip5bIAfiaRM2FTZct4FSns,10837 +gradio/templates/frontend/assets/browserAll-Dy40_hnF.js,sha256=JjMgUQ2htChguW6DL1w4p39p-Lk6uWgi6IEfUipFbs0,259 +gradio/templates/frontend/assets/buffer-NdJbGuoF.js,sha256=5Y7o1mDU5hew3fz9_fKq6ksj27WjL6e2kGVS1d1N858,29 +gradio/templates/frontend/assets/buffer-RYS_o-MH.js,sha256=jGNQ3mVgfoQCnJ6nFGbmVfr25JON5aQbmE5g6Rb1G1s,10034 +gradio/templates/frontend/assets/bumpFragment-CAlQ_ztm.js,sha256=3phJaCjGh_7SjOyoaysrG-6B2tqigipB2D7zKhQy5Zw,7869 +gradio/templates/frontend/assets/bumpFragment-CXPA1fUd.js,sha256=YrY3_lx-9HsgGttSO7V37KkT5pxBi5eLyEr0N0JOUhI,6707 +gradio/templates/frontend/assets/bumpVertex-Djx3Dn9n.js,sha256=jHBy2-R6i2CsZiR01VNdDnv2IgeFH62zpbASb9vDbC4,483 +gradio/templates/frontend/assets/bumpVertex-ZynzIDrr.js,sha256=CmNfsxvwKqLDTqdLRfF1sXoS9zHjS9-cNmpkueyjFO8,660 +gradio/templates/frontend/assets/bumpVertexDeclaration-CmTepWml.js,sha256=gqehRfRkJUzeUV-2tmj_QERTfMk5pwShSEUURjhCl-w,302 +gradio/templates/frontend/assets/bumpVertexDeclaration-IbYKdQ5g.js,sha256=6s9KIqRlIl9UToilKcGY_48D_yjnn0BTiB-Cf8eIV5Q,355 +gradio/templates/frontend/assets/bvhFileLoader-BoFEgX3j.js,sha256=Pih7VW3YldFE4KcOB5YC6cGtsmadbieeUpuusJ9GW7k,5909 +gradio/templates/frontend/assets/bvhFileLoader.metadata-ta8MItWJ.js,sha256=FybQYzj8tWL7Fw-1IdCc3-Ze3uKSqinqBy3vCBvuR98,68 +gradio/templates/frontend/assets/c4Diagram-UCG6FXSJ-Ba6Cfqoo.js,sha256=-H7UYG1biOAJSynphuOwPye9tnHIVWgdAuuK56OCFJo,64789 +gradio/templates/frontend/assets/ca-qwwHSABo.js,sha256=NgB1g1U3FM1xcd-Q8g_MAG5ubSAiOHGEv3bB09cRi6Y,4773 +gradio/templates/frontend/assets/camera-BlJx-G8F.js,sha256=xvGJnihNOC2a-TO7cAm6mfaEMe5nMn-KvkOccXxlIQ4,18239 +gradio/templates/frontend/assets/channel-BbLZKcxZ.js,sha256=oDLDSD795BS1lL-Iqe8De8b6k0XkGJ_yye1nYunbTFw,114 +gradio/templates/frontend/assets/chunk-2Q5K7J3B-C1jixKkw.js,sha256=Z13Wy67qO_CRumr7OXz0w96_a2bMe-5tEV2H-oMeBfw,191 +gradio/templates/frontend/assets/chunk-5VM5RSS4-ZNzvKenW.js,sha256=zufJj5hECx-_BUi3VtQhCXZCx4RUe4NVFfESS5zdQ1E,362 +gradio/templates/frontend/assets/chunk-75Z2AOVW-DgJGkfqT.js,sha256=lbJvE1cEEJi-z1YCvoYteE2S3k40Ank-fLTcMXcfivM,16498 +gradio/templates/frontend/assets/chunk-CKBBP62Z-xcPxlfNz.js,sha256=NgbkfLnSlyjEzk_8o9hPuP0lHHMIfEacRwxwFvVG_wI,3654 +gradio/templates/frontend/assets/chunk-CLGD4ZFX-CC69asmH.js,sha256=b_DSeVseUhNSKJ0b0NV4JVVk-FBu54grlk42n_RL5bI,350 +gradio/templates/frontend/assets/chunk-DSNCTWBM-BURqEoYt.js,sha256=D9h3mDdjROpYlqiDanZznSaBNAG4UUSa6BRg3ufo2w0,10389 +gradio/templates/frontend/assets/chunk-DU6HZSFF-D9l4Ke0S.js,sha256=LGBPetTWUYvzoSXt7z9gJcjI96lw2QKEV8xMqJdwF0M,235607 +gradio/templates/frontend/assets/chunk-F27PBJKO-EzsHCrhF.js,sha256=SErccODTZf3Oa_3GtAet3H0ImOQc_i9CKD2VGpX5WyI,2001 +gradio/templates/frontend/assets/chunk-FOHPRMQF-Crrb2Aik.js,sha256=BZNRBIVdan4SYEII1G8gf-JVDG4R_i_4buRvEp19tXQ,662675 +gradio/templates/frontend/assets/chunk-G27WJ6UU-bxkGJhOY.js,sha256=h89COWCJ0xwiq41OYJryplg2420RJqd4b7PEBmYoi6M,37753 +gradio/templates/frontend/assets/chunk-GMAD6QVW-fpz-5TVJ.js,sha256=vte_IzdPBvi0lvnJXn55fqxLiXQEkuCaSJk7dgWO7e0,51915 +gradio/templates/frontend/assets/chunk-JQ64N6SF-Bg1WzdZJ.js,sha256=gz-3gv4pbuJyIlut7OVKPzqvX4mXlNxrkbbRxNsjQj0,9738 +gradio/templates/frontend/assets/chunk-JWPE2WC7-DVXcaiue.js,sha256=EeVr6vJSbnMEA20ntOCD7WjO1gBm-t7Q5oMRXaPfoJk,223 +gradio/templates/frontend/assets/chunk-LCL6LL3I-CBxzyv_Z.js,sha256=vXTqyFyeTg9-qWyjmbJKZ3mOWBPPm_qct4THFaX87ss,48889 +gradio/templates/frontend/assets/chunk-LNGE3PJU-OosUmKKA.js,sha256=YnT8CdDEFqBngxK1vdyA5WuoCt9dQQFAdDaZvF_3I4c,46390 +gradio/templates/frontend/assets/chunk-NZTU4WRF-CvawLPWH.js,sha256=HKQbXVfdtz3tRfmREGfphccs_U0hW6_gMtaglbJhyMY,580 +gradio/templates/frontend/assets/chunk-OBVCFTLP-DRxGA7r1.js,sha256=dCkl1aBasdy5W08awvlCtotzqBA05VL8gmOuCtRzzSk,1414 +gradio/templates/frontend/assets/chunk-P2QGCYS3-DVnZWyIc.js,sha256=XSe_rPTd9NKiFt4E7FgQnWjKtgTX3p0jSbTiE-zllyU,1947 +gradio/templates/frontend/assets/chunk-POPQ4Y6H-B8X3SnG5.js,sha256=_y44Feva5AyVLJxaLDf4otk5MFQqKAQZIAdNM_UQ1zU,574 +gradio/templates/frontend/assets/chunk-PWAF6VOD-j2wOPLPZ.js,sha256=iyo3NFFar-0CVDiLXDyNW4TbTwwY_PWyNbK8gGFrUR0,5835 +gradio/templates/frontend/assets/chunk-R7TYR2AO-DNIk6As1.js,sha256=zFmp5uClTDc3O9BcKU0tYfOC9cCHvTCfldvjD2d6HQA,36165 +gradio/templates/frontend/assets/chunk-RHFEMEQ7-C8ELxRTA.js,sha256=CRe45LfHOg45I09ujPIsAtSNCH1H-pWotGoEpVjg2_o,61316 +gradio/templates/frontend/assets/chunk-SVP7TREG-yUVveWqY.js,sha256=b4zSjZpZtT7GIUgSJVmthu6Fe9DTB0YwFvmBuktIlag,15646 +gradio/templates/frontend/assets/chunk-TEH6E4GO-BqW35q8Y.js,sha256=L-5AglbLXyf1BK3YnpqydfbHdLpq4LU3mscabY2IzkU,104880 +gradio/templates/frontend/assets/chunk-XXDRQBXY-CNCZShDp.js,sha256=juXkdwmv2tdULbFE35BEtRr6h81xKU6M94D6mvPuKL4,291 +gradio/templates/frontend/assets/chunk-Y2CYZVJY-DsF7k-Jl.js,sha256=p042afNWrQ1nzFIy8eD2L_RUT9uOcFfPmlABoOpvwsw,155 +gradio/templates/frontend/assets/ckb-Ba9LpNR1.js,sha256=ta_fzLO76iY8uCft2fzMby21jJec0THRYOAIeKatosQ,6636 +gradio/templates/frontend/assets/classDiagram-DTDB5LWJ-BqiFzV62.js,sha256=qD2mhmk_5Mpx7iI6Sj-bXGYbuGMuR1jFuirl4cQpsFU,780 +gradio/templates/frontend/assets/classDiagram-v2-JRS7N3AN-BqiFzV62.js,sha256=qD2mhmk_5Mpx7iI6Sj-bXGYbuGMuR1jFuirl4cQpsFU,780 +gradio/templates/frontend/assets/clear-DVeoE1DQ.js,sha256=fN7CXlb4dPEhvRGRXZv2yJGC9TW_Ud66-A4sg3eLgoU,881 +gradio/templates/frontend/assets/clike-TDGoNApd.js,sha256=3-qlVcg86CsH_puntf0lhUEtSf34radqYShEGEMDV3M,21962 +gradio/templates/frontend/assets/clipPlaneFragment-CSA2ud-B.js,sha256=QagQx_Dhu47I4db9hVrIFbmLGqQLMR0PMltfaoZbFXg,1108 +gradio/templates/frontend/assets/clipPlaneFragment-DGqZJNeS.js,sha256=4qLrjhp74nwYWGJTBmjIpoGNwfpaKs8O5TPrYMHZDLw,1208 +gradio/templates/frontend/assets/clipPlaneVertex-CGSrwNQT.js,sha256=ngBS__bjnoEfG7aA-IzT-1wuTXQi3FB4OevThmH7t7s,1105 +gradio/templates/frontend/assets/clipPlaneVertex-gMyNlLVT.js,sha256=m8viCBtWSM5nCBWGPoB9m7sgwMRp1La7LbMaxoEwOU0,1289 +gradio/templates/frontend/assets/colorToUniform-CQRztlvU.js,sha256=DU_ImmK9IR8sPxwpcGn4S15SxDgduEUQH3MtXrN_jvU,126639 +gradio/templates/frontend/assets/colors-Cg5Vh3br.js,sha256=te-KsEcZ9tOsUST-h9Jg39ZVJnYEdQR0oUW7mSULC5A,109 +gradio/templates/frontend/assets/constants-B0j1q9gR.js,sha256=OXB8N0oQg3TclUvLJxKOp6j1Dq7xLLd-I4EtkvjuUJY,9949 +gradio/templates/frontend/assets/copyTexture3DLayerToTexture.fragment-DjouTQ_m.js,sha256=A4RLAyX7jdIebnlxr2HdQj7PeMnDZhhBR-pCXyVwfWA,576 +gradio/templates/frontend/assets/copyTexture3DLayerToTexture.fragment-N5mS4fDq.js,sha256=dhYlgSVolandryKjagXdmzu3ZmJgSzrH0sM3HxtTNAY,522 +gradio/templates/frontend/assets/core-CAXGlMNg.js,sha256=GEYVdYDERnLHPWVE3rKE3q4LsHN06txHrjA3PJwXED8,44529 +gradio/templates/frontend/assets/core-CzpTPg5X.css,sha256=rujSY8rSR0dsZEVqZhtfX5MePnFK1hQJTiK5HcfGBt4,3185 +gradio/templates/frontend/assets/cose-bilkent-JH36ORCC-CdYnSPm8.js,sha256=oxMGVdKfUZ0Rm2RWUAkvXi44Q3FKOjIFl5F38YwJAS4,81479 +gradio/templates/frontend/assets/cubeTexture-CZxYZFqe.js,sha256=sbhyR52KbC16zne7Khlv_Wdm8rr58VN65ozTCf0vi-s,6234 +gradio/templates/frontend/assets/cubemapToSphericalPolynomial-DTDwt2oo.js,sha256=j6OZRqpTCspCFL5GYgMIA3r02RrOSnnLKDwGRoiUwfo,2580 +gradio/templates/frontend/assets/cynefin-OW5HDTMX-ClAJJl94.js,sha256=FTTHU_ElDBhbeHEgpLUm9DJJ-O1LLeBnZHh_ftTZPPU,126 +gradio/templates/frontend/assets/cynefinDiagram-5FMLGOSQ-DLUo-Ysg.js,sha256=kxbBnkPC6xk7lC2iI47dDsEcMXvWO2Fp8tKkPAo1Ojs,9903 +gradio/templates/frontend/assets/cytoscape.esm-CyCl8rPi.js,sha256=dMYtFQX1CWiUvj3bJPJ91oHg3QXp1a-bVMBez9YHZeE,435570 +gradio/templates/frontend/assets/dagre-3AP2YEHR-BiucSCHw.js,sha256=G9PdKKg46D6zMaLPIoy2Blsb3lDtJuS2TqStwAFmaHg,10960 +gradio/templates/frontend/assets/dagre-BJJUWK_n.js,sha256=ZTzNoRDH6qQCGJyHBx2P1nhVU6MYYsGYaiAVHHnXKf4,36854 +gradio/templates/frontend/assets/dataBuffer-C-wqV4qF.js,sha256=wAe8qi--1EL7UR2l6w0vTvh5WMUT3wdTN_EEnCUkvak,173 +gradio/templates/frontend/assets/dds-AIxz3dcF.js,sha256=-oazS-0Fedi3GfQoZ3f5i--Krl3cb40Hx8r_lWmch2g,7009 +gradio/templates/frontend/assets/ddsTextureLoader-BdcG_E5P.js,sha256=eYn07WThAKgHh5VElPoXy4y_EYaYtlQAXSrM1Ol4Hsg,1253 +gradio/templates/frontend/assets/de-WxoFyOBn.js,sha256=RKCQcYaAlZyHSNQuZMmYb4niyyExNcaLKh_smkzADLw,4862 +gradio/templates/frontend/assets/decalFragment-C340LrdL.js,sha256=lzUJGR83BUAAp6iq4pYJ5bgUwIuyTBPhqs11hYmN2c0,351 +gradio/templates/frontend/assets/decalFragment-CpaPTi-j.js,sha256=u34MuN42yt75iN7ukKiyKAB7t9MlCfo-hwXWrO85G7M,442 +gradio/templates/frontend/assets/declarationMapper-KRiJkqcl.js,sha256=zJ68ph-t5xZM5HdzKTYiEYG4eQoY0z5AApX0J_8ms-s,33135 +gradio/templates/frontend/assets/decorators-BOtej2xA.js,sha256=6ncVdqaeHGi3LakFjTUR_ZPJza17WoFoGKv2jB-fTbM,2026 +gradio/templates/frontend/assets/decorators.serialization-nvaNJHRN.js,sha256=P43V_rE0bCLrSpdH3E4-g_XEUzfIkMc_EBTkGDiRLiM,4655 +gradio/templates/frontend/assets/default.fragment-Bhl83Q9j.js,sha256=hbdfZhtwrPYqnRJ5xI86EIuTKaRhmj9hfOCX6xsMu7w,16810 +gradio/templates/frontend/assets/default.fragment-BszfTii8.js,sha256=KcRz1VzsCGoRunt2DAeAmga8pxEgLvqdEqlyISs93iQ,16338 +gradio/templates/frontend/assets/default.vertex-B9GDrmsq.js,sha256=i-q7nMCIz6lnpHbTG3dBujCcwkOI3Zy057uzIv076wA,7482 +gradio/templates/frontend/assets/default.vertex-BjPSPGnv.js,sha256=5NArJttCROQF99kWfYl1ogEK-7BBenn7Keald32Q2_c,8183 +gradio/templates/frontend/assets/defaultEnvironment-5jBs1zfd-BA3To4RE.js,sha256=CGATFn2gEE41P_xO6Nx_L8YCL53QLESDaFSYmh4JxM4,83791 +gradio/templates/frontend/assets/defaultLocale-DMW9ha0y.js,sha256=QSKd3sehJoVfZMLsE8IS-WOINGYTNzBrZ_1XPAttLIA,4653 +gradio/templates/frontend/assets/defaultUboDeclaration-CxdkbynG.js,sha256=unDV20bd-fVr5S2IaAg_GvkNzOtxyIO2fVWFZJafHmA,1184 +gradio/templates/frontend/assets/defaultUboDeclaration-nsONIjia.js,sha256=xyw64ojj0v39G1ekZoJhE16rOCQB85cNVfeTMZ5ptLM,1537 +gradio/templates/frontend/assets/delaunay-9ewxLEf9.js,sha256=Sz68lBLP97c5AbBBrfHXFlt1iw4lfUPawdCXsH9vCzw,91874 +gradio/templates/frontend/assets/depth.fragment-DKwC8xaZ.js,sha256=P60pTqX4u3f1bAE2-bnszsui8B-3awjzu_3UnEnmEu4,94 +gradio/templates/frontend/assets/depth.fragment-DYqhAQDI.js,sha256=m-mgHgMW5gtavXQOa-AVaeWBla7JwvEz_LrxnLivGP0,1261 +gradio/templates/frontend/assets/depth.vertex-BAY6Tpys.js,sha256=bTdwduepNXs_Gp9gAjBBNOn7TXWE2pzlaUMseHQFS_Q,2277 +gradio/templates/frontend/assets/depth.vertex-BUspqTJW.js,sha256=EcEHigrz66lcofqR1mxvqKxXEZfiMO5cgU6D-d8R0lM,95 +gradio/templates/frontend/assets/depthBoxBlur.fragment-CLEAG5DG.js,sha256=wb6bW6eZD_7ClklAPUlIAy4SGIocyousNozhJ5GVwRk,534 +gradio/templates/frontend/assets/depthBoxBlur.fragment-D2KJPEQv.js,sha256=Bh4xlqdRlT6yqYtOO_E_4bVE1qBNH9VBmT5QA-bmgU0,713 +gradio/templates/frontend/assets/devTools-DmD3AOL3.js,sha256=Ci2GgcL8gX3mTn-g9zMmkOaAQ8FJqXpA3kw-ohXQY1I,154 +gradio/templates/frontend/assets/diagram-S7CK7UJ4-bYcUVY0a.js,sha256=lETGD9d7Q_XHZPWAgqFmgTitG-_TqvueWMQ7p5AISgQ,8194 +gradio/templates/frontend/assets/diagram-UQ7AKVKN-QMSXC1Kq.js,sha256=iK2369UYbdcBKCoXcVdhQgVViFRtuCGxCDloRA8yPwg,6058 +gradio/templates/frontend/assets/diagram-VSXAHHWV-CGxaguGV.js,sha256=FhyXLjoNT7-OLlbdTJfAvRzS-TVgidJiPvU0yG0LVXE,10701 +gradio/templates/frontend/assets/diagram-VX7I27RA-CMBI9uPN.js,sha256=ij9MSgFjwOWIvxE4RryQdr6X1-zmmbcrTC4usuGv_iQ,11086 +gradio/templates/frontend/assets/diagram-Z3DM3KII-Cb3nQJAL.js,sha256=k2iiLM9mGfgPqPoPxGrJBgoJ24NKUA68j8bLtrlwI3Q,4277 +gradio/templates/frontend/assets/directionalLight-SGlsXCXL.js,sha256=fht5E4J46RUjlsD0-0SignyBFgFO6t7oFxGblvcwfIw,4710 +gradio/templates/frontend/assets/discBuilder-BCi1Lqok.js,sha256=CY1XDO8DNbc9E55x5FwZnFwHd3xsNNbkpAl5WpCJy88,1139 +gradio/templates/frontend/assets/dispatch-1efKFLvg.js,sha256=pk9S-PX5my8i-Zas6J46Wd7Nt2K8QDyQagXcRC2R7_8,1510 +gradio/templates/frontend/assets/dist-BHNyCp4F.js,sha256=rVQXtz3yFRBXSk0dIZGozSvRDlCqaDlxvXOewE9NzWE,84319 +gradio/templates/frontend/assets/dist-BcPOWFVN.js,sha256=N2BA09wJyq5ntQc7opLQG8RwSey0AR6awzV6FaFYz7Y,303214 +gradio/templates/frontend/assets/dist-C1YgE1vS.js,sha256=2blBx2BPaOIiHQQsjNzVe3kxcYuHNZ647NjPEmvEoFc,44574 +gradio/templates/frontend/assets/dist-CJaA5NSk.js,sha256=-73u2TFxHhk6yi49lmOl_0F59KezeKgXEol9R5g9huo,24415 +gradio/templates/frontend/assets/dist-CPirGGnI.js,sha256=Z7za3MwGVih3bTammWz4Fu_obYKLwyhrevxrT5rU8WM,26312 +gradio/templates/frontend/assets/dist-C_yC2nnm.js,sha256=vUfS48jPbAcSU8EO-81ae2JLT-OrKn4YIQxsgBj5aGo,1991 +gradio/templates/frontend/assets/dist-DEykp4Hx.js,sha256=uf-zH9OXIWX3BjWSJ3ywuydCZbAb6IeKuppCCU9NQAM,28262 +gradio/templates/frontend/assets/dist-Ds64XsOZ.js,sha256=V8wQchwEMP3GpzSDPKCSwyuU_KHU8Gnmu2Cxwkoe-7o,43896 +gradio/templates/frontend/assets/dist-Kll2twSG.js,sha256=6WWnckF5D2WgkbQaXSDxXxEhvTl8aB4h9rCCJDMqLqo,1063 +gradio/templates/frontend/assets/dist-S4CfTz2c.js,sha256=3s2fAWtcETFURPxqqdgXA00KP42YnhzYbbclCb-_2RQ,1861 +gradio/templates/frontend/assets/dockerfile-DCvJDi9m.js,sha256=QBUObeEXh99uDVx7bsDmDRPcqUkM5AadXSMgSP7OxBo,4140 +gradio/templates/frontend/assets/drawWrapper-oCi5T3b9.js,sha256=EwKF3uNC9teb1LL6m_WdmBcP0ldIVbuGMQNN2YaEQkk,669 +gradio/templates/frontend/assets/drawWrapper.functions-t22iQNzU.js,sha256=moqi9dWn-8Hbv02YEFjfat71d0iHwGSlW2hXIuqtukA,66 +gradio/templates/frontend/assets/dsv-BSut97vP.js,sha256=NJhpQN2LCb8T7tA92nn7cDVDhiPQaylCXTF21ProYsk,2119 +gradio/templates/frontend/assets/dumpTools-BnQezY1d.js,sha256=EYcJaJrCE9xv1fQX_OzG5_LKUwGrzOhQGBBomFVJd-o,3645 +gradio/templates/frontend/assets/easing-DZJVKGL0.js,sha256=HYY1oTnB-oqf2h2__eweEdIL9zpeurRSIPvQzYgvFTc,1868 +gradio/templates/frontend/assets/ebnfDiagram-PWID7BFC-DIArqgjL.js,sha256=bkJ_uiAk1t_al_bG6CB2M1-gUQ1r0JOYn3H8C4w3Alc,2071 +gradio/templates/frontend/assets/effectFallbacks-CiODGAu2.js,sha256=snQ9ufVNZUHHRzmPDuZgiwgmBTd4MdsdynaGSvQvHfc,1336 +gradio/templates/frontend/assets/effectRenderer-DS3Vmy8h.js,sha256=Ak2msCpXZBRtFuWYN_WMsMeN5B1T9qUTwTkNBEoH5Z0,8209 +gradio/templates/frontend/assets/embed-ByPGDoY5.js,sha256=OBTANqGx53-pF5AVDvZOBBDveEo-_F4I9K1RlwCgCK8,652713 +gradio/templates/frontend/assets/en-ClvMZHg6.js,sha256=G104WVcv7UqazeIU1O781D7Npjzx8iDDn46EK0SI1L0,549 +gradio/templates/frontend/assets/engine-MoMRLVU1.js,sha256=5VAPvZBvJ97TrG9BZB-Z7RbpbDTlax5GEl9KLPyiA6s,66670 +gradio/templates/frontend/assets/engine.multiRender-CKGoDtv2.js,sha256=9Z-xgomZziaE9p2KCRmd-KYLkWMmbvVKLm-M7DZN1UA,3842 +gradio/templates/frontend/assets/engine.multiRender-CR4fgYqD.js,sha256=LU7knPeUg6wEDAIXpzGT-zy1cDPEUtuqCrWX9nRC7n0,8105 +gradio/templates/frontend/assets/engineStore-VHTr1-03.js,sha256=qQ70en51DzFCqXQcYLyxNpxwe-S_LuCiKrbAAVUlgxs,856 +gradio/templates/frontend/assets/envShadowGround.fragment-CB8lNguw-BKzgZ2Xs.js,sha256=iRGa_BWPP_7b4VuvpjjxFnBzwCBP7ATSlCJElTnaP0A,894 +gradio/templates/frontend/assets/envShadowGround.fragment-L1sPCORS-B7kHJr9m.js,sha256=Kmvt_B18dyIzwOi12qDcPQFjY7uoH-PWpd-5CuTnqsE,761 +gradio/templates/frontend/assets/envShadowGround.vertex-6NXvyWvr-Dk0vDCVW.js,sha256=DvXQwQrYIIVSVVofxAn-ILwOsyONiMA8pK-sFEXR0tY,383 +gradio/templates/frontend/assets/envShadowGround.vertex-oRlsSdho-DgIL_ET-.js,sha256=HK364zyzlIt-qVerFDu2T1kpv3XKO7zE54UHKIxGluQ,500 +gradio/templates/frontend/assets/envTextureLoader-BtP2Gsov.js,sha256=2UOQM-ey_bWacegVJdogXhBiEN_SBL3NEopfwCApqa4,573 +gradio/templates/frontend/assets/environmentTextureTools-C07a-miP.js,sha256=jyGLrOYZTWiBgIEjUyx5mrvpKnEvjwZ6T-elvqhM_As,6929 +gradio/templates/frontend/assets/erDiagram-SSCWMZ5O-ec12ZZw-.js,sha256=Gvi9oc-fzE4u71u5SVk0OIOeA8jwByPmquGFccaFVMM,30768 +gradio/templates/frontend/assets/es-DVIyOL3T.js,sha256=8Cpe-WVvrQbBc8pKoue5rAfIlDbbLJlb3LOVvvVJutc,4867 +gradio/templates/frontend/assets/et-BmIAZ8qp.js,sha256=SYL25jqpTMbAETbBA0bGF0C3UQokxHvw_Q0dZlMp5yw,4961 +gradio/templates/frontend/assets/eu-XbZ2k4Mn.js,sha256=CRzsnA-M_pjkYAuXDjGd1vSIE2BiH7aJbz7TGPLZ2cU,4637 +gradio/templates/frontend/assets/eventmodeling-NTZA5JFV-DcMK_4fu.js,sha256=U6WZmxMgehYnPKILZMA_2FPh7l9aOPL79dy2vaa512I,132 +gradio/templates/frontend/assets/exrTextureLoader-bWC3F_9R.js,sha256=y04LpWFAHbNJp0AZs_tc_-fccmiqyxB5499UGB_DKDc,14455 +gradio/templates/frontend/assets/fa-BLinz7V9.js,sha256=jjggO0JjegDhUhAbtOdzUGY0KpPajW7hgp5sjlyj9ms,6146 +gradio/templates/frontend/assets/fi-Djxx-JZo.js,sha256=Z1Td17r073boNP7uXlYX56b01bJZSLSrNvRDOnXicDg,4640 +gradio/templates/frontend/assets/fileTools-B-7B3X-f.js,sha256=ehQyV1C6sjSEaS7Q-GCnHJXiym91nPRJ6OKwOHS7WTI,9131 +gradio/templates/frontend/assets/floatingOriginMatrixOverrides-BcubLafU.js,sha256=jmcrxLV2G3DTVp4KoJPYX4gXLDbMPGUbpvhv6X_5M-Q,2296 +gradio/templates/frontend/assets/flowDiagram-A5DVABFB-BftayqQS.js,sha256=Iurmdg8pHNouATtjtRMr67tGU8bG9QP-DeiVRZdT08A,614 +gradio/templates/frontend/assets/flowGraphArrayIndexBlock-Cj-tFE79.js,sha256=Fg6-a2s7i9rZa_vB9iWF29v85mmpnQrArsj-6UHwR6Q,701 +gradio/templates/frontend/assets/flowGraphAssetsContext-WtUyuDAI.js,sha256=68SpcaPr4SFn98qT3qQGzyCf7GXNv9HNSMtXSlzFJzE,736 +gradio/templates/frontend/assets/flowGraphAsyncExecutionBlock-Ba3mqreZ.js,sha256=ESlJpZDNHWok8k6O1Ss3kZH8rESAIe_Mphc6qqBZMuI,669 +gradio/templates/frontend/assets/flowGraphBezierCurveEasingBlock-DH5Bbo8K.js,sha256=fTqOlEt4U4ZG0u2FeeEQnLdCZ0DFPOry7FqfsJlghGo,983 +gradio/templates/frontend/assets/flowGraphBinaryOperationBlock-Dc7eAf7r.js,sha256=DWH6etBa1TVF6BkQOKAjhrS3FQEYrCh0QjoaMDpOdW4,372 +gradio/templates/frontend/assets/flowGraphBlock-DkcEGmmH.js,sha256=vfqpMPq2r7FUz3Pfj9l_feSw0z00y7xfVb-7A6fCiIs,6247 +gradio/templates/frontend/assets/flowGraphBranchBlock-DuX0DS7m.js,sha256=ciZMkfBcIAmxNUzokB_EIj4wRiUPADpYMPB4m2fYpnY,563 +gradio/templates/frontend/assets/flowGraphCachedOperationBlock-DpOI8PYd.js,sha256=hvS--QdJ_cRzJSZqhmF7_UAQwq-LIRSUbTgGJoHDybM,736 +gradio/templates/frontend/assets/flowGraphCancelDelayBlock-CoZAm487.js,sha256=1oGRiJWq_cZiSn5_kgzXDcH1yVjtUU2xsoRb3V5TtPU,664 +gradio/templates/frontend/assets/flowGraphCodeExecutionBlock-C8GBhKPf.js,sha256=Y_qrhg-cIqGmcVI7FM_FvjQn40Punhkg-UUU-qUzG9w,521 +gradio/templates/frontend/assets/flowGraphConditionalDataBlock-BkjfzTMl.js,sha256=lTU1jOej7AI-E9kaY1dgiT_4P83t3wJz2Nj3RAlS0V8,648 +gradio/templates/frontend/assets/flowGraphConsoleLogBlock-B2RQ7SaA.js,sha256=vDrk4TQX4x8GROnCOAR1VlaieaDPdCl2bkjtldPIxFk,1125 +gradio/templates/frontend/assets/flowGraphConstantBlock-f97y4K4Q.js,sha256=_vVPLoXzrdbbd5ADmCd2k9rnIi-efWiU8DuSHP4cdms,520 +gradio/templates/frontend/assets/flowGraphContextBlock-dE2ZvHDt.js,sha256=DHRT3BergvazG7qqiVqqrCO4WkZ6jcdBnBTcOJUpIMY,569 +gradio/templates/frontend/assets/flowGraphCoordinator-D6skz-ke.js,sha256=s0TXoUoiNypdg9iWLqf8B6762L7Y5UBl82pHXxXzGcg,13613 +gradio/templates/frontend/assets/flowGraphCounterBlock-D8rUfLEW.js,sha256=eFpHoX-4XxQHBfiCjHVD1r_cCSZxBFy7XvaRYNtoOJI,674 +gradio/templates/frontend/assets/flowGraphDataSwitchBlock-DH6Iez0b.js,sha256=ydjGqStUAR-km4qa2gBgDh4UGkmK06hSOhofP0EB8Mk,946 +gradio/templates/frontend/assets/flowGraphDebounceBlock-C4_Qzt0Z.js,sha256=KbBOyT8_BB_ofnj1c1YBR8cUHK6nf062r55ThurvUlU,811 +gradio/templates/frontend/assets/flowGraphDoNBlock-Begaqeye.js,sha256=OlrepYTKY9dxCG0ny1ER0N1lFUg066qCUCv8HHwXDW4,818 +gradio/templates/frontend/assets/flowGraphEasingBlock-DRwq3mZw.js,sha256=4_t7Vu1YukmnEwlTzBYkbYh0CmWzDWoDKN3Wa6rY95A,1642 +gradio/templates/frontend/assets/flowGraphEventBlock-CTcurXCS.js,sha256=wmvJSWKaw5HM4TEmERzig3IcLlvaQDw3zg4HcCApQDc,241 +gradio/templates/frontend/assets/flowGraphExecutionBlock-D2xHdaSr.js,sha256=Y8NXiIpHfuCJO9kymhmuklrkKQzJgIRAl7Y_90MOMlc,2385 +gradio/templates/frontend/assets/flowGraphExecutionBlockWithOutSignal-DbjZGdmQ.js,sha256=MHjDNaVvETmQrB4PYA0PQ-98eMKQej1mcYphDiFVAt8,159 +gradio/templates/frontend/assets/flowGraphFlipFlopBlock-CLD5mxno.js,sha256=KKQmdSxEYjJyfIa4qgh7g7r3kOIgQU9Kc2mDDKWEDYU,710 +gradio/templates/frontend/assets/flowGraphForLoopBlock-CRaJBtlS.js,sha256=Jop2bQxmX2CWzsbfqUHP1Ox8QUiEzrgWZ_q6HnEbGFM,1183 +gradio/templates/frontend/assets/flowGraphFunctionReferenceBlock-QjUFs2Oe.js,sha256=M75qvmZC7p2eiFiBnCKSUiQp3rdamptjUguEHJe2f4I,724 +gradio/templates/frontend/assets/flowGraphGLTFDataProvider-DGRF6Nzc.js,sha256=9jnD9T2ovuAdpGl8jxxwQJx_gJP155G5HpNG6MeBu5Y,464 +gradio/templates/frontend/assets/flowGraphGetAssetBlock-DrsZDooJ.js,sha256=IskweGI7AtG6IcEn3kugbCTMr16AUEOrmjgLs9uvIlM,741 +gradio/templates/frontend/assets/flowGraphGetPropertyBlock-CxL5lnk9.js,sha256=-UJ1U7GMreVkDXvYiM3eC8lYrMpWJion4jsZJnzvROI,885 +gradio/templates/frontend/assets/flowGraphGetVariableBlock-D2aXmGy3.js,sha256=0tNbTb7KYuwACdiuUZtWCxZmZWTbB6DzGchmCiz3tO0,563 +gradio/templates/frontend/assets/flowGraphIndexOfBlock-RiNL1qUV.js,sha256=L9w8Gvzwd6TCISWknPTW2KVwizltxWQWltEkHzVV6kQ,629 +gradio/templates/frontend/assets/flowGraphInterpolationBlock-DvRNCr1A.js,sha256=i6G_yqJBx3vLQGm4ri97kKVHNV9s0PDUSKny0UM9_q0,2134 +gradio/templates/frontend/assets/flowGraphJsonPointerParserBlock-CiVOI-0s.js,sha256=idZlWoGAWE8E6NT49v55gitPWzMTqIeAhmZLaRVZL9k,3016 +gradio/templates/frontend/assets/flowGraphMathBlocks-CTMdwCiH.js,sha256=2U_RKNxEu5hMqUv6gFKCn4p1sFOSalsR6w52-DPJIfw,18739 +gradio/templates/frontend/assets/flowGraphMathCombineExtractBlocks-BbftCiOP.js,sha256=UGnlVc8wth-eIXySLZAAW9aLtUsoIf5ghQp7j66ZUjU,7887 +gradio/templates/frontend/assets/flowGraphMatrixMathBlocks-BOReH26f.js,sha256=NKdbvHorWfSkpsXEM4PWvRfm7p_7DGrNZXDz8F7WgWk,3582 +gradio/templates/frontend/assets/flowGraphMeshPickEventBlock-DMm4cSs3.js,sha256=xOrIMHjV1yA3ruaa1owEgMei9TLPeGxoLAP6zW40ibw,1509 +gradio/templates/frontend/assets/flowGraphMultiGateBlock-DdlHC4QI.js,sha256=bRciKmY8KUF6FisAW0MkVt3vha3VLc5FbY1cg86HRMc,1685 +gradio/templates/frontend/assets/flowGraphPauseAnimationBlock-BV7hGNa3.js,sha256=8kdsVGmvuMyxN7PVaWX7qGaqPECk61wUp9mbSni4XGA,494 +gradio/templates/frontend/assets/flowGraphPlayAnimationBlock-Dhi7qJef.js,sha256=TYRu_vQ5D0PorqFKutpUcB-v8i29Q2zAqEmbbfDf1y4,3685 +gradio/templates/frontend/assets/flowGraphPointerOutEventBlock-CrPPsuSf.js,sha256=2hZROxXw3Y62oK1VJ7iHc4mTgEJxkTMgCCGFiP0ncPA,883 +gradio/templates/frontend/assets/flowGraphPointerOverEventBlock-C0gjXCYi.js,sha256=4rUi4DW9r1wegutYSCvv8LIqZRi5nwK2izweejeyN3w,891 +gradio/templates/frontend/assets/flowGraphReceiveCustomEventBlock--DxQdEhC.js,sha256=48HoCdQvWJVdapvE9ZMyPQEEt_1RfVp2GVPzqZ1UqzY,1291 +gradio/templates/frontend/assets/flowGraphSceneReadyEventBlock-WtJfAQdW.js,sha256=4XnlHM0D990mBwWoz4PBpXDgMdy1kLTdae0zR-KOCkk,423 +gradio/templates/frontend/assets/flowGraphSceneTickEventBlock-LQgGnuzx.js,sha256=y6LYEbJ4x2WxzWdoQT0Hn8qujD-M1MPW99q8vof_NCE,657 +gradio/templates/frontend/assets/flowGraphSendCustomEventBlock-3Cb2hH6N.js,sha256=djXPoxjCqS5Z2BhGK77UFNz53O0W2UKpryBO58gj7Lk,608 +gradio/templates/frontend/assets/flowGraphSequenceBlock-D54wcfRT.js,sha256=etJTzPDD4Qmbt9R53N4dKTtRaXm96erlULuI6fmauJM,757 +gradio/templates/frontend/assets/flowGraphSetDelayBlock-CLDt2tst.js,sha256=0Ab5LHZ1coh_1a8YEgBC-iG6VGnJ0hsl0IcY_sLwWBM,4262 +gradio/templates/frontend/assets/flowGraphSetPropertyBlock-BgoXVA4J.js,sha256=ZGUzQsXpkvCgr-kpbd3Vz4TdrsxF5FjUK68Je6aIOLw,1421 +gradio/templates/frontend/assets/flowGraphSetVariableBlock-CDnOlaMJ.js,sha256=-UcXOXSd-M-fsFGRKsqqIITEX7gjEiqZ0JuQjNig-4I,1355 +gradio/templates/frontend/assets/flowGraphStopAnimationBlock-DDgWvQRF.js,sha256=jb08ajBLw2zKgIwPSlGJ0Xl-joNMe57ibByqJyYk58E,1940 +gradio/templates/frontend/assets/flowGraphSwitchBlock-Cbu9DgTW.js,sha256=v-mXYG3-Ry__4EOHFzq1NXDYXMKgJLK9sDbXdIGl084,1187 +gradio/templates/frontend/assets/flowGraphThrottleBlock-Bs61qxoJ.js,sha256=1LbCubqb5vZcvLNwDqd51lza3QgbIzZpdPu5gSv-92M,1400 +gradio/templates/frontend/assets/flowGraphTransformCoordinatesSystemBlock-OnpybdQb.js,sha256=T3psGRVMNQU-0_syI4DzaasnSjW_edQ92Sb_pkhNwGE,1005 +gradio/templates/frontend/assets/flowGraphTypeToTypeBlocks-CsMuUKn8.js,sha256=JCRj67XcQVxpcm7jMhTC5-lCGCuic2nthMR0ETRbTRY,1232 +gradio/templates/frontend/assets/flowGraphUnaryOperationBlock-DHjHubGB.js,sha256=nQ4acnrFMS6YjrRFElZUXc8Snna2_D_B0EjpTJPk6bM,302 +gradio/templates/frontend/assets/flowGraphVectorMathBlocks-B2FAfpLW.js,sha256=VjiuNNMyYekKGmQ3OTHRAUC-FeyTuoY2LsE1-9l9XJM,4816 +gradio/templates/frontend/assets/flowGraphWaitAllBlock-DTtjLItl.js,sha256=C3Vsa4lgxOaQZVHFQYpJI4Dw4gF9I_K6SZeDt-5xOSc,1569 +gradio/templates/frontend/assets/flowGraphWhileLoopBlock-fx4hO_28.js,sha256=opRhAiCBE2PaJ0Xjtbzt5kRWTsG6jfc4Jq-D8wzi4Yk,938 +gradio/templates/frontend/assets/fogFragment-DT_vR29_.js,sha256=4Wh2PptBTas2aUM1aBu1xtv0JkmaqExJvCk9IE-g7iQ,1375 +gradio/templates/frontend/assets/fogFragment-D_7zXuQT.js,sha256=rZL-4Ss6wO24WTKFBMCWojzv7buX6RtddAXeEliA858,1203 +gradio/templates/frontend/assets/fr-XooMM8yC.js,sha256=LYIGV_Njq8I_wXgpNpdolozuB1crv4qDVhGjyROEuSo,5022 +gradio/templates/frontend/assets/fresnelFunction-Cn-kaHXm.js,sha256=X7YLh0H2eOTlIFMPAdDi4OoaDsDeMM6PHveCRYHYCQs,359 +gradio/templates/frontend/assets/frontmatter-U0-d_DOP.js,sha256=7L-yZJ_HlT0_K0_-p8IH2WoaOB0BCWOjVch1ukKRUKw,822 +gradio/templates/frontend/assets/ganttDiagram-EL5Y4UJY-efu5FW9w.js,sha256=nItvFIPAjcq45QOEOXP7cx_cG1s6oZcPUh-dIKMLqTI,52520 +gradio/templates/frontend/assets/gaussianSplatting.fragment-DC02hOXb.js,sha256=5x8t0Ak287zcWRG_iy-JyD7tH0gb1gDNSnWm0SMSpbA,92 +gradio/templates/frontend/assets/gaussianSplatting.fragment-d6BK3fiU.js,sha256=3nvPORQFJHbsmgV5DrKtJidcyPJWWdMET93EdM80pk4,96 +gradio/templates/frontend/assets/gaussianSplatting.vertex-DIRWdkW2.js,sha256=0Iyll9i6OueDosuYZHRUQuS7GarrLK1KNSnE49_-Vno,97 +gradio/templates/frontend/assets/gaussianSplatting.vertex-htLBaN0b.js,sha256=3gAH1fh5Rjp7hYjrMhBPYmZN8f6m8KeFIS42Dhc3_Is,93 +gradio/templates/frontend/assets/geometry.fragment-BbR0RHzc.js,sha256=kTt3aUihr8QZill3_JkkfVDQMe8Ij4H6O6Z7ca8dujQ,5875 +gradio/templates/frontend/assets/geometry.vertex-Bs20sk8Q.js,sha256=7j9P_2s6ZCRLB3orfOBauStndBgslS_qgPp84nxu4kQ,6919 +gradio/templates/frontend/assets/geometryBufferRenderer-DCx9bLrU.js,sha256=1gCLYTXpkitDl1yAsd_nKD6rHiD10a_JZKAAKV8tvGQ,34173 +gradio/templates/frontend/assets/geometryBufferRendererSceneComponent-BKcuqehC.js,sha256=tSbwzSJ6tGPoc_iEvnLCpPwFNyMtET9v4DjqbQTU1x0,1306 +gradio/templates/frontend/assets/gitGraph-4MIJSDKK-ENHNk-MP.js,sha256=SU_uRhADsXgC3pwMOykznd2--gbBUAUc-gTWeIdiA_c,127 +gradio/templates/frontend/assets/gitGraphDiagram-WWUBYQGX-DDyOGpwF.js,sha256=kFqaBzH4wozb-bn3cxPuo-8iAF870vXsP4P1heW-QLg,29053 +gradio/templates/frontend/assets/glTFLoader-_75RIFhc.js,sha256=DKKEfAGOExM8ZwKyAQQo3IKB9LrRHBdGugZMSeLusKs,102121 +gradio/templates/frontend/assets/glTFLoaderAnimation-m9C9K7Z0.js,sha256=XjazdhJ6BmFp749wJvaSPDW6E28FZ_EkV27Ax1n-y2U,1828 +gradio/templates/frontend/assets/glTFLoaderExtensionRegistry-CCZy_zZM.js,sha256=7_GNsVYzC1uDF44_az1xAj8yrXF2xn-f2pzlhdVqDnA,235 +gradio/templates/frontend/assets/glowBlurPostProcess.fragment-CWHntGEt.js,sha256=kN8lhlcDtL2VDejkrW1Pb2NJHef6vrx4yY-IP3R3tq0,1410 +gradio/templates/frontend/assets/glowBlurPostProcess.fragment-DDN2NxnB.js,sha256=5KL_81BxHu1lVtq2ISVWNkY6tygBvp4DxMJrg_JmnEQ,1119 +gradio/templates/frontend/assets/glowMapGeneration.fragment-B8DU9vdb.js,sha256=IKRLW7lTHG1ZMYjZKPC3km7pjQyc0G59v9Qw47vIGbk,1759 +gradio/templates/frontend/assets/glowMapGeneration.fragment-DMbRwGWn.js,sha256=v_898SISpJV9rXceLFKkBiqSpQABa0gXyc-ljtWj7hI,2385 +gradio/templates/frontend/assets/glowMapGeneration.vertex-8fASYVOd.js,sha256=_WWG77lR9PU42uUqYjG-QUEtSqBVr9goT7iwH7V24lM,2796 +gradio/templates/frontend/assets/glowMapGeneration.vertex-BBkUnMkd.js,sha256=NCXqSwJU7rGxG-PdhYaIzv3blJaYcAzV5aMDir6wiuQ,2238 +gradio/templates/frontend/assets/graphlib-B8gBHxth.js,sha256=dHHphP7q_rkhA7xV-XHF3tsX8oRz0f4R9znZ0klzb-g,23907 +gradio/templates/frontend/assets/guid-BXdVC_j_.js,sha256=TQ3J_c4SimqMGhRGBczJLqn9h964K67kR3_pVqzJjl8,157 +gradio/templates/frontend/assets/harmonicsFunctions-CteL0VSC.js,sha256=NunpVTt9J30dngVABLqOo_36ia6WeHPdwkRfXsSd9WE,1382 +gradio/templates/frontend/assets/harmonicsFunctions-DQ8vBbkT.js,sha256=aw5IyNNQv-o15qCcvoFBqe0dO5hM05hAQBIVELsEGLk,1087 +gradio/templates/frontend/assets/hdr-Dj0kB-Wq.js,sha256=zTRXycZVjkA5PlJcqwMemHF55I-m1uMexZ5ti1jEeMw,3986 +gradio/templates/frontend/assets/hdrCubeTexture-CG8eriJ1.js,sha256=j7L-qftXGklf9Jmwil9X6EAEEbus6C6iicibWHIZ7cg,13823 +gradio/templates/frontend/assets/hdrFiltering.fragment-BXHPdQBr.js,sha256=aJpKNxMvioeHY79WIREaN9iaxBXuT4Db0sdNDxh-r8A,666 +gradio/templates/frontend/assets/hdrFiltering.fragment-ic6Wa5dW.js,sha256=wMHHvgaHt4OjB-KpAhm2Yqb8g-3_yTznR70bHQOxh0Q,832 +gradio/templates/frontend/assets/hdrFiltering.vertex-D0M3wH6A.js,sha256=bGI9l_z2y9Ut1Z9b1K1fVPrRqjeZVUhiCR__6kZjy4Q,507 +gradio/templates/frontend/assets/hdrFiltering.vertex-DDrydsWk.js,sha256=fODRLAztETnfjMSYhX9R71-9M5kY5WpvM_NeRmsIvJo,646 +gradio/templates/frontend/assets/hdrFilteringFunctions-BK6JpkMG.js,sha256=DfrtoIe2cMzP46HqvCZAlzs3RYusLVGbN5DEVWzn7VA,8524 +gradio/templates/frontend/assets/hdrFilteringFunctions-BkNCmHAK.js,sha256=Irm-S7Nfggp1z69VTGjesRwruuqoyapOz4t3g4-7p48,8614 +gradio/templates/frontend/assets/hdrIrradianceFiltering.fragment-BwJkadP-.js,sha256=7M0cDLhITI5MQyiSPa-94Esaga7ZuS3rm5UCku-nRRU,794 +gradio/templates/frontend/assets/hdrIrradianceFiltering.fragment-Es3bgbDF.js,sha256=ROuS4Luf4vPlDq9bgdbACx8_C3aaOFsoQgHbvEGpRd4,1013 +gradio/templates/frontend/assets/hdrIrradianceFiltering.vertex-CewJHLvZ.js,sha256=DoTsr6KK1ZCOT-eL19t1Ts2XGQTEY44Emk90krYMffQ,666 +gradio/templates/frontend/assets/hdrIrradianceFiltering.vertex-DOQV8qQx.js,sha256=CMRrp26L7mMr0ec8_NC4nHQtVM_4MWq1qic8tZbO7r4,527 +gradio/templates/frontend/assets/hdrTextureLoader-KApGOd18.js,sha256=qWpm9wqhhuJjbP42FzCFeEA5NJS2XX91GsA3ujcDSU4,532 +gradio/templates/frontend/assets/he-DabUTXed.js,sha256=UPYnVAjuVf9HAcY5OsfTChYTOzW9t1vXBgzHhIzbLM8,5116 +gradio/templates/frontend/assets/helperFunctions-CM1SYQ_G.js,sha256=ODPVIud3MT-8-k40eOytvfn2B_SmyHTTjIA5zXA10LQ,5714 +gradio/templates/frontend/assets/helperFunctions-DquCMwzt.js,sha256=5G_i_g4xisdDpwG_Lb_2GAmI5hoBIFX2nGbQIgCyaIM,5307 +gradio/templates/frontend/assets/hf-logo-8sK58_pS.svg,sha256=lCytHM2pBaxaZZ39LXizRPzPuEqKOsNyHgj0iCBWOKA,35286 +gradio/templates/frontend/assets/hi-Dn7yyR-f.js,sha256=O-E5nxtli8d29fHd07XMF7uorqjx11cyuL9mgpodoJU,8317 +gradio/templates/frontend/assets/iblCdfDebug.fragment-CWM_JAoW.js,sha256=SGLqc_1vUyj3OrAN9oTe92aGo5HzmWmAc4xZ08CRUAM,2676 +gradio/templates/frontend/assets/iblCdfDebug.fragment-DIrn_BEK.js,sha256=1Kj9Ajb8wOChoXynJLcxpVGKnKhSvuM52yFubjHldCQ,3051 +gradio/templates/frontend/assets/iblCdfGenerator-rSnjYynw.js,sha256=byB7RSpd11Se1te0p2NCStzBMkrGA0SmTzd2fivBYWA,19828 +gradio/templates/frontend/assets/iblCdfGeneratorSceneComponent-DczIxoFj.js,sha256=MmANlwO41Q7zvKicqpuPGVZjTzJ-zV7OWyVVeHS-gM8,1379 +gradio/templates/frontend/assets/iblCdfx.fragment-DcN-2ogt.js,sha256=jAdTGGFY2aFsG4SviUJgyZJwBxjseFknU29r_LCaSpo,565 +gradio/templates/frontend/assets/iblCdfx.fragment-DwJ2-o2J.js,sha256=ViY6sGy8-fpwVsjPF3-JflS4DXa-EpvT-g_ryIN2ZHs,497 +gradio/templates/frontend/assets/iblCdfy.fragment-CPO_9CvC.js,sha256=WFn6gIuoELjpQ4-z1c5NzJQAM2I4phjHl-ytrNLND6Q,1163 +gradio/templates/frontend/assets/iblCdfy.fragment-HwUiLPS_.js,sha256=CB6n4TjthxTwW1RP52KFU02Lp6OXe4g-_o7bBlSEgdg,1259 +gradio/templates/frontend/assets/iblCombineVoxelGrids.fragment-Cnlr7fIi.js,sha256=-R2lSaio8J3-kKqtK5yOc7yu-ea1itjxsehD24kmBwg,770 +gradio/templates/frontend/assets/iblCombineVoxelGrids.fragment-DZr0q972.js,sha256=oOj9K_nuAq1YILINHUz2nhwnPcmdk7L24mAbScbY5hY,1159 +gradio/templates/frontend/assets/iblDominantDirection.fragment-D27rPFpL.js,sha256=V7cZbHccRwqHFJYJWAlRcyJkXLQ0SV1p1R0RWJ4ltdE,881 +gradio/templates/frontend/assets/iblDominantDirection.fragment-D7DRGxzX.js,sha256=DW_iXJa3exoa7bF-ZmHFCsPwW6so0pXQLOJi-_4K0no,1007 +gradio/templates/frontend/assets/iblGenerateVoxelMip.fragment-5JLAKwSu.js,sha256=OlNbaZwbZSBZiMuKI3LiBZxGd9LWepXXF_WPlFvXSAg,1111 +gradio/templates/frontend/assets/iblGenerateVoxelMip.fragment-KElLRRhj.js,sha256=eYY5r3BKxOQlYNsmsJ_QJXfiX5ydyu9hK02BHYv4g3Q,1049 +gradio/templates/frontend/assets/iblIcdf.fragment-CdIViFnG.js,sha256=wu7-EarQvHZ6lhf1ga4ryKYxdijiw_nZlHLKCnvNyu4,2459 +gradio/templates/frontend/assets/iblIcdf.fragment-eGpX8qgg.js,sha256=hqTpnzXsNaXGrhWaBtJ1CdPW55AfbRJ80U3PtljAfNc,2841 +gradio/templates/frontend/assets/iblScaledLuminance.fragment-B1gaLD6v.js,sha256=7jX5Md28OVrFMfbhA5zJk3AiAUetQq2qFTY6fj5_NeA,1024 +gradio/templates/frontend/assets/iblScaledLuminance.fragment-RB_am_-7.js,sha256=e3y_ob8l47qPXu6rTONnuI_oZkhuWpMCjW7BexRewyQ,881 +gradio/templates/frontend/assets/iblShadowAccumulation.fragment-BKvJn2Re.js,sha256=5uPi2_MTi6Odgj9pnNB3F_snuyKh4ZfzkKBTQAIDrNM,2154 +gradio/templates/frontend/assets/iblShadowAccumulation.fragment-sQo5pOxw.js,sha256=njjCy85mq2Qlh49Vo0c-FfGXtFfVlSr2EA5AZzJ4FE0,1711 +gradio/templates/frontend/assets/iblShadowDebug.fragment-BLKonbaS.js,sha256=vgtIkWGmhIYMLSfZlh62r-YaPEDKXVr2sL7lKUH91LA,808 +gradio/templates/frontend/assets/iblShadowDebug.fragment-DhoXBpT_.js,sha256=aJMafhb2W6w_hA0Gf8MD5z3o6kxRjTHYNHduq5Ewo7M,1061 +gradio/templates/frontend/assets/iblShadowGBufferDebug.fragment-BEBxNJ2v.js,sha256=GsK7XqII8njdX-ADAvIwhmBYul2rXv1bvWcPLvxZ5a4,1313 +gradio/templates/frontend/assets/iblShadowGBufferDebug.fragment-BK5Bfzsi.js,sha256=97zo0bjbsIcEu0tkp-tzzjdP6MdAGBKrgT5_0Kg1ye0,1847 +gradio/templates/frontend/assets/iblShadowSpatialBlur.fragment-BRZ4qmK9.js,sha256=MZJOAcUaZXe9hUuO4_mDMCLHC7gViwlvctlel-wGZcU,1657 +gradio/templates/frontend/assets/iblShadowSpatialBlur.fragment-CeNUyQSt.js,sha256=NiP0zSAswfYrbAx8sLvivjr2dt3gpvdMUn_m5W4tA_Y,1867 +gradio/templates/frontend/assets/iblShadowVoxelTracing.fragment-CgXv9fzt.js,sha256=PnmZ9_2jyevGdG3ca3VnWpKcQYVnenmSERIPseBYcaI,11789 +gradio/templates/frontend/assets/iblShadowVoxelTracing.fragment-L4g-iD5V.js,sha256=8av3NQJb2rFXGDBBxgInREBOG_mN3ZGvHngEk0jP3vM,13412 +gradio/templates/frontend/assets/iblShadowsRenderPipeline-CvUNnzDT.js,sha256=5fXTE0H_YZuGW9IZSrNNmFdJNcAq0JVtXgCe22G1eac,64088 +gradio/templates/frontend/assets/iblVoxelGrid.fragment-Ct2rBhgl.js,sha256=dcsMb8gsk-_iQJFxGtqNTjzfOf-Ov3YKKZVq3WqKW0M,945 +gradio/templates/frontend/assets/iblVoxelGrid.fragment-DYp1wxMk.js,sha256=iU4rpHOOeISqsZMOKo6a5fqs4nc9h9PkGQxZiCv9-3w,1242 +gradio/templates/frontend/assets/iblVoxelGrid.vertex-CzW10HRD.js,sha256=4nlwfRA_EoVufm8toLvIjnHwMKdPjg2HavpaDVwoUkI,8422 +gradio/templates/frontend/assets/iblVoxelGrid.vertex-DQ__WCaW.js,sha256=P5PuOEmymZBkP0bA79s21JEIKcLcQW0Bd0eiyMdwLYo,1081 +gradio/templates/frontend/assets/iblVoxelGrid3dDebug.fragment-C5LPJTBI.js,sha256=bPh46BQa2qekTIZ1-4c7WegckeU8-yuMErmbcroDU7c,1881 +gradio/templates/frontend/assets/iblVoxelGrid3dDebug.fragment-DOoTV6T_.js,sha256=Jp7Z7yAWm64ZklVT3QDTUa_dY63Vv2oYjz1jc5po_cU,1547 +gradio/templates/frontend/assets/iblVoxelSlabDebug.fragment-BC2tWCZs.js,sha256=YDTAmi_o2sE-WiE10V2_6RvHONkshTBUF1v54YnZxMo,773 +gradio/templates/frontend/assets/iblVoxelSlabDebug.fragment-BT8P4tpv.js,sha256=S75-kcF6TzK11HsIpjKDjXnm1pEagt6w_y02q2lE1HA,855 +gradio/templates/frontend/assets/iblVoxelSlabDebug.vertex-Bf3x8ZEh.js,sha256=Wvpq8TANDg7yEpu6XPtf2U0Da6AR63wrkYAEHbHe-oc,628 +gradio/templates/frontend/assets/iblVoxelSlabDebug.vertex-CVXI8Z__.js,sha256=THEz5CUdmJ5nx73Nag1LBRfGFe6S5U7Pi66mDujV21E,810 +gradio/templates/frontend/assets/id-BcMKWFAW.js,sha256=W4jNFE15JMctgVZuG6kZ5X8h-MxpwkUj9LEGkwM4xf4,4556 +gradio/templates/frontend/assets/iesTextureLoader-D4llYZqZ.js,sha256=IcXHMpBUompy5B3GAn4NdUKLjRIyLeomMb6V0aaszTo,2683 +gradio/templates/frontend/assets/imageProcessing-dw__yiVB.js,sha256=Md3vjooR3X9JIU7cICBv2BcjjzwdxUTqI7CuHAcUNDY,10814 +gradio/templates/frontend/assets/imageProcessing.fragment-CtTlVV28.js,sha256=NrkTXW8r58vZ3zm1wQXt2GbSuQo0xDHaon6w86rduhI,957 +gradio/templates/frontend/assets/imageProcessing.fragment-DVG0Ycbn.js,sha256=i-dlVPMBZtEBHP5GYr5m0EhGKoz6Z8HA8J8g8uum3Mk,787 +gradio/templates/frontend/assets/imageProcessingFunctions-BLS7cm_w.js,sha256=qZVmlOi5fwfZutcFUwBjtfePfzD5YBhRgatnH81t6pU,5436 +gradio/templates/frontend/assets/imageProcessingFunctions-CeTUCCB6.js,sha256=L23nJ2LHTLgUboXuWyFhb2xmf3Eh3IK012hjSrZ6lrM,4721 +gradio/templates/frontend/assets/index-BkS15Xs3.css,sha256=GeMf7mnb4EOSh3_HKZEB0LC98NzzKPOdBN9FDahU0es,33409 +gradio/templates/frontend/assets/index-DZobeNVa.js,sha256=XJnrOvUqZttUfKERs0smE1u_Y_R5pgtfHsKnva01N08,130516 +gradio/templates/frontend/assets/info-A6RAGUB7-D-1El8GZ.js,sha256=K75NbLErueTiijkndQC1AK6bC8XaEVQo88HKIuR51SE,123 +gradio/templates/frontend/assets/infoDiagram-RXCK75RN-DKdjrsAW.js,sha256=edisdCBGsO11MS_pqBNAooGrKksKfcUMWqVE_c7YBuc,653 +gradio/templates/frontend/assets/init-Cs1-1e_z.js,sha256=ZeTvIs3AcWfPV3aUVHwPatHg2prHLyuJdHyRjZS67NU,368 +gradio/templates/frontend/assets/init-Q8vmwzUg.js,sha256=hiS1Smr7BrAh2UV0HFq4QMKtJbGviFB3znOhPvLiWB4,350 +gradio/templates/frontend/assets/instancesDeclaration-B_vMdLHG.js,sha256=OkNjBArWrYxRQSbJdT3FRhMBjxT5VEaXi6UK2Bq5A-8,894 +gradio/templates/frontend/assets/instancesDeclaration-DWorEgDR.js,sha256=oisxsLjjPGA6YXVMQO_SsJu09jlIVdvQYMarm4whrK4,1001 +gradio/templates/frontend/assets/instancesVertex-BN7clrit.js,sha256=Za6xS6jvTIkhEFhaCjsznO0HX_newvwCxtk99NA7ZI4,1963 +gradio/templates/frontend/assets/instantiationTools-Cgy69-k7.js,sha256=hjaece88ylRphM0TctExy8cWRwjxtR0LiOHXW5hoCno,462 +gradio/templates/frontend/assets/intersectionInfo-BVRF3FoE.js,sha256=koaE9H7Whli8qm2GrW6Y_GShxI0-KOmpdiYmNgMvkOE,141 +gradio/templates/frontend/assets/ishikawaDiagram-5VMMS53U-CYsyBL-d.js,sha256=fGDGmOeLS5hAClRlDHpBw0bJ0qCjZvaFeVloIU2mWsw,17337 +gradio/templates/frontend/assets/ja-DL9AXTgr.js,sha256=2dsx7PydR36gQ16zUBH-MKUWVOEqcym6aCI5wjHMA0o,5630 +gradio/templates/frontend/assets/jinja2-CAI3F0qB.js,sha256=lOpK10ll1NdhRRJg6uqB6NsLCbsBDgVUJ1NV46BcMHM,2487 +gradio/templates/frontend/assets/journeyDiagram-EYS64GPL-DoFuULaE.js,sha256=Rud74UPYiD166k-U5bZdpBlN0kHSUZ38LkCDxlja0ck,23228 +gradio/templates/frontend/assets/kanban-definition-3QL26DDD-CxaM0J6t.js,sha256=joLU7ABqq29By5nZe9vvlMqovAb3oY4Wr5k1xfmSEkM,20350 +gradio/templates/frontend/assets/katex-B8cJ_9AJ.css,sha256=zBsZsxa8Gk-zztKnhbgzy5Tr_UkOboOJblNSVlf8lOI,37866 +gradio/templates/frontend/assets/katex-Vhh-h91d.js,sha256=tQ64gICJOmcurj5HleB86lp4UImPJFwDqePRVkjuExE,258882 +gradio/templates/frontend/assets/kernelBlur.fragment-BuTz1mer.js,sha256=7YZxQTma_Mz0xMCxt31MOfyxIP_FCqo9XODC9w084p4,2667 +gradio/templates/frontend/assets/kernelBlur.fragment-C1hRHTZV.js,sha256=sJVZee_Rs156dH0hVWvbu-Kos9RK2SD15cgQjL8alp4,2135 +gradio/templates/frontend/assets/kernelBlur.vertex-D3584m_G.js,sha256=nT-TIbFU92jRZSBhpF7kcNVTjlnlmRfS83WjTAo0jDM,904 +gradio/templates/frontend/assets/kernelBlur.vertex-DQU71bCg.js,sha256=R5SfOQ3ij0pI37S7qpNwfGTrgvLXla5r8Ma9QJeMN4M,761 +gradio/templates/frontend/assets/kernelBlurVaryingDeclaration-Bcpph3LR.js,sha256=tBHWP_6gVWrAWdVHrTLQLbmjvji21zYb6zFP3Xn25I4,183 +gradio/templates/frontend/assets/kernelBlurVaryingDeclaration-DSCV0eGX.js,sha256=MWJOevhIQ77Awp73JOG4ROzMn27I8mpglA2KDZBkl54,173 +gradio/templates/frontend/assets/ko-DUUh4EcC.js,sha256=TjKXwEWQFDxD4z_RPAqrSRUhEsJMFUhtx0RGgFDN6wc,5027 +gradio/templates/frontend/assets/ktxTextureLoader-DZHiP3Am.js,sha256=zkODsaR2sxmPlSn5HxkBZ7GiAj0cTqu8p8dcUq0ve44,14583 +gradio/templates/frontend/assets/lazy-BFqJCS5x.js,sha256=bJ9PeVbaYCK0I3MMdOZjF2yDKNhndEuPl46qta8KAos,13376 +gradio/templates/frontend/assets/legacy-CccpxOkO.js,sha256=FtRQLr0qKKNg1vCxyaAyNHV2cKQaaxOGCY6fizq4xPU,45 +gradio/templates/frontend/assets/lib-DLQBXRnx.js,sha256=WM3UAX7WOiI96J7Qza4zrRTxB2Ha94AJ1drHRhPRm14,312905 +gradio/templates/frontend/assets/light-DAyRHfp6.js,sha256=S_KhnTnmTSWhq_Bfjls3XequqBnn72i-5pzQzPVEQ9Y,9681 +gradio/templates/frontend/assets/lightConstants-DEt5a_Bl.js,sha256=2j71GgW72srSLhouqV1oZH7OndC6Umgq-bg9TaBugjE,662 +gradio/templates/frontend/assets/lightFragment-CQfr187C.js,sha256=QaUw0uylXGXa7eZmHGX4m2y2KVeqSZdilV72pnshOYQ,21217 +gradio/templates/frontend/assets/lightFragment-Df1zfVTQ.js,sha256=2BHwIs7gbaIGw0yfcv99sqSq72rVlEKVRMd1S5BZps8,19489 +gradio/templates/frontend/assets/lightsFragmentFunctions-CnzV-WCc.js,sha256=SfSyttqNtrTht6e7b6vBaqo9pLPLKZkzOiOjVvo9EoY,6538 +gradio/templates/frontend/assets/lightsFragmentFunctions-DcApBd_q.js,sha256=GvgCG5G4ePgLVOLdeBACywp_CKHwXB3Vn8AEwQUrX1s,7144 +gradio/templates/frontend/assets/linear-BXKWTpjG.js,sha256=monQLtNvadztpAvNPny4X-RWjufpmhCDiveqzwNPCNk,4718 +gradio/templates/frontend/assets/logDepthDeclaration--laj1kHT.js,sha256=JTqtm1q0Yrjdd4ATbB3dm2yxjjRr9MuSkftVnydGwn4,236 +gradio/templates/frontend/assets/logDepthDeclaration-B8O1rFmO.js,sha256=ILpxY_8D8wrXOcAhlxr-TnFRPQ7g8jUqhJxviVbQgSc,242 +gradio/templates/frontend/assets/logDepthVertex-B7eOEYaq.js,sha256=POy5K-RffiTZWP90R6FpksDqcfe72hHVIkzSf383XoA,730 +gradio/templates/frontend/assets/logDepthVertex-Dj05gqZS.js,sha256=YSfia9vcycgw1td7dm0voFLWLleNclOpwkNUoikp__Q,538 +gradio/templates/frontend/assets/logger-CuBYPcDK.js,sha256=MKmZWC6s5x8ueKR5GC5x6UNQi72pV0sX5bKVdcSaO54,1881 +gradio/templates/frontend/assets/logo-D4NPp-_W.js,sha256=ppI7rQUFol5s1pp0tQ2y3N9E38qfMbJ3jPSOb3DnRgI,1343 +gradio/templates/frontend/assets/lt-B_PULRJe.js,sha256=TJTkKZc53PkJwudnXen_BEKTbbsRNwlJqYbc8CP-oWM,4853 +gradio/templates/frontend/assets/mainUVVaryingDeclaration-Bi-owTpY.js,sha256=Mflwb4fbM0X3bl3O5pwsmAayHzEict9mwCNboq_JiIU,200 +gradio/templates/frontend/assets/mainUVVaryingDeclaration-D1A6ESk3.js,sha256=4oSz9Ki9Q5gOzFKMto5hcX4rBe1pCmt7PJuXm51s4l0,190 +gradio/templates/frontend/assets/markdown-code-CW7mpWKO.css,sha256=65DEsGXLi4-fJOInZEMoEhwnVSiwQRxBt1PhtZOiPis,5356 +gradio/templates/frontend/assets/markdown-code-h5itbPVU.js,sha256=bDokOFkpk0o5wJT2i9nCyoVdUEsqCOka_tsJF0y0BBU,54199 +gradio/templates/frontend/assets/material-BkymRELI.js,sha256=1eybu1HzSNd9V7g90FSEUYc-8eBApog788aU2ZAlpAE,23578 +gradio/templates/frontend/assets/material.detailMapConfiguration-BKAdwG0K.js,sha256=deniQFMSkX-kZp1x_t-_EfzUIylIJqbcU2B4G5Z4DmI,11865 +gradio/templates/frontend/assets/materialHelper.functions-CKKJ0iaZ.js,sha256=NuTqq3kkDYLFV2yhBHTuNGSFkJLYl9TPJFc3LBUcBqQ,28706 +gradio/templates/frontend/assets/math.axis-DkQANlMu.js,sha256=4briY9gqL4eUbB_guWAHREqO2vpDGVT7vqtrcyorDzw,284 +gradio/templates/frontend/assets/math.color-CucNMIBU.js,sha256=kw0ep6_zfcqeJJQWkWUsdqHpCzOTtii8rho2b1BDu9U,12441 +gradio/templates/frontend/assets/math.frustum-CZJer4QQ.js,sha256=FO20y8Li187VZ1IivJ-qr8nCtDJL2PNtNexjOhhvy8w,1271 +gradio/templates/frontend/assets/math.path-DP173s9w.js,sha256=45Y05MzCE9Rc3oFpkmYlXAv74bACvHilNkXNP8kFRyw,428 +gradio/templates/frontend/assets/math.plane-CdASVYYG.js,sha256=ggq6dkcCpbYz7ThY2x4jxbmZ3TCrV4c2GZswlhbUTjs,1790 +gradio/templates/frontend/assets/math.scalar.functions-CbN5UWr3.js,sha256=qgiW-_4aBHqsHJRYWeo8x8m_4F_J787mtP9bSyRRWIw,2086 +gradio/templates/frontend/assets/math.size-h2u2BZnc.js,sha256=LO_zzwxFXBnMI1vgz_H0ZPh4sE3KvymrFKt-wl7F0K0,898 +gradio/templates/frontend/assets/math.vector-IIsfWaVY.js,sha256=ptqcsnx7ML5jvL0ULN3h7rb-5NHXlfmVlsI0YW3wVdA,63815 +gradio/templates/frontend/assets/math.viewport-Cp0w6PSE.js,sha256=Nr8BxvR5wZlZPlwV6xOwxIeFBlcj9gP1QukNB9Usx5o,332 +gradio/templates/frontend/assets/mcp-DNm9doVd.svg,sha256=Dak6acRJHMkXH9h8HKvE7RgG_RjZOlBUGo9tkD_edKQ,9975 +gradio/templates/frontend/assets/mermaid-parser.core-qprX48Q7.js,sha256=hBWx_n-fZlGjCdJDxb7EaxKPTuCmJ7pAfjAOPJkCpsU,16748 +gradio/templates/frontend/assets/mermaid.core-B1von2eE.js,sha256=XmuJ-32d0bxmiRNKxEpaFYz_bJyqJoGGm4-_l5fY5lw,35866 +gradio/templates/frontend/assets/mesh-Cyg1Sa_d.js,sha256=O3ghqgVBAZQhAATDh0dArV9ltKJ3-CzHcb_JYMAdRdc,95881 +gradio/templates/frontend/assets/mesh.vertexData.functions-CD4JOR2q.js,sha256=veuFIRZna2KJEBtu8nH7UiAJWRiPumhjhYlC7C4Ggzg,930 +gradio/templates/frontend/assets/meshUboDeclaration-CmIQ_8hI.js,sha256=eymW3JeIQi0hHpanz2dGM0YBn1vXab_TH0FYT-jhsVs,240 +gradio/templates/frontend/assets/meshUboDeclaration-D9VmL7M6.js,sha256=31MREJQctEPCZ3HikTh5S9U2-bWs0z6K8JGcmfWtMY0,306 +gradio/templates/frontend/assets/mindmap-definition-FBJOCRG2-rvZfshvz.js,sha256=B5fqexZXdQBjUYmjQ4wSRaZkAWUZD54dIeadoaWnrcc,23740 +gradio/templates/frontend/assets/minmaxRedux.fragment-Ja-X1Zqd.js,sha256=KNZdP0ZViOawIUPi8m5NFVADUXJosaYWkOccLLbDzyI,100 +gradio/templates/frontend/assets/minmaxRedux.fragment-cBLxgWbk.js,sha256=k1WIzzjU0k1Ry-l8vPVIsa2A8peYsHliUv5DJWpAeEk,104 +gradio/templates/frontend/assets/module-3HcyJDcY.js,sha256=vrJ2fsjpkdG0Dp52KZMbae_bAzB49k-t8Bc3nT9l5Uw,1931 +gradio/templates/frontend/assets/module-B4Kyz18d.js,sha256=DxWKFgg8Oh6XliGN-iEP2kKaDg22Q0cndjEfnmU7NYI,96623 +gradio/templates/frontend/assets/module-DWcr0jcq.js,sha256=rtewfa0ZPau47lpAoS0kLZOeiEkkm9fOmLfrcCJCfp8,9959 +gradio/templates/frontend/assets/morphTargetsVertex--kSZKp4V.js,sha256=eoJTl2SRz5o_hLVk8dXcSJ2Gm-qatVIBXBYXnFfkd3w,3727 +gradio/templates/frontend/assets/morphTargetsVertex-BRUNyA6N.js,sha256=XIG_DmYpZRaRtqk_5iLCb-urMAYMY8O7mwRDXpSSQsg,2687 +gradio/templates/frontend/assets/morphTargetsVertexDeclaration-C19K6Bin.js,sha256=UcLMHdn6vD2lcaioJtGNjz7t1gTUa_WSmMp_0q3jeW8,1951 +gradio/templates/frontend/assets/multiRenderTarget-DloaNNS2.js,sha256=C0Kr25ilIOsqgir-8roLcofq-SMVmXijvm0qJv9Dj2Q,6555 +gradio/templates/frontend/assets/nb-DrTJDaav.js,sha256=BbA0SehIoU8ZiHwR4PYDjpyCGkuS9iXEmfyTrhy9Nfs,4447 +gradio/templates/frontend/assets/nl-rV-EppVp.js,sha256=ZxTuYnxcT-sNQdW35ZHIjBnMRiop7g-x08D5ctmxTkk,4768 +gradio/templates/frontend/assets/node-CN27Vfbq.js,sha256=QAVYUGHNmmCYroaVPsvjNzTjPn5hXOqfttIi4_0Qzrw,9683 +gradio/templates/frontend/assets/objFileLoader-DpsNLSUf.js,sha256=BXSr1asODnP_sJwPcQ2JOcwyMT1Oog39jyo7nb1QJ0k,19991 +gradio/templates/frontend/assets/objFileLoader.metadata-D7enPiMl.js,sha256=_korJoXt76ckfIQ3yqNN6QcBnOdSRHGmttzwE-Uz1FI,52 +gradio/templates/frontend/assets/objectModelMapping-IA8K8X9S.js,sha256=Sy_b0mRxk79cH0yEUryt_rG89Z_tQsulUSoTfrOUCkY,24975 +gradio/templates/frontend/assets/observable-BSTfMD_Y.js,sha256=Zh2_tgpilSkaRZccuMGxcpThP-Qvq1W3ED3iB6Mfmhg,3261 +gradio/templates/frontend/assets/oitBackBlend.fragment-CGzcLb9C.js,sha256=KaPSX-DtE1zcquU5UHvbgCO9G9z2wKZxsu_y6fQztf4,416 +gradio/templates/frontend/assets/oitBackBlend.fragment-DnRDn_Uc.js,sha256=2qL08iWYji9Dg-iOEYEw9aAAAwnPd3VZ-rSuiQ1YExU,346 +gradio/templates/frontend/assets/oitFinalSimpleBlend.fragment-Q5Yng1yZ.js,sha256=OTAIWTRXEgc1PK5QyUqMzkSxujkN2EwkfZspxQ9ilJw,380 +gradio/templates/frontend/assets/oitFinalSimpleBlend.fragment-nGYFumis.js,sha256=1r3qpazqDO7Jx0lgooQZmMT00ImJmS2YwA6AcuHnINw,452 +gradio/templates/frontend/assets/oitFragment-0kNY9gqU.js,sha256=hIkJDbvpC7K1iLFbYOSYCf5maXcz84Y5gLBN4CDur5E,2458 +gradio/templates/frontend/assets/oitFragment-CawmeOig.js,sha256=6W6P6z6u44KyyoNllhgWks--YFpTfc-Xpl2ujSN21TM,2309 +gradio/templates/frontend/assets/openpbr.fragment-DHbsyT1Y.js,sha256=bw79xyEn0FGM4SIZXc78Mi5EeP0Mpo92_11O5hsKsgg,66734 +gradio/templates/frontend/assets/openpbr.fragment-qSwgHlVM.js,sha256=BtjvRmtmgEB69C9uyzaL_uLCUEZBkcRzPxjm9SYxwL0,65960 +gradio/templates/frontend/assets/openpbr.vertex-CWy-d-nD.js,sha256=YS54O-hpsq2CtuSGg0hMkgdyx-G2CT4tf-xxTzczADs,16515 +gradio/templates/frontend/assets/openpbr.vertex-DrpouXsO.js,sha256=TcOhG1FtiRYvDAvXwnyJezwRBeOrZefkqjCc9WLLmX0,13517 +gradio/templates/frontend/assets/openpbrMaterial-w94Ri4Au.js,sha256=qqCyi_wsnHtSXWIV0o1VOOalNJ1rWrOVH_D4esduZ3g,47159 +gradio/templates/frontend/assets/openpbrMaterialLoadingAdapter-Bmwag1I_.js,sha256=BnIaxxplTk_JsF9wFddx-vxwET1JxJI61aEbYf1YT0w,7326 +gradio/templates/frontend/assets/openpbrUboDeclaration-DDVgYCbX.js,sha256=MlIk2CSpn_BGUjIW6VWkIKjeTxpww9ucW1_ajmTD3Mg,3734 +gradio/templates/frontend/assets/openpbrUboDeclaration-DumNXqe_.js,sha256=xEZuXfTJuyWW06IWJE8OdJdmH0cSA1AyYaNsaTLvVBU,2764 +gradio/templates/frontend/assets/ordinal-BV4dAJ-l.js,sha256=bcb7P4q0tjrl_4ZTXAwvdekdSsl_NTfFYdeu0E0SDKw,1457 +gradio/templates/frontend/assets/packet-AYTQ26CC-vlL7oXA_.js,sha256=iZ_s47D_nBeoY6PNshaslUZ9MP06aQAmA6vR6Qy5bmw,125 +gradio/templates/frontend/assets/packingFunctions-0TO8zFEB.js,sha256=uJ6jRh2fijxhaoiVSXhiBA7eEnvxIxxg37C1ANeu51M,490 +gradio/templates/frontend/assets/packingFunctions-BaMswysC.js,sha256=o0iMpo1LXGTSjxa8_WYE9LXDhQGSUHz8lLZc-7_qeYU,524 +gradio/templates/frontend/assets/pass.fragment-C9fRTBUH.js,sha256=VGHThmWZYJrKfsC_ps89P_xczAJ8QMveTB040T3VOro,452 +gradio/templates/frontend/assets/pass.fragment-Cvd2TCWC.js,sha256=k2C0Jpqp7y4_fEDoZxaS2O-iDvF-9X8yB840tc03UeI,318 +gradio/templates/frontend/assets/passCube.fragment-B9dBqbCg.js,sha256=KEaTmh-0FxoQ3r8NfLlaCbZ2eBNCN1cdEOYrJncvLBg,823 +gradio/templates/frontend/assets/passCube.fragment-C8Bxt-YC.js,sha256=oyi9jY7PbkEY3vAf1pMtmafHeNbHOT20Aw7qj5fZoTI,1132 +gradio/templates/frontend/assets/passPostProcess-ec1008-z.js,sha256=e9d53JxuxDIfU2DyFTnJMffN9uyZ_6NPF2gsJUpBjSs,3189 +gradio/templates/frontend/assets/pbr.fragment-BopyhIOQ.js,sha256=Q3q0EhKGRfhMAL6iKkOh3xoHsYkjHQu31g7i2vUznHI,89616 +gradio/templates/frontend/assets/pbr.fragment-BxPhAbUx.js,sha256=OR_3-mf3uPL7ZtOasfA-uc74eJDVR7obniIHnQ1J3KA,93199 +gradio/templates/frontend/assets/pbr.vertex-85PY5OvO.js,sha256=X4qJA-kxdf9x2XneJrmXNRPWpfVM_lFn-gqJlE1XTPE,13179 +gradio/templates/frontend/assets/pbr.vertex-CCAG617y.js,sha256=ONabFsj-qCiG-h0vXA0_ydeMTePW5ez8zavrkmPu3GA,16471 +gradio/templates/frontend/assets/pbrBRDFFunctions-C40dSicq.js,sha256=nk3AfKV-zsWKmBeFeebqvAxeZZEzcqNicrdl8GGUB08,11583 +gradio/templates/frontend/assets/pbrBRDFFunctions-DiT7LTSA.js,sha256=RUMEbkSSyMOitUTSiizRIfxYa9c6rVB6wKGSy3Swigw,12331 +gradio/templates/frontend/assets/pbrBaseMaterial-Bi7Val02.js,sha256=hcsrSRJwSAQMNAAv3xYxBp1EgtEFK4ao23_tfcvIKEA,84442 +gradio/templates/frontend/assets/pbrDebug-Bc7QUwIL.js,sha256=dibXX-04K8h5CeMbNU2IQVeL3AdBSa-d6cdTeEY8F8Q,31207 +gradio/templates/frontend/assets/pbrDebug-Dcenycev.js,sha256=xTUli9AKyNY-JL90-hjdahLIV7trxl8JaRqKBPoWyhA,38686 +gradio/templates/frontend/assets/pbrMaterial-C5vyAgF-.js,sha256=Z0SEKyqNnkNkAfA2sXRFL3rvFn8YkWIlbDjbUE4ZPKA,10369 +gradio/templates/frontend/assets/pbrMaterialLoadingAdapter-Cy0k_R1K.js,sha256=ntvpISFabZaq4eYLNYv0Nq6VaOtKHIT2VCjDeA8lBuE,9952 +gradio/templates/frontend/assets/pbrUboDeclaration-6SnOWTp5.js,sha256=XFQi1yOgwGnf7RHfFcpfZTqZWpbm32S12uHjm8NtUwk,2311 +gradio/templates/frontend/assets/pbrUboDeclaration-Bew-TKEU.js,sha256=SkUgT5vilHCxXBV7mCZeQCxmOxpWzkAuloBY9G7HNHY,1723 +gradio/templates/frontend/assets/pegDiagram-XKGWAZYB-CzPentjS.js,sha256=QjADfxw4lSWAmD5dEoFyhSAafb0K5OBDLk2if-btUoA,2013 +gradio/templates/frontend/assets/perfCounter-BqQV7K5q.js,sha256=XaE4u8nGlbcZL9vy0xAvYF338slZX1GoMR3tmcm8C2o,1393 +gradio/templates/frontend/assets/pickingInfo-Cq0dL6X2.js,sha256=kqgOUSUIqIlBTY7FaIZen8BWs7Dm0HfTBeO97MVb3NU,2670 +gradio/templates/frontend/assets/pie-WAS4IAKB-ffOpvm1T.js,sha256=7EVwAeKCEXSGPkoy6BqTiIodvQCS2YT18hDbYNbHWF8,122 +gradio/templates/frontend/assets/pieDiagram-E7YTZNPT-B1J6mOrV.js,sha256=lE5A1lnEU1_SMRCJzMxCG0aWyrbB1LLjTaf3RfSOOTg,6173 +gradio/templates/frontend/assets/pl--CEk4en_.js,sha256=dMqrJ0MpEPdJoqNEI_tbABiWBYwq01OaB4SxXv5ij-M,4806 +gradio/templates/frontend/assets/pointCloudVertex-HymBAJeS.js,sha256=8UgWFfE-60WLKlZHkEccH_50wAGGNy__bY2J4hfRrRQ,207 +gradio/templates/frontend/assets/pointerEvents-D0unjPog.js,sha256=T2tzTOAsksfr3O4jfYqcpPYlbbrM7IvLptYtdhxUHCs,755 +gradio/templates/frontend/assets/postProcess-CG6qe9Qi.js,sha256=ixHA1LHElTLEJUA0EFHLpPfZTxvG_kPqQ_eh0bmeaAQ,15343 +gradio/templates/frontend/assets/postProcessRenderEffect-DHKDKr9-.js,sha256=e0EkHOFnMH_8auXvb8ejYml9t9v5e-MqqXFVvbdDKFU,4092 +gradio/templates/frontend/assets/postProcessRenderPipelineManagerSceneComponent-BB5LBLeh.js,sha256=qp1_555FEkS7ShsDwKUf4zD6nPmCR16zk3rljYfg_jc,2757 +gradio/templates/frontend/assets/postprocess.vertex-CmVXXq2T.js,sha256=fzy49AJlHgwTePSE_dMZpoWc4Xwgy4d-3pcwN9SHynk,584 +gradio/templates/frontend/assets/postprocess.vertex-D220aOZL.js,sha256=FN5M7oUkxwLmkB--RrvGCMtZYAeZRtppfSLPw7S1uL0,511 +gradio/templates/frontend/assets/prePassRendererSceneComponent-fgF0-e1D.js,sha256=xX5q19IAJSp0yjEX7uG1_K4Im42qne4do2hTUM00-cw,29496 +gradio/templates/frontend/assets/precisionDate-CfCevjl-.js,sha256=yoHmtFCBDQRyuOodAuFp98IG8hmUuo_VV6D93lG7Hmc,390 +gradio/templates/frontend/assets/prism-DtQvFAXp.js,sha256=eHdLkHNz53uC90JLqUq_ezmzHC09rNFn43KNwYLR7fo,18853 +gradio/templates/frontend/assets/prism-bash-D6zCJ74D.js,sha256=X06HF3Atu1cMtvOrj1Lsfkm-Dmm5Uu0AkNnbEunm2fE,6144 +gradio/templates/frontend/assets/prism-c-04YixN25.js,sha256=urEKbgkk1jaUSrxrcw8LWoCN7-9egZVKQG8r91wGbws,1893 +gradio/templates/frontend/assets/prism-cpp-C-lJbC-6.js,sha256=3vPukPb8Vw6EWHc34vr-4v4EqvGfOqFP-RNt4g8Enkk,2602 +gradio/templates/frontend/assets/prism-go-C_8qAH5n.js,sha256=OFl1RUKelNUTvvR4Fi1vzv7ha0E5aBqeefBzgctn6Rw,970 +gradio/templates/frontend/assets/prism-java-6wtusvIl.js,sha256=TC40UeL307YxM2OmAclAQKgc2MGDC_T0yTaIUohTJLE,2769 +gradio/templates/frontend/assets/prism-json-Dp_-W-Hv.js,sha256=CpWHzwRJoZN7Z0qj-CEjcARtHSKa93Nf0V-AN0TBWZE,449 +gradio/templates/frontend/assets/prism-latex-DNMbqcH_.js,sha256=PtZEHXV6uAsIwMjqyCyzF8MJQMK3pK4NkNpLo3KTjcw,1024 +gradio/templates/frontend/assets/prism-markup-templating-KkSMBj6Y.js,sha256=Q_kPFgqZNxV1xQFHJ7kFw6i2oXl9z1_FF6O7Hk4ggMM,1067 +gradio/templates/frontend/assets/prism-php-Co4fM40K.js,sha256=QN4ytcE3hqZnWCTm6CbJXDkhBvF70dZ5EwNGy4dQPUk,6324 +gradio/templates/frontend/assets/prism-python-CfiSVtM6.js,sha256=SMyA-3ozWvyLtRIwDwwY1d7tXS2GgxkeQDW_4onilOc,2113 +gradio/templates/frontend/assets/prism-rust-Bu9N8X3N.js,sha256=eYVN0cWJSaApazNBeG_wD7lgQsknneyXlglsgxuc44k,2477 +gradio/templates/frontend/assets/prism-sql-CYhVDMEE.js,sha256=P8X4zmmVDsc63JcvBh30Kq6nj6pIZHCRNOoq3Ag_OjM,3261 +gradio/templates/frontend/assets/prism-typescript-BMqONzxf.js,sha256=5givjMjY2xOMRoaJ-gbgXRmrsGQvfJ2lPBNzyYiBM_A,1295 +gradio/templates/frontend/assets/prism-yaml-C0JHu8gr.js,sha256=TZyeygQL0Jg9PJyeqSHpyd2xQvzx6uAJ7jnBsAxe6Us,1979 +gradio/templates/frontend/assets/procedural.vertex-C47TVAon.js,sha256=DPIL1cOn6Ap7pNT_0jOgtbI1oprPkm6_Yq-L-N57D2E,473 +gradio/templates/frontend/assets/procedural.vertex-CQzWSYEf.js,sha256=Mcfx3236OEH4UWGAeshTWwZbve0lzkgegJ1D1JCBCsk,592 +gradio/templates/frontend/assets/pt-BR-3kb7iahY.js,sha256=3AclvhyHHdzZzbhoLXetI25MB1uTkWvRjHePbbJKUzI,4961 +gradio/templates/frontend/assets/pt-PvFatYFp.js,sha256=TJAVg_zHY9pGpU_49SExJyq3PiddM_vvW6kBGnGu2HU,4926 +gradio/templates/frontend/assets/pushMaterial-BRJzoSjq.js,sha256=NAGXSK_xoUSrOrVrS50kJoJtVuibL8dSHHdA8--M1rA,1112 +gradio/templates/frontend/assets/quadrantDiagram-AXDQQJYC-CcycuLq5.js,sha256=Q1EnMAUOCVhW1Lgj56vAFUzBmhHxKgk7kwSxw5zlaMQ,33583 +gradio/templates/frontend/assets/r-DADKenSm.js,sha256=PfmcCMn2gXoRk89wcPPdYSaKAw-ycmmTTjdVkVT-CJg,3008 +gradio/templates/frontend/assets/radar-RG4KPBEZ-DdZOMida.js,sha256=KcuFvljmdul1KORUnR_t5xIVe3lNQRFDGyNHyexGoc0,124 +gradio/templates/frontend/assets/railroad-74A4TZTK-Bu3fNpGE.js,sha256=F53XIGgNwgaRevevfsh3Alg39cN-t3A249Hkc12dyeA,127 +gradio/templates/frontend/assets/railroad-abnf-HS5TGJTU-BAVfio5Q.js,sha256=eSgG6Wf_CK17fSOfTL4M8JpNFs_Rj2jzepQGon8dhh8,131 +gradio/templates/frontend/assets/railroad-ebnf-LZEXJU2U-DBooVzXY.js,sha256=iSzdwTepTHjrrRqvKUTl_kJr3OGjDVCuviAq4qeF3u4,131 +gradio/templates/frontend/assets/railroad-peg-WCYAUIDC-BK3hNmh_.js,sha256=AXbwduvJg2qWbldva4VP_ptuDBJu4cpDYgwmz4hU_SI,130 +gradio/templates/frontend/assets/railroadDiagram-O6MQD6OU-CgXMxWlU.js,sha256=3qtY8CIsGyLV4VHwXKLuCJWCuu0STa7xnVQ8UZp6d1s,1671 +gradio/templates/frontend/assets/range-EplFIxc7.js,sha256=Oc870sScStAkrhvwgX16hsUWjVMlW0Inf5zo1rxs9io,175 +gradio/templates/frontend/assets/rawTexture-jGwnvWxc.js,sha256=acscEGro5KLPKB6v6Jc-QD3oofe1_FtOR6HWe9Sretw,1869 +gradio/templates/frontend/assets/ray-C1qn06YV.js,sha256=oaRXImdKfNEF3cdMUYtDlCSXtfDVXNmwu3uLuHmUUg0,10969 +gradio/templates/frontend/assets/record.esm-Res0U6Io.js,sha256=-yX1IzZb_t635wOfYX9jxpR7wt_HZefljuhoqjf-gl4,7270 +gradio/templates/frontend/assets/renderTargetTexture-BcCQtPJy.js,sha256=wH_Ilv47BWYkp2Op4U0NcYGA1PGZIaPY4C_Ntu8iQ8Y,30563 +gradio/templates/frontend/assets/renderingManager-Bsc8Ugfr.js,sha256=elr2Q95lmpyPcT7Z78l_kFJRg753xWgrCAa1J6nTfZo,12846 +gradio/templates/frontend/assets/requirementDiagram-EFPCY7ZU-CBZ3t8lr.js,sha256=cVoUMrfk1DlkEEqf8P05pDIrOlzvGC5ja8Cm3fs0Dnc,31031 +gradio/templates/frontend/assets/rgbdDecode.fragment-BixYOgyM.js,sha256=74Nd1QC6_Mi953tbRi-y2a23lmlTTOJWqkZhSv7XdCg,549 +gradio/templates/frontend/assets/rgbdDecode.fragment-t3PlKoSE.js,sha256=LOQXWUCsrnjED9fqawsL9tRRY07-bUh7vseAzNgw73A,414 +gradio/templates/frontend/assets/rgbdEncode.fragment-BETnluiw.js,sha256=W_oA9-Of4h9vqrWpPu0PTdAyQ9OfieLKFoPz0XelfDI,540 +gradio/templates/frontend/assets/rgbdEncode.fragment-lIgZNiCL.js,sha256=5sWUF6yYuDcxdlI3h5iu8cM3MKa19REg1HAh-wHyN6U,406 +gradio/templates/frontend/assets/rgbdTextureTools-By2bCoF6.js,sha256=x95mT1QyYS8o1V43UA8WeWnDFcivynH3kORhjsABryo,1968 +gradio/templates/frontend/assets/ro-Cm85DJU5.js,sha256=X_0FRrXd7FsD7_sNuWP7FcV1AXFq0k6OKbpNYiKkJM4,4952 +gradio/templates/frontend/assets/rough.esm-CSKSodPl.js,sha256=RH-yAzVWMZhBlsGIbVRsF5vusjUjDv775mcICqtY1eI,27103 +gradio/templates/frontend/assets/ru-Cn9wLuUJ.js,sha256=OKEa7aTuJZW0OEsq6CK5gPDVhjp6bOiNmf1i7zQGYCM,7254 +gradio/templates/frontend/assets/runtime-CCi_C8Gz.js,sha256=922a-8DsTaL-PuYmGCZ6KqnAV85mn4wdyZ7h2okZX2Y,49502 +gradio/templates/frontend/assets/samplerFragmentDeclaration-Ddqenr6W.js,sha256=rmJnugtjfMHj9_WYiFVtsfnYPB_-BSKiXoMdH0s9vpo,636 +gradio/templates/frontend/assets/samplerFragmentDeclaration-I1t02tES.js,sha256=e0idLjE4GQu1dFRwQh0-eLAA4rl1BfM1s99FXF5c1PU,690 +gradio/templates/frontend/assets/sankeyDiagram-P5KCCOFB-Deul2vvW.js,sha256=z-SdWZUuijSyaTRvJAjWI4sqktvl8LemzBZvm9PO9RQ,22800 +gradio/templates/frontend/assets/scene-Du997-gH.js,sha256=rEQOzGlkLFIm4UNEqmw5aKhTZUI3jGLwzmwHJDyAXBQ,129070 +gradio/templates/frontend/assets/sceneComponent-l4VGIKw4.js,sha256=EiaB-E8RGJDDCvCD-HZ-SmaFxbBTGmLJ30XobcOo2UE,2882 +gradio/templates/frontend/assets/sceneLoader-Dw9Y4v-O.js,sha256=LqQnFnZsLJlv--uUGXGMIbQxY-0jVO08mM8F9uieSbY,11240 +gradio/templates/frontend/assets/sceneUboDeclaration-CR5dQRQU.js,sha256=Eb-TnENSIRq80s_LPkOvsCY3qxvtMv11K6E9OmgPXg4,302 +gradio/templates/frontend/assets/sceneUboDeclaration-TbZ5RU0g.js,sha256=BF8mqEcLWodCqtFUu_x4xqNjVBZBVtT6jpW9Cvh-tY4,364 +gradio/templates/frontend/assets/select-B91Ub71Z.js,sha256=13JEInf0mr253On_GNzRaPLnpfvudhSinfaWcX53tQQ,12087 +gradio/templates/frontend/assets/sequenceDiagram-WJ2MYXX4-BZL379wk.js,sha256=dAjwSUBXR3nH_ZqqeEhfnd365YanaWab5U70DGfYR8A,115902 +gradio/templates/frontend/assets/settings-logo-AL7zGNml.js,sha256=7zUvvqRuVymdxzP2qWwad7K1wuWhkTgvfJLQcP2n4GU,1098 +gradio/templates/frontend/assets/sha256-node-TNZ2WHTI-BvRk9kiK.js,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/templates/frontend/assets/sha256-wrapper-GDBS2T5O-eMPL7xiM.js,sha256=YAsCA4zmdv4isbjg7EbT5Zj5P3VtPYCi7XPnT8UdNjg,13289 +gradio/templates/frontend/assets/shaderLanguage-BizvQQNm.js,sha256=vcfSPw0X8aoSoADVtXvOqDe49H2B2i5T05Wx_f7rfgw,95 +gradio/templates/frontend/assets/shaderMaterial-DW44VAbl.js,sha256=2pE1jl6yreoKFbn4535JDY4hE86T-QxAiUvjSmFmr2Y,22801 +gradio/templates/frontend/assets/shaderStore-D-XQlhUT.js,sha256=22ADFkOfL-23v9O8vGGyTTDCsmRoKNzqHHx3jNB9Xj4,469 +gradio/templates/frontend/assets/shadowGenerator-C1Y-gAZZ.js,sha256=R9VJPnXxI3lPF1pLySD3fuD8VRAv43NrId3Bl9hxZ5k,34084 +gradio/templates/frontend/assets/shadowGeneratorSceneComponent-C53DIjoq.js,sha256=8w4e_ypKqHe4LphArvMoNRwh3BbLqjExS_rxTfVR0Cs,42048 +gradio/templates/frontend/assets/shadowLight-BT5YMBJG.js,sha256=0lO91wCI71cAyKrb07nxncxod3udQ38T8vKpWN9-uqo,3559 +gradio/templates/frontend/assets/shadowMap.fragment-BfMZ-XGX.js,sha256=T9WiZHD-KaRkCL_FqL2GTPm5aULQASd7w0fAxWLSUZA,3106 +gradio/templates/frontend/assets/shadowMap.fragment-v2-atneh.js,sha256=OOkWTLQoxPOpt7s2qM1rJuAaQsS2UckFXDyUXh9EIrY,3658 +gradio/templates/frontend/assets/shadowMap.vertex-COLzCy6e.js,sha256=hMkBuJyNu7n0FwJNLjbHJEDhTkLY04EDxRHaXPTaRPI,4618 +gradio/templates/frontend/assets/shadowMap.vertex-CbWFwD0y.js,sha256=Ec90u1Xs2bSxjXl4_TwNq6AAvN1pDqqFfnGKV9ZymaU,4574 +gradio/templates/frontend/assets/shadowMapFragmentSoftTransparentShadow-B6k0i9Au.js,sha256=tLuvMWDU_e-EVNX4WJvXWb7QiGCpa-7BLcW15lEr0e0,405 +gradio/templates/frontend/assets/shadowMapFragmentSoftTransparentShadow-R_iOKnyx.js,sha256=YNmmxh8c2voT7rvOp425r9jTlYWiDHfWsR7flsEYlvs,370 +gradio/templates/frontend/assets/shadowsFragmentFunctions-BgJ0vxEO.js,sha256=sh2fNlghubvWf1n6_61Q2b_e46-qvZEawKL8Qr0_KDk,39936 +gradio/templates/frontend/assets/shadowsFragmentFunctions-C_KNiUjW.js,sha256=9WjttkCtM_gBxlzMxsTFXb-tDWn4w0MwqiDoIvOadKc,37951 +gradio/templates/frontend/assets/shadowsVertex-giKuWlFo.js,sha256=5MolEk1-HsEBxgp_RUD5i3G1yyB3Frq0ZbK9pOpdDAc,3504 +gradio/templates/frontend/assets/shadowsVertex-sGmZ_oSC.js,sha256=gVCtYd4KnhaT0sqQugT8UlFSOb-ubnWQTkqZRC8KwLw,2955 +gradio/templates/frontend/assets/shared-DffAJ0rQ.js,sha256=I5lJbQAT-zGs3An_JzzPaiZ3OmoEO5Ga9gpOTdfeGdI,28 +gradio/templates/frontend/assets/shared-DhgbHT7U.js,sha256=OVRVgXJuc43doIvvCIwMlXm60Z8epbpCUatoE_Csny8,63 +gradio/templates/frontend/assets/shell-Du5Qg9im.js,sha256=Rw-e4qwGMczvHV2522rAWC4OrLZ7OfO-kQTJHwy0ah0,2449 +gradio/templates/frontend/assets/sizeCapture-X5ZJPWSS-B0uUizjq.js,sha256=pyY33TJEz7Dxse-TblOlxkLbspvF3gh6zEq7xp8oNSM,875 +gradio/templates/frontend/assets/skeleton-DQGn03Xz.js,sha256=bZIs7Cf1etMoXOs3b0Vf_4n6OeiyfPat7Yc1-COdCs0,11047 +gradio/templates/frontend/assets/smartArray-BRfcgNbX.js,sha256=jcIOFK-Tff6Y1z4BkL1EnHckFk7uhjsIyqjdWkz8AZ8,1186 +gradio/templates/frontend/assets/spatialWebAudio-qnwseAko.js,sha256=URYjlBz7C4lwoUG6p1gaJzuMfon1GbUtlypqjAHvbX8,11763 +gradio/templates/frontend/assets/splatFileLoader-cGoNKHQ3.js,sha256=HGy-wUBe3tVMl1yyXQLY9kMWwlZqaMJJfwPQTDF0RIU,87478 +gradio/templates/frontend/assets/splatFileLoader.metadata-C_pWpMDJ.js,sha256=wf7S22TtYwQidKYYQ_f6G1JalgvGsHRACLMN8isQor0,157 +gradio/templates/frontend/assets/sql-BGOoM4pO.js,sha256=0xlPQ4KuCxZ2zna67-hBxfAZYfS7hjoaIIIP9F05Tvw,37032 +gradio/templates/frontend/assets/src-B28jiM9f.js,sha256=dkobN1Zh_eRURgC3M59VKT2n_LRPlEgUwN9AfjcYXFY,20733 +gradio/templates/frontend/assets/src-BPf6-M07.js,sha256=UuWIJQ3bryP1ziWHHMZ_shdPT5utlqbtDlApszpBVmw,9325 +gradio/templates/frontend/assets/src-BfutoOhM.css,sha256=JfCJOJGmnQPI7Y2UcwIgglQimnmolcF7CV7o1RJynWg,9682 +gradio/templates/frontend/assets/src-DHR5oziv.css,sha256=-3zWftbmFbTTCMdeXf0PclUqf0juk72_IoZBVqMsJ6E,2020 +gradio/templates/frontend/assets/src-Dk2Ve7HQ.js,sha256=a84Ha4VcmP346e8myIv4S5uZZN0uZN8ODXIhTNoVi98,57362 +gradio/templates/frontend/assets/src-Dl2nhAat.js,sha256=qPLGOODIbSxBEZftDxhtEidWphHnABCpZvEE9OtIFIA,11239 +gradio/templates/frontend/assets/ssao2.fragment-CRTtCvdo.js,sha256=rUB-OOnrMf2b0WkZq3nFHgvYPw3ZsuQuhHv70KlPHvU,6696 +gradio/templates/frontend/assets/ssao2.fragment-ERZqerZa.js,sha256=0qeP-N5ACq539d_46wettfee24mKEc9KJzROnncNSYQ,5212 +gradio/templates/frontend/assets/ssao2RenderingPipeline-BKU40qEZ.js,sha256=cKs2SOCBVt27agQDnGYd30u5qF0ImWP9bTsNvVv0SsA,20371 +gradio/templates/frontend/assets/ssaoCombine.fragment-B1IvvcRW.js,sha256=_rQAZ_QuYTXAL5ona0yOKUKHb3vXuwQja-GknXl1gDs,571 +gradio/templates/frontend/assets/ssaoCombine.fragment-jEEUeUp9.js,sha256=ZD_-Bbmtf5oH8Gg3ZkotJnW2S8ydnjmXckJhf-MUhOY,806 +gradio/templates/frontend/assets/standardMaterial-DSI8h492.js,sha256=TNuVZKCR4NrXf-z0jw4wPTMpXaC2mKXYEBot4lX7bVA,39209 +gradio/templates/frontend/assets/stateDiagram-HBIQ2CUA-DU4MlBCc.js,sha256=yN0GoVoQSeYtAq6wFo0gB8Al7CD4BTYdGIUAJEQUJys,10676 +gradio/templates/frontend/assets/stateDiagram-v2-4QOOHH4V-D8swMdn9.js,sha256=R2n_ZH2VMiuuJFYfMWixhn3eB-3M943UqM5pkySIksE,783 +gradio/templates/frontend/assets/statustracker-CouyIdTk.css,sha256=XgDYdKtE-HJ7Gm67Ae0lSHH42ZX0AO3kLuKHAupdZoM,8360 +gradio/templates/frontend/assets/statustracker-DPU4ThhG.js,sha256=lisB5OPCrllu-GwCi_25coVZmNy8XKdFd47o4uybYqM,20929 +gradio/templates/frontend/assets/stex-sDrdk2BW.js,sha256=NDgT99XYBUjUelR7brtDbp-R0GuVUFftPeD19DtxKnQ,3121 +gradio/templates/frontend/assets/stlFileLoader-D-uHn9Su.js,sha256=8upWgu6E9L_QzJlvQJSu4ryxJrbGjLnnGvmrHL8Bhvc,3153 +gradio/templates/frontend/assets/stlFileLoader.metadata-B1XCpoZ_.js,sha256=547OSd4yAqZbb9veqaacHAR6a2jwH9hHA9SMX49aC_w,68 +gradio/templates/frontend/assets/subMesh-ilixCyk5.js,sha256=u3VWDZ_AB8rojwoK-8SL7vhaFtQVuvvHHt0A7zJkpoc,8768 +gradio/templates/frontend/assets/sv-D965Scw3.js,sha256=0u3oLRIk2_KY8ubKpA25VA-TP0wd3L8Rg7tsT132Yek,4548 +gradio/templates/frontend/assets/swimlanes-XN3QIQJK-B_WzXq-h.js,sha256=kl-AoFsjs-bAoKkShgg6UnuQcehcOeqmMLRw-mRJnS8,111173 +gradio/templates/frontend/assets/swimlanesDiagram-VK2B7HYN-drnYLWY0.js,sha256=81YCSAVWetT9n0j0rjdKfT1kvIVy0UMwLzaiJ-NQlVA,873 +gradio/templates/frontend/assets/ta-BfAsS7an.js,sha256=Vc1vCa3v1bgU9x_lmLdh855sKfndL7KFVhtPxACKkSE,9715 +gradio/templates/frontend/assets/texture-CHfecbFF.js,sha256=EydttiNTmw7LclmLK_GH1fLvpi30TGTt-mKdSeTfExY,16997 +gradio/templates/frontend/assets/textureLoaderManager-CylKDzFc.js,sha256=92f4cNiXZAhLZMAvsi9lj3WcV7AiofmE6_j5LYtMF_I,4479 +gradio/templates/frontend/assets/textureTools-DhiXeaYn.js,sha256=lmQUfe9gqAPvP6jN8JDUNVinn4sisesy6AGcSI8AJpg,1395 +gradio/templates/frontend/assets/tgaTextureLoader-CPeB1XOs.js,sha256=CT9mDuzSoOnz9_1qvNJK2AOjj45RaRu1ey1n8_TNIjU,3421 +gradio/templates/frontend/assets/th-DcylpqFZ.js,sha256=BOvs9l3OTArDMg1TtS__SB286GmL3nlRqmm7JxeCVGA,7929 +gradio/templates/frontend/assets/thinBlurPostProcess-DR41OYq5.js,sha256=weg03A-zeNtFJT86U1V9EEi57kdkLuiXAWFDbKLS9fM,3701 +gradio/templates/frontend/assets/thinEngine-DwZq5qIC.js,sha256=AXLTnyOht_4WcnErSIeMqBf_gObfhNzwIUvS0Jzdntc,64935 +gradio/templates/frontend/assets/thinInstanceMesh-CFLvP4ta.js,sha256=Wqa7kGrOR05hRYsu9-VkvzYGwE15_dV36nI6JSJPLz8,11186 +gradio/templates/frontend/assets/time-CQADUCWo.js,sha256=5jSl2XM59KfzeUkS_t-EwKyxm32wz8_oxwmftMFNkNw,14958 +gradio/templates/frontend/assets/timeline-definition-24CTP7MA-CjrfkE9-.js,sha256=ysPNvLfaPHCqDpkMCgqMVK10l4x3LVFQAoFhBxQf1OM,30464 +gradio/templates/frontend/assets/timer-D_nnybJL.js,sha256=kQ4Wy_tLX8NhH19YuOpYbxOeyhaWVV-FF3Lb9j7iny4,37210 +gradio/templates/frontend/assets/tinycolor-PEGdpOg4.js,sha256=huVp2pvfNt7e_9TrrEU06OhovfHRS3VL0CF4bK02UO8,15129 +gradio/templates/frontend/assets/tools-DAjdSQwQ.js,sha256=1_OPCKWEP__bwWoODb9ES7pljadBlty3NFhUYbn9RZ8,17309 +gradio/templates/frontend/assets/tools.functions-VA-Es30k.js,sha256=mK5wVEIQJd9hpHhlImyW4SP-BZkpB-CNmHoUguC-Vwk,77793 +gradio/templates/frontend/assets/tr-Br2NDAtq.js,sha256=lLuGLR9FFMndpZ-WuXtZku0935PdOSSublpMP_QV3FE,4872 +gradio/templates/frontend/assets/treeView-Q6P3EWNA-n7WyPtcb.js,sha256=MYzzjQwd_e_1J9sU5Xz_LH1EBZuvaEAhzFnd0ww9oxE,127 +gradio/templates/frontend/assets/treemap-BfjIY-m6.js,sha256=HUOedTdjg2RZneUm75trElWU2l3kOTApPrgE18ZUmSg,4847 +gradio/templates/frontend/assets/treemap-WGGIJYW6-DMuB7JjV.js,sha256=D7gO32pVLqsTuyKh5ovz3dkiGHHCUndFGEiAQVS5z9U,126 +gradio/templates/frontend/assets/typeStore-Cu_sj2zM.js,sha256=rFwc2I4hRU0HU9QeBMYs-KGbiHeHRpVHhbXTLQ8bZtg,80 +gradio/templates/frontend/assets/uk-C_hG5on_.js,sha256=ChbjRq36jyBH9pLh0AixHOkJSpcuFMJiypKYXONcBCQ,6850 +gradio/templates/frontend/assets/uniformBuffer-GVvYnunY.js,sha256=mcNqiJ8lM6VLFiWzr7lGiZIwrzkvBav5M6jEc9hpnVc,15360 +gradio/templates/frontend/assets/ur-BYavn8yA.js,sha256=okQrj8SchGawIn-hazSm7azfSmbNdMMCQHPzPq0yfjc,6455 +gradio/templates/frontend/assets/urlTools-CbpcT2lw.js,sha256=bF5PbZxGX8GthX_OLX7MvT669PWoqohXhmPTa7R-OhI,116 +gradio/templates/frontend/assets/utils-CiUeIMeo.js,sha256=060skhdDMmox8OJZo0H3l61_DkJU0weLLdRu6Wlgiw8,561 +gradio/templates/frontend/assets/uz-DHCQDivm.js,sha256=tA_IP7XzwjxCnEAnLXxMur-AldWN1QTwzNvqGR1qF7g,4876 +gradio/templates/frontend/assets/vennDiagram-4TSXK5OY-DHmJmREj.js,sha256=neyGSFJYoEhjxLL06FfqBhyw279VrX5TaemeqoMPYSQ,41218 +gradio/templates/frontend/assets/vertexColorMixing-TQFn3hiz.js,sha256=hCVH5kOzvbTIiOpdv-z1Gm8trhmRJV5e5f_IwGBQw-4,4003 +gradio/templates/frontend/assets/vertexColorMixing-p8rh7oMH.js,sha256=HiS7LX6nWrR4YsOxntRY4danzwwV_BqYy25oTyvmFvs,4788 +gradio/templates/frontend/assets/video-0d9_8O0I.js,sha256=3Kl26WWc8XZiXpPwk2dDPM_3zsvLiUgHD1xhT1BeflU,8721 +gradio/templates/frontend/assets/video-W3rk8GZx.css,sha256=40x8yzHZrVwDznxCkhpI0ikpcKRZYVxDY0PbbqK8n04,342 +gradio/templates/frontend/assets/wardley-WFR3VGLG-CMO5rrBC.js,sha256=pcngWhvqy8kDLXIPrb-uTaM71FD2oVglQ852BO3GtSw,126 +gradio/templates/frontend/assets/wardleyDiagram-VM6X3IG4-DiPbnLjM.js,sha256=r7tCxct3prki3yPJnrTjSZXzoUA4C_BvVxjaVdrcKmc,25219 +gradio/templates/frontend/assets/webAudioBaseSubGraph-BKDEvoGA.js,sha256=b5sHH1911wIzshPVExMjlUa5pTW3vQupW0qpL6_F6e4,7475 +gradio/templates/frontend/assets/webAudioBus-C-4Fu-Mg.js,sha256=wUdgp7MiBuPdzJC9uOMRPPTuBgpPQ_e8ivT_UNU9tWw,2190 +gradio/templates/frontend/assets/webAudioMainBus-eO0mo8UO.js,sha256=f9kVZ9IbUH1QCxEooTzxg5XXU6uGeFIcXWL7KkVcxJA,917 +gradio/templates/frontend/assets/webAudioSoundSource-BnF16w1q.js,sha256=NvYxyq15SW-Jct63pDoeftxmijVtQtAZJagiV0dmc14,1501 +gradio/templates/frontend/assets/webAudioStaticSound-BoxmtvHM.js,sha256=IoWmX2zCUlbgnuBBjiaiBLGpcQaU9g5os-gJXo-XCnQ,8707 +gradio/templates/frontend/assets/webAudioStreamingSound-4rUoJBPt.js,sha256=27LXwkh9_DFsFI8HmVpoV64ULTD67bOzMtRW-2V_VvE,8280 +gradio/templates/frontend/assets/webRequest-2jvbQIKX.js,sha256=gr1R-XpCWTpV3irSbCiCdNC0M62RNZFso8J4EEQc46w,1887 +gradio/templates/frontend/assets/webgpuEngine-TlPEOSiZ.js,sha256=kq-NJdHNCeASZXvwAZKs2VY5bTwnazTWnTyG61yu-vU,221893 +gradio/templates/frontend/assets/webworkerAll-CQ0TIIf6.js,sha256=P5tTi8YLmHCx9YPDdwVYEsgzHu1sWnRTkuQp5IRAJvc,66 +gradio/templates/frontend/assets/worker-BzdDEeh7.js,sha256=Z5hNxBRnp5__7nJdXCyx5LA1i1Nx258QW8bmVAEdeP0,2458 +gradio/templates/frontend/assets/workerPool-aLlzPuNn.js,sha256=0kSDxUBmbikTRAoLepldViw6qlPigF97-BGO1Y8yEFM,1289 +gradio/templates/frontend/assets/xychartDiagram-S5SC5T6Z-Bvb0ANOT.js,sha256=QJdunqOU3_Esl8dkuunLRyqksSxNnJlHxwd2Dmrgfqw,44075 +gradio/templates/frontend/assets/yaml-DjjjKWKb.js,sha256=ywxDibn3krhIee9otOo8hIVKvVLZFF57UVKQy_0oODo,1496 +gradio/templates/frontend/assets/zh-CN-CkzKEtHR.js,sha256=YSqqUyBetbpLJYQDEbi0byXvTETduMq2XsH7Yslw_f4,4350 +gradio/templates/frontend/assets/zh-TW-vib75kEM.js,sha256=5n_u9Vz1inKXuNrEaMFV89cv--X4zaXol74348Ro4pA,4328 +gradio/templates/frontend/favicon.png,sha256=K_x7Y4Jps6jl9lAtcaC4kBCJkQ3YDt6Dlr3FkPEwIBc,3127 +gradio/templates/frontend/gradio.js,sha256=qlBIwJHyGM0BWPQNwOYEQ8obuCSVZGgGrS2yWz0VftE,38 +gradio/templates/frontend/index.html,sha256=THCMbcp7DbbpAY2zZRSeTAwU0W59E-tM14DJ8ymeV94,4480 +gradio/templates/frontend/share.html,sha256=_fuB73VgqCQ3ysWmrv8MnrHN2bFgKIUeoOb_IHpz3J0,4442 +gradio/templates/frontend/static/bokeh/3.8.1/bokeh-3.8.1.min.js,sha256=UifFU1smD88QhNO40g8yPy3TRAWTuP8iEitFoj4sZaM,1217231 +gradio/templates/frontend/static/bokeh/3.8.1/bokeh-api-3.8.1.min.js,sha256=uMa2UHuYl2Ke1Vg2ntemBuWVbII-3qxwkSSrKuiefEo,121591 +gradio/templates/frontend/static/bokeh/3.8.1/bokeh-gl-3.8.1.min.js,sha256=n83NWlWLwlUjgMeVi4TXzJgkTCeWyyqTR0NHx4Qu4Vk,211655 +gradio/templates/frontend/static/bokeh/3.8.1/bokeh-tables-3.8.1.min.js,sha256=v1OLJr_vY5Lug0veIk_-spR19UOpff8GImHwIC-3eZU,301467 +gradio/templates/frontend/static/bokeh/3.8.1/bokeh-widgets-3.8.1.min.js,sha256=gdlITJNZnoY8XJA0mqmCjzt0J2uxWwoYW3RgGDXpQYw,313726 +gradio/templates/frontend/static/ffmpeg/ffmpeg-core.js,sha256=aXGJ-eGgZ2RrYFfer8IFFlIFL6-Ty8jNBbYQDO9TyRA,114494 +gradio/templates/frontend/static/ffmpeg/ffmpeg-core.wasm,sha256=gb3GRbcdfXT_Vv3Al5xfyy-S_8x_JFc6eWgf7U6nOQU,31739621 +gradio/templates/frontend/static/fonts/ChakraPetch/ChakraPetch-Regular.woff2,sha256=8UMT5pOt8tEJeVJb5fGfVVV32yDCzCWOiAk-naePs3A,7012 +gradio/templates/frontend/static/fonts/ChakraPetch/ChakraPetch-SemiBold.woff2,sha256=DIduqjKkFeQI8I7u-HtZz-utQkxqO3-lBijqyY9mzoI,7536 +gradio/templates/frontend/static/fonts/IBMPlexMono/IBMPlexMono-Bold.woff2,sha256=8HPeTEWcpj0YH_vr8mW1gHxm2XL2WOuLS3dz3uu1r8A,36904 +gradio/templates/frontend/static/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2,sha256=MRCYvnPqwzkSjwtabjPXJkW2-HSIVB_fRnxAIVLSl_0,4336 +gradio/templates/frontend/static/fonts/IBMPlexMono/IBMPlexMono-Regular.woff2,sha256=dWXn22ppgRRZyKQk1vHl2DE0_jgoDLRHHVJIBZhjVco,35536 +gradio/templates/frontend/static/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2,sha256=90Yka2sLZB-Z2eJuC_TkIZe95pISaFeFfwGVqUNi1So,4320 +gradio/templates/frontend/static/fonts/IBMPlexSans/IBMPlexSans-Bold.woff2,sha256=iJm2LXTQb0gvEytgDUnJpRzxOj2DCsNdFY-MzmUHnCA,56112 +gradio/templates/frontend/static/fonts/IBMPlexSans/IBMPlexSans-Regular.woff2,sha256=3WzVK_FdL1v3UZzT2HauLTcwbnfRqVpj6GfmyVq5xJ4,56184 +gradio/templates/frontend/static/fonts/IBMPlexSans/IBMPlexSans-SemiBold.woff2,sha256=wBs96MgFhGLKrdBEprh0qfTXCY19cdbHDmongJa4ZA4,19684 +gradio/templates/frontend/static/fonts/Inconsolata/Inconsolata-Bold.woff2,sha256=MhfJ7ncBcWJiH0NDky7t3-sVSspadVOkAjNknRM8B8A,39264 +gradio/templates/frontend/static/fonts/Inconsolata/Inconsolata-Regular.woff2,sha256=Ti4Ji6rCDml3DZrNUiCQzf9tqxOCvqHxg1nrygwYE9w,38608 +gradio/templates/frontend/static/fonts/Lexend/Lexend-Regular.woff2,sha256=YY9OM3-6cWT9mqKYYp0rmurxuctxCB1QSgXqKnSn958,13668 +gradio/templates/frontend/static/fonts/Lexend/Lexend-SemiBold.woff2,sha256=YY9OM3-6cWT9mqKYYp0rmurxuctxCB1QSgXqKnSn958,13668 +gradio/templates/frontend/static/fonts/Lora/Lora-Regular.woff2,sha256=0NNYz8z88OMGB9ig3HrOCAkIfzONfx80okR94Nqqw3U,23588 +gradio/templates/frontend/static/fonts/Lora/Lora-SemiBold.woff2,sha256=0NNYz8z88OMGB9ig3HrOCAkIfzONfx80okR94Nqqw3U,23588 +gradio/templates/frontend/static/fonts/Montserrat/Montserrat-Bold.woff2,sha256=KUZT3BRm3NoCfI_02A97yPsHT8DarKua_eaMH3ZGux0,86804 +gradio/templates/frontend/static/fonts/Montserrat/Montserrat-Regular.woff2,sha256=l27-Q4SCO5u9s0mkG1VhQYPldjh3Je4GhSruLEcebDk,73632 +gradio/templates/frontend/static/fonts/PressStart2P/PressStart2P-Regular.woff2,sha256=WxCXh6g0DXYBrJhixGDCYgNIK4CAsrCRu72xE0q80vw,2488 +gradio/templates/frontend/static/fonts/Quicksand/Quicksand-Bold.woff2,sha256=Jp7WidXR175zzpSQrfbRPQ7h3-XKkz2QhA2KrGiXdbg,29460 +gradio/templates/frontend/static/fonts/Quicksand/Quicksand-Regular.woff2,sha256=2DDCphSj6Wo1uWLzuwMqB8tsMJ-ys-no8Jq_-ZJzN5c,30864 +gradio/templates/frontend/static/fonts/RobotoMono/RobotoMono-Regular.woff2,sha256=MK0d39o5RUujHi5e7_ugZpcUxzaycdtp9BkWilRLzN0,35892 +gradio/templates/frontend/static/fonts/RobotoMono/RobotoMono-SemiBold.woff2,sha256=MK0d39o5RUujHi5e7_ugZpcUxzaycdtp9BkWilRLzN0,35892 +gradio/templates/frontend/static/fonts/ShareTechMono/ShareTechMono-Regular.woff2,sha256=c7h-t7At_sTLHd-rrW5iXZx3s8gQFQZEIN6I2N0EgWw,7408 +gradio/templates/frontend/static/fonts/SourceCodePro/SourceCodePro-Regular.woff2,sha256=mIyGHNz56U5GaHhjHHLCc5e1ifhIqmzDWo1SkjijyiY,8732 +gradio/templates/frontend/static/fonts/SourceCodePro/SourceCodePro-SemiBold.woff2,sha256=mIyGHNz56U5GaHhjHHLCc5e1ifhIqmzDWo1SkjijyiY,8732 +gradio/templates/frontend/static/fonts/SourceSans3/SourceSans3-Regular.woff2,sha256=ziHgf4ESDCmEXWJ2RKl3uFAn_FZLaOIzSepZlALlXpY,10684 +gradio/templates/frontend/static/fonts/SourceSans3/SourceSans3-SemiBold.woff2,sha256=ziHgf4ESDCmEXWJ2RKl3uFAn_FZLaOIzSepZlALlXpY,10684 +gradio/templates/frontend/static/fonts/SourceSansPro/SourceSansPro-Bold.woff2,sha256=S3rVTBe1OvHFenqRl84ky7FhpgbbzSk2j8s8RoppKB4,102576 +gradio/templates/frontend/static/fonts/SourceSansPro/SourceSansPro-Regular.woff2,sha256=QxuP-bUGPl1I5OYkFYNa6u6GmpGcX-cJACeae3sDSpY,103012 +gradio/templates/frontend/static/fonts/SourceSansPro/SourceSansPro-SemiBold.woff2,sha256=8pSxBKUxgj7nF4gWZ_8zZZpgj-rtgDxRLVluEcAChjI,5044 +gradio/templates/frontend/static/fonts/SpaceMono/SpaceMono-Regular.woff2,sha256=GrXLS5ClbWAx2zYYJQofG7UqJ131oOya6OYmhlUPGvQ,4116 +gradio/templates/frontend/static/fonts/Ubuntu/Ubuntu-Regular.woff2,sha256=E-Erd-gcdWwgAj306cLkmbfsHybPX5yKDpp63KfsIC8,8760 +gradio/templates/frontend/static/img/api-logo.svg,sha256=U0bxk-F8XMEQqDlMPZTzwrFgCmNOj5wBz2nV5CTCMh8,1544 +gradio/templates/frontend/static/img/camera.svg,sha256=SpId6c1K484Wkh_BWPCYM0Y4hQtIWLhPDfV2pW7Sko0,349 +gradio/templates/frontend/static/img/clear.svg,sha256=vwpFiqfMn3jDAFS1a72C1q4BEHLTaJZKurG0RIpX9j4,1920 +gradio/templates/frontend/static/img/edit.svg,sha256=gvIbS-99UVGmYE5a38K1AcsPD_KmwwBe3hKdYzrzbHc,1427 +gradio/templates/frontend/static/img/javascript.svg,sha256=hQz5S4qCD6CWtmPhbRryjIljsJ9kcLBqGxtguImqYh8,742 +gradio/templates/frontend/static/img/logo.svg,sha256=PRMb_z_hW8uz5uZVKovuJTd8NmZyOpy-aM7KlT6mE98,1107 +gradio/templates/frontend/static/img/logo_error.svg,sha256=WkTxoBCQ8Hvcx-sBsZbhDpwInU_WUhqvvdssj0wG8o0,4609 +gradio/templates/frontend/static/img/logo_nosize.svg,sha256=if12hwcvbBq1K-M0hJTwQQwnD0U-gwYQVxmy4_cJFGk,1082 +gradio/templates/frontend/static/img/python.svg,sha256=IOOckruIxuSlu-lfxORc-Gze5YUTCOE1mIQZplzkgLQ,1111 +gradio/templates/frontend/static/img/undo-solid.svg,sha256=6O_Pyjo59fCCynMz5XhWU4wI1egQ3anNpToH9fpmISw,767 +gradio/templates/frontend/static/js/iframeResizer.contentWindow.min.js,sha256=62pj-jS8t-leByFOFwjiY0T92YlWwowYgHnFRklgv0M,13719 +gradio/templates/hooks.mjs,sha256=qSu36ayhEE5FZuhHtwufI_u6_o24a_zvkjSQ2tDHgY0,619 +gradio/templates/node/build/client/_app/immutable/assets/0.DSNh2M0f.css.br,sha256=ranxhaiOurGuLHL-o7HkEAGSY5ZJxEpxOnubFD3HOtk,6164 +gradio/templates/node/build/client/_app/immutable/assets/2.Cq76gkHB.css.br,sha256=m3funPFvOQTZjOOhnc0z0yq19iEb3FAdcMcoZ7sFgTw,1307 +gradio/templates/node/build/client/_app/immutable/assets/AltairPlot.t5CeUkWN.css.br,sha256=5ameGHpyembdqllqqF8u6_9j9Xb60DRR5iwdn7brP5g,269 +gradio/templates/node/build/client/_app/immutable/assets/ApiDocs.COuXNFVt.css.br,sha256=D3BMDGuqYq9ZDBpEBvFEy78RuPLxJRZ_oNYo1Rm5OVs,3321 +gradio/templates/node/build/client/_app/immutable/assets/ApiRecorder.BXM0NqLC.css.br,sha256=7ydXM7l1Eb2Tz6On02PDvev8MJGv0ozvAyH73IeeAuA,272 +gradio/templates/node/build/client/_app/immutable/assets/BokehPlot.4FxaFuT4.css.br,sha256=VyHx9Vvjkm-InNvVQjJUFZ4PFeC_QghFqTn2bH_2BRQ,66 +gradio/templates/node/build/client/_app/immutable/assets/Example.B1swpn2y.css.br,sha256=2wjdxi0YvnJ9TCukyfBvkGtYp2S0hqM9SAhRnPudaN0,78 +gradio/templates/node/build/client/_app/immutable/assets/Example.B38sx5Cv.css.br,sha256=FkzbVb2Kn3wT0_zZvOW5eR4rWDzSwiWLqR-t_CzRE1I,176 +gradio/templates/node/build/client/_app/immutable/assets/Example.BG5zdIqX.css.br,sha256=ed7qesjC6sKhWVu_rIIpWdZ4GPm2gthG4_dTWFrIbyw,50 +gradio/templates/node/build/client/_app/immutable/assets/Example.BHd1o9CD.css.br,sha256=LkfpXlXZ8YAOYJRCPRL3apT7H9ZlAg6_gHGRBkKxqAM,159 +gradio/templates/node/build/client/_app/immutable/assets/Example.BK-tWmkG.css.br,sha256=pSUe9DYazc7XthpWRYbribz5FtuT-P9ZG6semyBM4vE,69 +gradio/templates/node/build/client/_app/immutable/assets/Example.BUUMH8K0.css.br,sha256=7OxEDQ0f9wUvNFISwIfy2H-Xa4Rl8mbfrFjP4zARgqQ,62 +gradio/templates/node/build/client/_app/immutable/assets/Example.BeU1J4ps.css.br,sha256=yE2Im7AcilTPt5Q7QEGmUdGnnpqyQa5niE6GhxRwuSQ,65 +gradio/templates/node/build/client/_app/immutable/assets/Example.C1Twyudg.css.br,sha256=BTelp-DcfJK2dL_rBRGLEvgohks_lvStgoqslYW1dn4,173 +gradio/templates/node/build/client/_app/immutable/assets/Example.Cb41fFYF.css.br,sha256=uMaq9v1dJcgOAb4bcu82Ba2uZO--OpNFruTZNY_cCVw,113 +gradio/templates/node/build/client/_app/immutable/assets/Example.CgIc4GLa.css.br,sha256=zbdmgHNY0E_j9455Sg6UEw6eT5V665VVd78INzTudrk,65 +gradio/templates/node/build/client/_app/immutable/assets/Example.ClCEvrVq.css.br,sha256=QeJa_nO_cWAzp1UJqmdoOzfd0572OHD4ZH786EgC7_k,251 +gradio/templates/node/build/client/_app/immutable/assets/Example.Cpi22WGa.css.br,sha256=jLZT8yJMjsPtDfeY4yIHIIv8xjojaBW1_zdvtqQ3J4g,65 +gradio/templates/node/build/client/_app/immutable/assets/Example.CqSXPQC0.css.br,sha256=y_PLHJUQT1JYkYTrcvs2l5s9EUE7QssItAdugFh_NUg,153 +gradio/templates/node/build/client/_app/immutable/assets/Example.D2nbjfVb.css.br,sha256=AjxjURKZSbU4RkvH3S7zO6xync8ICamb1n4HmHuEMgo,62 +gradio/templates/node/build/client/_app/immutable/assets/Example.DG5wkFQp.css.br,sha256=v1of79HA75Ln2J_-1ifdvLsZsyErhp1_o_BP2j8e80s,254 +gradio/templates/node/build/client/_app/immutable/assets/Example.DO-WzQxB.css.br,sha256=cCYOFXsvwgPvHYWvxgJKaqoE8tuwZE_A3FCkQNvcQu4,128 +gradio/templates/node/build/client/_app/immutable/assets/Example.DSMNiXnn.css.br,sha256=dRE_fNhKUElNwmiu2oJyia4UCzHfX4Qkh2pfyAQGenc,62 +gradio/templates/node/build/client/_app/immutable/assets/Example.DWDv4qx4.css.br,sha256=fSZY3ry1X2XP3K6QYtn_RT8DHPtmQKEAHGHm2V1m8Tw,55 +gradio/templates/node/build/client/_app/immutable/assets/Example.Do5iR6B9.css.br,sha256=0dUEa7QC0jVH-91YQgUuG_yuSA6uoakqwntranpx1yQ,59 +gradio/templates/node/build/client/_app/immutable/assets/Example.PnzFsODt.css.br,sha256=M8zM4Tr1hFo4slw8JCU-DrCZ78DdVBREN_3NQUu2X0A,63 +gradio/templates/node/build/client/_app/immutable/assets/Example.QWdMqwA5.css.br,sha256=glc60IQ8DnYcLkwdKdY8y-HLBdmyq4td78fqmenSom8,63 +gradio/templates/node/build/client/_app/immutable/assets/Example.RXDI_Ar6.css.br,sha256=jjKNsSz66k5IWa9M0IRIEJ4Dxoic1AmfU6xMa6QSTq8,58 +gradio/templates/node/build/client/_app/immutable/assets/Example.bHSd0VUC.css.br,sha256=xyJeclVxYO7FJEhV7XMCLEmFWE1D79lVTl3f7mjKMIs,84 +gradio/templates/node/build/client/_app/immutable/assets/Example.guFL0Sj1.css.br,sha256=OHQqLVGhoodG3Mv33J6piR2a6qrZjPrOfxFp1b5RqAA,59 +gradio/templates/node/build/client/_app/immutable/assets/Example.ju9UzsGI.css.br,sha256=BsdxGbzukMWhFs9KJK5MzExmXHKLh8zz6cP8cK7Fq1M,454 +gradio/templates/node/build/client/_app/immutable/assets/Example.qsJQ3Pbm.css.br,sha256=LeadtWh4Rd5Wg4g9dvVGxio3nDtuU3013wdqti2Di8M,301 +gradio/templates/node/build/client/_app/immutable/assets/Gallery.Cso31wFC.css.br,sha256=LKALPSqXHiZqLrY7TUUBYvq2SblzX3SPN0YdfFcHMO4,1034 +gradio/templates/node/build/client/_app/immutable/assets/HTML.BuYIBbeV.css.br,sha256=S1s89kb558Yub9dlXeIShn_3AHSCKlAcBvCcO_CR_Oc,203 +gradio/templates/node/build/client/_app/immutable/assets/Image.Da_XA0w6.css.br,sha256=mVjgzArLAhAY-LXMYHmD0yVIhST3FzML8IYLFPGCeF8,41 +gradio/templates/node/build/client/_app/immutable/assets/ImagePreview.B2sIO-1d.css.br,sha256=e5OBuiXvwHEN_zlG5SDjR_81HuB2O9K2w3B-izuivdI,248 +gradio/templates/node/build/client/_app/immutable/assets/Index.3FqI08xq.css.br,sha256=Qzibr7xTtQNpsmPHjStT91T1SrwN-Srr-5HeBzkE4Q4,75 +gradio/templates/node/build/client/_app/immutable/assets/Index.6CKB8ymh.css.br,sha256=YW50E8l0kyyZb5pNCQfH0W1Yde3aaUwSViB7NyRMoPw,1302 +gradio/templates/node/build/client/_app/immutable/assets/Index.B2IoSUlF.css.br,sha256=6Iu50tb7NJfUmsObsTxNV_ZRz9sp0Edq0bTv2lDAVyI,803 +gradio/templates/node/build/client/_app/immutable/assets/Index.BCY3SUuw.css.br,sha256=Bi62i-P8JXkPqr6pUo_RX6S8mlDwE5WX6wbqww_PTmE,491 +gradio/templates/node/build/client/_app/immutable/assets/Index.BGK55NKF.css.br,sha256=tqs-tHY-saw0QpJPAmpSRou0DaEV8qi5p0vRQX3dEC8,172 +gradio/templates/node/build/client/_app/immutable/assets/Index.BHng8pvl.css.br,sha256=rgSMtLSW4P-RVIW6SkJSsPfQlXD5r4N0dkB2oqAZUd4,387 +gradio/templates/node/build/client/_app/immutable/assets/Index.Ba0kRe4M.css.br,sha256=0f53x6k404Gck61vv1F5j4KPInK2hZ_wFI1pa0-mkWE,670 +gradio/templates/node/build/client/_app/immutable/assets/Index.BgJHsyvf.css.br,sha256=O4J9D_rPXkS1gNWv2TkFk32a9fxRKTKz7mppDD7OlYY,296 +gradio/templates/node/build/client/_app/immutable/assets/Index.BhPkOP7y.css.br,sha256=D_OJyDLCVLA2k7kAd3q0urLKE7LgxhC156WahFobJZc,3017 +gradio/templates/node/build/client/_app/immutable/assets/Index.Bqii6RB8.css.br,sha256=WlZArjot5PlJWbE89UsIFiqbMmyZqyW-HmNGmHTDaGY,611 +gradio/templates/node/build/client/_app/immutable/assets/Index.BsaKcsdE.css.br,sha256=ILezKUzd-6EASpDorGzd_TQxgAj1UCmCi9vKxX_hkwY,122 +gradio/templates/node/build/client/_app/immutable/assets/Index.C6IXUoUa.css.br,sha256=H9Y0Sj5oHgOOpe4k8tu47i4CKdxa4w83WoA02kt3NpU,1226 +gradio/templates/node/build/client/_app/immutable/assets/Index.CA1QTtuq.css.br,sha256=ZOeHgDJx65xlzPphCosVI4iJmHjaLQnu6jsAHa1zZ1Y,157 +gradio/templates/node/build/client/_app/immutable/assets/Index.CBfSpNAf.css.br,sha256=eZAb0slPbciqmE0gZvHxXK1yWPq4TVb-R_wBhwrH5xk,827 +gradio/templates/node/build/client/_app/immutable/assets/Index.CRgHWhLi.css.br,sha256=GrCOi7ACNmwFiGyiuid9H2-1_bovEQEkal72EyUXzpo,134 +gradio/templates/node/build/client/_app/immutable/assets/Index.CWf2xCP-.css.br,sha256=uWdjDVf6jqlC5T6wOoo6t68CAxUKsb2kEmVb5NFCfR8,464 +gradio/templates/node/build/client/_app/immutable/assets/Index.CWg6ZASC.css.br,sha256=edjtPOTuud5WOOuR1q3kNEDg3IUKhtwhMwE2kIkIyNg,275 +gradio/templates/node/build/client/_app/immutable/assets/Index.CcsdfK63.css.br,sha256=0ud06MvS9zrFBcdYR2kistwwavPloWKGapAFKWD2uh0,540 +gradio/templates/node/build/client/_app/immutable/assets/Index.ClHt7ViI.css.br,sha256=fQP2edNJUw-zlbP0ASOaLvONk64w9YqaDYHPm7FAE44,2919 +gradio/templates/node/build/client/_app/immutable/assets/Index.Cr_YPqE0.css.br,sha256=NNojuzc62kFAR-6Ry94bJxvPLpkb1cqrF6ONab9vo2A,895 +gradio/templates/node/build/client/_app/immutable/assets/Index.CuBpy66D.css.br,sha256=pMHZxSMe2XA8Me4bWb_rD-n0onxbjTaKTUEzTPvKTsk,655 +gradio/templates/node/build/client/_app/immutable/assets/Index.CvOXDAXN.css.br,sha256=UQVvpWwrbNtnKHjECVwg7w_TRc4UunZlwXQHuv_15L0,501 +gradio/templates/node/build/client/_app/immutable/assets/Index.CxE3o7oI.css.br,sha256=Yq7vCNKabTiZwgfPwN-PCLJhZc95uK6Pw0q0PTLnFCI,489 +gradio/templates/node/build/client/_app/immutable/assets/Index.D-h_yCjW.css.br,sha256=zD1ZYcmx_jeRoTDQIzem11TKPF7Z4xwDx0X_frYAgJg,1251 +gradio/templates/node/build/client/_app/immutable/assets/Index.DCRdhmCA.css.br,sha256=Bih-V9OPJSCBMuc0NB9ZVgVTX1zk0QfmqWsNrgNKG7Y,126 +gradio/templates/node/build/client/_app/immutable/assets/Index.DKIzZVIo.css.br,sha256=J_OhiZMNcQFZV88elQ0SHuqeLvmfycMA7Hnus85cvPI,61 +gradio/templates/node/build/client/_app/immutable/assets/Index.DMLZDKgQ.css.br,sha256=lLbXCIwxqLj3vclDNKdjJfLATLLpIcW8etW8JKz85v8,10436 +gradio/templates/node/build/client/_app/immutable/assets/Index.DOWWMP04.css.br,sha256=2cOoTYV-rl4tUS19gHvK53sDrdgR8Cykt65lKbF0dFQ,733 +gradio/templates/node/build/client/_app/immutable/assets/Index.DRCpmDeD.css.br,sha256=AdRW09wZSljTLvT8_vhwS2f40bGl4FdZpRWuEjLkILI,933 +gradio/templates/node/build/client/_app/immutable/assets/Index.DgD8sjzA.css.br,sha256=GFTuJeZamAMoE3tAhZWop8Nv1QsUYhmZZgjaY979D2Y,173 +gradio/templates/node/build/client/_app/immutable/assets/Index.DkaV9IGe.css.br,sha256=OPM6S9yAQuJHu2dvhQ-zY660mSqli-uZLgtatE0NlaY,503 +gradio/templates/node/build/client/_app/immutable/assets/Index.DnmLATw6.css.br,sha256=3xK9Czaeo5-zdusUh_cUA4bFy5jGYtgEd3f-noJ2slw,781 +gradio/templates/node/build/client/_app/immutable/assets/Index.DrCM5gzc.css.br,sha256=CiYWotKDuusb79o4LoHg8fo3gdiUvpiutssBDtC1aTY,196 +gradio/templates/node/build/client/_app/immutable/assets/Index.EcGL5Mc3.css.br,sha256=ywCwOb0-81-IWdirrFlBV0TkeHpKtbBW3-jSuQgVR88,671 +gradio/templates/node/build/client/_app/immutable/assets/Index.LKTY8Jbn.css.br,sha256=wBYzMlMonFsHNW7LKTQDVvepKLtZ0b76llfZ4cUp_yg,268 +gradio/templates/node/build/client/_app/immutable/assets/Index.O9LU53nH.css.br,sha256=5NDQv8sgOVs1Zsq20nUsQigqmIsGnmyR7SNRISznz6E,2434 +gradio/templates/node/build/client/_app/immutable/assets/Index.OL5m2Qtu.css.br,sha256=xPhHHh8waGOcRBRN58DH4s1dlShsV0SWH_VniRkG2ys,1613 +gradio/templates/node/build/client/_app/immutable/assets/Index.VzTVYr-q.css.br,sha256=gbmDA0BavFbruWQO950yga8Vo0JWzsHbWaj02S-VuD8,104 +gradio/templates/node/build/client/_app/immutable/assets/Index.X2SerQpl.css.br,sha256=aBJOPY_G10BNVJb4Spu9aYDpifdM1I7-h-mywPUs6CE,1428 +gradio/templates/node/build/client/_app/immutable/assets/Index.Xhg3Ucw_.css.br,sha256=pvQW6FHxeOPtjvwvOH3tfWThL3RhKMMYJy-xjpImei0,78 +gradio/templates/node/build/client/_app/immutable/assets/Index.l0AUS9hi.css.br,sha256=TtdFj8yhgaPX2roxgh3ZlVIbBqzVZoil2O5XWi-rym4,152 +gradio/templates/node/build/client/_app/immutable/assets/Index.nz772N1q.css.br,sha256=j1bSSXxjWWXzLDtJVKr2AoeoBlwsQ5Hs67CBY3_rdgk,403 +gradio/templates/node/build/client/_app/immutable/assets/Index.ptz7y9zw.css.br,sha256=irSdpZRuLb2bUNlKYvz_CN0tcq1PwCE2j7Cki54kMyQ,607 +gradio/templates/node/build/client/_app/immutable/assets/JSON.8l7fUyjk.css.br,sha256=mYCO5v4EEzQz3pPX5vpt6Qi0U-7VP4biETXSP4VDnmA,676 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf,sha256=B9jjA85PwStLtU8QBBcN0ZCh89tF1AD-aAYN8-CJcmg,12368 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff,sha256=Gua9dHVZDpfn8UWongnM3jIvemvAuRYHsci47igpD-0,7716 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2,sha256=3ncB5Czx9M8LdmwD-yeXcgfu4vT9XXb6ghiEBtpD6kw,6912 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff,sha256=M5jdAjAlV6eT8oY_iOAtls4Q3yq_-gfI6fqQd1EW5lw,7656 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2,sha256=XVPnCtYHwjUhYt7J4JI_tU7Nr6zL9gTNjc99APrLmJs,6908 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf,sha256=7Qt0Ny_u_LucBmay4hDaN7fkn6f7vz7rEdtfaT2s-7c,12344 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf,sha256=kWPfnHEiQy5klbQin6kHHPmuhqdYrl78SSTsLhptvOE,19584 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff,sha256=m-fOuIAEq4rRJAgiRvv8ykCR42OF1Oxu0d9nN12tUPs,13296 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2,sha256=dERO_Vk8AF4_RXO0RSRwTArwqTf-kRzKnpQGjQ0UDT8,11348 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf,sha256=Hm-VeekOLKw3-PYKWXxDbgdcEUOFZSt8vrDewEISkbM,19572 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2,sha256=UYFNJw0G_wJV26B5mZT6TYyE0R8JlR1HWV9Kux82Atw,11316 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff,sha256=Xih1O-cX2sl_VZ9JvBC-nPPBJN3KvaZlnRHLaP68ZGM,13208 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2,sha256=D2DRuJeTjskYyM4HMJJBG6-UOPZzlGVpP_GLD50gsCE,25324 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff,sha256=x2xdaWKX1RucsWOcfaQzTw597IG0KxEhO14l72cbuCI,29912 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf,sha256=E4rCjRZjswN-nF9SNx-lxj2DJPSjjSLNVz5uo6P9DPg,51336 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2,sha256=mc1Co8By2Rjy9EmEqAfPeqFuE1Rf0IdfwHxsZfmecVs,16780 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf,sha256=cO4fZKIPIEjCGUDvRtAUT9IVuqlTymmv0eMemFRPcI8,32968 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff,sha256=pvfsDYRqx62XWtuJWcN-1JuUrLxK5DbbnOniAofkpkw,19412 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf,sha256=DYWufMMPI3kKfxpYxKES_cqKrnaba6EUKa8dmLG2yzo,33580 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff,sha256=8dbvhvOxGlKL1RhRmb0kQ-yysN6tltiGdLWiwSviS98,19676 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2,sha256=l0ecpszpBqvJYeyslvql-couYbjnZw1HWCa83umnwmc,16988 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2,sha256=wjQs2Lhp4BdSqTIdwXIT_EDU0Ex5aIwdQ_LPMWq9eGY,26272 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff,sha256=xjaNh-iho6XTN2I9g9jcS4aPJCqa1HYjfW-NHg8WjNw,30772 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf,sha256=0DMvUoaDcP2Drn-kZHD5DI8uqy_PErxPiAgLNAyVqDA,53580 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf,sha256=-Td6sCcc2lmvJLz_vUak0MijVy_6_bs43irV6nsNXuU,31196 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2,sha256=3Ec0TbtstbZVyEYNVh9N9fUBuQyAStPGzsZf4yI1GrE,16400 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff,sha256=hQwK9cIjhJf-uvXkYdiAv0WMNB9C9PMw8bGrVpixmY4,18668 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff,sha256=io0kRYE3GRK48_WiPiQ3yypZzZvK67A0bnIsBXN6JXE,18748 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf,sha256=CM6Y5RsE1YlFowHmOeAraZivKf39Yae4r90Hu_xHnUo,31308 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2,sha256=evWMXsjxMqLd3pAnxteBTezOTTuCKhEZKkKiDi6XMmQ,16440 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf,sha256=Hs4D95-VJ31X3H9rQ1p04TebDUYQSoUwKGtg_0k2nqA,24504 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2,sha256=6ZrlEUS_EjLvzBv-Wt02JixoZrD6qyT6dXQOG5hXemI,12216 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff,sha256=7OA8_YPiLCEs3vZv64RC0loIO-uYjbPxiD8_lzjXULo,14408 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2,sha256=ALJqyCXiCVBWOW4FU7isJtP4rRWMOCbii0xFs4XEcUo,12028 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff,sha256=ke5nUAzAEpqgrOOsXGH_FpIQLw8x0CtpNH-6Ndy3W_I,14112 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf,sha256=OTHdgfrthroCG7K73Db1vtmjjWtPQHespZsmWqGwIIM,22364 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf,sha256=826ol-GfSi5XHR6QDk43EOQ43rBahCSGBFugo-YWpK0,19436 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff,sha256=EeTcimRx_21u5WHVPRD96PdInnmCV_9EnF03wZdDVgU,12316 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2,sha256=aOjHPvQq_TzOxYvw-6MCzORIk45_wCCl4x-KlS7uE0I,10344 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf,sha256=HGfwaP6ouwm_CZwIixz2S9J1Fqbgf0aENEhzVku2amc,16648 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2,sha256=A21OlRSbaf-bzAzVV3Hv6yX_o5Ryk-aazXjVrDKMaEs,9644 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff,sha256=2WzfKzvdTWSo_V90pMRn8SOopzkxzUNYifCP-vm_lHo,10588 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff,sha256=yUPMmGOE9Z6GvqX9fcUKnE3-Vnp8BetA1nkHIN6tl8k,6496 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf,sha256=lbbS8aUBc7_tuMY-HRyZsQQn0KTfQgHLRFE7ImlRois,12228 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2,sha256=a0fEAWa22-IaXfyncYQT8hR_0jmb4bpgXYrTnO3yXf4,5468 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf,sha256=prIJn7VVxg46DbOgiELr8dcyxutOS_RJE2E77U_E45s,11508 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2,sha256=0ExUIZ-ersbU1P1C37KHhZdaR5TWsvxx5Wa5zW24Qt0,5208 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff,sha256=IBTFI8MhC8wWZkjE1MxX8Ft0ffB6JCd79xxR5n3Hnj0,6188 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff,sha256=ara2Lpti2uLADdkPeRvRCVC-Dsw0kNfWBF9Rwuj-CUk,4420 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf,sha256=UA4E1U8NUWZjMsnSCJqoA74iqoeOylOeWfpTxuUisII,7588 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff,sha256=mfnGdQtInJRivwSQC9P5Od-bgpM52qqqme9Ulc3d6lg,5980 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf,sha256=xkc2fR3U4WJGhxfQIOH8Dx3Fwm6_3_vlUmFxO_iMWHc,10364 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2,sha256=pK99QURAocF5CCXPtwDPnPQ7DyxLBPDrxSMBGtmFPsA,4928 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff,sha256=4U_tArGrp86fWv1YRLXQMhsiNR_rxyDg3ouHI1J2Cfc,16028 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2,sha256=cdUX1ngneHz6vfGGkUzDNY7aU543kxlB8rL9SiH2jAs,13568 +gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf,sha256=8B8-h9nGphwMCBzrV3q9hk6wCmEvesFiDdaRX60u9ao,27556 +gradio/templates/node/build/client/_app/immutable/assets/MatplotlibPlot.DNA1T45v.css.br,sha256=TYYLlKy72XRH6GJYmzvi04W3iicDypgozxXEmBT2e_I,130 +gradio/templates/node/build/client/_app/immutable/assets/MinimalAudioPlayer.CzMbAGNO.css.br,sha256=884vbp7fTAVhyweMa6V7sMVi7jr8oUegQNzzChqO3cM,360 +gradio/templates/node/build/client/_app/immutable/assets/Model3D.CAhmGe0p.css.br,sha256=EiLEK7xdy9f0zFVGjLfe_I7eX1WwPbaUkbT-cC_DNxk,111 +gradio/templates/node/build/client/_app/immutable/assets/Settings.DYn0Wjf5.css.br,sha256=m5S2tUo8U--2RDv7C2Qf-lYv7oxtENu6QJE9x5iBapo,646 +gradio/templates/node/build/client/_app/immutable/assets/StaticAudio.Dr1JIwK9.css.br,sha256=cV0l-4qlBSDDVHceTDgwYvmufUnGFrtoKThrYKodEHY,843 +gradio/templates/node/build/client/_app/immutable/assets/Video.DyHPMawA.css.br,sha256=J3Svmkge4T-2IiblpsGBCqfNkhGStbDIpvs-e8FlLL0,267 +gradio/templates/node/build/client/_app/immutable/assets/VideoPreview.C4JQksWf.css.br,sha256=mQziy9t8kHgpJvpmKhSGMwlNSHrLnOiGth6s4ERyFS4,1123 +gradio/templates/node/build/client/_app/immutable/assets/audio.B-0Anr4d.css.br,sha256=uCyVQJVPRhn1xxq5Np_Zv6KisBkn5ySqgaCQCCRre7o,882 +gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg,sha256=lCytHM2pBaxaZZ39LXizRPzPuEqKOsNyHgj0iCBWOKA,35286 +gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg.br,sha256=7Z4EYkYLwCmMlA40pd_2XdxmLxj-kpvid6A_CNeSV0U,11263 +gradio/templates/node/build/client/_app/immutable/assets/katex.BQQG_8V0.css.br,sha256=7ClhK6Ezgfd9VfSWbefriQcauIhsjy3PNCZIQptIJow,6988 +gradio/templates/node/build/client/_app/immutable/assets/markdown-code.DsF1U13j.css.br,sha256=z7ppXajeOVRBJEY2d2ZizEOhrnYqxKOOa6gwi1zs7yc,1077 +gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg,sha256=Dak6acRJHMkXH9h8HKvE7RgG_RjZOlBUGo9tkD_edKQ,9975 +gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg.br,sha256=2CCo-MdkALa9uAjthk5G96cs1aAFSHbm0gWynZmls1M,4394 +gradio/templates/node/build/client/_app/immutable/assets/src.BfutoOhM.css.br,sha256=rKSzfJd95DJ-4QXqUTjI_VPPFu00IVe28vczJsYQsM0,2010 +gradio/templates/node/build/client/_app/immutable/assets/src.DHR5oziv.css.br,sha256=RbY0l2D2Tf1wRQ1v0xnY6wgxgyCi4ixabTbflM5TAaM,528 +gradio/templates/node/build/client/_app/immutable/assets/statustracker.tf1Xc4uQ.css.br,sha256=tTKvjinc6dbFPUNz4BNEFcUTkorBZE-t9TwFUfbcF-4,1651 +gradio/templates/node/build/client/_app/immutable/assets/video.W3rk8GZx.css.br,sha256=xJ9pOwJtj3APytmQkd5Lz8Wlb3J0jftRygIkHgZ8aGs,151 +gradio/templates/node/build/client/_app/immutable/chunks/-CEk4en_.js.br,sha256=7PV6-g88r4dvB4PIjJjeK6HxUNqjrNKlsfKqSddOs7Y,2118 +gradio/templates/node/build/client/_app/immutable/chunks/-e10_SjF2.js.br,sha256=xEZYMyWCa-SwDWe7n1wQAGzJZvoahKmXC4y1tckd8dg,317 +gradio/templates/node/build/client/_app/immutable/chunks/04YixN252.js.br,sha256=nbkSAa_im_V2y9_Dv-GAX_eITtPb4uIAUKNo8Awowgo,842 +gradio/templates/node/build/client/_app/immutable/chunks/06PKkliu.js.br,sha256=LtabBrBVsBmCk04nZsj0RX8JyJ3_QUDLQwL6iS40IDg,3181 +gradio/templates/node/build/client/_app/immutable/chunks/0FSjOSIy2.js.br,sha256=KIJhBYSWm-pdiM1iaJLSu0R1tpIE9qz1darQf6fs5Gg,11662 +gradio/templates/node/build/client/_app/immutable/chunks/0QE036dE.js.br,sha256=4chuYtKgRqATgmrEfPyPxraC-qeD89Et3UV4MfT1TK4,15970 +gradio/templates/node/build/client/_app/immutable/chunks/0VUnrbAP2.js.br,sha256=GVwrhGpyHDe6J6lxc7lPxODMCHbHq3bFXdnNs7V9Bj4,981 +gradio/templates/node/build/client/_app/immutable/chunks/0n7dCnOl.js.br,sha256=z0YWamkhiSmr8EM8EdP8A7HlMFj0Rp5xfa63joV4Rrs,325 +gradio/templates/node/build/client/_app/immutable/chunks/1efKFLvg.js.br,sha256=sYGRNTScLjaeNF8QQrsw8DIHVC3PZNHQSzfQOxhzTIw,634 +gradio/templates/node/build/client/_app/immutable/chunks/26xGQRxd.js.br,sha256=Pn-mknt2AFj985WIoXySnvyK07hT9hx3jVqIMlkkJ-k,44166 +gradio/templates/node/build/client/_app/immutable/chunks/2AooTABI2.js.br,sha256=LivqoAkVZ5Xhe21-ejdqnFDPsKrR9s5dTOeeVxXqd2s,508 +gradio/templates/node/build/client/_app/immutable/chunks/2E6hNZRz.js.br,sha256=FUn_KMGYSv6X-rOXvGcHH3Vl-ZsiV-YMMcbUo5wkYvw,1676 +gradio/templates/node/build/client/_app/immutable/chunks/2IZC7hEb.js.br,sha256=ptddGMP5nF2bwCb0lf6o0VGWbXY6DpYLFaP4P9l_CYE,3035 +gradio/templates/node/build/client/_app/immutable/chunks/2YFCjJrI.js.br,sha256=kidrd2K5-5BJf-XM5g4e0kfoE7ii_EtZLEYEws3Jrs0,253 +gradio/templates/node/build/client/_app/immutable/chunks/2jvbQIKX.js.br,sha256=D-C9xLE4f25j_xjsXjPQMPqsISFhus55lharJrl4PVw,522 +gradio/templates/node/build/client/_app/immutable/chunks/2ldp1kd3.js.br,sha256=iQ3SC6I0LUsp8KIQVehpYLMfAL_JHP0rkYGQRew-1fA,9997 +gradio/templates/node/build/client/_app/immutable/chunks/3XhYNdHD.js.br,sha256=vnPYa-7CvDbnK21aaM1jTqpJPCjgROxKK1TtqgIkMBE,3229 +gradio/templates/node/build/client/_app/immutable/chunks/3kWo-YPn.js.br,sha256=3Ax4Xf7vQp0cp_zcK7H_gEIyn-1BXOJpWdjQhoHyGM4,65 +gradio/templates/node/build/client/_app/immutable/chunks/3kb7iahY.js.br,sha256=6_BzTmqfl1a8re21c7Y2UpZqT_jiiWN0xVMu9EufGTg,2079 +gradio/templates/node/build/client/_app/immutable/chunks/4rXsByLP.js.br,sha256=PW3JFSGlFFjYM4IF2UfF_UgmgmtK0lXDo7KT5w5ApIw,2469 +gradio/templates/node/build/client/_app/immutable/chunks/4zjvQwZ6.js.br,sha256=JUJxc4Zubhhd78iJPY0MeBvHXNkEmSSR3S0gjIx3PJI,4721 +gradio/templates/node/build/client/_app/immutable/chunks/5ArIZAeG.js.br,sha256=9ZQuyp_nxzPbcn5TWO7EyQ1Exy00mYJZP6_jhOQCbb4,1370 +gradio/templates/node/build/client/_app/immutable/chunks/5Vk9WsqE2.js.br,sha256=fa9IsAr3auz7GyOp-E2oAGZGM1j0g1kZ6ndOuU5nJf8,558 +gradio/templates/node/build/client/_app/immutable/chunks/5mdJl3IP.js.br,sha256=mKntpzN2WFVxSWRIxLY5upR8WTup_QC9ME6kWep0tPE,16639 +gradio/templates/node/build/client/_app/immutable/chunks/6HuDEYFq.js.br,sha256=st-LcsFxCPkPhIUiOHHkCc2-yd2K9GyjREY8QCn1iIQ,310 +gradio/templates/node/build/client/_app/immutable/chunks/6K9gtqIi.js.br,sha256=EkPwVmaR7z2Uh5AltCynPpZjyrwuBHVo1RBk4X2dhmk,349 +gradio/templates/node/build/client/_app/immutable/chunks/6wtusvIl2.js.br,sha256=B_oaXFokvMBUQQsRgNlzlIz5DJq8Lnaa4jGwwBWoozo,1077 +gradio/templates/node/build/client/_app/immutable/chunks/7Di3o59x.js.br,sha256=cmyusMKklhzMOpUZfYrOYMsgkGDrCnqIB_lKOXJ2LLw,10299 +gradio/templates/node/build/client/_app/immutable/chunks/849k5FB42.js.br,sha256=zojCE2n0RRzi5p9QnN9g6rdpR5guiZ7oDXRzoRA5JPU,6111 +gradio/templates/node/build/client/_app/immutable/chunks/8Y3GOE6K.js.br,sha256=i0ODlKuU_bmSKPgtuwmHqHx1-uAnb_m0zdmGaSIluNU,77 +gradio/templates/node/build/client/_app/immutable/chunks/9fjMLKSz2.js.br,sha256=-5cRM_6_r5T09V60BhCsZ23HYdzmPcT_59mu0dbgmbE,189 +gradio/templates/node/build/client/_app/immutable/chunks/AL7zGNml.js.br,sha256=jbXUr0puBrFhIhvXVXes48Ap9s_E56AhAhjH790KDXg,515 +gradio/templates/node/build/client/_app/immutable/chunks/B-KzW-5e2.js.br,sha256=bBmrZlsfgijGsGhw0DFA85xCVgiPW7SlxOjxm8bLP_U,645 +gradio/templates/node/build/client/_app/immutable/chunks/B08S2r_w.js.br,sha256=hJRnpRJXUBAvyltLJjghVlJNTmAPBuIDBtaHtE8fHoc,722 +gradio/templates/node/build/client/_app/immutable/chunks/B0G_sf_T.js.br,sha256=GPH4o6RgWzsa8eKy0MKC6TOI2-cT-a1Ib4nX5aGFefA,213 +gradio/templates/node/build/client/_app/immutable/chunks/B0RfiViZ.js.br,sha256=VfWswneZJ-GwpBW1KgSjHjsFqMbMhPPTE4YjRCvgMzU,1284 +gradio/templates/node/build/client/_app/immutable/chunks/B0V8JQL1.js.br,sha256=jHpNQ-nvN5EHQ1MGl57gegxt2smBsxoH1taAH7ThXrk,241 +gradio/templates/node/build/client/_app/immutable/chunks/B0j1q9gR.js.br,sha256=rP48qfCSZxWhvYTodBXpZxFfZhU6Zf9YBqivYknLvw8,2459 +gradio/templates/node/build/client/_app/immutable/chunks/B15KWhDc.js.br,sha256=lWxNeyXktYNQ1qA38EnBWcwA-h0DRqwyOGukgkEUj6E,295 +gradio/templates/node/build/client/_app/immutable/chunks/B17g67Bf2.js.br,sha256=POXsZJJ4x13bsCLZ68ccKpnJiXPWaOCFyrgnmySO3jQ,516 +gradio/templates/node/build/client/_app/immutable/chunks/B1ITLeeC2.js.br,sha256=6y2tqvaBX68_bTZT-mcqQzvkZNm_4hlzvs87cCsBG_4,106324 +gradio/templates/node/build/client/_app/immutable/chunks/B1XCpoZ_.js.br,sha256=Q-AEwkRioQCUcIbmjQhmkO9iVtcnUf2fy2omv97FEUE,72 +gradio/templates/node/build/client/_app/immutable/chunks/B1f6ZUOP.js.br,sha256=Fvg3wwWrd49LhTk4mTJUgm7BJf-Vt0GBdjD0wfR2htE,76 +gradio/templates/node/build/client/_app/immutable/chunks/B1tkvtP-.js.br,sha256=G2SgAoCGViXEw9ltqpTph0zNwRrCJkeTsy1998o5f0k,79 +gradio/templates/node/build/client/_app/immutable/chunks/B1uYq7XG2.js.br,sha256=QFB_5eB3riM2BTxzl8t2N8cDvQAx6hmQXmIiBeI83eo,353 +gradio/templates/node/build/client/_app/immutable/chunks/B1xC5jHJ.js.br,sha256=UxzFe8rKCIyHY1vFwz-B1PZMbwZ8_lg74XVyJaweqLQ,489 +gradio/templates/node/build/client/_app/immutable/chunks/B2XS-FBQ2.js.br,sha256=UdYqmJCUOtiPTlN97_WcQPEHnahfimSsMWRtSC7dg6Q,135 +gradio/templates/node/build/client/_app/immutable/chunks/B3otvbjY.js.br,sha256=Cn9CFl9Mf4PPlJFkwYR2lbNReyQd4E2MldASKKjQL5E,85 +gradio/templates/node/build/client/_app/immutable/chunks/B3q3Pn8g.js.br,sha256=xiPCiZ2-LiL1OSECZL8Oy6PtxjDwF_emUpW8AOEGJ1Y,7488 +gradio/templates/node/build/client/_app/immutable/chunks/B4DIoDMf2.js.br,sha256=f0tDsfmnXJUph6AP-A9JkcbSvEkcKUH_8kgY2lix4Ho,299 +gradio/templates/node/build/client/_app/immutable/chunks/B57IYAP_.js.br,sha256=1vggBbm7EDNSP8c7lmOgs72pxReJ7VJYN5aM0KhcZi4,3443 +gradio/templates/node/build/client/_app/immutable/chunks/B57vfRjl.js.br,sha256=-ZPek-NuspdH9Q2-twt2vd8W7TqBWdf-QbA4ZnfCe7A,279 +gradio/templates/node/build/client/_app/immutable/chunks/B6Kq4y8Z.js.br,sha256=4JFVGJ9_XYqf6uAjkAlM3vf7d_oiqn9_5iNP7patIK8,7408 +gradio/templates/node/build/client/_app/immutable/chunks/B6TlSVXZ2.js.br,sha256=_jxfn3C4b3YuI4OWQ3KhjgsFz2swZMNerMGBSfvtrqg,466 +gradio/templates/node/build/client/_app/immutable/chunks/B6ussYCJ.js.br,sha256=eMcXom9a5Uv3YAGDGJPNOXl50T4AdOZFBzeIjSdY0Rc,2946 +gradio/templates/node/build/client/_app/immutable/chunks/B7sSOU3S.js.br,sha256=hmf_m8knaOEoHalDc9RY1l-cZjYfAzJVwvP4jiunVC0,18545 +gradio/templates/node/build/client/_app/immutable/chunks/B8Barsmn.js.br,sha256=J7h6Ajt4J1wqTIzqasBvGC0iOBQ6MN0Jfs0VrbsF7Yc,839 +gradio/templates/node/build/client/_app/immutable/chunks/B8L-Ah8W.js.br,sha256=hjYRDPbf415b2rabeRUBrpVVJ4hfh6M2zl_dJKvPtIQ,15361 +gradio/templates/node/build/client/_app/immutable/chunks/B8eORd_G2.js.br,sha256=JwXsmL-2C6lMCOprKEfCFjrjdLkVeInRMqAy7k_PHxU,1180 +gradio/templates/node/build/client/_app/immutable/chunks/B8gBHxth2.js.br,sha256=wKdzEpB8LCFPoH6ok1gynzscvG2-3AZJNbbnpc1CpDk,7577 +gradio/templates/node/build/client/_app/immutable/chunks/B91Ub71Z.js.br,sha256=GMwT4FlL5WvM5zfaHJFagwyEJgdwRM_-9Twu56Ol5ec,3423 +gradio/templates/node/build/client/_app/immutable/chunks/B9Bi9pAi2.js.br,sha256=EWjBfz3PqcZRg4iIHPvVmuI4zESB2B-v8INOwbDtOMw,6310 +gradio/templates/node/build/client/_app/immutable/chunks/B9G1F5kb.js.br,sha256=PXAst3REMVApdZPGqSuWxp6MPurECItwSjtAiNoUrA4,14465 +gradio/templates/node/build/client/_app/immutable/chunks/B9HdJ7fD2.js.br,sha256=AVvgGpYMcaB2RkPyO604WVvyql2GwW-x_nYsPGu09s4,282 +gradio/templates/node/build/client/_app/immutable/chunks/B9MEZFz2.js.br,sha256=_URK7b3fcOF_E37346F96uhA74K2M3q9xOzxnyWy_lY,632 +gradio/templates/node/build/client/_app/immutable/chunks/B9YSBUCV.js.br,sha256=plOYbllmKHUKhS7zFtedKHn_QTBcIRFZDtHQ51joGZ0,379 +gradio/templates/node/build/client/_app/immutable/chunks/B9ZuM-u32.js.br,sha256=2OeqvpYbfXKSRcH2dthmkChSo8VJg6f3GjLpCcYE6sA,238 +gradio/templates/node/build/client/_app/immutable/chunks/B9gaS8YZ2.js.br,sha256=T0K6IBrU-O1j69Baz2Oq0VB-zZjkN5iCgLgrSPoFg7g,407 +gradio/templates/node/build/client/_app/immutable/chunks/B9oFduro2.js.br,sha256=0fo3G0LsFN_FWw67uzrC__0N1jdZ8B0rSThYbXPrCWU,732 +gradio/templates/node/build/client/_app/immutable/chunks/BA3To4RE2.js.br,sha256=9aqyok6MYPflnaY2RjaKWEDeTcQv1Zi40XPl6Rb72Bk,59200 +gradio/templates/node/build/client/_app/immutable/chunks/BAIdu02S2.js.br,sha256=vmS6b1ytMcXi2vkCNsUt1bnxJz39vc4bKnL5_S2xEuk,5709 +gradio/templates/node/build/client/_app/immutable/chunks/BAxPYTW12.js.br,sha256=cVNRxxgnCQ7ga2IjkpIdLImeCvKcIsPs3p4eDXrJ0-Q,194 +gradio/templates/node/build/client/_app/immutable/chunks/BCNLWa3t2.js.br,sha256=crKtAE8S52OF1ODv4NN5vLcFCVRtk2eqddtsOdPBSK4,863 +gradio/templates/node/build/client/_app/immutable/chunks/BCTYjnZ72.js.br,sha256=2fUFiZ37JZu-zk-YePjZ9ZJi0n4hynxttgd-9oqY2MY,320 +gradio/templates/node/build/client/_app/immutable/chunks/BCZoDTge.js.br,sha256=7jWAtYLgYNbTZv_PN9wxq4N_5cK3xyPso9CjZweiJGM,4546 +gradio/templates/node/build/client/_app/immutable/chunks/BD2zRSBB.js.br,sha256=Io3lr6OtvcYzrT9CHcA-ZPPnBYODmG4jJm20iXLVjDE,1954 +gradio/templates/node/build/client/_app/immutable/chunks/BDYyMvmW.js.br,sha256=HLFo4avcSp4EBVLfby32q9OozCkT_l5De9jEyAQIPxg,200 +gradio/templates/node/build/client/_app/immutable/chunks/BEYSTsRp.js.br,sha256=qMyJOH-y73empSh73kwcqe1Dek9JarBOoNXTlKIX-uw,2896 +gradio/templates/node/build/client/_app/immutable/chunks/BFSpzYZ22.js.br,sha256=ulsOJfwcxljUtC3w75qA58Etw9bWMBqe1Ra_HBSHmNw,132 +gradio/templates/node/build/client/_app/immutable/chunks/BFVEBWdY.js.br,sha256=Gg6V67vj306-5SyOlBeJuvorMcFjtMreDtDM3ung0Ag,2864 +gradio/templates/node/build/client/_app/immutable/chunks/BFvX1QMY.js.br,sha256=-RgHgTjhIEW9WY3ybirLDOxCFKeQKXaEJm8yV5owDC0,551 +gradio/templates/node/build/client/_app/immutable/chunks/BFxZwAfM.js.br,sha256=gwiPvIlAcrb7lNinDSXqNRFJ4OkcNasI2M9yOHDBI1Y,77 +gradio/templates/node/build/client/_app/immutable/chunks/BG8FoEuj.js.br,sha256=BmytmIWUCxnFWq3mbHbpthmMHyW3EbbbU7L0Pg62akY,13875 +gradio/templates/node/build/client/_app/immutable/chunks/BGEkfhgh2.js.br,sha256=YoSrFg2j8RCm6LmUeuoUwPDfGATeiM1vLZycBT4QdZ8,11977 +gradio/templates/node/build/client/_app/immutable/chunks/BGGm5lWr2.js.br,sha256=8nYgfyPCK5AeG5_CYZiwVSXIjcFAsz9308YUjrPEnFY,2503 +gradio/templates/node/build/client/_app/immutable/chunks/BGHDojWn.js.br,sha256=IXLerXc2JafXqDIWMIYb8E6TWq4ClZobseyB0S_okhM,323 +gradio/templates/node/build/client/_app/immutable/chunks/BGOoM4pO.js.br,sha256=3K7FhrVyOyRFurEb2SGNUQBRLR7BpRVtAxus2GE0kN0,9553 +gradio/templates/node/build/client/_app/immutable/chunks/BGV7ODbu.js.br,sha256=puGqmc6q5_tF8hmiFDBSz2QM_etosP7pQ87utv9C2bo,732 +gradio/templates/node/build/client/_app/immutable/chunks/BG_AQBtT.js.br,sha256=EDtVgQKkHZL3vqnH03DJKOtO39SeLqo_YU35FIOqua8,232 +gradio/templates/node/build/client/_app/immutable/chunks/BHJAWphC2.js.br,sha256=V9nA8f0hpaPdnV-tM0HUz-Gxoy_e5q4tZHH8gDpvTFg,2296 +gradio/templates/node/build/client/_app/immutable/chunks/BHiA7Yc52.js.br,sha256=u06VTQEPZjrNBU_hvAL3MCnuvCe-p_AVGq8XA3vtjQU,314 +gradio/templates/node/build/client/_app/immutable/chunks/BI8TBd8l.js.br,sha256=irrdU8cQpbNw4lxv00MmkwkwhbxKtNMae6fhT0FSkq4,357 +gradio/templates/node/build/client/_app/immutable/chunks/BIZfvlhI.js.br,sha256=zwW2hc7Kdopkm4TskxoNJo2yxtPNBAgEGvDK-A9lBag,2979 +gradio/templates/node/build/client/_app/immutable/chunks/BJ8akYIV.js.br,sha256=Fc_WqJ9PXvFTRk_4WtSJD39vtQefwUe7sSP-R1kvgkk,1945 +gradio/templates/node/build/client/_app/immutable/chunks/BJbSnUnU2.js.br,sha256=9iitGfC3bpE1IG_2rreMc4JzJ3_sz9cvTq5dbP-4DLY,856 +gradio/templates/node/build/client/_app/immutable/chunks/BK7sr30f.js.br,sha256=WKo4cU4asVgPvAtgLOV5gE3XRoSBJ8Xl-29n0Pib_Xw,740 +gradio/templates/node/build/client/_app/immutable/chunks/BLinz7V9.js.br,sha256=Kuz-6NjB6bUPN9vD3v1Ha8yobHMUDMYb_TqQvB189QM,2125 +gradio/templates/node/build/client/_app/immutable/chunks/BLkppfAX2.js.br,sha256=fqd1tznE_WC24hXI5DJDxyYqKt1utTpCCl930rO1O6I,340 +gradio/templates/node/build/client/_app/immutable/chunks/BMRCFDwl2.js.br,sha256=eRJ_nly27ue0Qh5G6LQBT83eP3yrRmwEFiL7G5bxYjk,1680 +gradio/templates/node/build/client/_app/immutable/chunks/BMhXDmdo.js.br,sha256=w2WDBAB4aRqWXI--nqCgoCjgkzQ2qlSAQSy9IaPyHMo,694 +gradio/templates/node/build/client/_app/immutable/chunks/BMqONzxf2.js.br,sha256=UNRtSnBn4Bread4CvTjhYD5k2CXRwm273htqp7FU8Mc,473 +gradio/templates/node/build/client/_app/immutable/chunks/BNB1mSly2.js.br,sha256=OzgBkhXvKv0c2yUE4YEGXDdnWDThNlcYvj5n0gOU48c,625 +gradio/templates/node/build/client/_app/immutable/chunks/BNJItPIv2.js.br,sha256=sWVWH6Ce5SnGT2W5mTNP1MJ5FLDpQ2Pi8SeUpVY-QYc,325 +gradio/templates/node/build/client/_app/immutable/chunks/BOMwu6YZ2.js.br,sha256=3KZKzC1rkCBgdU1AHe4tRE1LlwTYtHLt97b3AHha68A,357 +gradio/templates/node/build/client/_app/immutable/chunks/BOtej2xA.js.br,sha256=3XnGEQxkTkvXxDHfkbUcAutubhav8l2dce-Lsbmbx-Y,711 +gradio/templates/node/build/client/_app/immutable/chunks/BPCHgiwM.js.br,sha256=a3pV5QfXgX6DKiamu7t_mwYxViOZcq2QKlg-L6lnGy8,866 +gradio/templates/node/build/client/_app/immutable/chunks/BPE99uvr.js.br,sha256=pd7K2LyaRoXIn9TOrKRZUk1wavPrPRbpbOX7WnIfhgo,2171 +gradio/templates/node/build/client/_app/immutable/chunks/BPM6Yg3y2.js.br,sha256=qvqbR7_Ve2xdTp7YB3akb4CmvGpd7l-lRKceGiI1q6w,25575 +gradio/templates/node/build/client/_app/immutable/chunks/BPPWY1uw.js.br,sha256=UB8B3tlgnXu3UlygWRZhQyj1RU5M3Jc-taOA_--dUew,271 +gradio/templates/node/build/client/_app/immutable/chunks/BPcoL7xI2.js.br,sha256=pygPt4B7WQHOsF3TluZexGuWs2bB9xY8zJKAYee-Z2Q,193 +gradio/templates/node/build/client/_app/immutable/chunks/BQ8NsrcG2.js.br,sha256=iGyPiHZXlejSeNUfqmyac5SODh1UI6hlVCEJnw9Gyh4,224 +gradio/templates/node/build/client/_app/immutable/chunks/BQRyQKUb.js.br,sha256=1nG0BetjLYpWO8tf_lGQ5aWIUAavoyHPhUxX0eXRYrc,43 +gradio/templates/node/build/client/_app/immutable/chunks/BQWq2hwZ2.js.br,sha256=KiyWMSssBnsuWp9m-g7G_ybVyHdk-oFmR9cVdh9nLyw,368 +gradio/templates/node/build/client/_app/immutable/chunks/BQYCKTx7.js.br,sha256=VeICPT2fkdXYBJ_Gcp5lmPoenjZQOPX3h00YQvkttos,23572 +gradio/templates/node/build/client/_app/immutable/chunks/BQutZVGl.js.br,sha256=GiWo0d_VNSfAQjPBV0c4CtGHpZxfIacMU8-KSDy0hII,181 +gradio/templates/node/build/client/_app/immutable/chunks/BREDOME32.js.br,sha256=x1ipbZEWgNqQj7qVya8gvHxh2vmW5Kllaz2psXIiHnA,165 +gradio/templates/node/build/client/_app/immutable/chunks/BRf1R0A12.js.br,sha256=NxwZ8SJK4C2_ecSzSsJG2WxzwnoXAscnJLrLLtyNfLc,3306 +gradio/templates/node/build/client/_app/immutable/chunks/BRfcgNbX.js.br,sha256=K_Wq54GUTnT2aSJQ_r-q7QDKDweOWYix233lAo223Oo,407 +gradio/templates/node/build/client/_app/immutable/chunks/BSTfMD_Y.js.br,sha256=rVDT8QlKiTVMRSYzXs54JLGHA2FeYIlZu74mv0FqPzA,1008 +gradio/templates/node/build/client/_app/immutable/chunks/BSV2Jp5J.js.br,sha256=pwb7tPgNbSPqsVOoPwTGUTMvyqhNe_6yqaTAzYgP2Mw,1014 +gradio/templates/node/build/client/_app/immutable/chunks/BSut97vP.js.br,sha256=mufdAwW4SP1zv1f89dgcK6aShTGbYJosRLdza28A0sw,909 +gradio/templates/node/build/client/_app/immutable/chunks/BT8pq05p.js.br,sha256=6jL2MNc_-Gzmor9HYdx-06EWpzc56LMZu6rY63lFItA,223 +gradio/templates/node/build/client/_app/immutable/chunks/BTadYJA2.js.br,sha256=Y4ipMqekCmeQpNF8-xm_y3jIJkuM4hoTU_IwGHuB2Fc,69 +gradio/templates/node/build/client/_app/immutable/chunks/BTxro_fe2.js.br,sha256=hG8wcfPOo-p3monZi8zuDol-VTggs-JCp1R9MYncS9Y,14421 +gradio/templates/node/build/client/_app/immutable/chunks/BUMe3azS.js.br,sha256=5dU5_4mGmL2pjnI2-ecOb84BfJIe6J1sISXssneKQQs,1776 +gradio/templates/node/build/client/_app/immutable/chunks/BUrPCPda2.js.br,sha256=dU3bpxn8ff6lGAS90AHCyUX42IuIGAtm5ZgrWU3yt-U,209 +gradio/templates/node/build/client/_app/immutable/chunks/BVHLMJz12.js.br,sha256=E8ghu6nzzLqy_fBV1f8FvtrVLSebK2U-O2c-Ss5js30,2221 +gradio/templates/node/build/client/_app/immutable/chunks/BVRF3FoE2.js.br,sha256=tqyx3ag_qWhmhKMRo5iE1mqZz9tmPVBONokUKr22Nt8,111 +gradio/templates/node/build/client/_app/immutable/chunks/BVnX0beA.js.br,sha256=74nhAEPb_71h1rVFErI9n8ztaaCuSU-HLtxNMCIjor8,9697 +gradio/templates/node/build/client/_app/immutable/chunks/BWDa9BTQ2.js.br,sha256=uizNn6ukZTkVUnntSnsUWBaai_tZAjHar-iG3T9MXSM,11453 +gradio/templates/node/build/client/_app/immutable/chunks/BWTlr22b2.js.br,sha256=9vUwjo8Ocfs3yL5GV-6Ru9oOQByoKgLZ6GGf0iKSskI,454 +gradio/templates/node/build/client/_app/immutable/chunks/BWUHkrPR.js.br,sha256=_0Ha1RhrPPi5vzynx_QwB5CA3W_bO9Oj9AWnyrN2S_4,8304 +gradio/templates/node/build/client/_app/immutable/chunks/BWfCvNfO2.js.br,sha256=dKP-s0oP3wV9vGSsuLKf__q6gA83oF2Yk0pUo0qbuOI,319 +gradio/templates/node/build/client/_app/immutable/chunks/BWuczE8i.js.br,sha256=RU6dQn1AsVnfxewbyci9S27y97a5vZXiuH4AVzPv1_s,281 +gradio/templates/node/build/client/_app/immutable/chunks/BWwvV_WV.js.br,sha256=kiFZRugTp9I4Vm-SlFXIEZo7Ayg1koPLaQwmrj7Ob6s,2241 +gradio/templates/node/build/client/_app/immutable/chunks/BWyPFiOL.js.br,sha256=7B-vHAVfZ3Tq_pnQmJ0JpeNq77orXTMWJ47j2kX72ic,2480 +gradio/templates/node/build/client/_app/immutable/chunks/BXXTKi2y.js.br,sha256=bppTGlYldDos1K20ZgbgQHgZDJHBkTYpUPELPHDI0nU,745 +gradio/templates/node/build/client/_app/immutable/chunks/BXdVC_j_.js.br,sha256=kuoRPiT53rh-O4H3dIcK4Knz6KbKxHyZRWoRe9I5f4U,104 +gradio/templates/node/build/client/_app/immutable/chunks/BXpyRTsG.js.br,sha256=GNvVR2pcplOd3nTbzOLJ9PkBf2KI0GDMsw06lFMUrts,231 +gradio/templates/node/build/client/_app/immutable/chunks/BY3RS9sY.js.br,sha256=KL_DNTFTZ58xn087zkFYmnvPX0wH7oNtzc5ZD4qGJ1I,9038 +gradio/templates/node/build/client/_app/immutable/chunks/BYavn8yA.js.br,sha256=-PdtvEjV4Kuad1ATP2-e_KtUJIH3jlDYaBmLo_fiBj4,2184 +gradio/templates/node/build/client/_app/immutable/chunks/BZNUAsmb.js.br,sha256=N43e8Km8S4qZm0MhbK_mN0h5tzC3mGBJRJTZ4ffCM-U,237 +gradio/templates/node/build/client/_app/immutable/chunks/BZNZn-Dg.js.br,sha256=eQp_4_j7ebicyvUIHdjUxU78N3DfRUWTlTJH3n0mHhA,309 +gradio/templates/node/build/client/_app/immutable/chunks/BZqBdC7U2.js.br,sha256=PNEcHumQMlM43uc2ULZ-GEfJ8LYepNcnwW_ZBviCDns,297 +gradio/templates/node/build/client/_app/immutable/chunks/B_3cy7dp.js.br,sha256=eYvVP7nrhJwz-YCXaY6O3iNvnNTT2-pCuPKBF32w_t8,3783 +gradio/templates/node/build/client/_app/immutable/chunks/B_K4I2yu.js.br,sha256=1HkRMCW6R7rf3cRtC5Bi1HZuja_ZuBW3HUNg-hW627w,1140 +gradio/templates/node/build/client/_app/immutable/chunks/B_KbA2DW2.js.br,sha256=JWkkH9Po-vIAejCpmrErki7nA0U3De19d8KIaEtpeQk,462 +gradio/templates/node/build/client/_app/immutable/chunks/B_PULRJe.js.br,sha256=suiAlo2vgv65eERcnLmxvIhKzEylM7HFiBEZ5faMQTs,2121 +gradio/templates/node/build/client/_app/immutable/chunks/B_oapCmZ2.js.br,sha256=-z7JrVKi9FnPbp8NFJDP3SD3kIxC6LrSIaTJTYTKS7A,662 +gradio/templates/node/build/client/_app/immutable/chunks/B_ruYJ9J.js.br,sha256=mDQ1PN2ZNp8BGGf7ktuR-c9m10LQfbfjkpmaBYD_kK0,348 +gradio/templates/node/build/client/_app/immutable/chunks/Ba05Mm7b.js.br,sha256=xwBZkHz4VZ3NzJZj_lnVGIMv-vJ6Z6FeLRDnEq7i0-Q,2270 +gradio/templates/node/build/client/_app/immutable/chunks/Ba9LpNR1.js.br,sha256=BRxSA6I_0StewCkQcv80Gai_cPWS1WeCbgJ0LwNluO4,2260 +gradio/templates/node/build/client/_app/immutable/chunks/BbgIiLVl.js.br,sha256=lKnHMRNRVK8RcQsNovXLlvBTiNnKSFLtntQ7gWMbMA4,2446 +gradio/templates/node/build/client/_app/immutable/chunks/BblP797C.js.br,sha256=PyuXOwQ1GXIUVDmMVGNUT08JeCXZzUZkzdXyuK1Ak1w,434 +gradio/templates/node/build/client/_app/immutable/chunks/BcBZXJsI.js.br,sha256=4izHB-l1vU1juwi2qtTJKgAaccxOq9KRk6bVlvBkrWs,258 +gradio/templates/node/build/client/_app/immutable/chunks/BcMKWFAW.js.br,sha256=ODlxq4ijdej0QU8rdFy0DT3X8ebfUbxYAdwIeM3PBl8,1899 +gradio/templates/node/build/client/_app/immutable/chunks/BcPOWFVN2.js.br,sha256=xVPomTorAbMFryfzGZw859ttIF12BNzWJLt8wzWpr8o,83807 +gradio/templates/node/build/client/_app/immutable/chunks/BcUZD7r7.js.br,sha256=NPdmtR4j_Its6_VBzzn-6EKuWSQGUsRyleIBjwkK71s,545 +gradio/templates/node/build/client/_app/immutable/chunks/Bcd2lxsx2.js.br,sha256=sUf60peGoG4dDJxAOcjsvKD2_5TjbpjerL5mpHOA290,299 +gradio/templates/node/build/client/_app/immutable/chunks/Bcpa272_.js.br,sha256=VV6hG0Jgnlrp6JElNaWRuB6xmFrcW0BAYMN8QWpY4QY,3654 +gradio/templates/node/build/client/_app/immutable/chunks/BdR6uT42.js.br,sha256=yavEx44heiIn1Ibtd8jcC75nZxxY9CfUdqFEl4WQ85M,1886 +gradio/templates/node/build/client/_app/immutable/chunks/BdcmEkhV.js.br,sha256=-NMdVaHxU80sB8oRhic23skbcSfnvo5_YD67Pmj7U7s,1160 +gradio/templates/node/build/client/_app/immutable/chunks/Bdi9aNAv.js.br,sha256=lmIjWVJ9rBl8LHl8GInDwL4EeZG7AMNPXvTf6CWS3CQ,1387 +gradio/templates/node/build/client/_app/immutable/chunks/BeF5dNPa2.js.br,sha256=O0fB1urPNSE1Xekh3jAfbOnVEAYdEs28mIX91V10sS0,137 +gradio/templates/node/build/client/_app/immutable/chunks/BebUJma8.js.br,sha256=vFfbbe-niFOk0duf5dKe3VapHKYWpKeaHg_tZQ4OcTA,464 +gradio/templates/node/build/client/_app/immutable/chunks/BelLxFjg.js.br,sha256=coFBYnNQjrfJt0zjwM9XcD11lgbNU10-v1Ec2vYPF1Y,267 +gradio/templates/node/build/client/_app/immutable/chunks/Bf2LkrLH2.js.br,sha256=xucuVeddZlKH1EOfWKE6xm44cLm5_xIIlwOi7pI7Tqg,1543 +gradio/templates/node/build/client/_app/immutable/chunks/BfAsS7an.js.br,sha256=ZHKR5PIYLkZ42P8FdnHDef9_Yx0__XEO0wU5k-QUI5Y,2352 +gradio/templates/node/build/client/_app/immutable/chunks/BfZmpOrz.js.br,sha256=LMrEnCr4EypvNPSyFdA6WrP145d0hyGQ16hzkCygADU,23933 +gradio/templates/node/build/client/_app/immutable/chunks/BfjIY-m62.js.br,sha256=y-_W5HFcIX9BozMaipHTdf43ats7exIJCH0SRGtnnSU,1717 +gradio/templates/node/build/client/_app/immutable/chunks/BgK2XBi72.js.br,sha256=irAebTUVCy9KLDt9Y3b8SAJGMajxSt-T_IK1o7zr6iU,3628 +gradio/templates/node/build/client/_app/immutable/chunks/BgjYYnFZ.js.br,sha256=_k7dcz7RIdEP0cW4305o3PG5YCT0P9wuWm6sj_C8fVI,47 +gradio/templates/node/build/client/_app/immutable/chunks/Bgw6kOlK2.js.br,sha256=qraO7aq3lRi_aAluXya3UZzgs7zqMYVfBwiATbeCBk4,410 +gradio/templates/node/build/client/_app/immutable/chunks/BhI_l7Js.js.br,sha256=umd_Pqv7O7w2ixacqWP1aSLBfiPxHEn9b3cVJ8SylCo,1117 +gradio/templates/node/build/client/_app/immutable/chunks/BhZmyeCR.js.br,sha256=JDsDBTU8t70nK4U9AS8FL37UUDnU0fb496OxUsn1YdU,945 +gradio/templates/node/build/client/_app/immutable/chunks/BiVxUfrw.js.br,sha256=bkp7jQ1OhQJVTlu0QZrybS801smDG6Atss7TLiufYr4,26 +gradio/templates/node/build/client/_app/immutable/chunks/Bibf2RlX.js.br,sha256=OrOv5iNM0pkRoikU2g_7bRuLaY93MDN0g1F6ZecmtXU,2439 +gradio/templates/node/build/client/_app/immutable/chunks/BizvQQNm.js.br,sha256=wr4YcsdkMmRr1SyJU0dHWVB4_d0GB9CHs6T9Ha-xLmw,96 +gradio/templates/node/build/client/_app/immutable/chunks/Bj3GO09u2.js.br,sha256=sM_0CY4X2QWejpb0kYJmhurCG0KR0dIddvZBxXaqTeA,710 +gradio/templates/node/build/client/_app/immutable/chunks/BjDjdlA2.js.br,sha256=KOD77wtsngtbBoVW9XV51LNkpqyvOGzWqqkmc8UqJvU,1522 +gradio/templates/node/build/client/_app/immutable/chunks/BjWQg83r2.js.br,sha256=WRymk8CgruKDAIcFV3H2lDE7e-frGSFR7yEGxJhJvPc,207 +gradio/templates/node/build/client/_app/immutable/chunks/BjZ992hP2.js.br,sha256=qLXS8NghwPiNEI0k4xQvA0N-RNr1x0T3t_PKU9B5y_I,298 +gradio/templates/node/build/client/_app/immutable/chunks/BjfIzyIs2.js.br,sha256=eEf_yPMIn1pfkKAzpgLd10uLYgGLrJHz3Dl1LPIvlWE,3892 +gradio/templates/node/build/client/_app/immutable/chunks/BkEkjdu7.js.br,sha256=j1kaZ0yiDLcr_kP-myUhG3z9aFPH1mewKLi9-4ZaDc0,4191 +gradio/templates/node/build/client/_app/immutable/chunks/BlqyNv_2.js.br,sha256=eRyKmlzjfUsZ3zvh8C3sKtihPvz2d_hUVJg0kEKyvtE,1117 +gradio/templates/node/build/client/_app/immutable/chunks/BmAHm8qi.js.br,sha256=lcq7QSLKmtdfF58r6G7DEm_WINhJFfc2Q7K7LUIui0U,2264 +gradio/templates/node/build/client/_app/immutable/chunks/BmE99wGA2.js.br,sha256=IRZCyhXN4ivVheCxMtgWG0dpo1i1cXGeHn5FogYLjHI,352 +gradio/templates/node/build/client/_app/immutable/chunks/BmIAZ8qp.js.br,sha256=Qae5LCFmHA-PAbRzuZW7l9gCWl_Ofy92f8h_FSW35bo,2149 +gradio/templates/node/build/client/_app/immutable/chunks/Bm_YD73S2.js.br,sha256=_fmhEDwgel4dP7P6ApXUwtmVDjorQV6Mo3ZlU1IwT2Y,392 +gradio/templates/node/build/client/_app/immutable/chunks/Bmwag1I_2.js.br,sha256=MS5w9FqdaCQmtEmtaJwf5B-RmJaqxnwJ4sX5IQtfYbQ,1132 +gradio/templates/node/build/client/_app/immutable/chunks/BnOMaiG22.js.br,sha256=t8A58zibmOUyUd1nM6TJcrb9JnalFBytp2IsPDSJkUk,215 +gradio/templates/node/build/client/_app/immutable/chunks/BnTKOwXq2.js.br,sha256=7v3_BgxMEQNzZeM7-GxbO5yIEfJEQ_rWHarCMvWJqZc,6676 +gradio/templates/node/build/client/_app/immutable/chunks/BnWZt9Ah2.js.br,sha256=YngaQZIWuS_mlo5aOs_X2r0bIbhqxpDZUxRrZIHLdNU,529 +gradio/templates/node/build/client/_app/immutable/chunks/BoCmvuoV.js.br,sha256=JjixwuKy52wxrrVNk0Nt8wRT6eyIp51idV2S7HpX57Q,53864 +gradio/templates/node/build/client/_app/immutable/chunks/BozZhmX9.js.br,sha256=0SDmuGxa4q_75WrKqsvo-AH_1OXBXUoTPK8xDbFbUW8,1862 +gradio/templates/node/build/client/_app/immutable/chunks/BpOiDlhL.js.br,sha256=oUHQfRUCaS7XMa8zZ9QZs126vYIhpkhSFfctUteAo2s,703 +gradio/templates/node/build/client/_app/immutable/chunks/BqE6QC6o.js.br,sha256=n21nXFSI61MxUKYs36qrvE1YVBPosQfw3sLzH1GTdUg,78 +gradio/templates/node/build/client/_app/immutable/chunks/BqWgjll1.js.br,sha256=6mr6py5d8xXag0zDEizCpORoBd48RR5jGBVjYcx-Fhw,1686 +gradio/templates/node/build/client/_app/immutable/chunks/BqrURgKO.js.br,sha256=R0d1Ili1CT5XdxYF5FWAFEVwhBecJhYdBqur6aNuKvY,9843 +gradio/templates/node/build/client/_app/immutable/chunks/BqsFXmof2.js.br,sha256=FoEC6zpquBurvwpjYB8AdVv0AR-NK76Cermc0CBhpEo,194 +gradio/templates/node/build/client/_app/immutable/chunks/Br05TEsa2.js.br,sha256=3bv1D_5uJpcA-eb_79-FQtDMiORlglEfJ3um09YtJI8,3116 +gradio/templates/node/build/client/_app/immutable/chunks/Br2NDAtq.js.br,sha256=BY3qxCoL2UDVBfzTfUnZpcxFYcH8jDJ_xOTOsyG1NsU,2113 +gradio/templates/node/build/client/_app/immutable/chunks/Br406fc7.js.br,sha256=aEKR0EfXvQAI7w4_fxVvvRMX7K9Cdqmh3E12GTn4t6Q,192 +gradio/templates/node/build/client/_app/immutable/chunks/BrPG0PZO2.js.br,sha256=1S0RhsudiyegmFdiWsUgGH0zECoC0xIkajjHC5H9VV4,520 +gradio/templates/node/build/client/_app/immutable/chunks/BsNJ_SNM.js.br,sha256=zquPraPOwJcRWqRreMCNo3BBCTn--gxQM5UeEAoCSUk,81 +gradio/templates/node/build/client/_app/immutable/chunks/BtjAfo_w.js.br,sha256=mtJ8LWg9v9q8LLrHevfTAILmtegmmMHizxIC7M-z8Rk,11598 +gradio/templates/node/build/client/_app/immutable/chunks/Bu4RliMU2.js.br,sha256=6Y9F1LNJ-iorkJqc_Gp_rlXxAMoLyHw3aD9qEz8PQDo,17747 +gradio/templates/node/build/client/_app/immutable/chunks/Bu8llEgg.js.br,sha256=AV6WtiVrqVz3Jf8IQ7X8ImD3fQeKNM8ZRifk3V-EjgA,4596 +gradio/templates/node/build/client/_app/immutable/chunks/Bu9N8X3N2.js.br,sha256=Frf3oaYRpbXFljpqMr-XbLaypXEtoROXRYuKX7u41ww,1060 +gradio/templates/node/build/client/_app/immutable/chunks/BuDCRueG.js.br,sha256=fFYeP0NGefcX8aPizVEnVnQi8rIudhe3WSZTCkVZFog,35071 +gradio/templates/node/build/client/_app/immutable/chunks/BuQwsC1u2.js.br,sha256=T9GT51dLoNBAtpEco5DQHKxD_MOMJkVE54mmPDgkzEA,1359 +gradio/templates/node/build/client/_app/immutable/chunks/Buu7F93w.js.br,sha256=26AB5YYCQbtLgHVtO-FoiFzCcy5WY6dkIZgiJCvuhd8,79 +gradio/templates/node/build/client/_app/immutable/chunks/BvFJKKcF2.js.br,sha256=rKvqrhATIKLqbN-A6-kSnE_UoEHGxFY7m-Z3MErXV1k,187 +gradio/templates/node/build/client/_app/immutable/chunks/BvRk9kiK.js.br,sha256=QbgF6nrAFOI1VumLs3RwKgg0Qmj5JImgLwiAhJOUoeQ,1 +gradio/templates/node/build/client/_app/immutable/chunks/Bvo4UubC.js.br,sha256=Mm-SMTj5fZHMiDp7NsHA6ZEk0kWL2_C3Zmu8-F4Z-AI,3574 +gradio/templates/node/build/client/_app/immutable/chunks/BvrGDM542.js.br,sha256=2iHOVgSnXlYxtjpy2XXNWz9rcuwTZU_sj3b-4yUuYog,372 +gradio/templates/node/build/client/_app/immutable/chunks/BwF_JrJ82.js.br,sha256=nQ7_ShHm3whS2D0BkLeYhJ7o7wfA8H-1NH4irOy1kic,272 +gradio/templates/node/build/client/_app/immutable/chunks/BwP5mSXf.js.br,sha256=j2D_bRTYE7Nw0CYIoRV0Cr4nduSgq8MDJhR_9WCyYL0,326 +gradio/templates/node/build/client/_app/immutable/chunks/BwW0kqW02.js.br,sha256=0T0SmjE4VJ5MPRbjjsQ8bhc8c2C8kp1-kifBT8lQw-s,487 +gradio/templates/node/build/client/_app/immutable/chunks/Bx3ssKBv2.js.br,sha256=JxZjGsL3rq5I4waz4cPLCngaKOz8DNMMS_DlOMwqWLQ,2139 +gradio/templates/node/build/client/_app/immutable/chunks/BxcMcBSX2.js.br,sha256=djzEvGoJPwfUQzzZYDPaDJVLIYU_UHrp_ysReGfuFhU,189316 +gradio/templates/node/build/client/_app/immutable/chunks/By7x3ff82.js.br,sha256=0_j2smLNioyTn3NaPYJ5Q1sXr0DyvNJAZrKTjE6drNE,359 +gradio/templates/node/build/client/_app/immutable/chunks/BzKQiPrx2.js.br,sha256=srNlbkW5HR68DP6fxmHjPe1le5vN-mQDde-SvTk28SQ,714 +gradio/templates/node/build/client/_app/immutable/chunks/BzL1BD0o.js.br,sha256=kwRfg2l-kbOZqYLd2Xm8QeCJsRdUpdOnsTpvujydj9s,229 +gradio/templates/node/build/client/_app/immutable/chunks/BzLvh6iB.js.br,sha256=r3EDhZj7jgm_-QqqHOHcxYU6hQEUIsd6SBT8PniI03I,635 +gradio/templates/node/build/client/_app/immutable/chunks/C-lJbC-62.js.br,sha256=sLq8RW3ryeFb5IXzxHGGxVlmGK9x013Yk8cbXYfzReE,1065 +gradio/templates/node/build/client/_app/immutable/chunks/C-wqV4qF.js.br,sha256=jqs77yapvLDRt9Hc8I1S6NSIY38GLWHPtlnzln_xWps,104 +gradio/templates/node/build/client/_app/immutable/chunks/C01ZShM2.js.br,sha256=55qqFjWOfPEpxkqi_h1otNjSoX_VaoL0mAXEhQ8IQi8,341 +gradio/templates/node/build/client/_app/immutable/chunks/C03xKTGD.js.br,sha256=Xd1DUwG9sMPrPcw-DDLCF9S5I_gKTXg1dqRkoyQrWVc,80 +gradio/templates/node/build/client/_app/immutable/chunks/C06LLaJm.js.br,sha256=r-uYGiLOOBlpYeV5Lj-Gsw-BM_2U-0ZvVH1aCMb9Uv0,578 +gradio/templates/node/build/client/_app/immutable/chunks/C0JHu8gr2.js.br,sha256=97yak9KzQd3e3q93Uf19fP4T57611iUzIa672nVykqg,791 +gradio/templates/node/build/client/_app/immutable/chunks/C0eJH3Hj2.js.br,sha256=aTB1sv2yNwZgXwCfs64M6mjYQSPqrfgnERnLQ4zrL6E,256 +gradio/templates/node/build/client/_app/immutable/chunks/C0mDe-Yk.js.br,sha256=bcx6FnKum8mYrt135HEpCgvWymPj7JTNK3FJJoT6x2o,1185 +gradio/templates/node/build/client/_app/immutable/chunks/C14W9TXn.js.br,sha256=lfc1DF6iwpvXf54y48VToIS7I3Ae0Rj1jra5YJsndMU,6098 +gradio/templates/node/build/client/_app/immutable/chunks/C1TTw0Vz2.js.br,sha256=MGFizPXCXijCflukbWVzAuO2-2FmokGLHQN8im8FTVg,561 +gradio/templates/node/build/client/_app/immutable/chunks/C2WHIWyI.js.br,sha256=Xp0_vdIj8oqju-F-r5_XuSqDYNEWHhl-6r0094HFXZM,669 +gradio/templates/node/build/client/_app/immutable/chunks/C2qnGBki.js.br,sha256=lNRSMU4-RE-06-q6t5nW9Ka82EkAxGcQA8GDVxjihCM,455 +gradio/templates/node/build/client/_app/immutable/chunks/C2u59Ty-.js.br,sha256=agmaZKpdT-nLiazYJXH3F2Q49DfkdcnM4a0xthOLoos,13192 +gradio/templates/node/build/client/_app/immutable/chunks/C2zueqn_.js.br,sha256=sPRsNUTTeV5A_2pjZfe7HQSkTplqnAyKDSZzlQhKqs4,75 +gradio/templates/node/build/client/_app/immutable/chunks/C3ZRsCYX.js.br,sha256=6M8R1aKd963emplsNoqQdYqIfqCdgKTW5ODQX8sp4Lc,240 +gradio/templates/node/build/client/_app/immutable/chunks/C431cu6c.js.br,sha256=alKbnrVV7RR1mWsbydH7_gHmp0BitYQd4d_r_PUP4Rw,1723 +gradio/templates/node/build/client/_app/immutable/chunks/C48PJSkF.js.br,sha256=tlQ8hE094L0D-nv1o-scRSYYPPjOUcFBaKhGUdxxU7s,20097 +gradio/templates/node/build/client/_app/immutable/chunks/C4BAVxH32.js.br,sha256=ogSGqr-fMG4deGRKzqmRRQz-UpbNnIW8dQxKEP4Y37Q,3308 +gradio/templates/node/build/client/_app/immutable/chunks/C4FXosbu.js.br,sha256=T75ilG9sitUnRqLsIjumUC_zerLFfUIhLxYNTbOMS60,324 +gradio/templates/node/build/client/_app/immutable/chunks/C4hW9bug.js.br,sha256=JnGcm0kCKEu9cOKWD2UOH5ewIuXpq2Llga-sLW3G7Rw,75 +gradio/templates/node/build/client/_app/immutable/chunks/C4pNavlM2.js.br,sha256=9rRUXmYtbzoryvmJy1MFgwZNip0dVy-DK2aagwxP-Mw,480 +gradio/templates/node/build/client/_app/immutable/chunks/C4sV2BlZ2.js.br,sha256=TKJ9sENXsx9GFoKpNSDnZRloiWP2ZwZhZ6lXImV__YU,341 +gradio/templates/node/build/client/_app/immutable/chunks/C50LmoI1.js.br,sha256=QbgF6nrAFOI1VumLs3RwKgg0Qmj5JImgLwiAhJOUoeQ,1 +gradio/templates/node/build/client/_app/immutable/chunks/C5PNBj3Q.js.br,sha256=Z-zgbLQkS968JsX8ccn2w6TM0kcpP9sCOl3BA_WeCL0,1932 +gradio/templates/node/build/client/_app/immutable/chunks/C6ZSlP5M.js.br,sha256=TM6Bu-S8V59bb1aIKf6tusWBrYpvzr58To8OhybckKQ,314 +gradio/templates/node/build/client/_app/immutable/chunks/C6f9Rh0i2.js.br,sha256=DW-4HBRTvdMUb32cN2rN8HNTM3NXOBzo7h_z48-Oc_c,14093 +gradio/templates/node/build/client/_app/immutable/chunks/C6sLc_MY2.js.br,sha256=sqGIPuy2FBwnesS77EGA6xYUIbbBQ6GqVNnIHFpW6t4,937 +gradio/templates/node/build/client/_app/immutable/chunks/C75M1qiX.js.br,sha256=gX2CHJiEnyBAcWFlGvA7xpAWu1N7jXU64TawgOCupgE,66 +gradio/templates/node/build/client/_app/immutable/chunks/C7F_lpaW2.js.br,sha256=Wd_y-EkLo-hwmWL2SRADTfXfMGSMssoasJTUsKpVy9A,709 +gradio/templates/node/build/client/_app/immutable/chunks/C7FqFWmw.js.br,sha256=4iC1Evl1xYdLikSUi9XElOe2StHCZhcU5QeDxur205M,3649 +gradio/templates/node/build/client/_app/immutable/chunks/C7KVuG-w2.js.br,sha256=JIWc_mdE0xWKmmrJrpvBEX0hJmYBNZxLV9k60di79Mc,1438 +gradio/templates/node/build/client/_app/immutable/chunks/C7UuNQNA.js.br,sha256=Lj4iVg1E0h--ry0lb13wAVpevxMdjyqf8l0dszprtIE,237 +gradio/templates/node/build/client/_app/immutable/chunks/C7s7dPaw.js.br,sha256=W90-FTgZdKka-r2qiccYG9t9nFOm3Ahmh2q44ac-UyQ,2850 +gradio/templates/node/build/client/_app/immutable/chunks/C8H1UvS1.js.br,sha256=KkHCDA9KX2lwo5oatboBp7Y3uRe0tP1r8O5uDCIZbJY,15306 +gradio/templates/node/build/client/_app/immutable/chunks/C8NvZ8DO.js.br,sha256=9tnZTYP1I7a86EPxolEyK5ggz-RxU6rPzj36xDo_TLU,84 +gradio/templates/node/build/client/_app/immutable/chunks/C8sOTRjG.js.br,sha256=4SQH-_UcMGdEN8ftu05rKteRzYgmqRlfXEyz_5gh4Pg,185 +gradio/templates/node/build/client/_app/immutable/chunks/C9QRro3x.js.br,sha256=9uynPFMA3u2dZKe8EDYiMukcvVcm7r8bkPz1G4j17gA,79 +gradio/templates/node/build/client/_app/immutable/chunks/C9vRCPK9.js.br,sha256=PUCU-9TG6ye59QmA8eNLMZ-K2zN3KjxANd51QBlblbY,72 +gradio/templates/node/build/client/_app/immutable/chunks/C9yTswnF2.js.br,sha256=vjLEyVRVntDJHg9VtuUKwXBz8jrIWWWi6FYabsU-mGk,238 +gradio/templates/node/build/client/_app/immutable/chunks/CAI3F0qB.js.br,sha256=4jEKKN7YQoxtymIUHqSiekn-x9edk2t2qcpuEviftLI,910 +gradio/templates/node/build/client/_app/immutable/chunks/CASzMVmP2.js.br,sha256=ljygIFquO2H77Jsyal_9hS8hbYucO_h8zoD-aOXuH-c,9750 +gradio/templates/node/build/client/_app/immutable/chunks/CAW0FZ8o2.js.br,sha256=onskfPtmNFu2CmD7BOpJbROFIsRrFhNJK8MnfzsNtTs,555 +gradio/templates/node/build/client/_app/immutable/chunks/CCT1DLzq2.js.br,sha256=nSEw_Sl1O_TiqWsj2Au-oqQm9xFOxkIrEABasLy70wk,429 +gradio/templates/node/build/client/_app/immutable/chunks/CCVvxt5_2.js.br,sha256=Ef3jFm73FeGn937xArnMpDWpwqoVPSLtc5SalbyrIXY,21573 +gradio/templates/node/build/client/_app/immutable/chunks/CCWa81Tp2.js.br,sha256=kY6sjtc9gmw6hcfGcOz6l0O6c9-TQV5nFFoHFqAv9JI,771 +gradio/templates/node/build/client/_app/immutable/chunks/CCZVmNNG.js.br,sha256=OQmYclfjZ8Ijs7CnySunNTSxM3CJJiSBxcQcxqP0iEU,538 +gradio/templates/node/build/client/_app/immutable/chunks/CC_v2Ejj.js.br,sha256=OPfxIHIqrv9A98PwB0BakHUZKqY8f2C_2z_b-Gp6cx4,470 +gradio/templates/node/build/client/_app/immutable/chunks/CD4JOR2q.js.br,sha256=JzQyd0J3ooKW1h-xLS22bH4gVKjBNjpKk9WjAmt6d9Y,421 +gradio/templates/node/build/client/_app/immutable/chunks/CD50Q7P92.js.br,sha256=N3A16wV0o2k_yOgNl7IwJ0G_1tr_utThx5dHXCNqJcw,3218 +gradio/templates/node/build/client/_app/immutable/chunks/CDTLltq6.js.br,sha256=EbYUkLSdZuVInYpCfwPXp-U1mouFvaljToUuvzBzP5A,28984 +gradio/templates/node/build/client/_app/immutable/chunks/CDh2ZVkg.js.br,sha256=ZYhRbSV3-MHqurZnVE6E51Y27656vJe19e9Huk4CBoU,448 +gradio/templates/node/build/client/_app/immutable/chunks/CEp5plnz2.js.br,sha256=7KX5IAAY2FYh0xfZU4wOK5ZKR51BNmmrPQBTS5INWB4,280 +gradio/templates/node/build/client/_app/immutable/chunks/CF4n_SoF.js.br,sha256=oLXJ5I7puSz0R8QiAVU6ih6Dmgn7UyE4ZNOlmkYB4pg,738 +gradio/templates/node/build/client/_app/immutable/chunks/CFVQXBEk.js.br,sha256=jwIXRxmek5TpK2TQs_L1BLwZn_IbkXuunz1fNGW4YqQ,219 +gradio/templates/node/build/client/_app/immutable/chunks/CFy7vuyP.js.br,sha256=Xtp5Vb7WVfl9xIRHRdzRDUDYRpOZ247jJDQMYPQZlPs,383 +gradio/templates/node/build/client/_app/immutable/chunks/CG3TWEeQ.js.br,sha256=oGc5Z8O5gv_C2UaUztmtR5KFWmsLMoIhQ5DF2re4d6Y,7736 +gradio/templates/node/build/client/_app/immutable/chunks/CGP8JrAI2.js.br,sha256=lw9B3TP2JrEcYaYAoHPSC0xJYdyF0pPjcWnxWz01_jg,28068 +gradio/templates/node/build/client/_app/immutable/chunks/CH07p9Qy2.js.br,sha256=gND5UVHFHuOS32g5r7IOrrUTkidhLUYlPE_QXyxdQoo,13440 +gradio/templates/node/build/client/_app/immutable/chunks/CH7MW_U1.js.br,sha256=-4ZGfUb6BTy0_IAVx02uZekDAw-vV-I4xyknBjgf9Ac,4688 +gradio/templates/node/build/client/_app/immutable/chunks/CHZ8RmHV.js.br,sha256=92sVbJKZATeW-AGCw1sJsieXqBeS98qlmRS7n55m4OI,163 +gradio/templates/node/build/client/_app/immutable/chunks/CHvkQZ8c2.js.br,sha256=7BgKtKgPrS62Av_FZbfr0rAhIM939Gq5QCee9KQ9ruE,1045 +gradio/templates/node/build/client/_app/immutable/chunks/CISychF_2.js.br,sha256=AE3L4cj-E4faFGSlrmgnFWfjLDLnI_0JoyRWVHdt098,1802 +gradio/templates/node/build/client/_app/immutable/chunks/CIg7dFmG.js.br,sha256=oBzxRG-iQO9b1cWwvi2rvIFnSpf2tol3zgUkrIGbiFo,913 +gradio/templates/node/build/client/_app/immutable/chunks/CIsUDr1j2.js.br,sha256=sC9LQ451NZCGskeHr55EHr11QqQmmuvU9k1Du7imkvg,308 +gradio/templates/node/build/client/_app/immutable/chunks/CK8ThEJM.js.br,sha256=VmCXUNfO1o1tvIAAc0iORezzTMWWgvQx6bEF_8L8wIU,336 +gradio/templates/node/build/client/_app/immutable/chunks/CKKUp4Ry.js.br,sha256=ANj4RIiJWM6TIjFMyUtJRE6XetDyMgwGgUF2c1tDhqc,7336 +gradio/templates/node/build/client/_app/immutable/chunks/CKkE7EK5.js.br,sha256=pyTsNfhm8HsB5wdCXEHUrRG-O3MBqcEICwb4VoIIhu0,737 +gradio/templates/node/build/client/_app/immutable/chunks/CM2L6XG1.js.br,sha256=2GaAb3JXqcwEzq-Q8uDGe8y6g3Db91UdIfbpEGvsbbI,10693 +gradio/templates/node/build/client/_app/immutable/chunks/CMNHWsEj.js.br,sha256=275qaelYQ5OjCE3QzdtXuHRtUvExeTVd_R9_fO2k8-8,161 +gradio/templates/node/build/client/_app/immutable/chunks/CN1mD56D2.js.br,sha256=OYDJ3WwfsEqvmamL--tkbfEsrvYEa-WhK_peSMV4WNw,13121 +gradio/templates/node/build/client/_app/immutable/chunks/CN1mWQXG.js.br,sha256=biBaGVxMbUGoGbfC7QJFGK7v-Y8gEveGzExP9uyvZhM,877 +gradio/templates/node/build/client/_app/immutable/chunks/CN2Fk8Gh2.js.br,sha256=Um73KdzeGQmUHc95fcjut9BpxGs6C-ZBUw3au6kJegg,3876 +gradio/templates/node/build/client/_app/immutable/chunks/CNEpWfMR2.js.br,sha256=RLCad9hxLkP9a7TcexfujYu5jSdB9HspCTnjgcZmrHk,1071 +gradio/templates/node/build/client/_app/immutable/chunks/CNLW7ozo2.js.br,sha256=yupbPvA_D9v3Wpth3_p33TgiVHUKsPJOAAhpfWfsYBY,164 +gradio/templates/node/build/client/_app/immutable/chunks/CNTbSkyt.js.br,sha256=f62HNVCIEVZibZLy3I9SiT60pbI7hXAP2pNoMflWMB0,21857 +gradio/templates/node/build/client/_app/immutable/chunks/CNmH3iMm.js.br,sha256=YV66pXDrcKHuxRAxT5A7goiZ6H1-mMOTqYIUGnaFdrk,1621 +gradio/templates/node/build/client/_app/immutable/chunks/CNp3IeBi2.js.br,sha256=dFG_ydzjW-mhg1ZVJzmZKkW3df5pjLIM-WSSNZjvXaE,247 +gradio/templates/node/build/client/_app/immutable/chunks/COjMYuPP2.js.br,sha256=oCnFMBjPEvUbrlOLOe6r9eqqzTIgJAWfr9t5FMbfI4A,457 +gradio/templates/node/build/client/_app/immutable/chunks/CPlnCImu.js.br,sha256=-cNaabIZ6A_G6ilX8wr-mNfnBdzOyy_-5jMa0_3tHRE,484 +gradio/templates/node/build/client/_app/immutable/chunks/CQC5yM2r2.js.br,sha256=C6oPJ2AVg8YOM_14P2Z0wXjKAE4n0MQVNls42oOp4Cc,318 +gradio/templates/node/build/client/_app/immutable/chunks/CQPVERT62.js.br,sha256=iauDpwy1jEONB7PkDIkB-jRIq5Q-7khwPXe8nrCTdjU,282 +gradio/templates/node/build/client/_app/immutable/chunks/CQUT86YP2.js.br,sha256=mNHz-0vO7sAM5TrtO4ecik4hGLwNnDz4X8rjB1h248I,246 +gradio/templates/node/build/client/_app/immutable/chunks/CR43NiOc.js.br,sha256=rxxOgTQfBThDStGmka72f32jAXabedYP1w0henwulbs,7868 +gradio/templates/node/build/client/_app/immutable/chunks/CRhX3HmQ.js.br,sha256=pg9VUgDCDaouNBHkD5yFGyg2po5lLgaxzRKg3cy7qqg,253 +gradio/templates/node/build/client/_app/immutable/chunks/CS3uRG9x2.js.br,sha256=ee7VigTdI2SE9Oi0Fszy8RAxcXx9_btlR7ls43Gsxpo,1712 +gradio/templates/node/build/client/_app/immutable/chunks/CSJsc2Dc2.js.br,sha256=eX8zCrkYMC9Dq5AT3REr6D1SxoogAewNdEipafBVA3Y,331 +gradio/templates/node/build/client/_app/immutable/chunks/CSKSodPl2.js.br,sha256=hSciZ-0_x9NBs8k23ug9klk37lmAVEOtwfVAUpuFMy4,7804 +gradio/templates/node/build/client/_app/immutable/chunks/CSv74ovD2.js.br,sha256=iwNFm2m9DvWAzYMF_fexznHJjfss5pXdhmy0m4T_eP8,267 +gradio/templates/node/build/client/_app/immutable/chunks/CT6RvNJv2.js.br,sha256=ARWVFqfzghnm8SapwkfdVl_uqGe41vCK3VBjMhLBcRk,1518 +gradio/templates/node/build/client/_app/immutable/chunks/CTRicX08.js.br,sha256=y4Grl8c2ZzGPtEzpOmZdkI_bGLdASc41ELX68gU9lW8,281 +gradio/templates/node/build/client/_app/immutable/chunks/CTbXhPmF.js.br,sha256=cGJO9XBNspb95TBIPZ0fqSYDeOVWYMO2Jl3FDrnHaQc,244 +gradio/templates/node/build/client/_app/immutable/chunks/CU8jl7kB.js.br,sha256=uUBuSs2KUck3S33JNCMWL667uzDfiOAluGMZRMgl3DE,464 +gradio/templates/node/build/client/_app/immutable/chunks/CU8o9QCs.js.br,sha256=sxSetowzM8_nUbTfltFUDJ5ihsKRSntsQshj6HIiA9Q,248 +gradio/templates/node/build/client/_app/immutable/chunks/CVJuwlr6.js.br,sha256=z__cPwWgsuXQQKJIvAM7Irph6S8A2wmsEIFUpOtTkWc,1541 +gradio/templates/node/build/client/_app/immutable/chunks/CVMCarEu.js.br,sha256=YsvXacb2xl8WoQF2E5b50qrQfsaFzLNdFTD34MlcWtg,724 +gradio/templates/node/build/client/_app/immutable/chunks/CVXYF984.js.br,sha256=j1Dp5Jfep8_vDwb5jF7Y47IP2sWWO3eJxwOVPzGN2G0,13051 +gradio/templates/node/build/client/_app/immutable/chunks/CVeNsmIA2.js.br,sha256=HXAGuQt3XkREiXCGfzcCl0_wRH-w9jMJLvReRumJ0R8,1610 +gradio/templates/node/build/client/_app/immutable/chunks/CWDgt8oe.js.br,sha256=UMscoocMp2tYCdR7rjzB8SDR-dO35EzvjqVrDd_RFxA,350 +gradio/templates/node/build/client/_app/immutable/chunks/CXhp1uZy.js.br,sha256=F2ifFunT6jnIoKots9Jjbgzl6swNKCUzzMmq4GgtzTA,7317 +gradio/templates/node/build/client/_app/immutable/chunks/CYTxTm2V2.js.br,sha256=ldHDKCOWW8BVEkNQFr7JHa-Th-3D233iptMxosmxYw4,132602 +gradio/templates/node/build/client/_app/immutable/chunks/CYhVDMEE2.js.br,sha256=iAtiOoXGkV4A8UbA_dMRo169_Jubc3miYHCzcJBIBgc,1616 +gradio/templates/node/build/client/_app/immutable/chunks/CYnT1ok52.js.br,sha256=8C9tB2bHcUGhxO6GRt6lZ7bvc_B6-roBP78-8gfGcqE,132 +gradio/templates/node/build/client/_app/immutable/chunks/CZCGz-3q2.js.br,sha256=bppAnpVkHhfkmjyKL3z6rqSvG1V8JLqSZNowROpojEM,182 +gradio/templates/node/build/client/_app/immutable/chunks/CZq0gSVN.js.br,sha256=WwWyfIGzcvzLI-OgPjAEV1MPafiVnnECvLz-QBphtpI,314 +gradio/templates/node/build/client/_app/immutable/chunks/CZsKLbDr.js.br,sha256=N3oXLOkNvxlXSnSwoIMc0z25UnS1X0fxHbFjKBxZFPk,750 +gradio/templates/node/build/client/_app/immutable/chunks/C_5pyvOy2.js.br,sha256=q1IAOIK43XOfpjy2GhZjMM36n8-f7RYTpsYpXPtjdnQ,1328 +gradio/templates/node/build/client/_app/immutable/chunks/C_8qAH5n2.js.br,sha256=tVtGVsJBj1rRBhq4cyjuk8ZbYFU8y1fa2mJaLWUGRS4,549 +gradio/templates/node/build/client/_app/immutable/chunks/C_LOlvJc.js.br,sha256=XNhF6Ae4oOFTaRBud6-3DJt4G5Xi2sGQm0Y0JPt8rWw,275 +gradio/templates/node/build/client/_app/immutable/chunks/C_b1Q7fk2.js.br,sha256=yQ8jMP2PRQUUKafszWCUEGKWmFZbO_AcwMgRJYhtLJ0,289 +gradio/templates/node/build/client/_app/immutable/chunks/C_hG5on_.js.br,sha256=M2FBnxuUqr2iEnnZ9Cm0VNlg2NAy2JKi7VTK4ZrdTmg,2288 +gradio/templates/node/build/client/_app/immutable/chunks/C_pWpMDJ.js.br,sha256=CYgL5uonlPsnv0pG5eE-AwuLlsq0MeZiMGb8vZJD5OU,105 +gradio/templates/node/build/client/_app/immutable/chunks/Ca-1TE0s2.js.br,sha256=iAhH6TCxgjlN25ExND6u90conQxZm0V8cqwXJnrGnYo,3391 +gradio/templates/node/build/client/_app/immutable/chunks/Ca0KwBy8.js.br,sha256=yS61nARcib1HcTyZYTNXt7V0q6nEPz-LxKbzJPD89_8,356 +gradio/templates/node/build/client/_app/immutable/chunks/CaFq8-Vt.js.br,sha256=-oYAefXRET3xVjzneayCs3JqemmSR3nvvW3tI_gTxFQ,77 +gradio/templates/node/build/client/_app/immutable/chunks/CaGG_aDl.js.br,sha256=EULUZSveGnaItaGMDWYUc4i9PvSXdECTG9ifjj8r6X8,1772 +gradio/templates/node/build/client/_app/immutable/chunks/Cae8Cm3R2.js.br,sha256=0UJSy4Xb2Zqh_bgrwzGV_6ZGdhyK8nPs6CTPbSq5qMQ,9907 +gradio/templates/node/build/client/_app/immutable/chunks/Cavf5CaI.js.br,sha256=G_pCyezgUZk5y7e4HGK9To4RKgClUklYXD7A8LBfWdg,6760 +gradio/templates/node/build/client/_app/immutable/chunks/CbRyKrEI.js.br,sha256=wxM2OHMCXTgS8O-EluJ41BKRZRYZCaWrtaXZefZ-aDc,1247 +gradio/templates/node/build/client/_app/immutable/chunks/CbpcT2lw2.js.br,sha256=97-DjhKQ5qSEKaOc_eH-KPqKBB1bkYYb9QN6EfLU1_8,80 +gradio/templates/node/build/client/_app/immutable/chunks/Cc1pAhK72.js.br,sha256=V_aS0bSE4XsLZ0M2qysbu2vbzPNG_oaOO4bZ77eVoBE,2494 +gradio/templates/node/build/client/_app/immutable/chunks/Ccd4hVkO.js.br,sha256=BYGVCo1H9mya3mkjxkDIw76dbAFsI87_kIfUOQGqCto,400 +gradio/templates/node/build/client/_app/immutable/chunks/CcuajAoF.js.br,sha256=o8qBhRJdxoVrZu-nVNszS6rch040E8sOSXO5EYiKHu8,77 +gradio/templates/node/build/client/_app/immutable/chunks/Cd1V6Jty.js.br,sha256=UtINpY4ZY0ng3mPasqJDCNPvYyKEBj2MGD0dsHDas40,27239 +gradio/templates/node/build/client/_app/immutable/chunks/Cd3pyme22.js.br,sha256=a-_ucKD1k07CnJFDi7xEMJSoGC0D9O7qvfb8ysPRhU4,34778 +gradio/templates/node/build/client/_app/immutable/chunks/CddY0kR22.js.br,sha256=KD8xs5LQ5T6B0kpvUsCMNw4QYxYQ0N61RvX1zJMpW0w,392 +gradio/templates/node/build/client/_app/immutable/chunks/CeEWIKKx.js.br,sha256=crNO-GmjDt_ri9WHnTMqgqziBDihCHYSHupbloxud8A,427 +gradio/templates/node/build/client/_app/immutable/chunks/CeH54rQA.js.br,sha256=Aa8uQr74p_vhQ0GoTYEUoC0smWxclt4ed4K_0LvE9xg,464 +gradio/templates/node/build/client/_app/immutable/chunks/CebRZ7MQ.js.br,sha256=MZhyp5QFkni9uV6vxJyYqAMWWHyICa_knZzcFgNUM08,565 +gradio/templates/node/build/client/_app/immutable/chunks/CewTBbnt2.js.br,sha256=6vr2MYvjQlokYXQ35FMZF4KDZR-5PBTyA1rQeSQzaDw,2870 +gradio/templates/node/build/client/_app/immutable/chunks/CfCevjl-.js.br,sha256=H8FfudU58cP5h4hZC30QLzPrDVmGuA5QIvP3c3sF_X8,199 +gradio/templates/node/build/client/_app/immutable/chunks/CfiSVtM62.js.br,sha256=NymVgwy8JMQziXx4xCuZxA5d6ibjps2OzYz9skNZJKs,995 +gradio/templates/node/build/client/_app/immutable/chunks/CfjKXPm82.js.br,sha256=m8ebP3WOBdo12CUK4nJN6BDBHiNGxpzZtxzRi5IQVus,10580 +gradio/templates/node/build/client/_app/immutable/chunks/CfmeSDrS.js.br,sha256=U5kfJe_Fal5mQ2LbnUjLJ-HGmzfYMCBhaUTqWYDlhB8,1037 +gradio/templates/node/build/client/_app/immutable/chunks/Cg5Vh3br2.js.br,sha256=UCAJj8TWcvyyvrz8XMXiJ6lV9wfnXVV8a41ylZ5pbsc,95 +gradio/templates/node/build/client/_app/immutable/chunks/CgBD8sit.js.br,sha256=ZtoxlLREC8PTnOPbxnZYZWqSQFJ1VwBfSA2Iusyltfo,7218 +gradio/templates/node/build/client/_app/immutable/chunks/CgGBu2br.js.br,sha256=mZEVVlinSlvWPTyDO9AbI7-dnHJSo7dUr2jXKT_AWEs,408 +gradio/templates/node/build/client/_app/immutable/chunks/Chu84b5o.js.br,sha256=6_ZYThFSRjqFPkTJH_n5a8dM0sha-BkfiTD0cdoqJIw,1499 +gradio/templates/node/build/client/_app/immutable/chunks/CiODGAu2.js.br,sha256=d7WJa2vFT9-_TmdUTiJqCQ_ddVaMgJOjGNifutM8-f0,491 +gradio/templates/node/build/client/_app/immutable/chunks/CiUeIMeo.js.br,sha256=TVUq5_MjamgiiKeQ_x7HQtVQshPlV5xabFN2D8FXtEY,254 +gradio/templates/node/build/client/_app/immutable/chunks/CjDyibZw.js.br,sha256=ikjdps1ibfExoP_ouWeH7ZqT1w60h0Gcvr8wuRLNFYs,2247 +gradio/templates/node/build/client/_app/immutable/chunks/CjFTV7Dv.js.br,sha256=K-7hxB72nETVxkRSJ_lLlu1BtktSDWYivnsuNPwr89g,423 +gradio/templates/node/build/client/_app/immutable/chunks/CjI9EX0h.js.br,sha256=YEJkdIBHZFyO9rHGrYuS4cWDPLpoo1sYJxdYkIZj0pU,167 +gradio/templates/node/build/client/_app/immutable/chunks/CjfaTNTx2.js.br,sha256=XNCeKT4aNJ2_2xxU5UqjolRmZ2gJGcDew7kJF6670t4,740 +gradio/templates/node/build/client/_app/immutable/chunks/CjuF5m_1.js.br,sha256=ZUDocdHzVPHmKALyfxn8qqQ43MYEExKkEQAAvFdr7f4,1568 +gradio/templates/node/build/client/_app/immutable/chunks/CkzKEtHR.js.br,sha256=J2pPv0vopBwcn93j_bmEcgoibv0Mzy14e_HBbOFVd90,1827 +gradio/templates/node/build/client/_app/immutable/chunks/Cl5cJstd2.js.br,sha256=4zoKhWNBwdk3SCybBE4zGlsr2aEo1M3xgloHdUxAWBw,549 +gradio/templates/node/build/client/_app/immutable/chunks/Cm85DJU5.js.br,sha256=-YAVtVa0dTdWdY45LxxgW5ovhnKuT3GoGLRNlQ8EpnM,2041 +gradio/templates/node/build/client/_app/immutable/chunks/Cn9wLuUJ.js.br,sha256=Or0L0x7SF5DIDpE6Y6zHuhWWOoO6hocGrRR_EdVasis,2333 +gradio/templates/node/build/client/_app/immutable/chunks/CnNQEB_4.js.br,sha256=p2sgdIvA1dTLHvdTEAEvJTw7AOmYr7OkaEPpshU2eIQ,63939 +gradio/templates/node/build/client/_app/immutable/chunks/CnTHnCGe2.js.br,sha256=eCl0Rf2fCOpdorgye3LLSd3ygG1N1oXv1rY01pUlSB8,1327 +gradio/templates/node/build/client/_app/immutable/chunks/CnXt9nDf.js.br,sha256=3D9BK4AA3jPzp8-0R34oAbvQOKp49T8n80GM8RsAoyM,97 +gradio/templates/node/build/client/_app/immutable/chunks/Co4fM40K2.js.br,sha256=slSzqUEXJnqmvhRPQcwn5VJbVS82YsLZz-bmwlEG5Xk,1779 +gradio/templates/node/build/client/_app/immutable/chunks/CoUCJ6Qr2.js.br,sha256=svvKu-ZdeKSRusMrdTOda6p0jgbOVII0vzfAJHRVs1k,597 +gradio/templates/node/build/client/_app/immutable/chunks/CoaxCTDW.js.br,sha256=m6AL9PfXOiIqpAgHcYSA312MzW1QHS_OlfkOK8eGwK4,959 +gradio/templates/node/build/client/_app/immutable/chunks/CodjAa7A.js.br,sha256=OdIRBE9kXU3A_WWqrUqsRig7EDoR9PMfsOM4KcD8XzI,344 +gradio/templates/node/build/client/_app/immutable/chunks/Cp0w6PSE2.js.br,sha256=lvtMz4WaEBXjtLrBPITuSbeUw53GUhqt3g5LOl677Ds,161 +gradio/templates/node/build/client/_app/immutable/chunks/CpM2kcJq.js.br,sha256=m4bHOBPN9AS3Xm52_MQQIbhi80s_W0QCGzdNvH2HNYQ,433 +gradio/templates/node/build/client/_app/immutable/chunks/CpWiAGln.js.br,sha256=yai8E8Sn6uUYS5yFdAWx1pMASTyD-oDyLh3Nh9-rvPk,1607 +gradio/templates/node/build/client/_app/immutable/chunks/CphHIXtP2.js.br,sha256=ZYRtUc9wuSKU03g-NMEZsTKE6cIFGjNusnVbZxUUi8k,191 +gradio/templates/node/build/client/_app/immutable/chunks/CpiFpw7r2.js.br,sha256=y_bJIJjAplXvhYXsoWp3vekZl-xDVTk7yXh9K_C1JOc,428 +gradio/templates/node/build/client/_app/immutable/chunks/CpizwD1C.js.br,sha256=zoJeDTDJONAPwzAW9_uTB2Wp7oG9qK2KNDT3bG0EIBw,373 +gradio/templates/node/build/client/_app/immutable/chunks/Cq39gIfu2.js.br,sha256=kgvI2m6-8sc_GrzZbH5D0UYUM-1adJGf6XgUYeFkFs8,259 +gradio/templates/node/build/client/_app/immutable/chunks/CqGyDEuv.js.br,sha256=lpEDYQYWZTxrcLF9eSZrPAsfIjk5yhfgXLrXOcvvEZE,352 +gradio/templates/node/build/client/_app/immutable/chunks/Cqhdtml92.js.br,sha256=KupETylZImwSMC7CaFSLZ5sReLo816-YC6qhbGM9FVI,1502 +gradio/templates/node/build/client/_app/immutable/chunks/Cr6dnVKE.js.br,sha256=koNLQ2FV-7dhNBAO5iNttWQC6K6iD1X0jiJLB85l8NQ,567 +gradio/templates/node/build/client/_app/immutable/chunks/Crrb2Aik.js.br,sha256=v2eZBmAd6X4I_U2fDDVl7R53lR9sRY9N5-hLuzQ05uY,114368 +gradio/templates/node/build/client/_app/immutable/chunks/Cs1-1e_z2.js.br,sha256=BRwLtCyHHbaw2C3LBPjDh5azszVuAwIJJ5ObyGjMqsQ,135 +gradio/templates/node/build/client/_app/immutable/chunks/CsNi68i5.js.br,sha256=xWeYUCXIxtIxuueMYOuGTW6Gi-DbLkhyvUgwN_Vww1c,699 +gradio/templates/node/build/client/_app/immutable/chunks/CsUyZpZg2.js.br,sha256=y6dq4m5np-MQOHH_AMS6BNHpugPgiO5Wgtt02MCuo9I,11931 +gradio/templates/node/build/client/_app/immutable/chunks/CsZrFGLx.js.br,sha256=EdmeZwkBhqz4sPl3m4npZxHTOPW9uZnvc86mprvWnjE,1353 +gradio/templates/node/build/client/_app/immutable/chunks/CstlGw9e2.js.br,sha256=bi6tMnby6Bi5nU3pNfUZIePrnoJhDmwHTBs00LXD6s8,149 +gradio/templates/node/build/client/_app/immutable/chunks/CtUMwXE6.js.br,sha256=nEl8hk-ut6XL0Z7j5x_py-STnblkdDyAjE5JOSTum5c,208 +gradio/templates/node/build/client/_app/immutable/chunks/Ctlub4nm2.js.br,sha256=BQrBdID9ujKhkUKwXX9oVPmxf1OnQA5FhL1GWx4mOdY,545 +gradio/templates/node/build/client/_app/immutable/chunks/CtuR3rex.js.br,sha256=HoqV2FQpZoN1A7zBPX1Smec99VLrAOTYG4aWzalpLL8,2514 +gradio/templates/node/build/client/_app/immutable/chunks/CuBYPcDK.js.br,sha256=j3cHhDJspZRczG7-c8mOoK_qe6IMzHMz4SxItGtpBC8,726 +gradio/templates/node/build/client/_app/immutable/chunks/CuHK9GPe.js.br,sha256=u2Gxdsn26EgrLNpSv7Ii6ALAYNsoH-raKfvCVES56I8,442 +gradio/templates/node/build/client/_app/immutable/chunks/CuYP2_N62.js.br,sha256=DTRktjQtUmGTJ-P85vOwug8_GgyCmLypTykWcnSF39w,363 +gradio/templates/node/build/client/_app/immutable/chunks/Cu_sj2zM.js.br,sha256=jjFSKQHPpi8KlTTplwJiiWe2ZxN4rjG5NMb3b0Kf6WI,65 +gradio/templates/node/build/client/_app/immutable/chunks/CuoflU6j.js.br,sha256=QBkhPbOaop7PUvz17Wq_0JmILYk6Pz3KaT7nw0IkBhM,474 +gradio/templates/node/build/client/_app/immutable/chunks/CvBlH6aw.js.br,sha256=7Fs4adHgkddMwIcztDucbQ_DGXeN4dLzZPtsdZv-d50,366 +gradio/templates/node/build/client/_app/immutable/chunks/CvN_ra9M.js.br,sha256=FUMFxo05V_eh_Gjuw2jJwcYBvgvyU3jZDJ9BqzC_vX8,1519 +gradio/templates/node/build/client/_app/immutable/chunks/CvawLPWH.js.br,sha256=_52mWo0tIrqTracu5isk0q4E6efuA1WNIfSVGUh9-OQ,289 +gradio/templates/node/build/client/_app/immutable/chunks/Cw2RYCZG2.js.br,sha256=0ceu3JxATBX7yRdAzn2wxV2LbiSfLa8cb3e82Jq8WzE,1210 +gradio/templates/node/build/client/_app/immutable/chunks/CwH7Mc0D2.js.br,sha256=kwxUz-oqGyLMFedWqrW2uPaz03cDJuPGJ9ZKX4LzfFM,255 +gradio/templates/node/build/client/_app/immutable/chunks/CwIymead.js.br,sha256=U7oHPe9HR5oU0VHKMOt9IBNfHat2V_fbZix8xWCZWfk,3238 +gradio/templates/node/build/client/_app/immutable/chunks/CwdqeDTb.js.br,sha256=NzTopDQjrLOyIJ2wPNGpaz6nfnp8KGxFRSPKUNmO3bk,244 +gradio/templates/node/build/client/_app/immutable/chunks/CxDnV2y12.js.br,sha256=dTeic8I8UlOTe50KBorHFm03GkyBln8HXw6YPCK3mt0,904 +gradio/templates/node/build/client/_app/immutable/chunks/CxHHtTd62.js.br,sha256=5FkWeK3mgGpeITTIrV3M9yWwkDM_NF9qPx6XLw0fAQ0,694 +gradio/templates/node/build/client/_app/immutable/chunks/Cxa6Eke1.js.br,sha256=k2nFwiWSjoK7PFUUUuFmquQTCQmDyJLfAOhwH9BOKdw,234 +gradio/templates/node/build/client/_app/immutable/chunks/CxvhZI512.js.br,sha256=wp6XoshjtcG8W8oFohjdhKGtDkw8D-yKD_Q1pYnMS-o,1479 +gradio/templates/node/build/client/_app/immutable/chunks/Cxzc8Oe-.js.br,sha256=nfhRctI-hAaUEdjBLTI1NAQHaGgH9uZ5Ma-1JhER3vk,7895 +gradio/templates/node/build/client/_app/immutable/chunks/Cy6TrREp.js.br,sha256=qTkeKhWvCMVHBDzLx1sJXU7q-Yaz4NywEaSvOYjlIKY,76 +gradio/templates/node/build/client/_app/immutable/chunks/CyCl8rPi2.js.br,sha256=CuHKc5ZZugEDqvCxAmkLDU5bHAvF1XIvhz_QqwZ6Fy0,115616 +gradio/templates/node/build/client/_app/immutable/chunks/CyiP4af0.js.br,sha256=SCtczKUmKUDEhkeMJaflG8EjySmD2pbCLxFXPcXMqp0,318 +gradio/templates/node/build/client/_app/immutable/chunks/Cykjtqsp2.js.br,sha256=_YZU43kK46grCdtR2bhXINL_PHwRG-OBLCUA45QJtVY,375 +gradio/templates/node/build/client/_app/immutable/chunks/CzSwdNvC2.js.br,sha256=GsH4qMn3zZMXtfW6i8icTlTTbV1nZ4dHZmXnyPcap0c,782 +gradio/templates/node/build/client/_app/immutable/chunks/D-XQlhUT.js.br,sha256=z4lFDOOMv1rzHUuS96f8t6p_A9qdUfXdkfGuyzU-GRw,153 +gradio/templates/node/build/client/_app/immutable/chunks/D-r2AbCS2.js.br,sha256=ljkq-oe2ZiNK85nUctChwBRTYRns1CVhU88w-GxMWBg,424 +gradio/templates/node/build/client/_app/immutable/chunks/D-zgI82W2.js.br,sha256=d3vbuRFDiL540UrBY2C01Oblk8p0gA_NP87F3Y31NkA,518 +gradio/templates/node/build/client/_app/immutable/chunks/D0kAcGZf.js.br,sha256=JG4ioKUjqPelWStlCA6pz-6Q2GDGYZT8W4bD327fMAA,1032 +gradio/templates/node/build/client/_app/immutable/chunks/D0kGLUdw2.js.br,sha256=WXnYOJwQNToRSy32XqwY2Ex9EhoYumKkVYQj8nMjP40,233 +gradio/templates/node/build/client/_app/immutable/chunks/D1ClARxC2.js.br,sha256=Y9f3NhNxYhXR1CGWJuNgp-059kA5FI6rq4m1G-lem-4,119 +gradio/templates/node/build/client/_app/immutable/chunks/D1Wgxj96.js.br,sha256=HLkXiABiiQ0u-rsN6YrSdIFVoE_t_ITIYVa90plp48U,329 +gradio/templates/node/build/client/_app/immutable/chunks/D2Tbgc-g.js.br,sha256=CuBnmmRPbLA5CDV6WKmCgJ4pmqI1IRTUlgkOG75Ab-U,964 +gradio/templates/node/build/client/_app/immutable/chunks/D2eTfopB2.js.br,sha256=tCvd5-U31zP1rFTqAydN7u2JeAcWqTDas9w6utip3eI,3182 +gradio/templates/node/build/client/_app/immutable/chunks/D2nvUgUF2.js.br,sha256=F20jhB_qRdPPvZa5TrXnnBswtdHiZXSOZcyboV78gYA,2438 +gradio/templates/node/build/client/_app/immutable/chunks/D35G7w3N.js.br,sha256=FsKxKqLq-MFMVNnUu9AMq48gVTqGcealr2b_0VxBPjo,328 +gradio/templates/node/build/client/_app/immutable/chunks/D39aHyqg2.js.br,sha256=HfCsHdiW6exSvwJQsYkQW9ALCu4LztAyswIZRBmoJEI,420 +gradio/templates/node/build/client/_app/immutable/chunks/D3FVQaKI.js.br,sha256=zkNd-gNc_cdG_ScWKGT146EqP5dsun2-WmNfypVtGQM,706 +gradio/templates/node/build/client/_app/immutable/chunks/D3MY_ACW.js.br,sha256=etqH4sogzZEA8WtCiKQNne2Wf2HCFrsXhPtwuFTVcyo,325 +gradio/templates/node/build/client/_app/immutable/chunks/D3YKKndo2.js.br,sha256=uH80tSLlpRSCayQHNLFFjslOxFVFhxDnRxwe2l4P2ec,49 +gradio/templates/node/build/client/_app/immutable/chunks/D407XAPa2.js.br,sha256=hdzs-yJY97ECqg43-8-kYJI-sg7v-i6xiQzUvys0n_E,2398 +gradio/templates/node/build/client/_app/immutable/chunks/D4WYijyW.js.br,sha256=wlKNYQrBXe6IeOJwAIsPAtmeR8UdnJbCK5fndWOdJOI,429 +gradio/templates/node/build/client/_app/immutable/chunks/D50T7yNr.js.br,sha256=6l626EDEgsdo7-0PDMSNv3e2wADrhll-JjBuqqQlM8M,1309 +gradio/templates/node/build/client/_app/immutable/chunks/D57wYXK-2.js.br,sha256=mZijVgKEZwNFhBh5dsBjN9TO2Dcoc8-VIoUpV4tQTuw,349 +gradio/templates/node/build/client/_app/immutable/chunks/D5_uDPf92.js.br,sha256=A8Y3qVGzxRfGhF4J5umH78l7dY_jvPqv56yM3mwISVk,14793 +gradio/templates/node/build/client/_app/immutable/chunks/D6GCTtyo.js.br,sha256=fTOFVBVHK0i4AIyH09A_YxgbNEFnvrmAjbUIcmCrg08,621 +gradio/templates/node/build/client/_app/immutable/chunks/D6Ln7ZGp2.js.br,sha256=SPFqfxA92_xL3fylCt5OOdoA7ykpIP7InpZpPNVk5HU,389 +gradio/templates/node/build/client/_app/immutable/chunks/D6PvLXpz2.js.br,sha256=-g9-ePnO0RdRtcCV1IJOR8RNofLWk1yWfv7_bdmTM6w,15080 +gradio/templates/node/build/client/_app/immutable/chunks/D6zCJ74D2.js.br,sha256=wA_Y2sr3JQLW-YpBLl_BCcMPRSVP8pTRIX9iNHpgtFQ,2629 +gradio/templates/node/build/client/_app/immutable/chunks/D7BIsnhe.js.br,sha256=nQ-aGiaPecOEyPIDp5yc3sWpEv6PyUQ5geUtK_ufIus,2457 +gradio/templates/node/build/client/_app/immutable/chunks/D7enPiMl.js.br,sha256=f-J1dwQc3_UyYvwIr5-APrAYErHLPfHzU6xzyjVhXoc,56 +gradio/templates/node/build/client/_app/immutable/chunks/D965Scw3.js.br,sha256=05Xj_rE6Ww9s7RXKAmi_r7d8vTfDirTmIaipeFEHD0Q,1930 +gradio/templates/node/build/client/_app/immutable/chunks/D9a_t5lg2.js.br,sha256=wTM9xcToimDuQ94SSIpOz1mq0oe7vOFoWG42BhzPz6c,716 +gradio/templates/node/build/client/_app/immutable/chunks/D9cYWDgF2.js.br,sha256=U3WsCoSsXLbA60bS7oVrDVDeIU-K90LTHsJyvr575Es,5190 +gradio/templates/node/build/client/_app/immutable/chunks/DA4nw4N3.js.br,sha256=VtE3FWhJyfJCwG8kY1xGHQKKll-ePFf_Aldh2NOQBeU,348 +gradio/templates/node/build/client/_app/immutable/chunks/DA6pnXj72.js.br,sha256=9wW_GRXG3K2DkgFRMlhVQv5Y9r2bpCVft7Qg-bjalI8,507 +gradio/templates/node/build/client/_app/immutable/chunks/DADKenSm.js.br,sha256=H1BqRO5117SSm5PV8nLPedna7MFu73V4CC7XfHwPEd4,1225 +gradio/templates/node/build/client/_app/immutable/chunks/DArznS1X.js.br,sha256=sGFx60peTIjWU5CDEf3wZAc4N55C2q7p6tgOA1NkNlM,431 +gradio/templates/node/build/client/_app/immutable/chunks/DBsCJiPp2.js.br,sha256=_QCG5wjU6KZx9375oY00bDvcTujwhkfGB1-8Vxs4qz4,2853 +gradio/templates/node/build/client/_app/immutable/chunks/DC5AuJGX.js.br,sha256=DIrimHxRYc13fZvlLFWxlNk48rQG6XScBtuwBQLnGKI,7124 +gradio/templates/node/build/client/_app/immutable/chunks/DCZ8UKJ22.js.br,sha256=o66OwDqc9nh-fKbRtXjmHxYBRYz8oHbZUG5jGdm8uk8,4227 +gradio/templates/node/build/client/_app/immutable/chunks/DCuVBVDb2.js.br,sha256=hPIEGA6I4cGXypGwTOik0EXDwBAQnKZU1-wrtSL-0y4,82 +gradio/templates/node/build/client/_app/immutable/chunks/DCvJDi9m.js.br,sha256=5fk_TSzwtl_0YXw_Wo5tB_uwPW-EvL49W_a4R-igEOc,1502 +gradio/templates/node/build/client/_app/immutable/chunks/DCwzORLG.js.br,sha256=lNZXBKUANGtPC0D7vzchFCsYbHK4SyMHJPNRrCyFA5k,14368 +gradio/templates/node/build/client/_app/immutable/chunks/DD6oSGKy.js.br,sha256=tefS3LGZrAZdwYZSBzSosVsyt-a_eqHYDFqMkJUtrNE,33785 +gradio/templates/node/build/client/_app/immutable/chunks/DDoS2LYD2.js.br,sha256=fVpYjDDI3Xks0WQ6X0v8AvthgNSfafW3cflU6gbG-Qc,96 +gradio/templates/node/build/client/_app/immutable/chunks/DDqBYTGx.js.br,sha256=PxwPNDWnOCzvgLNIemmgcJE4IT00Tr5awerPkTsZcxY,427 +gradio/templates/node/build/client/_app/immutable/chunks/DE92tKqP2.js.br,sha256=N2gHRyiwOmh9CoV9yEBrvmiGaxoK8EwHBEWJHiMlKGQ,2519 +gradio/templates/node/build/client/_app/immutable/chunks/DE9SULIj.js.br,sha256=rHCJ6UXIZg9IxnLSvJRM6oLRaVnJa5QyU3yu_HJHAoE,528 +gradio/templates/node/build/client/_app/immutable/chunks/DEAcrRSZ.js.br,sha256=6TZ_L8X2u-6F_Qze9wEz3n9QkLRY0nJv5gTecS8pVxg,324 +gradio/templates/node/build/client/_app/immutable/chunks/DEj_wvOt2.js.br,sha256=nb8uMhd1jQ3iByVJ7haiXjljxH6XdAXKDSBCBUDqEEA,28928 +gradio/templates/node/build/client/_app/immutable/chunks/DEncnL8q2.js.br,sha256=B3GudQjHebxa9ol6rLM9Ux4-vRGfSw0kBFuEkCxkqoQ,5735 +gradio/templates/node/build/client/_app/immutable/chunks/DEsuQ_z82.js.br,sha256=4hIUAXfTINBt70sjFkwUlkNh5BYELT51DDwzpHCx64k,4289 +gradio/templates/node/build/client/_app/immutable/chunks/DEt5a_Bl2.js.br,sha256=DdUarWX7NL4Bu4G-brTdFq_vl3l9-o7l3DSVGfXammI,270 +gradio/templates/node/build/client/_app/immutable/chunks/DFLYib_F2.js.br,sha256=ww7yv4bIxmv1EIqZXxYBglk4iRSKeWeKKP7qm0TIU5M,27 +gradio/templates/node/build/client/_app/immutable/chunks/DFMquhuQ2.js.br,sha256=TZP10Ktx6IFzRx1F7D82IHMEQ7vA6fQVkT4kVyLZWPQ,4503 +gradio/templates/node/build/client/_app/immutable/chunks/DFmGkYkn.js.br,sha256=7ry6mspj2apxeE0IAVysEjQrH6ZAZqrmjiiLhaP_3z8,900 +gradio/templates/node/build/client/_app/immutable/chunks/DFslM2OI.js.br,sha256=EVp57vbTQDk_lv0I8XC-JWepwtg8Df-wYGINtKZinM0,603 +gradio/templates/node/build/client/_app/immutable/chunks/DGLalTU7.js.br,sha256=hq12vycCMEvZvMQGgAfNUkbZUZAR6hPsChLeVeEzSq0,5753 +gradio/templates/node/build/client/_app/immutable/chunks/DGj6Ubxc.js.br,sha256=0dKwmabkIsb3FSydnWNCjL1LUIo1Np_-huWbtrEVw9s,132 +gradio/templates/node/build/client/_app/immutable/chunks/DGoENoUh2.js.br,sha256=W7cKULITiSnMCWy02sExCc81DcOrTybCM_mUferBLU8,1276 +gradio/templates/node/build/client/_app/immutable/chunks/DGommRkI2.js.br,sha256=chZawHhHsMXkChzzYl0ZHfwAE4_55OecimU94m1_VYc,368 +gradio/templates/node/build/client/_app/immutable/chunks/DH9UsviM2.js.br,sha256=3EzZYLlNzKjUyl4Gowy6kqjcYUanKCOo9-S_ulie1Ws,370 +gradio/templates/node/build/client/_app/immutable/chunks/DHADOgf9.js.br,sha256=46bkVhzNiLLMPS9jmtKt4Yuqpc1WKigZSrmVC7r6NaQ,17362 +gradio/templates/node/build/client/_app/immutable/chunks/DHCQDivm.js.br,sha256=9g8Lad7kDfo8H2WW9x5sIx2klNRMhcGTe9BR1EaaZPo,2028 +gradio/templates/node/build/client/_app/immutable/chunks/DHhc-PXh.js.br,sha256=zCyVk0BUxW7CTYVJBB4GwRwnXnJxzxwRY-h6ZBZ4Bw8,2560 +gradio/templates/node/build/client/_app/immutable/chunks/DHpcu2CA2.js.br,sha256=J4vGTU1r_X_6mcl4U-A-zurPoXgs9Zv3TNyijuGr2Nc,306 +gradio/templates/node/build/client/_app/immutable/chunks/DJ2aidqN.js.br,sha256=tvh7ektCl5aLEdVJlh74v5MnU_w9oVDfh7DsOEoWnEk,458 +gradio/templates/node/build/client/_app/immutable/chunks/DJm0szkC2.js.br,sha256=fTgrY-goodHnodvw4s-Sr7S97itPPpjFeDxlZQzW2_4,3594 +gradio/templates/node/build/client/_app/immutable/chunks/DKDHmeNE.js.br,sha256=wGpaLKEApgmUPvMq1jLKkResyOIByjkDnrQOLUZzrpw,1488 +gradio/templates/node/build/client/_app/immutable/chunks/DKa3HXhE2.js.br,sha256=hrSFkgmybyvObkghDDPL3JMXb3GGlx0V8fKWOEBXP1w,3437 +gradio/templates/node/build/client/_app/immutable/chunks/DKjCqeDJ.js.br,sha256=BehGdpnmhZrBu5sP4K9_wLXc-9LqJ416c536OPS7ZlQ,796 +gradio/templates/node/build/client/_app/immutable/chunks/DKuqG9nK2.js.br,sha256=cy5CDr4Bvyh7zwRmNFVrtrgWXD1dAktiv-VFGKrC8Wk,27841 +gradio/templates/node/build/client/_app/immutable/chunks/DL3SdewZ.js.br,sha256=jjoBogkUfCMPldReROK_VGlnm-ZBsUCON8dJwTJrSoQ,60310 +gradio/templates/node/build/client/_app/immutable/chunks/DL9AXTgr.js.br,sha256=xuC7WAgVAbwNGETH2zoiU5s_mxwgjn602anHhGALkR0,2141 +gradio/templates/node/build/client/_app/immutable/chunks/DLUzeCHP2.js.br,sha256=aXGzKUzC0xT8sZ_eJxHBcwYehZE0Dvi8398mjp6PewM,1591 +gradio/templates/node/build/client/_app/immutable/chunks/DLcX4vH5.js.br,sha256=vVe-MqnbpWQzL-4RfiJTfUtXm2K_oi3CgoER-ABjCY0,8136 +gradio/templates/node/build/client/_app/immutable/chunks/DM1WCo162.js.br,sha256=qLelDKgBkoy8_o9fPUQCrTs_ZiFDXFKuEnSKLMbK5Pw,5359 +gradio/templates/node/build/client/_app/immutable/chunks/DMVMtIS9.js.br,sha256=JWhIrT7qQ2zzDLWtpvXVR0v4ZxvqhFo0OIQM8PDLHNM,3682 +gradio/templates/node/build/client/_app/immutable/chunks/DMW9ha0y2.js.br,sha256=L89xE4VRZodebz7JWcJYhDMZDTzZLlJLOcvKGyzLPWg,1959 +gradio/templates/node/build/client/_app/immutable/chunks/DMuEg6cD.js.br,sha256=8A4X99hvO09cR9VjMugBMRgjPg07qO9qXMVnW00Fk3c,3099 +gradio/templates/node/build/client/_app/immutable/chunks/DN1bgQa-.js.br,sha256=TiYPMytWwBhS8b3_HPcrSWRx1znUQAbtfFo-7FL4cVo,791 +gradio/templates/node/build/client/_app/immutable/chunks/DNB_FK40.js.br,sha256=l8b-nB_UomJKQ9Elmhf_pXWutoSRAdYinNGWtU0VOks,3825 +gradio/templates/node/build/client/_app/immutable/chunks/DNMbqcH_2.js.br,sha256=VpUdQAYN-QLzg1b5OJJaSEpZa4BFP3TNxQPV0g2pfJ0,409 +gradio/templates/node/build/client/_app/immutable/chunks/DNekb51P2.js.br,sha256=qbVf4l4MWrRXoiLLw7LC4bmQ4Iln3iiGSwlPmmvOAvk,194841 +gradio/templates/node/build/client/_app/immutable/chunks/DO4jZ8-K.js.br,sha256=D3eGOXeeVncrjbcscjIXLgtugVYsIn8HUzhxzX6PQXY,596 +gradio/templates/node/build/client/_app/immutable/chunks/DOOS1Ff82.js.br,sha256=CDu3RIsIXW6fSdxwIdx9V58OZw9GWGz1xeOFkaxjwt0,6948 +gradio/templates/node/build/client/_app/immutable/chunks/DO_vUz-p.js.br,sha256=VBvmZDClOaOZ-EylxiCP8OdNVJMVUvQeV8B-Gq_hSlg,301 +gradio/templates/node/build/client/_app/immutable/chunks/DPN9buA72.js.br,sha256=VvsIyThQ6eE8Q6n4SkpR5MwaUNkk0jIDBxQdClndjuU,418 +gradio/templates/node/build/client/_app/immutable/chunks/DPrywk71.js.br,sha256=Ax44EkKfXfozyChNgbIZkxTWs5uRkB3DqoCgk70P4To,522 +gradio/templates/node/build/client/_app/immutable/chunks/DPt8q4el.js.br,sha256=b15TlgF984qZfR4SGdmA1WskKQT25EyC4d3FuxSU3Rc,1807 +gradio/templates/node/build/client/_app/immutable/chunks/DPupDbbt2.js.br,sha256=rQjXG8N4jyxI-AdQriuQL_nTkdqZh55PzZnye9v9otE,374 +gradio/templates/node/build/client/_app/immutable/chunks/DQA8Ub142.js.br,sha256=by65ckyMsqWktpvq_G7pEu2X0qZUL9OtABT3uP2--vc,75 +gradio/templates/node/build/client/_app/immutable/chunks/DQKpcmom.js.br,sha256=46fWyXtrpAdii_v7HGnM5xRZEEMtDzOoJmFnt9ZiZm0,224 +gradio/templates/node/build/client/_app/immutable/chunks/DQP7txBe.js.br,sha256=ZM6mgc7vB39YmdJ5H21oiNuvbHyvsmOiUI7Ko61-Mx8,12576 +gradio/templates/node/build/client/_app/immutable/chunks/DQaykNc-.js.br,sha256=ga0cXSWyuiZ9vIlXObIE_d-PdVDafctj_vLToL9_xAU,1197 +gradio/templates/node/build/client/_app/immutable/chunks/DR1dImtM2.js.br,sha256=WePw_6sb0p9ALP9OCeqLbYUFg22vAd2lA7jCLPEkh1Y,965021 +gradio/templates/node/build/client/_app/immutable/chunks/DRGeudee.js.br,sha256=I3MQIghNHlMo9qn1Kc_0ZCSbU8j-5C8VRFAW_hAatwI,4104 +gradio/templates/node/build/client/_app/immutable/chunks/DSIKHZuJ2.js.br,sha256=0Q9pW_-b3hvgvVYMLoB11g-0TZm7_0kw2liep-gYL9s,5755 +gradio/templates/node/build/client/_app/immutable/chunks/DShmh3Ld2.js.br,sha256=9VZRYWrBTlier_tMgEWr9kSZF99WzN8_x9DuEHErSlU,194 +gradio/templates/node/build/client/_app/immutable/chunks/DSmWeV9z2.js.br,sha256=dXafpIOhHcPkZY0EAvc003aRuTVvAYLkkbTlV3fYXf4,345 +gradio/templates/node/build/client/_app/immutable/chunks/DSpKTp0C2.js.br,sha256=2DKHhCQ0dx2mYaLxyGe1d_JTs97x2Wd-aAH19JwMOxQ,273 +gradio/templates/node/build/client/_app/immutable/chunks/DTKsW_bp2.js.br,sha256=3H2MVc9B761n6ISLb92DVfJlnXxkjH50LB-4Rc1sElo,2104 +gradio/templates/node/build/client/_app/immutable/chunks/DU3rLCcY.js.br,sha256=ypI0wcV7CwZK-2-jxKAZBHRi3m0E8cyc7BAiU70RyfQ,851 +gradio/templates/node/build/client/_app/immutable/chunks/DUB4Lvd-2.js.br,sha256=ti03dRViWZIZLJ6eAuppN4QUuOKAdp4Cr78oqYESoz4,1254 +gradio/templates/node/build/client/_app/immutable/chunks/DUC58aDx.js.br,sha256=pGdmggA_cX6GnGqyT8eAnFB91-G3C9BIK2qoARNwgE0,410 +gradio/templates/node/build/client/_app/immutable/chunks/DUGuTayq2.js.br,sha256=IMO0V2wz73F5lOwVB_dhjj575zd6yOM7S_zWVJyhMg8,1369 +gradio/templates/node/build/client/_app/immutable/chunks/DUUh4EcC.js.br,sha256=0ZldJbmk9eQgZUDfNsQ0H65g2BGT3n4ChUeL2eCinTY,2088 +gradio/templates/node/build/client/_app/immutable/chunks/DUwaM3pg.js.br,sha256=ezo49pJcnlhJLyP3tDcyLtmGXE7IsHbpEFOPQK_HbIs,2961 +gradio/templates/node/build/client/_app/immutable/chunks/DVIyOL3T.js.br,sha256=gIb6SkqLbiCqradzAPNUaFnnoVT49JCm7ywxcuoujvY,1998 +gradio/templates/node/build/client/_app/immutable/chunks/DVJKKEDH2.js.br,sha256=ROehGy8Zk3snMgbYNqA0bigWI82jksTkI4_LH8v7pGg,3950 +gradio/templates/node/build/client/_app/immutable/chunks/DWYgMBfC.js.br,sha256=l8AJeqciXpmvwboJFWLwfef20Y4HGuwDrQpzsbgHCBw,586 +gradio/templates/node/build/client/_app/immutable/chunks/DW_CNyvQ2.js.br,sha256=jhaisExK35UPf6Y5piGkr7VDrp6gAo07SHZouvOAcOM,2568 +gradio/templates/node/build/client/_app/immutable/chunks/DXfYoh2q.js.br,sha256=Mx_eGlUEBGusXireTBtmVBN54n4FhGApmiK8l7mtmms,720 +gradio/templates/node/build/client/_app/immutable/chunks/DXrtKbiD.js.br,sha256=ZW0MPCwvI0v4_uQA8JvMxb5Wmlz1ZSVOdJBR8QC6iR8,298 +gradio/templates/node/build/client/_app/immutable/chunks/DYQjHV7e.js.br,sha256=ArS65a8GXlLTmp9iDrmADEpYMkwzWWQGp4EA57ucgRc,551 +gradio/templates/node/build/client/_app/immutable/chunks/DYsPh-n6.js.br,sha256=MuE4cel59WtOw436lzVNhFRafvR-pMRoKKmDgKQK6SM,84 +gradio/templates/node/build/client/_app/immutable/chunks/DYyqUUOg2.js.br,sha256=nX1ODCk0OSun0XTMK7ETnNbmG963ly7xDfpO_VvMD4w,15788 +gradio/templates/node/build/client/_app/immutable/chunks/DZ0ISp0b.js.br,sha256=M3RJSvQau-K05luIOqylZdMxVQ57XBIhwGFtwC43qhw,1175 +gradio/templates/node/build/client/_app/immutable/chunks/DZH2DxBD.js.br,sha256=7Q9MWO7jKwc0tz7fgd5B3dIvZ6T99GUheb_UHeleo1k,27923 +gradio/templates/node/build/client/_app/immutable/chunks/DZWS1Ulz.js.br,sha256=4hrO5WC2kj9oO3maxyoWGBakZeM8Sto2gdWbtRw-sy4,999 +gradio/templates/node/build/client/_app/immutable/chunks/DZZO6V5g2.js.br,sha256=211c_jcJHQ8doLohhpY-e8CuWmT9JMsUP_Nnlu-r49E,243 +gradio/templates/node/build/client/_app/immutable/chunks/DZmeWX4r.js.br,sha256=0L8hL0cjRihCaaqwC7rk6Azrjd3d0xKcsdCgmMmj0wM,4319 +gradio/templates/node/build/client/_app/immutable/chunks/DZxRpuHt2.js.br,sha256=P8PLfzSDw28kiYECKIO17nlKnrwTjNBYKfCzi67K9C0,3459 +gradio/templates/node/build/client/_app/immutable/chunks/D_BTWKb0.js.br,sha256=XDAVQv41CN8jqJmSI8adRK3TTPtwWHZQrfBe7BGDRbo,1254 +gradio/templates/node/build/client/_app/immutable/chunks/DaJg52Zm2.js.br,sha256=L_OFzlEbxYPgqQaNrMM9eKQejGSqk3VIT-KrAaZoZ94,812 +gradio/templates/node/build/client/_app/immutable/chunks/DabUTXed.js.br,sha256=lDxKheM-20YRZI930AdvTONX7CdBQ0GfKQ0BFNVBP9U,1875 +gradio/templates/node/build/client/_app/immutable/chunks/DajaDS7c.js.br,sha256=0on0PlNKNaoOJLz0SR2aCbshbD-VxaYXDpyt2oHcjVY,45267 +gradio/templates/node/build/client/_app/immutable/chunks/DayWEFWJ2.js.br,sha256=VZ8R9r9SbHvsiVQditeMspbOyPm7hPWy_oraSuHP1Iw,266 +gradio/templates/node/build/client/_app/immutable/chunks/DbNhdfx_.js.br,sha256=QsQa9hhQnEGEIOZOWq5qZwxEek1cG5b865rRfnxqNw4,3319 +gradio/templates/node/build/client/_app/immutable/chunks/Db_dcwzx2.js.br,sha256=VhE_i26EL8I3RMKBH0I0nzdJKBFTrBIf3jOR2uy6YBQ,131 +gradio/templates/node/build/client/_app/immutable/chunks/DbhZZ7BY2.js.br,sha256=XXNSOYarKEam-YcNpOvIaaweiBJZiNTUpykXvRF2gak,605 +gradio/templates/node/build/client/_app/immutable/chunks/DbkLaIOm.js.br,sha256=Gy3ihOJjYyiBotIXMuzyyweyDcYpjqxgx8e6UiwUnXw,277 +gradio/templates/node/build/client/_app/immutable/chunks/Dcl_on8Z2.js.br,sha256=Pl0Mqg4hsQsTUmK4qaw5ZHUVO7PwiIKs8FTCTpb0owY,364 +gradio/templates/node/build/client/_app/immutable/chunks/DcylpqFZ.js.br,sha256=VONop5ihXjfpkLRI9xwA5U4FWZ78BhPikd-bi3w3g14,2212 +gradio/templates/node/build/client/_app/immutable/chunks/Dd2GjKvN2.js.br,sha256=b5O4A945mMsq-Ppj0trkO7Ych9cFDzBdTjDgClGcnZw,700 +gradio/templates/node/build/client/_app/immutable/chunks/DeJc8K652.js.br,sha256=ZqB7AiesGu6_I9REtPTYaN6eVaSx2ITl0Y1Ip7CJGu0,130 +gradio/templates/node/build/client/_app/immutable/chunks/De_Lrj1I.js.br,sha256=9ZKNJldob6TBNMRsj8BZtUBEPmY83ExpxoPNhalFbi4,75 +gradio/templates/node/build/client/_app/immutable/chunks/DeeS6A0Y2.js.br,sha256=JN8Fr1bUnLikTd9gi5g7u01KnKeEAWeYsj0nduYAIIg,830 +gradio/templates/node/build/client/_app/immutable/chunks/DfGmM-oQ.js.br,sha256=97GhEB_eT8KEVYIIGczJqrGz_i_spg2twAQ05zJKlc0,653 +gradio/templates/node/build/client/_app/immutable/chunks/DfRu9gsf2.js.br,sha256=6t2IoTZ4ZUk4c138_I9akymQT2Ywmx2FbNRrLPanjhM,46 +gradio/templates/node/build/client/_app/immutable/chunks/DfXf03l72.js.br,sha256=VAcSUAU5xDxDMh_v4BQSuQzLWUYLWfW2Vkw8h25B3BE,1180 +gradio/templates/node/build/client/_app/immutable/chunks/Dg9DrvQ6.js.br,sha256=ORI7o1Pyz9_CiqLoe51vZspckV_rpT1bVoDDMeBdtPM,175 +gradio/templates/node/build/client/_app/immutable/chunks/Dgqxj_4y.js.br,sha256=1BkCCzlPnywZuPsXMg40zpCsPce0ooUAyjTsgbrbZD8,13653 +gradio/templates/node/build/client/_app/immutable/chunks/Dgsy7lJn.js.br,sha256=Ry06ETfI9rtkOoioe1HJYGEqUp2BwO5GlkWe3UPTTWE,2872 +gradio/templates/node/build/client/_app/immutable/chunks/Dh1OeYer.js.br,sha256=FRz0k3okoK7TUvnZ2DEtFyNdVajMl0BrKBxdbz34vuk,69 +gradio/templates/node/build/client/_app/immutable/chunks/DhFjggpz.js.br,sha256=pdO3jVMc_OqadV7ONDI_2XGgtGIQYoVjd9y0EW46-9c,2031 +gradio/templates/node/build/client/_app/immutable/chunks/DhcWe_kh.js.br,sha256=cP5Rn8lXB-9CzLZnhgDWtCjUuS3kcGZVdr2fSqCnIoE,231 +gradio/templates/node/build/client/_app/immutable/chunks/DhvZ_FE-.js.br,sha256=pIYzILeQHthNFMZDaGBNenoVwn6WJ9PPls5QwNN_Omo,418 +gradio/templates/node/build/client/_app/immutable/chunks/DhxbevC92.js.br,sha256=b6JS-kLH7MoNUpziXeJi63Log1FbjwnuwXBCb1SRgDA,248 +gradio/templates/node/build/client/_app/immutable/chunks/DiFiSTaU.js.br,sha256=DJ0Ew39YGe1KkknGJiLG4TYsA3S2EjvNy8JQh5sIJzk,13771 +gradio/templates/node/build/client/_app/immutable/chunks/Di_9GAtp2.js.br,sha256=9F3oOwM6inMhlIzVfZ68joXZk4BMNLD35dwi8zOqX3w,272 +gradio/templates/node/build/client/_app/immutable/chunks/Dj63NLiO.js.br,sha256=c4OPVTkuR7pYjfxqkSCpDM9AOsQbVzkQx9Hmi29rAbk,1011 +gradio/templates/node/build/client/_app/immutable/chunks/DjjjKWKb2.js.br,sha256=IjoO0PKvb_VHd10nXG2Nozlb3sJQCowX21c1CVx8SW8,636 +gradio/templates/node/build/client/_app/immutable/chunks/Djxx-JZo.js.br,sha256=bLPNDrZ4zXq3CkAcgK9nqD-7XhHFmK28eVPRZCrRFH8,2023 +gradio/templates/node/build/client/_app/immutable/chunks/DkLt3h60.js.br,sha256=WtQkmEQkRne8ZNaClnmZQSlDont6TUdKY28PeS8QSbs,3896 +gradio/templates/node/build/client/_app/immutable/chunks/DkXHyM2Y2.js.br,sha256=b6J2Fc1Qh_SRx6aKExVjPJhfNeNeFSqbejyJSyj7rUk,9480 +gradio/templates/node/build/client/_app/immutable/chunks/DkhG7BvO2.js.br,sha256=sFrS8JG7yvrETg9U8VGnJCBxGCFbe9dxupFRAKyS62U,3518 +gradio/templates/node/build/client/_app/immutable/chunks/DmD3AOL3.js.br,sha256=pJnf9nw43E3VW-8kiWy4yRxEP6Gb38UhQUi79uVPKeU,99 +gradio/templates/node/build/client/_app/immutable/chunks/DmFBCOtp.js.br,sha256=xof8YI2nvXxh6QWvd6zy-KPM7KaOC9EBUAVbek20xYc,7150 +gradio/templates/node/build/client/_app/immutable/chunks/DmG_zMCB.js.br,sha256=imqBTyrOPh_MQzLM3ynYEcNZfL6sqLRXveSFEvyLWP0,1977 +gradio/templates/node/build/client/_app/immutable/chunks/DmQN3-MN.js.br,sha256=Vs3EWRROFCtiPXaIcr67z5Lwl2QNYyoQ56YxUv8OjW0,2934 +gradio/templates/node/build/client/_app/immutable/chunks/DmZ-qC3S2.js.br,sha256=yxAnETE6CEg9Z0RatI3Dn7dr9tGv2gKlHKrzJSWx2o8,663 +gradio/templates/node/build/client/_app/immutable/chunks/DmZVA3hN.js.br,sha256=sQR_p-3tGvogrWFgd48gh4jfFDcd4CAW4ghKh2ZI0iw,159 +gradio/templates/node/build/client/_app/immutable/chunks/Dmzv0zJL2.js.br,sha256=GqiGW9GbDf4JuLQulyiheyRnzV7LMAXZKHdN1HsdeY4,337 +gradio/templates/node/build/client/_app/immutable/chunks/Dn7n725U2.js.br,sha256=gLqdJ-5y8_5Ey-yxMRWw23wCx-GQABvRKv4V0CWhcEM,1653 +gradio/templates/node/build/client/_app/immutable/chunks/Dn7yyR-f.js.br,sha256=hD01qYFKigoW80nHFkdnWhzxqR49XhVkaMQ6uDGQjtU,2218 +gradio/templates/node/build/client/_app/immutable/chunks/DnQNdAaL2.js.br,sha256=LTFBSLNWV_SVxUcgm4aVb2jS87tvErcmg_4oTIVOUzk,503 +gradio/templates/node/build/client/_app/immutable/chunks/DnryOlqW.js.br,sha256=bIXrLl5FVEQI2baniqdvCrkVJqOhOHSC1FiZ75hE8AQ,2238 +gradio/templates/node/build/client/_app/immutable/chunks/DoDEX591.js.br,sha256=fiM-AyPQReuzRPQoAztteP9VTH_qXxoWcapPW1-iVlo,5487 +gradio/templates/node/build/client/_app/immutable/chunks/DoFD_hNQ.js.br,sha256=b5Z22hyvRsuI74-yvoktBPrzEOkCKUGw0_Ze2RDnyhQ,6563 +gradio/templates/node/build/client/_app/immutable/chunks/DoKjhoU5.js.br,sha256=J6IqjwySoc_yWCFPKiEJPPzHFUGsh2zTyuXdODGR6KU,401 +gradio/templates/node/build/client/_app/immutable/chunks/DoUZteP5.js.br,sha256=8rHArDjnmA27Dcqw_LeGl5h3nzMwLaN1ot-MqTlyZ2M,5262 +gradio/templates/node/build/client/_app/immutable/chunks/DocPjLvd2.js.br,sha256=Ch1pwGBhBpH21y9sX7XYCBEKPA_QeGnoXV1T_vF-uc8,2155 +gradio/templates/node/build/client/_app/immutable/chunks/DoskaB17.js.br,sha256=6bppSTnC5ZdVts4Yp52J5k8FVU3c7PS1wQE86dwXFvw,731 +gradio/templates/node/build/client/_app/immutable/chunks/DpWp26yK.js.br,sha256=sFgv3Jx_uek96kWLQXlhjQSCL-935sIn-WPKP4VvN1w,708 +gradio/templates/node/build/client/_app/immutable/chunks/Dp_-W-Hv2.js.br,sha256=2nIjjLDtaOsJu-ofwubusg_uHeKMqTXpf8m-HnFMnwQ,225 +gradio/templates/node/build/client/_app/immutable/chunks/DpvO7LcL.js.br,sha256=JNWBqgrfDkPZ5A3430LGPITCndCiP7JRnHb62pswfmU,255 +gradio/templates/node/build/client/_app/immutable/chunks/Dq2ciFgh.js.br,sha256=KSx7m-jae2gQLM5h6SLbNRLuahEpaTPJOQUyIFiHHwo,3364 +gradio/templates/node/build/client/_app/immutable/chunks/Dq9oZfPr.js.br,sha256=BybuQJdwZ3hIVTzJG-caV8EYhjz1TigthjSszAqvILQ,119 +gradio/templates/node/build/client/_app/immutable/chunks/DqL_mBkz.js.br,sha256=8NM6YvftNqjqUFFC9AgK3y5JRyfRwF5XxfJYF2baYIA,186 +gradio/templates/node/build/client/_app/immutable/chunks/DqhvmWuM2.js.br,sha256=c0P7K4oAC4IkrWulyZL_SKIrdhfT0-SREbNNNQfaRRg,238 +gradio/templates/node/build/client/_app/immutable/chunks/Dr0HKjW_.js.br,sha256=8kjMEE-XXG8Ux1EwRLpajWeFqaSBgOdcUEtaWbbG3OY,423 +gradio/templates/node/build/client/_app/immutable/chunks/DrKD_Mew.js.br,sha256=zGHanwjGxvJjw5T5P2eroZdfaM1UIsViY-uiLiqgGno,4219 +gradio/templates/node/build/client/_app/immutable/chunks/DrMj-xva.js.br,sha256=_zdIpaIUeVtMjpv9lHcU2AtyAMUlbN2hArGzNjyoFkg,600 +gradio/templates/node/build/client/_app/immutable/chunks/DrSR3CVL.js.br,sha256=tpFNhrVsHv5yNjNS8XH9jy_FYT-yANMdnN17KaljwxQ,26 +gradio/templates/node/build/client/_app/immutable/chunks/DrTJDaav.js.br,sha256=0C9cqjUaJn9MoCVep5PdU8lzmPz8kBuLfcbEiR0P7rA,1916 +gradio/templates/node/build/client/_app/immutable/chunks/Drj1hLNX2.js.br,sha256=_pkB3GaBrlMqLiujOI4YOV_rDCI1fIVL7AxaI-ZaDe8,985 +gradio/templates/node/build/client/_app/immutable/chunks/DsCpC5NY2.js.br,sha256=aZ_klcBvQL1v0X1LQ4DKllodhipVdX69YaqHCijFO9I,260 +gradio/templates/node/build/client/_app/immutable/chunks/DsF7k-Jl2.js.br,sha256=wGVYg7Ga3bg-GbwhoOSy1KsKhgOCZE-Rj3aNgNauDkA,114 +gradio/templates/node/build/client/_app/immutable/chunks/DsvOr5kA.js.br,sha256=jCTulS-HHm7Cn9CkZgfrzyGxJVz0ak2Jk6Z4rvm0a5Y,412 +gradio/templates/node/build/client/_app/immutable/chunks/DtAlKXe8.js.br,sha256=JsVzgHDs3p0XXRyx30u7DztB2b8CtbpKVIIbo8G49Jw,606 +gradio/templates/node/build/client/_app/immutable/chunks/DtZU9SD42.js.br,sha256=p9PCuzliLcI-cA81VoKvnEZAZGjMPzPeML-M7Hl9gAs,678 +gradio/templates/node/build/client/_app/immutable/chunks/Du5Qg9im.js.br,sha256=VsMGVwzS8rSAJTZdMzTVI-k1nrXy8Nd3l6LY4QLvbPo,1118 +gradio/templates/node/build/client/_app/immutable/chunks/DuPA3lZn.js.br,sha256=qLrAjtGP7LobNO2SBkaeCB56946VgNC7y3pnEdXMINk,2113 +gradio/templates/node/build/client/_app/immutable/chunks/Du_yypo-.js.br,sha256=9Lu7O_kb0cFezpP7NSQbdmpK-H83CbvJbADK0LnSCOg,553 +gradio/templates/node/build/client/_app/immutable/chunks/DvIhoBdv.js.br,sha256=0xVSr1rFT8WMrP9XG19w_efrWcgsPavW6BLWipJu_-w,1162 +gradio/templates/node/build/client/_app/immutable/chunks/DvJvbMII2.js.br,sha256=yhlMP6M5mxYF0Dgp2z0isJ4uzz_frYL1yz5vg_MAfec,328 +gradio/templates/node/build/client/_app/immutable/chunks/DwkVDIY8.js.br,sha256=f_tJpv40WokSo52meTyL1rGPJYIZMTWJVLYk8ra27OQ,5918 +gradio/templates/node/build/client/_app/immutable/chunks/DwwlktKy2.js.br,sha256=xveffmynWB5Nk3b7F7cxXhCVfltQO8SnaUV8T81rlRU,260 +gradio/templates/node/build/client/_app/immutable/chunks/DwxJw-Bj.js.br,sha256=RSstVFprGuJBHw6OgrtfyywUIImsXoUjD6zx6IPXyTI,5906 +gradio/templates/node/build/client/_app/immutable/chunks/DxCXc6B2.js.br,sha256=ozSTehaj4DeSG1gCrXfZ4Ay3nMMg7_rmCE6kKsUK9S8,296 +gradio/templates/node/build/client/_app/immutable/chunks/DxgdELbB.js.br,sha256=taOmMmQ_iGnpPrfXJdKQd0pkjk_WONICKaPTA_UQEYY,403 +gradio/templates/node/build/client/_app/immutable/chunks/DyVFdzf8.js.br,sha256=Ehwv8zVThoSmEyjhRaC-RsgGLRs7WZ6Q4mW-bwdFVyE,372 +gradio/templates/node/build/client/_app/immutable/chunks/DyhOmczE2.js.br,sha256=_FQVzsvtK7WoBK2zBAfiF0AZi8BrQJJgIoU5ByzdqBg,345 +gradio/templates/node/build/client/_app/immutable/chunks/DyhP-Erp.js.br,sha256=r8QVYB_zTv9UlrttcJRGkg13uwmQzE0KPz5rQHichaE,374 +gradio/templates/node/build/client/_app/immutable/chunks/DylESuEX.js.br,sha256=woACjqBkjDCzbJ1Pk_WuyLbzRhSoPZNx8YtZSIyKVlA,785 +gradio/templates/node/build/client/_app/immutable/chunks/DyyEAP9N2.js.br,sha256=T20UHMoesxrrXHihK-KnuIJky9t777MvyrCOLA1MgpY,720 +gradio/templates/node/build/client/_app/immutable/chunks/DzJOKHf82.js.br,sha256=pCNtL4kfr2bQ86tiOMWoVE8cJLa3SEqnoAM9evAw9r8,1046 +gradio/templates/node/build/client/_app/immutable/chunks/EJPmdL7r2.js.br,sha256=gEuyAbHOYbGE1DHpnmKu4mAzSGK3NCx80h0n-8FHDfA,4899 +gradio/templates/node/build/client/_app/immutable/chunks/EbD72HsE2.js.br,sha256=sj5rgRFSgA6pGwdHVD-JXPi8LuUrEvYipzG_7ntLSwk,225 +gradio/templates/node/build/client/_app/immutable/chunks/EplFIxc72.js.br,sha256=00LMsY3AiQ8SRWpvp57RxUl-2BUSJcnY_LocwkAxsUw,146 +gradio/templates/node/build/client/_app/immutable/chunks/EuYIsplj.js.br,sha256=-HyQ6UQhqQgt-TIiEGW5IjzcSA3952oAd7wNtSiud4E,505 +gradio/templates/node/build/client/_app/immutable/chunks/F2tRhx4-.js.br,sha256=eDhM5CHicRKCMRJ0rja6Zqchq7PPmRThfGRoYkphLYg,1230 +gradio/templates/node/build/client/_app/immutable/chunks/FrpkT-68.js.br,sha256=OEo3GSkbMQ038jsR7F4_ETGDAE3VNSJHXGfW-J2LocI,1695 +gradio/templates/node/build/client/_app/immutable/chunks/FxF1jRuO.js.br,sha256=-GZZOMacgrUtuQakC553BowpOCjq86FciRVSbLAeMXA,3627 +gradio/templates/node/build/client/_app/immutable/chunks/GJIyHjqW2.js.br,sha256=omaiAwxofFZGBSHgQ6JNF23rDYT_XEe0ezCtV_vlYio,291 +gradio/templates/node/build/client/_app/immutable/chunks/GRtlg-rU.js.br,sha256=y3Vb6QUjZUrH3HHjCPQzepQzwraIuMjD3uOwSwNuRlM,2140 +gradio/templates/node/build/client/_app/immutable/chunks/GVR_Frmb.js.br,sha256=OFgc1qy9VryCHCyRIF7KNQftkorvAAb0B0lf82IzSE0,275 +gradio/templates/node/build/client/_app/immutable/chunks/GoGWNadR2.js.br,sha256=oxDx3utjBj2XTF90wsRdbO3SBdzCqPu3clzSt7pBf3E,7790 +gradio/templates/node/build/client/_app/immutable/chunks/HSrQKhMH.js.br,sha256=fLkDmIQDpb1wYUkMW-hQTx18cd_fEg0MACFuZpmZVSA,502 +gradio/templates/node/build/client/_app/immutable/chunks/HfAxWiGp.js.br,sha256=sWtT-n06jyzwTdemHrPBjH5ebIyKbNdDXlaVTWVF4iU,814 +gradio/templates/node/build/client/_app/immutable/chunks/HpQa4ycy2.js.br,sha256=sd--uzvic0HnOBYjWGJJERdx7uXJkMMUbJa_4jHwq00,621 +gradio/templates/node/build/client/_app/immutable/chunks/I3tIk9e42.js.br,sha256=HKR0sLRoEvyN0rB6CMZGtjaczh7KIruWO2g8BTx_XJI,1277 +gradio/templates/node/build/client/_app/immutable/chunks/IsLWO8m12.js.br,sha256=YFORZQJDTnNwFCY7HbPAUz42TOpiv2vgUXXGj62pVPI,308 +gradio/templates/node/build/client/_app/immutable/chunks/JhlzchRs2.js.br,sha256=wG-M1j0QrE2FOW6iqA_WvITJLgKjbq6r2_40YW1YEDE,256 +gradio/templates/node/build/client/_app/immutable/chunks/K9glDNpo2.js.br,sha256=ew7FBzihO5lMElfXHkW-_NyIx-IbWGukY4NtRJBq2_Y,2429 +gradio/templates/node/build/client/_app/immutable/chunks/Kcl9HGNw2.js.br,sha256=1yfs6vGhin_QIzJeeVl-5MTg72Irv1ATz2TRvvyFZrA,1709 +gradio/templates/node/build/client/_app/immutable/chunks/KkSMBj6Y2.js.br,sha256=l_X8ML45EOiwARWzhWy4hcHf9YozY5Cv7-MMDONbS54,483 +gradio/templates/node/build/client/_app/immutable/chunks/Kll2twSG.js.br,sha256=ovZh5h9ran6Lom219mG3F6EZN9dTepRJfiNZ97uqiUI,430 +gradio/templates/node/build/client/_app/immutable/chunks/L4J3WEFr.js.br,sha256=AQe3cDgDZ3RPiwmiJD4nwrUhETgAKMeopClWmzS8UXM,3289 +gradio/templates/node/build/client/_app/immutable/chunks/L6xYJWZ-.js.br,sha256=RX0CSNzfU3Xh-p2YlK5waQ54FwLjzeTL46sywVpFPbY,360 +gradio/templates/node/build/client/_app/immutable/chunks/LNkybXCp2.js.br,sha256=I5vR62cAQiWW6Mtbvt777AVLLlp2H6gKPeHzTnb0r_Q,32707 +gradio/templates/node/build/client/_app/immutable/chunks/LcGnbtQv2.js.br,sha256=qA2X7FRe-at1szcR2XXsUg-4mQpxp1JX3YWw9co84JA,2220 +gradio/templates/node/build/client/_app/immutable/chunks/LuKhB6ds2.js.br,sha256=C7A04DiY5tjH780GqzX1tk9ODaUCJ-eSI7zZ6_FbK6I,302 +gradio/templates/node/build/client/_app/immutable/chunks/LxHA5kfI.js.br,sha256=QY746KFBdWjSCk6LpS9kC2evTy4_uw45rf1MMf9Nv6s,3695 +gradio/templates/node/build/client/_app/immutable/chunks/MUhgRj8n2.js.br,sha256=s9KMw6VrUHd4D2sTJKTC8KfClGlvReYM1V68POymzJc,309 +gradio/templates/node/build/client/_app/immutable/chunks/Mlh5xQUI2.js.br,sha256=PpZ-vRXBf0_bSLdKfXPXilKPFFDjc-x-xF7umxseXXM,62364 +gradio/templates/node/build/client/_app/immutable/chunks/Mvt2BVUY2.js.br,sha256=2f9xXKX4kX8tAxLESB_Nw1sYclHgWtSY2ucDQfWCwg8,294 +gradio/templates/node/build/client/_app/immutable/chunks/OHkdHzye.js.br,sha256=3C7fd5PHNXpSFQSYN0WinK8fZLz1wLQ4oQ7FIeDX78w,311 +gradio/templates/node/build/client/_app/immutable/chunks/ORvuNx2w.js.br,sha256=gBnGHM_mM6bDB_cWzJ3ZB8qpnREnv735BKMiRd5ohqk,329 +gradio/templates/node/build/client/_app/immutable/chunks/PEGdpOg42.js.br,sha256=b1bBonah-QNLSlhuufbNPRhcuErDWOYKqjHuKYSGt1c,4661 +gradio/templates/node/build/client/_app/immutable/chunks/Ph87GkeS.js.br,sha256=D7xRx84L3PWg_uDQZfL2ybw2RU8Zy8EIlk8luzIIA1c,7586 +gradio/templates/node/build/client/_app/immutable/chunks/Pm-kmR7z.js.br,sha256=sBoMqBSJKHfxFZTCJEcug3cSCTavLuF-r-MkTp2VjzM,405 +gradio/templates/node/build/client/_app/immutable/chunks/PpGK-R3z.js.br,sha256=CcfrXfFvELWIsACwhKG2aSdoUHKxoP-qMeJevJ4ju4M,1043 +gradio/templates/node/build/client/_app/immutable/chunks/PvFatYFp.js.br,sha256=jXQi7uqFzhZ4Ltwplg_gIzbJ6BdeAmykQ3TgFdThhSc,2071 +gradio/templates/node/build/client/_app/immutable/chunks/PxqIQdkH.js.br,sha256=WC6-VDe1yeXKm6lOZwsq8hxsxH1spvay_CpIBQGLxEk,81 +gradio/templates/node/build/client/_app/immutable/chunks/QS-VL-X6.js.br,sha256=eVZbTWhvblCX0ESj_zNHO1N6m2JJmbppLD5iZNjmBNY,1459 +gradio/templates/node/build/client/_app/immutable/chunks/Res0U6Io2.js.br,sha256=9-w40MkbWMeoLIuJzJtxO_qcW9A2MTSlJ5a_DjyG8pY,2124 +gradio/templates/node/build/client/_app/immutable/chunks/RwO_OXDO2.js.br,sha256=_rtQXt2gf-_I4EKpyCjLeZeWe0C13r5ezEjtOFyjm1s,1016 +gradio/templates/node/build/client/_app/immutable/chunks/S1crWTUc.js.br,sha256=1eIdObCckOzVMZMGCXaQWAa_lj1yKyGRexTUOehkiq4,1944 +gradio/templates/node/build/client/_app/immutable/chunks/S3YvFTor2.js.br,sha256=Y6S-sqVHAipVXQciaU6pPoyguwmlQvhsaFichOi0Vfg,261 +gradio/templates/node/build/client/_app/immutable/chunks/T7WjyPqt.js.br,sha256=MUgvk84MxGxoX65ZIpJp00QqyASaUAP9fC86ubisCfY,318 +gradio/templates/node/build/client/_app/immutable/chunks/TDGoNApd.js.br,sha256=j_yPD_llMPGh3sGgawPaJG5mR0E9KX_oX40Dvh6pAIg,6761 +gradio/templates/node/build/client/_app/immutable/chunks/TXkPWvdK.js.br,sha256=j3cp5vrUYS-_7gvccyn5Uul-E9eGNyoAYVe4uqpnXdU,2509 +gradio/templates/node/build/client/_app/immutable/chunks/UHElPptt.js.br,sha256=PhJI36Rokk2v4f8AmxAaeAkFKfBNPCpH3i6oAG1iy04,12739 +gradio/templates/node/build/client/_app/immutable/chunks/UjDQ8ZMd2.js.br,sha256=ZlKR8NM5N_KgIYm_HIGx9PAhZTc2qE8XX7pRmlv4Ha8,24818 +gradio/templates/node/build/client/_app/immutable/chunks/VJlapbj42.js.br,sha256=8yPaWFfujE-Ff2P1sLpdIO2tlMxseRMUHINpQX3lgVo,817 +gradio/templates/node/build/client/_app/immutable/chunks/VKPLnM_q.js.br,sha256=TM6Bu-S8V59bb1aIKf6tusWBrYpvzr58To8OhybckKQ,314 +gradio/templates/node/build/client/_app/immutable/chunks/Vhh-h91d2.js.br,sha256=TWn0xTzaThhHcQ8bTlxlk3DlMMWq_isejZubya3ozQM,63098 +gradio/templates/node/build/client/_app/immutable/chunks/VtuWYMYy.js.br,sha256=9vmKOxiEr7INSzzhr0afcJP7K_OhKe6GJ0VG-wNFPSU,428 +gradio/templates/node/build/client/_app/immutable/chunks/WCBBi0Tl2.js.br,sha256=oS5Uy9MUEEmSyzOSz93KP_L_T6qqcEt4O6gv44y_Zig,3150 +gradio/templates/node/build/client/_app/immutable/chunks/WH5xdwyu2.js.br,sha256=I_XnglZ4RNNDasApqo5iuM08Sjd0KXQuIr-aGKk91e0,197 +gradio/templates/node/build/client/_app/immutable/chunks/WSZiHHmU2.js.br,sha256=FQRS3WHwrV8fCJKlP2sGiZp2J38g0p5VaIBxDpTII_g,8911 +gradio/templates/node/build/client/_app/immutable/chunks/WUsPkHDx2.js.br,sha256=B9v6M4AqN68iZ_zY4Pg3GoMio8k8BCX5fgxfjCkfNCw,9810 +gradio/templates/node/build/client/_app/immutable/chunks/WkLnOmpn.js.br,sha256=2CB3tgZZcQ3YZugswmDswVTW7YileL9NKXOypVBUIDo,362 +gradio/templates/node/build/client/_app/immutable/chunks/WtUyuDAI2.js.br,sha256=TdlYKKoxGM__6J6F9Q81lmeuBhJVEdlA3N2_9AOo0Ok,239 +gradio/templates/node/build/client/_app/immutable/chunks/WxoFyOBn.js.br,sha256=nB08_FRUXGZOhZ7wpI_l2vagkCYdq1JwUeLOT7ToAA0,2066 +gradio/templates/node/build/client/_app/immutable/chunks/XHNXE6qj.js.br,sha256=86jm72UwaH6-E7NgW4YGzGdXpJgkXFyLmL3Q4JVRQ-k,443 +gradio/templates/node/build/client/_app/immutable/chunks/XbZ2k4Mn.js.br,sha256=VxFFFiqEHfV-m3W55_st4jPJepOGYSKWeVulWvb-vlw,2000 +gradio/templates/node/build/client/_app/immutable/chunks/XooMM8yC.js.br,sha256=dCKhADjz_ojPg_XNVinOc5pM9LVsfdfu7Sg4-pcN8pE,2028 +gradio/templates/node/build/client/_app/immutable/chunks/Y-1kV1Tg.js.br,sha256=7DGvTlJAb67737PjAl3URIy8DQMZCDMhg7mv0tvfvZA,1849 +gradio/templates/node/build/client/_app/immutable/chunks/YEm2CRam.js.br,sha256=s4t4J0hCx4rtPAU0gP3Zoj4WHdmR-JuA-LjkUkepilM,246 +gradio/templates/node/build/client/_app/immutable/chunks/ZBQPRZ9_.js.br,sha256=UrHJqylH3UqfozxkPDiSF0kokJMr-LRk7asgeJ0z8xA,2423 +gradio/templates/node/build/client/_app/immutable/chunks/ZNKBTRGH.js.br,sha256=3h8t9YAU0jai__sGWB5s840dj-bS7wnz4IpIcscu0Xs,3757 +gradio/templates/node/build/client/_app/immutable/chunks/ZRJWUvTW.js.br,sha256=ER883YMz6x3PB82dMLY15RCBSAziNFDrNqN7IsWHxAs,25125 +gradio/templates/node/build/client/_app/immutable/chunks/ZbBLjtbI.js.br,sha256=MU7DdLtET30CkYnp8AwAiDf9gPtpwnHncoMSV8zOgTk,5492 +gradio/templates/node/build/client/_app/immutable/chunks/__03aKv1.js.br,sha256=4oo3TWcmfQ0Klg7nuCH_nM8k0Np80c0lqKKfp9-OORM,704 +gradio/templates/node/build/client/_app/immutable/chunks/aLlzPuNn2.js.br,sha256=z_FYMob-deW94b2mDXAAI3i7Yc2EvjNdvPQouNVh3Lc,455 +gradio/templates/node/build/client/_app/immutable/chunks/afQmVReH2.js.br,sha256=BKUTq3eaXLikX0bTcTNo0-kHT7WwvREkeTVEG3uirQ0,10168 +gradio/templates/node/build/client/_app/immutable/chunks/auFnS_ZM.js.br,sha256=6QYZ5yzQCtLShMb-gVjrA7gm35QOcJIXVyQ4umNeVQo,4613 +gradio/templates/node/build/client/_app/immutable/chunks/bF0axXxo2.js.br,sha256=BfyexRZr5x_2Xz-a12L0mHtwN90TWSaYqmYOhOA7mDQ,102 +gradio/templates/node/build/client/_app/immutable/chunks/bOMhkqy1.js.br,sha256=FMkn0BaX6FpDpQSW40kSa86L0nBUvUlnAs0Q180ITFA,2946 +gradio/templates/node/build/client/_app/immutable/chunks/d5yo_MTB.js.br,sha256=w2Hfl-6O1qILQTcy7K0vZ0oFOwiFD6N1Rqk1SYtdIWs,14243 +gradio/templates/node/build/client/_app/immutable/chunks/dzIicXbT2.js.br,sha256=ItyCy-nBPfPSmlxFDXppr3fcARujHSd-k6RiIfAfdOw,81 +gradio/templates/node/build/client/_app/immutable/chunks/eMPL7xiM.js.br,sha256=UKWKL_ULvATvd_77BuRYUGqwlwyEHqPhpV32SF_LYy0,5389 +gradio/templates/node/build/client/_app/immutable/chunks/edJyW1If2.js.br,sha256=M2EAzigTH91QKJ70hWV5UOVPo1ww2LoUXajQrDBmed8,246 +gradio/templates/node/build/client/_app/immutable/chunks/eodidEfD2.js.br,sha256=skHr7fdNJ5Hrv61Sw_z4q2mi8HOFcBEH1ZdLczdbIVM,6695 +gradio/templates/node/build/client/_app/immutable/chunks/fBqLwwdu.js.br,sha256=hb6grLPy1AUh_xg8YesUpuxfQCyXbMeOqm5MO4CpQb0,1462 +gradio/templates/node/build/client/_app/immutable/chunks/fcr5W_2g.js.br,sha256=a2L5syD6IrGjItpLsQWpBNiY10CEi8zz0XwhT5vuTa4,79 +gradio/templates/node/build/client/_app/immutable/chunks/fiQmGs8x.js.br,sha256=dS6nW5vNA3cu6oo6t5b2roDoeG9ULtERMma5xGG057k,1280 +gradio/templates/node/build/client/_app/immutable/chunks/g1nzqffx.js.br,sha256=_ErLjY9f0uNEbamE81UFJRTLfq1Rdw4KDlLsVDuHb7I,525 +gradio/templates/node/build/client/_app/immutable/chunks/gp5JeA1h.js.br,sha256=6jHKuux7fceLKRhIAlO2dMhOCeF0F0nAUAshKbUTn4M,22225 +gradio/templates/node/build/client/_app/immutable/chunks/h2u2BZnc.js.br,sha256=T46bGZmuTxKiNErWqELeGe-Odjho8YYPnGLRQwTopcw,326 +gradio/templates/node/build/client/_app/immutable/chunks/hHxdPUIw2.js.br,sha256=IYjYmKyTtQHFrKkirxdu5uGeRAf5wWiy1YImNSh61rE,895 +gradio/templates/node/build/client/_app/immutable/chunks/iCvPF1lz2.js.br,sha256=62toRSM_nrYN8FJVTpcYqY5fiNX3y4GpmkE9baQuc4s,5836 +gradio/templates/node/build/client/_app/immutable/chunks/iY0bvglt2.js.br,sha256=8mE3SghL1NidcoIt3FuOhj-zEBu4sn52ynGnbUqsnMQ,445 +gradio/templates/node/build/client/_app/immutable/chunks/iuULdi0I.js.br,sha256=VUglnGgpOgoNgWT04H1C6-AzDgS5Pac95EVAMFDqcC0,6262 +gradio/templates/node/build/client/_app/immutable/chunks/j4vcKnNL.js.br,sha256=nGOSuPRh7dowm5e-abSG___ikuUm_8cCfbrx3jI3kpc,4176 +gradio/templates/node/build/client/_app/immutable/chunks/kUk1DXMN2.js.br,sha256=SrDm9WbWtKqWy5XEhgV9MP6ds_HQGqyySxOraceBF0o,264 +gradio/templates/node/build/client/_app/immutable/chunks/khUrK9e32.js.br,sha256=CSo1C3MMUAYr8nwtPp8R-WG6gQXKdpB6nQ-oLYPVIXk,6435 +gradio/templates/node/build/client/_app/immutable/chunks/l4VGIKw4.js.br,sha256=xWg9L-yR8O6O9mdmUnKHtGkt-oTwAb7qcxNYWTC7nUQ,873 +gradio/templates/node/build/client/_app/immutable/chunks/lcEYOqUS.js.br,sha256=Rp40dt9vDGA0UBwEb74e2gU_u5O6LzVaXX5U4JGBi2s,620 +gradio/templates/node/build/client/_app/immutable/chunks/m6_cuCmy2.js.br,sha256=7ymc8qEsVvHRe0ydht_jwpG2tZmg4ZPNwWaNJPPm1vQ,424 +gradio/templates/node/build/client/_app/immutable/chunks/mE3I61_z2.js.br,sha256=Sg51QpAHBYo21AeFc4rFFwYAkiXNn_UBZrEG9jhNrQc,2453 +gradio/templates/node/build/client/_app/immutable/chunks/mQ9VqnoY2.js.br,sha256=WQuqHcdMhtpjnuJLh1x4yTY4xrOD8TFk7KzlmFRFXqs,239 +gradio/templates/node/build/client/_app/immutable/chunks/ndOTd0JA.js.br,sha256=A7ncHjDu72Ft1tXRCNgk3w53I7s29dKn7x-qX-zg22A,575 +gradio/templates/node/build/client/_app/immutable/chunks/oIsWv1DU.js.br,sha256=BSLRAKiqS-_5CM9z14k3CIQLBUo2fdEzpYm6PQq0raY,817 +gradio/templates/node/build/client/_app/immutable/chunks/oQgq7A3w.js.br,sha256=ZcBvQT27OG0ScREVd-3vaFwXkkOZ84hAT5KUWF3ZN_s,370 +gradio/templates/node/build/client/_app/immutable/chunks/oghnUQiA2.js.br,sha256=LCYswyw8u1pyKVG7cEKuA6rmUtkmBdfrvcNbehHRI20,490 +gradio/templates/node/build/client/_app/immutable/chunks/qffK0jxB.js.br,sha256=Ym-diMl5ZnmKoHvKB9OwYe_7kYT6RvfKFXdQE_JlQ1o,2560 +gradio/templates/node/build/client/_app/immutable/chunks/qwwHSABo.js.br,sha256=VxTg_yd0mANxOXnnNZG7bOM1otGxmBBA41AbbWKTQ3w,2046 +gradio/templates/node/build/client/_app/immutable/chunks/rDzFU0iS.js.br,sha256=6DhhsOwYklflLleZm2KJQJ1YF6G1JkVkbvMGmee_5Og,248 +gradio/templates/node/build/client/_app/immutable/chunks/rQSECUD32.js.br,sha256=tJO3h-2VEwWollnRkf6weGybUi0F0Qjci6f50BlGfZM,2449 +gradio/templates/node/build/client/_app/immutable/chunks/rRKa3wRm2.js.br,sha256=RrOTNRaQSRv-C0VyKSZKRfnAQ9QghARe5eNJ-4ea7rA,20344 +gradio/templates/node/build/client/_app/immutable/chunks/rV-EppVp.js.br,sha256=wctqy9G0rnXGVCNZG6VOqOQFFVval23fMEZlg57OD2Q,1987 +gradio/templates/node/build/client/_app/immutable/chunks/rd3ktMnP.js.br,sha256=O5azCf6jG3nQks1FYUNYV0ZWVMbOTz-hxsG-VIkhEVc,371 +gradio/templates/node/build/client/_app/immutable/chunks/regJ6zwb2.js.br,sha256=5CO4jvH1f0ThCTMTEOnveeGYkQxyzYxfvhZJjRKKhq0,270 +gradio/templates/node/build/client/_app/immutable/chunks/s3IRTTos2.js.br,sha256=8g1KL8PmYiyYKf0PG0z4rAA3Y3ojLImAzrR9HsY6_10,1062 +gradio/templates/node/build/client/_app/immutable/chunks/sBG9IpFW2.js.br,sha256=myHHbmrUrhVdRPkHpYwupow034czNwLzjrXNiKaEzJ0,239 +gradio/templates/node/build/client/_app/immutable/chunks/sDrdk2BW.js.br,sha256=k-H547TADgwjgIG-mFUR2diF3jgg9jhfMtwJlEkITSg,1052 +gradio/templates/node/build/client/_app/immutable/chunks/t22iQNzU2.js.br,sha256=ntBVzGRxAvAh7bkOY6k7mS2vJZMVZ-Mkz3fa-Jt3kJA,68 +gradio/templates/node/build/client/_app/immutable/chunks/t47QITRh.js.br,sha256=g51C8_5gvmkNDbTQUkG2Yc_0TPfcaQp92reA6INpdlQ,12478 +gradio/templates/node/build/client/_app/immutable/chunks/ta8MItWJ2.js.br,sha256=imof41NnTv_xY5fhx6W7Z1xrOx3qIPRPB05-0qoAvFA,72 +gradio/templates/node/build/client/_app/immutable/chunks/tqrkkWcM.js.br,sha256=LPTe5Ij803Qs423MCt1RANwu5JQTLglog0pLR5P6pP4,292 +gradio/templates/node/build/client/_app/immutable/chunks/tyy7hRtk.js.br,sha256=X4hBaCPLY301pfU0-J9cUS0CryYDQ4RpxyLUOfBsxYo,656 +gradio/templates/node/build/client/_app/immutable/chunks/u11yu0dY2.js.br,sha256=e0IsgCAOd5GhvgqTdtM6SKJGXvqCvs6LpC6YEWEpNss,830 +gradio/templates/node/build/client/_app/immutable/chunks/udDBWeOG.js.br,sha256=MjtBhkGNrSdCboO9jnIaCfwkOFoLuRTCSdNnrMmWP1M,1867 +gradio/templates/node/build/client/_app/immutable/chunks/vJy8DM-O.js.br,sha256=Ac0a8eym-j5TIjpLHWeHA4KMmtZ_OI3LslEP7gkk3OA,4359 +gradio/templates/node/build/client/_app/immutable/chunks/vib75kEM.js.br,sha256=A4CHpfaOejdr5YC1a9KfK0YwwPGsgj76kfy3EjuFb58,1935 +gradio/templates/node/build/client/_app/immutable/chunks/wAtrUKTr.js.br,sha256=0o9v1BTmCEqAmMfAj6MpYwD2z2N6fo99MPXEcnCpEX8,302 +gradio/templates/node/build/client/_app/immutable/chunks/wDtv2ywu.js.br,sha256=mzTBTC6qwi97RxNc1-UxaZlih-w8zT2CIxXW4zDgzOk,3071 +gradio/templates/node/build/client/_app/immutable/chunks/wLdnhWpx.js.br,sha256=eo6lCOoFaB0h1ytEV-DndFSmcE4_g-DjMzcFWRJ_Jts,592 +gradio/templates/node/build/client/_app/immutable/chunks/wT0n6RKR.js.br,sha256=OFrxS37HI4uTJaVXWd0974v6E3sBJgbAYVdNVyYmRPk,268 +gradio/templates/node/build/client/_app/immutable/chunks/we71fdIZ.js.br,sha256=8hw_yk1_Fggsqwg-MuwW_2VlpXkpNOgwJ9Z7yrhb59Q,3204 +gradio/templates/node/build/client/_app/immutable/chunks/xKrP8nXE2.js.br,sha256=VLFu0pV3eRX40jWuzylFBVzm4djV5O4DxUX4TbszLd4,7547 +gradio/templates/node/build/client/_app/immutable/chunks/xQvDmQfh2.js.br,sha256=lyVKE_2azerP-NlOp5QBaw1uCozD0mAFLzS2AjOfsBc,318 +gradio/templates/node/build/client/_app/immutable/chunks/xpR0pr6-.js.br,sha256=fXQVau4gNcEOS9TWuvpPDxCk_xKgS4ia9xTtHCGjpFc,779 +gradio/templates/node/build/client/_app/immutable/chunks/yk63P9tw.js.br,sha256=s-blMRiS-YP_VUDAxp3JPXHR9qH6qE39XzjnKlHAGqM,245 +gradio/templates/node/build/client/_app/immutable/chunks/z1dgl9Vi2.js.br,sha256=3zV9FxXuTpr7DkS_4MHs20_zUPn1VA3f_W1HIu9tb0Y,168 +gradio/templates/node/build/client/_app/immutable/chunks/z4DG4ZdB.js.br,sha256=5im2CJTChv5w0l_JhQftUtNG4nLPtazB_xDwUzdKH5M,686 +gradio/templates/node/build/client/_app/immutable/chunks/z6TQy8aR.js.br,sha256=AWvmAsYipLU1hmIYEs4WK6yr-Uihal0Ye4XfovpGoS4,888 +gradio/templates/node/build/client/_app/immutable/chunks/zTbdWE6S2.js.br,sha256=TZTtPg_7KXJAd4kKGiGOotKBIdb8d7zVpfMIWsbYBX0,2478 +gradio/templates/node/build/client/_app/immutable/chunks/zlHQUGQ4.js.br,sha256=U3ks9hWlYwbLs5m0WZ4MYreAm4orchxiqR2qR56Ht3A,912 +gradio/templates/node/build/client/_app/immutable/entry/app.Diyvkrm4.js.br,sha256=Ei6pdz-dLDQu6Gjb56zuZAFcsn0PVmsOwrGT9BY0Lj0,1476 +gradio/templates/node/build/client/_app/immutable/entry/start.3ovKdvQM.js.br,sha256=CLSeN8WyndGO_N-FMfxjT0XI1TV4FBjKmxYxr0dNPT4,73 +gradio/templates/node/build/client/_app/immutable/nodes/0.BzIpv2qh.js.br,sha256=oTLGNJNivFx7STn0JjN7MDdKRZ3TzgpT7w7eNaZvIwM,134 +gradio/templates/node/build/client/_app/immutable/nodes/1.CakXDPfs.js.br,sha256=ueF8yUlEzFp75cz7flYIPlifQ6eyLV4PMg0SmJbdEIM,232 +gradio/templates/node/build/client/_app/immutable/nodes/2.BoK984GR.js.br,sha256=375B2o1g5_enZvIFxOZIeqUnmqboeoSPAS9Zho04rk0,22750 +gradio/templates/node/build/client/_app/immutable/workers/worker-BzdDEeh7.js.br,sha256=LGfUVwh2XcnZ53cIWNzf_jAIZgvi72N9t_JmNyn00Ik,1011 +gradio/templates/node/build/client/_app/version.json,sha256=C7G7E5ScpOZ-w28T_W68svFv2JFc_so6DdYCIFFxt3k,27 +gradio/templates/node/build/client/_app/version.json.br,sha256=sdrJFKQyxKocxxeyqnubzRKOmZ6pkaIVjsvRSXkeZ-0,29 +gradio/templates/node/build/env.js,sha256=kqN3x0Da5_fjVDrgg4HItrYZ_XM7w5Xpt9S_fGucAEk,2241 +gradio/templates/node/build/handler.js,sha256=ZmdVmojCuR7XsUIXimtcKvmu-wmrLQrZZhLKM_pUqIs,41016 +gradio/templates/node/build/index.js,sha256=owZQRzJOuZMyuTH45ivf3E7vTPS6ipk_HXOJZzFe2IU,4284 +gradio/templates/node/build/node_modules/.package-lock.json,sha256=VoGg9STjx9pvMoTVAgiIfPtXEedYOUo8m_OOHwmt-68,1778 +gradio/templates/node/build/node_modules/eventemitter3/LICENSE,sha256=OuzBKxyyiDK19lq2QpHellaMPyNqdNZGKBtEkfe8rb8,1082 +gradio/templates/node/build/node_modules/eventemitter3/README.md,sha256=4R2qTpRsyfF4ZhMU-xi-sjXGCpqsZ2L5NH_GFO4sShc,3636 +gradio/templates/node/build/node_modules/eventemitter3/index.d.ts,sha256=uAx4DFJSS-sTSIlCVDlyyLDlRADotZzuAWnzjQ-ruWg,3470 +gradio/templates/node/build/node_modules/eventemitter3/index.js,sha256=FWDyUd5dKNLBX_BwIV0sXA-gbxqS6NZSK77jfgbSprU,9141 +gradio/templates/node/build/node_modules/eventemitter3/package.json,sha256=LpYS_Qs7cj1OJ9vXQXUvhK2EDzFRlzJQggvngmUMt-E,1495 +gradio/templates/node/build/node_modules/eventemitter3/umd/eventemitter3.js,sha256=F4ez6I2wlRYFFZum33NTUUHhMfu-2pq4TtsQzxCr7K0,10035 +gradio/templates/node/build/node_modules/eventemitter3/umd/eventemitter3.min.js,sha256=S8ngX1mPrZQgTCbspw7Yt4aHInYXOUdgJtgogFzS7LE,3493 +gradio/templates/node/build/node_modules/follow-redirects/LICENSE,sha256=v6ilS7lSzNp58PGIlyHRCPW2Bbq7srijcF_7UvQTLrc,1136 +gradio/templates/node/build/node_modules/follow-redirects/README.md,sha256=GQssTM41k1kvlmHRv_OrOYMX4ZVCXvPyN1jR9SxC9q8,6605 +gradio/templates/node/build/node_modules/follow-redirects/debug.js,sha256=jb9-cakpK-GA40aaa3oWQXHTw53seeXbxKocnwlQn68,315 +gradio/templates/node/build/node_modules/follow-redirects/http.js,sha256=dUwAeMV2Jdt7VbTD-zD_XCB_xJKEpQInQugdDFlUA8U,37 +gradio/templates/node/build/node_modules/follow-redirects/https.js,sha256=eijjI__ZEJTgg6iVT-Ang5wG2UhgPX8nGe0XxEaIUnI,38 +gradio/templates/node/build/node_modules/follow-redirects/index.js,sha256=vdXZH28IijtzqHA-b88J_pLF8k5a2La1r_WyapWirOM,21194 +gradio/templates/node/build/node_modules/follow-redirects/package.json,sha256=QtjVD4amqKti8snZ1pUy_FHeY77P0almgYEuR5RDlgw,1289 +gradio/templates/node/build/node_modules/http-proxy/.auto-changelog,sha256=TOYHFjwYUz_E_BaJ3PDufhSSBMX3P44Gil6z0gymzxc,113 +gradio/templates/node/build/node_modules/http-proxy/.gitattributes,sha256=nEhMkDf7ltU474H5HqHj1UVV_9nMcIzJ1Xi4YmPwTTI,25 +gradio/templates/node/build/node_modules/http-proxy/CHANGELOG.md,sha256=8RtfK_h0eNBShwXlJGDYexqksbtqMGwcRexmbuGBn_Q,176531 +gradio/templates/node/build/node_modules/http-proxy/CODE_OF_CONDUCT.md,sha256=wipLJ1o0syXNv1v9ujewHwCJ4JbJKEnGl0HN5GLQPNo,3255 +gradio/templates/node/build/node_modules/http-proxy/LICENSE,sha256=WJhQ38Ch05qXxZLWGNV3L4SuwrEcaJjgIKy5hSmfO6s,1154 +gradio/templates/node/build/node_modules/http-proxy/README.md,sha256=cA2EpzD7_SGDPv7GqlnO_crIjKJv4ZgSoE3IhuJS2l4,19405 +gradio/templates/node/build/node_modules/http-proxy/codecov.yml,sha256=LwHNvkIsIknw8MMDgRmZpzcynBWme9xnbQgWoY6t_84,156 +gradio/templates/node/build/node_modules/http-proxy/index.js,sha256=Rnc7S9Vn_7h9lPJbbfhEn_T1_o7Td29WI0YZRKaNDs8,375 +gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy.js,sha256=mUlf7kvmQ9-6yKl56mTYjZUysgtbrifs8wFor8z6DrM,2578 +gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/common.js,sha256=8hiZ7D1Tc7Nr8Z7cEm1NNZKwxj8wPX1Bi4MR0-kZP6U,6606 +gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/index.js,sha256=Lwt0_8AdSQCuYRzpbP-c2SCSComJycg-SyiGeZqdl3E,4794 +gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js,sha256=OThKCpwH9a6Qaa7EH07X8LMyWAhyTcDX7abgz6AeHzQ,5906 +gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js,sha256=yA4Q11orwrMUAwypts3NYRHBY3CTjFbAvrj7POxAZX4,4960 +gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js,sha256=-Q_RW3k3rokARiw5SFm66CpJZsPBfRFFFFt5cJIKWII,4568 +gradio/templates/node/build/node_modules/http-proxy/package.json,sha256=Gs28uDk7dq5D6NNa5La6dNDqcECmupP6A0hfifx0c6g,1017 +gradio/templates/node/build/node_modules/http-proxy/renovate.json,sha256=czQQBOUpdjc12o46OvIe6t5qLM4Ywp7A3MLDAgAV49A,369 +gradio/templates/node/build/node_modules/requires-port/.npmignore,sha256=OpdexEWcFAHoUntoT5X8poZdF2a6O3o69Sc4JijzH_I,22 +gradio/templates/node/build/node_modules/requires-port/.travis.yml,sha256=DJEknvKrUMU_Z8CDlmas9kJQoxu9lCFSnIBKUpwi37c,341 +gradio/templates/node/build/node_modules/requires-port/LICENSE,sha256=OypqJoqoFd7BIdYUJF4DtcaNsfBE1bUl42231dx_ucM,1115 +gradio/templates/node/build/node_modules/requires-port/README.md,sha256=6tESYcOhwCDKvYXmDGbPf9shRppOxVs40hcoF5rtSrU,1814 +gradio/templates/node/build/node_modules/requires-port/index.js,sha256=xcdD0oBlUhcQEiSfz18Nr9LzrQTiltGSnIbIxx_micM,753 +gradio/templates/node/build/node_modules/requires-port/package.json,sha256=U33caQCx8Zlpicxho-Fw2Ri-0Ktcx3pJJFvMWTYej0c,1127 +gradio/templates/node/build/node_modules/requires-port/test.js,sha256=-FmDA66a3zNtWV3-8iFI8_RCKmdVixmYl4kQBf4qgtA,3393 +gradio/templates/node/build/package-lock.json,sha256=dMyVwOEXXbrdV6xAFQk6KTlnYpn_p9hDaSMsj2lSQ0M,1894 +gradio/templates/node/build/package.json,sha256=GZRjiIAZuyZLgU4WwuRCru6h5vz_EjOARBVe9XMsYto,106 +gradio/templates/node/build/proxy_routes.js,sha256=-tcHe8PkCZ2e72VX179N_NnLyAPCLiy-Kevy3G5Kb4k,3275 +gradio/templates/node/build/server/chunks/0-CSL1qC8W.js,sha256=7NfIkE8Jy_vu9YqazVubmepmraD6jgHQHJSxDZJQ2Mw,897 +gradio/templates/node/build/server/chunks/1-Dbm9L0GN.js,sha256=75Q3IO6W-xpym1ekPCvz5NUFwWNE-XfGYABFeWuLXFs,518 +gradio/templates/node/build/server/chunks/2-CQ_Bz8hd.js,sha256=oLkKGR6c7iI7TWzVPyU6DA5jvaJopBH0waCpyrf_xWk,148205 +gradio/templates/node/build/server/chunks/Example10-8GKOSZX2.js,sha256=zN7Av85jts7UNE_QrNLsr3FNDepKZrg9u1YynkMhdUE,424 +gradio/templates/node/build/server/chunks/Example12-xQwKGIj7.js,sha256=EU2hxhJtNRA8EvEQ5YIvXqzA40Riv1BYe5h0yxjmpIw,494 +gradio/templates/node/build/server/chunks/Example14-BDt9lUCk.js,sha256=73vTsfaMMytqLMT4ajzc-qrijdr_IvPixHkdV2HlzWA,1538 +gradio/templates/node/build/server/chunks/Example15-DOVMOMFU.js,sha256=pxdxnFUMEwHSNhBlHmEqgIub1nNT1N-ctsCmwKW9LlE,235 +gradio/templates/node/build/server/chunks/Example18-B-up1lL9.js,sha256=fSE4othKs9q7ydwQaDJbCnBHYZv2ap9RkM2T0qRZRXY,367 +gradio/templates/node/build/server/chunks/Example19-C8Rd0OgD.js,sha256=BVBcVApKk6zH3-VeBeiadwMFpRBO8ZzpSIWQ9JomKnE,367 +gradio/templates/node/build/server/chunks/Example2-70VzHOK1.js,sha256=O149xovhl0D4vMQPm25f-YVNVD4jEUwr24lbVTdZXso,478 +gradio/templates/node/build/server/chunks/Example21-DCmcGVAD.js,sha256=hp99J-RZwS9hwH7revdXe-0hH-PgL-vRLnUWzkXxnW4,421 +gradio/templates/node/build/server/chunks/Example22-CIalNKQb.js,sha256=fdTCcsBcOkXZUmV_oW8AOaaxznNe97SRN3Qa-TPKsrg,800 +gradio/templates/node/build/server/chunks/Example24-CCHqSrrt.js,sha256=HmPTzXnlUjSqj3BnkVaRFMSrNP8ApwqkXhPZh6ZE000,1554 +gradio/templates/node/build/server/chunks/Example26-cbv-WpjK.js,sha256=eyaoBa0s1WggGWTYqEy6xc3y1KYIbuV8udLsJQ6tzQM,498 +gradio/templates/node/build/server/chunks/Example28-BHmu3_6X.js,sha256=9t-MSz9ThbI9TBdYRFu37EqMLso9LdOwK7_B5-wYj90,395 +gradio/templates/node/build/server/chunks/Example29-M9b9Tc2m.js,sha256=vIk5UVAifoAm61ownPrDyr3bTOhsKooPhyDHMLvfg8o,618 +gradio/templates/node/build/server/chunks/Example30-C2X-hFhW.js,sha256=61ILBnV-hACJ4-rsA2LD4aPZE2JS9rgW43843C1onnQ,515 +gradio/templates/node/build/server/chunks/Example31-BBEc5KEN.js,sha256=GLdNCAfuBLXHQA1UjzDKzMUSJaBWzjnzKkpH26Ejcbc,762 +gradio/templates/node/build/server/chunks/Example32-CKfOgpPw.js,sha256=7sgr34Ak8TNwUYlwzfS6o7TYCz62bNEQ28i0wAIRi8A,624 +gradio/templates/node/build/server/chunks/Example33-YAga6UAS.js,sha256=-tx8_Gn_K-MEWz6neNbTiXroiz2EjvuoZA2tC234z9M,285 +gradio/templates/node/build/server/chunks/Example35-Us8bYa8W.js,sha256=xxprB7ZRtO9a8Kz2mx7ni-BS1EJ-dqmOAOXt0i04nwU,371 +gradio/templates/node/build/server/chunks/Example36-ByLxHvqS.js,sha256=Q-L2bHnQtT84l2oUQEQiHvYJdNwCeI0Zf0NbfuPHRUc,1096 +gradio/templates/node/build/server/chunks/Example37-DXc2sT9t.js,sha256=suoPaYG4U6XqxCo8l6XuJJJuZ5Na_EPb7hfIpzrj1PQ,340 +gradio/templates/node/build/server/chunks/Example38-BjzOvoS-.js,sha256=LCMFp1ESgWjFKWTRVusZt4k67Vmwo1OmupAYTHwf0_Y,346 +gradio/templates/node/build/server/chunks/Example39-BlSG_crI.js,sha256=gmkDlnSurQFvBGPEbyXy00SliEWn2jGDBl2goS7LaBw,399 +gradio/templates/node/build/server/chunks/Example4-DpIqYeak.js,sha256=bmR17PwEbJRcB-q1wSIU8V44X1fhqUjFXJNOTErsRRM,369 +gradio/templates/node/build/server/chunks/Example40-BmGXfN1I.js,sha256=kRJbpqX-ksY4gOwV6-NLiXIRtwIS7fkPGrMPQzEuUVE,378 +gradio/templates/node/build/server/chunks/Example41-bX24mNYK.js,sha256=B57uhi2Rd5Ob6GWlqSjBpohASUgBscm5MKl1uVI06ik,400 +gradio/templates/node/build/server/chunks/Example43-CIzkbkEP.js,sha256=qKj5frh8AoMes2mfdMGOLqjNk_IeyDV4cM4VHVQB5GQ,493 +gradio/templates/node/build/server/chunks/Example44-CH-o2UwO.js,sha256=bz_Nictc2dAjlw9j4HjW4mZdbC8njcR8k4mM9pckpD4,366 +gradio/templates/node/build/server/chunks/Example45-BW2IpVjz.js,sha256=-OwPRT94herlWIfx3aWo7zuI3bH1nMdu6GfXrj6ewfg,955 +gradio/templates/node/build/server/chunks/Example46-CgejNaGD.js,sha256=ezq9hwXED8HLWqAZuhx12Z31w0LVvD75yXvV6mjS2GY,310 +gradio/templates/node/build/server/chunks/Example5-mbhxaHbj.js,sha256=V2sufmgTo-JgAcv1viQVTu51SnAIMyXKy4jnVXf9Be0,414 +gradio/templates/node/build/server/chunks/Example6-BZNz0ZAS.js,sha256=N1gQeeXVqGp1lM29hA7TQIv4poX1kHRG0C14vRS4LiM,493 +gradio/templates/node/build/server/chunks/Example8-BV42BElH.js,sha256=3LfE9efaLDg8swTf9IVKV4H9k3QWm4fWrgf2EYIDHKc,460 +gradio/templates/node/build/server/chunks/Gallery-BRnbw3Hz.js,sha256=AHcaU-oIHsm7HrsTiKfG8I8UtGFvKNKuIyVZk1IrAIE,10158 +gradio/templates/node/build/server/chunks/Gallery2-n9lQaxqR.js,sha256=FKOWfWYwlFdYW47P2QHfkyitm3TgsuZruqeS5ocFCeQ,424 +gradio/templates/node/build/server/chunks/HTML-Ba2viJD3.js,sha256=jylrard65xhWmPMbSKJ4gRCY4X-ZyWw53IUmw179EAs,291206 +gradio/templates/node/build/server/chunks/HTML2-Clujxji8.js,sha256=HekehUtnCIvX0OfTrs_U39dWBbW2yDvxtneDnZlu-Bg,284 +gradio/templates/node/build/server/chunks/Image-BFJk-f6P.js,sha256=c9Mde665bWwG6RMbfK6vVp6H2ius8fYC2eC26BXApAI,590 +gradio/templates/node/build/server/chunks/ImagePreview-BZkRir9q.js,sha256=j9PaIeU___ZNfh_hOZvf0ioOOPbSU2AQbGZsyFSPjpE,1894 +gradio/templates/node/build/server/chunks/ImagePreview2-DPwsL_Wb.js,sha256=Cdy1mG2mAkSGE1z0DsFXTNN9Arhy9G7vU7m1D-M0TmA,375 +gradio/templates/node/build/server/chunks/Index-C_t0K8Ot.js,sha256=KFH5xT3i-NJU6tXqvNGVsZivdWhdiB1GN47iFYjtkQ4,788 +gradio/templates/node/build/server/chunks/Index10-DopDGZ3I.js,sha256=qPdzTcvAOFkvqaWl_g1aVdvLqmmzIbX2tVU6EOzXALI,3264 +gradio/templates/node/build/server/chunks/Index11-DkBSPIyI.js,sha256=T4Fk634FBYnRQJbdbseEDU55aSfand9eZ7OiJech9fs,522 +gradio/templates/node/build/server/chunks/Index12-lZ4y7G7K.js,sha256=O-UxyhvAhr8t9u57-BlMFqVH210B6_0Sh4LXLA37uiw,70217 +gradio/templates/node/build/server/chunks/Index13-BRWITG7g.js,sha256=_WbTa2iPXsG7qfyi7XQl91nc_srBPLM6k2KSD0OMvaA,35094 +gradio/templates/node/build/server/chunks/Index14-D9iEe_7n.js,sha256=Bw_jl1bB5c2brz-h220vsUw0D9EFPAnQ5piXjdDD1Yg,2139 +gradio/templates/node/build/server/chunks/Index15-CHJk3ct_.js,sha256=puUjOehwPbNimV1HOVzi612zvK2juUoGmxHJluIZ4aw,422 +gradio/templates/node/build/server/chunks/Index16-BrPvbPEN.js,sha256=wHvK75brfgi8oqesTdoXvEu8he9FSUQRSAefNMsJ5SA,2817 +gradio/templates/node/build/server/chunks/Index17-CuHcLsB5.js,sha256=acynBUo4Sv3o6RBaQC4wFD5scRp0cI71-09JzNpkR7I,377432 +gradio/templates/node/build/server/chunks/Index18-DfEInI3h.js,sha256=zoWbcDRS-gh6dFDOyylMItH9iVTAzTRVqDOendK8D7s,534 +gradio/templates/node/build/server/chunks/Index19-DyaB4QK4.js,sha256=UdS1GU59wkNi6tOUhM9eVK9B3FamC8ePfLaDdycDZhU,2186 +gradio/templates/node/build/server/chunks/Index2-D3VlTBcL.js,sha256=lTVzZk09YGGpwWLjesFt9LR0625wNFP6q_dsvq795wQ,288 +gradio/templates/node/build/server/chunks/Index20-B60rIffr.js,sha256=Wk4Xh2dAZGZzJVGCkb0ddUDr2FRCsJjCYIglAQ8qxzU,8543 +gradio/templates/node/build/server/chunks/Index21-Cgb9RfX0.js,sha256=iPwmeACTXIqRPSxJiDOY_rWaLncAOZk7O3JdHP6UDGg,536 +gradio/templates/node/build/server/chunks/Index22-II_oPmLe.js,sha256=Idsj92hVbw0maBTKQbTDXMmzr2NTK_w-0dmgFBal48M,105699 +gradio/templates/node/build/server/chunks/Index23-Bmx4jGe9.js,sha256=vDI1pMuwbJoLKSRjPC4YmBAsOP-RJSuB81HGz3lmn-o,5628 +gradio/templates/node/build/server/chunks/Index24-CpPs1vS-.js,sha256=7fb5JVLw61QGQgKlIyFd7oDoyXp_PGVKI6BJrBDvAsQ,3321 +gradio/templates/node/build/server/chunks/Index25-9GOXgOOT.js,sha256=h6HXmZxy6Q_g5kBzzh5mFEQa8Zf9e1_arNRc3r0Pvmw,7353 +gradio/templates/node/build/server/chunks/Index26-CANDxuEr.js,sha256=E_gTviy6_uR3TBRIa8llszWKyO0tx1EdZAltTgpLnaY,1727 +gradio/templates/node/build/server/chunks/Index27-D9mpZsuB.js,sha256=pzBMi6Mi1seF5ukJ-aWOe3tKiQ-2C_5DzUTqULaH5Qk,1222 +gradio/templates/node/build/server/chunks/Index28-P2BzQenW.js,sha256=oaZ3Plx0o4D4MnOgZtejZ5SC92cDXD6FzCRJVADOLrA,3383 +gradio/templates/node/build/server/chunks/Index29-BQYQwCpR.js,sha256=Q_FyIqip3s0b6OkksxjeqS_MNLGXaehAuunY7VucYO4,7684 +gradio/templates/node/build/server/chunks/Index3-CP6pEq_w.js,sha256=uim1TuUKKWWF4Rl4twdCRzMIfW_Fw3bF3o9-wAFNQro,6936 +gradio/templates/node/build/server/chunks/Index30-DHHjlg4i.js,sha256=KNLeCIyiO0cESJNrVuEsiP0TINzyuuqsPySgXjrfPAA,552 +gradio/templates/node/build/server/chunks/Index31-C-UKlG2f.js,sha256=L74vm80nchwEN94Sy8YrQmbbpCxNn7cZGxDlq4ADkQw,9610 +gradio/templates/node/build/server/chunks/Index32-CNqjvop7.js,sha256=r7AUb6kulM6feenSnpai-3iaq_rfOVemYlr7AKR93tQ,10617 +gradio/templates/node/build/server/chunks/Index33-DqHzdiIY.js,sha256=ahVAsFuTbCSQ6mqGW3B7pU8aIw_2aKoD0LVpBUUrjps,656 +gradio/templates/node/build/server/chunks/Index34-DBOFJVth.js,sha256=KLXShNrQHBlX6k11l2sxwa8ZO2beTfrHvn9Bkc2Z2co,6969 +gradio/templates/node/build/server/chunks/Index35-Dp9TC-oe.js,sha256=Y_xiNzP6gtN5dF3JKcNBq5D8yftrFXHPZwyon2eUW0E,1050 +gradio/templates/node/build/server/chunks/Index36-CrAuLsvq.js,sha256=65ZB4-TZOqPqj67_C_iqrEUekpEY7NPxv97zXh5mFcM,6067 +gradio/templates/node/build/server/chunks/Index37-B02piYVG.js,sha256=2_fat4Z5Ti6MQbgxM2OdBPjeTcr6qmKcdDHNTVR5h3U,3066 +gradio/templates/node/build/server/chunks/Index38-CMskepfD.js,sha256=DoFExOxnTg1Dq65lhoryiR8UiPOEdq75qWDFx-aOqSM,416879 +gradio/templates/node/build/server/chunks/Index39-D1cNNdVv.js,sha256=YNJbgVoEIjpSpuxASG9oxehX6WuFTIU4I_KfnMjggSI,29223 +gradio/templates/node/build/server/chunks/Index4-DNEEFm7j.js,sha256=PDsgU111UjCRXKa0ssSfKLjy9INE6OqdH-mvuZO_HtM,484 +gradio/templates/node/build/server/chunks/Index40-D9vK7L_4.js,sha256=oQji3eHTfeLViOj0vQeV0wb95yAAJrFrxyqQs_H4n-o,1758 +gradio/templates/node/build/server/chunks/Index41-DY47mH2C.js,sha256=dEgMnpL_SgEUr7-4tMXTV0FUaBMuBpcDB31Z7Z3RY48,3440 +gradio/templates/node/build/server/chunks/Index42-HeTRxHPQ.js,sha256=hpeayAdJd4xmvt0Q76MW-Q7ziHABT0PzmVE1sXLQcxs,2831 +gradio/templates/node/build/server/chunks/Index43-DI-bhjlT.js,sha256=7ddoDp6DQFx0n1Mo_5PC0AAWabfB12wIzQKRYeB-u5A,520 +gradio/templates/node/build/server/chunks/Index44-BXv9EhtL.js,sha256=kFgzvY4Xpl523pMMvwyNTAoivfLN47e_mE06RReSHAs,5889 +gradio/templates/node/build/server/chunks/Index45-CShNMOuj.js,sha256=Ne-IF17PQCDEIac3A17L59hMkWeS3wQi_1eVMKoqp5Q,10841 +gradio/templates/node/build/server/chunks/Index46-CQScma00.js,sha256=l7xCJ7h-JqRDJWtSblEN-5VZc50vCG3wbl3kNSSWzJg,2350 +gradio/templates/node/build/server/chunks/Index47-DnRr3r6s.js,sha256=SxcZ27o1OYMnc_TIALdNNEpZc77C7S6ymZ3JEeC1TEw,525 +gradio/templates/node/build/server/chunks/Index48-CJV-8oZp.js,sha256=N-qP_1ekqmmvh56nTCIFPpV4pqKCSHVdCYLKa-eNNfI,2168 +gradio/templates/node/build/server/chunks/Index49-YqpLIn6F.js,sha256=7VcLg-xzFm32A-1LhRSHuA7_O2cgM1V2nwiPdLD51pI,3071 +gradio/templates/node/build/server/chunks/Index5-DfYNKinm.js,sha256=2bhFZ2t0eaqK_XJUuD1qTKDP03sTvNlZ5R6ycHkBqdI,2377 +gradio/templates/node/build/server/chunks/Index50-CZwvOzwK.js,sha256=to7D9nt4FvWXf9vh1HJbmdJYh7d0fwcHy8qBk2Wd-QM,2090 +gradio/templates/node/build/server/chunks/Index51-DpEO6dRN.js,sha256=Bqmos7xH8fP2rTK42u13x1f4m8yKDjrG8Pu9NsLFDqU,2706 +gradio/templates/node/build/server/chunks/Index52-DdYAqGFG.js,sha256=E6fyN2ZI0GainI8AulM4d7zpML3xhnKQ00mqzFrYDH0,1538 +gradio/templates/node/build/server/chunks/Index53-DW9Ap3UT.js,sha256=yyiR0OwM4bLcIiBeo7acy8BDl-878f_Rmwx8EvAf404,2124 +gradio/templates/node/build/server/chunks/Index54-BbOcOk3U.js,sha256=9ZG5yTthmNS-tx7n5E58WA-N2pa6nevE6SzoJ_Csh34,2532 +gradio/templates/node/build/server/chunks/Index55-CvP-9qxq.js,sha256=hnXTIPBUaVPrmnmS3licImNrIfKCpT9fPU-BzEFzk6M,348 +gradio/templates/node/build/server/chunks/Index56-DqK0-g1B.js,sha256=QZDaIYKjoQ6N6YaHN0lEnM_kOGRU5c_x10QJeh4uTQY,7741 +gradio/templates/node/build/server/chunks/Index57-ZBUZjg8k.js,sha256=fyOl5lru6Mrpzq0rMgfXIp7hGJx-ntew1vMtNSffyY8,302 +gradio/templates/node/build/server/chunks/Index58-DntKxDGW.js,sha256=4bQeltfTCEFWHTUoDQ6EtqmJtm9UwU2MG_58PxPZSF0,1741 +gradio/templates/node/build/server/chunks/Index59-BCUEZn56.js,sha256=km7PNv0Z7sJMo3d_C87xSeJXri8FJYG87v6lrxlRbG0,401 +gradio/templates/node/build/server/chunks/Index6-D64oSdu4.js,sha256=qjkpTh-Rd8ErORqyqqR14uWx-qtDvLeqkTA51RKHxUw,321 +gradio/templates/node/build/server/chunks/Index60-B9QVWuWM.js,sha256=rYXRpYnzV-yCaR6NG5YWkGUFel_wway8qoY5_EWktuI,2432 +gradio/templates/node/build/server/chunks/Index61-DqeMltVe.js,sha256=1ff9MkywY4h8E78nWtATZMYEvSld1cypJHqpUEvIIcM,3047 +gradio/templates/node/build/server/chunks/Index62-ND9vK-Je.js,sha256=O4n2AboXElAo7Ng7JznTEvTAplHdpuVL7ifRfnvxG0w,102890 +gradio/templates/node/build/server/chunks/Index7-BPbAvpNC.js,sha256=xRmyQ6p-A-vdlE4n3qUOMK1EbY9J2ZS_9hnR6OJ05WM,1354 +gradio/templates/node/build/server/chunks/Index8-CEzK0oPj.js,sha256=9FiqxmSg999viUiVCGAMTx7sqU7pWN6oqiZfZ6p9l5g,418 +gradio/templates/node/build/server/chunks/Index9-CWmJ42w4.js,sha256=M248cA0NF6iWuB0tNHVQBsmKukKedqxktsB08BOiTNU,2102 +gradio/templates/node/build/server/chunks/JSON-CWr9Wv2h.js,sha256=JTdLbHuespS3IE075CGmvzfCIdI0r2M-1sHb5El31_g,4675 +gradio/templates/node/build/server/chunks/MinimalAudioPlayer-PdWV2Y7c.js,sha256=5r2yd5k3NHuTxaaaqZxxwR2PPOItpAKBE1OoC9fjNI4,1102 +gradio/templates/node/build/server/chunks/Model3D-2UhLHhi0.js,sha256=z698y9Z3oaAsz141Ad3KkVdr21PrluX4fWONUexAzJ8,1744 +gradio/templates/node/build/server/chunks/Model3D2-CYDdqz6S.js,sha256=QEeneJUqyI9-iyuEqwL2b7L0hHUjfsXM4B6cDvQLGbk,335 +gradio/templates/node/build/server/chunks/Plot-D7ytBGPW.js,sha256=IGl5C3p6tVFlDizs78Buc7_ppj4FLe_qMoh4F_fZE7Y,329 +gradio/templates/node/build/server/chunks/Plot2-Bh7GKLuF.js,sha256=U2vzDZgakvEMPA_Y5BhEOjNp6YBd6CkdefRgVjwrXVc,507 +gradio/templates/node/build/server/chunks/StaticAudio-WyVH1gr0.js,sha256=T16iuvpYcSoMdyhC_ofwY8dE3ephjb2dpg-fwwD7fzg,309978 +gradio/templates/node/build/server/chunks/StaticAudio2-DiCFSAI2.js,sha256=10TrosD1_8WqLSuU_sPv5pW7h7JlMaHIMVpjTCog16c,423 +gradio/templates/node/build/server/chunks/Video-ClEGvRgS.js,sha256=K-BDhuSZ3q5AXhSThubKFzeRJvMd2U7fTxuh95MOT7w,404238 +gradio/templates/node/build/server/chunks/VideoPreview-BvGi0VAp.js,sha256=yLg_yVeuiHNOzZbAyfW6rXax9FT8H7c9qaTEeq2G-5o,8966 +gradio/templates/node/build/server/chunks/VideoPreview2-CnAscpSd.js,sha256=itwt5rQUqb1_-7uAfqUWGe691kDR-Wmg1KF2v_PKFDA,441 +gradio/templates/node/build/server/chunks/VolumeLevels-dDp3cUe6.js,sha256=A6Ys0cFhbgDILT5Aosgm7Squr695os_MVpEADDoa5h4,341 +gradio/templates/node/build/server/chunks/WebGLRenderer2-DDtR6Af9.js,sha256=VzZa3xrFy9p75QmLtGi-hkV7X4m12zcVeAPy8wBgfOE,63791 +gradio/templates/node/build/server/chunks/WebGPURenderer2-D4WWVguL.js,sha256=zt2yQaxonKVLULRqhAZHvMGYjnZT5EkOGJbcJ3N0IwY,37232 +gradio/templates/node/build/server/chunks/_layout.svelte-wsN35Xyi.js,sha256=CnJJiJqWGYlNRaGkM0CRTqxCuHYMIs7PQPJObQCWogQ,170 +gradio/templates/node/build/server/chunks/_page.svelte-D0onObu0.js,sha256=d8oCm_cXTk_ew52BOQ1Nf4jPRsp5cbK-t20ebAEd_7s,41627 +gradio/templates/node/build/server/chunks/ar-lzUv_oXY.js,sha256=ngF0ELGnf3n6FvrtxhwRhutJyqBoNQs80newxiQ5d18,6272 +gradio/templates/node/build/server/chunks/async-Cv1-GZGV.js,sha256=hnEbFZETjhyhx38qHam5twdOQMYVSxVT5QHKCH9vPDg,329 +gradio/templates/node/build/server/chunks/audio-BiZFZm1M.js,sha256=F7srU8bMqMoA1U1uYPlMa_NAPyqT5ywqigbuSxRfTzo,12760 +gradio/templates/node/build/server/chunks/browserAll-DJMnZn3B.js,sha256=V-igABpEkBom9fyRT5UFqZk3yyKlshSBcdLeAJgz31E,43407 +gradio/templates/node/build/server/chunks/ca-BRJTA-dw.js,sha256=91TeDnhLj5fUHy3HLikB7ia7R7mP73u6-n5ArvLX_Jk,4842 +gradio/templates/node/build/server/chunks/chunk-B3kRsjbd.js,sha256=0jw2gJNgyYZHCLAraf3kaMMi6LSwoubh1t77RcWEqOg,916 +gradio/templates/node/build/server/chunks/ckb-DD3xg0YZ.js,sha256=-W8OFA63Fy5-vx6TQFrDhIXrmP33Eutyv7aVVyJgrHA,6706 +gradio/templates/node/build/server/chunks/core2-CQE-86hH.js,sha256=OZ4BZHdcxcMeMP_W8qZJCXI_thjMhMDcCs2oe5Bc50k,495 +gradio/templates/node/build/server/chunks/de-po_0yBio.js,sha256=fp_5AjFq78kqBsoSaHl7mfrYNX5k2XtaxoIOYU0F2cw,4931 +gradio/templates/node/build/server/chunks/en-BuU0LbDs.js,sha256=q23h0X9r6fUjJsU5f4x5Xfij1Rx4Tg04WpKTRu2ehas,584 +gradio/templates/node/build/server/chunks/environment-nLIoW9uA.js,sha256=csWaLcATCFKtBUJYH_x8RjZvSqXRXgzIYYy6Mc3Vx68,190 +gradio/templates/node/build/server/chunks/error.svelte-BacYMNT2.js,sha256=BEOUBejadVkkw2fWkslsT7WraCpp5vozDTGAcEbXMK8,427 +gradio/templates/node/build/server/chunks/es-B2wkB15W.js,sha256=9lkTTpc3bQVeDfpdYUv9kwd5hceXj2HUvwDKXBHHXZs,4936 +gradio/templates/node/build/server/chunks/et-DCYTVzwt.js,sha256=69Xnr3z0GBJmNxgRD37IXBSy5vMdJ6ltvIsfF55hBdc,5031 +gradio/templates/node/build/server/chunks/eu-CqrBzqzQ.js,sha256=w6NmlLKT2lHv7gzx9Nzp-g5WDbhjtc3zmOwgU4j3O9M,4706 +gradio/templates/node/build/server/chunks/fa-DMiCfGG9.js,sha256=jLbNCDC1mPbciJNwQM099ZnzUwxMuutuZUhsINrqMPA,6215 +gradio/templates/node/build/server/chunks/fi-C2SqCbtb.js,sha256=eymeim1dRD1XtrxRt17QT1MYBpp9ZmJd8KuUE2epX0s,4709 +gradio/templates/node/build/server/chunks/fr-P4t-_2WM.js,sha256=3ypJD0RczbLJGHJqB21NUbFqSAZup4dk0UcJ4Yu7p_g,5091 +gradio/templates/node/build/server/chunks/he-BNiI3GIo.js,sha256=evrG7ElOoZWpwtzA7K1_S1LBRFGNNT3HCJ_r_UweoOw,5185 +gradio/templates/node/build/server/chunks/hi-D6MGPCC4.js,sha256=GcNmb1pRELLiPSloYUL29pp_-McVaSW7mquwdAGy5Iw,8386 +gradio/templates/node/build/server/chunks/html-CfyvkLET.js,sha256=r2DhAewxwM-Hdd3WW-VVGgpPIDBB-lyZMEojbMAXMY4,212 +gradio/templates/node/build/server/chunks/id-D3kkgSLb.js,sha256=FkS46y8393uQvcDSRJ97ynxZmvHRtO3ShADUZX8MJBM,4625 +gradio/templates/node/build/server/chunks/index-DBqjc0Yf.js,sha256=U-6E2VVaod45d3EqgfXTEeGOpa0dlotrPG5P6bfhPNg,1697 +gradio/templates/node/build/server/chunks/index-DKsxGdoA.js,sha256=7vizzHxrC_IRw_WA7qXL_4UWwKqIA6yDR4MXYPy-rdA,7242 +gradio/templates/node/build/server/chunks/init-DHO5vgBQ.js,sha256=Q7_BdyH9TVwwetUuBTp24H9CxgubuctH5szZruJKjJI,391 +gradio/templates/node/build/server/chunks/internal-BOVhnc3H.js,sha256=CykStw_PKSvhUaq3Im5WZlRFRdALWMVbiKxq97YBFo4,61614 +gradio/templates/node/build/server/chunks/ja-CDp6u8TC.js,sha256=R0rxbSDNt9BzKaaxuOtqpq_6nVnlcsAcjx7iIhwU7S4,5699 +gradio/templates/node/build/server/chunks/ko-Cg-ybHWY.js,sha256=USwaTCPB5_-I1nS-FMx_XKCj5_NUxeXViXQiKL1xFSc,5096 +gradio/templates/node/build/server/chunks/lt-iyswSoSn.js,sha256=q2s2j3om-u2pXbE3rcIKhgk-XDaiKYY6dqLjBUjri_M,4922 +gradio/templates/node/build/server/chunks/markdown-code-CPYQEp1F.js,sha256=P9wuWr7Eb4lOCqJVq4k8HF8QS6eS8dQJSDJ0aheYFLM,70125 +gradio/templates/node/build/server/chunks/module-CJPn6O3E.js,sha256=dEUEAx6o4f7_zbe9DzOmPXXbRfB8X2dLZeHJFwRW5pE,1571 +gradio/templates/node/build/server/chunks/module2-C_EsBnj4.js,sha256=cEg3EKH9n2AFaxtceoXB1JSM-N6tInppyRwbFCjTSbM,9953 +gradio/templates/node/build/server/chunks/module3-vdWIv9Xq.js,sha256=hoMdeu-0FFP_U0EBhfjaBPN97FY7uOyP7SF4EgkV0hY,83204 +gradio/templates/node/build/server/chunks/nb-CzKkXHTp.js,sha256=JRDWcDmvN8Ge_xw-XK7Z5QHftGVVWJ2CEGZa30L-5v0,4516 +gradio/templates/node/build/server/chunks/nl-CmFwg1xq.js,sha256=qjOi96zlI92r9IGkBcpMI4r_wX9etoo7jdEEMR1eShg,4837 +gradio/templates/node/build/server/chunks/pl-CcwEAYQp.js,sha256=P1FOZGcRo3V2kREWsLb03Naro6mZRNKS3QeRwLI1M84,4875 +gradio/templates/node/build/server/chunks/prism-bash-CLqpBtIE.js,sha256=EKCrhCSmdQry1zd8l2eqDmNkeC2ka1-71mWVkKnXxkE,6246 +gradio/templates/node/build/server/chunks/prism-c-DM0go5tF.js,sha256=5IV611UUF8rE1Se_zWgXU_axjiSqxWkwyyNo2ns2tVo,1959 +gradio/templates/node/build/server/chunks/prism-cpp-BZGUGCt0.js,sha256=4x56FzTQ9pm8XtLcFHX4rLAUe3Q48XSuinLOCXhweSY,2665 +gradio/templates/node/build/server/chunks/prism-go-nH10_HaH.js,sha256=Akw2wtnLsnH15ndRNv6IrSXHud-USTXZzTB4Wesbhj4,1023 +gradio/templates/node/build/server/chunks/prism-java-B1Oe4PU3.js,sha256=zwsdN0pw0SOekmhxSUdp0uCBznUR-kal9LlaqGy4edo,2845 +gradio/templates/node/build/server/chunks/prism-json-DsDdpJhN.js,sha256=br1AoUs4B7yxnK6U0nu_XrRTia8V2LaET7kEjmYT69Y,508 +gradio/templates/node/build/server/chunks/prism-latex-BNPYmQxr.js,sha256=5tf5njIbGN5qf-Nif168vWZWzTPyHgdS9qHWiGYrwjo,1085 +gradio/templates/node/build/server/chunks/prism-markup-templating-GqhJJeJf.js,sha256=JuB5KrO8Mgi_nSQRuioTWAQmF87rRpO-4A0mL3veBMs,1135 +gradio/templates/node/build/server/chunks/prism-php-CgjdVsyW.js,sha256=bamAroYslfDVpQkXfVgBZg4HSTq6WeYITz1f7ush2-8,6487 +gradio/templates/node/build/server/chunks/prism-python-BtAryVyL.js,sha256=Oi6XKk02pzVXu45ZoiFIExNh9cSROluamTpzv2HYiSE,2184 +gradio/templates/node/build/server/chunks/prism-rust-W2GGgFos.js,sha256=kk3ZcgePSEvRgm3oHYbVzRiNp_Uk57drJiwWn4T6Goc,2556 +gradio/templates/node/build/server/chunks/prism-sql-DKyl6AOL.js,sha256=tXkCSRcfNU4p70az0bMw8Uky7VEx32T2H2ahma1OxBA,3321 +gradio/templates/node/build/server/chunks/prism-yaml-CXEhBEsR.js,sha256=HYOGeQibYtK4SudjZ1mJ5BCCeE_egttdAfBEA4sCmFw,2051 +gradio/templates/node/build/server/chunks/pt-BR-BiTgdZx1.js,sha256=YI-pmgdoPUPiUMNz_efQnE8d7Y6xNLTyzHYoeyFkjSM,5033 +gradio/templates/node/build/server/chunks/pt-BRG6qxj-.js,sha256=EVUP79bUO51yf0p3r0cFM1TzE7smWkoxqD4vJ_9iFCg,4995 +gradio/templates/node/build/server/chunks/renderer-Dic3PuWn.js,sha256=JBhBYQ3zXT6zvdC0I9VaxQa33MuXYXThE_Y1aHqOGz0,167135 +gradio/templates/node/build/server/chunks/ro-C1SCYq6l.js,sha256=MIC6avoNzvRw6qBQNZRszcG9xNCZW6fKw0bxwWEXlzM,5021 +gradio/templates/node/build/server/chunks/ru-DYXOBF1_.js,sha256=4EHg9_9YfMUTRFk50BJyOcDGDwNHswPGbVBXwY5K-so,7324 +gradio/templates/node/build/server/chunks/server-CR3r1l-0.js,sha256=FBW3XfgST2Y2koJHG2C69naJEmb6lEs-i0JIspdSMQ4,196166 +gradio/templates/node/build/server/chunks/sql-jTJai_kq.js,sha256=A9_hDXuR6QjfpNaDVW6MRO3yfZoos8Cqtc6_jrEfFzk,37125 +gradio/templates/node/build/server/chunks/src3-h7ZBftxa.js,sha256=YS1WdGtWDvJO8M3RbRgPX8ZDlKcACzGZArb0T-CBAY4,35995 +gradio/templates/node/build/server/chunks/src4-BlBbNhwG.js,sha256=a9njZ0-aNFlk5UY0wdd2hG0PzA1wStE_qv8L8bqY-a0,5322 +gradio/templates/node/build/server/chunks/state-CywLWwIH.js,sha256=Chaa16vBY-39-pqb4qYY9cTbNkfy7IZ2gJF4oyC7HAU,3401 +gradio/templates/node/build/server/chunks/statustracker-cy5aG8h8.js,sha256=3EextMrC2UCbkfBFY2nemYvVIBd5sN4UQztrhFvPuYo,18241 +gradio/templates/node/build/server/chunks/statustracker2-BtOpPJMw.js,sha256=xYLP8_KbVxfFiGnohbaCtNbr6vtmf3MQDqksy96vuXI,487 +gradio/templates/node/build/server/chunks/sv-TfExP9tZ.js,sha256=VV22ozWdEES8VVrDkmLrFeAepDiRj3NAf53_x8oqaMo,4617 +gradio/templates/node/build/server/chunks/ta-BxrvSRtq.js,sha256=EoeJQ08qCK7MLMHmXf17AqQlbKrzxnd11Vg9sEEsl34,9784 +gradio/templates/node/build/server/chunks/th-dlvPr8G_.js,sha256=12d1nuSLflpltGkd9NQd-u1g3sBIWedzEaL0SgEGsLQ,7998 +gradio/templates/node/build/server/chunks/tinycolor-D-nIUz6e.js,sha256=0v_aMrK1Bu_uaGJrhwJrNH_FOX5SD4bYBWelTRVu1_s,2928 +gradio/templates/node/build/server/chunks/tr-COceg9eL.js,sha256=BHdpin8ttmKb1l9Zj83pj7sQotVRHbyoqFRHCBinT6g,4941 +gradio/templates/node/build/server/chunks/uk-DpIjs8x1.js,sha256=fmNuUZhgG7rW3RWhvKZAuUs1iB94KdkQhLFtjaMDcJw,6919 +gradio/templates/node/build/server/chunks/ur-TMighcUO.js,sha256=svhzSzMQUQxnZU8ROQwHj_hkxlaCI1ctft4WSt-4xdM,6524 +gradio/templates/node/build/server/chunks/uz-CGtdGj7X.js,sha256=vSZmgh505nNpXlseGpaUeMSenYyBOkBQk6Zibt1Mb_s,4945 +gradio/templates/node/build/server/chunks/video2-BGaosY6j.js,sha256=FAYc8cMqzDHxOjMvrtbl5qEB_VdXSf6BMzaiM8dULoM,7643 +gradio/templates/node/build/server/chunks/webworkerAll-DKV0GSGG.js,sha256=HzvapSBZETQUvq55YPYN5E1GUJyb6ARiBq2xFs_bTCw,516 +gradio/templates/node/build/server/chunks/zh-CN-icE_T0Fk.js,sha256=1BR78_mPHomHDBPX8VpEd2q1qRa75btb8oPuWbsun6E,4422 +gradio/templates/node/build/server/chunks/zh-TW-CtkCvl07.js,sha256=GSBf0cYkAoE9MjuvPHk0KxQsT4lBoilHCqF8udhrnQQ,4400 +gradio/templates/node/build/server/index.js,sha256=4lrMv2Ik4MZ2JcjoiRbND5J8g1pkpTmt35SoopeTmn4,80975 +gradio/templates/node/build/server/manifest.js,sha256=dZMpjdWP6l-KBLFDmAl5d8iDBOdSRqqPtKya9JdnveE,1401 +gradio/templates/node/build/shims.js,sha256=a5PioTkIyBQKA-Ymh_cZEYZaoNlHzUaRTwvcnnt0mOs,726 +gradio/templates/register.mjs,sha256=KGuBPFzyHGapIVZqUYuOnuWrWO3YS9jhb66jwr-oChc,83 +gradio/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/test_data/__pycache__/__init__.cpython-311.pyc,, +gradio/test_data/__pycache__/blocks_configs.cpython-311.pyc,, +gradio/test_data/blocks_configs.py,sha256=5E2lpjGqHOgIbmUHptAmIWs4sUgeSDHnIVu3oG4-aXU,38712 +gradio/test_data/cheetah1-copy.jpg,sha256=NVUL-7qZblnCQq8A9qFKnA0FXfvFKtBpoaTowcOcoJU,20552 +gradio/test_data/cheetah2.jpg,sha256=aILnFKpD1gpCn3BKXd069LNwj4lwGzvMliYSE0mFN5U,72783 +gradio/test_data/flagged_no_log/a.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/test_data/flagged_no_log/b.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/test_data/flagged_no_log/c.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +gradio/test_data/flagged_with_log/log.csv,sha256=Spi96R_dEQk9_iapnIaQSnP4QMDLC-il8q-dro9U3I0,25 +gradio/test_data/rectangles.gif,sha256=-EvY6BHOiwIRxxIXjoFdyfnQibzytrWEEM8a4SzLwJA,1699 +gradio/test_data/test_audio.mp3,sha256=C3tKwGw8uXzCQgB_R54uCfK5xQAi0_FocrqvZRlduE8,11717 +gradio/test_data/test_audio.wav,sha256=LZmSH5nFApJR4jcqcKugsPCKbt1KLc5fbvwnwO7xixU,47148 +gradio/test_data/test_image.png,sha256=OWx7U1hp5EGP2dlldjXlE0xrpiaBkFnwsm6bj7yCp2E,1951 +gradio/themes/__init__.py,sha256=Ij4do3lRx_I8pm97IWQ1BcuRVS2sI5iDLHb7_pWGftE,1673 +gradio/themes/__pycache__/__init__.cpython-311.pyc,, +gradio/themes/__pycache__/app.cpython-311.pyc,, +gradio/themes/__pycache__/base.cpython-311.pyc,, +gradio/themes/__pycache__/builder_app.cpython-311.pyc,, +gradio/themes/__pycache__/citrus.cpython-311.pyc,, +gradio/themes/__pycache__/cyberpunk.cpython-311.pyc,, +gradio/themes/__pycache__/default.cpython-311.pyc,, +gradio/themes/__pycache__/ember.cpython-311.pyc,, +gradio/themes/__pycache__/glass.cpython-311.pyc,, +gradio/themes/__pycache__/mario.cpython-311.pyc,, +gradio/themes/__pycache__/monochrome.cpython-311.pyc,, +gradio/themes/__pycache__/neon.cpython-311.pyc,, +gradio/themes/__pycache__/ocean.cpython-311.pyc,, +gradio/themes/__pycache__/origin.cpython-311.pyc,, +gradio/themes/__pycache__/soft.cpython-311.pyc,, +gradio/themes/__pycache__/upload_theme.cpython-311.pyc,, +gradio/themes/app.py,sha256=yIOa_ohRWu7JBa8qKapv98nQ9Hwoehbd9WoWDIV9egM,5188 +gradio/themes/base.py,sha256=Vxjh2Yi6NP3OAh7B1_IC90LgzHgl1te9nidxgpEWYcc,101903 +gradio/themes/builder_app.py,sha256=EIIpBKz7YpuAvFpsMbQ1zGopuS4PJzg51fZ1xEd1CWY,41948 +gradio/themes/citrus.py,sha256=ZY_9ajnWxhpVtkCZ4fNFGCwozJIiusF_rziWOZtmJj4,6104 +gradio/themes/cyberpunk.py,sha256=enHUpnyZjMS2_y0DrtJHymezJPV9UzZPXO0Bj5AQvbc,8509 +gradio/themes/default.py,sha256=l3yrAyb6ylp7gcbVpgmNAgpVDRKUI0pSTAfWx1CuQ8g,3985 +gradio/themes/ember.py,sha256=L7IBWSyiPHDkXKaKY5lMy9BoDA34I5-hxnfQfa_6xdQ,6854 +gradio/themes/glass.py,sha256=bwXX00ftcbJQkhO-AHa1cy8jHq5Tv2sRurg50h24yBk,4790 +gradio/themes/mario.py,sha256=e0QHuND6u2D0xNryuHmw1CWFQzjjOOe2wL3R_TUMvdM,10530 +gradio/themes/monochrome.py,sha256=cagmBfwaTAEU6SBusQk_ai7CyMEnZNlgDVwws8LFTG8,4322 +gradio/themes/neon.py,sha256=3M9lvP32Jb2RjB6_yCSYfDyhJVeaFAqFFnt62Gqvi80,9502 +gradio/themes/ocean.py,sha256=GlFM2UXyUWTvV3_eaAI8KCiFEtqY5rKr22R_IZ3hR5g,3824 +gradio/themes/origin.py,sha256=2T_tdn-WOQincR8McXTE5sepdC8gODdbvZMabMDSxD0,6061 +gradio/themes/soft.py,sha256=NcwVZsOk1WuexSiT6kQdcIFTY3rSwS0hqJjdR96YNhU,4843 +gradio/themes/upload_theme.py,sha256=RvWBzlAqjzX9-bjCUE6DxRyJFzx6CsSjPLIy5S3hNyA,1594 +gradio/themes/utils/__init__.py,sha256=b20V66a-NpTzOSVFMcUTlbDlISL4ysZjOAJXEbyIx8k,179 +gradio/themes/utils/__pycache__/__init__.cpython-311.pyc,, +gradio/themes/utils/__pycache__/colors.cpython-311.pyc,, +gradio/themes/utils/__pycache__/fonts.cpython-311.pyc,, +gradio/themes/utils/__pycache__/readme_content.cpython-311.pyc,, +gradio/themes/utils/__pycache__/semver_match.cpython-311.pyc,, +gradio/themes/utils/__pycache__/sizes.cpython-311.pyc,, +gradio/themes/utils/__pycache__/theme_dropdown.cpython-311.pyc,, +gradio/themes/utils/colors.py,sha256=wADPDozHcSqw06FWvKoCEB1zeRTbB4SIyageeWzUcPs,6576 +gradio/themes/utils/fonts.py,sha256=6GrMusJWNcd_tYD2zdns3NsIlLCdkoKjX1c60txLiLI,4324 +gradio/themes/utils/readme_content.py,sha256=CZrKKzEkmm5tk9WwjmTqVvzCNEif_f8dA52Dk_s4UQs,344 +gradio/themes/utils/semver_match.py,sha256=v9LWYZL6G9YYcXnXJrtGp8kI_MTUlwV8SMR1ZbkelJM,1226 +gradio/themes/utils/sizes.py,sha256=9U1z9Hdoc_cE8_zonRsnQjhS03g6ar3RBngXjIoK-Y8,2109 +gradio/themes/utils/theme_dropdown.py,sha256=qtDcenXKzA6Rw3a09RkEkXnmjODeY-ACx6V9Ab5NLm4,1649 +gradio/tunneling.py,sha256=Yx7DIj7CMx8wbg7ZX7SZ7yfYgVskPrCWtl5Xbx6HqTM,7403 +gradio/utils.py,sha256=SR334JnY5OZ1ch8dokG5V7N-ViiRYaSshJRwmtu9mgc,68569 +gradio/validators.py,sha256=r6DUmm1maKRjlmHDsUwQg8GUC8Lv5654kJRqI3htPHc,2909 +gradio/workflow.py,sha256=Xs76oug1xR9rP-7bGX0Z7dgViBDNsqmYyz8iJfdQTWM,79401 +gradio/workflow_api.py,sha256=2iOvDWReOeUGxphkZWIn6ZVS3IgnEcMjcofvu3Iz5OU,36375 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/REQUESTED b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/WHEEL b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..51abe1f5e66cc9d07fda22a3bbe1f89475795969 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: hatchling 1.32.0 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/entry_points.txt b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..de8d177383c9fac8bb90bf4c0feac388afbb59bd --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/entry_points.txt @@ -0,0 +1,3 @@ +[console_scripts] +gradio = gradio.cli:cli +upload_theme = gradio.themes.upload_theme:main diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/licenses/LICENSE b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio-6.26.0.dist-info/licenses/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates.py new file mode 100644 index 0000000000000000000000000000000000000000..70f67897f45d4968e9994cc1efdfb8d76121750b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates.py @@ -0,0 +1,847 @@ +from __future__ import annotations + +from collections.abc import Callable, Iterable, Sequence +from pathlib import Path +from typing import TYPE_CHECKING, Any, Literal + +import numpy as np +import PIL.Image + +from gradio import components +from gradio.components.audio import WaveformOptions +from gradio.components.image_editor import Brush, Eraser, LayerOptions, WebcamOptions +from gradio.components.textbox import InputHTMLAttributes +from gradio.i18n import I18nData + +if TYPE_CHECKING: + from gradio.components import Timer + + +class TextArea(components.Textbox): + """ + Sets: lines=7 + """ + + is_template = True + + def __init__( + self, + value: str | Callable | None = None, + *, + lines: int = 7, + max_lines: int = 20, + placeholder: str | None = None, + label: str | I18nData | None = None, + info: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] | Literal["hidden"] = True, + elem_id: str | None = None, + autofocus: bool = False, + autoscroll: bool = True, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + type: Literal["text", "password", "email"] = "text", + text_align: Literal["left", "right"] | None = None, + rtl: bool = False, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + max_length: int | None = None, + submit_btn: str | bool | None = False, + stop_btn: str | bool | None = False, + html_attributes: InputHTMLAttributes | None = None, + ): + super().__init__( + value=value, + lines=lines, + max_lines=max_lines, + placeholder=placeholder, + label=label, + info=info, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + autofocus=autofocus, + autoscroll=autoscroll, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + type=type, + text_align=text_align, + rtl=rtl, + buttons=buttons, # type: ignore + max_length=max_length, + submit_btn=submit_btn, + stop_btn=stop_btn, + html_attributes=html_attributes, + ) + + +class Sketchpad(components.ImageEditor): + """ + Sets: sources=(), brush=Brush(colors=["#000000"], color_mode="fixed") + """ + + is_template = True + + def __init__( + self, + value: str | PIL.Image.Image | np.ndarray | None = None, + *, + height: int | str | None = None, + width: int | str | None = None, + image_mode: Literal[ + "1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F" + ] = "RGBA", + sources: Iterable[Literal["upload", "webcam", "clipboard"]] = (), + type: Literal["numpy", "pil", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + buttons: list[Literal["download", "share", "fullscreen"]] | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + placeholder: str | None = None, + webcam_options: WebcamOptions | None = None, + _selectable: bool = False, + transforms: Iterable[Literal["crop"]] = ("crop",), + eraser: Eraser | None = None, + brush: Brush | None = None, + format: str = "webp", + canvas_size: tuple[int, int] = (800, 800), + fixed_canvas: bool = False, + layers: LayerOptions | bool = True, + ): + if not brush: + brush = Brush(colors=["#000000"], color_mode="fixed") + super().__init__( + value=value, + height=height, + width=width, + image_mode=image_mode, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + buttons=buttons, # type: ignore + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + placeholder=placeholder, + webcam_options=webcam_options, + _selectable=_selectable, + transforms=transforms, + eraser=eraser, + brush=brush, + format=format, + layers=layers, + canvas_size=canvas_size, + fixed_canvas=fixed_canvas, + ) + + +class Paint(components.ImageEditor): + """ + Sets: sources=() + """ + + is_template = True + + def __init__( + self, + value: str | PIL.Image.Image | np.ndarray | None = None, + *, + height: int | str | None = None, + width: int | str | None = None, + image_mode: Literal[ + "1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F" + ] = "RGBA", + sources: Iterable[Literal["upload", "webcam", "clipboard"]] = (), + type: Literal["numpy", "pil", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + buttons: list[Literal["download", "share", "fullscreen"]] | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + webcam_options: WebcamOptions | None = None, + _selectable: bool = False, + transforms: Iterable[Literal["crop"]] = ("crop",), + eraser: Eraser | None = None, + brush: Brush | None = None, + format: str = "webp", + layers: LayerOptions | bool = True, + canvas_size: tuple[int, int] = (800, 800), + fixed_canvas: bool = False, + placeholder: str | None = None, + ): + super().__init__( + value=value, + height=height, + width=width, + image_mode=image_mode, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + buttons=buttons, # type: ignore + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + webcam_options=webcam_options, + _selectable=_selectable, + transforms=transforms, + eraser=eraser, + brush=brush, + format=format, + layers=layers, + canvas_size=canvas_size, + placeholder=placeholder, + fixed_canvas=fixed_canvas, + ) + + +class ImageMask(components.ImageEditor): + """ + Sets: brush=Brush(colors=["#000000"], color_mode="fixed") + """ + + is_template = True + + def __init__( + self, + value: str | PIL.Image.Image | np.ndarray | None = None, + *, + height: int | str | None = None, + width: int | str | None = None, + image_mode: Literal[ + "1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F" + ] = "RGBA", + sources: Iterable[Literal["upload", "webcam", "clipboard"]] = ( + "upload", + "webcam", + "clipboard", + ), + type: Literal["numpy", "pil", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + buttons: list[Literal["download", "share", "fullscreen"]] | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + placeholder: str | None = None, + _selectable: bool = False, + transforms: Iterable[Literal["crop"]] = ("crop",), + eraser: Eraser | None = None, + brush: Brush | None = None, + format: str = "webp", + layers: LayerOptions | bool = False, + canvas_size: tuple[int, int] = (800, 800), + fixed_canvas: bool = False, + webcam_options: WebcamOptions | None = None, + ): + if not brush: + brush = Brush(colors=["#000000"], color_mode="fixed") + super().__init__( + value=value, + height=height, + width=width, + image_mode=image_mode, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + buttons=buttons, # type: ignore + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + placeholder=placeholder, + webcam_options=webcam_options, + _selectable=_selectable, + transforms=transforms, + eraser=eraser, + brush=brush, + format=format, + layers=layers, + canvas_size=canvas_size, + fixed_canvas=fixed_canvas, + ) + + +class PlayableVideo(components.Video): + """ + Sets: format="mp4" + """ + + is_template = True + + def __init__( + self, + value: ( + str | Path | tuple[str | Path, str | Path | None] | Callable | None + ) = None, + *, + format: Literal["mp4"] = "mp4", + sources: ( + list[Literal["upload", "webcam"]] | Literal["upload", "webcam"] | None + ) = None, + height: int | str | None = None, + width: int | str | None = None, + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + webcam_options: WebcamOptions | None = None, + include_audio: bool | None = None, + autoplay: bool = False, + buttons: list[Literal["download", "share"]] | None = None, + loop: bool = False, + streaming: bool = False, + watermark: str | Path | None = None, + subtitles: str | Path | None = None, + playback_position: int = 0, + ): + sources = ["upload"] + super().__init__( + value=value, # type: ignore + format=format, + sources=sources, # type: ignore + height=height, + width=width, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + include_audio=include_audio, + autoplay=autoplay, + buttons=buttons, # type: ignore + loop=loop, + streaming=streaming, + watermark=watermark, # type: ignore + webcam_options=webcam_options, + subtitles=subtitles, + playback_position=playback_position, + ) + + +class Microphone(components.Audio): + """ + Sets: sources=["microphone"] + """ + + is_template = True + + def __init__( + self, + value: str | Path | tuple[int, np.ndarray] | Callable | None = None, + *, + sources: ( + list[Literal["upload", "microphone"]] + | Literal["upload", "microphone"] + | None + ) = None, + type: Literal["numpy", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + streaming: bool = False, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + format: Literal["wav", "mp3"] = "wav", + autoplay: bool = False, + buttons: list[Literal["download", "share"]] | None = None, + editable: bool = True, + waveform_options: WaveformOptions | dict | None = None, + loop: bool = False, + recording: bool = False, + subtitles: str | Path | None = None, + playback_position: int = 0, + ): + sources = ["microphone"] + super().__init__( + value, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + streaming=streaming, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + format=format, + autoplay=autoplay, + buttons=buttons, # type: ignore + editable=editable, + waveform_options=waveform_options, + loop=loop, + recording=recording, + subtitles=subtitles, + playback_position=playback_position, + ) + + +class Files(components.File): + """ + Sets: file_count="multiple" + """ + + is_template = True + + def __init__( + self, + value: str | list[str] | Callable | None = None, + *, + file_count: Literal["multiple"] = "multiple", + file_types: list[str] | None = None, + type: Literal["filepath", "binary"] = "filepath", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + height: int | float | None = None, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + allow_reordering: bool = False, + buttons: list[components.Button] | None = None, + ): + super().__init__( + value, + file_count=file_count, + file_types=file_types, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + height=height, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + buttons=buttons, # type: ignore + allow_reordering=allow_reordering, + ) + + +class Numpy(components.Dataframe): + """ + Sets: type="numpy" + """ + + is_template = True + + def __init__( + self, + value: list[list[Any]] | Callable | None = None, + *, + headers: list[str] | None = None, + row_count: int | tuple[int, str] = (1, "dynamic"), + row_limits: tuple[int | None, int | None] | None = None, + col_count: int | tuple[int, str] | None = None, + column_count: int | tuple[int, str] | None = None, + column_limits: tuple[int | None, int | None] | None = None, + datatype: ( + Literal["str", "number", "bool", "date", "markdown", "html"] + | Sequence[Literal["str", "number", "bool", "date", "markdown", "html"]] + ) = "str", + type: Literal["numpy"] = "numpy", + latex_delimiters: list[dict[str, str | bool]] | None = None, + label: str | I18nData | None = None, + show_label: bool | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + max_height: int = 500, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + wrap: bool = False, + line_breaks: bool = True, + column_widths: list[str | int] | None = None, + show_row_numbers: bool = False, + show_search: Literal["none", "search", "filter"] = "none", + static_columns: list[int] | None = None, + pinned_columns: int | None = None, + max_chars: int | None = None, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + ): + super().__init__( + value=value, + headers=headers, + row_count=row_count, # type: ignore + row_limits=row_limits, + col_count=col_count, # type: ignore + column_count=column_count, # type: ignore + column_limits=column_limits, + datatype=datatype, + type=type, + label=label, + show_label=show_label, + interactive=interactive, + visible=visible, + elem_id=elem_id, + wrap=wrap, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + line_breaks=line_breaks, + column_widths=column_widths, + every=every, + inputs=inputs, + max_height=max_height, + scale=scale, + latex_delimiters=latex_delimiters, + min_width=min_width, + show_row_numbers=show_row_numbers, + show_search=show_search, + pinned_columns=pinned_columns, + buttons=buttons, # type: ignore + static_columns=static_columns, + max_chars=max_chars, + ) + + +class Matrix(components.Dataframe): + """ + Sets: type="array" + """ + + is_template = True + + def __init__( + self, + value: list[list[Any]] | Callable | None = None, + *, + headers: list[str] | None = None, + row_count: int | tuple[int, str] = (1, "dynamic"), + row_limits: tuple[int | None, int | None] | None = None, + col_count: int | tuple[int, str] | None = None, + column_count: int | tuple[int, str] | None = None, + column_limits: tuple[int | None, int | None] | None = None, + datatype: ( + Literal["str", "number", "bool", "date", "markdown", "html"] + | Sequence[Literal["str", "number", "bool", "date", "markdown", "html"]] + ) = "str", + type: Literal["array"] = "array", + latex_delimiters: list[dict[str, str | bool]] | None = None, + label: str | I18nData | None = None, + show_label: bool | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + max_height: int = 500, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + wrap: bool = False, + line_breaks: bool = True, + column_widths: list[str | int] | None = None, + show_row_numbers: bool = False, + show_search: Literal["none", "search", "filter"] = "none", + pinned_columns: int | None = None, + max_chars: int | None = None, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + static_columns: list[int] | None = None, + ): + super().__init__( + value=value, + headers=headers, + row_count=row_count, # type: ignore + row_limits=row_limits, + col_count=col_count, # type: ignore + column_count=column_count, # type: ignore + column_limits=column_limits, + datatype=datatype, + type=type, + label=label, + show_label=show_label, + interactive=interactive, + visible=visible, + elem_id=elem_id, + wrap=wrap, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + line_breaks=line_breaks, + column_widths=column_widths, + every=every, + inputs=inputs, + max_height=max_height, + scale=scale, + latex_delimiters=latex_delimiters, + min_width=min_width, + show_row_numbers=show_row_numbers, + show_search=show_search, + pinned_columns=pinned_columns, + buttons=buttons, # type: ignore + static_columns=static_columns, + max_chars=max_chars, + ) + + +class List(components.Dataframe): + """ + Sets: type="array", col_count=1 + """ + + is_template = True + + def __init__( + self, + value: list[list[Any]] | Callable | None = None, + *, + headers: list[str] | None = None, + row_count: int | tuple[int, str] = (1, "dynamic"), + row_limits: tuple[int | None, int | None] | None = None, + col_count: Literal[1] = 1, + column_count: Literal[1] | None = None, + column_limits: tuple[int | None, int | None] | None = None, + datatype: ( + Literal["str", "number", "bool", "date", "markdown", "html"] + | Sequence[Literal["str", "number", "bool", "date", "markdown", "html"]] + ) = "str", + type: Literal["array"] = "array", + latex_delimiters: list[dict[str, str | bool]] | None = None, + label: str | I18nData | None = None, + show_label: bool | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + max_height: int = 500, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + wrap: bool = False, + line_breaks: bool = True, + column_widths: list[str | int] | None = None, + show_row_numbers: bool = False, + show_search: Literal["none", "search", "filter"] = "none", + pinned_columns: int | None = None, + max_chars: int | None = None, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + static_columns: list[int] | None = None, + ): + super().__init__( + value=value, + headers=headers, + row_count=row_count, # type: ignore + row_limits=row_limits, + col_count=col_count, # type: ignore + column_count=column_count, # type: ignore + column_limits=column_limits, + datatype=datatype, + type=type, + label=label, + show_label=show_label, + interactive=interactive, + visible=visible, + elem_id=elem_id, + wrap=wrap, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + line_breaks=line_breaks, + column_widths=column_widths, + every=every, + inputs=inputs, + max_height=max_height, + scale=scale, + latex_delimiters=latex_delimiters, + min_width=min_width, + show_row_numbers=show_row_numbers, + show_search=show_search, + static_columns=static_columns, + pinned_columns=pinned_columns, + buttons=buttons, # type: ignore + max_chars=max_chars, + ) + + +Mic = Microphone diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates.pyi b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates.pyi new file mode 100644 index 0000000000000000000000000000000000000000..015e9423926e9725f3ac34026b53bd0b1fefd7e0 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates.pyi @@ -0,0 +1,898 @@ +from __future__ import annotations + +from collections.abc import Callable, Iterable, Sequence +from pathlib import Path +from typing import TYPE_CHECKING, Any, Literal + +import numpy as np +import PIL.Image + +from gradio import components +from gradio.components.audio import WaveformOptions +from gradio.components.image_editor import Brush, Eraser, LayerOptions, WebcamOptions +from gradio.components.textbox import InputHTMLAttributes +from gradio.i18n import I18nData + +if TYPE_CHECKING: + from gradio.components import Timer + +from gradio.events import Dependency + +class TextArea(components.Textbox): + """ + Sets: lines=7 + """ + + is_template = True + + def __init__( + self, + value: str | Callable | None = None, + *, + lines: int = 7, + max_lines: int = 20, + placeholder: str | None = None, + label: str | I18nData | None = None, + info: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] | Literal["hidden"] = True, + elem_id: str | None = None, + autofocus: bool = False, + autoscroll: bool = True, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + type: Literal["text", "password", "email"] = "text", + text_align: Literal["left", "right"] | None = None, + rtl: bool = False, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + max_length: int | None = None, + submit_btn: str | bool | None = False, + stop_btn: str | bool | None = False, + html_attributes: InputHTMLAttributes | None = None, + ): + super().__init__( + value=value, + lines=lines, + max_lines=max_lines, + placeholder=placeholder, + label=label, + info=info, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + autofocus=autofocus, + autoscroll=autoscroll, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + type=type, + text_align=text_align, + rtl=rtl, + buttons=buttons, # type: ignore + max_length=max_length, + submit_btn=submit_btn, + stop_btn=stop_btn, + html_attributes=html_attributes, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class Sketchpad(components.ImageEditor): + """ + Sets: sources=(), brush=Brush(colors=["#000000"], color_mode="fixed") + """ + + is_template = True + + def __init__( + self, + value: str | PIL.Image.Image | np.ndarray | None = None, + *, + height: int | str | None = None, + width: int | str | None = None, + image_mode: Literal[ + "1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F" + ] = "RGBA", + sources: Iterable[Literal["upload", "webcam", "clipboard"]] = (), + type: Literal["numpy", "pil", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + buttons: list[Literal["download", "share", "fullscreen"]] | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + placeholder: str | None = None, + webcam_options: WebcamOptions | None = None, + _selectable: bool = False, + transforms: Iterable[Literal["crop"]] = ("crop",), + eraser: Eraser | None = None, + brush: Brush | None = None, + format: str = "webp", + canvas_size: tuple[int, int] = (800, 800), + fixed_canvas: bool = False, + layers: LayerOptions | bool = True, + ): + if not brush: + brush = Brush(colors=["#000000"], color_mode="fixed") + super().__init__( + value=value, + height=height, + width=width, + image_mode=image_mode, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + buttons=buttons, # type: ignore + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + placeholder=placeholder, + webcam_options=webcam_options, + _selectable=_selectable, + transforms=transforms, + eraser=eraser, + brush=brush, + format=format, + layers=layers, + canvas_size=canvas_size, + fixed_canvas=fixed_canvas, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class Paint(components.ImageEditor): + """ + Sets: sources=() + """ + + is_template = True + + def __init__( + self, + value: str | PIL.Image.Image | np.ndarray | None = None, + *, + height: int | str | None = None, + width: int | str | None = None, + image_mode: Literal[ + "1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F" + ] = "RGBA", + sources: Iterable[Literal["upload", "webcam", "clipboard"]] = (), + type: Literal["numpy", "pil", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + buttons: list[Literal["download", "share", "fullscreen"]] | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + webcam_options: WebcamOptions | None = None, + _selectable: bool = False, + transforms: Iterable[Literal["crop"]] = ("crop",), + eraser: Eraser | None = None, + brush: Brush | None = None, + format: str = "webp", + layers: LayerOptions | bool = True, + canvas_size: tuple[int, int] = (800, 800), + fixed_canvas: bool = False, + placeholder: str | None = None, + ): + super().__init__( + value=value, + height=height, + width=width, + image_mode=image_mode, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + buttons=buttons, # type: ignore + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + webcam_options=webcam_options, + _selectable=_selectable, + transforms=transforms, + eraser=eraser, + brush=brush, + format=format, + layers=layers, + canvas_size=canvas_size, + placeholder=placeholder, + fixed_canvas=fixed_canvas, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class ImageMask(components.ImageEditor): + """ + Sets: brush=Brush(colors=["#000000"], color_mode="fixed") + """ + + is_template = True + + def __init__( + self, + value: str | PIL.Image.Image | np.ndarray | None = None, + *, + height: int | str | None = None, + width: int | str | None = None, + image_mode: Literal[ + "1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F" + ] = "RGBA", + sources: Iterable[Literal["upload", "webcam", "clipboard"]] = ( + "upload", + "webcam", + "clipboard", + ), + type: Literal["numpy", "pil", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + buttons: list[Literal["download", "share", "fullscreen"]] | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + placeholder: str | None = None, + _selectable: bool = False, + transforms: Iterable[Literal["crop"]] = ("crop",), + eraser: Eraser | None = None, + brush: Brush | None = None, + format: str = "webp", + layers: LayerOptions | bool = False, + canvas_size: tuple[int, int] = (800, 800), + fixed_canvas: bool = False, + webcam_options: WebcamOptions | None = None, + ): + if not brush: + brush = Brush(colors=["#000000"], color_mode="fixed") + super().__init__( + value=value, + height=height, + width=width, + image_mode=image_mode, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + buttons=buttons, # type: ignore + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + placeholder=placeholder, + webcam_options=webcam_options, + _selectable=_selectable, + transforms=transforms, + eraser=eraser, + brush=brush, + format=format, + layers=layers, + canvas_size=canvas_size, + fixed_canvas=fixed_canvas, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class PlayableVideo(components.Video): + """ + Sets: format="mp4" + """ + + is_template = True + + def __init__( + self, + value: ( + str | Path | tuple[str | Path, str | Path | None] | Callable | None + ) = None, + *, + format: Literal["mp4"] = "mp4", + sources: ( + list[Literal["upload", "webcam"]] | Literal["upload", "webcam"] | None + ) = None, + height: int | str | None = None, + width: int | str | None = None, + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + webcam_options: WebcamOptions | None = None, + include_audio: bool | None = None, + autoplay: bool = False, + buttons: list[Literal["download", "share"]] | None = None, + loop: bool = False, + streaming: bool = False, + watermark: str | Path | None = None, + subtitles: str | Path | None = None, + playback_position: int = 0, + ): + sources = ["upload"] + super().__init__( + value=value, # type: ignore + format=format, + sources=sources, # type: ignore + height=height, + width=width, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + include_audio=include_audio, + autoplay=autoplay, + buttons=buttons, # type: ignore + loop=loop, + streaming=streaming, + watermark=watermark, # type: ignore + webcam_options=webcam_options, + subtitles=subtitles, + playback_position=playback_position, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class Microphone(components.Audio): + """ + Sets: sources=["microphone"] + """ + + is_template = True + + def __init__( + self, + value: str | Path | tuple[int, np.ndarray] | Callable | None = None, + *, + sources: ( + list[Literal["upload", "microphone"]] + | Literal["upload", "microphone"] + | None + ) = None, + type: Literal["numpy", "filepath"] = "numpy", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + streaming: bool = False, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + format: Literal["wav", "mp3"] = "wav", + autoplay: bool = False, + buttons: list[Literal["download", "share"]] | None = None, + editable: bool = True, + waveform_options: WaveformOptions | dict | None = None, + loop: bool = False, + recording: bool = False, + subtitles: str | Path | None = None, + playback_position: int = 0, + ): + sources = ["microphone"] + super().__init__( + value, + sources=sources, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + interactive=interactive, + visible=visible, + streaming=streaming, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + format=format, + autoplay=autoplay, + buttons=buttons, # type: ignore + editable=editable, + waveform_options=waveform_options, + loop=loop, + recording=recording, + subtitles=subtitles, + playback_position=playback_position, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class Files(components.File): + """ + Sets: file_count="multiple" + """ + + is_template = True + + def __init__( + self, + value: str | list[str] | Callable | None = None, + *, + file_count: Literal["multiple"] = "multiple", + file_types: list[str] | None = None, + type: Literal["filepath", "binary"] = "filepath", + label: str | I18nData | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + height: int | float | None = None, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + allow_reordering: bool = False, + buttons: list[components.Button] | None = None, + ): + super().__init__( + value, + file_count=file_count, + file_types=file_types, + type=type, + label=label, + every=every, + inputs=inputs, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + height=height, + interactive=interactive, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + buttons=buttons, # type: ignore + allow_reordering=allow_reordering, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class Numpy(components.Dataframe): + """ + Sets: type="numpy" + """ + + is_template = True + + def __init__( + self, + value: list[list[Any]] | Callable | None = None, + *, + headers: list[str] | None = None, + row_count: int | tuple[int, str] = (1, "dynamic"), + row_limits: tuple[int | None, int | None] | None = None, + col_count: int | tuple[int, str] | None = None, + column_count: int | tuple[int, str] | None = None, + column_limits: tuple[int | None, int | None] | None = None, + datatype: ( + Literal["str", "number", "bool", "date", "markdown", "html"] + | Sequence[Literal["str", "number", "bool", "date", "markdown", "html"]] + ) = "str", + type: Literal["numpy"] = "numpy", + latex_delimiters: list[dict[str, str | bool]] | None = None, + label: str | I18nData | None = None, + show_label: bool | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + max_height: int = 500, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + wrap: bool = False, + line_breaks: bool = True, + column_widths: list[str | int] | None = None, + show_row_numbers: bool = False, + show_search: Literal["none", "search", "filter"] = "none", + static_columns: list[int] | None = None, + pinned_columns: int | None = None, + max_chars: int | None = None, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + ): + super().__init__( + value=value, + headers=headers, + row_count=row_count, # type: ignore + row_limits=row_limits, + col_count=col_count, # type: ignore + column_count=column_count, # type: ignore + column_limits=column_limits, + datatype=datatype, + type=type, + label=label, + show_label=show_label, + interactive=interactive, + visible=visible, + elem_id=elem_id, + wrap=wrap, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + line_breaks=line_breaks, + column_widths=column_widths, + every=every, + inputs=inputs, + max_height=max_height, + scale=scale, + latex_delimiters=latex_delimiters, + min_width=min_width, + show_row_numbers=show_row_numbers, + show_search=show_search, + pinned_columns=pinned_columns, + buttons=buttons, # type: ignore + static_columns=static_columns, + max_chars=max_chars, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class Matrix(components.Dataframe): + """ + Sets: type="array" + """ + + is_template = True + + def __init__( + self, + value: list[list[Any]] | Callable | None = None, + *, + headers: list[str] | None = None, + row_count: int | tuple[int, str] = (1, "dynamic"), + row_limits: tuple[int | None, int | None] | None = None, + col_count: int | tuple[int, str] | None = None, + column_count: int | tuple[int, str] | None = None, + column_limits: tuple[int | None, int | None] | None = None, + datatype: ( + Literal["str", "number", "bool", "date", "markdown", "html"] + | Sequence[Literal["str", "number", "bool", "date", "markdown", "html"]] + ) = "str", + type: Literal["array"] = "array", + latex_delimiters: list[dict[str, str | bool]] | None = None, + label: str | I18nData | None = None, + show_label: bool | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + max_height: int = 500, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + wrap: bool = False, + line_breaks: bool = True, + column_widths: list[str | int] | None = None, + show_row_numbers: bool = False, + show_search: Literal["none", "search", "filter"] = "none", + pinned_columns: int | None = None, + max_chars: int | None = None, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + static_columns: list[int] | None = None, + ): + super().__init__( + value=value, + headers=headers, + row_count=row_count, # type: ignore + row_limits=row_limits, + col_count=col_count, # type: ignore + column_count=column_count, # type: ignore + column_limits=column_limits, + datatype=datatype, + type=type, + label=label, + show_label=show_label, + interactive=interactive, + visible=visible, + elem_id=elem_id, + wrap=wrap, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + line_breaks=line_breaks, + column_widths=column_widths, + every=every, + inputs=inputs, + max_height=max_height, + scale=scale, + latex_delimiters=latex_delimiters, + min_width=min_width, + show_row_numbers=show_row_numbers, + show_search=show_search, + pinned_columns=pinned_columns, + buttons=buttons, # type: ignore + static_columns=static_columns, + max_chars=max_chars, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +class List(components.Dataframe): + """ + Sets: type="array", col_count=1 + """ + + is_template = True + + def __init__( + self, + value: list[list[Any]] | Callable | None = None, + *, + headers: list[str] | None = None, + row_count: int | tuple[int, str] = (1, "dynamic"), + row_limits: tuple[int | None, int | None] | None = None, + col_count: Literal[1] = 1, + column_count: Literal[1] | None = None, + column_limits: tuple[int | None, int | None] | None = None, + datatype: ( + Literal["str", "number", "bool", "date", "markdown", "html"] + | Sequence[Literal["str", "number", "bool", "date", "markdown", "html"]] + ) = "str", + type: Literal["array"] = "array", + latex_delimiters: list[dict[str, str | bool]] | None = None, + label: str | I18nData | None = None, + show_label: bool | None = None, + every: Timer | float | None = None, + inputs: ( + components.Component + | Sequence[components.Component] + | set[components.Component] + | None + ) = None, + max_height: int = 500, + scale: int | None = None, + min_width: int = 160, + interactive: bool | None = None, + visible: bool | Literal["hidden"] = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | tuple[int | str, ...] | None = None, + preserved_by_key: list[str] | str | None = "value", + wrap: bool = False, + line_breaks: bool = True, + column_widths: list[str | int] | None = None, + show_row_numbers: bool = False, + show_search: Literal["none", "search", "filter"] = "none", + pinned_columns: int | None = None, + max_chars: int | None = None, + buttons: list[Literal["fullscreen", "copy"]] | None = None, + static_columns: list[int] | None = None, + ): + super().__init__( + value=value, + headers=headers, + row_count=row_count, # type: ignore + row_limits=row_limits, + col_count=col_count, # type: ignore + column_count=column_count, # type: ignore + column_limits=column_limits, + datatype=datatype, + type=type, + label=label, + show_label=show_label, + interactive=interactive, + visible=visible, + elem_id=elem_id, + wrap=wrap, + elem_classes=elem_classes, + render=render, + key=key, + preserved_by_key=preserved_by_key, + line_breaks=line_breaks, + column_widths=column_widths, + every=every, + inputs=inputs, + max_height=max_height, + scale=scale, + latex_delimiters=latex_delimiters, + min_width=min_width, + show_row_numbers=show_row_numbers, + show_search=show_search, + static_columns=static_columns, + pinned_columns=pinned_columns, + buttons=buttons, # type: ignore + max_chars=max_chars, + ) + from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING + from gradio.blocks import Block + if TYPE_CHECKING: + from gradio.components import Timer + from gradio.components.base import Component + + +Mic = Microphone \ No newline at end of file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/LICENSE b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..742cbada545ef218c598a58dabd7014e1701cb60 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/LICENSE @@ -0,0 +1,18 @@ +Copyright 2014–present Olivier Lalonde , James Talmage , Ruben Verborgh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/README.md b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fd35b9e16295f386ab3c8a84713fc79eea6d15a1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/README.md @@ -0,0 +1,157 @@ +## Follow Redirects + +Drop-in replacement for Node's `http` and `https` modules that automatically follows redirects. + +[![npm version](https://img.shields.io/npm/v/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects) +[![Build Status](https://github.com/follow-redirects/follow-redirects/workflows/CI/badge.svg)](https://github.com/follow-redirects/follow-redirects/actions) +[![Coverage Status](https://coveralls.io/repos/follow-redirects/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/follow-redirects/follow-redirects?branch=master) +[![npm downloads](https://img.shields.io/npm/dm/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects) +[![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor&message=%F0%9F%92%96&logo=GitHub)](https://github.com/sponsors/RubenVerborgh) + +`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback) + methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback) + modules, with the exception that they will seamlessly follow redirects. + +```javascript +const { http, https } = require('follow-redirects'); + +http.get('http://en.wikipedia.org/', response => { + response.on('data', chunk => { + console.log(chunk); + }); +}).on('error', err => { + console.error(err); +}); +``` + +You can inspect the final redirected URL through the `responseUrl` property on the `response`. +If no redirection happened, `responseUrl` is the original request URL. + +```javascript +const request = https.request({ + host: 'en.wikipedia.org', + path: '/', +}, response => { + console.log(response.responseUrl); + // 'http://duckduckgo.com/robots.txt' +}); +request.end(); +``` + +## Options +### Global options +Global options are set directly on the `follow-redirects` module: + +```javascript +const followRedirects = require('follow-redirects'); +followRedirects.maxRedirects = 10; +followRedirects.maxBodyLength = 20 * 1024 * 1024; // 20 MB +``` + +The following global options are supported: + +- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted. + +- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted. + +### Per-request options +Per-request options are set by passing an `options` object: + +```javascript +const url = require('url'); +const { http, https } = require('follow-redirects'); + +const options = url.parse('http://en.wikipedia.org/'); +options.maxRedirects = 10; +options.beforeRedirect = (options, response, request) => { + // Use this to adjust the request options upon redirecting, + // to inspect the latest response headers, + // or to cancel the request by throwing an error + + // response.headers = the redirect response headers + // response.statusCode = the redirect response code (eg. 301, 307, etc.) + + // request.url = the requested URL that resulted in a redirect + // request.headers = the headers in the request that resulted in a redirect + // request.method = the method of the request that resulted in a redirect + if (options.hostname === "example.org") { + options.auth = "user:password"; + } +}; +http.request(options); +``` + +In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback), +the following per-request options are supported: +- `followRedirects` (default: `true`) – whether redirects should be followed. + +- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted. + +- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted. + +- `beforeRedirect` (default: `undefined`) – optionally change the request `options` on redirects, or abort the request by throwing an error. + +- `agents` (default: `undefined`) – sets the `agent` option per protocol, since HTTP and HTTPS use different agents. Example value: `{ http: new http.Agent(), https: new https.Agent() }` + +- `trackRedirects` (default: `false`) – whether to store the redirected response details into the `redirects` array on the response object. + +- `sensitiveHeaders` (default: `[]`) – names of headers to omit when making redirected requests (such as `X-API-Key`, `X-Auth-Token`…) + + +### Advanced usage +By default, `follow-redirects` will use the Node.js default implementations +of [`http`](https://nodejs.org/api/http.html) +and [`https`](https://nodejs.org/api/https.html). +To enable features such as caching and/or intermediate request tracking, +you might instead want to wrap `follow-redirects` around custom protocol implementations: + +```javascript +const { http, https } = require('follow-redirects').wrap({ + http: require('your-custom-http'), + https: require('your-custom-https'), +}); +``` + +Such custom protocols only need an implementation of the `request` method. + +## Browser Usage + +Due to the way the browser works, +the `http` and `https` browser equivalents perform redirects by default. + +By requiring `follow-redirects` this way: +```javascript +const http = require('follow-redirects/http'); +const https = require('follow-redirects/https'); +``` +you can easily tell webpack and friends to replace +`follow-redirect` by the built-in versions: + +```json +{ + "follow-redirects/http" : "http", + "follow-redirects/https" : "https" +} +``` + +## Contributing + +Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues) + detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied + by tests. You can run the test suite locally with a simple `npm test` command. + +## Debug Logging + +`follow-redirects` uses the excellent [debug](https://www.npmjs.com/package/debug) for logging. To turn on logging + set the environment variable `DEBUG=follow-redirects` for debug output from just this module. When running the test + suite it is sometimes advantageous to set `DEBUG=*` to see output from the express server as well. + +## Authors + +- [Ruben Verborgh](https://ruben.verborgh.org/) +- [Olivier Lalonde](mailto:olalonde@gmail.com) +- [James Talmage](mailto:james@talmage.io) + +## License + +[MIT License](https://github.com/follow-redirects/follow-redirects/blob/master/LICENSE) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/package.json b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/package.json new file mode 100644 index 0000000000000000000000000000000000000000..1027c77095c649a0ab54f77fd61b5662e71195a5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/follow-redirects/package.json @@ -0,0 +1,58 @@ +{ + "name": "follow-redirects", + "version": "1.16.0", + "description": "HTTP and HTTPS modules that follow redirects.", + "license": "MIT", + "main": "index.js", + "files": [ + "*.js" + ], + "engines": { + "node": ">=4.0" + }, + "scripts": { + "lint": "eslint *.js test", + "test": "nyc mocha" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/follow-redirects/follow-redirects.git" + }, + "homepage": "https://github.com/follow-redirects/follow-redirects", + "bugs": { + "url": "https://github.com/follow-redirects/follow-redirects/issues" + }, + "keywords": [ + "http", + "https", + "url", + "redirect", + "client", + "location", + "utility" + ], + "author": "Ruben Verborgh (https://ruben.verborgh.org/)", + "contributors": [ + "Olivier Lalonde (http://www.syskall.com)", + "James Talmage " + ], + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "peerDependenciesMeta": { + "debug": { + "optional": true + } + }, + "devDependencies": { + "concat-stream": "^2.0.0", + "eslint": "^5.16.0", + "express": "^4.16.4", + "lolex": "^3.1.0", + "mocha": "^6.0.2", + "nyc": "^14.1.1" + } +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/.auto-changelog b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/.auto-changelog new file mode 100644 index 0000000000000000000000000000000000000000..38e245582906bb205b30ea751fffe3f999ed4679 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/.auto-changelog @@ -0,0 +1,6 @@ +{ + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": true, + "commitLimit": false +} \ No newline at end of file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/.gitattributes b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..1a6bd458748bdf50ff241ec18cc99027030fe02c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/.gitattributes @@ -0,0 +1 @@ +package-lock.json binary diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/CHANGELOG.md b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/CHANGELOG.md new file mode 100644 index 0000000000000000000000000000000000000000..6c80d84c4060ccffc24f9f16476689f8c7dfa8e2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/CHANGELOG.md @@ -0,0 +1,1872 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +## [v1.18.1](https://github.com/http-party/node-http-proxy/compare/1.18.0...v1.18.1) - 2020-05-17 + +### Merged + +- Skip sending the proxyReq event when the expect header is present [`#1447`](https://github.com/http-party/node-http-proxy/pull/1447) +- Remove node6 support, add node12 to build [`#1397`](https://github.com/http-party/node-http-proxy/pull/1397) + +## [1.18.0](https://github.com/http-party/node-http-proxy/compare/1.17.0...1.18.0) - 2019-09-18 + +### Merged + +- Added in auto-changelog module set to keepachangelog format [`#1373`](https://github.com/http-party/node-http-proxy/pull/1373) +- fix 'Modify Response' readme section to avoid unnecessary array copying [`#1300`](https://github.com/http-party/node-http-proxy/pull/1300) +- Fix incorrect target name for reverse proxy example [`#1135`](https://github.com/http-party/node-http-proxy/pull/1135) +- Fix modify response middleware example [`#1139`](https://github.com/http-party/node-http-proxy/pull/1139) +- [dist] Update dependency async to v3 [`#1359`](https://github.com/http-party/node-http-proxy/pull/1359) +- Fix path to local http-proxy in examples. [`#1072`](https://github.com/http-party/node-http-proxy/pull/1072) +- fix reverse-proxy example require path [`#1067`](https://github.com/http-party/node-http-proxy/pull/1067) +- Update README.md [`#970`](https://github.com/http-party/node-http-proxy/pull/970) +- [dist] Update dependency request to ~2.88.0 [SECURITY] [`#1357`](https://github.com/http-party/node-http-proxy/pull/1357) +- [dist] Update dependency eventemitter3 to v4 [`#1365`](https://github.com/http-party/node-http-proxy/pull/1365) +- [dist] Update dependency colors to v1 [`#1360`](https://github.com/http-party/node-http-proxy/pull/1360) +- [dist] Update all non-major dependencies [`#1356`](https://github.com/http-party/node-http-proxy/pull/1356) +- [dist] Update dependency agentkeepalive to v4 [`#1358`](https://github.com/http-party/node-http-proxy/pull/1358) +- [dist] Update dependency nyc to v14 [`#1367`](https://github.com/http-party/node-http-proxy/pull/1367) +- [dist] Update dependency concat-stream to v2 [`#1363`](https://github.com/http-party/node-http-proxy/pull/1363) +- x-forwarded-host overwrite for mutli level proxies [`#1267`](https://github.com/http-party/node-http-proxy/pull/1267) +- [refactor doc] Complete rename to http-party org. [`#1362`](https://github.com/http-party/node-http-proxy/pull/1362) +- Highlight correct lines for createProxyServer [`#1117`](https://github.com/http-party/node-http-proxy/pull/1117) +- Fix docs for rewrite options - 201 also handled [`#1147`](https://github.com/http-party/node-http-proxy/pull/1147) +- Update .nyc_output [`#1339`](https://github.com/http-party/node-http-proxy/pull/1339) +- Configure Renovate [`#1355`](https://github.com/http-party/node-http-proxy/pull/1355) +- [examples] Restream body before proxying, support for Content-Type of application/x-www-form-urlencoded [`#1264`](https://github.com/http-party/node-http-proxy/pull/1264) + +### Commits + +- [dist] New test fixtures. [`7e4a0e5`](https://github.com/http-party/node-http-proxy/commit/7e4a0e511bc30c059216860153301de2cdd1e97f) +- [dist] End of an era. [`a9b09cc`](https://github.com/http-party/node-http-proxy/commit/a9b09cce43f072db99fb5170030a05536177ccb7) +- [dist] Version bump. 1.18.0 [`9bbe486`](https://github.com/http-party/node-http-proxy/commit/9bbe486c5efcc356fb4d189ef38eee275bbde345) +- [fix] Latest versions. [`59c4403`](https://github.com/http-party/node-http-proxy/commit/59c4403e9dc15ab9b19ee2a3f4aecbfc6c3d94c4) +- [fix test] Update tests. [`dd1d08b`](https://github.com/http-party/node-http-proxy/commit/dd1d08b6319d1def729554446a5b0176978a8dad) +- [dist] Update dependency ws to v3 [SECURITY] [`b00911c`](https://github.com/http-party/node-http-proxy/commit/b00911c93740a00c5cfbacbb91565cb6912ed255) +- [dist] .gitattributes all the things. [`fc93520`](https://github.com/http-party/node-http-proxy/commit/fc93520d741ec80be8ae31ca005f3e9c199e330e) +- [dist] Regenerate package-lock.json. [`16d4f8a`](https://github.com/http-party/node-http-proxy/commit/16d4f8a95162b2e2e4ee6657c500f1208c044b2d) + +## [1.17.0](https://github.com/http-party/node-http-proxy/compare/1.16.2...1.17.0) - 2018-04-20 + +### Merged + +- Fix overwriting of global options [`#1074`](https://github.com/http-party/node-http-proxy/pull/1074) +- Update README.md [`#1131`](https://github.com/http-party/node-http-proxy/pull/1131) +- Update README.md with CoC link [`#1120`](https://github.com/http-party/node-http-proxy/pull/1120) +- Add Code Of Conduct [`#1119`](https://github.com/http-party/node-http-proxy/pull/1119) +- [deps] Update eventemitter3 to version 2.0.x [`#1109`](https://github.com/http-party/node-http-proxy/pull/1109) + +### Fixed + +- Fix "Can't set headers after they are sent" errors [`#930`](https://github.com/http-party/node-http-proxy/issues/930) +- Include websocket non-upgrade response [`#890`](https://github.com/http-party/node-http-proxy/issues/890) + +### Commits + +- Add followRedirects option [`c9a556c`](https://github.com/http-party/node-http-proxy/commit/c9a556cfa57c7ce0b877e16f2c2e1448d8cc278d) +- [test] add test for selfHandleRequest and remove modifyResponse as selfHandleRequest is the only way that functionality works [`4a37175`](https://github.com/http-party/node-http-proxy/commit/4a37175a5296d2ea2da0fc15a3f8fe08599bb592) +- Adding ability to set cookie path [`2c98416`](https://github.com/http-party/node-http-proxy/commit/2c98416ac2bf17bb5f515b9e10ee4485f5913846) +- Updating docs and adding more tests. [`f5c2381`](https://github.com/http-party/node-http-proxy/commit/f5c2381395e01bf8d6655cc70e14032c8f0aaa67) +- [dist] make tests work reliably, add package-lock.json [`09dcb98`](https://github.com/http-party/node-http-proxy/commit/09dcb984565dabb159a01a75a188b974f8c176ad) +- add support for modify response [`e5c02b8`](https://github.com/http-party/node-http-proxy/commit/e5c02b8a8a902e204eee886acafbbfe46c4a3aef) +- [wip] proper tests and reporting [`f4ff100`](https://github.com/http-party/node-http-proxy/commit/f4ff1006b9e71eb4185a3edf03333dbe514a84c9) +- Add detail about "buffer" option [`6f88caf`](https://github.com/http-party/node-http-proxy/commit/6f88caf6e46d84a809910c591e138250b333b39f) +- Add use case for proxy to HTTPS using a PKCS12 client certificate [`d2f9db8`](https://github.com/http-party/node-http-proxy/commit/d2f9db824136358a06dc3dd566644f3a016f24e2) +- [test] for override method feature [`81d58c5`](https://github.com/http-party/node-http-proxy/commit/81d58c531be3f61efb56d2489a66c73a7b2325fe) +- [dist] doc updates [`e94d529`](https://github.com/http-party/node-http-proxy/commit/e94d52973a26cf817a9de12d97e5ae603093f70d) +- feat: 添加response自处理参数 [`89f9ef8`](https://github.com/http-party/node-http-proxy/commit/89f9ef87e0532d54d086719c5ace1a968a42e51b) +- [dist][test] codecov config [`a4bccc3`](https://github.com/http-party/node-http-proxy/commit/a4bccc332d36d7db93db984674cd7e51b43a1b99) +- Removing unnecessary check since this is a private API [`bc6a237`](https://github.com/http-party/node-http-proxy/commit/bc6a23709c37c65b5b16cc802d05cb57f099b0ce) +- issue #953: stop using writeHead [`2c44039`](https://github.com/http-party/node-http-proxy/commit/2c44039a7c30b190043da654ee7e5aed0304e979) +- [fix] move badges [`543636d`](https://github.com/http-party/node-http-proxy/commit/543636d0f662308ec8c9afdbf641f4036f002bfd) +- fix small typos in README [`8231984`](https://github.com/http-party/node-http-proxy/commit/8231984fb02dca331b4ef77e089db50855eea4f5) +- Added timeout option to docs [`107c187`](https://github.com/http-party/node-http-proxy/commit/107c18720c3906f9049cc14d075b31910c0ccf55) +- [dist] document the feature [`d533a1b`](https://github.com/http-party/node-http-proxy/commit/d533a1be437b37fed5bd25f5e58298eea819f974) +- [fix] slightly more tolerant [`de1b808`](https://github.com/http-party/node-http-proxy/commit/de1b80851ab1b1251b5eaeaf0beab164024f09b6) +- Forgot 'i' flag when changing from regex shorthand to string. [`50f58b4`](https://github.com/http-party/node-http-proxy/commit/50f58b4cd9b4422a11512a6a065432159b5bc806) +- Update common.js [`c5d8466`](https://github.com/http-party/node-http-proxy/commit/c5d846648304f2e36a172b25d9fb8300d8131f8c) +- [fix] rm newline [`e6f24ba`](https://github.com/http-party/node-http-proxy/commit/e6f24ba6173c4fdd26089b3c729de5dbdd71ad74) +- [dist] update package-lock.json [`abf882e`](https://github.com/http-party/node-http-proxy/commit/abf882e03c92cf1665d5b7d4dbdaf87feb50a677) + +## [1.16.2](https://github.com/http-party/node-http-proxy/compare/1.16.1...1.16.2) - 2016-12-06 + +### Merged + +- [WIP] Revert default behavior of writeHeaders method [`#1104`](https://github.com/http-party/node-http-proxy/pull/1104) + +## [1.16.1](https://github.com/http-party/node-http-proxy/compare/1.16.0...1.16.1) - 2016-12-04 + +### Commits + +- Enable proxy response to have multiple Set-Cookie raw headers #1101 [`8cb451f`](https://github.com/http-party/node-http-proxy/commit/8cb451f20cff0a19fc9576fc2558307fb17a5710) +- [dist] Version bump. 1.16.1 [`ac1a01b`](https://github.com/http-party/node-http-proxy/commit/ac1a01b1f3caa3a2a9433341bf5e7a95072d6612) + +## [1.16.0](https://github.com/http-party/node-http-proxy/compare/1.15.2...1.16.0) - 2016-12-02 + +### Merged + +- Fix newly introduced error in error handler for ECONNREFUSED in forward proxy [`#1100`](https://github.com/http-party/node-http-proxy/pull/1100) +- Keep original letter case of response header keys [`#1098`](https://github.com/http-party/node-http-proxy/pull/1098) +- Handle errors for forward request, add test case [`#1099`](https://github.com/http-party/node-http-proxy/pull/1099) + +### Commits + +- add node 6 to travis [`2f7f037`](https://github.com/http-party/node-http-proxy/commit/2f7f03778cfb94396acf0d778061ea197212fbb5) + +## [1.15.2](https://github.com/http-party/node-http-proxy/compare/1.15.1...1.15.2) - 2016-10-22 + +### Merged + +- Add proxy-timeout option to documentation [`#1075`](https://github.com/http-party/node-http-proxy/pull/1075) + +### Commits + +- Do not rely on func.name (no scope) [`61c2889`](https://github.com/http-party/node-http-proxy/commit/61c28891093b256bbc0dae78e45e2c5f0acf2101) +- Do not rely on func.name (no scope) [`d48f67e`](https://github.com/http-party/node-http-proxy/commit/d48f67eb90d8af66211093e91efdd6638859e0bf) +- Expose full callback names [`220f5fb`](https://github.com/http-party/node-http-proxy/commit/220f5fb795d2977c5a68ae59d7db65089efed50c) +- test case added [`f5217d6`](https://github.com/http-party/node-http-proxy/commit/f5217d6c20c164ed412a3b20f660786b6f88b35b) +- [fix] style nits [`d0f1dfe`](https://github.com/http-party/node-http-proxy/commit/d0f1dfeb8277d46a057017cd888b50e85f6725d6) +- With a comment [`fbc2668`](https://github.com/http-party/node-http-proxy/commit/fbc266809c289fbdb59d7944345816a858303c96) +- Fix browserification [`8eddf45`](https://github.com/http-party/node-http-proxy/commit/8eddf45f2a043e4e1b3f6e33c304e68fe7e1c406) +- not setting connection header in case of http2 as it is deprecated [`2d01edc`](https://github.com/http-party/node-http-proxy/commit/2d01edc5a5ace591784022b85860a3bbc48c5e12) + +## [1.15.1](https://github.com/http-party/node-http-proxy/compare/1.15.0...1.15.1) - 2016-09-14 + +### Merged + +- Properly write response header optionally including statusMessage [`#1061`](https://github.com/http-party/node-http-proxy/pull/1061) + +### Commits + +- [dist] Version bump. 1.15.1 [`912cd3a`](https://github.com/http-party/node-http-proxy/commit/912cd3acaef484f7ea08affc9339250082e04058) + +## [1.15.0](https://github.com/http-party/node-http-proxy/compare/1.14.0...1.15.0) - 2016-09-14 + +### Merged + +- Made it not to crash with omited Host http header [`#1050`](https://github.com/http-party/node-http-proxy/pull/1050) +- README.md: fix typo: 'ingoing' should be 'incoming' [`#1060`](https://github.com/http-party/node-http-proxy/pull/1060) +- Fix for Reason-Phrase being overwritten on proxy response. [`#1051`](https://github.com/http-party/node-http-proxy/pull/1051) +- cookieDomainRewrite option [`#1009`](https://github.com/http-party/node-http-proxy/pull/1009) +- Update ntlm-authentication.js [`#1025`](https://github.com/http-party/node-http-proxy/pull/1025) +- Restream body before proxying [`#1027`](https://github.com/http-party/node-http-proxy/pull/1027) +- Location rewriting for responses with status 201 [`#1024`](https://github.com/http-party/node-http-proxy/pull/1024) +- #866 Copy CA from options into outbound proxy [`#1042`](https://github.com/http-party/node-http-proxy/pull/1042) + +### Fixed + +- Restream body before proxying (#1027) [`#955`](https://github.com/http-party/node-http-proxy/issues/955) + +### Commits + +- [dist] Version bump. 1.15.0 [`b98c75b`](https://github.com/http-party/node-http-proxy/commit/b98c75b1ff3ebdf7f78224eb0d9aa857af2db1d9) + +## [1.14.0](https://github.com/http-party/node-http-proxy/compare/1.13.3...1.14.0) - 2016-06-15 + +### Merged + +- Emit disconnected event instead of error when ECONNRESET [`#966`](https://github.com/http-party/node-http-proxy/pull/966) +- fix test for node 0.10 + socket.io-client@1.4.6 (engine.io-client@1.6.9) [`#1010`](https://github.com/http-party/node-http-proxy/pull/1010) + +### Commits + +- [dist] Version bump. 1.14.0 [`fcfb0b3`](https://github.com/http-party/node-http-proxy/commit/fcfb0b37f6ac61369565507446377f91d955cf29) + +## [1.13.3](https://github.com/http-party/node-http-proxy/compare/1.13.2...1.13.3) - 2016-05-16 + +### Merged + +- fix browserify compatibility [`#975`](https://github.com/http-party/node-http-proxy/pull/975) +- alter message error [`#998`](https://github.com/http-party/node-http-proxy/pull/998) +- Sanitize header keys before setting them [`#997`](https://github.com/http-party/node-http-proxy/pull/997) +- Update ntlm-authentication.js [`#989`](https://github.com/http-party/node-http-proxy/pull/989) +- Add expected datatype to readme [`#983`](https://github.com/http-party/node-http-proxy/pull/983) +- Update README [`#982`](https://github.com/http-party/node-http-proxy/pull/982) +- Fix formatting of the `headers` option [`#974`](https://github.com/http-party/node-http-proxy/pull/974) +- Set the x-forwarded-host flag when xfwd is enabled [`#967`](https://github.com/http-party/node-http-proxy/pull/967) + +### Fixed + +- Sanitize header keys before setting them (#997) [`#996`](https://github.com/http-party/node-http-proxy/issues/996) + +### Commits + +- [dist] Update LICENSE to reflect 2015 changes. [`f345a1a`](https://github.com/http-party/node-http-proxy/commit/f345a1ac2dde1884e72b952a685a0a1796059f14) +- [dist] Version bump. 1.13.3 [`5082acc`](https://github.com/http-party/node-http-proxy/commit/5082acc067bbf287f503bbd5b776f798ab169db1) + +## [1.13.2](https://github.com/http-party/node-http-proxy/compare/1.13.1...1.13.2) - 2016-02-17 + +### Merged + +- Fixed missing documentation: #options.headers [`#806`](https://github.com/http-party/node-http-proxy/pull/806) +- #949 Proxy example using req instead res on README [`#950`](https://github.com/http-party/node-http-proxy/pull/950) +- mocha: Use default reporter [`#962`](https://github.com/http-party/node-http-proxy/pull/962) +- Remove "transfer-encoding" header if "content-length" is set to zero [`#961`](https://github.com/http-party/node-http-proxy/pull/961) + +### Commits + +- [dist] Version bump. 1.13.2 [`e1b2f4c`](https://github.com/http-party/node-http-proxy/commit/e1b2f4c31b34464431db251b3b6169689dadf518) + +## [1.13.1](https://github.com/http-party/node-http-proxy/compare/1.13.0...1.13.1) - 2016-02-02 + +### Merged + +- README.md: summary to specify reverse proxy [`#932`](https://github.com/http-party/node-http-proxy/pull/932) +- fix(common) urlJoin replace: ":/" -> "http?s:/" [`#947`](https://github.com/http-party/node-http-proxy/pull/947) +- Update README.md [`#948`](https://github.com/http-party/node-http-proxy/pull/948) + +### Commits + +- [dist] Version bump. 1.13.1 [`9d9fa94`](https://github.com/http-party/node-http-proxy/commit/9d9fa940cff3aa6134c60732c23aea8171fc7296) + +## [1.13.0](https://github.com/http-party/node-http-proxy/compare/1.12.1...1.13.0) - 2016-01-26 + +### Merged + +- Fix for #839 (Ignore path and the trailing slash) [`#934`](https://github.com/http-party/node-http-proxy/pull/934) +- Update license year range to 2016 [`#943`](https://github.com/http-party/node-http-proxy/pull/943) + +### Commits + +- [dist] Version bump. 1.13.0 [`268994e`](https://github.com/http-party/node-http-proxy/commit/268994ea45d9f8737343001ab9542e03023a5c96) + +## [1.12.1](https://github.com/http-party/node-http-proxy/compare/1.12.0...1.12.1) - 2016-01-24 + +### Merged + +- Bump version for npm publish [`#942`](https://github.com/http-party/node-http-proxy/pull/942) +- Added check to passes/web-outgoing.js to make sure the header being s… [`#940`](https://github.com/http-party/node-http-proxy/pull/940) +- Created reverse-proxy.js example. [`#825`](https://github.com/http-party/node-http-proxy/pull/825) +- SSE example and test [`#922`](https://github.com/http-party/node-http-proxy/pull/922) +- More structured readme [`#912`](https://github.com/http-party/node-http-proxy/pull/912) +- Updated markdown docs to mention proxy rules module [`#910`](https://github.com/http-party/node-http-proxy/pull/910) +- Add tests for forwarding of continuation frames [`#901`](https://github.com/http-party/node-http-proxy/pull/901) +- Bump requires-port, server and ws [`#904`](https://github.com/http-party/node-http-proxy/pull/904) +- [example] add an example for NTLM authentication [`#903`](https://github.com/http-party/node-http-proxy/pull/903) + +### Commits + +- Organized README more [`cd1d777`](https://github.com/http-party/node-http-proxy/commit/cd1d7776e8fb5d67e2c52b9ef27d8c932e7b72e2) +- Add tests for testing forwarding of continuation frames [`64fa520`](https://github.com/http-party/node-http-proxy/commit/64fa52078913c6d4fe95673f182aac4924961e8b) +- Added back to top helpers [`6106d4c`](https://github.com/http-party/node-http-proxy/commit/6106d4c32f7c7960f0391591661e6f0d229db52d) +- [ci] use node 4.2 to test and do not allow failures [`f82ce18`](https://github.com/http-party/node-http-proxy/commit/f82ce18d2f187b085c2c4f49d857755d21c582b1) +- [fix] bump requires-port, server and ws [`9ea1e89`](https://github.com/http-party/node-http-proxy/commit/9ea1e89a2fd9c392cd40265bdb13494a3614e290) +- Updated markdown docs to mention proxy rules [`eea79ca`](https://github.com/http-party/node-http-proxy/commit/eea79cab53f27371cad387a524ee3aaefa742c48) +- Fixed tests depending on ignorePath [`f9540de`](https://github.com/http-party/node-http-proxy/commit/f9540de7b13f41091be2dcb68d8f23be65ad3885) +- Added check to passes/web-outgoing.js to make sure the header being set is not undefined, which should be the only falsey value that could accidently show up and break that call. This fixes windows NTLM auth issues behind http-proxy. [`3b39d2c`](https://github.com/http-party/node-http-proxy/commit/3b39d2c3dcb1785cc06043fcb226c652f554941e) +- No longer appends / to path if ignorePath is set [`f2093b5`](https://github.com/http-party/node-http-proxy/commit/f2093b5313c855cd6309cc0ddebb31f369e525ed) +- README.md: introduction to specify reverse proxy [`41414a5`](https://github.com/http-party/node-http-proxy/commit/41414a56a11ddfac3a337711ac4c64124eb62377) +- Added note for appending trailing / when using ignorePath [`0cb1d3c`](https://github.com/http-party/node-http-proxy/commit/0cb1d3c68e793fed9aa4a7624c32a018e796aa95) + +## [1.12.0](https://github.com/http-party/node-http-proxy/compare/1.11.3...1.12.0) - 2015-10-22 + +### Merged + +- Issue #896: provide a "proxyReq" event also for websocket connections. [`#897`](https://github.com/http-party/node-http-proxy/pull/897) + +### Commits + +- Provide a "proxyReq" event also for websocket connections. [`a05fc2d`](https://github.com/http-party/node-http-proxy/commit/a05fc2d1692d038f1eaad6d9b26c174039bc1949) +- fixes after PR review [`9752652`](https://github.com/http-party/node-http-proxy/commit/9752652e76da3bcfb6a635620e4162518ca43203) +- [dist] Version bump. 1.12.0 [`b5a6d0e`](https://github.com/http-party/node-http-proxy/commit/b5a6d0e58396363f4c457f6d1654614bdfcfcb73) + +## [1.11.3](https://github.com/http-party/node-http-proxy/compare/1.11.2...1.11.3) - 2015-10-19 + +### Merged + +- Removed unspecified trailing slash in proxy url [`#893`](https://github.com/http-party/node-http-proxy/pull/893) +- Updating the upgrading doc [`#892`](https://github.com/http-party/node-http-proxy/pull/892) + +### Commits + +- [dist] Update .travis.yml to be more modern. [`302d981`](https://github.com/http-party/node-http-proxy/commit/302d981dd2cf06dbf751b1f64e3dfea08d0f9476) +- [dist] Version bump. 1.11.3 [`60baca5`](https://github.com/http-party/node-http-proxy/commit/60baca5aed4f45ef1d7b3f7edd909375853d344b) +- docs: options.headers [`c86ae51`](https://github.com/http-party/node-http-proxy/commit/c86ae51bb9658309a9628f4f5182d4c45c803b84) + +## [1.11.2](https://github.com/http-party/node-http-proxy/compare/v1.11.1...1.11.2) - 2015-08-30 + +### Merged + +- Update gzip-middleware.js [`#870`](https://github.com/http-party/node-http-proxy/pull/870) +- Fix broken option list indentation [`#863`](https://github.com/http-party/node-http-proxy/pull/863) +- Added missing configuration options [`#852`](https://github.com/http-party/node-http-proxy/pull/852) +- Added installation instructions [`#823`](https://github.com/http-party/node-http-proxy/pull/823) +- fixes comment [`#817`](https://github.com/http-party/node-http-proxy/pull/817) + +### Commits + +- Created reverse-proxy.js example. [`38864d0`](https://github.com/http-party/node-http-proxy/commit/38864d016794b9ff3d8d1d1cb81a730b40a1bf9c) +- Added websocket set-cookie headers test [`855cebd`](https://github.com/http-party/node-http-proxy/commit/855cebdac4d33ef5f2fab4c4c78fdc07cdb61402) +- [fix] make more functional [`cea0e86`](https://github.com/http-party/node-http-proxy/commit/cea0e8676b3e609828320bb03051eaf78cc43b54) +- Modify the set-cookie header fix to work with node 0.10.x. [`da674ec`](https://github.com/http-party/node-http-proxy/commit/da674ec4df2b371f09e912f3b376c48581090a0f) +- Use raw headers instead parsed. [`8bfd90c`](https://github.com/http-party/node-http-proxy/commit/8bfd90c4d9331fd129f17a788ef9fc733654b7e0) +- Replaced Object.keys().map with for in loop. [`3d2350c`](https://github.com/http-party/node-http-proxy/commit/3d2350c54ff0fb9271f5fcfea1d23f22ad97c47c) +- [dist] Version bump. 1.11.2 [`30e3b37`](https://github.com/http-party/node-http-proxy/commit/30e3b371de0116e40e15156394f31c7e0b0aa9f1) +- Websocket key was unnecessary long. [`ca73208`](https://github.com/http-party/node-http-proxy/commit/ca732087498582df01ab78fb7da77912dab8f138) + +## [v1.11.1](https://github.com/http-party/node-http-proxy/compare/v1.11.0...v1.11.1) - 2015-04-22 + +### Commits + +- [dist] Version bump. 1.11.1 [`7e6c66a`](https://github.com/http-party/node-http-proxy/commit/7e6c66a7e485a6c0ec3a1c567bbe800fdc56c9fd) +- [fix] dont use bind in the one case we do [`d26ef56`](https://github.com/http-party/node-http-proxy/commit/d26ef56e1bc2a1232b06c01b4740e3bf35d63eda) +- [dist] update to new version of EE3 [`607f96c`](https://github.com/http-party/node-http-proxy/commit/607f96c00cbda2a6b881b8ff1db05437dbf4ce77) +- [fix] use the main export for EE3 [`18c77ca`](https://github.com/http-party/node-http-proxy/commit/18c77cafc7d5479502cf5c4d2b663d8f85cfd6d4) + +## [v1.11.0](https://github.com/http-party/node-http-proxy/compare/v1.10.1...v1.11.0) - 2015-04-20 + +### Merged + +- [api] add an ignorePath option if you want to disregard the path of the ... [`#759`](https://github.com/http-party/node-http-proxy/pull/759) + +### Commits + +- [dist] Version bump. 1.11.0 [`934e6c4`](https://github.com/http-party/node-http-proxy/commit/934e6c4d54292a1b961452074e02fb5d45da729a) + +## [v1.10.1](https://github.com/http-party/node-http-proxy/compare/v1.10.0...v1.10.1) - 2015-04-02 + +### Merged + +- Fix default port detection with node 0.12.x [`#799`](https://github.com/http-party/node-http-proxy/pull/799) + +### Commits + +- [dist] add semver and normalize package.json with --save-dev [`1b89bc9`](https://github.com/http-party/node-http-proxy/commit/1b89bc9a76c229070ff2572f7a0e1b969c4b4701) +- fix protocol and default port detection on node 0.12.x, compatible with 0.10.x [`5f14bca`](https://github.com/http-party/node-http-proxy/commit/5f14bcaa704fe8a5e6f59d3a89722f22958cade9) +- fix expected error message when node 0.12.x [`0ee314c`](https://github.com/http-party/node-http-proxy/commit/0ee314c436226391318b9a1b623cb3f7e8bf4df7) +- force cipher AES128-GCM-SHA256 in https tests [`c33d161`](https://github.com/http-party/node-http-proxy/commit/c33d1616cdbd60587ca2eb326c48b8a87ac56092) +- [fix] properly support iojs with test checking for HTTPS [`c6dfb04`](https://github.com/http-party/node-http-proxy/commit/c6dfb04a67f3b5ac9a402b7b08c1b8baf29f89e6) +- [dist] Version bump. 1.10.1 [`0bd446c`](https://github.com/http-party/node-http-proxy/commit/0bd446c680e9991accfaa3a6a70e411fdac79164) +- [ci] add 0.12 and iojs to travis [`a6ae6c4`](https://github.com/http-party/node-http-proxy/commit/a6ae6c499743ddade9db12b9f7404d980c79f683) + +## [v1.10.0](https://github.com/http-party/node-http-proxy/compare/v1.9.1...v1.10.0) - 2015-04-01 + +### Merged + +- Fixes / additions to URL rewriting [`#787`](https://github.com/http-party/node-http-proxy/pull/787) + +### Commits + +- [dist] Version bump. 1.10.0 [`1dabda2`](https://github.com/http-party/node-http-proxy/commit/1dabda241f3b93eb9195134042e7a3b84fd0ef57) + +## [v1.9.1](https://github.com/http-party/node-http-proxy/compare/v1.9.0...v1.9.1) - 2015-04-01 + +### Merged + +- Fix #747 [`#798`](https://github.com/http-party/node-http-proxy/pull/798) + +### Fixed + +- Merge pull request #798 from damonmcminn/master [`#747`](https://github.com/http-party/node-http-proxy/issues/747) +- Fix https://github.com/nodejitsu/node-http-proxy/issues/747 [`#747`](https://github.com/nodejitsu/node-http-proxy/issues/747) + +### Commits + +- Add test for https://github.com/nodejitsu/node-http-proxy/issues/747 [`d145152`](https://github.com/http-party/node-http-proxy/commit/d145152655a69479348b0ebc726d4dc19720a12b) +- [dist] Version bump. 1.9.1 [`21b30b7`](https://github.com/http-party/node-http-proxy/commit/21b30b754db4f6410c3d2052bc123b3fdae57c46) + +## [v1.9.0](https://github.com/http-party/node-http-proxy/compare/v1.8.1...v1.9.0) - 2015-03-12 + +### Merged + +- Adding the nodejs0.12 auth option [`#792`](https://github.com/http-party/node-http-proxy/pull/792) +- fix "x-forwarded-proto" in node 0.12 and iojs [`#789`](https://github.com/http-party/node-http-proxy/pull/789) +- Add support for auto host rewriting and protocol rewriting [`#1`](https://github.com/http-party/node-http-proxy/pull/1) +- changed highlighted part - very minor [`#756`](https://github.com/http-party/node-http-proxy/pull/756) +- Update README.md for benchmarks [`#625`](https://github.com/http-party/node-http-proxy/pull/625) + +### Fixed + +- fix "x-forwarded-proto" in node 0.12 and iojs [`#772`](https://github.com/http-party/node-http-proxy/issues/772) +- [api] add an ignorePath option if you want to disregard the path of the incoming request when proxying to the target server fixes #758 [`#758`](https://github.com/http-party/node-http-proxy/issues/758) + +### Commits + +- added auth header test [`df158bf`](https://github.com/http-party/node-http-proxy/commit/df158bfc53e35e62609d8169f3883f6dcf12b73c) +- added auth header test [`ff1626f`](https://github.com/http-party/node-http-proxy/commit/ff1626f0719652c92895cf80f9aacc22ededadad) +- refactor some tests for greater readability [`14415a5`](https://github.com/http-party/node-http-proxy/commit/14415a50741d1f258da884686455d87d68eb8121) +- only rewrite redirect urls when it matches target [`26029ba`](https://github.com/http-party/node-http-proxy/commit/26029ba7ac948b5dc0befb2091cc9a5862d0641c) +- auth header added [`ab5c3e5`](https://github.com/http-party/node-http-proxy/commit/ab5c3e5c819ca993e0616d178bc1d282af539508) +- [dist] Version bump. 1.9.0 [`87a92a7`](https://github.com/http-party/node-http-proxy/commit/87a92a72802a27f817fcba87382d55831fd04ddb) +- end of file line space [`e907d7b`](https://github.com/http-party/node-http-proxy/commit/e907d7bb2aa2825b43d9355cb1ee25bec47b15ad) +- space instead of tabs [`7298510`](https://github.com/http-party/node-http-proxy/commit/7298510e9170d74ff057487085bc1e898f044177) +- space instead of tabs [`63c9262`](https://github.com/http-party/node-http-proxy/commit/63c9262df5bd04d83432db44fce2a4d5b19a59ea) +- auth header added tests [`f55ffa3`](https://github.com/http-party/node-http-proxy/commit/f55ffa356a259c09685c6b768a404e4b73f674ce) + +## [v1.8.1](https://github.com/http-party/node-http-proxy/compare/v1.8.0...v1.8.1) - 2014-12-17 + +### Commits + +- Pass HTTPS client parameters. [`402ab05`](https://github.com/http-party/node-http-proxy/commit/402ab057340a29db7a521ff239c5e21ac0c12be8) +- [dist] Version bump. 1.8.1 [`3311106`](https://github.com/http-party/node-http-proxy/commit/3311106c2c2346f3ac1ffe402b80bca3c7c59275) + +## [v1.8.0](https://github.com/http-party/node-http-proxy/compare/v1.7.3...v1.8.0) - 2014-12-17 + +### Merged + +- Fix variables scope in test [`#752`](https://github.com/http-party/node-http-proxy/pull/752) +- Fix typo [`#751`](https://github.com/http-party/node-http-proxy/pull/751) + +### Commits + +- Added websocket close event test [`8bff3dd`](https://github.com/http-party/node-http-proxy/commit/8bff3ddc1276e3ba18fd68c34d8982148cd21455) +- Deprecated proxySocket event in favor to open event. [`c62610e`](https://github.com/http-party/node-http-proxy/commit/c62610e8e4d59e8ba4642370ff3fb933c6ddb4eb) +- Update README.md [`05d18a4`](https://github.com/http-party/node-http-proxy/commit/05d18a4e1ba6c2de41b0b803cd1793357979384d) +- [fix] style spacing wtf [`ea0a4de`](https://github.com/http-party/node-http-proxy/commit/ea0a4ded803b30144e442344ad5a38a0d34bb3ba) +- [api] add close event in ws-incoming.js [`2653786`](https://github.com/http-party/node-http-proxy/commit/26537866b3ca522927aa4604a958f90774c0c0c0) +- [minor] grammar [`f304861`](https://github.com/http-party/node-http-proxy/commit/f30486195cfa6cfcf6400ac445975d5adada72e4) +- Changed proxyServer and destiny to local variables. [`8a8a894`](https://github.com/http-party/node-http-proxy/commit/8a8a894092ddbec8f0365ced0e94a75b1307ecf1) +- [dist] Version bump. 1.8.0 [`f0db5b3`](https://github.com/http-party/node-http-proxy/commit/f0db5b3f708b0858f617d472dfdd0ba211b774ef) + +## [v1.7.3](https://github.com/http-party/node-http-proxy/compare/v1.7.2...v1.7.3) - 2014-12-09 + +### Fixed + +- [fix] use simple regex instead of indexOf to check the protocol to support without the colon fixes #711 [`#711`](https://github.com/http-party/node-http-proxy/issues/711) + +### Commits + +- [test] show that we support protocol without the colon [`89f9ca1`](https://github.com/http-party/node-http-proxy/commit/89f9ca1e89d679b2b85a8f85b65e8b0878694207) +- [dist] Version bump. 1.7.3 [`6a330ff`](https://github.com/http-party/node-http-proxy/commit/6a330ff904d02a41f9a1cac338a98da1849c54ca) + +## [v1.7.2](https://github.com/http-party/node-http-proxy/compare/v1.7.1...v1.7.2) - 2014-12-08 + +### Merged + +- Fix grammar in README.md [`#749`](https://github.com/http-party/node-http-proxy/pull/749) + +### Fixed + +- [fix] properly include port in host header with changeOrigin in all cases fixes #750 [`#750`](https://github.com/http-party/node-http-proxy/issues/750) + +### Commits + +- [test] add tests for the changeOrigin cases in properly setting the host header [`71a06aa`](https://github.com/http-party/node-http-proxy/commit/71a06aab0249487ff650c8a47906cc8281561664) +- [dist] pin down deps and add requires-port [`81874f7`](https://github.com/http-party/node-http-proxy/commit/81874f795b7df7929e03d9d4cb98a947b1ef114b) +- [dist] Version bump. 1.7.2 [`2086e49`](https://github.com/http-party/node-http-proxy/commit/2086e4917c97f347f84c54b166799bc8db9f4162) + +## [v1.7.1](https://github.com/http-party/node-http-proxy/compare/v1.7.0...v1.7.1) - 2014-12-02 + +### Merged + +- Adding harmon to the README [`#716`](https://github.com/http-party/node-http-proxy/pull/716) + +### Fixed + +- [fix] fix #738 [`#738`](https://github.com/http-party/node-http-proxy/issues/738) +- [fix] simple fixes #748 #744 #746 [`#748`](https://github.com/http-party/node-http-proxy/issues/748) + +### Commits + +- [test] add proper failing test case for #738 [`410a8ce`](https://github.com/http-party/node-http-proxy/commit/410a8ce94ccea566a8e50daf3b78e633b82875cb) +- [Bugfix] Allow for multiple ? in outgoing urls. [`70ed1c4`](https://github.com/http-party/node-http-proxy/commit/70ed1c4273bc64500e8bae9b60d7fd6a19135246) +- [dist] Version bump. 1.7.1 [`56a7b77`](https://github.com/http-party/node-http-proxy/commit/56a7b77645b13d337c1a2f879460193d310454c8) + +## [v1.7.0](https://github.com/http-party/node-http-proxy/compare/v1.6.2...v1.7.0) - 2014-11-25 + +### Merged + +- Allow optional redirect host rewriting. [`#741`](https://github.com/http-party/node-http-proxy/pull/741) +- Set `Content-Length` header for OPTIONS requests [`#742`](https://github.com/http-party/node-http-proxy/pull/742) +- copy headers instead of referencing them so they don't unexpectedly get overwritten [`#736`](https://github.com/http-party/node-http-proxy/pull/736) +- Updated to support error callback on proxy.web and start/proxyReq/end co... [`#735`](https://github.com/http-party/node-http-proxy/pull/735) + +### Commits + +- :pencil: Add host rewrite docs and specs. [`add8133`](https://github.com/http-party/node-http-proxy/commit/add81338a90dae132f9e74fd5a5905fbcef030b7) +- [minor] style consistency [`48ae5d8`](https://github.com/http-party/node-http-proxy/commit/48ae5d828c23d6f19c9e2dd8c922d88a09f5ed0f) +- Updated to support error callback on proxy.web and start/proxyReq/end continue working. [`9ba8311`](https://github.com/http-party/node-http-proxy/commit/9ba8311343fd01b32505b8607ecf4294200f9dde) +- style changes [`84036e9`](https://github.com/http-party/node-http-proxy/commit/84036e9ddd1d4d925006c5438b3bcc0f17ba7a48) +- [fix] be defensive and ensure location is in headers before running url.parse() [`8d68ac0`](https://github.com/http-party/node-http-proxy/commit/8d68ac0e0fa3080b31580aa08e92a46cc1f27696) +- [dist] Version bump. 1.7.0 [`276f65a`](https://github.com/http-party/node-http-proxy/commit/276f65a3b810ded01757ec4bfd4fe2b00a1e66a8) + +## [v1.6.2](https://github.com/http-party/node-http-proxy/compare/v1.6.1...v1.6.2) - 2014-11-11 + +### Merged + +- do not modify the query string [`#733`](https://github.com/http-party/node-http-proxy/pull/733) + +### Commits + +- [fix] style changes [`7c5e40a`](https://github.com/http-party/node-http-proxy/commit/7c5e40a429fbc0c538f38d29d74acb633cb9b8d4) +- [minor] this shouldnt be in var block [`3f19e6e`](https://github.com/http-party/node-http-proxy/commit/3f19e6e178e168a16beee74186691f3e0e54d517) +- [dist] Version bump. 1.6.2 [`709b3e9`](https://github.com/http-party/node-http-proxy/commit/709b3e96560d619fab2617f9ddb902b4982b4103) + +## [v1.6.1](https://github.com/http-party/node-http-proxy/compare/v1.6.0...v1.6.1) - 2014-11-04 + +### Merged + +- websocket needs to respect `options.secure` too [`#729`](https://github.com/http-party/node-http-proxy/pull/729) +- changeOrigin option docs fix [`#724`](https://github.com/http-party/node-http-proxy/pull/724) + +### Commits + +- [dist] Version bump. 1.6.1 [`fa797fc`](https://github.com/http-party/node-http-proxy/commit/fa797fca900c10ebc848a2b445204b47da799483) + +## [v1.6.0](https://github.com/http-party/node-http-proxy/compare/v1.5.3...v1.6.0) - 2014-10-29 + +### Merged + +- Added changeOrigin option with test and docs [`#723`](https://github.com/http-party/node-http-proxy/pull/723) +- I presume you mean couchdb here [`#717`](https://github.com/http-party/node-http-proxy/pull/717) +- update modify request body eg [`#712`](https://github.com/http-party/node-http-proxy/pull/712) + +### Commits + +- harmon notes [`9f684d0`](https://github.com/http-party/node-http-proxy/commit/9f684d0439174d889d7b9a4ef6e2353e09481b2d) +- [dist] Version bump. 1.6.0 [`43641b0`](https://github.com/http-party/node-http-proxy/commit/43641b00b34ccc05bdf09f904695061d7c857aeb) + +## [v1.5.3](https://github.com/http-party/node-http-proxy/compare/v1.5.2...v1.5.3) - 2014-10-01 + +### Merged + +- close socket if upstream request fails [`#709`](https://github.com/http-party/node-http-proxy/pull/709) + +### Commits + +- [dist] Version bump. 1.5.3 [`9577a0f`](https://github.com/http-party/node-http-proxy/commit/9577a0faf2b78af606168673407ac47a851c084c) + +## [v1.5.2](https://github.com/http-party/node-http-proxy/compare/v1.5.1...v1.5.2) - 2014-10-01 + +### Merged + +- close websocket if proxyReq is closed before upgrade [`#708`](https://github.com/http-party/node-http-proxy/pull/708) + +### Commits + +- test closing upstream socket prior to upgrade [`7730548`](https://github.com/http-party/node-http-proxy/commit/77305489d9b88d283802477e155340e5dacfcc2c) +- [dist] Version bump. 1.5.2 [`43c6f0c`](https://github.com/http-party/node-http-proxy/commit/43c6f0c7c06d25a670c410500a8623531df458b1) + +## [v1.5.1](https://github.com/http-party/node-http-proxy/compare/v1.5.0...v1.5.1) - 2014-09-30 + +### Commits + +- [fix] do a check to make sure the server exists before we try and emit [`10a294a`](https://github.com/http-party/node-http-proxy/commit/10a294af4d4baac30b98ea9bec683a974443b83d) +- [dist] Version bump. 1.5.1 [`f0bf741`](https://github.com/http-party/node-http-proxy/commit/f0bf7418156db2cb87a616b0a34bb1f028db9142) + +## [v1.5.0](https://github.com/http-party/node-http-proxy/compare/v1.4.3...v1.5.0) - 2014-09-30 + +### Merged + +- exposing proxySocket on socket to support sniffing messages coming from proxy target [`#706`](https://github.com/http-party/node-http-proxy/pull/706) +- Fixed misleading documentation [`#705`](https://github.com/http-party/node-http-proxy/pull/705) +- Fix typo in README.md [`#702`](https://github.com/http-party/node-http-proxy/pull/702) +- handle 'upgrade' in comma-separated connection header [`#691`](https://github.com/http-party/node-http-proxy/pull/691) + +### Commits + +- test new detection of connection: upgrade [`ec683b9`](https://github.com/http-party/node-http-proxy/commit/ec683b924b1ef8cbdd2cd2bfb7e141b502773163) +- emitting proxySocket on proxyServer [`000eb53`](https://github.com/http-party/node-http-proxy/commit/000eb533de144cad01cfd97edf9ab6c350593d3c) +- [fix] perf optimization so we have a precompiled regexp [`c0a796b`](https://github.com/http-party/node-http-proxy/commit/c0a796b3e31de4f22eef00d93164e7238d9aa3ba) +- use regex to check for upgrade header [`65a21bc`](https://github.com/http-party/node-http-proxy/commit/65a21bce6dbbc6142a851dc959e237c0ef2b1091) +- [dist] Version bump. 1.5.0 [`232258b`](https://github.com/http-party/node-http-proxy/commit/232258b6ec2229497fe557454a121d917968f5e8) +- [minor] extra space [`e7d50b1`](https://github.com/http-party/node-http-proxy/commit/e7d50b1a376035a50c82db38605e99feb30afd36) + +## [v1.4.3](https://github.com/http-party/node-http-proxy/compare/v1.4.2...v1.4.3) - 2014-09-12 + +### Merged + +- Urgent: Fix breaking bug on url joining resulting in paths like `///path`. [`#699`](https://github.com/http-party/node-http-proxy/pull/699) + +### Commits + +- [minor] Added missing JSDoc comments [`73e8a4c`](https://github.com/http-party/node-http-proxy/commit/73e8a4cdd576868bf61d0848cc51f083a75454f9) +- Fix breaking bug on url joining resulting in paths like `///path`. [`73d865b`](https://github.com/http-party/node-http-proxy/commit/73d865bc9f8940f61c1ad4812f220920ead553b5) +- [minor] Code style adjustment. [`3ab6e95`](https://github.com/http-party/node-http-proxy/commit/3ab6e9591e66c203647605b4f275d374472c9d5f) +- Bump version v1.4.3 [`554f59c`](https://github.com/http-party/node-http-proxy/commit/554f59c5182d58b359df0159a29ff5ea35dd3830) +- [ignore] Ignore npm-debug.log [`a934cb6`](https://github.com/http-party/node-http-proxy/commit/a934cb6a46298c380e9bc794f18873576cf73c4c) + +## [v1.4.2](https://github.com/http-party/node-http-proxy/compare/v1.4.1...v1.4.2) - 2014-09-12 + +### Commits + +- [fix] ensure path works on windows because path.join doesnt like URLs [`ed73f06`](https://github.com/http-party/node-http-proxy/commit/ed73f06ed307ad2204e565781cc3154047941a8c) +- [dist] Version bump. 1.4.2 [`df12aeb`](https://github.com/http-party/node-http-proxy/commit/df12aeb12de79de1157898d45f4347fd0037dd70) + +## [v1.4.1](https://github.com/http-party/node-http-proxy/compare/v1.3.1...v1.4.1) - 2014-09-11 + +### Merged + +- Trimming contents of distributed npm package. [`#644`](https://github.com/http-party/node-http-proxy/pull/644) +- Remove changelog - it was not maintained [`#669`](https://github.com/http-party/node-http-proxy/pull/669) +- Removed duplicated imported dependencies [`#695`](https://github.com/http-party/node-http-proxy/pull/695) + +### Commits + +- [test] add test for prependPath option [`e44fabe`](https://github.com/http-party/node-http-proxy/commit/e44fabe58a233b367d42f26f15113e2022f71d7b) +- [api] add prependPath option to go with path change [`9a534c6`](https://github.com/http-party/node-http-proxy/commit/9a534c6ff63d776140918bc839801d247affd18d) +- [dist] Version bump. 1.4.1 [`d5c656b`](https://github.com/http-party/node-http-proxy/commit/d5c656bceb50dc9008ef223bc58b918adcf05352) +- [dist] Version bump. 1.4.0 [`dceef40`](https://github.com/http-party/node-http-proxy/commit/dceef407a1130033679e7e836c6753b76187ce5f) + +## [v1.3.1](https://github.com/http-party/node-http-proxy/compare/v1.3.0...v1.3.1) - 2014-09-09 + +### Merged + +- Allow proxy to maintain the original target path [`#693`](https://github.com/http-party/node-http-proxy/pull/693) +- Clarify usable parameters for 'proxyRes' event [`#686`](https://github.com/http-party/node-http-proxy/pull/686) + +### Commits + +- fix tests for maintaining proxy path [`a65021d`](https://github.com/http-party/node-http-proxy/commit/a65021d52b0ee039486819b5a95f442229458776) +- Fix proxy path [`511b7b3`](https://github.com/http-party/node-http-proxy/commit/511b7b3d4743636de9d9fbe8ff409730d221d273) +- Clarify usable parameters for proxyRes event. [`49a0de1`](https://github.com/http-party/node-http-proxy/commit/49a0de1e7cdcec9b555695605ab914038f99d66b) +- [dist] Version bump. 1.3.1 [`fc73828`](https://github.com/http-party/node-http-proxy/commit/fc73828035baf3cea3664560f8964f2a2a200d0a) +- [ci] remove 0.11.x to avoid failing builds caused by TLS errors [`6b83ae4`](https://github.com/http-party/node-http-proxy/commit/6b83ae47bbf2d5eab8ac94b4d6130e09a21ac85b) + +## [v1.3.0](https://github.com/http-party/node-http-proxy/compare/v1.2.1...v1.3.0) - 2014-08-14 + +### Merged + +- Added functionality to close proxy. [`#679`](https://github.com/http-party/node-http-proxy/pull/679) + +### Commits + +- [fix] cleanup and stylize close function [`261742a`](https://github.com/http-party/node-http-proxy/commit/261742a4295268ef93f45aa0f1e3a04208a2aed3) +- updated close function for safety [`8be9d94`](https://github.com/http-party/node-http-proxy/commit/8be9d945d03169056bbf84d702292b5763b015dc) +- [dist] Version bump. 1.3.0 [`05f0b89`](https://github.com/http-party/node-http-proxy/commit/05f0b891a610fb7779f90916fcd9ed750df818b2) + +## [v1.2.1](https://github.com/http-party/node-http-proxy/compare/v1.2.0...v1.2.1) - 2014-08-14 + +### Commits + +- Added close method to proxy server. [`a3d0219`](https://github.com/http-party/node-http-proxy/commit/a3d02196c5e62cd58bc0ebe8a66afcdb905d96b3) +- [fix] emit an error if proper URL is not passed in as a target [`37036dd`](https://github.com/http-party/node-http-proxy/commit/37036dd32565f72ad5777e47509293db18b60ed3) +- [dist] Version bump. 1.2.1 [`0a6b424`](https://github.com/http-party/node-http-proxy/commit/0a6b424e2c3b6cef68362a71f0e56740b2605af7) + +## [v1.2.0](https://github.com/http-party/node-http-proxy/compare/v1.1.6...v1.2.0) - 2014-08-05 + +### Merged + +- [api] Add event-based ability to modify pre-flight proxy requests. [`#673`](https://github.com/http-party/node-http-proxy/pull/673) + +### Commits + +- [dist] Version bump. 1.2.0 [`63c53a1`](https://github.com/http-party/node-http-proxy/commit/63c53a177217283ec14e4f7c2e891db48842ab4b) + +## [v1.1.6](https://github.com/http-party/node-http-proxy/compare/v1.1.5...v1.1.6) - 2014-07-17 + +### Fixed + +- do proper checking for a pass not existing. fixes #671 [`#671`](https://github.com/http-party/node-http-proxy/issues/671) + +### Commits + +- Remove changelog - it was not maintained [`e336b52`](https://github.com/http-party/node-http-proxy/commit/e336b52629276e647abeee300d7091db44e5b885) +- [dist] Version bump. 1.1.6 [`ed9e12b`](https://github.com/http-party/node-http-proxy/commit/ed9e12b0edb0fc206610e94bd696425619868474) + +## [v1.1.5](https://github.com/http-party/node-http-proxy/compare/v1.1.4...v1.1.5) - 2014-07-10 + +### Merged + +- Fix simple-balancer example [`#666`](https://github.com/http-party/node-http-proxy/pull/666) +- Added proxyTimeout option and two tests for timeout [`#658`](https://github.com/http-party/node-http-proxy/pull/658) + +### Fixed + +- Fix #657 [`#657`](https://github.com/http-party/node-http-proxy/issues/657) +- Fix #657 [`#657`](https://github.com/http-party/node-http-proxy/issues/657) + +### Commits + +- Added targetTimeout option and two tests for timeout [`0f24351`](https://github.com/http-party/node-http-proxy/commit/0f243516e1c6737b95fba220a5028439264b5de6) +- Change name targetTimeout to proxyTimeout [`7b79a74`](https://github.com/http-party/node-http-proxy/commit/7b79a7409ade7a8c79b2ae5761abc4843529063a) +- Trimming contents of distributed npm package. [`431aba7`](https://github.com/http-party/node-http-proxy/commit/431aba79d8d521e228c1403aaf4fd4a26fba03c3) +- [api] also emit the target on a proxy error [`d1baa36`](https://github.com/http-party/node-http-proxy/commit/d1baa3684e449610a2aae270816a7b8a907e588e) +- [dist] Version bump. 1.1.5 [`7104a7c`](https://github.com/http-party/node-http-proxy/commit/7104a7c023073a49091969f825738c79ae036123) +- fix balancer example [`9df4bc1`](https://github.com/http-party/node-http-proxy/commit/9df4bc1e1216a8e53675f0be16fb9081c11da225) + +## [v1.1.4](https://github.com/http-party/node-http-proxy/compare/v1.1.3...v1.1.4) - 2014-05-11 + +### Merged + +- `proxyRes` event, provide access to the req and res objects [`#642`](https://github.com/http-party/node-http-proxy/pull/642) + +### Commits + +- Add a test for the proxyRes event [`1385635`](https://github.com/http-party/node-http-proxy/commit/1385635e18f081af759c8e088f2f6b0219df83db) +- [dist] Version bump. 1.1.4 [`7cb98a4`](https://github.com/http-party/node-http-proxy/commit/7cb98a4e417312f01cf4432b52dbb3773aca60a0) +- Add the req and res objects to the proxyRes event [`1213e46`](https://github.com/http-party/node-http-proxy/commit/1213e46b1b0975ad1d5c5d0aaeace40a0811118f) + +## [v1.1.3](https://github.com/http-party/node-http-proxy/compare/v1.1.2...v1.1.3) - 2014-05-11 + +### Merged + +- Don't override connection header if Upgrading [`#640`](https://github.com/http-party/node-http-proxy/pull/640) + +### Commits + +- Adding test cases on preventing upgrade override [`8aa7c51`](https://github.com/http-party/node-http-proxy/commit/8aa7c519b15f734af7db34d2102781adbeae10aa) +- Update README.md for benchmarks [`4947484`](https://github.com/http-party/node-http-proxy/commit/4947484806f839d5e0a1b615b56a1bc847b8f534) +- [minor] style [`ccad177`](https://github.com/http-party/node-http-proxy/commit/ccad17795417de74bea2bcb6d6c559a4601af76d) +- [dist] Version bump. 1.1.3 [`c472527`](https://github.com/http-party/node-http-proxy/commit/c472527ea60da8b2f737d5742bc61ad2772b7e0b) + +## [v1.1.2](https://github.com/http-party/node-http-proxy/compare/v1.1.1...v1.1.2) - 2014-04-14 + +### Commits + +- [fix test] handle proxy error since we are properly aborting the proxy Request [`61c8734`](https://github.com/http-party/node-http-proxy/commit/61c8734e8b1115fab0e0db23fd8eeccbae61eee0) +- [fix] handle error on incoming request as well and properly abort proxy if client request is aborted [`77a1cff`](https://github.com/http-party/node-http-proxy/commit/77a1cff9bcf697eab27819eef054024bdc0a2ba3) +- [dist] Version bump. 1.1.2 [`c54278b`](https://github.com/http-party/node-http-proxy/commit/c54278bd3b00e82f4253393b6f6beb1d5a1b19e5) + +## [v1.1.1](https://github.com/http-party/node-http-proxy/compare/v1.1.0...v1.1.1) - 2014-04-11 + +### Commits + +- [dist] Version bump. 1.1.1 [`d908e2a`](https://github.com/http-party/node-http-proxy/commit/d908e2ad61013ed1f6e2f80c4b67a6dce7d0f504) +- [fix] let user make the decision on what to do with the buffer [`4f07dc2`](https://github.com/http-party/node-http-proxy/commit/4f07dc220d700ac90bd8405f7cb0724bdae4b430) + +## [v1.1.0](https://github.com/http-party/node-http-proxy/compare/v1.0.3...v1.1.0) - 2014-04-09 + +### Merged + +- Update UPGRADING.md [`#616`](https://github.com/http-party/node-http-proxy/pull/616) + +### Fixed + +- [fix] always be an eventemitter for consistency fixes #606 [`#606`](https://github.com/http-party/node-http-proxy/issues/606) + +### Commits + +- [api] emit a start an an end event [`8b48a9f`](https://github.com/http-party/node-http-proxy/commit/8b48a9fdab01624f7249c53f25919b1295eefb10) +- [dist] Version bump. 1.1.0 [`97ceeb3`](https://github.com/http-party/node-http-proxy/commit/97ceeb37d04e5d2195352365985165866323c4d7) +- [minor] missing angle bracket [`eca765a`](https://github.com/http-party/node-http-proxy/commit/eca765a856164c077ff9128949019552cdaf9a67) + +## [v1.0.3](https://github.com/http-party/node-http-proxy/compare/v1.0.2...v1.0.3) - 2014-03-27 + +### Merged + +- Fix for #591 [`#592`](https://github.com/http-party/node-http-proxy/pull/592) +- Add Repository field to package.json [`#578`](https://github.com/http-party/node-http-proxy/pull/578) +- Fix doc: option lines [`#575`](https://github.com/http-party/node-http-proxy/pull/575) + +### Fixed + +- [api] add toProxy method to allow absolute URLs to be sent when sending to another proxy fixes #603 [`#603`](https://github.com/http-party/node-http-proxy/issues/603) + +### Commits + +- [doc] update docs with toProxy option [`ece85b4`](https://github.com/http-party/node-http-proxy/commit/ece85b4e1ba379b3ed084bd8f606e285c14d4db3) +- [fix] set connection to CLOSE in cases where the agent is false. [`89a22bc`](https://github.com/http-party/node-http-proxy/commit/89a22bc00396f069eeb054ce30891a204077d16d) +- @xtreme-topher-bullock - update package.json to have proper repository key and formatting [`68fa17b`](https://github.com/http-party/node-http-proxy/commit/68fa17bbcaa73ae2d9539cba6f6ddff29f9e30d5) +- [dist] Version bump. 1.0.3 [`07fceb7`](https://github.com/http-party/node-http-proxy/commit/07fceb7c7aed25a8991d0295db4b4a7e50d79cf9) +- Add support for localAddress [`e633b0f`](https://github.com/http-party/node-http-proxy/commit/e633b0f7e4fd719d809eaeb4725e589f79c271ab) + +## [v1.0.2](https://github.com/http-party/node-http-proxy/compare/v1.0.1...v1.0.2) - 2014-01-28 + +### Merged + +- Update README.md [`#566`](https://github.com/http-party/node-http-proxy/pull/566) +- Fix argument order for ws stream pass [`#560`](https://github.com/http-party/node-http-proxy/pull/560) +- Extend listen to enable IPv6 support. [`#558`](https://github.com/http-party/node-http-proxy/pull/558) +- Fix before and after type check [`#556`](https://github.com/http-party/node-http-proxy/pull/556) + +### Fixed + +- Close outgoing ws if incoming ws emits error [`#559`](https://github.com/http-party/node-http-proxy/issues/559) +- [fix] closes #555 [`#555`](https://github.com/http-party/node-http-proxy/issues/555) + +### Commits + +- [fix] replicate node core behavior and throw an error if the user does not add their own error listener [`daad470`](https://github.com/http-party/node-http-proxy/commit/daad4703f3a80014936c89f4d67affdc3246f478) +- [dist] Version bump. 1.0.2 [`4bdc3e4`](https://github.com/http-party/node-http-proxy/commit/4bdc3e4f455b2749c03961404db74e3112a3e9e8) +- [doc] Fix broken image in npm by using an absolute link [`8004f4e`](https://github.com/http-party/node-http-proxy/commit/8004f4e5fc0f535806e92ec4e1bd973a45367dac) + +## [v1.0.1](https://github.com/http-party/node-http-proxy/compare/v1.0.0...v1.0.1) - 2014-01-17 + +### Fixed + +- [fix] closes #553 [`#553`](https://github.com/http-party/node-http-proxy/issues/553) + +### Commits + +- [dist] bump v1.0.1 [`68c5512`](https://github.com/http-party/node-http-proxy/commit/68c55123039369cdf8a55a64b36b719c96b672cf) +- typo [`689459f`](https://github.com/http-party/node-http-proxy/commit/689459fe46885a1b3b8e32a4df55f2d1339143e5) + +## [v1.0.0](https://github.com/http-party/node-http-proxy/compare/v0.10.4...v1.0.0) - 2014-01-16 + +### Merged + +- Http proxy 1.0 [`#552`](https://github.com/http-party/node-http-proxy/pull/552) +- Caronte [`#551`](https://github.com/http-party/node-http-proxy/pull/551) +- Only emit response if a valid server is present [`#549`](https://github.com/http-party/node-http-proxy/pull/549) +- [fix] add `type` to before and after to grab correct `passes`, fixes #537 [`#539`](https://github.com/http-party/node-http-proxy/pull/539) +- export the proxy itself from the main require [`#536`](https://github.com/http-party/node-http-proxy/pull/536) + +### Fixed + +- [fix] closes #547 [`#547`](https://github.com/http-party/node-http-proxy/issues/547) +- Merge pull request #539 from nodejitsu/fix-before-after [`#537`](https://github.com/http-party/node-http-proxy/issues/537) +- [fix] add `type` to before and after to grab correct `passes`, fixes #537 [`#537`](https://github.com/http-party/node-http-proxy/issues/537) + +### Commits + +- [nuke] old files [`a4ee8f9`](https://github.com/http-party/node-http-proxy/commit/a4ee8f9d82f71ef423c401b1f5e9f712b13cbc98) +- [docs] upgrade UPGRADING.md [`e599151`](https://github.com/http-party/node-http-proxy/commit/e5991519dbc7838aa4b8aeb5077d1c1ec5a13813) +- [api] export the httpProxy.Server as the main export but preserve the createServer factory [`182c76c`](https://github.com/http-party/node-http-proxy/commit/182c76cd2322d4d4c041c2a964d51db396c5c96b) +- [fix] remove caronte [`d6d2d0c`](https://github.com/http-party/node-http-proxy/commit/d6d2d0c8821bba9888eee7c3881fc408b3b2008e) +- [fix] ee3 error handling [`d23353d`](https://github.com/http-party/node-http-proxy/commit/d23353d980d8aa1b2606e3d36a83d27432952bef) +- [fix] comments [`6fa23e1`](https://github.com/http-party/node-http-proxy/commit/6fa23e11f6dc0b9c09766b268611ade919bfaa08) + +## [v0.10.4](https://github.com/http-party/node-http-proxy/compare/v0.10.3...v0.10.4) - 2013-12-27 + +### Merged + +- Update README.md [`#521`](https://github.com/http-party/node-http-proxy/pull/521) +- Better examples [`#520`](https://github.com/http-party/node-http-proxy/pull/520) +- Send path in req.path and not the url [`#416`](https://github.com/http-party/node-http-proxy/pull/416) +- Fix websocket error handing [`#518`](https://github.com/http-party/node-http-proxy/pull/518) +- attempting to fix links to 2 source locations in README.md [`#502`](https://github.com/http-party/node-http-proxy/pull/502) +- [merge] rename codename to actual project name [`#492`](https://github.com/http-party/node-http-proxy/pull/492) +- [merge] Added error handling example [`#484`](https://github.com/http-party/node-http-proxy/pull/484) +- [merge] https & agent [`#482`](https://github.com/http-party/node-http-proxy/pull/482) +- [merge] caronte tests [`#476`](https://github.com/http-party/node-http-proxy/pull/476) +- FIX: ws error event [`#475`](https://github.com/http-party/node-http-proxy/pull/475) +- Fix accidental write to global variable. [`#472`](https://github.com/http-party/node-http-proxy/pull/472) +- [fix] 2 spelling mistakes [`#14`](https://github.com/http-party/node-http-proxy/pull/14) +- [fix] add ability to proxy websockets over HTTPS [`#11`](https://github.com/http-party/node-http-proxy/pull/11) +- Tests [`#3`](https://github.com/http-party/node-http-proxy/pull/3) + +### Fixed + +- determine x-forwarded-port from host header [`#341`](https://github.com/http-party/node-http-proxy/issues/341) +- [fix] closes #529 [`#529`](https://github.com/http-party/node-http-proxy/issues/529) +- [fix] fixes #341 [`#341`](https://github.com/http-party/node-http-proxy/issues/341) +- [tests] https test pass, fix #511. Exposed the rejectUnauthorized flag [`#511`](https://github.com/http-party/node-http-proxy/issues/511) +- [fix] pass proper options object that extend the global options and parse the per proxy args into options. fixes #510 [`#510`](https://github.com/http-party/node-http-proxy/issues/510) +- [readme] add links to badges on readme, fix #483 [`#483`](https://github.com/http-party/node-http-proxy/issues/483) +- [fix] pooled connections, closes #478 [`#478`](https://github.com/http-party/node-http-proxy/issues/478) +- [fix] add 0.10 link, fixes #459 [`#459`](https://github.com/http-party/node-http-proxy/issues/459) +- [fix] closes #473 [`#473`](https://github.com/http-party/node-http-proxy/issues/473) +- [fix] add 0.10 compatibily.. closes #474 [`#474`](https://github.com/http-party/node-http-proxy/issues/474) +- [fix] headers, closes #469 [`#469`](https://github.com/http-party/node-http-proxy/issues/469) +- [fix] headers, fixes #467 [`#467`](https://github.com/http-party/node-http-proxy/issues/467) +- [fix] yawnt baaaka .. fixes #8 [`#8`](https://github.com/http-party/node-http-proxy/issues/8) + +### Commits + +- [fix] more jshint intendation [`17399e7`](https://github.com/http-party/node-http-proxy/commit/17399e7c3ef9addf9dd8f7c628b273e693f128a1) +- [fix] tests [`a255f98`](https://github.com/http-party/node-http-proxy/commit/a255f984fecf24c9290f3ad58d1b68e54a7509eb) +- [minor] remove coverage [`335af81`](https://github.com/http-party/node-http-proxy/commit/335af81d0244e62ecb501690bd15bc5a04ec51a3) +- [examples] updated websockets examples [`ed8c9ee`](https://github.com/http-party/node-http-proxy/commit/ed8c9eeba99d60f39f5c36c4f34ed1a781d2cfd8) +- [tests] removed unused tests [`7e25bde`](https://github.com/http-party/node-http-proxy/commit/7e25bded27effc1b3d47121ce21465a4e2ec7c0b) +- [tests] Added a test case for run all the examples [`bc236d7`](https://github.com/http-party/node-http-proxy/commit/bc236d7e95ef10bc17cf551eea2cd2fb9bf265eb) +- [tests] drop the test of own streams, moved the usable tests [`dc9d7e5`](https://github.com/http-party/node-http-proxy/commit/dc9d7e5452c7d39ae1d242cb8021ca75e4f736d4) +- [fix] default port [`d166354`](https://github.com/http-party/node-http-proxy/commit/d1663549ec070e7ae8bc45ffb148f40ee903192f) +- [tests] added the ws passes test and the streams webscokets test [`8b3fe32`](https://github.com/http-party/node-http-proxy/commit/8b3fe32f6ae60ae067bc5e40cdc43015e689467f) +- [refactor minor] s/caronte/http-proxy/ or s/caronte/httpProxy/ where appropriate. [`bb0d28c`](https://github.com/http-party/node-http-proxy/commit/bb0d28c58729e2cc70e8446f7fbf1113a6fa9310) +- [examples] updated bodyDecoder middleware example [`c82ff2c`](https://github.com/http-party/node-http-proxy/commit/c82ff2c3c0c0165421fbc4e7e94fa3f59d59aa38) +- [dist] first [`4d13156`](https://github.com/http-party/node-http-proxy/commit/4d131567211bcefc6ef0b0592d374fef7bd5abd8) +- [examples] update forward and custom error examples [`b726116`](https://github.com/http-party/node-http-proxy/commit/b7261161343c3471201d6de36ba1030aced26425) +- [refactor docs] add descriptions [`d05af4a`](https://github.com/http-party/node-http-proxy/commit/d05af4af60a5f3d308aa68bf09ab0cf9e5528c52) +- [tests] make the tests run with the last refactor [`5bb83b9`](https://github.com/http-party/node-http-proxy/commit/5bb83b967edb514402698eecfe3db7ab5fe60b06) +- [examples] deleted this examples [`bdeabb7`](https://github.com/http-party/node-http-proxy/commit/bdeabb767a537bcb9f98ef74f6efe9762a9b1c34) +- websocket draft [`07551c6`](https://github.com/http-party/node-http-proxy/commit/07551c63e428551e5d6e52362efd9620a14c71b4) +- [fix] naming [`2a59366`](https://github.com/http-party/node-http-proxy/commit/2a593664a5768c90d9b2edf4c298460416b38926) +- [dist doc] Added documentation for consistent benchmarking of node-http-proxy [`f7f5fa7`](https://github.com/http-party/node-http-proxy/commit/f7f5fa727e8f1d3f4946e61ad03830dab1da01a5) +- [examples] update old examples [`7e44d36`](https://github.com/http-party/node-http-proxy/commit/7e44d3669bbd1b13e6452f265d52b22396f68b5d) +- [docs] more short examples to the Readme [`0393b5d`](https://github.com/http-party/node-http-proxy/commit/0393b5da990bb45e873bb80d87a0bc9e4dd6a477) +- [examples] updated old proxy examples [`e02317c`](https://github.com/http-party/node-http-proxy/commit/e02317ce86ff2dabd496cf7e2741e219a22ac817) +- [wip] Initial HTTPS->HTTP test, updated https-secure example. Work in progress, need to add more https tests [`33a2462`](https://github.com/http-party/node-http-proxy/commit/33a2462d28c7d1fa26b03bcf290242ff7cd83e7a) +- [docs] readme [`886a870`](https://github.com/http-party/node-http-proxy/commit/886a8707078f59d0467b34686455bb5bdfadbc0c) +- [examples] added error-handling using callbacks and HTTP-to-HTTPS examples [`d7064f2`](https://github.com/http-party/node-http-proxy/commit/d7064f2e1e149fe870cbb158932cb99f9f192fce) +- [examples] updated old examples [`588327c`](https://github.com/http-party/node-http-proxy/commit/588327c2c4392618b515164989f08ef20a30842b) +- stuff [`e45bfd6`](https://github.com/http-party/node-http-proxy/commit/e45bfd66a21a2470c5a4a4cc1d6095494bbc0f6b) +- [doc] added some documentation to functions and comments to understand better the code [`5dcdf2b`](https://github.com/http-party/node-http-proxy/commit/5dcdf2b36c24a9584f044b7529265b9ac861d8c7) +- Fixed issue where error callback would not invoke, including new test cases. Added req/res values to error events. [`0bfb9be`](https://github.com/http-party/node-http-proxy/commit/0bfb9be418926f2113489e92504038127d4c04bb) +- [examples] updated balancer examples [`831a44b`](https://github.com/http-party/node-http-proxy/commit/831a44b3c8c3acf6c046c47703a07cd6362a0d1c) +- socket.io stuff [`a74cd85`](https://github.com/http-party/node-http-proxy/commit/a74cd85c8a5aae2851acf7139648fefd6a02a57b) +- [tests] move contributions of @mmoulton to correct place [`7c72f3b`](https://github.com/http-party/node-http-proxy/commit/7c72f3b407a084a896e420c23ababc3e9357feca) +- [tests] this file is not necessary anymore [`881c7e6`](https://github.com/http-party/node-http-proxy/commit/881c7e62e0bef7b4b9f81b6fd121f7ad6641bd77) +- [refactor] move to leaner architecture [`8273cb6`](https://github.com/http-party/node-http-proxy/commit/8273cb6461e4d33f36e583b0354d1bea038d0a56) +- [fix] remove trailing whitespaces [`0aeaba7`](https://github.com/http-party/node-http-proxy/commit/0aeaba7fe6c51f150d0322eb90a77c1701ed88f5) +- [test] added tests for web-outgoing.js [`16a4d9d`](https://github.com/http-party/node-http-proxy/commit/16a4d9da1136b79f40ad80482d3fd17dc74274b1) +- [fix] some stuff start debugging proxystream [`d4f0da8`](https://github.com/http-party/node-http-proxy/commit/d4f0da898e5e8a2d6740e50a7fc34576435e1132) +- [tests] now each test use a different port to avoid some slow opening and closing ports [`c75d06c`](https://github.com/http-party/node-http-proxy/commit/c75d06c5f92eb7c814deb49bb33cf9fffc632d97) +- [tests] fixed inherits problem and listen for the correct event [`c65ffbb`](https://github.com/http-party/node-http-proxy/commit/c65ffbb976467dc1768983dcffe111d18e8f2db1) +- [fix] ProxyStraem now works [`356f43d`](https://github.com/http-party/node-http-proxy/commit/356f43d719998d135e0fc404ac8508e330cf1e5b) +- [examples] fix the copyright header of example files [`e592c53`](https://github.com/http-party/node-http-proxy/commit/e592c53d1a23b7920d603a9e9ac294fc0e841f6d) +- [feature] start working on the new server [`b79bd29`](https://github.com/http-party/node-http-proxy/commit/b79bd29d5e984f34b9c07fbdc803aed83b3fd0bb) +- ENH: updated examples [`f566a42`](https://github.com/http-party/node-http-proxy/commit/f566a42e511f4a6a8f3620f64e05df209e61b64f) +- [examples] add example of gzip using the connect.compress() middleware [`2142c50`](https://github.com/http-party/node-http-proxy/commit/2142c506e08f56d52e1995da5506c3e032f19c3c) +- [fix] refactor error handling [`601dbcb`](https://github.com/http-party/node-http-proxy/commit/601dbcbfe929af31995568b4f36b877245809058) +- [tests] fixed according new refactor and added test to common.setupSocket() [`1cb967b`](https://github.com/http-party/node-http-proxy/commit/1cb967b90aaa5b9da57727b8acbd95108437797a) +- [feature] websocket support [`79a14ac`](https://github.com/http-party/node-http-proxy/commit/79a14acfd2b2bf03f5ae2b334e7a37e619da6bb9) +- keepalive sockets [`dad211e`](https://github.com/http-party/node-http-proxy/commit/dad211e71c9ac3b32eba1ea3755edb688053b9d3) +- [tests] Using target field, tests now pass. We are missing the tests using forward field [`8085178`](https://github.com/http-party/node-http-proxy/commit/8085178dc2c24567adfb872a583863709ce60b5b) +- [fix] callback as optional error handler [`c7924e0`](https://github.com/http-party/node-http-proxy/commit/c7924e01f92aeec07333273f0882c1dd5e9521ae) +- ENH: added new https example, needs to be simplified before merge [`427d8d8`](https://github.com/http-party/node-http-proxy/commit/427d8d85369b0cd1d38afa0dd0f28ac98fa16001) +- [test] proxystream test [`c961279`](https://github.com/http-party/node-http-proxy/commit/c9612798f1207a4c40b616608bf6274d79ad0e4d) +- [lib] initial draft to websockets passes [`79f7f99`](https://github.com/http-party/node-http-proxy/commit/79f7f99528661162ae4153856888f078f666e017) +- [fix] minor [`7599cee`](https://github.com/http-party/node-http-proxy/commit/7599cee3fd03a5ce645e313f35557a41c9ac1aee) +- [tests] added HTTPS to HTTPS test [`31d919b`](https://github.com/http-party/node-http-proxy/commit/31d919b0a3d0b7f574e88fc5eed093c6b1a53548) +- [feature] started working on error propagation, kinda sucks, gotta think it over [`9ab8749`](https://github.com/http-party/node-http-proxy/commit/9ab8749a9bec33b49c495975e8364336ad7be1a3) +- [test] testing the onResponse proxy method [`27df8d7`](https://github.com/http-party/node-http-proxy/commit/27df8d72ad86d02cfce00a6e5c183d93dd50f97e) +- [fix] remove duplicate [`10c0f11`](https://github.com/http-party/node-http-proxy/commit/10c0f11b68e39552051e508c7bf20d65d2d59177) +- [tests] add more tests [`cedc5c4`](https://github.com/http-party/node-http-proxy/commit/cedc5c4bd2059585e1222ec4f03f09e8bcc808fc) +- [docs] Update readme with more how to [`ae0faef`](https://github.com/http-party/node-http-proxy/commit/ae0faef5aa0080d742a9740f9cb38bfd54b7d97e) +- [tests] added test for socket.io proxying [`10a0db4`](https://github.com/http-party/node-http-proxy/commit/10a0db4f0dd4594839f9098b9d67130085a067bc) +- [tests] added test HTTPS to HTTP using own server [`bbe3bfd`](https://github.com/http-party/node-http-proxy/commit/bbe3bfdf98255b82a185a798ff9f29e74615b6ca) +- [examples] update the error-handling example using the new error handle way [`a1b25a1`](https://github.com/http-party/node-http-proxy/commit/a1b25a123b4ff71e731f9beb27c5e078acfead65) +- [fix] quote [`c4ddc4e`](https://github.com/http-party/node-http-proxy/commit/c4ddc4edd324d9910a11eea14561a0e3b953f29c) +- ENH: updated README and added examples file. [`07091b5`](https://github.com/http-party/node-http-proxy/commit/07091b5077a40dfee29f6fd33ecb38d3fa25b801) +- [test] passes/web.js (first 2 funcs) [`d40e4be`](https://github.com/http-party/node-http-proxy/commit/d40e4beb62381b962b6cf3254451de0a39f182b1) +- [test] add test for forwardstream [`8fc3389`](https://github.com/http-party/node-http-proxy/commit/8fc33893672d26013c2b2ff396b777bcf1751527) +- [tests] fixing tests, fixed some typos and changed how passes are stored [`a704213`](https://github.com/http-party/node-http-proxy/commit/a7042132c881656dd32f915d9b0b962f0ef92efb) +- [test] added the lib/caronte/streams/forward.js initial test, one test pending [`2fac7b9`](https://github.com/http-party/node-http-proxy/commit/2fac7b9b009b12a940efb22de3af6db55ee686a9) +- [api] add draft for proxystream [`4f24664`](https://github.com/http-party/node-http-proxy/commit/4f24664e8a50aa9b9a3ea155d067b85f94a8c81b) +- [experiment] new api for proxying [`07cfa6b`](https://github.com/http-party/node-http-proxy/commit/07cfa6b981ff54d8d96eea6c9aa4b560ee3867ec) +- [tests] the options got a problem and this test probe that timeout is not being set [`1d1ee88`](https://github.com/http-party/node-http-proxy/commit/1d1ee8858283d7c8984f1c1d6c5185b6822f9235) +- new error propagation [`3a39e44`](https://github.com/http-party/node-http-proxy/commit/3a39e444ff68a74f6b586f0736bbd3f8a2511ca5) +- [fix] docs [`ec981c5`](https://github.com/http-party/node-http-proxy/commit/ec981c5b74bf43dd36c8ca89833b751f59f01d38) +- [examples] added concurrent proxy example [`04c1011`](https://github.com/http-party/node-http-proxy/commit/04c10113f7a3b568fb95b18f30e4aca3e059d961) +- [fix] closes number #487 [`cde08fb`](https://github.com/http-party/node-http-proxy/commit/cde08fb2ee2df03c9457678d8e6776a5d89165b2) +- [test] started writing tests [`16eacfa`](https://github.com/http-party/node-http-proxy/commit/16eacfa961d2a2d80534e95eba83010ed6ab01b4) +- [tests] added tests for websockets [`02007ed`](https://github.com/http-party/node-http-proxy/commit/02007ed0fb38f798436ae5669bb18d4f27496667) +- Revert "[fix] fixed options and server reference to can access them from passes functions" [`babdf53`](https://github.com/http-party/node-http-proxy/commit/babdf531fecd32f9af0963902909fcfa2cd374f1) +- mm test file [`1a7bef0`](https://github.com/http-party/node-http-proxy/commit/1a7bef0cda58243416a263075dc6eb51f22b6dec) +- [fix] fixed options and server reference to can access them from passes functions [`90fb01d`](https://github.com/http-party/node-http-proxy/commit/90fb01d38ac5af7ef395547b24e985b6f63b4abc) +- [examples] added forward example [`7a3f6df`](https://github.com/http-party/node-http-proxy/commit/7a3f6dfbcc80ba32fa81004438c637e8d29eb029) +- [docs] add UPGRADING.md [`db12f6c`](https://github.com/http-party/node-http-proxy/commit/db12f6c24e22c034c698457cc28ff60c990b55a5) +- DOC: Added error handling example [`32a4088`](https://github.com/http-party/node-http-proxy/commit/32a40889cedfd6b0d92224aa921700a7b7271c68) +- [examples] updated the modifyResponse-middleware example [`de3ff11`](https://github.com/http-party/node-http-proxy/commit/de3ff11656b4a847de3a63b28feed39b6c816480) +- [test] test onError part, proxying to no where [`b85aa16`](https://github.com/http-party/node-http-proxy/commit/b85aa16e75401a223a947cde444d42cf7eeafb67) +- ENH: updated agent options in `common.setupOutgoing` [`12cda56`](https://github.com/http-party/node-http-proxy/commit/12cda561afe534427a5f84da9d7e0beb64a8ecbc) +- [fix] minor and short fixes [`e0faaaf`](https://github.com/http-party/node-http-proxy/commit/e0faaaf81152203b96f0313c68706468e7ee7357) +- support websockets [`4a4607d`](https://github.com/http-party/node-http-proxy/commit/4a4607d075a912746386d1751fd6b0fc98cf6b20) +- [test] COVERAGE [`004a46c`](https://github.com/http-party/node-http-proxy/commit/004a46c09df2f0f7b15d8e8f7119bc6039e0c01c) +- [misc] add a LICENSE file [`584ce76`](https://github.com/http-party/node-http-proxy/commit/584ce76e7576c906e25cdd04a2e079f97bcf86ff) +- ENH: updated https and agent option [`13741a8`](https://github.com/http-party/node-http-proxy/commit/13741a823f1c1c884d4a37e597e4b188598b0e25) +- [fix] write connection header [`2c10f25`](https://github.com/http-party/node-http-proxy/commit/2c10f256b658bc0e906c20f29d94ab7eaf653055) +- [fix] merge #495, thanks @glasser [`d0862af`](https://github.com/http-party/node-http-proxy/commit/d0862aff0c693366dcb11649b6abe1d011268953) +- support forward [`8c8c455`](https://github.com/http-party/node-http-proxy/commit/8c8c455541f21ad9a9ac7ca19d1f37368206a2e2) +- [tests] fix tests set correct host headers [`cfd417d`](https://github.com/http-party/node-http-proxy/commit/cfd417de2352b0f05535b979dc15abff60c1fb96) +- [fix] Optimize fix for `x-forwarded-for-port`. [`2d42709`](https://github.com/http-party/node-http-proxy/commit/2d42709c3283637de16a49e815b03e63432bbd29) +- ENH: updated readme with an example [`edd8e2f`](https://github.com/http-party/node-http-proxy/commit/edd8e2f04e4b39391b062fa6437d61b4ebde8748) +- [doc] update README.md [`dcb873a`](https://github.com/http-party/node-http-proxy/commit/dcb873ad9992b1534615d59b8a0a70e8b87d7884) +- [test] passes/web.js XHeaders func [`c02b721`](https://github.com/http-party/node-http-proxy/commit/c02b721321c455bc287c3fed6b9b21392ce2fc70) +- [fix] fixed passes functions, now 'this' can be used and options are stored on 'this.options' [`9b3e1eb`](https://github.com/http-party/node-http-proxy/commit/9b3e1eb247df29d18ea299ff4ebb2f10eeb71269) +- Revert "[fix] fixed passes functions, now 'this' can be used and options are stored on 'this.options'" [`5e130de`](https://github.com/http-party/node-http-proxy/commit/5e130de8548ad41b821da49299b4fd1c9536c5f0) +- [minor] Remove duplicate dependencies and cleanup of the scripts [`a51b062`](https://github.com/http-party/node-http-proxy/commit/a51b0622780f48160001f9e74340f7d720cbfce6) +- TEST: added agent and header tests [`39b0c46`](https://github.com/http-party/node-http-proxy/commit/39b0c46a6967fda5329760ad93a8ec01bc4a6f14) +- [examples] fix styling and bad spaces [`6a6dfbb`](https://github.com/http-party/node-http-proxy/commit/6a6dfbb79dc156679f75dd519344d19a5b61613b) +- ENH: added error events [`1b867a7`](https://github.com/http-party/node-http-proxy/commit/1b867a7f594f7dfe49fc17ff53451a353ec509d9) +- [test] remove chunked on http1.0 [`ca09263`](https://github.com/http-party/node-http-proxy/commit/ca092635e7ac4d967b554e3b94a16a931946d464) +- [tests] fix test to use the new way to pass options [`52ecd52`](https://github.com/http-party/node-http-proxy/commit/52ecd52ee5aa78603e44ba8d5ff9187410351622) +- [examples] fixed https examples [`a467b7b`](https://github.com/http-party/node-http-proxy/commit/a467b7b4a9614a7cbfdc256524e1495616e3d4d9) +- Revert "[tests] fix test to use the new way to pass options" [`2bf20d6`](https://github.com/http-party/node-http-proxy/commit/2bf20d61d53201e9820c5f9215e641fcf88f5172) +- [fix] better code [`3d8e538`](https://github.com/http-party/node-http-proxy/commit/3d8e5383cd9d527825f95d9071a87865fcebca05) +- [feature] implement _write and _read [`6a4294c`](https://github.com/http-party/node-http-proxy/commit/6a4294cbdfe85fa162969b1393032adc9d418441) +- [fix] use the correct arguments order [`cc09ae6`](https://github.com/http-party/node-http-proxy/commit/cc09ae6a345cfde1689e1d8731c5822675c59d4d) +- [fix] fix the correct order of arguments in ws-incoming passes [`02df9a3`](https://github.com/http-party/node-http-proxy/commit/02df9a33c5cce17ea32a892017acbe5ce57ab2e5) +- [fix] write status [`e08d4ed`](https://github.com/http-party/node-http-proxy/commit/e08d4edad339d0f7f55900b3e6e6a0e770960215) +- [fix] finished jshint fixes [`455f97e`](https://github.com/http-party/node-http-proxy/commit/455f97e14cb4929e0a3a5c746471e9c5e76436fc) +- Update the README to describe middleware err handler. [`25bb3bf`](https://github.com/http-party/node-http-proxy/commit/25bb3bfa7012e0f975e10f0311cae8c39183fa41) +- Prevent headers to be sent twice [`8332e74`](https://github.com/http-party/node-http-proxy/commit/8332e744202ed9de94288d8f1c822cd9fe788983) +- [examples] added package.json with the dependencies needed by examples [`d85ccdd`](https://github.com/http-party/node-http-proxy/commit/d85ccdd333edcfc7551bcf8e0ffd7dc166e38e61) +- [tests] added .travis.yml file [`0602500`](https://github.com/http-party/node-http-proxy/commit/06025002303f351f71d9e5f78a93895257f0d283) +- [dist minor] 2 space indents next time @samalba [`7e8041d`](https://github.com/http-party/node-http-proxy/commit/7e8041d2b687b8375a1d0fe45270029c6e8ddee6) +- [fix] naming [`8931009`](https://github.com/http-party/node-http-proxy/commit/893100972c22febbf133134394bc0bcef47d9e12) +- Fix for #458. Host header may cause some sites not to be proxyable with changeOrigin enabled [`781c038`](https://github.com/http-party/node-http-proxy/commit/781c038f2b4d14a01cc9297e1e0dba6ce39dd6cb) +- [docs] typos, typos everywhere... [`03880d8`](https://github.com/http-party/node-http-proxy/commit/03880d8d069e9e17ca7d7aea6eb760f6626a869c) +- ENH: updated `ws` and `web` functions to use the global options object as a base [`268afe3`](https://github.com/http-party/node-http-proxy/commit/268afe34bb51448d511c9cd73c03e97d1c1baee0) +- [fix] make @mmalecki a happy camper [`c9cd6d2`](https://github.com/http-party/node-http-proxy/commit/c9cd6d2ad324e0e6222932c8f29f27621071e045) +- write [`f97c0c6`](https://github.com/http-party/node-http-proxy/commit/f97c0c6167371c5ff92e6361b1df02e3fd5506d7) +- [fix] [`a9f9e21`](https://github.com/http-party/node-http-proxy/commit/a9f9e21eda2f8e912523e6b62abb0101c0353505) +- [fix] coveralls.. will it work? [`f36cb4d`](https://github.com/http-party/node-http-proxy/commit/f36cb4d5a110fc86272e878278f103f313c86f56) +- ENH: updated target and forward options so that a string may be specified [`ef946a7`](https://github.com/http-party/node-http-proxy/commit/ef946a7697b38b13178881b3d1ebde63681dd4a1) +- added option for eventlistenerCount(max) [`8eb6780`](https://github.com/http-party/node-http-proxy/commit/8eb6780f8705caff13a5375446539b0621d497d7) +- [fix] support buffer [`1204a35`](https://github.com/http-party/node-http-proxy/commit/1204a35e467c6c1855ba0dac8f55d79f899148a6) +- DOC: updated readme with options [`1b5fb1d`](https://github.com/http-party/node-http-proxy/commit/1b5fb1d8fc21421b8383919d93e4149b586b211b) +- ENH: added 'headers' to available options, to add or overwrite existing headers [`7d840d3`](https://github.com/http-party/node-http-proxy/commit/7d840d35151be1aac612798754af47368594781d) +- [fix] move logo [`57abb7f`](https://github.com/http-party/node-http-proxy/commit/57abb7f26c14e281c3be07a8b84e3c79e066f59f) +- FIX: tests. still need to add more tests tho [`a350fad`](https://github.com/http-party/node-http-proxy/commit/a350fadea6bace293131581487f8c66948009449) +- [fix] move logo [`aaff196`](https://github.com/http-party/node-http-proxy/commit/aaff1966e4e2eb42c9890e57737f57a64e8d964a) +- [docs] add travis build status [`6b61878`](https://github.com/http-party/node-http-proxy/commit/6b618787598a2a37850898dbdb3b4fe8f3c3414d) +- [fix] do not send chunked responses to http1.0 clients [`8663ac1`](https://github.com/http-party/node-http-proxy/commit/8663ac1c43505f0081d906c3cd8e702d4b5ddeb0) +- [dist] Bump dependencies. [`a81dd8d`](https://github.com/http-party/node-http-proxy/commit/a81dd8d53e1595cba9acf5cc3ca9517165dcc4aa) +- [fix] readme [`4d3a4e1`](https://github.com/http-party/node-http-proxy/commit/4d3a4e1ee7370347898d1863ab73aa68ed345d8d) +- [fix] proxying to https [`26c4c43`](https://github.com/http-party/node-http-proxy/commit/26c4c43a06263ec6721bc0e8a90644297d0cf217) +- [fix] new logo [`ee3cc38`](https://github.com/http-party/node-http-proxy/commit/ee3cc380665a31ec6af28ddb73dfc543f430d3f8) +- [fix] naming convention [`7d71a86`](https://github.com/http-party/node-http-proxy/commit/7d71a867a8bdc375f7577cec3905cca89bbf415c) +- fix docs [`9243444`](https://github.com/http-party/node-http-proxy/commit/9243444ac006f73c00b0f1f78c4a77f342b0b4e4) +- [fix] short circuit [`a6256ca`](https://github.com/http-party/node-http-proxy/commit/a6256cac1df1739e3da78fe5f0cf122ef7ce6b14) +- [tests] this test is already in web-incoming tests [`920f1e7`](https://github.com/http-party/node-http-proxy/commit/920f1e7707aa1751577533cd368529f8a704d7af) +- Emit middlewareError when on middleware error. [`bc12ca3`](https://github.com/http-party/node-http-proxy/commit/bc12ca39394f9aeed3e3047f59035ba48afa2885) +- DOC: updated readme [`7ad5c0f`](https://github.com/http-party/node-http-proxy/commit/7ad5c0f993294c9e2e7650e15fbc62d11a2cb062) +- [docs] add logo [`8b05626`](https://github.com/http-party/node-http-proxy/commit/8b05626eed5e45e72cf9b1f14a4c4dca1dd2ed0f) +- [fix] making @stoke a happy camper [`34f16e7`](https://github.com/http-party/node-http-proxy/commit/34f16e74647095199f84ab61e10c8dafd60b505a) +- [feature] add buffer support [`e3f8d5f`](https://github.com/http-party/node-http-proxy/commit/e3f8d5fdbe1ebc4f04188d95bbef768d09718d2c) +- [Fix] 2 spelling mistakes [`5823842`](https://github.com/http-party/node-http-proxy/commit/58238421945bcc4236e280ebca7799b831ae29a4) +- [fix] do not call .end [`6e77cd3`](https://github.com/http-party/node-http-proxy/commit/6e77cd390929842088ae9f6deb922a6627ddfecd) +- attempting to fix link to valid options properties [`bbe2b27`](https://github.com/http-party/node-http-proxy/commit/bbe2b2788a7ee3c74fd44fe88b6dcf213264436f) +- [fix] slimmer proxying [`031aa0f`](https://github.com/http-party/node-http-proxy/commit/031aa0fbf30bd377696c4efa508f6fc769bf1070) +- [fix] use agent pool [`abf1d90`](https://github.com/http-party/node-http-proxy/commit/abf1d90fdf05a17ebe05a3e90d464a592e0aee69) +- [tests] fix test using undefined url [`c4d56a5`](https://github.com/http-party/node-http-proxy/commit/c4d56a5faf1e89cdeb911f0ece0efe065eb58c45) +- [fix] legacy [`162a42f`](https://github.com/http-party/node-http-proxy/commit/162a42f58f515c5418ccfac0b68f4c928103b1e1) +- [tests] fixing minor typos [`b333e63`](https://github.com/http-party/node-http-proxy/commit/b333e63648aa67ea1b1aaf17ba684e5fc6f751a6) +- Updated readme [`bd106d6`](https://github.com/http-party/node-http-proxy/commit/bd106d69f074a1c7018e685a4e144e23a17beb8c) +- [misc] use the local mocha instead the global [`f1aeb05`](https://github.com/http-party/node-http-proxy/commit/f1aeb0500cde39b63e570323e0e478530d1222ab) +- added unlimited listeners to the reverproxy event obj. [`1333c0c`](https://github.com/http-party/node-http-proxy/commit/1333c0cc62e7b590843f9b00326fe80137163c5e) +- [tests] throw error when no options, ALL TESTS PASSING! YAY [`86750c7`](https://github.com/http-party/node-http-proxy/commit/86750c7e594c419dfae957aaf7e44e61e1d480e8) +- ENH: updated example [`1c7ace2`](https://github.com/http-party/node-http-proxy/commit/1c7ace26c5a36fb63497f1ab67793c5b75495063) +- [merge] PR #470 [`38e6d7c`](https://github.com/http-party/node-http-proxy/commit/38e6d7cd5449a7264dcf5244b3dfd07b2dda60e1) +- [fix] remove stuff [`6a03e5f`](https://github.com/http-party/node-http-proxy/commit/6a03e5f7cf356416ea13584e279f5bfa3791c058) +- [test][misc] remove node@0.8 to test on travis [`8eff1a1`](https://github.com/http-party/node-http-proxy/commit/8eff1a1f26bb739dfc5a1ad90b140ff2a18921d5) +- merge with @cronopio [`0fb3381`](https://github.com/http-party/node-http-proxy/commit/0fb33810f5e70b714bd9868557d85a531b8e11e3) +- [merge] text [`98f29bd`](https://github.com/http-party/node-http-proxy/commit/98f29bdcfca9b818ffe107b09578539fdf379c8a) +- [fix] woops [`bd3df45`](https://github.com/http-party/node-http-proxy/commit/bd3df45010f282997cae3a699c7ecb885c01bdf8) +- [test] Test on newer version of node [`ebbba73`](https://github.com/http-party/node-http-proxy/commit/ebbba73eda49563ade09f38bdc8aef13d1cf6c00) +- new error propagation - follows [`1993faf`](https://github.com/http-party/node-http-proxy/commit/1993faf8a4227acda3423d46cf2cf13b4d9861e7) +- [fix] minor typo [`5a1504f`](https://github.com/http-party/node-http-proxy/commit/5a1504f0764b7747b53cc0d92a69ff3093e85ade) +- [fix] proxy to http(s) [`3c91ed3`](https://github.com/http-party/node-http-proxy/commit/3c91ed3d26d9af640d0c7a09fb9cdaf80ad673ca) +- Put the arguments the right way around in the README. [`1457980`](https://github.com/http-party/node-http-proxy/commit/145798062e332ac2aed7f8e8e3240e38464c870a) +- [fix] use some [`4480699`](https://github.com/http-party/node-http-proxy/commit/4480699d3a2a5080c051e7b8a100689fd1f58657) +- [fix] layout [`d7078e2`](https://github.com/http-party/node-http-proxy/commit/d7078e2fdd16d23d0b5f8f1d8a7ab3e9011fea4f) +- [docs] logo [`dd0f7b8`](https://github.com/http-party/node-http-proxy/commit/dd0f7b8876ae5b57fffab8857735b25b159f2bdb) +- [fix] url [`0637322`](https://github.com/http-party/node-http-proxy/commit/0637322d96e54bbcf5a14bf009dd73314cada4ce) +- [fix] opts [`adc5be0`](https://github.com/http-party/node-http-proxy/commit/adc5be020c7fff09a1c05ac771d5c5ab61002c23) +- [docs] fix syntax highlighting [`da9de70`](https://github.com/http-party/node-http-proxy/commit/da9de7034a452d1281217a349bc9403fddcc2b7f) +- [fix] typo [`275a519`](https://github.com/http-party/node-http-proxy/commit/275a5192fa257f78287a954b347e65023795487d) +- [tests] fix code coverage, changed pattern on blanket options [`4090250`](https://github.com/http-party/node-http-proxy/commit/40902506af3361b642b8798350b48404fe0a4e78) +- Put the arguments the right way around in emitter. [`7c8ecc8`](https://github.com/http-party/node-http-proxy/commit/7c8ecc8ea85b59fc16b55b9a142372b6ac168b2a) +- [fix] link [`72a89ea`](https://github.com/http-party/node-http-proxy/commit/72a89eab8bafef3742d78e8de8631094f961f427) +- [fix] space [`69f126b`](https://github.com/http-party/node-http-proxy/commit/69f126b34cbd190be8541a854d21f13bfb5a61bf) +- [fix] tests [`8269eca`](https://github.com/http-party/node-http-proxy/commit/8269eca2bb34d08336b8889e06e53d3522fa79fe) +- [fix] console [`18341d5`](https://github.com/http-party/node-http-proxy/commit/18341d559717e0a86f5ee4da024109e4b5a595a7) +- Set travis to run `npm test` while we fix coveralss.io integration [`e2a5d51`](https://github.com/http-party/node-http-proxy/commit/e2a5d513cac3ebceff446787fa106c7f00caf785) +- [fix] making @jcrugzz a happy camper [`2e7343d`](https://github.com/http-party/node-http-proxy/commit/2e7343d728a3187d48821b88ec2e2d4699bb2afe) +- [fix] minor typo [`5d66ce1`](https://github.com/http-party/node-http-proxy/commit/5d66ce11bb7eef7e704a2de2c0ef3b5f754843e9) +- [tests] tests fixed [`d60353f`](https://github.com/http-party/node-http-proxy/commit/d60353f80bbbcba128a2c51066e107365270e878) +- [tests] disabled the examples-test by now [`d83fdf6`](https://github.com/http-party/node-http-proxy/commit/d83fdf69a1121bfcfba72bbffcd3105ae5852c56) +- [fix] _ because it is unused [`590bb60`](https://github.com/http-party/node-http-proxy/commit/590bb604dae11223a0ae80469b59d6d341488f1f) +- [tests] disable test, by now is not throwing without options [`a2b1f0a`](https://github.com/http-party/node-http-proxy/commit/a2b1f0a4c9079342db6255c5f92db4a0cb992707) +- [fix] support target and forward [`961d2f9`](https://github.com/http-party/node-http-proxy/commit/961d2f9400b4cfd236c3c8ccbf401d37f8e871b8) +- [dist] Version bump. 0.10.4 [`840f6d8`](https://github.com/http-party/node-http-proxy/commit/840f6d8d29dffc11d3726123c2d400940ca2bdda) +- [fix] remove old reminescence [`4d65280`](https://github.com/http-party/node-http-proxy/commit/4d65280ea313438a94589bacf55f7a09cc107888) +- [feature] add emit proxyRes [`dda6f7a`](https://github.com/http-party/node-http-proxy/commit/dda6f7a45a46d2bf63e482d0b47b7c36ae548546) +- [docs] test badge [`1ceea3e`](https://github.com/http-party/node-http-proxy/commit/1ceea3e5f9b6232d60d673946bbccb7d8ccb4beb) +- [tests] remove caronte and use http-proxy for file names [`c9f5772`](https://github.com/http-party/node-http-proxy/commit/c9f5772fc18226aca31471bc96c44a6dbff5cbea) +- [logo] [`4c2f2f3`](https://github.com/http-party/node-http-proxy/commit/4c2f2f3b9a5ba65f97403e778a670f14301d52c1) + +## [v0.10.3](https://github.com/http-party/node-http-proxy/compare/v0.10.2...v0.10.3) - 2013-06-20 + +### Merged + +- Pass default certs to SNICallback example [`#419`](https://github.com/http-party/node-http-proxy/pull/419) + +### Fixed + +- Pass default certs to SNICallback example [`#399`](https://github.com/http-party/node-http-proxy/issues/399) + +### Commits + +- [dist] Bump version to 0.10.3 [`2fd748f`](https://github.com/http-party/node-http-proxy/commit/2fd748fb61dac7de0daa50aabbface7033c6a222) +- [fix] Respect `maxSockets` from `target` options in `RoutingProxy` [`e1d384e`](https://github.com/http-party/node-http-proxy/commit/e1d384e769e9f4adc5a06c516cfb721ff24b4b6d) +- Send path in req.path and not the url [`0c75323`](https://github.com/http-party/node-http-proxy/commit/0c753234c0c85333f909bdbef034ffb6e192bad5) + +## [v0.10.2](https://github.com/http-party/node-http-proxy/compare/v0.10.1...v0.10.2) - 2013-04-21 + +### Merged + +- Correct keep-alive responses to HTTP 1.0 clients [`#407`](https://github.com/http-party/node-http-proxy/pull/407) + +### Fixed + +- [minor] Style compliance. Fixes #402. [`#402`](https://github.com/http-party/node-http-proxy/issues/402) + +### Commits + +- Correct keep-alive responses to HTTP 1.0 clients. [`a29b5e8`](https://github.com/http-party/node-http-proxy/commit/a29b5e8e289c34c00d2b450e5fb9dd1969db4b97) +- [minor] Strip trailing whitespace. [`7fc39d7`](https://github.com/http-party/node-http-proxy/commit/7fc39d77f47311b82c24ab05f8e1a45a2733305c) +- Add headers on 'handshake' [`985025c`](https://github.com/http-party/node-http-proxy/commit/985025c90f3b2fafede64d8b17c318326f2423d9) +- Don't test raw HTTP 1.0 requests over HTTPS. [`daf53bd`](https://github.com/http-party/node-http-proxy/commit/daf53bd753879223dc84a49c92d0efaf576c1fd3) +- [dist] Version bump. 0.10.2 [`de0928f`](https://github.com/http-party/node-http-proxy/commit/de0928f616dd62165e8a22c00d091cabf31e1e87) + +## [v0.10.1](https://github.com/http-party/node-http-proxy/compare/v0.10.0...v0.10.1) - 2013-04-12 + +### Merged + +- Fix for slab buffer retention, leading to large memory consumption [`#370`](https://github.com/http-party/node-http-proxy/pull/370) + +### Commits + +- [dist] Version bump. 0.10.1 [`9c13ad4`](https://github.com/http-party/node-http-proxy/commit/9c13ad46e416125373d6604f3954ec3df1f55449) + +## [v0.10.0](https://github.com/http-party/node-http-proxy/compare/v0.9.1...v0.10.0) - 2013-03-18 + +### Merged + +- Change the emitter of the `proxyResponse` event [`#385`](https://github.com/http-party/node-http-proxy/pull/385) +- Fixing a bug that generates an unexpected TypeError [`#383`](https://github.com/http-party/node-http-proxy/pull/383) +- Mention Harmon used for response modifications in the readme [`#384`](https://github.com/http-party/node-http-proxy/pull/384) + +### Commits + +- [dist] Update CHANGELOG.md [`8665f3c`](https://github.com/http-party/node-http-proxy/commit/8665f3cc600feecbb4c8229699823149c69a144f) +- Harmon messsage [`35ba0db`](https://github.com/http-party/node-http-proxy/commit/35ba0db554c6bace21b1bacfa8f5fb6df4228db0) +- [fix breaking] Emit the `proxyResponse` event on the HttpProxy instance to reduce listener churn and reference counts. [`2620f06`](https://github.com/http-party/node-http-proxy/commit/2620f06e2db9a267945566f10837c4c2a5df753d) +- [dist] Version bump. 0.10.0 [`71183bf`](https://github.com/http-party/node-http-proxy/commit/71183bf30bc2b9ad2eaf57c51980eeb0bc7edff0) +- Fixing the if statement as it lead to 'TypeError: Parameter 'url' must be a string, not undefined' in certain cases [`c9b6895`](https://github.com/http-party/node-http-proxy/commit/c9b6895c5e14add6aba4f826a2173458a1896a5f) +- Harmon messsage [`4e42354`](https://github.com/http-party/node-http-proxy/commit/4e42354e77d5731a383d516fc0b249d5d0eda745) + +## [v0.9.1](https://github.com/http-party/node-http-proxy/compare/v0.9.0...v0.9.1) - 2013-03-09 + +### Commits + +- [dist doc] Updated CHANGELOG.md for `v0.9.1` [`ea5e214`](https://github.com/http-party/node-http-proxy/commit/ea5e214522d8ac34d1129b28ff188c0f232ce63f) +- [dist] Version bump. 0.9.1 [`701dc69`](https://github.com/http-party/node-http-proxy/commit/701dc698e3eb39ca6836a02611d8dce750f4e212) +- [breaking] Ensure that `webSocketProxyError` also receives the error to be consistent with `proxyError` events. [`c78356e`](https://github.com/http-party/node-http-proxy/commit/c78356e9cf27a21c57e4c98ef7dd3c22abe864c2) + +## [v0.9.0](https://github.com/http-party/node-http-proxy/compare/v0.8.7...v0.9.0) - 2013-03-09 + +### Merged + +- If HTTP 1.1 is used and backend doesn't return 'Connection' header, expicitly return Connection: keep-alive. [`#298`](https://github.com/http-party/node-http-proxy/pull/298) +- add "with custom server logic" to the "Proxying WebSockets" section of the readme [`#332`](https://github.com/http-party/node-http-proxy/pull/332) +- routing proxy 'this' reference bug? [`#365`](https://github.com/http-party/node-http-proxy/pull/365) +- fixed issue #364 'proxyError' event emitted twice [`#374`](https://github.com/http-party/node-http-proxy/pull/374) +- Misleading documentation for Websockets via .createServer [`#349`](https://github.com/http-party/node-http-proxy/pull/349) + +### Fixed + +- [api test] Manually merge #195 from @tglines since that fork was deleted. Update tests to use new macros. Fixes #195. Fixes #60. [`#195`](https://github.com/http-party/node-http-proxy/issues/195) [`#60`](https://github.com/http-party/node-http-proxy/issues/60) +- [fix] Set "content-length" header to "0" if it is not already set on DELETE requests. Fixes #338. [`#338`](https://github.com/http-party/node-http-proxy/issues/338) +- [fix] Do not use "Transfer-Encoding: chunked" header for proxied DELETE requests with no "Content-Length" header. Fixes #373. [`#373`](https://github.com/http-party/node-http-proxy/issues/373) +- [fix] http-proxy should not modify the protocol in redirect request for external sites. Fixes #359. [`#359`](https://github.com/http-party/node-http-proxy/issues/359) +- [fix] Emit `notFound` event when ProxyTable location does not exist. Fixes #355. Fixes #333. [`#355`](https://github.com/http-party/node-http-proxy/issues/355) [`#333`](https://github.com/http-party/node-http-proxy/issues/333) +- [fix] Make options immutable in `RoutingProxy`. Fixes #248. [`#248`](https://github.com/http-party/node-http-proxy/issues/248) +- [fix] Remove special case handling of `304` responses since it was fixed in 182dcd3. Fixes #322. [`#322`](https://github.com/http-party/node-http-proxy/issues/322) +- [fix] Ensure `response.headers.location` is defined. Fixes #276. [`#276`](https://github.com/http-party/node-http-proxy/issues/276) + +### Commits + +- [minor] s/function(/function (/ s/){/) {/ [`9cecd97`](https://github.com/http-party/node-http-proxy/commit/9cecd97153ccce4f81c5eda35a49079e651fb27a) +- working on x-forwarded-for [`1332409`](https://github.com/http-party/node-http-proxy/commit/133240937dc63aca0007388327837bc24808f79a) +- Routing Proxy was not sending x-forward-*. Fixing It... [`916d44e`](https://github.com/http-party/node-http-proxy/commit/916d44e3d2a17bb9d5178f347ddad9796b988e05) +- Added timeout option and test to test new timeout parameter, added requestFail assertion. [`89d43c2`](https://github.com/http-party/node-http-proxy/commit/89d43c20dd0dec1dda1fd70e57f3f250b9e3b431) +- Add tests for headers bug fixes [`ecb5472`](https://github.com/http-party/node-http-proxy/commit/ecb547223f3f1d9bf551842c2026ee2f1a18638a) +- Added simple round robin example with websocket support [`83fbd42`](https://github.com/http-party/node-http-proxy/commit/83fbd4250660f41de1ab2b5490a3bf58200ae148) +- - support unix donain sockets and windows named pipes (socketPath) on node 0.8.x. On node 0.6.x the support was opaque via port, but on the new node, socketPath should be set explicitely. [`ffe74ed`](https://github.com/http-party/node-http-proxy/commit/ffe74ed299f81206b898147dbcc985519b2921f8) +- pathnameOnly flag added. Ignores hostname and applies routing table to the paths being requested. [`46b078a`](https://github.com/http-party/node-http-proxy/commit/46b078a98d10de7726a3bbca89121acc57ad7625) +- [doc] added comments to pathnameOnly block. [`5e6be6c`](https://github.com/http-party/node-http-proxy/commit/5e6be6ccf5a39ff450e57d7b24e374a83569fa85) +- remove offending code, final fix for issue #364 [`3b84e27`](https://github.com/http-party/node-http-proxy/commit/3b84e27ab4efd5ce3b8ac837d699d4ff6661c7e7) +- memory leak fix in closing of the scokets [`2055d0c`](https://github.com/http-party/node-http-proxy/commit/2055d0c8ec16699ffb06adf6d64d9506920b2071) +- Fix truncated chunked responses [`ef66833`](https://github.com/http-party/node-http-proxy/commit/ef66833c4d7f07ae9f42026f2bcc0fbca2440579) +- Re-added previous description [`603106a`](https://github.com/http-party/node-http-proxy/commit/603106a13d28c0199fa4456cc9aee1692eb2588c) +- pathnameOnly option documented in the Readme.md [`a1607c1`](https://github.com/http-party/node-http-proxy/commit/a1607c1684a7d7617e5148a0dca882eb08a9f03b) +- [fix minor] Prevent crashes from attempting to remove listeners more than once when proxying websocket requests. [`a681493`](https://github.com/http-party/node-http-proxy/commit/a681493371ae63f026e869bf58b6fea682dc5de3) +- Added comments [`64efa7f`](https://github.com/http-party/node-http-proxy/commit/64efa7f9291a2377a32e942a247700b71b107993) +- Revert "[fix minor] Prevent crashes from attempting to remove listeners more than once when proxying websocket requests." [`c6da760`](https://github.com/http-party/node-http-proxy/commit/c6da760ca9f375025229fe3fc174aca943362f38) +- [doc dist] Update CHANGELOG.md for `v0.9.0`. [`133115c`](https://github.com/http-party/node-http-proxy/commit/133115c9760130dcef447efbd18c470c08795c90) +- add support for loading CA bundles [`10f6b05`](https://github.com/http-party/node-http-proxy/commit/10f6b0577518bdfcb6b43c1f516dc988bdcade53) +- problem: don't want to run my server as root to bind to privileged ports (e.g. 80, 443). [`2c36507`](https://github.com/http-party/node-http-proxy/commit/2c3650746cd90fed63b140a8d393e18bd35cd8f9) +- Add 'proxyResponse' event so observer can modify response headers or abort response. [`3b86a7a`](https://github.com/http-party/node-http-proxy/commit/3b86a7aae3fc366c5fa8645285a4368dbac7a0dc) +- [minor] Move private helper to end of file. [`476cbe7`](https://github.com/http-party/node-http-proxy/commit/476cbe741fc41b7f1eb269d841d922784e8b3c6b) +- Fix for retaining large slab buffers in node core [`d2888c8`](https://github.com/http-party/node-http-proxy/commit/d2888c83f5eab3fb82425ef4fd51e62621bf2764) +- [dist] Update `devDependencies` [`ad21310`](https://github.com/http-party/node-http-proxy/commit/ad213106d06cfc79004841f04b8e73fe7d7ef67a) +- [minor] Small whitespace compliance. [`ea0587a`](https://github.com/http-party/node-http-proxy/commit/ea0587a8f98b1eedc38c66b69293ae091e24be6e) +- [doc fix] Add undefined var in example. [`deca756`](https://github.com/http-party/node-http-proxy/commit/deca7565c51fd678354d26eaae7fe2481e36e2c3) +- working on x-forwarded-for [`31fc94a`](https://github.com/http-party/node-http-proxy/commit/31fc94aa5e43c54033d5384caaf104eebf3889bd) +- Allow event observers to access upstream response headers and data. [`4c130f5`](https://github.com/http-party/node-http-proxy/commit/4c130f5dac5f2cfbfc2618446b86244aff4cb04f) +- [fix doc] Fix bad variable reference in `README.md`. [`440013c`](https://github.com/http-party/node-http-proxy/commit/440013c263a96c6681bfe92a8f56db93b58efa8d) +- Change wording for handling websocket proxy events [`ee6bbe0`](https://github.com/http-party/node-http-proxy/commit/ee6bbe00244c90bd532b11ff1c796aea8c7372f8) +- [dist] Version bump. 0.9.0 [`c68e038`](https://github.com/http-party/node-http-proxy/commit/c68e0389120d8530e578e20496d8ee091e69a580) +- fix 'this' reference in routing proxy listener bindings [`15afc23`](https://github.com/http-party/node-http-proxy/commit/15afc23a275f3fa16653fff6179368122661a0af) +- cleanning [`8d87399`](https://github.com/http-party/node-http-proxy/commit/8d8739999fcaf4cdd8f2471046f6f036c44dc8f7) +- cleanning [`9672b99`](https://github.com/http-party/node-http-proxy/commit/9672b9927156a0dfe3ce4539f380aaf3172f6267) +- Fix typo which slipped in during patch clean-up [`ba65a48`](https://github.com/http-party/node-http-proxy/commit/ba65a485fcf7230e85cee77f6eefcd17e46c8f86) +- Remove data event that is not needed after-all. [`b1c4bd6`](https://github.com/http-party/node-http-proxy/commit/b1c4bd61e8ae5705d4cc97bf719c381554671967) + +## [v0.8.7](https://github.com/http-party/node-http-proxy/compare/v0.8.6...v0.8.7) - 2012-12-22 + +### Commits + +- [fix] Handle errors on request object [`edfe869`](https://github.com/http-party/node-http-proxy/commit/edfe86915941e465a06c1d0a3330ee32e5834aa6) +- [dist] Bump version to 0.8.7 [`26d3646`](https://github.com/http-party/node-http-proxy/commit/26d3646ff252129f35525ab0540a31f5617a31d2) +- [fix] Don't remove `error` listener after response ends [`223eacd`](https://github.com/http-party/node-http-proxy/commit/223eacda85a4267f2860f6c46f7dedfa9db8c224) + +## [v0.8.6](https://github.com/http-party/node-http-proxy/compare/v0.8.5...v0.8.6) - 2012-12-21 + +### Merged + +- http-proxy: 304 responses should emit 'end' too [`#337`](https://github.com/http-party/node-http-proxy/pull/337) + +### Commits + +- [bench] Remove silly "benchmarks" [`2bd9cd9`](https://github.com/http-party/node-http-proxy/commit/2bd9cd9adb6cea6763930468d22cb56fffab6218) +- [bench] Add a benchmark for websockets throughput [`6797a27`](https://github.com/http-party/node-http-proxy/commit/6797a2705a309d19a655ab468bcc80ba2e43cf41) +- [fix] Handle socket errors [`2a61ec8`](https://github.com/http-party/node-http-proxy/commit/2a61ec85bdaeed9a5fca2a117efb36a7f76becc4) +- [dist] Update `devDependencies` [`b81d9b7`](https://github.com/http-party/node-http-proxy/commit/b81d9b71daa32a571384cff29d81227993299236) +- [dist] Bump version to 0.8.6 [`6cd78f6`](https://github.com/http-party/node-http-proxy/commit/6cd78f6af9ca08b8797c409896eea2ae6bb6d835) +- [bench] More exact size display [`7bc1a62`](https://github.com/http-party/node-http-proxy/commit/7bc1a628feab78f8931e9e6481737dd871debfeb) + +## [v0.8.5](https://github.com/http-party/node-http-proxy/compare/v0.8.4...v0.8.5) - 2012-11-16 + +### Merged + +- lib: allow overriding maxSockets [`#323`](https://github.com/http-party/node-http-proxy/pull/323) + +### Fixed + +- [fix] Convert strings to numbers if possible in `.createServer` [`#321`](https://github.com/http-party/node-http-proxy/issues/321) + +### Commits + +- [test] Delete invalid core test [`886a395`](https://github.com/http-party/node-http-proxy/commit/886a395429f20163992ca76e7b0d059256f56ba6) +- [test] Upgrade `common.js` from node core [`fefbf04`](https://github.com/http-party/node-http-proxy/commit/fefbf04ac03126858bdad07df7b10131a46e17d6) +- add "with custom server logic" to the "Proxying WebSockets" section of the readme.md [`03dbe11`](https://github.com/http-party/node-http-proxy/commit/03dbe115c2b088737e5b9abcadf91a8298f56f1f) +- [test] Kill child process when exiting test runner [`74ec175`](https://github.com/http-party/node-http-proxy/commit/74ec1757153c503ce57eb552031648fe79731d48) +- [fix] Correctly kill test processes [`b8c27ed`](https://github.com/http-party/node-http-proxy/commit/b8c27ed565e416827b7c4bb123aa9ee119d008e6) +- [test] Make global detection work with older node versions [`3531fd6`](https://github.com/http-party/node-http-proxy/commit/3531fd609a8ce156d27c27ca38ac912a73aebfeb) +- [dist] Bump version to 0.8.5 [`22639b3`](https://github.com/http-party/node-http-proxy/commit/22639b378189ec78f9962dde64337df050e29a6f) +- [test] Run core tests on `npm test` [`41c9a9c`](https://github.com/http-party/node-http-proxy/commit/41c9a9caad679221b8f1d4dcfb74f9b2bdb8270b) +- [test] Stop testing on `node v0.9`, tests timeout [`9042665`](https://github.com/http-party/node-http-proxy/commit/9042665ea98a6587e1d6800e51d3c354c0a1b20a) + +## [v0.8.4](https://github.com/http-party/node-http-proxy/compare/v0.8.2...v0.8.4) - 2012-10-23 + +### Merged + +- Events patch [`#320`](https://github.com/http-party/node-http-proxy/pull/320) +- documentation for options [`#315`](https://github.com/http-party/node-http-proxy/pull/315) +- Added travis build status [`#308`](https://github.com/http-party/node-http-proxy/pull/308) +- Fix installation instructions: s/http/https/ [`#302`](https://github.com/http-party/node-http-proxy/pull/302) +- If supplied pass changeOrigin option through to HttpProxy instance if set in RoutingProxy [`#285`](https://github.com/http-party/node-http-proxy/pull/285) + +### Commits + +- [fix test] Fix examples to use newest version of socket.io and helpers. Added tests for ensuring that examples require as expected with no errors. [`fd648a5`](https://github.com/http-party/node-http-proxy/commit/fd648a529090cefc202613fff3fdfec9ba0e6a72) +- [fix] spdy should look like https when forwarding (until we get a client) [`698b01d`](https://github.com/http-party/node-http-proxy/commit/698b01da8e1fe6195b00e5006032d262a0a86f4e) +- [docs] options [`4c8e1d9`](https://github.com/http-party/node-http-proxy/commit/4c8e1d96a36523a548959415903bc669ebcc138d) +- http-proxy: emit websocket:start [`5df6e7b`](https://github.com/http-party/node-http-proxy/commit/5df6e7bdb8d4685a18e94ff1bf117ce8eff8d1c9) +- [fix] `destroy()` websockets in case of an error [`0d00b06`](https://github.com/http-party/node-http-proxy/commit/0d00b06af307dc5c70c36e89617a08486eb665e2) +- [fix] Suppress EADDRINUSE errors from `test/examples-test.js` since we are just looking for require-time errors. Isolate tests to ensure idempotency of ports [`c4a7b15`](https://github.com/http-party/node-http-proxy/commit/c4a7b1584302fe12a8fc06b6774db5ff602c3607) +- [docs] more options [`d4cb9da`](https://github.com/http-party/node-http-proxy/commit/d4cb9dad6ce36a823c9e8970e0bb3266d844e536) +- If HTTP 1.1 is used and backend doesn't return 'Connection' header, explicitly [`850171c`](https://github.com/http-party/node-http-proxy/commit/850171cdc41cb93343f7c31f650ac908a8d2dacb) +- [refactor] Pass all options to `Agent` constructor [`eafdc74`](https://github.com/http-party/node-http-proxy/commit/eafdc744b67b33b5ed3cfc80de84dafcd850bdd0) +- Fix socket leaks when FIN packet isn't responded to [`24b8406`](https://github.com/http-party/node-http-proxy/commit/24b84068eac1c704d9f8df3dc833b976850c328f) +- [fix] Partial fix for rejecting self-signed certs in tests [`2e7d8a8`](https://github.com/http-party/node-http-proxy/commit/2e7d8a88f4b470dcc9da1639fe2a69e03251036c) +- [fix] Dont use `-i` when running vows because it supresses `--target=` and `--proxy=` CLI arguments [`1783ab0`](https://github.com/http-party/node-http-proxy/commit/1783ab0625743355eecc11f5cfd57469c429daa0) +- [test] Add `node v0.9` testing, test all branches [`4f6387c`](https://github.com/http-party/node-http-proxy/commit/4f6387c17f55c23da4aac161cf2e5a4dd2a25c40) +- [minor] Remove `setEncoding` on incoming socket [`812868d`](https://github.com/http-party/node-http-proxy/commit/812868ddfc720b6c4fd26603c2fe4d5ae68f2492) +- [dist] v0.8.3 [`a89a5b8`](https://github.com/http-party/node-http-proxy/commit/a89a5b80889a56dd31634096bc6546b6b7b26da2) +- [fix] Ignore npm version errors when installing dependencies for examples [`a454666`](https://github.com/http-party/node-http-proxy/commit/a454666e7a0465ed65b7bbd29cf1b0c6c126d153) +- [fix] function [`213e03c`](https://github.com/http-party/node-http-proxy/commit/213e03c99844c5c984fbf857bae32095165a1e8f) +- [dist] Bump version to 0.8.4 [`4d7e8a8`](https://github.com/http-party/node-http-proxy/commit/4d7e8a808d83d3db1b729820aba5f481ab3d18f4) +- [minor doc] Correct comment [`cee27fe`](https://github.com/http-party/node-http-proxy/commit/cee27feeddf9b4db06917dfa9e59e6bcd7e14c27) + +## [v0.8.2](https://github.com/http-party/node-http-proxy/compare/v0.8.1...v0.8.2) - 2012-07-22 + +### Merged + +- Add example for gzip middleware using a proxy table. [`#221`](https://github.com/http-party/node-http-proxy/pull/221) +- Implement RoutingProxy.prototype.remove [`#246`](https://github.com/http-party/node-http-proxy/pull/246) +- prefer `target.hostname` over `target.host` [`#235`](https://github.com/http-party/node-http-proxy/pull/235) +- add "Using two certificiates" to the https section of the readme.md [`#275`](https://github.com/http-party/node-http-proxy/pull/275) +- Add support for setting the host in the executable [`#268`](https://github.com/http-party/node-http-proxy/pull/268) +- Hi! I fixed some calls to "sys" for you! [`#270`](https://github.com/http-party/node-http-proxy/pull/270) +- Fix bug: x-forwarded-proto set incorrectly as httphttps or wswss [`#266`](https://github.com/http-party/node-http-proxy/pull/266) + +### Commits + +- [refactor] Rewrite tests to use saner vows idioms. Update tests to use latest socket.io [`4ae7a5b`](https://github.com/http-party/node-http-proxy/commit/4ae7a5b84011bb5b9ec3a36ded4c5e5b3330db80) +- [dist] Remove out-dated docco docs [`2d75510`](https://github.com/http-party/node-http-proxy/commit/2d75510d827c770c30a7292c31ef0f2007da7086) +- [refactor test] Finish removing old test code. [`e2dc7f9`](https://github.com/http-party/node-http-proxy/commit/e2dc7f96937e5d565fea16c9f56b9f5d3e427de2) +- [dist] Complete JSHint compliance except for `too many var statements` [`36226da`](https://github.com/http-party/node-http-proxy/commit/36226daa2e4cbc65fae80d2d09fd64c0e7ce36ba) +- [refactor test] Add support for `http*-to-http*` testing from CLI arguments [`828dbeb`](https://github.com/http-party/node-http-proxy/commit/828dbebcaaf11e338a7727bf9d2fff8bfbd3726e) +- [fix api] Optimize lookups in the ProxyTable. Ensure that RoutingProxy can proxy to `https` by default. [`55286a7`](https://github.com/http-party/node-http-proxy/commit/55286a7c499c0fe267f75d8e8441ff89f1e65f99) +- Whitespace fixes. [`04ce49c`](https://github.com/http-party/node-http-proxy/commit/04ce49c5b289acb6ad72303e9ac70c637ea490b2) +- [refactor tests] Finished refactoring tests to support `ws*-to-ws*` tests based on CLI arguments [`7e854d7`](https://github.com/http-party/node-http-proxy/commit/7e854d778b89201f7cb933e8bbda66316b98b0b4) +- [doc] Minor formatting updates to README.md [`6753951`](https://github.com/http-party/node-http-proxy/commit/67539519faf1f32073fdb562404bd897072e24ee) +- [fix] Changed require('util') to require('util') for compatibility with node v0.8 [`bf7e328`](https://github.com/http-party/node-http-proxy/commit/bf7e328fb837de69455c42f41822b0caae2777b6) +- [test] Add .travis.yml file for Travis CI. [`29e6e74`](https://github.com/http-party/node-http-proxy/commit/29e6e748f780629d05635eebb421e8ee1d125058) +- Use changeOrigin for proxyRequest. [`0273958`](https://github.com/http-party/node-http-proxy/commit/0273958b0a5c7823c6212cb6ce6e4f801a215d3b) +- adding support for setting the host [`06e78f2`](https://github.com/http-party/node-http-proxy/commit/06e78f27475165d023fd66afbe5dd626a6a548af) +- match style requested by @cronopio [`415d4ed`](https://github.com/http-party/node-http-proxy/commit/415d4ed908e45332421d683eb45e0d6873b85ae7) +- Fix bug: x-forwarded-proto set incorrectly [`0933f1c`](https://github.com/http-party/node-http-proxy/commit/0933f1c598c1b62a75e040c3ed3ccb262612d3c9) +- [dist] Version bump. 0.8.2 [`13c34d0`](https://github.com/http-party/node-http-proxy/commit/13c34d09b2f8be14fbbe4be77c49b23066667f1b) + +## [v0.8.1](https://github.com/http-party/node-http-proxy/compare/v0.8.0...v0.8.1) - 2012-06-05 + +### Merged + +- [misc] Updating the changelog. Close #137 [`#256`](https://github.com/http-party/node-http-proxy/pull/256) +- Fix problem with req.url not being not properly replaced. [`#218`](https://github.com/http-party/node-http-proxy/pull/218) +- Re-emit 'start', 'forward' and 'end' events in RoutingProxy, and fix some hanging issues. [`#216`](https://github.com/http-party/node-http-proxy/pull/216) +- Fixes to make the websockets example work. [`#225`](https://github.com/http-party/node-http-proxy/pull/225) +- [minor] Syntax error [`#222`](https://github.com/http-party/node-http-proxy/pull/222) +- [docs] Making README links consistent with latest project structure. [`#208`](https://github.com/http-party/node-http-proxy/pull/208) +- [docs] improved grammar [`#205`](https://github.com/http-party/node-http-proxy/pull/205) +- proposed doc addition for #180 [`#189`](https://github.com/http-party/node-http-proxy/pull/189) + +### Fixed + +- Merge pull request #256 from nodejitsu/changelog [`#137`](https://github.com/http-party/node-http-proxy/issues/137) +- [misc] Updating the changelog. Close #137 [`#137`](https://github.com/http-party/node-http-proxy/issues/137) + +### Commits + +- Whitespace fixes [`e9fd3f4`](https://github.com/http-party/node-http-proxy/commit/e9fd3f43d7e890f0164b5a03a34f196dd162d043) +- Added example for gzip middleware using a ProxyTable. [`6201328`](https://github.com/http-party/node-http-proxy/commit/62013281b8a980c53a38362f10d746bfbf36c52e) +- [examples] Added simple load balancer example [`fd7fcd8`](https://github.com/http-party/node-http-proxy/commit/fd7fcd8decbf0c7ab00cab84e151991e380b8fae) +- [dist] Update author field for consistency [`27316e2`](https://github.com/http-party/node-http-proxy/commit/27316e22e8e7786252583cdb9131cfd8cacb07c1) +- Add documentation for listening for proxy events to prevent a common mistake. [`4f2bc58`](https://github.com/http-party/node-http-proxy/commit/4f2bc58431c7f44d486ee8c1ee3136b3637f9405) +- Fix RoutingProxy hanging when there is an error [`b26b434`](https://github.com/http-party/node-http-proxy/commit/b26b434e9fc501f7e0c4a966dbee6220c355bc7c) +- prefer `target.hostname` over `target.host` [`c4d185d`](https://github.com/http-party/node-http-proxy/commit/c4d185dca9696c77d5c38d24d897c2679f6762a0) +- [doc] Fix style in websockets example [`ed06af9`](https://github.com/http-party/node-http-proxy/commit/ed06af97efe406ea2533009be64a6b568f9d0601) +- Add tests for remapping URL properly. [`5d839dd`](https://github.com/http-party/node-http-proxy/commit/5d839dd5f8890c6d2af96807b96d1bd5bb0f7276) +- fixed comment typos in examples/http/proxy-https-to-http.js and proxy-https-to-https.js, lines 37 and 46 [`868f7e7`](https://github.com/http-party/node-http-proxy/commit/868f7e7a287c4709c541c077f3e2303f45b1f072) +- [misc] changelog updated to version 0.8.1 [`e9a3a30`](https://github.com/http-party/node-http-proxy/commit/e9a3a3012c5507dff46afd3e5cececf43b1717ae) +- Implement RoutingProxy.prototype.remove [`0532995`](https://github.com/http-party/node-http-proxy/commit/0532995dfa0be53d285c886a9922b8915f297d36) +- Making README links consistent with latest project structure. [`7fa6599`](https://github.com/http-party/node-http-proxy/commit/7fa6599f4f2c92bb29bc5fc8a9ba06d704652c5e) +- Address ticket #180 here since that problem is so hard to discover when you run into it. If there was an error, people would search for the error text, but there isn't. [`73e415a`](https://github.com/http-party/node-http-proxy/commit/73e415a22634bfc9e5993377902f67ac3212714a) +- [tests] used socket.io 0.6.17 fixed version for tests [`45d67f4`](https://github.com/http-party/node-http-proxy/commit/45d67f42cba373db4f47765d6a3dd38a7d19dae6) +- [fix] x-forwarded-proto sets properly [`ca37ad7`](https://github.com/http-party/node-http-proxy/commit/ca37ad74367764cca479a1af63bd7491dc79606b) +- [doc] add missing {} to make an object [`843901e`](https://github.com/http-party/node-http-proxy/commit/843901eeeb24611ad24889f13edcbfd5dee4314d) +- fix the broken english and clarified the sentence (I hope) [`e15db4f`](https://github.com/http-party/node-http-proxy/commit/e15db4fb50db3e2191f3ebd30e12eeed9c376bc2) +- Re-emit 'start', 'forward' and 'end' events in RoutingProxy. [`99ee542`](https://github.com/http-party/node-http-proxy/commit/99ee54259eae70c0c680ee82efc7dd184313f182) +- [doc] call listen() to get the server started [`4fc1ee8`](https://github.com/http-party/node-http-proxy/commit/4fc1ee85d35d9feb468f808ddd11aaf186eaedd4) +- syntax error fixed [`5842d0e`](https://github.com/http-party/node-http-proxy/commit/5842d0ee7de875378d9b8ae240748dd2af567be9) +- [dist] Version bump 0.8.1 [`81f6095`](https://github.com/http-party/node-http-proxy/commit/81f6095cf08f84a84ae2bbda7ca0315729638fe0) +- finally removed hidden char [`4358a4c`](https://github.com/http-party/node-http-proxy/commit/4358a4c1225acf8c13536fd742b845166f3a65a6) +- [minor fix] delete white space [`df650d1`](https://github.com/http-party/node-http-proxy/commit/df650d11dd0a47653a4905f871d8d3d6c327d600) + +## [v0.8.0](https://github.com/http-party/node-http-proxy/compare/v0.7.3...v0.8.0) - 2011-12-23 + +### Merged + +- Fix issue where front-end is HTTPS, back-end is HTTP, and server issues a redirect. [`#165`](https://github.com/http-party/node-http-proxy/pull/165) +- Modified the ad-hoc proxy lookup to use _getKey(), rather than the error-prone in-line method. [`#164`](https://github.com/http-party/node-http-proxy/pull/164) +- Allows node-http-proxy to append new values to existing headers for incoming "x-forward-for","x-forward-proto" and "x-forward-port" [`#163`](https://github.com/http-party/node-http-proxy/pull/163) +- [fix] only set one drain listener while paused [`#136`](https://github.com/http-party/node-http-proxy/pull/136) +- [docs] grammar correction [`#134`](https://github.com/http-party/node-http-proxy/pull/134) + +### Fixed + +- [fix] Avoid `Transfer-Encoding: chunked` for HTTP/1.0 client, closes #59. [`#59`](https://github.com/http-party/node-http-proxy/issues/59) + +### Commits + +- [refactor minor] Update vendor/websocket.js to be compatible with node@0.6.x [`ea7fea6`](https://github.com/http-party/node-http-proxy/commit/ea7fea627255ed34d39902438b55e740c7c9b08c) +- [test] Add common.js file from core [`543f214`](https://github.com/http-party/node-http-proxy/commit/543f214361605cffdbee7b233029edf343c358c1) +- [test] Add core `test-http-proxy` test [`feb324b`](https://github.com/http-party/node-http-proxy/commit/feb324b0d4c0a2307493b35be944ed08ffc9187a) +- [test] Add core `test-http` test [`25a9e2d`](https://github.com/http-party/node-http-proxy/commit/25a9e2d217cabef07d6f161f5d6ded49342dbb2f) +- [test] Add core `test-http-host-headers` test [`f298411`](https://github.com/http-party/node-http-proxy/commit/f298411f76a106791f34dd4d31ea033a7bdca9c7) +- [test] Add core `test-http-extra-response` test [`c26ab5e`](https://github.com/http-party/node-http-proxy/commit/c26ab5e46ff2649f0ea6585f20d8f58b7d0cadef) +- [test] Add core `test-http-set-cookies` test [`b3b5cce`](https://github.com/http-party/node-http-proxy/commit/b3b5cce3aee98a7fd5b50fb8e1bd6bd5e1c7512f) +- [test] Add core `test-http-client-abort` test [`7bf8d4a`](https://github.com/http-party/node-http-proxy/commit/7bf8d4a7be668591b350144b4546559abf9a0b5f) +- [test] Add core `test-http-client-upload` test [`7648fe5`](https://github.com/http-party/node-http-proxy/commit/7648fe50c1859597dc390e9e628db938372483e7) +- [test] Add core `test-http-client-upload-buf` test [`5ac9878`](https://github.com/http-party/node-http-proxy/commit/5ac987857c934d07073b853f5243d2d8fc6d8c2b) +- [test] Add core `test-http-upgrade-server2` test [`bc98c0d`](https://github.com/http-party/node-http-proxy/commit/bc98c0dbce154ef266eef83d3c2f737a2d60f0e6) +- [test] Implement basic runner for multiple tests [`a4079c6`](https://github.com/http-party/node-http-proxy/commit/a4079c6a1c8b87334d12d47d67f060cbb1214696) +- [test] Add core `test-http-upload-timeout` test [`60ff181`](https://github.com/http-party/node-http-proxy/commit/60ff181af9c22405d3822ce5955f178ab13de79d) +- [test] Add core `test-http-status-code` test [`82060a5`](https://github.com/http-party/node-http-proxy/commit/82060a53430de05f2dc95450d8487bc8139544d5) +- [test] Add core `test-http-many-keep-alive-connections` test [`4e1ca6e`](https://github.com/http-party/node-http-proxy/commit/4e1ca6e61899b11cad1b437cc9d9490b9d856665) +- [test] Add core `test-http-chunked` test [`d7461f3`](https://github.com/http-party/node-http-proxy/commit/d7461f3206cca0691fbd438545ff325589770627) +- [test] Add core `test-http-head-response-has-no-body-end` test [`13389db`](https://github.com/http-party/node-http-proxy/commit/13389db1bef38a7fc7ddc3ada479a608f033020c) +- [test] Add core `test-http-server-multiheaders` test [`d7f15d0`](https://github.com/http-party/node-http-proxy/commit/d7f15d02f7477c76529fc76daddee5029079eb2d) +- [test] Add core `test-http-multi-line-headers` test [`35d2088`](https://github.com/http-party/node-http-proxy/commit/35d2088c96bacb44b17755176b6e9451ed0299dd) +- [test] Add core `test-http-head-response-has-no-body` test [`f79f3ad`](https://github.com/http-party/node-http-proxy/commit/f79f3adf0295ec5bb7fb9f6525b48ba5209d04c6) +- [refactor] Improved event handler cleanup [`9f92332`](https://github.com/http-party/node-http-proxy/commit/9f923325d08ac018a3325beaa9e0805b5eda61e6) +- [fix minor] Correctly set x-forwarded-proto in WebSocket requests [`c81bae2`](https://github.com/http-party/node-http-proxy/commit/c81bae2fdde3bf0087fe71a39855c61c43ffb145) +- Revert "[refactor] Improved event handler cleanup " [`c83d88e`](https://github.com/http-party/node-http-proxy/commit/c83d88ee88faac10b53cd4296165ed85f26036b4) +- Allowing the common proxy headers' value to be appended in proxy chain scenarios. [`621f9b4`](https://github.com/http-party/node-http-proxy/commit/621f9b425a272421de98a674f1679f0c47912733) +- [test] Add basic test runner [`87999d0`](https://github.com/http-party/node-http-proxy/commit/87999d028880dfccca349c9c44f9e66a613c4d38) +- [examples] Add some hand-crafted middleware [`6e65c20`](https://github.com/http-party/node-http-proxy/commit/6e65c20017a2e1a87dc6d58e847bc6db16440f3c) +- [test] Add core `test-http-malformed-request` test [`a635389`](https://github.com/http-party/node-http-proxy/commit/a6353897cdbe8c380d52a060f5e66784f67ad98e) +- [example] Response modification middleware [`dd83199`](https://github.com/http-party/node-http-proxy/commit/dd8319972c1c2f9421a90a21dce9560fd5ca199f) +- [test] Add core `test-http-head-request` test [`c0857f2`](https://github.com/http-party/node-http-proxy/commit/c0857f2d59c33d91cb3e0c131c44ec1667f592fa) +- [test] Add core `test-http-response-close` test [`f1c0be3`](https://github.com/http-party/node-http-proxy/commit/f1c0be3f0bd2c5e87d44a37ba4f29aafd9903ad4) +- [refactor] core proxy logic. all tests should be passing. [`63ac925`](https://github.com/http-party/node-http-proxy/commit/63ac9252606d23e2003696da1fb34a539abee7ca) +- [test] Add core `test-http-contentLength0` test [`275109b`](https://github.com/http-party/node-http-proxy/commit/275109b2f8c8519c56ca9f456096d4002698fab1) +- [test] Add core `test-http-client-abort2` test [`98bbe54`](https://github.com/http-party/node-http-proxy/commit/98bbe541e4fa581f1b9e2eadb821c0609da6ab81) +- adding tests for url segment proxytable routing [`91e9bb9`](https://github.com/http-party/node-http-proxy/commit/91e9bb90709cc8a361066d6f6b8f51f58bfd7e36) +- [test] Add core `test-http-eof-on-connect` test [`80c216d`](https://github.com/http-party/node-http-proxy/commit/80c216df0cc59b88c6934f795c03ea16a737af34) +- [example] Replace `sys` usages with `util` [`8d701bb`](https://github.com/http-party/node-http-proxy/commit/8d701bb20b593c6cdf0ff1bc35cf83051b21a35e) +- [refactor] Updates to support http2 from @mikeal [`5b52c89`](https://github.com/http-party/node-http-proxy/commit/5b52c896947db42ac01e6038c9170d8859d33aea) +- [refactor] Listen for `socket` events since reverseProxy.socket is no longer set synchronously [`3828616`](https://github.com/http-party/node-http-proxy/commit/38286168161d4f4ad24d2ad95ccd8335e9ed08a4) +- [test] Run tests in `test/core/simple` by default [`68cebbe`](https://github.com/http-party/node-http-proxy/commit/68cebbe0e79ea283eea8a1ca850ab462c66c611a) +- simplify proxytable path segment rewrite logic [`c03a450`](https://github.com/http-party/node-http-proxy/commit/c03a450d9b952e1463ae2609303029e317ff5da2) +- change proxytable routing to route one level shallower [`4d50915`](https://github.com/http-party/node-http-proxy/commit/4d50915373b6afaafc7857a3e9366e8e77315683) +- [docs] Little explanation for test/core directory [`8ca5d83`](https://github.com/http-party/node-http-proxy/commit/8ca5d83497cc106a2456ff7f2ebe3db5c8634d69) +- [minor] Allow user to set `colors.mode` [`48d4a8b`](https://github.com/http-party/node-http-proxy/commit/48d4a8b263faa9acda06651bceeff50881f21b26) +- [minor] Indentation fix [`9e630da`](https://github.com/http-party/node-http-proxy/commit/9e630daf81d10485206ec136c3e1a07fe065ffeb) +- [v0.6] `http.Agent` uses different structure for sockets [`86b4122`](https://github.com/http-party/node-http-proxy/commit/86b4122323ca32d455714b1149b99acce49a9e45) +- [minor] Nicer output from test runner [`5c3d41b`](https://github.com/http-party/node-http-proxy/commit/5c3d41bf4e101d0250fb0b3db4a8dc078104dcad) +- Modified the ad-hoc proxy lookup to use _getKey(), rather than the [`553e7fb`](https://github.com/http-party/node-http-proxy/commit/553e7fbc335a9befd166d472f057aa50452a9d40) +- [fix] When client request is aborted, abort server request [`4d43d81`](https://github.com/http-party/node-http-proxy/commit/4d43d81e5c2d7c8088716d4fd574019f43ebb5ce) +- Fixes memory leak when clients abort connections [`c98ccb4`](https://github.com/http-party/node-http-proxy/commit/c98ccb40e9fe5c5198a1605fa8835efc3ff1856c) +- [fix test] Make test runner exit after test exits [`31a8c68`](https://github.com/http-party/node-http-proxy/commit/31a8c6800ddf8d91b477d980605a4c19284a1648) +- [test dist] Run core tests on `npm test` [`8358ef8`](https://github.com/http-party/node-http-proxy/commit/8358ef8a2bdf817c8ed515be7bc9cec0a9b5f486) +- don't add upgrade handler if a custom handler is passed in [`d6ea3a4`](https://github.com/http-party/node-http-proxy/commit/d6ea3a425c203695394eaba4ce8abd57f7809e98) +- always emit end in 0.4 [`182dcd3`](https://github.com/http-party/node-http-proxy/commit/182dcd34555f361c1bb2b8d2777689e64ce32f87) +- [fix] Fix incorrect depth check. [`3ab02f3`](https://github.com/http-party/node-http-proxy/commit/3ab02f3ad7f2c59d73c621695eb238233c16d09c) +- [minor] Everybody loves Unicode [`38bd906`](https://github.com/http-party/node-http-proxy/commit/38bd906f2bc9322b156b92c47457bb7904f0d23a) +- [test minor] Update copyright notice on test runner [`2ccc5c7`](https://github.com/http-party/node-http-proxy/commit/2ccc5c73eaef30ab5a2af7e456bfcc270583c460) +- [minor] When running tests output only basename [`e109eba`](https://github.com/http-party/node-http-proxy/commit/e109eba9724494737021579938c1094c9dfbc8ee) +- [dist] Version bump. 0.8.0 [`5055689`](https://github.com/http-party/node-http-proxy/commit/5055689a11f3b990f848bf2699e0111d9e708d5f) +- Revert "[dist] Adjusted engines field to allow for 0.6; version bump 0.7.7" [`1e33434`](https://github.com/http-party/node-http-proxy/commit/1e33434fcc4772c233825b5aada7472113c0be50) +- changeOrigin option: set the host header to the proxy destination [`f27d26f`](https://github.com/http-party/node-http-proxy/commit/f27d26f4515c900ea4cf1756ef279257a189e308) +- [dist] Adjusted engines field to allow for 0.6; version bump 0.7.7 [`30dac89`](https://github.com/http-party/node-http-proxy/commit/30dac898f30a8508b4c4b4236e9438987f320167) +- [fix] In routing proxy, match line beginning [`63dfc7f`](https://github.com/http-party/node-http-proxy/commit/63dfc7f1757fc9a1a9bceeb3b035e97be6504692) +- [v0.6] Don't use `agent.appendMessage()` [`6655e01`](https://github.com/http-party/node-http-proxy/commit/6655e0164216449a97090651230266da8ced0150) +- bump version 0.7.4 [`3dfba2b`](https://github.com/http-party/node-http-proxy/commit/3dfba2ba4591e0fcd65ff0bfd012b3ab749a0a02) +- bump version 0.7.6 [`c5dc929`](https://github.com/http-party/node-http-proxy/commit/c5dc9295c711177c165bfb34c67407e1a5a0ed06) +- Revert "update outgoing.headers.host incase the destination does proxying" [`2061c71`](https://github.com/http-party/node-http-proxy/commit/2061c713664b044852fdf67aa5e173e5c3b6d874) +- update outgoing.headers.host incase the destination does proxying [`65b7872`](https://github.com/http-party/node-http-proxy/commit/65b7872e6ad433deae4de823c63629cb341bd649) +- bump version 0.7.5 [`b4d41c3`](https://github.com/http-party/node-http-proxy/commit/b4d41c3628ade82792eb361b095ab014a88d537a) +- [minor] Fix indent on timeout notice [`c4124da`](https://github.com/http-party/node-http-proxy/commit/c4124da4f25860497790fc06c97dde6e8985ab73) +- [minor] Change test runner output order [`b76680b`](https://github.com/http-party/node-http-proxy/commit/b76680b045f69e03759bc119f4827f337a8f395d) +- grammar correction [`729496d`](https://github.com/http-party/node-http-proxy/commit/729496d2898612969f5369e7f1c313cb4034f96c) +- [dist] Test runner depends on `async` [`219b0ff`](https://github.com/http-party/node-http-proxy/commit/219b0ff8f8780cde4714267273b0a1637c84679f) +- [test fix] Remove unnecessary console.log in tests/websocket/websocket-proxy-test.js [`f188f4f`](https://github.com/http-party/node-http-proxy/commit/f188f4ffd8c47b6312cd88c28de7e5ac63565047) +- [test refactor] `test/core/{run => run-single}` [`004be38`](https://github.com/http-party/node-http-proxy/commit/004be38048792d6f1d3efb361a5e7e66d5dbee8d) + +## [v0.7.3](https://github.com/http-party/node-http-proxy/compare/v0.7.2...v0.7.3) - 2011-10-03 + +### Commits + +- added what is necessary for having proxyError on Routing proxywq [`b7adf86`](https://github.com/http-party/node-http-proxy/commit/b7adf866b595f0d64a3ef6bde19271276450e723) +- [dist] Version bump. 0.7.3 [`db185bb`](https://github.com/http-party/node-http-proxy/commit/db185bb303ce9c413b2abccbc885f8ec43b61202) + +## [v0.7.2](https://github.com/http-party/node-http-proxy/compare/v0.7.1...v0.7.2) - 2011-09-30 + +### Merged + +- [fix] Examples have working require paths now. [`#118`](https://github.com/http-party/node-http-proxy/pull/118) + +### Commits + +- [fix] Fixed require paths in examples [`2e8d4c6`](https://github.com/http-party/node-http-proxy/commit/2e8d4c6e49e2e9b27443c0b9ae2b96331715402b) +- [websockets] add latest websockets support [`45ef87e`](https://github.com/http-party/node-http-proxy/commit/45ef87e71bc9cccefe5fb6afc3121fb09b8efbc3) +- [dist] Version bump. 0.7.2 [`ccccc45`](https://github.com/http-party/node-http-proxy/commit/ccccc45f11fbe535017b1806fad43578f143649d) + +## [v0.7.1](https://github.com/http-party/node-http-proxy/compare/v0.7.0...v0.7.1) - 2011-09-21 + +### Merged + +- Readme fixes [`#114`](https://github.com/http-party/node-http-proxy/pull/114) +- #107: Set x-forwarded-for header (amongst others) [`#110`](https://github.com/http-party/node-http-proxy/pull/110) +- command line tool - make sure targetPort is an integer [`#109`](https://github.com/http-party/node-http-proxy/pull/109) + +### Fixed + +- [dist] Version bump v0.7.1, closes #107 #112 [`#107`](https://github.com/http-party/node-http-proxy/issues/107) + +### Commits + +- [test] Added a test for the "x-forwarded-for" header [`66e9820`](https://github.com/http-party/node-http-proxy/commit/66e982060c6c41ad7dfadce1403c8e13d267781a) +- [docs] Updated examples in README.md for 0.7.x API. [`24ef919`](https://github.com/http-party/node-http-proxy/commit/24ef9194953c27fb11a8f1ceb499e5feca11c30c) +- [examples] Updated examples to v0.7.x API. [`8fc8d96`](https://github.com/http-party/node-http-proxy/commit/8fc8d966c4681d514af00516b348105608e13382) +- [examples] More fixes to examples. [`549360a`](https://github.com/http-party/node-http-proxy/commit/549360a462c134cc2b02301070209084ec94c393) +- [fix] x-forwarded http headers should set properly. [`2677bb6`](https://github.com/http-party/node-http-proxy/commit/2677bb6c44244ea0b584db744955bedf7aee2c62) +- [fix] connection.socket -> socket for source of x-forwarded-for data [`1f33943`](https://github.com/http-party/node-http-proxy/commit/1f33943b231cdf2cb619977801c7b0d4e98ab6df) +- Make sure the target port is an integer [`5ba25aa`](https://github.com/http-party/node-http-proxy/commit/5ba25aa3451f131b6c6c8892848a4f236f5b859e) + +## [v0.7.0](https://github.com/http-party/node-http-proxy/compare/v0.6.6...v0.7.0) - 2011-09-10 + +### Fixed + +- [fix] Add `x-forward-*` headers for WebSocket requests. Closes #74 [`#74`](https://github.com/http-party/node-http-proxy/issues/74) +- [doc] Document `setMaxSockets`. Fixes #81 [`#81`](https://github.com/http-party/node-http-proxy/issues/81) + +### Commits + +- [api test dist] Stubbed out the API for the higher-level `RoutingProxy` object to be exposed by `node-http-proxy` [`5927ecd`](https://github.com/http-party/node-http-proxy/commit/5927ecd62a082269c3b6a0ae4f5b4a673784bcdb) +- [api] Finalized the RoutingProxy API [`f765f90`](https://github.com/http-party/node-http-proxy/commit/f765f90ec37defaa2b493f859a982add51e25b76) +- [minor] Move private methods to the bottom of file(s) [`ec03d72`](https://github.com/http-party/node-http-proxy/commit/ec03d72c5d8749aee835f571869f69816be02265) +- [test] Updated tests to reflect finalized API of the RoutingProxy [`734769f`](https://github.com/http-party/node-http-proxy/commit/734769fa9b2c3054d45e33c3e552af80ce3f4740) +- [api doc] Rebuilt httpProxy.createServer() with the newer high-level RoutingProxy API [`598fe2e`](https://github.com/http-party/node-http-proxy/commit/598fe2e38def56518a1f0a8196b2fcb7f1bc569e) +- [minor] Remove commented out debug statements. [`5575bcf`](https://github.com/http-party/node-http-proxy/commit/5575bcf60c87def74d1755b2e5cc73e085dbf8c3) +- [doc] Updated examples [`13eaec5`](https://github.com/http-party/node-http-proxy/commit/13eaec55dc50e2aae164cb8adaa0f1a3c5a66c68) +- Add flow control [`6a7fd14`](https://github.com/http-party/node-http-proxy/commit/6a7fd14bfa9f25694d75cf490e32817ff15a94fe) +- Add flow control [`2b9e09b`](https://github.com/http-party/node-http-proxy/commit/2b9e09b00ac40e6c6de2b68754df7b8e8c1e3878) +- Emit drain if it doesn't happen on its own in 100ms [`37e2541`](https://github.com/http-party/node-http-proxy/commit/37e25418916a31e4a513ee5866d6013858d579cf) +- resume() can throw [`558a8a4`](https://github.com/http-party/node-http-proxy/commit/558a8a4f79716496dbdee13759c8641606458c05) +- [fix] Memory leak hunting. [`ca1d12c`](https://github.com/http-party/node-http-proxy/commit/ca1d12cf1bbfbe98b5159f9c02e2f6c818a1c749) +- Emit drain if it doesn't happen on its own in 100ms [`84be9f2`](https://github.com/http-party/node-http-proxy/commit/84be9f2c3a244c7dbfe2c6320fa26d85cf80ec31) +- resume() can throw [`0c71119`](https://github.com/http-party/node-http-proxy/commit/0c71119ee58ee84068120be72308ecb28cb3e532) +- [dist] Update examples/package.json to conform to nodejitsu style guidelines [`2937229`](https://github.com/http-party/node-http-proxy/commit/29372298208135f571538cc29dcc05f41f79b01c) +- Fixed large DoS vector in the middleware implementation [`0e36912`](https://github.com/http-party/node-http-proxy/commit/0e36912906640fdb007e0492b75c3f6a7b580ec6) +- [api] Added new `close()` method which cleans up sockets from HttpProxy instances [`0eae2a9`](https://github.com/http-party/node-http-proxy/commit/0eae2a913a2173d85478f8c9deec929388284ee2) +- Fixed large DoS vector in the middleware implementation [`07c8d2e`](https://github.com/http-party/node-http-proxy/commit/07c8d2ee6017264c3d4deac9f42ca264a3740b48) +- [minor] More contextual errors when middleware(s) error [`38315f6`](https://github.com/http-party/node-http-proxy/commit/38315f6b1f7b01bc6e55587878a57590135945c0) +- [dist] Update scripts in package.json [`6e1ade0`](https://github.com/http-party/node-http-proxy/commit/6e1ade0bb8174b744abb58df72b098bd96134ca4) +- [dist] Version bump. 0.7.0 [`0182ba3`](https://github.com/http-party/node-http-proxy/commit/0182ba37cd4c618cd50947ea2addef823349e49f) +- [merge] Merge from significant internal refactor in v0.7.x. No external API changes [`f7010e5`](https://github.com/http-party/node-http-proxy/commit/f7010e5169ac23114b9b35da272e9a041743fbb9) +- [minor] Small update to bin/node-http-proxy [`2cd8256`](https://github.com/http-party/node-http-proxy/commit/2cd8256c4d6089409f603655ea3b3a5ccf1fb065) +- [dist] Update .gitignore [`6c1c554`](https://github.com/http-party/node-http-proxy/commit/6c1c5544515bf17f0e6ed3588e16ae1a75f8a25b) +- [doc] Update README.md [`0ba5023`](https://github.com/http-party/node-http-proxy/commit/0ba5023e82fe8a08ed55194644d147c323368f41) +- [doc] Drop version number from README.md. [`bdf48be`](https://github.com/http-party/node-http-proxy/commit/bdf48bea36eae441c775e9321ab6e17db470bf27) +- [dist] Version bump. 0.7.0 [`00e34a1`](https://github.com/http-party/node-http-proxy/commit/00e34a10bd9ffca9e636b2e5aebb4f18ff6765ec) +- [test] Whitespace fix [`3a4d312`](https://github.com/http-party/node-http-proxy/commit/3a4d312eda08e7a5cecb3c82b04023e22f368e2b) +- [dist] Reorganize examples based on classification(s): http, websocket, or middleware [`81d6c31`](https://github.com/http-party/node-http-proxy/commit/81d6c318758231f77a52fab7de174fcc63b7a243) + +## [v0.6.6](https://github.com/http-party/node-http-proxy/compare/v0.6.5...v0.6.6) - 2011-08-31 + +### Commits + +- Memory leak hunting. [`f4fcf93`](https://github.com/http-party/node-http-proxy/commit/f4fcf934030e84c15cceca620e974aafc35f1691) +- [fix] Add guards to every throw-able res.end call [`e1c41d0`](https://github.com/http-party/node-http-proxy/commit/e1c41d06942b56f6cd65a079ae78b54456a8bbe1) +- [fix] Only set `x-forward-*` headers if req.connection and req.connection.socket [`de4a6fe`](https://github.com/http-party/node-http-proxy/commit/de4a6fe8a5f78460b030e635e5f4a63312cd4a76) +- [dist] Version bump. 0.6.6 [`967884c`](https://github.com/http-party/node-http-proxy/commit/967884c5de311f21b8405a5030730ef8db912531) + +## [v0.6.5](https://github.com/http-party/node-http-proxy/compare/v0.6.4...v0.6.5) - 2011-08-29 + +### Commits + +- [fix] Use `req.connection` for all x-forward-* headers [`f6dc12a`](https://github.com/http-party/node-http-proxy/commit/f6dc12a971fdd892614b32d2a4fb2ff39ddc0e67) +- [dist] Version bump. 0.6.5 [`7beead5`](https://github.com/http-party/node-http-proxy/commit/7beead54654bdc7f9ab4ed0c17000118a3e7b4fc) + +## [v0.6.4](https://github.com/http-party/node-http-proxy/compare/v0.6.3...v0.6.4) - 2011-08-28 + +### Fixed + +- Fix #95 Don't look on req.connection if it's not set. [`#95`](https://github.com/http-party/node-http-proxy/issues/95) + +### Commits + +- [api breaking] Begin refactor to optimize node-http-proxy by managing one instance of HttpProxy per `host:port` location [`d2b0e43`](https://github.com/http-party/node-http-proxy/commit/d2b0e4399e8026d3e2ece78ac8fdb1def6649950) +- [api test] Updated httpProxy.createServer() for new API exposed by simplified HttpProxy object. [`be4562d`](https://github.com/http-party/node-http-proxy/commit/be4562da9fafef8b26856f7f73f6c5a2c4e389b0) +- [test fix] A few minor fixes to ensure basic WebSocket tests are working. Better scope tests by supported protocol [`daf9231`](https://github.com/http-party/node-http-proxy/commit/daf9231a66f10a25782d2227df1b1501099ac5d1) +- [test] Updates for readability [`db10c4a`](https://github.com/http-party/node-http-proxy/commit/db10c4af918c3e4bc448163f4b9e9b9267145d47) +- Add guards to every throw-able res.end call [`7bda25b`](https://github.com/http-party/node-http-proxy/commit/7bda25b1c60d082f0f2fd12fc61b45a33b74f13d) +- [minor] Dont use `.bind()` [`340be42`](https://github.com/http-party/node-http-proxy/commit/340be42797e87fcc11859a771200075e7fe0c5f1) +- [dist] Version bump. 0.6.4 [`216d46d`](https://github.com/http-party/node-http-proxy/commit/216d46dc81bda1aeb0feb1318e34f37bee38c8fb) + +## [v0.6.3](https://github.com/http-party/node-http-proxy/compare/v0.5.11...v0.6.3) - 2011-08-28 + +### Merged + +- This adds a flag to ProxyRequest to disable the setting of x-forwarded-[for|port|proto] [`#73`](https://github.com/http-party/node-http-proxy/pull/73) + +### Fixed + +- Merge branch 'patch-1' of https://github.com/KimSchneider/node-http-proxy [`#80`](https://github.com/http-party/node-http-proxy/issues/80) + +### Commits + +- [minor] Style updates and whitespace cleaning for consistency [`f0917a3`](https://github.com/http-party/node-http-proxy/commit/f0917a3f97e8df2d58252f14c15ec54369c969ae) +- [api] refactor out middlewares from examples. [`2cf4e0a`](https://github.com/http-party/node-http-proxy/commit/2cf4e0a9e6c78dfd093c098fc87100ae71bc9450) +- [docs] add middleware examples (first draft) [`020290a`](https://github.com/http-party/node-http-proxy/commit/020290a162146c4996831f4f13d71c1dc949f508) +- [fix] use routing table mhen proxying WebSockets. [`efa17ef`](https://github.com/http-party/node-http-proxy/commit/efa17ef6cf614b763fc3b76570a24e750e2ddd31) +- Tested & fixed url middleware example, added comments. [`4cc18f4`](https://github.com/http-party/node-http-proxy/commit/4cc18f4217739b0bd1b3ac88287cc8a23d486b6b) +- [minor] add middleware to node-http-proxy [`b54666f`](https://github.com/http-party/node-http-proxy/commit/b54666ff69c574d842ce1349700c6b6248484d24) +- [minor] add middleware to node-http-proxy [`c773eed`](https://github.com/http-party/node-http-proxy/commit/c773eedeb6d0b22e2b41ab9215cfdc064a8095e3) +- [minor] add url-proxying middleware example [`45f3df8`](https://github.com/http-party/node-http-proxy/commit/45f3df80937ffd5854727c91ea6b0e09cf77e160) +- [fix] Removed bad example. [`2626308`](https://github.com/http-party/node-http-proxy/commit/2626308cd845982c82a284b0d0bc064090aaf116) +- [minor] add example to test concurrency [`6ec8d6c`](https://github.com/http-party/node-http-proxy/commit/6ec8d6caace3797841c0447feb081aa7920aa0dd) +- [minor] add example of using middleware to gzip response [`d3c0697`](https://github.com/http-party/node-http-proxy/commit/d3c06973a1bf1f1c54ca55a5d7f93b77133ef9a2) +- support old (port,host) and (options) style when using middlewares [`7976de1`](https://github.com/http-party/node-http-proxy/commit/7976de1121a40f963e18ea0a4673d185f847df4c) +- [minor] Added body decoder middleware example. Needs fixing. [`8eaec35`](https://github.com/http-party/node-http-proxy/commit/8eaec3507456731c1138c0b8ebb4e51dedc7c300) +- [minor dist] Use `pkginfo`. Minor updates to variable scoping in `.createServer()` [`5d0bbb3`](https://github.com/http-party/node-http-proxy/commit/5d0bbb38c3af14907567e2dc7c4f84a915b60ce5) +- [doc] add comments to examples/url-middleware.js [`f6484de`](https://github.com/http-party/node-http-proxy/commit/f6484de4112463c74105db82d27f131d64478f1d) +- Handle cases where res.write throws [`be3a0d8`](https://github.com/http-party/node-http-proxy/commit/be3a0d84a1e75b45bc1fc63fe63cdabd9844eb59) +- [minor] code style changes [`8b48b7e`](https://github.com/http-party/node-http-proxy/commit/8b48b7e0af656fdbd6da2b16ec6365beec47c302) +- [doc] note in readme about middleware [`b5d5eaa`](https://github.com/http-party/node-http-proxy/commit/b5d5eaababa276f7d197e4b6a8a771b364b73139) +- Allow forwarding for x-forwarded-[for|port|proto] to enabled layering of http-proxies. [`404818b`](https://github.com/http-party/node-http-proxy/commit/404818b1dce9e77a917ce9f0c187772eb8c18042) +- [style] tidy [`0f8fe8e`](https://github.com/http-party/node-http-proxy/commit/0f8fe8e2460fd27edfba44989b78aa6b8c9a38e2) +- [fix] do not use middleware code if it's not needed [`2012588`](https://github.com/http-party/node-http-proxy/commit/20125889b362c61c85924810de446e1e7b18d079) +- [minor] minor fixes to gzip middleware example [`caa1f49`](https://github.com/http-party/node-http-proxy/commit/caa1f494ab4effabad6d08272c3606c1d82005ea) +- [minor] default enableXForwarded to true [`e3d95ec`](https://github.com/http-party/node-http-proxy/commit/e3d95ecab24700535184df32f3a97e8699099b7f) +- Updating to enableXForwarded [`ee3506a`](https://github.com/http-party/node-http-proxy/commit/ee3506a8e7262f780eeada331898d42ca0e9838a) +- [api] Expose adapted version of `stack` so it can be used with HttpProxy instances not created by `httpProxy.createServer()` [`5d6e6b9`](https://github.com/http-party/node-http-proxy/commit/5d6e6b9f78eb98b28db01490a36b23c1aade133f) +- The number of maxSockets has to be set after the agent is created. Setting the property in the constructor does not work. [`2caa5d2`](https://github.com/http-party/node-http-proxy/commit/2caa5d2b0d55898c133a0bf3a0048ee969efb121) +- [fix] Dont use res.* in proxyWebSocketRequest [`f7452bc`](https://github.com/http-party/node-http-proxy/commit/f7452bc42d963406f7ee19dfa353d72ce3252dd6) +- [fix] fix syntax errors. close issue #86 [`b8f8499`](https://github.com/http-party/node-http-proxy/commit/b8f84994b0515e12c9d87f89f81a8601be47a6ff) +- [api] merge middleware branch [`e6ff8d6`](https://github.com/http-party/node-http-proxy/commit/e6ff8d6597a977baf0caf4f69c75bfa93d7281f3) +- [dist] Version bump. 0.6.3 [`1389b70`](https://github.com/http-party/node-http-proxy/commit/1389b706b5c1d857c571c2947b7c758b5cc70ca3) +- merged [`5ba0f89`](https://github.com/http-party/node-http-proxy/commit/5ba0f89aa356b2e76f5cf64c16e8578d71c45d8a) +- [fix] handler variable in createServer was global (!) [`25c06a3`](https://github.com/http-party/node-http-proxy/commit/25c06a3a952068de6a24c643cb0c872f7b9a0846) +- [dist] bump version 6.0 [`03475a5`](https://github.com/http-party/node-http-proxy/commit/03475a59445a1c1c1029d0673aafabe63af1e711) +- [dist] bump version 0.6.2 [`d8068a8`](https://github.com/http-party/node-http-proxy/commit/d8068a832d437790ce8680b9b34a9f171d75786c) +- [dist] bump version 5.12 [`5d33ad7`](https://github.com/http-party/node-http-proxy/commit/5d33ad711895b2afcbd6dd5e1c0449cee1ceae7b) +- [dist] bump version 0.6.1 [`fea371d`](https://github.com/http-party/node-http-proxy/commit/fea371dc0a47dfb4f84427e5740e8756f4e5b285) +- [fix] broken RegExp [`549bfea`](https://github.com/http-party/node-http-proxy/commit/549bfeac233888ec84edeec350ed5a7377f3773e) +- [doc] add note on middleware to Using node-http-proxy section of the README [`5bf2d59`](https://github.com/http-party/node-http-proxy/commit/5bf2d59241a7695f43bb89e5cb41ade2ab7a0ad2) + +## [v0.5.11](https://github.com/http-party/node-http-proxy/compare/v0.5.10...v0.5.11) - 2011-06-26 + +### Fixed + +- [api] Simplify the usage for the `.changeHeaders` option. Fixes #34 [`#34`](https://github.com/http-party/node-http-proxy/issues/34) + +### Commits + +- [api doc test] node-http-proxy now emits `websocket:*` on important WebSocket events. Added tests for these features and updated some code docs [`4f85ca0`](https://github.com/http-party/node-http-proxy/commit/4f85ca04e425a7d4df1e46c9cadd6026eeed32f6) +- [doc] Updated docco docs [`f0649d8`](https://github.com/http-party/node-http-proxy/commit/f0649d8d6a9f84ac61d5f173c585fa4307ffb3c3) +- [doc] Added examples/latent-websocket-proxy.js [`fcfe846`](https://github.com/http-party/node-http-proxy/commit/fcfe84626fff15be21ac83ccd69b96bf3ca1f7a2) +- [doc] Added sample for custom error messages using the `proxyError` event [`4cdbf0e`](https://github.com/http-party/node-http-proxy/commit/4cdbf0e8729a0665904b577376240c00e56ad876) +- [doc] Add examples/standalone-websocket-proxy.js [`1ee8ae7`](https://github.com/http-party/node-http-proxy/commit/1ee8ae710497e239716f72d45e2f61ead3995dc3) +- [dist] Version bump. 0.5.11 [`baf0b9e`](https://github.com/http-party/node-http-proxy/commit/baf0b9e25af53e2738812ff78614cc12966e99e3) +- [doc] Small update to code docs [`9d9509f`](https://github.com/http-party/node-http-proxy/commit/9d9509f791c4c566629c2e323259885f1c3db7ed) +- [minor] Add missing space [`b608a02`](https://github.com/http-party/node-http-proxy/commit/b608a029f8aa26f1a74a917e0bec0ac37e4615a0) + +## [v0.5.10](https://github.com/http-party/node-http-proxy/compare/v0.5.9...v0.5.10) - 2011-06-13 + +### Commits + +- [refactor] Manage our own internal list of Agent instances [`887c580`](https://github.com/http-party/node-http-proxy/commit/887c5808c90b7128c040e510e237ddb4d034fe3e) +- [doc] Update docco docs for 0.5.9 [`b4ac4d4`](https://github.com/http-party/node-http-proxy/commit/b4ac4d441fe4fb84d463bd889a5ce8d7f4d596ca) +- [test] Update tests to use `localhost` [`a1cdf00`](https://github.com/http-party/node-http-proxy/commit/a1cdf005b98c422c777c88a7d7baf2eeb91f732d) +- [dist] Version bump. 0.5.10 [`7b574d3`](https://github.com/http-party/node-http-proxy/commit/7b574d3d3e52b09a6445c011b8f2ae0d78282111) +- [doc] Bump version in README.md [`653c6ca`](https://github.com/http-party/node-http-proxy/commit/653c6ca1af607623b653d3148b1bb45a304aab87) + +## [v0.5.9](https://github.com/http-party/node-http-proxy/compare/v0.5.8...v0.5.9) - 2011-05-23 + +### Commits + +- [fix] Change sec-websocket-location header when proxying WSS --> WS. Added test coverage for this scenario [`028d204`](https://github.com/http-party/node-http-proxy/commit/028d2044e71d70b7bc21d339de29e2275c3be5c2) +- [dist] Version bump. 0.5.9 [`57ca62c`](https://github.com/http-party/node-http-proxy/commit/57ca62c878c9a953f2344719556e05492ece3435) + +## [v0.5.8](https://github.com/http-party/node-http-proxy/compare/v0.5.7...v0.5.8) - 2011-05-21 + +### Commits + +- [doc] Regenerate docco docs [`c5fd368`](https://github.com/http-party/node-http-proxy/commit/c5fd368a8d803b6ab47e32e744a6fd6a6ca5361f) +- [doc] Update docco docs [`74120d8`](https://github.com/http-party/node-http-proxy/commit/74120d8988627bb0686d3a26cb8ec1408cc41287) +- [doc] Update to v0.5.7 in code and README.md [`6fd272a`](https://github.com/http-party/node-http-proxy/commit/6fd272ac18240811d8a8a39c85ee483557c414b3) +- [dist] Version bump. 0.5.8. Forwards compatible with new versions of nodejs [`76ecb51`](https://github.com/http-party/node-http-proxy/commit/76ecb51e7b41a23288f922c9c5df3ce40f67bf80) +- [fix] Dont force `Connection: close` now that Keep-Alive is supported [`a86d18b`](https://github.com/http-party/node-http-proxy/commit/a86d18bc7f93d013df715d1f4d88e651846f645d) +- [test] Update to vows description for web-socket-proxy-test.js [`a865fe6`](https://github.com/http-party/node-http-proxy/commit/a865fe662ff04a4badcc90ce2af80d2380c40a85) + +## [v0.5.7](https://github.com/http-party/node-http-proxy/compare/v0.5.6...v0.5.7) - 2011-05-19 + +### Commits + +- [api] Add `x-forwarded-proto` and `x-forwarded-port` to proxied HTTP requests [`421895f`](https://github.com/http-party/node-http-proxy/commit/421895fa308d49628bbbb546d542efa96769c3f4) +- [dist] Version bump. v0.5.7. Only good on node v0.4.7. See issue #48. [`0911c17`](https://github.com/http-party/node-http-proxy/commit/0911c1719e641c6e4342027e8d5d82c47c6f310e) +- [fix] Set `x-forwarded-for` from req.connection.socket.remoteAddress if req.connection.remoteAddress is not defined [`e9b3ec9`](https://github.com/http-party/node-http-proxy/commit/e9b3ec9b1d0ebf427e138176b28af44f0f973670) + +## [v0.5.6](https://github.com/http-party/node-http-proxy/compare/v0.5.5...v0.5.6) - 2011-05-19 + +### Commits + +- [fix doc] Add `error` handler to reverseProxy request when proxying WebSockets to prevent unhandled ParseError. Rename some variables in proxyWebSocketRequest to make the code more readable [`76580c2`](https://github.com/http-party/node-http-proxy/commit/76580c292a152c0007352a9d383f59e48993cd03) +- [doc] Regenerate docco docs [`bd45216`](https://github.com/http-party/node-http-proxy/commit/bd45216bc9207e5016f394a4bfee2bdffcc669c7) +- [api minor] Small refactor to emit `webSocketProxyError` from a single helper function on any of the various `error` events in the proxy chain [`5d2192e`](https://github.com/http-party/node-http-proxy/commit/5d2192e654f23e1b76e0b66554debe1590a3af64) +- [api] Manual merge of #46: add custom `proxyError` event and enable production error handling. [`652cca3`](https://github.com/http-party/node-http-proxy/commit/652cca37ea321ec9d1d55125217df0214c8090b6) +- [dist] Version bump. v0.5.6 Only good on node v0.4.7. See issue #48. [`f1c0f64`](https://github.com/http-party/node-http-proxy/commit/f1c0f641aa14dc3c267de37370a7369c3131c636) + +## [v0.5.5](https://github.com/http-party/node-http-proxy/compare/v0.5.4...v0.5.5) - 2011-05-19 + +### Commits + +- [fix] Change variable references for Websockets, bugs found from using wsbench [`7bf0cae`](https://github.com/http-party/node-http-proxy/commit/7bf0caef9fae86a34719f04f7b9926095fb6a146) +- [dist] Version bump. 0.5.5. Only good on node v0.4.7. See issue #48. [`acacc05`](https://github.com/http-party/node-http-proxy/commit/acacc0561f2efabc0a7859b9a410e954f2dca6fd) + +## [v0.5.4](https://github.com/http-party/node-http-proxy/compare/v0.5.3...v0.5.4) - 2011-05-19 + +### Commits + +- [doc] Update docco docs [`faf2618`](https://github.com/http-party/node-http-proxy/commit/faf2618cf3b53a972779514842bc4264ec9541fa) +- [doc] Update README.md to reflect the new HTTPS to HTTP proxy capabilities [`abc01bc`](https://github.com/http-party/node-http-proxy/commit/abc01bce293f7c1a88f9be08b0540407d2b0f4a1) +- [doc test api] Improve node-http-proxy API to allow for HTTPS to HTTP proxying scenarios. Update tests accordingly. [`895f577`](https://github.com/http-party/node-http-proxy/commit/895f577744e3cbcbb5f479c4aacec5323bb001f7) +- [doc] Update examples for HTTPS to HTTP proxying [`91737fa`](https://github.com/http-party/node-http-proxy/commit/91737fadb640f30d3cd959f29069537473207efd) +- [dist] Version bump. 0.5.4. Only good on node v0.4.7. See issue #48. [`c04eec1`](https://github.com/http-party/node-http-proxy/commit/c04eec1c370ca0eb212c96c0896c27b349f7ea97) +- [minor] Update README.md to conform to Github flavored markdown [`32a15dd`](https://github.com/http-party/node-http-proxy/commit/32a15dd79d860343453c38a7eef8339d7b99718b) +- [minor] Update README.md to conform to Github flavored markdown [`521fe27`](https://github.com/http-party/node-http-proxy/commit/521fe271853632563143fb4b76c032f7afa7831a) + +## [v0.5.3](https://github.com/http-party/node-http-proxy/compare/v0.5.2...v0.5.3) - 2011-05-18 + +### Commits + +- [test] Continued work around Origin mismatch tests [`44a8566`](https://github.com/http-party/node-http-proxy/commit/44a85664a80fd67e20bbc36d280816dbd1a796c5) +- [doc] Regenerate docco docs [`9e36d2d`](https://github.com/http-party/node-http-proxy/commit/9e36d2d2e619be322bb73092db2a9d72ef6709e8) +- [fix test api] Only change Origin headers in WebSocket requests when the `changeOrigin` option is set explicitly. Added tests to ensure Origin and sec-websocket-origin headers match when proxying websockets. [`9c6c4b9`](https://github.com/http-party/node-http-proxy/commit/9c6c4b908b7d6ce67144ba9d41702b5694254099) +- [test] Improve websocket tests to inspect outgoing and incoming HTTP headers to test origin mismatch bugs [`6e679c8`](https://github.com/http-party/node-http-proxy/commit/6e679c8019e1eb62b2b1da48628f89b8046203fd) +- [test] Refined tests to begin checking Origin == Sec-Websocket-Origin [`9ab54ab`](https://github.com/http-party/node-http-proxy/commit/9ab54ab47fc43d98f3182da9c41487f524933783) +- [doc minor] Update docs and code docs for v0.5.3 release [`03b9087`](https://github.com/http-party/node-http-proxy/commit/03b908744612faed82d9233f3b6d4af70368cf3c) +- [dist] Version bump. v0.5.3. Only good on node v0.4.7. See issue #48. [`d9fa261`](https://github.com/http-party/node-http-proxy/commit/d9fa261cdc97aee71279064e536a4a22edbe3b5b) + +## [v0.5.2](https://github.com/http-party/node-http-proxy/compare/v0.5.1...v0.5.2) - 2011-05-17 + +### Merged + +- Readme: fix syntax error, reformat code blocks [`#52`](https://github.com/http-party/node-http-proxy/pull/52) + +### Commits + +- format markdown for syntax highlighting on GitHub [`28f6dc1`](https://github.com/http-party/node-http-proxy/commit/28f6dc153a7d9fa9b6a08637c90765cf3a07fd3e) +- [doc] Regenerate docco docs [`a5e1e3e`](https://github.com/http-party/node-http-proxy/commit/a5e1e3e70d02f32ab86b711ec4b262df5955a1a9) +- [test] Fix tests in https mode [`1ee6bef`](https://github.com/http-party/node-http-proxy/commit/1ee6beff6aa3087e332701fd3cfda70b4e968ce8) +- [fix] Manage bookkeeping for incoming requests to the underlying sockets behind reverse proxied websocket events. Only use the appropriate variables in the closure scope of the `upgrade` event from this bookkeeping [`85223ea`](https://github.com/http-party/node-http-proxy/commit/85223ea0800ad63ea82783c9dc2dc4a0e3345ae8) +- [minor] Fix syntax in examples/ [`ff82946`](https://github.com/http-party/node-http-proxy/commit/ff829467d33d326c588861a46acc2bf9adbdddd2) +- add spacing around code blocks to fix README rendering [`ab8c264`](https://github.com/http-party/node-http-proxy/commit/ab8c264e6d729de81c93982f97875006e52240f0) +- [dist] Use devDependencies in package.json [`e6c52d4`](https://github.com/http-party/node-http-proxy/commit/e6c52d431f8a32e11cd347fbabeb7a03d0d40790) +- don't highlight non-javascript as javascript [`d5b9ba7`](https://github.com/http-party/node-http-proxy/commit/d5b9ba7180376b8a67b9cbfebe9acf7399cab3ed) +- fix syntax error in README example [`332d2d7`](https://github.com/http-party/node-http-proxy/commit/332d2d780ab62ccc996157dacd2498c568816ffc) +- [minor] Ignore npm modules and debug logs [`e90cbd6`](https://github.com/http-party/node-http-proxy/commit/e90cbd6f148633ef7d3e2de06aaabe1cc493cc37) +- [dist] Include docco module as a dev dependency [`d08c2bb`](https://github.com/http-party/node-http-proxy/commit/d08c2bb525ec661c0c8e6539e28605972b1ae9b8) +- [dist] Version bump. 0.5.2. Only good on node v0.4.7. See issue #48. [`360e79a`](https://github.com/http-party/node-http-proxy/commit/360e79a005d298f40f36ee0e25c34fe534311b09) + +## [v0.5.1](https://github.com/http-party/node-http-proxy/compare/v0.5.0...v0.5.1) - 2011-05-10 + +### Commits + +- [dist] Version bump. 0.5.1. Only good on node v0.4.7. See issue #48. [`6c80177`](https://github.com/http-party/node-http-proxy/commit/6c8017734053bc683f32a2b9f0ba18ba0c014855) +- Revert "Fixed "Invalid argument to getAgent" when proxying HTTP" [`40dc9de`](https://github.com/http-party/node-http-proxy/commit/40dc9dee2d1e617af7f85a056d281b4f220f2802) +- [fix] Fix typo in bin/node-http-proxy [`57127a3`](https://github.com/http-party/node-http-proxy/commit/57127a367193bcf12be2b367e1e01cbc57d685fe) +- Merged pull request #39 from timmattison/master. [`ac425d7`](https://github.com/http-party/node-http-proxy/commit/ac425d70ef63b847fe6eb17dbfc4b084d0dd2d20) +- Fixed "Invalid argument to getAgent" when proxying HTTP [`642e158`](https://github.com/http-party/node-http-proxy/commit/642e15805dbd572835bb4fee9527e4f2da658833) + +## [v0.5.0](https://github.com/http-party/node-http-proxy/compare/v0.4.2...v0.5.0) - 2011-04-17 + +### Commits + +- [doc] Breakout demo.js into files in example/. Add web-socket-proxy.js example [`6e4bf6a`](https://github.com/http-party/node-http-proxy/commit/6e4bf6a9cbc400fcd2be420649ce08936417dd83) +- [api test doc] Improve HTTPS support. Update minor documentation. Change tests accordingly. [`bf68dc3`](https://github.com/http-party/node-http-proxy/commit/bf68dc30a5c508bc8f533f52c083206b87963811) +- [api] Update WebSocket support to use http.Agent APIs [`b0b0183`](https://github.com/http-party/node-http-proxy/commit/b0b0183c2b54fa63bd2a6f9c92475c7f56d811a3) +- [api] Update `.proxyRequest()` and `.proxyWebSocketRequest()` APIs to take an options hash instead of a set of arguments. Add HTTPS support. [`cfddd12`](https://github.com/http-party/node-http-proxy/commit/cfddd12e821bd6b07ff2dbf0aa543ddfc3664dca) +- [doc api] Update README.md and CHANGELOG.md for v0.5.0. Update bin/node-http-proxy to read files specified in `config.https` [`212009d`](https://github.com/http-party/node-http-proxy/commit/212009df6b08de3c0c97a4e9ec43f60f6bf49ea6) +- [test] Add WebSocket tests [`4d18ac1`](https://github.com/http-party/node-http-proxy/commit/4d18ac1ae611f84e5e0cc599234124d183d81ffd) +- [doc] Regenerate docco docs [`c485c87`](https://github.com/http-party/node-http-proxy/commit/c485c8742c86b504823020d2cf6c1342a1bcce48) +- [doc test] Small updates to README.md. Update to try require socket.io [`12064d8`](https://github.com/http-party/node-http-proxy/commit/12064d8e5debf674cd5d367e563b699f10a4325e) +- [api] Remove winston logging in favor of custom events [`a89b397`](https://github.com/http-party/node-http-proxy/commit/a89b3976b25516db9b601c0327948f3d90fab006) +- [doc] Update README.md [`bd6a262`](https://github.com/http-party/node-http-proxy/commit/bd6a2622ad67b8c7ec15868037a48048207ce0df) +- [dist] Version bump. v0.5.0 [`ddf31b2`](https://github.com/http-party/node-http-proxy/commit/ddf31b22ec71ef9dacca9c178ee26b6314d9fdf4) +- [api] Update `request` event to be consistent by emitting both `req` and `res`. Add `x-forwarded-for` header. [`a3cb527`](https://github.com/http-party/node-http-proxy/commit/a3cb527be5e42d5192400933bf32a361b8c707c4) +- [api] Emit `end` event when done proxying [`5681fc1`](https://github.com/http-party/node-http-proxy/commit/5681fc1a28ff06dfa91d9bf5512c688235cafac4) +- [minor] Small update to README.md [`40c51a7`](https://github.com/http-party/node-http-proxy/commit/40c51a703baaf050b35f60131d3e78b42e7b0858) +- [dist] Move pgriess' websocket client into vendor/* [`7cbf447`](https://github.com/http-party/node-http-proxy/commit/7cbf44732068dc788d31432553b3bdfcfb39f743) + +## [v0.4.2](https://github.com/http-party/node-http-proxy/compare/v0.4.1...v0.4.2) - 2011-04-13 + +### Commits + +- [dist] Version bump. 0.4.2. Remove `eyes` dependency. [`a5d88aa`](https://github.com/http-party/node-http-proxy/commit/a5d88aaacc209bdceaf0799e99ff82bdce1bdc10) + +## [v0.4.1](https://github.com/http-party/node-http-proxy/compare/v0.4.0...v0.4.1) - 2011-03-20 + +### Commits + +- [dist] Version bump. 0.4.1. Fix package.json [`0d1a3fe`](https://github.com/http-party/node-http-proxy/commit/0d1a3fe99511dda1ac949536a9eb4a045db39979) + +## [v0.4.0](https://github.com/http-party/node-http-proxy/compare/v0.3.1...v0.4.0) - 2011-03-20 + +### Commits + +- [api] Further work on refactor for node 0.4.0 [`e39a9f9`](https://github.com/http-party/node-http-proxy/commit/e39a9f93d2f9ab6ea769fad5e9dda25d022d8a1a) +- [doc] Added docco generated literate coding documentation [`3bc7d16`](https://github.com/http-party/node-http-proxy/commit/3bc7d16adc48ad1aa1161bb02bd0c27d4fb20639) +- [doc api test] Wrap things up for v0.4.0 release: Add hostnameOnly routing to ProxyTable, add more documentation, fix edge-cases until they can be further investigated in node.js core [`5715318`](https://github.com/http-party/node-http-proxy/commit/571531820e2233b0d2f7268a1d4db8510fcabf91) +- [api] First pass at removing pool and working with node v0.4.0 [`9faa924`](https://github.com/http-party/node-http-proxy/commit/9faa924a29544cfd84c28cb1c45489f495e3806a) +- [doc api test] Rename HttpProxy.pause to HttpProxy.resume. Update documentation and tests accordingly [`4110448`](https://github.com/http-party/node-http-proxy/commit/4110448046dd945afe3e092968d9382d573a369a) +- [doc] Added more documentation [`973f19f`](https://github.com/http-party/node-http-proxy/commit/973f19fd5a14e3bfad5f67e54710a4076a469fe0) +- [doc] Regenerate docco docs [`6c42f04`](https://github.com/http-party/node-http-proxy/commit/6c42f045241194061c3786ba5827aebf88070201) +- [api] Force connection header to be `close` until keep-alive is replemented [`3fd3c96`](https://github.com/http-party/node-http-proxy/commit/3fd3c96fa05fda45c7ef9ff44594644ac54f4a1e) +- [dist] Version bump. 0.4.0 [`cbb5fbc`](https://github.com/http-party/node-http-proxy/commit/cbb5fbccd0e65c51eba14e75ef44184714cc8971) +- [api test] All tests are passing when run as individual files [`389159d`](https://github.com/http-party/node-http-proxy/commit/389159da1b91ab60b8de3c379d84e76c703e6b59) +- [minor doc] Update demo and small fix to node-http-proxy [`d8c5406`](https://github.com/http-party/node-http-proxy/commit/d8c54063dc5961fa619f7c04fa2d225da9aa1439) +- [fix] Fixed cli parsing issue when --argument=value is not used [`34cba38`](https://github.com/http-party/node-http-proxy/commit/34cba38c297d6dcb845e95b9e1ce0271da1631d2) +- [test] Small update to proxy-table-test.js [`3588687`](https://github.com/http-party/node-http-proxy/commit/3588687874eb691fe59407a207d38efa418211d0) +- [minor] Expose version on module [`1dd9b3b`](https://github.com/http-party/node-http-proxy/commit/1dd9b3b15088a3c4595faae64822969014a61d52) +- [doc] Update to v0.3.1 in README.md [`8ef2e1f`](https://github.com/http-party/node-http-proxy/commit/8ef2e1fe33e0fca2b80c0d6474dba994e625f094) +- [dist] Change package.json for npm version bump [`0e7f362`](https://github.com/http-party/node-http-proxy/commit/0e7f3626718ecf108f3cafa814b0f4ffb3e6faa2) + +## [v0.3.1](https://github.com/http-party/node-http-proxy/compare/v0.3.0...v0.3.1) - 2010-11-22 + +### Commits + +- [api test doc] Updated tests. Added ProxyTable functionality [`bedc7a3`](https://github.com/http-party/node-http-proxy/commit/bedc7a3ae57d5ec07b372a550fa69772f9fbc19e) +- [test] Simplified tests. Added tests for experimental websocket support [`8c3e993`](https://github.com/http-party/node-http-proxy/commit/8c3e993833e2a09376fdb5e7c847ff00b53e70d8) +- [test doc api] Added forward proxy functionality with tests [`c06f4bf`](https://github.com/http-party/node-http-proxy/commit/c06f4bf7fe50f29677dc5a5aad596193fc893018) +- [dist minor] Removed vendored pool. Changed all references of sys to util [`8251296`](https://github.com/http-party/node-http-proxy/commit/8251296d7f5c472ec523316e905d678042b043d3) +- WebSocket proxy support, fixed 304 code halting [`7249ef3`](https://github.com/http-party/node-http-proxy/commit/7249ef3ee776c66acc95036dc76a2d08dc3f6350) +- [api] pseduo-vendor pool until pull request is finalized [`7c2eb5d`](https://github.com/http-party/node-http-proxy/commit/7c2eb5de3531f20ea92c99dd8ab207d26be9dce8) +- No-server fix [`f84880f`](https://github.com/http-party/node-http-proxy/commit/f84880fcd946e55585d8e901e5bc32933f629837) +- [api test bin doc] Added bin script and simple logging [`00014d6`](https://github.com/http-party/node-http-proxy/commit/00014d624c052e7404ce96c7e06769440c4eae2a) +- [debug] Removed pool as a dependency for stress test [`73381cf`](https://github.com/http-party/node-http-proxy/commit/73381cf71ae92b9ed1c2da5986aa7ca31a7cf2e8) +- 'end' event becomes 'close', added more try-catch handling [`cd78af5`](https://github.com/http-party/node-http-proxy/commit/cd78af5feaa67c5005df921a8d1a61575a58fca2) +- Added support of automatic websocket tunneling, added test for it [`56003b5`](https://github.com/http-party/node-http-proxy/commit/56003b527625b2d83a191f3172005c87856aa87d) +- [debug] Better debug messages to try to determine if pool is slowly losing clients to forever busy [`dd1918d`](https://github.com/http-party/node-http-proxy/commit/dd1918dc360dc0f9553c35c82f3f0f93ac3bfb46) +- [doc dist] Version bump. Added CHANGELOG.md [`de53d5e`](https://github.com/http-party/node-http-proxy/commit/de53d5eb2c3d671be0ad0e736a6435c3bf5f55f4) +- Moved error handling to response.on('end'), fixed error handling in websocket's part [`7e61f0c`](https://github.com/http-party/node-http-proxy/commit/7e61f0cf5725dedf37b956545639c2d6129855d3) +- [minor] Pushing hot-fix from Mikeal for vendored pool repo [`60791f3`](https://github.com/http-party/node-http-proxy/commit/60791f361f8a11f9d1bad2c6366bf0ce72b40f66) +- [api] Integrated commits from donnerjack and worked on pool changes [`3bb458e`](https://github.com/http-party/node-http-proxy/commit/3bb458e115037bc27691705d255b0d2e2504a9f1) +- [doc] Updated Copyright ... added Fedor [`9128a8c`](https://github.com/http-party/node-http-proxy/commit/9128a8c5a15d0f64a0bae946f3e741ea708bc56f) +- [minor] Listen to error event on pool so we dont fail out unexpectedly anymore [`711258e`](https://github.com/http-party/node-http-proxy/commit/711258ef469d064cc0dbe0f0320ed1047ed0bd54) +- adding more debugging messages [`5d54ea5`](https://github.com/http-party/node-http-proxy/commit/5d54ea58c93c26635e0de96871e824baffea34dd) +- adding some debug messages for live testing [`4069a7e`](https://github.com/http-party/node-http-proxy/commit/4069a7e98c22a48bae7fd57ad5f315d0e5006dfc) +- [minor] Listen to error events re-emitted by pool into the ClientRequest [`f8bff4c`](https://github.com/http-party/node-http-proxy/commit/f8bff4c618ab2a6b6185ac973cd0e21cea19c23a) +- [minor] Updated max clients for pool [`32aaf74`](https://github.com/http-party/node-http-proxy/commit/32aaf74e95f8a39d847b352ca984145e7abe89a6) +- [debug] Trying to repair pool busy client growth [`7b0ea85`](https://github.com/http-party/node-http-proxy/commit/7b0ea85e2ac58d5f711f64b855f746fb2423a276) +- [debug] Roll back last commit ... connection = close was ineffective [`266e524`](https://github.com/http-party/node-http-proxy/commit/266e5246eacb4877bb6ab557e6e6b9b8434ad612) + +## [v0.3.0](https://github.com/http-party/node-http-proxy/compare/v0.2.0...v0.3.0) - 2010-09-10 + +### Commits + +- [api] Revert to old 0.1.x codebase for bug testing and performance comparison [`66afb2a`](https://github.com/http-party/node-http-proxy/commit/66afb2a2a35a479512ce2601c89b82f13596fc9f) +- [api test dist doc] Updated for 0.3.0 release [`a9084b9`](https://github.com/http-party/node-http-proxy/commit/a9084b923afa66c3004abec4951ff02e031631da) +- [api] Object creation is cheap for HttpProxy, so lets take advantage [`9f0aeac`](https://github.com/http-party/node-http-proxy/commit/9f0aeacab1a632136f5905a0d03ad04be9f93f51) +- [doc] Update contributors for 0.3.0 [`6d47d98`](https://github.com/http-party/node-http-proxy/commit/6d47d98f5345b7f335c3b93f8e4a31dd90235dda) + +## [v0.2.0](https://github.com/http-party/node-http-proxy/compare/v0.1.5...v0.2.0) - 2010-09-07 + +### Commits + +- [dist] Version bump and update to README + LICENCE. Word to Mikeal for coming thru for 0.2.0 [`69c162d`](https://github.com/http-party/node-http-proxy/commit/69c162dc3da334b2ece0a19be5ea4c8da7e0fe87) +- [api dist] Merge of branch 0.2.0 [`fd61828`](https://github.com/http-party/node-http-proxy/commit/fd618289338ca2d7595f695c0b8531b40145bbca) +- [api] Completely refactored node-http-proxy with help from Mikeal [`1221939`](https://github.com/http-party/node-http-proxy/commit/1221939accf00467adb25f8908e991e984043c85) +- [api minor debug] Remove debug code, set Connection header if not set [`6d08f24`](https://github.com/http-party/node-http-proxy/commit/6d08f24c863e071eb4a0d3ede15656e5e7c27c4b) +- [debug] Added some debugging to figure out why AB wont complete a test with v0.2.0 [`9715ebd`](https://github.com/http-party/node-http-proxy/commit/9715ebd40bdbbe883eb383676d5b0df24968dd72) +- [api] Integrated a little more from Mikeal to make our return headers consistent [`eb39018`](https://github.com/http-party/node-http-proxy/commit/eb39018fd0b5751dd90fabce905997e52f2ffecd) +- [doc] Updated README.md [`f291efb`](https://github.com/http-party/node-http-proxy/commit/f291efbaa4360d6e7ff4004cc11f8df0d737c1d0) + +## v0.1.5 - 2010-09-02 + +### Commits + +- [api] More changes for createServer api [`5d94ae2`](https://github.com/http-party/node-http-proxy/commit/5d94ae27bc2d56d1f817b0cf1dfdb01dcc376393) +- added colors and asciimo [`d490b50`](https://github.com/http-party/node-http-proxy/commit/d490b50ada8c1024cb785335966b71d69fae3407) +- [api] First commit of http-proxy [`30b68c1`](https://github.com/http-party/node-http-proxy/commit/30b68c153270619119ec36615bb54ee7a2816ecc) +- updating demo [`c4b7c0d`](https://github.com/http-party/node-http-proxy/commit/c4b7c0d8a0cc5fd7f43257594bd0a71c7bd12a63) +- initial release v0.1.0, sure to have many updates coming. [`85f7372`](https://github.com/http-party/node-http-proxy/commit/85f73723415ec54539721777e77d5d10de383469) +- fleshing out demo [`994f748`](https://github.com/http-party/node-http-proxy/commit/994f7481ce07c15afa5ab993b79d920b8220be44) +- [docs] added benchmarks [`bbed176`](https://github.com/http-party/node-http-proxy/commit/bbed17640f84e56aaea06c6d4eb7d04952957fce) +- updated paths to use npm [`972c8c0`](https://github.com/http-party/node-http-proxy/commit/972c8c05274c72c7320291389f88b0694ac290ca) +- added spark demo [`d0ad931`](https://github.com/http-party/node-http-proxy/commit/d0ad93176d8430301a8a42f8c2b817674ce7ba32) +- [test] Updated tests to include support for latent requests [`095e86a`](https://github.com/http-party/node-http-proxy/commit/095e86aa653c1c8e07cd1403697e0e4b638b8294) +- started to flesh out simple demo based on tests [`2fb5ffb`](https://github.com/http-party/node-http-proxy/commit/2fb5ffba7765462e95badd0f7243e65395a3fd2e) +- added createServer but hated it, gonna remove [`b1eb13e`](https://github.com/http-party/node-http-proxy/commit/b1eb13eb70b67ea76f5ab720d566894677a53ca2) +- [test] Updated node-http-proxy tests [`2f265a2`](https://github.com/http-party/node-http-proxy/commit/2f265a23e4a10971495d0bd7b324b7ba786e5065) +- [api] Updated request hashes to use a unique identifier [`c887a75`](https://github.com/http-party/node-http-proxy/commit/c887a757623f5a3d7d1e0fafeb00b96731c89872) +- [api] Updated http-proxy to work with vows [`ead7567`](https://github.com/http-party/node-http-proxy/commit/ead7567db8099264a2001fd876cded84bc4f111f) +- [dist] Renamed node-proxy to node-http-proxy, updated package.json [`2f49810`](https://github.com/http-party/node-http-proxy/commit/2f49810ef86f49927991f32ae42605f1118b0c25) +- updating docs, almost there [`6e651f4`](https://github.com/http-party/node-http-proxy/commit/6e651f420f4d1e15dbbf823a8e3b311e9533c805) +- changed api to better reflect nodes api. updated demos, tests, docs [`bde98f4`](https://github.com/http-party/node-http-proxy/commit/bde98f489234fe22f49468011b7e342cd108603f) +- updating docs [`341bbd4`](https://github.com/http-party/node-http-proxy/commit/341bbd404f3fd81e65197b3830c3fa9e544bc1e7) +- fixed npm package, i think. bumped version 0.1.1 [`fca40da`](https://github.com/http-party/node-http-proxy/commit/fca40da694d8df17ed6140265e374c0ceabd1167) +- updated demo [`b622702`](https://github.com/http-party/node-http-proxy/commit/b62270210e7ad3c54fd6b2c86bde9f9942328a67) +- added readme [`d6a2f8a`](https://github.com/http-party/node-http-proxy/commit/d6a2f8aa7dae3f6721b9607a702c68b1ad7fc692) +- [api] Corrected chain of argument passing [`da55777`](https://github.com/http-party/node-http-proxy/commit/da55777a92d100a5ddb7a8267e56ba26bd8c2270) +- updated demo [`e9511ea`](https://github.com/http-party/node-http-proxy/commit/e9511eafdf9ada6a0ce6defb3c5f2299411633b1) +- [deploy] Added package.json [`dce80b9`](https://github.com/http-party/node-http-proxy/commit/dce80b9b4546064da1943e0e396e19b41390588a) +- updated readme [`76d0649`](https://github.com/http-party/node-http-proxy/commit/76d0649abcafd80509af922503c5544e646bcebb) +- update to docs and package.json [`d15bba4`](https://github.com/http-party/node-http-proxy/commit/d15bba4c1d2cbdaf0af27f3adcaa1db9b534d968) +- [minor] Removed eyes dependency [`eaeed83`](https://github.com/http-party/node-http-proxy/commit/eaeed8306d6dc6e1b30223cf6d59cda6d5bb76de) +- merge [`93505a4`](https://github.com/http-party/node-http-proxy/commit/93505a422c688b7f41fdaf304270c893ef4cf09a) +- fixed additional port / server mismatches for new api [`15c18b6`](https://github.com/http-party/node-http-proxy/commit/15c18b612d6cd5a1f3ae46b5590dda1fc586fb35) +- [doc] added nodejitsu.com link to ReadMe. http-proxy is used in our front facing load-balancers. look for bugs...try to improve benchmarks.... ^_^ [`6661753`](https://github.com/http-party/node-http-proxy/commit/6661753f07dcf4e5ae684df4d1709f3c238346c9) +- removed extra self, updated colors requirement, bumped to version 0.1.3 [`9bc5b6f`](https://github.com/http-party/node-http-proxy/commit/9bc5b6f8621fb2a37e84524c3e5b91aab9b45675) +- fixed pathing issue, bumped version 0.1.3 [`ede6490`](https://github.com/http-party/node-http-proxy/commit/ede649037e08b615a8995179f46bc701550354d6) +- updated docs [`07d96bb`](https://github.com/http-party/node-http-proxy/commit/07d96bb8887a7880a21a739e0a8f495698e7e79e) +- updated docs [`1594367`](https://github.com/http-party/node-http-proxy/commit/15943675edef490d9b8732345a750bc5ab1f5d7e) +- updated readme [`fb8c5ab`](https://github.com/http-party/node-http-proxy/commit/fb8c5abd3c2a722c1c18046dcf2fffea4fa7d050) +- updated docs [`17b6c69`](https://github.com/http-party/node-http-proxy/commit/17b6c6998544572300fc9d4faa63af1aee4c3d88) +- updated docs [`c8dd8c4`](https://github.com/http-party/node-http-proxy/commit/c8dd8c4e28e09f25c161980316b259d81d5a4e91) +- updated package.json again [`ddba155`](https://github.com/http-party/node-http-proxy/commit/ddba155377942259554842f37de98c508130fe11) +- initial release v0.1.0, sure to have many updates coming. [`6a1baa2`](https://github.com/http-party/node-http-proxy/commit/6a1baa25ccf9fc3a3fc4d1a4764c968993e48cab) +- bumped to version 0.1.5 [`b195a16`](https://github.com/http-party/node-http-proxy/commit/b195a16406534912161671448a53d6633a1f2458) +- updated readme [`9aa2216`](https://github.com/http-party/node-http-proxy/commit/9aa22162f139ab2fa6df6b11e2a96336ee1d2612) +- added spark demo [`d408e39`](https://github.com/http-party/node-http-proxy/commit/d408e39ed6dbd44709d0164a95ad9bc67f76ba13) +- bumped to version 0.1.4. improved on api [`82b8228`](https://github.com/http-party/node-http-proxy/commit/82b822827d35a54501068f9880111473e19c72f9) +- initial release v0.1.0, sure to have many updates coming. [`1e04552`](https://github.com/http-party/node-http-proxy/commit/1e04552bd8f39e3dcba36bbf7fb36674e5c0c9ff) +- updated readme [`0a2eaaa`](https://github.com/http-party/node-http-proxy/commit/0a2eaaa7db690f86aca8c0b952f745e806ad818c) +- updating docs [`198000f`](https://github.com/http-party/node-http-proxy/commit/198000feefd525125a2031557b3556978a057bde) +- [api] Added createServer api to node-http-proxy [`2e2b55f`](https://github.com/http-party/node-http-proxy/commit/2e2b55f113eb3bc81c43717c0db5de695fb694c1) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/CODE_OF_CONDUCT.md b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000000000000000000000000000000000..29238b798d7d372d9e62518038d9cc6d8ae9e63e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/CODE_OF_CONDUCT.md @@ -0,0 +1,74 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +nationality, personal appearance, race, religion, or sexual identity and +orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or +advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at . All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/LICENSE b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..84820c000caadc2dcb0ff8d32e5b7cd43eb57645 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/LICENSE @@ -0,0 +1,23 @@ + + node-http-proxy + + Copyright (c) 2010-2016 Charlie Robbins, Jarrett Cruger & the Contributors. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/README.md b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5b2d0b3a21543e2939273db3d71338229a5a26b6 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/README.md @@ -0,0 +1,568 @@ +

+ +

+ +# node-http-proxy [![Build Status](https://travis-ci.org/http-party/node-http-proxy.svg?branch=master)](https://travis-ci.org/http-party/node-http-proxy) [![codecov](https://codecov.io/gh/http-party/node-http-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/http-party/node-http-proxy) + +`node-http-proxy` is an HTTP programmable proxying library that supports +websockets. It is suitable for implementing components such as reverse +proxies and load balancers. + +### Table of Contents + * [Installation](#installation) + * [Upgrading from 0.8.x ?](#upgrading-from-08x-) + * [Core Concept](#core-concept) + * [Use Cases](#use-cases) + * [Setup a basic stand-alone proxy server](#setup-a-basic-stand-alone-proxy-server) + * [Setup a stand-alone proxy server with custom server logic](#setup-a-stand-alone-proxy-server-with-custom-server-logic) + * [Setup a stand-alone proxy server with proxy request header re-writing](#setup-a-stand-alone-proxy-server-with-proxy-request-header-re-writing) + * [Modify a response from a proxied server](#modify-a-response-from-a-proxied-server) + * [Setup a stand-alone proxy server with latency](#setup-a-stand-alone-proxy-server-with-latency) + * [Using HTTPS](#using-https) + * [Proxying WebSockets](#proxying-websockets) + * [Options](#options) + * [Listening for proxy events](#listening-for-proxy-events) + * [Shutdown](#shutdown) + * [Miscellaneous](#miscellaneous) + * [Test](#test) + * [ProxyTable API](#proxytable-api) + * [Logo](#logo) + * [Contributing and Issues](#contributing-and-issues) + * [License](#license) + +### Installation + +`npm install http-proxy --save` + +**[Back to top](#table-of-contents)** + +### Upgrading from 0.8.x ? + +Click [here](UPGRADING.md) + +**[Back to top](#table-of-contents)** + +### Core Concept + +A new proxy is created by calling `createProxyServer` and passing +an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L26-L42)) + +```javascript +var httpProxy = require('http-proxy'); + +var proxy = httpProxy.createProxyServer(options); // See (†) +``` +†Unless listen(..) is invoked on the object, this does not create a webserver. See below. + +An object will be returned with four methods: + +* web `req, res, [options]` (used for proxying regular HTTP(S) requests) +* ws `req, socket, head, [options]` (used for proxying WS(S) requests) +* listen `port` (a function that wraps the object in a webserver, for your convenience) +* close `[callback]` (a function that closes the inner webserver and stops listening on given port) + +It is then possible to proxy requests by calling these functions + +```javascript +http.createServer(function(req, res) { + proxy.web(req, res, { target: 'http://mytarget.com:8080' }); +}); +``` + +Errors can be listened on either using the Event Emitter API + +```javascript +proxy.on('error', function(e) { + ... +}); +``` + +or using the callback API + +```javascript +proxy.web(req, res, { target: 'http://mytarget.com:8080' }, function(e) { ... }); +``` + +When a request is proxied it follows two different pipelines ([available here](lib/http-proxy/passes)) +which apply transformations to both the `req` and `res` object. +The first pipeline (incoming) is responsible for the creation and manipulation of the stream that connects your client to the target. +The second pipeline (outgoing) is responsible for the creation and manipulation of the stream that, from your target, returns data +to the client. + +**[Back to top](#table-of-contents)** + +### Use Cases + +#### Setup a basic stand-alone proxy server + +```js +var http = require('http'), + httpProxy = require('http-proxy'); +// +// Create your proxy server and set the target in the options. +// +httpProxy.createProxyServer({target:'http://localhost:9000'}).listen(8000); // See (†) + +// +// Create your target server +// +http.createServer(function (req, res) { + res.writeHead(200, { 'Content-Type': 'text/plain' }); + res.write('request successfully proxied!' + '\n' + JSON.stringify(req.headers, true, 2)); + res.end(); +}).listen(9000); +``` +†Invoking listen(..) triggers the creation of a web server. Otherwise, just the proxy instance is created. + +**[Back to top](#table-of-contents)** + +#### Setup a stand-alone proxy server with custom server logic +This example shows how you can proxy a request using your own HTTP server +and also you can put your own logic to handle the request. + +```js +var http = require('http'), + httpProxy = require('http-proxy'); + +// +// Create a proxy server with custom application logic +// +var proxy = httpProxy.createProxyServer({}); + +// +// Create your custom server and just call `proxy.web()` to proxy +// a web request to the target passed in the options +// also you can use `proxy.ws()` to proxy a websockets request +// +var server = http.createServer(function(req, res) { + // You can define here your custom logic to handle the request + // and then proxy the request. + proxy.web(req, res, { target: 'http://127.0.0.1:5050' }); +}); + +console.log("listening on port 5050") +server.listen(5050); +``` + +**[Back to top](#table-of-contents)** + +#### Setup a stand-alone proxy server with proxy request header re-writing +This example shows how you can proxy a request using your own HTTP server that +modifies the outgoing proxy request by adding a special header. + +```js +var http = require('http'), + httpProxy = require('http-proxy'); + +// +// Create a proxy server with custom application logic +// +var proxy = httpProxy.createProxyServer({}); + +// To modify the proxy connection before data is sent, you can listen +// for the 'proxyReq' event. When the event is fired, you will receive +// the following arguments: +// (http.ClientRequest proxyReq, http.IncomingMessage req, +// http.ServerResponse res, Object options). This mechanism is useful when +// you need to modify the proxy request before the proxy connection +// is made to the target. +// +proxy.on('proxyReq', function(proxyReq, req, res, options) { + proxyReq.setHeader('X-Special-Proxy-Header', 'foobar'); +}); + +var server = http.createServer(function(req, res) { + // You can define here your custom logic to handle the request + // and then proxy the request. + proxy.web(req, res, { + target: 'http://127.0.0.1:5050' + }); +}); + +console.log("listening on port 5050") +server.listen(5050); +``` + +**[Back to top](#table-of-contents)** + +#### Modify a response from a proxied server +Sometimes when you have received a HTML/XML document from the server of origin you would like to modify it before forwarding it on. + +[Harmon](https://github.com/No9/harmon) allows you to do this in a streaming style so as to keep the pressure on the proxy to a minimum. + +**[Back to top](#table-of-contents)** + +#### Setup a stand-alone proxy server with latency + +```js +var http = require('http'), + httpProxy = require('http-proxy'); + +// +// Create a proxy server with latency +// +var proxy = httpProxy.createProxyServer(); + +// +// Create your server that makes an operation that waits a while +// and then proxies the request +// +http.createServer(function (req, res) { + // This simulates an operation that takes 500ms to execute + setTimeout(function () { + proxy.web(req, res, { + target: 'http://localhost:9008' + }); + }, 500); +}).listen(8008); + +// +// Create your target server +// +http.createServer(function (req, res) { + res.writeHead(200, { 'Content-Type': 'text/plain' }); + res.write('request successfully proxied to: ' + req.url + '\n' + JSON.stringify(req.headers, true, 2)); + res.end(); +}).listen(9008); +``` + +**[Back to top](#table-of-contents)** + +#### Using HTTPS +You can activate the validation of a secure SSL certificate to the target connection (avoid self-signed certs), just set `secure: true` in the options. + +##### HTTPS -> HTTP + +```js +// +// Create the HTTPS proxy server in front of a HTTP server +// +httpProxy.createServer({ + target: { + host: 'localhost', + port: 9009 + }, + ssl: { + key: fs.readFileSync('valid-ssl-key.pem', 'utf8'), + cert: fs.readFileSync('valid-ssl-cert.pem', 'utf8') + } +}).listen(8009); +``` + +##### HTTPS -> HTTPS + +```js +// +// Create the proxy server listening on port 443 +// +httpProxy.createServer({ + ssl: { + key: fs.readFileSync('valid-ssl-key.pem', 'utf8'), + cert: fs.readFileSync('valid-ssl-cert.pem', 'utf8') + }, + target: 'https://localhost:9010', + secure: true // Depends on your needs, could be false. +}).listen(443); +``` + +##### HTTP -> HTTPS (using a PKCS12 client certificate) + +```js +// +// Create an HTTP proxy server with an HTTPS target +// +httpProxy.createProxyServer({ + target: { + protocol: 'https:', + host: 'my-domain-name', + port: 443, + pfx: fs.readFileSync('path/to/certificate.p12'), + passphrase: 'password', + }, + changeOrigin: true, +}).listen(8000); +``` + +**[Back to top](#table-of-contents)** + +#### Proxying WebSockets +You can activate the websocket support for the proxy using `ws:true` in the options. + +```js +// +// Create a proxy server for websockets +// +httpProxy.createServer({ + target: 'ws://localhost:9014', + ws: true +}).listen(8014); +``` + +Also you can proxy the websocket requests just calling the `ws(req, socket, head)` method. + +```js +// +// Setup our server to proxy standard HTTP requests +// +var proxy = new httpProxy.createProxyServer({ + target: { + host: 'localhost', + port: 9015 + } +}); +var proxyServer = http.createServer(function (req, res) { + proxy.web(req, res); +}); + +// +// Listen to the `upgrade` event and proxy the +// WebSocket requests as well. +// +proxyServer.on('upgrade', function (req, socket, head) { + proxy.ws(req, socket, head); +}); + +proxyServer.listen(8015); +``` + +**[Back to top](#table-of-contents)** + +### Options + +`httpProxy.createProxyServer` supports the following options: + +* **target**: url string to be parsed with the url module +* **forward**: url string to be parsed with the url module +* **agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects) +* **ssl**: object to be passed to https.createServer() +* **ws**: true/false, if you want to proxy websockets +* **xfwd**: true/false, adds x-forward headers +* **secure**: true/false, if you want to verify the SSL Certs +* **toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies) +* **prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path +* **ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required). +* **localAddress**: Local interface string to bind for outgoing connections +* **changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL +* **preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key +* **auth**: Basic authentication i.e. 'user:password' to compute an Authorization header. +* **hostRewrite**: rewrites the location hostname on (201/301/302/307/308) redirects. +* **autoRewrite**: rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port. Default: false. +* **protocolRewrite**: rewrites the location protocol on (201/301/302/307/308) redirects to 'http' or 'https'. Default: null. +* **cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values: + * `false` (default): disable cookie rewriting + * String: new domain, for example `cookieDomainRewrite: "new.domain"`. To remove the domain, use `cookieDomainRewrite: ""`. + * Object: mapping of domains to new domains, use `"*"` to match all domains. + For example keep one domain unchanged, rewrite one domain and remove other domains: + ``` + cookieDomainRewrite: { + "unchanged.domain": "unchanged.domain", + "old.domain": "new.domain", + "*": "" + } + ``` +* **cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values: + * `false` (default): disable cookie rewriting + * String: new path, for example `cookiePathRewrite: "/newPath/"`. To remove the path, use `cookiePathRewrite: ""`. To set path to root use `cookiePathRewrite: "/"`. + * Object: mapping of paths to new paths, use `"*"` to match all paths. + For example, to keep one path unchanged, rewrite one path and remove other paths: + ``` + cookiePathRewrite: { + "/unchanged.path/": "/unchanged.path/", + "/old.path/": "/new.path/", + "*": "" + } + ``` +* **headers**: object with extra headers to be added to target requests. +* **proxyTimeout**: timeout (in millis) for outgoing proxy requests +* **timeout**: timeout (in millis) for incoming requests +* **followRedirects**: true/false, Default: false - specify whether you want to follow redirects +* **selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event +* **buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option: + + ``` + 'use strict'; + + const streamify = require('stream-array'); + const HttpProxy = require('http-proxy'); + const proxy = new HttpProxy(); + + module.exports = (req, res, next) => { + + proxy.web(req, res, { + target: 'http://localhost:4003/', + buffer: streamify(req.rawBody) + }, next); + + }; + ``` + +**NOTE:** +`options.ws` and `options.ssl` are optional. +`options.target` and `options.forward` cannot both be missing + +If you are using the `proxyServer.listen` method, the following options are also applicable: + + * **ssl**: object to be passed to https.createServer() + * **ws**: true/false, if you want to proxy websockets + + +**[Back to top](#table-of-contents)** + +### Listening for proxy events + +* `error`: The error event is emitted if the request to the target fail. **We do not do any error handling of messages passed between client and proxy, and messages passed between proxy and target, so it is recommended that you listen on errors and handle them.** +* `proxyReq`: This event is emitted before the data is sent. It gives you a chance to alter the proxyReq request object. Applies to "web" connections +* `proxyReqWs`: This event is emitted before the data is sent. It gives you a chance to alter the proxyReq request object. Applies to "websocket" connections +* `proxyRes`: This event is emitted if the request to the target got a response. +* `open`: This event is emitted once the proxy websocket was created and piped into the target websocket. +* `close`: This event is emitted once the proxy websocket was closed. +* (DEPRECATED) `proxySocket`: Deprecated in favor of `open`. + +```js +var httpProxy = require('http-proxy'); +// Error example +// +// Http Proxy Server with bad target +// +var proxy = httpProxy.createServer({ + target:'http://localhost:9005' +}); + +proxy.listen(8005); + +// +// Listen for the `error` event on `proxy`. +proxy.on('error', function (err, req, res) { + res.writeHead(500, { + 'Content-Type': 'text/plain' + }); + + res.end('Something went wrong. And we are reporting a custom error message.'); +}); + +// +// Listen for the `proxyRes` event on `proxy`. +// +proxy.on('proxyRes', function (proxyRes, req, res) { + console.log('RAW Response from the target', JSON.stringify(proxyRes.headers, true, 2)); +}); + +// +// Listen for the `open` event on `proxy`. +// +proxy.on('open', function (proxySocket) { + // listen for messages coming FROM the target here + proxySocket.on('data', hybiParseAndLogMessage); +}); + +// +// Listen for the `close` event on `proxy`. +// +proxy.on('close', function (res, socket, head) { + // view disconnected websocket connections + console.log('Client disconnected'); +}); +``` + +**[Back to top](#table-of-contents)** + +### Shutdown + +* When testing or running server within another program it may be necessary to close the proxy. +* This will stop the proxy from accepting new connections. + +```js +var proxy = new httpProxy.createProxyServer({ + target: { + host: 'localhost', + port: 1337 + } +}); + +proxy.close(); +``` + +**[Back to top](#table-of-contents)** + +### Miscellaneous + +If you want to handle your own response after receiving the `proxyRes`, you can do +so with `selfHandleResponse`. As you can see below, if you use this option, you +are able to intercept and read the `proxyRes` but you must also make sure to +reply to the `res` itself otherwise the original client will never receive any +data. + +### Modify response + +```js + + var option = { + target: target, + selfHandleResponse : true + }; + proxy.on('proxyRes', function (proxyRes, req, res) { + var body = []; + proxyRes.on('data', function (chunk) { + body.push(chunk); + }); + proxyRes.on('end', function () { + body = Buffer.concat(body).toString(); + console.log("res from proxied server:", body); + res.end("my response to cli"); + }); + }); + proxy.web(req, res, option); + + +``` + +#### ProxyTable API + +A proxy table API is available through this add-on [module](https://github.com/donasaur/http-proxy-rules), which lets you define a set of rules to translate matching routes to target routes that the reverse proxy will talk to. + +#### Test + +``` +$ npm test +``` + +#### Logo + +Logo created by [Diego Pasquali](http://dribbble.com/diegopq) + +**[Back to top](#table-of-contents)** + +### Contributing and Issues + +* Read carefully our [Code Of Conduct](https://github.com/http-party/node-http-proxy/blob/master/CODE_OF_CONDUCT.md) +* Search on Google/Github +* If you can't find anything, open an issue +* If you feel comfortable about fixing the issue, fork the repo +* Commit to your local branch (which must be different from `master`) +* Submit your Pull Request (be sure to include tests and update documentation) + +**[Back to top](#table-of-contents)** + +### License + +>The MIT License (MIT) +> +>Copyright (c) 2010 - 2016 Charlie Robbins, Jarrett Cruger & the Contributors. +> +>Permission is hereby granted, free of charge, to any person obtaining a copy +>of this software and associated documentation files (the "Software"), to deal +>in the Software without restriction, including without limitation the rights +>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +>copies of the Software, and to permit persons to whom the Software is +>furnished to do so, subject to the following conditions: +> +>The above copyright notice and this permission notice shall be included in +>all copies or substantial portions of the Software. +> +>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +>THE SOFTWARE. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/codecov.yml b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/codecov.yml new file mode 100644 index 0000000000000000000000000000000000000000..cafdd1ced36d9def1623f5291bd60d4a544faf07 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/codecov.yml @@ -0,0 +1,10 @@ +coverage: + parsers: + javascript: + enable_partials: yes + status: + project: + default: + target: "70%" + patch: + enabled: false diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/index.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e6fac85844eed4be4905f21068ad8fcdf22c9944 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/index.js @@ -0,0 +1,13 @@ +/*! + * Caron dimonio, con occhi di bragia + * loro accennando, tutte le raccoglie; + * batte col remo qualunque s’adagia + * + * Charon the demon, with the eyes of glede, + * Beckoning to them, collects them all together, + * Beats with his oar whoever lags behind + * + * Dante - The Divine Comedy (Canto III) + */ + +module.exports = require('./lib/http-proxy'); \ No newline at end of file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy.js new file mode 100644 index 0000000000000000000000000000000000000000..8ea278938f7e1dd18b1935f82237ccfa9bfae1ec --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy.js @@ -0,0 +1,66 @@ + // Use explicit /index.js to help browserify negociation in require '/lib/http-proxy' (!) +var ProxyServer = require('./http-proxy/index.js').Server; + + +/** + * Creates the proxy server. + * + * Examples: + * + * httpProxy.createProxyServer({ .. }, 8000) + * // => '{ web: [Function], ws: [Function] ... }' + * + * @param {Object} Options Config object passed to the proxy + * + * @return {Object} Proxy Proxy object with handlers for `ws` and `web` requests + * + * @api public + */ + + +function createProxyServer(options) { + /* + * `options` is needed and it must have the following layout: + * + * { + * target : + * forward: + * agent : + * ssl : + * ws : + * xfwd : + * secure : + * toProxy: + * prependPath: + * ignorePath: + * localAddress : + * changeOrigin: + * preserveHeaderKeyCase: + * auth : Basic authentication i.e. 'user:password' to compute an Authorization header. + * hostRewrite: rewrites the location hostname on (201/301/302/307/308) redirects, Default: null. + * autoRewrite: rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port. Default: false. + * protocolRewrite: rewrites the location protocol on (201/301/302/307/308) redirects to 'http' or 'https'. Default: null. + * } + * + * NOTE: `options.ws` and `options.ssl` are optional. + * `options.target and `options.forward` cannot be + * both missing + * } + */ + + return new ProxyServer(options); +} + + +ProxyServer.createProxyServer = createProxyServer; +ProxyServer.createServer = createProxyServer; +ProxyServer.createProxy = createProxyServer; + + + + +/** + * Export the proxy "Server" as the main export. + */ +module.exports = ProxyServer; + diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/common.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/common.js new file mode 100644 index 0000000000000000000000000000000000000000..6513e81d80d5250ea249ea833f819ece67897c7e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/common.js @@ -0,0 +1,248 @@ +var common = exports, + url = require('url'), + extend = require('util')._extend, + required = require('requires-port'); + +var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i, + isSSL = /^https|wss/; + +/** + * Simple Regex for testing if protocol is https + */ +common.isSSL = isSSL; +/** + * Copies the right headers from `options` and `req` to + * `outgoing` which is then used to fire the proxied + * request. + * + * Examples: + * + * common.setupOutgoing(outgoing, options, req) + * // => { host: ..., hostname: ...} + * + * @param {Object} Outgoing Base object to be filled with required properties + * @param {Object} Options Config object passed to the proxy + * @param {ClientRequest} Req Request Object + * @param {String} Forward String to select forward or target + *  + * @return {Object} Outgoing Object with all required properties set + * + * @api private + */ + +common.setupOutgoing = function(outgoing, options, req, forward) { + outgoing.port = options[forward || 'target'].port || + (isSSL.test(options[forward || 'target'].protocol) ? 443 : 80); + + ['host', 'hostname', 'socketPath', 'pfx', 'key', + 'passphrase', 'cert', 'ca', 'ciphers', 'secureProtocol'].forEach( + function(e) { outgoing[e] = options[forward || 'target'][e]; } + ); + + outgoing.method = options.method || req.method; + outgoing.headers = extend({}, req.headers); + + if (options.headers){ + extend(outgoing.headers, options.headers); + } + + if (options.auth) { + outgoing.auth = options.auth; + } + + if (options.ca) { + outgoing.ca = options.ca; + } + + if (isSSL.test(options[forward || 'target'].protocol)) { + outgoing.rejectUnauthorized = (typeof options.secure === "undefined") ? true : options.secure; + } + + + outgoing.agent = options.agent || false; + outgoing.localAddress = options.localAddress; + + // + // Remark: If we are false and not upgrading, set the connection: close. This is the right thing to do + // as node core doesn't handle this COMPLETELY properly yet. + // + if (!outgoing.agent) { + outgoing.headers = outgoing.headers || {}; + if (typeof outgoing.headers.connection !== 'string' + || !upgradeHeader.test(outgoing.headers.connection) + ) { outgoing.headers.connection = 'close'; } + } + + + // the final path is target path + relative path requested by user: + var target = options[forward || 'target']; + var targetPath = target && options.prependPath !== false + ? (target.path || '') + : ''; + + // + // Remark: Can we somehow not use url.parse as a perf optimization? + // + var outgoingPath = !options.toProxy + ? (url.parse(req.url).path || '') + : req.url; + + // + // Remark: ignorePath will just straight up ignore whatever the request's + // path is. This can be labeled as FOOT-GUN material if you do not know what + // you are doing and are using conflicting options. + // + outgoingPath = !options.ignorePath ? outgoingPath : ''; + + outgoing.path = common.urlJoin(targetPath, outgoingPath); + + if (options.changeOrigin) { + outgoing.headers.host = + required(outgoing.port, options[forward || 'target'].protocol) && !hasPort(outgoing.host) + ? outgoing.host + ':' + outgoing.port + : outgoing.host; + } + return outgoing; +}; + +/** + * Set the proper configuration for sockets, + * set no delay and set keep alive, also set + * the timeout to 0. + * + * Examples: + * + * common.setupSocket(socket) + * // => Socket + * + * @param {Socket} Socket instance to setup + *  + * @return {Socket} Return the configured socket. + * + * @api private + */ + +common.setupSocket = function(socket) { + socket.setTimeout(0); + socket.setNoDelay(true); + + socket.setKeepAlive(true, 0); + + return socket; +}; + +/** + * Get the port number from the host. Or guess it based on the connection type. + * + * @param {Request} req Incoming HTTP request. + * + * @return {String} The port number. + * + * @api private + */ +common.getPort = function(req) { + var res = req.headers.host ? req.headers.host.match(/:(\d+)/) : ''; + + return res ? + res[1] : + common.hasEncryptedConnection(req) ? '443' : '80'; +}; + +/** + * Check if the request has an encrypted connection. + * + * @param {Request} req Incoming HTTP request. + * + * @return {Boolean} Whether the connection is encrypted or not. + * + * @api private + */ +common.hasEncryptedConnection = function(req) { + return Boolean(req.connection.encrypted || req.connection.pair); +}; + +/** + * OS-agnostic join (doesn't break on URLs like path.join does on Windows)> + * + * @return {String} The generated path. + * + * @api private + */ + +common.urlJoin = function() { + // + // We do not want to mess with the query string. All we want to touch is the path. + // + var args = Array.prototype.slice.call(arguments), + lastIndex = args.length - 1, + last = args[lastIndex], + lastSegs = last.split('?'), + retSegs; + + args[lastIndex] = lastSegs.shift(); + + // + // Join all strings, but remove empty strings so we don't get extra slashes from + // joining e.g. ['', 'am'] + // + retSegs = [ + args.filter(Boolean).join('/') + .replace(/\/+/g, '/') + .replace('http:/', 'http://') + .replace('https:/', 'https://') + ]; + + // Only join the query string if it exists so we don't have trailing a '?' + // on every request + + // Handle case where there could be multiple ? in the URL. + retSegs.push.apply(retSegs, lastSegs); + + return retSegs.join('?') +}; + +/** + * Rewrites or removes the domain of a cookie header + * + * @param {String|Array} Header + * @param {Object} Config, mapping of domain to rewritten domain. + * '*' key to match any domain, null value to remove the domain. + * + * @api private + */ +common.rewriteCookieProperty = function rewriteCookieProperty(header, config, property) { + if (Array.isArray(header)) { + return header.map(function (headerElement) { + return rewriteCookieProperty(headerElement, config, property); + }); + } + return header.replace(new RegExp("(;\\s*" + property + "=)([^;]+)", 'i'), function(match, prefix, previousValue) { + var newValue; + if (previousValue in config) { + newValue = config[previousValue]; + } else if ('*' in config) { + newValue = config['*']; + } else { + //no match, return previous value + return match; + } + if (newValue) { + //replace value + return prefix + newValue; + } else { + //remove value + return ''; + } + }); +}; + +/** + * Check the host and see if it potentially has a port in it (keep it simple) + * + * @returns {Boolean} Whether we have one or not + * + * @api private + */ +function hasPort(host) { + return !!~host.indexOf(':'); +}; diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/index.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/index.js new file mode 100644 index 0000000000000000000000000000000000000000..977a4b3622b9eaac27689f06347ea4c5173a96cd --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/index.js @@ -0,0 +1,185 @@ +var httpProxy = module.exports, + extend = require('util')._extend, + parse_url = require('url').parse, + EE3 = require('eventemitter3'), + http = require('http'), + https = require('https'), + web = require('./passes/web-incoming'), + ws = require('./passes/ws-incoming'); + +httpProxy.Server = ProxyServer; + +/** + * Returns a function that creates the loader for + * either `ws` or `web`'s passes. + * + * Examples: + * + * httpProxy.createRightProxy('ws') + * // => [Function] + * + * @param {String} Type Either 'ws' or 'web' + *  + * @return {Function} Loader Function that when called returns an iterator for the right passes + * + * @api private + */ + +function createRightProxy(type) { + + return function(options) { + return function(req, res /*, [head], [opts] */) { + var passes = (type === 'ws') ? this.wsPasses : this.webPasses, + args = [].slice.call(arguments), + cntr = args.length - 1, + head, cbl; + + /* optional args parse begin */ + if(typeof args[cntr] === 'function') { + cbl = args[cntr]; + + cntr--; + } + + var requestOptions = options; + if( + !(args[cntr] instanceof Buffer) && + args[cntr] !== res + ) { + //Copy global options + requestOptions = extend({}, options); + //Overwrite with request options + extend(requestOptions, args[cntr]); + + cntr--; + } + + if(args[cntr] instanceof Buffer) { + head = args[cntr]; + } + + /* optional args parse end */ + + ['target', 'forward'].forEach(function(e) { + if (typeof requestOptions[e] === 'string') + requestOptions[e] = parse_url(requestOptions[e]); + }); + + if (!requestOptions.target && !requestOptions.forward) { + return this.emit('error', new Error('Must provide a proper URL as target')); + } + + for(var i=0; i < passes.length; i++) { + /** + * Call of passes functions + * pass(req, res, options, head) + * + * In WebSockets case the `res` variable + * refer to the connection socket + * pass(req, socket, options, head) + */ + if(passes[i](req, res, requestOptions, head, this, cbl)) { // passes can return a truthy value to halt the loop + break; + } + } + }; + }; +} +httpProxy.createRightProxy = createRightProxy; + +function ProxyServer(options) { + EE3.call(this); + + options = options || {}; + options.prependPath = options.prependPath === false ? false : true; + + this.web = this.proxyRequest = createRightProxy('web')(options); + this.ws = this.proxyWebsocketRequest = createRightProxy('ws')(options); + this.options = options; + + this.webPasses = Object.keys(web).map(function(pass) { + return web[pass]; + }); + + this.wsPasses = Object.keys(ws).map(function(pass) { + return ws[pass]; + }); + + this.on('error', this.onError, this); + +} + +require('util').inherits(ProxyServer, EE3); + +ProxyServer.prototype.onError = function (err) { + // + // Remark: Replicate node core behavior using EE3 + // so we force people to handle their own errors + // + if(this.listeners('error').length === 1) { + throw err; + } +}; + +ProxyServer.prototype.listen = function(port, hostname) { + var self = this, + closure = function(req, res) { self.web(req, res); }; + + this._server = this.options.ssl ? + https.createServer(this.options.ssl, closure) : + http.createServer(closure); + + if(this.options.ws) { + this._server.on('upgrade', function(req, socket, head) { self.ws(req, socket, head); }); + } + + this._server.listen(port, hostname); + + return this; +}; + +ProxyServer.prototype.close = function(callback) { + var self = this; + if (this._server) { + this._server.close(done); + } + + // Wrap callback to nullify server after all open connections are closed. + function done() { + self._server = null; + if (callback) { + callback.apply(null, arguments); + } + }; +}; + +ProxyServer.prototype.before = function(type, passName, callback) { + if (type !== 'ws' && type !== 'web') { + throw new Error('type must be `web` or `ws`'); + } + var passes = (type === 'ws') ? this.wsPasses : this.webPasses, + i = false; + + passes.forEach(function(v, idx) { + if(v.name === passName) i = idx; + }) + + if(i === false) throw new Error('No such pass'); + + passes.splice(i, 0, callback); +}; +ProxyServer.prototype.after = function(type, passName, callback) { + if (type !== 'ws' && type !== 'web') { + throw new Error('type must be `web` or `ws`'); + } + var passes = (type === 'ws') ? this.wsPasses : this.webPasses, + i = false; + + passes.forEach(function(v, idx) { + if(v.name === passName) i = idx; + }) + + if(i === false) throw new Error('No such pass'); + + passes.splice(i++, 0, callback); +}; diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js new file mode 100644 index 0000000000000000000000000000000000000000..7ae735514190eea569c605fff7d27c045fe8d601 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js @@ -0,0 +1,194 @@ +var httpNative = require('http'), + httpsNative = require('https'), + web_o = require('./web-outgoing'), + common = require('../common'), + followRedirects = require('follow-redirects'); + +web_o = Object.keys(web_o).map(function(pass) { + return web_o[pass]; +}); + +var nativeAgents = { http: httpNative, https: httpsNative }; + +/*! + * Array of passes. + * + * A `pass` is just a function that is executed on `req, res, options` + * so that you can easily add new checks while still keeping the base + * flexible. + */ + + +module.exports = { + + /** + * Sets `content-length` to '0' if request is of DELETE type. + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {Object} Options Config object passed to the proxy + * + * @api private + */ + + deleteLength: function deleteLength(req, res, options) { + if((req.method === 'DELETE' || req.method === 'OPTIONS') + && !req.headers['content-length']) { + req.headers['content-length'] = '0'; + delete req.headers['transfer-encoding']; + } + }, + + /** + * Sets timeout in request socket if it was specified in options. + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {Object} Options Config object passed to the proxy + * + * @api private + */ + + timeout: function timeout(req, res, options) { + if(options.timeout) { + req.socket.setTimeout(options.timeout); + } + }, + + /** + * Sets `x-forwarded-*` headers if specified in config. + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {Object} Options Config object passed to the proxy + * + * @api private + */ + + XHeaders: function XHeaders(req, res, options) { + if(!options.xfwd) return; + + var encrypted = req.isSpdy || common.hasEncryptedConnection(req); + var values = { + for : req.connection.remoteAddress || req.socket.remoteAddress, + port : common.getPort(req), + proto: encrypted ? 'https' : 'http' + }; + + ['for', 'port', 'proto'].forEach(function(header) { + req.headers['x-forwarded-' + header] = + (req.headers['x-forwarded-' + header] || '') + + (req.headers['x-forwarded-' + header] ? ',' : '') + + values[header]; + }); + + req.headers['x-forwarded-host'] = req.headers['x-forwarded-host'] || req.headers['host'] || ''; + }, + + /** + * Does the actual proxying. If `forward` is enabled fires up + * a ForwardStream, same happens for ProxyStream. The request + * just dies otherwise. + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {Object} Options Config object passed to the proxy + * + * @api private + */ + + stream: function stream(req, res, options, _, server, clb) { + + // And we begin! + server.emit('start', req, res, options.target || options.forward); + + var agents = options.followRedirects ? followRedirects : nativeAgents; + var http = agents.http; + var https = agents.https; + + if(options.forward) { + // If forward enable, so just pipe the request + var forwardReq = (options.forward.protocol === 'https:' ? https : http).request( + common.setupOutgoing(options.ssl || {}, options, req, 'forward') + ); + + // error handler (e.g. ECONNRESET, ECONNREFUSED) + // Handle errors on incoming request as well as it makes sense to + var forwardError = createErrorHandler(forwardReq, options.forward); + req.on('error', forwardError); + forwardReq.on('error', forwardError); + + (options.buffer || req).pipe(forwardReq); + if(!options.target) { return res.end(); } + } + + // Request initalization + var proxyReq = (options.target.protocol === 'https:' ? https : http).request( + common.setupOutgoing(options.ssl || {}, options, req) + ); + + // Enable developers to modify the proxyReq before headers are sent + proxyReq.on('socket', function(socket) { + if(server && !proxyReq.getHeader('expect')) { + server.emit('proxyReq', proxyReq, req, res, options); + } + }); + + // allow outgoing socket to timeout so that we could + // show an error page at the initial request + if(options.proxyTimeout) { + proxyReq.setTimeout(options.proxyTimeout, function() { + proxyReq.abort(); + }); + } + + // Ensure we abort proxy if request is aborted + req.on('aborted', function () { + proxyReq.abort(); + }); + + // handle errors in proxy and incoming request, just like for forward proxy + var proxyError = createErrorHandler(proxyReq, options.target); + req.on('error', proxyError); + proxyReq.on('error', proxyError); + + function createErrorHandler(proxyReq, url) { + return function proxyError(err) { + if (req.socket.destroyed && err.code === 'ECONNRESET') { + server.emit('econnreset', err, req, res, url); + return proxyReq.abort(); + } + + if (clb) { + clb(err, req, res, url); + } else { + server.emit('error', err, req, res, url); + } + } + } + + (options.buffer || req).pipe(proxyReq); + + proxyReq.on('response', function(proxyRes) { + if(server) { server.emit('proxyRes', proxyRes, req, res); } + + if(!res.headersSent && !options.selfHandleResponse) { + for(var i=0; i < web_o.length; i++) { + if(web_o[i](req, res, proxyRes, options)) { break; } + } + } + + if (!res.finished) { + // Allow us to listen when the proxy has completed + proxyRes.on('end', function () { + if (server) server.emit('end', req, res, proxyRes); + }); + // We pipe to the response unless its expected to be handled by the user + if (!options.selfHandleResponse) proxyRes.pipe(res); + } else { + if (server) server.emit('end', req, res, proxyRes); + } + }); + } + +}; diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js new file mode 100644 index 0000000000000000000000000000000000000000..46352f6e377affc701773328d528bd7e4352f242 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js @@ -0,0 +1,147 @@ +var url = require('url'), + common = require('../common'); + + +var redirectRegex = /^201|30(1|2|7|8)$/; + +/*! + * Array of passes. + * + * A `pass` is just a function that is executed on `req, res, options` + * so that you can easily add new checks while still keeping the base + * flexible. + */ + +module.exports = { // <-- + + /** + * If is a HTTP 1.0 request, remove chunk headers + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {proxyResponse} Res Response object from the proxy request + * + * @api private + */ + removeChunked: function removeChunked(req, res, proxyRes) { + if (req.httpVersion === '1.0') { + delete proxyRes.headers['transfer-encoding']; + } + }, + + /** + * If is a HTTP 1.0 request, set the correct connection header + * or if connection header not present, then use `keep-alive` + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {proxyResponse} Res Response object from the proxy request + * + * @api private + */ + setConnection: function setConnection(req, res, proxyRes) { + if (req.httpVersion === '1.0') { + proxyRes.headers.connection = req.headers.connection || 'close'; + } else if (req.httpVersion !== '2.0' && !proxyRes.headers.connection) { + proxyRes.headers.connection = req.headers.connection || 'keep-alive'; + } + }, + + setRedirectHostRewrite: function setRedirectHostRewrite(req, res, proxyRes, options) { + if ((options.hostRewrite || options.autoRewrite || options.protocolRewrite) + && proxyRes.headers['location'] + && redirectRegex.test(proxyRes.statusCode)) { + var target = url.parse(options.target); + var u = url.parse(proxyRes.headers['location']); + + // make sure the redirected host matches the target host before rewriting + if (target.host != u.host) { + return; + } + + if (options.hostRewrite) { + u.host = options.hostRewrite; + } else if (options.autoRewrite) { + u.host = req.headers['host']; + } + if (options.protocolRewrite) { + u.protocol = options.protocolRewrite; + } + + proxyRes.headers['location'] = u.format(); + } + }, + /** + * Copy headers from proxyResponse to response + * set each header in response object. + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {proxyResponse} Res Response object from the proxy request + * @param {Object} Options options.cookieDomainRewrite: Config to rewrite cookie domain + * + * @api private + */ + writeHeaders: function writeHeaders(req, res, proxyRes, options) { + var rewriteCookieDomainConfig = options.cookieDomainRewrite, + rewriteCookiePathConfig = options.cookiePathRewrite, + preserveHeaderKeyCase = options.preserveHeaderKeyCase, + rawHeaderKeyMap, + setHeader = function(key, header) { + if (header == undefined) return; + if (rewriteCookieDomainConfig && key.toLowerCase() === 'set-cookie') { + header = common.rewriteCookieProperty(header, rewriteCookieDomainConfig, 'domain'); + } + if (rewriteCookiePathConfig && key.toLowerCase() === 'set-cookie') { + header = common.rewriteCookieProperty(header, rewriteCookiePathConfig, 'path'); + } + res.setHeader(String(key).trim(), header); + }; + + if (typeof rewriteCookieDomainConfig === 'string') { //also test for '' + rewriteCookieDomainConfig = { '*': rewriteCookieDomainConfig }; + } + + if (typeof rewriteCookiePathConfig === 'string') { //also test for '' + rewriteCookiePathConfig = { '*': rewriteCookiePathConfig }; + } + + // message.rawHeaders is added in: v0.11.6 + // https://nodejs.org/api/http.html#http_message_rawheaders + if (preserveHeaderKeyCase && proxyRes.rawHeaders != undefined) { + rawHeaderKeyMap = {}; + for (var i = 0; i < proxyRes.rawHeaders.length; i += 2) { + var key = proxyRes.rawHeaders[i]; + rawHeaderKeyMap[key.toLowerCase()] = key; + } + } + + Object.keys(proxyRes.headers).forEach(function(key) { + var header = proxyRes.headers[key]; + if (preserveHeaderKeyCase && rawHeaderKeyMap) { + key = rawHeaderKeyMap[key] || key; + } + setHeader(key, header); + }); + }, + + /** + * Set the statusCode from the proxyResponse + * + * @param {ClientRequest} Req Request object + * @param {IncomingMessage} Res Response object + * @param {proxyResponse} Res Response object from the proxy request + * + * @api private + */ + writeStatusCode: function writeStatusCode(req, res, proxyRes) { + // From Node.js docs: response.writeHead(statusCode[, statusMessage][, headers]) + if(proxyRes.statusMessage) { + res.statusCode = proxyRes.statusCode; + res.statusMessage = proxyRes.statusMessage; + } else { + res.statusCode = proxyRes.statusCode; + } + } + +}; diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js new file mode 100644 index 0000000000000000000000000000000000000000..270f23f45db2b417a23d1d4331d2ecdf0d599a35 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js @@ -0,0 +1,162 @@ +var http = require('http'), + https = require('https'), + common = require('../common'); + +/*! + * Array of passes. + * + * A `pass` is just a function that is executed on `req, socket, options` + * so that you can easily add new checks while still keeping the base + * flexible. + */ + +/* + * Websockets Passes + * + */ + + +module.exports = { + /** + * WebSocket requests must have the `GET` method and + * the `upgrade:websocket` header + * + * @param {ClientRequest} Req Request object + * @param {Socket} Websocket + * + * @api private + */ + + checkMethodAndHeader : function checkMethodAndHeader(req, socket) { + if (req.method !== 'GET' || !req.headers.upgrade) { + socket.destroy(); + return true; + } + + if (req.headers.upgrade.toLowerCase() !== 'websocket') { + socket.destroy(); + return true; + } + }, + + /** + * Sets `x-forwarded-*` headers if specified in config. + * + * @param {ClientRequest} Req Request object + * @param {Socket} Websocket + * @param {Object} Options Config object passed to the proxy + * + * @api private + */ + + XHeaders : function XHeaders(req, socket, options) { + if(!options.xfwd) return; + + var values = { + for : req.connection.remoteAddress || req.socket.remoteAddress, + port : common.getPort(req), + proto: common.hasEncryptedConnection(req) ? 'wss' : 'ws' + }; + + ['for', 'port', 'proto'].forEach(function(header) { + req.headers['x-forwarded-' + header] = + (req.headers['x-forwarded-' + header] || '') + + (req.headers['x-forwarded-' + header] ? ',' : '') + + values[header]; + }); + }, + + /** + * Does the actual proxying. Make the request and upgrade it + * send the Switching Protocols request and pipe the sockets. + * + * @param {ClientRequest} Req Request object + * @param {Socket} Websocket + * @param {Object} Options Config object passed to the proxy + * + * @api private + */ + stream : function stream(req, socket, options, head, server, clb) { + + var createHttpHeader = function(line, headers) { + return Object.keys(headers).reduce(function (head, key) { + var value = headers[key]; + + if (!Array.isArray(value)) { + head.push(key + ': ' + value); + return head; + } + + for (var i = 0; i < value.length; i++) { + head.push(key + ': ' + value[i]); + } + return head; + }, [line]) + .join('\r\n') + '\r\n\r\n'; + } + + common.setupSocket(socket); + + if (head && head.length) socket.unshift(head); + + + var proxyReq = (common.isSSL.test(options.target.protocol) ? https : http).request( + common.setupOutgoing(options.ssl || {}, options, req) + ); + + // Enable developers to modify the proxyReq before headers are sent + if (server) { server.emit('proxyReqWs', proxyReq, req, socket, options, head); } + + // Error Handler + proxyReq.on('error', onOutgoingError); + proxyReq.on('response', function (res) { + // if upgrade event isn't going to happen, close the socket + if (!res.upgrade) { + socket.write(createHttpHeader('HTTP/' + res.httpVersion + ' ' + res.statusCode + ' ' + res.statusMessage, res.headers)); + res.pipe(socket); + } + }); + + proxyReq.on('upgrade', function(proxyRes, proxySocket, proxyHead) { + proxySocket.on('error', onOutgoingError); + + // Allow us to listen when the websocket has completed + proxySocket.on('end', function () { + server.emit('close', proxyRes, proxySocket, proxyHead); + }); + + // The pipe below will end proxySocket if socket closes cleanly, but not + // if it errors (eg, vanishes from the net and starts returning + // EHOSTUNREACH). We need to do that explicitly. + socket.on('error', function () { + proxySocket.end(); + }); + + common.setupSocket(proxySocket); + + if (proxyHead && proxyHead.length) proxySocket.unshift(proxyHead); + + // + // Remark: Handle writing the headers to the socket when switching protocols + // Also handles when a header is an array + // + socket.write(createHttpHeader('HTTP/1.1 101 Switching Protocols', proxyRes.headers)); + + proxySocket.pipe(socket).pipe(proxySocket); + + server.emit('open', proxySocket); + server.emit('proxySocket', proxySocket); //DEPRECATED. + }); + + return proxyReq.end(); // XXX: CHECK IF THIS IS THIS CORRECT + + function onOutgoingError(err) { + if (clb) { + clb(err, req, socket); + } else { + server.emit('error', err, req, socket); + } + socket.end(); + } + } +}; diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/package.json b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/package.json new file mode 100644 index 0000000000000000000000000000000000000000..9fe81a26d6ae34771be1c39c10bf29a3d3332bad --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/package.json @@ -0,0 +1,41 @@ +{ + "name": "http-proxy", + "version": "1.18.1", + "repository": { + "type": "git", + "url": "https://github.com/http-party/node-http-proxy.git" + }, + "description": "HTTP proxying for the masses", + "author": "Charlie Robbins ", + "maintainers": [ + "jcrugzz " + ], + "main": "index.js", + "dependencies": { + "eventemitter3": "^4.0.0", + "requires-port": "^1.0.0", + "follow-redirects": "^1.0.0" + }, + "devDependencies": { + "async": "^3.0.0", + "auto-changelog": "^1.15.0", + "concat-stream": "^2.0.0", + "expect.js": "~0.3.1", + "mocha": "^3.5.3", + "nyc": "^14.0.0", + "semver": "^5.0.3", + "socket.io": "^2.1.0", + "socket.io-client": "^2.1.0", + "sse": "0.0.8", + "ws": "^3.0.0" + }, + "scripts": { + "mocha": "mocha test/*-test.js", + "test": "nyc --reporter=text --reporter=lcov npm run mocha", + "version": "auto-changelog -p && git add CHANGELOG.md" + }, + "engines": { + "node": ">=8.0.0" + }, + "license": "MIT" +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/renovate.json b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/renovate.json new file mode 100644 index 0000000000000000000000000000000000000000..fc1d2aa3a079e46750d308044764497a5e604333 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/http-proxy/renovate.json @@ -0,0 +1,19 @@ +{ + "platform": "github", + "autodiscover": false, + "requireConfig": true, + "ignoreNpmrcFile": true, + "rangeStrategy": "replace", + "packageRules": [ + { + "packagePatterns": [ + "*" + ], + "minor": { + "groupName": "all non-major dependencies", + "groupSlug": "all-minor-patch" + } + } + ], + "commitMessagePrefix": "[dist]" +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/.npmignore b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/.npmignore new file mode 100644 index 0000000000000000000000000000000000000000..ba2a97b57acafe13673b76a624a59ebceadb2849 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/.npmignore @@ -0,0 +1,2 @@ +node_modules +coverage diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/.travis.yml b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..0765106aba166102062bae3d2a1f6fe518f69ccf --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/.travis.yml @@ -0,0 +1,19 @@ +sudo: false +language: node_js +node_js: + - "4" + - "iojs" + - "0.12" + - "0.10" +script: + - "npm run test-travis" +after_script: + - "npm install coveralls@2 && cat coverage/lcov.info | coveralls" +matrix: + fast_finish: true +notifications: + irc: + channels: + - "irc.freenode.org#unshift" + on_success: change + on_failure: change diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/LICENSE b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6dc9316a6c92f2782c0bcf29951bf2a704524277 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/README.md b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3effe759703730dc1df39b012c03727b9e641abf --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/README.md @@ -0,0 +1,47 @@ +# requires-port + +[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](http://img.shields.io/npm/v/requires-port.svg?style=flat-square)](http://browsenpm.org/package/requires-port)[![Build Status](http://img.shields.io/travis/unshiftio/requires-port/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/requires-port)[![Dependencies](https://img.shields.io/david/unshiftio/requires-port.svg?style=flat-square)](https://david-dm.org/unshiftio/requires-port)[![Coverage Status](http://img.shields.io/coveralls/unshiftio/requires-port/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/requires-port?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](http://webchat.freenode.net/?channels=unshift) + +The module name says it all, check if a protocol requires a given port. + +## Installation + +This module is intended to be used with browserify or Node.js and is distributed +in the public npm registry. To install it simply run the following command from +your CLI: + +```j +npm install --save requires-port +``` + +## Usage + +The module exports it self as function and requires 2 arguments: + +1. The port number, can be a string or number. +2. Protocol, can be `http`, `http:` or even `https://yomoma.com`. We just split + it at `:` and use the first result. We currently accept the following + protocols: + - `http` + - `https` + - `ws` + - `wss` + - `ftp` + - `gopher` + - `file` + +It returns a boolean that indicates if protocol requires this port to be added +to your URL. + +```js +'use strict'; + +var required = require('requires-port'); + +console.log(required('8080', 'http')) // true +console.log(required('80', 'http')) // false +``` + +# License + +MIT diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/index.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4f267b26c7284dd94e97950aa32e087cb159887d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/index.js @@ -0,0 +1,38 @@ +'use strict'; + +/** + * Check if we're required to add a port number. + * + * @see https://url.spec.whatwg.org/#default-port + * @param {Number|String} port Port number we need to check + * @param {String} protocol Protocol we need to check against. + * @returns {Boolean} Is it a default port for the given protocol + * @api private + */ +module.exports = function required(port, protocol) { + protocol = protocol.split(':')[0]; + port = +port; + + if (!port) return false; + + switch (protocol) { + case 'http': + case 'ws': + return port !== 80; + + case 'https': + case 'wss': + return port !== 443; + + case 'ftp': + return port !== 21; + + case 'gopher': + return port !== 70; + + case 'file': + return false; + } + + return port !== 0; +}; diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/package.json b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/package.json new file mode 100644 index 0000000000000000000000000000000000000000..c113b4bf78f20e5fdbb458e97131047b557f02d8 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/package.json @@ -0,0 +1,47 @@ +{ + "name": "requires-port", + "version": "1.0.0", + "description": "Check if a protocol requires a certain port number to be added to an URL.", + "main": "index.js", + "scripts": { + "100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100", + "test-travis": "istanbul cover _mocha --report lcovonly -- test.js", + "coverage": "istanbul cover _mocha -- test.js", + "watch": "mocha --watch test.js", + "test": "mocha test.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/unshiftio/requires-port" + }, + "keywords": [ + "port", + "require", + "http", + "https", + "ws", + "wss", + "gopher", + "file", + "ftp", + "requires", + "requried", + "portnumber", + "url", + "parsing", + "validation", + "cows" + ], + "author": "Arnout Kazemier", + "license": "MIT", + "bugs": { + "url": "https://github.com/unshiftio/requires-port/issues" + }, + "homepage": "https://github.com/unshiftio/requires-port", + "devDependencies": { + "assume": "1.3.x", + "istanbul": "0.4.x", + "mocha": "2.3.x", + "pre-commit": "1.1.x" + } +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/test.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/test.js new file mode 100644 index 0000000000000000000000000000000000000000..93a0c749809a72a4c302436b300666af45c6a4bc --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/node_modules/requires-port/test.js @@ -0,0 +1,98 @@ +describe('requires-port', function () { + 'use strict'; + + var assume = require('assume') + , required = require('./'); + + it('is exported as a function', function () { + assume(required).is.a('function'); + }); + + it('does not require empty ports', function () { + assume(required('', 'http')).false(); + assume(required('', 'wss')).false(); + assume(required('', 'ws')).false(); + assume(required('', 'cowsack')).false(); + }); + + it('assumes true for unknown protocols',function () { + assume(required('808', 'foo')).true(); + assume(required('80', 'bar')).true(); + }); + + it('never requires port numbers for file', function () { + assume(required(8080, 'file')).false(); + }); + + it('does not require port 80 for http', function () { + assume(required('80', 'http')).false(); + assume(required(80, 'http')).false(); + assume(required(80, 'http://')).false(); + assume(required(80, 'http://www.google.com')).false(); + + assume(required('8080', 'http')).true(); + assume(required(8080, 'http')).true(); + assume(required(8080, 'http://')).true(); + assume(required(8080, 'http://www.google.com')).true(); + }); + + it('does not require port 80 for ws', function () { + assume(required('80', 'ws')).false(); + assume(required(80, 'ws')).false(); + assume(required(80, 'ws://')).false(); + assume(required(80, 'ws://www.google.com')).false(); + + assume(required('8080', 'ws')).true(); + assume(required(8080, 'ws')).true(); + assume(required(8080, 'ws://')).true(); + assume(required(8080, 'ws://www.google.com')).true(); + }); + + it('does not require port 443 for https', function () { + assume(required('443', 'https')).false(); + assume(required(443, 'https')).false(); + assume(required(443, 'https://')).false(); + assume(required(443, 'https://www.google.com')).false(); + + assume(required('8080', 'https')).true(); + assume(required(8080, 'https')).true(); + assume(required(8080, 'https://')).true(); + assume(required(8080, 'https://www.google.com')).true(); + }); + + it('does not require port 443 for wss', function () { + assume(required('443', 'wss')).false(); + assume(required(443, 'wss')).false(); + assume(required(443, 'wss://')).false(); + assume(required(443, 'wss://www.google.com')).false(); + + assume(required('8080', 'wss')).true(); + assume(required(8080, 'wss')).true(); + assume(required(8080, 'wss://')).true(); + assume(required(8080, 'wss://www.google.com')).true(); + }); + + it('does not require port 21 for ftp', function () { + assume(required('21', 'ftp')).false(); + assume(required(21, 'ftp')).false(); + assume(required(21, 'ftp://')).false(); + assume(required(21, 'ftp://www.google.com')).false(); + + assume(required('8080', 'ftp')).true(); + assume(required(8080, 'ftp')).true(); + assume(required(8080, 'ftp://')).true(); + assume(required(8080, 'ftp://www.google.com')).true(); + }); + + it('does not require port 70 for gopher', function () { + assume(required('70', 'gopher')).false(); + assume(required(70, 'gopher')).false(); + assume(required(70, 'gopher://')).false(); + assume(required(70, 'gopher://www.google.com')).false(); + + assume(required('8080', 'gopher')).true(); + assume(required(8080, 'gopher')).true(); + assume(required(8080, 'gopher://')).true(); + assume(required(8080, 'gopher://www.google.com')).true(); + }); +}); diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/package-lock.json b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..d5743e74f6fe7f6a939bf8d9d4574a587a433204 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/package-lock.json @@ -0,0 +1,59 @@ +{ + "name": "gradio-server-app", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "gradio-server-app", + "dependencies": { + "http-proxy": "^1.18.1" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "license": "MIT" + }, + "node_modules/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "license": "MIT", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "license": "MIT" + } + } +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/package.json b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/package.json new file mode 100644 index 0000000000000000000000000000000000000000..92bea69b76bcf7104413e058b7cd1169c540c55d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/package.json @@ -0,0 +1,7 @@ +{ + "name": "gradio-server-app", + "type": "module", + "dependencies": { + "http-proxy": "^1.18.1" + } +} \ No newline at end of file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/proxy_routes.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/proxy_routes.js new file mode 100644 index 0000000000000000000000000000000000000000..e69f4c5270e8248a4350e47f1f38dcce3b846bdc --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/proxy_routes.js @@ -0,0 +1,133 @@ +/** + * Routing logic for the Gradio Node proxy. + * + * Extracted so it can be unit-tested independently of the SvelteKit handler. + */ + +// Routes that must go to the Python server (FastAPI). +export const PYTHON_ROUTE_PREFIXES = [ + "/gradio_api", + "/config", + "/login", + "/logout", + "/theme.css", + "/robots.txt", + "/pwa_icon", + "/manifest.json", + "/monitoring" +]; + +// Routes that can be offloaded to static workers. +// Workers serve both /upload and /gradio_api/upload (same handler). +// Checked BEFORE the /gradio_api Python catch-all. +export const STATIC_ROUTE_PREFIXES = [ + "/gradio_api/upload", + "/gradio_api/upload_progress", + "/gradio_api/file=", + "/gradio_api/file/", + "/upload", + "/upload_progress", + "/file=", + "/file/", + "/static/", + "/assets/", + "/svelte/", + "/favicon.ico", + "/custom_component/" +]; + +// Upload routes that need affinity (upload + upload_progress for the same +// upload_id must land on the same worker). +const UPLOAD_AFFINITY_PREFIXES = [ + "/gradio_api/upload", + "/gradio_api/upload_progress", + "/upload", + "/upload_progress" +]; + +export function matchesPrefix(path, prefixes) { + for (const prefix of prefixes) { + if (path === prefix || path.startsWith(prefix)) { + return true; + } + } + return false; +} + +/** + * Simple string hash (djb2) that returns a non-negative integer. + * Used to map upload_id to a deterministic worker index. + * + * @param {string} str + * @returns {number} + */ +export function hashString(str) { + let hash = 5381; + for (let i = 0; i < str.length; i++) { + hash = ((hash << 5) + hash + str.charCodeAt(i)) >>> 0; + } + return hash; +} + +/** + * Classify a request into a routing destination and optional worker index. + * + * @param {string} path - URL path (no query string) + * @param {object} options + * @param {boolean} options.hasWorkers - whether static workers are configured + * @param {boolean} options.serverModeEnabled - whether GRADIO_SERVER_MODE_ENABLED is set + * @param {number} options.numWorkers - number of static workers + * @param {string} [options.queryString] - raw query string (after ?) + * @returns {{route: "worker" | "python" | "sveltekit", workerIndex?: number}} + */ +export function classifyRoute( + path, + { + hasWorkers = false, + serverModeEnabled = false, + numWorkers = 0, + queryString = "" + } = {} +) { + if (matchesPrefix(path, STATIC_ROUTE_PREFIXES)) { + if (!hasWorkers) { + return { route: "python" }; + } + // For upload routes with an upload_id, use affinity hashing + if ( + numWorkers > 0 && + queryString && + matchesPrefix(path, UPLOAD_AFFINITY_PREFIXES) + ) { + const uploadId = extractUploadId(queryString); + if (uploadId) { + return { + route: "worker", + workerIndex: hashString(uploadId) % numWorkers + }; + } + } + return { route: "worker" }; + } + if (matchesPrefix(path, PYTHON_ROUTE_PREFIXES) || serverModeEnabled) { + return { route: "python" }; + } + return { route: "sveltekit" }; +} + +/** + * Extract upload_id from a query string. + * + * @param {string} qs - raw query string (without leading ?) + * @returns {string|null} + */ +function extractUploadId(qs) { + for (const part of qs.split("&")) { + const eq = part.indexOf("="); + if (eq === -1) continue; + if (part.substring(0, eq) === "upload_id") { + return decodeURIComponent(part.substring(eq + 1)); + } + } + return null; +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/0-CSL1qC8W.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/0-CSL1qC8W.js new file mode 100644 index 0000000000000000000000000000000000000000..37dd5e025ea32ed7df7e66ebc5035384e43e2904 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/0-CSL1qC8W.js @@ -0,0 +1,21 @@ +import { n as n$1 } from './environment-nLIoW9uA.js'; +import { r as redirect } from './index-DKsxGdoA.js'; +import './index-DBqjc0Yf.js'; + +function n({url:n}){let{pathname:r,search:i}=n;n$1&&n.pathname.startsWith(`/theme`)&&redirect(308,`http://127.0.0.1:7860${r}${i}`);} + +var _layout_server_ts = /*#__PURE__*/Object.freeze({ + __proto__: null, + load: n +}); + +const index = 0; +let component_cache; +const component = async () => component_cache ??= (await import('./_layout.svelte-wsN35Xyi.js')).default; +const server_id = "src/routes/+layout.server.ts"; +const imports = ["_app/immutable/nodes/0.BzIpv2qh.js","_app/immutable/chunks/DZH2DxBD.js","_app/immutable/chunks/CnXt9nDf.js"]; +const stylesheets = ["_app/immutable/assets/0.DSNh2M0f.css"]; +const fonts = []; + +export { component, fonts, imports, index, _layout_server_ts as server, server_id, stylesheets }; +//# sourceMappingURL=0-CSL1qC8W.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/1-Dbm9L0GN.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/1-Dbm9L0GN.js new file mode 100644 index 0000000000000000000000000000000000000000..442980c5d10785e1a781ce31bd9fd447c97b2976 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/1-Dbm9L0GN.js @@ -0,0 +1,9 @@ +const index = 1; +let component_cache; +const component = async () => component_cache ??= (await import('./error.svelte-BacYMNT2.js')).default; +const imports = ["_app/immutable/nodes/1.CakXDPfs.js","_app/immutable/chunks/DZH2DxBD.js","_app/immutable/chunks/DbkLaIOm.js","_app/immutable/chunks/C2u59Ty-.js","_app/immutable/chunks/DO4jZ8-K.js","_app/immutable/chunks/CnXt9nDf.js"]; +const stylesheets = []; +const fonts = []; + +export { component, fonts, imports, index, stylesheets }; +//# sourceMappingURL=1-Dbm9L0GN.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/2-CQ_Bz8hd.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/2-CQ_Bz8hd.js new file mode 100644 index 0000000000000000000000000000000000000000..6bf545afb9fab65f85a5ce8d718035fd4acb8aa7 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/2-CQ_Bz8hd.js @@ -0,0 +1,245 @@ +import { e as e$3, n as n$4 } from './environment-nLIoW9uA.js'; +import { c as c$5, d as d$6 } from './chunk-B3kRsjbd.js'; +import { ao as is_array, ap as get_prototype_of, aq as object_prototype, ar as ssr_context, as as get, w as writable, at as derived, a as attr_class, b as attr_style, h as ensure_array_like, f as attr, e as escape_html, i as stringify, o as store_get, u as unsubscribe_stores, c as bind_props, d as derived$1 } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; + +/** @import { Snapshot } from './types' */ + +/** + * In dev, we keep track of which properties could not be cloned. In prod + * we don't bother, but we keep a dummy array around so that the + * signature stays the same + * @type {string[]} + */ +const empty = []; + +/** + * @template T + * @param {T} value + * @param {boolean} [skip_warning] + * @param {boolean} [no_tojson] + * @returns {Snapshot} + */ +function snapshot(value, skip_warning = false, no_tojson = false) { + + return clone(value, new Map(), '', empty, null, no_tojson); +} + +/** + * @template T + * @param {T} value + * @param {Map>} cloned + * @param {string} path + * @param {string[]} paths + * @param {null | T} [original] The original value, if `value` was produced from a `toJSON` call + * @param {boolean} [no_tojson] + * @returns {Snapshot} + */ +function clone(value, cloned, path, paths, original = null, no_tojson = false) { + if (typeof value === 'object' && value !== null) { + var unwrapped = cloned.get(value); + if (unwrapped !== undefined) return unwrapped; + + if (value instanceof Map) return /** @type {Snapshot} */ (new Map(value)); + if (value instanceof Set) return /** @type {Snapshot} */ (new Set(value)); + + if (is_array(value)) { + var copy = /** @type {Snapshot} */ (Array(value.length)); + cloned.set(value, copy); + + if (original !== null) { + cloned.set(original, copy); + } + + for (var i = 0; i < value.length; i += 1) { + var element = value[i]; + if (i in value) { + copy[i] = clone(element, cloned, path, paths, null, no_tojson); + } + } + + return copy; + } + + if (get_prototype_of(value) === object_prototype) { + /** @type {Snapshot} */ + copy = {}; + cloned.set(value, copy); + + if (original !== null) { + cloned.set(original, copy); + } + + for (var key of Object.keys(value)) { + copy[key] = clone( + // @ts-expect-error + value[key], + cloned, + path, + paths, + null, + no_tojson + ); + } + + return copy; + } + + if (value instanceof Date) { + return /** @type {Snapshot} */ (structuredClone(value)); + } + + if (typeof (/** @type {T & { toJSON?: any } } */ (value).toJSON) === 'function' && !no_tojson) { + return clone( + /** @type {T & { toJSON(): any } } */ (value).toJSON(), + cloned, + path, + paths, + // Associate the instance with the toJSON clone + value + ); + } + } + + if (value instanceof EventTarget) { + // can't be cloned + return /** @type {Snapshot} */ (value); + } + + try { + return /** @type {Snapshot} */ (structuredClone(value)); + } catch (e) { + + return /** @type {Snapshot} */ (value); + } +} + +/** @import { SSRContext } from '#server' */ +/** @import { Renderer } from './internal/server/renderer.js' */ + +/** @param {() => void} fn */ +function onDestroy(fn) { + /** @type {Renderer} */ (/** @type {SSRContext} */ (ssr_context).r).on_destroy(fn); +} + +async function tick() {} + +async function settled() {} + +/** @import { Readable, Writable } from './public.js' */ + +/** + * @template V + * @overload + * @param {Writable} store + * @returns {{ current: V }} + */ +/** + * @template V + * @overload + * @param {Readable} store + * @returns {{ readonly current: V }} + */ +/** + * Convert a store to an object with a reactive `current` property. If `store` + * is a readable store, `current` will be a readonly property. + * + * ```ts + * import { fromStore, get, writable } from 'svelte/store'; + * + * const store = writable(0); + * + * const count = fromStore(store); + * + * count.current; // 0; + * store.set(1); + * count.current; // 1 + * + * count.current += 1; + * get(store); // 2 + * ``` + * @template V + * @param {Writable | Readable} store + */ +function fromStore(store) { + if ('set' in store) { + return { + get current() { + return get(store); + }, + set current(v) { + store.set(v); + } + }; + } + + return { + get current() { + return get(store); + } + }; +} + +var t$5=c$5(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return !!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==false&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return false}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n);}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n));}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g;})); + +var i$4=function(e,t){return i$4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);},i$4(e,t)};function a$4(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);i$4(e,t);function n(){this.constructor=e;}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n);}var o$4=function(){return o$4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}),n=[],r=0,i=t;r1)throw RangeError(`integer-width stems only accept a single optional option`);i.options[0].replace(ve$1,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return ``});continue}if(ye$1.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ge$1.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(ge$1,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});var a=i.options[0];a===`w`?t=o$4(o$4({},t),{trailingZeroDisplay:`stripIfInteger`}):a&&(t=o$4(o$4({},t),be$1(a)));continue}if(_e$1.test(i.stem)){t=o$4(o$4({},t),be$1(i.stem));continue}var s=xe$1(i.stem);s&&(t=o$4(o$4({},t),s));var c=Se$1(i.stem);c&&(t=o$4(o$4({},t),c));}return t}var T$2={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function Te$1(e,t){for(var n=``,r=0;r>1),c=`a`,l=Ee$1(t);for((l==`H`||l==`k`)&&(s=0);s-- >0;)n+=c;for(;o-- >0;)n=l+n;}else i===`J`?n+=`H`:n+=i;}return n}function Ee$1(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case `h24`:return `k`;case `h23`:return `H`;case `h12`:return `h`;case `h11`:return `K`;default:throw Error(`Invalid hourCycle`)}var n=e.language,r;return n!==`root`&&(r=e.maximize().region),(T$2[r||``]||T$2[n||``]||T$2[`${n}-001`]||T$2[`001`])[0]}var De$1=RegExp(`^${ue$1.source}*`),Oe$1=RegExp(`${ue$1.source}*\$`);function E$2(e,t){return {start:e,end:t}}var ke$1=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),Ae$1=!!String.fromCodePoint,je$1=!!Object.fromEntries,Me$1=!!String.prototype.codePointAt,Ne$1=!!String.prototype.trimStart,Pe$1=!!String.prototype.trimEnd,Fe$1=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},D$2=true;try{D$2=Ve$1(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`).exec(`a`)?.[0]===`a`;}catch{D$2=false;}var Ie$1=ke$1?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},O$2=Ae$1?String.fromCodePoint:function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320);}return t},Le$1=je$1?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}},ze$1=Ne$1?function(e){return e.trimStart()}:function(e){return e.replace(De$1,``)},Be$1=Pe$1?function(e){return e.trimEnd()}:function(e){return e.replace(Oe$1,``)};function Ve$1(e,t){return new RegExp(e,t)}var k$2;if(D$2){var He$1=Ve$1(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);k$2=function(e,t){return He$1.lastIndex=t,He$1.exec(e)[1]??``};}else k$2=function(e,t){for(var n=[];;){var r=Re$1(e,t);if(r===void 0||Ke$1(r)||qe$1(r))break;n.push(r),t+=r>=65536?2:1;}return O$2.apply(void 0,n)};var Ue$1=function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,false)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val);}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:S$3.pound,location:E$2(o,this.clonePosition())});}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(x$3.UNMATCHED_CLOSING_TAG,E$2(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&A$2(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val);}else {var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val);}}return {val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return {val:{type:S$3.literal,value:`<${r}/>`,location:E$2(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,true);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(``)?{val:{type:S$3.tag,value:r,children:a,location:E$2(n,this.clonePosition())},err:null}:this.error(x$3.INVALID_TAG,E$2(o,this.clonePosition()))):this.error(x$3.UNMATCHED_CLOSING_TAG,E$2(s,this.clonePosition()))}else return this.error(x$3.UNCLOSED_TAG,E$2(n,this.clonePosition()))}else return this.error(x$3.INVALID_TAG,E$2(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Ge$1(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=E$2(n,this.clonePosition());return {val:{type:S$3.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!We$1(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else {this.bump();break}else t.push(n);this.bump();}return O$2.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),O$2(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x$3.EXPECT_ARGUMENT_CLOSING_BRACE,E$2(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x$3.EMPTY_ARGUMENT,E$2(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(x$3.MALFORMED_ARGUMENT,E$2(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x$3.EXPECT_ARGUMENT_CLOSING_BRACE,E$2(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:S$3.argument,value:r,location:E$2(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x$3.EXPECT_ARGUMENT_CLOSING_BRACE,E$2(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(x$3.MALFORMED_ARGUMENT,E$2(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=k$2(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:E$2(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case ``:return this.error(x$3.EXPECT_ARGUMENT_TYPE,E$2(i,s));case `number`:case `date`:case `time`:this.bumpSpace();var c=null;if(this.bumpIf(`,`)){this.bumpSpace();var l=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var d=Be$1(u.val);if(d.length===0)return this.error(x$3.EXPECT_ARGUMENT_STYLE,E$2(this.clonePosition(),this.clonePosition()));c={style:d,styleLocation:E$2(l,this.clonePosition())};}var f=this.tryParseArgumentClose(r);if(f.err)return f;var p=E$2(r,this.clonePosition());if(c&&Ie$1(c?.style,`::`,0)){var m=ze$1(c.style.slice(2));if(a===`number`){var u=this.parseNumberSkeletonFromString(m,c.styleLocation);return u.err?u:{val:{type:S$3.number,value:n,location:p,style:u.val},err:null}}else {if(m.length===0)return this.error(x$3.EXPECT_DATE_TIME_SKELETON,p);var h=m;this.locale&&(h=Te$1(m,this.locale));var d={type:C$3.dateTime,pattern:h,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?fe$1(h):{}};return {val:{type:a===`date`?S$3.date:S$3.time,value:n,location:p,style:d},err:null}}}return {val:{type:a===`number`?S$3.number:a===`date`?S$3.date:S$3.time,value:n,location:p,style:c?.style??null},err:null};case `plural`:case `selectordinal`:case `select`:var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(x$3.EXPECT_SELECT_ARGUMENT_OPTIONS,E$2(g,o$4({},g)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),v=0;if(a!==`select`&&_.value===`offset`){if(!this.bumpIf(`:`))return this.error(x$3.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E$2(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(x$3.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x$3.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),_=this.parseIdentifierIfPossible(),v=u.val;}var y=this.tryParsePluralOrSelectOptions(e,a,t,_);if(y.err)return y;var f=this.tryParseArgumentClose(r);if(f.err)return f;var b=E$2(r,this.clonePosition());return a===`select`?{val:{type:S$3.select,value:n,options:Le$1(y.val),location:b},err:null}:{val:{type:S$3.plural,value:n,options:Le$1(y.val),offset:v,pluralType:a===`plural`?`cardinal`:`ordinal`,location:b},err:null};default:return this.error(x$3.INVALID_ARGUMENT_TYPE,E$2(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(x$3.EXPECT_ARGUMENT_CLOSING_BRACE,E$2(e,this.clonePosition())):(this.bump(),{val:true,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(x$3.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E$2(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return {val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return {val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=me$1(e);}catch{return this.error(x$3.INVALID_NUMBER_SKELETON,t)}return {val:{type:C$3.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?we$1(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=false,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(x$3.EXPECT_PLURAL_ARGUMENT_SELECTOR,x$3.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=E$2(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset());}else break}if(s.has(c))return this.error(t===`select`?x$3.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x$3.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=true),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?x$3.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x$3.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E$2(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:E$2(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location;}return o.length===0?this.error(t===`select`?x$3.EXPECT_SELECT_ARGUMENT_SELECTOR:x$3.EXPECT_PLURAL_ARGUMENT_SELECTOR,E$2(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(x$3.MISSING_OTHER_CLAUSE,E$2(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=false,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=true,a=a*10+(o-48),this.bump();else break}var s=E$2(r,this.clonePosition());return i?(a*=n,Fe$1(a)?{val:a,err:null}:this.error(t,s)):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=Re$1(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return {val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2);}},e.prototype.bumpIf=function(e){if(Ie$1(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),true):(this.bumpTo(this.message.length),false)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ke$1(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e}();function A$2(e){return e>=97&&e<=122||e>=65&&e<=90}function We$1(e){return A$2(e)||e===47}function Ge$1(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ke$1(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function qe$1(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function j$2(e){e.forEach(function(e){if(delete e.location,ae$1(e)||oe$1(e))for(var t in e.options)delete e.options[t].location,j$2(e.options[t].value);else ne(e)&&le$1(e.style)||(re$1(e)||ie$1(e))&&w$3(e.style)?delete e.style.location:ce$1(e)&&j$2(e.children);});}function Je$1(e,t){t===void 0&&(t={}),t=o$4({shouldParseSkeletons:true,requiresOtherClause:true},t);var n=new Ue$1(e,t).parse();if(n.err){var r=SyntaxError(x$3[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||j$2(n.val),n.val}var M$2;(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`;})(M$2||={});var N$2=function(e){a$4(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return `[formatjs Error: ${this.code}] ${this.message}`},t}(Error),Ye$1=function(e){a$4(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,M$2.INVALID_VALUE,i)||this}return t}(N$2),Xe$1=function(e){a$4(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,M$2.INVALID_VALUE,r)||this}return t}(N$2),Ze$1=function(e){a$4(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,M$2.MISSING_VALUE,n)||this}return t}(N$2),P$2;(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`;})(P$2||={});function Qe$1(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return !n||n.type!==P$2.literal||t.type!==P$2.literal?e.push(t):n.value+=t.value,e},[])}function $e$1(e){return typeof e==`function`}function F$2(e,t,n,r,i,a,o){if(e.length===1&&ee$1(e[0]))return [{type:P$2.literal,value:e[0].value}];for(var s=[],c=0,l=e;c0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=Je$1,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e}(),it$1=d$6(t$5());function at$1(e,t){if(t==null)return;if(t in e)return e[t];let n=t.split(`.`),r=e;for(let e=0;e0){let t=n.slice(e,n.length).join(`.`);if(t in r){r=r[t];break}}r=r[n[e]];}else r=void 0;return r}var L$2={},ot=(e,t,n)=>n&&(t in L$2||(L$2[t]={}),e in L$2[t]||(L$2[t][e]=n),n),st$1=(e,t)=>{if(t==null)return;if(t in L$2&&e in L$2[t])return L$2[t][e];let n=q$2(t);for(let r=0;r(n[e]=it$1.default.all([n[e]||{},...t]),n));}derived([z$2],([e])=>Object.keys(e)),z$2.subscribe(e=>R$2=e);var B$2={};function pt$1(e){B$2[e]=new Set;}function mt$1(e,t){B$2[e].delete(t),B$2[e].size===0&&delete B$2[e];}function V$2(e){return B$2[e]}function ht$1(e){return q$2(e).map(e=>{let t=V$2(e);return [e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function H$2(e){return e==null?false:q$2(e).some(e=>V$2(e)?.size)}function gt$1(e,t){return Promise.all(t.map(t=>(mt$1(e,t),t().then(e=>e.default||e)))).then(t=>ft$1(e,...t))}var U$2={};function _t(e){if(!H$2(e))return e in U$2?U$2[e]:Promise.resolve();let t=ht$1(e);return U$2[e]=Promise.all(t.map(([e,t])=>gt$1(e,t))).then(()=>{if(H$2(e))return _t(e);delete U$2[e];}),U$2[e]}function vt$1(e,t){V$2(e)||pt$1(e);let n=V$2(e);V$2(e).has(t)||(lt$1(e)||z$2.update(t=>(t[e]={},t)),n.add(t));}var yt$1=Object.getOwnPropertySymbols,bt$1=Object.prototype.hasOwnProperty,xt$1=Object.prototype.propertyIsEnumerable,St$1=(e,t)=>{var n={};for(var r in e)bt$1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yt$1)for(var r of yt$1(e))t.indexOf(r)<0&&xt$1.call(e,r)&&(n[r]=e[r]);return n},Ct={number:{scientific:{notation:`scientific`},engineering:{notation:`engineering`},compactLong:{notation:`compact`,compactDisplay:`long`},compactShort:{notation:`compact`,compactDisplay:`short`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}};function wt$1({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${q$2(e).join(`", "`)}".${H$2(J$2())?` + +Note: there are at least one loader still registered to this locale that wasn't executed.`:``}`);}var W$2={fallbackLocale:null,loadingDelay:200,formats:Ct,warnOnMissingMessages:true,handleMissingMessage:void 0,ignoreTag:true};function G$2(){return W$2}function Tt$1(e){let t=e,{formats:n}=t,r=St$1(t,[`formats`]),i=e.fallbackLocale;if(e.initialLocale)try{rt$1.resolveLocale(e.initialLocale)&&(i=e.initialLocale);}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`);}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=wt$1:console.warn(`[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.`)),Object.assign(W$2,r,{initialLocale:i}),n&&(`number`in n&&Object.assign(W$2.formats.number,n.number),`date`in n&&Object.assign(W$2.formats.date,n.date),`time`in n&&Object.assign(W$2.formats.time,n.time)),Y$2.set(i)}var Et$1=writable(false),Dt$1=Object.defineProperty,Ot=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Nt=(e,t,n)=>t in e?Dt$1(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,Pt=(e,t)=>{for(var n in t||={})jt.call(t,n)&&Nt(e,n,t[n]);if(At)for(var n of At(t))Mt.call(t,n)&&Nt(e,n,t[n]);return e},Ft=(e,t)=>Ot(e,kt(t)),It,K$2=writable(null);function Lt(e){return e.split(`-`).map((e,t,n)=>n.slice(0,t+1).join(`-`)).reverse()}function q$2(e,t=G$2().fallbackLocale){let n=Lt(e);return t?[...new Set([...n,...Lt(t)])]:n}function J$2(){return It??void 0}K$2.subscribe(e=>{It=e??void 0,typeof window<`u`&&e!=null&&document.documentElement.setAttribute(`lang`,e);});var Y$2=Ft(Pt({},K$2),{set:e=>{if(e&&dt$1(e)&&H$2(e)){let{loadingDelay:t}=G$2(),n;return typeof window<`u`&&J$2()!=null&&t?n=window.setTimeout(()=>Et$1.set(true),t):Et$1.set(true),_t(e).then(()=>{K$2.set(e);}).finally(()=>{clearTimeout(n),Et$1.set(false);})}return K$2.set(e)}}),Rt=()=>typeof window>`u`?null:window.navigator.language||window.navigator.languages[0],X$1=e=>{let t=Object.create(null);return n=>{let r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},zt=Object.defineProperty,Z$1=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||={})Bt.call(t,n)&&Ht(e,n,t[n]);if(Z$1)for(var n of Z$1(t))Vt.call(t,n)&&Ht(e,n,t[n]);return e},Q$1=(e,t)=>{var n={};for(var r in e)Bt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Z$1)for(var r of Z$1(e))t.indexOf(r)<0&&Vt.call(e,r)&&(n[r]=e[r]);return n},$$1=(e,t)=>{let{formats:n}=G$2();if(e in n&&t in n[e])return n[e][t];throw Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Wt=X$1(e=>{var t=e,{locale:n,format:r}=t,i=Q$1(t,[`locale`,`format`]);if(n==null)throw Error(`[svelte-i18n] A "locale" must be set to format numbers`);return r&&(i=$$1(`number`,r)),new Intl.NumberFormat(n,i)}),Gt=X$1(e=>{var t=e,{locale:n,format:r}=t,i=Q$1(t,[`locale`,`format`]);if(n==null)throw Error(`[svelte-i18n] A "locale" must be set to format dates`);return r?i=$$1(`date`,r):Object.keys(i).length===0&&(i=$$1(`date`,`short`)),new Intl.DateTimeFormat(n,i)}),Kt=X$1(e=>{var t=e,{locale:n,format:r}=t,i=Q$1(t,[`locale`,`format`]);if(n==null)throw Error(`[svelte-i18n] A "locale" must be set to format time values`);return r?i=$$1(`time`,r):Object.keys(i).length===0&&(i=$$1(`time`,`short`)),new Intl.DateTimeFormat(n,i)}),qt=(e={})=>{var t=e,{locale:n=J$2()}=t,r=Q$1(t,[`locale`]);return Wt(Ut({locale:n},r))},Jt=(e={})=>{var t=e,{locale:n=J$2()}=t,r=Q$1(t,[`locale`]);return Gt(Ut({locale:n},r))},Yt=(e={})=>{var t=e,{locale:n=J$2()}=t,r=Q$1(t,[`locale`]);return Kt(Ut({locale:n},r))},Xt=X$1((e,t=J$2())=>new rt$1(e,t,G$2().formats,{ignoreTag:G$2().ignoreTag})),Zt=(e,t={})=>{var n;let r=t;typeof e==`object`&&(r=e,e=r.id);let{values:i,locale:a=J$2(),default:o}=r;if(a==null)throw Error(`[svelte-i18n] Cannot format a message without first setting the initial locale.`);let s=st$1(e,a);if(!s)s=(n=G$2()).handleMissingMessage?.call(n,{locale:a,id:e,defaultValue:o})??o??e;else if(typeof s!=`string`)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s;if(!i)return s;let c=s;try{c=Xt(s,a).format(i);}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message);}return c},Qt=(e,t)=>Yt(t).format(e),$t=(e,t)=>Jt(t).format(e),en=(e,t)=>qt(t).format(e),tn=(e,t=J$2())=>st$1(e,t),nn=derived([Y$2,z$2],()=>Zt);derived([Y$2],()=>Qt),derived([Y$2],()=>$t),derived([Y$2],()=>en),derived([Y$2,z$2],()=>tn); + +var t$4=writable(null); + +var e$2=Object.prototype.hasOwnProperty;function t$3(e,t,r){for(r of e.keys())if(n$3(r,t))return r}function n$3(r,i){var a,o,s;if(r===i)return true;if(r&&i&&(a=r.constructor)===i.constructor){if(a===Date)return r.getTime()===i.getTime();if(a===RegExp)return r.toString()===i.toString();if(a===Array){if((o=r.length)===i.length)for(;o--&&n$3(r[o],i[o]););return o===-1}if(a===Set){if(r.size!==i.size)return false;for(o of r)if(s=o,s&&typeof s==`object`&&(s=t$3(i,s),!s)||!i.has(s))return false;return true}if(a===Map){if(r.size!==i.size)return false;for(o of r)if(s=o[0],s&&typeof s==`object`&&(s=t$3(i,s),!s)||!n$3(o[1],i.get(s)))return false;return true}if(a===ArrayBuffer)r=new Uint8Array(r),i=new Uint8Array(i);else if(a===DataView){if((o=r.byteLength)===i.byteLength)for(;o--&&r.getInt8(o)===i.getInt8(o););return o===-1}if(ArrayBuffer.isView(r)){if((o=r.byteLength)===i.byteLength)for(;o--&&r[o]===i[o];);return o===-1}if(!a||typeof r==`object`){for(a in o=0,r)if(e$2.call(r,a)&&++o&&!e$2.call(i,a)||!(a in i)||!n$3(r[a],i[a]))return false;return Object.keys(i).length===o}}return r!==r&&i!==i} + +var n$2=[{color:`red`,primary:600,secondary:100},{color:`green`,primary:600,secondary:100},{color:`blue`,primary:600,secondary:100},{color:`yellow`,primary:500,secondary:100},{color:`purple`,primary:600,secondary:100},{color:`teal`,primary:600,secondary:100},{color:`orange`,primary:600,secondary:100},{color:`cyan`,primary:600,secondary:100},{color:`lime`,primary:500,secondary:100},{color:`pink`,primary:600,secondary:100}],r$2={inherit:`inherit`,current:`currentColor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`}};n$2.reduce((e,{color:t,primary:n,secondary:i})=>({...e,[t]:{primary:r$2[t][n],secondary:r$2[t][i]}}),{});function i$3(e,t,n){let r=n??(typeof window<`u`?window.location.href:void 0),i=r?new URL(e||`/`,r):new URL(e),a=r?new URL(r):null,o=i.pathname.replace(/\/$/,``),s=t.startsWith(`/`)?t:`/${t}`,c=n!==void 0||typeof window<`u`&&window.gradio_config!==void 0,l=a&&i.hostname===a.hostname&&c?a.origin:i.origin;return new URL(`${o}${s}`,l)}var a$3=`__i18n__`,o$3=[`label`,`info`,`placeholder`,`description`,`title`,`value`],s$3=class s extends Error{constructor(e){super(e),this.name=`ShareError`;}};async function c$3(e,t){if(window.__gradio_space__==null)throw new s$3(`Must be on Spaces to share.`);let n,r,i;{let t;if(typeof e==`object`&&e.url)t=e.url;else if(typeof e==`string`)t=e;else throw Error(`Invalid data format for URL type`);let a=await fetch(t);n=await a.blob(),r=a.headers.get(`content-type`)||``,i=a.headers.get(`content-disposition`)||``;}let a=new File([n],i,{type:r}),o=await fetch(`https://huggingface.co/uploads`,{method:`POST`,body:a,headers:{"Content-Type":a.type,"X-Requested-With":`XMLHttpRequest`}});if(!o.ok)throw o.headers.get(`content-type`)?.includes(`application/json`)?new s$3(`Upload failed: ${(await o.json()).error}`):new s$3(`Upload failed.`);return await o.text()}var u$3=e=>{let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.round(e)%60,i=`${n<10?`0`:``}${n}`,a=`${r<10?`0`:``}${r}`;return t>0?`${t}:${i}:${a}`:`${n}:${a}`},d$4=`elem_id.elem_classes.visible.interactive.server_fns.server.id.target.theme_mode.version.root.autoscroll.max_file_size.formatter.client.load_component.scale.min_width.theme.padding.loading_status.label.show_label.validation_error.show_progress.api_prefix.container.attached_events.register_component.unregister_component.dispatcher`.split(`.`);function f$4(e){return typeof e==`string`&&e.includes(`__i18n__`)}function p$4(e,t){let n=e.indexOf(a$3);if(n===-1)return e;let r=n+8,i=e.indexOf(`}`,r)+1;if(i===0)return e;try{let a=JSON.parse(e.slice(r,i));if(a?.key){let r=t(a.key),o=r===a.key?a.key:r;return e.slice(0,n)+o+e.slice(i)}}catch{}return e}var m$4=class m{load_component;shared={};props={};i18n=e=>e;i18n_store;_i18n_from_store;translatable_props={};dispatcher;last_update=null;shared_props=d$4;mounted=false;old_value;register_component;unregister_component;set_data_callback;get_data_callback;registered_id=null;last_shared_props;last_props;constructor(t,n){for(let e in t.shared_props)this.shared[e]=t.shared_props[e];for(let e in t.props)e!==`i18n_store`&&(this.props[e]=t.props[e]);if(n)for(let e in n)this.props[e]===void 0&&(this.props[e]=n[e]);this.i18n=this.props.i18n??(e=>e),this.i18n_store=t.props.i18n_store,this._i18n_from_store=this.i18n_store?fromStore(this.i18n_store):void 0;for(let e of o$3)this.shared[e]=this._translate_and_store(`shared`,e,t.shared_props[e]),this.props[e]=this._translate_and_store(`props`,e,t.props[e]);this.load_component=this.shared.load_component,this.register_component=this.shared.register_component||(()=>{}),this.unregister_component=this.shared.unregister_component||(()=>{}),this.dispatcher=this.shared.dispatcher||(()=>{}),this.set_data_callback=this.set_data.bind(this),this.get_data_callback=this.get_data.bind(this),this.register_component(this.shared.id,this.set_data_callback,this.get_data_callback),this.registered_id=this.shared.id,this.last_shared_props=t.shared_props,this.last_props=t.props;}_is_i18n_managed(e,t){let n=this.translatable_props[e];return n?t===n?true:(delete this.translatable_props[e],false):false}_translate_and_store(e,t,n){if(typeof n!=`string`)return n;let r=this.i18n(n);return r!==n&&(this.translatable_props[`${e}.${t}`]=n),r}live_i18n=e=>(this._i18n_from_store?.current,this.i18n(e));dispatch(e,t){this.dispatcher(this.shared.id,e,t);}async get_data(){return snapshot(this.props)}update(e){this.set_data(e);}set_data(e){for(let t in e){let n=e[t],r=f$4(n)?this._translate_and_store(this.shared_props.includes(t)?`shared`:`props`,t,n):n;if(this.shared_props.includes(t)){let e=t;this.shared[e]=r;continue}this.props[t]=r;}}watch_for_change(){}},h$4=e=>typeof e==`number`?e+`px`:e; + +var e$1=`host`,t$2=`queue/data`,n$1=`queue/join`,r$1=`upload`,i$2=`login`,a$2=`config`,o$2=`info`,s$2=`runtime`,c$2=`sleeptime`,l$2=`heartbeat`,u$2=`component_server`,d$3=`reset`,f$3=`cancel`,p$3=`app_id`,m$3=`This application is currently busy. Please try again. `,h$3=`Connection errored out. `,g$3=`Could not resolve app config. `,ee=`Could not get space status. `,te=`Could not get API info. `,_$3=`Space metadata could not be loaded. `,v$3=`Invalid URL. A full URL path is required.`,y$3=`Not authorized to access this space. `,b$3=`Invalid credentials. Could not login. `,x$2="Could not access this app (received a 401 response). If it is a private Hugging Face Space, pass a valid Hugging Face token to the `token` option of `Client.connect`. You can generate a token at https://huggingface.co/settings/tokens.",S$2=(e,t)=>`Space "${e}" could not be accessed (received a ${t} response from the Hugging Face API). Check that the Space name is spelled correctly and that the Space exists. If the Space is private, pass a valid Hugging Face token to the \`token\` option of \`Client.connect\`. You can generate a token at https://huggingface.co/settings/tokens.`,re="No API information is available for this app. This can happen when the app's `/info` endpoint cannot be reached, or when the app is running a legacy version of Gradio that is not supported by this client. ",ie=`This app appears to be running a legacy version of Gradio (3.x or earlier) that communicates over WebSockets, which is not supported by this version of @gradio/client. Please upgrade the app to a newer version of Gradio, or connect to it with @gradio/client version 0.x.`,C$2=`File system access is only available in Node.js environments`,w$2=`Root URL not found in client config`,ae=`Error uploading file`;async function T$1(e,t,n){try{return (await(await fetch(`https://huggingface.co/api/spaces/${e}/jwt`,{headers:{Authorization:`Bearer ${t}`,...n?{Cookie:n}:{}}})).json()).token||!1}catch{return false}}function E$1(e){e.hf_token&&!e.token&&(e.token=e.hf_token,console.warn("The `hf_token` option has been renamed to `token`. Support for `hf_token` will be removed in a future version of @gradio/client."));}function D$1(e){let t={};return e.forEach(({api_name:e,id:n})=>{e&&(t[e]=n);}),t}function oe(e,t){let n=new URL(e,t),r=new URL(t);return n.hostname===r.hostname?(n.protocol=r.protocol,n.host=r.host,n.toString().replace(/\/$/,``)):e}async function O$1(e,t=true){let n=this.options.token?{Authorization:`Bearer ${this.options.token}`}:{};if(typeof window<`u`&&window.gradio_config&&location.origin!==`http://localhost:9876`){if(t&&window.gradio_config.current_page&&(e=e.substring(0,e.lastIndexOf(`/`))),window.gradio_config.dev_mode||typeof window<`u`&&window?.BUILD_MODE===`dev`){let t=N$1(e,this.deep_link?a$2+`?deep_link=`+this.deep_link:a$2),r=await se(await this.fetch(t,{headers:n,credentials:this.options.credentials??`same-origin`}),!!this.options.auth);r.root=e||r.root,window.gradio_config={...r,current_page:window.gradio_config.current_page};}let r={...window.gradio_config};return r.root=oe(r.root,location.href),r}else if(e){let t=N$1(e,this.deep_link?a$2+`?deep_link=`+this.deep_link:a$2),r=await se(await this.fetch(t,{headers:n,credentials:this.options.credentials??`same-origin`}),!!this.options.auth);return r.root||=e,r}throw Error(g$3)}async function se(e,t){if(e?.status===401&&!t){let t=null;try{t=await e.json();}catch{throw Error(x$2)}let n=t?.detail?.auth_message;throw Error(n||`Login credentials are required to access this space.`)}else if(e?.status===401&&t)throw Error(b$3);if(e?.status===200){let t=await e.json();return t.dependencies?.forEach((e,t)=>{e.id===void 0&&(e.id=t);}),t}else if(e?.status===401)throw Error(y$3);throw Error(`${g$3}(received status ${e?.status} when fetching the app config)`)}async function ce(){let{http_protocol:e,host:t}=await M$1(this.app_reference,this.options.token);try{if(this.options.auth){let n=await k$1(e,t,this.options.auth,this.fetch,this.options.token,this.options.credentials);n&&this.set_cookies(n);}}catch(e){throw Error(e.message)}}async function k$1(e,t,n,r,a,o){let s=new FormData;s.append(`username`,n?.[0]),s.append(`password`,n?.[1]);let c={};a&&(c.Authorization=`Bearer ${a}`);let l=await r(`${e}//${t}/${i$2}`,{headers:c,method:`POST`,body:s,credentials:o??`same-origin`});if(l.status===200)return l.headers.get(`set-cookie`);throw l.status===401?Error(b$3):Error(_$3)}function A$1(e){if(e.startsWith(`http`)){let{protocol:t,host:n,pathname:r}=new URL(e);return {ws_protocol:t===`https:`?`wss`:`ws`,http_protocol:t,host:n+(r===`/`?``:r)}}return {ws_protocol:`wss`,http_protocol:`https:`,host:new URL(e).host}}var le=e=>{let t=[];return e.split(/,(?=\s*[^\s=;]+=[^\s=;]+)/).forEach(e=>{let[n,r]=e.split(`;`)[0].split(`=`);n&&r&&t.push(`${n.trim()}=${r.trim()}`);}),t},j$1=/^[a-zA-Z0-9_\-\.]+\/[a-zA-Z0-9_\-\.]+$/,ue=/.*hf\.space\/{0,1}.*$/;async function M$1(t,n){let r={};n&&(r.Authorization=`Bearer ${n}`);let i=t.trim().replace(/\/$/,``);if(j$1.test(i)){let t;try{t=await fetch(`https://huggingface.co/api/spaces/${i}/${e$1}`,{headers:r});}catch{throw Error(_$3)}if(t.status===401||t.status===404)throw Error(S$2(i,t.status));let n;try{n=(await t.json()).host;}catch{throw Error(_$3)}if(!n)throw Error(_$3);return {space_id:i,...A$1(n)}}if(ue.test(i)){let{ws_protocol:e,http_protocol:t,host:n}=A$1(i);return {space_id:n.split(`/`)[0].replace(`.hf.space`,``),ws_protocol:e,http_protocol:t,host:n}}return {space_id:false,...A$1(i)}}var N$1=(...e)=>{try{return e.reduce((e,t)=>(e=e.replace(/\/+$/,``),t=t.replace(/^\/+/,``),new URL(t,e+`/`).toString()))}catch{throw Error(v$3)}};function P$1(e,t,n){let r={named_endpoints:{},unnamed_endpoints:{}};return Object.keys(e).forEach(i=>{(i===`named_endpoints`||i===`unnamed_endpoints`)&&(r[i]={},Object.entries(e[i]).forEach(([e,a])=>{let o=a?.parameters??[],s=a?.returns??[],c=t.dependencies.find(t=>t.api_name===e||t.api_name===e.replace(`/`,``))?.id||n[e.replace(`/`,``)]||-1,l=c===-1?void 0:t.dependencies.find(e=>e.id==c),u=c===-1?{generator:false,cancel:false}:l?.types;if(l&&Array.isArray(l.inputs)&&l.inputs.length!==o.length){let e=l.inputs.map(e=>t.components.find(t=>t.id===e)?.type);try{e.forEach((e,t)=>{e===`state`&&o.splice(t,0,{component:`state`,example:null,parameter_default:null,parameter_has_default:!0,parameter_name:null,hidden:!0});});}catch(e){console.error(e);}}let d=(e,t,n,r)=>({...e,description:I$1(e?.type,n),type:F$1(e?.type,t,n,r)||``});r[i][e]={parameters:o.map(e=>d(e,e?.component,e?.serializer,`parameter`)),returns:s.map(e=>d(e,e?.component,e?.serializer,`return`)),type:u,...a?.oauth_token?{oauth_token:a.oauth_token}:{}};}));}),r}function F$1(e,t,n,r){if(t===`Api`)return e.type;switch(e?.type){case `string`:return `string`;case `boolean`:return `boolean`;case `number`:return `number`}if(n===`JSONSerializable`||n===`StringSerializable`)return `any`;if(n===`ListStringSerializable`)return `string[]`;if(t===`Image`)return r===`parameter`?`Blob | File | Buffer`:`string`;if(n===`FileSerializable`)return e?.type===`array`?r===`parameter`?`(Blob | File | Buffer)[]`:`{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}[]`:r===`parameter`?`Blob | File | Buffer`:`{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}`;if(n===`GallerySerializable`)return r===`parameter`?`[(Blob | File | Buffer), (string | null)][]`:`[{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}, (string | null))][]`}function I$1(e,t){return t===`GallerySerializable`?`array of [file, label] tuples`:t===`ListStringSerializable`?`array of strings`:t===`FileSerializable`?`array of files or single file`:e?.description}function de(e,t){switch(e.msg){case `send_data`:return {type:`data`};case `send_hash`:return {type:`hash`};case `queue_full`:return {type:`update`,status:{queue:true,message:m$3,stage:`error`,code:e.code,success:e.success}};case `heartbeat`:return {type:`heartbeat`};case `unexpected_error`:return {type:`unexpected_error`,status:{queue:true,message:e.message,session_not_found:e.session_not_found,stage:`error`,success:false}};case `broken_connection`:return {type:`broken_connection`,status:{queue:true,message:e.message,stage:`error`,success:false}};case `estimation`:return {type:`update`,status:{queue:true,stage:t||`pending`,code:e.code,size:e.queue_size,position:e.rank,eta:e.rank_eta,success:e.success}};case `progress`:return {type:`update`,status:{queue:true,stage:`pending`,code:e.code,progress_data:e.progress_data,success:e.success}};case `log`:return {type:`log`,data:e};case `process_generating`:return {type:`generating`,status:{queue:true,message:e.success?null:e.output.error,stage:e.success?`generating`:`error`,code:e.code,progress_data:e.progress_data,eta:e.average_duration,changed_state_ids:e.success?e.output.changed_state_ids:void 0},data:e.success?e.output:null};case `process_streaming`:return {type:`streaming`,status:{queue:true,message:e.output.error,stage:`streaming`,time_limit:e.time_limit,code:e.code,progress_data:e.progress_data,changed_state_ids:e.output.changed_state_ids,eta:e.eta},data:e.output};case `process_completed`:return `error`in e.output?{type:`update`,status:{queue:true,title:e.output.title??`Error`,message:e.output.error??`An error occurred`,visible:e.output.visible,duration:e.output.duration,stage:`error`,code:e.code,success:e.success}}:{type:`complete`,status:{queue:true,message:e.success?void 0:e.output.error,stage:e.success?`complete`:`error`,code:e.code,progress_data:e.progress_data,changed_state_ids:e.success?e.output.changed_state_ids:void 0,used_cache:e.used_cache,cache_duration:e.cache_duration,avg_time:e.avg_time},data:e.success?e.output:null};case `process_starts`:return {type:`update`,status:{queue:true,stage:`pending`,code:e.code,size:e.rank,position:0,success:e.success,eta:e.eta},original_msg:`process_starts`}}return {type:`none`,status:{stage:`error`,queue:true}}}var fe=(e=[],t)=>{let n=t?t.parameters:[];if(Array.isArray(e))return t&&n.length>0&&e.length>n.length&&console.warn(`Too many arguments provided for the endpoint.`),e;let r=[],i=Object.keys(e);return n.forEach((t,n)=>{if(e.hasOwnProperty(t.parameter_name))r[n]=e[t.parameter_name];else if(t.parameter_has_default)r[n]=t.parameter_default;else throw Error(`No value provided for required parameter: ${t.parameter_name}`)}),i.forEach(e=>{if(!n.some(t=>t.parameter_name===e))throw Error(`Parameter \`${e}\` is not a valid keyword argument. Please refer to the API for usage.`)}),r.forEach((e,t)=>{if(e===void 0&&!n[t].parameter_has_default)throw Error(`No value provided for required parameter: ${n[t].parameter_name}`)}),r};async function L$1(){if(this.api_info)return this.api_info;let{token:e}=this.options,{config:t}=this,n={};if(e&&(n.Authorization=`Bearer ${e}`),t)try{let e,r;if(typeof window<`u`&&window.gradio_api_info)r=window.gradio_api_info;else {let i=N$1(t.root,this.api_prefix,o$2);if(e=await this.fetch(i,{headers:n,credentials:this.options.credentials??`same-origin`}),!e.ok)throw Error(h$3);r=await e.json();}return `api`in r&&(r=r.api),r.named_endpoints[`/predict`]&&!r.unnamed_endpoints[0]&&(r.unnamed_endpoints[0]=r.named_endpoints[`/predict`]),P$1(r,t,this.api_map)}catch(e){throw Error(`Could not get API info. `+e.message)}}async function pe(e,t,n){let i={};this?.options?.token&&(i.Authorization=`Bearer ${this.options.token}`);let a=1e3,o=[],s;for(let c=0;c{u.append(`files`,e);});try{let t=n?`${e}${this.api_prefix}/${r$1}?upload_id=${n}`:`${e}${this.api_prefix}/${r$1}`;s=await this.fetch(t,{method:`POST`,body:u,headers:i,credentials:this.options.credentials??`same-origin`});}catch(e){throw Error(h$3+e.message)}if(!s.ok){let e=await s.text();return {error:`HTTP ${s.status}: ${e}`}}let d=await s.json();d&&o.push(...d);}return {files:o}}var R$1={si:{radix:1e3,unit:[`b`,`kb`,`Mb`,`Gb`,`Tb`,`Pb`,`Eb`,`Zb`,`Yb`]},iec:{radix:1024,unit:[`b`,`Kib`,`Mib`,`Gib`,`Tib`,`Pib`,`Eib`,`Zib`,`Yib`]},jedec:{radix:1024,unit:[`b`,`Kb`,`Mb`,`Gb`,`Tb`,`Pb`,`Eb`,`Zb`,`Yb`]}};function me(e,t=1,n=`jedec`){e=Math.abs(e);let{radix:r,unit:i}=R$1[n]||R$1.jedec,a=0;for(;e>=r;)e/=r,++a;return `${e.toFixed(t)} ${i[a]}`}async function z$1(e,t,n,r){let i=(Array.isArray(e)?e:[e]).map(e=>e.blob),a=i.filter(e=>e.size>(r??1/0));if(a.length)throw Error(`File(s) exceed the maximum allowed size of ${me(r||1/0)}: ${a.map(e=>`"${e.name}"`).join(`, `)}`);return await Promise.all(await this.upload_files(t,i,n).then(async n=>{if(n.error)throw Error(n.error);return n.files?n.files.map((n,r)=>new B$1({...e[r],path:n,url:`${t}${this.api_prefix}/file=${n}`})):[]}))}async function he(e,t){return e.map(e=>new B$1({path:e.name,orig_name:e.name,blob:e,size:e.size,mime_type:e.type,is_stream:t}))}var B$1=class B{path;url;orig_name;size;blob;is_stream;mime_type;alt_text;b64;meta={_type:`gradio.FileData`};constructor({path:e,url:t,orig_name:n,size:r,blob:i,is_stream:a,mime_type:o,alt_text:s,b64:c}){this.path=e,this.url=t,this.orig_name=n,this.size=r,this.blob=t?void 0:i,this.is_stream=a,this.mime_type=o,this.alt_text=s,this.b64=c;}},ge=class{type;command;meta;fileData;constructor(e,t){this.type=`command`,this.command=e,this.meta=t;}};typeof process<`u`&&process.versions&&process.versions.node;function V$1(e,t,n){for(;n.length>1;){let t=n.shift();if(typeof t==`string`||typeof t==`number`)e=e[t];else throw Error(`Invalid key type`)}let r=n.shift();if(typeof r==`string`||typeof r==`number`)e[r]=t;else throw Error(`Invalid key type`)}async function H$1(e,t=void 0,n=[],r=false,i=void 0){if(Array.isArray(e)){let a=[];return await Promise.all(e.map(async(o,s)=>{let c=n.slice();c.push(String(s));let l=await H$1(e[s],r?i?.parameters[s]?.component||void 0:t,c,false,i);a=a.concat(l);})),a}else if(globalThis.Buffer&&e instanceof globalThis.Buffer||e instanceof Blob)return [{path:n,blob:e instanceof Blob?e:new Blob([e]),type:t}];else if(typeof e==`object`&&e){let t=[];for(let r of Object.keys(e)){let a=[...n,r],o=e[r];t=t.concat(await H$1(o,void 0,a,false,i));}return t}return []}function _e(e,t){let n=t?.dependencies?.find(t=>t.id==e)?.queue;return n==null?!t.enable_queue:!n}function ve(e,t){return new Promise((n,r)=>{let i=new MessageChannel;i.port1.onmessage=(({data:e})=>{i.port1.close(),n(e);}),window.parent.postMessage(e,t,[i.port2]);})}function U$1(e,t,n,r,i=false){if(r===`input`&&!i)throw Error(`Invalid code path. Cannot skip state inputs for input.`);if(r===`output`&&i)return e;let a=[],o=0,s=r===`input`?t.inputs:t.outputs;for(let t=0;te.id===r)?.type===`state`){if(i)if(e.length===s.length){let t=e[o];a.push(t),o++;}else a.push(null);else {o++;continue}continue}else {let t=e[o];a.push(t),o++;}}return a}async function W$1(e,t,n){let r=this;await G$1(r,t);let i=await H$1(t,void 0,[],true,n);return (await Promise.all(i.map(async({path:t,blob:n,type:i})=>{if(!n)return {path:t,type:i};let a=await r.upload_files(e,[n]);return {path:t,file_url:a.files&&a.files[0],type:i,name:typeof File<`u`&&n instanceof File?n?.name:void 0}}))).forEach(({path:e,file_url:n,type:r,name:i})=>{r===`Gallery`?V$1(t,n,e):n&&V$1(t,new B$1({path:n,orig_name:i}),e);}),t}async function G$1(e,t){if(!(e.config?.root||e.config?.root_url))throw Error(w$2);await K$1(e,t);}async function K$1(e,t,n=[]){for(let r in t)t[r]instanceof ge?await ye(e,t,r):typeof t[r]==`object`&&t[r]!==null&&await K$1(e,t[r],[...n,r]);}async function ye(e,t,n){let r=t[n],i=e.config?.root||e.config?.root_url;if(!i)throw Error(w$2);try{let a,o;if(typeof process<`u`&&process.versions&&process.versions.node){let e=await import('fs/promises');o=(await import('path')).resolve(process.cwd(),r.meta.path),a=await e.readFile(o);}else throw Error(C$2);let s=new Blob([a],{type:`application/octet-stream`}),c=await e.upload_files(i,[s]),l=c.files&&c.files[0];l&&(t[n]=new B$1({path:l,orig_name:r.meta.name||``}));}catch(e){console.error(ae,e);}}async function be(e,t,n){let r={"Content-Type":`application/json`};this.options.token&&(r.Authorization=`Bearer ${this.options.token}`);try{var i=await this.fetch(e,{method:`POST`,body:JSON.stringify(t),headers:{...r,...n},credentials:this.options.credentials??`same-origin`});}catch{return [{error:h$3},500]}let a,o;try{a=await i.json(),o=i.status;}catch(e){a={error:`Could not parse server response: ${e}`},o=500;}return [a,o]}async function xe(e,t={}){let n=false,r=false;if(!this.config)throw Error(`Could not resolve app config`);if(typeof e==`number`)this.config.dependencies.find(t=>t.id==e);else {let t=e.replace(/^\//,``);this.config.dependencies.find(e=>e.id==this.api_map[t]);}let i=this.submit(e,t,null,null,true),a;for await(let e of i){if(e.type===`data`&&(n=true,a=e,r))return a;if(e.type===`status`){if(e.stage===`error`){let{message:t,...n}=e,r=Error((typeof t==`string`?t:t&&JSON.stringify(t))||`An unknown error occurred while making a prediction.`);throw Object.assign(r,n),r}if(e.stage===`complete`&&(r=true,n))return a}}return a}async function q$1(e,t,n){let r=t===`subdomain`?`https://huggingface.co/api/spaces/by-subdomain/${e}`:`https://huggingface.co/api/spaces/${e}`,i,a;try{if(i=await fetch(r),a=i.status,a!==200)throw Error();i=await i.json();}catch{n({status:`error`,load_status:`error`,message:ee,detail:`NOT_FOUND`});return}if(!i||a!==200)return;let{runtime:{stage:o},id:s}=i;switch(o){case `STOPPED`:case `SLEEPING`:n({status:`sleeping`,load_status:`pending`,message:`Space is asleep. Waking it up...`,detail:o}),setTimeout(()=>{q$1(e,t,n);},1e3);break;case `PAUSED`:n({status:`paused`,load_status:`error`,message:`This space has been paused by the author. If you would like to try this demo, consider duplicating the space.`,detail:o,discussions_enabled:await Ce(s)});break;case `RUNNING`:case `RUNNING_BUILDING`:n({status:`running`,load_status:`complete`,message:`Space is running.`,detail:o});break;case `BUILDING`:n({status:`building`,load_status:`pending`,message:`Space is building...`,detail:o}),setTimeout(()=>{q$1(e,t,n);},1e3);break;case `APP_STARTING`:n({status:`starting`,load_status:`pending`,message:`Space is starting...`,detail:o}),setTimeout(()=>{q$1(e,t,n);},1e3);break;default:n({status:`space_error`,load_status:`error`,message:`This space is experiencing an issue.`,detail:o,discussions_enabled:await Ce(s)});break}}var J$1=async(e,t)=>{let n=0;return new Promise(r=>{q$1(e,j$1.test(e)?`space_name`:`subdomain`,i=>{t(i),i.status===`running`||i.status===`error`||i.status===`paused`||i.status===`space_error`?r():(i.status===`sleeping`||i.status===`building`)&&(n<12?(n++,setTimeout(()=>{J$1(e,t).then(r);},5e3)):r());});})},Se=/^(?=[^]*\b[dD]iscussions{0,1}\b)(?=[^]*\b[dD]isabled\b)[^]*$/;async function Ce(e){try{let t=await fetch(`https://huggingface.co/api/spaces/${e}/discussions`,{method:`HEAD`}),n=t.headers.get(`x-error-message`);return !(!t.ok||n&&Se.test(n))}catch{return false}}async function we(e,t){let n={};t&&(n.Authorization=`Bearer ${t}`);try{let t=await fetch(`https://huggingface.co/api/spaces/${e}/${s$2}`,{headers:n});if(t.status!==200)throw Error(`Space hardware could not be obtained.`);let{hardware:r}=await t.json();return r.current}catch(e){throw Error(e.message)}}async function Te(e,t,n){let r={};n&&(r.Authorization=`Bearer ${n}`);let i={seconds:t};try{let t=await fetch(`https://huggingface.co/api/spaces/${e}/${c$2}`,{method:`POST`,headers:{"Content-Type":`application/json`,...r},body:JSON.stringify(i)});if(t.status!==200)throw Error(`Could not set sleep timeout on duplicated Space. Please visit *ADD HF LINK TO SETTINGS* to set a timeout manually to reduce billing charges.`);return await t.json()}catch(e){throw Error(e.message)}}var Ee=[`cpu-basic`,`cpu-upgrade`,`cpu-xl`,`t4-small`,`t4-medium`,`a10g-small`,`a10g-large`,`a10g-largex2`,`a10g-largex4`,`a100-large`,`zero-a10g`,`h100`,`h100x8`];async function De(e,t){E$1(t);let{token:n,private:r,hardware:i,timeout:a,auth:o}=t;if(i&&!Ee.includes(i))throw Error(`Invalid hardware type provided. Valid types are: ${Ee.map(e=>`"${e}"`).join(`,`)}.`);let{http_protocol:s,host:c}=await M$1(e,n),l=null;if(o){let e=await k$1(s,c,o,fetch,void 0,t.credentials);e&&(l=le(e));}let u={Authorization:`Bearer ${n}`,"Content-Type":`application/json`,...l?{Cookie:l.join(`; `)}:{}},d=(await(await fetch(`https://huggingface.co/api/whoami-v2`,{headers:u})).json()).name,f=e.split(`/`)[1],p={repository:`${d}/${f}`};r&&(p.private=true);let m;try{i||(m=await we(e,n));}catch(e){throw Error(_$3+e.message)}p.hardware=i||m||`cpu-basic`;try{let r=await fetch(`https://huggingface.co/api/spaces/${e}/duplicate`,{method:`POST`,headers:u,body:JSON.stringify(p)});if(r.status===409)try{return await Dt.connect(`${d}/${f}`,t)}catch(e){throw console.error(`Failed to connect Client instance:`,e),e}else if(r.status!==200)throw Error(r.statusText);let i=await r.json();return await Te(`${d}/${f}`,a||300,n),await Dt.connect(Oe(i.url),t)}catch(e){throw Error(e)}}function Oe(e){let t=e.match(/https:\/\/huggingface.co\/spaces\/([^/]+\/[^/]+)/);if(t)return t[1]}var ke=`supports-zerogpu-headers`,Ae=false;function je(){return typeof window<`u`&&typeof document<`u`&&typeof window.addEventListener==`function`}function Me(e){return e.includes(`.dev.`)?`https://moon-${e.split(`.`)[1]}.dev.spaces.huggingface.tech`:e.endsWith(`.hf.space`)?`https://huggingface.co`:null}function Ne(){if(!je()||Ae)return;window.addEventListener(`message`,e=>{e.data===ke&&(window.supports_zerogpu_headers=true);}),Ae=true;let e=Me(window.location.hostname);e&&window.parent!==window&&window.parent.postMessage(ke,e);}var Pe=class extends TransformStream{#e=``;constructor(e={allowCR:false}){super({transform:(t,n)=>{for(t=this.#e+t;;){let r=t.indexOf(` +`),i=e.allowCR?t.indexOf(`\r`):-1;if(i!==-1&&i!==t.length-1&&(r===-1||r-1>i)){n.enqueue(t.slice(0,i)),t=t.slice(i+1);continue}if(r===-1)break;let a=t[r-1]===`\r`?r-1:r;n.enqueue(t.slice(0,a)),t=t.slice(r+1);}this.#e=t;},flush:t=>{if(this.#e===``)return;let n=e.allowCR&&this.#e.endsWith(`\r`)?this.#e.slice(0,-1):this.#e;t.enqueue(n);}});}};function Fe(e){let t=new TextDecoderStream,n=new Pe({allowCR:true});return e.pipeThrough(t).pipeThrough(n)}function Ie(e){let t=/[:]\s*/.exec(e),n=t&&t.index;if(n)return [e.substring(0,n),e.substring(n+t[0].length)]}function Le(e,t,n){e.get(t)||e.set(t,n);}async function*Re(e,t){if(!e.body)return;let n=Fe(e.body),r,i=n.getReader(),a;for(;;){if(t&&t.aborted)return i.cancel();if(r=await i.read(),r.done)return;if(!r.value){a&&(yield a),a=void 0;continue}let[e,n]=Ie(r.value)||[];e===`data`?(a||={},a[e]=a[e]?a[e]+` +`+n:n):e===`event`?(a||={},a[e]=n):e===`id`?(a||={},a[e]=String(+n)===n?+n:n):e===`retry`&&(a||={},a[e]=+n||void 0);}}async function ze(e,t){let n=new Request(e,t);Le(n.headers,`Accept`,`text/event-stream`),Le(n.headers,`Content-Type`,`application/json`);let r=await fetch(n);if(!r.ok)throw r;return Re(r,n.signal)}async function Be(){let{event_callbacks:e,unclosed_events:n,pending_stream_messages:r,stream_status:i,config:a,jwt:o}=this,s=this;if(!a)throw Error(`Could not resolve app config`);i.open=true;let c=null,l=new URLSearchParams({session_hash:this.session_hash}).toString(),u=new URL(`${a.root}${this.api_prefix}/${t$2}?${l}`);if(o&&u.searchParams.set(`__sign`,o),c=this.stream(u),!c){console.warn(`Cannot connect to SSE endpoint: `+u.toString());return}c.onmessage=async function(t){let o=JSON.parse(t.data);if(o.msg===`close_stream`){Ve(i,s.abort_controller);return}let c=o.event_id;if(!c)await Promise.all(Object.keys(e).map(t=>e[t](o)));else if(e[c]&&a){o.msg===`process_completed`&&[`sse`,`sse_v1`,`sse_v2`,`sse_v2.1`,`sse_v3`].includes(a.protocol)&&n.delete(c);let t=e[c];typeof window<`u`&&typeof document<`u`&&document.visibilityState!==`hidden`?setTimeout(t,0,o):t(o);}else r[c]||(r[c]=[]),r[c].push(o);},c.onerror=async function(t){console.error(t),await Promise.all(Object.keys(e).map(t=>e[t]({msg:`broken_connection`,message:h$3})));};}function Ve(e,t){e&&(e.open=false,t?.abort());}function He(e,t,n){e[t]?n.data.forEach((r,i)=>{let a=Ue(i{e[t][r]=n;}));}function Ue(e,t){return t.forEach(([t,n,r])=>{e=We(e,n,t,r);}),e}function We(e,t,n,r){if(t.length===0){if(n===`replace`)return r;if(n===`append`)return e+r;throw Error(`Unsupported action: ${n}`)}let i=e;for(let e=0;e{console.warn(`Method not implemented.`);},onerror:null,onmessage:null,onopen:null,readyState:0,url:e.toString(),withCredentials:false,CONNECTING:0,OPEN:1,CLOSED:2,addEventListener:()=>{throw Error(`Method not implemented.`)},dispatchEvent:()=>{throw Error(`Method not implemented.`)},removeEventListener:()=>{throw Error(`Method not implemented.`)}};return ze(e,t).then(async e=>{n.readyState=n.OPEN;try{for await(let t of e)n.onmessage&&n.onmessage(t);n.readyState=n.CLOSED;}catch(e){n.onerror&&n.onerror(e),n.readyState=n.CLOSED;}}).catch(e=>{console.error(e),n.onerror&&n.onerror(e),n.readyState=n.CLOSED;}),n}var Ke=`gradio:run-history:`,Y$1=`${Ke}v2:`,qe=`${Ke}replay:v2:`,Je=100,Ye=8;function X(e,t){try{return e()}catch(e){return console.warn(`Could not update the run history.`,e),t}}function Xe(e,t=`/gradio_api`){return `${e.replace(/\/+$/,``)}${t}/runs`}function Z(e){if(typeof window>`u`)return null;let t=e?.app_id;if(t==null||t===``)return null;try{return window.localStorage?`${Y$1}${t}${e?.username?`:user:${encodeURIComponent(e.username)}`:``}`:null}catch{return null}}function Ze(e){let t=Z(e);return t?t.replace(Y$1,qe):null}function Qe(e){try{let t=JSON.parse(window.localStorage.getItem(e)||`[]`);return Array.isArray(t)&&t.length&&Date.parse(t[0]?.started_at)||0}catch{return 0}}function $e(e){let t=Object.keys(window.localStorage).filter(e=>e.startsWith(Ke)),n=[...t.filter(e=>!e.startsWith(Y$1)&&!e.startsWith(qe)),...t.filter(t=>t.startsWith(Y$1)&&t!==e).sort((e,t)=>Qe(t)-Qe(e)).slice(Ye-1)];for(let e of n)try{window.localStorage.removeItem(e),window.sessionStorage.removeItem(e.replace(Y$1,qe));}catch{}}function et(){return typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}function Q(e){let t=new WeakSet;try{return JSON.parse(JSON.stringify(e,(e,n)=>{if(typeof n==`bigint`)return n.toString();if(typeof n==`object`&&n){if(t.has(n))return `[Circular]`;t.add(n);}return n}))}catch{return `[Unserializable value]`}}function tt(e){let t=Z(e);if(!t)return [];try{let e=JSON.parse(window.localStorage.getItem(t)||`[]`);return Array.isArray(e)?e:[]}catch{return []}}function nt(e,t){let n=Z(e);if(!n)return;let r=t.slice(0,Je),i=false;for(;r.length>0;)try{window.localStorage.setItem(n,JSON.stringify(r));return}catch{if(!i){i=true,$e(n);continue}r=r.slice(0,-1);}try{window.localStorage.removeItem(n);}catch{}}function rt(e){let t=Z(e);if(t){try{window.localStorage.removeItem(t);}catch{}at();}}var it=`gradio:run-history-change`;function at(){if(!(typeof window>`u`))try{window.dispatchEvent(new Event(it));}catch{}}function st(e){let t=Ze(e);if(!t)return null;try{let e=window.sessionStorage.getItem(t);return window.sessionStorage.removeItem(t),e?JSON.parse(e):null}catch{return null}}function ct(e,t){let n=e.dependencies.find(e=>e.id===t.fn_index||typeof e.api_name==`string`&&`/${e.api_name.replace(/^\//,``)}`===t.api_name);if(!n)return false;let r=Array.isArray(t.inputs)?t.inputs:Object.values(t.inputs??{}),i=Array.isArray(t.outputs)?t.outputs:t.outputs===null||t.outputs===void 0?[]:[t.outputs],a=(t,n)=>{for(let[r,i]of t.entries()){let t=e.components.find(e=>e.id===i);!t||r>=n.length||t.type!==`state`&&(t.props.value=n[r]);}};return a(n.inputs,r),a(n.outputs,i),true}function lt(e){let t=st(e);return t?ct(e,t):false}function ut(e){let t=Z(e);if(!t)return null;$e(t);let n={id:et(),endpoint:e.endpoint,api_name:e.api_name,fn_index:e.fn_index,page:`${window.location.pathname}${window.location.search}`,inputs:Q(e.inputs),outputs:null,...e.input_components?{input_components:Q(e.input_components)}:{},...e.output_components?{output_components:Q(e.output_components)}:{},status:`running`,started_at:new Date().toISOString()};return nt(e,[n,...tt(e)]),at(),n.id}function dt(e,t,n){if(!t)return;let r=tt(e),i=r.find(e=>e.id===t);i&&(i.inputs=Q(n),nt(e,r));}function ft(e,t,n){if(!t)return;let r=tt(e),i=r.find(e=>e.id===t);if(!i)return;let a=false;if(n.type===`data`)i.outputs=Q(n.data),$.set(t,i.outputs);else if(n.type===`status`&&n.original_msg===`process_starts`)ht(i,n.time);else if(n.type===`status`&&(n.stage===`generating`||n.stage===`streaming`))i.streamed=true;else if(n.type===`status`&&n.stage===`complete`)i.status=`completed`,gt(i,n),a=true;else if(n.type===`status`&&n.stage===`error`)i.status=`failed`,i.error=typeof n.message==`string`?n.message:JSON.stringify(n.message||`Unknown error`),gt(i,n),a=true;else return;if(a)$.has(t)&&(i.outputs=$.get(t)),$.delete(t),mt.delete(t);else if(i.streamed){if(Date.now()-(mt.get(t)??0)=0?t.cache_duration*1e3:null)??Math.max(0,n.getTime()-Date.parse(e.process_started_at||e.started_at));}function vt(e){X(()=>rt(e),void 0);}function yt(e){return X(()=>lt(e),false)}function bt(e){return X(()=>ut(e),null)}function xt(e,t,n){X(()=>dt(e,t,n),void 0);}function St(e,t,n){X(()=>ft(e,t,n),void 0);}function wt(e,r={},i,a,o,s){try{let{token:c}=this.options,{fetch:l,app_reference:u,config:p,session_hash:g,api_info:ee,api_map:te,stream_status:_,pending_stream_messages:v,pending_diff_streams:y,event_callbacks:b,unclosed_events:ne,post_data:x,options:S,api_prefix:C}=this,w=s||{"x-gradio-user":`api`},ae=this;if(!ee)throw Error(re);if(!p)throw Error(`Could not resolve app config`);let{fn_index:T,endpoint_info:E,dependency:D}=Et(ee,e,te,p),oe=fe(r,E),O=p.protocol??`ws`;if(O===`ws`)throw Error(ie);let se=typeof D.api_name==`string`?`/${D.api_name}`:e,ce=typeof D.api_name==`string`?`/${D.api_name}`:`Function ${T}`,k=e=>{let t=p.components.find(t=>t.id===e);return t?{type:t.type,component_class_id:t.component_class_id,props:t.props}:null},A=D.api_visibility===`public`,le=p.run_history!==!1&&this.options.record_history!==!1,j={app_id:p.app_id,username:p.username},ue=!le||!A?null:bt({...j,endpoint:se,api_name:ce,fn_index:T,inputs:U$1(oe,D,p.components,`input`,!0),input_components:D.inputs.map(k),output_components:D.outputs.map(k)}),M,N=``,P=typeof e==`number`?`/predict`:e,F,I=null,L=!1,pe={},R=typeof window<`u`&&typeof document<`u`?new URLSearchParams(window.location.search).toString():``,me=S?.events?.reduce((e,t)=>(e[t]=!0,e),{})||{};function z(e){St(j,ue,e),(o||me[e.type])&&xe(e);}async function he(){let e={},t={};e={event_id:I},t={event_id:I,session_hash:g,fn_index:T};try{if(!p)throw Error(`Could not resolve app config`);`event_id`in t&&await l(`${p.root}${C}/${f$3}`,{headers:{"Content-Type":`application/json`},method:`POST`,body:JSON.stringify(t)}),await l(`${p.root}${C}/${d$3}`,{headers:{"Content-Type":`application/json`},method:`POST`,body:JSON.stringify(e)});}catch{console.warn("The `/reset` endpoint could not be called. Subsequent endpoint results may be unreliable.");}}let B=async e=>{await this._resolve_heartbeat(e);};async function ge(e){if(!p)return;let t=e.render_id;p.components=[...p.components.filter(e=>e.props.rendered_in!==t),...e.components],p.dependencies=[...p.dependencies.filter(e=>e.rendered_in!==t),...e.dependencies];let n=p.components.some(e=>e.type===`state`),r=p.dependencies.some(e=>e.targets.some(e=>e[1]===`unload`));p.connect_heartbeat=n||r,await B(p),z({type:`render`,data:e,endpoint:P,fn_index:T});}let V=this.handle_blob(p.root,oe,E).then(async e=>{let r=U$1(e,D,p.components,`input`,!0);if(xt(j,ue,r||[]),F={data:r||[],event_data:i,fn_index:T,trigger_id:a,...S.oauth_token&&E?.oauth_token?{oauth_token:S.oauth_token}:{}},_e(T,p))z({type:`status`,endpoint:P,stage:`pending`,queue:!1,fn_index:T,time:new Date}),x(`${p.root}${C}/run${P.startsWith(`/`)?P:`/${P}`}${R?`?`+R:``}`,{...F,session_hash:g},w).then(async([e,t])=>{let n=e.data;if(t==200)z({type:`data`,endpoint:P,fn_index:T,data:U$1(n,D,p.components,`output`,S.with_null_state),time:new Date,event_data:i,trigger_id:a}),e.render_config&&await ge(e.render_config),z({type:`status`,endpoint:P,fn_index:T,stage:`complete`,eta:e.average_duration,queue:!1,time:new Date});else {let t=e?.error===h$3;z({type:`status`,stage:`error`,endpoint:P,fn_index:T,message:e.error,broken:t,queue:!1,time:new Date});}}).catch(e=>{z({type:`status`,stage:`error`,message:e.message,endpoint:P,fn_index:T,queue:!1,time:new Date});});else if(O==`sse`){z({type:`status`,stage:`pending`,queue:!0,endpoint:P,fn_index:T,time:new Date});var o=new URLSearchParams({fn_index:T.toString(),session_hash:g}).toString();let e=new URL(`${p.root}${C}/${t$2}?${R?R+`&`:``}${o}`);if(this.jwt&&e.searchParams.set(`__sign`,this.jwt),M=this.stream(e),!M)return Promise.reject(Error(`Cannot connect to SSE endpoint: `+e.toString()));M.onmessage=async function(e){let{type:t,status:n,data:r}=de(JSON.parse(e.data),pe[T]);if(t===`update`&&n&&!L)z({type:`status`,endpoint:P,fn_index:T,time:new Date,...n}),n.stage===`error`&&(M?.close(),K());else if(t===`data`){let[e,t]=await x(`${p.root}${C}/queue/data`,{...F,session_hash:g,event_id:I});t!==200&&(z({type:`status`,stage:`error`,message:h$3,queue:!0,endpoint:P,fn_index:T,time:new Date}),M?.close(),K());}else t===`complete`?L=n:t===`log`?z({type:`log`,title:r.title,log:r.log,level:r.level,endpoint:P,duration:r.duration,visible:r.visible,fn_index:T}):(t===`generating`||t===`streaming`)&&z({type:`status`,time:new Date,...n,stage:n?.stage,queue:!0,endpoint:P,fn_index:T});r&&(z({type:`data`,time:new Date,data:U$1(r.data,D,p.components,`output`,S.with_null_state),endpoint:P,fn_index:T,event_data:i,trigger_id:a}),L&&(z({type:`status`,time:new Date,...L,stage:n?.stage,queue:!0,endpoint:P,fn_index:T}),M?.close(),K()));};}else if(O==`sse_v1`||O==`sse_v2`||O==`sse_v2.1`||O==`sse_v3`){z({type:`status`,stage:`pending`,queue:!0,endpoint:P,fn_index:T,time:new Date});let e=``;typeof window<`u`&&typeof document<`u`&&(e=window?.location?.hostname);let t=Me(e);return (typeof window<`u`&&typeof document<`u`&&window.parent!=window&&t&&window.supports_zerogpu_headers?ve(`zerogpu-headers`,t):Promise.resolve(null)).then(e=>{let t={...w,...e||{}};return x(`${p.root}${C}/${n$1}?${R}`,{...F,session_hash:g},t)}).then(async([e,t])=>{if(e.event_id&&(N=e.event_id),t===503)z({type:`status`,stage:`error`,message:m$3,queue:!0,endpoint:P,fn_index:T,time:new Date,visible:!0}),K();else if(t===422)z({type:`status`,stage:`error`,message:e.detail,queue:!0,endpoint:P,fn_index:T,code:`validation_error`,time:new Date,visible:!0}),K();else if(t!==200){let t=e?.error===h$3;z({type:`status`,stage:`error`,broken:t,message:t?h$3:e.detail||e.error,queue:!0,endpoint:P,fn_index:T,time:new Date,visible:!0}),K();}else {I=e.event_id,N=I;let t=async function(e){try{let{type:t,status:n,data:r,original_msg:i}=de(e,pe[T]);if(t==`heartbeat`)return;if(t===`update`&&n&&!L)z({type:`status`,endpoint:P,fn_index:T,time:new Date,original_msg:i,...n});else if(t===`complete`)L=n;else if(t==`unexpected_error`||t==`broken_connection`){console.error(`Unexpected error`,n?.message);let e=t===`broken_connection`;z({type:`status`,stage:`error`,message:n?.message||`An Unexpected Error Occurred!`,queue:!0,endpoint:P,broken:e,session_not_found:n?.session_not_found,fn_index:T,time:new Date});}else if(t===`log`){z({type:`log`,title:r.title,log:r.log,level:r.level,endpoint:P,duration:r.duration,visible:r.visible,fn_index:T});return}else (t===`generating`||t===`streaming`)&&(z({type:`status`,time:new Date,...n,stage:n?.stage,queue:!0,endpoint:P,fn_index:T}),r&&D.connection!==`stream`&&[`sse_v2`,`sse_v2.1`,`sse_v3`].includes(O)&&He(y,I,r));r&&(z({type:`data`,time:new Date,data:U$1(r.data,D,p.components,`output`,S.with_null_state),endpoint:P,fn_index:T}),r.render_config&&await ge(r.render_config),L&&(z({type:`status`,time:new Date,...L,stage:n?.stage,queue:!0,endpoint:P,fn_index:T}),K())),(n?.stage===`complete`||n?.stage===`error`)&&(b[I]&&delete b[I],I in y&&delete y[I],K());}catch(e){console.error(`Unexpected client exception`,e),z({type:`status`,stage:`error`,message:`An Unexpected Error Occurred!`,queue:!0,endpoint:P,fn_index:T,time:new Date}),[`sse_v2`,`sse_v2.1`,`sse_v3`].includes(O)&&(Ve(_,ae.abort_controller),_.open=!1,K());}};I in v&&(v[I].forEach(e=>t(e)),delete v[I]),b[I]=t,ne.add(I),_.open||await this.open_stream();}})}});V.catch(e=>{z({type:`status`,stage:`error`,message:e instanceof Error?e.message:String(e),queue:!_e(T,p),endpoint:P,fn_index:T,time:new Date}),K();});let H=!1,W=[],G=[];function K(){for(H=!0;G.length>0;)G.shift()({value:void 0,done:!0});}function ye(e){G.length>0?G.shift()(e):W.push(e);}function be(e){ye(Tt(e)),K();}function xe(e){ye({value:e,done:!1});}function q(){return W.length>0?Promise.resolve(W.shift()):H?Promise.resolve({value:void 0,done:!0}):new Promise(e=>G.push(e))}let J={[Symbol.asyncIterator]:()=>J,next:q,throw:async e=>(be(e),q()),return:async()=>(K(),{value:void 0,done:!0}),cancel:he,send_chunk:e=>{this.post_data(`${p.root}${C}/stream/${N}`,{...e,session_hash:this.session_hash});},close_stream:()=>{this.post_data(`${p.root}${C}/stream/${N}/close`,{}),K();},event_id:()=>N,wait_for_id:async()=>(await V,I)};return J}catch(e){throw console.error(`Submit function encountered an error:`,e),e}}function Tt(e){return {then:(t,n)=>n(e)}}function Et(e,t,n,r){let i,a,o;if(typeof t==`number`)i=t,a=e.unnamed_endpoints[i],o=r.dependencies.find(e=>e.id==t);else {let s=t.replace(/^\//,``);i=n[s],a=e.named_endpoints[t.trim()]??e.named_endpoints[`/${s}`],o=r.dependencies.find(e=>e.id==n[s]);}if(typeof i!=`number`||!o){let e=r.dependencies.filter(e=>e.api_name).map(e=>`"/${e.api_name}"`).join(`, `);throw Error(`No endpoint matching ${JSON.stringify(t)} was found. `+(e?`Valid named endpoints are: ${e}. `:`This app exposes no named endpoints. `)+`An fn_index (number) of an existing dependency can also be used.`)}return {fn_index:i,endpoint_info:a,dependency:o}}var Dt=class{app_reference;options;deep_link=null;config;api_prefix=``;api_info;api_map={};session_hash=Math.random().toString(36).substring(2);jwt=false;last_status={};cookies=null;stream_status={open:false};closed=false;pending_stream_messages={};pending_diff_streams={};event_callbacks={};unclosed_events=new Set;heartbeat_event=null;abort_controller=null;stream_instance=null;current_payload;get_url_config(e=null){if(!this.config)throw Error(g$3);e===null&&(e=window.location.href);let t=e=>e.replace(/^\/+|\/+$/g,``),n=t(new URL(this.config.root).pathname),r=t(new URL(e).pathname),i;return i=r.startsWith(n)?t(r.substring(n.length)):``,this.get_page_config(i)}get_page_config(e){if(!this.config)throw Error(g$3);let t=this.config;return e in t.page||(e=``),{...t,current_page:e,layout:t.page[e].layout,components:t.components.filter(n=>t.page[e].components.includes(n.id)),dependencies:this.config.dependencies.filter(n=>t.page[e].dependencies.includes(n.id))}}fetch(e,t){let n=new Headers(t?.headers||{});return this&&this.cookies&&n.append(`Cookie`,this.cookies),this&&this.options.headers&&new Headers(this.options.headers).forEach((e,t)=>{n.append(t,e);}),fetch(e,{...t,headers:n})}stream(e){let t=new Headers;return this&&this.cookies&&t.append(`Cookie`,this.cookies),this&&this.options.headers&&new Headers(this.options.headers).forEach((e,n)=>{t.append(n,e);}),this&&this.options.token&&t.append(`Authorization`,`Bearer ${this.options.token}`),this.abort_controller=new AbortController,this.stream_instance=Ge(e.toString(),{credentials:this.options.credentials??`same-origin`,headers:t,signal:this.abort_controller.signal}),this.stream_instance}view_api;upload_files;upload;handle_blob;post_data;submit;predict;open_stream;resolve_config;resolve_cookies;constructor(e,t={events:[`data`]}){this.app_reference=e,this.deep_link=t.query_params?.deep_link||null,t.events||=[`data`],E$1(t),this.options=t,this.current_payload={},t.cookies&&(this.cookies=t.cookies),this.view_api=L$1.bind(this),this.upload_files=pe.bind(this),this.handle_blob=W$1.bind(this),this.post_data=be.bind(this),this.submit=wt.bind(this),this.predict=xe.bind(this),this.open_stream=Be.bind(this),this.resolve_config=O$1.bind(this),this.resolve_cookies=ce.bind(this),this.upload=z$1.bind(this),this.fetch=this.fetch.bind(this),this.handle_space_success=this.handle_space_success.bind(this),this.stream=this.stream.bind(this);}async init(){Ne(),this.options.auth&&await this.resolve_cookies(),await this._resolve_config().then(e=>e?.config&&this._resolve_heartbeat(e.config));try{this.api_info=await this.view_api();}catch(e){console.error(e.message);}this.api_map=D$1(this.config?.dependencies||[]);}async _resolve_heartbeat(e){if(e&&(this.config=e,this.api_prefix=e.api_prefix||``,this.config&&this.config.connect_heartbeat&&this.config.space_id&&this.options.token&&(this.jwt=await T$1(this.config.space_id,this.options.token,this.cookies))),e.space_id&&this.options.token&&(this.jwt=await T$1(e.space_id,this.options.token)),this.config&&this.config.connect_heartbeat){let e=new URL(`${this.config.root}${this.api_prefix}/${l$2}/${this.session_hash}`);this.jwt&&e.searchParams.set(`__sign`,this.jwt),this.heartbeat_event||=this.stream(e);}}static async connect(e,t={events:[`data`]}){let n=new this(e,t);return t.session_hash&&(n.session_hash=t.session_hash),await n.init(),n}async reconnect(){let e=new URL(`${this.config.root}${this.api_prefix}/${p$3}`),t;try{let n=await this.fetch(e);if(!n.ok)throw Error();t=(await n.json()).app_id;}catch{return `broken`}return t===this.config.app_id?`connected`:`changed`}close(){this.closed=true,Ve(this.stream_status,this.abort_controller);}async refresh(){if(!this.config)throw Error(g$3);let e=await this.resolve_config(this.config.root,false);if(!e)throw Error(g$3);this.config=e,this.api_prefix=e.api_prefix||``,this.api_map=D$1(e.dependencies||[]);try{this.api_info=await this.view_api();}catch(e){console.error(te+e.message);}return this.get_url_config()}set_current_payload(e){this.current_payload=e;}static async duplicate(e,t={events:[`data`]}){return De(e,t)}async _resolve_config(){let{http_protocol:e,host:t,space_id:n}=await M$1(this.app_reference,this.options.token),{status_callback:r}=this.options;n&&r&&await J$1(n,r);let i;try{let n=`${e}//${t}`;if(i=await this.resolve_config(n),!i)throw Error(g$3);return this.config_success(i)}catch(e){if(n&&r)q$1(n,j$1.test(n)?`space_name`:`subdomain`,this.handle_space_success);else throw r&&r({status:`error`,message:`Could not load this space.`,load_status:`error`,detail:`NOT_FOUND`}),e instanceof Error?e:Error(String(e))}}async config_success(e){if(this.config=e,this.api_prefix=e.api_prefix||``,e.run_history===false&&vt({app_id:e.app_id,username:e.username}),this.config.auth_required)return this.prepare_return_obj();try{this.api_info=await this.view_api();}catch(e){console.error(te+e.message);}return this.prepare_return_obj()}async handle_space_success(e){if(!this)throw Error(g$3);let{status_callback:t}=this.options;if(t&&t(e),e.status===`running`)try{if(this.config=await this._resolve_config(),this.api_prefix=this?.config?.api_prefix||``,!this.config)throw Error(g$3);return await this.config_success(this.config)}catch(e){throw t&&t({status:`error`,message:`Could not load this space.`,load_status:`error`,detail:`NOT_FOUND`}),e}}async component_server(e,t,n){if(!this.config)throw Error(g$3);let r={},{token:i}=this.options,{session_hash:a}=this;i&&(r.Authorization=`Bearer ${this.options.token}`);let o,s=this.config.components.find(t=>t.id===e);o=s?.props?.root_url?s.props.root_url:this.config.root;let c;if(typeof n==`object`&&n&&`binary`in n){let r=n;c=new FormData;for(let e in r.data)e!==`binary`&&c.append(e,r.data[e]);c.set(`component_id`,e.toString()),c.set(`fn_name`,t),c.set(`session_hash`,a);}else c=JSON.stringify({data:n,component_id:e,fn_name:t,session_hash:a}),r[`Content-Type`]=`application/json`;i&&(r.Authorization=`Bearer ${i}`);try{let e=await this.fetch(`${o}${this.api_prefix}/${u$2}/`,{method:`POST`,body:c,headers:r,credentials:this.options.credentials??`same-origin`});if(!e.ok)throw Error(`Could not connect to component server: `+e.statusText);return await e.json()}catch(e){console.warn(e);}}set_cookies(e){this.cookies=le(e).join(`; `);}prepare_return_obj(){return {config:this.config,predict:this.predict,submit:this.submit,view_api:this.view_api,component_server:this.component_server}}}; + +var e=`English`,t$1={annotated_image:`Annotated Image`},n={allow_recording_access:`Please allow access to the microphone for recording.`,audio:`Audio`,drop_to_upload:`Drop an audio file here to upload`,record_from_microphone:`Record from microphone`,stop_recording:`Stop recording`,no_device_support:`Media devices could not be accessed. Check that you are running on a secure origin (https) or localhost (or you have passed a valid SSL certificate to ssl_verify), and you have allowed browser access to your device.`,stop:`Stop`,resume:`Resume`,record:`Record`,no_microphone:`No microphone found`,pause:`Pause`,play:`Play`,waiting:`Waiting`},r={connection_can_break:`On mobile, the connection can break if this tab is unfocused or the device sleeps, losing your position in queue.`,long_requests_queue:`There is a long queue of requests pending. Duplicate this Space to skip.`,lost_connection:`Lost connection due to leaving page. Rejoining queue...`,waiting_for_inputs:`Waiting for file(s) to finish uploading, please retry.`},i$1={edit:`Edit`,retry:`Retry`,undo:`Undo`,submit:`Submit`,cancel:`Cancel`,like:`Like`,dislike:`Dislike`,clear:`Clear`,copy_message:`Copy message`,copied_message:`Copied message`},a$1={new_chat:`New chat`,message_placeholder:`Type a message...`,additional_inputs:`Additional inputs`,chatbot:`Chatbot`,conversation:`Conversation`},o$1={checkbox:`Checkbox`,checkbox_group:`Checkbox Group`},s$1={code:`Code`},c$1={color_picker:`Color Picker`},l$1={built_with:`built with`,built_with_gradio:`Built with Gradio`,clear:`Clear`,download:`Download`,download_all:`Download All`,edit:`Edit`,empty:`Empty`,error:`Error`,hosted_on:`Hosted on`,loading:`Loading`,logo:`logo`,or:`or`,remove:`Remove`,runs:`Runs`,runs_description:`View runs saved in this browser`,back_to_app:`App`,back_to_app_description:`Return to the app`,settings:`Settings`,share:`Share`,submit:`Submit`,undo:`Undo`,no_devices:`No devices found`,language:`Language`,display_theme:`Display Theme`,pwa:`Progressive Web App`,record:`Record`,stop_recording:`Stop Recording`,screen_studio:`Screen Studio`,share_gradio_tab:`[Sharing] Gradio Tab`,run:`Run`},u$1={incorrect_format:`Incorrect format, only CSV and TSV files are supported`,new_column:`Add column`,new_row:`New row`,add_row_above:`Add row above`,add_row_below:`Add row below`,delete_row:`Delete row`,delete_column:`Delete column`,add_column_left:`Add column to the left`,add_column_right:`Add column to the right`,sort_column:`Sort column`,sort_ascending:`Sort ascending`,sort_descending:`Sort descending`,drop_to_upload:`Drop CSV or TSV files here to import data into dataframe`,clear_sort:`Clear sort`,filter:`Filter`,clear_filter:`Clear filters`},d$2={dropdown:`Dropdown`},f$2={build_error:`there is a build error`,config_error:`there is a config error`,contact_page_author:`Please contact the author of the page to let them know.`,no_app_file:`there is no app file`,runtime_error:`there is a runtime error`,space_not_working:`"Space isn't working because" {0}`,space_paused:`the space is paused`,use_via_api:`Use via API`,use_via_api_or_mcp:`Use via API or MCP`},p$2={uploading:`Uploading...`},m$2={highlighted_text:`Highlighted Text`},h$2={allow_webcam_access:`Please allow access to the webcam for recording.`,brush_color:`Brush color`,brush_radius:`Brush radius`,image:`Image`,remove_image:`Remove Image`,select_brush_color:`Select brush color`,start_drawing:`Start drawing`,use_brush:`Use brush`,drop_to_upload:`Drop an image file here to upload`},g$2={label:`Label`},_$2={enable_cookies:`If you are visiting a HuggingFace Space in Incognito mode, you must enable third party cookies.`,incorrect_credentials:`Incorrect Credentials`,username:`username`,password:`password`,login:`Login`},v$2={number:`Number`},y$2={plot:`Plot`},b$2={radio:`Radio`},x$1={slider:`Slider`},S$1={click_to_upload:`Click to Upload`,drop_audio:`Drop Audio Here`,drop_csv:`Drop CSV Here`,drop_file:`Drop File Here`,drop_image:`Drop Image Here`,drop_video:`Drop Video Here`,drop_gallery:`Drop Media Here`,paste_clipboard:`Paste from Clipboard`},C$1={drop_to_upload:`Drop a video file here to upload`},w$1={_name:e,"3D_model":{"3d_model":`3D Model`,drop_to_upload:`Drop a 3D model (.obj, .glb, .stl, .gltf, .splat, or .ply) file here to upload`},annotated_image:t$1,audio:n,blocks:r,chatbot:i$1,chat_interface:a$1,checkbox:o$1,code:s$1,color_picker:c$1,common:l$1,dataframe:u$1,dropdown:d$2,errors:f$2,file:p$2,highlighted_text:m$2,image:h$2,label:g$2,login:_$2,number:v$2,plot:y$2,radio:b$2,slider:x$1,upload_text:S$1,video:C$1}; + +var o={ar:`جاري التحميل`,ca:`S'està carregant`,ckb:`بارکردن`,de:`Laden`,en:`Loading`,es:`Cargando`,et:`Laen`,eu:`Kargatzen`,fa:`در حال بارگذاری`,fi:`Ladataan`,fr:`Chargement`,he:`טוען`,hi:`लोड हो रहा है`,ja:`読み込み中`,ko:`로딩 중`,lt:`Kraunama`,nb:`Laster`,nl:`Laden`,pl:`Ładowanie`,"pt-BR":`Carregando`,pt:`A carregar`,ro:`Se încarcă`,ru:`Загрузка`,sv:`Laddar`,ta:`ஏற்றுகிறது`,th:`กำลังโหลด`,tr:`Yükleniyor`,uk:`Завантаження`,ur:`لوڈ ہو رہا ہے`,uz:`Yuklanmoqda`,"zh-CN":`加载中`,"zh-TW":`載入中`},s={ar:`العربية`,ca:`Català`,ckb:`کوردی`,de:`Deutsch`,en:`English`,es:`Español`,et:`eesti keel`,eu:`Euskara`,fa:`فارسی`,fi:`Suomi`,fr:`Français`,he:`עברית`,hi:`हिंदी`,ja:`日本語`,ko:`한국어`,lt:`Lietuvių`,nb:`Norsk bokmål`,nl:`Nederlands`,pl:`Polski`,"pt-BR":`Português do Brasil`,pt:`Português`,ro:`Română`,ru:`Русский`,sv:`Svenska`,ta:`தமிழ்`,th:`ภาษาไทย`,tr:`Türkçe`,uk:`Українська`,ur:`اردو`,uz:`O'zbek`,"zh-CN":`简体中文`,"zh-TW":`繁體中文`},c=Object.assign({"./lang/ar.json":()=>import('./ar-lzUv_oXY.js'),"./lang/ca.json":()=>import('./ca-BRJTA-dw.js'),"./lang/ckb.json":()=>import('./ckb-DD3xg0YZ.js'),"./lang/de.json":()=>import('./de-po_0yBio.js'),"./lang/en.json":()=>import('./en-BuU0LbDs.js'),"./lang/es.json":()=>import('./es-B2wkB15W.js'),"./lang/et.json":()=>import('./et-DCYTVzwt.js'),"./lang/eu.json":()=>import('./eu-CqrBzqzQ.js'),"./lang/fa.json":()=>import('./fa-DMiCfGG9.js'),"./lang/fi.json":()=>import('./fi-C2SqCbtb.js'),"./lang/fr.json":()=>import('./fr-P4t-_2WM.js'),"./lang/he.json":()=>import('./he-BNiI3GIo.js'),"./lang/hi.json":()=>import('./hi-D6MGPCC4.js'),"./lang/id.json":()=>import('./id-D3kkgSLb.js'),"./lang/ja.json":()=>import('./ja-CDp6u8TC.js'),"./lang/ko.json":()=>import('./ko-Cg-ybHWY.js'),"./lang/lt.json":()=>import('./lt-iyswSoSn.js'),"./lang/nb.json":()=>import('./nb-CzKkXHTp.js'),"./lang/nl.json":()=>import('./nl-CmFwg1xq.js'),"./lang/pl.json":()=>import('./pl-CcwEAYQp.js'),"./lang/pt-BR.json":()=>import('./pt-BR-BiTgdZx1.js'),"./lang/pt.json":()=>import('./pt-BRG6qxj-.js'),"./lang/ro.json":()=>import('./ro-C1SCYq6l.js'),"./lang/ru.json":()=>import('./ru-DYXOBF1_.js'),"./lang/sv.json":()=>import('./sv-TfExP9tZ.js'),"./lang/ta.json":()=>import('./ta-BxrvSRtq.js'),"./lang/th.json":()=>import('./th-dlvPr8G_.js'),"./lang/tr.json":()=>import('./tr-COceg9eL.js'),"./lang/uk.json":()=>import('./uk-DpIjs8x1.js'),"./lang/ur.json":()=>import('./ur-TMighcUO.js'),"./lang/uz.json":()=>import('./uz-CGtdGj7X.js'),"./lang/zh-CN.json":()=>import('./zh-CN-icE_T0Fk.js'),"./lang/zh-TW.json":()=>import('./zh-TW-CtkCvl07.js')});function l(e){return e&&typeof e==`object`&&e.__type__===`translation_metadata`&&typeof e.key==`string`}function u(){return {...Object.fromEntries(Object.entries(c).map(([e,t])=>[e.split(`/`).pop().split(`.`)[0],{type:`lazy`,data:t}])),en:{type:`static`,data:w$1}}}var d$1=u(),f$1=Object.keys(d$1),p$1=Object.entries(d$1).map(([e])=>[s[e]||e,e]),m$1=false,h$1;function g$1(e){let t=e.split(`,`).map(e=>e.includes(`;`)?e.split(`;`).slice(0,2):[e,1]);t.sort((e,t)=>parseFloat(t[1])-parseFloat(e[1]));for(let[e,n]of t)if(f$1.includes(e))return e;return null}async function _$1(n,r){if(m$1&&!(m$1&&n!==h$1))return;let i=n??h$1??{};n!==void 0&&(h$1=n),b$1({processed_langs:d$1,custom_translations:i});let a=null,o=Rt();if(a=r?g$1(r):o&&f$1.includes(o)?o:null,!a){let e=o?.split(`-`)[0];a=e&&f$1.includes(e)?e:`en`;}await Tt$1({fallbackLocale:`en`,initialLocale:a}),m$1=true;}function v$1(e){Y$2.set(e);}function y$1(e,t,n=`en`){return e&&t.includes(e)?e:n}function b$1(e){if(e){try{for(let t in e.custom_translations)ft$1(t,e.custom_translations[t]);for(let t in e.processed_langs)t===`en`&&e.processed_langs[t].type===`static`?ft$1(t,w$1):e.processed_langs[t].type===`lazy`&&vt$1(t,e.processed_langs[t].data);}catch(e){console.error(`Error loading translations:`,e);}for(let e in o)ft$1(e,{common:{loading:o[e]}});}} + +var d=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%3e%3cpath%20fill='%23FF3270'%20d='M1.93%206.03v2.04h2.04V6.03H1.93Z'/%3e%3cpath%20fill='%23861FFF'%20d='M6.03%206.03v2.04h2.04V6.03H6.03Z'/%3e%3cpath%20fill='%23097EFF'%20d='M1.93%201.93v2.04h2.04V1.93H1.93Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M.5%201.4c0-.5.4-.9.9-.9h3.1a.9.9%200%200%201%20.87.67A2.44%202.44%200%200%201%209.5%202.95c0%20.65-.25%201.24-.67%201.68.39.1.67.46.67.88v3.08c0%20.5-.4.91-.9.91H1.4a.9.9%200%200%201-.9-.9V1.4Zm1.43.53v2.04h2.04V1.93H1.93Zm0%206.14V6.03h2.04v2.04H1.93Zm4.1%200V6.03h2.04v2.04H6.03Zm0-5.12a1.02%201.02%200%201%201%202.04%200%201.02%201.02%200%200%201-2.04%200Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23FFD702'%20d='M7.05%201.93a1.02%201.02%200%201%200%200%202.04%201.02%201.02%200%200%200%200-2.04Z'/%3e%3c/svg%3e`;function f(n,r){n.component(n=>{var i;let{wrapper:a=void 0,version:o,initial_height:s,fill_width:c,is_embed:l,space:f,display:p,info:m,loaded:h,pages:g=[],current_page:_=``,root:v,components:y=[],children:b}=r,x=y.find(e=>e.type===`navbar`),S=x?{visible:x.props.visible,main_page_name:x.props.main_page_name,value:x.props.value}:null;S&&t$4.set(S);let C=derived$1(()=>store_get(i??={},`$navbar_config`,t$4)?{visible:store_get(i??={},`$navbar_config`,t$4).visible??true,main_page_name:store_get(i??={},`$navbar_config`,t$4).main_page_name??`Home`,value:store_get(i??={},`$navbar_config`,t$4).value??null}:S),w=derived$1(()=>g.length>1&&(C()===null||C().visible!==false));function T(e){let t=e.split(`?`)[0].split(`#`)[0];return t=t.replace(/^\/+|\/+$/g,``),t}function E(e,t){return e.startsWith(`http://`)||e.startsWith(`https://`)?false:T(e)===T(t)}let D=derived$1(()=>{let e=g.filter(([e,t,n],r)=>r===0&&e===``?C()?.main_page_name!==false:n!==false),t=C()&&C().main_page_name!==false&&C().main_page_name!==`Home`?e.map(([e,t,n],r)=>r===0&&e===``&&t===`Home`?[e,C().main_page_name]:[e,t]):e.map(([e,t])=>[e,t]);if(C()?.value&&C().value.length>0){let e=new Set(t.map(([e])=>e)),n=C().value.map(([e,t])=>[t,e]).filter(([t])=>!e.has(t));return [...t,...n]}return t});if(n.push(``),w()){n.push(``),n.push(``);}else n.push(``);n.push(` `),b?.(n),n.push(`
`),p&&f&&m?(n.push(``),n.push(`
${escape_html(f)} ${escape_html(store_get(i??={},`$_`,nn)(`common.built_with`))} Gradio. ${escape_html(store_get(i??={},`$_`,nn)(`common.hosted_on`))} Spaces
`)):n.push(``),n.push(`
`),i&&unsubscribe_stores(i),bind_props(r,{wrapper:a});});}var p=false;typeof window<`u`&&`attachShadow`in Element.prototype&&`adoptedStyleSheets`in Document.prototype&&(p=`adoptedStyleSheets`in document.createElement(`div`).attachShadow({mode:`open`}));function m(e,t){let n=new URL(import.meta.url).origin;var r=e;if(window.location.origin!==n&&(r=new URL(e,n).href),document.querySelector(`link[href='${r}']`))return Promise.resolve();let i=document.createElement(`link`);return i.rel=`stylesheet`,i.href=r,new Promise((e,n)=>{i.addEventListener(`load`,()=>e()),i.addEventListener(`error`,()=>{console.error(`Unable to preload CSS for ${r}`),e();}),t.appendChild(i);})}function h(e,t,n){if(!p)return e;n||=document.createElement(`style`),n.remove();let r=new CSSStyleSheet;r.replaceSync(e);let i=``;e=e.replace(/@import\s+url\((.*?)\);\s*/g,(e,t)=>(i+=`@import url(${t});\n`,``));let a=r.cssRules,o=``,s=`.gradio-container.gradio-container-${t} .contain `;for(let e=0;e`${n?`.dark`:``} ${s} ${e.trim()} `).join(`,`);o+=t.cssText,o+=t.cssText.replace(e,r);}}else if(t instanceof CSSMediaRule){let e=`@media ${t.media.mediaText} {`;for(let n=0;n`${t?`.dark`:``} ${s} ${e.trim()} `).join(`,`);e+=r.cssText.replace(n,i);}}e+=`}`,o+=e;}else if(t instanceof CSSKeyframesRule){o+=`@keyframes ${t.name} {`;for(let e=0;eimport('./Index9-CWmJ42w4.js')},annotatedimage:{component:()=>import('./Index10-DopDGZ3I.js')},audio:{base:()=>import('./StaticAudio2-DiCFSAI2.js'),example:()=>import('./Example4-DpIqYeak.js'),component:()=>import('./audio-BiZFZm1M.js')},box:{component:()=>import('./Index11-DkBSPIyI.js')},browserstate:{component:()=>import('./Index12-lZ4y7G7K.js')},button:{component:()=>import('./Index6-D64oSdu4.js')},chatbot:{component:()=>import('./Index13-BRWITG7g.js')},checkbox:{example:()=>import('./Example5-mbhxaHbj.js'),component:()=>import('./Index15-CHJk3ct_.js')},checkboxgroup:{example:()=>import('./Example6-BZNz0ZAS.js'),component:()=>import('./Index16-BrPvbPEN.js')},code:{example:()=>import('./Example8-BV42BElH.js'),component:()=>import('./Index18-DfEInI3h.js')},colorpicker:{example:()=>import('./Example10-8GKOSZX2.js'),component:()=>import('./Index19-DyaB4QK4.js')},column:{component:()=>import('./Index8-CEzK0oPj.js')},core:{component:()=>import('./core2-CQE-86hH.js')},dataframe:{example:()=>import('./Example14-BDt9lUCk.js'),component:()=>import('./Index22-II_oPmLe.js')},dataset:{component:()=>import('./Index23-Bmx4jGe9.js')},datetime:{example:()=>import('./Example15-DOVMOMFU.js'),component:()=>import('./Index24-CpPs1vS-.js')},dialogue:{example:()=>import('./Example18-B-up1lL9.js'),component:()=>import('./Index25-9GOXgOOT.js')},downloadbutton:{component:()=>import('./Index26-CANDxuEr.js')},draggable:{component:()=>import('./Index27-D9mpZsuB.js')},dropdown:{example:()=>import('./Example12-xQwKGIj7.js'),component:()=>import('./Index21-Cgb9RfX0.js')},file:{example:()=>import('./Example21-DCmcGVAD.js'),component:()=>import('./Index30-DHHjlg4i.js')},fileexplorer:{example:()=>import('./Example22-CIalNKQb.js'),component:()=>import('./Index31-C-UKlG2f.js')},form:{component:()=>import('./Index2-D3VlTBcL.js')},gallery:{base:()=>import('./Gallery2-n9lQaxqR.js'),example:()=>import('./Example24-CCHqSrrt.js'),component:()=>import('./Index34-DBOFJVth.js')},group:{component:()=>import('./Index35-Dp9TC-oe.js')},highlightedtext:{component:()=>import('./Index36-CrAuLsvq.js')},html:{base:()=>import('./HTML2-Clujxji8.js'),example:()=>import('./Example28-BHmu3_6X.js'),component:()=>import('./Index37-B02piYVG.js')},image:{base:()=>import('./ImagePreview2-DPwsL_Wb.js'),example:()=>import('./Example26-cbv-WpjK.js'),component:()=>import('./Index33-DqHzdiIY.js')},imageeditor:{example:()=>import('./Example29-M9b9Tc2m.js'),component:()=>import('./Index38-CMskepfD.js').then(function (n) { return n.am; })},imageslider:{example:()=>import('./Example30-C2X-hFhW.js'),component:()=>import('./Index39-D1cNNdVv.js')},json:{example:()=>import('./Example31-BBEc5KEN.js'),component:()=>import('./Index40-D9vK7L_4.js')},label:{component:()=>import('./Index41-DY47mH2C.js')},markdown:{example:()=>import('./Example33-YAga6UAS.js'),component:()=>import('./Index43-DI-bhjlT.js')},model3d:{base:()=>import('./Model3D2-CYDdqz6S.js'),example:()=>import('./Example35-Us8bYa8W.js'),component:()=>import('./Index44-BXv9EhtL.js')},multimodaltextbox:{example:()=>import('./Example37-DXc2sT9t.js'),component:()=>import('./Index45-CShNMOuj.js')},nativeplot:{example:()=>import('./Example38-BjzOvoS-.js'),component:()=>import('./Index46-CQScma00.js')},navbar:{base:()=>import('./Index47-DnRr3r6s.js'),example:()=>import('./Example39-BlSG_crI.js'),component:()=>import('./Index47-DnRr3r6s.js')},number:{example:()=>import('./Example40-BmGXfN1I.js'),component:()=>import('./Index48-CJV-8oZp.js')},paramviewer:{example:()=>import('./Example41-bX24mNYK.js'),component:()=>import('./Index49-YqpLIn6F.js')},plot:{base:()=>import('./Plot-D7ytBGPW.js'),component:()=>import('./Index50-CZwvOzwK.js')},radio:{example:()=>import('./Example43-CIzkbkEP.js'),component:()=>import('./Index51-DpEO6dRN.js')},row:{component:()=>import('./Index52-DdYAqGFG.js')},sidebar:{component:()=>import('./Index53-DW9Ap3UT.js')},slider:{example:()=>import('./Example44-CH-o2UwO.js'),component:()=>import('./Index54-BbOcOk3U.js')},state:{component:()=>import('./Index55-CvP-9qxq.js')},statustracker:{component:()=>import('./statustracker2-BtOpPJMw.js')},tabitem:{component:()=>import('./Index58-DntKxDGW.js')},tabs:{component:()=>import('./Index57-ZBUZjg8k.js')},textbox:{example:()=>import('./Example2-70VzHOK1.js'),component:()=>import('./Index4-DNEEFm7j.js')},timer:{component:()=>import('./Index59-BCUEZn56.js')},uploadbutton:{component:()=>import('./Index60-B9QVWuWM.js')},vibeeditor:{component:()=>import('./Index61-DqeMltVe.js')},video:{base:()=>import('./VideoPreview2-CnAscpSd.js'),example:()=>import('./Example46-CgejNaGD.js'),component:()=>import('./video2-BGaosY6j.js')},workflowcanvas:{component:()=>import('./Index62-ND9vK-Je.js')},walkthrough:{component:()=>import('./Index57-ZBUZjg8k.js')},walkthroughstep:{component:()=>import('./Index58-DntKxDGW.js')}},_={},v={},y=typeof window<`u`;function b({api_url:e,name:t,id:n,variant:r}){let i=y&&window.__GRADIO__CC__;let a={...g,...i||{}},o=n||t;if(_[`${o}-${r}`])return {component:_[`${o}-${r}`],name:t,runtime:v[`${o}-${r}`]};try{if(!a?.[o]?.[r]&&!a?.[t]?.[r])throw Error();return _[`${o}-${r}`]=(a?.[o]?.[r]||a?.[t]?.[r])(),v[`${o}-${r}`]=y&&window.__GRADIO__CC__RUNTIMES__?.[n]||!1,{name:t,component:_[`${o}-${r}`],runtime:v[`${o}-${r}`]}}catch{if(!o)throw Error(`Component not found: ${t}`);try{let[n,i]=S(e,o,r);return _[`${o}-${r}`]=n,v[`${o}-${r}`]=i,{name:t,component:_[`${o}-${r}`],runtime:v[`${o}-${r}`]}}catch(e){if(r===`example`)return _[`${o}-${r}`]=import('./Example19-C8Rd0OgD.js'),{name:t,component:_[`${o}-${r}`],runtime:v[`${o}-${r}`]};throw console.error(`failed to load: ${t}`),console.error(e),e}}}function x(e){return y?new Promise((t,n)=>{let r=document.createElement(`link`);r.rel=`stylesheet`,r.href=e,document.head.appendChild(r),r.onload=()=>t(),r.onerror=()=>n();}):Promise.resolve()}function S(e,t,n){let r=y?`client`:`server`;if(r===`server`)return [import('./Index28-P2BzQenW.js'),Promise.resolve(false)];let i=`${e}/custom_component/${t}/${r}/${n}/index.js`;return [Promise.all([x(`${e}/custom_component/${t}/${r}/${n}/style.css`),import(i)]).then(([e,t])=>t),import(`${e}/custom_component/${t}/${r}/${n}/svelte_runtime_entry.js`)]}function C(e,t,n,r=`component`){return e===`api`&&(e=`state`),b({api_url:n,name:e,id:t,variant:r})}function w(e){let t=new Set,n=new Set;for(let r of e)r.inputs.forEach(e=>t.add(e)),r.outputs.forEach(e=>n.add(e));return [t,n]}function T(e,t,n,r){let[i,a]=r;return t===false?false:t===true?true:!!(i.has(e)||!a.has(e)&&E(n))}function E(e){return Array.isArray(e)&&e.length===0||e===``||e===0||!e}var D=Object.getPrototypeOf(async function(){}).constructor;function O(t){if(t==null)return ``;let n=String(t),r=get(nn);if(n.includes(`__i18n__`))return p$4(n,r);let i=r(n);return typeof i==`string`&&i!==n?i:n}var k=derived(nn,()=>O),A={walkthrough:`tabs`,walkthroughstep:`tabitem`};function j(e,t){let n=e.api_prefix.startsWith(`/`)?e.api_prefix:`/`+e.api_prefix;return i$3(e.root,n,t).toString()}var M=class{#e;#t;#n;reactive_formatter=e=>e;#r;client;root;root_untracked;#i=new Set;#a=new Set;#o=new Map;#s=new Map;#c=new Map;#l;component_ids;initial_tabs={};components_to_register=new Set;ready;ready_resolve;resolved=false;#u=new Set;constructor(e,t,n,r,i,a,o){this.ready=new Promise(e=>{this.ready_resolve=e;}),this.reactive_formatter=a;let s=j(r);this.#r={...r,api_url:s},this.#e=e,this.#t=t,this.#n=n,this.#l=o,this.root=this.create_node({id:t.id,children:[]},new Map,true);for(let t of e)t.props.visible!=0&&this.components_to_register.add(t.id);this.client=i,this.prepare();let c=e.reduce((e,t)=>(e.set(t.id,t),e),new Map);this.root.children=this.#t.children.map(e=>this.traverse(e,e=>this.create_node(e,c,false,this.reactive_formatter))),this.component_ids=e.map(e=>e.id),this.initial_tabs={},q(this.root,this.initial_tabs),this.postprocess(this.root),this.root_untracked=this.root;}reload(e,t,n,r){this.#t=t,this.#e=e;let i=j(r);this.#r={...r,api_url:i},this.#n=n,this.root=this.create_node({id:t.id,children:[]},new Map,true);for(let t of e)t.props.visible!=0&&this.components_to_register.add(t.id);this.prepare();let a=e.reduce((e,t)=>(e.set(t.id,t),e),new Map);this.root.children=this.#t.children.map(e=>this.traverse(e,e=>this.create_node(e,a,false,this.reactive_formatter))),this.component_ids=e.map(e=>e.id),this.initial_tabs={},q(this.root,this.initial_tabs),this.postprocess(this.root),this.#d(this.root);}register_component(e,t,n){this.#s.set(e,t),this.#o.set(e,n),this.components_to_register.delete(e);let r=this.#c.get(e);r&&(this.#c.delete(e),settled().then(()=>{let t=this.#s.get(e);t&&t(r);})),this.components_to_register.size===0&&!this.resolved&&(this.resolved=true,this.ready_resolve());}unregister_component(e,t){let n=this.#s.get(e);t&&n!==t||(this.#s.delete(e),this.#o.delete(e));}prepare(){let[e,t]=w(this.#n);this.#i=e,this.#a=t;}process(){}postprocess(e){this.root=this.traverse(e,[e=>B(e,this.#r.api_url),e=>H(e,this.components_to_register),e=>G(e,this.initial_tabs),e=>this.find_attached_events(e,this.#n),e=>W(e,this.components_to_register,this.#u)]);}find_attached_events(e,t){let n=t.filter(t=>t.targets.find(([t])=>t===e.id)).map(t=>{let n=t.targets.find(([t])=>t===e.id);return n?n[1]:null}).filter(Boolean);return e.props.shared_props.attached_events=n,e}traverse(e,t){function n(e,t,n){let r=t(e);return `children`in e&&e.children.length>0&&(r.children=e.children?.map(e=>n(e,t))||[]),r}if(Array.isArray(t)){let r=e;for(let e of t)r=n(r,e,this.traverse.bind(this));return r}else return n(e,t,this.traverse.bind(this))}create_node(e,t,n=false,r){let i;if(i=n?{type:`column`,id:e.id,props:{visible:true,root:``,theme_mode:`light`,scale:this.#r.fill_height?1:null},component_class_id:`column`,key:null}:t.get(e.id),!i)throw Error(`Component with ID ${e.id} not found`);r&&(i.props.i18n=r,i.props.i18n_store=k);let a=z(e.id,i.props,[this.#i,this.#a],this.client,this.#r.api_url,{...this.#r,register_component:this.register_component.bind(this),unregister_component:this.unregister_component.bind(this),dispatcher:this.#l.bind(this)}),o=A[i.type]||i.type,s=a.shared_props.visible===false?null:C(i.type,i.component_class_id,this.#r.api_url||``);return {id:e.id,type:o,props:a,children:[],show_progress_on:null,component_class_id:i.component_class_id||i.type,component:a.shared_props.visible===false?null:s?.component||null,runtime:s?.runtime||false,key:i.key,rendered_in:i.rendered_in,documentation:i.documentation,original_visibility:a.shared_props.visible}}rerender(e,t){let n=e.reduce((e,t)=>(e.set(t.id,t),e),new Map),r=this.traverse(t,e=>this.create_node(e,n,false,this.reactive_formatter));q(r,this.initial_tabs);let i=this.traverse(r,e=>G(e,this.initial_tabs)),a=J(this.root,i.id);if(!a)throw Error(`Rerender failed: root node not found in current tree`);a.children=i.children,this.#d(i);}#d(e){let t={};for(let n in e.props.shared_props){if(n===`loading_status`)continue;let r=e.props.shared_props[n];r!==void 0&&(t[n]=r);}for(let n in e.props.props){let r=e.props.props[n];r!==void 0&&(t[n]=r);}if(Object.keys(t).length>0){let n=this.#s.get(e.id);if(n)n(t);else if(e.props.shared_props.visible!==false){let n=this.#c.get(e.id)||{};this.#c.set(e.id,{...n,...t});}}if(e.children)for(let t of e.children)this.#d(t);}async update_state(e,t,r=true){let i=J(this.root,e),a=false;if(r&&!i?.component){await tick();let n=J(this.root,e);n&&`visible`in t&&(n.props.shared_props.visible=t.visible),F(this.root,this.#r.api_url),await tick(),i=J(this.root,e),a=true;}let o=this.#s.get(e);i&&!(`value`in t)&&(await this.#f(e,i),await this.#p(i));let c=i?.props.props.value;if(i&&R(i,t),o)o&&(o(t),i?.type===`tabitem`&&this.#m(e,i));else {let{loading_status:r,visible:a,...o}=t;if(Object.keys(o).length>0){let t=this.#c.get(e)||{};this.#c.set(e,{...t,...o});}`value`in t&&!n$3(c,t.value)&&this.#l(e,`change`,null),i?.type===`tabitem`&&this.#m(e,i);}!r||a||(await tick(),await this.update_visibility(i,t));}async update_visibility(e,t){for(let n of e.children){let e=this.#s.get(n.id);`value`in t||await this.#f(n.id,n),e&&e(t),await this.update_visibility(n,t);}}async#f(e,t){let n=this.#o.get(e);if(!n)return;let r=await n();r&&`value`in r&&R(t,{value:r.value});}async#p(e){for(let t of e.children)await this.#f(t.id,t),await this.#p(t);}#m(e,t){let n=Y(this.root,e);if(!n||n.type!==`tabs`)return;let r=n.props.props.initial_tabs;if(!r)return;let i=r.findIndex(e=>e.component_id===t.id);if(i===-1)return;let a=t.props.props.i18n,o=t.props.shared_props.label,s=t.original_visibility,c=s===void 0?t.props.shared_props.visible:s;r[i]={label:a?a(o):o,id:t.props.props.id,elem_id:t.props.shared_props.elem_id,visible:c===`hidden`?false:c,interactive:t.props.shared_props.interactive,scale:t.props.shared_props.scale||null,component_id:t.id},n.props.props.initial_tabs=[...r];let l=this.#s.get(n.id);l&&l({initial_tabs:n.props.props.initial_tabs});}async get_state(e){let t=this.#o.get(e),n=J(this.root,e);return !t&&!n?null:t?await t():n?Promise.resolve({value:n.props.props.value}):null}async render_previously_invisible_children(e){let t=J(this.root,e);t&&(!this.#u.has(t.id)&&!P(t,this.#u)||(N(t,this.#u,true),F(t,this.#r.api_url),await tick(),await settled(),await new Promise(e=>requestAnimationFrame(e)),this.#d(t)));}};function N(e,t,n=false){if(t.has(e.id)&&(e.props.shared_props={...e.props.shared_props,visible:true}),e.type===`tabs`){let n=e.props.props.initial_tabs,r=e.props.props.selected??n?.[0]?.id;e.children.forEach(e=>{e.type===`tabitem`&&(e.props.props.id===r||e.id===r)&&N(e,t,false);});}else e.type===`accordion`&&e.props.props.open===false&&!n||e.children.forEach(e=>{N(e,t,false);});}function P(e,t){for(let n of e.children)if(t.has(n.id)||P(n,t))return true;return false}function F(e,t){if(e.props.shared_props.visible&&!e.component){let n=C(e.type,e.component_class_id,t);e.component=n.component,e.runtime=n.runtime;}e.children.forEach(e=>F(e,t));}function I(e,t,n){return t?t.reduce((t,r)=>(t[r]=async(...t)=>(t.length===1&&(t=t[0]),await n.component_server(e,r,t)),t),{}):{}}function L(e){let t={},n={};for(let i in e)if(i===`id`||i===`autoscroll`)n[i]=e[i];else if(d$4.includes(i)){let n=i;t[n]=e[i];}else n[i]=e[i];return {shared_props:t,props:n}}function R(e,t){let n=L(t);for(let t in n.shared_props)e.props.shared_props[t]=n.shared_props[t];for(let t in n.props)e.props.props[t]=n.props[t];}function z(e,t,n,i,a,o={}){let{shared_props:s,props:c}=L(t);s.server=I(e,t.server_fns,i);for(let e in o)if(d$4.includes(e)){let t=e;s[t]=o[e];}else c[e]=o[e];return s.client=i,s.id=e,s.interactive=T(e,s.interactive,c.value,n),s.load_component=(e,t,n)=>C(e,n||``,a,t),s.visible=s.visible===void 0?true:s.visible,s.loading_status={},{shared_props:s,props:c}}function B(e,t){if(e.props.shared_props.visible&&!e.component){let n=C(e.type,e.component_class_id,t),r={...e,component:n.component,children:[]};return e.children&&(r.children=e.children.map(e=>B(e,t))),r}else return e}function V(e,t){t.delete(e.id),e.children&&e.children.forEach(e=>V(e,t));}function H(e,t){return e.props.shared_props.visible!==true&&V(e,t),e}function U(e,t){return e.props.shared_props.visible===true&&(t.add(e.id),e.props.shared_props.visible=false),e.children.forEach(e=>{U(e,t);}),e}function W(e,t,n){return e.type===`accordion`&&e.props.props.open===false&&(V(e,t),e.children&&e.children.forEach(e=>{U(e,n);})),e.type===`tabs`&&e.children.forEach(r=>{r.type===`tabitem`&&r.props.props.id!==(e.props.props.selected??e.props.props.initial_tabs[0].id)&&(V(r,t),U(r,n));}),e}function G(e,t){if(e.type===`tabs`&&e.id in t){let n=t[e.id].sort((e,t)=>e.order-t.order);e.props.props.initial_tabs=n;}else e.type===`tabitem`&&(e.props.props.component_id=e.id);return e}function K(e,t,n,r){if(n!==null&&e.type===`tabitem`){n in t||(t[n]=[]),e.props.props.id??(e.props.props.id=e.id);let i=e.props.props.i18n,a=e.props.shared_props.label;t[n].push({label:i?i(a):a,id:e.props.props.id,elem_id:e.props.shared_props.elem_id,visible:e.props.shared_props.visible,interactive:e.props.shared_props.interactive,scale:e.props.shared_props.scale||null,component_id:e.id}),e.props.props.order=r;}e.children&&e.children.forEach((n,r)=>{K(n,t,e.type===`tabs`?e.id:null,e.type===`tabs`?r:null);});}function q(e,t){function n(e){`children`in e&&e.children.length>0&&e.children?.forEach(n=>K(n,t,e.type===`tabs`?e.id:null,null));}return n(e)}function J(e,t){if(e.id===t)return e;if(e.children)for(let n of e.children){let e=J(n,t);if(e)return e}return null}function Y(e,t){if(e.children)for(let n of e.children){if(n.id===t)return e;let r=Y(n,t);if(r)return r}return null} + +var i=true;async function a({url:i,data:{server:a,port:o,local_dev_mode:s,accept_language:c,root_url:l,mount_path:u,cookie:d,auth_required:f},route:p}){let m,h=e$3&&!s&&l?new URL(u||`/`,l).href:a,g=i.searchParams.get(`deep_link`),_=new Headers;if(e$3?_.append(`x-gradio-server`,new URL(u,location.origin).href):(_.append(`x-gradio-server`,l),d&&_.append(`Cookie`,d)),f)return await _$1(void 0,c),{config:{auth_required:true,auth_message:``,components:[],current_page:``,dependencies:[],layout:{},pages:[],page:{},root:l,space_id:null,analytics_enabled:false,connect_heartbeat:false,css:``,js:``,theme_hash:0,head:``,dev_mode:false,enable_queue:false,show_error:false,fill_height:false,fill_width:false,mode:`blocks`,theme:`default`,title:``,version:``,api_prefix:``,is_space:false,is_colab:false,footer_links:[`gradio`,`settings`],stylesheets:[],protocol:`sse_v3`,username:``},api_url:h,layout:{},app:null};try{m=await Dt.connect(h,{with_null_state:!0,events:[`data`,`log`,`status`,`render`],query_params:g?{deep_link:g}:void 0,headers:_,cookies:d||void 0});}catch(e){let t=e.message||``,n=``;return t.includes(`Login credentials are required to access this space.`)||(n=t.replace(/^Error:?\s*/,``)),await _$1(void 0,c),{config:{auth_message:n,auth_required:true,components:[],current_page:``,dependencies:[],layout:{},pages:[],page:{},root:l,space_id:null,analytics_enabled:false,connect_heartbeat:false,css:``,js:``,theme_hash:0,head:``,dev_mode:false,enable_queue:false,show_error:false,fill_height:false,fill_width:false,mode:`blocks`,theme:`default`,title:``,version:``,api_prefix:``,is_space:false,is_colab:false,footer_links:[`gradio`,`settings`],stylesheets:[],protocol:`sse_v3`,username:``},api_url:h,layout:{},app:null}}if(!m.config)throw Error(`No config found`);let v=m.get_url_config(i.toString());return e$3&&yt(v),await _$1(m.config?.i18n_translations||void 0,c),{config:v,api_url:h,app:m}} + +var _page_ts = /*#__PURE__*/Object.freeze({ + __proto__: null, + load: a, + ssr: i +}); + +async function t({request:t}){let n=t.headers.get(`x-gradio-server`)||`http://127.0.0.1:7860`,r=t.headers.get(`x-gradio-port`)||`7860`,i=t.headers.get(`x-gradio-local-dev-mode`)||n$4?`true`:void 0,a=t.headers.get(`accept-language`)||`en`,o=t.headers.get(`x-gradio-mounted-path`)||`/`,s=new URL(t.headers.get(`x-gradio-original-url`)||n).origin,c=t.headers.get(`cookie`),l=false;try{(await fetch(`${n}/config`,{headers:{...c?{Cookie:c}:{}}})).status===401&&(l=!0);}catch{}return {server:n,root_url:new URL(o,s).href.replace(/\/$/,``),mount_path:o,port:r,local_dev_mode:i,accept_language:a,cookie:c,auth_required:l}} + +var _page_server_ts = /*#__PURE__*/Object.freeze({ + __proto__: null, + load: t +}); + +const index = 2; +let component_cache; +const component = async () => component_cache ??= (await import('./_page.svelte-D0onObu0.js')).default; +const universal_id = "src/routes/[...catchall]/+page.ts"; +const server_id = "src/routes/[...catchall]/+page.server.ts"; +const imports = ["_app/immutable/nodes/2.BoK984GR.js","_app/immutable/chunks/DZH2DxBD.js","_app/immutable/chunks/DO4jZ8-K.js","_app/immutable/chunks/CVXYF984.js","_app/immutable/chunks/BG8FoEuj.js","_app/immutable/chunks/Bvo4UubC.js","_app/immutable/chunks/C2u59Ty-.js","_app/immutable/chunks/CnXt9nDf.js","_app/immutable/chunks/BQRyQKUb.js","_app/immutable/chunks/DZ0ISp0b.js","_app/immutable/chunks/CFy7vuyP.js","_app/immutable/chunks/BgjYYnFZ.js","_app/immutable/chunks/D_BTWKb0.js","_app/immutable/chunks/DylESuEX.js","_app/immutable/chunks/B6Kq4y8Z.js","_app/immutable/chunks/j4vcKnNL.js","_app/immutable/chunks/D2Tbgc-g.js","_app/immutable/chunks/AL7zGNml.js","_app/immutable/chunks/CaGG_aDl.js","_app/immutable/chunks/DPt8q4el.js","_app/immutable/chunks/DQP7txBe.js","_app/immutable/chunks/B3otvbjY.js","_app/immutable/chunks/2IZC7hEb.js","_app/immutable/chunks/DJ2aidqN.js","_app/immutable/chunks/DrSR3CVL.js","_app/immutable/chunks/DbkLaIOm.js","_app/immutable/chunks/Kll2twSG.js"]; +const stylesheets = ["_app/immutable/assets/src.BfutoOhM.css","_app/immutable/assets/Image.Da_XA0w6.css","_app/immutable/assets/ImagePreview.B2sIO-1d.css","_app/immutable/assets/Index.CcsdfK63.css","_app/immutable/assets/statustracker.tf1Xc4uQ.css","_app/immutable/assets/Index.DrCM5gzc.css","_app/immutable/assets/Example.B1swpn2y.css","_app/immutable/assets/Index.Ba0kRe4M.css","_app/immutable/assets/2.Cq76gkHB.css","_app/immutable/assets/Index.l0AUS9hi.css","_app/immutable/assets/Index.BgJHsyvf.css","_app/immutable/assets/src.DHR5oziv.css","_app/immutable/assets/audio.B-0Anr4d.css","_app/immutable/assets/markdown-code.DsF1U13j.css","_app/immutable/assets/Index.BhPkOP7y.css","_app/immutable/assets/Example.Cpi22WGa.css","_app/immutable/assets/Example.QWdMqwA5.css","_app/immutable/assets/Index.Bqii6RB8.css","_app/immutable/assets/Index.DOWWMP04.css","_app/immutable/assets/Index.ClHt7ViI.css","_app/immutable/assets/Index.DkaV9IGe.css","_app/immutable/assets/Index.DRCpmDeD.css","_app/immutable/assets/Example.BeU1J4ps.css","_app/immutable/assets/Index.B2IoSUlF.css","_app/immutable/assets/Index.6CKB8ymh.css","_app/immutable/assets/Index.3FqI08xq.css","_app/immutable/assets/Index.CxE3o7oI.css","_app/immutable/assets/Example.DO-WzQxB.css","_app/immutable/assets/Index.EcGL5Mc3.css","_app/immutable/assets/Example.BHd1o9CD.css","_app/immutable/assets/Index.CBfSpNAf.css","_app/immutable/assets/Index.DKIzZVIo.css","_app/immutable/assets/Index.CA1QTtuq.css","_app/immutable/assets/Index.CuBpy66D.css","_app/immutable/assets/Index.VzTVYr-q.css","_app/immutable/assets/Example.CqSXPQC0.css","_app/immutable/assets/Index.O9LU53nH.css","_app/immutable/assets/Example.ClCEvrVq.css","_app/immutable/assets/Index.DnmLATw6.css","_app/immutable/assets/JSON.8l7fUyjk.css","_app/immutable/assets/Example.B38sx5Cv.css","_app/immutable/assets/Index.CWf2xCP-.css","_app/immutable/assets/Index.DCRdhmCA.css","_app/immutable/assets/Index.OL5m2Qtu.css","_app/immutable/assets/Index.DgD8sjzA.css","_app/immutable/assets/Example.guFL0Sj1.css","_app/immutable/assets/Index.BHng8pvl.css","_app/immutable/assets/Example.Do5iR6B9.css","_app/immutable/assets/Index.X2SerQpl.css","_app/immutable/assets/Index.CvOXDAXN.css","_app/immutable/assets/Index.LKTY8Jbn.css","_app/immutable/assets/Index.ptz7y9zw.css","_app/immutable/assets/Example.DSMNiXnn.css","_app/immutable/assets/Index.Cr_YPqE0.css","_app/immutable/assets/Index.D-h_yCjW.css","_app/immutable/assets/Index.BsaKcsdE.css","_app/immutable/assets/Index.Xhg3Ucw_.css","_app/immutable/assets/Index.C6IXUoUa.css","_app/immutable/assets/video.W3rk8GZx.css","_app/immutable/assets/Index.DMLZDKgQ.css","_app/immutable/assets/Example.D2nbjfVb.css","_app/immutable/assets/Index.CWg6ZASC.css","_app/immutable/assets/ApiDocs.COuXNFVt.css","_app/immutable/assets/ApiRecorder.BXM0NqLC.css","_app/immutable/assets/Settings.DYn0Wjf5.css"]; +const fonts = []; + +var _2 = /*#__PURE__*/Object.freeze({ + __proto__: null, + component: component, + fonts: fonts, + imports: imports, + index: index, + server: _page_server_ts, + server_id: server_id, + stylesheets: stylesheets, + universal: _page_ts, + universal_id: universal_id +}); + +export { snapshot as $, m$2 as A, h$2 as B, g$2 as C, _$2 as D, v$2 as E, y$2 as F, b$2 as G, x$1 as H, C$1 as I, m$4 as J, tick as K, onDestroy as L, M, he as N, c$3 as O, u$3 as P, s$3 as Q, t$5 as R, S$1 as S, B$1 as T, h$4 as U, nn as V, k as W, settled as X, Xe as Y, D as Z, _$1 as _, a$3 as a, _2 as a0, b$1 as b, a$1 as c, i$1 as d, e, f, c$1 as g, h, i$3 as i, l$1 as j, u$1 as k, l, m, n, o$1 as o, p$1 as p, d$2 as q, r, s$1 as s, t$1 as t, u, v$1 as v, w$1 as w, f$2 as x, y$1 as y, p$2 as z }; +//# sourceMappingURL=2-CQ_Bz8hd.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example10-8GKOSZX2.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example10-8GKOSZX2.js new file mode 100644 index 0000000000000000000000000000000000000000..49bab3577facbb7b5146c91ac6c191085653a04b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example10-8GKOSZX2.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { b as attr_style, i as stringify, a as attr_class } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(``);} + +export { t as default }; +//# sourceMappingURL=Example10-8GKOSZX2.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example12-xQwKGIj7.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example12-xQwKGIj7.js new file mode 100644 index 0000000000000000000000000000000000000000..98bb248e08fda147db57f4dfc639a6fbe5cbde76 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example12-xQwKGIj7.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false,choices:o}=n,s=(r?Array.isArray(r)?r:[r]:[]).map(e=>o.find(t=>t[1]===e)?.[0]).filter(e=>e!==void 0).join(`, `);t.push(`${escape_html(s)}`);});} + +export { t as default }; +//# sourceMappingURL=Example12-xQwKGIj7.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example14-BDt9lUCk.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example14-BDt9lUCk.js new file mode 100644 index 0000000000000000000000000000000000000000..aca5cefce33011b2c3a9c0749ab898d2a014bf9a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example14-BDt9lUCk.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html, h as ensure_array_like, d as derived } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false,index:o}=n,s=derived(()=>Array.isArray(r)),c=derived(()=>s()&&(r.length===0||r[0].length===0));if(s()){if(t.push(``),t.push(``),typeof r==`string`)t.push(``),t.push(`${escape_html(r)}`);else if(c())t.push(``),t.push(`
Empty
`);else {t.push(``),t.push(``);let n=ensure_array_like(r.slice(0,3));for(let r=0,i=n.length;r`);let a=ensure_array_like(i.slice(0,3));for(let n=0,r=a.length;n${escape_html(r)}`);}t.push(``),i.length>3?(t.push(``),t.push(``)):t.push(``),t.push(``);}t.push(`
…
`),r.length>3?(t.push(``),t.push(``)):t.push(``),t.push(``);}t.push(``);}else t.push(``);t.push(``);});} + +export { t as default }; +//# sourceMappingURL=Example14-BDt9lUCk.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example15-DOVMOMFU.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example15-DOVMOMFU.js new file mode 100644 index 0000000000000000000000000000000000000000..8f9cceab8b4d56bc0ad20d15b3565a8f320e26e5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example15-DOVMOMFU.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r}=n;t.push(`${escape_html(r||``)}`);} + +export { t as default }; +//# sourceMappingURL=Example15-DOVMOMFU.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example18-B-up1lL9.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example18-B-up1lL9.js new file mode 100644 index 0000000000000000000000000000000000000000..1dcabafc0af6325a79b44b98fad055f51c5414aa --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example18-B-up1lL9.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r)}`);} + +export { t as default }; +//# sourceMappingURL=Example18-B-up1lL9.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example19-C8Rd0OgD.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example19-C8Rd0OgD.js new file mode 100644 index 0000000000000000000000000000000000000000..374132064e7007b601e4675040d6432c20549120 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example19-C8Rd0OgD.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r)}`);} + +export { t as default }; +//# sourceMappingURL=Example19-C8Rd0OgD.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example2-70VzHOK1.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example2-70VzHOK1.js new file mode 100644 index 0000000000000000000000000000000000000000..c551007b0508144f4391cc984069527c6fe157ba --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example2-70VzHOK1.js @@ -0,0 +1,7 @@ +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; + +function n(n,r){n.component(n=>{let{value:i,type:a,selected:o=false}=r;function s(e,t=60){if(!e)return ``;let n=String(e);return n.length<=t?n:n.slice(0,t)+`...`}n.push(`${escape_html(s(i))}`);});} + +export { n as default }; +//# sourceMappingURL=Example2-70VzHOK1.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example21-DCmcGVAD.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example21-DCmcGVAD.js new file mode 100644 index 0000000000000000000000000000000000000000..f0c7f90b77ee8d98edb34758c9e9abcbc0fa3c01 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example21-DCmcGVAD.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r?Array.isArray(r)?r.join(`, `):r:``)}`);});} + +export { t as default }; +//# sourceMappingURL=Example21-DCmcGVAD.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example22-CIalNKQb.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example22-CIalNKQb.js new file mode 100644 index 0000000000000000000000000000000000000000..58bf164b89bd86d7c3f91765775ed03250b0be2e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example22-CIalNKQb.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, h as ensure_array_like, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false}=n;if(t.push(``),r){t.push(``),t.push(``);let n=ensure_array_like(Array.isArray(r)?r.slice(0,3):[r]);for(let r=0,i=n.length;r./${escape_html(i)}`);}t.push(` `),Array.isArray(r)&&r.length>3?(t.push(``),t.push(`
  • ...
  • `)):t.push(``),t.push(``);}else t.push(``);t.push(``);});} + +export { t as default }; +//# sourceMappingURL=Example22-CIalNKQb.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example24-CCHqSrrt.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example24-CCHqSrrt.js new file mode 100644 index 0000000000000000000000000000000000000000..cc9c9f2da76e3872abd4608b9f462c506de31df6 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example24-CCHqSrrt.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, h as ensure_array_like, f as attr, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false}=n;if(t.push(``),r&&r.length>0){t.push(``),t.push(`
    `);let n=ensure_array_like(r.slice(0,3));for(let r=0,i=n.length;r`),t.push(`
    `),i.caption?(t.push(``),t.push(`${escape_html(i.caption)}`)):t.push(``),t.push(`
    `)):`video`in i&&i.video?(t.push(``),t.push(`
    `),i.caption?(t.push(``),t.push(`${escape_html(i.caption)}`)):t.push(``),t.push(`
    `)):t.push(``),t.push(``);}t.push(` `),r.length>3?(t.push(``),t.push(`
    …
    `)):t.push(``),t.push(`
    `);}else t.push(``);t.push(``);});} + +export { t as default }; +//# sourceMappingURL=Example24-CCHqSrrt.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example26-cbv-WpjK.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example26-cbv-WpjK.js new file mode 100644 index 0000000000000000000000000000000000000000..04feb2a4f8a13853ab2b5a2fed492c4095ef3566 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example26-cbv-WpjK.js @@ -0,0 +1,8 @@ +import { t } from './Image-BFJk-f6P.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class } from './renderer-Dic3PuWn.js'; + +function n(n,r){n.component(n=>{let{value:i,type:a,selected:o=false}=r;n.push(``),i?(n.push(``),t(n,{src:i.url,alt:``})):n.push(``),n.push(``);});} + +export { n as default }; +//# sourceMappingURL=Example26-cbv-WpjK.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example28-BHmu3_6X.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example28-BHmu3_6X.js new file mode 100644 index 0000000000000000000000000000000000000000..c4e9ddebd9741a4edc0433b7e0a816104de01523 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example28-BHmu3_6X.js @@ -0,0 +1,8 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class } from './renderer-Dic3PuWn.js'; +import { h as html } from './html-CfyvkLET.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`${html(r)}`);} + +export { t as default }; +//# sourceMappingURL=Example28-BHmu3_6X.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example29-M9b9Tc2m.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example29-M9b9Tc2m.js new file mode 100644 index 0000000000000000000000000000000000000000..6b5e72128ec3f89f4775901c2984d79bad6527d9 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example29-M9b9Tc2m.js @@ -0,0 +1,13 @@ +import { t } from './Image-BFJk-f6P.js'; +import './2-CQ_Bz8hd.js'; +import { a as attr_class } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './server-CR3r1l-0.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; + +function n(n,r){n.component(n=>{let{value:i,type:a,selected:o=false}=r;n.push(``),t(n,{src:i.composite?.url||i.background?.url,alt:``}),n.push(``);});} + +export { n as default }; +//# sourceMappingURL=Example29-M9b9Tc2m.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example30-C2X-hFhW.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example30-C2X-hFhW.js new file mode 100644 index 0000000000000000000000000000000000000000..50f45a9af9b33949a1ab581684d648f4c63d902f --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example30-C2X-hFhW.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, f as attr } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,samples_dir:i,type:a,selected:o=false}=n;t.push(` `);});} + +export { t as default }; +//# sourceMappingURL=Example30-C2X-hFhW.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example31-BBEc5KEN.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example31-BBEc5KEN.js new file mode 100644 index 0000000000000000000000000000000000000000..3599ebc06ff7b78a7324af3f300925a8978493d1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example31-BBEc5KEN.js @@ -0,0 +1,14 @@ +import { c } from './JSON-CWr9Wv2h.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class } from './renderer-Dic3PuWn.js'; +import './src3-h7ZBftxa.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './html-CfyvkLET.js'; + +function n(n,r){let{value:i,theme_mode:a=`system`,type:o,selected:s=false}=r;n.push(``),i?(n.push(``),c(n,{value:i,open:true,theme_mode:a,show_indices:false,label_height:0,interactive:false,show_copy_button:false})):n.push(``),n.push(``);} + +export { n as default }; +//# sourceMappingURL=Example31-BBEc5KEN.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example32-CKfOgpPw.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example32-CKfOgpPw.js new file mode 100644 index 0000000000000000000000000000000000000000..2ee10d2bd5c4f7328be023721f3829227ce0ac54 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example32-CKfOgpPw.js @@ -0,0 +1,8 @@ +import { u as ut } from './markdown-code-CPYQEp1F.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class } from './renderer-Dic3PuWn.js'; + +function n(n,r){let{value:i,type:a,selected:o=false,sanitize_html:s,line_breaks:c,latex_delimiters:l}=r;function u(e,t=60){if(!e)return ``;let n=String(e);return n.length<=t?n:n.slice(0,t)+`...`}n.push(``),ut(n,{message:u(i),latex_delimiters:l,sanitize_html:s,line_breaks:c,chatbot:false}),n.push(``);} + +export { n }; +//# sourceMappingURL=Example32-CKfOgpPw.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example33-YAga6UAS.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example33-YAga6UAS.js new file mode 100644 index 0000000000000000000000000000000000000000..9901e6178981b1d5bf38ffd1eaf8d59955fb6aa4 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example33-YAga6UAS.js @@ -0,0 +1,8 @@ +export { n as default } from './Example32-CKfOgpPw.js'; +import './markdown-code-CPYQEp1F.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './html-CfyvkLET.js'; +//# sourceMappingURL=Example33-YAga6UAS.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example35-Us8bYa8W.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example35-Us8bYa8W.js new file mode 100644 index 0000000000000000000000000000000000000000..4eec74445b60f4fbb9ced5e4e150db85aa803f4e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example35-Us8bYa8W.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r||``)}`);} + +export { t as default }; +//# sourceMappingURL=Example35-Us8bYa8W.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example36-ByLxHvqS.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example36-ByLxHvqS.js new file mode 100644 index 0000000000000000000000000000000000000000..f8174565f58a11e29acd418fa4eefc9cb2337b45 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example36-ByLxHvqS.js @@ -0,0 +1,10 @@ +import { t } from './Image-BFJk-f6P.js'; +import './2-CQ_Bz8hd.js'; +import { a as attr_class, e as escape_html, h as ensure_array_like, f as attr } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import { z as zu } from './Video-ClEGvRgS.js'; + +function r(r,i){r.component(r=>{let{value:a={text:``,files:[]},type:o,selected:s=false}=i;r.push(`

    ${escape_html(a.text?a.text:``)}

    `);let c=ensure_array_like(a.files);for(let i=0,a=c.length;i`),t(r,{src:a.url,alt:``})):a.mime_type&&a.mime_type.includes(`video`)?(r.push(``),zu(r,{src:a.url,alt:``,loop:true,is_stream:false})):a.mime_type&&a.mime_type.includes(`audio`)?(r.push(``),r.push(``)):(r.push(``),r.push(`${escape_html(a.orig_name)}`)),r.push(``);}r.push(``);});} + +export { r }; +//# sourceMappingURL=Example36-ByLxHvqS.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example37-DXc2sT9t.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example37-DXc2sT9t.js new file mode 100644 index 0000000000000000000000000000000000000000..287087ca9389529156654a81b668c4fd2f794e2c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example37-DXc2sT9t.js @@ -0,0 +1,10 @@ +export { r as default } from './Example36-ByLxHvqS.js'; +import './Image-BFJk-f6P.js'; +import './async-Cv1-GZGV.js'; +import './renderer-Dic3PuWn.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './Video-ClEGvRgS.js'; +//# sourceMappingURL=Example37-DXc2sT9t.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example38-BjzOvoS-.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example38-BjzOvoS-.js new file mode 100644 index 0000000000000000000000000000000000000000..6323fcc917a0cf72169d8c4e2dc6d19c59dd0dd1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example38-BjzOvoS-.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{title:r,x:i,y:a}=n;r?(t.push(``),t.push(`${escape_html(r)}`)):(t.push(``),t.push(`${escape_html(i)} x ${escape_html(a)}`)),t.push(``);} + +export { t as default }; +//# sourceMappingURL=Example38-BjzOvoS-.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example39-BlSG_crI.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example39-BlSG_crI.js new file mode 100644 index 0000000000000000000000000000000000000000..a4ded26a0dd33ffbfabd530fb87b4a143140d36e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example39-BlSG_crI.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r={visible:true,home_page_title:`Home`}}=n;t.push(`
    Navbar config: visible=${escape_html(r.visible)}, home_page_title="${escape_html(r.home_page_title)}"
    `);});} + +export { t as default }; +//# sourceMappingURL=Example39-BlSG_crI.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example4-DpIqYeak.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example4-DpIqYeak.js new file mode 100644 index 0000000000000000000000000000000000000000..68ff091c38da15abff29c88ee443eaf845b3b2ec --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example4-DpIqYeak.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r||``)}`);} + +export { t as default }; +//# sourceMappingURL=Example4-DpIqYeak.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example40-BmGXfN1I.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example40-BmGXfN1I.js new file mode 100644 index 0000000000000000000000000000000000000000..040f82bcac6d855407e14ba4bc45a5bbd4af10ea --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example40-BmGXfN1I.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r===null?``:r)}`);} + +export { t as default }; +//# sourceMappingURL=Example40-BmGXfN1I.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example41-bX24mNYK.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example41-bX24mNYK.js new file mode 100644 index 0000000000000000000000000000000000000000..703ff2d1c8bec19756cbfdb981432e54cd5c1bb1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example41-bX24mNYK.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`
    ${escape_html(JSON.stringify(r,null,2))}
    `);} + +export { t as default }; +//# sourceMappingURL=Example41-bX24mNYK.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example43-CIzkbkEP.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example43-CIzkbkEP.js new file mode 100644 index 0000000000000000000000000000000000000000..c128de931885f03978f4cbd752d57b4cd5f2c188 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example43-CIzkbkEP.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html, d as derived } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false,choices:o}=n,s=derived(()=>{if(r===null)return ``;let e=o.find(e=>e[1]===r);return e?e[0]:``});t.push(`${escape_html(s())}`);});} + +export { t as default }; +//# sourceMappingURL=Example43-CIzkbkEP.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example44-CH-o2UwO.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example44-CH-o2UwO.js new file mode 100644 index 0000000000000000000000000000000000000000..1eaf1ffa533a6aaf7883ae46b2de5666e7ffd35c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example44-CH-o2UwO.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r)}`);} + +export { t as default }; +//# sourceMappingURL=Example44-CH-o2UwO.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example45-BW2IpVjz.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example45-BW2IpVjz.js new file mode 100644 index 0000000000000000000000000000000000000000..30d20ebd14d7b269fe9e64e2980f024edf967726 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example45-BW2IpVjz.js @@ -0,0 +1,9 @@ +import './2-CQ_Bz8hd.js'; +import { z as zu } from './Video-ClEGvRgS.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class } from './renderer-Dic3PuWn.js'; + +function r(r,i){r.component(r=>{let{type:a,selected:o=false,value:s=null,loop:c}=i,l;async function u(){l&&(l.muted=true,l.playsInline=true,l.controls=false,l.setAttribute(`muted`,``),await l.play(),l.pause());}let d=true,f$1;function p(r){s?(r.push(``),(r.push(``),r.push(``),zu(r,{muted:true,playsinline:true,onloadeddata:u,onmouseover:()=>l?.play(),onmouseout:()=>l?.pause(),src:s?.url,is_stream:false,loop:c,get node(){return l},set node(e){l=e,d=false;}}),r.push(``)),r.push(``)):r.push(``),r.push(``);}do d=true,f$1=r.copy(),p(f$1);while(!d);r.subsume(f$1);});} + +export { r }; +//# sourceMappingURL=Example45-BW2IpVjz.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example46-CgejNaGD.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example46-CgejNaGD.js new file mode 100644 index 0000000000000000000000000000000000000000..695cdcef323a0f99b18235121441434e269ff9f5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example46-CgejNaGD.js @@ -0,0 +1,9 @@ +export { r as default } from './Example45-BW2IpVjz.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './Video-ClEGvRgS.js'; +//# sourceMappingURL=Example46-CgejNaGD.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example5-mbhxaHbj.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example5-mbhxaHbj.js new file mode 100644 index 0000000000000000000000000000000000000000..755133397e080ba112eb50e1c0f5c0c97a7d4c25 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example5-mbhxaHbj.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false}=n;t.push(`${escape_html(r===null?``:r.toLocaleString())}`);});} + +export { t as default }; +//# sourceMappingURL=Example5-mbhxaHbj.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example6-BZNz0ZAS.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example6-BZNz0ZAS.js new file mode 100644 index 0000000000000000000000000000000000000000..b390e68a16a8e548ae31bd8e1b6d348eb32153be --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example6-BZNz0ZAS.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html, d as derived } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{value:r,type:i,selected:a=false,choices:o}=n,s=derived(()=>r.map(e=>o.find(t=>t[1]===e)?.[0]).filter(e=>e!==void 0).join(`, `));t.push(`${escape_html(s())}`);});} + +export { t as default }; +//# sourceMappingURL=Example6-BZNz0ZAS.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example8-BV42BElH.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example8-BV42BElH.js new file mode 100644 index 0000000000000000000000000000000000000000..d90dcc7c5019be662f9d3b47cde192aa8118f9ca --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Example8-BV42BElH.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; + +function t(t,n){let{value:r,type:i,selected:a=false}=n;function o(e,t=60){if(!e)return ``;let n=String(e);return n.length<=t?n:n.slice(0,t)+`...`}t.push(`${escape_html(o(r))}`);} + +export { t as default }; +//# sourceMappingURL=Example8-BV42BElH.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Gallery-BRnbw3Hz.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Gallery-BRnbw3Hz.js new file mode 100644 index 0000000000000000000000000000000000000000..63610c45c6a8e69faf0d025640165a497516a58a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Gallery-BRnbw3Hz.js @@ -0,0 +1,12 @@ +import { T as B, O as c } from './2-CQ_Bz8hd.js'; +import { h, H, v, V as Ve, _, i as ie$1, a as He, I as Ie, m as ee, f as fe, G as ae, Y, Z, X, U } from './src3-h7ZBftxa.js'; +import { t } from './Image-BFJk-f6P.js'; +import './async-Cv1-GZGV.js'; +import { c as bind_props, a as attr_class, b as attr_style, e as escape_html, h as ensure_array_like, f as attr, i as stringify, d as derived } from './renderer-Dic3PuWn.js'; +import { _ as _$1, g } from './src4-BlBbNhwG.js'; +import { z as zu } from './Video-ClEGvRgS.js'; + +async function ie(t){return t?`
    ${(await Promise.all(t.map(async([t,n])=>t===null||!t.url?``:await c(t.url)))).map(e=>``).join(``)}
    `:``}async function y(e,n,r=`uploaded_file`){let i=e.type.split(`/`)[1]||`png`,a=new File([e],`${r}.${i}`);return (await n([new B({path:a.name,orig_name:a.name,blob:a,size:a.size,mime_type:a.type,is_stream:false})])??[]).filter(e=>e!==null)}function b(e,t$1){e.component(e=>{let{show_label:y=true,label:b,value:x=void 0,columns:ae$1=[2],rows:oe=void 0,height:S=`auto`,preview:se,allow_preview:C=true,object_fit:ce=`cover`,show_share_button:le=false,show_download_button:w=false,show_download_all_button:T=false,i18n:E,selected_index:D=void 0,interactive:O,_fetch:k,show_fullscreen_button:ue=true,fullscreen:de=false,root:fe$1=``,file_types:pe=[`image`,`video`],sources:A,max_file_size:me=null,upload:j,stream_handler:M,fit_columns:N=true,buttons:P=null,oncustom_button_click:F=null,onpreview_open:he=()=>{},onchange:ge=()=>{},onclear:I=()=>{},onselect:_e=e=>{},onshare:L=e=>{},onerror:R=e=>{},onpreview_close:z=()=>{},onfullscreen:ve=e=>{},ondelete:ye=()=>{},onupload:be=()=>{},onsource_change:B=()=>{}}=t$1,V=null,H$1=false,U$1=derived(()=>x==null?null:x.map(e=>`video`in e?{video:e.video,caption:e.caption}:`image`in e?{image:e.image,caption:e.caption}:{}));function xe(e,t,n){if(e&&t&&n){let n=e.length;return Array.isArray(t)?t.map(e=>Math.min(e,n)):Math.min(t,n)}else return t}let Se=derived(()=>xe(U$1(),ae$1,N));D==null&&se&&x?.length&&(D=0);async function Ce(e,t){let n;try{n=await k(e);}catch(t){if(t instanceof TypeError){window.open(e,`_blank`,`noreferrer`);return}throw t}let r=await n.blob(),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=t,a.click(),URL.revokeObjectURL(i);}let we=new Uint32Array(Array.from({length:256},(e,t)=>{let n=t;for(let e=0;e<8;e++)n=n&1?3988292384^n>>>1:n>>>1;return n>>>0}));function Te(e){let t=4294967295;for(let n of e)t=we[(t^n)&255]^t>>>8;return (t^4294967295)>>>0}function W(e,t,n){e.setUint16(t,n,true);}function G(e,t,n){e.setUint32(t,n,true);}function K(e){return new Uint8Array(e)}function Ee(e,t,n){let r=(e.orig_name||e.path||t).split(/[/\\]/).pop()||t,i=n.get(r)??0;if(n.set(r,i+1),i===0)return r;let a=r.lastIndexOf(`.`),o=a>0?r.slice(0,a):r,s=a>0?r.slice(a):``;return `${o}-${i+1}${s}`}function q(e){let t=new TextEncoder,n=[],r=[],i=2048,a=0;for(let o of e){let e=t.encode(o.name),s=Te(o.data),c=K(30+e.length),l=new DataView(c.buffer);G(l,0,67324752),W(l,4,20),W(l,6,i),W(l,8,0),W(l,10,0),W(l,12,33),G(l,14,s),G(l,18,o.data.length),G(l,22,o.data.length),W(l,26,e.length),W(l,28,0),c.set(e,30),n.push(c,o.data);let u=K(46+e.length),d=new DataView(u.buffer);G(d,0,33639248),W(d,4,20),W(d,6,20),W(d,8,i),W(d,10,0),W(d,12,0),W(d,14,33),G(d,16,s),G(d,20,o.data.length),G(d,24,o.data.length),W(d,28,e.length),W(d,30,0),W(d,32,0),W(d,34,0),W(d,36,0),G(d,38,0),G(d,42,a),u.set(e,46),r.push(u),a+=c.length+o.data.length;}let o=a,s=r.reduce((e,t)=>e+t.length,0),c=K(22),l=new DataView(c.buffer);G(l,0,101010256),W(l,4,0),W(l,6,0),W(l,8,e.length),W(l,10,e.length),G(l,12,s),G(l,16,o),W(l,20,0);let u=new Uint8Array(o+s+c.length),d=0;for(let e of [...n,...r,c])u.set(e,d),d+=e.length;return u}async function De(e,t){let n;try{n=await k(e);}catch(t){return t instanceof TypeError&&window.open(e,`_blank`,`noreferrer`),null}return n.ok?{name:t,data:new Uint8Array(await n.arrayBuffer())}:null}async function Oe(e){let t=new Map,n=(await Promise.all(e.flatMap((e,n)=>{let r=`image`in e?e.image:e.video,i=`image`in e?`image-${n+1}`:`video-${n+1}`;if(!r.url)return [];let a=Ee(r,i,t);return [De(r.url,a)]}))).filter(e=>e!==null);if(n.length===0)return;let r=q(n),i=URL.createObjectURL(new Blob([r.buffer],{type:`application/zip`})),a=document.createElement(`a`);a.href=i,a.download=`gallery.zip`,a.click(),URL.revokeObjectURL(i);}function J(){U$1()&&Oe(U$1());}let Y$1=derived(()=>D!=null&&U$1()!=null?U$1()[D]:null);let Z$1=false,Q=true,$;function ke(e){if(y?(e.push(``),h(e,{show_label:y,Icon:H,label:b||`Gallery`})):e.push(``),e.push(` `),x==null||U$1()==null||U$1().length===0)e.push(``),v(e,{unpadded_box:true,size:`large`,children:e=>{H(e);}});else {if(e.push(``),e.push(``);}e.push(``);}e.push(``);}do Q=true,$=e.copy(),ke($);while(!Q);e.subsume($),bind_props(t$1,{value:x,selected_index:D});});} + +export { b, y }; +//# sourceMappingURL=Gallery-BRnbw3Hz.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Gallery2-n9lQaxqR.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Gallery2-n9lQaxqR.js new file mode 100644 index 0000000000000000000000000000000000000000..abd1f945d4e663906934baf0ad08d87a5bd6e1ff --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Gallery2-n9lQaxqR.js @@ -0,0 +1,13 @@ +export { b as default } from './Gallery-BRnbw3Hz.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './Image-BFJk-f6P.js'; +import './src4-BlBbNhwG.js'; +import './Video-ClEGvRgS.js'; +//# sourceMappingURL=Gallery2-n9lQaxqR.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/HTML-Ba2viJD3.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/HTML-Ba2viJD3.js new file mode 100644 index 0000000000000000000000000000000000000000..a93474904c1c318e55441ff32e6251d17cde74f7 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/HTML-Ba2viJD3.js @@ -0,0 +1,8505 @@ +import { $ as snapshot, L as onDestroy } from './2-CQ_Bz8hd.js'; +import './async-Cv1-GZGV.js'; +import { f as attr, a as attr_class, i as stringify, j as clsx, d as derived, t as to_array } from './renderer-Dic3PuWn.js'; +import require$$2 from 'fs'; + +function commonjsRequire(path) { + throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); +} + +var handlebars = {exports: {}}; + +var handlebars_runtime = {exports: {}}; + +var base$1 = {}; + +var utils = {}; + +var hasRequiredUtils; + +function requireUtils () { + if (hasRequiredUtils) return utils; + hasRequiredUtils = 1; + + utils.__esModule = true; + utils.extend = extend; + utils.indexOf = indexOf; + utils.escapeExpression = escapeExpression; + utils.isEmpty = isEmpty; + utils.createFrame = createFrame; + utils.blockParams = blockParams; + utils.appendContextPath = appendContextPath; + var escape = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''', + '`': '`', + '=': '=' + }; + + var badChars = /[&<>"'`=]/g, + possible = /[&<>"'`=]/; + + function escapeChar(chr) { + return escape[chr]; + } + + function extend(obj /* , ...source */) { + for (var i = 1; i < arguments.length; i++) { + for (var key in arguments[i]) { + if (Object.prototype.hasOwnProperty.call(arguments[i], key)) { + obj[key] = arguments[i][key]; + } + } + } + + return obj; + } + + var toString = Object.prototype.toString; + + utils.toString = toString; + // Sourced from lodash + // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt + /* eslint-disable func-style */ + var isFunction = function isFunction(value) { + return typeof value === 'function'; + }; + // fallback for older versions of Chrome and Safari + /* istanbul ignore next */ + if (isFunction(/x/)) { + utils.isFunction = isFunction = function (value) { + return typeof value === 'function' && toString.call(value) === '[object Function]'; + }; + } + utils.isFunction = isFunction; + + /* eslint-enable func-style */ + + /* istanbul ignore next */ + var isArray = Array.isArray || function (value) { + return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false; + }; + + utils.isArray = isArray; + // Older IE versions do not directly support indexOf so we must implement our own, sadly. + + function indexOf(array, value) { + for (var i = 0, len = array.length; i < len; i++) { + if (array[i] === value) { + return i; + } + } + return -1; + } + + function escapeExpression(string) { + if (typeof string !== 'string') { + // don't escape SafeStrings, since they're already safe + if (string && string.toHTML) { + return string.toHTML(); + } else if (string == null) { + return ''; + } else if (!string) { + return string + ''; + } + + // Force a string conversion as this will be done by the append regardless and + // the regex test will do this transparently behind the scenes, causing issues if + // an object's to string has escaped characters in it. + string = '' + string; + } + + if (!possible.test(string)) { + return string; + } + return string.replace(badChars, escapeChar); + } + + function isEmpty(value) { + if (!value && value !== 0) { + return true; + } else if (isArray(value) && value.length === 0) { + return true; + } else { + return false; + } + } + + function createFrame(object) { + var frame = extend({}, object); + frame._parent = object; + return frame; + } + + function blockParams(params, ids) { + params.path = ids; + return params; + } + + function appendContextPath(contextPath, id) { + return (contextPath ? contextPath + '.' : '') + id; + } + + return utils; +} + +var exception = {exports: {}}; + +var hasRequiredException; + +function requireException () { + if (hasRequiredException) return exception.exports; + hasRequiredException = 1; + (function (module, exports) { + + exports.__esModule = true; + var errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack']; + + function Exception(message, node) { + var loc = node && node.loc, + line = undefined, + endLineNumber = undefined, + column = undefined, + endColumn = undefined; + + if (loc) { + line = loc.start.line; + endLineNumber = loc.end.line; + column = loc.start.column; + endColumn = loc.end.column; + + message += ' - ' + line + ':' + column; + } + + var tmp = Error.prototype.constructor.call(this, message); + + // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work. + for (var idx = 0; idx < errorProps.length; idx++) { + this[errorProps[idx]] = tmp[errorProps[idx]]; + } + + /* istanbul ignore else */ + if (Error.captureStackTrace) { + Error.captureStackTrace(this, Exception); + } + + try { + if (loc) { + this.lineNumber = line; + this.endLineNumber = endLineNumber; + + // Work around issue under safari where we can't directly set the column value + /* istanbul ignore next */ + if (Object.defineProperty) { + Object.defineProperty(this, 'column', { + value: column, + enumerable: true + }); + Object.defineProperty(this, 'endColumn', { + value: endColumn, + enumerable: true + }); + } else { + this.column = column; + this.endColumn = endColumn; + } + } + } catch (nop) { + /* Ignore if the browser is very particular */ + } + } + + Exception.prototype = new Error(); + + exports['default'] = Exception; + module.exports = exports['default']; + + } (exception, exception.exports)); + return exception.exports; +} + +var helpers$1 = {}; + +var blockHelperMissing = {exports: {}}; + +var hasRequiredBlockHelperMissing; + +function requireBlockHelperMissing () { + if (hasRequiredBlockHelperMissing) return blockHelperMissing.exports; + hasRequiredBlockHelperMissing = 1; + (function (module, exports) { + + exports.__esModule = true; + + var _utils = requireUtils(); + + exports['default'] = function (instance) { + instance.registerHelper('blockHelperMissing', function (context, options) { + var inverse = options.inverse, + fn = options.fn; + + if (context === true) { + return fn(this); + } else if (context === false || context == null) { + return inverse(this); + } else if (_utils.isArray(context)) { + if (context.length > 0) { + if (options.ids) { + options.ids = [options.name]; + } + + return instance.helpers.each(context, options); + } else { + return inverse(this); + } + } else { + if (options.data && options.ids) { + var data = _utils.createFrame(options.data); + data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name); + options = { data: data }; + } + + return fn(context, options); + } + }); + }; + + module.exports = exports['default']; + + } (blockHelperMissing, blockHelperMissing.exports)); + return blockHelperMissing.exports; +} + +var each = {exports: {}}; + +var hasRequiredEach; + +function requireEach () { + if (hasRequiredEach) return each.exports; + hasRequiredEach = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _utils = requireUtils(); + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + exports['default'] = function (instance) { + instance.registerHelper('each', function (context, options) { + if (!options) { + throw new _exception2['default']('Must pass iterator to #each'); + } + + var fn = options.fn, + inverse = options.inverse, + i = 0, + ret = '', + data = undefined, + contextPath = undefined; + + if (options.data && options.ids) { + contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.'; + } + + if (_utils.isFunction(context)) { + context = context.call(this); + } + + if (options.data) { + data = _utils.createFrame(options.data); + } + + function execIteration(field, index, last) { + if (data) { + data.key = field; + data.index = index; + data.first = index === 0; + data.last = !!last; + + if (contextPath) { + data.contextPath = contextPath + field; + } + } + + ret = ret + fn(context[field], { + data: data, + blockParams: _utils.blockParams([context[field], field], [contextPath + field, null]) + }); + } + + if (context && typeof context === 'object') { + if (_utils.isArray(context)) { + for (var j = context.length; i < j; i++) { + if (i in context) { + execIteration(i, i, i === context.length - 1); + } + } + } else if (typeof Symbol === 'function' && context[Symbol.iterator]) { + var newContext = []; + var iterator = context[Symbol.iterator](); + for (var it = iterator.next(); !it.done; it = iterator.next()) { + newContext.push(it.value); + } + context = newContext; + for (var j = context.length; i < j; i++) { + execIteration(i, i, i === context.length - 1); + } + } else { + (function () { + var priorKey = undefined; + + Object.keys(context).forEach(function (key) { + // We're running the iterations one step out of sync so we can detect + // the last iteration without have to scan the object twice and create + // an itermediate keys array. + if (priorKey !== undefined) { + execIteration(priorKey, i - 1); + } + priorKey = key; + i++; + }); + if (priorKey !== undefined) { + execIteration(priorKey, i - 1, true); + } + })(); + } + } + + if (i === 0) { + ret = inverse(this); + } + + return ret; + }); + }; + + module.exports = exports['default']; + + } (each, each.exports)); + return each.exports; +} + +var helperMissing = {exports: {}}; + +var hasRequiredHelperMissing; + +function requireHelperMissing () { + if (hasRequiredHelperMissing) return helperMissing.exports; + hasRequiredHelperMissing = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + exports['default'] = function (instance) { + instance.registerHelper('helperMissing', function () /* [args, ]options */{ + if (arguments.length === 1) { + // A missing field in a {{foo}} construct. + return undefined; + } else { + // Someone is actually trying to call something, blow up. + throw new _exception2['default']('Missing helper: "' + arguments[arguments.length - 1].name + '"'); + } + }); + }; + + module.exports = exports['default']; + + } (helperMissing, helperMissing.exports)); + return helperMissing.exports; +} + +var _if = {exports: {}}; + +var hasRequired_if; + +function require_if () { + if (hasRequired_if) return _if.exports; + hasRequired_if = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _utils = requireUtils(); + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + exports['default'] = function (instance) { + instance.registerHelper('if', function (conditional, options) { + if (arguments.length != 2) { + throw new _exception2['default']('#if requires exactly one argument'); + } + if (_utils.isFunction(conditional)) { + conditional = conditional.call(this); + } + + // Default behavior is to render the positive path if the value is truthy and not empty. + // The `includeZero` option may be set to treat the condtional as purely not empty based on the + // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative. + if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) { + return options.inverse(this); + } else { + return options.fn(this); + } + }); + + instance.registerHelper('unless', function (conditional, options) { + if (arguments.length != 2) { + throw new _exception2['default']('#unless requires exactly one argument'); + } + return instance.helpers['if'].call(this, conditional, { + fn: options.inverse, + inverse: options.fn, + hash: options.hash + }); + }); + }; + + module.exports = exports['default']; + + } (_if, _if.exports)); + return _if.exports; +} + +var log = {exports: {}}; + +var hasRequiredLog; + +function requireLog () { + if (hasRequiredLog) return log.exports; + hasRequiredLog = 1; + (function (module, exports) { + + exports.__esModule = true; + + exports['default'] = function (instance) { + instance.registerHelper('log', function () /* message, options */{ + var args = [undefined], + options = arguments[arguments.length - 1]; + for (var i = 0; i < arguments.length - 1; i++) { + args.push(arguments[i]); + } + + var level = 1; + if (options.hash.level != null) { + level = options.hash.level; + } else if (options.data && options.data.level != null) { + level = options.data.level; + } + args[0] = level; + + instance.log.apply(instance, args); + }); + }; + + module.exports = exports['default']; + + } (log, log.exports)); + return log.exports; +} + +var lookup = {exports: {}}; + +var hasRequiredLookup; + +function requireLookup () { + if (hasRequiredLookup) return lookup.exports; + hasRequiredLookup = 1; + (function (module, exports) { + + exports.__esModule = true; + + exports['default'] = function (instance) { + instance.registerHelper('lookup', function (obj, field, options) { + if (!obj) { + // Note for 5.0: Change to "obj == null" in 5.0 + return obj; + } + return options.lookupProperty(obj, field); + }); + }; + + module.exports = exports['default']; + + } (lookup, lookup.exports)); + return lookup.exports; +} + +var _with = {exports: {}}; + +var hasRequired_with; + +function require_with () { + if (hasRequired_with) return _with.exports; + hasRequired_with = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _utils = requireUtils(); + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + exports['default'] = function (instance) { + instance.registerHelper('with', function (context, options) { + if (arguments.length != 2) { + throw new _exception2['default']('#with requires exactly one argument'); + } + if (_utils.isFunction(context)) { + context = context.call(this); + } + + var fn = options.fn; + + if (!_utils.isEmpty(context)) { + var data = options.data; + if (options.data && options.ids) { + data = _utils.createFrame(options.data); + data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]); + } + + return fn(context, { + data: data, + blockParams: _utils.blockParams([context], [data && data.contextPath]) + }); + } else { + return options.inverse(this); + } + }); + }; + + module.exports = exports['default']; + + } (_with, _with.exports)); + return _with.exports; +} + +var hasRequiredHelpers$1; + +function requireHelpers$1 () { + if (hasRequiredHelpers$1) return helpers$1; + hasRequiredHelpers$1 = 1; + + helpers$1.__esModule = true; + helpers$1.registerDefaultHelpers = registerDefaultHelpers; + helpers$1.moveHelperToHooks = moveHelperToHooks; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _helpersBlockHelperMissing = requireBlockHelperMissing(); + + var _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing); + + var _helpersEach = requireEach(); + + var _helpersEach2 = _interopRequireDefault(_helpersEach); + + var _helpersHelperMissing = requireHelperMissing(); + + var _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing); + + var _helpersIf = require_if(); + + var _helpersIf2 = _interopRequireDefault(_helpersIf); + + var _helpersLog = requireLog(); + + var _helpersLog2 = _interopRequireDefault(_helpersLog); + + var _helpersLookup = requireLookup(); + + var _helpersLookup2 = _interopRequireDefault(_helpersLookup); + + var _helpersWith = require_with(); + + var _helpersWith2 = _interopRequireDefault(_helpersWith); + + function registerDefaultHelpers(instance) { + _helpersBlockHelperMissing2['default'](instance); + _helpersEach2['default'](instance); + _helpersHelperMissing2['default'](instance); + _helpersIf2['default'](instance); + _helpersLog2['default'](instance); + _helpersLookup2['default'](instance); + _helpersWith2['default'](instance); + } + + function moveHelperToHooks(instance, helperName, keepHelper) { + if (instance.helpers[helperName]) { + instance.hooks[helperName] = instance.helpers[helperName]; + if (!keepHelper) { + // Using delete is slow + instance.helpers[helperName] = undefined; + } + } + } + + return helpers$1; +} + +var decorators = {}; + +var inline = {exports: {}}; + +var hasRequiredInline; + +function requireInline () { + if (hasRequiredInline) return inline.exports; + hasRequiredInline = 1; + (function (module, exports) { + + exports.__esModule = true; + + var _utils = requireUtils(); + + exports['default'] = function (instance) { + instance.registerDecorator('inline', function (fn, props, container, options) { + var ret = fn; + if (!props.partials) { + props.partials = {}; + ret = function (context, options) { + // Create a new partials stack frame prior to exec. + var original = container.partials; + container.partials = _utils.extend({}, original, props.partials); + var ret = fn(context, options); + container.partials = original; + return ret; + }; + } + + props.partials[options.args[0]] = options.fn; + + return ret; + }); + }; + + module.exports = exports['default']; + + } (inline, inline.exports)); + return inline.exports; +} + +var hasRequiredDecorators; + +function requireDecorators () { + if (hasRequiredDecorators) return decorators; + hasRequiredDecorators = 1; + + decorators.__esModule = true; + decorators.registerDefaultDecorators = registerDefaultDecorators; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _decoratorsInline = requireInline(); + + var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline); + + function registerDefaultDecorators(instance) { + _decoratorsInline2['default'](instance); + } + + return decorators; +} + +var logger = {exports: {}}; + +var hasRequiredLogger; + +function requireLogger () { + if (hasRequiredLogger) return logger.exports; + hasRequiredLogger = 1; + (function (module, exports) { + + exports.__esModule = true; + + var _utils = requireUtils(); + + var logger = { + methodMap: ['debug', 'info', 'warn', 'error'], + level: 'info', + + // Maps a given level value to the `methodMap` indexes above. + lookupLevel: function lookupLevel(level) { + if (typeof level === 'string') { + var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase()); + if (levelMap >= 0) { + level = levelMap; + } else { + level = parseInt(level, 10); + } + } + + return level; + }, + + // Can be overridden in the host environment + log: function log(level) { + level = logger.lookupLevel(level); + + if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) { + var method = logger.methodMap[level]; + // eslint-disable-next-line no-console + if (!console[method]) { + method = 'log'; + } + + for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + message[_key - 1] = arguments[_key]; + } + + console[method].apply(console, message); // eslint-disable-line no-console + } + } + }; + + exports['default'] = logger; + module.exports = exports['default']; + + } (logger, logger.exports)); + return logger.exports; +} + +var protoAccess = {}; + +var hasRequiredProtoAccess; + +function requireProtoAccess () { + if (hasRequiredProtoAccess) return protoAccess; + hasRequiredProtoAccess = 1; + + protoAccess.__esModule = true; + protoAccess.createProtoAccessControl = createProtoAccessControl; + protoAccess.resultIsAllowed = resultIsAllowed; + protoAccess.resetLoggedProperties = resetLoggedProperties; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _utils = requireUtils(); + + var _logger = requireLogger(); + + var _logger2 = _interopRequireDefault(_logger); + + var loggedProperties = Object.create(null); + + function createProtoAccessControl(runtimeOptions) { + // Create an object with "null"-prototype to avoid truthy results on + // prototype properties. + var propertyWhiteList = Object.create(null); + // eslint-disable-next-line no-proto + propertyWhiteList['__proto__'] = false; + _utils.extend(propertyWhiteList, runtimeOptions.allowedProtoProperties); + + var methodWhiteList = Object.create(null); + methodWhiteList['constructor'] = false; + methodWhiteList['__defineGetter__'] = false; + methodWhiteList['__defineSetter__'] = false; + methodWhiteList['__lookupGetter__'] = false; + methodWhiteList['__lookupSetter__'] = false; + _utils.extend(methodWhiteList, runtimeOptions.allowedProtoMethods); + + return { + properties: { + whitelist: propertyWhiteList, + defaultValue: runtimeOptions.allowProtoPropertiesByDefault + }, + methods: { + whitelist: methodWhiteList, + defaultValue: runtimeOptions.allowProtoMethodsByDefault + } + }; + } + + function resultIsAllowed(result, protoAccessControl, propertyName) { + if (typeof result === 'function') { + return checkWhiteList(protoAccessControl.methods, propertyName); + } else { + return checkWhiteList(protoAccessControl.properties, propertyName); + } + } + + function checkWhiteList(protoAccessControlForType, propertyName) { + if (protoAccessControlForType.whitelist[propertyName] !== undefined) { + return protoAccessControlForType.whitelist[propertyName] === true; + } + if (protoAccessControlForType.defaultValue !== undefined) { + return protoAccessControlForType.defaultValue; + } + logUnexpecedPropertyAccessOnce(propertyName); + return false; + } + + function logUnexpecedPropertyAccessOnce(propertyName) { + if (loggedProperties[propertyName] !== true) { + loggedProperties[propertyName] = true; + _logger2['default'].log('error', 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\n' + 'You can add a runtime option to disable the check or this warning:\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'); + } + } + + function resetLoggedProperties() { + Object.keys(loggedProperties).forEach(function (propertyName) { + delete loggedProperties[propertyName]; + }); + } + + return protoAccess; +} + +var hasRequiredBase$1; + +function requireBase$1 () { + if (hasRequiredBase$1) return base$1; + hasRequiredBase$1 = 1; + + base$1.__esModule = true; + base$1.HandlebarsEnvironment = HandlebarsEnvironment; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _utils = requireUtils(); + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + var _helpers = requireHelpers$1(); + + var _decorators = requireDecorators(); + + var _logger = requireLogger(); + + var _logger2 = _interopRequireDefault(_logger); + + var _internalProtoAccess = requireProtoAccess(); + + var VERSION = '4.7.9'; + base$1.VERSION = VERSION; + var COMPILER_REVISION = 8; + base$1.COMPILER_REVISION = COMPILER_REVISION; + var LAST_COMPATIBLE_COMPILER_REVISION = 7; + + base$1.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION; + var REVISION_CHANGES = { + 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it + 2: '== 1.0.0-rc.3', + 3: '== 1.0.0-rc.4', + 4: '== 1.x.x', + 5: '== 2.0.0-alpha.x', + 6: '>= 2.0.0-beta.1', + 7: '>= 4.0.0 <4.3.0', + 8: '>= 4.3.0' + }; + + base$1.REVISION_CHANGES = REVISION_CHANGES; + var objectType = '[object Object]'; + + function HandlebarsEnvironment(helpers, partials, decorators) { + this.helpers = helpers || {}; + this.partials = partials || {}; + this.decorators = decorators || {}; + + _helpers.registerDefaultHelpers(this); + _decorators.registerDefaultDecorators(this); + } + + HandlebarsEnvironment.prototype = { + constructor: HandlebarsEnvironment, + + logger: _logger2['default'], + log: _logger2['default'].log, + + registerHelper: function registerHelper(name, fn) { + if (_utils.toString.call(name) === objectType) { + if (fn) { + throw new _exception2['default']('Arg not supported with multiple helpers'); + } + _utils.extend(this.helpers, name); + } else { + this.helpers[name] = fn; + } + }, + unregisterHelper: function unregisterHelper(name) { + delete this.helpers[name]; + }, + + registerPartial: function registerPartial(name, partial) { + if (_utils.toString.call(name) === objectType) { + _utils.extend(this.partials, name); + } else { + if (typeof partial === 'undefined') { + throw new _exception2['default']('Attempting to register a partial called "' + name + '" as undefined'); + } + this.partials[name] = partial; + } + }, + unregisterPartial: function unregisterPartial(name) { + delete this.partials[name]; + }, + + registerDecorator: function registerDecorator(name, fn) { + if (_utils.toString.call(name) === objectType) { + if (fn) { + throw new _exception2['default']('Arg not supported with multiple decorators'); + } + _utils.extend(this.decorators, name); + } else { + this.decorators[name] = fn; + } + }, + unregisterDecorator: function unregisterDecorator(name) { + delete this.decorators[name]; + }, + /** + * Reset the memory of illegal property accesses that have already been logged. + * @deprecated should only be used in handlebars test-cases + */ + resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() { + _internalProtoAccess.resetLoggedProperties(); + } + }; + + var log = _logger2['default'].log; + + base$1.log = log; + base$1.createFrame = _utils.createFrame; + base$1.logger = _logger2['default']; + + return base$1; +} + +var safeString = {exports: {}}; + +var hasRequiredSafeString; + +function requireSafeString () { + if (hasRequiredSafeString) return safeString.exports; + hasRequiredSafeString = 1; + (function (module, exports) { + + exports.__esModule = true; + function SafeString(string) { + this.string = string; + } + + SafeString.prototype.toString = SafeString.prototype.toHTML = function () { + return '' + this.string; + }; + + exports['default'] = SafeString; + module.exports = exports['default']; + + } (safeString, safeString.exports)); + return safeString.exports; +} + +var runtime = {}; + +var wrapHelper = {}; + +var hasRequiredWrapHelper; + +function requireWrapHelper () { + if (hasRequiredWrapHelper) return wrapHelper; + hasRequiredWrapHelper = 1; + + wrapHelper.__esModule = true; + wrapHelper.wrapHelper = wrapHelper$1; + + function wrapHelper$1(helper, transformOptionsFn) { + if (typeof helper !== 'function') { + // This should not happen, but apparently it does in https://github.com/wycats/handlebars.js/issues/1639 + // We try to make the wrapper least-invasive by not wrapping it, if the helper is not a function. + return helper; + } + var wrapper = function wrapper() /* dynamic arguments */{ + var options = arguments[arguments.length - 1]; + arguments[arguments.length - 1] = transformOptionsFn(options); + return helper.apply(this, arguments); + }; + return wrapper; + } + + return wrapHelper; +} + +var hasRequiredRuntime; + +function requireRuntime () { + if (hasRequiredRuntime) return runtime; + hasRequiredRuntime = 1; + + runtime.__esModule = true; + runtime.checkRevision = checkRevision; + runtime.template = template; + runtime.wrapProgram = wrapProgram; + runtime.resolvePartial = resolvePartial; + runtime.invokePartial = invokePartial; + runtime.noop = noop; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + // istanbul ignore next + + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + + var _utils = requireUtils(); + + var Utils = _interopRequireWildcard(_utils); + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + var _base = requireBase$1(); + + var _helpers = requireHelpers$1(); + + var _internalWrapHelper = requireWrapHelper(); + + var _internalProtoAccess = requireProtoAccess(); + + function checkRevision(compilerInfo) { + var compilerRevision = compilerInfo && compilerInfo[0] || 1, + currentRevision = _base.COMPILER_REVISION; + + if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) { + return; + } + + if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) { + var runtimeVersions = _base.REVISION_CHANGES[currentRevision], + compilerVersions = _base.REVISION_CHANGES[compilerRevision]; + throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').'); + } else { + // Use the embedded version info since the runtime doesn't know about this revision yet + throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').'); + } + } + + function template(templateSpec, env) { + /* istanbul ignore next */ + if (!env) { + throw new _exception2['default']('No environment passed to template'); + } + if (!templateSpec || !templateSpec.main) { + throw new _exception2['default']('Unknown template object: ' + typeof templateSpec); + } + + templateSpec.main.decorator = templateSpec.main_d; + + // Note: Using env.VM references rather than local var references throughout this section to allow + // for external users to override these as pseudo-supported APIs. + env.VM.checkRevision(templateSpec.compiler); + + // backwards compatibility for precompiled templates with compiler-version 7 (<4.3.0) + var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7; + + function invokePartialWrapper(partial, context, options) { + if (options.hash) { + context = Utils.extend({}, context, options.hash); + if (options.ids) { + options.ids[0] = true; + } + } + partial = env.VM.resolvePartial.call(this, partial, context, options); + + options.hooks = this.hooks; + options.protoAccessControl = this.protoAccessControl; + + var result = env.VM.invokePartial.call(this, partial, context, options); + + if (result == null && env.compile) { + options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env); + result = options.partials[options.name](context, options); + } + if (result != null) { + if (options.indent) { + var lines = result.split('\n'); + for (var i = 0, l = lines.length; i < l; i++) { + if (!lines[i] && i + 1 === l) { + break; + } + + lines[i] = options.indent + lines[i]; + } + result = lines.join('\n'); + } + return result; + } else { + throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode'); + } + } + + // Just add water + var container = { + strict: function strict(obj, name, loc) { + if (!obj || !(name in obj)) { + throw new _exception2['default']('"' + name + '" not defined in ' + obj, { + loc: loc + }); + } + return container.lookupProperty(obj, name); + }, + lookupProperty: function lookupProperty(parent, propertyName) { + var result = parent[propertyName]; + if (result == null) { + return result; + } + if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { + return result; + } + + if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) { + return result; + } + return undefined; + }, + lookup: function lookup(depths, name) { + var len = depths.length; + for (var i = 0; i < len; i++) { + var result = depths[i] && container.lookupProperty(depths[i], name); + if (result != null) { + return result; + } + } + }, + lambda: function lambda(current, context) { + return typeof current === 'function' ? current.call(context) : current; + }, + + escapeExpression: Utils.escapeExpression, + invokePartial: invokePartialWrapper, + + fn: function fn(i) { + var ret = templateSpec[i]; + ret.decorator = templateSpec[i + '_d']; + return ret; + }, + + programs: [], + program: function program(i, data, declaredBlockParams, blockParams, depths) { + var programWrapper = this.programs[i], + fn = this.fn(i); + if (data || depths || blockParams || declaredBlockParams) { + programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths); + } else if (!programWrapper) { + programWrapper = this.programs[i] = wrapProgram(this, i, fn); + } + return programWrapper; + }, + + data: function data(value, depth) { + while (value && depth--) { + value = value._parent; + } + return value; + }, + mergeIfNeeded: function mergeIfNeeded(param, common) { + var obj = param || common; + + if (param && common && param !== common) { + obj = Utils.extend({}, common, param); + } + + return obj; + }, + // An empty object to use as replacement for null-contexts + nullContext: Object.seal({}), + + noop: env.VM.noop, + compilerInfo: templateSpec.compiler + }; + + function ret(context) { + var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; + + var data = options.data; + + ret._setup(options); + if (!options.partial && templateSpec.useData) { + data = initData(context, data); + } + var depths = undefined, + blockParams = templateSpec.useBlockParams ? [] : undefined; + if (templateSpec.useDepths) { + if (options.depths) { + depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths; + } else { + depths = [context]; + } + } + + function main(context /*, options*/) { + return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths); + } + + main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams); + return main(context, options); + } + + ret.isTop = true; + + ret._setup = function (options) { + if (!options.partial) { + var mergedHelpers = {}; + addHelpers(mergedHelpers, env.helpers, container); + addHelpers(mergedHelpers, options.helpers, container); + container.helpers = mergedHelpers; + + if (templateSpec.usePartial) { + // Use mergeIfNeeded here to prevent compiling global partials multiple times + container.partials = container.mergeIfNeeded(options.partials, env.partials); + } + if (templateSpec.usePartial || templateSpec.useDecorators) { + container.decorators = Utils.extend({}, env.decorators, options.decorators); + } + + container.hooks = {}; + container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options); + + var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7; + _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers); + _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers); + } else { + container.protoAccessControl = options.protoAccessControl; // internal option + container.helpers = options.helpers; + container.partials = options.partials; + container.decorators = options.decorators; + container.hooks = options.hooks; + } + }; + + ret._child = function (i, data, blockParams, depths) { + if (templateSpec.useBlockParams && !blockParams) { + throw new _exception2['default']('must pass block params'); + } + if (templateSpec.useDepths && !depths) { + throw new _exception2['default']('must pass parent depths'); + } + + return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths); + }; + return ret; + } + + function wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) { + function prog(context) { + var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; + + var currentDepths = depths; + if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) { + currentDepths = [context].concat(depths); + } + + return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths); + } + + prog = executeDecorators(fn, prog, container, depths, data, blockParams); + + prog.program = i; + prog.depth = depths ? depths.length : 0; + prog.blockParams = declaredBlockParams || 0; + return prog; + } + + /** + * This is currently part of the official API, therefore implementation details should not be changed. + */ + + function resolvePartial(partial, context, options) { + if (!partial) { + if (options.name === '@partial-block') { + partial = lookupOwnProperty(options.data, 'partial-block'); + } else { + partial = lookupOwnProperty(options.partials, options.name); + } + } else if (!partial.call && !options.name) { + // This is a dynamic partial that returned a string + options.name = partial; + partial = lookupOwnProperty(options.partials, partial); + } + return partial; + } + + function invokePartial(partial, context, options) { + // Use the current closure context to save the partial-block if this partial + var currentPartialBlock = lookupOwnProperty(options.data, 'partial-block'); + options.partial = true; + if (options.ids) { + options.data.contextPath = options.ids[0] || options.data.contextPath; + } + + var partialBlock = undefined; + if (options.fn && options.fn !== noop) { + (function () { + options.data = _base.createFrame(options.data); + // Wrapper function to get access to currentPartialBlock from the closure + var fn = options.fn; + partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) { + var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; + + // Restore the partial-block from the closure for the execution of the block + // i.e. the part inside the block of the partial call. + options.data = _base.createFrame(options.data); + options.data['partial-block'] = currentPartialBlock; + return fn(context, options); + }; + if (fn.partials) { + options.partials = Utils.extend({}, options.partials, fn.partials); + } + })(); + } + + if (partial === undefined && partialBlock) { + partial = partialBlock; + } + + if (partial === undefined) { + throw new _exception2['default']('The partial ' + options.name + ' could not be found'); + } else if (partial instanceof Function) { + return partial(context, options); + } + } + + function noop() { + return ''; + } + + function lookupOwnProperty(obj, name) { + if (obj && Object.prototype.hasOwnProperty.call(obj, name)) { + return obj[name]; + } + } + + function initData(context, data) { + if (!data || !('root' in data)) { + data = data ? _base.createFrame(data) : {}; + data.root = context; + } + return data; + } + + function executeDecorators(fn, prog, container, depths, data, blockParams) { + if (fn.decorator) { + var props = {}; + prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths); + Utils.extend(prog, props); + } + return prog; + } + + function addHelpers(mergedHelpers, helpers, container) { + if (!helpers) return; + Object.keys(helpers).forEach(function (helperName) { + var helper = helpers[helperName]; + mergedHelpers[helperName] = passLookupPropertyOption(helper, container); + }); + } + + function passLookupPropertyOption(helper, container) { + var lookupProperty = container.lookupProperty; + return _internalWrapHelper.wrapHelper(helper, function (options) { + options.lookupProperty = lookupProperty; + return options; + }); + } + + return runtime; +} + +var noConflict = {exports: {}}; + +/* global globalThis */ + +var hasRequiredNoConflict; + +function requireNoConflict () { + if (hasRequiredNoConflict) return noConflict.exports; + hasRequiredNoConflict = 1; + (function (module, exports) { + + exports.__esModule = true; + + exports['default'] = function (Handlebars) { + /* istanbul ignore next */ + // https://mathiasbynens.be/notes/globalthis + (function () { + if (typeof globalThis === 'object') return; + Object.prototype.__defineGetter__('__magic__', function () { + return this; + }); + __magic__.globalThis = __magic__; // eslint-disable-line no-undef + delete Object.prototype.__magic__; + })(); + + var $Handlebars = globalThis.Handlebars; + + /* istanbul ignore next */ + Handlebars.noConflict = function () { + if (globalThis.Handlebars === Handlebars) { + globalThis.Handlebars = $Handlebars; + } + return Handlebars; + }; + }; + + module.exports = exports['default']; + + } (noConflict, noConflict.exports)); + return noConflict.exports; +} + +var hasRequiredHandlebars_runtime; + +function requireHandlebars_runtime () { + if (hasRequiredHandlebars_runtime) return handlebars_runtime.exports; + hasRequiredHandlebars_runtime = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + // istanbul ignore next + + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + + var _handlebarsBase = requireBase$1(); + + var base = _interopRequireWildcard(_handlebarsBase); + + // Each of these augment the Handlebars object. No need to setup here. + // (This is done to easily share code between commonjs and browse envs) + + var _handlebarsSafeString = requireSafeString(); + + var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString); + + var _handlebarsException = requireException(); + + var _handlebarsException2 = _interopRequireDefault(_handlebarsException); + + var _handlebarsUtils = requireUtils(); + + var Utils = _interopRequireWildcard(_handlebarsUtils); + + var _handlebarsRuntime = requireRuntime(); + + var runtime = _interopRequireWildcard(_handlebarsRuntime); + + var _handlebarsNoConflict = requireNoConflict(); + + var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict); + + // For compatibility and usage outside of module systems, make the Handlebars object a namespace + function create() { + var hb = new base.HandlebarsEnvironment(); + + Utils.extend(hb, base); + hb.SafeString = _handlebarsSafeString2['default']; + hb.Exception = _handlebarsException2['default']; + hb.Utils = Utils; + hb.escapeExpression = Utils.escapeExpression; + + hb.VM = runtime; + hb.template = function (spec) { + return runtime.template(spec, hb); + }; + + return hb; + } + + var inst = create(); + inst.create = create; + + _handlebarsNoConflict2['default'](inst); + + inst['default'] = inst; + + exports['default'] = inst; + module.exports = exports['default']; + + } (handlebars_runtime, handlebars_runtime.exports)); + return handlebars_runtime.exports; +} + +var ast = {exports: {}}; + +var hasRequiredAst; + +function requireAst () { + if (hasRequiredAst) return ast.exports; + hasRequiredAst = 1; + (function (module, exports) { + + exports.__esModule = true; + var AST = { + // Public API used to evaluate derived attributes regarding AST nodes + helpers: { + // a mustache is definitely a helper if: + // * it is an eligible helper, and + // * it has at least one parameter or hash segment + helperExpression: function helperExpression(node) { + return node.type === 'SubExpression' || (node.type === 'MustacheStatement' || node.type === 'BlockStatement') && !!(node.params && node.params.length || node.hash); + }, + + scopedId: function scopedId(path) { + return (/^\.|this\b/.test(path.original) + ); + }, + + // an ID is simple if it only has one part, and that part is not + // `..` or `this`. + simpleId: function simpleId(path) { + return path.parts.length === 1 && !AST.helpers.scopedId(path) && !path.depth; + } + } + }; + + // Must be exported as an object rather than the root of the module as the jison lexer + // must modify the object to operate properly. + exports['default'] = AST; + module.exports = exports['default']; + + } (ast, ast.exports)); + return ast.exports; +} + +var base = {}; + +var parser = {exports: {}}; + +var hasRequiredParser; + +function requireParser () { + if (hasRequiredParser) return parser.exports; + hasRequiredParser = 1; + (function (module, exports) { + + exports.__esModule = true; + var handlebars = (function () { + var parser = { trace: function trace() {}, + yy: {}, + symbols_: { "error": 2, "root": 3, "program": 4, "EOF": 5, "program_repetition0": 6, "statement": 7, "mustache": 8, "block": 9, "rawBlock": 10, "partial": 11, "partialBlock": 12, "content": 13, "COMMENT": 14, "CONTENT": 15, "openRawBlock": 16, "rawBlock_repetition0": 17, "END_RAW_BLOCK": 18, "OPEN_RAW_BLOCK": 19, "helperName": 20, "openRawBlock_repetition0": 21, "openRawBlock_option0": 22, "CLOSE_RAW_BLOCK": 23, "openBlock": 24, "block_option0": 25, "closeBlock": 26, "openInverse": 27, "block_option1": 28, "OPEN_BLOCK": 29, "openBlock_repetition0": 30, "openBlock_option0": 31, "openBlock_option1": 32, "CLOSE": 33, "OPEN_INVERSE": 34, "openInverse_repetition0": 35, "openInverse_option0": 36, "openInverse_option1": 37, "openInverseChain": 38, "OPEN_INVERSE_CHAIN": 39, "openInverseChain_repetition0": 40, "openInverseChain_option0": 41, "openInverseChain_option1": 42, "inverseAndProgram": 43, "INVERSE": 44, "inverseChain": 45, "inverseChain_option0": 46, "OPEN_ENDBLOCK": 47, "OPEN": 48, "mustache_repetition0": 49, "mustache_option0": 50, "OPEN_UNESCAPED": 51, "mustache_repetition1": 52, "mustache_option1": 53, "CLOSE_UNESCAPED": 54, "OPEN_PARTIAL": 55, "partialName": 56, "partial_repetition0": 57, "partial_option0": 58, "openPartialBlock": 59, "OPEN_PARTIAL_BLOCK": 60, "openPartialBlock_repetition0": 61, "openPartialBlock_option0": 62, "param": 63, "sexpr": 64, "OPEN_SEXPR": 65, "sexpr_repetition0": 66, "sexpr_option0": 67, "CLOSE_SEXPR": 68, "hash": 69, "hash_repetition_plus0": 70, "hashSegment": 71, "ID": 72, "EQUALS": 73, "blockParams": 74, "OPEN_BLOCK_PARAMS": 75, "blockParams_repetition_plus0": 76, "CLOSE_BLOCK_PARAMS": 77, "path": 78, "dataName": 79, "STRING": 80, "NUMBER": 81, "BOOLEAN": 82, "UNDEFINED": 83, "NULL": 84, "DATA": 85, "pathSegments": 86, "SEP": 87, "$accept": 0, "$end": 1 }, + terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" }, + productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]], + performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) { + + var $0 = $$.length - 1; + switch (yystate) { + case 1: + return $$[$0 - 1]; + case 2: + this.$ = yy.prepareProgram($$[$0]); + break; + case 3: + this.$ = $$[$0]; + break; + case 4: + this.$ = $$[$0]; + break; + case 5: + this.$ = $$[$0]; + break; + case 6: + this.$ = $$[$0]; + break; + case 7: + this.$ = $$[$0]; + break; + case 8: + this.$ = $$[$0]; + break; + case 9: + this.$ = { + type: 'CommentStatement', + value: yy.stripComment($$[$0]), + strip: yy.stripFlags($$[$0], $$[$0]), + loc: yy.locInfo(this._$) + }; + + break; + case 10: + this.$ = { + type: 'ContentStatement', + original: $$[$0], + value: $$[$0], + loc: yy.locInfo(this._$) + }; + + break; + case 11: + this.$ = yy.prepareRawBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$); + break; + case 12: + this.$ = { path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1] }; + break; + case 13: + this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], false, this._$); + break; + case 14: + this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], true, this._$); + break; + case 15: + this.$ = { open: $$[$0 - 5], path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0]) }; + break; + case 16: + this.$ = { path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0]) }; + break; + case 17: + this.$ = { path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0]) }; + break; + case 18: + this.$ = { strip: yy.stripFlags($$[$0 - 1], $$[$0 - 1]), program: $$[$0] }; + break; + case 19: + var inverse = yy.prepareBlock($$[$0 - 2], $$[$0 - 1], $$[$0], $$[$0], false, this._$), + program = yy.prepareProgram([inverse], $$[$0 - 1].loc); + program.chained = true; + + this.$ = { strip: $$[$0 - 2].strip, program: program, chain: true }; + + break; + case 20: + this.$ = $$[$0]; + break; + case 21: + this.$ = { path: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 2], $$[$0]) }; + break; + case 22: + this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$); + break; + case 23: + this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$); + break; + case 24: + this.$ = { + type: 'PartialStatement', + name: $$[$0 - 3], + params: $$[$0 - 2], + hash: $$[$0 - 1], + indent: '', + strip: yy.stripFlags($$[$0 - 4], $$[$0]), + loc: yy.locInfo(this._$) + }; + + break; + case 25: + this.$ = yy.preparePartialBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$); + break; + case 26: + this.$ = { path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 4], $$[$0]) }; + break; + case 27: + this.$ = $$[$0]; + break; + case 28: + this.$ = $$[$0]; + break; + case 29: + this.$ = { + type: 'SubExpression', + path: $$[$0 - 3], + params: $$[$0 - 2], + hash: $$[$0 - 1], + loc: yy.locInfo(this._$) + }; + + break; + case 30: + this.$ = { type: 'Hash', pairs: $$[$0], loc: yy.locInfo(this._$) }; + break; + case 31: + this.$ = { type: 'HashPair', key: yy.id($$[$0 - 2]), value: $$[$0], loc: yy.locInfo(this._$) }; + break; + case 32: + this.$ = yy.id($$[$0 - 1]); + break; + case 33: + this.$ = $$[$0]; + break; + case 34: + this.$ = $$[$0]; + break; + case 35: + this.$ = { type: 'StringLiteral', value: $$[$0], original: $$[$0], loc: yy.locInfo(this._$) }; + break; + case 36: + this.$ = { type: 'NumberLiteral', value: Number($$[$0]), original: Number($$[$0]), loc: yy.locInfo(this._$) }; + break; + case 37: + this.$ = { type: 'BooleanLiteral', value: $$[$0] === 'true', original: $$[$0] === 'true', loc: yy.locInfo(this._$) }; + break; + case 38: + this.$ = { type: 'UndefinedLiteral', original: undefined, value: undefined, loc: yy.locInfo(this._$) }; + break; + case 39: + this.$ = { type: 'NullLiteral', original: null, value: null, loc: yy.locInfo(this._$) }; + break; + case 40: + this.$ = $$[$0]; + break; + case 41: + this.$ = $$[$0]; + break; + case 42: + this.$ = yy.preparePath(true, $$[$0], this._$); + break; + case 43: + this.$ = yy.preparePath(false, $$[$0], this._$); + break; + case 44: + $$[$0 - 2].push({ part: yy.id($$[$0]), original: $$[$0], separator: $$[$0 - 1] });this.$ = $$[$0 - 2]; + break; + case 45: + this.$ = [{ part: yy.id($$[$0]), original: $$[$0] }]; + break; + case 46: + this.$ = []; + break; + case 47: + $$[$0 - 1].push($$[$0]); + break; + case 48: + this.$ = []; + break; + case 49: + $$[$0 - 1].push($$[$0]); + break; + case 50: + this.$ = []; + break; + case 51: + $$[$0 - 1].push($$[$0]); + break; + case 58: + this.$ = []; + break; + case 59: + $$[$0 - 1].push($$[$0]); + break; + case 64: + this.$ = []; + break; + case 65: + $$[$0 - 1].push($$[$0]); + break; + case 70: + this.$ = []; + break; + case 71: + $$[$0 - 1].push($$[$0]); + break; + case 78: + this.$ = []; + break; + case 79: + $$[$0 - 1].push($$[$0]); + break; + case 82: + this.$ = []; + break; + case 83: + $$[$0 - 1].push($$[$0]); + break; + case 86: + this.$ = []; + break; + case 87: + $$[$0 - 1].push($$[$0]); + break; + case 90: + this.$ = []; + break; + case 91: + $$[$0 - 1].push($$[$0]); + break; + case 94: + this.$ = []; + break; + case 95: + $$[$0 - 1].push($$[$0]); + break; + case 98: + this.$ = [$$[$0]]; + break; + case 99: + $$[$0 - 1].push($$[$0]); + break; + case 100: + this.$ = [$$[$0]]; + break; + case 101: + $$[$0 - 1].push($$[$0]); + break; + } + }, + table: [{ 3: 1, 4: 2, 5: [2, 46], 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 1: [3] }, { 5: [1, 4] }, { 5: [2, 2], 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 14: [1, 12], 15: [1, 20], 16: 17, 19: [1, 23], 24: 15, 27: 16, 29: [1, 21], 34: [1, 22], 39: [2, 2], 44: [2, 2], 47: [2, 2], 48: [1, 13], 51: [1, 14], 55: [1, 18], 59: 19, 60: [1, 24] }, { 1: [2, 1] }, { 5: [2, 47], 14: [2, 47], 15: [2, 47], 19: [2, 47], 29: [2, 47], 34: [2, 47], 39: [2, 47], 44: [2, 47], 47: [2, 47], 48: [2, 47], 51: [2, 47], 55: [2, 47], 60: [2, 47] }, { 5: [2, 3], 14: [2, 3], 15: [2, 3], 19: [2, 3], 29: [2, 3], 34: [2, 3], 39: [2, 3], 44: [2, 3], 47: [2, 3], 48: [2, 3], 51: [2, 3], 55: [2, 3], 60: [2, 3] }, { 5: [2, 4], 14: [2, 4], 15: [2, 4], 19: [2, 4], 29: [2, 4], 34: [2, 4], 39: [2, 4], 44: [2, 4], 47: [2, 4], 48: [2, 4], 51: [2, 4], 55: [2, 4], 60: [2, 4] }, { 5: [2, 5], 14: [2, 5], 15: [2, 5], 19: [2, 5], 29: [2, 5], 34: [2, 5], 39: [2, 5], 44: [2, 5], 47: [2, 5], 48: [2, 5], 51: [2, 5], 55: [2, 5], 60: [2, 5] }, { 5: [2, 6], 14: [2, 6], 15: [2, 6], 19: [2, 6], 29: [2, 6], 34: [2, 6], 39: [2, 6], 44: [2, 6], 47: [2, 6], 48: [2, 6], 51: [2, 6], 55: [2, 6], 60: [2, 6] }, { 5: [2, 7], 14: [2, 7], 15: [2, 7], 19: [2, 7], 29: [2, 7], 34: [2, 7], 39: [2, 7], 44: [2, 7], 47: [2, 7], 48: [2, 7], 51: [2, 7], 55: [2, 7], 60: [2, 7] }, { 5: [2, 8], 14: [2, 8], 15: [2, 8], 19: [2, 8], 29: [2, 8], 34: [2, 8], 39: [2, 8], 44: [2, 8], 47: [2, 8], 48: [2, 8], 51: [2, 8], 55: [2, 8], 60: [2, 8] }, { 5: [2, 9], 14: [2, 9], 15: [2, 9], 19: [2, 9], 29: [2, 9], 34: [2, 9], 39: [2, 9], 44: [2, 9], 47: [2, 9], 48: [2, 9], 51: [2, 9], 55: [2, 9], 60: [2, 9] }, { 20: 25, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 36, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 37, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 4: 38, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 15: [2, 48], 17: 39, 18: [2, 48] }, { 20: 41, 56: 40, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 44, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 5: [2, 10], 14: [2, 10], 15: [2, 10], 18: [2, 10], 19: [2, 10], 29: [2, 10], 34: [2, 10], 39: [2, 10], 44: [2, 10], 47: [2, 10], 48: [2, 10], 51: [2, 10], 55: [2, 10], 60: [2, 10] }, { 20: 45, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 46, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 47, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 41, 56: 48, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [2, 78], 49: 49, 65: [2, 78], 72: [2, 78], 80: [2, 78], 81: [2, 78], 82: [2, 78], 83: [2, 78], 84: [2, 78], 85: [2, 78] }, { 23: [2, 33], 33: [2, 33], 54: [2, 33], 65: [2, 33], 68: [2, 33], 72: [2, 33], 75: [2, 33], 80: [2, 33], 81: [2, 33], 82: [2, 33], 83: [2, 33], 84: [2, 33], 85: [2, 33] }, { 23: [2, 34], 33: [2, 34], 54: [2, 34], 65: [2, 34], 68: [2, 34], 72: [2, 34], 75: [2, 34], 80: [2, 34], 81: [2, 34], 82: [2, 34], 83: [2, 34], 84: [2, 34], 85: [2, 34] }, { 23: [2, 35], 33: [2, 35], 54: [2, 35], 65: [2, 35], 68: [2, 35], 72: [2, 35], 75: [2, 35], 80: [2, 35], 81: [2, 35], 82: [2, 35], 83: [2, 35], 84: [2, 35], 85: [2, 35] }, { 23: [2, 36], 33: [2, 36], 54: [2, 36], 65: [2, 36], 68: [2, 36], 72: [2, 36], 75: [2, 36], 80: [2, 36], 81: [2, 36], 82: [2, 36], 83: [2, 36], 84: [2, 36], 85: [2, 36] }, { 23: [2, 37], 33: [2, 37], 54: [2, 37], 65: [2, 37], 68: [2, 37], 72: [2, 37], 75: [2, 37], 80: [2, 37], 81: [2, 37], 82: [2, 37], 83: [2, 37], 84: [2, 37], 85: [2, 37] }, { 23: [2, 38], 33: [2, 38], 54: [2, 38], 65: [2, 38], 68: [2, 38], 72: [2, 38], 75: [2, 38], 80: [2, 38], 81: [2, 38], 82: [2, 38], 83: [2, 38], 84: [2, 38], 85: [2, 38] }, { 23: [2, 39], 33: [2, 39], 54: [2, 39], 65: [2, 39], 68: [2, 39], 72: [2, 39], 75: [2, 39], 80: [2, 39], 81: [2, 39], 82: [2, 39], 83: [2, 39], 84: [2, 39], 85: [2, 39] }, { 23: [2, 43], 33: [2, 43], 54: [2, 43], 65: [2, 43], 68: [2, 43], 72: [2, 43], 75: [2, 43], 80: [2, 43], 81: [2, 43], 82: [2, 43], 83: [2, 43], 84: [2, 43], 85: [2, 43], 87: [1, 50] }, { 72: [1, 35], 86: 51 }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 52: 52, 54: [2, 82], 65: [2, 82], 72: [2, 82], 80: [2, 82], 81: [2, 82], 82: [2, 82], 83: [2, 82], 84: [2, 82], 85: [2, 82] }, { 25: 53, 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 54, 47: [2, 54] }, { 28: 59, 43: 60, 44: [1, 58], 47: [2, 56] }, { 13: 62, 15: [1, 20], 18: [1, 61] }, { 33: [2, 86], 57: 63, 65: [2, 86], 72: [2, 86], 80: [2, 86], 81: [2, 86], 82: [2, 86], 83: [2, 86], 84: [2, 86], 85: [2, 86] }, { 33: [2, 40], 65: [2, 40], 72: [2, 40], 80: [2, 40], 81: [2, 40], 82: [2, 40], 83: [2, 40], 84: [2, 40], 85: [2, 40] }, { 33: [2, 41], 65: [2, 41], 72: [2, 41], 80: [2, 41], 81: [2, 41], 82: [2, 41], 83: [2, 41], 84: [2, 41], 85: [2, 41] }, { 20: 64, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 65, 47: [1, 66] }, { 30: 67, 33: [2, 58], 65: [2, 58], 72: [2, 58], 75: [2, 58], 80: [2, 58], 81: [2, 58], 82: [2, 58], 83: [2, 58], 84: [2, 58], 85: [2, 58] }, { 33: [2, 64], 35: 68, 65: [2, 64], 72: [2, 64], 75: [2, 64], 80: [2, 64], 81: [2, 64], 82: [2, 64], 83: [2, 64], 84: [2, 64], 85: [2, 64] }, { 21: 69, 23: [2, 50], 65: [2, 50], 72: [2, 50], 80: [2, 50], 81: [2, 50], 82: [2, 50], 83: [2, 50], 84: [2, 50], 85: [2, 50] }, { 33: [2, 90], 61: 70, 65: [2, 90], 72: [2, 90], 80: [2, 90], 81: [2, 90], 82: [2, 90], 83: [2, 90], 84: [2, 90], 85: [2, 90] }, { 20: 74, 33: [2, 80], 50: 71, 63: 72, 64: 75, 65: [1, 43], 69: 73, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 72: [1, 79] }, { 23: [2, 42], 33: [2, 42], 54: [2, 42], 65: [2, 42], 68: [2, 42], 72: [2, 42], 75: [2, 42], 80: [2, 42], 81: [2, 42], 82: [2, 42], 83: [2, 42], 84: [2, 42], 85: [2, 42], 87: [1, 50] }, { 20: 74, 53: 80, 54: [2, 84], 63: 81, 64: 75, 65: [1, 43], 69: 82, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 83, 47: [1, 66] }, { 47: [2, 55] }, { 4: 84, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 47: [2, 20] }, { 20: 85, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 86, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 26: 87, 47: [1, 66] }, { 47: [2, 57] }, { 5: [2, 11], 14: [2, 11], 15: [2, 11], 19: [2, 11], 29: [2, 11], 34: [2, 11], 39: [2, 11], 44: [2, 11], 47: [2, 11], 48: [2, 11], 51: [2, 11], 55: [2, 11], 60: [2, 11] }, { 15: [2, 49], 18: [2, 49] }, { 20: 74, 33: [2, 88], 58: 88, 63: 89, 64: 75, 65: [1, 43], 69: 90, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 65: [2, 94], 66: 91, 68: [2, 94], 72: [2, 94], 80: [2, 94], 81: [2, 94], 82: [2, 94], 83: [2, 94], 84: [2, 94], 85: [2, 94] }, { 5: [2, 25], 14: [2, 25], 15: [2, 25], 19: [2, 25], 29: [2, 25], 34: [2, 25], 39: [2, 25], 44: [2, 25], 47: [2, 25], 48: [2, 25], 51: [2, 25], 55: [2, 25], 60: [2, 25] }, { 20: 92, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 31: 93, 33: [2, 60], 63: 94, 64: 75, 65: [1, 43], 69: 95, 70: 76, 71: 77, 72: [1, 78], 75: [2, 60], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 33: [2, 66], 36: 96, 63: 97, 64: 75, 65: [1, 43], 69: 98, 70: 76, 71: 77, 72: [1, 78], 75: [2, 66], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 22: 99, 23: [2, 52], 63: 100, 64: 75, 65: [1, 43], 69: 101, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 33: [2, 92], 62: 102, 63: 103, 64: 75, 65: [1, 43], 69: 104, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 105] }, { 33: [2, 79], 65: [2, 79], 72: [2, 79], 80: [2, 79], 81: [2, 79], 82: [2, 79], 83: [2, 79], 84: [2, 79], 85: [2, 79] }, { 33: [2, 81] }, { 23: [2, 27], 33: [2, 27], 54: [2, 27], 65: [2, 27], 68: [2, 27], 72: [2, 27], 75: [2, 27], 80: [2, 27], 81: [2, 27], 82: [2, 27], 83: [2, 27], 84: [2, 27], 85: [2, 27] }, { 23: [2, 28], 33: [2, 28], 54: [2, 28], 65: [2, 28], 68: [2, 28], 72: [2, 28], 75: [2, 28], 80: [2, 28], 81: [2, 28], 82: [2, 28], 83: [2, 28], 84: [2, 28], 85: [2, 28] }, { 23: [2, 30], 33: [2, 30], 54: [2, 30], 68: [2, 30], 71: 106, 72: [1, 107], 75: [2, 30] }, { 23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98] }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 73: [1, 108], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 23: [2, 44], 33: [2, 44], 54: [2, 44], 65: [2, 44], 68: [2, 44], 72: [2, 44], 75: [2, 44], 80: [2, 44], 81: [2, 44], 82: [2, 44], 83: [2, 44], 84: [2, 44], 85: [2, 44], 87: [2, 44] }, { 54: [1, 109] }, { 54: [2, 83], 65: [2, 83], 72: [2, 83], 80: [2, 83], 81: [2, 83], 82: [2, 83], 83: [2, 83], 84: [2, 83], 85: [2, 83] }, { 54: [2, 85] }, { 5: [2, 13], 14: [2, 13], 15: [2, 13], 19: [2, 13], 29: [2, 13], 34: [2, 13], 39: [2, 13], 44: [2, 13], 47: [2, 13], 48: [2, 13], 51: [2, 13], 55: [2, 13], 60: [2, 13] }, { 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 111, 46: 110, 47: [2, 76] }, { 33: [2, 70], 40: 112, 65: [2, 70], 72: [2, 70], 75: [2, 70], 80: [2, 70], 81: [2, 70], 82: [2, 70], 83: [2, 70], 84: [2, 70], 85: [2, 70] }, { 47: [2, 18] }, { 5: [2, 14], 14: [2, 14], 15: [2, 14], 19: [2, 14], 29: [2, 14], 34: [2, 14], 39: [2, 14], 44: [2, 14], 47: [2, 14], 48: [2, 14], 51: [2, 14], 55: [2, 14], 60: [2, 14] }, { 33: [1, 113] }, { 33: [2, 87], 65: [2, 87], 72: [2, 87], 80: [2, 87], 81: [2, 87], 82: [2, 87], 83: [2, 87], 84: [2, 87], 85: [2, 87] }, { 33: [2, 89] }, { 20: 74, 63: 115, 64: 75, 65: [1, 43], 67: 114, 68: [2, 96], 69: 116, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 117] }, { 32: 118, 33: [2, 62], 74: 119, 75: [1, 120] }, { 33: [2, 59], 65: [2, 59], 72: [2, 59], 75: [2, 59], 80: [2, 59], 81: [2, 59], 82: [2, 59], 83: [2, 59], 84: [2, 59], 85: [2, 59] }, { 33: [2, 61], 75: [2, 61] }, { 33: [2, 68], 37: 121, 74: 122, 75: [1, 120] }, { 33: [2, 65], 65: [2, 65], 72: [2, 65], 75: [2, 65], 80: [2, 65], 81: [2, 65], 82: [2, 65], 83: [2, 65], 84: [2, 65], 85: [2, 65] }, { 33: [2, 67], 75: [2, 67] }, { 23: [1, 123] }, { 23: [2, 51], 65: [2, 51], 72: [2, 51], 80: [2, 51], 81: [2, 51], 82: [2, 51], 83: [2, 51], 84: [2, 51], 85: [2, 51] }, { 23: [2, 53] }, { 33: [1, 124] }, { 33: [2, 91], 65: [2, 91], 72: [2, 91], 80: [2, 91], 81: [2, 91], 82: [2, 91], 83: [2, 91], 84: [2, 91], 85: [2, 91] }, { 33: [2, 93] }, { 5: [2, 22], 14: [2, 22], 15: [2, 22], 19: [2, 22], 29: [2, 22], 34: [2, 22], 39: [2, 22], 44: [2, 22], 47: [2, 22], 48: [2, 22], 51: [2, 22], 55: [2, 22], 60: [2, 22] }, { 23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99] }, { 73: [1, 108] }, { 20: 74, 63: 125, 64: 75, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 23], 14: [2, 23], 15: [2, 23], 19: [2, 23], 29: [2, 23], 34: [2, 23], 39: [2, 23], 44: [2, 23], 47: [2, 23], 48: [2, 23], 51: [2, 23], 55: [2, 23], 60: [2, 23] }, { 47: [2, 19] }, { 47: [2, 77] }, { 20: 74, 33: [2, 72], 41: 126, 63: 127, 64: 75, 65: [1, 43], 69: 128, 70: 76, 71: 77, 72: [1, 78], 75: [2, 72], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 24], 14: [2, 24], 15: [2, 24], 19: [2, 24], 29: [2, 24], 34: [2, 24], 39: [2, 24], 44: [2, 24], 47: [2, 24], 48: [2, 24], 51: [2, 24], 55: [2, 24], 60: [2, 24] }, { 68: [1, 129] }, { 65: [2, 95], 68: [2, 95], 72: [2, 95], 80: [2, 95], 81: [2, 95], 82: [2, 95], 83: [2, 95], 84: [2, 95], 85: [2, 95] }, { 68: [2, 97] }, { 5: [2, 21], 14: [2, 21], 15: [2, 21], 19: [2, 21], 29: [2, 21], 34: [2, 21], 39: [2, 21], 44: [2, 21], 47: [2, 21], 48: [2, 21], 51: [2, 21], 55: [2, 21], 60: [2, 21] }, { 33: [1, 130] }, { 33: [2, 63] }, { 72: [1, 132], 76: 131 }, { 33: [1, 133] }, { 33: [2, 69] }, { 15: [2, 12], 18: [2, 12] }, { 14: [2, 26], 15: [2, 26], 19: [2, 26], 29: [2, 26], 34: [2, 26], 47: [2, 26], 48: [2, 26], 51: [2, 26], 55: [2, 26], 60: [2, 26] }, { 23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31] }, { 33: [2, 74], 42: 134, 74: 135, 75: [1, 120] }, { 33: [2, 71], 65: [2, 71], 72: [2, 71], 75: [2, 71], 80: [2, 71], 81: [2, 71], 82: [2, 71], 83: [2, 71], 84: [2, 71], 85: [2, 71] }, { 33: [2, 73], 75: [2, 73] }, { 23: [2, 29], 33: [2, 29], 54: [2, 29], 65: [2, 29], 68: [2, 29], 72: [2, 29], 75: [2, 29], 80: [2, 29], 81: [2, 29], 82: [2, 29], 83: [2, 29], 84: [2, 29], 85: [2, 29] }, { 14: [2, 15], 15: [2, 15], 19: [2, 15], 29: [2, 15], 34: [2, 15], 39: [2, 15], 44: [2, 15], 47: [2, 15], 48: [2, 15], 51: [2, 15], 55: [2, 15], 60: [2, 15] }, { 72: [1, 137], 77: [1, 136] }, { 72: [2, 100], 77: [2, 100] }, { 14: [2, 16], 15: [2, 16], 19: [2, 16], 29: [2, 16], 34: [2, 16], 44: [2, 16], 47: [2, 16], 48: [2, 16], 51: [2, 16], 55: [2, 16], 60: [2, 16] }, { 33: [1, 138] }, { 33: [2, 75] }, { 33: [2, 32] }, { 72: [2, 101], 77: [2, 101] }, { 14: [2, 17], 15: [2, 17], 19: [2, 17], 29: [2, 17], 34: [2, 17], 39: [2, 17], 44: [2, 17], 47: [2, 17], 48: [2, 17], 51: [2, 17], 55: [2, 17], 60: [2, 17] }], + defaultActions: { 4: [2, 1], 54: [2, 55], 56: [2, 20], 60: [2, 57], 73: [2, 81], 82: [2, 85], 86: [2, 18], 90: [2, 89], 101: [2, 53], 104: [2, 93], 110: [2, 19], 111: [2, 77], 116: [2, 97], 119: [2, 63], 122: [2, 69], 135: [2, 75], 136: [2, 32] }, + parseError: function parseError(str, hash) { + throw new Error(str); + }, + parse: function parse(input) { + var self = this, + stack = [0], + vstack = [null], + lstack = [], + table = this.table, + yytext = "", + yylineno = 0, + yyleng = 0; + this.lexer.setInput(input); + this.lexer.yy = this.yy; + this.yy.lexer = this.lexer; + this.yy.parser = this; + if (typeof this.lexer.yylloc == "undefined") this.lexer.yylloc = {}; + var yyloc = this.lexer.yylloc; + lstack.push(yyloc); + var ranges = this.lexer.options && this.lexer.options.ranges; + if (typeof this.yy.parseError === "function") this.parseError = this.yy.parseError; + function lex() { + var token; + token = self.lexer.lex() || 1; + if (typeof token !== "number") { + token = self.symbols_[token] || token; + } + return token; + } + var symbol, + state, + action, + r, + yyval = {}, + p, + len, + newState, + expected; + while (true) { + state = stack[stack.length - 1]; + if (this.defaultActions[state]) { + action = this.defaultActions[state]; + } else { + if (symbol === null || typeof symbol == "undefined") { + symbol = lex(); + } + action = table[state] && table[state][symbol]; + } + if (typeof action === "undefined" || !action.length || !action[0]) { + var errStr = ""; + { + expected = []; + for (p in table[state]) if (this.terminals_[p] && p > 2) { + expected.push("'" + this.terminals_[p] + "'"); + } + if (this.lexer.showPosition) { + errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'"; + } else { + errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'"); + } + this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected }); + } + } + if (action[0] instanceof Array && action.length > 1) { + throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol); + } + switch (action[0]) { + case 1: + stack.push(symbol); + vstack.push(this.lexer.yytext); + lstack.push(this.lexer.yylloc); + stack.push(action[1]); + symbol = null; + { + yyleng = this.lexer.yyleng; + yytext = this.lexer.yytext; + yylineno = this.lexer.yylineno; + yyloc = this.lexer.yylloc; + } + break; + case 2: + len = this.productions_[action[1]][1]; + yyval.$ = vstack[vstack.length - len]; + yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column }; + if (ranges) { + yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]]; + } + r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); + if (typeof r !== "undefined") { + return r; + } + if (len) { + stack = stack.slice(0, -1 * len * 2); + vstack = vstack.slice(0, -1 * len); + lstack = lstack.slice(0, -1 * len); + } + stack.push(this.productions_[action[1]][0]); + vstack.push(yyval.$); + lstack.push(yyval._$); + newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; + stack.push(newState); + break; + case 3: + return true; + } + } + return true; + } + }; + /* Jison generated lexer */ + var lexer = (function () { + var lexer = { EOF: 1, + parseError: function parseError(str, hash) { + if (this.yy.parser) { + this.yy.parser.parseError(str, hash); + } else { + throw new Error(str); + } + }, + setInput: function setInput(input) { + this._input = input; + this._more = this._less = this.done = false; + this.yylineno = this.yyleng = 0; + this.yytext = this.matched = this.match = ''; + this.conditionStack = ['INITIAL']; + this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }; + if (this.options.ranges) this.yylloc.range = [0, 0]; + this.offset = 0; + return this; + }, + input: function input() { + var ch = this._input[0]; + this.yytext += ch; + this.yyleng++; + this.offset++; + this.match += ch; + this.matched += ch; + var lines = ch.match(/(?:\r\n?|\n).*/g); + if (lines) { + this.yylineno++; + this.yylloc.last_line++; + } else { + this.yylloc.last_column++; + } + if (this.options.ranges) this.yylloc.range[1]++; + + this._input = this._input.slice(1); + return ch; + }, + unput: function unput(ch) { + var len = ch.length; + var lines = ch.split(/(?:\r\n?|\n)/g); + + this._input = ch + this._input; + this.yytext = this.yytext.substr(0, this.yytext.length - len - 1); + //this.yyleng -= len; + this.offset -= len; + var oldLines = this.match.split(/(?:\r\n?|\n)/g); + this.match = this.match.substr(0, this.match.length - 1); + this.matched = this.matched.substr(0, this.matched.length - 1); + + if (lines.length - 1) this.yylineno -= lines.length - 1; + var r = this.yylloc.range; + + this.yylloc = { first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len + }; + + if (this.options.ranges) { + this.yylloc.range = [r[0], r[0] + this.yyleng - len]; + } + return this; + }, + more: function more() { + this._more = true; + return this; + }, + less: function less(n) { + this.unput(this.match.slice(n)); + }, + pastInput: function pastInput() { + var past = this.matched.substr(0, this.matched.length - this.match.length); + return (past.length > 20 ? '...' : '') + past.substr(-20).replace(/\n/g, ""); + }, + upcomingInput: function upcomingInput() { + var next = this.match; + if (next.length < 20) { + next += this._input.substr(0, 20 - next.length); + } + return (next.substr(0, 20) + (next.length > 20 ? '...' : '')).replace(/\n/g, ""); + }, + showPosition: function showPosition() { + var pre = this.pastInput(); + var c = new Array(pre.length + 1).join("-"); + return pre + this.upcomingInput() + "\n" + c + "^"; + }, + next: function next() { + if (this.done) { + return this.EOF; + } + if (!this._input) this.done = true; + + var token, match, tempMatch, index, lines; + if (!this._more) { + this.yytext = ''; + this.match = ''; + } + var rules = this._currentRules(); + for (var i = 0; i < rules.length; i++) { + tempMatch = this._input.match(this.rules[rules[i]]); + if (tempMatch && (!match || tempMatch[0].length > match[0].length)) { + match = tempMatch; + index = i; + if (!this.options.flex) break; + } + } + if (match) { + lines = match[0].match(/(?:\r\n?|\n).*/g); + if (lines) this.yylineno += lines.length; + this.yylloc = { first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length }; + this.yytext += match[0]; + this.match += match[0]; + this.matches = match; + this.yyleng = this.yytext.length; + if (this.options.ranges) { + this.yylloc.range = [this.offset, this.offset += this.yyleng]; + } + this._more = false; + this._input = this._input.slice(match[0].length); + this.matched += match[0]; + token = this.performAction.call(this, this.yy, this, rules[index], this.conditionStack[this.conditionStack.length - 1]); + if (this.done && this._input) this.done = false; + if (token) return token;else return; + } + if (this._input === "") { + return this.EOF; + } else { + return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), { text: "", token: null, line: this.yylineno }); + } + }, + lex: function lex() { + var r = this.next(); + if (typeof r !== 'undefined') { + return r; + } else { + return this.lex(); + } + }, + begin: function begin(condition) { + this.conditionStack.push(condition); + }, + popState: function popState() { + return this.conditionStack.pop(); + }, + _currentRules: function _currentRules() { + return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules; + }, + topState: function topState() { + return this.conditionStack[this.conditionStack.length - 2]; + }, + pushState: function begin(condition) { + this.begin(condition); + } }; + lexer.options = {}; + lexer.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) { + + function strip(start, end) { + return yy_.yytext = yy_.yytext.substring(start, yy_.yyleng - end + start); + } + switch ($avoiding_name_collisions) { + case 0: + if (yy_.yytext.slice(-2) === "\\\\") { + strip(0, 1); + this.begin("mu"); + } else if (yy_.yytext.slice(-1) === "\\") { + strip(0, 1); + this.begin("emu"); + } else { + this.begin("mu"); + } + if (yy_.yytext) return 15; + + break; + case 1: + return 15; + case 2: + this.popState(); + return 15; + case 3: + this.begin('raw');return 15; + case 4: + this.popState(); + // Should be using `this.topState()` below, but it currently + // returns the second top instead of the first top. Opened an + // issue about it at https://github.com/zaach/jison/issues/291 + if (this.conditionStack[this.conditionStack.length - 1] === 'raw') { + return 15; + } else { + strip(5, 9); + return 'END_RAW_BLOCK'; + } + case 5: + return 15; + case 6: + this.popState(); + return 14; + case 7: + return 65; + case 8: + return 68; + case 9: + return 19; + case 10: + this.popState(); + this.begin('raw'); + return 23; + case 11: + return 55; + case 12: + return 60; + case 13: + return 29; + case 14: + return 47; + case 15: + this.popState();return 44; + case 16: + this.popState();return 44; + case 17: + return 34; + case 18: + return 39; + case 19: + return 51; + case 20: + return 48; + case 21: + this.unput(yy_.yytext); + this.popState(); + this.begin('com'); + + break; + case 22: + this.popState(); + return 14; + case 23: + return 48; + case 24: + return 73; + case 25: + return 72; + case 26: + return 72; + case 27: + return 87; + case 28: + // ignore whitespace + break; + case 29: + this.popState();return 54; + case 30: + this.popState();return 33; + case 31: + yy_.yytext = strip(1, 2).replace(/\\"/g, '"');return 80; + case 32: + yy_.yytext = strip(1, 2).replace(/\\'/g, "'");return 80; + case 33: + return 85; + case 34: + return 82; + case 35: + return 82; + case 36: + return 83; + case 37: + return 84; + case 38: + return 81; + case 39: + return 75; + case 40: + return 77; + case 41: + return 72; + case 42: + yy_.yytext = yy_.yytext.replace(/\\([\\\]])/g, '$1');return 72; + case 43: + return 'INVALID'; + case 44: + return 5; + } + }; + lexer.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/]; + lexer.conditions = { "mu": { "rules": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "inclusive": false }, "emu": { "rules": [2], "inclusive": false }, "com": { "rules": [6], "inclusive": false }, "raw": { "rules": [3, 4, 5], "inclusive": false }, "INITIAL": { "rules": [0, 1, 44], "inclusive": true } }; + return lexer; + })(); + parser.lexer = lexer; + function Parser() { + this.yy = {}; + }Parser.prototype = parser;parser.Parser = Parser; + return new Parser(); + })();exports["default"] = handlebars; + module.exports = exports["default"]; + + } (parser, parser.exports)); + return parser.exports; +} + +var whitespaceControl = {exports: {}}; + +var visitor = {exports: {}}; + +var hasRequiredVisitor; + +function requireVisitor () { + if (hasRequiredVisitor) return visitor.exports; + hasRequiredVisitor = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + function Visitor() { + this.parents = []; + } + + Visitor.prototype = { + constructor: Visitor, + mutating: false, + + // Visits a given value. If mutating, will replace the value if necessary. + acceptKey: function acceptKey(node, name) { + var value = this.accept(node[name]); + if (this.mutating) { + // Hacky sanity check: This may have a few false positives for type for the helper + // methods but will generally do the right thing without a lot of overhead. + if (value && !Visitor.prototype[value.type]) { + throw new _exception2['default']('Unexpected node type "' + value.type + '" found when accepting ' + name + ' on ' + node.type); + } + node[name] = value; + } + }, + + // Performs an accept operation with added sanity check to ensure + // required keys are not removed. + acceptRequired: function acceptRequired(node, name) { + this.acceptKey(node, name); + + if (!node[name]) { + throw new _exception2['default'](node.type + ' requires ' + name); + } + }, + + // Traverses a given array. If mutating, empty respnses will be removed + // for child elements. + acceptArray: function acceptArray(array) { + for (var i = 0, l = array.length; i < l; i++) { + this.acceptKey(array, i); + + if (!array[i]) { + array.splice(i, 1); + i--; + l--; + } + } + }, + + accept: function accept(object) { + if (!object) { + return; + } + + /* istanbul ignore next: Sanity code */ + if (!this[object.type]) { + throw new _exception2['default']('Unknown type: ' + object.type, object); + } + + if (this.current) { + this.parents.unshift(this.current); + } + this.current = object; + + var ret = this[object.type](object); + + this.current = this.parents.shift(); + + if (!this.mutating || ret) { + return ret; + } else if (ret !== false) { + return object; + } + }, + + Program: function Program(program) { + this.acceptArray(program.body); + }, + + MustacheStatement: visitSubExpression, + Decorator: visitSubExpression, + + BlockStatement: visitBlock, + DecoratorBlock: visitBlock, + + PartialStatement: visitPartial, + PartialBlockStatement: function PartialBlockStatement(partial) { + visitPartial.call(this, partial); + + this.acceptKey(partial, 'program'); + }, + + ContentStatement: function ContentStatement() /* content */{}, + CommentStatement: function CommentStatement() /* comment */{}, + + SubExpression: visitSubExpression, + + PathExpression: function PathExpression() /* path */{}, + + StringLiteral: function StringLiteral() /* string */{}, + NumberLiteral: function NumberLiteral() /* number */{}, + BooleanLiteral: function BooleanLiteral() /* bool */{}, + UndefinedLiteral: function UndefinedLiteral() /* literal */{}, + NullLiteral: function NullLiteral() /* literal */{}, + + Hash: function Hash(hash) { + this.acceptArray(hash.pairs); + }, + HashPair: function HashPair(pair) { + this.acceptRequired(pair, 'value'); + } + }; + + function visitSubExpression(mustache) { + this.acceptRequired(mustache, 'path'); + this.acceptArray(mustache.params); + this.acceptKey(mustache, 'hash'); + } + function visitBlock(block) { + visitSubExpression.call(this, block); + + this.acceptKey(block, 'program'); + this.acceptKey(block, 'inverse'); + } + function visitPartial(partial) { + this.acceptRequired(partial, 'name'); + this.acceptArray(partial.params); + this.acceptKey(partial, 'hash'); + } + + exports['default'] = Visitor; + module.exports = exports['default']; + + } (visitor, visitor.exports)); + return visitor.exports; +} + +var hasRequiredWhitespaceControl; + +function requireWhitespaceControl () { + if (hasRequiredWhitespaceControl) return whitespaceControl.exports; + hasRequiredWhitespaceControl = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _visitor = requireVisitor(); + + var _visitor2 = _interopRequireDefault(_visitor); + + function WhitespaceControl() { + var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; + + this.options = options; + } + WhitespaceControl.prototype = new _visitor2['default'](); + + WhitespaceControl.prototype.Program = function (program) { + var doStandalone = !this.options.ignoreStandalone; + + var isRoot = !this.isRootSeen; + this.isRootSeen = true; + + var body = program.body; + for (var i = 0, l = body.length; i < l; i++) { + var current = body[i], + strip = this.accept(current); + + if (!strip) { + continue; + } + + var _isPrevWhitespace = isPrevWhitespace(body, i, isRoot), + _isNextWhitespace = isNextWhitespace(body, i, isRoot), + openStandalone = strip.openStandalone && _isPrevWhitespace, + closeStandalone = strip.closeStandalone && _isNextWhitespace, + inlineStandalone = strip.inlineStandalone && _isPrevWhitespace && _isNextWhitespace; + + if (strip.close) { + omitRight(body, i, true); + } + if (strip.open) { + omitLeft(body, i, true); + } + + if (doStandalone && inlineStandalone) { + omitRight(body, i); + + if (omitLeft(body, i)) { + // If we are on a standalone node, save the indent info for partials + if (current.type === 'PartialStatement') { + // Pull out the whitespace from the final line + current.indent = /([ \t]+$)/.exec(body[i - 1].original)[1]; + } + } + } + if (doStandalone && openStandalone) { + omitRight((current.program || current.inverse).body); + + // Strip out the previous content node if it's whitespace only + omitLeft(body, i); + } + if (doStandalone && closeStandalone) { + // Always strip the next node + omitRight(body, i); + + omitLeft((current.inverse || current.program).body); + } + } + + return program; + }; + + WhitespaceControl.prototype.BlockStatement = WhitespaceControl.prototype.DecoratorBlock = WhitespaceControl.prototype.PartialBlockStatement = function (block) { + this.accept(block.program); + this.accept(block.inverse); + + // Find the inverse program that is involed with whitespace stripping. + var program = block.program || block.inverse, + inverse = block.program && block.inverse, + firstInverse = inverse, + lastInverse = inverse; + + if (inverse && inverse.chained) { + firstInverse = inverse.body[0].program; + + // Walk the inverse chain to find the last inverse that is actually in the chain. + while (lastInverse.chained) { + lastInverse = lastInverse.body[lastInverse.body.length - 1].program; + } + } + + var strip = { + open: block.openStrip.open, + close: block.closeStrip.close, + + // Determine the standalone candiacy. Basically flag our content as being possibly standalone + // so our parent can determine if we actually are standalone + openStandalone: isNextWhitespace(program.body), + closeStandalone: isPrevWhitespace((firstInverse || program).body) + }; + + if (block.openStrip.close) { + omitRight(program.body, null, true); + } + + if (inverse) { + var inverseStrip = block.inverseStrip; + + if (inverseStrip.open) { + omitLeft(program.body, null, true); + } + + if (inverseStrip.close) { + omitRight(firstInverse.body, null, true); + } + if (block.closeStrip.open) { + omitLeft(lastInverse.body, null, true); + } + + // Find standalone else statments + if (!this.options.ignoreStandalone && isPrevWhitespace(program.body) && isNextWhitespace(firstInverse.body)) { + omitLeft(program.body); + omitRight(firstInverse.body); + } + } else if (block.closeStrip.open) { + omitLeft(program.body, null, true); + } + + return strip; + }; + + WhitespaceControl.prototype.Decorator = WhitespaceControl.prototype.MustacheStatement = function (mustache) { + return mustache.strip; + }; + + WhitespaceControl.prototype.PartialStatement = WhitespaceControl.prototype.CommentStatement = function (node) { + /* istanbul ignore next */ + var strip = node.strip || {}; + return { + inlineStandalone: true, + open: strip.open, + close: strip.close + }; + }; + + function isPrevWhitespace(body, i, isRoot) { + if (i === undefined) { + i = body.length; + } + + // Nodes that end with newlines are considered whitespace (but are special + // cased for strip operations) + var prev = body[i - 1], + sibling = body[i - 2]; + if (!prev) { + return isRoot; + } + + if (prev.type === 'ContentStatement') { + return (sibling || !isRoot ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(prev.original); + } + } + function isNextWhitespace(body, i, isRoot) { + if (i === undefined) { + i = -1; + } + + var next = body[i + 1], + sibling = body[i + 2]; + if (!next) { + return isRoot; + } + + if (next.type === 'ContentStatement') { + return (sibling || !isRoot ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(next.original); + } + } + + // Marks the node to the right of the position as omitted. + // I.e. {{foo}}' ' will mark the ' ' node as omitted. + // + // If i is undefined, then the first child will be marked as such. + // + // If mulitple is truthy then all whitespace will be stripped out until non-whitespace + // content is met. + function omitRight(body, i, multiple) { + var current = body[i == null ? 0 : i + 1]; + if (!current || current.type !== 'ContentStatement' || !multiple && current.rightStripped) { + return; + } + + var original = current.value; + current.value = current.value.replace(multiple ? /^\s+/ : /^[ \t]*\r?\n?/, ''); + current.rightStripped = current.value !== original; + } + + // Marks the node to the left of the position as omitted. + // I.e. ' '{{foo}} will mark the ' ' node as omitted. + // + // If i is undefined then the last child will be marked as such. + // + // If mulitple is truthy then all whitespace will be stripped out until non-whitespace + // content is met. + function omitLeft(body, i, multiple) { + var current = body[i == null ? body.length - 1 : i - 1]; + if (!current || current.type !== 'ContentStatement' || !multiple && current.leftStripped) { + return; + } + + // We omit the last node if it's whitespace only and not preceded by a non-content node. + var original = current.value; + current.value = current.value.replace(multiple ? /\s+$/ : /[ \t]+$/, ''); + current.leftStripped = current.value !== original; + return current.leftStripped; + } + + exports['default'] = WhitespaceControl; + module.exports = exports['default']; + + } (whitespaceControl, whitespaceControl.exports)); + return whitespaceControl.exports; +} + +var helpers = {}; + +var hasRequiredHelpers; + +function requireHelpers () { + if (hasRequiredHelpers) return helpers; + hasRequiredHelpers = 1; + + helpers.__esModule = true; + helpers.SourceLocation = SourceLocation; + helpers.id = id; + helpers.stripFlags = stripFlags; + helpers.stripComment = stripComment; + helpers.preparePath = preparePath; + helpers.prepareMustache = prepareMustache; + helpers.prepareRawBlock = prepareRawBlock; + helpers.prepareBlock = prepareBlock; + helpers.prepareProgram = prepareProgram; + helpers.preparePartialBlock = preparePartialBlock; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + function validateClose(open, close) { + close = close.path ? close.path.original : close; + + if (open.path.original !== close) { + var errorNode = { loc: open.path.loc }; + + throw new _exception2['default'](open.path.original + " doesn't match " + close, errorNode); + } + } + + function SourceLocation(source, locInfo) { + this.source = source; + this.start = { + line: locInfo.first_line, + column: locInfo.first_column + }; + this.end = { + line: locInfo.last_line, + column: locInfo.last_column + }; + } + + function id(token) { + if (/^\[.*\]$/.test(token)) { + return token.substring(1, token.length - 1); + } else { + return token; + } + } + + function stripFlags(open, close) { + return { + open: open.charAt(2) === '~', + close: close.charAt(close.length - 3) === '~' + }; + } + + function stripComment(comment) { + return comment.replace(/^\{\{~?!-?-?/, '').replace(/-?-?~?\}\}$/, ''); + } + + function preparePath(data, parts, loc) { + loc = this.locInfo(loc); + + var original = data ? '@' : '', + dig = [], + depth = 0; + + for (var i = 0, l = parts.length; i < l; i++) { + var part = parts[i].part, + + // If we have [] syntax then we do not treat path references as operators, + // i.e. foo.[this] resolves to approximately context.foo['this'] + isLiteral = parts[i].original !== part; + original += (parts[i].separator || '') + part; + + if (!isLiteral && (part === '..' || part === '.' || part === 'this')) { + if (dig.length > 0) { + throw new _exception2['default']('Invalid path: ' + original, { loc: loc }); + } else if (part === '..') { + depth++; + } + } else { + dig.push(part); + } + } + + return { + type: 'PathExpression', + data: data, + depth: depth, + parts: dig, + original: original, + loc: loc + }; + } + + function prepareMustache(path, params, hash, open, strip, locInfo) { + // Must use charAt to support IE pre-10 + var escapeFlag = open.charAt(3) || open.charAt(2), + escaped = escapeFlag !== '{' && escapeFlag !== '&'; + + var decorator = /\*/.test(open); + return { + type: decorator ? 'Decorator' : 'MustacheStatement', + path: path, + params: params, + hash: hash, + escaped: escaped, + strip: strip, + loc: this.locInfo(locInfo) + }; + } + + function prepareRawBlock(openRawBlock, contents, close, locInfo) { + validateClose(openRawBlock, close); + + locInfo = this.locInfo(locInfo); + var program = { + type: 'Program', + body: contents, + strip: {}, + loc: locInfo + }; + + return { + type: 'BlockStatement', + path: openRawBlock.path, + params: openRawBlock.params, + hash: openRawBlock.hash, + program: program, + openStrip: {}, + inverseStrip: {}, + closeStrip: {}, + loc: locInfo + }; + } + + function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) { + if (close && close.path) { + validateClose(openBlock, close); + } + + var decorator = /\*/.test(openBlock.open); + + program.blockParams = openBlock.blockParams; + + var inverse = undefined, + inverseStrip = undefined; + + if (inverseAndProgram) { + if (decorator) { + throw new _exception2['default']('Unexpected inverse block on decorator', inverseAndProgram); + } + + if (inverseAndProgram.chain) { + inverseAndProgram.program.body[0].closeStrip = close.strip; + } + + inverseStrip = inverseAndProgram.strip; + inverse = inverseAndProgram.program; + } + + if (inverted) { + inverted = inverse; + inverse = program; + program = inverted; + } + + return { + type: decorator ? 'DecoratorBlock' : 'BlockStatement', + path: openBlock.path, + params: openBlock.params, + hash: openBlock.hash, + program: program, + inverse: inverse, + openStrip: openBlock.strip, + inverseStrip: inverseStrip, + closeStrip: close && close.strip, + loc: this.locInfo(locInfo) + }; + } + + function prepareProgram(statements, loc) { + if (!loc && statements.length) { + var firstLoc = statements[0].loc, + lastLoc = statements[statements.length - 1].loc; + + /* istanbul ignore else */ + if (firstLoc && lastLoc) { + loc = { + source: firstLoc.source, + start: { + line: firstLoc.start.line, + column: firstLoc.start.column + }, + end: { + line: lastLoc.end.line, + column: lastLoc.end.column + } + }; + } + } + + return { + type: 'Program', + body: statements, + strip: {}, + loc: loc + }; + } + + function preparePartialBlock(open, program, close, locInfo) { + validateClose(open, close); + + return { + type: 'PartialBlockStatement', + name: open.path, + params: open.params, + hash: open.hash, + program: program, + openStrip: open.strip, + closeStrip: close && close.strip, + loc: this.locInfo(locInfo) + }; + } + + return helpers; +} + +var hasRequiredBase; + +function requireBase () { + if (hasRequiredBase) return base; + hasRequiredBase = 1; + + base.__esModule = true; + base.parseWithoutProcessing = parseWithoutProcessing; + base.parse = parse; + // istanbul ignore next + + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _parser = requireParser(); + + var _parser2 = _interopRequireDefault(_parser); + + var _whitespaceControl = requireWhitespaceControl(); + + var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl); + + var _helpers = requireHelpers(); + + var Helpers = _interopRequireWildcard(_helpers); + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + var _utils = requireUtils(); + + base.parser = _parser2['default']; + + var yy = {}; + _utils.extend(yy, Helpers); + + function parseWithoutProcessing(input, options) { + // Just return if an already-compiled AST was passed in. + if (input.type === 'Program') { + // When a pre-parsed AST is passed in, validate all node values to prevent + // code injection via type-confused literals. + validateInputAst(input); + return input; + } + + _parser2['default'].yy = yy; + + // Altering the shared object here, but this is ok as parser is a sync operation + yy.locInfo = function (locInfo) { + return new yy.SourceLocation(options && options.srcName, locInfo); + }; + + var ast = _parser2['default'].parse(input); + + return ast; + } + + function parse(input, options) { + var ast = parseWithoutProcessing(input, options); + var strip = new _whitespaceControl2['default'](options); + + return strip.accept(ast); + } + + function validateInputAst(ast) { + validateAstNode(ast); + } + + function validateAstNode(node) { + if (node == null) { + return; + } + + if (Array.isArray(node)) { + node.forEach(validateAstNode); + return; + } + + if (typeof node !== 'object') { + return; + } + + if (node.type === 'PathExpression') { + if (!isValidDepth(node.depth)) { + throw new _exception2['default']('Invalid AST: PathExpression.depth must be an integer'); + } + if (!Array.isArray(node.parts)) { + throw new _exception2['default']('Invalid AST: PathExpression.parts must be an array'); + } + for (var i = 0; i < node.parts.length; i++) { + if (typeof node.parts[i] !== 'string') { + throw new _exception2['default']('Invalid AST: PathExpression.parts must only contain strings'); + } + } + } else if (node.type === 'NumberLiteral') { + if (typeof node.value !== 'number' || !isFinite(node.value)) { + throw new _exception2['default']('Invalid AST: NumberLiteral.value must be a number'); + } + } else if (node.type === 'BooleanLiteral') { + if (typeof node.value !== 'boolean') { + throw new _exception2['default']('Invalid AST: BooleanLiteral.value must be a boolean'); + } + } + + Object.keys(node).forEach(function (propertyName) { + if (propertyName === 'loc') { + return; + } + validateAstNode(node[propertyName]); + }); + } + + function isValidDepth(depth) { + return typeof depth === 'number' && isFinite(depth) && Math.floor(depth) === depth && depth >= 0; + } + + return base; +} + +var compiler = {}; + +/* eslint-disable new-cap */ + +var hasRequiredCompiler; + +function requireCompiler () { + if (hasRequiredCompiler) return compiler; + hasRequiredCompiler = 1; + + compiler.__esModule = true; + compiler.Compiler = Compiler; + compiler.precompile = precompile; + compiler.compile = compile; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + var _utils = requireUtils(); + + var _ast = requireAst(); + + var _ast2 = _interopRequireDefault(_ast); + + var slice = [].slice; + + function Compiler() {} + + // the foundHelper register will disambiguate helper lookup from finding a + // function in a context. This is necessary for mustache compatibility, which + // requires that context functions in blocks are evaluated by blockHelperMissing, + // and then proceed as if the resulting value was provided to blockHelperMissing. + + Compiler.prototype = { + compiler: Compiler, + + equals: function equals(other) { + var len = this.opcodes.length; + if (other.opcodes.length !== len) { + return false; + } + + for (var i = 0; i < len; i++) { + var opcode = this.opcodes[i], + otherOpcode = other.opcodes[i]; + if (opcode.opcode !== otherOpcode.opcode || !argEquals(opcode.args, otherOpcode.args)) { + return false; + } + } + + // We know that length is the same between the two arrays because they are directly tied + // to the opcode behavior above. + len = this.children.length; + for (var i = 0; i < len; i++) { + if (!this.children[i].equals(other.children[i])) { + return false; + } + } + + return true; + }, + + guid: 0, + + compile: function compile(program, options) { + this.sourceNode = []; + this.opcodes = []; + this.children = []; + this.options = options; + this.stringParams = options.stringParams; + this.trackIds = options.trackIds; + + options.blockParams = options.blockParams || []; + + options.knownHelpers = _utils.extend(Object.create(null), { + helperMissing: true, + blockHelperMissing: true, + each: true, + 'if': true, + unless: true, + 'with': true, + log: true, + lookup: true + }, options.knownHelpers); + + return this.accept(program); + }, + + compileProgram: function compileProgram(program) { + var childCompiler = new this.compiler(), + // eslint-disable-line new-cap + result = childCompiler.compile(program, this.options), + guid = this.guid++; + + this.usePartial = this.usePartial || result.usePartial; + + this.children[guid] = result; + this.useDepths = this.useDepths || result.useDepths; + + return guid; + }, + + accept: function accept(node) { + /* istanbul ignore next: Sanity code */ + if (!this[node.type]) { + throw new _exception2['default']('Unknown type: ' + node.type, node); + } + + this.sourceNode.unshift(node); + var ret = this[node.type](node); + this.sourceNode.shift(); + return ret; + }, + + Program: function Program(program) { + this.options.blockParams.unshift(program.blockParams); + + var body = program.body, + bodyLength = body.length; + for (var i = 0; i < bodyLength; i++) { + this.accept(body[i]); + } + + this.options.blockParams.shift(); + + this.isSimple = bodyLength === 1; + this.blockParams = program.blockParams ? program.blockParams.length : 0; + + return this; + }, + + BlockStatement: function BlockStatement(block) { + transformLiteralToPath(block); + + var program = block.program, + inverse = block.inverse; + + program = program && this.compileProgram(program); + inverse = inverse && this.compileProgram(inverse); + + var type = this.classifySexpr(block); + + if (type === 'helper') { + this.helperSexpr(block, program, inverse); + } else if (type === 'simple') { + this.simpleSexpr(block); + + // now that the simple mustache is resolved, we need to + // evaluate it by executing `blockHelperMissing` + this.opcode('pushProgram', program); + this.opcode('pushProgram', inverse); + this.opcode('emptyHash'); + this.opcode('blockValue', block.path.original); + } else { + this.ambiguousSexpr(block, program, inverse); + + // now that the simple mustache is resolved, we need to + // evaluate it by executing `blockHelperMissing` + this.opcode('pushProgram', program); + this.opcode('pushProgram', inverse); + this.opcode('emptyHash'); + this.opcode('ambiguousBlockValue'); + } + + this.opcode('append'); + }, + + DecoratorBlock: function DecoratorBlock(decorator) { + var program = decorator.program && this.compileProgram(decorator.program); + var params = this.setupFullMustacheParams(decorator, program, undefined), + path = decorator.path; + + this.useDecorators = true; + this.opcode('registerDecorator', params.length, path.original); + }, + + PartialStatement: function PartialStatement(partial) { + this.usePartial = true; + + var program = partial.program; + if (program) { + program = this.compileProgram(partial.program); + } + + var params = partial.params; + if (params.length > 1) { + throw new _exception2['default']('Unsupported number of partial arguments: ' + params.length, partial); + } else if (!params.length) { + if (this.options.explicitPartialContext) { + this.opcode('pushLiteral', 'undefined'); + } else { + params.push({ type: 'PathExpression', parts: [], depth: 0 }); + } + } + + var partialName = partial.name.original, + isDynamic = partial.name.type === 'SubExpression'; + if (isDynamic) { + this.accept(partial.name); + } + + this.setupFullMustacheParams(partial, program, undefined, true); + + var indent = partial.indent || ''; + if (this.options.preventIndent && indent) { + this.opcode('appendContent', indent); + indent = ''; + } + + this.opcode('invokePartial', isDynamic, partialName, indent); + this.opcode('append'); + }, + PartialBlockStatement: function PartialBlockStatement(partialBlock) { + this.PartialStatement(partialBlock); + }, + + MustacheStatement: function MustacheStatement(mustache) { + this.SubExpression(mustache); + + if (mustache.escaped && !this.options.noEscape) { + this.opcode('appendEscaped'); + } else { + this.opcode('append'); + } + }, + Decorator: function Decorator(decorator) { + this.DecoratorBlock(decorator); + }, + + ContentStatement: function ContentStatement(content) { + if (content.value) { + this.opcode('appendContent', content.value); + } + }, + + CommentStatement: function CommentStatement() {}, + + SubExpression: function SubExpression(sexpr) { + transformLiteralToPath(sexpr); + var type = this.classifySexpr(sexpr); + + if (type === 'simple') { + this.simpleSexpr(sexpr); + } else if (type === 'helper') { + this.helperSexpr(sexpr); + } else { + this.ambiguousSexpr(sexpr); + } + }, + ambiguousSexpr: function ambiguousSexpr(sexpr, program, inverse) { + var path = sexpr.path, + name = path.parts[0], + isBlock = program != null || inverse != null; + + this.opcode('getContext', path.depth); + + this.opcode('pushProgram', program); + this.opcode('pushProgram', inverse); + + path.strict = true; + this.accept(path); + + this.opcode('invokeAmbiguous', name, isBlock); + }, + + simpleSexpr: function simpleSexpr(sexpr) { + var path = sexpr.path; + path.strict = true; + this.accept(path); + this.opcode('resolvePossibleLambda'); + }, + + helperSexpr: function helperSexpr(sexpr, program, inverse) { + var params = this.setupFullMustacheParams(sexpr, program, inverse), + path = sexpr.path, + name = path.parts[0]; + + if (this.options.knownHelpers[name]) { + this.opcode('invokeKnownHelper', params.length, name); + } else if (this.options.knownHelpersOnly) { + throw new _exception2['default']('You specified knownHelpersOnly, but used the unknown helper ' + name, sexpr); + } else { + path.strict = true; + path.falsy = true; + + this.accept(path); + this.opcode('invokeHelper', params.length, path.original, _ast2['default'].helpers.simpleId(path)); + } + }, + + PathExpression: function PathExpression(path) { + this.addDepth(path.depth); + this.opcode('getContext', path.depth); + + var name = path.parts[0], + scoped = _ast2['default'].helpers.scopedId(path), + blockParamId = !path.depth && !scoped && this.blockParamIndex(name); + + if (blockParamId) { + this.opcode('lookupBlockParam', blockParamId, path.parts); + } else if (!name) { + // Context reference, i.e. `{{foo .}}` or `{{foo ..}}` + this.opcode('pushContext'); + } else if (path.data) { + this.options.data = true; + this.opcode('lookupData', path.depth, path.parts, path.strict); + } else { + this.opcode('lookupOnContext', path.parts, path.falsy, path.strict, scoped); + } + }, + + StringLiteral: function StringLiteral(string) { + this.opcode('pushString', string.value); + }, + + NumberLiteral: function NumberLiteral(number) { + this.opcode('pushLiteral', number.value); + }, + + BooleanLiteral: function BooleanLiteral(bool) { + this.opcode('pushLiteral', bool.value); + }, + + UndefinedLiteral: function UndefinedLiteral() { + this.opcode('pushLiteral', 'undefined'); + }, + + NullLiteral: function NullLiteral() { + this.opcode('pushLiteral', 'null'); + }, + + Hash: function Hash(hash) { + var pairs = hash.pairs, + i = 0, + l = pairs.length; + + this.opcode('pushHash'); + + for (; i < l; i++) { + this.pushParam(pairs[i].value); + } + while (i--) { + this.opcode('assignToHash', pairs[i].key); + } + this.opcode('popHash'); + }, + + // HELPERS + opcode: function opcode(name) { + this.opcodes.push({ + opcode: name, + args: slice.call(arguments, 1), + loc: this.sourceNode[0].loc + }); + }, + + addDepth: function addDepth(depth) { + if (!depth) { + return; + } + + this.useDepths = true; + }, + + classifySexpr: function classifySexpr(sexpr) { + var isSimple = _ast2['default'].helpers.simpleId(sexpr.path); + + var isBlockParam = isSimple && !!this.blockParamIndex(sexpr.path.parts[0]); + + // a mustache is an eligible helper if: + // * its id is simple (a single part, not `this` or `..`) + var isHelper = !isBlockParam && _ast2['default'].helpers.helperExpression(sexpr); + + // if a mustache is an eligible helper but not a definite + // helper, it is ambiguous, and will be resolved in a later + // pass or at runtime. + var isEligible = !isBlockParam && (isHelper || isSimple); + + // if ambiguous, we can possibly resolve the ambiguity now + // An eligible helper is one that does not have a complex path, i.e. `this.foo`, `../foo` etc. + if (isEligible && !isHelper) { + var _name = sexpr.path.parts[0], + options = this.options; + if (options.knownHelpers[_name]) { + isHelper = true; + } else if (options.knownHelpersOnly) { + isEligible = false; + } + } + + if (isHelper) { + return 'helper'; + } else if (isEligible) { + return 'ambiguous'; + } else { + return 'simple'; + } + }, + + pushParams: function pushParams(params) { + for (var i = 0, l = params.length; i < l; i++) { + this.pushParam(params[i]); + } + }, + + pushParam: function pushParam(val) { + var value = val.value != null ? val.value : val.original || ''; + + if (this.stringParams) { + if (value.replace) { + value = value.replace(/^(\.?\.\/)*/g, '').replace(/\//g, '.'); + } + + if (val.depth) { + this.addDepth(val.depth); + } + this.opcode('getContext', val.depth || 0); + this.opcode('pushStringParam', value, val.type); + + if (val.type === 'SubExpression') { + // SubExpressions get evaluated and passed in + // in string params mode. + this.accept(val); + } + } else { + if (this.trackIds) { + var blockParamIndex = undefined; + if (val.parts && !_ast2['default'].helpers.scopedId(val) && !val.depth) { + blockParamIndex = this.blockParamIndex(val.parts[0]); + } + if (blockParamIndex) { + var blockParamChild = val.parts.slice(1).join('.'); + this.opcode('pushId', 'BlockParam', blockParamIndex, blockParamChild); + } else { + value = val.original || value; + if (value.replace) { + value = value.replace(/^this(?:\.|$)/, '').replace(/^\.\//, '').replace(/^\.$/, ''); + } + + this.opcode('pushId', val.type, value); + } + } + this.accept(val); + } + }, + + setupFullMustacheParams: function setupFullMustacheParams(sexpr, program, inverse, omitEmpty) { + var params = sexpr.params; + this.pushParams(params); + + this.opcode('pushProgram', program); + this.opcode('pushProgram', inverse); + + if (sexpr.hash) { + this.accept(sexpr.hash); + } else { + this.opcode('emptyHash', omitEmpty); + } + + return params; + }, + + blockParamIndex: function blockParamIndex(name) { + for (var depth = 0, len = this.options.blockParams.length; depth < len; depth++) { + var blockParams = this.options.blockParams[depth], + param = blockParams && _utils.indexOf(blockParams, name); + if (blockParams && param >= 0) { + return [depth, param]; + } + } + } + }; + + function precompile(input, options, env) { + if (input == null || typeof input !== 'string' && input.type !== 'Program') { + throw new _exception2['default']('You must pass a string or Handlebars AST to Handlebars.precompile. You passed ' + input); + } + + options = options || {}; + if (!('data' in options)) { + options.data = true; + } + if (options.compat) { + options.useDepths = true; + } + + var ast = env.parse(input, options), + environment = new env.Compiler().compile(ast, options); + return new env.JavaScriptCompiler().compile(environment, options); + } + + function compile(input, options, env) { + if (options === undefined) options = {}; + + if (input == null || typeof input !== 'string' && input.type !== 'Program') { + throw new _exception2['default']('You must pass a string or Handlebars AST to Handlebars.compile. You passed ' + input); + } + + options = _utils.extend({}, options); + if (!('data' in options)) { + options.data = true; + } + if (options.compat) { + options.useDepths = true; + } + + var compiled = undefined; + + function compileInput() { + var ast = env.parse(input, options), + environment = new env.Compiler().compile(ast, options), + templateSpec = new env.JavaScriptCompiler().compile(environment, options, undefined, true); + return env.template(templateSpec); + } + + // Template is only compiled on first use and cached after that point. + function ret(context, execOptions) { + if (!compiled) { + compiled = compileInput(); + } + return compiled.call(this, context, execOptions); + } + ret._setup = function (setupOptions) { + if (!compiled) { + compiled = compileInput(); + } + return compiled._setup(setupOptions); + }; + ret._child = function (i, data, blockParams, depths) { + if (!compiled) { + compiled = compileInput(); + } + return compiled._child(i, data, blockParams, depths); + }; + return ret; + } + + function argEquals(a, b) { + if (a === b) { + return true; + } + + if (_utils.isArray(a) && _utils.isArray(b) && a.length === b.length) { + for (var i = 0; i < a.length; i++) { + if (!argEquals(a[i], b[i])) { + return false; + } + } + return true; + } + } + + function transformLiteralToPath(sexpr) { + if (!sexpr.path.parts) { + var literal = sexpr.path; + // Casting to string here to make false and 0 literal values play nicely with the rest + // of the system. + sexpr.path = { + type: 'PathExpression', + data: false, + depth: 0, + parts: [literal.original + ''], + original: literal.original + '', + loc: literal.loc + }; + } + } + + return compiler; +} + +var javascriptCompiler = {exports: {}}; + +var codeGen = {exports: {}}; + +var sourceMap = {}; + +var sourceMapGenerator = {}; + +var base64Vlq = {}; + +var base64 = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredBase64; + +function requireBase64 () { + if (hasRequiredBase64) return base64; + hasRequiredBase64 = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); + + /** + * Encode an integer in the range of 0 to 63 to a single base 64 digit. + */ + base64.encode = function (number) { + if (0 <= number && number < intToCharMap.length) { + return intToCharMap[number]; + } + throw new TypeError("Must be between 0 and 63: " + number); + }; + + /** + * Decode a single base 64 character code digit to an integer. Returns -1 on + * failure. + */ + base64.decode = function (charCode) { + var bigA = 65; // 'A' + var bigZ = 90; // 'Z' + + var littleA = 97; // 'a' + var littleZ = 122; // 'z' + + var zero = 48; // '0' + var nine = 57; // '9' + + var plus = 43; // '+' + var slash = 47; // '/' + + var littleOffset = 26; + var numberOffset = 52; + + // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ + if (bigA <= charCode && charCode <= bigZ) { + return (charCode - bigA); + } + + // 26 - 51: abcdefghijklmnopqrstuvwxyz + if (littleA <= charCode && charCode <= littleZ) { + return (charCode - littleA + littleOffset); + } + + // 52 - 61: 0123456789 + if (zero <= charCode && charCode <= nine) { + return (charCode - zero + numberOffset); + } + + // 62: + + if (charCode == plus) { + return 62; + } + + // 63: / + if (charCode == slash) { + return 63; + } + + // Invalid base64 digit. + return -1; + }; + return base64; +} + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredBase64Vlq; + +function requireBase64Vlq () { + if (hasRequiredBase64Vlq) return base64Vlq; + hasRequiredBase64Vlq = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + * + * Based on the Base 64 VLQ implementation in Closure Compiler: + * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java + * + * Copyright 2011 The Closure Compiler Authors. All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + var base64 = requireBase64(); + + // A single base 64 digit can contain 6 bits of data. For the base 64 variable + // length quantities we use in the source map spec, the first bit is the sign, + // the next four bits are the actual value, and the 6th bit is the + // continuation bit. The continuation bit tells us whether there are more + // digits in this value following this digit. + // + // Continuation + // | Sign + // | | + // V V + // 101011 + + var VLQ_BASE_SHIFT = 5; + + // binary: 100000 + var VLQ_BASE = 1 << VLQ_BASE_SHIFT; + + // binary: 011111 + var VLQ_BASE_MASK = VLQ_BASE - 1; + + // binary: 100000 + var VLQ_CONTINUATION_BIT = VLQ_BASE; + + /** + * Converts from a two-complement value to a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) + * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) + */ + function toVLQSigned(aValue) { + return aValue < 0 + ? ((-aValue) << 1) + 1 + : (aValue << 1) + 0; + } + + /** + * Converts to a two-complement value from a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 + * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 + */ + function fromVLQSigned(aValue) { + var isNegative = (aValue & 1) === 1; + var shifted = aValue >> 1; + return isNegative + ? -shifted + : shifted; + } + + /** + * Returns the base 64 VLQ encoded value. + */ + base64Vlq.encode = function base64VLQ_encode(aValue) { + var encoded = ""; + var digit; + + var vlq = toVLQSigned(aValue); + + do { + digit = vlq & VLQ_BASE_MASK; + vlq >>>= VLQ_BASE_SHIFT; + if (vlq > 0) { + // There are still more digits in this value, so we must make sure the + // continuation bit is marked. + digit |= VLQ_CONTINUATION_BIT; + } + encoded += base64.encode(digit); + } while (vlq > 0); + + return encoded; + }; + + /** + * Decodes the next base 64 VLQ value from the given string and returns the + * value and the rest of the string via the out parameter. + */ + base64Vlq.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { + var strLen = aStr.length; + var result = 0; + var shift = 0; + var continuation, digit; + + do { + if (aIndex >= strLen) { + throw new Error("Expected more digits in base 64 VLQ value."); + } + + digit = base64.decode(aStr.charCodeAt(aIndex++)); + if (digit === -1) { + throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); + } + + continuation = !!(digit & VLQ_CONTINUATION_BIT); + digit &= VLQ_BASE_MASK; + result = result + (digit << shift); + shift += VLQ_BASE_SHIFT; + } while (continuation); + + aOutParam.value = fromVLQSigned(result); + aOutParam.rest = aIndex; + }; + return base64Vlq; +} + +var util = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredUtil; + +function requireUtil () { + if (hasRequiredUtil) return util; + hasRequiredUtil = 1; + (function (exports) { + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + /** + * This is a helper function for getting values from parameter/options + * objects. + * + * @param args The object we are extracting values from + * @param name The name of the property we are getting. + * @param defaultValue An optional value to return if the property is missing + * from the object. If this is not specified and the property is missing, an + * error will be thrown. + */ + function getArg(aArgs, aName, aDefaultValue) { + if (aName in aArgs) { + return aArgs[aName]; + } else if (arguments.length === 3) { + return aDefaultValue; + } else { + throw new Error('"' + aName + '" is a required argument.'); + } + } + exports.getArg = getArg; + + var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; + var dataUrlRegexp = /^data:.+\,.+$/; + + function urlParse(aUrl) { + var match = aUrl.match(urlRegexp); + if (!match) { + return null; + } + return { + scheme: match[1], + auth: match[2], + host: match[3], + port: match[4], + path: match[5] + }; + } + exports.urlParse = urlParse; + + function urlGenerate(aParsedUrl) { + var url = ''; + if (aParsedUrl.scheme) { + url += aParsedUrl.scheme + ':'; + } + url += '//'; + if (aParsedUrl.auth) { + url += aParsedUrl.auth + '@'; + } + if (aParsedUrl.host) { + url += aParsedUrl.host; + } + if (aParsedUrl.port) { + url += ":" + aParsedUrl.port; + } + if (aParsedUrl.path) { + url += aParsedUrl.path; + } + return url; + } + exports.urlGenerate = urlGenerate; + + /** + * Normalizes a path, or the path portion of a URL: + * + * - Replaces consecutive slashes with one slash. + * - Removes unnecessary '.' parts. + * - Removes unnecessary '/..' parts. + * + * Based on code in the Node.js 'path' core module. + * + * @param aPath The path or url to normalize. + */ + function normalize(aPath) { + var path = aPath; + var url = urlParse(aPath); + if (url) { + if (!url.path) { + return aPath; + } + path = url.path; + } + var isAbsolute = exports.isAbsolute(path); + + var parts = path.split(/\/+/); + for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { + part = parts[i]; + if (part === '.') { + parts.splice(i, 1); + } else if (part === '..') { + up++; + } else if (up > 0) { + if (part === '') { + // The first part is blank if the path is absolute. Trying to go + // above the root is a no-op. Therefore we can remove all '..' parts + // directly after the root. + parts.splice(i + 1, up); + up = 0; + } else { + parts.splice(i, 2); + up--; + } + } + } + path = parts.join('/'); + + if (path === '') { + path = isAbsolute ? '/' : '.'; + } + + if (url) { + url.path = path; + return urlGenerate(url); + } + return path; + } + exports.normalize = normalize; + + /** + * Joins two paths/URLs. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be joined with the root. + * + * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a + * scheme-relative URL: Then the scheme of aRoot, if any, is prepended + * first. + * - Otherwise aPath is a path. If aRoot is a URL, then its path portion + * is updated with the result and aRoot is returned. Otherwise the result + * is returned. + * - If aPath is absolute, the result is aPath. + * - Otherwise the two paths are joined with a slash. + * - Joining for example 'http://' and 'www.example.com' is also supported. + */ + function join(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + if (aPath === "") { + aPath = "."; + } + var aPathUrl = urlParse(aPath); + var aRootUrl = urlParse(aRoot); + if (aRootUrl) { + aRoot = aRootUrl.path || '/'; + } + + // `join(foo, '//www.example.org')` + if (aPathUrl && !aPathUrl.scheme) { + if (aRootUrl) { + aPathUrl.scheme = aRootUrl.scheme; + } + return urlGenerate(aPathUrl); + } + + if (aPathUrl || aPath.match(dataUrlRegexp)) { + return aPath; + } + + // `join('http://', 'www.example.com')` + if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { + aRootUrl.host = aPath; + return urlGenerate(aRootUrl); + } + + var joined = aPath.charAt(0) === '/' + ? aPath + : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); + + if (aRootUrl) { + aRootUrl.path = joined; + return urlGenerate(aRootUrl); + } + return joined; + } + exports.join = join; + + exports.isAbsolute = function (aPath) { + return aPath.charAt(0) === '/' || urlRegexp.test(aPath); + }; + + /** + * Make a path relative to a URL or another path. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be made relative to aRoot. + */ + function relative(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + + aRoot = aRoot.replace(/\/$/, ''); + + // It is possible for the path to be above the root. In this case, simply + // checking whether the root is a prefix of the path won't work. Instead, we + // need to remove components from the root one by one, until either we find + // a prefix that fits, or we run out of components to remove. + var level = 0; + while (aPath.indexOf(aRoot + '/') !== 0) { + var index = aRoot.lastIndexOf("/"); + if (index < 0) { + return aPath; + } + + // If the only part of the root that is left is the scheme (i.e. http://, + // file:///, etc.), one or more slashes (/), or simply nothing at all, we + // have exhausted all components, so the path is not relative to the root. + aRoot = aRoot.slice(0, index); + if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { + return aPath; + } + + ++level; + } + + // Make sure we add a "../" for each component we removed from the root. + return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); + } + exports.relative = relative; + + var supportsNullProto = (function () { + var obj = Object.create(null); + return !('__proto__' in obj); + }()); + + function identity (s) { + return s; + } + + /** + * Because behavior goes wacky when you set `__proto__` on objects, we + * have to prefix all the strings in our set with an arbitrary character. + * + * See https://github.com/mozilla/source-map/pull/31 and + * https://github.com/mozilla/source-map/issues/30 + * + * @param String aStr + */ + function toSetString(aStr) { + if (isProtoString(aStr)) { + return '$' + aStr; + } + + return aStr; + } + exports.toSetString = supportsNullProto ? identity : toSetString; + + function fromSetString(aStr) { + if (isProtoString(aStr)) { + return aStr.slice(1); + } + + return aStr; + } + exports.fromSetString = supportsNullProto ? identity : fromSetString; + + function isProtoString(s) { + if (!s) { + return false; + } + + var length = s.length; + + if (length < 9 /* "__proto__".length */) { + return false; + } + + if (s.charCodeAt(length - 1) !== 95 /* '_' */ || + s.charCodeAt(length - 2) !== 95 /* '_' */ || + s.charCodeAt(length - 3) !== 111 /* 'o' */ || + s.charCodeAt(length - 4) !== 116 /* 't' */ || + s.charCodeAt(length - 5) !== 111 /* 'o' */ || + s.charCodeAt(length - 6) !== 114 /* 'r' */ || + s.charCodeAt(length - 7) !== 112 /* 'p' */ || + s.charCodeAt(length - 8) !== 95 /* '_' */ || + s.charCodeAt(length - 9) !== 95 /* '_' */) { + return false; + } + + for (var i = length - 10; i >= 0; i--) { + if (s.charCodeAt(i) !== 36 /* '$' */) { + return false; + } + } + + return true; + } + + /** + * Comparator between two mappings where the original positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same original source/line/column, but different generated + * line and column the same. Useful when searching for a mapping with a + * stubbed out mapping. + */ + function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { + var cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0 || onlyCompareOriginal) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports.compareByOriginalPositions = compareByOriginalPositions; + + /** + * Comparator between two mappings with deflated source and name indices where + * the generated positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same generated line and column, but different + * source/name/original line and column the same. Useful when searching for a + * mapping with a stubbed out mapping. + */ + function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0 || onlyCompareGenerated) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; + + function strcmp(aStr1, aStr2) { + if (aStr1 === aStr2) { + return 0; + } + + if (aStr1 === null) { + return 1; // aStr2 !== null + } + + if (aStr2 === null) { + return -1; // aStr1 !== null + } + + if (aStr1 > aStr2) { + return 1; + } + + return -1; + } + + /** + * Comparator between two mappings with inflated source and name strings where + * the generated positions are compared. + */ + function compareByGeneratedPositionsInflated(mappingA, mappingB) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; + + /** + * Strip any JSON XSSI avoidance prefix from the string (as documented + * in the source maps specification), and then parse the string as + * JSON. + */ + function parseSourceMapInput(str) { + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); + } + exports.parseSourceMapInput = parseSourceMapInput; + + /** + * Compute the URL of a source given the the source root, the source's + * URL, and the source map's URL. + */ + function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { + sourceURL = sourceURL || ''; + + if (sourceRoot) { + // This follows what Chrome does. + if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { + sourceRoot += '/'; + } + // The spec says: + // Line 4: An optional source root, useful for relocating source + // files on a server or removing repeated values in the + // “sources” entry. This value is prepended to the individual + // entries in the “source” field. + sourceURL = sourceRoot + sourceURL; + } + + // Historically, SourceMapConsumer did not take the sourceMapURL as + // a parameter. This mode is still somewhat supported, which is why + // this code block is conditional. However, it's preferable to pass + // the source map URL to SourceMapConsumer, so that this function + // can implement the source URL resolution algorithm as outlined in + // the spec. This block is basically the equivalent of: + // new URL(sourceURL, sourceMapURL).toString() + // ... except it avoids using URL, which wasn't available in the + // older releases of node still supported by this library. + // + // The spec says: + // If the sources are not absolute URLs after prepending of the + // “sourceRoot”, the sources are resolved relative to the + // SourceMap (like resolving script src in a html document). + if (sourceMapURL) { + var parsed = urlParse(sourceMapURL); + if (!parsed) { + throw new Error("sourceMapURL could not be parsed"); + } + if (parsed.path) { + // Strip the last path component, but keep the "/". + var index = parsed.path.lastIndexOf('/'); + if (index >= 0) { + parsed.path = parsed.path.substring(0, index + 1); + } + } + sourceURL = join(urlGenerate(parsed), sourceURL); + } + + return normalize(sourceURL); + } + exports.computeSourceURL = computeSourceURL; + } (util)); + return util; +} + +var arraySet = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredArraySet; + +function requireArraySet () { + if (hasRequiredArraySet) return arraySet; + hasRequiredArraySet = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var util = requireUtil(); + var has = Object.prototype.hasOwnProperty; + var hasNativeMap = typeof Map !== "undefined"; + + /** + * A data structure which is a combination of an array and a set. Adding a new + * member is O(1), testing for membership is O(1), and finding the index of an + * element is O(1). Removing elements from the set is not supported. Only + * strings are supported for membership. + */ + function ArraySet() { + this._array = []; + this._set = hasNativeMap ? new Map() : Object.create(null); + } + + /** + * Static method for creating ArraySet instances from an existing array. + */ + ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { + var set = new ArraySet(); + for (var i = 0, len = aArray.length; i < len; i++) { + set.add(aArray[i], aAllowDuplicates); + } + return set; + }; + + /** + * Return how many unique items are in this ArraySet. If duplicates have been + * added, than those do not count towards the size. + * + * @returns Number + */ + ArraySet.prototype.size = function ArraySet_size() { + return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; + }; + + /** + * Add the given string to this set. + * + * @param String aStr + */ + ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { + var sStr = hasNativeMap ? aStr : util.toSetString(aStr); + var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); + var idx = this._array.length; + if (!isDuplicate || aAllowDuplicates) { + this._array.push(aStr); + } + if (!isDuplicate) { + if (hasNativeMap) { + this._set.set(aStr, idx); + } else { + this._set[sStr] = idx; + } + } + }; + + /** + * Is the given string a member of this set? + * + * @param String aStr + */ + ArraySet.prototype.has = function ArraySet_has(aStr) { + if (hasNativeMap) { + return this._set.has(aStr); + } else { + var sStr = util.toSetString(aStr); + return has.call(this._set, sStr); + } + }; + + /** + * What is the index of the given string in the array? + * + * @param String aStr + */ + ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { + if (hasNativeMap) { + var idx = this._set.get(aStr); + if (idx >= 0) { + return idx; + } + } else { + var sStr = util.toSetString(aStr); + if (has.call(this._set, sStr)) { + return this._set[sStr]; + } + } + + throw new Error('"' + aStr + '" is not in the set.'); + }; + + /** + * What is the element at the given index? + * + * @param Number aIdx + */ + ArraySet.prototype.at = function ArraySet_at(aIdx) { + if (aIdx >= 0 && aIdx < this._array.length) { + return this._array[aIdx]; + } + throw new Error('No element indexed by ' + aIdx); + }; + + /** + * Returns the array representation of this set (which has the proper indices + * indicated by indexOf). Note that this is a copy of the internal array used + * for storing the members so that no one can mess with internal state. + */ + ArraySet.prototype.toArray = function ArraySet_toArray() { + return this._array.slice(); + }; + + arraySet.ArraySet = ArraySet; + return arraySet; +} + +var mappingList = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredMappingList; + +function requireMappingList () { + if (hasRequiredMappingList) return mappingList; + hasRequiredMappingList = 1; + /* + * Copyright 2014 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var util = requireUtil(); + + /** + * Determine whether mappingB is after mappingA with respect to generated + * position. + */ + function generatedPositionAfter(mappingA, mappingB) { + // Optimized for most common case + var lineA = mappingA.generatedLine; + var lineB = mappingB.generatedLine; + var columnA = mappingA.generatedColumn; + var columnB = mappingB.generatedColumn; + return lineB > lineA || lineB == lineA && columnB >= columnA || + util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; + } + + /** + * A data structure to provide a sorted view of accumulated mappings in a + * performance conscious manner. It trades a neglibable overhead in general + * case for a large speedup in case of mappings being added in order. + */ + function MappingList() { + this._array = []; + this._sorted = true; + // Serves as infimum + this._last = {generatedLine: -1, generatedColumn: 0}; + } + + /** + * Iterate through internal items. This method takes the same arguments that + * `Array.prototype.forEach` takes. + * + * NOTE: The order of the mappings is NOT guaranteed. + */ + MappingList.prototype.unsortedForEach = + function MappingList_forEach(aCallback, aThisArg) { + this._array.forEach(aCallback, aThisArg); + }; + + /** + * Add the given source mapping. + * + * @param Object aMapping + */ + MappingList.prototype.add = function MappingList_add(aMapping) { + if (generatedPositionAfter(this._last, aMapping)) { + this._last = aMapping; + this._array.push(aMapping); + } else { + this._sorted = false; + this._array.push(aMapping); + } + }; + + /** + * Returns the flat, sorted array of mappings. The mappings are sorted by + * generated position. + * + * WARNING: This method returns internal data without copying, for + * performance. The return value must NOT be mutated, and should be treated as + * an immutable borrow. If you want to take ownership, you must make your own + * copy. + */ + MappingList.prototype.toArray = function MappingList_toArray() { + if (!this._sorted) { + this._array.sort(util.compareByGeneratedPositionsInflated); + this._sorted = true; + } + return this._array; + }; + + mappingList.MappingList = MappingList; + return mappingList; +} + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredSourceMapGenerator; + +function requireSourceMapGenerator () { + if (hasRequiredSourceMapGenerator) return sourceMapGenerator; + hasRequiredSourceMapGenerator = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var base64VLQ = requireBase64Vlq(); + var util = requireUtil(); + var ArraySet = requireArraySet().ArraySet; + var MappingList = requireMappingList().MappingList; + + /** + * An instance of the SourceMapGenerator represents a source map which is + * being built incrementally. You may pass an object with the following + * properties: + * + * - file: The filename of the generated source. + * - sourceRoot: A root for all relative URLs in this source map. + */ + function SourceMapGenerator(aArgs) { + if (!aArgs) { + aArgs = {}; + } + this._file = util.getArg(aArgs, 'file', null); + this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); + this._skipValidation = util.getArg(aArgs, 'skipValidation', false); + this._sources = new ArraySet(); + this._names = new ArraySet(); + this._mappings = new MappingList(); + this._sourcesContents = null; + } + + SourceMapGenerator.prototype._version = 3; + + /** + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param aSourceMapConsumer The SourceMap. + */ + SourceMapGenerator.fromSourceMap = + function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { + var sourceRoot = aSourceMapConsumer.sourceRoot; + var generator = new SourceMapGenerator({ + file: aSourceMapConsumer.file, + sourceRoot: sourceRoot + }); + aSourceMapConsumer.eachMapping(function (mapping) { + var newMapping = { + generated: { + line: mapping.generatedLine, + column: mapping.generatedColumn + } + }; + + if (mapping.source != null) { + newMapping.source = mapping.source; + if (sourceRoot != null) { + newMapping.source = util.relative(sourceRoot, newMapping.source); + } + + newMapping.original = { + line: mapping.originalLine, + column: mapping.originalColumn + }; + + if (mapping.name != null) { + newMapping.name = mapping.name; + } + } + + generator.addMapping(newMapping); + }); + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var sourceRelative = sourceFile; + if (sourceRoot !== null) { + sourceRelative = util.relative(sourceRoot, sourceFile); + } + + if (!generator._sources.has(sourceRelative)) { + generator._sources.add(sourceRelative); + } + + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + generator.setSourceContent(sourceFile, content); + } + }); + return generator; + }; + + /** + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. + */ + SourceMapGenerator.prototype.addMapping = + function SourceMapGenerator_addMapping(aArgs) { + var generated = util.getArg(aArgs, 'generated'); + var original = util.getArg(aArgs, 'original', null); + var source = util.getArg(aArgs, 'source', null); + var name = util.getArg(aArgs, 'name', null); + + if (!this._skipValidation) { + this._validateMapping(generated, original, source, name); + } + + if (source != null) { + source = String(source); + if (!this._sources.has(source)) { + this._sources.add(source); + } + } + + if (name != null) { + name = String(name); + if (!this._names.has(name)) { + this._names.add(name); + } + } + + this._mappings.add({ + generatedLine: generated.line, + generatedColumn: generated.column, + originalLine: original != null && original.line, + originalColumn: original != null && original.column, + source: source, + name: name + }); + }; + + /** + * Set the source content for a source file. + */ + SourceMapGenerator.prototype.setSourceContent = + function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { + var source = aSourceFile; + if (this._sourceRoot != null) { + source = util.relative(this._sourceRoot, source); + } + + if (aSourceContent != null) { + // Add the source content to the _sourcesContents map. + // Create a new _sourcesContents map if the property is null. + if (!this._sourcesContents) { + this._sourcesContents = Object.create(null); + } + this._sourcesContents[util.toSetString(source)] = aSourceContent; + } else if (this._sourcesContents) { + // Remove the source file from the _sourcesContents map. + // If the _sourcesContents map is empty, set the property to null. + delete this._sourcesContents[util.toSetString(source)]; + if (Object.keys(this._sourcesContents).length === 0) { + this._sourcesContents = null; + } + } + }; + + /** + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param aSourceMapConsumer The source map to be applied. + * @param aSourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param aSourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. + */ + SourceMapGenerator.prototype.applySourceMap = + function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { + var sourceFile = aSourceFile; + // If aSourceFile is omitted, we will use the file property of the SourceMap + if (aSourceFile == null) { + if (aSourceMapConsumer.file == null) { + throw new Error( + 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + + 'or the source map\'s "file" property. Both were omitted.' + ); + } + sourceFile = aSourceMapConsumer.file; + } + var sourceRoot = this._sourceRoot; + // Make "sourceFile" relative if an absolute Url is passed. + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + // Applying the SourceMap can add and remove items from the sources and + // the names array. + var newSources = new ArraySet(); + var newNames = new ArraySet(); + + // Find mappings for the "sourceFile" + this._mappings.unsortedForEach(function (mapping) { + if (mapping.source === sourceFile && mapping.originalLine != null) { + // Check if it can be mapped by the source map, then update the mapping. + var original = aSourceMapConsumer.originalPositionFor({ + line: mapping.originalLine, + column: mapping.originalColumn + }); + if (original.source != null) { + // Copy mapping + mapping.source = original.source; + if (aSourceMapPath != null) { + mapping.source = util.join(aSourceMapPath, mapping.source); + } + if (sourceRoot != null) { + mapping.source = util.relative(sourceRoot, mapping.source); + } + mapping.originalLine = original.line; + mapping.originalColumn = original.column; + if (original.name != null) { + mapping.name = original.name; + } + } + } + + var source = mapping.source; + if (source != null && !newSources.has(source)) { + newSources.add(source); + } + + var name = mapping.name; + if (name != null && !newNames.has(name)) { + newNames.add(name); + } + + }, this); + this._sources = newSources; + this._names = newNames; + + // Copy sourcesContents of applied map. + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aSourceMapPath != null) { + sourceFile = util.join(aSourceMapPath, sourceFile); + } + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + this.setSourceContent(sourceFile, content); + } + }, this); + }; + + /** + * A mapping can have one of the three levels of data: + * + * 1. Just the generated position. + * 2. The Generated position, original position, and original source. + * 3. Generated and original position, original source, as well as a name + * token. + * + * To maintain consistency, we validate that any new mapping being added falls + * in to one of these categories. + */ + SourceMapGenerator.prototype._validateMapping = + function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, + aName) { + // When aOriginal is truthy but has empty values for .line and .column, + // it is most likely a programmer error. In this case we throw a very + // specific error message to try to guide them the right way. + // For example: https://github.com/Polymer/polymer-bundler/pull/519 + if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { + throw new Error( + 'original.line and original.column are not numbers -- you probably meant to omit ' + + 'the original mapping entirely and only map the generated position. If so, pass ' + + 'null for the original mapping instead of an object with empty or null values.' + ); + } + + if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aGenerated.line > 0 && aGenerated.column >= 0 + && !aOriginal && !aSource && !aName) { + // Case 1. + return; + } + else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aOriginal && 'line' in aOriginal && 'column' in aOriginal + && aGenerated.line > 0 && aGenerated.column >= 0 + && aOriginal.line > 0 && aOriginal.column >= 0 + && aSource) { + // Cases 2 and 3. + return; + } + else { + throw new Error('Invalid mapping: ' + JSON.stringify({ + generated: aGenerated, + source: aSource, + original: aOriginal, + name: aName + })); + } + }; + + /** + * Serialize the accumulated mappings in to the stream of base 64 VLQs + * specified by the source map format. + */ + SourceMapGenerator.prototype._serializeMappings = + function SourceMapGenerator_serializeMappings() { + var previousGeneratedColumn = 0; + var previousGeneratedLine = 1; + var previousOriginalColumn = 0; + var previousOriginalLine = 0; + var previousName = 0; + var previousSource = 0; + var result = ''; + var next; + var mapping; + var nameIdx; + var sourceIdx; + + var mappings = this._mappings.toArray(); + for (var i = 0, len = mappings.length; i < len; i++) { + mapping = mappings[i]; + next = ''; + + if (mapping.generatedLine !== previousGeneratedLine) { + previousGeneratedColumn = 0; + while (mapping.generatedLine !== previousGeneratedLine) { + next += ';'; + previousGeneratedLine++; + } + } + else { + if (i > 0) { + if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { + continue; + } + next += ','; + } + } + + next += base64VLQ.encode(mapping.generatedColumn + - previousGeneratedColumn); + previousGeneratedColumn = mapping.generatedColumn; + + if (mapping.source != null) { + sourceIdx = this._sources.indexOf(mapping.source); + next += base64VLQ.encode(sourceIdx - previousSource); + previousSource = sourceIdx; + + // lines are stored 0-based in SourceMap spec version 3 + next += base64VLQ.encode(mapping.originalLine - 1 + - previousOriginalLine); + previousOriginalLine = mapping.originalLine - 1; + + next += base64VLQ.encode(mapping.originalColumn + - previousOriginalColumn); + previousOriginalColumn = mapping.originalColumn; + + if (mapping.name != null) { + nameIdx = this._names.indexOf(mapping.name); + next += base64VLQ.encode(nameIdx - previousName); + previousName = nameIdx; + } + } + + result += next; + } + + return result; + }; + + SourceMapGenerator.prototype._generateSourcesContent = + function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { + return aSources.map(function (source) { + if (!this._sourcesContents) { + return null; + } + if (aSourceRoot != null) { + source = util.relative(aSourceRoot, source); + } + var key = util.toSetString(source); + return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) + ? this._sourcesContents[key] + : null; + }, this); + }; + + /** + * Externalize the source map. + */ + SourceMapGenerator.prototype.toJSON = + function SourceMapGenerator_toJSON() { + var map = { + version: this._version, + sources: this._sources.toArray(), + names: this._names.toArray(), + mappings: this._serializeMappings() + }; + if (this._file != null) { + map.file = this._file; + } + if (this._sourceRoot != null) { + map.sourceRoot = this._sourceRoot; + } + if (this._sourcesContents) { + map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); + } + + return map; + }; + + /** + * Render the source map being generated to a string. + */ + SourceMapGenerator.prototype.toString = + function SourceMapGenerator_toString() { + return JSON.stringify(this.toJSON()); + }; + + sourceMapGenerator.SourceMapGenerator = SourceMapGenerator; + return sourceMapGenerator; +} + +var sourceMapConsumer = {}; + +var binarySearch = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredBinarySearch; + +function requireBinarySearch () { + if (hasRequiredBinarySearch) return binarySearch; + hasRequiredBinarySearch = 1; + (function (exports) { + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + exports.GREATEST_LOWER_BOUND = 1; + exports.LEAST_UPPER_BOUND = 2; + + /** + * Recursive implementation of binary search. + * + * @param aLow Indices here and lower do not contain the needle. + * @param aHigh Indices here and higher do not contain the needle. + * @param aNeedle The element being searched for. + * @param aHaystack The non-empty array being searched. + * @param aCompare Function which takes two elements and returns -1, 0, or 1. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + */ + function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { + // This function terminates when one of the following is true: + // + // 1. We find the exact element we are looking for. + // + // 2. We did not find the exact element, but we can return the index of + // the next-closest element. + // + // 3. We did not find the exact element, and there is no next-closest + // element than the one we are searching for, so we return -1. + var mid = Math.floor((aHigh - aLow) / 2) + aLow; + var cmp = aCompare(aNeedle, aHaystack[mid], true); + if (cmp === 0) { + // Found the element we are looking for. + return mid; + } + else if (cmp > 0) { + // Our needle is greater than aHaystack[mid]. + if (aHigh - mid > 1) { + // The element is in the upper half. + return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); + } + + // The exact needle element was not found in this haystack. Determine if + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return aHigh < aHaystack.length ? aHigh : -1; + } else { + return mid; + } + } + else { + // Our needle is less than aHaystack[mid]. + if (mid - aLow > 1) { + // The element is in the lower half. + return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); + } + + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return mid; + } else { + return aLow < 0 ? -1 : aLow; + } + } + } + + /** + * This is an implementation of binary search which will always try and return + * the index of the closest element if there is no exact hit. This is because + * mappings between original and generated line/col pairs are single points, + * and there is an implicit region between each of them, so a miss just means + * that you aren't on the very start of a region. + * + * @param aNeedle The element you are looking for. + * @param aHaystack The array that is being searched. + * @param aCompare A function which takes the needle and an element in the + * array and returns -1, 0, or 1 depending on whether the needle is less + * than, equal to, or greater than the element, respectively. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. + */ + exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { + if (aHaystack.length === 0) { + return -1; + } + + var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, + aCompare, aBias || exports.GREATEST_LOWER_BOUND); + if (index < 0) { + return -1; + } + + // We have found either the exact element, or the next-closest element than + // the one we are searching for. However, there may be more than one such + // element. Make sure we always return the smallest of these. + while (index - 1 >= 0) { + if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { + break; + } + --index; + } + + return index; + }; + } (binarySearch)); + return binarySearch; +} + +var quickSort = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredQuickSort; + +function requireQuickSort () { + if (hasRequiredQuickSort) return quickSort; + hasRequiredQuickSort = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + // It turns out that some (most?) JavaScript engines don't self-host + // `Array.prototype.sort`. This makes sense because C++ will likely remain + // faster than JS when doing raw CPU-intensive sorting. However, when using a + // custom comparator function, calling back and forth between the VM's C++ and + // JIT'd JS is rather slow *and* loses JIT type information, resulting in + // worse generated code for the comparator function than would be optimal. In + // fact, when sorting with a comparator, these costs outweigh the benefits of + // sorting in C++. By using our own JS-implemented Quick Sort (below), we get + // a ~3500ms mean speed-up in `bench/bench.html`. + + /** + * Swap the elements indexed by `x` and `y` in the array `ary`. + * + * @param {Array} ary + * The array. + * @param {Number} x + * The index of the first item. + * @param {Number} y + * The index of the second item. + */ + function swap(ary, x, y) { + var temp = ary[x]; + ary[x] = ary[y]; + ary[y] = temp; + } + + /** + * Returns a random integer within the range `low .. high` inclusive. + * + * @param {Number} low + * The lower bound on the range. + * @param {Number} high + * The upper bound on the range. + */ + function randomIntInRange(low, high) { + return Math.round(low + (Math.random() * (high - low))); + } + + /** + * The Quick Sort algorithm. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + * @param {Number} p + * Start index of the array + * @param {Number} r + * End index of the array + */ + function doQuickSort(ary, comparator, p, r) { + // If our lower bound is less than our upper bound, we (1) partition the + // array into two pieces and (2) recurse on each half. If it is not, this is + // the empty array and our base case. + + if (p < r) { + // (1) Partitioning. + // + // The partitioning chooses a pivot between `p` and `r` and moves all + // elements that are less than or equal to the pivot to the before it, and + // all the elements that are greater than it after it. The effect is that + // once partition is done, the pivot is in the exact place it will be when + // the array is put in sorted order, and it will not need to be moved + // again. This runs in O(n) time. + + // Always choose a random pivot so that an input array which is reverse + // sorted does not cause O(n^2) running time. + var pivotIndex = randomIntInRange(p, r); + var i = p - 1; + + swap(ary, pivotIndex, r); + var pivot = ary[r]; + + // Immediately after `j` is incremented in this loop, the following hold + // true: + // + // * Every element in `ary[p .. i]` is less than or equal to the pivot. + // + // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. + for (var j = p; j < r; j++) { + if (comparator(ary[j], pivot) <= 0) { + i += 1; + swap(ary, i, j); + } + } + + swap(ary, i + 1, j); + var q = i + 1; + + // (2) Recurse on each half. + + doQuickSort(ary, comparator, p, q - 1); + doQuickSort(ary, comparator, q + 1, r); + } + } + + /** + * Sort the given array in-place with the given comparator function. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + */ + quickSort.quickSort = function (ary, comparator) { + doQuickSort(ary, comparator, 0, ary.length - 1); + }; + return quickSort; +} + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredSourceMapConsumer; + +function requireSourceMapConsumer () { + if (hasRequiredSourceMapConsumer) return sourceMapConsumer; + hasRequiredSourceMapConsumer = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var util = requireUtil(); + var binarySearch = requireBinarySearch(); + var ArraySet = requireArraySet().ArraySet; + var base64VLQ = requireBase64Vlq(); + var quickSort = requireQuickSort().quickSort; + + function SourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + return sourceMap.sections != null + ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) + : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); + } + + SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { + return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); + }; + + /** + * The version of the source mapping spec that we are consuming. + */ + SourceMapConsumer.prototype._version = 3; + + // `__generatedMappings` and `__originalMappings` are arrays that hold the + // parsed mapping coordinates from the source map's "mappings" attribute. They + // are lazily instantiated, accessed via the `_generatedMappings` and + // `_originalMappings` getters respectively, and we only parse the mappings + // and create these arrays once queried for a source location. We jump through + // these hoops because there can be many thousands of mappings, and parsing + // them is expensive, so we only want to do it if we must. + // + // Each object in the arrays is of the form: + // + // { + // generatedLine: The line number in the generated code, + // generatedColumn: The column number in the generated code, + // source: The path to the original source file that generated this + // chunk of code, + // originalLine: The line number in the original source that + // corresponds to this chunk of generated code, + // originalColumn: The column number in the original source that + // corresponds to this chunk of generated code, + // name: The name of the original symbol which generated this chunk of + // code. + // } + // + // All properties except for `generatedLine` and `generatedColumn` can be + // `null`. + // + // `_generatedMappings` is ordered by the generated positions. + // + // `_originalMappings` is ordered by the original positions. + + SourceMapConsumer.prototype.__generatedMappings = null; + Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__generatedMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } + + return this.__generatedMappings; + } + }); + + SourceMapConsumer.prototype.__originalMappings = null; + Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__originalMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } + + return this.__originalMappings; + } + }); + + SourceMapConsumer.prototype._charIsMappingSeparator = + function SourceMapConsumer_charIsMappingSeparator(aStr, index) { + var c = aStr.charAt(index); + return c === ";" || c === ","; + }; + + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + SourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + throw new Error("Subclasses must implement _parseMappings"); + }; + + SourceMapConsumer.GENERATED_ORDER = 1; + SourceMapConsumer.ORIGINAL_ORDER = 2; + + SourceMapConsumer.GREATEST_LOWER_BOUND = 1; + SourceMapConsumer.LEAST_UPPER_BOUND = 2; + + /** + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. + * + * @param Function aCallback + * The function that is called with each mapping. + * @param Object aContext + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param aOrder + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. + */ + SourceMapConsumer.prototype.eachMapping = + function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { + var context = aContext || null; + var order = aOrder || SourceMapConsumer.GENERATED_ORDER; + + var mappings; + switch (order) { + case SourceMapConsumer.GENERATED_ORDER: + mappings = this._generatedMappings; + break; + case SourceMapConsumer.ORIGINAL_ORDER: + mappings = this._originalMappings; + break; + default: + throw new Error("Unknown order of iteration."); + } + + var sourceRoot = this.sourceRoot; + mappings.map(function (mapping) { + var source = mapping.source === null ? null : this._sources.at(mapping.source); + source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); + return { + source: source, + generatedLine: mapping.generatedLine, + generatedColumn: mapping.generatedColumn, + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: mapping.name === null ? null : this._names.at(mapping.name) + }; + }, this).forEach(aCallback, context); + }; + + /** + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number is 1-based. + * - column: Optional. the column number in the original source. + * The column number is 0-based. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + SourceMapConsumer.prototype.allGeneratedPositionsFor = + function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { + var line = util.getArg(aArgs, 'line'); + + // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping + // returns the index of the closest mapping less than the needle. By + // setting needle.originalColumn to 0, we thus find the last mapping for + // the given line, provided such a mapping exists. + var needle = { + source: util.getArg(aArgs, 'source'), + originalLine: line, + originalColumn: util.getArg(aArgs, 'column', 0) + }; + + needle.source = this._findSourceIndex(needle.source); + if (needle.source < 0) { + return []; + } + + var mappings = []; + + var index = this._findMapping(needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + binarySearch.LEAST_UPPER_BOUND); + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (aArgs.column === undefined) { + var originalLine = mapping.originalLine; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we found. Since + // mappings are sorted, this is guaranteed to find all mappings for + // the line we found. + while (mapping && mapping.originalLine === originalLine) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } else { + var originalColumn = mapping.originalColumn; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we were searching for. + // Since mappings are sorted, this is guaranteed to find all mappings for + // the line we are searching for. + while (mapping && + mapping.originalLine === line && + mapping.originalColumn == originalColumn) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } + } + + return mappings; + }; + + sourceMapConsumer.SourceMapConsumer = SourceMapConsumer; + + /** + * A BasicSourceMapConsumer instance represents a parsed source map which we can + * query for information about the original file positions by giving it a file + * position in the generated source. + * + * The first parameter is the raw source map (either as a JSON string, or + * already parsed to an object). According to the spec, source maps have the + * following attributes: + * + * - version: Which version of the source map spec this map is following. + * - sources: An array of URLs to the original source files. + * - names: An array of identifiers which can be referrenced by individual mappings. + * - sourceRoot: Optional. The URL root from which all sources are relative. + * - sourcesContent: Optional. An array of contents of the original source files. + * - mappings: A string of base64 VLQs which contain the actual mappings. + * - file: Optional. The generated file this source map is associated with. + * + * Here is an example source map, taken from the source map spec[0]: + * + * { + * version : 3, + * file: "out.js", + * sourceRoot : "", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AA,AB;;ABCDE;" + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# + */ + function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sources = util.getArg(sourceMap, 'sources'); + // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which + // requires the array) to play nice here. + var names = util.getArg(sourceMap, 'names', []); + var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); + var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); + var mappings = util.getArg(sourceMap, 'mappings'); + var file = util.getArg(sourceMap, 'file', null); + + // Once again, Sass deviates from the spec and supplies the version as a + // string rather than a number, so we use loose equality checking here. + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + if (sourceRoot) { + sourceRoot = util.normalize(sourceRoot); + } + + sources = sources + .map(String) + // Some source maps produce relative source paths like "./foo.js" instead of + // "foo.js". Normalize these first so that future comparisons will succeed. + // See bugzil.la/1090768. + .map(util.normalize) + // Always ensure that absolute sources are internally stored relative to + // the source root, if the source root is absolute. Not doing this would + // be particularly problematic when the source root is a prefix of the + // source (valid, but why??). See github issue #199 and bugzil.la/1188982. + .map(function (source) { + return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) + ? util.relative(sourceRoot, source) + : source; + }); + + // Pass `true` below to allow duplicate names and sources. While source maps + // are intended to be compressed and deduplicated, the TypeScript compiler + // sometimes generates source maps with duplicates in them. See Github issue + // #72 and bugzil.la/889492. + this._names = ArraySet.fromArray(names.map(String), true); + this._sources = ArraySet.fromArray(sources, true); + + this._absoluteSources = this._sources.toArray().map(function (s) { + return util.computeSourceURL(sourceRoot, s, aSourceMapURL); + }); + + this.sourceRoot = sourceRoot; + this.sourcesContent = sourcesContent; + this._mappings = mappings; + this._sourceMapURL = aSourceMapURL; + this.file = file; + } + + BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); + BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; + + /** + * Utility function to find the index of a source. Returns -1 if not + * found. + */ + BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } + + if (this._sources.has(relativeSource)) { + return this._sources.indexOf(relativeSource); + } + + // Maybe aSource is an absolute URL as returned by |sources|. In + // this case we can't simply undo the transform. + var i; + for (i = 0; i < this._absoluteSources.length; ++i) { + if (this._absoluteSources[i] == aSource) { + return i; + } + } + + return -1; + }; + + /** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param SourceMapGenerator aSourceMap + * The source map that will be consumed. + * @param String aSourceMapURL + * The URL at which the source map can be found (optional) + * @returns BasicSourceMapConsumer + */ + BasicSourceMapConsumer.fromSourceMap = + function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { + var smc = Object.create(BasicSourceMapConsumer.prototype); + + var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); + var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); + smc.sourceRoot = aSourceMap._sourceRoot; + smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), + smc.sourceRoot); + smc.file = aSourceMap._file; + smc._sourceMapURL = aSourceMapURL; + smc._absoluteSources = smc._sources.toArray().map(function (s) { + return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); + }); + + // Because we are modifying the entries (by converting string sources and + // names to indices into the sources and names ArraySets), we have to make + // a copy of the entry or else bad things happen. Shared mutable state + // strikes again! See github issue #191. + + var generatedMappings = aSourceMap._mappings.toArray().slice(); + var destGeneratedMappings = smc.__generatedMappings = []; + var destOriginalMappings = smc.__originalMappings = []; + + for (var i = 0, length = generatedMappings.length; i < length; i++) { + var srcMapping = generatedMappings[i]; + var destMapping = new Mapping; + destMapping.generatedLine = srcMapping.generatedLine; + destMapping.generatedColumn = srcMapping.generatedColumn; + + if (srcMapping.source) { + destMapping.source = sources.indexOf(srcMapping.source); + destMapping.originalLine = srcMapping.originalLine; + destMapping.originalColumn = srcMapping.originalColumn; + + if (srcMapping.name) { + destMapping.name = names.indexOf(srcMapping.name); + } + + destOriginalMappings.push(destMapping); + } + + destGeneratedMappings.push(destMapping); + } + + quickSort(smc.__originalMappings, util.compareByOriginalPositions); + + return smc; + }; + + /** + * The version of the source mapping spec that we are consuming. + */ + BasicSourceMapConsumer.prototype._version = 3; + + /** + * The list of original sources. + */ + Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { + get: function () { + return this._absoluteSources.slice(); + } + }); + + /** + * Provide the JIT with a nice shape / hidden class. + */ + function Mapping() { + this.generatedLine = 0; + this.generatedColumn = 0; + this.source = null; + this.originalLine = null; + this.originalColumn = null; + this.name = null; + } + + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + BasicSourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + var generatedLine = 1; + var previousGeneratedColumn = 0; + var previousOriginalLine = 0; + var previousOriginalColumn = 0; + var previousSource = 0; + var previousName = 0; + var length = aStr.length; + var index = 0; + var cachedSegments = {}; + var temp = {}; + var originalMappings = []; + var generatedMappings = []; + var mapping, str, segment, end, value; + + while (index < length) { + if (aStr.charAt(index) === ';') { + generatedLine++; + index++; + previousGeneratedColumn = 0; + } + else if (aStr.charAt(index) === ',') { + index++; + } + else { + mapping = new Mapping(); + mapping.generatedLine = generatedLine; + + // Because each offset is encoded relative to the previous one, + // many segments often have the same encoding. We can exploit this + // fact by caching the parsed variable length fields of each segment, + // allowing us to avoid a second parse if we encounter the same + // segment again. + for (end = index; end < length; end++) { + if (this._charIsMappingSeparator(aStr, end)) { + break; + } + } + str = aStr.slice(index, end); + + segment = cachedSegments[str]; + if (segment) { + index += str.length; + } else { + segment = []; + while (index < end) { + base64VLQ.decode(aStr, index, temp); + value = temp.value; + index = temp.rest; + segment.push(value); + } + + if (segment.length === 2) { + throw new Error('Found a source, but no line and column'); + } + + if (segment.length === 3) { + throw new Error('Found a source and line, but no column'); + } + + cachedSegments[str] = segment; + } + + // Generated column. + mapping.generatedColumn = previousGeneratedColumn + segment[0]; + previousGeneratedColumn = mapping.generatedColumn; + + if (segment.length > 1) { + // Original source. + mapping.source = previousSource + segment[1]; + previousSource += segment[1]; + + // Original line. + mapping.originalLine = previousOriginalLine + segment[2]; + previousOriginalLine = mapping.originalLine; + // Lines are stored 0-based + mapping.originalLine += 1; + + // Original column. + mapping.originalColumn = previousOriginalColumn + segment[3]; + previousOriginalColumn = mapping.originalColumn; + + if (segment.length > 4) { + // Original name. + mapping.name = previousName + segment[4]; + previousName += segment[4]; + } + } + + generatedMappings.push(mapping); + if (typeof mapping.originalLine === 'number') { + originalMappings.push(mapping); + } + } + } + + quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); + this.__generatedMappings = generatedMappings; + + quickSort(originalMappings, util.compareByOriginalPositions); + this.__originalMappings = originalMappings; + }; + + /** + * Find the mapping that best matches the hypothetical "needle" mapping that + * we are searching for in the given "haystack" of mappings. + */ + BasicSourceMapConsumer.prototype._findMapping = + function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, + aColumnName, aComparator, aBias) { + // To return the position we are searching for, we must first find the + // mapping for the given position and then return the opposite position it + // points to. Because the mappings are sorted, we can use binary search to + // find the best mapping. + + if (aNeedle[aLineName] <= 0) { + throw new TypeError('Line must be greater than or equal to 1, got ' + + aNeedle[aLineName]); + } + if (aNeedle[aColumnName] < 0) { + throw new TypeError('Column must be greater than or equal to 0, got ' + + aNeedle[aColumnName]); + } + + return binarySearch.search(aNeedle, aMappings, aComparator, aBias); + }; + + /** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ + BasicSourceMapConsumer.prototype.computeColumnSpans = + function SourceMapConsumer_computeColumnSpans() { + for (var index = 0; index < this._generatedMappings.length; ++index) { + var mapping = this._generatedMappings[index]; + + // Mappings do not contain a field for the last generated columnt. We + // can come up with an optimistic estimate, however, by assuming that + // mappings are contiguous (i.e. given two consecutive mappings, the + // first mapping ends where the second one starts). + if (index + 1 < this._generatedMappings.length) { + var nextMapping = this._generatedMappings[index + 1]; + + if (mapping.generatedLine === nextMapping.generatedLine) { + mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; + continue; + } + } + + // The last mapping for each line spans the entire line. + mapping.lastGeneratedColumn = Infinity; + } + }; + + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ + BasicSourceMapConsumer.prototype.originalPositionFor = + function SourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._generatedMappings, + "generatedLine", + "generatedColumn", + util.compareByGeneratedPositionsDeflated, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._generatedMappings[index]; + + if (mapping.generatedLine === needle.generatedLine) { + var source = util.getArg(mapping, 'source', null); + if (source !== null) { + source = this._sources.at(source); + source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); + } + var name = util.getArg(mapping, 'name', null); + if (name !== null) { + name = this._names.at(name); + } + return { + source: source, + line: util.getArg(mapping, 'originalLine', null), + column: util.getArg(mapping, 'originalColumn', null), + name: name + }; + } + } + + return { + source: null, + line: null, + column: null, + name: null + }; + }; + + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ + BasicSourceMapConsumer.prototype.hasContentsOfAllSources = + function BasicSourceMapConsumer_hasContentsOfAllSources() { + if (!this.sourcesContent) { + return false; + } + return this.sourcesContent.length >= this._sources.size() && + !this.sourcesContent.some(function (sc) { return sc == null; }); + }; + + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + BasicSourceMapConsumer.prototype.sourceContentFor = + function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + if (!this.sourcesContent) { + return null; + } + + var index = this._findSourceIndex(aSource); + if (index >= 0) { + return this.sourcesContent[index]; + } + + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } + + var url; + if (this.sourceRoot != null + && (url = util.urlParse(this.sourceRoot))) { + // XXX: file:// URIs and absolute paths lead to unexpected behavior for + // many users. We can help them out when they expect file:// URIs to + // behave like it would if they were running a local HTTP server. See + // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. + var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); + if (url.scheme == "file" + && this._sources.has(fileUriAbsPath)) { + return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] + } + + if ((!url.path || url.path == "/") + && this._sources.has("/" + relativeSource)) { + return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; + } + } + + // This function is used recursively from + // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we + // don't want to throw if we can't find the source - we just want to + // return null, so we provide a flag to exit gracefully. + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + relativeSource + '" is not in the SourceMap.'); + } + }; + + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + BasicSourceMapConsumer.prototype.generatedPositionFor = + function SourceMapConsumer_generatedPositionFor(aArgs) { + var source = util.getArg(aArgs, 'source'); + source = this._findSourceIndex(source); + if (source < 0) { + return { + line: null, + column: null, + lastColumn: null + }; + } + + var needle = { + source: source, + originalLine: util.getArg(aArgs, 'line'), + originalColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (mapping.source === needle.source) { + return { + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }; + } + } + + return { + line: null, + column: null, + lastColumn: null + }; + }; + + sourceMapConsumer.BasicSourceMapConsumer = BasicSourceMapConsumer; + + /** + * An IndexedSourceMapConsumer instance represents a parsed source map which + * we can query for information. It differs from BasicSourceMapConsumer in + * that it takes "indexed" source maps (i.e. ones with a "sections" field) as + * input. + * + * The first parameter is a raw source map (either as a JSON string, or already + * parsed to an object). According to the spec for indexed source maps, they + * have the following attributes: + * + * - version: Which version of the source map spec this map is following. + * - file: Optional. The generated file this source map is associated with. + * - sections: A list of section definitions. + * + * Each value under the "sections" field has two fields: + * - offset: The offset into the original specified at which this section + * begins to apply, defined as an object with a "line" and "column" + * field. + * - map: A source map definition. This source map could also be indexed, + * but doesn't have to be. + * + * Instead of the "map" field, it's also possible to have a "url" field + * specifying a URL to retrieve a source map from, but that's currently + * unsupported. + * + * Here's an example source map, taken from the source map spec[0], but + * modified to omit a section which uses the "url" field. + * + * { + * version : 3, + * file: "app.js", + * sections: [{ + * offset: {line:100, column:10}, + * map: { + * version : 3, + * file: "section.js", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AAAA,E;;ABCDE;" + * } + * }], + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt + */ + function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sections = util.getArg(sourceMap, 'sections'); + + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + this._sources = new ArraySet(); + this._names = new ArraySet(); + + var lastOffset = { + line: -1, + column: 0 + }; + this._sections = sections.map(function (s) { + if (s.url) { + // The url field will require support for asynchronicity. + // See https://github.com/mozilla/source-map/issues/16 + throw new Error('Support for url field in sections not implemented.'); + } + var offset = util.getArg(s, 'offset'); + var offsetLine = util.getArg(offset, 'line'); + var offsetColumn = util.getArg(offset, 'column'); + + if (offsetLine < lastOffset.line || + (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { + throw new Error('Section offsets must be ordered and non-overlapping.'); + } + lastOffset = offset; + + return { + generatedOffset: { + // The offset fields are 0-based, but we use 1-based indices when + // encoding/decoding from VLQ. + generatedLine: offsetLine + 1, + generatedColumn: offsetColumn + 1 + }, + consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) + } + }); + } + + IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); + IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; + + /** + * The version of the source mapping spec that we are consuming. + */ + IndexedSourceMapConsumer.prototype._version = 3; + + /** + * The list of original sources. + */ + Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { + get: function () { + var sources = []; + for (var i = 0; i < this._sections.length; i++) { + for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { + sources.push(this._sections[i].consumer.sources[j]); + } + } + return sources; + } + }); + + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ + IndexedSourceMapConsumer.prototype.originalPositionFor = + function IndexedSourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + // Find the section containing the generated position we're trying to map + // to an original position. + var sectionIndex = binarySearch.search(needle, this._sections, + function(needle, section) { + var cmp = needle.generatedLine - section.generatedOffset.generatedLine; + if (cmp) { + return cmp; + } + + return (needle.generatedColumn - + section.generatedOffset.generatedColumn); + }); + var section = this._sections[sectionIndex]; + + if (!section) { + return { + source: null, + line: null, + column: null, + name: null + }; + } + + return section.consumer.originalPositionFor({ + line: needle.generatedLine - + (section.generatedOffset.generatedLine - 1), + column: needle.generatedColumn - + (section.generatedOffset.generatedLine === needle.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + bias: aArgs.bias + }); + }; + + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ + IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = + function IndexedSourceMapConsumer_hasContentsOfAllSources() { + return this._sections.every(function (s) { + return s.consumer.hasContentsOfAllSources(); + }); + }; + + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + IndexedSourceMapConsumer.prototype.sourceContentFor = + function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + var content = section.consumer.sourceContentFor(aSource, true); + if (content) { + return content; + } + } + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + aSource + '" is not in the SourceMap.'); + } + }; + + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + IndexedSourceMapConsumer.prototype.generatedPositionFor = + function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + // Only consider this section if the requested source is in the list of + // sources of the consumer. + if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { + continue; + } + var generatedPosition = section.consumer.generatedPositionFor(aArgs); + if (generatedPosition) { + var ret = { + line: generatedPosition.line + + (section.generatedOffset.generatedLine - 1), + column: generatedPosition.column + + (section.generatedOffset.generatedLine === generatedPosition.line + ? section.generatedOffset.generatedColumn - 1 + : 0) + }; + return ret; + } + } + + return { + line: null, + column: null + }; + }; + + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + IndexedSourceMapConsumer.prototype._parseMappings = + function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { + this.__generatedMappings = []; + this.__originalMappings = []; + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + var sectionMappings = section.consumer._generatedMappings; + for (var j = 0; j < sectionMappings.length; j++) { + var mapping = sectionMappings[j]; + + var source = section.consumer._sources.at(mapping.source); + source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); + this._sources.add(source); + source = this._sources.indexOf(source); + + var name = null; + if (mapping.name) { + name = section.consumer._names.at(mapping.name); + this._names.add(name); + name = this._names.indexOf(name); + } + + // The mappings coming from the consumer for the section have + // generated positions relative to the start of the section, so we + // need to offset them to be relative to the start of the concatenated + // generated file. + var adjustedMapping = { + source: source, + generatedLine: mapping.generatedLine + + (section.generatedOffset.generatedLine - 1), + generatedColumn: mapping.generatedColumn + + (section.generatedOffset.generatedLine === mapping.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: name + }; + + this.__generatedMappings.push(adjustedMapping); + if (typeof adjustedMapping.originalLine === 'number') { + this.__originalMappings.push(adjustedMapping); + } + } + } + + quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); + quickSort(this.__originalMappings, util.compareByOriginalPositions); + }; + + sourceMapConsumer.IndexedSourceMapConsumer = IndexedSourceMapConsumer; + return sourceMapConsumer; +} + +var sourceNode = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredSourceNode; + +function requireSourceNode () { + if (hasRequiredSourceNode) return sourceNode; + hasRequiredSourceNode = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator; + var util = requireUtil(); + + // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other + // operating systems these days (capturing the result). + var REGEX_NEWLINE = /(\r?\n)/; + + // Newline character code for charCodeAt() comparisons + var NEWLINE_CODE = 10; + + // Private symbol for identifying `SourceNode`s when multiple versions of + // the source-map library are loaded. This MUST NOT CHANGE across + // versions! + var isSourceNode = "$$$isSourceNode$$$"; + + /** + * SourceNodes provide a way to abstract over interpolating/concatenating + * snippets of generated JavaScript source code while maintaining the line and + * column information associated with the original source code. + * + * @param aLine The original line number. + * @param aColumn The original column number. + * @param aSource The original source's filename. + * @param aChunks Optional. An array of strings which are snippets of + * generated JS, or other SourceNodes. + * @param aName The original identifier. + */ + function SourceNode(aLine, aColumn, aSource, aChunks, aName) { + this.children = []; + this.sourceContents = {}; + this.line = aLine == null ? null : aLine; + this.column = aColumn == null ? null : aColumn; + this.source = aSource == null ? null : aSource; + this.name = aName == null ? null : aName; + this[isSourceNode] = true; + if (aChunks != null) this.add(aChunks); + } + + /** + * Creates a SourceNode from generated code and a SourceMapConsumer. + * + * @param aGeneratedCode The generated code + * @param aSourceMapConsumer The SourceMap for the generated code + * @param aRelativePath Optional. The path that relative sources in the + * SourceMapConsumer should be relative to. + */ + SourceNode.fromStringWithSourceMap = + function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { + // The SourceNode we want to fill with the generated code + // and the SourceMap + var node = new SourceNode(); + + // All even indices of this array are one line of the generated code, + // while all odd indices are the newlines between two adjacent lines + // (since `REGEX_NEWLINE` captures its match). + // Processed fragments are accessed by calling `shiftNextLine`. + var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); + var remainingLinesIndex = 0; + var shiftNextLine = function() { + var lineContents = getNextLine(); + // The last line of a file might not have a newline. + var newLine = getNextLine() || ""; + return lineContents + newLine; + + function getNextLine() { + return remainingLinesIndex < remainingLines.length ? + remainingLines[remainingLinesIndex++] : undefined; + } + }; + + // We need to remember the position of "remainingLines" + var lastGeneratedLine = 1, lastGeneratedColumn = 0; + + // The generate SourceNodes we need a code range. + // To extract it current and last mapping is used. + // Here we store the last mapping. + var lastMapping = null; + + aSourceMapConsumer.eachMapping(function (mapping) { + if (lastMapping !== null) { + // We add the code from "lastMapping" to "mapping": + // First check if there is a new line in between. + if (lastGeneratedLine < mapping.generatedLine) { + // Associate first line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + lastGeneratedLine++; + lastGeneratedColumn = 0; + // The remaining code is added without mapping + } else { + // There is no new line in between. + // Associate the code between "lastGeneratedColumn" and + // "mapping.generatedColumn" with "lastMapping" + var nextLine = remainingLines[remainingLinesIndex] || ''; + var code = nextLine.substr(0, mapping.generatedColumn - + lastGeneratedColumn); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - + lastGeneratedColumn); + lastGeneratedColumn = mapping.generatedColumn; + addMappingWithCode(lastMapping, code); + // No more remaining code, continue + lastMapping = mapping; + return; + } + } + // We add the generated code until the first mapping + // to the SourceNode without any mapping. + // Each line is added as separate string. + while (lastGeneratedLine < mapping.generatedLine) { + node.add(shiftNextLine()); + lastGeneratedLine++; + } + if (lastGeneratedColumn < mapping.generatedColumn) { + var nextLine = remainingLines[remainingLinesIndex] || ''; + node.add(nextLine.substr(0, mapping.generatedColumn)); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); + lastGeneratedColumn = mapping.generatedColumn; + } + lastMapping = mapping; + }, this); + // We have processed all mappings. + if (remainingLinesIndex < remainingLines.length) { + if (lastMapping) { + // Associate the remaining code in the current line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + } + // and add the remaining lines without any mapping + node.add(remainingLines.splice(remainingLinesIndex).join("")); + } + + // Copy sourcesContent into SourceNode + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aRelativePath != null) { + sourceFile = util.join(aRelativePath, sourceFile); + } + node.setSourceContent(sourceFile, content); + } + }); + + return node; + + function addMappingWithCode(mapping, code) { + if (mapping === null || mapping.source === undefined) { + node.add(code); + } else { + var source = aRelativePath + ? util.join(aRelativePath, mapping.source) + : mapping.source; + node.add(new SourceNode(mapping.originalLine, + mapping.originalColumn, + source, + code, + mapping.name)); + } + } + }; + + /** + * Add a chunk of generated JS to this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ + SourceNode.prototype.add = function SourceNode_add(aChunk) { + if (Array.isArray(aChunk)) { + aChunk.forEach(function (chunk) { + this.add(chunk); + }, this); + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + if (aChunk) { + this.children.push(aChunk); + } + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; + }; + + /** + * Add a chunk of generated JS to the beginning of this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ + SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { + if (Array.isArray(aChunk)) { + for (var i = aChunk.length-1; i >= 0; i--) { + this.prepend(aChunk[i]); + } + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + this.children.unshift(aChunk); + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; + }; + + /** + * Walk over the tree of JS snippets in this node and its children. The + * walking function is called once for each snippet of JS and is passed that + * snippet and the its original associated source's line/column location. + * + * @param aFn The traversal function. + */ + SourceNode.prototype.walk = function SourceNode_walk(aFn) { + var chunk; + for (var i = 0, len = this.children.length; i < len; i++) { + chunk = this.children[i]; + if (chunk[isSourceNode]) { + chunk.walk(aFn); + } + else { + if (chunk !== '') { + aFn(chunk, { source: this.source, + line: this.line, + column: this.column, + name: this.name }); + } + } + } + }; + + /** + * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between + * each of `this.children`. + * + * @param aSep The separator. + */ + SourceNode.prototype.join = function SourceNode_join(aSep) { + var newChildren; + var i; + var len = this.children.length; + if (len > 0) { + newChildren = []; + for (i = 0; i < len-1; i++) { + newChildren.push(this.children[i]); + newChildren.push(aSep); + } + newChildren.push(this.children[i]); + this.children = newChildren; + } + return this; + }; + + /** + * Call String.prototype.replace on the very right-most source snippet. Useful + * for trimming whitespace from the end of a source node, etc. + * + * @param aPattern The pattern to replace. + * @param aReplacement The thing to replace the pattern with. + */ + SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { + var lastChild = this.children[this.children.length - 1]; + if (lastChild[isSourceNode]) { + lastChild.replaceRight(aPattern, aReplacement); + } + else if (typeof lastChild === 'string') { + this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); + } + else { + this.children.push(''.replace(aPattern, aReplacement)); + } + return this; + }; + + /** + * Set the source content for a source file. This will be added to the SourceMapGenerator + * in the sourcesContent field. + * + * @param aSourceFile The filename of the source file + * @param aSourceContent The content of the source file + */ + SourceNode.prototype.setSourceContent = + function SourceNode_setSourceContent(aSourceFile, aSourceContent) { + this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; + }; + + /** + * Walk over the tree of SourceNodes. The walking function is called for each + * source file content and is passed the filename and source content. + * + * @param aFn The traversal function. + */ + SourceNode.prototype.walkSourceContents = + function SourceNode_walkSourceContents(aFn) { + for (var i = 0, len = this.children.length; i < len; i++) { + if (this.children[i][isSourceNode]) { + this.children[i].walkSourceContents(aFn); + } + } + + var sources = Object.keys(this.sourceContents); + for (var i = 0, len = sources.length; i < len; i++) { + aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); + } + }; + + /** + * Return the string representation of this source node. Walks over the tree + * and concatenates all the various snippets together to one string. + */ + SourceNode.prototype.toString = function SourceNode_toString() { + var str = ""; + this.walk(function (chunk) { + str += chunk; + }); + return str; + }; + + /** + * Returns the string representation of this source node along with a source + * map. + */ + SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { + var generated = { + code: "", + line: 1, + column: 0 + }; + var map = new SourceMapGenerator(aArgs); + var sourceMappingActive = false; + var lastOriginalSource = null; + var lastOriginalLine = null; + var lastOriginalColumn = null; + var lastOriginalName = null; + this.walk(function (chunk, original) { + generated.code += chunk; + if (original.source !== null + && original.line !== null + && original.column !== null) { + if(lastOriginalSource !== original.source + || lastOriginalLine !== original.line + || lastOriginalColumn !== original.column + || lastOriginalName !== original.name) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + lastOriginalSource = original.source; + lastOriginalLine = original.line; + lastOriginalColumn = original.column; + lastOriginalName = original.name; + sourceMappingActive = true; + } else if (sourceMappingActive) { + map.addMapping({ + generated: { + line: generated.line, + column: generated.column + } + }); + lastOriginalSource = null; + sourceMappingActive = false; + } + for (var idx = 0, length = chunk.length; idx < length; idx++) { + if (chunk.charCodeAt(idx) === NEWLINE_CODE) { + generated.line++; + generated.column = 0; + // Mappings end at eol + if (idx + 1 === length) { + lastOriginalSource = null; + sourceMappingActive = false; + } else if (sourceMappingActive) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + } else { + generated.column++; + } + } + }); + this.walkSourceContents(function (sourceFile, sourceContent) { + map.setSourceContent(sourceFile, sourceContent); + }); + + return { code: generated.code, map: map }; + }; + + sourceNode.SourceNode = SourceNode; + return sourceNode; +} + +/* + * Copyright 2009-2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE.txt or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var hasRequiredSourceMap; + +function requireSourceMap () { + if (hasRequiredSourceMap) return sourceMap; + hasRequiredSourceMap = 1; + sourceMap.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator; + sourceMap.SourceMapConsumer = requireSourceMapConsumer().SourceMapConsumer; + sourceMap.SourceNode = requireSourceNode().SourceNode; + return sourceMap; +} + +/* global define, require */ + +var hasRequiredCodeGen; + +function requireCodeGen () { + if (hasRequiredCodeGen) return codeGen.exports; + hasRequiredCodeGen = 1; + (function (module, exports) { + + exports.__esModule = true; + + var _utils = requireUtils(); + + var SourceNode = undefined; + + try { + /* istanbul ignore next */ + if (typeof undefined !== 'function' || !undefined.amd) { + // We don't support this in AMD environments. For these environments, we assume that + // they are running on the browser and thus have no need for the source-map library. + var SourceMap = requireSourceMap(); + SourceNode = SourceMap.SourceNode; + } + } catch (err) {} + /* NOP */ + + /* istanbul ignore if: tested but not covered in istanbul due to dist build */ + if (!SourceNode) { + SourceNode = function (line, column, srcFile, chunks) { + this.src = ''; + if (chunks) { + this.add(chunks); + } + }; + /* istanbul ignore next */ + SourceNode.prototype = { + add: function add(chunks) { + if (_utils.isArray(chunks)) { + chunks = chunks.join(''); + } + this.src += chunks; + }, + prepend: function prepend(chunks) { + if (_utils.isArray(chunks)) { + chunks = chunks.join(''); + } + this.src = chunks + this.src; + }, + toStringWithSourceMap: function toStringWithSourceMap() { + return { code: this.toString() }; + }, + toString: function toString() { + return this.src; + } + }; + } + + function castChunk(chunk, codeGen, loc) { + if (_utils.isArray(chunk)) { + var ret = []; + + for (var i = 0, len = chunk.length; i < len; i++) { + ret.push(codeGen.wrap(chunk[i], loc)); + } + return ret; + } else if (typeof chunk === 'boolean' || typeof chunk === 'number') { + // Handle primitives that the SourceNode will throw up on + return chunk + ''; + } + return chunk; + } + + function CodeGen(srcFile) { + this.srcFile = srcFile; + this.source = []; + } + + CodeGen.prototype = { + isEmpty: function isEmpty() { + return !this.source.length; + }, + prepend: function prepend(source, loc) { + this.source.unshift(this.wrap(source, loc)); + }, + push: function push(source, loc) { + this.source.push(this.wrap(source, loc)); + }, + + merge: function merge() { + var source = this.empty(); + this.each(function (line) { + source.add([' ', line, '\n']); + }); + return source; + }, + + each: function each(iter) { + for (var i = 0, len = this.source.length; i < len; i++) { + iter(this.source[i]); + } + }, + + empty: function empty() { + var loc = this.currentLocation || { start: {} }; + return new SourceNode(loc.start.line, loc.start.column, this.srcFile); + }, + wrap: function wrap(chunk) { + var loc = arguments.length <= 1 || arguments[1] === undefined ? this.currentLocation || { start: {} } : arguments[1]; + + if (chunk instanceof SourceNode) { + return chunk; + } + + chunk = castChunk(chunk, this, loc); + + return new SourceNode(loc.start.line, loc.start.column, this.srcFile, chunk); + }, + + functionCall: function functionCall(fn, type, params) { + params = this.generateList(params); + return this.wrap([fn, type ? '.' + type + '(' : '(', params, ')']); + }, + + quotedString: function quotedString(str) { + return '"' + (str + '').replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\u2028/g, '\\u2028') // Per Ecma-262 7.3 + 7.8.4 + .replace(/\u2029/g, '\\u2029') + '"'; + }, + + objectLiteral: function objectLiteral(obj) { + // istanbul ignore next + + var _this = this; + + var pairs = []; + + Object.keys(obj).forEach(function (key) { + var value = castChunk(obj[key], _this); + if (value !== 'undefined') { + pairs.push([_this.quotedString(key), ':', value]); + } + }); + + var ret = this.generateList(pairs); + ret.prepend('{'); + ret.add('}'); + return ret; + }, + + generateList: function generateList(entries) { + var ret = this.empty(); + + for (var i = 0, len = entries.length; i < len; i++) { + if (i) { + ret.add(','); + } + + ret.add(castChunk(entries[i], this)); + } + + return ret; + }, + + generateArray: function generateArray(entries) { + var ret = this.generateList(entries); + ret.prepend('['); + ret.add(']'); + + return ret; + } + }; + + exports['default'] = CodeGen; + module.exports = exports['default']; + + } (codeGen, codeGen.exports)); + return codeGen.exports; +} + +var hasRequiredJavascriptCompiler; + +function requireJavascriptCompiler () { + if (hasRequiredJavascriptCompiler) return javascriptCompiler.exports; + hasRequiredJavascriptCompiler = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _base = requireBase$1(); + + var _exception = requireException(); + + var _exception2 = _interopRequireDefault(_exception); + + var _utils = requireUtils(); + + var _codeGen = requireCodeGen(); + + var _codeGen2 = _interopRequireDefault(_codeGen); + + function Literal(value) { + this.value = value; + } + + function JavaScriptCompiler() {} + + JavaScriptCompiler.prototype = { + // PUBLIC API: You can override these methods in a subclass to provide + // alternative compiled forms for name lookup and buffering semantics + nameLookup: function nameLookup(parent, name /*, type */) { + return this.internalNameLookup(parent, name); + }, + depthedLookup: function depthedLookup(name) { + return [this.aliasable('container.lookup'), '(depths, ', JSON.stringify(name), ')']; + }, + + compilerInfo: function compilerInfo() { + var revision = _base.COMPILER_REVISION, + versions = _base.REVISION_CHANGES[revision]; + return [revision, versions]; + }, + + appendToBuffer: function appendToBuffer(source, location, explicit) { + // Force a source as this simplifies the merge logic. + if (!_utils.isArray(source)) { + source = [source]; + } + source = this.source.wrap(source, location); + + if (this.environment.isSimple) { + return ['return ', source, ';']; + } else if (explicit) { + // This is a case where the buffer operation occurs as a child of another + // construct, generally braces. We have to explicitly output these buffer + // operations to ensure that the emitted code goes in the correct location. + return ['buffer += ', source, ';']; + } else { + source.appendToBuffer = true; + return source; + } + }, + + initializeBuffer: function initializeBuffer() { + return this.quotedString(''); + }, + // END PUBLIC API + internalNameLookup: function internalNameLookup(parent, name) { + this.lookupPropertyFunctionIsUsed = true; + return ['lookupProperty(', parent, ',', JSON.stringify(name), ')']; + }, + + lookupPropertyFunctionIsUsed: false, + + compile: function compile(environment, options, context, asObject) { + this.environment = environment; + this.options = options; + this.stringParams = this.options.stringParams; + this.trackIds = this.options.trackIds; + this.precompile = !asObject; + + this.name = this.environment.name; + this.isChild = !!context; + this.context = context || { + decorators: [], + programs: [], + environments: [] + }; + + this.preamble(); + + this.stackSlot = 0; + this.stackVars = []; + this.aliases = {}; + this.registers = { list: [] }; + this.hashes = []; + this.compileStack = []; + this.inlineStack = []; + this.blockParams = []; + + this.compileChildren(environment, options); + + this.useDepths = this.useDepths || environment.useDepths || environment.useDecorators || this.options.compat; + this.useBlockParams = this.useBlockParams || environment.useBlockParams; + + var opcodes = environment.opcodes, + opcode = undefined, + firstLoc = undefined, + i = undefined, + l = undefined; + + for (i = 0, l = opcodes.length; i < l; i++) { + opcode = opcodes[i]; + + this.source.currentLocation = opcode.loc; + firstLoc = firstLoc || opcode.loc; + this[opcode.opcode].apply(this, opcode.args); + } + + // Flush any trailing content that might be pending. + this.source.currentLocation = firstLoc; + this.pushSource(''); + + /* istanbul ignore next */ + if (this.stackSlot || this.inlineStack.length || this.compileStack.length) { + throw new _exception2['default']('Compile completed with content left on stack'); + } + + if (!this.decorators.isEmpty()) { + this.useDecorators = true; + + this.decorators.prepend(['var decorators = container.decorators, ', this.lookupPropertyFunctionVarDeclaration(), ';\n']); + this.decorators.push('return fn;'); + + if (asObject) { + this.decorators = Function.apply(this, ['fn', 'props', 'container', 'depth0', 'data', 'blockParams', 'depths', this.decorators.merge()]); + } else { + this.decorators.prepend('function(fn, props, container, depth0, data, blockParams, depths) {\n'); + this.decorators.push('}\n'); + this.decorators = this.decorators.merge(); + } + } else { + this.decorators = undefined; + } + + var fn = this.createFunctionContext(asObject); + if (!this.isChild) { + var ret = { + compiler: this.compilerInfo(), + main: fn + }; + + if (this.decorators) { + ret.main_d = this.decorators; // eslint-disable-line camelcase + ret.useDecorators = true; + } + + var _context = this.context; + var programs = _context.programs; + var decorators = _context.decorators; + + for (i = 0, l = programs.length; i < l; i++) { + ret[i] = programs[i]; + if (decorators[i]) { + ret[i + '_d'] = decorators[i]; + ret.useDecorators = true; + } + } + + if (this.environment.usePartial) { + ret.usePartial = true; + } + if (this.options.data) { + ret.useData = true; + } + if (this.useDepths) { + ret.useDepths = true; + } + if (this.useBlockParams) { + ret.useBlockParams = true; + } + if (this.options.compat) { + ret.compat = true; + } + + if (!asObject) { + ret.compiler = JSON.stringify(ret.compiler); + + this.source.currentLocation = { start: { line: 1, column: 0 } }; + ret = this.objectLiteral(ret); + + if (options.srcName) { + ret = ret.toStringWithSourceMap({ file: options.destName }); + ret.map = ret.map && ret.map.toString(); + } else { + ret = ret.toString(); + } + } else { + ret.compilerOptions = this.options; + } + + return ret; + } else { + return fn; + } + }, + + preamble: function preamble() { + // track the last context pushed into place to allow skipping the + // getContext opcode when it would be a noop + this.lastContext = 0; + this.source = new _codeGen2['default'](this.options.srcName); + this.decorators = new _codeGen2['default'](this.options.srcName); + }, + + createFunctionContext: function createFunctionContext(asObject) { + // istanbul ignore next + + var _this = this; + + var varDeclarations = ''; + + var locals = this.stackVars.concat(this.registers.list); + if (locals.length > 0) { + varDeclarations += ', ' + locals.join(', '); + } + + // Generate minimizer alias mappings + // + // When using true SourceNodes, this will update all references to the given alias + // as the source nodes are reused in situ. For the non-source node compilation mode, + // aliases will not be used, but this case is already being run on the client and + // we aren't concern about minimizing the template size. + var aliasCount = 0; + Object.keys(this.aliases).forEach(function (alias) { + var node = _this.aliases[alias]; + if (node.children && node.referenceCount > 1) { + varDeclarations += ', alias' + ++aliasCount + '=' + alias; + node.children[0] = 'alias' + aliasCount; + } + }); + + if (this.lookupPropertyFunctionIsUsed) { + varDeclarations += ', ' + this.lookupPropertyFunctionVarDeclaration(); + } + + var params = ['container', 'depth0', 'helpers', 'partials', 'data']; + + if (this.useBlockParams || this.useDepths) { + params.push('blockParams'); + } + if (this.useDepths) { + params.push('depths'); + } + + // Perform a second pass over the output to merge content when possible + var source = this.mergeSource(varDeclarations); + + if (asObject) { + params.push(source); + + return Function.apply(this, params); + } else { + return this.source.wrap(['function(', params.join(','), ') {\n ', source, '}']); + } + }, + mergeSource: function mergeSource(varDeclarations) { + var isSimple = this.environment.isSimple, + appendOnly = !this.forceBuffer, + appendFirst = undefined, + sourceSeen = undefined, + bufferStart = undefined, + bufferEnd = undefined; + this.source.each(function (line) { + if (line.appendToBuffer) { + if (bufferStart) { + line.prepend(' + '); + } else { + bufferStart = line; + } + bufferEnd = line; + } else { + if (bufferStart) { + if (!sourceSeen) { + appendFirst = true; + } else { + bufferStart.prepend('buffer += '); + } + bufferEnd.add(';'); + bufferStart = bufferEnd = undefined; + } + + sourceSeen = true; + if (!isSimple) { + appendOnly = false; + } + } + }); + + if (appendOnly) { + if (bufferStart) { + bufferStart.prepend('return '); + bufferEnd.add(';'); + } else if (!sourceSeen) { + this.source.push('return "";'); + } + } else { + varDeclarations += ', buffer = ' + (appendFirst ? '' : this.initializeBuffer()); + + if (bufferStart) { + bufferStart.prepend('return buffer + '); + bufferEnd.add(';'); + } else { + this.source.push('return buffer;'); + } + } + + if (varDeclarations) { + this.source.prepend('var ' + varDeclarations.substring(2) + (appendFirst ? '' : ';\n')); + } + + return this.source.merge(); + }, + + lookupPropertyFunctionVarDeclaration: function lookupPropertyFunctionVarDeclaration() { + return '\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n '.trim(); + }, + + // [blockValue] + // + // On stack, before: hash, inverse, program, value + // On stack, after: return value of blockHelperMissing + // + // The purpose of this opcode is to take a block of the form + // `{{#this.foo}}...{{/this.foo}}`, resolve the value of `foo`, and + // replace it on the stack with the result of properly + // invoking blockHelperMissing. + blockValue: function blockValue(name) { + var blockHelperMissing = this.aliasable('container.hooks.blockHelperMissing'), + params = [this.contextName(0)]; + this.setupHelperArgs(name, 0, params); + + var blockName = this.popStack(); + params.splice(1, 0, blockName); + + this.push(this.source.functionCall(blockHelperMissing, 'call', params)); + }, + + // [ambiguousBlockValue] + // + // On stack, before: hash, inverse, program, value + // Compiler value, before: lastHelper=value of last found helper, if any + // On stack, after, if no lastHelper: same as [blockValue] + // On stack, after, if lastHelper: value + ambiguousBlockValue: function ambiguousBlockValue() { + // We're being a bit cheeky and reusing the options value from the prior exec + var blockHelperMissing = this.aliasable('container.hooks.blockHelperMissing'), + params = [this.contextName(0)]; + this.setupHelperArgs('', 0, params, true); + + this.flushInline(); + + var current = this.topStack(); + params.splice(1, 0, current); + + this.pushSource(['if (!', this.lastHelper, ') { ', current, ' = ', this.source.functionCall(blockHelperMissing, 'call', params), '}']); + }, + + // [appendContent] + // + // On stack, before: ... + // On stack, after: ... + // + // Appends the string value of `content` to the current buffer + appendContent: function appendContent(content) { + if (this.pendingContent) { + content = this.pendingContent + content; + } else { + this.pendingLocation = this.source.currentLocation; + } + + this.pendingContent = content; + }, + + // [append] + // + // On stack, before: value, ... + // On stack, after: ... + // + // Coerces `value` to a String and appends it to the current buffer. + // + // If `value` is truthy, or 0, it is coerced into a string and appended + // Otherwise, the empty string is appended + append: function append() { + if (this.isInline()) { + this.replaceStack(function (current) { + return [' != null ? ', current, ' : ""']; + }); + + this.pushSource(this.appendToBuffer(this.popStack())); + } else { + var local = this.popStack(); + this.pushSource(['if (', local, ' != null) { ', this.appendToBuffer(local, undefined, true), ' }']); + if (this.environment.isSimple) { + this.pushSource(['else { ', this.appendToBuffer("''", undefined, true), ' }']); + } + } + }, + + // [appendEscaped] + // + // On stack, before: value, ... + // On stack, after: ... + // + // Escape `value` and append it to the buffer + appendEscaped: function appendEscaped() { + this.pushSource(this.appendToBuffer([this.aliasable('container.escapeExpression'), '(', this.popStack(), ')'])); + }, + + // [getContext] + // + // On stack, before: ... + // On stack, after: ... + // Compiler value, after: lastContext=depth + // + // Set the value of the `lastContext` compiler value to the depth + getContext: function getContext(depth) { + this.lastContext = depth; + }, + + // [pushContext] + // + // On stack, before: ... + // On stack, after: currentContext, ... + // + // Pushes the value of the current context onto the stack. + pushContext: function pushContext() { + this.pushStackLiteral(this.contextName(this.lastContext)); + }, + + // [lookupOnContext] + // + // On stack, before: ... + // On stack, after: currentContext[name], ... + // + // Looks up the value of `name` on the current context and pushes + // it onto the stack. + lookupOnContext: function lookupOnContext(parts, falsy, strict, scoped) { + var i = 0; + + if (!scoped && this.options.compat && !this.lastContext) { + // The depthed query is expected to handle the undefined logic for the root level that + // is implemented below, so we evaluate that directly in compat mode + this.push(this.depthedLookup(parts[i++])); + } else { + this.pushContext(); + } + + this.resolvePath('context', parts, i, falsy, strict); + }, + + // [lookupBlockParam] + // + // On stack, before: ... + // On stack, after: blockParam[name], ... + // + // Looks up the value of `parts` on the given block param and pushes + // it onto the stack. + lookupBlockParam: function lookupBlockParam(blockParamId, parts) { + this.useBlockParams = true; + + this.push(['blockParams[', blockParamId[0], '][', blockParamId[1], ']']); + this.resolvePath('context', parts, 1); + }, + + // [lookupData] + // + // On stack, before: ... + // On stack, after: data, ... + // + // Push the data lookup operator + lookupData: function lookupData(depth, parts, strict) { + if (!depth) { + this.pushStackLiteral('data'); + } else { + this.pushStackLiteral('container.data(data, ' + depth + ')'); + } + + this.resolvePath('data', parts, 0, true, strict); + }, + + resolvePath: function resolvePath(type, parts, startPartIndex, falsy, strict) { + // istanbul ignore next + + var _this2 = this; + + if (this.options.strict || this.options.assumeObjects) { + this.push(strictLookup(this.options.strict && strict, this, parts, startPartIndex, type)); + return; + } + + var len = parts.length; + + var _loop = function (i) { + /* eslint-disable no-loop-func */ + _this2.replaceStack(function (current) { + var lookup = _this2.nameLookup(current, parts[i], type); + // We want to ensure that zero and false are handled properly if the context (falsy flag) + // needs to have the special handling for these values. + if (!falsy) { + return [' != null ? ', lookup, ' : ', current]; + } else { + // Otherwise we can use generic falsy handling + return [' && ', lookup]; + } + }); + /* eslint-enable no-loop-func */ + }; + + for (var i = startPartIndex; i < len; i++) { + _loop(i); + } + }, + + // [resolvePossibleLambda] + // + // On stack, before: value, ... + // On stack, after: resolved value, ... + // + // If the `value` is a lambda, replace it on the stack by + // the return value of the lambda + resolvePossibleLambda: function resolvePossibleLambda() { + this.push([this.aliasable('container.lambda'), '(', this.popStack(), ', ', this.contextName(0), ')']); + }, + + // [pushStringParam] + // + // On stack, before: ... + // On stack, after: string, currentContext, ... + // + // This opcode is designed for use in string mode, which + // provides the string value of a parameter along with its + // depth rather than resolving it immediately. + pushStringParam: function pushStringParam(string, type) { + this.pushContext(); + this.pushString(type); + + // If it's a subexpression, the string result + // will be pushed after this opcode. + if (type !== 'SubExpression') { + if (typeof string === 'string') { + this.pushString(string); + } else { + this.pushStackLiteral(string); + } + } + }, + + emptyHash: function emptyHash(omitEmpty) { + if (this.trackIds) { + this.push('{}'); // hashIds + } + if (this.stringParams) { + this.push('{}'); // hashContexts + this.push('{}'); // hashTypes + } + this.pushStackLiteral(omitEmpty ? 'undefined' : '{}'); + }, + pushHash: function pushHash() { + if (this.hash) { + this.hashes.push(this.hash); + } + this.hash = { values: {}, types: [], contexts: [], ids: [] }; + }, + popHash: function popHash() { + var hash = this.hash; + this.hash = this.hashes.pop(); + + if (this.trackIds) { + this.push(this.objectLiteral(hash.ids)); + } + if (this.stringParams) { + this.push(this.objectLiteral(hash.contexts)); + this.push(this.objectLiteral(hash.types)); + } + + this.push(this.objectLiteral(hash.values)); + }, + + // [pushString] + // + // On stack, before: ... + // On stack, after: quotedString(string), ... + // + // Push a quoted version of `string` onto the stack + pushString: function pushString(string) { + this.pushStackLiteral(this.quotedString(string)); + }, + + // [pushLiteral] + // + // On stack, before: ... + // On stack, after: value, ... + // + // Pushes a value onto the stack. This operation prevents + // the compiler from creating a temporary variable to hold + // it. + pushLiteral: function pushLiteral(value) { + this.pushStackLiteral(value); + }, + + // [pushProgram] + // + // On stack, before: ... + // On stack, after: program(guid), ... + // + // Push a program expression onto the stack. This takes + // a compile-time guid and converts it into a runtime-accessible + // expression. + pushProgram: function pushProgram(guid) { + if (guid != null) { + this.pushStackLiteral(this.programExpression(guid)); + } else { + this.pushStackLiteral(null); + } + }, + + // [registerDecorator] + // + // On stack, before: hash, program, params..., ... + // On stack, after: ... + // + // Pops off the decorator's parameters, invokes the decorator, + // and inserts the decorator into the decorators list. + registerDecorator: function registerDecorator(paramSize, name) { + var foundDecorator = this.nameLookup('decorators', name, 'decorator'), + options = this.setupHelperArgs(name, paramSize); + + // Store the resolved decorator in a variable and verify it is a function before + // calling it. Without this, unregistered decorators can cause an unhandled TypeError + // (calling undefined), which crashes the process — enabling Denial of Service. + this.decorators.push(['var decorator = ', foundDecorator, ';']); + this.decorators.push(['if (typeof decorator !== "function") { throw new Error(', this.quotedString('Missing decorator: "' + name + '"'), '); }']); + this.decorators.push(['fn = ', this.decorators.functionCall('decorator', '', ['fn', 'props', 'container', options]), ' || fn;']); + }, + + // [invokeHelper] + // + // On stack, before: hash, inverse, program, params..., ... + // On stack, after: result of helper invocation + // + // Pops off the helper's parameters, invokes the helper, + // and pushes the helper's return value onto the stack. + // + // If the helper is not found, `helperMissing` is called. + invokeHelper: function invokeHelper(paramSize, name, isSimple) { + var nonHelper = this.popStack(), + helper = this.setupHelper(paramSize, name); + + var possibleFunctionCalls = []; + + if (isSimple) { + // direct call to helper + possibleFunctionCalls.push(helper.name); + } + // call a function from the input object + possibleFunctionCalls.push(nonHelper); + if (!this.options.strict) { + possibleFunctionCalls.push(this.aliasable('container.hooks.helperMissing')); + } + + var functionLookupCode = ['(', this.itemsSeparatedBy(possibleFunctionCalls, '||'), ')']; + var functionCall = this.source.functionCall(functionLookupCode, 'call', helper.callParams); + this.push(functionCall); + }, + + itemsSeparatedBy: function itemsSeparatedBy(items, separator) { + var result = []; + result.push(items[0]); + for (var i = 1; i < items.length; i++) { + result.push(separator, items[i]); + } + return result; + }, + // [invokeKnownHelper] + // + // On stack, before: hash, inverse, program, params..., ... + // On stack, after: result of helper invocation + // + // This operation is used when the helper is known to exist, + // so a `helperMissing` fallback is not required. + invokeKnownHelper: function invokeKnownHelper(paramSize, name) { + var helper = this.setupHelper(paramSize, name); + this.push(this.source.functionCall(helper.name, 'call', helper.callParams)); + }, + + // [invokeAmbiguous] + // + // On stack, before: hash, inverse, program, params..., ... + // On stack, after: result of disambiguation + // + // This operation is used when an expression like `{{foo}}` + // is provided, but we don't know at compile-time whether it + // is a helper or a path. + // + // This operation emits more code than the other options, + // and can be avoided by passing the `knownHelpers` and + // `knownHelpersOnly` flags at compile-time. + invokeAmbiguous: function invokeAmbiguous(name, helperCall) { + this.useRegister('helper'); + + var nonHelper = this.popStack(); + + this.emptyHash(); + var helper = this.setupHelper(0, name, helperCall); + + var helperName = this.lastHelper = this.nameLookup('helpers', name, 'helper'); + + var lookup = ['(', '(helper = ', helperName, ' || ', nonHelper, ')']; + if (!this.options.strict) { + lookup[0] = '(helper = '; + lookup.push(' != null ? helper : ', this.aliasable('container.hooks.helperMissing')); + } + + this.push(['(', lookup, helper.paramsInit ? ['),(', helper.paramsInit] : [], '),', '(typeof helper === ', this.aliasable('"function"'), ' ? ', this.source.functionCall('helper', 'call', helper.callParams), ' : helper))']); + }, + + // [invokePartial] + // + // On stack, before: context, ... + // On stack after: result of partial invocation + // + // This operation pops off a context, invokes a partial with that context, + // and pushes the result of the invocation back. + invokePartial: function invokePartial(isDynamic, name, indent) { + var params = [], + options = this.setupParams(name, 1, params); + + if (isDynamic) { + name = this.popStack(); + delete options.name; + } + + if (indent) { + options.indent = JSON.stringify(indent); + } + options.helpers = 'helpers'; + options.partials = 'partials'; + options.decorators = 'container.decorators'; + + if (!isDynamic) { + params.unshift(this.nameLookup('partials', name, 'partial')); + } else { + params.unshift(name); + } + + if (this.options.compat) { + options.depths = 'depths'; + } + options = this.objectLiteral(options); + params.push(options); + + this.push(this.source.functionCall('container.invokePartial', '', params)); + }, + + // [assignToHash] + // + // On stack, before: value, ..., hash, ... + // On stack, after: ..., hash, ... + // + // Pops a value off the stack and assigns it to the current hash + assignToHash: function assignToHash(key) { + var value = this.popStack(), + context = undefined, + type = undefined, + id = undefined; + + if (this.trackIds) { + id = this.popStack(); + } + if (this.stringParams) { + type = this.popStack(); + context = this.popStack(); + } + + var hash = this.hash; + if (context) { + hash.contexts[key] = context; + } + if (type) { + hash.types[key] = type; + } + if (id) { + hash.ids[key] = id; + } + hash.values[key] = value; + }, + + pushId: function pushId(type, name, child) { + if (type === 'BlockParam') { + this.pushStackLiteral('blockParams[' + name[0] + '].path[' + name[1] + ']' + (child ? ' + ' + JSON.stringify('.' + child) : '')); + } else if (type === 'PathExpression') { + this.pushString(name); + } else if (type === 'SubExpression') { + this.pushStackLiteral('true'); + } else { + this.pushStackLiteral('null'); + } + }, + + // HELPERS + + compiler: JavaScriptCompiler, + + compileChildren: function compileChildren(environment, options) { + var children = environment.children, + child = undefined, + compiler = undefined; + + for (var i = 0, l = children.length; i < l; i++) { + child = children[i]; + compiler = new this.compiler(); // eslint-disable-line new-cap + + var existing = this.matchExistingProgram(child); + + if (existing == null) { + // Placeholder to prevent name conflicts for nested children + var index = this.context.programs.push('') - 1; + child.index = index; + child.name = 'program' + index; + this.context.programs[index] = compiler.compile(child, options, this.context, !this.precompile); + this.context.decorators[index] = compiler.decorators; + this.context.environments[index] = child; + + this.useDepths = this.useDepths || compiler.useDepths; + this.useBlockParams = this.useBlockParams || compiler.useBlockParams; + child.useDepths = this.useDepths; + child.useBlockParams = this.useBlockParams; + } else { + child.index = existing.index; + child.name = 'program' + existing.index; + + this.useDepths = this.useDepths || existing.useDepths; + this.useBlockParams = this.useBlockParams || existing.useBlockParams; + } + } + }, + matchExistingProgram: function matchExistingProgram(child) { + for (var i = 0, len = this.context.environments.length; i < len; i++) { + var environment = this.context.environments[i]; + if (environment && environment.equals(child)) { + return environment; + } + } + }, + + programExpression: function programExpression(guid) { + var child = this.environment.children[guid], + programParams = [child.index, 'data', child.blockParams]; + + if (this.useBlockParams || this.useDepths) { + programParams.push('blockParams'); + } + if (this.useDepths) { + programParams.push('depths'); + } + + return 'container.program(' + programParams.join(', ') + ')'; + }, + + useRegister: function useRegister(name) { + if (!this.registers[name]) { + this.registers[name] = true; + this.registers.list.push(name); + } + }, + + push: function push(expr) { + if (!(expr instanceof Literal)) { + expr = this.source.wrap(expr); + } + + this.inlineStack.push(expr); + return expr; + }, + + pushStackLiteral: function pushStackLiteral(item) { + this.push(new Literal(item)); + }, + + pushSource: function pushSource(source) { + if (this.pendingContent) { + this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)); + this.pendingContent = undefined; + } + + if (source) { + this.source.push(source); + } + }, + + replaceStack: function replaceStack(callback) { + var prefix = ['('], + stack = undefined, + createdStack = undefined, + usedLiteral = undefined; + + /* istanbul ignore next */ + if (!this.isInline()) { + throw new _exception2['default']('replaceStack on non-inline'); + } + + // We want to merge the inline statement into the replacement statement via ',' + var top = this.popStack(true); + + if (top instanceof Literal) { + // Literals do not need to be inlined + stack = [top.value]; + prefix = ['(', stack]; + usedLiteral = true; + } else { + // Get or create the current stack name for use by the inline + createdStack = true; + var _name = this.incrStack(); + + prefix = ['((', this.push(_name), ' = ', top, ')']; + stack = this.topStack(); + } + + var item = callback.call(this, stack); + + if (!usedLiteral) { + this.popStack(); + } + if (createdStack) { + this.stackSlot--; + } + this.push(prefix.concat(item, ')')); + }, + + incrStack: function incrStack() { + this.stackSlot++; + if (this.stackSlot > this.stackVars.length) { + this.stackVars.push('stack' + this.stackSlot); + } + return this.topStackName(); + }, + topStackName: function topStackName() { + return 'stack' + this.stackSlot; + }, + flushInline: function flushInline() { + var inlineStack = this.inlineStack; + this.inlineStack = []; + for (var i = 0, len = inlineStack.length; i < len; i++) { + var entry = inlineStack[i]; + /* istanbul ignore if */ + if (entry instanceof Literal) { + this.compileStack.push(entry); + } else { + var stack = this.incrStack(); + this.pushSource([stack, ' = ', entry, ';']); + this.compileStack.push(stack); + } + } + }, + isInline: function isInline() { + return this.inlineStack.length; + }, + + popStack: function popStack(wrapped) { + var inline = this.isInline(), + item = (inline ? this.inlineStack : this.compileStack).pop(); + + if (!wrapped && item instanceof Literal) { + return item.value; + } else { + if (!inline) { + /* istanbul ignore next */ + if (!this.stackSlot) { + throw new _exception2['default']('Invalid stack pop'); + } + this.stackSlot--; + } + return item; + } + }, + + topStack: function topStack() { + var stack = this.isInline() ? this.inlineStack : this.compileStack, + item = stack[stack.length - 1]; + + /* istanbul ignore if */ + if (item instanceof Literal) { + return item.value; + } else { + return item; + } + }, + + contextName: function contextName(context) { + if (this.useDepths && context) { + return 'depths[' + context + ']'; + } else { + return 'depth' + context; + } + }, + + quotedString: function quotedString(str) { + return this.source.quotedString(str); + }, + + objectLiteral: function objectLiteral(obj) { + return this.source.objectLiteral(obj); + }, + + aliasable: function aliasable(name) { + var ret = this.aliases[name]; + if (ret) { + ret.referenceCount++; + return ret; + } + + ret = this.aliases[name] = this.source.wrap(name); + ret.aliasable = true; + ret.referenceCount = 1; + + return ret; + }, + + setupHelper: function setupHelper(paramSize, name, blockHelper) { + var params = [], + paramsInit = this.setupHelperArgs(name, paramSize, params, blockHelper); + var foundHelper = this.nameLookup('helpers', name, 'helper'), + callContext = this.aliasable(this.contextName(0) + ' != null ? ' + this.contextName(0) + ' : (container.nullContext || {})'); + + return { + params: params, + paramsInit: paramsInit, + name: foundHelper, + callParams: [callContext].concat(params) + }; + }, + + setupParams: function setupParams(helper, paramSize, params) { + var options = {}, + contexts = [], + types = [], + ids = [], + objectArgs = !params, + param = undefined; + + if (objectArgs) { + params = []; + } + + options.name = this.quotedString(helper); + options.hash = this.popStack(); + + if (this.trackIds) { + options.hashIds = this.popStack(); + } + if (this.stringParams) { + options.hashTypes = this.popStack(); + options.hashContexts = this.popStack(); + } + + var inverse = this.popStack(), + program = this.popStack(); + + // Avoid setting fn and inverse if neither are set. This allows + // helpers to do a check for `if (options.fn)` + if (program || inverse) { + options.fn = program || 'container.noop'; + options.inverse = inverse || 'container.noop'; + } + + // The parameters go on to the stack in order (making sure that they are evaluated in order) + // so we need to pop them off the stack in reverse order + var i = paramSize; + while (i--) { + param = this.popStack(); + params[i] = param; + + if (this.trackIds) { + ids[i] = this.popStack(); + } + if (this.stringParams) { + types[i] = this.popStack(); + contexts[i] = this.popStack(); + } + } + + if (objectArgs) { + options.args = this.source.generateArray(params); + } + + if (this.trackIds) { + options.ids = this.source.generateArray(ids); + } + if (this.stringParams) { + options.types = this.source.generateArray(types); + options.contexts = this.source.generateArray(contexts); + } + + if (this.options.data) { + options.data = 'data'; + } + if (this.useBlockParams) { + options.blockParams = 'blockParams'; + } + return options; + }, + + setupHelperArgs: function setupHelperArgs(helper, paramSize, params, useRegister) { + var options = this.setupParams(helper, paramSize, params); + options.loc = JSON.stringify(this.source.currentLocation); + options = this.objectLiteral(options); + if (useRegister) { + this.useRegister('options'); + params.push('options'); + return ['options=', options]; + } else if (params) { + params.push(options); + return ''; + } else { + return options; + } + } + }; + + (function () { + var reservedWords = ('break else new var' + ' case finally return void' + ' catch for switch while' + ' continue function this with' + ' default if throw' + ' delete in try' + ' do instanceof typeof' + ' abstract enum int short' + ' boolean export interface static' + ' byte extends long super' + ' char final native synchronized' + ' class float package throws' + ' const goto private transient' + ' debugger implements protected volatile' + ' double import public let yield await' + ' null true false').split(' '); + + var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {}; + + for (var i = 0, l = reservedWords.length; i < l; i++) { + compilerWords[reservedWords[i]] = true; + } + })(); + + /** + * @deprecated May be removed in the next major version + */ + JavaScriptCompiler.isValidJavaScriptVariableName = function (name) { + return !JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name); + }; + + function strictLookup(requireTerminal, compiler, parts, startPartIndex, type) { + var stack = compiler.popStack(), + len = parts.length; + if (requireTerminal) { + len--; + } + + for (var i = startPartIndex; i < len; i++) { + stack = compiler.nameLookup(stack, parts[i], type); + } + + if (requireTerminal) { + return [compiler.aliasable('container.strict'), '(', stack, ', ', compiler.quotedString(parts[len]), ', ', JSON.stringify(compiler.source.currentLocation), ' )']; + } else { + return stack; + } + } + + exports['default'] = JavaScriptCompiler; + module.exports = exports['default']; + + } (javascriptCompiler, javascriptCompiler.exports)); + return javascriptCompiler.exports; +} + +var hasRequiredHandlebars; + +function requireHandlebars () { + if (hasRequiredHandlebars) return handlebars.exports; + hasRequiredHandlebars = 1; + (function (module, exports) { + + exports.__esModule = true; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _handlebarsRuntime = requireHandlebars_runtime(); + + var _handlebarsRuntime2 = _interopRequireDefault(_handlebarsRuntime); + + // Compiler imports + + var _handlebarsCompilerAst = requireAst(); + + var _handlebarsCompilerAst2 = _interopRequireDefault(_handlebarsCompilerAst); + + var _handlebarsCompilerBase = requireBase(); + + var _handlebarsCompilerCompiler = requireCompiler(); + + var _handlebarsCompilerJavascriptCompiler = requireJavascriptCompiler(); + + var _handlebarsCompilerJavascriptCompiler2 = _interopRequireDefault(_handlebarsCompilerJavascriptCompiler); + + var _handlebarsCompilerVisitor = requireVisitor(); + + var _handlebarsCompilerVisitor2 = _interopRequireDefault(_handlebarsCompilerVisitor); + + var _handlebarsNoConflict = requireNoConflict(); + + var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict); + + var _create = _handlebarsRuntime2['default'].create; + function create() { + var hb = _create(); + + hb.compile = function (input, options) { + return _handlebarsCompilerCompiler.compile(input, options, hb); + }; + hb.precompile = function (input, options) { + return _handlebarsCompilerCompiler.precompile(input, options, hb); + }; + + hb.AST = _handlebarsCompilerAst2['default']; + hb.Compiler = _handlebarsCompilerCompiler.Compiler; + hb.JavaScriptCompiler = _handlebarsCompilerJavascriptCompiler2['default']; + hb.Parser = _handlebarsCompilerBase.parser; + hb.parse = _handlebarsCompilerBase.parse; + hb.parseWithoutProcessing = _handlebarsCompilerBase.parseWithoutProcessing; + + return hb; + } + + var inst = create(); + inst.create = create; + + _handlebarsNoConflict2['default'](inst); + + inst.Visitor = _handlebarsCompilerVisitor2['default']; + + inst['default'] = inst; + + exports['default'] = inst; + module.exports = exports['default']; + + } (handlebars, handlebars.exports)); + return handlebars.exports; +} + +var printer = {}; + +/* eslint-disable new-cap */ + +var hasRequiredPrinter; + +function requirePrinter () { + if (hasRequiredPrinter) return printer; + hasRequiredPrinter = 1; + + printer.__esModule = true; + printer.print = print; + printer.PrintVisitor = PrintVisitor; + // istanbul ignore next + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var _visitor = requireVisitor(); + + var _visitor2 = _interopRequireDefault(_visitor); + + function print(ast) { + return new PrintVisitor().accept(ast); + } + + function PrintVisitor() { + this.padding = 0; + } + + PrintVisitor.prototype = new _visitor2['default'](); + + PrintVisitor.prototype.pad = function (string) { + var out = ''; + + for (var i = 0, l = this.padding; i < l; i++) { + out += ' '; + } + + out += string + '\n'; + return out; + }; + + PrintVisitor.prototype.Program = function (program) { + var out = '', + body = program.body, + i = undefined, + l = undefined; + + if (program.blockParams) { + var blockParams = 'BLOCK PARAMS: ['; + for (i = 0, l = program.blockParams.length; i < l; i++) { + blockParams += ' ' + program.blockParams[i]; + } + blockParams += ' ]'; + out += this.pad(blockParams); + } + + for (i = 0, l = body.length; i < l; i++) { + out += this.accept(body[i]); + } + + this.padding--; + + return out; + }; + + PrintVisitor.prototype.MustacheStatement = function (mustache) { + return this.pad('{{ ' + this.SubExpression(mustache) + ' }}'); + }; + PrintVisitor.prototype.Decorator = function (mustache) { + return this.pad('{{ DIRECTIVE ' + this.SubExpression(mustache) + ' }}'); + }; + + PrintVisitor.prototype.BlockStatement = PrintVisitor.prototype.DecoratorBlock = function (block) { + var out = ''; + + out += this.pad((block.type === 'DecoratorBlock' ? 'DIRECTIVE ' : '') + 'BLOCK:'); + this.padding++; + out += this.pad(this.SubExpression(block)); + if (block.program) { + out += this.pad('PROGRAM:'); + this.padding++; + out += this.accept(block.program); + this.padding--; + } + if (block.inverse) { + if (block.program) { + this.padding++; + } + out += this.pad('{{^}}'); + this.padding++; + out += this.accept(block.inverse); + this.padding--; + if (block.program) { + this.padding--; + } + } + this.padding--; + + return out; + }; + + PrintVisitor.prototype.PartialStatement = function (partial) { + var content = 'PARTIAL:' + partial.name.original; + if (partial.params[0]) { + content += ' ' + this.accept(partial.params[0]); + } + if (partial.hash) { + content += ' ' + this.accept(partial.hash); + } + return this.pad('{{> ' + content + ' }}'); + }; + PrintVisitor.prototype.PartialBlockStatement = function (partial) { + var content = 'PARTIAL BLOCK:' + partial.name.original; + if (partial.params[0]) { + content += ' ' + this.accept(partial.params[0]); + } + if (partial.hash) { + content += ' ' + this.accept(partial.hash); + } + + content += ' ' + this.pad('PROGRAM:'); + this.padding++; + content += this.accept(partial.program); + this.padding--; + + return this.pad('{{> ' + content + ' }}'); + }; + + PrintVisitor.prototype.ContentStatement = function (content) { + return this.pad("CONTENT[ '" + content.value + "' ]"); + }; + + PrintVisitor.prototype.CommentStatement = function (comment) { + return this.pad("{{! '" + comment.value + "' }}"); + }; + + PrintVisitor.prototype.SubExpression = function (sexpr) { + var params = sexpr.params, + paramStrings = [], + hash = undefined; + + for (var i = 0, l = params.length; i < l; i++) { + paramStrings.push(this.accept(params[i])); + } + + params = '[' + paramStrings.join(', ') + ']'; + + hash = sexpr.hash ? ' ' + this.accept(sexpr.hash) : ''; + + return this.accept(sexpr.path) + ' ' + params + hash; + }; + + PrintVisitor.prototype.PathExpression = function (id) { + var path = id.parts.join('/'); + return (id.data ? '@' : '') + 'PATH:' + path; + }; + + PrintVisitor.prototype.StringLiteral = function (string) { + return '"' + string.value + '"'; + }; + + PrintVisitor.prototype.NumberLiteral = function (number) { + return 'NUMBER{' + number.value + '}'; + }; + + PrintVisitor.prototype.BooleanLiteral = function (bool) { + return 'BOOLEAN{' + bool.value + '}'; + }; + + PrintVisitor.prototype.UndefinedLiteral = function () { + return 'UNDEFINED'; + }; + + PrintVisitor.prototype.NullLiteral = function () { + return 'NULL'; + }; + + PrintVisitor.prototype.Hash = function (hash) { + var pairs = hash.pairs, + joinedPairs = []; + + for (var i = 0, l = pairs.length; i < l; i++) { + joinedPairs.push(this.accept(pairs[i])); + } + + return 'HASH{' + joinedPairs.join(', ') + '}'; + }; + PrintVisitor.prototype.HashPair = function (pair) { + return pair.key + '=' + this.accept(pair.value); + }; + /* eslint-enable new-cap */ + + return printer; +} + +var lib; +var hasRequiredLib; + +function requireLib () { + if (hasRequiredLib) return lib; + hasRequiredLib = 1; + // USAGE: + // var handlebars = require('handlebars'); + /* eslint-env node */ + /* eslint-disable no-var */ + + // var local = handlebars.create(); + + var handlebars = requireHandlebars()['default']; + + var printer = requirePrinter(); + handlebars.PrintVisitor = printer.PrintVisitor; + handlebars.print = printer.print; + + lib = handlebars; + + // Publish a Node.js require() handler for .handlebars and .hbs files + function extension(module, filename) { + var fs = require$$2; + var templateString = fs.readFileSync(filename, 'utf8'); + module.exports = handlebars.compile(templateString); + } + /* istanbul ignore else */ + if (typeof commonjsRequire !== 'undefined' && commonjsRequire.extensions) { + commonjsRequire.extensions['.handlebars'] = extension; + commonjsRequire.extensions['.hbs'] = extension; + } + return lib; +} + +requireLib(); + +function n(n,r){n.component(n=>{let{elem_classes:i=[],props:a={},html_template:o="${value}",css_template:s=``,js_on_load:c=null,head:l=null,visible:u=true,autoscroll:d=false,apply_default_css:f=true,component_class_name:p=`HTML`,upload:m=null,server:h={},onevent:g,onupdate_value:_,children:v}=r,y=derived(()=>{if(o.includes(`@children`)&&v){let e=o.split(`@children`);return [true,e[0]||``,e.slice(1).join(`@children`)||``]}return [false,o,``]}),b=derived(()=>to_array(y(),3)),x=derived(()=>b()[0]);snapshot(a);let S=`html-${Math.random().toString(36).substring(2,11)}`;onDestroy(()=>void 0);n.push(``),n.push(``),x()?(n.push(``),n.push(` `),v?.(n),n.push(` `)):n.push(``),n.push(``),n.push(``);});} + +export { n }; +//# sourceMappingURL=HTML-Ba2viJD3.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/HTML2-Clujxji8.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/HTML2-Clujxji8.js new file mode 100644 index 0000000000000000000000000000000000000000..9a642d6889e3a20f54e0407b1234252360ee4c1a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/HTML2-Clujxji8.js @@ -0,0 +1,9 @@ +export { n as default } from './HTML-Ba2viJD3.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import 'fs'; +//# sourceMappingURL=HTML2-Clujxji8.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Image-BFJk-f6P.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Image-BFJk-f6P.js new file mode 100644 index 0000000000000000000000000000000000000000..959a84b4a543d958f65d0510bbff608e1b8dcd7b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Image-BFJk-f6P.js @@ -0,0 +1,7 @@ +import './async-Cv1-GZGV.js'; +import { m as attributes, j as clsx, d as derived } from './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{src:r=``,restProps:i={},data_testid:a,class_names:o=[],onload:s,$$slots:c,$$events:l,...u}=n,d=({class:e,...t})=>t,f=derived(()=>d(i)),p=derived(()=>d(u)),m=derived(()=>[o.join(` `),i.class,u.class].filter(Boolean).join(` `));t.push(``);});} + +export { t }; +//# sourceMappingURL=Image-BFJk-f6P.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ImagePreview-BZkRir9q.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ImagePreview-BZkRir9q.js new file mode 100644 index 0000000000000000000000000000000000000000..affd9000735f9d470753e3a7336549a991e2280d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ImagePreview-BZkRir9q.js @@ -0,0 +1,10 @@ +import { O as c } from './2-CQ_Bz8hd.js'; +import { h, v, V as Ve, H, a as He, g, _, i as ie, I as Ie } from './src3-h7ZBftxa.js'; +import { t } from './Image-BFJk-f6P.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, c as bind_props } from './renderer-Dic3PuWn.js'; + +function f(f,p){f.component(f=>{let{value:m,label:h$1=void 0,show_label:g$1,buttons:_$1=[],on_custom_button_click:v$1=null,selectable:y=false,i18n:b,display_icon_button_wrapper_top_corner:x=false,fullscreen:S=false,show_button_background:C=true,onselect:w,onfullscreen:T,onshare:E,onerror:D,onload:O}=p;h(f,{show_label:g$1,Icon:H,label:g$1?h$1||b(`image.image`):``}),f.push(` `),m==null||!m?.url?(f.push(``),v(f,{unpadded_box:true,size:`large`,children:e=>{H(e);}})):(f.push(``),f.push(`
    `),Ve(f,{display_top_corner:x,show_background:C,buttons:_$1,on_custom_button_click:v$1,children:t=>{_$1.some(e=>typeof e==`string`&&e===`fullscreen`)?(t.push(``),He(t,{fullscreen:S,onclick:e=>{S=e,T?.(e);}})):t.push(``),t.push(` `),_$1.some(e=>typeof e==`string`&&e===`download`)?(t.push(``),g(t,{href:m.url,download:m.orig_name||`image`,children:e=>{_(e,{Icon:ie,label:b(`common.download`)});},$$slots:{default:true}})):t.push(``),t.push(` `),_$1.some(e=>typeof e==`string`&&e===`share`)?(t.push(``),Ie(t,{i18n:b,onshare:e=>E?.(e),onerror:e=>D?.(e),formatter:async t=>t?``:``,value:m})):t.push(``),t.push(``);}}),f.push(`
    `)),f.push(``),bind_props(p,{fullscreen:S});});} + +export { f }; +//# sourceMappingURL=ImagePreview-BZkRir9q.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ImagePreview2-DPwsL_Wb.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ImagePreview2-DPwsL_Wb.js new file mode 100644 index 0000000000000000000000000000000000000000..b8706b495a043333e5bd6ed01301ac60052e9a14 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ImagePreview2-DPwsL_Wb.js @@ -0,0 +1,11 @@ +export { f as default } from './ImagePreview-BZkRir9q.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './Image-BFJk-f6P.js'; +//# sourceMappingURL=ImagePreview2-DPwsL_Wb.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index-C_t0K8Ot.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index-C_t0K8Ot.js new file mode 100644 index 0000000000000000000000000000000000000000..552709e653c60edbdf828f0c3c705b29982302d4 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index-C_t0K8Ot.js @@ -0,0 +1,8 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, f as attr, b as attr_style } from './renderer-Dic3PuWn.js'; + +function n(e,n){let{visible:r=true,scale:i=null,min_width:a=0,label:o=void 0,children:s}=n;e.push(``),s?.(e),e.push(``);}function r(t,r){t.component(t=>{let{$$slots:i,$$events:a,...o}=r,s=new m$1(o);n(t,{visible:s.shared.visible,scale:s.shared.scale,min_width:s.shared.min_width,children:e=>{o.children?.(e),e.push(``);}});});} + +export { n, r }; +//# sourceMappingURL=Index-C_t0K8Ot.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index10-DopDGZ3I.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index10-DopDGZ3I.js new file mode 100644 index 0000000000000000000000000000000000000000..28d98f2fa6c347e65493f8f5648842ce8a765a35 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index10-DopDGZ3I.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, h, H, v, V as Ve, a as He } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { s as spread_props, a as attr_class, f as attr, h as ensure_array_like, i as stringify, b as attr_style, e as escape_html, d as derived } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function l(l,u){l.component(l=>{let{$$slots:d,$$events:f$1,...p}=u,m=new m$1(p),h$1=false,g=derived(()=>m.shared.label||m.i18n(`annotated_image.annotated_image`));m.watch_for_change();let _=true,v$1;function y(e){n(e,{visible:m.shared.visible,elem_id:m.shared.elem_id,elem_classes:m.shared.elem_classes,padding:false,height:m.props.height,width:m.props.width,allow_overflow:false,container:m.shared.container,scale:m.shared.scale,min_width:m.shared.min_width,get fullscreen(){return h$1},set fullscreen(e){h$1=e,_=false;},children:e=>{if(f(e,spread_props([{autoscroll:m.shared.autoscroll,i18n:m.i18n},m.shared.loading_status])),e.push(` `),h(e,{show_label:m.shared.show_label,Icon:H,label:g()}),e.push(`
    `),m.props.value==null)e.push(``),v(e,{size:`large`,unpadded_box:true,children:e=>{H(e);}});else {e.push(``),e.push(`
    `),Ve(e,{buttons:m.props.buttons||[],on_custom_button_click:e=>{m.dispatch(`custom_button_click`,{id:e});},children:e=>{(m.props.buttons||[]).some(e=>typeof e==`string`&&e===`fullscreen`)?(e.push(``),He(e,{fullscreen:h$1,onclick:e=>h$1=e})):e.push(``),e.push(``);}}),e.push(` `);let t=ensure_array_like(m.props.value?m.props.value.annotations:[]);for(let n=0,r=t.length;n`);}if(e.push(`
    `),m.props.show_legend&&m.props.value){e.push(``),e.push(`
    `);let t=ensure_array_like(m.props.value.annotations);for(let n=0,r=t.length;n${escape_html(r.label)}`);}e.push(`
    `);}else e.push(``);e.push(``);}e.push(`
    `);},$$slots:{default:true}});}do _=true,v$1=l.copy(),y(v$1);while(!_);l.subsume(v$1);});} + +export { l as default }; +//# sourceMappingURL=Index10-DopDGZ3I.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index11-DkBSPIyI.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index11-DkBSPIyI.js new file mode 100644 index 0000000000000000000000000000000000000000..a638011b214ea6d988297febc94a4f762e92dbfb --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index11-DkBSPIyI.js @@ -0,0 +1,13 @@ +import { n } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './html-CfyvkLET.js'; + +function t(t,n$1){let{elem_id:r,elem_classes:i,visible:a=true,children:o}=n$1;n(t,{elem_id:r,elem_classes:i,visible:a,explicit_call:true,children:e=>{o?.(e),e.push(``);},$$slots:{default:true}});} + +export { t as default }; +//# sourceMappingURL=Index11-DkBSPIyI.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index12-lZ4y7G7K.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index12-lZ4y7G7K.js new file mode 100644 index 0000000000000000000000000000000000000000..26d0be317ad7631da7f41b74dcd2ee17525356c2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index12-lZ4y7G7K.js @@ -0,0 +1,11 @@ +import { d as d$1, c as c$1, p as p$1 } from './chunk-B3kRsjbd.js'; +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import './async-Cv1-GZGV.js'; +import 'node:module'; +import './environment-nLIoW9uA.js'; +import './renderer-Dic3PuWn.js'; + +var a=c$1(((t,n)=>{(function(e,r){typeof t==`object`?n.exports=t=r():typeof define==`function`&&define.amd?define([],r):e.CryptoJS=r();})(t,function(){var t=t||function(t,n){var r;if(typeof window<`u`&&window.crypto&&(r=window.crypto),typeof self<`u`&&self.crypto&&(r=self.crypto),typeof globalThis<`u`&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<`u`&&window.msCrypto&&(r=window.msCrypto),!r&&typeof global<`u`&&global.crypto&&(r=global.crypto),!r&&typeof p$1==`function`)try{r=p$1(`crypto`);}catch{}var i=function(){if(r){if(typeof r.getRandomValues==`function`)try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes==`function`)try{return r.randomBytes(4).readInt32LE()}catch{}}throw Error(`Native crypto module could not be used to get secure random number.`)},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},c=s.Base=function(){return {extend:function(e){var t=a(this);return e&&t.mixIn(e),(!t.hasOwnProperty(`init`)||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments);}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(`toString`)&&(this.toString=e.toString);},clone:function(){return this.init.prototype.extend(this)}}}(),l=s.WordArray=c.extend({init:function(e,t){e=this.words=e||[],t==n?this.sigBytes=e.length*4:this.sigBytes=t;},toString:function(e){return (e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8;}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4);},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((a&15).toString(16));}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a));}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new l.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch{throw Error(`Malformed UTF-8 data`)}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0;},_append:function(e){typeof e==`string`&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes;},_process:function(e){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(o*4);s=e?t.ceil(s):t.max((s|0)-this._minBufferSize,0);var c=s*o,u=t.min(c*4,a);if(c){for(var d=0;d{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=n.x64={};o.Word=i.extend({init:function(e,t){this.high=e,this.low=t;}}),o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],n==t?this.sigBytes=e.length*8:this.sigBytes=n;},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(){if(typeof ArrayBuffer==`function`){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||typeof Uint8ClampedArray<`u`&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i>>2]|=e[i]<<24-i%4*8;n.call(this,r,t);}else n.apply(this,arguments);};r.prototype=t;}})(),e.lib.WordArray});})),c=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a));}return r.join(``)},parse:function(e){for(var t=e.length,r=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,t*2)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o));}return r.join(``)},parse:function(e){for(var t=e.length,r=[],a=0;a>>1]|=i(e.charCodeAt(a)<<16-a%2*16);return n.create(r,t*2)}};function i(e){return e<<8&4278255360|e>>>8&16711935}})(),e.enc.Utf16});})),l=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,c=t[a+2>>>2]>>>24-(a+2)%4*8&255,l=o<<16|s<<8|c,u=0;u<4&&a+u*.75>>6*(3-u)&63));var d=r.charAt(64);if(d)for(;i.length%4;)i.push(d);return i.join(``)},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++;}return n.create(i,a)}})(),e.enc.Base64});})),u=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Base64url={stringify:function(e,t){t===void 0&&(t=true);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var a=[],o=0;o>>2]>>>24-o%4*8&255,c=n[o+1>>>2]>>>24-(o+1)%4*8&255,l=n[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|c<<8|l,d=0;d<4&&o+d*.75>>6*(3-d)&63));var f=i.charAt(64);if(f)for(;a.length%4;)a.push(f);return a.join(``)},parse:function(e,t){t===void 0&&(t=true);var n=e.length,r=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++;}return n.create(i,a)}})(),e.enc.Base64url});})),d=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=t.abs(t.sin(e+1))*4294967296|0;})();var c=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360;}var a=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],m=e[t+3],h=e[t+4],g=e[t+5],_=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],x=e[t+10],S=e[t+11],C=e[t+12],w=e[t+13],T=e[t+14],E=e[t+15],D=a[0],O=a[1],k=a[2],A=a[3];D=l(D,O,k,A,o,7,s[0]),A=l(A,D,O,k,c,12,s[1]),k=l(k,A,D,O,p,17,s[2]),O=l(O,k,A,D,m,22,s[3]),D=l(D,O,k,A,h,7,s[4]),A=l(A,D,O,k,g,12,s[5]),k=l(k,A,D,O,_,17,s[6]),O=l(O,k,A,D,v,22,s[7]),D=l(D,O,k,A,y,7,s[8]),A=l(A,D,O,k,b,12,s[9]),k=l(k,A,D,O,x,17,s[10]),O=l(O,k,A,D,S,22,s[11]),D=l(D,O,k,A,C,7,s[12]),A=l(A,D,O,k,w,12,s[13]),k=l(k,A,D,O,T,17,s[14]),O=l(O,k,A,D,E,22,s[15]),D=u(D,O,k,A,c,5,s[16]),A=u(A,D,O,k,_,9,s[17]),k=u(k,A,D,O,S,14,s[18]),O=u(O,k,A,D,o,20,s[19]),D=u(D,O,k,A,g,5,s[20]),A=u(A,D,O,k,x,9,s[21]),k=u(k,A,D,O,E,14,s[22]),O=u(O,k,A,D,h,20,s[23]),D=u(D,O,k,A,b,5,s[24]),A=u(A,D,O,k,T,9,s[25]),k=u(k,A,D,O,m,14,s[26]),O=u(O,k,A,D,y,20,s[27]),D=u(D,O,k,A,w,5,s[28]),A=u(A,D,O,k,p,9,s[29]),k=u(k,A,D,O,v,14,s[30]),O=u(O,k,A,D,C,20,s[31]),D=d(D,O,k,A,g,4,s[32]),A=d(A,D,O,k,y,11,s[33]),k=d(k,A,D,O,S,16,s[34]),O=d(O,k,A,D,T,23,s[35]),D=d(D,O,k,A,c,4,s[36]),A=d(A,D,O,k,h,11,s[37]),k=d(k,A,D,O,v,16,s[38]),O=d(O,k,A,D,x,23,s[39]),D=d(D,O,k,A,w,4,s[40]),A=d(A,D,O,k,o,11,s[41]),k=d(k,A,D,O,m,16,s[42]),O=d(O,k,A,D,_,23,s[43]),D=d(D,O,k,A,b,4,s[44]),A=d(A,D,O,k,C,11,s[45]),k=d(k,A,D,O,E,16,s[46]),O=d(O,k,A,D,p,23,s[47]),D=f(D,O,k,A,o,6,s[48]),A=f(A,D,O,k,v,10,s[49]),k=f(k,A,D,O,T,15,s[50]),O=f(O,k,A,D,g,21,s[51]),D=f(D,O,k,A,C,6,s[52]),A=f(A,D,O,k,m,10,s[53]),k=f(k,A,D,O,x,15,s[54]),O=f(O,k,A,D,c,21,s[55]),D=f(D,O,k,A,y,6,s[56]),A=f(A,D,O,k,E,10,s[57]),k=f(k,A,D,O,_,15,s[58]),O=f(O,k,A,D,w,21,s[59]),D=f(D,O,k,A,h,6,s[60]),A=f(A,D,O,k,S,10,s[61]),k=f(k,A,D,O,p,15,s[62]),O=f(O,k,A,D,b,21,s[63]),a[0]=a[0]+D|0,a[1]=a[1]+O|0,a[2]=a[2]+k|0,a[3]=a[3]+A|0;},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[(i+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,n[(i+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,e.sigBytes=(n.length+1)*4,this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360;}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return (s<>>32-a)+t}function u(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return (s<>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return (s<>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return (s<>>32-a)+t}n.MD5=a._createHelper(c),n.HmacMD5=a._createHmacHelper(c);})(Math),e.MD5});})),f=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)o[l]=e[t+l]|0;else {var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31;}var d=(r<<5|r>>>27)+c+o[l];l<20?d+=(i&a|~i&s)+1518500249:l<40?d+=(i^a^s)+1859775393:l<60?d+=(i&a|i&s|a&s)-1894007588:d+=(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=r,r=d;}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0;},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s);})(),e.SHA1});})),p=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],c=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return false;return true}function n(e){return (e-(e|0))*4294967296|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,1/2))),c[i]=n(t.pow(r,1/3)),i++),r++;})();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0));},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)l[p]=e[t+p]|0;else {var m=l[p-15],h=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,g=l[p-2],_=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=h+l[p-7]+_+l[p-16];}var v=s&u^~s&d,y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),S=f+x+v+c[p]+l[p],C=b+y;f=d,d=u,u=s,s=o+S|0,o=a,a=i,i=r,r=S+C|0;}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0;},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=t.floor(r/4294967296),n[(i+64>>>9<<4)+15]=r,e.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(u),n.HmacSHA256=a._createHmacHelper(u);})(Math),e.SHA256});})),m=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),p()):typeof define==`function`&&define.amd?define([`./core`,`./sha256`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.WordArray,r=t.algo,i=r.SHA256,a=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(a),t.HmacSHA224=i._createHmacHelper(a);})(),e.SHA224});})),h=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),o()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];(function(){for(var e=0;e<80;e++)l[e]=s();})();var u=o.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)]);},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=r.high,m=r.low,h=i.high,g=i.low,_=a.high,v=a.low,y=o.high,b=o.low,x=s.high,S=s.low,C=u.high,w=u.low,T=d.high,E=d.low,D=f.high,O=f.low,k=p,A=m,j=h,M=g,N=_,P=v,F=y,I=b,L=x,R=S,z=C,B=w,V=T,H=E,ee=D,U=O,W=0;W<80;W++){var G,K,q=l[W];if(W<16)K=q.high=e[t+W*2]|0,G=q.low=e[t+W*2+1]|0;else {var te=l[W-15],J=te.high,Y=te.low,ne=(J>>>1|Y<<31)^(J>>>8|Y<<24)^J>>>7,re=(Y>>>1|J<<31)^(Y>>>8|J<<24)^(Y>>>7|J<<25),ie=l[W-2],X=ie.high,Z=ie.low,ae=(X>>>19|Z<<13)^(X<<3|Z>>>29)^X>>>6,oe=(Z>>>19|X<<13)^(Z<<3|X>>>29)^(Z>>>6|X<<26),se=l[W-7],ce=se.high,le=se.low,ue=l[W-16],de=ue.high,fe=ue.low;G=re+le,K=ne+ce+ +(G>>>0>>0),G+=oe,K=K+ae+ +(G>>>0>>0),G+=fe,K=K+de+ +(G>>>0>>0),q.high=K,q.low=G;}var pe=L&z^~L&V,me=R&B^~R&H,he=k&j^k&N^j&N,ge=A&M^A&P^M&P,_e=(k>>>28|A<<4)^(k<<30|A>>>2)^(k<<25|A>>>7),ve=(A>>>28|k<<4)^(A<<30|k>>>2)^(A<<25|k>>>7),ye=(L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9),be=(R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9),xe=c[W],Se=xe.high,Ce=xe.low,Q=U+be,$=ee+ye+ +(Q>>>0>>0),Q=Q+me,$=$+pe+ +(Q>>>0>>0),Q=Q+Ce,$=$+Se+ +(Q>>>0>>0),Q=Q+G,$=$+K+ +(Q>>>0>>0),we=ve+ge,Te=_e+he+ +(we>>>0>>0);ee=V,U=H,V=z,H=B,z=L,B=R,R=I+Q|0,L=F+$+ +(R>>>0>>0)|0,F=N,I=P,N=j,P=M,j=k,M=A,A=Q+we|0,k=$+Te+ +(A>>>0>>0)|0;}m=r.low=m+A,r.high=p+k+ +(m>>>0>>0),g=i.low=g+M,i.high=h+j+ +(g>>>0>>0),v=a.low=v+P,a.high=_+N+ +(v>>>0

    >>0),b=o.low=b+I,o.high=y+F+ +(b>>>0>>0),S=s.low=S+R,s.high=x+L+ +(S>>>0>>0),w=u.low=w+B,u.high=C+z+ +(w>>>0>>0),E=d.low=E+H,d.high=T+V+ +(E>>>0>>0),O=f.low=O+U,f.high=D+ee+ +(O>>>0>>0);},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+128>>>10<<5)+30]=Math.floor(n/4294967296),t[(r+128>>>10<<5)+31]=n,e.sigBytes=t.length*4,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:1024/32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u);})(),e.SHA512});})),g=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),o(),h()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`,`./sha512`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.x64,r=n.Word,i=n.WordArray,a=t.algo,o=a.SHA512,s=a.SHA384=o.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)]);},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s);})(),e.SHA384});})),_=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),o()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`],r):r(n.CryptoJS);})(e,function(e){return (function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.x64.Word,s=n.algo,c=[],l=[],u=[];(function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,i=(2*e+3*t)%5;e=r,t=i;}for(var e=0;e<5;e++)for(var t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,s=0;s<24;s++){for(var d=0,f=0,p=0;p<7;p++){if(a&1){var m=(1<>>24)&16711935|(a<<24|a>>>8)&4278255360,o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var s=n[i];s.high^=o,s.low^=a;}for(var f=0;f<24;f++){for(var p=0;p<5;p++){for(var m=0,h=0,g=0;g<5;g++){var s=n[p+5*g];m^=s.high,h^=s.low;}var _=d[p];_.high=m,_.low=h;}for(var p=0;p<5;p++)for(var v=d[(p+4)%5],y=d[(p+1)%5],b=y.high,x=y.low,m=v.high^(b<<1|x>>>31),h=v.low^(x<<1|b>>>31),g=0;g<5;g++){var s=n[p+5*g];s.high^=m,s.low^=h;}for(var S=1;S<25;S++){var m,h,s=n[S],C=s.high,w=s.low,T=c[S];T<32?(m=C<>>32-T,h=w<>>32-T):(m=w<>>64-T,h=C<>>64-T);var E=d[l[S]];E.high=m,E.low=h;}var D=d[0],O=n[0];D.high=O.high,D.low=O.low;for(var p=0;p<5;p++)for(var g=0;g<5;g++){var S=p+5*g,s=n[S],k=d[S],A=d[(p+1)%5+5*g],j=d[(p+2)%5+5*g];s.high=k.high^~A.high&j.high,s.low=k.low^~A.low&j.low;}var s=n[0],M=u[f];s.high^=M.high,s.low^=M.low;}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes*8;var r=e.sigBytes*8,a=this.blockSize*32;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=n.length*4,this._process();for(var o=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u>>24)&16711935|(f<<24|f>>>8)&4278255360,p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,l.push(p),l.push(f);}return new i.init(l,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(f),n.HmacSHA3=a._createHmacHelper(f);})(Math),e.SHA3});})),v=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){return (function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360;}for(var a=this._hash.words,o=d.words,p=f.words,b=s.words,x=c.words,S=l.words,C=u.words,w,T,E,D,O,k=w=a[0],A=T=a[1],j=E=a[2],M=D=a[3],N=O=a[4],P,n=0;n<80;n+=1)P=w+e[t+b[n]]|0,n<16?P+=m(T,E,D)+o[0]:n<32?P+=h(T,E,D)+o[1]:n<48?P+=g(T,E,D)+o[2]:n<64?P+=_(T,E,D)+o[3]:P+=v(T,E,D)+o[4],P|=0,P=y(P,S[n]),P=P+O|0,w=O,O=D,D=y(E,10),E=T,T=P,P=k+e[t+x[n]]|0,n<16?P+=v(A,j,M)+p[0]:n<32?P+=_(A,j,M)+p[1]:n<48?P+=g(A,j,M)+p[2]:n<64?P+=h(A,j,M)+p[3]:P+=m(A,j,M)+p[4],P|=0,P=y(P,C[n]),P=P+N|0,k=N,N=M,M=y(j,10),j=A,A=P;P=a[1]+E+M|0,a[1]=a[2]+D+N|0,a[2]=a[3]+O+k|0,a[3]=a[4]+w+A|0,a[4]=a[0]+T+j|0,a[0]=P;},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function g(e,t,n){return (e|~t)^n}function _(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<>>32-t}n.RIPEMD160=a._createHelper(p),n.HmacRIPEMD160=a._createHmacHelper(p);})(),e.RIPEMD160});})),y=c$1(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(a()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS);})(e,function(e){(function(){var t=e,n=t.lib.Base,r=t.enc.Utf8,i=t.algo;i.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,typeof t==`string`&&(t=r.parse(t));var n=e.blockSize,i=n*4;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,l=0;l{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),p(),y()):typeof define==`function`&&define.amd?define([`./core`,`./sha256`,`./hmac`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.SHA256,s=a.HMAC,c=a.PBKDF2=r.extend({cfg:r.extend({keySize:128/32,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e);},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),o=i.create([1]),c=a.words,l=o.words,u=n.keySize,d=n.iterations;c.length{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),f(),y()):typeof define==`function`&&define.amd?define([`./core`,`./sha1`,`./hmac`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e);},compute:function(e,t){for(var n,r=this.cfg,a=r.hasher.create(),o=i.create(),s=o.words,c=r.keySize,l=r.iterations;s.length{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),x()):typeof define==`function`&&define.amd?define([`./core`,`./evpkdf`],r):r(n.CryptoJS);})(e,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var c=s.Base64,l=n.algo.EvpKDF,u=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset();},reset:function(){o.reset.call(this),this._doReset();},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return typeof e==`string`?S:y}return function(t){return {encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(true)},blockSize:1});var d=n.mode={},f=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t;}}),p=d.CBC=function(){var e=f.extend();e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i);}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,a=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=a;}});function n(e,n,r){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var o=0;o>>2]&255;e.sigBytes-=t;}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e);},_doProcessBlock:function(e,t){this._mode.processBlock(e,t);},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(true)):(e=this._process(true),t.unpad(e)),e},blockSize:128/32});var g=r.CipherParams=i.extend({init:function(e){this.mixIn(e);},toString:function(e){return (e||this.formatter).stringify(this)}}),_=n.format={},v=_.OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return t=r?a.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return r[0]==1398893684&&r[1]==1701076831&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),o=i.cfg;return g.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return typeof e==`string`?t.parse(e,this):e}}),b=n.kdf={},x=b.OpenSSL={execute:function(e,t,n,r,i){if(r||=a.random(64/8),i)var o=l.create({keySize:t+n,hasher:i}).compute(e,r);else var o=l.create({keySize:t+n}).compute(e,r);var s=a.create(o.words.slice(t),n*4);return o.sigBytes=t*4,g.create({key:o,iv:s,salt:r})}},S=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var a=y.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}});}();});})),C=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i);}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,a=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=a;}});function n(e,t,n,r){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var o=0;o{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend();return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0);var o=a.slice(0);n.encryptBlock(o,0),a[r-1]=a[r-1]+1|0;for(var s=0;s{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if((e>>24&255)==255){var t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r;}else e+=1<<24;return e}function r(e){return (e[0]=n(e[0]))===0&&(e[1]=n(e[1])),e}return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var c=0;c{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend();return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t);}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t);}}),t}(),e.mode.ECB});})),O=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=t*4,i=r-n%r,a=n+i-1;e.clamp(),e.words[a>>>2]|=i<<24-a%4*8,e.sigBytes+=i;},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t;}},e.pad.Ansix923});})),k=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.pad.Iso10126={pad:function(t,n){var r=n*4,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1));},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t;}},e.pad.Iso10126});})),A=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n);},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--;}},e.pad.Iso97971});})),j=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n);},unpad:function(e){for(var t=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding});})),M=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding});})),N=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),S()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return (function(t){var n=e,r=n.lib.CipherParams,i=n.enc.Hex,a=n.format;a.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return r.create({ciphertext:t})}};})(),e.format.Hex});})),P=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),l(),d(),x(),S()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],c=[],l=[],u=[],d=[],f=[],p=[];(function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var m=r^r<<1^r<<2^r<<3^r<<4;m=m>>>8^m&255^99,i[n]=m,a[m]=n;var h=e[n],g=e[h],_=e[g],v=e[m]*257^m*16843008;o[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,l[n]=v;var v=_*16843009^g*65537^h*257^n*16843008;u[m]=v<<24|v>>>8,d[m]=v<<16|v>>>16,f[m]=v<<8|v>>>24,p[m]=v,n?(n=h^e[e[e[_^h]]],r^=e[e[r]]):n=r=1;}})();var m=[0,1,2,4,8,16,32,64,128,27,54],h=r.AES=n.extend({_doReset:function(){var e;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var t=this._keyPriorReset=this._key,n=t.words,r=t.sigBytes/4,a=((this._nRounds=r+6)+1)*4,o=this._keySchedule=[],s=0;s6&&s%r==4&&(e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[e&255]):(e=e<<8|e>>>24,e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[e&255],e^=m[s/r|0]<<24),o[s]=o[s-r]^e);for(var c=this._invKeySchedule=[],l=0;l>>24]]^d[i[e>>>16&255]]^f[i[e>>>8&255]]^p[i[e&255]];}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,c,l,i);},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,p,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n;},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,m=1;m>>24]^i[u>>>16&255]^a[d>>>8&255]^o[f&255]^n[p++],g=r[u>>>24]^i[d>>>16&255]^a[f>>>8&255]^o[l&255]^n[p++],_=r[d>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[u&255]^n[p++],v=r[f>>>24]^i[l>>>16&255]^a[u>>>8&255]^o[d&255]^n[p++];l=h,u=g,d=_,f=v;}var h=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[f&255])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[l&255])^n[p++],_=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[u&255])^n[p++],v=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[d&255])^n[p++];e[t]=h,e[t+1]=g,e[t+2]=_,e[t+3]=v;},keySize:256/32});t.AES=n._createHelper(h);})(),e.AES});})),F=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),l(),d(),x(),S()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=o[n]-1;t[n]=e[r>>>5]>>>31-r%32&1;}for(var i=this._subKeys=[],a=0;a<16;a++){for(var l=i[a]=[],u=c[a],n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(var n=1;n<7;n++)l[n]=l[n]>>>(n-1)*4+3;l[7]=l[7]<<5|l[7]>>>27;}for(var d=this._invSubKeys=[],n=0;n<16;n++)d[n]=i[15-n];},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys);},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys);},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((o^i[c])&u[c])>>>0];this._lBlock=o,this._rBlock=a^s;}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.`);var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(i));},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t);},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t);},keySize:192/32,ivSize:64/32,blockSize:64/32});t.TripleDES=i._createHelper(m);})(),e.TripleDES});})),I=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),l(),d(),x(),S()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;for(var i=0,a=0;i<256;i++){var o=i%n,s=t[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var c=r[i];r[i]=r[a],r[a]=c;}this._i=this._j=0;},_doProcessBlock:function(e,t){e[t]^=a.call(this);},keySize:256/32,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){t=(t+1)%256,n=(n+e[t])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-i*8;}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this);}});t.RC4Drop=n._createHelper(o);})(),e.RC4});})),L=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),l(),d(),x(),S()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=(e[n]<<8|e[n]>>>24)&16711935|(e[n]<<24|e[n]>>>8)&4278255360;var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=l>>>16|u&4294901760,f=u<<16|l&65535;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f;for(var n=0;n<4;n++)c.call(this);}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=(i[r]<<8|i[r]>>>24)&16711935|(i[r]<<24|i[r]>>>8)&4278255360,e[t+r]^=i[r];},blockSize:128/32,ivSize:64/32});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+ +(t[0]>>>0>>0)|0,t[2]=t[2]+886263092+ +(t[1]>>>0>>0)|0,t[3]=t[3]+1295307597+ +(t[2]>>>0>>0)|0,t[4]=t[4]+3545052371+ +(t[3]>>>0>>0)|0,t[5]=t[5]+886263092+ +(t[4]>>>0>>0)|0,t[6]=t[6]+1295307597+ +(t[5]>>>0>>0)|0,t[7]=t[7]+3545052371+ +(t[6]>>>0>>0)|0,this._b=+(t[7]>>>0>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],i=r&65535,s=r>>>16;o[n]=((i*i>>>17)+i*s>>>15)+s*s^((r&4294901760)*r|0)+((r&65535)*r|0);}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}t.Rabbit=n._createHelper(s);})(),e.Rabbit});})),R=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),l(),d(),x(),S()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];this._b=0;for(var i=0;i<4;i++)c.call(this);for(var i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=l>>>16|u&4294901760,f=u<<16|l&65535;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=f,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=f;for(var i=0;i<4;i++)c.call(this);}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=(i[r]<<8|i[r]>>>24)&16711935|(i[r]<<24|i[r]>>>8)&4278255360,e[t+r]^=i[r];},blockSize:128/32,ivSize:64/32});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+ +(t[0]>>>0>>0)|0,t[2]=t[2]+886263092+ +(t[1]>>>0>>0)|0,t[3]=t[3]+1295307597+ +(t[2]>>>0>>0)|0,t[4]=t[4]+3545052371+ +(t[3]>>>0>>0)|0,t[5]=t[5]+886263092+ +(t[4]>>>0>>0)|0,t[6]=t[6]+1295307597+ +(t[5]>>>0>>0)|0,t[7]=t[7]+3545052371+ +(t[6]>>>0>>0)|0,this._b=+(t[7]>>>0>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],i=r&65535,s=r>>>16;o[n]=((i*i>>>17)+i*s>>>15)+s*s^((r&4294901760)*r|0)+((r&65535)*r|0);}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}t.RabbitLegacy=n._createHelper(s);})(),e.RabbitLegacy});})),z=c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),l(),d(),x(),S()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS);})(e,function(e){return (function(){var t=e,n=t.lib.BlockCipher,r=t.algo;let i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function s(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=t&255,o=e.sbox[0][n]+e.sbox[1][r];return o^=e.sbox[2][i],o+=e.sbox[3][a],o}function c(e,t,n){let r=t,i=n,a;for(let t=0;t<16;++t)r^=e.pbox[t],i=s(e,r)^i,a=r,r=i,i=a;return a=r,r=i,i=a,i^=e.pbox[16],r^=e.pbox[17],{left:r,right:i}}function l(e,t,n){let r=t,i=n,a;for(let t=17;t>1;--t)r^=e.pbox[t],i=s(e,r)^i,a=r,r=i,i=a;return a=r,r=i,i=a,i^=e.pbox[1],r^=e.pbox[0],{left:r,right:i}}function u(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=a[t][n];}let r=0;for(let a=0;a<18;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let o=0,s=0,l=0;for(let t=0;t<18;t+=2)l=c(e,o,s),o=l.left,s=l.right,e.pbox[t]=o,e.pbox[t+1]=s;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)l=c(e,o,s),o=l.left,s=l.right,e.sbox[t][n]=o,e.sbox[t][n+1]=s;return true}var d=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words;u(o,t,e.sigBytes/4);}},encryptBlock:function(e,t){var n=c(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right;},decryptBlock:function(e,t){var n=l(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right;},blockSize:64/32,keySize:128/32,ivSize:64/32});t.Blowfish=n._createHelper(d);})(),e.Blowfish});}));d$1(c$1(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g(),_(),v(),y(),b(),x(),S(),C(),w(),T(),E(),D(),O(),k(),A(),j(),M(),N(),P(),F(),I(),L(),R(),z()):typeof define==`function`&&define.amd?define(`./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish`.split(`,`),r):n.CryptoJS=r(n.CryptoJS);})(e,function(e){return e});}))());function H(e,t){e.component(e=>{let{$$slots:n,$$events:a,...o}=t,s=new m$1(o);s.props.value;});} + +export { H as default }; +//# sourceMappingURL=Index12-lZ4y7G7K.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index13-BRWITG7g.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index13-BRWITG7g.js new file mode 100644 index 0000000000000000000000000000000000000000..bbb6b234e2b6462ea9a8f19f3794bcbd0d868994 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index13-BRWITG7g.js @@ -0,0 +1,21 @@ +import { J as m$1, Q as s, O as c } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, _, M as M$1, e as be, j as ne$1, c as ce, l as z$1, N as N$1, D as D$1, m as ee$1, g, i as ie$1, I as Ie, o as je, S as Se, P as P$1, h, E as E$1 } from './src3-h7ZBftxa.js'; +import { t } from './Image-BFJk-f6P.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, j as clsx, h as ensure_array_like, e as escape_html, d as derived, i as stringify, b as attr_style, f as attr, s as spread_props, c as bind_props } from './renderer-Dic3PuWn.js'; +import { u as ut } from './markdown-code-CPYQEp1F.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +var E=async(e,t=1800)=>{let n=[...e],r=await D(n);return r.length>t&&n.length>2&&(n=[n[0],n[n.length-1]],r=await D(n)),r.length>t&&n.length>0&&(n=n.map(e=>{if(e.type===`text`){let r=Math.floor(t/n.length)-20;if(e.content.length>r)return {...e,content:e.content.substring(0,r)+`...`}}return e}),r=await D(n)),r},D=async t=>(await Promise.all(t.map(async t=>{if(t.role===`system`)return ``;let n=t.role===`user`?`😃`:`🤖`,r=``;if(t.type===`text`){let n={audio:/|!\[.*?\]\((\/file=.*?)\)/g};r=t.content;for(let[i,a]of Object.entries(n)){let n;for(;(n=a.exec(t.content))!==null;){let t=n[1]||n[2],i=await c(t);r=r.replace(t,i);}}}else {if(!t.content.value)return ``;let n=await c(t.content.component===`video`?t.content.value?.video.path:t.content.value);t.content.component===`audio`?r=``:t.content.component===`video`?r=n:t.content.component===`image`&&(r=``);}return `${n}: ${r}`}))).filter(e=>e!==``).join(` +`),O=(e,t)=>e.replace(`src="/file`,`src="${t}file`);function k(e,t){if(!e){let e=t?.path;if(e){let t=e.toLowerCase();if(t.endsWith(`.glb`)||t.endsWith(`.gltf`)||t.endsWith(`.obj`)||t.endsWith(`.stl`)||t.endsWith(`.splat`)||t.endsWith(`.ply`))return `model3d`}return `file`}return e.includes(`audio`)?`audio`:e.includes(`video`)?`video`:e.includes(`image`)?`image`:e.includes(`model`)?`model3d`:`file`}function A(e){let t=Array.isArray(e.file)?e.file[0]:e.file,n=k(t?.mime_type,t);return {component:n,value:n===`file`?Array.isArray(e.file)?e.file:[e.file]:e.file,alt_text:e.alt_text,constructor_args:{},props:{}}}function j(e,t,n,r){let i;return i=t.type===`text`?{role:e.role,metadata:e.metadata,content:O(t.text,n),type:`text`,index:r,options:e.options}:t.type===`file`?{role:e.role,metadata:e.metadata,content:A(t),type:`component`,index:r,options:e.options}:{role:e.role,metadata:e.metadata,content:t,type:`component`,index:r,options:e.options},i}function M(e,t){if(e===null)return e;let n=new Map;return e.flatMap((e,r)=>{let i=e.content.map(n=>j(e,n,t,r));for(let t of i){let{id:r,title:i,parent_id:a}=e.metadata||{};if(a){let e=n.get(String(a));if(e){let a={...t,children:[]};return e.children.push(a),r&&i&&n.set(String(r),a),null}}if(r&&i){let e={...t,children:[]};return n.set(String(r),e),e}}return i}).filter(e=>e!==null)}function N(e){return e.type===`component`}function P(e,t){let n=e[e.length-1].role===`assistant`,r=e[e.length-1].index;return JSON.stringify(r)===JSON.stringify(t[t.length-1].index)&&n}function F(e,t=true){let n=[],r=[],i=null;for(let a of e)if(a.role===`assistant`||a.role===`user`){if(!t){n.push([a]);continue}a.role===i?r.push(a):(r.length>0&&n.push(r),r=[a],i=a.role);}return r.length>0&&n.push(r),n}function L(e,t=0){let n=``,r=` `.repeat(t);e.metadata?.title&&(n+=`${r}${t>0?`- `:``}${e.metadata.title}\n`),typeof e.content==`string`&&(n+=`${r} ${e.content}\n`);let i=e;return i.children?.length>0&&(n+=i.children.map(e=>L(e,t+1)).join(``)),n}function R(e){return Array.isArray(e)?e.map(e=>e.metadata?.title?L(e):e.content).join(` +`):e.metadata?.title?L(e):e.content}function z(e){return Array.isArray(e)&&e.every(e=>typeof e.content==`string`)||!Array.isArray(e)&&typeof e.content==`string`}function B(e){e.push(``);}function V(e){e.push(``);}function H(e){e.push(``);}function U(e){e.push(``);}function W(e){e.push(``);}function G(e){e.push(``);}function K(e,t){e.component(e=>{let{i18n:n,handle_action:r,feedback_options:i,selected:a=null}=t,o=a,s=derived(()=>i.filter(e=>e!==`Like`&&e!==`Dislike`));function c(e){o=o===e?null:e,r(o);}if(i.includes(`Like`)||i.includes(`Dislike`)?(e.push(``),i.includes(`Dislike`)?(e.push(``),_(e,{Icon:o===`Dislike`?B:V,label:o===`Dislike`?`Disliked`:n(`chatbot.dislike`),color:o===`Dislike`?`var(--color-accent)`:`var(--block-label-text-color)`,onclick:()=>c(`Dislike`)})):e.push(``),e.push(` `),i.includes(`Like`)?(e.push(``),_(e,{Icon:o===`Like`?H:U,label:o===`Like`?`Liked`:n(`chatbot.like`),color:o===`Like`?`var(--color-accent)`:`var(--block-label-text-color)`,onclick:()=>c(`Like`)})):e.push(``),e.push(``)):e.push(``),e.push(` `),s().length>0){e.push(``),e.push(`

    `),_(e,{Icon:o&&s().includes(o)?G:W,label:`Feedback`,color:o&&s().includes(o)?`var(--color-accent)`:`var(--block-label-text-color)`}),e.push(`
    `);let t=ensure_array_like(s());for(let n=0,r=t.length;n${escape_html(r)}`);}e.push(`
    `);}else e.push(``);e.push(``);});}function q(e,t){e.component(e=>{let{value:n,watermark:r=null,i18n:i,oncopy:a}=t,o=false,s;function c(){o=true,s&&clearTimeout(s),s=setTimeout(()=>{o=false;},2e3);}async function l(){if(`clipboard`in navigator){a?.({value:n});let e=r?`${n}\n\n${r}`:n;await navigator.clipboard.writeText(e),c();}else {let e=document.createElement(`textarea`);e.value=r?`${n}\n\n${r}`:n,e.style.position=`absolute`,e.style.left=`-999999px`,document.body.prepend(e),e.select();try{document.execCommand(`copy`),c();}catch(e){console.error(e);}finally{e.remove();}}}_(e,{onclick:l,label:i(o?`chatbot.copied_message`:`chatbot.copy_message`),Icon:o?D$1:ne$1});});}function ee(t,n){t.component(t=>{let{i18n:r,likeable:i,feedback_options:a,show_retry:c$1,show_undo:d,show_edit:p,in_edit_mode:h,show_copy_button:y,watermark:b=null,message:S,position:C,avatar:w,generating:E,current_feedback:D,file:O=null,show_download_button:k=false,show_share_button:A=false,handle_action:j,layout:M,oncopy:N,onerror:P,onshare:F}=n,I=derived(()=>z(S)?R(S):``),L=derived(()=>y&&S&&z(S));L()||c$1||d||p||i||k&&O?.url||A&&O?(t.push(``),t.push(``),Ve(t,{top_panel:false,children:t=>{h?(t.push(``),_(t,{label:r(`chatbot.submit`),Icon:D$1,onclick:()=>j(`edit_submit`),disabled:E}),t.push(` `),_(t,{label:r(`chatbot.cancel`),Icon:ee$1,onclick:()=>j(`edit_cancel`),disabled:E}),t.push(``)):(t.push(``),L()?(t.push(``),q(t,{value:I(),oncopy:N,watermark:b,i18n:r})):t.push(``),t.push(` `),k&&O?.url?(t.push(``),g(t,{href:O.is_stream?O.url?.replace(`playlist.m3u8`,`playlist-file`):O.url,download:O.orig_name||O.path||`file`,children:e=>{_(e,{Icon:ie$1,label:r(`common.download`)});},$$slots:{default:true}})):t.push(``),t.push(` `),A&&O?(t.push(``),Ie(t,{i18n:r,onerror:e=>P?.(e),onshare:e=>F?.(e),formatter:async t=>{if(!t)return ``;let n=await c(t.url),r=t.mime_type||``;return r.startsWith(`audio/`)?``:r.startsWith(`video/`)?``:r.startsWith(`image/`)?``:``},value:O})):t.push(``),t.push(` `),c$1?(t.push(``),_(t,{Icon:je,label:r(`chatbot.retry`),onclick:()=>j(`retry`),disabled:E})):t.push(``),t.push(` `),d?(t.push(``),_(t,{label:r(`chatbot.undo`),Icon:Se,onclick:()=>j(`undo`),disabled:E})):t.push(``),t.push(` `),p?(t.push(``),_(t,{label:r(`chatbot.edit`),Icon:P$1,onclick:()=>j(`edit`),disabled:E})):t.push(``),t.push(` `),i?(t.push(``),K(t,{handle_action:j,feedback_options:a,selected:D,i18n:r})):t.push(``),t.push(``)),t.push(``);}}),t.push(``)):t.push(``),t.push(``);});}function J(e,t){e.component(e=>{let{type:n,components:r,value:i,target:a,theme_mode:o,props:s,i18n:c,upload:l,_fetch:u,onload:p}=t,m=derived(()=>r[n]),h=false;function g(e){h=e,document.fullscreenElement&&document.exitFullscreen?.();}function _(){p?.();}n===`gallery`?(e.push(``),m()?(e.push(``),m()(e,spread_props([s,{value:i,display_icon_button_wrapper_top_corner:false,show_label:!!s.label,i18n:c,_fetch:u,allow_preview:false,interactive:false,mode:`minimal`,fixed_height:1,onload:_}])),e.push(``)):(e.push(``),e.push(``))):n===`dataframe`?(e.push(``),m()?(e.push(``),m()(e,spread_props([s,{value:i,show_label:!!s.label,i18n:c,interactive:false,line_breaks:s.line_breaks,wrap:true,root:``,gradio:{dispatch:()=>{},i18n:c},datatype:s.datatype,latex_delimiters:s.latex_delimiters,col_count:s.col_count,row_count:s.row_count,onload:_}])),e.push(``)):(e.push(``),e.push(``))):n===`plot`?(e.push(``),m()?(e.push(``),m()(e,spread_props([s,{value:i,target:a,theme_mode:o,on_change:()=>{},bokeh_version:s.bokeh_version,caption:s.caption||``,show_actions_button:true,onload:_}])),e.push(``)):(e.push(``),e.push(``))):n===`audio`?(e.push(``),m()?(e.push(``),m()(e,spread_props([s,{value:i,show_label:!!s.label,show_share_button:false,i18n:c,waveform_settings:{...s.waveform_settings,autoplay:s.autoplay},show_download_button:false,display_icon_button_wrapper_top_corner:false,minimal:true,onload:_}])),e.push(``)):(e.push(``),e.push(``))):n===`video`?(e.push(``),m()?(e.push(``),m()(e,spread_props([s,{autoplay:s.autoplay,value:i.video||i,show_label:!!s.label,show_share_button:false,i18n:c,upload:l,display_icon_button_wrapper_top_corner:false,show_download_button:false,onload:_,children:e=>{e.push(``);},$$slots:{default:true}}])),e.push(``)):(e.push(``),e.push(``))):n===`image`?(e.push(``),e.push(`
    `),m()?(e.push(``),m()(e,spread_props([s,{value:i,show_label:!!s.label,display_icon_button_wrapper_top_corner:false,buttons:[`fullscreen`],fullscreen:h,show_button_background:false,onfullscreen:g,onload:_,i18n:c}])),e.push(``)):(e.push(``),e.push(``)),e.push(`
    `)):n===`html`?(e.push(``),m()?(e.push(``),m()(e,spread_props([s,{props:{value:i},onload:_}])),e.push(``)):(e.push(``),e.push(``))):n===`model3d`?(e.push(``),m()?(e.push(``),m()(e,spread_props([s,{value:i,clear_color:s.clear_color,display_mode:s.display_mode,zoom_speed:s.zoom_speed,pan_speed:s.pan_speed},s.camera_position!==void 0&&{camera_position:s.camera_position},{has_change_history:true,show_label:!!s.label,root:``,interactive:false,show_share_button:false,gradio:{dispatch:()=>{},i18n:c},onload:_,i18n:c}])),e.push(``)):(e.push(``),e.push(``))):e.push(``),e.push(``);});}function te(e,t){e.component(e=>{let{latex_delimiters:n,sanitize_html:r,_fetch:i,i18n:a,line_breaks:o,upload:s,target:l,theme_mode:u,_components:d,render_markdown:f,scroll:p,allow_tags:_=false,message:v}=t;if(v.type===`text`)e.push(``),e.push(`
    `),ut(e,{message:v.content,latex_delimiters:n,sanitize_html:r,render_markdown:f,line_breaks:o,onload:p,allow_tags:_,theme_mode:u}),e.push(`
    `);else if(v.type===`component`&&v.content.component in d)e.push(``),J(e,{target:l,theme_mode:u,props:v.content.props,type:v.content.component,components:d,value:v.content.value,i18n:a,upload:s,_fetch:i,onload:p});else if(v.type===`component`&&v.content.component===`file`){e.push(``),e.push(``);let t=ensure_array_like(v.content.value);for(let n=0,r=t.length;n
    `),z$1(e),e.push(`
    ${escape_html(r?.orig_name||r?.path.split(`/`).pop()||`file`)} ${escape_html((r.orig_name||r.path||``).split(`.`).pop()?.toUpperCase()??`FILE`)}
    `);}e.push(``);}else e.push(``);e.push(``);});}function ne(e,t){e.component(e=>{let{thought:n,sanitize_html:i,latex_delimiters:a,render_markdown:o,allow_tags:v}=t;function y(e){return `children`in e}let S=derived(()=>({...n,children:y(n)?n.children:[]}));e.push(`
    `),_(e,{Icon:N$1}),e.push(` `),ut(e,{message:S().metadata?.title||``,render_markdown:o,latex_delimiters:a,sanitize_html:i,allow_tags:v||false}),e.push(` `),S().metadata?.status===`pending`?(e.push(``),e.push(``)):e.push(``),e.push(` `),S()?.metadata?.log||S()?.metadata?.duration?(e.push(``),e.push(``),S().metadata.log?(e.push(``),e.push(`${escape_html(S().metadata.log)}`)):e.push(``),e.push(` `),S().metadata.duration===void 0?e.push(``):(e.push(``),e.push(`(`),Number.isInteger(S().metadata.duration)?(e.push(``),e.push(`${escape_html(S().metadata.duration)}s`)):S().metadata.duration>=.1?(e.push(``),e.push(`${escape_html(S().metadata.duration.toFixed(1))}s`)):(e.push(``),e.push(`${escape_html((S().metadata.duration*1e3).toFixed(1))}ms`)),e.push(`)`)),e.push(``)):e.push(``),e.push(`
    `),e.push(``),e.push(``);});}function Y(e,t$1){e.component(e=>{let{value:n,avatar_img:r,opposite_avatar_img:i=null,role:a=`user`,messages:o=[],layout:s,render_markdown:c,latex_delimiters:l,sanitize_html:u,selectable:d,_fetch:f,rtl:p,onselect:m,i18n:h,line_breaks:g,upload:_,target:v,theme_mode:y,_components:b,i:x,show_copy_button:S,generating:w,feedback_options:E,show_like:D,show_edit:O,show_retry:k,show_undo:A,handle_action:j,scroll:M,allow_file_downloads:P,in_edit_mode:F,edit_messages:I=[],display_consecutive_in_same_bubble:L,current_feedback:R=null,allow_tags:z=false,watermark:B=null,onerror:V,onshare:H,oncopy:U}=t$1,W=Array(o.length).fill(160),G=Array(o.length).fill(0);function K(e){return e.type===`text`?e.content:e.type===`component`&&e.content.component===`file`?Array.isArray(e.content.value)?`file of extension type: ${e.content.value[0].orig_name?.split(`.`).pop()}`:`file of extension type: ${e.content.value?.orig_name?.split(`.`).pop()}`+(e.content.value?.orig_name??``):`a component of type ${e.content.component??`unknown`}`}function q(e){for(let t of e)if(t.type===`component`&&(t.content.component===`audio`||t.content.component===`video`||t.content.component===`image`||t.content.component===`file`)&&t.content.value)return t.content.value;return null}let J=derived(()=>({handle_action:j,likeable:D,feedback_options:E,show_retry:k,show_undo:A,show_edit:O,in_edit_mode:F,generating:w,show_copy_button:S,message:o,position:a===`user`?`right`:`left`,avatar:r,layout:s,current_feedback:R,watermark:B,file:q(o),show_download_button:P,show_share_button:true,oncopy:U}));e.push(``),r===null?e.push(``):(e.push(``),e.push(`
    `),t(e,{class:`avatar-image`,src:r?.url,alt:`${stringify(a)} avatar`}),e.push(`
    `)),e.push(` `);let Y=ensure_array_like(o);for(let t=0,r=Y.length;t0})}>`),F&&r.type===`text`){e.push(``),e.push(``);}else e.push(``),e.push(``),r?.metadata?.title?(e.push(``),ne(e,{thought:r,sanitize_html:u,allow_tags:z,latex_delimiters:l,render_markdown:c})):(e.push(``),te(e,{message:r,sanitize_html:u,allow_tags:z,latex_delimiters:l,render_markdown:c,_components:b,upload:_,target:v,theme_mode:y,_fetch:f,scroll:M,i18n:h,line_breaks:g})),e.push(``);e.push(` `),s===`panel`?(e.push(``),ee(e,spread_props([J(),{current_feedback:R,watermark:B,onerror:V,onshare:H,i18n:h}]))):e.push(``),e.push(``);}e.push(` `),s===`bubble`?(e.push(``),ee(e,spread_props([J(),{onerror:V,onshare:H,i18n:h}]))):e.push(``),e.push(``),bind_props(t$1,{edit_messages:I});});}function re(e,t$1){e.component(e=>{let{layout:n=`bubble`,avatar_images:r=[null,null]}=t$1;e.push(`
    `),r[1]===null?e.push(``):(e.push(``),e.push(`
    `),t(e,{class:`avatar-image`,src:r[1].url,alt:`bot avatar`}),e.push(`
    `)),e.push(`
    Loading content
    `);});}function ie(e,t$1){e.component(e=>{let{examples:n=null,placeholder:r=null,latex_delimiters:i}=t$1;if(e.push(``);});}function ae(e,t){e.component(e=>{let{value:n,watermark:r=null}=t,i=false,a;function o(){i=true,a&&clearTimeout(a),a=setTimeout(()=>{i=false;},1e3);}let s=()=>{if(n){let e=n.map(e=>e.type===`text`?`${e.role}: ${e.content}`:`${e.role}: ${e.content.value.url}`).join(` + +`),t=r?`${e}\n\n${r}`:e;navigator.clipboard.writeText(t).catch(e=>{console.error(`Failed to copy conversation: `,e);});}};async function c(){`clipboard`in navigator&&(s(),o());}_(e,{Icon:i?D$1:ne$1,onclick:c,label:i?`Copied conversation`:`Copy conversation`});});}function X(e,n){e.component(e=>{let{value:r=null,_fetch:a,load_component:o,allow_file_downloads:s$1,display_consecutive_in_same_bubble:c,latex_delimiters:l,pending_message:u=false,generating:d=false,selectable:f=false,likeable:p=false,feedback_options:m,feedback_value:h=null,editable:g=null,show_share_button:v=false,show_copy_all_button:b=false,rtl:S=false,show_copy_button:C=false,buttons:w=null,on_custom_button_click:D=null,avatar_images:O=[null,null],sanitize_html:k=true,render_markdown:A=true,line_breaks:j=true,autoscroll:M=true,theme_mode:N,i18n:L,layout:R=`bubble`,placeholder:z=null,upload:B,examples:V=null,_retryable:H=false,_undoable:U=false,like_user_message:W=false,allow_tags:G=false,watermark:K=null,show_progress:q=`full`,onchange:ee,onselect:J,onlike:te,onedit:ne,onundo:X,onretry:oe,onclear:se,onshare:ce,onerror:le,onexampleselect:ue,onoptionselect:de,oncopy:fe}=n,pe={};let me=typeof window<`u`,Z=null,Q=[];function he(){}let $=derived(()=>r?F(r,c):null),ge=derived(()=>{if(!r||!$()||$().length===0)return;let e=$()[$().length-1];if(e[0].role===`assistant`)return e[e.length-1].options});function _e(e,t,n){if(n===`undo`||n===`retry`){let e=r,t=e.length-1;for(;e[t].role===`assistant`;)t--;(n===`undo`?X:oe)?.({index:e[t].index,value:e[t].content});}else if(n==`edit`)Z=e,Q.push(t.content);else if(n==`edit_cancel`)Z=null;else if(n==`edit_submit`)Z=null,ne?.({index:t.index,_dispatch_value:[{type:`text`,text:Q[e].slice()}],value:Q[e].slice(),previous_value:t.content});else {let t=n===`Like`?true:n===`Dislike`?false:n||``;if(!$())return;let r=$()[e],[i]=[r[0],r[r.length-1]];te?.({index:i.index,value:r.map(e=>e.content),liked:t});}}let ve=true,ye;function be$1(e){if(r!==null&&r.length>0?(e.push(``),Ve(e,{buttons:w,on_custom_button_click:D,children:e=>{v?(e.push(``),_(e,{Icon:M$1,onclick:async()=>{try{let e=await E(r);ce?.({description:e});}catch(e){console.error(e);let n=e instanceof s?e.message:`Share failed.`;le?.(n);}}})):e.push(``),e.push(` `),_(e,{Icon:be,onclick:()=>se?.(),label:L(`chatbot.clear`)}),e.push(` `),b?(e.push(``),ae(e,{value:r,watermark:K})):e.push(``),e.push(``);}})):e.push(``),e.push(` `),r!==null&&r.length>0&&$()!==null){e.push(``),e.push(`
    `);let t=ensure_array_like($());for(let n=0,i=t.length;ne[0].role===`assistant`).length,y=o===`bot`&&h&&h[v]?h[v]:null;Y(e,{messages:i,display_consecutive_in_same_bubble:c,opposite_avatar_img:_,avatar_img:u,role:o,layout:R,onselect:J,i18n:L,_fetch:a,line_breaks:j,theme_mode:N,target:null,upload:B,selectable:f,sanitize_html:k,render_markdown:A,rtl:S,i:n,value:r,latex_delimiters:l,_components:pe,generating:d,feedback_options:m,current_feedback:y,allow_tags:G,watermark:K,show_like:o===`user`?p&&W:p,show_retry:H&&P(i,r),show_undo:U&&P(i,r),show_edit:g===`all`||g==`user`&&o===`user`&&i.length>0&&i[i.length-1].type==`text`,in_edit_mode:Z===n,show_copy_button:C,handle_action:e=>{e==`edit`&&Q.splice(0,Q.length),e===`edit`||e===`edit_submit`?i.forEach((t,r)=>{_e(e===`edit`?n:r,t,e);}):_e(n,i[0],e);},scroll:me?he:()=>{},allow_file_downloads:s$1,onerror:le,onshare:ce,oncopy:fe,get edit_messages(){return Q},set edit_messages(e){Q=e,ve=false;}}),e.push(` `),q!==`hidden`&&d&&i[i.length-1].role===`assistant`&&i[i.length-1].metadata?.status===`done`?(e.push(``),re(e,{layout:R,avatar_images:O})):e.push(``),e.push(``);}if(e.push(` `),q!==`hidden`&&u)e.push(``),re(e,{layout:R,avatar_images:O});else if(ge()){e.push(``),e.push(`
    `);let t=ensure_array_like(ge());for(let n=0,r=t.length;n${escape_html(r.label||r.value)}`);}e.push(`
    `);}else e.push(``);e.push(`
    `);}else e.push(``),ie(e,{examples:V,placeholder:z,latex_delimiters:l});e.push(` `),e.push(``),e.push(``);}do ve=true,ye=e.copy(),be$1(ye);while(!ve);e.subsume(ye);});}function oe(e,t){e.component(e=>{let{$$slots:i,$$events:o,...s}=t,c=new m$1(s),l=derived(()=>M(c.props.value,c.shared.root)),u=derived(()=>c.shared.loading_status.status===`error`?`full`:c.shared.loading_status.show_progress===`hidden`?`hidden`:`minimal`);n(e,{elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,visible:c.shared.visible,padding:false,scale:c.shared.scale,min_width:c.shared.min_width,height:c.props.height,resizable:c.props.resizable,min_height:c.props.min_height,max_height:c.props.max_height,allow_overflow:true,flex:true,overflow_behavior:`auto`,rtl:c.props.rtl,children:e=>{c.shared.loading_status?(e.push(``),f(e,spread_props([{autoscroll:c.shared.autoscroll,i18n:c.i18n},c.shared.loading_status,{show_progress:u(),on_clear_status:()=>c.dispatch(`clear_status`,c.shared.loading_status)}]))):e.push(``),e.push(`
    `),c.shared.show_label?(e.push(``),h(e,{show_label:c.shared.show_label,Icon:E$1,float:true,label:c.shared.label||`Chatbot`})):e.push(``),e.push(` `),X(e,{i18n:c.i18n,selectable:c.props._selectable,likeable:c.props.likeable,feedback_options:c.props.feedback_options,feedback_value:c.props.feedback_value,show_share_button:(c.props.buttons??[`share`]).some(e=>typeof e==`string`&&e===`share`),show_copy_all_button:(c.props.buttons??[`copy_all`]).some(e=>typeof e==`string`&&e===`copy_all`),value:l(),latex_delimiters:c.props.latex_delimiters,display_consecutive_in_same_bubble:c.props.group_consecutive_messages,render_markdown:c.props.render_markdown,theme_mode:c.shared.theme_mode,editable:c.props.editable,pending_message:c.shared.loading_status?.status===`pending`,generating:c.shared.loading_status?.status===`generating`,rtl:c.props.rtl,show_copy_button:(c.props.buttons??[`copy`]).some(e=>typeof e==`string`&&e===`copy`),buttons:c.props.buttons,on_custom_button_click:e=>{c.dispatch(`custom_button_click`,{id:e});},like_user_message:c.props.like_user_message,show_progress:c.shared.loading_status?.show_progress||`full`,onchange:()=>{c.props.value=c.props.value,c.dispatch(`change`,c.props.value);},onselect:e=>c.dispatch(`select`,e),onlike:e=>c.dispatch(`like`,e),onshare:e=>c.dispatch(`share`,e),onerror:e=>c.dispatch(`error`,e),onexampleselect:e=>c.dispatch(`example_select`,e),onoptionselect:e=>c.dispatch(`option_select`,e),onretry:e=>c.dispatch(`retry`,e),onundo:e=>c.dispatch(`undo`,e),onclear:()=>{c.props.value=[],c.dispatch(`clear`);},oncopy:e=>c.dispatch(`copy`,e),onedit:e=>{c.props.value===null||c.props.value.length===0||(c.props.value[e.index].content=[{text:e.value,type:`text`}],c.dispatch(`edit`,e));},avatar_images:c.props.avatar_images,sanitize_html:c.props.sanitize_html,line_breaks:c.props.line_breaks,autoscroll:c.props.autoscroll,layout:c.props.layout,placeholder:c.props.placeholder,examples:c.props.examples,_retryable:c.props._retryable,_undoable:c.props._undoable,upload:(...e)=>c.shared.client.upload(...e),_fetch:(...e)=>c.shared.client.fetch(...e),load_component:c.shared.load_component,allow_file_downloads:c.props.allow_file_downloads,allow_tags:c.props.allow_tags,watermark:c.props.watermark}),e.push(`
    `);},$$slots:{default:true}});});} + +export { X as BaseChatBot, oe as default }; +//# sourceMappingURL=Index13-BRWITG7g.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index14-D9iEe_7n.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index14-D9iEe_7n.js new file mode 100644 index 0000000000000000000000000000000000000000..77979709c2d085478522af5dc881d2441aeaaf8c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index14-D9iEe_7n.js @@ -0,0 +1,10 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, q as p } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, f as attr, e as escape_html, c as bind_props, d as derived, s as spread_props } from './renderer-Dic3PuWn.js'; + +function o(e,t){e.component(e=>{let{label:n=`Checkbox`,value:r=void 0,indeterminate:i=false,interactive:o=true,show_label:s=true,on_change:c,on_input:l,on_select:u}=t,d=derived(()=>!o);e.push(` `),s?(e.push(``),e.push(`${escape_html(n)}`)):e.push(``),e.push(``),bind_props(t,{value:r});});}function s(s,c){s.component(s=>{let{$$slots:l,$$events:u,...d}=c,f$1=new m$1(d),p$1=true,m;function h(e){n(e,{visible:f$1.shared.visible,elem_id:f$1.shared.elem_id,elem_classes:f$1.shared.elem_classes,children:e=>{f(e,spread_props([{autoscroll:f$1.shared.autoscroll,i18n:f$1.i18n},f$1.shared.loading_status,{on_clear_status:()=>f$1.dispatch(`clear_status`,f$1.shared.loading_status)}])),e.push(` `),f$1.shared.show_label&&f$1.props.buttons&&f$1.props.buttons.length>0?(e.push(``),Ve(e,{buttons:f$1.props.buttons,on_custom_button_click:e=>{f$1.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),o(e,{label:f$1.shared.label||f$1.i18n(`checkbox.checkbox`),interactive:f$1.shared.interactive,show_label:f$1.shared.show_label,on_change:e=>f$1.dispatch(`change`,e),on_input:()=>f$1.dispatch(`input`),on_select:e=>f$1.dispatch(`select`,e),get value(){return f$1.props.value},set value(e){f$1.props.value=e,p$1=false;}}),e.push(` `),f$1.props.info?(e.push(``),p(e,{info:f$1.props.info})):e.push(``),e.push(``);},$$slots:{default:true}});}do p$1=true,m=s.copy(),h(m);while(!p$1);s.subsume(m);});} + +export { o, s }; +//# sourceMappingURL=Index14-D9iEe_7n.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index15-CHJk3ct_.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index15-CHJk3ct_.js new file mode 100644 index 0000000000000000000000000000000000000000..c639620b9187749ddeff068df6361093190ba66d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index15-CHJk3ct_.js @@ -0,0 +1,12 @@ +export { o as BaseCheckbox, s as default } from './Index14-D9iEe_7n.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +//# sourceMappingURL=Index15-CHJk3ct_.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index16-BrPvbPEN.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index16-BrPvbPEN.js new file mode 100644 index 0000000000000000000000000000000000000000..134e0757717c86f03a73bfab08d58170baaf9364 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index16-BrPvbPEN.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, p as m } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { s as spread_props, f as attr, e as escape_html, h as ensure_array_like, a as attr_class, d as derived } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function o(o,s){o.component(o=>{let{$$slots:c,$$events:l,...u}=s,d=new m$1(u),f$1=derived(()=>{let e=d.props.choices.map(([,e])=>e);return d.props.value.length===0?`unchecked`:d.props.value.length===e.length?`checked`:`indeterminate`}),p=derived(()=>!d.shared.interactive);d.props.value,n(o,{visible:d.shared.visible,elem_id:d.shared.elem_id,elem_classes:d.shared.elem_classes,type:`fieldset`,container:d.shared.container,scale:d.shared.scale,min_width:d.shared.min_width,children:e=>{f(e,spread_props([{autoscroll:d.shared.autoscroll,i18n:d.i18n},d.shared.loading_status,{on_clear_status:()=>d.dispatch(`clear_status`,d.shared.loading_status)}])),e.push(` `),d.shared.show_label&&d.props.buttons&&d.props.buttons.length>0?(e.push(``),Ve(e,{buttons:d.props.buttons,on_custom_button_click:e=>{d.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),m(e,{show_label:d.shared.show_label||d.props.show_select_all&&d.shared.interactive,info:d.props.info,children:e=>{d.props.show_select_all&&d.shared.interactive?(e.push(``),e.push(`
    `)):d.shared.show_label?(e.push(``),e.push(`${escape_html(d.shared.label||d.i18n(`checkbox.checkbox_group`))}`)):e.push(``),e.push(``);}}),e.push(`
    `);let r=ensure_array_like(d.props.choices);for(let t=0,n=r.length;t ${escape_html(d.live_i18n(n))}`);}e.push(`
    `);},$$slots:{default:true}});});} + +export { o as default }; +//# sourceMappingURL=Index16-BrPvbPEN.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index17-CuHcLsB5.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index17-CuHcLsB5.js new file mode 100644 index 0000000000000000000000000000000000000000..6026b0eb48d015c4fdf5bef4df1250e18431fe0d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index17-CuHcLsB5.js @@ -0,0 +1,26 @@ +import { L as onDestroy, J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { _ as _$1, j as ne$1, g as g$1, V as Ve$3, n as n$1, h as h$1, K as j$3, v as v$1, D as D$3, i as ie$2 } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, i as stringify, c as bind_props, d as derived, s as spread_props } from './renderer-Dic3PuWn.js'; + +var e=[],t=[];(()=>{let n=`lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o`.split(`,`).map(e=>e?parseInt(e,36):1);for(let r=0,i=0;r>1;if(n=t[a])r=a+1;else return true;if(r==i)return false}}function r(e){return e>=127462&&e<=127487}var i=8205;function a(e,t,n=true,r=true){return (n?o:s)(e,t,r)}function o(e,t,a){if(t==e.length)return t;t&&l(e.charCodeAt(t))&&u(e.charCodeAt(t-1))&&t--;let o=c(e,t);for(t+=d(o);t=0&&r(c(e,i));)n++,i-=2;if(n%2==0)break;t+=2;}else break}return t}function s(e,t,n){for(;t>0;){let r=o(e,t-2,n);if(r=56320&&e<57344}function u(e){return e>=55296&&e<56320}function d(e){return e<65536?1:2}var f=class e{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,false,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,true,1,0)}replace(e,t,n){[e,t]=x(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),m.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=x(this,e,t);let n=[];return this.decompose(e,t,n,0),m.from(n,t-e)}eq(e){if(e==this)return true;if(e.length!=this.length||e.lines!=this.lines)return false;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new v(this),i=new v(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return false;if(a+=r.value.length,r.done||a>=n)return true}}iter(e=1){return new v(this,e)}iterRange(e,t=this.length){return new y(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else {t??=this.lines+1;let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to));}return new ee(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(t){if(t.length==0)throw RangeError(`A document must have at least one line`);return t.length==1&&!t[0]?e.empty:t.length<=32?new p(t):m.from(p.split(t,[]))}},p=class e extends f{constructor(e,t=h(e)){super(),this.text=e,this.length=t;}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new b(r,o,n,a);r=o+1,n++;}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new e(_(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let t=r.pop(),n=g(a.text,t.text.slice(),0,a.length);if(n.length<=32)r.push(new e(n,t.length+a.length));else {let t=n.length>>1;r.push(new e(n.slice(0,t)),new e(n.slice(t)));}}else r.push(a);}replace(t,n,r){if(!(r instanceof e))return super.replace(t,n,r);[t,n]=x(this,t,n);let i=g(this.text,g(r.text,_(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new e(i,a):m.from(e.split(i,[]),a)}sliceString(e,t=this.length,n=` +`){[e,t]=x(this,e,t);let r=``;for(let i=0,a=0;i<=t&&ae&&a&&(r+=n),ei&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1;}return r}flatten(e){for(let t of this.text)e.push(t);}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},m=class e extends f{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines;}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1;}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i);}a=s+1;}}replace(t,n,r){if([t,n]=x(this,t,n),r.lines=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1;}return super.replace(t,n,r)}sliceString(e,t=this.length,n=` +`){[e,t]=x(this,e,t);let r=``;for(let i=0,a=0;ie&&i&&(r+=n),ea&&(r+=o.sliceString(e-a,t-a,n)),a=s+1;}return r}flatten(e){for(let t of this.children)t.flatten(e);}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1;}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new p(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof p&&c&&(n=u[u.length-1])instanceof p&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new p(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t));}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0);}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};f.empty=new p([``],0);function h(e){let t=-1;for(let n of e)t+=n.length+1;return t}function g(e,t,n=0,r=1e9){for(let i=0,a=0,o=true;a=n&&(c>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof p?e.text.length:e.children.length)<<1];}nextInner(e,t){for(this.done=this.lineBreak=false;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof p?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=true,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop();}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=true,this.value=` +`,this;e--;}else if(r instanceof p){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length;}else {let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof p?i.text.length:i.children.length)<<1));}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},y=class{constructor(e,t,n){this.value=``,this.done=false,this.cursor=new v(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n);}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=true,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},ee=class{constructor(e){this.inner=e,this.afterBreak=true,this.value=``,this.done=false;}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=false):t?(this.done=true,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=true,this.next()):(this.value=r,this.afterBreak=false),this}get lineBreak(){return false}};typeof Symbol<`u`&&(f.prototype[Symbol.iterator]=function(){return this.iter()},v.prototype[Symbol.iterator]=y.prototype[Symbol.iterator]=ee.prototype[Symbol.iterator]=function(){return this});var b=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r;}get length(){return this.to-this.from}};function x(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function S(e,t,n=true,r=true){return a(e,t,n,r)}function te(e){return e>=56320&&e<57344}function ne(e){return e>=55296&&e<56320}function re$1(e,t){let n=e.charCodeAt(t);if(!ne(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return te(r)?(n-55296<<10)+(r-56320)+65536:n}function ie$1(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function ae(e){return e<65536?1:2}var oe$1=/\r\n?|\n/,C=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(C||={}),se$1=class e{constructor(e){this.sections=e;}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=o;}else {if(n!=C.Simple&&c>=e&&(n==C.TrackDel&&re||n==C.TrackBefore&&re))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s;}r=c;}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&o>=e)return rt?`cover`:true;r=o;}return false}toString(){let e=``;for(let t=0;t=0?`:`+r:``);}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},ce$1=class e extends se$1{constructor(e,t){super(e),this.inserted=t;}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return ue$1(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),false),e}mapDesc(e,t=false){return de$1(this,e,t,true)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length0&&le$1(r,n,a.text),a.forward(e),o+=e;}let c=t[e++];for(;o>1].toJSON()));}return e}static of(t,n,r){let i=[],a=[],o=0,s=null;function c(t=false){if(!t&&!i.length)return;os||e<0||s>n)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${n})`);let u=l?typeof l==`string`?f.of(l.split(r||oe$1)):l:f.empty,d=u.length;if(e==s&&d==0)return;eo&&w$1(i,e-o,-1),w$1(i,s-e,d),le$1(a,i,u),o=s;}}return l(t),c(!s),s}static empty(t){return new e(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError(`Invalid JSON representation of ChangeSet`);let n=[],r=[];for(let e=0;et&&typeof e!=`string`))throw RangeError(`Invalid JSON representation of ChangeSet`);else if(i.length==1)n.push(i[0],0);else {for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n);}function le$1(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],c=e.sections[o++];t(i,l,a,u,d),i=l,a=u;}}}function de$1(e,t,n,r=false){let i=[],a=r?[]:null,o=new pe$1(e),s=new pe$1(t);for(let e=-1;;)if(o.done&&s.len||s.done&&o.len)throw Error(`Mismatched change set lengths`);else if(o.ins==-1&&s.ins==-1){let e=Math.min(o.len,s.len);w$1(i,e,-1),o.forward(e),s.forward(e);}else if(s.ins>=0&&(o.ins<0||e==o.i||o.off==0&&(s.len=0&&e=0){let t=0,n=o.len;for(;n;)if(s.ins==-1){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e);}else if(s.ins==0&&s.lent||o.ins>=0&&o.len>t)&&(e||r.length>n),a.forward2(t),o.forward(t);}}var pe$1=class pe{constructor(e){this.set=e,this.i=0,this.next();}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?f.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?f.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e);}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e);}},me$1=class e{constructor(e,t,n){this.from=e,this.to=t,this.flags=n;}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new e(r,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return T$1.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return T$1.range(this.anchor,n)}eq(e,t=false){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return {anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!=`number`||typeof e.head!=`number`)throw RangeError(`Invalid JSON representation for SelectionRange`);return T$1.range(e.anchor,e.head)}static create(t,n,r){return new e(t,n,r)}},T$1=class e{constructor(e,t){this.ranges=e,this.mainIndex=t;}map(t,n=-1){return t.empty?this:e.create(this.ranges.map(e=>e.map(t,n)),this.mainIndex)}eq(e,t=false){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return false;for(let n=0;ne.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!=`number`||t.main>=t.ranges.length)throw RangeError(`Invalid JSON representation for EditorSelection`);return new e(t.ranges.map(e=>me$1.fromJSON(e)),t.main)}static single(t,n=t){return new e([e.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw RangeError(`A selection needs at least one range`);for(let r=0,i=0;ie?8:0)|i)}static normalized(t,n=0){let r=t[n];t.sort((e,t)=>e.from-t.from),n=t.indexOf(r);for(let r=1;ri.head?e.range(s,o):e.range(o,s));}}return new e(t,n)}};function he$1(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError(`Selection points outside of document`)}var ge$1=0,E$1=class e{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=ge$1++,this.default=e([]),this.extensions=typeof i==`function`?i(this):i;}get reader(){return this}static define(t={}){return new e(t.combine||(e=>e),t.compareInput||((e,t)=>e===t),t.compare||(t.combine?(e,t)=>e===t:_e$1),!!t.static,t.enables)}of(e){return new ve$1([],this,0,e)}compute(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new ve$1(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new ve$1(e,this,2,t)}from(e,t){return t||=e=>e,this.compute([e],n=>t(n.field(e)))}};function _e$1(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}var ve$1=class ve{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=ge$1++;}dynamicSlot(e){let t=this.value,n=this.facet.compareInput,r=this.id,i=e[r]>>1,a=this.type==2,o=false,s=false,c=[];for(let t of this.dependencies)t==`doc`?o=true:t==`selection`?s=true:(e[t.id]??1)&1||c.push(e[t.id]);return {create(e){return e.values[i]=t(e),1},update(e,r){if(o&&r.docChanged||s&&(r.docChanged||r.selection)||be$1(e,c)){let r=t(e);if(a?!ye$1(r,e.values[i],n):!n(r,e.values[i]))return e.values[i]=r,1}return 0},reconfigure:(e,o)=>{let s,c=o.config.address[r];if(c!=null){let r=Ne(o,c);if(this.dependencies.every(t=>t instanceof E$1?o.facet(t)===e.facet(t):t instanceof Ce$1?o.field(t,false)==e.field(t,false):true)||(a?ye$1(s=t(e),r,n):n(s=t(e),r)))return e.values[i]=r,0}else s=t(e);return e.values[i]=s,1}}}};function ye$1(e,t,n){if(e.length!=t.length)return false;for(let r=0;re[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(e&1)),o=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),t);return t.provide&&(n.provides=t.provide(n)),n}create(e){return (e.facet(Se$1).find(e=>e.field==this)?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return {create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(Se$1),i=n.facet(Se$1),a;return (a=r.find(e=>e.field==this))&&a!=i.find(e=>e.field==this)?(e.values[t]=a.create(e),1):n.config.address[this.id]==null?(e.values[t]=this.create(e),1):(e.values[t]=n.field(this),0)}}}init(e){return [this,Se$1.of({field:this,create:e})]}get extension(){return this}},we$1={lowest:4,low:3,default:2,high:1,highest:0};function Te$1(e){return t=>new De$1(t,e)}var Ee$1={highest:Te$1(we$1.highest),high:Te$1(we$1.high),default:Te$1(we$1.default),low:Te$1(we$1.low),lowest:Te$1(we$1.lowest)},De$1=class De{constructor(e,t){this.inner=e,this.prec=t;}},Oe$1=class e{of(e){return new ke$1(this,e)}reconfigure(t){return e.reconfigure.of({compartment:this,extension:t})}get(e){return e.config.compartments.get(this)}},ke$1=class ke{constructor(e,t){this.compartment=e,this.inner=t;}},Ae=class e{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),o=new Map;for(let e of je$1(t,n,o))e instanceof Ce$1?i.push(e):(a[e.facet.id]||(a[e.facet.id]=[])).push(e);let s=Object.create(null),c=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push(t=>e.slot(t));let u=r?.config.facets;for(let e in a){let t=a[e],n=t[0].facet,i=u&&u[e]||[];if(t.every(e=>e.type==0))if(s[n.id]=c.length<<1|1,_e$1(i,t))c.push(r.facet(n));else {let e=n.combine(t.map(e=>e.value));c.push(r&&n.compare(e,r.facet(n))?r.facet(n):e);}else {for(let e of t)e.type==0?(s[e.id]=c.length<<1|1,c.push(e.value)):(s[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));s[n.id]=l.length<<1,l.push(e=>xe$1(e,n,t));}}return new e(t,o,l.map(e=>e(s)),s,c,a)}};function je$1(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(e,o){let s=i.get(e);if(s!=null){if(s<=o)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof ke$1&&n.delete(e.compartment);}if(i.set(e,o),Array.isArray(e))for(let t of e)a(t,o);else if(e instanceof ke$1){if(n.has(e.compartment))throw RangeError(`Duplicate use of compartment in extensions`);let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),a(r,o);}else if(e instanceof De$1)a(e.inner,e.prec);else if(e instanceof Ce$1)r[o].push(e),e.provides&&a(e.provides,o);else if(e instanceof ve$1)r[o].push(e),e.facet.extensions&&a(e.facet.extensions,we$1.default);else {let t=e.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(t,o);}}return a(e,we$1.default),r.reduce((e,t)=>e.concat(t))}function Me(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw Error(`Cyclic dependency between fields and/or facets`);if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function Ne(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}var Pe=E$1.define(),Fe=E$1.define({combine:e=>e.some(e=>e),static:true}),Ie=E$1.define({combine:e=>e.length?e[0]:void 0,static:true}),Le$1=E$1.define(),Re$2=E$1.define(),ze$2=E$1.define(),Be$1=E$1.define({combine:e=>e.length?e[0]:false}),Ve$2=class Ve{constructor(e,t){this.type=e,this.value=t;}static define(){return new He$2}},He$2=class He{of(e){return new Ve$2(this,e)}},Ue$2=class Ue{constructor(e){this.map=e;}of(e){return new D$2(this,e)}},D$2=class e{constructor(e,t){this.type=e,this.value=t;}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new e(this.type,n)}is(e){return this.type==e}static define(e={}){return new Ue$2(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e);}return n}};D$2.reconfigure=D$2.define(),D$2.appendConfig=D$2.define();var O$2=class e{constructor(t,n,r,i,a,o){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=o,this._doc=null,this._state=null,r&&he$1(r,n.newLength),a.some(t=>t.type==e.time)||(this.annotations=a.concat(e.time.of(Date.now())));}static create(t,n,r,i,a,o){return new e(t,n,r,i,a,o)}get newDoc(){return this._doc||=this.changes.apply(this.startState.doc)}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return !this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(e.userEvent);return !!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]==`.`))}};O$2.time=Ve$2.define(),O$2.userEvent=Ve$2.define(),O$2.addToHistory=Ve$2.define(),O$2.remote=Ve$2.define();function We$1(e,t){let n=[];for(let r=0,i=0;;){let a,o;if(r=e[r]))a=e[r++],o=e[r++];else if(i=0;n--){let i=r[n](e);e=i instanceof O$2?i:Array.isArray(i)&&i.length==1&&i[0]instanceof O$2?i[0]:qe$2(t,Ze$2(i),false);}return e}function Ye$2(e){let t=e.startState,n=t.facet(ze$2),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=Ge$1(r,Ke$1(t,a,e.changes.newLength),true));}return r==e?e:O$2.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}var Xe$2=[];function Ze$2(e){return e==null?Xe$2:Array.isArray(e)?e:[e]}var Qe$2=(function(e){return e[e.Word=0]=`Word`,e[e.Space=1]=`Space`,e[e.Other=2]=`Other`,e})(Qe$2||={}),$e$2=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,et$2;try{et$2=RegExp(`[\\p{Alphabetic}\\p{Number}_]`,`u`);}catch{}function tt$2(e){if(et$2)return et$2.test(e);for(let t=0;t`€`&&(n.toUpperCase()!=n.toLowerCase()||$e$2.test(n)))return true}return false}function nt$2(e){return t=>{if(!/\S/.test(t))return Qe$2.Space;if(tt$2(t))return Qe$2.Word;for(let n=0;n-1)return Qe$2.Word;return Qe$2.Other}}var k$2=class e{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;ei.set(t,e)),null),i.set(e.value.compartment,e.value.extension)):e.is(D$2.reconfigure)?(n=null,r=e.value):e.is(D$2.appendConfig)&&(n=null,r=Ze$2(r).concat(e.value));let a;n?a=t.startState.values.slice():(n=Ae.resolve(r,i,this),a=new e(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let o=t.startState.facet(Fe)?t.newSelection:t.newSelection.asSingle();new e(n,t.newDoc,o,a,(e,n)=>n.update(e,t),t);}replaceSelection(e){return typeof e==`string`&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:T$1.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=Ze$2(n.effects);for(let n=1;nn.spec.fromJSON(a,e)));}}return e.create({doc:t.doc,selection:T$1.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=Ae.resolve(t.extensions||[],new Map),r=t.doc instanceof f?t.doc:f.of((t.doc||``).split(n.staticFacet(e.lineSeparator)||oe$1)),i=t.selection?t.selection instanceof T$1?t.selection:T$1.single(t.selection.anchor,t.selection.head):T$1.single(0);return he$1(i,r.length),n.staticFacet(Fe)||(i=i.asSingle()),new e(n,r,i,n.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(e.tabSize)}get lineBreak(){return this.facet(e.lineSeparator)||` +`}get readOnly(){return this.facet(Be$1)}phrase(t,...n){for(let n of this.facet(e.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(e,t)=>{if(t==`$`)return `$`;let r=+(t||1);return !r||r>n.length?e:n[r-1]})),t}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(Pe))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){let t=this.languageDataAt(`wordChars`,e);return nt$2(t.length?t[0]:``)}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,o=e-n;for(;a>0;){let e=S(t,a,false);if(i(t.slice(e,a))!=Qe$2.Word)break;a=e;}for(;oe.length?e[0]:4}),k$2.lineSeparator=Ie,k$2.readOnly=Be$1,k$2.phrases=E$1.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),k$2.languageData=Pe,k$2.changeFilter=Le$1,k$2.transactionFilter=Re$2,k$2.transactionExtender=ze$2,Oe$1.reconfigure=D$2.define();function rt$2(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],a=r[e];if(a===void 0)r[e]=i;else if(!(a===i||i===void 0))if(Object.hasOwnProperty.call(n,e))r[e]=n[e](a,i);else throw Error(`Config merge conflict for field `+e)}for(let e in t)r[e]===void 0&&(r[e]=t[e]);return r}var it$2=class it{eq(e){return this==e}range(e,t=e){return ot$2.create(e,t,this)}};it$2.prototype.startSide=it$2.prototype.endSide=0,it$2.prototype.point=false,it$2.prototype.mapMode=C.TrackDel;function at$2(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}var ot$2=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n;}static create(t,n,r){return new e(t,n,r)}};function st$2(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var ct$2=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r;}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,o=i.length;;){if(a==o)return a;let r=a+o>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return s>=0?a:o;s>=0?o=r:a=r+1;}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,true),a=this.findIndex(n,1e9,false,i);if||d==f&&c.startSide>0&&c.endSide<=0)continue;(f-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(s=Math.max(s,f-d)),r.push(c),i.push(d-o),a.push(f-o));}return {mapped:r.length?new e(i,a,r,s):null,pos:o}}},A$2=class e{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r;}static create(t,n,r,i){return new e(t,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(t){let{add:n=[],sort:r=false,filterFrom:i=0,filterTo:a=this.length}=t,o=t.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(st$2)),this.isEmpty)return n.length?e.of(n):this;let s=new ft$1(this,null,-1).goto(0),c=0,l=[],u=new ut$1;for(;s.value||c=0){let e=n[c++];u.addInner(e.from,e.to,e.value)||l.push(e);}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||as.to||a=i&&e<=i+a.length&&a.between(i,e-i,t-i,n)===false)return}this.nextLayer.between(e,t,n);}}iter(e=0){return pt$1.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return pt$1.from(e).goto(t)}static compare(e,t,n,r,i=-1){let a=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=dt$2(a,o,n),c=new ht$1(a,s,i),l=new ht$1(o,s,i);n.iterGaps((e,t,n)=>gt$1(c,e,l,t,n,r)),n.empty&&n.length==0&>$1(c,0,l,0,0,r);}static eq(e,t,n=0,r){r??=999999999;let i=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),a=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(i.length!=a.length)return false;if(!i.length)return true;let o=dt$2(i,a),s=new ht$1(i,o,0).goto(n),c=new ht$1(a,o,0).goto(n);for(;;){if(s.to!=c.to||!_t$1(s.active,c.active)||s.point&&(!c.point||!at$2(s.point,c.point)))return false;if(s.to>r)return true;s.next(),c.next();}}static spans(e,t,n,r,i=-1){let a=new ht$1(e,null,i).goto(t),o=t,s=a.openStart;for(;;){let e=Math.min(a.to,n);if(a.point){let n=a.activeForPoint(a.to),i=a.pointFromo&&(r.span(o,e,a.active,s),s=a.openEnd(e));if(a.to>n)return s+(a.point&&a.to>n?1:0);o=a.to,a.next();}}static of(e,t=false){let n=new ut$1;for(let r of e instanceof ot$2?[e]:t?lt$2(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(t){if(!t.length)return e.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=e.empty;i=i.nextLayer)n=new e(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}};A$2.empty=new A$2([],[],null,-1);function lt$2(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(st$2);t=r;}return e}A$2.empty.nextLayer=A$2.empty;var ut$1=class e{finishChunk(e){this.chunks.push(new ct$2(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[]);}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null;}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||=new e).add(t,n,r);}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?false:(this.from.length==250&&this.finishChunk(true),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),true)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return false;this.from.length&&this.finishChunk(true),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,true}finish(){return this.finishInner(A$2.empty)}finishInner(e){if(this.from.length&&this.finishChunk(false),this.chunks.length==0)return e;let t=A$2.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function dt$2(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new ft$1(a,n,r,e));return i.length==1?i[0]:new e(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)mt$1(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)mt$1(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next();}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else {let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),mt$1(this.heap,0);}}};function mt$1(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r;}}var ht$1=class ht{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=pt$1.from(e,t,n);}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t);}removeActive(e){vt$1(this.active,e),vt$1(this.activeTo,e),vt$1(this.activeRank,e),this.minActive=bt$1(this.active,this.activeTo);}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t0;)t++;yt$1(this.active,t,n),yt$1(this.activeTo,t,r),yt$1(this.activeRank,t,i),e&&yt$1(e,t,this.cursor.from),this.minActive=bt$1(this.active,this.activeTo);}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&vt$1(n,r);}else if(!this.cursor.value){this.to=this.endSide=1e9;break}else if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else {let e=this.cursor.value;if(!e.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}};function gt$1(e,t,n,r,i,a){e.goto(t),n.goto(r);let o=r+i,s=r,c=r-t,l=!!a.boundChange;for(let t=false;;){let r=e.to+c-n.to,i=r||e.endSide-n.endSide,u=i<0?e.to+c:n.to,d=Math.min(u,o);if(e.point||n.point?(e.point&&n.point&&at$2(e.point,n.point)&&_t$1(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(s,d,e.point,n.point),t=false):(t&&a.boundChange(s),d>s&&!_t$1(e.active,n.active)&&a.compareRange(s,d,e.active,n.active),l&&do)break;s=u,i<=0&&e.next(),i>=0&&n.next();}}function _t$1(e,t){if(e.length!=t.length)return false;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n;}function bt$1(e,t){let n=-1,r=1e9;for(let i=0;i=t)return r;if(r==e.length)break;i+=e.charCodeAt(r)==9?n-i%n:1,r=S(e,r);}return r===true?-1:e.length}for(var Ct$1=`ͼ`,wt$1=typeof Symbol>`u`?`__ͼ`:Symbol.for(Ct$1),Tt$1=typeof Symbol>`u`?`__styleSet`+Math.floor(Math.random()*1e8):Symbol(`styleSet`),Et$1=typeof globalThis<`u`?globalThis:typeof window<`u`?window:{},Dt$1=class Dt{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return /^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,a,o){let s=[],c=/^@(\w+)\b/.exec(e[0]),l=c&&c[1]==`keyframes`;if(c&&t==null)return a.push(e[0]+`;`);for(let n in t){let o=t[n];if(/&/.test(n))i(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),o,a);else if(o&&typeof o==`object`){if(!c)throw RangeError(`The value of a property (`+n+`) should be a primitive value.`);i(r(n),o,s,l);}else o!=null&&s.push(n.replace(/_.*/,``).replace(/[A-Z]/g,e=>`-`+e.toLowerCase())+`: `+o+`;`);}(s.length||l)&&a.push((n&&!c&&!o?e.map(n):e).join(`, `)+` {`+s.join(` `)+`}`);}for(let t in e)i(r(t),e[t],this.rules);}getRules(){return this.rules.join(` +`)}static newName(){let e=Et$1[wt$1]||1;return Et$1[wt$1]=e+1,Ct$1+e.toString(36)}static mount(e,t,n){let r=e[Tt$1],i=n&&n.nonce;r?i&&r.setNonce(i):r=new kt$1(e,i),r.mount(Array.isArray(t)?t:[t],e);}},Ot$1=new Map,kt$1=class kt{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=Ot$1.get(n);if(t)return e[Tt$1]=t;this.sheet=new r.CSSStyleSheet,Ot$1.set(n,this);}else this.styleTag=n.createElement(`style`),t&&this.styleTag.setAttribute(`nonce`,t);this.modules=[],e[Tt$1]=this;}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,a),n)for(let e=0;e`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},Mt$1=typeof navigator<`u`&&/Mac/.test(navigator.platform),Nt$1=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),j$2=0;j$2<10;j$2++)At$1[48+j$2]=At$1[96+j$2]=String(j$2);for(var j$2=1;j$2<=24;j$2++)At$1[j$2+111]=`F`+j$2;for(var j$2=65;j$2<=90;j$2++)At$1[j$2]=String.fromCharCode(j$2+32),jt$1[j$2]=String.fromCharCode(j$2);for(var Pt$1 in At$1)jt$1.hasOwnProperty(Pt$1)||(jt$1[Pt$1]=At$1[Pt$1]);function Ft$1(e){var t=!(Mt$1&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Nt$1&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?jt$1:At$1)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}function It$1(){var e=arguments[0];typeof e==`string`&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n==`object`&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i==`string`?e.setAttribute(r,i):i!=null&&(e[r]=i);}t++;}for(;t2),N$2={mac:qt$1||/Mac/.test(M$2.platform),windows:/Win/.test(M$2.platform),linux:/Linux|X11/.test(M$2.platform),ie:Ht$1,ie_version:Bt$1?Rt$1.documentMode||6:Vt$1?+Vt$1[1]:zt$1?+zt$1[1]:0,gecko:Ut$1,gecko_version:Ut$1?+(/Firefox\/(\d+)/.exec(M$2.userAgent)||[0,0])[1]:0,chrome:!!Wt$1,chrome_version:Wt$1?+Wt$1[1]:0,ios:qt$1,android:/Android\b/.test(M$2.userAgent),webkit_version:Gt$1?+(/\bAppleWebKit\/(\d+)/.exec(M$2.userAgent)||[0,0])[1]:0,safari:Kt$1,safari_version:Kt$1?+(/\bVersion\/(\d+(\.\d+)?)/.exec(M$2.userAgent)||[0,0])[1]:0,tabSize:Rt$1.documentElement.style.tabSize==null?`-moz-tab-size`:`tab-size`};function Jt$1(e,t){for(let n in e)n==`class`&&t.class?t.class+=` `+e.class:n==`style`&&t.style?t.style+=`;`+e.style:t[n]=e[n];return t}var Yt$1=Object.create(null);function Xt$1(e,t,n){if(e==t)return true;e||=Yt$1,t||=Yt$1;let r=Object.keys(e),i=Object.keys(t);if(r.length-(0)!=i.length-(0))return false;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return false;return true}function Zt$1(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;t[r]??e.removeAttribute(r);}for(let n in t){let r=t[n];n==`style`?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r);}}function Qt$1(e,t,n){let r=false;if(t)for(let i in t)n&&i in n||(r=true,i==`style`?e.style.cssText=``:e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=true,i==`style`?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function $t$1(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:t>0?1e8:-1e8,new rn$1(e,t,t,n,e.widget||null,false)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else {let{start:i,end:a}=an$1(e,t);n=(i?t?-3e8:-1:5e8)-1,r=(a?t?2e8:1:-6e8)+1;}return new rn$1(e,n,r,t,e.widget||null,true)}static line(e){return new nn$1(e)}static set(e,t=false){return A$2.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}};F$2.none=A$2.empty;var tn$1=class e extends F$2{constructor(e){let{start:t,end:n}=an$1(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||`span`,this.attrs=e.class&&e.attributes?Jt$1(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Yt$1;}eq(t){return this==t||t instanceof e&&this.tagName==t.tagName&&Xt$1(this.attrs,t.attrs)}range(e,t=e){if(e>=t)throw RangeError(`Mark decorations may not be empty`);return super.range(e,t)}};tn$1.prototype.point=false;var nn$1=class e extends F$2{constructor(e){super(-2e8,-2e8,null,e);}eq(t){return t instanceof e&&this.spec.class==t.spec.class&&Xt$1(this.spec.attributes,t.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError(`Line decoration ranges must be zero-length`);return super.range(e,t)}};nn$1.prototype.mapMode=C.TrackBefore,nn$1.prototype.point=true;var rn$1=class e extends F$2{constructor(e,t,n,r,i,a){super(t,n,i,e),this.block=r,this.isReplace=a,this.mapMode=r?t<=0?C.TrackBefore:C.TrackAfter:C.TrackDel;}get type(){return this.startSide==this.endSide?this.startSide<=0?P$2.WidgetBefore:P$2.WidgetAfter:P$2.WidgetRange}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof e&&on$1(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError(`Invalid range for replacement decoration`);if(!this.isReplace&&t!=e)throw RangeError(`Widget decorations can only have zero-length ranges`);return super.range(e,t)}};rn$1.prototype.point=true;function an$1(e,t=false){let{inclusiveStart:n,inclusiveEnd:r}=e;return n??=e.inclusive,r??=e.inclusive,{start:n??t,end:r??t}}function on$1(e,t){return e==t||!!(e&&t&&e.compare(t))}function sn$1(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t);}var cn$1=class e extends it$2{constructor(e,t){super(),this.tagName=e,this.attributes=t;}eq(t){return t==this||t instanceof e&&this.tagName==t.tagName&&Xt$1(this.attributes,t.attributes)}static create(t){return new e(t.tagName,t.attributes||Yt$1)}static set(e,t=false){return A$2.of(e,t)}};cn$1.prototype.startSide=cn$1.prototype.endSide=-1;function ln$1(e){let t;return t=e.nodeType==11?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function un$1(e,t){return t?e==t||e.contains(t.nodeType==1?t:t.parentNode):false}function dn$1(e,t){if(!t.anchorNode)return false;try{return un$1(e,t.anchorNode)}catch{return false}}function fn$1(e){return e.nodeType==3?Dn$1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function pn$1(e,t,n,r){return n?gn$1(e,t,n,r,-1)||gn$1(e,t,n,r,1):false}function mn$1(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function hn$1(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function gn$1(e,t,n,r,i){for(;;){if(e==n&&t==r)return true;if(t==(i<0?0:_n$1(e))){if(e.nodeName==`DIV`)return false;let n=e.parentNode;if(!n||n.nodeType!=1)return false;t=mn$1(e)+(i<0?0:1),e=n;}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable==`false`)return false;t=i<0?_n$1(e):0;}else return false}}function _n$1(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function vn$1(e,t){let n=t?e.left:e.right;return {left:n,right:n,top:e.top,bottom:e.bottom}}function yn$1(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function bn$1(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return (n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function xn$1(e,t,n,r,i,a,o,s){let c=e.ownerDocument,l=c.defaultView||window;for(let u=e,d=false;u&&!d;)if(u.nodeType==1){let e,f=u==c.body,p=1,m=1;if(f)e=yn$1(l);else {if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=true),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();(({scaleX:p,scaleY:m}=bn$1(u,t))),e={left:t.left,right:t.left+u.clientWidth*p,top:t.top,bottom:t.top+u.clientHeight*m};}let h=0,g=0;if(i==`nearest`)t.top0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+o)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+o,n<0&&t.top-g0&&t.right>e.right+h&&(h=t.right-e.right+a)):t.right>e.right&&(h=t.right-e.right+a,n<0&&t.lefte.bottom||t.lefte.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode;}else if(u.nodeType==11)u=u.host;else break}function Sn$1(e){let t=e.ownerDocument,n,r;for(let i=e.parentNode;i&&!(i==t.body||n&&r);)if(i.nodeType==1)!r&&i.scrollHeight>i.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return {x:n,y:r}}var Cn$1=class Cn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0;}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?_n$1(t):0),n,Math.min(e.focusOffset,n?_n$1(n):0));}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r;}},wn$1=null;N$2.safari&&N$2.safari_version>=26&&(wn$1=false);function Tn$1(e){if(e.setActive)return e.setActive();if(wn$1)return e.focus(wn$1);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(wn$1==null?{get preventScroll(){return wn$1={preventScroll:true},true}}:void 0),!wn$1){wn$1=false;for(let e=0;eMath.max(1,e.scrollHeight-e.clientHeight-4)}function Mn$1(e,t){for(let n=e,r=t;;)if(n.nodeType==3&&r>0)return {node:n,offset:r};else if(n.nodeType==1&&r>0){if(n.contentEditable==`false`)return null;n=n.childNodes[r-1],r=_n$1(n);}else if(n.parentNode&&!hn$1(n))r=mn$1(n),n=n.parentNode;else return null}function Nn$1(e,t){for(let n=e,r=t;;)if(n.nodeType==3&&r=t){if(o.level==n)return a;(i<0||(r==0?e[i].level>o.level:r<0?o.fromt))&&(i=a);}}if(i<0)throw RangeError(`Index out of range`);return i}};function Gn$1(e,t){if(e.length!=t.length)return false;for(let n=0;n=0;e-=3)if(Vn$1[e+1]==-r){let n=Vn$1[e+2],r=n&2?i:n&4?n&1?a:i:0;r&&(L$2[t]=L$2[Vn$1[e]]=r),s=e;break}}else if(Vn$1.length==189)break;else Vn$1[s++]=t,Vn$1[s++]=n,Vn$1[s++]=c;else if((o=L$2[t])==2||o==1){let e=o==i;c=+!e;for(let t=s-3;t>=0;t-=3){let n=Vn$1[t+2];if(n&2)break;if(e)Vn$1[t+2]|=2;else {if(n&4)break;Vn$1[t+2]|=4;}}}}}function Jn$1(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let o=i?n[i-1].to:e,s=ic;)t==a&&(t=n[--r].from,a=r?n[r-1].to:e),L$2[--t]=u;c=o;}else a=o,c++;}}}function Yn$1(e,t,n,r,i,a,o){let s=r%2?2:1;if(r%2==i%2)for(let c=t,l=0;cc&&o.push(new Wn$1(c,m.from,f)),Xn$1(e,m.direction==Fn$1==!(f%2)?r:r+1,i,m.inner,m.from,m.to,o),c=m.to),p=m.to;}else if(p==n||(t?L$2[p]!=s:L$2[p]==s))break;else p++;d?Yn$1(e,c,p,r+1,i,d,o):ct;){let n=true,u=false;if(!l||c>a[l-1].to){let e=L$2[c-1];e!=s&&(n=false,u=e==16);}let d=!n&&s==1?[]:null,f=n?r:r+1,p=c;run:for(;;)if(l&&p==a[l-1].to){if(u)break run;let m=a[--l];if(!n)for(let e=m.from,n=l;;){if(e==t)break run;if(n&&a[n-1].to==e)e=a[--n].from;else if(L$2[e-1]==s)break run;else break}d?d.push(m):(m.toL$2.length;)L$2[L$2.length]=256;let r=[],i=t==Fn$1?0:1;return Xn$1(e,i,i,n,0,e.length,r),r}function Qn$1(e){return [new Wn$1(0,e,0)]}var $n$1=``;function er$1(e,t,n,r,i){let a=r.head-e.from,o=Wn$1.find(t,a,r.bidiLevel??-1,r.assoc),s=t[o],c=s.side(i,n);if(a==c){let e=o+=i?1:-1;if(e<0||e>=t.length)return null;s=t[o=e],a=s.side(!i,n),c=s.side(i,n);}let l=S(e.text,a,s.forward(i,n));(ls.to)&&(l=c),$n$1=e.text.slice(Math.min(a,l),Math.max(a,l));let u=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return u&&l==c&&u.level+ +!ie.some(e=>e)}),fr=E$1.define({combine:e=>e.some(e=>e)}),pr$1=E$1.define(),mr$1=class e{constructor(e,t=`nearest`,n=`nearest`,r=5,i=5,a=false){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=a;}map(t){return t.empty?this:new e(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new e(T$1.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},hr$1=D$2.define({map:(e,t)=>e.map(t)}),gr$1=D$2.define();function R$2(e,t,n){let r=e.facet(ar$1);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+`:`,t):console.error(t));}var _r$1=E$1.define({combine:e=>e.length?e[0]:true}),vr$1=0,yr$1=E$1.define({combine(e){return e.filter((t,n)=>{for(let r=0;r{let t=[];return o&&t.push(Cr$1.of(t=>{let n=t.plugin(e);return n?o(n):F$2.none})),a&&t.push(a(e)),t})}static fromClass(t,n){return e.define((e,n)=>new t(e,n),n)}},br$1=class br{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null;}get plugin(){return this.spec&&this.spec.plugin}update(e){if(!this.value){if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg);}catch(t){R$2(e.state,t,`CodeMirror plugin crashed`),this.deactivate();}}else if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e);}catch(t){if(R$2(e.state,t,`CodeMirror plugin crashed`),this.value.destroy)try{this.value.destroy();}catch{}this.deactivate();}}return this}destroy(e){if(this.value?.destroy)try{this.value.destroy();}catch(t){R$2(e.state,t,`CodeMirror plugin crashed`);}}deactivate(){this.spec=this.value=null;}},xr$1=E$1.define(),Sr$1=E$1.define(),Cr$1=E$1.define(),wr$1=E$1.define(),Tr$1=E$1.define(),Er$1=E$1.define(),Dr$1=E$1.define();function Or$1(e,t){let n=e.state.facet(Dr$1);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return A$2.spans(r,t.from,t.to,{point(){},span(e,n,r,a){let o=e-t.from,s=n-t.from,c=i;for(let e=r.length-1;e>=0;e--,a--){let n=r[e].spec.bidiIsolate,i;if(n??=tr$1(t.text,o,s),a>0&&c.length&&(i=c[c.length-1]).to==o&&i.direction==n)i.to=s,c=i.inner;else {let e={from:o,to:s,direction:n,inner:[]};c.push(e),c=e.inner;}}}}),i}var kr$1=E$1.define();function Ar$1(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(kr$1)){let o=a(e);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)));}return {left:t,right:n,top:r,bottom:i}}var jr$1=E$1.define(),Mr$1=class e{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r;}join(t){return new e(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAr.push(new Mr$1(e,t,n,i))),this.changedRanges=r;}static create(t,n,r){return new e(t,n,r)}get viewportChanged(){return (this.flags&4)>0}get viewportMoved(){return (this.flags&8)>0}get heightChanged(){return (this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return (this.flags&1)>0}get docChanged(){return !this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},Pr$1=[],B$2=class B{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this;}get breakAfter(){return this.flags&1}get children(){return Pr$1}isWidget(){return false}get isHidden(){return false}isComposite(){return false}isLine(){return false}isText(){return false}isBlock(){return false}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let e=this.domAttrs;e&&Zt$1(this.dom,e);}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:``)+(this.breakAfter?`#`:``)}destroy(){this.parent=null;}setDOM(e){this.dom=e,e.cmTile=this;}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let t of this.children){if(t==e)return n;n+=t.length+t.breakAfter;}throw RangeError(`Invalid child in posBefore`)}posAfter(e){return this.posBefore(e)+e.length}covers(e){return true}coordsIn(e,t){return null}domPosFor(e,t){let n=mn$1(this.dom),r=this.length?e>0:t>0;return new Pn$1(this.parent.dom,n+ +!!r,e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(false);}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof Lr$1)return e;return null}static get(e){return e.cmTile}},Fr$1=class Fr extends B$2{constructor(e){super(e,0),this._children=[];}isComposite(){return true}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this;}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,n=null,r,i=e?.node==t?e:null,a=0;for(let o of this.children){if(o.sync(e),a+=o.length+o.breakAfter,r=n?n.nextSibling:t.firstChild,i&&r!=o.dom&&(i.written=true),o.dom.parentNode==t)for(;r&&r!=o.dom;)r=Ir$1(r);else t.insertBefore(o.dom,r);n=o.dom;}for(r=n?n.nextSibling:t.firstChild,i&&r&&(i.written=true);r;)r=Ir$1(r);this.length=a;}};function Ir$1(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var Lr$1=class Lr extends Fr$1{constructor(e,t){super(t),this.view=e;}owns(e){for(;e;e=e.parent)if(e==this)return true;return false}isBlock(){return true}nearest(e){for(;;){if(!e)return null;let t=B$2.get(e);if(t&&this.owns(t))return t;e=e.parentNode;}}blockTiles(e){for(let t=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&i++,r=t.pop();}else {let a=n.children[r++];if(a instanceof Rr$1)t.push(r),n=a,r=0;else {let t=i+a.length,n=e(a,i);if(n!==void 0)return n;i=t+a.breakAfter;}}}resolveBlock(e,t){let n,r=-1,i,a=-1;if(this.blockTiles((o,s)=>{let c=s+o.length;if(e>=s&&e<=c){if(o.isWidget()&&t>=-1&&t<=1){if(o.flags&32)return true;o.flags&16&&(n=void 0);}(se||e==s&&(t>1?o.length:o.covers(-1)))&&(!i||!o.isWidget()&&i.isWidget())&&(i=o,a=e-s);}}),!n&&!i)throw Error(`No tile at position `+e);return n&&t<0||!i?{tile:n,offset:r}:{tile:i,offset:a}}},Rr$1=class e extends Fr$1{constructor(e,t){super(e),this.wrapper=t;}isBlock(){return true}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):false}get domAttrs(){return this.wrapper.attributes}static of(t,n){let r=new e(n||document.createElement(t.tagName),t);return n||(r.flags|=4),r}},zr$1=class e extends Fr$1{constructor(e,t){super(e),this.attrs=t;}isLine(){return true}static start(t,n,r){let i=new e(n||document.createElement(`div`),t);return (!n||!r)&&(i.flags|=4),i}get domAttrs(){return this.attrs}resolveInline(e,t,n){let r=null,i=-1,a=null,o=-1;function s(e,c){for(let l=0,u=0;l=c&&(d.isComposite()?s(d,c-u):(!a||a.isHidden&&(t>0||n&&Vr$1(a,d)))&&(f>c||d.flags&32)?(a=d,o=c-u):(un&&(e=n);let r=e,i=e,a=0;e==0&&t<0||e==n&&t>=0?N$2.chrome||N$2.gecko||(e?(r--,a=1):i=0)?0:o.length-1];return N$2.safari&&!a&&s.width==0&&(s=Array.prototype.find.call(o,e=>e.width)||s),a?vn$1(s,a<0):s||null}static of(t,n){let r=new e(n||document.createTextNode(t),t);return n||(r.flags|=2),r}},Ur$1=class e extends B$2{constructor(e,t,n,r){super(e,t,r),this.widget=n;}isWidget(){return true}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?false:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,false)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return vn$1(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let t=this.dom.getClientRects(),n=null;if(!t.length)return null;let r=this.flags&16?true:this.flags&32?false:e>0;for(let i=r?t.length-1:0;n=t[i],!(e>0?i==0:i==t.length-1||n.top0;)if(!r.isComposite())if(i==r.length)a=!!r.breakAfter,{tile:r,index:i}=o.pop(),i++;else if(e){let t=Math.min(e,r.length-i);n&&n.skip(r,i,i+t),e-=t,i+=t;}else break;else if(a){if(!e)break;n&&n.break(),e--,a=false;}else if(i==r.children.length){if(!e&&!o.length)break;n&&n.leave(r),a=!!r.breakAfter,{tile:r,index:i}=o.pop(),i++;}else {let s=r.children[i],c=s.breakAfter;(t>0?s.length<=e:s.length=0;e--){let n=t.marks[e],i=r.lastChild;if(i instanceof V$2&&i.mark.eq(n.mark))i.dom!=n.dom&&i.setDOM(ri(n.dom)),r=i;else {if(this.cache.reused.get(n)){let e=B$2.get(n.dom);e&&e.setDOM(ri(n.dom));}let e=V$2.of(n.mark,n.dom);r.append(e),r=e;}this.cache.reused.set(n,2);}let i=B$2.get(e.text);i&&this.cache.reused.set(i,2);let a=new Hr$1(e.text,e.text.nodeValue);a.flags|=8,r.append(a);}addInlineWidget(e,t,n){let r=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);r||this.flushBuffer();let i=this.ensureMarks(t,n);!r&&!(e.flags&16)&&i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e;}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null;}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine();}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e;}addLineStart(e,t){e||=ei$1;let n=zr$1.start(e,t||this.cache.find(zr$1)?.dom,!!t);this.getBlockPos().append(this.lastBlock=this.curLine=n);}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine();}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++;}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e);}ensureLine(e){this.curLine||this.addLineStart(e);}ensureMarks(e,t){let n=this.curLine;for(let r=e.length-1;r>=0;r--){let i=e[r],a;if(t>0&&(a=n.lastChild)&&a instanceof V$2&&a.mark.eq(i))n=a,t--;else {let e=V$2.of(i,this.cache.find(V$2,e=>e.mark.eq(i))?.dom);n.append(e),n=e,t=0;}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!Qr$1(this.curLine,false)||e.dom.nodeName!=`BR`&&e.isWidget()&&!(N$2.ios&&Qr$1(this.curLine,true)))&&this.curLine.append(this.cache.findWidget(ai$1,0,32)||new Ur$1(ai$1.toDOM(),0,ai$1,32)),this.curLine=this.afterWidget=null;}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to=this.pos){let t=new Kr$1(e.from,e.to,e.value,e.rank),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-t.rank||this.wrappers[n-1].to-t.to)<0;)n--;this.wrappers.splice(n,0,t);}this.wrapperPos=this.pos;}getBlockPos(){this.updateBlockWrappers();let e=this.root;for(let t of this.wrappers){let n=e.lastChild;if(t.frome.wrapper.eq(t.wrapper))?.dom);e.append(n),e=n;}}return e}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(Wr$1,void 0,1);return n&&(n.flags=t),n||new Wr$1(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null);}},Jr$1=class Jr{constructor(e){this.skipCount=0,this.text=``,this.textOff=0,this.cursor=e.iter();}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text=``,this.textOff=0);}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skipCount);if(this.skipCount=0,r)throw Error(`Ran out of text content when drawing inline views`);this.text=t;let i=this.textOff=Math.min(e,t.length);return n?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}},Yr$1=[Ur$1,zr$1,Hr$1,V$2,Wr$1,Rr$1,Lr$1];for(let e=0;e[]),this.index=Yr$1.map(()=>0),this.reused=new Map;}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e;}find(e,t,n=2){let r=e.bucket,i=this.buckets[r],a=this.index[r];for(let e=i.length-1;e>=0;e--){let o=(e+a)%i.length,s=i[o];if((!t||t(s))&&!this.reused.has(s))return i.splice(o,1),o{if(this.cache.add(e),e.isComposite())return false},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}};}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,i=0,a=0;;){let o=ar){let e=s-r;this.preserve(e,!a,!o),r=s,i+=e;}if(!o)break;t&&o.fromA<=t.range.fromA&&o.toA>=t.range.toA?(this.forward(o.fromA,t.range.fromA,t.range.fromA{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(n-t);else {let a=n>0||t{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof V$2&&r.unshift(e.mark)),this.openWidget=false;},leave:e=>{e.isLine()?r.length&&=i=0:e instanceof V$2&&(r.shift(),i=Math.min(i,r.length));},break:()=>{this.builder.addBreak(),this.openWidget=false;}}),this.text.skip(e);}emit(e,t){let n=null,r=this.builder,i=0,a=A$2.spans(this.decorations,e,t,{point:(e,t,a,o,s,c)=>{if(a instanceof rn$1){if(this.disallowBlockEffectsFor[c]){if(a.block)throw RangeError(`Block decorations may not be specified via plugins`);if(t>this.view.state.doc.lineAt(e).to)throw RangeError(`Decorations that replace line breaks may not be specified via plugins`)}if(i=o.length,s>o.length)r.continueWidget(t-e);else {let i=a.widget||(a.block?ii$1.block:ii$1.inline),c=$r$1(a),l=this.cache.findWidget(i,t-e,c)||Ur$1.of(i,this.view,t-e,c);a.block?(a.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(l)):(r.ensureLine(n),r.addInlineWidget(l,o,s));}n=null;}else n=ti$1(n,a);t>e&&this.text.skip(t-e);},span:(e,t,i,a)=>{for(let o=e;oi,this.openMarks=a;}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker));}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let e=B$2.get(r);if(r==this.view.contentDOM)break;e instanceof V$2?t.push(e):e?.isLine()?n=e:r.nodeName==`DIV`&&!n&&r!=this.view.contentDOM?n=new zr$1(r,ei$1):t.push(V$2.of(new tn$1({tagName:r.nodeName.toLowerCase(),attributes:$t$1(r)}),r));}return {line:n,marks:t}}};function Qr$1(e,t){let n=e=>{for(let r of e.children)if((t?r.isText():r.length)||n(r))return true;return false};return n(e)}function $r$1(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}var ei$1={class:`cm-line`};function ti$1(e,t){let n=t.spec.attributes,r=t.spec.class;return !n&&!r?e:(e||={class:`cm-line`},n&&Jt$1(n,e),r&&(e.class+=` `+r),e)}function ni$1(e){let t=[];for(let n=e.parents.length;n>1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof V$2&&t.push(r.mark);}return t}function ri(e){let t=B$2.get(e);return t&&t.setDOM(e.cloneNode()),e}var ii$1=class ii extends en$1{constructor(e){super(),this.tag=e;}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return true}};ii$1.inline=new ii$1(`span`),ii$1.block=new ii$1(`div`);var ai$1=new class extends en$1{toDOM(){return document.createElement(`br`)}get isHidden(){return true}get editable(){return true}},oi$1=class oi{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[false],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=F$2.none,this.lastCompositionAfterCursor=false,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=false,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Lr$1(e,e.contentDOM),this.updateInner([new Mr$1(0,0,0,e.state.doc.length)],null);}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every(({fromA:e,toA:t})=>tthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(this.domChanged?.newSel?n=this.domChanged.newSel.head:!_i(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let r=n>-1?ui(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){let{from:n,to:r}=this.hasComposition;t=new Mr$1(n,r,e.changes.mapPos(n,-1),e.changes.mapPos(r,1)).addToSet(t.slice());}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(N$2.ie||N$2.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=true);let i=this.decorations,a=this.blockWrappers;this.updateDeco();let o=pi(i,this.decorations,e.changes);o.length&&(t=Mr$1.extendWithRanges(t,o));let s=hi(a,this.blockWrappers,e.changes);return s.length&&(t=Mr$1.extendWithRanges(t,s)),r&&!t.some(e=>e.fromA<=r.range.fromA&&e.toA>=r.range.toA)&&(t=r.range.addToSet(t.slice())),this.tile.flags&2&&t.length==0?false:(this.updateInner(t,r),e.transactions.length&&(this.lastUpdate=Date.now()),true)}updateInner(e,t){this.view.viewState.mustMeasureContent=true;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let n=this.tile,r=new Zr$1(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=r.run(e,t),si$1(n,r.cache.reused);}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+`px`,this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+`px`:``;let r=N$2.chrome||N$2.ios?{node:n.selectionRange.focusNode,written:false}:void 0;this.tile.sync(r),r&&(r.written||n.selectionRange.focusNode!=r.node||!this.tile.dom.contains(r.node))&&(this.forceSelection=true),this.tile.dom.style.height=``;});let r=[];if(this.view.viewport.from||this.view.viewport.to-1)&&dn$1(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(i||t||a))return;let o=this.forceSelection;this.forceSelection=false;let s=this.view.state.selection.main,c,l;if(s.empty?l=c=this.inlineDOMNearPos(s.anchor,s.assoc||1):(l=this.inlineDOMNearPos(s.head,s.head==s.from?1:-1),c=this.inlineDOMNearPos(s.anchor,s.anchor==s.from?1:-1)),N$2.gecko&&s.empty&&!this.hasComposition&&ci$1(c)){let e=document.createTextNode(``);this.view.observer.ignore(()=>c.node.insertBefore(e,c.node.childNodes[c.offset]||null)),c=l=new Pn$1(e,0),o=true;}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!pn$1(c.node,c.offset,u.anchorNode,u.anchorOffset)||!pn$1(l.node,l.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,s))&&(this.view.observer.ignore(()=>{N$2.android&&N$2.chrome&&n.contains(u.focusNode)&&gi(u.focusNode,n)&&(n.blur(),n.focus({preventScroll:true}));let e=ln$1(this.view.root);if(e)if(s.empty){if(N$2.gecko){let e=di(c.node,c.offset);if(e&&e!=3){let t=(e==1?Mn$1:Nn$1)(c.node,c.offset);t&&(c=new Pn$1(t.node,t.offset));}}e.collapse(c.node,c.offset),s.bidiLevel!=null&&e.caretBidiLevel!==void 0&&(e.caretBidiLevel=s.bidiLevel);}else if(e.extend){e.collapse(c.node,c.offset);try{e.extend(l.node,l.offset);}catch{}}else {let t=document.createRange();s.anchor>s.head&&([c,l]=[l,c]),t.setEnd(l.node,l.offset),t.setStart(c.node,c.offset),e.removeAllRanges(),e.addRange(t);}a&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus());}),this.view.observer.setSelectionRange(c,l)),this.impreciseAnchor=c.precise?null:new Pn$1(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new Pn$1(u.focusNode,u.focusOffset);}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&pn$1(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=ln$1(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let a=this.lineAt(t.head,t.assoc);if(!a)return;let o=a.posAtStart;if(t.head==o||t.head==o+a.length)return;let s=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!s||!c||s.bottom>c.top)return;let l=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(l.node,l.offset),n.modify(`move`,t.assoc<0?`forward`:`backward`,`lineboundary`),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i);}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let i;if(e==n.dom)i=n.dom.childNodes[t];else {let r=_n$1(e)==0?0:t==0?-1:1;for(;;){let t=e.parentNode;if(t==n.dom)break;r==0&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t;}i=r<0?e:e.nextSibling;}if(i==n.dom.firstChild)return r;for(;i&&!B$2.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let e=0,t=r;;e++){let r=n.children[e];if(r.dom==i)return t;t+=r.length+r.breakAfter;}}else if(n.isText())return e==n.dom?r+t:r+(t?n.length:0);else return r}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(e,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r=-1,i=false,a,o=-1,s=false;return this.tile.blockTiles((t,c)=>{if(t.isWidget()){if(t.flags&32&&c>=e)return true;t.flags&16&&(i=true);}else {let l=c+t.length;if(c<=e&&(n=t,r=e-c,i=l=e&&!a&&(a=t,o=e-c,s=c>e),c>e&&a)return true}}),!n&&!a?this.domAtPos(e,t):(i&&a?n=null:s&&n&&(a=null),n&&t<0||!a?n.domIn(r,t):a.domIn(o,t))}coordsAt(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.widget instanceof vi?null:n.coordsInWidget(r,t,true):n.coordsIn(r,t)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function r(e,t){if(e.isComposite())for(let n of e.children){if(n.length>=t){let e=r(n,t);if(e)return e}if(t-=n.length,t<0)break}else if(e.isText()&&tMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,s=this.view.textDirection==I$2.LTR,c=0,l=(e,u,d)=>{for(let f=0;fr);f++){let r=e.children[f],p=u+r.length,m=r.dom.getBoundingClientRect(),{height:h}=m;if(d&&!f&&(c+=m.top-d.top),r instanceof Rr$1)p>n&&l(r,u,m);else if(u>=n&&(c>0&&t.push(-c),t.push(h+c),c=0,a)){let e=r.dom.lastChild,t=e?fn$1(e):[];if(t.length){let e=t[t.length-1],n=s?e.right-m.left:m.right-e.left;n>o&&(o=n,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=p);}}d&&f==e.children.length-1&&(c+=d.bottom-m.bottom),u=p+r.breakAfter;}};return l(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction==`rtl`?I$2.RTL:I$2.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t=0,n;for(let r of e.children){if(!r.isText()||/[^ -~]/.test(r.text))return;let e=fn$1(r.dom);if(e.length!=1)return;t+=e[0].width,n=e[0].height;}if(t)return {lineHeight:e.dom.getBoundingClientRect().height,charWidth:t/e.length,textHeight:n}}});if(e)return e;let t=document.createElement(`div`),n,r,i;return t.className=`cm-line`,t.style.width=`99999px`,t.style.position=`absolute`,t.textContent=`abc def ghi jkl mno pqr stu`,this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let e=fn$1(t.firstChild)[0];n=t.getBoundingClientRect().height,r=e&&e.width?e.width/27:7,i=e&&e.height?e.height:n,t.remove();}),{lineHeight:n,charWidth:r,textHeight:i}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],a=i?i.from-1:this.view.state.doc.length;if(a>n){let r=(t.lineBlockAt(a).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(F$2.replace({widget:new vi(r),block:true,inclusive:true,isBlockGap:true}).range(n,a));}if(!i)break;n=i.to+1;}return F$2.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Cr$1).map(t=>(this.dynamicDecorationMap[e++]=typeof t==`function`)?t(this.view):t),n=false,r=this.view.state.facet(Tr$1).map((e,t)=>{let r=typeof e==`function`;return r&&(n=true),r?e(this.view):e});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(A$2.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];etypeof e==`function`?e(this.view):e);}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(pr$1))try{if(t(this.view,e.range,e))return !0}catch(e){R$2(this.view.state,e,`scroll handler`);}let{range:t}=e,n=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),r;if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=Ar$1(this.view),a={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom},{offsetWidth:o,offsetHeight:s}=this.view.scrollDOM;xn$1(this.view.scrollDOM,a,t.heade.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){si$1(this.tile);}};function si$1(e,t){let n=t?.get(e);if(n!=1){n??e.destroy();for(let n of e.children)si$1(n,t);}}function ci$1(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable==`false`)&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable==`false`)}function li(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=Mn$1(n.focusNode,n.focusOffset),i=Nn$1(n.focusNode,n.focusOffset),a=r||i;if(i&&r&&i.node!=r.node){let t=B$2.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)a=i;else if(e.docView.lastCompositionAfterCursor){let e=B$2.get(r.node);!e||e.isText()&&e.text!=r.node.nodeValue||(a=i);}}if(e.docView.lastCompositionAfterCursor=a!=r,!a)return null;let o=t-a.offset;return {from:o,to:o+a.node.nodeValue.length,node:a.node}}function ui(e,t,n){let r=li(e,n);if(!r)return null;let{node:i,from:a,to:o}=r,s=i.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let c=t.invertedDesc;return {range:new Mr$1(c.mapPos(a),c.mapPos(o),a,o),text:i}}function di(e,t){return e.nodeType==1?(t&&e.childNodes[t-1].contentEditable==`false`?1:0)|(t{et.from&&(n=true);}),n}var vi=class extends en$1{constructor(e){super(),this.height=e;}toDOM(){let e=document.createElement(`div`);return e.className=`cm-gap`,this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+`px`,true}get editable(){return true}get estimatedHeight(){return this.height}ignoreEvent(){return false}};function yi(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return T$1.cursor(t);a==0?n=1:a==i.length&&(n=-1);let o=a,s=a;n<0?o=S(i.text,a,false):s=S(i.text,a);let c=r(i.text.slice(o,s));for(;o>0;){let e=S(i.text,o,false);if(r(i.text.slice(e,o))!=c)break;o=e;}for(;se.defaultLineHeight*1.5){let t=e.viewState.heightOracle.textHeight,r=Math.floor((i-n.top-(e.defaultLineHeight-t)*.5)/t);a+=r*e.viewState.heightOracle.lineLength;}let o=e.state.sliceDoc(n.from,n.to);return n.from+St$1(o,a,e.state.tabSize)}function xi(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.tot)return i;(!e||i.type==P$2.Text&&(e.type!=i.type||(n<0?i.fromt)))&&(e=i);}}return e||r}return r}function Si(e,t,n,r){let i=xi(e,t.head,t.assoc||-1),a=!r||i.type!=P$2.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),o=e.posAtCoords({x:n==(r==I$2.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(o!=null)return T$1.cursor(o,n?-1:1)}return T$1.cursor(n?i.to:i.from,n?-1:1)}function Ci(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let s=t,c=null;;){let t=er$1(i,a,o,s,n),l=$n$1;if(!t){if(i.number==(n?e.state.doc.lines:1))return s;l=` +`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),t=e.visualLineSide(i,!n);}if(!c){if(!r)return t;c=r(l);}else if(!c(l))return s;s=t;}}function wi(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==Qe$2.Space&&(i=t),i==t}}function Ti(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return T$1.cursor(i,t.assoc);let o=t.goalColumn,s,c=e.contentDOM.getBoundingClientRect(),l=e.coordsAtPos(i,t.assoc||-1),u=e.documentTop;if(l)o??=l.left-c.left,s=a<0?l.top:l.bottom;else {let t=e.viewState.lineBlockAt(i);o??=Math.min(c.right-c.left,e.defaultCharacterWidth*(i-t.from)),s=(a<0?t.top:t.bottom)+u;}let d=c.left+o,f=r??e.viewState.heightOracle.textHeight>>1,p=Ai(e,{x:d,y:s+f*a},false,a);return T$1.cursor(p.pos,p.assoc,void 0,o)}function Ei(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,a)=>{if(t>e&&tt(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:T$1.cursor(r,re.viewState.docHeight)return new ki(e.state.doc.length,-1);if(l=e.elementAtHeight(c),r==null)break;if(l.type==P$2.Text){let t=e.docView.coordsAt(r<0?l.from:l.to,r);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?l.bottom+t:l.top-t;}if(e.viewport.from>=l.to||e.viewport.to<=l.from){if(n)return null;if(l.type==P$2.Text){let t=bi(e,i,l,o,s);return new ki(t,t==l.from?1:-1)}}if(l.type!=P$2.Text)return c<(l.top+l.bottom)/2?new ki(l.from,1):new ki(l.to,-1);let u=e.docView.lineAt(l.from,2);return (!u||u.length!=l.length)&&(u=e.docView.lineAt(l.from,-2)),ji(e,u,l.from,o,s)}function ji(e,t,n,r,i){let a=-1,o=null,s=1e9,c=1e9,l=i,u=i,d=(e,t)=>{for(let n=0;nr?d.left-r:d.righti?d.top-i:d.bottom=l&&(l=Math.min(d.top,l),u=Math.max(d.bottom,u),p=0),(a<0||(p-c||f-s)<0)&&(a>=0&&c&&s=l+2?c=0:(a=t,s=f,c=p,o=d));}};if(t.isText()){for(let e=0;e(o.left+o.right)/2==(Mi(e,a+n)==I$2.LTR)?new ki(n+S(t.text,a),-1):new ki(n+a,1)}else {if(!t.length)return new ki(n,1);for(let e=0;e(o.left+o.right)/2==(Mi(e,a+n)==I$2.LTR)?new ki(u+l.length,-1):new ki(u,1)}}function Mi(e,t){let n=e.state.doc.lineAt(t);return e.bidiSpans(n)[Wn$1.find(e.bidiSpans(n),t-n.from,-1,1)].dir}var Ni=`￿`,Pi=class{constructor(e,t){this.points=e,this.view=t,this.text=``,this.lineSeparator=t.state.facet(k$2.lineSeparator);}append(e){this.text+=e;}lineBreak(){this.text+=Ni;}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=B$2.get(r),a=r.nextSibling;if(a==t){i?.breakAfter&&!a&&n!=this.view.contentDOM&&this.lineBreak();break}let o=B$2.get(a);(i&&o?i.breakAfter:(i?i.breakAfter:hn$1(r))||hn$1(a)&&(r.nodeName!=`BR`||i?.isWidget())&&this.text.length>e)&&!Ii(a,t)&&this.lineBreak(),r=a;}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,o;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(o=r.exec(t))&&(i=o.index,a=o[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=i+a;}}readNode(e){let t=B$2.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value);}else e.nodeType==3?this.readTextNode(e):e.nodeName==`BR`?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null);}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length);}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Fi(e,n.node,n.offset)?t:0));}};function Fi(e,t,n){for(;;){if(!t||n<_n$1(t))return false;if(t==e)return true;n=mn$1(t)+1,t=t.parentNode;}}function Ii(e,t){let n;for(;!(e==t||!e);e=e.nextSibling){let t=B$2.get(e);if(!t?.isWidget())return false;t&&(n||=[]).push(t);}if(n){for(let e of n)if(e.overrideDOMText?.length)return false}return true}var Li=class{constructor(e,t){this.node=e,this.offset=t,this.pos=-1;}},Ri=class{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text=``,this.domChanged=t>-1;let{impreciseHead:i,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=zi(e.docView.tile,t,n,0))){let t=i||a?[]:Wi(e),n=new Pi(t,e);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=Gi(t,this.bounds.from);}else {let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!un$1(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=a&&a.node==t.anchorNode&&a.offset==t.anchorOffset||!un$1(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),o=e.viewport;if((N$2.ios||N$2.chrome)&&e.state.selection.main.empty&&n!=r&&(o.from>0||o.to-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(T$1.range(r,n)):this.newSel=T$1.single(r,n);}}};function zi(e,t,n,r){if(e.isComposite()){let i=-1,a=-1,o=-1,s=-1;for(let c=0,l=r,u=r;cn)return zi(r,t,n,l);if(d>=t&&i==-1&&(i=c,a=l),l>n&&r.dom.parentNode==e.dom){o=c,s=u;break}u=d,l=d+r.breakAfter;}return {from:a,to:s<0?r+e.length:s,startDOM:(i?e.children[i-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:o=0?e.children[o].dom:null}}else if(e.isText())return {from:r,to:r+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling};else return null}function Bi(e,t){let n,{newSel:r}=t,i=e.state.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:r,to:o}=t.bounds,s=i.from,c=null;(a===8||N$2.android&&t.text.length=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:e.state.doc.lineAt(i.from).toDate.now()-50?n={from:i.from,to:i.to,insert:e.state.toText(e.inputState.insertingText)}:N$2.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` + `&&e.lineWrapping&&(r&&=T$1.single(r.main.anchor-1,r.main.head-1),n={from:i.from,to:i.to,insert:f.of([` `])}),n)return Vi(e,n,r,a);if(r&&!Ki(r,i)){let t=false,n=`select`;return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin==`select`&&(t=true),n=e.inputState.lastSelectionOrigin,n==`select.pointer`&&(r=Di(e.state.facet(Er$1).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),true}else return false}function Vi(e,t,n,r=-1){if(N$2.ios&&e.inputState.flushIOSKey(t))return true;let i=e.state.selection.main;if(N$2.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&e.state.sliceDoc(t.from,i.from)==` `)&&t.insert.length==1&&t.insert.lines==2&&On$1(e.contentDOM,`Enter`,13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.lengthi.head)&&On$1(e.contentDOM,`Backspace`,8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&On$1(e.contentDOM,`Delete`,46)))return true;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,s=()=>o||=Hi(e,t,n);return e.state.facet(sr$1).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),true}function Hi(e,t,n){let r,i=e.state,a=i.selection.main,o=-1;if(t.from==t.to&&t.froma.to){let n=t.fromt(e)),r,n);t.from==s&&(o=s);}if(o>-1)r={changes:t,selection:T$1.cursor(t.from+t.insert.length,-1)};else if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.fromt.to?i.sliceDoc(t.to,a.to):``;r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+o));}else {let o=i.changes(t),s=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=a.to+10&&t.to>=a.to-10){let c=e.state.sliceDoc(t.from,t.to),l,u=n&&li(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e};}else l=e.state.doc.lineAt(a.head);let d=a.to-t.to;r=i.changeByRange(n=>{if(n.from==a.from&&n.to==a.to)return {changes:o,range:s||n.map(o)};let r=n.to-d,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=l.from&&u<=l.to)return {range:n};let f=i.changes({from:u,to:r,insert:t.insert}),p=n.to-a.to;return {changes:f,range:s?T$1.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):n.map(f)}});}else r={changes:o,selection:s&&i.selection.replaceRange(s)};}let s=`input.type`;return (e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=false,s+=`.compose`,e.inputState.compositionFirstChange&&(s+=`.start`,e.inputState.compositionFirstChange=false)),i.update(r,{userEvent:s,scrollIntoView:true})}function Ui(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if(r==`end`){let e=Math.max(0,a-Math.min(o,s));n-=o+e-a;}if(o=o?a-n:0;a-=e,s=a+(s-o),o=a;}else if(s=s?a-n:0;a-=e,o=a+(o-s),s=a;}return {from:a,toA:o,toB:s}}function Wi(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new Li(n,r)),(i!=n||a!=r)&&t.push(new Li(i,a))),t}function Gi(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?T$1.single(n+t,r+t):null}function Ki(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}var qi=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now();}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=false,this.compositionPendingChange=false,this.insertingText=``,this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,N$2.safari&&e.contentDOM.addEventListener(`input`,()=>null),N$2.gecko&&Oa(e.contentDOM.ownerDocument);}handleEvent(e){!oa(this.view,e)||this.ignoreDuringComposition(e)||e.type==`keydown`&&this.keydown(e)||(this.view.updateState==0?this.runHandlers(e.type,e):Promise.resolve().then(()=>this.runHandlers(e.type,e)));}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Yi(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if(e!=`scroll`){let i=!t[e].handlers.length,a=n[e];a&&i!=!a.handlers.length&&(r.removeEventListener(e,this.handleEvent),a=null),a||r.addEventListener(e,this.handleEvent,{passive:i});}for(let e in n)e!=`scroll`&&!t[e]&&r.removeEventListener(e,this.handleEvent);this.handlers=t;}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return true;if(this.tabFocusMode>0&&e.keyCode!=27&&Qi.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),N$2.android&&N$2.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),true;let t;return N$2.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=Xi.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||Zi.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),true):(e.keyCode!=229&&this.view.observer.forceFlush(),false)}flushIOSKey(e){let t=this.pendingIOSKey;return !t||t.key==`Enter`&&e&&e.from0?true:N$2.safari&&!N$2.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=false,true):false}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e;}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0);}destroy(){this.mouseSelection&&this.mouseSelection.destroy();}};function Ji(e,t){return (n,r)=>{try{return t.call(e,r,n)}catch(e){R$2(n.state,e);}}}function Yi(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,r=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(r)for(let e in r){let i=r[e];i&&n(e).handlers.push(Ji(t.value,i));}if(i)for(let e in i){let r=i[e];r&&n(e).observers.push(Ji(t.value,r));}}for(let e in sa)n(e).handlers.push(sa[e]);for(let e in H$2)n(e).observers.push(H$2[e]);return t}var Xi=[{key:`Backspace`,keyCode:8,inputType:`deleteContentBackward`},{key:`Enter`,keyCode:13,inputType:`insertParagraph`},{key:`Enter`,keyCode:13,inputType:`insertLineBreak`},{key:`Delete`,keyCode:46,inputType:`deleteContentForward`}],Zi=`dthko`,Qi=[16,17,18,20,91,92,224,225],$i=6;function ea(e){return Math.max(0,e)*.7+8}function ta(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}var na=class{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Sn$1(e.contentDOM),this.atoms=e.state.facet(Er$1).map(t=>t(e));let i=e.contentDOM.ownerDocument;i.addEventListener(`mousemove`,this.move=this.move.bind(this)),i.addEventListener(`mouseup`,this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(k$2.allowMultipleSelections)&&ra(e,t),this.dragging=aa(e,t)&&_a(t)==1?null:false;}start(e){this.dragging===false&&this.select(e);}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&ta(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,r=0,i=0,a=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:o}=this.scrollParents.y.getBoundingClientRect());let s=Ar$1(this.view);e.clientX-s.left<=r+$i?t=-ea(r-e.clientX):e.clientX+s.right>=a-$i&&(t=ea(e.clientX-a)),e.clientY-s.top<=i+$i?n=-ea(i-e.clientY):e.clientY+s.bottom>=o-$i&&(n=ea(e.clientY-o)),this.setScrollSpeed(t,n);}up(e){this.dragging??this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy();}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener(`mousemove`,this.move),e.removeEventListener(`mouseup`,this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null;}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1);}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===false&&this.select(this.lastEvent);}select(e){let{view:t}=this,n=Di(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===false))&&this.view.dispatch({selection:n,userEvent:`select.pointer`}),this.mustSelect=false;}update(e){e.transactions.some(e=>e.isUserEvent(`input.type`))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20);}};function ra(e,t){let n=e.state.facet(nr$1);return n.length?n[0](t):N$2.mac?t.metaKey:t.ctrlKey}function ia(e,t){let n=e.state.facet(rr$1);return n.length?n[0](t):N$2.mac?!t.altKey:!t.ctrlKey}function aa(e,t){let{main:n}=e.state.selection;if(n.empty)return false;let r=ln$1(e.root);if(!r||r.rangeCount==0)return true;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return true}return false}function oa(e,t){if(!t.bubbles)return true;if(t.defaultPrevented)return false;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=B$2.get(n))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(t))return false;return true}var sa=Object.create(null),H$2=Object.create(null),ca=N$2.ie&&N$2.ie_version<15||N$2.ios&&N$2.webkit_version<604;function la(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement(`textarea`));n.style.cssText=`position: fixed; left: -10000px; top: 10px`,n.focus(),setTimeout(()=>{e.focus(),n.remove(),da(e,n.value);},50);}function ua(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function da(e,t){t=ua(e.state,lr$1,t);let{state:n}=e,r,i=1,a=n.toText(t),o=a.lines==n.selection.ranges.length;if(Ca!=null&&n.selection.ranges.every(e=>e.empty)&&Ca==a.toString()){let e=-1;r=n.changeByRange(r=>{let s=n.doc.lineAt(r.from);if(s.from==e)return {range:r};e=s.from;let c=n.toText((o?a.line(i++).text:t)+n.lineBreak);return {changes:{from:s.from,insert:c},range:T$1.cursor(r.from+c.length)}});}else r=o?n.changeByRange(e=>{let t=a.line(i++);return {changes:{from:e.from,to:e.to,insert:t.text},range:T$1.cursor(e.from+t.length)}}):n.replaceSelection(a);e.dispatch(r,{userEvent:`input.paste`,scrollIntoView:true});}H$2.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft;},sa.keydown=(e,t)=>(e.inputState.setSelectionOrigin(`select`),t.keyCode==27&&e.inputState.tabFocusMode!=0&&(e.inputState.tabFocusMode=Date.now()+2e3),false),H$2.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin(`select.pointer`);},H$2.touchmove=e=>{e.inputState.setSelectionOrigin(`select.pointer`);},sa.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return false;let n=null;for(let r of e.state.facet(ir$1))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=va(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new na(e,t,n,r)),r&&e.observer.ignore(()=>{Tn$1(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur();});let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===false}else e.inputState.setSelectionOrigin(`select.pointer`);return false};function fa(e,t,n,r){if(r==1)return T$1.cursor(t,n);if(r==2)return yi(e.state,t,n);{let r=e.docView.lineAt(t,n),i=e.state.doc.lineAt(r?r.posAtEnd:t),a=r?r.posAtStart:i.from,o=r?r.posAtEnd:i.to;return oDate.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(ha+1)%3:1}function va(e,t){let n=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},false),r=_a(t),i=e.state.selection;return {update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),i=i.map(e.changes));},get(t,a,o){let s=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},false),c,l=fa(e,s.pos,s.assoc,r);if(n.pos!=s.pos&&!a){let t=fa(e,n.pos,n.assoc,r),i=Math.min(t.from,l.from),a=Math.max(t.to,l.to);l=i1&&(c=ya(i,s.pos))?c:o?i.addRange(l):T$1.create([l])}}}function ya(e,t){for(let n=0;n=t)return T$1.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-+(e.mainIndex>n))}return null}sa.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=T$1.range(e,t));}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=true),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData(`Text`,ua(e.state,ur$1,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed=`copyMove`),false},sa.dragend=e=>(e.inputState.draggedContent=null,false);function ba(e,t,n,r){if(n=ua(e.state,lr$1,n),!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},false),{draggedContent:a}=e.inputState,o=r&&a&&ia(e,t)?{from:a.from,to:a.to}:null,s={from:i,insert:n},c=e.state.changes(o?[o,s]:s);e.focus(),e.dispatch({changes:c,selection:{anchor:c.mapPos(i,-1),head:c.mapPos(i,1)},userEvent:o?`move.drop`:`input.drop`}),e.inputState.draggedContent=null;}sa.drop=(e,t)=>{if(!t.dataTransfer)return false;if(e.state.readOnly)return true;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&ba(e,t,r.filter(e=>e!=null).join(e.state.lineBreak),false);};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),a();},t.readAsText(n[e]);}return true}else {let n=t.dataTransfer.getData(`Text`);if(n)return ba(e,t,n,true),true}return false},sa.paste=(e,t)=>{if(e.state.readOnly)return true;e.observer.flush();let n=ca?null:t.clipboardData;return n?(da(e,n.getData(`text/plain`)||n.getData(`text/uri-list`)),true):(la(e),false)};function xa(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement(`textarea`));r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus();},50);}function Sa(e){let t=[],n=[],r=false;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let a=e.doc.lineAt(r);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number;}r=true;}return {text:ua(e,ur$1,t.join(e.lineBreak)),ranges:n,linewise:r}}var Ca=null;sa.copy=sa.cut=(e,t)=>{let n=ln$1(e.root);if(n&&!dn$1(e.contentDOM,n))return false;let{text:r,ranges:i,linewise:a}=Sa(e.state);if(!r&&!a)return false;Ca=a?r:null,t.type==`cut`&&!e.state.readOnly&&e.dispatch({changes:i,scrollIntoView:true,userEvent:`delete.cut`});let o=ca?null:t.clipboardData;return o?(o.clearData(),o.setData(`text/plain`,r),true):(xa(e,r),false)};var wa=Ve$2.define();function Ta(e,t){let n=[];for(let r of e.facet(cr$1)){let i=r(e,t);i&&n.push(i);}return n.length?e.update({effects:n,annotations:wa.of(true)}):null}function Ea(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Ta(e.state,t);n?e.dispatch(n):e.update([]);}},10);}H$2.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Ea(e);},H$2.blur=e=>{e.observer.clearSelectionRange(),Ea(e);},H$2.compositionstart=H$2.compositionupdate=e=>{e.observer.editContext||(e.inputState.compositionFirstChange??(e.inputState.compositionFirstChange=true),e.inputState.composing<0&&(e.inputState.composing=0));},H$2.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=true,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,N$2.chrome&&N$2.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([]);},50));},H$2.contextmenu=e=>{e.inputState.lastContextMenu=Date.now();},sa.beforeinput=(e,t)=>{if((t.inputType==`insertText`||t.inputType==`insertCompositionText`)&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),t.inputType==`insertReplacementText`&&e.observer.editContext){let n=t.dataTransfer?.getData(`text/plain`),r=t.getTargetRanges();if(n&&r.length){let t=r[0];return Vi(e,{from:e.posAtDOM(t.startContainer,t.startOffset),to:e.posAtDOM(t.endContainer,t.endOffset),insert:e.state.toText(n)},null),true}}let n;if(N$2.chrome&&N$2.android&&(n=Xi.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(n.key,n.keyCode),n.key==`Backspace`||n.key==`Delete`)){let t=window.visualViewport?.height||0;setTimeout(()=>{(window.visualViewport?.height||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus());},100);}return N$2.ios&&t.inputType==`deleteContentForward`&&e.observer.flushSoon(),N$2.safari&&t.inputType==`insertText`&&e.inputState.composing>=0&&setTimeout(()=>H$2.compositionend(e,t),20),false};var Da=new Set;function Oa(e){Da.has(e)||(Da.add(e),e.addEventListener(`copy`,()=>{}),e.addEventListener(`cut`,()=>{}));}var ka=[`pre-wrap`,`normal`,`pre-line`,`break-spaces`],Aa=false;function ja(){Aa=false;}var Ma=class{constructor(e){this.lineWrapping=e,this.doc=f.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30;}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return ka.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=false;for(let n=0;n-1,s=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=o||Math.abs(n-this.charWidth)>.1;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|this.flags&-3;}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Fa&&(Aa=true),this.height=e);}replace(t,n,r){return e.of(r)}decomposeLeft(e,t){t.push(this);}decomposeRight(e,t){t.push(this);}applyChanges(e,t,n,r){let i=this,a=n.doc;for(let o=r.length-1;o>=0;o--){let{fromA:s,toA:c,fromB:l,toB:u}=r[o],d=i.lineAt(s,U$2.ByPosNoHeight,n.setDoc(t),0,0),f=d.to>=c?d:i.lineAt(c,U$2.ByPosNoHeight,n,0,0);for(u+=f.to-c,c=f.to;o>0&&d.from<=r[o-1].toA;)s=r[o-1].fromA,l=r[o-1].fromB,o--,sa*2){let e=t[n-1];e.break?t.splice(--n,1,e.left,null,e.right):t.splice(--n,1,e.left,e.right),r+=1+e.break,i-=e.size;}else if(a>i*2){let e=t[r];e.break?t.splice(r,1,e.left,null,e.right):t.splice(r,1,e.left,e.right),r+=2+e.break,a-=e.size;}else break;else if(i=i&&a(this.lineAt(0,U$2.ByPos,n,r,i));}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t);}updateHeight(e,t=0,n=false,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=false,this}toString(){return `block(${this.length})`}},Ba=class e extends za{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n;}mainBlock(e,t){return new Pa(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof e||i instanceof Va&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Va?i=new e(i.length,this.height,this.spaceAbove):i.height=this.height,this.outdated||(i.outdated=false),i):Ia.of(r)}updateHeight(e,t=0,n=false,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=false,this}toString(){return `line(${this.length}${this.collapsed?-this.collapsed:``}${this.widgetHeight?`:`+this.widgetHeight:``})`}},Va=class e extends Ia{constructor(e){super(e,0);}heightMetrics(e,t){let n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-n+1,a,o=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);a=t/i,this.length>i+1&&(o=(this.height-t)/(this.length-i-1));}else a=this.height/i;return {firstLine:n,lastLine:r,perLine:a,perChar:o}}blockAt(e,t,n,r){let{firstLine:i,lastLine:a,perLine:o,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e0){let t=r[r.length-1];t instanceof e?r[r.length-1]=new e(t.length+i):r.push(null,new e(i-1));}if(t>0){let n=r[0];n instanceof e?r[0]=new e(t+n.length):r.unshift(new e(t-1),null);}return Ia.of(r)}decomposeLeft(t,n){n.push(new e(t-1),null);}decomposeRight(t,n){n.push(null,new e(this.length-t-1));}updateHeight(t,n=0,r=false,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let r=[],o=Math.max(n,i.from),s=-1;for(i.from>n&&r.push(new e(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let e=t.doc.lineAt(o).length;r.length&&r.push(null);let n=i.heights[i.index++],a=0;n<0&&(a=-n,n=i.heights[i.index++]),s==-1?s=n:Math.abs(n-s)>=Fa&&(s=-2);let c=new Ba(e,n,a);c.outdated=false,r.push(c),o+=e+1;}o<=a&&r.push(null,new e(a-o).updateHeight(t,o));let c=Ia.of(r);return (s<0||Math.abs(c.height-this.height)>=Fa||Math.abs(s-this.heightMetrics(t,n).perLine)>=Fa)&&(Aa=true),La(this,c)}else (r||this.outdated)&&(this.setHeight(t.heightForGap(n,n+this.length)),this.outdated=false);return this}toString(){return `gap(${this.length})`}},Ha=class extends Ia{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size;}get break(){return this.flags&1}blockAt(e,t,n,r){let i=n+this.left.height;return eo))return c;let l=t==U$2.ByPosNoHeight?U$2.ByPosNoHeight:U$2.ByPos;return s?c.join(this.right.lineAt(o,l,n,a,o)):this.left.lineAt(o,l,n,r,i).join(c)}forEachLine(e,t,n,r,i,a){let o=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,o,s,a);else {let c=this.lineAt(s,U$2.ByPos,n,r,i);e=e&&c.from<=t&&a(c),t>c.to&&this.right.forEachLine(c.to+1,t,n,o,s,a);}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let e of n)i.push(e);if(e>0&&Ua(i,a-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t);}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?Ia.of(this.break?[e,null,t]:[e,t]):(this.left=La(this.left,e),this.right=La(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=false,r){let{left:i,right:a}=this,o=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=o+a.length&&r.more?s=a=a.updateHeight(e,o,n,r):a.updateHeight(e,o,n),s?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=false,this)}toString(){return this.left+(this.break?` `:`-`)+this.right}};function Ua(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Va&&(r=e[t+1])instanceof Va&&e.splice(t-1,3,new Va(n.length+1+r.length));}var Wa=5,Ga=class e{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e;}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Ba?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Ba(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1);}this.pos=t;}point(e,t,n){if(e=Wa)&&this.addLineDeco(r,i,a);}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Ba(this.pos-e,-1,0)),this.writtenTo=this.pos;}blankContent(e,t){let n=new Va(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ba)return e;let t=new Ba(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos+=e.length,t&&t.endSide>0&&(this.covering=e);}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos+=n;}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Ba)&&!this.isCovered?this.nodes.push(new Ba(0,-1,0)):(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&r.overflow!=`visible`){let r=n.getBoundingClientRect();a=Math.max(a,r.left),o=Math.min(o,r.right),s=Math.max(s,r.top),c=Math.min(t==e.parentNode?i.innerHeight:c,r.bottom);}t=r.position==`absolute`||r.position==`fixed`?n.offsetParent:n.parentNode;}else if(t.nodeType==11)t=t.host;else break;return {left:a-n.left,right:Math.max(a,o)-n.left,top:s-(n.top+t),bottom:Math.max(s,c)-(n.top+t)}}function Ya(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left0&&t.top0}function Xa(e,t){let n=e.getBoundingClientRect();return {left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}var Za=class{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r;}static same(e,t){if(e.length!=t.length)return false;for(let n=0;ntypeof e!=`function`&&e.class==`cm-lineWrapping`);this.heightOracle=new Ma(t),this.stateDeco=oo(e),this.heightMap=Ia.empty().applyChanges(this.stateDeco,f.empty,this.heightOracle.setDoc(e.doc),[new Mr$1(0,0,0,e.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=F$2.set(this.lineGaps.map(e=>e.draw(this,false))),this.computeVisibleRanges();}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new eo(t,n));}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?ao:new so(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(co(e,this.scaler));});}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=oo(this.state);let r=e.changedRanges,i=Mr$1.extendWithRanges(r,Ka(n,this.stateDeco,e?e.changes:ce$1.empty(this.state.doc.length))),a=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);ja(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=a||Aa)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=a);let s=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heads.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let c=s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(fr)&&(this.mustEnforceCursorAssoc=true);}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection=n.direction==`rtl`?I$2.RTL:I$2.LTR;let a=this.heightOracle.mustRefreshForWrapping(i)||this.mustMeasureContent,o=t.getBoundingClientRect(),s=a||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=false;let c=0,l=0;if(o.width&&o.height){let{scaleX:e,scaleY:n}=bn$1(t,o);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,c|=16,a=s=true);}let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=d)&&(this.paddingTop=u,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=true),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=jn$1(e.scrollDOM);let m=(this.printing?Xa:Ja)(t,this.paddingTop),h=m.top-this.pixelViewport.top,g=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(s=true)),!this.inView&&!this.scrollTarget&&!Ya(e.dom))return 0;let v=o.width;if((this.contentDOMWidth!=v||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(a=true),a||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:o,textHeight:s}=e.docView.measureTextSize();a=n>0&&r.refresh(i,n,o,s,Math.max(5,v/o),t),a&&(e.docView.minWidth=0,c|=16);}h>0&&g>0?l=Math.max(h,g):h<0&&g<0&&(l=Math.min(h,g)),ja();for(let n of this.viewports){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(a?Ia.empty().applyChanges(this.stateDeco,f.empty,this.heightOracle,[new Mr$1(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,a,new Na(n.from,i));}Aa&&(c|=2);}let y=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(l,this.scrollTarget),c|=this.updateForViewport()),(c&2||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=false,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-0.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:o}=this,s=new eo(r.lineAt(a-n*1e3,U$2.ByHeight,i,0,0).from,r.lineAt(o+(1-n)*1e3,U$2.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,U$2.ByPos,i,0,0),o;o=t.y==`center`?(a.top+a.bottom)/2-n/2:t.y==`start`||t.y==`nearest`&&e=o+Math.max(10,Math.min(n,250)))&&r>a-2*1e3&&i>1,a=r<<1;if(this.defaultTextDirection!=I$2.LTR&&!n)return [];let o=[],s=(r,a,c,l)=>{if(a-rr&&ee.from>=c.from&&e.to<=c.to&&Math.abs(e.from-r)e.fromt));if(!f){if(ae.from<=a&&e.to>=a)){let e=t.moveToLineBoundary(T$1.cursor(a),false,true).head;e>r&&(a=e);}let e=this.gapSize(c,r,a,l);f=new Za(r,a,e,n||e<2e6?e:2e6);}o.push(f);},c=t=>{if(t.length2e6)for(let n of e)n.from>=t.from&&n.fromt.from&&s(t.from,c,t,i),le.draw(this,this.heightOracle.lineWrapping))));}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];A$2.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t});},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let t=0;t=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||co(this.heightMap.lineAt(e,U$2.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||co(this.heightMap.lineAt(this.scaler.fromDOM(e),U$2.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return co(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},eo=class{constructor(e,t){this.from=e,this.to=t;}};function to(e,t,n){let r=[],i=e,a=0;return A$2.spans(n,e,t,{span(){},point(e,t){e>i&&(r.push({from:i,to:e}),a+=e-i),i=t;}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],a=i-n;if(r<=a)return n+r;r-=a;}}function ro(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r;}return n/e.total}function io(e,t){for(let n of e)if(t(n))return n}var ao={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};function oo(e){let t=e.facet(Cr$1).filter(e=>typeof e!=`function`),n=e.facet(Tr$1).filter(e=>typeof e!=`function`);return n.length&&t.push(A$2.join(n)),t}var so=class e{constructor(e,t,n){let r=0,i=0,a=0;this.viewports=n.map(({from:n,to:i})=>{let a=t.lineAt(n,U$2.ByPos,e,0,0).top,o=t.lineAt(i,U$2.ByPos,e,0,0).bottom;return r+=o-a,{from:n,to:i,top:a,bottom:o,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=a+(e.top-i)*this.scale,a=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom;}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=te.from==t.viewports[n].from&&e.to==t.viewports[n].to):false}};function co(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new Pa(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>co(e,t)):e._content)}var lo=E$1.define({combine:e=>e.join(` `)}),uo=E$1.define({combine:e=>e.indexOf(true)>-1}),fo=Dt$1.newName(),po=Dt$1.newName(),mo=Dt$1.newName(),ho={"&light":`.`+po,"&dark":`.`+mo};function go(e,t,n){return new Dt$1(t,{finish(t){return /&/.test(t)?t.replace(/&\w*/,t=>{if(t==`&`)return e;if(!n||!n[t])throw RangeError(`Unsupported selector: ${t}`);return n[t]}):e+` `+t}})}var _o=go(`.`+fo,{"&":{position:`relative !important`,boxSizing:`border-box`,"&.cm-focused":{outline:`1px dotted #212121`},display:`flex !important`,flexDirection:`column`},".cm-scroller":{display:`flex !important`,alignItems:`flex-start !important`,fontFamily:`monospace`,lineHeight:1.4,height:`100%`,overflowX:`auto`,position:`relative`,zIndex:0,overflowAnchor:`none`},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:`block`,whiteSpace:`pre`,wordWrap:`normal`,boxSizing:`border-box`,minHeight:`100%`,padding:`4px 0`,outline:`none`,"&[contenteditable=true]":{WebkitUserModify:`read-write-plaintext-only`}},".cm-lineWrapping":{whiteSpace_fallback:`pre-wrap`,whiteSpace:`break-spaces`,wordBreak:`break-word`,overflowWrap:`anywhere`,flexShrink:1},"&light .cm-content":{caretColor:`black`},"&dark .cm-content":{caretColor:`white`},".cm-line":{display:`block`,padding:`0 2px 0 6px`},".cm-layer":{position:`absolute`,left:0,top:0,contain:`size style`,"& > *":{position:`absolute`}},"&light .cm-selectionBackground":{background:`#d9d9d9`},"&dark .cm-selectionBackground":{background:`#222`},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:`#d7d4f0`},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:`#233`},".cm-cursorLayer":{pointerEvents:`none`},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:`steps(1) cm-blink 1.2s infinite`},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:`1.2px solid black`,marginLeft:`-0.6px`,pointerEvents:`none`},".cm-cursor":{display:`none`},"&dark .cm-cursor":{borderLeftColor:`#ddd`},".cm-dropCursor":{position:`absolute`},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:`block`},".cm-iso":{unicodeBidi:`isolate`},".cm-announced":{position:`fixed`,top:`-10000px`},"@media print":{".cm-announced":{display:`none`}},"&light .cm-activeLine":{backgroundColor:`#cceeff44`},"&dark .cm-activeLine":{backgroundColor:`#99eeff33`},"&light .cm-specialChar":{color:`red`},"&dark .cm-specialChar":{color:`#f78`},".cm-gutters":{flexShrink:0,display:`flex`,height:`100%`,boxSizing:`border-box`,zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:`#f5f5f5`,color:`#6c6c6c`,border:`0px solid #ddd`,"&.cm-gutters-before":{borderRightWidth:`1px`},"&.cm-gutters-after":{borderLeftWidth:`1px`}},"&dark .cm-gutters":{backgroundColor:`#333338`,color:`#ccc`},".cm-gutter":{display:`flex !important`,flexDirection:`column`,flexShrink:0,boxSizing:`border-box`,minHeight:`100%`,overflow:`hidden`},".cm-gutterElement":{boxSizing:`border-box`},".cm-lineNumbers .cm-gutterElement":{padding:`0 3px 0 5px`,minWidth:`20px`,textAlign:`right`,whiteSpace:`nowrap`},"&light .cm-activeLineGutter":{backgroundColor:`#e2f2ff`},"&dark .cm-activeLineGutter":{backgroundColor:`#222227`},".cm-panels":{boxSizing:`border-box`,position:`sticky`,left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:`#f5f5f5`,color:`black`},"&light .cm-panels-top":{borderBottom:`1px solid #ddd`},"&light .cm-panels-bottom":{borderTop:`1px solid #ddd`},"&dark .cm-panels":{backgroundColor:`#333338`,color:`white`},".cm-dialog":{padding:`2px 19px 4px 6px`,position:`relative`,"& label":{fontSize:`80%`}},".cm-dialog-close":{position:`absolute`,top:`3px`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,fontSize:`14px`,padding:`0`},".cm-tab":{display:`inline-block`,overflow:`hidden`,verticalAlign:`bottom`},".cm-widgetBuffer":{verticalAlign:`text-top`,height:`1em`,width:0,display:`inline`},".cm-placeholder":{color:`#888`,display:`inline-block`,verticalAlign:`top`,userSelect:`none`},".cm-highlightSpace":{backgroundImage:`radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)`,backgroundPosition:`center`},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:`auto 100%`,backgroundPosition:`right 90%`,backgroundRepeat:`no-repeat`},".cm-trailingSpace":{backgroundColor:`#ff332255`},".cm-button":{verticalAlign:`middle`,color:`inherit`,fontSize:`70%`,padding:`.2em 1em`,borderRadius:`1px`},"&light .cm-button":{backgroundImage:`linear-gradient(#eff1f5, #d9d9df)`,border:`1px solid #888`,"&:active":{backgroundImage:`linear-gradient(#b4b4b4, #d0d3d6)`}},"&dark .cm-button":{backgroundImage:`linear-gradient(#393939, #111)`,border:`1px solid #888`,"&:active":{backgroundImage:`linear-gradient(#111, #333)`}},".cm-textfield":{verticalAlign:`middle`,color:`inherit`,fontSize:`70%`,border:`1px solid silver`,padding:`.2em .5em`},"&light .cm-textfield":{backgroundColor:`white`},"&dark .cm-textfield":{border:`1px solid #555`,backgroundColor:`inherit`}},ho),vo={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true},yo=N$2.ie&&N$2.ie_version<=11,bo=class{constructor(e){this.view=e,this.active=false,this.editContext=null,this.selectionRange=new Cn$1,this.selectionChanged=false,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=false,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(N$2.ie&&N$2.ie_version<=11||N$2.ios&&e.composing)&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush();}),window.EditContext&&N$2.android&&e.constructor.EDIT_CONTEXT!==false&&!(N$2.chrome&&N$2.chrome_version<126)&&(this.editContext=new wo(e),e.state.facet(_r$1)&&(e.contentDOM.editContext=this.editContext.editContext)),yo&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon();}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia(`print`)),typeof ResizeObserver==`function`&&(this.resizeScroll=new ResizeObserver(()=>{this.view.docView?.lastUpdate{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent(`Event`)));},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent(`Event`));},{})),this.listenForScroll(),this.readSelectionRange();}onScrollChanged(e){this.view.inputState.runHandlers(`scroll`,e),this.intersecting&&this.view.measure();}onScroll(e){this.intersecting&&this.flush(false),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e);}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure();},50));}onPrint(e){(e.type==`change`||!e.type)&&!e.matches||(this.view.viewState.printing=true,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=false,this.view.requestMeasure();},500));}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e;}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(_r$1)?n.root.activeElement!=this.dom:!dn$1(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){t||(this.selectionChanged=false);return}(N$2.ie&&N$2.ie_version<=11||N$2.android&&N$2.chrome)&&!n.state.selection.main.empty&&r.focusNode&&pn$1(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(false);}readSelectionRange(){let{view:e}=this,t=ln$1(e.root);if(!t)return false;let n=N$2.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Co(this.view,t)||t;if(!n||this.selectionRange.eq(n))return false;let r=dn$1(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&On$1(this.dom,e.key,e.keyCode));};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e);}(!this.delayedAndroidKey||e==`Enter`)&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush();}));}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush();}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=false;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=true),t==-1?{from:t,to:n}=e:(t=Math.min(e.from,t),n=Math.max(e.to,n)));}return {from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&dn$1(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=false;let i=new Ri(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return false;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),false;let n=this.view.state,r=Bi(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!Ki(this.view.state.selection,t.newSel.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type==`attributes`),e.type==`childList`){let n=xo(t,e.previousSibling||e.target.previousSibling,-1),r=xo(t,e.nextSibling||e.target.nextSibling,1);return {from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:false}}else if(e.type==`characterData`)return {from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue};else return null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win));}addWindowListeners(e){e.addEventListener(`resize`,this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener(`change`,this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener(`beforeprint`,this.onPrint),e.addEventListener(`scroll`,this.onScroll),e.document.addEventListener(`selectionchange`,this.onSelectionChange);}removeWindowListeners(e){e.removeEventListener(`scroll`,this.onScroll),e.removeEventListener(`resize`,this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener(`change`,this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener(`beforeprint`,this.onPrint),e.document.removeEventListener(`selectionchange`,this.onSelectionChange);}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(_r$1)!=e.state.facet(_r$1)&&(e.view.contentDOM.editContext=e.state.facet(_r$1)?this.editContext.editContext:null));}destroy(){var e,t,n;this.stop(),(e=this.intersection)==null||e.disconnect(),(t=this.gapIntersection)==null||t.disconnect(),(n=this.resizeScroll)==null||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener(`scroll`,this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy());}};function xo(e,t,n){for(;t;){let r=B$2.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i==e.dom?n>0?t.nextSibling:t.previousSibling:i;}return null}function So(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor,1);return pn$1(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function Co(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return So(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0];}return e.contentDOM.addEventListener(`beforeinput`,r,true),e.dom.ownerDocument.execCommand(`indent`),e.contentDOM.removeEventListener(`beforeinput`,r,true),n?So(e,n):null}var wo=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:a}=r,o=this.toEditorPos(n.updateRangeStart),s=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:o,drifted:false});let c=s-o>n.text.length;o==this.from&&ithis.to&&(s=i);let l=Ui(e.state.sliceDoc(o,s),n.text,(c?r.from:r.to)-o,c?`end`:null);if(!l){let t=T$1.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));Ki(t,r)||e.dispatch({selection:t,userEvent:`select`});return}let u={from:l.from+o,to:l.toA+o,insert:f.of(n.text.slice(l.from,l.toB).split(` +`))};if((N$2.mac||N$2.android)&&u.from==a-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute(`autocorrect`)==`off`&&(u={from:o,to:s,insert:f.of([n.text.replace(`.`,` `)])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);Vi(e,u,T$1.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)));}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n);},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);t{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),a=this.toEditorPos(e.rangeEnd);if(i{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=true);},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state);}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=ln$1(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect());}};}applyEdits(e){let t=0,n=false,r=this.pendingContextChange;return e.changes.iterChanges((i,a,o,s,c)=>{if(n)return;let l=c.length-(a-i);if(r&&a>=r.to)if(r.from==i&&r.to==a&&r.insert.eq(c)){r=this.pendingContextChange=null,t+=l,this.to+=l;return}else r=null,this.revertPending(e.state);if(i+=t,a+=t,a<=this.from)this.from+=l,this.to+=l;else if(ithis.to||this.to-this.from+c.length>3e4){n=true;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(a),c.toString()),this.to+=l;}t+=l;}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent(`input.type`)&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=true,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq);}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4);}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e);}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to));}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r);}rangeIsValid(e){let{head:t}=e.selection.main;return !(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e]);}},W$2=class e{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return !!this.inputState&&this.inputState.composing>0}get compositionStarted(){return !!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=false,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement(`div`),this.scrollDOM=document.createElement(`div`),this.scrollDOM.tabIndex=-1,this.scrollDOM.className=`cm-scroller`,this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement(`div`),this.announceDOM.className=`cm-announced`,this.announceDOM.setAttribute(`aria-live`,`polite`),this.dom=document.createElement(`div`),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach(e=>t(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||kn$1(e.parent)||document,this.viewState=new $a(e.state||k$2.create(e)),e.scrollTo&&e.scrollTo.is(hr$1)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(yr$1).map(e=>new br$1(e));for(let e of this.plugins)e.update(this);this.observer=new bo(this),this.inputState=new qi(this),this.inputState.ensureHandlers(this.plugins),this.docView=new oi$1(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),document.fonts?.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent=true,this.requestMeasure();});}dispatch(...e){let t=e.length==1&&e[0]instanceof O$2?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this);}update(e){if(this.updateState!=0)throw Error(`Calls to EditorView.update are not allowed while an update is in progress`);let t=false,n=false,r,i=this.state;for(let t of e){if(t.startState!=i)throw RangeError(`Trying to update state with a transaction that doesn't start from the previous state.`);i=t.state;}if(this.destroyed){this.viewState.state=i;return}let a=this.hasFocus,o=0,s=null;e.some(e=>e.annotation(wa))?(this.inputState.notifiedFocused=a,o=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,s=Ta(i,a),s||(o=1));let c=this.observer.delayedAndroidKey,l=null;if(c?(this.observer.clearDelayedAndroidKey(),l=this.observer.readChange(),(l&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(l=null)):this.observer.clear(),i.facet(k$2.phrases)!=this.state.facet(k$2.phrases))return this.setState(i);r=Nr.create(this,i,e),r.flags|=o;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&=u.map(t.changes),t.scrollIntoView){let{main:e}=t.state.selection;u=new mr$1(e.empty?e:T$1.cursor(e.head,e.head>e.anchor?-1:1));}for(let e of t.effects)e.is(hr$1)&&(u=e.value.clip(this.state));}this.viewState.update(r,u),this.bidiCache=Do.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(jr$1)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent(`select.pointer`)));}finally{this.updateState=0;}if(r.startState.facet(lo)!=r.state.facet(lo)&&(this.viewState.mustMeasureContent=true),(t||n||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!r.empty)for(let e of this.state.facet(or$1))try{e(r);}catch(e){R$2(this.state,e,`update listener`);}(s||l)&&Promise.resolve().then(()=>{s&&this.state==s.startState&&this.dispatch(s),l&&!Bi(this,l)&&c.force&&On$1(this.contentDOM,c.key,c.keyCode);});}setState(e){if(this.updateState!=0)throw Error(`Calls to EditorView.setState are not allowed while an update is in progress`);if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new $a(e),this.plugins=e.facet(yr$1).map(e=>new br$1(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new oi$1(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[];}finally{this.updateState=0;}t&&this.focus(),this.requestMeasure();}updatePlugins(e){let t=e.startState.facet(yr$1),n=e.state.facet(yr$1);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new br$1(i));else {let t=this.plugins[n];t.mustUpdate=e,r.push(t);}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear();}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:a}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(a<0)if(jn$1(n))i=-1,a=this.viewState.heightMap.height;else {let e=this.viewState.scrollAnchorAt(r);i=e.from,a=e.top;}this.updateState=1;let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(e>5){console.warn(this.measureRequests.length?`Measure loop restarted more than 5 times`:`Viewport failed to stabilize`);break}let s=[];o&4||([this.measureRequests,s]=[s,this.measureRequests]);let c=s.map(e=>{try{return e.read(this)}catch(e){return R$2(this.state,e),Eo}}),l=Nr.create(this,this.state,[]),u=!1;l.flags|=o,t?t.flags|=o:t=l,this.updateState=2,l.empty||(this.updatePlugins(l),this.inputState.update(l),this.updateAttrs(),u=this.docView.update(l),u&&this.docViewUpdate());for(let e=0;e1||e<-1){r+=e,n.scrollTop=r/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1;}if(t&&!t.empty)for(let e of this.state.facet(or$1))e(t);}get themeClasses(){return fo+` `+(this.state.facet(uo)?mo:po)+` `+this.state.facet(lo)}updateAttrs(){let e=Oo(this,xr$1,{class:`cm-editor`+(this.hasFocus?` cm-focused `:` `)+this.themeClasses}),t={spellcheck:`false`,autocorrect:`off`,autocapitalize:`off`,writingsuggestions:`false`,translate:`no`,contenteditable:this.state.facet(_r$1)?`true`:`false`,class:`cm-content`,style:`${N$2.tabSize}: ${this.state.tabSize}`,role:`textbox`,"aria-multiline":`true`};this.state.readOnly&&(t[`aria-readonly`]=`true`),Oo(this,Sr$1,t);let n=this.observer.ignore(()=>{let n=Qt$1(this.contentDOM,this.contentAttrs,t),r=Qt$1(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(t){let n=true;for(let r of t)for(let t of r.effects)if(t.is(e.announce)){n&&(this.announceDOM.textContent=``),n=false;let e=this.announceDOM.appendChild(document.createElement(`div`));e.textContent=t.value;}}mountStyles(){this.styleModules=this.state.facet(jr$1);let t=this.state.facet(e.cspNonce);Dt$1.mount(this.root,this.styleModules.concat(_o).reverse(),t?{nonce:t}:void 0);}readMeasured(){if(this.updateState==2)throw Error(`Reading the editor layout isn't allowed during an update`);this.updateState==0&&this.measureScheduled>-1&&this.measure(false);}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;tt.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return {top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Oi(this,e,Ci(this,e,t,n))}moveByGroup(e,t){return Oi(this,e,Ci(this,e,t,t=>wi(this,e.head,t)))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),i=n[t?n.length-1:0];return T$1.cursor(i.side(t,r)+e.from,i.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=true){return Si(this,e,t,n)}moveVertically(e,t,n){return Oi(this,e,Ti(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=true){this.readMeasured();let n=Ai(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=true){return this.readMeasured(),Ai(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r),a=i[Wn$1.find(i,e-r.from,-1,t)];return vn$1(n,a.dir==I$2.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return !this.state.facet(dr$1)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>To)return Qn$1(e.length);let t=this.textDirectionAt(e.from),n;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||Gn$1(r.isolates,n=Or$1(this,e))))return r.order;n||=Or$1(this,e);let r=Zn$1(e.text,t,n);return this.bidiCache.push(new Do(e.from,e.to,t,n,true,r)),r}get hasFocus(){return (this.dom.ownerDocument.hasFocus()||N$2.safari&&this.inputState?.lastContextMenu>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Tn$1(this.contentDOM),this.docView.updateSelection();});}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles());}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=true;}static scrollIntoView(e,t={}){return hr$1.of(new mr$1(typeof e==`number`?T$1.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return hr$1.of(new mr$1(T$1.cursor(n.from),`start`,`start`,n.top-e,t,true))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e==`boolean`?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e);}static domEventHandlers(e){return z$2.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return z$2.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=Dt$1.newName(),r=[lo.of(n),jr$1.of(go(`.${n}`,e))];return t&&t.dark&&r.push(uo.of(true)),r}static baseTheme(e){return Ee$1.lowest(jr$1.of(go(`.`+fo,e,ho)))}static findFromDOM(e){let t=e.querySelector(`.cm-content`);return (t&&B$2.get(t)||B$2.get(e))?.root?.view||null}};W$2.styleModule=jr$1,W$2.inputHandler=sr$1,W$2.clipboardInputFilter=lr$1,W$2.clipboardOutputFilter=ur$1,W$2.scrollHandler=pr$1,W$2.focusChangeEffect=cr$1,W$2.perLineTextDirection=dr$1,W$2.exceptionSink=ar$1,W$2.updateListener=or$1,W$2.editable=_r$1,W$2.mouseSelectionStyle=ir$1,W$2.dragMovesSelection=rr$1,W$2.clickAddsSelectionRange=nr$1,W$2.decorations=Cr$1,W$2.blockWrappers=wr$1,W$2.outerDecorations=Tr$1,W$2.atomicRanges=Er$1,W$2.bidiIsolatedRanges=Dr$1,W$2.scrollMargins=kr$1,W$2.darkTheme=uo,W$2.cspNonce=E$1.define({combine:e=>e.length?e[0]:``}),W$2.contentAttributes=Sr$1,W$2.editorAttributes=xr$1,W$2.lineWrapping=W$2.contentAttributes.of({class:`cm-lineWrapping`}),W$2.announce=D$2.define();var To=4096,Eo={},Do=class e{constructor(e,t,n,r,i,a){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=a;}static update(t,n){if(n.empty&&!t.some(e=>e.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:I$2.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let t=r[i],a=typeof t==`function`?t(e):t;a&&Jt$1(a,n);}return n}var ko=N$2.mac?`mac`:N$2.windows?`win`:N$2.linux?`linux`:`key`;function Ao(e,t){let n=e.split(/-(?!$)/),r=n[n.length-1];r==`Space`&&(r=` `);let i,a,o,s;for(let e=0;ee.concat(t),[]))),n}var Io=null,Lo=4e3;function Ro(e,t=ko){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(n==null)r[e]=t;else if(n!=t)throw Error(`Key binding `+e+` is used both as a regular binding and as a multi-stroke prefix`)},a=(e,r,a,o,s)=>{let c=n[e]||(n[e]=Object.create(null)),l=r.split(/ (?!$)/).map(e=>Ao(e,t));for(let t=1;t{let r=Io={view:t,prefix:n,scope:e};return setTimeout(()=>{Io==r&&(Io=null);},Lo),true}]});}let u=l.join(` `);i(u,false);let d=c[u]||(c[u]={preventDefault:false,stopPropagation:false,run:(c._any?.run)?.slice()||[]});a&&d.run.push(a),o&&(d.preventDefault=true),s&&(d.stopPropagation=true);};for(let r of e){let e=r.scope?r.scope.split(` `):[`editor`];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||={preventDefault:false,stopPropagation:false,run:[]};let{any:i}=r;for(let t in e)e[t].run.push(e=>i(e,zo));}let i=r[t]||r.key;if(i)for(let t of e)a(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&a(t,`Shift-`+i,r.shift,r.preventDefault,r.stopPropagation);}return n}var zo=null;function Bo(e,t,n,r){zo=t;let i=Ft$1(t),a=ae(re$1(i,0))==i.length&&i!=` `,o=``,s=false,c=false,l=false;Io&&Io.view==n&&Io.scope==r&&(o=Io.prefix+` `,Qi.indexOf(t.keyCode)<0&&(c=true,Io=null));let u=new Set,d=e=>{if(e){for(let t of e.run)if(!u.has(t)&&(u.add(t),t(n)))return e.stopPropagation&&(l=true),true;e.preventDefault&&(e.stopPropagation&&(l=true),c=true);}return false},f=e[r],p,m;return f&&(d(f[o+jo(i,t,!a)])?s=true:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(N$2.windows&&t.ctrlKey&&t.altKey)&&!(N$2.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(p=At$1[t.keyCode])&&p!=i?(d(f[o+jo(p,t,true)])||t.shiftKey&&(m=jt$1[t.keyCode])!=i&&m!=p&&d(f[o+jo(m,t,false)]))&&(s=true):a&&t.shiftKey&&d(f[o+jo(i,t,true)])&&(s=true),!s&&d(f._any)&&(s=true)),c&&(s=true),s&&l&&t.stopPropagation(),zo=null,s}var Vo=class e{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i;}draw(){let e=document.createElement(`div`);return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className?(this.adjust(e),true):false}adjust(e){e.style.left=this.left+`px`,e.style.top=this.top+`px`,this.width!=null&&(e.style.width=this.width+`px`),e.style.height=this.height+`px`;}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return [];let a=Ho(t);return [new e(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return Wo(t,n,r)}};function Ho(e){let t=e.scrollDOM.getBoundingClientRect();return {left:(e.textDirection==I$2.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Uo(e,t,n,r){let i=e.coordsAtPos(t,n*2);if(!i)return r;let a=e.dom.getBoundingClientRect(),o=(i.top+i.bottom)/2,s=e.posAtCoords({x:a.left+1,y:o}),c=e.posAtCoords({x:a.right-1,y:o});return s==null||c==null?r:{from:Math.max(r.from,Math.min(s,c)),to:Math.min(r.to,Math.max(s,c))}}function Wo(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return [];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==I$2.LTR,o=e.contentDOM,s=o.getBoundingClientRect(),c=Ho(e),l=o.querySelector(`.cm-line`),u=l&&window.getComputedStyle(l),d=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),f=s.right-(u?parseInt(u.paddingRight):0),p=xi(e,r,1),m=xi(e,i,-1),h=p.type==P$2.Text?p:null,g=m.type==P$2.Text?m:null;if(h&&(e.lineWrapping||p.widgetLineBreaks)&&(h=Uo(e,r,1,h)),g&&(e.lineWrapping||m.widgetLineBreaks)&&(g=Uo(e,i,-1,g)),h&&g&&h.from==g.from&&h.to==g.to)return v(y(n.from,n.to,h));{let t=h?y(n.from,null,h):ee(p,false),r=g?y(null,n.to,g):ee(m,true),i=[];return (h||p).to<(g||m).from-(h&&g?1:0)||p.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2l&&r.from=a)break;s>i&&c(Math.max(e,i),t==null&&e<=l,Math.min(s,a),n==null&&s>=u,o.dir);}if(i=r.to+1,i>=a)break}return s.length==0&&c(l,t==null,u,n==null,e.textDirection),{top:i,bottom:o,horizontal:s}}function ee(e,t){let n=s.top+(t?e.top:e.bottom);return {top:n,bottom:n,horizontal:[]}}}function Go(e,t){return e.constructor==t.constructor&&e.eq(t)}var Ko=class{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement(`div`)),this.dom.classList.add(`cm-layer`),t.above&&this.dom.classList.add(`cm-layer-above`),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute(`aria-hidden`,`true`),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e);}update(e){e.startState.facet(qo)!=e.state.facet(qo)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq));}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==false&&e.requestMeasure(this.measureReq);}setOrder(e){let t=0,n=e.facet(qo);for(;t!Go(e,this.drawn[t]))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e;}this.drawn=e,N$2.safari&&N$2.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?``:`none`);}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove();}},qo=E$1.define();function Jo(e){return [z$2.define(t=>new Ko(t,e)),qo.of(e)]}var Yo=E$1.define({combine(e){return rt$2(e,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Xo(e={}){return [Yo.of(e),Qo,es,ts,fr.of(true)]}function Zo(e){return e.startState.facet(Yo)!=e.state.facet(Yo)}var Qo=Jo({above:true,markers(e){let{state:t}=e,n=t.facet(Yo),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty||n.drawRangeCursor){let t=a?`cm-cursor cm-cursor-primary`:`cm-cursor cm-cursor-secondary`,n=i.empty?i:T$1.cursor(i.head,i.head>i.anchor?-1:1);for(let i of Vo.forRange(e,t,n))r.push(i);}}return r},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName=t.style.animationName==`cm-blink`?`cm-blink2`:`cm-blink`);let n=Zo(e);return n&&$o(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){$o(t.state,e);},class:`cm-cursorLayer`});function $o(e,t){t.style.animationDuration=e.facet(Yo).cursorBlinkRate+`ms`;}var es=Jo({above:false,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:Vo.forRange(e,`cm-selectionBackground`,t)).reduce((e,t)=>e.concat(t))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||Zo(e)},class:`cm-selectionLayer`}),ts=Ee$1.highest(W$2.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:`transparent !important`},caretColor:`transparent !important`},".cm-content":{caretColor:`transparent !important`,"& :focus":{caretColor:`initial !important`,"&::selection, & ::selection":{backgroundColor:`Highlight !important`}}}}));function ns(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),o=n,s;!a.next().done;o+=a.value.length)if(!a.lineBreak)for(;s=t.exec(a.value);)i(o+s.index,s);}function rs(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}var is=class{constructor(e){let{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:a=1e3}=e;if(!t.global)throw RangeError(`The regular expression given to MatchDecorator should have its 'g' flag set`);if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if(typeof n==`function`)this.addMatch=(e,t,r,i)=>{let a=n(e,t,r);a&&i(r,r+e[0].length,a);};else if(n)this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n);else throw RangeError(`Either 'decorate' or 'decoration' should be provided to MatchDecorator`);this.boundary=i,this.maxLength=a;}createDeco(e){let t=new ut$1,n=t.add.bind(t);for(let{from:t,to:r}of rs(e,this.maxLength))ns(e.state.doc,this.regexp,t,r,(t,r)=>this.addMatch(r,e,t,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((t,i,a,o)=>{o>=e.view.viewport.from&&a<=e.view.viewport.to&&(n=Math.min(a,n),r=Math.max(o,r));}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let a=Math.max(i.from,n),o=Math.min(i.to,r);if(o>=a){let n=e.state.doc.lineAt(a),r=n.ton.from;a--)if(this.boundary.test(n.text[a-1-n.from])){s=a;break}for(;ol.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=s-n.from;(u=this.regexp.exec(n.text))&&u.indexthis.addMatch(n,e,t,d));t=t.update({filterFrom:s,filterTo:c,filter:(e,t)=>ec,add:l});}}return t}},as=/x/.unicode==null?`g`:`gu`,os=RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩-]`,as),ss={0:`null`,7:`bell`,8:`backspace`,10:`newline`,11:`vertical tab`,13:`carriage return`,27:`escape`,8203:`zero width space`,8204:`zero width non-joiner`,8205:`zero width joiner`,8206:`left-to-right mark`,8207:`right-to-left mark`,8232:`line separator`,8237:`left-to-right override`,8238:`right-to-left override`,8294:`left-to-right isolate`,8295:`right-to-left isolate`,8297:`pop directional isolate`,8233:`paragraph separator`,65279:`zero width no-break space`,65532:`object replacement`},cs=null;function ls(){if(cs==null&&typeof document<`u`&&document.body){let e=document.body.style;cs=(e.tabSize??e.MozTabSize)!=null;}return cs||false}var us=E$1.define({combine(e){let t=rt$2(e,{render:null,specialChars:os,addSpecialChars:null});return (t.replaceTabs=!ls())&&(t.specialChars=RegExp(` |`+t.specialChars.source,as)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+`|`+t.addSpecialChars.source,as)),t}});function ds(e={}){return [us.of(e),ps()]}var fs=null;function ps(){return fs||=z$2.fromClass(class{constructor(e){this.view=e,this.decorations=F$2.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(us)),this.decorations=this.decorator.createDeco(e);}makeDecorator(e){return new is({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=re$1(t[0],0);if(a==9){let e=i.lineAt(r),t=n.state.tabSize,a=xt$1(e.text,t,r-e.from);return F$2.replace({widget:new _s((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=F$2.replace({widget:new gs(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(us);e.startState.facet(us)==t?this.decorations=this.decorator.updateDeco(e,this.decorations):(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view));}},{decorations:e=>e.decorations})}var ms=`•`;function hs(e){return e>=32?ms:e==10?`␤`:String.fromCharCode(9216+e)}var gs=class extends en$1{constructor(e,t){super(),this.options=e,this.code=t;}eq(e){return e.code==this.code}toDOM(e){let t=hs(this.code),n=e.state.phrase(`Control character`)+` `+(ss[this.code]||`0x`+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement(`span`);return i.textContent=t,i.title=n,i.setAttribute(`aria-label`,n),i.className=`cm-specialChar`,i}ignoreEvent(){return false}},_s=class extends en$1{constructor(e){super(),this.width=e;}eq(e){return e.width==this.width}toDOM(){let e=document.createElement(`span`);return e.textContent=` `,e.className=`cm-tab`,e.style.width=this.width+`px`,e}ignoreEvent(){return false}};var bs=2e3;function xs(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>bs||n.off>bs||t.col<0||n.col<0){let o=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=s&&a.push(T$1.range(n.from+o,n.to+s));}}else {let o=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=St$1(n.text,o,e.tabSize,true);if(r<0)a.push(T$1.cursor(n.to));else {let t=St$1(n.text,s,e.tabSize);a.push(T$1.range(n.from+r,n.from+t));}}}return a}function Ss(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function Cs(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},false),r=e.state.doc.lineAt(n),i=n-r.from,a=i>bs?-1:i==r.length?Ss(e,t.clientX):xt$1(r.text,e.state.tabSize,n-r.from);return {line:r.number,col:a,off:i}}function ws(e,t){let n=Cs(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes);}},get(t,i,a){let o=Cs(e,t);if(!o)return r;let s=xs(e.state,n,o);return s.length?a?T$1.create(s.concat(r.ranges)):T$1.create(s):r}}:null}function Ts(e){let t=(e=>e.altKey&&e.button==0);return W$2.mouseSelectionStyle.of((e,n)=>t(n)?ws(e,n):null)}var Es={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Ds={style:`cursor: crosshair`};function Os(e={}){let[t,n]=Es[e.key||`Alt`],r=z$2.fromClass(class{constructor(e){this.view=e,this.isDown=false;}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]));}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e));},keyup(e){(e.keyCode==t||!n(e))&&this.set(false);},mousemove(e){this.set(n(e));}}});return [r,W$2.contentAttributes.of(e=>e.plugin(r)?.isDown?Ds:null)]}var ks=`-10000px`,As=class{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=n(e,i));}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter(e=>e);if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return false}let a=[],o=t?[]:null;for(let n=0;nt[n]=e),t.length=o.length),this.input=r,this.tooltips=i,this.tooltipViews=a,true}};function js(e){let t=e.dom.ownerDocument.documentElement;return {top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}var Ms=E$1.define({combine:e=>({position:N$2.ios?`absolute`:e.find(e=>e.position)?.position||`fixed`,parent:e.find(e=>e.parent)?.parent||null,tooltipSpace:e.find(e=>e.tooltipSpace)?.tooltipSpace||js})}),Ns=new WeakMap,Ps=z$2.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=true,this.madeAbsolute=false,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Ms);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver==`function`?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new As(e,Rs,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove();}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver=typeof IntersectionObserver==`function`?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon();},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener(`resize`,this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure();}createContainer(){this.parent?(this.container=document.createElement(`div`),this.container.style.position=`relative`,this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom;}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom);}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure();},50));}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(Ms);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=true;}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=true;}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure();}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add(`cm-tooltip`),e.arrow&&!n.dom.querySelector(`.cm-tooltip > .cm-tooltip-arrow`)){let e=document.createElement(`div`);e.className=`cm-tooltip-arrow`,n.dom.appendChild(e);}return n.dom.style.position=this.position,n.dom.style.top=ks,n.dom.style.left=`0px`,this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener(`resize`,this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),(e=t.destroy)==null||e.call(t);this.parent&&this.container.remove(),(t=this.resizeObserver)==null||t.disconnect(),(n=this.intersectionObserver)==null||n.disconnect(),clearTimeout(this.measureTimeout);}readMeasure(){let e=1,t=1,n=false;if(this.position==`fixed`&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(N$2.safari){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1;}else n=!!e.offsetParent&&e.offsetParent!=this.container.ownerDocument.body;}if(n||this.position==`absolute`)if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight);}else ({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=Ar$1(this.view);return {visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(Ms).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){if(e.makeAbsolute){this.madeAbsolute=true,this.position=`absolute`;for(let e of this.manager.tooltipViews)e.dom.style.position=`absolute`;}let{visible:t,space:n,scaleX:r,scaleY:i}=e,a=[];for(let o=0;o=Math.min(t.bottom,n.bottom)||u.rightMath.min(t.right,n.right)+.1)){l.style.top=ks;continue}let f=s.arrow?c.dom.querySelector(`.cm-tooltip-arrow`):null,p=f?7:0,m=d.right-d.left,h=Ns.get(c)??d.bottom-d.top,g=c.offset||Ls,_=this.view.textDirection==I$2.LTR,v=d.width>n.right-n.left?_?n.left:n.right-d.width:_?Math.max(n.left,Math.min(u.left-(f?14:0)+g.x,n.right-m)):Math.min(Math.max(n.left,u.left-m+(f?14:0)-g.x),n.right-m),y=this.above[o];!s.strictSide&&(y?u.top-h-p-g.yn.bottom)&&y==n.bottom-u.bottom>u.top-n.top&&(y=this.above[o]=!y);let ee=(y?u.top-n.top:n.bottom-u.bottom)-p;if(eev&&e.topb&&(b=y?e.top-h-2-p:e.bottom+p+2);if(this.position==`absolute`?(l.style.top=(b-e.parent.top)/i+`px`,Fs(l,(v-e.parent.left)/r)):(l.style.top=b/i+`px`,Fs(l,v/r)),f){let e=u.left+(_?g.x:-g.x)-(v+14-7);f.style.left=e/r+`px`;}c.overlap!==true&&a.push({left:v,top:b,right:x,bottom:b+h}),l.classList.toggle(`cm-tooltip-above`,y),l.classList.toggle(`cm-tooltip-below`,!y),c.positioned&&c.positioned(e.space);}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=ks;}},{eventObservers:{scroll(){this.maybeMeasure();}}});function Fs(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+`px`);}var Is=W$2.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:`border-box`},"&light .cm-tooltip":{border:`1px solid #bbb`,backgroundColor:`#f5f5f5`},"&light .cm-tooltip-section:not(:first-child)":{borderTop:`1px solid #bbb`},"&dark .cm-tooltip":{backgroundColor:`#333338`,color:`white`},".cm-tooltip-arrow":{height:`7px`,width:`14px`,position:`absolute`,zIndex:-1,overflow:`hidden`,"&:before, &:after":{content:`''`,position:`absolute`,width:0,height:0,borderLeft:`7px solid transparent`,borderRight:`7px solid transparent`},".cm-tooltip-above &":{bottom:`-7px`,"&:before":{borderTop:`7px solid #bbb`},"&:after":{borderTop:`7px solid #f5f5f5`,bottom:`1px`}},".cm-tooltip-below &":{top:`-7px`,"&:before":{borderBottom:`7px solid #bbb`},"&:after":{borderBottom:`7px solid #f5f5f5`,top:`1px`}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:`#333338`,borderBottomColor:`#333338`},"&:after":{borderTopColor:`transparent`,borderBottomColor:`transparent`}}}),Ls={x:0,y:0},Rs=E$1.define({enables:[Ps,Is]}),zs=E$1.define({combine:e=>e.reduce((e,t)=>e.concat(t),[])}),Bs=class e{static create(t){return new e(t)}constructor(e){this.view=e,this.mounted=false,this.dom=document.createElement(`div`),this.dom.classList.add(`cm-tooltip-hover`),this.manager=new As(e,zs,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove());}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add(`cm-tooltip-section`),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=true;}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e);}update(e){this.manager.update(e);}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)==null||e.call(t);}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(r!==void 0){if(t===void 0)t=r;else if(t!==r)return}}return t}get offset(){return this.passProp(`offset`)}get getCoords(){return this.passProp(`getCoords`)}get overlap(){return this.passProp(`overlap`)}get resize(){return this.passProp(`resize`)}},Vs=Rs.compute([zs],e=>{let t=e.facet(zs);return t.length===0?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>e.end??e.pos)),create:Bs.create,above:t[0].above,arrow:t.some(e=>e.arrow)}}),Hs=class{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener(`mouseleave`,this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener(`mousemove`,this.mousemove=this.mousemove.bind(this));}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20));}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(r)).find(e=>e.from<=r&&e.to>=r),o=a&&a.dir==I$2.RTL?-1:1;i=t.x{this.pending==t&&(this.pending=null,n&&!(Array.isArray(n)&&!n.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}));},t=>R$2(e.state,t,`hover tooltip`));}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])});}get tooltip(){let e=this.view.plugin(Ps),t=e?e.manager.tooltips.findIndex(e=>e.create==Bs.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:t,tooltip:n}=this;if(t.length&&n&&!Ws(n.dom,e)||this.pending){let{pos:n}=t[0]||this.pending,r=t[0]?.end??n;(n==r?this.view.posAtCoords(this.lastMove)!=n:!Gs(this.view,n,r,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null);}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])});}}watchTooltipLeave(e){let t=n=>{e.removeEventListener(`mouseleave`,t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])});};e.addEventListener(`mouseleave`,t);}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener(`mouseleave`,this.mouseleave),this.view.dom.removeEventListener(`mousemove`,this.mousemove);}},Us=4;function Ws(e,t){let{left:n,right:r,top:i,bottom:a}=e.getBoundingClientRect(),o;if(o=e.querySelector(`.cm-tooltip-arrow`)){let e=o.getBoundingClientRect();i=Math.min(e.top,i),a=Math.max(e.bottom,a);}return t.clientX>=n-Us&&t.clientX<=r+Us&&t.clientY>=i-Us&&t.clientY<=a+Us}function Gs(e,t,n,r,i,a){let o=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.righti||Math.min(o.bottom,s)=t&&c<=n}function Ks(e,t={}){let n=D$2.define(),r=Ce$1.define({create(){return []},update(e,r){if(e.length&&(t.hideOnChange&&(r.docChanged||r.selection)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(r,e))),r.docChanged)){let t=[];for(let n of e){let e=r.changes.mapPos(n.pos,-1,C.TrackDel);if(e!=null){let i=Object.assign(Object.create(null),n);i.pos=e,i.end!=null&&(i.end=r.changes.mapPos(i.end)),t.push(i);}}e=t;}for(let t of r.effects)t.is(n)&&(e=t.value),t.is(Js)&&(e=[]);return e},provide:e=>zs.from(e)});return {active:r,extension:[r,z$2.define(i=>new Hs(i,e,r,n,t.hoverTime||300)),Vs]}}function qs(e,t){let n=e.plugin(Ps);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}var Js=D$2.define(),Ys=E$1.define({combine(e){let t,n;for(let r of e)t||=r.topContainer,n||=r.bottomContainer;return {topContainer:t,bottomContainer:n}}});function Xs(e,t){let n=e.plugin(Zs),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}var Zs=z$2.fromClass(class{constructor(e){this.input=e.state.facet(ec),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(Ys);this.top=new Qs(e,true,t.topContainer),this.bottom=new Qs(e,false,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add(`cm-panel`),e.mount&&e.mount();}update(e){let t=e.state.facet(Ys);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Qs(e.view,true,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Qs(e.view,false,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(ec);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],a=[],o=[];for(let n of t){let t=this.specs.indexOf(n),s;t<0?(s=n(e.view),o.push(s)):(s=this.panels[t],s.update&&s.update(e)),r.push(s),(s.top?i:a).push(s);}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(a);for(let e of o)e.dom.classList.add(`cm-panel`),e.mount&&e.mount();}else for(let t of this.panels)t.update&&t.update(e);}destroy(){this.top.sync([]),this.bottom.sync([]);}},{provide:e=>W$2.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})}),Qs=class{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes=``,this.panels=[],this.syncClasses();}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM();}syncDOM(){if(this.panels.length==0){this.dom&&=(this.dom.remove(),void 0);return}if(!this.dom){this.dom=document.createElement(`div`),this.dom.className=this.top?`cm-panels cm-panels-top`:`cm-panels cm-panels-bottom`,this.dom.style[this.top?`top`:`bottom`]=`0`;let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null);}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=$s(e);e=e.nextSibling;}else this.dom.insertBefore(t.dom,e);for(;e;)e=$s(e);}scrollMargin(){return !this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(` `))e&&this.container.classList.remove(e);for(let e of (this.classes=this.view.themeClasses).split(` `))e&&this.container.classList.add(e);}}};function $s(e){let t=e.nextSibling;return e.remove(),t}var ec=E$1.define({enables:Zs}),tc=class extends it$2{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return false}destroy(e){}};tc.prototype.elementClass=``,tc.prototype.toDOM=void 0,tc.prototype.mapMode=C.TrackBefore,tc.prototype.startSide=tc.prototype.endSide=-1,tc.prototype.point=true;var nc=E$1.define(),rc=E$1.define(),ic={class:``,renderEmptyElements:false,elementStyle:``,markers:()=>A$2.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:`before`},ac=E$1.define();function oc(e){return [cc(),ac.of({...ic,...e})]}var sc=E$1.define({combine:e=>e.some(e=>e)});function cc(e){let t=[lc];return t}var lc=z$2.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement(`div`),this.dom.className=`cm-gutters cm-gutters-before`,this.dom.setAttribute(`aria-hidden`,`true`),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+`px`,this.gutters=e.state.facet(ac).map(t=>new pc(e,t)),this.fixed=!e.state.facet(sc);for(let e of this.gutters)e.config.side==`after`?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position=`sticky`),this.syncGutters(false),e.scrollDOM.insertBefore(this.dom,e.contentDOM);}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement(`div`),this.domAfter.className=`cm-gutters cm-gutters-after`,this.domAfter.setAttribute(`aria-hidden`,`true`),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+`px`,this.domAfter.style.position=this.fixed?`sticky`:``,this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8);}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+`px`;this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e);}this.view.state.facet(sc)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?`sticky`:``,this.domAfter&&(this.domAfter.style.position=this.fixed?`sticky`:``)),this.prevViewport=e.view.viewport;}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=A$2.iter(this.view.state.facet(nc),this.view.viewport.from),r=[],i=this.gutters.map(e=>new fc(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(e.type)){let t=true;for(let a of e.type)if(a.type==P$2.Text&&t){dc(n,r,a.from);for(let e of i)e.line(this.view,a,r);t=false;}else if(a.widget)for(let e of i)e.widget(this.view,a);}else if(e.type==P$2.Text){dc(n,r,e.from);for(let t of i)t.line(this.view,e,r);}else if(e.widget)for(let t of i)t.widget(this.view,e);for(let e of i)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter));}updateGutters(e){let t=e.startState.facet(ac),n=e.state.facet(ac),r=e.docChanged||e.heightChanged||e.viewportChanged||!A$2.eq(e.startState.facet(nc),e.state.facet(nc),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=true);else {r=true;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new pc(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]));}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)e.config.side==`after`?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=i;}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove();}},{provide:e=>W$2.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||n.gutters.length==0||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,i=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==I$2.LTR?{left:r,right:i}:{right:r,left:i}})});function uc(e){return Array.isArray(e)?e:[e]}function dc(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next();}var fc=class{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=A$2.iter(e.markers,t.from);}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==r.elements.length){let t=new mc(e,a,i,n);r.elements.push(t),r.dom.appendChild(t.dom);}else r.elements[this.i].update(e,a,i,n);this.height=t.bottom,this.i++;}line(e,t,n){let r=[];dc(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let a=this.gutter;r.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,r);}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let n of e.state.facet(rc)){let i=n(e,t.widget,t);i&&(r||=[]).push(i);}r&&this.addElement(e,t,r);}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy();}}},pc=class{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement(`div`),this.dom.className=`cm-gutter`+(this.config.class?` `+this.config.class:``);for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let i=r.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let e=i.getBoundingClientRect();a=(e.top+e.bottom)/2;}else a=r.clientY;let o=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[n](e,o,r)&&r.preventDefault();});this.markers=uc(t.markers(e)),t.initialSpacer&&(this.spacer=new mc(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+=`visibility: hidden; pointer-events: none`);}update(e){let t=this.markers;if(this.markers=uc(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t]);}let n=e.view.viewport;return !A$2.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):false)}destroy(){for(let e of this.elements)e.destroy();}},mc=class{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement(`div`),this.dom.className=`cm-gutterElement`,this.update(e,t,n,r);}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+`px`),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+`px`:``),hc(this.markers,r)||this.setMarkers(e,r);}setMarkers(e,t){let n=`cm-gutterElement`,r=this.dom.firstChild;for(let i=0,a=0;;){let o=a,s=ir(e,t,n)||i(e,t,n):i;}return n}})}}),yc=class extends tc{constructor(e){super(),this.number=e;}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function bc(e,t){return e.state.facet(vc).formatNumber(t,e.state)}ac.compute([vc],e=>({class:`cm-lineNumbers`,renderEmptyElements:false,markers(e){return e.state.facet(gc)},lineMarker(e,t,n){return n.some(e=>e.toDOM)?null:new yc(bc(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let r of e.state.facet(_c)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(vc)!=e.state.facet(vc),initialSpacer(e){return new yc(bc(e,Cc(e.state.doc.lines)))},updateSpacer(e,t){let n=bc(t.view,Cc(t.view.state.doc.lines));return n==e.number?e:new yc(n)},domEventHandlers:e.facet(vc).domEventHandlers,side:`before`}));function Cc(e){let t=9;for(;t{throw Error(`This node type doesn't define a deserialize function`)}),this.combine=e.combine||null;}add(e){if(this.perNode)throw RangeError(`Can't add per-node props to node types`);return typeof e!=`function`&&(e=q$2.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}};K$2.closedBy=new K$2({deserialize:e=>e.split(` `)}),K$2.openedBy=new K$2({deserialize:e=>e.split(` `)}),K$2.group=new K$2({deserialize:e=>e.split(` `)}),K$2.isolate=new K$2({deserialize:e=>{if(e&&e!=`rtl`&&e!=`ltr`&&e!=`auto`)throw RangeError(`Invalid value for isolate: `+e);return e||`auto`}}),K$2.contextHash=new K$2({perNode:true}),K$2.lookAhead=new K$2({perNode:true}),K$2.mounted=new K$2({perNode:true});var Ec=class{constructor(e,t,n,r=false){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r;}static get(e){return e&&e.props&&e.props[K$2.mounted.id]}},Dc=Object.create(null),q$2=class e{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r;}static define(t){let n=t.props&&t.props.length?Object.create(null):Dc,r=!!t.top|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new e(t.name||``,n,t.id,r);if(t.props){for(let e of t.props)if(Array.isArray(e)||(e=e(i)),e){if(e[0].perNode)throw RangeError(`Can't store a per-node prop on a node type`);n[e[0].id]=e[1];}}return i}prop(e){return this.props[e.id]}get isTop(){return (this.flags&1)>0}get isSkipped(){return (this.flags&2)>0}get isError(){return (this.flags&4)>0}get isAnonymous(){return (this.flags&8)>0}is(e){if(typeof e==`string`){if(this.name==e)return true;let t=this.prop(K$2.group);return t?t.indexOf(e)>-1:false}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(` `))t[r]=e[n];return e=>{for(let n=e.prop(K$2.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}};q$2.none=new q$2(``,Object.create(null),0,8);var Oc=class e{constructor(e){this.types=e;for(let t=0;t0;for(let e=this.cursor(a|J$2.IncludeAnonymous);;){let a=false;if(e.from<=i&&e.to>=r&&(!o&&e.type.isAnonymous||t(e)!==false)){if(e.firstChild())continue;a=true;}for(;a&&n&&(o||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;a=true;}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(t={}){return this.children.length<=8?this:Jc(q$2.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,r)=>new e(this.type,t,n,r,this.propValues),t.makeTree||((t,n,r)=>new e(q$2.none,t,n,r)))}static build(e){return Gc(e)}};Y$2.empty=new Y$2(q$2.none,[],[],0);var jc=class e{constructor(e,t){this.buffer=e,this.index=t;}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4;}fork(){return new e(this.buffer,this.index)}},Mc=class e{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n;}get type(){return q$2.none}toString(){let e=[];for(let t=0;t0));s=a[s+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),o=0;for(let e=t,s=0;e=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return true}}function Pc(e,t,n,r){for(;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?s.length:-1;t!=l;t+=n){let l=s[t],u=c[t]+o.from;if(!(!(a&J$2.EnterBracketed&&l instanceof Y$2&&Ec.get(l)?.overlay===null&&(u>=r||u+l.length<=r))&&!Nc(i,r,u,u+l.length))){if(l instanceof Mc){if(a&J$2.ExcludeBuffers)continue;let e=l.findChild(0,l.buffer.length,n,r-u,i);if(e>-1)return new zc(new Rc(o,l,t,u),null,e)}else if(a&J$2.IncludeAnonymous||!l.type.isAnonymous||Wc(l)){let s;if(!(a&J$2.IgnoreMounts)&&(s=Ec.get(l))&&!s.overlay)return new e(s.tree,u,t,o);let c=new e(l,u,t,o);return a&J$2.IncludeAnonymous||!c.type.isAnonymous?c:c.nextChild(n<0?l.children.length-1:0,n,r,i,a)}}}if(a&J$2.IncludeAnonymous||!o.type.isAnonymous||(t=o.index>=0?o.index+n:n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(t,n,r=0){let i;if(!(r&J$2.IgnoreOverlays)&&(i=Ec.get(this._tree))&&i.overlay){let a=t-this.from,o=r&J$2.EnterBracketed&&i.bracketed;for(let{from:t,to:r}of i.overlay)if((n>0||o?t<=a:t=a:r>a))return new e(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function Ic(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let e=false;!e;)if(e=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function Lc(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return false;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return false;n--;}}return true}var Rc=class{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r;}},zc=class e extends Fc{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]];}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new e(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(t,n,r=0){if(r&J$2.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new e(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new e(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new e(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let a=n.buffer[this.index+1];e.push(n.slice(r,i,a)),t.push(0);}return new Y$2(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function Bc(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;rn.from||i.to=t){let o=new X$2(a.tree,a.overlay[0].from+e.from,-1,e);(i||=[r]).push(Pc(o,t,n,false));}}return i?Bc(i):r}var Uc=class{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~J$2.EnterBracketed,e instanceof X$2)this.yieldNode(e);else {this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index);}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,true):false}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],true}yield(e){return e?e instanceof X$2?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):false}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return i<0?false:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&J$2.ExcludeBuffers?false:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&J$2.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&J$2.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):false;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else {let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):false}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&J$2.IncludeAnonymous||e instanceof Mc||!e.type.isAnonymous||Wc(e))return false}return true}move(e,t){if(t&&this.enterChild(e,0,4))return true;for(;;){if(this.sibling(e))return true;if(this.atLastNode(e)||!this.parent())return false}}next(e=true){return this.move(1,e)}prev(e=true){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;t=a,n=i+1;break scan}r=this.stack[--i];}for(let e=n;e=0;i--){if(i<0)return Lc(this._tree,e,r);let a=n[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return false;r--;}}return true}};function Wc(e){return e.children.some(e=>e instanceof Mc||!e.type.isAnonymous||Wc(e))}function Gc(e){let{buffer:t,nodeSet:n,maxBufferLength:r=wc,reused:i=[],minRepeatType:a=n.types.length}=e,o=Array.isArray(t)?new jc(t,t.length):t,s=n.types,c=0,l=0;function u(e,t,_,v,y,ee){let{id:b,start:x,end:S,size:te}=o,ne=l,re=c;if(te<0)if(o.next(),te==-1){let t=i[b];_.push(t),v.push(x-e);return}else if(te==-3){c=b;return}else if(te==-4){l=b;return}else throw RangeError(`Unrecognized record size: ${te}`);let ie=s[b],ae,oe,C=x-e;if(S-x<=r&&(oe=h(o.pos-t,y))){let t=new Uint16Array(oe.size-oe.skip),r=o.pos-oe.size,i=t.length;for(;o.pos>r;)i=g(oe.start,t,i);ae=new Mc(t,S-oe.start,n),C=oe.start-e;}else {let e=o.pos-te;o.next();let t=[],n=[],i=b>=a?b:-1,s=0,c=S;for(;o.pos>e;)i>=0&&o.id==i&&o.size>=0?(o.end<=c-r&&(p(t,n,x,s,o.end,c,i,ne,re),s=t.length,c=o.end),o.next()):ee>2500?d(x,e,t,n):u(x,e,t,n,i,ee+1);if(i>=0&&s>0&&s-1&&s>0){let e=f(ie,re);ae=Jc(ie,t,n,0,t.length,0,S-x,e,e);}else ae=m(ie,t,n,S-x,ne-S,re);}_.push(ae),v.push(C);}function d(e,t,i,a){let s=[],c=0,l=-1;for(;o.pos>t;){let{id:e,start:t,end:n,size:i}=o;if(i>4)o.next();else if(l>-1&&t=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-r,t[n++]=s[e+2]-r,t[n++]=n;i.push(new Mc(t,s[2]-r,n)),a.push(r-e);}}function f(e,t){return (n,r,i)=>{let a=0,o=n.length-1,s,c;if(o>=0&&(s=n[o])instanceof Y$2){if(!o&&s.type==e&&s.length==i)return s;(c=s.prop(K$2.lookAhead))&&(a=r[o]+s.length+c);}return m(e,n,r,i,a,t)}}function p(e,t,r,i,a,o,s,c,l){let u=[],d=[];for(;e.length>i;)u.push(e.pop()),d.push(t.pop()+r-a);e.push(m(n.types[s],u,d,o-a,c-o,l)),t.push(a-r);}function m(e,t,n,r,i,a,o){if(a){let e=[K$2.contextHash,a];o=o?[e].concat(o):[e];}if(i>25){let e=[K$2.lookAhead,i];o=o?[e].concat(o):[e];}return new Y$2(e,t,n,r,o)}function h(e,t){let n=o.fork(),i=0,s=0,c=0,l=n.end-r,u={size:0,start:0,skip:0};scan:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){u.size=i,u.start=s,u.skip=c,c+=4,i+=4,n.next();continue}let o=n.pos-e;if(e<0||o=a?4:0,f=n.start;for(n.next();n.pos>o;){if(n.size<0)if(n.size==-3||n.size==-4)d+=4;else break scan;else n.id>=a&&(d+=4);n.next();}s=f,i+=e,c+=d;}return (t<0||i==e)&&(u.size=i,u.start=s,u.skip=c),u.size>4?u:void 0}function g(e,t,n){let{id:r,start:i,end:s,size:u}=o;if(o.next(),u>=0&&r4){let r=o.pos-(u-4);for(;o.pos>r;)n=g(e,t,n);}t[--n]=a,t[--n]=s-e,t[--n]=i-e,t[--n]=r;}else u==-3?c=r:u==-4&&(l=r);return n}let _=[],v=[];for(;o.pos>0;)u(e.start||0,e.bufferStart||0,_,v,-1,0);let y=e.length??(_.length?v[0]+_[0].length:0);return new Y$2(s[e.topID],_.reverse(),v.reverse(),y)}var Kc=new WeakMap;function qc(e,t){if(!e.isAnonymous||t instanceof Mc||t.type!=e)return 1;let n=Kc.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Y$2)){n=1;break}n+=qc(e,r);}Kc.set(t,n);}return n}function Jc(e,t,n,r,i,a,o,s,c){let l=0;for(let n=r;n=u)break;m+=n;}if(s==r+1){if(m>u){let e=t[r];p(e.children,e.positions,0,e.children.length,n[r]+o);continue}d.push(t[r]);}else {let i=n[s-1]+t[s-1].length-l;d.push(Jc(e,t,n,r,s,l,i,null,c));}f.push(l+o-a);}}return p(t,n,r,i,0),(s||c)(d,f,o)}var Xc=class e{constructor(e,t,n,r,i=false,a=false){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=!!i|(a?2:0);}get openStart(){return (this.open&1)>0}get openEnd(){return (this.open&2)>0}static addTree(t,n=[],r=false){let i=[new e(0,t.length,t,0,false,r)];for(let e of n)e.to>t.length&&i.push(e);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,o=t.length?t[0]:null;for(let s=0,c=0,l=0;;s++){let u=s=r)for(;o&&o.from=n.from||d<=n.to||l){let t=Math.max(n.from,c)-l,r=Math.min(n.to,d)-l;n=t>=r?null:new e(t,r,n.tree,n.offset+l,s>0,!!u);}if(n&&i.push(n),o.to>d)break;o=anew G$2(e.from,e.to)):[new G$2(0,0)]:[new G$2(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}},Qc=class{constructor(e){this.string=e;}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return false}read(e,t){return this.string.slice(e,t)}};new K$2({perNode:true});var pl=0,ml=class e{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=pl++;}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(t,n){let r=typeof t==`string`?t:`?`;if(t instanceof e&&(n=t),n?.base)throw Error(`Can not derive from a modified tag`);let i=new e(r,[],null,[]);if(i.set.push(i),n)for(let e of n.set)i.set.push(e);return i}static defineModifier(e){let t=new gl(e);return e=>e.modified.indexOf(t)>-1?e:gl.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}},hl=0,gl=class e{constructor(e){this.name=e,this.instances=[],this.id=hl++;}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(e=>e.base==t&&_l(n,e.modified));if(r)return r;let i=[],a=new ml(t.name,i,t,n);for(let e of n)e.instances.push(a);let o=vl(n);for(let n of t.set)if(!n.modified.length)for(let t of o)i.push(e.get(n,t));return a}};function _l(e,t){return e.length==t.length&&e.every((e,n)=>e==t[n])}function vl(e){let t=[[]];for(let n=0;nt.length-e.length)}function yl(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(` `))if(e){let n=[],i=2,a=e;for(let t=0;;){if(a==`...`&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!r)throw RangeError(`Invalid path: `+e);if(n.push(r[0]==`*`?``:r[0][0]==`"`?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&o==`!`){i=0;break}if(o!=`/`)throw RangeError(`Invalid path: `+e);a=e.slice(t);}let o=n.length-1,s=n[o];if(!s)throw RangeError(`Invalid path: `+e);t[s]=new xl(r,i,o>0?n.slice(0,o):null).sort(t[s]);}}return bl.add(t)}var bl=new K$2({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let a=new xl(i.tags,i.mode,i.context);n?n.next=a:r=a,n=a;}return r}}),xl=class{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r;}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return !e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+` `+r:r;break}}return t},scope:r}}function Cl(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+` `+e:e);}return n}function wl(e,t,n,r=0,i=e.length){let a=new Tl(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,``,a.highlighters),a.flush(i);}var Tl=class{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=``;}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t);}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class);}highlightRange(e,t,n,r,i){let{type:a,from:o,to:s}=e;if(o>=n||s<=t)return;a.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(a)));let c=r,l=El(e)||xl.empty,u=Cl(i,l.tags);if(u&&(c&&(c+=` `),c+=u,l.mode==1&&(r+=(r?` `:``)+u)),this.startSpan(Math.max(t,o),c),l.opaque)return;let d=e.tree&&e.tree.prop(K$2.mounted);if(d&&d.overlay){let a=e.node.enter(d.overlay[0].from+o,1),l=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),u=e.firstChild();for(let f=0,p=o;;f++){let m=f=h||!e.nextSibling())););if(!m||h>n)break;p=m.to+o,p>t&&(this.highlightRange(a.cursor(),Math.max(t,m.from+o),Math.min(n,p),``,l),this.startSpan(Math.min(n,p),c));}u&&e.parent();}else if(e.firstChild()){d&&(r=``);do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),c);}while(e.nextSibling());e.parent();}}};function El(e){let t=e.type.prop(bl);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}var Z$2=ml.define,Dl=Z$2(),Ol=Z$2(),kl=Z$2(Ol),Al=Z$2(Ol),jl=Z$2(),Ml=Z$2(jl),Nl=Z$2(jl),Pl=Z$2(),Fl=Z$2(Pl),Il=Z$2(),Ll=Z$2(),Rl=Z$2(),zl=Z$2(Rl),Bl=Z$2(),Q$2={comment:Dl,lineComment:Z$2(Dl),blockComment:Z$2(Dl),docComment:Z$2(Dl),name:Ol,variableName:Z$2(Ol),typeName:kl,tagName:Z$2(kl),propertyName:Al,attributeName:Z$2(Al),className:Z$2(Ol),labelName:Z$2(Ol),namespace:Z$2(Ol),macroName:Z$2(Ol),literal:jl,string:Ml,docString:Z$2(Ml),character:Z$2(Ml),attributeValue:Z$2(Ml),number:Nl,integer:Z$2(Nl),float:Z$2(Nl),bool:Z$2(jl),regexp:Z$2(jl),escape:Z$2(jl),color:Z$2(jl),url:Z$2(jl),keyword:Il,self:Z$2(Il),null:Z$2(Il),atom:Z$2(Il),unit:Z$2(Il),modifier:Z$2(Il),operatorKeyword:Z$2(Il),controlKeyword:Z$2(Il),definitionKeyword:Z$2(Il),moduleKeyword:Z$2(Il),operator:Ll,derefOperator:Z$2(Ll),arithmeticOperator:Z$2(Ll),logicOperator:Z$2(Ll),bitwiseOperator:Z$2(Ll),compareOperator:Z$2(Ll),updateOperator:Z$2(Ll),definitionOperator:Z$2(Ll),typeOperator:Z$2(Ll),controlOperator:Z$2(Ll),punctuation:Rl,separator:Z$2(Rl),bracket:zl,angleBracket:Z$2(zl),squareBracket:Z$2(zl),paren:Z$2(zl),brace:Z$2(zl),content:Pl,heading:Fl,heading1:Z$2(Fl),heading2:Z$2(Fl),heading3:Z$2(Fl),heading4:Z$2(Fl),heading5:Z$2(Fl),heading6:Z$2(Fl),contentSeparator:Z$2(Pl),list:Z$2(Pl),quote:Z$2(Pl),emphasis:Z$2(Pl),strong:Z$2(Pl),link:Z$2(Pl),monospace:Z$2(Pl),strikethrough:Z$2(Pl),inserted:Z$2(),deleted:Z$2(),changed:Z$2(),invalid:Z$2(),meta:Bl,documentMeta:Z$2(Bl),annotation:Z$2(Bl),processingInstruction:Z$2(Bl),definition:ml.defineModifier(`definition`),constant:ml.defineModifier(`constant`),function:ml.defineModifier(`function`),standard:ml.defineModifier(`standard`),local:ml.defineModifier(`local`),special:ml.defineModifier(`special`)};for(let e in Q$2){let t=Q$2[e];t instanceof ml&&(t.name=e);}Sl([{tag:Q$2.link,class:`tok-link`},{tag:Q$2.heading,class:`tok-heading`},{tag:Q$2.emphasis,class:`tok-emphasis`},{tag:Q$2.strong,class:`tok-strong`},{tag:Q$2.keyword,class:`tok-keyword`},{tag:Q$2.atom,class:`tok-atom`},{tag:Q$2.bool,class:`tok-bool`},{tag:Q$2.url,class:`tok-url`},{tag:Q$2.labelName,class:`tok-labelName`},{tag:Q$2.inserted,class:`tok-inserted`},{tag:Q$2.deleted,class:`tok-deleted`},{tag:Q$2.literal,class:`tok-literal`},{tag:Q$2.string,class:`tok-string`},{tag:Q$2.number,class:`tok-number`},{tag:[Q$2.regexp,Q$2.escape,Q$2.special(Q$2.string)],class:`tok-string2`},{tag:Q$2.variableName,class:`tok-variableName`},{tag:Q$2.local(Q$2.variableName),class:`tok-variableName tok-local`},{tag:Q$2.definition(Q$2.variableName),class:`tok-variableName tok-definition`},{tag:Q$2.special(Q$2.variableName),class:`tok-variableName2`},{tag:Q$2.definition(Q$2.propertyName),class:`tok-propertyName tok-definition`},{tag:Q$2.typeName,class:`tok-typeName`},{tag:Q$2.namespace,class:`tok-namespace`},{tag:Q$2.className,class:`tok-className`},{tag:Q$2.macroName,class:`tok-macroName`},{tag:Q$2.propertyName,class:`tok-propertyName`},{tag:Q$2.operator,class:`tok-operator`},{tag:Q$2.comment,class:`tok-comment`},{tag:Q$2.meta,class:`tok-meta`},{tag:Q$2.invalid,class:`tok-invalid`},{tag:Q$2.punctuation,class:`tok-punctuation`}]);var Vl=new K$2;function Hl(e){return E$1.define({combine:e?t=>t.concat(e):void 0})}var Ul=new K$2,$$2=class ${constructor(e,t,n=[],r=``){this.data=e,this.name=r,k$2.prototype.hasOwnProperty(`tree`)||Object.defineProperty(k$2.prototype,"tree",{get(){return Kl(this)}}),this.parser=t,this.extension=[tu.of(this),k$2.languageData.of((e,t,n)=>{let r=Wl(e,t,n),i=r.type.prop(Vl);if(!i)return [];let a=e.facet(i),o=r.type.prop(Ul);if(o){let i=r.resolve(t-r.from,n);for(let t of o)if(t.test(i,e)){let n=e.facet(t.facet);return t.type==`replace`?n:n.concat(a)}}return a})].concat(n);}isActiveAt(e,t,n=-1){return Wl(e,t,n).type.prop(Vl)==this.data}findRegions(e){let t=e.facet(tu);if(t?.data==this.data)return [{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return [];let n=[],r=(e,t)=>{if(e.prop(Vl)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(K$2.mounted);if(i){if(i.tree.prop(Vl)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}else if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}},Jl=null,Yl=class e{constructor(e,t,n=[],r,i,a,o,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=a,this.skipped=o,this.scheduleOn=s,this.parse=null,this.tempSkipped=[];}static create(t,n,r){return new e(t,n,[],Y$2.empty,0,r,[],null)}startParse(){return this.parser.startParse(new ql(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Y$2.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),true):this.withContext(()=>{if(typeof e==`number`){let t=Date.now()+e;e=()=>Date.now()>t;}for(this.parse||=this.startParse(),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Xc.addTree(this.tree,this.fragments,true)),this.parse=null);}withContext(e){let t=Jl;Jl=this;try{return e()}finally{Jl=t;}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Xl(e,t.from,t.to);return e}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:o,skipped:s}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges((t,n,r,i)=>e.push({fromA:t,toA:n,fromB:r,toB:i})),r=Xc.applyChanges(r,e),i=Y$2.empty,a=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){s=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);ne.from&&(this.fragments=Xl(this.fragments,n,r),this.skipped.splice(t--,1));}return this.skipped.length>=t?false:(this.reset(),true)}reset(){this.parse&&=(this.takeTree(),null);}skipUntilInView(e,t){this.skipped.push({from:e,to:t});}static getSkippingParser(e){return new class extends Zc{createParse(t,n,r){let i=r[0].from,a=r[r.length-1].to;return {parsedPos:i,advance(){let t=Jl;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e);}return this.parsedPos=a,new Y$2(q$2.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Jl}};function Xl(e,t,n){return Xc.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}var Zl=class e{constructor(e){this.context=e,this.tree=e.tree;}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new e(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Yl.create(t.facet(tu).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new e(r)}};$$2.state=Ce$1.define({create:Zl.init,update(e,t){for(let e of t.effects)if(e.is($$2.setState))return e.value;return t.startState.facet(tu)==t.state.facet(tu)?e.apply(t):Zl.init(t.state)}});var Ql=e=>{let t=setTimeout(()=>e(),500);return ()=>clearTimeout(t)};typeof requestIdleCallback<`u`&&(Ql=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400});},100);return ()=>t<0?clearTimeout(n):cancelIdleCallback(t)});var $l=typeof navigator<`u`&&navigator.scheduling?.isInputPending?()=>navigator.scheduling.isInputPending():null,eu=z$2.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork();}update(e){let t=this.view.state.field($$2.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t);}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field($$2.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Ql(this.work));}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work(()=>$l&&$l()||Date.now()>a,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:$$2.setState.of(new Zl(i.context))})),this.chunkBudget>0&&!(s&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context);}checkAsyncSchedule(e){e.scheduleOn&&=(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>R$2(this.view.state,e)).then(()=>this.workScheduled--),null);}destroy(){this.working&&this.working();}isWorking(){return !!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork();}}}),tu=E$1.define({combine(e){return e.length?e[0]:null},enables:e=>[$$2.state,eu,W$2.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}),iu=E$1.define(),au=E$1.define({combine:e=>{if(!e.length)return ` `;let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error(`Invalid indent unit: `+JSON.stringify(e[0]));return t}});function ou(e){let t=e.facet(au);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function su(e,t){let n=``,r=e.tabSize,i=e.facet(au)[0];if(i==` `){for(;t>=r;)n+=` `,t-=r;i=` `;}for(let e=0;e=t?du(e,n,t):null}var lu=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=ou(e);}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return r!=null&&r>=n.from&&r<=n.to?i&&r==e?{text:``,from:e}:(t<0?r-1&&(i+=a-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return xt$1(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},uu=new K$2;function du(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.fromr.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r};}return fu(r,e,n)}function fu(e,t,n){for(let r=e;r;r=r.next){let e=mu(r.node);if(e)return e(gu.create(t,n,r))}return 0}function pu(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function mu(e){let t=e.type.prop(uu);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(K$2.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>bu(e,true,1,void 0,n&&!pu(e)?t.from:void 0)}return e.parent==null?hu:null}function hu(){return 0}var gu=class e extends lu{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n;}get node(){return this.context.node}static create(t,n,r){return new e(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(_u(n,e))break;t=this.state.doc.lineAt(n.from);}return this.lineIndent(t.from)}continue(){return fu(this.context.next,this.base,this.pos)}};function _u(e,t){for(let n=t;n;n=n.parent)if(e==n)return true;return false}function vu(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),o=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=o)return null;let e=/^ */.exec(a.text.slice(n.to-a.from))[0].length;return {from:n.from,to:n.to+e}}e=i.to;}}function bu(e,t,n,r,i){let a=e.textAfter,o=a.match(/^\s*/)[0].length,s=i==e.pos+o,c=vu(e);return c?s?e.column(c.from):e.column(c.to):e.baseIndent+(s?0:e.unit*n)}var Cu=200;function wu(){return k$2.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent(`input.type`)&&!e.isUserEvent(`input.complete`))return e;let t=e.startState.languageDataAt(`indentOnInput`,e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+Cu)return e;let a=n.sliceString(i.from,r);if(!t.some(e=>e.test(a)))return e;let{state:o}=e,s=-1,c=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=cu(o,t.from);if(n==null)continue;let r=/^\s*/.exec(t.text)[0],i=su(o,n);r!=i&&c.push({from:t.from,to:t.from+r.length,insert:i});}return c.length?[e,{changes:c,sequential:true}]:e})}var Tu=E$1.define(),Eu=new K$2;function Ou(e,t,n){let r=Kl(e);if(r.lengthn)continue;if(a&&i.from=t&&r.to>n&&(a=r);}}return a}function ku(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function Au(e,t,n){for(let r of e.facet(Tu)){let i=r(e,t,n);if(i)return i}return Ou(e,t,n)}function ju(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}var Mu=D$2.define({map:ju}),Nu=D$2.define({map:ju});function Pu(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}var Fu=Ce$1.define({create(){return F$2.none},update(e,t){t.isUserEvent(`delete`)&&t.changes.iterChangedRanges((t,n)=>e=Iu(e,t,n)),e=e.map(t.changes);for(let n of t.effects)if(n.is(Mu)&&!Ru(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(Gu),i=r?F$2.replace({widget:new Yu(r(t.state,n.value))}):Ju;e=e.update({add:[i.range(n.value.from,n.value.to)]});}else n.is(Nu)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=Iu(e,t.selection.main.head)),e},provide:e=>W$2.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t);}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError(`Invalid JSON for fold state`);let t=[];for(let n=0;n{et&&(r=true);}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}function Lu(e,t,n){var r;let i=null;return (r=e.field(Fu,false))==null||r.between(t,n,(e,t)=>{(!i||i.from>e)&&(i={from:e,to:t});}),i}function Ru(e,t,n){let r=false;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=true);}),r}function zu(e,t){return e.field(Fu,false)?t:t.concat(D$2.appendConfig.of(Ku()))}var Bu=e=>{for(let t of Pu(e)){let n=Au(e.state,t.from,t.to);if(n)return e.dispatch({effects:zu(e.state,[Mu.of(n),Hu(e,n)])}),true}return false},Vu=e=>{if(!e.state.field(Fu,false))return false;let t=[];for(let n of Pu(e)){let r=Lu(e.state,n.from,n.to);r&&t.push(Nu.of(r),Hu(e,r,false));}return t.length&&e.dispatch({effects:t}),t.length>0};function Hu(e,t,n=true){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return W$2.announce.of(`${e.state.phrase(n?`Folded lines`:`Unfolded lines`)} ${r} ${e.state.phrase(`to`)} ${i}.`)}var Uu=[{key:`Ctrl-Shift-[`,mac:`Cmd-Alt-[`,run:Bu},{key:`Ctrl-Shift-]`,mac:`Cmd-Alt-]`,run:Vu},{key:`Ctrl-Alt-[`,run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(Fu,false);if(!t||!t.size)return false;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(Nu.of({from:e,to:t}));}),e.dispatch({effects:n}),true}}],Wu={placeholderDOM:null,preparePlaceholder:null,placeholderText:`…`},Gu=E$1.define({combine(e){return rt$2(e,Wu)}});function Ku(e){let t=[Fu,$u];return t}function qu(e,t){let{state:n}=e,r=n.facet(Gu),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=Lu(e.state,n.from,n.to);r&&e.dispatch({effects:Nu.of(r)}),t.preventDefault();};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement(`span`);return a.textContent=r.placeholderText,a.setAttribute(`aria-label`,n.phrase(`folded code`)),a.title=n.phrase(`unfold`),a.className=`cm-foldPlaceholder`,a.onclick=i,a}var Ju=F$2.replace({widget:new class extends en$1{toDOM(e){return qu(e,null)}}}),Yu=class extends en$1{constructor(e){super(),this.value=e;}eq(e){return this.value==e.value}toDOM(e){return qu(e,this.value)}},Xu={openText:`⌄`,closedText:`›`,markerDOM:null,domEventHandlers:{},foldingChanged:()=>false},Zu=class extends tc{constructor(e,t){super(),this.config=e,this.open=t;}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement(`span`);return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?`Fold line`:`Unfold line`),t}};function Qu(e={}){let t={...Xu,...e},n=new Zu(t,true),r=new Zu(t,false),i=z$2.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e);}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(tu)!=e.state.facet(tu)||e.startState.field(Fu,false)!=e.state.field(Fu,false)||Kl(e.startState)!=Kl(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view));}buildMarkers(e){let t=new ut$1;for(let i of e.viewportLineBlocks){let a=Lu(e.state,i.from,i.to)?r:Au(e.state,i.from,i.to)?n:null;a&&t.add(i.from,i.from,a);}return t.finish()}}),{domEventHandlers:a}=t;return [i,oc({class:`cm-foldGutter`,markers(e){return e.plugin(i)?.markers||A$2.empty},initialSpacer(){return new Zu(t,false)},domEventHandlers:{...a,click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return true;let r=Lu(e.state,t.from,t.to);if(r)return e.dispatch({effects:Nu.of(r)}),true;let i=Au(e.state,t.from,t.to);return i?(e.dispatch({effects:Mu.of(i)}),true):false}}}),Ku()]}var $u=W$2.baseTheme({".cm-foldPlaceholder":{backgroundColor:`#eee`,border:`1px solid #ddd`,color:`#888`,borderRadius:`.2em`,margin:`0 1px`,padding:`0 1px`,cursor:`pointer`},".cm-foldGutter span":{padding:`0 1px`,cursor:`pointer`}}),ed=class e{constructor(e,t){this.specs=e;let n;function r(e){let t=Dt$1.newName();return (n||=Object.create(null))[`.`+t]=e,t}let i=typeof t.all==`string`?t.all:t.all?r(t.all):void 0,a=t.scope;this.scope=a instanceof $$2?e=>e.prop(Vl)==a.data:a?e=>e==a:void 0,this.style=Sl(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new Dt$1(n):null,this.themeType=t.themeType;}static define(t,n){return new e(t,n||{})}},td=E$1.define(),nd=E$1.define({combine(e){return e.length?[e[0]]:null}});function rd(e){let t=e.facet(td);return t.length?t:e.facet(nd)}function id(e,t){let n=[od],r;return e instanceof ed&&(e.module&&n.push(W$2.styleModule.of(e.module)),r=e.themeType),t?.fallback?n.push(nd.of(e)):r?n.push(td.computeN([W$2.darkTheme],t=>t.facet(W$2.darkTheme)==(r==`dark`)?[e]:[])):n.push(td.of(e)),n}var ad=class{constructor(e){this.markCache=Object.create(null),this.tree=Kl(e.state),this.decorations=this.buildDeco(e,rd(e.state)),this.decoratedTo=e.viewport.to;}update(e){let t=Kl(e.state),n=rd(e.state),r=n!=rd(e.startState),{viewport:i}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to);}buildDeco(e,t){if(!t||!this.tree.length)return F$2.none;let n=new ut$1;for(let{from:r,to:i}of e.visibleRanges)wl(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=F$2.mark({class:r})));},r,i);return n.finish()}},od=Ee$1.high(z$2.fromClass(ad,{decorations:e=>e.decorations})),sd=ed.define([{tag:Q$2.meta,color:`#404740`},{tag:Q$2.link,textDecoration:`underline`},{tag:Q$2.heading,textDecoration:`underline`,fontWeight:`bold`},{tag:Q$2.emphasis,fontStyle:`italic`},{tag:Q$2.strong,fontWeight:`bold`},{tag:Q$2.strikethrough,textDecoration:`line-through`},{tag:Q$2.keyword,color:`#708`},{tag:[Q$2.atom,Q$2.bool,Q$2.url,Q$2.contentSeparator,Q$2.labelName],color:`#219`},{tag:[Q$2.literal,Q$2.inserted],color:`#164`},{tag:[Q$2.string,Q$2.deleted],color:`#a11`},{tag:[Q$2.regexp,Q$2.escape,Q$2.special(Q$2.string)],color:`#e40`},{tag:Q$2.definition(Q$2.variableName),color:`#00f`},{tag:Q$2.local(Q$2.variableName),color:`#30a`},{tag:[Q$2.typeName,Q$2.namespace],color:`#085`},{tag:Q$2.className,color:`#167`},{tag:[Q$2.special(Q$2.variableName),Q$2.macroName],color:`#256`},{tag:Q$2.definition(Q$2.propertyName),color:`#00c`},{tag:Q$2.comment,color:`#940`},{tag:Q$2.invalid,color:`#f00`}]),cd=1e4,ld=`()[]{}`,ud=new K$2;function dd(e,t,n){let r=e.prop(t<0?K$2.openedBy:K$2.closedBy);if(r)return r;if(e.name.length==1){let r=n.indexOf(e.name);if(r>-1&&r%2==+(t<0))return [n[r+t]]}return null}function fd(e){let t=e.type.prop(ud);return t?t(e.node):e}function pd(e,t,n,r={}){let i=r.maxScanDistance||cd,a=r.brackets||ld,o=Kl(e),s=o.resolveInner(t,n);for(let r=s;r;r=r.parent){let i=dd(r.type,n,a);if(i&&r.from0?t>=o.from&&to.from&&t<=o.to))return md(e,t,n,r,o,i,a)}}return hd(e,t,n,o,s.type,i,a)}function md(e,t,n,r,i,a,o){let s=r.parent,c={from:i.from,to:i.to},l=0,u=s?.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(l==0&&a.indexOf(u.type.name)>-1&&u.from0)return null;let l={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=a;){let a=u.value;n<0&&(e+=a.length);let s=t+e*n;for(let e=n>0?0:a.length-1,t=n>0?a.length:-1;e!=t;e+=n){let t=o.indexOf(a[e]);if(!(t<0||r.resolveInner(s+e,1).type!=i))if(t%2==0==n>0)d++;else if(d==1)return {start:l,end:{from:s+e,to:s+e+1},matched:t>>1==c>>1};else d--;}n>0&&(e+=a.length);}return u.done?{start:l,matched:false}:null}function gd(e,t,n,r=0,i=0){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));let a=i;for(let i=r;i=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length;}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,true}backUp(e){this.pos-=e;}column(){return this.lastColumnPosn?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(t!==false&&(this.pos+=e.length),true):null}else {let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&t!==false&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}};function vd(e){return {name:e.name||``,token:e.token,blankLine:e.blankLine||(()=>{}),startState:e.startState||(()=>true),copyState:e.copyState||yd,indent:e.indent||(()=>null),languageData:e.languageData||{},tokenTable:e.tokenTable||Dd,mergeTokens:e.mergeTokens!==false}}function yd(e){if(typeof e!=`object`)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r;}return t}var bd=new WeakMap,xd=class e extends $$2{constructor(e){let t=Hl(e.languageData),n=vd(e),r,i=new class extends Zc{createParse(e,t,n){return new Td(r,e,t,n)}};super(t,i,[],e.name),this.topNode=Ld(t,this),r=this,this.streamParser=n,this.stateAfter=new K$2({perNode:true}),this.tokenTable=e.tokenTable?new Nd(n.tokenTable):Pd;}static define(t){return new e(t)}getIndent(e){let t,{overrideIndentation:n}=e.options;n&&(t=bd.get(e.state),t!=null&&t1e4)return null;for(;i=r&&n+t.length<=i&&t.prop(e.stateAfter);if(a)return {state:e.streamParser.copyState(a),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let o=t.children[a],s=n+t.positions[a],c=o instanceof Y$2&&s=t.length)return t;!i&&n==0&&t.type==e.topNode&&(i=true);for(let a=t.children.length-1;a>=0;a--){let o=t.positions[a],s=t.children[a],c;if(on&&Sd(e,i.tree,0-i.offset,n,a),s;if(o&&o.pos<=r&&(s=Cd(e,i.tree,n+i.offset,o.pos+i.offset,false)))return {state:o.state,tree:s}}return {state:e.streamParser.startState(i?ou(i):4),tree:Y$2.empty}}var Td=class{constructor(e,t,n,r){this.lang=e,this.input=t,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let i=Yl.get(),a=r[0].from,{state:o,tree:s}=wd(e,n,a,this.to,i?.state);this.state=o,this.parsedPos=this.chunkStart=a+s.length;for(let e=0;ee.from<=i.viewport.from&&e.to>=i.viewport.from)&&(this.state=this.lang.streamParser.startState(ou(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex();}advance(){let e=Yl.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(t,this.chunkStart+512);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e;}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==` +`&&(t=``);else {let e=t.indexOf(` +`);e>-1&&(t=t.slice(0,e));}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let e=this.rangeIndex;;){let r=this.ranges[e].to;if(r>=n||(t=t.slice(0,r-(n-t.length)),e++,e==this.ranges.length))break;let i=this.ranges[e].from,a=this.lineAfter(i);t+=a,n=i+a.length;}return {line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;let a=this.ranges[++this.rangeIndex].from;t+=a-r;}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(t,r,1),t+=r;let e=this.chunk.length;r=this.skipGapsTo(n,r,-1),n+=r,i+=this.chunk.length-e;}let a=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&i==4&&a>=0&&this.chunk[a]==e&&this.chunk[a+2]==t?this.chunk[a+2]=n:this.chunk.push(e,t,n,i),r}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,a=new _d(t,e?e.state.tabSize:4,e?ou(e.state):2);if(a.eol())i.blankLine(this.state,a.indentUnit);else for(;!a.eol();){let e=Ed(i.token,a,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+a.start,this.parsedPos+a.pos,r)),a.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw Error(`Stream parser failed to advance stream.`)}var Dd=Object.create(null),Od=[q$2.none],kd=new Oc(Od),Ad=[],jd=Object.create(null),Md=Object.create(null);for(let[e,t]of [[`variable`,`variableName`],[`variable-2`,`variableName.special`],[`string-2`,`string.special`],[`def`,`variableName.definition`],[`tag`,`tagName`],[`attribute`,`attributeName`],[`type`,`typeName`],[`builtin`,`variableName.standard`],[`qualifier`,`modifier`],[`error`,`invalid`],[`header`,`heading`],[`property`,`propertyName`]])Md[e]=Id(Dd,t);var Nd=class{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Md);}resolve(e){return e?this.table[e]||(this.table[e]=Id(this.extra,e)):0}},Pd=new Nd(Dd);function Fd(e,t){Ad.indexOf(e)>-1||(Ad.push(e),console.warn(t));}function Id(e,t){let n=[];for(let r of t.split(` `)){let t=[];for(let n of r.split(`.`)){let r=e[n]||Q$2[n];r?typeof r==`function`?t.length?t=t.map(r):Fd(n,`Modifier ${n} used at start of tag`):t.length?Fd(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:Fd(n,`Unknown highlighting tag ${n}`);}for(let e of t)n.push(e);}if(!n.length)return 0;let r=t.replace(/ /g,`_`),i=r+` `+n.map(e=>e.id),a=jd[i];if(a)return a.id;let o=jd[i]=q$2.define({id:Od.length,name:r,props:[yl({[r]:n})]});return Od.push(o),o.id}function Ld(e,t){let n=q$2.define({id:Od.length,name:`Document`,props:[Vl.add(()=>e),uu.add(()=>e=>t.getIndent(e))],top:true});return Od.push(n),n}I$2.RTL,I$2.LTR; + +var w=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=false;}tokenBefore(t){let n=Kl(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(se(e,false));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=true));}};function T(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function re(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=true;for(let e=1;etypeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:re(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}var oe=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r;}};function E(e){return e.selection.main.from}function se(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return !r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var D$1=Ve$2.define();function ce(e,t,n,r){let{main:i}=e.selection,a=n-i.from,o=r-i.from;return {...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+a,s.from+o)!=e.sliceDoc(n,r))return {range:s};let c=e.toText(t);return {changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:c},range:T$1.cursor(s.from+a+c.length)}}),scrollIntoView:true,userEvent:`input.complete`}}var O$1=new WeakMap;function le(e){if(!Array.isArray(e))return e;let t=O$1.get(e);return t||O$1.set(e,t=ie(e)),t}var k$1=D$2.define(),A$1=D$2.define(),ue=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&l<=57||l>=97&&l<=122?2:+(l>=65&&l<=90):(b=ie$1(l))==b.toLowerCase()?b==b.toUpperCase()?0:2:1;(!r||x==1&&g||v==0&&x!=0)&&(t[d]==l||n[d]==l&&(f=true)?a[d++]=r:a.length&&(_=false)),v=x,r+=ae(l);}return d==c&&a[0]==0&&_?this.result(-100+(f?-200:0),a,e):p==c&&m==0?this.ret(-200-e.length+(h==e.length?0:-100),[0,h]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):p==c?this.ret(-900-e.length,[m,h]):d==c?this.result(-100+(f?-200:0)+-700+(_?0:-1100),a,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?ae(re$1(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t);}return this.ret(e-n.length,r)}},de=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase();}match(e){if(e.lengthfalse,activateOnTypingDelay:100,selectOnOpen:true,override:null,closeOnBlur:true,maxRenderedOptions:100,defaultKeymap:true,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:false,icons:true,addToOptions:[],positionInfo:fe,filterStrict:false,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>M$1(e(n),t(n)),optionClass:(e,t)=>n=>M$1(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function M$1(e,t){return e?t?e+` `+t:e:t}function fe(e,t,n,r,i,a){let o=e.textDirection==I$2.RTL,s=o,c=false,u=`top`,d,f,p=t.left-i.left,m=i.right-t.right,h=r.right-r.left,g=r.bottom-r.top;if(s&&p=g||e>t.top?d=n.bottom-t.top:(u=`bottom`,d=t.bottom-n.top);}let _=(t.bottom-t.top)/a.offsetHeight,v=(t.right-t.left)/a.offsetWidth;return {style:`${u}: ${d/_}px; max-width: ${f/v}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}function pe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;eo&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n;}return oe.position-t.position).map(e=>e.render)}function N$1(e,t,n){if(e<=n)return {from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return {from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return {from:e-(r+1)*n,to:e-r*n}}var me=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(j$1);this.optionContent=pe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=N$1(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]{let n=e.state.field(this.stateField,false);n&&n.tooltip&&e.state.facet(j$1).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:A$1.of(null)});}),this.showOptions(i,r.id);}mount(){this.updateSel();}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq);});}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;(!n.open||n.open.options!=r)&&(this.range=N$1(r.length,i,e.state.facet(j$1).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a);}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t;}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq);}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected=this.range.to)&&(this.range=N$1(t.options.length,t.selected,this.view.state.facet(j$1).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,false)==e&&this.addInfoPane(t,r);}).catch(e=>R$2(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id));}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else {let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null;}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq);}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&ge(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight};}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom{e.target==r&&e.preventDefault();});let i=null;for(let a=n.from;an.from||n.from==0))if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else {let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e;}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t);}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.tonew me(n,e,t)}function ge(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i);}function P$1(e){return (e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function _e(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t);}},o=t.facet(j$1);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===false)for(let t of r.result.options)a(new oe(t,r.source,e?e(t):[],1e9-n.length));else {let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new de(n):new ue(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new oe(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9);}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.namet.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):P$1(e.completion)>P$1(c)&&(s[s.length-1]=e),c=e.completion;}return s}var ve=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a;}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,F$1(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=_e(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(j$1).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:Te,above:a.aboveCursor},i?i.timestamp:Date.now(),c,false)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,true)}},ye=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n;}static start(){return new e(Ce,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(j$1),i=(r.override||n.languageDataAt(`autocomplete`,E(n)).map(le)).map(e=>(this.active.find(t=>t.source==e)||new L$1(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(z$1));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!be(i,this.active)||o?a=ve.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new L$1(e.source,0):e));for(let e of t.effects)e.is(B$1)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?xe:Se}};function be(e,t){if(e==t)return true;for(let n=0,r=0;;){for(;n-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var Ce=[];function I$1(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(D$1);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var L$1=class e{constructor(e,t,n=false){this.source=e,this.state=t,this.explicit=n;}hasResult(){return false}get isPending(){return this.state==1}update(t,n){let r=I$1(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(k$1))i=new e(i.source,1,n.value);else if(n.is(A$1))i=new e(i.source,0);else if(n.is(z$1))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(E(e.state))}},R$1=class e extends L$1{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a;}hasResult(){return true}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=E(t.state);if(o>a||!r||n&2&&(E(t.startState)==this.from||oe.map(t))}}),B$1=D$2.define(),V$1=Ce$1.define({create(){return ye.start()},update(e,t){return e.update(t)},provide:e=>[Rs.from(e,e=>e.tooltip),W$2.contentAttributes.from(e,e=>e.attrs)]});function H$1(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(V$1).active.find(e=>e.source==t.source);return r instanceof R$1?(typeof n==`string`?e.dispatch({...ce(e.state,n,r.from,r.to),annotations:D$1.of(t.completion)}):n(e,t.completion,r.from,r.to),true):false}var Te=he(V$1,H$1);function U$1(e,t=`option`){return n=>{let r=n.state.field(V$1,false);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:B$1.of(s)}),true}}var W$1=e=>{let t=e.state.field(V$1,false);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(V$1,false)?(e.dispatch({effects:k$1.of(true)}),true):false,Ee=e=>{let t=e.state.field(V$1,false);return !t||!t.active.some(e=>e.state!=0)?false:(e.dispatch({effects:A$1.of(null)}),true)},De=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0;}},Oe=50,ke=1e3;z$2.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=false,this.composing=0;for(let t of e.state.field(V$1).active)t.isPending&&this.startQuery(t);}update(e){let t=e.state.field(V$1),n=e.state.facet(j$1);if(!e.selectionSet&&!e.docChanged&&e.startState.field(V$1)==t)return;let r=e.transactions.some(e=>{let t=I$1(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;tOe&&Date.now()-n.time>ke){for(let e of n.context.abortListeners)try{e();}catch(e){R$2(this.view.state,e);}n.context.abortListeners=null,this.running.splice(t--,1);}else n.updates.push(...e.transactions);}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(k$1)))&&(this.pendingStart=true);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3);}startUpdate(){this.debounceUpdate=-1,this.pendingStart=false;let{state:e}=this.view,t=e.field(V$1);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(j$1).updateSyncTime));}startQuery(e){let{state:t}=this.view,n=new w(t,E(t),e.explicit,this.view),r=new De(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept());},e=>{this.view.dispatch({effects:A$1.of(null)}),R$2(this.view.state,e);});}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(j$1).updateSyncTime));}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(j$1),n=this.view.state.field(V$1);for(let r=0;re.source==i.active.source);if(a&&a.isPending)if(i.done==null){let n=new L$1(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n);}else this.startQuery(a);}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:z$1.of(e)});}},{eventHandlers:{blur(e){let t=this.view.state.field(V$1,false);if(t&&t.tooltip&&this.view.state.facet(j$1).closeOnBlur){let n=t.open&&qs(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:A$1.of(null)}),10);}},compositionstart(){this.composing=1;},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:k$1.of(false)}),20),this.composing=0;}}});var je=typeof navigator==`object`&&/Win/.test(navigator.platform);Ee$1.highest(W$2.domEventHandlers({keydown(e,t){let n=t.state.field(V$1,false);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(je&&e.altKey)||e.metaKey)return false;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&H$1(t,r),false}}));W$2.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}});var Le=F$2.widget({widget:new class extends en$1{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return false}}}),Re$1=F$2.mark({class:`cm-snippetField`}),K$1=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=F$2.set(e.map(e=>(e.from==e.to?Le:Re$1).range(e.from,e.to)),true);}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r);}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},q$1=D$2.define({map(e,t){return e&&e.map(t)}}),ze$1=D$2.define(),J$1=Ce$1.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(q$1))return n.value;if(n.is(ze$1)&&e)return new K$1(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>W$2.decorations.from(e,e=>e?e.deco:F$2.none)});function Y$1(e,t){return T$1.create(e.filter(e=>e.field==t).map(e=>T$1.range(e.from,e.to)))}function Ve$1(e){return ({state:t,dispatch:n})=>{let r=t.field(J$1,false);if(!r||e<0&&r.active==0)return false;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:Y$1(r.ranges,i),effects:q$1.of(a?null:new K$1(r.ranges,i)),scrollIntoView:true})),true}}var He$1=[{key:`Tab`,run:Ve$1(1),shift:Ve$1(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(J$1,false)?(t(e.update({effects:q$1.of(null)})),true):false}],Ue$1=E$1.define({combine(e){return e.length?e[0]:He$1}});Ee$1.highest(No.compute([Ue$1],e=>e.facet(Ue$1)));W$2.domEventHandlers({mousedown(e,t){let n=t.state.field(J$1,false),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return false;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return !i||i.field==n.active?false:(t.dispatch({selection:Y$1(n.ranges,i.field),effects:q$1.of(n.ranges.some(e=>e.field>i.field)?new K$1(n.ranges,i.field):null),scrollIntoView:true}),true)}});var X$1={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},Z$1=D$2.define({map(e,t){return t.mapPos(e,-1,C.TrackAfter)??void 0}}),Q$1=new class extends it$2{};Q$1.startSide=1,Q$1.endSide=-1;var qe$1=Ce$1.define({create(){return A$2.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to});}for(let n of t.effects)n.is(Z$1)&&(e=e.update({add:[Q$1.range(n.value,n.value+1)]}));return e}});function Je$1(){return [$e$1,qe$1]}var Ye$1=`()[]{}<>«»»«[]{}`;function Xe$1(e){for(let t=0;t<16;t+=2)if(Ye$1.charCodeAt(t)==e)return Ye$1.charAt(t+1);return ie$1(e<128?e:e+1)}function Ze$1(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||X$1}var Qe$1=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),$e$1=W$2.inputHandler.of((e,t,n,r)=>{if((Qe$1?e.composing:e.compositionStarted)||e.state.readOnly)return false;let i=e.state.selection.main;if(r.length>2||r.length==2&&ae(re$1(r,0))==1||t!=i.from||n!=i.to)return false;let a=tt$1(e.state,r);return a?(e.dispatch(a),true):false}),et$1=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=Ze$1(e,e.selection.main.head).brackets||X$1.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=rt$1(e.doc,t.head);for(let i of n)if(i==r&&$$1(e.doc,t.head)==Xe$1(re$1(i,0)))return {changes:{from:t.head-i.length,to:t.head+i.length},range:T$1.cursor(t.head-i.length)}}return {range:r=t}});return r||t(e.update(i,{scrollIntoView:true,userEvent:`delete.backward`})),!r}}];function tt$1(e,t){let n=Ze$1(e,e.selection.main.head),r=n.brackets||X$1.brackets;for(let i of r){let a=Xe$1(re$1(i,0));if(t==i)return a==i?ot$1(e,i,r.indexOf(i+i+i)>-1,n):it$1(e,i,a,n.before||X$1.before);if(t==a&&nt$1(e,e.selection.main.from))return at$1(e,i,a)}return null}function nt$1(e,t){let n=false;return e.field(qe$1).between(0,e.doc.length,e=>{e==t&&(n=true);}),n}function $$1(e,t){let n=e.sliceString(t,t+2);return n.slice(0,ae(re$1(n,0)))}function rt$1(e,t){let n=e.sliceString(t-2,t);return ae(re$1(n,0))==n.length?n:n.slice(1)}function it$1(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return {changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Z$1.of(a.to+t.length),range:T$1.range(a.anchor+t.length,a.head+t.length)};let o=$$1(e.doc,a.head);return !o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:Z$1.of(a.head+t.length),range:T$1.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:true,userEvent:`input.type`})}function at$1(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&$$1(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:T$1.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:true,userEvent:`input.type`})}function ot$1(e,t,n,r){let i=r.stringPrefixes||X$1.stringPrefixes,a=null,o=e.changeByRange(r=>{if(!r.empty)return {changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:Z$1.of(r.to+t.length),range:T$1.range(r.anchor+t.length,r.head+t.length)};let o=r.head,s=$$1(e.doc,o),c;if(s==t){if(st$1(e,o))return {changes:{insert:t+t,from:o},effects:Z$1.of(o+t.length),range:T$1.cursor(o+t.length)};if(nt$1(e,o)){let r=n&&e.sliceDoc(o,o+t.length*3)==t+t+t?t+t+t:t;return {changes:{from:o,to:o+r.length,insert:r},range:T$1.cursor(o+r.length)}}}else if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&(c=lt$1(e,o-2*t.length,i))>-1&&st$1(e,c))return {changes:{insert:t+t+t+t,from:o},effects:Z$1.of(o+t.length),range:T$1.cursor(o+t.length)};else if(e.charCategorizer(o)(s)!=Qe$2.Word&<$1(e,o,i)>-1&&!ct$1(e,o,t,i))return {changes:{insert:t+t,from:o},effects:Z$1.of(o+t.length),range:T$1.cursor(o+t.length)};return {range:a=r}});return a?null:e.update(o,{scrollIntoView:true,userEvent:`input.type`})}function st$1(t,n){let r=Kl(t).resolveInner(n+1);return r.parent&&r.from==n}function ct$1(t,n,r,i){let a=Kl(t).resolveInner(n,-1),o=i.reduce((e,t)=>Math.max(e,t.length),0);for(let e=0;e<5;e++){let e=t.sliceDoc(a.from,Math.min(a.to,a.from+r.length+o)),s=e.indexOf(r);if(!s||s>-1&&i.indexOf(e.slice(0,s))>-1){let e=a.firstChild;for(;e&&e.from==a.from&&e.to-e.from>r.length+s;){if(t.sliceDoc(e.to-r.length,e.to)==r)return false;e=e.firstChild;}return true}let c=a.to==n&&a.parent;if(!c)break;a=c;}return false}function lt$1(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Qe$2.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=Qe$2.Word)return n}return -1}var dt$1=[{key:`Ctrl-Space`,run:G$1},{mac:"Alt-`",run:G$1},{mac:`Alt-i`,run:G$1},{key:`Escape`,run:Ee},{key:`ArrowDown`,run:U$1(true)},{key:`ArrowUp`,run:U$1(false)},{key:`PageDown`,run:U$1(true,`page`)},{key:`PageUp`,run:U$1(false,`page`)},{key:`Enter`,run:W$1}];Ee$1.highest(No.computeN([j$1],e=>e.facet(j$1).defaultKeymap?[dt$1]:[])); + +var Re=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Ue(e.state,n.from);return r.line?Be(e):r.block?He(e):false};function ze(e,t){return ({state:n,dispatch:r})=>{if(n.readOnly)return false;let i=e(t,n);return i?(r(n.update(i)),true):false}}var Be=ze(qe,0),Ve=ze(Ke,0),He=ze((e,t)=>Ke(e,t,Ge(t)),0);function Ue(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var D=50;function We(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-D,r),o=e.sliceDoc(i,i+D),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return {open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=2*D?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+D),d=e.sliceDoc(i-D,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function Ge(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to});}return t}function Ke(e,t,n=t.selection.ranges){let r=n.map(e=>Ue(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>We(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return {changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;ti&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;ee.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return {changes:n,selection:t.selection.map(n,1)}}else if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a});}return {changes:e}}return null}var Je=Ve$2.define(),Ye=Ve$2.define(),Xe=E$1.define(),Ze=E$1.define({combine(e){return rt$2(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),Qe=Ce$1.define({create(){return j.empty},update(e,t){let n=t.state.facet(Ze),r=t.annotation(Je);if(r){let i=O.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?k(o,o.length,n.minDepth,i):lt(o,t.startState.selection),new j(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(Ye);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(O$2.addToHistory)===false)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=O.fromTransaction(t),o=t.annotation(O$2.time),s=t.annotation(O$2.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return {done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new j(e.done.map(O.fromJSON),e.undone.map(O.fromJSON))}});function $e(e={}){return [Qe,Ze.of(e),W$2.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?tt:e.inputType==`historyRedo`?nt:null;return n?(e.preventDefault(),n(t)):false}})]}function et(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return false;let i=n.field(Qe,false);if(!i)return false;let a=i.pop(e,n,t);return a?(r(a),true):false}}var tt=et(0,false),nt=et(1,false),rt=et(0,true),it=et(1,true),O=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i;}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return {changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&ce$1.fromJSON(t.changes),[],t.mapped&&se$1.fromJSON(t.mapped),t.startSelection&&T$1.fromJSON(t.startSelection),t.selectionsAfter.map(T$1.fromJSON))}static fromTransaction(t,n){let r=A;for(let e of t.startState.facet(Xe)){let n=e(t);n.length&&(r=r.concat(n));}return !r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,A)}static selection(t){return new e(void 0,A,void 0,void 0,t)}};function k(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function at(e,t){let n=[],r=false;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e=t&&i<=o&&(r=true);}}),r}function ot(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function st(e,t){return e.length?t.length?e.concat(t):e:t}var A=[],ct=200;function lt(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-ct));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),k(e,e.length-1,1e9,n.setSelAfter(r)))}else return [O.selection([t])]}function ut(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function dt(e,t){if(!e.length)return e;let n=e.length,r=A;for(;n;){let i=ft(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}else t=i.mapped,n--,r=i.selectionsAfter;}return r.length?[O.selection(r)]:A}function ft(e,t,n){let r=st(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):A,n);if(!e.changes)return O.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,true),o=e.mapped?e.mapped.composeDesc(a):a;return new O(i,D$2.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var pt=/^(input\.type|delete)($|\.)/,j=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r;}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||pt.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):F(n,t))}function I(e){return e.textDirectionAt(e.state.selection.main.head)==I$2.LTR}var gt=e=>ht(e,!I(e)),_t=e=>ht(e,I(e));function vt(e,t){return P(e,n=>n.empty?e.moveByGroup(n,t):F(n,t))}var yt=e=>vt(e,!I(e)),bt=e=>vt(e,I(e));function xt(e,t,n){if(t.type.prop(n))return true;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function L(e,t,n){let r=Kl(e).resolveInner(t.head),i=n?K$2.closedBy:K$2.openedBy;for(let a=t.head;;){let t=n?r.childAfter(a):r.childBefore(a);if(!t)break;xt(e,t,i)?r=t:a=n?t.to:t.from;}let a=r.type.prop(i),o,s;return s=a&&(o=n?pd(e,r.from,1):pd(e,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,T$1.cursor(s,n?-1:1)}var St=e=>P(e,t=>L(e.state,t,!I(e))),Ct=e=>P(e,t=>L(e.state,t,I(e)));function wt(e,t){return P(e,n=>{if(!n.empty)return F(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var Tt=e=>wt(e,false),Et=e=>wt(e,true);function Dt(e){let t=e.scrollDOM.clientHeightr.empty?e.moveVertically(r,t,n.height):F(r,t));if(i.eq(r.selection))return false;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottomOt(e,false),At=e=>Ot(e,true);function R(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,false)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=T$1.cursor(r.from+n));}return i}var jt=e=>P(e,t=>R(e,t,true)),Mt=e=>P(e,t=>R(e,t,false)),Nt=e=>P(e,t=>R(e,t,!I(e))),Pt=e=>P(e,t=>R(e,t,I(e))),Ft=e=>P(e,t=>T$1.cursor(e.lineBlockAt(t.head).from,1)),It=e=>P(e,t=>T$1.cursor(e.lineBlockAt(t.head).to,-1));function Lt(e,t,n){let r=false,i=M(e.selection,t=>{let i=pd(e,t.head,-1)||pd(e,t.head,1)||t.head>0&&pd(e,t.head-1,1)||t.headLt(e,t);function z(e,t){let n=M(e.state.selection,e=>{let n=t(e);return T$1.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return n.eq(e.state.selection)?false:(e.dispatch(N(e.state,n)),true)}function zt(e,t){return z(e,n=>e.moveByChar(n,t))}var Bt=e=>zt(e,!I(e)),Vt=e=>zt(e,I(e));function Ht(e,t){return z(e,n=>e.moveByGroup(n,t))}var Ut=e=>Ht(e,!I(e)),Wt=e=>Ht(e,I(e)),Gt=e=>z(e,t=>L(e.state,t,!I(e))),Kt=e=>z(e,t=>L(e.state,t,I(e)));function qt(e,t){return z(e,n=>e.moveVertically(n,t))}var Jt=e=>qt(e,false),Yt=e=>qt(e,true);function Xt(e,t){return z(e,n=>e.moveVertically(n,t,Dt(e).height))}var Zt=e=>Xt(e,false),Qt=e=>Xt(e,true),$t=e=>z(e,t=>R(e,t,true)),en=e=>z(e,t=>R(e,t,false)),tn=e=>z(e,t=>R(e,t,!I(e))),nn=e=>z(e,t=>R(e,t,I(e))),rn=e=>z(e,t=>T$1.cursor(e.lineBlockAt(t.head).from)),an=e=>z(e,t=>T$1.cursor(e.lineBlockAt(t.head).to)),on=({state:e,dispatch:t})=>(t(N(e,{anchor:0})),true),sn=({state:e,dispatch:t})=>(t(N(e,{anchor:e.doc.length})),true),cn=({state:e,dispatch:t})=>(t(N(e,{anchor:e.selection.main.anchor,head:0})),true),ln=({state:e,dispatch:t})=>(t(N(e,{anchor:e.selection.main.anchor,head:e.doc.length})),true),un=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),true),dn=({state:e,dispatch:t})=>{let n=H(e).map(({from:t,to:n})=>T$1.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:T$1.create(n),userEvent:`select`})),true},fn=({state:e,dispatch:t})=>{let n=M(e.selection,t=>{let n=Kl(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e);}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return T$1.range(n.to,n.from)}return t});return n.eq(e.selection)?false:(t(N(e,n)),true)};function pn(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.heada.to){i.some(e=>e.head==r.head)||i.push(r);break}else if(r.head==n.head)break;else n=r;}}return i.length==r.ranges.length?false:(e.dispatch(N(n,T$1.create(i,i.length-1))),true)}var mn=e=>pn(e,false),hn=e=>pn(e,true),gn=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=T$1.create([n.main]):n.main.empty||(r=T$1.create([T$1.cursor(n.main.head)])),r?(t(N(e,r)),true):false};function B(e,t){if(e.state.readOnly)return false;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);oi&&(n=`delete.forward`,o=V(e,o,true)),i=Math.min(i,o),a=Math.max(a,o);}else i=V(e,i,false),a=V(e,a,true);return i==a?{range:r}:{changes:{from:i,to:a},range:T$1.cursor(i,it(e)))r.between(t,t,(e,r)=>{et&&(t=n?r:e);});return t}var _n=(e,t,n)=>B(e,r=>{let i=r.from,{state:a}=e,o=a.doc.lineAt(i),s,c;if(n&&!t&&i>o.from&&i_n(e,false,true),yn=e=>_n(e,true,false),bn=(e,t)=>B(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),o=i.charCategorizer(r);for(let e=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=S(a.text,r-a.from,t)+a.from,c=a.text.slice(Math.min(r,s)-a.from,Math.max(r,s)-a.from),l=o(c);if(e!=null&&l!=e)break;(c!=` `||r!=n.head)&&(e=l),r=s;}return r}),xn=e=>bn(e,false),Sn=e=>bn(e,true),Cn=e=>B(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headB(e,t=>{let n=e.moveToLineBoundary(t,false).head;return t.head>n?n:Math.max(0,t.head-1)}),Tn=e=>B(e,t=>{let n=e.moveToLineBoundary(t,true).head;return t.head{if(e.readOnly)return false;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:f.of([``,``])},range:T$1.cursor(e.from)}));return t(e.update(n,{scrollIntoView:true,userEvent:`input`})),true},Dn=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return {range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:S(r.text,n-r.from,false)+r.from,a=n==r.to?n+1:S(r.text,n-r.from,true)+r.from;return {changes:{from:i,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(i,n))},range:T$1.cursor(a)}});return n.changes.empty?false:(t(e.update(n,{scrollIntoView:true,userEvent:`move.character`})),true)};function H(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r);}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1;}return t}function On(e,t,n){if(e.readOnly)return false;let r=[],i=[];for(let t of H(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(T$1.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)));}else {r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(T$1.range(e.anchor-o,e.head-o));}}return r.length?(t(e.update({changes:r,scrollIntoView:true,selection:T$1.create(i,e.selection.mainIndex),userEvent:`move.line`})),true):false}var kn=({state:e,dispatch:t})=>On(e,t,false),An=({state:e,dispatch:t})=>On(e,t,true);function jn(e,t,n){if(e.readOnly)return false;let r=[];for(let t of H(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:true,userEvent:`input.copyline`})),true}var Mn=({state:e,dispatch:t})=>jn(e,t,false),Nn=({state:e,dispatch:t})=>jn(e,t,true),Pn=e=>{if(e.state.readOnly)return false;let{state:t}=e,n=t.changes(H(t).map(({from:e,to:n})=>(e>0?e--:n{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2);}return e.moveVertically(t,true,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:true,userEvent:`delete.line`}),true};function Fn(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return {from:t,to:t};let n=Kl(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(K$2.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}var In=Rn(false),Ln=Rn(true);function Rn(e){return ({state:t,dispatch:n})=>{if(t.readOnly)return false;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&Fn(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new lu(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=cu(s,r);for(c??=xt$1(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);ia.from&&r{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1;}let a=e.changes(i);return {changes:i,range:T$1.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var Bn=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=Object.create(null),r=new lu(e,{overrideIndentation:e=>n[e]??-1}),i=zn(e,(t,i,a)=>{let o=cu(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=su(e,o);(s!=c||a.frome.readOnly?false:(t(e.update(zn(e,(t,n)=>{n.push({from:t.from,insert:e.facet(au)});}),{userEvent:`input.indent`})),true),Hn=({state:e,dispatch:t})=>e.readOnly?false:(t(e.update(zn(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=xt$1(r,e.tabSize),a=0,o=su(e,Math.max(0,i-ou(e)));for(;a(e.setTabFocusMode(),true),Wn=[{key:`Ctrl-b`,run:gt,shift:Bt,preventDefault:true},{key:`Ctrl-f`,run:_t,shift:Vt},{key:`Ctrl-p`,run:Tt,shift:Jt},{key:`Ctrl-n`,run:Et,shift:Yt},{key:`Ctrl-a`,run:Ft,shift:rn},{key:`Ctrl-e`,run:It,shift:an},{key:`Ctrl-d`,run:yn},{key:`Ctrl-h`,run:vn},{key:`Ctrl-k`,run:Cn},{key:`Ctrl-Alt-h`,run:xn},{key:`Ctrl-o`,run:En},{key:`Ctrl-t`,run:Dn},{key:`Ctrl-v`,run:At}],Gn=[{key:`ArrowLeft`,run:gt,shift:Bt,preventDefault:true},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:yt,shift:Ut,preventDefault:true},{mac:`Cmd-ArrowLeft`,run:Nt,shift:tn,preventDefault:true},{key:`ArrowRight`,run:_t,shift:Vt,preventDefault:true},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:bt,shift:Wt,preventDefault:true},{mac:`Cmd-ArrowRight`,run:Pt,shift:nn,preventDefault:true},{key:`ArrowUp`,run:Tt,shift:Jt,preventDefault:true},{mac:`Cmd-ArrowUp`,run:on,shift:cn},{mac:`Ctrl-ArrowUp`,run:kt,shift:Zt},{key:`ArrowDown`,run:Et,shift:Yt,preventDefault:true},{mac:`Cmd-ArrowDown`,run:sn,shift:ln},{mac:`Ctrl-ArrowDown`,run:At,shift:Qt},{key:`PageUp`,run:kt,shift:Zt},{key:`PageDown`,run:At,shift:Qt},{key:`Home`,run:Mt,shift:en,preventDefault:true},{key:`Mod-Home`,run:on,shift:cn},{key:`End`,run:jt,shift:$t,preventDefault:true},{key:`Mod-End`,run:sn,shift:ln},{key:`Enter`,run:In,shift:In},{key:`Mod-a`,run:un},{key:`Backspace`,run:vn,shift:vn,preventDefault:true},{key:`Delete`,run:yn,preventDefault:true},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:xn,preventDefault:true},{key:`Mod-Delete`,mac:`Alt-Delete`,run:Sn,preventDefault:true},{mac:`Mod-Backspace`,run:wn,preventDefault:true},{mac:`Mod-Delete`,run:Tn,preventDefault:true}].concat(Wn.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Kn=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:St,shift:Gt},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:Ct,shift:Kt},{key:`Alt-ArrowUp`,run:kn},{key:`Shift-Alt-ArrowUp`,run:Mn},{key:`Alt-ArrowDown`,run:An},{key:`Shift-Alt-ArrowDown`,run:Nn},{key:`Mod-Alt-ArrowUp`,run:mn},{key:`Mod-Alt-ArrowDown`,run:hn},{key:`Escape`,run:gn},{key:`Mod-Enter`,run:Ln},{key:`Alt-l`,mac:`Ctrl-l`,run:dn},{key:`Mod-i`,run:fn,preventDefault:true},{key:`Mod-[`,run:Hn},{key:`Mod-]`,run:Vn},{key:`Mod-Alt-\\`,run:Bn},{key:`Shift-Mod-k`,run:Pn},{key:`Shift-Mod-\\`,run:Rt},{key:`Mod-/`,run:Re},{key:`Alt-A`,run:Ve},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:Un}].concat(Gn),Jn=`#2E3235`,U=`#DDDDDD`,Yn=`#B9D2FF`,Xn=`#b0b0b0`,Zn=`#e0e0e0`,Qn=`#808080`,$n=`#000000`,er=`#A54543`,tr=`#fc6d24`,W=`#fda331`,nr=`#8abeb7`,rr=`#b5bd68`,G=`#6fb3d2`,K=`#cc99cc`,ir=`#6987AF`,ar=tr,or=`#292d30`,sr=`#B9D2FF30`,cr=Jn,lr=U,ur=`#202325`,dr=U;[W$2.theme({"&":{color:U,backgroundColor:cr},".cm-content":{caretColor:dr},".cm-cursor, .cm-dropCursor":{borderLeftColor:dr},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:ur},".cm-panels":{backgroundColor:or,color:Xn},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:Yn,outline:`1px solid ${Xn}`,color:$n},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Zn,color:$n},".cm-activeLine":{backgroundColor:sr},".cm-selectionMatch":{backgroundColor:sr},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${Xn}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:Yn,color:$n},".cm-gutters":{borderRight:`1px solid #ffffff10`,color:Qn,backgroundColor:or},".cm-activeLineGutter":{backgroundColor:sr},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:Yn},".cm-tooltip":{border:`none`,backgroundColor:lr},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:lr,borderBottomColor:lr},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:sr,color:Xn}}},{dark:true}),id(ed.define([{tag:Q$2.keyword,color:W},{tag:[Q$2.name,Q$2.deleted,Q$2.character,Q$2.propertyName,Q$2.macroName],color:rr},{tag:[Q$2.variableName],color:G},{tag:[Q$2.function(Q$2.variableName)],color:W},{tag:[Q$2.labelName],color:tr},{tag:[Q$2.color,Q$2.constant(Q$2.name),Q$2.standard(Q$2.name)],color:W},{tag:[Q$2.definition(Q$2.name),Q$2.separator],color:K},{tag:[Q$2.brace],color:K},{tag:[Q$2.annotation],color:ar},{tag:[Q$2.number,Q$2.changed,Q$2.annotation,Q$2.modifier,Q$2.self,Q$2.namespace],color:W},{tag:[Q$2.typeName,Q$2.className],color:G},{tag:[Q$2.operator,Q$2.operatorKeyword],color:K},{tag:[Q$2.tagName],color:W},{tag:[Q$2.squareBracket],color:K},{tag:[Q$2.angleBracket],color:K},{tag:[Q$2.attributeName],color:G},{tag:[Q$2.regexp],color:W},{tag:[Q$2.quote],color:U},{tag:[Q$2.string],color:rr},{tag:Q$2.link,color:ir,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[Q$2.url,Q$2.escape,Q$2.special(Q$2.string)],color:nr},{tag:[Q$2.meta],color:er},{tag:[Q$2.comment],color:Qn,fontStyle:`italic`},{tag:Q$2.monospace,color:U},{tag:Q$2.strong,fontWeight:`bold`,color:W},{tag:Q$2.emphasis,fontStyle:`italic`,color:G},{tag:Q$2.strikethrough,textDecoration:`line-through`},{tag:Q$2.heading,fontWeight:`bold`,color:U},{tag:Q$2.special(Q$2.heading1),fontWeight:`bold`,color:U},{tag:Q$2.heading1,fontWeight:`bold`,color:U},{tag:[Q$2.heading2,Q$2.heading3,Q$2.heading4],fontWeight:`bold`,color:U},{tag:[Q$2.heading5,Q$2.heading6],color:U},{tag:[Q$2.atom,Q$2.bool,Q$2.special(Q$2.variableName)],color:nr},{tag:[Q$2.processingInstruction,Q$2.inserted],color:nr},{tag:[Q$2.contentSeparator],color:G},{tag:Q$2.invalid,color:Yn,borderBottom:`1px dotted ${ar}`}]))];var pr=`#2e3440`,mr=`#3b4252`,hr=`#434c5e`,gr=`#4c566a`,_r=`#e5e9f0`,vr=`#eceff4`,yr=`#8fbcbb`,br=`#88c0d0`,xr=`#81a1c1`,q=`#5e81ac`,Sr=`#bf616a`,J=`#d08770`,Cr=`#ebcb8b`,wr=`#a3be8c`,Tr=`#b48ead`,Er=`#d30102`,Dr=vr,Or=Dr,kr=`#ffffff`,Ar=mr,jr=Dr,Mr=mr;[W$2.theme({"&":{color:pr,backgroundColor:kr},".cm-content":{caretColor:Mr},".cm-cursor, .cm-dropCursor":{borderLeftColor:Mr},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:jr},".cm-panels":{backgroundColor:Dr,color:gr},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid ${gr}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:_r},".cm-activeLine":{backgroundColor:Or},".cm-selectionMatch":{backgroundColor:_r},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${gr}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:vr},".cm-gutters":{backgroundColor:vr,color:pr,border:`none`},".cm-activeLineGutter":{backgroundColor:Or},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:Ar},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ar,borderBottomColor:Ar},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Or,color:gr}}},{dark:false}),id(ed.define([{tag:Q$2.keyword,color:q},{tag:[Q$2.name,Q$2.deleted,Q$2.character,Q$2.propertyName,Q$2.macroName],color:J},{tag:[Q$2.variableName],color:J},{tag:[Q$2.function(Q$2.variableName)],color:q},{tag:[Q$2.labelName],color:xr},{tag:[Q$2.color,Q$2.constant(Q$2.name),Q$2.standard(Q$2.name)],color:q},{tag:[Q$2.definition(Q$2.name),Q$2.separator],color:wr},{tag:[Q$2.brace],color:yr},{tag:[Q$2.annotation],color:Er},{tag:[Q$2.number,Q$2.changed,Q$2.annotation,Q$2.modifier,Q$2.self,Q$2.namespace],color:br},{tag:[Q$2.typeName,Q$2.className],color:Cr},{tag:[Q$2.operator,Q$2.operatorKeyword],color:wr},{tag:[Q$2.tagName],color:Tr},{tag:[Q$2.squareBracket],color:Sr},{tag:[Q$2.angleBracket],color:J},{tag:[Q$2.attributeName],color:Cr},{tag:[Q$2.regexp],color:q},{tag:[Q$2.quote],color:mr},{tag:[Q$2.string],color:J},{tag:Q$2.link,color:yr,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[Q$2.url,Q$2.escape,Q$2.special(Q$2.string)],color:J},{tag:[Q$2.meta],color:br},{tag:[Q$2.comment],color:hr,fontStyle:`italic`},{tag:Q$2.strong,fontWeight:`bold`,color:q},{tag:Q$2.emphasis,fontStyle:`italic`,color:q},{tag:Q$2.strikethrough,textDecoration:`line-through`},{tag:Q$2.heading,fontWeight:`bold`,color:q},{tag:Q$2.special(Q$2.heading1),fontWeight:`bold`,color:q},{tag:Q$2.heading1,fontWeight:`bold`,color:q},{tag:[Q$2.heading2,Q$2.heading3,Q$2.heading4],fontWeight:`bold`,color:q},{tag:[Q$2.heading5,Q$2.heading6],color:q},{tag:[Q$2.atom,Q$2.bool,Q$2.special(Q$2.variableName)],color:J},{tag:[Q$2.processingInstruction,Q$2.inserted],color:yr},{tag:[Q$2.contentSeparator],color:Cr},{tag:Q$2.invalid,color:hr,borderBottom:`1px dotted ${Er}`}]))];var Pr=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n;}},Y=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n;}static init(t,n,r){let i=r.facet(Q).markerFilter;i&&(t=i(t,r));let a=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new ut$1,s=[],c=0,l=r.doc.iter(),u=0,d=r.doc.length;for(let e=0;;){let t=e==a.length?null:a[e];if(!t&&!s.length)break;let n,r;if(s.length)n=c,r=s.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else {if(n=t.from,n>d)break;r=t.to,s.push(t),e++;}for(;et.from||t.to==n))s.push(t),e++,r=Math.min(t.to,r);else {r=Math.min(t.from,r);break}}r=Math.min(r,d);let i=false;if(s.some(e=>e.from==n&&(e.to==r||r==d))&&(i=n==r,!i&&r-n<10)){let e=n-(u+l.value.length);e>0&&(l.next(e),u=n);for(let e=n;;){if(e>=r){i=true;break}if(!l.lineBreak&&u+l.value.length>e)break;e=u+l.value.length,u+=l.value.length,l.next();}}let f=ti(s);if(i)o.add(n,n,F$2.widget({widget:new Yr(f),diagnostics:s.slice()}));else {let e=s.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);o.add(n,r,F$2.mark({class:`cm-lintRange cm-lintRange-`+f+e,diagnostics:s.slice(),inclusiveEnd:s.some(e=>e.to>r)}));}if(c=r,c==d)break;for(let e=0;e{if(!(t&&i.diagnostics.indexOf(t)<0))if(!r)r=new Pr(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return false;else r=new Pr(r.from,n,r.diagnostic);}),r}function Fr(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Q).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return !!(e.effects.some(e=>e.is(Lr))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function Ir(e,t){return e.field(Z,false)?t:t.concat(D$2.appendConfig.of(ni))}var Lr=D$2.define(),Rr=D$2.define(),zr=D$2.define(),Z=Ce$1.define({create(){return new Y(F$2.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=X(n,e.selected.diagnostic,i)||X(n,null,i);}!n.size&&i&&t.state.facet(Q).autoPanel&&(i=null),e=new Y(n,i,r);}for(let n of t.effects)if(n.is(Lr)){let r=t.state.facet(Q).autoPanel?n.value.length?Zr.open:null:e.panel;e=Y.init(n.value,r,t.state);}else n.is(Rr)?e=new Y(e.diagnostics,n.value?Zr.open:null,e.selected):n.is(zr)&&(e=new Y(e.diagnostics,e.panel,n.value));return e},provide:e=>[ec.from(e,e=>e.panel),W$2.decorations.from(e,e=>e.diagnostics)]}),Br=F$2.mark({class:`cm-lintRange cm-lintRange-active`});function Vr(e,t,n){let{diagnostics:r}=e.state.field(Z),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(tJr(e,t,false)))}var Ur=e=>{let t=e.state.field(Z,false);(!t||!t.panel)&&e.dispatch({effects:Ir(e.state,[Rr.of(true)])});let n=Xs(e,Zr.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),true},Wr=e=>{let t=e.state.field(Z,false);return !t||!t.panel?false:(e.dispatch({effects:Rr.of(false)}),true)},Gr=[{key:`Mod-Shift-m`,run:Ur,preventDefault:true},{key:`F8`,run:e=>{let t=e.state.field(Z,false);if(!t)return false;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return !r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?false:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:true}),true)}}],Q=E$1.define({combine(e){return {sources:e.map(e=>e.source).filter(e=>e!=null),...rt$2(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Kr,tooltipFilter:Kr,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function Kr(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function qr(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``);}return t}function Jr(e,t,n){let r=n?qr(t.actions):[];return It$1(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},It$1(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=false,o=r=>{if(r.preventDefault(),a)return;a=true;let i=X(e.state.field(Z).diagnostics,t);i&&n.apply(e,i.from,i.to);},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),It$1(`u`,s.slice(c,c+1)),s.slice(c+1)];return It$1(`button`,{type:`button`,class:`cm-diagnosticAction`+(n.markClass?` `+n.markClass:``),onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&It$1(`div`,{class:`cm-diagnosticSource`},t.source))}var Yr=class extends en$1{constructor(e){super(),this.sev=e;}eq(e){return e.sev==this.sev}toDOM(){return It$1(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},Xr=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=Jr(e,t,true),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`);}},Zr=class e{constructor(e){this.view=e,this.items=[];let t=t=>{if(t.keyCode==27)Wr(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=qr(n.actions);for(let i=0;i{for(let t=0;tWr(this.view)},`×`)),this.update();}get selectedIndex(){let e=this.view.state.field(Z).selected;if(!e)return -1;for(let t=0;t{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;tn&&(this.items.splice(n,o-n),r=true)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++;}});n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n);}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync();}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove();}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling;}else this.list.insertBefore(n.dom,e);for(;e;)t();}moveSelection(e){if(this.selectedIndex<0)return;let t=X(this.view.state.field(Z).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:true,effects:zr.of(t)});}static open(t){return new e(t)}};function Qr(e,t=`viewBox="0 0 40 40"`){return `url('data:image/svg+xml,${encodeURIComponent(e)}')`}function $(e){return Qr(``,`width="6" height="3"`)}var $r=W$2.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:$(`#d11`)},".cm-lintRange-warning":{backgroundImage:$(`orange`)},".cm-lintRange-info":{backgroundImage:$(`#999`)},".cm-lintRange-hint":{backgroundImage:$(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}}});function ei(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function ti(e){let t=`hint`,n=1;for(let r of e){let e=ei(r.severity);e>n&&(n=e,t=r.severity);}return t}var ni=[Z,W$2.decorations.compute([Z],e=>{let{selected:t,panel:n}=e.field(Z);return !t||!n||t.from==t.to?F$2.none:F$2.set([Br.range(t.from,t.to)])}),Ks(Vr,{hideOn:Fr}),$r];[ds(),$e(),Qu(),Xo(),k$2.allowMultipleSelections.of(true),wu(),id(sd,{fallback:true}),Je$1(),Ts(),Os(),No.of([...et$1,...Kn,...mt,...Uu,...dt$1,...Gr])];({...Object.fromEntries([`standardSQL`,`msSQL`,`mySQL`,`mariaDB`,`sqlite`,`cassandra`,`plSQL`,`hive`,`pgSQL`,`gql`,`gpSQL`,`sparkSQL`,`esper`].map(e=>[`sql-`+e,()=>import('./sql-jTJai_kq.js').then(t=>xd.define(t[e]))]))});function ii(e,t){e.component(e=>{let {class_names:n=``,value:r=void 0,dark_mode:i,basic:a=true,language:o,lines:s=5,max_lines:c=null,extensions:l=[],use_tab:u=true,readonly:d=false,placeholder:f=void 0,wrap_lines:p=false,show_line_numbers:m=true,autocomplete:g=false,onchange:_,onblur:ee,onfocus:te,oninput:ne}=t;W$2.theme({"&":{fontSize:`var(--text-sm)`,backgroundColor:`var(--border-color-secondary)`},".cm-content":{paddingTop:`5px`,paddingBottom:`5px`,color:`var(--body-text-color)`,fontFamily:`var(--font-mono)`,minHeight:`100%`},".cm-gutterElement":{marginRight:`var(--spacing-xs)`},".cm-gutters":{marginRight:`1px`,borderRight:`1px solid var(--border-color-primary)`,backgroundColor:`var(--block-background-fill);`,color:`var(--body-text-color-subdued)`},".cm-focused":{outline:`none`},".cm-scroller":{height:`auto`},".cm-cursor":{borderLeftColor:`var(--body-text-color)`}});W$2.theme({".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:`var(--background-fill-primary)`,color:`var(--body-text-color)`},"& > ul > li[aria-selected]":{backgroundColor:`var(--color-accent-soft)`,color:`var(--body-text-color)`}}});e.push(`
    `),bind_props(t,{value:r});});}function ai(e,t){e.component(e=>{let{value:n}=t,r=false,i;function a(){r=true,i&&clearTimeout(i),i=setTimeout(()=>{r=false;},2e3);}async function o(){`clipboard`in navigator&&(await navigator.clipboard.writeText(n),a());}onDestroy(()=>{i&&clearTimeout(i);}),_$1(e,{Icon:r?D$3:ne$1,label:`Copy`,onclick:o});});}function oi(e,t){e.component(e=>{let{value:n,language:r}=t,o=derived(()=>s(r));function s(e){return {py:`py`,python:`py`,md:`md`,markdown:`md`,json:`json`,html:`html`,css:`css`,js:`js`,javascript:`js`,ts:`ts`,typescript:`ts`,yaml:`yaml`,yml:`yml`,dockerfile:`dockerfile`,sh:`sh`,shell:`sh`,r:`r`,c:`c`,cpp:`cpp`,latex:`tex`}[e]||`txt`}let l=false,u;function f(){l=true,u&&clearTimeout(u),u=setTimeout(()=>{l=false;},2e3);}let p=derived(()=>URL.createObjectURL(new Blob([n])));onDestroy(()=>{u&&clearTimeout(u);}),g$1(e,{download:`file.${stringify(o())}`,href:p(),onclick:f,children:e=>{_$1(e,{Icon:l?D$3:ie$2,label:`Download`});},$$slots:{default:true}});});}function si(e,t){e.component(e=>{let{value:n,language:r,buttons:i=null,on_custom_button_click:a=null}=t;Ve$3(e,{buttons:i,on_custom_button_click:a,children:e=>{i?.some(e=>typeof e==`string`&&e===`download`)?(e.push(``),oi(e,{value:n,language:r})):e.push(``),e.push(` `),i?.some(e=>typeof e==`string`&&e===`copy`)?(e.push(``),ai(e,{value:n})):e.push(``),e.push(``);}});});}function ci(i,a){i.component(i=>{let{$$slots:c,$$events:l,...u}=a,d=new m$1(u),f=d.shared.theme===`dark`,p=derived(()=>d.shared.label||d.i18n(`code.code`));d.props.value=d.props.value??``,d.props.value;let m=true,h;function g(e){n$1(e,{height:d.props.max_lines&&`fit-content`,variant:`solid`,padding:false,elem_id:d.shared.elem_id,elem_classes:d.shared.elem_classes,visible:d.shared.visible,scale:d.shared.scale,min_width:d.shared.min_width,children:e=>{f$1(e,spread_props([{autoscroll:d.shared.autoscroll,i18n:d.i18n},d.shared.loading_status,{on_clear_status:()=>d.dispatch(`clear_status`,d.shared.loading_status)}])),e.push(` `),d.shared.show_label?(e.push(``),h$1(e,{Icon:j$3,show_label:d.shared.show_label,label:p(),float:false})):e.push(``),e.push(` `),!d.props.value&&!d.shared.interactive?(e.push(``),v$1(e,{unpadded_box:true,size:`large`,children:e=>{j$3(e);}})):(e.push(``),si(e,{language:d.props.language,value:d.props.value,buttons:d.props.buttons??[`copy`,`download`],on_custom_button_click:e=>{d.dispatch(`custom_button_click`,{id:e});}}),e.push(` `),ii(e,{language:d.props.language,lines:d.props.lines,max_lines:d.props.max_lines,dark_mode:f,wrap_lines:d.props.wrap_lines,show_line_numbers:d.props.show_line_numbers,autocomplete:d.props.autocomplete,readonly:!d.shared.interactive,onblur:()=>d.dispatch(`blur`),onfocus:()=>d.dispatch(`focus`),oninput:()=>d.dispatch(`input`),get value(){return d.props.value},set value(e){d.props.value=e,m=false;}}),e.push(``)),e.push(``);},$$slots:{default:true}});}do m=true,h=i.copy(),g(h);while(!m);i.subsume(h);});} + +export { ai as a, ci as c, ii as i, oi as o, si as s }; +//# sourceMappingURL=Index17-CuHcLsB5.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index18-DfEInI3h.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index18-DfEInI3h.js new file mode 100644 index 0000000000000000000000000000000000000000..95115e9bccc127b4f4e36a18d3ace2cb75879927 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index18-DfEInI3h.js @@ -0,0 +1,13 @@ +export { default as BaseExample } from './Example8-BV42BElH.js'; +export { i as BaseCode, a as BaseCopy, o as BaseDownload, s as BaseWidget, c as default } from './Index17-CuHcLsB5.js'; +import './async-Cv1-GZGV.js'; +import './renderer-Dic3PuWn.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +//# sourceMappingURL=Index18-DfEInI3h.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index19-DyaB4QK4.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index19-DyaB4QK4.js new file mode 100644 index 0000000000000000000000000000000000000000..62d771593c307645a5f46b11b2c8153704545f2a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index19-DyaB4QK4.js @@ -0,0 +1,17 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { p as m, n } from './src3-h7ZBftxa.js'; +export { default as BaseExample } from './Example10-8GKOSZX2.js'; +import './tinycolor-D-nIUz6e.js'; +import { f as attr, b as attr_style, c as bind_props, s as spread_props, d as derived, e as escape_html } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function l(e,t){e.component(e=>{let{value:r=void 0,label:i,info:a,disabled:l,show_label:u,on_input:d=()=>{},on_release:f=()=>{},on_submit:p=()=>{},on_blur:m$1=()=>{},on_focus:h=()=>{}}=t;m(e,{show_label:u,info:a,children:e=>{e.push(`${escape_html(i)}`);}}),e.push(`
    `),e.push(``),e.push(`
    `),bind_props(t,{value:r});});}function u(n$1,i){n$1.component(n$1=>{let{$$slots:a,$$events:o,...c}=i,u=new m$1(c,{value:`#000000`});u.props.value;let d=derived(()=>u.shared.label||u.i18n(`color_picker.color_picker`)),f$1=true,p;function m(e){n(e,{visible:u.shared.visible,elem_id:u.shared.elem_id,elem_classes:u.shared.elem_classes,container:u.shared.container,scale:u.shared.scale,min_width:u.shared.min_width,children:e=>{f(e,spread_props([{autoscroll:u.shared.autoscroll,i18n:u.i18n},u.shared.loading_status,{on_clear_status:()=>u.dispatch(`clear_status`,u.shared.loading_status)}])),e.push(` `),l(e,{label:d(),info:u.props.info,show_label:u.shared.show_label,disabled:!u.shared.interactive,on_input:()=>u.dispatch(`input`),on_release:()=>u.dispatch(`release`,u.props.value),on_submit:()=>u.dispatch(`submit`),on_blur:()=>u.dispatch(`blur`),on_focus:()=>u.dispatch(`focus`),get value(){return u.props.value},set value(e){u.props.value=e,f$1=false;}}),e.push(``);},$$slots:{default:true}});}do f$1=true,p=n$1.copy(),m(p);while(!f$1);n$1.subsume(p);});} + +export { l as BaseColorPicker, u as default }; +//# sourceMappingURL=Index19-DyaB4QK4.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index2-D3VlTBcL.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index2-D3VlTBcL.js new file mode 100644 index 0000000000000000000000000000000000000000..72aaef02e75a38c5ec85cb886e863fd12a1c4180 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index2-D3VlTBcL.js @@ -0,0 +1,8 @@ +export { n as BaseForm, r as default } from './Index-C_t0K8Ot.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +//# sourceMappingURL=Index2-D3VlTBcL.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index20-B60rIffr.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index20-B60rIffr.js new file mode 100644 index 0000000000000000000000000000000000000000..f1a5cb5b75255c8dcc6423ba11bee2b9c9a118c6 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index20-B60rIffr.js @@ -0,0 +1,10 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { V as Ve, p as m, C as oe, F as ge, n } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { p as props_id, a as attr_class, f as attr, c as bind_props, b as attr_style, h as ensure_array_like, e as escape_html, d as derived, s as spread_props, t as to_array } from './renderer-Dic3PuWn.js'; + +function c(e,t){e.component(e=>{let{choices:n,filtered_indices:r,show_options:i=false,disabled:a=false,selected_indices:o=[],active_index:c=null,remember_scroll:l=false,offset_from_top:u=0,from_top:d=false,listbox_id:f=void 0,onchange:p,onload:m}=t;if(e.push(`
    `),i&&!a){e.push(``),e.push(`
      `);let t=ensure_array_like(r);for(let r=0,i=t.length;r✓ ${escape_html(n[i][0])}`);}e.push(`
    `);}else e.push(``);e.push(``);});}function l(e,t){return e.reduce((e,n,r)=>((!t||n[0].toLowerCase().includes(t.toLowerCase()))&&e.push(r),e),[])}function u(e,t){e.component(e=>{let i=props_id(e),{$$slots:u,$$events:d,...f}=t,p=f.gradio,m$1=``,h=derived(()=>p.shared.label||`Multiselect`),g=`${i}-options`,_=derived(()=>p.props.buttons),v=derived(()=>p.props.choices.map(([e,t])=>[p.live_i18n(e),t])),y=derived(()=>v().map(e=>e[0])),b=derived(()=>p.props.choices.map(e=>e[1])),x=derived(()=>!p.shared.interactive),S=false,C=derived(()=>{let e=l(v(),m$1);return [e,e.length>0&&!p.props.allow_custom_value?e[0]:null]}),w=derived(()=>to_array(C(),2)),T=derived(()=>w()[0]),E=derived(()=>w()[1]);function D(){return p.props.value===void 0?[]:Array.isArray(p.props.value)?p.props.value.map(e=>{let t=b().indexOf(e);if(t!==-1)return t;if(p.props.allow_custom_value)return e}).filter(e=>e!==void 0):[]}let O=derived(D);function k(e){O(O().filter(t=>t!==e)),p.props.value=O().map(e=>typeof e==`number`?b()[e]:e),p.dispatch(`input`),p.dispatch(`select`,{index:typeof e==`number`?e:-1,value:typeof e==`number`?b()[e]:e,selected:false});}function A(e){(p.props.max_choices==null||O().lengthtypeof e==`number`?b()[e]:e);}function j(e){M(parseInt(e));}function M(e){O().includes(e)?k(e):A(e),m$1=``,E(null),p.dispatch(`input`);}p.props.value;function N(e){p.dispatch(`custom_button_click`,{id:e});}e.push(``),p.shared.show_label&&_()&&_().length>0?(e.push(``),Ve(e,{buttons:_(),on_custom_button_click:N})):e.push(``),e.push(` `),m(e,{show_label:p.shared.show_label,info:p.props.info,children:e=>{e.push(`${escape_html(h())}`);}}),e.push(`
    `);let P=ensure_array_like(O());for(let t=0,n=P.length;t`),typeof n==`number`?(e.push(``),e.push(`${escape_html(y()[n])}`)):(e.push(``),e.push(`${escape_html(n)}`)),e.push(` `),x()?e.push(``):(e.push(``),e.push(`
    `),ge(e),e.push(`
    `)),e.push(`
    `);}e.push(`
    `),x()?e.push(``):(e.push(``),O().length>0?(e.push(``),e.push(`
    `),ge(e),e.push(`
    `)):e.push(``),e.push(` `),oe(e),e.push(``)),e.push(`
    `),c(e,{show_options:S,choices:v(),filtered_indices:T(),disabled:x(),selected_indices:O(),active_index:E(),listbox_id:g,remember_scroll:true,onchange:j}),e.push(``);});}function d(e,t){e.component(e=>{let r=props_id(e),i=typeof window<`u`,{label:l=`Dropdown`,info:u=void 0,value:d=void 0,choices:f=[],interactive:p=true,show_label:m$1=true,container:h=true,allow_custom_value:g=false,filterable:_=true,buttons:v=null,oncustom_button_click:y=null,on_change:b,on_input:x,on_select:S,on_focus:C,on_blur:w,on_key_up:T}=t,E=`${r}-options`,D=derived(()=>i&&document.activeElement===void 0),O=derived(()=>f.map(e=>e[0])),k=derived(()=>f.map(e=>e[1])),A=``,j=null,M=derived(()=>!p),N=f.map((e,t)=>t),P=null,F=derived(()=>j===null?[]:[j]);function I(e){if(j=parseInt(e),isNaN(j)){j=null;return}let[t,n]=f[j];A=t,d=n,S?.({index:j,value:k()[j],selected:true}),D(false),P=null,x?.(),(void 0).blur();}e.push(``),m$1&&v&&v.length>0?(e.push(``),Ve(e,{buttons:v,on_custom_button_click:y})):e.push(``),e.push(` `),m(e,{show_label:m$1,info:u,children:e=>{e.push(`${escape_html(l)}`);}}),e.push(`
    `),M()?e.push(``):(e.push(``),e.push(`
    `),oe(e),e.push(`
    `)),e.push(`
    `),c(e,{show_options:D(),choices:f,filtered_indices:N,disabled:M(),selected_indices:F(),active_index:P,listbox_id:E,onchange:I,onload:()=>true}),e.push(``),bind_props(t,{value:d});});}function f(n$1,r){n$1.component(n$1=>{let{$$slots:a,$$events:o,...c}=r,l=new m$1(c),f=derived(()=>l.props.choices.map(([e,t])=>[l.live_i18n(e),t])),p=true,m;function h(e){n(e,{visible:l.shared.visible,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,padding:l.shared.container,allow_overflow:false,scale:l.shared.scale,min_width:l.shared.min_width,children:e=>{f$1(e,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{on_clear_status:()=>l.dispatch(`clear_status`,l.shared.loading_status)}])),e.push(` `),l.props.multiselect?(e.push(``),u(e,{gradio:l})):(e.push(``),d(e,{label:l.shared.label,info:l.props.info,choices:f(),interactive:l.shared.interactive,show_label:l.shared.show_label,container:l.shared.container,allow_custom_value:l.props.allow_custom_value,filterable:l.props.filterable,buttons:l.props.buttons,oncustom_button_click:e=>{l.dispatch(`custom_button_click`,{id:e});},on_change:()=>l.dispatch(`change`),on_input:()=>l.dispatch(`input`),on_select:e=>l.dispatch(`select`,e),on_focus:()=>l.dispatch(`focus`),on_blur:()=>l.dispatch(`blur`),on_key_up:e=>l.dispatch(`key_up`,e),get value(){return l.props.value},set value(e){l.props.value=e,p=false;}})),e.push(``);},$$slots:{default:true}});}do p=true,m=n$1.copy(),h(m);while(!p);n$1.subsume(m);});} + +export { c, d, f, u }; +//# sourceMappingURL=Index20-B60rIffr.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index21-Cgb9RfX0.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index21-Cgb9RfX0.js new file mode 100644 index 0000000000000000000000000000000000000000..ae44a884d6e878eae427fc1acbdf3f423fc15d49 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index21-Cgb9RfX0.js @@ -0,0 +1,13 @@ +export { d as BaseDropdown, c as BaseDropdownOptions, u as BaseMultiselect, f as default } from './Index20-B60rIffr.js'; +export { default as BaseExample } from './Example12-xQwKGIj7.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +//# sourceMappingURL=Index21-Cgb9RfX0.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index22-II_oPmLe.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index22-II_oPmLe.js new file mode 100644 index 0000000000000000000000000000000000000000..a2d439083c232fbdcb63bb8157a3930ad856df86 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index22-II_oPmLe.js @@ -0,0 +1,34 @@ +import { J as m$1, K as tick } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n as n$1, D as D$1, _ as _$1, j as ne$1, a as He$1 } from './src3-h7ZBftxa.js'; +import { g as g$1 } from './src4-BlBbNhwG.js'; +import { u as ut$1 } from './markdown-code-CPYQEp1F.js'; +import { o as o$1 } from './Index14-D9iEe_7n.js'; +export { default as BaseExample } from './Example14-BDt9lUCk.js'; +import './async-Cv1-GZGV.js'; +import { c as bind_props, a as attr_class, e as escape_html, b as attr_style, i as stringify, f as attr, h as ensure_array_like, s as spread_props, d as derived, j as clsx } from './renderer-Dic3PuWn.js'; +import { h as html } from './html-CfyvkLET.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; + +var e={},t={},n=34,r=10,i=13;function a(e){return Function(`d`,`return {`+e.map(function(e,t){return JSON.stringify(e)+`: d[`+t+`] || ""`}).join(`,`)+`}`)}function o(e,t){var n=a(e);return function(r,i){return t(n(r),i,e)}}function s(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r);}),n}function c(e,t){var n=e+``,r=n.length;return r9999?`+`+c(e,6):c(e,4)}function u(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?`Invalid Date`:l(e.getUTCFullYear())+`-`+c(e.getUTCMonth()+1,2)+`-`+c(e.getUTCDate(),2)+(i?`T`+c(t,2)+`:`+c(n,2)+`:`+c(r,2)+`.`+c(i,3)+`Z`:r?`T`+c(t,2)+`:`+c(n,2)+`:`+c(r,2)+`Z`:n||t?`T`+c(t,2)+`:`+c(n,2)+`Z`:``)}function d(c){var l=RegExp(`["`+c+` +\r]`),d=c.charCodeAt(0);function f(e,t){var n,r,i=p(e,function(e,i){if(n)return n(e,i-1);r=e,n=t?o(e,t):a(e);});return i.columns=r||[],i}function p(a,o){var s=[],c=a.length,l=0,u=0,f,p=c<=0,m=false;a.charCodeAt(c-1)===r&&--c,a.charCodeAt(c-1)===i&&--c;function h(){if(p)return t;if(m)return m=false,e;var o,s=l,u;if(a.charCodeAt(s)===n){for(;l++=c?p=true:(u=a.charCodeAt(l++))===r?m=true:u===i&&(m=true,a.charCodeAt(l)===r&&++l),a.slice(s+1,o-1).replace(/""/g,`"`)}for(;l{t.setState(t=>({...t,[e]:h(n,t[e])}));}}function _(e){return e instanceof Function}function v(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function y(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i);});};return r(e),n}function b(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.lengthe?.debugAll??e[t],key:process.env.NODE_ENV===`development`&&n,onChange:r}}function ee(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:b(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),x(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e);},{}),i}function S(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e],process.env.NODE_ENV!==`production`&&t===void 0&&console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`);return t}:e=>e[i.accessorKey]),!o)throw process.env.NODE_ENV===`production`?Error():Error(i.accessorFn?`Columns require an id when using an accessorFn`:`Columns require an id when using a non-string header`);let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:b(()=>[true],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],x(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:b(()=>[e._getOrderColumnsFn()],e=>{var t;return (t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},x(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var C=`debugHeaders`;function w(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n);};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e);}),r}var T={createTable:e=>{e.getHeaderGroups=b(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return E(t,[...a,...s,...o],e)},x(e.options,C,`getHeaderGroups`)),e.getCenterHeaderGroups=b(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),E(t,n,e,`center`)),x(e.options,C,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=b(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>E(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),x(e.options,C,`getLeftHeaderGroups`)),e.getRightHeaderGroups=b(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>E(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),x(e.options,C,`getRightHeaderGroups`)),e.getFooterGroups=b(()=>[e.getHeaderGroups()],e=>[...e].reverse(),x(e.options,C,`getFooterGroups`)),e.getLeftFooterGroups=b(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),x(e.options,C,`getLeftFooterGroups`)),e.getCenterFooterGroups=b(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),x(e.options,C,`getCenterFooterGroups`)),e.getRightFooterGroups=b(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),x(e.options,C,`getRightFooterGroups`)),e.getFlatHeaders=b(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),x(e.options,C,`getFlatHeaders`)),e.getLeftFlatHeaders=b(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),x(e.options,C,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=b(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),x(e.options,C,`getCenterFlatHeaders`)),e.getRightFlatHeaders=b(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),x(e.options,C,`getRightFlatHeaders`)),e.getCenterLeafHeaders=b(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return !((t=e.subHeaders)!=null&&t.length)}),x(e.options,C,`getCenterLeafHeaders`)),e.getLeftLeafHeaders=b(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return !((t=e.subHeaders)!=null&&t.length)}),x(e.options,C,`getLeftLeafHeaders`)),e.getRightLeafHeaders=b(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return !((t=e.subHeaders)!=null&&t.length)}),x(e.options,C,`getRightLeafHeaders`)),e.getLeafHeaders=b(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>[...e[0]?.headers??[],...t[0]?.headers??[],...n[0]?.headers??[]].map(e=>e.getLeafHeaders()).flat(),x(e.options,C,`getLeafHeaders`));}};function E(e,t,n,r){let i=0,a=function(e,t){t===void 0&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;(n=e.columns)!=null&&n.length&&a(e.columns,t+1);},0);};a(e);let o=[],s=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join(`_`),headers:[]},a=[];e.forEach(e=>{let o=[...a].reverse()[0],s=e.column.depth===i.depth,c,l=false;if(s&&e.column.parent?c=e.column.parent:(c=e.column,l=true),o&&o?.column===c)o.subHeaders.push(e);else {let i=w(n,c,{id:[r,t,c.id,e?.id].filter(Boolean).join(`_`),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===c).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i);}i.headers.push(e),e.headerGroup=i;}),o.push(i),t>0&&s(a,t-1);};s(t.map((e,t)=>w(n,e,{depth:i,index:t})),i-1),o.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i);})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(o[0]?.headers??[]),o}var D=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t])},renderValue:t=>s.getValue(t)??e.options.renderFallbackValue,subRows:[],getLeafRows:()=>y(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,true):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n;}return e.reverse()},getAllCells:b(()=>[e.getAllLeafColumns()],t=>t.map(t=>ee(e,s,t,t.id)),x(e.options,`debugRows`,`getAllCells`)),_getAllCellsByColumnId:b(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),x(e.options,`debugRows`,`getAllCellsByColumnId`))};for(let t=0;t{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()};}},k=(e,t,n)=>{var r,i;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return !!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};k.autoRemove=e=>N(e);var A=(e,t,n)=>{var r;return !!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};A.autoRemove=e=>N(e);var te=(e,t,n)=>{var r;return ((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};te.autoRemove=e=>N(e);var j=(e,t,n)=>e.getValue(t)?.includes(n);j.autoRemove=e=>N(e);var ne=(e,t,n)=>!n.some(n=>{var r;return !((r=e.getValue(t))!=null&&r.includes(n))});ne.autoRemove=e=>N(e)||!(e!=null&&e.length);var re=(e,t,n)=>n.some(n=>e.getValue(t)?.includes(n));re.autoRemove=e=>N(e)||!(e!=null&&e.length);var ie=(e,t,n)=>e.getValue(t)===n;ie.autoRemove=e=>N(e);var ae=(e,t,n)=>e.getValue(t)==n;ae.autoRemove=e=>N(e);var oe=(e,t,n)=>{let[r,i]=n,a=e.getValue(t);return a>=r&&a<=i};oe.resolveFilterValue=e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e;}return [a,o]},oe.autoRemove=e=>N(e)||N(e[0])&&N(e[1]);var M={includesString:k,includesStringSensitive:A,equalsString:te,arrIncludes:j,arrIncludesAll:ne,arrIncludesSome:re,equals:ie,weakEquals:ae,inNumberRange:oe};function N(e){return e==null||e===``}var se={getDefaultColumnDef:()=>({filterFn:`auto`}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:g(`columnFilters`,e),filterFromLeafRows:false,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);return typeof n==`string`?M.includesString:typeof n==`number`?M.inNumberRange:typeof n==`boolean`||typeof n==`object`&&n?M.equals:Array.isArray(n)?M.arrIncludes:M.weakEquals},e.getFilterFn=()=>_(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?e.getAutoFilterFn():t.options.filterFns?.[e.columnDef.filterFn]??M[e.columnDef.filterFn],e.getCanFilter=()=>(e.columnDef.enableColumnFilter??true)&&(t.options.enableColumnFilters??true)&&(t.options.enableFilters??true)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return (n=t.getState().columnFilters)==null||(n=n.find(t=>t.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>t.getState().columnFilters?.findIndex(t=>t.id===e.id)??-1,e.setFilterValue=n=>{t.setColumnFilters(t=>{let r=e.getFilterFn(),i=t?.find(t=>t.id===e.id),a=h(n,i?i.value:void 0);if(P(r,a,e))return t?.filter(t=>t.id!==e.id)??[];let o={id:e.id,value:a};return i?t?.map(t=>t.id===e.id?o:t)??[]:t!=null&&t.length?[...t,o]:[o]});};},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={};},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(e=>h(t,e)?.filter(e=>{let t=n.find(t=>t.id===e.id);return !(t&&P(t.getFilterFn(),e.value,t))}));},e.resetColumnFilters=t=>{e.setColumnFilters(t?[]:e.initialState?.columnFilters??[]);},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel());}};function P(e,t,n){return (e&&e.autoRemove?e.autoRemove(t,n):false)||t===void 0||typeof t==`string`&&!t}var ce={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+(typeof r==`number`?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r=n)&&(r=n);}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r===void 0?n>=n&&(r=i=n):(r>n&&(r=n),i{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i);}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!v(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2==0?(i[r-1]+i[r])/2:i[r]},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},F={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return ((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:`auto`}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:g(`grouping`,e),groupedColumnMode:`reorder`}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id]);},e.getCanGroup=()=>(e.columnDef.enableGrouping??true)&&(t.options.enableGrouping??true)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>t.getState().grouping?.includes(e.id),e.getGroupedIndex=()=>t.getState().grouping?.indexOf(e.id),e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return ()=>{t&&e.toggleGrouping();}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);if(typeof n==`number`)return ce.sum;if(Object.prototype.toString.call(n)===`[object Date]`)return ce.extent},e.getAggregationFn=()=>{if(!e)throw Error();return _(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn===`auto`?e.getAutoAggregationFn():t.options.aggregationFns?.[e.columnDef.aggregationFn]??ce[e.columnDef.aggregationFn]};},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{e.setGrouping(t?[]:e.initialState?.grouping??[]);},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel());},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={};},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return !e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((t=n.subRows)!=null&&t.length)};}};function I(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return n===`remove`?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}var L={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:g(`columnOrder`,e)}),createColumn:(e,t)=>{e.getIndex=b(e=>[U(t,e)],t=>t.findIndex(t=>t.id===e.id),x(t.options,`debugColumns`,`getIndex`)),e.getIsFirstColumn=n=>U(t,n)[0]?.id===e.id,e.getIsLastColumn=n=>{let r=U(t,n);return r[r.length-1]?.id===e.id};},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[]);},e._getOrderColumnsFn=b(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(!(e!=null&&e.length))i=r;else {let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0]);}i=[...i,...n];}return I(i,t,n)},x(e.options,`debugTable`,`_getOrderColumnsFn`));}},le=()=>({left:[],right:[]}),ue={getInitialState:e=>({columnPinning:le(),...e}),getDefaultOptions:e=>({onColumnPinningChange:g(`columnPinning`,e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>n===`right`?{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:[...(e?.right??[]).filter(e=>!(r!=null&&r.includes(e))),...r]}:n===`left`?{left:[...(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),...r],right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))}:{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))});},e.getCanPin=()=>e.getLeafColumns().some(e=>(e.columnDef.enablePinning??true)&&(t.options.enableColumnPinning??t.options.enablePinning??true)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`left`:o?`right`:false},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0};},createRow:(e,t)=>{e.getCenterVisibleCells=b(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},x(t.options,`debugRows`,`getCenterVisibleCells`)),e.getLeftVisibleCells=b(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`left`})),x(t.options,`debugRows`,`getLeftVisibleCells`)),e.getRightVisibleCells=b(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`right`})),x(t.options,`debugRows`,`getRightVisibleCells`));},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>e.setColumnPinning(t?le():e.initialState?.columnPinning??le()),e.getIsSomeColumnsPinned=t=>{let n=e.getState().columnPinning;return t?!!n[t]?.length:!!(n.left?.length||n.right?.length)},e.getLeftLeafColumns=b(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),x(e.options,`debugColumns`,`getLeftLeafColumns`)),e.getRightLeafColumns=b(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),x(e.options,`debugColumns`,`getRightLeafColumns`)),e.getCenterLeafColumns=b(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},x(e.options,`debugColumns`,`getCenterLeafColumns`));}};function R(e){return e||(typeof document<`u`?document:null)}var z={size:150,minSize:20,maxSize:2**53-1},de=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:false,columnSizingStart:[]}),fe={getDefaultColumnDef:()=>z,getInitialState:e=>({columnSizing:{},columnSizingInfo:de(),...e}),getDefaultOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnSizingChange:g(`columnSizing`,e),onColumnSizingInfoChange:g(`columnSizingInfo`,e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??z.minSize,n??e.columnDef.size??z.size),e.columnDef.maxSize??z.maxSize)},e.getStart=b(e=>[e,U(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),x(t.options,`debugColumns`,`getStart`)),e.getAfter=b(e=>[e,U(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),x(t.options,`debugColumns`,`getAfter`)),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r});},e.getCanResize=()=>(e.columnDef.enableResizing??true)&&(t.options.enableColumnResizing??true),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id;},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{e.subHeaders.length?e.subHeaders.forEach(n):t+=e.column.getSize()??0;};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=r?.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),V(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],c=V(a)?Math.round(a.touches[0].clientX):a.clientX,l={},u=(e,n)=>{typeof n==`number`&&(t.setColumnSizingInfo(e=>{let r=t.options.columnResizeDirection===`rtl`?-1:1,i=(n-(e?.startOffset??0))*r,a=Math.max(i/(e?.startSize??0),-0.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;l[t]=Math.round(Math.max(n+n*a,0)*100)/100;}),{...e,deltaOffset:i,deltaPercentage:a}}),(t.options.columnResizeMode===`onChange`||e===`end`)&&t.setColumnSizing(e=>({...e,...l})));},d=e=>u(`move`,e),f=e=>{u(`end`,e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:false,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}));},p=R(n),m={moveHandler:e=>d(e.clientX),upHandler:e=>{p?.removeEventListener(`mousemove`,m.moveHandler),p?.removeEventListener(`mouseup`,m.upHandler),f(e.clientX);}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),false),upHandler:e=>{p?.removeEventListener(`touchmove`,h.moveHandler),p?.removeEventListener(`touchend`,h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0]?.clientX);}},g=B()?{passive:false}:false;V(a)?(p?.addEventListener(`touchmove`,h.moveHandler,g),p?.addEventListener(`touchend`,h.upHandler,g)):(p?.addEventListener(`mousemove`,m.moveHandler,g),p?.addEventListener(`mouseup`,m.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:c,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}));}};},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{});},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?de():e.initialState.columnSizingInfo??de());},e.getTotalSize=()=>e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getLeftTotalSize=()=>e.getLeftHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getCenterTotalSize=()=>e.getCenterHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getRightTotalSize=()=>e.getRightHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0;}},pe=null;function B(){if(typeof pe==`boolean`)return pe;let e=false;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n);}catch{e=false;}return pe=e,pe}function V(e){return e.type===`touchstart`}var H={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:g(`columnVisibility`,e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}));},e.getIsVisible=()=>{let n=e.columns;return (n.length?n.some(e=>e.getIsVisible()):t.getState().columnVisibility?.[e.id])??true},e.getCanHide=()=>(e.columnDef.enableHiding??true)&&(t.options.enableHiding??true),e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked);};},createRow:(e,t)=>{e._getAllVisibleCells=b(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),x(t.options,`debugRows`,`_getAllVisibleCells`)),e.getVisibleCells=b(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],x(t.options,`debugRows`,`getVisibleCells`));},createTable:e=>{let t=(t,n)=>b(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join(`_`)],e=>e.filter(e=>e.getIsVisible==null?void 0:e.getIsVisible()),x(e.options,`debugColumns`,t));e.getVisibleFlatColumns=t(`getVisibleFlatColumns`,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(`getVisibleLeafColumns`,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(`getLeftVisibleLeafColumns`,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(`getRightVisibleLeafColumns`,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(`getCenterVisibleLeafColumns`,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{e.setColumnVisibility(t?{}:e.initialState.columnVisibility??{});},e.toggleAllColumnsVisible=t=>{t??=!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(n.getCanHide!=null&&n.getCanHide())}),{}));},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{e.toggleAllColumnsVisible(t.target?.checked);};}};function U(e,t){return t?t===`center`?e.getCenterVisibleLeafColumns():t===`left`?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var me={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,`__global__`),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,`__global__`),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,`__global__`),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()};}},W={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:g(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r==`string`||typeof r==`number`}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??true)&&(t.options.enableGlobalFilter??true)&&(t.options.enableFilters??true)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??true)&&!!e.accessorFn;},createTable:e=>{e.getGlobalAutoFilterFn=()=>M.includesString,e.getGlobalFilterFn=()=>{let{globalFilterFn:t}=e.options;return _(t)?t:t===`auto`?e.getGlobalAutoFilterFn():e.options.filterFns?.[t]??M[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t);},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter);};}},G={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:g(`expanded`,e),paginateExpandedRows:true}),createTable:e=>{let t=false,n=false;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=true;});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=true,e._queue(()=>{e.resetExpanded(),n=false;});}},e.setExpanded=t=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(true):e.setExpanded({});},e.resetExpanded=t=>{e.setExpanded(t?{}:e.initialState?.expanded??{});},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{t.persist==null||t.persist(),e.toggleAllRowsExpanded();},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return t===true||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return typeof t==`boolean`?t===true:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return (e.getState().expanded===true?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length);}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel());},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let i=r===true?true:!!(r!=null&&r[e.id]),a={};if(r===true?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=true;}):a=r,n??=!i,!i&&n)return {...a,[e.id]:true};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r});},e.getIsExpanded=()=>{let n=t.getState().expanded;return !!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===true||n?.[e.id]))},e.getCanExpand=()=>{var n;return (t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??true)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=true,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,true),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return ()=>{t&&e.toggleExpanded();}};}},K=0,he=10,q=()=>({pageIndex:K,pageSize:he}),ge={getInitialState:e=>({...e,pagination:{...q(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:g(`pagination`,e)}),createTable:e=>{let t=false,n=false;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=true;});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=true,e._queue(()=>{e.resetPageIndex(),n=false;});}},e.setPagination=t=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(e=>h(t,e)),e.resetPagination=t=>{e.setPagination(t?q():e.initialState.pagination??q());},e.setPageIndex=t=>{e.setPagination(n=>{let r=h(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}});},e.resetPageIndex=t=>{var n;e.setPageIndex(t?K:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageIndex)??K);},e.resetPageSize=t=>{var n;e.setPageSize(t?he:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageSize)??he);},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,h(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return {...e,pageIndex:i,pageSize:n}});},e.setPageCount=t=>e.setPagination(n=>{let r=h(t,e.options.pageCount??-1);return typeof r==`number`&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=b(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},x(e.options,`debugTable`,`getPageOptions`)),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return n===-1?true:n===0?false:te.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length;}},_e=()=>({top:[],bottom:[]}),ve={getInitialState:e=>({rowPinning:_e(),...e}),getDefaultOptions:e=>({onRowPinningChange:g(`rowPinning`,e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(e=>n===`bottom`?{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:[...(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)]}:n===`top`?{top:[...(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)],bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))}:{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))});},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n==`function`?n(e):n??r??true},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`top`:o?`bottom`:false},e.getPinnedIndex=()=>{let n=e.getIsPinned();return n?((n===`top`?t.getTopRows():t.getBottomRows())?.map(e=>{let{id:t}=e;return t}))?.indexOf(e.id)??-1:-1};},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>e.setRowPinning(t?_e():e.initialState?.rowPinning??_e()),e.getIsSomeRowsPinned=t=>{let n=e.getState().rowPinning;return t?!!n[t]?.length:!!(n.top?.length||n.bottom?.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??true?(n??[]).map(t=>{let n=e.getRow(t,true);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r})),e.getTopRows=b(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,`top`),x(e.options,`debugRows`,`getTopRows`)),e.getBottomRows=b(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,`bottom`),x(e.options,`debugRows`,`getBottomRows`)),e.getCenterRows=b(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},x(e.options,`debugRows`,`getCenterRows`));}},ye={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:g(`rowSelection`,e),enableRowSelection:true,enableMultiRowSelection:true,enableSubRowSelection:true}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=true);}):i.forEach(e=>{delete r[e.id];}),r});},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,i={...n};return e.getRowModel().rows.forEach(t=>{be(i,t.id,r,true,e);}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=b(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?xe(e,n):{rows:[],flatRows:[],rowsById:{}},x(e.options,`debugTable`,`getSelectedRowModel`)),e.getFilteredSelectedRowModel=b(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?xe(e,n):{rows:[],flatRows:[],rowsById:{}},x(e.options,`debugTable`,`getFilteredSelectedRowModel`)),e.getGroupedSelectedRowModel=b(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?xe(e,n):{rows:[],flatRows:[],rowsById:{}},x(e.options,`debugTable`,`getGroupedSelectedRowModel`)),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=false),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=false),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?false:t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked);},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked);};},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!i:n,e.getCanSelect()&&i===n)return a;let o={...a};return be(o,e.id,n,r?.selectChildren??true,t),o});},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return Se(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return J(e,n)===`some`},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return J(e,n)===`all`},e.getCanSelect=()=>typeof t.options.enableRowSelection==`function`?t.options.enableRowSelection(e):t.options.enableRowSelection??true,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection==`function`?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??true,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection==`function`?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??true,e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{t&&e.toggleSelected(n.target?.checked);}};}},be=(e,t,n,r,i)=>{var a;let o=i.getRow(t,true);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=true)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>be(e,t.id,n,r,i));};function xe(e,t){let n=e.getState().rowSelection,r=[],i={},a=function(e,t){return e.map(e=>{var t;let o=Se(e,n);if(o&&(r.push(e),i[e.id]=e),(t=e.subRows)!=null&&t.length&&(e={...e,subRows:a(e.subRows)}),o)return e}).filter(Boolean)};return {rows:a(t.rows),flatRows:r,rowsById:i}}function Se(e,t){return t[e.id]??false}function J(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return false;let i=true,a=false;return e.subRows.forEach(e=>{if(!(a&&!i)&&(e.getCanSelect()&&(Se(e,t)?a=true:i=false),e.subRows&&e.subRows.length)){let n=J(e,t);n===`all`?a=true:(n===`some`&&(a=true),i=false);}}),i?`all`:a?`some`:false}var Ce=/([0-9]+)/gm,we=(e,t,n)=>je(Y(e.getValue(n)).toLowerCase(),Y(t.getValue(n)).toLowerCase()),Te=(e,t,n)=>je(Y(e.getValue(n)),Y(t.getValue(n))),Ee=(e,t,n)=>Ae(Y(e.getValue(n)).toLowerCase(),Y(t.getValue(n)).toLowerCase()),De=(e,t,n)=>Ae(Y(e.getValue(n)),Y(t.getValue(n))),Oe=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:rAe(e.getValue(n),t.getValue(n));function Ae(e,t){return e===t?0:e>t?1:-1}function Y(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function je(e,t){let n=e.split(Ce).filter(Boolean),r=t.split(Ce).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),a=parseInt(t,10),o=[i,a].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(o[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return -1}return n.length-r.length}var X={alphanumeric:we,alphanumericCaseSensitive:Te,text:Ee,textCaseSensitive:De,datetime:Oe,basic:ke},Me=[T,H,L,ue,O,se,me,W,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:`auto`,sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:g(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=false;for(let t of n){let n=t?.getValue(e.id);if(Object.prototype.toString.call(n)===`[object Date]`)return X.datetime;if(typeof n==`string`&&(r=true,n.split(Ce).length>1))return X.alphanumeric}return r?X.text:X.basic},e.getAutoSortDir=()=>typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id)==`string`?`asc`:`desc`,e.getSortingFn=()=>{if(!e)throw Error();return _(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn===`auto`?e.getAutoSortingFn():t.options.sortingFns?.[e.columnDef.sortingFn]??X[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),a=n!=null;t.setSorting(o=>{let s=o?.find(t=>t.id===e.id),c=o?.findIndex(t=>t.id===e.id),l=[],u,d=a?n:i===`desc`;return u=o!=null&&o.length&&e.getCanMultiSort()&&r?s?`toggle`:`add`:o!=null&&o.length&&c!==o.length-1?`replace`:s?`toggle`:`replace`,u===`toggle`&&(a||i||(u=`remove`)),u===`add`?(l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-(t.options.maxMultiSortColCount??2**53-1))):l=u===`toggle`?o.map(t=>t.id===e.id?{...t,desc:d}:t):u===`remove`?o.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],l});},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()===`desc`?`desc`:`asc`,e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==r&&(t.options.enableSortingRemoval??true)&&(!n||(t.options.enableMultiRemove??true))?false:i===`desc`?`asc`:`desc`:r},e.getCanSort=()=>(e.columnDef.enableSorting??true)&&(t.options.enableSorting??true)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{let n=t.getState().sorting?.find(t=>t.id===e.id);return n?n.desc?`desc`:`asc`:false},e.getSortIndex=()=>t.getState().sorting?.findIndex(t=>t.id===e.id)??-1,e.clearSorting=()=>{t.setSorting(t=>t!=null&&t.length?t.filter(t=>t.id!==e.id):[]);},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):false));}};},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{e.setSorting(t?[]:e.initialState?.sorting??[]);},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel());}},F,G,ge,ve,ye,fe];function Ne(e){process.env.NODE_ENV!==`production`&&(e.debugAll||e.debugTable)&&console.info(`Creating Table Instance...`);let t=[...Me,...e._features??[]],n={_features:t},r=n._features.reduce((e,t)=>Object.assign(e,t.getDefaultOptions==null?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e},a={...e.initialState??{}};n._features.forEach(e=>{a=(e.getInitialState==null?void 0:e.getInitialState(a))??a;});let o=[],s=false,c={_features:t,options:{...r,...e},initialState:a,_queue:e=>{o.push(e),s||(s=true,Promise.resolve().then(()=>{for(;o.length;)o.shift()();s=false;}).catch(e=>setTimeout(()=>{throw e})));},reset:()=>{n.setState(n.initialState);},setOptions:e=>{n.options=i(h(e,n.options));},getState:()=>n.options.state,setState:e=>{n.options.onStateChange==null||n.options.onStateChange(e);},_getRowId:(e,t,r)=>(n.options.getRowId==null?void 0:n.options.getRowId(e,t,r))??`${r?[r.id,t].join(`.`):t}`,getCoreRowModel:()=>(n._getCoreRowModel||=n.options.getCoreRowModel(n),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw process.env.NODE_ENV===`production`?Error():Error(`getRow could not find row with ID: ${e}`);return r},_getDefaultColumnDef:b(()=>[n.options.defaultColumn],e=>(e??={},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t;return ((t=e.renderValue())==null||t.toString==null?void 0:t.toString())??null},...n._features.reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef==null?void 0:t.getDefaultColumnDef()),{}),...e}),x(e,`debugColumns`,`_getDefaultColumnDef`)),_getColumnDefs:()=>n.options.columns,getAllColumns:b(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return i===void 0&&(i=0),e.map(e=>{let a=S(n,e,i,r),o=e;return a.columns=o.columns?t(o.columns,a,i+1):[],a})};return t(e)},x(e,`debugColumns`,`getAllColumns`)),getAllFlatColumns:b(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),x(e,`debugColumns`,`getAllFlatColumns`)),_getAllFlatColumnsById:b(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),x(e,`debugColumns`,`getAllFlatColumnsById`)),getAllLeafColumns:b(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),x(e,`debugColumns`,`getAllLeafColumns`)),getColumn:e=>{let t=n._getAllFlatColumnsById()[e];return process.env.NODE_ENV!==`production`&&!t&&console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(n,c);for(let e=0;eb(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,a){i===void 0&&(i=0);let o=[];for(let c=0;ce._autoResetPageIndex()))}function Fe(e,t,n){return n.options.filterFromLeafRows?Ie(e,t,n):Le(e,t,n)}function Ie(e,t,n){let r=[],i={},a=n.options.maxLeafRowFilterDepth??100,o=function(e,s){s===void 0&&(s=0);let c=[];for(let u=0;ub(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let e=0;e{let n=e.getColumn(t.id);if(!n)return;let r=n.getFilterFn();if(!r){process.env.NODE_ENV!==`production`&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${n.id}.`);return}i.push({id:t.id,filterFn:r,resolvedValue:(r.resolveFilterValue==null?void 0:r.resolveFilterValue(t.value))??t.value});});let o=(n??[]).map(e=>e.id),s=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());r&&s&&c.length&&(o.push(`__global__`),c.forEach(e=>{a.push({id:e.id,filterFn:s,resolvedValue:(s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))??r});}));let l,u;for(let e=0;e{n.columnFiltersMeta[t]=e;});}if(a.length){for(let e=0;e{n.columnFiltersMeta[t]=e;})){n.columnFilters.__global__=true;break}}n.columnFilters.__global__!==true&&(n.columnFilters.__global__=false);}}return Fe(t.rows,e=>{for(let t=0;te._autoResetPageIndex()))}function ze(){return e=>b(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let r=e.getState().sorting,i=[],a=r.filter(t=>e.getColumn(t.id)?.getCanSort()),o={};a.forEach(t=>{let n=e.getColumn(t.id);n&&(o[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()});});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n{var t;i.push(e),(t=e.subRows)!=null&&t.length&&(e.subRows=s(e.subRows));}),t};return {rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},x(e.options,`debugTable`,`getSortedRowModel`,()=>e._autoResetPageIndex()))}function Z(...e){let t={};for(let n=0;n=0;t--){let n=e[t];typeof n==`function`&&(n=n());let i=(n||{})[r];if(i!==void 0)return i}}});}}return t}function Be(e){let t=Z({state:{},onStateChange(){},renderFallbackValue:null,mergeOptions:(e,t)=>Z(e,t)},e),n=Ne(t),r=n.initialState;function a(){n.setOptions(()=>Z(t,e,{state:Z(r,e.state||{}),onStateChange:t=>{r=t instanceof Function?t(r):Z(r,t),e.onStateChange?.(t);}}));}return a(),{getRowModel:()=>n.getRowModel(),getHeaderGroups:()=>n.getHeaderGroups(),getColumn:e=>n.getColumn(e)}}function Q(e,t,n){let r=n.initialDeps??[],i,a=true;function o(){let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length{r=e;},o}function Ve(e,t){if(e===void 0)throw Error(`Unexpected undefined${``}`);return e}var He=(e,t)=>Math.abs(e-t)<1.01,Ue=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n);}},We=e=>{let{offsetWidth:t,offsetHeight:n}=e;return {width:t,height:n}},Ge=e=>e,Ke=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},qe=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)});};if(i(We(n)),!r.ResizeObserver)return ()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(We(n));};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r();});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n);}},Je={passive:true},Ye=typeof window>`u`?true:`onscrollend`in window,Xe=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&Ye?()=>void 0:Ue(r,()=>{t(i,false);},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r);},s=o(true),c=o(false);n.addEventListener(`scroll`,s,Je);let l=e.options.useScrollendEvent&&Ye;return l&&n.addEventListener(`scrollend`,c,Je),()=>{n.removeEventListener(`scroll`,s),l&&n.removeEventListener(`scrollend`,c);}},Ze=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},Qe=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n});},$e=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=false,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=false,this.lanesSettling=false,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e;return ((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t();});}));return {disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null;},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t];}),this.options={debug:false,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:false,getItemKey:Ge,rangeExtractor:Ke,onChange:()=>{},measureElement:Ze,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:true,isRtl:false,useScrollendEvent:false,useAnimationFrameWithResizeObserver:false,...e};},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e);},this.maybeNotify=Q(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e);},{key:process.env.NODE_ENV!==`production`&&`maybeNotify`,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null;},this._didMount=()=>()=>{this.cleanup();},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&`ownerDocument`in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e);}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify();})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=Q(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,i,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=true),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a}),{key:false}),this.getMeasurements=Q(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=false,this.lanesSettling=true,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size);}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=false);let c=this.measurementsCache.slice(0,s),l=Array(a).fill(void 0);for(let e=0;e1){s=a;let e=l[s],r=e===void 0?void 0:c[e];u=r?r.end+this.options.gap:t+n;}else {let e=this.options.lanes===1?c[i-1]:this.getFurthestMeasurement(c,i);u=e?e.end+this.options.gap:t+n,s=e?e.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,s);}let d=o.get(e),f=typeof d==`number`?d:this.options.estimateSize(i),p=u+f;c[i]={index:i,start:u,size:f,end:p,key:e,lane:s},l[s]=i;}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!==`production`&&`getMeasurements`,debug:()=>this.options.debug}),this.calculateRange=Q(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?tt({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:process.env.NODE_ENV!==`production`&&`calculateRange`,debug:()=>this.options.debug}),this.getVirtualIndexes=Q(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:process.env.NODE_ENV!==`production`&&`getVirtualIndexes`,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return true;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return true},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t));});return}let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this));},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&(this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return Ve(t[et(0,t.length-1,e=>Ve(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`)if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return [r,t];if(t===`end`&&e===this.options.count-1)return [this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return [this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile();},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile();},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile();},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=e[e.length-1]?.end??0;else {let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--;}t=Math.max(...n.filter(e=>e!==null));}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this);},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(false);},this.setOptions(e);}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll();});}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&He(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.scrollState=null;return}}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior=`auto`,this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}));this.scheduleScrollReconcile();}},et=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(ar)t=i-1;else return i}return e>0?e-1:0};function tt({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1,a=t=>e[t].start;if(e.length<=r)return {startIndex:0,endIndex:i};let o=et(0,i,a,n),s=o;if(r===1)for(;s1){let a=Array(r).fill(0);for(;se=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--;}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r));}return {startIndex:o,endIndex:s}}function nt(e){let t=0,n=new $e({observeElementRect:qe,observeElementOffset:Xe,scrollToFn:Qe,...e,onChange:(n,r)=>{r?t+=1:queueMicrotask(()=>{t+=1;}),e.onChange?.(n,r);}});return {instance:n,virtualItems:()=>n.getVirtualItems(),totalSize:()=>n.getTotalSize()}}function rt(e,t){e.component(e=>{let{position:n,coords:r,on_click:i=null}=t,a=derived(()=>n===`column`?r[0]===0:r[1]===0),o=derived(()=>n===`column`?a()?`down`:`up`:a()?`right`:`left`);e.push(``);});}function it(e,t){e.component(e=>{let{value:n=false,editable:r=true,on_change:i}=t;function a(e){r&&i(e);}let o=true,s;function c(e){e.push(`
    `),o$1(e,{label:``,interactive:r,on_change:a,get value(){return n},set value(e){n=e,o=false;}}),e.push(`
    `);}do o=true,s=e.copy(),c(s);while(!o);e.subsume(s),bind_props(t,{value:n});});}function at(e,t){e.component(e=>{let{edit:n,value:r=``,display_value:i=null,styling:a=``,header:o=false,datatype:s=`str`,latex_delimiters:l,line_breaks:u=true,editable:d=true,is_static:f=false,max_chars:p=null,components:h={},i18n:g,is_dragging:_=false,wrap_text:v=false,expanded:y=false,show_selection_buttons:b=false,coords:x,on_select_column:ee=null,on_select_row:S=null,el:C=null,onblur:w,onkeydown:T,pad_left:E=false}=t;function D(e,t=null,n=false){if(n)return String(e);let r=String(e);return !t||t<=0||r.length<=t?r:r.slice(0,t)+`...`}let O=derived(()=>!n&&!y&&p!==null&&p>0),k=derived(()=>d||i===null?r:i),A=derived(()=>O()?D(k(),p,s===`image`):k());function te(e){w?.({blur_event:e,coords:x});}function j(e){te({target:{value:r}});}let ne=true,re;function ie(e){if(n&&s!==`bool`){e.push(``),e.push(``);let t=escape_html(r);t&&e.push(`${t}`),e.push(``);}else e.push(``);if(e.push(` `),s===`bool`&&typeof r==`boolean`)e.push(``),it(e,{editable:d,on_change:j,get value(){return r},set value(e){r=e,ne=false;}});else {if(e.push(``),e.push(``),s===`image`&&h.image){e.push(``);let t=h.image;t?(e.push(``),t(e,{value:{url:A()},show_label:false,label:`cell-image`,show_download_button:false,i18n:g,gradio:{dispatch:()=>{}}}),e.push(``)):(e.push(``),e.push(``));}else s===`html`?(e.push(``),e.push(`${html(A())}`)):s===`markdown`?(e.push(``),ut$1(e,{message:A().toLocaleString(),latex_delimiters:l,line_breaks:u,chatbot:false})):(e.push(``),e.push(`${escape_html(A())}`));e.push(``);}e.push(` `),b&&x&&ee&&S?(e.push(``),rt(e,{position:`column`,coords:x,on_click:()=>ee(x[1])}),e.push(` `),rt(e,{position:`row`,coords:x,on_click:()=>S(x[0])}),e.push(``)):e.push(``),e.push(``);}do ne=true,re=e.copy(),ie(re);while(!ne);e.subsume(re),bind_props(t,{value:r,el:C});});}function ot(e,t){e.component(e=>{let{on_click:n}=t;e.push(``);});}function st(e,t){let{size:n=16}=t;e.push(`
    `);}function ct(e){e.push(``);}function lt(e,t){let{size:n=16}=t;e.push(``);}function ut(e,t){let{size:n=16}=t;e.push(``);}function dt(e,t){e.component(e=>{let{value:n,col_idx:r,is_editing:i=false,is_selected:a=false,is_static:o=false,is_bool:s=false,select_all_state:c=`unchecked`,sort_direction:u=null,sort_priority:d=null,multi_sort:f=false,is_filtered:p=false,show_menu_button:h=false,is_first_column:g=false,latex_delimiters:_,line_breaks:v=true,editable:y=true,max_chars:b=void 0,i18n:x,wrap_text:ee=false,onclick:S,on_menu_click:C,on_end_edit:w,on_select_all:T}=t,E=derived(()=>s&&y&&!o&&!!T);e.push(`
    `),E()?(e.push(``),e.push(`
    `),o$1(e,{value:c===`checked`,indeterminate:c===`indeterminate`,label:`Toggle all: ${n}`,interactive:true,on_select:()=>T?.(r,c!==`checked`)}),e.push(`
    `)):e.push(``),e.push(` `),at(e,{value:n,latex_delimiters:_,line_breaks:v,edit:i,onkeydown:e=>{[`Enter`,`Escape`,`Tab`].includes(e.key)&&w(e.key);},header:true,editable:y,is_static:o,i18n:x,max_chars:b,wrap_text:ee,coords:[r,0],pad_left:!!E()}),e.push(`
    `),u||p||o?(e.push(``),e.push(``),p?(e.push(``),e.push(``),ct(e),e.push(``)):e.push(``),e.push(` `),u?(e.push(``),e.push(``),u===`asc`?(e.push(``),lt(e,{size:13})):(e.push(``),ut(e,{size:13})),e.push(` `),f&&d!=null?(e.push(``),e.push(`${escape_html(d)}`)):e.push(``),e.push(``)):e.push(``),e.push(` `),o?(e.push(``),st(e,{size:11})):e.push(``),e.push(``)):e.push(``),e.push(` `),h?(e.push(``),ot(e,{on_click:e=>C(e,r)})):e.push(``),e.push(`
    `);});}function ft(e,t){e.component(e=>{let{value:n,display_value:r=null,datatype:i=`str`,row_idx:a,col_idx:o,col_style:s=``,cell_style:c=``,selection_classes:l=``,is_editing:u=false,is_flash:d=false,is_static:f=false,show_menu_button:p=false,show_selection_buttons:h=false,is_first_column:g=false,is_solo:_=false,latex_delimiters:v,line_breaks:y=true,editable:b=true,max_chars:x=void 0,i18n:ee,components:S={},is_dragging:C=false,wrap_text:w=false,onmousedown:T,ondblclick:E,oncontextmenu:D,onblur:O,on_menu_click:k,on_select_column:A,on_select_row:te}=t;e.push(`
    `),at(e,{value:n,display_value:r,latex_delimiters:v,line_breaks:y,editable:b,is_static:f,edit:u,datatype:i,onblur:O,max_chars:x,i18n:ee,components:S,show_selection_buttons:h,coords:[a,o],on_select_column:A,on_select_row:te,is_dragging:C,wrap_text:w,expanded:_}),e.push(` `),p?(e.push(``),ot(e,{on_click:k})):e.push(``),e.push(`
    `);});}function pt(e,t){e.push(``);}function mt(e,t){if(e==null)return e;if(t===`number`){let t=Number(e);return isNaN(t)?e:t}if(t===`bool`){if(typeof e==`boolean`)return e;if(typeof e==`number`)return e!==0;let t=String(e).toLowerCase();return t===`true`||t===`1`?true:t===`false`||t===`0`?false:e}if(t===`date`){let t=new Date(e);return isNaN(t.getTime())?e:t.toISOString()}return e}function $(e,t){let{icon:n}=t;n==`add-column-right`?(e.push(``),e.push(``)):n==`add-column-left`?(e.push(``),e.push(``)):n==`add-row-above`?(e.push(``),e.push(``)):n==`add-row-below`?(e.push(``),e.push(``)):n==`delete-row`?(e.push(``),e.push(``)):n==`delete-column`?(e.push(``),e.push(``)):n==`sort-asc`?(e.push(``),e.push(``)):n==`sort-desc`?(e.push(``),e.push(``)):n==`clear-sort`?(e.push(``),e.push(``)):n==`filter`?(e.push(``),e.push(``)):n==`clear-filter`?(e.push(``),e.push(``)):e.push(``),e.push(``);}function ht(e,t){e.component(e=>{let{x:n,y:r,on_add_row_above:i,on_add_row_below:a,on_add_column_left:o,on_add_column_right:s,row:c,col_count:l,row_count:u,on_delete_row:d,on_delete_col:p,can_delete_rows:h,can_delete_cols:g,on_sort:_=()=>{},on_clear_sort:v=()=>{},sort_direction:y=null,sort_priority:b=null,on_filter:x=()=>{},on_clear_filter:ee=()=>{},filter_active:S=null,editable:C=true,i18n:w}=t,T=derived(()=>c===-1),E=derived(()=>C&&u[1]===`dynamic`),D=derived(()=>C&&l[1]===`dynamic`);e.push(` `),e.push(``),e.push(``);});}function gt(e,t){e.component(e=>{let{show_fullscreen_button:n=false,show_copy_button:s=false,show_search:c=`none`,fullscreen:l=false,on_copy:u,current_search_query:f=null,onfullscreen:h}=t,g=false,_;function v(){g=true,_&&clearTimeout(_),_=setTimeout(()=>{g=false;},2e3);}async function y(){await u(),v();}e.push(``);});}function _t(e,t){let[n,r]=e;return t.some(([e,t])=>e===n&&t===r)}function vt(e,t){let[n,r]=e;if(!t.some(([e,t])=>e===n&&t===r))return ``;let i=t.some(([e,t])=>e===n-1&&t===r),a=t.some(([e,t])=>e===n+1&&t===r),o=t.some(([e,t])=>e===n&&t===r-1),s=t.some(([e,t])=>e===n&&t===r+1);return `cell-selected${i?` no-top`:``}${a?` no-bottom`:``}${o?` no-left`:``}${s?` no-right`:``}`}async function bt(e,t){if(!e||!e.length)return;let n=(t||e.flatMap((e,t)=>e.map((e,n)=>[t,n]))).reduce((t,[n,r])=>{t[n]=t[n]||{};let i=String(e[n][r].value);return t[n][r]=i.includes(`,`)||i.includes(`"`)||i.includes(` +`)?`"${i.replace(/"/g,`""`)}"`:i,t},{}),r=Object.keys(n).sort((e,t)=>e-+t);if(!r.length)return;let i=Object.keys(n[r[0]]).sort((e,t)=>e-+t),a=r.map(e=>i.map(t=>n[e][t]||``).join(`,`)).join(` +`);try{await navigator.clipboard.writeText(a);}catch(e){throw Error(`Failed to copy to clipboard: `+e.message)}}function xt(e,t){return t.filter(n);function n(t){var n=-1;return e.split(` +`).every(r);function r(e){if(!e)return true;var r=e.split(t).length;return n<0&&(n=r),n===r&&r>1}}}function St(e){let t=atob(e.split(`,`)[1]),n=e.split(`,`)[0].split(`:`)[1].split(`;`)[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r);for(let e=0;e{if(!e?.target?.result||typeof e.target.result!=`string`)return;let[r]=xt(e.target.result,[`,`,` `]),[i,...a]=d(r).parseRows(e.target.result);t(i),n(a);}),i.readAsText(r);}function wt(e,t,n){let{dtype:r,filter:i,value:a}=n,o=String(e.getValue(t)??``),s=a??``;if(r===`number`){let e=parseFloat(o),t=parseFloat(s);if(isNaN(e)||isNaN(t))return i===`Is empty`?o.trim()===``:i===`Is not empty`?o.trim()!==``:true;switch(i){case `=`:return e===t;case `≠`:return e!==t;case `>`:return e>t;case `<`:return e=t;case `≤`:return e<=t;case `Is empty`:return o.trim()===``;case `Is not empty`:return o.trim()!==``;default:return true}}let c=o.toLowerCase(),l=s.toLowerCase();switch(i){case `Contains`:return c.includes(l);case `Does not contain`:return !c.includes(l);case `Starts with`:return c.startsWith(l);case `Ends with`:return c.endsWith(l);case `Is`:return c===l;case `Is not`:return c!==l;case `Is empty`:return o.trim()===``;case `Is not empty`:return o.trim()!==``;default:return true}}function Tt(e){let t=[],n=[];function r(e,t){if(!e||e===`auto`)return null;if(e.endsWith(`%`)){let n=parseFloat(e);return !isFinite(n)||t<=0?null:n/100*t}if(e.endsWith(`px`)){let t=parseFloat(e);return isFinite(t)?t:null}let n=parseFloat(e);return isFinite(n)?n:null}let i=derived(()=>{if(!e.show_row_numbers())return 0;let t=e.header_row_el();return t?t.querySelector(`.row-number-header`)?.getBoundingClientRect().width??48:0});function a(n){if(t[n]!==void 0)return `width: ${t[n]}px; flex: 0 0 ${t[n]}px;`;let i=r(e.column_widths()[n],e.viewport_width());return i==null?`width: 150px; flex: 0 0 150px;`:`width: ${i}px; flex: 0 0 ${i}px;`}return {get col_widths(){return t},get col_lefts(){return n},get total_header_width(){return 0},get header_height(){return 0},get row_num_width(){return i()},get_col_style:a}}function Et(e,t){e.component(e=>{let{datatype:n,label:r=null,show_label:i=true,headers:a=[],values:o=[],col_count:l,row_count:u,latex_delimiters:d,components:h={},editable:g=true,wrap:_=false,root:v,i18n:y,max_height:b=500,line_breaks:x=true,column_widths:ee=[],show_row_numbers:S=false,upload:C,stream_handler:w,buttons:T=null,value_is_output:E=false,max_chars:D=void 0,show_search:O=`none`,pinned_columns:k=0,static_columns:A=[],fullscreen:te=false,display_value:j=null,styling:ne=null,onchange:re,oninput:ie,onselect:ae,onedit:oe,onsearch:M,onfullscreen:N}=t,se=derived(()=>(o??[]).map((e,t)=>{let r={_index:t};return (e??[]).forEach((e,t)=>{let i=Array.isArray(n)?n[t]:n;r[`col_${t}`]=mt(e,i);}),r})),P=derived(()=>{let e=a??[];return l[1]===`fixed`&&e.length`${n+e.length}`)]),e.length||(e=Array(l[0]).fill(null).map((e,t)=>`${t}`)),e.map(e=>e??``)}),ce=derived(()=>P().map((e,t)=>({id:`col_${t}`,accessorKey:`col_${t}`,header:e,size:150,minSize:45,filterFn:wt,meta:{colIndex:t,datatype:Array.isArray(n)?n[t]:n,isStatic:A.includes(t)||A.includes(e),isPinned:t({left:ce().filter((e,t)=>te.id)})),ue=Be({get data(){return se()},get columns(){return ce()},state:{get sorting(){return F},get columnFilters(){return I},get globalFilter(){return L},get columnPinning(){return le()}},onSortingChange:e=>{F=typeof e==`function`?e(F):e;},onColumnFiltersChange:e=>{I=typeof e==`function`?e(I):e;},onGlobalFilterChange:e=>{L=typeof e==`function`?e(L):e;},getCoreRowModel:Pe(),getSortedRowModel:ze(),getFilteredRowModel:Re(),globalFilterFn:`includesString`,enableSorting:true,enableMultiSort:true,maxMultiSortColCount:3,autoResetPageIndex:false,autoResetExpanded:false}),R=derived(()=>ue.getRowModel().rows),z=derived(()=>ue.getHeaderGroups()),de=nt({get count(){return R().length},getScrollElement:()=>void 0,estimateSize:()=>35,overscan:10,measureElement:(e,t,n)=>{let r=e.getBoundingClientRect().height;if(r>0)return r;let i=e.getAttribute(`data-index`);if(i!=null){let e=n.itemSizeCache?.get(Number(i));if(typeof e==`number`)return e}return 35}}),fe=derived(()=>de.virtualItems()),pe=derived(()=>de.totalSize()),B=[],V=false,H=false,U=false,me=false,W=null,G=null,K=false,he=false;function q(e){return Array.isArray(n)?n[e]??`str`:n}let ge=[2.2,1.7,1.4,1.2,1.1,1.05];function _e(e){let t=e.match(/^\s*(#{1,6})\s+(.+)/);if(t){let e=t[1].length;return t[2].replace(/[*_`[\]()]/g,``).length*ge[e-1]}return e.replace(/[*_`#[\]()]/g,``).length}function ve(e){let t=e.replace(/<[^>]+>/g,``).length,n=e.match(/0&&t!==`image`&&e.length>D?e.slice(0,D)+`...`:e}function be(){return (z()[0]?.headers??[]).map(e=>{let t=e.column.columnDef.meta?.colIndex??0,n=q(t),r=`col_${t}`;if(n===`bool`)return {val:`false`,col_idx:t,dtype:n};let i=n===`markdown`?_e:n===`html`?ve:e=>e.length,a=``,s=-1;for(let e of R()){let c=e.original._index,l=g?e.original[r]:j?.[c]?.[t]??o?.[c]?.[t];if(l==null)continue;let u=ye(String(l),n),d=i(u);d>s&&(s=d,a=u);}return {val:a,col_idx:t,dtype:n}})}function xe(e,t){return j?.[e]?.[t]===void 0?String(o?.[e]?.[t]??``):j[e][t]}function Se(e,t){return ne?.[e]?.[t]??``}function J(e,t){re?.({data:e??o,headers:t??P(),metadata:null}),E||ie?.(),E=false;}function Ce(e,t,n){let r=!g||A.includes(n)||A.includes(P()[n]);r||e.preventDefault(),e.stopPropagation();let i=[t,n];if(e.shiftKey&&V){let[e,t]=V,[n,r]=i,a=[];for(let i=Math.min(e,n);i<=Math.max(e,n);i++)for(let e=Math.min(t,r);e<=Math.max(t,r);e++)a.push([i,e]);B=a;}else B=e.metaKey||e.ctrlKey?B.some(([e,r])=>e===t&&r===n)?B.filter(([e,r])=>!(e===t&&r===n)):[...B,i]:[i];V=i,U=false,me=false,W=null,G=null,H=false,ae?.({index:i,value:o?.[t]?.[n],row_value:o?.[t]??[],col_value:o?.map(e=>e[n])??[]}),r||tick().then(()=>void 0);}function we(e,t,n){!g||A.includes(n)||A.includes(P()[n])||(e.preventDefault(),e.stopPropagation(),H=[t,n]);}function Te(e){let{coords:t}=e,n=e.blur_event.target;if(!n||n.value===void 0)return;let[r,i]=t,a=o?.[r]?.[i],s=n.value;if(String(a)!==String(s)){let e=o.map(e=>[...e]);e[r][i]=s,o=e,oe?.({index:[r,i],value:s,previous_value:String(a??``)}),J(e);}}function Ee(e,t){e.target instanceof HTMLAnchorElement||(e.preventDefault(),e.stopPropagation(),g&&(H=false,V=false,B=[],W=null,G=null,me=t,U=g?t:false));}function De(e){[`Escape`,`Enter`,`Tab`].includes(e)&&(U=false);}function Oe(e,t){if(e.stopPropagation(),G?.col===t)G=null;else {let n=e.target.closest(`th`);if(n){let e=n.getBoundingClientRect();G={col:t,x:e.right,y:e.bottom};}}}function ke(e,t){let n=`col_${e}`,r=t===`desc`,i=F.findIndex(e=>e.id===n);F=i>=0&&F[i].desc===r?F.filter(e=>e.id!==n):[...F.filter(e=>e.id!==n),{id:n,desc:r}].slice(-3);}function Ae(){F=[];}function Y(e,t,n,r){let i=`col_${e}`;I=I.findIndex(e=>e.id===i)>=0?I.filter(e=>e.id!==i):[...I,{id:i,value:{dtype:t,filter:n,value:r}}];}function je(){I=[];}function Me(e){if(u[1]!==`dynamic`)return;let t=o[0]?.length||P().length||1,n=Array(t).fill(``),r=[...o];e===void 0?r.push(n):r.splice(e,0,n),o=r,J(r),V=[e??r.length-1,0];}function Ne(e){if(l[1]!==`dynamic`)return;let t=[...a??[],`Header ${(a?.length??0)+1}`],n=o.map(e=>[...e,``]);e!==void 0&&(t.splice(e,0,t.pop()),n.forEach(t=>t.splice(e,0,t.pop()))),o=n,a=t,J(n,t);}function Fe(e){o.length<=1||(o=[...o.slice(0,e),...o.slice(e+1)],J(o),W=null,G=null);}function Ie(e){l[1]===`dynamic`&&((o[0]?.length??0)<=1||(o=o.map(t=>[...t.slice(0,e),...t.slice(e+1)]),a=[...(a??[]).slice(0,e),...(a??[]).slice(e+1)],J(o,a),W=null,G=null,V=false,B=[],H=false));}function Le(e,t){Me(t===`above`?e:e+1),W=null;}function Z(e,t){Ne(t===`left`?e:e+1),W=null;}function Q(e,t){let n=o.map(n=>{let r=[...n];return r[e]=t,r});o=n,J(n);}function Ve(e){if(!o.length)return `unchecked`;let t=0;for(let n of o){let r=n[e];(r===true||r===`true`||r===`True`)&&t++;}return t===0?`unchecked`:t===o.length?`checked`:`indeterminate`}async function Ue(){await bt(o.map(e=>e.map((e,t)=>({id:`${t}`,value:e}))),B.length>0?B:null),K=true,setTimeout(()=>K=false,800);}function Ge(e,t,n){if(e.stopPropagation(),W?.row===t&&W.col===n)W=null;else {let r=e.target.closest(`.body-cell, td`);if(r){let e=r.getBoundingClientRect();W={row:t,col:n,x:e.right,y:e.bottom};}}}function Ke(e){Ct(typeof e==`string`?e:e?.data??``,e=>(a=e.map(e=>e??``),a.map((e,t)=>({id:`h_${t}`,value:e}))),e=>{o=e,J(e,a);});}let qe=Tt({header_row_el:()=>void 0,header_table_el:()=>void 0,resolved_headers:()=>P(),row_data:()=>se(),show_row_numbers:()=>S,column_widths:()=>ee,viewport_width:()=>0,on_resize:void 0}),Je=derived(()=>W!==null||G!==null);function Ye(e){let t=`col_${e}`,n=F.findIndex(e=>e.id===t);return n===-1?{direction:null,priority:null}:{direction:F[n].desc?`desc`:`asc`,priority:n+1}}function Xe(e){return I.some(t=>t.id===`col_${e}`)}let Ze=true,Qe;function $e(e){e.push(``),r&&r.length!==0&&i||T===null||T.includes(`fullscreen`)||T===null||T.includes(`copy`)||O!==`none`?(e.push(``),e.push(`
    `),r&&r.length!==0&&i?(e.push(``),e.push(`

    ${escape_html(r)}

    `)):e.push(``),e.push(` `),gt(e,{show_fullscreen_button:T===null?true:T.includes(`fullscreen`),fullscreen:te,on_copy:Ue,show_copy_button:T===null?true:T.includes(`copy`),show_search:O,onfullscreen:N,current_search_query:L||null}),e.push(`
    `)):e.push(``),e.push(` `),g$1(e,{upload:C,stream_handler:w,flex:false,center:false,boundedheight:false,disable_click:true,root:v,onload:Ke,aria_label:y(`dataframe.drop_to_upload`),get dragging(){return he},set dragging(e){he=e,Ze=false;},children:e=>{e.push(``),r&&r.length!==0?(e.push(``),e.push(`${escape_html(r)}`)):e.push(``),e.push(` `),S?(e.push(``),e.push(``)):e.push(``),e.push(``);let t=ensure_array_like(z());for(let n=0,r=t.length;n`);let i=ensure_array_like(r.headers);for(let t=0,n=i.length;t1,is_filtered:Xe(r),show_menu_button:l[1]===`dynamic`,is_first_column:r===0&&!S,latex_delimiters:d,line_breaks:x,editable:g,max_chars:D,i18n:y,wrap_text:_,onclick:Ee,on_menu_click:Oe,on_end_edit:De,on_select_all:Q});}e.push(``);}if(e.push(``),R().length>0){e.push(``);let t=be();e.push(``),S?(e.push(``),e.push(``)):e.push(``),e.push(``);let n=ensure_array_like(t);for(let t=0,r=n.length;t
    `),r.dtype===`markdown`?(e.push(``),ut$1(e,{message:r.val,latex_delimiters:d,line_breaks:x,chatbot:false})):r.dtype===`html`?(e.push(``),e.push(`${html(r.val)}`)):(e.push(``),e.push(`${escape_html(r.val)}`)),e.push(`
    `);}e.push(`
    `);}else e.push(``);e.push(`
    \xA0
    `);let n=ensure_array_like(fe());for(let t=0,r=n.length;t`),e.push(`e===a)?` z-index: 3;`:``}`)}>`),S?(e.push(``),e.push(`
    ${escape_html(a+1)}
    `)):e.push(``),e.push(` `);let t=ensure_array_like(i.getVisibleCells());for(let n=0,r=t.length;nCe(e,a,i),ondblclick:e=>we(e,a,i),oncontextmenu:e=>{let t=!!r.column.columnDef.meta?.isStatic;!g||t||(e.preventDefault(),Ge(e,a,i));},onblur:Te,on_menu_click:e=>Ge(e,a,i),on_select_column:e=>{B=R().map((t,n)=>[n,e]),V=B[0];},on_select_row:e=>{B=P().map((t,n)=>[e,n]),V=B[0];}});}e.push(`
    `);}else e.push(``);e.push(``);}e.push(``);},$$slots:{default:true}}),e.push(` `),e.push(``),e.push(` `),W||G?(e.push(``),ht(e,{x:W?.x??G?.x??0,y:W?.y??G?.y??0,row:G?-1:W?.row??0,col_count:l,row_count:u,on_add_row_above:()=>Le(W?.row??-1,`above`),on_add_row_below:()=>Le(W?.row??-1,`below`),on_add_column_left:()=>Z(W?.col??G?.col??-1,`left`),on_add_column_right:()=>Z(W?.col??G?.col??-1,`right`),on_delete_row:()=>Fe(W?.row??-1),on_delete_col:()=>Ie(W?.col??G?.col??-1),editable:g,can_delete_rows:!G&&o.length>1&&g,can_delete_cols:o.length>0&&(o[0]?.length??0)>1&&g,i18n:y,on_sort:G?e=>{ke(G.col,e),G=null;}:void 0,on_clear_sort:G?()=>{Ae(),G=null;}:void 0,sort_direction:G?Ye(G.col).direction:null,sort_priority:G?Ye(G.col).priority:null,on_filter:G?(e,t,n)=>{Y(G.col,e,t,n),G=null;}:void 0,on_clear_filter:G?()=>{je(),G=null;}:void 0,filter_active:G?Xe(G.col):null})):e.push(``),e.push(` `),o.length===0&&g&&u[1]===`dynamic`?(e.push(``),pt(e)):e.push(``),e.push(``);}do Ze=true,Qe=e.copy(),$e(Qe);while(!Ze);e.subsume(Qe),bind_props(t,{headers:a,values:o,value_is_output:E});});}function Dt(r,i){r.component(r=>{let{$$slots:a,$$events:o,...s}=i,c=new m$1(s),l=c.props.fullscreen??false,u=derived(()=>{let e=c.props.datatype;if(!Array.isArray(e))return e;let t=c.props.headers,n=c.props.value?.headers;if(!t||!n)return e;let r=new Map;for(let n=0;nr.get(t)??e[n]??`str`)}),d=c.props.value?JSON.stringify(c.props.value):null;function f$1(e){c.props.value=e;let t=JSON.stringify(e);t!==d&&(d=t,c.dispatch(`change`,e));}function p(){c.dispatch(`input`);}function h(e){c.dispatch(`select`,e);}function g(e){c.dispatch(`edit`,e);}n$1(r,{visible:c.shared.visible,elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,scale:c.shared.scale,min_width:c.shared.min_width,padding:false,container:false,fullscreen:l,children:e=>{f(e,spread_props([{autoscroll:c.shared.autoscroll,i18n:c.i18n},c.shared.loading_status])),e.push(` `),Et(e,{headers:c.props.value?.headers??[],values:c.props.value?.data??[],display_value:c.props.value?.metadata?.display_value??null,styling:c.props.value?.metadata?.styling??null,col_count:c.props.col_count,row_count:c.props.row_count,label:c.shared.label,show_label:c.shared.show_label,wrap:c.props.wrap,datatype:u(),latex_delimiters:c.props.latex_delimiters,max_height:c.props.max_height,editable:c.shared.interactive??true,line_breaks:c.props.line_breaks,column_widths:c.props.column_widths??[],root:c.shared.root,i18n:c.i18n,upload:c.shared.client?.upload,stream_handler:c.shared.client?.stream,buttons:c.props.buttons,max_chars:c.props.max_chars,show_row_numbers:c.props.show_row_numbers,show_search:c.props.show_search,pinned_columns:c.props.pinned_columns,static_columns:c.props.static_columns??[],fullscreen:l,onfullscreen:()=>{l=!l;},onchange:f$1,oninput:p,onselect:h,onedit:g}),e.push(``);},$$slots:{default:true}});});} + +export { Et as BaseDataFrame, Dt as default }; +//# sourceMappingURL=Index22-II_oPmLe.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index23-Bmx4jGe9.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index23-Bmx4jGe9.js new file mode 100644 index 0000000000000000000000000000000000000000..511d43442172cb041e4ef3003e6edd8ac1a0e143 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index23-Bmx4jGe9.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { n } from './src3-h7ZBftxa.js'; +import './server-CR3r1l-0.js'; +import { e as escape_html, s as spread_props, k as await_block, c as bind_props, d as derived, h as ensure_array_like, b as attr_style, a as attr_class, j as clsx } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import n$1 from './Example2-70VzHOK1.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './html-CfyvkLET.js'; + +function i(e,t){e.component(e=>{let{component:n,runtime:r,$$slots:i,$$events:a,...o}=t;e.push(``);});}function a(e,t){e.component(e=>{let{components:a,component_props:o,load_component:s,headers:c,samples:l,sample_labels:u=null,value:d=null,root:f,proxy_url:p,samples_per_page:m=10,onclick:h,onselect:g,layout:_=null}=t,v=derived(()=>p?`/proxy=${p}file=`:`${f}/file=`),y=derived(()=>(a.length<2||u!==null)&&_!==`table`),b=derived(()=>u?u.map(e=>[e]):l??[]),x=derived(()=>b().length>m),S=derived(()=>x()?b().slice(0*m,1*m):b().slice()),C=derived(()=>Math.ceil(b().length/m)),w=derived(()=>{if(!x())return [];let e=[];return [0,0,C()-1].forEach(t=>{for(let n=t-2;n<=t+2;n++)n>=0&&n0&&n-e[e.length-1]>1&&e.push(-1),e.push(n));}),e}),T=[];async function E(e){let t=JSON.parse(e);T=await Promise.all(t&&t.map(async e=>await Promise.all(e.map(async(e,t)=>{let n=s(a[t].name,`example`,a[t].class_id);return {value:e,component:n.component,runtime:n.runtime}}))));}let D=derived(()=>JSON.stringify(S()||[]));await_block(e,E(D()),()=>{if(y()){e.push(``),e.push(``);}else e.push(``);e.push(``);},t=>{if(y()){e.push(``),e.push(``);}else if(S().length>0){e.push(``),e.push(`
    `);let t=ensure_array_like(c);for(let n=0,i=t.length;n${escape_html(i)}`);}e.push(``);let n=ensure_array_like(T);for(let t=0,s=n.length;t`);let c=ensure_array_like(s);for(let n=0,s=c.length;n`):(e.push(``),e.push(``),await_block(e,Promise.all([l,u]),()=>{},([a,c])=>{i(e,spread_props([{component:a,runtime:c},o[n],{value:s,samples_dir:v(),type:`table`,selected:t===-1,index:t,root:f}]));}),e.push(``)),e.push(``);}e.push(``);}e.push(`
    `);}else e.push(``);if(e.push(` `),x()){e.push(``),e.push(`
    Pages: `);let t=ensure_array_like(w());for(let n=0,i=t.length;n`),e.push(`
    ...
    `)):(e.push(``),e.push(`${escape_html(i+1)}`)),e.push(``);}e.push(`
    `);}else e.push(``);e.push(``);}),e.push(``),bind_props(t,{value:d});});}function o(n$1,i){n$1.component(n$1=>{let{$$slots:o,$$events:s,...c}=i,l=new m$1(c);l.watch_for_change();let u=derived(()=>l.props.samples??[]);n(n$1,{visible:l.shared.visible,padding:false,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,scale:l.shared.scale,min_width:l.shared.min_width,allow_overflow:false,container:false,children:e=>{l.shared.show_label?(e.push(``),e.push(`
    ${escape_html(l.shared.label||`Examples`)}
    `)):e.push(``),e.push(` `),a(e,spread_props([{onclick:e=>(l.props.value=Array.isArray(e.index)?e.index[0]:e.index,l.dispatch(`click`)),onselect:e=>l.dispatch(`select`,e),load_component:l.shared.load_component},l.props,{root:l.shared.root,samples:u()}])),e.push(``);},$$slots:{default:true}});});} + +export { o as default }; +//# sourceMappingURL=Index23-Bmx4jGe9.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index24-CpPs1vS-.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index24-CpPs1vS-.js new file mode 100644 index 0000000000000000000000000000000000000000..83411de05807425a35207c4924bc97423184d881 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index24-CpPs1vS-.js @@ -0,0 +1,14 @@ +import { J as m$1, L as onDestroy } from './2-CQ_Bz8hd.js'; +import { n, V as Ve, p as m, w } from './src3-h7ZBftxa.js'; +export { default as BaseExample } from './Example15-DOVMOMFU.js'; +import './async-Cv1-GZGV.js'; +import { e as escape_html, a as attr_class, f as attr, d as derived } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './html-CfyvkLET.js'; + +var c=(e,t)=>{if(e==null||e===``)return true;let n=t?/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/:/^\d{4}-\d{2}-\d{2}$/,r=e.match(n)!==null,i=e.match(/^(?:\s*now\s*(?:-\s*\d+\s*[dmhs])?)?\s*$/)!==null;return r||i},d=(e,t)=>{if(!e||e===``){let e=new Date;return {selected_date:e,current_year:e.getFullYear(),current_month:e.getMonth(),selected_hour:e.getHours(),selected_minute:e.getMinutes(),selected_second:e.getSeconds(),is_pm:e.getHours()>=12}}try{let n=e;!t&&e.match(/^\d{4}-\d{2}-\d{2}$/)&&(n+=` 00:00:00`);let r=new Date(n.replace(` `,`T`));if(!isNaN(r.getTime()))return {selected_date:r,current_year:r.getFullYear(),current_month:r.getMonth(),selected_hour:r.getHours(),selected_minute:r.getMinutes(),selected_second:r.getSeconds(),is_pm:r.getHours()>=12}}catch{}let n=new Date;return {selected_date:n,current_year:n.getFullYear(),current_month:n.getMonth(),selected_hour:n.getHours(),selected_minute:n.getMinutes(),selected_second:n.getSeconds(),is_pm:n.getHours()>=12}};function g(a,l){a.component(a=>{let{$$slots:u,$$events:f,...p}=l,m$2=new m$1(p);m$2.props.value;let _=m$2.props.value;new Date().getFullYear();new Date().getMonth();new Date().getHours();new Date().getMinutes();new Date().getSeconds();let E=derived(()=>c(_,m$2.props.include_time)),D=derived(()=>!m$2.shared.interactive),O=()=>{let e=d(_,m$2.props.include_time);e.selected_date,e.current_year,e.current_month,e.selected_hour,e.selected_minute,e.selected_second,e.is_pm;},j=e=>{},M=()=>{};onDestroy(()=>{typeof window<`u`&&(window.removeEventListener(`click`,j),window.removeEventListener(`scroll`,M,true));}),O();let F=true,I;function L(e){n(e,{visible:m$2.shared.visible,elem_id:m$2.shared.elem_id,elem_classes:m$2.shared.elem_classes,scale:m$2.shared.scale,min_width:m$2.shared.min_width,allow_overflow:false,padding:true,children:e=>{e.push(`
    `),m$2.shared.show_label&&m$2.props.buttons&&m$2.props.buttons.length>0?(e.push(``),Ve(e,{buttons:m$2.props.buttons,on_custom_button_click:e=>{m$2.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),m(e,{show_label:m$2.shared.show_label,info:m$2.props.info,children:e=>{e.push(`${escape_html(m$2.shared.label||`Date`)}`);}}),e.push(`
    `),m$2.shared.interactive?(e.push(``),e.push(``)):e.push(``),e.push(`
    `),e.push(``),e.push(``);},$$slots:{default:true}});}do F=true,I=a.copy(),L(I);while(!F);a.subsume(I);});} + +export { g as default }; +//# sourceMappingURL=Index24-CpPs1vS-.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index25-9GOXgOOT.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index25-9GOXgOOT.js new file mode 100644 index 0000000000000000000000000000000000000000..179d9bf84bd3b6ebc0e1ee5dc9f9f47357424c26 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index25-9GOXgOOT.js @@ -0,0 +1,17 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, _ as _$1, j as ne, p as m, y as me, e as be, r as _e, D } from './src3-h7ZBftxa.js'; +import { d } from './Index20-B60rIffr.js'; +export { default as BaseExample } from './Example18-B-up1lL9.js'; +import { a as attr_class, e as escape_html, h as ensure_array_like, b as attr_style, i as stringify, f as attr, d as derived, c as bind_props, s as spread_props } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function _(e,t){e.component(e=>{let{label:n,checked:r=false,disabled:i=false,onclick:a}=t;e.push(`
    ${escape_html(n)}
    `),bind_props(t,{checked:r});});}function v(e,t){e.component(e=>{let {$$slots:o,$$events:p,...v}=t,y=v.gradio,b=false,x=derived(()=>!y.shared.interactive),S=[],C=derived(()=>y.props.buttons||[`copy`]),w=e=>{y.dispatch(`custom_button_click`,{id:e});},k=false,A,j=``,M=false,N=false,P=[`red`,`green`,`blue`,`yellow`,`purple`,`teal`,`orange`,`cyan`,`lime`,`pink`],F={red:`rgba(254, 202, 202, 0.7)`,green:`rgba(209, 250, 229, 0.7)`,blue:`rgba(219, 234, 254, 0.7)`,yellow:`rgba(254, 243, 199, 0.7)`,purple:`rgba(233, 213, 255, 0.7)`,teal:`rgba(204, 251, 241, 0.7)`,orange:`rgba(254, 215, 170, 0.7)`,cyan:`rgba(207, 250, 254, 0.7)`,lime:`rgba(217, 249, 157, 0.7)`,pink:`rgba(252, 231, 243, 0.7)`},I=derived(()=>{let e={};return y.props.color_map?e={...y.props.color_map}:(e={},y.props.speakers.forEach((t,n)=>{let r=P[n%P.length];e[t]=F[r];})),e});function L(e,t,n){S[e][t]=n,S=[...S],y.props.value=[...S];}async function z(e){return typeof e==`string`?e:await y.shared.server.format(e)}async function B(){if(`clipboard`in navigator){let e=await z(y.props.value);await navigator.clipboard.writeText(e),V();}}function V(){k=true,A&&clearTimeout(A),A=setTimeout(()=>{k=false;},1e3);}let H=true,U;function W(e){if(e.push(``),y.shared.show_label&&(C().some(e=>typeof e==`string`&&e===`copy`)||C().some(e=>typeof e!=`string`))?(e.push(``),Ve(e,{buttons:C(),on_custom_button_click:w,children:e=>{C().some(e=>typeof e==`string`&&e===`copy`)?(e.push(``),_$1(e,{Icon:k?D:ne,onclick:B,label:k?`Copied`:`Copy`})):e.push(``),e.push(``);}})):e.push(``),e.push(` `),m(e,{show_label:y.shared.show_label,info:y.props.info,children:e=>{e.push(`${escape_html(y.shared.label||`Dialogue`)}`);}}),e.push(` `),y.props.ui_mode===`both`?(e.push(``),e.push(``),_(e,{label:`Plain Text`,disabled:N||M,onclick:async e=>{if(e.checked){N=true;try{j=await z(S);}finally{N=false;}}else {M=true;try{y.props.value=await y.shared.server.unformat({text:j}),S=[...y.props.value];}finally{M=false;}}},get checked(){return b},set checked(e){b=e,H=false;}}),e.push(``)):e.push(``),e.push(` `),!b&&y.props.ui_mode!==`text`){e.push(``),e.push(``),M?(e.push(``),e.push(`
    Converting to dialogue format...
    `)):e.push(``),e.push(` `);let t=ensure_array_like(S);for(let n=0,i=t.length;n
    `),x()){e.push(``),e.push(``);let t=escape_html(i.speaker);t&&e.push(`${t}`),e.push(``);}else e.push(``),d(e,{label:``,show_label:false,container:true,interactive:true,value:i.speaker,choices:y.props.speakers.map(e=>[e,e]),on_change:e=>L(n,`speaker`,e)});e.push(`
    `);let o=escape_html(i.text);o&&e.push(`${o}`),e.push(` `),e.push(``),e.push(`
    `),y.props.max_lines==null||y.props.max_lines&&n`),e.push(``)):e.push(``),e.push(` `);}e.push(``);}else if(b||y.props.ui_mode!==`dialogue`){e.push(``),e.push(``),N?(e.push(``),e.push(`
    Converting to plain text...
    `)):e.push(``),e.push(` `),e.push(``),e.push(``);}else e.push(``);e.push(` `),y.props.submit_btn&&!x()?(e.push(``),e.push(`
    `)):e.push(``),e.push(``);}do H=true,U=e.copy(),W(U);while(!H);e.subsume(U);});}function y(n$1,r){n$1.component(n$1=>{let{$$slots:i,$$events:a,...s}=r,c=new m$1(s);c.props.value,n(n$1,{visible:c.shared.visible,elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,scale:c.shared.scale,min_width:c.shared.min_width,allow_overflow:true,padding:c.shared.container,children:e=>{c.shared.loading_status?(e.push(``),f(e,spread_props([{autoscroll:c.shared.autoscroll,i18n:c.i18n},c.shared.loading_status,{on_clear_status:()=>c.dispatch(`clear_status`,c.shared.loading_status)}]))):e.push(``),e.push(` `),v(e,{gradio:c}),e.push(``);},$$slots:{default:true}});});} + +export { v as BaseDialogue, y as default }; +//# sourceMappingURL=Index25-9GOXgOOT.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index26-CANDxuEr.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index26-CANDxuEr.js new file mode 100644 index 0000000000000000000000000000000000000000..01655247cee094caf2bb8a28f877e12ce6d789ec --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index26-CANDxuEr.js @@ -0,0 +1,13 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { r as r$1 } from './Index5-DfYNKinm.js'; +import { e as escape_html, f as attr } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './Image-BFJk-f6P.js'; + +function r(e,r){e.component(e=>{let{elem_id:i=``,elem_classes:a=[],visible:o=true,variant:s=`secondary`,size:c=`lg`,value:l,icon:u,disabled:d=false,scale:f=null,min_width:p=void 0,on_click:m,children:h}=r;function g(){if(m?.(),!l?.url)return;let e;if(!l.orig_name&&l.url){let t=l.url.split(`/`);e=t[t.length-1],e=e.split(`?`)[0].split(`#`)[0];}else e=l.orig_name;let t=document.createElement(`a`);t.href=l.url,t.download=e||`file`,document.body.appendChild(t),t.click(),document.body.removeChild(t);}r$1(e,{size:c,variant:s,elem_id:i,elem_classes:a,visible:o,onclick:g,scale:f,min_width:p,disabled:d,children:e=>{u?(e.push(``),e.push(``)):e.push(``),e.push(` `),h?(e.push(``),h(e),e.push(``)):e.push(``),e.push(``);}});});}function i(t,i){t.component(t=>{let{$$slots:a,$$events:o,...s}=i,c=new m$1(s);c.watch_for_change(),r(t,{value:c.props.value,variant:c.props.variant,elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,size:c.props.size,scale:c.shared.scale,icon:c.props.icon,min_width:c.shared.min_width,visible:c.shared.visible,disabled:!c.shared.interactive,on_click:()=>c.dispatch(`click`),children:e=>{e.push(`${escape_html(c.shared.label??``)}`);}});});} + +export { r as BaseButton, i as default }; +//# sourceMappingURL=Index26-CANDxuEr.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index27-D9mpZsuB.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index27-D9mpZsuB.js new file mode 100644 index 0000000000000000000000000000000000000000..6e5b499b7350671575212371239525be99e58271 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index27-D9mpZsuB.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { f as attr, a as attr_class, i as stringify, s as spread_props } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; + +function i(i,a){i.component(i=>{let {$$slots:o,$$events:s,...c}=a,l=new m$1(c);i.push(``),l.shared.loading_status&&l.props.show_progress?(i.push(``),f(i,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{status:l.shared.loading_status?l.shared.loading_status.status==`pending`?`generating`:l.shared.loading_status.status:null}]))):i.push(``),i.push(` `),c.children?.(i),i.push(``);});} + +export { i as default }; +//# sourceMappingURL=Index27-D9mpZsuB.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index28-P2BzQenW.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index28-P2BzQenW.js new file mode 100644 index 0000000000000000000000000000000000000000..f9019f1b5fd025ecbb2550526490ff4672ff24f3 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index28-P2BzQenW.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { s as spread_props, v as fallback, a as attr_class, e as escape_html, h as ensure_array_like, i as stringify, c as bind_props } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function i(e,t){e.component(e=>{let n=t.json,a=fallback(t.depth,1/0),o=fallback(t._cur,0),s=fallback(t._last,true),c=[],l=false,u=[``,``],d=false;function f(e){return e===null?`null`:typeof e}function p(e){return JSON.stringify(e)}function m(e){switch(f(e)){case `function`:return `f () {...}`;case `symbol`:return e.toString();default:return p(e)}}c=f(n)===`object`?Object.keys(n):[],l=Array.isArray(n),u=l?[`[`,`]`]:[`{`,`}`];d=a`),e.push(`${escape_html(u[0])}${escape_html(u[1])}`),s?e.push(``):(e.push(``),e.push(`,`)),e.push(``);else if(d)e.push(``),e.push(`${escape_html(u[0])}...${escape_html(u[1])}`),!s&&d?(e.push(``),e.push(`,`)):e.push(``),e.push(``);else {e.push(``),e.push(`${escape_html(u[0])}
      `);let t=ensure_array_like(c);for(let s=0,u=t.length;s`),l?e.push(``):(e.push(``),e.push(`${escape_html(p(u))}:`)),e.push(` `),f(n[u])===`object`?(e.push(``),i(e,{json:n[u],depth:a,_cur:o+1,_last:s===c.length-1}),e.push(``)):(e.push(``),e.push(`${escape_html(m(n[u]))}`),s`),e.push(`,`)):e.push(``),e.push(``)),e.push(``);}e.push(`
    ${escape_html(u[1])}`),s?e.push(``):(e.push(``),e.push(`,`)),e.push(``);}e.push(``),bind_props(t,{json:n,depth:a,_cur:o,_last:s});});}function a(a,o){a.component(a=>{let{$$slots:s,$$events:c,...l}=o,u=new m$1(l);u.watch_for_change(),n(a,{visible:u.shared.visible,elem_id:u.shared.elem_id,elem_classes:u.shared.elem_classes,container:true,scale:u.shared.scale,min_width:u.shared.min_width,children:e=>{u.shared.loading_status?(e.push(``),f(e,spread_props([{autoscroll:u.shared.autoscroll,i18n:u.i18n},u.shared.loading_status,{on_clear_status:()=>u.dispatch(`clear_status`,u.shared.loading_status)}]))):e.push(``),e.push(` `),i(e,{json:u.props.value}),e.push(``);},$$slots:{default:true}});});} + +export { a as default }; +//# sourceMappingURL=Index28-P2BzQenW.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index29-BQYQwCpR.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index29-BQYQwCpR.js new file mode 100644 index 0000000000000000000000000000000000000000..e420f4f07b9b5d6ff30ec505848b4754e7636530 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index29-BQYQwCpR.js @@ -0,0 +1,12 @@ +import { J as m$1, K as tick } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { V as Ve, h as h$1, v as v$1, g as g$1, l as z, _ as _$1, Y, m as ee, n, z as ze } from './src3-h7ZBftxa.js'; +import { g as g$2 } from './src4-BlBbNhwG.js'; +import './async-Cv1-GZGV.js'; +import { c as bind_props, b as attr_style, h as ensure_array_like, a as attr_class, f as attr, e as escape_html, d as derived, s as spread_props } from './renderer-Dic3PuWn.js'; +import { h as html } from './html-CfyvkLET.js'; + +var h=e=>{let t=[`B`,`KB`,`MB`,`GB`,`PB`],n=0;for(;e>1024;)e/=1024,n++;let r=t[n];return e.toFixed(1)+` `+r};function g(e,t){e.component(e=>{let{value:n,selectable:r=false,height:a=void 0,i18n:o,allow_reordering:s=false,onselect:c,onchange:l,ondelete:u,ondownload:d}=t;function f(e){let t=e.lastIndexOf(`.`);return t===-1?[e,``]:[e.slice(0,t),e.slice(t)]}let p=derived(()=>(Array.isArray(n)?n:[n]).map(e=>{let[t,n]=f(e.orig_name??``);return {...e,filename_stem:t,filename_ext:n}}));function g(e){d?.(e);}let _=typeof window<`u`;e.push(`
    `);let v=ensure_array_like(p());for(let t=0,n=v.length;t1)}>`),p().length>1?(e.push(``),e.push(``)):e.push(``),e.push(``);}e.push(`
    `),s&&p().length>1?(e.push(``),e.push(`⋮⋮`)):e.push(``),e.push(` ${escape_html(n.filename_stem)} ${escape_html(n.filename_ext)}`),n.url?(e.push(``),g$1(e,{href:n.url,onclick:()=>g(n),download:_&&window.__is_colab__?null:n.orig_name,children:e=>{e.push(`${html(n.size==null?`(size unknown)`:h(n.size))} ⇣`);},$$slots:{default:true}})):(e.push(``),e.push(`${escape_html(o(`file.uploading`))}`)),e.push(`
    `);});}function _(e,t){e.component(e=>{let{value:i,label:o,show_label:s,selectable:c,i18n:u,height:d,buttons:f=null,on_custom_button_click:p=null,on_select:m,on_download:h}=t;s&&f&&f.length>0?(e.push(``),Ve(e,{buttons:f,on_custom_button_click:p})):e.push(``),e.push(` `),h$1(e,{show_label:s,float:i===null,Icon:z,label:o||`File`}),e.push(` `),i&&(!Array.isArray(i)||i.length>0)?(e.push(``),g(e,{i18n:u,selectable:c,onselect:m,ondownload:h,value:i,height:d??void 0})):(e.push(``),v$1(e,{unpadded_box:true,size:`large`,children:e=>{z(e);}})),e.push(``);});}function v(e,t){e.component(e=>{let{value:n=void 0,label:i,show_label:s=true,file_count:c=`single`,file_types:h=null,selectable:_=false,root:v,height:y=void 0,i18n:b,max_file_size:x=null,upload:S,stream_handler:C,uploading:w=false,allow_reordering:T=false,upload_promise:E=void 0,buttons:D=null,on_custom_button_click:O=null,onchange:k,onclear:A,ondrag:j,onupload:M,onerror:N,ondelete:P,onselect:F,children:I}=t;async function L(e){n=Array.isArray(n)?[...n,...Array.isArray(e)?e:[e]]:n?[n,...Array.isArray(e)?e:[e]]:e,await tick(),k?.(n),M?.(n);}function R(){n=null,k?.(null),A?.();}let z$1=false,B=true,V;function H(e){s&&D&&D.length>0?(e.push(``),Ve(e,{buttons:D,on_custom_button_click:O})):e.push(``),e.push(` `),h$1(e,{show_label:s,Icon:z,float:!n,label:i||`File`}),e.push(` `),n&&(!Array.isArray(n)||n.length>0)?(e.push(``),Ve(e,{buttons:D||[],on_custom_button_click:O,children:e=>{c===`single`&&(Array.isArray(n)?n.length>0:n!==null)?e.push(``):(e.push(``),_$1(e,{Icon:Y,label:b(`common.upload`),children:e=>{g$2(e,{icon_upload:true,onload:L,filetype:h,file_count:c,max_file_size:x,root:v,onerror:N,stream_handler:C,upload:S,get upload_promise(){return E},set upload_promise(e){E=e,B=false;},get dragging(){return z$1},set dragging(e){z$1=e,B=false;},get uploading(){return w},set uploading(e){w=e,B=false;}});}})),e.push(` `),_$1(e,{Icon:ee,label:b(`common.clear`),onclick:e=>{e.stopPropagation(),R();}}),e.push(``);}}),e.push(` `),g(e,{i18n:b,onselect:F,selectable:_,value:n,height:y,onchange:k,ondelete:P,allow_reordering:T}),e.push(``)):(e.push(``),g$2(e,{onload:L,filetype:h,file_count:c,max_file_size:x,root:v,onerror:N,stream_handler:C,upload:S,height:y,get upload_promise(){return E},set upload_promise(e){E=e,B=false;},get dragging(){return z$1},set dragging(e){z$1=e,B=false;},get uploading(){return w},set uploading(e){w=e,B=false;},children:e=>{I?.(e),e.push(``);},$$slots:{default:true}})),e.push(``);}do B=true,V=e.copy(),H(V);while(!B);e.subsume(V),bind_props(t,{value:n,uploading:w,upload_promise:E});});}function y(n$1,r){n$1.component(n$1=>{let{$$slots:i,$$events:a,...o}=r,l=null,u=false;class d extends m$1{async get_data(){return l&&(await l,await tick()),await super.get_data()}}let f$1=new d(o);f$1.props.value;let h=true,g;function y(e){n(e,{visible:f$1.shared.visible,variant:f$1.props.value?`solid`:`dashed`,border_mode:u?`focus`:`base`,padding:false,elem_id:f$1.shared.elem_id,elem_classes:f$1.shared.elem_classes,container:f$1.shared.container,scale:f$1.shared.scale,min_width:f$1.shared.min_width,allow_overflow:false,children:e=>{f(e,spread_props([{autoscroll:f$1.shared.autoscroll,i18n:f$1.i18n},f$1.shared.loading_status,{status:f$1.shared.loading_status?.status||`complete`,on_clear_status:()=>f$1.dispatch(`clear_status`,f$1.shared.loading_status)}])),e.push(` `),f$1.shared.interactive?(e.push(``),v(e,{upload:(...e)=>f$1.shared.client.upload(...e),stream_handler:(...e)=>f$1.shared.client.stream(...e),label:f$1.shared.label,show_label:f$1.shared.show_label,value:f$1.props.value,file_count:f$1.props.file_count,file_types:f$1.props.file_types,selectable:f$1.props._selectable,height:f$1.props.height??void 0,root:f$1.shared.root,allow_reordering:f$1.props.allow_reordering,max_file_size:f$1.shared.max_file_size,buttons:f$1.props.buttons,on_custom_button_click:e=>{f$1.dispatch(`custom_button_click`,{id:e});},onchange:e=>{f$1.props.value=e;},ondrag:e=>u=e,onclear:()=>f$1.dispatch(`clear`),onselect:e=>f$1.dispatch(`select`,e),onupload:()=>f$1.dispatch(`upload`),onerror:e=>{f$1.shared.loading_status=f$1.shared.loading_status||{},f$1.shared.loading_status.status=`error`,f$1.dispatch(`error`,e);},ondelete:e=>{f$1.dispatch(`delete`,e);},i18n:f$1.i18n,get upload_promise(){return l},set upload_promise(e){l=e,h=false;},children:e=>{ze(e,{i18n:f$1.i18n,type:`file`});},$$slots:{default:true}})):(e.push(``),_(e,{on_select:e=>f$1.dispatch(`select`,e),on_download:e=>f$1.dispatch(`download`,e),selectable:f$1.props._selectable,value:f$1.props.value,label:f$1.shared.label,show_label:f$1.shared.show_label,height:f$1.props.height,i18n:f$1.i18n,buttons:f$1.props.buttons,on_custom_button_click:e=>{f$1.dispatch(`custom_button_click`,{id:e});}})),e.push(``);},$$slots:{default:true}});}do h=true,g=n$1.copy(),y(g);while(!h);n$1.subsume(g);});} + +export { _, g, v, y }; +//# sourceMappingURL=Index29-BQYQwCpR.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index3-CP6pEq_w.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index3-CP6pEq_w.js new file mode 100644 index 0000000000000000000000000000000000000000..455ffef84d6f4c766f7e53b2edba5ca911c3b92d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index3-CP6pEq_w.js @@ -0,0 +1,10 @@ +import { J as m$1, K as tick } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { V as Ve, p as m, r as _e, s as ve, n, _, j as ne, D } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, f as attr, b as attr_style, e as escape_html, c as bind_props, s as spread_props, d as derived } from './renderer-Dic3PuWn.js'; + +function f(e,t){e.component(e=>{let{value:a=``,value_is_output:u=false,lines:f=1,placeholder:p=``,label:m$1,info:h=void 0,disabled:g=false,show_label:_$1=true,container:v=true,max_lines:y=void 0,type:b=`text`,buttons:x=null,oncustombuttonclick:S=null,submit_btn:C=null,stop_btn:w=null,rtl:T=false,autofocus:E=false,text_align:D$1=void 0,autoscroll:O=true,max_length:k=void 0,html_attributes:A=null,validation_error:j=void 0,onchange:M,onsubmit:N,onstop:P,onblur:F,onselect:I,oninput:L,onfocus:R,oncopy:z}=t,B=false,V,H=!C;async function U(){if(`clipboard`in navigator){try{await navigator.clipboard.writeText(a),z?.({value:a});}catch(e){console.error(`COPYING CLIPBOARD FAILED`,e);}W();}}function W(){B=true,V&&clearTimeout(V),V=setTimeout(()=>{B=false;},1e3);}if(e.push(``),_$1&&x&&x.length>0?(e.push(``),Ve(e,{buttons:x,on_custom_button_click:S,children:e=>{x.some(e=>typeof e==`string`&&e===`copy`)?(e.push(``),_(e,{Icon:B?D:ne,onclick:U,label:B?`Copied`:`Copy`})):e.push(``),e.push(``);}})):e.push(``),e.push(` `),m(e,{show_label:j?true:_$1,info:h,children:e=>{e.push(`${escape_html(m$1)} `),j?(e.push(``),e.push(`
    ${escape_html(j)}
    `)):e.push(``),e.push(``);}}),e.push(`
    `),f===1)e.push(``),b===`text`?(e.push(``),e.push(``)):b===`password`?(e.push(``),e.push(``)):b===`email`?(e.push(``),e.push(``)):e.push(``),e.push(``);else {e.push(``),e.push(``);}e.push(` `),C?(e.push(``),e.push(``),C===true?(e.push(``),_e(e)):(e.push(``),e.push(`${escape_html(C)}`)),e.push(``)):e.push(``),e.push(` `),w?(e.push(``),e.push(``),w===true?(e.push(``),ve(e,{fill:`none`,stroke_width:2.5})):(e.push(``),e.push(`${escape_html(w)}`)),e.push(``)):e.push(``),e.push(`
    `),bind_props(t,{value:a,value_is_output:u});});}function p(n$1,r){n$1.component(n$1=>{let{$$slots:i,$$events:o,...s}=r,c=new m$1(s),l=derived(()=>c.shared.label||`Textbox`);c.props.value=c.props.value??``,c.props.value;async function p(e){!c.shared||!c.props||(h(),c.props.value=e,await tick(),c.dispatch(`input`));}function m(e){!c.shared||!c.props||(h(),c.props.value=e);}function h(){c.shared.validation_error=null,c.shared.loading_status&&(c.shared.loading_status.validation_error=null);}let g=true,_;function v(e){n(e,{visible:c.shared.visible,elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,scale:c.shared.scale,min_width:c.shared.min_width,allow_overflow:false,padding:c.shared.container,rtl:c.props.rtl,children:e=>{c.shared.loading_status?(e.push(``),f$1(e,spread_props([{autoscroll:c.shared.autoscroll,i18n:c.i18n},c.shared.loading_status,{show_validation_error:false,on_clear_status:()=>c.dispatch(`clear_status`,c.shared.loading_status)}]))):e.push(``),e.push(` `),f(e,{label:l(),info:c.props.info,show_label:c.shared.show_label,lines:c.props.lines,type:c.props.type,rtl:c.props.rtl,text_align:c.props.text_align,max_lines:c.props.max_lines,placeholder:c.props.placeholder,submit_btn:c.props.submit_btn,stop_btn:c.props.stop_btn,buttons:c.props.buttons,autofocus:c.props.autofocus,container:c.shared.container,autoscroll:c.shared.autoscroll,max_length:c.props.max_length,html_attributes:c.props.html_attributes,validation_error:c.shared?.loading_status?.validation_error||c.shared?.validation_error,onchange:m,oninput:p,onsubmit:()=>{h(),c.dispatch(`submit`);},onblur:()=>c.dispatch(`blur`),onselect:e=>c.dispatch(`select`,e),onfocus:()=>c.dispatch(`focus`),onstop:()=>c.dispatch(`stop`),oncopy:e=>c.dispatch(`copy`,e),oncustombuttonclick:e=>{c.dispatch(`custom_button_click`,{id:e});},disabled:!c.shared.interactive,get value(){return c.props.value},set value(e){c.props.value=e,g=false;}}),e.push(``);},$$slots:{default:true}});}do g=true,_=n$1.copy(),v(_);while(!g);n$1.subsume(_);});} + +export { f, p }; +//# sourceMappingURL=Index3-CP6pEq_w.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index30-DHHjlg4i.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index30-DHHjlg4i.js new file mode 100644 index 0000000000000000000000000000000000000000..7a181ad0413b41cbfb9540ba749288aee464441c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index30-DHHjlg4i.js @@ -0,0 +1,14 @@ +export { default as BaseExample } from './Example21-DCmcGVAD.js'; +export { _ as BaseFile, v as BaseFileUpload, g as FilePreview, y as default } from './Index29-BQYQwCpR.js'; +import './async-Cv1-GZGV.js'; +import './renderer-Dic3PuWn.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +import './src4-BlBbNhwG.js'; +//# sourceMappingURL=Index30-DHHjlg4i.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index31-C-UKlG2f.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index31-C-UKlG2f.js new file mode 100644 index 0000000000000000000000000000000000000000..7c3554f388336efaee77bde889dda447b2373c3a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index31-C-UKlG2f.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, h, l as z } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { d as derived, s as spread_props, c as bind_props, a as attr_class, h as ensure_array_like, f as attr, e as escape_html } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function s(e){e.push(``);}function c(e,t){e.component(e=>{let{value:n=void 0,disabled:r,onchange:i}=t;e.push(``),bind_props(t,{value:n});});}var l=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23888888'%20d='M6%202c-1.1%200-1.99.9-1.99%202L4%2020c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8l-6-6H6zm7%207V3.5L18.5%209H13z'/%3e%3c/svg%3e`,u=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20viewBox='0%200%2032%2032'%20version='1.1'%20id='svg7'%20sodipodi:docname='light-folder-new.svg'%20inkscape:version='1.3.2%20(091e20e,%202023-11-25)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3csodipodi:namedview%20id='namedview7'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='7.375'%20inkscape:cx='15.932203'%20inkscape:cy='16'%20inkscape:window-width='1312'%20inkscape:window-height='529'%20inkscape:window-x='0'%20inkscape:window-y='38'%20inkscape:window-maximized='0'%20inkscape:current-layer='svg7'%20/%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath1'%3e%3cpath%20d='m69.63%2012.145h-.052c-22.727-.292-46.47%204.077-46.709%204.122-2.424.451-4.946%202.974-5.397%205.397-.044.237-4.414%2023.983-4.122%2046.71-.292%2022.777%204.078%2046.523%204.122%2046.761.451%202.423%202.974%204.945%205.398%205.398.237.044%2023.982%204.413%2046.709%204.121%2022.779.292%2046.524-4.077%2046.761-4.121%202.423-.452%204.946-2.976%205.398-5.399.044-.236%204.413-23.981%204.121-46.709.292-22.777-4.077-46.523-4.121-46.761-.453-2.423-2.976-4.946-5.398-5.397-.238-.045-23.984-4.414-46.71-4.122'%20id='path1'%20/%3e%3c/clipPath%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20y2='352.98'%20x2='-601.15'%20y1='663.95'%20x1='-591.02'%20id='2'%3e%3cstop%20stop-color='%23a0a0a0'%20id='stop1'%20/%3e%3cstop%20offset='1'%20stop-color='%23aaa'%20id='stop2'%20/%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20y2='354.29'%20x2='-704.05'%20y1='647.77'%20x1='-701.19'%20id='1'%3e%3cstop%20stop-color='%23acabab'%20id='stop3'%20/%3e%3cstop%20offset='1'%20stop-color='%23d4d4d4'%20id='stop4'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='0'%20x1='59.12'%20y1='-19.888'%20x2='59.15'%20y2='-37.783'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(4.17478%200%200%204.16765-1069.7%20447.73)'%3e%3cstop%20stop-color='%23a0a0a0'%20id='stop5'%20/%3e%3cstop%20offset='1'%20stop-color='%23bdbdbd'%20id='stop6'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20transform='matrix(.07089%200%200%20.07017%2023.295-40.67)'%20fill='%2360aae5'%20id='g7'%20style='fill:%23888888;fill-opacity:1'%3e%3cpath%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20d='m-884.1%20294.78c-4.626%200-8.349%203.718-8.349%208.335v161.41l468.19%201v-121.2c0-4.618-3.724-8.335-8.35-8.335h-272.65c-8.51.751-9.607-.377-13.812-5.981-5.964-7.968-14.969-21.443-20.84-29.21-4.712-6.805-5.477-6.02-13.292-6.02z'%20fill='url(%230)'%20color='%23000'%20id='path6'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3crect%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20y='356.85'%20x='-890.28'%20height='295.13'%20width='463.85'%20fill='url(%231)'%20stroke='url(%231)'%20stroke-width='2.378'%20rx='9.63'%20id='rect6'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3crect%20width='463.85'%20height='295.13'%20x='-890.28'%20y='356.85'%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20fill='none'%20stroke='url(%232)'%20stroke-linejoin='round'%20stroke-linecap='round'%20stroke-width='5.376'%20rx='9.63'%20id='rect7'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3c/g%3e%3c/svg%3e`;function d(e,t){e.component(e=>{let{path:n=[],index_path:r=[],selected_files:i=[],selected_folders:a=[],is_selected_entirely:f=false,interactive:p,selectable:m=false,ls_fn:h,file_count:g=`multiple`,valid_for_selection:_,oncheck:v,onselect:y}=t,b=[],x=[],S=e=>{x.includes(e)||(x=[...x,e]);};(async()=>{b=await h(n),_&&(b=[{name:`.`,type:`file`},...b]),x=b.map((e,t)=>e.type===`folder`&&(f||i.some(t=>t[0]===e.name))?t:null).filter(e=>e!==null);})();function C(e,t,n){y?.({index:e,value:t.join(`/`),selected:true});}e.push(``);let w=ensure_array_like(b);for(let t=0,f=w.length;te[0]===_&&e.length===1);e.push(`
  • `),p?(e.push(``),f===`folder`&&g===`single`?(e.push(``),e.push(``)):(e.push(``),c(e,{disabled:false,value:T,onchange:e=>{v?.({path:[...n,_],checked:e,type:f}),m&&C([...r,t],[...n,_]),f===`folder`&&e&&S(t);}})),e.push(``)):e.push(``),e.push(` `),f===`folder`?(e.push(``),e.push(``),s(e),e.push(``)):(e.push(``),e.push(``)),e.push(` ${escape_html(_)} `),f===`folder`&&x.includes(t)?(e.push(``),d(e,{path:[...n,_],index_path:[...r,t],selected_files:i.filter(e=>e[0]===_).map(e=>e.slice(1)),selected_folders:a.filter(e=>e[0]===_).map(e=>e.slice(1)),is_selected_entirely:a.some(e=>e[0]===_&&e.length===1),interactive:p,selectable:m,ls_fn:h,file_count:g,valid_for_selection:b??false,oncheck:v,onselect:y})):e.push(``),e.push(`
  • `);}e.push(``);});}function f(e,t){e.component(e=>{let{interactive:n,file_count:r=`multiple`,value:i=void 0,selectable:a=false,ls_fn:s,oninput:c,onselect:l}=t,u=[],f=(e,t)=>e.join(`/`)===t.join(`/`),p=(e,t)=>t.some(t=>f(t,e)),m=(e,t)=>e.join(`/`).startsWith(t.join(`/`));e.push(`
    `),d(e,{path:[],selected_files:i,selected_folders:u,interactive:n,selectable:a,ls_fn:s,file_count:r,valid_for_selection:false,oncheck:e=>{let{path:t,checked:n,type:a}=e;n?r===`single`?i=[t]:a===`folder`?p(t,u)||(u=[...u,t]):p(t,i)||(i=[...i,t]):(u=u.filter(e=>!m(t,e)),a===`folder`?(u=u.filter(e=>!m(e,t)),i=i.filter(e=>!m(e,t))):i=i.filter(e=>!f(e,t))),c?.();},onselect:l}),e.push(`
    `),bind_props(t,{value:i});});}function p(s,c){s.component(s=>{let{$$slots:l,$$events:u,...d}=c,p=new m$1(d,{value:[]});derived(()=>[p.props.root_dir,p.props.glob,p.props.ignore_glob])();let m=true,h$1;function g(e){n(e,{visible:p.shared.visible,variant:p.props.value===null?`dashed`:`solid`,border_mode:`base`,padding:false,elem_id:p.shared.elem_id,elem_classes:p.shared.elem_classes,container:p.shared.container,scale:p.shared.scale,min_width:p.shared.min_width,allow_overflow:true,overflow_behavior:`auto`,height:p.props.height,max_height:p.props.max_height,min_height:p.props.min_height,children:e=>{f$1(e,spread_props([p.shared.loading_status,{autoscroll:p.shared.autoscroll,i18n:p.i18n,on_clear_status:()=>p.dispatch(`clear_status`,p.shared.loading_status)}])),e.push(` `),p.shared.show_label&&p.props.buttons&&p.props.buttons.length>0?(e.push(``),Ve(e,{buttons:p.props.buttons,on_custom_button_click:e=>{p.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),h(e,{show_label:p.shared.show_label,Icon:z,label:p.shared.label||`FileExplorer`,float:false}),e.push(` `),f(e,{file_count:p.props.file_count,interactive:p.shared.interactive,selectable:p.props._selectable,ls_fn:p.shared.server.ls,oninput:()=>p.dispatch(`input`),onselect:e=>p.dispatch(`select`,e),get value(){return p.props.value},set value(e){p.props.value=e,m=false;}}),e.push(``);},$$slots:{default:true}});}do m=true,h$1=s.copy(),g(h$1);while(!m);s.subsume(h$1);});} + +export { p as default }; +//# sourceMappingURL=Index31-C-UKlG2f.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index32-CNqjvop7.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index32-CNqjvop7.js new file mode 100644 index 0000000000000000000000000000000000000000..91726cc7c0aa77f6308dec008deefb181c11f568 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index32-CNqjvop7.js @@ -0,0 +1,13 @@ +import { L as onDestroy, J as m$1, T as B, K as tick, N as he } from './2-CQ_Bz8hd.js'; +import { h, f } from './statustracker-cy5aG8h8.js'; +import { h as h$1, H, V as Ve, a as He, _, m as ee, B as Be, Z, n, z as ze, v } from './src3-h7ZBftxa.js'; +import { t } from './Image-BFJk-f6P.js'; +import { f as f$1 } from './ImagePreview-BZkRir9q.js'; +import { g, p } from './src4-BlBbNhwG.js'; +import './async-Cv1-GZGV.js'; +import { c as bind_props, a as attr_class, f as attr, b as attr_style, s as spread_props, d as derived } from './renderer-Dic3PuWn.js'; + +function k(e,t){e.push(``);}function P(e,t){e.component(e=>{let a,{stream_state:o=`closed`,streaming:s=false,pending:c=false,root:l=``,stream_every:d=1,mode:h$1=`image`,mirror_webcam:g,include_audio:v,webcam_constraints:y=null,i18n:b,upload:x,value:S=null,time_limit:C=null,onstream:w,oncapture:D,onerror:j,onstart_recording:P,onstop_recording:F,onclose_stream:I}=t;function R(){if((!s||s&&z)&&(void 0).videoWidth&&(void 0).videoHeight){var e=a.getContext(`2d`);if(a.width=(void 0).videoWidth,a.height=(void 0).videoHeight,e.drawImage(void 0,0,0,(void 0).videoWidth,(void 0).videoHeight),g&&(e.scale(-1,1),e.drawImage(void 0,-(void 0).videoWidth,0)),s&&(!z||o===`waiting`))return;if(s){let e=a.toDataURL(`image/jpeg`);w?.(e);return}a.toBlob(e=>{s?w?.(e):D?.(e);},`image/${s?`jpeg`:`png`}`,.8);}}let z=false,B=[],V,H,U;function ee(){if(z){U.stop();let e=new Blob(B,{type:H}),t=new FileReader;t.onload=async function(t){if(t.target){let t=((await x(await he([new File([e],`sample.`+H.substring(6))]),l))?.filter(Boolean))[0];D?.(t),F?.();}},t.readAsDataURL(e);}else if(typeof MediaRecorder<`u`){P?.(),B=[];for(let e of [`video/webm`,`video/mp4`])if(MediaRecorder.isTypeSupported(e)){H=e;break}if(H===null){console.error(`No supported MediaRecorder mimeType`);return}U=new MediaRecorder(V,{mimeType:H}),U.addEventListener(`dataavailable`,function(e){B.push(e.data);}),U.start(200);}z=!z;}function G({destroy:e}={}){h$1===`image`&&s&&(z=!z),e||(h$1===`image`?R():ee());}function K(e,t){let n=n=>{e&&!e.contains(n.target)&&!n.defaultPrevented&&t(n);};return document.addEventListener(`click`,n,true),{destroy(){document.removeEventListener(`click`,n,true);}}}onDestroy(()=>{typeof window>`u`||(G({destroy:true}),V?.getTracks().forEach(e=>e.stop()));}),e.push(`
    `),h(e,{time_limit:C}),e.push(` `),(e.push(``),e.push(`
    `),k(e),e.push(`
    `)),e.push(`
    `),bind_props(t,{click_outside:K});});}function F(e,n){e.component(e=>{let{value:r=null,label:i=void 0,show_label:a,sources:u=[`upload`,`clipboard`,`webcam`],streaming:d=false,pending:f=false,webcam_options:p$1,selectable:m=false,root:h,i18n:_$1,max_file_size:v=null,upload:S,stream_handler:T,stream_every:E,time_limit:k,show_fullscreen_button:A=true,stream_state:j=`closed`,upload_promise:M=null,onerror:N,uploading:F=false,active_source:I=null,fullscreen:L=false,dragging:R=false,onchange:z,onstream:B$1,onclear:V,ondrag:H$1,onupload:U,onselect:ee$1,onfullscreen:W,onclose_stream:G,children:K}=n,q=[],J=``;async function Y(e){if(!d){if(e.path?.toLowerCase().endsWith(`.svg`)&&e.url){let t=await(await fetch(e.url)).text();r={...e,url:`data:image/svg+xml,${encodeURIComponent(t)}`};}else r=e;await tick(),U?.();}}function X(){r=null,V?.(),z?.(null);}function te(e){X(),e.stopPropagation();}async function Z(e,n){if(n===`stream`){B$1?.({value:{url:e},is_value_data:true});return}J=Math.random().toString(36).substring(2,15);let i=new File([e],`image.${d?`jpeg`:`png`}`);q=[new B({path:i.name,orig_name:i.name,blob:i,size:i.size,mime_type:i.type,is_stream:false})],f=true;let a=await(void 0).load_files([i],J);(n===`change`||n===`upload`)&&(r=a?.[0]||null,await tick(),z?.()),f=false;}let ne=derived(()=>d&&I===`webcam`);async function re(e){switch(e){case `clipboard`:(void 0).paste_clipboard();break;}}let Q=true,$;function ie(e){h$1(e,{show_label:a,Icon:H,label:i||`Image`}),e.push(`
    `),Ve(e,{children:e=>{r?.url&&!ne()?(e.push(``),A?(e.push(``),He(e,{fullscreen:L,onclick:e=>{L=e,W?.(e);}})):e.push(``),e.push(` `),_(e,{Icon:ee,label:`Remove Image`,onclick:te}),e.push(``)):e.push(``),e.push(``);}}),e.push(` 1})}${attr_style(``,{width:r?`auto`:`100%`})}>`),g(e,{hidden:r!==null||I===`webcam`,filetype:I===`clipboard`?`clipboard`:`image/*`,onload:Y,onerror:N,root:h,max_file_size:v,disable_click:!u.includes(`upload`)||r!==null,upload:S,stream_handler:T,aria_label:_$1(`image.drop_to_upload`),get upload_promise(){return M},set upload_promise(e){M=e,Q=false;},get uploading(){return F},set uploading(e){F=e,Q=false;},get dragging(){return R},set dragging(e){R=e,Q=false;},children:e=>{r===null?(e.push(``),K?(e.push(``),K(e),e.push(``)):e.push(``),e.push(``)):e.push(``),e.push(``);},$$slots:{default:true}}),e.push(` `),I===`webcam`&&!d&&f?(e.push(``),p(e,{root:h,upload_id:J,stream_handler:T,files:q})):I===`webcam`&&(d||!d&&!r)?(e.push(``),P(e,{root:h,value:r,oncapture:e=>Z(e,`change`),onstream:e=>Z(e,`stream`),onerror:N,onclose_stream:G,stream_state:j,mirror_webcam:p$1.mirror,stream_every:E,streaming:d,mode:`image`,include_audio:false,i18n:_$1,upload:S,time_limit:k,webcam_constraints:p$1.constraints})):r!==null&&!d?(e.push(``),e.push(``),t(e,{src:r.url,restProps:{alt:r.alt_text}}),e.push(`
    `)):e.push(``),e.push(` `),u.length>1||u.includes(`clipboard`)?(e.push(``),Be(e,{sources:u,handle_clear:X,handle_select:e=>re(e),get active_source(){return I},set active_source(e){I=e,Q=false;}})):e.push(``),e.push(``);}do Q=true,$=e.copy(),ie($);while(!Q);e.subsume($),bind_props(n,{value:r,pending:f,upload_promise:M,uploading:F,active_source:I,fullscreen:L,dragging:R});});}function I(t,n$1){t.component(t=>{let i={value:null},o=null;class c extends m$1{async get_data(){o&&(await o,await tick());let e=await super.get_data();return d.props.streaming&&(e.value=i.value),e}}let{$$slots:l,$$events:u,...d}=n$1,f$2=new c(d,{value:null}),p=f$2.props.value??null,m=false,g=false,_=derived(()=>f$2.props.sources?f$2.props.sources[0]:null),y=derived(()=>f$2?.shared?.loading_status.stream_state),b=true,x;function C(e){f$2.shared.interactive?(e.push(``),n(e,{visible:f$2.shared.visible,variant:f$2.props.value===null?`dashed`:`solid`,border_mode:g?`focus`:`base`,padding:false,elem_id:f$2.shared.elem_id,elem_classes:f$2.shared.elem_classes,height:f$2.props.height||void 0,width:f$2.props.width,allow_overflow:false,container:f$2.shared.container,scale:f$2.shared.scale,min_width:f$2.shared.min_width,get fullscreen(){return m},set fullscreen(e){m=e,b=false;},children:e=>{f$2.shared.loading_status.type===`output`||f$2.shared.loading_status.validation_error?(e.push(``),f(e,spread_props([{autoscroll:f$2.shared.autoscroll,i18n:f$2.i18n},f$2.shared.loading_status,{on_clear_status:()=>f$2.dispatch(`clear_status`,f$2.shared.loading_status)}]))):e.push(``),e.push(` `),F(e,{selectable:f$2.props._selectable,root:f$2.shared.root,sources:f$2.props.sources,fullscreen:m,show_fullscreen_button:f$2.props.buttons===null?true:f$2.props.buttons.some(e=>typeof e==`string`&&e===`fullscreen`),onclear:()=>{m=false,f$2.dispatch(`clear`),f$2.dispatch(`input`);},onstream:e=>{i=e,f$2.dispatch(`stream`,e);},ondrag:e=>g=e,onupload:()=>{f$2.dispatch(`upload`),f$2.dispatch(`input`);},onselect:e=>f$2.dispatch(`select`,e),onerror:e=>{f$2.shared.loading_status.status=`error`,f$2.dispatch(`error`,e);},onclose_stream:()=>{f$2.dispatch(`close_stream`);},onfullscreen:e=>{m=e;},label:f$2.shared.label,show_label:f$2.shared.show_label,pending:f$2.shared.loading_status?.status===`pending`||f$2.shared.loading_status?.status===`streaming`,streaming:f$2.props.streaming,webcam_options:f$2.props.webcam_options,stream_every:f$2.props.stream_every,time_limit:f$2.shared.loading_status?.time_limit,max_file_size:f$2.shared.max_file_size,i18n:f$2.i18n,upload:(...e)=>f$2.shared.client.upload(...e),stream_handler:f$2.shared.client?.stream,stream_state:y(),get upload_promise(){return o},set upload_promise(e){o=e,b=false;},get active_source(){return _()},set active_source(e){_(e),b=false;},get value(){return p},set value(e){p=e,b=false;},get dragging(){return g},set dragging(e){g=e,b=false;},children:e=>{_()===`upload`||!_()?(e.push(``),ze(e,{i18n:f$2.i18n,type:`image`,placeholder:f$2.props.placeholder})):_()===`clipboard`?(e.push(``),ze(e,{i18n:f$2.i18n,type:`clipboard`,mode:`short`})):(e.push(``),v(e,{unpadded_box:true,size:`large`,children:e=>{H(e);}})),e.push(``);},$$slots:{default:true}}),e.push(``);},$$slots:{default:true}})):(e.push(``),n(e,{visible:f$2.shared.visible,variant:`solid`,border_mode:g?`focus`:`base`,padding:false,elem_id:f$2.shared.elem_id,elem_classes:f$2.shared.elem_classes,height:f$2.props.height||void 0,width:f$2.props.width,allow_overflow:false,container:f$2.shared.container,scale:f$2.shared.scale,min_width:f$2.shared.min_width,get fullscreen(){return m},set fullscreen(e){m=e,b=false;},children:e=>{f(e,spread_props([{autoscroll:f$2.shared.autoscroll,i18n:f$2.i18n},f$2.shared.loading_status,{on_clear_status:()=>f$2.dispatch(`clear_status`,f$2.shared.loading_status)}])),e.push(` `),f$1(e,{onselect:e=>f$2.dispatch(`select`,e),onshare:e=>f$2.dispatch(`share`,e),onerror:e=>f$2.dispatch(`error`,e),onfullscreen:e=>{m=e;},fullscreen:m,value:p,label:f$2.shared.label,show_label:f$2.shared.show_label,selectable:f$2.props._selectable,i18n:f$2.i18n,buttons:f$2.props.buttons,on_custom_button_click:e=>{f$2.dispatch(`custom_button_click`,{id:e});}}),e.push(``);},$$slots:{default:true}})),e.push(``);}do b=true,x=t.copy(),C(x);while(!b);t.subsume(x);});} + +export { F, I, P }; +//# sourceMappingURL=Index32-CNqjvop7.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index33-DqHzdiIY.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index33-DqHzdiIY.js new file mode 100644 index 0000000000000000000000000000000000000000..96a85a0e98d31b9fbee1d2447d21653c5c4900c5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index33-DqHzdiIY.js @@ -0,0 +1,16 @@ +export { t as BaseImage } from './Image-BFJk-f6P.js'; +export { f as BaseStaticImage } from './ImagePreview-BZkRir9q.js'; +export { F as BaseImageUploader, P as Webcam, I as default } from './Index32-CNqjvop7.js'; +export { default as BaseExample } from './Example26-cbv-WpjK.js'; +import './async-Cv1-GZGV.js'; +import './renderer-Dic3PuWn.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './statustracker-cy5aG8h8.js'; +import './server-CR3r1l-0.js'; +import './src4-BlBbNhwG.js'; +//# sourceMappingURL=Index33-DqHzdiIY.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index34-DBOFJVth.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index34-DBOFJVth.js new file mode 100644 index 0000000000000000000000000000000000000000..235bf6b8e3701f56136cc93afc6f61ba91f9a7a5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index34-DBOFJVth.js @@ -0,0 +1,23 @@ +import { J as m$1, K as tick } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { n, z as ze, B as Be } from './src3-h7ZBftxa.js'; +import { v } from './Index29-BQYQwCpR.js'; +export { default as BaseExample } from './Example24-CCHqSrrt.js'; +import { y, b } from './Gallery-BRnbw3Hz.js'; +import { P } from './Index32-CNqjvop7.js'; +import './async-Cv1-GZGV.js'; +import { s as spread_props, a as attr_class, j as clsx, d as derived } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; +import './src4-BlBbNhwG.js'; +import './Image-BFJk-f6P.js'; +import './Video-ClEGvRgS.js'; +import './ImagePreview-BZkRir9q.js'; + +function f(o,f){o.component(o=>{let p;class m extends m$1{async get_data(){return p&&(await p,await tick()),await super.get_data()}}let{$$slots:h,$$events:g,..._}=f,v$1=new m(_,{selected_index:null,file_types:[`image`,`video`]}),y$1=false;function b$1(e){if(!v$1.props.value)return;let{index:t}=e;v$1.dispatch(`delete`,e),v$1.props.value=v$1.props.value.filter((e,n)=>n!==t),v$1.dispatch(`change`,v$1.props.value);}async function x(e){return (await Promise.all(e.map(async e=>{if(e.path?.toLowerCase().endsWith(`.svg`)&&e.url){let t=await(await fetch(e.url)).text();return {...e,url:`data:image/svg+xml,${encodeURIComponent(t)}`}}return e}))).map(e=>e.mime_type?.includes(`video`)?{video:e,caption:null}:{image:e,caption:null})}let S=v$1.props.sources?v$1.props.sources[0]:`upload`,C=derived(()=>v$1.props.value===null?true:v$1.props.value.length===0),w=derived(()=>v$1.props.file_types?.includes(`video`)&&v$1.props.sources.includes(`webcam`)?v$1.props.sources.concat([`webcam-video`]):v$1.props.sources);async function T(){navigator.clipboard.read().then(async e=>{let t=null;for(let n=0;n(v$1.props.file_types||[`image`]).some(t=>e.startsWith(t+`/`)));if(r){let i=await e[n].getType(r);t=new File([i],`clipboard.${r.replace(`image/`,``)}`);break}}if(t){let e=await x(await y(t,e=>v$1.shared.client.upload(e,v$1.shared.root),`clipboard_upload`));v$1.props.value?.push(...e),v$1.dispatch(`change`,v$1.props.value),S=null;}else v$1.dispatch(`warning`,`No image or video found in clipboard`);});}async function E(e){switch(e){case `clipboard`:await T();break;}}async function D(e){await tick(),e===`clipboard`?await T():(S=e,C(true));}let O=true,k;function A(e){n(e,{visible:v$1.shared.visible,variant:`solid`,padding:false,elem_id:v$1.shared.elem_id,elem_classes:v$1.shared.elem_classes,container:v$1.shared.container,scale:v$1.shared.scale,min_width:v$1.shared.min_width,allow_overflow:false,height:v$1.props.height||void 0,get fullscreen(){return y$1},set fullscreen(e){y$1=e,O=false;},children:e=>{f$1(e,spread_props([{autoscroll:v$1.shared.autoscroll,i18n:v$1.i18n},v$1.shared.loading_status,{on_clear_status:()=>v$1.dispatch(`clear_status`,v$1.shared.loading_status)}])),e.push(` `),v$1.shared.interactive&&C()?(e.push(``),e.push(``),v(e,{value:null,root:v$1.shared.root,label:v$1.shared.label,max_file_size:v$1.shared.max_file_size,file_count:`multiple`,file_types:v$1.props.file_types,i18n:v$1.i18n,upload:(...e)=>v$1.shared.client.upload(...e),stream_handler:(...e)=>v$1.shared.client.stream(...e),onupload:async e=>{let t=Array.isArray(e)?e:[e];v$1.props.value=await x(t),S=null,v$1.dispatch(`upload`,v$1.props.value),v$1.dispatch(`change`,v$1.props.value);},onerror:e=>{v$1.shared.loading_status=v$1.shared.loading_status||{},v$1.shared.loading_status.status=`error`,v$1.dispatch(`error`,e);},get upload_promise(){return p},set upload_promise(e){p=e,O=false;},children:e=>{ze(e,{i18n:v$1.i18n,type:`gallery`});},$$slots:{default:true}}),e.push(` `),S===`webcam`?(e.push(``),P(e,{root:v$1.shared.root,value:null,oncapture:async e=>{if(!(e instanceof Blob))return;let t=await x(await y(e,e=>v$1.shared.client.upload(e,v$1.shared.root),`webcam_upload`));v$1.props.value?.push(...t),S=null,v$1.dispatch(`change`,v$1.props.value);},mirror_webcam:true,streaming:false,mode:`image`,include_audio:false,i18n:v$1.i18n,upload:(...e)=>v$1.shared.client.upload(...e)})):S===`webcam-video`?(e.push(``),P(e,{root:v$1.shared.root,value:null,oncapture:async e=>{if(!e)return;let t={...e};t.mime_type=`video/webm`;let n=await x([t]);v$1.props.value?.push(...n),S=null,v$1.dispatch(`change`,v$1.props.value);},mirror_webcam:true,streaming:false,mode:`video`,include_audio:false,i18n:v$1.i18n,upload:(...e)=>v$1.shared.client.upload(...e)})):e.push(``),e.push(` `),w().length>1||w().includes(`clipboard`)?(e.push(``),Be(e,{sources:w(),handle_clear:()=>v$1.dispatch(`clear`),handle_select:e=>E(e),get active_source(){return S},set active_source(e){S=e,O=false;}})):e.push(``),e.push(``)):(e.push(``),b(e,{onchange:()=>v$1.dispatch(`change`),onclear:()=>v$1.dispatch(`change`),onselect:e=>v$1.dispatch(`select`,e),onshare:e=>v$1.dispatch(`share`,e.detail),onerror:e=>v$1.dispatch(`error`,e.detail),onpreview_open:()=>{v$1.dispatch(`preview_open`);},onpreview_close:()=>v$1.dispatch(`preview_close`),onfullscreen:({detail:e})=>{y$1=e;},ondelete:b$1,onupload:async e=>{let t=await x(Array.isArray(e)?e:[e]);v$1.props.value=v$1.props.value?[...v$1.props.value,...t]:t,v$1.dispatch(`upload`,t),v$1.dispatch(`change`,v$1.props.value);},sources:w(),onsource_change:e=>D(e),label:v$1.shared.label,show_label:v$1.shared.show_label,columns:v$1.props.columns,rows:v$1.props.rows,height:v$1.props.height,preview:v$1.props.preview,object_fit:v$1.props.object_fit,interactive:v$1.shared.interactive,allow_preview:v$1.props.allow_preview,show_share_button:v$1.props.buttons.some(e=>typeof e==`string`&&e===`share`),show_download_button:v$1.props.buttons.some(e=>typeof e==`string`&&e===`download`),show_download_all_button:v$1.props.buttons.some(e=>typeof e==`string`&&e===`download_all`),fit_columns:v$1.props.fit_columns,i18n:v$1.i18n,_fetch:(...e)=>v$1.shared.client.fetch(...e),show_fullscreen_button:v$1.props.buttons.some(e=>typeof e==`string`&&e===`fullscreen`),buttons:v$1.props.buttons,oncustom_button_click:e=>{v$1.dispatch(`custom_button_click`,{id:e});},fullscreen:y$1,root:v$1.shared.root,file_types:v$1.props.file_types,max_file_size:v$1.shared.max_file_size,upload:(...e)=>v$1.shared.client.upload(...e),stream_handler:(...e)=>v$1.shared.client.stream(...e),get selected_index(){return v$1.props.selected_index},set selected_index(e){v$1.props.selected_index=e,O=false;},get value(){return v$1.props.value},set value(e){v$1.props.value=e,O=false;}})),e.push(``);},$$slots:{default:true}});}do O=true,k=o.copy(),A(k);while(!O);o.subsume(k);});} + +export { b as BaseGallery, f as default }; +//# sourceMappingURL=Index34-DBOFJVth.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index35-Dp9TC-oe.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index35-Dp9TC-oe.js new file mode 100644 index 0000000000000000000000000000000000000000..8406f3baba3474fc52757c3f1a2cea19e78a8ea5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index35-Dp9TC-oe.js @@ -0,0 +1,11 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import './async-Cv1-GZGV.js'; +import { f as attr, a as attr_class, i as stringify, b as attr_style } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; + +function n(n,r){n.component(n=>{let{$$slots:i,$$events:a,...o}=r,s=new m$1(o);n.push(`
    `),o.children?.(n),n.push(`
    `);});} + +export { n as default }; +//# sourceMappingURL=Index35-Dp9TC-oe.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index36-CrAuLsvq.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index36-CrAuLsvq.js new file mode 100644 index 0000000000000000000000000000000000000000..8054059ba18abe82e15c3d36370dd1572e9863d2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index36-CrAuLsvq.js @@ -0,0 +1,16 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { m as ee, n, V as Ve, h as h$1, J as ye, v } from './src3-h7ZBftxa.js'; +import { c as bind_props, h as ensure_array_like, b as attr_style, e as escape_html, a as attr_class, f as attr, s as spread_props, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function u(e){if(!e)return true;let t=e.toLowerCase().trim();return t===`transparent`||t.length===9&&t.endsWith(`00`)}function d(e,t){if(e.length===0)return [];let n=[],r=e[0].token,i=e[0].class_or_confidence;for(let a=1;a{let{value:n=[],label_to_edit:r=-1,category:i,active_legend:a,color_map:o,label_index:s,token:c,onchange:u,is_scores_mode:d=false}=t,p=i?.toString()??``;function m(){return d?f(typeof i==`number`?i:parseFloat(i??`0`)):i===null||a&&a!==i?``:o[i]?.primary??``}e.push(``),bind_props(t,{value:n,label_to_edit:r});});}function m(e,t){e.component(e=>{let {value:n=[],show_legend:r=false,show_inline_category:i=true,color_map:o={},show_whitespaces:s=false,interactive:d=false,onselect:f,onchange:m}=t,h=-1,_={};function b(){m?.(n),h=-1;}function x(e){return e===null?``:_[e]?.secondary??``}function S(e){return e===null?``:_[e]?.primary??``}function C(e){return u(x(e))?``:`black`}let w=true,T;function E(e){e.push(`
    `);{if(e.push(``),r){e.push(``),e.push(`
    `);let t=ensure_array_like(Object.entries(_));for(let n=0,r=t.length;n${escape_html(r)}`);}e.push(`
    `);}else e.push(``);e.push(`
    `);let t=ensure_array_like(n);for(let o=0,c=t.length;o`);let g=ensure_array_like(m);for(let t=0,v=g.length;t`);let t=x(f);e.push(`${escape_html(v)} `),!r&&i&&f!==null&&h!==o?(e.push(``),e.push(`${escape_html(f)}`)):e.push(``),e.push(` `),d&&h===o&&f!==null?(e.push(``),p(e,{category:f,active_legend:``,color_map:_,label_index:o,token:c,onchange:b,get value(){return n},set value(e){n=e,w=false;},get label_to_edit(){return h},set label_to_edit(e){h=e,w=false;}})):e.push(``),e.push(` `),d&&f!==null?(e.push(``),e.push(``)):e.push(``),e.push(``);}else e.push(``);e.push(` `),t`),e.push(``)):e.push(``),e.push(``);}e.push(``);}e.push(`
    `);}e.push(`
    `);}do w=true,T=e.copy(),E(T);while(!w);e.subsume(T),bind_props(t,{value:n});});}function h(a,c){a.component(a=>{let{$$slots:u,$$events:f,...p}=c,h=new m$1(p);h.props.value;let g=derived(()=>h.props.combine_adjacent?d(h.props.value||[]):h.props.value),_=true,v$1;function y(e){n(e,{variant:h.shared.interactive?`dashed`:`solid`,test_id:`highlighted-text`,visible:h.shared.visible,elem_id:h.shared.elem_id,elem_classes:h.shared.elem_classes,padding:false,container:h.shared.container,scale:h.shared.scale,min_width:h.shared.min_width,rtl:h.props.rtl,children:e=>{f$1(e,spread_props([{autoscroll:h.shared.autoscroll,i18n:h.i18n},h.shared.loading_status,{onclearstatus:()=>h.dispatch(`clear_status`,h.shared.loading_status)}])),e.push(` `),h.shared.interactive&&h.shared.label&&h.shared.show_label&&h.props.buttons?.length?(e.push(``),Ve(e,{buttons:h.props.buttons,on_custom_button_click:e=>h.dispatch(`custom_button_click`,{id:e})})):e.push(``),e.push(` `),h.shared.label&&h.shared.show_label?(e.push(``),h$1(e,{Icon:ye,label:h.shared.label||h.i18n(`highlighted_text.highlighted_text`),float:false,disable:h.shared.container===false,show_label:h.shared.show_label,rtl:h.props.rtl})):e.push(``),e.push(` `),g()?(e.push(``),m(e,{interactive:h.shared.interactive,show_legend:h.props.show_legend,show_inline_category:h.props.show_inline_category,show_whitespaces:h.props.show_whitespaces,color_map:h.props.color_map,onselect:e=>h.dispatch(`select`,e),onchange:()=>{h.props.value=g(),h.dispatch(`change`);},get value(){return g()},set value(e){g(e),_=false;}})):(e.push(``),v(e,{size:h.shared.interactive?`small`:`large`,unpadded_box:h.shared.interactive,children:e=>{ye(e);}})),e.push(``);},$$slots:{default:true}});}do _=true,v$1=a.copy(),y(v$1);while(!_);a.subsume(v$1);});} + +export { m as BaseHighlightedText, h as default }; +//# sourceMappingURL=Index36-CrAuLsvq.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index37-B02piYVG.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index37-B02piYVG.js new file mode 100644 index 0000000000000000000000000000000000000000..ab1380f2fd8dcb891f95961936659b7ca9e4927a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index37-B02piYVG.js @@ -0,0 +1,18 @@ +import { J as m$1, U as h$1, N as he } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, h, K as j } from './src3-h7ZBftxa.js'; +export { default as BaseExample } from './Example28-BHmu3_6X.js'; +import { n as n$1 } from './HTML-Ba2viJD3.js'; +import './async-Cv1-GZGV.js'; +import { s as spread_props, a as attr_class, b as attr_style, d as derived } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; +import 'fs'; + +function d(c,d){c.component(c=>{let{$$slots:f$1,$$events:p,...m}=d,h$2=m.children,g=new m$1(m),_=derived(()=>({value:g.props.value??``,label:g.shared.label,visible:g.shared.visible,...g.props.props}));g.props.value;async function v(e){try{let t=await he([e]),r=await g.shared.client.upload(t,g.shared.root,void 0,g.shared.max_file_size??void 0);if(r&&r[0])return {path:r[0].path,url:r[0].url};throw Error(`Upload failed`)}catch(e){throw g.dispatch(`error`,e instanceof Error?e.message:String(e)),e}}n(c,{visible:g.shared.visible,elem_id:g.shared.elem_id,elem_classes:g.shared.elem_classes,container:g.shared.container,padding:g.shared.padding!==false,overflow_behavior:`visible`,children:t=>{g.shared.show_label&&g.props.buttons&&g.props.buttons.length>0?(t.push(``),Ve(t,{buttons:g.props.buttons,on_custom_button_click:e=>{g.dispatch(`custom_button_click`,{id:e});}})):t.push(``),t.push(` `),g.shared.show_label?(t.push(``),h(t,{Icon:j,show_label:g.shared.show_label,label:g.shared.label,float:true})):t.push(``),t.push(` `),f(t,spread_props([{autoscroll:g.shared.autoscroll,i18n:g.i18n},g.shared.loading_status,{variant:`center`,on_clear_status:()=>g.dispatch(`clear_status`,g.shared.loading_status)}])),t.push(` `),n$1(t,{props:_(),html_template:g.props.html_template,css_template:g.props.css_template,js_on_load:g.props.js_on_load,elem_classes:g.shared.elem_classes,visible:g.shared.visible===`hidden`?false:g.shared.visible,autoscroll:g.shared.autoscroll,apply_default_css:g.props.apply_default_css,head:g.props.head,component_class_name:g.props.component_class_name,upload:v,server:g.shared.server,onevent:e=>{g.dispatch(e.type,e.data);},onupdate_value:e=>{e.property===`value`?g.props.value=e.data:e.property===`label`?g.shared.label=e.data:e.property===`visible`&&(g.shared.visible=e.data);},children:e=>{h$2?.(e);}}),t.push(``);},$$slots:{default:true}});});} + +export { n$1 as BaseHTML, d as default }; +//# sourceMappingURL=Index37-B02piYVG.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index38-CMskepfD.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index38-CMskepfD.js new file mode 100644 index 0000000000000000000000000000000000000000..2b83e960ccf77d30e99a5739d35ea08e4340d627 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index38-CMskepfD.js @@ -0,0 +1,1323 @@ +import { J as m$1, T as B$2, N as he$2 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { n as n$1, h as h$1, H as H$2 } from './src3-h7ZBftxa.js'; +import { f as f$2 } from './ImagePreview-BZkRir9q.js'; +import { s as spread_props, c as bind_props, d as derived, a as attr_class, e as escape_html } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './tinycolor-D-nIUz6e.js'; +import { d as d$1, c as c$2 } from './chunk-B3kRsjbd.js'; + +var n=(e=>(e.Application=`application`,e.WebGLPipes=`webgl-pipes`,e.WebGLPipesAdaptor=`webgl-pipes-adaptor`,e.WebGLSystem=`webgl-system`,e.WebGPUPipes=`webgpu-pipes`,e.WebGPUPipesAdaptor=`webgpu-pipes-adaptor`,e.WebGPUSystem=`webgpu-system`,e.CanvasSystem=`canvas-system`,e.CanvasPipesAdaptor=`canvas-pipes-adaptor`,e.CanvasPipes=`canvas-pipes`,e.Asset=`asset`,e.LoadParser=`load-parser`,e.ResolveParser=`resolve-parser`,e.CacheParser=`cache-parser`,e.DetectionParser=`detection-parser`,e.MaskEffect=`mask-effect`,e.BlendMode=`blend-mode`,e.TextureSource=`texture-source`,e.Environment=`environment`,e.ShapeBuilder=`shape-builder`,e.Batcher=`batcher`,e))(n||{}),r=e=>{if(typeof e==`function`||typeof e==`object`&&e.extension){if(!e.extension)throw Error(`Extension class must have an extension object`);e={...typeof e.extension==`object`?e.extension:{type:e.extension},ref:e};}if(typeof e==`object`)e={...e};else throw Error(`Invalid extension type`);return typeof e.type==`string`&&(e.type=[e.type]),e},i=(e,t)=>r(e).priority??t,a$1={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(r).forEach(e=>{e.type.forEach(t=>this._removeHandlers[t]?.(e));}),this},add(...e){return e.map(r).forEach(e=>{e.type.forEach(t=>{let n=this._addHandlers,r=this._queue;n[t]?n[t]?.(e):(r[t]=r[t]||[],r[t]?.push(e));});}),this},handle(e,t,n){let r=this._addHandlers,i=this._removeHandlers;if(r[e]||i[e])throw Error(`Extension type ${e} already has a handler`);r[e]=t,i[e]=n;let a=this._queue;return a[e]&&(a[e]?.forEach(e=>t(e)),delete a[e]),this},handleByMap(e,t){return this.handle(e,e=>{e.name&&(t[e.name]=e.ref);},e=>{e.name&&delete t[e.name];})},handleByNamedList(e,t,n=-1){return this.handle(e,e=>{t.findIndex(t=>t.name===e.name)>=0||(t.push({name:e.name,value:e.ref}),t.sort((e,t)=>i(t.value,n)-i(e.value,n)));},e=>{let n=t.findIndex(t=>t.name===e.name);n!==-1&&t.splice(n,1);})},handleByList(e,t,n=-1){return this.handle(e,e=>{t.includes(e.ref)||(t.push(e.ref),t.sort((e,t)=>i(t,n)-i(e,n)));},e=>{let n=t.indexOf(e.ref);n!==-1&&t.splice(n,1);})},mixin(e,...t){for(let n of t)Object.defineProperties(e.prototype,Object.getOwnPropertyDescriptors(n));}},o$1=class e{constructor(e,t,n){this._x=t||0,this._y=n||0,this._observer=e;}clone(t){return new e(t??this._observer,this._x,this._y)}set(e=0,t=e){return (this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this._observer._onUpdate(this)),this}copyFrom(e){return (this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this._observer._onUpdate(this)),this}copyTo(e){return e.set(this._x,this._y),e}equals(e){return e.x===this._x&&e.y===this._y}toString(){return `[pixi.js/math:ObservablePoint x=${this._x} y=${this._y} scope=${this._observer}]`}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._observer._onUpdate(this));}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._observer._onUpdate(this));}},s$1=d$1(c$2(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=false));function a(e,t,n){this.fn=e,this.context=t,this.once=n||false;}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t];}function c(){this._events=new i,this._eventsCount=0;}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return [];if(n.fn)return [n.fn];for(var i=0,a=n.length,o=Array(a);ig[e],uY:e=>_[e],vX:e=>v[e],vY:e=>y[e],inv:e=>e&8?e&15:-e&7,add:(e,t)=>b[e][t],sub:(e,t)=>b[e][S.inv(t)],rotate180:e=>e^4,isVertical:e=>(e&3)==2,byDirection:(e,t)=>Math.abs(e)*2<=Math.abs(t)?t>=0?S.S:S.N:Math.abs(t)*2<=Math.abs(e)?e>0?S.E:S.W:t>0?e>0?S.SE:S.SW:e>0?S.NE:S.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{let i=ee[S.inv(t)];i.tx=n,i.ty=r,e.append(i);},transformRectCoords:(e,t,n,r)=>{let{x:i,y:a,width:o,height:s}=e,{x:c,y:l,width:u,height:d}=t;return n===S.E?(r.set(i+c,a+l,o,s),r):n===S.S?r.set(u-a-s+c,i+l,s,o):n===S.W?r.set(u-i-o+c,d-a-s+l,o,s):n===S.N?r.set(a+c,d-i-o+l,s,o):r.set(i+c,a+l,o,s)}},ne=[new d,new d,new d,new d],re=class e{constructor(e=0,t=0,n=0,r=0){this.type=`rectangle`,this.x=Number(e),this.y=Number(t),this.width=Number(n),this.height=Number(r);}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new e(0,0,0,0)}clone(){return new e(this.x,this.y,this.width,this.height)}copyFromBounds(e){return this.x=e.minX,this.y=e.minY,this.width=e.maxX-e.minX,this.height=e.maxY-e.minY,this}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){return this.width<=0||this.height<=0?false:e>=this.x&&e=this.y&&t=u&&e<=d&&t>=f&&t<=p&&!(e>m&&eg&&t<_)}intersects(e,t){if(!t){let t=this.xe.right?e.right:this.right)<=t)return false;let n=this.ye.bottom?e.bottom:this.bottom)>n}let n=this.left,r=this.right,i=this.top,a=this.bottom;if(r<=n||a<=i)return false;let o=ne[0].set(e.left,e.top),s=ne[1].set(e.left,e.bottom),c=ne[2].set(e.right,e.top),l=ne[3].set(e.right,e.bottom);if(c.x<=o.x||s.y<=o.y)return false;let u=Math.sign(t.a*t.d-t.b*t.c);if(u===0||(t.apply(o,o),t.apply(s,s),t.apply(c,c),t.apply(l,l),Math.max(o.x,s.x,c.x,l.x)<=n||Math.min(o.x,s.x,c.x,l.x)>=r||Math.max(o.y,s.y,c.y,l.y)<=i||Math.min(o.y,s.y,c.y,l.y)>=a))return false;let d=u*(s.y-o.y),f=u*(o.x-s.x),p=d*n+f*i,m=d*r+f*i,h=d*n+f*a,g=d*r+f*a;if(Math.max(p,m,h,g)<=d*o.x+f*o.y||Math.min(p,m,h,g)>=d*l.x+f*l.y)return false;let _=u*(o.y-c.y),v=u*(c.x-o.x),y=_*n+v*i,b=_*r+v*i,ee=_*n+v*a,x=_*r+v*a;return !(Math.max(y,b,ee,x)<=_*o.x+v*o.y||Math.min(y,b,ee,x)>=_*l.x+v*l.y)}pad(e=0,t=e){return this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2,this}fit(e){let t=Math.max(this.x,e.x),n=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),i=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(n-t,0),this.y=r,this.height=Math.max(i-r,0),this}ceil(e=1,t=.001){let n=Math.ceil((this.x+this.width-t)*e)/e,r=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=n-this.x,this.height=r-this.y,this}scale(e,t=e){return this.x*=e,this.y*=t,this.width*=e,this.height*=t,this}enlarge(e){let t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),i=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=n-t,this.y=r,this.height=i-r,this}getBounds(t){return t||=new e,t.copyFrom(this),t}containsRect(e){if(this.width<=0||this.height<=0)return false;let t=e.x,n=e.y,r=e.x+e.width,i=e.y+e.height;return t>=this.x&&t=this.y&&n=this.x&&r=this.y&&i{if(T.quiet||ae.has(t))return;let r=Error().stack,i=`${t} +Deprecated since v${e}`,a=typeof console.groupCollapsed==`function`&&!T.noColor;r===void 0?console.warn(`PixiJS Deprecation Warning: `,i):(r=r.split(` +`).splice(n).join(` +`),a?(console.groupCollapsed(`%cPixiJS Deprecation Warning: %c%s`,`color:#614108;background:#fffbe6`,`font-weight:normal;color:#614108;background:#fffbe6`,i),console.warn(r),console.groupEnd()):(console.warn(`PixiJS Deprecation Warning: `,i),console.warn(r))),ae.add(t);};Object.defineProperties(E,{quiet:{get:()=>T.quiet,set:e=>{T.quiet=e;},enumerable:true,configurable:false},noColor:{get:()=>T.noColor,set:e=>{T.noColor=e;},enumerable:true,configurable:false}});var se=()=>{};function ce(e){return e+=+(e===0),--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function le(e){return !(e&e-1)&&!!e}function ue(e){let t={};for(let n in e)e[n]!==void 0&&(t[n]=e[n]);return t}var de=Object.create(null);function fe(e){let t=de[e];return t===void 0&&(de[e]=C(`resource`)),t}var pe$1=class e extends s$1{constructor(t={}){super(),this._resourceType=`textureSampler`,this._touched=0,this._maxAnisotropy=1,this.destroyed=false,t={...e.defaultOptions,...t},this.addressMode=t.addressMode,this.addressModeU=t.addressModeU??this.addressModeU,this.addressModeV=t.addressModeV??this.addressModeV,this.addressModeW=t.addressModeW??this.addressModeW,this.scaleMode=t.scaleMode,this.magFilter=t.magFilter??this.magFilter,this.minFilter=t.minFilter??this.minFilter,this.mipmapFilter=t.mipmapFilter??this.mipmapFilter,this.lodMinClamp=t.lodMinClamp,this.lodMaxClamp=t.lodMaxClamp,this.compare=t.compare,this.maxAnisotropy=t.maxAnisotropy??1;}set addressMode(e){this.addressModeU=e,this.addressModeV=e,this.addressModeW=e;}get addressMode(){return this.addressModeU}set wrapMode(e){E(w,`TextureStyle.wrapMode is now TextureStyle.addressMode`),this.addressMode=e;}get wrapMode(){return this.addressMode}set scaleMode(e){this.magFilter=e,this.minFilter=e,this.mipmapFilter=e;}get scaleMode(){return this.magFilter}set maxAnisotropy(e){this._maxAnisotropy=Math.min(e,16),this._maxAnisotropy>1&&(this.scaleMode=`linear`);}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this._sharedResourceId=null,this.emit(`change`,this);}_generateResourceId(){let e=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=fe(e),this._resourceId}destroy(){this.destroyed=true,this.emit(`destroy`,this),this.emit(`change`,this),this.removeAllListeners();}};pe$1.defaultOptions={addressMode:`clamp-to-edge`,scaleMode:`linear`};var me$1=pe$1,he$1=class e extends s$1{constructor(t={}){super(),this.options=t,this._gpuData=Object.create(null),this._gcLastUsed=-1,this.uid=C(`textureSource`),this._resourceType=`textureSource`,this._resourceId=C(`resource`),this.uploadMethodId=`unknown`,this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=false,this.format=`rgba8unorm`,this.dimension=`2d`,this.antialias=false,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,t={...e.defaultOptions,...t},this.label=t.label??``,this.resource=t.resource,this.autoGarbageCollect=t.autoGarbageCollect,this._resolution=t.resolution,t.width?this.pixelWidth=t.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,t.height?this.pixelHeight=t.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=t.format,this.dimension=t.dimensions,this.mipLevelCount=t.mipLevelCount,this.autoGenerateMipmaps=t.autoGenerateMipmaps,this.sampleCount=t.sampleCount,this.antialias=t.antialias,this.alphaMode=t.alphaMode,this.style=new me$1(ue(t)),this.destroyed=false,this._refreshPOT();}get source(){return this}get style(){return this._style}set style(e){this.style!==e&&(this._style?.off(`change`,this._onStyleChange,this),this._style=e,this._style?.on(`change`,this._onStyleChange,this),this._onStyleChange());}set maxAnisotropy(e){this._style.maxAnisotropy=e;}get maxAnisotropy(){return this._style.maxAnisotropy}get addressMode(){return this._style.addressMode}set addressMode(e){this._style.addressMode=e;}get repeatMode(){return this._style.addressMode}set repeatMode(e){this._style.addressMode=e;}get magFilter(){return this._style.magFilter}set magFilter(e){this._style.magFilter=e;}get minFilter(){return this._style.minFilter}set minFilter(e){this._style.minFilter=e;}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(e){this._style.mipmapFilter=e;}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(e){this._style.lodMinClamp=e;}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(e){this._style.lodMaxClamp=e;}_onStyleChange(){this.emit(`styleChange`,this);}update(){if(this.resource){let e=this._resolution;if(this.resize(this.resourceWidth/e,this.resourceHeight/e))return}this.emit(`update`,this);}destroy(){this.destroyed=true,this.unload(),this.emit(`destroy`,this),this._style&&=(this._style.destroy(),null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners();}unload(){this._resourceId=C(`resource`),this.emit(`change`,this),this.emit(`unload`,this);for(let e in this._gpuData)this._gpuData[e]?.destroy?.();this._gpuData=Object.create(null);}get resourceWidth(){let{resource:e}=this;return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}get resourceHeight(){let{resource:e}=this;return e.naturalHeight||e.videoHeight||e.displayHeight||e.height}get resolution(){return this._resolution}set resolution(e){this._resolution!==e&&(this._resolution=e,this.width=this.pixelWidth/e,this.height=this.pixelHeight/e);}resize(e,t,n){n||=this._resolution,e||=this.width,t||=this.height;let r=Math.round(e*n),i=Math.round(t*n);return this.width=r/n,this.height=i/n,this._resolution=n,this.pixelWidth===r&&this.pixelHeight===i?false:(this._refreshPOT(),this.pixelWidth=r,this.pixelHeight=i,this.emit(`resize`,this),this._resourceId=C(`resource`),this.emit(`change`,this),true)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit(`updateMipmaps`,this);}set wrapMode(e){this._style.wrapMode=e;}get wrapMode(){return this._style.wrapMode}set scaleMode(e){this._style.scaleMode=e;}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=le(this.pixelWidth)&&le(this.pixelHeight);}static test(e){throw Error(`Unimplemented`)}};he$1.defaultOptions={resolution:1,format:`bgra8unorm`,alphaMode:`premultiply-alpha-on-upload`,dimensions:`2d`,mipLevelCount:1,autoGenerateMipmaps:false,sampleCount:1,antialias:false,autoGarbageCollect:false};var D=he$1,ge$1=class ge extends D{constructor(e){let t=e.resource||new Float32Array(e.width*e.height*4),n=e.format;n||=t instanceof Float32Array?`rgba32float`:t instanceof Int32Array||t instanceof Uint32Array?`rgba32uint`:t instanceof Int16Array||t instanceof Uint16Array?`rgba16uint`:(`bgra8unorm`),super({...e,resource:t,format:n}),this.uploadMethodId=`buffer`;}static test(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}};ge$1.extension=n.TextureSource;var _e$1=new p,ve$1=class ve{constructor(e,t){this.mapCoord=new p,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,t===void 0?this.clampMargin=e.width<10?0:.5:this.clampMargin=t,this.isSimple=false,this.texture=e;}get texture(){return this._texture}set texture(e){this.texture!==e&&(this._texture?.removeListener(`update`,this.update,this),this._texture=e,this._texture.addListener(`update`,this.update,this),this.update());}multiplyUvs(e,t){t===void 0&&(t=e);let n=this.mapCoord;for(let r=0;rthis.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||=new re;let e=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(e.x=0,e.y=0,e.width=0,e.height=0):e.copyFromBounds(this),e}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=be$1,this}set(e,t,n,r){this.minX=e,this.minY=t,this.maxX=n,this.maxY=r;}addFrame(e,t,n,r,i){i||=this.matrix;let a=i.a,o=i.b,s=i.c,c=i.d,l=i.tx,u=i.ty,d=this.minX,f=this.minY,p=this.maxX,m=this.maxY,h=a*e+s*t+l,g=o*e+c*t+u;hp&&(p=h),g>m&&(m=g),h=a*n+s*t+l,g=o*n+c*t+u,hp&&(p=h),g>m&&(m=g),h=a*e+s*r+l,g=o*e+c*r+u,hp&&(p=h),g>m&&(m=g),h=a*n+s*r+l,g=o*n+c*r+u,hp&&(p=h),g>m&&(m=g),this.minX=d,this.minY=f,this.maxX=p,this.maxY=m;}addRect(e,t){this.addFrame(e.x,e.y,e.x+e.width,e.y+e.height,t);}addBounds(e,t){this.addFrame(e.minX,e.minY,e.maxX,e.maxY,t);}addBoundsMask(e){this.minX=this.minX>e.minX?this.minX:e.minX,this.minY=this.minY>e.minY?this.minY:e.minY,this.maxX=this.maxXthis.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY,d=a*t+s*i+l,f=o*t+c*i+u,this.minX=dthis.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY,d=a*r+s*i+l,f=o*r+c*i+u,this.minX=dthis.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY;}fit(e){return this.minXe.right&&(this.maxX=e.right),this.minYe.bottom&&(this.maxY=e.bottom),this}fitBounds(e,t,n,r){return this.minXt&&(this.maxX=t),this.minYr&&(this.maxY=r),this}pad(e,t=e){return this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new e(this.minX,this.minY,this.maxX,this.maxY)}scale(e,t=e){return this.minX*=e,this.minY*=t,this.maxX*=e,this.maxY*=t,this}get x(){return this.minX}set x(e){let t=this.maxX-this.minX;this.minX=e,this.maxX=e+t;}get y(){return this.minY}set y(e){let t=this.maxY-this.minY;this.minY=e,this.maxY=e+t;}get width(){return this.maxX-this.minX}set width(e){this.maxX=this.minX+e;}get height(){return this.maxY-this.minY}set height(e){this.maxY=this.minY+e;}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(e,t,n,r){let i=this.minX,a=this.minY,o=this.maxX,s=this.maxY;r||=this.matrix;let c=r.a,l=r.b,u=r.c,d=r.d,f=r.tx,p=r.ty;for(let r=t;ro?m:o,s=h>s?h:s;}this.minX=i,this.minY=a,this.maxX=o,this.maxY=s;}containsPoint(e,t){return this.minX<=e&&this.minY<=t&&this.maxX>=e&&this.maxY>=t}toString(){return `[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}copyFrom(e){return this.minX=e.minX,this.minY=e.minY,this.maxX=e.maxX,this.maxY=e.maxY,this}},xe$1={grad:.9,turn:360,rad:360/(2*Math.PI)},A$1=function(e){return typeof e==`string`?e.length>0:typeof e==`number`},j$1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=10**t),Math.round(n*e)/n+0},M$1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Se$1=function(e){return (e=isFinite(e)?e%360:0)>0?e:e+360},Ce$2=function(e){return {r:M$1(e.r,0,255),g:M$1(e.g,0,255),b:M$1(e.b,0,255),a:M$1(e.a)}},we$2=function(e){return {r:j$1(e.r),g:j$1(e.g),b:j$1(e.b),a:j$1(e.a,3)}},Te$2=/^#([0-9a-f]{3,8})$/i,Ee$2=function(e){var t=e.toString(16);return t.length<2?`0`+t:t},De$2=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return {h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},Oe$3=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),o=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),l=a%6;return {r:255*[r,s,o,o,c,r][l],g:255*[c,r,r,s,o,o][l],b:255*[o,o,c,r,r,s][l],a:i}},ke$3=function(e){return {h:Se$1(e.h),s:M$1(e.s,0,100),l:M$1(e.l,0,100),a:M$1(e.a)}},Ae$3=function(e){return {h:j$1(e.h),s:j$1(e.s),l:j$1(e.l),a:j$1(e.a,3)}},je$3=function(e){return Oe$3((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r;},N$1=function(e){return {h:(t=De$2(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i;},Me$3=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ne$3=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pe$3=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fe$3=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ie$3={string:[[function(e){var t=Te$2.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?j$1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?j$1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},`hex`],[function(e){var t=Pe$3.exec(e)||Fe$3.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ce$2({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},`rgb`],[function(e){var t=Me$3.exec(e)||Ne$3.exec(e);if(!t)return null;var n,r;return je$3(ke$3({h:(n=t[1],r=t[2],r===void 0&&(r=`deg`),Number(n)*(xe$1[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}))},`hsl`]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=i===void 0?1:i;return A$1(t)&&A$1(n)&&A$1(r)?Ce$2({r:Number(t),g:Number(n),b:Number(r),a:Number(a)}):null},`rgb`],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,a=i===void 0?1:i;return !A$1(t)||!A$1(n)||!A$1(r)?null:je$3(ke$3({h:Number(t),s:Number(n),l:Number(r),a:Number(a)}))},`hsl`],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,a=i===void 0?1:i;return !A$1(t)||!A$1(n)||!A$1(r)?null:Oe$3(function(e){return {h:Se$1(e.h),s:M$1(e.s,0,100),v:M$1(e.v,0,100),a:M$1(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(a)}))},`hsv`]]},Le$3=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return e=we$2(this.rgba),t=e.r,n=e.g,r=e.b,a=(i=e.a)<1?Ee$2(j$1(255*i)):``,`#`+Ee$2(t)+Ee$2(n)+Ee$2(r)+a;var e,t,n,r,i,a;},e.prototype.toRgb=function(){return we$2(this.rgba)},e.prototype.toRgbString=function(){return e=we$2(this.rgba),t=e.r,n=e.g,r=e.b,(i=e.a)<1?`rgba(`+t+`, `+n+`, `+r+`, `+i+`)`:`rgb(`+t+`, `+n+`, `+r+`)`;var e,t,n,r,i;},e.prototype.toHsl=function(){return Ae$3(N$1(this.rgba))},e.prototype.toHslString=function(){return e=Ae$3(N$1(this.rgba)),t=e.h,n=e.s,r=e.l,(i=e.a)<1?`hsla(`+t+`, `+n+`%, `+r+`%, `+i+`)`:`hsl(`+t+`, `+n+`%, `+r+`%)`;var e,t,n,r,i;},e.prototype.toHsv=function(){return e=De$2(this.rgba),{h:j$1(e.h),s:j$1(e.s),v:j$1(e.v),a:j$1(e.a,3)};var e;},e.prototype.invert=function(){return P$1({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e;},e.prototype.saturate=function(e){return e===void 0&&(e=.1),P$1(ze$3(this.rgba,e))},e.prototype.desaturate=function(e){return e===void 0&&(e=.1),P$1(ze$3(this.rgba,-e))},e.prototype.grayscale=function(){return P$1(ze$3(this.rgba,-1))},e.prototype.lighten=function(e){return e===void 0&&(e=.1),P$1(Ve$3(this.rgba,e))},e.prototype.darken=function(e){return e===void 0&&(e=.1),P$1(Ve$3(this.rgba,-e))},e.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return typeof e==`number`?P$1({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):j$1(this.rgba.a,3);var t;},e.prototype.hue=function(e){var t=N$1(this.rgba);return typeof e==`number`?P$1({h:e,s:t.s,l:t.l,a:t.a}):j$1(t.h)},e.prototype.isEqual=function(e){return this.toHex()===P$1(e).toHex()},e}(),P$1=function(e){return e instanceof He$3?e:new He$3(e)},Ue$3=[],We$3=function(e){e.forEach(function(e){Ue$3.indexOf(e)<0&&(e(He$3,Ie$3),Ue$3.push(e));});};function Ge$3(e,t){var n={white:`#ffffff`,bisque:`#ffe4c4`,blue:`#0000ff`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,antiquewhite:`#faebd7`,aqua:`#00ffff`,azure:`#f0ffff`,whitesmoke:`#f5f5f5`,papayawhip:`#ffefd5`,plum:`#dda0dd`,blanchedalmond:`#ffebcd`,black:`#000000`,gold:`#ffd700`,goldenrod:`#daa520`,gainsboro:`#dcdcdc`,cornsilk:`#fff8dc`,cornflowerblue:`#6495ed`,burlywood:`#deb887`,aquamarine:`#7fffd4`,beige:`#f5f5dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkkhaki:`#bdb76b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,peachpuff:`#ffdab9`,darkmagenta:`#8b008b`,darkred:`#8b0000`,darkorchid:`#9932cc`,darkorange:`#ff8c00`,darkslateblue:`#483d8b`,gray:`#808080`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,wheat:`#f5deb3`,firebrick:`#b22222`,floralwhite:`#fffaf0`,ghostwhite:`#f8f8ff`,darkviolet:`#9400d3`,magenta:`#ff00ff`,green:`#008000`,dodgerblue:`#1e90ff`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,blueviolet:`#8a2be2`,forestgreen:`#228b22`,lawngreen:`#7cfc00`,indianred:`#cd5c5c`,indigo:`#4b0082`,fuchsia:`#ff00ff`,brown:`#a52a2a`,maroon:`#800000`,mediumblue:`#0000cd`,lightcoral:`#f08080`,darkturquoise:`#00ced1`,lightcyan:`#e0ffff`,ivory:`#fffff0`,lightyellow:`#ffffe0`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,linen:`#faf0e6`,mediumaquamarine:`#66cdaa`,lemonchiffon:`#fffacd`,lime:`#00ff00`,khaki:`#f0e68c`,mediumseagreen:`#3cb371`,limegreen:`#32cd32`,mediumspringgreen:`#00fa9a`,lightskyblue:`#87cefa`,lightblue:`#add8e6`,midnightblue:`#191970`,lightpink:`#ffb6c1`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,mintcream:`#f5fffa`,lightslategray:`#778899`,lightslategrey:`#778899`,navajowhite:`#ffdead`,navy:`#000080`,mediumvioletred:`#c71585`,powderblue:`#b0e0e6`,palegoldenrod:`#eee8aa`,oldlace:`#fdf5e6`,paleturquoise:`#afeeee`,mediumturquoise:`#48d1cc`,mediumorchid:`#ba55d3`,rebeccapurple:`#663399`,lightsteelblue:`#b0c4de`,mediumslateblue:`#7b68ee`,thistle:`#d8bfd8`,tan:`#d2b48c`,orchid:`#da70d6`,mediumpurple:`#9370db`,purple:`#800080`,pink:`#ffc0cb`,skyblue:`#87ceeb`,springgreen:`#00ff7f`,palegreen:`#98fb98`,red:`#ff0000`,yellow:`#ffff00`,slateblue:`#6a5acd`,lavenderblush:`#fff0f5`,peru:`#cd853f`,palevioletred:`#db7093`,violet:`#ee82ee`,teal:`#008080`,slategray:`#708090`,slategrey:`#708090`,aliceblue:`#f0f8ff`,darkseagreen:`#8fbc8f`,darkolivegreen:`#556b2f`,greenyellow:`#adff2f`,seagreen:`#2e8b57`,seashell:`#fff5ee`,tomato:`#ff6347`,silver:`#c0c0c0`,sienna:`#a0522d`,lavender:`#e6e6fa`,lightgreen:`#90ee90`,orange:`#ffa500`,orangered:`#ff4500`,steelblue:`#4682b4`,royalblue:`#4169e1`,turquoise:`#40e0d0`,yellowgreen:`#9acd32`,salmon:`#fa8072`,saddlebrown:`#8b4513`,sandybrown:`#f4a460`,rosybrown:`#bc8f8f`,darksalmon:`#e9967a`,lightgoldenrodyellow:`#fafad2`,snow:`#fffafa`,lightgrey:`#d3d3d3`,lightgray:`#d3d3d3`,dimgray:`#696969`,dimgrey:`#696969`,olivedrab:`#6b8e23`,olive:`#808000`},r={};for(var i in n)r[n[i]]=i;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return `transparent`;var i,o,s=r[this.toHex()];if(s)return s;if(t?.closest){var c=this.toRgb(),l=1/0,u=`black`;if(!a.length)for(var d in n)a[d]=new e(n[d]).toRgb();for(var f in n){var p=(i=c,o=a[f],(i.r-o.r)**2+(i.g-o.g)**2+(i.b-o.b)**2);pe===t[n]):false;if(e!==null&&t!==null){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>e[n]===t[n]):false}return e===t}toRgba(){let[e,t,n,r]=this._components;return {r:e,g:t,b:n,a:r}}toRgb(){let[e,t,n]=this._components;return {r:e,g:t,b:n}}toRgbaString(){let[e,t,n]=this.toUint8RgbArray();return `rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){let[t,n,r]=this._components;return this._arrayRgb||=[],e||=this._arrayRgb,e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(r*255),e}toArray(e){this._arrayRgba||=[],e||=this._arrayRgba;let[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}toRgbArray(e){this._arrayRgb||=[],e||=this._arrayRgb;let[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toBgrNumber(){let[e,t,n]=this.toUint8RgbArray();return (n<<16)+(t<<8)+e}toLittleEndianNumber(){let e=this._int;return (e>>16)+(e&65280)+((e&255)<<16)}multiply(t){let[n,r,i,a]=e._temp.setValue(t)._components;return this._components[0]*=n,this._components[1]*=r,this._components[2]*=i,this._components[3]*=a,this._refreshInt(),this._value=null,this}premultiply(e,t=true){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this._refreshInt(),this._value=null,this}toPremultiplied(e,t=true){if(e===1)return (255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=this._int&255;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(e*255<<24)+(n<<16)+(r<<8)+i}toHex(){let e=this._int.toString(16);return `#${`000000`.substring(0,6-e.length)+e}`}toHexa(){let e=Math.round(this._components[3]*255).toString(16);return this.toHex()+`00`.substring(0,2-e.length)+e}setAlpha(e){return this._components[3]=this._clamp(e),this}_normalize(t){let n,r,i,a;if((typeof t==`number`||t instanceof Number)&&t>=0&&t<=16777215){let e=t;n=(e>>16&255)/255,r=(e>>8&255)/255,i=(e&255)/255,a=1;}else if((Array.isArray(t)||t instanceof Float32Array)&&t.length>=3&&t.length<=4)t=this._clamp(t),[n,r,i,a=1]=t;else if((t instanceof Uint8Array||t instanceof Uint8ClampedArray)&&t.length>=3&&t.length<=4)t=this._clamp(t,0,255),[n,r,i,a=255]=t,n/=255,r/=255,i/=255,a/=255;else if(typeof t==`string`||typeof t==`object`){if(typeof t==`string`){let n=e.HEX_PATTERN.exec(t);n&&(t=`#${n[2]}`);}let o=P$1(t);o.isValid()&&({r:n,g:r,b:i,a}=o.rgba,n/=255,r/=255,i/=255);}if(n!==void 0)this._components[0]=n,this._components[1]=r,this._components[2]=i,this._components[3]=a,this._refreshInt();else throw Error(`Unable to convert color ${t}`)}_refreshInt(){this._clamp(this._components);let[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0);}_clamp(e,t=0,n=1){return typeof e==`number`?Math.min(Math.max(e,t),n):(e.forEach((r,i)=>{e[i]=Math.min(Math.max(r,t),n);}),e)}static isColorLike(t){return typeof t==`number`||typeof t==`string`||t instanceof Number||t instanceof e||Array.isArray(t)||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Float32Array||t.r!==void 0&&t.g!==void 0&&t.b!==void 0||t.r!==void 0&&t.g!==void 0&&t.b!==void 0&&t.a!==void 0||t.h!==void 0&&t.s!==void 0&&t.l!==void 0||t.h!==void 0&&t.s!==void 0&&t.l!==void 0&&t.a!==void 0||t.h!==void 0&&t.s!==void 0&&t.v!==void 0||t.h!==void 0&&t.s!==void 0&&t.v!==void 0&&t.a!==void 0}};F$1.shared=new F$1,F$1._temp=new F$1,F$1.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;var Ke$3=F$1,qe$3={cullArea:null,cullable:false,cullableChildren:true},Je$3=0,Ye$3=500;function Xe$3(...e){Je$3!==Ye$3&&(Je$3++,Je$3===Ye$3?console.warn(`PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.`):console.warn(`PixiJS Warning: `,...e));}var Ze$3={_registeredResources:new Set,register(e){this._registeredResources.add(e);},unregister(e){this._registeredResources.delete(e);},release(){this._registeredResources.forEach(e=>e.clear());},get registeredCount(){return this._registeredResources.size},isRegistered(e){return this._registeredResources.has(e)},reset(){this._registeredResources.clear();}},Qe$3=class Qe{constructor(e,t){this._pool=[],this._count=0,this._index=0,this._classType=e,t&&this.prepopulate(t);}prepopulate(e){for(let t=0;t0?t=this._pool[--this._index]:(t=new this._classType,this._count++),t.init?.(e),t}return(e){e.reset?.(),this._pool[this._index++]=e;}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}clear(){if(this._pool.length>0&&this._pool[0].destroy)for(let e=0;e{let n=e[t._classType.name]?t._classType.name+t._classType.ID:t._classType.name;e[n]={free:t.totalFree,used:t.totalUsed,size:t.totalSize};}),e}clear(){this._poolsByClass.forEach(e=>e.clear()),this._poolsByClass.clear();}};Ze$3.register(I$1);var $e$3={get isCachedAsTexture(){return !!this.renderGroup?.isCachedAsTexture},cacheAsTexture(e){typeof e==`boolean`&&e===false?this.disableRenderGroup():(this.enableRenderGroup(),this.renderGroup.enableCacheAsTexture(e===true?{}:e));},updateCacheTexture(){this.renderGroup?.updateCacheTexture();},get cacheAsBitmap(){return this.isCachedAsTexture},set cacheAsBitmap(e){E(`v8.6.0`,`cacheAsBitmap is deprecated, use cacheAsTexture instead.`),this.cacheAsTexture(e);}};function et$3(e,t,n){let r=e.length,i;if(t>=r||n===0)return;n=t+n>r?r-t:n;let a=r-n;for(i=t;i0&&r<=n){for(let t=n-1;t>=e;t--){let e=this.children[t];e&&(i.push(e),e.parent=null);}et$3(this.children,e,n);let t=this.renderGroup||this.parentRenderGroup;t&&t.removeChildren(i);for(let e=0;e0&&this._didViewChangeTick++,i}else if(r===0&&this.children.length===0)return i;throw RangeError(`removeChildren: numeric values are outside the acceptable range.`)},removeChildAt(e){let t=this.getChildAt(e);return this.removeChild(t)},getChildAt(e){if(e<0||e>=this.children.length)throw Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]},setChildIndex(e,t){if(t<0||t>=this.children.length)throw Error(`The index ${t} supplied is out of bounds ${this.children.length}`);this.getChildIndex(e),this.addChildAt(e,t);},getChildIndex(e){let t=this.children.indexOf(e);if(t===-1)throw Error(`The supplied Container must be a child of the caller`);return t},addChildAt(e,t){this.allowChildren||E(w,`addChildAt: Only Containers will be allowed to add children in v8.0.0`);let{children:n}=this;if(t<0||t>n.length)throw Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${n.length}`);if(e.parent){let n=e.parent.children.indexOf(e);if(e.parent===this&&n===t)return e;n!==-1&&e.parent.children.splice(n,1);}t===n.length?n.push(e):n.splice(t,0,e),e.parent=this,e.didChange=true,e._updateFlags=15;let r=this.renderGroup||this.parentRenderGroup;return r&&r.addChild(e),this.sortableChildren&&(this.sortDirty=true),this.emit(`childAdded`,e,this,t),e.emit(`added`,this),e},swapChildren(e,t){if(e===t)return;let n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e;let i=this.renderGroup||this.parentRenderGroup;i&&(i.structureDidChange=true),this._didContainerChangeTick++;},removeFromParent(){this.parent?.removeChild(this);},reparentChild(...e){return e.length===1?this.reparentChildAt(e[0],this.children.length):(e.forEach(e=>this.reparentChildAt(e,this.children.length)),e[0])},reparentChildAt(e,t){if(e.parent===this)return this.setChildIndex(e,t),e;let n=e.worldTransform.clone();e.removeFromParent(),this.addChildAt(e,t);let r=this.worldTransform.clone();return r.invert(),n.prepend(r),e.setFromMatrix(n),e},replaceChild(e,t){e.updateLocalTransform(),this.addChildAt(t,this.getChildIndex(e)),t.setFromMatrix(e.localTransform),t.updateLocalTransform(),this.removeChild(e);}},nt$3={collectRenderables(e,t,n){this.parentRenderLayer&&this.parentRenderLayer!==n||this.globalDisplayStatus<7||!this.includeInBuild||(this.sortableChildren&&this.sortChildren(),this.isSimple?this.collectRenderablesSimple(e,t,n):this.renderGroup?t.renderPipes.renderGroup.addRenderGroup(this.renderGroup,e):this.collectRenderablesWithEffects(e,t,n));},collectRenderablesSimple(e,t,n){let r=this.children,i=r.length;for(let a=0;a=0;t--){let n=this.effects[t];r[n.pipe].pop(n,this,e);}}},rt$3=class rt{constructor(){this.pipe=`filter`,this.priority=1;}destroy(){for(let e=0;e{this.add({test:e.test,maskClass:e});}));}add(e){this._tests.push(e);}getMaskEffect(e){this._initialized||this.init();for(let t=0;te.priority-t.priority),this._markStructureAsChanged(),this._updateIsSimple());},removeEffect(e){let t=this.effects.indexOf(e);t!==-1&&(this.effects.splice(t,1),this._markStructureAsChanged(),this._updateIsSimple());},set mask(e){let t=this._maskEffect;t?.mask!==e&&(t&&(this.removeEffect(t),it$3.returnMaskEffect(t),this._maskEffect=null),e!=null&&(this._maskEffect=it$3.getMaskEffect(e),this.addEffect(this._maskEffect)));},get mask(){return this._maskEffect?.mask},setMask(e){this._maskOptions={...this._maskOptions,...e},e.mask&&(this.mask=e.mask),this._markStructureAsChanged();},set filters(e){!Array.isArray(e)&&e&&(e=[e]);let t=this._filterEffect||=new rt$3;e=e;let n=e?.length>0,r=n!==t.filters?.length>0;e=Array.isArray(e)?e.slice(0):e,t.filters=Object.freeze(e),r&&(n?this.addEffect(t):(this.removeEffect(t),t.filters=e??null));},get filters(){return this._filterEffect?.filters},set filterArea(e){this._filterEffect||=new rt$3,this._filterEffect.filterArea=e;},get filterArea(){return this._filterEffect?.filterArea}},ot$3={label:null,get name(){return E(w,`Container.name property has been removed, use Container.label instead`),this.label},set name(e){E(w,`Container.name property has been removed, use Container.label instead`),this.label=e;},getChildByName(e,t=false){return this.getChildByLabel(e,t)},getChildByLabel(e,t=false){let n=this.children;for(let t=0;t>16&255,r=e>>8&255,i=e&255,a=t>>16&255,o=t>>8&255,s=t&255,c=n*a/255|0,l=r*o/255|0,u=i*s/255|0;return (c<<16)+(l<<8)+u}var pt$3=16777215;function mt$3(e,t){return e===pt$3?t:t===pt$3?e:ft$3(e,t)}function ht$3(e){return ((e&255)<<16)+(e&65280)+(e>>16&255)}var gt$3={getGlobalAlpha(e){if(e)return this.renderGroup?this.renderGroup.worldAlpha:this.parentRenderGroup?this.parentRenderGroup.worldAlpha*this.alpha:this.alpha;let t=this.alpha,n=this.parent;for(;n;)t*=n.alpha,n=n.parent;return t},getGlobalTransform(e=new p,t){if(t)return e.copyFrom(this.worldTransform);this.updateLocalTransform();let n=dt$3(this,L$1.get().identity());return e.appendFrom(this.localTransform,n),L$1.return(n),e},getGlobalTint(e){if(e)return this.renderGroup?ht$3(this.renderGroup.worldColor):this.parentRenderGroup?ht$3(mt$3(this.localColor,this.parentRenderGroup.worldColor)):this.tint;let t=this.localColor,n=this.parent;for(;n;)t=mt$3(t,n.localColor),n=n.parent;return ht$3(t)}};function _t$3(e,t,n){return t.clear(),n||=p.IDENTITY,vt$3(e,t,n,e,true),t.isValid||t.set(0,0,0,0),t}function vt$3(e,t,n,r,i){let a;if(i)a=L$1.get(),a=n.copyTo(a);else {if(!e.visible||!e.measurable)return;e.updateLocalTransform();let t=e.localTransform;a=L$1.get(),a.appendFrom(t,n);}let o=t,s=!!e.effects.length;if(s&&(t=R.get().clear()),e.boundsArea)t.addRect(e.boundsArea,a);else {e.renderPipeId&&(t.matrix=a,t.addBounds(e.bounds));let n=e.children;for(let e=0;e-1&&this.renderGroupChildren.splice(t,1),e.renderGroupParent=null;}addChild(e){if(this.structureDidChange=true,e.parentRenderGroup=this,e.updateTick=-1,e.parent===this.root?e.relativeRenderGroupDepth=1:e.relativeRenderGroupDepth=e.parent.relativeRenderGroupDepth+1,e.didChange=true,this.onChildUpdate(e),e.renderGroup){this.addRenderGroupChild(e.renderGroup);return}e._onRender&&this.addOnRender(e);let t=e.children;for(let e=0;e0}addOnRender(e){this._onRenderContainers.push(e);}removeOnRender(e){this._onRenderContainers.splice(this._onRenderContainers.indexOf(e),1);}runOnRender(e){for(let t=0;tthis.addChild(e)),e.parent?.addChild(this);}static mixin(t){E(`8.8.0`,`Container.mixin is deprecated, please use extensions.mixin instead.`),a$1.mixin(e,t);}set _didChangeId(e){this._didViewChangeTick=e>>12&4095,this._didContainerChangeTick=e&4095;}get _didChangeId(){return this._didContainerChangeTick&4095|(this._didViewChangeTick&4095)<<12}addChild(...e){if(this.allowChildren||E(w,`addChild: Only Containers will be allowed to add children in v8.0.0`),e.length>1){for(let t=0;t1){for(let t=0;t-1&&(this._didViewChangeTick++,this.children.splice(n,1),this.renderGroup?this.renderGroup.removeChild(t):this.parentRenderGroup&&this.parentRenderGroup.removeChild(t),t.parentRenderLayer&&t.parentRenderLayer.detach(t),t.parent=null,this.emit(`childRemoved`,t,this,n),t.emit(`removed`,this)),t}_onUpdate(e){e&&e===this._skew&&this._updateSkew(),this._didContainerChangeTick++,!this.didChange&&(this.didChange=true,this.parentRenderGroup&&this.parentRenderGroup.onChildUpdate(this));}set isRenderGroup(e){!!this.renderGroup!==e&&(e?this.enableRenderGroup():this.disableRenderGroup());}get isRenderGroup(){return !!this.renderGroup}enableRenderGroup(){if(this.renderGroup)return;let e=this.parentRenderGroup;e?.removeChild(this),this.renderGroup=I$1.get(kt$2,this),this.groupTransform=p.IDENTITY,e?.addChild(this),this._updateIsSimple();}disableRenderGroup(){if(!this.renderGroup)return;let e=this.parentRenderGroup;e?.removeChild(this),I$1.return(this.renderGroup),this.renderGroup=null,this.groupTransform=this.relativeGroupTransform,e?.addChild(this),this._updateIsSimple();}_updateIsSimple(){this.isSimple=!this.renderGroup&&this.effects.length===0;}get worldTransform(){return this._worldTransform||=new p,this.renderGroup?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this.parentRenderGroup&&this._worldTransform.appendFrom(this.relativeGroupTransform,this.parentRenderGroup.worldTransform),this._worldTransform}get x(){return this._position.x}set x(e){this._position.x=e;}get y(){return this._position.y}set y(e){this._position.y=e;}get position(){return this._position}set position(e){this._position.copyFrom(e);}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._onUpdate(this._skew));}get angle(){return this.rotation*l}set angle(e){this.rotation=e*u;}get pivot(){return this._pivot===Mt$2&&(this._pivot=new o$1(this,0,0)),this._pivot}set pivot(e){this._pivot===Mt$2&&(this._pivot=new o$1(this,0,0),this._origin!==Pt$2&&Xe$3(`Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.`)),typeof e==`number`?this._pivot.set(e):this._pivot.copyFrom(e);}get skew(){return this._skew===jt$2&&(this._skew=new o$1(this,0,0)),this._skew}set skew(e){this._skew===jt$2&&(this._skew=new o$1(this,0,0)),this._skew.copyFrom(e);}get scale(){return this._scale===Nt$2&&(this._scale=new o$1(this,1,1)),this._scale}set scale(e){this._scale===Nt$2&&(this._scale=new o$1(this,0,0)),typeof e==`string`&&(e=parseFloat(e)),typeof e==`number`?this._scale.set(e):this._scale.copyFrom(e);}get origin(){return this._origin===Pt$2&&(this._origin=new o$1(this,0,0)),this._origin}set origin(e){this._origin===Pt$2&&(this._origin=new o$1(this,0,0),this._pivot!==Mt$2&&Xe$3(`Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.`)),typeof e==`number`?this._origin.set(e):this._origin.copyFrom(e);}get width(){return Math.abs(this.scale.x*this.getLocalBounds().width)}set width(e){let t=this.getLocalBounds().width;this._setWidth(e,t);}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(e){let t=this.getLocalBounds().height;this._setHeight(e,t);}getSize(e){e||={};let t=this.getLocalBounds();return e.width=Math.abs(this.scale.x*t.width),e.height=Math.abs(this.scale.y*t.height),e}setSize(e,t){let n=this.getLocalBounds();typeof e==`object`?(t=e.height??e.width,e=e.width):t??=e,e!==void 0&&this._setWidth(e,n.width),t!==void 0&&this._setHeight(t,n.height);}_updateSkew(){let e=this._rotation,t=this._skew;this._cx=Math.cos(e+t._y),this._sx=Math.sin(e+t._y),this._cy=-Math.sin(e-t._x),this._sy=Math.cos(e-t._x);}updateTransform(e){return this.position.set(typeof e.x==`number`?e.x:this.position.x,typeof e.y==`number`?e.y:this.position.y),this.scale.set(typeof e.scaleX==`number`?e.scaleX||1:this.scale.x,typeof e.scaleY==`number`?e.scaleY||1:this.scale.y),this.rotation=typeof e.rotation==`number`?e.rotation:this.rotation,this.skew.set(typeof e.skewX==`number`?e.skewX:this.skew.x,typeof e.skewY==`number`?e.skewY:this.skew.y),this.pivot.set(typeof e.pivotX==`number`?e.pivotX:this.pivot.x,typeof e.pivotY==`number`?e.pivotY:this.pivot.y),this.origin.set(typeof e.originX==`number`?e.originX:this.origin.x,typeof e.originY==`number`?e.originY:this.origin.y),this}setFromMatrix(e){e.decompose(this);}updateLocalTransform(){let e=this._didContainerChangeTick;if(this._didLocalTransformChangeId===e)return;this._didLocalTransformChangeId=e;let t=this.localTransform,n=this._scale,r=this._pivot,i=this._origin,a=this._position,o=n._x,s=n._y,c=r._x,l=r._y,u=-i._x,d=-i._y;t.a=this._cx*o,t.b=this._sx*o,t.c=this._cy*s,t.d=this._sy*s,t.tx=a._x-(c*t.a+l*t.c)+(u*t.a+d*t.c)-u,t.ty=a._y-(c*t.b+l*t.d)+(u*t.b+d*t.d)-d;}set alpha(e){e!==this.localAlpha&&(this.localAlpha=e,this._updateFlags|=1,this._onUpdate());}get alpha(){return this.localAlpha}set tint(e){let t=Ke$3.shared.setValue(e??16777215).toBgrNumber();t!==this.localColor&&(this.localColor=t,this._updateFlags|=1,this._onUpdate());}get tint(){return ht$3(this.localColor)}set blendMode(e){this.localBlendMode!==e&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._updateFlags|=2,this.localBlendMode=e,this._onUpdate());}get blendMode(){return this.localBlendMode}get visible(){return !!(this.localDisplayStatus&2)}set visible(e){let t=e?2:0;(this.localDisplayStatus&2)!==t&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._updateFlags|=4,this.localDisplayStatus^=2,this._onUpdate());}get culled(){return !(this.localDisplayStatus&4)}set culled(e){let t=e?0:4;(this.localDisplayStatus&4)!==t&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._updateFlags|=4,this.localDisplayStatus^=4,this._onUpdate());}get renderable(){return !!(this.localDisplayStatus&1)}set renderable(e){let t=+!!e;(this.localDisplayStatus&1)!==t&&(this._updateFlags|=4,this.localDisplayStatus^=1,this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._onUpdate());}get isRenderable(){return this.localDisplayStatus===7&&this.groupAlpha>0}destroy(e=false){if(this.destroyed)return;this.destroyed=true;let t;if(this.children.length&&(t=this.removeChildren(0,this.children.length)),this.removeFromParent(),this.parent=null,this._maskEffect=null,this._filterEffect=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._origin=null,this._skew=null,this.emit(`destroyed`,this),this.removeAllListeners(),(typeof e==`boolean`?e:e?.children)&&t)for(let n=0;n=t.minX&&n<=t.maxX&&r>=t.minY&&r<=t.maxY}onViewUpdate(){if(this._didViewChangeTick++,this._boundsDirty=true,this.didViewUpdate)return;this.didViewUpdate=true;let e=this.renderGroup||this.parentRenderGroup;e&&e.onChildViewUpdate(this);}unload(){this.emit(`unload`,this);for(let e in this._gpuData)this._gpuData[e]?.destroy();this._gpuData=Object.create(null),this.onViewUpdate();}destroy(e){this.unload(),super.destroy(e),this._bounds=null;}collectRenderablesSimple(e,t,n){let{renderPipes:r}=t;r.blendMode.pushBlendMode(this,this.groupBlendMode,e),r[this.renderPipeId].addRenderable(this,e),this.didViewUpdate=false;let i=this.children,a=i.length;for(let r=0;r{this.onViewUpdate();}}),n?this.anchor=n:t.defaultAnchor&&(this.anchor=t.defaultAnchor),this.texture=t,this.allowChildren=false,this.roundPixels=r??false,i!==void 0&&(this.width=i),a!==void 0&&(this.height=a);}static from(t,n=false){return t instanceof O?new e(t):new e(O.from(t,n))}set texture(e){e||=O.EMPTY;let t=this._texture;t!==e&&(t&&t.dynamic&&t.off(`update`,this.onViewUpdate,this),e.dynamic&&e.on(`update`,this.onViewUpdate,this),this._texture=e,this._width&&this._setWidth(this._width,this._texture.orig.width),this._height&&this._setHeight(this._height,this._texture.orig.height),this.onViewUpdate());}get texture(){return this._texture}get visualBounds(){return ye$1(this._visualBounds,this._anchor,this._texture),this._visualBounds}get sourceBounds(){return E(`8.6.1`,`Sprite.sourceBounds is deprecated, use visualBounds instead.`),this.visualBounds}updateBounds(){let e=this._anchor,t=this._texture,n=this._bounds,{width:r,height:i}=t.orig;n.minX=-e._x*r,n.maxX=n.minX+r,n.minY=-e._y*i,n.maxY=n.minY+i;}destroy(e=false){if(super.destroy(e),typeof e==`boolean`?e:e?.texture){let t=typeof e==`boolean`?e:e?.textureSource;this._texture.destroy(t);}this._texture=null,this._visualBounds=null,this._bounds=null,this._anchor=null;}get anchor(){return this._anchor}set anchor(e){typeof e==`number`?this._anchor.set(e):this._anchor.copyFrom(e);}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(e){this._setWidth(e,this._texture.orig.width),this._width=e;}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(e){this._setHeight(e,this._texture.orig.height),this._height=e;}getSize(e){return e||={},e.width=Math.abs(this.scale.x)*this._texture.orig.width,e.height=Math.abs(this.scale.y)*this._texture.orig.height,e}setSize(e,t){typeof e==`object`?(t=e.height??e.width,e=e.width):t??=e,e!==void 0&&this._setWidth(e,this._texture.orig.width),t!==void 0&&this._setHeight(t,this._texture.orig.height);}},Rt$2={createCanvas:(e,t)=>{let n=document.createElement(`canvas`);return n.width=e,n.height=t,n},createImage:()=>new Image,getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,`text/xml`)},zt$2={get(){return Rt$2},set(e){Rt$2=e;}},Bt$2=class Bt extends D{constructor(e){e.resource||=zt$2.get().createCanvas(),e.width||(e.width=e.resource.width,e.autoDensity||(e.width/=e.resolution)),e.height||(e.height=e.resource.height,e.autoDensity||(e.height/=e.resolution)),super(e),this.uploadMethodId=`image`,this.autoDensity=e.autoDensity,this.resizeCanvas(),this.transparent=!!e.transparent;}resizeCanvas(){this.autoDensity&&`style`in this.resource&&(this.resource.style.width=`${this.width}px`,this.resource.style.height=`${this.height}px`),(this.resource.width!==this.pixelWidth||this.resource.height!==this.pixelHeight)&&(this.resource.width=this.pixelWidth,this.resource.height=this.pixelHeight);}resize(e=this.width,t=this.height,n=this._resolution){let r=super.resize(e,t,n);return r&&this.resizeCanvas(),r}static test(e){return globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&e instanceof OffscreenCanvas}get context2D(){return this._context2D||=this.resource.getContext(`2d`)}};Bt$2.extension=n.TextureSource;var Vt$2=(e=>(e[e.INTERACTION=50]=`INTERACTION`,e[e.HIGH=25]=`HIGH`,e[e.NORMAL=0]=`NORMAL`,e[e.LOW=-25]=`LOW`,e[e.UTILITY=-50]=`UTILITY`,e))(Vt$2||{}),Ht$2=class Ht{constructor(e,t=null,n=0,r=false){this.next=null,this.previous=null,this._destroyed=false,this._fn=e,this._context=t,this.priority=n,this._once=r;}match(e,t=null){return this._fn===e&&this._context===t}emit(e){this._fn&&(this._context?this._fn.call(this._context,e):this._fn(e));let t=this.next;return this._once&&this.destroy(true),this._destroyed&&(this.next=null),t}connect(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this;}destroy(e=false){this._destroyed=true,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);let t=this.next;return this.next=e?null:t,this.previous=null,t}},Ut$2=class e{constructor(){this.autoStart=false,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=false,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=false,this._lastFrame=-1,this._head=new Ht$2(null,null,1/0),this.deltaMS=1/e.targetFPMS,this.elapsedMS=1/e.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)));};}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick));}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null);}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start();}add(e,t,n=Vt$2.NORMAL){return this._addListener(new Ht$2(e,t,n))}addOnce(e,t,n=Vt$2.NORMAL){return this._addListener(new Ht$2(e,t,n,true))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else {for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next;}e.previous||e.connect(n);}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n=n.match(e,t)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=true,this._requestIfNeeded());}stop(){this.started&&(this.started=false,this._cancelIfNeeded());}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(true);this._head.destroy(),this._head=null;}}update(t=performance.now()){let n;if(t>this.lastTime){if(n=this.elapsedMS=t-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),n*=this.speed,this._minElapsedMS){let e=t-this._lastFrame|0;if(e{let t=r[e];i=on$1[e](i,t,true),a=on$1[e](a,t,false);}),this.fragment=i,this.vertex=a,this.transformFeedbackVaryings=t.transformFeedbackVaryings,this._key=qt$2(`${this.vertex}:${this.fragment}`,`gl-program`);}destroy(){this.fragment=null,this.vertex=null,this._attributeData=null,this._uniformData=null,this._uniformBlockData=null,this.transformFeedbackVaryings=null,z$1[this._cacheKey]=null;}static from(t){let n=`${t.vertex}:${t.fragment}`;return z$1[n]||(z$1[n]=new e(t),z$1[n]._cacheKey=n),z$1[n]}};sn$1.defaultOptions={preferredVertexPrecision:`highp`,preferredFragmentPrecision:`mediump`};var cn$1=sn$1,ln$2={uint8x2:{size:2,stride:2,normalised:false},uint8x4:{size:4,stride:4,normalised:false},sint8x2:{size:2,stride:2,normalised:false},sint8x4:{size:4,stride:4,normalised:false},unorm8x2:{size:2,stride:2,normalised:true},unorm8x4:{size:4,stride:4,normalised:true},snorm8x2:{size:2,stride:2,normalised:true},snorm8x4:{size:4,stride:4,normalised:true},uint16x2:{size:2,stride:4,normalised:false},uint16x4:{size:4,stride:8,normalised:false},sint16x2:{size:2,stride:4,normalised:false},sint16x4:{size:4,stride:8,normalised:false},unorm16x2:{size:2,stride:4,normalised:true},unorm16x4:{size:4,stride:8,normalised:true},snorm16x2:{size:2,stride:4,normalised:true},snorm16x4:{size:4,stride:8,normalised:true},float16x2:{size:2,stride:4,normalised:false},float16x4:{size:4,stride:8,normalised:false},float32:{size:1,stride:4,normalised:false},float32x2:{size:2,stride:8,normalised:false},float32x3:{size:3,stride:12,normalised:false},float32x4:{size:4,stride:16,normalised:false},uint32:{size:1,stride:4,normalised:false},uint32x2:{size:2,stride:8,normalised:false},uint32x3:{size:3,stride:12,normalised:false},uint32x4:{size:4,stride:16,normalised:false},sint32:{size:1,stride:4,normalised:false},sint32x2:{size:2,stride:8,normalised:false},sint32x3:{size:3,stride:12,normalised:false},sint32x4:{size:4,stride:16,normalised:false}};function un$2(e){return ln$2[e]??ln$2.float32}var dn$2={f32:`float32`,"vec2":`float32x2`,"vec3":`float32x3`,"vec4":`float32x4`,vec2f:`float32x2`,vec3f:`float32x3`,vec4f:`float32x4`,i32:`sint32`,"vec2":`sint32x2`,"vec3":`sint32x3`,"vec4":`sint32x4`,u32:`uint32`,"vec2":`uint32x2`,"vec3":`uint32x3`,"vec4":`uint32x4`,bool:`uint32`,"vec2":`uint32x2`,"vec3":`uint32x3`,"vec4":`uint32x4`};function fn$2({source:e,entryPoint:t}){let n={},r=e.indexOf(`fn ${t}`);if(r!==-1){let t=e.indexOf(`->`,r);if(t!==-1){let i=e.substring(r,t),a=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|$)/g,o;for(;(o=a.exec(i))!==null;){let e=dn$2[o[3]]??`float32`;n[o[2]]={location:parseInt(o[1],10),format:e,stride:un$2(e).stride,offset:0,instance:false,start:0};}}}return n}function pn$2(e){let t=/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g,n=/@group\((\d+)\)/,r=/@binding\((\d+)\)/,i=/var(<[^>]+>)? (\w+)/,a=/:\s*(\w+)/,o=/struct\s+(\w+)\s*{([^}]+)}/g,s=/(\w+)\s*:\s*([\w\<\>]+)/g,c=/struct\s+(\w+)/,l=e.match(t)?.map(e=>({group:parseInt(e.match(n)[1],10),binding:parseInt(e.match(r)[1],10),name:e.match(i)[2],isUniform:e.match(i)[1]===``,type:e.match(a)[1]}));return l?{groups:l,structs:e.match(o)?.map(e=>{let t=e.match(c)[1],n=e.match(s).reduce((e,t)=>{let[n,r]=t.split(`:`);return e[n.trim()]=r.trim(),e},{});return n?{name:t,members:n}:null}).filter(({name:e})=>l.some(t=>t.type===e))??[]}:{groups:[],structs:[]}}var B$1=(e=>(e[e.VERTEX=1]=`VERTEX`,e[e.FRAGMENT=2]=`FRAGMENT`,e[e.COMPUTE=4]=`COMPUTE`,e))(B$1||{});function mn$2({groups:e}){let t=[];for(let n=0;nn.has(e.name)?false:(n.add(e.name),true)),groups:[...e.groups,...t.groups].filter(e=>{let t=`${e.name}-${e.binding}`;return r.has(t)?false:(r.add(t),true)})}}var V$1=Object.create(null),_n$2=class e{constructor(e){this._layoutKey=0,this._attributeLocationsKey=0;let{fragment:t,vertex:n,layout:r,gpuLayout:i,name:a}=e;if(this.name=a,this.fragment=t,this.vertex=n,t.source===n.source){let e=pn$2(t.source);this.structsAndGroups=e;}else {let e=pn$2(n.source),r=pn$2(t.source);this.structsAndGroups=gn$2(e,r);}this.layout=r??hn$2(this.structsAndGroups),this.gpuLayout=i??mn$2(this.structsAndGroups),this.autoAssignGlobalUniforms=this.layout[0]?.globalUniforms!==void 0,this.autoAssignLocalUniforms=this.layout[1]?.localUniforms!==void 0,this._generateProgramKey();}_generateProgramKey(){let{vertex:e,fragment:t}=this,n=e.source+t.source+e.entryPoint+t.entryPoint;this._layoutKey=qt$2(n,`program`);}get attributeData(){return this._attributeData??=fn$2(this.vertex),this._attributeData}destroy(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null,V$1[this._cacheKey]=null;}static from(t){let n=`${t.vertex.source}:${t.fragment.source}:${t.fragment.entryPoint}:${t.vertex.entryPoint}`;return V$1[n]||(V$1[n]=new e(t),V$1[n]._cacheKey=n),V$1[n]}},vn$2=[`f32`,`i32`,`vec2`,`vec3`,`vec4`,`mat2x2`,`mat3x3`,`mat4x4`,`mat3x2`,`mat4x2`,`mat2x3`,`mat4x3`,`mat2x4`,`mat3x4`,`vec2`,`vec3`,`vec4`],yn$2=vn$2.reduce((e,t)=>(e[t]=true,e),{});function bn$2(e,t){switch(e){case `f32`:return 0;case `vec2`:return new Float32Array(2*t);case `vec3`:return new Float32Array(3*t);case `vec4`:return new Float32Array(4*t);case `mat2x2`:return new Float32Array([1,0,0,1]);case `mat3x3`:return new Float32Array([1,0,0,0,1,0,0,0,1]);case `mat4x4`:return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var xn$2=class e{constructor(t,n){this._touched=0,this.uid=C(`uniform`),this._resourceType=`uniformGroup`,this._resourceId=C(`resource`),this.isUniformGroup=true,this._dirtyId=0,this.destroyed=false,n={...e.defaultOptions,...n},this.uniformStructures=t;let r={};for(let e in t){let n=t[e];if(n.name=e,n.size=n.size??1,!yn$2[n.type]){let e=n.type.match(/^array<(\w+(?:<\w+>)?),\s*(\d+)>$/);if(e){let[,t,r]=e;throw Error(`Uniform type ${n.type} is not supported. Use type: '${t}', size: ${r} instead.`)}throw Error(`Uniform type ${n.type} is not supported. Supported uniform types are: ${vn$2.join(`, `)}`)}n.value??=bn$2(n.type,n.size),r[e]=n.value;}this.uniforms=r,this._dirtyId=1,this.ubo=n.ubo,this.isStatic=n.isStatic,this._signature=qt$2(Object.keys(r).map(e=>`${e}-${t[e].type}`).join(`-`),`uniform-group`);}update(){this._dirtyId++;}};xn$2.defaultOptions={ubo:false,isStatic:false};var Sn$2=xn$2,Cn$2=class Cn{constructor(e){this.resources=Object.create(null),this._dirty=true;let t=0;for(let n in e){let r=e[n];this.setResource(r,t++);}this._updateKey();}_updateKey(){if(!this._dirty)return;this._dirty=false;let e=[],t=0;for(let n in this.resources)e[t++]=this.resources[n]._resourceId;this._key=e.join(`|`);}setResource(e,t){let n=this.resources[t];e!==n&&(n&&e.off?.(`change`,this.onResourceChange,this),e.on?.(`change`,this.onResourceChange,this),this.resources[t]=e,this._dirty=true);}getResource(e){return this.resources[e]}_touch(e,t){let n=this.resources;for(let r in n)n[r]._gcLastUsed=e,n[r]._touched=t;}destroy(){let e=this.resources;for(let t in e)e[t]?.off?.(`change`,this.onResourceChange,this);this.resources=null;}onResourceChange(e){if(this._dirty=true,e.destroyed){let t=this.resources;for(let n in t)t[n]===e&&(t[n]=null);}else this._updateKey();}},wn$2=(e=>(e[e.WEBGL=1]=`WEBGL`,e[e.WEBGPU=2]=`WEBGPU`,e[e.BOTH=3]=`BOTH`,e))(wn$2||{}),Tn$2=class e extends s$1{constructor(e){super(),this.uid=C(`shader`),this._uniformBindMap=Object.create(null),this._ownedBindGroups=[],this._destroyed=false;let{gpuProgram:t,glProgram:n,groups:r,resources:i,compatibleRenderers:a,groupMap:o}=e;this.gpuProgram=t,this.glProgram=n,a===void 0&&(a=0,t&&(a|=wn$2.WEBGPU),n&&(a|=wn$2.WEBGL)),this.compatibleRenderers=a;let s={};if(!i&&!r&&(i={}),i&&r)throw Error(`[Shader] Cannot have both resources and groups`);if(!t&&r&&!o)throw Error(`[Shader] No group map or WebGPU shader provided - consider using resources instead.`);if(!t&&r&&o)for(let e in o)for(let t in o[e]){let n=o[e][t];s[n]={group:e,binding:t,name:n};}else if(t&&r&&!o){let e=t.structsAndGroups.groups;o={},e.forEach(e=>{o[e.group]=o[e.group]||{},o[e.group][e.binding]=e.name,s[e.name]=e;});}else if(i){r={},o={},t&&t.structsAndGroups.groups.forEach(e=>{o[e.group]=o[e.group]||{},o[e.group][e.binding]=e.name,s[e.name]=e;});let e=0;for(let t in i)s[t]||(r[99]||(r[99]=new Cn$2,this._ownedBindGroups.push(r[99])),s[t]={group:99,binding:e,name:t},o[99]=o[99]||{},o[99][e]=t,e++);for(let e in i){let t=e,n=i[e];!n.source&&!n._resourceType&&(n=new Sn$2(n));let a=s[t];a&&(r[a.group]||(r[a.group]=new Cn$2,this._ownedBindGroups.push(r[a.group])),r[a.group].setResource(n,a.binding));}}this.groups=r,this._uniformBindMap=o,this.resources=this._buildResourceAccessor(r,s);}addResource(e,t,n){var r,i;(r=this._uniformBindMap)[t]||(r[t]={}),(i=this._uniformBindMap[t])[n]||(i[n]=e),this.groups[t]||(this.groups[t]=new Cn$2,this._ownedBindGroups.push(this.groups[t]));}_buildResourceAccessor(e,t){let n={};for(let r in t){let i=t[r];Object.defineProperty(n,i.name,{get(){return e[i.group].getResource(i.binding)},set(t){e[i.group].setResource(t,i.binding);}});}return n}destroy(e=false){this._destroyed||(this._destroyed=true,this.emit(`destroy`,this),e&&(this.gpuProgram?.destroy(),this.glProgram?.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach(e=>{e.destroy();}),this._ownedBindGroups=null,this.resources=null,this.groups=null);}static from(t){let{gpu:n,gl:r,...i}=t,a,o;return n&&(a=_n$2.from(n)),r&&(o=cn$1.from(r)),new e({gpuProgram:a,glProgram:o,...i})}},En$1={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8,min:9,max:10},Dn$1=0,On$1=1,kn$1=2,An$1=3,jn$1=4,Mn$1=5,Nn$1=class e{constructor(){this.data=0,this.blendMode=`normal`,this.polygonOffset=0,this.blend=true,this.depthMask=true;}get blend(){return !!(this.data&1<80*n){s=e[0],c=e[1];let t=s,r=c;for(let a=n;at&&(t=n),i>r&&(r=i);}l=Math.max(t-s,r-c),l=l===0?0:32767/l;}return U$1(a,o,n,s,c,l,0),o}function Rn$1(e,t,n,r,i){let a;if(i===cr$1(e,t,n,r)>0)for(let i=t;i=t;i-=r)a=or$1(i/r|0,e[i],e[i+1],a);return a&&K$2(a,a.next)&&(J$2(a),a=a.next),a}function H$1(e,t){if(!e)return e;t||=e;let n=e,r;do if(r=false,!n.steiner&&(K$2(n,n.next)||G$1(n.prev,n,n.next)===0)){if(J$2(n),n=t=n.prev,n===n.next)break;r=true;}else n=n.next;while(r||n!==t);return t}function U$1(e,t,n,r,i,a,o){if(!e)return;!o&&a&&Jn$1(e,r,i,a);let s=e;for(;e.prev!==e.next;){let c=e.prev,l=e.next;if(a?Bn$1(e,r,i,a):zn$1(e)){t.push(c.i,e.i,l.i),J$2(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=Vn$1(H$1(e),t),U$1(e,t,n,r,i,a,2)):o===2&&Hn$1(e,t,n,r,i,a):U$1(H$1(e),t,n,r,i,a,1);break}}}function zn$1(e){let t=e.prev,n=e,r=e.next;if(G$1(t,n,r)>=0)return false;let i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=Math.min(i,a,o),d=Math.min(s,c,l),f=Math.max(i,a,o),p=Math.max(s,c,l),m=r.next;for(;m!==t;){if(m.x>=u&&m.x<=f&&m.y>=d&&m.y<=p&&W$1(i,s,a,c,o,l,m.x,m.y)&&G$1(m.prev,m,m.next)>=0)return false;m=m.next;}return true}function Bn$1(e,t,n,r){let i=e.prev,a=e,o=e.next;if(G$1(i,a,o)>=0)return false;let s=i.x,c=a.x,l=o.x,u=i.y,d=a.y,f=o.y,p=Math.min(s,c,l),m=Math.min(u,d,f),h=Math.max(s,c,l),g=Math.max(u,d,f),_=Xn$1(p,m,t,n,r),v=Xn$1(h,g,t,n,r),y=e.prevZ,b=e.nextZ;for(;y&&y.z>=_&&b&&b.z<=v;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&W$1(s,u,c,d,l,f,y.x,y.y)&&G$1(y.prev,y,y.next)>=0||(y=y.prevZ,b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&W$1(s,u,c,d,l,f,b.x,b.y)&&G$1(b.prev,b,b.next)>=0))return false;b=b.nextZ;}for(;y&&y.z>=_;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&W$1(s,u,c,d,l,f,y.x,y.y)&&G$1(y.prev,y,y.next)>=0)return false;y=y.prevZ;}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&W$1(s,u,c,d,l,f,b.x,b.y)&&G$1(b.prev,b,b.next)>=0)return false;b=b.nextZ;}return true}function Vn$1(e,t){let n=e;do{let r=n.prev,i=n.next.next;!K$2(r,i)&&er$2(r,n,n.next,i)&&q$2(r,i)&&q$2(i,r)&&(t.push(r.i,n.i,i.i),J$2(n),J$2(n.next),n=e=i),n=n.next;}while(n!==e);return H$1(n)}function Hn$1(e,t,n,r,i,a){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&$n$2(o,e)){let s=ar$1(o,e);o=H$1(o,o.next),s=H$1(s,s.next),U$1(o,t,n,r,i,a,0),U$1(s,t,n,r,i,a,0);return}e=e.next;}o=o.next;}while(o!==e)}function Un$1(e,t,n,r){let i=[];for(let n=0,a=t.length;n=n.next.y&&n.next.y!==n.y){let e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>a&&(a=e,o=n.x=n.x&&n.x>=c&&r!==n.x&&Qn$1(io.x||n.x===o.x&&qn$1(o,n)))&&(o=n,u=t);}n=n.next;}while(n!==s);return o}function qn$1(e,t){return G$1(e.prev,e,t.prev)<0&&G$1(t.next,e,e.next)<0}function Jn$1(e,t,n,r){let i=e;do i.z===0&&(i.z=Xn$1(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Yn$1(i);}function Yn$1(e){let t,n=1;do{let r=e,i;e=null;let a=null;for(t=0;r;){t++;let o=r,s=0;for(let e=0;e0||c>0&&o;)s!==0&&(c===0||!o||r.z<=o.z)?(i=r,r=r.nextZ,s--):(i=o,o=o.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=o;}a.nextZ=null,n*=2;}while(t>1);return e}function Xn$1(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Zn$1(e){let t=e,n=e;do(t.x=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function W$1(e,t,n,r,i,a,o,s){return !(e===o&&t===s)&&Qn$1(e,t,n,r,i,a,o,s)}function $n$2(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!rr$2(e,t)&&(q$2(e,t)&&q$2(t,e)&&ir$1(e,t)&&(G$1(e.prev,e,t.prev)||G$1(e,t.prev,t))||K$2(e,t)&&G$1(e.prev,e,e.next)>0&&G$1(t.prev,t,t.next)>0)}function G$1(e,t,n){return (t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function K$2(e,t){return e.x===t.x&&e.y===t.y}function er$2(e,t,n,r){let i=nr$2(G$1(e,t,n)),a=nr$2(G$1(e,t,r)),o=nr$2(G$1(n,r,e)),s=nr$2(G$1(n,r,t));return !!(i!==a&&o!==s||i===0&&tr$2(e,n,t)||a===0&&tr$2(e,r,t)||o===0&&tr$2(n,e,r)||s===0&&tr$2(n,t,r))}function tr$2(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function nr$2(e){return e>0?1:e<0?-1:0}function rr$2(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&er$2(n,n.next,e,t))return true;n=n.next;}while(n!==e);return false}function q$2(e,t){return G$1(e.prev,e,e.next)<0?G$1(e,t,e.next)>=0&&G$1(e,e.prev,t)>=0:G$1(e,t,e.prev)<0||G$1(e,e.next,t)<0}function ir$1(e,t){let n=e,r=false,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function ar$1(e,t){let n=sr$1(e.i,e.x,e.y),r=sr$1(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function or$1(e,t,n,r){let i=sr$1(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function J$2(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ);}function sr$1(e,t,n){return {i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:false}}function cr$1(e,t,n,r){let i=0;for(let a=t,o=n-r;a0){let r=new Uint8Array(e,n*8,i);new Uint8Array(t,n*8,i).set(r);}}var fr$1={normal:`normal-npm`,add:`add-npm`,screen:`screen-npm`},pr$1=(e=>(e[e.DISABLED=0]=`DISABLED`,e[e.RENDERING_MASK_ADD=1]=`RENDERING_MASK_ADD`,e[e.MASK_ACTIVE=2]=`MASK_ACTIVE`,e[e.INVERSE_MASK_ACTIVE=3]=`INVERSE_MASK_ACTIVE`,e[e.RENDERING_MASK_REMOVE=4]=`RENDERING_MASK_REMOVE`,e[e.NONE=5]=`NONE`,e))(pr$1||{});function mr$1(e,t){return t.alphaMode===`no-premultiply-alpha`&&fr$1[e]||e}var hr$1=[`precision mediump float;`,`void main(void){`,`float test = 0.1;`,`%forloop%`,`gl_FragColor = vec4(0.0);`,`}`].join(` +`);function gr$1(e){let t=``;for(let n=0;n0&&(t+=` +else `),n{if(X$2.length>0)for(let e of X$2)e&&e.destroy();X$2.length=0,xr$1=0;}});function Sr$1(){return xr$1>0?X$2[--xr$1]:new br$1}function Cr$1(e){X$2[xr$1++]=e;}var wr$1=0,Tr$1=class e{constructor(t){this.uid=C(`batcher`),this.dirty=true,this.batchIndex=0,this.batches=[],this._elements=[],t={...e.defaultOptions,...t},t.maxTextures||(E(`v8.8.0`,`maxTextures is a required option for Batcher now, please pass it in the options`),t.maxTextures=vr$1());let{maxTextures:n,attributesInitialSize:r,indicesInitialSize:i}=t;this.attributeBuffer=new ur$1(r*4),this.indexBuffer=new Uint16Array(i),this.maxTextures=n;}begin(){this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0;for(let e=0;ethis.attributeBuffer.size&&this._resizeAttributeBuffer(this.attributeSize*4),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);let s=this.attributeBuffer.float32View,c=this.attributeBuffer.uint32View,l=this.indexBuffer,u=this._batchIndexSize,d=this._batchIndexStart,f=`startBatch`,p=this.maxTextures;for(let i=this.elementStart;i=p||_)&&(this._finishBatch(n,d,u-d,r,a,o,e,f),f=`renderBatch`,d=u,a=g,o=m.topology,n=Sr$1(),r=n.textures,r.clear(),++wr$1),m._textureId=h._textureBindLocation=r.count,r.ids[h.uid]=r.count,r.textures[r.count++]=h,m._batch=n,u+=m.indexSize,m.packAsQuad?(this.packQuadAttributes(m,s,c,m._attributeStart,m._textureId),this.packQuadIndex(l,m._indexStart,m._attributeStart/this.vertexSize)):(this.packAttributes(m,s,c,m._attributeStart,m._textureId),this.packIndex(m,l,m._indexStart,m._attributeStart/this.vertexSize));}r.count>0&&(this._finishBatch(n,d,u-d,r,a,o,e,f),d=u,++wr$1),this.elementStart=this.elementSize,this._batchIndexStart=d,this._batchIndexSize=u;}_finishBatch(e,t,n,r,i,a,o,s){e.gpuBindGroup=null,e.bindGroup=null,e.action=s,e.batcher=this,e.textures=r,e.blendMode=i,e.topology=a,e.start=t,e.size=n,++wr$1,this.batches[this.batchIndex++]=e,o.add(e);}finish(e){this.break(e);}ensureAttributeBuffer(e){e*4<=this.attributeBuffer.size||this._resizeAttributeBuffer(e*4);}ensureIndexBuffer(e){e<=this.indexBuffer.length||this._resizeIndexBuffer(e);}_resizeAttributeBuffer(e){let t=new ur$1(Math.max(e,this.attributeBuffer.size*2));dr$1(this.attributeBuffer.rawBinaryData,t.rawBinaryData),this.attributeBuffer=t;}_resizeIndexBuffer(e){let t=this.indexBuffer,n=Math.max(e,t.length*1.5);n+=n%2;let r=n>65535?new Uint32Array(n):new Uint16Array(n);if(r.BYTES_PER_ELEMENT!==t.BYTES_PER_ELEMENT)for(let e=0;e(e[e.MAP_READ=1]=`MAP_READ`,e[e.MAP_WRITE=2]=`MAP_WRITE`,e[e.COPY_SRC=4]=`COPY_SRC`,e[e.COPY_DST=8]=`COPY_DST`,e[e.INDEX=16]=`INDEX`,e[e.VERTEX=32]=`VERTEX`,e[e.UNIFORM=64]=`UNIFORM`,e[e.STORAGE=128]=`STORAGE`,e[e.INDIRECT=256]=`INDIRECT`,e[e.QUERY_RESOLVE=512]=`QUERY_RESOLVE`,e[e.STATIC=1024]=`STATIC`,e))(Z$2||{}),Q$2=class Q extends s$1{constructor(e){let{data:t,size:n}=e,{usage:r,label:i,shrinkToFit:a}=e;super(),this._gpuData=Object.create(null),this._gcLastUsed=-1,this.autoGarbageCollect=true,this.uid=C(`buffer`),this._resourceType=`buffer`,this._resourceId=C(`resource`),this._touched=0,this._updateID=1,this._dataInt32=null,this.shrinkToFit=true,this.destroyed=false,t instanceof Array&&(t=new Float32Array(t)),this._data=t,n??=t?.byteLength;let o=!!t;this.descriptor={size:n,usage:r,mappedAtCreation:o,label:i},this.shrinkToFit=a??true;}get data(){return this._data}set data(e){this.setDataWithSize(e,e.length,true);}get dataInt32(){return this._dataInt32||=new Int32Array(this.data.buffer),this._dataInt32}get static(){return !!(this.descriptor.usage&Z$2.STATIC)}set static(e){e?this.descriptor.usage|=Z$2.STATIC:this.descriptor.usage&=~Z$2.STATIC;}setDataWithSize(e,t,n){if(this._updateID++,this._updateSize=t*e.BYTES_PER_ELEMENT,this._data===e){n&&this.emit(`update`,this);return}let r=this._data;if(this._data=e,this._dataInt32=null,!r||r.length!==e.length){!this.shrinkToFit&&r&&e.byteLengths&&(s=t),n>c&&(c=n),te.destroy()),this.unload(),this.indexBuffer?.destroy(),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null;}},jr$1=new Float32Array(1),Mr$1=new Uint32Array(1),Nr$1=class Nr extends Ar$1{constructor(){let e=new Q$2({data:jr$1,label:`attribute-batch-buffer`,usage:Z$2.VERTEX|Z$2.COPY_DST,shrinkToFit:false}),t=new Q$2({data:Mr$1,label:`index-batch-buffer`,usage:Z$2.INDEX|Z$2.COPY_DST,shrinkToFit:false});super({attributes:{aPosition:{buffer:e,format:`float32x2`,stride:24,offset:0},aUV:{buffer:e,format:`float32x2`,stride:24,offset:8},aColor:{buffer:e,format:`unorm8x4`,stride:24,offset:16},aTextureIdAndRound:{buffer:e,format:`uint16x2`,stride:24,offset:20}},indexBuffer:t});}};function Pr$1(e,t,n){if(e)for(let r in e){let i=t[r.toLocaleLowerCase()];if(i){let t=e[r];r===`header`&&(t=t.replace(/@in\s+[^;]+;\s*/g,``).replace(/@out\s+[^;]+;\s*/g,``)),n&&i.push(`//----${n}----//`),i.push(t);}else Xe$3(`${r} placement hook does not exist in shader`);}}var Fr$1=/\{\{(.*?)\}\}/g;function Ir$1(e){let t={};return (e.match(Fr$1)?.map(e=>e.replace(/[{()}]/g,``))??[]).forEach(e=>{t[e]=[];}),t}function Lr$1(e,t){let n,r=/@in\s+([^;]+);/g;for(;(n=r.exec(e))!==null;)t.push(n[1]);}function Rr$1(e,t,n=false){let r=[];Lr$1(t,r),e.forEach(e=>{e.header&&Lr$1(e.header,r);});let i=r;n&&i.sort();let a=i.map((e,t)=>` @location(${t}) ${e},`).join(` +`),o=t.replace(/@in\s+[^;]+;\s*/g,``);return o=o.replace(`{{in}}`,` +${a} +`),o}function zr$1(e,t){let n,r=/@out\s+([^;]+);/g;for(;(n=r.exec(e))!==null;)t.push(n[1]);}function Br$1(e){let t=/\b(\w+)\s*:/g.exec(e);return t?t[1]:``}function Vr$1(e){return e.replace(/@.*?\s+/g,``)}function Hr$1(e,t){let n=[];zr$1(t,n),e.forEach(e=>{e.header&&zr$1(e.header,n);});let r=0,i=n.sort().map(e=>e.indexOf(`builtin`)>-1?e:`@location(${r++}) ${e}`).join(`, +`),a=n.sort().map(e=>` var ${Vr$1(e)};`).join(` +`),o=`return VSOutput( + ${n.sort().map(e=>` ${Br$1(e)}`).join(`, +`)});`,s=t.replace(/@out\s+[^;]+;\s*/g,``);return s=s.replace(`{{struct}}`,` +${i} +`),s=s.replace(`{{start}}`,` +${a} +`),s=s.replace(`{{return}}`,` +${o} +`),s}function Ur$1(e,t){let n=e;for(let e in t){let r=t[e];n=r.join(` +`).length?n.replace(`{{${e}}}`,`//-----${e} START-----// +${r.join(` +`)} +//----${e} FINISH----//`):n.replace(`{{${e}}}`,``);}return n}var $$3=Object.create(null),Wr$1=new Map,Gr$1=0;function Kr$1({template:e,bits:t}){let n=Yr$1(e,t);if($$3[n])return $$3[n];let{vertex:r,fragment:i}=Jr$1(e,t);return $$3[n]=Xr$1(r,i,t),$$3[n]}function qr$1({template:e,bits:t}){let n=Yr$1(e,t);return $$3[n]||($$3[n]=Xr$1(e.vertex,e.fragment,t)),$$3[n]}function Jr$1(e,t){let n=t.map(e=>e.vertex).filter(e=>!!e),r=t.map(e=>e.fragment).filter(e=>!!e),i=Rr$1(n,e.vertex,true);i=Hr$1(n,i);let a=Rr$1(r,e.fragment,true);return {vertex:i,fragment:a}}function Yr$1(e,t){return t.map(e=>(Wr$1.has(e)||Wr$1.set(e,Gr$1++),Wr$1.get(e))).sort((e,t)=>e-t).join(`-`)+e.vertex+e.fragment}function Xr$1(e,t,n){let r=Ir$1(e),i=Ir$1(t);return n.forEach(e=>{Pr$1(e.vertex,r,e.name),Pr$1(e.fragment,i,e.name);}),{vertex:Ur$1(e,r),fragment:Ur$1(t,i)}}var Zr$1=` + @in aPosition: vec2; + @in aUV: vec2; + + @out @builtin(position) vPosition: vec4; + @out vUV : vec2; + @out vColor : vec4; + + {{header}} + + struct VSOutput { + {{struct}} + }; + + @vertex + fn main( {{in}} ) -> VSOutput { + + var worldTransformMatrix = globalUniforms.uWorldTransformMatrix; + var modelMatrix = mat3x3( + 1.0, 0.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 0.0, 1.0 + ); + var position = aPosition; + var uv = aUV; + + {{start}} + + vColor = vec4(1., 1., 1., 1.); + + {{main}} + + vUV = uv; + + var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix; + + vPosition = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); + + vColor *= globalUniforms.uWorldColorAlpha; + + {{end}} + + {{return}} + }; +`,Qr$1=` + @in vUV : vec2; + @in vColor : vec4; + + {{header}} + + @fragment + fn main( + {{in}} + ) -> @location(0) vec4 { + + {{start}} + + var outColor:vec4; + + {{main}} + + var finalColor:vec4 = outColor * vColor; + + {{end}} + + return finalColor; + }; +`,$r$1=` + in vec2 aPosition; + in vec2 aUV; + + out vec4 vColor; + out vec2 vUV; + + {{header}} + + void main(void){ + + mat3 worldTransformMatrix = uWorldTransformMatrix; + mat3 modelMatrix = mat3( + 1.0, 0.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 0.0, 1.0 + ); + vec2 position = aPosition; + vec2 uv = aUV; + + {{start}} + + vColor = vec4(1.); + + {{main}} + + vUV = uv; + + mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix; + + gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); + + vColor *= uWorldColorAlpha; + + {{end}} + } +`,ei$1=` + + in vec4 vColor; + in vec2 vUV; + + out vec4 finalColor; + + {{header}} + + void main(void) { + + {{start}} + + vec4 outColor; + + {{main}} + + finalColor = outColor * vColor; + + {{end}} + } +`,ti$1={name:`global-uniforms-bit`,vertex:{header:` + struct GlobalUniforms { + uProjectionMatrix:mat3x3, + uWorldTransformMatrix:mat3x3, + uWorldColorAlpha: vec4, + uResolution: vec2, + } + + @group(0) @binding(0) var globalUniforms : GlobalUniforms; + `}},ni$1={name:`global-uniforms-bit`,vertex:{header:` + uniform mat3 uProjectionMatrix; + uniform mat3 uWorldTransformMatrix; + uniform vec4 uWorldColorAlpha; + uniform vec2 uResolution; + `}};function ri$1({bits:e,name:t}){let n=Kr$1({template:{fragment:Qr$1,vertex:Zr$1},bits:[ti$1,...e]});return _n$2.from({name:t,vertex:{source:n.vertex,entryPoint:`main`},fragment:{source:n.fragment,entryPoint:`main`}})}function ii$1({bits:e,name:t}){return new cn$1({name:t,...qr$1({template:{vertex:$r$1,fragment:ei$1},bits:[ni$1,...e]})})}var ai$1={name:`color-bit`,vertex:{header:` + @in aColor: vec4; + `,main:` + vColor *= vec4(aColor.rgb * aColor.a, aColor.a); + `}},oi$1={name:`color-bit`,vertex:{header:` + in vec4 aColor; + `,main:` + vColor *= vec4(aColor.rgb * aColor.a, aColor.a); + `}},si$1={};function ci$1(e){let t=[];if(e===1)t.push(`@group(1) @binding(0) var textureSource1: texture_2d;`),t.push(`@group(1) @binding(1) var textureSampler1: sampler;`);else {let n=0;for(let r=0;r;`),t.push(`@group(1) @binding(${n++}) var textureSampler${r+1}: sampler;`);}return t.join(` +`)}function li$1(e){let t=[];if(e===1)t.push(`outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);`);else {t.push(`switch vTextureId {`);for(let n=0;n; + @out @interpolate(flat) vTextureId : u32; + `,main:` + vTextureId = aTextureIdAndRound.y; + `,end:` + if(aTextureIdAndRound.x == 1) + { + vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw); + } + `},fragment:{header:` + @in @interpolate(flat) vTextureId: u32; + + ${ci$1(e)} + `,main:` + var uvDx = dpdx(vUV); + var uvDy = dpdy(vUV); + + ${li$1(e)} + `}}),si$1[e]}var di$1={};function fi$1(e){let t=[];for(let n=0;n0&&t.push(`else`),n, targetSize: vec2) -> vec2 + { + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; + } + `}},hi$1={name:`round-pixels-bit`,vertex:{header:` + vec2 roundPixels(vec2 position, vec2 targetSize) + { + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; + } + `}},gi$1={};function _i$1(e){let t=gi$1[e];if(t)return t;let n=new Int32Array(e);for(let t=0;tt&&this.remove(t,...e));}destroy(...e){this.removeAll(...e),this.items=Object.create(null),this._renderer=null,this._onUnload=null;}},Ci$1={name:`local-uniform-bit`,vertex:{header:` + + struct LocalUniforms { + uTransformMatrix:mat3x3, + uColor:vec4, + uRound:f32, + } + + @group(1) @binding(0) var localUniforms : LocalUniforms; + `,main:` + vColor *= localUniforms.uColor; + modelMatrix *= localUniforms.uTransformMatrix; + `,end:` + if(localUniforms.uRound == 1) + { + vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw); + } + `}},wi$1={...Ci$1,vertex:{...Ci$1.vertex,header:Ci$1.vertex.header.replace(`group(1)`,`group(2)`)}},Ti$1={name:`local-uniform-bit`,vertex:{header:` + + uniform mat3 uTransformMatrix; + uniform vec4 uColor; + uniform float uRound; + `,main:` + vColor *= uColor; + modelMatrix = uTransformMatrix; + `,end:` + if(uRound == 1.) + { + gl_Position.xy = roundPixels(gl_Position.xy, uResolution); + } + `}},Ei$1=class Ei{constructor(){this.batcherName=`default`,this.topology=`triangle-list`,this.attributeSize=4,this.indexSize=6,this.packAsQuad=true,this.roundPixels=0,this._attributeStart=0,this._batcher=null,this._batch=null;}get blendMode(){return this.renderable.groupBlendMode}get color(){return this.renderable.groupColorAlpha}reset(){this.renderable=null,this.texture=null,this._batcher=null,this._batch=null,this.bounds=null;}destroy(){this.reset();}};function Di$1(e,t,n){let r=(e>>24&255)/255;t[n++]=(e&255)/255*r,t[n++]=(e>>8&255)/255*r,t[n++]=(e>>16&255)/255*r,t[n++]=r;} + +var a={};function o(e,t,n){let r=2166136261;for(let n=0;n>>=0;return a[r]||s(e,t,r,n)}function s(t,r,i,o){let s={},c=0;for(let e=0;e{let e=zt$2.get().createCanvas(1,1).getContext(`webgl`);if(!e)return `premultiply-alpha-on-upload`;let t=await new Promise(e=>{let t=document.createElement(`video`);t.onloadeddata=()=>e(t),t.onerror=()=>e(null),t.autoplay=false,t.crossOrigin=`anonymous`,t.preload=`auto`,t.src=`data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=`,t.load();});if(!t)return `premultiply-alpha-on-upload`;let n=e.createTexture();e.bindTexture(e.TEXTURE_2D,n);let r=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,r),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,false),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t);let i=new Uint8Array(4);return e.readPixels(0,0,1,1,e.RGBA,e.UNSIGNED_BYTE,i),e.deleteFramebuffer(r),e.deleteTexture(n),e.getExtension(`WEBGL_lose_context`)?.loseContext(),i[0]<=i[3]?`premultiplied-alpha`:`premultiply-alpha-on-upload`})(),je$2}var Ne$2=class e extends D{constructor(t){super(t),this.isReady=false,this.uploadMethodId=`video`,t={...e.defaultOptions,...t},this._autoUpdate=true,this._isConnectedToTicker=false,this._updateFPS=t.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=t.autoPlay!==false,this.alphaMode=t.alphaMode??`premultiply-alpha-on-upload`,this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),t.autoLoad!==false&&this.load();}updateFrame(){if(!this.destroyed){if(this._updateFPS){let e=Wt$2.shared.elapsedMS*this.resource.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-e);}(!this._updateFPS||this._msToNextUpdate<=0)&&(this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0),this.isValid&&this.update();}}_videoFrameRequestCallback(){this.updateFrame(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback);}get isValid(){return !!this.resource.videoWidth&&!!this.resource.videoHeight}async load(){if(this._load)return this._load;let e=this.resource,t=this.options;return (e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=true),e.addEventListener(`play`,this._onPlayStart),e.addEventListener(`pause`,this._onPlayStop),e.addEventListener(`seeked`,this._onSeeked),this._isSourceReady()?this._mediaReady():(t.preload||e.addEventListener(`canplay`,this._onCanPlay),e.addEventListener(`canplaythrough`,this._onCanPlayThrough),e.addEventListener(`error`,this._onError,true)),this.alphaMode=await Me$2(),this._load=new Promise((n,r)=>{this.isValid?n(this):(this._resolve=n,this._reject=r,t.preloadTimeoutMs!==void 0&&(this._preloadTimeout=setTimeout(()=>{this._onError(new ErrorEvent(`Preload exceeded timeout of ${t.preloadTimeoutMs}ms`));})),e.load());}),this._load}_onError(e){this.resource.removeEventListener(`error`,this._onError,true),this.emit(`error`,e),this._reject&&(this._reject(e),this._reject=null,this._resolve=null);}_isSourcePlaying(){let e=this.resource;return !e.paused&&!e.ended}_isSourceReady(){return this.resource.readyState>2}_onPlayStart(){this.isValid||this._mediaReady(),this._configureAutoUpdate();}_onPlayStop(){this._configureAutoUpdate();}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0);}_onCanPlay(){this.resource.removeEventListener(`canplay`,this._onCanPlay),this._mediaReady();}_onCanPlayThrough(){this.resource.removeEventListener(`canplaythrough`,this._onCanPlay),this._preloadTimeout&&=(clearTimeout(this._preloadTimeout),void 0),this._mediaReady();}_mediaReady(){let e=this.resource;this.isValid&&(this.isReady=true,this.resize(e.videoWidth,e.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play();}destroy(){this._configureAutoUpdate();let e=this.resource;e&&(e.removeEventListener(`play`,this._onPlayStart),e.removeEventListener(`pause`,this._onPlayStop),e.removeEventListener(`seeked`,this._onSeeked),e.removeEventListener(`canplay`,this._onCanPlay),e.removeEventListener(`canplaythrough`,this._onCanPlayThrough),e.removeEventListener(`error`,this._onError,true),e.pause(),e.src=``,e.load()),super.destroy();}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,this._configureAutoUpdate());}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e,this._configureAutoUpdate());}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(Wt$2.shared.remove(this.updateFrame,this),this._isConnectedToTicker=false,this._msToNextUpdate=0),this._videoFrameRequestCallbackHandle===null&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(Wt$2.shared.add(this.updateFrame,this),this._isConnectedToTicker=true,this._msToNextUpdate=0)):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(Wt$2.shared.remove(this.updateFrame,this),this._isConnectedToTicker=false,this._msToNextUpdate=0));}static test(e){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement}};Ne$2.extension=n.TextureSource,Ne$2.defaultOptions={...D.defaultOptions,autoLoad:true,autoPlay:true,updateFPS:0,crossorigin:true,loop:false,muted:true,playsinline:true,preload:false},Ne$2.MIME_TYPES={ogv:`video/ogg`,mov:`video/quicktime`,m4v:`video/mp4`};var Pe$2=Ne$2,Fe$2=(e,t,n=false)=>(Array.isArray(e)||(e=[e]),t?e.map(e=>typeof e==`string`||n?t(e):e):e),K$1=new class{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map;}reset(){this._cacheMap.clear(),this._cache.clear();}has(e){return this._cache.has(e)}get(e){let t=this._cache.get(e);return t||Xe$3(`[Assets] Asset id ${e} was not found in the Cache`),t}set(e,t){let n=Fe$2(e),r;for(let e=0;e{i.set(e,t);});let a=[...i.keys()],o={cacheKeys:a,keys:n};n.forEach(e=>{this._cacheMap.set(e,o);}),a.forEach(e=>{let n=r?r[e]:t;this._cache.has(e)&&this._cache.get(e)!==n&&Xe$3(`[Cache] already has key:`,e),this._cache.set(e,i.get(e));});}remove(e){if(!this._cacheMap.has(e)){Xe$3(`[Assets] Asset id ${e} was not found in the Cache`);return}let t=this._cacheMap.get(e);t.cacheKeys.forEach(e=>{this._cache.delete(e);}),t.keys.forEach(e=>{this._cacheMap.delete(e);});}get parsers(){return this._parsers}},Ie$2=[];a$1.handleByList(n.TextureSource,Ie$2);function Le$2(e={}){let t=e&&e.resource,n=t?e.resource:e,r=t?e:{resource:e};for(let e=0;e{K$1.has(r)&&K$1.remove(r);}),t||K$1.set(r,a),a}function ze$2(e,t=false){return typeof e==`string`?K$1.get(e):e instanceof D?new O({source:e}):Re$2(e,t)}O.from=ze$2,D.from=Le$2,a$1.add(De$1,Oe$2,ke$2,Pe$2,Ae$2,Bt$2,ge$1);var Be$2=(e=>(e[e.Low=0]=`Low`,e[e.Normal=1]=`Normal`,e[e.High=2]=`High`,e))(Be$2||{});function q$1(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function Ve$2(e){return e.split(`?`)[0].split(`#`)[0]}function He$2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ue$2(e,t,n){return e.replace(new RegExp(He$2(t),`g`),n)}function We$2(e,t){let n=``,r=0,i=-1,a=0,o=-1;for(let s=0;s<=e.length;++s){if(s2){let e=n.lastIndexOf(`/`);if(e!==n.length-1){e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}}else if(n.length===2||n.length===1){n=``,r=0,i=s,a=0;continue}}}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0;}else o===46&&a!==-1?++a:a=-1;}return n}var Ge$2={toPosix(e){return Ue$2(e,`\\`,`/`)},isUrl(e){return /^https?:/.test(this.toPosix(e))},isDataUrl(e){return /^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},isBlobUrl(e){return e.startsWith(`blob:`)},hasProtocol(e){return /^[^/:]+:/.test(this.toPosix(e))},getProtocol(e){q$1(e),e=this.toPosix(e);let t=/^file:\/\/\//.exec(e);if(t)return t[0];let n=/^[^/:]+:\/{0,2}/.exec(e);return n?n[0]:``},toAbsolute(e,t,n){if(q$1(e),this.isDataUrl(e)||this.isBlobUrl(e))return e;let r=Ve$2(this.toPosix(t??zt$2.get().getBaseUrl())),i=Ve$2(this.toPosix(n??this.rootname(r)));return e=this.toPosix(e),e.startsWith(`/`)?Ge$2.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(q$1(e),e.length===0)return `.`;if(this.isDataUrl(e)||this.isBlobUrl(e))return e;e=this.toPosix(e);let t=``,n=e.startsWith(`/`);this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));let r=e.endsWith(`/`);return e=We$2(e),e.length>0&&r&&(e+=`/`),n?`/${e}`:t+e},isAbsolute(e){return q$1(e),e=this.toPosix(e),this.hasProtocol(e)?true:e.startsWith(`/`)},join(...e){if(e.length===0)return `.`;let t;for(let n=0;n0)if(t===void 0)t=r;else {let i=e[n-1]??``;this.joinExtensions.includes(this.extname(i).toLowerCase())?t+=`/../${r}`:t+=`/${r}`;}}return t===void 0?`.`:this.normalize(t)},dirname(e){if(q$1(e),e.length===0)return `.`;e=this.toPosix(e);let t=e.charCodeAt(0),n=t===47,r=-1,i=true,a=this.getProtocol(e),o=e;e=e.slice(a.length);for(let n=e.length-1;n>=1;--n)if(t=e.charCodeAt(n),t===47){if(!i){r=n;break}}else i=false;return r===-1?n?`/`:this.isUrl(o)?a+e:a:n&&r===1?`//`:a+e.slice(0,r)},rootname(e){q$1(e),e=this.toPosix(e);let t=``;if(t=e.startsWith(`/`)?`/`:this.getProtocol(e),this.isUrl(e)){let n=e.indexOf(`/`,t.length);t=n===-1?e:e.slice(0,n),t.endsWith(`/`)||(t+=`/`);}return t},basename(e,t){q$1(e),t&&q$1(t),e=Ve$2(this.toPosix(e));let n=0,r=-1,i=true,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return ``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===47){if(!i){n=a+1;break}}else s===-1&&(i=false,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s));}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!i){n=a+1;break}}else r===-1&&(i=false,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){q$1(e),e=Ve$2(this.toPosix(e));let t=-1,n=0,r=-1,i=true,a=0;for(let o=e.length-1;o>=0;--o){let s=e.charCodeAt(o);if(s===47){if(!i){n=o+1;break}continue}r===-1&&(i=false,r=o+1),s===46?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1);}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},parse(e){q$1(e);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;e=Ve$2(this.toPosix(e));let n=e.charCodeAt(0),r=this.isAbsolute(e),i;t.root=this.rootname(e),i=r||this.hasProtocol(e)?1:0;let a=-1,o=0,s=-1,c=true,l=e.length-1,u=0;for(;l>=i;--l){if(n=e.charCodeAt(l),n===47){if(!c){o=l+1;break}continue}s===-1&&(c=false,s=l+1),n===46?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1);}return a===-1||s===-1||u===0||u===1&&a===s-1&&a===o+1?s!==-1&&(o===0&&r?t.base=t.name=e.slice(1,s):t.base=t.name=e.slice(o,s)):(o===0&&r?(t.name=e.slice(1,a),t.base=e.slice(1,s)):(t.name=e.slice(o,a),t.base=e.slice(o,s)),t.ext=e.slice(a,s)),t.dir=this.dirname(e),t},sep:`/`,delimiter:`:`,joinExtensions:[`.html`]};function Ke$2(e,t,n,r,i){let a=t[n];for(let o=0;o{let t=e.substring(1,e.length-1).split(`,`);r.push(t);}),Ke$2(e,r,0,t,n);}else n.push(e);return n}var Je$2=e=>!Array.isArray(e),Ye$2=class Ye{constructor(){this._defaultBundleIdentifierOptions={connector:`-`,createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,``)},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={};}setBundleIdentifier(e){if(this._bundleIdConnector=e.connector??this._bundleIdConnector,this._createBundleAssetId=e.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=e.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle(`foo`,this._createBundleAssetId(`foo`,`bar`))!==`bar`)throw Error(`[Resolver] GenerateBundleAssetId are not working correctly`)}prefer(...e){e.forEach(e=>{this._preferredOrder.push(e),e.priority||=Object.keys(e.params);}),this._resolverHash={};}set basePath(e){this._basePath=e;}get basePath(){return this._basePath}set rootPath(e){this._rootPath=e;}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null;}setDefaultSearchParams(e){if(typeof e==`string`)this._defaultSearchParams=e;else {let t=e;this._defaultSearchParams=Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join(`&`);}}getAlias(e){let{alias:t,src:n}=e;return Fe$2(t||n,e=>typeof e==`string`?e:Array.isArray(e)?e.map(e=>e?.src??e):e?.src?e.src:e,true)}addManifest(e){this._manifest&&Xe$3(`[Resolver] Manifest already exists, this will be overwritten`),this._manifest=e,e.bundles.forEach(e=>{this.addBundle(e.name,e.assets);});}addBundle(e,t){let n=[],r=t;Array.isArray(t)||(r=Object.entries(t).map(([e,t])=>typeof t==`string`||Array.isArray(t)?{alias:e,src:t}:{alias:e,...t})),r.forEach(t=>{let r=t.src,i=t.alias,a;if(typeof i==`string`){let t=this._createBundleAssetId(e,i);n.push(t),a=[i,t];}else {let t=i.map(t=>this._createBundleAssetId(e,t));n.push(...t),a=[...i,...t];}this.add({...t,alias:a,src:r});}),this._bundles[e]=n;}add(e){let t=[];Array.isArray(e)?t.push(...e):t.push(e);let n=e=>{this.hasKey(e)&&Xe$3(`[Resolver] already has key: ${e} overwriting`);};Fe$2(t).forEach(e=>{let{src:t}=e,{data:r,format:i,loadParser:a,parser:o}=e,s=Fe$2(t).map(e=>typeof e==`string`?qe$2(e):Array.isArray(e)?e:[e]),c=this.getAlias(e);Array.isArray(c)?c.forEach(n):n(c);let l=[],u=e=>({...this._parsers.find(t=>t.test(e))?.parse(e),src:e});s.forEach(t=>{t.forEach(t=>{let n={};if(typeof t==`object`?(r=t.data??r,i=t.format??i,(t.loadParser||t.parser)&&(a=t.loadParser??a,o=t.parser??o),n={...u(t.src),...t}):n=u(t),!c)throw Error(`[Resolver] alias is undefined for this asset: ${n.src}`);n=this._buildResolvedAsset(n,{aliases:c,data:r,format:i,loadParser:a,parser:o,progressSize:e.progressSize}),l.push(n);});}),c.forEach(e=>{this._assetMap[e]=l;});});}resolveBundle(e){let t=Je$2(e);e=Fe$2(e);let n={};return e.forEach(e=>{let t=this._bundles[e];if(t){let r=this.resolve(t),i={};for(let t in r){let n=r[t];i[this._extractAssetIdFromBundle(e,t)]=n;}n[e]=i;}}),t?n[e[0]]:n}resolveUrl(e){let t=this.resolve(e);if(typeof e!=`string`){let e={};for(let n in t)e[n]=t[n].src;return e}return t.src}resolve(e){let t=Je$2(e);e=Fe$2(e);let n={};return e.forEach(e=>{if(!this._resolverHash[e])if(this._assetMap[e]){let t=this._assetMap[e],n=this._getPreferredOrder(t);n?.priority.forEach(e=>{n.params[e].forEach(n=>{let r=t.filter(t=>t[e]?t[e]===n:false);r.length&&(t=r);});}),this._resolverHash[e]=t[0];}else this._resolverHash[e]=this._buildResolvedAsset({alias:[e],src:e},{});n[e]=this._resolverHash[e];}),t?n[e[0]]:n}hasKey(e){return !!this._assetMap[e]}hasBundle(e){return !!this._bundles[e]}_getPreferredOrder(e){for(let t=0;te.params.format.includes(n.format));if(r)return r}return this._preferredOrder[0]}_appendDefaultSearchParams(e){return this._defaultSearchParams?`${e}${/\?/.test(e)?`&`:`?`}${this._defaultSearchParams}`:e}_buildResolvedAsset(e,t){let{aliases:n,data:r,loadParser:i,parser:a,format:o,progressSize:s}=t;return (this._basePath||this._rootPath)&&(e.src=Ge$2.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=n??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...r||{},...e.data},e.loadParser=i??e.loadParser,e.parser=a??e.parser,e.format=o??e.format??Xe$2(e.src),s!==void 0&&(e.progressSize=s),e}};Ye$2.RETINA_PREFIX=/@([0-9\.]+)x/;function Xe$2(e){return e.split(`.`).pop().split(`?`).shift().split(`#`).shift()}var Ze$2=(e,t)=>{let n=t.split(`?`)[1];return n&&(e+=`?${n}`),e},Qe$2=class e{constructor(e,t){this.linkedSheets=[];let n=e;e?.source instanceof D&&(n={texture:e,data:t});let{texture:r,data:i,cachePrefix:a=``}=n;this.cachePrefix=a,this._texture=r instanceof O?r:null,this.textureSource=r.source,this.textures={},this.animations={},this.data=i;let o=parseFloat(i.meta.scale);o?(this.resolution=o,r.source.resolution=this.resolution):this.resolution=r.source._resolution,this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null;}parse(){return new Promise(t=>{this._callback=t,this._batchIndex=0,this._frameKeys.length<=e.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch();})}_processFrames(t){let n=t,r=e.BATCH_SIZE;for(;n-t{this._batchIndex*e.BATCH_SIZE{r[e]=t;}),Object.keys(t.textures).forEach(e=>{r[`${t.cachePrefix}${e}`]=t.textures[e];}),!n){let n=Ge$2.dirname(e[0]);t.linkedSheets.forEach((e,i)=>{let a=tt$2([`${n}/${t.data.meta.related_multi_packs[i]}`],e,true);Object.assign(r,a);});}return r}var nt$2={extension:n.Asset,cache:{test:e=>e instanceof $e$2,getCacheableAssets:(e,t)=>tt$2(e,t,false)},resolver:{extension:{type:n.ResolveParser,name:`resolveSpritesheet`},test:e=>{let t=e.split(`?`)[0].split(`.`),n=t.pop(),r=t.pop();return n===`json`&&et$2.includes(r)},parse:e=>{let t=e.split(`.`);return {resolution:parseFloat(Ye$2.RETINA_PREFIX.exec(e)?.[1]??`1`),format:t[t.length-2],src:e}}},loader:{name:`spritesheetLoader`,id:`spritesheet`,extension:{type:n.LoadParser,priority:Be$2.Normal,name:`spritesheetLoader`},async testParse(e,t){return Ge$2.extname(t.src).toLowerCase()===`.json`&&!!e.frames},async parse(e,t,n){let{texture:r,imageFilename:i,textureOptions:a,cachePrefix:o}=t?.data??{},s=Ge$2.dirname(t.src);s&&s.lastIndexOf(`/`)!==s.length-1&&(s+=`/`);let c;if(r instanceof O)c=r;else {let r=Ze$2(s+(i??e.meta.image),t.src);c=(await n.load([{src:r,data:a}]))[r];}let l=new $e$2({texture:c.source,data:e,cachePrefix:o});await l.parse();let u=e?.meta?.related_multi_packs;if(Array.isArray(u)){let e=[];for(let r of u){if(typeof r!=`string`)continue;let i=s+r;t.data?.ignoreMultiPack||(i=Ze$2(i,t.src),e.push(n.load({src:i,data:{textureOptions:a,ignoreMultiPack:true}})));}let r=await Promise.all(e);l.linkedSheets=r,r.forEach(e=>{e.linkedSheets=[l].concat(l.linkedSheets.filter(t=>t!==e));});}return l},async unload(e,t,n){await n.unload(e.textureSource._sourceOrigin),e.destroy(false);}}};a$1.add(nt$2);var rt$2=class rt{static init(e){Object.defineProperty(this,"resizeTo",{configurable:true,set(e){globalThis.removeEventListener(`resize`,this.queueResize),this._resizeTo=e,e&&(globalThis.addEventListener(`resize`,this.queueResize),this.resize());},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this._cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()));},this._cancelResize=()=>{this._resizeId&&=(cancelAnimationFrame(this._resizeId),null);},this.resize=()=>{if(!this._resizeTo)return;this._cancelResize();let e,t;if(this._resizeTo===globalThis.window)e=globalThis.innerWidth,t=globalThis.innerHeight;else {let{clientWidth:n,clientHeight:r}=this._resizeTo;e=n,t=r;}this.renderer.resize(e,t),this.render();},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null;}static destroy(){globalThis.removeEventListener(`resize`,this.queueResize),this._cancelResize(),this._cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null;}};rt$2.extension=n.Application;var it$2=class it{static init(e){e=Object.assign({autoStart:true,sharedTicker:false},e),Object.defineProperty(this,"ticker",{configurable:true,set(e){this._ticker&&this._ticker.remove(this.render,this),this._ticker=e,e&&e.add(this.render,this,Vt$2.LOW);},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop();},this.start=()=>{this._ticker.start();},this._ticker=null,this.ticker=e.sharedTicker?Wt$2.shared:new Wt$2,e.autoStart&&this.start();}static destroy(){if(this._ticker){let e=this._ticker;this.ticker=null,e.destroy();}}};it$2.extension=n.Application;var at$2=class at extends s$1{constructor(){super(...arguments),this.chars=Object.create(null),this.lineHeight=0,this.fontFamily=``,this.fontMetrics={fontSize:0,ascent:0,descent:0},this.baseLineOffset=0,this.distanceField={type:`none`,range:0},this.pages=[],this.applyFillAsTint=true,this.baseMeasurementFontSize=100,this.baseRenderedFontSize=100;}get font(){return E(w,`BitmapFont.font is deprecated, please use BitmapFont.fontFamily instead.`),this.fontFamily}get pageTextures(){return E(w,`BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead.`),this.pages}get size(){return E(w,`BitmapFont.size is deprecated, please use BitmapFont.fontMetrics.fontSize instead.`),this.fontMetrics.fontSize}get distanceFieldRange(){return E(w,`BitmapFont.distanceFieldRange is deprecated, please use BitmapFont.distanceField.range instead.`),this.distanceField.range}get distanceFieldType(){return E(w,`BitmapFont.distanceFieldType is deprecated, please use BitmapFont.distanceField.type instead.`),this.distanceField.type}destroy(e=false){this.emit(`destroy`,this),this.removeAllListeners();for(let e in this.chars)this.chars[e].texture?.destroy();this.chars=null,e&&(this.pages.forEach(e=>e.texture.destroy(true)),this.pages=null);}},ot$2=class ot{constructor(e=0,t=0,n=false){this.first=null,this.items=Object.create(null),this.last=null,this.max=e,this.resetTtl=n,this.size=0,this.ttl=t;}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(e){if(this.has(e)){let t=this.items[e];delete this.items[e],this.size--,t.prev!==null&&(t.prev.next=t.next),t.next!==null&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev);}return this}entries(e=this.keys()){let t=Array(e.length);for(let n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null);}return this}expiresAt(e){let t;return this.has(e)&&(t=this.items[e].expiry),t}get(e){let t=this.items[e];if(t!==void 0){if(this.ttl>0&&t.expiry<=Date.now()){this.delete(e);return}return this.moveToEnd(t),t.value}}has(e){return e in this.items}moveToEnd(e){this.last!==e&&(e.prev!==null&&(e.prev.next=e.next),e.next!==null&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),e.prev=this.last,e.next=null,this.last!==null&&(this.last.next=e),this.last=e,this.first===null&&(this.first=e));}keys(){let e=Array(this.size),t=this.first,n=0;for(;t!==null;)e[n++]=t.key,t=t.next;return e}setWithEvicted(e,t,n=this.resetTtl){let r=null;if(this.has(e))this.set(e,t,true,n);else {this.max>0&&this.size===this.max&&(r={...this.first},this.evict(true));let n=this.items[e]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t};++this.size===1?this.first=n:this.last.next=n,this.last=n;}return r}set(e,t,n=false,r=this.resetTtl){let i=this.items[e];return n||i!==void 0?(i.value=t,n===false&&r&&(i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.moveToEnd(i)):(this.max>0&&this.size===this.max&&this.evict(true),i=this.items[e]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t},++this.size===1?this.first=i:this.last.next=i,this.last=i),this}values(e=this.keys()){let t=Array(e.length);for(let n=0;n=0;e--){let t=n[e].trim();!/([\"\'])[^\'\"]+\1/.test(t)&&!ct$2.includes(t)&&(t=`"${t}"`),n[e]=t;}return `${e.fontStyle} ${e.fontVariant} ${e.fontWeight} ${t} ${n.join(`,`)}`}var ut$2={willReadFrequently:true},J$1=class e{static get experimentalLetterSpacingSupported(){let t=e._experimentalLetterSpacingSupported;if(t===void 0){let n=zt$2.get().getCanvasRenderingContext2D().prototype;t=e._experimentalLetterSpacingSupported=`letterSpacing`in n||`textLetterSpacing`in n;}return t}constructor(e,t,n,r,i,a,o,s,c){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=a,this.lineHeight=o,this.maxLineWidth=s,this.fontProperties=c;}static measureText(t=` `,n,r=e._canvas,i=n.wordWrap){let a=`${t}-${n.styleKey}-wordWrap-${i}`;if(e._measurementCache.has(a))return e._measurementCache.get(a);let o=lt$2(n),s=e.measureFont(o);s.fontSize===0&&(s.fontSize=n.fontSize,s.ascent=n.fontSize);let c=e.__context;c.font=o;let l=(i?e._wordWrap(t,n,r):t).split(/(?:\r\n|\r|\n)/),u=Array(l.length),d=0;for(let t=0;t0)if(i)o-=n,c-=n;else {let r=(e.graphemeSegmenter(t).length-1)*n;o+=r,c+=r;}return Math.max(o,c)}static _wordWrap(t,n,r=e._canvas){let i=r.getContext(`2d`,ut$2),a=0,o=``,s=``,c=Object.create(null),{letterSpacing:l,whiteSpace:u}=n,d=e._collapseSpaces(u),f=e._collapseNewlines(u),p=!d,m=n.wordWrapWidth+l,h=e._tokenize(t);for(let t=0;tm)if(o!==``&&(s+=e._addLine(o),o=``,a=0),e.canBreakWords(r,n.breakWords)){let t=e.wordWrapSplit(r);for(let u=0;um&&(s+=e._addLine(o),p=false,o=``,a=0),o+=d,a+=g;}}else {o.length>0&&(s+=e._addLine(o),o=``,a=0);let n=t===h.length-1;s+=e._addLine(r,!n),p=false,o=``,a=0;}else u+a>m&&(p=false,s+=e._addLine(o),o=``,a=0),(o.length>0||!e.isBreakingSpace(r)||p)&&(o+=r,a+=u);}return s+=e._addLine(o,false),s}static _addLine(t,n=true){return t=e._trimRight(t),t=n?`${t} +`:t,t}static _getFromCache(t,n,r,i){let a=r[t];return typeof a!=`number`&&(a=e._measureText(t,n,i)+n,r[t]=a),a}static _collapseSpaces(e){return e===`normal`||e===`pre-line`}static _collapseNewlines(e){return e===`normal`}static _trimRight(t){if(typeof t!=`string`)return ``;for(let n=t.length-1;n>=0;n--){let r=t[n];if(!e.isBreakingSpace(r))break;t=t.slice(0,-1);}return t}static _isNewline(t){return typeof t==`string`?e._newlines.includes(t.charCodeAt(0)):false}static isBreakingSpace(t,n){return typeof t==`string`?e._breakingSpaces.includes(t.charCodeAt(0)):false}static _tokenize(t){let n=[],r=``;if(typeof t!=`string`)return n;for(let i=0;i{if(typeof Intl?.Segmenter==`function`){let e=new Intl.Segmenter;return t=>{let n=e.segment(t),r=[],i=0;for(let e of n)r[i++]=e.segment;return r}}return e=>[...e]})(),J$1.experimentalLetterSpacing=false,J$1._fonts={},J$1._newlines=[10,13],J$1._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288],J$1._measurementCache=st$2(1e3);var Y$1=J$1,dt$2=[{offset:0,color:`white`},{offset:1,color:`black`}],ft$2=class e{constructor(...t){this.uid=C(`fillGradient`),this._tick=0,this.type=`linear`,this.colorStops=[];let n=ht$2(t);n={...n.type===`radial`?e.defaultRadialOptions:e.defaultLinearOptions,...ue(n)},this._textureSize=n.textureSize,this._wrapMode=n.wrapMode,n.type===`radial`?(this.center=n.center,this.outerCenter=n.outerCenter??this.center,this.innerRadius=n.innerRadius,this.outerRadius=n.outerRadius,this.scale=n.scale,this.rotation=n.rotation):(this.start=n.start,this.end=n.end),this.textureSpace=n.textureSpace,this.type=n.type,n.colorStops.forEach(e=>{this.addColorStop(e.offset,e.color);});}addColorStop(e,t){return this.colorStops.push({offset:e,color:Ke$3.shared.setValue(t).toHexa()}),this}buildLinearGradient(){if(this.texture)return;let{x:e,y:t}=this.start,{x:n,y:r}=this.end,i=n-e,a=r-t,o=i<0||a<0;if(this._wrapMode===`clamp-to-edge`){if(i<0){let t=e;e=n,n=t,i*=-1;}if(a<0){let e=t;t=r,r=e,a*=-1;}}let s=this.colorStops.length?this.colorStops:dt$2,c=this._textureSize,{canvas:l,context:u}=mt$2(c,1),d=o?u.createLinearGradient(this._textureSize,0,0,0):u.createLinearGradient(0,0,this._textureSize,0);pt$2(d,s),u.fillStyle=d,u.fillRect(0,0,c,1),this.texture=new O({source:new Ae$2({resource:l,addressMode:this._wrapMode})});let f=Math.sqrt(i*i+a*a),p$1=Math.atan2(a,i),m=new p;m.scale(f/c,1),m.rotate(p$1),m.translate(e,t),this.textureSpace===`local`&&m.scale(c,c),this.transform=m;}buildGradient(){this.texture||this._tick++,this.type===`linear`?this.buildLinearGradient():this.buildRadialGradient();}buildRadialGradient(){if(this.texture)return;let e=this.colorStops.length?this.colorStops:dt$2,t=this._textureSize,{canvas:n,context:r}=mt$2(t,t),{x:i,y:a}=this.center,{x:o,y:s}=this.outerCenter,c=this.innerRadius,l=this.outerRadius,u=o-l,d=s-l,f=t/(l*2),p$1=(i-u)*f,m=(a-d)*f,h=r.createRadialGradient(p$1,m,c*f,(o-u)*f,(s-d)*f,l*f);pt$2(h,e),r.fillStyle=e[e.length-1].color,r.fillRect(0,0,t,t),r.fillStyle=h,r.translate(p$1,m),r.rotate(this.rotation),r.scale(1,this.scale),r.translate(-p$1,-m),r.fillRect(0,0,t,t),this.texture=new O({source:new Ae$2({resource:n,addressMode:this._wrapMode})});let g=new p;g.scale(1/f,1/f),g.translate(u,d),this.textureSpace===`local`&&g.scale(t,t),this.transform=g;}destroy(){this.texture?.destroy(true),this.texture=null,this.transform=null,this.colorStops=[],this.start=null,this.end=null,this.center=null,this.outerCenter=null;}get styleKey(){return `fill-gradient-${this.uid}-${this._tick}`}};ft$2.defaultLinearOptions={start:{x:0,y:0},end:{x:0,y:1},colorStops:[],textureSpace:`local`,type:`linear`,textureSize:256,wrapMode:`clamp-to-edge`},ft$2.defaultRadialOptions={center:{x:.5,y:.5},innerRadius:0,outerRadius:.5,colorStops:[],scale:1,textureSpace:`local`,type:`radial`,textureSize:256,wrapMode:`clamp-to-edge`};var X$1=ft$2;function pt$2(e,t){for(let n=0;n{t.exports=i;var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function i(e){var t=[];return e.replace(r,function(e,r,i){var a=r.toLowerCase();for(i=o(i),a==`m`&&i.length>2&&(t.push([r].concat(i.splice(0,2))),a=`l`,r=r==`m`?`l`:`L`);;){if(i.length==n[a])return i.unshift(r),t.push(i);if(i.length0&&(i=r.pop(),i?(a=i.startX,o=i.startY):(a=0,o=0)),i=null;break;default:Xe$3(`Unknown SVG path command: ${c}`);}c!==`Z`&&c!==`z`&&i===null&&(i={startX:a,startY:o},r.push(i));}return t}var bt$2=class e{constructor(e=0,t=0,n=0){this.type=`circle`,this.x=e,this.y=t,this.radius=n;}clone(){return new e(this.x,this.y,this.radius)}contains(e,t){if(this.radius<=0)return false;let n=this.radius*this.radius,r=this.x-e,i=this.y-t;return r*=r,i*=i,r+i<=n}strokeContains(e,t,n,r=.5){if(this.radius===0)return false;let i=this.x-e,a=this.y-t,o=this.radius,s=(1-r)*n,c=Math.sqrt(i*i+a*a);return c<=o+s&&c>o-(n-s)}getBounds(e){return e||=new re,e.x=this.x-this.radius,e.y=this.y-this.radius,e.width=this.radius*2,e.height=this.radius*2,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.radius=e.radius,this}copyTo(e){return e.copyFrom(this),e}toString(){return `[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}},xt$2=class e{constructor(e=0,t=0,n=0,r=0){this.type=`ellipse`,this.x=e,this.y=t,this.halfWidth=n,this.halfHeight=r;}clone(){return new e(this.x,this.y,this.halfWidth,this.halfHeight)}contains(e,t){if(this.halfWidth<=0||this.halfHeight<=0)return false;let n=(e-this.x)/this.halfWidth,r=(t-this.y)/this.halfHeight;return n*=n,r*=r,n+r<=1}strokeContains(e,t,n,r=.5){let{halfWidth:i,halfHeight:a}=this;if(i<=0||a<=0)return false;let o=n*(1-r),s=n-o,c=i-s,l=a-s,u=i+o,d=a+o,f=e-this.x,p=t-this.y,m=f*f/(c*c)+p*p/(l*l),h=f*f/(u*u)+p*p/(d*d);return m>1&&h<=1}getBounds(e){return e||=new re,e.x=this.x-this.halfWidth,e.y=this.y-this.halfHeight,e.width=this.halfWidth*2,e.height=this.halfHeight*2,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.halfWidth=e.halfWidth,this.halfHeight=e.halfHeight,this}copyTo(e){return e.copyFrom(this),e}toString(){return `[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}};function St$1(e,t,n,r,i,a){let o=e-n,s=t-r,c=i-n,l=a-r,u=o*c+s*l,d=c*c+l*l,f=-1;d!==0&&(f=u/d);let p,m;f<0?(p=n,m=r):f>1?(p=i,m=a):(p=n+f*c,m=r+f*l);let h=e-p,g=t-m;return h*h+g*g}var Ct$1,wt$1,Tt$1=class e{constructor(...e){this.type=`polygon`;let t=Array.isArray(e[0])?e[0]:e;if(typeof t[0]!=`number`){let e=[];for(let n=0,r=t.length;nt!=c>t&&e<(s-r)*((t-o)/(c-o))+r&&(n=!n);}return n}strokeContains(e,t,n,r=.5){let i=n*n,a=i*(1-r),o=i-a,{points:s}=this,c=s.length-(this.closePath?0:2);for(let n=0;nr?o:r,i=sa?s:a;}return e.x=n,e.width=r-n,e.y=i,e.height=a-i,e}copyFrom(e){return this.points=e.points.slice(),this.closePath=e.closePath,this}copyTo(e){return e.copyFrom(this),e}toString(){return `[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((e,t)=>`${e}, ${t}`,``)}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return E(`8.11.0`,`Polygon.lastX is deprecated, please use Polygon.lastX instead.`),this.points[this.points.length-2]}get y(){return E(`8.11.0`,`Polygon.y is deprecated, please use Polygon.lastY instead.`),this.points[this.points.length-1]}get startX(){return this.points[0]}get startY(){return this.points[1]}},Et$1=(e,t,n,r,i,a,o)=>{let s=e-n,c=t-r,l=Math.sqrt(s*s+c*c);return l>=i-a&&l<=i+o},Dt$1=class e{constructor(e=0,t=0,n=0,r=0,i=20){this.type=`roundedRectangle`,this.x=e,this.y=t,this.width=n,this.height=r,this.radius=i;}getBounds(e){return e||=new re,e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}clone(){return new e(this.x,this.y,this.width,this.height,this.radius)}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){if(this.width<=0||this.height<=0)return false;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){let n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+n&&t<=this.y+this.height-n||e>=this.x+n&&e<=this.x+this.width-n)return true;let r=e-(this.x+n),i=t-(this.y+n),a=n*n;if(r*r+i*i<=a||(r=e-(this.x+this.width-n),r*r+i*i<=a)||(i=t-(this.y+this.height-n),r*r+i*i<=a)||(r=e-(this.x+n),r*r+i*i<=a))return true}return false}strokeContains(e,t,n,r=.5){let{x:i,y:a,width:o,height:s,radius:c}=this,l=n*(1-r),u=n-l,d=i+c,f=a+c,p=o-c*2,m=s-c*2,h=i+o,g=a+s;return (e>=i-l&&e<=i+u||e>=h-u&&e<=h+l)&&t>=f&&t<=f+m||(t>=a-l&&t<=a+u||t>=g-u&&t<=g+l)&&e>=d&&e<=d+p?true:eh-c&&th-c&&t>g-c&&Et$1(e,t,h-c,g-c,c,u,l)||eg-c&&Et$1(e,t,d,g-c,c,u,l)}toString(){return `[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}};function Ot$1(e,t,n,r,i,a,o,s=null){let c=0;n*=t,i*=a;let l=s.a,u=s.b,d=s.c,f=s.d,p=s.tx,m=s.ty;for(;c>16|e&65280|(e&255)<<16,n=this.renderable;return n?ft$3(t,n.groupColor)+(this.alpha*n.groupAlpha*255<<24):t+(this.alpha*255<<24)}get transform(){return this.renderable?.groupTransform||jt$1}copyTo(e){e.indexOffset=this.indexOffset,e.indexSize=this.indexSize,e.attributeOffset=this.attributeOffset,e.attributeSize=this.attributeSize,e.baseColor=this.baseColor,e.alpha=this.alpha,e.texture=this.texture,e.geometryData=this.geometryData,e.topology=this.topology;}reset(){this.applyTransform=true,this.renderable=null,this.topology=`triangle-list`;}destroy(){this.renderable=null,this.texture=null,this.geometryData=null,this._batcher=null,this._batch=null;}},Nt$1={extension:{type:n.ShapeBuilder,name:`circle`},build(e,t){let n,r,i,a,o,s;if(e.type===`circle`){let t=e;if(o=s=t.radius,o<=0)return false;n=t.x,r=t.y,i=a=0;}else if(e.type===`ellipse`){let t=e;if(o=t.halfWidth,s=t.halfHeight,o<=0||s<=0)return false;n=t.x,r=t.y,i=a=0;}else {let t=e,c=t.width/2,l=t.height/2;n=t.x+c,r=t.y+l,o=s=Math.max(0,Math.min(t.radius,Math.min(c,l))),i=c-o,a=l-s;}if(i<0||a<0)return false;let c=Math.ceil(2.3*Math.sqrt(o+s)),l=c*8+(i?4:0)+(a?4:0);if(l===0)return false;if(c===0)return t[0]=t[6]=n+i,t[1]=t[3]=r+a,t[2]=t[4]=n-i,t[5]=t[7]=r-a,true;let u=0,d=c*4+(i?2:0)+2,f=d,p=l,m=i+o,h=a,g=n+m,_=n-m,v=r+h;if(t[u++]=g,t[u++]=v,t[--d]=v,t[--d]=_,a){let e=r-h;t[f++]=_,t[f++]=e,t[--p]=e,t[--p]=g;}for(let e=1;e0&&(i[a++]=c,i[a++]=l,i[a++]=c-1),c++;i[a++]=l+1,i[a++]=l,i[a++]=c-1;}},Pt$1={...Nt$1,extension:{...Nt$1.extension,name:`ellipse`}},Ft$1={...Nt$1,extension:{...Nt$1.extension,name:`roundedRectangle`}},It$1=1e-4,Lt$1=1e-4;function Rt$1(e){let t=e.length;if(t<6)return 1;let n=0;for(let r=0,i=e[t-2],a=e[t-1];rd&&(d+=Math.PI*2);let f=u,p=d-u,m=Math.abs(p),h=Math.sqrt(c*c+l*l),g=(15*m*Math.sqrt(h)/Math.PI>>0)+1,_=p/g;if(f+=_,s){o.push(e,t),o.push(n,r);for(let n=1,r=f;n=0&&(s.join===`round`?h+=Bt$1(S,C,S-E*N,C-D*N,S-k*N,C-A*N,p,false)+4:h+=2,p.push(S-k*P,C-A*P),p.push(S+k*N,C+A*N));continue}let u=(-E+b)*(-D+C)-(-E+S)*(-D+x),d=(-k+w)*(-A+C)-(-k+S)*(-A+T),f=(n*d-i*u)/c,m=(a*u-r*d)/c,g=(f-S)*(f-S)+(m-C)*(m-C),O=S+(f-S)*N,M=C+(m-C)*N,F=S-(f-S)*P,I=C-(m-C)*P,ee=Math.min(n*n+r*r,i*i+a*a),te=l?N:P;g<=ee+te*te*v?s.join===`bevel`||g/v>y?(l?(p.push(O,M),p.push(S+E*P,C+D*P),p.push(O,M),p.push(S+k*P,C+A*P)):(p.push(S-E*N,C-D*N),p.push(F,I),p.push(S-k*N,C-A*N),p.push(F,I)),h+=2):s.join===`round`?l?(p.push(O,M),p.push(S+E*P,C+D*P),h+=Bt$1(S,C,S+E*P,C+D*P,S+k*P,C+A*P,p,true)+4,p.push(O,M),p.push(S+k*P,C+A*P)):(p.push(S-E*N,C-D*N),p.push(F,I),h+=Bt$1(S,C,S-E*N,C-D*N,S-k*N,C-A*N,p,false)+4,p.push(S-k*N,C-A*N),p.push(F,I)):(p.push(O,M),p.push(F,I)):(p.push(S-E*N,C-D*N),p.push(S+E*P,C+D*P),s.join===`round`?l?h+=Bt$1(S,C,S+E*P,C+D*P,S+k*P,C+A*P,p,true)+2:h+=Bt$1(S,C,S-E*N,C-D*N,S-k*N,C-A*N,p,false)+2:s.join===`miter`&&g/v<=y&&(l?(p.push(F,I),p.push(F,I)):(p.push(O,M),p.push(O,M)),h+=2),p.push(S-k*N,C-A*N),p.push(S+k*P,C+A*P),h+=2);}b=e[(m-2)*2],x=e[(m-2)*2+1],S=e[(m-1)*2],C=e[(m-1)*2+1],E=-(x-C),D=b-S,j=Math.sqrt(E*E+D*D),E/=j,D/=j,E*=_,D*=_,p.push(S-E*N,C-D*N),p.push(S+E*P,C+D*P),d$1||(s.cap===`round`?h+=Bt$1(S-E*(N-P)*.5,C-D*(N-P)*.5,S-E*N,C-D*N,S+E*P,C+D*P,p,false)+2:s.cap===`square`&&(h+=zt$1(S,C,E,D,N,P,false,p)));let F=Lt$1*Lt$1;for(let e=g;e0&&o>0?(t[0]=r,t[1]=i,t[2]=r+a,t[3]=i,t[4]=r+a,t[5]=i+o,t[6]=r,t[7]=i+o,true):false},triangulate(e,t,n,r,i,a){let o=0;r*=n,t[r+o]=e[0],t[r+o+1]=e[1],o+=n,t[r+o]=e[2],t[r+o+1]=e[3],o+=n,t[r+o]=e[6],t[r+o+1]=e[7],o+=n,t[r+o]=e[4],t[r+o+1]=e[5],o+=n;let s=r/n;i[a++]=s,i[a++]=s+1,i[a++]=s+2,i[a++]=s+1,i[a++]=s+3,i[a++]=s+2;}},qt$1={extension:{type:n.ShapeBuilder,name:`triangle`},build(e,t){return t[0]=e.x,t[1]=e.y,t[2]=e.x2,t[3]=e.y2,t[4]=e.x3,t[5]=e.y3,true},triangulate(e,t,n,r,i,a){let o=0;r*=n,t[r+o]=e[0],t[r+o+1]=e[1],o+=n,t[r+o]=e[2],t[r+o+1]=e[3],o+=n,t[r+o]=e[4],t[r+o+1]=e[5];let s=r/n;i[a++]=s,i[a++]=s+1,i[a++]=s+2;}},Jt$1=new p,Yt$1=new re;function Xt$1(e,t,n,r){let i=t.matrix?e.copyFrom(t.matrix).invert():e.identity();if(t.textureSpace===`local`){let e=n.getBounds(Yt$1);t.width&&e.pad(t.width);let{x:r,y:a}=e,o=1/e.width,s=1/e.height,c=-r*o,l=-a*s,u=i.a,d=i.b,f=i.c,p=i.d;i.a*=o,i.b*=o,i.c*=s,i.d*=s,i.tx=c*u+l*f+i.tx,i.ty=c*d+l*p+i.ty;}else i.translate(t.texture.frame.x,t.texture.frame.y),i.scale(1/t.texture.source.width,1/t.texture.source.height);let a=t.texture.source.style;return !(t.fill instanceof X$1)&&a.addressMode===`clamp-to-edge`&&(a.addressMode=`repeat`,a.update()),r&&i.append(Jt$1.copyFrom(r).invert()),i}var Zt$1={};a$1.handleByMap(n.ShapeBuilder,Zt$1),a$1.add(Kt$1,Gt$1,qt$1,Nt$1,Pt$1,Ft$1);var Qt$1=new re,$t$1=new p;function en(e,t){let{geometryData:n,batches:r}=t;r.length=0,n.indices.length=0,n.vertices.length=0,n.uvs.length=0;for(let t=0;t{let u=[],d=Zt$1[e.type];if(!d.build(e,u))return;let f=s.length,p=a.length/2,m=`triangle-list`;if(c&&At$1(u,c),n){let n=e.closePath??true,r=t;r.pixelLine?(Ht$1(u,n,a,s),m=`line-list`):Vt$1(u,r,false,n,a,s);}else if(l){let e=[],t=u.slice();rn(l).forEach(n=>{e.push(t.length/2),t.push(...n);}),Ut$1(t,e,a,2,p,s,f);}else d.triangulate(u,a,2,p,s,f);let h=o.length/2,g=t.texture;if(g!==O.WHITE){let n=Xt$1($t$1,t,e,c);Ot$1(a,2,p,o,h,2,a.length/2-p,n);}else kt$1(o,h,2,a.length/2-p);let _=I$1.get(Mt$1);_.indexOffset=f,_.indexSize=s.length-f,_.attributeOffset=p,_.attributeSize=a.length/2-p,_.baseColor=t.color,_.alpha=t.alpha,_.texture=g,_.geometryData=i,_.topology=m,r.push(_);});}function rn(e){let t=[];for(let n=0;n{I$1.return(e);}),this.graphicsData&&I$1.return(this.graphicsData),this.isBatchable=false,this.context=null,this.batches.length=0,this.geometryData.indices.length=0,this.geometryData.vertices.length=0,this.geometryData.uvs.length=0,this.graphicsData=null;}destroy(){this.reset(),this.batches=null,this.geometryData=null;}},on=class{constructor(){this.instructions=new Et$2;}init(e){let t=e.maxTextures;this.batcher?this.batcher._updateMaxTextures(t):this.batcher=new xi$1({maxTextures:t}),this.instructions.reset();}get geometry(){return E(oe,`GraphicsContextRenderData#geometry is deprecated, please use batcher.geometry instead.`),this.batcher.geometry}destroy(){this.batcher.destroy(),this.instructions.destroy(),this.batcher=null,this.instructions=null;}},sn=class e{constructor(e){this._renderer=e,this._managedContexts=new Si$1({renderer:e,type:`resource`,name:`graphicsContext`});}init(t){e.defaultOptions.bezierSmoothness=t?.bezierSmoothness??e.defaultOptions.bezierSmoothness;}getContextRenderData(e){return e._gpuData[this._renderer.uid].graphicsData||this._initContextRenderData(e)}updateGpuContext(e){let t=!!e._gpuData[this._renderer.uid],n=e._gpuData[this._renderer.uid]||this._initContext(e);if(e.dirty||!t){t&&n.reset(),en(e,n);let r=e.batchMode;e.customShader||r===`no-batch`?n.isBatchable=false:r===`auto`?n.isBatchable=n.geometryData.vertices.length<400:n.isBatchable=true,e.dirty=false;}return n}getGpuContext(e){return e._gpuData[this._renderer.uid]||this._initContext(e)}_initContextRenderData(e){let t=I$1.get(on,{maxTextures:this._renderer.limits.maxBatchableTextures}),n=e._gpuData[this._renderer.uid],{batches:r,geometryData:i}=n;n.graphicsData=t;let a=i.vertices.length,o$1=i.indices.length;for(let e=0;eln$1)return;let d=(e+n)/2,f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(d+p)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(_+y)/2,S=(v+b)/2;if(u>0){let u=o-e,d=s-t,f=Math.abs((n-o)*d-(r-s)*u),p=Math.abs((i-o)*d-(a-s)*u);if(f>un$1&&p>un$1){if((f+p)*(f+p)<=l*(u*u+d*d)){c.push(x,S);return}}else if(f>un$1){if(f*f<=l*(u*u+d*d)){c.push(x,S);return}}else if(p>un$1){if(p*p<=l*(u*u+d*d)){c.push(x,S);return}}else if(u=x-(e+o)/2,d=S-(t+s)/2,u*u+d*d<=l){c.push(x,S);return}}mn$1(e,t,d,f,_,v,x,S,c,l,u+1),mn$1(x,S,y,b,h,g,o,s,c,l,u+1);}var hn$1=8,gn$1=1.1920929e-7,_n$1=1;function vn$1(e,t,n,r,i,a,o,s){let c=(_n$1-Math.min(.99,Math.max(0,s??cn.defaultOptions.bezierSmoothness)))/1;return c*=c,yn$1(t,n,r,i,a,o,e,c),e}function yn$1(e,t,n,r,i,a,o,s){bn$1(o,e,t,n,r,i,a,s,0),o.push(i,a);}function bn$1(e,t,n,r,i,a,o,s,c){if(c>hn$1)return;let l=(t+r)/2,u=(n+i)/2,d=(r+a)/2,f=(i+o)/2,p=(l+d)/2,m=(u+f)/2,h=a-t,g=o-n,_=Math.abs((r-a)*g-(i-o)*h);if(_>gn$1){if(_*_<=s*(h*h+g*g)){e.push(p,m);return}}else if(h=p-(t+a)/2,g=m-(n+o)/2,h*h+g*g<=s){e.push(p,m);return}bn$1(e,t,n,l,u,p,m,s,c+1),bn$1(e,p,m,d,f,a,o,s,c+1);}function xn$1(e,t,n,r,i,a,o,s){let c=Math.abs(i-a);(!o&&i>a||o&&a>i)&&(c=2*Math.PI-c),s||=Math.max(6,Math.floor(6*r**(1/3)*(c/Math.PI))),s=Math.max(s,3);let l=c/s,u=i;l*=o?-1:1;for(let i=0;iu*s);}var Cn$1=Math.PI*2,wn$1={centerX:0,centerY:0,ang1:0,ang2:0},Tn$1=({x:e,y:t},n,r,i,a,o,s,c)=>{e*=n,t*=r;let l=i*e-a*t,u=a*e+i*t;return c.x=l+o,c.y=u+s,c};function En(e,t){let n=t===-1.5707963267948966?-0.551915024494:4/3*Math.tan(t/4),r=t===1.5707963267948966?.551915024494:n,i=Math.cos(e),a=Math.sin(e),o=Math.cos(e+t),s=Math.sin(e+t);return [{x:i-a*r,y:a+i*r},{x:o+s*r,y:s-o*r},{x:o,y:s}]}var Dn=(e,t,n,r)=>{let i=e*r-t*n<0?-1:1,a=e*n+t*r;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)},On=(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{let p=i**2,m=a**2,h=u**2,g=d**2,_=p*m-p*g-m*h;_<0&&(_=0),_/=p*g+m*h,_=Math.sqrt(_)*(o===s?-1:1);let v=_*i/a*d,y=_*-a/i*u,b=l*v-c*y+(e+n)/2,x=c*v+l*y+(t+r)/2,S=(u-v)/i,C=(d-y)/a,w=(-u-v)/i,T=(-d-y)/a,E=Dn(1,0,S,C),D=Dn(S,C,w,T);s===0&&D>0&&(D-=Cn$1),s===1&&D<0&&(D+=Cn$1),f.centerX=b,f.centerY=x,f.ang1=E,f.ang2=D;};function kn(e,t,n,r,i,a,o,s=0,c=0,l=0){if(a===0||o===0)return;let u=Math.sin(s*Cn$1/360),d=Math.cos(s*Cn$1/360),f=d*(t-r)/2+u*(n-i)/2,p=-u*(t-r)/2+d*(n-i)/2;if(f===0&&p===0)return;a=Math.abs(a),o=Math.abs(o);let m=f**2/a**2+p**2/o**2;m>1&&(a*=Math.sqrt(m),o*=Math.sqrt(m)),On(t,n,r,i,a,o,c,l,u,d,f,p,wn$1);let{ang1:h,ang2:g}=wn$1,{centerX:_,centerY:v}=wn$1,y=Math.abs(g)/(Cn$1/4);Math.abs(1-y)<1e-7&&(y=1);let b=Math.max(Math.ceil(y),1);g/=b;let x=e[e.length-2],S=e[e.length-1],C={x:0,y:0};for(let t=0;t{let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return {len:i,nx:n/i,ny:r/i}},i=(t,n)=>{t===0?e.moveTo(n.x,n.y):e.lineTo(n.x,n.y);},a=t[t.length-1];for(let o=0;o0&&(p=-1,m=true);let h=f/2,g,_=Math.abs(Math.cos(h)*c/Math.sin(h));_>Math.min(u.len/2,d.len/2)?(_=Math.min(u.len/2,d.len/2),g=Math.abs(_*Math.sin(h)/Math.cos(h))):g=c;let v=s.x+d.nx*_+-d.ny*g*p,y=s.y+d.ny*_+d.nx*g*p,b=Math.atan2(u.ny,u.nx)+Math.PI/2*p,x=Math.atan2(d.ny,d.nx)-Math.PI/2*p;o===0&&e.moveTo(v+Math.cos(b)*g,y+Math.sin(b)*g),e.arc(v,y,g,b,x,m),a=s;}}function jn(e,t,n,r){let i=(e,t)=>Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),a=(e,t,n)=>({x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}),o=t.length;for(let s=0;s1){let e=null;for(let t=r;t=2;e-=2)l[e]===l[e-2]&&l[e-1]===l[e-3]&&l.splice(e-1,2);return this.poly(l,true,a)}ellipse(e,t,n,r,i){return this.drawShape(new xt$2(e,t,n,r),i),this}roundRect(e,t,n,r,i,a){return this.drawShape(new Dt$1(e,t,n,r,i),a),this}drawShape(e,t){return this.endPoly(),this.shapePrimitives.push({shape:e,transform:t}),this}startPoly(e,t){let n=this._currentPoly;return n&&this.endPoly(),n=new Tt$1,n.points.push(e,t),this._currentPoly=n,this}endPoly(e=false){let t=this._currentPoly;return t&&t.points.length>2&&(t.closePath=e,this.shapePrimitives.push({shape:t})),this._currentPoly=null,this}_ensurePoly(e=true){if(!this._currentPoly&&(this._currentPoly=new Tt$1,e)){let e=this.shapePrimitives[this.shapePrimitives.length-1];if(e){let t=e.shape.x,n=e.shape.y;if(e.transform&&!e.transform.isIdentity()){let r=e.transform,i=t;t=r.a*t+r.c*n+r.tx,n=r.b*i+r.d*n+r.ty;}this._currentPoly.points.push(t,n);}else this._currentPoly.points.push(0,0);}}buildPath(){let e=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let t=0;te.area).sort((e,t)=>t-e),[n,r]=t,i=t[t.length-1],a=n/r,o=r/i;return !(a>3&&o<2)}function Wn(e){return e.split(/(?=[Mm])/).filter(e=>e.trim().length>0)}function Gn(e){let t=e.match(/[-+]?[0-9]*\.?[0-9]+/g);if(!t||t.length<4)return 0;let n=t.map(Number),r=[],i=[];for(let e=0;e1;if(o&&s){let e=a.map(e=>({path:e,area:Gn(e)}));if(e.sort((e,t)=>t.area-e.area),a.length>3||!Un(e))for(let i=0;iparseInt(e,10)),t.context.poly(y,true),n&&t.context.fill(n),r&&t.context.stroke(r);break;case `polyline`:b=e.getAttribute(`points`),y=b.match(/-?\d+/g).map(e=>parseInt(e,10)),t.context.poly(y,false),r&&t.context.stroke(r);break;case `g`:case `svg`:break;default:Xe$3(`[SVG parser] <${e.nodeName}> elements unsupported`);break}s&&(n=null);for(let e=0;e{this._fill=ir({...this._originalFill},Q$1.defaultFillStyle);})),this._fill=ir(e===0?`black`:e,Q$1.defaultFillStyle),this.update());}get stroke(){return this._originalStroke}set stroke(e){e!==this._originalStroke&&(this._originalStroke=e,this._isFillStyle(e)&&(this._originalStroke=this._createProxy({...Q$1.defaultStrokeStyle,...e},()=>{this._stroke=ar({...this._originalStroke},Q$1.defaultStrokeStyle);})),this._stroke=ar(e,Q$1.defaultStrokeStyle),this.update());}update(){this._tick++,this.emit(`update`,this);}reset(){let t=e.defaultTextStyle;for(let e in t)this[e]=t[e];}get styleKey(){return `${this.uid}-${this._tick}`}clone(){return new e({align:this.align,breakWords:this.breakWords,dropShadow:this._dropShadow?{...this._dropShadow}:null,fill:this._fill,fontFamily:this.fontFamily,fontSize:this.fontSize,fontStyle:this.fontStyle,fontVariant:this.fontVariant,fontWeight:this.fontWeight,leading:this.leading,letterSpacing:this.letterSpacing,lineHeight:this.lineHeight,padding:this.padding,stroke:this._stroke,textBaseline:this.textBaseline,whiteSpace:this.whiteSpace,wordWrap:this.wordWrap,wordWrapWidth:this.wordWrapWidth,filters:this._filters?[...this._filters]:void 0})}_getFinalPadding(){let e=0;if(this._filters)for(let t=0;te[n]===r?true:(e[n]=r,t?.(n,r),this.update(),true)})}_isFillStyle(e){return (e??null)!==null&&!(Ke$3.isColorLike(e)||e instanceof X$1||e instanceof _t$2)}};lr.defaultDropShadow={alpha:1,angle:Math.PI/6,blur:0,color:`black`,distance:5},lr.defaultTextStyle={align:`left`,breakWords:false,dropShadow:null,fill:`black`,fontFamily:`Arial`,fontSize:26,fontStyle:`normal`,fontVariant:`normal`,fontWeight:`normal`,leading:0,letterSpacing:0,lineHeight:0,padding:0,stroke:null,textBaseline:`alphabetic`,trim:false,whiteSpace:`pre`,wordWrap:false,wordWrapWidth:100};var ur=lr;function dr(e){let t=e;if(typeof t.dropShadow==`boolean`&&t.dropShadow){let n=ur.defaultDropShadow;e.dropShadow={alpha:t.dropShadowAlpha??n.alpha,angle:t.dropShadowAngle??n.angle,blur:t.dropShadowBlur??n.blur,color:t.dropShadowColor??n.color,distance:t.dropShadowDistance??n.distance};}if(t.strokeThickness!==void 0){E(w,`strokeThickness is now a part of stroke`);let n=t.stroke,r={};if(Ke$3.isColorLike(n))r.color=n;else if(n instanceof X$1||n instanceof _t$2)r.fill=n;else if(Object.hasOwnProperty.call(n,`color`)||Object.hasOwnProperty.call(n,`fill`))r=n;else throw Error(`Invalid stroke value.`);e.stroke={...r,width:t.strokeThickness};}if(Array.isArray(t.fillGradientStops)){if(E(w,"gradient fill is now a fill pattern: `new FillGradient(...)`"),!Array.isArray(t.fill)||t.fill.length===0)throw Error(`Invalid fill value. Expected an array of colors for gradient fill.`);t.fill.length!==t.fillGradientStops.length&&Xe$3(`The number of fill colors must match the number of fill gradient stops.`);let n=new X$1({start:{x:0,y:0},end:{x:0,y:1},textureSpace:`local`}),r=t.fillGradientStops.slice(),i=t.fill.map(e=>Ke$3.shared.setValue(e).toNumber());r.forEach((e,t)=>{n.addColorStop(e,i[t]);}),e.fill={fill:n};}}var fr=1e5;function pr(e,t,n,r=0){if(e.texture===O.WHITE&&!e.fill)return Ke$3.shared.setValue(e.color).setAlpha(e.alpha??1).toHexa();if(!e.fill){let n=t.createPattern(e.texture.source.resource,`repeat`),r=e.matrix.copyTo(p.shared);return r.scale(e.texture.frame.width,e.texture.frame.height),n.setTransform(r),n}else if(e.fill instanceof _t$2){let n=e.fill,r=t.createPattern(n.texture.source.resource,`repeat`),i=n.transform.copyTo(p.shared);return i.scale(n.texture.frame.width,n.texture.frame.height),r.setTransform(i),r}else if(e.fill instanceof X$1){let i=e.fill,a=i.type===`linear`,o=i.textureSpace===`local`,s=1,c=1;o&&n&&(s=n.width+r,c=n.height+r);let l,u=false;if(a){let{start:e,end:n}=i;l=t.createLinearGradient(e.x*s,e.y*c,n.x*s,n.y*c),u=Math.abs(n.x-e.x){let n=a+t.offset*e;l.addColorStop(Math.floor(n*fr)/fr,Ke$3.shared.setValue(t.color).toHex());});}}else i.colorStops.forEach(e=>{l.addColorStop(e.offset,Ke$3.shared.setValue(e.color).toHex());});return l}return Xe$3(`FillStyle not recognised`,e),`red`}var mr=class e extends at$2{constructor(t){super(),this.resolution=1,this.pages=[],this._padding=0,this._measureCache=Object.create(null),this._currentChars=[],this._currentX=0,this._currentY=0,this._currentMaxCharHeight=0,this._currentPageIndex=-1,this._skipKerning=false;let n={...e.defaultOptions,...t};this._textureSize=n.textureSize,this._mipmap=n.mipmap;let r=n.style.clone();n.overrideFill&&(r._fill.color=16777215,r._fill.alpha=1,r._fill.texture=O.WHITE,r._fill.fill=null),this.applyFillAsTint=n.overrideFill;let i=r.fontSize;r.fontSize=this.baseMeasurementFontSize;let a=lt$2(r);n.overrideSize?r._stroke&&(r._stroke.width*=this.baseRenderedFontSize/i):r.fontSize=this.baseRenderedFontSize=i,this._style=r,this._skipKerning=n.skipKerning??false,this.resolution=n.resolution??1,this._padding=n.padding??4,n.textureStyle&&(this._textureStyle=n.textureStyle instanceof me$1?n.textureStyle:new me$1(n.textureStyle)),this.fontMetrics=Y$1.measureFont(a),this.lineHeight=r.lineHeight||this.fontMetrics.fontSize||r.fontSize;}ensureCharacters(e){let t=Y$1.graphemeSegmenter(e).filter(e=>!this._currentChars.includes(e)).filter((e,t,n)=>n.indexOf(e)===t);if(!t.length)return;this._currentChars=[...this._currentChars,...t];let n;n=this._currentPageIndex===-1?this._nextPage():this.pages[this._currentPageIndex];let{canvas:r,context:i}=n.canvasAndContext,a=n.texture.source,o=this._style,s=this._currentX,c=this._currentY,l=this._currentMaxCharHeight,u=this.baseRenderedFontSize/this.baseMeasurementFontSize,d=this._padding*u,f=false,p=r.width/this.resolution,m=r.height/this.resolution;for(let e=0;ep&&(c+=l,l=b,s=0,c+l>m)){a.update();let e=this._nextPage();r=e.canvasAndContext.canvas,i=e.canvasAndContext.context,a=e.texture.source,s=0,c=0,l=0;}let x=g/u-(o.dropShadow?.distance??0)-(o._stroke?.width??0);if(this.chars[n]={id:n.codePointAt(0),xOffset:-this._padding,yOffset:-this._padding,xAdvance:x,kerning:{}},f){this._drawGlyph(i,h,s+d,c+d,u,o);let e=a.width*u,t=a.height*u,r=new re(s/e*a.width,c/t*a.height,y/e*a.width,b/t*a.height);this.chars[n].texture=new O({source:a,frame:r}),s+=Math.ceil(y);}}a.update(),this._currentX=s,this._currentY=c,this._currentMaxCharHeight=l,this._skipKerning&&this._applyKerning(t,i);}get pageTextures(){return E(w,`BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead.`),this.pages}_applyKerning(e,t){let n=this._measureCache;for(let r=0;r{let t=a.width;for(let n=0;n{let e=a.chars.length-1;if(r){let t=a.chars[e];for(;t===` `;)a.width-=n.chars[t].xAdvance,t=a.chars[--e];}i.width=Math.max(i.width,a.width),a={width:0,charPositions:[],chars:[],spaceWidth:0,spacesIndex:[]},s=true,i.lines.push(a),i.height+=f;},g=e=>e-u>d;for(let r=0;r50&&Xe$3(`BitmapText`,`You have dynamically created ${xr} bitmap fonts, this can be inefficient. Try pre installing your font styles using \`BitmapFont.install({name:"style1", style})\``),i.once(`destroy`,()=>{xr--,K$1.remove(n);}),K$1.set(n,i);}let i=K$1.get(n);return i.ensureCharacters?.(e),i}getLayout(e,t,n=true){let r=this.getFont(e,t),i=`${e}-${t.styleKey}-${n}`;if(this.measureCache.has(i))return this.measureCache.get(i);let a=gr(Y$1.graphemeSegmenter(e),t,r,n);return this.measureCache.set(i,a),a}measureText(e,t,n=true){return this.getLayout(e,t,n)}install(...e){let t=e[0];typeof t==`string`&&(t={name:t,style:e[1],chars:e[2]?.chars,resolution:e[2]?.resolution,padding:e[2]?.padding,skipKerning:e[2]?.skipKerning},E(w,`BitmapFontManager.install(name, style, options) is deprecated, use BitmapFontManager.install({name, style, ...options})`));let n=t?.name;if(!n)throw Error("[BitmapFontManager] Property `name` is required.");t={...this.defaultOptions,...t};let r=t.style,i=r instanceof ur?r:new ur(r),a=new hr({style:i,overrideFill:t.dynamicFill??this._canUseTintForStyle(i),skipKerning:t.skipKerning,padding:t.padding,resolution:t.resolution,overrideSize:false,textureStyle:t.textureStyle}),o=br(t.chars);return a.ensureCharacters(o.join(``)),K$1.set(`${n}-bitmap`,a),a.once(`destroy`,()=>K$1.remove(`${n}-bitmap`)),a}uninstall(e){let t=`${e}-bitmap`,n=K$1.get(t);n&&n.destroy();}_canUseTintForStyle(e){return !e._stroke&&(!e.dropShadow||e.dropShadow.color===0)&&!e._fill.fill&&e._fill.color===16777215}},Cr=`in vec2 aPosition; +out vec2 vTextureCoord; + +uniform vec4 uInputSize; +uniform vec4 uOutputFrame; +uniform vec4 uOutputTexture; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy; + + position.x = position.x * (2.0 / uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aPosition * (uOutputFrame.zw * uInputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); +} +`,wr=`in vec2 vTextureCoord; +out vec4 finalColor; +uniform sampler2D uTexture; +void main() { + finalColor = texture(uTexture, vTextureCoord); +} +`,Tr=`struct GlobalFilterUniforms { + uInputSize: vec4, + uInputPixel: vec4, + uInputClamp: vec4, + uOutputFrame: vec4, + uGlobalFrame: vec4, + uOutputTexture: vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv: vec2 +}; + +fn filterVertexPosition(aPosition: vec2) -> vec4 +{ + var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy; + + position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0; + position.y = position.y * (2.0 * gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +fn filterTextureCoord(aPosition: vec2) -> vec2 +{ + return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw); +} + +@vertex +fn mainVertex( + @location(0) aPosition: vec2, +) -> VSOutput { + return VSOutput( + filterVertexPosition(aPosition), + filterTextureCoord(aPosition) + ); +} + +@fragment +fn mainFragment( + @location(0) uv: vec2, +) -> @location(0) vec4 { + return textureSample(uTexture, uSampler, uv); +} +`,Er=class extends In$1{constructor(){let e=_n$2.from({vertex:{source:Tr,entryPoint:`mainVertex`},fragment:{source:Tr,entryPoint:`mainFragment`},name:`passthrough-filter`}),t=cn$1.from({vertex:Cr,fragment:wr,name:`passthrough-filter`});super({gpuProgram:e,glProgram:t});}},Dr=class{constructor(e){this._renderer=e;}push(e,t,n){this._renderer.renderPipes.batch.break(n),n.add({renderPipeId:`filter`,canBundle:false,action:`pushFilter`,container:t,filterEffect:e});}pop(e,t,n){this._renderer.renderPipes.batch.break(n),n.add({renderPipeId:`filter`,action:`popFilter`,canBundle:false});}execute(e){e.action===`pushFilter`?this._renderer.filter.push(e):e.action===`popFilter`&&this._renderer.filter.pop();}destroy(){this._renderer=null;}};Dr.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`filter`};var Or=new p;function kr(e,t){t.clear();let n=t.matrix;for(let n=0;n`},uInputPixel:{value:new Float32Array(4),type:`vec4`},uInputClamp:{value:new Float32Array(4),type:`vec4`},uOutputFrame:{value:new Float32Array(4),type:`vec4`},uGlobalFrame:{value:new Float32Array(4),type:`vec4`},uOutputTexture:{value:new Float32Array(4),type:`vec4`}}),this._globalFilterBindGroup=new Cn$2({}),this.renderer=e;}get activeBackTexture(){return this._activeFilterData?.backTexture}push(e){let t=this.renderer,n=e.filterEffect.filters,r=this._pushFilterData();r.skip=false,r.filters=n,r.container=e.container,r.outputRenderSurface=t.renderTarget.renderSurface;let i=t.renderTarget.renderTarget.colorTexture.source,a=i.resolution,o=i.antialias;if(n.every(e=>!e.enabled)){r.skip=true;return}let s=r.bounds;if(this._calculateFilterArea(e,s),this._calculateFilterBounds(r,t.renderTarget.rootViewPort,o,a,1),r.skip)return;let c=this._getPreviousFilterData(),l=this._findFilterResolution(a),u=0,d=0;c&&(u=c.bounds.minX,d=c.bounds.minY),this._calculateGlobalFrame(r,u,d,l,i.width,i.height),this._setupFilterTextures(r,s,t,c);}generateFilteredTexture({texture:e,filters:t}){let n=this._pushFilterData();this._activeFilterData=n,n.skip=false,n.filters=t;let r=e.source,i=r.resolution,a=r.antialias;if(t.every(e=>!e.enabled))return n.skip=true,e;let o=n.bounds;if(o.addRect(e.frame),this._calculateFilterBounds(n,o.rectangle,a,i,0),n.skip)return e;let s=i;this._calculateGlobalFrame(n,0,0,s,r.width,r.height),n.outputRenderSurface=Ot$2.getOptimalTexture(o.width,o.height,n.resolution,n.antialias),n.backTexture=O.EMPTY,n.inputTexture=e,this.renderer.renderTarget.finishRenderPass(),this._applyFiltersToTexture(n,true);let c=n.outputRenderSurface;return c.source.alphaMode=`premultiplied-alpha`,c}pop(){let e=this.renderer,t=this._popFilterData();t.skip||(e.globalUniforms.pop(),e.renderTarget.finishRenderPass(),this._activeFilterData=t,this._applyFiltersToTexture(t,false),t.blendRequired&&Ot$2.returnTexture(t.backTexture),Ot$2.returnTexture(t.inputTexture));}getBackTexture(e,t,n){let r=e.colorTexture.source._resolution,i=Ot$2.getOptimalTexture(t.width,t.height,r,false),a=t.minX,o=t.minY;n&&(a-=n.minX,o-=n.minY),a=Math.floor(a*r),o=Math.floor(o*r);let s=Math.ceil(t.width*r),c=Math.ceil(t.height*r);return this.renderer.renderTarget.copyToTexture(e,i,{x:a,y:o},{width:s,height:c},{x:0,y:0}),i}applyFilter(e,t,n,r){let i=this.renderer,a=this._activeFilterData,o=a.outputRenderSurface===n,s=i.renderTarget.rootRenderTarget.colorTexture.source._resolution,c=this._findFilterResolution(s),l=0,u=0;if(o){let e=this._findPreviousFilterOffset();l=e.x,u=e.y;}this._updateFilterUniforms(t,n,a,l,u,c,o,r);let d=e.enabled?e:this._getPassthroughFilter();this._setupBindGroupsAndRender(d,t,i);}calculateSpriteMatrix(e,t){let n=this._activeFilterData,r=e.set(n.inputTexture._source.width,0,0,n.inputTexture._source.height,n.bounds.minX,n.bounds.minY),i=t.worldTransform.copyTo(p.shared),a=t.renderGroup||t.parentRenderGroup;return a&&a.cacheToLocalTransform&&i.prepend(a.cacheToLocalTransform),i.invert(),r.prepend(i),r.scale(1/t.texture.orig.width,1/t.texture.orig.height),r.translate(t.anchor.x,t.anchor.y),r}destroy(){this._passthroughFilter?.destroy(true),this._passthroughFilter=null;}_getPassthroughFilter(){return this._passthroughFilter??=new Er,this._passthroughFilter}_setupBindGroupsAndRender(e,t,n){if(n.renderPipes.uniformBatch){let e=n.renderPipes.uniformBatch.getUboResource(this._filterGlobalUniforms);this._globalFilterBindGroup.setResource(e,0);}else this._globalFilterBindGroup.setResource(this._filterGlobalUniforms,0);this._globalFilterBindGroup.setResource(t.source,1),this._globalFilterBindGroup.setResource(t.source.style,2),e.groups[0]=this._globalFilterBindGroup,n.encoder.draw({geometry:Ar,shader:e,state:e._state,topology:`triangle-list`}),n.type===wn$2.WEBGL&&n.renderTarget.finishRenderPass();}_setupFilterTextures(e,t,n,r){if(e.backTexture=O.EMPTY,e.inputTexture=Ot$2.getOptimalTexture(t.width,t.height,e.resolution,e.antialias),e.blendRequired){n.renderTarget.finishRenderPass();let i=n.renderTarget.getRenderTarget(e.outputRenderSurface);e.backTexture=this.getBackTexture(i,t,r?.bounds);}n.renderTarget.bind(e.inputTexture,true),n.globalUniforms.push({offset:t});}_calculateGlobalFrame(e,t,n,r,i,a){let o=e.globalFrame;o.x=t*r,o.y=n*r,o.width=i*r,o.height=a*r;}_updateFilterUniforms(e,t,n,r,i,a,o,s){let c=this._filterGlobalUniforms.uniforms,l=c.uOutputFrame,u=c.uInputSize,d=c.uInputPixel,f=c.uInputClamp,p=c.uGlobalFrame,m=c.uOutputTexture;o?(l[0]=n.bounds.minX-r,l[1]=n.bounds.minY-i):(l[0]=0,l[1]=0),l[2]=e.frame.width,l[3]=e.frame.height,u[0]=e.source.width,u[1]=e.source.height,u[2]=1/u[0],u[3]=1/u[1],d[0]=e.source.pixelWidth,d[1]=e.source.pixelHeight,d[2]=1/d[0],d[3]=1/d[1],f[0]=.5*d[2],f[1]=.5*d[3],f[2]=e.frame.width*u[2]-.5*d[2],f[3]=e.frame.height*u[3]-.5*d[3];let h=this.renderer.renderTarget.rootRenderTarget.colorTexture;p[0]=r*a,p[1]=i*a,p[2]=h.source.width*a,p[3]=h.source.height*a,t instanceof O&&(t.source.resource=null);let g=this.renderer.renderTarget.getRenderTarget(t);this.renderer.renderTarget.bind(t,!!s),t instanceof O?(m[0]=t.frame.width,m[1]=t.frame.height):(m[0]=g.width,m[1]=g.height),m[2]=g.isRoot?-1:1,this._filterGlobalUniforms.update();}_findFilterResolution(e){let t=this._filterStackIndex-1;for(;t>0&&this._filterStack[t].skip;)--t;return t>0&&this._filterStack[t].inputTexture?this._filterStack[t].inputTexture.source._resolution:e}_findPreviousFilterOffset(){let e=0,t=0,n=this._filterStackIndex;for(;n>0;){n--;let r=this._filterStack[n];if(!r.skip){e=r.bounds.minX,t=r.bounds.minY;break}}return {x:e,y:t}}_calculateFilterArea(e,t){if(e.renderables?kr(e.renderables,t):e.filterEffect.filterArea?(t.clear(),t.addRect(e.filterEffect.filterArea),t.applyMatrix(e.container.worldTransform)):e.container.getFastGlobalBounds(true,t),e.container){let n=(e.container.renderGroup||e.container.parentRenderGroup).cacheToLocalTransform;n&&t.applyMatrix(n);}}_applyFiltersToTexture(e,t){let n=e.inputTexture,r=e.bounds,i=e.filters,a=e.firstEnabledIndex,o=e.lastEnabledIndex;if(this._globalFilterBindGroup.setResource(n.source.style,2),this._globalFilterBindGroup.setResource(e.backTexture.source,3),a===o)i[a].apply(this,n,e.outputRenderSurface,t);else {let n=e.inputTexture,s=Ot$2.getOptimalTexture(r.width,r.height,n.source._resolution,false),c=s;for(let e=a;e0&&(t--,e=this._filterStack[t],e.skip););return e}_pushFilterData(){let e=this._filterStack[this._filterStackIndex];return e||=this._filterStack[this._filterStackIndex]=new jr,this._filterStackIndex++,e}};Mr.extension={type:[n.WebGLSystem,n.WebGPUSystem],name:`filter`};var Nr=class e extends It$2{constructor(e){e instanceof Q$1&&(e={context:e});let{context:t,roundPixels:n,...r}=e||{};super({label:`Graphics`,...r}),this.renderPipeId=`graphics`,t?this.context=t:(this.context=this._ownedContext=new Q$1,this.context.autoGarbageCollect=this.autoGarbageCollect),this.didViewUpdate=true,this.allowChildren=false,this.roundPixels=n??false;}set context(e){e!==this._context&&(this._context&&(this._context.off(`update`,this.onViewUpdate,this),this._context.off(`unload`,this.unload,this)),this._context=e,this._context.on(`update`,this.onViewUpdate,this),this._context.on(`unload`,this.unload,this),this.onViewUpdate());}get context(){return this._context}get bounds(){return this._context.bounds}updateBounds(){}containsPoint(e){return this._context.containsPoint(e)}destroy(e){this._ownedContext&&!e?this._ownedContext.destroy(e):(e===true||e?.context===true)&&this._context.destroy(e),this._ownedContext=null,this._context=null,super.destroy(e);}_onTouch(e){this._gcLastUsed=e,this._context._gcLastUsed=e;}_callContextMethod(e,t){return this.context[e](...t),this}setFillStyle(...e){return this._callContextMethod(`setFillStyle`,e)}setStrokeStyle(...e){return this._callContextMethod(`setStrokeStyle`,e)}fill(...e){return this._callContextMethod(`fill`,e)}stroke(...e){return this._callContextMethod(`stroke`,e)}texture(...e){return this._callContextMethod(`texture`,e)}beginPath(){return this._callContextMethod(`beginPath`,[])}cut(){return this._callContextMethod(`cut`,[])}arc(...e){return this._callContextMethod(`arc`,e)}arcTo(...e){return this._callContextMethod(`arcTo`,e)}arcToSvg(...e){return this._callContextMethod(`arcToSvg`,e)}bezierCurveTo(...e){return this._callContextMethod(`bezierCurveTo`,e)}closePath(){return this._callContextMethod(`closePath`,[])}ellipse(...e){return this._callContextMethod(`ellipse`,e)}circle(...e){return this._callContextMethod(`circle`,e)}path(...e){return this._callContextMethod(`path`,e)}lineTo(...e){return this._callContextMethod(`lineTo`,e)}moveTo(...e){return this._callContextMethod(`moveTo`,e)}quadraticCurveTo(...e){return this._callContextMethod(`quadraticCurveTo`,e)}rect(...e){return this._callContextMethod(`rect`,e)}roundRect(...e){return this._callContextMethod(`roundRect`,e)}poly(...e){return this._callContextMethod(`poly`,e)}regularPoly(...e){return this._callContextMethod(`regularPoly`,e)}roundPoly(...e){return this._callContextMethod(`roundPoly`,e)}roundShape(...e){return this._callContextMethod(`roundShape`,e)}filletRect(...e){return this._callContextMethod(`filletRect`,e)}chamferRect(...e){return this._callContextMethod(`chamferRect`,e)}star(...e){return this._callContextMethod(`star`,e)}svg(...e){return this._callContextMethod(`svg`,e)}restore(...e){return this._callContextMethod(`restore`,e)}save(){return this._callContextMethod(`save`,[])}getTransform(){return this.context.getTransform()}resetTransform(){return this._callContextMethod(`resetTransform`,[])}rotateTransform(...e){return this._callContextMethod(`rotate`,e)}scaleTransform(...e){return this._callContextMethod(`scale`,e)}setTransform(...e){return this._callContextMethod(`setTransform`,e)}transform(...e){return this._callContextMethod(`transform`,e)}translateTransform(...e){return this._callContextMethod(`translate`,e)}clear(){return this._callContextMethod(`clear`,[])}get fillStyle(){return this._context.fillStyle}set fillStyle(e){this._context.fillStyle=e;}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(e){this._context.strokeStyle=e;}clone(t=false){return t?new e(this._context.clone()):(this._ownedContext=null,new e(this._context))}lineStyle(e,t,n){E(w,`Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.`);let r={};return e&&(r.width=e),t&&(r.color=t),n&&(r.alpha=n),this.context.strokeStyle=r,this}beginFill(e,t){E(w,`Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.`);let n={};return e!==void 0&&(n.color=e),t!==void 0&&(n.alpha=t),this.context.fillStyle=n,this}endFill(){E(w,`Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.`),this.context.fill();let e=this.context.strokeStyle;return (e.width!==Q$1.defaultStrokeStyle.width||e.color!==Q$1.defaultStrokeStyle.color||e.alpha!==Q$1.defaultStrokeStyle.alpha)&&this.context.stroke(),this}drawCircle(...e){return E(w,`Graphics#drawCircle has been renamed to Graphics#circle`),this._callContextMethod(`circle`,e)}drawEllipse(...e){return E(w,`Graphics#drawEllipse has been renamed to Graphics#ellipse`),this._callContextMethod(`ellipse`,e)}drawPolygon(...e){return E(w,`Graphics#drawPolygon has been renamed to Graphics#poly`),this._callContextMethod(`poly`,e)}drawRect(...e){return E(w,`Graphics#drawRect has been renamed to Graphics#rect`),this._callContextMethod(`rect`,e)}drawRoundedRect(...e){return E(w,`Graphics#drawRoundedRect has been renamed to Graphics#roundRect`),this._callContextMethod(`roundRect`,e)}drawStar(...e){return E(w,`Graphics#drawStar has been renamed to Graphics#star`),this._callContextMethod(`star`,e)}},Pr=class e extends Ar$1{constructor(...t){let n=t[0]??{};n instanceof Float32Array&&(E(w,`use new MeshGeometry({ positions, uvs, indices }) instead`),n={positions:n,uvs:t[1],indices:t[2]}),n={...e.defaultOptions,...n};let r=n.positions||new Float32Array([0,0,1,0,1,1,0,1]),i=n.uvs;i||=n.positions?new Float32Array(r.length):new Float32Array([0,0,1,0,1,1,0,1]);let a=n.indices||new Uint32Array([0,1,2,0,2,3]),o=n.shrinkBuffersToFit,s=new Q$2({data:r,label:`attribute-mesh-positions`,shrinkToFit:o,usage:Z$2.VERTEX|Z$2.COPY_DST}),c=new Q$2({data:i,label:`attribute-mesh-uvs`,shrinkToFit:o,usage:Z$2.VERTEX|Z$2.COPY_DST}),l=new Q$2({data:a,label:`index-mesh-buffer`,shrinkToFit:o,usage:Z$2.INDEX|Z$2.COPY_DST});super({attributes:{aPosition:{buffer:s,format:`float32x2`,stride:8,offset:0},aUV:{buffer:c,format:`float32x2`,stride:8,offset:0}},indexBuffer:l,topology:n.topology}),this.batchMode=`auto`;}get positions(){return this.attributes.aPosition.buffer.data}set positions(e){this.attributes.aPosition.buffer.data=e;}get uvs(){return this.attributes.aUV.buffer.data}set uvs(e){this.attributes.aUV.buffer.data=e;}get indices(){return this.indexBuffer.data}set indices(e){this.indexBuffer.data=e;}};Pr.defaultOptions={topology:`triangle-list`,shrinkBuffersToFit:false};var Fr=Pr,Ir=null,$$2=null;function Lr(e,t){Ir||(Ir=zt$2.get().createCanvas(256,128),$$2=Ir.getContext(`2d`,{willReadFrequently:true}),$$2.globalCompositeOperation=`copy`,$$2.globalAlpha=1),(Ir.width${t.cssStyle};
    ${e}
    `,i.setAttribute(`style`,`transform-origin: top left; display: inline-block`),n&&(a.textContent=n),document.body.appendChild(o);let s=i.getBoundingClientRect();o.remove();let c=t.padding*2;return {width:s.width-c,height:s.height-c}}var Jr=class{constructor(){this.batches=[],this.batched=false;}destroy(){this.batches.forEach(e=>{I$1.return(e);}),this.batches.length=0;}},Yr=class{constructor(e,t){this.state=Pn$1.for2d(),this.renderer=e,this._adaptor=t,this.renderer.runners.contextChange.add(this),this._managedGraphics=new Si$1({renderer:e,type:`renderable`,priority:-1,name:`graphics`});}contextChange(){this._adaptor.contextChange(this.renderer);}validateRenderable(e){let t=e.context,n=!!e._gpuData,r=this.renderer.graphicsContext.updateGpuContext(t);return !!(r.isBatchable||n!==r.isBatchable)}addRenderable(e,t){let n=this.renderer.graphicsContext.updateGpuContext(e.context);e.didViewUpdate&&this._rebuild(e),n.isBatchable?this._addToBatcher(e,t):(this.renderer.renderPipes.batch.break(t),t.add(e));}updateRenderable(e){let t=this._getGpuDataForRenderable(e).batches;for(let e=0;e{let n=I$1.get(Mt$1);return t.copyTo(n),n.renderable=e,n.roundPixels=i,n});}destroy(){this._managedGraphics.destroy(),this.renderer=null,this._adaptor.destroy(),this._adaptor=null,this.state=null;}};Yr.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`graphics`};var Xr=class e extends Fr{constructor(...e){super({});let t=e[0]??{};typeof t==`number`&&(E(w,`PlaneGeometry constructor changed please use { width, height, verticesX, verticesY } instead`),t={width:t,height:e[1],verticesX:e[2],verticesY:e[3]}),this.build(t);}build(t){t={...e.defaultOptions,...t},this.verticesX=this.verticesX??t.verticesX,this.verticesY=this.verticesY??t.verticesY,this.width=this.width??t.width,this.height=this.height??t.height;let n=this.verticesX*this.verticesY,r=[],i=[],a=[],o=this.verticesX-1,s=this.verticesY-1,c=this.width/o,l=this.height/s;for(let e=0;e`},uColor:{value:new Float32Array([1,1,1,1]),type:`vec4`},uRound:{value:0,type:`f32`}}),this.localUniformsBindGroup=new Cn$2({0:this.localUniforms}),this.renderer=e,this._adaptor=t,this._adaptor.init();}validateRenderable(e){let t=this._getMeshData(e),n=t.batched,r=e.batched;if(t.batched=r,n!==r)return true;if(r){let n=e._geometry;if(n.indices.length!==t.indexSize||n.positions.length!==t.vertexSize)return t.indexSize=n.indices.length,t.vertexSize=n.positions.length,true;let r=this._getBatchableMesh(e);return r.texture.uid!==e._texture.uid&&(r._textureMatrixUpdateId=-1),!r._batcher.checkAndUpdateTexture(r,e._texture)}return false}addRenderable(e,t){let n=this.renderer.renderPipes.batch,r=this._getMeshData(e);if(e.didViewUpdate&&(r.indexSize=e._geometry.indices?.length,r.vertexSize=e._geometry.positions?.length),r.batched){let r=this._getBatchableMesh(e);r.setTexture(e._texture),r.geometry=e._geometry,n.addToBatch(r,t);}else n.break(t),t.add(e);}updateRenderable(e){if(e.batched){let t=this._getBatchableMesh(e);t.setTexture(e._texture),t.geometry=e._geometry,t._batcher.updateElement(t);}}execute(e){if(!e.isRenderable)return;e.state.blendMode=mr$1(e.groupBlendMode,e.texture._source);let t=this.localUniforms;t.uniforms.uTransformMatrix=e.groupTransform,t.uniforms.uRound=this.renderer._roundPixels|e._roundPixels,t.update(),Di$1(e.groupColorAlpha,t.uniforms.uColor,0),this._adaptor.execute(this,e);}_getMeshData(e){var t,n;return (t=e._gpuData)[n=this.renderer.uid]||(t[n]=new $r),e._gpuData[this.renderer.uid].meshData||this._initMeshData(e)}_initMeshData(e){return e._gpuData[this.renderer.uid].meshData={batched:e.batched,indexSize:0,vertexSize:0},e._gpuData[this.renderer.uid].meshData}_getBatchableMesh(e){var t,n;return (t=e._gpuData)[n=this.renderer.uid]||(t[n]=new $r),e._gpuData[this.renderer.uid].batchableMesh||this._initBatchableMesh(e)}_initBatchableMesh(e){let t=new Qr;return t.renderable=e,t.setTexture(e._texture),t.transform=e.groupTransform,t.roundPixels=this.renderer._roundPixels|e._roundPixels,e._gpuData[this.renderer.uid].batchableMesh=t,t}destroy(){this.localUniforms=null,this.localUniformsBindGroup=null,this._adaptor.destroy(),this._adaptor=null,this.renderer=null;}};ei.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`mesh`};var ti=class{execute(e,t){let n=e.state,r=e.renderer,i=t.shader||e.defaultShader;i.resources.uTexture=t.texture._source,i.resources.uniforms=e.localUniforms;let a=r.gl,o=e.getBuffers(t);r.shader.bind(i),r.state.set(n),r.geometry.bind(o.geometry,i.glProgram);let s=o.geometry.indexBuffer.data.BYTES_PER_ELEMENT===2?a.UNSIGNED_SHORT:a.UNSIGNED_INT;a.drawElements(a.TRIANGLES,t.particleChildren.length*6,s,0);}},ni=class{execute(e,t){let n=e.renderer,r=t.shader||e.defaultShader;r.groups[0]=n.renderPipes.uniformBatch.getUniformBindGroup(e.localUniforms,true),r.groups[1]=n.texture.getTextureBindGroup(t.texture);let i=e.state,a=e.getBuffers(t);n.encoder.draw({geometry:a.geometry,shader:t.shader||e.defaultShader,state:i,size:t.particleChildren.length*6});}};function ri(e,t=null){let n=e*6;if(n>65535?t||=new Uint32Array(n):t||=new Uint16Array(n),t.length!==n)throw Error(`Out buffer length is incorrect, got ${t.length} and expected ${n}`);for(let e=0,r=0;ethis._size&&(t=true,this._size=Math.max(e.length,this._size*1.5|0),this.staticAttributeBuffer=new ur$1(this._size*this._staticStride*4*4),this.dynamicAttributeBuffer=new ur$1(this._size*this._dynamicStride*4*4),this.indexBuffer=ri(this._size),this.geometry.indexBuffer.setDataWithSize(this.indexBuffer,this.indexBuffer.byteLength,true));let n=this.dynamicAttributeBuffer;if(this._dynamicUpload(e,n.float32View,n.uint32View),this._dynamicBuffer.setDataWithSize(this.dynamicAttributeBuffer.float32View,e.length*this._dynamicStride*4,true),t){let t=this.staticAttributeBuffer;this._staticUpload(e,t.float32View,t.uint32View),this._staticBuffer.setDataWithSize(t.float32View,e.length*this._staticStride*4,true);}}destroy(){this._staticBuffer.destroy(),this._dynamicBuffer.destroy(),this.geometry.destroy();}};function si(e){let t=[];for(let n in e){let r=e[n];t.push(n,r.code,r.dynamic?`d`:`s`);}return t.join(`_`)}var ci=`varying vec2 vUV; +varying vec4 vColor; + +uniform sampler2D uTexture; + +void main(void){ + vec4 color = texture2D(uTexture, vUV) * vColor; + gl_FragColor = color; +}`,li=`attribute vec2 aVertex; +attribute vec2 aUV; +attribute vec4 aColor; + +attribute vec2 aPosition; +attribute float aRotation; + +uniform mat3 uTranslationMatrix; +uniform float uRound; +uniform vec2 uResolution; +uniform vec4 uColor; + +varying vec2 vUV; +varying vec4 vColor; + +vec2 roundPixels(vec2 position, vec2 targetSize) +{ + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; +} + +void main(void){ + float cosRotation = cos(aRotation); + float sinRotation = sin(aRotation); + float x = aVertex.x * cosRotation - aVertex.y * sinRotation; + float y = aVertex.x * sinRotation + aVertex.y * cosRotation; + + vec2 v = vec2(x, y); + v = v + aPosition; + + gl_Position = vec4((uTranslationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0); + + if(uRound == 1.0) + { + gl_Position.xy = roundPixels(gl_Position.xy, uResolution); + } + + vUV = aUV; + vColor = vec4(aColor.rgb * aColor.a, aColor.a) * uColor; +} +`,ui=` +struct ParticleUniforms { + uTranslationMatrix:mat3x3, + uColor:vec4, + uRound:f32, + uResolution:vec2, +}; + +fn roundPixels(position: vec2, targetSize: vec2) -> vec2 +{ + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; +} + +@group(0) @binding(0) var uniforms: ParticleUniforms; + +@group(1) @binding(0) var uTexture: texture_2d; +@group(1) @binding(1) var uSampler : sampler; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv : vec2, + @location(1) color : vec4, + }; +@vertex +fn mainVertex( + @location(0) aVertex: vec2, + @location(1) aPosition: vec2, + @location(2) aUV: vec2, + @location(3) aColor: vec4, + @location(4) aRotation: f32, +) -> VSOutput { + + let v = vec2( + aVertex.x * cos(aRotation) - aVertex.y * sin(aRotation), + aVertex.x * sin(aRotation) + aVertex.y * cos(aRotation) + ) + aPosition; + + var position = vec4((uniforms.uTranslationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0); + + if(uniforms.uRound == 1.0) { + position = vec4(roundPixels(position.xy, uniforms.uResolution), position.zw); + } + + let vColor = vec4(aColor.rgb * aColor.a, aColor.a) * uniforms.uColor; + + return VSOutput( + position, + aUV, + vColor, + ); +} + +@fragment +fn mainFragment( + @location(0) uv: vec2, + @location(1) color: vec4, + @builtin(position) position: vec4, +) -> @location(0) vec4 { + + var sample = textureSample(uTexture, uSampler, uv) * color; + + return sample; +}`,di=class extends Tn$2{constructor(){let e=cn$1.from({vertex:li,fragment:ci}),t=_n$2.from({fragment:{source:ui,entryPoint:`mainFragment`},vertex:{source:ui,entryPoint:`mainVertex`}});super({glProgram:e,gpuProgram:t,resources:{uTexture:O.WHITE.source,uSampler:new me$1({}),uniforms:{uTranslationMatrix:{value:new p,type:`mat3x3`},uColor:{value:new Ke$3(16777215),type:`vec4`},uRound:{value:1,type:`f32`},uResolution:{value:[0,0],type:`vec2`}}}});}},fi=class{constructor(e,t){this.state=Pn$1.for2d(),this.localUniforms=new Sn$2({uTranslationMatrix:{value:new p,type:`mat3x3`},uColor:{value:new Float32Array(4),type:`vec4`},uRound:{value:1,type:`f32`},uResolution:{value:[0,0],type:`vec2`}}),this.renderer=e,this.adaptor=t,this.defaultShader=new di,this.state=Pn$1.for2d(),this._managedContainers=new Si$1({renderer:e,type:`renderable`,name:`particleContainer`});}validateRenderable(e){return false}addRenderable(e,t){this.renderer.renderPipes.batch.break(t),t.add(e);}getBuffers(e){return e._gpuData[this.renderer.uid]||this._initBuffer(e)}_initBuffer(e){return e._gpuData[this.renderer.uid]=new oi({size:e.particleChildren.length,properties:e._properties}),this._managedContainers.add(e),e._gpuData[this.renderer.uid]}updateRenderable(e){}execute(e){let t=e.particleChildren;if(t.length===0)return;let n=this.renderer,r=this.getBuffers(e);e.texture||=t[0].texture;let i=this.state;r.update(t,e._childrenDirty),e._childrenDirty=false,i.blendMode=mr$1(e.blendMode,e.texture._source);let a=this.localUniforms.uniforms,o=a.uTranslationMatrix;e.worldTransform.copyTo(o),o.prepend(n.globalUniforms.globalUniformData.projectionMatrix),a.uResolution=n.globalUniforms.globalUniformData.resolution,a.uRound=n._roundPixels|e._roundPixels,Di$1(e.groupColorAlpha,a.uColor,0),this.adaptor.execute(this,e);}destroy(){this._managedContainers.destroy(),this.renderer=null,this.defaultShader&&=(this.defaultShader.destroy(),null);}},pi=class extends fi{constructor(e){super(e,new ti);}};pi.extension={type:[n.WebGLPipes],name:`particle`};var mi=class extends fi{constructor(e){super(e,new ni);}};mi.extension={type:[n.WebGPUPipes],name:`particle`};var hi=class e extends Zr{constructor(t={}){t={...e.defaultOptions,...t},super({width:t.width,height:t.height,verticesX:4,verticesY:4}),this.update(t);}update(e){this.width=e.width??this.width,this.height=e.height??this.height,this._originalWidth=e.originalWidth??this._originalWidth,this._originalHeight=e.originalHeight??this._originalHeight,this._leftWidth=e.leftWidth??this._leftWidth,this._rightWidth=e.rightWidth??this._rightWidth,this._topHeight=e.topHeight??this._topHeight,this._bottomHeight=e.bottomHeight??this._bottomHeight,this._anchorX=e.anchor?.x,this._anchorY=e.anchor?.y,this.updateUvs(),this.updatePositions();}updatePositions(){let e=this.positions,{width:t,height:n,_leftWidth:r,_rightWidth:i,_topHeight:a,_bottomHeight:o,_anchorX:s,_anchorY:c}=this,l=r+i,u=t>l?1:t/l,d=a+o,f=n>d?1:n/d,p=Math.min(u,f),m=s*t,h=c*n;e[0]=e[8]=e[16]=e[24]=-m,e[2]=e[10]=e[18]=e[26]=r*p-m,e[4]=e[12]=e[20]=e[28]=t-i*p-m,e[6]=e[14]=e[22]=e[30]=t-m,e[1]=e[3]=e[5]=e[7]=-h,e[9]=e[11]=e[13]=e[15]=a*p-h,e[17]=e[19]=e[21]=e[23]=n-o*p-h,e[25]=e[27]=e[29]=e[31]=n-h,this.getBuffer(`aPosition`).update();}updateUvs(){let e=this.uvs;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1;let t=1/this._originalWidth,n=1/this._originalHeight;e[2]=e[10]=e[18]=e[26]=t*this._leftWidth,e[9]=e[11]=e[13]=e[15]=n*this._topHeight,e[4]=e[12]=e[20]=e[28]=1-t*this._rightWidth,e[17]=e[19]=e[21]=e[23]=1-n*this._bottomHeight,this.getBuffer(`aUV`).update();}};hi.defaultOptions={width:100,height:100,leftWidth:10,topHeight:10,rightWidth:10,bottomHeight:10,originalWidth:100,originalHeight:100};var gi=hi,_i=class extends Qr{constructor(){super(),this.geometry=new gi;}destroy(){this.geometry.destroy();}},vi=class{constructor(e){this._renderer=e,this._managedSprites=new Si$1({renderer:e,type:`renderable`,name:`nineSliceSprite`});}addRenderable(e,t){let n=this._getGpuSprite(e);e.didViewUpdate&&this._updateBatchableSprite(e,n),this._renderer.renderPipes.batch.addToBatch(n,t);}updateRenderable(e){let t=this._getGpuSprite(e);e.didViewUpdate&&this._updateBatchableSprite(e,t),t._batcher.updateElement(t);}validateRenderable(e){let t=this._getGpuSprite(e);return !t._batcher.checkAndUpdateTexture(t,e._texture)}_updateBatchableSprite(e,t){t.geometry.update(e),t.setTexture(e._texture);}_getGpuSprite(e){return e._gpuData[this._renderer.uid]||this._initGPUSprite(e)}_initGPUSprite(e){let t=e._gpuData[this._renderer.uid]=new _i,n=t;return n.renderable=e,n.transform=e.groupTransform,n.texture=e._texture,n.roundPixels=this._renderer._roundPixels|e._roundPixels,this._managedSprites.add(e),e.didViewUpdate||this._updateBatchableSprite(e,n),t}destroy(){this._managedSprites.destroy(),this._renderer=null;}};vi.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`nineSliceSprite`};var yi={name:`tiling-bit`,vertex:{header:` + struct TilingUniforms { + uMapCoord:mat3x3, + uClampFrame:vec4, + uClampOffset:vec2, + uTextureTransform:mat3x3, + uSizeAnchor:vec4 + }; + + @group(2) @binding(0) var tilingUniforms: TilingUniforms; + @group(2) @binding(1) var uTexture: texture_2d; + @group(2) @binding(2) var uSampler: sampler; + `,main:` + uv = (tilingUniforms.uTextureTransform * vec3(uv, 1.0)).xy; + + position = (position - tilingUniforms.uSizeAnchor.zw) * tilingUniforms.uSizeAnchor.xy; + `},fragment:{header:` + struct TilingUniforms { + uMapCoord:mat3x3, + uClampFrame:vec4, + uClampOffset:vec2, + uTextureTransform:mat3x3, + uSizeAnchor:vec4 + }; + + @group(2) @binding(0) var tilingUniforms: TilingUniforms; + @group(2) @binding(1) var uTexture: texture_2d; + @group(2) @binding(2) var uSampler: sampler; + `,main:` + + var coord = vUV + ceil(tilingUniforms.uClampOffset - vUV); + coord = (tilingUniforms.uMapCoord * vec3(coord, 1.0)).xy; + var unclamped = coord; + coord = clamp(coord, tilingUniforms.uClampFrame.xy, tilingUniforms.uClampFrame.zw); + + var bias = 0.; + + if(unclamped.x == coord.x && unclamped.y == coord.y) + { + bias = -32.; + } + + outColor = textureSampleBias(uTexture, uSampler, coord, bias); + `}},bi={name:`tiling-bit`,vertex:{header:` + uniform mat3 uTextureTransform; + uniform vec4 uSizeAnchor; + + `,main:` + uv = (uTextureTransform * vec3(aUV, 1.0)).xy; + + position = (position - uSizeAnchor.zw) * uSizeAnchor.xy; + `},fragment:{header:` + uniform sampler2D uTexture; + uniform mat3 uMapCoord; + uniform vec4 uClampFrame; + uniform vec2 uClampOffset; + `,main:` + + vec2 coord = vUV + ceil(uClampOffset - vUV); + coord = (uMapCoord * vec3(coord, 1.0)).xy; + vec2 unclamped = coord; + coord = clamp(coord, uClampFrame.xy, uClampFrame.zw); + + outColor = texture(uTexture, coord, unclamped == coord ? 0.0 : -32.0);// lod-bias very negative to force lod 0 + + `}},xi,Si,Ci=class extends Tn$2{constructor(){xi??=ri$1({name:`tiling-sprite-shader`,bits:[Ci$1,yi,mi$1]}),Si??=ii$1({name:`tiling-sprite-shader`,bits:[Ti$1,bi,hi$1]});let e=new Sn$2({uMapCoord:{value:new p,type:`mat3x3`},uClampFrame:{value:new Float32Array([0,0,1,1]),type:`vec4`},uClampOffset:{value:new Float32Array([0,0]),type:`vec2`},uTextureTransform:{value:new p,type:`mat3x3`},uSizeAnchor:{value:new Float32Array([100,100,.5,.5]),type:`vec4`}});super({glProgram:Si,gpuProgram:xi,resources:{localUniforms:new Sn$2({uTransformMatrix:{value:new p,type:`mat3x3`},uColor:{value:new Float32Array([1,1,1,1]),type:`vec4`},uRound:{value:0,type:`f32`}}),tilingUniforms:e,uTexture:O.EMPTY.source,uSampler:O.EMPTY.source.style}});}updateUniforms(e,t,n,r,i,a){let o=this.resources.tilingUniforms,s=a.width,c=a.height,l=a.textureMatrix,u=o.uniforms.uTextureTransform;u.set(n.a*s/e,n.b*s/t,n.c*c/e,n.d*c/t,n.tx/e,n.ty/t),u.invert(),o.uniforms.uMapCoord=l.mapCoord,o.uniforms.uClampFrame=l.uClampFrame,o.uniforms.uClampOffset=l.uClampOffset,o.uniforms.uTextureTransform=u,o.uniforms.uSizeAnchor[0]=e,o.uniforms.uSizeAnchor[1]=t,o.uniforms.uSizeAnchor[2]=r,o.uniforms.uSizeAnchor[3]=i,a&&(this.resources.uTexture=a.source,this.resources.uSampler=a.source.style);}},wi=class extends Fr{constructor(){super({positions:new Float32Array([0,0,1,0,1,1,0,1]),uvs:new Float32Array([0,0,1,0,1,1,0,1]),indices:new Uint32Array([0,1,2,0,2,3])});}};function Ti(e,t){let n=e.anchor.x,r=e.anchor.y;t[0]=-n*e.width,t[1]=-r*e.height,t[2]=(1-n)*e.width,t[3]=-r*e.height,t[4]=(1-n)*e.width,t[5]=(1-r)*e.height,t[6]=-n*e.width,t[7]=(1-r)*e.height;}function Ei(e,t,n,r){let i=0,a=e.length/(t),o=r.a,s=r.b,c=r.c,l=r.d,u=r.tx,d=r.ty;for(n*=t;i, + uTransformMatrix:mat3x3, + uDistance: f32, + uRound:f32, + } + + @group(2) @binding(0) var localUniforms : LocalUniforms; + `,main:` + vColor *= localUniforms.uColor; + modelMatrix *= localUniforms.uTransformMatrix; + `,end:` + if(localUniforms.uRound == 1) + { + vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw); + } + `},fragment:{header:` + struct LocalUniforms { + uColor:vec4, + uTransformMatrix:mat3x3, + uDistance: f32 + } + + @group(2) @binding(0) var localUniforms : LocalUniforms; + `,main:` + outColor = vec4(calculateMSDFAlpha(outColor, localUniforms.uColor, localUniforms.uDistance)); + `}},Mi={name:`local-uniform-msdf-bit`,vertex:{header:` + uniform mat3 uTransformMatrix; + uniform vec4 uColor; + uniform float uRound; + `,main:` + vColor *= uColor; + modelMatrix *= uTransformMatrix; + `,end:` + if(uRound == 1.) + { + gl_Position.xy = roundPixels(gl_Position.xy, uResolution); + } + `},fragment:{header:` + uniform float uDistance; + `,main:` + outColor = vec4(calculateMSDFAlpha(outColor, vColor, uDistance)); + `}},Ni={name:`msdf-bit`,fragment:{header:` + fn calculateMSDFAlpha(msdfColor:vec4, shapeColor:vec4, distance:f32) -> f32 { + + // MSDF + var median = msdfColor.r + msdfColor.g + msdfColor.b - + min(msdfColor.r, min(msdfColor.g, msdfColor.b)) - + max(msdfColor.r, max(msdfColor.g, msdfColor.b)); + + // SDF + median = min(median, msdfColor.a); + + var screenPxDistance = distance * (median - 0.5); + var alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0); + if (median < 0.01) { + alpha = 0.0; + } else if (median > 0.99) { + alpha = 1.0; + } + + // Gamma correction for coverage-like alpha + var luma: f32 = dot(shapeColor.rgb, vec3(0.299, 0.587, 0.114)); + var gamma: f32 = mix(1.0, 1.0 / 2.2, luma); + var coverage: f32 = pow(shapeColor.a * alpha, gamma); + + return coverage; + + } + `}},Pi={name:`msdf-bit`,fragment:{header:` + float calculateMSDFAlpha(vec4 msdfColor, vec4 shapeColor, float distance) { + + // MSDF + float median = msdfColor.r + msdfColor.g + msdfColor.b - + min(msdfColor.r, min(msdfColor.g, msdfColor.b)) - + max(msdfColor.r, max(msdfColor.g, msdfColor.b)); + + // SDF + median = min(median, msdfColor.a); + + float screenPxDistance = distance * (median - 0.5); + float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0); + + if (median < 0.01) { + alpha = 0.0; + } else if (median > 0.99) { + alpha = 1.0; + } + + // Gamma correction for coverage-like alpha + float luma = dot(shapeColor.rgb, vec3(0.299, 0.587, 0.114)); + float gamma = mix(1.0, 1.0 / 2.2, luma); + float coverage = pow(shapeColor.a * alpha, gamma); + + return coverage; + } + `}},Fi,Ii,Li=class extends Tn$2{constructor(e){let t=new Sn$2({uColor:{value:new Float32Array([1,1,1,1]),type:`vec4`},uTransformMatrix:{value:new p,type:`mat3x3`},uDistance:{value:4,type:`f32`},uRound:{value:0,type:`f32`}});Fi??=ri$1({name:`sdf-shader`,bits:[ai$1,ui$1(e),ji,Ni,mi$1]}),Ii??=ii$1({name:`sdf-shader`,bits:[oi$1,pi$1(e),Mi,Pi,hi$1]}),super({glProgram:Ii,gpuProgram:Fi,resources:{localUniforms:t,batchSamplers:_i$1(e)}});}},Ri=class extends Nr{destroy(){this.context.customShader&&this.context.customShader.destroy(),super.destroy();}},zi=class{constructor(e){this._renderer=e,this._managedBitmapTexts=new Si$1({renderer:e,type:`renderable`,priority:-2,name:`bitmapText`});}validateRenderable(e){let t=this._getGpuBitmapText(e);return this._renderer.renderPipes.graphics.validateRenderable(t)}addRenderable(e,t){let n=this._getGpuBitmapText(e);Bi(e,n),e._didTextUpdate&&(e._didTextUpdate=false,this._updateContext(e,n)),this._renderer.renderPipes.graphics.addRenderable(n,t),n.context.customShader&&this._updateDistanceField(e);}updateRenderable(e){let t=this._getGpuBitmapText(e);Bi(e,t),this._renderer.renderPipes.graphics.updateRenderable(t),t.context.customShader&&this._updateDistanceField(e);}_updateContext(e,t){let{context:n}=t,r=Sr.getFont(e.text,e._style);n.clear(),r.distanceField.type!==`none`&&(n.customShader||=new Li(this._renderer.limits.maxBatchableTextures));let i=Y$1.graphemeSegmenter(e.text),a=e._style,o=r.baseLineOffset,s=gr(i,a,r,true),c=a.padding,l=s.scale,u=s.width,d=s.height+s.offsetY;a._stroke&&(u+=a._stroke.width/l,d+=a._stroke.width/l),n.translate(-e._anchor._x*u-c,-e._anchor._y*d-c).scale(l,l);let f=r.applyFillAsTint?a._fill.color:16777215,p=r.fontMetrics.fontSize,m=r.lineHeight;a.lineHeight&&(p=a.fontSize/l,m=a.lineHeight/l);let h=(m-p)/2;h-r.baseLineOffset<0&&(h=0);for(let e=0;e{console.error(e);}),e._didTextUpdate=false,Hi(n,e);}this._renderer.renderPipes.batch.addToBatch(n,t);}updateRenderable(e){let t=this._getGpuText(e);t._batcher.updateElement(t);}async _updateGpuText(e){e._didTextUpdate=false;let t=this._getGpuText(e);if(t.generatingTexture)return;let n=t.texturePromise;t.texturePromise=null,t.generatingTexture=true,e._resolution=e._autoResolution?this._renderer.resolution:e.resolution;let r=this._renderer.htmlText.getTexturePromise(e);n&&(r=r.finally(()=>{this._renderer.htmlText.decreaseReferenceCount(t.currentKey),this._renderer.htmlText.returnTexturePromise(n);})),t.texturePromise=r,t.currentKey=e.styleKey,t.texture=await r;let i=e.renderGroup||e.parentRenderGroup;i&&(i.structureDidChange=true),t.generatingTexture=false,Hi(t,e);}_getGpuText(e){return e._gpuData[this._renderer.uid]||this.initGpuText(e)}initGpuText(e){let t=new Vi;return t.renderable=e,t.transform=e.groupTransform,t.texture=O.EMPTY,t.bounds={minX:0,maxX:1,minY:0,maxY:0},t.roundPixels=this._renderer._roundPixels|e._roundPixels,e._resolution=e._autoResolution?this._renderer.resolution:e.resolution,e._gpuData[this._renderer.uid]=t,this._managedTexts.add(e),t}onTextUnload(e){let t=e._gpuData[this._renderer.uid];if(!t)return;let{htmlText:n}=this._renderer;n.getReferenceCount(t.currentKey)===null?n.returnTexturePromise(t.texturePromise):n.decreaseReferenceCount(t.currentKey);}destroy(){this._managedTexts.destroy(),this._renderer=null;}};Ui.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`htmlText`};function Wi(){let{userAgent:e}=zt$2.get().getNavigator();return /^((?!chrome|android).)*safari/i.test(e)}var Gi=new k;function Ki(e,t,n,r){let i=Gi;i.minX=0,i.minY=0,i.maxX=e.width/r|0,i.maxY=e.height/r|0;let a=Ot$2.getOptimalTexture(i.width,i.height,r,false);return a.source.uploadMethodId=`image`,a.source.resource=e,a.source.alphaMode=`premultiply-alpha-on-upload`,a.frame.width=t/r,a.frame.height=n/r,a.source.emit(`update`,a.source),a.updateUvs(),a}function qi(e,t){let n=t.fontFamily,r=[],i={},a=e.match(/font-family:([^;"\s]+)/g);function o(e){i[e]||(r.push(e),i[e]=true);}if(Array.isArray(n))for(let e=0;e{o(e.split(`:`)[1].trim());});for(let e in t.tagStyles){let n=t.tagStyles[e].fontFamily;o(n);}return r}async function Ji(e){let t=await(await zt$2.get().fetch(e)).blob(),n=new FileReader;return await new Promise((e,r)=>{n.onloadend=()=>e(n.result),n.onerror=r,n.readAsDataURL(t);})}async function Yi(e,t){let n=await Ji(t);return `@font-face { + font-family: "${e.fontFamily}"; + font-weight: ${e.fontWeight}; + font-style: ${e.fontStyle}; + src: url('${n}'); + }`}var Xi=new Map;async function Zi(e){let t=e.filter(e=>K$1.has(`${e}-and-url`)).map(e=>{if(!Xi.has(e)){let{entries:t}=K$1.get(`${e}-and-url`),n=[];t.forEach(t=>{let r=t.url,i=t.faces.map(e=>({weight:e.weight,style:e.style}));n.push(...i.map(t=>Yi({fontWeight:t.weight,fontStyle:t.style,fontFamily:e},r)));}),Xi.set(e,Promise.all(n).then(e=>e.join(` +`)));}return Xi.get(e)});return (await Promise.all(t)).join(` +`)}function Qi(e,t,n,r,i){let{domElement:a,styleElement:o,svgRoot:s}=i;a.innerHTML=`
    ${e}
    `,a.setAttribute(`style`,`transform: scale(${n});transform-origin: top left; display: inline-block`),o.textContent=r;let{width:c,height:l}=i.image;return s.setAttribute(`width`,c.toString()),s.setAttribute(`height`,l.toString()),new XMLSerializer().serializeToString(s)}function $i(e,t){let n=c.getOptimalCanvasAndContext(e.width,e.height,t),{context:r}=n;return r.clearRect(0,0,e.width,e.height),r.drawImage(e,0,0),n}function ea(e,t,n){return new Promise(async r=>{n&&await new Promise(e=>setTimeout(e,100)),e.onload=()=>{r();},e.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(t)}`,e.crossOrigin=`anonymous`;})}var ta=class{constructor(e){this._activeTextures={},this._renderer=e,this._createCanvas=e.type===wn$2.WEBGPU;}getTexture(e){return this.getTexturePromise(e)}getManagedTexture(e){let t=e.styleKey;if(this._activeTextures[t])return this._increaseReferenceCount(t),this._activeTextures[t].promise;let n=this._buildTexturePromise(e).then(e=>(this._activeTextures[t].texture=e,e));return this._activeTextures[t]={texture:null,promise:n,usageCount:1},n}getReferenceCount(e){return this._activeTextures[e]?.usageCount??null}_increaseReferenceCount(e){this._activeTextures[e].usageCount++;}decreaseReferenceCount(e){let t=this._activeTextures[e];t&&(t.usageCount--,t.usageCount===0&&(t.texture?this._cleanUp(t.texture):t.promise.then(e=>{t.texture=e,this._cleanUp(t.texture);}).catch(()=>{Xe$3(`HTMLTextSystem: Failed to clean texture`);}),this._activeTextures[e]=null));}getTexturePromise(e){return this._buildTexturePromise(e)}async _buildTexturePromise(e){let{text:t,style:n,resolution:r,textureStyle:i}=e,a=I$1.get(Gr),o=qi(t,n),s=await Zi(o),c$1=qr(t,n,s,a),l=Math.ceil(Math.ceil(Math.max(1,c$1.width)+n.padding*2)*r),u=Math.ceil(Math.ceil(Math.max(1,c$1.height)+n.padding*2)*r),d=a.image;d.width=(l|0)+2,d.height=(u|0)+2,await ea(d,Qi(t,n,r,s,a),Wi()&&o.length>0);let f=d,p;this._createCanvas&&(p=$i(d,r));let m=Ki(p?p.canvas:f,d.width-2,d.height-2,r);return i&&(m.source.style=i),this._createCanvas&&(this._renderer.texture.initSource(m.source),c.returnCanvasAndContext(p)),I$1.return(a),m}returnTexturePromise(e){e.then(e=>{this._cleanUp(e);}).catch(()=>{Xe$3(`HTMLTextSystem: Failed to clean texture`);});}_cleanUp(e){Ot$2.returnTexture(e,true),e.source.resource=null,e.source.uploadMethodId=`unknown`;}destroy(){this._renderer=null;for(let e in this._activeTextures)this._activeTextures[e]&&this.returnTexturePromise(this._activeTextures[e].promise);this._activeTextures=null;}};ta.extension={type:[n.WebGLSystem,n.WebGPUSystem,n.CanvasSystem],name:`htmlText`};var na=class extends Ei$1{},ra=class{constructor(e){this._renderer=e,e.runners.resolutionChange.add(this),this._managedTexts=new Si$1({renderer:e,type:`renderable`,onUnload:this.onTextUnload.bind(this),name:`canvasText`});}resolutionChange(){for(let e in this._managedTexts.items){let t=this._managedTexts.items[e];t?._autoResolution&&t.onViewUpdate();}}validateRenderable(e){let t=this._getGpuText(e),n=e.styleKey;return t.currentKey===n?e._didTextUpdate:true}addRenderable(e,t){let n=this._getGpuText(e);if(e._didTextUpdate){let t=e._autoResolution?this._renderer.resolution:e.resolution;(n.currentKey!==e.styleKey||e.resolution!==t)&&this._updateGpuText(e),e._didTextUpdate=false,Hi(n,e);}this._renderer.renderPipes.batch.addToBatch(n,t);}updateRenderable(e){let t=this._getGpuText(e);t._batcher.updateElement(t);}_updateGpuText(e){let t=this._getGpuText(e);t.texture&&this._renderer.canvasText.decreaseReferenceCount(t.currentKey),e._resolution=e._autoResolution?this._renderer.resolution:e.resolution,t.texture=this._renderer.canvasText.getManagedTexture(e),t.currentKey=e.styleKey;}_getGpuText(e){return e._gpuData[this._renderer.uid]||this.initGpuText(e)}initGpuText(e){let t=new na;return t.currentKey=`--`,t.renderable=e,t.transform=e.groupTransform,t.bounds={minX:0,maxX:1,minY:0,maxY:0},t.roundPixels=this._renderer._roundPixels|e._roundPixels,e._gpuData[this._renderer.uid]=t,this._managedTexts.add(e),t}onTextUnload(e){let t=e._gpuData[this._renderer.uid];if(!t)return;let{canvasText:n}=this._renderer;n.getReferenceCount(t.currentKey)>0?n.decreaseReferenceCount(t.currentKey):t.texture&&n.returnTexture(t.texture);}destroy(){this._managedTexts.destroy(),this._renderer=null;}};ra.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`text`};var ia=class{constructor(e){this._activeTextures={},this._renderer=e;}getTexture(e,t,n,r){typeof e==`string`&&(E(`8.0.0`,`CanvasTextSystem.getTexture: Use object TextOptions instead of separate arguments`),e={text:e,style:n,resolution:t}),e.style instanceof ur||(e.style=new ur(e.style)),e.textureStyle instanceof me$1||(e.textureStyle=new me$1(e.textureStyle)),typeof e.text!=`string`&&(e.text=e.text.toString());let{text:i,style:a,textureStyle:o}=e,s=e.resolution??this._renderer.resolution,{frame:c,canvasAndContext:l}=Hr.getCanvasAndContext({text:i,style:a,resolution:s}),u=Ki(l.canvas,c.width,c.height,s);if(o&&(u.source.style=o),a.trim&&(c.pad(a.padding),u.frame.copyFrom(c),u.frame.scale(1/s),u.updateUvs()),a.filters){let e=this._applyFilters(u,a.filters);return this.returnTexture(u),Hr.returnCanvasAndContext(l),e}return this._renderer.texture.initSource(u._source),Hr.returnCanvasAndContext(l),u}returnTexture(e){let t=e.source;t.resource=null,t.uploadMethodId=`unknown`,t.alphaMode=`no-premultiply-alpha`,Ot$2.returnTexture(e,true);}renderTextToCanvas(){E(`8.10.0`,`CanvasTextSystem.renderTextToCanvas: no longer supported, use CanvasTextSystem.getTexture instead`);}getManagedTexture(e){e._resolution=e._autoResolution?this._renderer.resolution:e.resolution;let t=e.styleKey;if(this._activeTextures[t])return this._increaseReferenceCount(t),this._activeTextures[t].texture;let n=this.getTexture({text:e.text,style:e.style,resolution:e._resolution,textureStyle:e.textureStyle});return this._activeTextures[t]={texture:n,usageCount:1},n}decreaseReferenceCount(e){let t=this._activeTextures[e];t.usageCount--,t.usageCount===0&&(this.returnTexture(t.texture),this._activeTextures[e]=null);}getReferenceCount(e){return this._activeTextures[e]?.usageCount??0}_increaseReferenceCount(e){this._activeTextures[e].usageCount++;}_applyFilters(e,t){let n=this._renderer.renderTarget.renderTarget,r=this._renderer.filter.generateFilteredTexture({texture:e,filters:t});return this._renderer.renderTarget.bind(n,false),r}destroy(){this._renderer=null;for(let e in this._activeTextures)this._activeTextures[e]&&this.returnTexture(this._activeTextures[e].texture);this._activeTextures=null;}};ia.extension={type:[n.WebGLSystem,n.WebGPUSystem,n.CanvasSystem],name:`canvasText`}; + +var A=[];a$1.handleByNamedList(n.Environment,A);async function pe(e){if(!e)for(let e=0;e(e[e.NONE=0]=`NONE`,e[e.COLOR=16384]=`COLOR`,e[e.STENCIL=1024]=`STENCIL`,e[e.DEPTH=256]=`DEPTH`,e[e.COLOR_DEPTH=16640]=`COLOR_DEPTH`,e[e.COLOR_STENCIL=17408]=`COLOR_STENCIL`,e[e.DEPTH_STENCIL=1280]=`DEPTH_STENCIL`,e[e.ALL=17664]=`ALL`,e))(M||{}),he=class{constructor(e){this.items=[],this._name=e;}emit(e,t,n,r,i,a,o,s){let{name:c,items:l}=this;for(let u=0,d=l.length;u{this.runners[e]=new he(e);});}_addSystems(e){let t;for(t in e){let n=e[t];this._addSystem(n.value,n.name);}}_addSystem(e,t){let n=new e(this);if(this[t])throw Error(`Whoops! The name "${t}" is already in use`);this[t]=n,this._systemsHash[t]=n;for(let e in this.runners)this.runners[e].add(n);return this}_addPipes(e,t){let n=t.reduce((e,t)=>(e[t.name]=t.value,e),{});e.forEach(e=>{let t=e.value,r=e.name,i=n[r];this.renderPipes[r]=new t(this,i?new i:null),this.runners.destroy.add(this.renderPipes[r]);});}destroy(e=false){this.runners.destroy.items.reverse(),this.runners.destroy.emit(e),(e===true||typeof e==`object`&&e.releaseGlobalResources)&&Ze$3.release(),Object.values(this.runners).forEach(e=>{e.destroy();}),this._systemsHash=null,this.renderPipes=null;}generateTexture(e){return this.textureGenerator.generateTexture(e)}get roundPixels(){return !!this._roundPixels}_unsafeEvalCheck(){if(!me())throw Error(`Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.`)}resetState(){this.runners.resetState.emit();}};_e.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:false,roundPixels:false};var ve=_e,N=`8.15.0`,P=class{static init(){globalThis.__PIXI_APP_INIT__?.(this,N);}static destroy(){}};P.extension=n.Application;var F=class{constructor(e){this._renderer=e;}init(){globalThis.__PIXI_RENDERER_INIT__?.(this._renderer,N);}destroy(){this._renderer=null;}};F.extension={type:[n.WebGLSystem,n.WebGPUSystem],name:`initHook`,priority:-10};var ye=`in vec2 vMaskCoord; +in vec2 vTextureCoord; + +uniform sampler2D uTexture; +uniform sampler2D uMaskTexture; + +uniform float uAlpha; +uniform vec4 uMaskClamp; +uniform float uInverse; + +out vec4 finalColor; + +void main(void) +{ + float clip = step(3.5, + step(uMaskClamp.x, vMaskCoord.x) + + step(uMaskClamp.y, vMaskCoord.y) + + step(vMaskCoord.x, uMaskClamp.z) + + step(vMaskCoord.y, uMaskClamp.w)); + + // TODO look into why this is needed + float npmAlpha = uAlpha; + vec4 original = texture(uTexture, vTextureCoord); + vec4 masky = texture(uMaskTexture, vMaskCoord); + float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a); + + float a = alphaMul * masky.r * npmAlpha * clip; + + if (uInverse == 1.0) { + a = 1.0 - a; + } + + finalColor = original * a; +} +`,be=`in vec2 aPosition; + +out vec2 vTextureCoord; +out vec2 vMaskCoord; + + +uniform vec4 uInputSize; +uniform vec4 uOutputFrame; +uniform vec4 uOutputTexture; +uniform mat3 uFilterMatrix; + +vec4 filterVertexPosition( vec2 aPosition ) +{ + vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy; + + position.x = position.x * (2.0 / uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +vec2 filterTextureCoord( vec2 aPosition ) +{ + return aPosition * (uOutputFrame.zw * uInputSize.zw); +} + +vec2 getFilterCoord( vec2 aPosition ) +{ + return ( uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy; +} + +void main(void) +{ + gl_Position = filterVertexPosition(aPosition); + vTextureCoord = filterTextureCoord(aPosition); + vMaskCoord = getFilterCoord(aPosition); +} +`,I=`struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +struct MaskUniforms { + uFilterMatrix:mat3x3, + uMaskClamp:vec4, + uAlpha:f32, + uInverse:f32, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler : sampler; + +@group(1) @binding(0) var filterUniforms : MaskUniforms; +@group(1) @binding(1) var uMaskTexture: texture_2d; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv : vec2, + @location(1) filterUv : vec2, +}; + +fn filterVertexPosition(aPosition:vec2) -> vec4 +{ + var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy; + + position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +fn filterTextureCoord( aPosition:vec2 ) -> vec2 +{ + return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw); +} + +fn globalTextureCoord( aPosition:vec2 ) -> vec2 +{ + return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw); +} + +fn getFilterCoord(aPosition:vec2 ) -> vec2 +{ + return ( filterUniforms.uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy; +} + +fn getSize() -> vec2 +{ + return gfu.uGlobalFrame.zw; +} + +@vertex +fn mainVertex( + @location(0) aPosition : vec2, +) -> VSOutput { + return VSOutput( + filterVertexPosition(aPosition), + filterTextureCoord(aPosition), + getFilterCoord(aPosition) + ); +} + +@fragment +fn mainFragment( + @location(0) uv: vec2, + @location(1) filterUv: vec2, + @builtin(position) position: vec4 +) -> @location(0) vec4 { + + var maskClamp = filterUniforms.uMaskClamp; + var uAlpha = filterUniforms.uAlpha; + + var clip = step(3.5, + step(maskClamp.x, filterUv.x) + + step(maskClamp.y, filterUv.y) + + step(filterUv.x, maskClamp.z) + + step(filterUv.y, maskClamp.w)); + + var mask = textureSample(uMaskTexture, uSampler, filterUv); + var source = textureSample(uTexture, uSampler, uv); + var alphaMul = 1.0 - uAlpha * (1.0 - mask.a); + + var a: f32 = alphaMul * mask.r * uAlpha * clip; + + if (filterUniforms.uInverse == 1.0) { + a = 1.0 - a; + } + + return source * a; +} +`,xe=class extends In$1{constructor(e){let{sprite:t,...n}=e,r=new ve$1(t.texture),i=new Sn$2({uFilterMatrix:{value:new p,type:`mat3x3`},uMaskClamp:{value:r.uClampFrame,type:`vec4`},uAlpha:{value:1,type:`f32`},uInverse:{value:+!!e.inverse,type:`f32`}}),a=_n$2.from({vertex:{source:I,entryPoint:`mainVertex`},fragment:{source:I,entryPoint:`mainFragment`}}),o=cn$1.from({vertex:be,fragment:ye,name:`mask-filter`});super({...n,gpuProgram:a,glProgram:o,clipToViewport:false,resources:{filterUniforms:i,uMaskTexture:t.texture.source}}),this.sprite=t,this._textureMatrix=r;}set inverse(e){this.resources.filterUniforms.uniforms.uInverse=+!!e;}get inverse(){return this.resources.filterUniforms.uniforms.uInverse===1}apply(e,t,n,r){this._textureMatrix.texture=this.sprite.texture,e.calculateSpriteMatrix(this.resources.filterUniforms.uniforms.uFilterMatrix,this.sprite).prepend(this._textureMatrix.mapCoord),this.resources.uMaskTexture=this.sprite.texture.source,e.applyFilter(this,t,n,r);}},L=class e{constructor(e,t){this.state=Pn$1.for2d(),this._batchersByInstructionSet=Object.create(null),this._activeBatches=Object.create(null),this.renderer=e,this._adaptor=t,this._adaptor.init?.(this);}static getBatcher(e){return new this._availableBatchers[e]}buildStart(e){let t=this._batchersByInstructionSet[e.uid];t||(t=this._batchersByInstructionSet[e.uid]=Object.create(null),t.default||=new xi$1({maxTextures:this.renderer.limits.maxBatchableTextures})),this._activeBatches=t,this._activeBatch=this._activeBatches.default;for(let e in this._activeBatches)this._activeBatches[e].begin();}addToBatch(t,n){if(this._activeBatch.name!==t.batcherName){this._activeBatch.break(n);let r=this._activeBatches[t.batcherName];r||(r=this._activeBatches[t.batcherName]=e.getBatcher(t.batcherName),r.begin()),this._activeBatch=r;}this._activeBatch.add(t);}break(e){this._activeBatch.break(e);}buildEnd(e){this._activeBatch.break(e);let t=this._activeBatches;for(let e in t){let n=t[e],r=n.geometry;r.indexBuffer.setDataWithSize(n.indexBuffer,n.indexSize,true),r.buffers[0].setDataWithSize(n.attributeBuffer.float32View,n.attributeSize,false);}}upload(e){let t=this._batchersByInstructionSet[e.uid];for(let e in t){let n=t[e],r=n.geometry;n.dirty&&(n.dirty=false,r.buffers[0].update(n.attributeSize*4));}}execute(e){if(e.action===`startBatch`){let t=e.batcher,n=t.geometry,r=t.shader;this._adaptor.start(this,n,r);}this._adaptor.execute(this,e);}destroy(){this.state=null,this.renderer=null,this._adaptor=null;for(let e in this._activeBatches)this._activeBatches[e].destroy();this._activeBatches=null;}};L.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`batch`},L._availableBatchers=Object.create(null);var Se=L;a$1.handleByMap(n.Batcher,Se._availableBatchers),a$1.add(xi$1);var Ce={name:`texture-bit`,vertex:{header:` + + struct TextureUniforms { + uTextureMatrix:mat3x3, + } + + @group(2) @binding(2) var textureUniforms : TextureUniforms; + `,main:` + uv = (textureUniforms.uTextureMatrix * vec3(uv, 1.0)).xy; + `},fragment:{header:` + @group(2) @binding(0) var uTexture: texture_2d; + @group(2) @binding(1) var uSampler: sampler; + + + `,main:` + outColor = textureSample(uTexture, uSampler, vUV); + `}},we={name:`texture-bit`,vertex:{header:` + uniform mat3 uTextureMatrix; + `,main:` + uv = (uTextureMatrix * vec3(uv, 1.0)).xy; + `},fragment:{header:` + uniform sampler2D uTexture; + + + `,main:` + outColor = texture(uTexture, vUV); + `}},Te=new k,Ee=class extends rt$3{constructor(){super(),this.filters=[new xe({sprite:new Lt$2(O.EMPTY),inverse:false,resolution:`inherit`,antialias:`inherit`})];}get sprite(){return this.filters[0].sprite}set sprite(e){this.filters[0].sprite=e;}get inverse(){return this.filters[0].inverse}set inverse(e){this.filters[0].inverse=e;}},De=class{constructor(e){this._activeMaskStage=[],this._renderer=e;}push(e,t,n){let r=this._renderer;if(r.renderPipes.batch.break(n),n.add({renderPipeId:`alphaMask`,action:`pushMaskBegin`,mask:e,inverse:t._maskOptions.inverse,canBundle:false,maskedContainer:t}),e.inverse=t._maskOptions.inverse,e.renderMaskToTexture){let t=e.mask;t.includeInBuild=true,t.collectRenderables(n,r,null),t.includeInBuild=false;}r.renderPipes.batch.break(n),n.add({renderPipeId:`alphaMask`,action:`pushMaskEnd`,mask:e,maskedContainer:t,inverse:t._maskOptions.inverse,canBundle:false});}pop(e,t,n){this._renderer.renderPipes.batch.break(n),n.add({renderPipeId:`alphaMask`,action:`popMaskEnd`,mask:e,inverse:t._maskOptions.inverse,canBundle:false});}execute(e){let t=this._renderer,n=e.mask.renderMaskToTexture;if(e.action===`pushMaskBegin`){let r=I$1.get(Ee);if(r.inverse=e.inverse,n){e.mask.mask.measurable=true;let n=lt$3(e.mask.mask,true,Te);e.mask.mask.measurable=false,n.ceil();let i=t.renderTarget.renderTarget.colorTexture.source,a=Ot$2.getOptimalTexture(n.width,n.height,i._resolution,i.antialias);t.renderTarget.push(a,true),t.globalUniforms.push({offset:n,worldColor:4294967295});let o=r.sprite;o.texture=a,o.worldTransform.tx=n.minX,o.worldTransform.ty=n.minY,this._activeMaskStage.push({filterEffect:r,maskedContainer:e.maskedContainer,filterTexture:a});}else r.sprite=e.mask.mask,this._activeMaskStage.push({filterEffect:r,maskedContainer:e.maskedContainer});}else if(e.action===`pushMaskEnd`){let e=this._activeMaskStage[this._activeMaskStage.length-1];n&&(t.type===wn$2.WEBGL&&t.renderTarget.finishRenderPass(),t.renderTarget.pop(),t.globalUniforms.pop()),t.filter.push({renderPipeId:`filter`,action:`pushFilter`,container:e.maskedContainer,filterEffect:e.filterEffect,canBundle:false});}else if(e.action===`popMaskEnd`){t.filter.pop();let e=this._activeMaskStage.pop();n&&Ot$2.returnTexture(e.filterTexture),I$1.return(e.filterEffect);}}destroy(){this._renderer=null,this._activeMaskStage=null;}};De.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`alphaMask`};var Oe$1=class Oe{constructor(e){this._colorStack=[],this._colorStackIndex=0,this._currentColor=0,this._renderer=e;}buildStart(){this._colorStack[0]=15,this._colorStackIndex=1,this._currentColor=15;}push(e,t,n){this._renderer.renderPipes.batch.break(n);let r=this._colorStack;r[this._colorStackIndex]=r[this._colorStackIndex-1]&e.mask;let i=this._colorStack[this._colorStackIndex];i!==this._currentColor&&(this._currentColor=i,n.add({renderPipeId:`colorMask`,colorMask:i,canBundle:false})),this._colorStackIndex++;}pop(e,t,n){this._renderer.renderPipes.batch.break(n);let r=this._colorStack;this._colorStackIndex--;let i=r[this._colorStackIndex-1];i!==this._currentColor&&(this._currentColor=i,n.add({renderPipeId:`colorMask`,colorMask:i,canBundle:false}));}execute(e){this._renderer.colorMask.setMask(e.colorMask);}destroy(){this._renderer=null,this._colorStack=null;}};Oe$1.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`colorMask`};var ke$1=class ke{constructor(e){this._maskStackHash={},this._maskHash=new WeakMap,this._renderer=e;}push(e,t,n){var r;let i=e,a=this._renderer;a.renderPipes.batch.break(n),a.renderPipes.blendMode.setBlendMode(i.mask,`none`,n),n.add({renderPipeId:`stencilMask`,action:`pushMaskBegin`,mask:e,inverse:t._maskOptions.inverse,canBundle:false});let o=i.mask;o.includeInBuild=true,this._maskHash.has(i)||this._maskHash.set(i,{instructionsStart:0,instructionsLength:0});let s=this._maskHash.get(i);s.instructionsStart=n.instructionSize,o.collectRenderables(n,a,null),o.includeInBuild=false,a.renderPipes.batch.break(n),n.add({renderPipeId:`stencilMask`,action:`pushMaskEnd`,mask:e,inverse:t._maskOptions.inverse,canBundle:false}),s.instructionsLength=n.instructionSize-s.instructionsStart-1;let c=a.renderTarget.renderTarget.uid;(r=this._maskStackHash)[c]??(r[c]=0);}pop(e,t,n){let r=e,i=this._renderer;i.renderPipes.batch.break(n),i.renderPipes.blendMode.setBlendMode(r.mask,`none`,n),n.add({renderPipeId:`stencilMask`,action:`popMaskBegin`,inverse:t._maskOptions.inverse,canBundle:false});let a=this._maskHash.get(e);for(let e=0;ee.uniformStructures[t]),i=this._adaptor.createUboElements(r),a=this._generateUboSync(i.uboElements);n=this._syncFunctionHash[t]={layout:i,syncFunction:a};}return this._syncFunctionHash[t]}_generateUboSync(e){return this._adaptor.generateUboSync(e)}syncUniformGroup(e,t,n){let r=this.getUniformGroupData(e);e.buffer||=new Q$2({data:new Float32Array(r.layout.size/4),usage:Z$2.UNIFORM|Z$2.COPY_DST});let i=null;return t||(t=e.buffer.data,i=e.buffer.dataInt32),n||=0,r.syncFunction(e.uniforms,t,i,n),true}updateUniformGroup(e){if(e.isStatic&&!e._dirtyId)return false;e._dirtyId=0;let t=this.syncUniformGroup(e);return e.buffer.update(),t}destroy(){this._syncFunctionHash=null;}},z=[{type:`mat3x3`,test:e=>e.value.a!==void 0,ubo:` + var matrix = uv[name].toArray(true); + data[offset] = matrix[0]; + data[offset + 1] = matrix[1]; + data[offset + 2] = matrix[2]; + data[offset + 4] = matrix[3]; + data[offset + 5] = matrix[4]; + data[offset + 6] = matrix[5]; + data[offset + 8] = matrix[6]; + data[offset + 9] = matrix[7]; + data[offset + 10] = matrix[8]; + `,uniform:` + gl.uniformMatrix3fv(ud[name].location, false, uv[name].toArray(true)); + `},{type:`vec4`,test:e=>e.type===`vec4`&&e.size===1&&e.value.width!==void 0,ubo:` + v = uv[name]; + data[offset] = v.x; + data[offset + 1] = v.y; + data[offset + 2] = v.width; + data[offset + 3] = v.height; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height) { + cv[0] = v.x; + cv[1] = v.y; + cv[2] = v.width; + cv[3] = v.height; + gl.uniform4f(ud[name].location, v.x, v.y, v.width, v.height); + } + `},{type:`vec2`,test:e=>e.type===`vec2`&&e.size===1&&e.value.x!==void 0,ubo:` + v = uv[name]; + data[offset] = v.x; + data[offset + 1] = v.y; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.x || cv[1] !== v.y) { + cv[0] = v.x; + cv[1] = v.y; + gl.uniform2f(ud[name].location, v.x, v.y); + } + `},{type:`vec4`,test:e=>e.type===`vec4`&&e.size===1&&e.value.red!==void 0,ubo:` + v = uv[name]; + data[offset] = v.red; + data[offset + 1] = v.green; + data[offset + 2] = v.blue; + data[offset + 3] = v.alpha; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.alpha) { + cv[0] = v.red; + cv[1] = v.green; + cv[2] = v.blue; + cv[3] = v.alpha; + gl.uniform4f(ud[name].location, v.red, v.green, v.blue, v.alpha); + } + `},{type:`vec3`,test:e=>e.type===`vec3`&&e.size===1&&e.value.red!==void 0,ubo:` + v = uv[name]; + data[offset] = v.red; + data[offset + 1] = v.green; + data[offset + 2] = v.blue; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue) { + cv[0] = v.red; + cv[1] = v.green; + cv[2] = v.blue; + gl.uniform3f(ud[name].location, v.red, v.green, v.blue); + } + `}];function Ne$1(e,t,n,r){let i=[` + var v = null; + var v2 = null; + var t = 0; + var index = 0; + var name = null; + var arrayOffset = null; + `],a=0;for(let o=0;o1)u=s.offset/4,i.push(n(s,u-a));else {let e=r[s.data.type];u=s.offset/4,i.push(` + v = uv.${c}; + offset += ${u-a}; + ${e}; + `);}a=u;}let o=i.join(` +`);return Function(`uv`,`data`,`dataInt32`,`offset`,o)}function B(e,t){return ` + for (let i = 0; i < ${e*t}; i++) { + data[offset + (((i / ${e})|0) * 4) + (i % ${e})] = v[i]; + } + `}var Pe$1={f32:` + data[offset] = v;`,i32:` + dataInt32[offset] = v;`,"vec2":` + data[offset] = v[0]; + data[offset + 1] = v[1];`,"vec3":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2];`,"vec4":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2]; + data[offset + 3] = v[3];`,"vec2":` + dataInt32[offset] = v[0]; + dataInt32[offset + 1] = v[1];`,"vec3":` + dataInt32[offset] = v[0]; + dataInt32[offset + 1] = v[1]; + dataInt32[offset + 2] = v[2];`,"vec4":` + dataInt32[offset] = v[0]; + dataInt32[offset + 1] = v[1]; + dataInt32[offset + 2] = v[2]; + dataInt32[offset + 3] = v[3];`,"mat2x2":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 4] = v[2]; + data[offset + 5] = v[3];`,"mat3x3":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2]; + data[offset + 4] = v[3]; + data[offset + 5] = v[4]; + data[offset + 6] = v[5]; + data[offset + 8] = v[6]; + data[offset + 9] = v[7]; + data[offset + 10] = v[8];`,"mat4x4":` + for (let i = 0; i < 16; i++) { + data[offset + i] = v[i]; + }`,"mat3x2":B(3,2),"mat4x2":B(4,2),"mat2x3":B(2,3),"mat4x3":B(4,3),"mat2x4":B(2,4),"mat3x4":B(3,4)},Fe$1={...Pe$1,"mat2x2":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2]; + data[offset + 3] = v[3]; + `};function Ie$1(e,t,n,r,i,a){let o=a?1:-1;return e.identity(),e.a=1/r*2,e.d=o*(1/i*2),e.tx=-1-t*e.a,e.ty=-o-n*e.d,e}var V=new Map;Ze$3.register(V);function Le$1(e,t){if(!V.has(e)){let n=new O({source:new Bt$2({resource:e,...t})}),r=()=>{V.get(e)===n&&V.delete(e);};n.once(`destroy`,r),n.source.once(`destroy`,r),V.set(e,n);}return V.get(e)}function Re$1(e){let t=e.colorTexture.source.resource;return globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement&&document.body.contains(t)}var ze$1=class e{constructor(t={}){if(this.uid=C(`renderTarget`),this.colorTextures=[],this.dirtyId=0,this.isRoot=false,this._size=new Float32Array(2),this._managedColorTextures=false,t={...e.defaultOptions,...t},this.stencil=t.stencil,this.depth=t.depth,this.isRoot=t.isRoot,typeof t.colorTextures==`number`){this._managedColorTextures=true;for(let e=0;ee.source)];let e=this.colorTexture.source;this.resize(e.width,e.height,e._resolution);}this.colorTexture.source.on(`resize`,this.onSourceResize,this),(t.depthStencilTexture||this.stencil)&&(t.depthStencilTexture instanceof O||t.depthStencilTexture instanceof D?this.depthStencilTexture=t.depthStencilTexture.source:this.ensureDepthStencilTexture());}get size(){let e=this._size;return e[0]=this.pixelWidth,e[1]=this.pixelHeight,e}get width(){return this.colorTexture.source.width}get height(){return this.colorTexture.source.height}get pixelWidth(){return this.colorTexture.source.pixelWidth}get pixelHeight(){return this.colorTexture.source.pixelHeight}get resolution(){return this.colorTexture.source._resolution}get colorTexture(){return this.colorTextures[0]}onSourceResize(e){this.resize(e.width,e.height,e._resolution,true);}ensureDepthStencilTexture(){this.depthStencilTexture||=new D({width:this.width,height:this.height,resolution:this.resolution,format:`depth24plus-stencil8`,autoGenerateMipmaps:false,antialias:false,mipLevelCount:1});}resize(e,t,n=this.resolution,r=false){this.dirtyId++,this.colorTextures.forEach((i,a)=>{r&&a===0||i.source.resize(e,t,n);}),this.depthStencilTexture&&this.depthStencilTexture.source.resize(e,t,n);}destroy(){this.colorTexture.source.off(`resize`,this.onSourceResize,this),this._managedColorTextures&&this.colorTextures.forEach(e=>{e.destroy();}),this.depthStencilTexture&&(this.depthStencilTexture.destroy(),delete this.depthStencilTexture);}};ze$1.defaultOptions={width:0,height:0,resolution:1,colorTextures:1,stencil:false,depth:false,antialias:false,isRoot:false};var H=ze$1,Be$1=class Be{constructor(e){this.rootViewPort=new re,this.viewport=new re,this.onRenderTargetChange=new he(`onRenderTargetChange`),this.projectionMatrix=new p,this.defaultClearColor=[0,0,0,0],this._renderSurfaceToRenderTargetHash=new Map,this._gpuRenderTargetHash=Object.create(null),this._renderTargetStack=[],this._renderer=e,e.renderableGC.addManagedHash(this,`_gpuRenderTargetHash`);}finishRenderPass(){this.adaptor.finishRenderPass(this.renderTarget);}renderStart({target:e,clear:t,clearColor:n,frame:r}){this._renderTargetStack.length=0,this.push(e,t,n,r),this.rootViewPort.copyFrom(this.viewport),this.rootRenderTarget=this.renderTarget,this.renderingToScreen=Re$1(this.rootRenderTarget),this.adaptor.prerender?.(this.rootRenderTarget);}postrender(){this.adaptor.postrender?.(this.rootRenderTarget);}bind(e,t=true,n,r){let i=this.getRenderTarget(e),a=this.renderTarget!==i;this.renderTarget=i,this.renderSurface=e;let o=this.getGpuRenderTarget(i);(i.pixelWidth!==o.width||i.pixelHeight!==o.height)&&(this.adaptor.resizeGpuRenderTarget(i),o.width=i.pixelWidth,o.height=i.pixelHeight);let s=i.colorTexture,c=this.viewport,l=s.pixelWidth,u=s.pixelHeight;if(!r&&e instanceof O&&(r=e.frame),r){let e=s._resolution;c.x=r.x*e+.5|0,c.y=r.y*e+.5|0,c.width=r.width*e+.5|0,c.height=r.height*e+.5|0;}else c.x=0,c.y=0,c.width=l,c.height=u;return Ie$1(this.projectionMatrix,0,0,c.width/s.resolution,c.height/s.resolution,!i.isRoot),this.adaptor.startRenderPass(i,t,n,c),a&&this.onRenderTargetChange.emit(i),i}clear(e,t=M.ALL,n){t&&(e&&=this.getRenderTarget(e),this.adaptor.clear(e||this.renderTarget,t,n,this.viewport));}contextChange(){this._gpuRenderTargetHash=Object.create(null);}push(e,t=M.ALL,n,r){let i=this.bind(e,t,n,r);return this._renderTargetStack.push({renderTarget:i,frame:r}),i}pop(){this._renderTargetStack.pop();let e=this._renderTargetStack[this._renderTargetStack.length-1];this.bind(e.renderTarget,false,null,e.frame);}getRenderTarget(e){return e.isTexture&&(e=e.source),this._renderSurfaceToRenderTargetHash.get(e)??this._initRenderTarget(e)}copyToTexture(e,t,n,r,i){n.x<0&&(r.width+=n.x,i.x-=n.x,n.x=0),n.y<0&&(r.height+=n.y,i.y-=n.y,n.y=0);let{pixelWidth:a,pixelHeight:o}=e;return r.width=Math.min(r.width,a-n.x),r.height=Math.min(r.height,o-n.y),this.adaptor.copyToTexture(e,t,n,r,i)}ensureDepthStencil(){this.renderTarget.stencil||(this.renderTarget.stencil=true,this.adaptor.startRenderPass(this.renderTarget,false,null,this.viewport));}destroy(){this._renderer=null,this._renderSurfaceToRenderTargetHash.forEach((e,t)=>{e!==t&&e.destroy();}),this._renderSurfaceToRenderTargetHash.clear(),this._gpuRenderTargetHash=Object.create(null);}_initRenderTarget(e){let t=null;return Bt$2.test(e)&&(e=Le$1(e).source),e instanceof H?t=e:e instanceof D&&(t=new H({colorTextures:[e]}),e.source instanceof Bt$2&&(t.isRoot=true),e.once(`destroy`,()=>{t.destroy(),this._renderSurfaceToRenderTargetHash.delete(e);let n=this._gpuRenderTargetHash[t.uid];n&&(this._gpuRenderTargetHash[t.uid]=null,this.adaptor.destroyGpuRenderTarget(n));})),this._renderSurfaceToRenderTargetHash.set(e,t),t}getGpuRenderTarget(e){return this._gpuRenderTargetHash[e.uid]||(this._gpuRenderTargetHash[e.uid]=this.adaptor.initGpuRenderTarget(e))}resetState(){this.renderTarget=null,this.renderSurface=null;}},Ve$1=class Ve extends s$1{constructor({buffer:e,offset:t,size:n}){super(),this.uid=C(`buffer`),this._resourceType=`bufferResource`,this._touched=0,this._resourceId=C(`resource`),this._bufferResource=true,this.destroyed=false,this.buffer=e,this.offset=t|0,this.size=n,this.buffer.on(`change`,this.onBufferChange,this);}onBufferChange(){this._resourceId=C(`resource`),this.emit(`change`,this);}destroy(e=false){this.destroyed=true,e&&this.buffer.destroy(),this.emit(`change`,this),this.buffer=null,this.removeAllListeners();}},He$1=class He{constructor(e){this._renderer=e;}updateRenderable(){}destroyRenderable(){}validateRenderable(){return false}addRenderable(e,t){this._renderer.renderPipes.batch.break(t),t.add(e);}execute(e){e.isRenderable&&e.render(this._renderer);}destroy(){this._renderer=null;}};He$1.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`customRender`};function U(e,t){let n=e.instructionSet,r=n.instructions;for(let e=0;e1?1:n,e.worldAlpha=n,e.worldColorAlpha=e.worldColor+((n*255|0)<<24);}function Ye$1(e,t,n){if(t===e.updateTick)return;e.updateTick=t,e.didChange=false;let r=e.localTransform;e.updateLocalTransform();let i=e.parent;if(i&&!i.renderGroup?(n|=e._updateFlags,e.relativeGroupTransform.appendFrom(r,i.relativeGroupTransform),n&Ke$1&&Xe$1(e,i,n)):(n=e._updateFlags,e.relativeGroupTransform.copyFrom(r),n&Ke$1&&Xe$1(e,Ge$1,n)),!e.renderGroup){let r=e.children,i=r.length;for(let e=0;e1?1:n,e.groupAlpha=n,e.groupColorAlpha=e.groupColor+((n*255|0)<<24);}n&2&&(e.groupBlendMode=e.localBlendMode===`inherit`?t.groupBlendMode:e.localBlendMode),n&4&&(e.globalDisplayStatus=e.localDisplayStatus&t.globalDisplayStatus),e._updateFlags=0;}function Ze$1(e,t){let{list:n}=e.childrenRenderablesToUpdate,r=false;for(let i=0;i=0;n--)this._updateCachedRenderGroups(e.renderGroupChildren[n],t);if(e.invalidateMatrices(),e.isCachedAsTexture){if(e.textureNeedsUpdate){let t=e.root.getLocalBounds();t.ceil();let n=e.texture;e.texture&&Ot$2.returnTexture(e.texture,true);let r=this._renderer,i=e.textureOptions.resolution||r.view.resolution,a=e.textureOptions.antialias??r.view.antialias,o=e.textureOptions.scaleMode??`linear`,s=Ot$2.getOptimalTexture(t.width,t.height,i,a);s._source.style=new me$1({scaleMode:o}),e.texture=s,e._textureBounds||=new k,e._textureBounds.copyFrom(t),n!==e.texture&&e.renderGroupParent&&(e.renderGroupParent.structureDidChange=true);}}else e.texture&&=(Ot$2.returnTexture(e.texture,true),null);}_updateRenderGroups(e){let t=this._renderer,n=t.renderPipes;if(e.runOnRender(t),e.instructionSet.renderPipes=n,e.structureDidChange?W(e.childrenRenderablesToUpdate.list,0):Ze$1(e,n),qe$1(e),e.structureDidChange?(e.structureDidChange=false,this._buildInstructions(e,t)):this._updateRenderables(e),e.childrenRenderablesToUpdate.index=0,t.renderPipes.batch.upload(e.instructionSet),!(e.isCachedAsTexture&&!e.textureNeedsUpdate))for(let t=0;t{if(!e.name)throw Error(`BlendMode extension must have a name property`);K[e.name]=e.ref;},e=>{delete K[e.name];});var nt$1=class nt{constructor(e){this._blendModeStack=[],this._isAdvanced=false,this._filterHash=Object.create(null),this._renderer=e,this._renderer.runners.prerender.add(this);}prerender(){this._activeBlendMode=`normal`,this._isAdvanced=false;}pushBlendMode(e,t,n){this._blendModeStack.push(t),this.setBlendMode(e,t,n);}popBlendMode(e){this._blendModeStack.pop();let t=this._blendModeStack[this._activeBlendMode.length-1]??`normal`;this.setBlendMode(null,t,e);}setBlendMode(e,t,n){let r=e instanceof kt$2;if(this._activeBlendMode===t){this._isAdvanced&&e&&!r&&this._renderableList?.push(e);return}this._isAdvanced&&this._endAdvancedBlendMode(n),this._activeBlendMode=t,e&&(this._isAdvanced=!!K[t],this._isAdvanced&&this._beginAdvancedBlendMode(e,n));}_beginAdvancedBlendMode(e,t){this._renderer.renderPipes.batch.break(t);let n=this._activeBlendMode;if(!K[n]){Xe$3(`Unable to assign BlendMode: '${n}'. You may want to include: import 'pixi.js/advanced-blend-modes'`);return}let r=this._ensureFilterEffect(n),i=e instanceof kt$2,a={renderPipeId:`filter`,action:`pushFilter`,filterEffect:r,renderables:i?null:[e],container:i?e.root:null,canBundle:false};this._renderableList=a.renderables,t.add(a);}_ensureFilterEffect(e){let t=this._filterHash[e];return t||(t=this._filterHash[e]=new rt$3,t.filters=[new K[e]]),t}_endAdvancedBlendMode(e){this._isAdvanced=false,this._renderableList=null,this._renderer.renderPipes.batch.break(e),e.add({renderPipeId:`filter`,action:`popFilter`,canBundle:false});}buildStart(){this._isAdvanced=false;}buildEnd(e){this._isAdvanced&&this._endAdvancedBlendMode(e);}destroy(){this._renderer=null,this._renderableList=null;for(let e in this._filterHash)this._filterHash[e].destroy();this._filterHash=null;}};nt$1.extension={type:[n.WebGLPipes,n.WebGPUPipes,n.CanvasPipes],name:`blendMode`};var q={png:`image/png`,jpg:`image/jpeg`,webp:`image/webp`},J=class e{constructor(e){this._renderer=e;}_normalizeOptions(e,t={}){return e instanceof Ft$2||e instanceof O?{target:e,...t}:{...t,...e}}async image(e){let t=zt$2.get().createImage();return t.src=await this.base64(e),t}async base64(t){t=this._normalizeOptions(t,e.defaultImageOptions);let{format:n,quality:r}=t,i=this.canvas(t);if(i.toBlob!==void 0)return new Promise((e,t)=>{i.toBlob(n=>{if(!n){t(Error(`ICanvas.toBlob failed!`));return}let r=new FileReader;r.onload=()=>e(r.result),r.onerror=t,r.readAsDataURL(n);},q[n],r);});if(i.toDataURL!==void 0)return i.toDataURL(q[n],r);if(i.convertToBlob!==void 0){let e=await i.convertToBlob({type:q[n],quality:r});return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsDataURL(e);})}throw Error(`Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented`)}canvas(e){e=this._normalizeOptions(e);let t=e.target,n=this._renderer;if(t instanceof O)return n.texture.generateCanvas(t);let r=n.textureGenerator.generateTexture(e),i=n.texture.generateCanvas(r);return r.destroy(true),i}pixels(e){e=this._normalizeOptions(e);let t=e.target,n=this._renderer,r=t instanceof O?t:n.textureGenerator.generateTexture(e),i=n.texture.getPixels(r);return t instanceof Ft$2&&r.destroy(true),i}texture(e){return e=this._normalizeOptions(e),e.target instanceof O?e.target:this._renderer.textureGenerator.generateTexture(e)}download(e){e=this._normalizeOptions(e);let t=this.canvas(e),n=document.createElement(`a`);n.download=e.filename??`image.png`,n.href=t.toDataURL(`image/png`),document.body.appendChild(n),n.click(),document.body.removeChild(n);}log(e){let t=e.width??200;e=this._normalizeOptions(e);let n=this.canvas(e),r=n.toDataURL();console.log(`[Pixi Texture] ${n.width}px ${n.height}px`);let i=[`font-size: 1px;`,`padding: ${t}px 300px;`,`background: url(${r}) no-repeat;`,`background-size: contain;`].join(` `);console.log(`%c `,i);}destroy(){this._renderer=null;}};J.extension={type:[n.WebGLSystem,n.WebGPUSystem],name:`extract`},J.defaultImageOptions={format:`png`,quality:1};var rt$1=J,it$1=class e extends O{static create(t){let{dynamic:n,...r}=t;return new e({source:new D(r),dynamic:n??false})}resize(e,t,n){return this.source.resize(e,t,n),this}},at$1=new re,ot$1=new k,st$1=[0,0,0,0],ct$1=class ct{constructor(e){this._renderer=e;}generateTexture(e){e instanceof Ft$2&&(e={target:e,frame:void 0,textureSourceOptions:{},resolution:void 0});let t=e.resolution||this._renderer.resolution,n=e.antialias||this._renderer.view.antialias,r=e.target,i=e.clearColor;i=i?Array.isArray(i)&&i.length===4?i:Ke$3.shared.setValue(i).toArray():st$1;let o=e.frame?.copyTo(at$1)||_t$3(r,ot$1).rectangle;o.width=Math.max(o.width,1/t)|0,o.height=Math.max(o.height,1/t)|0;let c=it$1.create({...e.textureSourceOptions,width:o.width,height:o.height,resolution:t,antialias:n}),l=p.shared.translate(-o.x,-o.y);return this._renderer.render({container:r,transform:l,target:c,clearColor:i}),c.source.updateMipmaps(),c}destroy(){this._renderer=null;}};ct$1.extension={type:[n.WebGLSystem,n.WebGPUSystem],name:`textureGenerator`};var Y=class e{constructor(e){this._managedResources=[],this._managedResourceHashes=[],this._ready=false,this._renderer=e;}init(t){t={...e.defaultOptions,...t},this.maxUnusedTime=t.gcMaxUnusedTime,this._frequency=t.gcFrequency,this.enabled=t.gcActive,this.now=performance.now();}get enabled(){return !!this._handler}set enabled(e){this.enabled!==e&&(e?this._handler=this._renderer.scheduler.repeat(()=>{this._ready=true;},this._frequency,false):(this._renderer.scheduler.cancel(this._handler),this._handler=0));}prerender({container:e}){this.now=performance.now(),e.renderGroup.gcTick=this._renderer.tick++,this._updateInstructionGCTick(e.renderGroup,e.renderGroup.gcTick);}postrender(){!this._ready||!this.enabled||(this.run(),this._ready=false);}_updateInstructionGCTick(e,t){e.instructionSet.gcTick=t;for(let n of e.renderGroupChildren)this._updateInstructionGCTick(n,t);}addResource(e,t){if(e._gcLastUsed!==-1){e._gcLastUsed=this.now,e._onTouch?.(this.now);return}e._gcData={index:this._managedResources.length,type:t},e._gcLastUsed=this.now,e._onTouch?.(this.now),e.once(`unload`,this.removeResource,this),this._managedResources.push(e);}removeResource(e){let t=e._gcData;if(!t)return;let n=t.index,r=this._managedResources.length-1;if(n!==r){let e=this._managedResources[r];this._managedResources[n]=e,e._gcData.index=n;}this._managedResources.length--,e._gcData=null,e._gcLastUsed=-1;}addResourceHash(e,t,n,r=0){this._managedResourceHashes.push({context:e,hash:t,type:n,priority:r}),this._managedResourceHashes.sort((e,t)=>e.priority-t.priority);}run(){let e=performance.now(),t=this._managedResourceHashes;for(let n of t)this.runOnHash(n,e);let n=0;for(let t=0;t{e.off(`unload`,this.removeResource,this);}),this._managedResources.length=0,this._managedResourceHashes.length=0,this._renderer=null;}};Y.extension={type:[n.WebGLSystem,n.WebGPUSystem],name:`gc`,priority:0},Y.defaultOptions={gcActive:true,gcMaxUnusedTime:6e4,gcFrequency:3e4};var lt$1=Y,ut$1=class ut{constructor(e){this._stackIndex=0,this._globalUniformDataStack=[],this._uniformsPool=[],this._activeUniforms=[],this._bindGroupPool=[],this._activeBindGroups=[],this._renderer=e;}reset(){this._stackIndex=0;for(let e=0;e`},uWorldTransformMatrix:{value:new p,type:`mat3x3`},uWorldColorAlpha:{value:new Float32Array(4),type:`vec4`},uResolution:{value:[0,0],type:`vec2`}},{isStatic:true})}destroy(){this._renderer=null,this._globalUniformDataStack.length=0,this._uniformsPool.length=0,this._activeUniforms.length=0,this._bindGroupPool.length=0,this._activeBindGroups.length=0,this._currentGlobalUniformData=null;}};ut$1.extension={type:[n.WebGLSystem,n.WebGPUSystem,n.CanvasSystem],name:`globalUniforms`};var dt$1=1,ft$1=class ft{constructor(){this._tasks=[],this._offset=0;}init(){Wt$2.system.add(this._update,this);}repeat(e,t,n=true){let r=dt$1++,i=0;return n&&(this._offset+=1e3,i=this._offset),this._tasks.push({func:e,duration:t,start:performance.now(),offset:i,last:performance.now(),repeat:true,id:r}),r}cancel(e){for(let t=0;t=n.duration){let t=e-n.start;n.func(t),n.last=e;}}}destroy(){Wt$2.system.remove(this._update,this),this._tasks.length=0;}};ft$1.extension={type:[n.WebGLSystem,n.WebGPUSystem,n.CanvasSystem],name:`scheduler`,priority:0};var pt$1=false;function mt$1(e){if(!pt$1){if(zt$2.get().getNavigator().userAgent.toLowerCase().indexOf(`chrome`)>-1){let t=[`%c %c %c %c %c PixiJS %c v${N} (${e}) http://www.pixijs.com/ + +`,`background: #E72264; padding:5px 0;`,`background: #6CA2EA; padding:5px 0;`,`background: #B5D33D; padding:5px 0;`,`background: #FED23F; padding:5px 0;`,`color: #FFFFFF; background: #E72264; padding:5px 0;`,`color: #E72264; background: #FFFFFF; padding:5px 0;`];globalThis.console.log(...t);}else globalThis.console&&globalThis.console.log(`PixiJS ${N} - ${e} - http://www.pixijs.com/`);pt$1=true;}}var X=class{constructor(e){this._renderer=e;}init(e){if(e.hello){let e=this._renderer.name;this._renderer.type===wn$2.WEBGL&&(e+=` ${this._renderer.context.webGLVersion}`),mt$1(e);}}};X.extension={type:[n.WebGLSystem,n.WebGPUSystem,n.CanvasSystem],name:`hello`,priority:-2},X.defaultOptions={hello:false};function ht$1(e){let t=false;for(let n in e)if(e[n]==null){t=true;break}if(!t)return e;let n=Object.create(null);for(let t in e){let r=e[t];r&&(n[t]=r);}return n}function gt$1(e){let t=0;for(let n=0;nthis.run(),this._frequency,false),this._hashHandler=this._renderer.scheduler.repeat(()=>{for(let e of this._managedHashes)e.context[e.hash]=ht$1(e.context[e.hash]);},this._frequency),this._arrayHandler=this._renderer.scheduler.repeat(()=>{for(let e of this._managedArrays)gt$1(e.context[e.hash]);},this._frequency)):(this._renderer.scheduler.cancel(this._handler),this._renderer.scheduler.cancel(this._hashHandler),this._renderer.scheduler.cancel(this._arrayHandler)));}addManagedHash(e,t){this._managedHashes.push({context:e,hash:t});}addManagedArray(e,t){this._managedArrays.push({context:e,hash:t});}prerender({container:e}){this._now=performance.now(),e.renderGroup.gcTick=_t$1++,this._updateInstructionGCTick(e.renderGroup,e.renderGroup.gcTick);}addRenderable(e){this.enabled&&(e._lastUsed===-1&&(this._managedRenderables.push(e),e.once(`destroyed`,this._removeRenderable,this)),e._lastUsed=this._now);}run(){let e=this._now,t=this._managedRenderables,n=this._renderer.renderPipes,r=0;for(let i=0;ithis.maxUnusedTime){if(!a.destroyed){let e=n;o&&(o.structureDidChange=true),e[a.renderPipeId].destroyRenderable(a);}a._lastUsed=-1,r++,a.off(`destroyed`,this._removeRenderable,this);}else t[i-r]=a;}t.length-=r;}destroy(){this.enabled=false,this._renderer=null,this._managedRenderables.length=0,this._managedHashes.length=0,this._managedArrays.length=0;}_removeRenderable(e){let t=this._managedRenderables.indexOf(e);t>=0&&(e.off(`destroyed`,this._removeRenderable,this),this._managedRenderables[t]=null);}_updateInstructionGCTick(e,t){e.instructionSet.gcTick=t;for(let n of e.renderGroupChildren)this._updateInstructionGCTick(n,t);}};Z.extension={type:[n.WebGLSystem,n.WebGPUSystem],name:`renderableGC`,priority:0},Z.defaultOptions={renderableGCActive:true,renderableGCMaxUnusedTime:6e4,renderableGCFrequency:3e4};var vt$1=Z,Q=class e{get count(){return this._renderer.tick}get checkCount(){return this._checkCount}set checkCount(e){E(`8.15.0`,`TextureGCSystem.run is deprecated, please use the GCSystem instead.`),this._checkCount=e;}get maxIdle(){return this._renderer.gc.maxUnusedTime/1e3*60}set maxIdle(e){E(`8.15.0`,`TextureGCSystem.run is deprecated, please use the GCSystem instead.`),this._renderer.gc.maxUnusedTime=e/60*1e3;}get checkCountMax(){return Math.floor(this._renderer.gc._frequency/1e3)}set checkCountMax(e){E(`8.15.0`,`TextureGCSystem.run is deprecated, please use the GCSystem instead.`);}get active(){return this._renderer.gc.enabled}set active(e){E(`8.15.0`,`TextureGCSystem.run is deprecated, please use the GCSystem instead.`),this._renderer.gc.enabled=e;}constructor(e){this._renderer=e,this._checkCount=0;}init(t){t.textureGCActive!==e.defaultOptions.textureGCActive&&(this.active=t.textureGCActive),t.textureGCMaxIdle!==e.defaultOptions.textureGCMaxIdle&&(this.maxIdle=t.textureGCMaxIdle),t.textureGCCheckCountMax!==e.defaultOptions.textureGCCheckCountMax&&(this.checkCountMax=t.textureGCCheckCountMax);}run(){E(`8.15.0`,`TextureGCSystem.run is deprecated, please use the GCSystem instead.`),this._renderer.gc.run();}destroy(){this._renderer=null;}};Q.extension={type:[n.WebGLSystem,n.WebGPUSystem],name:`textureGC`},Q.defaultOptions={textureGCActive:true,textureGCAMaxIdle:null,textureGCMaxIdle:3600,textureGCCheckCountMax:600};var yt$1=Q,$$1=class e{get autoDensity(){return this.texture.source.autoDensity}set autoDensity(e){this.texture.source.autoDensity=e;}get resolution(){return this.texture.source._resolution}set resolution(e){this.texture.source.resize(this.texture.source.width,this.texture.source.height,e);}init(t){t={...e.defaultOptions,...t},t.view&&(E(w,`ViewSystem.view has been renamed to ViewSystem.canvas`),t.canvas=t.view),this.screen=new re(0,0,t.width,t.height),this.canvas=t.canvas||zt$2.get().createCanvas(),this.antialias=!!t.antialias,this.texture=Le$1(this.canvas,t),this.renderTarget=new H({colorTextures:[this.texture],depth:!!t.depth,isRoot:true}),this.texture.source.transparent=t.backgroundAlpha<1,this.resolution=t.resolution;}resize(e,t,n){this.texture.source.resize(e,t,n),this.screen.width=this.texture.frame.width,this.screen.height=this.texture.frame.height;}destroy(e=false){(typeof e==`boolean`?e:e?.removeView)&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.texture.destroy();}};$$1.extension={type:[n.WebGLSystem,n.WebGPUSystem,n.CanvasSystem],name:`view`,priority:0},$$1.defaultOptions={width:800,height:600,autoDensity:false,antialias:false};var bt$1=[tt$1,ut$1,X,$$1,$e$1,lt$1,yt$1,ct$1,rt$1,F,vt$1,ft$1],xt$1=[nt$1,Se,et$1,We$1,De,ke$1,Oe$1,He$1]; + +var Oe={extension:{type:n.Environment,name:`browser`,priority:-1},test:()=>true,load:async()=>{await import('./browserAll-DJMnZn3B.js');}},ke={extension:{type:n.Environment,name:`webworker`,priority:0},test:()=>typeof self<`u`&&self.WorkerGlobalScope!==void 0,load:async()=>{await import('./webworkerAll-DKV0GSGG.js');}},Ae;function je(e){return Ae===void 0&&(Ae=(()=>{let t={stencil:true,failIfMajorPerformanceCaveat:e??ve.defaultOptions.failIfMajorPerformanceCaveat};try{if(!zt$2.get().getWebGLRenderingContext())return !1;let e=zt$2.get().createCanvas().getContext(`webgl`,t),n=!!e?.getContextAttributes()?.stencil;if(e){let t=e.getExtension(`WEBGL_lose_context`);t&&t.loseContext();}return e=null,n}catch{return false}})()),Ae}var Me;async function $(e={}){return Me===void 0&&(Me=await(async()=>{let t=zt$2.get().getNavigator().gpu;if(!t)return false;try{return await(await t.requestAdapter(e)).requestDevice(),!0}catch{return false}})()),Me}var Ne=[`webgl`,`webgpu`,`canvas`];async function Pe(e){let t=[];e.preference?(t.push(e.preference),Ne.forEach(n=>{n!==e.preference&&t.push(n);})):t=Ne.slice();let n,r={};for(let i=0;i{e.init.call(this,t);});}render(){this.renderer.render({container:this.stage});}get canvas(){return this.renderer.canvas}get view(){return E(w,`Application.view is deprecated, please use Application.canvas instead.`),this.renderer.canvas}get screen(){return this.renderer.screen}destroy(t=false,n=false){let r=e._plugins.slice(0);r.reverse(),r.forEach(e=>{e.destroy.call(this);}),this.stage.destroy(n),this.stage=null,this.renderer.destroy(t),this.renderer=null;}};Fe._plugins=[];var Ie=Fe;a$1.handleByList(n.Application,Ie._plugins),a$1.add(P);var Le=class extends at$2{constructor(e,t){super();let{textures:n,data:r}=e;Object.keys(r.pages).forEach(e=>{let t=n[r.pages[parseInt(e,10)].id];this.pages.push({texture:t});}),Object.keys(r.chars).forEach(e=>{let t=r.chars[e],{frame:i,source:a,rotate:o}=n[t.page],s=new O({frame:S.transformRectCoords(t,i,o,new re),orig:new re(0,0,t.width,t.height),source:a,rotate:o});this.chars[e]={id:e.codePointAt(0),xOffset:t.xOffset,yOffset:t.yOffset,xAdvance:t.xAdvance,kerning:t.kerning??{},texture:s};}),this.baseRenderedFontSize=r.fontSize,this.baseMeasurementFontSize=r.fontSize,this.fontMetrics={ascent:0,descent:0,fontSize:r.fontSize},this.baseLineOffset=r.baseLineOffset,this.lineHeight=r.lineHeight,this.fontFamily=r.fontFamily,this.distanceField=r.distanceField??{type:`none`,range:0},this.url=t;}destroy(){super.destroy();for(let e=0;e)/)?ze.test(zt$2.get().parseXML(e)):false},parse(e){return ze.parse(zt$2.get().parseXML(e))}},Ve=[`.xml`,`.fnt`],He={extension:{type:n.CacheParser,name:`cacheBitmapFont`},test:e=>e instanceof Le,getCacheableAssets(e,t){let n={};return e.forEach(e=>{n[e]=t,n[`${e}-bitmap`]=t;}),n[`${t.fontFamily}-bitmap`]=t,n}},Ue={extension:{type:n.LoadParser,priority:Be$2.Normal},name:`loadBitmapFont`,id:`bitmap-font`,test(e){return Ve.includes(Ge$2.extname(e).toLowerCase())},async testParse(e){return Re.test(e)||Be.test(e)},async parse(e,t,n){let r=Re.test(e)?Re.parse(e):Be.parse(e),{src:i}=t,{pages:a}=r,o=[],s=r.distanceField?{scaleMode:`linear`,alphaMode:`premultiply-alpha-on-upload`,autoGenerateMipmaps:false,resolution:1}:{};for(let e=0;ec[e.src])},i)},async load(e,t){return await(await zt$2.get().fetch(e)).text()},async unload(e,t,n){await Promise.all(e.pages.map(e=>n.unload(e.texture.source._sourceOrigin))),e.destroy();}},We=class{constructor(e,t=false){this._loader=e,this._assetList=[],this._isLoading=false,this._maxConcurrent=1,this.verbose=t;}add(e){e.forEach(e=>{this._assetList.push(e);}),this.verbose&&console.log(`[BackgroundLoader] assets: `,this._assetList),this._isActive&&!this._isLoading&&this._next();}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=true;let e=[],t=Math.min(this._assetList.length,this._maxConcurrent);for(let n=0;nArray.isArray(e)&&e.every(e=>e instanceof O),getCacheableAssets:(e,t)=>{let n={};return e.forEach(e=>{t.forEach((t,r)=>{n[e+(r===0?``:r+1)]=t;});}),n}};async function Ke(e){if(`Image`in globalThis)return new Promise(t=>{let n=new Image;n.onload=()=>{t(true);},n.onerror=()=>{t(false);},n.src=e;});if(`createImageBitmap`in globalThis&&`fetch`in globalThis){try{let t=await(await fetch(e)).blob();await createImageBitmap(t);}catch{return false}return true}return false}var qe={extension:{type:n.DetectionParser,priority:1},test:async()=>Ke(`data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=`),add:async e=>[...e,`avif`],remove:async e=>e.filter(e=>e!==`avif`)},Je=[`png`,`jpg`,`jpeg`],Ye={extension:{type:n.DetectionParser,priority:-1},test:()=>Promise.resolve(true),add:async e=>[...e,...Je],remove:async e=>e.filter(e=>!Je.includes(e))},Xe=`WorkerGlobalScope`in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function Ze(e){return Xe?false:document.createElement(`video`).canPlayType(e)!==``}var Qe={extension:{type:n.DetectionParser,priority:0},test:async()=>Ze(`video/mp4`),add:async e=>[...e,`mp4`,`m4v`],remove:async e=>e.filter(e=>e!==`mp4`&&e!==`m4v`)},$e={extension:{type:n.DetectionParser,priority:0},test:async()=>Ze(`video/ogg`),add:async e=>[...e,`ogv`],remove:async e=>e.filter(e=>e!==`ogv`)},et={extension:{type:n.DetectionParser,priority:0},test:async()=>Ze(`video/webm`),add:async e=>[...e,`webm`],remove:async e=>e.filter(e=>e!==`webm`)},tt={extension:{type:n.DetectionParser,priority:0},test:async()=>Ke(`data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=`),add:async e=>[...e,`webp`],remove:async e=>e.filter(e=>e!==`webp`)},nt=class e{constructor(){this.loadOptions={...e.defaultOptions},this._parsers=[],this._parsersValidated=false,this.parsers=new Proxy(this._parsers,{set:(e,t,n)=>(this._parsersValidated=false,e[t]=n,true)}),this.promiseCache={};}reset(){this._parsersValidated=false,this.promiseCache={};}_getLoadPromiseAndParser(e,t){let n={promise:null,parser:null};return n.promise=(async()=>{let r=null,i=null;if((t.parser||t.loadParser)&&(i=this._parserHash[t.parser||t.loadParser],t.loadParser&&Xe$3(`[Assets] "loadParser" is deprecated, use "parser" instead for ${e}`),i||Xe$3(`[Assets] specified load parser "${t.parser||t.loadParser}" not found while loading ${e}`)),!i){for(let n=0;n({alias:[e],src:e,data:{}})),f=d.reduce((e,t)=>e+(t.progressSize||1),0),p=d.map(async e=>{let t=Ge$2.toAbsolute(e.src);l[e.src]||(await this._loadAssetWithRetry(t,e,{onProgress:r,onError:i,strategy:a,retryCount:o,retryDelay:s},l),c+=e.progressSize||1,r&&r(c/f));});return await Promise.all(p),u?l[d[0].src]:l}async unload(e){let t=Fe$2(e,e=>({alias:[e],src:e})).map(async e=>{let t=Ge$2.toAbsolute(e.src),n=this.promiseCache[t];if(n){let r=await n.promise;delete this.promiseCache[t],await n.parser?.unload?.(r,e,this);}});await Promise.all(t);}_validateParsers(){this._parsersValidated=true,this._parserHash=this._parsers.filter(e=>e.name||e.id).reduce((e,t)=>(!t.name&&!t.id?Xe$3(`[Assets] parser should have an id`):(e[t.name]||e[t.id])&&Xe$3(`[Assets] parser id conflict "${t.id}"`),e[t.name]=t,t.id&&(e[t.id]=t),e),{});}async _loadAssetWithRetry(e,t,n,r){let i=0,{onError:a,strategy:o,retryCount:s,retryDelay:c}=n,l=e=>new Promise(t=>setTimeout(t,e));for(;;)try{this.promiseCache[e]||(this.promiseCache[e]=this._getLoadPromiseAndParser(e,t)),r[t.src]=await this.promiseCache[e].promise;return}catch(n){if(delete this.promiseCache[e],delete r[t.src],i++,o===`retry`&&!(o!==`retry`||i>s)){a&&a(n,t),await l(c);continue}if(o===`skip`){a&&a(n,t);return}a&&a(n,t);let u=Error(`[Loader.load] Failed to load ${e}. +${n}`);throw n instanceof Error&&n.stack&&(u.stack=n.stack),u}}};nt.defaultOptions={onProgress:void 0,onError:void 0,strategy:`throw`,retryCount:3,retryDelay:250};var rt=nt;function it(e,t){if(Array.isArray(t)){for(let n of t)if(e.startsWith(`data:${n}`))return true;return false}return e.startsWith(`data:${t}`)}function at(e,t){let n=e.split(`?`)[0],r=Ge$2.extname(n).toLowerCase();return Array.isArray(t)?t.includes(r):r===t}var ot=`.json`,st=`application/json`,ct={extension:{type:n.LoadParser,priority:Be$2.Low},name:`loadJson`,id:`json`,test(e){return it(e,st)||at(e,ot)},async load(e){return await(await zt$2.get().fetch(e)).json()}},lt=`.txt`,ut=`text/plain`,dt={name:`loadTxt`,id:`text`,extension:{type:n.LoadParser,priority:Be$2.Low,name:`loadTxt`},test(e){return it(e,ut)||at(e,lt)},async load(e){return await(await zt$2.get().fetch(e)).text()}},ft=[`normal`,`bold`,`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`],pt=[`.ttf`,`.otf`,`.woff`,`.woff2`],mt=[`font/ttf`,`font/otf`,`font/woff`,`font/woff2`],ht=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function gt(e){let t=Ge$2.extname(e),n=Ge$2.basename(e,t).replace(/(-|_)/g,` `).toLowerCase().split(` `).map(e=>e.charAt(0).toUpperCase()+e.slice(1)),r=n.length>0;for(let e of n)if(!e.match(ht)){r=false;break}let i=n.join(` `);return r||(i=`"${i.replace(/[\\"]/g,`\\$&`)}"`),i}var _t=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function vt(e){return _t.test(e)?e:encodeURI(e)}var yt={extension:{type:n.LoadParser,priority:Be$2.Low},name:`loadWebFont`,id:`web-font`,test(e){return it(e,mt)||at(e,pt)},async load(e,t){let n=zt$2.get().getFontFaceSet();if(n){let r=[],i=t.data?.family??gt(e),a=t.data?.weights?.filter(e=>ft.includes(e))??[`normal`],o=t.data??{};for(let t=0;te.faces.some(e=>t.indexOf(e)!==-1));i.faces=i.faces.filter(e=>t.indexOf(e)===-1),i.faces.length===0&&(r.entries=r.entries.filter(e=>e!==i)),t.forEach(e=>{zt$2.get().getFontFaceSet().delete(e);}),r.entries.length===0&&K$1.remove(`${n}-and-url`);}};function bt(e,t=1){let n=Ye$2.RETINA_PREFIX?.exec(e);return n?parseFloat(n[1]):t}function xt(e,t,n){e.label=n,e._sourceOrigin=n;let r=new O({source:e,label:n}),i=()=>{delete t.promiseCache[n],K$1.has(n)&&K$1.remove(n);};return r.source.once(`destroy`,()=>{t.promiseCache[n]&&(Xe$3(`[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource.`),i());}),r.once(`destroy`,()=>{e.destroyed||(Xe$3(`[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture.`),i());}),r}var St=`.svg`,Ct=`image/svg+xml`,wt={extension:{type:n.LoadParser,priority:Be$2.Low,name:`loadSVG`},name:`loadSVG`,id:`svg`,config:{crossOrigin:`anonymous`,parseAsGraphicsContext:false},test(e){return it(e,Ct)||at(e,St)},async load(e,t,n){return t.data?.parseAsGraphicsContext??this.config.parseAsGraphicsContext?Et(e):Tt(e,t,n,this.config.crossOrigin)},unload(e){e.destroy(true);}};async function Tt(e,t,n,r){let i=await zt$2.get().fetch(e),a=zt$2.get().createImage();a.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(await i.text())}`,a.crossOrigin=r,await a.decode();let o=t.data?.width??a.width,s=t.data?.height??a.height,c=t.data?.resolution||bt(e),l=Math.ceil(o*c),u=Math.ceil(s*c),d=zt$2.get().createCanvas(l,u),f=d.getContext(`2d`);f.imageSmoothingEnabled=true,f.imageSmoothingQuality=`high`,f.drawImage(a,0,0,o*c,s*c);let{parseAsGraphicsContext:p,...m}=t.data??{};return xt(new Ae$2({resource:d,alphaMode:`premultiply-alpha-on-upload`,resolution:c,...m}),n,e)}async function Et(e){let t=await(await zt$2.get().fetch(e)).text(),n=new Q$1;return n.svg(t),n}var Dt=`(function () { + 'use strict'; + + const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="; + async function checkImageBitmap() { + try { + if (typeof createImageBitmap !== "function") + return false; + const response = await fetch(WHITE_PNG); + const imageBlob = await response.blob(); + const imageBitmap = await createImageBitmap(imageBlob); + return imageBitmap.width === 1 && imageBitmap.height === 1; + } catch (_e) { + return false; + } + } + void checkImageBitmap().then((result) => { + self.postMessage(result); + }); + +})(); +`,Ot=null,kt=class{constructor(){Ot||=URL.createObjectURL(new Blob([Dt],{type:`application/javascript`})),this.worker=new Worker(Ot);}};kt.revokeObjectURL=function(){Ot&&=(URL.revokeObjectURL(Ot),null);};var At=`(function () { + 'use strict'; + + async function loadImageBitmap(url, alphaMode) { + const response = await fetch(url); + if (!response.ok) { + throw new Error(\`[WorkerManager.loadImageBitmap] Failed to fetch \${url}: \${response.status} \${response.statusText}\`); + } + const imageBlob = await response.blob(); + return alphaMode === "premultiplied-alpha" ? createImageBitmap(imageBlob, { premultiplyAlpha: "none" }) : createImageBitmap(imageBlob); + } + self.onmessage = async (event) => { + try { + const imageBitmap = await loadImageBitmap(event.data.data[0], event.data.data[1]); + self.postMessage({ + data: imageBitmap, + uuid: event.data.uuid, + id: event.data.id + }, [imageBitmap]); + } catch (e) { + self.postMessage({ + error: e, + uuid: event.data.uuid, + id: event.data.id + }); + } + }; + +})(); +`,jt=null,Mt=class{constructor(){jt||=URL.createObjectURL(new Blob([At],{type:`application/javascript`})),this.worker=new Worker(jt);}};Mt.revokeObjectURL=function(){jt&&=(URL.revokeObjectURL(jt),null);};var Nt=0,Pt,Ft=new class{constructor(){this._initialized=false,this._createdWorkers=0,this._workerPool=[],this._queue=[],this._resolveHash={};}isImageBitmapSupported(){return this._isImageBitmapSupported===void 0&&(this._isImageBitmapSupported=new Promise(e=>{let{worker:t}=new kt;t.addEventListener(`message`,n=>{t.terminate(),kt.revokeObjectURL(),e(n.data);});})),this._isImageBitmapSupported}loadImageBitmap(e,t){return this._run(`loadImageBitmap`,[e,t?.data?.alphaMode])}async _initWorkers(){this._initialized||=true;}_getWorker(){Pt===void 0&&(Pt=navigator.hardwareConcurrency||4);let e=this._workerPool.pop();return !e&&this._createdWorkers{this._complete(e.data),this._returnWorker(e.target),this._next();})),e}_returnWorker(e){this._workerPool.push(e);}_complete(e){this._resolveHash[e.uuid]&&(e.error===void 0?this._resolveHash[e.uuid].resolve(e.data):this._resolveHash[e.uuid].reject(e.error),delete this._resolveHash[e.uuid]);}async _run(e,t){await this._initWorkers();let n=new Promise((n,r)=>{this._queue.push({id:e,arguments:t,resolve:n,reject:r});});return this._next(),n}_next(){if(!this._queue.length)return;let e=this._getWorker();if(!e)return;let t=this._queue.pop(),n=t.id;this._resolveHash[Nt]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:Nt++,id:n});}reset(){this._workerPool.forEach(e=>e.terminate()),this._workerPool.length=0,Object.values(this._resolveHash).forEach(({reject:e})=>{e?.(Error(`WorkerManager has been reset before completion`));}),this._resolveHash={},this._queue.length=0,this._initialized=false,this._createdWorkers=0;}},It=[`.jpeg`,`.jpg`,`.png`,`.webp`,`.avif`],Lt=[`image/jpeg`,`image/png`,`image/webp`,`image/avif`];async function Rt(e,t){let n=await zt$2.get().fetch(e);if(!n.ok)throw Error(`[loadImageBitmap] Failed to fetch ${e}: ${n.status} ${n.statusText}`);let r=await n.blob();return t?.data?.alphaMode===`premultiplied-alpha`?createImageBitmap(r,{premultiplyAlpha:`none`}):createImageBitmap(r)}var zt={name:`loadTextures`,id:`texture`,extension:{type:n.LoadParser,priority:Be$2.High,name:`loadTextures`},config:{preferWorkers:true,preferCreateImageBitmap:true,crossOrigin:`anonymous`},test(e){return it(e,Lt)||at(e,It)},async load(e,t,n){let r=null;return r=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await Ft.isImageBitmapSupported()?await Ft.loadImageBitmap(e,t):await Rt(e,t):await new Promise((t,n)=>{r=zt$2.get().createImage(),r.crossOrigin=this.config.crossOrigin,r.src=e,r.complete?t(r):(r.onload=()=>{t(r);},r.onerror=n);}),xt(new Ae$2({resource:r,alphaMode:`premultiply-alpha-on-upload`,resolution:t.data?.resolution||bt(e),...t.data}),n,e)},unload(e){e.destroy(true);}},Bt=[`.mp4`,`.m4v`,`.webm`,`.ogg`,`.ogv`,`.h264`,`.avi`,`.mov`],Vt,Ht;function Ut(e,t,n){n===void 0&&!t.startsWith(`data:`)?e.crossOrigin=Gt(t):n!==false&&(e.crossOrigin=typeof n==`string`?n:`anonymous`);}function Wt(e){return new Promise((t,n)=>{e.addEventListener(`canplaythrough`,r),e.addEventListener(`error`,i),e.load();function r(){a(),t();}function i(e){a(),n(e);}function a(){e.removeEventListener(`canplaythrough`,r),e.removeEventListener(`error`,i);}})}function Gt(e,t=globalThis.location){if(e.startsWith(`data:`))return ``;t||=globalThis.location;let n=new URL(e,document.baseURI);return n.hostname!==t.hostname||n.port!==t.port||n.protocol!==t.protocol?`anonymous`:``}function Kt(){let e=[],t=[];for(let n of Bt){let r=Pe$2.MIME_TYPES[n.substring(1)]||`video/${n.substring(1)}`;Ze(r)&&(e.push(n),t.includes(r)||t.push(r));}return {validVideoExtensions:e,validVideoMime:t}}var qt={name:`loadVideo`,id:`video`,extension:{type:n.LoadParser,name:`loadVideo`},test(e){if(!Vt||!Ht){let{validVideoExtensions:e,validVideoMime:t}=Kt();Vt=e,Ht=t;}let t=it(e,Ht),n=at(e,Vt);return t||n},async load(e,t,n){let r={...Pe$2.defaultOptions,resolution:t.data?.resolution||bt(e),alphaMode:t.data?.alphaMode||await Me$2(),...t.data},i=document.createElement(`video`),a={preload:r.autoLoad===false?void 0:`auto`,"webkit-playsinline":r.playsinline===false?void 0:``,playsinline:r.playsinline===false?void 0:``,muted:r.muted===true?``:void 0,loop:r.loop===true?``:void 0,autoplay:r.autoPlay===false?void 0:``};Object.keys(a).forEach(e=>{let t=a[e];t!==void 0&&i.setAttribute(e,t);}),r.muted===true&&(i.muted=true),Ut(i,e,r.crossorigin);let o=document.createElement(`source`),s;if(r.mime)s=r.mime;else if(e.startsWith(`data:`))s=e.slice(5,e.indexOf(`;`));else if(!e.startsWith(`blob:`)){let t=e.split(`?`)[0].slice(e.lastIndexOf(`.`)+1).toLowerCase();s=Pe$2.MIME_TYPES[t]||`video/${t}`;}return o.src=e,s&&(o.type=s),new Promise(a=>{let s=async()=>{let o=new Pe$2({...r,resource:i});i.removeEventListener(`canplay`,s),t.data.preload&&await Wt(i),a(xt(o,n,e));};r.preload&&!r.autoPlay&&i.load(),i.addEventListener(`canplay`,s),i.appendChild(o);})},unload(e){e.destroy(true);}},Jt={extension:{type:n.ResolveParser,name:`resolveTexture`},test:zt.test,parse:e=>({resolution:parseFloat(Ye$2.RETINA_PREFIX.exec(e)?.[1]??`1`),format:e.split(`.`).pop(),src:e})},Yt={extension:{type:n.ResolveParser,priority:-2,name:`resolveJson`},test:e=>Ye$2.RETINA_PREFIX.test(e)&&e.endsWith(`.json`),parse:Jt.parse},Xt=new class{constructor(){this._detections=[],this._initialized=false,this.resolver=new Ye$2,this.loader=new rt,this.cache=K$1,this._backgroundLoader=new We(this.loader),this._backgroundLoader.active=true,this.reset();}async init(e={}){if(this._initialized){Xe$3(`[Assets]AssetManager already initialized, did you load before calling this Assets.init()?`);return}if(this._initialized=true,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let t=e.manifest;typeof t==`string`&&(t=await this.load(t)),this.resolver.addManifest(t);}let t=e.texturePreference?.resolution??1,n=typeof t==`number`?[t]:t,r=await this._detectFormats({preferredFormats:e.texturePreference?.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:r,resolution:n}}),e.preferences&&this.setPreferences(e.preferences),e.loadOptions&&(this.loader.loadOptions={...this.loader.loadOptions,...e.loadOptions});}add(e){this.resolver.add(e);}async load(e,t){this._initialized||await this.init();let n=Je$2(e),r=Fe$2(e).map(e=>{if(typeof e!=`string`){let t=this.resolver.getAlias(e);return t.some(e=>!this.resolver.hasKey(e))&&this.add(e),Array.isArray(t)?t[0]:t}return this.resolver.hasKey(e)||this.add({alias:e,src:e}),e}),i=this.resolver.resolve(r),a=await this._mapLoadToResolve(i,t);return n?a[r[0]]:a}addBundle(e,t){this.resolver.addBundle(e,t);}async loadBundle(e,t){this._initialized||await this.init();let n=false;typeof e==`string`&&(n=true,e=[e]);let r=this.resolver.resolveBundle(e),i={},a=Object.keys(r),o=0,s=[],c=()=>{t?.(s.reduce((e,t)=>e+t,0)/o);},l=a.map((e,t)=>{let n=r[e],a=Object.values(n),l=[...new Set(a.flat())].reduce((e,t)=>e+(t.progressSize||1),0);return s.push(0),o+=l,this._mapLoadToResolve(n,e=>{s[t]=e*l,c();}).then(t=>{i[e]=t;})});return await Promise.all(l),n?i[e[0]]:i}async backgroundLoad(e){this._initialized||await this.init(),typeof e==`string`&&(e=[e]);let t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t));}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e==`string`&&(e=[e]);let t=this.resolver.resolveBundle(e);Object.values(t).forEach(e=>{this._backgroundLoader.add(Object.values(e));});}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=false;}get(e){if(typeof e==`string`)return K$1.get(e);let t={};for(let n=0;n{let t=r[e.src],n=[e.src];e.alias&&n.push(...e.alias),n.forEach(e=>{i[e]=t;}),K$1.set(n,t);}),i}async unload(e){this._initialized||await this.init();let t=Fe$2(e).map(e=>typeof e==`string`?e:e.src),n=this.resolver.resolve(t);await this._unloadFromResolved(n);}async unloadBundle(e){this._initialized||await this.init(),e=Fe$2(e);let t=this.resolver.resolveBundle(e),n=Object.keys(t).map(e=>this._unloadFromResolved(t[e]));await Promise.all(n);}async _unloadFromResolved(e){let t=Object.values(e);t.forEach(e=>{K$1.remove(e.src);}),await this.loader.unload(t);}async _detectFormats(e){let t=[];e.preferredFormats&&(t=Array.isArray(e.preferredFormats)?e.preferredFormats:[e.preferredFormats]);for(let n of e.detections)e.skipDetections||await n.test()?t=await n.add(t):e.skipDetections||(t=await n.remove(t));return t=t.filter((e,n)=>t.indexOf(e)===n),t}get detections(){return this._detections}setPreferences(e){this.loader.parsers.forEach(t=>{t.config&&Object.keys(t.config).filter(t=>t in e).forEach(n=>{t.config[n]=e[n];});});}};a$1.handleByList(n.LoadParser,Xt.loader.parsers).handleByList(n.ResolveParser,Xt.resolver.parsers).handleByList(n.CacheParser,Xt.cache.parsers).handleByList(n.DetectionParser,Xt.detections),a$1.add(Ge,Ye,qe,tt,Qe,$e,et,ct,dt,yt,wt,zt,qt,Ue,He,Jt,Yt);var Zt={loader:n.LoadParser,resolver:n.ResolveParser,cache:n.CacheParser,detection:n.DetectionParser};a$1.handle(n.Asset,e=>{let t=e.ref;Object.entries(Zt).filter(([e])=>!!t[e]).forEach(([e,n])=>a$1.add(Object.assign(t[e],{extension:t[e].extension??n})));},e=>{let t=e.ref;Object.keys(Zt).filter(e=>!!t[e]).forEach(e=>a$1.remove(t[e]));});var Qt=(e=>(e.CLAMP=`clamp-to-edge`,e.REPEAT=`repeat`,e.MIRRORED_REPEAT=`mirror-repeat`,e))(Qt||{});new Proxy(Qt,{get(e,t){return E(w,`DRAW_MODES.${t} is deprecated, use '${Qt[t]}' instead`),e[t]}});var $t=(e=>(e.NEAREST=`nearest`,e.LINEAR=`linear`,e))($t||{});new Proxy($t,{get(e,t){return E(w,`DRAW_MODES.${t} is deprecated, use '${$t[t]}' instead`),e[t]}});a$1.add(Oe,ke);var ln=`in vec2 aPosition; +out vec2 vTextureCoord; + +uniform vec4 uInputSize; +uniform vec4 uOutputFrame; +uniform vec4 uOutputTexture; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy; + + position.x = position.x * (2.0 / uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aPosition * (uOutputFrame.zw * uInputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); +} +`,un=`struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv : vec2 + }; + +fn filterVertexPosition(aPosition:vec2) -> vec4 +{ + var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy; + + position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +fn filterTextureCoord( aPosition:vec2 ) -> vec2 +{ + return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw); +} + +fn globalTextureCoord( aPosition:vec2 ) -> vec2 +{ + return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw); +} + +fn getSize() -> vec2 +{ + return gfu.uGlobalFrame.zw; +} + +@vertex +fn mainVertex( + @location(0) aPosition : vec2, +) -> VSOutput { + return VSOutput( + filterVertexPosition(aPosition), + filterTextureCoord(aPosition) + ); +}`,dn=` +in vec2 vTextureCoord; +out vec4 finalColor; + +uniform sampler2D uTexture; +uniform vec2 uOffset; + +void main(void) +{ + vec4 color = vec4(0.0); + + // Sample top left pixel + color += texture(uTexture, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y)); + + // Sample top right pixel + color += texture(uTexture, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y)); + + // Sample bottom right pixel + color += texture(uTexture, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y)); + + // Sample bottom left pixel + color += texture(uTexture, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y)); + + // Average + color *= 0.25; + + finalColor = color; +}`,fn=`struct KawaseBlurUniforms { + uOffset:vec2, +}; + +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; +@group(1) @binding(0) var kawaseBlurUniforms : KawaseBlurUniforms; + +@fragment +fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 +) -> @location(0) vec4 { + let uOffset = kawaseBlurUniforms.uOffset; + var color: vec4 = vec4(0.0); + + // Sample top left pixel + color += textureSample(uTexture, uSampler, vec2(uv.x - uOffset.x, uv.y + uOffset.y)); + // Sample top right pixel + color += textureSample(uTexture, uSampler, vec2(uv.x + uOffset.x, uv.y + uOffset.y)); + // Sample bottom right pixel + color += textureSample(uTexture, uSampler, vec2(uv.x + uOffset.x, uv.y - uOffset.y)); + // Sample bottom left pixel + color += textureSample(uTexture, uSampler, vec2(uv.x - uOffset.x, uv.y - uOffset.y)); + // Average + color *= 0.25; + + return color; +}`,pn=` +precision highp float; +in vec2 vTextureCoord; +out vec4 finalColor; + +uniform sampler2D uTexture; +uniform vec2 uOffset; + +uniform vec4 uInputClamp; + +void main(void) +{ + vec4 color = vec4(0.0); + + // Sample top left pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Sample top right pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Sample bottom right pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Sample bottom left pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Average + color *= 0.25; + + finalColor = color; +} +`,mn=`struct KawaseBlurUniforms { + uOffset:vec2, +}; + +struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; + +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; +@group(1) @binding(0) var kawaseBlurUniforms : KawaseBlurUniforms; + +@fragment +fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 +) -> @location(0) vec4 { + let uOffset = kawaseBlurUniforms.uOffset; + var color: vec4 = vec4(0.0); + + // Sample top left pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x - uOffset.x, uv.y + uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Sample top right pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x + uOffset.x, uv.y + uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Sample bottom right pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x + uOffset.x, uv.y - uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Sample bottom left pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x - uOffset.x, uv.y - uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Average + color *= 0.25; + + return color; +}`,hn=Object.defineProperty,gn=(e,t,n)=>t in e?hn(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,_n=(e,t,n)=>(gn(e,typeof t==`symbol`?t:t+``,n),n),vn=class e extends In$1{constructor(...t){let n=t[0]??{};(typeof n==`number`||Array.isArray(n))&&(E(`6.0.0`,`KawaseBlurFilter constructor params are now options object. See params: { strength, quality, clamp, pixelSize }`),n={strength:n},t[1]!==void 0&&(n.quality=t[1]),t[2]!==void 0&&(n.clamp=t[2])),n={...e.DEFAULT_OPTIONS,...n};let r=_n$2.from({vertex:{source:un,entryPoint:`mainVertex`},fragment:{source:n?.clamp?mn:fn,entryPoint:`mainFragment`}}),i=cn$1.from({vertex:ln,fragment:n?.clamp?pn:dn,name:`kawase-blur-filter`});super({gpuProgram:r,glProgram:i,resources:{kawaseBlurUniforms:{uOffset:{value:new Float32Array(2),type:`vec2`}}}}),_n(this,`uniforms`),_n(this,`_pixelSize`,{x:0,y:0}),_n(this,`_clamp`),_n(this,`_kernels`,[]),_n(this,`_blur`),_n(this,`_quality`),this.uniforms=this.resources.kawaseBlurUniforms.uniforms,this.pixelSize=n.pixelSize??{x:1,y:1},Array.isArray(n.strength)?this.kernels=n.strength:typeof n.strength==`number`&&(this._blur=n.strength,this.quality=n.quality??3),this._clamp=!!n.clamp;}apply(e,t,n,r){let i=this.pixelSizeX/t.source.width,a=this.pixelSizeY/t.source.height,o;if(this._quality===1||this._blur===0)o=this._kernels[0]+.5,this.uniforms.uOffset[0]=o*i,this.uniforms.uOffset[1]=o*a,e.applyFilter(this,t,n,r);else {let s=Ot$2.getSameSizeTexture(t),c=t,l=s,u,d=this._quality-1;for(let t=0;t0?(this._kernels=e,this._quality=e.length,this._blur=Math.max(...e)):(this._kernels=[0],this._quality=1);}get pixelSize(){return this._pixelSize}set pixelSize(e){if(typeof e==`number`){this.pixelSizeX=this.pixelSizeY=e;return}if(Array.isArray(e)){this.pixelSizeX=e[0],this.pixelSizeY=e[1];return}this._pixelSize=e;}get pixelSizeX(){return this.pixelSize.x}set pixelSizeX(e){this.pixelSize.x=e;}get pixelSizeY(){return this.pixelSize.y}set pixelSizeY(e){this.pixelSize.y=e;}get clamp(){return this._clamp}_updatePadding(){this.padding=Math.ceil(this._kernels.reduce((e,t)=>e+t+.5,0));}_generateKernels(){let e=this._blur,t=this._quality,n=[e];if(e>0){let r=e,i=e/t;for(let e=1;e, + uOffset: vec2, +}; + +struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; + +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; +@group(1) @binding(0) var dropShadowUniforms : DropShadowUniforms; + +@fragment +fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 +) -> @location(0) vec4 { + var color: vec4 = textureSample(uTexture, uSampler, uv - dropShadowUniforms.uOffset * gfu.uInputSize.zw); + + // Premultiply alpha + color = vec4(vec3(dropShadowUniforms.uColor.rgb * color.a), color.a); + // alpha user alpha + color *= dropShadowUniforms.uAlpha; + + return color; +}`,Sn=Object.defineProperty,Cn=(e,t,n)=>t in e?Sn(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,wn=(e,t,n)=>(Cn(e,typeof t==`symbol`?t:t+``,n),n),Tn=class e extends In$1{constructor(t){t={...e.DEFAULT_OPTIONS,...t};let n=_n$2.from({vertex:{source:un,entryPoint:`mainVertex`},fragment:{source:xn,entryPoint:`mainFragment`}}),r=cn$1.from({vertex:ln,fragment:bn,name:`drop-shadow-filter`});super({gpuProgram:n,glProgram:r,resources:{dropShadowUniforms:{uAlpha:{value:t.alpha,type:`f32`},uColor:{value:new Float32Array(3),type:`vec3`},uOffset:{value:t.offset,type:`vec2`}}},resolution:t.resolution}),wn(this,`uniforms`),wn(this,`shadowOnly`,false),wn(this,`_color`),wn(this,`_blurFilter`),wn(this,`_basePass`),this.uniforms=this.resources.dropShadowUniforms.uniforms,this._color=new Ke$3,this.color=t.color??0,this._blurFilter=new yn({strength:t.kernels??t.blur,quality:t.kernels?void 0:t.quality}),this._basePass=new In$1({gpuProgram:_n$2.from({vertex:{source:un,entryPoint:`mainVertex`},fragment:{source:` + @group(0) @binding(1) var uTexture: texture_2d; + @group(0) @binding(2) var uSampler: sampler; + @fragment + fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 + ) -> @location(0) vec4 { + return textureSample(uTexture, uSampler, uv); + } + `,entryPoint:`mainFragment`}}),glProgram:cn$1.from({vertex:ln,fragment:` + in vec2 vTextureCoord; + out vec4 finalColor; + uniform sampler2D uTexture; + + void main(void){ + finalColor = texture(uTexture, vTextureCoord); + } + `,name:`drop-shadow-filter`}),resources:{}}),Object.assign(this,t);}apply(e,t,n,r){let i=Ot$2.getSameSizeTexture(t);e.applyFilter(this,t,i,true),this._blurFilter.apply(e,i,n,r),this.shadowOnly||e.applyFilter(this._basePass,t,n,false),Ot$2.returnTexture(i);}get offset(){return this.uniforms.uOffset}set offset(e){this.uniforms.uOffset=e,this._updatePadding();}get offsetX(){return this.offset.x}set offsetX(e){this.offset.x=e,this._updatePadding();}get offsetY(){return this.offset.y}set offsetY(e){this.offset.y=e,this._updatePadding();}get color(){return this._color.value}set color(e){this._color.setValue(e);let[t,n,r]=this._color.toArray();this.uniforms.uColor[0]=t,this.uniforms.uColor[1]=n,this.uniforms.uColor[2]=r;}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e;}get blur(){return this._blurFilter.strength}set blur(e){this._blurFilter.strength=e,this._updatePadding();}get quality(){return this._blurFilter.quality}set quality(e){this._blurFilter.quality=e,this._updatePadding();}get kernels(){return this._blurFilter.kernels}set kernels(e){this._blurFilter.kernels=e;}get pixelSize(){return this._blurFilter.pixelSize}set pixelSize(e){typeof e==`number`&&(e={x:e,y:e}),Array.isArray(e)&&(e={x:e[0],y:e[1]}),this._blurFilter.pixelSize=e;}get pixelSizeX(){return this._blurFilter.pixelSizeX}set pixelSizeX(e){this._blurFilter.pixelSizeX=e;}get pixelSizeY(){return this._blurFilter.pixelSizeY}set pixelSizeY(e){this._blurFilter.pixelSizeY=e;}_updatePadding(){let e=Math.max(Math.abs(this.offsetX),Math.abs(this.offsetY));this.padding=e+this.blur*2+this.quality*4;}};wn(Tn,`DEFAULT_OPTIONS`,{offset:{x:4,y:4},color:0,alpha:.5,shadowOnly:false,kernels:void 0,blur:2,quality:3,pixelSize:{x:1,y:1},resolution:1});function $n(e,t){e.component(e=>{let {changeable:i=false,sources:a=[`upload`,`webcam`,`clipboard`],transforms:o=[`crop`,`resize`],canvas_size:s,is_dragging:c=false,background_image:l=false,brush_options:u,eraser_options:d,fixed_canvas:f=false,root:p,i18n:m,upload:h,composite:g,layers:_,background:v,border_region:y=0,layer_options:b,current_tool:x=void 0,webcam_options:ee,show_download_button:S=false,theme_mode:C,full_history:w=null,has_drawn:T=false,can_undo:E=false,onclear:ne,onsave:D,onchange:re,onupload:ie,oninput:ae,ondownload_error:oe,children:O}=t;async function le(){return {background:null,layers:[],composite:null}}let j;function ue(e){j.add_image({image:e});}async function N(e){return;}async function P$1(e){}let H;function G({tool:e}){j.set_tool(e),x=e,(H.set_tool(`image`),H.set_subtool(`crop`));}let Y=null;function be(){ne?.(),j.reset_canvas(),G({tool:`image`}),l=false,T=false;}function X(){be();}let $=true,Ne;function Pe(e){e.push(`
    `),e.push(``),e.push(`
    `),e.push(``),e.push(` `),O?(e.push(``),O(e),e.push(``)):e.push(``),e.push(``);}do $=true,Ne=e.copy(),Pe(Ne);while(!$);e.subsume(Ne),bind_props(t,{is_dragging:c,background_image:l,current_tool:x,full_history:w,has_drawn:T,can_undo:E,antialias:true,get_blobs:le,add_image:ue,add_image_from_url:N,add_layers_from_url:P$1,handle_remove:X});});}var er=/^(#\s*)(.+)$/m;function tr(e){let t=e.trim(),n=t.match(er);if(!n)return [false,t||false];let[r,,i]=n,a=i.trim();if(t===r)return [a,false];let o=n.index===void 0?0:n.index+r.length;return [a,t.substring(o).trim()||false]}function nr(e,t){e.component(e=>{let{brush:r,eraser:i,sources:a,i18n:s,root:l,label:u=void 0,show_label:d,changeable:f=false,theme_mode:p,layers:m,composite:h,background:g,layer_options:_={allow_additional_layers:true,layers:[],disabled:false},transforms:v,accept_blobs:y,canvas_size:b,fixed_canvas:x=false,realtime:ee=false,upload:S,is_dragging:C=void 0,placeholder:w=void 0,border_region:te,full_history:T=null,webcam_options:E={mirror:true,constraints:{}},show_download_button:ne=false,image_id:D=null,onclear:re,onupload:ie,onchange:ae,oninput:oe,onsave:se,onreceive_null:O,ondownload_error:ce}=t,k=false;function A(e){return !!e}function le(e){return !!e}async function j(){let e;try{e=await(void 0).get_blobs();}catch{return {background:null,layers:[],composite:null}}let t=e.background?S(await he$2([new File([e.background],`background.png`)]),l):Promise.resolve(null),r=e.layers.filter(A).map(async(e,t)=>S(await he$2([new File([e],`layer_${t}.png`)]),l)),i=e.composite?S(await he$2([new File([e.composite],`composite.png`)]),l):Promise.resolve(null),[a,o,...s]=await Promise.all([t,i,...r]);return {background:Array.isArray(a)?a[0]:a,layers:s.flatMap(e=>Array.isArray(e)?e:[e]).filter(le),composite:Array.isArray(o)?o[0]:o}}let ue=false,M=false;function N(){return new Promise(e=>setTimeout(()=>e(),30))}let P=false,F=false;async function I(){if(!ee)return;if(P){F=true;return}P=true,await N();let e=await(void 0).get_blobs(),t=[],n=Math.random().toString(36).substring(2);e.background&&t.push([n,`background`,new File([e.background],`background.png`),null]),e.composite&&t.push([n,`composite`,new File([e.composite],`composite.png`),null]),e.layers.forEach((e,r)=>{e&&t.push([n,`layer`,new File([e],`layer_${r}.png`),r]);}),await Promise.all(t.map(async([e,t,n,r])=>y({binary:true,data:{file:n,id:e,type:t,index:r}}))),D=n,ae?.(),await N(),P=false,F&&(F=false,P=false,I());}let L=derived(()=>w?tr(w):[false,false]),R=derived(()=>L()[0]),z=derived(()=>L()[1]),B=`image`,V=true,H;function U(e){h$1(e,{show_label:d,Icon:H$2,label:u||s(`image.image`)}),e.push(` `),$n(e,{transforms:v,composite:h,layers:m,background:g,canvas_size:b,changeable:f,onsave:se,oninput:oe,onchange:I,onclear:()=>re?.(),ondownload_error:ce,sources:a,brush_options:r,eraser_options:i,fixed_canvas:x,border_region:te,layer_options:_,i18n:s,root:l,upload:S,webcam_options:E,show_download_button:ne,theme_mode:p,get background_image(){return ue},set background_image(e){ue=e,V=false;},get current_tool(){return B},set current_tool(e){B=e,V=false;},get is_dragging(){return C},set is_dragging(e){C=e,V=false;},get has_drawn(){return k},set has_drawn(e){k=e,V=false;},get can_undo(){return M},set can_undo(e){M=e,V=false;},get full_history(){return T},set full_history(e){T=e,V=false;},children:e=>{B===`image`&&!M?(e.push(``),e.push(`
    `),a&&a.length?(e.push(``),R()||z()?(e.push(``),R()?(e.push(``),e.push(`

    ${escape_html(R())}

    `)):e.push(``),e.push(` `),z()?(e.push(``),e.push(`

    ${escape_html(z())}

    `)):e.push(``),e.push(``)):(e.push(``),e.push(`
    Upload an image
    `)),e.push(``)):e.push(``),e.push(` `),a&&a.length&&r&&!w?(e.push(``),e.push(`
    or
    `)):e.push(``),e.push(` `),r&&!w?(e.push(``),e.push(`
    select the draw tool to start
    `)):e.push(``),e.push(`
    `)):e.push(``),e.push(``);},$$slots:{default:true}}),e.push(``);}do V=true,H=e.copy(),U(H);while(!V);e.subsume(H),bind_props(t,{is_dragging:C,full_history:T,image_id:D,get_data:j});});}function rr(n,i){n.component(n=>{let{$$slots:a,$$events:o,...s}=i;class c extends m$1{async get_data(){let e=await super.get_data(),t=await p();return {...e,value:t}}}let l=new c(s,{server:{accept_blobs:()=>{}},buttons:[],height:350,border_region:0}),u=null,d=false,f=false;async function p(){if(u){let e={id:u};return u=null,e}return await(void 0).get_data()}let m=false;function h(){l.dispatch(`apply`);}let g=derived(()=>l.props.value?.background||l.props.value?.layers?.length||l.props.value?.composite),_=derived(()=>l.props.value?.background?new B$2(l.props.value.background):null),v=derived(()=>l.props.value?.composite?new B$2(l.props.value.composite):null),y=derived(()=>l.props.value?.layers?.map(e=>new B$2(e))||[]),b=derived(()=>l.shared.theme_mode===`dark`||l.shared.theme_mode===`system`&&typeof window<`u`&&window.matchMedia?.(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),x=true,ee;function S(e){l.shared.interactive?(e.push(``),n$1(e,{visible:l.shared.visible,variant:g()?`solid`:`dashed`,border_mode:m?`focus`:`base`,padding:false,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,height:l.props.height,width:l.props.width,allow_overflow:true,overflow_behavior:`visible`,container:l.shared.container,scale:l.shared.scale,min_width:l.shared.min_width,children:e=>{f$1(e,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{on_clear_status:()=>l.dispatch(`clear_status`,l.shared.loading_status)}])),e.push(` `),nr(e,{border_region:l.props.border_region??0,canvas_size:l.props.canvas_size??[800,800],layers:y(),composite:v(),background:_(),root:l.shared.root,sources:l.props.sources??[`upload`,`webcam`,`clipboard`],label:l.shared.label,show_label:l.shared.show_label,fixed_canvas:l.props.fixed_canvas,oninput:()=>{f?l.dispatch(`input`):f=true;},onsave:()=>h(),onclear:()=>l.dispatch(`clear`),onupload:()=>l.dispatch(`upload`),onreceive_null:()=>l.props.value={background:null,layers:[],composite:null},onchange:()=>{d?l.dispatch(`change`):d=true;},brush:l.props.brush??false,eraser:l.props.eraser??false,changeable:l.shared.attached_events?.includes(`apply`)??false,realtime:l.shared.attached_events?.includes(`change`)||l.shared.attached_events?.includes(`input`),i18n:l.i18n,transforms:l.props.transforms??[],accept_blobs:l.shared.server.accept_blobs,layer_options:l.props.layers,upload:(...e)=>l.shared.client.upload(...e),placeholder:l.props.placeholder,webcam_options:l.props.webcam_options,show_download_button:l.props.buttons===null?true:(l.props.buttons??[]).includes(`download`),theme_mode:b(),ondownload_error:e=>l.dispatch(`error`,e),get is_dragging(){return m},set is_dragging(e){m=e,x=false;},get image_id(){return u},set image_id(e){u=e,x=false;}}),e.push(``);},$$slots:{default:true}})):(e.push(``),n$1(e,{visible:l.shared.visible,variant:`solid`,border_mode:m?`focus`:`base`,padding:false,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,height:l.props.height,width:l.props.width,allow_overflow:true,overflow_behavior:`visible`,container:l.shared.container,scale:l.shared.scale,min_width:l.shared.min_width,children:e=>{f$1(e,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{on_clear_status:()=>l.dispatch(`clear_status`,l.shared.loading_status)}])),e.push(` `),f$2(e,{onselect:e=>l.dispatch(`select`,e),onshare:e=>l.dispatch(`share`,e),onerror:e=>l.dispatch(`error`,e),value:l.props.value?.composite||null,label:l.shared.label,show_label:l.shared.show_label,buttons:l.props.buttons??[],selectable:l.props._selectable,i18n:l.i18n}),e.push(``);},$$slots:{default:true}})),e.push(``);}do x=true,ee=n.copy(),S(ee);while(!x);n.subsume(ee);});} + +var Index38 = /*#__PURE__*/Object.freeze({ + __proto__: null, + default: rr +}); + +export { Bt$2 as $, Ai as A, Be$1 as B, C, Dr as D, o as E, ri$1 as F, Ci$1 as G, Ce as H, mi$1 as I, p as J, ai$1 as K, wi$1 as L, Mr as M, ui$1 as N, O, Pn$1 as P, Q$2 as Q, R$1 as R, Si$1 as S, Tn$2 as T, Ui as U, Ve$1 as V, Ne$1 as W, Xe$3 as X, Yr as Y, Z$2 as Z, M as _, a$1 as a, D as a0, Fe$1 as a1, Ar$1 as a2, cn$1 as a3, _r$1 as a4, un$2 as a5, ii$1 as a6, Ti$1 as a7, we as a8, hi$1 as a9, oi$1 as aa, pi$1 as ab, _i$1 as ac, Pe$1 as ad, re as ae, z as af, et$3 as ag, Wt$2 as ah, Vt$2 as ai, d as aj, s$1 as ak, Ft$2 as al, Index38 as am, ia as b, cn as c, ra as d, ei as e, ve as f, bt$1 as g, Me$1 as h, it$2 as i, zt$2 as j, dr$1 as k, Cn$2 as l, mi as m, n, Sn$2 as o, pi as p, c as q, rt$2 as r, pr$1 as s, ta as t, Ae$1 as u, vi as v, wn$2 as w, xt$1 as x, qt$2 as y, zi as z }; +//# sourceMappingURL=Index38-CMskepfD.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index39-D1cNNdVv.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index39-D1cNNdVv.js new file mode 100644 index 0000000000000000000000000000000000000000..e5dc749a8ac8a7d1d5f5e4eccc110e09598dd44f --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index39-D1cNNdVv.js @@ -0,0 +1,182 @@ +import { J as m$1, K as tick } from './2-CQ_Bz8hd.js'; +import { l as loop, r as raf, i as is_date, f } from './statustracker-cy5aG8h8.js'; +import { n as n$1, h, H as H$1, v, V as Ve$1, _, S as Se$1, a as He$1, g, i as ie$1, m as ee$1, z as ze$1 } from './src3-h7ZBftxa.js'; +import { g as g$1 } from './src4-BlBbNhwG.js'; +import './async-Cv1-GZGV.js'; +import { w as writable, s as spread_props, c as bind_props, d as derived, o as store_get, a as attr_class, b as attr_style, i as stringify, m as attributes, u as unsubscribe_stores } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +/* +Adapted from https://github.com/mattdesl +Distributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md +*/ + +/** + * @param {number} t + * @returns {number} + */ +function linear(t) { + return t; +} + +/** @import { Task } from '../internal/client/types' */ +/** @import { Tweened, TweenOptions } from './public' */ + +/** + * @template T + * @param {T} a + * @param {T} b + * @returns {(t: number) => T} + */ +function get_interpolator(a, b) { + if (a === b || a !== a) return () => a; + + const type = typeof a; + if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) { + throw new Error('Cannot interpolate values of different type'); + } + + if (Array.isArray(a)) { + const arr = /** @type {Array} */ (b).map((bi, i) => { + return get_interpolator(/** @type {Array} */ (a)[i], bi); + }); + + // @ts-ignore + return (t) => arr.map((fn) => fn(t)); + } + + if (type === 'object') { + if (!a || !b) { + throw new Error('Object cannot be null'); + } + + if (is_date(a) && is_date(b)) { + const an = a.getTime(); + const bn = b.getTime(); + const delta = bn - an; + + // @ts-ignore + return (t) => new Date(an + t * delta); + } + + const keys = Object.keys(b); + + /** @type {Record T>} */ + const interpolators = {}; + keys.forEach((key) => { + // @ts-ignore + interpolators[key] = get_interpolator(a[key], b[key]); + }); + + // @ts-ignore + return (t) => { + /** @type {Record} */ + const result = {}; + keys.forEach((key) => { + result[key] = interpolators[key](t); + }); + return result; + }; + } + + if (type === 'number') { + const delta = /** @type {number} */ (b) - /** @type {number} */ (a); + // @ts-ignore + return (t) => a + t * delta; + } + + // for non-numeric values, snap to the final value immediately + return () => b; +} + +/** + * A tweened store in Svelte is a special type of store that provides smooth transitions between state values over time. + * + * @deprecated Use [`Tween`](https://svelte.dev/docs/svelte/svelte-motion#Tween) instead + * @template T + * @param {T} [value] + * @param {TweenOptions} [defaults] + * @returns {Tweened} + */ +function tweened(value, defaults = {}) { + const store = writable(value); + /** @type {Task} */ + let task; + let target_value = value; + /** + * @param {T} new_value + * @param {TweenOptions} [opts] + */ + function set(new_value, opts) { + target_value = new_value; + + if (value == null) { + store.set((value = new_value)); + return Promise.resolve(); + } + + /** @type {Task | null} */ + let previous_task = task; + + let started = false; + let { + delay = 0, + duration = 400, + easing = linear, + interpolate = get_interpolator + } = { ...defaults, ...opts }; + + if (duration === 0) { + if (previous_task) { + previous_task.abort(); + previous_task = null; + } + store.set((value = target_value)); + return Promise.resolve(); + } + + const start = raf.now() + delay; + + /** @type {(t: number) => T} */ + let fn; + task = loop((now) => { + if (now < start) return true; + if (!started) { + fn = interpolate(/** @type {any} */ (value), new_value); + if (typeof duration === 'function') + duration = duration(/** @type {any} */ (value), new_value); + started = true; + } + if (previous_task) { + previous_task.abort(); + previous_task = null; + } + const elapsed = now - start; + if (elapsed > /** @type {number} */ (duration)) { + store.set((value = new_value)); + return false; + } + // @ts-ignore + store.set((value = fn(easing(elapsed / duration)))); + return true; + }); + return task.promise; + } + return { + set, + update: (fn, opts) => + set(fn(/** @type {any} */ (target_value), /** @type {any} */ (value)), opts), + subscribe: store.subscribe + }; +} + +var e={value:()=>{}};function n(e){this._=e;}function r(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return {type:e,name:n}})}n.prototype={constructor:n,on:function(e,t){var n=this._,o=r(e+``,n),s,c=-1,l=o.length;if(arguments.length<2){for(;++c0)for(var n=Array(i),r=0,i,a;r=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),b.hasOwnProperty(t)?{space:b[t],local:e}:e}function S(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function C(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function w(e){var t=x(e);return (t.local?C:S)(t)}function T(){}function E(e){return e==null?T:function(){return this.querySelector(e)}}function D(e){typeof e!=`function`&&(e=E(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i=v&&(v=_+1);!(b=g[v])&&++v=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function me(e){e||=he;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;at?1:e>=t?0:NaN}function ge(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _e(){return Array.from(this)}function ve(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?ke:typeof t==`function`?je:Ae)(e,t,n??``)):Ne(this.node(),e)}function Ne(e,t){return e.style.getPropertyValue(t)||U(e).getComputedStyle(e,null).getPropertyValue(t)}function Pe(e){return function(){delete this[e];}}function Fe(e,t){return function(){this[e]=t;}}function Ie(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n;}}function Le(e,t){return arguments.length>1?this.each((t==null?Pe:typeof t==`function`?Ie:Fe)(e,t)):this.node()[e]}function Re(e){return e.trim().split(/^|\s+/)}function W(e){return e.classList||new ze(e)}function ze(e){this._node=e,this._names=Re(e.getAttribute(`class`)||``);}ze.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)));},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)));},contains:function(e){return this._names.indexOf(e)>=0}};function Be(e,t){for(var n=W(e),r=-1,i=t.length;++r=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function ht(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n{let {position:r=.5,disabled:i=false,slider_color:a=`var(--border-color-primary)`,image_size:o={top:0,left:0,width:0,height:0},el:s=void 0,parent_el:c=void 0,children:l}=t,u=0,d=false;e.push(`
    `),l?(e.push(``),l(e),e.push(``)):e.push(``),e.push(`
    ◢◢
    `),bind_props(t,{position:r,el:s,parent_el:c});});}function $(e,t){e.component(e=>{let{src:n=void 0,fullscreen:r=false,fixed:i=false,transform:a=`translate(0px, 0px) scale(1)`,img_el:o=void 0,hidden:s=false,variant:c=`upload`,max_height:l=500,onload:u,$$slots:d,$$events:f,...p}=t;e.push(``),bind_props(t,{img_el:o});});}function It(e,t){e.component(e=>{var l;let{value:d=[null,null],label:m=void 0,show_download_button:h$1=true,show_label:_$1,i18n:b,position:x=.5,layer_images:S=true,show_single:C=false,slider_color:w,show_fullscreen_button:T=true,fullscreen:E=false,buttons:D=null,on_custom_button_click:O=null,el_width:k=0,max_height:A,interactive:j=true,onclear:M,onfullscreen:N}=t,P,F,I=tweened({x:0,y:0,z:1},{duration:75}),L,R={top:0,left:0,width:0,height:0},ee=derived(()=>ne(x,0,R.width,R.left,store_get(l??={},`$transform`,I).x,store_get(l??={},`$transform`,I).z)),te=derived(()=>S?`clip-path: inset(0 0 0 ${ee()*100}%)`:``);function ne(e,t,n,r,i,a){return (e*n+r-i)/a/t}function z(e){R=e;}let B=true,V;function re(e){h(e,{show_label:_$1,Icon:H$1,label:m||b(`image.image`)}),e.push(` `),(d===null||d[0]===null||d[1]===null)&&!C?(e.push(``),v(e,{unpadded_box:true,size:`large`,children:e=>{H$1(e);}})):(e.push(``),e.push(`
    `),Ve$1(e,{buttons:D,on_custom_button_click:O,children:e=>{_(e,{Icon:Se$1,label:b(`common.undo`),disabled:store_get(l??={},`$transform`,I).z===1,onclick:()=>void 0}),e.push(` `),T?(e.push(``),He$1(e,{fullscreen:E,onclick:e=>{E=e,N?.(e);}})):e.push(``),e.push(` `),h$1?(e.push(``),g(e,{href:d[1]?.url,download:d[1]?.orig_name||`image`,children:e=>{_(e,{Icon:ie$1,label:b(`common.download`)});},$$slots:{default:true}})):e.push(``),e.push(` `),j?(e.push(``),_(e,{Icon:ee$1,label:`Remove Image`,onclick:e=>{d=[null,null],M?.(),e.stopPropagation();}})):e.push(``),e.push(``);}}),e.push(` `),Q(e,{slider_color:w,image_size:R,get position(){return x},set position(e){x=e,B=false;},get el(){return F},set el(e){F=e,B=false;},get parent_el(){return L},set parent_el(e){L=e,B=false;},children:e=>{$(e,{src:d?.[0]?.url,alt:``,loading:`lazy`,variant:`preview`,transform:`translate(${stringify(store_get(l??={},`$transform`,I).x)}px, ${stringify(store_get(l??={},`$transform`,I).y)}px) scale(${stringify(store_get(l??={},`$transform`,I).z)})`,fullscreen:E,max_height:A,onload:z,get img_el(){return P},set img_el(e){P=e,B=false;}}),e.push(` `),$(e,{variant:`preview`,fixed:S,hidden:!d?.[1]?.url,src:d?.[1]?.url,alt:``,loading:`lazy`,style:`${te()}; background: var(--block-background-fill);`,transform:`translate(${stringify(store_get(l??={},`$transform`,I).x)}px, ${stringify(store_get(l??={},`$transform`,I).y)}px) scale(${stringify(store_get(l??={},`$transform`,I).z)})`,fullscreen:E,max_height:A,onload:z}),e.push(``);},$$slots:{default:true}}),e.push(`
    `)),e.push(``);}do B=true,V=e.copy(),re(V);while(!B);e.subsume(V),l&&unsubscribe_stores(l),bind_props(t,{value:d,position:x,fullscreen:E,el_width:k});});}function Lt(e,t){e.component(e=>{let{onremove_image:n}=t;e.push(`
    `),_(e,{Icon:ee$1,label:`Remove Image`,onclick:e=>{n?.(),e.stopPropagation();}}),e.push(`
    `);});}function Rt(e,t){e.component(e=>{let{value:a=[null,null],label:s=void 0,show_label:l,root:u,position:d=.5,upload_count:f=2,show_download_button:h$1=true,slider_color:g$2,upload:y,stream_handler:b,max_file_size:x=null,i18n:S,max_height:C,upload_promise:w=void 0,dragging:T=false,onclear:E,ondrag:D,onupload:O,children:k}=t,A=a||[null,null],j;async function M(e,t){let n=Array.isArray(e)?e:[e],r=[a[0],a[1]];n.length>1?r[t]=n[0]:r[t]=n[t],a=r,await tick(),O?.(r);}let N=true,P;function F(e){h(e,{show_label:l,Icon:H$1,label:s||S(`image.image`)}),e.push(`
    `),a?.[0]?.url||a?.[1]?.url?(e.push(``),Lt(e,{onremove_image:()=>{d=.5,a=[null,null],E?.();}})):e.push(``),e.push(` `),a?.[1]?.url?(e.push(``),e.push(`
    `),h$1?(e.push(``),g(e,{href:a[1].url,download:a[1].orig_name||`image`,children:e=>{_(e,{Icon:ie$1});},$$slots:{default:true}})):e.push(``),e.push(`
    `)):e.push(``),e.push(` `),Q(e,{disabled:f==2||!a?.[0],slider_color:g$2,get position(){return d},set position(e){d=e,N=false;},children:e=>{e.push(``),A?.[0]?(e.push(``),$(e,{variant:`upload`,src:A[0]?.url,alt:``,max_height:C,get img_el(){return j},set img_el(e){j=e,N=false;}})):(e.push(``),e.push(``),g$1(e,{filetype:`image/*`,onload:e=>M(e,0),disable_click:!!a?.[0],root:u,file_count:`multiple`,upload:y,stream_handler:b,max_file_size:x,get upload_promise(){return w},set upload_promise(e){w=e,N=false;},get dragging(){return T},set dragging(e){T=e,N=false;},children:e=>{k?(e.push(``),k(e),e.push(``)):e.push(``),e.push(``);},$$slots:{default:true}}),e.push(`
    `)),e.push(` `),!A?.[1]&&f===2?(e.push(``),g$1(e,{filetype:`image/*`,onload:e=>M(e,1),disable_click:!!a?.[1],root:u,file_count:`multiple`,upload:y,stream_handler:b,max_file_size:x,get upload_promise(){return w},set upload_promise(e){w=e,N=false;},get dragging(){return T},set dragging(e){T=e,N=false;},children:e=>{k?(e.push(``),k(e),e.push(``)):e.push(``),e.push(``);},$$slots:{default:true}})):!A?.[1]&&f===1?(e.push(``),e.push(``),v(e,{unpadded_box:true,size:`large`,children:e=>{H$1(e);}}),e.push(``)):A?.[1]?(e.push(``),$(e,{variant:`upload`,src:A[1].url,alt:``,fixed:f===1,transform:`translate(0px, 0px) scale(1)`,max_height:C})):e.push(``),e.push(``);},$$slots:{default:true}}),e.push(``);}do N=true,P=e.copy(),F(P);while(!N);e.subsume(P),bind_props(t,{value:a,position:d,upload_promise:w,dragging:T});});}function zt(e,t){e.component(e=>{let{value:n=[null,null],upload:r,stream_handler:i,label:a,show_label:o,i18n:s,root:c,upload_count:l=1,dragging:u=false,max_height:d,max_file_size:f=null,upload_promise:p=void 0,onclear:m,ondrag:h,onupload:g,children:_}=t,y=true,b;function x(e){Rt(e,{slider_color:`var(--border-color-primary)`,position:.5,root:c,onclear:m,ondrag:e=>{u=e,h?.(e);},onupload:g,label:a,show_label:o,upload_count:l,stream_handler:i,upload:r,max_file_size:f,max_height:d,i18n:s,get upload_promise(){return p},set upload_promise(e){p=e,y=false;},get value(){return n},set value(e){n=e,y=false;},get dragging(){return u},set dragging(e){u=e,y=false;},children:e=>{_?(e.push(``),_(e),e.push(``)):e.push(``),e.push(``);},$$slots:{default:true}});}do y=true,b=e.copy(),x(b);while(!y);e.subsume(b),bind_props(t,{value:n,dragging:u,upload_promise:p});});}function Bt(n,r){n.component(n=>{let i;class a extends m$1{async get_data(){return i&&(await i,await tick()),await super.get_data()}}let{$$slots:o,$$events:s,...c}=r,u=new a(c),f$1=false,p=false,m=u.props.value??[null,null],h=derived(()=>Math.max(0,Math.min(100,u.props.slider_position))/100);u.watch_for_change();let g=true,y;function b(e){!u.shared.interactive||m?.[1]&&m?.[0]?(e.push(``),n$1(e,{visible:u.shared.visible,variant:`solid`,border_mode:p?`focus`:`base`,padding:false,elem_id:u.shared.elem_id,elem_classes:u.shared.elem_classes,height:u.props.height||void 0,width:u.props.width,allow_overflow:false,container:u.shared.container,scale:u.shared.scale,min_width:u.shared.min_width,get fullscreen(){return f$1},set fullscreen(e){f$1=e,g=false;},children:e=>{f(e,spread_props([{autoscroll:u.shared.autoscroll,i18n:u.i18n},u.shared.loading_status])),e.push(` `),It(e,{onclear:()=>{u.dispatch(`clear`),u.dispatch(`input`);},onfullscreen:e=>{f$1=e;},fullscreen:f$1,interactive:u.shared.interactive,label:u.shared.label,show_label:u.shared.show_label,show_download_button:u.props.buttons.some(e=>typeof e==`string`&&e===`download`),i18n:u.i18n,show_fullscreen_button:u.props.buttons.some(e=>typeof e==`string`&&e===`fullscreen`),buttons:u.props.buttons,on_custom_button_click:e=>{u.dispatch(`custom_button_click`,{id:e});},position:h(),slider_color:u.props.slider_color,max_height:u.props.max_height,get value(){return m},set value(e){m=e,g=false;}}),e.push(``);},$$slots:{default:true}})):(e.push(``),n$1(e,{visible:u.shared.visible,variant:m?.[0]||m?.[1]?`solid`:`dashed`,border_mode:p?`focus`:`base`,padding:false,elem_id:u.shared.elem_id,elem_classes:u.shared.elem_classes,height:u.props.height||void 0,width:u.props.width,allow_overflow:false,container:u.shared.container,scale:u.shared.scale,min_width:u.shared.min_width,children:e=>{f(e,spread_props([{autoscroll:u.shared.autoscroll,i18n:u.i18n},u.shared.loading_status,{on_clear_status:()=>u.dispatch(`clear_status`,u.shared.loading_status)}])),e.push(` `),zt(e,{root:u.shared.root,onclear:()=>{u.dispatch(`clear`),u.dispatch(`input`);},ondrag:e=>p=e,onupload:()=>{u.dispatch(`upload`),u.dispatch(`input`);},label:u.shared.label,show_label:u.shared.show_label,upload_count:u.props.upload_count,max_file_size:u.shared.max_file_size,i18n:u.i18n,upload:(...e)=>u.shared.client.upload(...e),stream_handler:u.shared.client?.stream,max_height:u.props.max_height,get upload_promise(){return i},set upload_promise(e){i=e,g=false;},get value(){return m},set value(e){m=e,g=false;},get dragging(){return p},set dragging(e){p=e,g=false;},children:e=>{e.push(``),ze$1(e,{i18n:u.i18n,type:`image`,placeholder:u.props.placeholder}),e.push(``);},$$slots:{default:true}}),e.push(``);},$$slots:{default:true}})),e.push(``);}do g=true,y=n.copy(),b(y);while(!g);n.subsume(y);});} + +export { Bt as default }; +//# sourceMappingURL=Index39-D1cNNdVv.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index4-DNEEFm7j.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index4-DNEEFm7j.js new file mode 100644 index 0000000000000000000000000000000000000000..fb69f7b4d1b60f1ceeaba2f0be6ee29127f279a7 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index4-DNEEFm7j.js @@ -0,0 +1,13 @@ +export { f as BaseTextbox, p as default } from './Index3-CP6pEq_w.js'; +export { default as BaseExample } from './Example2-70VzHOK1.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +//# sourceMappingURL=Index4-DNEEFm7j.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index40-D9vK7L_4.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index40-D9vK7L_4.js new file mode 100644 index 0000000000000000000000000000000000000000..ea0c36778fbdf53392f36d184206e5961dffa6a6 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index40-D9vK7L_4.js @@ -0,0 +1,16 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, h, W } from './src3-h7ZBftxa.js'; +import { c } from './JSON-CWr9Wv2h.js'; +import './async-Cv1-GZGV.js'; +import { s as spread_props } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function s(s,c$1){s.component(s=>{let{$$slots:l,$$events:u,...d}=c$1,f$1=new m$1(d);f$1.props.value,n(s,{visible:f$1.shared.visible,test_id:`json`,elem_id:f$1.shared.elem_id,elem_classes:f$1.shared.elem_classes,container:f$1.shared.container,scale:f$1.shared.scale,min_width:f$1.shared.min_width,padding:false,allow_overflow:true,overflow_behavior:`auto`,height:f$1.props.height,min_height:f$1.props.min_height,max_height:f$1.props.max_height,children:e=>{e.push(`
    `),f$1.shared.label?(e.push(``),h(e,{Icon:W,show_label:f$1.shared.show_label,label:f$1.shared.label,float:false,disable:f$1.shared.container===false})):e.push(``),e.push(`
    `),f(e,spread_props([{autoscroll:f$1.shared.autoscroll,i18n:f$1.i18n},f$1.shared.loading_status,{on_clear_status:()=>f$1.dispatch(`clear_status`,f$1.shared.loading_status)}])),e.push(` `),c(e,{value:f$1.props.value,open:f$1.props.open,theme_mode:f$1.shared.theme_mode,show_indices:f$1.props.show_indices,show_copy_button:f$1.props.buttons==null?true:f$1.props.buttons.some(e=>typeof e==`string`&&e===`copy`),buttons:f$1.props.buttons,on_custom_button_click:e=>{f$1.dispatch(`custom_button_click`,{id:e});},label_height:0}),e.push(``);},$$slots:{default:true}});});} + +export { c as BaseJSON, s as default }; +//# sourceMappingURL=Index40-D9vK7L_4.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index41-DY47mH2C.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index41-DY47mH2C.js new file mode 100644 index 0000000000000000000000000000000000000000..16c29edcf100e976442383a0de588b8f1a408370 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index41-DY47mH2C.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, h, L as K, v } from './src3-h7ZBftxa.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, b as attr_style, e as escape_html, h as ensure_array_like, f as attr, i as stringify, s as spread_props, d as derived } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function c(e,t){e.component(e=>{let{value:n,color:r=void 0,selectable:i=false,show_heading:a=true,onselect:o}=t;function c(e){return e.replace(/\s/g,`-`)}if(e.push(`
    `),a||!n.confidences?(e.push(``),e.push(`${escape_html(n.label)}`)):e.push(``),e.push(` `),typeof n==`object`&&n.confidences){e.push(``),e.push(``);let t=ensure_array_like(n.confidences);for(let n=0,r=t.length;n
    ${escape_html(r.label)}
    ${escape_html(Math.round(r.confidence*100))}%
    `);}e.push(``);}else e.push(``);e.push(`
    `);});}function l(l,u){l.component(l=>{let{$$slots:d,$$events:f$1,...p}=u,m=new m$1(p),h$1=derived(()=>m.props.value.label);m.watch_for_change(),n(l,{test_id:`label`,visible:m.shared.visible,elem_id:m.shared.elem_id,elem_classes:m.shared.elem_classes,container:m.shared.container,scale:m.shared.scale,min_width:m.shared.min_width,padding:false,children:e=>{f(e,spread_props([{autoscroll:m.shared.autoscroll,i18n:m.i18n},m.shared.loading_status,{on_clear_status:()=>m.dispatch(`clear_status`,m.shared.loading_status)}])),e.push(` `),m.shared.show_label&&m.props.buttons&&m.props.buttons.length>0?(e.push(``),Ve(e,{buttons:m.props.buttons,on_custom_button_click:e=>{m.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),m.shared.show_label?(e.push(``),h(e,{Icon:K,label:m.shared.label||m.i18n(`label.label`),disable:m.shared.container===false,float:m.props.show_heading===true})):e.push(``),e.push(` `),h$1()!==void 0&&h$1()!==null?(e.push(``),c(e,{onselect:e=>m.dispatch(`select`,e),selectable:m.props._selectable,value:m.props.value,color:m.props.color,show_heading:m.props.show_heading})):(e.push(``),v(e,{unpadded_box:true,children:e=>{K(e);}})),e.push(``);},$$slots:{default:true}});});} + +export { c as BaseLabel, l as default }; +//# sourceMappingURL=Index41-DY47mH2C.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index42-HeTRxHPQ.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index42-HeTRxHPQ.js new file mode 100644 index 0000000000000000000000000000000000000000..b190c5faf2d922c0847db1a6b576b445c1f2e231 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index42-HeTRxHPQ.js @@ -0,0 +1,11 @@ +import { U as h, J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { V as Ve, n, _, j as ne, O as Ue, D } from './src3-h7ZBftxa.js'; +import { u as ut } from './markdown-code-CPYQEp1F.js'; +import './async-Cv1-GZGV.js'; +import { a as attr_class, i as stringify, f as attr, b as attr_style, s as spread_props } from './renderer-Dic3PuWn.js'; + +function d(t,n){t.component(t=>{let{elem_classes:r=[],visible:s=true,value:d,min_height:f=void 0,rtl:p=false,sanitize_html:m=true,line_breaks:h$1=false,latex_delimiters:g=[],header_links:_$1=false,height:v=void 0,show_copy_button:y=false,loading_status:b=void 0,theme_mode:x,onchange:S=()=>{},oncopy:C=e=>{}}=n,w=false,T;async function E(){`clipboard`in navigator&&(await navigator.clipboard.writeText(d),C({value:d}),D$1());}function D$1(){w=true,T&&clearTimeout(T),T=setTimeout(()=>{w=false;},1e3);}t.push(``),y?(t.push(``),Ve(t,{children:e=>{_(e,{Icon:w?D:ne,onclick:E,label:w?`Copied conversation`:`Copy conversation`});}})):t.push(``),t.push(` `),ut(t,{message:d,latex_delimiters:g,sanitize_html:m,line_breaks:h$1,chatbot:false,header_links:_$1,theme_mode:x}),t.push(``);});}function f(e,i){e.component(e=>{let{$$slots:a,$$events:o,...c}=i,l=new m$1(c);n(e,{visible:l.shared.visible,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,container:l.shared.container,allow_overflow:true,overflow_behavior:`auto`,height:l.props.height??void 0,min_height:l.props.min_height??void 0,max_height:l.props.max_height??void 0,rtl:l.props.rtl,children:e=>{f$1(e,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{variant:`center`,on_clear_status:()=>l.dispatch(`clear_status`,l.shared.loading_status)}])),e.push(`
    `),d(e,{value:l.props.value,elem_classes:l.shared.elem_classes,visible:l.shared.visible,rtl:l.props.rtl,onchange:()=>l.dispatch(`change`),oncopy:e=>l.dispatch(`copy`,e),latex_delimiters:l.props.latex_delimiters,sanitize_html:l.props.sanitize_html,line_breaks:l.props.line_breaks,header_links:l.props.header_links,show_copy_button:l.props.buttons?.includes(`copy`),loading_status:l.shared.loading_status,theme_mode:l.shared.theme_mode}),e.push(`
    `),Ue(e,{visible:false}),e.push(``);},$$slots:{default:true}});});} + +export { d, f }; +//# sourceMappingURL=Index42-HeTRxHPQ.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index43-DI-bhjlT.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index43-DI-bhjlT.js new file mode 100644 index 0000000000000000000000000000000000000000..8660a37a5efdb6ee2f4c9a8decddc0f3d3be494a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index43-DI-bhjlT.js @@ -0,0 +1,14 @@ +export { n as BaseExample } from './Example32-CKfOgpPw.js'; +export { d as BaseMarkdown, f as default } from './Index42-HeTRxHPQ.js'; +import './markdown-code-CPYQEp1F.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './html-CfyvkLET.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './server-CR3r1l-0.js'; +//# sourceMappingURL=Index43-DI-bhjlT.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index44-BXv9EhtL.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index44-BXv9EhtL.js new file mode 100644 index 0000000000000000000000000000000000000000..7727651fdaabc98db94afd900c0a097014bdf94c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index44-BXv9EhtL.js @@ -0,0 +1,18 @@ +import { J as m$1, K as tick } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { h as h$1, l as z, n, z as ze, V as Ve, v } from './src3-h7ZBftxa.js'; +import { g as g$1, _ } from './src4-BlBbNhwG.js'; +export { default as BaseExample } from './Example35-Us8bYa8W.js'; +import { c, s } from './Model3D-2UhLHhi0.js'; +import './async-Cv1-GZGV.js'; +import { c as bind_props, s as spread_props, d as derived } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function h(e,t){e.component(e=>{let{value:n=void 0,display_mode:a=`solid`,clear_color:o=[0,0,0,0],label:s$1=``,show_label:u,root:f,i18n:h,zoom_speed:g=1,pan_speed:_$1=1,max_file_size:v=null,uploading:y=void 0,upload_promise:b=void 0,camera_position:x=[null,null,null],upload:S,stream_handler:C,onchange:w,onclear:T,ondrag:E,onload:D,onerror:O,children:k}=t,A=false,j=s(),M=derived(()=>j.gsplat_component),N=derived(()=>j.babylon_component);async function P(e){n=e,await tick(),w?.(n),D?.(n);}async function F(){n=null,await tick(),T?.(),w?.(null);}async function I(){}function L(e){O?.(e);}let R=true,z$1;function B(e){h$1(e,{show_label:u,Icon:z,label:s$1||`3D Model`}),e.push(` `),n==null?(e.push(``),g$1(e,{upload:S,stream_handler:C,onload:P,root:f,max_file_size:v,filetype:[`.stl`,`.obj`,`.gltf`,`.glb`,`model/obj`,`.splat`,`.ply`],onerror:L,aria_label:h(`model3d.drop_to_upload`),get upload_promise(){return b},set upload_promise(e){b=e,R=false;},get dragging(){return A},set dragging(e){A=e,R=false;},get uploading(){return y},set uploading(e){y=e,R=false;},children:e=>{k?.(e),e.push(``);},$$slots:{default:true}})):(e.push(``),e.push(`
    `),_(e,{undoable:j.renderer===`babylon`,onclear:F,i18n:h,onundo:I}),e.push(` `),j.renderer===`gsplat`&&M()?(e.push(``),M()?(e.push(``),M()(e,{value:n,zoom_speed:g,pan_speed:_$1}),e.push(``)):(e.push(``),e.push(``))):j.renderer===`babylon`&&N()?(e.push(``),N()?(e.push(``),N()(e,{value:n,display_mode:a,clear_color:o,camera_position:x,zoom_speed:g,pan_speed:_$1,data:j.data}),e.push(``)):(e.push(``),e.push(``))):e.push(``),e.push(`
    `)),e.push(``);}do R=true,z$1=e.copy(),B(z$1);while(!R);e.subsume(z$1),bind_props(t,{value:n,uploading:y,upload_promise:b});});}function g(c$1,l){c$1.component(c$1=>{class u extends m$1{async get_data(){return S&&(await S,await tick()),await super.get_data()}}let{$$slots:d,$$events:g,..._}=l,v$1=new u(_);v$1.props.value;let y=false,b=false,x=false,S,C=typeof window<`u`;function w(e){v$1.props.value=e,v$1.dispatch(`change`,e),x=true;}function T(e){b=e;}function E(){v$1.props.value=null,v$1.dispatch(`clear`);}function D(e){v$1.props.value=e,v$1.dispatch(`upload`);}function O(e){v$1.shared.loading_status&&(v$1.shared.loading_status.status=`error`),v$1.dispatch(`error`,e);}let k=true,A;function j(e){v$1.shared.interactive?(e.push(``),n(e,{visible:v$1.shared.visible,variant:v$1.props.value===null?`dashed`:`solid`,border_mode:b?`focus`:`base`,padding:false,elem_id:v$1.shared.elem_id,elem_classes:v$1.shared.elem_classes,container:v$1.shared.container,scale:v$1.shared.scale,min_width:v$1.shared.min_width,height:v$1.props.height,children:e=>{f(e,spread_props([{autoscroll:v$1.shared.autoscroll,i18n:v$1.i18n},v$1.shared.loading_status,{on_clear_status:()=>v$1.dispatch(`clear_status`,v$1.shared.loading_status)}])),e.push(` `),h(e,{label:v$1.shared.label,show_label:v$1.shared.show_label,root:v$1.shared.root,display_mode:v$1.props.display_mode,clear_color:v$1.props.clear_color,camera_position:v$1.props.camera_position,zoom_speed:v$1.props.zoom_speed,onchange:w,ondrag:T,onclear:E,onload:D,onerror:O,i18n:v$1.i18n,max_file_size:v$1.shared.max_file_size,upload:(...e)=>v$1.shared.client.upload(...e),stream_handler:(...e)=>v$1.shared.client.stream(...e),get upload_promise(){return S},set upload_promise(e){S=e,k=false;},get value(){return v$1.props.value},set value(e){v$1.props.value=e,k=false;},get uploading(){return y},set uploading(e){y=e,k=false;},children:e=>{ze(e,{i18n:v$1.i18n,type:`file`});},$$slots:{default:true}}),e.push(``);},$$slots:{default:true}})):(e.push(``),n(e,{visible:v$1.shared.visible,variant:v$1.props.value===null?`dashed`:`solid`,border_mode:b?`focus`:`base`,padding:false,elem_id:v$1.shared.elem_id,elem_classes:v$1.shared.elem_classes,container:v$1.shared.container,scale:v$1.shared.scale,min_width:v$1.shared.min_width,height:v$1.props.height,children:e=>{f(e,spread_props([{autoscroll:v$1.shared.autoscroll,i18n:v$1.i18n},v$1.shared.loading_status,{on_clear_status:()=>v$1.dispatch(`clear_status`,v$1.shared.loading_status)}])),e.push(` `),v$1.props.value&&C?(e.push(``),c(e,{value:v$1.props.value,i18n:v$1.i18n,display_mode:v$1.props.display_mode,clear_color:v$1.props.clear_color,label:v$1.shared.label,show_label:v$1.shared.show_label,camera_position:v$1.props.camera_position,zoom_speed:v$1.props.zoom_speed,has_change_history:x})):(e.push(``),v$1.shared.show_label&&v$1.props.buttons&&v$1.props.buttons.length>0?(e.push(``),Ve(e,{buttons:v$1.props.buttons,on_custom_button_click:e=>{v$1.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),h$1(e,{show_label:v$1.shared.show_label,Icon:z,label:v$1.shared.label||`3D Model`}),e.push(` `),v(e,{unpadded_box:true,size:`large`,children:e=>{z(e);}}),e.push(``)),e.push(``);},$$slots:{default:true}})),e.push(``);}do k=true,A=c$1.copy(),j(A);while(!k);c$1.subsume(A);});} + +export { c as BaseModel3D, h as BaseModel3DUpload, g as default }; +//# sourceMappingURL=Index44-BXv9EhtL.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index45-CShNMOuj.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index45-CShNMOuj.js new file mode 100644 index 0000000000000000000000000000000000000000..5f0036afecd7749fa5c4bacc3bb8b407dd0fc6b7 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index45-CShNMOuj.js @@ -0,0 +1,20 @@ +import { J as m$1, L as onDestroy, P as u, K as tick } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { p as m, Q as ue, c as ce, X, l as z, m as ee, O as Ue, a0 as J, a1 as y, s as ve, n, D } from './src3-h7ZBftxa.js'; +import { t } from './Image-BFJk-f6P.js'; +import './async-Cv1-GZGV.js'; +import { c as bind_props, a as attr_class, e as escape_html, f as attr, h as ensure_array_like, b as attr_style, s as spread_props, d as derived } from './renderer-Dic3PuWn.js'; +import { v } from './MinimalAudioPlayer-PdWV2Y7c.js'; +import { g } from './src4-BlBbNhwG.js'; +export { r as BaseExample } from './Example36-ByLxHvqS.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; +import './Video-ClEGvRgS.js'; + +function w(t,n){t.component(t=>{let {label:r,waveform_settings:i={},recording:a=void 0,upload:o,root:s,max_file_size:c=null,upload_promise:l=void 0,onchange:d,onstoprecording:f,onclear:p}=n;onDestroy(()=>{clearInterval(void 0);}),t.push(`
    `),(t.push(``),t.push(`
    ${escape_html(u(0))}
    `)),t.push(`
    `),bind_props(n,{recording:a,upload_promise:l});});}function T(e,t$1){e.component(e=>{let{value:n={text:``,files:[]},value_is_output:d=false,lines:v$1=1,i18n:y$1,placeholder:b=``,disabled:x=false,label:T,info:E=void 0,show_label:D$1=true,max_lines:ee$1,submit_btn:O=null,stop_btn:k=null,rtl:A=false,autofocus:te=false,text_align:j=void 0,autoscroll:ne=true,root:M,file_types_string:N=null,max_file_size:P=null,upload:F,stream_handler:I,file_count:L=`multiple`,max_plain_text_length:re=1e3,waveform_settings:R,waveform_options:ie={show_recording_waveform:true},sources_string:z$1=`upload`,active_source:B=void 0,html_attributes:V=null,upload_promise:H=void 0,dragging:U=void 0,onchange:W,onsubmit:ae,onstop:oe,onblur:se,onselect:ce$1,oninput:G,onfocus:le,ondrag:ue$1,onupload:K,onclear:de,onload:fe,onerror:pe,onstop_recording:me}=t$1,q=false;n?.text;let J$1=false,Y=null,X$1=derived(()=>z$1.split(`,`).map(e=>e.trim()).filter(e=>e===`upload`||e===`microphone`)),he=derived(()=>N?N.split(`,`).map(e=>e.trim()):null),Z=derived(()=>X$1()&&X$1().includes(`upload`)&&!(L===`single`&&n?.files?.length>0));async function ge(){W?.(n),d||G?.();}async function _e(e){if(ge(),Array.isArray(e)){for(let t of e)n.files.push(t);n=n;}else n.files.push(e),n=n;await tick(),W?.(n),K?.(e);}let Q=true,$;function ve$1(e){if(e.push(``),m(e,{show_label:D$1,info:E,rtl:A,children:e=>{e.push(`${escape_html(T)}`);}}),e.push(`
    `),X$1()&&X$1().includes(`microphone`)&&B===`microphone`?(e.push(``),e.push(``),Y?(e.push(``),e.push(`
    `),v(e,{value:Y,label:T||`Audio`,loop:false}),e.push(`
    `)):(e.push(``),e.push(`
    `),w(e,{label:T||`Audio`,waveform_settings:R,recording:J$1,upload:F,root:M,max_file_size:P,onchange:e=>{Y=e;},onstoprecording:()=>{J$1=false,me?.();},onclear:()=>{B=null,J$1=false,Y=null,de?.();},get upload_promise(){return H},set upload_promise(e){H=e,Q=false;}}),e.push(`
    `)),e.push(`
    `)):e.push(``),e.push(` `),Z()?(e.push(``),g(e,{onload:_e,file_count:L,filetype:he(),root:M,max_file_size:P,show_progress:false,disable_click:true,onerror:pe,hidden:true,upload:F,stream_handler:I,get upload_promise(){return H},set upload_promise(e){H=e,Q=false;},get dragging(){return U},set dragging(e){U=e,Q=false;},get uploading(){return q},set uploading(e){q=e,Q=false;}})):e.push(``),e.push(` 0||q})}>`),(n?.files?.length??0)>0||q){e.push(``),e.push(`
    `),Z()?(e.push(``),e.push(``)):e.push(``),e.push(` `);let t$1=ensure_array_like(n?.files??[]);for(let n=0,r=t$1.length;n
    `),r.mime_type&&r.mime_type.includes(`image`)?(e.push(``),t(e,{src:r.url,restProps:{title:null,alt:``,loading:`lazy`,class:`thumbnail-image`}})):r.mime_type&&r.mime_type.includes(`audio`)?(e.push(``),ce(e)):r.mime_type&&r.mime_type.includes(`video`)?(e.push(``),X(e)):(e.push(``),z(e)),e.push(`
    `);}e.push(` `),q?(e.push(``),e.push(`
    `)):e.push(``),e.push(`
    `);}else e.push(``);e.push(`
    `),Z()&&(n?.files?.length??0)===0&&!q?(e.push(``),e.push(``)):e.push(``),e.push(`
    `),Ue(e,{visible:false,position:`absolute`}),e.push(`
    `),X$1()&&X$1().includes(`microphone`)?(e.push(``),e.push(``)):e.push(``),e.push(` `),O?(e.push(``),e.push(``),O===true?(e.push(``),y(e)):(e.push(``),e.push(`${escape_html(O)}`)),e.push(``)):e.push(``),e.push(` `),k?(e.push(``),e.push(``),k===true?(e.push(``),ve(e,{fill:`none`,stroke_width:2.5})):(e.push(``),e.push(`${escape_html(k)}`)),e.push(``)):e.push(``),e.push(`
    `);}do Q=true,$=e.copy(),ve$1($);while(!Q);e.subsume($),bind_props(t$1,{value:n,active_source:B,upload_promise:H,dragging:U});});}function E(e,r){e.component(e=>{let i=null;class a extends m$1{async get_data(){return i&&(await i,await tick()),await super.get_data()}}let{$$slots:o,$$events:s,...c}=r,l=new a(c);l.props.value=l.props.value??{text:``,files:[]};let u=false,f$1=null,m={height:50,barWidth:2,barGap:3,cursorWidth:2,cursorColor:`#ddd5e9`,autoplay:false,barRadius:10,dragToSeek:true,normalize:true,minPxPerSec:20,waveColor:``,progressColor:``,mediaControls:false,sampleRate:44100};({color:l.props?.waveform_options?.trim_region_color});let _=(...e)=>l.shared.client.upload(...e),v=e=>l.i18n(e),y=(...e)=>l.shared.client.stream(...e),b=derived(()=>l.props.sources.join(`,`)),w=derived(()=>(l.props.file_types||[]).join(`,`)||null),E=true,D;function ee(e){n(e,{visible:l.shared.visible,elem_id:l.shared.elem_id,elem_classes:[...l.shared.elem_classes||[],`multimodal-textbox`],scale:l.shared.scale,min_width:l.shared.min_width,allow_overflow:false,padding:false,border_mode:u?`focus`:`base`,rtl:l.props.rtl,children:e=>{l.shared.loading_status?(e.push(``),f(e,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{on_clear_status:()=>l.dispatch(`clear_status`,l.shared.loading_status)}]))):e.push(``),e.push(` `),T(e,{value_is_output:true,file_types_string:w(),root:l.shared.root,label:l.shared.label||`MultimodalTextbox`,info:l.props.info,show_label:l.shared.show_label,lines:l.props.lines,rtl:l.props.rtl,text_align:l.props.text_align,waveform_settings:m,i18n:v,max_lines:l.props.max_lines?l.props.max_lines:l.props.lines+1,placeholder:l.props.placeholder,submit_btn:l.props.submit_btn,stop_btn:l.props.stop_btn,autofocus:l.props.autofocus,autoscroll:l.shared.autoscroll,file_count:l.props.file_count,sources_string:b(),max_file_size:l.shared.max_file_size,onchange:e=>{l.props.value=e,l.dispatch(`change`,l.props.value);},oninput:()=>l.dispatch(`input`),onsubmit:()=>l.dispatch(`submit`),onstop:()=>l.dispatch(`stop`),onblur:()=>l.dispatch(`blur`),onselect:e=>l.dispatch(`select`,e),onfocus:()=>l.dispatch(`focus`),onerror:e=>{l.dispatch(`error`,e);},onstop_recording:()=>l.dispatch(`stop_recording`),onupload:e=>l.dispatch(`upload`,e),onclear:()=>l.dispatch(`clear`),disabled:!l.shared.interactive,upload:_,stream_handler:y,max_plain_text_length:l.props.max_plain_text_length,html_attributes:l.props.html_attributes,get upload_promise(){return i},set upload_promise(e){i=e,E=false;},get value(){return l.props.value},set value(e){l.props.value=e,E=false;},get dragging(){return u},set dragging(e){u=e,E=false;},get active_source(){return f$1},set active_source(e){f$1=e,E=false;}}),e.push(``);},$$slots:{default:true}});}do E=true,D=e.copy(),ee(D);while(!E);e.subsume(D);});} + +export { T as BaseMultimodalTextbox, E as default }; +//# sourceMappingURL=Index45-CShNMOuj.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index46-CQScma00.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index46-CQScma00.js new file mode 100644 index 0000000000000000000000000000000000000000..72360c8c660101b05e4423ea8682f9bc840727ef --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index46-CQScma00.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, _, i as ie, a as He, p as m, v, L as K } from './src3-h7ZBftxa.js'; +import { s as spread_props, e as escape_html } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function f(f,p){f.component(f=>{let{$$slots:m$2,$$events:h,...g}=p,_$1=new m$1(g);_$1.watch_for_change();let S=false;_$1.props.value;let D=typeof window<`u`;function O(){}let k=true,A;function j(e){n(e,{visible:_$1.shared.visible,elem_id:_$1.shared.elem_id,elem_classes:_$1.shared.elem_classes,scale:_$1.shared.scale,min_width:_$1.shared.min_width,allow_overflow:false,padding:true,height:_$1.props.height,get fullscreen(){return S},set fullscreen(e){S=e,k=false;},children:e=>{_$1.shared.loading_status?(e.push(``),f$1(e,spread_props([{autoscroll:_$1.shared.autoscroll,i18n:_$1.i18n},_$1.shared.loading_status,{on_clear_status:()=>_$1.dispatch(`clear_status`,_$1.shared.loading_status)}]))):e.push(``),e.push(` `),_$1.props.buttons?.length?(e.push(``),Ve(e,{buttons:_$1.props.buttons,on_custom_button_click:e=>{_$1.dispatch(`custom_button_click`,{id:e});},children:e=>{_$1.props.buttons?.some(e=>typeof e==`string`&&e===`export`)?(e.push(``),_(e,{Icon:ie,label:`Export`,onclick:O})):e.push(``),e.push(` `),_$1.props.buttons?.some(e=>typeof e==`string`&&e===`fullscreen`)?(e.push(``),He(e,{fullscreen:S,onclick:e=>S=e})):e.push(``),e.push(``);}})):e.push(``),e.push(` `),m(e,{show_label:_$1.shared.show_label,info:void 0,children:e=>{e.push(`${escape_html(_$1.shared.label)}`);}}),e.push(` `),_$1.props.value&&D?(e.push(``),e.push(`
    `),_$1.props.caption?(e.push(``),e.push(`

    ${escape_html(_$1.props.caption)}

    `)):e.push(``),e.push(``)):(e.push(``),v(e,{unpadded_box:true,children:e=>{K(e);}})),e.push(``);},$$slots:{default:true}});}do k=true,A=f.copy(),j(A);while(!k);f.subsume(A);});} + +export { f as default }; +//# sourceMappingURL=Index46-CQScma00.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index47-DnRr3r6s.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index47-DnRr3r6s.js new file mode 100644 index 0000000000000000000000000000000000000000..7283bb8311a6feb59ffc383b15e427a7af68d4a4 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index47-DnRr3r6s.js @@ -0,0 +1,11 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as attr, a as attr_class, j as clsx } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; + +function a(a,o){a.component(a=>{let {$$slots:s,$$events:c,...l}=o,u=new m$1(l);a.push(`
    `);});} + +export { a as default }; +//# sourceMappingURL=Index47-DnRr3r6s.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index48-CJV-8oZp.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index48-CJV-8oZp.js new file mode 100644 index 0000000000000000000000000000000000000000..1982922787bb07a1ff027f4b678a2eea8d14e1ff --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index48-CJV-8oZp.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, p as m } from './src3-h7ZBftxa.js'; +import { s as spread_props, a as attr_class, e as escape_html, f as attr, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function o(o,s){o.component(o=>{let{$$slots:c,$$events:l,...u}=s,d=new m$1(u);d.props.value??=0,d.props.value;let f$1=derived(()=>!d.shared.interactive);n(o,{visible:d.shared.visible,elem_id:d.shared.elem_id,elem_classes:d.shared.elem_classes,padding:d.shared.container,allow_overflow:false,scale:d.shared.scale,min_width:d.shared.min_width,children:e=>{f(e,spread_props([{autoscroll:d.shared.autoscroll,i18n:d.i18n},d.shared.loading_status,{show_validation_error:false,on_clear_status:()=>{d.dispatch(`clear_status`,d.shared.loading_status);}}])),e.push(` `),d.shared.show_label&&d.props.buttons&&d.props.buttons.length>0?(e.push(``),Ve(e,{buttons:d.props.buttons,on_custom_button_click:e=>{d.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),m(e,{show_label:d.shared.show_label,info:d.props.info,children:e=>{e.push(`${escape_html(d.shared.label||`Number`)} `),d.shared.loading_status?.validation_error?(e.push(``),e.push(`
    ${escape_html(d.shared.loading_status?.validation_error)}
    `)):e.push(``),e.push(``);}}),e.push(` `);},$$slots:{default:true}});});} + +export { o as default }; +//# sourceMappingURL=Index48-CJV-8oZp.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index49-YqpLIn6F.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index49-YqpLIn6F.js new file mode 100644 index 0000000000000000000000000000000000000000..c3658df8ee3546488e5c05a8fca1ff800e2775b1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index49-YqpLIn6F.js @@ -0,0 +1,12 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { b as attr_style, e as escape_html, f as attr, h as ensure_array_like, i as stringify, a as attr_class, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import { h as html } from './html-CfyvkLET.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; + +function r(e,r){e.component(e=>{let{docs:i,linkify:a=[],header:o,anchor_links:s,max_height:c}=r,l=derived(()=>f(i));function u(e,t){let n=`param-`;return typeof t==`string`&&(n+=t+`-`),n+e.toLowerCase().replace(/[^a-z0-9]+/g,`-`)}function d(e,t){let n=e;for(let e of a)n=n.replace(new RegExp(e,`g`),`${e}`);return n}function f(e,t,n){return e?Object.entries(e).map(([e,{type:n,description:r,default:i}])=>({name:e,type:n?d(n):null,description:r,default:i?d(i):null})):[]}function p(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\[([^\]]+)\]\(([^)]+)\)/g,`$1`)}if(e.push(`
    {if(e!==void 0){if(typeof e==`number`)return e+`px`;if(typeof e==`string`)return e}})(c)})}>
    `),o===null?e.push(``):(e.push(``),e.push(`${escape_html(o)}`)),e.push(`
    `),l()){e.push(``),e.push(`
    `);let t=ensure_array_like(l());for(let r=0,i=t.length;r`),s?(e.push(``),e.push(`🔗`)):e.push(``),e.push(`
    ${escape_html(c)}`),i?(e.push(``),e.push(`: ${html(i)}`)):e.push(``),e.push(`
    `),o?(e.push(``),e.push(`default = ${html(o)}
    `)):e.push(``),e.push(` `),a?(e.push(``),e.push(`

    ${html(p(a))}

    `)):e.push(``),e.push(``);}e.push(`
    `);}else e.push(``);e.push(``);});}function i(t,n){t.component(t=>{let{$$slots:i,$$events:a,...o}=n,s=new m$1(o);r(t,{docs:s.props.value,linkify:s.props.linkify,header:s.props.header,anchor_links:s.props.anchor_links,max_height:s.props.max_height});});} + +export { i as default }; +//# sourceMappingURL=Index49-YqpLIn6F.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index5-DfYNKinm.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index5-DfYNKinm.js new file mode 100644 index 0000000000000000000000000000000000000000..ad647db99326fce3e206e9ba03a3500431aecfd7 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index5-DfYNKinm.js @@ -0,0 +1,9 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { t } from './Image-BFJk-f6P.js'; +import { f as attr, a as attr_class, i as stringify, b as attr_style, e as escape_html } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; + +function r(e,r){e.component(e=>{let{elem_id:i,elem_classes:a=[],visible:o=true,variant:s=`secondary`,size:c=`md`,value:l=null,link:u,link_target:d=`_self`,icon:f,disabled:p=false,scale:m=null,min_width:h,onclick:g=()=>{},children:_}=r;u&&u.length>0?(e.push(``),e.push(``),f?(e.push(``),t(e,{src:f.url??``,restProps:{alt:`${l} icon`,class:`button-icon`}})):e.push(``),e.push(` `),_?(e.push(``),_(e),e.push(``)):e.push(``),e.push(``)):(e.push(``),e.push(``),f?(e.push(``),t(e,{restProps:{alt:`${l} icon`},class_names:[`button-icon ${l?`right-padded`:``}`],src:f.url??``})):e.push(``),e.push(` `),_?(e.push(``),_(e),e.push(``)):e.push(``),e.push(``)),e.push(``);});}function i(t,i){t.component(t=>{let{$$slots:a,$$events:o,...s}=i,c=new m$1(s);c.watch_for_change();function l(){c.dispatch(`click`);}r(t,{value:c.props.value,variant:c.props.variant,elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,size:c.props.size,scale:c.shared.scale,link:c.props.link,icon:c.props.icon,min_width:c.shared.min_width,visible:c.shared.visible,disabled:!c.shared.interactive,link_target:c.props.link_target,onclick:l,children:e=>{e.push(`${escape_html(c.props.value??``)}`);}});});} + +export { i, r }; +//# sourceMappingURL=Index5-DfYNKinm.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index50-CZwvOzwK.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index50-CZwvOzwK.js new file mode 100644 index 0000000000000000000000000000000000000000..e479491ca333da6474c11c80abcc2e53ff25d15b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index50-CZwvOzwK.js @@ -0,0 +1,16 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, h, V as Ve, a as He, a2 as pe } from './src3-h7ZBftxa.js'; +import { n as n$1 } from './Plot2-Bh7GKLuF.js'; +import './async-Cv1-GZGV.js'; +import { s as spread_props } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +function l(l,u){l.component(l=>{let{$$slots:d,$$events:f$1,...p}=u,m=new m$1(p),h$1=false,g=true,_;function v(e){n(e,{padding:false,elem_id:m.shared.elem_id,elem_classes:m.shared.elem_classes,visible:m.shared.visible,container:m.shared.container,scale:m.shared.scale,min_width:m.shared.min_width,allow_overflow:false,get fullscreen(){return h$1},set fullscreen(e){h$1=e,g=false;},children:e=>{h(e,{show_label:m.shared.show_label,label:m.shared.label||m.i18n(`plot.plot`),Icon:pe}),e.push(` `),m.props.buttons&&m.props.buttons.length>0||m.props.show_fullscreen_button?(e.push(``),Ve(e,{buttons:m.props.buttons??[],on_custom_button_click:e=>{m.dispatch(`custom_button_click`,{id:e});},children:e=>{m.props.show_fullscreen_button?(e.push(``),He(e,{fullscreen:h$1,onclick:e=>{h$1=e;}})):e.push(``),e.push(``);}})):e.push(``),e.push(` `),f(e,spread_props([{autoscroll:m.shared.autoscroll,i18n:m.i18n},m.shared.loading_status,{on_clear_status:()=>m.dispatch(`clear_status`,m.shared.loading_status)}])),e.push(` `),n$1(e,{value:m.props.value,theme_mode:m.shared.theme_mode,show_label:m.shared.show_label,caption:m.props.caption,bokeh_version:m.props.bokeh_version,show_actions_button:m.props.show_actions_button,_selectable:m.props._selectable,x_lim:m.props.x_lim,show_fullscreen_button:m.props.show_fullscreen_button,on_change:()=>m.dispatch(`change`),onselect:e=>m.dispatch(`select`,e)}),e.push(``);},$$slots:{default:true}});}do g=true,_=l.copy(),v(_);while(!g);l.subsume(_);});} + +export { n$1 as BasePlot, l as default }; +//# sourceMappingURL=Index50-CZwvOzwK.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index51-DpEO6dRN.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index51-DpEO6dRN.js new file mode 100644 index 0000000000000000000000000000000000000000..329fab2a2e57afe98d7d0d1c10319bd70aa7b267 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index51-DpEO6dRN.js @@ -0,0 +1,16 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, V as Ve, p as m } from './src3-h7ZBftxa.js'; +export { default as BaseExample } from './Example43-CIzkbkEP.js'; +import { f as attr, i as stringify, a as attr_class, e as escape_html, c as bind_props, d as derived, s as spread_props, h as ensure_array_like } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +var s=0;function c(e,t){e.component(e=>{let{selected:n=void 0,display_value:r,internal_value:i,disabled:a,rtl:c,on_input:l}=t,u=derived(()=>n===i);e.push(` ${escape_html(r)}`),bind_props(t,{selected:n});});}function l(a,s){a.component(a=>{let{$$slots:l,$$events:u,...d}=s,f$1=new m$1(d),p=derived(()=>!f$1.shared.interactive);f$1.props.value;let m$2=true,h;function g(e){n(e,{visible:f$1.shared.visible,type:`fieldset`,elem_id:f$1.shared.elem_id,elem_classes:f$1.shared.elem_classes,container:f$1.shared.container,scale:f$1.shared.scale,min_width:f$1.shared.min_width,rtl:f$1.props.rtl,children:e=>{f(e,spread_props([{autoscroll:f$1.shared.autoscroll,i18n:f$1.i18n},f$1.shared.loading_status,{on_clear_status:()=>f$1.dispatch(`clear_status`,f$1.shared.loading_status)}])),e.push(` `),f$1.shared.show_label&&f$1.props.buttons&&f$1.props.buttons.length>0?(e.push(``),Ve(e,{buttons:f$1.props.buttons,on_custom_button_click:e=>{f$1.dispatch(`custom_button_click`,{id:e});}})):e.push(``),e.push(` `),m(e,{show_label:f$1.shared.show_label,info:f$1.props.info,children:e=>{e.push(`${escape_html(f$1.shared.label||f$1.i18n(`radio.radio`))}`);}}),e.push(`
    `);let r=ensure_array_like(f$1.props.choices);for(let t=0,n=r.length;t{f$1.dispatch(`input`),f$1.dispatch(`select`,{value:i,index:t});},get selected(){return f$1.props.value},set selected(e){f$1.props.value=e,m$2=false;}});}e.push(`
    `);},$$slots:{default:true}});}do m$2=true,h=a.copy(),g(h);while(!m$2);a.subsume(h);});} + +export { c as BaseRadio, l as default }; +//# sourceMappingURL=Index51-DpEO6dRN.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index52-DdYAqGFG.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index52-DdYAqGFG.js new file mode 100644 index 0000000000000000000000000000000000000000..e21caff0ec2d3bdf57ad9b4094ef6e5cd71e1d0c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index52-DdYAqGFG.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import './async-Cv1-GZGV.js'; +import { f as attr, a as attr_class, i as stringify, b as attr_style, s as spread_props } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; + +function r(r,i){r.component(r=>{let a=e=>{if(e!==void 0){if(typeof e==`number`)return e+`px`;if(typeof e==`string`)return e}},{$$slots:o,$$events:s,...c}=i,l=new m$1(c);r.push(`=1})}${attr_style(``,{height:a(l.props.height),"max-height":a(l.props.max_height),"min-height":a(l.props.min_height),"flex-grow":l.shared.scale})}>`),l.shared.loading_status&&l.shared.loading_status.show_progress&&l?(r.push(``),f(r,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{status:l.shared.loading_status?l.shared.loading_status.status==`pending`?`generating`:l.shared.loading_status.status:null}]))):r.push(``),r.push(` `),c.children?.(r),r.push(``);});} + +export { r as default }; +//# sourceMappingURL=Index52-DdYAqGFG.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index53-DW9Ap3UT.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index53-DW9Ap3UT.js new file mode 100644 index 0000000000000000000000000000000000000000..7f11c94b31fb2809de16ac9047a1d2be54fdfbd6 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index53-DW9Ap3UT.js @@ -0,0 +1,16 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { r } from './Index7-BPbAvpNC.js'; +import { s as spread_props, a as attr_class, i as stringify, f as attr, b as attr_style, c as bind_props, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; + +function a(e,t){e.component(e=>{let{open:n=true,width:a,position:o=`left`,elem_classes:s=[],elem_id:c=``,onexpand:l=()=>{},oncollapse:u=()=>{},children:d}=t,f=derived(()=>typeof a==`number`?`${a}px`:a),p=false;let h=derived(()=>s?.join(` `)||``);e.push(` `),bind_props(t,{open:n,position:o});});}function o(r$1,o){r$1.component(r$1=>{let{$$slots:s,$$events:c,...l}=o,u=new m$1(l),d=true,f$1;function p(e){f(e,spread_props([{autoscroll:u.shared.autoscroll,i18n:u.i18n},u.shared.loading_status])),e.push(` `),u.shared.visible?(e.push(``),a(e,{width:u.props.width,onexpand:()=>u.dispatch(`expand`),oncollapse:()=>u.dispatch(`collapse`),elem_classes:u.shared.elem_classes,elem_id:u.shared.elem_id,get open(){return u.props.open},set open(e){u.props.open=e,d=false;},get position(){return u.props.position},set position(e){u.props.position=e,d=false;},children:e=>{r(e,{children:e=>{l.children?.(e),e.push(``);},$$slots:{default:true}});},$$slots:{default:true}})):e.push(``),e.push(``);}do d=true,f$1=r$1.copy(),p(f$1);while(!d);r$1.subsume(f$1);});} + +export { o as default }; +//# sourceMappingURL=Index53-DW9Ap3UT.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index54-BbOcOk3U.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index54-BbOcOk3U.js new file mode 100644 index 0000000000000000000000000000000000000000..926c02085959b84080522d2a165ea40c86ec5585 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index54-BbOcOk3U.js @@ -0,0 +1,15 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { n, p as m } from './src3-h7ZBftxa.js'; +import { s as spread_props, f as attr, e as escape_html, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; + +var a=0;function o(o,s){o.component(o=>{let{$$slots:c,$$events:l,...u}=s,d=new m$1(u);d.props.value,d.props.value;let f$1=`range_id_${a++}`,p=derived(()=>d.props.minimum??0);let m$2=derived(()=>!d.shared.interactive);n(o,{visible:d.shared.visible,elem_id:d.shared.elem_id,elem_classes:d.shared.elem_classes,container:d.shared.container,scale:d.shared.scale,min_width:d.shared.min_width,children:e=>{f(e,spread_props([{autoscroll:d.shared.autoscroll,i18n:d.i18n},d.shared.loading_status,{on_clear_status:()=>d.dispatch(`clear_status`,d.shared.loading_status)}])),e.push(`
    `),m(e,{show_label:d.shared.show_label,info:d.props.info,children:e=>{e.push(`${escape_html(d.shared.label||`Slider`)}`);}}),e.push(`
    `),d.props.buttons?.includes(`reset`)??true?(e.push(``),e.push(``)):e.push(``),e.push(`
    ${escape_html(p())} ${escape_html(d.props.maximum)}
    `);},$$slots:{default:true}});});} + +export { o as default }; +//# sourceMappingURL=Index54-BbOcOk3U.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index55-CvP-9qxq.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index55-CvP-9qxq.js new file mode 100644 index 0000000000000000000000000000000000000000..8d9f99c1e53cb435faa2c639485a6f1678e159e3 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index55-CvP-9qxq.js @@ -0,0 +1,11 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; + +function t(t,n){t.component(t=>{let{$$slots:r,$$events:i,...a}=n;new m$1(a);});} + +export { t as default }; +//# sourceMappingURL=Index55-CvP-9qxq.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index56-DqK0-g1B.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index56-DqK0-g1B.js new file mode 100644 index 0000000000000000000000000000000000000000..8e9532eb65d5ef31cf881270c7c5f4f30ea8c976 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index56-DqK0-g1B.js @@ -0,0 +1,8 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { w as writable, q as setContext, o as store_get, r as store_set, a as attr_class, i as stringify, f as attr, b as attr_style, h as ensure_array_like, e as escape_html, u as unsubscribe_stores, c as bind_props, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; + +function i(e){e.push(``);}var a={};function o(e){return !!e&&e.visible!==false&&e.visible!==`hidden`}function s(e,t){let n=e.findIndex(e=>e?.id===t);return n===-1?0:n}function c(e,c){e.component(e=>{var l;let{visible:u=true,elem_id:d=``,elem_classes:f=[],selected:p=void 0,initial_tabs:m,onchange:h,onselect:g,children:_}=c,v=[...m],y=[...m],b=[],x=new Set,S=derived(()=>v.length>0),C=writable(p??v[0]?.id??false),w=writable(s(v,p));function T(e,t){v[t]=e,y=y.map(t=>t?.id===e.id?e:t),b=b.map(t=>t?.id===e.id?e:t);}setContext(a,{register_tab:(e,t)=>(x.add(t),T(e,t),store_get(l??={},`$selected_tab`,C)===false&&o(e)&&e.interactive?(store_set(C,e.id),store_set(w,t)):store_get(l??={},`$selected_tab`,C)===e.id&&store_set(w,t),E(),t),unregister_tab:(e,t)=>{x.delete(t),store_get(l??={},`$selected_tab`,C)===e.id&&store_set(C,v[0]?.id??false),v[t]=null,y=y.filter(t=>t?.id!==e.id),b=b.filter(t=>t?.id!==e.id),E();},selected_tab:C,selected_tab_index:w});async function E(){}let D=derived(()=>v[store_get(l??={},`$selected_tab_index`,w)>=0?store_get(l??={},`$selected_tab_index`,w):0]?.scale);if(e.push(``),S()){e.push(``),e.push(`
    `);let n=ensure_array_like(y);for(let t=0,i=n.length;t`),e.push(``)):e.push(``),e.push(``);}e.push(`
    `);let a=ensure_array_like(b);for(let t=0,n=a.length;t`),e.push(`${escape_html(n?.label)}`)):e.push(``),e.push(``);}e.push(`
    `);}else e.push(``);e.push(` `),_?.(e),e.push(``),l&&unsubscribe_stores(l),bind_props(c,{selected:p});});}function l(e){return !!e&&e.visible!==false&&e.visible!==`hidden`}function u(e,t){let n=e.findIndex(e=>e?.id===t);return n===-1?0:n}function d(e,i){e.component(e=>{var o;let{visible:s=true,elem_id:c=``,elem_classes:d=[],selected:f=void 0,initial_tabs:p,onchange:m,onselect:h,children:g}=i,_=[...p],v=derived(()=>_.length>0),y=writable(f??_[0]?.id??false),b=writable(u(_,f));setContext(a,{register_tab:(e,t)=>(_[t]=e,store_get(o??={},`$selected_tab`,y)===false&&l(e)&&e.interactive&&(store_set(y,e.id),store_set(b,t)),t),unregister_tab:(e,t)=>{store_get(o??={},`$selected_tab`,y)===e.id&&store_set(y,_[0]?.id??false),_[t]=null;},selected_tab:y,selected_tab_index:b});let x=derived(()=>_[store_get(o??={},`$selected_tab_index`,b)>=0?store_get(o??={},`$selected_tab_index`,b):0]?.scale);if(e.push(``),v()){e.push(``),e.push(``),e.push(`
    `);let t=ensure_array_like(_);for(let n=0,i=t.length;n`),e.push(`
    `),n<_.length-1?(e.push(``),e.push(`
    `)):e.push(``),e.push(``)):e.push(``),e.push(``);}e.push(`
    `);}else e.push(``);e.push(` `),g?.(e),e.push(``),o&&unsubscribe_stores(o),bind_props(i,{selected:f});});}function f(t,n){t.component(t=>{let{$$slots:r,$$events:i,...a}=n,o=new m$1(a);o.props.selected;let s=true,l;function u(e){o.props.name===`walkthrough`?(e.push(``),d(e,{visible:o.shared.visible,elem_id:o.shared.elem_id,elem_classes:o.shared.elem_classes,onchange:()=>o.dispatch(`change`),onselect:e=>{o.dispatch(`select`,e),o.dispatch(`gradio_tab_select`,e);},initial_tabs:o.props.initial_tabs,get selected(){return o.props.selected},set selected(e){o.props.selected=e,s=false;},children:e=>{a.children?.(e),e.push(``);},$$slots:{default:true}})):(e.push(``),c(e,{visible:o.shared.visible,elem_id:o.shared.elem_id,elem_classes:o.shared.elem_classes,onchange:()=>o.dispatch(`change`),onselect:e=>{o.dispatch(`select`,e),o.dispatch(`gradio_tab_select`,e);},initial_tabs:o.props.initial_tabs,get selected(){return o.props.selected},set selected(e){o.props.selected=e,s=false;},children:e=>{a.children?.(e),e.push(``);},$$slots:{default:true}})),e.push(``);}do s=true,l=t.copy(),u(l);while(!s);t.subsume(l);});} + +export { a, c, f }; +//# sourceMappingURL=Index56-DqK0-g1B.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index57-ZBUZjg8k.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index57-ZBUZjg8k.js new file mode 100644 index 0000000000000000000000000000000000000000..3bd1214f004309c80b4804b7f8d451a454c04850 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index57-ZBUZjg8k.js @@ -0,0 +1,8 @@ +export { c as BaseTabs, a as TABS, f as default } from './Index56-DqK0-g1B.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +//# sourceMappingURL=Index57-ZBUZjg8k.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index58-DntKxDGW.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index58-DntKxDGW.js new file mode 100644 index 0000000000000000000000000000000000000000..fd0cd1d1b6efbaa96bb0ee9431d4ac7e4382095e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index58-DntKxDGW.js @@ -0,0 +1,17 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { r } from './Index7-BPbAvpNC.js'; +import { a as a$1 } from './Index56-DqK0-g1B.js'; +import { g as getContext, f as attr, a as attr_class, i as stringify, b as attr_style, o as store_get, u as unsubscribe_stores, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; + +function a(e,a){e.component(e=>{var o;let{elem_id:s=``,elem_classes:c=[],label:l,id:u,visible:d,interactive:f,order:p,scale:m,component_id:h,onselect:g,children:_}=a,{register_tab:v,unregister_tab:y,selected_tab:b,selected_tab_index:x}=getContext(a$1),S=derived(()=>u??h);let C=derived(()=>d!==false&&d!==`hidden`);e.push(`=1})} role="tabpanel"${attr_style(``,{display:store_get(o??={},`$selected_tab`,b)===S()&&C()?`flex`:`none`,"flex-grow":m})}>`),r(e,{scale:m>=1?m:null,children:e=>{_?.(e),e.push(``);},$$slots:{default:true}}),e.push(``),o&&unsubscribe_stores(o);});}function o(t,n){t.component(t=>{let{$$slots:r,$$events:i,...o}=n,s=new m$1(o);a(t,{elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,label:s.shared.label,visible:s.shared.visible,interactive:s.shared.interactive,id:s.props.id,order:s.props.order,scale:s.shared.scale,component_id:s.props.component_id,onselect:e=>s.dispatch(`select`,e),children:e=>{o.children?.(e),e.push(``);}});});} + +export { a as BaseTabItem, o as default }; +//# sourceMappingURL=Index58-DntKxDGW.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index59-BCUEZn56.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index59-BCUEZn56.js new file mode 100644 index 0000000000000000000000000000000000000000..77ff201cced1980e94982afc34c6aa46ae673cbb --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index59-BCUEZn56.js @@ -0,0 +1,11 @@ +import { J as m$1, L as onDestroy } from './2-CQ_Bz8hd.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; + +function n(n,r){n.component(n=>{let{$$slots:i,$$events:a,...o}=r;new m$1(o).watch_for_change(),onDestroy(()=>{});});} + +export { n as default }; +//# sourceMappingURL=Index59-BCUEZn56.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index6-D64oSdu4.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index6-D64oSdu4.js new file mode 100644 index 0000000000000000000000000000000000000000..a2f7e64e35b3caf3ad09e3561eedb68f1e3a6a37 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index6-D64oSdu4.js @@ -0,0 +1,9 @@ +export { r as BaseButton, i as default } from './Index5-DfYNKinm.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './Image-BFJk-f6P.js'; +//# sourceMappingURL=Index6-D64oSdu4.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index60-B9QVWuWM.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index60-B9QVWuWM.js new file mode 100644 index 0000000000000000000000000000000000000000..e01714e74fc65f94b15325d5b9f9e246d6973f83 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index60-B9QVWuWM.js @@ -0,0 +1,16 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { r } from './Index5-DfYNKinm.js'; +import { m } from './src4-BlBbNhwG.js'; +import { f as attr, i as stringify, e as escape_html, d as derived } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './Image-BFJk-f6P.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; + +function i(e,i){e.component(e=>{let{elem_id:a=``,elem_classes:o=[],visible:s=true,label:c,value:l,file_count:u,file_types:d=[],root:f,size:p=`lg`,icon:m$1=null,scale:h=null,min_width:g=void 0,variant:_=`secondary`,disabled:v=false,max_file_size:y=null,upload:b,onclick:x,onchange:S,onupload:C,onerror:w,children:T}=i,E=derived(()=>d==null?null:d.map(e=>e.startsWith(`.`)?e:e+`/*`).join(`, `));function D(){x?.(),(void 0).click();}e.push(` `),r(e,{size:p,variant:_,elem_id:a,elem_classes:o,visible:s,onclick:D,scale:h,min_width:g,disabled:v,children:e=>{m$1?(e.push(``),e.push(``)):e.push(``),e.push(` `),T?(e.push(``),T(e),e.push(``)):e.push(``),e.push(``);}}),e.push(``);});}function a(t,n){t.component(t=>{let{$$slots:a,$$events:o,...s}=n,c=new m$1(s),l=derived(()=>c.props.value);async function u(e,t){c.props.value=e,c.dispatch(t);}let d=derived(()=>!c.shared.interactive);i(t,{elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,visible:c.shared.visible,file_count:c.props.file_count,file_types:c.props.file_types,size:c.props.size,scale:c.shared.scale,icon:c.props.icon,min_width:c.shared.min_width,root:c.shared.root,value:l(),disabled:d(),variant:c.props.variant,label:c.shared.label,max_file_size:c.shared.max_file_size,onclick:()=>c.dispatch(`click`),onchange:e=>u(e,`change`),onupload:e=>u(e,`upload`),onerror:e=>{c.dispatch(`error`,e);},upload:(...e)=>c.shared.client.upload(...e),children:e=>{e.push(`${escape_html(c.shared.label??``)}`);}});});} + +export { i as BaseUploadButton, a as default }; +//# sourceMappingURL=Index60-B9QVWuWM.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index61-DqeMltVe.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index61-DqeMltVe.js new file mode 100644 index 0000000000000000000000000000000000000000..d0903d05081d60d9da7c1d6c87ed1cbfd6efb115 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index61-DqeMltVe.js @@ -0,0 +1,18 @@ +import './2-CQ_Bz8hd.js'; +import './Index17-CuHcLsB5.js'; +import { d } from './Index42-HeTRxHPQ.js'; +import { b as attr_style, i as stringify, a as attr_class, h as ensure_array_like, e as escape_html, f as attr } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +import './markdown-code-CPYQEp1F.js'; + +function r(r,i){r.component(r=>{let {app:a,root:o}=i,s=350,l=[],u=[];(async()=>{a.post_data(`${o}/gradio_api/vibe-starter-queries/`,{}).then(async([e,t])=>{if(t!==200)throw Error(`Error: ${t}`);u=e.starter_queries;}).catch(async e=>{console.error(`Failed to fetch starter queries:`,e);});})();let p=true,m;function h(t){t.push(`
    Chat Code `),t.push(``),t.push(`
    `);{t.push(``),t.push(`
    `);let r=ensure_array_like(l);for(let i=0,a=r.length;i
    `),d(t,{value:a.text,latex_delimiters:[],theme_mode:`system`}),t.push(` `),!a.isBot&&a.hash&&!a.isPending?(t.push(``),t.push(``)):t.push(``),t.push(`
    `);}if(t.push(` `),l.length===0?(t.push(``),t.push(`
    No messages yet
    `)):t.push(``),t.push(` `),l.length===0){t.push(``),t.push(`
    `);let e=ensure_array_like(u);for(let r=0,i=e.length;r${escape_html(i)}`);}t.push(`
    `);}else t.push(``);t.push(`
    `);}t.push(`
    Powered by: gpt-oss
    `);}do p=true,m=r.copy(),h(m);while(!p);r.subsume(m);});} + +export { r as default }; +//# sourceMappingURL=Index61-DqeMltVe.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index62-ND9vK-Je.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index62-ND9vK-Je.js new file mode 100644 index 0000000000000000000000000000000000000000..aee66ef8c85d14d2549b1e6acc8d9e463647e334 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/Index62-ND9vK-Je.js @@ -0,0 +1,21 @@ +import { J as m$1 } from './2-CQ_Bz8hd.js'; +import { f as f$1 } from './Index3-CP6pEq_w.js'; +import { f as f$2 } from './ImagePreview-BZkRir9q.js'; +import { q as setContext, o as store_get, e as escape_html, a as attr_class, b as attr_style, i as stringify, h as ensure_array_like, f as attr, u as unsubscribe_stores, d as derived, w as writable, g as getContext, j as clsx } from './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './server-CR3r1l-0.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './Image-BFJk-f6P.js'; + +function l(e,t){return e===`any`||t===`any`||e===t}var u={image:`#4fd1a5`,text:`#8b83e8`,audio:`#f5a623`,video:`#4d9cf5`,number:`#e879a8`,boolean:`#f59e0b`,file:`#94a3b8`,json:`#22d3ee`,gallery:`#34d399`,model3d:`#a78bfa`,html:`#f97316`,any:`#6b6e78`},d={image:`rgba(79, 209, 165, 0.15)`,text:`rgba(139, 131, 232, 0.15)`,audio:`rgba(245, 166, 35, 0.15)`,video:`rgba(77, 156, 245, 0.15)`,number:`rgba(232, 121, 168, 0.15)`,boolean:`rgba(245, 158, 11, 0.15)`,file:`rgba(148, 163, 184, 0.15)`,json:`rgba(34, 211, 238, 0.15)`,gallery:`rgba(52, 211, 153, 0.15)`,model3d:`rgba(167, 139, 250, 0.15)`,html:`rgba(249, 115, 22, 0.15)`,any:`rgba(107, 110, 120, 0.10)`};function f(e,t){return e.references.find(e=>e.id===t)??e.operators.find(e=>e.id===t)??e.subjects.find(e=>e.id===t)}function p(e){let t=new Set;for(let n of e.edges)t.add(n.to_node_id);let n=[];for(let t of e.references)n.push({id:t.id,kind:`component`,label:t.label,source:`local`,inputs:t.inputs,outputs:t.outputs,x:t.x,y:t.y,width:t.width,height:t.height,manual_height:t.manual_height,data:t.data});for(let t of e.operators)n.push({id:t.id,kind:`transform`,label:t.label,source:t.kind,space_id:t.space_id,model_id:t.model_id,dataset_id:t.dataset_id,dataset_config:t.dataset_config,dataset_split:t.dataset_split,endpoint:t.endpoint,endpoints:t.endpoints,pipeline_tag:t.pipeline_tag,provider:t.provider,fn:t.fn,inputs:t.inputs,outputs:t.outputs,x:t.x,y:t.y,width:t.width,height:t.height,manual_height:t.manual_height,data:t.data});for(let t of e.subjects)n.push({id:t.id,kind:`component`,label:t.label,source:`local`,inputs:t.inputs,outputs:t.outputs,x:t.x,y:t.y,width:t.width,height:t.height,manual_height:t.manual_height,data:t.data});return {version:`1`,name:e.name,nodes:n,edges:e.edges}}function m(){return crypto.randomUUID()}var h=writable({schema_version:`2`,name:`My workflow`,runtime:{default:`client`},references:[{id:`ref_default`,role:`reference`,label:`Image`,asset_type:`image`,inputs:[{id:`in`,label:`Image`,type:`image`}],outputs:[{id:`out`,label:`Image`,type:`image`}],data:{},x:80,y:120,width:200,height:160}],operators:[],subjects:[],edges:[],view:{default:`canvas`}});function g(e){for(let t of Object.values(e??{})){let e=t?.url;typeof e==`string`&&e.startsWith(`blob:`)&&URL.revokeObjectURL(e);}}var _={boolean:false,number:0,text:``};function v(e){let t={};for(let n of e)n.default_value===void 0?n.type in _&&(t[n.id]??=_[n.type]):t[n.id]=n.default_value;return t}function y(e,t,n){let r=m(),i=v([...e.inputs,...e.outputs]),a={...e,role:`reference`,id:r,x:t,y:n,data:i};return h.update(e=>({...e,references:[...e.references,a]})),r}function S(e,t,n,r){let i={label:t.label??``,inputs:t.inputs??[],outputs:t.outputs??[],width:t.width??200,height:t.height??100};{let e=t.asset_type??t.outputs?.[0]?.type??t.inputs?.[0]?.type??`any`;return y({...i,asset_type:e},n,r)}}function C(e,t){return {...e,references:e.references.map(e=>t(e)),operators:e.operators.map(e=>t(e)),subjects:e.subjects.map(e=>t(e))}}function w(e){let t=new Set(e.edges.map(e=>e.to_node_id)),n=e=>e.inputs.length>0&&t.has(e.id),r=e=>{g(e.data);let{value:t,...n}=e;return {...n,role:`subject`,data:{}}},i=e=>(g(e.data),{...e,role:`reference`,data:v([...e.inputs,...e.outputs])});return {...e,references:[...e.references.filter(e=>!n(e)),...e.subjects.filter(e=>!n(e)).map(i)],subjects:[...e.subjects.filter(n),...e.references.filter(n).map(r)]}}function T(e,t,n){h.update(r=>C(r,r=>r.id===e?{...r,data:{...r.data,[t]:n}}:r));}function E(e){h.update(t=>{let n=f(t,e);return n&&g(n.data),w({...t,references:t.references.filter(t=>t.id!==e),operators:t.operators.filter(t=>t.id!==e),subjects:t.subjects.filter(t=>t.id!==e),edges:t.edges.filter(t=>t.from_node_id!==e&&t.to_node_id!==e)})});}function D(e){h.update(t=>w({...t,edges:[...t.edges,{...e,id:m()}]}));}function O(e,t){h.update(n=>({...n,operators:n.operators.map(n=>n.id===e?{...n,endpoints:t}:n)}));}function k(e,t){h.update(n=>{let r=n.operators.find(t=>t.id===e);if(!r||!r.endpoints)return n;let i=r.endpoints.find(e=>e.name===t);if(!i||i.name===r.endpoint)return n;let a=new Map(i.inputs.map(e=>[e.id,e])),o=new Map(i.outputs.map(e=>[e.id,e]));return w({...n,operators:n.operators.map(t=>t.id===e?{...t,endpoint:i.name,inputs:i.inputs,outputs:i.outputs,data:{}}:t),edges:n.edges.filter(t=>{if(t.from_node_id===e){let e=o.get(t.from_port_id);if(!e||!l(e.type,t.type))return false}if(t.to_node_id===e){let e=a.get(t.to_port_id);if(!e||!l(e.type,t.type))return false}return true})})});}function j(e){e.push(``);}function M(e){e.push(``);}function N(e){e.push(``);}function P(e){e.push(``);}function F(e){e.push(``);}function ee(e){e.push(``);}function I(e,i){e.component(e=>{let {node:a,widgetPortId:o,widgetType:s,isReadonly:l,fillHeight:u=false,ondatachange:d}=i,f=getContext(`wf`),p=derived(()=>!!f?.readOnly),g=derived(()=>(s===`image`||s===`audio`)&&!l&&typeof navigator<`u`&&!!navigator.mediaDevices?.getUserMedia),_=derived(()=>a.outputs.find(e=>e.id===o)??a.inputs.find(e=>e.id===o)),v=derived(()=>_()?.choices??null),y=derived(()=>!!v()?.length),b=derived(()=>!!_()?.multiselect);function x(){let e=a.data?.[o];return typeof e==`string`?e:``}function S(){let e=a.data?.[o];return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function C(){let e=a.data?.[o];return typeof e==`number`?e:0}function w(){let e=a.data?.[o];return typeof e==`boolean`?e:false}let T=derived(()=>typeof a.data?.[o]==`string`?a.data[o]:``);let O={image:`image/*`,audio:`audio/*`,video:`video/*`,model3d:`.glb,.gltf,.obj,.stl`},k=e=>e;if(e.push(``),y()&&v()){e.push(``);let t=a.data?.[o],n=b()&&Array.isArray(t)?t:[],r=!b()&&typeof t==`string`?t:``;e.push(`
    `);let i=ensure_array_like(v());for(let t=0,s=i.length;t`),b()?(e.push(``),e.push(``)):(e.push(``),e.push(``)),e.push(` ${escape_html(s)}`);}e.push(`
    `);}else if(s===`text`||s===`json`)e.push(``),e.push(`
    `),f$1(e,{value:x(),label:`text`,show_label:false,lines:s===`json`?4:3,max_lines:8,placeholder:l?`Waiting for output...`:s===`json`?`{"key": "value"}`:`Enter text...`,disabled:l,onchange:e=>{a.data?.[o]!==e&&d(a.id,o,e);}}),e.push(`
    `);else if(s===`number`)e.push(``),e.push(`
    `),l?(e.push(``),e.push(`
    ${escape_html(C())}
    `)):(e.push(``),e.push(``)),e.push(`
    `);else if(s===`boolean`)e.push(``),e.push(`
    `);else if(s===`html`)e.push(``),T()?(e.push(``),e.push(`
    `)):(e.push(``),e.push(`
    Waiting for output...
    `)),e.push(``);else if(s===`image`||s===`audio`||s===`video`||s===`file`||s===`gallery`||s===`model3d`){e.push(``);let t=S();t?(e.push(``),e.push(`
    `),(s===`image`||s===`gallery`)&&l?(e.push(``),e.push(`
    `),f$2(e,{value:{url:t.url,orig_name:t.name,path:t.url,mime_type:t.mime,meta:{_type:`gradio.FileData`}},show_label:false,i18n:k,buttons:[]}),e.push(`
    `)):s===`image`||s===`gallery`?(e.push(``),e.push(``)):s===`audio`?(e.push(``),e.push(`
    `)):s===`video`?(e.push(``),e.push(``)):(e.push(``),e.push(`
    ${escape_html(t.name)}
    `)),e.push(`
    `),(s===`image`||s===`gallery`)&&f?.onviewfullscreen?(e.push(``),e.push(``)):e.push(``),e.push(` `),l?e.push(``):(e.push(``),e.push(``)),e.push(`
    `)):l?(e.push(``),e.push(`
    Waiting for output...
    `)):(e.push(``),e.push(` ${escape_html(`Drop ${s} here`)}
    `),g()?(e.push(``),e.push(``)):e.push(``),e.push(`
    `)),e.push(``);}else e.push(``);e.push(``);});}function ne(e){e.push(``);}function re(e,t){e.component(e=>{let{id:n,data:i,selected:a=false}=t,o=getContext(`wf`),s=derived(()=>o.pending),f=derived(()=>o.readOnly),p=derived(()=>i.manual_height??null),m=derived(()=>o.nodeStatus[n]??`idle`),h=derived(()=>o.nodeErrors[n]??``),g=derived(()=>o.staleNodes.has(n)),_=derived(()=>o.connectedPorts),v=derived(()=>i.kind===`transform`),y=derived(()=>o.nodeDurations[n]);function b(e){return e>=10?`${Math.round(e)}s`:e>=1?`${e.toFixed(1)}s`:`${parseFloat(e.toFixed(2))}s`}function x(e,t){if(t===`number`){let t=Number(e);return Number.isNaN(t)?e:t}if(t===`boolean`){if(e===`true`)return true;if(e===`false`)return false}return e}let S=derived(()=>i.outputs[0]?.type??i.inputs[0]?.type??`any`),C=derived(()=>u[S()]),w=derived(()=>d[S()]),T=derived(()=>i.kind===`component`),E=derived(()=>T()&&i.inputs[0]?_().has(`${i.id}:${i.inputs[0].id}:input`):false),D=derived(()=>T()?E()?`output`:`input`:i.kind),O=derived(()=>D()===`input`||D()===`output`),k=derived(O),A=derived(()=>D()===`input`?i.outputs[0]?.id??null:D()===`output`?i.inputs[0]?.id??null:null),j=derived(()=>D()===`input`?i.outputs[0]?.type??null:D()===`output`?i.inputs[0]?.type??null:null),N=derived(()=>D()===`output`);function P(e){return e.space_id?`https://huggingface.co/spaces/${e.space_id}`:e.model_id?`https://huggingface.co/${e.model_id}`:e.dataset_id?`https://huggingface.co/datasets/${e.dataset_id}`:``}let F=derived(()=>s()!==null&&s().from_node_id!==i.id&&i.inputs.some(e=>l(s().type,e.type)&&!_().has(`${i.id}:${e.id}:input`)));if(e.push(`
    `),m()===`running`&&!v()?(e.push(``),e.push(``)):e.push(``),e.push(` `),e.push(``),e.push(`${escape_html(i.label)}`),e.push(` `),v()?(e.push(``),e.push(``),y()===void 0?e.push(``):(e.push(``),e.push(`${escape_html(b(y()))}`)),e.push(` `),m()===`running`?(e.push(``),e.push(``)):(e.push(``),ne(e)),e.push(``)):e.push(``),e.push(` `),f()?e.push(``):(e.push(``),e.push(``)),e.push(`
    `),i.kind===`transform`){if(e.push(``),i.space_id||i.model_id||i.dataset_id){e.push(``);let t=i.space_id??i.model_id??i.dataset_id??``;e.push(`
    `),f()?(e.push(``),e.push(`${escape_html(t.split(`/`).pop()??t)}`)):(e.push(``),e.push(``)),e.push(` `),M(e),e.push(`
    `);}else i.fn?(e.push(``),e.push(`
    ${escape_html(i.fn)}()
    `)):f()?e.push(``):(e.push(``),e.push(``));e.push(``);}else e.push(``);if(e.push(` `),i.space_id?(e.push(``),e.push(`
    `),i.endpoints&&i.endpoints.length>1?(e.push(``),e.select({class:`node-endpoint-select`,disabled:f(),value:i.endpoint??``,onpointerdown:e=>e.stopPropagation(),onmousedown:e=>e.stopPropagation(),onclick:e=>e.stopPropagation(),onchange:e=>{e.stopPropagation(),o.onswitchendpoint(i.id,e.currentTarget.value);}},e=>{e.push(``);let t=ensure_array_like(i.endpoints);for(let n=0,r=t.length;n{e.push(`${escape_html(r.name)}`);},`svelte-1d6rxjm`);}e.push(``);},`svelte-1d6rxjm`)):i.endpoints?e.push(``):(e.push(``),e.push(``)),e.push(`
    `)):e.push(``),e.push(` `),i.inputs.length>0){e.push(``);let t=i.inputs.filter(e=>e.required===false&&!_().has(`${i.id}:${e.id}:input`)).length,n=t>0;e.push(``);let r=ensure_array_like(i.inputs);for(let t=0,n=r.length;t`);let t=!a&&i.kind===`transform`&&!n.choices?.length&&(n.type===`number`||n.type===`boolean`);if(e.push(` `),O()?e.push(``):(e.push(``),e.push(`${escape_html(n.label)} `),t?e.push(``):(e.push(``),e.push(`${escape_html(n.type)}`)),e.push(``)),e.push(` `),t?(e.push(``),n.type===`number`?(e.push(``),e.push(``)):n.type===`boolean`?(e.push(``),e.push(``)):e.push(``),e.push(``)):e.push(``),e.push(` `),!a&&i.kind===`transform`&&!t&&(n.type===`text`||n.type===`number`||n.type===`boolean`||n.type===`any`||n.type===`json`)){if(e.push(``),e.push(`
    `),n.choices&&n.choices.length>0&&n.multiselect){e.push(``);let t=Array.isArray(i.data?.[n.id])?i.data[n.id]:[];e.push(`
    `);let r=ensure_array_like(n.choices);for(let n=0,i=r.length;n ${escape_html(i)}`);}e.push(`
    `);}else if(n.choices&&n.choices.length>0){e.push(``);let t=i.data?.[n.id]??n.default_value,r=t==null?``:String(t),a=n.choices.includes(r);e.select({class:`inline-input inline-select`,value:a?r:``,onchange:e=>{let t=e.currentTarget.value;t!==``&&o.ondatachange(i.id,n.id,x(t,n.type));}},e=>{a?e.push(``):(e.push(``),e.option({value:``,disabled:true,class:``},e=>{e.push(`Select ${escape_html(n.label)}`);},`svelte-1d6rxjm`)),e.push(``);let t=ensure_array_like(n.choices);for(let n=0,r=t.length;n{e.push(`${escape_html(r)}`);},`svelte-1d6rxjm`);}e.push(``);},`svelte-1d6rxjm`);}else n.type===`number`?(e.push(``),e.push(``)):n.type===`boolean`?(e.push(``),e.push(``)):(e.push(``),e.push(``));e.push(`
    `);}else e.push(``);e.push(``);}else e.push(``);e.push(``);}e.push(` `),n?(e.push(``),e.push(``)):e.push(``),e.push(``);}else e.push(``);if(e.push(` `),O()&&A()&&j()?(e.push(``),I(e,{node:i,widgetPortId:A(),widgetType:j(),isReadonly:N(),fillHeight:p()!==null,ondatachange:o.ondatachange})):e.push(``),e.push(` `),i.outputs.length>0){e.push(``),e.push(``);let t=ensure_array_like(i.outputs);for(let n=0,r=t.length;n`),O()?e.push(``):(e.push(``),e.push(`${escape_html(r.type)} ${escape_html(r.label)}`)),e.push(` `);}e.push(``);}else e.push(``);e.push(` `),m()===`error`&&h()?(e.push(``),e.push(`
    ${escape_html(h())}
    `)):e.push(``),e.push(` `);});}var L={key:`all`,label:`All`,pipelineTag:``,inputs:[],outputs:[]};function R(e,t,n,r,i){return {key:e,label:i?.label??`${z(n)} → ${z(r)}`,pipelineTag:t,spaceCategory:i?.spaceCategory,inputs:n,outputs:r}}function z(e){return e.length===0?`Any`:e.map(e=>ie[e]??e).join(` + `)}var ie={image:`Image`,audio:`Audio`,video:`Video`,text:`Text`,model3d:`3D`,number:`Number`,boolean:`Toggle`,json:`Data`,gallery:`Gallery`,html:`HTML`},ae={key:`data`,label:`Data`,category:`data`,port_type:null,subtabs:[L]},B=[{key:`image`,label:`Image`,category:`image`,port_type:`image`,subtabs:[L,R(`text-to-image`,`text-to-image`,[`text`],[`image`],{label:`Image Generation`,spaceCategory:`image-generation`}),R(`image-to-image`,`image-to-image`,[`image`],[`image`],{label:`Image Editing`,spaceCategory:`image-editing`}),R(`image-to-text`,`image-to-text`,[`image`],[`text`],{label:`Image Captioning`,spaceCategory:`image-captioning`}),R(`object-detection`,`object-detection`,[`image`],[`json`],{label:`Object Detection`,spaceCategory:`object-detection`}),R(`image-segmentation`,`image-segmentation`,[`image`],[`json`],{label:`Image Segmentation`}),R(`image-classification`,`image-classification`,[`image`],[`json`],{label:`Image Classification`}),R(`zero-shot-image-classification`,`zero-shot-image-classification`,[`image`,`text`],[`json`],{label:`Zero-Shot Classification`}),R(`zero-shot-object-detection`,`zero-shot-object-detection`,[`image`,`text`],[`json`],{label:`Zero-Shot Detection`}),R(`mask-generation`,`mask-generation`,[`image`],[`image`],{label:`Mask Generation`}),R(`keypoint-detection`,`keypoint-detection`,[`image`],[`json`],{label:`Keypoint Detection`}),R(`visual-question-answering`,`visual-question-answering`,[`image`,`text`],[`text`],{label:`Visual Q&A`}),R(`document-question-answering`,`document-question-answering`,[`image`,`text`],[`text`],{label:`Document Q&A`}),R(`depth-estimation`,`depth-estimation`,[`image`],[`image`],{label:`Depth Estimation`})]},{key:`audio`,label:`Audio`,category:`audio`,port_type:`audio`,subtabs:[L,R(`text-to-speech`,`text-to-speech`,[`text`],[`audio`],{label:`Speech Synthesis`,spaceCategory:`speech-synthesis`}),R(`automatic-speech-recognition`,`automatic-speech-recognition`,[`audio`],[`text`],{label:`Speech Recognition`}),R(`audio-to-audio`,`audio-to-audio`,[`audio`],[`audio`],{label:`Voice Cloning`,spaceCategory:`voice-cloning`}),R(`text-to-audio`,`text-to-audio`,[`text`],[`audio`],{label:`Music Generation`,spaceCategory:`music-generation`}),R(`audio-classification`,`audio-classification`,[`audio`],[`json`],{label:`Audio Classification`})]},{key:`video`,label:`Video`,category:`video`,port_type:`video`,subtabs:[L,R(`text-to-video`,`text-to-video`,[`text`],[`video`],{label:`Video Generation`,spaceCategory:`video-generation`}),R(`image-to-video`,`image-to-video`,[`image`],[`video`],{label:`Character Animation`,spaceCategory:`character-animation`}),R(`video-classification`,`video-classification`,[`video`],[`json`],{label:`Video Classification`})]},{key:`text`,label:`Text`,category:`text`,port_type:`text`,subtabs:[L,R(`text-generation`,`text-generation`,[`text`],[`text`],{label:`Text Generation`,spaceCategory:`text-generation`}),R(`summarization`,`summarization`,[`text`],[`text`],{label:`Text Summarization`,spaceCategory:`text-summarization`}),R(`translation`,`translation`,[`text`],[`text`],{label:`Language Translation`,spaceCategory:`language-translation`}),R(`text-classification`,`text-classification`,[`text`],[`json`],{label:`Text Analysis`,spaceCategory:`text-analysis`}),R(`zero-shot-classification`,`zero-shot-classification`,[`text`],[`json`],{label:`Zero-Shot Classification`}),R(`question-answering`,`question-answering`,[`text`],[`text`],{label:`Question Answering`,spaceCategory:`question-answering`})]},{key:`3d`,label:`3D`,category:`3d`,port_type:`model3d`,subtabs:[L,R(`text-to-3d`,`text-to-3d`,[`text`],[`model3d`],{label:`3D from Text`,spaceCategory:`3d-modeling`}),R(`image-to-3d`,`image-to-3d`,[`image`],[`model3d`],{label:`3D from Image`,spaceCategory:`3d-modeling`})]}],se=[{port_type:`image`,label:`Image`,modality_key:`image`},{port_type:`audio`,label:`Audio`,modality_key:`audio`},{port_type:`video`,label:`Video`,modality_key:`video`},{port_type:`model3d`,label:`3D`,modality_key:`3d`},{port_type:`text`,label:`Text`,modality_key:`text`},{port_type:`number`,label:`Number`},{port_type:`boolean`,label:`Toggle`},{port_type:`json`,label:`JSON`},{port_type:`gallery`,label:`Gallery`,modality_key:`image`},{port_type:`html`,label:`HTML`}];function ce(e){e.push(``);}function V(e){e.push(``);}function H(e){e.push(``);}function U(e){e.push(``);}function le(e){e.push(``);}function W(e){e.push(``);}function ue(e){e.push(``);}function de(e){e.push(``);}function fe(e){e.push(``);}function pe(e,t){e.component(e=>{let{running:n,hasTransforms:r,boundFns:i,activeModalityKey:a=null,readOnly:s=false}=t,m=derived(()=>{let e=new Set(B.map(e=>e.key));return B.filter(t=>e.has(t.key))});if(e.push(`
    `),s)e.push(``);else {if(e.push(``),m().length>0){e.push(``),e.push(`
    Add a node:
    `);let t=ensure_array_like(m());for(let n=0,r=t.length;n`),r.key===`image`?(e.push(``),ce(e)):r.key===`audio`?(e.push(``),V(e)):r.key===`video`?(e.push(``),H(e)):r.key===`3d`?(e.push(``),U(e)):r.key===`text`?(e.push(``),le(e)):e.push(``),e.push(` ${escape_html(r.label)} `),a===r.key?(e.push(``),e.push(``)):e.push(``),e.push(`
    `);}e.push(`
    `);}else e.push(``);e.push(`
    `),e.push(``),e.push(`
    `),i.length>0?(e.push(``),e.push(`
    `),e.push(``),e.push(`
    `)):e.push(``),e.push(`
    `);}e.push(` `),n?(e.push(``),e.push(``)):(e.push(``),e.push(``)),e.push(``);});}function me(e){let t=e.port_type===`number`?130:160;return {label:e.label,kind:`component`,source:`local`,inputs:[{id:`in`,label:e.label,type:e.port_type}],outputs:[{id:`out`,label:e.label,type:e.port_type}],width:220,height:t}}var he={components:se.map(me)};function G(e){let t=e===`any`||e===`file`?`image`:e;return he.components.find(e=>e.outputs[0]?.type===t)??null}function ve(e,t,n,r){let i=e.toLowerCase();if(n){let e=n.toLowerCase().replace(/^none\s*\|\s*/,``).replace(/\s*\|\s*none$/,``).trim();if(e===`str`||e===`string`)return `text`;if(e===`int`||e===`integer`||e===`float`)return `number`;if(e===`bool`||e===`boolean`)return `boolean`}if(i===`image`||i===`imageeditor`||i===`imageslider`)return `image`;if(i===`gallery`)return `gallery`;if(i===`audio`)return `audio`;if(i===`video`)return `video`;if(i===`number`||i===`slider`)return `number`;if(i===`checkbox`)return `boolean`;if(i===`file`||i===`uploadbutton`||i===`downloadbutton`)return `file`;if(i===`model3d`)return `model3d`;if(i===`json`||i===`dataframe`)return `json`;if(i===`html`)return `html`;if(i===`state`)return `__skip__`;if(i===`textbox`||i===`text`||i===`markdown`||i===`chatbot`||i===`label`||i===`code`||i===`highlightedtext`||i===`dropdown`||i===`radio`||i===`checkboxgroup`||i===`colorpicker`)return `text`;if(n){let e=n.toLowerCase().replace(/^none\s*\|\s*/,``).replace(/\s*\|\s*none$/,``).trim();if(e===`filepath`||e===`file`||e.includes(`filedata`)){let e=(r??``).toLowerCase();return /audio|wav|mp3|voice|sound|speech|tts|asr/.test(e)?`audio`:/image|img|photo|picture|pic\b/.test(e)?`image`:/video|mp4|movie|clip/.test(e)?`video`:/model3d|mesh|glb|gltf|obj\b/.test(e)?`model3d`:`file`}if(e.includes(`dict`)||e.includes(`list`)||e.includes(`any`))return `json`}if(t){let e=typeof t==`string`?t.toLowerCase():``;if(e.includes(`image`)||e.includes(`pil`))return `image`;if(e.includes(`video`)||e.includes(`mp4`))return `video`;if(e.includes(`audio`)||e.includes(`wav`)||e.includes(`mp3`))return `audio`;if(e.includes(`filepath`)||e.includes(`file`))return `file`;if(e===`number`||e===`float`||e===`int`||e===`integer`)return `number`;if(e===`bool`||e===`boolean`)return `boolean`;if(e===`str`||e===`string`)return `text`}return `any`}var K=[`/on_`,`/handle_`,`/update_`,`/prepare_`,`/load_`,`/clear_`,`/reset_`],q=/^\d+(st|nd|rd|th)$/i;function ye(e){if(!e||typeof e!=`object`)return null;let t=e;return Array.isArray(t.enum)&&t.enum.length>0?{choices:t.enum.map(String),multiselect:false}:t.type===`array`&&t.items&&Array.isArray(t.items.enum)&&t.items.enum.length>0?{choices:t.items.enum.map(String),multiselect:true}:null}function be(e,t){let n=(t.parameters??[]).map((e,t)=>{let n=(e.component??``).toLowerCase()===`api`,r=e.python_type?.type,i=e.parameter_name||e.label||``,a=ve(e.component??``,typeof e.type==`string`?e.type:``,r,i);if(a===`__skip__`)return null;let o=e.parameter_has_default===true,s=(n||q.test(e.label??``))&&e.parameter_name?e.parameter_name:e.label||e.parameter_name||`Input ${t}`,c=ye(e.type);return {id:`in_${t}`,label:s,type:a,required:!o,default_value:o&&e.default!==void 0?e.default:void 0,...c??{}}}).filter(Boolean),r=(t.returns??[]).map((t,n)=>{let r=(t.component??``).toLowerCase()===`api`,i=t.python_type?.type,a=r?`${t.parameter_name??``} ${e??``}`.trim():t.parameter_name||t.label||``,o=ve(t.component??``,typeof t.type==`string`?t.type:``,i,a);if(o===`__skip__`)return null;let s=(r||q.test(t.label??``))&&t.parameter_name?t.parameter_name:t.label||`Output ${n}`;return {id:`out_${n}`,label:s,type:o,output_index:n}}).filter(Boolean);return n.length===0&&n.push({id:`in`,label:`Input`,type:`any`}),r.length===0&&r.push({id:`out`,label:`Output`,type:`any`}),{name:e,inputs:n,outputs:r}}var xe=new Map;async function Se(e){let t=xe.get(e);if(t)return t;let n=e.startsWith(`http`)?e:`https://${e.replace(`/`,`-`).replaceAll(`.`,`-`).toLowerCase()}.hf.space`,r=null;for(let e of [`/gradio_api/info`,`/info`,`/api/info`])try{let t=await Promise.race([fetch(`${n}${e}`),new Promise((e,t)=>setTimeout(()=>t(Error(`Timed out`)),1e4))]);if(t.ok){r=t;break}}catch{}if(!r)throw Error(`Could not connect to Space — it may be sleeping or have no Gradio API`);let i=await r.json(),a=i.named_endpoints??{},o=i.unnamed_endpoints??{},s=[...Object.entries(a),...Object.entries(o)].filter(([e])=>!K.some(t=>e.startsWith(t)));if(s.length===0)throw Error(`No suitable endpoints found`);let[c,l]=s[Math.max(0,s.findIndex(([e])=>e===`/predict`))],u=s.map(([e,t])=>be(e,t)),d=be(c,l),f=d.inputs,p=d.outputs,m=e.split(`/`).pop()??e,h=Math.max(...f.map(e=>e.label.length),...p.map(e=>e.label.length),m.length),g={endpoint:c,inputs:f,outputs:p,width:Math.max(280,Math.min(400,h*9+100)),endpoints:u};return xe.set(e,g),g}function J(e){e.push(``);}function Y(e){e.push(``);}function Ce(e,t){let{classNames:n=``}=t;e.push(`
    `),n&&unsubscribe_stores(n);});}function d(e){let t=[``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`],n=0;for(;e>1e3&&n{let{i18n:n,eta:i=null,queue_position:a,queue_size:s,component_id:l=null,fn_index:f=null,status:p,scroll_to_output:m=false,timer:h=true,show_progress:g=`full`,message:_$1=null,progress:v=null,time_start:y=null,eta_total:b=null,variant:x=`default`,loading_text:S=`Loading...`,absolute:C=true,translucent:w=false,border:T=false,autoscroll:E,validation_error:D=null,show_validation_error:O=true,type:k=null,on_clear_status:A,used_cache:j=null,cache_duration:M=null,avg_time:N=null,cache_event_id:P=null,additional_loading_text:F,error_details:I}=t,L=derived(()=>!(O&&D)&&(k===`input`||!p||p===`complete`||g===`hidden`||p==`streaming`)),R=derived(()=>0),z=derived(()=>0 .toFixed(1)),B=derived(()=>v==null);let V=derived(()=>{let e=null;e=v==null?null:v.map(e=>{if(e.index!=null&&e.length!=null)return e.index/e.length;if(e.progress!=null)return e.progress});let t,n=``;return e?(t=e[e.length-1],n=t===0?`0`:`150ms`):t=void 0,{progress_level:e,last_progress_level:t,progress_bar_transition:n}});if(e.push(``),D&&O?(e.push(``),e.push(`
    ${escape_html(D)}
    `)):e.push(``),e.push(` `),p===`pending`){if(e.push(``),x==="default"&&B()&&g===`full`?(e.push(``),e.push(`
    `)):e.push(``),e.push(` `),v){e.push(``),e.push(``);let t=ensure_array_like(v);for(let n=0,r=t.length;n`):(e.push(``),r.length==null?(e.push(``),e.push(`${escape_html(d(r.index||0))}`)):(e.push(``),e.push(`${escape_html(d(r.index||0))}/${escape_html(d(r.length))}`)),e.push(` ${escape_html(r.unit)} | `)),e.push(``);}e.push(``);}else a!==null&&s!==void 0&&a>=0?(e.push(``),e.push(`queue: ${escape_html(a+1)}/${escape_html(s)} |`)):a===0?(e.push(``),e.push(`processing |`)):e.push(``);if(e.push(` `),h?(e.push(``),e.push(`${escape_html(z())}${escape_html(i?`/null`:``)}s`)):e.push(``),e.push(` `),V().last_progress_level!=null){if(e.push(``),e.push(`
    `),v!=null){e.push(``),e.push(``);let t=ensure_array_like(v);for(let n=0,r=t.length;n`),n===0?e.push(``):(e.push(``),e.push(`\xA0/`)),e.push(` `),r.desc==null?e.push(``):(e.push(``),e.push(`${escape_html(r.desc)}`)),e.push(` `),r.desc!=null&&V().progress_level&&V().progress_level[n]!=null?(e.push(``),e.push(`-`)):e.push(``),e.push(` `),V().progress_level==null?e.push(``):(e.push(``),e.push(`${escape_html((100*(V().progress_level[n]||0)).toFixed(1))}%`)),e.push(``)):e.push(``),e.push(``);}e.push(``);}else e.push(``);e.push(`
    `);}else g===`full`?(e.push(``),u(e,{margin:x==="default"})):e.push(``);e.push(` `),h?e.push(``):(e.push(``),e.push(`

    ${escape_html(S)}

    `),F?.(e),e.push(``)),e.push(``);}else p===`error`?(e.push(``),e.push(`
    `),_(e,{Icon:ee,label:n(`common.clear`),disabled:false,onclick:()=>{A?.();}}),e.push(`
    ${escape_html(n(`common.error`))} `),I?.(e),e.push(``)):e.push(``);e.push(` `),e.push(``),e.push(``);});}function p(r,o){r.component(r=>{let{type:l,messages:u=[],expanded:d=true}=o,m={error:`An error occurred.`,warning:`Warning.`,success:`Success.`,info:`Info.`},h=derived(()=>u.length),g=derived(()=>u[0]),_=derived(()=>l.charAt(0).toUpperCase()+l.slice(1)),v=derived(()=>g()?.duration!==null),y=derived(()=>v()?`${g().duration}s`:`0s`);if(r.push(`
    `),l===`warning`?(r.push(``),Oe(r)):l===`info`?(r.push(``),B(r)):l===`success`?(r.push(``),V(r)):l===`error`?(r.push(``),I(r)):r.push(``),r.push(`
    ${escape_html(_())} `),h()>1?(r.push(``),r.push(`(${escape_html(h())})`)):r.push(``),r.push(` 0})}>`),O(r),r.push(`
    `),d){r.push(``),r.push(`
    `);let e=ensure_array_like(u);for(let t=0,n=e.length;t${html(ur(n.message||m[l]))}
    `),t`),r.push(`
    `)):r.push(``),r.push(``);}r.push(``);}else r.push(``);r.push(` `),v()?(r.push(``),r.push(``)):r.push(``),r.push(``);});}function m(e,t){e.component(e=>{var n;let{messages:r=[],on_close:i}=t,a=spring(0,{stiffness:.4,damping:.5}),o=[];e.push(`
    `);let u=ensure_array_like(o);for(let t=0,n=u.length;t`),p(e,{type:n.type,messages:n.messages,expanded:n.expanded}),e.push(`
    `);}e.push(``),n&&unsubscribe_stores(n);});}function h(e,t){let{time_limit:n}=t;n?(e.push(``),e.push(`
    `)):e.push(``),e.push(``);}var g=class{current={};fn_outputs={};fn_inputs={};pending_outputs=new Map;fn_status={};show_progress={};cache_event_id=0;register(e,t,n,r){this.fn_outputs[e]=t,this.fn_inputs[e]=n,this.show_progress[e]=r;}remap_ids(e,t,n,r,i){let a=(e,t)=>{let n=Math.min(e.length,t.length);for(let r=0;r{let h=this.current[n],g=o===`pending`?h?.time_start??performance.now():null,_=null;o===`pending`&&g!=null&&(_=a!=null&&(h?.eta_total==null||h.eta!==a)?(performance.now()-g)/1e3+a:h?.eta_total??null),this.current[n]={queue:e.queue||false,queue_size:i,queue_position:r,eta:a,component_id:Number(n),stream_state:l,message:s,progress:c||void 0,status:o,fn_index:e.fn_index,time_limit:u,time_start:g,eta_total:_,type:d,show_progress:this.show_progress[e.fn_index],used_cache:f,cache_duration:p,avg_time:m,cache_event_id:t};});}set_status(e,t){this.current[e].status=t;}resolve_args(e){let{fn_index:t,status:n,size:r=void 0,position:i=null,eta:a=null,message:o=null,stream_state:s=null,time_limit:c=null,progress_data:l=null,used_cache:u=null,cache_duration:d=null,avg_time:f=null}=e,p=this.fn_outputs[t],m=this.fn_status[t],h=this.fn_inputs[t];return p.concat(h).map(e=>{let t,g=this.pending_outputs.get(e)||0;if(m===`pending`&&n!==`pending`){let r=g-1;this.pending_outputs.set(e,r<0?0:r),t=r>0?`pending`:n;}else m===`pending`&&n===`pending`?t=`pending`:m!==`pending`&&n===`pending`?(t=`pending`,this.pending_outputs.set(e,g+1)):t=n;let _=h.includes(e)&&s?`input`:p.includes(e)?`output`:`skip`;return {id:e,queue_position:i,queue_size:r,eta:a,status:t,message:o,progress:l,stream_state:s,time_limit:c,type:_,used_cache:u,cache_duration:d,avg_time:f}}).filter(e=>e.type!==`skip`)}}; + +export { f, g, h, is_date as i, loop as l, m, raf as r, u }; +//# sourceMappingURL=statustracker-cy5aG8h8.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/statustracker2-BtOpPJMw.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/statustracker2-BtOpPJMw.js new file mode 100644 index 0000000000000000000000000000000000000000..724fe1e81f139196af662df804efc754fa8d7802 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/statustracker2-BtOpPJMw.js @@ -0,0 +1,11 @@ +export { u as Loader, g as LoadingStatus, g as LoadingStatusState, f as StatusTracker, h as StreamingBar, m as Toast, f as default } from './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +//# sourceMappingURL=statustracker2-BtOpPJMw.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/sv-TfExP9tZ.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/sv-TfExP9tZ.js new file mode 100644 index 0000000000000000000000000000000000000000..48959f3ec9cb565fa3adec1b97c4ecb43ca5a359 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/sv-TfExP9tZ.js @@ -0,0 +1,4 @@ +var e=`Svenska`,t={annotated_image:`Annoterad bild`},n={allow_recording_access:`Tillåt mikrofonåtkomst för inspelning.`,audio:`Ljud`,record_from_microphone:`Spela in från mikrofon`,stop_recording:`Stoppa inspelning`,no_device_support:`Kan inte få åtkomst till medieenheter. Se till att du använder en säker källa (https) eller localhost (eller har gett ett giltigt SSL-certifikat till ssl_verify) och att du har gett webbläsaren åtkomst till din enhet.`,stop:`Stopp`,resume:`Fortsätt`,record:`Spela in`,no_microphone:`Ingen mikrofon hittades`,pause:`Paus`,play:`Spela upp`,waiting:`Väntar`,drop_to_upload:`Släpp en ljudfil här för att ladda upp`},r={connection_can_break:`På mobila enheter kan anslutningen brytas om fliken lämnas eller om enheten går i viloläge, och du förlorar din plats i kön.`,long_requests_queue:`Det är en lång kö med väntande förfrågningar. Duplicera detta Space för att hoppa över kön.`,lost_connection:`Anslutningen bröts eftersom sidan lämnades. Återgår till kön...`,waiting_for_inputs:`Väntar på att fil(er) ska vara klara att ladda upp, vänligen försök igen.`},i={checkbox:`Kryssruta`,checkbox_group:`Kryssrutgrupp`},a={code:`Kod`},o={color_picker:`Färgväljare`},s={built_with:`Byggt med`,built_with_gradio:`Byggt med Gradio`,clear:`Rensa`,download:`Ladda ner`,edit:`Redigera`,empty:`Tom`,error:`Fel`,hosted_on:`Värd på`,loading:`Laddar`,logo:`Logotyp`,or:`eller`,remove:`Ta bort`,settings:`Inställningar`,share:`Dela`,submit:`Skicka`,undo:`Ångra`,no_devices:`Inga enheter hittades`,language:`Språk`,display_theme:`Visningstema`,pwa:`Progressiv webbapplikation`},c={incorrect_format:`Fel format, endast CSV- och TSV-filer stöds`,new_column:`Lägg till kolumn`,new_row:`Ny rad`,add_row_above:`Lägg till rad ovanför`,add_row_below:`Lägg till rad nedanför`,add_column_left:`Lägg till kolumn till vänster`,add_column_right:`Lägg till kolumn till höger`,delete_row:`Ta bort rad`,delete_column:`Ta bort kolumn`,sort_column:`Sortera kolumn`,sort_ascending:`Sortera stigande`,sort_descending:`Sortera fallande`,drop_to_upload:`Släpp CSV- eller TSV-filer här för att importera data till dataramverk`,clear_sort:`Rensa sortering`},l={dropdown:`Rullgardinsmeny`},u={build_error:`Det finns ett byggfel`,config_error:`Det finns ett konfigurationsfel`,contact_page_author:`Kontakta sidans författare för att informera dem.`,no_app_file:`Det finns ingen app-fil`,runtime_error:`Det finns ett körtidsfel`,space_not_working:`"Space fungerar inte eftersom" {0}`,space_paused:`Space är pausat`,use_via_api:`Använd via API`,use_via_api_or_mcp:`Använd via API eller MCP`},d={uploading:`Laddar upp...`},f={highlighted_text:`Markerad text`},p={allow_webcam_access:`Tillåt webbkameråtkomst för inspelning.`,brush_color:`Penselfärg`,brush_radius:`Penselstorlek`,image:`Bild`,remove_image:`Ta bort bild`,select_brush_color:`Välj penselfärg`,start_drawing:`Börja rita`,use_brush:`Använd pensel`,drop_to_upload:`Släpp en bildfil här för att ladda upp`},m={label:`Etikett`},h={enable_cookies:`Om du besöker ett HuggingFace Space i inkognitoläge måste du aktivera tredjepartscookies.`,incorrect_credentials:`Felaktiga inloggningsuppgifter`,username:`Användarnamn`,password:`Lösenord`,login:`Logga in`},g={number:`Nummer`},_={plot:`Diagram`},v={radio:`Radioknapp`},y={slider:`Skjutreglage`},b={click_to_upload:`Klicka för att ladda upp`,drop_audio:`Släpp ljud här`,drop_csv:`Släpp CSV här`,drop_file:`Släpp fil här`,drop_image:`Släpp bild här`,drop_video:`Släpp video här`,drop_gallery:`Släpp media här`,paste_clipboard:`Klistra in från urklipp`},x={drop_to_upload:`Släpp en videofil här för att ladda upp`},S={edit:`Redigera`,retry:`Försök igen`,undo:`Ångra`,submit:`Skicka`,cancel:`Avbryt`,like:`Gilla`,dislike:`Ogilla`,clear:`Rensa chatten`},C={_name:e,"3D_model":{"3d_model":`3D-modell`,drop_to_upload:`Släpp en 3D-modellfil (.obj, .glb, .stl, .gltf, .splat eller .ply) här för att ladda upp`},annotated_image:t,audio:n,blocks:r,checkbox:i,code:a,color_picker:o,common:s,dataframe:c,dropdown:l,errors:u,file:d,highlighted_text:f,image:p,label:m,login:h,number:g,plot:_,radio:v,slider:y,upload_text:b,video:x,chatbot:S}; + +export { e as _name, t as annotated_image, n as audio, r as blocks, S as chatbot, i as checkbox, a as code, o as color_picker, s as common, c as dataframe, C as default, l as dropdown, u as errors, d as file, f as highlighted_text, p as image, m as label, h as login, g as number, _ as plot, v as radio, y as slider, b as upload_text, x as video }; +//# sourceMappingURL=sv-TfExP9tZ.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ta-BxrvSRtq.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ta-BxrvSRtq.js new file mode 100644 index 0000000000000000000000000000000000000000..f24c1ee4b0b8c161e8c79b1ad1ef5888a23cfc8d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ta-BxrvSRtq.js @@ -0,0 +1,4 @@ +var e=`தமிழ்`,t={built_with_gradio:`கிரேடியோவுடன் உருவாக்கப்பட்டது`,clear:`அழிக்கவும்`,or:`அல்லது`,submit:`சமர்ப்பிக்கவும்`,built_with:`உருவாக்கப்பட்டது`,download:`பதிவிறக்கம்`,edit:`திருத்து`,empty:`காலியாக உள்ளது`,error:`பிழை`,hosted_on:`இதில் ஹோஸ்ட் செய்யப்பட்டது`,loading:`ஏற்றுகிறது`,logo:`லோகோ`,remove:`நீக்கு`,settings:`அமைப்புகள்`,share:`பகிர்`,undo:`செயல்தவிர்`,no_devices:`சாதனங்கள் எதுவும் கிடைக்கவில்லை`,language:`மொழி`,display_theme:`காட்சி தீம்`,pwa:`முன்னேற்ற வலை பயன்பாடு`},n={click_to_upload:`பதிவேற்ற கிளிக் செய்யவும்`,drop_audio:`ஆடியோவை இங்கே விடவும்`,drop_csv:`CSV ஐ இங்கே விடவும்`,drop_file:`கோப்பை இங்கே விடவும்`,drop_image:`படத்தை இங்கே விடவும்`,drop_video:`வீடியோவை இங்கே விடவும்`,drop_gallery:`மீடியாவை இங்கே விடவும்`,paste_clipboard:`கிளிப்போர்டிலிருந்து ஒட்டவும்`},r={annotated_image:`குறிப்பிடப்பட்ட படம்`},i={allow_recording_access:`தயவுசெய்து பதிவு செய்ய மைக்ரோஃபோன் அணுகலை அனுமதிக்கவும்.`,audio:`ஒலி`,drop_to_upload:`ஒலிக் கோப்பை பதிவேற்ற இங்கே விடவும்`,record_from_microphone:`மைக்ரோஃபோனிலிருந்து பதிவு செய்யவும்`,stop_recording:`பதிவை நிறுத்தவும்`,no_device_support:`மீடியா சாதனங்களை அணுக முடியவில்லை. நீங்கள் பாதுகாப்பான மூலத்தில் (https) அல்லது localhost இல் இயங்குகிறீர்களா (அல்லது ssl_verify க்கு செல்லுபடியாகும் SSL சான்றிதழை அனுப்பியுள்ளீர்களா) என்பதையும், உங்கள் சாதனத்திற்கான உலாவி அணுகலை அனுமதித்துள்ளீர்களா என்பதையும் சரிபார்க்கவும்.`,stop:`நிறுத்து`,resume:`தொடரவும்`,record:`பதிவு செய்`,no_microphone:`மைக்ரோஃபோன் எதுவும் கிடைக்கவில்லை`,pause:`இடைநிறுத்து`,play:`இயக்கு`,waiting:`காத்திருக்கிறது`},a={connection_can_break:`மொபைலில், இந்தத் தாவல் ஃபோகஸை இழந்தால் அல்லது சாதனம் உறங்கினால், இணைப்பு துண்டிக்கப்பட்டு, வரிசையில் உங்கள் இடத்தை இழக்கலாம்.`,long_requests_queue:`காத்திருக்கும் கோரிக்கைகளின் நீண்ட வரிசை உள்ளது. வரிசையைத் தவிர்க்க இந்த Space ஐ நகலெடுக்கவும்.`,lost_connection:`பக்கத்தை விட்டு வெளியேறியதால் இணைப்பு துண்டிக்கப்பட்டது. வரிசைக்கு மீண்டும் இணைகிறது...`,waiting_for_inputs:`கோப்பு(கள்) பதிவேற்றம் முடிவடைய காத்திருக்கிறது, தயவுசெய்து மீண்டும் முயற்சிக்கவும்.`},o={checkbox:`தேர்வுப்பெட்டி`,checkbox_group:`தேர்வுப்பெட்டி குழு`},s={code:`குறியீடு`},c={color_picker:`வண்ணத் தேர்வி`},l={incorrect_format:`தவறான வடிவம், CSV மற்றும் TSV கோப்புகள் மட்டுமே ஆதரிக்கப்படுகின்றன`,new_column:`நெடுவரிசை சேர்க்க`,new_row:`புதிய வரிசை`,add_row_above:`மேலே வரிசை சேர்க்க`,add_row_below:`கீழே வரிசை சேர்க்க`,delete_row:`வரிசையை நீக்கு`,delete_column:`நெடுவரிசையை நீக்கு`,add_column_left:`இடது பக்கத்தில் நெடுவரிசை சேர்க்க`,add_column_right:`வலது பக்கத்தில் நெடுவரிசை சேர்க்க`,sort_column:`நெடுவரிசையை வரிசைப்படுத்து`,sort_ascending:`ஏறுவரிசையில் வரிசைப்படுத்து`,sort_descending:`இறங்குவரிசையில் வரிசைப்படுத்து`,drop_to_upload:`தரவுத்தளத்திற்கு தரவை இறக்குமதி செய்ய CSV அல்லது TSV கோப்புகளை இங்கே விடவும்`,clear_sort:`வரிசைப்படுத்தலை அழி`},u={dropdown:`கீழ்தோன்றல் பட்டியல்`},d={build_error:`உருவாக்க பிழை உள்ளது`,config_error:`கட்டமைப்பு பிழை உள்ளது`,contact_page_author:`தயவுசெய்து பக்க ஆசிரியரைத் தொடர்பு கொண்டு தெரிவிக்கவும்.`,no_app_file:`பயன்பாட்டுக் கோப்பு இல்லை`,runtime_error:`இயக்க நேர பிழை உள்ளது`,space_not_working:`"Space செயல்படவில்லை ஏனெனில்" {0}`,space_paused:`Space இடைநிறுத்தப்பட்டுள்ளது`,use_via_api:`API மூலம் பயன்படுத்தவும்`,use_via_api_or_mcp:`API அல்லது MCP மூலம் பயன்படுத்தவும்`},f={uploading:`பதிவேற்றுகிறது...`},p={highlighted_text:`சிறப்பிக்கப்பட்ட உரை`},m={allow_webcam_access:`தயவுசெய்து பதிவு செய்ய வெப்கேம் அணுகலை அனுமதிக்கவும்.`,brush_color:`தூரிகை நிறம்`,brush_radius:`தூரிகை அளவு`,image:`படம்`,remove_image:`படத்தை நீக்கு`,select_brush_color:`தூரிகை நிறத்தைத் தேர்ந்தெடுக்கவும்`,start_drawing:`வரைய தொடங்கவும்`,use_brush:`தூரிகையைப் பயன்படுத்தவும்`,drop_to_upload:`பட கோப்பை பதிவேற்ற இங்கே விடவும்`},h={label:`லேபிள்`},g={enable_cookies:`நீங்கள் மறைநிலை பயன்முறையில் HuggingFace Space ஐப் பார்வையிட்டால், மூன்றாம் தரப்பு குக்கீகளை இயக்க வேண்டும்.`,incorrect_credentials:`தவறான சான்றுகள்`,username:`பயனர்பெயர்`,password:`கடவுச்சொல்`,login:`உள்நுழைய`},_={number:`எண்`},v={plot:`வரைபடம்`},y={radio:`ரேடியோ பொத்தான்`},b={slider:`சறுக்கி`},x={drop_to_upload:`வீடியோ கோப்பை பதிவேற்ற இங்கே விடவும்`},S={edit:`திருத்து`,retry:`மீண்டும் முயற்சி`,undo:`செயல்தவிர்`,submit:`சமர்ப்பிக்கவும்`,cancel:`ரத்து`,like:`விரும்புகிறேன்`,dislike:`விரும்பவில்லை`,clear:`உரையாடலை அழி`},C={_name:e,common:t,upload_text:n,"3D_model":{"3d_model":`3D மாதிரி`,drop_to_upload:`3D மாதிரி கோப்பை (.obj, .glb, .stl, .gltf, .splat, அல்லது .ply) பதிவேற்ற இங்கே விடவும்`},annotated_image:r,audio:i,blocks:a,checkbox:o,code:s,color_picker:c,dataframe:l,dropdown:u,errors:d,file:f,highlighted_text:p,image:m,label:h,login:g,number:_,plot:v,radio:y,slider:b,video:x,chatbot:S}; + +export { e as _name, r as annotated_image, i as audio, a as blocks, S as chatbot, o as checkbox, s as code, c as color_picker, t as common, l as dataframe, C as default, u as dropdown, d as errors, f as file, p as highlighted_text, m as image, h as label, g as login, _ as number, v as plot, y as radio, b as slider, n as upload_text, x as video }; +//# sourceMappingURL=ta-BxrvSRtq.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/th-dlvPr8G_.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/th-dlvPr8G_.js new file mode 100644 index 0000000000000000000000000000000000000000..d4812b2e8c0da0c4cc27d2659393d616dd25321b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/th-dlvPr8G_.js @@ -0,0 +1,4 @@ +var e=`ภาษาไทย`,t={annotated_image:`รูปภาพที่มีคำอธิบาย`},n={allow_recording_access:`กรุณาอนุญาตการเข้าถึงไมโครโฟนเพื่อบันทึกเสียง`,audio:`เสียง`,drop_to_upload:`ลากและวางไฟล์เสียงที่นี่เพื่ออัปโหลด`,record_from_microphone:`บันทึกจากไมโครโฟน`,stop_recording:`หยุดบันทึก`,no_device_support:`ไม่สามารถเข้าถึงอุปกรณ์สื่อได้ โปรดตรวจสอบว่าคุณใช้งานบนโดเมนที่ปลอดภัย (https) หรือ localhost (หรือคุณได้กำหนดค่า SSL ที่ถูกต้อง) และอนุญาตให้เบราว์เซอร์เข้าถึงอุปกรณ์ของคุณ`,stop:`หยุด`,resume:`ทำงานต่อ`,record:`บันทึก`,no_microphone:`ไม่พบไมโครโฟน`,pause:`หยุดชั่วคราว`,play:`เล่น`,waiting:`กำลังรอ`},r={connection_can_break:`บนมือถือ การเชื่อมต่ออาจหลุดหากแท็บนี้ไม่ได้อยู่ในโฟกัสหรืออุปกรณ์เข้าสู่โหมดพัก ส่งผลให้เสียตำแหน่งในคิว`,long_requests_queue:`มีคิวคำขอรออยู่เป็นจำนวนมาก คัดลอก Space นี้เพื่อข้ามคิว`,lost_connection:`การเชื่อมต่อขาดหายเนื่องจากออกจากหน้า กำลังเข้าคิวใหม่...`,waiting_for_inputs:`กำลังรอไฟล์อัปโหลดเสร็จ กรุณาลองใหม่`},i={checkbox:`กล่องเลือก`,checkbox_group:`กลุ่มกล่องเลือก`},a={code:`โค้ด`},o={color_picker:`ตัวเลือกสี`},s={built_with:`สร้างด้วย`,built_with_gradio:`สร้างด้วย Gradio`,clear:`ล้าง`,download:`ดาวน์โหลด`,edit:`แก้ไข`,empty:`ว่างเปล่า`,error:`ข้อผิดพลาด`,hosted_on:`โฮสต์บน`,loading:`กำลังโหลด`,logo:`โลโก้`,or:`หรือ`,remove:`ลบ`,settings:`การตั้งค่า`,share:`แชร์`,submit:`ส่ง`,undo:`เลิกทำ`,no_devices:`ไม่พบอุปกรณ์`,language:`ภาษา`,display_theme:`ธีมการแสดงผล`,pwa:`โปรเกรสซีฟเว็บแอป`},c={incorrect_format:`รูปแบบไม่ถูกต้อง รองรับเฉพาะไฟล์ CSV และ TSV`,new_column:`เพิ่มคอลัมน์`,new_row:`แถวใหม่`,add_row_above:`เพิ่มแถวด้านบน`,add_row_below:`เพิ่มแถวด้านล่าง`,delete_row:`ลบแถว`,delete_column:`ลบคอลัมน์`,add_column_left:`เพิ่มคอลัมน์ทางซ้าย`,add_column_right:`เพิ่มคอลัมน์ทางขวา`,sort_column:`เรียงลำดับคอลัมน์`,sort_ascending:`เรียงจากน้อยไปมาก`,sort_descending:`เรียงจากมากไปน้อย`,drop_to_upload:`ลากและวางไฟล์ CSV หรือ TSV ที่นี่เพื่อนำเข้าข้อมูลลงในตาราง`,clear_sort:`ล้างการเรียงลำดับ`},l={dropdown:`เมนูดรอปดาวน์`},u={build_error:`เกิดข้อผิดพลาดในการสร้าง`,config_error:`เกิดข้อผิดพลาดในการกำหนดค่า`,contact_page_author:`โปรดติดต่อผู้ดูแลเพจเพื่อแจ้งให้ทราบ`,no_app_file:`ไม่พบไฟล์แอป`,runtime_error:`เกิดข้อผิดพลาดขณะทำงาน`,space_not_working:`"Space ใช้งานไม่ได้เนื่องจาก" {0}`,space_paused:`Space ถูกหยุดชั่วคราว`,use_via_api:`ใช้งานผ่าน API`,use_via_api_or_mcp:`ใช้งานผ่าน API หรือ MCP`},d={uploading:`กำลังอัปโหลด...`},f={highlighted_text:`ข้อความที่ถูกเน้น`},p={allow_webcam_access:`กรุณาอนุญาตการเข้าถึงเว็บแคมเพื่อบันทึกภาพ`,brush_color:`สีแปรง`,brush_radius:`ขนาดแปรง`,image:`รูปภาพ`,remove_image:`ลบรูปภาพ`,select_brush_color:`เลือกสีแปรง`,start_drawing:`เริ่มวาด`,use_brush:`ใช้แปรง`,drop_to_upload:`ลากและวางไฟล์รูปภาพที่นี่เพื่ออัปโหลด`},m={label:`ป้ายกำกับ`},h={enable_cookies:`หากคุณเข้าใช้งาน HuggingFace Space ในโหมดไม่ระบุตัวตน คุณต้องเปิดใช้งานคุกกี้ของบุคคลที่สาม`,incorrect_credentials:`ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง`,username:`ชื่อผู้ใช้`,password:`รหัสผ่าน`,login:`เข้าสู่ระบบ`},g={number:`ตัวเลข`},_={plot:`กราฟ`},v={radio:`ปุ่มตัวเลือก`},y={slider:`แถบเลื่อน`},b={click_to_upload:`คลิกเพื่ออัปโหลด`,drop_audio:`ลากและวางไฟล์เสียงที่นี่`,drop_csv:`ลากและวางไฟล์ CSV ที่นี่`,drop_file:`ลากและวางไฟล์ที่นี่`,drop_image:`ลากและวางไฟล์รูปภาพที่นี่`,drop_video:`ลากและวางไฟล์วิดีโอที่นี่`,drop_gallery:`ลากและวางไฟล์สื่อที่นี่`,paste_clipboard:`วางจากคลิปบอร์ด`},x={drop_to_upload:`ลากและวางไฟล์วิดีโอที่นี่เพื่ออัปโหลด`},S={edit:`แก้ไข`,retry:`ลองใหม่`,undo:`เลิกทำ`,submit:`ส่ง`,cancel:`ยกเลิก`,like:`ถูกใจ`,dislike:`ไม่ถูกใจ`,clear:`ล้างการสนทนา`},C={_name:e,"3D_model":{"3d_model":`โมเดล 3 มิติ`,drop_to_upload:`ลากและวางไฟล์โมเดล 3 มิติ (.obj, .glb, .stl, .gltf, .splat, หรือ .ply) ที่นี่เพื่ออัปโหลด`},annotated_image:t,audio:n,blocks:r,checkbox:i,code:a,color_picker:o,common:s,dataframe:c,dropdown:l,errors:u,file:d,highlighted_text:f,image:p,label:m,login:h,number:g,plot:_,radio:v,slider:y,upload_text:b,video:x,chatbot:S}; + +export { e as _name, t as annotated_image, n as audio, r as blocks, S as chatbot, i as checkbox, a as code, o as color_picker, s as common, c as dataframe, C as default, l as dropdown, u as errors, d as file, f as highlighted_text, p as image, m as label, h as login, g as number, _ as plot, v as radio, y as slider, b as upload_text, x as video }; +//# sourceMappingURL=th-dlvPr8G_.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/tinycolor-D-nIUz6e.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/tinycolor-D-nIUz6e.js new file mode 100644 index 0000000000000000000000000000000000000000..0670c33015862fe778030d15a7c32cdaf5820482 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/tinycolor-D-nIUz6e.js @@ -0,0 +1,2 @@ +var T={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`};D(T);function D(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t} +//# sourceMappingURL=tinycolor-D-nIUz6e.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/tr-COceg9eL.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/tr-COceg9eL.js new file mode 100644 index 0000000000000000000000000000000000000000..127f35eb76b7c1ae6d606edd9b3c9656c1f51773 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/tr-COceg9eL.js @@ -0,0 +1,4 @@ +var e=`Türkçe`,t={built_with_gradio:`Gradio ile oluşturulmuştur`,clear:`Temizle`,or:`veya`,submit:`Gönder`,built_with:`İle oluşturuldu`,download:`İndir`,edit:`Düzenle`,empty:`Boş`,error:`Hata`,hosted_on:`Şurada barındırılıyor:`,loading:`Yükleniyor`,logo:`Logo`,remove:`Kaldır`,settings:`Ayarlar`,share:`Paylaş`,undo:`Geri Al`,no_devices:`Hiçbir cihaz bulunamadı`,language:`Dil`,display_theme:`Görünüm Teması`,pwa:`Progressive Web Uygulaması`},n={click_to_upload:`Yüklemek için tıkla`,drop_audio:`Ses dosyasını buraya sürükle`,drop_csv:`CSV dosyasını buraya sürükle`,drop_file:`Dosyayı buraya sürükle`,drop_image:`Resmi buraya sürükle`,drop_video:`Videoyu buraya sürükle`,drop_gallery:`Medyayı buraya bırak`,paste_clipboard:`Panodan yapıştır`},r={annotated_image:`Açıklamalı Görüntü`},i={allow_recording_access:`Lütfen kayıt yapmak için mikrofona erişim izni verin.`,audio:`Ses`,drop_to_upload:`Yüklemek için bir ses dosyasını buraya bırakın`,record_from_microphone:`Mikrofondan kaydet`,stop_recording:`Kaydı durdur`,no_device_support:`Medya cihazlarına erişilemedi. Güvenli bir kökende (https) veya yerel makinede (localhost) çalıştığınızdan emin olun (veya geçerli bir SSL sertifikası ile ssl_verify'yi geçtiniz) ve tarayıcınızın cihazınıza erişim izni verdiğini kontrol edin.`,stop:`Durdur`,resume:`Devam Et`,record:`Kaydet`,no_microphone:`Hiçbir mikrofon bulunamadı`,pause:`Duraklat`,play:`Oynat`,waiting:`Bekliyor`},a={connection_can_break:`Mobil cihazda, bu sekme odaklanmadığında veya cihaz uyku moduna geçtiğinde bağlantı kopabilir ve kuyrukta olduğunuz yer kaybedilebilir.`,long_requests_queue:`Bekleyen isteklerin uzun bir kuyruğu var. Kuyruktan atlamak için bu Space'i kopyalayın.`,lost_connection:`Sayfa terk edildiği için bağlantı kaybedildi. Kuyruğa yeniden katılıyor...`,waiting_for_inputs:`Dosya(lar)ın yükleme işlemini tamamlaması bekleniyor, lütfen yeniden deneyin.`},o={checkbox:`Onay Kutusu`,checkbox_group:`Onay Kutusu Grubu`},s={code:`Kod`},c={color_picker:`Renk Seçici`},l={incorrect_format:`Yanlış format, sadece CSV ve TSV dosyaları destekleniyor`,new_column:`Sütun ekle`,new_row:`Yeni satır`,add_row_above:`Yukarıya satır ekle`,add_row_below:`Aşağıya satır ekle`,delete_row:`Satırı sil`,delete_column:`Sütunu sil`,add_column_left:`Sola sütun ekle`,add_column_right:`Sağa sütun ekle`,sort_column:`Sütunu sırala`,sort_ascending:`Artan sırala`,sort_descending:`Azalan sırala`,drop_to_upload:`Veriyi veri çerçevesine aktarmak için CSV veya TSV dosyalarını buraya bırakın`,clear_sort:`Sıralamayı temizle`},u={dropdown:`Açılır Liste`},d={build_error:`Bir derleme hatası var`,config_error:`Bir yapılandırma hatası var`,contact_page_author:`Lütfen sayfanın yazarıyla iletişime geçin ve bildirin.`,no_app_file:`Uygulama dosyası yok`,runtime_error:`Bir çalışma zamanı hatası var`,space_not_working:`"Space çalışmıyor çünkü" {0}`,space_paused:`Space duraklatıldı`,use_via_api:`API üzerinden kullan`,use_via_api_or_mcp:`API veya MCP üzerinden kullan`},f={uploading:`Yükleniyor...`},p={highlighted_text:`Vurgulanan Metin`},m={allow_webcam_access:`Lütfen kayıt için web kamerasına erişim izni verin.`,brush_color:`Fırça rengi`,brush_radius:`Fırça boyutu`,image:`Görüntü`,remove_image:`Resmi kaldır`,select_brush_color:`Fırça rengini seç`,start_drawing:`Çizim yapmaya başla`,use_brush:`Fırça kullan`,drop_to_upload:`Yüklemek için bir görüntü dosyasını buraya bırakın`},h={label:`Etiket`},g={enable_cookies:`Eğer HuggingFace Space'i Gizli Mod'da ziyaret ediyorsanız, üçüncü taraf çerezleri etkinleştirmelisiniz.`,incorrect_credentials:`Yanlış kimlik bilgileri`,username:`Kullanıcı adı`,password:`Parola`,login:`Giriş yap`},_={number:`Sayı`},v={plot:`Grafik`},y={radio:`Radyo Düğmesi`},b={slider:`Kaydırıcı`},x={drop_to_upload:`Yüklemek için bir video dosyasını buraya bırakın`},S={edit:`Düzenle`,retry:`Tekrar Dene`,undo:`Geri Al`,submit:`Gönder`,cancel:`İptal`,like:`Beğen`,dislike:`Beğenme`,clear:`Sohbeti Temizle`},C={_name:e,common:t,upload_text:n,"3D_model":{"3d_model":`3D Model`,drop_to_upload:`Yüklemek için bir 3D model dosyasını (.obj, .glb, .stl, .gltf, .splat veya .ply) buraya bırakın`},annotated_image:r,audio:i,blocks:a,checkbox:o,code:s,color_picker:c,dataframe:l,dropdown:u,errors:d,file:f,highlighted_text:p,image:m,label:h,login:g,number:_,plot:v,radio:y,slider:b,video:x,chatbot:S}; + +export { e as _name, r as annotated_image, i as audio, a as blocks, S as chatbot, o as checkbox, s as code, c as color_picker, t as common, l as dataframe, C as default, u as dropdown, d as errors, f as file, p as highlighted_text, m as image, h as label, g as login, _ as number, v as plot, y as radio, b as slider, n as upload_text, x as video }; +//# sourceMappingURL=tr-COceg9eL.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/uk-DpIjs8x1.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/uk-DpIjs8x1.js new file mode 100644 index 0000000000000000000000000000000000000000..75224b9233450a7bc16d28556766680c51f6f1d7 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/uk-DpIjs8x1.js @@ -0,0 +1,4 @@ +var e=`Українська`,t={built_with_gradio:`Зроблено на основі Gradio`,clear:`Очистити`,or:`або`,submit:`Надіслати`,settings:`Налаштування`,built_with:`Зроблено з`,download:`Завантажити`,edit:`Редагувати`,empty:`Порожній`,error:`Помилка`,hosted_on:`Розміщено на`,loading:`Завантаження`,logo:`Логотип`,remove:`Видалити`,share:`Поділитися`,undo:`Скасувати`,no_devices:`Пристроїв не знайдено`,language:`Мова`,display_theme:`Тема оформлення`,pwa:`Прогресивний веб-додаток`},n={click_to_upload:`Натисніть, щоб завантажити`,drop_audio:`Перетягніть аудіо сюди`,drop_csv:`Перетягніть CSV-файл сюди`,drop_file:`Перетягніть файл сюди`,drop_image:`Перетягніть зображення сюди`,drop_video:`Перетягніть відео сюди`,drop_gallery:`Перетягніть медіа сюди`,paste_clipboard:`Вставити з буфера обміну`},r={annotated_image:`Анотоване зображення`},i={allow_recording_access:`Будь ласка, дайте доступ до мікрофона для запису.`,audio:`Аудіо`,drop_to_upload:`Перетягніть аудіофайл сюди, щоб завантажити`,record_from_microphone:`Записати з мікрофона`,stop_recording:`Зупинити запис`,no_device_support:`Медійні пристрої не можуть бути доступні. Переконайтеся, що ви запускаєте з захищеного джерела (https) або localhost (або ви передали дійсний SSL-сертифікат до ssl_verify), і ви дозволили браузеру доступ до вашого пристрою.`,stop:`Зупинити`,resume:`Відновити`,record:`Записати`,no_microphone:`Мікрофон не виявлено`,pause:`Пауза`,play:`Відтворити`,waiting:`Очікування`},a={connection_can_break:`На мобільному пристрої з'єднання може перерватися, якщо ця вкладка втрачає фокус або пристрій увійде в режим сну, в результаті чого ви втратите своє місце в черзі.`,long_requests_queue:`У черзі залишилось багато запитів. Скопіюйте цей Space, щоб пропустити чергу.`,lost_connection:`З'єднання втрачено через вихід зі сторінки. Переміщення до кінця черги...`,waiting_for_inputs:`Чекаємо завершення завантаження файлу(ів), будь ласка, спробуйте ще раз.`},o={checkbox:`Прапорець`,checkbox_group:`Група прапорців`},s={code:`Код`},c={color_picker:`Вибір кольору`},l={incorrect_format:`Неправильний формат, підтримуються лише файли CSV та TSV`,new_column:`Додати стовпець`,new_row:`Новий рядок`,add_row_above:`Додати рядок вище`,add_row_below:`Додати рядок нижче`,delete_row:`Видалити рядок`,delete_column:`Видалити стовпець`,add_column_left:`Додати стовпець зліва`,add_column_right:`Додати стовпець справа`,sort_column:`Сортувати стовпець`,sort_ascending:`Сортувати за зростанням`,sort_descending:`Сортувати за спаданням`,drop_to_upload:`Перетягніть CSV або TSV файли сюди, щоб імпортувати дані в таблицю даних`,clear_sort:`Очистити сортування`},u={dropdown:`Випадне меню`},d={build_error:`Є помилка побудови`,config_error:`Є помилка конфігурації`,contact_page_author:`Будь ласка, зв'яжіться з автором сторінки, щоб повідомити.`,no_app_file:`Немає файлу додатку`,runtime_error:`Є помилка виконання`,space_not_working:`"Space не працює, оскільки" {0}`,space_paused:`Space призупинено`,use_via_api:`Використовувати через API`,use_via_api_or_mcp:`Використовувати через API або MCP`},f={uploading:`Завантаження...`},p={highlighted_text:`Виділений текст`},m={allow_webcam_access:`Будь ласка, дайте доступ до веб-камери для запису.`,brush_color:`Колір пензля`,brush_radius:`Розмір пензля`,image:`Зображення`,remove_image:`Видалити зображення`,select_brush_color:`Виберіть колір пензля`,start_drawing:`Почніть малювати`,use_brush:`Використовуйте пензель`,drop_to_upload:`Перетягніть файл зображення сюди, щоб завантажити`},h={label:`Мітка`},g={enable_cookies:`Якщо ви відвідуєте HuggingFace Space у режимі Інкогніто, вам потрібно увімкнути сторонні куки.`,incorrect_credentials:`Неправильні облікові дані`,username:`Ім'я користувача`,password:`Пароль`,login:`Увійти`},_={number:`Число`},v={plot:`Діаграма`},y={radio:`Перемикач`},b={slider:`Повзунок`},x={drop_to_upload:`Перетягніть відеофайл сюди, щоб завантажити`},S={edit:`Редагувати`,retry:`Повторити`,undo:`Скасувати`,submit:`Надіслати`,cancel:`Скасувати`,like:`Подобається`,dislike:`Не подобається`,clear:`Очистити чат`},C={_name:e,common:t,upload_text:n,"3D_model":{"3d_model":`3D-модель`,drop_to_upload:`Перетягніть файл 3D-моделі (.obj, .glb, .stl, .gltf, .splat або .ply) сюди, щоб завантажити`},annotated_image:r,audio:i,blocks:a,checkbox:o,code:s,color_picker:c,dataframe:l,dropdown:u,errors:d,file:f,highlighted_text:p,image:m,label:h,login:g,number:_,plot:v,radio:y,slider:b,video:x,chatbot:S}; + +export { e as _name, r as annotated_image, i as audio, a as blocks, S as chatbot, o as checkbox, s as code, c as color_picker, t as common, l as dataframe, C as default, u as dropdown, d as errors, f as file, p as highlighted_text, m as image, h as label, g as login, _ as number, v as plot, y as radio, b as slider, n as upload_text, x as video }; +//# sourceMappingURL=uk-DpIjs8x1.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ur-TMighcUO.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ur-TMighcUO.js new file mode 100644 index 0000000000000000000000000000000000000000..ec41416da011d9b63fe639f45c20f8041d8e6220 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/ur-TMighcUO.js @@ -0,0 +1,4 @@ +var e=`اردو`,t={built_with_gradio:`Gradio کے ساتھ بنایا گیا`,clear:`صاف کریں`,or:`یا`,submit:`جمع کریں`,settings:`ترتیبات`,built_with:`کے ساتھ بنایا گیا`,download:`ڈاؤن لوڈ کریں`,edit:`ترمیم کریں`,empty:`خالی`,error:`خطا`,hosted_on:`پر میزبانی کی جا رہی ہے`,loading:`لوڈ ہو رہا ہے`,logo:`لوگو`,remove:`حذف کریں`,share:`شیئر کریں`,undo:`واپس لیں`,no_devices:`کوئی ڈیوائس نہیں ملی`,language:`زبان`,display_theme:`تھیم کی نمائش`,pwa:`پروگریسیو ویب ایپ`},n={click_to_upload:`اپ لوڈ کے لیے کلک کریں`,drop_audio:`یہاں آڈیو ڈراپ کریں`,drop_csv:`یہاں CSV ڈراپ کریں`,drop_file:`یہاں فائل ڈراپ کریں`,drop_image:`یہاں تصویر ڈراپ کریں`,drop_video:`یہاں ویڈیو ڈراپ کریں`,drop_gallery:`میڈیا یہاں ڈالیں`,paste_clipboard:`کلپ بورڈ سے پیسٹ کریں`},r={annotated_image:`تشریحی تصویر`},i={allow_recording_access:`براہ مہربانی ریکارڈنگ کے لیے مائیکروفون تک رسائی کی اجازت دیں۔`,audio:`آڈیو`,drop_to_upload:`اپلوڈ کرنے کے لیے آڈیو فائل یہاں ڈراپ کریں`,record_from_microphone:`مائیکروفون سے ریکارڈ کریں`,stop_recording:`ریکارڈنگ بند کریں`,no_device_support:`میڈیا ڈیوائسز تک رسائی حاصل نہیں کی جا سکی۔ یقینی بنائیں کہ آپ محفوظ ذریعہ (https) یا localhost پر چلا رہے ہیں (یا آپ نے ssl_verify میں درست SSL سرٹیفکیٹ منتقل کیا ہے)، اور آپ نے براؤزر کو اپنے ڈیوائس تک رسائی کی اجازت دی ہے۔`,stop:`روکیں`,resume:`دوبارہ شروع کریں`,record:`ریکارڈ کریں`,no_microphone:`کوئی مائیکروفون نہیں ملا`,pause:`روکیں`,play:`چلائیں`,waiting:`انتظار کر رہا ہے`},a={connection_can_break:`موبائل پر، اگر اس ٹیب کا فوکس کھو جائے یا ڈیوائس سلیپ موڈ میں چلا جائے تو کنکشن ٹوٹ سکتا ہے، جس سے آپ قطار میں اپنی جگہ کھو سکتے ہیں۔`,long_requests_queue:`درخواستوں کی ایک لمبی قطار زیر التواء ہے۔ قطار چھوڑنے کے لیے اس Space کو ڈپلیکیٹ کریں۔`,lost_connection:`صفحہ چھوڑنے کی وجہ سے کنکشن کھو گیا۔ قطار میں دوبارہ شامل ہو رہا ہے...`,waiting_for_inputs:`فائل(وں) کے اپ لوڈ ہونے کا انتظار ہے، براہ کرم دوبارہ کوشش کریں۔`},o={checkbox:`چیک باکس`,checkbox_group:`چیک باکس گروپ`},s={code:`کوڈ`},c={color_picker:`رنگ منتخب کرنے والا`},l={incorrect_format:`غلط فارمیٹ، صرف CSV اور TSV فائلوں کی حمایت کی جاتی ہے`,new_column:`کالم شامل کریں`,new_row:`نئی قطار`,add_row_above:`اوپر قطار شامل کریں`,add_row_below:`نیچے قطار شامل کریں`,delete_row:`قطار حذف کریں`,delete_column:`کالم حذف کریں`,add_column_left:`بائیں طرف کالم شامل کریں`,add_column_right:`دائیں طرف کالم شامل کریں`,sort_column:`کالم کو ترتیب دیں`,sort_ascending:`صعودی ترتیب دیں`,sort_descending:`نزولی ترتیب دیں`,drop_to_upload:`ڈیٹا کو ڈیٹا فریم میں درآمد کرنے کے لیے CSV یا TSV فائلیں یہاں ڈراپ کریں`,clear_sort:`ترتیب صاف کریں`},u={dropdown:`ڈراپ ڈاؤن`},d={build_error:`تعمیر میں خطا ہے`,config_error:`ترتیب میں خطا ہے`,contact_page_author:`براہ کرم صفحہ کے مصنف سے رابطہ کریں تاکہ انہیں مطلع کیا جا سکے۔`,no_app_file:`کوئی ایپ فائل نہیں ہے`,runtime_error:`رن ٹائم میں خطا ہے`,space_not_working:`"Space کام نہیں کر رہا ہے کیونکہ" {0}`,space_paused:`Space موقوف ہے`,use_via_api:`API کے ذریعے استعمال کریں`,use_via_api_or_mcp:`API یا MCP کے ذریعے استعمال کریں`},f={uploading:`اپلوڈ ہو رہا ہے...`},p={highlighted_text:`نمایاں کردہ متن`},m={allow_webcam_access:`براہ مہربانی ریکارڈنگ کے لیے ویب کیم تک رسائی کی اجازت دیں۔`,brush_color:`برش کا رنگ`,brush_radius:`برش کا سائز`,image:`تصویر`,remove_image:`تصویر حذف کریں`,select_brush_color:`برش کا رنگ منتخب کریں`,start_drawing:`ڈرائنگ شروع کریں`,use_brush:`برش استعمال کریں`,drop_to_upload:`اپلوڈ کرنے کے لیے تصویر فائل یہاں ڈراپ کریں`},h={label:`لیبل`},g={enable_cookies:`اگر آپ انکوگنیٹو موڈ میں HuggingFace Space ملاحظہ کر رہے ہیں تو، آپ کو تیسرے فریق کے کوکیز کو فعال کرنا ہوگا۔`,incorrect_credentials:`غلط اسناد`,username:`صارف نام`,password:`پاس ورڈ`,login:`لاگ ان کریں`},_={number:`نمبر`},v={plot:`گراف`},y={radio:`ریڈیو بٹن`},b={slider:`سلائیڈر`},x={drop_to_upload:`اپلوڈ کرنے کے لیے ویڈیو فائل یہاں ڈراپ کریں`},S={edit:`ترمیم`,retry:`دوبارہ کوشش`,undo:`واپس`,submit:`جمع کریں`,cancel:`منسوخ`,like:`پسند`,dislike:`ناپسند`,clear:`گفتگو صاف کریں`},C={_name:e,common:t,upload_text:n,"3D_model":{"3d_model":`3D ماڈل`,drop_to_upload:`اپلوڈ کرنے کے لیے 3D ماڈل (.obj, .glb, .stl, .gltf, .splat، یا .ply) فائل یہاں ڈراپ کریں`},annotated_image:r,audio:i,blocks:a,checkbox:o,code:s,color_picker:c,dataframe:l,dropdown:u,errors:d,file:f,highlighted_text:p,image:m,label:h,login:g,number:_,plot:v,radio:y,slider:b,video:x,chatbot:S}; + +export { e as _name, r as annotated_image, i as audio, a as blocks, S as chatbot, o as checkbox, s as code, c as color_picker, t as common, l as dataframe, C as default, u as dropdown, d as errors, f as file, p as highlighted_text, m as image, h as label, g as login, _ as number, v as plot, y as radio, b as slider, n as upload_text, x as video }; +//# sourceMappingURL=ur-TMighcUO.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/uz-CGtdGj7X.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/uz-CGtdGj7X.js new file mode 100644 index 0000000000000000000000000000000000000000..05f94175917d5e8619731ce5cb162e45f1adc77c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/uz-CGtdGj7X.js @@ -0,0 +1,4 @@ +var e=`O'zbek`,t={built_with_gradio:`Gradio bilan yaratilgan`,clear:`Tozalash`,submit:`Yuborish`,built_with:`Bilan yaratilgan`,download:`Yuklab olish`,edit:`Tahrirlash`,empty:`Bo'sh`,error:`Xato`,hosted_on:`Joylashtirilgan`,loading:`Yuklanmoqda`,logo:`Logo`,or:`yoki`,remove:`O'chirish`,settings:`Sozlamalar`,share:`Ulashish`,undo:`Bekor qilish`,no_devices:`Hech qanday qurilma topilmadi`,language:`Til`,display_theme:`Ko'rinish mavzusi`,pwa:`Progressive web-ilova`},n={click_to_upload:`Yuklash uchun bosing`,drop_audio:`Audioni shu yerga tashlang`,drop_csv:`CSV faylni shu yerga tashlang`,drop_file:`Faylni shu yerga tashlang`,drop_image:`Rasmni shu yerga tashlang`,drop_video:`Videoni shu yerga tashlang`,drop_gallery:`Mediafaylni shu yerga tashlang`,paste_clipboard:`Klipboarddan qo'yish`},r={annotated_image:`Izohli rasm`},i={allow_recording_access:`Iltimos, yozib olish uchun mikrofonga ruxsat bering.`,audio:`Audio`,drop_to_upload:`Audio faylni yuklash uchun shu yerga tashlang`,record_from_microphone:`Mikrofondan yozib olish`,stop_recording:`Yozib olishni to'xtatish`,no_device_support:`Media qurilmalariga kira olmadik. Xavfsiz manbada (https) yoki localhost-da ishlayotganingizni tekshiring (yoki to'g'ri SSL sertifikatini ssl_verify-ga berganingizni) va brauzer qurilmangizga kirishiga ruxsat berganingizni tekshiring.`,stop:`To'xtatish`,resume:`Davom ettirish`,record:`Yozib olish`,no_microphone:`Mikrofon topilmadi`,pause:`Pauza`,play:`Ijro etish`,waiting:`Kutilmoqda`},a={connection_can_break:`Mobil qurilmada, agar bu yorliq fokusdan chiqsa yoki qurilma uyqu rejimiga o'tsa, aloqa uzilib, navbatdagi o'rningizni yo'qotishingiz mumkin.`,long_requests_queue:`So'rovlar navbati juda uzun. Navbatni chetlab o'tish uchun bu Space-ni nusxalang.`,lost_connection:`Sahifadan chiqib ketganligi sababli aloqa uzildi. Navbatga qayta qo'shilmoqda...`,waiting_for_inputs:`Fayl(lar) yuklanib bo'lishini kutish, iltimos, qayta urinib ko'ring.`},o={checkbox:`Belgilash katagi`,checkbox_group:`Belgilash kataklari guruhi`},s={code:`Kod`},c={color_picker:`Rang tanlagich`},l={incorrect_format:`Noto'g'ri format, faqat CSV va TSV fayllari qo'llab-quvvatlanadi`,new_column:`Ustun qo'shish`,new_row:`Yangi qator`,add_row_above:`Yuqoriga qator qo'shish`,add_row_below:`Pastga qator qo'shish`,delete_row:`Qatorni o'chirish`,delete_column:`Ustunni o'chirish`,add_column_left:`Chapga ustun qo'shish`,add_column_right:`O'ngga ustun qo'shish`,sort_column:`Ustunni saralash`,sort_ascending:`O'sish tartibida saralash`,sort_descending:`Kamayish tartibida saralash`,drop_to_upload:`Ma'lumotlarni ma'lumotlar jadvaliga import qilish uchun CSV yoki TSV fayllarini shu yerga tashlang`,clear_sort:`Saralashni tozalash`},u={dropdown:`Ochiluvchi ro'yxat`},d={build_error:`Tuzilish xatosi mavjud`,config_error:`Konfiguratsiya xatosi mavjud`,contact_page_author:`Iltimos, sahifa muallifiga bog'laning va ularga xabar bering.`,no_app_file:`Ilova fayli yo'q`,runtime_error:`Bajarilish vaqti xatosi mavjud`,space_not_working:`"Space ishlamayapti, chunki" {0}`,space_paused:`Space to'xtatilgan`,use_via_api:`API orqali foydalaning`,use_via_api_or_mcp:`API yoki MCP orqali foydalaning`},f={uploading:`Yuklanmoqda...`},p={highlighted_text:`Ajratilgan matn`},m={allow_webcam_access:`Iltimos, yozib olish uchun veb-kameraga ruxsat bering.`,brush_color:`Cho'tka rangi`,brush_radius:`Cho'tka o'lchami`,image:`Rasm`,remove_image:`Rasmni o'chirish`,select_brush_color:`Cho'tka rangini tanlang`,start_drawing:`Chizishni boshlang`,use_brush:`Cho'tkadan foydalaning`,drop_to_upload:`Rasm faylini yuklash uchun shu yerga tashlang`},h={label:`Yorliq`},g={enable_cookies:`Agar HuggingFace Space-ni Inkognito rejimida ko'rayotgan bo'lsangiz, uchinchi tomon kukilarini yoqishingiz kerak.`,incorrect_credentials:`Noto'g'ri kirish ma'lumotlari`,username:`Foydalanuvchi nomi`,password:`Parol`,login:`Kirish`},_={number:`Raqam`},v={plot:`Grafik`},y={radio:`Radio tugma`},b={slider:`Slayder`},x={drop_to_upload:`Video faylni yuklash uchun shu yerga tashlang`},S={edit:`Tahrirlash`,retry:`Qayta urinish`,undo:`Bekor qilish`,submit:`Yuborish`,cancel:`Bekor qilish`,like:`Yoqdi`,dislike:`Yoqmadi`,clear:`Suhbatni tozalash`},C={_name:e,common:t,upload_text:n,"3D_model":{"3d_model":`3D model`,drop_to_upload:`3D model (.obj, .glb, .stl, .gltf, .splat yoki .ply) faylni yuklash uchun shu yerga tashlang`},annotated_image:r,audio:i,blocks:a,checkbox:o,code:s,color_picker:c,dataframe:l,dropdown:u,errors:d,file:f,highlighted_text:p,image:m,label:h,login:g,number:_,plot:v,radio:y,slider:b,video:x,chatbot:S}; + +export { e as _name, r as annotated_image, i as audio, a as blocks, S as chatbot, o as checkbox, s as code, c as color_picker, t as common, l as dataframe, C as default, u as dropdown, d as errors, f as file, p as highlighted_text, m as image, h as label, g as login, _ as number, v as plot, y as radio, b as slider, n as upload_text, x as video }; +//# sourceMappingURL=uz-CGtdGj7X.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/video2-BGaosY6j.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/video2-BGaosY6j.js new file mode 100644 index 0000000000000000000000000000000000000000..af845e5a9afcff2283b3d9aa883bb6feec3c005e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/video2-BGaosY6j.js @@ -0,0 +1,24 @@ +import { J as m$1, K as tick } from './2-CQ_Bz8hd.js'; +import { f } from './statustracker-cy5aG8h8.js'; +import { h, B as Be, n, X, z as ze } from './src3-h7ZBftxa.js'; +import { g } from './src4-BlBbNhwG.js'; +import { d } from './Video-ClEGvRgS.js'; +export { p as loaded, f as playable } from './Video-ClEGvRgS.js'; +import { P } from './Index32-CNqjvop7.js'; +export { r as BaseExample } from './Example45-BW2IpVjz.js'; +import { E, D } from './VideoPreview-BvGi0VAp.js'; +import './async-Cv1-GZGV.js'; +import { c as bind_props, e as escape_html, d as derived, s as spread_props } from './renderer-Dic3PuWn.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './server-CR3r1l-0.js'; +import './html-CfyvkLET.js'; +import './Image-BFJk-f6P.js'; +import './ImagePreview-BZkRir9q.js'; +import './VolumeLevels-dDp3cUe6.js'; + +function _(e,t){e.component(e=>{let{value:a=null,subtitle:o=null,sources:l=[`webcam`,`upload`],label:u=void 0,show_download_button:f=false,show_label:m=true,webcam_options:h$1,include_audio:_,autoplay:v,root:y,i18n:b,active_source:x=`webcam`,handle_reset_value:S=()=>{},max_file_size:C=null,upload:w,stream_handler:T,loop:E$1,uploading:D=void 0,upload_promise:O=void 0,playback_position:k=void 0,buttons:A=null,on_custom_button_click:j=null,onchange:M,onclear:N,onplay:P$1,onpause:F,onend:I,ondrag:L,onerror:R,onupload:z,onstart_recording:B,onstop_recording:V,onstop:H,children:U}=t,W=false,G=derived(()=>x??`webcam`);function K(e){a=e,M?.(e),e&&z?.(e);}function q(){a=null,M?.(null),N?.();}function J(e){W=true,M?.(e);}function Y({detail:e}){M?.(e);}let X$1=false,Z=true,Q;function $(e){h(e,{show_label:m,Icon:X,label:u||`Video`}),e.push(`
    `),a===null||a?.url===void 0?(e.push(``),e.push(`
    `),G()===`upload`?(e.push(``),g(e,{filetype:`video/x-m4v,video/*`,onload:K,max_file_size:C,onerror:e=>R?.(e),root:y,upload:w,stream_handler:T,aria_label:b(`video.drop_to_upload`),get upload_promise(){return O},set upload_promise(e){O=e,Z=false;},get dragging(){return X$1},set dragging(e){X$1=e,Z=false;},get uploading(){return D},set uploading(e){D=e,Z=false;},children:e=>{U?(e.push(``),U(e),e.push(``)):e.push(``),e.push(``);},$$slots:{default:true}})):G()===`webcam`?(e.push(``),P(e,{root:y,mirror_webcam:h$1.mirror,webcam_constraints:h$1.constraints,include_audio:_,mode:`video`,onerror:e=>R?.(e),oncapture:e=>Y({detail:e}),onstart_recording:()=>B?.(),onstop_recording:()=>V?.(),i18n:b,upload:w,stream_every:1})):e.push(``),e.push(`
    `)):a?.url?(e.push(``),e.push(``),E(e,{upload:w,root:y,interactive:true,autoplay:v,src:a.url,subtitle:o?.url,is_stream:false,onplay:()=>P$1?.(),onpause:()=>F?.(),onstop:()=>H?.(),onend:()=>I?.(),onerror:e=>R?.(e),mirror:h$1.mirror&&G()===`webcam`,label:u,handle_change:J,handle_reset_value:S,loop:E$1,value:a,i18n:b,show_download_button:f,handle_clear:q,has_change_history:W,get playback_position(){return k},set playback_position(e){k=e,Z=false;}}),e.push(``)):a.size?(e.push(``),e.push(`
    ${escape_html(a.orig_name||a.url)}
    ${escape_html(d(a.size))}
    `)):e.push(``),e.push(` `),Be(e,{sources:l,handle_clear:q,get active_source(){return G()},set active_source(e){G(e),Z=false;}}),e.push(`
    `);}do Z=true,Q=e.copy(),$(Q);while(!Z);e.subsume(Q),bind_props(t,{value:a,uploading:D,upload_promise:O,playback_position:k});});}function v(n$1,r){n$1.component(n$1=>{let{$$slots:i,$$events:s,...c}=r,l;class u extends m$1{async get_data(){return l&&(await l,await tick()),await super.get_data()}}let d=new u(c);d.props.value;let f$1=false,p=false,v=derived(()=>d.props.sources?d.props.sources[0]:void 0),y=d.props.value,b=()=>{y===null||d.props.value===y||(d.props.value=y);};function x(e){e==null?d.props.value=null:d.props.value=e;}function S(e){let[t,n]=e.includes(`Invalid file type`)?[`warning`,`complete`]:[`error`,`error`];d.shared.loading_status.status=n,d.shared.loading_status.message=e,d.dispatch(t,e);}let C=true,w;function T(e){d.shared.interactive?(e.push(``),n(e,{visible:d.shared.visible,variant:d.props.value===null&&v()===`upload`?`dashed`:`solid`,border_mode:p?`focus`:`base`,padding:false,elem_id:d.shared.elem_id,elem_classes:d.shared.elem_classes,height:d.props.height||void 0,width:d.props.width,container:d.shared.container,scale:d.shared.scale,min_width:d.shared.min_width,allow_overflow:false,children:e=>{f(e,spread_props([{autoscroll:d.shared.autoscroll,i18n:d.i18n},d.shared.loading_status,{on_clear_status:()=>d.dispatch(`clear_status`,d.shared.loading_status)}])),e.push(` `),_(e,{value:d.props.value,subtitle:d.props.subtitles,onchange:x,ondrag:e=>p=e,onerror:S,label:d.shared.label,show_label:d.shared.show_label,buttons:d.props.buttons??[`download`,`share`],on_custom_button_click:e=>{d.dispatch(`custom_button_click`,{id:e});},sources:d.props.sources,active_source:v(),webcam_options:d.props.webcam_options,include_audio:d.props.include_audio,autoplay:d.props.autoplay,root:d.shared.root,loop:d.props.loop,handle_reset_value:b,onclear:()=>{d.props.value=null,d.dispatch(`clear`),d.dispatch(`input`);},onplay:()=>d.dispatch(`play`),onpause:()=>d.dispatch(`pause`),onupload:()=>{d.dispatch(`upload`),d.dispatch(`input`);},onstop:()=>d.dispatch(`stop`),onend:()=>d.dispatch(`end`),onstart_recording:()=>d.dispatch(`start_recording`),onstop_recording:()=>d.dispatch(`stop_recording`),i18n:d.i18n,max_file_size:d.shared.max_file_size,upload:(...e)=>d.shared.client.upload(...e),stream_handler:(...e)=>d.shared.client.stream(...e),get upload_promise(){return l},set upload_promise(e){l=e,C=false;},get uploading(){return f$1},set uploading(e){f$1=e,C=false;},get playback_position(){return d.props.playback_position},set playback_position(e){d.props.playback_position=e,C=false;},children:e=>{ze(e,{i18n:d.i18n,type:`video`});},$$slots:{default:true}}),e.push(``);},$$slots:{default:true}})):(e.push(``),n(e,{visible:d.shared.visible,variant:d.props.value===null&&v()===`upload`?`dashed`:`solid`,border_mode:p?`focus`:`base`,padding:false,elem_id:d.shared.elem_id,elem_classes:d.shared.elem_classes,height:d.props.height||void 0,width:d.props.width,container:d.shared.container,scale:d.shared.scale,min_width:d.shared.min_width,allow_overflow:false,children:e=>{f(e,spread_props([{autoscroll:d.shared.autoscroll,i18n:d.i18n},d.shared.loading_status,{on_clear_status:()=>d.dispatch(`clear_status`,d.shared.loading_status)}])),e.push(` `),D(e,{value:d.props.value,subtitle:d.props.subtitles,label:d.shared.label,show_label:d.shared.show_label,autoplay:d.props.autoplay,loop:d.props.loop,buttons:d.props.buttons??[`download`,`share`],on_custom_button_click:e=>{d.dispatch(`custom_button_click`,{id:e});},onplay:()=>d.dispatch(`play`),onpause:()=>d.dispatch(`pause`),onstop:()=>d.dispatch(`stop`),onend:()=>d.dispatch(`end`),onshare:e=>d.dispatch(`share`,e),onerror:e=>d.dispatch(`error`,e),i18n:d.i18n,upload:(...e)=>d.shared.client.upload(...e),get playback_position(){return d.props.playback_position},set playback_position(e){d.props.playback_position=e,C=false;}}),e.push(``);},$$slots:{default:true}})),e.push(``);}do C=true,w=n$1.copy(),T(w);while(!C);n$1.subsume(w);});}var y=v; + +export { _ as BaseInteractiveVideo, E as BasePlayer, D as BaseStaticVideo, y as default, d as prettyBytes }; +//# sourceMappingURL=video2-BGaosY6j.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/webworkerAll-DKV0GSGG.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/webworkerAll-DKV0GSGG.js new file mode 100644 index 0000000000000000000000000000000000000000..3cf30c39cc6d0350bc37cb271d99e32270de1fb2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/webworkerAll-DKV0GSGG.js @@ -0,0 +1,16 @@ +import './Index38-CMskepfD.js'; +import './init-DHO5vgBQ.js'; +import './2-CQ_Bz8hd.js'; +import './environment-nLIoW9uA.js'; +import './chunk-B3kRsjbd.js'; +import 'node:module'; +import './renderer-Dic3PuWn.js'; +import './async-Cv1-GZGV.js'; +import './statustracker-cy5aG8h8.js'; +import './src3-h7ZBftxa.js'; +import './html-CfyvkLET.js'; +import './server-CR3r1l-0.js'; +import './ImagePreview-BZkRir9q.js'; +import './Image-BFJk-f6P.js'; +import './tinycolor-D-nIUz6e.js'; +//# sourceMappingURL=webworkerAll-DKV0GSGG.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/zh-CN-icE_T0Fk.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/zh-CN-icE_T0Fk.js new file mode 100644 index 0000000000000000000000000000000000000000..a8eab4979e10e101bf761ac9238a59f3bd63f5b1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/zh-CN-icE_T0Fk.js @@ -0,0 +1,4 @@ +var e=`简体中文`,t={annotated_image:`标注图像`},n={allow_recording_access:`请允许访问麦克风以进行录音。`,audio:`音频`,record_from_microphone:`从麦克风录制`,stop_recording:`停止录制`,no_device_support:`无法访问媒体设备。请检查您是否在安全来源(https)或本地主机上运行(或者您已经通过 ssl_verify 传递了有效的 SSL 证书),并且您已经允许浏览器访问您的设备。`,stop:`停止`,resume:`继续`,record:`录制`,no_microphone:`找不到麦克风`,pause:`暂停`,play:`播放`,waiting:`等待中`,drop_to_upload:`将音频文件拖放到此处以上传`},r={connection_can_break:`在移动设备上,如果此标签页失去焦点或设备休眠,连接可能会中断,导致您在队列中失去位置。`,long_requests_queue:`有一个长时间的待处理请求队列。复制此 Space 以跳过队列。`,lost_connection:`由于离开页面,连接已丢失。正在重新加入队列...`,waiting_for_inputs:`等待文件上传完成,请稍后重试。`},i={checkbox:`复选框`,checkbox_group:`复选框组`},a={code:`代码`},o={color_picker:`颜色选择器`},s={built_with:`构建于`,built_with_gradio:`使用 Gradio 构建`,clear:`清除`,download:`下载`,edit:`编辑`,empty:`空`,error:`错误`,hosted_on:`托管在`,loading:`加载中`,logo:`标志`,or:`或`,remove:`移除`,share:`分享`,submit:`提交`,undo:`撤销`,settings:`设置`,no_devices:`未找到设备`,language:`语言`,display_theme:`显示主题`,pwa:`渐进式 Web 应用`},c={incorrect_format:`格式不正确,仅支持 CSV 和 TSV 文件`,new_column:`添加列`,new_row:`新行`,add_row_above:`在上方添加行`,add_row_below:`在下方添加行`,delete_row:`删除行`,delete_column:`删除列`,add_column_left:`在左侧添加列`,add_column_right:`在右侧添加列`,sort_column:`排序列`,sort_ascending:`升序排序`,sort_descending:`降序排序`,drop_to_upload:`将 CSV 或 TSV 文件拖放到此处以将数据导入数据框`,clear_sort:`清除排序`},l={dropdown:`下拉菜单`},u={build_error:`存在构建错误`,config_error:`存在配置错误`,contact_page_author:`请联系页面的作者并告知他们。`,no_app_file:`不存在应用文件`,runtime_error:`存在运行时错误`,space_not_working:`"Space 无法工作,原因:" {0}`,space_paused:`Space 已暂停`,use_via_api:`通过 API 使用`,use_via_api_or_mcp:`通过 API 或 MCP 使用`},d={uploading:`正在上传...`},f={highlighted_text:`高亮文本`},p={allow_webcam_access:`请允许访问网络摄像头以进行录制。`,brush_color:`画笔颜色`,brush_radius:`画笔大小`,image:`图像`,remove_image:`移除图像`,select_brush_color:`选择画笔颜色`,start_drawing:`开始绘画`,use_brush:`使用画笔`,drop_to_upload:`将图像文件拖放到此处以上传`},m={label:`标签`},h={enable_cookies:`如果您正在使用隐身模式访问 HuggingFace Space,您必须启用第三方 cookie。`,incorrect_credentials:`凭据不正确`,login:`登录`,username:`用户名`,password:`密码`},g={number:`数字`},_={plot:`图表`},v={radio:`单选框`},y={slider:`滑块`},b={click_to_upload:`点击上传`,drop_audio:`将音频拖放到此处`,drop_csv:`将 CSV 文件拖放到此处`,drop_file:`将文件拖放到此处`,drop_image:`将图像拖放到此处`,drop_video:`将视频拖放到此处`,drop_gallery:`在此处放置媒体文件`,paste_clipboard:`从剪贴板粘贴`},x={drop_to_upload:`将视频文件拖放到此处以上传`},S={edit:`编辑`,retry:`重试`,undo:`撤销`,submit:`发送`,cancel:`取消`,like:`赞`,dislike:`踩`,clear:`清空对话`},C={_name:e,"3D_model":{"3d_model":`3D模型`,drop_to_upload:`将 3D 模型(.obj、.glb、.stl、.gltf、.splat 或 .ply)文件拖放到此处以上传`},annotated_image:t,audio:n,blocks:r,checkbox:i,code:a,color_picker:o,common:s,dataframe:c,dropdown:l,errors:u,file:d,highlighted_text:f,image:p,label:m,login:h,number:g,plot:_,radio:v,slider:y,upload_text:b,video:x,chatbot:S}; + +export { e as _name, t as annotated_image, n as audio, r as blocks, S as chatbot, i as checkbox, a as code, o as color_picker, s as common, c as dataframe, C as default, l as dropdown, u as errors, d as file, f as highlighted_text, p as image, m as label, h as login, g as number, _ as plot, v as radio, y as slider, b as upload_text, x as video }; +//# sourceMappingURL=zh-CN-icE_T0Fk.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/zh-TW-CtkCvl07.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/zh-TW-CtkCvl07.js new file mode 100644 index 0000000000000000000000000000000000000000..f0c4c8e4dced4d6ecd644adfb5af9011200fab85 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/chunks/zh-TW-CtkCvl07.js @@ -0,0 +1,4 @@ +var e=`繁體中文`,t={built_with_gradio:`使用 Gradio 建構`,clear:`清除`,or:`或`,submit:`提交`,built_with:`使用`,download:`下載`,edit:`編輯`,empty:`空白`,error:`錯誤`,hosted_on:`托管於`,loading:`載入中`,logo:`標誌`,remove:`移除`,settings:`設定`,share:`分享`,undo:`復原`,no_devices:`未找到裝置`,language:`語言`,display_theme:`顯示主題`,pwa:`漸進式網頁應用程式`},n={click_to_upload:`點擊上傳`,drop_audio:`拖放音訊至此處`,drop_csv:`拖放 CSV 至此處`,drop_file:`拖放檔案至此處`,drop_image:`拖放圖片至此處`,drop_video:`拖放影片至此處`,drop_gallery:`在此處拖放媒體`,paste_clipboard:`從剪貼簿貼上`},r={annotated_image:`標註圖像`},i={allow_recording_access:`請允許存取麥克風以進行錄音。`,audio:`音訊`,drop_to_upload:`將音訊檔案拖放到這裡上傳`,record_from_microphone:`從麥克風錄音`,stop_recording:`停止錄製`,no_device_support:`無法存取媒體裝置。請確認您正在使用安全來源(https)或本機主機(或您已提供有效的 SSL 憑證以進行 ssl_verify),並且已允許瀏覽器存取您的裝置。`,stop:`停止`,resume:`繼續`,record:`錄製`,no_microphone:`未找到麥克風`,pause:`暫停`,play:`播放`,waiting:`等待中`},a={connection_can_break:`在行動裝置上,如果此分頁失去焦點或裝置進入睡眠模式,連線可能會中斷,導致您在隊列中的位置遺失。`,long_requests_queue:`目前有許多待處理的請求。複製此 Space 以跳過隊列。`,lost_connection:`因離開頁面而失去連接。正在重新加入隊列...`,waiting_for_inputs:`等待檔案上傳完成,請稍後重試。`},o={checkbox:`核取方塊`,checkbox_group:`核取方塊群組`},s={code:`程式碼`},c={color_picker:`顏色選擇器`},l={incorrect_format:`格式不正確,僅支援 CSV 和 TSV 檔案`,new_column:`新增欄位`,new_row:`新增列`,add_row_above:`在上方新增列`,add_row_below:`在下方新增列`,delete_row:`刪除列`,delete_column:`刪除欄位`,add_column_left:`在左側新增欄位`,add_column_right:`在右側新增欄位`,sort_column:`排序欄位`,sort_ascending:`升冪排序`,sort_descending:`降冪排序`,drop_to_upload:`將 CSV 或 TSV 檔案拖放到這裡以匯入資料到資料框中`,clear_sort:`清除排序`},u={dropdown:`下拉選單`},d={build_error:`有建置錯誤`,config_error:`有設定錯誤`,contact_page_author:`請聯繫頁面的作者以通知他們。`,no_app_file:`沒有應用程式檔案`,runtime_error:`有執行時錯誤`,space_not_working:`"Space 無法運作,因為" {0}`,space_paused:`Space 已暫停`,use_via_api:`透過 API 使用`,use_via_api_or_mcp:`透過 API 或 MCP 使用`},f={uploading:`上傳中...`},p={highlighted_text:`醒目提示的文字`},m={allow_webcam_access:`請允許存取網路攝影機以進行錄製。`,brush_color:`筆刷顏色`,brush_radius:`筆刷大小`,image:`圖像`,remove_image:`移除圖片`,select_brush_color:`選擇筆刷顏色`,start_drawing:`開始繪圖`,use_brush:`使用筆刷`,drop_to_upload:`將圖像檔案拖放到這裡上傳`},h={label:`標籤`},g={enable_cookies:`如果您在無痕模式下訪問 HuggingFace Space,您必須啟用第三方 Cookie。`,incorrect_credentials:`憑證錯誤`,username:`使用者名稱`,password:`密碼`,login:`登入`},_={number:`數字`},v={plot:`圖表`},y={radio:`單選按鈕`},b={slider:`滑桿`},x={drop_to_upload:`將影片檔案拖放到這裡上傳`},S={edit:`編輯`,retry:`重試`,undo:`復原`,submit:`送出`,cancel:`取消`,like:`讚`,dislike:`不讚`,clear:`清空對話`},C={_name:e,common:t,upload_text:n,"3D_model":{"3d_model":`3D 模型`,drop_to_upload:`將 3D 模型 (.obj、.glb、.stl、.gltf、.splat 或 .ply) 檔案拖放到這裡上傳`},annotated_image:r,audio:i,blocks:a,checkbox:o,code:s,color_picker:c,dataframe:l,dropdown:u,errors:d,file:f,highlighted_text:p,image:m,label:h,login:g,number:_,plot:v,radio:y,slider:b,video:x,chatbot:S}; + +export { e as _name, r as annotated_image, i as audio, a as blocks, S as chatbot, o as checkbox, s as code, c as color_picker, t as common, l as dataframe, C as default, u as dropdown, d as errors, f as file, p as highlighted_text, m as image, h as label, g as login, _ as number, v as plot, y as radio, b as slider, n as upload_text, x as video }; +//# sourceMappingURL=zh-TW-CtkCvl07.js.map diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/index.js b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/index.js new file mode 100644 index 0000000000000000000000000000000000000000..a22edaebc6d4d4fd2566d34b8907328c302dc4d6 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/gradio/templates/node/build/server/index.js @@ -0,0 +1,93 @@ +import { c as c$1 } from './chunks/chunk-B3kRsjbd.js'; +import { R, B, V, w as with_request_store, u, p, h, l, f, g, v, b as b$1, k as k$1, c, a as u$1, d as c$2, e as l$1, j as d, i, m as l$2, n as a, o as e, q as d$1, s, r as ie$1, U, x as v$1, y as o, z as u$2, E as E$1, A as R$1, _, S as S$1, C as s$1, I as I$1, P as P$1, L as L$1, F as F$1, D as f$1, G as g$1, H as P$2, J as o$1, K as F$2, M as s$2, N as m, O as try_get_request_store, Q as i$1, t, T as a$1, W as n$1, $ as $$2, X as w$1, Y as n$2, Z as a$2, a0 as z, a1 as b$2, a2 as H, a3 as W, a4 as le$1, a5 as G$1, a6 as j$1, a7 as ue$1, a8 as I$2 } from './chunks/internal-BOVhnc3H.js'; +import { n } from './chunks/environment-nLIoW9uA.js'; +import { j as json, t as text, i as isRedirect, e as error } from './chunks/index-DKsxGdoA.js'; +import { H as HttpError, S as SvelteKitError, R as Redirect, A as ActionFailure } from './chunks/index-DBqjc0Yf.js'; +import { x as readable, w as writable } from './chunks/renderer-Dic3PuWn.js'; +import 'node:module'; +import './chunks/async-Cv1-GZGV.js'; + +/** + * @template {{ tracing: { enabled: boolean, root: import('@opentelemetry/api').Span, current: import('@opentelemetry/api').Span } }} T + * @param {T} event_like + * @param {import('@opentelemetry/api').Span} current + * @returns {T} + */ +function merge_tracing(event_like, current) { + return { + ...event_like, + tracing: { + ...event_like.tracing, + current + } + }; +} + +var y=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`OPTIONS`,`HEAD`],ne=[`GET`,`POST`,`HEAD`],re=`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$`,b=/[<\b\f\n\r\t\0\u2028\u2029]/g,x=/^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;function S(i,s){let c=new Map,l$1=[],f$1=new Map;function p$1(t){if(!u(t)){if(c.has(t)){c.set(t,c.get(t)+1);return}if(c.set(t,1),s){let e=s(t,e=>S(e,s));if(typeof e==`string`){f$1.set(t,e);return}}if(typeof t==`function`)throw new l(`Cannot stringify a function`,l$1,t,i);switch(p(t)){case `Number`:case `BigInt`:case `String`:case `Boolean`:case `Date`:case `RegExp`:case `URL`:case `URLSearchParams`:return;case `Array`:t.forEach((e,t)=>{l$1.push(`[${t}]`),p$1(e),l$1.pop();});break;case `Set`:Array.from(t).forEach(p$1);break;case `Map`:for(let[e,n]of t)l$1.push(`.get(${u(e)?E(e):`...`})`),p$1(n),l$1.pop();break;case `Int8Array`:case `Uint8Array`:case `Uint8ClampedArray`:case `Int16Array`:case `Uint16Array`:case `Float16Array`:case `Int32Array`:case `Uint32Array`:case `Float32Array`:case `Float64Array`:case `BigInt64Array`:case `BigUint64Array`:case `DataView`:p$1(t.buffer);return;case `ArrayBuffer`:return;case `Temporal.Duration`:case `Temporal.Instant`:case `Temporal.PlainDate`:case `Temporal.PlainTime`:case `Temporal.PlainDateTime`:case `Temporal.PlainMonthDay`:case `Temporal.PlainYearMonth`:case `Temporal.ZonedDateTime`:return;default:if(!f(t))throw new l(`Cannot stringify arbitrary non-POJOs`,l$1,t,i);if(g(t).length>0)throw new l(`Cannot stringify POJOs with symbolic keys`,l$1,t,i);for(let e of Object.keys(t)){if(e===`__proto__`)throw new l(`Cannot stringify objects with __proto__ keys`,l$1,t,i);l$1.push(v(e)),p$1(t[e]),l$1.pop();}}}else if(typeof t==`symbol`)throw new l(`Cannot stringify a Symbol primitive`,l$1,t,i)}p$1(i);let m=new Map;Array.from(c).filter(e=>e[1]>1).sort((e,t)=>t[1]-e[1]).forEach((e,t)=>{m.set(e[0],C(t));});function h$1(n){if(m.has(n))return m.get(n);if(u(n))return E(n);if(f$1.has(n))return f$1.get(n);let i=p(n);switch(i){case `Number`:case `String`:case `Boolean`:case `BigInt`:return `Object(${h$1(n.valueOf())})`;case `RegExp`:let{source:e,flags:a}=n;return a?`new RegExp(${h(e)},"${a}")`:`new RegExp(${h(e)})`;case `Date`:return `new Date(${n.getTime()})`;case `URL`:return `new URL(${h(n.toString())})`;case `URLSearchParams`:return `new URLSearchParams(${h(n.toString())})`;case `Array`:{let e=false,t=`[`;for(let i=0;i0&&(t+=`,`),Object.hasOwn(n,i))t+=h$1(n[i]);else if(!e){let t=b$1(n),a=t.length,o=String(n.length).length;if(n.length+2>25+o+a*(o+2)){let e=t.map(e=>`${e}:${h$1(n[e])}`).join(`,`);return `Object.assign(Array(${n.length}),{${e}})`}e=true,--i;}let i=n.length===0||n.length-1 in n?``:`,`;return t+i+`]`}case `Set`:case `Map`:return `new ${i}([${Array.from(n).map(h$1).join(`,`)}])`;case `Int8Array`:case `Uint8Array`:case `Uint8ClampedArray`:case `Int16Array`:case `Uint16Array`:case `Float16Array`:case `Int32Array`:case `Uint32Array`:case `Float32Array`:case `Float64Array`:case `BigInt64Array`:case `BigUint64Array`:{let e=`new ${i}`;if(m.has(n.buffer))e+=`(${h$1(n.buffer)})`;else {let t=new n.constructor(n.buffer);e+=`([${t}])`;}if(n.byteLength!==n.buffer.byteLength){let t=n.byteOffset/n.BYTES_PER_ELEMENT,r=t+n.length;e+=`.subarray(${t},${r})`;}return e}case `DataView`:{let e=`new DataView`;return m.has(n.buffer)?e+=`(${h$1(n.buffer)}`:e+=`(new Uint8Array([${new Uint8Array(n.buffer)}]).buffer`,n.byteLength!==n.buffer.byteLength&&(e+=`,${n.startOffset},${n.byteLength}`),e+`)`}case `ArrayBuffer`:return `new Uint8Array([${new Uint8Array(n).toString()}]).buffer`;case `Temporal.Duration`:case `Temporal.Instant`:case `Temporal.PlainDate`:case `Temporal.PlainTime`:case `Temporal.PlainDateTime`:case `Temporal.PlainMonthDay`:case `Temporal.PlainYearMonth`:case `Temporal.ZonedDateTime`:return `${i}.from(${h(n.toString())})`;default:let o=Object.keys(n),s=o.map(e=>`${ie(e)}:${h$1(n[e])}`).join(`,`);return Object.getPrototypeOf(n)===null?o.length>0?`{${s},__proto__:null}`:`{__proto__:null}`:`{${s}}`}}let g$1=h$1(i);if(m.size){let n=[],r=[],i=[];return m.forEach((o,s)=>{if(n.push(o),f$1.has(s)){i.push(f$1.get(s));return}if(u(s)){i.push(E(s));return}let c=p(s);switch(c){case `Number`:case `String`:case `Boolean`:case `BigInt`:i.push(`Object(${h$1(s.valueOf())})`);break;case `RegExp`:let{source:e,flags:n}=s,a=n?`new RegExp(${h(e)},"${n}")`:`new RegExp(${h(e)})`;i.push(a);break;case `Date`:i.push(`new Date(${s.getTime()})`);break;case `URL`:i.push(`new URL(${h(s.toString())})`);break;case `URLSearchParams`:i.push(`new URLSearchParams(${h(s.toString())})`);break;case `Array`:i.push(`Array(${s.length})`),s.forEach((e,t)=>{r.push(`${o}[${t}]=${h$1(e)}`);});break;case `Set`:i.push(`new Set`),r.push(`${o}.${Array.from(s).map(e=>`add(${h$1(e)})`).join(`.`)}`);break;case `Map`:i.push(`new Map`),r.push(`${o}.${Array.from(s).map(([e,t])=>`set(${h$1(e)}, ${h$1(t)})`).join(`.`)}`);break;case `Int8Array`:case `Uint8Array`:case `Uint8ClampedArray`:case `Int16Array`:case `Uint16Array`:case `Float16Array`:case `Int32Array`:case `Uint32Array`:case `Float32Array`:case `Float64Array`:case `BigInt64Array`:case `BigUint64Array`:{let e=`new ${c}`;if(m.has(s.buffer))e+=`(${h$1(s.buffer)})`;else {let t=new s.constructor(s.buffer);e+=`([${t}])`;}if(s.byteLength!==s.buffer.byteLength){let t=s.byteOffset/s.BYTES_PER_ELEMENT,n=t+s.length;e+=`.subarray(${t},${n})`;}i.push(`{}`),r.push(`${o}=${e}`);break}case `DataView`:{let e=`new DataView`;m.has(s.buffer)?e+=`(${h$1(s.buffer)}`:e+=`(new Uint8Array([${new Uint8Array(s.buffer)}]).buffer`,s.byteLength!==s.buffer.byteLength&&(e+=`,${s.byteOffset},${s.byteLength}`),e+=`)`,i.push(`{}`),r.push(`${o}=${e}`);break}case `ArrayBuffer`:i.push(`new Uint8Array([${new Uint8Array(s)}]).buffer`);break;default:i.push(Object.getPrototypeOf(s)===null?`Object.create(null)`:`{}`),Object.keys(s).forEach(e=>{r.push(`${o}${ae(e)}=${h$1(s[e])}`);});}}),r.push(`return ${g$1}`),`(function(${n.join(`,`)}){${r.join(`;`)}}(${i.join(`,`)}))`}else return g$1}function C(e){let t=``;do t=re[e%54]+t,e=~~(e/54)-1;while(e>=0);return x.test(t)?`${t}0`:t}function w(e){return c[e]||e}function T(e){return e.replace(b,w)}function ie(e){return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(e)?e:T(JSON.stringify(e))}function ae(e){return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(e)?`.${e}`:`[${T(JSON.stringify(e))}]`}function E(e){let n=typeof e;if(n===`string`)return h(e);if(e===void 0)return `void 0`;if(e===0&&1/e<0)return `-0`;let r=String(e);return n===`number`?r.replace(/^(-)?0\./,`$1.`):n===`bigint`?e+`n`:r}var D=new TextDecoder;function O(e,t,n){t.startsWith(`n:`)?(t=t.slice(2),n=n===``?void 0:parseFloat(n)):t.startsWith(`b:`)&&(t=t.slice(2),n=n===`on`),L(e,F(t),n);}function oe(e){let t={};for(let n of e.keys()){let r=n.endsWith(`[]`),i=e.getAll(n);if(r&&(n=n.slice(0,-2)),i.length>1&&!r)throw Error(`Form cannot contain duplicated keys — "${n}" has ${i.length} values`);i=i.filter(e=>typeof e==`string`||e.name!==``||e.size>0),n.startsWith(`n:`)?(n=n.slice(2),i=i.map(e=>e===``?void 0:parseFloat(e))):n.startsWith(`b:`)&&(n=n.slice(2),i=i.map(e=>e===`on`)),O(t,n,r?i:i[0]);}return t}var se=`application/x-sveltekit-formdata`,k=0,A=7;async function j(e){if(e.headers.get(`content-type`)!==`application/x-sveltekit-formdata`){let t=await e.formData();return {data:oe(t),meta:{},form_data:t}}if(!e.body)throw M(`no body`);let t=e.body.getReader(),n=[];function r(e){if(e in n)return n[e];let r=n.length;for(;r<=e;)n[r]=t.read().then(e=>e.value),r++;return n[e]}async function i(e,t){let n,i=0,a;for(a=0;;a++){let t=await r(a);if(!t)return null;let o=i+t.byteLength;if(e>=i&&et-s&&(e=e.subarray(0,t-s)),o.push(e),s+=e.byteLength;}let c=new Uint8Array(t);s=0;for(let e of o)c.set(e,s),s+=e.byteLength;return c}let a=await i(0,A);if(!a)throw M(`too short`);if(a[0]!==k)throw M(`got version ${a[0]}, expected version ${k}`);let o=new DataView(a.buffer,a.byteOffset,a.byteLength),s=o.getUint32(1,true),c=o.getUint16(5,true),l=await i(A,s);if(!l)throw M(`data too short`);let u,d;if(c>0){let e=await i(A+s,c);if(!e)throw M(`file offset table too short`);let t=JSON.parse(D.decode(e));if(!Array.isArray(t)||t.some(e=>typeof e!=`number`||!Number.isInteger(e)||e<0))throw M(`invalid file offset table`);u=t,d=A+s+c;}let p=[],[m,h]=k$1(D.decode(l),{File:([e,t,n,i,a])=>{if(typeof e!=`string`||typeof t!=`string`||typeof n!=`number`||typeof i!=`number`||typeof a!=`number`)throw M(`invalid file metadata`);let o=u[a];if(o===void 0)throw M(`duplicate file offset table index`);return u[a]=void 0,o+=d,p.push({offset:o,size:n}),new Proxy(new N(e,t,n,i,r,o),{getPrototypeOf(){return File.prototype}})}});p.sort((e,t)=>e.offset-t.offset||e.size-t.size);for(let e=1;en.offset)throw M(`overlapping file data`)}return (async()=>{let e=true;for(;e;)e=!!await r(n.length);})(),{data:m,meta:h,form_data:null}}function M(e){return new SvelteKitError(400,`Bad Request`,`Could not deserialize binary form: ${e}`)}var N=class e{#e;#t;constructor(e,t,n,r,i,a){this.name=e,this.type=t,this.size=n,this.lastModified=r,this.webkitRelativePath=``,this.#e=i,this.#t=a,this.arrayBuffer=this.arrayBuffer.bind(this),this.bytes=this.bytes.bind(this),this.slice=this.slice.bind(this),this.stream=this.stream.bind(this),this.text=this.text.bind(this);}#n;async arrayBuffer(){return this.#n??=await new Response(this.stream()).arrayBuffer(),this.#n}async bytes(){return new Uint8Array(await this.arrayBuffer())}slice(t=0,n=this.size,r=this.type){t=t<0?Math.max(this.size+t,0):Math.min(t,this.size),n=n<0?Math.max(this.size+n,0):Math.min(n,this.size);let i=Math.max(n-t,0);return new e(this.name,r,i,this.lastModified,this.#e,this.#t+t)}stream(){let e=0,t=0;return new ReadableStream({start:async n=>{let r=0,i;for(t=0;;t++){let e=await this.#e(t);if(!e)return null;let n=r+e.byteLength;if(this.#t>=r&&this.#t{t++;let r=await this.#e(t);if(!r){n.error(`incomplete file data`),n.close();return}r.byteLength>this.size-e&&(r=r.subarray(0,this.size-e)),n.enqueue(r),e+=r.byteLength,e>=this.size&&n.close();}})}async text(){return D.decode(await this.arrayBuffer())}},P=/^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;function F(e){if(!P.test(e))throw Error(`Invalid path ${e}`);return e.split(/\.|\[|\]/).filter(Boolean)}function I(e){if(e===`__proto__`||e===`constructor`||e===`prototype`)throw Error(`Invalid key "${e}"`+(n?`: This key is not allowed to prevent prototype pollution.`:``))}function L(e,t,n){let r=e;for(let e=0;e{let r=/([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(e);if(r){let[,e,i,a=`1`]=r;n.push({type:e,subtype:i,q:+a,i:t});}}),n.sort((e,t)=>e.q===t.q?e.subtype===`*`==(t.subtype===`*`)?e.type===`*`==(t.type===`*`)?e.i-t.i:e.type===`*`?1:-1:e.subtype===`*`?1:-1:t.q-e.q);let r,i=1/0;for(let e of t){let[t,a]=e.split(`/`),o=n.findIndex(e=>(e.type===t||e.type===`*`)&&(e.subtype===a||e.subtype===`*`));o!==-1&&oe.length===2?e:n[e]??`&#${e.charCodeAt(0)};`)}function fe(e,t){return text(`${t} method not allowed`,{status:405,headers:{allow:pe(e).join(`, `)}})}function pe(e){let t=y.filter(t=>t in e);return `GET`in e&&!(`HEAD`in e)&&t.push(`HEAD`),t}function me(e){return `__sveltekit_${e.version_hash}`}function X(e,t,n){return text(e.templates.error({status:t,message:Y(n)}),{headers:{"content-type":`text/html; charset=utf-8`},status:t})}async function he(e,t,n,r){r=r instanceof HttpError?r:R(r);let i=B(r),a=await Z$1(e,t,n,r),o=G(e.request.headers.get(`accept`)||`text/html`,[`application/json`,`text/html`]);return e.isDataRequest||o===`application/json`?json(a,{status:i}):X(n,i,a.message)}async function Z$1(e,t,n,r){if(r instanceof HttpError)return {message:`Unknown Error`,...r.body};let i=B(r),a=V(r);return await with_request_store({event:e,state:t},()=>n.hooks.handleError({error:r,event:e,status:i,message:a}))??{message:a}}function ge(e,t){return new Response(void 0,{status:e,headers:{location:t}})}function _e(e,t){return t.path?`Data returned from \`load\` while rendering ${e.route.id} is not serializable: ${t.message} (${t.path}). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#Universal-hooks-transport.`:t.path===``?`Data returned from \`load\` while rendering ${e.route.id} is not a plain object`:t.message}function Q$1(e){let t={};return e.uses&&e.uses.dependencies.size>0&&(t.dependencies=Array.from(e.uses.dependencies)),e.uses&&e.uses.search_params.size>0&&(t.search_params=Array.from(e.uses.search_params)),e.uses&&e.uses.params.size>0&&(t.params=Array.from(e.uses.params)),e.uses?.parent&&(t.parent=1),e.uses?.route&&(t.route=1),e.uses?.url&&(t.url=1),t}function ve(e,t){return e._.prerendered_routes.has(t)||t.at(-1)===`/`&&e._.prerendered_routes.has(t.slice(0,-1))}function ye(e,t,n$1){let r=`\n\x1b[1;31m[${e}] ${n$1.request.method} ${n$1.url.pathname}\x1b[0m`;return e===404?r:`${r}\n${n?be(t):t.stack}`}var $$1=e=>e;if(n)try{let e=await import('node:path'),t=await import('node:process');$$1=n=>e.relative(t.cwd(),n);}catch{}function be(e){let t=(e.stack?.split(` +`)??[]).map(e=>e.replace(/\((.+)(:\d+:\d+)\)$/,(e,t,n)=>`(${$$1(t)}${n})`)),n=t.findLastIndex(e=>/\(src[\\/]/.test(e));return n===-1?e.stack:t.slice(0,n+1).join(` +`)}function xe(e){let t=(e?.split(`/`))?.at(-1);return t?t.split(`.`).slice(0,-1).join(`.`):`unknown`}function Se(e){return (e.match(/ +[![PyPI version](https://img.shields.io/pypi/v/groq.svg?label=pypi%20(stable))](https://pypi.org/project/groq/) + +The Groq Python library provides convenient access to the Groq REST API from any Python 3.9+ +application. The library includes type definitions for all request params and response fields, +and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx). + +It is generated with [Stainless](https://www.stainless.com/). + +## Documentation + +The REST API documentation can be found on [console.groq.com](https://console.groq.com/docs). The full API of this library can be found in [api.md](https://github.com/groq/groq-python/tree/main/api.md). + +## Installation + +```sh +# install from PyPI +pip install groq +``` + +## Usage + +The full API of this library can be found in [api.md](https://github.com/groq/groq-python/tree/main/api.md). + +```python +import os +from groq import Groq + +client = Groq( + api_key=os.environ.get("GROQ_API_KEY"), # This is the default and can be omitted +) + +chat_completion = client.chat.completions.create( + messages=[ + { + "role": "user", + "content": "Explain the importance of low latency LLMs", + } + ], + model="openai/gpt-oss-20b", +) +print(chat_completion.choices[0].message.content) +``` + +While you can provide an `api_key` keyword argument, +we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/) +to add `GROQ_API_KEY="My API Key"` to your `.env` file +so that your API Key is not stored in source control. + +## Async usage + +Simply import `AsyncGroq` instead of `Groq` and use `await` with each API call: + +```python +import os +import asyncio +from groq import AsyncGroq + +client = AsyncGroq( + api_key=os.environ.get("GROQ_API_KEY"), # This is the default and can be omitted +) + + +async def main() -> None: + chat_completion = await client.chat.completions.create( + messages=[ + { + "role": "user", + "content": "Explain the importance of low latency LLMs", + } + ], + model="openai/gpt-oss-20b", + ) + print(chat_completion.choices[0].message.content) + + +asyncio.run(main()) +``` + +Functionality between the synchronous and asynchronous clients is otherwise identical. + +### With aiohttp + +By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend. + +You can enable this by installing `aiohttp`: + +```sh +# install from PyPI +pip install groq[aiohttp] +``` + +Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`: + +```python +import os +import asyncio +from groq import DefaultAioHttpClient +from groq import AsyncGroq + + +async def main() -> None: + async with AsyncGroq( + api_key=os.environ.get("GROQ_API_KEY"), # This is the default and can be omitted + http_client=DefaultAioHttpClient(), + ) as client: + chat_completion = await client.chat.completions.create( + messages=[ + { + "role": "user", + "content": "Explain the importance of low latency LLMs", + } + ], + model="openai/gpt-oss-20b", + ) + print(chat_completion.id) + + +asyncio.run(main()) +``` + +## Using types + +Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like: + +- Serializing back into JSON, `model.to_json()` +- Converting to a dictionary, `model.to_dict()` + +Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`. + +## Nested params + +Nested parameters are dictionaries, typed using `TypedDict`, for example: + +```python +from groq import Groq + +client = Groq() + +chat_completion = client.chat.completions.create( + messages=[ + { + "content": "string", + "role": "system", + } + ], + model="meta-llama/llama-4-scout-17b-16e-instruct", + compound_custom={}, +) +print(chat_completion.compound_custom) +``` + +## File uploads + +Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`. + +```python +from pathlib import Path +from groq import Groq + +client = Groq() + +client.audio.transcriptions.create( + model="whisper-large-v3-turbo", + file=Path("/path/to/file"), +) +``` + +The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically. + +## Handling errors + +When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `groq.APIConnectionError` is raised. + +When the API returns a non-success status code (that is, 4xx or 5xx +response), a subclass of `groq.APIStatusError` is raised, containing `status_code` and `response` properties. + +All errors inherit from `groq.APIError`. + +```python +import groq +from groq import Groq + +client = Groq() + +try: + client.chat.completions.create( + messages=[ + { + "role": "system", + "content": "You are a helpful assistant.", + }, + { + "role": "user", + "content": "Explain the importance of low latency LLMs", + }, + ], + model="openai/gpt-oss-20b", + ) +except groq.APIConnectionError as e: + print("The server could not be reached") + print(e.__cause__) # an underlying Exception, likely raised within httpx. +except groq.RateLimitError as e: + print("A 429 status code was received; we should back off a bit.") +except groq.APIStatusError as e: + print("Another non-200-range status code was received") + print(e.status_code) + print(e.response) +``` + +Error codes are as follows: + +| Status Code | Error Type | +| ----------- | -------------------------- | +| 400 | `BadRequestError` | +| 401 | `AuthenticationError` | +| 403 | `PermissionDeniedError` | +| 404 | `NotFoundError` | +| 422 | `UnprocessableEntityError` | +| 429 | `RateLimitError` | +| >=500 | `InternalServerError` | +| N/A | `APIConnectionError` | + +### Retries + +Certain errors are automatically retried 2 times by default, with a short exponential backoff. +Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict, +429 Rate Limit, and >=500 Internal errors are all retried by default. + +You can use the `max_retries` option to configure or disable retry settings: + +```python +from groq import Groq + +# Configure the default for all requests: +client = Groq( + # default is 2 + max_retries=0, +) + +# Or, configure per-request: +client.with_options(max_retries=5).chat.completions.create( + messages=[ + { + "role": "system", + "content": "You are a helpful assistant.", + }, + { + "role": "user", + "content": "Explain the importance of low latency LLMs", + }, + ], + model="openai/gpt-oss-20b", +) +``` + +### Timeouts + +By default requests time out after 1 minute. You can configure this with a `timeout` option, +which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object: + +```python +from groq import Groq + +# Configure the default for all requests: +client = Groq( + # 20 seconds (default is 1 minute) + timeout=20.0, +) + +# More granular control: +client = Groq( + timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0), +) + +# Override per-request: +client.with_options(timeout=5.0).chat.completions.create( + messages=[ + { + "role": "system", + "content": "You are a helpful assistant.", + }, + { + "role": "user", + "content": "Explain the importance of low latency LLMs", + }, + ], + model="openai/gpt-oss-20b", +) +``` + +On timeout, an `APITimeoutError` is thrown. + +Note that requests that time out are [retried twice by default](https://github.com/groq/groq-python/tree/main/#retries). + +## Advanced + +### Logging + +We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module. + +You can enable logging by setting the environment variable `GROQ_LOG` to `info`. + +```shell +$ export GROQ_LOG=info +``` + +Or to `debug` for more verbose logging. + +### How to tell whether `None` means `null` or missing + +In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`: + +```py +if response.my_field is None: + if 'my_field' not in response.model_fields_set: + print('Got json like {}, without a "my_field" key present at all.') + else: + print('Got json like {"my_field": null}.') +``` + +### Accessing raw response data (e.g. headers) + +The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g., + +```py +from groq import Groq + +client = Groq() +response = client.chat.completions.with_raw_response.create( + messages=[{ + "role": "system", + "content": "You are a helpful assistant.", + }, { + "role": "user", + "content": "Explain the importance of low latency LLMs", + }], + model="openai/gpt-oss-20b", +) +print(response.headers.get('X-My-Header')) + +completion = response.parse() # get the object that `chat.completions.create()` would have returned +print(completion.id) +``` + +These methods return an [`APIResponse`](https://github.com/groq/groq-python/tree/main/src/groq/_response.py) object. + +The async client returns an [`AsyncAPIResponse`](https://github.com/groq/groq-python/tree/main/src/groq/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. + +#### `.with_streaming_response` + +The above interface eagerly reads the full response body when you make the request, which may not always be what you want. + +To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods. + +```python +with client.chat.completions.with_streaming_response.create( + messages=[ + { + "role": "system", + "content": "You are a helpful assistant.", + }, + { + "role": "user", + "content": "Explain the importance of low latency LLMs", + }, + ], + model="openai/gpt-oss-20b", +) as response: + print(response.headers.get("X-My-Header")) + + for line in response.iter_lines(): + print(line) +``` + +The context manager is required so that the response will reliably be closed. + +### Making custom/undocumented requests + +This library is typed for convenient access to the documented API. + +If you need to access undocumented endpoints, params, or response properties, the library can still be used. + +#### Undocumented endpoints + +To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other +http verbs. Options on the client will be respected (such as retries) when making this request. + +```py +import httpx + +response = client.post( + "/foo", + cast_to=httpx.Response, + body={"my_param": True}, +) + +print(response.headers.get("x-foo")) +``` + +#### Undocumented request params + +If you want to explicitly send an extra param, you can do so with the `extra_query`, `extra_body`, and `extra_headers` request +options. + +#### Undocumented response properties + +To access undocumented response properties, you can access the extra fields like `response.unknown_prop`. You +can also get all the extra fields on the Pydantic model as a dict with +[`response.model_extra`](https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_extra). + +### Configuring the HTTP client + +You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including: + +- Support for [proxies](https://www.python-httpx.org/advanced/proxies/) +- Custom [transports](https://www.python-httpx.org/advanced/transports/) +- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality + +```python +import httpx +from groq import Groq, DefaultHttpxClient + +client = Groq( + # Or use the `GROQ_BASE_URL` env var + base_url="http://my.test.server.example.com:8083", + http_client=DefaultHttpxClient( + proxy="http://my.test.proxy.example.com", + transport=httpx.HTTPTransport(local_address="0.0.0.0"), + ), +) +``` + +You can also customize the client on a per-request basis by using `with_options()`: + +```python +client.with_options(http_client=DefaultHttpxClient(...)) +``` + +### Managing HTTP resources + +By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting. + +```py +from groq import Groq + +with Groq() as client: + # make requests here + ... + +# HTTP client is now closed +``` + +## Versioning + +This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions: + +1. Changes that only affect static types, without breaking runtime behavior. +2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_ +3. Changes that we do not expect to impact the vast majority of users in practice. + +We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. + +We are keen for your feedback; please open an [issue](https://www.github.com/groq/groq-python/issues) with questions, bugs, or suggestions. + +### Determining the installed version + +If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version. + +You can determine the version that is being used at runtime with: + +```py +import groq +print(groq.__version__) +``` + +## Requirements + +Python 3.9 or higher. + +## Contributing + +See [the contributing documentation](https://github.com/groq/groq-python/tree/main/./CONTRIBUTING.md). diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/RECORD b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..fe63bea41f080bb64cc1d19164a823db190728c2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/RECORD @@ -0,0 +1,191 @@ +groq-0.37.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +groq-0.37.1.dist-info/METADATA,sha256=1dGlcxFqRdQmTMFZxcxyVggKG_t3lWxiwHs_uALuGDQ,16464 +groq-0.37.1.dist-info/RECORD,, +groq-0.37.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87 +groq-0.37.1.dist-info/licenses/LICENSE,sha256=XyMUyPVTuL8gS25qxMomI_ZlP10bOoqa_4bndaZdPp4,11334 +groq/__init__.py,sha256=hBF_Sb3swHxG9nYHb-0Ehayym6Auf2RV_Bl_ytAAXmM,2606 +groq/__pycache__/__init__.cpython-311.pyc,, +groq/__pycache__/_base_client.cpython-311.pyc,, +groq/__pycache__/_client.cpython-311.pyc,, +groq/__pycache__/_compat.cpython-311.pyc,, +groq/__pycache__/_constants.cpython-311.pyc,, +groq/__pycache__/_exceptions.cpython-311.pyc,, +groq/__pycache__/_files.cpython-311.pyc,, +groq/__pycache__/_models.cpython-311.pyc,, +groq/__pycache__/_qs.cpython-311.pyc,, +groq/__pycache__/_resource.cpython-311.pyc,, +groq/__pycache__/_response.cpython-311.pyc,, +groq/__pycache__/_streaming.cpython-311.pyc,, +groq/__pycache__/_types.cpython-311.pyc,, +groq/__pycache__/_version.cpython-311.pyc,, +groq/_base_client.py,sha256=k2ot_KSSsXVpmr7UuU_LQ_6yVquHWdwBwaetNs55tOE,67045 +groq/_client.py,sha256=xxdfBgtjffBAiczb728mXI0RcRTTlROYFZfbyROUx7o,21766 +groq/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562 +groq/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462 +groq/_exceptions.py,sha256=vwW8IIMnMqCbK8vALhJ-xypkaRN5t44TWdlOPPvs72o,3216 +groq/_files.py,sha256=RjpraS02asMLoliF8gQbcAhJrA5Mq1SVZwTOBGlY5E0,3608 +groq/_models.py,sha256=3D65psj_C02Mw0K2zpBWrn1khmrvtEXgTTQ6P4r3tUY,31837 +groq/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828 +groq/_resource.py,sha256=wjIIjnrEuLKT2QMKq7EyqL3MAj8sBzVpXZ3aiNgO-B8,1088 +groq/_response.py,sha256=oVQZfB-v_TY3ELq1-UgEkE9hGvdGtmdevl9J7T9sdVE,28776 +groq/_streaming.py,sha256=Ekcn4Jtod73R6N-OIoyY0GosDCe0pUxV0E01xyG71Kg,13138 +groq/_types.py,sha256=g0MNZ8sUhdm56RYB6wfqrrlHshnfh-VYm0fN1HGDkzI,7234 +groq/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305 +groq/_utils/__pycache__/__init__.cpython-311.pyc,, +groq/_utils/__pycache__/_compat.cpython-311.pyc,, +groq/_utils/__pycache__/_datetime_parse.cpython-311.pyc,, +groq/_utils/__pycache__/_logs.cpython-311.pyc,, +groq/_utils/__pycache__/_proxy.cpython-311.pyc,, +groq/_utils/__pycache__/_reflection.cpython-311.pyc,, +groq/_utils/__pycache__/_resources_proxy.cpython-311.pyc,, +groq/_utils/__pycache__/_streams.cpython-311.pyc,, +groq/_utils/__pycache__/_sync.cpython-311.pyc,, +groq/_utils/__pycache__/_transform.cpython-311.pyc,, +groq/_utils/__pycache__/_typing.cpython-311.pyc,, +groq/_utils/__pycache__/_utils.cpython-311.pyc,, +groq/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195 +groq/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204 +groq/_utils/_logs.py,sha256=5CMKGQJLSze48WFXOeqP08hwJxTyTtRuBuXv0bcWy_U,768 +groq/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975 +groq/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364 +groq/_utils/_resources_proxy.py,sha256=XsNi_AWz-qFBb5Q2NdmYpLIBH3iTypXDBwXANPb_yco,579 +groq/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289 +groq/_utils/_sync.py,sha256=HBnZkkBnzxtwOZe0212C4EyoRvxhTVtTrLFDz2_xVCg,1589 +groq/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,15951 +groq/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786 +groq/_utils/_utils.py,sha256=ugfUaneOK7I8h9b3656flwf5u_kthY0gvNuqvgOLoSU,12252 +groq/_version.py,sha256=C6TUurFOoCGxCA3_VOaa43HRUMI04_9xnqWYI7AKq-o,157 +groq/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224 +groq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +groq/resources/__init__.py,sha256=Y5Mtyd_Z0Vuvs-1p5xoJmU2apggpWNzLE-7uZM2s5Bg,2239 +groq/resources/__pycache__/__init__.cpython-311.pyc,, +groq/resources/__pycache__/batches.cpython-311.pyc,, +groq/resources/__pycache__/embeddings.cpython-311.pyc,, +groq/resources/__pycache__/files.cpython-311.pyc,, +groq/resources/__pycache__/models.cpython-311.pyc,, +groq/resources/audio/__init__.py,sha256=xcBhPQzsx2-9FZzb7j6owwQOoKwEOf0D3dBfg5h6_u0,1687 +groq/resources/audio/__pycache__/__init__.cpython-311.pyc,, +groq/resources/audio/__pycache__/audio.cpython-311.pyc,, +groq/resources/audio/__pycache__/speech.cpython-311.pyc,, +groq/resources/audio/__pycache__/transcriptions.cpython-311.pyc,, +groq/resources/audio/__pycache__/translations.cpython-311.pyc,, +groq/resources/audio/audio.py,sha256=NclBmlIHQMpzXIXtefQ7ffcPQQFaOBWB_W9Bu6cFvts,5475 +groq/resources/audio/speech.py,sha256=ho4Nt35IlHCa-xHb6eE17b3I9r0Rq165kb4nr4euID4,8409 +groq/resources/audio/transcriptions.py,sha256=uDvN8nrw0m78Vd1rlhGVzfl_wyPdOVSUz7Vzgd1TPro,17198 +groq/resources/audio/translations.py,sha256=B4-bGcc__L9vcL27KseQn0enrf7DiQ5I_P61h9FrYK8,10434 +groq/resources/batches.py,sha256=Wv1_nsCDlAzclD5QPPstKprXcLYH_uJ72x0bsiEEVbE,16290 +groq/resources/chat/__init__.py,sha256=8Q9ODRo1wIpFa34VaNwuaWFmxqFxagDtUhIAkQNvxEU,849 +groq/resources/chat/__pycache__/__init__.cpython-311.pyc,, +groq/resources/chat/__pycache__/chat.cpython-311.pyc,, +groq/resources/chat/__pycache__/completions.cpython-311.pyc,, +groq/resources/chat/chat.py,sha256=PPXzUUV8ZUudR1_ttjLj2SUAlqpJRLBNe6LQ_rJSahQ,3336 +groq/resources/chat/completions.py,sha256=58OIP0YZxH83OeG6y1qouFSLp6y007AmcdRfxKeHlew,53858 +groq/resources/embeddings.py,sha256=qdI7E6RyKgdfcyF3Nb7rwaxcUTzRaQflplRCk3nQXGg,8087 +groq/resources/files.py,sha256=952Nuus3Qt3sCSWt8DjmPplnIeIBuva6Kb3p44Yo5fU,19390 +groq/resources/models.py,sha256=U4vz3jP7TrUzCxnYPeigphGUdXyCSlrNtqG6xbx7azk,10524 +groq/types/__init__.py,sha256=IIZLScyVbUcIfYIYngxYNPUA4hnx5ZEHH-hJi2TA7Wo,1459 +groq/types/__pycache__/__init__.cpython-311.pyc,, +groq/types/__pycache__/batch_cancel_response.cpython-311.pyc,, +groq/types/__pycache__/batch_create_params.cpython-311.pyc,, +groq/types/__pycache__/batch_create_response.cpython-311.pyc,, +groq/types/__pycache__/batch_list_response.cpython-311.pyc,, +groq/types/__pycache__/batch_retrieve_response.cpython-311.pyc,, +groq/types/__pycache__/completion_usage.cpython-311.pyc,, +groq/types/__pycache__/create_embedding_response.cpython-311.pyc,, +groq/types/__pycache__/embedding.cpython-311.pyc,, +groq/types/__pycache__/embedding_create_params.cpython-311.pyc,, +groq/types/__pycache__/file_create_params.cpython-311.pyc,, +groq/types/__pycache__/file_create_response.cpython-311.pyc,, +groq/types/__pycache__/file_delete_response.cpython-311.pyc,, +groq/types/__pycache__/file_info_response.cpython-311.pyc,, +groq/types/__pycache__/file_list_response.cpython-311.pyc,, +groq/types/__pycache__/model.cpython-311.pyc,, +groq/types/__pycache__/model_deleted.cpython-311.pyc,, +groq/types/__pycache__/model_list_response.cpython-311.pyc,, +groq/types/audio/__init__.py,sha256=slwR2gZwYMmTpPihbr1a2rryQuyfqeAGzgjluQwlmN4,494 +groq/types/audio/__pycache__/__init__.cpython-311.pyc,, +groq/types/audio/__pycache__/speech_create_params.cpython-311.pyc,, +groq/types/audio/__pycache__/transcription.cpython-311.pyc,, +groq/types/audio/__pycache__/transcription_create_params.cpython-311.pyc,, +groq/types/audio/__pycache__/translation.cpython-311.pyc,, +groq/types/audio/__pycache__/translation_create_params.cpython-311.pyc,, +groq/types/audio/speech_create_params.py,sha256=XQ8DBVR3WT4bP5xI-lcIxEbQCS-P7_VoE9G_YdqhYjc,1009 +groq/types/audio/transcription.py,sha256=4Ysi29mo2EWDkbT1pCUvp9ZrYdF-uo0hYe04XPnxxQQ,229 +groq/types/audio/transcription_create_params.py,sha256=fMgwpuc2uRX0EAzvwRYwT_k2cEEcoLhp_wvoNjK9MUk,4337 +groq/types/audio/translation.py,sha256=Dlu9YMo0cc44NSCAtLfZnEugkM7VBA6zw2v9bfrLMh0,193 +groq/types/audio/translation_create_params.py,sha256=DALLx145-hPWJyPIFZKqGbgv6F98o5vBZTlv_lw__Uw,1676 +groq/types/batch_cancel_response.py,sha256=kyPqallPOAGpzHW6Ta8l43-M42pUanwwGUFYGXy8414,3341 +groq/types/batch_create_params.py,sha256=wd6NfWvj0yoqvXCFiRjMGpZl3VROLe43XVrptOeIaEI,1090 +groq/types/batch_create_response.py,sha256=rX7ifkOCgs8SM6PE6w1URFoxKMSb4LA1RbwX1GFILdA,3341 +groq/types/batch_list_response.py,sha256=0ZbKLpa2szl8-egKep-fwDqNu0PRIU1gfF9N8WNFUMc,3456 +groq/types/batch_retrieve_response.py,sha256=pp0PwXRYNdEwoKcke_AlCldp3OJPzHTetnyuzoZFwaI,3345 +groq/types/chat/__init__.py,sha256=waUSt926WgCuTOyde_4XXkn36Hd6GhiPZr2KWYMZVy0,2464 +groq/types/chat/__pycache__/__init__.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_message.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_role.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc,, +groq/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc,, +groq/types/chat/__pycache__/completion_create_params.cpython-311.pyc,, +groq/types/chat/chat_completion.py,sha256=Bh22QT7mHm1jyXHImnIDRNiQgLA8mVCMfpTaSGyPTdM,5222 +groq/types/chat/chat_completion_assistant_message_param.py,sha256=dYoCKeelHUMPN8riGbffR3iAVRIW8Bdxx4zjUqMdhhE,1941 +groq/types/chat/chat_completion_chunk.py,sha256=-UXV-lsBwoepnZlo51S7FWUhI2yOFzl9G5gWk9Tbn4o,6991 +groq/types/chat/chat_completion_content_part_image_param.py,sha256=_JTAMYdbTc60hSedXsMQhFyLi1jGynraf-Ig5FU2k1c,660 +groq/types/chat/chat_completion_content_part_param.py,sha256=F7AVV4oCcdL0BjS0H-_PXlNXOn2YyAaF4Ldpf1DxYDk,1254 +groq/types/chat/chat_completion_content_part_text_param.py,sha256=4IpiXMKM9AuTyop5PRptPBbBhh9s93xy2vjg4Yw6NIw,429 +groq/types/chat/chat_completion_function_call_option_param.py,sha256=M-IqWHyBLkvYBcwFxxp4ydCIxbPDaMlNl4bik9UoFd4,365 +groq/types/chat/chat_completion_function_message_param.py,sha256=jIaZbBHHbt4v4xHCIyvYtYLst_X4jOznRjYNcTf0MF0,591 +groq/types/chat/chat_completion_message.py,sha256=hHjfU7gEvqR9-M57twKPhu9LOJz_zZJJ5J_prx6M3-w,7380 +groq/types/chat/chat_completion_message_param.py,sha256=RFer4ZYXxVed9F0ulkqi0xNy_eOhp63Y-0oN24dhVBI,889 +groq/types/chat/chat_completion_message_tool_call.py,sha256=XlIe2vhSYvrt8o8Yol5AQqnacI1xHqpEIV26G4oNrZY,900 +groq/types/chat/chat_completion_message_tool_call_param.py,sha256=XNhuUpGr5qwVTo0K8YavJwleHYSdwN_urK51eKlqC24,1009 +groq/types/chat/chat_completion_named_tool_choice_param.py,sha256=JsxfSJYpOmF7zIreQ0JrXRSLp07OGCBSycRRcF6OZmg,569 +groq/types/chat/chat_completion_role.py,sha256=Rdzg4deI1uZmqgkwnMrLHvbV2fPRqKcHLQrVmKVk9Dw,262 +groq/types/chat/chat_completion_system_message_param.py,sha256=08-f2mexe8T4Nzsf67qVOtU6Tmao0pINGNIa3Alquj0,828 +groq/types/chat/chat_completion_token_logprob.py,sha256=6-ipUFfsXMf5L7FDFi127NaVkDtmEooVgGBF6Ts965A,1769 +groq/types/chat/chat_completion_tool_choice_option_param.py,sha256=ef71WSM9HMQhIQUocRgVJUVW-bSRwK2_1NjFSB5TPiI,472 +groq/types/chat/chat_completion_tool_message_param.py,sha256=d7dZnXli2TwtTCwplKEverQ1iQ293JRnnGsZp1_9h6c,717 +groq/types/chat/chat_completion_tool_param.py,sha256=z-SroE9dWCv0P6k6OUuvfzw6YbNv29uh9TFdoGHs39o,605 +groq/types/chat/chat_completion_user_message_param.py,sha256=mik-MRkwb543C5FSJ52LtTkeA2E_HdLUgtoHEdO73XQ,792 +groq/types/chat/completion_create_params.py,sha256=NDK0zMNFqSy3qve7_C-5qT6GN6_P9zEs9QR0a_QQQhU,15954 +groq/types/completion_usage.py,sha256=RB_z6_f6fEDEDNgvhovOFgfa4EyFIVMyq6Bf8LWotDQ,1350 +groq/types/create_embedding_response.py,sha256=lTAu_Pym76kFljDnnDRoDB2GNQSzWmwwlqf5ff7FNPM,798 +groq/types/embedding.py,sha256=rlM_cs8um94yOf9kHWlURzVyGsIjzvzD0xzEjMaUVpU,629 +groq/types/embedding_create_params.py,sha256=UdoBCNXG-EE_U91Uit73tCZt4UoBncrL8FRTHbZWVTw,1095 +groq/types/file_create_params.py,sha256=Y-y3q3AvKHe_fZuTylvfwQvUDaJ1IUNNAVpBdJvSwu0,550 +groq/types/file_create_response.py,sha256=6fG5RPH1XrvNqqWbb7DPTrqpBWEJk5pTutbAYwzBmK8,884 +groq/types/file_delete_response.py,sha256=K0kJYkjV7dASo1pl4VepU9r18gG3hDQm5WienL-Vncg,291 +groq/types/file_info_response.py,sha256=kuphFSI_4xgCPNm25nCptc0BBDeVEiBkaugT2g7zFcI,880 +groq/types/file_list_response.py,sha256=kk8lQLGVMkRxC2BzmcAByq4yCUB01zDDh2UqaTOb4mE,969 +groq/types/model.py,sha256=DMw8KwQx8B6S6sAI038D0xdzkmYdY5-r0oMhCUG4l6w,532 +groq/types/model_deleted.py,sha256=ntKUfq9nnKB6esFmLBla1hYU29KjmFElr_i14IcWIUA,228 +groq/types/model_list_response.py,sha256=fUKK6I7am-Sx4cnC7nC3mHEhOKZXbkTRHLzxiApK3pA,329 +groq/types/shared/__init__.py,sha256=eoiCHGKeY1_YjOn41M8QxvIUI_M68Ltsr1d67g_Pr-I,288 +groq/types/shared/__pycache__/__init__.cpython-311.pyc,, +groq/types/shared/__pycache__/error_object.cpython-311.pyc,, +groq/types/shared/__pycache__/function_definition.cpython-311.pyc,, +groq/types/shared/__pycache__/function_parameters.cpython-311.pyc,, +groq/types/shared/error_object.py,sha256=ZoAvqRaMoOB3Ozw3-dRi_dfE-Jl7MZQjJ945W0Qxv00,1140 +groq/types/shared/function_definition.py,sha256=7S6HK2Pp-TjhL0-HcWzjHd_K-C3PjYzWM6MkWItr-3E,1114 +groq/types/shared/function_parameters.py,sha256=Dkc_pm98zCKyouQmYrl934cK8ZWX7heY_IIyunW8x7c,236 +groq/types/shared_params/__init__.py,sha256=Jaw3mmmUB3Ky7vL1fzsh-8kAJEbeYxcQ0JOy7p765Xo,235 +groq/types/shared_params/__pycache__/__init__.cpython-311.pyc,, +groq/types/shared_params/__pycache__/function_definition.cpython-311.pyc,, +groq/types/shared_params/__pycache__/function_parameters.cpython-311.pyc,, +groq/types/shared_params/function_definition.py,sha256=Y3l2wOXI8ohiwxOhJfhBKYtdffIAFhaMB9YD4bZFS2o,1111 +groq/types/shared_params/function_parameters.py,sha256=UvxKz_3b9b5ECwWr8RFrIH511htbU2JZsp9Z9BMkF-o,272 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/WHEEL b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..21aaa72961a8af71c17d2cb3b76d5f7f567100e4 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: hatchling 1.26.3 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/licenses/LICENSE b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..a162f20dd64bae418914643a9d53cd06523afe6c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq-0.37.1.dist-info/licenses/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025 Groq + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..2d3e94c0ff181bf44d4730927b6f60b1d09701d1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__init__.py @@ -0,0 +1,92 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import typing as _t + +from . import types +from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given +from ._utils import file_from_path +from ._client import Groq, Client, Stream, Timeout, AsyncGroq, Transport, AsyncClient, AsyncStream, RequestOptions +from ._models import BaseModel +from ._version import __title__, __version__ +from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse +from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS +from ._exceptions import ( + APIError, + GroqError, + ConflictError, + NotFoundError, + APIStatusError, + RateLimitError, + APITimeoutError, + BadRequestError, + APIConnectionError, + AuthenticationError, + InternalServerError, + PermissionDeniedError, + UnprocessableEntityError, + APIResponseValidationError, +) +from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient +from ._utils._logs import setup_logging as _setup_logging + +__all__ = [ + "types", + "__version__", + "__title__", + "NoneType", + "Transport", + "ProxiesTypes", + "NotGiven", + "NOT_GIVEN", + "not_given", + "Omit", + "omit", + "GroqError", + "APIError", + "APIStatusError", + "APITimeoutError", + "APIConnectionError", + "APIResponseValidationError", + "BadRequestError", + "AuthenticationError", + "PermissionDeniedError", + "NotFoundError", + "ConflictError", + "UnprocessableEntityError", + "RateLimitError", + "InternalServerError", + "Timeout", + "RequestOptions", + "Client", + "AsyncClient", + "Stream", + "AsyncStream", + "Groq", + "AsyncGroq", + "file_from_path", + "BaseModel", + "DEFAULT_TIMEOUT", + "DEFAULT_MAX_RETRIES", + "DEFAULT_CONNECTION_LIMITS", + "DefaultHttpxClient", + "DefaultAsyncHttpxClient", + "DefaultAioHttpClient", +] + +if not _t.TYPE_CHECKING: + from ._utils._resources_proxy import resources as resources + +_setup_logging() + +# Update the __module__ attribute for exported symbols so that +# error messages point to this module instead of the module +# it was originally defined in, e.g. +# groq._exceptions.NotFoundError -> groq.NotFoundError +__locals = locals() +for __name in __all__: + if not __name.startswith("__"): + try: + __locals[__name].__module__ = "groq" + except (TypeError, AttributeError): + # Some of our exported symbols are builtins which we can't set attributes for. + pass diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f82889d699b759ad2f521d47f363e5c74eb63998 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_base_client.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_base_client.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b751573a6a0fb1f14ab4ffaa3e443c0de82b676 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_base_client.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_client.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_client.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e8e360a0ae4927abbb844037ac0bc7a6c52ef5db Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_client.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_compat.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_compat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..339141881c242ccf11b81cac311b2e18ed498fcc Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_compat.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_constants.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_constants.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1b075078de42223f56fc97f3c4be77b36cb777e6 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_constants.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_exceptions.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_exceptions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ef3a54f10a83282d002c368b97da6a0a42d8b573 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_exceptions.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_files.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_files.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..289ec89d61fb6efdc9ce56a758b2f6468054a811 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_files.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_models.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_models.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f162b0d7f83558657597f9a8e03bf47fcd810937 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_models.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_qs.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_qs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..915a4b4a8ae8d26324a282eb6cae2d793f962cbb Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_qs.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_resource.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_resource.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f8975b8733615927c07c1042043fbc32ee1119b0 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_resource.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5824206e8369b2e9d546941d901d906f6e42b5fc Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_streaming.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_streaming.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..309026b60cc52402c0b931ec217f7c23ac9625e8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_streaming.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_types.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_types.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..692523f455bf2984cc1f4830f13272426b4b9e0c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_types.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_version.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_version.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c64004659a1674f56857ddc678bffa9c5df6acdb Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/__pycache__/_version.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_base_client.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_base_client.py new file mode 100644 index 0000000000000000000000000000000000000000..463c982e390d724c7cb277ed02ecef8d7d771f6b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_base_client.py @@ -0,0 +1,1995 @@ +from __future__ import annotations + +import sys +import json +import time +import uuid +import email +import asyncio +import inspect +import logging +import platform +import email.utils +from types import TracebackType +from random import random +from typing import ( + TYPE_CHECKING, + Any, + Dict, + Type, + Union, + Generic, + Mapping, + TypeVar, + Iterable, + Iterator, + Optional, + Generator, + AsyncIterator, + cast, + overload, +) +from typing_extensions import Literal, override, get_origin + +import anyio +import httpx +import distro +import pydantic +from httpx import URL +from pydantic import PrivateAttr + +from . import _exceptions +from ._qs import Querystring +from ._files import to_httpx_files, async_to_httpx_files +from ._types import ( + Body, + Omit, + Query, + Headers, + Timeout, + NotGiven, + ResponseT, + AnyMapping, + PostParser, + RequestFiles, + HttpxSendArgs, + RequestOptions, + HttpxRequestFiles, + ModelBuilderProtocol, + not_given, +) +from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping +from ._compat import PYDANTIC_V1, model_copy, model_dump +from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type +from ._response import ( + APIResponse, + BaseAPIResponse, + AsyncAPIResponse, + extract_response_type, +) +from ._constants import ( + DEFAULT_TIMEOUT, + MAX_RETRY_DELAY, + DEFAULT_MAX_RETRIES, + INITIAL_RETRY_DELAY, + RAW_RESPONSE_HEADER, + OVERRIDE_CAST_TO_HEADER, + DEFAULT_CONNECTION_LIMITS, +) +from ._streaming import Stream, SSEDecoder, AsyncStream, SSEBytesDecoder +from ._exceptions import ( + APIStatusError, + APITimeoutError, + APIConnectionError, + APIResponseValidationError, +) + +log: logging.Logger = logging.getLogger(__name__) + +# TODO: make base page type vars covariant +SyncPageT = TypeVar("SyncPageT", bound="BaseSyncPage[Any]") +AsyncPageT = TypeVar("AsyncPageT", bound="BaseAsyncPage[Any]") + + +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) + +_StreamT = TypeVar("_StreamT", bound=Stream[Any]) +_AsyncStreamT = TypeVar("_AsyncStreamT", bound=AsyncStream[Any]) + +if TYPE_CHECKING: + from httpx._config import ( + DEFAULT_TIMEOUT_CONFIG, # pyright: ignore[reportPrivateImportUsage] + ) + + HTTPX_DEFAULT_TIMEOUT = DEFAULT_TIMEOUT_CONFIG +else: + try: + from httpx._config import DEFAULT_TIMEOUT_CONFIG as HTTPX_DEFAULT_TIMEOUT + except ImportError: + # taken from https://github.com/encode/httpx/blob/3ba5fe0d7ac70222590e759c31442b1cab263791/httpx/_config.py#L366 + HTTPX_DEFAULT_TIMEOUT = Timeout(5.0) + + +class PageInfo: + """Stores the necessary information to build the request to retrieve the next page. + + Either `url` or `params` must be set. + """ + + url: URL | NotGiven + params: Query | NotGiven + json: Body | NotGiven + + @overload + def __init__( + self, + *, + url: URL, + ) -> None: ... + + @overload + def __init__( + self, + *, + params: Query, + ) -> None: ... + + @overload + def __init__( + self, + *, + json: Body, + ) -> None: ... + + def __init__( + self, + *, + url: URL | NotGiven = not_given, + json: Body | NotGiven = not_given, + params: Query | NotGiven = not_given, + ) -> None: + self.url = url + self.json = json + self.params = params + + @override + def __repr__(self) -> str: + if self.url: + return f"{self.__class__.__name__}(url={self.url})" + if self.json: + return f"{self.__class__.__name__}(json={self.json})" + return f"{self.__class__.__name__}(params={self.params})" + + +class BasePage(GenericModel, Generic[_T]): + """ + Defines the core interface for pagination. + + Type Args: + ModelT: The pydantic model that represents an item in the response. + + Methods: + has_next_page(): Check if there is another page available + next_page_info(): Get the necessary information to make a request for the next page + """ + + _options: FinalRequestOptions = PrivateAttr() + _model: Type[_T] = PrivateAttr() + + def has_next_page(self) -> bool: + items = self._get_page_items() + if not items: + return False + return self.next_page_info() is not None + + def next_page_info(self) -> Optional[PageInfo]: ... + + def _get_page_items(self) -> Iterable[_T]: # type: ignore[empty-body] + ... + + def _params_from_url(self, url: URL) -> httpx.QueryParams: + # TODO: do we have to preprocess params here? + return httpx.QueryParams(cast(Any, self._options.params)).merge(url.params) + + def _info_to_options(self, info: PageInfo) -> FinalRequestOptions: + options = model_copy(self._options) + options._strip_raw_response_header() + + if not isinstance(info.params, NotGiven): + options.params = {**options.params, **info.params} + return options + + if not isinstance(info.url, NotGiven): + params = self._params_from_url(info.url) + url = info.url.copy_with(params=params) + options.params = dict(url.params) + options.url = str(url) + return options + + if not isinstance(info.json, NotGiven): + if not is_mapping(info.json): + raise TypeError("Pagination is only supported with mappings") + + if not options.json_data: + options.json_data = {**info.json} + else: + if not is_mapping(options.json_data): + raise TypeError("Pagination is only supported with mappings") + + options.json_data = {**options.json_data, **info.json} + return options + + raise ValueError("Unexpected PageInfo state") + + +class BaseSyncPage(BasePage[_T], Generic[_T]): + _client: SyncAPIClient = pydantic.PrivateAttr() + + def _set_private_attributes( + self, + client: SyncAPIClient, + model: Type[_T], + options: FinalRequestOptions, + ) -> None: + if (not PYDANTIC_V1) and getattr(self, "__pydantic_private__", None) is None: + self.__pydantic_private__ = {} + + self._model = model + self._client = client + self._options = options + + # Pydantic uses a custom `__iter__` method to support casting BaseModels + # to dictionaries. e.g. dict(model). + # As we want to support `for item in page`, this is inherently incompatible + # with the default pydantic behaviour. It is not possible to support both + # use cases at once. Fortunately, this is not a big deal as all other pydantic + # methods should continue to work as expected as there is an alternative method + # to cast a model to a dictionary, model.dict(), which is used internally + # by pydantic. + def __iter__(self) -> Iterator[_T]: # type: ignore + for page in self.iter_pages(): + for item in page._get_page_items(): + yield item + + def iter_pages(self: SyncPageT) -> Iterator[SyncPageT]: + page = self + while True: + yield page + if page.has_next_page(): + page = page.get_next_page() + else: + return + + def get_next_page(self: SyncPageT) -> SyncPageT: + info = self.next_page_info() + if not info: + raise RuntimeError( + "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`." + ) + + options = self._info_to_options(info) + return self._client._request_api_list(self._model, page=self.__class__, options=options) + + +class AsyncPaginator(Generic[_T, AsyncPageT]): + def __init__( + self, + client: AsyncAPIClient, + options: FinalRequestOptions, + page_cls: Type[AsyncPageT], + model: Type[_T], + ) -> None: + self._model = model + self._client = client + self._options = options + self._page_cls = page_cls + + def __await__(self) -> Generator[Any, None, AsyncPageT]: + return self._get_page().__await__() + + async def _get_page(self) -> AsyncPageT: + def _parser(resp: AsyncPageT) -> AsyncPageT: + resp._set_private_attributes( + model=self._model, + options=self._options, + client=self._client, + ) + return resp + + self._options.post_parser = _parser + + return await self._client.request(self._page_cls, self._options) + + async def __aiter__(self) -> AsyncIterator[_T]: + # https://github.com/microsoft/pyright/issues/3464 + page = cast( + AsyncPageT, + await self, # type: ignore + ) + async for item in page: + yield item + + +class BaseAsyncPage(BasePage[_T], Generic[_T]): + _client: AsyncAPIClient = pydantic.PrivateAttr() + + def _set_private_attributes( + self, + model: Type[_T], + client: AsyncAPIClient, + options: FinalRequestOptions, + ) -> None: + if (not PYDANTIC_V1) and getattr(self, "__pydantic_private__", None) is None: + self.__pydantic_private__ = {} + + self._model = model + self._client = client + self._options = options + + async def __aiter__(self) -> AsyncIterator[_T]: + async for page in self.iter_pages(): + for item in page._get_page_items(): + yield item + + async def iter_pages(self: AsyncPageT) -> AsyncIterator[AsyncPageT]: + page = self + while True: + yield page + if page.has_next_page(): + page = await page.get_next_page() + else: + return + + async def get_next_page(self: AsyncPageT) -> AsyncPageT: + info = self.next_page_info() + if not info: + raise RuntimeError( + "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`." + ) + + options = self._info_to_options(info) + return await self._client._request_api_list(self._model, page=self.__class__, options=options) + + +_HttpxClientT = TypeVar("_HttpxClientT", bound=Union[httpx.Client, httpx.AsyncClient]) +_DefaultStreamT = TypeVar("_DefaultStreamT", bound=Union[Stream[Any], AsyncStream[Any]]) + + +class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]): + _client: _HttpxClientT + _version: str + _base_url: URL + max_retries: int + timeout: Union[float, Timeout, None] + _strict_response_validation: bool + _idempotency_header: str | None + _default_stream_cls: type[_DefaultStreamT] | None = None + + def __init__( + self, + *, + version: str, + base_url: str | URL, + _strict_response_validation: bool, + max_retries: int = DEFAULT_MAX_RETRIES, + timeout: float | Timeout | None = DEFAULT_TIMEOUT, + custom_headers: Mapping[str, str] | None = None, + custom_query: Mapping[str, object] | None = None, + ) -> None: + self._version = version + self._base_url = self._enforce_trailing_slash(URL(base_url)) + self.max_retries = max_retries + self.timeout = timeout + self._custom_headers = custom_headers or {} + self._custom_query = custom_query or {} + self._strict_response_validation = _strict_response_validation + self._idempotency_header = None + self._platform: Platform | None = None + + if max_retries is None: # pyright: ignore[reportUnnecessaryComparison] + raise TypeError( + "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `groq.DEFAULT_MAX_RETRIES`" + ) + + def _enforce_trailing_slash(self, url: URL) -> URL: + if url.raw_path.endswith(b"/"): + return url + return url.copy_with(raw_path=url.raw_path + b"/") + + def _make_status_error_from_response( + self, + response: httpx.Response, + ) -> APIStatusError: + if response.is_closed and not response.is_stream_consumed: + # We can't read the response body as it has been closed + # before it was read. This can happen if an event hook + # raises a status error. + body = None + err_msg = f"Error code: {response.status_code}" + else: + err_text = response.text.strip() + body = err_text + + try: + body = json.loads(err_text) + err_msg = f"Error code: {response.status_code} - {body}" + except Exception: + err_msg = err_text or f"Error code: {response.status_code}" + + return self._make_status_error(err_msg, body=body, response=response) + + def _make_status_error( + self, + err_msg: str, + *, + body: object, + response: httpx.Response, + ) -> _exceptions.APIStatusError: + raise NotImplementedError() + + def _build_headers(self, options: FinalRequestOptions, *, retries_taken: int = 0) -> httpx.Headers: + custom_headers = options.headers or {} + headers_dict = _merge_mappings(self.default_headers, custom_headers) + self._validate_headers(headers_dict, custom_headers) + + # headers are case-insensitive while dictionaries are not. + headers = httpx.Headers(headers_dict) + + idempotency_header = self._idempotency_header + if idempotency_header and options.idempotency_key and idempotency_header not in headers: + headers[idempotency_header] = options.idempotency_key + + # Don't set these headers if they were already set or removed by the caller. We check + # `custom_headers`, which can contain `Omit()`, instead of `headers` to account for the removal case. + lower_custom_headers = [header.lower() for header in custom_headers] + if "x-stainless-retry-count" not in lower_custom_headers: + headers["x-stainless-retry-count"] = str(retries_taken) + if "x-stainless-read-timeout" not in lower_custom_headers: + timeout = self.timeout if isinstance(options.timeout, NotGiven) else options.timeout + if isinstance(timeout, Timeout): + timeout = timeout.read + if timeout is not None: + headers["x-stainless-read-timeout"] = str(timeout) + + return headers + + def _prepare_url(self, url: str) -> URL: + """ + Merge a URL argument together with any 'base_url' on the client, + to create the URL used for the outgoing request. + """ + # Copied from httpx's `_merge_url` method. + merge_url = URL(url) + if merge_url.is_relative_url: + merge_raw_path = self.base_url.raw_path + merge_url.raw_path.lstrip(b"/") + return self.base_url.copy_with(raw_path=merge_raw_path) + + return merge_url + + def _make_sse_decoder(self) -> SSEDecoder | SSEBytesDecoder: + return SSEDecoder() + + def _build_request( + self, + options: FinalRequestOptions, + *, + retries_taken: int = 0, + ) -> httpx.Request: + if log.isEnabledFor(logging.DEBUG): + log.debug("Request options: %s", model_dump(options, exclude_unset=True)) + + kwargs: dict[str, Any] = {} + + json_data = options.json_data + if options.extra_json is not None: + if json_data is None: + json_data = cast(Body, options.extra_json) + elif is_mapping(json_data): + json_data = _merge_mappings(json_data, options.extra_json) + else: + raise RuntimeError(f"Unexpected JSON data type, {type(json_data)}, cannot merge with `extra_body`") + + headers = self._build_headers(options, retries_taken=retries_taken) + params = _merge_mappings(self.default_query, options.params) + content_type = headers.get("Content-Type") + files = options.files + + # If the given Content-Type header is multipart/form-data then it + # has to be removed so that httpx can generate the header with + # additional information for us as it has to be in this form + # for the server to be able to correctly parse the request: + # multipart/form-data; boundary=---abc-- + if content_type is not None and content_type.startswith("multipart/form-data"): + if "boundary" not in content_type: + # only remove the header if the boundary hasn't been explicitly set + # as the caller doesn't want httpx to come up with their own boundary + headers.pop("Content-Type") + + # As we are now sending multipart/form-data instead of application/json + # we need to tell httpx to use it, https://www.python-httpx.org/advanced/clients/#multipart-file-encoding + if json_data: + if not is_dict(json_data): + raise TypeError( + f"Expected query input to be a dictionary for multipart requests but got {type(json_data)} instead." + ) + kwargs["data"] = self._serialize_multipartform(json_data) + + # httpx determines whether or not to send a "multipart/form-data" + # request based on the truthiness of the "files" argument. + # This gets around that issue by generating a dict value that + # evaluates to true. + # + # https://github.com/encode/httpx/discussions/2399#discussioncomment-3814186 + if not files: + files = cast(HttpxRequestFiles, ForceMultipartDict()) + + prepared_url = self._prepare_url(options.url) + if "_" in prepared_url.host: + # work around https://github.com/encode/httpx/discussions/2880 + kwargs["extensions"] = {"sni_hostname": prepared_url.host.replace("_", "-")} + + is_body_allowed = options.method.lower() != "get" + + if is_body_allowed: + if isinstance(json_data, bytes): + kwargs["content"] = json_data + else: + kwargs["json"] = json_data if is_given(json_data) else None + kwargs["files"] = files + else: + headers.pop("Content-Type", None) + kwargs.pop("data", None) + + # TODO: report this error to httpx + return self._client.build_request( # pyright: ignore[reportUnknownMemberType] + headers=headers, + timeout=self.timeout if isinstance(options.timeout, NotGiven) else options.timeout, + method=options.method, + url=prepared_url, + # the `Query` type that we use is incompatible with qs' + # `Params` type as it needs to be typed as `Mapping[str, object]` + # so that passing a `TypedDict` doesn't cause an error. + # https://github.com/microsoft/pyright/issues/3526#event-6715453066 + params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None, + **kwargs, + ) + + def _serialize_multipartform(self, data: Mapping[object, object]) -> dict[str, object]: + items = self.qs.stringify_items( + # TODO: type ignore is required as stringify_items is well typed but we can't be + # well typed without heavy validation. + data, # type: ignore + array_format="brackets", + ) + serialized: dict[str, object] = {} + for key, value in items: + existing = serialized.get(key) + + if not existing: + serialized[key] = value + continue + + # If a value has already been set for this key then that + # means we're sending data like `array[]=[1, 2, 3]` and we + # need to tell httpx that we want to send multiple values with + # the same key which is done by using a list or a tuple. + # + # Note: 2d arrays should never result in the same key at both + # levels so it's safe to assume that if the value is a list, + # it was because we changed it to be a list. + if is_list(existing): + existing.append(value) + else: + serialized[key] = [existing, value] + + return serialized + + def _maybe_override_cast_to(self, cast_to: type[ResponseT], options: FinalRequestOptions) -> type[ResponseT]: + if not is_given(options.headers): + return cast_to + + # make a copy of the headers so we don't mutate user-input + headers = dict(options.headers) + + # we internally support defining a temporary header to override the + # default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response` + # see _response.py for implementation details + override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given) + if is_given(override_cast_to): + options.headers = headers + return cast(Type[ResponseT], override_cast_to) + + return cast_to + + def _should_stream_response_body(self, request: httpx.Request) -> bool: + return request.headers.get(RAW_RESPONSE_HEADER) == "stream" # type: ignore[no-any-return] + + def _process_response_data( + self, + *, + data: object, + cast_to: type[ResponseT], + response: httpx.Response, + ) -> ResponseT: + if data is None: + return cast(ResponseT, None) + + if cast_to is object: + return cast(ResponseT, data) + + try: + if inspect.isclass(cast_to) and issubclass(cast_to, ModelBuilderProtocol): + return cast(ResponseT, cast_to.build(response=response, data=data)) + + if self._strict_response_validation: + return cast(ResponseT, validate_type(type_=cast_to, value=data)) + + return cast(ResponseT, construct_type(type_=cast_to, value=data)) + except pydantic.ValidationError as err: + raise APIResponseValidationError(response=response, body=data) from err + + @property + def qs(self) -> Querystring: + return Querystring() + + @property + def custom_auth(self) -> httpx.Auth | None: + return None + + @property + def auth_headers(self) -> dict[str, str]: + return {} + + @property + def default_headers(self) -> dict[str, str | Omit]: + return { + "Accept": "application/json", + "Content-Type": "application/json", + "User-Agent": self.user_agent, + **self.platform_headers(), + **self.auth_headers, + **self._custom_headers, + } + + @property + def default_query(self) -> dict[str, object]: + return { + **self._custom_query, + } + + def _validate_headers( + self, + headers: Headers, # noqa: ARG002 + custom_headers: Headers, # noqa: ARG002 + ) -> None: + """Validate the given default headers and custom headers. + + Does nothing by default. + """ + return + + @property + def user_agent(self) -> str: + return f"{self.__class__.__name__}/Python {self._version}" + + @property + def base_url(self) -> URL: + return self._base_url + + @base_url.setter + def base_url(self, url: URL | str) -> None: + self._base_url = self._enforce_trailing_slash(url if isinstance(url, URL) else URL(url)) + + def platform_headers(self) -> Dict[str, str]: + # the actual implementation is in a separate `lru_cache` decorated + # function because adding `lru_cache` to methods will leak memory + # https://github.com/python/cpython/issues/88476 + return platform_headers(self._version, platform=self._platform) + + def _parse_retry_after_header(self, response_headers: Optional[httpx.Headers] = None) -> float | None: + """Returns a float of the number of seconds (not milliseconds) to wait after retrying, or None if unspecified. + + About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After + See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After#syntax + """ + if response_headers is None: + return None + + # First, try the non-standard `retry-after-ms` header for milliseconds, + # which is more precise than integer-seconds `retry-after` + try: + retry_ms_header = response_headers.get("retry-after-ms", None) + return float(retry_ms_header) / 1000 + except (TypeError, ValueError): + pass + + # Next, try parsing `retry-after` header as seconds (allowing nonstandard floats). + retry_header = response_headers.get("retry-after") + try: + # note: the spec indicates that this should only ever be an integer + # but if someone sends a float there's no reason for us to not respect it + return float(retry_header) + except (TypeError, ValueError): + pass + + # Last, try parsing `retry-after` as a date. + retry_date_tuple = email.utils.parsedate_tz(retry_header) + if retry_date_tuple is None: + return None + + retry_date = email.utils.mktime_tz(retry_date_tuple) + return float(retry_date - time.time()) + + def _calculate_retry_timeout( + self, + remaining_retries: int, + options: FinalRequestOptions, + response_headers: Optional[httpx.Headers] = None, + ) -> float: + max_retries = options.get_max_retries(self.max_retries) + + # If the API asks us to wait a certain amount of time (and it's a reasonable amount), just do what it says. + retry_after = self._parse_retry_after_header(response_headers) + if retry_after is not None and 0 < retry_after <= 60: + return retry_after + + # Also cap retry count to 1000 to avoid any potential overflows with `pow` + nb_retries = min(max_retries - remaining_retries, 1000) + + # Apply exponential backoff, but not more than the max. + sleep_seconds = min(INITIAL_RETRY_DELAY * pow(2.0, nb_retries), MAX_RETRY_DELAY) + + # Apply some jitter, plus-or-minus half a second. + jitter = 1 - 0.25 * random() + timeout = sleep_seconds * jitter + return timeout if timeout >= 0 else 0 + + def _should_retry(self, response: httpx.Response) -> bool: + # Note: this is not a standard header + should_retry_header = response.headers.get("x-should-retry") + + # If the server explicitly says whether or not to retry, obey. + if should_retry_header == "true": + log.debug("Retrying as header `x-should-retry` is set to `true`") + return True + if should_retry_header == "false": + log.debug("Not retrying as header `x-should-retry` is set to `false`") + return False + + # Retry on request timeouts. + if response.status_code == 408: + log.debug("Retrying due to status code %i", response.status_code) + return True + + # Retry on lock timeouts. + if response.status_code == 409: + log.debug("Retrying due to status code %i", response.status_code) + return True + + # Retry on rate limits. + if response.status_code == 429: + log.debug("Retrying due to status code %i", response.status_code) + return True + + # Retry internal errors. + if response.status_code >= 500: + log.debug("Retrying due to status code %i", response.status_code) + return True + + log.debug("Not retrying") + return False + + def _idempotency_key(self) -> str: + return f"stainless-python-retry-{uuid.uuid4()}" + + +class _DefaultHttpxClient(httpx.Client): + def __init__(self, **kwargs: Any) -> None: + kwargs.setdefault("timeout", DEFAULT_TIMEOUT) + kwargs.setdefault("limits", DEFAULT_CONNECTION_LIMITS) + kwargs.setdefault("follow_redirects", True) + super().__init__(**kwargs) + + +if TYPE_CHECKING: + DefaultHttpxClient = httpx.Client + """An alias to `httpx.Client` that provides the same defaults that this SDK + uses internally. + + This is useful because overriding the `http_client` with your own instance of + `httpx.Client` will result in httpx's defaults being used, not ours. + """ +else: + DefaultHttpxClient = _DefaultHttpxClient + + +class SyncHttpxClientWrapper(DefaultHttpxClient): + def __del__(self) -> None: + if self.is_closed: + return + + try: + self.close() + except Exception: + pass + + +class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]): + _client: httpx.Client + _default_stream_cls: type[Stream[Any]] | None = None + + def __init__( + self, + *, + version: str, + base_url: str | URL, + max_retries: int = DEFAULT_MAX_RETRIES, + timeout: float | Timeout | None | NotGiven = not_given, + http_client: httpx.Client | None = None, + custom_headers: Mapping[str, str] | None = None, + custom_query: Mapping[str, object] | None = None, + _strict_response_validation: bool, + ) -> None: + if not is_given(timeout): + # if the user passed in a custom http client with a non-default + # timeout set then we use that timeout. + # + # note: there is an edge case here where the user passes in a client + # where they've explicitly set the timeout to match the default timeout + # as this check is structural, meaning that we'll think they didn't + # pass in a timeout and will ignore it + if http_client and http_client.timeout != HTTPX_DEFAULT_TIMEOUT: + timeout = http_client.timeout + else: + timeout = DEFAULT_TIMEOUT + + if http_client is not None and not isinstance(http_client, httpx.Client): # pyright: ignore[reportUnnecessaryIsInstance] + raise TypeError( + f"Invalid `http_client` argument; Expected an instance of `httpx.Client` but got {type(http_client)}" + ) + + super().__init__( + version=version, + # cast to a valid type because mypy doesn't understand our type narrowing + timeout=cast(Timeout, timeout), + base_url=base_url, + max_retries=max_retries, + custom_query=custom_query, + custom_headers=custom_headers, + _strict_response_validation=_strict_response_validation, + ) + self._client = http_client or SyncHttpxClientWrapper( + base_url=base_url, + # cast to a valid type because mypy doesn't understand our type narrowing + timeout=cast(Timeout, timeout), + ) + + def is_closed(self) -> bool: + return self._client.is_closed + + def close(self) -> None: + """Close the underlying HTTPX client. + + The client will *not* be usable after this. + """ + # If an error is thrown while constructing a client, self._client + # may not be present + if hasattr(self, "_client"): + self._client.close() + + def __enter__(self: _T) -> _T: + return self + + def __exit__( + self, + exc_type: type[BaseException] | None, + exc: BaseException | None, + exc_tb: TracebackType | None, + ) -> None: + self.close() + + def _prepare_options( + self, + options: FinalRequestOptions, # noqa: ARG002 + ) -> FinalRequestOptions: + """Hook for mutating the given options""" + return options + + def _prepare_request( + self, + request: httpx.Request, # noqa: ARG002 + ) -> None: + """This method is used as a callback for mutating the `Request` object + after it has been constructed. + This is useful for cases where you want to add certain headers based off of + the request properties, e.g. `url`, `method` etc. + """ + return None + + @overload + def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: Literal[True], + stream_cls: Type[_StreamT], + ) -> _StreamT: ... + + @overload + def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: Literal[False] = False, + ) -> ResponseT: ... + + @overload + def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: bool = False, + stream_cls: Type[_StreamT] | None = None, + ) -> ResponseT | _StreamT: ... + + def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: bool = False, + stream_cls: type[_StreamT] | None = None, + ) -> ResponseT | _StreamT: + cast_to = self._maybe_override_cast_to(cast_to, options) + + # create a copy of the options we were given so that if the + # options are mutated later & we then retry, the retries are + # given the original options + input_options = model_copy(options) + if input_options.idempotency_key is None and input_options.method.lower() != "get": + # ensure the idempotency key is reused between requests + input_options.idempotency_key = self._idempotency_key() + + response: httpx.Response | None = None + max_retries = input_options.get_max_retries(self.max_retries) + + retries_taken = 0 + for retries_taken in range(max_retries + 1): + options = model_copy(input_options) + options = self._prepare_options(options) + + remaining_retries = max_retries - retries_taken + request = self._build_request(options, retries_taken=retries_taken) + self._prepare_request(request) + + kwargs: HttpxSendArgs = {} + if self.custom_auth is not None: + kwargs["auth"] = self.custom_auth + + if options.follow_redirects is not None: + kwargs["follow_redirects"] = options.follow_redirects + + log.debug("Sending HTTP Request: %s %s", request.method, request.url) + + response = None + try: + response = self._client.send( + request, + stream=stream or self._should_stream_response_body(request=request), + **kwargs, + ) + except httpx.TimeoutException as err: + log.debug("Encountered httpx.TimeoutException", exc_info=True) + + if remaining_retries > 0: + self._sleep_for_retry( + retries_taken=retries_taken, + max_retries=max_retries, + options=input_options, + response=None, + ) + continue + + log.debug("Raising timeout error") + raise APITimeoutError(request=request) from err + except Exception as err: + log.debug("Encountered Exception", exc_info=True) + + if remaining_retries > 0: + self._sleep_for_retry( + retries_taken=retries_taken, + max_retries=max_retries, + options=input_options, + response=None, + ) + continue + + log.debug("Raising connection error") + raise APIConnectionError(request=request) from err + + log.debug( + 'HTTP Response: %s %s "%i %s" %s', + request.method, + request.url, + response.status_code, + response.reason_phrase, + response.headers, + ) + + try: + response.raise_for_status() + except httpx.HTTPStatusError as err: # thrown on 4xx and 5xx status code + log.debug("Encountered httpx.HTTPStatusError", exc_info=True) + + if remaining_retries > 0 and self._should_retry(err.response): + err.response.close() + self._sleep_for_retry( + retries_taken=retries_taken, + max_retries=max_retries, + options=input_options, + response=response, + ) + continue + + # If the response is streamed then we need to explicitly read the response + # to completion before attempting to access the response text. + if not err.response.is_closed: + err.response.read() + + log.debug("Re-raising status error") + raise self._make_status_error_from_response(err.response) from None + + break + + assert response is not None, "could not resolve response (should never happen)" + return self._process_response( + cast_to=cast_to, + options=options, + response=response, + stream=stream, + stream_cls=stream_cls, + retries_taken=retries_taken, + ) + + def _sleep_for_retry( + self, *, retries_taken: int, max_retries: int, options: FinalRequestOptions, response: httpx.Response | None + ) -> None: + remaining_retries = max_retries - retries_taken + if remaining_retries == 1: + log.debug("1 retry left") + else: + log.debug("%i retries left", remaining_retries) + + timeout = self._calculate_retry_timeout(remaining_retries, options, response.headers if response else None) + log.info("Retrying request to %s in %f seconds", options.url, timeout) + + time.sleep(timeout) + + def _process_response( + self, + *, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + response: httpx.Response, + stream: bool, + stream_cls: type[Stream[Any]] | type[AsyncStream[Any]] | None, + retries_taken: int = 0, + ) -> ResponseT: + origin = get_origin(cast_to) or cast_to + + if ( + inspect.isclass(origin) + and issubclass(origin, BaseAPIResponse) + # we only want to actually return the custom BaseAPIResponse class if we're + # returning the raw response, or if we're not streaming SSE, as if we're streaming + # SSE then `cast_to` doesn't actively reflect the type we need to parse into + and (not stream or bool(response.request.headers.get(RAW_RESPONSE_HEADER))) + ): + if not issubclass(origin, APIResponse): + raise TypeError(f"API Response types must subclass {APIResponse}; Received {origin}") + + response_cls = cast("type[BaseAPIResponse[Any]]", cast_to) + return cast( + ResponseT, + response_cls( + raw=response, + client=self, + cast_to=extract_response_type(response_cls), + stream=stream, + stream_cls=stream_cls, + options=options, + retries_taken=retries_taken, + ), + ) + + if cast_to == httpx.Response: + return cast(ResponseT, response) + + api_response = APIResponse( + raw=response, + client=self, + cast_to=cast("type[ResponseT]", cast_to), # pyright: ignore[reportUnnecessaryCast] + stream=stream, + stream_cls=stream_cls, + options=options, + retries_taken=retries_taken, + ) + if bool(response.request.headers.get(RAW_RESPONSE_HEADER)): + return cast(ResponseT, api_response) + + return api_response.parse() + + def _request_api_list( + self, + model: Type[object], + page: Type[SyncPageT], + options: FinalRequestOptions, + ) -> SyncPageT: + def _parser(resp: SyncPageT) -> SyncPageT: + resp._set_private_attributes( + client=self, + model=model, + options=options, + ) + return resp + + options.post_parser = _parser + + return self.request(page, options, stream=False) + + @overload + def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: Literal[False] = False, + ) -> ResponseT: ... + + @overload + def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: Literal[True], + stream_cls: type[_StreamT], + ) -> _StreamT: ... + + @overload + def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: bool, + stream_cls: type[_StreamT] | None = None, + ) -> ResponseT | _StreamT: ... + + def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: bool = False, + stream_cls: type[_StreamT] | None = None, + ) -> ResponseT | _StreamT: + opts = FinalRequestOptions.construct(method="get", url=path, **options) + # cast is required because mypy complains about returning Any even though + # it understands the type variables + return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) + + @overload + def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + files: RequestFiles | None = None, + stream: Literal[False] = False, + ) -> ResponseT: ... + + @overload + def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + files: RequestFiles | None = None, + stream: Literal[True], + stream_cls: type[_StreamT], + ) -> _StreamT: ... + + @overload + def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + files: RequestFiles | None = None, + stream: bool, + stream_cls: type[_StreamT] | None = None, + ) -> ResponseT | _StreamT: ... + + def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + files: RequestFiles | None = None, + stream: bool = False, + stream_cls: type[_StreamT] | None = None, + ) -> ResponseT | _StreamT: + opts = FinalRequestOptions.construct( + method="post", url=path, json_data=body, files=to_httpx_files(files), **options + ) + return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) + + def patch( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + ) -> ResponseT: + opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options) + return self.request(cast_to, opts) + + def put( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + files: RequestFiles | None = None, + options: RequestOptions = {}, + ) -> ResponseT: + opts = FinalRequestOptions.construct( + method="put", url=path, json_data=body, files=to_httpx_files(files), **options + ) + return self.request(cast_to, opts) + + def delete( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + ) -> ResponseT: + opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, **options) + return self.request(cast_to, opts) + + def get_api_list( + self, + path: str, + *, + model: Type[object], + page: Type[SyncPageT], + body: Body | None = None, + options: RequestOptions = {}, + method: str = "get", + ) -> SyncPageT: + opts = FinalRequestOptions.construct(method=method, url=path, json_data=body, **options) + return self._request_api_list(model, page, opts) + + +class _DefaultAsyncHttpxClient(httpx.AsyncClient): + def __init__(self, **kwargs: Any) -> None: + kwargs.setdefault("timeout", DEFAULT_TIMEOUT) + kwargs.setdefault("limits", DEFAULT_CONNECTION_LIMITS) + kwargs.setdefault("follow_redirects", True) + super().__init__(**kwargs) + + +try: + import httpx_aiohttp +except ImportError: + + class _DefaultAioHttpClient(httpx.AsyncClient): + def __init__(self, **_kwargs: Any) -> None: + raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") +else: + + class _DefaultAioHttpClient(httpx_aiohttp.HttpxAiohttpClient): # type: ignore + def __init__(self, **kwargs: Any) -> None: + kwargs.setdefault("timeout", DEFAULT_TIMEOUT) + kwargs.setdefault("limits", DEFAULT_CONNECTION_LIMITS) + kwargs.setdefault("follow_redirects", True) + + super().__init__(**kwargs) + + +if TYPE_CHECKING: + DefaultAsyncHttpxClient = httpx.AsyncClient + """An alias to `httpx.AsyncClient` that provides the same defaults that this SDK + uses internally. + + This is useful because overriding the `http_client` with your own instance of + `httpx.AsyncClient` will result in httpx's defaults being used, not ours. + """ + + DefaultAioHttpClient = httpx.AsyncClient + """An alias to `httpx.AsyncClient` that changes the default HTTP transport to `aiohttp`.""" +else: + DefaultAsyncHttpxClient = _DefaultAsyncHttpxClient + DefaultAioHttpClient = _DefaultAioHttpClient + + +class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient): + def __del__(self) -> None: + if self.is_closed: + return + + try: + # TODO(someday): support non asyncio runtimes here + asyncio.get_running_loop().create_task(self.aclose()) + except Exception: + pass + + +class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]): + _client: httpx.AsyncClient + _default_stream_cls: type[AsyncStream[Any]] | None = None + + def __init__( + self, + *, + version: str, + base_url: str | URL, + _strict_response_validation: bool, + max_retries: int = DEFAULT_MAX_RETRIES, + timeout: float | Timeout | None | NotGiven = not_given, + http_client: httpx.AsyncClient | None = None, + custom_headers: Mapping[str, str] | None = None, + custom_query: Mapping[str, object] | None = None, + ) -> None: + if not is_given(timeout): + # if the user passed in a custom http client with a non-default + # timeout set then we use that timeout. + # + # note: there is an edge case here where the user passes in a client + # where they've explicitly set the timeout to match the default timeout + # as this check is structural, meaning that we'll think they didn't + # pass in a timeout and will ignore it + if http_client and http_client.timeout != HTTPX_DEFAULT_TIMEOUT: + timeout = http_client.timeout + else: + timeout = DEFAULT_TIMEOUT + + if http_client is not None and not isinstance(http_client, httpx.AsyncClient): # pyright: ignore[reportUnnecessaryIsInstance] + raise TypeError( + f"Invalid `http_client` argument; Expected an instance of `httpx.AsyncClient` but got {type(http_client)}" + ) + + super().__init__( + version=version, + base_url=base_url, + # cast to a valid type because mypy doesn't understand our type narrowing + timeout=cast(Timeout, timeout), + max_retries=max_retries, + custom_query=custom_query, + custom_headers=custom_headers, + _strict_response_validation=_strict_response_validation, + ) + self._client = http_client or AsyncHttpxClientWrapper( + base_url=base_url, + # cast to a valid type because mypy doesn't understand our type narrowing + timeout=cast(Timeout, timeout), + ) + + def is_closed(self) -> bool: + return self._client.is_closed + + async def close(self) -> None: + """Close the underlying HTTPX client. + + The client will *not* be usable after this. + """ + await self._client.aclose() + + async def __aenter__(self: _T) -> _T: + return self + + async def __aexit__( + self, + exc_type: type[BaseException] | None, + exc: BaseException | None, + exc_tb: TracebackType | None, + ) -> None: + await self.close() + + async def _prepare_options( + self, + options: FinalRequestOptions, # noqa: ARG002 + ) -> FinalRequestOptions: + """Hook for mutating the given options""" + return options + + async def _prepare_request( + self, + request: httpx.Request, # noqa: ARG002 + ) -> None: + """This method is used as a callback for mutating the `Request` object + after it has been constructed. + This is useful for cases where you want to add certain headers based off of + the request properties, e.g. `url`, `method` etc. + """ + return None + + @overload + async def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: Literal[False] = False, + ) -> ResponseT: ... + + @overload + async def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: Literal[True], + stream_cls: type[_AsyncStreamT], + ) -> _AsyncStreamT: ... + + @overload + async def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: bool, + stream_cls: type[_AsyncStreamT] | None = None, + ) -> ResponseT | _AsyncStreamT: ... + + async def request( + self, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + *, + stream: bool = False, + stream_cls: type[_AsyncStreamT] | None = None, + ) -> ResponseT | _AsyncStreamT: + if self._platform is None: + # `get_platform` can make blocking IO calls so we + # execute it earlier while we are in an async context + self._platform = await asyncify(get_platform)() + + cast_to = self._maybe_override_cast_to(cast_to, options) + + # create a copy of the options we were given so that if the + # options are mutated later & we then retry, the retries are + # given the original options + input_options = model_copy(options) + if input_options.idempotency_key is None and input_options.method.lower() != "get": + # ensure the idempotency key is reused between requests + input_options.idempotency_key = self._idempotency_key() + + response: httpx.Response | None = None + max_retries = input_options.get_max_retries(self.max_retries) + + retries_taken = 0 + for retries_taken in range(max_retries + 1): + options = model_copy(input_options) + options = await self._prepare_options(options) + + remaining_retries = max_retries - retries_taken + request = self._build_request(options, retries_taken=retries_taken) + await self._prepare_request(request) + + kwargs: HttpxSendArgs = {} + if self.custom_auth is not None: + kwargs["auth"] = self.custom_auth + + if options.follow_redirects is not None: + kwargs["follow_redirects"] = options.follow_redirects + + log.debug("Sending HTTP Request: %s %s", request.method, request.url) + + response = None + try: + response = await self._client.send( + request, + stream=stream or self._should_stream_response_body(request=request), + **kwargs, + ) + except httpx.TimeoutException as err: + log.debug("Encountered httpx.TimeoutException", exc_info=True) + + if remaining_retries > 0: + await self._sleep_for_retry( + retries_taken=retries_taken, + max_retries=max_retries, + options=input_options, + response=None, + ) + continue + + log.debug("Raising timeout error") + raise APITimeoutError(request=request) from err + except Exception as err: + log.debug("Encountered Exception", exc_info=True) + + if remaining_retries > 0: + await self._sleep_for_retry( + retries_taken=retries_taken, + max_retries=max_retries, + options=input_options, + response=None, + ) + continue + + log.debug("Raising connection error") + raise APIConnectionError(request=request) from err + + log.debug( + 'HTTP Response: %s %s "%i %s" %s', + request.method, + request.url, + response.status_code, + response.reason_phrase, + response.headers, + ) + + try: + response.raise_for_status() + except httpx.HTTPStatusError as err: # thrown on 4xx and 5xx status code + log.debug("Encountered httpx.HTTPStatusError", exc_info=True) + + if remaining_retries > 0 and self._should_retry(err.response): + await err.response.aclose() + await self._sleep_for_retry( + retries_taken=retries_taken, + max_retries=max_retries, + options=input_options, + response=response, + ) + continue + + # If the response is streamed then we need to explicitly read the response + # to completion before attempting to access the response text. + if not err.response.is_closed: + await err.response.aread() + + log.debug("Re-raising status error") + raise self._make_status_error_from_response(err.response) from None + + break + + assert response is not None, "could not resolve response (should never happen)" + return await self._process_response( + cast_to=cast_to, + options=options, + response=response, + stream=stream, + stream_cls=stream_cls, + retries_taken=retries_taken, + ) + + async def _sleep_for_retry( + self, *, retries_taken: int, max_retries: int, options: FinalRequestOptions, response: httpx.Response | None + ) -> None: + remaining_retries = max_retries - retries_taken + if remaining_retries == 1: + log.debug("1 retry left") + else: + log.debug("%i retries left", remaining_retries) + + timeout = self._calculate_retry_timeout(remaining_retries, options, response.headers if response else None) + log.info("Retrying request to %s in %f seconds", options.url, timeout) + + await anyio.sleep(timeout) + + async def _process_response( + self, + *, + cast_to: Type[ResponseT], + options: FinalRequestOptions, + response: httpx.Response, + stream: bool, + stream_cls: type[Stream[Any]] | type[AsyncStream[Any]] | None, + retries_taken: int = 0, + ) -> ResponseT: + origin = get_origin(cast_to) or cast_to + + if ( + inspect.isclass(origin) + and issubclass(origin, BaseAPIResponse) + # we only want to actually return the custom BaseAPIResponse class if we're + # returning the raw response, or if we're not streaming SSE, as if we're streaming + # SSE then `cast_to` doesn't actively reflect the type we need to parse into + and (not stream or bool(response.request.headers.get(RAW_RESPONSE_HEADER))) + ): + if not issubclass(origin, AsyncAPIResponse): + raise TypeError(f"API Response types must subclass {AsyncAPIResponse}; Received {origin}") + + response_cls = cast("type[BaseAPIResponse[Any]]", cast_to) + return cast( + "ResponseT", + response_cls( + raw=response, + client=self, + cast_to=extract_response_type(response_cls), + stream=stream, + stream_cls=stream_cls, + options=options, + retries_taken=retries_taken, + ), + ) + + if cast_to == httpx.Response: + return cast(ResponseT, response) + + api_response = AsyncAPIResponse( + raw=response, + client=self, + cast_to=cast("type[ResponseT]", cast_to), # pyright: ignore[reportUnnecessaryCast] + stream=stream, + stream_cls=stream_cls, + options=options, + retries_taken=retries_taken, + ) + if bool(response.request.headers.get(RAW_RESPONSE_HEADER)): + return cast(ResponseT, api_response) + + return await api_response.parse() + + def _request_api_list( + self, + model: Type[_T], + page: Type[AsyncPageT], + options: FinalRequestOptions, + ) -> AsyncPaginator[_T, AsyncPageT]: + return AsyncPaginator(client=self, options=options, page_cls=page, model=model) + + @overload + async def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: Literal[False] = False, + ) -> ResponseT: ... + + @overload + async def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: Literal[True], + stream_cls: type[_AsyncStreamT], + ) -> _AsyncStreamT: ... + + @overload + async def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: bool, + stream_cls: type[_AsyncStreamT] | None = None, + ) -> ResponseT | _AsyncStreamT: ... + + async def get( + self, + path: str, + *, + cast_to: Type[ResponseT], + options: RequestOptions = {}, + stream: bool = False, + stream_cls: type[_AsyncStreamT] | None = None, + ) -> ResponseT | _AsyncStreamT: + opts = FinalRequestOptions.construct(method="get", url=path, **options) + return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) + + @overload + async def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + files: RequestFiles | None = None, + options: RequestOptions = {}, + stream: Literal[False] = False, + ) -> ResponseT: ... + + @overload + async def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + files: RequestFiles | None = None, + options: RequestOptions = {}, + stream: Literal[True], + stream_cls: type[_AsyncStreamT], + ) -> _AsyncStreamT: ... + + @overload + async def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + files: RequestFiles | None = None, + options: RequestOptions = {}, + stream: bool, + stream_cls: type[_AsyncStreamT] | None = None, + ) -> ResponseT | _AsyncStreamT: ... + + async def post( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + files: RequestFiles | None = None, + options: RequestOptions = {}, + stream: bool = False, + stream_cls: type[_AsyncStreamT] | None = None, + ) -> ResponseT | _AsyncStreamT: + opts = FinalRequestOptions.construct( + method="post", url=path, json_data=body, files=await async_to_httpx_files(files), **options + ) + return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) + + async def patch( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + ) -> ResponseT: + opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options) + return await self.request(cast_to, opts) + + async def put( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + files: RequestFiles | None = None, + options: RequestOptions = {}, + ) -> ResponseT: + opts = FinalRequestOptions.construct( + method="put", url=path, json_data=body, files=await async_to_httpx_files(files), **options + ) + return await self.request(cast_to, opts) + + async def delete( + self, + path: str, + *, + cast_to: Type[ResponseT], + body: Body | None = None, + options: RequestOptions = {}, + ) -> ResponseT: + opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, **options) + return await self.request(cast_to, opts) + + def get_api_list( + self, + path: str, + *, + model: Type[_T], + page: Type[AsyncPageT], + body: Body | None = None, + options: RequestOptions = {}, + method: str = "get", + ) -> AsyncPaginator[_T, AsyncPageT]: + opts = FinalRequestOptions.construct(method=method, url=path, json_data=body, **options) + return self._request_api_list(model, page, opts) + + +def make_request_options( + *, + query: Query | None = None, + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + idempotency_key: str | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + post_parser: PostParser | NotGiven = not_given, +) -> RequestOptions: + """Create a dict of type RequestOptions without keys of NotGiven values.""" + options: RequestOptions = {} + if extra_headers is not None: + options["headers"] = extra_headers + + if extra_body is not None: + options["extra_json"] = cast(AnyMapping, extra_body) + + if query is not None: + options["params"] = query + + if extra_query is not None: + options["params"] = {**options.get("params", {}), **extra_query} + + if not isinstance(timeout, NotGiven): + options["timeout"] = timeout + + if idempotency_key is not None: + options["idempotency_key"] = idempotency_key + + if is_given(post_parser): + # internal + options["post_parser"] = post_parser # type: ignore + + return options + + +class ForceMultipartDict(Dict[str, None]): + def __bool__(self) -> bool: + return True + + +class OtherPlatform: + def __init__(self, name: str) -> None: + self.name = name + + @override + def __str__(self) -> str: + return f"Other:{self.name}" + + +Platform = Union[ + OtherPlatform, + Literal[ + "MacOS", + "Linux", + "Windows", + "FreeBSD", + "OpenBSD", + "iOS", + "Android", + "Unknown", + ], +] + + +def get_platform() -> Platform: + try: + system = platform.system().lower() + platform_name = platform.platform().lower() + except Exception: + return "Unknown" + + if "iphone" in platform_name or "ipad" in platform_name: + # Tested using Python3IDE on an iPhone 11 and Pythonista on an iPad 7 + # system is Darwin and platform_name is a string like: + # - Darwin-21.6.0-iPhone12,1-64bit + # - Darwin-21.6.0-iPad7,11-64bit + return "iOS" + + if system == "darwin": + return "MacOS" + + if system == "windows": + return "Windows" + + if "android" in platform_name: + # Tested using Pydroid 3 + # system is Linux and platform_name is a string like 'Linux-5.10.81-android12-9-00001-geba40aecb3b7-ab8534902-aarch64-with-libc' + return "Android" + + if system == "linux": + # https://distro.readthedocs.io/en/latest/#distro.id + distro_id = distro.id() + if distro_id == "freebsd": + return "FreeBSD" + + if distro_id == "openbsd": + return "OpenBSD" + + return "Linux" + + if platform_name: + return OtherPlatform(platform_name) + + return "Unknown" + + +@lru_cache(maxsize=None) +def platform_headers(version: str, *, platform: Platform | None) -> Dict[str, str]: + return { + "X-Stainless-Lang": "python", + "X-Stainless-Package-Version": version, + "X-Stainless-OS": str(platform or get_platform()), + "X-Stainless-Arch": str(get_architecture()), + "X-Stainless-Runtime": get_python_runtime(), + "X-Stainless-Runtime-Version": get_python_version(), + } + + +class OtherArch: + def __init__(self, name: str) -> None: + self.name = name + + @override + def __str__(self) -> str: + return f"other:{self.name}" + + +Arch = Union[OtherArch, Literal["x32", "x64", "arm", "arm64", "unknown"]] + + +def get_python_runtime() -> str: + try: + return platform.python_implementation() + except Exception: + return "unknown" + + +def get_python_version() -> str: + try: + return platform.python_version() + except Exception: + return "unknown" + + +def get_architecture() -> Arch: + try: + machine = platform.machine().lower() + except Exception: + return "unknown" + + if machine in ("arm64", "aarch64"): + return "arm64" + + # TODO: untested + if machine == "arm": + return "arm" + + if machine == "x86_64": + return "x64" + + # TODO: untested + if sys.maxsize <= 2**32: + return "x32" + + if machine: + return OtherArch(machine) + + return "unknown" + + +def _merge_mappings( + obj1: Mapping[_T_co, Union[_T, Omit]], + obj2: Mapping[_T_co, Union[_T, Omit]], +) -> Dict[_T_co, _T]: + """Merge two mappings of the same type, removing any values that are instances of `Omit`. + + In cases with duplicate keys the second mapping takes precedence. + """ + merged = {**obj1, **obj2} + return {key: value for key, value in merged.items() if not isinstance(value, Omit)} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_client.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_client.py new file mode 100644 index 0000000000000000000000000000000000000000..06e18b322df8e0d34d7bd043fb31d8910b0c2641 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_client.py @@ -0,0 +1,627 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +import os +from typing import TYPE_CHECKING, Any, Mapping +from typing_extensions import Self, override + +import httpx + +from . import _exceptions +from ._qs import Querystring +from ._types import ( + Omit, + Timeout, + NotGiven, + Transport, + ProxiesTypes, + RequestOptions, + not_given, +) +from ._utils import is_given, get_async_library +from ._compat import cached_property +from ._version import __version__ +from ._streaming import Stream as Stream, AsyncStream as AsyncStream +from ._exceptions import GroqError, APIStatusError +from ._base_client import ( + DEFAULT_MAX_RETRIES, + SyncAPIClient, + AsyncAPIClient, +) + +if TYPE_CHECKING: + from .resources import chat, audio, files, models, batches, embeddings + from .resources.files import Files, AsyncFiles + from .resources.models import Models, AsyncModels + from .resources.batches import Batches, AsyncBatches + from .resources.chat.chat import Chat, AsyncChat + from .resources.embeddings import Embeddings, AsyncEmbeddings + from .resources.audio.audio import Audio, AsyncAudio + +__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Groq", "AsyncGroq", "Client", "AsyncClient"] + + +class Groq(SyncAPIClient): + # client options + api_key: str + + def __init__( + self, + *, + api_key: str | None = None, + base_url: str | httpx.URL | None = None, + timeout: float | Timeout | None | NotGiven = not_given, + max_retries: int = DEFAULT_MAX_RETRIES, + default_headers: Mapping[str, str] | None = None, + default_query: Mapping[str, object] | None = None, + # Configure a custom httpx client. + # We provide a `DefaultHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`. + # See the [httpx documentation](https://www.python-httpx.org/api/#client) for more details. + http_client: httpx.Client | None = None, + # Enable or disable schema validation for data returned by the API. + # When enabled an error APIResponseValidationError is raised + # if the API responds with invalid data for the expected schema. + # + # This parameter may be removed or changed in the future. + # If you rely on this feature, please open a GitHub issue + # outlining your use-case to help us decide if it should be + # part of our public interface in the future. + _strict_response_validation: bool = False, + ) -> None: + """Construct a new synchronous Groq client instance. + + This automatically infers the `api_key` argument from the `GROQ_API_KEY` environment variable if it is not provided. + """ + if api_key is None: + api_key = os.environ.get("GROQ_API_KEY") + if api_key is None: + raise GroqError( + "The api_key client option must be set either by passing api_key to the client or by setting the GROQ_API_KEY environment variable" + ) + self.api_key = api_key + + if base_url is None: + base_url = os.environ.get("GROQ_BASE_URL") + if base_url is None: + base_url = f"https://api.groq.com" + + super().__init__( + version=__version__, + base_url=base_url, + max_retries=max_retries, + timeout=timeout, + http_client=http_client, + custom_headers=default_headers, + custom_query=default_query, + _strict_response_validation=_strict_response_validation, + ) + + @cached_property + def chat(self) -> Chat: + from .resources.chat import Chat + + return Chat(self) + + @cached_property + def embeddings(self) -> Embeddings: + from .resources.embeddings import Embeddings + + return Embeddings(self) + + @cached_property + def audio(self) -> Audio: + from .resources.audio import Audio + + return Audio(self) + + @cached_property + def models(self) -> Models: + from .resources.models import Models + + return Models(self) + + @cached_property + def batches(self) -> Batches: + from .resources.batches import Batches + + return Batches(self) + + @cached_property + def files(self) -> Files: + from .resources.files import Files + + return Files(self) + + @cached_property + def with_raw_response(self) -> GroqWithRawResponse: + return GroqWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> GroqWithStreamedResponse: + return GroqWithStreamedResponse(self) + + @property + @override + def qs(self) -> Querystring: + return Querystring(array_format="comma") + + @property + @override + def auth_headers(self) -> dict[str, str]: + api_key = self.api_key + return {"Authorization": f"Bearer {api_key}"} + + @property + @override + def default_headers(self) -> dict[str, str | Omit]: + return { + **super().default_headers, + "X-Stainless-Async": "false", + **self._custom_headers, + } + + def copy( + self, + *, + api_key: str | None = None, + base_url: str | httpx.URL | None = None, + timeout: float | Timeout | None | NotGiven = not_given, + http_client: httpx.Client | None = None, + max_retries: int | NotGiven = not_given, + default_headers: Mapping[str, str] | None = None, + set_default_headers: Mapping[str, str] | None = None, + default_query: Mapping[str, object] | None = None, + set_default_query: Mapping[str, object] | None = None, + _extra_kwargs: Mapping[str, Any] = {}, + ) -> Self: + """ + Create a new client instance re-using the same options given to the current client with optional overriding. + """ + if default_headers is not None and set_default_headers is not None: + raise ValueError("The `default_headers` and `set_default_headers` arguments are mutually exclusive") + + if default_query is not None and set_default_query is not None: + raise ValueError("The `default_query` and `set_default_query` arguments are mutually exclusive") + + headers = self._custom_headers + if default_headers is not None: + headers = {**headers, **default_headers} + elif set_default_headers is not None: + headers = set_default_headers + + params = self._custom_query + if default_query is not None: + params = {**params, **default_query} + elif set_default_query is not None: + params = set_default_query + + http_client = http_client or self._client + return self.__class__( + api_key=api_key or self.api_key, + base_url=base_url or self.base_url, + timeout=self.timeout if isinstance(timeout, NotGiven) else timeout, + http_client=http_client, + max_retries=max_retries if is_given(max_retries) else self.max_retries, + default_headers=headers, + default_query=params, + **_extra_kwargs, + ) + + # Alias for `copy` for nicer inline usage, e.g. + # client.with_options(timeout=10).foo.create(...) + with_options = copy + + @override + def _make_status_error( + self, + err_msg: str, + *, + body: object, + response: httpx.Response, + ) -> APIStatusError: + if response.status_code == 400: + return _exceptions.BadRequestError(err_msg, response=response, body=body) + + if response.status_code == 401: + return _exceptions.AuthenticationError(err_msg, response=response, body=body) + + if response.status_code == 403: + return _exceptions.PermissionDeniedError(err_msg, response=response, body=body) + + if response.status_code == 404: + return _exceptions.NotFoundError(err_msg, response=response, body=body) + + if response.status_code == 409: + return _exceptions.ConflictError(err_msg, response=response, body=body) + + if response.status_code == 422: + return _exceptions.UnprocessableEntityError(err_msg, response=response, body=body) + + if response.status_code == 429: + return _exceptions.RateLimitError(err_msg, response=response, body=body) + + if response.status_code >= 500: + return _exceptions.InternalServerError(err_msg, response=response, body=body) + return APIStatusError(err_msg, response=response, body=body) + + +class AsyncGroq(AsyncAPIClient): + # client options + api_key: str + + def __init__( + self, + *, + api_key: str | None = None, + base_url: str | httpx.URL | None = None, + timeout: float | Timeout | None | NotGiven = not_given, + max_retries: int = DEFAULT_MAX_RETRIES, + default_headers: Mapping[str, str] | None = None, + default_query: Mapping[str, object] | None = None, + # Configure a custom httpx client. + # We provide a `DefaultAsyncHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`. + # See the [httpx documentation](https://www.python-httpx.org/api/#asyncclient) for more details. + http_client: httpx.AsyncClient | None = None, + # Enable or disable schema validation for data returned by the API. + # When enabled an error APIResponseValidationError is raised + # if the API responds with invalid data for the expected schema. + # + # This parameter may be removed or changed in the future. + # If you rely on this feature, please open a GitHub issue + # outlining your use-case to help us decide if it should be + # part of our public interface in the future. + _strict_response_validation: bool = False, + ) -> None: + """Construct a new async AsyncGroq client instance. + + This automatically infers the `api_key` argument from the `GROQ_API_KEY` environment variable if it is not provided. + """ + if api_key is None: + api_key = os.environ.get("GROQ_API_KEY") + if api_key is None: + raise GroqError( + "The api_key client option must be set either by passing api_key to the client or by setting the GROQ_API_KEY environment variable" + ) + self.api_key = api_key + + if base_url is None: + base_url = os.environ.get("GROQ_BASE_URL") + if base_url is None: + base_url = f"https://api.groq.com" + + super().__init__( + version=__version__, + base_url=base_url, + max_retries=max_retries, + timeout=timeout, + http_client=http_client, + custom_headers=default_headers, + custom_query=default_query, + _strict_response_validation=_strict_response_validation, + ) + + @cached_property + def chat(self) -> AsyncChat: + from .resources.chat import AsyncChat + + return AsyncChat(self) + + @cached_property + def embeddings(self) -> AsyncEmbeddings: + from .resources.embeddings import AsyncEmbeddings + + return AsyncEmbeddings(self) + + @cached_property + def audio(self) -> AsyncAudio: + from .resources.audio import AsyncAudio + + return AsyncAudio(self) + + @cached_property + def models(self) -> AsyncModels: + from .resources.models import AsyncModels + + return AsyncModels(self) + + @cached_property + def batches(self) -> AsyncBatches: + from .resources.batches import AsyncBatches + + return AsyncBatches(self) + + @cached_property + def files(self) -> AsyncFiles: + from .resources.files import AsyncFiles + + return AsyncFiles(self) + + @cached_property + def with_raw_response(self) -> AsyncGroqWithRawResponse: + return AsyncGroqWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncGroqWithStreamedResponse: + return AsyncGroqWithStreamedResponse(self) + + @property + @override + def qs(self) -> Querystring: + return Querystring(array_format="comma") + + @property + @override + def auth_headers(self) -> dict[str, str]: + api_key = self.api_key + return {"Authorization": f"Bearer {api_key}"} + + @property + @override + def default_headers(self) -> dict[str, str | Omit]: + return { + **super().default_headers, + "X-Stainless-Async": f"async:{get_async_library()}", + **self._custom_headers, + } + + def copy( + self, + *, + api_key: str | None = None, + base_url: str | httpx.URL | None = None, + timeout: float | Timeout | None | NotGiven = not_given, + http_client: httpx.AsyncClient | None = None, + max_retries: int | NotGiven = not_given, + default_headers: Mapping[str, str] | None = None, + set_default_headers: Mapping[str, str] | None = None, + default_query: Mapping[str, object] | None = None, + set_default_query: Mapping[str, object] | None = None, + _extra_kwargs: Mapping[str, Any] = {}, + ) -> Self: + """ + Create a new client instance re-using the same options given to the current client with optional overriding. + """ + if default_headers is not None and set_default_headers is not None: + raise ValueError("The `default_headers` and `set_default_headers` arguments are mutually exclusive") + + if default_query is not None and set_default_query is not None: + raise ValueError("The `default_query` and `set_default_query` arguments are mutually exclusive") + + headers = self._custom_headers + if default_headers is not None: + headers = {**headers, **default_headers} + elif set_default_headers is not None: + headers = set_default_headers + + params = self._custom_query + if default_query is not None: + params = {**params, **default_query} + elif set_default_query is not None: + params = set_default_query + + http_client = http_client or self._client + return self.__class__( + api_key=api_key or self.api_key, + base_url=base_url or self.base_url, + timeout=self.timeout if isinstance(timeout, NotGiven) else timeout, + http_client=http_client, + max_retries=max_retries if is_given(max_retries) else self.max_retries, + default_headers=headers, + default_query=params, + **_extra_kwargs, + ) + + # Alias for `copy` for nicer inline usage, e.g. + # client.with_options(timeout=10).foo.create(...) + with_options = copy + + @override + def _make_status_error( + self, + err_msg: str, + *, + body: object, + response: httpx.Response, + ) -> APIStatusError: + if response.status_code == 400: + return _exceptions.BadRequestError(err_msg, response=response, body=body) + + if response.status_code == 401: + return _exceptions.AuthenticationError(err_msg, response=response, body=body) + + if response.status_code == 403: + return _exceptions.PermissionDeniedError(err_msg, response=response, body=body) + + if response.status_code == 404: + return _exceptions.NotFoundError(err_msg, response=response, body=body) + + if response.status_code == 409: + return _exceptions.ConflictError(err_msg, response=response, body=body) + + if response.status_code == 422: + return _exceptions.UnprocessableEntityError(err_msg, response=response, body=body) + + if response.status_code == 429: + return _exceptions.RateLimitError(err_msg, response=response, body=body) + + if response.status_code >= 500: + return _exceptions.InternalServerError(err_msg, response=response, body=body) + return APIStatusError(err_msg, response=response, body=body) + + +class GroqWithRawResponse: + _client: Groq + + def __init__(self, client: Groq) -> None: + self._client = client + + @cached_property + def chat(self) -> chat.ChatWithRawResponse: + from .resources.chat import ChatWithRawResponse + + return ChatWithRawResponse(self._client.chat) + + @cached_property + def embeddings(self) -> embeddings.EmbeddingsWithRawResponse: + from .resources.embeddings import EmbeddingsWithRawResponse + + return EmbeddingsWithRawResponse(self._client.embeddings) + + @cached_property + def audio(self) -> audio.AudioWithRawResponse: + from .resources.audio import AudioWithRawResponse + + return AudioWithRawResponse(self._client.audio) + + @cached_property + def models(self) -> models.ModelsWithRawResponse: + from .resources.models import ModelsWithRawResponse + + return ModelsWithRawResponse(self._client.models) + + @cached_property + def batches(self) -> batches.BatchesWithRawResponse: + from .resources.batches import BatchesWithRawResponse + + return BatchesWithRawResponse(self._client.batches) + + @cached_property + def files(self) -> files.FilesWithRawResponse: + from .resources.files import FilesWithRawResponse + + return FilesWithRawResponse(self._client.files) + + +class AsyncGroqWithRawResponse: + _client: AsyncGroq + + def __init__(self, client: AsyncGroq) -> None: + self._client = client + + @cached_property + def chat(self) -> chat.AsyncChatWithRawResponse: + from .resources.chat import AsyncChatWithRawResponse + + return AsyncChatWithRawResponse(self._client.chat) + + @cached_property + def embeddings(self) -> embeddings.AsyncEmbeddingsWithRawResponse: + from .resources.embeddings import AsyncEmbeddingsWithRawResponse + + return AsyncEmbeddingsWithRawResponse(self._client.embeddings) + + @cached_property + def audio(self) -> audio.AsyncAudioWithRawResponse: + from .resources.audio import AsyncAudioWithRawResponse + + return AsyncAudioWithRawResponse(self._client.audio) + + @cached_property + def models(self) -> models.AsyncModelsWithRawResponse: + from .resources.models import AsyncModelsWithRawResponse + + return AsyncModelsWithRawResponse(self._client.models) + + @cached_property + def batches(self) -> batches.AsyncBatchesWithRawResponse: + from .resources.batches import AsyncBatchesWithRawResponse + + return AsyncBatchesWithRawResponse(self._client.batches) + + @cached_property + def files(self) -> files.AsyncFilesWithRawResponse: + from .resources.files import AsyncFilesWithRawResponse + + return AsyncFilesWithRawResponse(self._client.files) + + +class GroqWithStreamedResponse: + _client: Groq + + def __init__(self, client: Groq) -> None: + self._client = client + + @cached_property + def chat(self) -> chat.ChatWithStreamingResponse: + from .resources.chat import ChatWithStreamingResponse + + return ChatWithStreamingResponse(self._client.chat) + + @cached_property + def embeddings(self) -> embeddings.EmbeddingsWithStreamingResponse: + from .resources.embeddings import EmbeddingsWithStreamingResponse + + return EmbeddingsWithStreamingResponse(self._client.embeddings) + + @cached_property + def audio(self) -> audio.AudioWithStreamingResponse: + from .resources.audio import AudioWithStreamingResponse + + return AudioWithStreamingResponse(self._client.audio) + + @cached_property + def models(self) -> models.ModelsWithStreamingResponse: + from .resources.models import ModelsWithStreamingResponse + + return ModelsWithStreamingResponse(self._client.models) + + @cached_property + def batches(self) -> batches.BatchesWithStreamingResponse: + from .resources.batches import BatchesWithStreamingResponse + + return BatchesWithStreamingResponse(self._client.batches) + + @cached_property + def files(self) -> files.FilesWithStreamingResponse: + from .resources.files import FilesWithStreamingResponse + + return FilesWithStreamingResponse(self._client.files) + + +class AsyncGroqWithStreamedResponse: + _client: AsyncGroq + + def __init__(self, client: AsyncGroq) -> None: + self._client = client + + @cached_property + def chat(self) -> chat.AsyncChatWithStreamingResponse: + from .resources.chat import AsyncChatWithStreamingResponse + + return AsyncChatWithStreamingResponse(self._client.chat) + + @cached_property + def embeddings(self) -> embeddings.AsyncEmbeddingsWithStreamingResponse: + from .resources.embeddings import AsyncEmbeddingsWithStreamingResponse + + return AsyncEmbeddingsWithStreamingResponse(self._client.embeddings) + + @cached_property + def audio(self) -> audio.AsyncAudioWithStreamingResponse: + from .resources.audio import AsyncAudioWithStreamingResponse + + return AsyncAudioWithStreamingResponse(self._client.audio) + + @cached_property + def models(self) -> models.AsyncModelsWithStreamingResponse: + from .resources.models import AsyncModelsWithStreamingResponse + + return AsyncModelsWithStreamingResponse(self._client.models) + + @cached_property + def batches(self) -> batches.AsyncBatchesWithStreamingResponse: + from .resources.batches import AsyncBatchesWithStreamingResponse + + return AsyncBatchesWithStreamingResponse(self._client.batches) + + @cached_property + def files(self) -> files.AsyncFilesWithStreamingResponse: + from .resources.files import AsyncFilesWithStreamingResponse + + return AsyncFilesWithStreamingResponse(self._client.files) + + +Client = Groq + +AsyncClient = AsyncGroq diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_compat.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_compat.py new file mode 100644 index 0000000000000000000000000000000000000000..bdef67f0425a6780e9dbf4852ed836e827d25b95 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_compat.py @@ -0,0 +1,219 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Union, Generic, TypeVar, Callable, cast, overload +from datetime import date, datetime +from typing_extensions import Self, Literal + +import pydantic +from pydantic.fields import FieldInfo + +from ._types import IncEx, StrBytesIntFloat + +_T = TypeVar("_T") +_ModelT = TypeVar("_ModelT", bound=pydantic.BaseModel) + +# --------------- Pydantic v2, v3 compatibility --------------- + +# Pyright incorrectly reports some of our functions as overriding a method when they don't +# pyright: reportIncompatibleMethodOverride=false + +PYDANTIC_V1 = pydantic.VERSION.startswith("1.") + +if TYPE_CHECKING: + + def parse_date(value: date | StrBytesIntFloat) -> date: # noqa: ARG001 + ... + + def parse_datetime(value: Union[datetime, StrBytesIntFloat]) -> datetime: # noqa: ARG001 + ... + + def get_args(t: type[Any]) -> tuple[Any, ...]: # noqa: ARG001 + ... + + def is_union(tp: type[Any] | None) -> bool: # noqa: ARG001 + ... + + def get_origin(t: type[Any]) -> type[Any] | None: # noqa: ARG001 + ... + + def is_literal_type(type_: type[Any]) -> bool: # noqa: ARG001 + ... + + def is_typeddict(type_: type[Any]) -> bool: # noqa: ARG001 + ... + +else: + # v1 re-exports + if PYDANTIC_V1: + from pydantic.typing import ( + get_args as get_args, + is_union as is_union, + get_origin as get_origin, + is_typeddict as is_typeddict, + is_literal_type as is_literal_type, + ) + from pydantic.datetime_parse import parse_date as parse_date, parse_datetime as parse_datetime + else: + from ._utils import ( + get_args as get_args, + is_union as is_union, + get_origin as get_origin, + parse_date as parse_date, + is_typeddict as is_typeddict, + parse_datetime as parse_datetime, + is_literal_type as is_literal_type, + ) + + +# refactored config +if TYPE_CHECKING: + from pydantic import ConfigDict as ConfigDict +else: + if PYDANTIC_V1: + # TODO: provide an error message here? + ConfigDict = None + else: + from pydantic import ConfigDict as ConfigDict + + +# renamed methods / properties +def parse_obj(model: type[_ModelT], value: object) -> _ModelT: + if PYDANTIC_V1: + return cast(_ModelT, model.parse_obj(value)) # pyright: ignore[reportDeprecated, reportUnnecessaryCast] + else: + return model.model_validate(value) + + +def field_is_required(field: FieldInfo) -> bool: + if PYDANTIC_V1: + return field.required # type: ignore + return field.is_required() + + +def field_get_default(field: FieldInfo) -> Any: + value = field.get_default() + if PYDANTIC_V1: + return value + from pydantic_core import PydanticUndefined + + if value == PydanticUndefined: + return None + return value + + +def field_outer_type(field: FieldInfo) -> Any: + if PYDANTIC_V1: + return field.outer_type_ # type: ignore + return field.annotation + + +def get_model_config(model: type[pydantic.BaseModel]) -> Any: + if PYDANTIC_V1: + return model.__config__ # type: ignore + return model.model_config + + +def get_model_fields(model: type[pydantic.BaseModel]) -> dict[str, FieldInfo]: + if PYDANTIC_V1: + return model.__fields__ # type: ignore + return model.model_fields + + +def model_copy(model: _ModelT, *, deep: bool = False) -> _ModelT: + if PYDANTIC_V1: + return model.copy(deep=deep) # type: ignore + return model.model_copy(deep=deep) + + +def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str: + if PYDANTIC_V1: + return model.json(indent=indent) # type: ignore + return model.model_dump_json(indent=indent) + + +def model_dump( + model: pydantic.BaseModel, + *, + exclude: IncEx | None = None, + exclude_unset: bool = False, + exclude_defaults: bool = False, + warnings: bool = True, + mode: Literal["json", "python"] = "python", +) -> dict[str, Any]: + if (not PYDANTIC_V1) or hasattr(model, "model_dump"): + return model.model_dump( + mode=mode, + exclude=exclude, + exclude_unset=exclude_unset, + exclude_defaults=exclude_defaults, + # warnings are not supported in Pydantic v1 + warnings=True if PYDANTIC_V1 else warnings, + ) + return cast( + "dict[str, Any]", + model.dict( # pyright: ignore[reportDeprecated, reportUnnecessaryCast] + exclude=exclude, + exclude_unset=exclude_unset, + exclude_defaults=exclude_defaults, + ), + ) + + +def model_parse(model: type[_ModelT], data: Any) -> _ModelT: + if PYDANTIC_V1: + return model.parse_obj(data) # pyright: ignore[reportDeprecated] + return model.model_validate(data) + + +# generic models +if TYPE_CHECKING: + + class GenericModel(pydantic.BaseModel): ... + +else: + if PYDANTIC_V1: + import pydantic.generics + + class GenericModel(pydantic.generics.GenericModel, pydantic.BaseModel): ... + else: + # there no longer needs to be a distinction in v2 but + # we still have to create our own subclass to avoid + # inconsistent MRO ordering errors + class GenericModel(pydantic.BaseModel): ... + + +# cached properties +if TYPE_CHECKING: + cached_property = property + + # we define a separate type (copied from typeshed) + # that represents that `cached_property` is `set`able + # at runtime, which differs from `@property`. + # + # this is a separate type as editors likely special case + # `@property` and we don't want to cause issues just to have + # more helpful internal types. + + class typed_cached_property(Generic[_T]): + func: Callable[[Any], _T] + attrname: str | None + + def __init__(self, func: Callable[[Any], _T]) -> None: ... + + @overload + def __get__(self, instance: None, owner: type[Any] | None = None) -> Self: ... + + @overload + def __get__(self, instance: object, owner: type[Any] | None = None) -> _T: ... + + def __get__(self, instance: object, owner: type[Any] | None = None) -> _T | Self: + raise NotImplementedError() + + def __set_name__(self, owner: type[Any], name: str) -> None: ... + + # __set__ is not defined at runtime, but @cached_property is designed to be settable + def __set__(self, instance: object, value: _T) -> None: ... +else: + from functools import cached_property as cached_property + + typed_cached_property = cached_property diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_constants.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_constants.py new file mode 100644 index 0000000000000000000000000000000000000000..6ddf2c7170bbbccbd5d824e79c4e875ff80c5e1c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_constants.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import httpx + +RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response" +OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to" + +# default timeout is 1 minute +DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0) +DEFAULT_MAX_RETRIES = 2 +DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20) + +INITIAL_RETRY_DELAY = 0.5 +MAX_RETRY_DELAY = 8.0 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_exceptions.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_exceptions.py new file mode 100644 index 0000000000000000000000000000000000000000..ca690705931275f64d322213d8295baefb8855de --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_exceptions.py @@ -0,0 +1,108 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal + +import httpx + +__all__ = [ + "BadRequestError", + "AuthenticationError", + "PermissionDeniedError", + "NotFoundError", + "ConflictError", + "UnprocessableEntityError", + "RateLimitError", + "InternalServerError", +] + + +class GroqError(Exception): + pass + + +class APIError(GroqError): + message: str + request: httpx.Request + + body: object | None + """The API response body. + + If the API responded with a valid JSON structure then this property will be the + decoded result. + + If it isn't a valid JSON structure then this will be the raw response. + + If there was no response associated with this error then it will be `None`. + """ + + def __init__(self, message: str, request: httpx.Request, *, body: object | None) -> None: # noqa: ARG002 + super().__init__(message) + self.request = request + self.message = message + self.body = body + + +class APIResponseValidationError(APIError): + response: httpx.Response + status_code: int + + def __init__(self, response: httpx.Response, body: object | None, *, message: str | None = None) -> None: + super().__init__(message or "Data returned by API invalid for expected schema.", response.request, body=body) + self.response = response + self.status_code = response.status_code + + +class APIStatusError(APIError): + """Raised when an API response has a status code of 4xx or 5xx.""" + + response: httpx.Response + status_code: int + + def __init__(self, message: str, *, response: httpx.Response, body: object | None) -> None: + super().__init__(message, response.request, body=body) + self.response = response + self.status_code = response.status_code + + +class APIConnectionError(APIError): + def __init__(self, *, message: str = "Connection error.", request: httpx.Request) -> None: + super().__init__(message, request, body=None) + + +class APITimeoutError(APIConnectionError): + def __init__(self, request: httpx.Request) -> None: + super().__init__(message="Request timed out.", request=request) + + +class BadRequestError(APIStatusError): + status_code: Literal[400] = 400 # pyright: ignore[reportIncompatibleVariableOverride] + + +class AuthenticationError(APIStatusError): + status_code: Literal[401] = 401 # pyright: ignore[reportIncompatibleVariableOverride] + + +class PermissionDeniedError(APIStatusError): + status_code: Literal[403] = 403 # pyright: ignore[reportIncompatibleVariableOverride] + + +class NotFoundError(APIStatusError): + status_code: Literal[404] = 404 # pyright: ignore[reportIncompatibleVariableOverride] + + +class ConflictError(APIStatusError): + status_code: Literal[409] = 409 # pyright: ignore[reportIncompatibleVariableOverride] + + +class UnprocessableEntityError(APIStatusError): + status_code: Literal[422] = 422 # pyright: ignore[reportIncompatibleVariableOverride] + + +class RateLimitError(APIStatusError): + status_code: Literal[429] = 429 # pyright: ignore[reportIncompatibleVariableOverride] + + +class InternalServerError(APIStatusError): + pass diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_files.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_files.py new file mode 100644 index 0000000000000000000000000000000000000000..63391ce3b2ef641e536d6289989e757b1418bebb --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_files.py @@ -0,0 +1,123 @@ +from __future__ import annotations + +import io +import os +import pathlib +from typing import overload +from typing_extensions import TypeGuard + +import anyio + +from ._types import ( + FileTypes, + FileContent, + RequestFiles, + HttpxFileTypes, + Base64FileInput, + HttpxFileContent, + HttpxRequestFiles, +) +from ._utils import is_tuple_t, is_mapping_t, is_sequence_t + + +def is_base64_file_input(obj: object) -> TypeGuard[Base64FileInput]: + return isinstance(obj, io.IOBase) or isinstance(obj, os.PathLike) + + +def is_file_content(obj: object) -> TypeGuard[FileContent]: + return ( + isinstance(obj, bytes) or isinstance(obj, tuple) or isinstance(obj, io.IOBase) or isinstance(obj, os.PathLike) + ) + + +def assert_is_file_content(obj: object, *, key: str | None = None) -> None: + if not is_file_content(obj): + prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`" + raise RuntimeError( + f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/groq/groq-python/tree/main#file-uploads" + ) from None + + +@overload +def to_httpx_files(files: None) -> None: ... + + +@overload +def to_httpx_files(files: RequestFiles) -> HttpxRequestFiles: ... + + +def to_httpx_files(files: RequestFiles | None) -> HttpxRequestFiles | None: + if files is None: + return None + + if is_mapping_t(files): + files = {key: _transform_file(file) for key, file in files.items()} + elif is_sequence_t(files): + files = [(key, _transform_file(file)) for key, file in files] + else: + raise TypeError(f"Unexpected file type input {type(files)}, expected mapping or sequence") + + return files + + +def _transform_file(file: FileTypes) -> HttpxFileTypes: + if is_file_content(file): + if isinstance(file, os.PathLike): + path = pathlib.Path(file) + return (path.name, path.read_bytes()) + + return file + + if is_tuple_t(file): + return (file[0], read_file_content(file[1]), *file[2:]) + + raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple") + + +def read_file_content(file: FileContent) -> HttpxFileContent: + if isinstance(file, os.PathLike): + return pathlib.Path(file).read_bytes() + return file + + +@overload +async def async_to_httpx_files(files: None) -> None: ... + + +@overload +async def async_to_httpx_files(files: RequestFiles) -> HttpxRequestFiles: ... + + +async def async_to_httpx_files(files: RequestFiles | None) -> HttpxRequestFiles | None: + if files is None: + return None + + if is_mapping_t(files): + files = {key: await _async_transform_file(file) for key, file in files.items()} + elif is_sequence_t(files): + files = [(key, await _async_transform_file(file)) for key, file in files] + else: + raise TypeError("Unexpected file type input {type(files)}, expected mapping or sequence") + + return files + + +async def _async_transform_file(file: FileTypes) -> HttpxFileTypes: + if is_file_content(file): + if isinstance(file, os.PathLike): + path = anyio.Path(file) + return (path.name, await path.read_bytes()) + + return file + + if is_tuple_t(file): + return (file[0], await async_read_file_content(file[1]), *file[2:]) + + raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple") + + +async def async_read_file_content(file: FileContent) -> HttpxFileContent: + if isinstance(file, os.PathLike): + return await anyio.Path(file).read_bytes() + + return file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_models.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_models.py new file mode 100644 index 0000000000000000000000000000000000000000..ca9500b2aa85492f020b29b9cc89659df55d3e3e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_models.py @@ -0,0 +1,857 @@ +from __future__ import annotations + +import os +import inspect +import weakref +from typing import TYPE_CHECKING, Any, Type, Union, Generic, TypeVar, Callable, Optional, cast +from datetime import date, datetime +from typing_extensions import ( + List, + Unpack, + Literal, + ClassVar, + Protocol, + Required, + ParamSpec, + TypedDict, + TypeGuard, + final, + override, + runtime_checkable, +) + +import pydantic +from pydantic.fields import FieldInfo + +from ._types import ( + Body, + IncEx, + Query, + ModelT, + Headers, + Timeout, + NotGiven, + AnyMapping, + HttpxRequestFiles, +) +from ._utils import ( + PropertyInfo, + is_list, + is_given, + json_safe, + lru_cache, + is_mapping, + parse_date, + coerce_boolean, + parse_datetime, + strip_not_given, + extract_type_arg, + is_annotated_type, + is_type_alias_type, + strip_annotated_type, +) +from ._compat import ( + PYDANTIC_V1, + ConfigDict, + GenericModel as BaseGenericModel, + get_args, + is_union, + parse_obj, + get_origin, + is_literal_type, + get_model_config, + get_model_fields, + field_get_default, +) +from ._constants import RAW_RESPONSE_HEADER + +if TYPE_CHECKING: + from pydantic_core.core_schema import ModelField, ModelSchema, LiteralSchema, ModelFieldsSchema + +__all__ = ["BaseModel", "GenericModel"] + +_T = TypeVar("_T") +_BaseModelT = TypeVar("_BaseModelT", bound="BaseModel") + +P = ParamSpec("P") + + +@runtime_checkable +class _ConfigProtocol(Protocol): + allow_population_by_field_name: bool + + +class BaseModel(pydantic.BaseModel): + if PYDANTIC_V1: + + @property + @override + def model_fields_set(self) -> set[str]: + # a forwards-compat shim for pydantic v2 + return self.__fields_set__ # type: ignore + + class Config(pydantic.BaseConfig): # pyright: ignore[reportDeprecated] + extra: Any = pydantic.Extra.allow # type: ignore + else: + model_config: ClassVar[ConfigDict] = ConfigDict( + extra="allow", defer_build=coerce_boolean(os.environ.get("DEFER_PYDANTIC_BUILD", "true")) + ) + + def to_dict( + self, + *, + mode: Literal["json", "python"] = "python", + use_api_names: bool = True, + exclude_unset: bool = True, + exclude_defaults: bool = False, + exclude_none: bool = False, + warnings: bool = True, + ) -> dict[str, object]: + """Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude. + + By default, fields that were not set by the API will not be included, + and keys will match the API response, *not* the property names from the model. + + For example, if the API responds with `"fooBar": true` but we've defined a `foo_bar: bool` property, + the output will use the `"fooBar"` key (unless `use_api_names=False` is passed). + + Args: + mode: + If mode is 'json', the dictionary will only contain JSON serializable types. e.g. `datetime` will be turned into a string, `"2024-3-22T18:11:19.117000Z"`. + If mode is 'python', the dictionary may contain any Python objects. e.g. `datetime(2024, 3, 22)` + + use_api_names: Whether to use the key that the API responded with or the property name. Defaults to `True`. + exclude_unset: Whether to exclude fields that have not been explicitly set. + exclude_defaults: Whether to exclude fields that are set to their default value from the output. + exclude_none: Whether to exclude fields that have a value of `None` from the output. + warnings: Whether to log warnings when invalid fields are encountered. This is only supported in Pydantic v2. + """ + return self.model_dump( + mode=mode, + by_alias=use_api_names, + exclude_unset=exclude_unset, + exclude_defaults=exclude_defaults, + exclude_none=exclude_none, + warnings=warnings, + ) + + def to_json( + self, + *, + indent: int | None = 2, + use_api_names: bool = True, + exclude_unset: bool = True, + exclude_defaults: bool = False, + exclude_none: bool = False, + warnings: bool = True, + ) -> str: + """Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation). + + By default, fields that were not set by the API will not be included, + and keys will match the API response, *not* the property names from the model. + + For example, if the API responds with `"fooBar": true` but we've defined a `foo_bar: bool` property, + the output will use the `"fooBar"` key (unless `use_api_names=False` is passed). + + Args: + indent: Indentation to use in the JSON output. If `None` is passed, the output will be compact. Defaults to `2` + use_api_names: Whether to use the key that the API responded with or the property name. Defaults to `True`. + exclude_unset: Whether to exclude fields that have not been explicitly set. + exclude_defaults: Whether to exclude fields that have the default value. + exclude_none: Whether to exclude fields that have a value of `None`. + warnings: Whether to show any warnings that occurred during serialization. This is only supported in Pydantic v2. + """ + return self.model_dump_json( + indent=indent, + by_alias=use_api_names, + exclude_unset=exclude_unset, + exclude_defaults=exclude_defaults, + exclude_none=exclude_none, + warnings=warnings, + ) + + @override + def __str__(self) -> str: + # mypy complains about an invalid self arg + return f"{self.__repr_name__()}({self.__repr_str__(', ')})" # type: ignore[misc] + + # Override the 'construct' method in a way that supports recursive parsing without validation. + # Based on https://github.com/samuelcolvin/pydantic/issues/1168#issuecomment-817742836. + @classmethod + @override + def construct( # pyright: ignore[reportIncompatibleMethodOverride] + __cls: Type[ModelT], + _fields_set: set[str] | None = None, + **values: object, + ) -> ModelT: + m = __cls.__new__(__cls) + fields_values: dict[str, object] = {} + + config = get_model_config(__cls) + populate_by_name = ( + config.allow_population_by_field_name + if isinstance(config, _ConfigProtocol) + else config.get("populate_by_name") + ) + + if _fields_set is None: + _fields_set = set() + + model_fields = get_model_fields(__cls) + for name, field in model_fields.items(): + key = field.alias + if key is None or (key not in values and populate_by_name): + key = name + + if key in values: + fields_values[name] = _construct_field(value=values[key], field=field, key=key) + _fields_set.add(name) + else: + fields_values[name] = field_get_default(field) + + extra_field_type = _get_extra_fields_type(__cls) + + _extra = {} + for key, value in values.items(): + if key not in model_fields: + parsed = construct_type(value=value, type_=extra_field_type) if extra_field_type is not None else value + + if PYDANTIC_V1: + _fields_set.add(key) + fields_values[key] = parsed + else: + _extra[key] = parsed + + object.__setattr__(m, "__dict__", fields_values) + + if PYDANTIC_V1: + # init_private_attributes() does not exist in v2 + m._init_private_attributes() # type: ignore + + # copied from Pydantic v1's `construct()` method + object.__setattr__(m, "__fields_set__", _fields_set) + else: + # these properties are copied from Pydantic's `model_construct()` method + object.__setattr__(m, "__pydantic_private__", None) + object.__setattr__(m, "__pydantic_extra__", _extra) + object.__setattr__(m, "__pydantic_fields_set__", _fields_set) + + return m + + if not TYPE_CHECKING: + # type checkers incorrectly complain about this assignment + # because the type signatures are technically different + # although not in practice + model_construct = construct + + if PYDANTIC_V1: + # we define aliases for some of the new pydantic v2 methods so + # that we can just document these methods without having to specify + # a specific pydantic version as some users may not know which + # pydantic version they are currently using + + @override + def model_dump( + self, + *, + mode: Literal["json", "python"] | str = "python", + include: IncEx | None = None, + exclude: IncEx | None = None, + context: Any | None = None, + by_alias: bool | None = None, + exclude_unset: bool = False, + exclude_defaults: bool = False, + exclude_none: bool = False, + exclude_computed_fields: bool = False, + round_trip: bool = False, + warnings: bool | Literal["none", "warn", "error"] = True, + fallback: Callable[[Any], Any] | None = None, + serialize_as_any: bool = False, + ) -> dict[str, Any]: + """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump + + Generate a dictionary representation of the model, optionally specifying which fields to include or exclude. + + Args: + mode: The mode in which `to_python` should run. + If mode is 'json', the output will only contain JSON serializable types. + If mode is 'python', the output may contain non-JSON-serializable Python objects. + include: A set of fields to include in the output. + exclude: A set of fields to exclude from the output. + context: Additional context to pass to the serializer. + by_alias: Whether to use the field's alias in the dictionary key if defined. + exclude_unset: Whether to exclude fields that have not been explicitly set. + exclude_defaults: Whether to exclude fields that are set to their default value. + exclude_none: Whether to exclude fields that have a value of `None`. + exclude_computed_fields: Whether to exclude computed fields. + While this can be useful for round-tripping, it is usually recommended to use the dedicated + `round_trip` parameter instead. + round_trip: If True, dumped values should be valid as input for non-idempotent types such as Json[T]. + warnings: How to handle serialization errors. False/"none" ignores them, True/"warn" logs errors, + "error" raises a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError]. + fallback: A function to call when an unknown value is encountered. If not provided, + a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised. + serialize_as_any: Whether to serialize fields with duck-typing serialization behavior. + + Returns: + A dictionary representation of the model. + """ + if mode not in {"json", "python"}: + raise ValueError("mode must be either 'json' or 'python'") + if round_trip != False: + raise ValueError("round_trip is only supported in Pydantic v2") + if warnings != True: + raise ValueError("warnings is only supported in Pydantic v2") + if context is not None: + raise ValueError("context is only supported in Pydantic v2") + if serialize_as_any != False: + raise ValueError("serialize_as_any is only supported in Pydantic v2") + if fallback is not None: + raise ValueError("fallback is only supported in Pydantic v2") + if exclude_computed_fields != False: + raise ValueError("exclude_computed_fields is only supported in Pydantic v2") + dumped = super().dict( # pyright: ignore[reportDeprecated] + include=include, + exclude=exclude, + by_alias=by_alias if by_alias is not None else False, + exclude_unset=exclude_unset, + exclude_defaults=exclude_defaults, + exclude_none=exclude_none, + ) + + return cast("dict[str, Any]", json_safe(dumped)) if mode == "json" else dumped + + @override + def model_dump_json( + self, + *, + indent: int | None = None, + ensure_ascii: bool = False, + include: IncEx | None = None, + exclude: IncEx | None = None, + context: Any | None = None, + by_alias: bool | None = None, + exclude_unset: bool = False, + exclude_defaults: bool = False, + exclude_none: bool = False, + exclude_computed_fields: bool = False, + round_trip: bool = False, + warnings: bool | Literal["none", "warn", "error"] = True, + fallback: Callable[[Any], Any] | None = None, + serialize_as_any: bool = False, + ) -> str: + """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json + + Generates a JSON representation of the model using Pydantic's `to_json` method. + + Args: + indent: Indentation to use in the JSON output. If None is passed, the output will be compact. + include: Field(s) to include in the JSON output. Can take either a string or set of strings. + exclude: Field(s) to exclude from the JSON output. Can take either a string or set of strings. + by_alias: Whether to serialize using field aliases. + exclude_unset: Whether to exclude fields that have not been explicitly set. + exclude_defaults: Whether to exclude fields that have the default value. + exclude_none: Whether to exclude fields that have a value of `None`. + round_trip: Whether to use serialization/deserialization between JSON and class instance. + warnings: Whether to show any warnings that occurred during serialization. + + Returns: + A JSON string representation of the model. + """ + if round_trip != False: + raise ValueError("round_trip is only supported in Pydantic v2") + if warnings != True: + raise ValueError("warnings is only supported in Pydantic v2") + if context is not None: + raise ValueError("context is only supported in Pydantic v2") + if serialize_as_any != False: + raise ValueError("serialize_as_any is only supported in Pydantic v2") + if fallback is not None: + raise ValueError("fallback is only supported in Pydantic v2") + if ensure_ascii != False: + raise ValueError("ensure_ascii is only supported in Pydantic v2") + if exclude_computed_fields != False: + raise ValueError("exclude_computed_fields is only supported in Pydantic v2") + return super().json( # type: ignore[reportDeprecated] + indent=indent, + include=include, + exclude=exclude, + by_alias=by_alias if by_alias is not None else False, + exclude_unset=exclude_unset, + exclude_defaults=exclude_defaults, + exclude_none=exclude_none, + ) + + +def _construct_field(value: object, field: FieldInfo, key: str) -> object: + if value is None: + return field_get_default(field) + + if PYDANTIC_V1: + type_ = cast(type, field.outer_type_) # type: ignore + else: + type_ = field.annotation # type: ignore + + if type_ is None: + raise RuntimeError(f"Unexpected field type is None for {key}") + + return construct_type(value=value, type_=type_, metadata=getattr(field, "metadata", None)) + + +def _get_extra_fields_type(cls: type[pydantic.BaseModel]) -> type | None: + if PYDANTIC_V1: + # TODO + return None + + schema = cls.__pydantic_core_schema__ + if schema["type"] == "model": + fields = schema["schema"] + if fields["type"] == "model-fields": + extras = fields.get("extras_schema") + if extras and "cls" in extras: + # mypy can't narrow the type + return extras["cls"] # type: ignore[no-any-return] + + return None + + +def is_basemodel(type_: type) -> bool: + """Returns whether or not the given type is either a `BaseModel` or a union of `BaseModel`""" + if is_union(type_): + for variant in get_args(type_): + if is_basemodel(variant): + return True + + return False + + return is_basemodel_type(type_) + + +def is_basemodel_type(type_: type) -> TypeGuard[type[BaseModel] | type[GenericModel]]: + origin = get_origin(type_) or type_ + if not inspect.isclass(origin): + return False + return issubclass(origin, BaseModel) or issubclass(origin, GenericModel) + + +def build( + base_model_cls: Callable[P, _BaseModelT], + *args: P.args, + **kwargs: P.kwargs, +) -> _BaseModelT: + """Construct a BaseModel class without validation. + + This is useful for cases where you need to instantiate a `BaseModel` + from an API response as this provides type-safe params which isn't supported + by helpers like `construct_type()`. + + ```py + build(MyModel, my_field_a="foo", my_field_b=123) + ``` + """ + if args: + raise TypeError( + "Received positional arguments which are not supported; Keyword arguments must be used instead", + ) + + return cast(_BaseModelT, construct_type(type_=base_model_cls, value=kwargs)) + + +def construct_type_unchecked(*, value: object, type_: type[_T]) -> _T: + """Loose coercion to the expected type with construction of nested values. + + Note: the returned value from this function is not guaranteed to match the + given type. + """ + return cast(_T, construct_type(value=value, type_=type_)) + + +def construct_type(*, value: object, type_: object, metadata: Optional[List[Any]] = None) -> object: + """Loose coercion to the expected type with construction of nested values. + + If the given value does not match the expected type then it is returned as-is. + """ + + # store a reference to the original type we were given before we extract any inner + # types so that we can properly resolve forward references in `TypeAliasType` annotations + original_type = None + + # we allow `object` as the input type because otherwise, passing things like + # `Literal['value']` will be reported as a type error by type checkers + type_ = cast("type[object]", type_) + if is_type_alias_type(type_): + original_type = type_ # type: ignore[unreachable] + type_ = type_.__value__ # type: ignore[unreachable] + + # unwrap `Annotated[T, ...]` -> `T` + if metadata is not None and len(metadata) > 0: + meta: tuple[Any, ...] = tuple(metadata) + elif is_annotated_type(type_): + meta = get_args(type_)[1:] + type_ = extract_type_arg(type_, 0) + else: + meta = tuple() + + # we need to use the origin class for any types that are subscripted generics + # e.g. Dict[str, object] + origin = get_origin(type_) or type_ + args = get_args(type_) + + if is_union(origin): + try: + return validate_type(type_=cast("type[object]", original_type or type_), value=value) + except Exception: + pass + + # if the type is a discriminated union then we want to construct the right variant + # in the union, even if the data doesn't match exactly, otherwise we'd break code + # that relies on the constructed class types, e.g. + # + # class FooType: + # kind: Literal['foo'] + # value: str + # + # class BarType: + # kind: Literal['bar'] + # value: int + # + # without this block, if the data we get is something like `{'kind': 'bar', 'value': 'foo'}` then + # we'd end up constructing `FooType` when it should be `BarType`. + discriminator = _build_discriminated_union_meta(union=type_, meta_annotations=meta) + if discriminator and is_mapping(value): + variant_value = value.get(discriminator.field_alias_from or discriminator.field_name) + if variant_value and isinstance(variant_value, str): + variant_type = discriminator.mapping.get(variant_value) + if variant_type: + return construct_type(type_=variant_type, value=value) + + # if the data is not valid, use the first variant that doesn't fail while deserializing + for variant in args: + try: + return construct_type(value=value, type_=variant) + except Exception: + continue + + raise RuntimeError(f"Could not convert data into a valid instance of {type_}") + + if origin == dict: + if not is_mapping(value): + return value + + _, items_type = get_args(type_) # Dict[_, items_type] + return {key: construct_type(value=item, type_=items_type) for key, item in value.items()} + + if ( + not is_literal_type(type_) + and inspect.isclass(origin) + and (issubclass(origin, BaseModel) or issubclass(origin, GenericModel)) + ): + if is_list(value): + return [cast(Any, type_).construct(**entry) if is_mapping(entry) else entry for entry in value] + + if is_mapping(value): + if issubclass(type_, BaseModel): + return type_.construct(**value) # type: ignore[arg-type] + + return cast(Any, type_).construct(**value) + + if origin == list: + if not is_list(value): + return value + + inner_type = args[0] # List[inner_type] + return [construct_type(value=entry, type_=inner_type) for entry in value] + + if origin == float: + if isinstance(value, int): + coerced = float(value) + if coerced != value: + return value + return coerced + + return value + + if type_ == datetime: + try: + return parse_datetime(value) # type: ignore + except Exception: + return value + + if type_ == date: + try: + return parse_date(value) # type: ignore + except Exception: + return value + + return value + + +@runtime_checkable +class CachedDiscriminatorType(Protocol): + __discriminator__: DiscriminatorDetails + + +DISCRIMINATOR_CACHE: weakref.WeakKeyDictionary[type, DiscriminatorDetails] = weakref.WeakKeyDictionary() + + +class DiscriminatorDetails: + field_name: str + """The name of the discriminator field in the variant class, e.g. + + ```py + class Foo(BaseModel): + type: Literal['foo'] + ``` + + Will result in field_name='type' + """ + + field_alias_from: str | None + """The name of the discriminator field in the API response, e.g. + + ```py + class Foo(BaseModel): + type: Literal['foo'] = Field(alias='type_from_api') + ``` + + Will result in field_alias_from='type_from_api' + """ + + mapping: dict[str, type] + """Mapping of discriminator value to variant type, e.g. + + {'foo': FooVariant, 'bar': BarVariant} + """ + + def __init__( + self, + *, + mapping: dict[str, type], + discriminator_field: str, + discriminator_alias: str | None, + ) -> None: + self.mapping = mapping + self.field_name = discriminator_field + self.field_alias_from = discriminator_alias + + +def _build_discriminated_union_meta(*, union: type, meta_annotations: tuple[Any, ...]) -> DiscriminatorDetails | None: + cached = DISCRIMINATOR_CACHE.get(union) + if cached is not None: + return cached + + discriminator_field_name: str | None = None + + for annotation in meta_annotations: + if isinstance(annotation, PropertyInfo) and annotation.discriminator is not None: + discriminator_field_name = annotation.discriminator + break + + if not discriminator_field_name: + return None + + mapping: dict[str, type] = {} + discriminator_alias: str | None = None + + for variant in get_args(union): + variant = strip_annotated_type(variant) + if is_basemodel_type(variant): + if PYDANTIC_V1: + field_info = cast("dict[str, FieldInfo]", variant.__fields__).get(discriminator_field_name) # pyright: ignore[reportDeprecated, reportUnnecessaryCast] + if not field_info: + continue + + # Note: if one variant defines an alias then they all should + discriminator_alias = field_info.alias + + if (annotation := getattr(field_info, "annotation", None)) and is_literal_type(annotation): + for entry in get_args(annotation): + if isinstance(entry, str): + mapping[entry] = variant + else: + field = _extract_field_schema_pv2(variant, discriminator_field_name) + if not field: + continue + + # Note: if one variant defines an alias then they all should + discriminator_alias = field.get("serialization_alias") + + field_schema = field["schema"] + + if field_schema["type"] == "literal": + for entry in cast("LiteralSchema", field_schema)["expected"]: + if isinstance(entry, str): + mapping[entry] = variant + + if not mapping: + return None + + details = DiscriminatorDetails( + mapping=mapping, + discriminator_field=discriminator_field_name, + discriminator_alias=discriminator_alias, + ) + DISCRIMINATOR_CACHE.setdefault(union, details) + return details + + +def _extract_field_schema_pv2(model: type[BaseModel], field_name: str) -> ModelField | None: + schema = model.__pydantic_core_schema__ + if schema["type"] == "definitions": + schema = schema["schema"] + + if schema["type"] != "model": + return None + + schema = cast("ModelSchema", schema) + fields_schema = schema["schema"] + if fields_schema["type"] != "model-fields": + return None + + fields_schema = cast("ModelFieldsSchema", fields_schema) + field = fields_schema["fields"].get(field_name) + if not field: + return None + + return cast("ModelField", field) # pyright: ignore[reportUnnecessaryCast] + + +def validate_type(*, type_: type[_T], value: object) -> _T: + """Strict validation that the given value matches the expected type""" + if inspect.isclass(type_) and issubclass(type_, pydantic.BaseModel): + return cast(_T, parse_obj(type_, value)) + + return cast(_T, _validate_non_model_type(type_=type_, value=value)) + + +def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None: + """Add a pydantic config for the given type. + + Note: this is a no-op on Pydantic v1. + """ + setattr(typ, "__pydantic_config__", config) # noqa: B010 + + +# our use of subclassing here causes weirdness for type checkers, +# so we just pretend that we don't subclass +if TYPE_CHECKING: + GenericModel = BaseModel +else: + + class GenericModel(BaseGenericModel, BaseModel): + pass + + +if not PYDANTIC_V1: + from pydantic import TypeAdapter as _TypeAdapter + + _CachedTypeAdapter = cast("TypeAdapter[object]", lru_cache(maxsize=None)(_TypeAdapter)) + + if TYPE_CHECKING: + from pydantic import TypeAdapter + else: + TypeAdapter = _CachedTypeAdapter + + def _validate_non_model_type(*, type_: type[_T], value: object) -> _T: + return TypeAdapter(type_).validate_python(value) + +elif not TYPE_CHECKING: # TODO: condition is weird + + class RootModel(GenericModel, Generic[_T]): + """Used as a placeholder to easily convert runtime types to a Pydantic format + to provide validation. + + For example: + ```py + validated = RootModel[int](__root__="5").__root__ + # validated: 5 + ``` + """ + + __root__: _T + + def _validate_non_model_type(*, type_: type[_T], value: object) -> _T: + model = _create_pydantic_model(type_).validate(value) + return cast(_T, model.__root__) + + def _create_pydantic_model(type_: _T) -> Type[RootModel[_T]]: + return RootModel[type_] # type: ignore + + +class FinalRequestOptionsInput(TypedDict, total=False): + method: Required[str] + url: Required[str] + params: Query + headers: Headers + max_retries: int + timeout: float | Timeout | None + files: HttpxRequestFiles | None + idempotency_key: str + json_data: Body + extra_json: AnyMapping + follow_redirects: bool + + +@final +class FinalRequestOptions(pydantic.BaseModel): + method: str + url: str + params: Query = {} + headers: Union[Headers, NotGiven] = NotGiven() + max_retries: Union[int, NotGiven] = NotGiven() + timeout: Union[float, Timeout, None, NotGiven] = NotGiven() + files: Union[HttpxRequestFiles, None] = None + idempotency_key: Union[str, None] = None + post_parser: Union[Callable[[Any], Any], NotGiven] = NotGiven() + follow_redirects: Union[bool, None] = None + + # It should be noted that we cannot use `json` here as that would override + # a BaseModel method in an incompatible fashion. + json_data: Union[Body, None] = None + extra_json: Union[AnyMapping, None] = None + + if PYDANTIC_V1: + + class Config(pydantic.BaseConfig): # pyright: ignore[reportDeprecated] + arbitrary_types_allowed: bool = True + else: + model_config: ClassVar[ConfigDict] = ConfigDict(arbitrary_types_allowed=True) + + def get_max_retries(self, max_retries: int) -> int: + if isinstance(self.max_retries, NotGiven): + return max_retries + return self.max_retries + + def _strip_raw_response_header(self) -> None: + if not is_given(self.headers): + return + + if self.headers.get(RAW_RESPONSE_HEADER): + self.headers = {**self.headers} + self.headers.pop(RAW_RESPONSE_HEADER) + + # override the `construct` method so that we can run custom transformations. + # this is necessary as we don't want to do any actual runtime type checking + # (which means we can't use validators) but we do want to ensure that `NotGiven` + # values are not present + # + # type ignore required because we're adding explicit types to `**values` + @classmethod + def construct( # type: ignore + cls, + _fields_set: set[str] | None = None, + **values: Unpack[FinalRequestOptionsInput], + ) -> FinalRequestOptions: + kwargs: dict[str, Any] = { + # we unconditionally call `strip_not_given` on any value + # as it will just ignore any non-mapping types + key: strip_not_given(value) + for key, value in values.items() + } + if PYDANTIC_V1: + return cast(FinalRequestOptions, super().construct(_fields_set, **kwargs)) # pyright: ignore[reportDeprecated] + return super().model_construct(_fields_set, **kwargs) + + if not TYPE_CHECKING: + # type checkers incorrectly complain about this assignment + model_construct = construct diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_qs.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_qs.py new file mode 100644 index 0000000000000000000000000000000000000000..ada6fd3f7215975eba896b8dd19c9825ce3179df --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_qs.py @@ -0,0 +1,150 @@ +from __future__ import annotations + +from typing import Any, List, Tuple, Union, Mapping, TypeVar +from urllib.parse import parse_qs, urlencode +from typing_extensions import Literal, get_args + +from ._types import NotGiven, not_given +from ._utils import flatten + +_T = TypeVar("_T") + + +ArrayFormat = Literal["comma", "repeat", "indices", "brackets"] +NestedFormat = Literal["dots", "brackets"] + +PrimitiveData = Union[str, int, float, bool, None] +# this should be Data = Union[PrimitiveData, "List[Data]", "Tuple[Data]", "Mapping[str, Data]"] +# https://github.com/microsoft/pyright/issues/3555 +Data = Union[PrimitiveData, List[Any], Tuple[Any], "Mapping[str, Any]"] +Params = Mapping[str, Data] + + +class Querystring: + array_format: ArrayFormat + nested_format: NestedFormat + + def __init__( + self, + *, + array_format: ArrayFormat = "repeat", + nested_format: NestedFormat = "brackets", + ) -> None: + self.array_format = array_format + self.nested_format = nested_format + + def parse(self, query: str) -> Mapping[str, object]: + # Note: custom format syntax is not supported yet + return parse_qs(query) + + def stringify( + self, + params: Params, + *, + array_format: ArrayFormat | NotGiven = not_given, + nested_format: NestedFormat | NotGiven = not_given, + ) -> str: + return urlencode( + self.stringify_items( + params, + array_format=array_format, + nested_format=nested_format, + ) + ) + + def stringify_items( + self, + params: Params, + *, + array_format: ArrayFormat | NotGiven = not_given, + nested_format: NestedFormat | NotGiven = not_given, + ) -> list[tuple[str, str]]: + opts = Options( + qs=self, + array_format=array_format, + nested_format=nested_format, + ) + return flatten([self._stringify_item(key, value, opts) for key, value in params.items()]) + + def _stringify_item( + self, + key: str, + value: Data, + opts: Options, + ) -> list[tuple[str, str]]: + if isinstance(value, Mapping): + items: list[tuple[str, str]] = [] + nested_format = opts.nested_format + for subkey, subvalue in value.items(): + items.extend( + self._stringify_item( + # TODO: error if unknown format + f"{key}.{subkey}" if nested_format == "dots" else f"{key}[{subkey}]", + subvalue, + opts, + ) + ) + return items + + if isinstance(value, (list, tuple)): + array_format = opts.array_format + if array_format == "comma": + return [ + ( + key, + ",".join(self._primitive_value_to_str(item) for item in value if item is not None), + ), + ] + elif array_format == "repeat": + items = [] + for item in value: + items.extend(self._stringify_item(key, item, opts)) + return items + elif array_format == "indices": + raise NotImplementedError("The array indices format is not supported yet") + elif array_format == "brackets": + items = [] + key = key + "[]" + for item in value: + items.extend(self._stringify_item(key, item, opts)) + return items + else: + raise NotImplementedError( + f"Unknown array_format value: {array_format}, choose from {', '.join(get_args(ArrayFormat))}" + ) + + serialised = self._primitive_value_to_str(value) + if not serialised: + return [] + return [(key, serialised)] + + def _primitive_value_to_str(self, value: PrimitiveData) -> str: + # copied from httpx + if value is True: + return "true" + elif value is False: + return "false" + elif value is None: + return "" + return str(value) + + +_qs = Querystring() +parse = _qs.parse +stringify = _qs.stringify +stringify_items = _qs.stringify_items + + +class Options: + array_format: ArrayFormat + nested_format: NestedFormat + + def __init__( + self, + qs: Querystring = _qs, + *, + array_format: ArrayFormat | NotGiven = not_given, + nested_format: NestedFormat | NotGiven = not_given, + ) -> None: + self.array_format = qs.array_format if isinstance(array_format, NotGiven) else array_format + self.nested_format = qs.nested_format if isinstance(nested_format, NotGiven) else nested_format diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_resource.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_resource.py new file mode 100644 index 0000000000000000000000000000000000000000..fc39158dffcf75a42c570fba4f2cb35b221cff52 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_resource.py @@ -0,0 +1,43 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +import time +from typing import TYPE_CHECKING + +import anyio + +if TYPE_CHECKING: + from ._client import Groq, AsyncGroq + + +class SyncAPIResource: + _client: Groq + + def __init__(self, client: Groq) -> None: + self._client = client + self._get = client.get + self._post = client.post + self._patch = client.patch + self._put = client.put + self._delete = client.delete + self._get_api_list = client.get_api_list + + def _sleep(self, seconds: float) -> None: + time.sleep(seconds) + + +class AsyncAPIResource: + _client: AsyncGroq + + def __init__(self, client: AsyncGroq) -> None: + self._client = client + self._get = client.get + self._post = client.post + self._patch = client.patch + self._put = client.put + self._delete = client.delete + self._get_api_list = client.get_api_list + + async def _sleep(self, seconds: float) -> None: + await anyio.sleep(seconds) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_response.py new file mode 100644 index 0000000000000000000000000000000000000000..15e874e63406225e1bad33a6f7200130f1e254ff --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_response.py @@ -0,0 +1,830 @@ +from __future__ import annotations + +import os +import inspect +import logging +import datetime +import functools +from types import TracebackType +from typing import ( + TYPE_CHECKING, + Any, + Union, + Generic, + TypeVar, + Callable, + Iterator, + AsyncIterator, + cast, + overload, +) +from typing_extensions import Awaitable, ParamSpec, override, get_origin + +import anyio +import httpx +import pydantic + +from ._types import NoneType +from ._utils import is_given, extract_type_arg, is_annotated_type, is_type_alias_type, extract_type_var_from_base +from ._models import BaseModel, is_basemodel +from ._constants import RAW_RESPONSE_HEADER, OVERRIDE_CAST_TO_HEADER +from ._streaming import Stream, AsyncStream, is_stream_class_type, extract_stream_chunk_type +from ._exceptions import GroqError, APIResponseValidationError + +if TYPE_CHECKING: + from ._models import FinalRequestOptions + from ._base_client import BaseClient + + +P = ParamSpec("P") +R = TypeVar("R") +_T = TypeVar("_T") +_APIResponseT = TypeVar("_APIResponseT", bound="APIResponse[Any]") +_AsyncAPIResponseT = TypeVar("_AsyncAPIResponseT", bound="AsyncAPIResponse[Any]") + +log: logging.Logger = logging.getLogger(__name__) + + +class BaseAPIResponse(Generic[R]): + _cast_to: type[R] + _client: BaseClient[Any, Any] + _parsed_by_type: dict[type[Any], Any] + _is_sse_stream: bool + _stream_cls: type[Stream[Any]] | type[AsyncStream[Any]] | None + _options: FinalRequestOptions + + http_response: httpx.Response + + retries_taken: int + """The number of retries made. If no retries happened this will be `0`""" + + def __init__( + self, + *, + raw: httpx.Response, + cast_to: type[R], + client: BaseClient[Any, Any], + stream: bool, + stream_cls: type[Stream[Any]] | type[AsyncStream[Any]] | None, + options: FinalRequestOptions, + retries_taken: int = 0, + ) -> None: + self._cast_to = cast_to + self._client = client + self._parsed_by_type = {} + self._is_sse_stream = stream + self._stream_cls = stream_cls + self._options = options + self.http_response = raw + self.retries_taken = retries_taken + + @property + def headers(self) -> httpx.Headers: + return self.http_response.headers + + @property + def http_request(self) -> httpx.Request: + """Returns the httpx Request instance associated with the current response.""" + return self.http_response.request + + @property + def status_code(self) -> int: + return self.http_response.status_code + + @property + def url(self) -> httpx.URL: + """Returns the URL for which the request was made.""" + return self.http_response.url + + @property + def method(self) -> str: + return self.http_request.method + + @property + def http_version(self) -> str: + return self.http_response.http_version + + @property + def elapsed(self) -> datetime.timedelta: + """The time taken for the complete request/response cycle to complete.""" + return self.http_response.elapsed + + @property + def is_closed(self) -> bool: + """Whether or not the response body has been closed. + + If this is False then there is response data that has not been read yet. + You must either fully consume the response body or call `.close()` + before discarding the response to prevent resource leaks. + """ + return self.http_response.is_closed + + @override + def __repr__(self) -> str: + return ( + f"<{self.__class__.__name__} [{self.status_code} {self.http_response.reason_phrase}] type={self._cast_to}>" + ) + + def _parse(self, *, to: type[_T] | None = None) -> R | _T: + cast_to = to if to is not None else self._cast_to + + # unwrap `TypeAlias('Name', T)` -> `T` + if is_type_alias_type(cast_to): + cast_to = cast_to.__value__ # type: ignore[unreachable] + + # unwrap `Annotated[T, ...]` -> `T` + if cast_to and is_annotated_type(cast_to): + cast_to = extract_type_arg(cast_to, 0) + + origin = get_origin(cast_to) or cast_to + + if self._is_sse_stream: + if to: + if not is_stream_class_type(to): + raise TypeError(f"Expected custom parse type to be a subclass of {Stream} or {AsyncStream}") + + return cast( + _T, + to( + cast_to=extract_stream_chunk_type( + to, + failure_message="Expected custom stream type to be passed with a type argument, e.g. Stream[ChunkType]", + ), + response=self.http_response, + client=cast(Any, self._client), + ), + ) + + if self._stream_cls: + return cast( + R, + self._stream_cls( + cast_to=extract_stream_chunk_type(self._stream_cls), + response=self.http_response, + client=cast(Any, self._client), + ), + ) + + stream_cls = cast("type[Stream[Any]] | type[AsyncStream[Any]] | None", self._client._default_stream_cls) + if stream_cls is None: + raise MissingStreamClassError() + + return cast( + R, + stream_cls( + cast_to=cast_to, + response=self.http_response, + client=cast(Any, self._client), + ), + ) + + if cast_to is NoneType: + return cast(R, None) + + response = self.http_response + if cast_to == str: + return cast(R, response.text) + + if cast_to == bytes: + return cast(R, response.content) + + if cast_to == int: + return cast(R, int(response.text)) + + if cast_to == float: + return cast(R, float(response.text)) + + if cast_to == bool: + return cast(R, response.text.lower() == "true") + + if origin == APIResponse: + raise RuntimeError("Unexpected state - cast_to is `APIResponse`") + + if inspect.isclass(origin) and issubclass(origin, httpx.Response): + # Because of the invariance of our ResponseT TypeVar, users can subclass httpx.Response + # and pass that class to our request functions. We cannot change the variance to be either + # covariant or contravariant as that makes our usage of ResponseT illegal. We could construct + # the response class ourselves but that is something that should be supported directly in httpx + # as it would be easy to incorrectly construct the Response object due to the multitude of arguments. + if cast_to != httpx.Response: + raise ValueError(f"Subclasses of httpx.Response cannot be passed to `cast_to`") + return cast(R, response) + + if ( + inspect.isclass( + origin # pyright: ignore[reportUnknownArgumentType] + ) + and not issubclass(origin, BaseModel) + and issubclass(origin, pydantic.BaseModel) + ): + raise TypeError("Pydantic models must subclass our base model type, e.g. `from groq import BaseModel`") + + if ( + cast_to is not object + and not origin is list + and not origin is dict + and not origin is Union + and not issubclass(origin, BaseModel) + ): + raise RuntimeError( + f"Unsupported type, expected {cast_to} to be a subclass of {BaseModel}, {dict}, {list}, {Union}, {NoneType}, {str} or {httpx.Response}." + ) + + # split is required to handle cases where additional information is included + # in the response, e.g. application/json; charset=utf-8 + content_type, *_ = response.headers.get("content-type", "*").split(";") + if not content_type.endswith("json"): + if is_basemodel(cast_to): + try: + data = response.json() + except Exception as exc: + log.debug("Could not read JSON from response data due to %s - %s", type(exc), exc) + else: + return self._client._process_response_data( + data=data, + cast_to=cast_to, # type: ignore + response=response, + ) + + if self._client._strict_response_validation: + raise APIResponseValidationError( + response=response, + message=f"Expected Content-Type response header to be `application/json` but received `{content_type}` instead.", + body=response.text, + ) + + # If the API responds with content that isn't JSON then we just return + # the (decoded) text without performing any parsing so that you can still + # handle the response however you need to. + return response.text # type: ignore + + data = response.json() + + return self._client._process_response_data( + data=data, + cast_to=cast_to, # type: ignore + response=response, + ) + + +class APIResponse(BaseAPIResponse[R]): + @overload + def parse(self, *, to: type[_T]) -> _T: ... + + @overload + def parse(self) -> R: ... + + def parse(self, *, to: type[_T] | None = None) -> R | _T: + """Returns the rich python representation of this response's data. + + For lower-level control, see `.read()`, `.json()`, `.iter_bytes()`. + + You can customise the type that the response is parsed into through + the `to` argument, e.g. + + ```py + from groq import BaseModel + + + class MyModel(BaseModel): + foo: str + + + obj = response.parse(to=MyModel) + print(obj.foo) + ``` + + We support parsing: + - `BaseModel` + - `dict` + - `list` + - `Union` + - `str` + - `int` + - `float` + - `httpx.Response` + """ + cache_key = to if to is not None else self._cast_to + cached = self._parsed_by_type.get(cache_key) + if cached is not None: + return cached # type: ignore[no-any-return] + + if not self._is_sse_stream: + self.read() + + parsed = self._parse(to=to) + if is_given(self._options.post_parser): + parsed = self._options.post_parser(parsed) + + self._parsed_by_type[cache_key] = parsed + return parsed + + def read(self) -> bytes: + """Read and return the binary response content.""" + try: + return self.http_response.read() + except httpx.StreamConsumed as exc: + # The default error raised by httpx isn't very + # helpful in our case so we re-raise it with + # a different error message. + raise StreamAlreadyConsumed() from exc + + def text(self) -> str: + """Read and decode the response content into a string.""" + self.read() + return self.http_response.text + + def json(self) -> object: + """Read and decode the JSON response content.""" + self.read() + return self.http_response.json() + + def close(self) -> None: + """Close the response and release the connection. + + Automatically called if the response body is read to completion. + """ + self.http_response.close() + + def iter_bytes(self, chunk_size: int | None = None) -> Iterator[bytes]: + """ + A byte-iterator over the decoded response content. + + This automatically handles gzip, deflate and brotli encoded responses. + """ + for chunk in self.http_response.iter_bytes(chunk_size): + yield chunk + + def iter_text(self, chunk_size: int | None = None) -> Iterator[str]: + """A str-iterator over the decoded response content + that handles both gzip, deflate, etc but also detects the content's + string encoding. + """ + for chunk in self.http_response.iter_text(chunk_size): + yield chunk + + def iter_lines(self) -> Iterator[str]: + """Like `iter_text()` but will only yield chunks for each line""" + for chunk in self.http_response.iter_lines(): + yield chunk + + +class AsyncAPIResponse(BaseAPIResponse[R]): + @overload + async def parse(self, *, to: type[_T]) -> _T: ... + + @overload + async def parse(self) -> R: ... + + async def parse(self, *, to: type[_T] | None = None) -> R | _T: + """Returns the rich python representation of this response's data. + + For lower-level control, see `.read()`, `.json()`, `.iter_bytes()`. + + You can customise the type that the response is parsed into through + the `to` argument, e.g. + + ```py + from groq import BaseModel + + + class MyModel(BaseModel): + foo: str + + + obj = response.parse(to=MyModel) + print(obj.foo) + ``` + + We support parsing: + - `BaseModel` + - `dict` + - `list` + - `Union` + - `str` + - `httpx.Response` + """ + cache_key = to if to is not None else self._cast_to + cached = self._parsed_by_type.get(cache_key) + if cached is not None: + return cached # type: ignore[no-any-return] + + if not self._is_sse_stream: + await self.read() + + parsed = self._parse(to=to) + if is_given(self._options.post_parser): + parsed = self._options.post_parser(parsed) + + self._parsed_by_type[cache_key] = parsed + return parsed + + async def read(self) -> bytes: + """Read and return the binary response content.""" + try: + return await self.http_response.aread() + except httpx.StreamConsumed as exc: + # the default error raised by httpx isn't very + # helpful in our case so we re-raise it with + # a different error message + raise StreamAlreadyConsumed() from exc + + async def text(self) -> str: + """Read and decode the response content into a string.""" + await self.read() + return self.http_response.text + + async def json(self) -> object: + """Read and decode the JSON response content.""" + await self.read() + return self.http_response.json() + + async def close(self) -> None: + """Close the response and release the connection. + + Automatically called if the response body is read to completion. + """ + await self.http_response.aclose() + + async def iter_bytes(self, chunk_size: int | None = None) -> AsyncIterator[bytes]: + """ + A byte-iterator over the decoded response content. + + This automatically handles gzip, deflate and brotli encoded responses. + """ + async for chunk in self.http_response.aiter_bytes(chunk_size): + yield chunk + + async def iter_text(self, chunk_size: int | None = None) -> AsyncIterator[str]: + """A str-iterator over the decoded response content + that handles both gzip, deflate, etc but also detects the content's + string encoding. + """ + async for chunk in self.http_response.aiter_text(chunk_size): + yield chunk + + async def iter_lines(self) -> AsyncIterator[str]: + """Like `iter_text()` but will only yield chunks for each line""" + async for chunk in self.http_response.aiter_lines(): + yield chunk + + +class BinaryAPIResponse(APIResponse[bytes]): + """Subclass of APIResponse providing helpers for dealing with binary data. + + Note: If you want to stream the response data instead of eagerly reading it + all at once then you should use `.with_streaming_response` when making + the API request, e.g. `.with_streaming_response.get_binary_response()` + """ + + def write_to_file( + self, + file: str | os.PathLike[str], + ) -> None: + """Write the output to the given file. + + Accepts a filename or any path-like object, e.g. pathlib.Path + + Note: if you want to stream the data to the file instead of writing + all at once then you should use `.with_streaming_response` when making + the API request, e.g. `.with_streaming_response.get_binary_response()` + """ + with open(file, mode="wb") as f: + for data in self.iter_bytes(): + f.write(data) + + +class AsyncBinaryAPIResponse(AsyncAPIResponse[bytes]): + """Subclass of APIResponse providing helpers for dealing with binary data. + + Note: If you want to stream the response data instead of eagerly reading it + all at once then you should use `.with_streaming_response` when making + the API request, e.g. `.with_streaming_response.get_binary_response()` + """ + + async def write_to_file( + self, + file: str | os.PathLike[str], + ) -> None: + """Write the output to the given file. + + Accepts a filename or any path-like object, e.g. pathlib.Path + + Note: if you want to stream the data to the file instead of writing + all at once then you should use `.with_streaming_response` when making + the API request, e.g. `.with_streaming_response.get_binary_response()` + """ + path = anyio.Path(file) + async with await path.open(mode="wb") as f: + async for data in self.iter_bytes(): + await f.write(data) + + +class StreamedBinaryAPIResponse(APIResponse[bytes]): + def stream_to_file( + self, + file: str | os.PathLike[str], + *, + chunk_size: int | None = None, + ) -> None: + """Streams the output to the given file. + + Accepts a filename or any path-like object, e.g. pathlib.Path + """ + with open(file, mode="wb") as f: + for data in self.iter_bytes(chunk_size): + f.write(data) + + +class AsyncStreamedBinaryAPIResponse(AsyncAPIResponse[bytes]): + async def stream_to_file( + self, + file: str | os.PathLike[str], + *, + chunk_size: int | None = None, + ) -> None: + """Streams the output to the given file. + + Accepts a filename or any path-like object, e.g. pathlib.Path + """ + path = anyio.Path(file) + async with await path.open(mode="wb") as f: + async for data in self.iter_bytes(chunk_size): + await f.write(data) + + +class MissingStreamClassError(TypeError): + def __init__(self) -> None: + super().__init__( + "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `groq._streaming` for reference", + ) + + +class StreamAlreadyConsumed(GroqError): + """ + Attempted to read or stream content, but the content has already + been streamed. + + This can happen if you use a method like `.iter_lines()` and then attempt + to read th entire response body afterwards, e.g. + + ```py + response = await client.post(...) + async for line in response.iter_lines(): + ... # do something with `line` + + content = await response.read() + # ^ error + ``` + + If you want this behaviour you'll need to either manually accumulate the response + content or call `await response.read()` before iterating over the stream. + """ + + def __init__(self) -> None: + message = ( + "Attempted to read or stream some content, but the content has " + "already been streamed. " + "This could be due to attempting to stream the response " + "content more than once." + "\n\n" + "You can fix this by manually accumulating the response content while streaming " + "or by calling `.read()` before starting to stream." + ) + super().__init__(message) + + +class ResponseContextManager(Generic[_APIResponseT]): + """Context manager for ensuring that a request is not made + until it is entered and that the response will always be closed + when the context manager exits + """ + + def __init__(self, request_func: Callable[[], _APIResponseT]) -> None: + self._request_func = request_func + self.__response: _APIResponseT | None = None + + def __enter__(self) -> _APIResponseT: + self.__response = self._request_func() + return self.__response + + def __exit__( + self, + exc_type: type[BaseException] | None, + exc: BaseException | None, + exc_tb: TracebackType | None, + ) -> None: + if self.__response is not None: + self.__response.close() + + +class AsyncResponseContextManager(Generic[_AsyncAPIResponseT]): + """Context manager for ensuring that a request is not made + until it is entered and that the response will always be closed + when the context manager exits + """ + + def __init__(self, api_request: Awaitable[_AsyncAPIResponseT]) -> None: + self._api_request = api_request + self.__response: _AsyncAPIResponseT | None = None + + async def __aenter__(self) -> _AsyncAPIResponseT: + self.__response = await self._api_request + return self.__response + + async def __aexit__( + self, + exc_type: type[BaseException] | None, + exc: BaseException | None, + exc_tb: TracebackType | None, + ) -> None: + if self.__response is not None: + await self.__response.close() + + +def to_streamed_response_wrapper(func: Callable[P, R]) -> Callable[P, ResponseContextManager[APIResponse[R]]]: + """Higher order function that takes one of our bound API methods and wraps it + to support streaming and returning the raw `APIResponse` object directly. + """ + + @functools.wraps(func) + def wrapped(*args: P.args, **kwargs: P.kwargs) -> ResponseContextManager[APIResponse[R]]: + extra_headers: dict[str, str] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "stream" + + kwargs["extra_headers"] = extra_headers + + make_request = functools.partial(func, *args, **kwargs) + + return ResponseContextManager(cast(Callable[[], APIResponse[R]], make_request)) + + return wrapped + + +def async_to_streamed_response_wrapper( + func: Callable[P, Awaitable[R]], +) -> Callable[P, AsyncResponseContextManager[AsyncAPIResponse[R]]]: + """Higher order function that takes one of our bound API methods and wraps it + to support streaming and returning the raw `APIResponse` object directly. + """ + + @functools.wraps(func) + def wrapped(*args: P.args, **kwargs: P.kwargs) -> AsyncResponseContextManager[AsyncAPIResponse[R]]: + extra_headers: dict[str, str] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "stream" + + kwargs["extra_headers"] = extra_headers + + make_request = func(*args, **kwargs) + + return AsyncResponseContextManager(cast(Awaitable[AsyncAPIResponse[R]], make_request)) + + return wrapped + + +def to_custom_streamed_response_wrapper( + func: Callable[P, object], + response_cls: type[_APIResponseT], +) -> Callable[P, ResponseContextManager[_APIResponseT]]: + """Higher order function that takes one of our bound API methods and an `APIResponse` class + and wraps the method to support streaming and returning the given response class directly. + + Note: the given `response_cls` *must* be concrete, e.g. `class BinaryAPIResponse(APIResponse[bytes])` + """ + + @functools.wraps(func) + def wrapped(*args: P.args, **kwargs: P.kwargs) -> ResponseContextManager[_APIResponseT]: + extra_headers: dict[str, Any] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "stream" + extra_headers[OVERRIDE_CAST_TO_HEADER] = response_cls + + kwargs["extra_headers"] = extra_headers + + make_request = functools.partial(func, *args, **kwargs) + + return ResponseContextManager(cast(Callable[[], _APIResponseT], make_request)) + + return wrapped + + +def async_to_custom_streamed_response_wrapper( + func: Callable[P, Awaitable[object]], + response_cls: type[_AsyncAPIResponseT], +) -> Callable[P, AsyncResponseContextManager[_AsyncAPIResponseT]]: + """Higher order function that takes one of our bound API methods and an `APIResponse` class + and wraps the method to support streaming and returning the given response class directly. + + Note: the given `response_cls` *must* be concrete, e.g. `class BinaryAPIResponse(APIResponse[bytes])` + """ + + @functools.wraps(func) + def wrapped(*args: P.args, **kwargs: P.kwargs) -> AsyncResponseContextManager[_AsyncAPIResponseT]: + extra_headers: dict[str, Any] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "stream" + extra_headers[OVERRIDE_CAST_TO_HEADER] = response_cls + + kwargs["extra_headers"] = extra_headers + + make_request = func(*args, **kwargs) + + return AsyncResponseContextManager(cast(Awaitable[_AsyncAPIResponseT], make_request)) + + return wrapped + + +def to_raw_response_wrapper(func: Callable[P, R]) -> Callable[P, APIResponse[R]]: + """Higher order function that takes one of our bound API methods and wraps it + to support returning the raw `APIResponse` object directly. + """ + + @functools.wraps(func) + def wrapped(*args: P.args, **kwargs: P.kwargs) -> APIResponse[R]: + extra_headers: dict[str, str] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "raw" + + kwargs["extra_headers"] = extra_headers + + return cast(APIResponse[R], func(*args, **kwargs)) + + return wrapped + + +def async_to_raw_response_wrapper(func: Callable[P, Awaitable[R]]) -> Callable[P, Awaitable[AsyncAPIResponse[R]]]: + """Higher order function that takes one of our bound API methods and wraps it + to support returning the raw `APIResponse` object directly. + """ + + @functools.wraps(func) + async def wrapped(*args: P.args, **kwargs: P.kwargs) -> AsyncAPIResponse[R]: + extra_headers: dict[str, str] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "raw" + + kwargs["extra_headers"] = extra_headers + + return cast(AsyncAPIResponse[R], await func(*args, **kwargs)) + + return wrapped + + +def to_custom_raw_response_wrapper( + func: Callable[P, object], + response_cls: type[_APIResponseT], +) -> Callable[P, _APIResponseT]: + """Higher order function that takes one of our bound API methods and an `APIResponse` class + and wraps the method to support returning the given response class directly. + + Note: the given `response_cls` *must* be concrete, e.g. `class BinaryAPIResponse(APIResponse[bytes])` + """ + + @functools.wraps(func) + def wrapped(*args: P.args, **kwargs: P.kwargs) -> _APIResponseT: + extra_headers: dict[str, Any] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "raw" + extra_headers[OVERRIDE_CAST_TO_HEADER] = response_cls + + kwargs["extra_headers"] = extra_headers + + return cast(_APIResponseT, func(*args, **kwargs)) + + return wrapped + + +def async_to_custom_raw_response_wrapper( + func: Callable[P, Awaitable[object]], + response_cls: type[_AsyncAPIResponseT], +) -> Callable[P, Awaitable[_AsyncAPIResponseT]]: + """Higher order function that takes one of our bound API methods and an `APIResponse` class + and wraps the method to support returning the given response class directly. + + Note: the given `response_cls` *must* be concrete, e.g. `class BinaryAPIResponse(APIResponse[bytes])` + """ + + @functools.wraps(func) + def wrapped(*args: P.args, **kwargs: P.kwargs) -> Awaitable[_AsyncAPIResponseT]: + extra_headers: dict[str, Any] = {**(cast(Any, kwargs.get("extra_headers")) or {})} + extra_headers[RAW_RESPONSE_HEADER] = "raw" + extra_headers[OVERRIDE_CAST_TO_HEADER] = response_cls + + kwargs["extra_headers"] = extra_headers + + return cast(Awaitable[_AsyncAPIResponseT], func(*args, **kwargs)) + + return wrapped + + +def extract_response_type(typ: type[BaseAPIResponse[Any]]) -> type: + """Given a type like `APIResponse[T]`, returns the generic type variable `T`. + + This also handles the case where a concrete subclass is given, e.g. + ```py + class MyResponse(APIResponse[bytes]): + ... + + extract_response_type(MyResponse) -> bytes + ``` + """ + return extract_type_var_from_base( + typ, + generic_bases=cast("tuple[type, ...]", (BaseAPIResponse, APIResponse, AsyncAPIResponse)), + index=0, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_streaming.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_streaming.py new file mode 100644 index 0000000000000000000000000000000000000000..3d4e27afa5d6c083b5ea8434f592bd6d7f1eaeaa --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_streaming.py @@ -0,0 +1,408 @@ +# Note: initially copied from https://github.com/florimondmanca/httpx-sse/blob/master/src/httpx_sse/_decoders.py +from __future__ import annotations + +import json +import inspect +from types import TracebackType +from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, AsyncIterator, cast +from typing_extensions import Self, Protocol, TypeGuard, override, get_origin, runtime_checkable + +import httpx + +from ._utils import is_mapping, extract_type_var_from_base +from ._exceptions import APIError + +if TYPE_CHECKING: + from ._client import Groq, AsyncGroq + + +_T = TypeVar("_T") + + +class Stream(Generic[_T]): + """Provides the core interface to iterate over a synchronous stream response.""" + + response: httpx.Response + + _decoder: SSEBytesDecoder + + def __init__( + self, + *, + cast_to: type[_T], + response: httpx.Response, + client: Groq, + ) -> None: + self.response = response + self._cast_to = cast_to + self._client = client + self._decoder = client._make_sse_decoder() + self._iterator = self.__stream__() + + def __next__(self) -> _T: + return self._iterator.__next__() + + def __iter__(self) -> Iterator[_T]: + for item in self._iterator: + yield item + + def _iter_events(self) -> Iterator[ServerSentEvent]: + yield from self._decoder.iter_bytes(self.response.iter_bytes()) + + def __stream__(self) -> Iterator[_T]: + cast_to = cast(Any, self._cast_to) + response = self.response + process_data = self._client._process_response_data + iterator = self._iter_events() + + for sse in iterator: + if sse.data.startswith("[DONE]"): + break + + if sse.event is None: + data = sse.json() + if is_mapping(data) and data.get("error"): + message = None + error = data.get("error") + if is_mapping(error): + message = error.get("message") + if not message or not isinstance(message, str): + message = "An error occurred during streaming" + + raise APIError( + message=message, + request=self.response.request, + body=data["error"], + ) + + yield process_data(data=data, cast_to=cast_to, response=response) + + else: + data = sse.json() + + if sse.event == "error" and is_mapping(data) and data.get("error"): + message = None + error = data.get("error") + if is_mapping(error): + message = error.get("message") + if not message or not isinstance(message, str): + message = "An error occurred during streaming" + + raise APIError( + message=message, + request=self.response.request, + body=data["error"], + ) + + yield process_data(data={"data": data, "event": sse.event}, cast_to=cast_to, response=response) + # The stream needs to be fully consumed to close the response + for _sse in iterator: + ... + + def __enter__(self) -> Self: + return self + + def __exit__( + self, + exc_type: type[BaseException] | None, + exc: BaseException | None, + exc_tb: TracebackType | None, + ) -> None: + self.close() + + def close(self) -> None: + """ + Close the response and release the connection. + + Automatically called if the response body is read to completion. + """ + self.response.close() + + +class AsyncStream(Generic[_T]): + """Provides the core interface to iterate over an asynchronous stream response.""" + + response: httpx.Response + + _decoder: SSEDecoder | SSEBytesDecoder + + def __init__( + self, + *, + cast_to: type[_T], + response: httpx.Response, + client: AsyncGroq, + ) -> None: + self.response = response + self._cast_to = cast_to + self._client = client + self._decoder = client._make_sse_decoder() + self._iterator = self.__stream__() + + async def __anext__(self) -> _T: + return await self._iterator.__anext__() + + async def __aiter__(self) -> AsyncIterator[_T]: + async for item in self._iterator: + yield item + + async def _iter_events(self) -> AsyncIterator[ServerSentEvent]: + async for sse in self._decoder.aiter_bytes(self.response.aiter_bytes()): + yield sse + + async def __stream__(self) -> AsyncIterator[_T]: + cast_to = cast(Any, self._cast_to) + response = self.response + process_data = self._client._process_response_data + iterator = self._iter_events() + + async for sse in iterator: + if sse.data.startswith("[DONE]"): + break + + if sse.event is None: + data = sse.json() + if is_mapping(data) and data.get("error"): + message = None + error = data.get("error") + if is_mapping(error): + message = error.get("message") + if not message or not isinstance(message, str): + message = "An error occurred during streaming" + + raise APIError( + message=message, + request=self.response.request, + body=data["error"], + ) + + yield process_data(data=data, cast_to=cast_to, response=response) + + else: + data = sse.json() + + if sse.event == "error" and is_mapping(data) and data.get("error"): + message = None + error = data.get("error") + if is_mapping(error): + message = error.get("message") + if not message or not isinstance(message, str): + message = "An error occurred during streaming" + + raise APIError( + message=message, + request=self.response.request, + body=data["error"], + ) + + yield process_data(data={"data": data, "event": sse.event}, cast_to=cast_to, response=response) + # The stream needs to be fully consumed to close the response + async for _sse in iterator: + ... + + async def __aenter__(self) -> Self: + return self + + async def __aexit__( + self, + exc_type: type[BaseException] | None, + exc: BaseException | None, + exc_tb: TracebackType | None, + ) -> None: + await self.close() + + async def close(self) -> None: + """ + Close the response and release the connection. + + Automatically called if the response body is read to completion. + """ + await self.response.aclose() + + +class ServerSentEvent: + def __init__( + self, + *, + event: str | None = None, + data: str | None = None, + id: str | None = None, + retry: int | None = None, + ) -> None: + if data is None: + data = "" + + self._id = id + self._data = data + self._event = event or None + self._retry = retry + + @property + def event(self) -> str | None: + return self._event + + @property + def id(self) -> str | None: + return self._id + + @property + def retry(self) -> int | None: + return self._retry + + @property + def data(self) -> str: + return self._data + + def json(self) -> Any: + return json.loads(self.data) + + @override + def __repr__(self) -> str: + return f"ServerSentEvent(event={self.event}, data={self.data}, id={self.id}, retry={self.retry})" + + +class SSEDecoder: + _data: list[str] + _event: str | None + _retry: int | None + _last_event_id: str | None + + def __init__(self) -> None: + self._event = None + self._data = [] + self._last_event_id = None + self._retry = None + + def iter_bytes(self, iterator: Iterator[bytes]) -> Iterator[ServerSentEvent]: + """Given an iterator that yields raw binary data, iterate over it & yield every event encountered""" + for chunk in self._iter_chunks(iterator): + # Split before decoding so splitlines() only uses \r and \n + for raw_line in chunk.splitlines(): + line = raw_line.decode("utf-8") + sse = self.decode(line) + if sse: + yield sse + + def _iter_chunks(self, iterator: Iterator[bytes]) -> Iterator[bytes]: + """Given an iterator that yields raw binary data, iterate over it and yield individual SSE chunks""" + data = b"" + for chunk in iterator: + for line in chunk.splitlines(keepends=True): + data += line + if data.endswith((b"\r\r", b"\n\n", b"\r\n\r\n")): + yield data + data = b"" + if data: + yield data + + async def aiter_bytes(self, iterator: AsyncIterator[bytes]) -> AsyncIterator[ServerSentEvent]: + """Given an iterator that yields raw binary data, iterate over it & yield every event encountered""" + async for chunk in self._aiter_chunks(iterator): + # Split before decoding so splitlines() only uses \r and \n + for raw_line in chunk.splitlines(): + line = raw_line.decode("utf-8") + sse = self.decode(line) + if sse: + yield sse + + async def _aiter_chunks(self, iterator: AsyncIterator[bytes]) -> AsyncIterator[bytes]: + """Given an iterator that yields raw binary data, iterate over it and yield individual SSE chunks""" + data = b"" + async for chunk in iterator: + for line in chunk.splitlines(keepends=True): + data += line + if data.endswith((b"\r\r", b"\n\n", b"\r\n\r\n")): + yield data + data = b"" + if data: + yield data + + def decode(self, line: str) -> ServerSentEvent | None: + # See: https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation # noqa: E501 + + if not line: + if not self._event and not self._data and not self._last_event_id and self._retry is None: + return None + + sse = ServerSentEvent( + event=self._event, + data="\n".join(self._data), + id=self._last_event_id, + retry=self._retry, + ) + + # NOTE: as per the SSE spec, do not reset last_event_id. + self._event = None + self._data = [] + self._retry = None + + return sse + + if line.startswith(":"): + return None + + fieldname, _, value = line.partition(":") + + if value.startswith(" "): + value = value[1:] + + if fieldname == "event": + self._event = value + elif fieldname == "data": + self._data.append(value) + elif fieldname == "id": + if "\0" in value: + pass + else: + self._last_event_id = value + elif fieldname == "retry": + try: + self._retry = int(value) + except (TypeError, ValueError): + pass + else: + pass # Field is ignored. + + return None + + +@runtime_checkable +class SSEBytesDecoder(Protocol): + def iter_bytes(self, iterator: Iterator[bytes]) -> Iterator[ServerSentEvent]: + """Given an iterator that yields raw binary data, iterate over it & yield every event encountered""" + ... + + def aiter_bytes(self, iterator: AsyncIterator[bytes]) -> AsyncIterator[ServerSentEvent]: + """Given an async iterator that yields raw binary data, iterate over it & yield every event encountered""" + ... + + +def is_stream_class_type(typ: type) -> TypeGuard[type[Stream[object]] | type[AsyncStream[object]]]: + """TypeGuard for determining whether or not the given type is a subclass of `Stream` / `AsyncStream`""" + origin = get_origin(typ) or typ + return inspect.isclass(origin) and issubclass(origin, (Stream, AsyncStream)) + + +def extract_stream_chunk_type( + stream_cls: type, + *, + failure_message: str | None = None, +) -> type: + """Given a type like `Stream[T]`, returns the generic type variable `T`. + + This also handles the case where a concrete subclass is given, e.g. + ```py + class MyStream(Stream[bytes]): + ... + + extract_stream_chunk_type(MyStream) -> bytes + ``` + """ + from ._base_client import Stream, AsyncStream + + return extract_type_var_from_base( + stream_cls, + index=0, + generic_bases=cast("tuple[type, ...]", (Stream, AsyncStream)), + failure_message=failure_message, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_types.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_types.py new file mode 100644 index 0000000000000000000000000000000000000000..e5f275e93f38fa56469d96fae87521e872247355 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_types.py @@ -0,0 +1,260 @@ +from __future__ import annotations + +from os import PathLike +from typing import ( + IO, + TYPE_CHECKING, + Any, + Dict, + List, + Type, + Tuple, + Union, + Mapping, + TypeVar, + Callable, + Iterator, + Optional, + Sequence, +) +from typing_extensions import ( + Set, + Literal, + Protocol, + TypeAlias, + TypedDict, + SupportsIndex, + overload, + override, + runtime_checkable, +) + +import httpx +import pydantic +from httpx import URL, Proxy, Timeout, Response, BaseTransport, AsyncBaseTransport + +if TYPE_CHECKING: + from ._models import BaseModel + from ._response import APIResponse, AsyncAPIResponse + +Transport = BaseTransport +AsyncTransport = AsyncBaseTransport +Query = Mapping[str, object] +Body = object +AnyMapping = Mapping[str, object] +ModelT = TypeVar("ModelT", bound=pydantic.BaseModel) +_T = TypeVar("_T") + + +# Approximates httpx internal ProxiesTypes and RequestFiles types +# while adding support for `PathLike` instances +ProxiesDict = Dict["str | URL", Union[None, str, URL, Proxy]] +ProxiesTypes = Union[str, Proxy, ProxiesDict] +if TYPE_CHECKING: + Base64FileInput = Union[IO[bytes], PathLike[str]] + FileContent = Union[IO[bytes], bytes, PathLike[str]] +else: + Base64FileInput = Union[IO[bytes], PathLike] + FileContent = Union[IO[bytes], bytes, PathLike] # PathLike is not subscriptable in Python 3.8. +FileTypes = Union[ + # file (or bytes) + FileContent, + # (filename, file (or bytes)) + Tuple[Optional[str], FileContent], + # (filename, file (or bytes), content_type) + Tuple[Optional[str], FileContent, Optional[str]], + # (filename, file (or bytes), content_type, headers) + Tuple[Optional[str], FileContent, Optional[str], Mapping[str, str]], +] +RequestFiles = Union[Mapping[str, FileTypes], Sequence[Tuple[str, FileTypes]]] + +# duplicate of the above but without our custom file support +HttpxFileContent = Union[IO[bytes], bytes] +HttpxFileTypes = Union[ + # file (or bytes) + HttpxFileContent, + # (filename, file (or bytes)) + Tuple[Optional[str], HttpxFileContent], + # (filename, file (or bytes), content_type) + Tuple[Optional[str], HttpxFileContent, Optional[str]], + # (filename, file (or bytes), content_type, headers) + Tuple[Optional[str], HttpxFileContent, Optional[str], Mapping[str, str]], +] +HttpxRequestFiles = Union[Mapping[str, HttpxFileTypes], Sequence[Tuple[str, HttpxFileTypes]]] + +# Workaround to support (cast_to: Type[ResponseT]) -> ResponseT +# where ResponseT includes `None`. In order to support directly +# passing `None`, overloads would have to be defined for every +# method that uses `ResponseT` which would lead to an unacceptable +# amount of code duplication and make it unreadable. See _base_client.py +# for example usage. +# +# This unfortunately means that you will either have +# to import this type and pass it explicitly: +# +# from groq import NoneType +# client.get('/foo', cast_to=NoneType) +# +# or build it yourself: +# +# client.get('/foo', cast_to=type(None)) +if TYPE_CHECKING: + NoneType: Type[None] +else: + NoneType = type(None) + + +class RequestOptions(TypedDict, total=False): + headers: Headers + max_retries: int + timeout: float | Timeout | None + params: Query + extra_json: AnyMapping + idempotency_key: str + follow_redirects: bool + + +# Sentinel class used until PEP 0661 is accepted +class NotGiven: + """ + For parameters with a meaningful None value, we need to distinguish between + the user explicitly passing None, and the user not passing the parameter at + all. + + User code shouldn't need to use not_given directly. + + For example: + + ```py + def create(timeout: Timeout | None | NotGiven = not_given): ... + + + create(timeout=1) # 1s timeout + create(timeout=None) # No timeout + create() # Default timeout behavior + ``` + """ + + def __bool__(self) -> Literal[False]: + return False + + @override + def __repr__(self) -> str: + return "NOT_GIVEN" + + +not_given = NotGiven() +# for backwards compatibility: +NOT_GIVEN = NotGiven() + + +class Omit: + """ + To explicitly omit something from being sent in a request, use `omit`. + + ```py + # as the default `Content-Type` header is `application/json` that will be sent + client.post("/upload/files", files={"file": b"my raw file content"}) + + # you can't explicitly override the header as it has to be dynamically generated + # to look something like: 'multipart/form-data; boundary=0d8382fcf5f8c3be01ca2e11002d2983' + client.post(..., headers={"Content-Type": "multipart/form-data"}) + + # instead you can remove the default `application/json` header by passing omit + client.post(..., headers={"Content-Type": omit}) + ``` + """ + + def __bool__(self) -> Literal[False]: + return False + + +omit = Omit() + + +@runtime_checkable +class ModelBuilderProtocol(Protocol): + @classmethod + def build( + cls: type[_T], + *, + response: Response, + data: object, + ) -> _T: ... + + +Headers = Mapping[str, Union[str, Omit]] + + +class HeadersLikeProtocol(Protocol): + def get(self, __key: str) -> str | None: ... + + +HeadersLike = Union[Headers, HeadersLikeProtocol] + +ResponseT = TypeVar( + "ResponseT", + bound=Union[ + object, + str, + None, + "BaseModel", + List[Any], + Dict[str, Any], + Response, + ModelBuilderProtocol, + "APIResponse[Any]", + "AsyncAPIResponse[Any]", + ], +) + +StrBytesIntFloat = Union[str, bytes, int, float] + +# Note: copied from Pydantic +# https://github.com/pydantic/pydantic/blob/6f31f8f68ef011f84357330186f603ff295312fd/pydantic/main.py#L79 +IncEx: TypeAlias = Union[Set[int], Set[str], Mapping[int, Union["IncEx", bool]], Mapping[str, Union["IncEx", bool]]] + +PostParser = Callable[[Any], Any] + + +@runtime_checkable +class InheritsGeneric(Protocol): + """Represents a type that has inherited from `Generic` + + The `__orig_bases__` property can be used to determine the resolved + type variable for a given base class. + """ + + __orig_bases__: tuple[_GenericAlias] + + +class _GenericAlias(Protocol): + __origin__: type[object] + + +class HttpxSendArgs(TypedDict, total=False): + auth: httpx.Auth + follow_redirects: bool + + +_T_co = TypeVar("_T_co", covariant=True) + + +if TYPE_CHECKING: + # This works because str.__contains__ does not accept object (either in typeshed or at runtime) + # https://github.com/hauntsaninja/useful_types/blob/5e9710f3875107d068e7679fd7fec9cfab0eff3b/useful_types/__init__.py#L285 + class SequenceNotStr(Protocol[_T_co]): + @overload + def __getitem__(self, index: SupportsIndex, /) -> _T_co: ... + @overload + def __getitem__(self, index: slice, /) -> Sequence[_T_co]: ... + def __contains__(self, value: object, /) -> bool: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[_T_co]: ... + def index(self, value: Any, start: int = 0, stop: int = ..., /) -> int: ... + def count(self, value: Any, /) -> int: ... + def __reversed__(self) -> Iterator[_T_co]: ... +else: + # just point this to a normal `Sequence` at runtime to avoid having to special case + # deserializing our custom sequence type + SequenceNotStr = Sequence diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..dc64e29a1c086b6f41c35d2fcf898afd88b4a581 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__init__.py @@ -0,0 +1,64 @@ +from ._sync import asyncify as asyncify +from ._proxy import LazyProxy as LazyProxy +from ._utils import ( + flatten as flatten, + is_dict as is_dict, + is_list as is_list, + is_given as is_given, + is_tuple as is_tuple, + json_safe as json_safe, + lru_cache as lru_cache, + is_mapping as is_mapping, + is_tuple_t as is_tuple_t, + is_iterable as is_iterable, + is_sequence as is_sequence, + coerce_float as coerce_float, + is_mapping_t as is_mapping_t, + removeprefix as removeprefix, + removesuffix as removesuffix, + extract_files as extract_files, + is_sequence_t as is_sequence_t, + required_args as required_args, + coerce_boolean as coerce_boolean, + coerce_integer as coerce_integer, + file_from_path as file_from_path, + strip_not_given as strip_not_given, + deepcopy_minimal as deepcopy_minimal, + get_async_library as get_async_library, + maybe_coerce_float as maybe_coerce_float, + get_required_header as get_required_header, + maybe_coerce_boolean as maybe_coerce_boolean, + maybe_coerce_integer as maybe_coerce_integer, +) +from ._compat import ( + get_args as get_args, + is_union as is_union, + get_origin as get_origin, + is_typeddict as is_typeddict, + is_literal_type as is_literal_type, +) +from ._typing import ( + is_list_type as is_list_type, + is_union_type as is_union_type, + extract_type_arg as extract_type_arg, + is_iterable_type as is_iterable_type, + is_required_type as is_required_type, + is_sequence_type as is_sequence_type, + is_annotated_type as is_annotated_type, + is_type_alias_type as is_type_alias_type, + strip_annotated_type as strip_annotated_type, + extract_type_var_from_base as extract_type_var_from_base, +) +from ._streams import consume_sync_iterator as consume_sync_iterator, consume_async_iterator as consume_async_iterator +from ._transform import ( + PropertyInfo as PropertyInfo, + transform as transform, + async_transform as async_transform, + maybe_transform as maybe_transform, + async_maybe_transform as async_maybe_transform, +) +from ._reflection import ( + function_has_argument as function_has_argument, + assert_signatures_in_sync as assert_signatures_in_sync, +) +from ._datetime_parse import parse_date as parse_date, parse_datetime as parse_datetime diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a80003a0db920753fa1386d82dd1add076ec95ef Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_compat.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_compat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aaf55a16223b4c966d47f82b39db5346bfdc865f Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_compat.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_datetime_parse.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_datetime_parse.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3296b0d4c56b0ad33a22f954fc6a0ffa6b3de3ea Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_datetime_parse.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_logs.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_logs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..177fd50d15a1555480ce7471e47b8f7179e7b49d Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_logs.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_proxy.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_proxy.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ec2b7d7adfbc3496a32f4776980a703e0df20239 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_proxy.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_reflection.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_reflection.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9746028be89e1c78d179ac543935db50cb46b93d Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_reflection.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_resources_proxy.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_resources_proxy.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a0d1e35db2058782ac7489a3405739e03523536 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_resources_proxy.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_streams.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_streams.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c09468fd900da57bd2074dcdf927e9a87f82760b Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_streams.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_sync.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_sync.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4142ee0375bf279ea2cf4b1f4257a45b8cb6f269 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_sync.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_transform.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_transform.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eb0047cd9458087e7fbe3d8bffe29dbdb0e116e6 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_transform.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_typing.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_typing.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ff6976ea887e8e51d7561e105557c49c2caa057 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_typing.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_utils.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..afee04189a544e5f8e01d0335450775df3507ff7 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/__pycache__/_utils.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_compat.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_compat.py new file mode 100644 index 0000000000000000000000000000000000000000..dd703233c56ea92d8259bb8a3e100b1da85bbe71 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_compat.py @@ -0,0 +1,45 @@ +from __future__ import annotations + +import sys +import typing_extensions +from typing import Any, Type, Union, Literal, Optional +from datetime import date, datetime +from typing_extensions import get_args as _get_args, get_origin as _get_origin + +from .._types import StrBytesIntFloat +from ._datetime_parse import parse_date as _parse_date, parse_datetime as _parse_datetime + +_LITERAL_TYPES = {Literal, typing_extensions.Literal} + + +def get_args(tp: type[Any]) -> tuple[Any, ...]: + return _get_args(tp) + + +def get_origin(tp: type[Any]) -> type[Any] | None: + return _get_origin(tp) + + +def is_union(tp: Optional[Type[Any]]) -> bool: + if sys.version_info < (3, 10): + return tp is Union # type: ignore[comparison-overlap] + else: + import types + + return tp is Union or tp is types.UnionType + + +def is_typeddict(tp: Type[Any]) -> bool: + return typing_extensions.is_typeddict(tp) + + +def is_literal_type(tp: Type[Any]) -> bool: + return get_origin(tp) in _LITERAL_TYPES + + +def parse_date(value: Union[date, StrBytesIntFloat]) -> date: + return _parse_date(value) + + +def parse_datetime(value: Union[datetime, StrBytesIntFloat]) -> datetime: + return _parse_datetime(value) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_datetime_parse.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_datetime_parse.py new file mode 100644 index 0000000000000000000000000000000000000000..7cb9d9e668c5a5efb1b12e72d115276298a70ec1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_datetime_parse.py @@ -0,0 +1,136 @@ +""" +This file contains code from https://github.com/pydantic/pydantic/blob/main/pydantic/v1/datetime_parse.py +without the Pydantic v1 specific errors. +""" + +from __future__ import annotations + +import re +from typing import Dict, Union, Optional +from datetime import date, datetime, timezone, timedelta + +from .._types import StrBytesIntFloat + +date_expr = r"(?P\d{4})-(?P\d{1,2})-(?P\d{1,2})" +time_expr = ( + r"(?P\d{1,2}):(?P\d{1,2})" + r"(?::(?P\d{1,2})(?:\.(?P\d{1,6})\d{0,6})?)?" + r"(?PZ|[+-]\d{2}(?::?\d{2})?)?$" +) + +date_re = re.compile(f"{date_expr}$") +datetime_re = re.compile(f"{date_expr}[T ]{time_expr}") + + +EPOCH = datetime(1970, 1, 1) +# if greater than this, the number is in ms, if less than or equal it's in seconds +# (in seconds this is 11th October 2603, in ms it's 20th August 1970) +MS_WATERSHED = int(2e10) +# slightly more than datetime.max in ns - (datetime.max - EPOCH).total_seconds() * 1e9 +MAX_NUMBER = int(3e20) + + +def _get_numeric(value: StrBytesIntFloat, native_expected_type: str) -> Union[None, int, float]: + if isinstance(value, (int, float)): + return value + try: + return float(value) + except ValueError: + return None + except TypeError: + raise TypeError(f"invalid type; expected {native_expected_type}, string, bytes, int or float") from None + + +def _from_unix_seconds(seconds: Union[int, float]) -> datetime: + if seconds > MAX_NUMBER: + return datetime.max + elif seconds < -MAX_NUMBER: + return datetime.min + + while abs(seconds) > MS_WATERSHED: + seconds /= 1000 + dt = EPOCH + timedelta(seconds=seconds) + return dt.replace(tzinfo=timezone.utc) + + +def _parse_timezone(value: Optional[str]) -> Union[None, int, timezone]: + if value == "Z": + return timezone.utc + elif value is not None: + offset_mins = int(value[-2:]) if len(value) > 3 else 0 + offset = 60 * int(value[1:3]) + offset_mins + if value[0] == "-": + offset = -offset + return timezone(timedelta(minutes=offset)) + else: + return None + + +def parse_datetime(value: Union[datetime, StrBytesIntFloat]) -> datetime: + """ + Parse a datetime/int/float/string and return a datetime.datetime. + + This function supports time zone offsets. When the input contains one, + the output uses a timezone with a fixed offset from UTC. + + Raise ValueError if the input is well formatted but not a valid datetime. + Raise ValueError if the input isn't well formatted. + """ + if isinstance(value, datetime): + return value + + number = _get_numeric(value, "datetime") + if number is not None: + return _from_unix_seconds(number) + + if isinstance(value, bytes): + value = value.decode() + + assert not isinstance(value, (float, int)) + + match = datetime_re.match(value) + if match is None: + raise ValueError("invalid datetime format") + + kw = match.groupdict() + if kw["microsecond"]: + kw["microsecond"] = kw["microsecond"].ljust(6, "0") + + tzinfo = _parse_timezone(kw.pop("tzinfo")) + kw_: Dict[str, Union[None, int, timezone]] = {k: int(v) for k, v in kw.items() if v is not None} + kw_["tzinfo"] = tzinfo + + return datetime(**kw_) # type: ignore + + +def parse_date(value: Union[date, StrBytesIntFloat]) -> date: + """ + Parse a date/int/float/string and return a datetime.date. + + Raise ValueError if the input is well formatted but not a valid date. + Raise ValueError if the input isn't well formatted. + """ + if isinstance(value, date): + if isinstance(value, datetime): + return value.date() + else: + return value + + number = _get_numeric(value, "date") + if number is not None: + return _from_unix_seconds(number).date() + + if isinstance(value, bytes): + value = value.decode() + + assert not isinstance(value, (float, int)) + match = date_re.match(value) + if match is None: + raise ValueError("invalid date format") + + kw = {k: int(v) for k, v in match.groupdict().items()} + + try: + return date(**kw) + except ValueError: + raise ValueError("invalid date format") from None diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_logs.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_logs.py new file mode 100644 index 0000000000000000000000000000000000000000..091217c3b995ba85e53e80d7e46db929896cc5c6 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_logs.py @@ -0,0 +1,25 @@ +import os +import logging + +logger: logging.Logger = logging.getLogger("groq") +httpx_logger: logging.Logger = logging.getLogger("httpx") + + +def _basic_config() -> None: + # e.g. [2023-10-05 14:12:26 - groq._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK" + logging.basicConfig( + format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s", + datefmt="%Y-%m-%d %H:%M:%S", + ) + + +def setup_logging() -> None: + env = os.environ.get("GROQ_LOG") + if env == "debug": + _basic_config() + logger.setLevel(logging.DEBUG) + httpx_logger.setLevel(logging.DEBUG) + elif env == "info": + _basic_config() + logger.setLevel(logging.INFO) + httpx_logger.setLevel(logging.INFO) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_proxy.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_proxy.py new file mode 100644 index 0000000000000000000000000000000000000000..0f239a33c6df82d00988a48777a64ab13449b72f --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_proxy.py @@ -0,0 +1,65 @@ +from __future__ import annotations + +from abc import ABC, abstractmethod +from typing import Generic, TypeVar, Iterable, cast +from typing_extensions import override + +T = TypeVar("T") + + +class LazyProxy(Generic[T], ABC): + """Implements data methods to pretend that an instance is another instance. + + This includes forwarding attribute access and other methods. + """ + + # Note: we have to special case proxies that themselves return proxies + # to support using a proxy as a catch-all for any random access, e.g. `proxy.foo.bar.baz` + + def __getattr__(self, attr: str) -> object: + proxied = self.__get_proxied__() + if isinstance(proxied, LazyProxy): + return proxied # pyright: ignore + return getattr(proxied, attr) + + @override + def __repr__(self) -> str: + proxied = self.__get_proxied__() + if isinstance(proxied, LazyProxy): + return proxied.__class__.__name__ + return repr(self.__get_proxied__()) + + @override + def __str__(self) -> str: + proxied = self.__get_proxied__() + if isinstance(proxied, LazyProxy): + return proxied.__class__.__name__ + return str(proxied) + + @override + def __dir__(self) -> Iterable[str]: + proxied = self.__get_proxied__() + if isinstance(proxied, LazyProxy): + return [] + return proxied.__dir__() + + @property # type: ignore + @override + def __class__(self) -> type: # pyright: ignore + try: + proxied = self.__get_proxied__() + except Exception: + return type(self) + if issubclass(type(proxied), LazyProxy): + return type(proxied) + return proxied.__class__ + + def __get_proxied__(self) -> T: + return self.__load__() + + def __as_proxied__(self) -> T: + """Helper method that returns the current proxy, typed as the loaded object""" + return cast(T, self) + + @abstractmethod + def __load__(self) -> T: ... diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_reflection.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_reflection.py new file mode 100644 index 0000000000000000000000000000000000000000..89aa712ac4c923b6e3c4e72b8c8a764de282f585 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_reflection.py @@ -0,0 +1,42 @@ +from __future__ import annotations + +import inspect +from typing import Any, Callable + + +def function_has_argument(func: Callable[..., Any], arg_name: str) -> bool: + """Returns whether or not the given function has a specific parameter""" + sig = inspect.signature(func) + return arg_name in sig.parameters + + +def assert_signatures_in_sync( + source_func: Callable[..., Any], + check_func: Callable[..., Any], + *, + exclude_params: set[str] = set(), +) -> None: + """Ensure that the signature of the second function matches the first.""" + + check_sig = inspect.signature(check_func) + source_sig = inspect.signature(source_func) + + errors: list[str] = [] + + for name, source_param in source_sig.parameters.items(): + if name in exclude_params: + continue + + custom_param = check_sig.parameters.get(name) + if not custom_param: + errors.append(f"the `{name}` param is missing") + continue + + if custom_param.annotation != source_param.annotation: + errors.append( + f"types for the `{name}` param are do not match; source={repr(source_param.annotation)} checking={repr(custom_param.annotation)}" + ) + continue + + if errors: + raise AssertionError(f"{len(errors)} errors encountered when comparing signatures:\n\n" + "\n\n".join(errors)) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_resources_proxy.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_resources_proxy.py new file mode 100644 index 0000000000000000000000000000000000000000..4c4c87662b38c9ca9cb8340248c2b433291a356b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_resources_proxy.py @@ -0,0 +1,24 @@ +from __future__ import annotations + +from typing import Any +from typing_extensions import override + +from ._proxy import LazyProxy + + +class ResourcesProxy(LazyProxy[Any]): + """A proxy for the `groq.resources` module. + + This is used so that we can lazily import `groq.resources` only when + needed *and* so that users can just import `groq` and reference `groq.resources` + """ + + @override + def __load__(self) -> Any: + import importlib + + mod = importlib.import_module("groq.resources") + return mod + + +resources = ResourcesProxy().__as_proxied__() diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_streams.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_streams.py new file mode 100644 index 0000000000000000000000000000000000000000..f4a0208f01c069616000eeed319029fc92c03b56 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_streams.py @@ -0,0 +1,12 @@ +from typing import Any +from typing_extensions import Iterator, AsyncIterator + + +def consume_sync_iterator(iterator: Iterator[Any]) -> None: + for _ in iterator: + ... + + +async def consume_async_iterator(iterator: AsyncIterator[Any]) -> None: + async for _ in iterator: + ... diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_sync.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_sync.py new file mode 100644 index 0000000000000000000000000000000000000000..f6027c183d1b6cdcdd7f798259f79824a067d5b2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_sync.py @@ -0,0 +1,58 @@ +from __future__ import annotations + +import asyncio +import functools +from typing import TypeVar, Callable, Awaitable +from typing_extensions import ParamSpec + +import anyio +import sniffio +import anyio.to_thread + +T_Retval = TypeVar("T_Retval") +T_ParamSpec = ParamSpec("T_ParamSpec") + + +async def to_thread( + func: Callable[T_ParamSpec, T_Retval], /, *args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs +) -> T_Retval: + if sniffio.current_async_library() == "asyncio": + return await asyncio.to_thread(func, *args, **kwargs) + + return await anyio.to_thread.run_sync( + functools.partial(func, *args, **kwargs), + ) + + +# inspired by `asyncer`, https://github.com/tiangolo/asyncer +def asyncify(function: Callable[T_ParamSpec, T_Retval]) -> Callable[T_ParamSpec, Awaitable[T_Retval]]: + """ + Take a blocking function and create an async one that receives the same + positional and keyword arguments. + + Usage: + + ```python + def blocking_func(arg1, arg2, kwarg1=None): + # blocking code + return result + + + result = asyncify(blocking_function)(arg1, arg2, kwarg1=value1) + ``` + + ## Arguments + + `function`: a blocking regular callable (e.g. a function) + + ## Return + + An async function that takes the same positional and keyword arguments as the + original one, that when called runs the same original function in a thread worker + and returns the result. + """ + + async def wrapper(*args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs) -> T_Retval: + return await to_thread(function, *args, **kwargs) + + return wrapper diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_transform.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_transform.py new file mode 100644 index 0000000000000000000000000000000000000000..5207549207e533479a7266b1b1a5bbdffe93a2ba --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_transform.py @@ -0,0 +1,457 @@ +from __future__ import annotations + +import io +import base64 +import pathlib +from typing import Any, Mapping, TypeVar, cast +from datetime import date, datetime +from typing_extensions import Literal, get_args, override, get_type_hints as _get_type_hints + +import anyio +import pydantic + +from ._utils import ( + is_list, + is_given, + lru_cache, + is_mapping, + is_iterable, + is_sequence, +) +from .._files import is_base64_file_input +from ._compat import get_origin, is_typeddict +from ._typing import ( + is_list_type, + is_union_type, + extract_type_arg, + is_iterable_type, + is_required_type, + is_sequence_type, + is_annotated_type, + strip_annotated_type, +) + +_T = TypeVar("_T") + + +# TODO: support for drilling globals() and locals() +# TODO: ensure works correctly with forward references in all cases + + +PropertyFormat = Literal["iso8601", "base64", "custom"] + + +class PropertyInfo: + """Metadata class to be used in Annotated types to provide information about a given type. + + For example: + + class MyParams(TypedDict): + account_holder_name: Annotated[str, PropertyInfo(alias='accountHolderName')] + + This means that {'account_holder_name': 'Robert'} will be transformed to {'accountHolderName': 'Robert'} before being sent to the API. + """ + + alias: str | None + format: PropertyFormat | None + format_template: str | None + discriminator: str | None + + def __init__( + self, + *, + alias: str | None = None, + format: PropertyFormat | None = None, + format_template: str | None = None, + discriminator: str | None = None, + ) -> None: + self.alias = alias + self.format = format + self.format_template = format_template + self.discriminator = discriminator + + @override + def __repr__(self) -> str: + return f"{self.__class__.__name__}(alias='{self.alias}', format={self.format}, format_template='{self.format_template}', discriminator='{self.discriminator}')" + + +def maybe_transform( + data: object, + expected_type: object, +) -> Any | None: + """Wrapper over `transform()` that allows `None` to be passed. + + See `transform()` for more details. + """ + if data is None: + return None + return transform(data, expected_type) + + +# Wrapper over _transform_recursive providing fake types +def transform( + data: _T, + expected_type: object, +) -> _T: + """Transform dictionaries based off of type information from the given type, for example: + + ```py + class Params(TypedDict, total=False): + card_id: Required[Annotated[str, PropertyInfo(alias="cardID")]] + + + transformed = transform({"card_id": ""}, Params) + # {'cardID': ''} + ``` + + Any keys / data that does not have type information given will be included as is. + + It should be noted that the transformations that this function does are not represented in the type system. + """ + transformed = _transform_recursive(data, annotation=cast(type, expected_type)) + return cast(_T, transformed) + + +@lru_cache(maxsize=8096) +def _get_annotated_type(type_: type) -> type | None: + """If the given type is an `Annotated` type then it is returned, if not `None` is returned. + + This also unwraps the type when applicable, e.g. `Required[Annotated[T, ...]]` + """ + if is_required_type(type_): + # Unwrap `Required[Annotated[T, ...]]` to `Annotated[T, ...]` + type_ = get_args(type_)[0] + + if is_annotated_type(type_): + return type_ + + return None + + +def _maybe_transform_key(key: str, type_: type) -> str: + """Transform the given `data` based on the annotations provided in `type_`. + + Note: this function only looks at `Annotated` types that contain `PropertyInfo` metadata. + """ + annotated_type = _get_annotated_type(type_) + if annotated_type is None: + # no `Annotated` definition for this type, no transformation needed + return key + + # ignore the first argument as it is the actual type + annotations = get_args(annotated_type)[1:] + for annotation in annotations: + if isinstance(annotation, PropertyInfo) and annotation.alias is not None: + return annotation.alias + + return key + + +def _no_transform_needed(annotation: type) -> bool: + return annotation == float or annotation == int + + +def _transform_recursive( + data: object, + *, + annotation: type, + inner_type: type | None = None, +) -> object: + """Transform the given data against the expected type. + + Args: + annotation: The direct type annotation given to the particular piece of data. + This may or may not be wrapped in metadata types, e.g. `Required[T]`, `Annotated[T, ...]` etc + + inner_type: If applicable, this is the "inside" type. This is useful in certain cases where the outside type + is a container type such as `List[T]`. In that case `inner_type` should be set to `T` so that each entry in + the list can be transformed using the metadata from the container type. + + Defaults to the same value as the `annotation` argument. + """ + from .._compat import model_dump + + if inner_type is None: + inner_type = annotation + + stripped_type = strip_annotated_type(inner_type) + origin = get_origin(stripped_type) or stripped_type + if is_typeddict(stripped_type) and is_mapping(data): + return _transform_typeddict(data, stripped_type) + + if origin == dict and is_mapping(data): + items_type = get_args(stripped_type)[1] + return {key: _transform_recursive(value, annotation=items_type) for key, value in data.items()} + + if ( + # List[T] + (is_list_type(stripped_type) and is_list(data)) + # Iterable[T] + or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str)) + # Sequence[T] + or (is_sequence_type(stripped_type) and is_sequence(data) and not isinstance(data, str)) + ): + # dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually + # intended as an iterable, so we don't transform it. + if isinstance(data, dict): + return cast(object, data) + + inner_type = extract_type_arg(stripped_type, 0) + if _no_transform_needed(inner_type): + # for some types there is no need to transform anything, so we can get a small + # perf boost from skipping that work. + # + # but we still need to convert to a list to ensure the data is json-serializable + if is_list(data): + return data + return list(data) + + return [_transform_recursive(d, annotation=annotation, inner_type=inner_type) for d in data] + + if is_union_type(stripped_type): + # For union types we run the transformation against all subtypes to ensure that everything is transformed. + # + # TODO: there may be edge cases where the same normalized field name will transform to two different names + # in different subtypes. + for subtype in get_args(stripped_type): + data = _transform_recursive(data, annotation=annotation, inner_type=subtype) + return data + + if isinstance(data, pydantic.BaseModel): + return model_dump(data, exclude_unset=True, mode="json") + + annotated_type = _get_annotated_type(annotation) + if annotated_type is None: + return data + + # ignore the first argument as it is the actual type + annotations = get_args(annotated_type)[1:] + for annotation in annotations: + if isinstance(annotation, PropertyInfo) and annotation.format is not None: + return _format_data(data, annotation.format, annotation.format_template) + + return data + + +def _format_data(data: object, format_: PropertyFormat, format_template: str | None) -> object: + if isinstance(data, (date, datetime)): + if format_ == "iso8601": + return data.isoformat() + + if format_ == "custom" and format_template is not None: + return data.strftime(format_template) + + if format_ == "base64" and is_base64_file_input(data): + binary: str | bytes | None = None + + if isinstance(data, pathlib.Path): + binary = data.read_bytes() + elif isinstance(data, io.IOBase): + binary = data.read() + + if isinstance(binary, str): # type: ignore[unreachable] + binary = binary.encode() + + if not isinstance(binary, bytes): + raise RuntimeError(f"Could not read bytes from {data}; Received {type(binary)}") + + return base64.b64encode(binary).decode("ascii") + + return data + + +def _transform_typeddict( + data: Mapping[str, object], + expected_type: type, +) -> Mapping[str, object]: + result: dict[str, object] = {} + annotations = get_type_hints(expected_type, include_extras=True) + for key, value in data.items(): + if not is_given(value): + # we don't need to include omitted values here as they'll + # be stripped out before the request is sent anyway + continue + + type_ = annotations.get(key) + if type_ is None: + # we do not have a type annotation for this field, leave it as is + result[key] = value + else: + result[_maybe_transform_key(key, type_)] = _transform_recursive(value, annotation=type_) + return result + + +async def async_maybe_transform( + data: object, + expected_type: object, +) -> Any | None: + """Wrapper over `async_transform()` that allows `None` to be passed. + + See `async_transform()` for more details. + """ + if data is None: + return None + return await async_transform(data, expected_type) + + +async def async_transform( + data: _T, + expected_type: object, +) -> _T: + """Transform dictionaries based off of type information from the given type, for example: + + ```py + class Params(TypedDict, total=False): + card_id: Required[Annotated[str, PropertyInfo(alias="cardID")]] + + + transformed = transform({"card_id": ""}, Params) + # {'cardID': ''} + ``` + + Any keys / data that does not have type information given will be included as is. + + It should be noted that the transformations that this function does are not represented in the type system. + """ + transformed = await _async_transform_recursive(data, annotation=cast(type, expected_type)) + return cast(_T, transformed) + + +async def _async_transform_recursive( + data: object, + *, + annotation: type, + inner_type: type | None = None, +) -> object: + """Transform the given data against the expected type. + + Args: + annotation: The direct type annotation given to the particular piece of data. + This may or may not be wrapped in metadata types, e.g. `Required[T]`, `Annotated[T, ...]` etc + + inner_type: If applicable, this is the "inside" type. This is useful in certain cases where the outside type + is a container type such as `List[T]`. In that case `inner_type` should be set to `T` so that each entry in + the list can be transformed using the metadata from the container type. + + Defaults to the same value as the `annotation` argument. + """ + from .._compat import model_dump + + if inner_type is None: + inner_type = annotation + + stripped_type = strip_annotated_type(inner_type) + origin = get_origin(stripped_type) or stripped_type + if is_typeddict(stripped_type) and is_mapping(data): + return await _async_transform_typeddict(data, stripped_type) + + if origin == dict and is_mapping(data): + items_type = get_args(stripped_type)[1] + return {key: _transform_recursive(value, annotation=items_type) for key, value in data.items()} + + if ( + # List[T] + (is_list_type(stripped_type) and is_list(data)) + # Iterable[T] + or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str)) + # Sequence[T] + or (is_sequence_type(stripped_type) and is_sequence(data) and not isinstance(data, str)) + ): + # dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually + # intended as an iterable, so we don't transform it. + if isinstance(data, dict): + return cast(object, data) + + inner_type = extract_type_arg(stripped_type, 0) + if _no_transform_needed(inner_type): + # for some types there is no need to transform anything, so we can get a small + # perf boost from skipping that work. + # + # but we still need to convert to a list to ensure the data is json-serializable + if is_list(data): + return data + return list(data) + + return [await _async_transform_recursive(d, annotation=annotation, inner_type=inner_type) for d in data] + + if is_union_type(stripped_type): + # For union types we run the transformation against all subtypes to ensure that everything is transformed. + # + # TODO: there may be edge cases where the same normalized field name will transform to two different names + # in different subtypes. + for subtype in get_args(stripped_type): + data = await _async_transform_recursive(data, annotation=annotation, inner_type=subtype) + return data + + if isinstance(data, pydantic.BaseModel): + return model_dump(data, exclude_unset=True, mode="json") + + annotated_type = _get_annotated_type(annotation) + if annotated_type is None: + return data + + # ignore the first argument as it is the actual type + annotations = get_args(annotated_type)[1:] + for annotation in annotations: + if isinstance(annotation, PropertyInfo) and annotation.format is not None: + return await _async_format_data(data, annotation.format, annotation.format_template) + + return data + + +async def _async_format_data(data: object, format_: PropertyFormat, format_template: str | None) -> object: + if isinstance(data, (date, datetime)): + if format_ == "iso8601": + return data.isoformat() + + if format_ == "custom" and format_template is not None: + return data.strftime(format_template) + + if format_ == "base64" and is_base64_file_input(data): + binary: str | bytes | None = None + + if isinstance(data, pathlib.Path): + binary = await anyio.Path(data).read_bytes() + elif isinstance(data, io.IOBase): + binary = data.read() + + if isinstance(binary, str): # type: ignore[unreachable] + binary = binary.encode() + + if not isinstance(binary, bytes): + raise RuntimeError(f"Could not read bytes from {data}; Received {type(binary)}") + + return base64.b64encode(binary).decode("ascii") + + return data + + +async def _async_transform_typeddict( + data: Mapping[str, object], + expected_type: type, +) -> Mapping[str, object]: + result: dict[str, object] = {} + annotations = get_type_hints(expected_type, include_extras=True) + for key, value in data.items(): + if not is_given(value): + # we don't need to include omitted values here as they'll + # be stripped out before the request is sent anyway + continue + + type_ = annotations.get(key) + if type_ is None: + # we do not have a type annotation for this field, leave it as is + result[key] = value + else: + result[_maybe_transform_key(key, type_)] = await _async_transform_recursive(value, annotation=type_) + return result + + +@lru_cache(maxsize=8096) +def get_type_hints( + obj: Any, + globalns: dict[str, Any] | None = None, + localns: Mapping[str, Any] | None = None, + include_extras: bool = False, +) -> dict[str, Any]: + return _get_type_hints(obj, globalns=globalns, localns=localns, include_extras=include_extras) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_typing.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_typing.py new file mode 100644 index 0000000000000000000000000000000000000000..193109f3ad2b3c00e59ad3f41ad32d9f704f5f23 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_typing.py @@ -0,0 +1,156 @@ +from __future__ import annotations + +import sys +import typing +import typing_extensions +from typing import Any, TypeVar, Iterable, cast +from collections import abc as _c_abc +from typing_extensions import ( + TypeIs, + Required, + Annotated, + get_args, + get_origin, +) + +from ._utils import lru_cache +from .._types import InheritsGeneric +from ._compat import is_union as _is_union + + +def is_annotated_type(typ: type) -> bool: + return get_origin(typ) == Annotated + + +def is_list_type(typ: type) -> bool: + return (get_origin(typ) or typ) == list + + +def is_sequence_type(typ: type) -> bool: + origin = get_origin(typ) or typ + return origin == typing_extensions.Sequence or origin == typing.Sequence or origin == _c_abc.Sequence + + +def is_iterable_type(typ: type) -> bool: + """If the given type is `typing.Iterable[T]`""" + origin = get_origin(typ) or typ + return origin == Iterable or origin == _c_abc.Iterable + + +def is_union_type(typ: type) -> bool: + return _is_union(get_origin(typ)) + + +def is_required_type(typ: type) -> bool: + return get_origin(typ) == Required + + +def is_typevar(typ: type) -> bool: + # type ignore is required because type checkers + # think this expression will always return False + return type(typ) == TypeVar # type: ignore + + +_TYPE_ALIAS_TYPES: tuple[type[typing_extensions.TypeAliasType], ...] = (typing_extensions.TypeAliasType,) +if sys.version_info >= (3, 12): + _TYPE_ALIAS_TYPES = (*_TYPE_ALIAS_TYPES, typing.TypeAliasType) + + +def is_type_alias_type(tp: Any, /) -> TypeIs[typing_extensions.TypeAliasType]: + """Return whether the provided argument is an instance of `TypeAliasType`. + + ```python + type Int = int + is_type_alias_type(Int) + # > True + Str = TypeAliasType("Str", str) + is_type_alias_type(Str) + # > True + ``` + """ + return isinstance(tp, _TYPE_ALIAS_TYPES) + + +# Extracts T from Annotated[T, ...] or from Required[Annotated[T, ...]] +@lru_cache(maxsize=8096) +def strip_annotated_type(typ: type) -> type: + if is_required_type(typ) or is_annotated_type(typ): + return strip_annotated_type(cast(type, get_args(typ)[0])) + + return typ + + +def extract_type_arg(typ: type, index: int) -> type: + args = get_args(typ) + try: + return cast(type, args[index]) + except IndexError as err: + raise RuntimeError(f"Expected type {typ} to have a type argument at index {index} but it did not") from err + + +def extract_type_var_from_base( + typ: type, + *, + generic_bases: tuple[type, ...], + index: int, + failure_message: str | None = None, +) -> type: + """Given a type like `Foo[T]`, returns the generic type variable `T`. + + This also handles the case where a concrete subclass is given, e.g. + ```py + class MyResponse(Foo[bytes]): + ... + + extract_type_var(MyResponse, bases=(Foo,), index=0) -> bytes + ``` + + And where a generic subclass is given: + ```py + _T = TypeVar('_T') + class MyResponse(Foo[_T]): + ... + + extract_type_var(MyResponse[bytes], bases=(Foo,), index=0) -> bytes + ``` + """ + cls = cast(object, get_origin(typ) or typ) + if cls in generic_bases: # pyright: ignore[reportUnnecessaryContains] + # we're given the class directly + return extract_type_arg(typ, index) + + # if a subclass is given + # --- + # this is needed as __orig_bases__ is not present in the typeshed stubs + # because it is intended to be for internal use only, however there does + # not seem to be a way to resolve generic TypeVars for inherited subclasses + # without using it. + if isinstance(cls, InheritsGeneric): + target_base_class: Any | None = None + for base in cls.__orig_bases__: + if base.__origin__ in generic_bases: + target_base_class = base + break + + if target_base_class is None: + raise RuntimeError( + "Could not find the generic base class;\n" + "This should never happen;\n" + f"Does {cls} inherit from one of {generic_bases} ?" + ) + + extracted = extract_type_arg(target_base_class, index) + if is_typevar(extracted): + # If the extracted type argument is itself a type variable + # then that means the subclass itself is generic, so we have + # to resolve the type argument from the class itself, not + # the base class. + # + # Note: if there is more than 1 type argument, the subclass could + # change the ordering of the type arguments, this is not currently + # supported. + return extract_type_arg(typ, index) + + return extracted + + raise RuntimeError(failure_message or f"Could not resolve inner type variable at index {index} for {typ}") diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_utils.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..eec7f4a1f23b1745a3b2e35b8f8410deac55e3f0 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_utils/_utils.py @@ -0,0 +1,421 @@ +from __future__ import annotations + +import os +import re +import inspect +import functools +from typing import ( + Any, + Tuple, + Mapping, + TypeVar, + Callable, + Iterable, + Sequence, + cast, + overload, +) +from pathlib import Path +from datetime import date, datetime +from typing_extensions import TypeGuard + +import sniffio + +from .._types import Omit, NotGiven, FileTypes, HeadersLike + +_T = TypeVar("_T") +_TupleT = TypeVar("_TupleT", bound=Tuple[object, ...]) +_MappingT = TypeVar("_MappingT", bound=Mapping[str, object]) +_SequenceT = TypeVar("_SequenceT", bound=Sequence[object]) +CallableT = TypeVar("CallableT", bound=Callable[..., Any]) + + +def flatten(t: Iterable[Iterable[_T]]) -> list[_T]: + return [item for sublist in t for item in sublist] + + +def extract_files( + # TODO: this needs to take Dict but variance issues..... + # create protocol type ? + query: Mapping[str, object], + *, + paths: Sequence[Sequence[str]], +) -> list[tuple[str, FileTypes]]: + """Recursively extract files from the given dictionary based on specified paths. + + A path may look like this ['foo', 'files', '', 'data']. + + Note: this mutates the given dictionary. + """ + files: list[tuple[str, FileTypes]] = [] + for path in paths: + files.extend(_extract_items(query, path, index=0, flattened_key=None)) + return files + + +def _extract_items( + obj: object, + path: Sequence[str], + *, + index: int, + flattened_key: str | None, +) -> list[tuple[str, FileTypes]]: + try: + key = path[index] + except IndexError: + if not is_given(obj): + # no value was provided - we can safely ignore + return [] + + # cyclical import + from .._files import assert_is_file_content + + # We have exhausted the path, return the entry we found. + assert flattened_key is not None + + if is_list(obj): + files: list[tuple[str, FileTypes]] = [] + for entry in obj: + assert_is_file_content(entry, key=flattened_key + "[]" if flattened_key else "") + files.append((flattened_key + "[]", cast(FileTypes, entry))) + return files + + assert_is_file_content(obj, key=flattened_key) + return [(flattened_key, cast(FileTypes, obj))] + + index += 1 + if is_dict(obj): + try: + # We are at the last entry in the path so we must remove the field + if (len(path)) == index: + item = obj.pop(key) + else: + item = obj[key] + except KeyError: + # Key was not present in the dictionary, this is not indicative of an error + # as the given path may not point to a required field. We also do not want + # to enforce required fields as the API may differ from the spec in some cases. + return [] + if flattened_key is None: + flattened_key = key + else: + flattened_key += f"[{key}]" + return _extract_items( + item, + path, + index=index, + flattened_key=flattened_key, + ) + elif is_list(obj): + if key != "": + return [] + + return flatten( + [ + _extract_items( + item, + path, + index=index, + flattened_key=flattened_key + "[]" if flattened_key is not None else "[]", + ) + for item in obj + ] + ) + + # Something unexpected was passed, just ignore it. + return [] + + +def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]: + return not isinstance(obj, NotGiven) and not isinstance(obj, Omit) + + +# Type safe methods for narrowing types with TypeVars. +# The default narrowing for isinstance(obj, dict) is dict[unknown, unknown], +# however this cause Pyright to rightfully report errors. As we know we don't +# care about the contained types we can safely use `object` in its place. +# +# There are two separate functions defined, `is_*` and `is_*_t` for different use cases. +# `is_*` is for when you're dealing with an unknown input +# `is_*_t` is for when you're narrowing a known union type to a specific subset + + +def is_tuple(obj: object) -> TypeGuard[tuple[object, ...]]: + return isinstance(obj, tuple) + + +def is_tuple_t(obj: _TupleT | object) -> TypeGuard[_TupleT]: + return isinstance(obj, tuple) + + +def is_sequence(obj: object) -> TypeGuard[Sequence[object]]: + return isinstance(obj, Sequence) + + +def is_sequence_t(obj: _SequenceT | object) -> TypeGuard[_SequenceT]: + return isinstance(obj, Sequence) + + +def is_mapping(obj: object) -> TypeGuard[Mapping[str, object]]: + return isinstance(obj, Mapping) + + +def is_mapping_t(obj: _MappingT | object) -> TypeGuard[_MappingT]: + return isinstance(obj, Mapping) + + +def is_dict(obj: object) -> TypeGuard[dict[object, object]]: + return isinstance(obj, dict) + + +def is_list(obj: object) -> TypeGuard[list[object]]: + return isinstance(obj, list) + + +def is_iterable(obj: object) -> TypeGuard[Iterable[object]]: + return isinstance(obj, Iterable) + + +def deepcopy_minimal(item: _T) -> _T: + """Minimal reimplementation of copy.deepcopy() that will only copy certain object types: + + - mappings, e.g. `dict` + - list + + This is done for performance reasons. + """ + if is_mapping(item): + return cast(_T, {k: deepcopy_minimal(v) for k, v in item.items()}) + if is_list(item): + return cast(_T, [deepcopy_minimal(entry) for entry in item]) + return item + + +# copied from https://github.com/Rapptz/RoboDanny +def human_join(seq: Sequence[str], *, delim: str = ", ", final: str = "or") -> str: + size = len(seq) + if size == 0: + return "" + + if size == 1: + return seq[0] + + if size == 2: + return f"{seq[0]} {final} {seq[1]}" + + return delim.join(seq[:-1]) + f" {final} {seq[-1]}" + + +def quote(string: str) -> str: + """Add single quotation marks around the given string. Does *not* do any escaping.""" + return f"'{string}'" + + +def required_args(*variants: Sequence[str]) -> Callable[[CallableT], CallableT]: + """Decorator to enforce a given set of arguments or variants of arguments are passed to the decorated function. + + Useful for enforcing runtime validation of overloaded functions. + + Example usage: + ```py + @overload + def foo(*, a: str) -> str: ... + + + @overload + def foo(*, b: bool) -> str: ... + + + # This enforces the same constraints that a static type checker would + # i.e. that either a or b must be passed to the function + @required_args(["a"], ["b"]) + def foo(*, a: str | None = None, b: bool | None = None) -> str: ... + ``` + """ + + def inner(func: CallableT) -> CallableT: + params = inspect.signature(func).parameters + positional = [ + name + for name, param in params.items() + if param.kind + in { + param.POSITIONAL_ONLY, + param.POSITIONAL_OR_KEYWORD, + } + ] + + @functools.wraps(func) + def wrapper(*args: object, **kwargs: object) -> object: + given_params: set[str] = set() + for i, _ in enumerate(args): + try: + given_params.add(positional[i]) + except IndexError: + raise TypeError( + f"{func.__name__}() takes {len(positional)} argument(s) but {len(args)} were given" + ) from None + + for key in kwargs.keys(): + given_params.add(key) + + for variant in variants: + matches = all((param in given_params for param in variant)) + if matches: + break + else: # no break + if len(variants) > 1: + variations = human_join( + ["(" + human_join([quote(arg) for arg in variant], final="and") + ")" for variant in variants] + ) + msg = f"Missing required arguments; Expected either {variations} arguments to be given" + else: + assert len(variants) > 0 + + # TODO: this error message is not deterministic + missing = list(set(variants[0]) - given_params) + if len(missing) > 1: + msg = f"Missing required arguments: {human_join([quote(arg) for arg in missing])}" + else: + msg = f"Missing required argument: {quote(missing[0])}" + raise TypeError(msg) + return func(*args, **kwargs) + + return wrapper # type: ignore + + return inner + + +_K = TypeVar("_K") +_V = TypeVar("_V") + + +@overload +def strip_not_given(obj: None) -> None: ... + + +@overload +def strip_not_given(obj: Mapping[_K, _V | NotGiven]) -> dict[_K, _V]: ... + + +@overload +def strip_not_given(obj: object) -> object: ... + + +def strip_not_given(obj: object | None) -> object: + """Remove all top-level keys where their values are instances of `NotGiven`""" + if obj is None: + return None + + if not is_mapping(obj): + return obj + + return {key: value for key, value in obj.items() if not isinstance(value, NotGiven)} + + +def coerce_integer(val: str) -> int: + return int(val, base=10) + + +def coerce_float(val: str) -> float: + return float(val) + + +def coerce_boolean(val: str) -> bool: + return val == "true" or val == "1" or val == "on" + + +def maybe_coerce_integer(val: str | None) -> int | None: + if val is None: + return None + return coerce_integer(val) + + +def maybe_coerce_float(val: str | None) -> float | None: + if val is None: + return None + return coerce_float(val) + + +def maybe_coerce_boolean(val: str | None) -> bool | None: + if val is None: + return None + return coerce_boolean(val) + + +def removeprefix(string: str, prefix: str) -> str: + """Remove a prefix from a string. + + Backport of `str.removeprefix` for Python < 3.9 + """ + if string.startswith(prefix): + return string[len(prefix) :] + return string + + +def removesuffix(string: str, suffix: str) -> str: + """Remove a suffix from a string. + + Backport of `str.removesuffix` for Python < 3.9 + """ + if string.endswith(suffix): + return string[: -len(suffix)] + return string + + +def file_from_path(path: str) -> FileTypes: + contents = Path(path).read_bytes() + file_name = os.path.basename(path) + return (file_name, contents) + + +def get_required_header(headers: HeadersLike, header: str) -> str: + lower_header = header.lower() + if is_mapping_t(headers): + # mypy doesn't understand the type narrowing here + for k, v in headers.items(): # type: ignore + if k.lower() == lower_header and isinstance(v, str): + return v + + # to deal with the case where the header looks like Stainless-Event-Id + intercaps_header = re.sub(r"([^\w])(\w)", lambda pat: pat.group(1) + pat.group(2).upper(), header.capitalize()) + + for normalized_header in [header, lower_header, header.upper(), intercaps_header]: + value = headers.get(normalized_header) + if value: + return value + + raise ValueError(f"Could not find {header} header") + + +def get_async_library() -> str: + try: + return sniffio.current_async_library() + except Exception: + return "false" + + +def lru_cache(*, maxsize: int | None = 128) -> Callable[[CallableT], CallableT]: + """A version of functools.lru_cache that retains the type signature + for the wrapped function arguments. + """ + wrapper = functools.lru_cache( # noqa: TID251 + maxsize=maxsize, + ) + return cast(Any, wrapper) # type: ignore[no-any-return] + + +def json_safe(data: object) -> object: + """Translates a mapping / sequence recursively in the same fashion + as `pydantic` v2's `model_dump(mode="json")`. + """ + if is_mapping(data): + return {json_safe(key): json_safe(value) for key, value in data.items()} + + if is_iterable(data) and not isinstance(data, (str, bytes, bytearray)): + return [json_safe(item) for item in data] + + if isinstance(data, (datetime, date)): + return data.isoformat() + + return data diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_version.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_version.py new file mode 100644 index 0000000000000000000000000000000000000000..4671b72b244f78415a80058a3fe6dbb36f70ed7a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/_version.py @@ -0,0 +1,4 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +__title__ = "groq" +__version__ = "0.37.1" # x-release-please-version diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/lib/.keep b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/lib/.keep new file mode 100644 index 0000000000000000000000000000000000000000..5e2c99fdbefc565576f8c5f37b0b0a66d60f2015 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/lib/.keep @@ -0,0 +1,4 @@ +File generated from our OpenAPI spec by Stainless. + +This directory can be used to store custom files to expand the SDK. +It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/py.typed b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/py.typed new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..7add5ef6de21668ef87855cbf80a7a41986533a5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__init__.py @@ -0,0 +1,89 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from .chat import ( + Chat, + AsyncChat, + ChatWithRawResponse, + AsyncChatWithRawResponse, + ChatWithStreamingResponse, + AsyncChatWithStreamingResponse, +) +from .audio import ( + Audio, + AsyncAudio, + AudioWithRawResponse, + AsyncAudioWithRawResponse, + AudioWithStreamingResponse, + AsyncAudioWithStreamingResponse, +) +from .files import ( + Files, + AsyncFiles, + FilesWithRawResponse, + AsyncFilesWithRawResponse, + FilesWithStreamingResponse, + AsyncFilesWithStreamingResponse, +) +from .models import ( + Models, + AsyncModels, + ModelsWithRawResponse, + AsyncModelsWithRawResponse, + ModelsWithStreamingResponse, + AsyncModelsWithStreamingResponse, +) +from .batches import ( + Batches, + AsyncBatches, + BatchesWithRawResponse, + AsyncBatchesWithRawResponse, + BatchesWithStreamingResponse, + AsyncBatchesWithStreamingResponse, +) +from .embeddings import ( + Embeddings, + AsyncEmbeddings, + EmbeddingsWithRawResponse, + AsyncEmbeddingsWithRawResponse, + EmbeddingsWithStreamingResponse, + AsyncEmbeddingsWithStreamingResponse, +) + +__all__ = [ + "Chat", + "AsyncChat", + "ChatWithRawResponse", + "AsyncChatWithRawResponse", + "ChatWithStreamingResponse", + "AsyncChatWithStreamingResponse", + "Embeddings", + "AsyncEmbeddings", + "EmbeddingsWithRawResponse", + "AsyncEmbeddingsWithRawResponse", + "EmbeddingsWithStreamingResponse", + "AsyncEmbeddingsWithStreamingResponse", + "Audio", + "AsyncAudio", + "AudioWithRawResponse", + "AsyncAudioWithRawResponse", + "AudioWithStreamingResponse", + "AsyncAudioWithStreamingResponse", + "Models", + "AsyncModels", + "ModelsWithRawResponse", + "AsyncModelsWithRawResponse", + "ModelsWithStreamingResponse", + "AsyncModelsWithStreamingResponse", + "Batches", + "AsyncBatches", + "BatchesWithRawResponse", + "AsyncBatchesWithRawResponse", + "BatchesWithStreamingResponse", + "AsyncBatchesWithStreamingResponse", + "Files", + "AsyncFiles", + "FilesWithRawResponse", + "AsyncFilesWithRawResponse", + "FilesWithStreamingResponse", + "AsyncFilesWithStreamingResponse", +] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..78d9302112382a143b4d8478a18a5fa7711be1a6 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/batches.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/batches.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..145430e789444fef3ce54c9b9822a698c7309a3a Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/batches.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/embeddings.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/embeddings.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..177a230af1c89fb2526e8ff68914eedc9b732ad7 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/embeddings.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/files.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/files.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..11a4c9de7ced2d3064c819aac5cfedce20b2c8e0 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/files.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/models.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b3b27d37123cbdfdc2521df89bd62e37aa7ccc5d Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/__pycache__/models.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..3a66b2c35b46aeb8c4716e1cbea16e9991ec2eb9 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__init__.py @@ -0,0 +1,61 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from .audio import ( + Audio, + AsyncAudio, + AudioWithRawResponse, + AsyncAudioWithRawResponse, + AudioWithStreamingResponse, + AsyncAudioWithStreamingResponse, +) +from .speech import ( + Speech, + AsyncSpeech, + SpeechWithRawResponse, + AsyncSpeechWithRawResponse, + SpeechWithStreamingResponse, + AsyncSpeechWithStreamingResponse, +) +from .translations import ( + Translations, + AsyncTranslations, + TranslationsWithRawResponse, + AsyncTranslationsWithRawResponse, + TranslationsWithStreamingResponse, + AsyncTranslationsWithStreamingResponse, +) +from .transcriptions import ( + Transcriptions, + AsyncTranscriptions, + TranscriptionsWithRawResponse, + AsyncTranscriptionsWithRawResponse, + TranscriptionsWithStreamingResponse, + AsyncTranscriptionsWithStreamingResponse, +) + +__all__ = [ + "Speech", + "AsyncSpeech", + "SpeechWithRawResponse", + "AsyncSpeechWithRawResponse", + "SpeechWithStreamingResponse", + "AsyncSpeechWithStreamingResponse", + "Transcriptions", + "AsyncTranscriptions", + "TranscriptionsWithRawResponse", + "AsyncTranscriptionsWithRawResponse", + "TranscriptionsWithStreamingResponse", + "AsyncTranscriptionsWithStreamingResponse", + "Translations", + "AsyncTranslations", + "TranslationsWithRawResponse", + "AsyncTranslationsWithRawResponse", + "TranslationsWithStreamingResponse", + "AsyncTranslationsWithStreamingResponse", + "Audio", + "AsyncAudio", + "AudioWithRawResponse", + "AsyncAudioWithRawResponse", + "AudioWithStreamingResponse", + "AsyncAudioWithStreamingResponse", +] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8752b8264401a6e48e273c401d5b9e591eb2b58e Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/audio.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/audio.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3d47433bf962c932835edbfa83e477bccce4fc71 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/audio.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/speech.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/speech.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6c355f2245ede371959ea095cd6d98c98a3aaca8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/speech.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/transcriptions.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/transcriptions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..35c8d778595a69de9968988a90782e71c1fd6877 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/transcriptions.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/translations.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/translations.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c5fd1e4575a9ce8551987f3c8ebb2df9c8d0ecbc Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/__pycache__/translations.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/audio.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/audio.py new file mode 100644 index 0000000000000000000000000000000000000000..4e29d9fc51e6e7e1b966012220720a94745c9fe5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/audio.py @@ -0,0 +1,166 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .speech import ( + Speech, + AsyncSpeech, + SpeechWithRawResponse, + AsyncSpeechWithRawResponse, + SpeechWithStreamingResponse, + AsyncSpeechWithStreamingResponse, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .translations import ( + Translations, + AsyncTranslations, + TranslationsWithRawResponse, + AsyncTranslationsWithRawResponse, + TranslationsWithStreamingResponse, + AsyncTranslationsWithStreamingResponse, +) +from .transcriptions import ( + Transcriptions, + AsyncTranscriptions, + TranscriptionsWithRawResponse, + AsyncTranscriptionsWithRawResponse, + TranscriptionsWithStreamingResponse, + AsyncTranscriptionsWithStreamingResponse, +) + +__all__ = ["Audio", "AsyncAudio"] + + +class Audio(SyncAPIResource): + @cached_property + def speech(self) -> Speech: + return Speech(self._client) + + @cached_property + def transcriptions(self) -> Transcriptions: + return Transcriptions(self._client) + + @cached_property + def translations(self) -> Translations: + return Translations(self._client) + + @cached_property + def with_raw_response(self) -> AudioWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AudioWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AudioWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AudioWithStreamingResponse(self) + + +class AsyncAudio(AsyncAPIResource): + @cached_property + def speech(self) -> AsyncSpeech: + return AsyncSpeech(self._client) + + @cached_property + def transcriptions(self) -> AsyncTranscriptions: + return AsyncTranscriptions(self._client) + + @cached_property + def translations(self) -> AsyncTranslations: + return AsyncTranslations(self._client) + + @cached_property + def with_raw_response(self) -> AsyncAudioWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncAudioWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncAudioWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncAudioWithStreamingResponse(self) + + +class AudioWithRawResponse: + def __init__(self, audio: Audio) -> None: + self._audio = audio + + @cached_property + def speech(self) -> SpeechWithRawResponse: + return SpeechWithRawResponse(self._audio.speech) + + @cached_property + def transcriptions(self) -> TranscriptionsWithRawResponse: + return TranscriptionsWithRawResponse(self._audio.transcriptions) + + @cached_property + def translations(self) -> TranslationsWithRawResponse: + return TranslationsWithRawResponse(self._audio.translations) + + +class AsyncAudioWithRawResponse: + def __init__(self, audio: AsyncAudio) -> None: + self._audio = audio + + @cached_property + def speech(self) -> AsyncSpeechWithRawResponse: + return AsyncSpeechWithRawResponse(self._audio.speech) + + @cached_property + def transcriptions(self) -> AsyncTranscriptionsWithRawResponse: + return AsyncTranscriptionsWithRawResponse(self._audio.transcriptions) + + @cached_property + def translations(self) -> AsyncTranslationsWithRawResponse: + return AsyncTranslationsWithRawResponse(self._audio.translations) + + +class AudioWithStreamingResponse: + def __init__(self, audio: Audio) -> None: + self._audio = audio + + @cached_property + def speech(self) -> SpeechWithStreamingResponse: + return SpeechWithStreamingResponse(self._audio.speech) + + @cached_property + def transcriptions(self) -> TranscriptionsWithStreamingResponse: + return TranscriptionsWithStreamingResponse(self._audio.transcriptions) + + @cached_property + def translations(self) -> TranslationsWithStreamingResponse: + return TranslationsWithStreamingResponse(self._audio.translations) + + +class AsyncAudioWithStreamingResponse: + def __init__(self, audio: AsyncAudio) -> None: + self._audio = audio + + @cached_property + def speech(self) -> AsyncSpeechWithStreamingResponse: + return AsyncSpeechWithStreamingResponse(self._audio.speech) + + @cached_property + def transcriptions(self) -> AsyncTranscriptionsWithStreamingResponse: + return AsyncTranscriptionsWithStreamingResponse(self._audio.transcriptions) + + @cached_property + def translations(self) -> AsyncTranslationsWithStreamingResponse: + return AsyncTranslationsWithStreamingResponse(self._audio.translations) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/speech.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/speech.py new file mode 100644 index 0000000000000000000000000000000000000000..088581b23e1edd2c9bf62b3c91b907882cb00304 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/speech.py @@ -0,0 +1,233 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal + +import httpx + +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given +from ..._utils import maybe_transform, async_maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, + to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, +) +from ...types.audio import speech_create_params +from ..._base_client import make_request_options + +__all__ = ["Speech", "AsyncSpeech"] + + +class Speech(SyncAPIResource): + @cached_property + def with_raw_response(self) -> SpeechWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return SpeechWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> SpeechWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return SpeechWithStreamingResponse(self) + + def create( + self, + *, + input: str, + model: Union[str, Literal["playai-tts", "playai-tts-arabic"]], + voice: str, + response_format: Literal["flac", "mp3", "mulaw", "ogg", "wav"] | Omit = omit, + sample_rate: Literal[8000, 16000, 22050, 24000, 32000, 44100, 48000] | Omit = omit, + speed: float | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BinaryAPIResponse: + """ + Generates audio from the input text. + + Args: + input: The text to generate audio for. + + model: One of the [available TTS models](/docs/text-to-speech). + + voice: The voice to use when generating the audio. List of voices can be found + [here](/docs/text-to-speech). + + response_format: The format of the generated audio. Supported formats are + `flac, mp3, mulaw, ogg, wav`. + + sample_rate: The sample rate for generated audio + + speed: The speed of the generated audio. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + extra_headers = {"Accept": "audio/wav", **(extra_headers or {})} + return self._post( + "/openai/v1/audio/speech", + body=maybe_transform( + { + "input": input, + "model": model, + "voice": voice, + "response_format": response_format, + "sample_rate": sample_rate, + "speed": speed, + }, + speech_create_params.SpeechCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BinaryAPIResponse, + ) + + +class AsyncSpeech(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncSpeechWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncSpeechWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncSpeechWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncSpeechWithStreamingResponse(self) + + async def create( + self, + *, + input: str, + model: Union[str, Literal["playai-tts", "playai-tts-arabic"]], + voice: str, + response_format: Literal["flac", "mp3", "mulaw", "ogg", "wav"] | Omit = omit, + sample_rate: Literal[8000, 16000, 22050, 24000, 32000, 44100, 48000] | Omit = omit, + speed: float | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> AsyncBinaryAPIResponse: + """ + Generates audio from the input text. + + Args: + input: The text to generate audio for. + + model: One of the [available TTS models](/docs/text-to-speech). + + voice: The voice to use when generating the audio. List of voices can be found + [here](/docs/text-to-speech). + + response_format: The format of the generated audio. Supported formats are + `flac, mp3, mulaw, ogg, wav`. + + sample_rate: The sample rate for generated audio + + speed: The speed of the generated audio. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + extra_headers = {"Accept": "audio/wav", **(extra_headers or {})} + return await self._post( + "/openai/v1/audio/speech", + body=await async_maybe_transform( + { + "input": input, + "model": model, + "voice": voice, + "response_format": response_format, + "sample_rate": sample_rate, + "speed": speed, + }, + speech_create_params.SpeechCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=AsyncBinaryAPIResponse, + ) + + +class SpeechWithRawResponse: + def __init__(self, speech: Speech) -> None: + self._speech = speech + + self.create = to_custom_raw_response_wrapper( + speech.create, + BinaryAPIResponse, + ) + + +class AsyncSpeechWithRawResponse: + def __init__(self, speech: AsyncSpeech) -> None: + self._speech = speech + + self.create = async_to_custom_raw_response_wrapper( + speech.create, + AsyncBinaryAPIResponse, + ) + + +class SpeechWithStreamingResponse: + def __init__(self, speech: Speech) -> None: + self._speech = speech + + self.create = to_custom_streamed_response_wrapper( + speech.create, + StreamedBinaryAPIResponse, + ) + + +class AsyncSpeechWithStreamingResponse: + def __init__(self, speech: AsyncSpeech) -> None: + self._speech = speech + + self.create = async_to_custom_streamed_response_wrapper( + speech.create, + AsyncStreamedBinaryAPIResponse, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/transcriptions.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/transcriptions.py new file mode 100644 index 0000000000000000000000000000000000000000..0b7362a89c3af065bfb48615411dd511fbbd2a53 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/transcriptions.py @@ -0,0 +1,494 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Union, Mapping, cast +from typing_extensions import Literal + +import httpx + +from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given +from ..._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...types.audio import transcription_create_params +from ..._base_client import make_request_options +from ...types.audio.transcription import Transcription + +__all__ = ["Transcriptions", "AsyncTranscriptions"] + + +class Transcriptions(SyncAPIResource): + @cached_property + def with_raw_response(self) -> TranscriptionsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return TranscriptionsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> TranscriptionsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return TranscriptionsWithStreamingResponse(self) + + def create( + self, + *, + model: Union[str, Literal["whisper-large-v3", "whisper-large-v3-turbo"]], + file: FileTypes | Omit = omit, + language: Union[ + str, + Literal[ + "en", + "zh", + "de", + "es", + "ru", + "ko", + "fr", + "ja", + "pt", + "tr", + "pl", + "ca", + "nl", + "ar", + "sv", + "it", + "id", + "hi", + "fi", + "vi", + "he", + "uk", + "el", + "ms", + "cs", + "ro", + "da", + "hu", + "ta", + "no", + "th", + "ur", + "hr", + "bg", + "lt", + "la", + "mi", + "ml", + "cy", + "sk", + "te", + "fa", + "lv", + "bn", + "sr", + "az", + "sl", + "kn", + "et", + "mk", + "br", + "eu", + "is", + "hy", + "ne", + "mn", + "bs", + "kk", + "sq", + "sw", + "gl", + "mr", + "pa", + "si", + "km", + "sn", + "yo", + "so", + "af", + "oc", + "ka", + "be", + "tg", + "sd", + "gu", + "am", + "yi", + "lo", + "uz", + "fo", + "ht", + "ps", + "tk", + "nn", + "mt", + "sa", + "lb", + "my", + "bo", + "tl", + "mg", + "as", + "tt", + "haw", + "ln", + "ha", + "ba", + "jv", + "su", + "yue", + ], + ] + | Omit = omit, + prompt: str | Omit = omit, + response_format: Literal["json", "text", "verbose_json"] | Omit = omit, + temperature: float | Omit = omit, + timestamp_granularities: List[Literal["word", "segment"]] | Omit = omit, + url: str | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> Transcription: + """ + Transcribes audio into the input language. + + Args: + model: ID of the model to use. `whisper-large-v3` and `whisper-large-v3-turbo` are + currently available. + + file: + The audio file object (not file name) to transcribe, in one of these formats: + flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. Either a file or a URL must + be provided. Note that the file field is not supported in Batch API requests. + + language: The language of the input audio. Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will + improve accuracy and latency. + + prompt: An optional text to guide the model's style or continue a previous audio + segment. The [prompt](/docs/speech-text) should match the audio language. + + response_format: The format of the transcript output, in one of these options: `json`, `text`, or + `verbose_json`. + + temperature: The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + output more random, while lower values like 0.2 will make it more focused and + deterministic. If set to 0, the model will use + [log probability](https://en.wikipedia.org/wiki/Log_probability) to + automatically increase the temperature until certain thresholds are hit. + + timestamp_granularities: The timestamp granularities to populate for this transcription. + `response_format` must be set `verbose_json` to use timestamp granularities. + Either or both of these options are supported: `word`, or `segment`. Note: There + is no additional latency for segment timestamps, but generating word timestamps + incurs additional latency. + + url: The audio URL to translate/transcribe (supports Base64URL). Either a file or a + URL must be provided. For Batch API requests, the URL field is required since + the file field is not supported. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + body = deepcopy_minimal( + { + "model": model, + "file": file, + "language": language, + "prompt": prompt, + "response_format": response_format, + "temperature": temperature, + "timestamp_granularities": timestamp_granularities, + "url": url, + } + ) + files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) + # It should be noted that the actual Content-Type header that will be + # sent to the server will contain a `boundary` parameter, e.g. + # multipart/form-data; boundary=---abc-- + extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} + return self._post( + "/openai/v1/audio/transcriptions", + body=maybe_transform(body, transcription_create_params.TranscriptionCreateParams), + files=files, + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=Transcription, + ) + + +class AsyncTranscriptions(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncTranscriptionsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncTranscriptionsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncTranscriptionsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncTranscriptionsWithStreamingResponse(self) + + async def create( + self, + *, + model: Union[str, Literal["whisper-large-v3", "whisper-large-v3-turbo"]], + file: FileTypes | Omit = omit, + language: Union[ + str, + Literal[ + "en", + "zh", + "de", + "es", + "ru", + "ko", + "fr", + "ja", + "pt", + "tr", + "pl", + "ca", + "nl", + "ar", + "sv", + "it", + "id", + "hi", + "fi", + "vi", + "he", + "uk", + "el", + "ms", + "cs", + "ro", + "da", + "hu", + "ta", + "no", + "th", + "ur", + "hr", + "bg", + "lt", + "la", + "mi", + "ml", + "cy", + "sk", + "te", + "fa", + "lv", + "bn", + "sr", + "az", + "sl", + "kn", + "et", + "mk", + "br", + "eu", + "is", + "hy", + "ne", + "mn", + "bs", + "kk", + "sq", + "sw", + "gl", + "mr", + "pa", + "si", + "km", + "sn", + "yo", + "so", + "af", + "oc", + "ka", + "be", + "tg", + "sd", + "gu", + "am", + "yi", + "lo", + "uz", + "fo", + "ht", + "ps", + "tk", + "nn", + "mt", + "sa", + "lb", + "my", + "bo", + "tl", + "mg", + "as", + "tt", + "haw", + "ln", + "ha", + "ba", + "jv", + "su", + "yue", + ], + ] + | Omit = omit, + prompt: str | Omit = omit, + response_format: Literal["json", "text", "verbose_json"] | Omit = omit, + temperature: float | Omit = omit, + timestamp_granularities: List[Literal["word", "segment"]] | Omit = omit, + url: str | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> Transcription: + """ + Transcribes audio into the input language. + + Args: + model: ID of the model to use. `whisper-large-v3` and `whisper-large-v3-turbo` are + currently available. + + file: + The audio file object (not file name) to transcribe, in one of these formats: + flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. Either a file or a URL must + be provided. Note that the file field is not supported in Batch API requests. + + language: The language of the input audio. Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will + improve accuracy and latency. + + prompt: An optional text to guide the model's style or continue a previous audio + segment. The [prompt](/docs/speech-text) should match the audio language. + + response_format: The format of the transcript output, in one of these options: `json`, `text`, or + `verbose_json`. + + temperature: The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + output more random, while lower values like 0.2 will make it more focused and + deterministic. If set to 0, the model will use + [log probability](https://en.wikipedia.org/wiki/Log_probability) to + automatically increase the temperature until certain thresholds are hit. + + timestamp_granularities: The timestamp granularities to populate for this transcription. + `response_format` must be set `verbose_json` to use timestamp granularities. + Either or both of these options are supported: `word`, or `segment`. Note: There + is no additional latency for segment timestamps, but generating word timestamps + incurs additional latency. + + url: The audio URL to translate/transcribe (supports Base64URL). Either a file or a + URL must be provided. For Batch API requests, the URL field is required since + the file field is not supported. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + body = deepcopy_minimal( + { + "model": model, + "file": file, + "language": language, + "prompt": prompt, + "response_format": response_format, + "temperature": temperature, + "timestamp_granularities": timestamp_granularities, + "url": url, + } + ) + files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) + # It should be noted that the actual Content-Type header that will be + # sent to the server will contain a `boundary` parameter, e.g. + # multipart/form-data; boundary=---abc-- + extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} + return await self._post( + "/openai/v1/audio/transcriptions", + body=await async_maybe_transform(body, transcription_create_params.TranscriptionCreateParams), + files=files, + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=Transcription, + ) + + +class TranscriptionsWithRawResponse: + def __init__(self, transcriptions: Transcriptions) -> None: + self._transcriptions = transcriptions + + self.create = to_raw_response_wrapper( + transcriptions.create, + ) + + +class AsyncTranscriptionsWithRawResponse: + def __init__(self, transcriptions: AsyncTranscriptions) -> None: + self._transcriptions = transcriptions + + self.create = async_to_raw_response_wrapper( + transcriptions.create, + ) + + +class TranscriptionsWithStreamingResponse: + def __init__(self, transcriptions: Transcriptions) -> None: + self._transcriptions = transcriptions + + self.create = to_streamed_response_wrapper( + transcriptions.create, + ) + + +class AsyncTranscriptionsWithStreamingResponse: + def __init__(self, transcriptions: AsyncTranscriptions) -> None: + self._transcriptions = transcriptions + + self.create = async_to_streamed_response_wrapper( + transcriptions.create, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/translations.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/translations.py new file mode 100644 index 0000000000000000000000000000000000000000..499b4c8b47c40cdae676a7fa9cc41aa051da56e5 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/audio/translations.py @@ -0,0 +1,254 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Mapping, cast +from typing_extensions import Literal + +import httpx + +from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given +from ..._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...types.audio import translation_create_params +from ..._base_client import make_request_options +from ...types.audio.translation import Translation + +__all__ = ["Translations", "AsyncTranslations"] + + +class Translations(SyncAPIResource): + @cached_property + def with_raw_response(self) -> TranslationsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return TranslationsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> TranslationsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return TranslationsWithStreamingResponse(self) + + def create( + self, + *, + model: Union[str, Literal["whisper-large-v3", "whisper-large-v3-turbo"]], + file: FileTypes | Omit = omit, + prompt: str | Omit = omit, + response_format: Literal["json", "text", "verbose_json"] | Omit = omit, + temperature: float | Omit = omit, + url: str | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> Translation: + """Translates audio into English. + + Args: + model: ID of the model to use. + + `whisper-large-v3` and `whisper-large-v3-turbo` are + currently available. + + file: The audio file object (not file name) translate, in one of these formats: flac, + mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. + + prompt: An optional text to guide the model's style or continue a previous audio + segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in + English. + + response_format: The format of the transcript output, in one of these options: `json`, `text`, or + `verbose_json`. + + temperature: The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + output more random, while lower values like 0.2 will make it more focused and + deterministic. If set to 0, the model will use + [log probability](https://en.wikipedia.org/wiki/Log_probability) to + automatically increase the temperature until certain thresholds are hit. + + url: The audio URL to translate/transcribe (supports Base64URL). Either file or url + must be provided. When using the Batch API only url is supported. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + body = deepcopy_minimal( + { + "model": model, + "file": file, + "prompt": prompt, + "response_format": response_format, + "temperature": temperature, + "url": url, + } + ) + files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) + # It should be noted that the actual Content-Type header that will be + # sent to the server will contain a `boundary` parameter, e.g. + # multipart/form-data; boundary=---abc-- + extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} + return self._post( + "/openai/v1/audio/translations", + body=maybe_transform(body, translation_create_params.TranslationCreateParams), + files=files, + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=Translation, + ) + + +class AsyncTranslations(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncTranslationsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncTranslationsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncTranslationsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncTranslationsWithStreamingResponse(self) + + async def create( + self, + *, + model: Union[str, Literal["whisper-large-v3", "whisper-large-v3-turbo"]], + file: FileTypes | Omit = omit, + prompt: str | Omit = omit, + response_format: Literal["json", "text", "verbose_json"] | Omit = omit, + temperature: float | Omit = omit, + url: str | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> Translation: + """Translates audio into English. + + Args: + model: ID of the model to use. + + `whisper-large-v3` and `whisper-large-v3-turbo` are + currently available. + + file: The audio file object (not file name) translate, in one of these formats: flac, + mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. + + prompt: An optional text to guide the model's style or continue a previous audio + segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in + English. + + response_format: The format of the transcript output, in one of these options: `json`, `text`, or + `verbose_json`. + + temperature: The sampling temperature, between 0 and 1. Higher values like 0.8 will make the + output more random, while lower values like 0.2 will make it more focused and + deterministic. If set to 0, the model will use + [log probability](https://en.wikipedia.org/wiki/Log_probability) to + automatically increase the temperature until certain thresholds are hit. + + url: The audio URL to translate/transcribe (supports Base64URL). Either file or url + must be provided. When using the Batch API only url is supported. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + body = deepcopy_minimal( + { + "model": model, + "file": file, + "prompt": prompt, + "response_format": response_format, + "temperature": temperature, + "url": url, + } + ) + files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) + # It should be noted that the actual Content-Type header that will be + # sent to the server will contain a `boundary` parameter, e.g. + # multipart/form-data; boundary=---abc-- + extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} + return await self._post( + "/openai/v1/audio/translations", + body=await async_maybe_transform(body, translation_create_params.TranslationCreateParams), + files=files, + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=Translation, + ) + + +class TranslationsWithRawResponse: + def __init__(self, translations: Translations) -> None: + self._translations = translations + + self.create = to_raw_response_wrapper( + translations.create, + ) + + +class AsyncTranslationsWithRawResponse: + def __init__(self, translations: AsyncTranslations) -> None: + self._translations = translations + + self.create = async_to_raw_response_wrapper( + translations.create, + ) + + +class TranslationsWithStreamingResponse: + def __init__(self, translations: Translations) -> None: + self._translations = translations + + self.create = to_streamed_response_wrapper( + translations.create, + ) + + +class AsyncTranslationsWithStreamingResponse: + def __init__(self, translations: AsyncTranslations) -> None: + self._translations = translations + + self.create = async_to_streamed_response_wrapper( + translations.create, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/batches.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/batches.py new file mode 100644 index 0000000000000000000000000000000000000000..5a8b5db28cab6dae2f0d0b10729bdc7df0a311ba --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/batches.py @@ -0,0 +1,429 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, Optional +from typing_extensions import Literal + +import httpx + +from ..types import batch_create_params +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given +from .._utils import maybe_transform, async_maybe_transform +from .._compat import cached_property +from .._resource import SyncAPIResource, AsyncAPIResource +from .._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from .._base_client import make_request_options +from ..types.batch_list_response import BatchListResponse +from ..types.batch_cancel_response import BatchCancelResponse +from ..types.batch_create_response import BatchCreateResponse +from ..types.batch_retrieve_response import BatchRetrieveResponse + +__all__ = ["Batches", "AsyncBatches"] + + +class Batches(SyncAPIResource): + @cached_property + def with_raw_response(self) -> BatchesWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return BatchesWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> BatchesWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return BatchesWithStreamingResponse(self) + + def create( + self, + *, + completion_window: str, + endpoint: Literal["/v1/chat/completions"], + input_file_id: str, + metadata: Optional[Dict[str, str]] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchCreateResponse: + """ + Creates and executes a batch from an uploaded file of requests. + [Learn more](/docs/batch). + + Args: + completion_window: The time frame within which the batch should be processed. Durations from `24h` + to `7d` are supported. + + endpoint: The endpoint to be used for all requests in the batch. Currently + `/v1/chat/completions` is supported. + + input_file_id: The ID of an uploaded file that contains requests for the new batch. + + See [upload file](/docs/api-reference#files-upload) for how to upload a file. + + Your input file must be formatted as a [JSONL file](/docs/batch), and must be + uploaded with the purpose `batch`. The file can be up to 100 MB in size. + + metadata: Optional custom metadata for the batch. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + return self._post( + "/openai/v1/batches", + body=maybe_transform( + { + "completion_window": completion_window, + "endpoint": endpoint, + "input_file_id": input_file_id, + "metadata": metadata, + }, + batch_create_params.BatchCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchCreateResponse, + ) + + def retrieve( + self, + batch_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchRetrieveResponse: + """ + Retrieves a batch. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not batch_id: + raise ValueError(f"Expected a non-empty value for `batch_id` but received {batch_id!r}") + return self._get( + f"/openai/v1/batches/{batch_id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchRetrieveResponse, + ) + + def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchListResponse: + """List your organization's batches.""" + return self._get( + "/openai/v1/batches", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchListResponse, + ) + + def cancel( + self, + batch_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchCancelResponse: + """ + Cancels a batch. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not batch_id: + raise ValueError(f"Expected a non-empty value for `batch_id` but received {batch_id!r}") + return self._post( + f"/openai/v1/batches/{batch_id}/cancel", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchCancelResponse, + ) + + +class AsyncBatches(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncBatchesWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncBatchesWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncBatchesWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncBatchesWithStreamingResponse(self) + + async def create( + self, + *, + completion_window: str, + endpoint: Literal["/v1/chat/completions"], + input_file_id: str, + metadata: Optional[Dict[str, str]] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchCreateResponse: + """ + Creates and executes a batch from an uploaded file of requests. + [Learn more](/docs/batch). + + Args: + completion_window: The time frame within which the batch should be processed. Durations from `24h` + to `7d` are supported. + + endpoint: The endpoint to be used for all requests in the batch. Currently + `/v1/chat/completions` is supported. + + input_file_id: The ID of an uploaded file that contains requests for the new batch. + + See [upload file](/docs/api-reference#files-upload) for how to upload a file. + + Your input file must be formatted as a [JSONL file](/docs/batch), and must be + uploaded with the purpose `batch`. The file can be up to 100 MB in size. + + metadata: Optional custom metadata for the batch. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + return await self._post( + "/openai/v1/batches", + body=await async_maybe_transform( + { + "completion_window": completion_window, + "endpoint": endpoint, + "input_file_id": input_file_id, + "metadata": metadata, + }, + batch_create_params.BatchCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchCreateResponse, + ) + + async def retrieve( + self, + batch_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchRetrieveResponse: + """ + Retrieves a batch. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not batch_id: + raise ValueError(f"Expected a non-empty value for `batch_id` but received {batch_id!r}") + return await self._get( + f"/openai/v1/batches/{batch_id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchRetrieveResponse, + ) + + async def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchListResponse: + """List your organization's batches.""" + return await self._get( + "/openai/v1/batches", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchListResponse, + ) + + async def cancel( + self, + batch_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BatchCancelResponse: + """ + Cancels a batch. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not batch_id: + raise ValueError(f"Expected a non-empty value for `batch_id` but received {batch_id!r}") + return await self._post( + f"/openai/v1/batches/{batch_id}/cancel", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BatchCancelResponse, + ) + + +class BatchesWithRawResponse: + def __init__(self, batches: Batches) -> None: + self._batches = batches + + self.create = to_raw_response_wrapper( + batches.create, + ) + self.retrieve = to_raw_response_wrapper( + batches.retrieve, + ) + self.list = to_raw_response_wrapper( + batches.list, + ) + self.cancel = to_raw_response_wrapper( + batches.cancel, + ) + + +class AsyncBatchesWithRawResponse: + def __init__(self, batches: AsyncBatches) -> None: + self._batches = batches + + self.create = async_to_raw_response_wrapper( + batches.create, + ) + self.retrieve = async_to_raw_response_wrapper( + batches.retrieve, + ) + self.list = async_to_raw_response_wrapper( + batches.list, + ) + self.cancel = async_to_raw_response_wrapper( + batches.cancel, + ) + + +class BatchesWithStreamingResponse: + def __init__(self, batches: Batches) -> None: + self._batches = batches + + self.create = to_streamed_response_wrapper( + batches.create, + ) + self.retrieve = to_streamed_response_wrapper( + batches.retrieve, + ) + self.list = to_streamed_response_wrapper( + batches.list, + ) + self.cancel = to_streamed_response_wrapper( + batches.cancel, + ) + + +class AsyncBatchesWithStreamingResponse: + def __init__(self, batches: AsyncBatches) -> None: + self._batches = batches + + self.create = async_to_streamed_response_wrapper( + batches.create, + ) + self.retrieve = async_to_streamed_response_wrapper( + batches.retrieve, + ) + self.list = async_to_streamed_response_wrapper( + batches.list, + ) + self.cancel = async_to_streamed_response_wrapper( + batches.cancel, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..52dfdceacc4d3e7b88e8d7cf016c0670cd2fe977 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__init__.py @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from .chat import ( + Chat, + AsyncChat, + ChatWithRawResponse, + AsyncChatWithRawResponse, + ChatWithStreamingResponse, + AsyncChatWithStreamingResponse, +) +from .completions import ( + Completions, + AsyncCompletions, + CompletionsWithRawResponse, + AsyncCompletionsWithRawResponse, + CompletionsWithStreamingResponse, + AsyncCompletionsWithStreamingResponse, +) + +__all__ = [ + "Completions", + "AsyncCompletions", + "CompletionsWithRawResponse", + "AsyncCompletionsWithRawResponse", + "CompletionsWithStreamingResponse", + "AsyncCompletionsWithStreamingResponse", + "Chat", + "AsyncChat", + "ChatWithRawResponse", + "AsyncChatWithRawResponse", + "ChatWithStreamingResponse", + "AsyncChatWithStreamingResponse", +] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dde6a93285049ffee1b62ea2d97b0d93f696be4b Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/chat.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/chat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d76ebef6b1d4fb1a6a0964a9ceb783125f6e6845 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/chat.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/completions.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/completions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6e30e2b210f7b3e48bea4dea5a809d089c9dbeb Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/__pycache__/completions.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/chat.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/chat.py new file mode 100644 index 0000000000000000000000000000000000000000..3706a08b8cd3bbd1e9b23b22950fb8ddbff1b6a9 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/chat.py @@ -0,0 +1,102 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .completions import ( + Completions, + AsyncCompletions, + CompletionsWithRawResponse, + AsyncCompletionsWithRawResponse, + CompletionsWithStreamingResponse, + AsyncCompletionsWithStreamingResponse, +) + +__all__ = ["Chat", "AsyncChat"] + + +class Chat(SyncAPIResource): + @cached_property + def completions(self) -> Completions: + return Completions(self._client) + + @cached_property + def with_raw_response(self) -> ChatWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return ChatWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> ChatWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return ChatWithStreamingResponse(self) + + +class AsyncChat(AsyncAPIResource): + @cached_property + def completions(self) -> AsyncCompletions: + return AsyncCompletions(self._client) + + @cached_property + def with_raw_response(self) -> AsyncChatWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncChatWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncChatWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncChatWithStreamingResponse(self) + + +class ChatWithRawResponse: + def __init__(self, chat: Chat) -> None: + self._chat = chat + + @cached_property + def completions(self) -> CompletionsWithRawResponse: + return CompletionsWithRawResponse(self._chat.completions) + + +class AsyncChatWithRawResponse: + def __init__(self, chat: AsyncChat) -> None: + self._chat = chat + + @cached_property + def completions(self) -> AsyncCompletionsWithRawResponse: + return AsyncCompletionsWithRawResponse(self._chat.completions) + + +class ChatWithStreamingResponse: + def __init__(self, chat: Chat) -> None: + self._chat = chat + + @cached_property + def completions(self) -> CompletionsWithStreamingResponse: + return CompletionsWithStreamingResponse(self._chat.completions) + + +class AsyncChatWithStreamingResponse: + def __init__(self, chat: AsyncChat) -> None: + self._chat = chat + + @cached_property + def completions(self) -> AsyncCompletionsWithStreamingResponse: + return AsyncCompletionsWithStreamingResponse(self._chat.completions) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/completions.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/completions.py new file mode 100644 index 0000000000000000000000000000000000000000..821b560e7db615a8d5fefcc0dc9ff370564742a1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/chat/completions.py @@ -0,0 +1,1025 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, Union, Iterable, Optional, overload +from typing_extensions import Literal + +import httpx + +from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given +from ..._utils import maybe_transform, async_maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._streaming import Stream, AsyncStream +from ...types.chat import completion_create_params +from ..._base_client import make_request_options +from ...types.chat.chat_completion import ChatCompletion +from ...types.chat.chat_completion_chunk import ChatCompletionChunk +from ...types.chat.chat_completion_tool_param import ChatCompletionToolParam +from ...types.chat.chat_completion_message_param import ChatCompletionMessageParam +from ...types.chat.chat_completion_tool_choice_option_param import ChatCompletionToolChoiceOptionParam + +__all__ = ["Completions", "AsyncCompletions"] + + +class Completions(SyncAPIResource): + @cached_property + def with_raw_response(self) -> CompletionsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return CompletionsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> CompletionsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return CompletionsWithStreamingResponse(self) + + @overload + def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: Optional[Literal[False]] | Omit = omit, + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ChatCompletion: ... + + @overload + def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: Literal[True], + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> Stream[ChatCompletionChunk]: ... + + @overload + def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: bool, + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ChatCompletion | Stream[ChatCompletionChunk]: ... + + def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: Optional[Literal[False]] | Literal[True] | Omit = omit, + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ChatCompletion | Stream[ChatCompletionChunk]: + """ + Creates a model response for the given chat conversation. + + Args: + messages: A list of messages comprising the conversation so far. + + model: ID of the model to use. For details on which models are compatible with the Chat + API, see available [models](https://console.groq.com/docs/models) + + citation_options: Whether to enable citations in the response. When enabled, the model will + include citations for information retrieved from provided documents or web + searches. + + compound_custom: Custom configuration of models and tools for Compound. + + disable_tool_validation: If set to true, groq will return called tools without validating that the tool + is present in request.tools. tool_choice=required/none will still be enforced, + but the request cannot require a specific tool be used. + + documents: A list of documents to provide context for the conversation. Each document + contains text that can be referenced by the model. + + exclude_domains: Deprecated: Use search_settings.exclude_domains instead. A list of domains to + exclude from the search results when the model uses a web search tool. + + frequency_penalty: This is not yet supported by any of our models. Number between -2.0 and 2.0. + Positive values penalize new tokens based on their existing frequency in the + text so far, decreasing the model's likelihood to repeat the same line verbatim. + + function_call: Deprecated in favor of `tool_choice`. + + Controls which (if any) function is called by the model. `none` means the model + will not call a function and instead generates a message. `auto` means the model + can pick between generating a message or calling a function. Specifying a + particular function via `{"name": "my_function"}` forces the model to call that + function. + + `none` is the default when no functions are present. `auto` is the default if + functions are present. + + functions: Deprecated in favor of `tools`. + + A list of functions the model may generate JSON inputs for. + + include_domains: Deprecated: Use search_settings.include_domains instead. A list of domains to + include in the search results when the model uses a web search tool. + + include_reasoning: Whether to include reasoning in the response. If true, the response will include + a `reasoning` field. If false, the model's reasoning will not be included in the + response. This field is mutually exclusive with `reasoning_format`. + + logit_bias: This is not yet supported by any of our models. Modify the likelihood of + specified tokens appearing in the completion. + + logprobs: This is not yet supported by any of our models. Whether to return log + probabilities of the output tokens or not. If true, returns the log + probabilities of each output token returned in the `content` of `message`. + + max_completion_tokens: The maximum number of tokens that can be generated in the chat completion. The + total length of input tokens and generated tokens is limited by the model's + context length. + + max_tokens: Deprecated in favor of `max_completion_tokens`. The maximum number of tokens + that can be generated in the chat completion. The total length of input tokens + and generated tokens is limited by the model's context length. + + metadata: This parameter is not currently supported. + + n: How many chat completion choices to generate for each input message. Note that + the current moment, only n=1 is supported. Other values will result in a 400 + response. + + parallel_tool_calls: Whether to enable parallel function calling during tool use. + + presence_penalty: This is not yet supported by any of our models. Number between -2.0 and 2.0. + Positive values penalize new tokens based on whether they appear in the text so + far, increasing the model's likelihood to talk about new topics. + + reasoning_effort: qwen3 models support the following values Set to 'none' to disable reasoning. + Set to 'default' or null to let Qwen reason. + + openai/gpt-oss-20b and openai/gpt-oss-120b support 'low', 'medium', or 'high'. + 'medium' is the default value. + + reasoning_format: Specifies how to output reasoning tokens This field is mutually exclusive with + `include_reasoning`. + + response_format: An object specifying the format that the model must output. Setting to + `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs + which ensures the model will match your supplied JSON schema. `json_schema` + response format is only available on + [supported models](https://console.groq.com/docs/structured-outputs#supported-models). + Setting to `{ "type": "json_object" }` enables the older JSON mode, which + ensures the message the model generates is valid JSON. Using `json_schema` is + preferred for models that support it. + + search_settings: Settings for web search functionality when the model uses a web search tool. + + seed: If specified, our system will make a best effort to sample deterministically, + such that repeated requests with the same `seed` and parameters should return + the same result. Determinism is not guaranteed, and you should refer to the + `system_fingerprint` response parameter to monitor changes in the backend. + + service_tier: The service tier to use for the request. Defaults to `on_demand`. + + - `auto` will automatically select the highest tier available within the rate + limits of your organization. + - `flex` uses the flex tier, which will succeed or fail quickly. + + stop: Up to 4 sequences where the API will stop generating further tokens. The + returned text will not contain the stop sequence. + + store: This parameter is not currently supported. + + stream: If set, partial message deltas will be sent. Tokens will be sent as data-only + [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + as they become available, with the stream terminated by a `data: [DONE]` + message. [Example code](/docs/text-chat#streaming-a-chat-completion). + + temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + make the output more random, while lower values like 0.2 will make it more + focused and deterministic. We generally recommend altering this or top_p but not + both. + + tool_choice: Controls which (if any) tool is called by the model. `none` means the model will + not call any tool and instead generates a message. `auto` means the model can + pick between generating a message or calling one or more tools. `required` means + the model must call one or more tools. Specifying a particular tool via + `{"type": "function", "function": {"name": "my_function"}}` forces the model to + call that tool. + + `none` is the default when no tools are present. `auto` is the default if tools + are present. + + tools: A list of tools the model may call. Currently, only functions are supported as a + tool. Use this to provide a list of functions the model may generate JSON inputs + for. A max of 128 functions are supported. + + top_logprobs: This is not yet supported by any of our models. An integer between 0 and 20 + specifying the number of most likely tokens to return at each token position, + each with an associated log probability. `logprobs` must be set to `true` if + this parameter is used. + + top_p: An alternative to sampling with temperature, called nucleus sampling, where the + model considers the results of the tokens with top_p probability mass. So 0.1 + means only the tokens comprising the top 10% probability mass are considered. We + generally recommend altering this or temperature but not both. + + user: A unique identifier representing your end-user, which can help us monitor and + detect abuse. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + return self._post( + "/openai/v1/chat/completions", + body=maybe_transform( + { + "messages": messages, + "model": model, + "citation_options": citation_options, + "compound_custom": compound_custom, + "disable_tool_validation": disable_tool_validation, + "documents": documents, + "exclude_domains": exclude_domains, + "frequency_penalty": frequency_penalty, + "function_call": function_call, + "functions": functions, + "include_domains": include_domains, + "include_reasoning": include_reasoning, + "logit_bias": logit_bias, + "logprobs": logprobs, + "max_completion_tokens": max_completion_tokens, + "max_tokens": max_tokens, + "metadata": metadata, + "n": n, + "parallel_tool_calls": parallel_tool_calls, + "presence_penalty": presence_penalty, + "reasoning_effort": reasoning_effort, + "reasoning_format": reasoning_format, + "response_format": response_format, + "search_settings": search_settings, + "seed": seed, + "service_tier": service_tier, + "stop": stop, + "store": store, + "stream": stream, + "temperature": temperature, + "tool_choice": tool_choice, + "tools": tools, + "top_logprobs": top_logprobs, + "top_p": top_p, + "user": user, + }, + completion_create_params.CompletionCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ChatCompletion, + stream=stream or False, + stream_cls=Stream[ChatCompletionChunk], + ) + + +class AsyncCompletions(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncCompletionsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncCompletionsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncCompletionsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncCompletionsWithStreamingResponse(self) + + @overload + async def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: Optional[Literal[False]] | Omit = omit, + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ChatCompletion: ... + + @overload + async def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: Literal[True], + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> AsyncStream[ChatCompletionChunk]: ... + + @overload + async def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: bool, + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ChatCompletion | AsyncStream[ChatCompletionChunk]: ... + + async def create( + self, + *, + messages: Iterable[ChatCompletionMessageParam], + model: Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ], + citation_options: Optional[Literal["enabled", "disabled"]] | Omit = omit, + compound_custom: Optional[completion_create_params.CompoundCustom] | Omit = omit, + disable_tool_validation: Optional[bool] | Omit = omit, + documents: Optional[Iterable[completion_create_params.Document]] | Omit = omit, + exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit, + frequency_penalty: Optional[float] | Omit = omit, + function_call: Optional[completion_create_params.FunctionCall] | Omit = omit, + functions: Optional[Iterable[completion_create_params.Function]] | Omit = omit, + include_domains: Optional[SequenceNotStr[str]] | Omit = omit, + include_reasoning: Optional[bool] | Omit = omit, + logit_bias: Optional[Dict[str, int]] | Omit = omit, + logprobs: Optional[bool] | Omit = omit, + max_completion_tokens: Optional[int] | Omit = omit, + max_tokens: Optional[int] | Omit = omit, + metadata: Optional[Dict[str, str]] | Omit = omit, + n: Optional[int] | Omit = omit, + parallel_tool_calls: Optional[bool] | Omit = omit, + presence_penalty: Optional[float] | Omit = omit, + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] | Omit = omit, + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] | Omit = omit, + response_format: Optional[completion_create_params.ResponseFormat] | Omit = omit, + search_settings: Optional[completion_create_params.SearchSettings] | Omit = omit, + seed: Optional[int] | Omit = omit, + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] | Omit = omit, + stop: Union[Optional[str], SequenceNotStr[str], None] | Omit = omit, + store: Optional[bool] | Omit = omit, + stream: Optional[Literal[False]] | Literal[True] | Omit = omit, + temperature: Optional[float] | Omit = omit, + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | Omit = omit, + tools: Optional[Iterable[ChatCompletionToolParam]] | Omit = omit, + top_logprobs: Optional[int] | Omit = omit, + top_p: Optional[float] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ChatCompletion | AsyncStream[ChatCompletionChunk]: + """ + Creates a model response for the given chat conversation. + + Args: + messages: A list of messages comprising the conversation so far. + + model: ID of the model to use. For details on which models are compatible with the Chat + API, see available [models](https://console.groq.com/docs/models) + + citation_options: Whether to enable citations in the response. When enabled, the model will + include citations for information retrieved from provided documents or web + searches. + + compound_custom: Custom configuration of models and tools for Compound. + + disable_tool_validation: If set to true, groq will return called tools without validating that the tool + is present in request.tools. tool_choice=required/none will still be enforced, + but the request cannot require a specific tool be used. + + documents: A list of documents to provide context for the conversation. Each document + contains text that can be referenced by the model. + + exclude_domains: Deprecated: Use search_settings.exclude_domains instead. A list of domains to + exclude from the search results when the model uses a web search tool. + + frequency_penalty: This is not yet supported by any of our models. Number between -2.0 and 2.0. + Positive values penalize new tokens based on their existing frequency in the + text so far, decreasing the model's likelihood to repeat the same line verbatim. + + function_call: Deprecated in favor of `tool_choice`. + + Controls which (if any) function is called by the model. `none` means the model + will not call a function and instead generates a message. `auto` means the model + can pick between generating a message or calling a function. Specifying a + particular function via `{"name": "my_function"}` forces the model to call that + function. + + `none` is the default when no functions are present. `auto` is the default if + functions are present. + + functions: Deprecated in favor of `tools`. + + A list of functions the model may generate JSON inputs for. + + include_domains: Deprecated: Use search_settings.include_domains instead. A list of domains to + include in the search results when the model uses a web search tool. + + include_reasoning: Whether to include reasoning in the response. If true, the response will include + a `reasoning` field. If false, the model's reasoning will not be included in the + response. This field is mutually exclusive with `reasoning_format`. + + logit_bias: This is not yet supported by any of our models. Modify the likelihood of + specified tokens appearing in the completion. + + logprobs: This is not yet supported by any of our models. Whether to return log + probabilities of the output tokens or not. If true, returns the log + probabilities of each output token returned in the `content` of `message`. + + max_completion_tokens: The maximum number of tokens that can be generated in the chat completion. The + total length of input tokens and generated tokens is limited by the model's + context length. + + max_tokens: Deprecated in favor of `max_completion_tokens`. The maximum number of tokens + that can be generated in the chat completion. The total length of input tokens + and generated tokens is limited by the model's context length. + + metadata: This parameter is not currently supported. + + n: How many chat completion choices to generate for each input message. Note that + the current moment, only n=1 is supported. Other values will result in a 400 + response. + + parallel_tool_calls: Whether to enable parallel function calling during tool use. + + presence_penalty: This is not yet supported by any of our models. Number between -2.0 and 2.0. + Positive values penalize new tokens based on whether they appear in the text so + far, increasing the model's likelihood to talk about new topics. + + reasoning_effort: qwen3 models support the following values Set to 'none' to disable reasoning. + Set to 'default' or null to let Qwen reason. + + openai/gpt-oss-20b and openai/gpt-oss-120b support 'low', 'medium', or 'high'. + 'medium' is the default value. + + reasoning_format: Specifies how to output reasoning tokens This field is mutually exclusive with + `include_reasoning`. + + response_format: An object specifying the format that the model must output. Setting to + `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs + which ensures the model will match your supplied JSON schema. `json_schema` + response format is only available on + [supported models](https://console.groq.com/docs/structured-outputs#supported-models). + Setting to `{ "type": "json_object" }` enables the older JSON mode, which + ensures the message the model generates is valid JSON. Using `json_schema` is + preferred for models that support it. + + search_settings: Settings for web search functionality when the model uses a web search tool. + + seed: If specified, our system will make a best effort to sample deterministically, + such that repeated requests with the same `seed` and parameters should return + the same result. Determinism is not guaranteed, and you should refer to the + `system_fingerprint` response parameter to monitor changes in the backend. + + service_tier: The service tier to use for the request. Defaults to `on_demand`. + + - `auto` will automatically select the highest tier available within the rate + limits of your organization. + - `flex` uses the flex tier, which will succeed or fail quickly. + + stop: Up to 4 sequences where the API will stop generating further tokens. The + returned text will not contain the stop sequence. + + store: This parameter is not currently supported. + + stream: If set, partial message deltas will be sent. Tokens will be sent as data-only + [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + as they become available, with the stream terminated by a `data: [DONE]` + message. [Example code](/docs/text-chat#streaming-a-chat-completion). + + temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will + make the output more random, while lower values like 0.2 will make it more + focused and deterministic. We generally recommend altering this or top_p but not + both. + + tool_choice: Controls which (if any) tool is called by the model. `none` means the model will + not call any tool and instead generates a message. `auto` means the model can + pick between generating a message or calling one or more tools. `required` means + the model must call one or more tools. Specifying a particular tool via + `{"type": "function", "function": {"name": "my_function"}}` forces the model to + call that tool. + + `none` is the default when no tools are present. `auto` is the default if tools + are present. + + tools: A list of tools the model may call. Currently, only functions are supported as a + tool. Use this to provide a list of functions the model may generate JSON inputs + for. A max of 128 functions are supported. + + top_logprobs: This is not yet supported by any of our models. An integer between 0 and 20 + specifying the number of most likely tokens to return at each token position, + each with an associated log probability. `logprobs` must be set to `true` if + this parameter is used. + + top_p: An alternative to sampling with temperature, called nucleus sampling, where the + model considers the results of the tokens with top_p probability mass. So 0.1 + means only the tokens comprising the top 10% probability mass are considered. We + generally recommend altering this or temperature but not both. + + user: A unique identifier representing your end-user, which can help us monitor and + detect abuse. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + return await self._post( + "/openai/v1/chat/completions", + body=await async_maybe_transform( + { + "messages": messages, + "model": model, + "citation_options": citation_options, + "compound_custom": compound_custom, + "disable_tool_validation": disable_tool_validation, + "documents": documents, + "exclude_domains": exclude_domains, + "frequency_penalty": frequency_penalty, + "function_call": function_call, + "functions": functions, + "include_domains": include_domains, + "include_reasoning": include_reasoning, + "logit_bias": logit_bias, + "logprobs": logprobs, + "max_completion_tokens": max_completion_tokens, + "max_tokens": max_tokens, + "metadata": metadata, + "n": n, + "parallel_tool_calls": parallel_tool_calls, + "presence_penalty": presence_penalty, + "reasoning_effort": reasoning_effort, + "reasoning_format": reasoning_format, + "response_format": response_format, + "search_settings": search_settings, + "seed": seed, + "service_tier": service_tier, + "stop": stop, + "store": store, + "stream": stream, + "temperature": temperature, + "tool_choice": tool_choice, + "tools": tools, + "top_logprobs": top_logprobs, + "top_p": top_p, + "user": user, + }, + completion_create_params.CompletionCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ChatCompletion, + stream=stream or False, + stream_cls=AsyncStream[ChatCompletionChunk], + ) + + +class CompletionsWithRawResponse: + def __init__(self, completions: Completions) -> None: + self._completions = completions + + self.create = to_raw_response_wrapper( + completions.create, + ) + + +class AsyncCompletionsWithRawResponse: + def __init__(self, completions: AsyncCompletions) -> None: + self._completions = completions + + self.create = async_to_raw_response_wrapper( + completions.create, + ) + + +class CompletionsWithStreamingResponse: + def __init__(self, completions: Completions) -> None: + self._completions = completions + + self.create = to_streamed_response_wrapper( + completions.create, + ) + + +class AsyncCompletionsWithStreamingResponse: + def __init__(self, completions: AsyncCompletions) -> None: + self._completions = completions + + self.create = async_to_streamed_response_wrapper( + completions.create, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/embeddings.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/embeddings.py new file mode 100644 index 0000000000000000000000000000000000000000..15e259987074d89fd00e5d0753ae12cef53bfbb1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/embeddings.py @@ -0,0 +1,212 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Optional +from typing_extensions import Literal + +import httpx + +from ..types import embedding_create_params +from .._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given +from .._utils import maybe_transform, async_maybe_transform +from .._compat import cached_property +from .._resource import SyncAPIResource, AsyncAPIResource +from .._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from .._base_client import make_request_options +from ..types.create_embedding_response import CreateEmbeddingResponse + +__all__ = ["Embeddings", "AsyncEmbeddings"] + + +class Embeddings(SyncAPIResource): + @cached_property + def with_raw_response(self) -> EmbeddingsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return EmbeddingsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> EmbeddingsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return EmbeddingsWithStreamingResponse(self) + + def create( + self, + *, + input: Union[str, SequenceNotStr[str]], + model: Union[str, Literal["nomic-embed-text-v1_5"]], + encoding_format: Literal["float", "base64"] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> CreateEmbeddingResponse: + """ + Creates an embedding vector representing the input text. + + Args: + input: Input text to embed, encoded as a string or array of tokens. To embed multiple + inputs in a single request, pass an array of strings or array of token arrays. + The input must not exceed the max input tokens for the model, cannot be an empty + string, and any array must be 2048 dimensions or less. + + model: ID of the model to use. + + encoding_format: The format to return the embeddings in. Can only be `float` or `base64`. + + user: A unique identifier representing your end-user, which can help us monitor and + detect abuse. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + return self._post( + "/openai/v1/embeddings", + body=maybe_transform( + { + "input": input, + "model": model, + "encoding_format": encoding_format, + "user": user, + }, + embedding_create_params.EmbeddingCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=CreateEmbeddingResponse, + ) + + +class AsyncEmbeddings(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncEmbeddingsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncEmbeddingsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncEmbeddingsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncEmbeddingsWithStreamingResponse(self) + + async def create( + self, + *, + input: Union[str, SequenceNotStr[str]], + model: Union[str, Literal["nomic-embed-text-v1_5"]], + encoding_format: Literal["float", "base64"] | Omit = omit, + user: Optional[str] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> CreateEmbeddingResponse: + """ + Creates an embedding vector representing the input text. + + Args: + input: Input text to embed, encoded as a string or array of tokens. To embed multiple + inputs in a single request, pass an array of strings or array of token arrays. + The input must not exceed the max input tokens for the model, cannot be an empty + string, and any array must be 2048 dimensions or less. + + model: ID of the model to use. + + encoding_format: The format to return the embeddings in. Can only be `float` or `base64`. + + user: A unique identifier representing your end-user, which can help us monitor and + detect abuse. + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + return await self._post( + "/openai/v1/embeddings", + body=await async_maybe_transform( + { + "input": input, + "model": model, + "encoding_format": encoding_format, + "user": user, + }, + embedding_create_params.EmbeddingCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=CreateEmbeddingResponse, + ) + + +class EmbeddingsWithRawResponse: + def __init__(self, embeddings: Embeddings) -> None: + self._embeddings = embeddings + + self.create = to_raw_response_wrapper( + embeddings.create, + ) + + +class AsyncEmbeddingsWithRawResponse: + def __init__(self, embeddings: AsyncEmbeddings) -> None: + self._embeddings = embeddings + + self.create = async_to_raw_response_wrapper( + embeddings.create, + ) + + +class EmbeddingsWithStreamingResponse: + def __init__(self, embeddings: Embeddings) -> None: + self._embeddings = embeddings + + self.create = to_streamed_response_wrapper( + embeddings.create, + ) + + +class AsyncEmbeddingsWithStreamingResponse: + def __init__(self, embeddings: AsyncEmbeddings) -> None: + self._embeddings = embeddings + + self.create = async_to_streamed_response_wrapper( + embeddings.create, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/files.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/files.py new file mode 100644 index 0000000000000000000000000000000000000000..e466284aef3047cea69f39a800bf3dcf7a2c302d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/files.py @@ -0,0 +1,513 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Mapping, cast +from typing_extensions import Literal + +import httpx + +from ..types import file_create_params +from .._types import Body, Query, Headers, NotGiven, FileTypes, not_given +from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform +from .._compat import cached_property +from .._resource import SyncAPIResource, AsyncAPIResource +from .._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + to_custom_raw_response_wrapper, + async_to_streamed_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, +) +from .._base_client import make_request_options +from ..types.file_info_response import FileInfoResponse +from ..types.file_list_response import FileListResponse +from ..types.file_create_response import FileCreateResponse +from ..types.file_delete_response import FileDeleteResponse + +__all__ = ["Files", "AsyncFiles"] + + +class Files(SyncAPIResource): + @cached_property + def with_raw_response(self) -> FilesWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return FilesWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> FilesWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return FilesWithStreamingResponse(self) + + def create( + self, + *, + file: FileTypes, + purpose: Literal["batch"], + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileCreateResponse: + """ + Upload a file that can be used across various endpoints. + + The Batch API only supports `.jsonl` files up to 100 MB in size. The input also + has a specific required [format](/docs/batch). + + Please contact us if you need to increase these storage limits. + + Args: + file: The File object (not file name) to be uploaded. + + purpose: The intended purpose of the uploaded file. Use "batch" for + [Batch API](/docs/api-reference#batches). + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + body = deepcopy_minimal( + { + "file": file, + "purpose": purpose, + } + ) + files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) + # It should be noted that the actual Content-Type header that will be + # sent to the server will contain a `boundary` parameter, e.g. + # multipart/form-data; boundary=---abc-- + extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} + return self._post( + "/openai/v1/files", + body=maybe_transform(body, file_create_params.FileCreateParams), + files=files, + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileCreateResponse, + ) + + def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileListResponse: + """Returns a list of files.""" + return self._get( + "/openai/v1/files", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileListResponse, + ) + + def delete( + self, + file_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileDeleteResponse: + """ + Delete a file. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not file_id: + raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") + return self._delete( + f"/openai/v1/files/{file_id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileDeleteResponse, + ) + + def content( + self, + file_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> BinaryAPIResponse: + """ + Returns the contents of the specified file. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not file_id: + raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") + extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})} + return self._get( + f"/openai/v1/files/{file_id}/content", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=BinaryAPIResponse, + ) + + def info( + self, + file_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileInfoResponse: + """ + Returns information about a file. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not file_id: + raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") + return self._get( + f"/openai/v1/files/{file_id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileInfoResponse, + ) + + +class AsyncFiles(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncFilesWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncFilesWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncFilesWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncFilesWithStreamingResponse(self) + + async def create( + self, + *, + file: FileTypes, + purpose: Literal["batch"], + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileCreateResponse: + """ + Upload a file that can be used across various endpoints. + + The Batch API only supports `.jsonl` files up to 100 MB in size. The input also + has a specific required [format](/docs/batch). + + Please contact us if you need to increase these storage limits. + + Args: + file: The File object (not file name) to be uploaded. + + purpose: The intended purpose of the uploaded file. Use "batch" for + [Batch API](/docs/api-reference#batches). + + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + body = deepcopy_minimal( + { + "file": file, + "purpose": purpose, + } + ) + files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) + # It should be noted that the actual Content-Type header that will be + # sent to the server will contain a `boundary` parameter, e.g. + # multipart/form-data; boundary=---abc-- + extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} + return await self._post( + "/openai/v1/files", + body=await async_maybe_transform(body, file_create_params.FileCreateParams), + files=files, + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileCreateResponse, + ) + + async def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileListResponse: + """Returns a list of files.""" + return await self._get( + "/openai/v1/files", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileListResponse, + ) + + async def delete( + self, + file_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileDeleteResponse: + """ + Delete a file. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not file_id: + raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") + return await self._delete( + f"/openai/v1/files/{file_id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileDeleteResponse, + ) + + async def content( + self, + file_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> AsyncBinaryAPIResponse: + """ + Returns the contents of the specified file. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not file_id: + raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") + extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})} + return await self._get( + f"/openai/v1/files/{file_id}/content", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=AsyncBinaryAPIResponse, + ) + + async def info( + self, + file_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FileInfoResponse: + """ + Returns information about a file. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not file_id: + raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") + return await self._get( + f"/openai/v1/files/{file_id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FileInfoResponse, + ) + + +class FilesWithRawResponse: + def __init__(self, files: Files) -> None: + self._files = files + + self.create = to_raw_response_wrapper( + files.create, + ) + self.list = to_raw_response_wrapper( + files.list, + ) + self.delete = to_raw_response_wrapper( + files.delete, + ) + self.content = to_custom_raw_response_wrapper( + files.content, + BinaryAPIResponse, + ) + self.info = to_raw_response_wrapper( + files.info, + ) + + +class AsyncFilesWithRawResponse: + def __init__(self, files: AsyncFiles) -> None: + self._files = files + + self.create = async_to_raw_response_wrapper( + files.create, + ) + self.list = async_to_raw_response_wrapper( + files.list, + ) + self.delete = async_to_raw_response_wrapper( + files.delete, + ) + self.content = async_to_custom_raw_response_wrapper( + files.content, + AsyncBinaryAPIResponse, + ) + self.info = async_to_raw_response_wrapper( + files.info, + ) + + +class FilesWithStreamingResponse: + def __init__(self, files: Files) -> None: + self._files = files + + self.create = to_streamed_response_wrapper( + files.create, + ) + self.list = to_streamed_response_wrapper( + files.list, + ) + self.delete = to_streamed_response_wrapper( + files.delete, + ) + self.content = to_custom_streamed_response_wrapper( + files.content, + StreamedBinaryAPIResponse, + ) + self.info = to_streamed_response_wrapper( + files.info, + ) + + +class AsyncFilesWithStreamingResponse: + def __init__(self, files: AsyncFiles) -> None: + self._files = files + + self.create = async_to_streamed_response_wrapper( + files.create, + ) + self.list = async_to_streamed_response_wrapper( + files.list, + ) + self.delete = async_to_streamed_response_wrapper( + files.delete, + ) + self.content = async_to_custom_streamed_response_wrapper( + files.content, + AsyncStreamedBinaryAPIResponse, + ) + self.info = async_to_streamed_response_wrapper( + files.info, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/models.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/models.py new file mode 100644 index 0000000000000000000000000000000000000000..d79b922feaf8752636396d6ade3111e087ca515f --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/resources/models.py @@ -0,0 +1,293 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +import httpx + +from .._types import Body, Query, Headers, NotGiven, not_given +from .._compat import cached_property +from .._resource import SyncAPIResource, AsyncAPIResource +from .._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..types.model import Model +from .._base_client import make_request_options +from ..types.model_deleted import ModelDeleted +from ..types.model_list_response import ModelListResponse + +__all__ = ["Models", "AsyncModels"] + + +class Models(SyncAPIResource): + @cached_property + def with_raw_response(self) -> ModelsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return ModelsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> ModelsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return ModelsWithStreamingResponse(self) + + def retrieve( + self, + model: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> Model: + """ + Get a specific model + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not model: + raise ValueError(f"Expected a non-empty value for `model` but received {model!r}") + return self._get( + f"/openai/v1/models/{model}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=Model, + ) + + def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ModelListResponse: + """get all available models""" + return self._get( + "/openai/v1/models", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ModelListResponse, + ) + + def delete( + self, + model: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ModelDeleted: + """ + Delete a model + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not model: + raise ValueError(f"Expected a non-empty value for `model` but received {model!r}") + return self._delete( + f"/openai/v1/models/{model}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ModelDeleted, + ) + + +class AsyncModels(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncModelsWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers + """ + return AsyncModelsWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncModelsWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/groq/groq-python#with_streaming_response + """ + return AsyncModelsWithStreamingResponse(self) + + async def retrieve( + self, + model: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> Model: + """ + Get a specific model + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not model: + raise ValueError(f"Expected a non-empty value for `model` but received {model!r}") + return await self._get( + f"/openai/v1/models/{model}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=Model, + ) + + async def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ModelListResponse: + """get all available models""" + return await self._get( + "/openai/v1/models", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ModelListResponse, + ) + + async def delete( + self, + model: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ModelDeleted: + """ + Delete a model + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not model: + raise ValueError(f"Expected a non-empty value for `model` but received {model!r}") + return await self._delete( + f"/openai/v1/models/{model}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ModelDeleted, + ) + + +class ModelsWithRawResponse: + def __init__(self, models: Models) -> None: + self._models = models + + self.retrieve = to_raw_response_wrapper( + models.retrieve, + ) + self.list = to_raw_response_wrapper( + models.list, + ) + self.delete = to_raw_response_wrapper( + models.delete, + ) + + +class AsyncModelsWithRawResponse: + def __init__(self, models: AsyncModels) -> None: + self._models = models + + self.retrieve = async_to_raw_response_wrapper( + models.retrieve, + ) + self.list = async_to_raw_response_wrapper( + models.list, + ) + self.delete = async_to_raw_response_wrapper( + models.delete, + ) + + +class ModelsWithStreamingResponse: + def __init__(self, models: Models) -> None: + self._models = models + + self.retrieve = to_streamed_response_wrapper( + models.retrieve, + ) + self.list = to_streamed_response_wrapper( + models.list, + ) + self.delete = to_streamed_response_wrapper( + models.delete, + ) + + +class AsyncModelsWithStreamingResponse: + def __init__(self, models: AsyncModels) -> None: + self._models = models + + self.retrieve = async_to_streamed_response_wrapper( + models.retrieve, + ) + self.list = async_to_streamed_response_wrapper( + models.list, + ) + self.delete = async_to_streamed_response_wrapper( + models.delete, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..4d87d48673fd13e6be2ab5fcbed35dc9a9750737 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__init__.py @@ -0,0 +1,26 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .model import Model as Model +from .shared import ( + ErrorObject as ErrorObject, + FunctionDefinition as FunctionDefinition, + FunctionParameters as FunctionParameters, +) +from .embedding import Embedding as Embedding +from .model_deleted import ModelDeleted as ModelDeleted +from .completion_usage import CompletionUsage as CompletionUsage +from .file_create_params import FileCreateParams as FileCreateParams +from .file_info_response import FileInfoResponse as FileInfoResponse +from .file_list_response import FileListResponse as FileListResponse +from .batch_create_params import BatchCreateParams as BatchCreateParams +from .batch_list_response import BatchListResponse as BatchListResponse +from .model_list_response import ModelListResponse as ModelListResponse +from .file_create_response import FileCreateResponse as FileCreateResponse +from .file_delete_response import FileDeleteResponse as FileDeleteResponse +from .batch_cancel_response import BatchCancelResponse as BatchCancelResponse +from .batch_create_response import BatchCreateResponse as BatchCreateResponse +from .batch_retrieve_response import BatchRetrieveResponse as BatchRetrieveResponse +from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams +from .create_embedding_response import CreateEmbeddingResponse as CreateEmbeddingResponse diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..98f5e36802af9b8570d60028d3343c715cdecc62 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_cancel_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_cancel_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..da5fb6f66a177ce3bf9a14c59199d06faa568c51 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_cancel_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_create_params.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7b04e2f5e13c8b860f62039548e0460e46cd71b9 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_create_params.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_create_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_create_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9d32b47c9478be82cb046e97ba060ffa7006fa6c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_create_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_list_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_list_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5ec1cc22a53593daca64b49b8ebec17f45bbd98a Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_list_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_retrieve_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_retrieve_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..be7cab18b42c095aaa4d20641fc523e14b51c00c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/batch_retrieve_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/completion_usage.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/completion_usage.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ba8ebea79ecc07d169f5547e80bd6201dd8ec5b2 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/completion_usage.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/create_embedding_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/create_embedding_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3919ca764c203ddd5649c7b4b4e1aad83db10996 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/create_embedding_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/embedding.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/embedding.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1f65d6c35a5f32d0012dd649e3b1e838a383f66e Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/embedding.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/embedding_create_params.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/embedding_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2f5064b0006a1f7ab7200c65ca951bd6fc2e429b Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/embedding_create_params.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_create_params.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e0caffe15f06277523a8ec0102e1fcc8713df9a6 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_create_params.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_create_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_create_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..264b57da03f92482d10f51da84bddd57a9de7813 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_create_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_delete_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_delete_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a1f0b39667b1bb58a452c49df88647717555aec7 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_delete_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_info_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_info_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a65e358b4bc61ae1a9859f805040825c6a6908b2 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_info_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_list_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_list_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..929ca8c4b2f2f1403a06c342e71811fdbe9a8354 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/file_list_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..43c03a415645602ad517c8eadf00f63a39788c1a Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model_deleted.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model_deleted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70649d3d4c6480407c00db00a0a4b8be752a52f0 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model_deleted.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model_list_response.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model_list_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b98951fb55a5d95a4b93838e9921e36b2b9b7d72 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/__pycache__/model_list_response.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..8d2c44c86a81589e7759386843391e0176873a0e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__init__.py @@ -0,0 +1,9 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .translation import Translation as Translation +from .transcription import Transcription as Transcription +from .speech_create_params import SpeechCreateParams as SpeechCreateParams +from .translation_create_params import TranslationCreateParams as TranslationCreateParams +from .transcription_create_params import TranscriptionCreateParams as TranscriptionCreateParams diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c505e07261ea35fd3841171feac8fe408a5c1726 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/speech_create_params.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/speech_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..531f94bd773c66ec178fe94097e58732ab9ff508 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/speech_create_params.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/transcription.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/transcription.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab0300ed9b6c7d3cc6a22ce10270bb877b8d9b9c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/transcription.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/transcription_create_params.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/transcription_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..06c69093011a0ce9716a5f6889e2e7f6e61265de Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/transcription_create_params.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/translation.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/translation.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..303e684b14bffe41bae4f968169894da362ff26a Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/translation.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/translation_create_params.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/translation_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..04957c586282c5dfa6e4123b57180e06428c8f70 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/__pycache__/translation_create_params.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/speech_create_params.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/speech_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..27deec9df1a8e54eae751448af49237f50b227ac --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/speech_create_params.py @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["SpeechCreateParams"] + + +class SpeechCreateParams(TypedDict, total=False): + input: Required[str] + """The text to generate audio for.""" + + model: Required[Union[str, Literal["playai-tts", "playai-tts-arabic"]]] + """One of the [available TTS models](/docs/text-to-speech).""" + + voice: Required[str] + """The voice to use when generating the audio. + + List of voices can be found [here](/docs/text-to-speech). + """ + + response_format: Literal["flac", "mp3", "mulaw", "ogg", "wav"] + """The format of the generated audio. + + Supported formats are `flac, mp3, mulaw, ogg, wav`. + """ + + sample_rate: Literal[8000, 16000, 22050, 24000, 32000, 44100, 48000] + """The sample rate for generated audio""" + + speed: float + """The speed of the generated audio.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/transcription.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/transcription.py new file mode 100644 index 0000000000000000000000000000000000000000..fa512e27f9043a2447ca1f3b7166b5cb7c5c0531 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/transcription.py @@ -0,0 +1,10 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel + +__all__ = ["Transcription"] + + +class Transcription(BaseModel): + text: str + """The transcribed text.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/transcription_create_params.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/transcription_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..1837470b93e8c53dd60ae0cb8fd6a8458e2bb605 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/transcription_create_params.py @@ -0,0 +1,175 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Union +from typing_extensions import Literal, Required, TypedDict + +from ..._types import FileTypes + +__all__ = ["TranscriptionCreateParams"] + + +class TranscriptionCreateParams(TypedDict, total=False): + model: Required[Union[str, Literal["whisper-large-v3", "whisper-large-v3-turbo"]]] + """ID of the model to use. + + `whisper-large-v3` and `whisper-large-v3-turbo` are currently available. + """ + + file: FileTypes + """ + The audio file object (not file name) to transcribe, in one of these formats: + flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. Either a file or a URL must + be provided. Note that the file field is not supported in Batch API requests. + """ + + language: Union[ + str, + Literal[ + "en", + "zh", + "de", + "es", + "ru", + "ko", + "fr", + "ja", + "pt", + "tr", + "pl", + "ca", + "nl", + "ar", + "sv", + "it", + "id", + "hi", + "fi", + "vi", + "he", + "uk", + "el", + "ms", + "cs", + "ro", + "da", + "hu", + "ta", + "no", + "th", + "ur", + "hr", + "bg", + "lt", + "la", + "mi", + "ml", + "cy", + "sk", + "te", + "fa", + "lv", + "bn", + "sr", + "az", + "sl", + "kn", + "et", + "mk", + "br", + "eu", + "is", + "hy", + "ne", + "mn", + "bs", + "kk", + "sq", + "sw", + "gl", + "mr", + "pa", + "si", + "km", + "sn", + "yo", + "so", + "af", + "oc", + "ka", + "be", + "tg", + "sd", + "gu", + "am", + "yi", + "lo", + "uz", + "fo", + "ht", + "ps", + "tk", + "nn", + "mt", + "sa", + "lb", + "my", + "bo", + "tl", + "mg", + "as", + "tt", + "haw", + "ln", + "ha", + "ba", + "jv", + "su", + "yue", + ], + ] + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will + improve accuracy and latency. + """ + + prompt: str + """An optional text to guide the model's style or continue a previous audio + segment. + + The [prompt](/docs/speech-text) should match the audio language. + """ + + response_format: Literal["json", "text", "verbose_json"] + """ + The format of the transcript output, in one of these options: `json`, `text`, or + `verbose_json`. + """ + + temperature: float + """The sampling temperature, between 0 and 1. + + Higher values like 0.8 will make the output more random, while lower values like + 0.2 will make it more focused and deterministic. If set to 0, the model will use + [log probability](https://en.wikipedia.org/wiki/Log_probability) to + automatically increase the temperature until certain thresholds are hit. + """ + + timestamp_granularities: List[Literal["word", "segment"]] + """The timestamp granularities to populate for this transcription. + + `response_format` must be set `verbose_json` to use timestamp granularities. + Either or both of these options are supported: `word`, or `segment`. Note: There + is no additional latency for segment timestamps, but generating word timestamps + incurs additional latency. + """ + + url: str + """ + The audio URL to translate/transcribe (supports Base64URL). Either a file or a + URL must be provided. For Batch API requests, the URL field is required since + the file field is not supported. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/translation.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/translation.py new file mode 100644 index 0000000000000000000000000000000000000000..efc56f7f9b2303e3ce9f0c5075f1d7cf3bb8812c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/translation.py @@ -0,0 +1,9 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel + +__all__ = ["Translation"] + + +class Translation(BaseModel): + text: str diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/translation_create_params.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/translation_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..c5894cceb64ed521ebd9556e759434c663910f98 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/audio/translation_create_params.py @@ -0,0 +1,53 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypedDict + +from ..._types import FileTypes + +__all__ = ["TranslationCreateParams"] + + +class TranslationCreateParams(TypedDict, total=False): + model: Required[Union[str, Literal["whisper-large-v3", "whisper-large-v3-turbo"]]] + """ID of the model to use. + + `whisper-large-v3` and `whisper-large-v3-turbo` are currently available. + """ + + file: FileTypes + """ + The audio file object (not file name) translate, in one of these formats: flac, + mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. + """ + + prompt: str + """An optional text to guide the model's style or continue a previous audio + segment. + + The [prompt](/docs/guides/speech-to-text/prompting) should be in English. + """ + + response_format: Literal["json", "text", "verbose_json"] + """ + The format of the transcript output, in one of these options: `json`, `text`, or + `verbose_json`. + """ + + temperature: float + """The sampling temperature, between 0 and 1. + + Higher values like 0.8 will make the output more random, while lower values like + 0.2 will make it more focused and deterministic. If set to 0, the model will use + [log probability](https://en.wikipedia.org/wiki/Log_probability) to + automatically increase the temperature until certain thresholds are hit. + """ + + url: str + """The audio URL to translate/transcribe (supports Base64URL). + + Either file or url must be provided. When using the Batch API only url is + supported. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_cancel_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_cancel_response.py new file mode 100644 index 0000000000000000000000000000000000000000..f03170be5a8154fd923d49ba93d077199feff266 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_cancel_response.py @@ -0,0 +1,107 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import builtins +from typing import List, Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["BatchCancelResponse", "Errors", "ErrorsData", "RequestCounts"] + + +class ErrorsData(BaseModel): + code: Optional[str] = None + """An error code identifying the error type.""" + + line: Optional[int] = None + """The line number of the input file where the error occurred, if applicable.""" + + message: Optional[str] = None + """A human-readable message providing more details about the error.""" + + param: Optional[str] = None + """The name of the parameter that caused the error, if applicable.""" + + +class Errors(BaseModel): + data: Optional[List[ErrorsData]] = None + + object: Optional[str] = None + """The object type, which is always `list`.""" + + +class RequestCounts(BaseModel): + completed: int + """Number of requests that have been completed successfully.""" + + failed: int + """Number of requests that have failed.""" + + total: int + """Total number of requests in the batch.""" + + +class BatchCancelResponse(BaseModel): + id: str + + completion_window: str + """The time frame within which the batch should be processed.""" + + created_at: int + """The Unix timestamp (in seconds) for when the batch was created.""" + + endpoint: str + """The API endpoint used by the batch.""" + + input_file_id: str + """The ID of the input file for the batch.""" + + object: Literal["batch"] + """The object type, which is always `batch`.""" + + status: Literal[ + "validating", "failed", "in_progress", "finalizing", "completed", "expired", "cancelling", "cancelled" + ] + """The current status of the batch.""" + + cancelled_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was cancelled.""" + + cancelling_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started cancelling.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was completed.""" + + error_file_id: Optional[str] = None + """The ID of the file containing the outputs of requests with errors.""" + + errors: Optional[Errors] = None + + expired_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch expired.""" + + expires_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch will expire.""" + + failed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch failed.""" + + finalizing_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started finalizing.""" + + in_progress_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started processing.""" + + metadata: Optional[builtins.object] = None + """Set of key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. + """ + + output_file_id: Optional[str] = None + """The ID of the file containing the outputs of successfully executed requests.""" + + request_counts: Optional[RequestCounts] = None + """The request counts for different statuses within the batch.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_create_params.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..e1f68a0b97f53251cd9a52a9e80334f7df8c152b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_create_params.py @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, Optional +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BatchCreateParams"] + + +class BatchCreateParams(TypedDict, total=False): + completion_window: Required[str] + """The time frame within which the batch should be processed. + + Durations from `24h` to `7d` are supported. + """ + + endpoint: Required[Literal["/v1/chat/completions"]] + """The endpoint to be used for all requests in the batch. + + Currently `/v1/chat/completions` is supported. + """ + + input_file_id: Required[str] + """The ID of an uploaded file that contains requests for the new batch. + + See [upload file](/docs/api-reference#files-upload) for how to upload a file. + + Your input file must be formatted as a [JSONL file](/docs/batch), and must be + uploaded with the purpose `batch`. The file can be up to 100 MB in size. + """ + + metadata: Optional[Dict[str, str]] + """Optional custom metadata for the batch.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_create_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_create_response.py new file mode 100644 index 0000000000000000000000000000000000000000..8f0a8ab1d49cd52fc94a2cf296dcbf9827af7ccc --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_create_response.py @@ -0,0 +1,107 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import builtins +from typing import List, Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["BatchCreateResponse", "Errors", "ErrorsData", "RequestCounts"] + + +class ErrorsData(BaseModel): + code: Optional[str] = None + """An error code identifying the error type.""" + + line: Optional[int] = None + """The line number of the input file where the error occurred, if applicable.""" + + message: Optional[str] = None + """A human-readable message providing more details about the error.""" + + param: Optional[str] = None + """The name of the parameter that caused the error, if applicable.""" + + +class Errors(BaseModel): + data: Optional[List[ErrorsData]] = None + + object: Optional[str] = None + """The object type, which is always `list`.""" + + +class RequestCounts(BaseModel): + completed: int + """Number of requests that have been completed successfully.""" + + failed: int + """Number of requests that have failed.""" + + total: int + """Total number of requests in the batch.""" + + +class BatchCreateResponse(BaseModel): + id: str + + completion_window: str + """The time frame within which the batch should be processed.""" + + created_at: int + """The Unix timestamp (in seconds) for when the batch was created.""" + + endpoint: str + """The API endpoint used by the batch.""" + + input_file_id: str + """The ID of the input file for the batch.""" + + object: Literal["batch"] + """The object type, which is always `batch`.""" + + status: Literal[ + "validating", "failed", "in_progress", "finalizing", "completed", "expired", "cancelling", "cancelled" + ] + """The current status of the batch.""" + + cancelled_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was cancelled.""" + + cancelling_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started cancelling.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was completed.""" + + error_file_id: Optional[str] = None + """The ID of the file containing the outputs of requests with errors.""" + + errors: Optional[Errors] = None + + expired_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch expired.""" + + expires_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch will expire.""" + + failed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch failed.""" + + finalizing_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started finalizing.""" + + in_progress_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started processing.""" + + metadata: Optional[builtins.object] = None + """Set of key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. + """ + + output_file_id: Optional[str] = None + """The ID of the file containing the outputs of successfully executed requests.""" + + request_counts: Optional[RequestCounts] = None + """The request counts for different statuses within the batch.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_list_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_list_response.py new file mode 100644 index 0000000000000000000000000000000000000000..a6b3389bba7052f7bc5a8d25729f8f2117a2b5d0 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_list_response.py @@ -0,0 +1,113 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import builtins +from typing import List, Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["BatchListResponse", "Data", "DataErrors", "DataErrorsData", "DataRequestCounts"] + + +class DataErrorsData(BaseModel): + code: Optional[str] = None + """An error code identifying the error type.""" + + line: Optional[int] = None + """The line number of the input file where the error occurred, if applicable.""" + + message: Optional[str] = None + """A human-readable message providing more details about the error.""" + + param: Optional[str] = None + """The name of the parameter that caused the error, if applicable.""" + + +class DataErrors(BaseModel): + data: Optional[List[DataErrorsData]] = None + + object: Optional[str] = None + """The object type, which is always `list`.""" + + +class DataRequestCounts(BaseModel): + completed: int + """Number of requests that have been completed successfully.""" + + failed: int + """Number of requests that have failed.""" + + total: int + """Total number of requests in the batch.""" + + +class Data(BaseModel): + id: str + + completion_window: str + """The time frame within which the batch should be processed.""" + + created_at: int + """The Unix timestamp (in seconds) for when the batch was created.""" + + endpoint: str + """The API endpoint used by the batch.""" + + input_file_id: str + """The ID of the input file for the batch.""" + + object: Literal["batch"] + """The object type, which is always `batch`.""" + + status: Literal[ + "validating", "failed", "in_progress", "finalizing", "completed", "expired", "cancelling", "cancelled" + ] + """The current status of the batch.""" + + cancelled_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was cancelled.""" + + cancelling_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started cancelling.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was completed.""" + + error_file_id: Optional[str] = None + """The ID of the file containing the outputs of requests with errors.""" + + errors: Optional[DataErrors] = None + + expired_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch expired.""" + + expires_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch will expire.""" + + failed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch failed.""" + + finalizing_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started finalizing.""" + + in_progress_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started processing.""" + + metadata: Optional[builtins.object] = None + """Set of key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. + """ + + output_file_id: Optional[str] = None + """The ID of the file containing the outputs of successfully executed requests.""" + + request_counts: Optional[DataRequestCounts] = None + """The request counts for different statuses within the batch.""" + + +class BatchListResponse(BaseModel): + data: List[Data] + + object: Literal["list"] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_retrieve_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_retrieve_response.py new file mode 100644 index 0000000000000000000000000000000000000000..ddc8ab6c91b2bc074efde494ce81e3d53bc90f7c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/batch_retrieve_response.py @@ -0,0 +1,107 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import builtins +from typing import List, Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["BatchRetrieveResponse", "Errors", "ErrorsData", "RequestCounts"] + + +class ErrorsData(BaseModel): + code: Optional[str] = None + """An error code identifying the error type.""" + + line: Optional[int] = None + """The line number of the input file where the error occurred, if applicable.""" + + message: Optional[str] = None + """A human-readable message providing more details about the error.""" + + param: Optional[str] = None + """The name of the parameter that caused the error, if applicable.""" + + +class Errors(BaseModel): + data: Optional[List[ErrorsData]] = None + + object: Optional[str] = None + """The object type, which is always `list`.""" + + +class RequestCounts(BaseModel): + completed: int + """Number of requests that have been completed successfully.""" + + failed: int + """Number of requests that have failed.""" + + total: int + """Total number of requests in the batch.""" + + +class BatchRetrieveResponse(BaseModel): + id: str + + completion_window: str + """The time frame within which the batch should be processed.""" + + created_at: int + """The Unix timestamp (in seconds) for when the batch was created.""" + + endpoint: str + """The API endpoint used by the batch.""" + + input_file_id: str + """The ID of the input file for the batch.""" + + object: Literal["batch"] + """The object type, which is always `batch`.""" + + status: Literal[ + "validating", "failed", "in_progress", "finalizing", "completed", "expired", "cancelling", "cancelled" + ] + """The current status of the batch.""" + + cancelled_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was cancelled.""" + + cancelling_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started cancelling.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch was completed.""" + + error_file_id: Optional[str] = None + """The ID of the file containing the outputs of requests with errors.""" + + errors: Optional[Errors] = None + + expired_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch expired.""" + + expires_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch will expire.""" + + failed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch failed.""" + + finalizing_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started finalizing.""" + + in_progress_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the batch started processing.""" + + metadata: Optional[builtins.object] = None + """Set of key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. + """ + + output_file_id: Optional[str] = None + """The ID of the file containing the outputs of successfully executed requests.""" + + request_counts: Optional[RequestCounts] = None + """The request counts for different statuses within the batch.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..5d122d2020f21362d9a0df8a86122a80953678e4 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__init__.py @@ -0,0 +1,41 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .chat_completion import ChatCompletion as ChatCompletion +from .chat_completion_role import ChatCompletionRole as ChatCompletionRole +from .chat_completion_chunk import ChatCompletionChunk as ChatCompletionChunk +from .chat_completion_message import ChatCompletionMessage as ChatCompletionMessage +from .completion_create_params import CompletionCreateParams as CompletionCreateParams +from .chat_completion_tool_param import ChatCompletionToolParam as ChatCompletionToolParam +from .chat_completion_message_param import ChatCompletionMessageParam as ChatCompletionMessageParam +from .chat_completion_token_logprob import ChatCompletionTokenLogprob as ChatCompletionTokenLogprob +from .chat_completion_message_tool_call import ChatCompletionMessageToolCall as ChatCompletionMessageToolCall +from .chat_completion_content_part_param import ChatCompletionContentPartParam as ChatCompletionContentPartParam +from .chat_completion_tool_message_param import ChatCompletionToolMessageParam as ChatCompletionToolMessageParam +from .chat_completion_user_message_param import ChatCompletionUserMessageParam as ChatCompletionUserMessageParam +from .chat_completion_system_message_param import ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam +from .chat_completion_function_message_param import ( + ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, +) +from .chat_completion_assistant_message_param import ( + ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, +) +from .chat_completion_content_part_text_param import ( + ChatCompletionContentPartTextParam as ChatCompletionContentPartTextParam, +) +from .chat_completion_message_tool_call_param import ( + ChatCompletionMessageToolCallParam as ChatCompletionMessageToolCallParam, +) +from .chat_completion_named_tool_choice_param import ( + ChatCompletionNamedToolChoiceParam as ChatCompletionNamedToolChoiceParam, +) +from .chat_completion_content_part_image_param import ( + ChatCompletionContentPartImageParam as ChatCompletionContentPartImageParam, +) +from .chat_completion_tool_choice_option_param import ( + ChatCompletionToolChoiceOptionParam as ChatCompletionToolChoiceOptionParam, +) +from .chat_completion_function_call_option_param import ( + ChatCompletionFunctionCallOptionParam as ChatCompletionFunctionCallOptionParam, +) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4339ca01020f88bb99adace37b16dfeb0101cad8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1e8e21cdcf27727a625d26c8d4707ead67f4ec88 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7b20d85f8b0205e7e99ee82192a5ee2697e53571 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70569afcf7d046d170ea5172bbe445415df0500c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ef84783f27e918db14e19a40a5a34f07a4955ba2 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c96902272ac46387f5ca795d21443ee6bdadc811 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e13985d32fc3a40904a96e6c30e544f3b960d6cc Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..55a55c6442e73fceb9bd8cbf57228a28216dad15 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bd7a97aa620eb178cd7237a8d5dad84898554465 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8f390bdd53e510ed11be45ca88f6461ad37278cc Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..21e39559a3bf8858866da3ab51a921a5189850cf Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..85f32801ac70aa7e58ca5bf6f3a037d393b5be2d Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cda67945db1f77128511ff0a121d1503c722ecbc Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4c1744ac3800e15b7c494c686063c1a9e2ed8051 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_role.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_role.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0f28b2b76c726721440ca1fcde6550c81860a0ca Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_role.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee259fc2274407cfce407b654035a0c6adfe9a51 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..73f1d2bcd6dbd285313f0883fb8737964ce6e3f3 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..216894cdc6bbb431a3ad1cf4500480d04a4514fb Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c6bb23c3789d93538f19aeaa6027a2c059109dbe Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e03ffb5b34b66ceefd26c9ea2a82209a0d2de3c6 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..df885af7bb2b676ddd1d4d082f97a23774c681e8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/completion_create_params.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/completion_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19aa8429de73de168fa9543155a3dfa8d46996a5 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/__pycache__/completion_create_params.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion.py new file mode 100644 index 0000000000000000000000000000000000000000..1499040fd42ddca7695392b9007ac564d2ea6294 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion.py @@ -0,0 +1,178 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Dict, List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from ..completion_usage import CompletionUsage +from .chat_completion_message import ChatCompletionMessage +from .chat_completion_token_logprob import ChatCompletionTokenLogprob + +__all__ = [ + "ChatCompletion", + "Choice", + "ChoiceLogprobs", + "McpListTool", + "McpListToolTool", + "UsageBreakdown", + "UsageBreakdownModel", + "XGroq", + "XGroqDebug", + "XGroqUsage", +] + + +class ChoiceLogprobs(BaseModel): + content: Optional[List[ChatCompletionTokenLogprob]] = None + """A list of message content tokens with log probability information.""" + + +class Choice(BaseModel): + finish_reason: Literal["stop", "length", "tool_calls", "function_call"] + """The reason the model stopped generating tokens. + + This will be `stop` if the model hit a natural stop point or a provided stop + sequence, `length` if the maximum number of tokens specified in the request was + reached, `tool_calls` if the model called a tool, or `function_call` + (deprecated) if the model called a function. + """ + + index: int + """The index of the choice in the list of choices.""" + + logprobs: Optional[ChoiceLogprobs] = None + """Log probability information for the choice.""" + + message: ChatCompletionMessage + """A chat completion message generated by the model.""" + + +class McpListToolTool(BaseModel): + annotations: Optional[object] = None + """Additional metadata for the tool.""" + + description: Optional[str] = None + """Description of what the tool does.""" + + input_schema: Optional[Dict[str, object]] = None + """JSON Schema describing the tool's input parameters.""" + + name: Optional[str] = None + """The name of the tool.""" + + +class McpListTool(BaseModel): + id: Optional[str] = None + """Unique identifier for this tool list response.""" + + server_label: Optional[str] = None + """Human-readable label for the MCP server.""" + + tools: Optional[List[McpListToolTool]] = None + """Array of discovered tools from the server.""" + + type: Optional[str] = None + """The type identifier.""" + + +class UsageBreakdownModel(BaseModel): + model: str + """The name/identifier of the model used""" + + usage: CompletionUsage + """Usage statistics for the completion request.""" + + +class UsageBreakdown(BaseModel): + models: List[UsageBreakdownModel] + """List of models used in the request and their individual usage statistics""" + + +class XGroqDebug(BaseModel): + input_token_ids: Optional[List[int]] = None + """Token IDs for the input.""" + + input_tokens: Optional[List[str]] = None + """Token strings for the input.""" + + output_token_ids: Optional[List[int]] = None + """Token IDs for the output.""" + + output_tokens: Optional[List[str]] = None + """Token strings for the output.""" + + +class XGroqUsage(BaseModel): + dram_cached_tokens: Optional[int] = None + """Number of tokens served from DRAM cache.""" + + sram_cached_tokens: Optional[int] = None + """Number of tokens served from SRAM cache.""" + + +class XGroq(BaseModel): + id: str + """ + A groq request ID which can be used to refer to a specific request to groq + support. + """ + + debug: Optional[XGroqDebug] = None + """Debug information including input and output token IDs and strings. + + Only present when debug=true in the request. + """ + + seed: Optional[int] = None + """The seed used for the request. + + See the seed property on CreateChatCompletionRequest for more details. + """ + + usage: Optional[XGroqUsage] = None + """Additional Groq-specific usage metrics (hardware cache statistics).""" + + +class ChatCompletion(BaseModel): + id: str + """A unique identifier for the chat completion.""" + + choices: List[Choice] + """A list of chat completion choices. + + Can be more than one if `n` is greater than 1. + """ + + created: int + """The Unix timestamp (in seconds) of when the chat completion was created.""" + + model: str + """The model used for the chat completion.""" + + object: Literal["chat.completion"] + """The object type, which is always `chat.completion`.""" + + mcp_list_tools: Optional[List[McpListTool]] = None + """List of discovered MCP tools from connected servers.""" + + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] = None + """The service tier used for the request.""" + + system_fingerprint: Optional[str] = None + """This fingerprint represents the backend configuration that the model runs with. + + Can be used in conjunction with the `seed` request parameter to understand when + backend changes have been made that might impact determinism. + """ + + usage: Optional[CompletionUsage] = None + """Usage statistics for the completion request.""" + + usage_breakdown: Optional[UsageBreakdown] = None + """ + Detailed usage breakdown by model when multiple models are used in the request + for compound AI systems. + """ + + x_groq: Optional[XGroq] = None + """Groq-specific metadata for non-streaming chat completion responses.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_assistant_message_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_assistant_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..e96242a5386c657b475f9c255b2f2aca7ac25f6d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_assistant_message_param.py @@ -0,0 +1,58 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam +from .chat_completion_message_tool_call_param import ChatCompletionMessageToolCallParam + +__all__ = ["ChatCompletionAssistantMessageParam", "FunctionCall"] + + +class FunctionCall(TypedDict, total=False): + arguments: str + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: str + """The name of the function to call.""" + + +class ChatCompletionAssistantMessageParam(TypedDict, total=False): + role: Required[Literal["assistant"]] + """The role of the messages author, in this case `assistant`.""" + + content: Union[str, Iterable[ChatCompletionContentPartTextParam], None] + """The contents of the assistant message. + + Required unless `tool_calls` or `function_call` is specified. + """ + + function_call: FunctionCall + """Deprecated and replaced by `tool_calls`. + + The name and arguments of a function that should be called, as generated by the + model. + """ + + name: str + """An optional name for the participant. + + Provides the model information to differentiate between participants of the same + role. + """ + + reasoning: Optional[str] + """ + The reasoning output by the assistant if reasoning_format was set to 'parsed'. + This field is only useable with qwen3 models. + """ + + tool_calls: Iterable[ChatCompletionMessageToolCallParam] + """The tool calls generated by the model, such as function calls.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_chunk.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_chunk.py new file mode 100644 index 0000000000000000000000000000000000000000..08a0070617e77b1a8a5db4cb4af0f4dc7e5e5faa --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_chunk.py @@ -0,0 +1,224 @@ +# File Manually added to support streaming +# File is in libs instead of models to avoid conflicts with stainless bot + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from ..completion_usage import CompletionUsage +from .chat_completion_message import Annotation, ExecutedTool +from .chat_completion_token_logprob import ChatCompletionTokenLogprob + +__all__ = [ + "ChatCompletionChunk", + "Choice", + "ChoiceDelta", + "ChoiceDeltaFunctionCall", + "ChoiceDeltaToolCall", + "ChoiceDeltaToolCallFunction", + "ChoiceLogprobs", + "XGroq", + "XGroqDebug", + "UsageBreakdown", + "UsageBreakdownModel", +] + + +class ChoiceDeltaFunctionCall(BaseModel): + arguments: Optional[str] = None + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: Optional[str] = None + """The name of the function to call.""" + + +class ChoiceDeltaToolCallFunction(BaseModel): + arguments: Optional[str] = None + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: Optional[str] = None + """The name of the function to call.""" + + +class ChoiceDeltaToolCall(BaseModel): + index: int + + id: Optional[str] = None + """The ID of the tool call.""" + + function: Optional[ChoiceDeltaToolCallFunction] = None + + type: Optional[Literal["function"]] = None + """The type of the tool. Currently, only `function` is supported.""" + + +class ChoiceDelta(BaseModel): + content: Optional[str] = None + """The contents of the chunk message.""" + + annotations: Optional[List[Annotation]] = None + """ + A list of annotations providing citations and references for the content in the + message. + """ + + function_call: Optional[ChoiceDeltaFunctionCall] = None + """Deprecated and replaced by `tool_calls`. + + The name and arguments of a function that should be called, as generated by the + model. + """ + + reasoning: Optional[str] = None + """The model's reasoning for a response. + + Only available for reasoning models when requests parameter reasoning_format has + value `parsed. + """ + + role: Optional[Literal["system", "user", "assistant", "tool"]] = None + """The role of the author of this message.""" + + tool_calls: Optional[List[ChoiceDeltaToolCall]] = None + + executed_tools: Optional[List[ExecutedTool]] = None + """ + A list of tools that were executed during the chat completion for compound AI + systems. + """ + + +class ChoiceLogprobs(BaseModel): + content: Optional[List[ChatCompletionTokenLogprob]] = None + """A list of message content tokens with log probability information.""" + + +class UsageBreakdownModel(BaseModel): + model: str + """The name/identifier of the model used""" + + usage: CompletionUsage + """Usage statistics for the completion request.""" + + +class UsageBreakdown(BaseModel): + models: List[UsageBreakdownModel] + """List of models used in the request and their individual usage statistics""" + + +class XGroqDebug(BaseModel): + input_token_ids: Optional[List[int]] = None + """Token IDs for the input.""" + + input_tokens: Optional[List[str]] = None + """Token strings for the input.""" + + output_token_ids: Optional[List[int]] = None + """Token IDs for the output.""" + + output_tokens: Optional[List[str]] = None + """Token strings for the output.""" + + +class Choice(BaseModel): + delta: ChoiceDelta + """A chat completion delta generated by streamed model responses.""" + + finish_reason: Optional[Literal["stop", "length", "tool_calls", "content_filter", "function_call"]] = None + """The reason the model stopped generating tokens. + + This will be `stop` if the model hit a natural stop point or a provided stop + sequence, `length` if the maximum number of tokens specified in the request was + reached, `content_filter` if content was omitted due to a flag from our content + filters, `tool_calls` if the model called a tool, or `function_call` + (deprecated) if the model called a function. + """ + + index: int + """The index of the choice in the list of choices.""" + + logprobs: Optional[ChoiceLogprobs] = None + """Log probability information for the choice.""" + + +class XGroq(BaseModel): + id: Optional[str] = None + """ + A groq request ID which can be used to refer to a specific request to groq support. + Sent only in the first and final chunk. + """ + + debug: Optional[XGroqDebug] = None + """Debug information including input and output token IDs and strings. + + Only present when debug=true in the request. + """ + + seed: Optional[int] = None + """The seed used for the request. Sent in the final chunk.""" + + usage: Optional[CompletionUsage] = None + """Usage information for the stream. Only sent in the final chunk.""" + + usage_breakdown: Optional[UsageBreakdown] = None + """ + Detailed usage breakdown by model when multiple models are used in the request + for compound AI systems. Only sent in the final chunk. + """ + + error: Optional[str] = None + """An error string indicating why a stream was stopped early.""" + + +class ChatCompletionChunk(BaseModel): + id: str + """A unique identifier for the chat completion. Each chunk has the same ID.""" + + choices: List[Choice] + """A list of chat completion choices. + + Can contain more than one elements if `n` is greater than 1. Can also be empty + for the last chunk if you set `stream_options: {"include_usage": true}`. + """ + + created: int + """The Unix timestamp (in seconds) of when the chat completion was created. + + Each chunk has the same timestamp. + """ + + model: str + """The model to generate the completion.""" + + object: Literal["chat.completion.chunk"] + """The object type, which is always `chat.completion.chunk`.""" + + system_fingerprint: Optional[str] = None + """ + This fingerprint represents the backend configuration that the model runs with. + Can be used in conjunction with the `seed` request parameter to understand when + backend changes have been made that might impact determinism. + """ + + usage: Optional[CompletionUsage] = None + """ + An optional field that will only be present when you set + `stream_options: {"include_usage": true}` in your request. When present, it + contains a null value except for the last chunk which contains the token usage + statistics for the entire request. + """ + + x_groq: Optional[XGroq] = None + """ + Additional metadata provided by groq. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_image_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_image_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c1e08418cd94dada217b472bc4f145d7aad963ce --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_image_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionContentPartImageParam", "ImageURL"] + + +class ImageURL(TypedDict, total=False): + url: Required[str] + """Either a URL of the image or the base64 encoded image data.""" + + detail: Literal["auto", "low", "high"] + """Specifies the detail level of the image.""" + + +class ChatCompletionContentPartImageParam(TypedDict, total=False): + image_url: Required[ImageURL] + + type: Required[Literal["image_url"]] + """The type of the content part.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_param.py new file mode 100644 index 0000000000000000000000000000000000000000..52af3a4895ab83511c027a0dd9d35d41bfb050d9 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_param.py @@ -0,0 +1,37 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, Union, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam +from .chat_completion_content_part_image_param import ChatCompletionContentPartImageParam + +__all__ = [ + "ChatCompletionContentPartParam", + "ChatCompletionRequestMessageContentPartDocument", + "ChatCompletionRequestMessageContentPartDocumentDocument", +] + + +class ChatCompletionRequestMessageContentPartDocumentDocument(TypedDict, total=False): + data: Required[Dict[str, object]] + """The JSON document data.""" + + id: Optional[str] + """Optional unique identifier for the document.""" + + +class ChatCompletionRequestMessageContentPartDocument(TypedDict, total=False): + document: Required[ChatCompletionRequestMessageContentPartDocumentDocument] + + type: Required[Literal["document"]] + """The type of the content part.""" + + +ChatCompletionContentPartParam: TypeAlias = Union[ + ChatCompletionContentPartTextParam, + ChatCompletionContentPartImageParam, + ChatCompletionRequestMessageContentPartDocument, +] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_text_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_text_param.py new file mode 100644 index 0000000000000000000000000000000000000000..a270744417f80d53119823c1adc17a458ac600ec --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_content_part_text_param.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionContentPartTextParam"] + + +class ChatCompletionContentPartTextParam(TypedDict, total=False): + text: Required[str] + """The text content.""" + + type: Required[Literal["text"]] + """The type of the content part.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_function_call_option_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_function_call_option_param.py new file mode 100644 index 0000000000000000000000000000000000000000..2bc014af7a5f78d0c0c5627dcb9ae558e581b958 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_function_call_option_param.py @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Required, TypedDict + +__all__ = ["ChatCompletionFunctionCallOptionParam"] + + +class ChatCompletionFunctionCallOptionParam(TypedDict, total=False): + name: Required[str] + """The name of the function to call.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_function_message_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_function_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..5af12bf94faaba1b66a7c6104227ac0ea5aa38c0 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_function_message_param.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionFunctionMessageParam"] + + +class ChatCompletionFunctionMessageParam(TypedDict, total=False): + content: Required[Optional[str]] + """The contents of the function message.""" + + name: Required[str] + """The name of the function to call.""" + + role: Required[Literal["function"]] + """The role of the messages author, in this case `function`.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message.py new file mode 100644 index 0000000000000000000000000000000000000000..b57905ab455c561ab18a05301f7ba08918b26a00 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message.py @@ -0,0 +1,261 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from .chat_completion_message_tool_call import ChatCompletionMessageToolCall + +__all__ = [ + "ChatCompletionMessage", + "Annotation", + "AnnotationDocumentCitation", + "AnnotationFunctionCitation", + "ExecutedTool", + "ExecutedToolBrowserResult", + "ExecutedToolCodeResult", + "ExecutedToolCodeResultChart", + "ExecutedToolCodeResultChartElement", + "ExecutedToolSearchResults", + "ExecutedToolSearchResultsResult", + "FunctionCall", +] + + +class AnnotationDocumentCitation(BaseModel): + document_id: str + """ + The ID of the document being cited, corresponding to a document provided in the + request. + """ + + end_index: int + """The character index in the message content where this citation ends.""" + + start_index: int + """The character index in the message content where this citation begins.""" + + +class AnnotationFunctionCitation(BaseModel): + end_index: int + """The character index in the message content where this citation ends.""" + + start_index: int + """The character index in the message content where this citation begins.""" + + tool_call_id: str + """ + The ID of the tool call being cited, corresponding to a tool call made during + the conversation. + """ + + +class Annotation(BaseModel): + type: Literal["document_citation", "function_citation"] + """The type of annotation.""" + + document_citation: Optional[AnnotationDocumentCitation] = None + """A citation referencing a specific document that was provided in the request.""" + + function_citation: Optional[AnnotationFunctionCitation] = None + """A citation referencing the result of a function or tool call.""" + + +class ExecutedToolBrowserResult(BaseModel): + title: str + """The title of the browser window""" + + url: str + """The URL of the browser window""" + + content: Optional[str] = None + """The content of the browser result""" + + live_view_url: Optional[str] = None + """The live view URL for the browser window""" + + +class ExecutedToolCodeResultChartElement(BaseModel): + label: str + """The label for this chart element""" + + angle: Optional[float] = None + """The angle for this element""" + + first_quartile: Optional[float] = None + """The first quartile value for this element""" + + group: Optional[str] = None + """The group this element belongs to""" + + max: Optional[float] = None + + median: Optional[float] = None + """The median value for this element""" + + min: Optional[float] = None + """The minimum value for this element""" + + outliers: Optional[List[float]] = None + """The outliers for this element""" + + points: Optional[List[List[float]]] = None + """The points for this element""" + + radius: Optional[float] = None + """The radius for this element""" + + third_quartile: Optional[float] = None + """The third quartile value for this element""" + + value: Optional[float] = None + """The value for this element""" + + +class ExecutedToolCodeResultChart(BaseModel): + elements: List[ExecutedToolCodeResultChartElement] + """The chart elements (data series, points, etc.)""" + + type: Literal["bar", "box_and_whisker", "line", "pie", "scatter", "superchart", "unknown"] + """The type of chart""" + + title: Optional[str] = None + """The title of the chart""" + + x_label: Optional[str] = None + """The label for the x-axis""" + + x_scale: Optional[str] = None + """The scale type for the x-axis""" + + x_tick_labels: Optional[List[str]] = None + """The labels for the x-axis ticks""" + + x_ticks: Optional[List[float]] = None + """The tick values for the x-axis""" + + x_unit: Optional[str] = None + """The unit for the x-axis""" + + y_label: Optional[str] = None + """The label for the y-axis""" + + y_scale: Optional[str] = None + """The scale type for the y-axis""" + + y_tick_labels: Optional[List[str]] = None + """The labels for the y-axis ticks""" + + y_ticks: Optional[List[float]] = None + """The tick values for the y-axis""" + + y_unit: Optional[str] = None + """The unit for the y-axis""" + + +class ExecutedToolCodeResult(BaseModel): + chart: Optional[ExecutedToolCodeResultChart] = None + + charts: Optional[List[ExecutedToolCodeResultChart]] = None + """Array of charts from a superchart""" + + png: Optional[str] = None + """Base64 encoded PNG image output from code execution""" + + text: Optional[str] = None + """The text version of the code execution result""" + + +class ExecutedToolSearchResultsResult(BaseModel): + content: Optional[str] = None + """The content of the search result""" + + score: Optional[float] = None + """The relevance score of the search result""" + + title: Optional[str] = None + """The title of the search result""" + + url: Optional[str] = None + """The URL of the search result""" + + +class ExecutedToolSearchResults(BaseModel): + images: Optional[List[str]] = None + """List of image URLs returned by the search""" + + results: Optional[List[ExecutedToolSearchResultsResult]] = None + """List of search results""" + + +class ExecutedTool(BaseModel): + arguments: str + """The arguments passed to the tool in JSON format.""" + + index: int + """The index of the executed tool.""" + + type: str + """The type of tool that was executed.""" + + browser_results: Optional[List[ExecutedToolBrowserResult]] = None + """Array of browser results""" + + code_results: Optional[List[ExecutedToolCodeResult]] = None + """Array of code execution results""" + + output: Optional[str] = None + """The output returned by the tool.""" + + search_results: Optional[ExecutedToolSearchResults] = None + """The search results returned by the tool, if applicable.""" + + +class FunctionCall(BaseModel): + arguments: str + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: str + """The name of the function to call.""" + + +class ChatCompletionMessage(BaseModel): + content: Optional[str] = None + """The contents of the message.""" + + role: Literal["assistant"] + """The role of the author of this message.""" + + annotations: Optional[List[Annotation]] = None + """ + A list of annotations providing citations and references for the content in the + message. + """ + + executed_tools: Optional[List[ExecutedTool]] = None + """ + A list of tools that were executed during the chat completion for compound AI + systems. + """ + + function_call: Optional[FunctionCall] = None + """Deprecated and replaced by `tool_calls`. + + The name and arguments of a function that should be called, as generated by the + model. + """ + + reasoning: Optional[str] = None + """The model's reasoning for a response. + + Only available for reasoning models when requests parameter reasoning_format has + value `parsed. + """ + + tool_calls: Optional[List[ChatCompletionMessageToolCall]] = None + """The tool calls generated by the model, such as function calls.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..ec65d94caebb0e9365ed418d41f41772a882fb28 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .chat_completion_tool_message_param import ChatCompletionToolMessageParam +from .chat_completion_user_message_param import ChatCompletionUserMessageParam +from .chat_completion_system_message_param import ChatCompletionSystemMessageParam +from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam +from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam + +__all__ = ["ChatCompletionMessageParam"] + +ChatCompletionMessageParam: TypeAlias = Union[ + ChatCompletionSystemMessageParam, + ChatCompletionUserMessageParam, + ChatCompletionAssistantMessageParam, + ChatCompletionToolMessageParam, + ChatCompletionFunctionMessageParam, +] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_tool_call.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..4fec667096f3c6cf5e9bd9a94d9fcacf203f0c77 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_tool_call.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["ChatCompletionMessageToolCall", "Function"] + + +class Function(BaseModel): + arguments: str + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: str + """The name of the function to call.""" + + +class ChatCompletionMessageToolCall(BaseModel): + id: str + """The ID of the tool call.""" + + function: Function + """The function that the model called.""" + + type: Literal["function"] + """The type of the tool. Currently, only `function` is supported.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_tool_call_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_tool_call_param.py new file mode 100644 index 0000000000000000000000000000000000000000..f616c363d01cac5f419766bd4610f3e9a5c5e9fb --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_message_tool_call_param.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionMessageToolCallParam", "Function"] + + +class Function(TypedDict, total=False): + arguments: Required[str] + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: Required[str] + """The name of the function to call.""" + + +class ChatCompletionMessageToolCallParam(TypedDict, total=False): + id: Required[str] + """The ID of the tool call.""" + + function: Required[Function] + """The function that the model called.""" + + type: Required[Literal["function"]] + """The type of the tool. Currently, only `function` is supported.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_named_tool_choice_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_named_tool_choice_param.py new file mode 100644 index 0000000000000000000000000000000000000000..369f8b42dd4ffe179464e7fd32f22065baf94b3f --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_named_tool_choice_param.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionNamedToolChoiceParam", "Function"] + + +class Function(TypedDict, total=False): + name: Required[str] + """The name of the function to call.""" + + +class ChatCompletionNamedToolChoiceParam(TypedDict, total=False): + function: Required[Function] + + type: Required[Literal["function"]] + """The type of the tool. Currently, only `function` is supported.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_role.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_role.py new file mode 100644 index 0000000000000000000000000000000000000000..c2ebef74c872604a60c4b88b919e6710de0f36cd --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_role.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal, TypeAlias + +__all__ = ["ChatCompletionRole"] + +ChatCompletionRole: TypeAlias = Literal["system", "user", "assistant", "tool", "function"] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_system_message_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_system_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..5367ff2abd0e8cec5cbf95b3c9839d57850797de --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_system_message_param.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam + +__all__ = ["ChatCompletionSystemMessageParam"] + + +class ChatCompletionSystemMessageParam(TypedDict, total=False): + content: Required[Union[str, Iterable[ChatCompletionContentPartTextParam]]] + """The contents of the system message.""" + + role: Required[Literal["system", "developer"]] + """The role of the messages author, in this case `system`.""" + + name: str + """An optional name for the participant. + + Provides the model information to differentiate between participants of the same + role. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_token_logprob.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_token_logprob.py new file mode 100644 index 0000000000000000000000000000000000000000..c69e258910d2390b98345a21ee52c78b966c4d76 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_token_logprob.py @@ -0,0 +1,57 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional + +from ..._models import BaseModel + +__all__ = ["ChatCompletionTokenLogprob", "TopLogprob"] + + +class TopLogprob(BaseModel): + token: str + """The token.""" + + bytes: Optional[List[int]] = None + """A list of integers representing the UTF-8 bytes representation of the token. + + Useful in instances where characters are represented by multiple tokens and + their byte representations must be combined to generate the correct text + representation. Can be `null` if there is no bytes representation for the token. + """ + + logprob: float + """The log probability of this token, if it is within the top 20 most likely + tokens. + + Otherwise, the value `-9999.0` is used to signify that the token is very + unlikely. + """ + + +class ChatCompletionTokenLogprob(BaseModel): + token: str + """The token.""" + + bytes: Optional[List[int]] = None + """A list of integers representing the UTF-8 bytes representation of the token. + + Useful in instances where characters are represented by multiple tokens and + their byte representations must be combined to generate the correct text + representation. Can be `null` if there is no bytes representation for the token. + """ + + logprob: float + """The log probability of this token, if it is within the top 20 most likely + tokens. + + Otherwise, the value `-9999.0` is used to signify that the token is very + unlikely. + """ + + top_logprobs: List[TopLogprob] + """List of the most likely tokens and their log probability, at this token + position. + + In rare cases, there may be fewer than the number of requested `top_logprobs` + returned. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_choice_option_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_choice_option_param.py new file mode 100644 index 0000000000000000000000000000000000000000..7dedf041b797befe982983b313730b2b8994a85e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_choice_option_param.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, TypeAlias + +from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam + +__all__ = ["ChatCompletionToolChoiceOptionParam"] + +ChatCompletionToolChoiceOptionParam: TypeAlias = Union[ + Literal["none", "auto", "required"], ChatCompletionNamedToolChoiceParam +] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_message_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..7363bf0cb7515266af4d582f92fe2381f7ec4571 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_message_param.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_param import ChatCompletionContentPartParam + +__all__ = ["ChatCompletionToolMessageParam"] + + +class ChatCompletionToolMessageParam(TypedDict, total=False): + content: Required[Union[str, Iterable[ChatCompletionContentPartParam]]] + """The contents of the tool message.""" + + role: Required[Literal["tool"]] + """The role of the messages author, in this case `tool`.""" + + tool_call_id: Required[str] + """Tool call that this message is responding to.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_param.py new file mode 100644 index 0000000000000000000000000000000000000000..b5c4097c84ba0fe156ff2b819793e40cc5911b88 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_tool_param.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypedDict + +from ..shared_params.function_definition import FunctionDefinition + +__all__ = ["ChatCompletionToolParam"] + + +class ChatCompletionToolParam(TypedDict, total=False): + type: Required[Union[Literal["function", "browser_search", "code_interpreter"], str]] + """The type of the tool. + + `function`, `browser_search`, and `code_interpreter` are supported. + """ + + function: FunctionDefinition diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_user_message_param.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_user_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..5c15322a229eb738ea00f4c5c8bd458272f123fa --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/chat_completion_user_message_param.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_param import ChatCompletionContentPartParam + +__all__ = ["ChatCompletionUserMessageParam"] + + +class ChatCompletionUserMessageParam(TypedDict, total=False): + content: Required[Union[str, Iterable[ChatCompletionContentPartParam]]] + """The contents of the user message.""" + + role: Required[Literal["user"]] + """The role of the messages author, in this case `user`.""" + + name: str + """An optional name for the participant. + + Provides the model information to differentiate between participants of the same + role. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/completion_create_params.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/completion_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..13f222f45e8451752cc3aae15967c4a5e7d73749 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/chat/completion_create_params.py @@ -0,0 +1,447 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ..._types import SequenceNotStr +from .chat_completion_tool_param import ChatCompletionToolParam +from .chat_completion_message_param import ChatCompletionMessageParam +from ..shared_params.function_parameters import FunctionParameters +from .chat_completion_tool_choice_option_param import ChatCompletionToolChoiceOptionParam +from .chat_completion_function_call_option_param import ChatCompletionFunctionCallOptionParam + +__all__ = [ + "CompletionCreateParams", + "CompoundCustom", + "CompoundCustomModels", + "CompoundCustomTools", + "CompoundCustomToolsWolframSettings", + "Document", + "DocumentSource", + "DocumentSourceChatCompletionDocumentSourceText", + "DocumentSourceChatCompletionDocumentSourceJson", + "FunctionCall", + "Function", + "ResponseFormat", + "ResponseFormatResponseFormatText", + "ResponseFormatResponseFormatJsonSchema", + "ResponseFormatResponseFormatJsonSchemaJsonSchema", + "ResponseFormatResponseFormatJsonObject", + "SearchSettings", +] + + +class CompletionCreateParams(TypedDict, total=False): + messages: Required[Iterable[ChatCompletionMessageParam]] + """A list of messages comprising the conversation so far.""" + + model: Required[ + Union[ + str, + Literal[ + "compound-beta", + "compound-beta-mini", + "gemma2-9b-it", + "llama-3.1-8b-instant", + "llama-3.3-70b-versatile", + "meta-llama/llama-4-maverick-17b-128e-instruct", + "meta-llama/llama-4-scout-17b-16e-instruct", + "meta-llama/llama-guard-4-12b", + "moonshotai/kimi-k2-instruct", + "openai/gpt-oss-120b", + "openai/gpt-oss-20b", + "qwen/qwen3-32b", + ], + ] + ] + """ID of the model to use. + + For details on which models are compatible with the Chat API, see available + [models](https://console.groq.com/docs/models) + """ + + citation_options: Optional[Literal["enabled", "disabled"]] + """Whether to enable citations in the response. + + When enabled, the model will include citations for information retrieved from + provided documents or web searches. + """ + + compound_custom: Optional[CompoundCustom] + """Custom configuration of models and tools for Compound.""" + + disable_tool_validation: bool + """ + If set to true, groq will return called tools without validating that the tool + is present in request.tools. tool_choice=required/none will still be enforced, + but the request cannot require a specific tool be used. + """ + + documents: Optional[Iterable[Document]] + """A list of documents to provide context for the conversation. + + Each document contains text that can be referenced by the model. + """ + + exclude_domains: Optional[SequenceNotStr[str]] + """ + Deprecated: Use search_settings.exclude_domains instead. A list of domains to + exclude from the search results when the model uses a web search tool. + """ + + frequency_penalty: Optional[float] + """This is not yet supported by any of our models. + + Number between -2.0 and 2.0. Positive values penalize new tokens based on their + existing frequency in the text so far, decreasing the model's likelihood to + repeat the same line verbatim. + """ + + function_call: Optional[FunctionCall] + """Deprecated in favor of `tool_choice`. + + Controls which (if any) function is called by the model. `none` means the model + will not call a function and instead generates a message. `auto` means the model + can pick between generating a message or calling a function. Specifying a + particular function via `{"name": "my_function"}` forces the model to call that + function. + + `none` is the default when no functions are present. `auto` is the default if + functions are present. + """ + + functions: Optional[Iterable[Function]] + """Deprecated in favor of `tools`. + + A list of functions the model may generate JSON inputs for. + """ + + include_domains: Optional[SequenceNotStr[str]] + """ + Deprecated: Use search_settings.include_domains instead. A list of domains to + include in the search results when the model uses a web search tool. + """ + + include_reasoning: Optional[bool] + """Whether to include reasoning in the response. + + If true, the response will include a `reasoning` field. If false, the model's + reasoning will not be included in the response. This field is mutually exclusive + with `reasoning_format`. + """ + + logit_bias: Optional[Dict[str, int]] + """ + This is not yet supported by any of our models. Modify the likelihood of + specified tokens appearing in the completion. + """ + + logprobs: Optional[bool] + """ + This is not yet supported by any of our models. Whether to return log + probabilities of the output tokens or not. If true, returns the log + probabilities of each output token returned in the `content` of `message`. + """ + + max_completion_tokens: Optional[int] + """The maximum number of tokens that can be generated in the chat completion. + + The total length of input tokens and generated tokens is limited by the model's + context length. + """ + + max_tokens: Optional[int] + """ + Deprecated in favor of `max_completion_tokens`. The maximum number of tokens + that can be generated in the chat completion. The total length of input tokens + and generated tokens is limited by the model's context length. + """ + + metadata: Optional[Dict[str, str]] + """This parameter is not currently supported.""" + + n: Optional[int] + """How many chat completion choices to generate for each input message. + + Note that the current moment, only n=1 is supported. Other values will result in + a 400 response. + """ + + parallel_tool_calls: Optional[bool] + """Whether to enable parallel function calling during tool use.""" + + presence_penalty: Optional[float] + """This is not yet supported by any of our models. + + Number between -2.0 and 2.0. Positive values penalize new tokens based on + whether they appear in the text so far, increasing the model's likelihood to + talk about new topics. + """ + + reasoning_effort: Optional[Literal["none", "default", "low", "medium", "high"]] + """ + qwen3 models support the following values Set to 'none' to disable reasoning. + Set to 'default' or null to let Qwen reason. + + openai/gpt-oss-20b and openai/gpt-oss-120b support 'low', 'medium', or 'high'. + 'medium' is the default value. + """ + + reasoning_format: Optional[Literal["hidden", "raw", "parsed"]] + """ + Specifies how to output reasoning tokens This field is mutually exclusive with + `include_reasoning`. + """ + + response_format: Optional[ResponseFormat] + """An object specifying the format that the model must output. + + Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + Outputs which ensures the model will match your supplied JSON schema. + `json_schema` response format is only available on + [supported models](https://console.groq.com/docs/structured-outputs#supported-models). + Setting to `{ "type": "json_object" }` enables the older JSON mode, which + ensures the message the model generates is valid JSON. Using `json_schema` is + preferred for models that support it. + """ + + search_settings: Optional[SearchSettings] + """Settings for web search functionality when the model uses a web search tool.""" + + seed: Optional[int] + """ + If specified, our system will make a best effort to sample deterministically, + such that repeated requests with the same `seed` and parameters should return + the same result. Determinism is not guaranteed, and you should refer to the + `system_fingerprint` response parameter to monitor changes in the backend. + """ + + service_tier: Optional[Literal["auto", "on_demand", "flex", "performance"]] + """The service tier to use for the request. Defaults to `on_demand`. + + - `auto` will automatically select the highest tier available within the rate + limits of your organization. + - `flex` uses the flex tier, which will succeed or fail quickly. + """ + + stop: Union[Optional[str], SequenceNotStr[str], None] + """Up to 4 sequences where the API will stop generating further tokens. + + The returned text will not contain the stop sequence. + """ + + store: Optional[bool] + """This parameter is not currently supported.""" + + stream: Optional[bool] + """If set, partial message deltas will be sent. + + Tokens will be sent as data-only + [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) + as they become available, with the stream terminated by a `data: [DONE]` + message. [Example code](/docs/text-chat#streaming-a-chat-completion). + """ + + temperature: Optional[float] + """What sampling temperature to use, between 0 and 2. + + Higher values like 0.8 will make the output more random, while lower values like + 0.2 will make it more focused and deterministic. We generally recommend altering + this or top_p but not both. + """ + + tool_choice: Optional[ChatCompletionToolChoiceOptionParam] + """ + Controls which (if any) tool is called by the model. `none` means the model will + not call any tool and instead generates a message. `auto` means the model can + pick between generating a message or calling one or more tools. `required` means + the model must call one or more tools. Specifying a particular tool via + `{"type": "function", "function": {"name": "my_function"}}` forces the model to + call that tool. + + `none` is the default when no tools are present. `auto` is the default if tools + are present. + """ + + tools: Optional[Iterable[ChatCompletionToolParam]] + """A list of tools the model may call. + + Currently, only functions are supported as a tool. Use this to provide a list of + functions the model may generate JSON inputs for. A max of 128 functions are + supported. + """ + + top_logprobs: Optional[int] + """ + This is not yet supported by any of our models. An integer between 0 and 20 + specifying the number of most likely tokens to return at each token position, + each with an associated log probability. `logprobs` must be set to `true` if + this parameter is used. + """ + + top_p: Optional[float] + """ + An alternative to sampling with temperature, called nucleus sampling, where the + model considers the results of the tokens with top_p probability mass. So 0.1 + means only the tokens comprising the top 10% probability mass are considered. We + generally recommend altering this or temperature but not both. + """ + + user: Optional[str] + """ + A unique identifier representing your end-user, which can help us monitor and + detect abuse. + """ + + +class CompoundCustomModels(TypedDict, total=False): + answering_model: Optional[str] + """Custom model to use for answering.""" + + reasoning_model: Optional[str] + """Custom model to use for reasoning.""" + + +class CompoundCustomToolsWolframSettings(TypedDict, total=False): + authorization: Optional[str] + """API key used to authorize requests to Wolfram services.""" + + +class CompoundCustomTools(TypedDict, total=False): + enabled_tools: Optional[SequenceNotStr[str]] + """A list of tool names that are enabled for the request.""" + + wolfram_settings: Optional[CompoundCustomToolsWolframSettings] + """Configuration for the Wolfram tool integration.""" + + +class CompoundCustom(TypedDict, total=False): + models: Optional[CompoundCustomModels] + + tools: Optional[CompoundCustomTools] + """Configuration options for tools available to Compound.""" + + +class DocumentSourceChatCompletionDocumentSourceText(TypedDict, total=False): + text: Required[str] + """The document contents.""" + + type: Required[Literal["text"]] + """Identifies this document source as inline text.""" + + +class DocumentSourceChatCompletionDocumentSourceJson(TypedDict, total=False): + data: Required[Dict[str, object]] + """The JSON payload associated with the document.""" + + type: Required[Literal["json"]] + """Identifies this document source as JSON data.""" + + +DocumentSource: TypeAlias = Union[ + DocumentSourceChatCompletionDocumentSourceText, DocumentSourceChatCompletionDocumentSourceJson +] + + +class Document(TypedDict, total=False): + source: Required[DocumentSource] + """The source of the document. Only text and JSON sources are currently supported.""" + + id: Optional[str] + """Optional unique identifier that can be used for citations in responses.""" + + +FunctionCall: TypeAlias = Union[Literal["none", "auto", "required"], ChatCompletionFunctionCallOptionParam] + + +class Function(TypedDict, total=False): + name: Required[str] + """The name of the function to be called. + + Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length + of 64. + """ + + description: str + """ + A description of what the function does, used by the model to choose when and + how to call the function. + """ + + parameters: FunctionParameters + """Function parameters defined as a JSON Schema object. + + Refer to https://json-schema.org/understanding-json-schema/ for schema + documentation. + """ + + +class ResponseFormatResponseFormatText(TypedDict, total=False): + type: Required[Literal["text"]] + """The type of response format being defined. Always `text`.""" + + +class ResponseFormatResponseFormatJsonSchemaJsonSchema(TypedDict, total=False): + name: Required[str] + """The name of the response format. + + Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length + of 64. + """ + + description: str + """ + A description of what the response format is for, used by the model to determine + how to respond in the format. + """ + + schema: Dict[str, object] + """ + The schema for the response format, described as a JSON Schema object. Learn how + to build JSON schemas [here](https://json-schema.org/). + """ + + strict: Optional[bool] + """Whether to enable strict schema adherence when generating the output. + + If set to true, the model will always follow the exact schema defined in the + `schema` field. Only a subset of JSON Schema is supported when `strict` is + `true`. + """ + + +class ResponseFormatResponseFormatJsonSchema(TypedDict, total=False): + json_schema: Required[ResponseFormatResponseFormatJsonSchemaJsonSchema] + """Structured Outputs configuration options, including a JSON Schema.""" + + type: Required[Literal["json_schema"]] + """The type of response format being defined. Always `json_schema`.""" + + +class ResponseFormatResponseFormatJsonObject(TypedDict, total=False): + type: Required[Literal["json_object"]] + """The type of response format being defined. Always `json_object`.""" + + +ResponseFormat: TypeAlias = Union[ + ResponseFormatResponseFormatText, ResponseFormatResponseFormatJsonSchema, ResponseFormatResponseFormatJsonObject +] + + +class SearchSettings(TypedDict, total=False): + country: Optional[str] + """ + Name of country to prioritize search results from (e.g., "united states", + "germany", "france"). + """ + + exclude_domains: Optional[SequenceNotStr[str]] + """A list of domains to exclude from the search results.""" + + include_domains: Optional[SequenceNotStr[str]] + """A list of domains to include in the search results.""" + + include_images: Optional[bool] + """Whether to include images in the search results.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/completion_usage.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/completion_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..b367ea48feb393c319fe6b591dcaa4d76c990471 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/completion_usage.py @@ -0,0 +1,46 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from .._models import BaseModel + +__all__ = ["CompletionUsage", "CompletionTokensDetails", "PromptTokensDetails"] + + +class CompletionTokensDetails(BaseModel): + reasoning_tokens: int + """Number of tokens used for reasoning (for reasoning models).""" + + +class PromptTokensDetails(BaseModel): + cached_tokens: int + """Number of tokens that were cached and reused.""" + + +class CompletionUsage(BaseModel): + completion_tokens: int + """Number of tokens in the generated completion.""" + + prompt_tokens: int + """Number of tokens in the prompt.""" + + total_tokens: int + """Total number of tokens used in the request (prompt + completion).""" + + completion_time: Optional[float] = None + """Time spent generating tokens""" + + completion_tokens_details: Optional[CompletionTokensDetails] = None + """Breakdown of tokens in the completion.""" + + prompt_time: Optional[float] = None + """Time spent processing input tokens""" + + prompt_tokens_details: Optional[PromptTokensDetails] = None + """Breakdown of tokens in the prompt.""" + + queue_time: Optional[float] = None + """Time the requests was spent queued""" + + total_time: Optional[float] = None + """completion time and prompt time combined""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/create_embedding_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/create_embedding_response.py new file mode 100644 index 0000000000000000000000000000000000000000..eff247a11279ce4c6c0d2af36665fddbdafc9411 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/create_embedding_response.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List +from typing_extensions import Literal + +from .._models import BaseModel +from .embedding import Embedding + +__all__ = ["CreateEmbeddingResponse", "Usage"] + + +class Usage(BaseModel): + prompt_tokens: int + """The number of tokens used by the prompt.""" + + total_tokens: int + """The total number of tokens used by the request.""" + + +class CreateEmbeddingResponse(BaseModel): + data: List[Embedding] + """The list of embeddings generated by the model.""" + + model: str + """The name of the model used to generate the embedding.""" + + object: Literal["list"] + """The object type, which is always "list".""" + + usage: Usage + """The usage information for the request.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/embedding.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/embedding.py new file mode 100644 index 0000000000000000000000000000000000000000..6dad3c34aa22843390cf596839e892558d589ae2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/embedding.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["Embedding"] + + +class Embedding(BaseModel): + embedding: Union[List[float], str] + """The embedding vector, which is a list of floats. + + The length of vector depends on the model as listed in the + [embedding guide](/docs/guides/embeddings). + """ + + index: int + """The index of the embedding in the list of embeddings.""" + + object: Literal["embedding"] + """The object type, which is always "embedding".""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/embedding_create_params.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/embedding_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..5aba4b854b9f322dfaf0058cfdc2462caba51f78 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/embedding_create_params.py @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Optional +from typing_extensions import Literal, Required, TypedDict + +from .._types import SequenceNotStr + +__all__ = ["EmbeddingCreateParams"] + + +class EmbeddingCreateParams(TypedDict, total=False): + input: Required[Union[str, SequenceNotStr[str]]] + """Input text to embed, encoded as a string or array of tokens. + + To embed multiple inputs in a single request, pass an array of strings or array + of token arrays. The input must not exceed the max input tokens for the model, + cannot be an empty string, and any array must be 2048 dimensions or less. + """ + + model: Required[Union[str, Literal["nomic-embed-text-v1_5"]]] + """ID of the model to use.""" + + encoding_format: Literal["float", "base64"] + """The format to return the embeddings in. Can only be `float` or `base64`.""" + + user: Optional[str] + """ + A unique identifier representing your end-user, which can help us monitor and + detect abuse. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_create_params.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..54d645d04df64a8802e22c9b6d9d3131cca23844 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_create_params.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from .._types import FileTypes + +__all__ = ["FileCreateParams"] + + +class FileCreateParams(TypedDict, total=False): + file: Required[FileTypes] + """The File object (not file name) to be uploaded.""" + + purpose: Required[Literal["batch"]] + """ + The intended purpose of the uploaded file. Use "batch" for + [Batch API](/docs/api-reference#batches). + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_create_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_create_response.py new file mode 100644 index 0000000000000000000000000000000000000000..bc0a0a91e8a7c87d9fa1bd83892d81de8557cd89 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_create_response.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["FileCreateResponse"] + + +class FileCreateResponse(BaseModel): + id: Optional[str] = None + """The file identifier, which can be referenced in the API endpoints.""" + + bytes: Optional[int] = None + """The size of the file, in bytes.""" + + created_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the file was created.""" + + filename: Optional[str] = None + """The name of the file.""" + + object: Optional[Literal["file"]] = None + """The object type, which is always `file`.""" + + purpose: Optional[Literal["batch", "batch_output"]] = None + """The intended purpose of the file. + + Supported values are `batch`, and `batch_output`. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_delete_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_delete_response.py new file mode 100644 index 0000000000000000000000000000000000000000..26e2e0537162ca210be1cc9061f6969751a78634 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_delete_response.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["FileDeleteResponse"] + + +class FileDeleteResponse(BaseModel): + id: str + + deleted: bool + + object: Literal["file"] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_info_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_info_response.py new file mode 100644 index 0000000000000000000000000000000000000000..cfc848e6284e140de9ff859cb26cf883b314bfd2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_info_response.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["FileInfoResponse"] + + +class FileInfoResponse(BaseModel): + id: Optional[str] = None + """The file identifier, which can be referenced in the API endpoints.""" + + bytes: Optional[int] = None + """The size of the file, in bytes.""" + + created_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the file was created.""" + + filename: Optional[str] = None + """The name of the file.""" + + object: Optional[Literal["file"]] = None + """The object type, which is always `file`.""" + + purpose: Optional[Literal["batch", "batch_output"]] = None + """The intended purpose of the file. + + Supported values are `batch`, and `batch_output`. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_list_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_list_response.py new file mode 100644 index 0000000000000000000000000000000000000000..b42d3d07ac9f21309575256166ab9f3d6e40cbb0 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/file_list_response.py @@ -0,0 +1,37 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["FileListResponse", "Data"] + + +class Data(BaseModel): + id: Optional[str] = None + """The file identifier, which can be referenced in the API endpoints.""" + + bytes: Optional[int] = None + """The size of the file, in bytes.""" + + created_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the file was created.""" + + filename: Optional[str] = None + """The name of the file.""" + + object: Optional[Literal["file"]] = None + """The object type, which is always `file`.""" + + purpose: Optional[Literal["batch", "batch_output"]] = None + """The intended purpose of the file. + + Supported values are `batch`, and `batch_output`. + """ + + +class FileListResponse(BaseModel): + data: List[Data] + + object: Literal["list"] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model.py new file mode 100644 index 0000000000000000000000000000000000000000..2631ee8d1a9da956f4b1ba2f1f055ef1f1868dd0 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["Model"] + + +class Model(BaseModel): + id: str + """The model identifier, which can be referenced in the API endpoints.""" + + created: int + """The Unix timestamp (in seconds) when the model was created.""" + + object: Literal["model"] + """The object type, which is always "model".""" + + owned_by: str + """The organization that owns the model.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model_deleted.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model_deleted.py new file mode 100644 index 0000000000000000000000000000000000000000..e7601f74e4938fa1970e01a45f32bb413d14ac99 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model_deleted.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from .._models import BaseModel + +__all__ = ["ModelDeleted"] + + +class ModelDeleted(BaseModel): + id: str + + deleted: bool + + object: str diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model_list_response.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model_list_response.py new file mode 100644 index 0000000000000000000000000000000000000000..8f8354495f3e969a744b0dff50a6a19fd56bfa1c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/model_list_response.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List +from typing_extensions import Literal + +from .model import Model +from .._models import BaseModel + +__all__ = ["ModelListResponse"] + + +class ModelListResponse(BaseModel): + data: List[Model] + + object: Literal["list"] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e085744e290fb280d75d4b006d8f34f6000a47be --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__init__.py @@ -0,0 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from .error_object import ErrorObject as ErrorObject +from .function_definition import FunctionDefinition as FunctionDefinition +from .function_parameters import FunctionParameters as FunctionParameters diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5150fc6dbe76c180e3fae3977444d8c67c1fa7f6 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/error_object.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/error_object.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3abf1e5f8748f9237382c93eaf15f37c05f983e7 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/error_object.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/function_definition.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/function_definition.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c91cda132e70edb317c65dd71bc4e070a7a504ab Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/function_definition.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/function_parameters.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/function_parameters.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee141a0203773fd91821bc32de819dbe8239a9fb Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/__pycache__/function_parameters.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/error_object.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/error_object.py new file mode 100644 index 0000000000000000000000000000000000000000..f5cd4694104c04c44ae3694a0632bd3402e10ccf --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/error_object.py @@ -0,0 +1,48 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional + +from ..._models import BaseModel + +__all__ = ["ErrorObject", "Debug"] + + +class Debug(BaseModel): + input_token_ids: Optional[List[int]] = None + """Token IDs for the input.""" + + input_tokens: Optional[List[str]] = None + """Token strings for the input.""" + + output_token_ids: Optional[List[int]] = None + """Token IDs for the output.""" + + output_tokens: Optional[List[str]] = None + """Token strings for the output.""" + + +class ErrorObject(BaseModel): + message: str + + type: str + + code: Optional[str] = None + + debug: Optional[Debug] = None + """Debug information including input and output token IDs and strings. + + Only present when debug=true in the request. + """ + + failed_generation: Optional[str] = None + + param: Optional[str] = None + + schema_code: Optional[str] = None + + schema_kind: Optional[str] = None + + schema_path: Optional[str] = None + + schema_path_segments: Optional[List[str]] = None + """Segments of the schema path relevant to validation errors.""" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/function_definition.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/function_definition.py new file mode 100644 index 0000000000000000000000000000000000000000..c3041f07488ae9e8d797c0d24f46d1592139a6e8 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/function_definition.py @@ -0,0 +1,38 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ..._models import BaseModel +from .function_parameters import FunctionParameters + +__all__ = ["FunctionDefinition"] + + +class FunctionDefinition(BaseModel): + name: str + """The name of the function to be called. + + Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length + of 64. + """ + + description: Optional[str] = None + """ + A description of what the function does, used by the model to choose when and + how to call the function. + """ + + parameters: Optional[FunctionParameters] = None + """Function parameters defined as a JSON Schema object. + + Refer to https://json-schema.org/understanding-json-schema/ for schema + documentation. + """ + + strict: Optional[bool] = None + """Whether to enable strict schema adherence when generating the output. + + If set to true, the model will always follow the exact schema defined in the + `schema` field. Only a subset of JSON Schema is supported when `strict` is + `true`. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/function_parameters.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/function_parameters.py new file mode 100644 index 0000000000000000000000000000000000000000..a3d83e3496f94ba1ff63ca2b1088ac48a64d07f2 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared/function_parameters.py @@ -0,0 +1,8 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Dict +from typing_extensions import TypeAlias + +__all__ = ["FunctionParameters"] + +FunctionParameters: TypeAlias = Dict[str, object] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..ef638cb27921bfb8c402906e77e0b60989debce1 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__init__.py @@ -0,0 +1,4 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from .function_definition import FunctionDefinition as FunctionDefinition +from .function_parameters import FunctionParameters as FunctionParameters diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..db3e389a8eebcf432d6f5f38ab2a74525b914182 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/function_definition.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/function_definition.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bb17455e688e6cbcf8cc9bfeb00605789d88d336 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/function_definition.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/function_parameters.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/function_parameters.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0022863d3dee80f0d60f442d6e41999333355d0f Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/__pycache__/function_parameters.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/function_definition.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/function_definition.py new file mode 100644 index 0000000000000000000000000000000000000000..4e359cf2631b4a031710bd625bb30acebbd7d7cd --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/function_definition.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Required, TypedDict + +from .function_parameters import FunctionParameters + +__all__ = ["FunctionDefinition"] + + +class FunctionDefinition(TypedDict, total=False): + name: Required[str] + """The name of the function to be called. + + Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length + of 64. + """ + + description: str + """ + A description of what the function does, used by the model to choose when and + how to call the function. + """ + + parameters: FunctionParameters + """Function parameters defined as a JSON Schema object. + + Refer to https://json-schema.org/understanding-json-schema/ for schema + documentation. + """ + + strict: bool + """Whether to enable strict schema adherence when generating the output. + + If set to true, the model will always follow the exact schema defined in the + `schema` field. Only a subset of JSON Schema is supported when `strict` is + `true`. + """ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/function_parameters.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/function_parameters.py new file mode 100644 index 0000000000000000000000000000000000000000..45fc742d3ba84a7ec508b1122fe106c23f484a78 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/groq/types/shared_params/function_parameters.py @@ -0,0 +1,10 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict +from typing_extensions import TypeAlias + +__all__ = ["FunctionParameters"] + +FunctionParameters: TypeAlias = Dict[str, object] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/INSTALLER b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a1b589e38a32041e49332e5e81c2d363dc418d68 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/METADATA b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..8a2f639061cc4a203f7109d8335d28076442c61d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/METADATA @@ -0,0 +1,202 @@ +Metadata-Version: 2.4 +Name: h11 +Version: 0.16.0 +Summary: A pure-Python, bring-your-own-I/O implementation of HTTP/1.1 +Home-page: https://github.com/python-hyper/h11 +Author: Nathaniel J. Smith +Author-email: njs@pobox.com +License: MIT +Classifier: Development Status :: 3 - Alpha +Classifier: Intended Audience :: Developers +Classifier: License :: OSI Approved :: MIT License +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Topic :: Internet :: WWW/HTTP +Classifier: Topic :: System :: Networking +Requires-Python: >=3.8 +License-File: LICENSE.txt +Dynamic: author +Dynamic: author-email +Dynamic: classifier +Dynamic: description +Dynamic: home-page +Dynamic: license +Dynamic: license-file +Dynamic: requires-python +Dynamic: summary + +h11 +=== + +.. image:: https://travis-ci.org/python-hyper/h11.svg?branch=master + :target: https://travis-ci.org/python-hyper/h11 + :alt: Automated test status + +.. image:: https://codecov.io/gh/python-hyper/h11/branch/master/graph/badge.svg + :target: https://codecov.io/gh/python-hyper/h11 + :alt: Test coverage + +.. image:: https://readthedocs.org/projects/h11/badge/?version=latest + :target: http://h11.readthedocs.io/en/latest/?badge=latest + :alt: Documentation Status + +This is a little HTTP/1.1 library written from scratch in Python, +heavily inspired by `hyper-h2 `_. + +It's a "bring-your-own-I/O" library; h11 contains no IO code +whatsoever. This means you can hook h11 up to your favorite network +API, and that could be anything you want: synchronous, threaded, +asynchronous, or your own implementation of `RFC 6214 +`_ -- h11 won't judge you. +(Compare this to the current state of the art, where every time a `new +network API `_ comes along then someone +gets to start over reimplementing the entire HTTP protocol from +scratch.) Cory Benfield made an `excellent blog post describing the +benefits of this approach +`_, or if you like video +then here's his `PyCon 2016 talk on the same theme +`_. + +This also means that h11 is not immediately useful out of the box: +it's a toolkit for building programs that speak HTTP, not something +that could directly replace ``requests`` or ``twisted.web`` or +whatever. But h11 makes it much easier to implement something like +``requests`` or ``twisted.web``. + +At a high level, working with h11 goes like this: + +1) First, create an ``h11.Connection`` object to track the state of a + single HTTP/1.1 connection. + +2) When you read data off the network, pass it to + ``conn.receive_data(...)``; you'll get back a list of objects + representing high-level HTTP "events". + +3) When you want to send a high-level HTTP event, create the + corresponding "event" object and pass it to ``conn.send(...)``; + this will give you back some bytes that you can then push out + through the network. + +For example, a client might instantiate and then send a +``h11.Request`` object, then zero or more ``h11.Data`` objects for the +request body (e.g., if this is a POST), and then a +``h11.EndOfMessage`` to indicate the end of the message. Then the +server would then send back a ``h11.Response``, some ``h11.Data``, and +its own ``h11.EndOfMessage``. If either side violates the protocol, +you'll get a ``h11.ProtocolError`` exception. + +h11 is suitable for implementing both servers and clients, and has a +pleasantly symmetric API: the events you send as a client are exactly +the ones that you receive as a server and vice-versa. + +`Here's an example of a tiny HTTP client +`_ + +It also has `a fine manual `_. + +FAQ +--- + +*Whyyyyy?* + +I wanted to play with HTTP in `Curio +`__ and `Trio +`__, which at the time didn't have any +HTTP libraries. So I thought, no big deal, Python has, like, a dozen +different implementations of HTTP, surely I can find one that's +reusable. I didn't find one, but I did find Cory's call-to-arms +blog-post. So I figured, well, fine, if I have to implement HTTP from +scratch, at least I can make sure no-one *else* has to ever again. + +*Should I use it?* + +Maybe. You should be aware that it's a very young project. But, it's +feature complete and has an exhaustive test-suite and complete docs, +so the next step is for people to try using it and see how it goes +:-). If you do then please let us know -- if nothing else we'll want +to talk to you before making any incompatible changes! + +*What are the features/limitations?* + +Roughly speaking, it's trying to be a robust, complete, and non-hacky +implementation of the first "chapter" of the HTTP/1.1 spec: `RFC 7230: +HTTP/1.1 Message Syntax and Routing +`_. That is, it mostly focuses on +implementing HTTP at the level of taking bytes on and off the wire, +and the headers related to that, and tries to be anal about spec +conformance. It doesn't know about higher-level concerns like URL +routing, conditional GETs, cross-origin cookie policies, or content +negotiation. But it does know how to take care of framing, +cross-version differences in keep-alive handling, and the "obsolete +line folding" rule, so you can focus your energies on the hard / +interesting parts for your application, and it tries to support the +full specification in the sense that any useful HTTP/1.1 conformant +application should be able to use h11. + +It's pure Python, and has no dependencies outside of the standard +library. + +It has a test suite with 100.0% coverage for both statements and +branches. + +Currently it supports Python 3 (testing on 3.8-3.12) and PyPy 3. +The last Python 2-compatible version was h11 0.11.x. +(Originally it had a Cython wrapper for `http-parser +`_ and a beautiful nested state +machine implemented with ``yield from`` to postprocess the output. But +I had to take these out -- the new *parser* needs fewer lines-of-code +than the old *parser wrapper*, is written in pure Python, uses no +exotic language syntax, and has more features. It's sad, really; that +old state machine was really slick. I just need a few sentences here +to mourn that.) + +I don't know how fast it is. I haven't benchmarked or profiled it yet, +so it's probably got a few pointless hot spots, and I've been trying +to err on the side of simplicity and robustness instead of +micro-optimization. But at the architectural level I tried hard to +avoid fundamentally bad decisions, e.g., I believe that all the +parsing algorithms remain linear-time even in the face of pathological +input like slowloris, and there are no byte-by-byte loops. (I also +believe that it maintains bounded memory usage in the face of +arbitrary/pathological input.) + +The whole library is ~800 lines-of-code. You can read and understand +the whole thing in less than an hour. Most of the energy invested in +this so far has been spent on trying to keep things simple by +minimizing special-cases and ad hoc state manipulation; even though it +is now quite small and simple, I'm still annoyed that I haven't +figured out how to make it even smaller and simpler. (Unfortunately, +HTTP does not lend itself to simplicity.) + +The API is ~feature complete and I don't expect the general outlines +to change much, but you can't judge an API's ergonomics until you +actually document and use it, so I'd expect some changes in the +details. + +*How do I try it?* + +.. code-block:: sh + + $ pip install h11 + $ git clone git@github.com:python-hyper/h11 + $ cd h11/examples + $ python basic-client.py + +and go from there. + +*License?* + +MIT + +*Code of conduct?* + +Contributors are requested to follow our `code of conduct +`_ in +all project spaces. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/RECORD b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..8768040c3cd11d4e09e697b8fc3b40c693c48cd4 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/RECORD @@ -0,0 +1,29 @@ +h11-0.16.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +h11-0.16.0.dist-info/METADATA,sha256=KPMmCYrAn8unm48YD5YIfIQf4kViFct7hyqcfVzRnWQ,8348 +h11-0.16.0.dist-info/RECORD,, +h11-0.16.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91 +h11-0.16.0.dist-info/licenses/LICENSE.txt,sha256=N9tbuFkm2yikJ6JYZ_ELEjIAOuob5pzLhRE4rbjm82E,1124 +h11-0.16.0.dist-info/top_level.txt,sha256=F7dC4jl3zeh8TGHEPaWJrMbeuoWbS379Gwdi-Yvdcis,4 +h11/__init__.py,sha256=iO1KzkSO42yZ6ffg-VMgbx_ZVTWGUY00nRYEWn-s3kY,1507 +h11/__pycache__/__init__.cpython-311.pyc,, +h11/__pycache__/_abnf.cpython-311.pyc,, +h11/__pycache__/_connection.cpython-311.pyc,, +h11/__pycache__/_events.cpython-311.pyc,, +h11/__pycache__/_headers.cpython-311.pyc,, +h11/__pycache__/_readers.cpython-311.pyc,, +h11/__pycache__/_receivebuffer.cpython-311.pyc,, +h11/__pycache__/_state.cpython-311.pyc,, +h11/__pycache__/_util.cpython-311.pyc,, +h11/__pycache__/_version.cpython-311.pyc,, +h11/__pycache__/_writers.cpython-311.pyc,, +h11/_abnf.py,sha256=ybixr0xsupnkA6GFAyMubuXF6Tc1lb_hF890NgCsfNc,4815 +h11/_connection.py,sha256=k9YRVf6koZqbttBW36xSWaJpWdZwa-xQVU9AHEo9DuI,26863 +h11/_events.py,sha256=I97aXoal1Wu7dkL548BANBUCkOIbe-x5CioYA9IBY14,11792 +h11/_headers.py,sha256=P7D-lBNxHwdLZPLimmYwrPG-9ZkjElvvJZJdZAgSP-4,10412 +h11/_readers.py,sha256=a4RypORUCC3d0q_kxPuBIM7jTD8iLt5X91TH0FsduN4,8590 +h11/_receivebuffer.py,sha256=xrspsdsNgWFxRfQcTXxR8RrdjRXXTK0Io5cQYWpJ1Ws,5252 +h11/_state.py,sha256=_5LG_BGR8FCcFQeBPH-TMHgm_-B-EUcWCnQof_9XjFE,13231 +h11/_util.py,sha256=LWkkjXyJaFlAy6Lt39w73UStklFT5ovcvo0TkY7RYuk,4888 +h11/_version.py,sha256=GVSsbPSPDcOuF6ptfIiXnVJoaEm3ygXbMnqlr_Giahw,686 +h11/_writers.py,sha256=oFKm6PtjeHfbj4RLX7VB7KDc1gIY53gXG3_HR9ltmTA,5081 +h11/py.typed,sha256=sow9soTwP9T_gEAQSVh7Gb8855h04Nwmhs2We-JRgZM,7 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/WHEEL b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..1eb3c49d99559863120cfb8433fc8738fba43ba9 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: setuptools (78.1.0) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/licenses/LICENSE.txt b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/licenses/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..8f080eae848f759c9173bfc0c79506357ebe5090 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/licenses/LICENSE.txt @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2016 Nathaniel J. Smith and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/top_level.txt b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..0d24def711344ec6f4da2108f7d5c9261eb35f8b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11-0.16.0.dist-info/top_level.txt @@ -0,0 +1 @@ +h11 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..989e92c3458681a6f0be72ae4105ea742750d328 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__init__.py @@ -0,0 +1,62 @@ +# A highish-level implementation of the HTTP/1.1 wire protocol (RFC 7230), +# containing no networking code at all, loosely modelled on hyper-h2's generic +# implementation of HTTP/2 (and in particular the h2.connection.H2Connection +# class). There's still a bunch of subtle details you need to get right if you +# want to make this actually useful, because it doesn't implement all the +# semantics to check that what you're asking to write to the wire is sensible, +# but at least it gets you out of dealing with the wire itself. + +from h11._connection import Connection, NEED_DATA, PAUSED +from h11._events import ( + ConnectionClosed, + Data, + EndOfMessage, + Event, + InformationalResponse, + Request, + Response, +) +from h11._state import ( + CLIENT, + CLOSED, + DONE, + ERROR, + IDLE, + MIGHT_SWITCH_PROTOCOL, + MUST_CLOSE, + SEND_BODY, + SEND_RESPONSE, + SERVER, + SWITCHED_PROTOCOL, +) +from h11._util import LocalProtocolError, ProtocolError, RemoteProtocolError +from h11._version import __version__ + +PRODUCT_ID = "python-h11/" + __version__ + + +__all__ = ( + "Connection", + "NEED_DATA", + "PAUSED", + "ConnectionClosed", + "Data", + "EndOfMessage", + "Event", + "InformationalResponse", + "Request", + "Response", + "CLIENT", + "CLOSED", + "DONE", + "ERROR", + "IDLE", + "MUST_CLOSE", + "SEND_BODY", + "SEND_RESPONSE", + "SERVER", + "SWITCHED_PROTOCOL", + "ProtocolError", + "LocalProtocolError", + "RemoteProtocolError", +) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c217bd80a24123690f277ccff74131d6f82caf6e Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_abnf.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_abnf.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d29ac927cce6e3be3039beaf28409fdf505e2d4c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_abnf.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_connection.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_connection.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..829e0bbd47c67cbba077eb5217634d357bb0f848 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_connection.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_events.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_events.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a45300969a4944f5a5a1513035b7f5c552d68e4c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_events.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_headers.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_headers.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f015d7a4900e6a3fa8c563fcf74869fb29d74fba Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_headers.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_readers.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_readers.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ac58bf740922745e85b3a6b5ce64a066f497cc6e Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_readers.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_receivebuffer.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_receivebuffer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ce7e48dcce98726515ec052d5aa3fb2612f70f79 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_receivebuffer.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_state.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_state.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1ac1876ad0752a2f371a30b1f732a45a2ecf8e29 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_state.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_util.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_util.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..07b447782fbc268944729ef31cedc9b3cf61dcf8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_util.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_version.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_version.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..acdb3745ee2f6bb162ae896e68296dbe01cbbff9 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_version.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_writers.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_writers.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..34d892dabf72ff96e187a42d93ff4996f65cf5d0 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/__pycache__/_writers.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_abnf.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_abnf.py new file mode 100644 index 0000000000000000000000000000000000000000..933587fba22290d7eb7df4c88e12f1e61702b8ce --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_abnf.py @@ -0,0 +1,132 @@ +# We use native strings for all the re patterns, to take advantage of string +# formatting, and then convert to bytestrings when compiling the final re +# objects. + +# https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#whitespace +# OWS = *( SP / HTAB ) +# ; optional whitespace +OWS = r"[ \t]*" + +# https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#rule.token.separators +# token = 1*tchar +# +# tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" +# / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~" +# / DIGIT / ALPHA +# ; any VCHAR, except delimiters +token = r"[-!#$%&'*+.^_`|~0-9a-zA-Z]+" + +# https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#header.fields +# field-name = token +field_name = token + +# The standard says: +# +# field-value = *( field-content / obs-fold ) +# field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] +# field-vchar = VCHAR / obs-text +# obs-fold = CRLF 1*( SP / HTAB ) +# ; obsolete line folding +# ; see Section 3.2.4 +# +# https://tools.ietf.org/html/rfc5234#appendix-B.1 +# +# VCHAR = %x21-7E +# ; visible (printing) characters +# +# https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#rule.quoted-string +# obs-text = %x80-FF +# +# However, the standard definition of field-content is WRONG! It disallows +# fields containing a single visible character surrounded by whitespace, +# e.g. "foo a bar". +# +# See: https://www.rfc-editor.org/errata_search.php?rfc=7230&eid=4189 +# +# So our definition of field_content attempts to fix it up... +# +# Also, we allow lots of control characters, because apparently people assume +# that they're legal in practice (e.g., google analytics makes cookies with +# \x01 in them!): +# https://github.com/python-hyper/h11/issues/57 +# We still don't allow NUL or whitespace, because those are often treated as +# meta-characters and letting them through can lead to nasty issues like SSRF. +vchar = r"[\x21-\x7e]" +vchar_or_obs_text = r"[^\x00\s]" +field_vchar = vchar_or_obs_text +field_content = r"{field_vchar}+(?:[ \t]+{field_vchar}+)*".format(**globals()) + +# We handle obs-fold at a different level, and our fixed-up field_content +# already grows to swallow the whole value, so ? instead of * +field_value = r"({field_content})?".format(**globals()) + +# header-field = field-name ":" OWS field-value OWS +header_field = ( + r"(?P{field_name})" + r":" + r"{OWS}" + r"(?P{field_value})" + r"{OWS}".format(**globals()) +) + +# https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#request.line +# +# request-line = method SP request-target SP HTTP-version CRLF +# method = token +# HTTP-version = HTTP-name "/" DIGIT "." DIGIT +# HTTP-name = %x48.54.54.50 ; "HTTP", case-sensitive +# +# request-target is complicated (see RFC 7230 sec 5.3) -- could be path, full +# URL, host+port (for connect), or even "*", but in any case we are guaranteed +# that it contists of the visible printing characters. +method = token +request_target = r"{vchar}+".format(**globals()) +http_version = r"HTTP/(?P[0-9]\.[0-9])" +request_line = ( + r"(?P{method})" + r" " + r"(?P{request_target})" + r" " + r"{http_version}".format(**globals()) +) + +# https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#status.line +# +# status-line = HTTP-version SP status-code SP reason-phrase CRLF +# status-code = 3DIGIT +# reason-phrase = *( HTAB / SP / VCHAR / obs-text ) +status_code = r"[0-9]{3}" +reason_phrase = r"([ \t]|{vchar_or_obs_text})*".format(**globals()) +status_line = ( + r"{http_version}" + r" " + r"(?P{status_code})" + # However, there are apparently a few too many servers out there that just + # leave out the reason phrase: + # https://github.com/scrapy/scrapy/issues/345#issuecomment-281756036 + # https://github.com/seanmonstar/httparse/issues/29 + # so make it optional. ?: is a non-capturing group. + r"(?: (?P{reason_phrase}))?".format(**globals()) +) + +HEXDIG = r"[0-9A-Fa-f]" +# Actually +# +# chunk-size = 1*HEXDIG +# +# but we impose an upper-limit to avoid ridiculosity. len(str(2**64)) == 20 +chunk_size = r"({HEXDIG}){{1,20}}".format(**globals()) +# Actually +# +# chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] ) +# +# but we aren't parsing the things so we don't really care. +chunk_ext = r";.*" +chunk_header = ( + r"(?P{chunk_size})" + r"(?P{chunk_ext})?" + r"{OWS}\r\n".format( + **globals() + ) # Even though the specification does not allow for extra whitespaces, + # we are lenient with trailing whitespaces because some servers on the wild use it. +) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_connection.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_connection.py new file mode 100644 index 0000000000000000000000000000000000000000..e37d82a82a882c072cb938a90eb4486b51cdad99 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_connection.py @@ -0,0 +1,659 @@ +# This contains the main Connection class. Everything in h11 revolves around +# this. +from typing import ( + Any, + Callable, + cast, + Dict, + List, + Optional, + overload, + Tuple, + Type, + Union, +) + +from ._events import ( + ConnectionClosed, + Data, + EndOfMessage, + Event, + InformationalResponse, + Request, + Response, +) +from ._headers import get_comma_header, has_expect_100_continue, set_comma_header +from ._readers import READERS, ReadersType +from ._receivebuffer import ReceiveBuffer +from ._state import ( + _SWITCH_CONNECT, + _SWITCH_UPGRADE, + CLIENT, + ConnectionState, + DONE, + ERROR, + MIGHT_SWITCH_PROTOCOL, + SEND_BODY, + SERVER, + SWITCHED_PROTOCOL, +) +from ._util import ( # Import the internal things we need + LocalProtocolError, + RemoteProtocolError, + Sentinel, +) +from ._writers import WRITERS, WritersType + +# Everything in __all__ gets re-exported as part of the h11 public API. +__all__ = ["Connection", "NEED_DATA", "PAUSED"] + + +class NEED_DATA(Sentinel, metaclass=Sentinel): + pass + + +class PAUSED(Sentinel, metaclass=Sentinel): + pass + + +# If we ever have this much buffered without it making a complete parseable +# event, we error out. The only time we really buffer is when reading the +# request/response line + headers together, so this is effectively the limit on +# the size of that. +# +# Some precedents for defaults: +# - node.js: 80 * 1024 +# - tomcat: 8 * 1024 +# - IIS: 16 * 1024 +# - Apache: <8 KiB per line> +DEFAULT_MAX_INCOMPLETE_EVENT_SIZE = 16 * 1024 + + +# RFC 7230's rules for connection lifecycles: +# - If either side says they want to close the connection, then the connection +# must close. +# - HTTP/1.1 defaults to keep-alive unless someone says Connection: close +# - HTTP/1.0 defaults to close unless both sides say Connection: keep-alive +# (and even this is a mess -- e.g. if you're implementing a proxy then +# sending Connection: keep-alive is forbidden). +# +# We simplify life by simply not supporting keep-alive with HTTP/1.0 peers. So +# our rule is: +# - If someone says Connection: close, we will close +# - If someone uses HTTP/1.0, we will close. +def _keep_alive(event: Union[Request, Response]) -> bool: + connection = get_comma_header(event.headers, b"connection") + if b"close" in connection: + return False + if getattr(event, "http_version", b"1.1") < b"1.1": + return False + return True + + +def _body_framing( + request_method: bytes, event: Union[Request, Response] +) -> Tuple[str, Union[Tuple[()], Tuple[int]]]: + # Called when we enter SEND_BODY to figure out framing information for + # this body. + # + # These are the only two events that can trigger a SEND_BODY state: + assert type(event) in (Request, Response) + # Returns one of: + # + # ("content-length", count) + # ("chunked", ()) + # ("http/1.0", ()) + # + # which are (lookup key, *args) for constructing body reader/writer + # objects. + # + # Reference: https://tools.ietf.org/html/rfc7230#section-3.3.3 + # + # Step 1: some responses always have an empty body, regardless of what the + # headers say. + if type(event) is Response: + if ( + event.status_code in (204, 304) + or request_method == b"HEAD" + or (request_method == b"CONNECT" and 200 <= event.status_code < 300) + ): + return ("content-length", (0,)) + # Section 3.3.3 also lists another case -- responses with status_code + # < 200. For us these are InformationalResponses, not Responses, so + # they can't get into this function in the first place. + assert event.status_code >= 200 + + # Step 2: check for Transfer-Encoding (T-E beats C-L): + transfer_encodings = get_comma_header(event.headers, b"transfer-encoding") + if transfer_encodings: + assert transfer_encodings == [b"chunked"] + return ("chunked", ()) + + # Step 3: check for Content-Length + content_lengths = get_comma_header(event.headers, b"content-length") + if content_lengths: + return ("content-length", (int(content_lengths[0]),)) + + # Step 4: no applicable headers; fallback/default depends on type + if type(event) is Request: + return ("content-length", (0,)) + else: + return ("http/1.0", ()) + + +################################################################ +# +# The main Connection class +# +################################################################ + + +class Connection: + """An object encapsulating the state of an HTTP connection. + + Args: + our_role: If you're implementing a client, pass :data:`h11.CLIENT`. If + you're implementing a server, pass :data:`h11.SERVER`. + + max_incomplete_event_size (int): + The maximum number of bytes we're willing to buffer of an + incomplete event. In practice this mostly sets a limit on the + maximum size of the request/response line + headers. If this is + exceeded, then :meth:`next_event` will raise + :exc:`RemoteProtocolError`. + + """ + + def __init__( + self, + our_role: Type[Sentinel], + max_incomplete_event_size: int = DEFAULT_MAX_INCOMPLETE_EVENT_SIZE, + ) -> None: + self._max_incomplete_event_size = max_incomplete_event_size + # State and role tracking + if our_role not in (CLIENT, SERVER): + raise ValueError(f"expected CLIENT or SERVER, not {our_role!r}") + self.our_role = our_role + self.their_role: Type[Sentinel] + if our_role is CLIENT: + self.their_role = SERVER + else: + self.their_role = CLIENT + self._cstate = ConnectionState() + + # Callables for converting data->events or vice-versa given the + # current state + self._writer = self._get_io_object(self.our_role, None, WRITERS) + self._reader = self._get_io_object(self.their_role, None, READERS) + + # Holds any unprocessed received data + self._receive_buffer = ReceiveBuffer() + # If this is true, then it indicates that the incoming connection was + # closed *after* the end of whatever's in self._receive_buffer: + self._receive_buffer_closed = False + + # Extra bits of state that don't fit into the state machine. + # + # These two are only used to interpret framing headers for figuring + # out how to read/write response bodies. their_http_version is also + # made available as a convenient public API. + self.their_http_version: Optional[bytes] = None + self._request_method: Optional[bytes] = None + # This is pure flow-control and doesn't at all affect the set of legal + # transitions, so no need to bother ConnectionState with it: + self.client_is_waiting_for_100_continue = False + + @property + def states(self) -> Dict[Type[Sentinel], Type[Sentinel]]: + """A dictionary like:: + + {CLIENT: , SERVER: } + + See :ref:`state-machine` for details. + + """ + return dict(self._cstate.states) + + @property + def our_state(self) -> Type[Sentinel]: + """The current state of whichever role we are playing. See + :ref:`state-machine` for details. + """ + return self._cstate.states[self.our_role] + + @property + def their_state(self) -> Type[Sentinel]: + """The current state of whichever role we are NOT playing. See + :ref:`state-machine` for details. + """ + return self._cstate.states[self.their_role] + + @property + def they_are_waiting_for_100_continue(self) -> bool: + return self.their_role is CLIENT and self.client_is_waiting_for_100_continue + + def start_next_cycle(self) -> None: + """Attempt to reset our connection state for a new request/response + cycle. + + If both client and server are in :data:`DONE` state, then resets them + both to :data:`IDLE` state in preparation for a new request/response + cycle on this same connection. Otherwise, raises a + :exc:`LocalProtocolError`. + + See :ref:`keepalive-and-pipelining`. + + """ + old_states = dict(self._cstate.states) + self._cstate.start_next_cycle() + self._request_method = None + # self.their_http_version gets left alone, since it presumably lasts + # beyond a single request/response cycle + assert not self.client_is_waiting_for_100_continue + self._respond_to_state_changes(old_states) + + def _process_error(self, role: Type[Sentinel]) -> None: + old_states = dict(self._cstate.states) + self._cstate.process_error(role) + self._respond_to_state_changes(old_states) + + def _server_switch_event(self, event: Event) -> Optional[Type[Sentinel]]: + if type(event) is InformationalResponse and event.status_code == 101: + return _SWITCH_UPGRADE + if type(event) is Response: + if ( + _SWITCH_CONNECT in self._cstate.pending_switch_proposals + and 200 <= event.status_code < 300 + ): + return _SWITCH_CONNECT + return None + + # All events go through here + def _process_event(self, role: Type[Sentinel], event: Event) -> None: + # First, pass the event through the state machine to make sure it + # succeeds. + old_states = dict(self._cstate.states) + if role is CLIENT and type(event) is Request: + if event.method == b"CONNECT": + self._cstate.process_client_switch_proposal(_SWITCH_CONNECT) + if get_comma_header(event.headers, b"upgrade"): + self._cstate.process_client_switch_proposal(_SWITCH_UPGRADE) + server_switch_event = None + if role is SERVER: + server_switch_event = self._server_switch_event(event) + self._cstate.process_event(role, type(event), server_switch_event) + + # Then perform the updates triggered by it. + + if type(event) is Request: + self._request_method = event.method + + if role is self.their_role and type(event) in ( + Request, + Response, + InformationalResponse, + ): + event = cast(Union[Request, Response, InformationalResponse], event) + self.their_http_version = event.http_version + + # Keep alive handling + # + # RFC 7230 doesn't really say what one should do if Connection: close + # shows up on a 1xx InformationalResponse. I think the idea is that + # this is not supposed to happen. In any case, if it does happen, we + # ignore it. + if type(event) in (Request, Response) and not _keep_alive( + cast(Union[Request, Response], event) + ): + self._cstate.process_keep_alive_disabled() + + # 100-continue + if type(event) is Request and has_expect_100_continue(event): + self.client_is_waiting_for_100_continue = True + if type(event) in (InformationalResponse, Response): + self.client_is_waiting_for_100_continue = False + if role is CLIENT and type(event) in (Data, EndOfMessage): + self.client_is_waiting_for_100_continue = False + + self._respond_to_state_changes(old_states, event) + + def _get_io_object( + self, + role: Type[Sentinel], + event: Optional[Event], + io_dict: Union[ReadersType, WritersType], + ) -> Optional[Callable[..., Any]]: + # event may be None; it's only used when entering SEND_BODY + state = self._cstate.states[role] + if state is SEND_BODY: + # Special case: the io_dict has a dict of reader/writer factories + # that depend on the request/response framing. + framing_type, args = _body_framing( + cast(bytes, self._request_method), cast(Union[Request, Response], event) + ) + return io_dict[SEND_BODY][framing_type](*args) # type: ignore[index] + else: + # General case: the io_dict just has the appropriate reader/writer + # for this state + return io_dict.get((role, state)) # type: ignore[return-value] + + # This must be called after any action that might have caused + # self._cstate.states to change. + def _respond_to_state_changes( + self, + old_states: Dict[Type[Sentinel], Type[Sentinel]], + event: Optional[Event] = None, + ) -> None: + # Update reader/writer + if self.our_state != old_states[self.our_role]: + self._writer = self._get_io_object(self.our_role, event, WRITERS) + if self.their_state != old_states[self.their_role]: + self._reader = self._get_io_object(self.their_role, event, READERS) + + @property + def trailing_data(self) -> Tuple[bytes, bool]: + """Data that has been received, but not yet processed, represented as + a tuple with two elements, where the first is a byte-string containing + the unprocessed data itself, and the second is a bool that is True if + the receive connection was closed. + + See :ref:`switching-protocols` for discussion of why you'd want this. + """ + return (bytes(self._receive_buffer), self._receive_buffer_closed) + + def receive_data(self, data: bytes) -> None: + """Add data to our internal receive buffer. + + This does not actually do any processing on the data, just stores + it. To trigger processing, you have to call :meth:`next_event`. + + Args: + data (:term:`bytes-like object`): + The new data that was just received. + + Special case: If *data* is an empty byte-string like ``b""``, + then this indicates that the remote side has closed the + connection (end of file). Normally this is convenient, because + standard Python APIs like :meth:`file.read` or + :meth:`socket.recv` use ``b""`` to indicate end-of-file, while + other failures to read are indicated using other mechanisms + like raising :exc:`TimeoutError`. When using such an API you + can just blindly pass through whatever you get from ``read`` + to :meth:`receive_data`, and everything will work. + + But, if you have an API where reading an empty string is a + valid non-EOF condition, then you need to be aware of this and + make sure to check for such strings and avoid passing them to + :meth:`receive_data`. + + Returns: + Nothing, but after calling this you should call :meth:`next_event` + to parse the newly received data. + + Raises: + RuntimeError: + Raised if you pass an empty *data*, indicating EOF, and then + pass a non-empty *data*, indicating more data that somehow + arrived after the EOF. + + (Calling ``receive_data(b"")`` multiple times is fine, + and equivalent to calling it once.) + + """ + if data: + if self._receive_buffer_closed: + raise RuntimeError("received close, then received more data?") + self._receive_buffer += data + else: + self._receive_buffer_closed = True + + def _extract_next_receive_event( + self, + ) -> Union[Event, Type[NEED_DATA], Type[PAUSED]]: + state = self.their_state + # We don't pause immediately when they enter DONE, because even in + # DONE state we can still process a ConnectionClosed() event. But + # if we have data in our buffer, then we definitely aren't getting + # a ConnectionClosed() immediately and we need to pause. + if state is DONE and self._receive_buffer: + return PAUSED + if state is MIGHT_SWITCH_PROTOCOL or state is SWITCHED_PROTOCOL: + return PAUSED + assert self._reader is not None + event = self._reader(self._receive_buffer) + if event is None: + if not self._receive_buffer and self._receive_buffer_closed: + # In some unusual cases (basically just HTTP/1.0 bodies), EOF + # triggers an actual protocol event; in that case, we want to + # return that event, and then the state will change and we'll + # get called again to generate the actual ConnectionClosed(). + if hasattr(self._reader, "read_eof"): + event = self._reader.read_eof() + else: + event = ConnectionClosed() + if event is None: + event = NEED_DATA + return event # type: ignore[no-any-return] + + def next_event(self) -> Union[Event, Type[NEED_DATA], Type[PAUSED]]: + """Parse the next event out of our receive buffer, update our internal + state, and return it. + + This is a mutating operation -- think of it like calling :func:`next` + on an iterator. + + Returns: + : One of three things: + + 1) An event object -- see :ref:`events`. + + 2) The special constant :data:`NEED_DATA`, which indicates that + you need to read more data from your socket and pass it to + :meth:`receive_data` before this method will be able to return + any more events. + + 3) The special constant :data:`PAUSED`, which indicates that we + are not in a state where we can process incoming data (usually + because the peer has finished their part of the current + request/response cycle, and you have not yet called + :meth:`start_next_cycle`). See :ref:`flow-control` for details. + + Raises: + RemoteProtocolError: + The peer has misbehaved. You should close the connection + (possibly after sending some kind of 4xx response). + + Once this method returns :class:`ConnectionClosed` once, then all + subsequent calls will also return :class:`ConnectionClosed`. + + If this method raises any exception besides :exc:`RemoteProtocolError` + then that's a bug -- if it happens please file a bug report! + + If this method raises any exception then it also sets + :attr:`Connection.their_state` to :data:`ERROR` -- see + :ref:`error-handling` for discussion. + + """ + + if self.their_state is ERROR: + raise RemoteProtocolError("Can't receive data when peer state is ERROR") + try: + event = self._extract_next_receive_event() + if event not in [NEED_DATA, PAUSED]: + self._process_event(self.their_role, cast(Event, event)) + if event is NEED_DATA: + if len(self._receive_buffer) > self._max_incomplete_event_size: + # 431 is "Request header fields too large" which is pretty + # much the only situation where we can get here + raise RemoteProtocolError( + "Receive buffer too long", error_status_hint=431 + ) + if self._receive_buffer_closed: + # We're still trying to complete some event, but that's + # never going to happen because no more data is coming + raise RemoteProtocolError("peer unexpectedly closed connection") + return event + except BaseException as exc: + self._process_error(self.their_role) + if isinstance(exc, LocalProtocolError): + exc._reraise_as_remote_protocol_error() + else: + raise + + @overload + def send(self, event: ConnectionClosed) -> None: + ... + + @overload + def send( + self, event: Union[Request, InformationalResponse, Response, Data, EndOfMessage] + ) -> bytes: + ... + + @overload + def send(self, event: Event) -> Optional[bytes]: + ... + + def send(self, event: Event) -> Optional[bytes]: + """Convert a high-level event into bytes that can be sent to the peer, + while updating our internal state machine. + + Args: + event: The :ref:`event ` to send. + + Returns: + If ``type(event) is ConnectionClosed``, then returns + ``None``. Otherwise, returns a :term:`bytes-like object`. + + Raises: + LocalProtocolError: + Sending this event at this time would violate our + understanding of the HTTP/1.1 protocol. + + If this method raises any exception then it also sets + :attr:`Connection.our_state` to :data:`ERROR` -- see + :ref:`error-handling` for discussion. + + """ + data_list = self.send_with_data_passthrough(event) + if data_list is None: + return None + else: + return b"".join(data_list) + + def send_with_data_passthrough(self, event: Event) -> Optional[List[bytes]]: + """Identical to :meth:`send`, except that in situations where + :meth:`send` returns a single :term:`bytes-like object`, this instead + returns a list of them -- and when sending a :class:`Data` event, this + list is guaranteed to contain the exact object you passed in as + :attr:`Data.data`. See :ref:`sendfile` for discussion. + + """ + if self.our_state is ERROR: + raise LocalProtocolError("Can't send data when our state is ERROR") + try: + if type(event) is Response: + event = self._clean_up_response_headers_for_sending(event) + # We want to call _process_event before calling the writer, + # because if someone tries to do something invalid then this will + # give a sensible error message, while our writers all just assume + # they will only receive valid events. But, _process_event might + # change self._writer. So we have to do a little dance: + writer = self._writer + self._process_event(self.our_role, event) + if type(event) is ConnectionClosed: + return None + else: + # In any situation where writer is None, process_event should + # have raised ProtocolError + assert writer is not None + data_list: List[bytes] = [] + writer(event, data_list.append) + return data_list + except: + self._process_error(self.our_role) + raise + + def send_failed(self) -> None: + """Notify the state machine that we failed to send the data it gave + us. + + This causes :attr:`Connection.our_state` to immediately become + :data:`ERROR` -- see :ref:`error-handling` for discussion. + + """ + self._process_error(self.our_role) + + # When sending a Response, we take responsibility for a few things: + # + # - Sometimes you MUST set Connection: close. We take care of those + # times. (You can also set it yourself if you want, and if you do then + # we'll respect that and close the connection at the right time. But you + # don't have to worry about that unless you want to.) + # + # - The user has to set Content-Length if they want it. Otherwise, for + # responses that have bodies (e.g. not HEAD), then we will automatically + # select the right mechanism for streaming a body of unknown length, + # which depends on depending on the peer's HTTP version. + # + # This function's *only* responsibility is making sure headers are set up + # right -- everything downstream just looks at the headers. There are no + # side channels. + def _clean_up_response_headers_for_sending(self, response: Response) -> Response: + assert type(response) is Response + + headers = response.headers + need_close = False + + # HEAD requests need some special handling: they always act like they + # have Content-Length: 0, and that's how _body_framing treats + # them. But their headers are supposed to match what we would send if + # the request was a GET. (Technically there is one deviation allowed: + # we're allowed to leave out the framing headers -- see + # https://tools.ietf.org/html/rfc7231#section-4.3.2 . But it's just as + # easy to get them right.) + method_for_choosing_headers = cast(bytes, self._request_method) + if method_for_choosing_headers == b"HEAD": + method_for_choosing_headers = b"GET" + framing_type, _ = _body_framing(method_for_choosing_headers, response) + if framing_type in ("chunked", "http/1.0"): + # This response has a body of unknown length. + # If our peer is HTTP/1.1, we use Transfer-Encoding: chunked + # If our peer is HTTP/1.0, we use no framing headers, and close the + # connection afterwards. + # + # Make sure to clear Content-Length (in principle user could have + # set both and then we ignored Content-Length b/c + # Transfer-Encoding overwrote it -- this would be naughty of them, + # but the HTTP spec says that if our peer does this then we have + # to fix it instead of erroring out, so we'll accord the user the + # same respect). + headers = set_comma_header(headers, b"content-length", []) + if self.their_http_version is None or self.their_http_version < b"1.1": + # Either we never got a valid request and are sending back an + # error (their_http_version is None), so we assume the worst; + # or else we did get a valid HTTP/1.0 request, so we know that + # they don't understand chunked encoding. + headers = set_comma_header(headers, b"transfer-encoding", []) + # This is actually redundant ATM, since currently we + # unconditionally disable keep-alive when talking to HTTP/1.0 + # peers. But let's be defensive just in case we add + # Connection: keep-alive support later: + if self._request_method != b"HEAD": + need_close = True + else: + headers = set_comma_header(headers, b"transfer-encoding", [b"chunked"]) + + if not self._cstate.keep_alive or need_close: + # Make sure Connection: close is set + connection = set(get_comma_header(headers, b"connection")) + connection.discard(b"keep-alive") + connection.add(b"close") + headers = set_comma_header(headers, b"connection", sorted(connection)) + + return Response( + headers=headers, + status_code=response.status_code, + http_version=response.http_version, + reason=response.reason, + ) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_events.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_events.py new file mode 100644 index 0000000000000000000000000000000000000000..ca1c3adbde2c4e7710482a18e3471f91f1da610e --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_events.py @@ -0,0 +1,369 @@ +# High level events that make up HTTP/1.1 conversations. Loosely inspired by +# the corresponding events in hyper-h2: +# +# http://python-hyper.org/h2/en/stable/api.html#events +# +# Don't subclass these. Stuff will break. + +import re +from abc import ABC +from dataclasses import dataclass +from typing import List, Tuple, Union + +from ._abnf import method, request_target +from ._headers import Headers, normalize_and_validate +from ._util import bytesify, LocalProtocolError, validate + +# Everything in __all__ gets re-exported as part of the h11 public API. +__all__ = [ + "Event", + "Request", + "InformationalResponse", + "Response", + "Data", + "EndOfMessage", + "ConnectionClosed", +] + +method_re = re.compile(method.encode("ascii")) +request_target_re = re.compile(request_target.encode("ascii")) + + +class Event(ABC): + """ + Base class for h11 events. + """ + + __slots__ = () + + +@dataclass(init=False, frozen=True) +class Request(Event): + """The beginning of an HTTP request. + + Fields: + + .. attribute:: method + + An HTTP method, e.g. ``b"GET"`` or ``b"POST"``. Always a byte + string. :term:`Bytes-like objects ` and native + strings containing only ascii characters will be automatically + converted to byte strings. + + .. attribute:: target + + The target of an HTTP request, e.g. ``b"/index.html"``, or one of the + more exotic formats described in `RFC 7320, section 5.3 + `_. Always a byte + string. :term:`Bytes-like objects ` and native + strings containing only ascii characters will be automatically + converted to byte strings. + + .. attribute:: headers + + Request headers, represented as a list of (name, value) pairs. See + :ref:`the header normalization rules ` for details. + + .. attribute:: http_version + + The HTTP protocol version, represented as a byte string like + ``b"1.1"``. See :ref:`the HTTP version normalization rules + ` for details. + + """ + + __slots__ = ("method", "headers", "target", "http_version") + + method: bytes + headers: Headers + target: bytes + http_version: bytes + + def __init__( + self, + *, + method: Union[bytes, str], + headers: Union[Headers, List[Tuple[bytes, bytes]], List[Tuple[str, str]]], + target: Union[bytes, str], + http_version: Union[bytes, str] = b"1.1", + _parsed: bool = False, + ) -> None: + super().__init__() + if isinstance(headers, Headers): + object.__setattr__(self, "headers", headers) + else: + object.__setattr__( + self, "headers", normalize_and_validate(headers, _parsed=_parsed) + ) + if not _parsed: + object.__setattr__(self, "method", bytesify(method)) + object.__setattr__(self, "target", bytesify(target)) + object.__setattr__(self, "http_version", bytesify(http_version)) + else: + object.__setattr__(self, "method", method) + object.__setattr__(self, "target", target) + object.__setattr__(self, "http_version", http_version) + + # "A server MUST respond with a 400 (Bad Request) status code to any + # HTTP/1.1 request message that lacks a Host header field and to any + # request message that contains more than one Host header field or a + # Host header field with an invalid field-value." + # -- https://tools.ietf.org/html/rfc7230#section-5.4 + host_count = 0 + for name, value in self.headers: + if name == b"host": + host_count += 1 + if self.http_version == b"1.1" and host_count == 0: + raise LocalProtocolError("Missing mandatory Host: header") + if host_count > 1: + raise LocalProtocolError("Found multiple Host: headers") + + validate(method_re, self.method, "Illegal method characters") + validate(request_target_re, self.target, "Illegal target characters") + + # This is an unhashable type. + __hash__ = None # type: ignore + + +@dataclass(init=False, frozen=True) +class _ResponseBase(Event): + __slots__ = ("headers", "http_version", "reason", "status_code") + + headers: Headers + http_version: bytes + reason: bytes + status_code: int + + def __init__( + self, + *, + headers: Union[Headers, List[Tuple[bytes, bytes]], List[Tuple[str, str]]], + status_code: int, + http_version: Union[bytes, str] = b"1.1", + reason: Union[bytes, str] = b"", + _parsed: bool = False, + ) -> None: + super().__init__() + if isinstance(headers, Headers): + object.__setattr__(self, "headers", headers) + else: + object.__setattr__( + self, "headers", normalize_and_validate(headers, _parsed=_parsed) + ) + if not _parsed: + object.__setattr__(self, "reason", bytesify(reason)) + object.__setattr__(self, "http_version", bytesify(http_version)) + if not isinstance(status_code, int): + raise LocalProtocolError("status code must be integer") + # Because IntEnum objects are instances of int, but aren't + # duck-compatible (sigh), see gh-72. + object.__setattr__(self, "status_code", int(status_code)) + else: + object.__setattr__(self, "reason", reason) + object.__setattr__(self, "http_version", http_version) + object.__setattr__(self, "status_code", status_code) + + self.__post_init__() + + def __post_init__(self) -> None: + pass + + # This is an unhashable type. + __hash__ = None # type: ignore + + +@dataclass(init=False, frozen=True) +class InformationalResponse(_ResponseBase): + """An HTTP informational response. + + Fields: + + .. attribute:: status_code + + The status code of this response, as an integer. For an + :class:`InformationalResponse`, this is always in the range [100, + 200). + + .. attribute:: headers + + Request headers, represented as a list of (name, value) pairs. See + :ref:`the header normalization rules ` for + details. + + .. attribute:: http_version + + The HTTP protocol version, represented as a byte string like + ``b"1.1"``. See :ref:`the HTTP version normalization rules + ` for details. + + .. attribute:: reason + + The reason phrase of this response, as a byte string. For example: + ``b"OK"``, or ``b"Not Found"``. + + """ + + def __post_init__(self) -> None: + if not (100 <= self.status_code < 200): + raise LocalProtocolError( + "InformationalResponse status_code should be in range " + "[100, 200), not {}".format(self.status_code) + ) + + # This is an unhashable type. + __hash__ = None # type: ignore + + +@dataclass(init=False, frozen=True) +class Response(_ResponseBase): + """The beginning of an HTTP response. + + Fields: + + .. attribute:: status_code + + The status code of this response, as an integer. For an + :class:`Response`, this is always in the range [200, + 1000). + + .. attribute:: headers + + Request headers, represented as a list of (name, value) pairs. See + :ref:`the header normalization rules ` for details. + + .. attribute:: http_version + + The HTTP protocol version, represented as a byte string like + ``b"1.1"``. See :ref:`the HTTP version normalization rules + ` for details. + + .. attribute:: reason + + The reason phrase of this response, as a byte string. For example: + ``b"OK"``, or ``b"Not Found"``. + + """ + + def __post_init__(self) -> None: + if not (200 <= self.status_code < 1000): + raise LocalProtocolError( + "Response status_code should be in range [200, 1000), not {}".format( + self.status_code + ) + ) + + # This is an unhashable type. + __hash__ = None # type: ignore + + +@dataclass(init=False, frozen=True) +class Data(Event): + """Part of an HTTP message body. + + Fields: + + .. attribute:: data + + A :term:`bytes-like object` containing part of a message body. Or, if + using the ``combine=False`` argument to :meth:`Connection.send`, then + any object that your socket writing code knows what to do with, and for + which calling :func:`len` returns the number of bytes that will be + written -- see :ref:`sendfile` for details. + + .. attribute:: chunk_start + + A marker that indicates whether this data object is from the start of a + chunked transfer encoding chunk. This field is ignored when when a Data + event is provided to :meth:`Connection.send`: it is only valid on + events emitted from :meth:`Connection.next_event`. You probably + shouldn't use this attribute at all; see + :ref:`chunk-delimiters-are-bad` for details. + + .. attribute:: chunk_end + + A marker that indicates whether this data object is the last for a + given chunked transfer encoding chunk. This field is ignored when when + a Data event is provided to :meth:`Connection.send`: it is only valid + on events emitted from :meth:`Connection.next_event`. You probably + shouldn't use this attribute at all; see + :ref:`chunk-delimiters-are-bad` for details. + + """ + + __slots__ = ("data", "chunk_start", "chunk_end") + + data: bytes + chunk_start: bool + chunk_end: bool + + def __init__( + self, data: bytes, chunk_start: bool = False, chunk_end: bool = False + ) -> None: + object.__setattr__(self, "data", data) + object.__setattr__(self, "chunk_start", chunk_start) + object.__setattr__(self, "chunk_end", chunk_end) + + # This is an unhashable type. + __hash__ = None # type: ignore + + +# XX FIXME: "A recipient MUST ignore (or consider as an error) any fields that +# are forbidden to be sent in a trailer, since processing them as if they were +# present in the header section might bypass external security filters." +# https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7230.html#chunked.trailer.part +# Unfortunately, the list of forbidden fields is long and vague :-/ +@dataclass(init=False, frozen=True) +class EndOfMessage(Event): + """The end of an HTTP message. + + Fields: + + .. attribute:: headers + + Default value: ``[]`` + + Any trailing headers attached to this message, represented as a list of + (name, value) pairs. See :ref:`the header normalization rules + ` for details. + + Must be empty unless ``Transfer-Encoding: chunked`` is in use. + + """ + + __slots__ = ("headers",) + + headers: Headers + + def __init__( + self, + *, + headers: Union[ + Headers, List[Tuple[bytes, bytes]], List[Tuple[str, str]], None + ] = None, + _parsed: bool = False, + ) -> None: + super().__init__() + if headers is None: + headers = Headers([]) + elif not isinstance(headers, Headers): + headers = normalize_and_validate(headers, _parsed=_parsed) + + object.__setattr__(self, "headers", headers) + + # This is an unhashable type. + __hash__ = None # type: ignore + + +@dataclass(frozen=True) +class ConnectionClosed(Event): + """This event indicates that the sender has closed their outgoing + connection. + + Note that this does not necessarily mean that they can't *receive* further + data, because TCP connections are composed to two one-way channels which + can be closed independently. See :ref:`closing` for details. + + No fields. + """ + + pass diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_headers.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_headers.py new file mode 100644 index 0000000000000000000000000000000000000000..31da3e2b23b55a624b36f105e62a6902e63286aa --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_headers.py @@ -0,0 +1,282 @@ +import re +from typing import AnyStr, cast, List, overload, Sequence, Tuple, TYPE_CHECKING, Union + +from ._abnf import field_name, field_value +from ._util import bytesify, LocalProtocolError, validate + +if TYPE_CHECKING: + from ._events import Request + +try: + from typing import Literal +except ImportError: + from typing_extensions import Literal # type: ignore + +CONTENT_LENGTH_MAX_DIGITS = 20 # allow up to 1 billion TB - 1 + + +# Facts +# ----- +# +# Headers are: +# keys: case-insensitive ascii +# values: mixture of ascii and raw bytes +# +# "Historically, HTTP has allowed field content with text in the ISO-8859-1 +# charset [ISO-8859-1], supporting other charsets only through use of +# [RFC2047] encoding. In practice, most HTTP header field values use only a +# subset of the US-ASCII charset [USASCII]. Newly defined header fields SHOULD +# limit their field values to US-ASCII octets. A recipient SHOULD treat other +# octets in field content (obs-text) as opaque data." +# And it deprecates all non-ascii values +# +# Leading/trailing whitespace in header names is forbidden +# +# Values get leading/trailing whitespace stripped +# +# Content-Disposition actually needs to contain unicode semantically; to +# accomplish this it has a terrifically weird way of encoding the filename +# itself as ascii (and even this still has lots of cross-browser +# incompatibilities) +# +# Order is important: +# "a proxy MUST NOT change the order of these field values when forwarding a +# message" +# (and there are several headers where the order indicates a preference) +# +# Multiple occurences of the same header: +# "A sender MUST NOT generate multiple header fields with the same field name +# in a message unless either the entire field value for that header field is +# defined as a comma-separated list [or the header is Set-Cookie which gets a +# special exception]" - RFC 7230. (cookies are in RFC 6265) +# +# So every header aside from Set-Cookie can be merged by b", ".join if it +# occurs repeatedly. But, of course, they can't necessarily be split by +# .split(b","), because quoting. +# +# Given all this mess (case insensitive, duplicates allowed, order is +# important, ...), there doesn't appear to be any standard way to handle +# headers in Python -- they're almost like dicts, but... actually just +# aren't. For now we punt and just use a super simple representation: headers +# are a list of pairs +# +# [(name1, value1), (name2, value2), ...] +# +# where all entries are bytestrings, names are lowercase and have no +# leading/trailing whitespace, and values are bytestrings with no +# leading/trailing whitespace. Searching and updating are done via naive O(n) +# methods. +# +# Maybe a dict-of-lists would be better? + +_content_length_re = re.compile(rb"[0-9]+") +_field_name_re = re.compile(field_name.encode("ascii")) +_field_value_re = re.compile(field_value.encode("ascii")) + + +class Headers(Sequence[Tuple[bytes, bytes]]): + """ + A list-like interface that allows iterating over headers as byte-pairs + of (lowercased-name, value). + + Internally we actually store the representation as three-tuples, + including both the raw original casing, in order to preserve casing + over-the-wire, and the lowercased name, for case-insensitive comparisions. + + r = Request( + method="GET", + target="/", + headers=[("Host", "example.org"), ("Connection", "keep-alive")], + http_version="1.1", + ) + assert r.headers == [ + (b"host", b"example.org"), + (b"connection", b"keep-alive") + ] + assert r.headers.raw_items() == [ + (b"Host", b"example.org"), + (b"Connection", b"keep-alive") + ] + """ + + __slots__ = "_full_items" + + def __init__(self, full_items: List[Tuple[bytes, bytes, bytes]]) -> None: + self._full_items = full_items + + def __bool__(self) -> bool: + return bool(self._full_items) + + def __eq__(self, other: object) -> bool: + return list(self) == list(other) # type: ignore + + def __len__(self) -> int: + return len(self._full_items) + + def __repr__(self) -> str: + return "" % repr(list(self)) + + def __getitem__(self, idx: int) -> Tuple[bytes, bytes]: # type: ignore[override] + _, name, value = self._full_items[idx] + return (name, value) + + def raw_items(self) -> List[Tuple[bytes, bytes]]: + return [(raw_name, value) for raw_name, _, value in self._full_items] + + +HeaderTypes = Union[ + List[Tuple[bytes, bytes]], + List[Tuple[bytes, str]], + List[Tuple[str, bytes]], + List[Tuple[str, str]], +] + + +@overload +def normalize_and_validate(headers: Headers, _parsed: Literal[True]) -> Headers: + ... + + +@overload +def normalize_and_validate(headers: HeaderTypes, _parsed: Literal[False]) -> Headers: + ... + + +@overload +def normalize_and_validate( + headers: Union[Headers, HeaderTypes], _parsed: bool = False +) -> Headers: + ... + + +def normalize_and_validate( + headers: Union[Headers, HeaderTypes], _parsed: bool = False +) -> Headers: + new_headers = [] + seen_content_length = None + saw_transfer_encoding = False + for name, value in headers: + # For headers coming out of the parser, we can safely skip some steps, + # because it always returns bytes and has already run these regexes + # over the data: + if not _parsed: + name = bytesify(name) + value = bytesify(value) + validate(_field_name_re, name, "Illegal header name {!r}", name) + validate(_field_value_re, value, "Illegal header value {!r}", value) + assert isinstance(name, bytes) + assert isinstance(value, bytes) + + raw_name = name + name = name.lower() + if name == b"content-length": + lengths = {length.strip() for length in value.split(b",")} + if len(lengths) != 1: + raise LocalProtocolError("conflicting Content-Length headers") + value = lengths.pop() + validate(_content_length_re, value, "bad Content-Length") + if len(value) > CONTENT_LENGTH_MAX_DIGITS: + raise LocalProtocolError("bad Content-Length") + if seen_content_length is None: + seen_content_length = value + new_headers.append((raw_name, name, value)) + elif seen_content_length != value: + raise LocalProtocolError("conflicting Content-Length headers") + elif name == b"transfer-encoding": + # "A server that receives a request message with a transfer coding + # it does not understand SHOULD respond with 501 (Not + # Implemented)." + # https://tools.ietf.org/html/rfc7230#section-3.3.1 + if saw_transfer_encoding: + raise LocalProtocolError( + "multiple Transfer-Encoding headers", error_status_hint=501 + ) + # "All transfer-coding names are case-insensitive" + # -- https://tools.ietf.org/html/rfc7230#section-4 + value = value.lower() + if value != b"chunked": + raise LocalProtocolError( + "Only Transfer-Encoding: chunked is supported", + error_status_hint=501, + ) + saw_transfer_encoding = True + new_headers.append((raw_name, name, value)) + else: + new_headers.append((raw_name, name, value)) + return Headers(new_headers) + + +def get_comma_header(headers: Headers, name: bytes) -> List[bytes]: + # Should only be used for headers whose value is a list of + # comma-separated, case-insensitive values. + # + # The header name `name` is expected to be lower-case bytes. + # + # Connection: meets these criteria (including cast insensitivity). + # + # Content-Length: technically is just a single value (1*DIGIT), but the + # standard makes reference to implementations that do multiple values, and + # using this doesn't hurt. Ditto, case insensitivity doesn't things either + # way. + # + # Transfer-Encoding: is more complex (allows for quoted strings), so + # splitting on , is actually wrong. For example, this is legal: + # + # Transfer-Encoding: foo; options="1,2", chunked + # + # and should be parsed as + # + # foo; options="1,2" + # chunked + # + # but this naive function will parse it as + # + # foo; options="1 + # 2" + # chunked + # + # However, this is okay because the only thing we are going to do with + # any Transfer-Encoding is reject ones that aren't just "chunked", so + # both of these will be treated the same anyway. + # + # Expect: the only legal value is the literal string + # "100-continue". Splitting on commas is harmless. Case insensitive. + # + out: List[bytes] = [] + for _, found_name, found_raw_value in headers._full_items: + if found_name == name: + found_raw_value = found_raw_value.lower() + for found_split_value in found_raw_value.split(b","): + found_split_value = found_split_value.strip() + if found_split_value: + out.append(found_split_value) + return out + + +def set_comma_header(headers: Headers, name: bytes, new_values: List[bytes]) -> Headers: + # The header name `name` is expected to be lower-case bytes. + # + # Note that when we store the header we use title casing for the header + # names, in order to match the conventional HTTP header style. + # + # Simply calling `.title()` is a blunt approach, but it's correct + # here given the cases where we're using `set_comma_header`... + # + # Connection, Content-Length, Transfer-Encoding. + new_headers: List[Tuple[bytes, bytes]] = [] + for found_raw_name, found_name, found_raw_value in headers._full_items: + if found_name != name: + new_headers.append((found_raw_name, found_raw_value)) + for new_value in new_values: + new_headers.append((name.title(), new_value)) + return normalize_and_validate(new_headers) + + +def has_expect_100_continue(request: "Request") -> bool: + # https://tools.ietf.org/html/rfc7231#section-5.1.1 + # "A server that receives a 100-continue expectation in an HTTP/1.0 request + # MUST ignore that expectation." + if request.http_version < b"1.1": + return False + expect = get_comma_header(request.headers, b"expect") + return b"100-continue" in expect diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_readers.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_readers.py new file mode 100644 index 0000000000000000000000000000000000000000..576804cc282032526e0a932c9853d586a094bad0 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_readers.py @@ -0,0 +1,250 @@ +# Code to read HTTP data +# +# Strategy: each reader is a callable which takes a ReceiveBuffer object, and +# either: +# 1) consumes some of it and returns an Event +# 2) raises a LocalProtocolError (for consistency -- e.g. we call validate() +# and it might raise a LocalProtocolError, so simpler just to always use +# this) +# 3) returns None, meaning "I need more data" +# +# If they have a .read_eof attribute, then this will be called if an EOF is +# received -- but this is optional. Either way, the actual ConnectionClosed +# event will be generated afterwards. +# +# READERS is a dict describing how to pick a reader. It maps states to either: +# - a reader +# - or, for body readers, a dict of per-framing reader factories + +import re +from typing import Any, Callable, Dict, Iterable, NoReturn, Optional, Tuple, Type, Union + +from ._abnf import chunk_header, header_field, request_line, status_line +from ._events import Data, EndOfMessage, InformationalResponse, Request, Response +from ._receivebuffer import ReceiveBuffer +from ._state import ( + CLIENT, + CLOSED, + DONE, + IDLE, + MUST_CLOSE, + SEND_BODY, + SEND_RESPONSE, + SERVER, +) +from ._util import LocalProtocolError, RemoteProtocolError, Sentinel, validate + +__all__ = ["READERS"] + +header_field_re = re.compile(header_field.encode("ascii")) +obs_fold_re = re.compile(rb"[ \t]+") + + +def _obsolete_line_fold(lines: Iterable[bytes]) -> Iterable[bytes]: + it = iter(lines) + last: Optional[bytes] = None + for line in it: + match = obs_fold_re.match(line) + if match: + if last is None: + raise LocalProtocolError("continuation line at start of headers") + if not isinstance(last, bytearray): + # Cast to a mutable type, avoiding copy on append to ensure O(n) time + last = bytearray(last) + last += b" " + last += line[match.end() :] + else: + if last is not None: + yield last + last = line + if last is not None: + yield last + + +def _decode_header_lines( + lines: Iterable[bytes], +) -> Iterable[Tuple[bytes, bytes]]: + for line in _obsolete_line_fold(lines): + matches = validate(header_field_re, line, "illegal header line: {!r}", line) + yield (matches["field_name"], matches["field_value"]) + + +request_line_re = re.compile(request_line.encode("ascii")) + + +def maybe_read_from_IDLE_client(buf: ReceiveBuffer) -> Optional[Request]: + lines = buf.maybe_extract_lines() + if lines is None: + if buf.is_next_line_obviously_invalid_request_line(): + raise LocalProtocolError("illegal request line") + return None + if not lines: + raise LocalProtocolError("no request line received") + matches = validate( + request_line_re, lines[0], "illegal request line: {!r}", lines[0] + ) + return Request( + headers=list(_decode_header_lines(lines[1:])), _parsed=True, **matches + ) + + +status_line_re = re.compile(status_line.encode("ascii")) + + +def maybe_read_from_SEND_RESPONSE_server( + buf: ReceiveBuffer, +) -> Union[InformationalResponse, Response, None]: + lines = buf.maybe_extract_lines() + if lines is None: + if buf.is_next_line_obviously_invalid_request_line(): + raise LocalProtocolError("illegal request line") + return None + if not lines: + raise LocalProtocolError("no response line received") + matches = validate(status_line_re, lines[0], "illegal status line: {!r}", lines[0]) + http_version = ( + b"1.1" if matches["http_version"] is None else matches["http_version"] + ) + reason = b"" if matches["reason"] is None else matches["reason"] + status_code = int(matches["status_code"]) + class_: Union[Type[InformationalResponse], Type[Response]] = ( + InformationalResponse if status_code < 200 else Response + ) + return class_( + headers=list(_decode_header_lines(lines[1:])), + _parsed=True, + status_code=status_code, + reason=reason, + http_version=http_version, + ) + + +class ContentLengthReader: + def __init__(self, length: int) -> None: + self._length = length + self._remaining = length + + def __call__(self, buf: ReceiveBuffer) -> Union[Data, EndOfMessage, None]: + if self._remaining == 0: + return EndOfMessage() + data = buf.maybe_extract_at_most(self._remaining) + if data is None: + return None + self._remaining -= len(data) + return Data(data=data) + + def read_eof(self) -> NoReturn: + raise RemoteProtocolError( + "peer closed connection without sending complete message body " + "(received {} bytes, expected {})".format( + self._length - self._remaining, self._length + ) + ) + + +chunk_header_re = re.compile(chunk_header.encode("ascii")) + + +class ChunkedReader: + def __init__(self) -> None: + self._bytes_in_chunk = 0 + # After reading a chunk, we have to throw away the trailing \r\n. + # This tracks the bytes that we need to match and throw away. + self._bytes_to_discard = b"" + self._reading_trailer = False + + def __call__(self, buf: ReceiveBuffer) -> Union[Data, EndOfMessage, None]: + if self._reading_trailer: + lines = buf.maybe_extract_lines() + if lines is None: + return None + return EndOfMessage(headers=list(_decode_header_lines(lines))) + if self._bytes_to_discard: + data = buf.maybe_extract_at_most(len(self._bytes_to_discard)) + if data is None: + return None + if data != self._bytes_to_discard[: len(data)]: + raise LocalProtocolError( + f"malformed chunk footer: {data!r} (expected {self._bytes_to_discard!r})" + ) + self._bytes_to_discard = self._bytes_to_discard[len(data) :] + if self._bytes_to_discard: + return None + # else, fall through and read some more + assert self._bytes_to_discard == b"" + if self._bytes_in_chunk == 0: + # We need to refill our chunk count + chunk_header = buf.maybe_extract_next_line() + if chunk_header is None: + return None + matches = validate( + chunk_header_re, + chunk_header, + "illegal chunk header: {!r}", + chunk_header, + ) + # XX FIXME: we discard chunk extensions. Does anyone care? + self._bytes_in_chunk = int(matches["chunk_size"], base=16) + if self._bytes_in_chunk == 0: + self._reading_trailer = True + return self(buf) + chunk_start = True + else: + chunk_start = False + assert self._bytes_in_chunk > 0 + data = buf.maybe_extract_at_most(self._bytes_in_chunk) + if data is None: + return None + self._bytes_in_chunk -= len(data) + if self._bytes_in_chunk == 0: + self._bytes_to_discard = b"\r\n" + chunk_end = True + else: + chunk_end = False + return Data(data=data, chunk_start=chunk_start, chunk_end=chunk_end) + + def read_eof(self) -> NoReturn: + raise RemoteProtocolError( + "peer closed connection without sending complete message body " + "(incomplete chunked read)" + ) + + +class Http10Reader: + def __call__(self, buf: ReceiveBuffer) -> Optional[Data]: + data = buf.maybe_extract_at_most(999999999) + if data is None: + return None + return Data(data=data) + + def read_eof(self) -> EndOfMessage: + return EndOfMessage() + + +def expect_nothing(buf: ReceiveBuffer) -> None: + if buf: + raise LocalProtocolError("Got data when expecting EOF") + return None + + +ReadersType = Dict[ + Union[Type[Sentinel], Tuple[Type[Sentinel], Type[Sentinel]]], + Union[Callable[..., Any], Dict[str, Callable[..., Any]]], +] + +READERS: ReadersType = { + (CLIENT, IDLE): maybe_read_from_IDLE_client, + (SERVER, IDLE): maybe_read_from_SEND_RESPONSE_server, + (SERVER, SEND_RESPONSE): maybe_read_from_SEND_RESPONSE_server, + (CLIENT, DONE): expect_nothing, + (CLIENT, MUST_CLOSE): expect_nothing, + (CLIENT, CLOSED): expect_nothing, + (SERVER, DONE): expect_nothing, + (SERVER, MUST_CLOSE): expect_nothing, + (SERVER, CLOSED): expect_nothing, + SEND_BODY: { + "chunked": ChunkedReader, + "content-length": ContentLengthReader, + "http/1.0": Http10Reader, + }, +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_receivebuffer.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_receivebuffer.py new file mode 100644 index 0000000000000000000000000000000000000000..e5c4e08a56f5081e87103f38b4add6ce1b730204 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_receivebuffer.py @@ -0,0 +1,153 @@ +import re +import sys +from typing import List, Optional, Union + +__all__ = ["ReceiveBuffer"] + + +# Operations we want to support: +# - find next \r\n or \r\n\r\n (\n or \n\n are also acceptable), +# or wait until there is one +# - read at-most-N bytes +# Goals: +# - on average, do this fast +# - worst case, do this in O(n) where n is the number of bytes processed +# Plan: +# - store bytearray, offset, how far we've searched for a separator token +# - use the how-far-we've-searched data to avoid rescanning +# - while doing a stream of uninterrupted processing, advance offset instead +# of constantly copying +# WARNING: +# - I haven't benchmarked or profiled any of this yet. +# +# Note that starting in Python 3.4, deleting the initial n bytes from a +# bytearray is amortized O(n), thanks to some excellent work by Antoine +# Martin: +# +# https://bugs.python.org/issue19087 +# +# This means that if we only supported 3.4+, we could get rid of the code here +# involving self._start and self.compress, because it's doing exactly the same +# thing that bytearray now does internally. +# +# BUT unfortunately, we still support 2.7, and reading short segments out of a +# long buffer MUST be O(bytes read) to avoid DoS issues, so we can't actually +# delete this code. Yet: +# +# https://pythonclock.org/ +# +# (Two things to double-check first though: make sure PyPy also has the +# optimization, and benchmark to make sure it's a win, since we do have a +# slightly clever thing where we delay calling compress() until we've +# processed a whole event, which could in theory be slightly more efficient +# than the internal bytearray support.) +blank_line_regex = re.compile(b"\n\r?\n", re.MULTILINE) + + +class ReceiveBuffer: + def __init__(self) -> None: + self._data = bytearray() + self._next_line_search = 0 + self._multiple_lines_search = 0 + + def __iadd__(self, byteslike: Union[bytes, bytearray]) -> "ReceiveBuffer": + self._data += byteslike + return self + + def __bool__(self) -> bool: + return bool(len(self)) + + def __len__(self) -> int: + return len(self._data) + + # for @property unprocessed_data + def __bytes__(self) -> bytes: + return bytes(self._data) + + def _extract(self, count: int) -> bytearray: + # extracting an initial slice of the data buffer and return it + out = self._data[:count] + del self._data[:count] + + self._next_line_search = 0 + self._multiple_lines_search = 0 + + return out + + def maybe_extract_at_most(self, count: int) -> Optional[bytearray]: + """ + Extract a fixed number of bytes from the buffer. + """ + out = self._data[:count] + if not out: + return None + + return self._extract(count) + + def maybe_extract_next_line(self) -> Optional[bytearray]: + """ + Extract the first line, if it is completed in the buffer. + """ + # Only search in buffer space that we've not already looked at. + search_start_index = max(0, self._next_line_search - 1) + partial_idx = self._data.find(b"\r\n", search_start_index) + + if partial_idx == -1: + self._next_line_search = len(self._data) + return None + + # + 2 is to compensate len(b"\r\n") + idx = partial_idx + 2 + + return self._extract(idx) + + def maybe_extract_lines(self) -> Optional[List[bytearray]]: + """ + Extract everything up to the first blank line, and return a list of lines. + """ + # Handle the case where we have an immediate empty line. + if self._data[:1] == b"\n": + self._extract(1) + return [] + + if self._data[:2] == b"\r\n": + self._extract(2) + return [] + + # Only search in buffer space that we've not already looked at. + match = blank_line_regex.search(self._data, self._multiple_lines_search) + if match is None: + self._multiple_lines_search = max(0, len(self._data) - 2) + return None + + # Truncate the buffer and return it. + idx = match.span(0)[-1] + out = self._extract(idx) + lines = out.split(b"\n") + + for line in lines: + if line.endswith(b"\r"): + del line[-1] + + assert lines[-2] == lines[-1] == b"" + + del lines[-2:] + + return lines + + # In theory we should wait until `\r\n` before starting to validate + # incoming data. However it's interesting to detect (very) invalid data + # early given they might not even contain `\r\n` at all (hence only + # timeout will get rid of them). + # This is not a 100% effective detection but more of a cheap sanity check + # allowing for early abort in some useful cases. + # This is especially interesting when peer is messing up with HTTPS and + # sent us a TLS stream where we were expecting plain HTTP given all + # versions of TLS so far start handshake with a 0x16 message type code. + def is_next_line_obviously_invalid_request_line(self) -> bool: + try: + # HTTP header line must not contain non-printable characters + # and should not start with a space + return self._data[0] < 0x21 + except IndexError: + return False diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_state.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_state.py new file mode 100644 index 0000000000000000000000000000000000000000..3ad444b043e3f3d6c05c2d9d84d5119312bfaa34 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_state.py @@ -0,0 +1,365 @@ +################################################################ +# The core state machine +################################################################ +# +# Rule 1: everything that affects the state machine and state transitions must +# live here in this file. As much as possible goes into the table-based +# representation, but for the bits that don't quite fit, the actual code and +# state must nonetheless live here. +# +# Rule 2: this file does not know about what role we're playing; it only knows +# about HTTP request/response cycles in the abstract. This ensures that we +# don't cheat and apply different rules to local and remote parties. +# +# +# Theory of operation +# =================== +# +# Possibly the simplest way to think about this is that we actually have 5 +# different state machines here. Yes, 5. These are: +# +# 1) The client state, with its complicated automaton (see the docs) +# 2) The server state, with its complicated automaton (see the docs) +# 3) The keep-alive state, with possible states {True, False} +# 4) The SWITCH_CONNECT state, with possible states {False, True} +# 5) The SWITCH_UPGRADE state, with possible states {False, True} +# +# For (3)-(5), the first state listed is the initial state. +# +# (1)-(3) are stored explicitly in member variables. The last +# two are stored implicitly in the pending_switch_proposals set as: +# (state of 4) == (_SWITCH_CONNECT in pending_switch_proposals) +# (state of 5) == (_SWITCH_UPGRADE in pending_switch_proposals) +# +# And each of these machines has two different kinds of transitions: +# +# a) Event-triggered +# b) State-triggered +# +# Event triggered is the obvious thing that you'd think it is: some event +# happens, and if it's the right event at the right time then a transition +# happens. But there are somewhat complicated rules for which machines can +# "see" which events. (As a rule of thumb, if a machine "sees" an event, this +# means two things: the event can affect the machine, and if the machine is +# not in a state where it expects that event then it's an error.) These rules +# are: +# +# 1) The client machine sees all h11.events objects emitted by the client. +# +# 2) The server machine sees all h11.events objects emitted by the server. +# +# It also sees the client's Request event. +# +# And sometimes, server events are annotated with a _SWITCH_* event. For +# example, we can have a (Response, _SWITCH_CONNECT) event, which is +# different from a regular Response event. +# +# 3) The keep-alive machine sees the process_keep_alive_disabled() event +# (which is derived from Request/Response events), and this event +# transitions it from True -> False, or from False -> False. There's no way +# to transition back. +# +# 4&5) The _SWITCH_* machines transition from False->True when we get a +# Request that proposes the relevant type of switch (via +# process_client_switch_proposals), and they go from True->False when we +# get a Response that has no _SWITCH_* annotation. +# +# So that's event-triggered transitions. +# +# State-triggered transitions are less standard. What they do here is couple +# the machines together. The way this works is, when certain *joint* +# configurations of states are achieved, then we automatically transition to a +# new *joint* state. So, for example, if we're ever in a joint state with +# +# client: DONE +# keep-alive: False +# +# then the client state immediately transitions to: +# +# client: MUST_CLOSE +# +# This is fundamentally different from an event-based transition, because it +# doesn't matter how we arrived at the {client: DONE, keep-alive: False} state +# -- maybe the client transitioned SEND_BODY -> DONE, or keep-alive +# transitioned True -> False. Either way, once this precondition is satisfied, +# this transition is immediately triggered. +# +# What if two conflicting state-based transitions get enabled at the same +# time? In practice there's only one case where this arises (client DONE -> +# MIGHT_SWITCH_PROTOCOL versus DONE -> MUST_CLOSE), and we resolve it by +# explicitly prioritizing the DONE -> MIGHT_SWITCH_PROTOCOL transition. +# +# Implementation +# -------------- +# +# The event-triggered transitions for the server and client machines are all +# stored explicitly in a table. Ditto for the state-triggered transitions that +# involve just the server and client state. +# +# The transitions for the other machines, and the state-triggered transitions +# that involve the other machines, are written out as explicit Python code. +# +# It'd be nice if there were some cleaner way to do all this. This isn't +# *too* terrible, but I feel like it could probably be better. +# +# WARNING +# ------- +# +# The script that generates the state machine diagrams for the docs knows how +# to read out the EVENT_TRIGGERED_TRANSITIONS and STATE_TRIGGERED_TRANSITIONS +# tables. But it can't automatically read the transitions that are written +# directly in Python code. So if you touch those, you need to also update the +# script to keep it in sync! +from typing import cast, Dict, Optional, Set, Tuple, Type, Union + +from ._events import * +from ._util import LocalProtocolError, Sentinel + +# Everything in __all__ gets re-exported as part of the h11 public API. +__all__ = [ + "CLIENT", + "SERVER", + "IDLE", + "SEND_RESPONSE", + "SEND_BODY", + "DONE", + "MUST_CLOSE", + "CLOSED", + "MIGHT_SWITCH_PROTOCOL", + "SWITCHED_PROTOCOL", + "ERROR", +] + + +class CLIENT(Sentinel, metaclass=Sentinel): + pass + + +class SERVER(Sentinel, metaclass=Sentinel): + pass + + +# States +class IDLE(Sentinel, metaclass=Sentinel): + pass + + +class SEND_RESPONSE(Sentinel, metaclass=Sentinel): + pass + + +class SEND_BODY(Sentinel, metaclass=Sentinel): + pass + + +class DONE(Sentinel, metaclass=Sentinel): + pass + + +class MUST_CLOSE(Sentinel, metaclass=Sentinel): + pass + + +class CLOSED(Sentinel, metaclass=Sentinel): + pass + + +class ERROR(Sentinel, metaclass=Sentinel): + pass + + +# Switch types +class MIGHT_SWITCH_PROTOCOL(Sentinel, metaclass=Sentinel): + pass + + +class SWITCHED_PROTOCOL(Sentinel, metaclass=Sentinel): + pass + + +class _SWITCH_UPGRADE(Sentinel, metaclass=Sentinel): + pass + + +class _SWITCH_CONNECT(Sentinel, metaclass=Sentinel): + pass + + +EventTransitionType = Dict[ + Type[Sentinel], + Dict[ + Type[Sentinel], + Dict[Union[Type[Event], Tuple[Type[Event], Type[Sentinel]]], Type[Sentinel]], + ], +] + +EVENT_TRIGGERED_TRANSITIONS: EventTransitionType = { + CLIENT: { + IDLE: {Request: SEND_BODY, ConnectionClosed: CLOSED}, + SEND_BODY: {Data: SEND_BODY, EndOfMessage: DONE}, + DONE: {ConnectionClosed: CLOSED}, + MUST_CLOSE: {ConnectionClosed: CLOSED}, + CLOSED: {ConnectionClosed: CLOSED}, + MIGHT_SWITCH_PROTOCOL: {}, + SWITCHED_PROTOCOL: {}, + ERROR: {}, + }, + SERVER: { + IDLE: { + ConnectionClosed: CLOSED, + Response: SEND_BODY, + # Special case: server sees client Request events, in this form + (Request, CLIENT): SEND_RESPONSE, + }, + SEND_RESPONSE: { + InformationalResponse: SEND_RESPONSE, + Response: SEND_BODY, + (InformationalResponse, _SWITCH_UPGRADE): SWITCHED_PROTOCOL, + (Response, _SWITCH_CONNECT): SWITCHED_PROTOCOL, + }, + SEND_BODY: {Data: SEND_BODY, EndOfMessage: DONE}, + DONE: {ConnectionClosed: CLOSED}, + MUST_CLOSE: {ConnectionClosed: CLOSED}, + CLOSED: {ConnectionClosed: CLOSED}, + SWITCHED_PROTOCOL: {}, + ERROR: {}, + }, +} + +StateTransitionType = Dict[ + Tuple[Type[Sentinel], Type[Sentinel]], Dict[Type[Sentinel], Type[Sentinel]] +] + +# NB: there are also some special-case state-triggered transitions hard-coded +# into _fire_state_triggered_transitions below. +STATE_TRIGGERED_TRANSITIONS: StateTransitionType = { + # (Client state, Server state) -> new states + # Protocol negotiation + (MIGHT_SWITCH_PROTOCOL, SWITCHED_PROTOCOL): {CLIENT: SWITCHED_PROTOCOL}, + # Socket shutdown + (CLOSED, DONE): {SERVER: MUST_CLOSE}, + (CLOSED, IDLE): {SERVER: MUST_CLOSE}, + (ERROR, DONE): {SERVER: MUST_CLOSE}, + (DONE, CLOSED): {CLIENT: MUST_CLOSE}, + (IDLE, CLOSED): {CLIENT: MUST_CLOSE}, + (DONE, ERROR): {CLIENT: MUST_CLOSE}, +} + + +class ConnectionState: + def __init__(self) -> None: + # Extra bits of state that don't quite fit into the state model. + + # If this is False then it enables the automatic DONE -> MUST_CLOSE + # transition. Don't set this directly; call .keep_alive_disabled() + self.keep_alive = True + + # This is a subset of {UPGRADE, CONNECT}, containing the proposals + # made by the client for switching protocols. + self.pending_switch_proposals: Set[Type[Sentinel]] = set() + + self.states: Dict[Type[Sentinel], Type[Sentinel]] = {CLIENT: IDLE, SERVER: IDLE} + + def process_error(self, role: Type[Sentinel]) -> None: + self.states[role] = ERROR + self._fire_state_triggered_transitions() + + def process_keep_alive_disabled(self) -> None: + self.keep_alive = False + self._fire_state_triggered_transitions() + + def process_client_switch_proposal(self, switch_event: Type[Sentinel]) -> None: + self.pending_switch_proposals.add(switch_event) + self._fire_state_triggered_transitions() + + def process_event( + self, + role: Type[Sentinel], + event_type: Type[Event], + server_switch_event: Optional[Type[Sentinel]] = None, + ) -> None: + _event_type: Union[Type[Event], Tuple[Type[Event], Type[Sentinel]]] = event_type + if server_switch_event is not None: + assert role is SERVER + if server_switch_event not in self.pending_switch_proposals: + raise LocalProtocolError( + "Received server _SWITCH_UPGRADE event without a pending proposal" + ) + _event_type = (event_type, server_switch_event) + if server_switch_event is None and _event_type is Response: + self.pending_switch_proposals = set() + self._fire_event_triggered_transitions(role, _event_type) + # Special case: the server state does get to see Request + # events. + if _event_type is Request: + assert role is CLIENT + self._fire_event_triggered_transitions(SERVER, (Request, CLIENT)) + self._fire_state_triggered_transitions() + + def _fire_event_triggered_transitions( + self, + role: Type[Sentinel], + event_type: Union[Type[Event], Tuple[Type[Event], Type[Sentinel]]], + ) -> None: + state = self.states[role] + try: + new_state = EVENT_TRIGGERED_TRANSITIONS[role][state][event_type] + except KeyError: + event_type = cast(Type[Event], event_type) + raise LocalProtocolError( + "can't handle event type {} when role={} and state={}".format( + event_type.__name__, role, self.states[role] + ) + ) from None + self.states[role] = new_state + + def _fire_state_triggered_transitions(self) -> None: + # We apply these rules repeatedly until converging on a fixed point + while True: + start_states = dict(self.states) + + # It could happen that both these special-case transitions are + # enabled at the same time: + # + # DONE -> MIGHT_SWITCH_PROTOCOL + # DONE -> MUST_CLOSE + # + # For example, this will always be true of a HTTP/1.0 client + # requesting CONNECT. If this happens, the protocol switch takes + # priority. From there the client will either go to + # SWITCHED_PROTOCOL, in which case it's none of our business when + # they close the connection, or else the server will deny the + # request, in which case the client will go back to DONE and then + # from there to MUST_CLOSE. + if self.pending_switch_proposals: + if self.states[CLIENT] is DONE: + self.states[CLIENT] = MIGHT_SWITCH_PROTOCOL + + if not self.pending_switch_proposals: + if self.states[CLIENT] is MIGHT_SWITCH_PROTOCOL: + self.states[CLIENT] = DONE + + if not self.keep_alive: + for role in (CLIENT, SERVER): + if self.states[role] is DONE: + self.states[role] = MUST_CLOSE + + # Tabular state-triggered transitions + joint_state = (self.states[CLIENT], self.states[SERVER]) + changes = STATE_TRIGGERED_TRANSITIONS.get(joint_state, {}) + self.states.update(changes) + + if self.states == start_states: + # Fixed point reached + return + + def start_next_cycle(self) -> None: + if self.states != {CLIENT: DONE, SERVER: DONE}: + raise LocalProtocolError( + f"not in a reusable state. self.states={self.states}" + ) + # Can't reach DONE/DONE with any of these active, but still, let's be + # sure. + assert self.keep_alive + assert not self.pending_switch_proposals + self.states = {CLIENT: IDLE, SERVER: IDLE} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_util.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_util.py new file mode 100644 index 0000000000000000000000000000000000000000..6718445290770e028ea2f1f662026c9a0b0991db --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_util.py @@ -0,0 +1,135 @@ +from typing import Any, Dict, NoReturn, Pattern, Tuple, Type, TypeVar, Union + +__all__ = [ + "ProtocolError", + "LocalProtocolError", + "RemoteProtocolError", + "validate", + "bytesify", +] + + +class ProtocolError(Exception): + """Exception indicating a violation of the HTTP/1.1 protocol. + + This as an abstract base class, with two concrete base classes: + :exc:`LocalProtocolError`, which indicates that you tried to do something + that HTTP/1.1 says is illegal, and :exc:`RemoteProtocolError`, which + indicates that the remote peer tried to do something that HTTP/1.1 says is + illegal. See :ref:`error-handling` for details. + + In addition to the normal :exc:`Exception` features, it has one attribute: + + .. attribute:: error_status_hint + + This gives a suggestion as to what status code a server might use if + this error occurred as part of a request. + + For a :exc:`RemoteProtocolError`, this is useful as a suggestion for + how you might want to respond to a misbehaving peer, if you're + implementing a server. + + For a :exc:`LocalProtocolError`, this can be taken as a suggestion for + how your peer might have responded to *you* if h11 had allowed you to + continue. + + The default is 400 Bad Request, a generic catch-all for protocol + violations. + + """ + + def __init__(self, msg: str, error_status_hint: int = 400) -> None: + if type(self) is ProtocolError: + raise TypeError("tried to directly instantiate ProtocolError") + Exception.__init__(self, msg) + self.error_status_hint = error_status_hint + + +# Strategy: there are a number of public APIs where a LocalProtocolError can +# be raised (send(), all the different event constructors, ...), and only one +# public API where RemoteProtocolError can be raised +# (receive_data()). Therefore we always raise LocalProtocolError internally, +# and then receive_data will translate this into a RemoteProtocolError. +# +# Internally: +# LocalProtocolError is the generic "ProtocolError". +# Externally: +# LocalProtocolError is for local errors and RemoteProtocolError is for +# remote errors. +class LocalProtocolError(ProtocolError): + def _reraise_as_remote_protocol_error(self) -> NoReturn: + # After catching a LocalProtocolError, use this method to re-raise it + # as a RemoteProtocolError. This method must be called from inside an + # except: block. + # + # An easy way to get an equivalent RemoteProtocolError is just to + # modify 'self' in place. + self.__class__ = RemoteProtocolError # type: ignore + # But the re-raising is somewhat non-trivial -- you might think that + # now that we've modified the in-flight exception object, that just + # doing 'raise' to re-raise it would be enough. But it turns out that + # this doesn't work, because Python tracks the exception type + # (exc_info[0]) separately from the exception object (exc_info[1]), + # and we only modified the latter. So we really do need to re-raise + # the new type explicitly. + # On py3, the traceback is part of the exception object, so our + # in-place modification preserved it and we can just re-raise: + raise self + + +class RemoteProtocolError(ProtocolError): + pass + + +def validate( + regex: Pattern[bytes], data: bytes, msg: str = "malformed data", *format_args: Any +) -> Dict[str, bytes]: + match = regex.fullmatch(data) + if not match: + if format_args: + msg = msg.format(*format_args) + raise LocalProtocolError(msg) + return match.groupdict() + + +# Sentinel values +# +# - Inherit identity-based comparison and hashing from object +# - Have a nice repr +# - Have a *bonus property*: type(sentinel) is sentinel +# +# The bonus property is useful if you want to take the return value from +# next_event() and do some sort of dispatch based on type(event). + +_T_Sentinel = TypeVar("_T_Sentinel", bound="Sentinel") + + +class Sentinel(type): + def __new__( + cls: Type[_T_Sentinel], + name: str, + bases: Tuple[type, ...], + namespace: Dict[str, Any], + **kwds: Any + ) -> _T_Sentinel: + assert bases == (Sentinel,) + v = super().__new__(cls, name, bases, namespace, **kwds) + v.__class__ = v # type: ignore + return v + + def __repr__(self) -> str: + return self.__name__ + + +# Used for methods, request targets, HTTP versions, header names, and header +# values. Accepts ascii-strings, or bytes/bytearray/memoryview/..., and always +# returns bytes. +def bytesify(s: Union[bytes, bytearray, memoryview, int, str]) -> bytes: + # Fast-path: + if type(s) is bytes: + return s + if isinstance(s, str): + s = s.encode("ascii") + if isinstance(s, int): + raise TypeError("expected bytes-like object, not int") + return bytes(s) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_version.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_version.py new file mode 100644 index 0000000000000000000000000000000000000000..76e7327b8617c9d12236f511414d5eb58e98a44b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_version.py @@ -0,0 +1,16 @@ +# This file must be kept very simple, because it is consumed from several +# places -- it is imported by h11/__init__.py, execfile'd by setup.py, etc. + +# We use a simple scheme: +# 1.0.0 -> 1.0.0+dev -> 1.1.0 -> 1.1.0+dev +# where the +dev versions are never released into the wild, they're just what +# we stick into the VCS in between releases. +# +# This is compatible with PEP 440: +# http://legacy.python.org/dev/peps/pep-0440/ +# via the use of the "local suffix" "+dev", which is disallowed on index +# servers and causes 1.0.0+dev to sort after plain 1.0.0, which is what we +# want. (Contrast with the special suffix 1.0.0.dev, which sorts *before* +# 1.0.0.) + +__version__ = "0.16.0" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_writers.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_writers.py new file mode 100644 index 0000000000000000000000000000000000000000..939cdb912a9debaea07fbf3a9ac04549c44d077c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/_writers.py @@ -0,0 +1,145 @@ +# Code to read HTTP data +# +# Strategy: each writer takes an event + a write-some-bytes function, which is +# calls. +# +# WRITERS is a dict describing how to pick a reader. It maps states to either: +# - a writer +# - or, for body writers, a dict of framin-dependent writer factories + +from typing import Any, Callable, Dict, List, Tuple, Type, Union + +from ._events import Data, EndOfMessage, Event, InformationalResponse, Request, Response +from ._headers import Headers +from ._state import CLIENT, IDLE, SEND_BODY, SEND_RESPONSE, SERVER +from ._util import LocalProtocolError, Sentinel + +__all__ = ["WRITERS"] + +Writer = Callable[[bytes], Any] + + +def write_headers(headers: Headers, write: Writer) -> None: + # "Since the Host field-value is critical information for handling a + # request, a user agent SHOULD generate Host as the first header field + # following the request-line." - RFC 7230 + raw_items = headers._full_items + for raw_name, name, value in raw_items: + if name == b"host": + write(b"%s: %s\r\n" % (raw_name, value)) + for raw_name, name, value in raw_items: + if name != b"host": + write(b"%s: %s\r\n" % (raw_name, value)) + write(b"\r\n") + + +def write_request(request: Request, write: Writer) -> None: + if request.http_version != b"1.1": + raise LocalProtocolError("I only send HTTP/1.1") + write(b"%s %s HTTP/1.1\r\n" % (request.method, request.target)) + write_headers(request.headers, write) + + +# Shared between InformationalResponse and Response +def write_any_response( + response: Union[InformationalResponse, Response], write: Writer +) -> None: + if response.http_version != b"1.1": + raise LocalProtocolError("I only send HTTP/1.1") + status_bytes = str(response.status_code).encode("ascii") + # We don't bother sending ascii status messages like "OK"; they're + # optional and ignored by the protocol. (But the space after the numeric + # status code is mandatory.) + # + # XX FIXME: could at least make an effort to pull out the status message + # from stdlib's http.HTTPStatus table. Or maybe just steal their enums + # (either by import or copy/paste). We already accept them as status codes + # since they're of type IntEnum < int. + write(b"HTTP/1.1 %s %s\r\n" % (status_bytes, response.reason)) + write_headers(response.headers, write) + + +class BodyWriter: + def __call__(self, event: Event, write: Writer) -> None: + if type(event) is Data: + self.send_data(event.data, write) + elif type(event) is EndOfMessage: + self.send_eom(event.headers, write) + else: # pragma: no cover + assert False + + def send_data(self, data: bytes, write: Writer) -> None: + pass + + def send_eom(self, headers: Headers, write: Writer) -> None: + pass + + +# +# These are all careful not to do anything to 'data' except call len(data) and +# write(data). This allows us to transparently pass-through funny objects, +# like placeholder objects referring to files on disk that will be sent via +# sendfile(2). +# +class ContentLengthWriter(BodyWriter): + def __init__(self, length: int) -> None: + self._length = length + + def send_data(self, data: bytes, write: Writer) -> None: + self._length -= len(data) + if self._length < 0: + raise LocalProtocolError("Too much data for declared Content-Length") + write(data) + + def send_eom(self, headers: Headers, write: Writer) -> None: + if self._length != 0: + raise LocalProtocolError("Too little data for declared Content-Length") + if headers: + raise LocalProtocolError("Content-Length and trailers don't mix") + + +class ChunkedWriter(BodyWriter): + def send_data(self, data: bytes, write: Writer) -> None: + # if we encoded 0-length data in the naive way, it would look like an + # end-of-message. + if not data: + return + write(b"%x\r\n" % len(data)) + write(data) + write(b"\r\n") + + def send_eom(self, headers: Headers, write: Writer) -> None: + write(b"0\r\n") + write_headers(headers, write) + + +class Http10Writer(BodyWriter): + def send_data(self, data: bytes, write: Writer) -> None: + write(data) + + def send_eom(self, headers: Headers, write: Writer) -> None: + if headers: + raise LocalProtocolError("can't send trailers to HTTP/1.0 client") + # no need to close the socket ourselves, that will be taken care of by + # Connection: close machinery + + +WritersType = Dict[ + Union[Tuple[Type[Sentinel], Type[Sentinel]], Type[Sentinel]], + Union[ + Dict[str, Type[BodyWriter]], + Callable[[Union[InformationalResponse, Response], Writer], None], + Callable[[Request, Writer], None], + ], +] + +WRITERS: WritersType = { + (CLIENT, IDLE): write_request, + (SERVER, IDLE): write_any_response, + (SERVER, SEND_RESPONSE): write_any_response, + SEND_BODY: { + "chunked": ChunkedWriter, + "content-length": ContentLengthWriter, + "http/1.0": Http10Writer, + }, +} diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/py.typed b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/py.typed new file mode 100644 index 0000000000000000000000000000000000000000..f5642f79f21d872f010979dcf6f0c4a415acc19d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/h11/py.typed @@ -0,0 +1 @@ +Marker diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/INSTALLER b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a1b589e38a32041e49332e5e81c2d363dc418d68 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/METADATA b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..ef6cd08bdb0f4edb12f4fc4c9ad7e4459e7ad03b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/METADATA @@ -0,0 +1,13 @@ +Metadata-Version: 2.4 +Name: hf-gradio +Version: 0.4.1 +Summary: An extension of the Hugging Face CLI for interacting with Gradio Spaces and Apps. +Project-URL: Homepage, https://github.com/gradio-app/hf-gradio# +License-Expression: MIT +License-File: LICENSE +Requires-Python: >=3.10 +Requires-Dist: gradio-client<3.0,>=2.0 +Requires-Dist: typer +Provides-Extra: dev +Requires-Dist: ruff; extra == 'dev' +Requires-Dist: ty; extra == 'dev' diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/RECORD b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..7f21934d1c1d800226af40cf34363345b13e319a --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/RECORD @@ -0,0 +1,11 @@ +../../Scripts/hf-gradio.exe,sha256=ofECfWZ7u2gnXBkYl7ODubCVywCBIVi7qZBNWS409m8,108371 +hf_gradio-0.4.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +hf_gradio-0.4.1.dist-info/METADATA,sha256=864HPKZU6kqYMWKQP2FdJ8PIiAEQpif3IJeDWVDdgmM,428 +hf_gradio-0.4.1.dist-info/RECORD,, +hf_gradio-0.4.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87 +hf_gradio-0.4.1.dist-info/entry_points.txt,sha256=3yVhW7DvvV3hRYHKYibN5VCII747GJdsExdMFrKkXxY,48 +hf_gradio-0.4.1.dist-info/licenses/LICENSE,sha256=WO3v7nBlxaUbeoG4dQKHcNUaXVFsw06zFwEvYTjIb-A,1063 +hf_gradio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +hf_gradio/__pycache__/__init__.cpython-311.pyc,, +hf_gradio/__pycache__/cli.cpython-311.pyc,, +hf_gradio/cli.py,sha256=vSPcEF4UdcS-oSzC4ptX6hBQZwq5cnCC-pVZ-BK8kww,7570 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/WHEEL b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..b1b94fd58e7e9ed0ef3449473bc48de68afcc3fe --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: hatchling 1.29.0 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/entry_points.txt b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..b911506a07aebb13fd5badc63767fa603b4b5ded --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/entry_points.txt @@ -0,0 +1,2 @@ +[console_scripts] +hf-gradio = hf_gradio.cli:app diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/licenses/LICENSE b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..8255164845a8c66835ed07ff22c18ffc26fb509c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio-0.4.1.dist-info/licenses/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Gradio + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f7aeaa0d6634a6cfc2085eabbc7b5d35562998e8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__pycache__/cli.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__pycache__/cli.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fdc66aa7ac9927ef73b47333af04916568b99b04 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/__pycache__/cli.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/cli.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/cli.py new file mode 100644 index 0000000000000000000000000000000000000000..8aa0105342d0e08971d61cd13581cbec6611bb1f --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_gradio/cli.py @@ -0,0 +1,222 @@ +from __future__ import annotations + +import typer +from typing import Annotated, Any +from gradio_client import Client +from gradio_client.client import DEFAULT_TEMP_DIR +from gradio_client.utils import traverse +import json + +app = typer.Typer() + + +def _resolve_refs(schema: Any, defs: dict[str, Any] | None = None) -> Any: + """Recursively resolve $ref references and remove $defs.""" + if not isinstance(schema, dict): + if isinstance(schema, list): + return [_resolve_refs(item, defs) for item in schema] + return schema + + if defs is None: + defs = schema.get("$defs", {}) + + if "$ref" in schema: + ref_path = schema["$ref"] + ref_name = ref_path.split("/")[-1] + if ref_name in defs: + return _resolve_refs(defs[ref_name], defs) # type: ignore + return schema + + resolved = {} + for key, value in schema.items(): + if key == "$defs": + continue + resolved[key] = _resolve_refs(value, defs) + return resolved + + +def _is_file_schema(schema: Any) -> bool: + """Check if a schema represents a file type (has path + meta with gradio.FileData).""" + if not isinstance(schema, dict): + return False + props = schema.get("properties", {}) + if "path" not in props or "meta" not in props: + return False + meta = props["meta"] + meta_props = meta.get("properties", {}) + if "_type" in meta_props: + return meta_props["_type"].get("const") == "gradio.FileData" + meta_default = meta.get("default", {}) + if isinstance(meta_default, dict): + return meta_default.get("_type") == "gradio.FileData" + return False + + +def _is_file_dict(d): + return ( + isinstance(d, dict) + and isinstance(d.get("path", None), str) + and d.get("meta") == {"_type": "gradio.FileData"} + ) + + +def simplify_json_schema(schema: Any, is_input: bool = True, url_only: bool = False): + schema = _resolve_refs(schema) + simplifier = _make_file_simplifier(is_input, url_only) + return traverse( + schema, + simplifier, + _is_file_schema, + ) + + +def _make_file_simplifier(is_input: bool, url_only: bool = False): + def _simplify(schema: Any) -> Any: + props = schema.get("properties", {}) + if "meta" in props and "path" in props: + if is_input: + if url_only: + desc = 'Must include {"path": "url", "meta": {"_type": "gradio.FileData"}}. ' + else: + desc = 'Must include {"path": "", "meta": {"_type": "gradio.FileData"}}. ' + return { + "type": "filepath", + "description": ( + desc + + "The meta key signals that the file will be uploaded to the remote server." + ), + } + else: + if url_only: + return { + "type": "object", + "description": "JSON object with url key to fetch the output", + } + return { + "type": "filepath", + "description": "The returned file path on disk.", + } + return schema + + return _simplify + + +def _condense_info(info: dict[str, Any], url_only: bool = False): + condensed_info = {} + for endpoint, data_format in info["named_endpoints"].items(): + endpoint_info = { + "parameters": [], + "returns": [], + "description": data_format.get("description", ""), + } + for param in data_format["parameters"]: + endpoint_info["parameters"].append( + { + "name": param["parameter_name"], + "required": not param["parameter_has_default"], + "default": param["parameter_default"], + "type": simplify_json_schema( + param["type"], is_input=True, url_only=url_only + ), + } + ) + for output in data_format["returns"]: + endpoint_info["returns"].append( + { + "name": output["label"], + "type": simplify_json_schema( + output["type"], is_input=False, url_only=url_only + ), + } + ) + condensed_info[endpoint] = endpoint_info + return condensed_info + + +def _delete_keys(d): + return {k: v for k, v in d.items() if k in ["path", "meta"]} + + +def generate_cli_snippet(original_info): + endpoints = {} + for endpoint, info in original_info.items(): + params = json.dumps( + { + p["parameter_name"]: traverse( + p["parameter_default"] or p["example_input"], + _delete_keys, + _is_file_dict, + ) + for p in info["parameters"] + }, + indent=2, + ) + endpoints[endpoint] = f""" +{{command}} predict {{space_id}} {endpoint} '{params}' +""".lstrip("\n") + return endpoints + + +@app.command() +def info( + space_id_or_url: Annotated[ + str, + typer.Argument( + help="The space id, e.g. gradio/calculator or URL of the Gradio application" + ), + ], + token: Annotated[ + str | None, + typer.Option( + help="optional Hugging Face token to use to access private Spaces. By default, the locally saved token is used if there is one.", + ), + ] = None, +): + """Fetches the expected JSON payload for all of the app's endpoints.""" + client = Client(src=space_id_or_url, token=token, verbose=False) + original_info = client.view_api(return_format="dict", print_info=False) + condensed_info = _condense_info(original_info) # type: ignore + print(json.dumps(condensed_info, indent=2)) + + +@app.command() +def predict( + space_id_or_url: Annotated[ + str, + typer.Argument( + help="The space id, e.g. gradio/calculator or URL of the Gradio application" + ), + ], + endpoint: Annotated[str, typer.Argument(help="The endpoint to hit")], + payload: Annotated[str, typer.Argument(help="The payload to send to the space")], + download_files: Annotated[ + str, + typer.Option( + help="The directory where the files created by the space are downloaded to on your local machine. By default, this is the Gradio temporary directory. If False, a URL pointing to the file on the remote app will be returned instead." + ), + ] = DEFAULT_TEMP_DIR, + token: Annotated[ + str | None, + typer.Option( + help="optional Hugging Face token to use to access private Spaces. By default, the locally saved token is used if there is one.", + ), + ] = None, +): + """Sends a prediction request to a Gradio app endpoint.""" + client = Client( + src=space_id_or_url, + token=token, + verbose=False, + download_files=download_files if download_files != "False" else False, + ) + payload = json.loads(payload) + result = client.predict(**payload, api_name=endpoint) # type: ignore + + original_info = client.view_api(return_format="dict", print_info=False) + condensed_info = _condense_info(original_info) # type: ignore + return_names = [r["name"] for r in condensed_info[endpoint]["returns"]] + + if not isinstance(result, tuple): + result = (result,) + output = dict(zip(return_names, result)) + print(json.dumps(output, indent=2)) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/INSTALLER b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a1b589e38a32041e49332e5e81c2d363dc418d68 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/METADATA b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..03d1bfcaf672a1fd01b893033ae051387687e356 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/METADATA @@ -0,0 +1,87 @@ +Metadata-Version: 2.4 +Name: hf-xet +Version: 1.6.0 +Classifier: Development Status :: 5 - Production/Stable +Classifier: License :: OSI Approved :: Apache Software License +Classifier: Programming Language :: Rust +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: 3.14 +Classifier: Programming Language :: Python :: Free Threading +Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta +Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence +Requires-Dist: pytest ; extra == 'tests' +Provides-Extra: tests +License-File: LICENSE +Summary: Fast transfer of large files with the Hugging Face Hub. +Maintainer-email: Rajat Arya , Jared Sulzdorf , Di Xiao , Assaf Vayner , Hoyt Koepke +License-Expression: Apache-2.0 +Requires-Python: >=3.8 +Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM +Project-URL: Documentation, https://huggingface.co/docs/hub/xet/index +Project-URL: Homepage, https://github.com/huggingface/xet-core +Project-URL: Issues, https://github.com/huggingface/xet-core/issues +Project-URL: Repository, https://github.com/huggingface/xet-core.git + + +

    + License + GitHub release + Contributor Covenant +

    + +

    +

    🤗 hf-xet - xet client tech, used in huggingface_hub

    +

    + +## Welcome + +`hf-xet` enables `huggingface_hub` to utilize xet storage for uploading and downloading to HF Hub. Xet storage provides chunk-based deduplication, efficient storage/retrieval with local disk caching, and backwards compatibility with Git LFS. This library is not meant to be used directly, and is instead intended to be used from [huggingface_hub](https://pypi.org/project/huggingface-hub). + +## Key features + +♻ **chunk-based deduplication implementation**: avoid transferring and storing chunks that are shared across binary files (models, datasets, etc). + +🤗 **Python bindings**: bindings for [huggingface_hub](https://github.com/huggingface/huggingface_hub/) package. + +↔ **network communications**: concurrent communication to HF Hub Xet backend services (CAS). + +🔖 **local disk caching**: chunk-based cache that sits alongside the existing [huggingface_hub disk cache](https://huggingface.co/docs/huggingface_hub/guides/manage-cache). + +## Installation + +Install the `hf_xet` package with [pip](https://pypi.org/project/hf-xet/): + +```bash +pip install hf_xet +``` + +## Quick Start + +`hf_xet` is not intended to be run independently as it is expected to be used from `huggingface_hub`, so to get started with `huggingface_hub` check out the documentation [here]("https://hf.co/docs/huggingface_hub"). + +## Contributions (feature requests, bugs, etc.) are encouraged & appreciated 💙💚💛💜🧡❤️ + +Please join us in making hf-xet better. We value everyone's contributions. Code is not the only way to help. Answering questions, helping each other, improving documentation, filing issues all help immensely. If you are interested in contributing (please do!), check out the [contribution guide](https://github.com/huggingface/xet-core/blob/main/CONTRIBUTING.md) for this repository. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/RECORD b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..9372db5c6a814be559d3f187e888e0e7a874fc43 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/RECORD @@ -0,0 +1,9 @@ +hf_xet-1.6.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +hf_xet-1.6.0.dist-info/METADATA,sha256=sSJmIGMeRRKQnxgmmPG4qPicXYaLrDxs6-MKjQ8KDNA,4935 +hf_xet-1.6.0.dist-info/RECORD,, +hf_xet-1.6.0.dist-info/WHEEL,sha256=RD58zsFMg5Xm6opfRt5qGok5PcA30CAhknyKFSihcu8,95 +hf_xet-1.6.0.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558 +hf_xet-1.6.0.dist-info/sboms/hf_xet.cyclonedx.json,sha256=Tbvi_NZWwi_KKBrYVZBx9Xz9u4Z9_kkVdMzjDIe-p3w,288898 +hf_xet/__init__.py,sha256=E8UDdyQ8glZ_nve9hHEf22bPang8-RKx4VuApXYeQUo,107 +hf_xet/__pycache__/__init__.cpython-311.pyc,, +hf_xet/hf_xet.pyd,sha256=6o9d2xrkKt9eTTduwnt_HqH-hD4V9dep5F_hKYyk_Uw,9499136 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/WHEEL b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..40aa1ace8b327c0de039f73a7ce39d8552084242 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: maturin (1.14.1) +Root-Is-Purelib: false +Tag: cp38-abi3-win_amd64 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/licenses/LICENSE b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..29f81d812f3e768fa89638d1f72920dbfd1413a8 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/licenses/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/sboms/hf_xet.cyclonedx.json b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/sboms/hf_xet.cyclonedx.json new file mode 100644 index 0000000000000000000000000000000000000000..c3c055bbae2efe0302e3b40463146e21511b1ef8 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet-1.6.0.dist-info/sboms/hf_xet.cyclonedx.json @@ -0,0 +1,8892 @@ +{ + "bomFormat": "CycloneDX", + "specVersion": "1.5", + "version": 1, + "serialNumber": "urn:uuid:9881d77f-1c44-4ee1-8f23-b6875e33d0e1", + "metadata": { + "timestamp": "2026-08-03T22:21:44.134383900Z", + "tools": [ + { + "vendor": "CycloneDX", + "name": "cargo-cyclonedx", + "version": "0.5.9" + } + ], + "component": { + "type": "library", + "bom-ref": "path+file:///D:/a/xet-core/xet-core/hf_xet#1.6.0", + "name": "hf_xet", + "version": "1.6.0", + "scope": "required", + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/hf_xet@1.6.0?download_url=file://.", + "components": [ + { + "type": "library", + "bom-ref": "path+file:///D:/a/xet-core/xet-core/hf_xet#1.6.0 bin-target-0", + "name": "hf_xet", + "version": "1.6.0", + "purl": "pkg:cargo/hf_xet@1.6.0?download_url=file://.#src/lib.rs" + } + ] + }, + "properties": [ + { + "name": "cdx:rustc:sbom:target:all_targets", + "value": "true" + } + ] + }, + "components": [ + { + "type": "library", + "bom-ref": "path+file:///D:/a/xet-core/xet-core/xet_client#xet-client@1.6.0", + "name": "xet-client", + "version": "1.6.0", + "description": "Client library for communicating with Hugging Face Xet storage servers. Use through the hf-xet crate.", + "scope": "required", + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/xet-client@1.6.0?download_url=file://D:\\a\\xet-core\\xet-core\\xet_client", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/huggingface/xet-core" + }, + { + "type": "vcs", + "url": "https://github.com/huggingface/xet-core" + } + ] + }, + { + "type": "library", + "bom-ref": "path+file:///D:/a/xet-core/xet-core/xet_core_structures#xet-core-structures@1.6.0", + "name": "xet-core-structures", + "version": "1.6.0", + "description": "Core data structures including MerkleHash, metadata shards, and Xorb objects.", + "scope": "required", + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/xet-core-structures@1.6.0?download_url=file://D:\\a\\xet-core\\xet-core\\xet_core_structures", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/huggingface/xet-core" + }, + { + "type": "vcs", + "url": "https://github.com/huggingface/xet-core" + } + ] + }, + { + "type": "library", + "bom-ref": "path+file:///D:/a/xet-core/xet-core/xet_data#xet-data@1.6.0", + "name": "xet-data", + "version": "1.6.0", + "description": "Data processing pipeline for chunking, deduplication, and file reconstruction; used in the Hugging Face Xet client tools. Intended to be used through the API in the hf-xet package.", + "scope": "required", + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/xet-data@1.6.0?download_url=file://D:\\a\\xet-core\\xet-core\\xet_data", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/huggingface/xet-core" + }, + { + "type": "vcs", + "url": "https://github.com/huggingface/xet-core" + } + ] + }, + { + "type": "library", + "bom-ref": "path+file:///D:/a/xet-core/xet-core/xet_pkg#hf-xet@1.6.0", + "name": "hf-xet", + "version": "1.6.0", + "description": "Client library and tooling for the Hugging Face Xet data storage system.", + "scope": "required", + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/hf-xet@1.6.0?download_url=file://D:\\a\\xet-core\\xet-core\\xet_pkg", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/huggingface/xet-core" + }, + { + "type": "vcs", + "url": "https://github.com/huggingface/xet-core" + } + ] + }, + { + "type": "library", + "bom-ref": "path+file:///D:/a/xet-core/xet-core/xet_runtime#xet-runtime@1.6.0", + "name": "xet-runtime", + "version": "1.6.0", + "description": "Async runtime, configuration, logging, and utility infrastructure for the Hugging Face Xet client tools.", + "scope": "required", + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/xet-runtime@1.6.0?download_url=file://D:\\a\\xet-core\\xet-core\\xet_runtime", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/huggingface/xet-core" + }, + { + "type": "vcs", + "url": "https://github.com/huggingface/xet-core" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#aho-corasick@1.1.4", + "author": "Andrew Gallant ", + "name": "aho-corasick", + "version": "1.1.4", + "description": "Fast multiple substring searching.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" + } + ], + "licenses": [ + { + "expression": "Unlicense OR MIT" + } + ], + "purl": "pkg:cargo/aho-corasick@1.1.4", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/BurntSushi/aho-corasick" + }, + { + "type": "vcs", + "url": "https://github.com/BurntSushi/aho-corasick" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.103", + "author": "David Tolnay ", + "name": "anyhow", + "version": "1.0.103", + "description": "Flexible concrete Error type built on std::error::Error", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/anyhow@1.0.103", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/anyhow" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/anyhow" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#approx@0.5.1", + "author": "Brendan Zabarauskas ", + "name": "approx", + "version": "0.5.1", + "description": "Approximate floating point equality comparisons and assertions.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" + } + ], + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/approx@0.5.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/approx" + }, + { + "type": "website", + "url": "https://github.com/brendanzab/approx" + }, + { + "type": "vcs", + "url": "https://github.com/brendanzab/approx" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#arrayref@0.3.9", + "author": "David Roundy ", + "name": "arrayref", + "version": "0.3.9", + "description": "Macros to take array references of slices", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + } + ], + "licenses": [ + { + "expression": "BSD-2-Clause" + } + ], + "purl": "pkg:cargo/arrayref@0.3.9", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/arrayref" + }, + { + "type": "vcs", + "url": "https://github.com/droundy/arrayref" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#arrayvec@0.7.6", + "author": "bluss", + "name": "arrayvec", + "version": "0.7.6", + "description": "A vector with fixed capacity, backed by an array (it can be stored on the stack too). Implements fixed capacity ArrayVec and ArrayString.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/arrayvec@0.7.6", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/arrayvec/" + }, + { + "type": "vcs", + "url": "https://github.com/bluss/arrayvec" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "author": "David Tolnay ", + "name": "async-trait", + "version": "0.1.89", + "description": "Type erasure for async trait methods", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/async-trait@0.1.89", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/async-trait" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/async-trait" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#atomic-waker@1.1.2", + "author": "Stjepan Glavina , Contributors to futures-rs", + "name": "atomic-waker", + "version": "1.1.2", + "description": "A synchronization primitive for task wakeup", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/atomic-waker@1.1.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/smol-rs/atomic-waker" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.0", + "author": "Josh Stone ", + "name": "autocfg", + "version": "1.5.0", + "description": "Automatic cfg for Rust compiler features", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/autocfg@1.5.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/autocfg/" + }, + { + "type": "vcs", + "url": "https://github.com/cuviper/autocfg" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#aws-lc-rs@1.16.2", + "author": "AWS-LibCrypto", + "name": "aws-lc-rs", + "version": "1.16.2", + "description": "aws-lc-rs is a cryptographic library using AWS-LC for its cryptographic operations. This library strives to be API-compatible with the popular Rust library named ring.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a054912289d18629dc78375ba2c3726a3afe3ff71b4edba9dedfca0e3446d1fc" + } + ], + "licenses": [ + { + "expression": "ISC AND (Apache-2.0 OR ISC)" + } + ], + "purl": "pkg:cargo/aws-lc-rs@1.16.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/crate/aws-lc-rs" + }, + { + "type": "website", + "url": "https://github.com/aws/aws-lc-rs" + }, + { + "type": "other", + "url": "aws_lc_rs_1_16_2_sys" + }, + { + "type": "vcs", + "url": "https://github.com/aws/aws-lc-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#aws-lc-sys@0.39.0", + "author": "AWS-LC", + "name": "aws-lc-sys", + "version": "0.39.0", + "description": "AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1fa7e52a4c5c547c741610a2c6f123f3881e409b714cd27e6798ef020c514f0a" + } + ], + "licenses": [ + { + "expression": "ISC AND (Apache-2.0 OR ISC) AND Apache-2.0 AND MIT AND BSD-3-Clause AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR ISC OR MIT-0)" + } + ], + "purl": "pkg:cargo/aws-lc-sys@0.39.0", + "externalReferences": [ + { + "type": "other", + "url": "aws_lc_0_39_0" + }, + { + "type": "vcs", + "url": "https://github.com/aws/aws-lc-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#base64@0.22.1", + "author": "Marshall Pierce ", + "name": "base64", + "version": "0.22.1", + "description": "encodes and decodes base64 as bytes or utf8", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/base64@0.22.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/base64" + }, + { + "type": "vcs", + "url": "https://github.com/marshallpierce/rust-base64" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#bitflags@2.11.0", + "author": "The Rust Project Developers", + "name": "bitflags", + "version": "2.11.0", + "description": "A macro to generate structures which behave like bitflags. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/bitflags@2.11.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/bitflags" + }, + { + "type": "website", + "url": "https://github.com/bitflags/bitflags" + }, + { + "type": "vcs", + "url": "https://github.com/bitflags/bitflags" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#blake3@1.8.3", + "author": "Jack O'Connor , Samuel Neves", + "name": "blake3", + "version": "1.8.3", + "description": "the BLAKE3 hash function", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2468ef7d57b3fb7e16b576e8377cdbde2320c60e1491e961d11da40fc4f02a2d" + } + ], + "licenses": [ + { + "expression": "CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception" + } + ], + "purl": "pkg:cargo/blake3@1.8.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/blake3" + }, + { + "type": "vcs", + "url": "https://github.com/BLAKE3-team/BLAKE3" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#block-buffer@0.12.1", + "author": "RustCrypto Developers", + "name": "block-buffer", + "version": "0.12.1", + "description": "Buffer types for block processing of data", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/block-buffer@0.12.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/block-buffer" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/utils" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#bstr@1.12.1", + "author": "Andrew Gallant ", + "name": "bstr", + "version": "1.12.1", + "description": "A string type that is not required to be valid UTF-8.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/bstr@1.12.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/bstr" + }, + { + "type": "website", + "url": "https://github.com/BurntSushi/bstr" + }, + { + "type": "vcs", + "url": "https://github.com/BurntSushi/bstr" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#bytemuck@1.25.0", + "author": "Lokathor ", + "name": "bytemuck", + "version": "1.25.0", + "description": "A crate for mucking around with piles of bytes.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + } + ], + "licenses": [ + { + "expression": "Zlib OR Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/bytemuck@1.25.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/Lokathor/bytemuck" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "author": "Carl Lerche , Sean McArthur ", + "name": "bytes", + "version": "1.11.1", + "description": "Types and traits for working with bytes", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/bytes@1.11.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/tokio-rs/bytes" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#cc@1.2.57", + "author": "Alex Crichton ", + "name": "cc", + "version": "1.2.57", + "description": "A build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into Rust code. ", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/cc@1.2.57", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/cc" + }, + { + "type": "website", + "url": "https://github.com/rust-lang/cc-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/cc-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#cfg-if@0.1.10", + "author": "Alex Crichton ", + "name": "cfg-if", + "version": "0.1.10", + "description": "A macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch is the item that gets emitted. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/cfg-if@0.1.10", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/cfg-if" + }, + { + "type": "website", + "url": "https://github.com/alexcrichton/cfg-if" + }, + { + "type": "vcs", + "url": "https://github.com/alexcrichton/cfg-if" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4", + "author": "Alex Crichton ", + "name": "cfg-if", + "version": "1.0.4", + "description": "A macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch is the item that gets emitted. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/cfg-if@1.0.4", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/rust-lang/cfg-if" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#cfg_aliases@0.2.1", + "author": "Zicklag ", + "name": "cfg_aliases", + "version": "0.2.1", + "description": "A tiny utility to help save you a lot of effort with long winded `#[cfg()]` checks.", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/cfg_aliases@0.2.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/cfg_aliases" + }, + { + "type": "website", + "url": "https://github.com/katharostech/cfg_aliases" + }, + { + "type": "vcs", + "url": "https://github.com/katharostech/cfg_aliases" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#chacha20@0.10.0", + "author": "RustCrypto Developers", + "name": "chacha20", + "version": "0.10.0", + "description": "The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits from the RustCrypto `cipher` crate, with optional architecture-specific hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12, XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional rand_core-compatible RNGs based on those ciphers. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/chacha20@0.10.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/chacha20" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/stream-ciphers" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#chrono@0.4.44", + "name": "chrono", + "version": "0.4.44", + "description": "Date and time library for Rust", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/chrono@0.4.44", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/chrono/" + }, + { + "type": "website", + "url": "https://github.com/chronotope/chrono" + }, + { + "type": "vcs", + "url": "https://github.com/chronotope/chrono" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#cmake@0.1.57", + "author": "Alex Crichton ", + "name": "cmake", + "version": "0.1.57", + "description": "A build dependency for running `cmake` to build a native library ", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/cmake@0.1.57", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/cmake" + }, + { + "type": "website", + "url": "https://github.com/rust-lang/cmake-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/cmake-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#colored@3.1.1", + "author": "Thomas Wickham ", + "name": "colored", + "version": "3.1.1", + "description": "The most simple way to add colors in your terminal", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" + } + ], + "licenses": [ + { + "expression": "MPL-2.0" + } + ], + "purl": "pkg:cargo/colored@3.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/mackwic/colored" + }, + { + "type": "vcs", + "url": "https://github.com/mackwic/colored" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#const-oid@0.10.2", + "author": "RustCrypto Developers", + "name": "const-oid", + "version": "0.10.2", + "description": "Const-friendly implementation of the ISO/IEC Object Identifier (OID) standard as defined in ITU X.660, with support for BER/DER encoding/decoding as well as heapless no_std (i.e. embedded) support ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/const-oid@0.10.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/const-oid" + }, + { + "type": "website", + "url": "https://github.com/RustCrypto/formats/tree/master/const-oid" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/formats" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#const-str@1.1.0", + "author": "Nugine ", + "name": "const-str", + "version": "1.1.0", + "description": "compile-time string operations", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "18f12cc9948ed9604230cdddc7c86e270f9401ccbe3c2e98a4378c5e7632212f" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/const-str@1.1.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/Nugine/const-str" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#const_panic@0.2.15", + "author": "rodrimati1992 ", + "name": "const_panic", + "version": "0.2.15", + "description": "const panic with formatting", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e262cdaac42494e3ae34c43969f9cdeb7da178bdb4b66fa6a1ea2edb4c8ae652" + } + ], + "licenses": [ + { + "expression": "Zlib" + } + ], + "purl": "pkg:cargo/const_panic@0.2.15", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/rodrimati1992/const_panic/" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#constant_time_eq@0.4.2", + "author": "Cesar Eduardo Barros ", + "name": "constant_time_eq", + "version": "0.4.2", + "description": "Compares two equal-sized byte strings in constant time.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + } + ], + "licenses": [ + { + "expression": "CC0-1.0 OR MIT-0 OR Apache-2.0" + } + ], + "purl": "pkg:cargo/constant_time_eq@0.4.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/constant_time_eq" + }, + { + "type": "vcs", + "url": "https://github.com/cesarb/constant_time_eq" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#countio@0.3.0", + "author": "Oleh Martsokha ", + "name": "countio", + "version": "0.3.0", + "description": "Byte counting for std::io::{Read, Write, Seek} and its async variants from futures and tokio. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b9702aee5d1d744c01d82f6915644f950f898e014903385464c773b96fefdecb" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/countio@0.3.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/countio" + }, + { + "type": "website", + "url": "https://github.com/spire-rs/countio" + }, + { + "type": "vcs", + "url": "https://github.com/spire-rs/countio" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#cpufeatures@0.2.17", + "author": "RustCrypto Developers", + "name": "cpufeatures", + "version": "0.2.17", + "description": "Lightweight runtime CPU feature detection for aarch64, loongarch64, and x86/x86_64 targets, with no_std support and support for mobile targets including Android and iOS ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/cpufeatures@0.2.17", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/cpufeatures" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/utils" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#cpufeatures@0.3.0", + "author": "RustCrypto Developers", + "name": "cpufeatures", + "version": "0.3.0", + "description": "Lightweight runtime CPU feature detection for aarch64, loongarch64, and x86/x86_64 targets, with no_std support and support for mobile targets including Android and iOS ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/cpufeatures@0.3.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/cpufeatures" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/utils" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#crc32fast@1.5.0", + "author": "Sam Rijs , Alex Crichton ", + "name": "crc32fast", + "version": "1.5.0", + "description": "Fast, SIMD-accelerated CRC32 (IEEE) checksum computation", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/crc32fast@1.5.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/srijs/rust-crc32fast" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-channel@0.5.15", + "name": "crossbeam-channel", + "version": "0.5.15", + "description": "Multi-producer multi-consumer channels for message passing", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/crossbeam-channel@0.5.15", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel" + }, + { + "type": "vcs", + "url": "https://github.com/crossbeam-rs/crossbeam" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.21", + "name": "crossbeam-utils", + "version": "0.8.21", + "description": "Utilities for concurrent programming", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/crossbeam-utils@0.8.21", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-utils" + }, + { + "type": "vcs", + "url": "https://github.com/crossbeam-rs/crossbeam" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#crypto-common@0.2.2", + "author": "RustCrypto Developers", + "name": "crypto-common", + "version": "0.2.2", + "description": "Common traits used by cryptographic algorithms", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/crypto-common@0.2.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/crypto-common" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/traits" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#ctor@1.0.3", + "author": "Matt Mastracci ", + "name": "ctor", + "version": "1.0.3", + "description": "Global, no_std-compatible constructors for all platforms that run before main (like C/C++ __attribute__((constructor)))", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "5c24d2b2b7c12a2fffb7c5c8fd0dcda7ca14b4600fa2d3701b6079aefb6fa180" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/ctor@1.0.3", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/mmastrac/linktime" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#deranged@0.5.8", + "author": "Jacob Pratt ", + "name": "deranged", + "version": "0.5.8", + "description": "Ranged integers", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/deranged@0.5.8", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/jhpratt/deranged" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#digest@0.11.3", + "author": "RustCrypto Developers", + "name": "digest", + "version": "0.11.3", + "description": "Traits for cryptographic hash functions and message authentication codes", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/digest@0.11.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/digest" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/traits" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#dirs-sys@0.5.0", + "author": "Simon Ochsenreither ", + "name": "dirs-sys", + "version": "0.5.0", + "description": "System-level helper functions for the dirs and directories crates.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/dirs-sys@0.5.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/dirs-dev/dirs-sys-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#dirs@6.0.0", + "author": "Simon Ochsenreither ", + "name": "dirs", + "version": "6.0.0", + "description": "A tiny low-level library that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows, macOS and Redox by leveraging the mechanisms defined by the XDG base/user directory specifications on Linux, the Known Folder API on Windows, and the Standard Directory guidelines on macOS.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/dirs@6.0.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/soc/dirs-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5", + "author": "Jane Lusby ", + "name": "displaydoc", + "version": "0.2.5", + "description": "A derive macro for implementing the display Trait via a doc comment and string interpolation ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/displaydoc@0.2.5", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/displaydoc" + }, + { + "type": "website", + "url": "https://github.com/yaahc/displaydoc" + }, + { + "type": "vcs", + "url": "https://github.com/yaahc/displaydoc" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#dunce@1.0.5", + "author": "Kornel ", + "name": "dunce", + "version": "1.0.5", + "description": "Normalize Windows paths to the most compatible format, avoiding UNC where possible", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + } + ], + "licenses": [ + { + "expression": "CC0-1.0 OR MIT-0 OR Apache-2.0" + } + ], + "purl": "pkg:cargo/dunce@1.0.5", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/dunce" + }, + { + "type": "website", + "url": "https://lib.rs/crates/dunce" + }, + { + "type": "vcs", + "url": "https://gitlab.com/kornelski/dunce" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#either@1.15.0", + "author": "bluss", + "name": "either", + "version": "1.15.0", + "description": "The enum `Either` with variants `Left` and `Right` is a general purpose sum type with two cases. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/either@1.15.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/either/1/" + }, + { + "type": "vcs", + "url": "https://github.com/rayon-rs/either" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#fastrand@2.3.0", + "author": "Stjepan Glavina ", + "name": "fastrand", + "version": "2.3.0", + "description": "A simple and fast random number generator", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/fastrand@2.3.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/smol-rs/fastrand" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#find-msvc-tools@0.1.9", + "name": "find-msvc-tools", + "version": "0.1.9", + "description": "Find windows-specific tools, read MSVC versions from the registry and from COM interfaces", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/find-msvc-tools@0.1.9", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/find-msvc-tools" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/cc-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#form_urlencoded@1.2.2", + "author": "The rust-url developers", + "name": "form_urlencoded", + "version": "1.2.2", + "description": "Parser and serializer for the application/x-www-form-urlencoded syntax, as used by HTML forms.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/form_urlencoded@1.2.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/servo/rust-url" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#fs_extra@1.3.0", + "author": "Denis Kurilenko ", + "name": "fs_extra", + "version": "1.3.0", + "description": "Expanding std::fs and std::io. Recursively copy folders with information about process and much more.", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/fs_extra@1.3.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/fs_extra" + }, + { + "type": "website", + "url": "https://github.com/webdesus/fs_extra" + }, + { + "type": "vcs", + "url": "https://github.com/webdesus/fs_extra" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-channel@0.3.32", + "name": "futures-channel", + "version": "0.3.32", + "description": "Channels for asynchronous communication using futures-rs. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-channel@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "name": "futures-core", + "version": "0.3.32", + "description": "The core traits and types in for the `futures` library. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-core@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-executor@0.3.32", + "name": "futures-executor", + "version": "0.3.32", + "description": "Executors for asynchronous tasks based on the futures-rs library. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-executor@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-io@0.3.32", + "name": "futures-io", + "version": "0.3.32", + "description": "The `AsyncRead`, `AsyncWrite`, `AsyncSeek`, and `AsyncBufRead` traits for the futures-rs library. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-io@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-macro@0.3.32", + "name": "futures-macro", + "version": "0.3.32", + "description": "The futures-rs procedural macro implementations. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-macro@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-sink@0.3.32", + "name": "futures-sink", + "version": "0.3.32", + "description": "The asynchronous `Sink` trait for the futures-rs library. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-sink@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-task@0.3.32", + "name": "futures-task", + "version": "0.3.32", + "description": "Tools for working with tasks. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-task@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32", + "name": "futures-util", + "version": "0.3.32", + "description": "Common utilities and extension traits for the futures-rs library. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures-util@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#futures@0.3.32", + "name": "futures", + "version": "0.3.32", + "description": "An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/futures@0.3.32", + "externalReferences": [ + { + "type": "website", + "url": "https://rust-lang.github.io/futures-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/futures-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#gearhash@0.1.3", + "author": "Sam Rijs ", + "name": "gearhash", + "version": "0.1.3", + "description": "Fast, SIMD-accelerated hash function for content-defined chunking", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "c8cf82cf76cd16485e56295a1377c775ce708c9f1a0be6b029076d60a245d213" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/gearhash@0.1.3", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/srijs/rust-gearhash" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.2.17", + "author": "The Rand Project Developers", + "name": "getrandom", + "version": "0.2.17", + "description": "A small cross-platform library for retrieving random data from system source", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/getrandom@0.2.17", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/getrandom" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/getrandom" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.3.4", + "author": "The Rand Project Developers", + "name": "getrandom", + "version": "0.3.4", + "description": "A small cross-platform library for retrieving random data from system source", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/getrandom@0.3.4", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/getrandom" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/getrandom" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2", + "author": "The Rand Project Developers", + "name": "getrandom", + "version": "0.4.2", + "description": "A small cross-platform library for retrieving random data from system source", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/getrandom@0.4.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/getrandom" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/getrandom" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#git-version-macro@0.3.9", + "author": "David Roundy , Maarten de Vries , Mara Bos ", + "name": "git-version-macro", + "version": "0.3.9", + "description": "Internal macro crate for git-version.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "53010ccb100b96a67bc32c0175f0ed1426b31b655d562898e57325f81c023ac0" + } + ], + "licenses": [ + { + "expression": "BSD-2-Clause" + } + ], + "purl": "pkg:cargo/git-version-macro@0.3.9", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/fusion-engineering/rust-git-version" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#git-version@0.3.9", + "author": "Mara Bos , Maarten de Vries , David Roundy ", + "name": "git-version", + "version": "0.3.9", + "description": "Compile the git version (tag name, or hash otherwise) and dirty state into your program.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1ad568aa3db0fcbc81f2f116137f263d7304f512a1209b35b85150d3ef88ad19" + } + ], + "licenses": [ + { + "expression": "BSD-2-Clause" + } + ], + "purl": "pkg:cargo/git-version@0.3.9", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/git-version/" + }, + { + "type": "vcs", + "url": "https://github.com/fusion-engineering/rust-git-version" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#heapify@0.2.0", + "name": "heapify", + "version": "0.2.0", + "description": "Convenience functions to turn slices into max-heaps.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "0049b265b7f201ca9ab25475b22b47fe444060126a51abe00f77d986fc5cc52e" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/heapify@0.2.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/ethereal-sheep/heapify" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0", + "name": "heck", + "version": "0.5.0", + "description": "heck is a case conversion library.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/heck@0.5.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/withoutboats/heck" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#http-body-util@0.1.3", + "author": "Carl Lerche , Lucio Franco , Sean McArthur ", + "name": "http-body-util", + "version": "0.1.3", + "description": "Combinators and adapters for HTTP request or response bodies. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/http-body-util@0.1.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/http-body-util" + }, + { + "type": "vcs", + "url": "https://github.com/hyperium/http-body" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1", + "author": "Carl Lerche , Lucio Franco , Sean McArthur ", + "name": "http-body", + "version": "1.0.1", + "description": "Trait representing an asynchronous, streaming, HTTP request or response body. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/http-body@1.0.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/http-body" + }, + { + "type": "vcs", + "url": "https://github.com/hyperium/http-body" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "author": "Alex Crichton , Carl Lerche , Sean McArthur ", + "name": "http", + "version": "1.4.0", + "description": "A set of types for representing HTTP requests and responses. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/http@1.4.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/http" + }, + { + "type": "vcs", + "url": "https://github.com/hyperium/http" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#httparse@1.10.1", + "author": "Sean McArthur ", + "name": "httparse", + "version": "1.10.1", + "description": "A tiny, safe, speedy, zero-copy HTTP/1.x parser.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/httparse@1.10.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/httparse" + }, + { + "type": "vcs", + "url": "https://github.com/seanmonstar/httparse" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#humantime@2.3.0", + "name": "humantime", + "version": "2.3.0", + "description": "A parser and formatter for std::time::{Duration, SystemTime}", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/humantime@2.3.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/humantime" + }, + { + "type": "website", + "url": "https://github.com/chronotope/humantime" + }, + { + "type": "vcs", + "url": "https://github.com/chronotope/humantime" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#hybrid-array@0.4.13", + "author": "RustCrypto Developers", + "name": "hybrid-array", + "version": "0.4.13", + "description": "Hybrid typenum-based and const generic array types designed to provide the flexibility of typenum-based expressions while also allowing interoperability and a transition path to const generics ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "818356c5132c1fede50f837ca96afbe78ff42413047f4abb886217845e1b6c8c" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/hybrid-array@0.4.13", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/hybrid-array" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/hybrid-array" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#hyper-rustls@0.27.7", + "name": "hyper-rustls", + "version": "0.27.7", + "description": "Rustls+hyper integration for pure rust HTTPS", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR ISC OR MIT" + } + ], + "purl": "pkg:cargo/hyper-rustls@0.27.7", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/hyper-rustls/" + }, + { + "type": "website", + "url": "https://github.com/rustls/hyper-rustls" + }, + { + "type": "vcs", + "url": "https://github.com/rustls/hyper-rustls" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#hyper-util@0.1.20", + "author": "Sean McArthur ", + "name": "hyper-util", + "version": "0.1.20", + "description": "hyper utilities", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/hyper-util@0.1.20", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/hyper-util" + }, + { + "type": "website", + "url": "https://hyper.rs" + }, + { + "type": "vcs", + "url": "https://github.com/hyperium/hyper-util" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#hyper@1.8.1", + "author": "Sean McArthur ", + "name": "hyper", + "version": "1.8.1", + "description": "A protective and efficient HTTP library for all.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/hyper@1.8.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/hyper" + }, + { + "type": "website", + "url": "https://hyper.rs" + }, + { + "type": "vcs", + "url": "https://github.com/hyperium/hyper" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#icu_collections@2.1.1", + "author": "The ICU4X Project Developers", + "name": "icu_collections", + "version": "2.1.1", + "description": "Collection of API for use in ICU libraries.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/icu_collections@2.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#icu_locale_core@2.1.1", + "author": "The ICU4X Project Developers", + "name": "icu_locale_core", + "version": "2.1.1", + "description": "API for managing Unicode Language and Locale Identifiers", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/icu_locale_core@2.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#icu_normalizer@2.1.1", + "author": "The ICU4X Project Developers", + "name": "icu_normalizer", + "version": "2.1.1", + "description": "API for normalizing text into Unicode Normalization Forms", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/icu_normalizer@2.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#icu_normalizer_data@2.1.1", + "author": "The ICU4X Project Developers", + "name": "icu_normalizer_data", + "version": "2.1.1", + "description": "Data for the icu_normalizer crate", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/icu_normalizer_data@2.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#icu_properties@2.1.2", + "author": "The ICU4X Project Developers", + "name": "icu_properties", + "version": "2.1.2", + "description": "Definitions for Unicode properties", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/icu_properties@2.1.2", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#icu_properties_data@2.1.2", + "author": "The ICU4X Project Developers", + "name": "icu_properties_data", + "version": "2.1.2", + "description": "Data for the icu_properties crate", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/icu_properties_data@2.1.2", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#icu_provider@2.1.1", + "author": "The ICU4X Project Developers", + "name": "icu_provider", + "version": "2.1.1", + "description": "Trait and struct definitions for the ICU data provider", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/icu_provider@2.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#idna@1.1.0", + "author": "The rust-url developers", + "name": "idna", + "version": "1.1.0", + "description": "IDNA (Internationalizing Domain Names in Applications) and Punycode.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/idna@1.1.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/servo/rust-url/" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#idna_adapter@1.2.1", + "author": "The rust-url developers", + "name": "idna_adapter", + "version": "1.2.1", + "description": "Back end adapter for idna", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/idna_adapter@1.2.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/idna_adapter/latest/idna_adapter/" + }, + { + "type": "website", + "url": "https://docs.rs/crate/idna_adapter/latest" + }, + { + "type": "vcs", + "url": "https://github.com/hsivonen/idna_adapter" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#inventory@0.3.22", + "author": "David Tolnay ", + "name": "inventory", + "version": "0.3.22", + "description": "Typed distributed plugin registration", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "009ae045c87e7082cb72dab0ccd01ae075dd00141ddc108f43a0ea150a9e7227" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/inventory@0.3.22", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/inventory" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/inventory" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#ipnet@2.12.0", + "author": "Kris Price ", + "name": "ipnet", + "version": "2.12.0", + "description": "Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new `IpNet`, `Ipv4Net`, and `Ipv6Net` types build on the existing `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` types already provided in Rust's standard library and align to their design to stay consistent. The module also provides useful traits that extend `Ipv4Addr` and `Ipv6Addr` with methods for `Add`, `Sub`, `BitAnd`, and `BitOr` operations. The module only uses stable feature so it is guaranteed to compile using the stable toolchain.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/ipnet@2.12.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/ipnet" + }, + { + "type": "vcs", + "url": "https://github.com/krisprice/ipnet" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#iri-string@0.7.11", + "author": "YOSHIOKA Takuma ", + "name": "iri-string", + "version": "0.7.11", + "description": "IRI as string types", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d8e7418f59cc01c88316161279a7f665217ae316b388e58a0d10e29f54f1e5eb" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/iri-string@0.7.11", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/lo48576/iri-string" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#itertools@0.14.0", + "author": "bluss", + "name": "itertools", + "version": "0.14.0", + "description": "Extra iterator adaptors, iterator methods, free functions, and macros.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/itertools@0.14.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/itertools/" + }, + { + "type": "vcs", + "url": "https://github.com/rust-itertools/itertools" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#itoa@1.0.18", + "author": "David Tolnay ", + "name": "itoa", + "version": "1.0.18", + "description": "Fast integer primitive to string conversion", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/itoa@1.0.18", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/itoa" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/itoa" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#jobserver@0.1.34", + "author": "Alex Crichton ", + "name": "jobserver", + "version": "0.1.34", + "description": "An implementation of the GNU Make jobserver for Rust. ", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/jobserver@0.1.34", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/jobserver" + }, + { + "type": "website", + "url": "https://github.com/rust-lang/jobserver-rs" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/jobserver-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#konst@0.4.3", + "author": "rodrimati1992 ", + "name": "konst", + "version": "0.4.3", + "description": "Const equivalents of std features: comparison, destructuring, iteration, and parsing", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f660d5f887e3562f9ab6f4a14988795b694099d66b4f5dedc02d197ba9becb1d" + } + ], + "licenses": [ + { + "expression": "Zlib" + } + ], + "purl": "pkg:cargo/konst@0.4.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/konst/" + }, + { + "type": "vcs", + "url": "https://github.com/rodrimati1992/konst/" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#konst_proc_macros@0.4.1", + "author": "rodrimati1992 ", + "name": "konst_proc_macros", + "version": "0.4.1", + "description": "Implementation detail of the `konst` crate", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e037a2e1d8d5fdbd49b16a4ea09d5d6401c1f29eca5ff29d03d3824dba16256a" + } + ], + "licenses": [ + { + "expression": "Zlib" + } + ], + "purl": "pkg:cargo/konst_proc_macros@0.4.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/konst/" + }, + { + "type": "vcs", + "url": "https://github.com/rodrimati1992/konst/" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#lazy_static@1.5.0", + "author": "Marvin Löbel ", + "name": "lazy_static", + "version": "1.5.0", + "description": "A macro for declaring lazily evaluated statics in Rust.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/lazy_static@1.5.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/lazy_static" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang-nursery/lazy-static.rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183", + "author": "The Rust Project Developers", + "name": "libc", + "version": "0.2.183", + "description": "Raw FFI bindings to platform libraries like libc.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/libc@0.2.183", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/rust-lang/libc" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#link-section@0.15.0", + "author": "Matt Mastracci ", + "name": "link-section", + "version": "0.15.0", + "description": "Link-time initialized slices for Rust, with full support for Linux, macOS, Windows, WASM and many more platforms.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "4641b91711debb59c61b07eb5e30521ed6d9e2bdd9fd04f934e7da3a5bc386d4" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/link-section@0.15.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/mmastrac/linktime" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#linktime-proc-macro@0.1.0", + "author": "Matt Mastracci ", + "name": "linktime-proc-macro", + "version": "0.1.0", + "description": "proc-macro support for the linktime crates", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a44cd706ff0d503ee32b2071166510ca27e281228de10cd3aa8d35ff94560f81" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/linktime-proc-macro@0.1.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/mmastrac/rust-ctor" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#litemap@0.8.1", + "author": "The ICU4X Project Developers", + "name": "litemap", + "version": "0.8.1", + "description": "A key-value Map implementation based on a flat, sorted Vec.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/litemap@0.8.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/litemap" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#log@0.4.29", + "author": "The Rust Project Developers", + "name": "log", + "version": "0.4.29", + "description": "A lightweight logging facade for Rust ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/log@0.4.29", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/log" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/log" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#lru-slab@0.1.2", + "author": "Benjamin Saunders ", + "name": "lru-slab", + "version": "0.1.2", + "description": "Pre-allocated storage with constant-time LRU tracking", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0 OR Zlib" + } + ], + "purl": "pkg:cargo/lru-slab@0.1.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/Ralith/lru-slab" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#lz4_flex@0.13.0", + "author": "Pascal Seitz , Arthur Silva , ticki ", + "name": "lz4_flex", + "version": "0.13.0", + "description": "Fastest LZ4 implementation in Rust, no unsafe by default.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "db9a0d582c2874f68138a16ce1867e0ffde6c0bb0a0df85e1f36d04146db488a" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/lz4_flex@0.13.0", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/pseitz/lz4_flex" + }, + { + "type": "vcs", + "url": "https://github.com/pseitz/lz4_flex" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#matchers@0.2.0", + "author": "Eliza Weisman ", + "name": "matchers", + "version": "0.2.0", + "description": "Regex matching on character and byte streams. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/matchers@0.2.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/matchers/" + }, + { + "type": "website", + "url": "https://github.com/hawkw/matchers" + }, + { + "type": "vcs", + "url": "https://github.com/hawkw/matchers" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "author": "Andrew Gallant , bluss", + "name": "memchr", + "version": "2.8.0", + "description": "Provides extremely fast (uses SIMD on x86_64, aarch64 and wasm32) routines for 1, 2 or 3 byte search and single substring search. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + } + ], + "licenses": [ + { + "expression": "Unlicense OR MIT" + } + ], + "purl": "pkg:cargo/memchr@2.8.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/memchr/" + }, + { + "type": "website", + "url": "https://github.com/BurntSushi/memchr" + }, + { + "type": "vcs", + "url": "https://github.com/BurntSushi/memchr" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#mio@1.1.1", + "author": "Carl Lerche , Thomas de Zeeuw , Tokio Contributors ", + "name": "mio", + "version": "1.1.1", + "description": "Lightweight non-blocking I/O.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/mio@1.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/tokio-rs/mio" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/mio" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#more-asserts@0.3.1", + "author": "Thom Chiovoloni ", + "name": "more-asserts", + "version": "0.3.1", + "description": "Small library providing additional assert_* and debug_assert_* macros.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1fafa6961cabd9c63bcd77a45d7e3b7f3b552b70417831fb0f56db717e72407e" + } + ], + "licenses": [ + { + "expression": "Unlicense OR MIT OR Apache-2.0 OR CC0-1.0" + } + ], + "purl": "pkg:cargo/more-asserts@0.3.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/more-asserts" + }, + { + "type": "website", + "url": "https://github.com/thomcc/rust-more-asserts" + }, + { + "type": "vcs", + "url": "https://github.com/thomcc/rust-more-asserts" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#ntapi@0.4.3", + "author": "MSxDOS ", + "name": "ntapi", + "version": "0.4.3", + "description": "FFI bindings for Native API", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/ntapi@0.4.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/ntapi/*/x86_64-pc-windows-msvc/ntapi/" + }, + { + "type": "vcs", + "url": "https://github.com/MSxDOS/ntapi" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#nu-ansi-term@0.50.3", + "author": "ogham@bsago.me, Ryan Scheel (Havvy) , Josh Triplett , The Nushell Project Developers", + "name": "nu-ansi-term", + "version": "0.50.3", + "description": "Library for ANSI terminal colors and styles (bold, underline)", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/nu-ansi-term@0.50.3", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/nushell/nu-ansi-term" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-conv@0.2.0", + "author": "Jacob Pratt ", + "name": "num-conv", + "version": "0.2.0", + "description": "`num_conv` is a crate to convert between integer types without using `as` casts. This provides better certainty when refactoring, makes the exact behavior of code more explicit, and allows using turbofish syntax. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/num-conv@0.2.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/jhpratt/num-conv" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19", + "author": "The Rust Project Developers", + "name": "num-traits", + "version": "0.2.19", + "description": "Numeric traits for generic mathematics", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/num-traits@0.2.19", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/num-traits" + }, + { + "type": "website", + "url": "https://github.com/rust-num/num-traits" + }, + { + "type": "vcs", + "url": "https://github.com/rust-num/num-traits" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4", + "author": "Aleksey Kladov ", + "name": "once_cell", + "version": "1.21.4", + "description": "Single assignment cells and lazy values.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/once_cell@1.21.4", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/once_cell" + }, + { + "type": "vcs", + "url": "https://github.com/matklad/once_cell" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#oneshot@0.1.13", + "author": "Linus Färnstrand ", + "name": "oneshot", + "version": "0.1.13", + "description": "Oneshot spsc channel with (potentially) lock-free non-blocking send, and a receiver supporting both thread blocking receive operations as well as Future based async polling. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "269bca4c2591a28585d6bf10d9ed0332b7d76900a1b02bec41bdc3a2cdcda107" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/oneshot@0.1.13", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/faern/oneshot" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#option-ext@0.2.0", + "author": "Simon Ochsenreither ", + "name": "option-ext", + "version": "0.2.0", + "description": "Extends `Option` with additional operations", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + } + ], + "licenses": [ + { + "expression": "MPL-2.0" + } + ], + "purl": "pkg:cargo/option-ext@0.2.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/option-ext/" + }, + { + "type": "website", + "url": "https://github.com/soc/option-ext" + }, + { + "type": "vcs", + "url": "https://github.com/soc/option-ext.git" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#os_str_bytes@6.6.1", + "author": "dylni", + "name": "os_str_bytes", + "version": "6.6.1", + "description": "Convert between byte sequences and platform-native strings ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e2355d85b9a3786f481747ced0e0ff2ba35213a1f9bd406ed906554d7af805a1" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/os_str_bytes@6.6.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/dylni/os_str_bytes" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#percent-encoding@2.3.2", + "author": "The rust-url developers", + "name": "percent-encoding", + "version": "2.3.2", + "description": "Percent encoding and decoding", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/percent-encoding@2.3.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/servo/rust-url/" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pin-project-internal@1.1.11", + "name": "pin-project-internal", + "version": "1.1.11", + "description": "Implementation detail of the `pin-project` crate. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d9b20ed30f105399776b9c883e68e536ef602a16ae6f596d2c473591d6ad64c6" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/pin-project-internal@1.1.11", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/taiki-e/pin-project" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "name": "pin-project-lite", + "version": "0.2.17", + "description": "A lightweight version of pin-project written with declarative macros. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/pin-project-lite@0.2.17", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/taiki-e/pin-project-lite" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pin-project@1.1.11", + "name": "pin-project", + "version": "1.1.11", + "description": "A crate for safe and ergonomic pin-projection. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f1749c7ed4bcaf4c3d0a3efc28538844fb29bcdd7d2b67b2be7e20ba861ff517" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/pin-project@1.1.11", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/taiki-e/pin-project" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pin-utils@0.1.0", + "author": "Josef Brandl ", + "name": "pin-utils", + "version": "0.1.0", + "description": "Utilities for pinning ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/pin-utils@0.1.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/pin-utils" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang-nursery/pin-utils" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#potential_utf@0.1.4", + "author": "The ICU4X Project Developers", + "name": "potential_utf", + "version": "0.1.4", + "description": "Unvalidated string and character types", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/potential_utf@0.1.4", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#powerfmt@0.2.0", + "author": "Jacob Pratt ", + "name": "powerfmt", + "version": "0.2.0", + "description": " `powerfmt` is a library that provides utilities for formatting values. This crate makes it significantly easier to support filling to a minimum width with alignment, avoid heap allocation, and avoid repetitive calculations. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/powerfmt@0.2.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/jhpratt/powerfmt" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#ppv-lite86@0.2.21", + "author": "The CryptoCorrosion Contributors", + "name": "ppv-lite86", + "version": "0.2.21", + "description": "Cross-platform cryptography-oriented low-level SIMD library.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/ppv-lite86@0.2.21", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/cryptocorrosion/cryptocorrosion" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "author": "David Tolnay , Alex Crichton ", + "name": "proc-macro2", + "version": "1.0.106", + "description": "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/proc-macro2@1.0.106", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/proc-macro2" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/proc-macro2" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.29.0", + "author": "PyO3 Project and Contributors ", + "name": "pyo3-build-config", + "version": "0.29.0", + "description": "Build configuration for the PyO3 ecosystem", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/pyo3-build-config@0.29.0", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/pyo3/pyo3" + }, + { + "type": "vcs", + "url": "https://github.com/pyo3/pyo3" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.29.0", + "author": "PyO3 Project and Contributors ", + "name": "pyo3-ffi", + "version": "0.29.0", + "description": "Python-API bindings for the PyO3 ecosystem", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/pyo3-ffi@0.29.0", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/pyo3/pyo3" + }, + { + "type": "other", + "url": "python" + }, + { + "type": "vcs", + "url": "https://github.com/pyo3/pyo3" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.29.0", + "author": "PyO3 Project and Contributors ", + "name": "pyo3-macros-backend", + "version": "0.29.0", + "description": "Code generation for PyO3 package", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/pyo3-macros-backend@0.29.0", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/pyo3/pyo3" + }, + { + "type": "vcs", + "url": "https://github.com/pyo3/pyo3" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.29.0", + "author": "PyO3 Project and Contributors ", + "name": "pyo3-macros", + "version": "0.29.0", + "description": "Proc macros for PyO3 package", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/pyo3-macros@0.29.0", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/pyo3/pyo3" + }, + { + "type": "vcs", + "url": "https://github.com/pyo3/pyo3" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.29.0", + "author": "PyO3 Project and Contributors ", + "name": "pyo3", + "version": "0.29.0", + "description": "Bindings to Python interpreter", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/pyo3@0.29.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/crate/pyo3/" + }, + { + "type": "website", + "url": "https://github.com/pyo3/pyo3" + }, + { + "type": "other", + "url": "pyo3-python" + }, + { + "type": "vcs", + "url": "https://github.com/pyo3/pyo3" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quinn-proto@0.11.15", + "name": "quinn-proto", + "version": "0.11.15", + "description": "State machine for the QUIC transport protocol", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "4fcb935c5bec503c2f0e306bdd3e58bb9029dcb14fa8d9ac76e3a5256ac0763e" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/quinn-proto@0.11.15", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/quinn-rs/quinn" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quinn-udp@0.5.14", + "name": "quinn-udp", + "version": "0.5.14", + "description": "UDP sockets with ECN information for the QUIC transport protocol", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/quinn-udp@0.5.14", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/quinn-rs/quinn" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quinn@0.11.9", + "name": "quinn", + "version": "0.11.9", + "description": "Versatile QUIC transport protocol implementation", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/quinn@0.11.9", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/quinn-rs/quinn" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "author": "David Tolnay ", + "name": "quote", + "version": "1.0.45", + "description": "Quasi-quoting macro quote!(...)", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/quote@1.0.45", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/quote/" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/quote" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "author": "The Rand Project Developers, The Rust Project Developers", + "name": "rand", + "version": "0.10.1", + "description": "Random number generators and other randomness functionality. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/rand@0.10.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/rand" + }, + { + "type": "website", + "url": "https://rust-random.github.io/book" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/rand" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rand@0.9.4", + "author": "The Rand Project Developers, The Rust Project Developers", + "name": "rand", + "version": "0.9.4", + "description": "Random number generators and other randomness functionality. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/rand@0.9.4", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/rand" + }, + { + "type": "website", + "url": "https://rust-random.github.io/book" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/rand" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rand_chacha@0.9.0", + "author": "The Rand Project Developers, The Rust Project Developers, The CryptoCorrosion Contributors", + "name": "rand_chacha", + "version": "0.9.0", + "description": "ChaCha random number generator ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/rand_chacha@0.9.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/rand_chacha" + }, + { + "type": "website", + "url": "https://rust-random.github.io/book" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/rand" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.10.1", + "author": "The Rand Project Developers", + "name": "rand_core", + "version": "0.10.1", + "description": "Core random number generation traits and tools for implementation.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/rand_core@0.10.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/rand_core" + }, + { + "type": "website", + "url": "https://rust-random.github.io/book" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/rand_core" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.9.5", + "author": "The Rand Project Developers, The Rust Project Developers", + "name": "rand_core", + "version": "0.9.5", + "description": "Core random number generator traits and tools for implementation. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/rand_core@0.9.5", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/rand_core" + }, + { + "type": "website", + "url": "https://rust-random.github.io/book" + }, + { + "type": "vcs", + "url": "https://github.com/rust-random/rand" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#redb@3.1.1", + "author": "Christopher Berner ", + "name": "redb", + "version": "3.1.1", + "description": "Rust Embedded DataBase", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ef99362319c782aa4639ad3a306b64c3bb90e12874e99b8df124cb679d988611" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/redb@3.1.1", + "externalReferences": [ + { + "type": "website", + "url": "https://www.redb.org" + }, + { + "type": "vcs", + "url": "https://github.com/cberner/redb" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#regex-automata@0.4.14", + "author": "The Rust Project Developers, Andrew Gallant ", + "name": "regex-automata", + "version": "0.4.14", + "description": "Automata construction and matching using regular expressions.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/regex-automata@0.4.14", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/regex-automata" + }, + { + "type": "website", + "url": "https://github.com/rust-lang/regex/tree/master/regex-automata" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/regex" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#regex-syntax@0.8.10", + "author": "The Rust Project Developers, Andrew Gallant ", + "name": "regex-syntax", + "version": "0.8.10", + "description": "A regular expression parser.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/regex-syntax@0.8.10", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/regex-syntax" + }, + { + "type": "website", + "url": "https://github.com/rust-lang/regex/tree/master/regex-syntax" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/regex" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#regex@1.12.3", + "author": "The Rust Project Developers, Andrew Gallant ", + "name": "regex", + "version": "1.12.3", + "description": "An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/regex@1.12.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/regex" + }, + { + "type": "website", + "url": "https://github.com/rust-lang/regex" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/regex" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#reqwest-middleware@0.5.1", + "author": "Rodrigo Gryzinski ", + "name": "reqwest-middleware", + "version": "0.5.1", + "description": "Wrapper around reqwest to allow for client middleware chains.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "199dda04a536b532d0cc04d7979e39b1c763ea749bf91507017069c00b96056f" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/reqwest-middleware@0.5.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/TrueLayer/reqwest-middleware" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#reqwest@0.13.2", + "author": "Sean McArthur ", + "name": "reqwest", + "version": "0.13.2", + "description": "higher level HTTP client library", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/reqwest@0.13.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/reqwest" + }, + { + "type": "vcs", + "url": "https://github.com/seanmonstar/reqwest" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#ring@0.17.14", + "name": "ring", + "version": "0.17.14", + "description": "An experiment.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 AND ISC" + } + ], + "purl": "pkg:cargo/ring@0.17.14", + "externalReferences": [ + { + "type": "other", + "url": "ring_core_0_17_14_" + }, + { + "type": "vcs", + "url": "https://github.com/briansmith/ring" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.1", + "author": "The Rust Project Developers", + "name": "rustc-hash", + "version": "2.1.1", + "description": "A speedy, non-cryptographic hashing algorithm used by rustc", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/rustc-hash@2.1.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/rust-lang/rustc-hash" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rustls-pki-types@1.14.0", + "name": "rustls-pki-types", + "version": "1.14.0", + "description": "Shared types for the rustls PKI ecosystem", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/rustls-pki-types@1.14.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/rustls-pki-types" + }, + { + "type": "website", + "url": "https://github.com/rustls/pki-types" + }, + { + "type": "vcs", + "url": "https://github.com/rustls/pki-types" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rustls-platform-verifier@0.6.2", + "name": "rustls-platform-verifier", + "version": "0.6.2", + "description": "rustls-platform-verifier supports verifying TLS certificates in rustls with the operating system verifier", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/rustls-platform-verifier@0.6.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/rustls/rustls-platform-verifier" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rustls-webpki@0.103.13", + "name": "rustls-webpki", + "version": "0.103.13", + "description": "Web PKI X.509 Certificate Verification.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" + } + ], + "licenses": [ + { + "expression": "ISC" + } + ], + "purl": "pkg:cargo/rustls-webpki@0.103.13", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/rustls/webpki" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "name": "rustls", + "version": "0.23.37", + "description": "Rustls is a modern TLS library written in Rust.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR ISC OR MIT" + } + ], + "purl": "pkg:cargo/rustls@0.23.37", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/rustls/rustls" + }, + { + "type": "vcs", + "url": "https://github.com/rustls/rustls" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#safe-transmute@0.11.3", + "author": "наб , Eduardo Pinho , Lukas Kalbertodt , Philipp Tessenow , Marijn Suijten ", + "name": "safe-transmute", + "version": "0.11.3", + "description": "A safeguarded transmute() for Rust", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3944826ff8fa8093089aba3acb4ef44b9446a99a16f3bf4e74af3f77d340ab7d" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/safe-transmute@0.11.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://rawcdn.githack.com/nabijaczleweli/safe-transmute-rs/doc/safe_transmute/index.html" + }, + { + "type": "vcs", + "url": "https://github.com/nabijaczleweli/safe-transmute-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "author": "Erick Tryzelaar , David Tolnay ", + "name": "serde", + "version": "1.0.228", + "description": "A generic serialization/deserialization framework", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/serde@1.0.228", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/serde" + }, + { + "type": "website", + "url": "https://serde.rs" + }, + { + "type": "vcs", + "url": "https://github.com/serde-rs/serde" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228", + "author": "Erick Tryzelaar , David Tolnay ", + "name": "serde_core", + "version": "1.0.228", + "description": "Serde traits only, with no support for derive -- use the `serde` crate instead", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/serde_core@1.0.228", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/serde_core" + }, + { + "type": "website", + "url": "https://serde.rs" + }, + { + "type": "vcs", + "url": "https://github.com/serde-rs/serde" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#serde_derive@1.0.228", + "author": "Erick Tryzelaar , David Tolnay ", + "name": "serde_derive", + "version": "1.0.228", + "description": "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/serde_derive@1.0.228", + "externalReferences": [ + { + "type": "documentation", + "url": "https://serde.rs/derive.html" + }, + { + "type": "website", + "url": "https://serde.rs" + }, + { + "type": "vcs", + "url": "https://github.com/serde-rs/serde" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "author": "Erick Tryzelaar , David Tolnay ", + "name": "serde_json", + "version": "1.0.149", + "description": "A JSON serialization file format", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/serde_json@1.0.149", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/serde_json" + }, + { + "type": "vcs", + "url": "https://github.com/serde-rs/json" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#serde_repr@0.1.20", + "author": "David Tolnay ", + "name": "serde_repr", + "version": "0.1.20", + "description": "Derive Serialize and Deserialize that delegates to the underlying repr of a C-like enum.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/serde_repr@0.1.20", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/serde_repr" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/serde-repr" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#sha2@0.11.0", + "author": "RustCrypto Developers", + "name": "sha2", + "version": "0.11.0", + "description": "Pure Rust implementation of the SHA-2 hash function family including SHA-224, SHA-256, SHA-384, and SHA-512. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/sha2@0.11.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/sha2" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/hashes" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#sharded-slab@0.1.7", + "author": "Eliza Weisman ", + "name": "sharded-slab", + "version": "0.1.7", + "description": "A lock-free concurrent slab. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/sharded-slab@0.1.7", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/sharded-slab/" + }, + { + "type": "website", + "url": "https://github.com/hawkw/sharded-slab" + }, + { + "type": "vcs", + "url": "https://github.com/hawkw/sharded-slab" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#shellexpand@3.1.2", + "author": "Vladimir Matveev , Ian Jackson ", + "name": "shellexpand", + "version": "3.1.2", + "description": "Shell-like expansions in strings", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "32824fab5e16e6c4d86dc1ba84489390419a39f97699852b66480bb87d297ed8" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/shellexpand@3.1.2", + "externalReferences": [ + { + "type": "documentation", + "url": "http://docs.rs/shellexpand/" + }, + { + "type": "vcs", + "url": "https://gitlab.com/ijackson/rust-shellexpand" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#shlex@1.3.0", + "author": "comex , Fenhl , Adrian Taylor , Alex Touchet , Daniel Parks , Garrett Berg ", + "name": "shlex", + "version": "1.3.0", + "description": "Split a string into shell words, like Python's shlex.", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/shlex@1.3.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/comex/rust-shlex" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#slab@0.4.12", + "author": "Carl Lerche ", + "name": "slab", + "version": "0.4.12", + "description": "Pre-allocated storage for a uniform data type", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/slab@0.4.12", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/tokio-rs/slab" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.15.1", + "author": "The Servo Project Developers", + "name": "smallvec", + "version": "1.15.1", + "description": "'Small vector' optimization: store up to a small number of items on the stack", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/smallvec@1.15.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/smallvec/" + }, + { + "type": "vcs", + "url": "https://github.com/servo/rust-smallvec" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#socket2@0.6.3", + "author": "Alex Crichton , Thomas de Zeeuw ", + "name": "socket2", + "version": "0.6.3", + "description": "Utilities for handling networking sockets with a maximal amount of configuration possible intended. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/socket2@0.6.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/socket2" + }, + { + "type": "website", + "url": "https://github.com/rust-lang/socket2" + }, + { + "type": "vcs", + "url": "https://github.com/rust-lang/socket2" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#stable_deref_trait@1.2.1", + "author": "Robert Grosse ", + "name": "stable_deref_trait", + "version": "1.2.1", + "description": "An unsafe marker trait for types like Box and Rc that dereference to a stable address even when moved, and hence can be used with libraries such as owning_ref and rental. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/stable_deref_trait@1.2.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/stable_deref_trait/1.2.1/stable_deref_trait" + }, + { + "type": "vcs", + "url": "https://github.com/storyyeller/stable_deref_trait" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#static_assertions@1.1.0", + "author": "Nikolai Vazquez", + "name": "static_assertions", + "version": "1.1.0", + "description": "Compile-time assertions to ensure that invariants are met.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/static_assertions@1.1.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/static_assertions/" + }, + { + "type": "website", + "url": "https://github.com/nvzqz/static-assertions-rs" + }, + { + "type": "vcs", + "url": "https://github.com/nvzqz/static-assertions-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#statrs@0.18.0", + "author": "Michael Ma", + "name": "statrs", + "version": "0.18.0", + "description": "Statistical computing library for Rust", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2a3fe7c28c6512e766b0874335db33c94ad7b8f9054228ae1c2abd47ce7d335e" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/statrs@0.18.0", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/statrs-dev/statrs" + }, + { + "type": "vcs", + "url": "https://github.com/statrs-dev/statrs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#subtle@2.6.1", + "author": "Isis Lovecruft , Henry de Valence ", + "name": "subtle", + "version": "2.6.1", + "description": "Pure-Rust traits and utilities for constant-time cryptographic implementations.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + } + ], + "licenses": [ + { + "expression": "BSD-3-Clause" + } + ], + "purl": "pkg:cargo/subtle@2.6.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/subtle" + }, + { + "type": "website", + "url": "https://dalek.rs/" + }, + { + "type": "vcs", + "url": "https://github.com/dalek-cryptography/subtle" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117", + "author": "David Tolnay ", + "name": "syn", + "version": "2.0.117", + "description": "Parser for Rust source code", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/syn@2.0.117", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/syn" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/syn" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#sync_wrapper@1.0.2", + "author": "Actyx AG ", + "name": "sync_wrapper", + "version": "1.0.2", + "description": "A tool for enlisting the compiler's help in proving the absence of concurrency", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" + } + ], + "licenses": [ + { + "expression": "Apache-2.0" + } + ], + "purl": "pkg:cargo/sync_wrapper@1.0.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/sync_wrapper" + }, + { + "type": "website", + "url": "https://docs.rs/sync_wrapper" + }, + { + "type": "vcs", + "url": "https://github.com/Actyx/sync_wrapper" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#synstructure@0.13.2", + "author": "Nika Layzell ", + "name": "synstructure", + "version": "0.13.2", + "description": "Helper methods and macros for custom derives", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/synstructure@0.13.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/synstructure" + }, + { + "type": "vcs", + "url": "https://github.com/mystor/synstructure" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#sysinfo@0.38.4", + "author": "Guillaume Gomez ", + "name": "sysinfo", + "version": "0.38.4", + "description": "Library to get system information such as processes, CPUs, disks, components and networks", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/sysinfo@0.38.4", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/GuillaumeGomez/sysinfo" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.5", + "author": "Dan Gohman ", + "name": "target-lexicon", + "version": "0.13.5", + "description": "LLVM target triple types", + "scope": "excluded", + "hashes": [ + { + "alg": "SHA-256", + "content": "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 WITH LLVM-exception" + } + ], + "purl": "pkg:cargo/target-lexicon@0.13.5", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/target-lexicon/" + }, + { + "type": "vcs", + "url": "https://github.com/bytecodealliance/target-lexicon" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tempfile@3.27.0", + "author": "Steven Allen , The Rust Project Developers, Ashley Mannix , Jason White ", + "name": "tempfile", + "version": "3.27.0", + "description": "A library for managing temporary files and directories.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/tempfile@3.27.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/tempfile" + }, + { + "type": "website", + "url": "https://stebalien.com/projects/tempfile-rs/" + }, + { + "type": "vcs", + "url": "https://github.com/Stebalien/tempfile" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#thiserror-impl@2.0.18", + "author": "David Tolnay ", + "name": "thiserror-impl", + "version": "2.0.18", + "description": "Implementation detail of the `thiserror` crate", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/thiserror-impl@2.0.18", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/dtolnay/thiserror" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "author": "David Tolnay ", + "name": "thiserror", + "version": "2.0.18", + "description": "derive(Error)", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/thiserror@2.0.18", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/thiserror" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/thiserror" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#thread_local@1.1.9", + "author": "Amanieu d'Antras ", + "name": "thread_local", + "version": "1.1.9", + "description": "Per-object thread-local storage", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/thread_local@1.1.9", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/thread_local/" + }, + { + "type": "vcs", + "url": "https://github.com/Amanieu/thread_local-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#time-core@0.1.8", + "author": "Jacob Pratt , Time contributors", + "name": "time-core", + "version": "0.1.8", + "description": "This crate is an implementation detail and should not be relied upon directly.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/time-core@0.1.8", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/time-rs/time" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#time-macros@0.2.27", + "author": "Jacob Pratt , Time contributors", + "name": "time-macros", + "version": "0.2.27", + "description": " Procedural macros for the time crate. This crate is an implementation detail and should not be relied upon directly. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/time-macros@0.2.27", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/time-rs/time" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#time@0.3.47", + "author": "Jacob Pratt , Time contributors", + "name": "time", + "version": "0.3.47", + "description": "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std].", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/time@0.3.47", + "externalReferences": [ + { + "type": "website", + "url": "https://time-rs.github.io" + }, + { + "type": "vcs", + "url": "https://github.com/time-rs/time" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tinystr@0.8.2", + "author": "The ICU4X Project Developers", + "name": "tinystr", + "version": "0.8.2", + "description": "A small ASCII-only bounded length string representation.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/tinystr@0.8.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tinyvec@1.11.0", + "author": "Lokathor ", + "name": "tinyvec", + "version": "1.11.0", + "description": "`tinyvec` provides 100% safe vec-like data structures.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" + } + ], + "licenses": [ + { + "expression": "Zlib OR Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/tinyvec@1.11.0", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/Lokathor/tinyvec" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tinyvec_macros@0.1.1", + "author": "Soveu ", + "name": "tinyvec_macros", + "version": "0.1.1", + "description": "Some macros for tiny containers", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0 OR Zlib" + } + ], + "purl": "pkg:cargo/tinyvec_macros@0.1.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/Soveu/tinyvec_macros" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-macros@2.6.1", + "author": "Tokio Contributors ", + "name": "tokio-macros", + "version": "2.6.1", + "description": "Tokio's proc macros. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "5c55a2eff8b69ce66c84f85e1da1c233edc36ceb85a2058d11b0d6a3c7e7569c" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tokio-macros@2.6.1", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tokio" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-retry@0.3.1", + "name": "tokio-retry", + "version": "0.3.1", + "description": "Extensible, asynchronous retry behaviours for futures/tokio", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "40f644c762e9d396831ae2f8935c954b0d758c4532e924bead0f666d0c1c8640" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tokio-retry@0.3.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/tokio-retry" + }, + { + "type": "vcs", + "url": "https://github.com/djc/tokio-retry" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-rustls@0.26.4", + "name": "tokio-rustls", + "version": "0.26.4", + "description": "Asynchronous TLS/SSL streams for Tokio using Rustls.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/tokio-rustls@0.26.4", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/tokio-rustls" + }, + { + "type": "website", + "url": "https://github.com/rustls/tokio-rustls" + }, + { + "type": "vcs", + "url": "https://github.com/rustls/tokio-rustls" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18", + "author": "Tokio Contributors ", + "name": "tokio-util", + "version": "0.7.18", + "description": "Additional utilities for working with Tokio. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tokio-util@0.7.18", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tokio" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "author": "Tokio Contributors ", + "name": "tokio", + "version": "1.50.0", + "description": "An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tokio@1.50.0", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tokio" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tower-http@0.6.8", + "author": "Tower Maintainers ", + "name": "tower-http", + "version": "0.6.8", + "description": "Tower middleware and utilities for HTTP clients and servers", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tower-http@0.6.8", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/tower-rs/tower-http" + }, + { + "type": "vcs", + "url": "https://github.com/tower-rs/tower-http" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tower-layer@0.3.3", + "author": "Tower Maintainers ", + "name": "tower-layer", + "version": "0.3.3", + "description": "Decorates a `Service` to allow easy composition between `Service`s. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tower-layer@0.3.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/tower-layer/0.3.3" + }, + { + "type": "website", + "url": "https://github.com/tower-rs/tower" + }, + { + "type": "vcs", + "url": "https://github.com/tower-rs/tower" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3", + "author": "Tower Maintainers ", + "name": "tower-service", + "version": "0.3.3", + "description": "Trait representing an asynchronous, request / response based, client or server. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tower-service@0.3.3", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/tower-service/0.3.3" + }, + { + "type": "website", + "url": "https://github.com/tower-rs/tower" + }, + { + "type": "vcs", + "url": "https://github.com/tower-rs/tower" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tower@0.5.3", + "author": "Tower Maintainers ", + "name": "tower", + "version": "0.5.3", + "description": "Tower is a library of modular and reusable components for building robust clients and servers. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tower@0.5.3", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/tower-rs/tower" + }, + { + "type": "vcs", + "url": "https://github.com/tower-rs/tower" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-appender@0.2.4", + "author": "Zeki Sherif , Tokio Contributors ", + "name": "tracing-appender", + "version": "0.2.4", + "description": "Provides utilities for file appenders and making non-blocking writers. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "786d480bce6247ab75f005b14ae1624ad978d3029d9113f0a22fa1ac773faeaf" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tracing-appender@0.2.4", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tracing" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-attributes@0.1.31", + "author": "Tokio Contributors , Eliza Weisman , David Barsky ", + "name": "tracing-attributes", + "version": "0.1.31", + "description": "Procedural macro attributes for automatically instrumenting functions. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tracing-attributes@0.1.31", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tracing" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-core@0.1.36", + "author": "Tokio Contributors ", + "name": "tracing-core", + "version": "0.1.36", + "description": "Core primitives for application-level tracing. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tracing-core@0.1.36", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tracing" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-log@0.2.0", + "author": "Tokio Contributors ", + "name": "tracing-log", + "version": "0.2.0", + "description": "Provides compatibility between `tracing` and the `log` crate. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tracing-log@0.2.0", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tracing" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-serde@0.2.0", + "author": "Tokio Contributors ", + "name": "tracing-serde", + "version": "0.2.0", + "description": "A compatibility layer for serializing trace data with `serde` ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "704b1aeb7be0d0a84fc9828cae51dab5970fee5088f83d1dd7ee6f6246fc6ff1" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tracing-serde@0.2.0", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tracing" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-subscriber@0.3.23", + "author": "Eliza Weisman , David Barsky , Tokio Contributors ", + "name": "tracing-subscriber", + "version": "0.3.23", + "description": "Utilities for implementing and composing `tracing` subscribers. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tracing-subscriber@0.3.23", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tracing" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "author": "Eliza Weisman , Tokio Contributors ", + "name": "tracing", + "version": "0.1.44", + "description": "Application-level tracing for Rust. ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/tracing@0.1.44", + "externalReferences": [ + { + "type": "website", + "url": "https://tokio.rs" + }, + { + "type": "vcs", + "url": "https://github.com/tokio-rs/tracing" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#try-lock@0.2.5", + "author": "Sean McArthur ", + "name": "try-lock", + "version": "0.2.5", + "description": "A lightweight atomic lock.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/try-lock@0.2.5", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/try-lock" + }, + { + "type": "website", + "url": "https://github.com/seanmonstar/try-lock" + }, + { + "type": "vcs", + "url": "https://github.com/seanmonstar/try-lock" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#twox-hash@2.1.2", + "author": "Jake Goulding ", + "name": "twox-hash", + "version": "2.1.2", + "description": "A Rust implementation of the XXHash and XXH3 algorithms", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9ea3136b675547379c4bd395ca6b938e5ad3c3d20fad76e7fe85f9e0d011419c" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/twox-hash@2.1.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/twox-hash/" + }, + { + "type": "vcs", + "url": "https://github.com/shepmaster/twox-hash" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#typenum@1.20.1", + "name": "typenum", + "version": "1.20.1", + "description": "Typenum is a Rust library for type-level numbers evaluated at compile time. It currently supports bits, unsigned integers, and signed integers. It also provides a type-level array of type-level numbers, but its implementation is incomplete.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/typenum@1.20.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/typenum" + }, + { + "type": "vcs", + "url": "https://github.com/paholg/typenum" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#typewit@1.14.2", + "author": "rodrimati1992 ", + "name": "typewit", + "version": "1.14.2", + "description": "type-witness-based abstractions, mostly for emulating polymorphism in const fns", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f8c1ae7cc0fdb8b842d65d127cb981574b0d2b249b74d1c7a2986863dc134f71" + } + ], + "licenses": [ + { + "expression": "Zlib" + } + ], + "purl": "pkg:cargo/typewit@1.14.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/typewit/" + }, + { + "type": "vcs", + "url": "https://github.com/rodrimati1992/typewit/" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.24", + "author": "David Tolnay ", + "name": "unicode-ident", + "version": "1.0.24", + "description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + } + ], + "licenses": [ + { + "expression": "(MIT OR Apache-2.0) AND Unicode-3.0" + } + ], + "purl": "pkg:cargo/unicode-ident@1.0.24", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/unicode-ident" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/unicode-ident" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#untrusted@0.9.0", + "author": "Brian Smith ", + "name": "untrusted", + "version": "0.9.0", + "description": "Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs in Rust.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + } + ], + "licenses": [ + { + "expression": "ISC" + } + ], + "purl": "pkg:cargo/untrusted@0.9.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://briansmith.org/rustdoc/untrusted/" + }, + { + "type": "vcs", + "url": "https://github.com/briansmith/untrusted" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#url@2.5.8", + "author": "The rust-url developers", + "name": "url", + "version": "2.5.8", + "description": "URL library for Rust, based on the WHATWG URL Standard", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/url@2.5.8", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/url" + }, + { + "type": "vcs", + "url": "https://github.com/servo/rust-url" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#urlencoding@2.1.3", + "author": "Kornel , Bertram Truong ", + "name": "urlencoding", + "version": "2.1.3", + "description": "A Rust library for doing URL percentage encoding.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/urlencoding@2.1.3", + "externalReferences": [ + { + "type": "website", + "url": "https://lib.rs/urlencoding" + }, + { + "type": "vcs", + "url": "https://github.com/kornelski/rust_urlencoding" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#utf8_iter@1.0.4", + "author": "Henri Sivonen ", + "name": "utf8_iter", + "version": "1.0.4", + "description": "Iterator by char over potentially-invalid UTF-8 in &[u8]", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/utf8_iter@1.0.4", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/utf8_iter/" + }, + { + "type": "website", + "url": "https://docs.rs/utf8_iter/" + }, + { + "type": "vcs", + "url": "https://github.com/hsivonen/utf8_iter" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#uuid@1.22.0", + "author": "Ashley Mannix, Dylan DPC, Hunar Roop Kahlon", + "name": "uuid", + "version": "1.22.0", + "description": "A library to generate and parse UUIDs.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/uuid@1.22.0", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/uuid" + }, + { + "type": "website", + "url": "https://github.com/uuid-rs/uuid" + }, + { + "type": "vcs", + "url": "https://github.com/uuid-rs/uuid" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#want@0.3.1", + "author": "Sean McArthur ", + "name": "want", + "version": "0.3.1", + "description": "Detect when another Future wants a result.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/want@0.3.1", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/want" + }, + { + "type": "vcs", + "url": "https://github.com/seanmonstar/want" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#winapi@0.3.9", + "author": "Peter Atashian ", + "name": "winapi", + "version": "0.3.9", + "description": "Raw FFI bindings for all of Windows API.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/winapi@0.3.9", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/winapi/" + }, + { + "type": "vcs", + "url": "https://github.com/retep998/winapi-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-collections@0.3.2", + "name": "windows-collections", + "version": "0.3.2", + "description": "Windows collection types", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-collections@0.3.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-core@0.62.2", + "name": "windows-core", + "version": "0.62.2", + "description": "Core type support for COM and Windows", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-core@0.62.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-future@0.3.2", + "name": "windows-future", + "version": "0.3.2", + "description": "Windows async types", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-future@0.3.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-implement@0.60.2", + "name": "windows-implement", + "version": "0.60.2", + "description": "The implement macro for the Windows crates", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-implement@0.60.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-interface@0.59.3", + "name": "windows-interface", + "version": "0.59.3", + "description": "The interface macro for the Windows crates", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-interface@0.59.3", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1", + "name": "windows-link", + "version": "0.2.1", + "description": "Linking for Windows", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-link@0.2.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-numerics@0.3.1", + "name": "windows-numerics", + "version": "0.3.1", + "description": "Windows numeric types", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-numerics@0.3.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-registry@0.6.1", + "name": "windows-registry", + "version": "0.6.1", + "description": "Windows registry", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-registry@0.6.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-result@0.4.1", + "name": "windows-result", + "version": "0.4.1", + "description": "Windows error handling", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-result@0.4.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-strings@0.5.1", + "name": "windows-strings", + "version": "0.5.1", + "description": "Windows string types", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-strings@0.5.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.60.2", + "author": "Microsoft", + "name": "windows-sys", + "version": "0.60.2", + "description": "Rust for Windows", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-sys@0.60.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2", + "name": "windows-sys", + "version": "0.61.2", + "description": "Rust for Windows", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-sys@0.61.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-targets@0.53.5", + "name": "windows-targets", + "version": "0.53.5", + "description": "Import libs for Windows", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-targets@0.53.5", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows-threading@0.2.1", + "name": "windows-threading", + "version": "0.2.1", + "description": "Windows threading", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows-threading@0.2.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows@0.62.2", + "name": "windows", + "version": "0.62.2", + "description": "Rust for Windows", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows@0.62.2", + "externalReferences": [ + { + "type": "documentation", + "url": "https://microsoft.github.io/windows-docs-rs/" + }, + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#windows_x86_64_msvc@0.53.1", + "name": "windows_x86_64_msvc", + "version": "0.53.1", + "description": "Import lib for Windows", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + } + ], + "licenses": [ + { + "expression": "MIT OR Apache-2.0" + } + ], + "purl": "pkg:cargo/windows_x86_64_msvc@0.53.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/microsoft/windows-rs" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#writeable@0.6.2", + "author": "The ICU4X Project Developers", + "name": "writeable", + "version": "0.6.2", + "description": "A more efficient alternative to fmt::Display", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/writeable@0.6.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#yoke-derive@0.8.1", + "author": "Manish Goregaokar ", + "name": "yoke-derive", + "version": "0.8.1", + "description": "Custom derive for the yoke crate", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/yoke-derive@0.8.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#yoke@0.8.1", + "author": "Manish Goregaokar ", + "name": "yoke", + "version": "0.8.1", + "description": "Abstraction allowing borrowed data to be carried along with the backing data it borrows from", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/yoke@0.8.1", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zerocopy@0.8.47", + "author": "Joshua Liebow-Feeser , Jack Wrenn ", + "name": "zerocopy", + "version": "0.8.47", + "description": "Zerocopy makes zero-cost memory manipulation effortless. We write \"unsafe\" so you don't have to.", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "efbb2a062be311f2ba113ce66f697a4dc589f85e78a4aea276200804cea0ed87" + } + ], + "licenses": [ + { + "expression": "BSD-2-Clause OR Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/zerocopy@0.8.47", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/google/zerocopy" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zerofrom-derive@0.1.6", + "author": "Manish Goregaokar ", + "name": "zerofrom-derive", + "version": "0.1.6", + "description": "Custom derive for the zerofrom crate", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/zerofrom-derive@0.1.6", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6", + "author": "Manish Goregaokar ", + "name": "zerofrom", + "version": "0.1.6", + "description": "ZeroFrom trait for constructing", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/zerofrom@0.1.6", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zeroize@1.8.2", + "author": "The RustCrypto Project Developers", + "name": "zeroize", + "version": "1.8.2", + "description": "Securely clear secrets from memory with a simple trait built on stable Rust primitives which guarantee memory is zeroed using an operation will not be 'optimized away' by the compiler. Uses a portable pure Rust implementation that works everywhere, even WASM! ", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + } + ], + "licenses": [ + { + "expression": "Apache-2.0 OR MIT" + } + ], + "purl": "pkg:cargo/zeroize@1.8.2", + "externalReferences": [ + { + "type": "website", + "url": "https://github.com/RustCrypto/utils/tree/master/zeroize" + }, + { + "type": "vcs", + "url": "https://github.com/RustCrypto/utils" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zerotrie@0.2.3", + "author": "The ICU4X Project Developers", + "name": "zerotrie", + "version": "0.2.3", + "description": "A data structure that efficiently maps strings to integers", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/zerotrie@0.2.3", + "externalReferences": [ + { + "type": "website", + "url": "https://icu4x.unicode.org" + }, + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zerovec-derive@0.11.2", + "author": "Manish Goregaokar ", + "name": "zerovec-derive", + "version": "0.11.2", + "description": "Custom derive for the zerovec crate", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/zerovec-derive@0.11.2", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5", + "author": "The ICU4X Project Developers", + "name": "zerovec", + "version": "0.11.5", + "description": "Zero-copy vector backed by a byte array", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" + } + ], + "licenses": [ + { + "expression": "Unicode-3.0" + } + ], + "purl": "pkg:cargo/zerovec@0.11.5", + "externalReferences": [ + { + "type": "vcs", + "url": "https://github.com/unicode-org/icu4x" + } + ] + }, + { + "type": "library", + "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#zmij@1.0.21", + "author": "David Tolnay ", + "name": "zmij", + "version": "1.0.21", + "description": "A double-to-string conversion algorithm based on Schubfach and yy", + "scope": "required", + "hashes": [ + { + "alg": "SHA-256", + "content": "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + } + ], + "licenses": [ + { + "expression": "MIT" + } + ], + "purl": "pkg:cargo/zmij@1.0.21", + "externalReferences": [ + { + "type": "documentation", + "url": "https://docs.rs/zmij" + }, + { + "type": "vcs", + "url": "https://github.com/dtolnay/zmij" + } + ] + } + ], + "dependencies": [ + { + "ref": "path+file:///D:/a/xet-core/xet-core/hf_xet#1.6.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "path+file:///D:/a/xet-core/xet-core/xet_pkg#hf-xet@1.6.0", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#itertools@0.14.0", + "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.29.0", + "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#winapi@0.3.9", + "path+file:///D:/a/xet-core/xet-core/xet_client#xet-client@1.6.0", + "path+file:///D:/a/xet-core/xet-core/xet_runtime#xet-runtime@1.6.0" + ] + }, + { + "ref": "path+file:///D:/a/xet-core/xet-core/xet_client#xet-client@1.6.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.103", + "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "registry+https://github.com/rust-lang/crates.io-index#base64@0.22.1", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#crc32fast@1.5.0", + "registry+https://github.com/rust-lang/crates.io-index#futures@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#hyper@1.8.1", + "registry+https://github.com/rust-lang/crates.io-index#more-asserts@0.3.1", + "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "registry+https://github.com/rust-lang/crates.io-index#redb@3.1.1", + "registry+https://github.com/rust-lang/crates.io-index#reqwest@0.13.2", + "registry+https://github.com/rust-lang/crates.io-index#reqwest-middleware@0.5.1", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "registry+https://github.com/rust-lang/crates.io-index#serde_repr@0.1.20", + "registry+https://github.com/rust-lang/crates.io-index#statrs@0.18.0", + "registry+https://github.com/rust-lang/crates.io-index#tempfile@3.27.0", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio-retry@0.3.1", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#url@2.5.8", + "registry+https://github.com/rust-lang/crates.io-index#urlencoding@2.1.3", + "path+file:///D:/a/xet-core/xet-core/xet_core_structures#xet-core-structures@1.6.0", + "path+file:///D:/a/xet-core/xet-core/xet_runtime#xet-runtime@1.6.0" + ] + }, + { + "ref": "path+file:///D:/a/xet-core/xet-core/xet_core_structures#xet-core-structures@1.6.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "registry+https://github.com/rust-lang/crates.io-index#base64@0.22.1", + "registry+https://github.com/rust-lang/crates.io-index#blake3@1.8.3", + "registry+https://github.com/rust-lang/crates.io-index#bytemuck@1.25.0", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#countio@0.3.0", + "registry+https://github.com/rust-lang/crates.io-index#futures@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#heapify@0.2.0", + "registry+https://github.com/rust-lang/crates.io-index#itertools@0.14.0", + "registry+https://github.com/rust-lang/crates.io-index#lz4_flex@0.13.0", + "registry+https://github.com/rust-lang/crates.io-index#more-asserts@0.3.1", + "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "registry+https://github.com/rust-lang/crates.io-index#regex@1.12.3", + "registry+https://github.com/rust-lang/crates.io-index#safe-transmute@0.11.3", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#static_assertions@1.1.0", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#uuid@1.22.0", + "path+file:///D:/a/xet-core/xet-core/xet_runtime#xet-runtime@1.6.0" + ] + }, + { + "ref": "path+file:///D:/a/xet-core/xet-core/xet_data#xet-data@1.6.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.103", + "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#chrono@0.4.44", + "registry+https://github.com/rust-lang/crates.io-index#gearhash@0.1.3", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#itertools@0.14.0", + "registry+https://github.com/rust-lang/crates.io-index#more-asserts@0.3.1", + "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.29.0", + "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "registry+https://github.com/rust-lang/crates.io-index#sha2@0.11.0", + "registry+https://github.com/rust-lang/crates.io-index#tempfile@3.27.0", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#url@2.5.8", + "registry+https://github.com/rust-lang/crates.io-index#uuid@1.22.0", + "path+file:///D:/a/xet-core/xet-core/xet_client#xet-client@1.6.0", + "path+file:///D:/a/xet-core/xet-core/xet_core_structures#xet-core-structures@1.6.0", + "path+file:///D:/a/xet-core/xet-core/xet_runtime#xet-runtime@1.6.0" + ] + }, + { + "ref": "path+file:///D:/a/xet-core/xet-core/xet_pkg#hf-xet@1.6.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.103", + "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#more-asserts@0.3.1", + "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.29.0", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#uuid@1.22.0", + "path+file:///D:/a/xet-core/xet-core/xet_client#xet-client@1.6.0", + "path+file:///D:/a/xet-core/xet-core/xet_core_structures#xet-core-structures@1.6.0", + "path+file:///D:/a/xet-core/xet-core/xet_data#xet-data@1.6.0", + "path+file:///D:/a/xet-core/xet-core/xet_runtime#xet-runtime@1.6.0" + ] + }, + { + "ref": "path+file:///D:/a/xet-core/xet-core/xet_runtime#xet-runtime@1.6.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.103", + "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#chrono@0.4.44", + "registry+https://github.com/rust-lang/crates.io-index#colored@3.1.1", + "registry+https://github.com/rust-lang/crates.io-index#const-str@1.1.0", + "registry+https://github.com/rust-lang/crates.io-index#ctor@1.0.3", + "registry+https://github.com/rust-lang/crates.io-index#dirs@6.0.0", + "registry+https://github.com/rust-lang/crates.io-index#futures@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#git-version@0.3.9", + "registry+https://github.com/rust-lang/crates.io-index#humantime@2.3.0", + "registry+https://github.com/rust-lang/crates.io-index#konst@0.4.3", + "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183", + "registry+https://github.com/rust-lang/crates.io-index#more-asserts@0.3.1", + "registry+https://github.com/rust-lang/crates.io-index#oneshot@0.1.13", + "registry+https://github.com/rust-lang/crates.io-index#pin-project@1.1.11", + "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.29.0", + "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "registry+https://github.com/rust-lang/crates.io-index#reqwest@0.13.2", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "registry+https://github.com/rust-lang/crates.io-index#shellexpand@3.1.2", + "registry+https://github.com/rust-lang/crates.io-index#sysinfo@0.38.4", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#tracing-appender@0.2.4", + "registry+https://github.com/rust-lang/crates.io-index#tracing-subscriber@0.3.23", + "registry+https://github.com/rust-lang/crates.io-index#winapi@0.3.9" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#aho-corasick@1.1.4", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.103" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#approx@0.5.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#arrayref@0.3.9" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#arrayvec@0.7.6" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#atomic-waker@1.1.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#aws-lc-rs@1.16.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#aws-lc-sys@0.39.0", + "registry+https://github.com/rust-lang/crates.io-index#zeroize@1.8.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#aws-lc-sys@0.39.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cc@1.2.57", + "registry+https://github.com/rust-lang/crates.io-index#cmake@0.1.57", + "registry+https://github.com/rust-lang/crates.io-index#dunce@1.0.5", + "registry+https://github.com/rust-lang/crates.io-index#fs_extra@1.3.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#base64@0.22.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#bitflags@2.11.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#blake3@1.8.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#arrayref@0.3.9", + "registry+https://github.com/rust-lang/crates.io-index#arrayvec@0.7.6", + "registry+https://github.com/rust-lang/crates.io-index#cc@1.2.57", + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4", + "registry+https://github.com/rust-lang/crates.io-index#constant_time_eq@0.4.2", + "registry+https://github.com/rust-lang/crates.io-index#cpufeatures@0.2.17" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#block-buffer@0.12.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#hybrid-array@0.4.13" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#bstr@1.12.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "registry+https://github.com/rust-lang/crates.io-index#regex-automata@0.4.14", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#bytemuck@1.25.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#cc@1.2.57", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#find-msvc-tools@0.1.9", + "registry+https://github.com/rust-lang/crates.io-index#jobserver@0.1.34", + "registry+https://github.com/rust-lang/crates.io-index#shlex@1.3.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#cfg-if@0.1.10" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#cfg_aliases@0.2.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#chacha20@0.10.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4", + "registry+https://github.com/rust-lang/crates.io-index#cpufeatures@0.3.0", + "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.10.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#chrono@0.4.44", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19", + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#cmake@0.1.57", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cc@1.2.57" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#colored@3.1.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#const-oid@0.10.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#const-str@1.1.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#const_panic@0.2.15", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#typewit@1.14.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#constant_time_eq@0.4.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#countio@0.3.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#futures-io@0.3.32" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#cpufeatures@0.2.17" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#cpufeatures@0.3.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#crc32fast@1.5.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-channel@0.5.15", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.21" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.21" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#crypto-common@0.2.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#hybrid-array@0.4.13" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#ctor@1.0.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#link-section@0.15.0", + "registry+https://github.com/rust-lang/crates.io-index#linktime-proc-macro@0.1.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#deranged@0.5.8", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#powerfmt@0.2.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#digest@0.11.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#block-buffer@0.12.1", + "registry+https://github.com/rust-lang/crates.io-index#const-oid@0.10.2", + "registry+https://github.com/rust-lang/crates.io-index#crypto-common@0.2.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#dirs-sys@0.5.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#option-ext@0.2.0", + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#dirs@6.0.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#dirs-sys@0.5.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#dunce@1.0.5" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#either@1.15.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#fastrand@2.3.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#find-msvc-tools@0.1.9" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#form_urlencoded@1.2.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#percent-encoding@2.3.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#fs_extra@1.3.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-channel@0.3.32", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-sink@0.3.32" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-executor@0.3.32", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-task@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-io@0.3.32" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-macro@0.3.32", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-sink@0.3.32" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-task@0.3.32" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#futures-channel@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-io@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-macro@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-sink@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-task@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#slab@0.4.12" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#futures@0.3.32", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#futures-channel@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-executor@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-io@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-sink@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-task@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#gearhash@0.1.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@0.1.10" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.2.17", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.3.4", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4", + "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.10.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#git-version-macro@0.3.9", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#git-version@0.3.9", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#git-version-macro@0.3.9" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#heapify@0.2.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#http-body-util@0.1.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#itoa@1.0.18" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#httparse@1.10.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#humantime@2.3.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#hybrid-array@0.4.13", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#typenum@1.20.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#hyper-rustls@0.27.7", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#hyper@1.8.1", + "registry+https://github.com/rust-lang/crates.io-index#hyper-util@0.1.20", + "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "registry+https://github.com/rust-lang/crates.io-index#rustls-pki-types@1.14.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio-rustls@0.26.4", + "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#hyper-util@0.1.20", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#base64@0.22.1", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#futures-channel@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1", + "registry+https://github.com/rust-lang/crates.io-index#hyper@1.8.1", + "registry+https://github.com/rust-lang/crates.io-index#ipnet@2.12.0", + "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183", + "registry+https://github.com/rust-lang/crates.io-index#percent-encoding@2.3.2", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#socket2@0.6.3", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#windows-registry@0.6.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#hyper@1.8.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#atomic-waker@1.1.2", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#futures-channel@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1", + "registry+https://github.com/rust-lang/crates.io-index#httparse@1.10.1", + "registry+https://github.com/rust-lang/crates.io-index#itoa@1.0.18", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#pin-utils@0.1.0", + "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.15.1", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#want@0.3.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#icu_collections@2.1.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5", + "registry+https://github.com/rust-lang/crates.io-index#potential_utf@0.1.4", + "registry+https://github.com/rust-lang/crates.io-index#yoke@0.8.1", + "registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6", + "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#icu_locale_core@2.1.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5", + "registry+https://github.com/rust-lang/crates.io-index#litemap@0.8.1", + "registry+https://github.com/rust-lang/crates.io-index#tinystr@0.8.2", + "registry+https://github.com/rust-lang/crates.io-index#writeable@0.6.2", + "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#icu_normalizer@2.1.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#icu_collections@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#icu_normalizer_data@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#icu_properties@2.1.2", + "registry+https://github.com/rust-lang/crates.io-index#icu_provider@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.15.1", + "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#icu_normalizer_data@2.1.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#icu_properties@2.1.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#icu_collections@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#icu_locale_core@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#icu_properties_data@2.1.2", + "registry+https://github.com/rust-lang/crates.io-index#icu_provider@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#zerotrie@0.2.3", + "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#icu_properties_data@2.1.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#icu_provider@2.1.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5", + "registry+https://github.com/rust-lang/crates.io-index#icu_locale_core@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#writeable@0.6.2", + "registry+https://github.com/rust-lang/crates.io-index#yoke@0.8.1", + "registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6", + "registry+https://github.com/rust-lang/crates.io-index#zerotrie@0.2.3", + "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#idna@1.1.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#idna_adapter@1.2.1", + "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.15.1", + "registry+https://github.com/rust-lang/crates.io-index#utf8_iter@1.0.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#idna_adapter@1.2.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#icu_normalizer@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#icu_properties@2.1.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#inventory@0.3.22" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#ipnet@2.12.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#iri-string@0.7.11", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#itertools@0.14.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#either@1.15.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#itoa@1.0.18" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#jobserver@0.1.34", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.3.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#konst@0.4.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#const_panic@0.2.15", + "registry+https://github.com/rust-lang/crates.io-index#konst_proc_macros@0.4.1", + "registry+https://github.com/rust-lang/crates.io-index#typewit@1.14.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#konst_proc_macros@0.4.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#lazy_static@1.5.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#link-section@0.15.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#linktime-proc-macro@0.1.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#litemap@0.8.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#log@0.4.29" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#lru-slab@0.1.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#lz4_flex@0.13.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#twox-hash@2.1.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#matchers@0.2.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#regex-automata@0.4.14" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#mio@1.1.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#more-asserts@0.3.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#ntapi@0.4.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#winapi@0.3.9" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#nu-ansi-term@0.50.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#num-conv@0.2.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#oneshot@0.1.13" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#option-ext@0.2.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#os_str_bytes@6.6.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#percent-encoding@2.3.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pin-project-internal@1.1.11", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pin-project@1.1.11", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#pin-project-internal@1.1.11" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pin-utils@0.1.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#potential_utf@0.1.4", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#powerfmt@0.2.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#ppv-lite86@0.2.21", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#zerocopy@0.8.47" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.24" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.29.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.29.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183", + "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.29.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.29.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0", + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.29.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.29.0", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.29.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#inventory@0.3.22", + "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183", + "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4", + "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.29.0", + "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.29.0", + "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.29.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#quinn-proto@0.11.15", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#aws-lc-rs@1.16.2", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#lru-slab@0.1.2", + "registry+https://github.com/rust-lang/crates.io-index#rand@0.9.4", + "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "registry+https://github.com/rust-lang/crates.io-index#slab@0.4.12", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tinyvec@1.11.0", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#quinn-udp@0.5.14", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg_aliases@0.2.1", + "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183", + "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4", + "registry+https://github.com/rust-lang/crates.io-index#socket2@0.6.3", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.60.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#quinn@0.11.9", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#cfg_aliases@0.2.1", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#quinn-proto@0.11.15", + "registry+https://github.com/rust-lang/crates.io-index#quinn-udp@0.5.14", + "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.1", + "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "registry+https://github.com/rust-lang/crates.io-index#socket2@0.6.3", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#chacha20@0.10.0", + "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2", + "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.10.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rand@0.9.4", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#rand_chacha@0.9.0", + "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.9.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rand_chacha@0.9.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#ppv-lite86@0.2.21", + "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.9.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.10.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rand_core@0.9.5", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.3.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#redb@3.1.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#regex-automata@0.4.14", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#aho-corasick@1.1.4", + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "registry+https://github.com/rust-lang/crates.io-index#regex-syntax@0.8.10" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#regex-syntax@0.8.10" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#regex@1.12.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#aho-corasick@1.1.4", + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "registry+https://github.com/rust-lang/crates.io-index#regex-automata@0.4.14", + "registry+https://github.com/rust-lang/crates.io-index#regex-syntax@0.8.10" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#reqwest-middleware@0.5.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.103", + "registry+https://github.com/rust-lang/crates.io-index#async-trait@0.1.89", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#reqwest@0.13.2", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#reqwest@0.13.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#base64@0.22.1", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1", + "registry+https://github.com/rust-lang/crates.io-index#http-body-util@0.1.3", + "registry+https://github.com/rust-lang/crates.io-index#hyper@1.8.1", + "registry+https://github.com/rust-lang/crates.io-index#hyper-rustls@0.27.7", + "registry+https://github.com/rust-lang/crates.io-index#hyper-util@0.1.20", + "registry+https://github.com/rust-lang/crates.io-index#log@0.4.29", + "registry+https://github.com/rust-lang/crates.io-index#percent-encoding@2.3.2", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#quinn@0.11.9", + "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "registry+https://github.com/rust-lang/crates.io-index#rustls-pki-types@1.14.0", + "registry+https://github.com/rust-lang/crates.io-index#rustls-platform-verifier@0.6.2", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "registry+https://github.com/rust-lang/crates.io-index#sync_wrapper@1.0.2", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tokio-rustls@0.26.4", + "registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18", + "registry+https://github.com/rust-lang/crates.io-index#tower@0.5.3", + "registry+https://github.com/rust-lang/crates.io-index#tower-http@0.6.8", + "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3", + "registry+https://github.com/rust-lang/crates.io-index#url@2.5.8" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#ring@0.17.14", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cc@1.2.57", + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4", + "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#untrusted@0.9.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rustls-pki-types@1.14.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#zeroize@1.8.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rustls-platform-verifier@0.6.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#log@0.4.29", + "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rustls-webpki@0.103.13", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#aws-lc-rs@1.16.2", + "registry+https://github.com/rust-lang/crates.io-index#ring@0.17.14", + "registry+https://github.com/rust-lang/crates.io-index#rustls-pki-types@1.14.0", + "registry+https://github.com/rust-lang/crates.io-index#untrusted@0.9.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#aws-lc-rs@1.16.2", + "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4", + "registry+https://github.com/rust-lang/crates.io-index#rustls-pki-types@1.14.0", + "registry+https://github.com/rust-lang/crates.io-index#rustls-webpki@0.103.13", + "registry+https://github.com/rust-lang/crates.io-index#subtle@2.6.1", + "registry+https://github.com/rust-lang/crates.io-index#zeroize@1.8.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#safe-transmute@0.11.3" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#serde_derive@1.0.228" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#serde_derive@1.0.228", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#itoa@1.0.18", + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#zmij@1.0.21" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#serde_repr@0.1.20", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#sha2@0.11.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4", + "registry+https://github.com/rust-lang/crates.io-index#cpufeatures@0.3.0", + "registry+https://github.com/rust-lang/crates.io-index#digest@0.11.3" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#sharded-slab@0.1.7", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#lazy_static@1.5.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#shellexpand@3.1.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bstr@1.12.1", + "registry+https://github.com/rust-lang/crates.io-index#dirs@6.0.0", + "registry+https://github.com/rust-lang/crates.io-index#os_str_bytes@6.6.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#shlex@1.3.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#slab@0.4.12" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.15.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#socket2@0.6.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#stable_deref_trait@1.2.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#static_assertions@1.1.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#statrs@0.18.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#approx@0.5.1", + "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#subtle@2.6.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.24" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#sync_wrapper@1.0.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#synstructure@0.13.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#sysinfo@0.38.4", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183", + "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0", + "registry+https://github.com/rust-lang/crates.io-index#ntapi@0.4.3", + "registry+https://github.com/rust-lang/crates.io-index#windows@0.62.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.5" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tempfile@3.27.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#fastrand@2.3.0", + "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2", + "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4", + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#thiserror-impl@2.0.18", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#thiserror-impl@2.0.18" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#thread_local@1.1.9", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#time-core@0.1.8" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#time-macros@0.2.27", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#num-conv@0.2.0", + "registry+https://github.com/rust-lang/crates.io-index#time-core@0.1.8" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#time@0.3.47", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#deranged@0.5.8", + "registry+https://github.com/rust-lang/crates.io-index#itoa@1.0.18", + "registry+https://github.com/rust-lang/crates.io-index#num-conv@0.2.0", + "registry+https://github.com/rust-lang/crates.io-index#powerfmt@0.2.0", + "registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#time-core@0.1.8", + "registry+https://github.com/rust-lang/crates.io-index#time-macros@0.2.27" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tinystr@0.8.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5", + "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tinyvec@1.11.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#tinyvec_macros@0.1.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tinyvec_macros@0.1.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-macros@2.6.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-retry@0.3.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#rand@0.10.1", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-rustls@0.26.4", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#rustls@0.23.37", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-sink@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#mio@1.1.1", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#socket2@0.6.3", + "registry+https://github.com/rust-lang/crates.io-index#tokio-macros@2.6.1", + "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tower-http@0.6.8", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#bitflags@2.11.0", + "registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1", + "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#http@1.4.0", + "registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1", + "registry+https://github.com/rust-lang/crates.io-index#iri-string@0.7.11", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#tower@0.5.3", + "registry+https://github.com/rust-lang/crates.io-index#tower-layer@0.3.3", + "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tower-layer@0.3.3" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tower@0.5.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32", + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#sync_wrapper@1.0.2", + "registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0", + "registry+https://github.com/rust-lang/crates.io-index#tower-layer@0.3.3", + "registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-appender@0.2.4", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#crossbeam-channel@0.5.15", + "registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18", + "registry+https://github.com/rust-lang/crates.io-index#time@0.3.47", + "registry+https://github.com/rust-lang/crates.io-index#tracing-subscriber@0.3.23" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-attributes@0.1.31", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-core@0.1.36", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-log@0.2.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#log@0.4.29", + "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4", + "registry+https://github.com/rust-lang/crates.io-index#tracing-core@0.1.36" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-serde@0.2.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#tracing-core@0.1.36" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tracing-subscriber@0.3.23", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#matchers@0.2.0", + "registry+https://github.com/rust-lang/crates.io-index#nu-ansi-term@0.50.3", + "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4", + "registry+https://github.com/rust-lang/crates.io-index#regex-automata@0.4.14", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228", + "registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149", + "registry+https://github.com/rust-lang/crates.io-index#sharded-slab@0.1.7", + "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.15.1", + "registry+https://github.com/rust-lang/crates.io-index#thread_local@1.1.9", + "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "registry+https://github.com/rust-lang/crates.io-index#tracing-core@0.1.36", + "registry+https://github.com/rust-lang/crates.io-index#tracing-log@0.2.0", + "registry+https://github.com/rust-lang/crates.io-index#tracing-serde@0.2.0" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17", + "registry+https://github.com/rust-lang/crates.io-index#tracing-attributes@0.1.31", + "registry+https://github.com/rust-lang/crates.io-index#tracing-core@0.1.36" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#try-lock@0.2.5" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#twox-hash@2.1.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#typenum@1.20.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#typewit@1.14.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.24" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#untrusted@0.9.0" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#url@2.5.8", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#form_urlencoded@1.2.2", + "registry+https://github.com/rust-lang/crates.io-index#idna@1.1.0", + "registry+https://github.com/rust-lang/crates.io-index#percent-encoding@2.3.2", + "registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#urlencoding@2.1.3" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#utf8_iter@1.0.4" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#uuid@1.22.0", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#want@0.3.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#try-lock@0.2.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#winapi@0.3.9" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-collections@0.3.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-core@0.62.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-core@0.62.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-implement@0.60.2", + "registry+https://github.com/rust-lang/crates.io-index#windows-interface@0.59.3", + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1", + "registry+https://github.com/rust-lang/crates.io-index#windows-result@0.4.1", + "registry+https://github.com/rust-lang/crates.io-index#windows-strings@0.5.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-future@0.3.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-core@0.62.2", + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1", + "registry+https://github.com/rust-lang/crates.io-index#windows-threading@0.2.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-implement@0.60.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-interface@0.59.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-numerics@0.3.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-core@0.62.2", + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-registry@0.6.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1", + "registry+https://github.com/rust-lang/crates.io-index#windows-result@0.4.1", + "registry+https://github.com/rust-lang/crates.io-index#windows-strings@0.5.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-result@0.4.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-strings@0.5.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.60.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-targets@0.53.5" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-sys@0.61.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-targets@0.53.5", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows_x86_64_msvc@0.53.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows-threading@0.2.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-link@0.2.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows@0.62.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#windows-collections@0.3.2", + "registry+https://github.com/rust-lang/crates.io-index#windows-core@0.62.2", + "registry+https://github.com/rust-lang/crates.io-index#windows-future@0.3.2", + "registry+https://github.com/rust-lang/crates.io-index#windows-numerics@0.3.1" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#windows_x86_64_msvc@0.53.1" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#writeable@0.6.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#yoke-derive@0.8.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117", + "registry+https://github.com/rust-lang/crates.io-index#synstructure@0.13.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#yoke@0.8.1", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#stable_deref_trait@1.2.1", + "registry+https://github.com/rust-lang/crates.io-index#yoke-derive@0.8.1", + "registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zerocopy@0.8.47" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zerofrom-derive@0.1.6", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117", + "registry+https://github.com/rust-lang/crates.io-index#synstructure@0.13.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#zerofrom-derive@0.1.6" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zeroize@1.8.2" + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zerotrie@0.2.3", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5", + "registry+https://github.com/rust-lang/crates.io-index#yoke@0.8.1", + "registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zerovec-derive@0.11.2", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106", + "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45", + "registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5", + "dependsOn": [ + "registry+https://github.com/rust-lang/crates.io-index#yoke@0.8.1", + "registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6", + "registry+https://github.com/rust-lang/crates.io-index#zerovec-derive@0.11.2" + ] + }, + { + "ref": "registry+https://github.com/rust-lang/crates.io-index#zmij@1.0.21" + } + ] +} \ No newline at end of file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..96ed54a8a066d681e4973e5841a0f5577b619698 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/__init__.py @@ -0,0 +1,5 @@ +from .hf_xet import * + +__doc__ = hf_xet.__doc__ +if hasattr(hf_xet, "__all__"): + __all__ = hf_xet.__all__ \ No newline at end of file diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2b4b636e94ed0a687594cce65bb527c09390eec5 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/hf_xet.pyd b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/hf_xet.pyd new file mode 100644 index 0000000000000000000000000000000000000000..bd5c92041626998b526e3da4b11c146fb249cf14 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/hf_xet/hf_xet.pyd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea8f5ddb1ae42adf5e4d376ec27b7f1ea1fe843e15f5d7a9e45fe1298ca4fd4c +size 9499136 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9a92dc4a440bdf6f259ec1083c89c817eb7b631b --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__init__.py @@ -0,0 +1,141 @@ +from ._api import request, stream +from ._async import ( + AsyncConnectionInterface, + AsyncConnectionPool, + AsyncHTTP2Connection, + AsyncHTTP11Connection, + AsyncHTTPConnection, + AsyncHTTPProxy, + AsyncSOCKSProxy, +) +from ._backends.base import ( + SOCKET_OPTION, + AsyncNetworkBackend, + AsyncNetworkStream, + NetworkBackend, + NetworkStream, +) +from ._backends.mock import AsyncMockBackend, AsyncMockStream, MockBackend, MockStream +from ._backends.sync import SyncBackend +from ._exceptions import ( + ConnectError, + ConnectionNotAvailable, + ConnectTimeout, + LocalProtocolError, + NetworkError, + PoolTimeout, + ProtocolError, + ProxyError, + ReadError, + ReadTimeout, + RemoteProtocolError, + TimeoutException, + UnsupportedProtocol, + WriteError, + WriteTimeout, +) +from ._models import URL, Origin, Proxy, Request, Response +from ._ssl import default_ssl_context +from ._sync import ( + ConnectionInterface, + ConnectionPool, + HTTP2Connection, + HTTP11Connection, + HTTPConnection, + HTTPProxy, + SOCKSProxy, +) + +# The 'httpcore.AnyIOBackend' class is conditional on 'anyio' being installed. +try: + from ._backends.anyio import AnyIOBackend +except ImportError: # pragma: nocover + + class AnyIOBackend: # type: ignore + def __init__(self, *args, **kwargs): # type: ignore + msg = ( + "Attempted to use 'httpcore.AnyIOBackend' but 'anyio' is not installed." + ) + raise RuntimeError(msg) + + +# The 'httpcore.TrioBackend' class is conditional on 'trio' being installed. +try: + from ._backends.trio import TrioBackend +except ImportError: # pragma: nocover + + class TrioBackend: # type: ignore + def __init__(self, *args, **kwargs): # type: ignore + msg = "Attempted to use 'httpcore.TrioBackend' but 'trio' is not installed." + raise RuntimeError(msg) + + +__all__ = [ + # top-level requests + "request", + "stream", + # models + "Origin", + "URL", + "Request", + "Response", + "Proxy", + # async + "AsyncHTTPConnection", + "AsyncConnectionPool", + "AsyncHTTPProxy", + "AsyncHTTP11Connection", + "AsyncHTTP2Connection", + "AsyncConnectionInterface", + "AsyncSOCKSProxy", + # sync + "HTTPConnection", + "ConnectionPool", + "HTTPProxy", + "HTTP11Connection", + "HTTP2Connection", + "ConnectionInterface", + "SOCKSProxy", + # network backends, implementations + "SyncBackend", + "AnyIOBackend", + "TrioBackend", + # network backends, mock implementations + "AsyncMockBackend", + "AsyncMockStream", + "MockBackend", + "MockStream", + # network backends, interface + "AsyncNetworkStream", + "AsyncNetworkBackend", + "NetworkStream", + "NetworkBackend", + # util + "default_ssl_context", + "SOCKET_OPTION", + # exceptions + "ConnectionNotAvailable", + "ProxyError", + "ProtocolError", + "LocalProtocolError", + "RemoteProtocolError", + "UnsupportedProtocol", + "TimeoutException", + "PoolTimeout", + "ConnectTimeout", + "ReadTimeout", + "WriteTimeout", + "NetworkError", + "ConnectError", + "ReadError", + "WriteError", +] + +__version__ = "1.0.9" + + +__locals = locals() +for __name in __all__: + # Exclude SOCKET_OPTION, it causes AttributeError on Python 3.14 + if not __name.startswith(("__", "SOCKET_OPTION")): + setattr(__locals[__name], "__module__", "httpcore") # noqa diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0c70b2fbcd30561242aa6aa304ccc48b55fb6151 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_api.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_api.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c3e69a6361c0d1d33935bfcc3efc2ccc2138faf8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_api.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_exceptions.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_exceptions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..11e09f3f2ea1c1c64b5406442f0a8b95b5b42e44 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_exceptions.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_models.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_models.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..209160bfdb900faaf0acf0b183bfc5d63fd08f54 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_models.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_ssl.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_ssl.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ea598eb91cffebc2871a5ba14e07c8a073a58458 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_ssl.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_synchronization.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_synchronization.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1b141c9c9193bfb5821cbaf0a6809a85e88bc7fa Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_synchronization.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_trace.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_trace.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4585ae787740631a451473304f90a550e299b0e3 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_trace.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_utils.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ae2164289757235de2ca5f6e3bbe3a71edb0ad0c Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/__pycache__/_utils.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_api.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_api.py new file mode 100644 index 0000000000000000000000000000000000000000..38b961d10de88bebc98c758d0d1f14af1e7c0370 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_api.py @@ -0,0 +1,94 @@ +from __future__ import annotations + +import contextlib +import typing + +from ._models import URL, Extensions, HeaderTypes, Response +from ._sync.connection_pool import ConnectionPool + + +def request( + method: bytes | str, + url: URL | bytes | str, + *, + headers: HeaderTypes = None, + content: bytes | typing.Iterator[bytes] | None = None, + extensions: Extensions | None = None, +) -> Response: + """ + Sends an HTTP request, returning the response. + + ``` + response = httpcore.request("GET", "https://www.example.com/") + ``` + + Arguments: + method: The HTTP method for the request. Typically one of `"GET"`, + `"OPTIONS"`, `"HEAD"`, `"POST"`, `"PUT"`, `"PATCH"`, or `"DELETE"`. + url: The URL of the HTTP request. Either as an instance of `httpcore.URL`, + or as str/bytes. + headers: The HTTP request headers. Either as a dictionary of str/bytes, + or as a list of two-tuples of str/bytes. + content: The content of the request body. Either as bytes, + or as a bytes iterator. + extensions: A dictionary of optional extra information included on the request. + Possible keys include `"timeout"`. + + Returns: + An instance of `httpcore.Response`. + """ + with ConnectionPool() as pool: + return pool.request( + method=method, + url=url, + headers=headers, + content=content, + extensions=extensions, + ) + + +@contextlib.contextmanager +def stream( + method: bytes | str, + url: URL | bytes | str, + *, + headers: HeaderTypes = None, + content: bytes | typing.Iterator[bytes] | None = None, + extensions: Extensions | None = None, +) -> typing.Iterator[Response]: + """ + Sends an HTTP request, returning the response within a content manager. + + ``` + with httpcore.stream("GET", "https://www.example.com/") as response: + ... + ``` + + When using the `stream()` function, the body of the response will not be + automatically read. If you want to access the response body you should + either use `content = response.read()`, or `for chunk in response.iter_content()`. + + Arguments: + method: The HTTP method for the request. Typically one of `"GET"`, + `"OPTIONS"`, `"HEAD"`, `"POST"`, `"PUT"`, `"PATCH"`, or `"DELETE"`. + url: The URL of the HTTP request. Either as an instance of `httpcore.URL`, + or as str/bytes. + headers: The HTTP request headers. Either as a dictionary of str/bytes, + or as a list of two-tuples of str/bytes. + content: The content of the request body. Either as bytes, + or as a bytes iterator. + extensions: A dictionary of optional extra information included on the request. + Possible keys include `"timeout"`. + + Returns: + An instance of `httpcore.Response`. + """ + with ConnectionPool() as pool: + with pool.stream( + method=method, + url=url, + headers=headers, + content=content, + extensions=extensions, + ) as response: + yield response diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..88dc7f01e132933728cbcf45c88ce82e85ddf65f --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__init__.py @@ -0,0 +1,39 @@ +from .connection import AsyncHTTPConnection +from .connection_pool import AsyncConnectionPool +from .http11 import AsyncHTTP11Connection +from .http_proxy import AsyncHTTPProxy +from .interfaces import AsyncConnectionInterface + +try: + from .http2 import AsyncHTTP2Connection +except ImportError: # pragma: nocover + + class AsyncHTTP2Connection: # type: ignore + def __init__(self, *args, **kwargs) -> None: # type: ignore + raise RuntimeError( + "Attempted to use http2 support, but the `h2` package is not " + "installed. Use 'pip install httpcore[http2]'." + ) + + +try: + from .socks_proxy import AsyncSOCKSProxy +except ImportError: # pragma: nocover + + class AsyncSOCKSProxy: # type: ignore + def __init__(self, *args, **kwargs) -> None: # type: ignore + raise RuntimeError( + "Attempted to use SOCKS support, but the `socksio` package is not " + "installed. Use 'pip install httpcore[socks]'." + ) + + +__all__ = [ + "AsyncHTTPConnection", + "AsyncConnectionPool", + "AsyncHTTPProxy", + "AsyncHTTP11Connection", + "AsyncHTTP2Connection", + "AsyncConnectionInterface", + "AsyncSOCKSProxy", +] diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5cc41bc6eb5bf16e77e8cde6cd9b30293fb3fb18 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/__init__.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/connection.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/connection.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..53f10f8349f6fcf9ba913a540842e903e2ca7f99 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/connection.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/connection_pool.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/connection_pool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9f35fd66499d192afa7e240a230140d8064fcba8 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/connection_pool.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http11.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http11.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ef69f3eea57f8891427d86cf41c2512ea694562f Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http11.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http2.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http2.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a4403a6ea847bfc661c32d121c232bca1aefcd27 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http2.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http_proxy.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http_proxy.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c30c512e508917543cac4802f98eddc0f6e0c77 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/http_proxy.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/interfaces.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/interfaces.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af6438767f33d8d44718eff0b26b397552f27fb6 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/interfaces.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/socks_proxy.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/socks_proxy.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..df24967da0ddd39b4ed66077126dfb02f73f61c7 Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/__pycache__/socks_proxy.cpython-311.pyc differ diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/connection.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/connection.py new file mode 100644 index 0000000000000000000000000000000000000000..b42581dff8aabf4c2ef80ffda26296e1b368d693 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/connection.py @@ -0,0 +1,222 @@ +from __future__ import annotations + +import itertools +import logging +import ssl +import types +import typing + +from .._backends.auto import AutoBackend +from .._backends.base import SOCKET_OPTION, AsyncNetworkBackend, AsyncNetworkStream +from .._exceptions import ConnectError, ConnectTimeout +from .._models import Origin, Request, Response +from .._ssl import default_ssl_context +from .._synchronization import AsyncLock +from .._trace import Trace +from .http11 import AsyncHTTP11Connection +from .interfaces import AsyncConnectionInterface + +RETRIES_BACKOFF_FACTOR = 0.5 # 0s, 0.5s, 1s, 2s, 4s, etc. + + +logger = logging.getLogger("httpcore.connection") + + +def exponential_backoff(factor: float) -> typing.Iterator[float]: + """ + Generate a geometric sequence that has a ratio of 2 and starts with 0. + + For example: + - `factor = 2`: `0, 2, 4, 8, 16, 32, 64, ...` + - `factor = 3`: `0, 3, 6, 12, 24, 48, 96, ...` + """ + yield 0 + for n in itertools.count(): + yield factor * 2**n + + +class AsyncHTTPConnection(AsyncConnectionInterface): + def __init__( + self, + origin: Origin, + ssl_context: ssl.SSLContext | None = None, + keepalive_expiry: float | None = None, + http1: bool = True, + http2: bool = False, + retries: int = 0, + local_address: str | None = None, + uds: str | None = None, + network_backend: AsyncNetworkBackend | None = None, + socket_options: typing.Iterable[SOCKET_OPTION] | None = None, + ) -> None: + self._origin = origin + self._ssl_context = ssl_context + self._keepalive_expiry = keepalive_expiry + self._http1 = http1 + self._http2 = http2 + self._retries = retries + self._local_address = local_address + self._uds = uds + + self._network_backend: AsyncNetworkBackend = ( + AutoBackend() if network_backend is None else network_backend + ) + self._connection: AsyncConnectionInterface | None = None + self._connect_failed: bool = False + self._request_lock = AsyncLock() + self._socket_options = socket_options + + async def handle_async_request(self, request: Request) -> Response: + if not self.can_handle_request(request.url.origin): + raise RuntimeError( + f"Attempted to send request to {request.url.origin} on connection to {self._origin}" + ) + + try: + async with self._request_lock: + if self._connection is None: + stream = await self._connect(request) + + ssl_object = stream.get_extra_info("ssl_object") + http2_negotiated = ( + ssl_object is not None + and ssl_object.selected_alpn_protocol() == "h2" + ) + if http2_negotiated or (self._http2 and not self._http1): + from .http2 import AsyncHTTP2Connection + + self._connection = AsyncHTTP2Connection( + origin=self._origin, + stream=stream, + keepalive_expiry=self._keepalive_expiry, + ) + else: + self._connection = AsyncHTTP11Connection( + origin=self._origin, + stream=stream, + keepalive_expiry=self._keepalive_expiry, + ) + except BaseException as exc: + self._connect_failed = True + raise exc + + return await self._connection.handle_async_request(request) + + async def _connect(self, request: Request) -> AsyncNetworkStream: + timeouts = request.extensions.get("timeout", {}) + sni_hostname = request.extensions.get("sni_hostname", None) + timeout = timeouts.get("connect", None) + + retries_left = self._retries + delays = exponential_backoff(factor=RETRIES_BACKOFF_FACTOR) + + while True: + try: + if self._uds is None: + kwargs = { + "host": self._origin.host.decode("ascii"), + "port": self._origin.port, + "local_address": self._local_address, + "timeout": timeout, + "socket_options": self._socket_options, + } + async with Trace("connect_tcp", logger, request, kwargs) as trace: + stream = await self._network_backend.connect_tcp(**kwargs) + trace.return_value = stream + else: + kwargs = { + "path": self._uds, + "timeout": timeout, + "socket_options": self._socket_options, + } + async with Trace( + "connect_unix_socket", logger, request, kwargs + ) as trace: + stream = await self._network_backend.connect_unix_socket( + **kwargs + ) + trace.return_value = stream + + if self._origin.scheme in (b"https", b"wss"): + ssl_context = ( + default_ssl_context() + if self._ssl_context is None + else self._ssl_context + ) + alpn_protocols = ["http/1.1", "h2"] if self._http2 else ["http/1.1"] + ssl_context.set_alpn_protocols(alpn_protocols) + + kwargs = { + "ssl_context": ssl_context, + "server_hostname": sni_hostname + or self._origin.host.decode("ascii"), + "timeout": timeout, + } + async with Trace("start_tls", logger, request, kwargs) as trace: + stream = await stream.start_tls(**kwargs) + trace.return_value = stream + return stream + except (ConnectError, ConnectTimeout): + if retries_left <= 0: + raise + retries_left -= 1 + delay = next(delays) + async with Trace("retry", logger, request, kwargs) as trace: + await self._network_backend.sleep(delay) + + def can_handle_request(self, origin: Origin) -> bool: + return origin == self._origin + + async def aclose(self) -> None: + if self._connection is not None: + async with Trace("close", logger, None, {}): + await self._connection.aclose() + + def is_available(self) -> bool: + if self._connection is None: + # If HTTP/2 support is enabled, and the resulting connection could + # end up as HTTP/2 then we should indicate the connection as being + # available to service multiple requests. + return ( + self._http2 + and (self._origin.scheme == b"https" or not self._http1) + and not self._connect_failed + ) + return self._connection.is_available() + + def has_expired(self) -> bool: + if self._connection is None: + return self._connect_failed + return self._connection.has_expired() + + def is_idle(self) -> bool: + if self._connection is None: + return self._connect_failed + return self._connection.is_idle() + + def is_closed(self) -> bool: + if self._connection is None: + return self._connect_failed + return self._connection.is_closed() + + def info(self) -> str: + if self._connection is None: + return "CONNECTION FAILED" if self._connect_failed else "CONNECTING" + return self._connection.info() + + def __repr__(self) -> str: + return f"<{self.__class__.__name__} [{self.info()}]>" + + # These context managers are not used in the standard flow, but are + # useful for testing or working with connection instances directly. + + async def __aenter__(self) -> AsyncHTTPConnection: + return self + + async def __aexit__( + self, + exc_type: type[BaseException] | None = None, + exc_value: BaseException | None = None, + traceback: types.TracebackType | None = None, + ) -> None: + await self.aclose() diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/connection_pool.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/connection_pool.py new file mode 100644 index 0000000000000000000000000000000000000000..96e973d0ce223f6bed9be9e6a6a2f3c01622c611 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/connection_pool.py @@ -0,0 +1,420 @@ +from __future__ import annotations + +import ssl +import sys +import types +import typing + +from .._backends.auto import AutoBackend +from .._backends.base import SOCKET_OPTION, AsyncNetworkBackend +from .._exceptions import ConnectionNotAvailable, UnsupportedProtocol +from .._models import Origin, Proxy, Request, Response +from .._synchronization import AsyncEvent, AsyncShieldCancellation, AsyncThreadLock +from .connection import AsyncHTTPConnection +from .interfaces import AsyncConnectionInterface, AsyncRequestInterface + + +class AsyncPoolRequest: + def __init__(self, request: Request) -> None: + self.request = request + self.connection: AsyncConnectionInterface | None = None + self._connection_acquired = AsyncEvent() + + def assign_to_connection(self, connection: AsyncConnectionInterface | None) -> None: + self.connection = connection + self._connection_acquired.set() + + def clear_connection(self) -> None: + self.connection = None + self._connection_acquired = AsyncEvent() + + async def wait_for_connection( + self, timeout: float | None = None + ) -> AsyncConnectionInterface: + if self.connection is None: + await self._connection_acquired.wait(timeout=timeout) + assert self.connection is not None + return self.connection + + def is_queued(self) -> bool: + return self.connection is None + + +class AsyncConnectionPool(AsyncRequestInterface): + """ + A connection pool for making HTTP requests. + """ + + def __init__( + self, + ssl_context: ssl.SSLContext | None = None, + proxy: Proxy | None = None, + max_connections: int | None = 10, + max_keepalive_connections: int | None = None, + keepalive_expiry: float | None = None, + http1: bool = True, + http2: bool = False, + retries: int = 0, + local_address: str | None = None, + uds: str | None = None, + network_backend: AsyncNetworkBackend | None = None, + socket_options: typing.Iterable[SOCKET_OPTION] | None = None, + ) -> None: + """ + A connection pool for making HTTP requests. + + Parameters: + ssl_context: An SSL context to use for verifying connections. + If not specified, the default `httpcore.default_ssl_context()` + will be used. + max_connections: The maximum number of concurrent HTTP connections that + the pool should allow. Any attempt to send a request on a pool that + would exceed this amount will block until a connection is available. + max_keepalive_connections: The maximum number of idle HTTP connections + that will be maintained in the pool. + keepalive_expiry: The duration in seconds that an idle HTTP connection + may be maintained for before being expired from the pool. + http1: A boolean indicating if HTTP/1.1 requests should be supported + by the connection pool. Defaults to True. + http2: A boolean indicating if HTTP/2 requests should be supported by + the connection pool. Defaults to False. + retries: The maximum number of retries when trying to establish a + connection. + local_address: Local address to connect from. Can also be used to connect + using a particular address family. Using `local_address="0.0.0.0"` + will connect using an `AF_INET` address (IPv4), while using + `local_address="::"` will connect using an `AF_INET6` address (IPv6). + uds: Path to a Unix Domain Socket to use instead of TCP sockets. + network_backend: A backend instance to use for handling network I/O. + socket_options: Socket options that have to be included + in the TCP socket when the connection was established. + """ + self._ssl_context = ssl_context + self._proxy = proxy + self._max_connections = ( + sys.maxsize if max_connections is None else max_connections + ) + self._max_keepalive_connections = ( + sys.maxsize + if max_keepalive_connections is None + else max_keepalive_connections + ) + self._max_keepalive_connections = min( + self._max_connections, self._max_keepalive_connections + ) + + self._keepalive_expiry = keepalive_expiry + self._http1 = http1 + self._http2 = http2 + self._retries = retries + self._local_address = local_address + self._uds = uds + + self._network_backend = ( + AutoBackend() if network_backend is None else network_backend + ) + self._socket_options = socket_options + + # The mutable state on a connection pool is the queue of incoming requests, + # and the set of connections that are servicing those requests. + self._connections: list[AsyncConnectionInterface] = [] + self._requests: list[AsyncPoolRequest] = [] + + # We only mutate the state of the connection pool within an 'optional_thread_lock' + # context. This holds a threading lock unless we're running in async mode, + # in which case it is a no-op. + self._optional_thread_lock = AsyncThreadLock() + + def create_connection(self, origin: Origin) -> AsyncConnectionInterface: + if self._proxy is not None: + if self._proxy.url.scheme in (b"socks5", b"socks5h"): + from .socks_proxy import AsyncSocks5Connection + + return AsyncSocks5Connection( + proxy_origin=self._proxy.url.origin, + proxy_auth=self._proxy.auth, + remote_origin=origin, + ssl_context=self._ssl_context, + keepalive_expiry=self._keepalive_expiry, + http1=self._http1, + http2=self._http2, + network_backend=self._network_backend, + ) + elif origin.scheme == b"http": + from .http_proxy import AsyncForwardHTTPConnection + + return AsyncForwardHTTPConnection( + proxy_origin=self._proxy.url.origin, + proxy_headers=self._proxy.headers, + proxy_ssl_context=self._proxy.ssl_context, + remote_origin=origin, + keepalive_expiry=self._keepalive_expiry, + network_backend=self._network_backend, + ) + from .http_proxy import AsyncTunnelHTTPConnection + + return AsyncTunnelHTTPConnection( + proxy_origin=self._proxy.url.origin, + proxy_headers=self._proxy.headers, + proxy_ssl_context=self._proxy.ssl_context, + remote_origin=origin, + ssl_context=self._ssl_context, + keepalive_expiry=self._keepalive_expiry, + http1=self._http1, + http2=self._http2, + network_backend=self._network_backend, + ) + + return AsyncHTTPConnection( + origin=origin, + ssl_context=self._ssl_context, + keepalive_expiry=self._keepalive_expiry, + http1=self._http1, + http2=self._http2, + retries=self._retries, + local_address=self._local_address, + uds=self._uds, + network_backend=self._network_backend, + socket_options=self._socket_options, + ) + + @property + def connections(self) -> list[AsyncConnectionInterface]: + """ + Return a list of the connections currently in the pool. + + For example: + + ```python + >>> pool.connections + [ + , + , + , + ] + ``` + """ + return list(self._connections) + + async def handle_async_request(self, request: Request) -> Response: + """ + Send an HTTP request, and return an HTTP response. + + This is the core implementation that is called into by `.request()` or `.stream()`. + """ + scheme = request.url.scheme.decode() + if scheme == "": + raise UnsupportedProtocol( + "Request URL is missing an 'http://' or 'https://' protocol." + ) + if scheme not in ("http", "https", "ws", "wss"): + raise UnsupportedProtocol( + f"Request URL has an unsupported protocol '{scheme}://'." + ) + + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("pool", None) + + with self._optional_thread_lock: + # Add the incoming request to our request queue. + pool_request = AsyncPoolRequest(request) + self._requests.append(pool_request) + + try: + while True: + with self._optional_thread_lock: + # Assign incoming requests to available connections, + # closing or creating new connections as required. + closing = self._assign_requests_to_connections() + await self._close_connections(closing) + + # Wait until this request has an assigned connection. + connection = await pool_request.wait_for_connection(timeout=timeout) + + try: + # Send the request on the assigned connection. + response = await connection.handle_async_request( + pool_request.request + ) + except ConnectionNotAvailable: + # In some cases a connection may initially be available to + # handle a request, but then become unavailable. + # + # In this case we clear the connection and try again. + pool_request.clear_connection() + else: + break # pragma: nocover + + except BaseException as exc: + with self._optional_thread_lock: + # For any exception or cancellation we remove the request from + # the queue, and then re-assign requests to connections. + self._requests.remove(pool_request) + closing = self._assign_requests_to_connections() + + await self._close_connections(closing) + raise exc from None + + # Return the response. Note that in this case we still have to manage + # the point at which the response is closed. + assert isinstance(response.stream, typing.AsyncIterable) + return Response( + status=response.status, + headers=response.headers, + content=PoolByteStream( + stream=response.stream, pool_request=pool_request, pool=self + ), + extensions=response.extensions, + ) + + def _assign_requests_to_connections(self) -> list[AsyncConnectionInterface]: + """ + Manage the state of the connection pool, assigning incoming + requests to connections as available. + + Called whenever a new request is added or removed from the pool. + + Any closing connections are returned, allowing the I/O for closing + those connections to be handled seperately. + """ + closing_connections = [] + + # First we handle cleaning up any connections that are closed, + # have expired their keep-alive, or surplus idle connections. + for connection in list(self._connections): + if connection.is_closed(): + # log: "removing closed connection" + self._connections.remove(connection) + elif connection.has_expired(): + # log: "closing expired connection" + self._connections.remove(connection) + closing_connections.append(connection) + elif ( + connection.is_idle() + and len([connection.is_idle() for connection in self._connections]) + > self._max_keepalive_connections + ): + # log: "closing idle connection" + self._connections.remove(connection) + closing_connections.append(connection) + + # Assign queued requests to connections. + queued_requests = [request for request in self._requests if request.is_queued()] + for pool_request in queued_requests: + origin = pool_request.request.url.origin + available_connections = [ + connection + for connection in self._connections + if connection.can_handle_request(origin) and connection.is_available() + ] + idle_connections = [ + connection for connection in self._connections if connection.is_idle() + ] + + # There are three cases for how we may be able to handle the request: + # + # 1. There is an existing connection that can handle the request. + # 2. We can create a new connection to handle the request. + # 3. We can close an idle connection and then create a new connection + # to handle the request. + if available_connections: + # log: "reusing existing connection" + connection = available_connections[0] + pool_request.assign_to_connection(connection) + elif len(self._connections) < self._max_connections: + # log: "creating new connection" + connection = self.create_connection(origin) + self._connections.append(connection) + pool_request.assign_to_connection(connection) + elif idle_connections: + # log: "closing idle connection" + connection = idle_connections[0] + self._connections.remove(connection) + closing_connections.append(connection) + # log: "creating new connection" + connection = self.create_connection(origin) + self._connections.append(connection) + pool_request.assign_to_connection(connection) + + return closing_connections + + async def _close_connections(self, closing: list[AsyncConnectionInterface]) -> None: + # Close connections which have been removed from the pool. + with AsyncShieldCancellation(): + for connection in closing: + await connection.aclose() + + async def aclose(self) -> None: + # Explicitly close the connection pool. + # Clears all existing requests and connections. + with self._optional_thread_lock: + closing_connections = list(self._connections) + self._connections = [] + await self._close_connections(closing_connections) + + async def __aenter__(self) -> AsyncConnectionPool: + return self + + async def __aexit__( + self, + exc_type: type[BaseException] | None = None, + exc_value: BaseException | None = None, + traceback: types.TracebackType | None = None, + ) -> None: + await self.aclose() + + def __repr__(self) -> str: + class_name = self.__class__.__name__ + with self._optional_thread_lock: + request_is_queued = [request.is_queued() for request in self._requests] + connection_is_idle = [ + connection.is_idle() for connection in self._connections + ] + + num_active_requests = request_is_queued.count(False) + num_queued_requests = request_is_queued.count(True) + num_active_connections = connection_is_idle.count(False) + num_idle_connections = connection_is_idle.count(True) + + requests_info = ( + f"Requests: {num_active_requests} active, {num_queued_requests} queued" + ) + connection_info = ( + f"Connections: {num_active_connections} active, {num_idle_connections} idle" + ) + + return f"<{class_name} [{requests_info} | {connection_info}]>" + + +class PoolByteStream: + def __init__( + self, + stream: typing.AsyncIterable[bytes], + pool_request: AsyncPoolRequest, + pool: AsyncConnectionPool, + ) -> None: + self._stream = stream + self._pool_request = pool_request + self._pool = pool + self._closed = False + + async def __aiter__(self) -> typing.AsyncIterator[bytes]: + try: + async for part in self._stream: + yield part + except BaseException as exc: + await self.aclose() + raise exc from None + + async def aclose(self) -> None: + if not self._closed: + self._closed = True + with AsyncShieldCancellation(): + if hasattr(self._stream, "aclose"): + await self._stream.aclose() + + with self._pool._optional_thread_lock: + self._pool._requests.remove(self._pool_request) + closing = self._pool._assign_requests_to_connections() + + await self._pool._close_connections(closing) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http11.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http11.py new file mode 100644 index 0000000000000000000000000000000000000000..e6d6d709852b137a862cfe2b3af42dc790fa705d --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http11.py @@ -0,0 +1,379 @@ +from __future__ import annotations + +import enum +import logging +import ssl +import time +import types +import typing + +import h11 + +from .._backends.base import AsyncNetworkStream +from .._exceptions import ( + ConnectionNotAvailable, + LocalProtocolError, + RemoteProtocolError, + WriteError, + map_exceptions, +) +from .._models import Origin, Request, Response +from .._synchronization import AsyncLock, AsyncShieldCancellation +from .._trace import Trace +from .interfaces import AsyncConnectionInterface + +logger = logging.getLogger("httpcore.http11") + + +# A subset of `h11.Event` types supported by `_send_event` +H11SendEvent = typing.Union[ + h11.Request, + h11.Data, + h11.EndOfMessage, +] + + +class HTTPConnectionState(enum.IntEnum): + NEW = 0 + ACTIVE = 1 + IDLE = 2 + CLOSED = 3 + + +class AsyncHTTP11Connection(AsyncConnectionInterface): + READ_NUM_BYTES = 64 * 1024 + MAX_INCOMPLETE_EVENT_SIZE = 100 * 1024 + + def __init__( + self, + origin: Origin, + stream: AsyncNetworkStream, + keepalive_expiry: float | None = None, + ) -> None: + self._origin = origin + self._network_stream = stream + self._keepalive_expiry: float | None = keepalive_expiry + self._expire_at: float | None = None + self._state = HTTPConnectionState.NEW + self._state_lock = AsyncLock() + self._request_count = 0 + self._h11_state = h11.Connection( + our_role=h11.CLIENT, + max_incomplete_event_size=self.MAX_INCOMPLETE_EVENT_SIZE, + ) + + async def handle_async_request(self, request: Request) -> Response: + if not self.can_handle_request(request.url.origin): + raise RuntimeError( + f"Attempted to send request to {request.url.origin} on connection " + f"to {self._origin}" + ) + + async with self._state_lock: + if self._state in (HTTPConnectionState.NEW, HTTPConnectionState.IDLE): + self._request_count += 1 + self._state = HTTPConnectionState.ACTIVE + self._expire_at = None + else: + raise ConnectionNotAvailable() + + try: + kwargs = {"request": request} + try: + async with Trace( + "send_request_headers", logger, request, kwargs + ) as trace: + await self._send_request_headers(**kwargs) + async with Trace("send_request_body", logger, request, kwargs) as trace: + await self._send_request_body(**kwargs) + except WriteError: + # If we get a write error while we're writing the request, + # then we supress this error and move on to attempting to + # read the response. Servers can sometimes close the request + # pre-emptively and then respond with a well formed HTTP + # error response. + pass + + async with Trace( + "receive_response_headers", logger, request, kwargs + ) as trace: + ( + http_version, + status, + reason_phrase, + headers, + trailing_data, + ) = await self._receive_response_headers(**kwargs) + trace.return_value = ( + http_version, + status, + reason_phrase, + headers, + ) + + network_stream = self._network_stream + + # CONNECT or Upgrade request + if (status == 101) or ( + (request.method == b"CONNECT") and (200 <= status < 300) + ): + network_stream = AsyncHTTP11UpgradeStream(network_stream, trailing_data) + + return Response( + status=status, + headers=headers, + content=HTTP11ConnectionByteStream(self, request), + extensions={ + "http_version": http_version, + "reason_phrase": reason_phrase, + "network_stream": network_stream, + }, + ) + except BaseException as exc: + with AsyncShieldCancellation(): + async with Trace("response_closed", logger, request) as trace: + await self._response_closed() + raise exc + + # Sending the request... + + async def _send_request_headers(self, request: Request) -> None: + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("write", None) + + with map_exceptions({h11.LocalProtocolError: LocalProtocolError}): + event = h11.Request( + method=request.method, + target=request.url.target, + headers=request.headers, + ) + await self._send_event(event, timeout=timeout) + + async def _send_request_body(self, request: Request) -> None: + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("write", None) + + assert isinstance(request.stream, typing.AsyncIterable) + async for chunk in request.stream: + event = h11.Data(data=chunk) + await self._send_event(event, timeout=timeout) + + await self._send_event(h11.EndOfMessage(), timeout=timeout) + + async def _send_event(self, event: h11.Event, timeout: float | None = None) -> None: + bytes_to_send = self._h11_state.send(event) + if bytes_to_send is not None: + await self._network_stream.write(bytes_to_send, timeout=timeout) + + # Receiving the response... + + async def _receive_response_headers( + self, request: Request + ) -> tuple[bytes, int, bytes, list[tuple[bytes, bytes]], bytes]: + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("read", None) + + while True: + event = await self._receive_event(timeout=timeout) + if isinstance(event, h11.Response): + break + if ( + isinstance(event, h11.InformationalResponse) + and event.status_code == 101 + ): + break + + http_version = b"HTTP/" + event.http_version + + # h11 version 0.11+ supports a `raw_items` interface to get the + # raw header casing, rather than the enforced lowercase headers. + headers = event.headers.raw_items() + + trailing_data, _ = self._h11_state.trailing_data + + return http_version, event.status_code, event.reason, headers, trailing_data + + async def _receive_response_body( + self, request: Request + ) -> typing.AsyncIterator[bytes]: + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("read", None) + + while True: + event = await self._receive_event(timeout=timeout) + if isinstance(event, h11.Data): + yield bytes(event.data) + elif isinstance(event, (h11.EndOfMessage, h11.PAUSED)): + break + + async def _receive_event( + self, timeout: float | None = None + ) -> h11.Event | type[h11.PAUSED]: + while True: + with map_exceptions({h11.RemoteProtocolError: RemoteProtocolError}): + event = self._h11_state.next_event() + + if event is h11.NEED_DATA: + data = await self._network_stream.read( + self.READ_NUM_BYTES, timeout=timeout + ) + + # If we feed this case through h11 we'll raise an exception like: + # + # httpcore.RemoteProtocolError: can't handle event type + # ConnectionClosed when role=SERVER and state=SEND_RESPONSE + # + # Which is accurate, but not very informative from an end-user + # perspective. Instead we handle this case distinctly and treat + # it as a ConnectError. + if data == b"" and self._h11_state.their_state == h11.SEND_RESPONSE: + msg = "Server disconnected without sending a response." + raise RemoteProtocolError(msg) + + self._h11_state.receive_data(data) + else: + # mypy fails to narrow the type in the above if statement above + return event # type: ignore[return-value] + + async def _response_closed(self) -> None: + async with self._state_lock: + if ( + self._h11_state.our_state is h11.DONE + and self._h11_state.their_state is h11.DONE + ): + self._state = HTTPConnectionState.IDLE + self._h11_state.start_next_cycle() + if self._keepalive_expiry is not None: + now = time.monotonic() + self._expire_at = now + self._keepalive_expiry + else: + await self.aclose() + + # Once the connection is no longer required... + + async def aclose(self) -> None: + # Note that this method unilaterally closes the connection, and does + # not have any kind of locking in place around it. + self._state = HTTPConnectionState.CLOSED + await self._network_stream.aclose() + + # The AsyncConnectionInterface methods provide information about the state of + # the connection, allowing for a connection pooling implementation to + # determine when to reuse and when to close the connection... + + def can_handle_request(self, origin: Origin) -> bool: + return origin == self._origin + + def is_available(self) -> bool: + # Note that HTTP/1.1 connections in the "NEW" state are not treated as + # being "available". The control flow which created the connection will + # be able to send an outgoing request, but the connection will not be + # acquired from the connection pool for any other request. + return self._state == HTTPConnectionState.IDLE + + def has_expired(self) -> bool: + now = time.monotonic() + keepalive_expired = self._expire_at is not None and now > self._expire_at + + # If the HTTP connection is idle but the socket is readable, then the + # only valid state is that the socket is about to return b"", indicating + # a server-initiated disconnect. + server_disconnected = ( + self._state == HTTPConnectionState.IDLE + and self._network_stream.get_extra_info("is_readable") + ) + + return keepalive_expired or server_disconnected + + def is_idle(self) -> bool: + return self._state == HTTPConnectionState.IDLE + + def is_closed(self) -> bool: + return self._state == HTTPConnectionState.CLOSED + + def info(self) -> str: + origin = str(self._origin) + return ( + f"{origin!r}, HTTP/1.1, {self._state.name}, " + f"Request Count: {self._request_count}" + ) + + def __repr__(self) -> str: + class_name = self.__class__.__name__ + origin = str(self._origin) + return ( + f"<{class_name} [{origin!r}, {self._state.name}, " + f"Request Count: {self._request_count}]>" + ) + + # These context managers are not used in the standard flow, but are + # useful for testing or working with connection instances directly. + + async def __aenter__(self) -> AsyncHTTP11Connection: + return self + + async def __aexit__( + self, + exc_type: type[BaseException] | None = None, + exc_value: BaseException | None = None, + traceback: types.TracebackType | None = None, + ) -> None: + await self.aclose() + + +class HTTP11ConnectionByteStream: + def __init__(self, connection: AsyncHTTP11Connection, request: Request) -> None: + self._connection = connection + self._request = request + self._closed = False + + async def __aiter__(self) -> typing.AsyncIterator[bytes]: + kwargs = {"request": self._request} + try: + async with Trace("receive_response_body", logger, self._request, kwargs): + async for chunk in self._connection._receive_response_body(**kwargs): + yield chunk + except BaseException as exc: + # If we get an exception while streaming the response, + # we want to close the response (and possibly the connection) + # before raising that exception. + with AsyncShieldCancellation(): + await self.aclose() + raise exc + + async def aclose(self) -> None: + if not self._closed: + self._closed = True + async with Trace("response_closed", logger, self._request): + await self._connection._response_closed() + + +class AsyncHTTP11UpgradeStream(AsyncNetworkStream): + def __init__(self, stream: AsyncNetworkStream, leading_data: bytes) -> None: + self._stream = stream + self._leading_data = leading_data + + async def read(self, max_bytes: int, timeout: float | None = None) -> bytes: + if self._leading_data: + buffer = self._leading_data[:max_bytes] + self._leading_data = self._leading_data[max_bytes:] + return buffer + else: + return await self._stream.read(max_bytes, timeout) + + async def write(self, buffer: bytes, timeout: float | None = None) -> None: + await self._stream.write(buffer, timeout) + + async def aclose(self) -> None: + await self._stream.aclose() + + async def start_tls( + self, + ssl_context: ssl.SSLContext, + server_hostname: str | None = None, + timeout: float | None = None, + ) -> AsyncNetworkStream: + return await self._stream.start_tls(ssl_context, server_hostname, timeout) + + def get_extra_info(self, info: str) -> typing.Any: + return self._stream.get_extra_info(info) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http2.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http2.py new file mode 100644 index 0000000000000000000000000000000000000000..dbd0beeb4da32d8c0175d412fa442eae8f837723 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http2.py @@ -0,0 +1,592 @@ +from __future__ import annotations + +import enum +import logging +import time +import types +import typing + +import h2.config +import h2.connection +import h2.events +import h2.exceptions +import h2.settings + +from .._backends.base import AsyncNetworkStream +from .._exceptions import ( + ConnectionNotAvailable, + LocalProtocolError, + RemoteProtocolError, +) +from .._models import Origin, Request, Response +from .._synchronization import AsyncLock, AsyncSemaphore, AsyncShieldCancellation +from .._trace import Trace +from .interfaces import AsyncConnectionInterface + +logger = logging.getLogger("httpcore.http2") + + +def has_body_headers(request: Request) -> bool: + return any( + k.lower() == b"content-length" or k.lower() == b"transfer-encoding" + for k, v in request.headers + ) + + +class HTTPConnectionState(enum.IntEnum): + ACTIVE = 1 + IDLE = 2 + CLOSED = 3 + + +class AsyncHTTP2Connection(AsyncConnectionInterface): + READ_NUM_BYTES = 64 * 1024 + CONFIG = h2.config.H2Configuration(validate_inbound_headers=False) + + def __init__( + self, + origin: Origin, + stream: AsyncNetworkStream, + keepalive_expiry: float | None = None, + ): + self._origin = origin + self._network_stream = stream + self._keepalive_expiry: float | None = keepalive_expiry + self._h2_state = h2.connection.H2Connection(config=self.CONFIG) + self._state = HTTPConnectionState.IDLE + self._expire_at: float | None = None + self._request_count = 0 + self._init_lock = AsyncLock() + self._state_lock = AsyncLock() + self._read_lock = AsyncLock() + self._write_lock = AsyncLock() + self._sent_connection_init = False + self._used_all_stream_ids = False + self._connection_error = False + + # Mapping from stream ID to response stream events. + self._events: dict[ + int, + list[ + h2.events.ResponseReceived + | h2.events.DataReceived + | h2.events.StreamEnded + | h2.events.StreamReset, + ], + ] = {} + + # Connection terminated events are stored as state since + # we need to handle them for all streams. + self._connection_terminated: h2.events.ConnectionTerminated | None = None + + self._read_exception: Exception | None = None + self._write_exception: Exception | None = None + + async def handle_async_request(self, request: Request) -> Response: + if not self.can_handle_request(request.url.origin): + # This cannot occur in normal operation, since the connection pool + # will only send requests on connections that handle them. + # It's in place simply for resilience as a guard against incorrect + # usage, for anyone working directly with httpcore connections. + raise RuntimeError( + f"Attempted to send request to {request.url.origin} on connection " + f"to {self._origin}" + ) + + async with self._state_lock: + if self._state in (HTTPConnectionState.ACTIVE, HTTPConnectionState.IDLE): + self._request_count += 1 + self._expire_at = None + self._state = HTTPConnectionState.ACTIVE + else: + raise ConnectionNotAvailable() + + async with self._init_lock: + if not self._sent_connection_init: + try: + sci_kwargs = {"request": request} + async with Trace( + "send_connection_init", logger, request, sci_kwargs + ): + await self._send_connection_init(**sci_kwargs) + except BaseException as exc: + with AsyncShieldCancellation(): + await self.aclose() + raise exc + + self._sent_connection_init = True + + # Initially start with just 1 until the remote server provides + # its max_concurrent_streams value + self._max_streams = 1 + + local_settings_max_streams = ( + self._h2_state.local_settings.max_concurrent_streams + ) + self._max_streams_semaphore = AsyncSemaphore(local_settings_max_streams) + + for _ in range(local_settings_max_streams - self._max_streams): + await self._max_streams_semaphore.acquire() + + await self._max_streams_semaphore.acquire() + + try: + stream_id = self._h2_state.get_next_available_stream_id() + self._events[stream_id] = [] + except h2.exceptions.NoAvailableStreamIDError: # pragma: nocover + self._used_all_stream_ids = True + self._request_count -= 1 + raise ConnectionNotAvailable() + + try: + kwargs = {"request": request, "stream_id": stream_id} + async with Trace("send_request_headers", logger, request, kwargs): + await self._send_request_headers(request=request, stream_id=stream_id) + async with Trace("send_request_body", logger, request, kwargs): + await self._send_request_body(request=request, stream_id=stream_id) + async with Trace( + "receive_response_headers", logger, request, kwargs + ) as trace: + status, headers = await self._receive_response( + request=request, stream_id=stream_id + ) + trace.return_value = (status, headers) + + return Response( + status=status, + headers=headers, + content=HTTP2ConnectionByteStream(self, request, stream_id=stream_id), + extensions={ + "http_version": b"HTTP/2", + "network_stream": self._network_stream, + "stream_id": stream_id, + }, + ) + except BaseException as exc: # noqa: PIE786 + with AsyncShieldCancellation(): + kwargs = {"stream_id": stream_id} + async with Trace("response_closed", logger, request, kwargs): + await self._response_closed(stream_id=stream_id) + + if isinstance(exc, h2.exceptions.ProtocolError): + # One case where h2 can raise a protocol error is when a + # closed frame has been seen by the state machine. + # + # This happens when one stream is reading, and encounters + # a GOAWAY event. Other flows of control may then raise + # a protocol error at any point they interact with the 'h2_state'. + # + # In this case we'll have stored the event, and should raise + # it as a RemoteProtocolError. + if self._connection_terminated: # pragma: nocover + raise RemoteProtocolError(self._connection_terminated) + # If h2 raises a protocol error in some other state then we + # must somehow have made a protocol violation. + raise LocalProtocolError(exc) # pragma: nocover + + raise exc + + async def _send_connection_init(self, request: Request) -> None: + """ + The HTTP/2 connection requires some initial setup before we can start + using individual request/response streams on it. + """ + # Need to set these manually here instead of manipulating via + # __setitem__() otherwise the H2Connection will emit SettingsUpdate + # frames in addition to sending the undesired defaults. + self._h2_state.local_settings = h2.settings.Settings( + client=True, + initial_values={ + # Disable PUSH_PROMISE frames from the server since we don't do anything + # with them for now. Maybe when we support caching? + h2.settings.SettingCodes.ENABLE_PUSH: 0, + # These two are taken from h2 for safe defaults + h2.settings.SettingCodes.MAX_CONCURRENT_STREAMS: 100, + h2.settings.SettingCodes.MAX_HEADER_LIST_SIZE: 65536, + }, + ) + + # Some websites (*cough* Yahoo *cough*) balk at this setting being + # present in the initial handshake since it's not defined in the original + # RFC despite the RFC mandating ignoring settings you don't know about. + del self._h2_state.local_settings[ + h2.settings.SettingCodes.ENABLE_CONNECT_PROTOCOL + ] + + self._h2_state.initiate_connection() + self._h2_state.increment_flow_control_window(2**24) + await self._write_outgoing_data(request) + + # Sending the request... + + async def _send_request_headers(self, request: Request, stream_id: int) -> None: + """ + Send the request headers to a given stream ID. + """ + end_stream = not has_body_headers(request) + + # In HTTP/2 the ':authority' pseudo-header is used instead of 'Host'. + # In order to gracefully handle HTTP/1.1 and HTTP/2 we always require + # HTTP/1.1 style headers, and map them appropriately if we end up on + # an HTTP/2 connection. + authority = [v for k, v in request.headers if k.lower() == b"host"][0] + + headers = [ + (b":method", request.method), + (b":authority", authority), + (b":scheme", request.url.scheme), + (b":path", request.url.target), + ] + [ + (k.lower(), v) + for k, v in request.headers + if k.lower() + not in ( + b"host", + b"transfer-encoding", + ) + ] + + self._h2_state.send_headers(stream_id, headers, end_stream=end_stream) + self._h2_state.increment_flow_control_window(2**24, stream_id=stream_id) + await self._write_outgoing_data(request) + + async def _send_request_body(self, request: Request, stream_id: int) -> None: + """ + Iterate over the request body sending it to a given stream ID. + """ + if not has_body_headers(request): + return + + assert isinstance(request.stream, typing.AsyncIterable) + async for data in request.stream: + await self._send_stream_data(request, stream_id, data) + await self._send_end_stream(request, stream_id) + + async def _send_stream_data( + self, request: Request, stream_id: int, data: bytes + ) -> None: + """ + Send a single chunk of data in one or more data frames. + """ + while data: + max_flow = await self._wait_for_outgoing_flow(request, stream_id) + chunk_size = min(len(data), max_flow) + chunk, data = data[:chunk_size], data[chunk_size:] + self._h2_state.send_data(stream_id, chunk) + await self._write_outgoing_data(request) + + async def _send_end_stream(self, request: Request, stream_id: int) -> None: + """ + Send an empty data frame on on a given stream ID with the END_STREAM flag set. + """ + self._h2_state.end_stream(stream_id) + await self._write_outgoing_data(request) + + # Receiving the response... + + async def _receive_response( + self, request: Request, stream_id: int + ) -> tuple[int, list[tuple[bytes, bytes]]]: + """ + Return the response status code and headers for a given stream ID. + """ + while True: + event = await self._receive_stream_event(request, stream_id) + if isinstance(event, h2.events.ResponseReceived): + break + + status_code = 200 + headers = [] + assert event.headers is not None + for k, v in event.headers: + if k == b":status": + status_code = int(v.decode("ascii", errors="ignore")) + elif not k.startswith(b":"): + headers.append((k, v)) + + return (status_code, headers) + + async def _receive_response_body( + self, request: Request, stream_id: int + ) -> typing.AsyncIterator[bytes]: + """ + Iterator that returns the bytes of the response body for a given stream ID. + """ + while True: + event = await self._receive_stream_event(request, stream_id) + if isinstance(event, h2.events.DataReceived): + assert event.flow_controlled_length is not None + assert event.data is not None + amount = event.flow_controlled_length + self._h2_state.acknowledge_received_data(amount, stream_id) + await self._write_outgoing_data(request) + yield event.data + elif isinstance(event, h2.events.StreamEnded): + break + + async def _receive_stream_event( + self, request: Request, stream_id: int + ) -> h2.events.ResponseReceived | h2.events.DataReceived | h2.events.StreamEnded: + """ + Return the next available event for a given stream ID. + + Will read more data from the network if required. + """ + while not self._events.get(stream_id): + await self._receive_events(request, stream_id) + event = self._events[stream_id].pop(0) + if isinstance(event, h2.events.StreamReset): + raise RemoteProtocolError(event) + return event + + async def _receive_events( + self, request: Request, stream_id: int | None = None + ) -> None: + """ + Read some data from the network until we see one or more events + for a given stream ID. + """ + async with self._read_lock: + if self._connection_terminated is not None: + last_stream_id = self._connection_terminated.last_stream_id + if stream_id and last_stream_id and stream_id > last_stream_id: + self._request_count -= 1 + raise ConnectionNotAvailable() + raise RemoteProtocolError(self._connection_terminated) + + # This conditional is a bit icky. We don't want to block reading if we've + # actually got an event to return for a given stream. We need to do that + # check *within* the atomic read lock. Though it also need to be optional, + # because when we call it from `_wait_for_outgoing_flow` we *do* want to + # block until we've available flow control, event when we have events + # pending for the stream ID we're attempting to send on. + if stream_id is None or not self._events.get(stream_id): + events = await self._read_incoming_data(request) + for event in events: + if isinstance(event, h2.events.RemoteSettingsChanged): + async with Trace( + "receive_remote_settings", logger, request + ) as trace: + await self._receive_remote_settings_change(event) + trace.return_value = event + + elif isinstance( + event, + ( + h2.events.ResponseReceived, + h2.events.DataReceived, + h2.events.StreamEnded, + h2.events.StreamReset, + ), + ): + if event.stream_id in self._events: + self._events[event.stream_id].append(event) + + elif isinstance(event, h2.events.ConnectionTerminated): + self._connection_terminated = event + + await self._write_outgoing_data(request) + + async def _receive_remote_settings_change( + self, event: h2.events.RemoteSettingsChanged + ) -> None: + max_concurrent_streams = event.changed_settings.get( + h2.settings.SettingCodes.MAX_CONCURRENT_STREAMS + ) + if max_concurrent_streams: + new_max_streams = min( + max_concurrent_streams.new_value, + self._h2_state.local_settings.max_concurrent_streams, + ) + if new_max_streams and new_max_streams != self._max_streams: + while new_max_streams > self._max_streams: + await self._max_streams_semaphore.release() + self._max_streams += 1 + while new_max_streams < self._max_streams: + await self._max_streams_semaphore.acquire() + self._max_streams -= 1 + + async def _response_closed(self, stream_id: int) -> None: + await self._max_streams_semaphore.release() + del self._events[stream_id] + async with self._state_lock: + if self._connection_terminated and not self._events: + await self.aclose() + + elif self._state == HTTPConnectionState.ACTIVE and not self._events: + self._state = HTTPConnectionState.IDLE + if self._keepalive_expiry is not None: + now = time.monotonic() + self._expire_at = now + self._keepalive_expiry + if self._used_all_stream_ids: # pragma: nocover + await self.aclose() + + async def aclose(self) -> None: + # Note that this method unilaterally closes the connection, and does + # not have any kind of locking in place around it. + self._h2_state.close_connection() + self._state = HTTPConnectionState.CLOSED + await self._network_stream.aclose() + + # Wrappers around network read/write operations... + + async def _read_incoming_data(self, request: Request) -> list[h2.events.Event]: + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("read", None) + + if self._read_exception is not None: + raise self._read_exception # pragma: nocover + + try: + data = await self._network_stream.read(self.READ_NUM_BYTES, timeout) + if data == b"": + raise RemoteProtocolError("Server disconnected") + except Exception as exc: + # If we get a network error we should: + # + # 1. Save the exception and just raise it immediately on any future reads. + # (For example, this means that a single read timeout or disconnect will + # immediately close all pending streams. Without requiring multiple + # sequential timeouts.) + # 2. Mark the connection as errored, so that we don't accept any other + # incoming requests. + self._read_exception = exc + self._connection_error = True + raise exc + + events: list[h2.events.Event] = self._h2_state.receive_data(data) + + return events + + async def _write_outgoing_data(self, request: Request) -> None: + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("write", None) + + async with self._write_lock: + data_to_send = self._h2_state.data_to_send() + + if self._write_exception is not None: + raise self._write_exception # pragma: nocover + + try: + await self._network_stream.write(data_to_send, timeout) + except Exception as exc: # pragma: nocover + # If we get a network error we should: + # + # 1. Save the exception and just raise it immediately on any future write. + # (For example, this means that a single write timeout or disconnect will + # immediately close all pending streams. Without requiring multiple + # sequential timeouts.) + # 2. Mark the connection as errored, so that we don't accept any other + # incoming requests. + self._write_exception = exc + self._connection_error = True + raise exc + + # Flow control... + + async def _wait_for_outgoing_flow(self, request: Request, stream_id: int) -> int: + """ + Returns the maximum allowable outgoing flow for a given stream. + + If the allowable flow is zero, then waits on the network until + WindowUpdated frames have increased the flow rate. + https://tools.ietf.org/html/rfc7540#section-6.9 + """ + local_flow: int = self._h2_state.local_flow_control_window(stream_id) + max_frame_size: int = self._h2_state.max_outbound_frame_size + flow = min(local_flow, max_frame_size) + while flow == 0: + await self._receive_events(request) + local_flow = self._h2_state.local_flow_control_window(stream_id) + max_frame_size = self._h2_state.max_outbound_frame_size + flow = min(local_flow, max_frame_size) + return flow + + # Interface for connection pooling... + + def can_handle_request(self, origin: Origin) -> bool: + return origin == self._origin + + def is_available(self) -> bool: + return ( + self._state != HTTPConnectionState.CLOSED + and not self._connection_error + and not self._used_all_stream_ids + and not ( + self._h2_state.state_machine.state + == h2.connection.ConnectionState.CLOSED + ) + ) + + def has_expired(self) -> bool: + now = time.monotonic() + return self._expire_at is not None and now > self._expire_at + + def is_idle(self) -> bool: + return self._state == HTTPConnectionState.IDLE + + def is_closed(self) -> bool: + return self._state == HTTPConnectionState.CLOSED + + def info(self) -> str: + origin = str(self._origin) + return ( + f"{origin!r}, HTTP/2, {self._state.name}, " + f"Request Count: {self._request_count}" + ) + + def __repr__(self) -> str: + class_name = self.__class__.__name__ + origin = str(self._origin) + return ( + f"<{class_name} [{origin!r}, {self._state.name}, " + f"Request Count: {self._request_count}]>" + ) + + # These context managers are not used in the standard flow, but are + # useful for testing or working with connection instances directly. + + async def __aenter__(self) -> AsyncHTTP2Connection: + return self + + async def __aexit__( + self, + exc_type: type[BaseException] | None = None, + exc_value: BaseException | None = None, + traceback: types.TracebackType | None = None, + ) -> None: + await self.aclose() + + +class HTTP2ConnectionByteStream: + def __init__( + self, connection: AsyncHTTP2Connection, request: Request, stream_id: int + ) -> None: + self._connection = connection + self._request = request + self._stream_id = stream_id + self._closed = False + + async def __aiter__(self) -> typing.AsyncIterator[bytes]: + kwargs = {"request": self._request, "stream_id": self._stream_id} + try: + async with Trace("receive_response_body", logger, self._request, kwargs): + async for chunk in self._connection._receive_response_body( + request=self._request, stream_id=self._stream_id + ): + yield chunk + except BaseException as exc: + # If we get an exception while streaming the response, + # we want to close the response (and possibly the connection) + # before raising that exception. + with AsyncShieldCancellation(): + await self.aclose() + raise exc + + async def aclose(self) -> None: + if not self._closed: + self._closed = True + kwargs = {"stream_id": self._stream_id} + async with Trace("response_closed", logger, self._request, kwargs): + await self._connection._response_closed(stream_id=self._stream_id) diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http_proxy.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http_proxy.py new file mode 100644 index 0000000000000000000000000000000000000000..cc9d92066e1680576846e46ccdf645a2b1dd5718 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/http_proxy.py @@ -0,0 +1,367 @@ +from __future__ import annotations + +import base64 +import logging +import ssl +import typing + +from .._backends.base import SOCKET_OPTION, AsyncNetworkBackend +from .._exceptions import ProxyError +from .._models import ( + URL, + Origin, + Request, + Response, + enforce_bytes, + enforce_headers, + enforce_url, +) +from .._ssl import default_ssl_context +from .._synchronization import AsyncLock +from .._trace import Trace +from .connection import AsyncHTTPConnection +from .connection_pool import AsyncConnectionPool +from .http11 import AsyncHTTP11Connection +from .interfaces import AsyncConnectionInterface + +ByteOrStr = typing.Union[bytes, str] +HeadersAsSequence = typing.Sequence[typing.Tuple[ByteOrStr, ByteOrStr]] +HeadersAsMapping = typing.Mapping[ByteOrStr, ByteOrStr] + + +logger = logging.getLogger("httpcore.proxy") + + +def merge_headers( + default_headers: typing.Sequence[tuple[bytes, bytes]] | None = None, + override_headers: typing.Sequence[tuple[bytes, bytes]] | None = None, +) -> list[tuple[bytes, bytes]]: + """ + Append default_headers and override_headers, de-duplicating if a key exists + in both cases. + """ + default_headers = [] if default_headers is None else list(default_headers) + override_headers = [] if override_headers is None else list(override_headers) + has_override = set(key.lower() for key, value in override_headers) + default_headers = [ + (key, value) + for key, value in default_headers + if key.lower() not in has_override + ] + return default_headers + override_headers + + +class AsyncHTTPProxy(AsyncConnectionPool): # pragma: nocover + """ + A connection pool that sends requests via an HTTP proxy. + """ + + def __init__( + self, + proxy_url: URL | bytes | str, + proxy_auth: tuple[bytes | str, bytes | str] | None = None, + proxy_headers: HeadersAsMapping | HeadersAsSequence | None = None, + ssl_context: ssl.SSLContext | None = None, + proxy_ssl_context: ssl.SSLContext | None = None, + max_connections: int | None = 10, + max_keepalive_connections: int | None = None, + keepalive_expiry: float | None = None, + http1: bool = True, + http2: bool = False, + retries: int = 0, + local_address: str | None = None, + uds: str | None = None, + network_backend: AsyncNetworkBackend | None = None, + socket_options: typing.Iterable[SOCKET_OPTION] | None = None, + ) -> None: + """ + A connection pool for making HTTP requests. + + Parameters: + proxy_url: The URL to use when connecting to the proxy server. + For example `"http://127.0.0.1:8080/"`. + proxy_auth: Any proxy authentication as a two-tuple of + (username, password). May be either bytes or ascii-only str. + proxy_headers: Any HTTP headers to use for the proxy requests. + For example `{"Proxy-Authorization": "Basic :"}`. + ssl_context: An SSL context to use for verifying connections. + If not specified, the default `httpcore.default_ssl_context()` + will be used. + proxy_ssl_context: The same as `ssl_context`, but for a proxy server rather than a remote origin. + max_connections: The maximum number of concurrent HTTP connections that + the pool should allow. Any attempt to send a request on a pool that + would exceed this amount will block until a connection is available. + max_keepalive_connections: The maximum number of idle HTTP connections + that will be maintained in the pool. + keepalive_expiry: The duration in seconds that an idle HTTP connection + may be maintained for before being expired from the pool. + http1: A boolean indicating if HTTP/1.1 requests should be supported + by the connection pool. Defaults to True. + http2: A boolean indicating if HTTP/2 requests should be supported by + the connection pool. Defaults to False. + retries: The maximum number of retries when trying to establish + a connection. + local_address: Local address to connect from. Can also be used to + connect using a particular address family. Using + `local_address="0.0.0.0"` will connect using an `AF_INET` address + (IPv4), while using `local_address="::"` will connect using an + `AF_INET6` address (IPv6). + uds: Path to a Unix Domain Socket to use instead of TCP sockets. + network_backend: A backend instance to use for handling network I/O. + """ + super().__init__( + ssl_context=ssl_context, + max_connections=max_connections, + max_keepalive_connections=max_keepalive_connections, + keepalive_expiry=keepalive_expiry, + http1=http1, + http2=http2, + network_backend=network_backend, + retries=retries, + local_address=local_address, + uds=uds, + socket_options=socket_options, + ) + + self._proxy_url = enforce_url(proxy_url, name="proxy_url") + if ( + self._proxy_url.scheme == b"http" and proxy_ssl_context is not None + ): # pragma: no cover + raise RuntimeError( + "The `proxy_ssl_context` argument is not allowed for the http scheme" + ) + + self._ssl_context = ssl_context + self._proxy_ssl_context = proxy_ssl_context + self._proxy_headers = enforce_headers(proxy_headers, name="proxy_headers") + if proxy_auth is not None: + username = enforce_bytes(proxy_auth[0], name="proxy_auth") + password = enforce_bytes(proxy_auth[1], name="proxy_auth") + userpass = username + b":" + password + authorization = b"Basic " + base64.b64encode(userpass) + self._proxy_headers = [ + (b"Proxy-Authorization", authorization) + ] + self._proxy_headers + + def create_connection(self, origin: Origin) -> AsyncConnectionInterface: + if origin.scheme == b"http": + return AsyncForwardHTTPConnection( + proxy_origin=self._proxy_url.origin, + proxy_headers=self._proxy_headers, + remote_origin=origin, + keepalive_expiry=self._keepalive_expiry, + network_backend=self._network_backend, + proxy_ssl_context=self._proxy_ssl_context, + ) + return AsyncTunnelHTTPConnection( + proxy_origin=self._proxy_url.origin, + proxy_headers=self._proxy_headers, + remote_origin=origin, + ssl_context=self._ssl_context, + proxy_ssl_context=self._proxy_ssl_context, + keepalive_expiry=self._keepalive_expiry, + http1=self._http1, + http2=self._http2, + network_backend=self._network_backend, + ) + + +class AsyncForwardHTTPConnection(AsyncConnectionInterface): + def __init__( + self, + proxy_origin: Origin, + remote_origin: Origin, + proxy_headers: HeadersAsMapping | HeadersAsSequence | None = None, + keepalive_expiry: float | None = None, + network_backend: AsyncNetworkBackend | None = None, + socket_options: typing.Iterable[SOCKET_OPTION] | None = None, + proxy_ssl_context: ssl.SSLContext | None = None, + ) -> None: + self._connection = AsyncHTTPConnection( + origin=proxy_origin, + keepalive_expiry=keepalive_expiry, + network_backend=network_backend, + socket_options=socket_options, + ssl_context=proxy_ssl_context, + ) + self._proxy_origin = proxy_origin + self._proxy_headers = enforce_headers(proxy_headers, name="proxy_headers") + self._remote_origin = remote_origin + + async def handle_async_request(self, request: Request) -> Response: + headers = merge_headers(self._proxy_headers, request.headers) + url = URL( + scheme=self._proxy_origin.scheme, + host=self._proxy_origin.host, + port=self._proxy_origin.port, + target=bytes(request.url), + ) + proxy_request = Request( + method=request.method, + url=url, + headers=headers, + content=request.stream, + extensions=request.extensions, + ) + return await self._connection.handle_async_request(proxy_request) + + def can_handle_request(self, origin: Origin) -> bool: + return origin == self._remote_origin + + async def aclose(self) -> None: + await self._connection.aclose() + + def info(self) -> str: + return self._connection.info() + + def is_available(self) -> bool: + return self._connection.is_available() + + def has_expired(self) -> bool: + return self._connection.has_expired() + + def is_idle(self) -> bool: + return self._connection.is_idle() + + def is_closed(self) -> bool: + return self._connection.is_closed() + + def __repr__(self) -> str: + return f"<{self.__class__.__name__} [{self.info()}]>" + + +class AsyncTunnelHTTPConnection(AsyncConnectionInterface): + def __init__( + self, + proxy_origin: Origin, + remote_origin: Origin, + ssl_context: ssl.SSLContext | None = None, + proxy_ssl_context: ssl.SSLContext | None = None, + proxy_headers: typing.Sequence[tuple[bytes, bytes]] | None = None, + keepalive_expiry: float | None = None, + http1: bool = True, + http2: bool = False, + network_backend: AsyncNetworkBackend | None = None, + socket_options: typing.Iterable[SOCKET_OPTION] | None = None, + ) -> None: + self._connection: AsyncConnectionInterface = AsyncHTTPConnection( + origin=proxy_origin, + keepalive_expiry=keepalive_expiry, + network_backend=network_backend, + socket_options=socket_options, + ssl_context=proxy_ssl_context, + ) + self._proxy_origin = proxy_origin + self._remote_origin = remote_origin + self._ssl_context = ssl_context + self._proxy_ssl_context = proxy_ssl_context + self._proxy_headers = enforce_headers(proxy_headers, name="proxy_headers") + self._keepalive_expiry = keepalive_expiry + self._http1 = http1 + self._http2 = http2 + self._connect_lock = AsyncLock() + self._connected = False + + async def handle_async_request(self, request: Request) -> Response: + timeouts = request.extensions.get("timeout", {}) + timeout = timeouts.get("connect", None) + + async with self._connect_lock: + if not self._connected: + target = b"%b:%d" % (self._remote_origin.host, self._remote_origin.port) + + connect_url = URL( + scheme=self._proxy_origin.scheme, + host=self._proxy_origin.host, + port=self._proxy_origin.port, + target=target, + ) + connect_headers = merge_headers( + [(b"Host", target), (b"Accept", b"*/*")], self._proxy_headers + ) + connect_request = Request( + method=b"CONNECT", + url=connect_url, + headers=connect_headers, + extensions=request.extensions, + ) + connect_response = await self._connection.handle_async_request( + connect_request + ) + + if connect_response.status < 200 or connect_response.status > 299: + reason_bytes = connect_response.extensions.get("reason_phrase", b"") + reason_str = reason_bytes.decode("ascii", errors="ignore") + msg = "%d %s" % (connect_response.status, reason_str) + await self._connection.aclose() + raise ProxyError(msg) + + stream = connect_response.extensions["network_stream"] + + # Upgrade the stream to SSL + ssl_context = ( + default_ssl_context() + if self._ssl_context is None + else self._ssl_context + ) + alpn_protocols = ["http/1.1", "h2"] if self._http2 else ["http/1.1"] + ssl_context.set_alpn_protocols(alpn_protocols) + + kwargs = { + "ssl_context": ssl_context, + "server_hostname": self._remote_origin.host.decode("ascii"), + "timeout": timeout, + } + async with Trace("start_tls", logger, request, kwargs) as trace: + stream = await stream.start_tls(**kwargs) + trace.return_value = stream + + # Determine if we should be using HTTP/1.1 or HTTP/2 + ssl_object = stream.get_extra_info("ssl_object") + http2_negotiated = ( + ssl_object is not None + and ssl_object.selected_alpn_protocol() == "h2" + ) + + # Create the HTTP/1.1 or HTTP/2 connection + if http2_negotiated or (self._http2 and not self._http1): + from .http2 import AsyncHTTP2Connection + + self._connection = AsyncHTTP2Connection( + origin=self._remote_origin, + stream=stream, + keepalive_expiry=self._keepalive_expiry, + ) + else: + self._connection = AsyncHTTP11Connection( + origin=self._remote_origin, + stream=stream, + keepalive_expiry=self._keepalive_expiry, + ) + + self._connected = True + return await self._connection.handle_async_request(request) + + def can_handle_request(self, origin: Origin) -> bool: + return origin == self._remote_origin + + async def aclose(self) -> None: + await self._connection.aclose() + + def info(self) -> str: + return self._connection.info() + + def is_available(self) -> bool: + return self._connection.is_available() + + def has_expired(self) -> bool: + return self._connection.has_expired() + + def is_idle(self) -> bool: + return self._connection.is_idle() + + def is_closed(self) -> bool: + return self._connection.is_closed() + + def __repr__(self) -> str: + return f"<{self.__class__.__name__} [{self.info()}]>" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/interfaces.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/interfaces.py new file mode 100644 index 0000000000000000000000000000000000000000..361583bede6b2b84088b38054d5d8116ef9f1597 --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/interfaces.py @@ -0,0 +1,137 @@ +from __future__ import annotations + +import contextlib +import typing + +from .._models import ( + URL, + Extensions, + HeaderTypes, + Origin, + Request, + Response, + enforce_bytes, + enforce_headers, + enforce_url, + include_request_headers, +) + + +class AsyncRequestInterface: + async def request( + self, + method: bytes | str, + url: URL | bytes | str, + *, + headers: HeaderTypes = None, + content: bytes | typing.AsyncIterator[bytes] | None = None, + extensions: Extensions | None = None, + ) -> Response: + # Strict type checking on our parameters. + method = enforce_bytes(method, name="method") + url = enforce_url(url, name="url") + headers = enforce_headers(headers, name="headers") + + # Include Host header, and optionally Content-Length or Transfer-Encoding. + headers = include_request_headers(headers, url=url, content=content) + + request = Request( + method=method, + url=url, + headers=headers, + content=content, + extensions=extensions, + ) + response = await self.handle_async_request(request) + try: + await response.aread() + finally: + await response.aclose() + return response + + @contextlib.asynccontextmanager + async def stream( + self, + method: bytes | str, + url: URL | bytes | str, + *, + headers: HeaderTypes = None, + content: bytes | typing.AsyncIterator[bytes] | None = None, + extensions: Extensions | None = None, + ) -> typing.AsyncIterator[Response]: + # Strict type checking on our parameters. + method = enforce_bytes(method, name="method") + url = enforce_url(url, name="url") + headers = enforce_headers(headers, name="headers") + + # Include Host header, and optionally Content-Length or Transfer-Encoding. + headers = include_request_headers(headers, url=url, content=content) + + request = Request( + method=method, + url=url, + headers=headers, + content=content, + extensions=extensions, + ) + response = await self.handle_async_request(request) + try: + yield response + finally: + await response.aclose() + + async def handle_async_request(self, request: Request) -> Response: + raise NotImplementedError() # pragma: nocover + + +class AsyncConnectionInterface(AsyncRequestInterface): + async def aclose(self) -> None: + raise NotImplementedError() # pragma: nocover + + def info(self) -> str: + raise NotImplementedError() # pragma: nocover + + def can_handle_request(self, origin: Origin) -> bool: + raise NotImplementedError() # pragma: nocover + + def is_available(self) -> bool: + """ + Return `True` if the connection is currently able to accept an + outgoing request. + + An HTTP/1.1 connection will only be available if it is currently idle. + + An HTTP/2 connection will be available so long as the stream ID space is + not yet exhausted, and the connection is not in an error state. + + While the connection is being established we may not yet know if it is going + to result in an HTTP/1.1 or HTTP/2 connection. The connection should be + treated as being available, but might ultimately raise `NewConnectionRequired` + required exceptions if multiple requests are attempted over a connection + that ends up being established as HTTP/1.1. + """ + raise NotImplementedError() # pragma: nocover + + def has_expired(self) -> bool: + """ + Return `True` if the connection is in a state where it should be closed. + + This either means that the connection is idle and it has passed the + expiry time on its keep-alive, or that server has sent an EOF. + """ + raise NotImplementedError() # pragma: nocover + + def is_idle(self) -> bool: + """ + Return `True` if the connection is currently idle. + """ + raise NotImplementedError() # pragma: nocover + + def is_closed(self) -> bool: + """ + Return `True` if the connection has been closed. + + Used when a response is closed to determine if the connection may be + returned to the connection pool or not. + """ + raise NotImplementedError() # pragma: nocover diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/socks_proxy.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/socks_proxy.py new file mode 100644 index 0000000000000000000000000000000000000000..b363f55a0b071de6c5f377726be82dc2110e373c --- /dev/null +++ b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_async/socks_proxy.py @@ -0,0 +1,341 @@ +from __future__ import annotations + +import logging +import ssl + +import socksio + +from .._backends.auto import AutoBackend +from .._backends.base import AsyncNetworkBackend, AsyncNetworkStream +from .._exceptions import ConnectionNotAvailable, ProxyError +from .._models import URL, Origin, Request, Response, enforce_bytes, enforce_url +from .._ssl import default_ssl_context +from .._synchronization import AsyncLock +from .._trace import Trace +from .connection_pool import AsyncConnectionPool +from .http11 import AsyncHTTP11Connection +from .interfaces import AsyncConnectionInterface + +logger = logging.getLogger("httpcore.socks") + + +AUTH_METHODS = { + b"\x00": "NO AUTHENTICATION REQUIRED", + b"\x01": "GSSAPI", + b"\x02": "USERNAME/PASSWORD", + b"\xff": "NO ACCEPTABLE METHODS", +} + +REPLY_CODES = { + b"\x00": "Succeeded", + b"\x01": "General SOCKS server failure", + b"\x02": "Connection not allowed by ruleset", + b"\x03": "Network unreachable", + b"\x04": "Host unreachable", + b"\x05": "Connection refused", + b"\x06": "TTL expired", + b"\x07": "Command not supported", + b"\x08": "Address type not supported", +} + + +async def _init_socks5_connection( + stream: AsyncNetworkStream, + *, + host: bytes, + port: int, + auth: tuple[bytes, bytes] | None = None, +) -> None: + conn = socksio.socks5.SOCKS5Connection() + + # Auth method request + auth_method = ( + socksio.socks5.SOCKS5AuthMethod.NO_AUTH_REQUIRED + if auth is None + else socksio.socks5.SOCKS5AuthMethod.USERNAME_PASSWORD + ) + conn.send(socksio.socks5.SOCKS5AuthMethodsRequest([auth_method])) + outgoing_bytes = conn.data_to_send() + await stream.write(outgoing_bytes) + + # Auth method response + incoming_bytes = await stream.read(max_bytes=4096) + response = conn.receive_data(incoming_bytes) + assert isinstance(response, socksio.socks5.SOCKS5AuthReply) + if response.method != auth_method: + requested = AUTH_METHODS.get(auth_method, "UNKNOWN") + responded = AUTH_METHODS.get(response.method, "UNKNOWN") + raise ProxyError( + f"Requested {requested} from proxy server, but got {responded}." + ) + + if response.method == socksio.socks5.SOCKS5AuthMethod.USERNAME_PASSWORD: + # Username/password request + assert auth is not None + username, password = auth + conn.send(socksio.socks5.SOCKS5UsernamePasswordRequest(username, password)) + outgoing_bytes = conn.data_to_send() + await stream.write(outgoing_bytes) + + # Username/password response + incoming_bytes = await stream.read(max_bytes=4096) + response = conn.receive_data(incoming_bytes) + assert isinstance(response, socksio.socks5.SOCKS5UsernamePasswordReply) + if not response.success: + raise ProxyError("Invalid username/password") + + # Connect request + conn.send( + socksio.socks5.SOCKS5CommandRequest.from_address( + socksio.socks5.SOCKS5Command.CONNECT, (host, port) + ) + ) + outgoing_bytes = conn.data_to_send() + await stream.write(outgoing_bytes) + + # Connect response + incoming_bytes = await stream.read(max_bytes=4096) + response = conn.receive_data(incoming_bytes) + assert isinstance(response, socksio.socks5.SOCKS5Reply) + if response.reply_code != socksio.socks5.SOCKS5ReplyCode.SUCCEEDED: + reply_code = REPLY_CODES.get(response.reply_code, "UNKOWN") + raise ProxyError(f"Proxy Server could not connect: {reply_code}.") + + +class AsyncSOCKSProxy(AsyncConnectionPool): # pragma: nocover + """ + A connection pool that sends requests via an HTTP proxy. + """ + + def __init__( + self, + proxy_url: URL | bytes | str, + proxy_auth: tuple[bytes | str, bytes | str] | None = None, + ssl_context: ssl.SSLContext | None = None, + max_connections: int | None = 10, + max_keepalive_connections: int | None = None, + keepalive_expiry: float | None = None, + http1: bool = True, + http2: bool = False, + retries: int = 0, + network_backend: AsyncNetworkBackend | None = None, + ) -> None: + """ + A connection pool for making HTTP requests. + + Parameters: + proxy_url: The URL to use when connecting to the proxy server. + For example `"http://127.0.0.1:8080/"`. + ssl_context: An SSL context to use for verifying connections. + If not specified, the default `httpcore.default_ssl_context()` + will be used. + max_connections: The maximum number of concurrent HTTP connections that + the pool should allow. Any attempt to send a request on a pool that + would exceed this amount will block until a connection is available. + max_keepalive_connections: The maximum number of idle HTTP connections + that will be maintained in the pool. + keepalive_expiry: The duration in seconds that an idle HTTP connection + may be maintained for before being expired from the pool. + http1: A boolean indicating if HTTP/1.1 requests should be supported + by the connection pool. Defaults to True. + http2: A boolean indicating if HTTP/2 requests should be supported by + the connection pool. Defaults to False. + retries: The maximum number of retries when trying to establish + a connection. + local_address: Local address to connect from. Can also be used to + connect using a particular address family. Using + `local_address="0.0.0.0"` will connect using an `AF_INET` address + (IPv4), while using `local_address="::"` will connect using an + `AF_INET6` address (IPv6). + uds: Path to a Unix Domain Socket to use instead of TCP sockets. + network_backend: A backend instance to use for handling network I/O. + """ + super().__init__( + ssl_context=ssl_context, + max_connections=max_connections, + max_keepalive_connections=max_keepalive_connections, + keepalive_expiry=keepalive_expiry, + http1=http1, + http2=http2, + network_backend=network_backend, + retries=retries, + ) + self._ssl_context = ssl_context + self._proxy_url = enforce_url(proxy_url, name="proxy_url") + if proxy_auth is not None: + username, password = proxy_auth + username_bytes = enforce_bytes(username, name="proxy_auth") + password_bytes = enforce_bytes(password, name="proxy_auth") + self._proxy_auth: tuple[bytes, bytes] | None = ( + username_bytes, + password_bytes, + ) + else: + self._proxy_auth = None + + def create_connection(self, origin: Origin) -> AsyncConnectionInterface: + return AsyncSocks5Connection( + proxy_origin=self._proxy_url.origin, + remote_origin=origin, + proxy_auth=self._proxy_auth, + ssl_context=self._ssl_context, + keepalive_expiry=self._keepalive_expiry, + http1=self._http1, + http2=self._http2, + network_backend=self._network_backend, + ) + + +class AsyncSocks5Connection(AsyncConnectionInterface): + def __init__( + self, + proxy_origin: Origin, + remote_origin: Origin, + proxy_auth: tuple[bytes, bytes] | None = None, + ssl_context: ssl.SSLContext | None = None, + keepalive_expiry: float | None = None, + http1: bool = True, + http2: bool = False, + network_backend: AsyncNetworkBackend | None = None, + ) -> None: + self._proxy_origin = proxy_origin + self._remote_origin = remote_origin + self._proxy_auth = proxy_auth + self._ssl_context = ssl_context + self._keepalive_expiry = keepalive_expiry + self._http1 = http1 + self._http2 = http2 + + self._network_backend: AsyncNetworkBackend = ( + AutoBackend() if network_backend is None else network_backend + ) + self._connect_lock = AsyncLock() + self._connection: AsyncConnectionInterface | None = None + self._connect_failed = False + + async def handle_async_request(self, request: Request) -> Response: + timeouts = request.extensions.get("timeout", {}) + sni_hostname = request.extensions.get("sni_hostname", None) + timeout = timeouts.get("connect", None) + + async with self._connect_lock: + if self._connection is None: + try: + # Connect to the proxy + kwargs = { + "host": self._proxy_origin.host.decode("ascii"), + "port": self._proxy_origin.port, + "timeout": timeout, + } + async with Trace("connect_tcp", logger, request, kwargs) as trace: + stream = await self._network_backend.connect_tcp(**kwargs) + trace.return_value = stream + + # Connect to the remote host using socks5 + kwargs = { + "stream": stream, + "host": self._remote_origin.host.decode("ascii"), + "port": self._remote_origin.port, + "auth": self._proxy_auth, + } + async with Trace( + "setup_socks5_connection", logger, request, kwargs + ) as trace: + await _init_socks5_connection(**kwargs) + trace.return_value = stream + + # Upgrade the stream to SSL + if self._remote_origin.scheme == b"https": + ssl_context = ( + default_ssl_context() + if self._ssl_context is None + else self._ssl_context + ) + alpn_protocols = ( + ["http/1.1", "h2"] if self._http2 else ["http/1.1"] + ) + ssl_context.set_alpn_protocols(alpn_protocols) + + kwargs = { + "ssl_context": ssl_context, + "server_hostname": sni_hostname + or self._remote_origin.host.decode("ascii"), + "timeout": timeout, + } + async with Trace("start_tls", logger, request, kwargs) as trace: + stream = await stream.start_tls(**kwargs) + trace.return_value = stream + + # Determine if we should be using HTTP/1.1 or HTTP/2 + ssl_object = stream.get_extra_info("ssl_object") + http2_negotiated = ( + ssl_object is not None + and ssl_object.selected_alpn_protocol() == "h2" + ) + + # Create the HTTP/1.1 or HTTP/2 connection + if http2_negotiated or ( + self._http2 and not self._http1 + ): # pragma: nocover + from .http2 import AsyncHTTP2Connection + + self._connection = AsyncHTTP2Connection( + origin=self._remote_origin, + stream=stream, + keepalive_expiry=self._keepalive_expiry, + ) + else: + self._connection = AsyncHTTP11Connection( + origin=self._remote_origin, + stream=stream, + keepalive_expiry=self._keepalive_expiry, + ) + except Exception as exc: + self._connect_failed = True + raise exc + elif not self._connection.is_available(): # pragma: nocover + raise ConnectionNotAvailable() + + return await self._connection.handle_async_request(request) + + def can_handle_request(self, origin: Origin) -> bool: + return origin == self._remote_origin + + async def aclose(self) -> None: + if self._connection is not None: + await self._connection.aclose() + + def is_available(self) -> bool: + if self._connection is None: # pragma: nocover + # If HTTP/2 support is enabled, and the resulting connection could + # end up as HTTP/2 then we should indicate the connection as being + # available to service multiple requests. + return ( + self._http2 + and (self._remote_origin.scheme == b"https" or not self._http1) + and not self._connect_failed + ) + return self._connection.is_available() + + def has_expired(self) -> bool: + if self._connection is None: # pragma: nocover + return self._connect_failed + return self._connection.has_expired() + + def is_idle(self) -> bool: + if self._connection is None: # pragma: nocover + return self._connect_failed + return self._connection.is_idle() + + def is_closed(self) -> bool: + if self._connection is None: # pragma: nocover + return self._connect_failed + return self._connection.is_closed() + + def info(self) -> str: + if self._connection is None: # pragma: nocover + return "CONNECTION FAILED" if self._connect_failed else "CONNECTING" + return self._connection.info() + + def __repr__(self) -> str: + return f"<{self.__class__.__name__} [{self.info()}]>" diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_backends/__init__.py b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_backends/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_backends/__pycache__/__init__.cpython-311.pyc b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_backends/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8e49ded6ba47a22a92aabcafd65ee5ea7c2c93bd Binary files /dev/null and b/`/Agents/influencer-thread-pipeline/.venv/Lib/site-packages/httpcore/_backends/__pycache__/__init__.cpython-311.pyc differ