qodalis-cli-server-plugin-docker 1.0.0b39__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qodalis_cli_docker/__init__.py +44 -0
- qodalis_cli_docker/builder.py +196 -0
- qodalis_cli_docker/commands.py +1434 -0
- qodalis_cli_docker/compose.py +319 -0
- qodalis_cli_docker/console/extension.css +32 -0
- qodalis_cli_docker/console/extension.js +89 -0
- qodalis_cli_docker/console_page.py +28 -0
- qodalis_cli_docker/controller.py +309 -0
- qodalis_cli_docker/engine.py +482 -0
- qodalis_cli_docker/exec_socket.py +246 -0
- qodalis_cli_docker/mcp_tools.py +149 -0
- qodalis_cli_docker/plugin.py +36 -0
- qodalis_cli_docker/service.py +2007 -0
- qodalis_cli_docker/settings.py +172 -0
- qodalis_cli_docker/shapes.py +317 -0
- qodalis_cli_server_plugin_docker-1.0.0b39.dist-info/METADATA +300 -0
- qodalis_cli_server_plugin_docker-1.0.0b39.dist-info/RECORD +20 -0
- qodalis_cli_server_plugin_docker-1.0.0b39.dist-info/WHEEL +4 -0
- qodalis_cli_server_plugin_docker-1.0.0b39.dist-info/entry_points.txt +2 -0
- qodalis_cli_server_plugin_docker-1.0.0b39.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"""Compose support: where the compose files are (only under ``composeRoots``), and running the ``docker compose`` CLI.
|
|
2
|
+
Every path is checked here (real paths, regular files, sizes), the CLI is started without a shell from an argument list
|
|
3
|
+
and a minimal environment, and its output is only ever shown, never interpreted."""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
import asyncio
|
|
8
|
+
import os
|
|
9
|
+
import re
|
|
10
|
+
import signal
|
|
11
|
+
import stat
|
|
12
|
+
from dataclasses import dataclass, field
|
|
13
|
+
from typing import Callable, Optional
|
|
14
|
+
|
|
15
|
+
#: Names of stacks: what a folder under a root must be called to be one.
|
|
16
|
+
STACK_NAME = re.compile(r"^[a-z0-9][a-z0-9_-]{0,62}\Z")
|
|
17
|
+
#: The files that make a folder a stack, in the order they are looked for.
|
|
18
|
+
COMPOSE_FILE_NAMES = ["compose.yaml", "compose.yml", "docker-compose.yml", "docker-compose.yaml"]
|
|
19
|
+
COMPOSE_FILE_CAP = 256 * 1024
|
|
20
|
+
MAX_FOLDERS_PER_ROOT = 200
|
|
21
|
+
_YAML = re.compile(r"\.ya?ml\Z", re.IGNORECASE)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _real_of(path: str) -> Optional[str]:
|
|
25
|
+
try:
|
|
26
|
+
return os.path.realpath(path, strict=True)
|
|
27
|
+
except (OSError, ValueError):
|
|
28
|
+
return None
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def real_roots(roots: list[str]) -> list[str]:
|
|
32
|
+
"""The real paths of the roots that exist (absolute paths only)."""
|
|
33
|
+
found: list[str] = []
|
|
34
|
+
for root in roots:
|
|
35
|
+
if isinstance(root, str) and os.path.isabs(root):
|
|
36
|
+
real = _real_of(root)
|
|
37
|
+
if real is not None and os.path.isdir(real):
|
|
38
|
+
found.append(real)
|
|
39
|
+
return found
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def is_under_root(real: str, roots: list[str]) -> bool:
|
|
43
|
+
"""Whether ``real`` is a root or lies under one (the sibling ``/data-x`` of ``/data`` does not)."""
|
|
44
|
+
return any(real == r or real.startswith(r if r.endswith(os.sep) else r + os.sep) for r in real_roots(roots))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def check_compose_file(path: str, roots: list[str], max_bytes: int = COMPOSE_FILE_CAP) -> Optional[str]:
|
|
48
|
+
"""A compose file that may be used: an absolute path ending in .yml/.yaml whose real path lies under the real path of
|
|
49
|
+
one of ``roots``, a regular file of at most ``max_bytes`` bytes. Its real path, else ``None`` (never an error): the
|
|
50
|
+
label that names a file is written by whoever created the container."""
|
|
51
|
+
if not isinstance(path, str) or not os.path.isabs(path) or not _YAML.search(path):
|
|
52
|
+
return None
|
|
53
|
+
real = _real_of(path)
|
|
54
|
+
if real is None or not _YAML.search(real) or not is_under_root(real, roots):
|
|
55
|
+
return None
|
|
56
|
+
try:
|
|
57
|
+
st = os.stat(real)
|
|
58
|
+
except OSError:
|
|
59
|
+
return None
|
|
60
|
+
if not stat.S_ISREG(st.st_mode) or st.st_size > max_bytes:
|
|
61
|
+
return None
|
|
62
|
+
# the file's folder is a real directory (not a link) directly under a root, as for ``<root>/<name>``
|
|
63
|
+
folder = os.path.dirname(path)
|
|
64
|
+
try:
|
|
65
|
+
if not stat.S_ISDIR(os.lstat(folder).st_mode):
|
|
66
|
+
return None
|
|
67
|
+
except OSError:
|
|
68
|
+
return None
|
|
69
|
+
real_folder = _real_of(folder)
|
|
70
|
+
if real_folder is None or os.path.dirname(real_folder) not in real_roots(roots) or os.path.dirname(real) != real_folder:
|
|
71
|
+
return None
|
|
72
|
+
return real
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def read_compose_file(path: str, roots: list[str], max_bytes: int = COMPOSE_FILE_CAP) -> Optional[str]:
|
|
76
|
+
"""The content of a checked compose file, read from the open file (never following a link) for at most ``max_bytes``
|
|
77
|
+
bytes; ``None`` when it fails any check."""
|
|
78
|
+
real = check_compose_file(path, roots, max_bytes)
|
|
79
|
+
if real is None:
|
|
80
|
+
return None
|
|
81
|
+
try:
|
|
82
|
+
fd = os.open(real, os.O_RDONLY | getattr(os, "O_NOFOLLOW", 0))
|
|
83
|
+
except OSError:
|
|
84
|
+
return None
|
|
85
|
+
try:
|
|
86
|
+
st = os.fstat(fd)
|
|
87
|
+
if not stat.S_ISREG(st.st_mode) or st.st_size > max_bytes:
|
|
88
|
+
return None
|
|
89
|
+
data = b""
|
|
90
|
+
while len(data) < max_bytes:
|
|
91
|
+
chunk = os.read(fd, max_bytes - len(data))
|
|
92
|
+
if not chunk:
|
|
93
|
+
break
|
|
94
|
+
data += chunk
|
|
95
|
+
return data.decode("utf-8", errors="replace")
|
|
96
|
+
except OSError:
|
|
97
|
+
return None
|
|
98
|
+
finally:
|
|
99
|
+
os.close(fd)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def is_stack_folder(root: str, name: str) -> Optional[str]:
|
|
103
|
+
"""``<root>/<name>`` when it is a real directory (not a link) directly under ``root`` (a root that exists, absolute),
|
|
104
|
+
else ``None``."""
|
|
105
|
+
if not isinstance(root, str) or not os.path.isabs(root) or not STACK_NAME.match(name):
|
|
106
|
+
return None
|
|
107
|
+
folder = os.path.join(root, name)
|
|
108
|
+
try:
|
|
109
|
+
if not stat.S_ISDIR(os.lstat(folder).st_mode):
|
|
110
|
+
return None
|
|
111
|
+
except OSError:
|
|
112
|
+
return None
|
|
113
|
+
real_root = _real_of(root)
|
|
114
|
+
real = _real_of(folder)
|
|
115
|
+
if real_root is None or real is None or os.path.dirname(real) != real_root:
|
|
116
|
+
return None
|
|
117
|
+
return folder
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def find_root_compose_file(name: str, roots: list[str]) -> Optional[str]:
|
|
121
|
+
"""``<root>/<name>/compose.yaml|compose.yml|docker-compose.yml|docker-compose.yaml``: the first that passes the checks,
|
|
122
|
+
in the order of the roots (the path as the root gives it); the folder must be a real directory directly under the root."""
|
|
123
|
+
if not isinstance(name, str) or not STACK_NAME.match(name):
|
|
124
|
+
return None
|
|
125
|
+
for root in roots:
|
|
126
|
+
folder = is_stack_folder(root, name)
|
|
127
|
+
if folder is None:
|
|
128
|
+
continue
|
|
129
|
+
for file in COMPOSE_FILE_NAMES:
|
|
130
|
+
path = os.path.join(folder, file)
|
|
131
|
+
real = check_compose_file(path, roots)
|
|
132
|
+
if real is not None and os.path.dirname(real) == _real_of(folder):
|
|
133
|
+
return path
|
|
134
|
+
return None
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def discover_compose_stacks(roots: list[str]) -> list[tuple[str, str]]:
|
|
138
|
+
"""The stacks of the roots' immediate sub-folders (at most 200 per root): a valid name, a real folder and one of the
|
|
139
|
+
four files. ``[(name, file path)]``."""
|
|
140
|
+
found: dict[str, str] = {}
|
|
141
|
+
for root in roots:
|
|
142
|
+
if not isinstance(root, str) or not os.path.isabs(root):
|
|
143
|
+
continue
|
|
144
|
+
try:
|
|
145
|
+
entries = sorted(os.listdir(root))[:MAX_FOLDERS_PER_ROOT]
|
|
146
|
+
except OSError:
|
|
147
|
+
continue
|
|
148
|
+
for name in entries:
|
|
149
|
+
if name in found or not STACK_NAME.match(name):
|
|
150
|
+
continue
|
|
151
|
+
file = find_root_compose_file(name, [root, *[r for r in roots if r != root]])
|
|
152
|
+
if file:
|
|
153
|
+
found[name] = file
|
|
154
|
+
return list(found.items())
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def is_plain_folder_under_root(folder: str, roots: list[str]) -> bool:
|
|
158
|
+
"""A folder that is a real directory (not a link) under a root."""
|
|
159
|
+
try:
|
|
160
|
+
if not stat.S_ISDIR(os.lstat(folder).st_mode):
|
|
161
|
+
return False
|
|
162
|
+
except OSError:
|
|
163
|
+
return False
|
|
164
|
+
real = _real_of(folder)
|
|
165
|
+
return real is not None and is_under_root(real, roots)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
# ---------------------------------------------------------------------------------------------------------------
|
|
169
|
+
# Running the CLI
|
|
170
|
+
# ---------------------------------------------------------------------------------------------------------------
|
|
171
|
+
|
|
172
|
+
_ANSI = re.compile(r"\x1b\[[0-9;?]*[ -/]*[@-~]|\x1b[@-Z\\-_]|\x1b\][^\x07]*\x07")
|
|
173
|
+
MAX_LOG_LINES = 200
|
|
174
|
+
MAX_LINE = 2000
|
|
175
|
+
MAX_OUTPUT = 64 * 1024
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def strip_ansi(text: str) -> str:
|
|
179
|
+
return _ANSI.sub("", text)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
@dataclass
|
|
183
|
+
class ComposeRunResult:
|
|
184
|
+
exit_code: Optional[int] = None
|
|
185
|
+
timed_out: bool = False
|
|
186
|
+
#: The CLI could not be started (not found, not executable).
|
|
187
|
+
spawn_error: Optional[BaseException] = None
|
|
188
|
+
#: The last 200 lines of stdout and stderr merged, without ANSI codes, cut at 2000 characters.
|
|
189
|
+
lines: list[str] = field(default_factory=list)
|
|
190
|
+
#: The same output as text, at most 64 KB.
|
|
191
|
+
text: str = ""
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def _kill_group(proc: "asyncio.subprocess.Process") -> None:
|
|
195
|
+
"""Kills the process and its group (a child of the CLI would keep the pipes open)."""
|
|
196
|
+
try:
|
|
197
|
+
if proc.pid and os.name != "nt":
|
|
198
|
+
os.killpg(proc.pid, signal.SIGKILL)
|
|
199
|
+
else:
|
|
200
|
+
proc.kill()
|
|
201
|
+
except (ProcessLookupError, PermissionError):
|
|
202
|
+
try:
|
|
203
|
+
proc.kill()
|
|
204
|
+
except ProcessLookupError:
|
|
205
|
+
pass
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
async def run_compose(
|
|
209
|
+
argv: list[str], cwd: str, env: dict[str, str], timeout: float, on_lines: Optional[Callable[[list[str]], None]] = None,
|
|
210
|
+
registry: Optional[set] = None,
|
|
211
|
+
) -> ComposeRunResult:
|
|
212
|
+
"""Runs the compose CLI without a shell; its process group is killed at the time limit or when the task is
|
|
213
|
+
cancelled. Never raises (a failure to start is ``spawn_error``). ``registry`` collects the running processes (the
|
|
214
|
+
service kills them when it stops)."""
|
|
215
|
+
result = ComposeRunResult()
|
|
216
|
+
lines: list[str] = []
|
|
217
|
+
text_parts = {"size": 0, "text": ""}
|
|
218
|
+
partial = {"out": "", "err": ""}
|
|
219
|
+
skipping = {"out": False, "err": False}
|
|
220
|
+
|
|
221
|
+
def push(line: str) -> None:
|
|
222
|
+
clean = strip_ansi(line).replace("\r", "")
|
|
223
|
+
if not clean.strip():
|
|
224
|
+
return
|
|
225
|
+
cut = f"{clean[:MAX_LINE]}…" if len(clean) > MAX_LINE else clean
|
|
226
|
+
lines.append(cut)
|
|
227
|
+
if len(lines) > MAX_LOG_LINES:
|
|
228
|
+
del lines[0]
|
|
229
|
+
if len(text_parts["text"]) < MAX_OUTPUT:
|
|
230
|
+
text_parts["text"] += f"{cut}\n"
|
|
231
|
+
if on_lines is not None:
|
|
232
|
+
on_lines(list(lines))
|
|
233
|
+
|
|
234
|
+
def feed(kind: str, chunk: bytes) -> None:
|
|
235
|
+
# a progress display redraws a line with \r: every redraw is a line of its own
|
|
236
|
+
parts = re.split(r"\n|\r(?!\n)", partial[kind] + chunk.decode("utf-8", errors="replace"))
|
|
237
|
+
partial[kind] = parts.pop()
|
|
238
|
+
for part in parts:
|
|
239
|
+
if skipping[kind]:
|
|
240
|
+
skipping[kind] = False # the rest of a line that was cut
|
|
241
|
+
continue
|
|
242
|
+
push(part)
|
|
243
|
+
# a line that never ends is cut at the line cap; the rest of it is dropped
|
|
244
|
+
if len(partial[kind]) > MAX_LINE and not skipping[kind]:
|
|
245
|
+
push(partial[kind][:MAX_LINE] + "…")
|
|
246
|
+
partial[kind] = ""
|
|
247
|
+
skipping[kind] = True
|
|
248
|
+
elif skipping[kind]:
|
|
249
|
+
partial[kind] = ""
|
|
250
|
+
|
|
251
|
+
def flush() -> None:
|
|
252
|
+
for kind in ("out", "err"):
|
|
253
|
+
if partial[kind] and not skipping[kind]:
|
|
254
|
+
push(partial[kind])
|
|
255
|
+
partial[kind] = ""
|
|
256
|
+
|
|
257
|
+
try:
|
|
258
|
+
proc = await asyncio.create_subprocess_exec(
|
|
259
|
+
*argv, cwd=cwd, env=env, stdin=asyncio.subprocess.DEVNULL, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,
|
|
260
|
+
start_new_session=os.name != "nt",
|
|
261
|
+
)
|
|
262
|
+
except (OSError, ValueError) as err:
|
|
263
|
+
result.spawn_error = err
|
|
264
|
+
return result
|
|
265
|
+
if registry is not None:
|
|
266
|
+
registry.add(proc)
|
|
267
|
+
|
|
268
|
+
async def pump(stream: "asyncio.StreamReader", kind: str) -> None:
|
|
269
|
+
while True:
|
|
270
|
+
chunk = await stream.read(4096)
|
|
271
|
+
if not chunk:
|
|
272
|
+
return
|
|
273
|
+
feed(kind, chunk)
|
|
274
|
+
|
|
275
|
+
pumps = [asyncio.ensure_future(pump(proc.stdout, "out")), asyncio.ensure_future(pump(proc.stderr, "err"))] # type: ignore[arg-type]
|
|
276
|
+
try:
|
|
277
|
+
try:
|
|
278
|
+
await asyncio.wait_for(asyncio.gather(*pumps, proc.wait()), timeout)
|
|
279
|
+
except (asyncio.TimeoutError, TimeoutError):
|
|
280
|
+
result.timed_out = True
|
|
281
|
+
_kill_group(proc)
|
|
282
|
+
await asyncio.gather(*pumps, return_exceptions=True)
|
|
283
|
+
await proc.wait()
|
|
284
|
+
except asyncio.CancelledError:
|
|
285
|
+
_kill_group(proc)
|
|
286
|
+
raise
|
|
287
|
+
else:
|
|
288
|
+
result.exit_code = proc.returncode
|
|
289
|
+
finally:
|
|
290
|
+
for p in pumps:
|
|
291
|
+
if not p.done():
|
|
292
|
+
p.cancel()
|
|
293
|
+
if registry is not None:
|
|
294
|
+
registry.discard(proc)
|
|
295
|
+
flush()
|
|
296
|
+
result.lines = lines[-MAX_LOG_LINES:]
|
|
297
|
+
result.text = text_parts["text"]
|
|
298
|
+
return result
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
def is_legacy_compose(argv: list[str]) -> bool:
|
|
302
|
+
"""The program name of a compose command (``docker-compose`` behaves differently from ``docker compose``)."""
|
|
303
|
+
return bool(re.match(r"^docker-compose(\.exe)?\Z", os.path.basename(argv[0] if argv else ""), re.IGNORECASE))
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
def compose_environment(extra_names: list[str], fixed: Optional[dict[str, str]] = None) -> dict[str, str]:
|
|
307
|
+
"""The minimal environment of the CLI: ``PATH``, ``HOME``, ``USER``, ``LANG`` and ``TMPDIR`` of the server, the
|
|
308
|
+
variables named in ``extra_names`` (never one starting with ``DOCKER_`` or ``COMPOSE_``), and the three fixed ones."""
|
|
309
|
+
env: dict[str, str] = {}
|
|
310
|
+
for name in ["PATH", "HOME", "USER", "LANG", "TMPDIR", *[n for n in extra_names if isinstance(n, str)]]:
|
|
311
|
+
if not re.match(r"^[A-Za-z_][A-Za-z0-9_]*\Z", name) or re.match(r"(?i)(DOCKER_|COMPOSE_)", name):
|
|
312
|
+
continue
|
|
313
|
+
value = os.environ.get(name)
|
|
314
|
+
if value is not None:
|
|
315
|
+
env[name] = value
|
|
316
|
+
env.update({"COMPOSE_INTERACTIVE_NO_CLI": "1", "COMPOSE_MENU": "false", "NO_COLOR": "1"})
|
|
317
|
+
if fixed:
|
|
318
|
+
env.update(fixed)
|
|
319
|
+
return env
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.qcli-extension .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.qcli-extension .pointer-events-none{pointer-events:none}.qcli-extension .visible{visibility:visible}.qcli-extension .static{position:static}.qcli-extension .fixed{position:fixed}.qcli-extension .absolute{position:absolute}.qcli-extension .relative{position:relative}.qcli-extension .inset-0{top:0;right:0;bottom:0;left:0}.qcli-extension .right-2\.5{right:.625rem}.qcli-extension .right-6{right:1.5rem}.qcli-extension .top-1\/2{top:50%}.qcli-extension .z-10{z-index:10}.qcli-extension .z-50{z-index:50}.qcli-extension .z-\[60\]{z-index:60}.qcli-extension .m-0{margin:0}.qcli-extension .m-6{margin:1.5rem}.qcli-extension .-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.qcli-extension .mx-auto{margin-left:auto;margin-right:auto}.qcli-extension .my-1{margin-top:.25rem;margin-bottom:.25rem}.qcli-extension .-mb-px{margin-bottom:-1px}.qcli-extension .-mr-2{margin-right:-.5rem}.qcli-extension .-mt-\[5px\]{margin-top:-5px}.qcli-extension .mb-1{margin-bottom:.25rem}.qcli-extension .mb-2{margin-bottom:.5rem}.qcli-extension .mb-3{margin-bottom:.75rem}.qcli-extension .ml-2{margin-left:.5rem}.qcli-extension .ml-auto{margin-left:auto}.qcli-extension .mr-2{margin-right:.5rem}.qcli-extension .mt-0\.5{margin-top:.125rem}.qcli-extension .mt-1{margin-top:.25rem}.qcli-extension .mt-1\.5{margin-top:.375rem}.qcli-extension .mt-2{margin-top:.5rem}.qcli-extension .mt-3{margin-top:.75rem}.qcli-extension .block{display:block}.qcli-extension .inline-block{display:inline-block}.qcli-extension .inline{display:inline}.qcli-extension .flex{display:flex}.qcli-extension .inline-flex{display:inline-flex}.qcli-extension .table{display:table}.qcli-extension .grid{display:grid}.qcli-extension .contents{display:contents}.qcli-extension .hidden{display:none}.qcli-extension .h-0\.5{height:.125rem}.qcli-extension .h-1{height:.25rem}.qcli-extension .h-1\.5{height:.375rem}.qcli-extension .h-11{height:2.75rem}.qcli-extension .h-2\.5{height:.625rem}.qcli-extension .h-3\.5{height:.875rem}.qcli-extension .h-4{height:1rem}.qcli-extension .h-40{height:10rem}.qcli-extension .h-6{height:1.5rem}.qcli-extension .h-8{height:2rem}.qcli-extension .h-\[100dvh\]{height:100dvh}.qcli-extension .h-\[26rem\]{height:26rem}.qcli-extension .h-full{height:100%}.qcli-extension .h-px{height:1px}.qcli-extension .max-h-48{max-height:12rem}.qcli-extension .max-h-60{max-height:15rem}.qcli-extension .max-h-80{max-height:20rem}.qcli-extension .max-h-\[28rem\]{max-height:28rem}.qcli-extension .max-h-\[92dvh\]{max-height:92dvh}.qcli-extension .min-h-0{min-height:0px}.qcli-extension .min-h-11{min-height:2.75rem}.qcli-extension .min-h-24{min-height:6rem}.qcli-extension .min-h-8{min-height:2rem}.qcli-extension .min-h-\[16rem\]{min-height:16rem}.qcli-extension .w-1\.5{width:.375rem}.qcli-extension .w-1\/2{width:50%}.qcli-extension .w-1\/3{width:33.333333%}.qcli-extension .w-10{width:2.5rem}.qcli-extension .w-11{width:2.75rem}.qcli-extension .w-16{width:4rem}.qcli-extension .w-2\.5{width:.625rem}.qcli-extension .w-20{width:5rem}.qcli-extension .w-24{width:6rem}.qcli-extension .w-3{width:.75rem}.qcli-extension .w-32{width:8rem}.qcli-extension .w-4{width:1rem}.qcli-extension .w-48{width:12rem}.qcli-extension .w-72{width:18rem}.qcli-extension .w-8{width:2rem}.qcli-extension .w-auto{width:auto}.qcli-extension .w-full{width:100%}.qcli-extension .min-w-0{min-width:0px}.qcli-extension .min-w-11{min-width:2.75rem}.qcli-extension .min-w-\[11rem\]{min-width:11rem}.qcli-extension .min-w-\[120px\]{min-width:120px}.qcli-extension .min-w-\[140px\]{min-width:140px}.qcli-extension .min-w-\[16rem\]{min-width:16rem}.qcli-extension .max-w-2xl{max-width:42rem}.qcli-extension .max-w-\[10rem\]{max-width:10rem}.qcli-extension .max-w-\[12rem\]{max-width:12rem}.qcli-extension .max-w-\[14rem\]{max-width:14rem}.qcli-extension .max-w-\[16rem\]{max-width:16rem}.qcli-extension .max-w-\[18rem\]{max-width:18rem}.qcli-extension .max-w-\[6rem\]{max-width:6rem}.qcli-extension .max-w-\[8rem\]{max-width:8rem}.qcli-extension .max-w-\[min\(20rem\,calc\(100vw-1rem\)\)\]{max-width:min(20rem,calc(100vw - 1rem))}.qcli-extension .max-w-\[min\(24rem\,calc\(100vw-1rem\)\)\]{max-width:min(24rem,calc(100vw - 1rem))}.qcli-extension .max-w-full{max-width:100%}.qcli-extension .flex-1{flex:1 1 0%}.qcli-extension .shrink-0{flex-shrink:0}.qcli-extension .basis-full{flex-basis:100%}.qcli-extension .-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.qcli-extension .rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.qcli-extension .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.qcli-extension .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.qcli-extension .animate-spin{animation:spin 1s linear infinite}.qcli-extension .cursor-not-allowed{cursor:not-allowed}.qcli-extension .cursor-pointer{cursor:pointer}.qcli-extension .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.qcli-extension .resize-y{resize:vertical}.qcli-extension .resize{resize:both}.qcli-extension .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.qcli-extension .grid-cols-\[max-content_1fr\]{grid-template-columns:max-content 1fr}.qcli-extension .flex-col{flex-direction:column}.qcli-extension .flex-wrap{flex-wrap:wrap}.qcli-extension .items-start{align-items:flex-start}.qcli-extension .items-end{align-items:flex-end}.qcli-extension .items-center{align-items:center}.qcli-extension .items-stretch{align-items:stretch}.qcli-extension .justify-end{justify-content:flex-end}.qcli-extension .justify-center{justify-content:center}.qcli-extension .justify-between{justify-content:space-between}.qcli-extension .gap-1{gap:.25rem}.qcli-extension .gap-1\.5{gap:.375rem}.qcli-extension .gap-2{gap:.5rem}.qcli-extension .gap-3{gap:.75rem}.qcli-extension .gap-4{gap:1rem}.qcli-extension .gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.qcli-extension .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.qcli-extension .gap-y-1{row-gap:.25rem}.qcli-extension .gap-y-1\.5{row-gap:.375rem}.qcli-extension .gap-y-2{row-gap:.5rem}.qcli-extension :is(.space-y-0\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.qcli-extension :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.qcli-extension :is(.space-y-1\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.qcli-extension :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.qcli-extension :is(.space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.qcli-extension :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.qcli-extension :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.qcli-extension :is(.divide-x>:not([hidden])~:not([hidden])){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.qcli-extension :is(.divide-border\/75>:not([hidden])~:not([hidden])){border-color:color-mix(in srgb,var(--qcli-border) 75%,transparent)}.qcli-extension .overflow-auto{overflow:auto}.qcli-extension .overflow-hidden{overflow:hidden}.qcli-extension .overflow-visible{overflow:visible}.qcli-extension .overflow-x-auto{overflow-x:auto}.qcli-extension .overflow-y-auto{overflow-y:auto}.qcli-extension .overscroll-contain{overscroll-behavior:contain}.qcli-extension .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qcli-extension .whitespace-nowrap{white-space:nowrap}.qcli-extension .whitespace-pre{white-space:pre}.qcli-extension .whitespace-pre-wrap{white-space:pre-wrap}.qcli-extension .break-words{overflow-wrap:break-word}.qcli-extension .break-all{word-break:break-all}.qcli-extension .rounded{border-radius:.25rem}.qcli-extension .rounded-full{border-radius:9999px}.qcli-extension .rounded-lg{border-radius:.5rem}.qcli-extension .rounded-md{border-radius:.375rem}.qcli-extension .rounded-sm{border-radius:.125rem}.qcli-extension .rounded-xl{border-radius:.75rem}.qcli-extension .rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.qcli-extension .border{border-width:1px}.qcli-extension .border-b{border-bottom-width:1px}.qcli-extension .border-b-2{border-bottom-width:2px}.qcli-extension .border-t{border-top-width:1px}.qcli-extension .border-border{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--qcli-border) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.qcli-extension .border-border\/50{border-color:color-mix(in srgb,var(--qcli-border) 50%,transparent)}.qcli-extension .border-border\/75{border-color:color-mix(in srgb,var(--qcli-border) 75%,transparent)}.qcli-extension .border-error\/30{border-color:color-mix(in srgb,var(--qcli-error) 30%,transparent)}.qcli-extension .border-error\/40{border-color:color-mix(in srgb,var(--qcli-error) 40%,transparent)}.qcli-extension .border-info\/30{border-color:color-mix(in srgb,var(--qcli-info) 30%,transparent)}.qcli-extension .border-primary{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--qcli-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.qcli-extension .border-subtle\/30{border-color:color-mix(in srgb,var(--qcli-subtle) 30%,transparent)}.qcli-extension .border-success\/30{border-color:color-mix(in srgb,var(--qcli-success) 30%,transparent)}.qcli-extension .border-transparent{border-color:transparent}.qcli-extension .border-warning\/30{border-color:color-mix(in srgb,var(--qcli-warning) 30%,transparent)}.qcli-extension .bg-border{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-border) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .bg-border\/75{background-color:color-mix(in srgb,var(--qcli-border) 75%,transparent)}.qcli-extension .bg-control{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-control) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .bg-control-hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-control-hover) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .bg-control\/40{background-color:color-mix(in srgb,var(--qcli-control) 40%,transparent)}.qcli-extension .bg-control\/50{background-color:color-mix(in srgb,var(--qcli-control) 50%,transparent)}.qcli-extension .bg-current{background-color:currentColor}.qcli-extension .bg-error\/15{background-color:color-mix(in srgb,var(--qcli-error) 15%,transparent)}.qcli-extension .bg-error\/20{background-color:color-mix(in srgb,var(--qcli-error) 20%,transparent)}.qcli-extension .bg-error\/\[0\.06\]{background-color:color-mix(in srgb,var(--qcli-error) 6%,transparent)}.qcli-extension .bg-info\/15{background-color:color-mix(in srgb,var(--qcli-info) 15%,transparent)}.qcli-extension .bg-overlay{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-overlay) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .bg-popover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-popover) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .bg-primary{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-primary) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .bg-primary\/15{background-color:color-mix(in srgb,var(--qcli-primary) 15%,transparent)}.qcli-extension .bg-primary\/20{background-color:color-mix(in srgb,var(--qcli-primary) 20%,transparent)}.qcli-extension .bg-subtle\/15{background-color:color-mix(in srgb,var(--qcli-subtle) 15%,transparent)}.qcli-extension .bg-success\/15{background-color:color-mix(in srgb,var(--qcli-success) 15%,transparent)}.qcli-extension .bg-surface{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-surface) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .bg-warning\/15{background-color:color-mix(in srgb,var(--qcli-warning) 15%,transparent)}.qcli-extension .bg-warning\/\[0\.06\]{background-color:color-mix(in srgb,var(--qcli-warning) 6%,transparent)}.qcli-extension .fill-subtle{fill:color-mix(in srgb,var(--qcli-subtle) 100%,transparent)}.qcli-extension .p-1{padding:.25rem}.qcli-extension .p-1\.5{padding:.375rem}.qcli-extension .p-2{padding:.5rem}.qcli-extension .p-3{padding:.75rem}.qcli-extension .p-4{padding:1rem}.qcli-extension .p-6{padding:1.5rem}.qcli-extension .px-1\.5{padding-left:.375rem;padding-right:.375rem}.qcli-extension .px-2{padding-left:.5rem;padding-right:.5rem}.qcli-extension .px-2\.5{padding-left:.625rem;padding-right:.625rem}.qcli-extension .px-3{padding-left:.75rem;padding-right:.75rem}.qcli-extension .px-4{padding-left:1rem;padding-right:1rem}.qcli-extension .px-5{padding-left:1.25rem;padding-right:1.25rem}.qcli-extension .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.qcli-extension .py-1{padding-top:.25rem;padding-bottom:.25rem}.qcli-extension .py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.qcli-extension .py-2{padding-top:.5rem;padding-bottom:.5rem}.qcli-extension .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.qcli-extension .py-3{padding-top:.75rem;padding-bottom:.75rem}.qcli-extension .py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.qcli-extension .py-4{padding-top:1rem;padding-bottom:1rem}.qcli-extension .py-8{padding-top:2rem;padding-bottom:2rem}.qcli-extension .py-px{padding-top:1px;padding-bottom:1px}.qcli-extension .pb-\[env\(safe-area-inset-bottom\)\]{padding-bottom:env(safe-area-inset-bottom)}.qcli-extension .pl-\[env\(safe-area-inset-left\)\]{padding-left:env(safe-area-inset-left)}.qcli-extension .pr-16{padding-right:4rem}.qcli-extension .pr-7{padding-right:1.75rem}.qcli-extension .pr-\[env\(safe-area-inset-right\)\]{padding-right:env(safe-area-inset-right)}.qcli-extension .pt-\[env\(safe-area-inset-top\)\]{padding-top:env(safe-area-inset-top)}.qcli-extension .text-left{text-align:left}.qcli-extension .text-center{text-align:center}.qcli-extension .align-middle{vertical-align:middle}.qcli-extension .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.qcli-extension .text-2xl{font-size:1.5rem;line-height:2rem}.qcli-extension .text-\[10px\]{font-size:10px}.qcli-extension .text-\[11px\]{font-size:11px}.qcli-extension .text-\[9px\]{font-size:9px}.qcli-extension .text-base{font-size:1rem;line-height:1.5rem}.qcli-extension .text-lg{font-size:1.125rem;line-height:1.75rem}.qcli-extension .text-sm{font-size:.875rem;line-height:1.25rem}.qcli-extension .text-xs{font-size:.75rem;line-height:1rem}.qcli-extension .font-medium{font-weight:500}.qcli-extension .font-normal{font-weight:400}.qcli-extension .font-semibold{font-weight:600}.qcli-extension .uppercase{text-transform:uppercase}.qcli-extension .lowercase{text-transform:lowercase}.qcli-extension .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.qcli-extension .leading-4{line-height:1rem}.qcli-extension .leading-5{line-height:1.25rem}.qcli-extension .leading-none{line-height:1}.qcli-extension .tracking-wide{letter-spacing:.025em}.qcli-extension .text-accent{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-accent) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-error{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-error) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-error\/70{color:color-mix(in srgb,var(--qcli-error) 70%,transparent)}.qcli-extension .text-error\/80{color:color-mix(in srgb,var(--qcli-error) 80%,transparent)}.qcli-extension .text-heading{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-heading) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-info{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-info) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-muted{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-muted) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-on-primary{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-on-primary) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-primary{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-primary) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-subtle{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-subtle) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-subtle\/80{color:color-mix(in srgb,var(--qcli-subtle) 80%,transparent)}.qcli-extension .text-success{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-success) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-text{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-text) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .text-warning{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-warning) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .opacity-30{opacity:.3}.qcli-extension .opacity-40{opacity:.4}.qcli-extension .opacity-50{opacity:.5}.qcli-extension .shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.qcli-extension .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.qcli-extension .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.qcli-extension .outline-none{outline:2px solid transparent;outline-offset:2px}.qcli-extension .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.qcli-extension .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.qcli-extension .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.qcli-extension .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.qcli-extension .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.qcli-extension .placeholder\:text-subtle::-moz-placeholder{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-subtle) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .placeholder\:text-subtle::placeholder{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-subtle) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .last\:border-0:last-child{border-width:0px}.qcli-extension .hover\:border-primary\/50:hover{border-color:color-mix(in srgb,var(--qcli-primary) 50%,transparent)}.qcli-extension .hover\:bg-control:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-control) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .hover\:bg-control-hover:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-control-hover) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .hover\:bg-error\/10:hover{background-color:color-mix(in srgb,var(--qcli-error) 10%,transparent)}.qcli-extension .hover\:bg-error\/15:hover{background-color:color-mix(in srgb,var(--qcli-error) 15%,transparent)}.qcli-extension .hover\:bg-error\/30:hover{background-color:color-mix(in srgb,var(--qcli-error) 30%,transparent)}.qcli-extension .hover\:bg-primary-hover:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-primary-hover) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .hover\:bg-primary\/15:hover{background-color:color-mix(in srgb,var(--qcli-primary) 15%,transparent)}.qcli-extension .hover\:bg-success\/15:hover{background-color:color-mix(in srgb,var(--qcli-success) 15%,transparent)}.qcli-extension .hover\:bg-surface:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-surface) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .hover\:bg-warning\/15:hover{background-color:color-mix(in srgb,var(--qcli-warning) 15%,transparent)}.qcli-extension .hover\:text-text:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--qcli-text) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.qcli-extension .hover\:underline:hover{text-decoration-line:underline}.qcli-extension .focus\:border-primary:focus{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--qcli-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.qcli-extension .focus\:border-primary\/50:focus{border-color:color-mix(in srgb,var(--qcli-primary) 50%,transparent)}.qcli-extension .focus\:bg-control-hover:focus{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-control-hover) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.qcli-extension .focus-visible\:border-primary:focus-visible{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--qcli-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.qcli-extension .focus-visible\:bg-control:focus-visible{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--qcli-control) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.qcli-extension .focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.qcli-extension .focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.qcli-extension .focus-visible\:ring-inset:focus-visible{--tw-ring-inset: inset }.qcli-extension .focus-visible\:ring-error\/50:focus-visible{--tw-ring-color: color-mix(in srgb, var(--qcli-error) 50% , transparent) }.qcli-extension .focus-visible\:ring-primary:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--qcli-primary) calc(var(--tw-ring-opacity, 1) * 100%), transparent) }.qcli-extension .focus-visible\:ring-primary\/50:focus-visible{--tw-ring-color: color-mix(in srgb, var(--qcli-primary) 50% , transparent) }.qcli-extension .focus-visible\:ring-primary\/60:focus-visible{--tw-ring-color: color-mix(in srgb, var(--qcli-primary) 60% , transparent) }.qcli-extension .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.qcli-extension .disabled\:opacity-40:disabled{opacity:.4}.qcli-extension .disabled\:opacity-50:disabled{opacity:.5}@media(prefers-reduced-motion:no-preference){@keyframes fade-in{0%{opacity:0}to{opacity:1}}.qcli-extension .motion-safe\:animate-fade-in{animation:fade-in .15s ease-out}@keyframes pop-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}.qcli-extension .motion-safe\:animate-pop-in{animation:pop-in .12s ease-out}@keyframes sheet-in{0%{transform:translateY(100%)}to{transform:none}}.qcli-extension .motion-safe\:animate-sheet-in{animation:sheet-in .2s ease-out}.qcli-extension .motion-safe\:transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}}@media(prefers-reduced-motion:reduce){.qcli-extension .motion-reduce\:animate-none{animation:none}}@media(min-width:640px){.qcli-extension .sm\:not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.qcli-extension .sm\:right-5{right:1.25rem}.qcli-extension .sm\:block{display:block}.qcli-extension .sm\:table-cell{display:table-cell}.qcli-extension .sm\:hidden{display:none}.qcli-extension .sm\:h-5{height:1.25rem}.qcli-extension .sm\:h-8{height:2rem}.qcli-extension .sm\:h-\[90vh\]{height:90vh}.qcli-extension .sm\:max-h-\[90vh\]{max-height:90vh}.qcli-extension .sm\:min-h-0{min-height:0px}.qcli-extension .sm\:min-h-8{min-height:2rem}.qcli-extension .sm\:min-h-\[22rem\]{min-height:22rem}.qcli-extension .sm\:w-5{width:1.25rem}.qcli-extension .sm\:w-8{width:2rem}.qcli-extension .sm\:w-auto{width:auto}.qcli-extension .sm\:min-w-8{min-width:2rem}.qcli-extension .sm\:max-w-3xl{max-width:48rem}.qcli-extension .sm\:max-w-6xl{max-width:72rem}.qcli-extension .sm\:max-w-\[12rem\]{max-width:12rem}.qcli-extension .sm\:max-w-md{max-width:28rem}.qcli-extension .sm\:max-w-sm{max-width:24rem}.qcli-extension .sm\:max-w-xs{max-width:20rem}.qcli-extension .sm\:flex-1{flex:1 1 0%}.qcli-extension .sm\:flex-row{flex-direction:row}.qcli-extension .sm\:items-center{align-items:center}.qcli-extension .sm\:rounded-xl{border-radius:.75rem}.qcli-extension .sm\:border{border-width:1px}.qcli-extension .sm\:p-4{padding:1rem}.qcli-extension .sm\:p-6{padding:1.5rem}.qcli-extension .sm\:px-0{padding-left:0;padding-right:0}.qcli-extension .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.qcli-extension .sm\:pb-0{padding-bottom:0}.qcli-extension .sm\:pr-12{padding-right:3rem}.qcli-extension .sm\:pt-0{padding-top:0}.qcli-extension .sm\:text-xs{font-size:.75rem;line-height:1rem}@media(prefers-reduced-motion:no-preference){@keyframes pop-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}.qcli-extension .sm\:motion-safe\:animate-pop-in{animation:pop-in .12s ease-out}}}@media(min-width:768px){.qcli-extension .md\:table-cell{display:table-cell}}@media(min-width:1024px){.qcli-extension .lg\:table-cell{display:table-cell}.qcli-extension .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1280px){.qcli-extension .xl\:not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.qcli-extension .xl\:table-cell{display:table-cell}.qcli-extension .xl\:max-w-\[14rem\]{max-width:14rem}.qcli-extension .xl\:max-w-\[22rem\]{max-width:22rem}.qcli-extension .xl\:max-w-\[24rem\]{max-width:24rem}.qcli-extension .xl\:max-w-\[28rem\]{max-width:28rem}}@media(min-width:1536px){.qcli-extension .\32xl\:table-cell{display:table-cell}.qcli-extension .\32xl\:hidden{display:none}.qcli-extension .\32xl\:max-w-\[22rem\]{max-width:22rem}}.qcli-extension :is(.\[\&\>button\]\:min-h-11>button){min-height:2.75rem}@media(min-width:640px){.qcli-extension :is(.sm\:\[\&\>button\]\:min-h-0>button){min-height:0px}}.qcli-extension :is(.focus-visible\:\[\&\>rect\.hit\]\:stroke-\[var\(--qcli-primary\)\]>rect.hit:focus-visible){stroke:var(--qcli-primary)}/**
|
|
2
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
+
* https://github.com/chjj/term.js
|
|
5
|
+
* @license MIT
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* Originally forked from (with the author's permission):
|
|
26
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
+
* http://bellard.org/jslinux/
|
|
28
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
+
* The original design remains. The terminal itself
|
|
30
|
+
* has been extended to include xterm CSI codes, among
|
|
31
|
+
* other features.
|
|
32
|
+
*/.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::-moz-selection{color:transparent}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:-moz-fit-content;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}
|