Spaces:
Runtime error
Runtime error
Commit
•
6a1c399
1
Parent(s):
dbcc145
Upload folder using huggingface_hub
Browse files- Dockerfile +12 -0
- README.md +6 -6
- __init__.py +0 -0
- __pycache__/app.cpython-310.pyc +0 -0
- app.py +30 -0
- requirements.txt +1 -0
- src/.gitignore +9 -0
- src/README.md +37 -0
- src/backend/gradio_foliumtest/__init__.py +4 -0
- src/backend/gradio_foliumtest/foliumtest.py +30 -0
- src/backend/gradio_foliumtest/foliumtest.pyi +64 -0
- src/backend/gradio_foliumtest/templates/component/index.js +2377 -0
- src/backend/gradio_foliumtest/templates/component/style.css +1 -0
- src/backend/gradio_foliumtest/templates/example/index.js +88 -0
- src/backend/gradio_foliumtest/templates/example/style.css +1 -0
- src/demo/__init__.py +0 -0
- src/demo/app.py +30 -0
- src/frontend/Example.svelte +19 -0
- src/frontend/Index.svelte +74 -0
- src/frontend/package-lock.json +981 -0
- src/frontend/package.json +21 -0
- src/pyproject.toml +49 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
COPY --link --chown=1000 . .
|
7 |
+
|
8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
9 |
+
|
10 |
+
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
|
11 |
+
|
12 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
-
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
+
|
2 |
---
|
3 |
+
tags: [gradio-custom-component, gradio-template-Fallback]
|
4 |
+
title: gradio_foliumtest V0.0.1
|
5 |
+
colorFrom: green
|
6 |
+
colorTo: yellow
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
+
license: apache-2.0
|
10 |
---
|
|
|
|
__init__.py
ADDED
File without changes
|
__pycache__/app.cpython-310.pyc
ADDED
Binary file (1.03 kB). View file
|
|
app.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from gradio_foliumtest import FoliumTest
|
4 |
+
from typing import Literal
|
5 |
+
from folium import Map
|
6 |
+
import random
|
7 |
+
|
8 |
+
|
9 |
+
LAT_LONG_MAP = {
|
10 |
+
"New York City": (40.7128, -74.0060),
|
11 |
+
"London": (51.5074, -0.1278),
|
12 |
+
"San Francisco": (37.7749, -122.4194),
|
13 |
+
"Tokyo": (35.6762, 139.6503),
|
14 |
+
"Miami": (25.7617, -80.1918),
|
15 |
+
}
|
16 |
+
|
17 |
+
def get_city(city: Literal["New York City", "London", "San Francisco", "Tokyo", "Miami"]):
|
18 |
+
city = city or "Miami"
|
19 |
+
return Map(location=LAT_LONG_MAP[city], zoom_start=12)
|
20 |
+
|
21 |
+
with gr.Blocks() as demo:
|
22 |
+
with gr.Row():
|
23 |
+
with gr.Column():
|
24 |
+
city = gr.Radio(choices=["New York City", "London", "San Francisco", "Tokyo", "Miami"],
|
25 |
+
label="City")
|
26 |
+
with gr.Column():
|
27 |
+
map_ = FoliumTest(label="Folium Map")
|
28 |
+
city.select(get_city, city, map_)
|
29 |
+
|
30 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio_foliumtest-0.0.1-py3-none-any.whl
|
src/.gitignore
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.eggs/
|
2 |
+
dist/
|
3 |
+
*.pyc
|
4 |
+
__pycache__/
|
5 |
+
*.py[cod]
|
6 |
+
*$py.class
|
7 |
+
__tmp/*
|
8 |
+
*.pyi
|
9 |
+
node_modules
|
src/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# gradio_foliumtest
|
3 |
+
|
4 |
+
Create a map with folium and display it on the web with Gradio!
|
5 |
+
|
6 |
+
## Example usage
|
7 |
+
|
8 |
+
```python
|
9 |
+
import gradio as gr
|
10 |
+
from gradio_foliumtest import FoliumTest
|
11 |
+
from typing import Literal
|
12 |
+
from folium import Map
|
13 |
+
|
14 |
+
|
15 |
+
LAT_LONG_MAP = {
|
16 |
+
"New York City": (40.7128, -74.0060),
|
17 |
+
"London": (51.5074, -0.1278),
|
18 |
+
"San Francisco": (37.7749, -122.4194),
|
19 |
+
"Tokyo": (35.6762, 139.6503),
|
20 |
+
"Miami": (25.7617, -80.1918),
|
21 |
+
}
|
22 |
+
|
23 |
+
def get_city(city: Literal["New York City", "London", "San Francisco", "Tokyo", "Miami"]):
|
24 |
+
city = city or "Miami"
|
25 |
+
return Map(location=LAT_LONG_MAP[city], zoom_start=12)
|
26 |
+
|
27 |
+
with gr.Blocks() as demo:
|
28 |
+
with gr.Row():
|
29 |
+
with gr.Column():
|
30 |
+
city = gr.Radio(choices=["New York City", "London", "San Francisco", "Tokyo", "Miami"],
|
31 |
+
label="City")
|
32 |
+
with gr.Column():
|
33 |
+
map_ = FoliumTest(label="Foo")
|
34 |
+
city.change(get_city, city, map_)
|
35 |
+
|
36 |
+
demo.launch()
|
37 |
+
```
|
src/backend/gradio_foliumtest/__init__.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
from .foliumtest import FoliumTest
|
3 |
+
|
4 |
+
__all__ = ['FoliumTest']
|
src/backend/gradio_foliumtest/foliumtest.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from gradio.components.base import Component
|
2 |
+
from gradio.data_classes import FileData
|
3 |
+
from tempfile import NamedTemporaryFile
|
4 |
+
from folium import Map
|
5 |
+
|
6 |
+
|
7 |
+
class FoliumTest(Component):
|
8 |
+
|
9 |
+
EVENTS = ["change"]
|
10 |
+
|
11 |
+
data_model = FileData
|
12 |
+
|
13 |
+
def __init__(self, value: Map = None, *, height: int = 500, label: str = None):
|
14 |
+
super().__init__(value, label=label)
|
15 |
+
self.height = height
|
16 |
+
|
17 |
+
def preprocess(self, x):
|
18 |
+
return x
|
19 |
+
|
20 |
+
def postprocess(self, x: Map):
|
21 |
+
if not x:
|
22 |
+
return None
|
23 |
+
|
24 |
+
with NamedTemporaryFile(suffix=".html", delete=False) as tmp:
|
25 |
+
x.save(tmp.name)
|
26 |
+
return FileData(path=tmp.name, orig_name="map.html")
|
27 |
+
|
28 |
+
def example_inputs(self):
|
29 |
+
return {"info": "Do not use as input"}
|
30 |
+
|
src/backend/gradio_foliumtest/foliumtest.pyi
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from gradio.components.base import Component
|
2 |
+
|
3 |
+
from gradio.events import Dependency
|
4 |
+
|
5 |
+
class FoliumTest(Component):
|
6 |
+
|
7 |
+
EVENTS = ["change"]
|
8 |
+
|
9 |
+
data_model = FileData
|
10 |
+
|
11 |
+
def __init__(self, value: Map = None, *, height: int = 500, label: str = None):
|
12 |
+
super().__init__(value, label=label)
|
13 |
+
self.height = height
|
14 |
+
|
15 |
+
def preprocess(self, x):
|
16 |
+
return x
|
17 |
+
|
18 |
+
def postprocess(self, x: Map):
|
19 |
+
if not x:
|
20 |
+
return None
|
21 |
+
|
22 |
+
with NamedTemporaryFile(suffix=".html", delete=False) as tmp:
|
23 |
+
x.save(tmp.name)
|
24 |
+
return FileData(path=tmp.name, orig_name="map.html")
|
25 |
+
|
26 |
+
def example_inputs(self):
|
27 |
+
return {"info": "Do not use as input"}
|
28 |
+
|
29 |
+
|
30 |
+
def change(self,
|
31 |
+
fn: Callable | None,
|
32 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
33 |
+
outputs: Component | Sequence[Component] | None = None,
|
34 |
+
api_name: str | None | Literal[False] = None,
|
35 |
+
status_tracker: None = None,
|
36 |
+
scroll_to_output: bool = False,
|
37 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
38 |
+
queue: bool | None = None,
|
39 |
+
batch: bool = False,
|
40 |
+
max_batch_size: int = 4,
|
41 |
+
preprocess: bool = True,
|
42 |
+
postprocess: bool = True,
|
43 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
44 |
+
every: float | None = None,
|
45 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
46 |
+
_js: str | None = None,) -> Dependency:
|
47 |
+
"""
|
48 |
+
Parameters:
|
49 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
50 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
51 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
52 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
53 |
+
scroll_to_output: If True, will scroll to output component on completion
|
54 |
+
show_progress: If True, will show progress animation while pending
|
55 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
56 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
57 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
58 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
59 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
60 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
61 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
|
62 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` event) would allow a second submission after the pending event is complete.
|
63 |
+
"""
|
64 |
+
...
|
src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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const {
|
2 |
+
SvelteComponent: pt,
|
3 |
+
assign: kt,
|
4 |
+
create_slot: yt,
|
5 |
+
detach: vt,
|
6 |
+
element: Ct,
|
7 |
+
get_all_dirty_from_scope: qt,
|
8 |
+
get_slot_changes: Ft,
|
9 |
+
get_spread_update: Lt,
|
10 |
+
init: Mt,
|
11 |
+
insert: St,
|
12 |
+
safe_not_equal: zt,
|
13 |
+
set_dynamic_element_data: ze,
|
14 |
+
set_style: S,
|
15 |
+
toggle_class: E,
|
16 |
+
transition_in: st,
|
17 |
+
transition_out: ot,
|
18 |
+
update_slot_base: Vt
|
19 |
+
} = window.__gradio__svelte__internal;
|
20 |
+
function Nt(n) {
|
21 |
+
let e, t, l;
|
22 |
+
const i = (
|
23 |
+
/*#slots*/
|
24 |
+
n[17].default
|
25 |
+
), f = yt(
|
26 |
+
i,
|
27 |
+
n,
|
28 |
+
/*$$scope*/
|
29 |
+
n[16],
|
30 |
+
null
|
31 |
+
);
|
32 |
+
let s = [
|
33 |
+
{ "data-testid": (
|
34 |
+
/*test_id*/
|
35 |
+
n[7]
|
36 |
+
) },
|
37 |
+
{ id: (
|
38 |
+
/*elem_id*/
|
39 |
+
n[2]
|
40 |
+
) },
|
41 |
+
{
|
42 |
+
class: t = "block " + /*elem_classes*/
|
43 |
+
n[3].join(" ") + " svelte-1t38q2d"
|
44 |
+
}
|
45 |
+
], o = {};
|
46 |
+
for (let r = 0; r < s.length; r += 1)
|
47 |
+
o = kt(o, s[r]);
|
48 |
+
return {
|
49 |
+
c() {
|
50 |
+
e = Ct(
|
51 |
+
/*tag*/
|
52 |
+
n[14]
|
53 |
+
), f && f.c(), ze(
|
54 |
+
/*tag*/
|
55 |
+
n[14]
|
56 |
+
)(e, o), E(
|
57 |
+
e,
|
58 |
+
"hidden",
|
59 |
+
/*visible*/
|
60 |
+
n[10] === !1
|
61 |
+
), E(
|
62 |
+
e,
|
63 |
+
"padded",
|
64 |
+
/*padding*/
|
65 |
+
n[6]
|
66 |
+
), E(
|
67 |
+
e,
|
68 |
+
"border_focus",
|
69 |
+
/*border_mode*/
|
70 |
+
n[5] === "focus"
|
71 |
+
), E(e, "hide-container", !/*explicit_call*/
|
72 |
+
n[8] && !/*container*/
|
73 |
+
n[9]), S(e, "height", typeof /*height*/
|
74 |
+
n[0] == "number" ? (
|
75 |
+
/*height*/
|
76 |
+
n[0] + "px"
|
77 |
+
) : void 0), S(e, "width", typeof /*width*/
|
78 |
+
n[1] == "number" ? `calc(min(${/*width*/
|
79 |
+
n[1]}px, 100%))` : void 0), S(
|
80 |
+
e,
|
81 |
+
"border-style",
|
82 |
+
/*variant*/
|
83 |
+
n[4]
|
84 |
+
), S(
|
85 |
+
e,
|
86 |
+
"overflow",
|
87 |
+
/*allow_overflow*/
|
88 |
+
n[11] ? "visible" : "hidden"
|
89 |
+
), S(
|
90 |
+
e,
|
91 |
+
"flex-grow",
|
92 |
+
/*scale*/
|
93 |
+
n[12]
|
94 |
+
), S(e, "min-width", `calc(min(${/*min_width*/
|
95 |
+
n[13]}px, 100%))`), S(e, "border-width", "var(--block-border-width)");
|
96 |
+
},
|
97 |
+
m(r, a) {
|
98 |
+
St(r, e, a), f && f.m(e, null), l = !0;
|
99 |
+
},
|
100 |
+
p(r, a) {
|
101 |
+
f && f.p && (!l || a & /*$$scope*/
|
102 |
+
65536) && Vt(
|
103 |
+
f,
|
104 |
+
i,
|
105 |
+
r,
|
106 |
+
/*$$scope*/
|
107 |
+
r[16],
|
108 |
+
l ? Ft(
|
109 |
+
i,
|
110 |
+
/*$$scope*/
|
111 |
+
r[16],
|
112 |
+
a,
|
113 |
+
null
|
114 |
+
) : qt(
|
115 |
+
/*$$scope*/
|
116 |
+
r[16]
|
117 |
+
),
|
118 |
+
null
|
119 |
+
), ze(
|
120 |
+
/*tag*/
|
121 |
+
r[14]
|
122 |
+
)(e, o = Lt(s, [
|
123 |
+
(!l || a & /*test_id*/
|
124 |
+
128) && { "data-testid": (
|
125 |
+
/*test_id*/
|
126 |
+
r[7]
|
127 |
+
) },
|
128 |
+
(!l || a & /*elem_id*/
|
129 |
+
4) && { id: (
|
130 |
+
/*elem_id*/
|
131 |
+
r[2]
|
132 |
+
) },
|
133 |
+
(!l || a & /*elem_classes*/
|
134 |
+
8 && t !== (t = "block " + /*elem_classes*/
|
135 |
+
r[3].join(" ") + " svelte-1t38q2d")) && { class: t }
|
136 |
+
])), E(
|
137 |
+
e,
|
138 |
+
"hidden",
|
139 |
+
/*visible*/
|
140 |
+
r[10] === !1
|
141 |
+
), E(
|
142 |
+
e,
|
143 |
+
"padded",
|
144 |
+
/*padding*/
|
145 |
+
r[6]
|
146 |
+
), E(
|
147 |
+
e,
|
148 |
+
"border_focus",
|
149 |
+
/*border_mode*/
|
150 |
+
r[5] === "focus"
|
151 |
+
), E(e, "hide-container", !/*explicit_call*/
|
152 |
+
r[8] && !/*container*/
|
153 |
+
r[9]), a & /*height*/
|
154 |
+
1 && S(e, "height", typeof /*height*/
|
155 |
+
r[0] == "number" ? (
|
156 |
+
/*height*/
|
157 |
+
r[0] + "px"
|
158 |
+
) : void 0), a & /*width*/
|
159 |
+
2 && S(e, "width", typeof /*width*/
|
160 |
+
r[1] == "number" ? `calc(min(${/*width*/
|
161 |
+
r[1]}px, 100%))` : void 0), a & /*variant*/
|
162 |
+
16 && S(
|
163 |
+
e,
|
164 |
+
"border-style",
|
165 |
+
/*variant*/
|
166 |
+
r[4]
|
167 |
+
), a & /*allow_overflow*/
|
168 |
+
2048 && S(
|
169 |
+
e,
|
170 |
+
"overflow",
|
171 |
+
/*allow_overflow*/
|
172 |
+
r[11] ? "visible" : "hidden"
|
173 |
+
), a & /*scale*/
|
174 |
+
4096 && S(
|
175 |
+
e,
|
176 |
+
"flex-grow",
|
177 |
+
/*scale*/
|
178 |
+
r[12]
|
179 |
+
), a & /*min_width*/
|
180 |
+
8192 && S(e, "min-width", `calc(min(${/*min_width*/
|
181 |
+
r[13]}px, 100%))`);
|
182 |
+
},
|
183 |
+
i(r) {
|
184 |
+
l || (st(f, r), l = !0);
|
185 |
+
},
|
186 |
+
o(r) {
|
187 |
+
ot(f, r), l = !1;
|
188 |
+
},
|
189 |
+
d(r) {
|
190 |
+
r && vt(e), f && f.d(r);
|
191 |
+
}
|
192 |
+
};
|
193 |
+
}
|
194 |
+
function At(n) {
|
195 |
+
let e, t = (
|
196 |
+
/*tag*/
|
197 |
+
n[14] && Nt(n)
|
198 |
+
);
|
199 |
+
return {
|
200 |
+
c() {
|
201 |
+
t && t.c();
|
202 |
+
},
|
203 |
+
m(l, i) {
|
204 |
+
t && t.m(l, i), e = !0;
|
205 |
+
},
|
206 |
+
p(l, [i]) {
|
207 |
+
/*tag*/
|
208 |
+
l[14] && t.p(l, i);
|
209 |
+
},
|
210 |
+
i(l) {
|
211 |
+
e || (st(t, l), e = !0);
|
212 |
+
},
|
213 |
+
o(l) {
|
214 |
+
ot(t, l), e = !1;
|
215 |
+
},
|
216 |
+
d(l) {
|
217 |
+
t && t.d(l);
|
218 |
+
}
|
219 |
+
};
|
220 |
+
}
|
221 |
+
function Bt(n, e, t) {
|
222 |
+
let { $$slots: l = {}, $$scope: i } = e, { height: f = void 0 } = e, { width: s = void 0 } = e, { elem_id: o = "" } = e, { elem_classes: r = [] } = e, { variant: a = "solid" } = e, { border_mode: _ = "base" } = e, { padding: u = !0 } = e, { type: c = "normal" } = e, { test_id: m = void 0 } = e, { explicit_call: h = !1 } = e, { container: L = !0 } = e, { visible: C = !0 } = e, { allow_overflow: M = !0 } = e, { scale: b = null } = e, { min_width: d = 0 } = e, q = c === "fieldset" ? "fieldset" : "div";
|
223 |
+
return n.$$set = (w) => {
|
224 |
+
"height" in w && t(0, f = w.height), "width" in w && t(1, s = w.width), "elem_id" in w && t(2, o = w.elem_id), "elem_classes" in w && t(3, r = w.elem_classes), "variant" in w && t(4, a = w.variant), "border_mode" in w && t(5, _ = w.border_mode), "padding" in w && t(6, u = w.padding), "type" in w && t(15, c = w.type), "test_id" in w && t(7, m = w.test_id), "explicit_call" in w && t(8, h = w.explicit_call), "container" in w && t(9, L = w.container), "visible" in w && t(10, C = w.visible), "allow_overflow" in w && t(11, M = w.allow_overflow), "scale" in w && t(12, b = w.scale), "min_width" in w && t(13, d = w.min_width), "$$scope" in w && t(16, i = w.$$scope);
|
225 |
+
}, [
|
226 |
+
f,
|
227 |
+
s,
|
228 |
+
o,
|
229 |
+
r,
|
230 |
+
a,
|
231 |
+
_,
|
232 |
+
u,
|
233 |
+
m,
|
234 |
+
h,
|
235 |
+
L,
|
236 |
+
C,
|
237 |
+
M,
|
238 |
+
b,
|
239 |
+
d,
|
240 |
+
q,
|
241 |
+
c,
|
242 |
+
i,
|
243 |
+
l
|
244 |
+
];
|
245 |
+
}
|
246 |
+
class It extends pt {
|
247 |
+
constructor(e) {
|
248 |
+
super(), Mt(this, e, Bt, At, zt, {
|
249 |
+
height: 0,
|
250 |
+
width: 1,
|
251 |
+
elem_id: 2,
|
252 |
+
elem_classes: 3,
|
253 |
+
variant: 4,
|
254 |
+
border_mode: 5,
|
255 |
+
padding: 6,
|
256 |
+
type: 15,
|
257 |
+
test_id: 7,
|
258 |
+
explicit_call: 8,
|
259 |
+
container: 9,
|
260 |
+
visible: 10,
|
261 |
+
allow_overflow: 11,
|
262 |
+
scale: 12,
|
263 |
+
min_width: 13
|
264 |
+
});
|
265 |
+
}
|
266 |
+
}
|
267 |
+
const {
|
268 |
+
SvelteComponent: Pt,
|
269 |
+
append: he,
|
270 |
+
attr: re,
|
271 |
+
create_component: Zt,
|
272 |
+
destroy_component: Tt,
|
273 |
+
detach: jt,
|
274 |
+
element: Ve,
|
275 |
+
init: Et,
|
276 |
+
insert: Dt,
|
277 |
+
mount_component: Rt,
|
278 |
+
safe_not_equal: Ht,
|
279 |
+
set_data: Ot,
|
280 |
+
space: Yt,
|
281 |
+
text: Jt,
|
282 |
+
toggle_class: D,
|
283 |
+
transition_in: Ut,
|
284 |
+
transition_out: Xt
|
285 |
+
} = window.__gradio__svelte__internal;
|
286 |
+
function Gt(n) {
|
287 |
+
let e, t, l, i, f, s;
|
288 |
+
return l = new /*Icon*/
|
289 |
+
n[1]({}), {
|
290 |
+
c() {
|
291 |
+
e = Ve("label"), t = Ve("span"), Zt(l.$$.fragment), i = Yt(), f = Jt(
|
292 |
+
/*label*/
|
293 |
+
n[0]
|
294 |
+
), re(t, "class", "svelte-9gxdi0"), re(e, "for", ""), re(e, "data-testid", "block-label"), re(e, "class", "svelte-9gxdi0"), D(e, "hide", !/*show_label*/
|
295 |
+
n[2]), D(e, "sr-only", !/*show_label*/
|
296 |
+
n[2]), D(
|
297 |
+
e,
|
298 |
+
"float",
|
299 |
+
/*float*/
|
300 |
+
n[4]
|
301 |
+
), D(
|
302 |
+
e,
|
303 |
+
"hide-label",
|
304 |
+
/*disable*/
|
305 |
+
n[3]
|
306 |
+
);
|
307 |
+
},
|
308 |
+
m(o, r) {
|
309 |
+
Dt(o, e, r), he(e, t), Rt(l, t, null), he(e, i), he(e, f), s = !0;
|
310 |
+
},
|
311 |
+
p(o, [r]) {
|
312 |
+
(!s || r & /*label*/
|
313 |
+
1) && Ot(
|
314 |
+
f,
|
315 |
+
/*label*/
|
316 |
+
o[0]
|
317 |
+
), (!s || r & /*show_label*/
|
318 |
+
4) && D(e, "hide", !/*show_label*/
|
319 |
+
o[2]), (!s || r & /*show_label*/
|
320 |
+
4) && D(e, "sr-only", !/*show_label*/
|
321 |
+
o[2]), (!s || r & /*float*/
|
322 |
+
16) && D(
|
323 |
+
e,
|
324 |
+
"float",
|
325 |
+
/*float*/
|
326 |
+
o[4]
|
327 |
+
), (!s || r & /*disable*/
|
328 |
+
8) && D(
|
329 |
+
e,
|
330 |
+
"hide-label",
|
331 |
+
/*disable*/
|
332 |
+
o[3]
|
333 |
+
);
|
334 |
+
},
|
335 |
+
i(o) {
|
336 |
+
s || (Ut(l.$$.fragment, o), s = !0);
|
337 |
+
},
|
338 |
+
o(o) {
|
339 |
+
Xt(l.$$.fragment, o), s = !1;
|
340 |
+
},
|
341 |
+
d(o) {
|
342 |
+
o && jt(e), Tt(l);
|
343 |
+
}
|
344 |
+
};
|
345 |
+
}
|
346 |
+
function Kt(n, e, t) {
|
347 |
+
let { label: l = null } = e, { Icon: i } = e, { show_label: f = !0 } = e, { disable: s = !1 } = e, { float: o = !0 } = e;
|
348 |
+
return n.$$set = (r) => {
|
349 |
+
"label" in r && t(0, l = r.label), "Icon" in r && t(1, i = r.Icon), "show_label" in r && t(2, f = r.show_label), "disable" in r && t(3, s = r.disable), "float" in r && t(4, o = r.float);
|
350 |
+
}, [l, i, f, s, o];
|
351 |
+
}
|
352 |
+
class Qt extends Pt {
|
353 |
+
constructor(e) {
|
354 |
+
super(), Et(this, e, Kt, Gt, Ht, {
|
355 |
+
label: 0,
|
356 |
+
Icon: 1,
|
357 |
+
show_label: 2,
|
358 |
+
disable: 3,
|
359 |
+
float: 4
|
360 |
+
});
|
361 |
+
}
|
362 |
+
}
|
363 |
+
const {
|
364 |
+
SvelteComponent: Wt,
|
365 |
+
append: xt,
|
366 |
+
attr: we,
|
367 |
+
binding_callbacks: $t,
|
368 |
+
create_slot: el,
|
369 |
+
detach: tl,
|
370 |
+
element: Ne,
|
371 |
+
get_all_dirty_from_scope: ll,
|
372 |
+
get_slot_changes: nl,
|
373 |
+
init: il,
|
374 |
+
insert: fl,
|
375 |
+
safe_not_equal: sl,
|
376 |
+
toggle_class: R,
|
377 |
+
transition_in: ol,
|
378 |
+
transition_out: rl,
|
379 |
+
update_slot_base: al
|
380 |
+
} = window.__gradio__svelte__internal;
|
381 |
+
function _l(n) {
|
382 |
+
let e, t, l;
|
383 |
+
const i = (
|
384 |
+
/*#slots*/
|
385 |
+
n[5].default
|
386 |
+
), f = el(
|
387 |
+
i,
|
388 |
+
n,
|
389 |
+
/*$$scope*/
|
390 |
+
n[4],
|
391 |
+
null
|
392 |
+
);
|
393 |
+
return {
|
394 |
+
c() {
|
395 |
+
e = Ne("div"), t = Ne("div"), f && f.c(), we(t, "class", "icon svelte-3w3rth"), we(e, "class", "empty svelte-3w3rth"), we(e, "aria-label", "Empty value"), R(
|
396 |
+
e,
|
397 |
+
"small",
|
398 |
+
/*size*/
|
399 |
+
n[0] === "small"
|
400 |
+
), R(
|
401 |
+
e,
|
402 |
+
"large",
|
403 |
+
/*size*/
|
404 |
+
n[0] === "large"
|
405 |
+
), R(
|
406 |
+
e,
|
407 |
+
"unpadded_box",
|
408 |
+
/*unpadded_box*/
|
409 |
+
n[1]
|
410 |
+
), R(
|
411 |
+
e,
|
412 |
+
"small_parent",
|
413 |
+
/*parent_height*/
|
414 |
+
n[3]
|
415 |
+
);
|
416 |
+
},
|
417 |
+
m(s, o) {
|
418 |
+
fl(s, e, o), xt(e, t), f && f.m(t, null), n[6](e), l = !0;
|
419 |
+
},
|
420 |
+
p(s, [o]) {
|
421 |
+
f && f.p && (!l || o & /*$$scope*/
|
422 |
+
16) && al(
|
423 |
+
f,
|
424 |
+
i,
|
425 |
+
s,
|
426 |
+
/*$$scope*/
|
427 |
+
s[4],
|
428 |
+
l ? nl(
|
429 |
+
i,
|
430 |
+
/*$$scope*/
|
431 |
+
s[4],
|
432 |
+
o,
|
433 |
+
null
|
434 |
+
) : ll(
|
435 |
+
/*$$scope*/
|
436 |
+
s[4]
|
437 |
+
),
|
438 |
+
null
|
439 |
+
), (!l || o & /*size*/
|
440 |
+
1) && R(
|
441 |
+
e,
|
442 |
+
"small",
|
443 |
+
/*size*/
|
444 |
+
s[0] === "small"
|
445 |
+
), (!l || o & /*size*/
|
446 |
+
1) && R(
|
447 |
+
e,
|
448 |
+
"large",
|
449 |
+
/*size*/
|
450 |
+
s[0] === "large"
|
451 |
+
), (!l || o & /*unpadded_box*/
|
452 |
+
2) && R(
|
453 |
+
e,
|
454 |
+
"unpadded_box",
|
455 |
+
/*unpadded_box*/
|
456 |
+
s[1]
|
457 |
+
), (!l || o & /*parent_height*/
|
458 |
+
8) && R(
|
459 |
+
e,
|
460 |
+
"small_parent",
|
461 |
+
/*parent_height*/
|
462 |
+
s[3]
|
463 |
+
);
|
464 |
+
},
|
465 |
+
i(s) {
|
466 |
+
l || (ol(f, s), l = !0);
|
467 |
+
},
|
468 |
+
o(s) {
|
469 |
+
rl(f, s), l = !1;
|
470 |
+
},
|
471 |
+
d(s) {
|
472 |
+
s && tl(e), f && f.d(s), n[6](null);
|
473 |
+
}
|
474 |
+
};
|
475 |
+
}
|
476 |
+
function cl(n) {
|
477 |
+
let e, t = n[0], l = 1;
|
478 |
+
for (; l < n.length; ) {
|
479 |
+
const i = n[l], f = n[l + 1];
|
480 |
+
if (l += 2, (i === "optionalAccess" || i === "optionalCall") && t == null)
|
481 |
+
return;
|
482 |
+
i === "access" || i === "optionalAccess" ? (e = t, t = f(t)) : (i === "call" || i === "optionalCall") && (t = f((...s) => t.call(e, ...s)), e = void 0);
|
483 |
+
}
|
484 |
+
return t;
|
485 |
+
}
|
486 |
+
function ul(n, e, t) {
|
487 |
+
let l, { $$slots: i = {}, $$scope: f } = e, { size: s = "small" } = e, { unpadded_box: o = !1 } = e, r;
|
488 |
+
function a(u) {
|
489 |
+
if (!u)
|
490 |
+
return !1;
|
491 |
+
const { height: c } = u.getBoundingClientRect(), { height: m } = cl([
|
492 |
+
u,
|
493 |
+
"access",
|
494 |
+
(h) => h.parentElement,
|
495 |
+
"optionalAccess",
|
496 |
+
(h) => h.getBoundingClientRect,
|
497 |
+
"call",
|
498 |
+
(h) => h()
|
499 |
+
]) || { height: c };
|
500 |
+
return c > m + 2;
|
501 |
+
}
|
502 |
+
function _(u) {
|
503 |
+
$t[u ? "unshift" : "push"](() => {
|
504 |
+
r = u, t(2, r);
|
505 |
+
});
|
506 |
+
}
|
507 |
+
return n.$$set = (u) => {
|
508 |
+
"size" in u && t(0, s = u.size), "unpadded_box" in u && t(1, o = u.unpadded_box), "$$scope" in u && t(4, f = u.$$scope);
|
509 |
+
}, n.$$.update = () => {
|
510 |
+
n.$$.dirty & /*el*/
|
511 |
+
4 && t(3, l = a(r));
|
512 |
+
}, [s, o, r, l, f, i, _];
|
513 |
+
}
|
514 |
+
class dl extends Wt {
|
515 |
+
constructor(e) {
|
516 |
+
super(), il(this, e, ul, _l, sl, { size: 0, unpadded_box: 1 });
|
517 |
+
}
|
518 |
+
}
|
519 |
+
const {
|
520 |
+
SvelteComponent: ml,
|
521 |
+
append: G,
|
522 |
+
attr: v,
|
523 |
+
detach: bl,
|
524 |
+
init: gl,
|
525 |
+
insert: hl,
|
526 |
+
noop: pe,
|
527 |
+
safe_not_equal: wl,
|
528 |
+
svg_element: J
|
529 |
+
} = window.__gradio__svelte__internal;
|
530 |
+
function pl(n) {
|
531 |
+
let e, t, l, i, f, s, o;
|
532 |
+
return {
|
533 |
+
c() {
|
534 |
+
e = J("svg"), t = J("circle"), l = J("circle"), i = J("circle"), f = J("circle"), s = J("circle"), o = J("path"), v(t, "cx", "20"), v(t, "cy", "4"), v(t, "r", "2"), v(t, "fill", "currentColor"), v(l, "cx", "8"), v(l, "cy", "16"), v(l, "r", "2"), v(l, "fill", "currentColor"), v(i, "cx", "28"), v(i, "cy", "12"), v(i, "r", "2"), v(i, "fill", "currentColor"), v(f, "cx", "11"), v(f, "cy", "7"), v(f, "r", "2"), v(f, "fill", "currentColor"), v(s, "cx", "16"), v(s, "cy", "24"), v(s, "r", "2"), v(s, "fill", "currentColor"), v(o, "fill", "currentColor"), v(o, "d", "M30 3.413L28.586 2L4 26.585V2H2v26a2 2 0 0 0 2 2h26v-2H5.413Z"), v(e, "xmlns", "http://www.w3.org/2000/svg"), v(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), v(e, "aria-hidden", "true"), v(e, "role", "img"), v(e, "class", "iconify iconify--carbon"), v(e, "width", "100%"), v(e, "height", "100%"), v(e, "preserveAspectRatio", "xMidYMid meet"), v(e, "viewBox", "0 0 32 32");
|
535 |
+
},
|
536 |
+
m(r, a) {
|
537 |
+
hl(r, e, a), G(e, t), G(e, l), G(e, i), G(e, f), G(e, s), G(e, o);
|
538 |
+
},
|
539 |
+
p: pe,
|
540 |
+
i: pe,
|
541 |
+
o: pe,
|
542 |
+
d(r) {
|
543 |
+
r && bl(e);
|
544 |
+
}
|
545 |
+
};
|
546 |
+
}
|
547 |
+
class rt extends ml {
|
548 |
+
constructor(e) {
|
549 |
+
super(), gl(this, e, null, pl, wl, {});
|
550 |
+
}
|
551 |
+
}
|
552 |
+
const kl = [
|
553 |
+
{ color: "red", primary: 600, secondary: 100 },
|
554 |
+
{ color: "green", primary: 600, secondary: 100 },
|
555 |
+
{ color: "blue", primary: 600, secondary: 100 },
|
556 |
+
{ color: "yellow", primary: 500, secondary: 100 },
|
557 |
+
{ color: "purple", primary: 600, secondary: 100 },
|
558 |
+
{ color: "teal", primary: 600, secondary: 100 },
|
559 |
+
{ color: "orange", primary: 600, secondary: 100 },
|
560 |
+
{ color: "cyan", primary: 600, secondary: 100 },
|
561 |
+
{ color: "lime", primary: 500, secondary: 100 },
|
562 |
+
{ color: "pink", primary: 600, secondary: 100 }
|
563 |
+
], Ae = {
|
564 |
+
inherit: "inherit",
|
565 |
+
current: "currentColor",
|
566 |
+
transparent: "transparent",
|
567 |
+
black: "#000",
|
568 |
+
white: "#fff",
|
569 |
+
slate: {
|
570 |
+
50: "#f8fafc",
|
571 |
+
100: "#f1f5f9",
|
572 |
+
200: "#e2e8f0",
|
573 |
+
300: "#cbd5e1",
|
574 |
+
400: "#94a3b8",
|
575 |
+
500: "#64748b",
|
576 |
+
600: "#475569",
|
577 |
+
700: "#334155",
|
578 |
+
800: "#1e293b",
|
579 |
+
900: "#0f172a",
|
580 |
+
950: "#020617"
|
581 |
+
},
|
582 |
+
gray: {
|
583 |
+
50: "#f9fafb",
|
584 |
+
100: "#f3f4f6",
|
585 |
+
200: "#e5e7eb",
|
586 |
+
300: "#d1d5db",
|
587 |
+
400: "#9ca3af",
|
588 |
+
500: "#6b7280",
|
589 |
+
600: "#4b5563",
|
590 |
+
700: "#374151",
|
591 |
+
800: "#1f2937",
|
592 |
+
900: "#111827",
|
593 |
+
950: "#030712"
|
594 |
+
},
|
595 |
+
zinc: {
|
596 |
+
50: "#fafafa",
|
597 |
+
100: "#f4f4f5",
|
598 |
+
200: "#e4e4e7",
|
599 |
+
300: "#d4d4d8",
|
600 |
+
400: "#a1a1aa",
|
601 |
+
500: "#71717a",
|
602 |
+
600: "#52525b",
|
603 |
+
700: "#3f3f46",
|
604 |
+
800: "#27272a",
|
605 |
+
900: "#18181b",
|
606 |
+
950: "#09090b"
|
607 |
+
},
|
608 |
+
neutral: {
|
609 |
+
50: "#fafafa",
|
610 |
+
100: "#f5f5f5",
|
611 |
+
200: "#e5e5e5",
|
612 |
+
300: "#d4d4d4",
|
613 |
+
400: "#a3a3a3",
|
614 |
+
500: "#737373",
|
615 |
+
600: "#525252",
|
616 |
+
700: "#404040",
|
617 |
+
800: "#262626",
|
618 |
+
900: "#171717",
|
619 |
+
950: "#0a0a0a"
|
620 |
+
},
|
621 |
+
stone: {
|
622 |
+
50: "#fafaf9",
|
623 |
+
100: "#f5f5f4",
|
624 |
+
200: "#e7e5e4",
|
625 |
+
300: "#d6d3d1",
|
626 |
+
400: "#a8a29e",
|
627 |
+
500: "#78716c",
|
628 |
+
600: "#57534e",
|
629 |
+
700: "#44403c",
|
630 |
+
800: "#292524",
|
631 |
+
900: "#1c1917",
|
632 |
+
950: "#0c0a09"
|
633 |
+
},
|
634 |
+
red: {
|
635 |
+
50: "#fef2f2",
|
636 |
+
100: "#fee2e2",
|
637 |
+
200: "#fecaca",
|
638 |
+
300: "#fca5a5",
|
639 |
+
400: "#f87171",
|
640 |
+
500: "#ef4444",
|
641 |
+
600: "#dc2626",
|
642 |
+
700: "#b91c1c",
|
643 |
+
800: "#991b1b",
|
644 |
+
900: "#7f1d1d",
|
645 |
+
950: "#450a0a"
|
646 |
+
},
|
647 |
+
orange: {
|
648 |
+
50: "#fff7ed",
|
649 |
+
100: "#ffedd5",
|
650 |
+
200: "#fed7aa",
|
651 |
+
300: "#fdba74",
|
652 |
+
400: "#fb923c",
|
653 |
+
500: "#f97316",
|
654 |
+
600: "#ea580c",
|
655 |
+
700: "#c2410c",
|
656 |
+
800: "#9a3412",
|
657 |
+
900: "#7c2d12",
|
658 |
+
950: "#431407"
|
659 |
+
},
|
660 |
+
amber: {
|
661 |
+
50: "#fffbeb",
|
662 |
+
100: "#fef3c7",
|
663 |
+
200: "#fde68a",
|
664 |
+
300: "#fcd34d",
|
665 |
+
400: "#fbbf24",
|
666 |
+
500: "#f59e0b",
|
667 |
+
600: "#d97706",
|
668 |
+
700: "#b45309",
|
669 |
+
800: "#92400e",
|
670 |
+
900: "#78350f",
|
671 |
+
950: "#451a03"
|
672 |
+
},
|
673 |
+
yellow: {
|
674 |
+
50: "#fefce8",
|
675 |
+
100: "#fef9c3",
|
676 |
+
200: "#fef08a",
|
677 |
+
300: "#fde047",
|
678 |
+
400: "#facc15",
|
679 |
+
500: "#eab308",
|
680 |
+
600: "#ca8a04",
|
681 |
+
700: "#a16207",
|
682 |
+
800: "#854d0e",
|
683 |
+
900: "#713f12",
|
684 |
+
950: "#422006"
|
685 |
+
},
|
686 |
+
lime: {
|
687 |
+
50: "#f7fee7",
|
688 |
+
100: "#ecfccb",
|
689 |
+
200: "#d9f99d",
|
690 |
+
300: "#bef264",
|
691 |
+
400: "#a3e635",
|
692 |
+
500: "#84cc16",
|
693 |
+
600: "#65a30d",
|
694 |
+
700: "#4d7c0f",
|
695 |
+
800: "#3f6212",
|
696 |
+
900: "#365314",
|
697 |
+
950: "#1a2e05"
|
698 |
+
},
|
699 |
+
green: {
|
700 |
+
50: "#f0fdf4",
|
701 |
+
100: "#dcfce7",
|
702 |
+
200: "#bbf7d0",
|
703 |
+
300: "#86efac",
|
704 |
+
400: "#4ade80",
|
705 |
+
500: "#22c55e",
|
706 |
+
600: "#16a34a",
|
707 |
+
700: "#15803d",
|
708 |
+
800: "#166534",
|
709 |
+
900: "#14532d",
|
710 |
+
950: "#052e16"
|
711 |
+
},
|
712 |
+
emerald: {
|
713 |
+
50: "#ecfdf5",
|
714 |
+
100: "#d1fae5",
|
715 |
+
200: "#a7f3d0",
|
716 |
+
300: "#6ee7b7",
|
717 |
+
400: "#34d399",
|
718 |
+
500: "#10b981",
|
719 |
+
600: "#059669",
|
720 |
+
700: "#047857",
|
721 |
+
800: "#065f46",
|
722 |
+
900: "#064e3b",
|
723 |
+
950: "#022c22"
|
724 |
+
},
|
725 |
+
teal: {
|
726 |
+
50: "#f0fdfa",
|
727 |
+
100: "#ccfbf1",
|
728 |
+
200: "#99f6e4",
|
729 |
+
300: "#5eead4",
|
730 |
+
400: "#2dd4bf",
|
731 |
+
500: "#14b8a6",
|
732 |
+
600: "#0d9488",
|
733 |
+
700: "#0f766e",
|
734 |
+
800: "#115e59",
|
735 |
+
900: "#134e4a",
|
736 |
+
950: "#042f2e"
|
737 |
+
},
|
738 |
+
cyan: {
|
739 |
+
50: "#ecfeff",
|
740 |
+
100: "#cffafe",
|
741 |
+
200: "#a5f3fc",
|
742 |
+
300: "#67e8f9",
|
743 |
+
400: "#22d3ee",
|
744 |
+
500: "#06b6d4",
|
745 |
+
600: "#0891b2",
|
746 |
+
700: "#0e7490",
|
747 |
+
800: "#155e75",
|
748 |
+
900: "#164e63",
|
749 |
+
950: "#083344"
|
750 |
+
},
|
751 |
+
sky: {
|
752 |
+
50: "#f0f9ff",
|
753 |
+
100: "#e0f2fe",
|
754 |
+
200: "#bae6fd",
|
755 |
+
300: "#7dd3fc",
|
756 |
+
400: "#38bdf8",
|
757 |
+
500: "#0ea5e9",
|
758 |
+
600: "#0284c7",
|
759 |
+
700: "#0369a1",
|
760 |
+
800: "#075985",
|
761 |
+
900: "#0c4a6e",
|
762 |
+
950: "#082f49"
|
763 |
+
},
|
764 |
+
blue: {
|
765 |
+
50: "#eff6ff",
|
766 |
+
100: "#dbeafe",
|
767 |
+
200: "#bfdbfe",
|
768 |
+
300: "#93c5fd",
|
769 |
+
400: "#60a5fa",
|
770 |
+
500: "#3b82f6",
|
771 |
+
600: "#2563eb",
|
772 |
+
700: "#1d4ed8",
|
773 |
+
800: "#1e40af",
|
774 |
+
900: "#1e3a8a",
|
775 |
+
950: "#172554"
|
776 |
+
},
|
777 |
+
indigo: {
|
778 |
+
50: "#eef2ff",
|
779 |
+
100: "#e0e7ff",
|
780 |
+
200: "#c7d2fe",
|
781 |
+
300: "#a5b4fc",
|
782 |
+
400: "#818cf8",
|
783 |
+
500: "#6366f1",
|
784 |
+
600: "#4f46e5",
|
785 |
+
700: "#4338ca",
|
786 |
+
800: "#3730a3",
|
787 |
+
900: "#312e81",
|
788 |
+
950: "#1e1b4b"
|
789 |
+
},
|
790 |
+
violet: {
|
791 |
+
50: "#f5f3ff",
|
792 |
+
100: "#ede9fe",
|
793 |
+
200: "#ddd6fe",
|
794 |
+
300: "#c4b5fd",
|
795 |
+
400: "#a78bfa",
|
796 |
+
500: "#8b5cf6",
|
797 |
+
600: "#7c3aed",
|
798 |
+
700: "#6d28d9",
|
799 |
+
800: "#5b21b6",
|
800 |
+
900: "#4c1d95",
|
801 |
+
950: "#2e1065"
|
802 |
+
},
|
803 |
+
purple: {
|
804 |
+
50: "#faf5ff",
|
805 |
+
100: "#f3e8ff",
|
806 |
+
200: "#e9d5ff",
|
807 |
+
300: "#d8b4fe",
|
808 |
+
400: "#c084fc",
|
809 |
+
500: "#a855f7",
|
810 |
+
600: "#9333ea",
|
811 |
+
700: "#7e22ce",
|
812 |
+
800: "#6b21a8",
|
813 |
+
900: "#581c87",
|
814 |
+
950: "#3b0764"
|
815 |
+
},
|
816 |
+
fuchsia: {
|
817 |
+
50: "#fdf4ff",
|
818 |
+
100: "#fae8ff",
|
819 |
+
200: "#f5d0fe",
|
820 |
+
300: "#f0abfc",
|
821 |
+
400: "#e879f9",
|
822 |
+
500: "#d946ef",
|
823 |
+
600: "#c026d3",
|
824 |
+
700: "#a21caf",
|
825 |
+
800: "#86198f",
|
826 |
+
900: "#701a75",
|
827 |
+
950: "#4a044e"
|
828 |
+
},
|
829 |
+
pink: {
|
830 |
+
50: "#fdf2f8",
|
831 |
+
100: "#fce7f3",
|
832 |
+
200: "#fbcfe8",
|
833 |
+
300: "#f9a8d4",
|
834 |
+
400: "#f472b6",
|
835 |
+
500: "#ec4899",
|
836 |
+
600: "#db2777",
|
837 |
+
700: "#be185d",
|
838 |
+
800: "#9d174d",
|
839 |
+
900: "#831843",
|
840 |
+
950: "#500724"
|
841 |
+
},
|
842 |
+
rose: {
|
843 |
+
50: "#fff1f2",
|
844 |
+
100: "#ffe4e6",
|
845 |
+
200: "#fecdd3",
|
846 |
+
300: "#fda4af",
|
847 |
+
400: "#fb7185",
|
848 |
+
500: "#f43f5e",
|
849 |
+
600: "#e11d48",
|
850 |
+
700: "#be123c",
|
851 |
+
800: "#9f1239",
|
852 |
+
900: "#881337",
|
853 |
+
950: "#4c0519"
|
854 |
+
}
|
855 |
+
};
|
856 |
+
kl.reduce(
|
857 |
+
(n, { color: e, primary: t, secondary: l }) => ({
|
858 |
+
...n,
|
859 |
+
[e]: {
|
860 |
+
primary: Ae[e][t],
|
861 |
+
secondary: Ae[e][l]
|
862 |
+
}
|
863 |
+
}),
|
864 |
+
{}
|
865 |
+
);
|
866 |
+
function Q(n) {
|
867 |
+
let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0;
|
868 |
+
for (; n > 1e3 && t < e.length - 1; )
|
869 |
+
n /= 1e3, t++;
|
870 |
+
let l = e[t];
|
871 |
+
return (Number.isInteger(n) ? n : n.toFixed(1)) + l;
|
872 |
+
}
|
873 |
+
function ce() {
|
874 |
+
}
|
875 |
+
function yl(n, e) {
|
876 |
+
return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
|
877 |
+
}
|
878 |
+
const at = typeof window < "u";
|
879 |
+
let Be = at ? () => window.performance.now() : () => Date.now(), _t = at ? (n) => requestAnimationFrame(n) : ce;
|
880 |
+
const W = /* @__PURE__ */ new Set();
|
881 |
+
function ct(n) {
|
882 |
+
W.forEach((e) => {
|
883 |
+
e.c(n) || (W.delete(e), e.f());
|
884 |
+
}), W.size !== 0 && _t(ct);
|
885 |
+
}
|
886 |
+
function vl(n) {
|
887 |
+
let e;
|
888 |
+
return W.size === 0 && _t(ct), {
|
889 |
+
promise: new Promise((t) => {
|
890 |
+
W.add(e = { c: n, f: t });
|
891 |
+
}),
|
892 |
+
abort() {
|
893 |
+
W.delete(e);
|
894 |
+
}
|
895 |
+
};
|
896 |
+
}
|
897 |
+
const K = [];
|
898 |
+
function Cl(n, e = ce) {
|
899 |
+
let t;
|
900 |
+
const l = /* @__PURE__ */ new Set();
|
901 |
+
function i(o) {
|
902 |
+
if (yl(n, o) && (n = o, t)) {
|
903 |
+
const r = !K.length;
|
904 |
+
for (const a of l)
|
905 |
+
a[1](), K.push(a, n);
|
906 |
+
if (r) {
|
907 |
+
for (let a = 0; a < K.length; a += 2)
|
908 |
+
K[a][0](K[a + 1]);
|
909 |
+
K.length = 0;
|
910 |
+
}
|
911 |
+
}
|
912 |
+
}
|
913 |
+
function f(o) {
|
914 |
+
i(o(n));
|
915 |
+
}
|
916 |
+
function s(o, r = ce) {
|
917 |
+
const a = [o, r];
|
918 |
+
return l.add(a), l.size === 1 && (t = e(i, f) || ce), o(n), () => {
|
919 |
+
l.delete(a), l.size === 0 && t && (t(), t = null);
|
920 |
+
};
|
921 |
+
}
|
922 |
+
return { set: i, update: f, subscribe: s };
|
923 |
+
}
|
924 |
+
function Ie(n) {
|
925 |
+
return Object.prototype.toString.call(n) === "[object Date]";
|
926 |
+
}
|
927 |
+
function ve(n, e, t, l) {
|
928 |
+
if (typeof t == "number" || Ie(t)) {
|
929 |
+
const i = l - t, f = (t - e) / (n.dt || 1 / 60), s = n.opts.stiffness * i, o = n.opts.damping * f, r = (s - o) * n.inv_mass, a = (f + r) * n.dt;
|
930 |
+
return Math.abs(a) < n.opts.precision && Math.abs(i) < n.opts.precision ? l : (n.settled = !1, Ie(t) ? new Date(t.getTime() + a) : t + a);
|
931 |
+
} else {
|
932 |
+
if (Array.isArray(t))
|
933 |
+
return t.map(
|
934 |
+
(i, f) => ve(n, e[f], t[f], l[f])
|
935 |
+
);
|
936 |
+
if (typeof t == "object") {
|
937 |
+
const i = {};
|
938 |
+
for (const f in t)
|
939 |
+
i[f] = ve(n, e[f], t[f], l[f]);
|
940 |
+
return i;
|
941 |
+
} else
|
942 |
+
throw new Error(`Cannot spring ${typeof t} values`);
|
943 |
+
}
|
944 |
+
}
|
945 |
+
function Pe(n, e = {}) {
|
946 |
+
const t = Cl(n), { stiffness: l = 0.15, damping: i = 0.8, precision: f = 0.01 } = e;
|
947 |
+
let s, o, r, a = n, _ = n, u = 1, c = 0, m = !1;
|
948 |
+
function h(C, M = {}) {
|
949 |
+
_ = C;
|
950 |
+
const b = r = {};
|
951 |
+
return n == null || M.hard || L.stiffness >= 1 && L.damping >= 1 ? (m = !0, s = Be(), a = C, t.set(n = _), Promise.resolve()) : (M.soft && (c = 1 / ((M.soft === !0 ? 0.5 : +M.soft) * 60), u = 0), o || (s = Be(), m = !1, o = vl((d) => {
|
952 |
+
if (m)
|
953 |
+
return m = !1, o = null, !1;
|
954 |
+
u = Math.min(u + c, 1);
|
955 |
+
const q = {
|
956 |
+
inv_mass: u,
|
957 |
+
opts: L,
|
958 |
+
settled: !0,
|
959 |
+
dt: (d - s) * 60 / 1e3
|
960 |
+
}, w = ve(q, a, n, _);
|
961 |
+
return s = d, a = n, t.set(n = w), q.settled && (o = null), !q.settled;
|
962 |
+
})), new Promise((d) => {
|
963 |
+
o.promise.then(() => {
|
964 |
+
b === r && d();
|
965 |
+
});
|
966 |
+
}));
|
967 |
+
}
|
968 |
+
const L = {
|
969 |
+
set: h,
|
970 |
+
update: (C, M) => h(C(_, n), M),
|
971 |
+
subscribe: t.subscribe,
|
972 |
+
stiffness: l,
|
973 |
+
damping: i,
|
974 |
+
precision: f
|
975 |
+
};
|
976 |
+
return L;
|
977 |
+
}
|
978 |
+
const {
|
979 |
+
SvelteComponent: ql,
|
980 |
+
append: N,
|
981 |
+
attr: y,
|
982 |
+
component_subscribe: Ze,
|
983 |
+
detach: Fl,
|
984 |
+
element: Ll,
|
985 |
+
init: Ml,
|
986 |
+
insert: Sl,
|
987 |
+
noop: Te,
|
988 |
+
safe_not_equal: zl,
|
989 |
+
set_style: ae,
|
990 |
+
svg_element: A,
|
991 |
+
toggle_class: je
|
992 |
+
} = window.__gradio__svelte__internal, { onMount: Vl } = window.__gradio__svelte__internal;
|
993 |
+
function Nl(n) {
|
994 |
+
let e, t, l, i, f, s, o, r, a, _, u, c;
|
995 |
+
return {
|
996 |
+
c() {
|
997 |
+
e = Ll("div"), t = A("svg"), l = A("g"), i = A("path"), f = A("path"), s = A("path"), o = A("path"), r = A("g"), a = A("path"), _ = A("path"), u = A("path"), c = A("path"), y(i, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), y(i, "fill", "#FF7C00"), y(i, "fill-opacity", "0.4"), y(i, "class", "svelte-43sxxs"), y(f, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), y(f, "fill", "#FF7C00"), y(f, "class", "svelte-43sxxs"), y(s, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), y(s, "fill", "#FF7C00"), y(s, "fill-opacity", "0.4"), y(s, "class", "svelte-43sxxs"), y(o, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), y(o, "fill", "#FF7C00"), y(o, "class", "svelte-43sxxs"), ae(l, "transform", "translate(" + /*$top*/
|
998 |
+
n[1][0] + "px, " + /*$top*/
|
999 |
+
n[1][1] + "px)"), y(a, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), y(a, "fill", "#FF7C00"), y(a, "fill-opacity", "0.4"), y(a, "class", "svelte-43sxxs"), y(_, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), y(_, "fill", "#FF7C00"), y(_, "class", "svelte-43sxxs"), y(u, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), y(u, "fill", "#FF7C00"), y(u, "fill-opacity", "0.4"), y(u, "class", "svelte-43sxxs"), y(c, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), y(c, "fill", "#FF7C00"), y(c, "class", "svelte-43sxxs"), ae(r, "transform", "translate(" + /*$bottom*/
|
1000 |
+
n[2][0] + "px, " + /*$bottom*/
|
1001 |
+
n[2][1] + "px)"), y(t, "viewBox", "-1200 -1200 3000 3000"), y(t, "fill", "none"), y(t, "xmlns", "http://www.w3.org/2000/svg"), y(t, "class", "svelte-43sxxs"), y(e, "class", "svelte-43sxxs"), je(
|
1002 |
+
e,
|
1003 |
+
"margin",
|
1004 |
+
/*margin*/
|
1005 |
+
n[0]
|
1006 |
+
);
|
1007 |
+
},
|
1008 |
+
m(m, h) {
|
1009 |
+
Sl(m, e, h), N(e, t), N(t, l), N(l, i), N(l, f), N(l, s), N(l, o), N(t, r), N(r, a), N(r, _), N(r, u), N(r, c);
|
1010 |
+
},
|
1011 |
+
p(m, [h]) {
|
1012 |
+
h & /*$top*/
|
1013 |
+
2 && ae(l, "transform", "translate(" + /*$top*/
|
1014 |
+
m[1][0] + "px, " + /*$top*/
|
1015 |
+
m[1][1] + "px)"), h & /*$bottom*/
|
1016 |
+
4 && ae(r, "transform", "translate(" + /*$bottom*/
|
1017 |
+
m[2][0] + "px, " + /*$bottom*/
|
1018 |
+
m[2][1] + "px)"), h & /*margin*/
|
1019 |
+
1 && je(
|
1020 |
+
e,
|
1021 |
+
"margin",
|
1022 |
+
/*margin*/
|
1023 |
+
m[0]
|
1024 |
+
);
|
1025 |
+
},
|
1026 |
+
i: Te,
|
1027 |
+
o: Te,
|
1028 |
+
d(m) {
|
1029 |
+
m && Fl(e);
|
1030 |
+
}
|
1031 |
+
};
|
1032 |
+
}
|
1033 |
+
function Al(n, e, t) {
|
1034 |
+
let l, i, { margin: f = !0 } = e;
|
1035 |
+
const s = Pe([0, 0]);
|
1036 |
+
Ze(n, s, (c) => t(1, l = c));
|
1037 |
+
const o = Pe([0, 0]);
|
1038 |
+
Ze(n, o, (c) => t(2, i = c));
|
1039 |
+
let r;
|
1040 |
+
async function a() {
|
1041 |
+
await Promise.all([s.set([125, 140]), o.set([-125, -140])]), await Promise.all([s.set([-125, 140]), o.set([125, -140])]), await Promise.all([s.set([-125, 0]), o.set([125, -0])]), await Promise.all([s.set([125, 0]), o.set([-125, 0])]);
|
1042 |
+
}
|
1043 |
+
async function _() {
|
1044 |
+
await a(), r || _();
|
1045 |
+
}
|
1046 |
+
async function u() {
|
1047 |
+
await Promise.all([s.set([125, 0]), o.set([-125, 0])]), _();
|
1048 |
+
}
|
1049 |
+
return Vl(() => (u(), () => r = !0)), n.$$set = (c) => {
|
1050 |
+
"margin" in c && t(0, f = c.margin);
|
1051 |
+
}, [f, l, i, s, o];
|
1052 |
+
}
|
1053 |
+
class Bl extends ql {
|
1054 |
+
constructor(e) {
|
1055 |
+
super(), Ml(this, e, Al, Nl, zl, { margin: 0 });
|
1056 |
+
}
|
1057 |
+
}
|
1058 |
+
const {
|
1059 |
+
SvelteComponent: Il,
|
1060 |
+
append: X,
|
1061 |
+
attr: I,
|
1062 |
+
binding_callbacks: Ee,
|
1063 |
+
check_outros: ut,
|
1064 |
+
create_component: Pl,
|
1065 |
+
create_slot: Zl,
|
1066 |
+
destroy_component: Tl,
|
1067 |
+
destroy_each: dt,
|
1068 |
+
detach: p,
|
1069 |
+
element: T,
|
1070 |
+
empty: ee,
|
1071 |
+
ensure_array_like: me,
|
1072 |
+
get_all_dirty_from_scope: jl,
|
1073 |
+
get_slot_changes: El,
|
1074 |
+
group_outros: mt,
|
1075 |
+
init: Dl,
|
1076 |
+
insert: k,
|
1077 |
+
mount_component: Rl,
|
1078 |
+
noop: Ce,
|
1079 |
+
safe_not_equal: Hl,
|
1080 |
+
set_data: V,
|
1081 |
+
set_style: H,
|
1082 |
+
space: P,
|
1083 |
+
text: F,
|
1084 |
+
toggle_class: z,
|
1085 |
+
transition_in: x,
|
1086 |
+
transition_out: $,
|
1087 |
+
update_slot_base: Ol
|
1088 |
+
} = window.__gradio__svelte__internal, { tick: Yl } = window.__gradio__svelte__internal, { onDestroy: Jl } = window.__gradio__svelte__internal, Ul = (n) => ({}), De = (n) => ({});
|
1089 |
+
function Re(n, e, t) {
|
1090 |
+
const l = n.slice();
|
1091 |
+
return l[38] = e[t], l[40] = t, l;
|
1092 |
+
}
|
1093 |
+
function He(n, e, t) {
|
1094 |
+
const l = n.slice();
|
1095 |
+
return l[38] = e[t], l;
|
1096 |
+
}
|
1097 |
+
function Xl(n) {
|
1098 |
+
let e, t = (
|
1099 |
+
/*i18n*/
|
1100 |
+
n[1]("common.error") + ""
|
1101 |
+
), l, i, f;
|
1102 |
+
const s = (
|
1103 |
+
/*#slots*/
|
1104 |
+
n[29].error
|
1105 |
+
), o = Zl(
|
1106 |
+
s,
|
1107 |
+
n,
|
1108 |
+
/*$$scope*/
|
1109 |
+
n[28],
|
1110 |
+
De
|
1111 |
+
);
|
1112 |
+
return {
|
1113 |
+
c() {
|
1114 |
+
e = T("span"), l = F(t), i = P(), o && o.c(), I(e, "class", "error svelte-14miwb5");
|
1115 |
+
},
|
1116 |
+
m(r, a) {
|
1117 |
+
k(r, e, a), X(e, l), k(r, i, a), o && o.m(r, a), f = !0;
|
1118 |
+
},
|
1119 |
+
p(r, a) {
|
1120 |
+
(!f || a[0] & /*i18n*/
|
1121 |
+
2) && t !== (t = /*i18n*/
|
1122 |
+
r[1]("common.error") + "") && V(l, t), o && o.p && (!f || a[0] & /*$$scope*/
|
1123 |
+
268435456) && Ol(
|
1124 |
+
o,
|
1125 |
+
s,
|
1126 |
+
r,
|
1127 |
+
/*$$scope*/
|
1128 |
+
r[28],
|
1129 |
+
f ? El(
|
1130 |
+
s,
|
1131 |
+
/*$$scope*/
|
1132 |
+
r[28],
|
1133 |
+
a,
|
1134 |
+
Ul
|
1135 |
+
) : jl(
|
1136 |
+
/*$$scope*/
|
1137 |
+
r[28]
|
1138 |
+
),
|
1139 |
+
De
|
1140 |
+
);
|
1141 |
+
},
|
1142 |
+
i(r) {
|
1143 |
+
f || (x(o, r), f = !0);
|
1144 |
+
},
|
1145 |
+
o(r) {
|
1146 |
+
$(o, r), f = !1;
|
1147 |
+
},
|
1148 |
+
d(r) {
|
1149 |
+
r && (p(e), p(i)), o && o.d(r);
|
1150 |
+
}
|
1151 |
+
};
|
1152 |
+
}
|
1153 |
+
function Gl(n) {
|
1154 |
+
let e, t, l, i, f, s, o, r, a, _ = (
|
1155 |
+
/*variant*/
|
1156 |
+
n[8] === "default" && /*show_eta_bar*/
|
1157 |
+
n[18] && /*show_progress*/
|
1158 |
+
n[6] === "full" && Oe(n)
|
1159 |
+
);
|
1160 |
+
function u(d, q) {
|
1161 |
+
if (
|
1162 |
+
/*progress*/
|
1163 |
+
d[7]
|
1164 |
+
)
|
1165 |
+
return Wl;
|
1166 |
+
if (
|
1167 |
+
/*queue_position*/
|
1168 |
+
d[2] !== null && /*queue_size*/
|
1169 |
+
d[3] !== void 0 && /*queue_position*/
|
1170 |
+
d[2] >= 0
|
1171 |
+
)
|
1172 |
+
return Ql;
|
1173 |
+
if (
|
1174 |
+
/*queue_position*/
|
1175 |
+
d[2] === 0
|
1176 |
+
)
|
1177 |
+
return Kl;
|
1178 |
+
}
|
1179 |
+
let c = u(n), m = c && c(n), h = (
|
1180 |
+
/*timer*/
|
1181 |
+
n[5] && Ue(n)
|
1182 |
+
);
|
1183 |
+
const L = [tn, en], C = [];
|
1184 |
+
function M(d, q) {
|
1185 |
+
return (
|
1186 |
+
/*last_progress_level*/
|
1187 |
+
d[15] != null ? 0 : (
|
1188 |
+
/*show_progress*/
|
1189 |
+
d[6] === "full" ? 1 : -1
|
1190 |
+
)
|
1191 |
+
);
|
1192 |
+
}
|
1193 |
+
~(f = M(n)) && (s = C[f] = L[f](n));
|
1194 |
+
let b = !/*timer*/
|
1195 |
+
n[5] && $e(n);
|
1196 |
+
return {
|
1197 |
+
c() {
|
1198 |
+
_ && _.c(), e = P(), t = T("div"), m && m.c(), l = P(), h && h.c(), i = P(), s && s.c(), o = P(), b && b.c(), r = ee(), I(t, "class", "progress-text svelte-14miwb5"), z(
|
1199 |
+
t,
|
1200 |
+
"meta-text-center",
|
1201 |
+
/*variant*/
|
1202 |
+
n[8] === "center"
|
1203 |
+
), z(
|
1204 |
+
t,
|
1205 |
+
"meta-text",
|
1206 |
+
/*variant*/
|
1207 |
+
n[8] === "default"
|
1208 |
+
);
|
1209 |
+
},
|
1210 |
+
m(d, q) {
|
1211 |
+
_ && _.m(d, q), k(d, e, q), k(d, t, q), m && m.m(t, null), X(t, l), h && h.m(t, null), k(d, i, q), ~f && C[f].m(d, q), k(d, o, q), b && b.m(d, q), k(d, r, q), a = !0;
|
1212 |
+
},
|
1213 |
+
p(d, q) {
|
1214 |
+
/*variant*/
|
1215 |
+
d[8] === "default" && /*show_eta_bar*/
|
1216 |
+
d[18] && /*show_progress*/
|
1217 |
+
d[6] === "full" ? _ ? _.p(d, q) : (_ = Oe(d), _.c(), _.m(e.parentNode, e)) : _ && (_.d(1), _ = null), c === (c = u(d)) && m ? m.p(d, q) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(t, l))), /*timer*/
|
1218 |
+
d[5] ? h ? h.p(d, q) : (h = Ue(d), h.c(), h.m(t, null)) : h && (h.d(1), h = null), (!a || q[0] & /*variant*/
|
1219 |
+
256) && z(
|
1220 |
+
t,
|
1221 |
+
"meta-text-center",
|
1222 |
+
/*variant*/
|
1223 |
+
d[8] === "center"
|
1224 |
+
), (!a || q[0] & /*variant*/
|
1225 |
+
256) && z(
|
1226 |
+
t,
|
1227 |
+
"meta-text",
|
1228 |
+
/*variant*/
|
1229 |
+
d[8] === "default"
|
1230 |
+
);
|
1231 |
+
let w = f;
|
1232 |
+
f = M(d), f === w ? ~f && C[f].p(d, q) : (s && (mt(), $(C[w], 1, 1, () => {
|
1233 |
+
C[w] = null;
|
1234 |
+
}), ut()), ~f ? (s = C[f], s ? s.p(d, q) : (s = C[f] = L[f](d), s.c()), x(s, 1), s.m(o.parentNode, o)) : s = null), /*timer*/
|
1235 |
+
d[5] ? b && (b.d(1), b = null) : b ? b.p(d, q) : (b = $e(d), b.c(), b.m(r.parentNode, r));
|
1236 |
+
},
|
1237 |
+
i(d) {
|
1238 |
+
a || (x(s), a = !0);
|
1239 |
+
},
|
1240 |
+
o(d) {
|
1241 |
+
$(s), a = !1;
|
1242 |
+
},
|
1243 |
+
d(d) {
|
1244 |
+
d && (p(e), p(t), p(i), p(o), p(r)), _ && _.d(d), m && m.d(), h && h.d(), ~f && C[f].d(d), b && b.d(d);
|
1245 |
+
}
|
1246 |
+
};
|
1247 |
+
}
|
1248 |
+
function Oe(n) {
|
1249 |
+
let e, t = `translateX(${/*eta_level*/
|
1250 |
+
(n[17] || 0) * 100 - 100}%)`;
|
1251 |
+
return {
|
1252 |
+
c() {
|
1253 |
+
e = T("div"), I(e, "class", "eta-bar svelte-14miwb5"), H(e, "transform", t);
|
1254 |
+
},
|
1255 |
+
m(l, i) {
|
1256 |
+
k(l, e, i);
|
1257 |
+
},
|
1258 |
+
p(l, i) {
|
1259 |
+
i[0] & /*eta_level*/
|
1260 |
+
131072 && t !== (t = `translateX(${/*eta_level*/
|
1261 |
+
(l[17] || 0) * 100 - 100}%)`) && H(e, "transform", t);
|
1262 |
+
},
|
1263 |
+
d(l) {
|
1264 |
+
l && p(e);
|
1265 |
+
}
|
1266 |
+
};
|
1267 |
+
}
|
1268 |
+
function Kl(n) {
|
1269 |
+
let e;
|
1270 |
+
return {
|
1271 |
+
c() {
|
1272 |
+
e = F("processing |");
|
1273 |
+
},
|
1274 |
+
m(t, l) {
|
1275 |
+
k(t, e, l);
|
1276 |
+
},
|
1277 |
+
p: Ce,
|
1278 |
+
d(t) {
|
1279 |
+
t && p(e);
|
1280 |
+
}
|
1281 |
+
};
|
1282 |
+
}
|
1283 |
+
function Ql(n) {
|
1284 |
+
let e, t = (
|
1285 |
+
/*queue_position*/
|
1286 |
+
n[2] + 1 + ""
|
1287 |
+
), l, i, f, s;
|
1288 |
+
return {
|
1289 |
+
c() {
|
1290 |
+
e = F("queue: "), l = F(t), i = F("/"), f = F(
|
1291 |
+
/*queue_size*/
|
1292 |
+
n[3]
|
1293 |
+
), s = F(" |");
|
1294 |
+
},
|
1295 |
+
m(o, r) {
|
1296 |
+
k(o, e, r), k(o, l, r), k(o, i, r), k(o, f, r), k(o, s, r);
|
1297 |
+
},
|
1298 |
+
p(o, r) {
|
1299 |
+
r[0] & /*queue_position*/
|
1300 |
+
4 && t !== (t = /*queue_position*/
|
1301 |
+
o[2] + 1 + "") && V(l, t), r[0] & /*queue_size*/
|
1302 |
+
8 && V(
|
1303 |
+
f,
|
1304 |
+
/*queue_size*/
|
1305 |
+
o[3]
|
1306 |
+
);
|
1307 |
+
},
|
1308 |
+
d(o) {
|
1309 |
+
o && (p(e), p(l), p(i), p(f), p(s));
|
1310 |
+
}
|
1311 |
+
};
|
1312 |
+
}
|
1313 |
+
function Wl(n) {
|
1314 |
+
let e, t = me(
|
1315 |
+
/*progress*/
|
1316 |
+
n[7]
|
1317 |
+
), l = [];
|
1318 |
+
for (let i = 0; i < t.length; i += 1)
|
1319 |
+
l[i] = Je(He(n, t, i));
|
1320 |
+
return {
|
1321 |
+
c() {
|
1322 |
+
for (let i = 0; i < l.length; i += 1)
|
1323 |
+
l[i].c();
|
1324 |
+
e = ee();
|
1325 |
+
},
|
1326 |
+
m(i, f) {
|
1327 |
+
for (let s = 0; s < l.length; s += 1)
|
1328 |
+
l[s] && l[s].m(i, f);
|
1329 |
+
k(i, e, f);
|
1330 |
+
},
|
1331 |
+
p(i, f) {
|
1332 |
+
if (f[0] & /*progress*/
|
1333 |
+
128) {
|
1334 |
+
t = me(
|
1335 |
+
/*progress*/
|
1336 |
+
i[7]
|
1337 |
+
);
|
1338 |
+
let s;
|
1339 |
+
for (s = 0; s < t.length; s += 1) {
|
1340 |
+
const o = He(i, t, s);
|
1341 |
+
l[s] ? l[s].p(o, f) : (l[s] = Je(o), l[s].c(), l[s].m(e.parentNode, e));
|
1342 |
+
}
|
1343 |
+
for (; s < l.length; s += 1)
|
1344 |
+
l[s].d(1);
|
1345 |
+
l.length = t.length;
|
1346 |
+
}
|
1347 |
+
},
|
1348 |
+
d(i) {
|
1349 |
+
i && p(e), dt(l, i);
|
1350 |
+
}
|
1351 |
+
};
|
1352 |
+
}
|
1353 |
+
function Ye(n) {
|
1354 |
+
let e, t = (
|
1355 |
+
/*p*/
|
1356 |
+
n[38].unit + ""
|
1357 |
+
), l, i, f = " ", s;
|
1358 |
+
function o(_, u) {
|
1359 |
+
return (
|
1360 |
+
/*p*/
|
1361 |
+
_[38].length != null ? $l : xl
|
1362 |
+
);
|
1363 |
+
}
|
1364 |
+
let r = o(n), a = r(n);
|
1365 |
+
return {
|
1366 |
+
c() {
|
1367 |
+
a.c(), e = P(), l = F(t), i = F(" | "), s = F(f);
|
1368 |
+
},
|
1369 |
+
m(_, u) {
|
1370 |
+
a.m(_, u), k(_, e, u), k(_, l, u), k(_, i, u), k(_, s, u);
|
1371 |
+
},
|
1372 |
+
p(_, u) {
|
1373 |
+
r === (r = o(_)) && a ? a.p(_, u) : (a.d(1), a = r(_), a && (a.c(), a.m(e.parentNode, e))), u[0] & /*progress*/
|
1374 |
+
128 && t !== (t = /*p*/
|
1375 |
+
_[38].unit + "") && V(l, t);
|
1376 |
+
},
|
1377 |
+
d(_) {
|
1378 |
+
_ && (p(e), p(l), p(i), p(s)), a.d(_);
|
1379 |
+
}
|
1380 |
+
};
|
1381 |
+
}
|
1382 |
+
function xl(n) {
|
1383 |
+
let e = Q(
|
1384 |
+
/*p*/
|
1385 |
+
n[38].index || 0
|
1386 |
+
) + "", t;
|
1387 |
+
return {
|
1388 |
+
c() {
|
1389 |
+
t = F(e);
|
1390 |
+
},
|
1391 |
+
m(l, i) {
|
1392 |
+
k(l, t, i);
|
1393 |
+
},
|
1394 |
+
p(l, i) {
|
1395 |
+
i[0] & /*progress*/
|
1396 |
+
128 && e !== (e = Q(
|
1397 |
+
/*p*/
|
1398 |
+
l[38].index || 0
|
1399 |
+
) + "") && V(t, e);
|
1400 |
+
},
|
1401 |
+
d(l) {
|
1402 |
+
l && p(t);
|
1403 |
+
}
|
1404 |
+
};
|
1405 |
+
}
|
1406 |
+
function $l(n) {
|
1407 |
+
let e = Q(
|
1408 |
+
/*p*/
|
1409 |
+
n[38].index || 0
|
1410 |
+
) + "", t, l, i = Q(
|
1411 |
+
/*p*/
|
1412 |
+
n[38].length
|
1413 |
+
) + "", f;
|
1414 |
+
return {
|
1415 |
+
c() {
|
1416 |
+
t = F(e), l = F("/"), f = F(i);
|
1417 |
+
},
|
1418 |
+
m(s, o) {
|
1419 |
+
k(s, t, o), k(s, l, o), k(s, f, o);
|
1420 |
+
},
|
1421 |
+
p(s, o) {
|
1422 |
+
o[0] & /*progress*/
|
1423 |
+
128 && e !== (e = Q(
|
1424 |
+
/*p*/
|
1425 |
+
s[38].index || 0
|
1426 |
+
) + "") && V(t, e), o[0] & /*progress*/
|
1427 |
+
128 && i !== (i = Q(
|
1428 |
+
/*p*/
|
1429 |
+
s[38].length
|
1430 |
+
) + "") && V(f, i);
|
1431 |
+
},
|
1432 |
+
d(s) {
|
1433 |
+
s && (p(t), p(l), p(f));
|
1434 |
+
}
|
1435 |
+
};
|
1436 |
+
}
|
1437 |
+
function Je(n) {
|
1438 |
+
let e, t = (
|
1439 |
+
/*p*/
|
1440 |
+
n[38].index != null && Ye(n)
|
1441 |
+
);
|
1442 |
+
return {
|
1443 |
+
c() {
|
1444 |
+
t && t.c(), e = ee();
|
1445 |
+
},
|
1446 |
+
m(l, i) {
|
1447 |
+
t && t.m(l, i), k(l, e, i);
|
1448 |
+
},
|
1449 |
+
p(l, i) {
|
1450 |
+
/*p*/
|
1451 |
+
l[38].index != null ? t ? t.p(l, i) : (t = Ye(l), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
1452 |
+
},
|
1453 |
+
d(l) {
|
1454 |
+
l && p(e), t && t.d(l);
|
1455 |
+
}
|
1456 |
+
};
|
1457 |
+
}
|
1458 |
+
function Ue(n) {
|
1459 |
+
let e, t = (
|
1460 |
+
/*eta*/
|
1461 |
+
n[0] ? `/${/*formatted_eta*/
|
1462 |
+
n[19]}` : ""
|
1463 |
+
), l, i;
|
1464 |
+
return {
|
1465 |
+
c() {
|
1466 |
+
e = F(
|
1467 |
+
/*formatted_timer*/
|
1468 |
+
n[20]
|
1469 |
+
), l = F(t), i = F("s");
|
1470 |
+
},
|
1471 |
+
m(f, s) {
|
1472 |
+
k(f, e, s), k(f, l, s), k(f, i, s);
|
1473 |
+
},
|
1474 |
+
p(f, s) {
|
1475 |
+
s[0] & /*formatted_timer*/
|
1476 |
+
1048576 && V(
|
1477 |
+
e,
|
1478 |
+
/*formatted_timer*/
|
1479 |
+
f[20]
|
1480 |
+
), s[0] & /*eta, formatted_eta*/
|
1481 |
+
524289 && t !== (t = /*eta*/
|
1482 |
+
f[0] ? `/${/*formatted_eta*/
|
1483 |
+
f[19]}` : "") && V(l, t);
|
1484 |
+
},
|
1485 |
+
d(f) {
|
1486 |
+
f && (p(e), p(l), p(i));
|
1487 |
+
}
|
1488 |
+
};
|
1489 |
+
}
|
1490 |
+
function en(n) {
|
1491 |
+
let e, t;
|
1492 |
+
return e = new Bl({
|
1493 |
+
props: { margin: (
|
1494 |
+
/*variant*/
|
1495 |
+
n[8] === "default"
|
1496 |
+
) }
|
1497 |
+
}), {
|
1498 |
+
c() {
|
1499 |
+
Pl(e.$$.fragment);
|
1500 |
+
},
|
1501 |
+
m(l, i) {
|
1502 |
+
Rl(e, l, i), t = !0;
|
1503 |
+
},
|
1504 |
+
p(l, i) {
|
1505 |
+
const f = {};
|
1506 |
+
i[0] & /*variant*/
|
1507 |
+
256 && (f.margin = /*variant*/
|
1508 |
+
l[8] === "default"), e.$set(f);
|
1509 |
+
},
|
1510 |
+
i(l) {
|
1511 |
+
t || (x(e.$$.fragment, l), t = !0);
|
1512 |
+
},
|
1513 |
+
o(l) {
|
1514 |
+
$(e.$$.fragment, l), t = !1;
|
1515 |
+
},
|
1516 |
+
d(l) {
|
1517 |
+
Tl(e, l);
|
1518 |
+
}
|
1519 |
+
};
|
1520 |
+
}
|
1521 |
+
function tn(n) {
|
1522 |
+
let e, t, l, i, f, s = `${/*last_progress_level*/
|
1523 |
+
n[15] * 100}%`, o = (
|
1524 |
+
/*progress*/
|
1525 |
+
n[7] != null && Xe(n)
|
1526 |
+
);
|
1527 |
+
return {
|
1528 |
+
c() {
|
1529 |
+
e = T("div"), t = T("div"), o && o.c(), l = P(), i = T("div"), f = T("div"), I(t, "class", "progress-level-inner svelte-14miwb5"), I(f, "class", "progress-bar svelte-14miwb5"), H(f, "width", s), I(i, "class", "progress-bar-wrap svelte-14miwb5"), I(e, "class", "progress-level svelte-14miwb5");
|
1530 |
+
},
|
1531 |
+
m(r, a) {
|
1532 |
+
k(r, e, a), X(e, t), o && o.m(t, null), X(e, l), X(e, i), X(i, f), n[30](f);
|
1533 |
+
},
|
1534 |
+
p(r, a) {
|
1535 |
+
/*progress*/
|
1536 |
+
r[7] != null ? o ? o.p(r, a) : (o = Xe(r), o.c(), o.m(t, null)) : o && (o.d(1), o = null), a[0] & /*last_progress_level*/
|
1537 |
+
32768 && s !== (s = `${/*last_progress_level*/
|
1538 |
+
r[15] * 100}%`) && H(f, "width", s);
|
1539 |
+
},
|
1540 |
+
i: Ce,
|
1541 |
+
o: Ce,
|
1542 |
+
d(r) {
|
1543 |
+
r && p(e), o && o.d(), n[30](null);
|
1544 |
+
}
|
1545 |
+
};
|
1546 |
+
}
|
1547 |
+
function Xe(n) {
|
1548 |
+
let e, t = me(
|
1549 |
+
/*progress*/
|
1550 |
+
n[7]
|
1551 |
+
), l = [];
|
1552 |
+
for (let i = 0; i < t.length; i += 1)
|
1553 |
+
l[i] = xe(Re(n, t, i));
|
1554 |
+
return {
|
1555 |
+
c() {
|
1556 |
+
for (let i = 0; i < l.length; i += 1)
|
1557 |
+
l[i].c();
|
1558 |
+
e = ee();
|
1559 |
+
},
|
1560 |
+
m(i, f) {
|
1561 |
+
for (let s = 0; s < l.length; s += 1)
|
1562 |
+
l[s] && l[s].m(i, f);
|
1563 |
+
k(i, e, f);
|
1564 |
+
},
|
1565 |
+
p(i, f) {
|
1566 |
+
if (f[0] & /*progress_level, progress*/
|
1567 |
+
16512) {
|
1568 |
+
t = me(
|
1569 |
+
/*progress*/
|
1570 |
+
i[7]
|
1571 |
+
);
|
1572 |
+
let s;
|
1573 |
+
for (s = 0; s < t.length; s += 1) {
|
1574 |
+
const o = Re(i, t, s);
|
1575 |
+
l[s] ? l[s].p(o, f) : (l[s] = xe(o), l[s].c(), l[s].m(e.parentNode, e));
|
1576 |
+
}
|
1577 |
+
for (; s < l.length; s += 1)
|
1578 |
+
l[s].d(1);
|
1579 |
+
l.length = t.length;
|
1580 |
+
}
|
1581 |
+
},
|
1582 |
+
d(i) {
|
1583 |
+
i && p(e), dt(l, i);
|
1584 |
+
}
|
1585 |
+
};
|
1586 |
+
}
|
1587 |
+
function Ge(n) {
|
1588 |
+
let e, t, l, i, f = (
|
1589 |
+
/*i*/
|
1590 |
+
n[40] !== 0 && ln()
|
1591 |
+
), s = (
|
1592 |
+
/*p*/
|
1593 |
+
n[38].desc != null && Ke(n)
|
1594 |
+
), o = (
|
1595 |
+
/*p*/
|
1596 |
+
n[38].desc != null && /*progress_level*/
|
1597 |
+
n[14] && /*progress_level*/
|
1598 |
+
n[14][
|
1599 |
+
/*i*/
|
1600 |
+
n[40]
|
1601 |
+
] != null && Qe()
|
1602 |
+
), r = (
|
1603 |
+
/*progress_level*/
|
1604 |
+
n[14] != null && We(n)
|
1605 |
+
);
|
1606 |
+
return {
|
1607 |
+
c() {
|
1608 |
+
f && f.c(), e = P(), s && s.c(), t = P(), o && o.c(), l = P(), r && r.c(), i = ee();
|
1609 |
+
},
|
1610 |
+
m(a, _) {
|
1611 |
+
f && f.m(a, _), k(a, e, _), s && s.m(a, _), k(a, t, _), o && o.m(a, _), k(a, l, _), r && r.m(a, _), k(a, i, _);
|
1612 |
+
},
|
1613 |
+
p(a, _) {
|
1614 |
+
/*p*/
|
1615 |
+
a[38].desc != null ? s ? s.p(a, _) : (s = Ke(a), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), /*p*/
|
1616 |
+
a[38].desc != null && /*progress_level*/
|
1617 |
+
a[14] && /*progress_level*/
|
1618 |
+
a[14][
|
1619 |
+
/*i*/
|
1620 |
+
a[40]
|
1621 |
+
] != null ? o || (o = Qe(), o.c(), o.m(l.parentNode, l)) : o && (o.d(1), o = null), /*progress_level*/
|
1622 |
+
a[14] != null ? r ? r.p(a, _) : (r = We(a), r.c(), r.m(i.parentNode, i)) : r && (r.d(1), r = null);
|
1623 |
+
},
|
1624 |
+
d(a) {
|
1625 |
+
a && (p(e), p(t), p(l), p(i)), f && f.d(a), s && s.d(a), o && o.d(a), r && r.d(a);
|
1626 |
+
}
|
1627 |
+
};
|
1628 |
+
}
|
1629 |
+
function ln(n) {
|
1630 |
+
let e;
|
1631 |
+
return {
|
1632 |
+
c() {
|
1633 |
+
e = F(" /");
|
1634 |
+
},
|
1635 |
+
m(t, l) {
|
1636 |
+
k(t, e, l);
|
1637 |
+
},
|
1638 |
+
d(t) {
|
1639 |
+
t && p(e);
|
1640 |
+
}
|
1641 |
+
};
|
1642 |
+
}
|
1643 |
+
function Ke(n) {
|
1644 |
+
let e = (
|
1645 |
+
/*p*/
|
1646 |
+
n[38].desc + ""
|
1647 |
+
), t;
|
1648 |
+
return {
|
1649 |
+
c() {
|
1650 |
+
t = F(e);
|
1651 |
+
},
|
1652 |
+
m(l, i) {
|
1653 |
+
k(l, t, i);
|
1654 |
+
},
|
1655 |
+
p(l, i) {
|
1656 |
+
i[0] & /*progress*/
|
1657 |
+
128 && e !== (e = /*p*/
|
1658 |
+
l[38].desc + "") && V(t, e);
|
1659 |
+
},
|
1660 |
+
d(l) {
|
1661 |
+
l && p(t);
|
1662 |
+
}
|
1663 |
+
};
|
1664 |
+
}
|
1665 |
+
function Qe(n) {
|
1666 |
+
let e;
|
1667 |
+
return {
|
1668 |
+
c() {
|
1669 |
+
e = F("-");
|
1670 |
+
},
|
1671 |
+
m(t, l) {
|
1672 |
+
k(t, e, l);
|
1673 |
+
},
|
1674 |
+
d(t) {
|
1675 |
+
t && p(e);
|
1676 |
+
}
|
1677 |
+
};
|
1678 |
+
}
|
1679 |
+
function We(n) {
|
1680 |
+
let e = (100 * /*progress_level*/
|
1681 |
+
(n[14][
|
1682 |
+
/*i*/
|
1683 |
+
n[40]
|
1684 |
+
] || 0)).toFixed(1) + "", t, l;
|
1685 |
+
return {
|
1686 |
+
c() {
|
1687 |
+
t = F(e), l = F("%");
|
1688 |
+
},
|
1689 |
+
m(i, f) {
|
1690 |
+
k(i, t, f), k(i, l, f);
|
1691 |
+
},
|
1692 |
+
p(i, f) {
|
1693 |
+
f[0] & /*progress_level*/
|
1694 |
+
16384 && e !== (e = (100 * /*progress_level*/
|
1695 |
+
(i[14][
|
1696 |
+
/*i*/
|
1697 |
+
i[40]
|
1698 |
+
] || 0)).toFixed(1) + "") && V(t, e);
|
1699 |
+
},
|
1700 |
+
d(i) {
|
1701 |
+
i && (p(t), p(l));
|
1702 |
+
}
|
1703 |
+
};
|
1704 |
+
}
|
1705 |
+
function xe(n) {
|
1706 |
+
let e, t = (
|
1707 |
+
/*p*/
|
1708 |
+
(n[38].desc != null || /*progress_level*/
|
1709 |
+
n[14] && /*progress_level*/
|
1710 |
+
n[14][
|
1711 |
+
/*i*/
|
1712 |
+
n[40]
|
1713 |
+
] != null) && Ge(n)
|
1714 |
+
);
|
1715 |
+
return {
|
1716 |
+
c() {
|
1717 |
+
t && t.c(), e = ee();
|
1718 |
+
},
|
1719 |
+
m(l, i) {
|
1720 |
+
t && t.m(l, i), k(l, e, i);
|
1721 |
+
},
|
1722 |
+
p(l, i) {
|
1723 |
+
/*p*/
|
1724 |
+
l[38].desc != null || /*progress_level*/
|
1725 |
+
l[14] && /*progress_level*/
|
1726 |
+
l[14][
|
1727 |
+
/*i*/
|
1728 |
+
l[40]
|
1729 |
+
] != null ? t ? t.p(l, i) : (t = Ge(l), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
1730 |
+
},
|
1731 |
+
d(l) {
|
1732 |
+
l && p(e), t && t.d(l);
|
1733 |
+
}
|
1734 |
+
};
|
1735 |
+
}
|
1736 |
+
function $e(n) {
|
1737 |
+
let e, t;
|
1738 |
+
return {
|
1739 |
+
c() {
|
1740 |
+
e = T("p"), t = F(
|
1741 |
+
/*loading_text*/
|
1742 |
+
n[9]
|
1743 |
+
), I(e, "class", "loading svelte-14miwb5");
|
1744 |
+
},
|
1745 |
+
m(l, i) {
|
1746 |
+
k(l, e, i), X(e, t);
|
1747 |
+
},
|
1748 |
+
p(l, i) {
|
1749 |
+
i[0] & /*loading_text*/
|
1750 |
+
512 && V(
|
1751 |
+
t,
|
1752 |
+
/*loading_text*/
|
1753 |
+
l[9]
|
1754 |
+
);
|
1755 |
+
},
|
1756 |
+
d(l) {
|
1757 |
+
l && p(e);
|
1758 |
+
}
|
1759 |
+
};
|
1760 |
+
}
|
1761 |
+
function nn(n) {
|
1762 |
+
let e, t, l, i, f;
|
1763 |
+
const s = [Gl, Xl], o = [];
|
1764 |
+
function r(a, _) {
|
1765 |
+
return (
|
1766 |
+
/*status*/
|
1767 |
+
a[4] === "pending" ? 0 : (
|
1768 |
+
/*status*/
|
1769 |
+
a[4] === "error" ? 1 : -1
|
1770 |
+
)
|
1771 |
+
);
|
1772 |
+
}
|
1773 |
+
return ~(t = r(n)) && (l = o[t] = s[t](n)), {
|
1774 |
+
c() {
|
1775 |
+
e = T("div"), l && l.c(), I(e, "class", i = "wrap " + /*variant*/
|
1776 |
+
n[8] + " " + /*show_progress*/
|
1777 |
+
n[6] + " svelte-14miwb5"), z(e, "hide", !/*status*/
|
1778 |
+
n[4] || /*status*/
|
1779 |
+
n[4] === "complete" || /*show_progress*/
|
1780 |
+
n[6] === "hidden"), z(
|
1781 |
+
e,
|
1782 |
+
"translucent",
|
1783 |
+
/*variant*/
|
1784 |
+
n[8] === "center" && /*status*/
|
1785 |
+
(n[4] === "pending" || /*status*/
|
1786 |
+
n[4] === "error") || /*translucent*/
|
1787 |
+
n[11] || /*show_progress*/
|
1788 |
+
n[6] === "minimal"
|
1789 |
+
), z(
|
1790 |
+
e,
|
1791 |
+
"generating",
|
1792 |
+
/*status*/
|
1793 |
+
n[4] === "generating"
|
1794 |
+
), z(
|
1795 |
+
e,
|
1796 |
+
"border",
|
1797 |
+
/*border*/
|
1798 |
+
n[12]
|
1799 |
+
), H(
|
1800 |
+
e,
|
1801 |
+
"position",
|
1802 |
+
/*absolute*/
|
1803 |
+
n[10] ? "absolute" : "static"
|
1804 |
+
), H(
|
1805 |
+
e,
|
1806 |
+
"padding",
|
1807 |
+
/*absolute*/
|
1808 |
+
n[10] ? "0" : "var(--size-8) 0"
|
1809 |
+
);
|
1810 |
+
},
|
1811 |
+
m(a, _) {
|
1812 |
+
k(a, e, _), ~t && o[t].m(e, null), n[31](e), f = !0;
|
1813 |
+
},
|
1814 |
+
p(a, _) {
|
1815 |
+
let u = t;
|
1816 |
+
t = r(a), t === u ? ~t && o[t].p(a, _) : (l && (mt(), $(o[u], 1, 1, () => {
|
1817 |
+
o[u] = null;
|
1818 |
+
}), ut()), ~t ? (l = o[t], l ? l.p(a, _) : (l = o[t] = s[t](a), l.c()), x(l, 1), l.m(e, null)) : l = null), (!f || _[0] & /*variant, show_progress*/
|
1819 |
+
320 && i !== (i = "wrap " + /*variant*/
|
1820 |
+
a[8] + " " + /*show_progress*/
|
1821 |
+
a[6] + " svelte-14miwb5")) && I(e, "class", i), (!f || _[0] & /*variant, show_progress, status, show_progress*/
|
1822 |
+
336) && z(e, "hide", !/*status*/
|
1823 |
+
a[4] || /*status*/
|
1824 |
+
a[4] === "complete" || /*show_progress*/
|
1825 |
+
a[6] === "hidden"), (!f || _[0] & /*variant, show_progress, variant, status, translucent, show_progress*/
|
1826 |
+
2384) && z(
|
1827 |
+
e,
|
1828 |
+
"translucent",
|
1829 |
+
/*variant*/
|
1830 |
+
a[8] === "center" && /*status*/
|
1831 |
+
(a[4] === "pending" || /*status*/
|
1832 |
+
a[4] === "error") || /*translucent*/
|
1833 |
+
a[11] || /*show_progress*/
|
1834 |
+
a[6] === "minimal"
|
1835 |
+
), (!f || _[0] & /*variant, show_progress, status*/
|
1836 |
+
336) && z(
|
1837 |
+
e,
|
1838 |
+
"generating",
|
1839 |
+
/*status*/
|
1840 |
+
a[4] === "generating"
|
1841 |
+
), (!f || _[0] & /*variant, show_progress, border*/
|
1842 |
+
4416) && z(
|
1843 |
+
e,
|
1844 |
+
"border",
|
1845 |
+
/*border*/
|
1846 |
+
a[12]
|
1847 |
+
), _[0] & /*absolute*/
|
1848 |
+
1024 && H(
|
1849 |
+
e,
|
1850 |
+
"position",
|
1851 |
+
/*absolute*/
|
1852 |
+
a[10] ? "absolute" : "static"
|
1853 |
+
), _[0] & /*absolute*/
|
1854 |
+
1024 && H(
|
1855 |
+
e,
|
1856 |
+
"padding",
|
1857 |
+
/*absolute*/
|
1858 |
+
a[10] ? "0" : "var(--size-8) 0"
|
1859 |
+
);
|
1860 |
+
},
|
1861 |
+
i(a) {
|
1862 |
+
f || (x(l), f = !0);
|
1863 |
+
},
|
1864 |
+
o(a) {
|
1865 |
+
$(l), f = !1;
|
1866 |
+
},
|
1867 |
+
d(a) {
|
1868 |
+
a && p(e), ~t && o[t].d(), n[31](null);
|
1869 |
+
}
|
1870 |
+
};
|
1871 |
+
}
|
1872 |
+
let _e = [], ke = !1;
|
1873 |
+
async function fn(n, e = !0) {
|
1874 |
+
if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && e !== !0)) {
|
1875 |
+
if (_e.push(n), !ke)
|
1876 |
+
ke = !0;
|
1877 |
+
else
|
1878 |
+
return;
|
1879 |
+
await Yl(), requestAnimationFrame(() => {
|
1880 |
+
let t = [0, 0];
|
1881 |
+
for (let l = 0; l < _e.length; l++) {
|
1882 |
+
const f = _e[l].getBoundingClientRect();
|
1883 |
+
(l === 0 || f.top + window.scrollY <= t[0]) && (t[0] = f.top + window.scrollY, t[1] = l);
|
1884 |
+
}
|
1885 |
+
window.scrollTo({ top: t[0] - 20, behavior: "smooth" }), ke = !1, _e = [];
|
1886 |
+
});
|
1887 |
+
}
|
1888 |
+
}
|
1889 |
+
function sn(n, e, t) {
|
1890 |
+
let l, { $$slots: i = {}, $$scope: f } = e, { i18n: s } = e, { eta: o = null } = e, { queue: r = !1 } = e, { queue_position: a } = e, { queue_size: _ } = e, { status: u } = e, { scroll_to_output: c = !1 } = e, { timer: m = !0 } = e, { show_progress: h = "full" } = e, { message: L = null } = e, { progress: C = null } = e, { variant: M = "default" } = e, { loading_text: b = "Loading..." } = e, { absolute: d = !0 } = e, { translucent: q = !1 } = e, { border: w = !1 } = e, { autoscroll: be } = e, te, le = !1, oe = 0, O = 0, ge = null, qe = 0, Y = null, ne, j = null, Fe = !0;
|
1891 |
+
const gt = () => {
|
1892 |
+
t(25, oe = performance.now()), t(26, O = 0), le = !0, Le();
|
1893 |
+
};
|
1894 |
+
function Le() {
|
1895 |
+
requestAnimationFrame(() => {
|
1896 |
+
t(26, O = (performance.now() - oe) / 1e3), le && Le();
|
1897 |
+
});
|
1898 |
+
}
|
1899 |
+
function Me() {
|
1900 |
+
t(26, O = 0), le && (le = !1);
|
1901 |
+
}
|
1902 |
+
Jl(() => {
|
1903 |
+
le && Me();
|
1904 |
+
});
|
1905 |
+
let Se = null;
|
1906 |
+
function ht(g) {
|
1907 |
+
Ee[g ? "unshift" : "push"](() => {
|
1908 |
+
j = g, t(16, j), t(7, C), t(14, Y), t(15, ne);
|
1909 |
+
});
|
1910 |
+
}
|
1911 |
+
function wt(g) {
|
1912 |
+
Ee[g ? "unshift" : "push"](() => {
|
1913 |
+
te = g, t(13, te);
|
1914 |
+
});
|
1915 |
+
}
|
1916 |
+
return n.$$set = (g) => {
|
1917 |
+
"i18n" in g && t(1, s = g.i18n), "eta" in g && t(0, o = g.eta), "queue" in g && t(21, r = g.queue), "queue_position" in g && t(2, a = g.queue_position), "queue_size" in g && t(3, _ = g.queue_size), "status" in g && t(4, u = g.status), "scroll_to_output" in g && t(22, c = g.scroll_to_output), "timer" in g && t(5, m = g.timer), "show_progress" in g && t(6, h = g.show_progress), "message" in g && t(23, L = g.message), "progress" in g && t(7, C = g.progress), "variant" in g && t(8, M = g.variant), "loading_text" in g && t(9, b = g.loading_text), "absolute" in g && t(10, d = g.absolute), "translucent" in g && t(11, q = g.translucent), "border" in g && t(12, w = g.border), "autoscroll" in g && t(24, be = g.autoscroll), "$$scope" in g && t(28, f = g.$$scope);
|
1918 |
+
}, n.$$.update = () => {
|
1919 |
+
n.$$.dirty[0] & /*eta, old_eta, queue, timer_start*/
|
1920 |
+
169869313 && (o === null ? t(0, o = ge) : r && t(0, o = (performance.now() - oe) / 1e3 + o), o != null && (t(19, Se = o.toFixed(1)), t(27, ge = o))), n.$$.dirty[0] & /*eta, timer_diff*/
|
1921 |
+
67108865 && t(17, qe = o === null || o <= 0 || !O ? null : Math.min(O / o, 1)), n.$$.dirty[0] & /*progress*/
|
1922 |
+
128 && C != null && t(18, Fe = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
|
1923 |
+
114816 && (C != null ? t(14, Y = C.map((g) => {
|
1924 |
+
if (g.index != null && g.length != null)
|
1925 |
+
return g.index / g.length;
|
1926 |
+
if (g.progress != null)
|
1927 |
+
return g.progress;
|
1928 |
+
})) : t(14, Y = null), Y ? (t(15, ne = Y[Y.length - 1]), j && (ne === 0 ? t(16, j.style.transition = "0", j) : t(16, j.style.transition = "150ms", j))) : t(15, ne = void 0)), n.$$.dirty[0] & /*status*/
|
1929 |
+
16 && (u === "pending" ? gt() : Me()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
|
1930 |
+
20979728 && te && c && (u === "pending" || u === "complete") && fn(te, be), n.$$.dirty[0] & /*status, message*/
|
1931 |
+
8388624, n.$$.dirty[0] & /*timer_diff*/
|
1932 |
+
67108864 && t(20, l = O.toFixed(1));
|
1933 |
+
}, [
|
1934 |
+
o,
|
1935 |
+
s,
|
1936 |
+
a,
|
1937 |
+
_,
|
1938 |
+
u,
|
1939 |
+
m,
|
1940 |
+
h,
|
1941 |
+
C,
|
1942 |
+
M,
|
1943 |
+
b,
|
1944 |
+
d,
|
1945 |
+
q,
|
1946 |
+
w,
|
1947 |
+
te,
|
1948 |
+
Y,
|
1949 |
+
ne,
|
1950 |
+
j,
|
1951 |
+
qe,
|
1952 |
+
Fe,
|
1953 |
+
Se,
|
1954 |
+
l,
|
1955 |
+
r,
|
1956 |
+
c,
|
1957 |
+
L,
|
1958 |
+
be,
|
1959 |
+
oe,
|
1960 |
+
O,
|
1961 |
+
ge,
|
1962 |
+
f,
|
1963 |
+
i,
|
1964 |
+
ht,
|
1965 |
+
wt
|
1966 |
+
];
|
1967 |
+
}
|
1968 |
+
class on extends Il {
|
1969 |
+
constructor(e) {
|
1970 |
+
super(), Dl(
|
1971 |
+
this,
|
1972 |
+
e,
|
1973 |
+
sn,
|
1974 |
+
nn,
|
1975 |
+
Hl,
|
1976 |
+
{
|
1977 |
+
i18n: 1,
|
1978 |
+
eta: 0,
|
1979 |
+
queue: 21,
|
1980 |
+
queue_position: 2,
|
1981 |
+
queue_size: 3,
|
1982 |
+
status: 4,
|
1983 |
+
scroll_to_output: 22,
|
1984 |
+
timer: 5,
|
1985 |
+
show_progress: 6,
|
1986 |
+
message: 23,
|
1987 |
+
progress: 7,
|
1988 |
+
variant: 8,
|
1989 |
+
loading_text: 9,
|
1990 |
+
absolute: 10,
|
1991 |
+
translucent: 11,
|
1992 |
+
border: 12,
|
1993 |
+
autoscroll: 24
|
1994 |
+
},
|
1995 |
+
null,
|
1996 |
+
[-1, -1]
|
1997 |
+
);
|
1998 |
+
}
|
1999 |
+
}
|
2000 |
+
new Intl.Collator(0, { numeric: 1 }).compare;
|
2001 |
+
function bt(n, e, t) {
|
2002 |
+
if (n == null)
|
2003 |
+
return null;
|
2004 |
+
if (Array.isArray(n)) {
|
2005 |
+
const l = [];
|
2006 |
+
for (const i of n)
|
2007 |
+
i == null ? l.push(null) : l.push(bt(i, e, t));
|
2008 |
+
return l;
|
2009 |
+
}
|
2010 |
+
return n.is_stream ? t == null ? new ye({
|
2011 |
+
...n,
|
2012 |
+
url: e + "/stream/" + n.path
|
2013 |
+
}) : new ye({
|
2014 |
+
...n,
|
2015 |
+
url: "/proxy=" + t + "stream/" + n.path
|
2016 |
+
}) : new ye({
|
2017 |
+
...n,
|
2018 |
+
url: an(n.path, e, t)
|
2019 |
+
});
|
2020 |
+
}
|
2021 |
+
function rn(n) {
|
2022 |
+
try {
|
2023 |
+
const e = new URL(n);
|
2024 |
+
return e.protocol === "http:" || e.protocol === "https:";
|
2025 |
+
} catch {
|
2026 |
+
return !1;
|
2027 |
+
}
|
2028 |
+
}
|
2029 |
+
function an(n, e, t) {
|
2030 |
+
return n == null ? t ? `/proxy=${t}file=` : `${e}/file=` : rn(n) ? n : t ? `/proxy=${t}file=${n}` : `${e}/file=${n}`;
|
2031 |
+
}
|
2032 |
+
class ye {
|
2033 |
+
constructor({
|
2034 |
+
path: e,
|
2035 |
+
url: t,
|
2036 |
+
orig_name: l,
|
2037 |
+
size: i,
|
2038 |
+
blob: f,
|
2039 |
+
is_stream: s,
|
2040 |
+
mime_type: o,
|
2041 |
+
alt_text: r
|
2042 |
+
}) {
|
2043 |
+
this.path = e, this.url = t, this.orig_name = l, this.size = i, this.blob = t ? void 0 : f, this.is_stream = s, this.mime_type = o, this.alt_text = r;
|
2044 |
+
}
|
2045 |
+
}
|
2046 |
+
const {
|
2047 |
+
SvelteComponent: _n,
|
2048 |
+
assign: cn,
|
2049 |
+
attr: U,
|
2050 |
+
check_outros: et,
|
2051 |
+
create_component: ie,
|
2052 |
+
destroy_component: fe,
|
2053 |
+
detach: ue,
|
2054 |
+
element: un,
|
2055 |
+
empty: dn,
|
2056 |
+
get_spread_object: mn,
|
2057 |
+
get_spread_update: bn,
|
2058 |
+
group_outros: tt,
|
2059 |
+
init: gn,
|
2060 |
+
insert: de,
|
2061 |
+
mount_component: se,
|
2062 |
+
noop: lt,
|
2063 |
+
safe_not_equal: hn,
|
2064 |
+
space: nt,
|
2065 |
+
src_url_equal: it,
|
2066 |
+
transition_in: B,
|
2067 |
+
transition_out: Z
|
2068 |
+
} = window.__gradio__svelte__internal;
|
2069 |
+
function ft(n) {
|
2070 |
+
let e, t;
|
2071 |
+
const l = [
|
2072 |
+
{
|
2073 |
+
autoscroll: (
|
2074 |
+
/*gradio*/
|
2075 |
+
n[10].autoscroll
|
2076 |
+
)
|
2077 |
+
},
|
2078 |
+
{ i18n: (
|
2079 |
+
/*gradio*/
|
2080 |
+
n[10].i18n
|
2081 |
+
) },
|
2082 |
+
/*loading_status*/
|
2083 |
+
n[7]
|
2084 |
+
];
|
2085 |
+
let i = {};
|
2086 |
+
for (let f = 0; f < l.length; f += 1)
|
2087 |
+
i = cn(i, l[f]);
|
2088 |
+
return e = new on({ props: i }), {
|
2089 |
+
c() {
|
2090 |
+
ie(e.$$.fragment);
|
2091 |
+
},
|
2092 |
+
m(f, s) {
|
2093 |
+
se(e, f, s), t = !0;
|
2094 |
+
},
|
2095 |
+
p(f, s) {
|
2096 |
+
const o = s & /*gradio, loading_status*/
|
2097 |
+
1152 ? bn(l, [
|
2098 |
+
s & /*gradio*/
|
2099 |
+
1024 && {
|
2100 |
+
autoscroll: (
|
2101 |
+
/*gradio*/
|
2102 |
+
f[10].autoscroll
|
2103 |
+
)
|
2104 |
+
},
|
2105 |
+
s & /*gradio*/
|
2106 |
+
1024 && { i18n: (
|
2107 |
+
/*gradio*/
|
2108 |
+
f[10].i18n
|
2109 |
+
) },
|
2110 |
+
s & /*loading_status*/
|
2111 |
+
128 && mn(
|
2112 |
+
/*loading_status*/
|
2113 |
+
f[7]
|
2114 |
+
)
|
2115 |
+
]) : {};
|
2116 |
+
e.$set(o);
|
2117 |
+
},
|
2118 |
+
i(f) {
|
2119 |
+
t || (B(e.$$.fragment, f), t = !0);
|
2120 |
+
},
|
2121 |
+
o(f) {
|
2122 |
+
Z(e.$$.fragment, f), t = !1;
|
2123 |
+
},
|
2124 |
+
d(f) {
|
2125 |
+
fe(e, f);
|
2126 |
+
}
|
2127 |
+
};
|
2128 |
+
}
|
2129 |
+
function wn(n) {
|
2130 |
+
let e, t;
|
2131 |
+
return e = new dl({
|
2132 |
+
props: {
|
2133 |
+
unpadded_box: !0,
|
2134 |
+
size: "large",
|
2135 |
+
$$slots: { default: [kn] },
|
2136 |
+
$$scope: { ctx: n }
|
2137 |
+
}
|
2138 |
+
}), {
|
2139 |
+
c() {
|
2140 |
+
ie(e.$$.fragment);
|
2141 |
+
},
|
2142 |
+
m(l, i) {
|
2143 |
+
se(e, l, i), t = !0;
|
2144 |
+
},
|
2145 |
+
p(l, i) {
|
2146 |
+
const f = {};
|
2147 |
+
i & /*$$scope*/
|
2148 |
+
65536 && (f.$$scope = { dirty: i, ctx: l }), e.$set(f);
|
2149 |
+
},
|
2150 |
+
i(l) {
|
2151 |
+
t || (B(e.$$.fragment, l), t = !0);
|
2152 |
+
},
|
2153 |
+
o(l) {
|
2154 |
+
Z(e.$$.fragment, l), t = !1;
|
2155 |
+
},
|
2156 |
+
d(l) {
|
2157 |
+
fe(e, l);
|
2158 |
+
}
|
2159 |
+
};
|
2160 |
+
}
|
2161 |
+
function pn(n) {
|
2162 |
+
let e, t, l, i;
|
2163 |
+
return {
|
2164 |
+
c() {
|
2165 |
+
e = un("iframe"), it(e.src, t = /*new_value*/
|
2166 |
+
n[11].url) || U(e, "src", t), U(e, "title", l = /*label*/
|
2167 |
+
n[8] ?? "Folium Map"), U(e, "height", i = /*height*/
|
2168 |
+
n[9] + "px"), U(e, "class", "svelte-12n2kv6");
|
2169 |
+
},
|
2170 |
+
m(f, s) {
|
2171 |
+
de(f, e, s);
|
2172 |
+
},
|
2173 |
+
p(f, s) {
|
2174 |
+
s & /*new_value*/
|
2175 |
+
2048 && !it(e.src, t = /*new_value*/
|
2176 |
+
f[11].url) && U(e, "src", t), s & /*label*/
|
2177 |
+
256 && l !== (l = /*label*/
|
2178 |
+
f[8] ?? "Folium Map") && U(e, "title", l), s & /*height*/
|
2179 |
+
512 && i !== (i = /*height*/
|
2180 |
+
f[9] + "px") && U(e, "height", i);
|
2181 |
+
},
|
2182 |
+
i: lt,
|
2183 |
+
o: lt,
|
2184 |
+
d(f) {
|
2185 |
+
f && ue(e);
|
2186 |
+
}
|
2187 |
+
};
|
2188 |
+
}
|
2189 |
+
function kn(n) {
|
2190 |
+
let e, t;
|
2191 |
+
return e = new rt({}), {
|
2192 |
+
c() {
|
2193 |
+
ie(e.$$.fragment);
|
2194 |
+
},
|
2195 |
+
m(l, i) {
|
2196 |
+
se(e, l, i), t = !0;
|
2197 |
+
},
|
2198 |
+
i(l) {
|
2199 |
+
t || (B(e.$$.fragment, l), t = !0);
|
2200 |
+
},
|
2201 |
+
o(l) {
|
2202 |
+
Z(e.$$.fragment, l), t = !1;
|
2203 |
+
},
|
2204 |
+
d(l) {
|
2205 |
+
fe(e, l);
|
2206 |
+
}
|
2207 |
+
};
|
2208 |
+
}
|
2209 |
+
function yn(n) {
|
2210 |
+
let e, t, l, i, f, s, o, r = (
|
2211 |
+
/*loading_status*/
|
2212 |
+
n[7] && ft(n)
|
2213 |
+
);
|
2214 |
+
t = new Qt({
|
2215 |
+
props: {
|
2216 |
+
show_label: !0,
|
2217 |
+
Icon: rt,
|
2218 |
+
label: (
|
2219 |
+
/*label*/
|
2220 |
+
n[8] || "Folium Map"
|
2221 |
+
)
|
2222 |
+
}
|
2223 |
+
});
|
2224 |
+
const a = [pn, wn], _ = [];
|
2225 |
+
function u(c, m) {
|
2226 |
+
return (
|
2227 |
+
/*value*/
|
2228 |
+
c[3] ? 0 : 1
|
2229 |
+
);
|
2230 |
+
}
|
2231 |
+
return i = u(n), f = _[i] = a[i](n), {
|
2232 |
+
c() {
|
2233 |
+
r && r.c(), e = nt(), ie(t.$$.fragment), l = nt(), f.c(), s = dn();
|
2234 |
+
},
|
2235 |
+
m(c, m) {
|
2236 |
+
r && r.m(c, m), de(c, e, m), se(t, c, m), de(c, l, m), _[i].m(c, m), de(c, s, m), o = !0;
|
2237 |
+
},
|
2238 |
+
p(c, m) {
|
2239 |
+
/*loading_status*/
|
2240 |
+
c[7] ? r ? (r.p(c, m), m & /*loading_status*/
|
2241 |
+
128 && B(r, 1)) : (r = ft(c), r.c(), B(r, 1), r.m(e.parentNode, e)) : r && (tt(), Z(r, 1, 1, () => {
|
2242 |
+
r = null;
|
2243 |
+
}), et());
|
2244 |
+
const h = {};
|
2245 |
+
m & /*label*/
|
2246 |
+
256 && (h.label = /*label*/
|
2247 |
+
c[8] || "Folium Map"), t.$set(h);
|
2248 |
+
let L = i;
|
2249 |
+
i = u(c), i === L ? _[i].p(c, m) : (tt(), Z(_[L], 1, 1, () => {
|
2250 |
+
_[L] = null;
|
2251 |
+
}), et(), f = _[i], f ? f.p(c, m) : (f = _[i] = a[i](c), f.c()), B(f, 1), f.m(s.parentNode, s));
|
2252 |
+
},
|
2253 |
+
i(c) {
|
2254 |
+
o || (B(r), B(t.$$.fragment, c), B(f), o = !0);
|
2255 |
+
},
|
2256 |
+
o(c) {
|
2257 |
+
Z(r), Z(t.$$.fragment, c), Z(f), o = !1;
|
2258 |
+
},
|
2259 |
+
d(c) {
|
2260 |
+
c && (ue(e), ue(l), ue(s)), r && r.d(c), fe(t, c), _[i].d(c);
|
2261 |
+
}
|
2262 |
+
};
|
2263 |
+
}
|
2264 |
+
function vn(n) {
|
2265 |
+
let e, t;
|
2266 |
+
return e = new It({
|
2267 |
+
props: {
|
2268 |
+
visible: (
|
2269 |
+
/*visible*/
|
2270 |
+
n[2]
|
2271 |
+
),
|
2272 |
+
elem_id: (
|
2273 |
+
/*elem_id*/
|
2274 |
+
n[0]
|
2275 |
+
),
|
2276 |
+
elem_classes: (
|
2277 |
+
/*elem_classes*/
|
2278 |
+
n[1]
|
2279 |
+
),
|
2280 |
+
container: (
|
2281 |
+
/*container*/
|
2282 |
+
n[4]
|
2283 |
+
),
|
2284 |
+
scale: (
|
2285 |
+
/*scale*/
|
2286 |
+
n[5]
|
2287 |
+
),
|
2288 |
+
min_width: (
|
2289 |
+
/*min_width*/
|
2290 |
+
n[6]
|
2291 |
+
),
|
2292 |
+
$$slots: { default: [yn] },
|
2293 |
+
$$scope: { ctx: n }
|
2294 |
+
}
|
2295 |
+
}), {
|
2296 |
+
c() {
|
2297 |
+
ie(e.$$.fragment);
|
2298 |
+
},
|
2299 |
+
m(l, i) {
|
2300 |
+
se(e, l, i), t = !0;
|
2301 |
+
},
|
2302 |
+
p(l, [i]) {
|
2303 |
+
const f = {};
|
2304 |
+
i & /*visible*/
|
2305 |
+
4 && (f.visible = /*visible*/
|
2306 |
+
l[2]), i & /*elem_id*/
|
2307 |
+
1 && (f.elem_id = /*elem_id*/
|
2308 |
+
l[0]), i & /*elem_classes*/
|
2309 |
+
2 && (f.elem_classes = /*elem_classes*/
|
2310 |
+
l[1]), i & /*container*/
|
2311 |
+
16 && (f.container = /*container*/
|
2312 |
+
l[4]), i & /*scale*/
|
2313 |
+
32 && (f.scale = /*scale*/
|
2314 |
+
l[5]), i & /*min_width*/
|
2315 |
+
64 && (f.min_width = /*min_width*/
|
2316 |
+
l[6]), i & /*$$scope, new_value, label, height, value, gradio, loading_status*/
|
2317 |
+
69512 && (f.$$scope = { dirty: i, ctx: l }), e.$set(f);
|
2318 |
+
},
|
2319 |
+
i(l) {
|
2320 |
+
t || (B(e.$$.fragment, l), t = !0);
|
2321 |
+
},
|
2322 |
+
o(l) {
|
2323 |
+
Z(e.$$.fragment, l), t = !1;
|
2324 |
+
},
|
2325 |
+
d(l) {
|
2326 |
+
fe(e, l);
|
2327 |
+
}
|
2328 |
+
};
|
2329 |
+
}
|
2330 |
+
function Cn(n, e, t) {
|
2331 |
+
let { elem_id: l = "" } = e, { elem_classes: i = [] } = e, { visible: f = !0 } = e, { value: s } = e, { container: o = !0 } = e, { scale: r = null } = e, { min_width: a = void 0 } = e, { loading_status: _ } = e, { label: u } = e, { root: c } = e, { proxy_url: m } = e, { height: h = 500 } = e, { gradio: L } = e, C, M = C;
|
2332 |
+
return n.$$set = (b) => {
|
2333 |
+
"elem_id" in b && t(0, l = b.elem_id), "elem_classes" in b && t(1, i = b.elem_classes), "visible" in b && t(2, f = b.visible), "value" in b && t(3, s = b.value), "container" in b && t(4, o = b.container), "scale" in b && t(5, r = b.scale), "min_width" in b && t(6, a = b.min_width), "loading_status" in b && t(7, _ = b.loading_status), "label" in b && t(8, u = b.label), "root" in b && t(12, c = b.root), "proxy_url" in b && t(13, m = b.proxy_url), "height" in b && t(9, h = b.height), "gradio" in b && t(10, L = b.gradio);
|
2334 |
+
}, n.$$.update = () => {
|
2335 |
+
n.$$.dirty & /*value, root, proxy_url*/
|
2336 |
+
12296 && t(11, C = bt(s, c, m)), n.$$.dirty & /*new_value, old_value, gradio*/
|
2337 |
+
19456 && JSON.stringify(C) !== JSON.stringify(M) && (L.dispatch("change"), t(14, M = C));
|
2338 |
+
}, [
|
2339 |
+
l,
|
2340 |
+
i,
|
2341 |
+
f,
|
2342 |
+
s,
|
2343 |
+
o,
|
2344 |
+
r,
|
2345 |
+
a,
|
2346 |
+
_,
|
2347 |
+
u,
|
2348 |
+
h,
|
2349 |
+
L,
|
2350 |
+
C,
|
2351 |
+
c,
|
2352 |
+
m,
|
2353 |
+
M
|
2354 |
+
];
|
2355 |
+
}
|
2356 |
+
class qn extends _n {
|
2357 |
+
constructor(e) {
|
2358 |
+
super(), gn(this, e, Cn, vn, hn, {
|
2359 |
+
elem_id: 0,
|
2360 |
+
elem_classes: 1,
|
2361 |
+
visible: 2,
|
2362 |
+
value: 3,
|
2363 |
+
container: 4,
|
2364 |
+
scale: 5,
|
2365 |
+
min_width: 6,
|
2366 |
+
loading_status: 7,
|
2367 |
+
label: 8,
|
2368 |
+
root: 12,
|
2369 |
+
proxy_url: 13,
|
2370 |
+
height: 9,
|
2371 |
+
gradio: 10
|
2372 |
+
});
|
2373 |
+
}
|
2374 |
+
}
|
2375 |
+
export {
|
2376 |
+
qn as default
|
2377 |
+
};
|
src/backend/gradio_foliumtest/templates/component/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.block.svelte-1t38q2d{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.border_focus.svelte-1t38q2d{border-color:var(--color-accent)}.padded.svelte-1t38q2d{padding:var(--block-padding)}.hidden.svelte-1t38q2d{display:none}.hide-container.svelte-1t38q2d{margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}div.svelte-1hnfib2{margin-bottom:var(--spacing-lg);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}span.has-info.svelte-22c38v{margin-bottom:var(--spacing-xs)}span.svelte-22c38v:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-22c38v{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-22c38v{margin:0;height:0}label.svelte-9gxdi0{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--border-color-primary);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-9gxdi0{border-top-left-radius:0}label.float.svelte-9gxdi0{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-9gxdi0:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-9gxdi0{height:0}span.svelte-9gxdi0{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-9gxdi0{box-shadow:none;border-width:0;background:transparent;overflow:visible}button.svelte-xtz2g8{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-sm);color:var(--block-label-text-color);border:1px solid transparent}.padded.svelte-xtz2g8{padding:2px;background:var(--background-fill-primary);box-shadow:var(--shadow-drop);border:1px solid var(--button-secondary-border-color)}button.svelte-xtz2g8:hover{cursor:pointer;color:var(--color-accent)}.padded.svelte-xtz2g8:hover{border:2px solid var(--button-secondary-border-color-hover);padding:1px;color:var(--block-label-text-color)}span.svelte-xtz2g8{padding:0 1px;font-size:10px}div.svelte-xtz2g8{padding:2px;display:flex;align-items:flex-end}.small.svelte-xtz2g8{width:14px;height:14px}.large.svelte-xtz2g8{width:22px;height:22px}.pending.svelte-xtz2g8{animation:svelte-xtz2g8-flash .5s infinite}@keyframes svelte-xtz2g8-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.dropdown-arrow.svelte-145leq6{fill:currentColor}.wrap.svelte-kzcjhc{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3)}.or.svelte-kzcjhc{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-kzcjhc{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-kzcjhc{font-size:var(--text-lg)}}.hovered.svelte-kzcjhc{color:var(--color-accent)}div.svelte-1nba87b{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;box-shadow:var(--shadow-drop);padding:var(--spacing-xl) 0;color:var(--block-label-text-color);flex-shrink:0;width:95%}.show_border.svelte-1nba87b{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl)}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-14miwb5.svelte-14miwb5{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-5);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden;pointer-events:none}.wrap.center.svelte-14miwb5.svelte-14miwb5{top:0;right:0;left:0}.wrap.default.svelte-14miwb5.svelte-14miwb5{top:0;right:0;bottom:0;left:0}.hide.svelte-14miwb5.svelte-14miwb5{opacity:0;pointer-events:none}.generating.svelte-14miwb5.svelte-14miwb5{animation:svelte-14miwb5-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border:2px solid var(--color-accent);background:transparent}.translucent.svelte-14miwb5.svelte-14miwb5{background:none}@keyframes svelte-14miwb5-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-14miwb5.svelte-14miwb5{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-14miwb5.svelte-14miwb5{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-14miwb5.svelte-14miwb5{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-14miwb5.svelte-14miwb5{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-14miwb5.svelte-14miwb5{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-14miwb5.svelte-14miwb5{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-14miwb5.svelte-14miwb5{position:absolute;top:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-14miwb5.svelte-14miwb5{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-14miwb5.svelte-14miwb5{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-14miwb5 .progress-text.svelte-14miwb5{background:var(--block-background-fill)}.border.svelte-14miwb5.svelte-14miwb5{border:1px solid var(--border-color-primary)}.toast-body.svelte-solcu7{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-solcu7{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-solcu7{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-700);background:var(--color-grey-50)}.dark .toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-title.svelte-solcu7{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm);text-transform:capitalize}.toast-title.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-title.error.svelte-solcu7{color:var(--color-red-50)}.toast-title.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-title.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-title.info.svelte-solcu7{color:var(--color-grey-50)}.toast-close.svelte-solcu7{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-close.error.svelte-solcu7{color:var(--color-red-500)}.toast-close.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-close.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-close.info.svelte-solcu7{color:var(--color-grey-500)}.toast-text.svelte-solcu7{font-size:var(--text-lg)}.toast-text.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-text.error.svelte-solcu7{color:var(--color-red-50)}.toast-text.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-text.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-text.info.svelte-solcu7{color:var(--color-grey-50)}.toast-details.svelte-solcu7{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-solcu7{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-icon.error.svelte-solcu7{color:var(--color-red-500)}.toast-icon.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-icon.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-solcu7{color:var(--color-grey-500)}@keyframes svelte-solcu7-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-solcu7{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-solcu7-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-solcu7{background:var(--color-red-700)}.dark .timer.error.svelte-solcu7{background:var(--color-red-500)}.timer.warning.svelte-solcu7{background:var(--color-yellow-700)}.dark .timer.warning.svelte-solcu7{background:var(--color-yellow-500)}.timer.info.svelte-solcu7{background:var(--color-grey-700)}.dark .timer.info.svelte-solcu7{background:var(--color-grey-500)}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}iframe.svelte-12n2kv6{display:flex;width:var(--size-full)}
|
src/backend/gradio_foliumtest/templates/example/index.js
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const {
|
2 |
+
SvelteComponent: f,
|
3 |
+
append: u,
|
4 |
+
attr: d,
|
5 |
+
detach: g,
|
6 |
+
element: o,
|
7 |
+
init: v,
|
8 |
+
insert: r,
|
9 |
+
noop: c,
|
10 |
+
safe_not_equal: y,
|
11 |
+
set_data: m,
|
12 |
+
text: b,
|
13 |
+
toggle_class: i
|
14 |
+
} = window.__gradio__svelte__internal;
|
15 |
+
function w(a) {
|
16 |
+
let e, n;
|
17 |
+
return {
|
18 |
+
c() {
|
19 |
+
e = o("div"), n = b(
|
20 |
+
/*value*/
|
21 |
+
a[0]
|
22 |
+
), d(e, "class", "svelte-1gecy8w"), i(
|
23 |
+
e,
|
24 |
+
"table",
|
25 |
+
/*type*/
|
26 |
+
a[1] === "table"
|
27 |
+
), i(
|
28 |
+
e,
|
29 |
+
"gallery",
|
30 |
+
/*type*/
|
31 |
+
a[1] === "gallery"
|
32 |
+
), i(
|
33 |
+
e,
|
34 |
+
"selected",
|
35 |
+
/*selected*/
|
36 |
+
a[2]
|
37 |
+
);
|
38 |
+
},
|
39 |
+
m(t, l) {
|
40 |
+
r(t, e, l), u(e, n);
|
41 |
+
},
|
42 |
+
p(t, [l]) {
|
43 |
+
l & /*value*/
|
44 |
+
1 && m(
|
45 |
+
n,
|
46 |
+
/*value*/
|
47 |
+
t[0]
|
48 |
+
), l & /*type*/
|
49 |
+
2 && i(
|
50 |
+
e,
|
51 |
+
"table",
|
52 |
+
/*type*/
|
53 |
+
t[1] === "table"
|
54 |
+
), l & /*type*/
|
55 |
+
2 && i(
|
56 |
+
e,
|
57 |
+
"gallery",
|
58 |
+
/*type*/
|
59 |
+
t[1] === "gallery"
|
60 |
+
), l & /*selected*/
|
61 |
+
4 && i(
|
62 |
+
e,
|
63 |
+
"selected",
|
64 |
+
/*selected*/
|
65 |
+
t[2]
|
66 |
+
);
|
67 |
+
},
|
68 |
+
i: c,
|
69 |
+
o: c,
|
70 |
+
d(t) {
|
71 |
+
t && g(e);
|
72 |
+
}
|
73 |
+
};
|
74 |
+
}
|
75 |
+
function h(a, e, n) {
|
76 |
+
let { value: t } = e, { type: l } = e, { selected: _ = !1 } = e;
|
77 |
+
return a.$$set = (s) => {
|
78 |
+
"value" in s && n(0, t = s.value), "type" in s && n(1, l = s.type), "selected" in s && n(2, _ = s.selected);
|
79 |
+
}, [t, l, _];
|
80 |
+
}
|
81 |
+
class E extends f {
|
82 |
+
constructor(e) {
|
83 |
+
super(), v(this, e, h, w, y, { value: 0, type: 1, selected: 2 });
|
84 |
+
}
|
85 |
+
}
|
86 |
+
export {
|
87 |
+
E as default
|
88 |
+
};
|
src/backend/gradio_foliumtest/templates/example/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.gallery.svelte-1gecy8w{padding:var(--size-1) var(--size-2)}
|
src/demo/__init__.py
ADDED
File without changes
|
src/demo/app.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from gradio_foliumtest import FoliumTest
|
4 |
+
from typing import Literal
|
5 |
+
from folium import Map
|
6 |
+
import random
|
7 |
+
|
8 |
+
|
9 |
+
LAT_LONG_MAP = {
|
10 |
+
"New York City": (40.7128, -74.0060),
|
11 |
+
"London": (51.5074, -0.1278),
|
12 |
+
"San Francisco": (37.7749, -122.4194),
|
13 |
+
"Tokyo": (35.6762, 139.6503),
|
14 |
+
"Miami": (25.7617, -80.1918),
|
15 |
+
}
|
16 |
+
|
17 |
+
def get_city(city: Literal["New York City", "London", "San Francisco", "Tokyo", "Miami"]):
|
18 |
+
city = city or "Miami"
|
19 |
+
return Map(location=LAT_LONG_MAP[city], zoom_start=12)
|
20 |
+
|
21 |
+
with gr.Blocks() as demo:
|
22 |
+
with gr.Row():
|
23 |
+
with gr.Column():
|
24 |
+
city = gr.Radio(choices=["New York City", "London", "San Francisco", "Tokyo", "Miami"],
|
25 |
+
label="City")
|
26 |
+
with gr.Column():
|
27 |
+
map_ = FoliumTest(label="Folium Map")
|
28 |
+
city.select(get_city, city, map_)
|
29 |
+
|
30 |
+
demo.launch()
|
src/frontend/Example.svelte
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
export let value: string;
|
3 |
+
export let type: "gallery" | "table";
|
4 |
+
export let selected = false;
|
5 |
+
</script>
|
6 |
+
|
7 |
+
<div
|
8 |
+
class:table={type === "table"}
|
9 |
+
class:gallery={type === "gallery"}
|
10 |
+
class:selected
|
11 |
+
>
|
12 |
+
{value}
|
13 |
+
</div>
|
14 |
+
|
15 |
+
<style>
|
16 |
+
.gallery {
|
17 |
+
padding: var(--size-1) var(--size-2);
|
18 |
+
}
|
19 |
+
</style>
|
src/frontend/Index.svelte
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
|
3 |
+
import type { Gradio } from "@gradio/utils";
|
4 |
+
import { Block, Empty, BlockLabel } from "@gradio/atoms";
|
5 |
+
import { Plot, File } from "@gradio/icons";
|
6 |
+
import { StatusTracker } from "@gradio/statustracker";
|
7 |
+
import type { LoadingStatus } from "@gradio/statustracker";
|
8 |
+
import type { FileData } from "@gradio/client";
|
9 |
+
import { normalise_file } from "@gradio/client";
|
10 |
+
import { tick } from "svelte";
|
11 |
+
|
12 |
+
// General Block Props
|
13 |
+
export let elem_id = "";
|
14 |
+
export let elem_classes: string[] = [];
|
15 |
+
export let visible = true;
|
16 |
+
export let value: FileData | null;
|
17 |
+
export let container = true;
|
18 |
+
export let scale: number | null = null;
|
19 |
+
export let min_width: number | undefined = undefined;
|
20 |
+
export let loading_status: LoadingStatus;
|
21 |
+
export let label: string | null;
|
22 |
+
|
23 |
+
// Props for handling files
|
24 |
+
export let root: string;
|
25 |
+
export let proxy_url: string;
|
26 |
+
|
27 |
+
export let height: number = 500;
|
28 |
+
|
29 |
+
export let gradio: Gradio<{
|
30 |
+
change: never;
|
31 |
+
}>;
|
32 |
+
|
33 |
+
let new_value: FileData | null;
|
34 |
+
|
35 |
+
async function handle_change(value, new_value) {
|
36 |
+
await tick();
|
37 |
+
value = new_value;
|
38 |
+
gradio.dispatch("change");
|
39 |
+
}
|
40 |
+
|
41 |
+
$: new_value = normalise_file(value, root, proxy_url);
|
42 |
+
let old_value = new_value;
|
43 |
+
|
44 |
+
$: if (JSON.stringify(new_value) !== JSON.stringify(old_value)) {
|
45 |
+
gradio.dispatch("change");
|
46 |
+
old_value = new_value;
|
47 |
+
}
|
48 |
+
|
49 |
+
</script>
|
50 |
+
|
51 |
+
<Block {visible} {elem_id} {elem_classes} {container} {scale} {min_width}>
|
52 |
+
{#if loading_status}
|
53 |
+
<StatusTracker
|
54 |
+
autoscroll={gradio.autoscroll}
|
55 |
+
i18n={gradio.i18n}
|
56 |
+
{...loading_status}
|
57 |
+
/>
|
58 |
+
{/if}
|
59 |
+
<BlockLabel show_label={true} Icon={Plot} label={label || "Folium Map"} />
|
60 |
+
{#if value}
|
61 |
+
<iframe src={new_value.url} title={label ?? "Folium Map"} height="{height}px"></iframe>
|
62 |
+
{:else}
|
63 |
+
<Empty unpadded_box={true} size="large"><Plot /></Empty>
|
64 |
+
{/if}
|
65 |
+
|
66 |
+
</Block>
|
67 |
+
|
68 |
+
<style>
|
69 |
+
iframe {
|
70 |
+
display: flex;
|
71 |
+
width: var(--size-full);
|
72 |
+
}
|
73 |
+
</style>
|
74 |
+
|
src/frontend/package-lock.json
ADDED
@@ -0,0 +1,981 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gradio_foliumtest",
|
3 |
+
"version": "0.2.0",
|
4 |
+
"lockfileVersion": 3,
|
5 |
+
"requires": true,
|
6 |
+
"packages": {
|
7 |
+
"": {
|
8 |
+
"name": "gradio_foliumtest",
|
9 |
+
"version": "0.2.0",
|
10 |
+
"license": "ISC",
|
11 |
+
"dependencies": {
|
12 |
+
"@gradio/atoms": "0.2.0",
|
13 |
+
"@gradio/client": "*",
|
14 |
+
"@gradio/statustracker": "0.3.0",
|
15 |
+
"@gradio/utils": "0.2.0"
|
16 |
+
}
|
17 |
+
},
|
18 |
+
"node_modules/@ampproject/remapping": {
|
19 |
+
"version": "2.2.1",
|
20 |
+
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
|
21 |
+
"integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
|
22 |
+
"peer": true,
|
23 |
+
"dependencies": {
|
24 |
+
"@jridgewell/gen-mapping": "^0.3.0",
|
25 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
26 |
+
},
|
27 |
+
"engines": {
|
28 |
+
"node": ">=6.0.0"
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"node_modules/@esbuild/android-arm": {
|
32 |
+
"version": "0.19.5",
|
33 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz",
|
34 |
+
"integrity": "sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==",
|
35 |
+
"cpu": [
|
36 |
+
"arm"
|
37 |
+
],
|
38 |
+
"optional": true,
|
39 |
+
"os": [
|
40 |
+
"android"
|
41 |
+
],
|
42 |
+
"engines": {
|
43 |
+
"node": ">=12"
|
44 |
+
}
|
45 |
+
},
|
46 |
+
"node_modules/@esbuild/android-arm64": {
|
47 |
+
"version": "0.19.5",
|
48 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz",
|
49 |
+
"integrity": "sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==",
|
50 |
+
"cpu": [
|
51 |
+
"arm64"
|
52 |
+
],
|
53 |
+
"optional": true,
|
54 |
+
"os": [
|
55 |
+
"android"
|
56 |
+
],
|
57 |
+
"engines": {
|
58 |
+
"node": ">=12"
|
59 |
+
}
|
60 |
+
},
|
61 |
+
"node_modules/@esbuild/android-x64": {
|
62 |
+
"version": "0.19.5",
|
63 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.5.tgz",
|
64 |
+
"integrity": "sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==",
|
65 |
+
"cpu": [
|
66 |
+
"x64"
|
67 |
+
],
|
68 |
+
"optional": true,
|
69 |
+
"os": [
|
70 |
+
"android"
|
71 |
+
],
|
72 |
+
"engines": {
|
73 |
+
"node": ">=12"
|
74 |
+
}
|
75 |
+
},
|
76 |
+
"node_modules/@esbuild/darwin-arm64": {
|
77 |
+
"version": "0.19.5",
|
78 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.5.tgz",
|
79 |
+
"integrity": "sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==",
|
80 |
+
"cpu": [
|
81 |
+
"arm64"
|
82 |
+
],
|
83 |
+
"optional": true,
|
84 |
+
"os": [
|
85 |
+
"darwin"
|
86 |
+
],
|
87 |
+
"engines": {
|
88 |
+
"node": ">=12"
|
89 |
+
}
|
90 |
+
},
|
91 |
+
"node_modules/@esbuild/darwin-x64": {
|
92 |
+
"version": "0.19.5",
|
93 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz",
|
94 |
+
"integrity": "sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==",
|
95 |
+
"cpu": [
|
96 |
+
"x64"
|
97 |
+
],
|
98 |
+
"optional": true,
|
99 |
+
"os": [
|
100 |
+
"darwin"
|
101 |
+
],
|
102 |
+
"engines": {
|
103 |
+
"node": ">=12"
|
104 |
+
}
|
105 |
+
},
|
106 |
+
"node_modules/@esbuild/freebsd-arm64": {
|
107 |
+
"version": "0.19.5",
|
108 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz",
|
109 |
+
"integrity": "sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==",
|
110 |
+
"cpu": [
|
111 |
+
"arm64"
|
112 |
+
],
|
113 |
+
"optional": true,
|
114 |
+
"os": [
|
115 |
+
"freebsd"
|
116 |
+
],
|
117 |
+
"engines": {
|
118 |
+
"node": ">=12"
|
119 |
+
}
|
120 |
+
},
|
121 |
+
"node_modules/@esbuild/freebsd-x64": {
|
122 |
+
"version": "0.19.5",
|
123 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz",
|
124 |
+
"integrity": "sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==",
|
125 |
+
"cpu": [
|
126 |
+
"x64"
|
127 |
+
],
|
128 |
+
"optional": true,
|
129 |
+
"os": [
|
130 |
+
"freebsd"
|
131 |
+
],
|
132 |
+
"engines": {
|
133 |
+
"node": ">=12"
|
134 |
+
}
|
135 |
+
},
|
136 |
+
"node_modules/@esbuild/linux-arm": {
|
137 |
+
"version": "0.19.5",
|
138 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz",
|
139 |
+
"integrity": "sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==",
|
140 |
+
"cpu": [
|
141 |
+
"arm"
|
142 |
+
],
|
143 |
+
"optional": true,
|
144 |
+
"os": [
|
145 |
+
"linux"
|
146 |
+
],
|
147 |
+
"engines": {
|
148 |
+
"node": ">=12"
|
149 |
+
}
|
150 |
+
},
|
151 |
+
"node_modules/@esbuild/linux-arm64": {
|
152 |
+
"version": "0.19.5",
|
153 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz",
|
154 |
+
"integrity": "sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==",
|
155 |
+
"cpu": [
|
156 |
+
"arm64"
|
157 |
+
],
|
158 |
+
"optional": true,
|
159 |
+
"os": [
|
160 |
+
"linux"
|
161 |
+
],
|
162 |
+
"engines": {
|
163 |
+
"node": ">=12"
|
164 |
+
}
|
165 |
+
},
|
166 |
+
"node_modules/@esbuild/linux-ia32": {
|
167 |
+
"version": "0.19.5",
|
168 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz",
|
169 |
+
"integrity": "sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==",
|
170 |
+
"cpu": [
|
171 |
+
"ia32"
|
172 |
+
],
|
173 |
+
"optional": true,
|
174 |
+
"os": [
|
175 |
+
"linux"
|
176 |
+
],
|
177 |
+
"engines": {
|
178 |
+
"node": ">=12"
|
179 |
+
}
|
180 |
+
},
|
181 |
+
"node_modules/@esbuild/linux-loong64": {
|
182 |
+
"version": "0.19.5",
|
183 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz",
|
184 |
+
"integrity": "sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==",
|
185 |
+
"cpu": [
|
186 |
+
"loong64"
|
187 |
+
],
|
188 |
+
"optional": true,
|
189 |
+
"os": [
|
190 |
+
"linux"
|
191 |
+
],
|
192 |
+
"engines": {
|
193 |
+
"node": ">=12"
|
194 |
+
}
|
195 |
+
},
|
196 |
+
"node_modules/@esbuild/linux-mips64el": {
|
197 |
+
"version": "0.19.5",
|
198 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz",
|
199 |
+
"integrity": "sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==",
|
200 |
+
"cpu": [
|
201 |
+
"mips64el"
|
202 |
+
],
|
203 |
+
"optional": true,
|
204 |
+
"os": [
|
205 |
+
"linux"
|
206 |
+
],
|
207 |
+
"engines": {
|
208 |
+
"node": ">=12"
|
209 |
+
}
|
210 |
+
},
|
211 |
+
"node_modules/@esbuild/linux-ppc64": {
|
212 |
+
"version": "0.19.5",
|
213 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz",
|
214 |
+
"integrity": "sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==",
|
215 |
+
"cpu": [
|
216 |
+
"ppc64"
|
217 |
+
],
|
218 |
+
"optional": true,
|
219 |
+
"os": [
|
220 |
+
"linux"
|
221 |
+
],
|
222 |
+
"engines": {
|
223 |
+
"node": ">=12"
|
224 |
+
}
|
225 |
+
},
|
226 |
+
"node_modules/@esbuild/linux-riscv64": {
|
227 |
+
"version": "0.19.5",
|
228 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz",
|
229 |
+
"integrity": "sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==",
|
230 |
+
"cpu": [
|
231 |
+
"riscv64"
|
232 |
+
],
|
233 |
+
"optional": true,
|
234 |
+
"os": [
|
235 |
+
"linux"
|
236 |
+
],
|
237 |
+
"engines": {
|
238 |
+
"node": ">=12"
|
239 |
+
}
|
240 |
+
},
|
241 |
+
"node_modules/@esbuild/linux-s390x": {
|
242 |
+
"version": "0.19.5",
|
243 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz",
|
244 |
+
"integrity": "sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==",
|
245 |
+
"cpu": [
|
246 |
+
"s390x"
|
247 |
+
],
|
248 |
+
"optional": true,
|
249 |
+
"os": [
|
250 |
+
"linux"
|
251 |
+
],
|
252 |
+
"engines": {
|
253 |
+
"node": ">=12"
|
254 |
+
}
|
255 |
+
},
|
256 |
+
"node_modules/@esbuild/linux-x64": {
|
257 |
+
"version": "0.19.5",
|
258 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz",
|
259 |
+
"integrity": "sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==",
|
260 |
+
"cpu": [
|
261 |
+
"x64"
|
262 |
+
],
|
263 |
+
"optional": true,
|
264 |
+
"os": [
|
265 |
+
"linux"
|
266 |
+
],
|
267 |
+
"engines": {
|
268 |
+
"node": ">=12"
|
269 |
+
}
|
270 |
+
},
|
271 |
+
"node_modules/@esbuild/netbsd-x64": {
|
272 |
+
"version": "0.19.5",
|
273 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz",
|
274 |
+
"integrity": "sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==",
|
275 |
+
"cpu": [
|
276 |
+
"x64"
|
277 |
+
],
|
278 |
+
"optional": true,
|
279 |
+
"os": [
|
280 |
+
"netbsd"
|
281 |
+
],
|
282 |
+
"engines": {
|
283 |
+
"node": ">=12"
|
284 |
+
}
|
285 |
+
},
|
286 |
+
"node_modules/@esbuild/openbsd-x64": {
|
287 |
+
"version": "0.19.5",
|
288 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz",
|
289 |
+
"integrity": "sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==",
|
290 |
+
"cpu": [
|
291 |
+
"x64"
|
292 |
+
],
|
293 |
+
"optional": true,
|
294 |
+
"os": [
|
295 |
+
"openbsd"
|
296 |
+
],
|
297 |
+
"engines": {
|
298 |
+
"node": ">=12"
|
299 |
+
}
|
300 |
+
},
|
301 |
+
"node_modules/@esbuild/sunos-x64": {
|
302 |
+
"version": "0.19.5",
|
303 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz",
|
304 |
+
"integrity": "sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==",
|
305 |
+
"cpu": [
|
306 |
+
"x64"
|
307 |
+
],
|
308 |
+
"optional": true,
|
309 |
+
"os": [
|
310 |
+
"sunos"
|
311 |
+
],
|
312 |
+
"engines": {
|
313 |
+
"node": ">=12"
|
314 |
+
}
|
315 |
+
},
|
316 |
+
"node_modules/@esbuild/win32-arm64": {
|
317 |
+
"version": "0.19.5",
|
318 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz",
|
319 |
+
"integrity": "sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==",
|
320 |
+
"cpu": [
|
321 |
+
"arm64"
|
322 |
+
],
|
323 |
+
"optional": true,
|
324 |
+
"os": [
|
325 |
+
"win32"
|
326 |
+
],
|
327 |
+
"engines": {
|
328 |
+
"node": ">=12"
|
329 |
+
}
|
330 |
+
},
|
331 |
+
"node_modules/@esbuild/win32-ia32": {
|
332 |
+
"version": "0.19.5",
|
333 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz",
|
334 |
+
"integrity": "sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==",
|
335 |
+
"cpu": [
|
336 |
+
"ia32"
|
337 |
+
],
|
338 |
+
"optional": true,
|
339 |
+
"os": [
|
340 |
+
"win32"
|
341 |
+
],
|
342 |
+
"engines": {
|
343 |
+
"node": ">=12"
|
344 |
+
}
|
345 |
+
},
|
346 |
+
"node_modules/@esbuild/win32-x64": {
|
347 |
+
"version": "0.19.5",
|
348 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz",
|
349 |
+
"integrity": "sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==",
|
350 |
+
"cpu": [
|
351 |
+
"x64"
|
352 |
+
],
|
353 |
+
"optional": true,
|
354 |
+
"os": [
|
355 |
+
"win32"
|
356 |
+
],
|
357 |
+
"engines": {
|
358 |
+
"node": ">=12"
|
359 |
+
}
|
360 |
+
},
|
361 |
+
"node_modules/@formatjs/ecma402-abstract": {
|
362 |
+
"version": "1.11.4",
|
363 |
+
"resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
|
364 |
+
"integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
|
365 |
+
"dependencies": {
|
366 |
+
"@formatjs/intl-localematcher": "0.2.25",
|
367 |
+
"tslib": "^2.1.0"
|
368 |
+
}
|
369 |
+
},
|
370 |
+
"node_modules/@formatjs/fast-memoize": {
|
371 |
+
"version": "1.2.1",
|
372 |
+
"resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
|
373 |
+
"integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
|
374 |
+
"dependencies": {
|
375 |
+
"tslib": "^2.1.0"
|
376 |
+
}
|
377 |
+
},
|
378 |
+
"node_modules/@formatjs/icu-messageformat-parser": {
|
379 |
+
"version": "2.1.0",
|
380 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
|
381 |
+
"integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
|
382 |
+
"dependencies": {
|
383 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
384 |
+
"@formatjs/icu-skeleton-parser": "1.3.6",
|
385 |
+
"tslib": "^2.1.0"
|
386 |
+
}
|
387 |
+
},
|
388 |
+
"node_modules/@formatjs/icu-skeleton-parser": {
|
389 |
+
"version": "1.3.6",
|
390 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
|
391 |
+
"integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
|
392 |
+
"dependencies": {
|
393 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
394 |
+
"tslib": "^2.1.0"
|
395 |
+
}
|
396 |
+
},
|
397 |
+
"node_modules/@formatjs/intl-localematcher": {
|
398 |
+
"version": "0.2.25",
|
399 |
+
"resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
|
400 |
+
"integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
|
401 |
+
"dependencies": {
|
402 |
+
"tslib": "^2.1.0"
|
403 |
+
}
|
404 |
+
},
|
405 |
+
"node_modules/@gradio/atoms": {
|
406 |
+
"version": "0.2.0",
|
407 |
+
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.2.0.tgz",
|
408 |
+
"integrity": "sha512-7pTXJTZv+KECtTG9vqeq9j7vz5OKkp+TRvh+O4yMbtkvxFEbhYaaUngkWFX26btGiveD+V4RG4qrP17jqpSdGA==",
|
409 |
+
"dependencies": {
|
410 |
+
"@gradio/icons": "^0.2.0",
|
411 |
+
"@gradio/utils": "^0.2.0"
|
412 |
+
}
|
413 |
+
},
|
414 |
+
"node_modules/@gradio/client": {
|
415 |
+
"version": "0.7.0",
|
416 |
+
"resolved": "https://registry.npmjs.org/@gradio/client/-/client-0.7.0.tgz",
|
417 |
+
"integrity": "sha512-zreSo91H/G8lNe4K8J4FGSq+0mIPTTozHC76vsHrNJjRMqts0ZPBv5+3SJuxYh1n5NvTqsdLEFSkaQnHiPeB2w==",
|
418 |
+
"dependencies": {
|
419 |
+
"bufferutil": "^4.0.7",
|
420 |
+
"semiver": "^1.1.0",
|
421 |
+
"ws": "^8.13.0"
|
422 |
+
},
|
423 |
+
"engines": {
|
424 |
+
"node": ">=18.0.0"
|
425 |
+
}
|
426 |
+
},
|
427 |
+
"node_modules/@gradio/column": {
|
428 |
+
"version": "0.1.0",
|
429 |
+
"resolved": "https://registry.npmjs.org/@gradio/column/-/column-0.1.0.tgz",
|
430 |
+
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
431 |
+
},
|
432 |
+
"node_modules/@gradio/icons": {
|
433 |
+
"version": "0.2.0",
|
434 |
+
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.2.0.tgz",
|
435 |
+
"integrity": "sha512-rfCSmOF+ALqBOjTWL1ICasyA8JuO0MPwFrtlVMyAWp7R14AN8YChC/gbz5fZ0kNBiGGEYOOfqpKxyvC95jGGlg=="
|
436 |
+
},
|
437 |
+
"node_modules/@gradio/statustracker": {
|
438 |
+
"version": "0.3.0",
|
439 |
+
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.3.0.tgz",
|
440 |
+
"integrity": "sha512-8F3ezqPoGpq7B0EFYGVJkiYOrXCJLMEBcjLTOk2NeM2tXUoOCTieSvJEOstLzM0KkHwY7FvVrc3Dn5iqfIq2lQ==",
|
441 |
+
"dependencies": {
|
442 |
+
"@gradio/atoms": "^0.2.0",
|
443 |
+
"@gradio/column": "^0.1.0",
|
444 |
+
"@gradio/icons": "^0.2.0",
|
445 |
+
"@gradio/utils": "^0.2.0"
|
446 |
+
}
|
447 |
+
},
|
448 |
+
"node_modules/@gradio/theme": {
|
449 |
+
"version": "0.2.0",
|
450 |
+
"resolved": "https://registry.npmjs.org/@gradio/theme/-/theme-0.2.0.tgz",
|
451 |
+
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
452 |
+
},
|
453 |
+
"node_modules/@gradio/utils": {
|
454 |
+
"version": "0.2.0",
|
455 |
+
"resolved": "https://registry.npmjs.org/@gradio/utils/-/utils-0.2.0.tgz",
|
456 |
+
"integrity": "sha512-YkwzXufi6IxQrlMW+1sFo8Yn6F9NLL69ZoBsbo7QEhms0v5L7pmOTw+dfd7M3dwbRP2lgjrb52i1kAIN3n6aqQ==",
|
457 |
+
"dependencies": {
|
458 |
+
"@gradio/theme": "^0.2.0",
|
459 |
+
"svelte-i18n": "^3.6.0"
|
460 |
+
}
|
461 |
+
},
|
462 |
+
"node_modules/@jridgewell/gen-mapping": {
|
463 |
+
"version": "0.3.3",
|
464 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
|
465 |
+
"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
|
466 |
+
"peer": true,
|
467 |
+
"dependencies": {
|
468 |
+
"@jridgewell/set-array": "^1.0.1",
|
469 |
+
"@jridgewell/sourcemap-codec": "^1.4.10",
|
470 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
471 |
+
},
|
472 |
+
"engines": {
|
473 |
+
"node": ">=6.0.0"
|
474 |
+
}
|
475 |
+
},
|
476 |
+
"node_modules/@jridgewell/resolve-uri": {
|
477 |
+
"version": "3.1.1",
|
478 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
|
479 |
+
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
|
480 |
+
"peer": true,
|
481 |
+
"engines": {
|
482 |
+
"node": ">=6.0.0"
|
483 |
+
}
|
484 |
+
},
|
485 |
+
"node_modules/@jridgewell/set-array": {
|
486 |
+
"version": "1.1.2",
|
487 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
|
488 |
+
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
|
489 |
+
"peer": true,
|
490 |
+
"engines": {
|
491 |
+
"node": ">=6.0.0"
|
492 |
+
}
|
493 |
+
},
|
494 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
495 |
+
"version": "1.4.15",
|
496 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
497 |
+
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
498 |
+
"peer": true
|
499 |
+
},
|
500 |
+
"node_modules/@jridgewell/trace-mapping": {
|
501 |
+
"version": "0.3.20",
|
502 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz",
|
503 |
+
"integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==",
|
504 |
+
"peer": true,
|
505 |
+
"dependencies": {
|
506 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
507 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
508 |
+
}
|
509 |
+
},
|
510 |
+
"node_modules/@types/estree": {
|
511 |
+
"version": "1.0.4",
|
512 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.4.tgz",
|
513 |
+
"integrity": "sha512-2JwWnHK9H+wUZNorf2Zr6ves96WHoWDJIftkcxPKsS7Djta6Zu519LarhRNljPXkpsZR2ZMwNCPeW7omW07BJw==",
|
514 |
+
"peer": true
|
515 |
+
},
|
516 |
+
"node_modules/acorn": {
|
517 |
+
"version": "8.11.2",
|
518 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
519 |
+
"integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
|
520 |
+
"peer": true,
|
521 |
+
"bin": {
|
522 |
+
"acorn": "bin/acorn"
|
523 |
+
},
|
524 |
+
"engines": {
|
525 |
+
"node": ">=0.4.0"
|
526 |
+
}
|
527 |
+
},
|
528 |
+
"node_modules/aria-query": {
|
529 |
+
"version": "5.3.0",
|
530 |
+
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
|
531 |
+
"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
|
532 |
+
"peer": true,
|
533 |
+
"dependencies": {
|
534 |
+
"dequal": "^2.0.3"
|
535 |
+
}
|
536 |
+
},
|
537 |
+
"node_modules/axobject-query": {
|
538 |
+
"version": "3.2.1",
|
539 |
+
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz",
|
540 |
+
"integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==",
|
541 |
+
"peer": true,
|
542 |
+
"dependencies": {
|
543 |
+
"dequal": "^2.0.3"
|
544 |
+
}
|
545 |
+
},
|
546 |
+
"node_modules/bufferutil": {
|
547 |
+
"version": "4.0.8",
|
548 |
+
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz",
|
549 |
+
"integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==",
|
550 |
+
"hasInstallScript": true,
|
551 |
+
"dependencies": {
|
552 |
+
"node-gyp-build": "^4.3.0"
|
553 |
+
},
|
554 |
+
"engines": {
|
555 |
+
"node": ">=6.14.2"
|
556 |
+
}
|
557 |
+
},
|
558 |
+
"node_modules/cli-color": {
|
559 |
+
"version": "2.0.3",
|
560 |
+
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz",
|
561 |
+
"integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==",
|
562 |
+
"dependencies": {
|
563 |
+
"d": "^1.0.1",
|
564 |
+
"es5-ext": "^0.10.61",
|
565 |
+
"es6-iterator": "^2.0.3",
|
566 |
+
"memoizee": "^0.4.15",
|
567 |
+
"timers-ext": "^0.1.7"
|
568 |
+
},
|
569 |
+
"engines": {
|
570 |
+
"node": ">=0.10"
|
571 |
+
}
|
572 |
+
},
|
573 |
+
"node_modules/code-red": {
|
574 |
+
"version": "1.0.4",
|
575 |
+
"resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz",
|
576 |
+
"integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==",
|
577 |
+
"peer": true,
|
578 |
+
"dependencies": {
|
579 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
580 |
+
"@types/estree": "^1.0.1",
|
581 |
+
"acorn": "^8.10.0",
|
582 |
+
"estree-walker": "^3.0.3",
|
583 |
+
"periscopic": "^3.1.0"
|
584 |
+
}
|
585 |
+
},
|
586 |
+
"node_modules/css-tree": {
|
587 |
+
"version": "2.3.1",
|
588 |
+
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
|
589 |
+
"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
|
590 |
+
"peer": true,
|
591 |
+
"dependencies": {
|
592 |
+
"mdn-data": "2.0.30",
|
593 |
+
"source-map-js": "^1.0.1"
|
594 |
+
},
|
595 |
+
"engines": {
|
596 |
+
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
|
597 |
+
}
|
598 |
+
},
|
599 |
+
"node_modules/d": {
|
600 |
+
"version": "1.0.1",
|
601 |
+
"resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
|
602 |
+
"integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
|
603 |
+
"dependencies": {
|
604 |
+
"es5-ext": "^0.10.50",
|
605 |
+
"type": "^1.0.1"
|
606 |
+
}
|
607 |
+
},
|
608 |
+
"node_modules/deepmerge": {
|
609 |
+
"version": "4.3.1",
|
610 |
+
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
611 |
+
"integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
|
612 |
+
"engines": {
|
613 |
+
"node": ">=0.10.0"
|
614 |
+
}
|
615 |
+
},
|
616 |
+
"node_modules/dequal": {
|
617 |
+
"version": "2.0.3",
|
618 |
+
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
619 |
+
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
|
620 |
+
"peer": true,
|
621 |
+
"engines": {
|
622 |
+
"node": ">=6"
|
623 |
+
}
|
624 |
+
},
|
625 |
+
"node_modules/es5-ext": {
|
626 |
+
"version": "0.10.62",
|
627 |
+
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
|
628 |
+
"integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",
|
629 |
+
"hasInstallScript": true,
|
630 |
+
"dependencies": {
|
631 |
+
"es6-iterator": "^2.0.3",
|
632 |
+
"es6-symbol": "^3.1.3",
|
633 |
+
"next-tick": "^1.1.0"
|
634 |
+
},
|
635 |
+
"engines": {
|
636 |
+
"node": ">=0.10"
|
637 |
+
}
|
638 |
+
},
|
639 |
+
"node_modules/es6-iterator": {
|
640 |
+
"version": "2.0.3",
|
641 |
+
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
642 |
+
"integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
|
643 |
+
"dependencies": {
|
644 |
+
"d": "1",
|
645 |
+
"es5-ext": "^0.10.35",
|
646 |
+
"es6-symbol": "^3.1.1"
|
647 |
+
}
|
648 |
+
},
|
649 |
+
"node_modules/es6-symbol": {
|
650 |
+
"version": "3.1.3",
|
651 |
+
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
|
652 |
+
"integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
|
653 |
+
"dependencies": {
|
654 |
+
"d": "^1.0.1",
|
655 |
+
"ext": "^1.1.2"
|
656 |
+
}
|
657 |
+
},
|
658 |
+
"node_modules/es6-weak-map": {
|
659 |
+
"version": "2.0.3",
|
660 |
+
"resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
|
661 |
+
"integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
|
662 |
+
"dependencies": {
|
663 |
+
"d": "1",
|
664 |
+
"es5-ext": "^0.10.46",
|
665 |
+
"es6-iterator": "^2.0.3",
|
666 |
+
"es6-symbol": "^3.1.1"
|
667 |
+
}
|
668 |
+
},
|
669 |
+
"node_modules/esbuild": {
|
670 |
+
"version": "0.19.5",
|
671 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.5.tgz",
|
672 |
+
"integrity": "sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==",
|
673 |
+
"hasInstallScript": true,
|
674 |
+
"bin": {
|
675 |
+
"esbuild": "bin/esbuild"
|
676 |
+
},
|
677 |
+
"engines": {
|
678 |
+
"node": ">=12"
|
679 |
+
},
|
680 |
+
"optionalDependencies": {
|
681 |
+
"@esbuild/android-arm": "0.19.5",
|
682 |
+
"@esbuild/android-arm64": "0.19.5",
|
683 |
+
"@esbuild/android-x64": "0.19.5",
|
684 |
+
"@esbuild/darwin-arm64": "0.19.5",
|
685 |
+
"@esbuild/darwin-x64": "0.19.5",
|
686 |
+
"@esbuild/freebsd-arm64": "0.19.5",
|
687 |
+
"@esbuild/freebsd-x64": "0.19.5",
|
688 |
+
"@esbuild/linux-arm": "0.19.5",
|
689 |
+
"@esbuild/linux-arm64": "0.19.5",
|
690 |
+
"@esbuild/linux-ia32": "0.19.5",
|
691 |
+
"@esbuild/linux-loong64": "0.19.5",
|
692 |
+
"@esbuild/linux-mips64el": "0.19.5",
|
693 |
+
"@esbuild/linux-ppc64": "0.19.5",
|
694 |
+
"@esbuild/linux-riscv64": "0.19.5",
|
695 |
+
"@esbuild/linux-s390x": "0.19.5",
|
696 |
+
"@esbuild/linux-x64": "0.19.5",
|
697 |
+
"@esbuild/netbsd-x64": "0.19.5",
|
698 |
+
"@esbuild/openbsd-x64": "0.19.5",
|
699 |
+
"@esbuild/sunos-x64": "0.19.5",
|
700 |
+
"@esbuild/win32-arm64": "0.19.5",
|
701 |
+
"@esbuild/win32-ia32": "0.19.5",
|
702 |
+
"@esbuild/win32-x64": "0.19.5"
|
703 |
+
}
|
704 |
+
},
|
705 |
+
"node_modules/estree-walker": {
|
706 |
+
"version": "3.0.3",
|
707 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
|
708 |
+
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
|
709 |
+
"peer": true,
|
710 |
+
"dependencies": {
|
711 |
+
"@types/estree": "^1.0.0"
|
712 |
+
}
|
713 |
+
},
|
714 |
+
"node_modules/event-emitter": {
|
715 |
+
"version": "0.3.5",
|
716 |
+
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
|
717 |
+
"integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
|
718 |
+
"dependencies": {
|
719 |
+
"d": "1",
|
720 |
+
"es5-ext": "~0.10.14"
|
721 |
+
}
|
722 |
+
},
|
723 |
+
"node_modules/ext": {
|
724 |
+
"version": "1.7.0",
|
725 |
+
"resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
|
726 |
+
"integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
|
727 |
+
"dependencies": {
|
728 |
+
"type": "^2.7.2"
|
729 |
+
}
|
730 |
+
},
|
731 |
+
"node_modules/ext/node_modules/type": {
|
732 |
+
"version": "2.7.2",
|
733 |
+
"resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
|
734 |
+
"integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
|
735 |
+
},
|
736 |
+
"node_modules/globalyzer": {
|
737 |
+
"version": "0.1.0",
|
738 |
+
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
|
739 |
+
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q=="
|
740 |
+
},
|
741 |
+
"node_modules/globrex": {
|
742 |
+
"version": "0.1.2",
|
743 |
+
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
744 |
+
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="
|
745 |
+
},
|
746 |
+
"node_modules/intl-messageformat": {
|
747 |
+
"version": "9.13.0",
|
748 |
+
"resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
|
749 |
+
"integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
|
750 |
+
"dependencies": {
|
751 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
752 |
+
"@formatjs/fast-memoize": "1.2.1",
|
753 |
+
"@formatjs/icu-messageformat-parser": "2.1.0",
|
754 |
+
"tslib": "^2.1.0"
|
755 |
+
}
|
756 |
+
},
|
757 |
+
"node_modules/is-promise": {
|
758 |
+
"version": "2.2.2",
|
759 |
+
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
|
760 |
+
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="
|
761 |
+
},
|
762 |
+
"node_modules/is-reference": {
|
763 |
+
"version": "3.0.2",
|
764 |
+
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",
|
765 |
+
"integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",
|
766 |
+
"peer": true,
|
767 |
+
"dependencies": {
|
768 |
+
"@types/estree": "*"
|
769 |
+
}
|
770 |
+
},
|
771 |
+
"node_modules/locate-character": {
|
772 |
+
"version": "3.0.0",
|
773 |
+
"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
|
774 |
+
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
|
775 |
+
"peer": true
|
776 |
+
},
|
777 |
+
"node_modules/lru-queue": {
|
778 |
+
"version": "0.1.0",
|
779 |
+
"resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
|
780 |
+
"integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
|
781 |
+
"dependencies": {
|
782 |
+
"es5-ext": "~0.10.2"
|
783 |
+
}
|
784 |
+
},
|
785 |
+
"node_modules/magic-string": {
|
786 |
+
"version": "0.30.5",
|
787 |
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz",
|
788 |
+
"integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==",
|
789 |
+
"peer": true,
|
790 |
+
"dependencies": {
|
791 |
+
"@jridgewell/sourcemap-codec": "^1.4.15"
|
792 |
+
},
|
793 |
+
"engines": {
|
794 |
+
"node": ">=12"
|
795 |
+
}
|
796 |
+
},
|
797 |
+
"node_modules/mdn-data": {
|
798 |
+
"version": "2.0.30",
|
799 |
+
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
800 |
+
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
|
801 |
+
"peer": true
|
802 |
+
},
|
803 |
+
"node_modules/memoizee": {
|
804 |
+
"version": "0.4.15",
|
805 |
+
"resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
|
806 |
+
"integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
|
807 |
+
"dependencies": {
|
808 |
+
"d": "^1.0.1",
|
809 |
+
"es5-ext": "^0.10.53",
|
810 |
+
"es6-weak-map": "^2.0.3",
|
811 |
+
"event-emitter": "^0.3.5",
|
812 |
+
"is-promise": "^2.2.2",
|
813 |
+
"lru-queue": "^0.1.0",
|
814 |
+
"next-tick": "^1.1.0",
|
815 |
+
"timers-ext": "^0.1.7"
|
816 |
+
}
|
817 |
+
},
|
818 |
+
"node_modules/mri": {
|
819 |
+
"version": "1.2.0",
|
820 |
+
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
|
821 |
+
"integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",
|
822 |
+
"engines": {
|
823 |
+
"node": ">=4"
|
824 |
+
}
|
825 |
+
},
|
826 |
+
"node_modules/next-tick": {
|
827 |
+
"version": "1.1.0",
|
828 |
+
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
|
829 |
+
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
830 |
+
},
|
831 |
+
"node_modules/node-gyp-build": {
|
832 |
+
"version": "4.6.1",
|
833 |
+
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz",
|
834 |
+
"integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==",
|
835 |
+
"bin": {
|
836 |
+
"node-gyp-build": "bin.js",
|
837 |
+
"node-gyp-build-optional": "optional.js",
|
838 |
+
"node-gyp-build-test": "build-test.js"
|
839 |
+
}
|
840 |
+
},
|
841 |
+
"node_modules/periscopic": {
|
842 |
+
"version": "3.1.0",
|
843 |
+
"resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
|
844 |
+
"integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
|
845 |
+
"peer": true,
|
846 |
+
"dependencies": {
|
847 |
+
"@types/estree": "^1.0.0",
|
848 |
+
"estree-walker": "^3.0.0",
|
849 |
+
"is-reference": "^3.0.0"
|
850 |
+
}
|
851 |
+
},
|
852 |
+
"node_modules/sade": {
|
853 |
+
"version": "1.8.1",
|
854 |
+
"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
|
855 |
+
"integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
|
856 |
+
"dependencies": {
|
857 |
+
"mri": "^1.1.0"
|
858 |
+
},
|
859 |
+
"engines": {
|
860 |
+
"node": ">=6"
|
861 |
+
}
|
862 |
+
},
|
863 |
+
"node_modules/semiver": {
|
864 |
+
"version": "1.1.0",
|
865 |
+
"resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz",
|
866 |
+
"integrity": "sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==",
|
867 |
+
"engines": {
|
868 |
+
"node": ">=6"
|
869 |
+
}
|
870 |
+
},
|
871 |
+
"node_modules/source-map-js": {
|
872 |
+
"version": "1.0.2",
|
873 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
|
874 |
+
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
875 |
+
"peer": true,
|
876 |
+
"engines": {
|
877 |
+
"node": ">=0.10.0"
|
878 |
+
}
|
879 |
+
},
|
880 |
+
"node_modules/svelte": {
|
881 |
+
"version": "4.2.2",
|
882 |
+
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.2.tgz",
|
883 |
+
"integrity": "sha512-My2tytF2e2NnHSpn2M7/3VdXT4JdTglYVUuSuK/mXL2XtulPYbeBfl8Dm1QiaKRn0zoULRnL+EtfZHHP0k4H3A==",
|
884 |
+
"peer": true,
|
885 |
+
"dependencies": {
|
886 |
+
"@ampproject/remapping": "^2.2.1",
|
887 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
888 |
+
"@jridgewell/trace-mapping": "^0.3.18",
|
889 |
+
"acorn": "^8.9.0",
|
890 |
+
"aria-query": "^5.3.0",
|
891 |
+
"axobject-query": "^3.2.1",
|
892 |
+
"code-red": "^1.0.3",
|
893 |
+
"css-tree": "^2.3.1",
|
894 |
+
"estree-walker": "^3.0.3",
|
895 |
+
"is-reference": "^3.0.1",
|
896 |
+
"locate-character": "^3.0.0",
|
897 |
+
"magic-string": "^0.30.4",
|
898 |
+
"periscopic": "^3.1.0"
|
899 |
+
},
|
900 |
+
"engines": {
|
901 |
+
"node": ">=16"
|
902 |
+
}
|
903 |
+
},
|
904 |
+
"node_modules/svelte-i18n": {
|
905 |
+
"version": "3.7.4",
|
906 |
+
"resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.4.tgz",
|
907 |
+
"integrity": "sha512-yGRCNo+eBT4cPuU7IVsYTYjxB7I2V8qgUZPlHnNctJj5IgbJgV78flsRzpjZ/8iUYZrS49oCt7uxlU3AZv/N5Q==",
|
908 |
+
"dependencies": {
|
909 |
+
"cli-color": "^2.0.3",
|
910 |
+
"deepmerge": "^4.2.2",
|
911 |
+
"esbuild": "^0.19.2",
|
912 |
+
"estree-walker": "^2",
|
913 |
+
"intl-messageformat": "^9.13.0",
|
914 |
+
"sade": "^1.8.1",
|
915 |
+
"tiny-glob": "^0.2.9"
|
916 |
+
},
|
917 |
+
"bin": {
|
918 |
+
"svelte-i18n": "dist/cli.js"
|
919 |
+
},
|
920 |
+
"engines": {
|
921 |
+
"node": ">= 16"
|
922 |
+
},
|
923 |
+
"peerDependencies": {
|
924 |
+
"svelte": "^3 || ^4"
|
925 |
+
}
|
926 |
+
},
|
927 |
+
"node_modules/svelte-i18n/node_modules/estree-walker": {
|
928 |
+
"version": "2.0.2",
|
929 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
930 |
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
|
931 |
+
},
|
932 |
+
"node_modules/timers-ext": {
|
933 |
+
"version": "0.1.7",
|
934 |
+
"resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
|
935 |
+
"integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
|
936 |
+
"dependencies": {
|
937 |
+
"es5-ext": "~0.10.46",
|
938 |
+
"next-tick": "1"
|
939 |
+
}
|
940 |
+
},
|
941 |
+
"node_modules/tiny-glob": {
|
942 |
+
"version": "0.2.9",
|
943 |
+
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
|
944 |
+
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
|
945 |
+
"dependencies": {
|
946 |
+
"globalyzer": "0.1.0",
|
947 |
+
"globrex": "^0.1.2"
|
948 |
+
}
|
949 |
+
},
|
950 |
+
"node_modules/tslib": {
|
951 |
+
"version": "2.6.2",
|
952 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
953 |
+
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
954 |
+
},
|
955 |
+
"node_modules/type": {
|
956 |
+
"version": "1.2.0",
|
957 |
+
"resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
|
958 |
+
"integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg=="
|
959 |
+
},
|
960 |
+
"node_modules/ws": {
|
961 |
+
"version": "8.14.2",
|
962 |
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz",
|
963 |
+
"integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==",
|
964 |
+
"engines": {
|
965 |
+
"node": ">=10.0.0"
|
966 |
+
},
|
967 |
+
"peerDependencies": {
|
968 |
+
"bufferutil": "^4.0.1",
|
969 |
+
"utf-8-validate": ">=5.0.2"
|
970 |
+
},
|
971 |
+
"peerDependenciesMeta": {
|
972 |
+
"bufferutil": {
|
973 |
+
"optional": true
|
974 |
+
},
|
975 |
+
"utf-8-validate": {
|
976 |
+
"optional": true
|
977 |
+
}
|
978 |
+
}
|
979 |
+
}
|
980 |
+
}
|
981 |
+
}
|
src/frontend/package.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gradio_foliumtest",
|
3 |
+
"version": "0.2.0",
|
4 |
+
"description": "Gradio UI packages",
|
5 |
+
"type": "module",
|
6 |
+
"author": "",
|
7 |
+
"license": "ISC",
|
8 |
+
"private": false,
|
9 |
+
"main_changeset": true,
|
10 |
+
"exports": {
|
11 |
+
".": "./Index.svelte",
|
12 |
+
"./example": "./Example.svelte",
|
13 |
+
"./package.json": "./package.json"
|
14 |
+
},
|
15 |
+
"dependencies": {
|
16 |
+
"@gradio/atoms": "0.2.0",
|
17 |
+
"@gradio/statustracker": "0.3.0",
|
18 |
+
"@gradio/utils": "0.2.0",
|
19 |
+
"@gradio/client": "*"
|
20 |
+
}
|
21 |
+
}
|
src/pyproject.toml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[build-system]
|
2 |
+
requires = [
|
3 |
+
"hatchling",
|
4 |
+
"hatch-requirements-txt",
|
5 |
+
"hatch-fancy-pypi-readme>=22.5.0",
|
6 |
+
]
|
7 |
+
build-backend = "hatchling.build"
|
8 |
+
|
9 |
+
[project]
|
10 |
+
name = "gradio_foliumtest"
|
11 |
+
version = "0.0.1"
|
12 |
+
description = "Python library for easily interacting with trained machine learning models"
|
13 |
+
readme = "README.md"
|
14 |
+
license = "Apache-2.0"
|
15 |
+
requires-python = ">=3.8"
|
16 |
+
authors = [{ name = "YOUR NAME", email = "YOUREMAIL@domain.com" }]
|
17 |
+
keywords = [
|
18 |
+
"machine learning",
|
19 |
+
"reproducibility",
|
20 |
+
"visualization",
|
21 |
+
"gradio",
|
22 |
+
"gradio custom component",
|
23 |
+
"gradio-template-Fallback"
|
24 |
+
]
|
25 |
+
# Add dependencies here
|
26 |
+
dependencies = ["gradio>=4.0,<5.0", "folium"]
|
27 |
+
classifiers = [
|
28 |
+
'Development Status :: 3 - Alpha',
|
29 |
+
'License :: OSI Approved :: Apache Software License',
|
30 |
+
'Operating System :: OS Independent',
|
31 |
+
'Programming Language :: Python :: 3',
|
32 |
+
'Programming Language :: Python :: 3 :: Only',
|
33 |
+
'Programming Language :: Python :: 3.8',
|
34 |
+
'Programming Language :: Python :: 3.9',
|
35 |
+
'Programming Language :: Python :: 3.10',
|
36 |
+
'Programming Language :: Python :: 3.11',
|
37 |
+
'Topic :: Scientific/Engineering',
|
38 |
+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
39 |
+
'Topic :: Scientific/Engineering :: Visualization',
|
40 |
+
]
|
41 |
+
|
42 |
+
[project.optional-dependencies]
|
43 |
+
dev = ["build", "twine"]
|
44 |
+
|
45 |
+
[tool.hatch.build]
|
46 |
+
artifacts = ["/backend/gradio_foliumtest/templates", "*.pyi", "backend/gradio_foliumtest/templates", "backend/gradio_foliumtest/templates", "backend/gradio_foliumtest/templates", "backend/gradio_foliumtest/templates", "backend/gradio_foliumtest/templates", "backend/gradio_foliumtest/templates"]
|
47 |
+
|
48 |
+
[tool.hatch.build.targets.wheel]
|
49 |
+
packages = ["/backend/gradio_foliumtest"]
|