Upload folder using huggingface_hub (part 15)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +6 -0
- .venv/Lib/site-packages/streamlit-1.59.2.dist-info/INSTALLER +1 -0
- .venv/Lib/site-packages/streamlit-1.59.2.dist-info/METADATA +216 -0
- .venv/Lib/site-packages/streamlit-1.59.2.dist-info/RECORD +0 -0
- .venv/Lib/site-packages/streamlit-1.59.2.dist-info/WHEEL +5 -0
- .venv/Lib/site-packages/streamlit-1.59.2.dist-info/entry_points.txt +2 -0
- .venv/Lib/site-packages/streamlit-1.59.2.dist-info/top_level.txt +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/PageLink.DHHvSAE0.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Pagination.PDXWGwdv.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Particles.4krX1Sn0.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/PlotlyChart.4_Y9P9S5.js +0 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Progress.DgVZNure.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/ProgressBar.BCbGAMCA.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/ProgressBar.f9e1ctNu.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Radio.BKBYWz1p.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Selectbox.BeVNQqYp.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Slider.GRyz-weP.js +6 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Snow.ai5Vw12f.js +7 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Spinner.BQUBVfja.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/StreamlitMarkdown.Dt4WoAEs.js +0 -0
- .venv/Lib/site-packages/streamlit/static/static/js/StreamlitSyntaxHighlighter.CF7MqRsa.js +0 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Table.B0i2Z-_E.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/TableChart.esm.Mf0tJ6az.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Text.CGzIOlkG.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/TextArea.DmtkrKuc.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/TextField.DitOKl5A.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/TextInput.C78pm77f.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/TimeInput.Dg2pvFk8.js +3 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Toast.B0eAvksU.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/UploadFileInfo.WAP1L8Dh.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/UriUtil.FL3SkPFA.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/Video.DetIaZs0.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/ordinal.CVZABass.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/packet-7NZHBO7P.DWKhXcMh.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/pandasStylerUtils.BJFOH1dd.js +0 -0
- .venv/Lib/site-packages/streamlit/static/static/js/path.CLRsGyms.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/pegDiagram-2B236MQR.DmrPHpv7.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/pie-RZYD4A2V.BZ3-FSzG.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/pieDiagram-ENE6RG2P.B41uAIsw.js +39 -0
- .venv/Lib/site-packages/streamlit/static/static/js/preload-helper.DYl5dUZ5.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/protobuf.Cj15o6C6.js +0 -0
- .venv/Lib/site-packages/streamlit/static/static/js/purify.es.DY32g7DN.js +3 -0
- .venv/Lib/site-packages/streamlit/static/static/js/quadrantDiagram-ABIIQ3AL.CX3XaH4X.js +7 -0
- .venv/Lib/site-packages/streamlit/static/static/js/radar-I7S5WNFK.DT7qHh2w.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/railroad-3IZDKUUU.DbNeWKiO.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/railroad-abnf-AHOZXSZD.DFq3h4T0.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/railroad-ebnf-EBAXGLYW.CdyxDZQf.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/railroad-peg-LSFZ7HO6.5SvWHfyH.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/railroadDiagram-RFXS5EU6.C65sdjdI.js +1 -0
- .venv/Lib/site-packages/streamlit/static/static/js/range.EplFIxc7.js +1 -0
.gitattributes
CHANGED
|
@@ -66,3 +66,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 66 |
.venv/Lib/site-packages/sklearn/.libs/vcomp140.dll filter=lfs diff=lfs merge=lfs -text
|
| 67 |
.venv/Lib/site-packages/sklearn/datasets/images/china.jpg filter=lfs diff=lfs merge=lfs -text
|
| 68 |
.venv/Lib/site-packages/sklearn/datasets/images/flower.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
.venv/Lib/site-packages/sklearn/.libs/vcomp140.dll filter=lfs diff=lfs merge=lfs -text
|
| 67 |
.venv/Lib/site-packages/sklearn/datasets/images/china.jpg filter=lfs diff=lfs merge=lfs -text
|
| 68 |
.venv/Lib/site-packages/sklearn/datasets/images/flower.jpg filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
.venv/Lib/site-packages/streamlit/static/static/media/fireworks.B4d-_KUe.gif filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
.venv/Lib/site-packages/streamlit/static/static/media/MaterialSymbols-Rounded.BFs6ZT6g.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
.venv/Lib/site-packages/streamlit/static/static/media/SourceSansVF-Italic.ttf.Bt9VkdQ3.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
.venv/Lib/site-packages/streamlit/static/static/media/SourceSansVF-Upright.ttf.BsWL4Kly.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
.venv/Lib/site-packages/streamlit/static/static/media/SourceSerifVariable-Italic.ttf.CVdzAtxO.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
.venv/Lib/site-packages/streamlit/static/static/media/SourceSerifVariable-Roman.ttf.mdpVL9bi.woff2 filter=lfs diff=lfs merge=lfs -text
|
.venv/Lib/site-packages/streamlit-1.59.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv/Lib/site-packages/streamlit-1.59.2.dist-info/METADATA
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: streamlit
|
| 3 |
+
Version: 1.59.2
|
| 4 |
+
Summary: A faster way to build and share data apps
|
| 5 |
+
Author-email: Snowflake Inc <hello@streamlit.io>
|
| 6 |
+
License-Expression: Apache-2.0
|
| 7 |
+
Project-URL: Homepage, https://streamlit.io
|
| 8 |
+
Project-URL: Documentation, https://docs.streamlit.io/
|
| 9 |
+
Project-URL: Source Code, https://github.com/streamlit/streamlit
|
| 10 |
+
Project-URL: Bug Tracker, https://github.com/streamlit/streamlit/issues
|
| 11 |
+
Project-URL: Release Notes, https://docs.streamlit.io/develop/quick-reference/changelog
|
| 12 |
+
Project-URL: Community, https://discuss.streamlit.io/
|
| 13 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 14 |
+
Classifier: Environment :: Console
|
| 15 |
+
Classifier: Environment :: Web Environment
|
| 16 |
+
Classifier: Intended Audience :: Developers
|
| 17 |
+
Classifier: Intended Audience :: Science/Research
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 23 |
+
Classifier: Topic :: Database :: Front-Ends
|
| 24 |
+
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
|
| 25 |
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
| 26 |
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
| 27 |
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
| 28 |
+
Classifier: Topic :: Software Development :: Widget Sets
|
| 29 |
+
Requires-Python: >=3.10
|
| 30 |
+
Description-Content-Type: text/markdown
|
| 31 |
+
Requires-Dist: altair!=5.4.0,!=5.4.1,<7,>=4.0
|
| 32 |
+
Requires-Dist: blinker<2,>=1.5.0
|
| 33 |
+
Requires-Dist: cachetools<8,>=5.5
|
| 34 |
+
Requires-Dist: click<9,>=7.0
|
| 35 |
+
Requires-Dist: gitpython!=3.1.19,<4,>=3.0.7
|
| 36 |
+
Requires-Dist: numpy<3,>=1.23
|
| 37 |
+
Requires-Dist: packaging>=20
|
| 38 |
+
Requires-Dist: pandas<4,>=1.4.0
|
| 39 |
+
Requires-Dist: pillow<13,>=7.1.0
|
| 40 |
+
Requires-Dist: pydeck<1,>=0.8.0b4
|
| 41 |
+
Requires-Dist: protobuf<8,>=3.20
|
| 42 |
+
Requires-Dist: pyarrow<25,>=7.0
|
| 43 |
+
Requires-Dist: requests<3,>=2.27
|
| 44 |
+
Requires-Dist: tenacity<10,>=8.1.0
|
| 45 |
+
Requires-Dist: toml<2,>=0.10.1
|
| 46 |
+
Requires-Dist: typing-extensions<5,>=4.10.0
|
| 47 |
+
Requires-Dist: starlette>=0.40.0
|
| 48 |
+
Requires-Dist: uvicorn>=0.30.0
|
| 49 |
+
Requires-Dist: httptools>=0.6.3
|
| 50 |
+
Requires-Dist: anyio>=4.0.0
|
| 51 |
+
Requires-Dist: python-multipart>=0.0.10
|
| 52 |
+
Requires-Dist: websockets>=12.0.0
|
| 53 |
+
Requires-Dist: itsdangerous>=2.1.2
|
| 54 |
+
Requires-Dist: watchdog<7,>=2.1.5; platform_system != "Darwin"
|
| 55 |
+
Provides-Extra: snowflake
|
| 56 |
+
Requires-Dist: snowflake-snowpark-python[modin]>=1.17.0; extra == "snowflake"
|
| 57 |
+
Requires-Dist: snowflake-connector-python>=3.3.0; extra == "snowflake"
|
| 58 |
+
Provides-Extra: pdf
|
| 59 |
+
Requires-Dist: streamlit-pdf>=1.0.0; extra == "pdf"
|
| 60 |
+
Provides-Extra: auth
|
| 61 |
+
Requires-Dist: Authlib>=1.3.2; extra == "auth"
|
| 62 |
+
Requires-Dist: httpx>=0.24.1; extra == "auth"
|
| 63 |
+
Provides-Extra: charts
|
| 64 |
+
Requires-Dist: matplotlib>=3.0.0; extra == "charts"
|
| 65 |
+
Requires-Dist: graphviz>=0.19.0; extra == "charts"
|
| 66 |
+
Requires-Dist: plotly>=4.0.0; extra == "charts"
|
| 67 |
+
Requires-Dist: orjson>=3.5.0; extra == "charts"
|
| 68 |
+
Provides-Extra: sql
|
| 69 |
+
Requires-Dist: SQLAlchemy>=2.0.0; extra == "sql"
|
| 70 |
+
Provides-Extra: performance
|
| 71 |
+
Requires-Dist: orjson>=3.5.0; extra == "performance"
|
| 72 |
+
Requires-Dist: uvloop>=0.15.2; (sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy") and extra == "performance"
|
| 73 |
+
Provides-Extra: all
|
| 74 |
+
Requires-Dist: streamlit[auth,charts,pdf,performance,snowflake,sql]; extra == "all"
|
| 75 |
+
Requires-Dist: rich>=11.0.0; extra == "all"
|
| 76 |
+
|
| 77 |
+
<br>
|
| 78 |
+
|
| 79 |
+
<img src="https://user-images.githubusercontent.com/7164864/217935870-c0bc60a3-6fc0-4047-b011-7b4c59488c91.png" alt="Streamlit logo" style="margin-top:50px"></img>
|
| 80 |
+
|
| 81 |
+
# Welcome to Streamlit 👋
|
| 82 |
+
|
| 83 |
+
**A faster way to build and share data apps.**
|
| 84 |
+
|
| 85 |
+
## What is Streamlit?
|
| 86 |
+
|
| 87 |
+
Streamlit lets you transform Python scripts into interactive web apps in minutes, instead of weeks. Build dashboards, generate reports, or create chat apps. Once you’ve created an app, you can use our [Community Cloud platform](https://streamlit.io/cloud) to deploy, manage, and share your app.
|
| 88 |
+
|
| 89 |
+
### Why choose Streamlit?
|
| 90 |
+
|
| 91 |
+
- **Simple and Pythonic:** Write beautiful, easy-to-read code.
|
| 92 |
+
- **Fast, interactive prototyping:** Let others interact with your data and provide feedback quickly.
|
| 93 |
+
- **Live editing:** See your app update instantly as you edit your script.
|
| 94 |
+
- **Open-source and free:** Join a vibrant community and contribute to Streamlit's future.
|
| 95 |
+
|
| 96 |
+
## Installation
|
| 97 |
+
|
| 98 |
+
Open a terminal and run:
|
| 99 |
+
|
| 100 |
+
```bash
|
| 101 |
+
$ pip install streamlit
|
| 102 |
+
$ streamlit hello
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
If this opens our sweet _Streamlit Hello_ app in your browser, you're all set! If not, head over to [our docs](https://docs.streamlit.io/get-started) for specific installs.
|
| 106 |
+
|
| 107 |
+
The app features a bunch of examples of what you can do with Streamlit. Jump to the [quickstart](#quickstart) section to understand how that all works.
|
| 108 |
+
|
| 109 |
+
<img src="https://user-images.githubusercontent.com/7164864/217936487-1017784e-68ec-4e0d-a7f6-6b97525ddf88.gif" alt="Streamlit Hello" width=500 href="none"></img>
|
| 110 |
+
|
| 111 |
+
## Quickstart
|
| 112 |
+
|
| 113 |
+
### A little example
|
| 114 |
+
|
| 115 |
+
Create a new file named `streamlit_app.py` in your project directory with the following code:
|
| 116 |
+
```python
|
| 117 |
+
import streamlit as st
|
| 118 |
+
x = st.slider("Select a value")
|
| 119 |
+
st.write(x, "squared is", x * x)
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
Now run it to open the app!
|
| 123 |
+
```
|
| 124 |
+
$ streamlit run streamlit_app.py
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
<img src="https://user-images.githubusercontent.com/7164864/215172915-cf087c56-e7ae-449a-83a4-b5fa0328d954.gif" width=300 alt="Little example"></img>
|
| 128 |
+
|
| 129 |
+
### Give me more!
|
| 130 |
+
|
| 131 |
+
Streamlit comes in with [a ton of additional powerful elements](https://docs.streamlit.io/develop/api-reference) to spice up your data apps and delight your viewers. Some examples:
|
| 132 |
+
|
| 133 |
+
<table border="0">
|
| 134 |
+
<tr>
|
| 135 |
+
<td>
|
| 136 |
+
<a target="_blank" href="https://docs.streamlit.io/develop/api-reference/widgets">
|
| 137 |
+
<img src="https://user-images.githubusercontent.com/7164864/217936099-12c16f8c-7fe4-44b1-889a-1ac9ee6a1b44.png" style="max-height:150px; width:auto; display:block;">
|
| 138 |
+
</a>
|
| 139 |
+
</td>
|
| 140 |
+
<td>
|
| 141 |
+
<a target="_blank" href="https://docs.streamlit.io/develop/api-reference/data/st.dataframe">
|
| 142 |
+
<img src="https://user-images.githubusercontent.com/7164864/215110064-5eb4e294-8f30-4933-9563-0275230e52b5.gif" style="max-height:150px; width:auto; display:block;">
|
| 143 |
+
</a>
|
| 144 |
+
</td>
|
| 145 |
+
<td>
|
| 146 |
+
<a target="_blank" href="https://docs.streamlit.io/develop/api-reference/charts">
|
| 147 |
+
<img src="https://user-images.githubusercontent.com/7164864/215174472-bca8a0d7-cf4b-4268-9c3b-8c03dad50bcd.gif" style="max-height:150px; width:auto; display:block;">
|
| 148 |
+
</a>
|
| 149 |
+
</td>
|
| 150 |
+
<td>
|
| 151 |
+
<a target="_blank" href="https://docs.streamlit.io/develop/api-reference/layout">
|
| 152 |
+
<img src="https://user-images.githubusercontent.com/7164864/217936149-a35c35be-0d96-4c63-8c6a-1c4b52aa8f60.png" style="max-height:150px; width:auto; display:block;">
|
| 153 |
+
</a>
|
| 154 |
+
</td>
|
| 155 |
+
<td>
|
| 156 |
+
<a target="_blank" href="https://docs.streamlit.io/develop/concepts/multipage-apps">
|
| 157 |
+
<img src="https://user-images.githubusercontent.com/7164864/215173883-eae0de69-7c1d-4d78-97d0-3bc1ab865e5b.gif" style="max-height:150px; width:auto; display:block;">
|
| 158 |
+
</a>
|
| 159 |
+
</td>
|
| 160 |
+
<td>
|
| 161 |
+
<a target="_blank" href="https://streamlit.io/gallery">
|
| 162 |
+
<img src="https://user-images.githubusercontent.com/7164864/215109229-6ae9111f-e5c1-4f0b-b3a2-87a79268ccc9.gif" style="max-height:150px; width:auto; display:block;">
|
| 163 |
+
</a>
|
| 164 |
+
</td>
|
| 165 |
+
</tr>
|
| 166 |
+
<tr>
|
| 167 |
+
<td>Input widgets</td>
|
| 168 |
+
<td>Dataframes</td>
|
| 169 |
+
<td>Charts</td>
|
| 170 |
+
<td>Layout</td>
|
| 171 |
+
<td>Multi-page apps</td>
|
| 172 |
+
<td>Fun</td>
|
| 173 |
+
</tr>
|
| 174 |
+
</table>
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
Our vibrant creators community also extends Streamlit capabilities using 🧩 [Streamlit Components](https://streamlit.io/components).
|
| 178 |
+
|
| 179 |
+
## Get inspired
|
| 180 |
+
|
| 181 |
+
There's so much you can build with Streamlit:
|
| 182 |
+
- 🤖 [LLMs & chatbot apps](https://streamlit.io/gallery?category=llms)
|
| 183 |
+
- 🧬 [Science & technology apps](https://streamlit.io/gallery?category=science-technology)
|
| 184 |
+
- 💬 [NLP & language apps](https://streamlit.io/gallery?category=nlp-language)
|
| 185 |
+
- 🏦 [Finance & business apps](https://streamlit.io/gallery?category=finance-business)
|
| 186 |
+
- 🗺 [Geography & society apps](https://streamlit.io/gallery?category=geography-society)
|
| 187 |
+
- and more!
|
| 188 |
+
|
| 189 |
+
**Check out [our gallery!](https://streamlit.io/gallery)** 🎈
|
| 190 |
+
|
| 191 |
+
## Community Cloud
|
| 192 |
+
|
| 193 |
+
Deploy, manage and share your apps for free using our [Community Cloud](https://streamlit.io/cloud)! Sign-up [here](https://share.streamlit.io/signup). <br><br>
|
| 194 |
+
<img src="https://user-images.githubusercontent.com/7164864/214965336-64500db3-0d79-4a20-8052-2dda883902d2.gif" width="400"></img>
|
| 195 |
+
|
| 196 |
+
## Resources
|
| 197 |
+
|
| 198 |
+
- Explore our [docs](https://docs.streamlit.io) to learn how Streamlit works.
|
| 199 |
+
- Ask questions and get help in our [community forum](https://discuss.streamlit.io).
|
| 200 |
+
- Read our [blog](https://blog.streamlit.io) for tips from developers and creators.
|
| 201 |
+
- Extend Streamlit's capabilities by installing or creating your own [Streamlit Components](https://streamlit.io/components).
|
| 202 |
+
- Help others find and play with your app by using the Streamlit GitHub badge in your repository:
|
| 203 |
+
```markdown
|
| 204 |
+
[](URL_TO_YOUR_APP)
|
| 205 |
+
```
|
| 206 |
+
[](https://share.streamlit.io/streamlit/roadmap)
|
| 207 |
+
|
| 208 |
+
## Contribute
|
| 209 |
+
|
| 210 |
+
🎉 Thanks for your interest in helping improve Streamlit! 🎉
|
| 211 |
+
|
| 212 |
+
Before contributing, please read our guidelines here: https://github.com/streamlit/streamlit/blob/develop/CONTRIBUTING.md
|
| 213 |
+
|
| 214 |
+
## License
|
| 215 |
+
|
| 216 |
+
Streamlit is completely free and open-source and licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license.
|
.venv/Lib/site-packages/streamlit-1.59.2.dist-info/RECORD
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/Lib/site-packages/streamlit-1.59.2.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (83.0.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
.venv/Lib/site-packages/streamlit-1.59.2.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
streamlit = streamlit.web.cli:main
|
.venv/Lib/site-packages/streamlit-1.59.2.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
streamlit
|
.venv/Lib/site-packages/streamlit/static/static/js/PageLink.DHHvSAE0.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{p as a,r as o}from"./StreamlitMarkdown.Dt4WoAEs.js";import{t as s}from"./useEmotionTheme.tyjAwN1A.js";import{Ft as c,_n as l,rn as u}from"./index.D7cltBCg.js";import{t as d}from"./iconPosition.DWeCxQ7w.js";var f=e(t(),1),p=i(`div`,{target:`evng2kd0`})({display:`flex`,flexDirection:`column`,width:`100%`}),m=i(`a`,{target:`evng2kd1`})(({disabled:e,isCurrentPage:t,theme:n})=>({textDecoration:`none`,width:`100%`,display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`flex-start`,gap:n.spacing.sm,borderRadius:n.radii.default,paddingLeft:n.spacing.sm,paddingRight:n.spacing.sm,marginTop:n.spacing.threeXS,marginBottom:n.spacing.threeXS,lineHeight:n.lineHeights.menuItem,backgroundColor:t?n.colors.darkenedBgMix15:`transparent`,"&:hover":{backgroundColor:t?n.colors.darkenedBgMix25:n.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:`none`},"&:focus":{outline:`none`},"&:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"@media print":{paddingLeft:n.spacing.none},...e?{borderColor:n.colors.borderColor,backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:`not-allowed`,"&:hover":{color:n.colors.fadedText40,backgroundColor:n.colors.transparent}}:{}})),h=i(`span`,{target:`evng2kd2`})(({disabled:e,theme:t})=>({color:t.colors.bodyText,overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,display:`table-cell`,...e?{borderColor:t.colors.borderColor,backgroundColor:t.colors.transparent,color:t.colors.fadedText40,cursor:`not-allowed`}:{}}));function g(e){let t=e.page;if(e.queryString)if(e.external)try{let n=new URL(e.page);new URLSearchParams(e.queryString).forEach((e,t)=>n.searchParams.append(t,e)),t=n.toString()}catch{let[n,r]=t.split(`#`);t=n+(n.includes(`?`)?`&`:`?`)+e.queryString+(r?`#`+r:``)}else t+=(t.includes(`?`)?`&`:`?`)+e.queryString;return t}function _(e){let{onPageChange:t,currentPageScriptHash:i}=(0,f.useContext)(c),{colors:_}=s(),{disabled:v,element:y}=e,b=i===y.pageScriptHash,x=e=>{y.external?v&&e.preventDefault():(e.preventDefault(),v||t(y.pageScriptHash,y.queryString))},S=d(y.iconPosition),C=g(y);return n(`div`,{className:`stPageLink`,"data-testid":`stPageLink`,children:n(u,{help:y.help,placement:a.TOP_RIGHT,containerWidth:!0,children:n(p,{children:r(m,{"data-testid":`stPageLink-NavLink`,disabled:v,isCurrentPage:b,href:C,target:y.external?`_blank`:``,rel:`noreferrer`,onClick:x,children:[y.icon&&S===`left`&&n(l,{size:`base`,color:v?_.fadedText40:_.bodyText,iconValue:y.icon}),n(h,{disabled:v,children:n(o,{source:y.label,allowHTML:!1,isLabel:!0,boldLabel:b,disableLinks:!0})}),y.icon&&S===`right`&&n(l,{size:`base`,color:v?_.fadedText40:_.bodyText,iconValue:y.icon})]})})})})}var v=(0,f.memo)(_);export{g as buildHref,v as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/Pagination.PDXWGwdv.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{c as a}from"./utils.paqmDQdB.js";import{t as o}from"./useEmotionTheme.tyjAwN1A.js";import{En as s,_n as c,en as l}from"./index.D7cltBCg.js";import{n as u}from"./useBasicWidgetState.D6ltrbB8.js";var d=e(t(),1),f=i(`div`,{target:`ew4wgso0`})(({shouldStretch:e})=>({display:`flex`,justifyContent:e?`center`:`flex-start`,width:`100%`})),p=i(`div`,{target:`ew4wgso1`})(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing.twoXS,overflow:`hidden`})),m=i(`button`,{target:`ew4wgso2`})(({theme:e,isSelected:t,disabled:n})=>({display:`flex`,alignItems:`center`,justifyContent:`center`,minWidth:e.spacing.threeXL,height:e.spacing.threeXL,padding:`0 ${e.spacing.sm}`,border:`none`,borderRadius:e.radii.default,backgroundColor:t?e.colors.darkenedBgMix25:e.colors.transparent,color:n?e.colors.fadedText40:e.colors.bodyText,cursor:n?`not-allowed`:`pointer`,fontSize:e.fontSizes.sm,fontFamily:e.fonts.sansSerif,fontWeight:e.fontWeights.normal,transition:`background-color 0.15s ease`,lineHeight:e.lineHeights.none,"&:hover:not(:disabled)":{backgroundColor:t?e.colors.darkenedBgMix40:e.colors.darkenedBgMix25},"&:focus-visible":{outline:`none`,boxShadow:e.shadows.focusRing},"&:disabled":{cursor:`not-allowed`,opacity:.5}})),h=i(`span`,{target:`ew4wgso3`})(({theme:e})=>({display:`flex`,alignItems:`center`,justifyContent:`center`,minWidth:e.spacing.threeXL,height:e.spacing.threeXL,padding:`0 ${e.spacing.sm}`,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,fontSize:e.fontSizes.sm,fontFamily:e.fonts.sansSerif,fontWeight:e.fontWeights.normal,lineHeight:e.lineHeights.none})),g=i(`button`,{target:`ew4wgso4`})(({theme:e,disabled:t})=>({display:`flex`,alignItems:`center`,justifyContent:`center`,width:e.spacing.threeXL,height:e.spacing.threeXL,padding:e.spacing.none,border:`none`,borderRadius:e.radii.default,backgroundColor:e.colors.transparent,color:t?e.colors.fadedText40:e.colors.bodyText,cursor:t?`not-allowed`:`pointer`,transition:`background-color 0.15s ease`,"&:hover:not(:disabled)":{backgroundColor:e.colors.darkenedBgMix25},"&:focus-visible":{outline:`none`,boxShadow:e.shadows.focusRing},"&:disabled":{opacity:.5}})),_=50,v=e=>({type:`page`,page:e}),y=e=>({type:`ellipsis`,position:e});function b(e,t,n){if(n===0)return[];if(n===1)return[v(e)];if(t<=n)return Array.from({length:t},(e,t)=>v(t+1));if(n===2)return e===1?[v(1),y(`end`),v(t)]:e===t?[v(1),y(`start`),v(t)]:[v(e),y(`end`),v(t)];if(n===3&&t>4)return e<=3?[v(1),v(2),v(3),y(`end`),v(t)]:e>=t-2?[v(1),y(`start`),v(t-2),v(t-1),v(t)]:[v(1),y(`start`),v(e),y(`end`),v(t)];let r=[],i=e>3,a=e<t-2,o=+!!i+ +!!a,s=Math.max(1,n-2-o);r.push(v(1)),i&&r.push(y(`start`));let c,l;if(!i)c=2,l=Math.max(e,Math.min(t-1,2+s-1)),l-c+1<s&&(l=Math.min(t-1,c+s-1));else if(!a)l=t-1,c=Math.min(e,Math.max(2,t-s)),l-c+1<s&&(c=Math.max(2,l-s+1));else{let n=Math.floor((s-1)/2);c=Math.max(2,e-n),l=Math.min(t-1,c+s-1),l===t-1&&(c=Math.max(2,l-s+1)),c===2&&(l=Math.min(t-1,c+s-1))}for(let e=c;e<=l;e++)r.push(v(e));return a&&r.push(y(`end`)),t>1&&r.push(v(t)),r}function x(e,t){return e.getIntValue(t)}function S(e){return e.default||1}function C(e){return e.value||e.default||1}function w(e,t,n,r){t.setIntValue(e,n.value,{fromUi:n.fromUi},r)}function T(e){let{disabled:t,element:i,fragmentId:v,widgetMgr:y,widthConfig:T}=e,{numPages:E}=i,D=i.maxVisiblePages??E,O=o(),k=(0,d.useMemo)(()=>a(O.spacing.threeXL)+a(O.spacing.twoXS),[O.spacing.threeXL,O.spacing.twoXS]),A=(0,d.useMemo)(()=>2*a(O.spacing.threeXL)+a(O.spacing.twoXS),[O.spacing.threeXL,O.spacing.twoXS]),[j,M]=u({getStateFromWidgetMgr:x,getDefaultStateFromProto:S,getCurrStateFromProto:C,updateWidgetMgrState:w,element:i,widgetMgr:y,fragmentId:v,formClearBehavior:`resetValueOnly`,queryParamBinding:i.queryParamKey?{paramKey:i.queryParamKey,valueType:`int_value`,clearable:!1}:void 0}),N=i.setValue?i.value:j,P=Math.min(E,Math.max(1,N)),F=s(T),{values:I,elementRef:L}=l((0,d.useMemo)(()=>[`width`],[])),R=I[0]??0,z=(0,d.useMemo)(()=>{if(R===0)return Math.min(D,_);let e=R-A,t=Math.max(0,Math.floor(e/k)),n=Math.min(D,t);return n>=5?n:n>=3?2:+(n>=1)},[R,D,A,k]),B=(0,d.useMemo)(()=>b(P,E,z),[P,E,z]),V=(0,d.useCallback)(e=>{e>=1&&e<=E&&e!==P&&M({value:e,fromUi:!0})},[P,E,M]),H=(0,d.useCallback)(()=>{P>1&&M({value:P-1,fromUi:!0})},[P,M]),U=(0,d.useCallback)(()=>{P<E&&M({value:P+1,fromUi:!0})},[P,E,M]),W=t||P===1,G=t||P===E;return n(f,{ref:L,className:`stPagination`,"data-testid":`stPagination`,shouldStretch:F,children:r(p,{role:`navigation`,"aria-label":`Pagination`,children:[n(g,{type:`button`,onClick:H,disabled:W,"aria-label":`Previous page`,"data-testid":`stPaginationPrev`,children:n(c,{iconValue:`:material/chevron_left:`,size:`lg`})}),B.map(e=>{if(e.type===`ellipsis`)return n(h,{"aria-hidden":`true`,"data-testid":`stPaginationEllipsis`,children:`…`},`ellipsis-${e.position}`);let r=e.page===P;return n(m,{type:`button`,isSelected:r,disabled:t,onClick:()=>V(e.page),"aria-label":`Page ${e.page}`,"aria-current":r?`page`:void 0,"data-testid":r?`stPaginationPageActive`:`stPaginationPage`,children:e.page},e.page)}),n(g,{type:`button`,onClick:U,disabled:G,"aria-label":`Next page`,"data-testid":`stPaginationNext`,children:n(c,{iconValue:`:material/chevron_right:`,size:`lg`})})]})})}var E=(0,d.memo)(T);export{E as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/Particles.4krX1Sn0.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,s as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{t as a}from"./react-dom.DmpKrvBr.js";import{r as o}from"./UriUtil.FL3SkPFA.js";import{An as s,Mt as c}from"./index.D7cltBCg.js";var l=e(t(),1),u=e(a(),1),d=({children:e})=>{let t=(0,l.useContext)(c)?.();return t?(0,u.createPortal)(e,t):n(r,{children:e})},f=i(`div`,{target:`e1smm6vf0`})({"@media print":{display:`none`}}),p=(0,l.memo)(({className:e,scriptRunId:t,numParticles:r,numParticleTypes:i,ParticleComponent:a})=>{let{resourceCrossOriginMode:c}=(0,l.useContext)(o);return n(f,{className:e,"data-testid":e,children:(0,l.useMemo)(()=>s(r).map(()=>Math.floor(Math.random()*i)),[r,i]).map((e,r)=>n(a,{particleType:e,resourceCrossOriginMode:c},t+r))})});export{d as n,p as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/PlotlyChart.4_Y9P9S5.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/Lib/site-packages/streamlit/static/static/js/Progress.DgVZNure.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{r as a}from"./StreamlitMarkdown.Dt4WoAEs.js";import{t as o}from"./ProgressBar.f9e1ctNu.js";var s=e(t(),1),c=i(`div`,{target:`e1jwj65h0`})(({theme:e})=>({paddingBottom:e.spacing.sm,lineHeight:`normal`}));function l({element:e}){return r(`div`,{className:`stProgress`,"data-testid":`stProgress`,children:[n(c,{children:n(a,{source:e.text,allowHTML:!1,isLabel:!0})}),n(o,{value:e.value})]})}var u=(0,s.memo)(l);export{u as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/ProgressBar.BCbGAMCA.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{Ct as n,St as r,Tt as i,ht as a,kt as o,xt as s,yt as c}from"./StreamlitMarkdown.Dt4WoAEs.js";import{t as l}from"./Label.CGzIOlkG.js";import{t as u}from"./useLabel.yq0yLwqD.js";import{t as d}from"./useNumberFormatter.dv0-n56h.js";function f(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:s,formatOptions:l={style:`percent`}}=e,f=c(e,{labelable:!0}),{labelProps:p,fieldProps:m}=u({...e,labelElementType:`span`});t=a(t,n,r);let h=(t-n)/(r-n),g=d(l);if(!s&&!i){let e=l.style===`percent`?h:t;i=g.format(e)}return{progressBarProps:o(f,{...m,"aria-valuenow":s?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":s?void 0:i,role:`progressbar`}),labelProps:p}}var p=e(t(),1),m=(0,p.createContext)(null),h=(0,p.forwardRef)(function(e,t){[e,t]=s(e,t,m);let{value:u=0,minValue:d=0,maxValue:h=100,isIndeterminate:g=!1}=e;u=a(u,d,h);let[_,v]=n(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:y,labelProps:b}=f({...e,label:v}),x=g?void 0:(u-d)/(h-d)*100,S=r({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:x,valueText:y[`aria-valuetext`],isIndeterminate:g}}),C=c(e,{global:!0});return p.createElement(i.div,{...o(C,S,y),ref:t,slot:e.slot||void 0},p.createElement(l.Provider,{value:{...b,ref:_,elementType:`span`}},S.children))});export{m as n,h as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/ProgressBar.f9e1ctNu.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{c as e,t}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{t as n}from"./ProgressBar.BCbGAMCA.js";var r=function(e){return e.EXTRASMALL=`xs`,e.SMALL=`sm`,e}({}),i=t(`div`,{target:`e1ed21rz0`})(({theme:e,$size:t})=>({height:t===r.EXTRASMALL?e.spacing.twoXS:e.spacing.sm,backgroundColor:e.colors.secondaryBg,borderRadius:e.radii.sm,overflow:`hidden`})),a=t(`div`,{target:`e1ed21rz1`})(({theme:e})=>({width:`100%`,height:`100%`,backgroundColor:e.colors.secondary,transition:`transform 0.5s ease`}));function o({value:t,size:o=r.SMALL,squareTopCorners:s=!1,"aria-label":c=`progress`}){let l=Math.min(100,Math.max(0,t));return e(n,{value:l,minValue:0,maxValue:100,"aria-label":c,children:e(i,{$size:o,"data-testid":`stProgressBarTrack`,style:s?{borderTopLeftRadius:`0`,borderTopRightRadius:`0`}:void 0,children:e(a,{style:{transform:`translateX(${l-100}%)`}})})})}export{r as n,o as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/Radio.BKBYWz1p.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{c as a}from"./utils.paqmDQdB.js";import{Q as o}from"./protobuf.Cj15o6C6.js";import{N as s}from"./utils.CmclnrwZ.js";import{At as c,Ct as l,Dt as u,Et as d,H as f,Mt as p,Ot as m,St as h,Tt as g,U as _,V as v,_t as y,bt as b,kt as x,p as S,pt as C,r as w,ut as T,xt as E,yt as D}from"./StreamlitMarkdown.Dt4WoAEs.js";import{t as O}from"./Label.CGzIOlkG.js";import{n as k,t as A}from"./useFocusRing.Ch5Orgk4.js";import{t as j}from"./usePress.B7K2laX9.js";import{t as M}from"./Text.CGzIOlkG.js";import{a as N,n as P,o as ee,t as te}from"./useFormValidation.DqEJgcfp.js";import{t as ne}from"./useField.DAFPmzlq.js";import{t as F}from"./useFormReset.B3j4yNbY.js";import{c as I,r as L}from"./FocusScope.Ctte9a8-.js";import{at as R,gn as z,hn as B,it as V}from"./index.D7cltBCg.js";import{n as H}from"./useBasicWidgetState.D6ltrbB8.js";var U=new WeakMap,W=e(t(),1);function G(e,t,n){let{value:r,children:i,"aria-label":a,"aria-labelledby":o,onPressStart:s,onPressEnd:c,onPressChange:l,onPress:u,onPressUp:d,onClick:f}=e,p=e.isDisabled||t.isDisabled,m=t.selectedValue===r,h=e=>{e.stopPropagation(),t.setSelectedValue(r)},{pressProps:g,isPressed:_}=j({onPressStart:s,onPressEnd:c,onPressChange:l,onPress:u,onPressUp:d,onClick:f,isDisabled:p}),{pressProps:v,isPressed:y}=j({onPressStart:s,onPressEnd:c,onPressChange:l,onPressUp:d,onClick:f,isDisabled:p,onPress(e){u?.(e),t.setSelectedValue(r),n.current?.focus()}}),{focusableProps:b}=k(x(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),S=x(g,b),C=D(e,{labelable:!0}),w=-1;t.selectedValue==null?(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(w=0):t.selectedValue===r&&(w=0),p&&(w=void 0);let{name:T,form:E,descriptionId:O,errorMessageId:A,validationBehavior:M}=U.get(t);F(n,t.defaultSelectedValue,t.setSelectedValue),te({validationBehavior:M},t,n);let N=z();return{labelProps:x(v,(0,W.useMemo)(()=>({onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault()}),[])),inputProps:x(C,{...S,type:`radio`,name:T,form:E,tabIndex:w,disabled:p,required:t.isRequired&&M===`native`,checked:m,value:r,onChange:h,"aria-describedby":[e[`aria-describedby`],N.id,t.isInvalid?A:null,O].filter(Boolean).join(` `)||void 0}),descriptionProps:N,isDisabled:p,isSelected:m,isPressed:_||y}}function K(e,t){let{name:n,form:r,isReadOnly:i,isRequired:a,isDisabled:o,orientation:s=`vertical`,validationBehavior:c=`aria`}=e,{direction:l}=y(),{isInvalid:u,validationErrors:d,validationDetails:f}=t.displayValidation,{labelProps:m,fieldProps:h,descriptionProps:g,errorMessageProps:v}=ne({...e,labelElementType:`span`,isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),b=D(e,{labelable:!0}),{focusWithinProps:S}=_({onBlurWithin(n){e.onBlur?.(n),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),w=e=>{let n;switch(e.key){case`ArrowRight`:n=l===`rtl`&&s!==`vertical`?`prev`:`next`;break;case`ArrowLeft`:n=l===`rtl`&&s!==`vertical`?`next`:`prev`;break;case`ArrowDown`:n=`next`;break;case`ArrowUp`:n=`prev`;break;default:return}e.preventDefault();let r=L(e.currentTarget,{from:T(e),accept:e=>e instanceof C(e).HTMLInputElement&&e.type===`radio`}),i;n===`next`?(i=r.nextNode(),i||=(r.currentNode=e.currentTarget,r.firstChild())):(i=r.previousNode(),i||=(r.currentNode=e.currentTarget,r.lastChild())),i&&(i.focus(),t.setSelectedValue(i.value))},E=p(n);return U.set(t,{name:E,form:r,descriptionId:g.id,errorMessageId:v.id,validationBehavior:c}),{radioGroupProps:x(b,{role:`radiogroup`,onKeyDown:w,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-readonly":i||void 0,"aria-required":a||void 0,"aria-disabled":o||void 0,"aria-orientation":s,...h,...S}),labelProps:m,descriptionProps:g,errorMessageProps:v,isInvalid:u,validationErrors:d,validationDetails:f}}var q=Math.round(Math.random()*1e10),J=0;function Y(e){let t=(0,W.useMemo)(()=>e.name||`radio-group-${q}-${++J}`,[e.name]),[n,r]=v(e.value,e.defaultValue??null,e.onChange),[i]=(0,W.useState)(n),[a,o]=(0,W.useState)(null),s=N({...e,value:n}),c=t=>{!e.isReadOnly&&!e.isDisabled&&(r(t),s.commitValidation())},l=s.displayValidation.isInvalid;return{...s,name:t,selectedValue:n,defaultSelectedValue:e.value===void 0?e.defaultValue??null:i,setSelectedValue:c,lastFocusedValue:a,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(l?`invalid`:null),isInvalid:l}}var X=(0,W.createContext)(null),re=(0,W.createContext)(null),Z=(0,W.createContext)(null),ie=(0,W.forwardRef)(function(e,t){[e,t]=E(e,t,X);let{validationBehavior:n}=u(P)||{},r=e.validationBehavior??n??`native`,i=Y({...e,validationBehavior:r}),[a,o]=l(!e[`aria-label`]&&!e[`aria-labelledby`]),{radioGroupProps:s,labelProps:c,descriptionProps:d,errorMessageProps:f,...p}=K({...e,label:o,validationBehavior:r},i),m=h({...e,values:{orientation:e.orientation||`vertical`,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:`react-aria-RadioGroup`}),_=D(e,{global:!0});return W.createElement(g.div,{...x(_,m,s),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`vertical`,"data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},W.createElement(b,{values:[[Z,i],[O,{...c,ref:a,elementType:`span`}],[M,{slots:{description:d,errorMessage:f}}],[ee,p]]},W.createElement(I,null,m.children)))}),ae=(0,W.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=E(r,t,re);let i=W.useContext(Z),a=m((0,W.useMemo)(()=>c(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),o=G({...d(e),children:typeof e.children==`function`?!0:e.children},i,a);return W.createElement(Q.Provider,{value:{...o,inputRef:a,defaultClassName:`react-aria-Radio`}},W.createElement(oe,{...e,ref:t}))}),Q=(0,W.createContext)(null),oe=(0,W.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isPressed:o,defaultClassName:s,inputRef:c}=(0,W.useContext)(Q),l=W.useContext(Z),{isFocused:u,isFocusVisible:d,focusProps:p}=A(),m=a||l.isReadOnly,{hoverProps:_,isHovered:v}=f({...e,isDisabled:m}),y=h({...e,defaultClassName:s,values:{isSelected:i,isPressed:o,isHovered:v,isFocused:u,isFocusVisible:d,isDisabled:a,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isRequired:l.isRequired}}),b=D(e,{global:!0});return delete b.id,delete b.onClick,W.createElement(g.label,{...x(b,n,_,y),ref:t,"data-selected":i||void 0,"data-pressed":o||void 0,"data-hovered":v||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-disabled":a||void 0,"data-readonly":l.isReadOnly||void 0,"data-invalid":l.isInvalid||void 0,"data-required":l.isRequired||void 0},W.createElement(B,{elementType:`span`},W.createElement(`input`,{...x(r,p),ref:c})),y.children)}),se=i(ie,{shouldForwardProp:e=>!e.startsWith(`$`),target:`etak9230`})(({theme:e,$horizontal:t,$hasCaptions:n})=>({display:`flex`,flexDirection:t?`row`:`column`,flexWrap:`wrap`,alignItems:t?`center`:`flex-start`,gap:t?e.spacing.lg:n?e.spacing.sm:e.spacing.none,minHeight:e.sizes.minElementHeight})),ce=i(ae,{target:`etak9231`})(({theme:e})=>({display:`block`,cursor:`pointer`,userSelect:`none`,paddingLeft:e.spacing.none,paddingRight:e.spacing.threeXS,marginTop:e.spacing.none,marginBottom:e.spacing.none,"&[data-focus-visible]":{backgroundColor:e.colors.darkenedBgMix25},"&[data-disabled]":{cursor:`not-allowed`}})),le=i(`div`,{target:`etak9232`})(({theme:e,$isDisabled:t})=>({display:`flex`,flexDirection:`column`,color:t?e.colors.fadedText40:e.colors.bodyText})),ue=i(`div`,{target:`etak9233`})(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing.sm})),de=i(`div`,{target:`etak9234`})(({theme:e,$isSelected:t,$isDisabled:n})=>({width:e.sizes.checkbox,height:e.sizes.checkbox,flexShrink:0,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:t&&!n?e.colors.primary:e.colors.borderColor})),fe=i(`div`,{target:`etak9235`})(({theme:e,$isSelected:t})=>{let n=parseFloat(e.sizes.checkbox),r=parseFloat(e.spacing.threeXS),i=a(n.toString()),o=Math.round(i*.375),s=Math.round(a((n-r).toString()));s>=i&&--s;let c=t?`${o}px`:`${s}px`;return{borderRadius:`50%`,backgroundColor:t?e.colors.white:e.colors.bgColor,width:c,height:c}}),pe=i(`div`,{target:`etak9236`})(({theme:e})=>({paddingLeft:`calc(${e.sizes.checkbox} + ${e.spacing.sm})`}));function $({disabled:e,horizontal:t,value:i,onChange:a,options:o,captions:s,label:c,labelVisibility:l,help:u}){let[d,f]=(0,W.useState)(i??null);(0,W.useEffect)(()=>{i!==d&&f(i??null)},[i]);let p=(0,W.useCallback)(e=>{let t=parseInt(e,10);f(t),a(t)},[a]),m=s.length>0,h=o.length>0,g=h?o:[`No options to select.`],_=e||!h,v=e=>e===``&&t&&m?` `:e;return r(`div`,{className:`stRadio`,"data-testid":`stRadio`,children:[n(R,{label:c,disabled:_,labelVisibility:l,children:u&&n(V,{content:u,placement:S.TOP_RIGHT,label:c})}),n(se,{onChange:p,value:d===null?null:d.toString(),isDisabled:_,orientation:t?`horizontal`:`vertical`,"aria-label":c,"data-testid":`stRadioGroup`,$horizontal:t,$hasCaptions:m,children:g.map((e,t)=>n(ce,{value:t.toString(),"data-testid":`stRadioOption`,children:({isSelected:i,isDisabled:a})=>r(le,{$isDisabled:a,children:[r(ue,{children:[n(de,{$isSelected:i,$isDisabled:a,children:n(fe,{$isSelected:i})}),n(w,{source:e,allowHTML:!1,isLabel:!0})]}),m&&n(pe,{children:n(w,{source:v(s[t]),allowHTML:!1,isCaption:!0,isLabel:!0})})]})},t))})]})}var me=(0,W.memo)($);function he({disabled:e,element:t,widgetMgr:r,fragmentId:i}){let[a,c]=H({getStateFromWidgetMgr:ge,getDefaultStateFromProto:_e,getCurrStateFromProto:ve,updateWidgetMgrState:ye,element:t,widgetMgr:r,fragmentId:i,formClearBehavior:`resetValueOnly`,queryParamBinding:t.queryParamKey?{paramKey:t.queryParamKey,valueType:`string_value`,clearable:o(t.default)}:void 0}),{horizontal:l,options:u,captions:d,label:f,labelVisibility:p,help:m}=t,h=(0,W.useCallback)(e=>{c({value:u[e]??null,fromUi:!0})},[c,u]),g=(0,W.useMemo)(()=>{if(a===null)return null;let e=u.lastIndexOf(a);return e>=0?e:null},[a,u]);return n(me,{label:f,onChange:h,options:u,captions:d,disabled:e,horizontal:l,labelVisibility:s(p?.value),value:g,help:m})}function ge(e,t){return e.getStringValue(t)}function _e(e){return e.options.length===0||o(e.default)?null:e.options[e.default]}function ve(e){return e.rawValue??null}function ye(e,t,n,r){t.setStringValue(e,n.value,{fromUi:n.fromUi},r)}var be=(0,W.memo)(he);export{be as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/Selectbox.BeVNQqYp.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{Q as r}from"./protobuf.Cj15o6C6.js";import{N as i}from"./utils.CmclnrwZ.js";import{Q as a}from"./index.D7cltBCg.js";import{n as o}from"./useBasicWidgetState.D6ltrbB8.js";var s=e(t(),1),c=(e,t)=>e.getStringValue(t),l=e=>e.options.length===0||r(e.default)?null:e.options[e.default],u=e=>e.rawValue??null,d=(e,t,n,r)=>{t.setStringValue(e,n.value,{fromUi:n.fromUi},r)},f=(0,s.memo)(({disabled:e,element:t,widgetMgr:f,fragmentId:p})=>{let{options:m,help:h,label:g,labelVisibility:_,placeholder:v,acceptNewOptions:y,filterMode:b}=t,[x,S]=o({getStateFromWidgetMgr:c,getDefaultStateFromProto:l,getCurrStateFromProto:u,updateWidgetMgrState:d,element:t,widgetMgr:f,fragmentId:p,formClearBehavior:`resetValueOnly`,queryParamBinding:t.queryParamKey?{paramKey:t.queryParamKey,valueType:`string_value`,clearable:r(t.default)}:void 0}),C=(0,s.useCallback)(e=>{S({value:e,fromUi:!0})},[S]),w=r(t.default)&&!e;return n(a,{label:g,labelVisibility:i(_?.value),options:m,disabled:e,onChange:C,value:x,help:h,placeholder:v,clearable:w,acceptNewOptions:y??!1,filterMode:b})});export{f as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/Slider.GRyz-weP.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,s as i,t as a}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{P as o}from"./protobuf.Cj15o6C6.js";import{N as s}from"./utils.CmclnrwZ.js";import{Ct as c,Dt as l,G as u,H as d,St as f,Tt as p,V as m,W as h,_t as g,bt as _,gt as v,ht as y,kt as b,mt as x,pt as S,r as C,ut as w,xt as T,yt as E}from"./StreamlitMarkdown.Dt4WoAEs.js";import{t as D}from"./Label.CGzIOlkG.js";import{t as O}from"./useLabel.yq0yLwqD.js";import{t as k}from"./useNumberFormatter.dv0-n56h.js";import{a as A,n as j,t as M,u as N}from"./useFocusRing.Ch5Orgk4.js";import{n as P,t as F}from"./textSelection.BYQPowh4.js";import{t as I}from"./useFormReset.B3j4yNbY.js";import{at as L,cn as R,hn as z,nt as B,sn as V}from"./index.D7cltBCg.js";import{n as ee,t as te}from"./moment.CaJaEtMO.js";import{t as ne}from"./formatNumber.BEqgZP86.js";import{t as re}from"./formatMoment.CtdYuS92.js";import{n as ie}from"./useBasicWidgetState.D6ltrbB8.js";import{t as ae}from"./withCalculatedWidth.B9y12HGL.js";var H=new WeakMap;function U(e,t){let n=H.get(e);if(!n)throw Error(`Unknown slider state`);return`${n.id}-${t}`}var W=e(t(),1);function G(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=(0,W.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=h(),s=u((0,W.useCallback)((e,r,a,o)=>{a===0&&o===0||(i.current.didMove||(i.current.didMove=!0,t?.({type:`movestart`,pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n?.({type:`move`,pointerType:r,deltaX:a,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,n,i])),c=u((0,W.useCallback)((e,t)=>{P(),i.current.didMove&&r?.({type:`moveend`,pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[r,i]));return{moveProps:(0,W.useMemo)(()=>{let e={},t=()=>{F(),i.current.didMove=!1};{let n=e=>{e.pointerId===i.current.id&&(s(e,e.pointerType||`mouse`,e.pageX-(i.current.lastPosition?.pageX??0),e.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{if(e.pointerId===i.current.id){c(e,e.pointerType||`mouse`),i.current.id=null;let t=S(w(e));o(t,`pointermove`,n,!1),o(t,`pointerup`,r,!1),o(t,`pointercancel`,r,!1)}};e.onPointerDown=e=>{if(e.button===0&&i.current.id==null){t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId;let o=S(w(e));a(o,`pointermove`,n,!1),a(o,`pointerup`,r,!1),a(o,`pointercancel`,r,!1)}}}let n=(e,n,r)=>{t(),s(e,`keyboard`,n,r),c(e,`keyboard`)};return e.onKeyDown=e=>{switch(e.key){case`Left`:case`ArrowLeft`:e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case`Right`:case`ArrowRight`:e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case`Up`:case`ArrowUp`:e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case`Down`:case`ArrowDown`:e.preventDefault(),e.stopPropagation(),n(e,0,1);break}},e},[a,o,i])}}function oe(e,t,n){let{labelProps:r,fieldProps:i}=O(e),a=e.orientation===`vertical`;H.set(t,{id:r.id??i.id,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]});let{direction:o}=g(),{addGlobalListener:s,removeGlobalListener:c}=h(),l=(0,W.useRef)(null),u=o===`rtl`,d=(0,W.useRef)(null),{moveProps:f}=G({onMoveStart(){d.current=null},onMove({deltaX:e,deltaY:r}){if(!n.current)return;let{height:i,width:o}=n.current.getBoundingClientRect(),s=a?i:o;d.current==null&&l.current!=null&&(d.current=t.getThumbPercent(l.current)*s);let c=a?r:e;if((a||u)&&(c=-c),d.current+=c,l.current!=null&&n.current){let e=y(d.current/s,0,1);t.setThumbPercent(l.current,e)}},onMoveEnd(){l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null)}}),p=(0,W.useRef)(void 0),m=(r,i,c,u)=>{if(n.current&&!e.isDisabled&&t.values.every((e,n)=>!t.isThumbDragging(n))){let{height:e,width:d,top:f,left:m}=n.current.getBoundingClientRect(),h=a?e:d,g=((a?u:c)-(a?f:m))/h;(o===`rtl`||a)&&(g=1-g);let v=t.getPercentValue(g),y,b=t.values.findIndex(e=>v-e<0);if(b===0)y=b;else if(b===-1)y=t.values.length-1;else{let e=t.values[b-1],n=t.values[b];y=Math.abs(e-v)<Math.abs(n-v)?b-1:b}y>=0&&t.isThumbEditable(y)?(r.preventDefault(),l.current=y,t.setFocusedThumb(y),p.current=i,t.setThumbDragging(l.current,!0),t.setThumbValue(y,v),s(window,`mouseup`,_,!1),s(window,`touchend`,_,!1),s(window,`pointerup`,_,!1)):l.current=null}},_=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===p.current&&(l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null),c(window,`mouseup`,_,!1),c(window,`touchend`,_,!1),c(window,`pointerup`,_,!1))};return`htmlFor`in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{document.getElementById(U(t,0))?.focus(),N(`keyboard`)}),{labelProps:r,groupProps:{role:`group`,...i},trackProps:b({onMouseDown(e){e.button!==0||e.altKey||e.ctrlKey||e.metaKey||m(e,void 0,e.clientX,e.clientY)},onPointerDown(e){e.pointerType===`mouse`&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey)||m(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){m(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:`relative`,touchAction:`none`}},f),outputProps:{htmlFor:t.values.map((e,n)=>U(t,n)).join(` `),"aria-live":`off`}}}function se(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:s,orientation:c=t.orientation,name:l,form:u}=e,d=e.isDisabled||t.isDisabled,f=c===`vertical`,{direction:p}=g(),{addGlobalListener:m,removeGlobalListener:_}=h(),v=H.get(t),{labelProps:S,fieldProps:C}=O({...e,id:U(t,n),"aria-labelledby":`${v.id} ${e[`aria-labelledby`]??``}`.trim()}),T=t.values[n],E=(0,W.useCallback)(()=>{s.current&&x(s.current)},[s]),D=t.focusedThumb===n;(0,W.useEffect)(()=>{D&&E()},[D,E]);let k=p===`rtl`,M=(0,W.useRef)(null),{keyboardProps:N}=A({onKeyDown(e){let{getThumbMaxValue:r,getThumbMinValue:i,decrementThumb:a,incrementThumb:o,setThumbValue:s,setThumbDragging:c,pageSize:l}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(e.key)){e.continuePropagation();return}switch(e.preventDefault(),c(n,!0),e.key){case`PageUp`:o(n,l);break;case`PageDown`:a(n,l);break;case`Home`:s(n,i(n));break;case`End`:s(n,r(n));break}c(n,!1)}}),{moveProps:P}=G({onMoveStart(){M.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:e,deltaY:r,pointerType:i,shiftKey:a}){let{getThumbPercent:s,setThumbPercent:c,decrementThumb:l,incrementThumb:u,step:d,pageSize:p}=t;if(!o.current)return;let{width:m,height:h}=o.current.getBoundingClientRect(),g=f?h:m;if(M.current??=s(n)*g,i===`keyboard`)e>0&&k||e<0&&!k||r>0?l(n,a?p:d):u(n,a?p:d);else{let t=f?r:e;(f||k)&&(t=-t),M.current+=t,c(n,y(M.current/g,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);let{focusableProps:F}=j(b(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s),L=(0,W.useRef)(void 0),R=e=>{E(),L.current=e,t.setThumbDragging(n,!0),m(window,`mouseup`,z,!1),m(window,`touchend`,z,!1),m(window,`pointerup`,z,!1)},z=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===L.current&&(E(),t.setThumbDragging(n,!1),_(window,`mouseup`,z,!1),_(window,`touchend`,z,!1),_(window,`pointerup`,z,!1))},B=t.getThumbPercent(n);(f||p===`rtl`)&&(B=1-B);let V=d?{}:b(N,P,{onMouseDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||R()},onPointerDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||R(e.pointerId)},onTouchStart:e=>{R(e.changedTouches[0].identifier)}});return I(s,t.defaultValues[n],e=>{t.setThumbValue(n,e)}),{inputProps:b(F,C,{type:`range`,tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:T,name:l,form:u,disabled:d,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-describedby":[v[`aria-describedby`],e[`aria-describedby`]].filter(Boolean).join(` `),"aria-details":[v[`aria-details`],e[`aria-details`]].filter(Boolean).join(` `),onChange:e=>{t.setThumbValue(n,parseFloat(w(e).value))}}),thumbProps:{...V,style:{position:`absolute`,[f?`top`:`left`]:`${B*100}%`,transform:`translate(-50%, -50%)`,touchAction:`none`}},labelProps:S,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:D}}var ce=0,le=100,ue=1;function de(e){let{isDisabled:t=!1,minValue:n=ce,maxValue:r=le,numberFormatter:i,step:a=ue,orientation:o=`horizontal`}=e,s=(0,W.useMemo)(()=>{let e=(r-n)/10;return e=v(e,0,e+a,a),Math.max(e,a)},[a,r,n]),c=(0,W.useCallback)(e=>e?.map((t,i)=>v(t,i===0?n:e[i-1],i===e.length-1?r:e[i+1],a)),[n,r,a]),l=(0,W.useMemo)(()=>c(fe(e.value)),[e.value,c]),u=(0,W.useMemo)(()=>c(fe(e.defaultValue)??[n]),[e.defaultValue,n,c]),d=pe(e.value,e.defaultValue,e.onChange),f=pe(e.value,e.defaultValue,e.onChangeEnd),[p,h]=m(l,u,d),[g]=(0,W.useState)(p),[_,b]=(0,W.useState)(Array(p.length).fill(!1)),x=(0,W.useRef)(Array(p.length).fill(!0)),[S,C]=(0,W.useState)(void 0),w=(0,W.useRef)(p),T=(0,W.useRef)(_),E=e=>{w.current=e,h(e)},D=e=>{T.current=e,b(e)};function O(e){return(e-n)/(r-n)}function k(e){return e===0?n:p[e-1]}function A(e){return e===p.length-1?r:p[e+1]}function j(e){return x.current[e]}function M(e,t){x.current[e]=t}function N(e,n){if(t||!j(e))return;let r=k(e),i=A(e);n=v(n,r,i,a),E(K(w.current,e,n))}function P(e,n){if(t||!j(e))return;n&&(w.current=p);let r=T.current[e];T.current=K(T.current,e,n),D(T.current),f&&r&&!T.current.some(Boolean)&&f(w.current)}let F=(0,W.useRef)(null);function I(e=p){switch(typeof e==`number`&&(e=[e]),e.length){case 0:return``;case 1:return i.format(e[0]);case 2:return i.formatRange(e[0],e[1]);default:{let t=e.map(e=>i.format(e)),n=F.current;return(!n||n.resolvedOptions().locale!==i.resolvedOptions().locale)&&(n=F.current=new Intl.ListFormat(i.resolvedOptions().locale,{type:`unit`})),n.format(t)}}}function L(e,t){N(e,z(t))}function R(e){return Math.round((e-n)/a)*a+n}function z(e){return y(R(e*(r-n)+n),n,r)}function B(e,t=1){let i=Math.max(t,a);N(e,v(p[e]+i,n,r,a))}function V(e,t=1){let i=Math.max(t,a);N(e,v(p[e]-i,n,r,a))}return{values:p,defaultValues:e.defaultValue===void 0?g:u,getThumbValue:e=>p[e],setThumbValue:N,setThumbPercent:L,isThumbDragging:e=>_[e],setThumbDragging:P,focusedThumb:S,setFocusedThumb:C,getThumbPercent:e=>O(p[e]),getValuePercent:O,getThumbValueLabel:e=>I(p[e]),getFormattedValue:I,getThumbMinValue:k,getThumbMaxValue:A,getPercentValue:z,isThumbEditable:j,setThumbEditable:M,incrementThumb:B,decrementThumb:V,step:a,pageSize:s,orientation:o,isDisabled:t}}function K(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function fe(e){if(e!=null)return Array.isArray(e)?e:[e]}function pe(e,t,n){return r=>{typeof e==`number`||typeof t==`number`?n?.(r[0]):n?.(r)}}var me=(0,W.createContext)(null),q=(0,W.createContext)(null),J=(0,W.createContext)(null),he=(0,W.createContext)(null),ge=(0,W.forwardRef)(function(e,t){[e,t]=T(e,t,me);let n=(0,W.useRef)(null),r=k(e.formatOptions),i=de({...e,numberFormatter:r}),[a,o]=c(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:s,trackProps:l,labelProps:u,outputProps:d}=oe({...e,label:o},i,n),m=f({...e,values:{orientation:i.orientation,isDisabled:i.isDisabled,state:i},defaultClassName:`react-aria-Slider`}),h=E(e,{global:!0});return delete h.id,W.createElement(_,{values:[[q,i],[J,{...l,ref:n}],[he,d],[D,{...u,ref:a}]]},W.createElement(p.div,{...b(h,m,s),ref:t,slot:e.slot||void 0,"data-orientation":i.orientation,"data-disabled":i.isDisabled||void 0}))}),_e=(0,W.forwardRef)(function(e,t){[e,t]=T(e,t,J);let n=(0,W.useContext)(q),{onHoverStart:r,onHoverEnd:i,onHoverChange:a,...o}=e,{hoverProps:s,isHovered:c}=d({onHoverStart:r,onHoverEnd:i,onHoverChange:a}),l=f({...e,defaultClassName:`react-aria-SliderTrack`,values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:c,state:n}});return W.createElement(p.div,{...b(o,s),...l,ref:t,"data-hovered":c||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}),ve=(0,W.forwardRef)(function(e,t){let{inputRef:n=null}=e,r=(0,W.useContext)(q),{ref:i}=l(J),{index:a=0}=e,o=(0,W.useRef)(null),s=n||o,[u,m]=c(!e[`aria-label`]&&!e[`aria-labelledby`]),{thumbProps:h,inputProps:g,labelProps:v,isDragging:y,isFocused:x,isDisabled:S}=se({...e,index:a,trackRef:i,inputRef:s,label:m},r),{focusProps:C,isFocusVisible:w}=M(),{hoverProps:T,isHovered:O}=d(e),k=f({...e,defaultClassName:`react-aria-SliderThumb`,values:{state:r,isHovered:O,isDragging:y,isFocused:x,isFocusVisible:w,isDisabled:S}}),A=E(e,{global:!0});return delete A.id,W.createElement(p.div,{...b(A,h,T),...k,ref:t,style:{...h.style,...k.style},"data-hovered":O||void 0,"data-dragging":y||void 0,"data-focused":x||void 0,"data-focus-visible":w||void 0,"data-disabled":S||void 0},W.createElement(z,null,W.createElement(`input`,{ref:s,...b(g,C)})),W.createElement(_,{values:[[D,{...v,ref:u}]]},k.children))});ee();var ye=a(`div`,{target:`e23vpic0`})({position:`relative`,":focus-within:has(:focus-visible)":{"--slider-focused":1}}),be=a(ge,{target:`e23vpic1`})(({theme:e})=>({position:`relative`,width:`100%`,paddingLeft:`calc(${e.sizes.sliderThumb} / 2)`,paddingRight:`calc(${e.sizes.sliderThumb} / 2)`})),xe=a(_e,{target:`e23vpic2`})(({theme:e})=>({position:`relative`,paddingTop:`calc(${e.sizes.minElementHeight} / 2)`,paddingBottom:`calc(${e.sizes.minElementHeight} / 2)`})),Se=a(ve,{target:`e23vpic3`})(({theme:e})=>({alignItems:`center`,backgroundColor:e.colors.primary,borderTopLeftRadius:`100%`,borderTopRightRadius:`100%`,borderBottomLeftRadius:`100%`,borderBottomRightRadius:`100%`,borderTopStyle:`none`,borderBottomStyle:`none`,borderRightStyle:`none`,borderLeftStyle:`none`,display:`flex`,justifyContent:`center`,height:e.sizes.sliderThumb,width:e.sizes.sliderThumb,top:`50%`,boxShadow:e.shadows.none,"&[data-disabled]":{backgroundColor:e.colors.gray60},"&[data-dragging], &[data-focus-visible]":{boxShadow:e.shadows.focusRing},":focus":{outline:`none`}})),Ce=a(`div`,{target:`e23vpic4`})(({disabled:e,theme:t})=>({fontFamily:t.genericFonts.bodyFont,fontSize:t.fontSizes.sm,color:e?t.colors.gray60:t.colors.primary,top:`-1.6em`,position:`absolute`,whiteSpace:`nowrap`,backgroundColor:t.colors.transparent,lineHeight:t.lineHeights.base,fontWeight:t.fontWeights.normal,pointerEvents:`none`})),we=a(`div`,{target:`e23vpic5`})(({theme:e,isDisabled:t,fillStart:n,fillEnd:r})=>({position:`absolute`,height:e.spacing.twoXS,left:0,right:0,top:`50%`,transform:`translateY(-50%)`,pointerEvents:`none`,background:t?e.colors.darkenedBgMix25:`linear-gradient(
|
| 2 |
+
to right,
|
| 3 |
+
${e.colors.darkenedBgMix25} ${n}%,
|
| 4 |
+
${e.colors.primary} ${n}%,
|
| 5 |
+
${e.colors.primary} ${r}%,
|
| 6 |
+
${e.colors.darkenedBgMix25} ${r}%)`})),Te=a(`div`,{target:`e23vpic6`})(({theme:e,isHovered:t,isDisabled:n})=>({position:`absolute`,left:0,right:0,top:`100%`,display:`flex`,justifyContent:`space-between`,pointerEvents:`none`,marginTop:`-${e.spacing.md}`,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,fontWeight:e.fontWeights.normal,color:n?e.colors.fadedText40:e.colors.fadedText60,opacity:t?1:`var(--slider-focused, 0)`,transition:t?`none`:`opacity 300ms 200ms`}));function Ee({minLabel:e,maxLabel:t,isHovered:i,isDisabled:a}){return r(Te,{"data-testid":`stSliderTickBar`,isHovered:i,isDisabled:a,children:[n(C,{source:e,allowHTML:!1,inheritFont:!0,isLabel:!0}),n(C,{source:t,allowHTML:!1,inheritFont:!0,isLabel:!0})]})}function Y(e){return e.type===o.Type.SELECT_SLIDER}function X(e,t,n){return e.map((e,r)=>{let i=t.indexOf(e);return i>=0?i:n[r]??0})}function De(e,t){return e.map(e=>t[e]??``)}var Oe=e=>Array.isArray(e)?e:[e];function ke({disabled:e,element:t,widgetMgr:a,fragmentId:o}){let[c,l]=ie({getStateFromWidgetMgr:Ae,getDefaultStateFromProto:je,getCurrStateFromProto:Me,updateWidgetMgrState:Ne,element:t,widgetMgr:a,fragmentId:o,formClearBehavior:`resetValueOnly`,queryParamBinding:t.queryParamKey?{paramKey:t.queryParamKey,valueType:Y(t)?`string_array_value`:`double_array_value`,clearable:!1,urlFormat:`repeated`,urlDefault:Y(t)?De(t.default,t.options):void 0,dateType:Pe(t)?Z(t):void 0}:void 0}),[u,d]=(0,W.useState)(c),[f,p]=(0,W.useState)(!1),[m,h]=(0,W.useState)(!1),g=(0,W.useCallback)(()=>p(!0),[]),_=(0,W.useCallback)(()=>p(!1),[]),v=(0,W.useRef)(null),y=(0,W.useRef)([]),b=(0,W.useRef)([]),x=u.map(e=>Q(e,t)),S=Q(t.min,t),w=Q(t.max,t);(0,W.useEffect)(()=>{d(c)},[c]),R(()=>{if(!Y(t))return;let e=a.getStringArrayValue(t);e!==void 0&&d(X(e,t.options,t.default))},[t.options],(e,t)=>V(e[0],t[0]));let T=(0,W.useCallback)(e=>{l({value:Oe(e),fromUi:!0}),h(!1)},[l]),E=(0,W.useCallback)(e=>{d(Oe(e)),h(!0)},[]);return(0,W.useLayoutEffect)(()=>{y.current.forEach((e,t)=>{if(!e)return;let n=e.querySelector(`input[type="range"]`);n&&x[t]!==void 0&&n.setAttribute(`aria-valuetext`,x[t])}),Ie(v.current??null,y.current[0]??null,y.current[1]??null,b.current[0]??null,b.current[1]??null)}),r(ye,{ref:v,className:`stSlider`,"data-testid":`stSlider`,onMouseEnter:g,onMouseLeave:_,children:[n(L,{label:t.label,disabled:e,labelVisibility:s(t.labelVisibility?.value),children:t.help&&n(B,{content:t.help,label:t.label})}),n(be,{minValue:t.min,maxValue:t.max,step:t.step,value:Fe(u,t),onChange:E,onChangeEnd:T,isDisabled:e,"aria-label":t.label,children:n(xe,{children:({state:a})=>{let o=a.values.length>1;return r(i,{children:[n(we,{isDisabled:e,fillStart:o?a.getThumbPercent(0)*100:0,fillEnd:a.getThumbPercent(+!!o)*100}),a.values.map((r,i)=>n(Se,{index:i,ref:e=>{y.current[i]=e},"aria-label":a.values.length>1?`${t.label} — ${i===0?`start`:`end`}`:t.label,children:n(Ce,{"data-testid":`stSliderThumbValue`,disabled:e,ref:e=>{b.current[i]=e},children:n(C,{source:x[i]??``,allowHTML:!1,inheritFont:!0,isLabel:!0})})},i)),n(Ee,{minLabel:S,maxLabel:w,isHovered:f||m,isDisabled:e})]})}})})]})}function Ae(e,t){if(Y(t)){let n=e.getStringArrayValue(t);return n===void 0?void 0:X(n,t.options,t.default)}return e.getDoubleArrayValue(t)}function je(e){return e.default}function Me(e){if(Y(e)){let t=e.rawValue;return t&&t.length>0?X(t,e.options,e.default):e.default}return e.value}function Ne(e,t,n,r){if(Y(e)){let i=De(n.value,e.options);t.setStringArrayValue(e,i,{fromUi:n.fromUi},r)}else t.setDoubleArrayValue(e,n.value,{fromUi:n.fromUi},r)}function Pe(e){let{dataType:t}=e;return t===o.DataType.DATETIME||t===o.DataType.DATE||t===o.DataType.TIME}function Z(e){let{dataType:t}=e;return t===o.DataType.DATE?`date`:t===o.DataType.TIME?`time`:`datetime`}function Q(e,t){let{format:n,options:r}=t;return r.length>0?r[e]??``:Pe(t)?re(te.utc(e/1e3),n,Z(t)):ne(e,n)}function Fe(e,t){let{min:n,max:r}=t,i=Math.min(Math.max(e[0],n),r),a=Math.min(Math.max(e.length>1?e[1]:e[0],i),r);return e.length>1?[i,a]:[i]}function Ie(e,t,n,r,i){!e||!t||!r||($(e,t,r),n&&i&&($(e,n,i),Le(e,t,n,r,i)))}function $(e,t,n){let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=i.width/2,s=i.left+o,c=Math.round(s-a.width/2)<Math.round(r.left),l=Math.round(s+a.width/2)>Math.round(r.right);c?(n.style.left=`${r.left-s+o}px`,n.style.right=``):l?(n.style.left=``,n.style.right=`${s+o-r.right}px`):(n.style.left=``,n.style.right=``)}function Le(e,t,n,r,i){let a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),s=n.getBoundingClientRect(),c=r.getBoundingClientRect(),l=i.getBoundingClientRect(),u=a.left+a.width/2,d=o.left+o.width/2,f=s.left+s.width/2,p=d-c.width/2>=a.left,m=f+l.width/2<=a.right,h=o.left-c.width>=a.left,g=s.right+l.width<=a.right,_=p?c.width/2:c.width,v=m?l.width/2:l.width,y=d+_;if(f-v-y>24){$(e,t,r),$(e,n,i);return}if(h&&g){r.style.left=``,r.style.right=`${Math.round(o.width)}px`,i.style.left=`${Math.round(s.width)}px`,i.style.right=``;return}d<u?($(e,t,r),i.style.left=`${Math.round(d+_+24-f+s.width/2)}px`,i.style.right=``):($(e,n,i),r.style.left=``,r.style.right=`${Math.round(d-f+v+24+o.width/2)}px`)}var Re=ae((0,W.memo)(ke));export{Re as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/Snow.ai5Vw12f.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,o as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{t as a}from"./UriUtil.FL3SkPFA.js";import{n as o,t as s}from"./Particles.4krX1Sn0.js";var c=e(t(),1),l=``+new URL(`../media/flake-0.DgWaVvm5.png`,import.meta.url).href,u=``+new URL(`../media/flake-1.B2r5AHMK.png`,import.meta.url).href,d=``+new URL(`../media/flake-2.BnWSExPC.png`,import.meta.url).href,f=150,p=150,m=10,h=90,g=4e3,_=(e,t=0)=>Math.random()*(e-t)+t,v=()=>r(`from{transform:translateY(0)
|
| 2 |
+
rotateX(`,_(360),`deg)
|
| 3 |
+
rotateY(`,_(360),`deg)
|
| 4 |
+
rotateZ(`,_(360),`deg);}to{transform:translateY(calc(100vh + `,f,`px))
|
| 5 |
+
rotateX(0)
|
| 6 |
+
rotateY(0)
|
| 7 |
+
rotateZ(0);}`),y=i(`img`,{target:`e1usw70z0`})(({theme:e})=>({position:`fixed`,top:`-150px`,marginLeft:`${-150/2}px`,zIndex:e.zIndices.balloons,left:`${_(h,m)}vw`,animationDelay:`${_(g)}ms`,height:`${f}px`,width:`${p}px`,pointerEvents:`none`,animationDuration:`3000ms`,animationName:v(),animationTimingFunction:`ease-in`,animationDirection:`normal`,animationIterationCount:1,opacity:1})),b=100,x=[l,u,d],S=x.length,C=(0,c.memo)(({particleType:e,resourceCrossOriginMode:t})=>{let r=x[e];return n(y,{src:r,crossOrigin:a(t,r)})}),w=(0,c.memo)(function({scriptRunId:e}){return n(o,{children:n(s,{className:`stSnow`,"data-testid":`stSnow`,scriptRunId:e,numParticleTypes:S,numParticles:100,ParticleComponent:C})})});export{b as NUM_FLAKES,w as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/Spinner.BQUBVfja.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{r as a}from"./StreamlitMarkdown.Dt4WoAEs.js";import{Dn as o,_n as s}from"./index.D7cltBCg.js";var c=e(t(),1),l=e(o(),1),u=i(`div`,{target:`e1dfnxdh0`})(({theme:e,cache:t})=>({...t?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),d=i(`div`,{target:`e1dfnxdh1`})(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,gap:e.spacing.sm})),f=i(`div`,{target:`e1dfnxdh2`})(({theme:e})=>({display:`flex`,gap:e.spacing.sm,alignItems:`baseline`})),p=i(`span`,{target:`e1dfnxdh3`})(({theme:e})=>({opacity:e.opacities.secondary,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.none,whiteSpace:`nowrap`})),m=e=>{let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t===0&&n===0?`(${r.toFixed(1)} seconds)`:t===0?`(${`${n} minute${n===1?``:`s`}`}${r===0?``:`, ${r.toFixed(1)} seconds`})`:`(${`${t} hour${t===1?``:`s`}`}${n===0?``:`, ${n} minute${n===1?``:`s`}`}${r===0?``:`, ${r.toFixed(1)} seconds`})`};function h({element:e}){let{cache:t,showTime:i}=e,[o,h]=(0,c.useState)(0),g=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!i)return;g.current=Date.now();let e=()=>{g.current!==null&&h((Date.now()-g.current)/1e3)};e();let t=setInterval(e,100);return()=>clearInterval(t)},[i]),n(u,{className:(0,l.default)({stSpinner:!0,stCacheSpinner:t}),"data-testid":`stSpinner`,cache:t,children:r(d,{children:[n(s,{size:`lg`,iconValue:`spinner`}),r(f,{children:[n(a,{source:e.text,allowHTML:!1}),i&&n(p,{children:m(o)})]})]})})}var g=(0,c.memo)(h);export{g as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/StreamlitMarkdown.Dt4WoAEs.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/Lib/site-packages/streamlit/static/static/js/StreamlitSyntaxHighlighter.CF7MqRsa.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/Lib/site-packages/streamlit/static/static/js/Table.B0i2Z-_E.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{c as a}from"./utils.paqmDQdB.js";import{L as o}from"./protobuf.Cj15o6C6.js";import{c as s,r as c}from"./StreamlitMarkdown.Dt4WoAEs.js";import{i as l,n as u,t as d}from"./pandasStylerUtils.BJFOH1dd.js";import{An as f,D as p,E as m,V as h}from"./index.D7cltBCg.js";var g=e(t(),1),_=i(`div`,{target:`e164qttr0`})(({theme:e})=>({fontSize:e.fontSizes.md,fontFamily:e.genericFonts.bodyFont,lineHeight:e.lineHeights.small,captionSide:`bottom`,height:`100%`,width:`100%`,maxWidth:`100%`,overflow:`clip`,display:`block`})),v=i(`div`,{target:`e164qttr1`})(({theme:e})=>({fontFamily:e.genericFonts.bodyFont,fontSize:e.fontSizes.sm,paddingTop:e.spacing.sm,paddingBottom:0,color:e.colors.fadedText60,textAlign:`left`,wordWrap:`break-word`,display:`inline-block`})),y=i(`div`,{target:`e164qttr2`})(({theme:e,borderMode:t,hasScrollableHeight:n})=>({border:t===o.BorderMode.ALL?`${e.sizes.borderWidth} solid ${e.colors.dataframeBorderColor}`:`none`,borderRadius:e.radii.default,overflow:`auto`,width:`100%`,maxWidth:`100%`,height:n?`100%`:void 0,position:`relative`,display:`block`,overscrollBehaviorX:`contain`})),b=i(`table`,{target:`e164qttr3`})(({theme:e,useContentWidth:t,hasScrollableWidth:n})=>({color:e.colors.bodyText,borderSpacing:0,display:`inline-table`,verticalAlign:`top`,minWidth:t||n?void 0:`100%`})),x=(e,t=o.BorderMode.ALL,n=!1)=>({borderBottom:t===o.BorderMode.NONE?`none`:`${e.sizes.borderWidth} solid ${e.colors.dataframeBorderColor}`,"tbody tr:last-child &":{borderBottom:t===o.BorderMode.ALL||t===o.BorderMode.HORIZONTAL?`none`:void 0},borderRight:t===o.BorderMode.ALL?`${e.sizes.borderWidth} solid ${e.colors.dataframeBorderColor}`:`none`,"&:last-child":{borderRight:t===o.BorderMode.ALL?`none`:void 0,paddingRight:t===o.BorderMode.NONE?`0`:e.spacing.xs},verticalAlign:`middle`,padding:`${e.spacing.twoXS} ${e.spacing.xs}`,"&:not(:first-of-type)":{paddingLeft:t===o.BorderMode.NONE||t===o.BorderMode.HORIZONTAL?e.spacing.lg:e.spacing.xs},"&:first-of-type":{paddingLeft:t===o.BorderMode.NONE?`0`:e.spacing.xs},fontWeight:e.fontWeights.normal,...n?{whiteSpace:`nowrap`,maxWidth:e.sizes.tableColumnMaxWidth,overflow:`hidden`,textOverflow:`ellipsis`}:{whiteSpace:`nowrap`,[`${s}`]:{display:`inline-block`,width:`fit-content`,maxWidth:e.sizes.tableColumnMaxWidth,whiteSpace:`normal`,overflowWrap:`normal`,wordBreak:`normal`,overflowY:`hidden`,verticalAlign:`top`,margin:0},[`${s}:has(pre)`]:{display:`block`,width:`100%`,maxWidth:`none`},[`${s} p`]:{whiteSpace:`normal`,overflowWrap:`normal`,wordBreak:`normal`,margin:0}}}),S=i(`td`,{target:`e164qttr4`})(({theme:e,borderMode:t,truncateContent:n})=>x(e,t,n)),C={corner:3,header:2,index:1},w=i(`th`,{target:`e164qttr5`})(({theme:e,borderMode:t,stickyType:n,stickyTopOffset:r,stickyLeftOffset:i,truncateContent:a})=>{let s={...x(e,t,a),textAlign:`inherit`,color:e.colors.fadedText60,"&:first-of-type":{paddingLeft:t===o.BorderMode.NONE?`0`:e.spacing.sm},"&:not(:first-of-type)":{paddingLeft:t===o.BorderMode.NONE||t===o.BorderMode.HORIZONTAL?e.spacing.lg:e.spacing.sm}};if(n){let t={position:`sticky`,backgroundColor:e.colors.bgColor};return(n===`header`||n===`corner`)&&(t.top=r??0),(n===`index`||n===`corner`)&&(t.left=i??0),t.zIndex=C[n],{...s,...t}}return s}),T=i(S,{target:`e164qttr6`})(({theme:e})=>({color:e.colors.gray70,fontStyle:`italic`,fontSize:e.fontSizes.md,textAlign:`center`})),E=`2rem`;function D(e,t){return e*t}function O(e,t){if(e&&t)return`corner`;if(e)return`header`;if(t)return`index`}function k(e){let{element:t,elementHash:i}=e,o=(0,g.useMemo)(()=>{if(!t.arrowData)throw Error(`Table element is missing arrowData`);return new m(t.arrowData)},[i,t.arrowData]),{cssId:s,cssStyles:c,caption:l}=o.styler??{},{numHeaderRows:u,numDataRows:d,numColumns:p,numIndexColumns:h}=o.dimensions,x=f(d),S=e.element.borderMode,C=e.element.hideIndex??!1,w=e.element.hideHeader??!1,O=C?0:h,k=C?p-h:p,M=!!e.heightConfig?.pixelHeight,N=!!e.widthConfig?.pixelWidth,P=!!e.widthConfig?.useContent,F=M&&!w,I=N&&O===1,L=N,R=(0,g.useMemo)(()=>f(u).map(e=>D(e,a(E))),[u]),z=[0];return r(_,{className:`stTable`,"data-testid":`stTable`,children:[c&&n(`style`,{children:c}),n(y,{borderMode:S,hasScrollableHeight:M,tabIndex:M||N?0:void 0,role:M||N?`region`:void 0,"aria-label":M||N?`Scrollable table`:void 0,children:r(b,{id:s,"data-testid":`stTableStyledTable`,useContentWidth:P,hasScrollableWidth:N,children:[u>0&&!w&&A(o,S,F,I,h,R,z,L,C),n(`tbody`,{children:x.length===0?n(`tr`,{children:n(T,{"data-testid":`stTableStyledEmptyTableCell`,colSpan:k||1,borderMode:S,truncateContent:L,children:`empty`})}):x.map(e=>j(o,e,p,S,I,h,z,L,C))})]})}),l&&n(v,{children:l})]})}function A(e,t,r,i,a,s,l,d,f){let p=t===o.BorderMode.NONE||t===o.BorderMode.HORIZONTAL;return n(`thead`,{children:u(e).map((o,u)=>n(`tr`,{children:o.map((o,m)=>{if(f&&m<a)return null;let g=`inherit`;if(p&&e.dimensions.numDataRows>0){let{contentType:t}=e.getCell(0,m);g=h(t)?`right`:`left`}let _=m<a,v=r,y=i&&_,b=v?s[u]:void 0,x=y?l[m]:void 0,S=O(v,y);return n(w,{className:o.cssClass,scope:`col`,borderMode:t,stickyType:S,stickyTopOffset:b,stickyLeftOffset:x,truncateContent:d,style:{textAlign:g},children:n(c,{source:o.name||`\xA0`,allowHTML:!1})},m)})},u))})}function j(e,t,r,i,a,o,s,c,l){return n(`tr`,{children:f(r).map(n=>l&&n<o?null:M(e,t,n,i,a,o,s,c))},t)}function M(e,t,i,a,o,s,u,f){let{type:m,content:g,contentType:_}=e.getCell(t,i),v=d(e,t,i),y=v?.displayContent||l(g,_),b=!1,x={textAlign:h(_)?`right`:`left`};switch(y?.endsWith(`<span class="pd-t"></span>`)&&(y=y.replace(/<span class="pd-t"><\/span>$/,``),b=!0),m){case p.INDEX:{let e=o&&i<s?`index`:void 0,t=e===`index`?u[i]:void 0;return r(w,{scope:`row`,id:v?.cssId,className:v?.cssClass,borderMode:a,stickyType:e,stickyLeftOffset:t,truncateContent:f,children:[b&&n(`span`,{className:`pd-t`}),n(c,{source:y||`\xA0`,allowHTML:!1})]},i)}case p.DATA:return r(S,{id:v?.cssId,className:v?.cssClass,style:x,borderMode:a,truncateContent:f,children:[b&&n(`span`,{className:`pd-t`}),n(c,{source:y||`\xA0`,allowHTML:!1})]},i);default:throw Error(`Cannot parse type "${m}".`)}}var N=(0,g.memo)(k);export{k as Table,N as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/TableChart.esm.Mf0tJ6az.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{h as n}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{t as r}from"./index.esm.CfwaQ0Sp.js";var i=e(t()),a=i.forwardRef(function(e,t){return i.createElement(r,n({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),i.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),i.createElement(`path`,{d:`M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z`}))});a.displayName=`TableChart`;export{a as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/Text.CGzIOlkG.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";var n=(0,e(t(),1).createContext)({});export{n as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/TextArea.DmtkrKuc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{c as a}from"./utils.paqmDQdB.js";import{N as o,T as s,n as c}from"./utils.CmclnrwZ.js";import{t as l}from"./useEmotionTheme.tyjAwN1A.js";import{$t as u,at as d,nt as f}from"./index.D7cltBCg.js";import{n as p}from"./useBasicWidgetState.D6ltrbB8.js";import{t as m}from"./InputInstructions.DHH8nV5v.js";import{t as h}from"./useTextInputAutoExpand.l1PHtGVP.js";import{n as g,r as _,t as v}from"./useUpdateUiValue.CT93eHPI.js";var y=e(t(),1),b=(e,t)=>{let n=`auto`;if(e.heightConfig?.useStretch)n=`100%`;else if(e.heightConfig?.pixelHeight&&e.heightConfig.pixelHeight>0){let r=o(t.labelVisibility?.value)===c.Collapsed?2:30,i=e.heightConfig.pixelHeight-r;n=`${Math.max(0,i)}px`}return n},x=i(`div`,{target:`e1wz7dbj0`})({height:`100%`,display:`flex`,flexDirection:`column`}),S=i(`div`,{target:`e1wz7dbj1`})(({theme:e})=>({border:`${e.sizes.borderWidth} solid`,borderColor:e.colors.widgetBorderColor??e.colors.secondaryBg,borderRadius:e.radii.default,backgroundColor:e.colors.secondaryBg,flexGrow:1,"&:focus-within":{borderColor:e.colors.primary}})),C=i(`textarea`,{target:`e1wz7dbj2`})(({theme:e,$height:t,$maxHeight:n,$resize:r})=>({width:`100%`,height:t,maxHeight:n,minHeight:e.sizes.largestElementHeight,resize:r,fontWeight:e.fontWeights.normal,lineHeight:e.lineHeights.inputWidget,fontFamily:`inherit`,fontSize:e.fontSizes.sm,color:`inherit`,backgroundColor:`transparent`,border:`none`,outline:`none`,boxSizing:`border-box`,display:`block`,overflowY:`auto`,padding:e.spacing.md,"&::placeholder":{color:e.colors.fadedText60},"&:disabled":{cursor:`not-allowed`,color:e.colors.fadedText40,WebkitTextFillColor:e.colors.fadedText40}})),w=(e,t)=>e.getStringValue(t)??null,T=e=>e.default??null,E=e=>e.value??null,ee=(e,t,n,r)=>{t.setStringValue(e,n.value,{fromUi:n.fromUi},r)},D=(0,y.memo)(({disabled:e,element:t,widgetMgr:i,fragmentId:c,outerElement:D})=>{let O=(0,y.useId)(),{width:k,elementRef:A}=u(),[j,M]=(0,y.useState)(!1),[N,P]=(0,y.useState)(!1),F=D.heightConfig?.useContent??!1,I=D.heightConfig?.useStretch??!1,L=b(D,t),R=(0,y.useRef)(null),[z,B]=(0,y.useState)(()=>w(i,t)??null),[V,H]=p({getStateFromWidgetMgr:w,getDefaultStateFromProto:T,getCurrStateFromProto:E,updateWidgetMgrState:ee,element:t,widgetMgr:i,fragmentId:c,formClearBehavior:`resetValueAndRunCallback`,onFormCleared:(0,y.useCallback)(()=>{B(t.default??null),M(!0)},[t]),queryParamBinding:t.queryParamKey?{paramKey:t.queryParamKey,valueType:`string_value`,clearable:!0}:void 0});v(V,z,B,j);let U=l(),W=(0,y.useRef)(!1),{height:G,maxHeight:K,updateScrollHeight:q}=h({textareaRef:R,dependencies:[t.placeholder,...F?[z]:[V]]});(0,y.useLayoutEffect)(()=>{F&&k>0&&!W.current&&(W.current=!0,q())},[F,k,q]);let J=(0,y.useCallback)(()=>{M(!1),H({value:z,fromUi:!0})},[z,H]),Y=(0,y.useCallback)(()=>{j&&J(),P(!1)},[j,J]),X=(0,y.useCallback)(()=>{P(!0)},[]),Z=(0,y.useCallback)(()=>{F&&q()},[F,q]),Q=_({formId:t.formId,maxChars:t.maxChars,setDirty:M,setUiValue:B,setValueWithSource:H,additionalAction:Z}),te=g(t.formId,J,j,i,c,!0),{placeholder:ne,formId:$}=t,re=s({formId:$})?i.allowFormEnterToSubmit($):j,ie=N&&k>a(U.breakpoints.hideWidgetDetails);return r(x,{className:`stTextArea`,"data-testid":`stTextArea`,ref:A,children:[n(d,{label:t.label,disabled:e,labelVisibility:o(t.labelVisibility?.value),htmlFor:O,children:t.help&&n(f,{content:t.help,label:t.label})}),n(S,{"data-testid":`stTextAreaRootElement`,children:n(C,{ref:F?R:void 0,value:z??``,placeholder:ne,onBlur:Y,onFocus:X,onChange:Q,onKeyDown:te,"aria-label":t.label,disabled:e,id:O,rows:3,$height:F?G:L,$maxHeight:F?K:``,$resize:I?`none`:`vertical`})}),ie&&n(m,{dirty:j,value:z??``,maxLength:t.maxChars,type:`multiline`,inForm:s({formId:$}),allowEnterToSubmit:re})]})});export{D as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/TextField.DitOKl5A.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{Ct as n,Dt as r,Et as i,St as a,Tt as o,bt as s,xt as c,yt as l}from"./StreamlitMarkdown.Dt4WoAEs.js";import{r as u,t as d}from"./Autocomplete.BaNFm-08.js";import{t as f}from"./Label.CGzIOlkG.js";import{t as p}from"./Text.CGzIOlkG.js";import{n as m,o as h}from"./useFormValidation.DqEJgcfp.js";import{fn as g,ln as _,mn as v}from"./index.D7cltBCg.js";var y=e(t(),1),b=(0,y.createContext)({}),x=(0,y.createContext)(null),S=u(function(e,t){[e,t]=c(e,t,x);let{validationBehavior:u}=r(m)||{},S=e.validationBehavior??u??`native`,C=(0,y.useRef)(null);[e,C]=c(e,C,d);let[w,T]=n(!e[`aria-label`]&&!e[`aria-labelledby`]),[E,D]=(0,y.useState)(`input`),{labelProps:O,inputProps:k,descriptionProps:A,errorMessageProps:j,...M}=_({...i(e),inputElementType:E,label:T,validationBehavior:S},C),N=(0,y.useCallback)(e=>{C.current=e,e&&D(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[C]),P=a({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:M.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),F=l(e,{global:!0});return delete F.id,y.createElement(o.div,{...F,...P,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":M.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},y.createElement(s,{values:[[f,{...O,ref:w}],[g,{...k,ref:N}],[b,{...k,ref:N}],[v,{role:`presentation`,isInvalid:M.isInvalid,isDisabled:e.isDisabled||!1}],[p,{slots:{description:A,errorMessage:j}}],[h,M]]},P.children))});export{S as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/TextInput.C78pm77f.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,l as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{c as a}from"./utils.paqmDQdB.js";import{R as o}from"./protobuf.Cj15o6C6.js";import{N as s,T as c}from"./utils.CmclnrwZ.js";import{y as l}from"./StreamlitMarkdown.Dt4WoAEs.js";import{t as u}from"./useEmotionTheme.tyjAwN1A.js";import{t as d}from"./TextField.DitOKl5A.js";import{$t as f,_n as p,at as m,nt as ee,pn as h,yn as g}from"./index.D7cltBCg.js";import{n as _}from"./useBasicWidgetState.D6ltrbB8.js";import{t as v}from"./InputInstructions.DHH8nV5v.js";import{n as y,r as b,t as x}from"./useUpdateUiValue.CT93eHPI.js";var S=e(t(),1),C=i(`div`,{target:`ef5iutx0`})(`position:relative;`),w=i(`div`,{target:`ef5iutx1`})(({theme:e,$isFocused:t,$hasIcon:n})=>({display:`flex`,alignItems:`center`,height:e.sizes.minElementHeight,borderWidth:e.sizes.borderWidth,borderStyle:`solid`,borderColor:l(e.colors,t),borderRadius:e.radii.default,backgroundColor:e.colors.secondaryBg,paddingLeft:n?e.spacing.sm:0,overflow:`hidden`,transitionDuration:`200ms`,transitionProperty:`border`,transitionTimingFunction:`cubic-bezier(0.2, 0.8, 0.4, 1)`,"&:focus-within":{borderColor:l(e.colors,!0)}})),T=i(h,{target:`ef5iutx2`})(({theme:e})=>({flex:1,minWidth:0,border:`none`,background:`transparent`,outline:`none`,color:e.colors.bodyText,fontFamily:e.genericFonts.bodyFont,fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.normal,lineHeight:e.lineHeights.inputWidget,paddingTop:e.spacing.sm,paddingBottom:e.spacing.sm,paddingLeft:e.spacing.md,paddingRight:e.spacing.sm,"::placeholder":{color:e.colors.fadedText60},"&[disabled]":{cursor:`not-allowed`,color:e.colors.fadedText40,WebkitTextFillColor:e.colors.fadedText40,backgroundColor:`transparent`}})),E=i(`div`,{target:`ef5iutx3`})(({theme:e,$isMaterialIcon:t})=>({display:`flex`,alignItems:`center`,paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.base,color:t?e.colors.fadedText60:`inherit`,flexShrink:0})),D=i(`button`,{target:`ef5iutx4`})(({theme:e})=>({display:`flex`,alignItems:`center`,background:`none`,border:`none`,cursor:`pointer`,padding:`0 ${e.spacing.sm}`,color:e.colors.bodyText,flexShrink:0,"&:hover:not(:disabled)":{opacity:.7},"&:disabled":{cursor:`not-allowed`,color:e.colors.fadedText40},"&:focus-visible":{outline:`none`,borderRadius:e.radii.default,boxShadow:`inset ${e.shadows.focusRing}`}}));function O({disabled:e,element:t,widgetMgr:i,fragmentId:l}){let[h,O]=(0,S.useState)(()=>k(i,t)??null),{width:F,elementRef:I}=f(),[L,R]=(0,S.useState)(!1),[z,B]=(0,S.useState)(!1),[V,H]=_({getStateFromWidgetMgr:k,getDefaultStateFromProto:A,getCurrStateFromProto:j,updateWidgetMgrState:M,element:t,widgetMgr:i,fragmentId:l,formClearBehavior:`resetValueAndRunCallback`,onFormCleared:(0,S.useCallback)(()=>{O(t.default??null),R(!0)},[t.default]),queryParamBinding:t.queryParamKey?{paramKey:t.queryParamKey,valueType:`string_value`,clearable:!0}:void 0});x(V,h,O,L);let[U,W]=(0,S.useState)(!1),G=u(),K=(0,S.useId)(),{placeholder:q,formId:J,icon:Y,maxChars:X}=t,Z=t.type===o.Type.PASSWORD,Q=(0,S.useCallback)(()=>{R(!1),H({value:h,fromUi:!0})},[h,H]),$=c({formId:J})?i.allowFormEnterToSubmit(J):L,te=U&&F>a(G.breakpoints.hideWidgetDetails),ne=(0,S.useCallback)(()=>{W(!0)},[]),re=(0,S.useCallback)(e=>{if(I.current?.contains(e.relatedTarget)){W(!1);return}L&&Q(),W(!1)},[L,Q,I]),ie=(0,S.useCallback)(()=>{B(e=>!e)},[]),ae=b({formId:J,maxChars:X,setDirty:R,setUiValue:O,setValueWithSource:H}),oe=y(J,Q,L,i,l);return r(C,{className:`stTextInput`,"data-testid":`stTextInput`,ref:I,children:[n(m,{label:t.label,disabled:e,labelVisibility:s(t.labelVisibility?.value),htmlFor:K,children:t.help&&n(ee,{content:t.help,label:t.label})}),n(d,{isDisabled:e,children:r(w,{"data-testid":`stTextInputRootElement`,$isFocused:U,$hasIcon:!!Y,children:[Y&&n(E,{$isMaterialIcon:g(Y),children:n(p,{"data-testid":`stTextInputIcon`,iconValue:Y,size:`base`})}),n(T,{id:K,"aria-label":t.label,value:h??``,placeholder:q,type:z?`text`:N(t),autoComplete:t.autocomplete,onFocus:ne,onBlur:re,onChange:ae,onKeyDown:oe}),Z&&n(D,{type:`button`,onMouseDown:P,onClick:ie,"aria-label":z?`Hide password`:`Show password`,"aria-pressed":z,disabled:e,children:n(p,{iconValue:z?`:material/visibility_off:`:`:material/visibility:`,size:`base`})})]})}),te&&n(v,{dirty:L,value:h??``,maxLength:X,inForm:c({formId:J}),allowEnterToSubmit:$})]})}function k(e,t){return e.getStringValue(t)??null}function A(e){return e.default??null}function j(e){return e.value??null}function M(e,t,n,r){t.setStringValue(e,n.value,{fromUi:n.fromUi},r)}function N(e){return e.type===o.Type.PASSWORD?`password`:`text`}function P(e){e.preventDefault()}var F=(0,S.memo)(O);export{F as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/TimeInput.Dg2pvFk8.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as e,o as t,t as n}from"./rolldown-runtime.DAXXjFlN.js";import{r}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as i,l as a}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{at as o,c as s,j as c,ot as l}from"./utils.paqmDQdB.js";import{Q as u}from"./protobuf.Cj15o6C6.js";import{N as d}from"./utils.CmclnrwZ.js";import{O as f,x as p,y as m}from"./StreamlitMarkdown.Dt4WoAEs.js";import{t as h}from"./useEmotionTheme.tyjAwN1A.js";import{t as g}from"./chevron-down.Dhw5s_Ro.js";import{S as _,Z as v,at as y,nt as b}from"./index.D7cltBCg.js";import{n as x}from"./useBasicWidgetState.D6ltrbB8.js";import{t as S}from"./timepicker.DK3yC_7n.js";import{n as C,r as w,t as T}from"./styled-components.1ewmHVnc.js";var E=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.STATE_CHANGE_TYPE=e.SIZE=e.ENHANCER_POSITION=e.CUSTOM_INPUT_TYPE=e.ADJOINED=void 0,e.STATE_CHANGE_TYPE={change:`change`},e.CUSTOM_INPUT_TYPE={textarea:`textarea`},e.ADJOINED={none:`none`,left:`left`,right:`right`,both:`both`},e.SIZE={mini:`mini`,default:`default`,compact:`compact`,large:`large`},e.ENHANCER_POSITION={start:`start`,end:`end`}})),D=n((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Svg=void 0,t.getSvgStyles=r;var n=(o(),e(l));function r(e){var t=e.$theme,n=e.$size,r=e.$color,i=t.sizing.scale600;n&&(i=t.sizing[n]?t.sizing[n]:typeof n==`number`?`${n}px`:n);var a=`currentColor`;return r&&(a=t.colors[r]?t.colors[r]:r),{display:`inline-block`,fill:a,color:a,height:i,width:i}}var i=(0,n.styled)(`svg`,r);t.Svg=i,i.displayName=`Svg`,i.displayName=`Svg`})),O=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){var t={};for(var n in e)n[0]!==`$`&&(t[n]=e[n]);return t}})),k=n((e=>{function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=d(r()),i=c(),a=D(),o=l(O()),s=[`children`,`title`,`size`,`color`,`overrides`];function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,n){if(!n&&e&&e.__esModule)return e;if(e===null||t(e)!==`object`&&typeof e!=`function`)return{default:e};var r=u(n);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return x(e)||b(e,t)||v(e,t)||_()}function _(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
| 2 |
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(e,t){if(e){if(typeof e==`string`)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}}function y(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function x(e){if(Array.isArray(e))return e}function S(e,t){if(e==null)return{};var n=C(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}e.default=n.forwardRef(function(e,t){var r=e.children,c=e.title,l=e.size,u=e.color,d=e.overrides,p=d===void 0?{}:d,h=S(e,s),_=g((0,i.getOverrides)(p.Svg,a.Svg),2),v=_[0],y=_[1],b=v.__STYLETRON__?m(m({title:c,$color:u,$size:l},h),y):m(m({title:c,color:u,size:l},(0,o.default)(h)),(0,o.default)(y));return n.createElement(v,f({"data-baseweb":`icon`,ref:t},b),c?n.createElement(`title`,null,c):null,r)})})),A=n((t=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=m(r()),a=(o(),e(l)),s=c(),u=f(k()),d=[`title`,`size`,`color`,`overrides`];function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||n(e)!==`object`&&typeof e!=`function`)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e,t){if(e==null)return{};var n=_(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function v(e,t){return C(e)||S(e,t)||b(e,t)||y()}function y(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
| 3 |
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(e,t){if(e){if(typeof e==`string`)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}}function x(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function C(e){if(Array.isArray(e))return e}function w(e,t){var n=v((0,a.useStyletron)(),2)[1],r=e.title,o=r===void 0?`Delete Alt`:r,c=e.size,l=e.color,f=e.overrides,p=f===void 0?{}:f,m=g(e,d),_=(0,s.mergeOverride)({component:n.icons&&n.icons.DeleteAlt?n.icons.DeleteAlt:null},p&&p.Svg?(0,s.toObjectOverride)(p.Svg):{});return i.createElement(u.default,h({viewBox:`0 0 24 24`,ref:t,title:o,size:c,color:l,overrides:{Svg:_}},m),i.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z`}))}t.default=i.forwardRef(w)})),j=n((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRootStyles=t.getInputStyles=t.getInputContainerStyles=t.StyledMaskToggleButton=t.StyledClearIconContainer=t.StyledClearIcon=t.Root=t.InputEnhancer=t.InputContainer=t.Input=void 0;var n=(o(),e(l)),r=E(),i=a(A());function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=(0,n.styled)(`button`,function(e){var t,n=e.$theme,i=e.$size,a=e.$isFocusVisible,o=(t={},u(t,r.SIZE.mini,n.sizing.scale400),u(t,r.SIZE.compact,n.sizing.scale400),u(t,r.SIZE.default,n.sizing.scale300),u(t,r.SIZE.large,n.sizing.scale200),t)[i];return{display:`flex`,alignItems:`center`,borderTopStyle:`none`,borderBottomStyle:`none`,borderLeftStyle:`none`,borderRightStyle:`none`,background:`none`,paddingLeft:o,paddingRight:o,outline:a?`solid 3px ${n.colors.accent}`:`none`,color:n.colors.contentPrimary}});t.StyledMaskToggleButton=d,d.displayName=`StyledMaskToggleButton`,d.displayName=`StyledMaskToggleButton`;var f=(0,n.styled)(`div`,function(e){var t,n=e.$alignTop,i=n===void 0?!1:n,a=e.$size,o=e.$theme,s=(t={},u(t,r.SIZE.mini,o.sizing.scale200),u(t,r.SIZE.compact,o.sizing.scale200),u(t,r.SIZE.default,o.sizing.scale100),u(t,r.SIZE.large,o.sizing.scale0),t)[a];return{display:`flex`,alignItems:i?`flex-start`:`center`,paddingLeft:s,paddingRight:s,paddingTop:i?o.sizing.scale500:`0px`,color:o.colors.contentPrimary}});t.StyledClearIconContainer=f,f.displayName=`StyledClearIconContainer`,f.displayName=`StyledClearIconContainer`;var p=(0,n.styled)(i.default,function(e){var t=e.$theme;return{cursor:`pointer`,outline:e.$isFocusVisible?`solid 3px ${t.colors.accent}`:`none`}});t.StyledClearIcon=p,p.displayName=`StyledClearIcon`,p.displayName=`StyledClearIcon`;function m(e,t){var n;return(n={},u(n,r.SIZE.mini,{paddingTop:t.scale100,paddingBottom:t.scale100,paddingLeft:t.scale550,paddingRight:t.scale550}),u(n,r.SIZE.compact,{paddingTop:t.scale200,paddingBottom:t.scale200,paddingLeft:t.scale550,paddingRight:t.scale550}),u(n,r.SIZE.default,{paddingTop:t.scale400,paddingBottom:t.scale400,paddingLeft:t.scale550,paddingRight:t.scale550}),u(n,r.SIZE.large,{paddingTop:t.scale550,paddingBottom:t.scale550,paddingLeft:t.scale550,paddingRight:t.scale550}),n)[e]}function h(e,t,n,i,a){var o=e===r.ADJOINED.both||e===r.ADJOINED.left&&i!==`rtl`||e===r.ADJOINED.right&&i===`rtl`||a&&i===`rtl`,s=e===r.ADJOINED.both||e===r.ADJOINED.right&&i!==`rtl`||e===r.ADJOINED.left&&i===`rtl`||a&&i!==`rtl`;return{paddingLeft:o?n.scale550:`0px`,paddingRight:s?n.scale550:`0px`}}function g(e,t){var n;return(n={},u(n,r.SIZE.mini,t.font100),u(n,r.SIZE.compact,t.font200),u(n,r.SIZE.default,t.font300),u(n,r.SIZE.large,t.font400),n)[e]}function _(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:i.inputFillDisabled,borderRightColor:i.inputFillDisabled,borderTopColor:i.inputFillDisabled,borderBottomColor:i.inputFillDisabled,backgroundColor:i.inputFillDisabled}:t?{borderLeftColor:i.borderSelected,borderRightColor:i.borderSelected,borderTopColor:i.borderSelected,borderBottomColor:i.borderSelected,backgroundColor:i.inputFillActive}:n?{borderLeftColor:i.inputBorderError,borderRightColor:i.inputBorderError,borderTopColor:i.inputBorderError,borderBottomColor:i.inputBorderError,backgroundColor:i.inputFillError}:r?{borderLeftColor:i.inputBorderPositive,borderRightColor:i.inputBorderPositive,borderTopColor:i.inputBorderPositive,borderBottomColor:i.inputBorderPositive,backgroundColor:i.inputFillPositive}:{borderLeftColor:i.inputBorder,borderRightColor:i.inputBorder,borderTopColor:i.inputBorder,borderBottomColor:i.inputBorder,backgroundColor:i.inputFill}}function v(e,t){var n=t.inputBorderRadius;return e===r.SIZE.mini&&(n=t.inputBorderRadiusMini),{borderTopLeftRadius:n,borderBottomLeftRadius:n,borderTopRightRadius:n,borderBottomRightRadius:n}}var y=function(e){var t=e.$isFocused,n=e.$adjoined,r=e.$error,i=e.$disabled,a=e.$positive,o=e.$size,s=e.$theme,l=e.$theme,u=l.borders,d=l.colors,f=l.sizing,p=l.typography,m=l.animation,y=e.$hasIconTrailing;return c(c(c(c({boxSizing:`border-box`,display:`flex`,overflow:`hidden`,width:`100%`,borderLeftWidth:`2px`,borderRightWidth:`2px`,borderTopWidth:`2px`,borderBottomWidth:`2px`,borderLeftStyle:`solid`,borderRightStyle:`solid`,borderTopStyle:`solid`,borderBottomStyle:`solid`,transitionProperty:`border`,transitionDuration:m.timing200,transitionTimingFunction:m.easeOutCurve},v(o,u)),g(o,p)),_(i,t,r,a,d)),h(n,o,f,s.direction,y))};t.getRootStyles=y;var b=(0,n.styled)(`div`,y);t.Root=b,b.displayName=`Root`,b.displayName=`Root`;function x(e,t){var n;return(n={},u(n,r.SIZE.mini,{paddingRight:t.scale400,paddingLeft:t.scale400}),u(n,r.SIZE.compact,{paddingRight:t.scale400,paddingLeft:t.scale400}),u(n,r.SIZE.default,{paddingRight:t.scale300,paddingLeft:t.scale300}),u(n,r.SIZE.large,{paddingRight:t.scale200,paddingLeft:t.scale200}),n)[e]}function S(e,t,n,r,i){return e?{color:i.inputEnhancerTextDisabled,backgroundColor:i.inputFillDisabled}:t?{color:i.contentPrimary,backgroundColor:i.inputFillActive}:n?{color:i.contentPrimary,backgroundColor:i.inputFillError}:r?{color:i.contentPrimary,backgroundColor:i.inputFillPositive}:{color:i.contentPrimary,backgroundColor:i.inputFill}}var C=(0,n.styled)(`div`,function(e){var t=e.$size,n=e.$disabled,r=e.$isFocused,i=e.$error,a=e.$positive,o=e.$theme,s=o.colors,l=o.sizing,u=o.typography,d=o.animation;return c(c(c({display:`flex`,alignItems:`center`,justifyContent:`center`,transitionProperty:`color, background-color`,transitionDuration:d.timing200,transitionTimingFunction:d.easeOutCurve},g(t,u)),x(t,l)),S(n,r,i,a,s))});t.InputEnhancer=C,C.displayName=`InputEnhancer`,C.displayName=`InputEnhancer`;function w(e,t,n,r,i){return e?{color:i.inputTextDisabled,backgroundColor:i.inputFillDisabled}:t?{color:i.contentPrimary,backgroundColor:i.inputFillActive}:n?{color:i.contentPrimary,backgroundColor:i.inputFillError}:r?{color:i.contentPrimary,backgroundColor:i.inputFillPositive}:{color:i.contentPrimary,backgroundColor:i.inputFill}}var T=function(e){var t=e.$isFocused,n=e.$error,r=e.$disabled,i=e.$positive,a=e.$size,o=e.$theme,s=o.colors,l=o.typography,u=o.animation;return c(c({display:`flex`,width:`100%`,transitionProperty:`background-color`,transitionDuration:u.timing200,transitionTimingFunction:u.easeOutCurve},g(a,l)),w(r,t,n,i,s))};t.getInputContainerStyles=T;var D=(0,n.styled)(`div`,T);t.InputContainer=D,D.displayName=`InputContainer`,D.displayName=`InputContainer`;function O(e,t,n,r){return e?{color:r.inputTextDisabled,"-webkit-text-fill-color":r.inputTextDisabled,caretColor:r.contentPrimary,"::placeholder":{color:r.inputPlaceholderDisabled}}:{color:r.contentPrimary,caretColor:r.contentPrimary,"::placeholder":{color:r.inputPlaceholder}}}var k=function(e){var t=e.$disabled,n=e.$isFocused,r=e.$error,i=e.$size,a=e.$theme,o=a.colors,s=a.sizing,l=a.typography;return c(c(c({boxSizing:`border-box`,backgroundColor:`transparent`,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:`none`,borderRightStyle:`none`,borderTopStyle:`none`,borderBottomStyle:`none`,outline:`none`,width:`100%`,minWidth:0,maxWidth:`100%`,cursor:t?`not-allowed`:`text`,margin:`0`,paddingTop:`0`,paddingBottom:`0`,paddingLeft:`0`,paddingRight:`0`},g(i,l)),m(i,s)),O(t,n,r,o))};t.getInputStyles=k;var j=(0,n.styled)(`input`,k);t.Input=j,j.displayName=`Input`,j.displayName=`Input`})),M=t(r(),1),N=j(),P=w(C);function F({disabled:e,element:t,widgetMgr:n,fragmentId:r}){let[o,c]=x({getStateFromWidgetMgr:I,getDefaultStateFromProto:L,getCurrStateFromProto:R,updateWidgetMgrState:z,element:t,widgetMgr:n,fragmentId:r,queryParamBinding:t.queryParamKey?{paramKey:t.queryParamKey,valueType:`string_value`,clearable:!t.default}:void 0,formClearBehavior:`resetValueOnly`}),l=(0,M.useContext)(f),C=h(),w=_(),{innerHeight:E}=v(),D=t.step?Number(t.step):900,O=Math.ceil(86400/D),k=s(C.sizes.dropdownItemHeight),A=Math.min(s(C.sizes.maxDropdownHeight),E*.7),j=O*k>A?w:0,F=u(t.default)&&!e,H={Select:{props:{disabled:e,overrides:{ControlContainer:{style:({$isFocused:e})=>{let t=m(C.colors,e);return{height:C.sizes.minElementHeight,borderLeftWidth:C.sizes.borderWidth,borderRightWidth:C.sizes.borderWidth,borderTopWidth:C.sizes.borderWidth,borderBottomWidth:C.sizes.borderWidth,borderTopColor:t,borderRightColor:t,borderBottomColor:t,borderLeftColor:t}}},IconsContainer:{style:()=>({paddingRight:C.spacing.sm})},ValueContainer:{style:()=>({lineHeight:C.lineHeights.inputWidget,paddingRight:C.spacing.sm,paddingLeft:C.sizes.tagMarginInsideBorder,paddingBottom:C.spacing.sm,paddingTop:C.spacing.sm,marginLeft:C.spacing.sm})},SingleValue:{style:{fontWeight:C.fontWeights.normal,marginLeft:C.spacing.none},props:{"data-testid":`stTimeInputTimeDisplay`}},Dropdown:{style:()=>({paddingTop:C.spacing.none,paddingBottom:C.spacing.none,paddingLeft:C.spacing.none,paddingRight:C.spacing.none,boxShadow:`none`,maxHeight:`min(${C.sizes.maxDropdownHeight}, 70vh)`})},DropdownContainer:{style:()=>({...p(C),overflow:`hidden`})},DropdownListItem:{component:P},Popover:{props:{ignoreBoundary:l,popoverMargin:s(C.spacing.twoXS),overrides:{Body:{style:()=>({overflow:`hidden`,"--scrollbar-gutter-size":`${j}px`})}}}},Placeholder:{style:()=>({color:C.colors.fadedText60,position:`absolute`})},Input:{style:{position:`relative`,zIndex:C.zIndices.priority}},SelectArrow:{component:g,props:{overrides:{Svg:{style:()=>({width:C.iconSizes.lg,height:C.iconSizes.lg})}}}}}}}},U=(0,M.useCallback)(e=>{c({value:e===null?null:B(e),fromUi:!0})},[c]),W=(0,M.useCallback)(()=>{U(null)},[U]);return a(`div`,{className:`stTimeInput`,"data-testid":`stTimeInput`,children:[i(y,{label:t.label,disabled:e,labelVisibility:d(t.labelVisibility?.value),children:t.help&&i(b,{content:t.help,label:t.label})}),i(S,{format:`24`,step:D,value:u(o)?void 0:V(o),onChange:U,overrides:H,nullable:F,creatable:!0,"aria-label":t.label}),F&&!u(o)&&i(T,{onClick:W,"data-testid":`stTimeInputClearButton`,children:i(N.StyledClearIcon,{overrides:{Svg:{style:{color:C.colors.grayTextColor,padding:C.spacing.threeXS,height:C.sizes.clearIconSize,width:C.sizes.clearIconSize,":hover":{fill:C.colors.bodyText}}}},$isFocusVisible:!1})})]})}function I(e,t){let n=e.getStringValue(t);if(n!==void 0)return n??null}function L(e){return e.default??null}function R(e){return e.value??null}function z(e,t,n,r){t.setStringValue(e,n.value,{fromUi:n.fromUi},r)}function B(e){return`${e.getHours().toString().padStart(2,`0`)}:${e.getMinutes().toString().padStart(2,`0`)}`}function V(e){if(e===null)return null;let[t,n]=e.split(`:`).map(Number),r=new Date;return r.setHours(t),r.setMinutes(n),r}var H=(0,M.memo)(F);export{H as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/Toast.B0eAvksU.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,s as r}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{$ as i}from"./protobuf.Cj15o6C6.js";import{t as a}from"./useEmotionTheme.tyjAwN1A.js";import{i as o}from"./ErrorElement.BlvlqstC.js";import{Ot as s,Yt as c}from"./index.D7cltBCg.js";var l=e(t(),1);function u({element:e}){let{body:t,icon:u,duration:d}=e,f=a();(0,l.useEffect)(()=>{if(f.inSidebar)return;let e=i(d)?d===0?void 0:d*1e3:4e3,n=s.add({body:t,icon:u||void 0},{timeout:e});return()=>{s.close(n)}},[]);let p=n(c,{kind:o.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`. See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information."});return n(r,{children:f.inSidebar&&p})}var d=(0,l.memo)(u);export{d as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/UploadFileInfo.WAP1L8Dh.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
var e=class e{setStatus(t){return new e(this.name,this.size,this.id,t,this.file)}constructor(e,t,n,r,i){this.name=e,this.size=t,this.id=n,this.status=r,this.file=i}};export{e as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/UriUtil.FL3SkPFA.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{et as n,u as r}from"./protobuf.Cj15o6C6.js";var i=(0,e(t(),1).createContext)({locale:window.navigator.language,mapboxToken:void 0,enforceDownloadInNewTab:void 0,resourceCrossOriginMode:void 0,showErrorLinks:r.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO});i.displayName=`LibConfigContext`;var a=Object.defineProperty,o=(e,t)=>a(e,`name`,{value:t,configurable:!0}),s=class{type=3;name=``;prefix=``;value=``;suffix=``;modifier=3;constructor(e,t,n,r,i,a){this.type=e,this.name=t,this.prefix=n,this.value=r,this.suffix=i,this.modifier=a}hasCustomName(){return this.name!==``&&typeof this.name!=`number`}};o(s,`Part`);var c=/[$_\p{ID_Start}]/u,l=/[$_\u200C\u200D\p{ID_Continue}]/u,u=`.*`;function d(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}o(d,`isASCII`);function f(e,t=!1){let n=[],r=0;for(;r<e.length;){let i=e[r],a=o(function(i){if(!t)throw TypeError(i);n.push({type:`INVALID_CHAR`,index:r,value:e[r++]})},`ErrorOrInvalid`);if(i===`*`){n.push({type:`ASTERISK`,index:r,value:e[r++]});continue}if(i===`+`||i===`?`){n.push({type:`OTHER_MODIFIER`,index:r,value:e[r++]});continue}if(i===`\\`){n.push({type:`ESCAPED_CHAR`,index:r++,value:e[r++]});continue}if(i===`{`){n.push({type:`OPEN`,index:r,value:e[r++]});continue}if(i===`}`){n.push({type:`CLOSE`,index:r,value:e[r++]});continue}if(i===`:`){let t=``,i=r+1;for(;i<e.length;){let n=e.substr(i,1);if(i===r+1&&c.test(n)||i!==r+1&&l.test(n)){t+=e[i++];continue}break}if(!t){a(`Missing parameter name at ${r}`);continue}n.push({type:`NAME`,index:r,value:t}),r=i;continue}if(i===`(`){let t=1,i=``,o=r+1,s=!1;if(e[o]===`?`){a(`Pattern cannot start with "?" at ${o}`);continue}for(;o<e.length;){if(!d(e[o],!1)){a(`Invalid character '${e[o]}' at ${o}.`),s=!0;break}if(e[o]===`\\`){i+=e[o++]+e[o++];continue}if(e[o]===`)`){if(t--,t===0){o++;break}}else if(e[o]===`(`&&(t++,e[o+1]!==`?`)){a(`Capturing groups are not allowed at ${o}`),s=!0;break}i+=e[o++]}if(s)continue;if(t){a(`Unbalanced pattern at ${r}`);continue}if(!i){a(`Missing pattern at ${r}`);continue}n.push({type:`REGEX`,index:r,value:i}),r=o;continue}n.push({type:`CHAR`,index:r,value:e[r++]})}return n.push({type:`END`,index:r,value:``}),n}o(f,`lexer`);function p(e,t={}){let n=f(e);t.delimiter??=`/#?`,t.prefixes??=`./`;let r=`[^${m(t.delimiter)}]+?`,i=[],a=0,c=0,l=new Set,d=o(e=>{if(c<n.length&&n[c].type===e)return n[c++].value},`tryConsume`),p=o(()=>d(`OTHER_MODIFIER`)??d(`ASTERISK`),`tryConsumeModifier`),h=o(e=>{let t=d(e);if(t!==void 0)return t;let{type:r,index:i}=n[c];throw TypeError(`Unexpected ${r} at ${i}, expected ${e}`)},`mustConsume`),g=o(()=>{let e=``,t;for(;t=d(`CHAR`)??d(`ESCAPED_CHAR`);)e+=t;return e},`consumeText`),_=o(e=>e,`DefaultEncodePart`),v=t.encodePart||_,y=``,b=o(e=>{y+=e},`appendToPendingFixedValue`),x=o(()=>{y.length&&(i.push(new s(3,``,``,v(y),``,3)),y=``)},`maybeAddPartFromPendingFixedValue`),S=o((e,t,n,o,c)=>{let d=3;switch(c){case`?`:d=1;break;case`*`:d=0;break;case`+`:d=2;break}if(!t&&!n&&d===3){b(e);return}if(x(),!t&&!n){if(!e)return;i.push(new s(3,``,``,v(e),``,d));return}let f;f=n?n===`*`?u:n:r;let p=2;f===r?(p=1,f=``):f===u&&(p=0,f=``);let m;if(t?m=t:n&&(m=a++),l.has(m))throw TypeError(`Duplicate name '${m}'.`);l.add(m),i.push(new s(p,m,v(e),f,v(o),d))},`addPart`);for(;c<n.length;){let e=d(`CHAR`),n=d(`NAME`),r=d(`REGEX`);if(!n&&!r&&(r=d(`ASTERISK`)),n||r){let i=e??``;t.prefixes.indexOf(i)===-1&&(b(i),i=``),x();let a=p();S(i,n,r,``,a);continue}let i=e??d(`ESCAPED_CHAR`);if(i){b(i);continue}if(d(`OPEN`)){let e=g(),t=d(`NAME`),n=d(`REGEX`);!t&&!n&&(n=d(`ASTERISK`));let r=g();h(`CLOSE`);let i=p();S(e,t,n,r,i);continue}x(),h(`END`)}return i}o(p,`parse`);function m(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}o(m,`escapeString`);function h(e){return e&&e.ignoreCase?`ui`:`u`}o(h,`flags`);function g(e,t,n){return v(p(e,n),t,n)}o(g,`stringToRegexp`);function _(e){switch(e){case 0:return`*`;case 1:return`?`;case 2:return`+`;case 3:return``}}o(_,`modifierToString`);function v(e,t,n={}){n.delimiter??=`/#?`,n.prefixes??=`./`,n.sensitive??=!1,n.strict??=!1,n.end??=!0,n.start??=!0,n.endsWith=``;let r=n.start?`^`:``;for(let i of e){if(i.type===3){i.modifier===3?r+=m(i.value):r+=`(?:${m(i.value)})${_(i.modifier)}`;continue}t&&t.push(i.name);let e=`[^${m(n.delimiter)}]+?`,a=i.value;if(i.type===1?a=e:i.type===0&&(a=u),!i.prefix.length&&!i.suffix.length){i.modifier===3||i.modifier===1?r+=`(${a})${_(i.modifier)}`:r+=`((?:${a})${_(i.modifier)})`;continue}if(i.modifier===3||i.modifier===1){r+=`(?:${m(i.prefix)}(${a})${m(i.suffix)})`,r+=_(i.modifier);continue}r+=`(?:${m(i.prefix)}`,r+=`((?:${a})(?:`,r+=m(i.suffix),r+=m(i.prefix),r+=`(?:${a}))*)${m(i.suffix)})`,i.modifier===0&&(r+=`?`)}let i=`[${m(n.endsWith)}]|$`,a=`[${m(n.delimiter)}]`;if(n.end)return n.strict||(r+=`${a}?`),n.endsWith.length?r+=`(?=${i})`:r+=`$`,new RegExp(r,h(n));n.strict||(r+=`(?:${a}(?=${i}))?`);let o=!1;if(e.length){let t=e[e.length-1];t.type===3&&t.modifier===3&&(o=n.delimiter.indexOf(t)>-1)}return o||(r+=`(?=${a}|${i})`),new RegExp(r,h(n))}o(v,`partsToRegexp`);var y={delimiter:``,prefixes:``,sensitive:!0,strict:!0},b={delimiter:`.`,prefixes:``,sensitive:!0,strict:!0},x={delimiter:`/`,prefixes:`/`,sensitive:!0,strict:!0};function S(e,t){return e.length?e[0]===`/`?!0:!t||e.length<2?!1:(e[0]==`\\`||e[0]==`{`)&&e[1]==`/`:!1}o(S,`isAbsolutePathname`);function C(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}o(C,`maybeStripPrefix`);function w(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}o(w,`maybeStripSuffix`);function T(e){return!e||e.length<2?!1:e[0]===`[`||(e[0]===`\\`||e[0]===`{`)&&e[1]===`[`}o(T,`treatAsIPv6Hostname`);var E=[`ftp`,`file`,`http`,`https`,`ws`,`wss`];function D(e){if(!e)return!0;for(let t of E)if(e.test(t))return!0;return!1}o(D,`isSpecialScheme`);function O(e,t){if(e=C(e,`#`),t||e===``)return e;let n=new URL(`https://example.com`);return n.hash=e,n.hash?n.hash.substring(1,n.hash.length):``}o(O,`canonicalizeHash`);function k(e,t){if(e=C(e,`?`),t||e===``)return e;let n=new URL(`https://example.com`);return n.search=e,n.search?n.search.substring(1,n.search.length):``}o(k,`canonicalizeSearch`);function A(e,t){return t||e===``?e:T(e)?V(e):B(e)}o(A,`canonicalizeHostname`);function j(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.password=e,n.password}o(j,`canonicalizePassword`);function M(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.username=e,n.username}o(M,`canonicalizeUsername`);function N(e,t,n){if(n||e===``)return e;if(t&&!E.includes(t))return new URL(`${t}:${e}`).pathname;let r=e[0]==`/`;return e=new URL(r?e:`/-`+e,`https://example.com`).pathname,r||(e=e.substring(2,e.length)),e}o(N,`canonicalizePathname`);function P(e,t,n){return I(t)===e&&(e=``),n||e===``?e:H(e)}o(P,`canonicalizePort`);function F(e,t){return e=w(e,`:`),t||e===``?e:L(e)}o(F,`canonicalizeProtocol`);function I(e){switch(e){case`ws`:case`http`:return`80`;case`wws`:case`https`:return`443`;case`ftp`:return`21`;default:return``}}o(I,`defaultPortForProtocol`);function L(e){if(e===``)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw TypeError(`Invalid protocol '${e}'.`)}o(L,`protocolEncodeCallback`);function R(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.username=e,t.username}o(R,`usernameEncodeCallback`);function z(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.password=e,t.password}o(z,`passwordEncodeCallback`);function B(e){if(e===``)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw TypeError(`Invalid hostname '${e}'`);let t=new URL(`https://example.com`);return t.hostname=e,t.hostname}o(B,`hostnameEncodeCallback`);function V(e){if(e===``)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}o(V,`ipv6HostnameEncodeCallback`);function H(e){if(e===``||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw TypeError(`Invalid port '${e}'.`)}o(H,`portEncodeCallback`);function U(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.pathname=e[0]===`/`?e:`/-`+e,e[0]===`/`?t.pathname:t.pathname.substring(2,t.pathname.length)}o(U,`standardURLPathnameEncodeCallback`);function W(e){return e===``?e:new URL(`data:${e}`).pathname}o(W,`pathURLPathnameEncodeCallback`);function G(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.search=e,t.search.substring(1,t.search.length)}o(G,`searchEncodeCallback`);function K(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.hash=e,t.hash.substring(1,t.hash.length)}o(K,`hashEncodeCallback`);var q=class{#e;#t=[];#n={};#r=0;#i=1;#a=0;#o=0;#s=0;#c=0;#l=!1;constructor(e){this.#e=e}get result(){return this.#n}parse(){for(this.#t=f(this.#e,!0);this.#r<this.#t.length;this.#r+=this.#i){if(this.#i=1,this.#t[this.#r].type===`END`){if(this.#o===0){this.#f(),this.#C()?this.#u(9,1):this.#S()?this.#u(8,1):this.#u(7,0);continue}else if(this.#o===2){this.#p(5);continue}this.#u(10,0);break}if(this.#s>0)if(this.#T())--this.#s;else continue;if(this.#w()){this.#s+=1;continue}switch(this.#o){case 0:this.#g()&&this.#p(1);break;case 1:if(this.#g()){this.#k();let e=7,t=1;this.#_()?(e=2,t=3):this.#l&&(e=2),this.#u(e,t)}break;case 2:this.#v()?this.#p(3):(this.#x()||this.#S()||this.#C())&&this.#p(5);break;case 3:this.#y()?this.#u(4,1):this.#v()&&this.#u(5,1);break;case 4:this.#v()&&this.#u(5,1);break;case 5:this.#E()?this.#c+=1:this.#D()&&--this.#c,this.#b()&&!this.#c?this.#u(6,1):this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 6:this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 7:this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 8:this.#C()&&this.#u(9,1);break;case 9:break;case 10:break}}this.#n.hostname!==void 0&&this.#n.port===void 0&&(this.#n.port=``)}#u(e,t){switch(this.#o){case 0:break;case 1:this.#n.protocol=this.#O();break;case 2:break;case 3:this.#n.username=this.#O();break;case 4:this.#n.password=this.#O();break;case 5:this.#n.hostname=this.#O();break;case 6:this.#n.port=this.#O();break;case 7:this.#n.pathname=this.#O();break;case 8:this.#n.search=this.#O();break;case 9:this.#n.hash=this.#O();break;case 10:break}this.#o!==0&&e!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(e)&&(this.#n.hostname??=``),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(e)&&(this.#n.pathname??=this.#l?`/`:``),[1,2,3,4,5,6,7].includes(this.#o)&&e===9&&(this.#n.search??=``)),this.#d(e,t)}#d(e,t){this.#o=e,this.#a=this.#r+t,this.#r+=t,this.#i=0}#f(){this.#r=this.#a,this.#i=0}#p(e){this.#f(),this.#o=e}#m(e){return e<0&&(e=this.#t.length-e),e<this.#t.length?this.#t[e]:this.#t[this.#t.length-1]}#h(e,t){let n=this.#m(e);return n.value===t&&(n.type===`CHAR`||n.type===`ESCAPED_CHAR`||n.type===`INVALID_CHAR`)}#g(){return this.#h(this.#r,`:`)}#_(){return this.#h(this.#r+1,`/`)&&this.#h(this.#r+2,`/`)}#v(){return this.#h(this.#r,`@`)}#y(){return this.#h(this.#r,`:`)}#b(){return this.#h(this.#r,`:`)}#x(){return this.#h(this.#r,`/`)}#S(){if(this.#h(this.#r,`?`))return!0;if(this.#t[this.#r].value!==`?`)return!1;let e=this.#m(this.#r-1);return e.type!==`NAME`&&e.type!==`REGEX`&&e.type!==`CLOSE`&&e.type!==`ASTERISK`}#C(){return this.#h(this.#r,`#`)}#w(){return this.#t[this.#r].type==`OPEN`}#T(){return this.#t[this.#r].type==`CLOSE`}#E(){return this.#h(this.#r,`[`)}#D(){return this.#h(this.#r,`]`)}#O(){let e=this.#t[this.#r],t=this.#m(this.#a).index;return this.#e.substring(t,e.index)}#k(){let e={};Object.assign(e,y),e.encodePart=L;let t=g(this.#O(),void 0,e);this.#l=D(t)}};o(q,`Parser`);var J=[`protocol`,`username`,`password`,`hostname`,`port`,`pathname`,`search`,`hash`],Y=`*`;function X(e,t){if(typeof e!=`string`)throw TypeError(`parameter 1 is not of type 'string'.`);let n=new URL(e,t);return{protocol:n.protocol.substring(0,n.protocol.length-1),username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search===``?void 0:n.search.substring(1,n.search.length),hash:n.hash===``?void 0:n.hash.substring(1,n.hash.length)}}o(X,`extractValues`);function Z(e,t){return t?$(e):e}o(Z,`processBaseURLString`);function Q(e,t,n){let r;if(typeof t.baseURL==`string`)try{r=new URL(t.baseURL),t.protocol===void 0&&(e.protocol=Z(r.protocol.substring(0,r.protocol.length-1),n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&(e.username=Z(r.username,n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&t.password===void 0&&(e.password=Z(r.password,n)),t.protocol===void 0&&t.hostname===void 0&&(e.hostname=Z(r.hostname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&(e.port=Z(r.port,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&(e.pathname=Z(r.pathname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&(e.search=Z(r.search.substring(1,r.search.length),n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&t.hash===void 0&&(e.hash=Z(r.hash.substring(1,r.hash.length),n))}catch{throw TypeError(`invalid baseURL '${t.baseURL}'.`)}if(typeof t.protocol==`string`&&(e.protocol=F(t.protocol,n)),typeof t.username==`string`&&(e.username=M(t.username,n)),typeof t.password==`string`&&(e.password=j(t.password,n)),typeof t.hostname==`string`&&(e.hostname=A(t.hostname,n)),typeof t.port==`string`&&(e.port=P(t.port,e.protocol,n)),typeof t.pathname==`string`){if(e.pathname=t.pathname,r&&!S(e.pathname,n)){let t=r.pathname.lastIndexOf(`/`);t>=0&&(e.pathname=Z(r.pathname.substring(0,t+1),n)+e.pathname)}e.pathname=N(e.pathname,e.protocol,n)}return typeof t.search==`string`&&(e.search=k(t.search,n)),typeof t.hash==`string`&&(e.hash=O(t.hash,n)),e}o(Q,`applyInit`);function $(e){return e.replace(/([+*?:{}()\\])/g,`\\$1`)}o($,`escapePatternString`);function ee(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}o(ee,`escapeRegexpString`);function te(e,t){t.delimiter??=`/#?`,t.prefixes??=`./`,t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=``;let n=`[^${ee(t.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,i=``;for(let a=0;a<e.length;++a){let o=e[a];if(o.type===3){if(o.modifier===3){i+=$(o.value);continue}i+=`{${$(o.value)}}${_(o.modifier)}`;continue}let s=o.hasCustomName(),c=!!o.suffix.length||!!o.prefix.length&&(o.prefix.length!==1||!t.prefixes.includes(o.prefix)),l=a>0?e[a-1]:null,u=a<e.length-1?e[a+1]:null;if(!c&&s&&o.type===1&&o.modifier===3&&u&&!u.prefix.length&&!u.suffix.length)if(u.type===3){let e=u.value.length>0?u.value[0]:``;c=r.test(e)}else c=!u.hasCustomName();if(!c&&!o.prefix.length&&l&&l.type===3){let e=l.value[l.value.length-1];c=t.prefixes.includes(e)}c&&(i+=`{`),i+=$(o.prefix),s&&(i+=`:${o.name}`),o.type===2?i+=`(${o.value})`:o.type===1?s||(i+=`(${n})`):o.type===0&&(!s&&(!l||l.type===3||l.modifier!==3||c||o.prefix!==``)?i+=`*`:i+=`(.*)`),o.type===1&&s&&o.suffix.length&&r.test(o.suffix[0])&&(i+=`\\`),i+=$(o.suffix),c&&(i+=`}`),o.modifier!==3&&(i+=_(o.modifier))}return i}o(te,`partsToPattern`);var ne=class{#e;#t={};#n={};#r={};#i={};#a=!1;constructor(e={},t,n){try{let r;if(typeof t==`string`?r=t:n=t,typeof e==`string`){let t=new q(e);if(t.parse(),e=t.result,r===void 0&&typeof e.protocol!=`string`)throw TypeError(`A base URL must be provided for a relative constructor string.`);e.baseURL=r}else{if(!e||typeof e!=`object`)throw TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`);if(r)throw TypeError(`parameter 1 is not of type 'string'.`)}typeof n>`u`&&(n={ignoreCase:!1});let i={ignoreCase:n.ignoreCase===!0},a={pathname:Y,protocol:Y,username:Y,password:Y,hostname:Y,port:Y,search:Y,hash:Y};this.#e=Q(a,e,!0),I(this.#e.protocol)===this.#e.port&&(this.#e.port=``);let o;for(o of J){if(!(o in this.#e))continue;let e={},t=this.#e[o];switch(this.#n[o]=[],o){case`protocol`:Object.assign(e,y),e.encodePart=L;break;case`username`:Object.assign(e,y),e.encodePart=R;break;case`password`:Object.assign(e,y),e.encodePart=z;break;case`hostname`:Object.assign(e,b),T(t)?e.encodePart=V:e.encodePart=B;break;case`port`:Object.assign(e,y),e.encodePart=H;break;case`pathname`:D(this.#t.protocol)?(Object.assign(e,x,i),e.encodePart=U):(Object.assign(e,y,i),e.encodePart=W);break;case`search`:Object.assign(e,y,i),e.encodePart=G;break;case`hash`:Object.assign(e,y,i),e.encodePart=K;break}try{this.#i[o]=p(t,e),this.#t[o]=v(this.#i[o],this.#n[o],e),this.#r[o]=te(this.#i[o],e),this.#a=this.#a||this.#i[o].some(e=>e.type===2)}catch{throw TypeError(`invalid ${o} pattern '${this.#e[o]}'.`)}}}catch(e){throw TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}get[Symbol.toStringTag](){return`URLPattern`}test(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return!1;try{n=typeof e==`object`?Q(n,e,!1):Q(n,X(e,t),!1)}catch{return!1}let r;for(r of J)if(!this.#t[r].exec(n[r]))return!1;return!0}exec(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return;try{n=typeof e==`object`?Q(n,e,!1):Q(n,X(e,t),!1)}catch{return null}let r={};t?r.inputs=[e,t]:r.inputs=[e];let i;for(i of J){let e=this.#t[i].exec(n[i]);if(!e)return null;let t={};for(let[n,r]of this.#n[i].entries())(typeof r==`string`||typeof r==`number`)&&(t[r]=e[n+1]);r[i]={input:n[i]??``,groups:t}}return r}static compareComponent(e,t,n){let r=o((e,t)=>{for(let n of[`type`,`modifier`,`prefix`,`value`,`suffix`]){if(e[n]<t[n])return-1;if(e[n]!==t[n])return 1}return 0},`comparePart`),i=new s(3,``,``,``,``,3),a=new s(0,``,``,``,``,3),c=o((e,t)=>{let n=0;for(;n<Math.min(e.length,t.length);++n){let i=r(e[n],t[n]);if(i)return i}return e.length===t.length?0:r(e[n]??i,t[n]??i)},`comparePartList`);return!t.#r[e]&&!n.#r[e]?0:t.#r[e]&&!n.#r[e]?c(t.#i[e],[a]):!t.#r[e]&&n.#r[e]?c([a],n.#i[e]):c(t.#i[e],n.#i[e])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#a}};o(ne,`URLPattern`),globalThis.URLPattern||(globalThis.URLPattern=ne);function re(e,t){let n,r,i;try{n=new URLPattern(e),r=new URLPattern({protocol:n.protocol,hostname:n.hostname}),i=new URL(t)}catch{return!1}return i.hostname===`localhost`&&r.test(i)?!0:n.test(i)}function ie(e,t){if(t)try{let r=new URL(t);return n.BACKEND_BASE_URL&&r.origin===new URL(n.BACKEND_BASE_URL).origin?e:void 0}catch{return n.BACKEND_BASE_URL?e:void 0}}export{re as n,i as r,ie as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/Video.DetIaZs0.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,t as r}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{t as i}from"./loglevel.BJBYxGId.js";import{B as a}from"./protobuf.Cj15o6C6.js";import{t as o}from"./useCrossOriginAttribute.BtRvgKAM.js";var s=e(t(),1),c=e(i(),1),l=r(`iframe`,{target:`eers5hb0`})(({theme:e})=>({colorScheme:`normal`,border:`none`,padding:e.spacing.none,margin:e.spacing.none,width:`100%`,aspectRatio:`16 / 9`,borderRadius:e.radii.default,overflow:`hidden`})),u=r(`video`,{target:`eers5hb1`})(({theme:e})=>({display:`block`,width:`100%`,borderRadius:e.radii.default,overflow:`hidden`})),d=(0,c.getLogger)(`Video`);function f({element:e,endpoints:t,elementMgr:r}){let i=(0,s.useRef)(null),{type:c,url:f,startTime:p,subtitles:m,endTime:h,loop:g,autoplay:_,muted:v}=e,y=o(f),b=(0,s.useMemo)(()=>{if(!e.id)return!0;let t=r.getElementState(e.id,`preventAutoplay`);return t||r.setElementState(e.id,`preventAutoplay`,!0),t??!1},[e.id,r]),x=(0,s.useMemo)(()=>JSON.stringify(m?m.map(e=>t.buildMediaURL(`${e.url}`)):[]),[m,t]);return(0,s.useEffect)(()=>{let e=JSON.parse(x);e.length!==0&&e.forEach(e=>{t.checkSourceUrlResponse(e,`Video Subtitle`)})},[x,t]),(0,s.useEffect)(()=>{i.current&&(i.current.currentTime=p)},[p]),(0,s.useEffect)(()=>{let t=i.current,n=()=>{t&&(t.currentTime=e.startTime)};return t&&t.addEventListener(`loadedmetadata`,n),()=>{t&&t.removeEventListener(`loadedmetadata`,n)}},[e]),(0,s.useEffect)(()=>{let e=i.current;if(!e)return;let t=!1,n=()=>{h>0&&e.currentTime>=h&&(g?(e.currentTime=p||0,e.play()):t||(t=!0,e.pause()))};return h>0&&e.addEventListener(`timeupdate`,n),()=>{e&&h>0&&e.removeEventListener(`timeupdate`,n)}},[h,g,p]),(0,s.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{g&&(e.currentTime=p||0,e.play())};return e.addEventListener(`ended`,t),()=>{e&&e.removeEventListener(`ended`,t)}},[g,p]),c===a.Type.YOUTUBE_IFRAME?n(l,{className:`stVideo`,"data-testid":`stVideo`,title:f,src:(e=>{let t=new URL(e);if(p&&!isNaN(p)&&t.searchParams.append(`start`,p.toString()),h&&!isNaN(h)&&t.searchParams.append(`end`,h.toString()),g){t.searchParams.append(`loop`,`1`);let e=t.pathname.split(`/`).pop();e&&t.searchParams.append(`playlist`,e)}return _&&t.searchParams.append(`autoplay`,`1`),v&&t.searchParams.append(`mute`,`1`),t.toString()})(f),allow:`autoplay; encrypted-media`,allowFullScreen:!0}):n(u,{className:`stVideo`,"data-testid":`stVideo`,ref:i,controls:!0,muted:v,autoPlay:_&&!b,src:t.buildMediaURL(f),crossOrigin:y,onError:e=>{let n=e.currentTarget.src;d.error(`Client Error: Video source error - ${n}`),t.sendClientErrorToHost(`Video`,`Video source failed to load`,`onerror triggered`,n)},children:m?.map((e,r)=>n(`track`,{kind:`captions`,src:t.buildMediaURL(`${e.url}`),label:`${e.label}`,default:r===0,"data-testid":`stVideoSubtitle`},r))})}var p=(0,s.memo)(f);export{p as default};
|
.venv/Lib/site-packages/streamlit/static/static/js/ordinal.CVZABass.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{n as e}from"./init.Cs1-1e_z.js";var t=class extends Map{constructor(e,t=o){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(i(this,e),t)}delete(e){return super.delete(a(this,e))}},n=class extends Set{constructor(e,t=o){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let t of e)this.add(t)}has(e){return super.has(r(this,e))}add(e){return super.add(i(this,e))}delete(e){return super.delete(a(this,e))}};function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function a({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function o(e){return typeof e==`object`&&e?e.valueOf():e}var s=Symbol(`implicit`);function c(){var n=new t,r=[],i=[],a=s;function o(e){let t=n.get(e);if(t===void 0){if(a!==s)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return o.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return o},o.range=function(e){return arguments.length?(i=Array.from(e),o):i.slice()},o.unknown=function(e){return arguments.length?(a=e,o):a},o.copy=function(){return c(r,i).unknown(a)},e.apply(o,arguments),o}export{c as n,n as r,s as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/packet-7NZHBO7P.DWKhXcMh.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import"./chunk-KEIR6QF5.DNzq6p3w.js";import{S as e}from"./mermaid-parser.core.BuPiplVR.js";export{e as createPacketServices};
|
.venv/Lib/site-packages/streamlit/static/static/js/pandasStylerUtils.BJFOH1dd.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/Lib/site-packages/streamlit/static/static/js/path.CLRsGyms.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{a as e}from"./timer.DF-DFW6C.js";function t(e){return function(){return e}}function n(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(e==null)n=null;else{let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);n=t}return t},()=>new e(n)}export{t as n,n as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/pegDiagram-2B236MQR.DmrPHpv7.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{t as e,u as t}from"./mermaid-parser.core.BuPiplVR.js";import{n}from"./chunk-Y2CYZVJY.DsF7k-Jl.js";import{t as r}from"./src.C0WDTvq6.js";import"./chunk-WYO6CB5R.DmUx6_h4.js";import"./chunk-VAUOI2AC.DbH4Fnmc.js";import{n as i,r as a,t as o}from"./chunk-MOJQB5TN.C3ChYxVP.js";import{t as s}from"./chunk-JWPE2WC7.A3RzWITa.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
|
.venv/Lib/site-packages/streamlit/static/static/js/pie-RZYD4A2V.BZ3-FSzG.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import"./chunk-KEIR6QF5.DNzq6p3w.js";import{b as e}from"./mermaid-parser.core.BuPiplVR.js";export{e as createPieServices};
|
.venv/Lib/site-packages/streamlit/static/static/js/pieDiagram-ENE6RG2P.B41uAIsw.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{n as e}from"./ordinal.CVZABass.js";import{n as t}from"./mermaid-parser.core.BuPiplVR.js";import{n}from"./chunk-Y2CYZVJY.DsF7k-Jl.js";import{t as r}from"./src.C0WDTvq6.js";import{H as i,K as a,U as o,a as s,c,f as l,v as u,w as d,x as f,y as p}from"./chunk-WYO6CB5R.DmUx6_h4.js";import{n as m}from"./path.CLRsGyms.js";import{m as h}from"./dist.BQ4V7D6H.js";import{t as g}from"./arc.fPFX-On8.js";import{t as _}from"./array.BifhSqXX.js";import{i as v,p as y}from"./chunk-ICXQ74PX.C6iVuh7H.js";import{t as b}from"./chunk-VAUOI2AC.DbH4Fnmc.js";import{t as x}from"./chunk-JWPE2WC7.A3RzWITa.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=l.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:n(()=>structuredClone(k),`getConfig`),clear:n(()=>{D=new Map,O=E.showData,s()},`clear`),setDiagramTitle:a,getDiagramTitle:d,setAccTitle:o,getAccTitle:p,setAccDescription:i,getAccDescription:u,addSection:n(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),r.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:n(()=>D,`getSections`),setShowData:n(e=>{O=e},`setShowData`),getShowData:n(()=>O,`getShowData`)},j=n((e,t)=>{x(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:n(async e=>{let n=await t(`pie`,e);r.debug(n),j(n,A)},`parse`)},N=n(e=>`
|
| 2 |
+
.pieCircle{
|
| 3 |
+
stroke: ${e.pieStrokeColor};
|
| 4 |
+
stroke-width : ${e.pieStrokeWidth};
|
| 5 |
+
opacity : ${e.pieOpacity};
|
| 6 |
+
}
|
| 7 |
+
.pieCircle.highlighted{
|
| 8 |
+
scale: 1.05;
|
| 9 |
+
opacity: 1;
|
| 10 |
+
}
|
| 11 |
+
.pieCircle.highlightedOnHover:hover{
|
| 12 |
+
transition-duration: 250ms;
|
| 13 |
+
scale: 1.05;
|
| 14 |
+
opacity: 1;
|
| 15 |
+
}
|
| 16 |
+
.pieOuterCircle{
|
| 17 |
+
stroke: ${e.pieOuterStrokeColor};
|
| 18 |
+
stroke-width: ${e.pieOuterStrokeWidth};
|
| 19 |
+
fill: none;
|
| 20 |
+
}
|
| 21 |
+
.pieTitleText {
|
| 22 |
+
text-anchor: middle;
|
| 23 |
+
font-size: ${e.pieTitleTextSize};
|
| 24 |
+
fill: ${e.pieTitleTextColor};
|
| 25 |
+
font-family: ${e.fontFamily};
|
| 26 |
+
}
|
| 27 |
+
.slice {
|
| 28 |
+
font-family: ${e.fontFamily};
|
| 29 |
+
fill: ${e.pieSectionTextColor};
|
| 30 |
+
font-size:${e.pieSectionTextSize};
|
| 31 |
+
// fill: white;
|
| 32 |
+
}
|
| 33 |
+
.legend text {
|
| 34 |
+
fill: ${e.pieLegendTextColor};
|
| 35 |
+
font-family: ${e.fontFamily};
|
| 36 |
+
font-size: ${e.pieLegendTextSize};
|
| 37 |
+
}
|
| 38 |
+
`,`getStyles`),P=n(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:n((t,n,i,a)=>{r.debug(`rendering pie chart
|
| 39 |
+
`+t);let o=a.db,s=f(),l=v(o.getConfig(),s.pie),u=b(n),d=u.append(`g`);d.attr(`transform`,`translate(225,225)`);let{themeVariables:p}=s,[m]=y(p.pieOuterStrokeWidth);m??=2;let h=l.legendPosition,_=l.textPosition,x=l.donutHole>0&&l.donutHole<=.9?l.donutHole:0,S=g().innerRadius(x*185).outerRadius(185),C=g().innerRadius(185*_).outerRadius(185*_),w=d.append(`g`);w.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let T=o.getSections(),E=P(T),D=[p.pie1,p.pie2,p.pie3,p.pie4,p.pie5,p.pie6,p.pie7,p.pie8,p.pie9,p.pie10,p.pie11,p.pie12],O=0;T.forEach(e=>{O+=e});let k=E.filter(e=>(e.data.value/O*100).toFixed(0)!==`0`),A=e(D).domain([...T.keys()]);w.selectAll(`mySlices`).data(k).enter().append(`path`).attr(`d`,S).attr(`fill`,e=>A(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return l.highlightSlice===`hover`?t+=` highlightedOnHover`:l.highlightSlice===e.data.label&&(t+=` highlighted`),t}),w.selectAll(`mySlices`).data(k).enter().append(`text`).text(e=>(e.data.value/O*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+C.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let j=d.append(`text`).text(o.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),M=[...T.entries()].map(([e,t])=>({label:e,value:t})),N=d.selectAll(`.legend`).data(M).enter().append(`g`).attr(`class`,`legend`);N.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>A(e.label)).style(`stroke`,e=>A(e.label)),N.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>o.getShowData()?`${e.label} [${e.value}]`:e.label);let F=Math.max(...N.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),I=450,L=490,R=M.length*22;switch(h){case`center`:N.attr(`transform`,(e,t)=>{let n=22*M.length/2,r=-F/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:I+=R,N.attr(`transform`,(e,t)=>`translate(${-F/2-22}, ${t*22-185})`),w.attr(`transform`,()=>`translate(0, ${R+22})`);break;case`bottom`:I+=R,N.attr(`transform`,(e,t)=>{let n=-F/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(-207,`+(t*22-n)+`)`}),w.attr(`transform`,()=>`translate(${F+18+4}, 0)`);break;default:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(216,`+(t*22-n)+`)`});break}let z=j.node()?.getBoundingClientRect().width??0,B=450/2-z/2,V=450/2+z/2,H=Math.min(0,B),U=Math.max(L,V)-H;u.attr(`viewBox`,`${H} 0 ${U} ${I}`),c(u,I,U,l.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
.venv/Lib/site-packages/streamlit/static/static/js/preload-helper.DYl5dUZ5.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
var e=function(e,t){return new URL(e,t).href},t={},n=function(n,r,i){let a=Promise.resolve();if(r&&r.length>0){let n=document.getElementsByTagName(`link`),o=document.querySelector(`meta[property=csp-nonce]`),s=o?.nonce||o?.getAttribute(`nonce`);function c(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function l(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}a=c(r.map(r=>{if(r=e(r,i),r=l(r),r in t)return;t[r]=!0;let a=r.endsWith(`.css`);for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.href===r&&(!a||t.rel===`stylesheet`))return}let o=document.createElement(`link`);if(o.rel=a?`stylesheet`:`modulepreload`,a||(o.as=`script`),o.crossOrigin=``,o.href=r,s&&o.setAttribute(`nonce`,s),document.head.appendChild(o),a)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}))}function o(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return a.then(e=>{for(let t of e||[])t.status===`rejected`&&o(t.reason);return n().catch(o)})};export{n as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/protobuf.Cj15o6C6.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/Lib/site-packages/streamlit/static/static/js/purify.es.DY32g7DN.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
function e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function r(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
| 2 |
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(e,i){return t(e)||n(e,i)||a(e,i)||r()}function a(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}var o=Object.entries,s=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,d=Object.freeze,f=Object.seal,p=Object.create,m=typeof Reflect<`u`&&Reflect,h=m.apply,ee=m.construct;d||=function(e){return e},f||=function(e){return e},h||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ee||=function(e){return new e(...[...arguments].slice(1))};var te=w(Array.prototype.forEach),ne=w(Array.prototype.lastIndexOf),re=w(Array.prototype.pop),g=w(Array.prototype.push),ie=w(Array.prototype.splice),_=Array.isArray,ae=w(String.prototype.toLowerCase),oe=w(String.prototype.toString),se=w(String.prototype.match),ce=w(String.prototype.replace),le=w(String.prototype.indexOf),ue=w(String.prototype.trim),de=w(Number.prototype.toString),fe=w(Boolean.prototype.toString),v=typeof BigInt>`u`?null:w(BigInt.prototype.toString),y=typeof Symbol>`u`?null:w(Symbol.prototype.toString),b=w(Object.prototype.hasOwnProperty),x=w(Object.prototype.toString),S=w(RegExp.prototype.test),C=T(TypeError);function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return h(e,t,n)}}function T(e){return function(){return ee(e,[...arguments])}}function E(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae;if(s&&s(e,null),!_(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(c(t)||(t[r]=e),i=e)}e[i]=!0}return e}function D(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function O(e){let t=p(null);for(let r of o(e)){var n=i(r,2);let a=n[0],o=n[1];b(e,a)&&(_(o)?t[a]=D(o):o&&typeof o==`object`&&o.constructor===Object?t[a]=O(o):t[a]=o)}return t}function pe(e){switch(typeof e){case`string`:return e;case`number`:return de(e);case`boolean`:return fe(e);case`bigint`:return v?v(e):`0`;case`symbol`:return y?y(e):`Symbol()`;case`undefined`:return x(e);case`function`:case`object`:{if(e===null)return x(e);let t=e,n=k(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:x(e)}return x(e)}default:return x(e)}}function k(e,t){for(;e!==null;){let n=u(e,t);if(n){if(n.get)return w(n.get);if(typeof n.value==`function`)return w(n.value)}e=l(e)}function n(){return null}return n}function me(e){try{return S(e,``),!0}catch{return!1}}var he=d(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),ge=d(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),_e=d([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ve=d([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ye=d(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),be=d([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),xe=d([`#text`]),Se=d(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Ce=d(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),we=d(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Te=d([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ee=f(/{{[\w\W]*|^[\w\W]*}}/g),De=f(/<%[\w\W]*|^[\w\W]*%>/g),Oe=f(/\${[\w\W]*/g),ke=f(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ae=f(/^aria-[\-\w]+$/),je=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Me=f(/^(?:\w+script|data):/i),Ne=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pe=f(/^html$/i),Fe=f(/^[a-z][.\w]*(-[.\w]+)+$/i),Ie=f(/<[/\w!]/g),Le=f(/<[/\w]/g),Re=f(/<\/no(script|embed|frames)/i),ze=f(/\/>/i),A={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Be=function(){return typeof window>`u`?null:window},Ve=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},He=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(e,t,n,r){return b(e,t)&&_(e[t])?E(r.base?O(r.base):{},e[t],r.transform):n};function Ue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Be(),t=e=>Ue(e);if(t.version=`3.4.11`,t.removed=[],!e||!e.document||e.document.nodeType!==A.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,m=e.trustedTypes,h=c.prototype,ee=k(h,`cloneNode`),de=k(h,`remove`),fe=k(h,`nextSibling`),v=k(h,`childNodes`),y=k(h,`parentNode`),x=k(h,`shadowRoot`),w=k(h,`attributes`),T=s&&s.prototype?k(s.prototype,`nodeType`):null,D=s&&s.prototype?k(s.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let M,N=``,We,Ge=!1,Ke=0,qe=function(){if(Ke>0)throw C(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},P=function(e){qe(),Ke++;try{return M.createHTML(e)}finally{Ke--}},Je=function(e){qe(),Ke++;try{return M.createScriptURL(e)}finally{Ke--}},Ye=function(){return Ge||=(We=Ve(m,i),!0),We},Xe=n,Ze=Xe.implementation,Qe=Xe.createNodeIterator,$e=Xe.createDocumentFragment,et=Xe.getElementsByTagName,tt=r.importNode,F=He();t.isSupported=typeof o==`function`&&typeof y==`function`&&Ze&&Ze.createHTMLDocument!==void 0;let nt=Ee,rt=De,it=Oe,at=ke,ot=Ae,st=Me,ct=Ne,lt=Fe,ut=je,I=null,dt=E({},[...he,...ge,..._e,...ye,...xe]),L=null,ft=E({},[...Se,...Ce,...we,...Te]),R=Object.seal(p(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pt=null,mt=null,z=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ht=!0,gt=!0,_t=!1,vt=!0,B=!1,yt=!0,V=!1,bt=!1,xt=null,St=null,Ct=!1,H=!1,wt=!1,Tt=!1,Et=!0,Dt=!1,Ot=`user-content-`,kt=!0,At=!1,U={},W=null,jt=E({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Mt=null,Nt=E({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Pt=null,Ft=E({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),It=`http://www.w3.org/1998/Math/MathML`,Lt=`http://www.w3.org/2000/svg`,G=`http://www.w3.org/1999/xhtml`,K=G,Rt=!1,zt=null,Bt=E({},[It,Lt,G],oe),Vt=d([`mi`,`mo`,`mn`,`ms`,`mtext`]),Ht=E({},Vt),Ut=d([`annotation-xml`]),Wt=E({},Ut),Gt=E({},[`title`,`style`,`font`,`a`,`script`]),Kt=null,qt=[`application/xhtml+xml`,`text/html`],q=null,J=null,Jt=n.createElement(`form`),Yt=function(e){return e instanceof RegExp||e instanceof Function},Xt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(J&&J===e)return;(!e||typeof e!=`object`)&&(e={}),e=O(e),Kt=qt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,q=Kt===`application/xhtml+xml`?oe:ae,I=j(e,`ALLOWED_TAGS`,dt,{transform:q}),L=j(e,`ALLOWED_ATTR`,ft,{transform:q}),zt=j(e,`ALLOWED_NAMESPACES`,Bt,{transform:oe}),Pt=j(e,`ADD_URI_SAFE_ATTR`,Ft,{transform:q,base:Ft}),Mt=j(e,`ADD_DATA_URI_TAGS`,Nt,{transform:q,base:Nt}),W=j(e,`FORBID_CONTENTS`,jt,{transform:q}),pt=j(e,`FORBID_TAGS`,O({}),{transform:q}),mt=j(e,`FORBID_ATTR`,O({}),{transform:q}),U=b(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?O(e.USE_PROFILES):e.USE_PROFILES:!1,ht=e.ALLOW_ARIA_ATTR!==!1,gt=e.ALLOW_DATA_ATTR!==!1,_t=e.ALLOW_UNKNOWN_PROTOCOLS||!1,vt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=e.SAFE_FOR_TEMPLATES||!1,yt=e.SAFE_FOR_XML!==!1,V=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,wt=e.RETURN_DOM_FRAGMENT||!1,Tt=e.RETURN_TRUSTED_TYPE||!1,Ct=e.FORCE_BODY||!1,Et=e.SANITIZE_DOM!==!1,Dt=e.SANITIZE_NAMED_PROPS||!1,kt=e.KEEP_CONTENT!==!1,At=e.IN_PLACE||!1,ut=me(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:je,K=typeof e.NAMESPACE==`string`?e.NAMESPACE:G,Ht=b(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?O(e.MATHML_TEXT_INTEGRATION_POINTS):E({},Vt),Wt=b(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?O(e.HTML_INTEGRATION_POINTS):E({},Ut);let t=b(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?O(e.CUSTOM_ELEMENT_HANDLING):p(null);if(R=p(null),b(t,`tagNameCheck`)&&Yt(t.tagNameCheck)&&(R.tagNameCheck=t.tagNameCheck),b(t,`attributeNameCheck`)&&Yt(t.attributeNameCheck)&&(R.attributeNameCheck=t.attributeNameCheck),b(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(R.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),f(R),B&&(gt=!1),wt&&(H=!0),U&&(I=E({},xe),L=p(null),U.html===!0&&(E(I,he),E(L,Se)),U.svg===!0&&(E(I,ge),E(L,Ce),E(L,Te)),U.svgFilters===!0&&(E(I,_e),E(L,Ce),E(L,Te)),U.mathMl===!0&&(E(I,ye),E(L,we),E(L,Te))),z.tagCheck=null,z.attributeCheck=null,b(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?z.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(I===dt&&(I=O(I)),E(I,e.ADD_TAGS,q))),b(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?z.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(L===ft&&(L=O(L)),E(L,e.ADD_ATTR,q))),b(e,`ADD_URI_SAFE_ATTR`)&&_(e.ADD_URI_SAFE_ATTR)&&E(Pt,e.ADD_URI_SAFE_ATTR,q),b(e,`FORBID_CONTENTS`)&&_(e.FORBID_CONTENTS)&&(W===jt&&(W=O(W)),E(W,e.FORBID_CONTENTS,q)),b(e,`ADD_FORBID_CONTENTS`)&&_(e.ADD_FORBID_CONTENTS)&&(W===jt&&(W=O(W)),E(W,e.ADD_FORBID_CONTENTS,q)),kt&&(I[`#text`]=!0),V&&E(I,[`html`,`head`,`body`]),I.table&&(E(I,[`tbody`]),delete pt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw C(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw C(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=M;M=e.TRUSTED_TYPES_POLICY;try{N=P(``)}catch(e){throw M=t,e}}else e.TRUSTED_TYPES_POLICY===null?(M=void 0,N=``):(M===void 0&&(M=Ye()),M&&typeof N==`string`&&(N=P(``)));d&&d(e),J=e},Zt=E({},[...ge,..._e,...ve]),Qt=E({},[...ye,...be]),$t=function(e,t,n){return t.namespaceURI===G?e===`svg`:t.namespaceURI===It?e===`svg`&&(n===`annotation-xml`||Ht[n]):!!Zt[e]},en=function(e,t,n){return t.namespaceURI===G?e===`math`:t.namespaceURI===Lt?e===`math`&&Wt[n]:!!Qt[e]},tn=function(e,t,n){return t.namespaceURI===Lt&&!Wt[n]||t.namespaceURI===It&&!Ht[n]?!1:!Qt[e]&&(Gt[e]||!Zt[e])},nn=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:K,tagName:`template`});let n=ae(e.tagName),r=ae(t.tagName);return zt[e.namespaceURI]?e.namespaceURI===Lt?$t(n,t,r):e.namespaceURI===It?en(n,t,r):e.namespaceURI===G?tn(n,t,r):!!(Kt===`application/xhtml+xml`&&zt[e.namespaceURI]):!1},Y=function(e){g(t.removed,{element:e});try{y(e).removeChild(e)}catch{if(de(e),!y(e))throw C(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},rn=function(e){let t=v(e);if(t){let e=[];te(t,t=>{g(e,t)}),te(e,e=>{try{de(e)}catch{}})}let n=w(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},X=function(e,n){try{g(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{g(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(H||wt)try{Y(n)}catch{}else try{n.setAttribute(e,``)}catch{}},an=function(e){let t=w(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||L[q(i)]))try{e.removeAttribute(i)}catch{}}},on=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(T?T(e):e.nodeType)===A.element&&an(e);let n=v(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},sn=function(e){let t=null,r=null;if(Ct)e=`<remove></remove>`+e;else{let t=se(e,/^[\r\n\t ]+/);r=t&&t[0]}Kt===`application/xhtml+xml`&&K===G&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=M?P(e):e;if(K===G)try{t=new u().parseFromString(i,Kt)}catch{}if(!t||!t.documentElement){t=Ze.createDocument(K,`template`,null);try{t.documentElement.innerHTML=Rt?N:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),K===G?et.call(t,V?`html`:`body`)[0]:V?t.documentElement:a},cn=function(e){return Qe.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ln=function(e){return e=ce(e,nt,` `),e=ce(e,rt,` `),e=ce(e,it,` `),e},un=function(e){e.normalize();let t=Qe.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=ln(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&te(r,e=>{Z(e.content)&&un(e.content)})},dn=function(e){let t=D?D(e):null;return typeof t!=`string`||q(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==w(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==T(e)||e.childNodes!==v(e)},Z=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return T(e)===A.documentFragment}catch{return!1}},Q=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return typeof T(e)==`number`}catch{return!1}};function $(e,n,r){e.length!==0&&te(e,e=>{e.call(t,n,r,J)})}let fn=function(e,t){return!!(yt&&e.hasChildNodes()&&!Q(e.firstElementChild)&&S(Ie,e.textContent)&&S(Ie,e.innerHTML)||yt&&e.namespaceURI===G&&t===`style`&&Q(e.firstElementChild)||e.nodeType===A.processingInstruction||yt&&e.nodeType===A.comment&&S(Le,e.data))},pn=function(e,t){if(!pt[t]&&_n(t)&&(R.tagNameCheck instanceof RegExp&&S(R.tagNameCheck,t)||R.tagNameCheck instanceof Function&&R.tagNameCheck(t)))return!1;if(kt&&!W[t]){let t=y(e),n=v(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=At?n[i]:ee(n[i],!0);t.insertBefore(r,fe(e))}}}return Y(e),!0},mn=function(e){if($(F.beforeSanitizeElements,e,null),dn(e))return Y(e),!0;let n=q(D?D(e):e.nodeName);if($(F.uponSanitizeElement,e,{tagName:n,allowedTags:I}),fn(e,n))return Y(e),!0;if(pt[n]||!(z.tagCheck instanceof Function&&z.tagCheck(n))&&!I[n])return pn(e,n);if((T?T(e):e.nodeType)===A.element&&!nn(e)||(n===`noscript`||n===`noembed`||n===`noframes`)&&S(Re,e.innerHTML))return Y(e),!0;if(B&&e.nodeType===A.text){let n=ln(e.textContent);e.textContent!==n&&(g(t.removed,{element:e.cloneNode()}),e.textContent=n)}return $(F.afterSanitizeElements,e,null),!1},hn=function(e,t,r){if(mt[t]||Et&&(t===`id`||t===`name`)&&(r in n||r in Jt))return!1;let i=L[t]||z.attributeCheck instanceof Function&&z.attributeCheck(t,e);if(!(gt&&S(at,t))&&!(ht&&S(ot,t))){if(!i){if(!(_n(e)&&(R.tagNameCheck instanceof RegExp&&S(R.tagNameCheck,e)||R.tagNameCheck instanceof Function&&R.tagNameCheck(e))&&(R.attributeNameCheck instanceof RegExp&&S(R.attributeNameCheck,t)||R.attributeNameCheck instanceof Function&&R.attributeNameCheck(t,e))||t===`is`&&R.allowCustomizedBuiltInElements&&(R.tagNameCheck instanceof RegExp&&S(R.tagNameCheck,r)||R.tagNameCheck instanceof Function&&R.tagNameCheck(r))))return!1}else if(!Pt[t]&&!S(ut,ce(r,ct,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&le(r,`data:`)===0&&Mt[e])&&!(_t&&!S(st,ce(r,ct,``)))&&r)return!1}return!0},gn=E({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),_n=function(e){return!gn[ae(e)]&&S(lt,e)},vn=function(e,t,n,r){if(M&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!n)switch(m.getAttributeType(e,t)){case`TrustedHTML`:return P(r);case`TrustedScriptURL`:return Je(r)}return r},yn=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),dn(e)?Y(e):re(t.removed)}catch{X(n,e)}},bn=function(e){$(F.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||dn(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0},r=t.length,i=q(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=q(o),u=c,d=o===`value`?u:ue(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,$(F.uponSanitizeAttribute,e,n),d=n.attrValue,Dt&&(l===`id`||l===`name`)&&le(d,Ot)!==0&&(X(o,e),d=Ot+d),yt&&S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){X(o,e);continue}if(l===`attributename`&&se(d,`href`)){X(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){X(o,e);continue}if(!vt&&S(ze,d)){X(o,e);continue}if(B&&(d=ln(d)),!hn(i,l,d)){X(o,e);continue}d=vn(i,l,s,d),d!==u&&yn(e,o,s,d)}}$(F.afterSanitizeAttributes,e,null)},xn=function(e){let t=null,n=cn(e);for($(F.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if($(F.uponSanitizeShadowNode,t,null),mn(t),bn(t),Z(t.content)&&xn(t.content),(T?T(t):t.nodeType)===A.element){let e=x(t);Z(e)&&(Sn(e),xn(e))}$(F.afterSanitizeShadowDOM,e,null)},Sn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){xn(e.shadow);continue}let n=e.node,r=(T?T(n):n.nodeType)===A.element,i=v(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=D?D(n):null;if(typeof e==`string`&&q(e)===`template`){let e=n.content;Z(e)&&t.push({node:e,shadow:null})}}if(r){let e=x(n);Z(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Rt=!e,Rt&&(e=`<!-->`),typeof e!=`string`&&!Q(e)&&(e=pe(e),typeof e!=`string`))throw C(`dirty is not a string, aborting`);if(!t.isSupported)return e;bt?(I=xt,L=St):Xt(n),(F.uponSanitizeElement.length>0||F.uponSanitizeAttribute.length>0)&&(I=O(I)),F.uponSanitizeAttribute.length>0&&(L=O(L)),t.removed=[];let c=At&&typeof e!=`string`&&Q(e);if(c){let t=D?D(e):e.nodeName;if(typeof t==`string`){let e=q(t);if(!I[e]||pt[e])throw C(`root node is forbidden and cannot be sanitized in-place`)}if(dn(e))throw C(`root node is clobbered and cannot be sanitized in-place`);try{Sn(e)}catch(t){throw rn(e),t}}else if(Q(e))i=sn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===A.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Sn(a);else{if(!H&&!B&&!V&&e.indexOf(`<`)===-1)return M&&Tt?P(e):e;if(i=sn(e),!i)return H?null:Tt?N:``}i&&Ct&&Y(i.firstChild);let l=cn(c?e:i);try{for(;o=l.nextNode();)mn(o),bn(o),Z(o.content)&&xn(o.content)}catch(t){throw c&&rn(e),t}if(c)return te(t.removed,e=>{e.element&&on(e.element)}),B&&un(e),e;if(H){if(B&&un(i),wt)for(s=$e.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(L.shadowroot||L.shadowrootmode)&&(s=tt.call(r,s,!0)),s}let u=V?i.outerHTML:i.innerHTML;return V&&I[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&S(Pe,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
| 3 |
+
`+u),B&&(u=ln(u)),M&&Tt?P(u):u},t.setConfig=function(){Xt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),bt=!0,xt=I,St=L},t.clearConfig=function(){J=null,bt=!1,xt=null,St=null,M=We,N=``},t.isValidAttribute=function(e,t,n){return J||Xt({}),hn(q(e),q(t),n)},t.addHook=function(e,t){typeof t==`function`&&b(F,e)&&g(F[e],t)},t.removeHook=function(e,t){if(b(F,e)){if(t!==void 0){let n=ne(F[e],t);return n===-1?void 0:ie(F[e],n,1)[0]}return re(F[e])}},t.removeHooks=function(e){b(F,e)&&(F[e]=[])},t.removeAllHooks=function(){F=He()},t}var M=Ue();export{M as t};
|
.venv/Lib/site-packages/streamlit/static/static/js/quadrantDiagram-ABIIQ3AL.CX3XaH4X.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{t as e}from"./linear.CMFRyYgz.js";import{o as t}from"./src.BuB3-yYq.js";import{n}from"./chunk-Y2CYZVJY.DsF7k-Jl.js";import{t as r}from"./src.C0WDTvq6.js";import{D as i,H as a,K as o,U as s,a as c,c as l,f as u,v as d,w as f,x as p,y as m,z as h}from"./chunk-WYO6CB5R.DmUx6_h4.js";var g=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:t,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:t,26:8,27:2,28:r,55:i,56:a,57:o},{18:t,26:9,27:2,28:r,55:i,56:a,57:o},e(s,[2,33],{29:10}),e(c,[2,61]),e(c,[2,62]),e(c,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(s,[2,34]),{27:46,55:i,56:a,57:o},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(B,[2,64]),e(B,[2,66]),e(B,[2,67]),e(B,[2,70]),e(B,[2,71]),e(B,[2,72]),e(B,[2,73]),e(B,[2,74]),e(B,[2,75]),e(B,[2,76]),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(s,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},e(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(B,[2,65]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},e(V,[2,24]),e(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},e(l,[2,29],{10:fe}),e(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(l,[2,49],{10:fe}),e(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},e(Q,[2,26]),e(l,[2,50],{10:fe}),e(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n(function(e){var t=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
| 2 |
+
`+h.showPosition()+`
|
| 3 |
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:n(function(){return this._more=!0,this},`more`),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
| 4 |
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
| 5 |
+
`+t+`^`},`showPosition`),test_match:n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
| 6 |
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:n(function(){return this.next()||this.lex()},`lex`),begin:n(function(e){this.conditionStack.push(e)},`begin`),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:n(function(e){this.begin(e)},`pushState`),stateStackSize:n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:n(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return n($,`Parser`),$.prototype=me,me.Parser=$,new $})();g.parser=g;var _=g,v=i(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{n(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:u.quadrantChart?.chartWidth||500,chartWidth:u.quadrantChart?.chartHeight||500,titlePadding:u.quadrantChart?.titlePadding||10,titleFontSize:u.quadrantChart?.titleFontSize||20,quadrantPadding:u.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:u.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:u.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:u.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:u.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:u.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:u.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:u.quadrantChart?.pointTextPadding||5,pointLabelFontSize:u.quadrantChart?.pointLabelFontSize||12,pointRadius:u.quadrantChart?.pointRadius||5,xAxisPosition:u.quadrantChart?.xAxisPosition||`top`,yAxisPosition:u.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:u.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:u.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,r.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){r.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){r.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(t){let{quadrantSpace:n}=t,{quadrantHeight:r,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=n,s=e().domain([0,1]).range([i,o+i]),c=e().domain([0,1]).range([r+a,a]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:s(e.x),y:c(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:s(e.x),y:c(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{n(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}n(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}n(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}n(C,`validateSizeInPixels`);function w(e){return h(e.trim(),p())}n(w,`textSanitizer`);var T=new y;function E(e){T.setData({quadrant1Text:w(e.text)})}n(E,`setQuadrant1Text`);function D(e){T.setData({quadrant2Text:w(e.text)})}n(D,`setQuadrant2Text`);function O(e){T.setData({quadrant3Text:w(e.text)})}n(O,`setQuadrant3Text`);function k(e){T.setData({quadrant4Text:w(e.text)})}n(k,`setQuadrant4Text`);function A(e){T.setData({xAxisLeftText:w(e.text)})}n(A,`setXAxisLeftText`);function j(e){T.setData({xAxisRightText:w(e.text)})}n(j,`setXAxisRightText`);function M(e){T.setData({yAxisTopText:w(e.text)})}n(M,`setYAxisTopText`);function N(e){T.setData({yAxisBottomText:w(e.text)})}n(N,`setYAxisBottomText`);function P(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}n(P,`parseStyles`);function F(e,t,n,r,i){let a=P(i);T.addPoints([{x:n,y:r,text:w(e.text),className:t,...a}])}n(F,`addPoint`);function I(e,t){T.addClass(e,P(t))}n(I,`addClass`);function L(e){T.setConfig({chartWidth:e})}n(L,`setWidth`);function R(e){T.setConfig({chartHeight:e})}n(R,`setHeight`);function z(){let{themeVariables:e,quadrantChart:t}=p();return t&&T.setConfig(t),T.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),T.setData({titleText:f()}),T.build()}n(z,`getQuadrantData`);var B={parser:_,db:{setWidth:L,setHeight:R,setQuadrant1Text:E,setQuadrant2Text:D,setQuadrant3Text:O,setQuadrant4Text:k,setXAxisLeftText:A,setXAxisRightText:j,setYAxisTopText:M,setYAxisBottomText:N,parseStyles:P,addPoint:F,addClass:I,getQuadrantData:z,clear:n(function(){T.clear(),c()},`clear`),setAccTitle:s,getAccTitle:m,setDiagramTitle:o,getDiagramTitle:f,getAccDescription:d,setAccDescription:a},renderer:{draw:n((e,i,a,o)=>{function s(e){return e===`top`?`hanging`:`middle`}n(s,`getDominantBaseLine`);function c(e){return e===`left`?`start`:`middle`}n(c,`getTextAnchor`);function u(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}n(u,`getTransformation`);let d=p();r.debug(`Rendering quadrant chart
|
| 7 |
+
`+e);let f=d.securityLevel,m;f===`sandbox`&&(m=t(`#i`+i));let h=t(f===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`[id="${i}"]`),g=h.append(`g`).attr(`class`,`main`),_=d.quadrantChart?.chartWidth??500,v=d.quadrantChart?.chartHeight??500;l(h,v,_,d.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),o.db.setHeight(v),o.db.setWidth(_);let y=o.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,s(y.title.horizontalPos)).attr(`text-anchor`,c(y.title.verticalPos)).attr(`transform`,u(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>c(e.text.verticalPos)).attr(`transform`,e=>u(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>s(e.horizontalPos)).attr(`text-anchor`,e=>c(e.verticalPos)).attr(`transform`,e=>u(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>c(e.text.verticalPos)).attr(`transform`,e=>u(e.text))},`draw`)},styles:n(()=>``,`styles`)};export{B as diagram};
|
.venv/Lib/site-packages/streamlit/static/static/js/radar-I7S5WNFK.DT7qHh2w.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import"./chunk-KEIR6QF5.DNzq6p3w.js";import{v as e}from"./mermaid-parser.core.BuPiplVR.js";export{e as createRadarServices};
|
.venv/Lib/site-packages/streamlit/static/static/js/railroad-3IZDKUUU.DbNeWKiO.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import"./chunk-KEIR6QF5.DNzq6p3w.js";import{g as e}from"./mermaid-parser.core.BuPiplVR.js";export{e as createRailroadServices};
|
.venv/Lib/site-packages/streamlit/static/static/js/railroad-abnf-AHOZXSZD.DFq3h4T0.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import"./chunk-KEIR6QF5.DNzq6p3w.js";import{m as e}from"./mermaid-parser.core.BuPiplVR.js";export{e as createRailroadAbnfServices};
|
.venv/Lib/site-packages/streamlit/static/static/js/railroad-ebnf-EBAXGLYW.CdyxDZQf.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import"./chunk-KEIR6QF5.DNzq6p3w.js";import{f as e}from"./mermaid-parser.core.BuPiplVR.js";export{e as createRailroadEbnfServices};
|
.venv/Lib/site-packages/streamlit/static/static/js/railroad-peg-LSFZ7HO6.5SvWHfyH.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import"./chunk-KEIR6QF5.DNzq6p3w.js";import{u as e}from"./mermaid-parser.core.BuPiplVR.js";export{e as createRailroadPegServices};
|
.venv/Lib/site-packages/streamlit/static/static/js/railroadDiagram-RFXS5EU6.C65sdjdI.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{g as e,t}from"./mermaid-parser.core.BuPiplVR.js";import{n}from"./chunk-Y2CYZVJY.DsF7k-Jl.js";import{t as r}from"./src.C0WDTvq6.js";import"./chunk-WYO6CB5R.DmUx6_h4.js";import"./chunk-VAUOI2AC.DbH4Fnmc.js";import{n as i,r as a,t as o}from"./chunk-MOJQB5TN.C3ChYxVP.js";import{t as s}from"./chunk-JWPE2WC7.A3RzWITa.js";var c=e().Railroad.parser.LangiumParser,l=n(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(u(e)))},`populateDb`),f={parser:{parse:n(e=>{o.clear(),r.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[Railroad Parser] Parsed rules:`,i.rules.length),d(i),r.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{f as diagram};
|
.venv/Lib/site-packages/streamlit/static/static/js/range.EplFIxc7.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
function e(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}export{e as t};
|