ryugi-artifacts 1.120.4 → 1.121.0
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.
- package/dist/cli.cjs +197 -230
- package/dist/document-engine.cjs +227 -227
- package/dist/output-bootstrap.cjs +170 -56
- package/dist/runtime/ryugi-report.js +3 -3
- package/dist/runtime/ryugi-whiteboard-embed.js +1 -1
- package/dist/viewer/{AgentDock-DIfCUHgZ.js → AgentDock-BNyBNlSy.js} +2 -2
- package/dist/viewer/ArtboardLayout-6tJS23QW.js +14 -0
- package/dist/viewer/ArtifactList-C3N4BjKx.js +2 -0
- package/dist/viewer/{ArtifactModal-Fp67aW8M.js → ArtifactModal-CH9BY3RJ.js} +1 -1
- package/dist/viewer/{BottomSheet-SYC_8Y6k.js → BottomSheet-BFtfrr58.js} +1 -1
- package/dist/viewer/{BrandingMark-D8kdL9jc.js → BrandingMark-QZsHgEQs.js} +1 -1
- package/dist/viewer/{Canvas-CMN5apcj.js → Canvas-C4NA77Id.js} +1 -1
- package/dist/viewer/{CommentPopover-CxFndD1f.js → CommentPopover-BoOuSWYS.js} +1 -1
- package/dist/viewer/{DocumentExportMenu-DyhweUFo.js → DocumentExportMenu-DrN19D4m.js} +1 -1
- package/dist/viewer/DocumentLayout-BjURocqM.js +2 -0
- package/dist/viewer/DocumentPage-H6a9SW4D.js +5 -0
- package/dist/viewer/DocumentPage-l6f5vTWL.css +1 -0
- package/dist/viewer/DraftTray-JF38Iwzo.js +1 -0
- package/dist/viewer/{DraggablePanel-h7D7Tgnv.js → DraggablePanel-fUJe7paG.js} +1 -1
- package/dist/viewer/DropdownMenu-DrocGAAh.js +1 -0
- package/dist/viewer/{GroupVerdict-CSoZ7xIi.js → GroupVerdict-BCr6Cy0G.js} +1 -1
- package/dist/viewer/{HtmlLayout-DursBclJ.js → HtmlLayout-CeRlKG6z.js} +1 -1
- package/dist/viewer/{Input-CkHOfbQE.js → Input-BMZZLY98.js} +1 -1
- package/dist/viewer/MenuSubmenuTrigger-CPcD7vNW.js +1 -0
- package/dist/viewer/{PhoneArtboardBar-DOanenAY.js → PhoneArtboardBar-Dq5U0hhz.js} +1 -1
- package/dist/viewer/{Popover-HS6yjzxl.js → Popover-DxR9Dpf_.js} +1 -1
- package/dist/viewer/PreviewArtifactLayout-CDoR32LC.js +1 -0
- package/dist/viewer/PreviewLayout-C-sly_jL.js +2 -0
- package/dist/viewer/ReportLayout-CXSxsjVb.js +6 -0
- package/dist/viewer/{Segmented-D5ApsVJJ.js → Segmented-DoorRFgs.js} +1 -1
- package/dist/viewer/SelectScrollUpArrow-bXyfVgGf.js +1 -0
- package/dist/viewer/SlidesLayout-BDTPyuCv.js +12 -0
- package/dist/viewer/{SnapshotDocument-B9mIj1Hu.js → SnapshotDocument-TKnFyGcv.js} +1 -1
- package/dist/viewer/{SplitFrame-zVgYFiT_.js → SplitFrame-CLquf6QT.js} +1 -1
- package/dist/viewer/StoryboardLayout-DB9qGegh.js +1 -0
- package/dist/viewer/{StoryboardRender-CjFlWvlf.js → StoryboardRender-CX00jo8v.js} +1 -1
- package/dist/viewer/ThreadView-D_g4kidg.js +1 -0
- package/dist/viewer/{Tooltip-Bi4V2FVJ.js → Tooltip-CZKrDYnF.js} +1 -1
- package/dist/viewer/VerifyLayout-DgokULV2.js +1 -0
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-St9YpcWe.js → VirtualizedEditor-uWe43zaI-BlOdeG0b.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-AQRKmbO2.js → VirtualizedRenderer-C_d95FXi-Bb6aPJaZ.js} +1 -1
- package/dist/viewer/{WarningsBadge-CyQbVl6h.js → WarningsBadge-D4Oo4UxO.js} +1 -1
- package/dist/viewer/WhiteboardEditor-DrHOvXez-DTa-K6Xu.js +22 -0
- package/dist/viewer/WhiteboardLayout-F1J1rwTl.js +4 -0
- package/dist/viewer/{WritingCursor-CLEFH9bN.js → WritingCursor-6VjqhSXi.js} +1 -1
- package/dist/viewer/agentLook-60JQrptF.js +1 -0
- package/dist/viewer/{artifact-list-CuXyveqX.js → artifact-list-BuB3wom1.js} +1 -1
- package/dist/viewer/auto-publish-BfutdvfM.js +1 -0
- package/dist/viewer/channel-DST3ZfoT.js +4 -0
- package/dist/viewer/comments-CASb0ByE.js +1 -0
- package/dist/viewer/context-Dt460deL.js +1 -0
- package/dist/viewer/{crop-encode-7FeBhORX.js → crop-encode-BnAM7iWo.js} +1 -1
- package/dist/viewer/{dist-heibZsuo.js → dist-2resm9Wy.js} +1 -1
- package/dist/viewer/{dist-48uAq37R.js → dist-462HZ4sr.js} +1 -1
- package/dist/viewer/{dist-BZtYe42f.js → dist-B7GHMwWJ.js} +1 -1
- package/dist/viewer/{dist-CIFQVgHq.js → dist-B9cyrbzi.js} +1 -1
- package/dist/viewer/{dist-D239Hbe5.js → dist-Bost_p8b.js} +1 -1
- package/dist/viewer/{dist-yH5e-0q1.js → dist-Bw8MOHnL.js} +1 -1
- package/dist/viewer/{dist-CPlSf_-n.js → dist-CAQYce5C.js} +1 -1
- package/dist/viewer/{dist-BQ-mw7EX.js → dist-CEyDZYnP.js} +1 -1
- package/dist/viewer/{dist-BlsFMD-D.js → dist-CJicYh3N.js} +1 -1
- package/dist/viewer/{dist-IPNQW5G8.js → dist-CLdHiTLp.js} +1 -1
- package/dist/viewer/{dist-Bk5XPCBt.js → dist-CNry8POH.js} +1 -1
- package/dist/viewer/{dist-h__DIjgw.js → dist-CXJ-dwdV.js} +1 -1
- package/dist/viewer/{dist-D3jbkNxp.js → dist-Cfyg-ZFz.js} +1 -1
- package/dist/viewer/dist-CkWqj1vB.js +1 -0
- package/dist/viewer/{dist-J2ZdVVPe.js → dist-CrYVEXMn.js} +1 -1
- package/dist/viewer/{dist-B7uQYv5D.js → dist-D26TaXjP.js} +1 -1
- package/dist/viewer/{dist-CVLSwR1I.js → dist-D32zdSlG.js} +1 -1
- package/dist/viewer/{dist-Dps6vTN-.js → dist-DUysbnVD.js} +1 -1
- package/dist/viewer/{dist-CdLcI1iK.js → dist-DV8S7O88.js} +1 -1
- package/dist/viewer/{dist-C1y9SfQg.js → dist-DlFC92UU.js} +1 -1
- package/dist/viewer/{dist-ZG8pOFA0.js → dist-Dr8Mok4z.js} +1 -1
- package/dist/viewer/{dist-7mb2bGpU.js → dist-Dz80ecx_.js} +1 -1
- package/dist/viewer/{dist-ZiVOhU9h.js → dist-N6Hpo5Ed.js} +1 -1
- package/dist/viewer/{dist-uxyq6tMx.js → dist-gLcMD1Nm.js} +1 -1
- package/dist/viewer/{dist-lr1VXsEc.js → dist-opUfcW4x.js} +1 -1
- package/dist/viewer/{editor-B9cVjpUI.js → editor-rLQcZykK.js} +133 -133
- package/dist/viewer/{fit-BQe9RV4E.js → fit-C4QfFtXk.js} +1 -1
- package/dist/viewer/{icons-CCSPm9SD.js → icons-CDVhjQMS.js} +1 -1
- package/dist/viewer/{imperative-BeC0q_ho.js → imperative-CXmLprLo.js} +1 -1
- package/dist/viewer/index.html +11 -12
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index4.css +1 -1
- package/dist/viewer/index5.css +13 -0
- package/dist/viewer/{jump-history-B-4GHf3_.js → jump-history-Dyva9tQM.js} +1 -1
- package/dist/viewer/{local-DjzZ1b9A.js → local-B-SW6cqA.js} +1 -1
- package/dist/viewer/local-split-host-BGpkEBjP.js +1 -0
- package/dist/viewer/{plugin-_bGVeqI0--OtMqC7P.js → plugin-_bGVeqI0-C4RRMCGb.js} +2 -2
- package/dist/viewer/preview.html +3 -3
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-DDB2RpO4.js → printDocument-BhGNF0gC.js} +1 -1
- package/dist/viewer/{ref-DjRYiP25.js → ref-BrUHq8E2.js} +1 -1
- package/dist/viewer/{ref-problem-DkSEcIQm.js → ref-problem-Cvl83U9T.js} +1 -1
- package/dist/viewer/{route-BEA0O_Ry.js → route-i3jkzu-i.js} +2 -2
- package/dist/viewer/{route-messages-o8lg2hOP.js → route-messages-MxWI01S2.js} +1 -1
- package/dist/viewer/settings-BSB6g2PC.js +1 -0
- package/dist/viewer/snap-iBOqhRtA.js +1 -0
- package/dist/viewer/split-CxmPPvad.js +2 -0
- package/dist/viewer/{stable-DP74aChD.js → stable-CK-LXZNI.js} +1 -1
- package/dist/viewer/{styles-BtwjIslZ.js → styles-Dtxz8FDa.js} +1 -1
- package/dist/viewer/transport-ork1P0iQ.js +1 -0
- package/dist/viewer/url-Buh8E05T.js +29 -0
- package/dist/viewer/{useArtifactFeed-CYcXA6yE.js → useArtifactFeed-lKf4zuoV.js} +1 -1
- package/dist/viewer/useCommentPrimary-YlizG1nk.js +1 -0
- package/dist/viewer/useDrafts-WX84YtG1.js +1 -0
- package/dist/viewer/{useLayerZIndex-C1JpT09z.js → useLayerZIndex-C75Wfz8T.js} +1 -1
- package/dist/viewer/useRefBoard-0QUs4dWN.js +1 -0
- package/dist/viewer/{useStoryboardData-CbleqK_E.js → useStoryboardData-BYHJhILA.js} +1 -1
- package/dist/viewer/{view-Bw41z8XN.js → view-BOFvn2hm.js} +1 -1
- package/dist/viewer/view-drafts-DXKEb89H.js +1 -0
- package/dist/viewer/{viewport-CFJHn_Y6-DVNTdoOX.js → viewport-CFJHn_Y6-B_DJWWd0.js} +1 -1
- package/package.json +24 -24
- package/dist/viewer/ArtboardLayout-BNViVZgT.js +0 -14
- package/dist/viewer/ArtifactList-3kGz4_Vv.js +0 -2
- package/dist/viewer/DocumentLayout-B16AJ4m1.js +0 -2
- package/dist/viewer/DocumentPage-DGJI3MRN.css +0 -1
- package/dist/viewer/DocumentPage-dMWzmQVw.js +0 -5
- package/dist/viewer/DropdownMenu-Dza6-jeN.js +0 -1
- package/dist/viewer/MenuSubmenuTrigger-CLeiXsan.js +0 -1
- package/dist/viewer/PreviewArtifactLayout-NXoiF_BV.js +0 -1
- package/dist/viewer/PreviewLayout-BnV4cPB4.js +0 -2
- package/dist/viewer/ReportLayout-w7Tkbjp6.js +0 -6
- package/dist/viewer/SelectScrollUpArrow-BFRXZrFq.js +0 -1
- package/dist/viewer/SlidesLayout-B1mwiNJH.js +0 -12
- package/dist/viewer/StoryboardLayout-CWuqD7XK.js +0 -1
- package/dist/viewer/ThreadView-DTGR5uqU.js +0 -1
- package/dist/viewer/VerifyLayout-8IJyCQab.js +0 -1
- package/dist/viewer/WhiteboardEditor-DrHOvXez-Bd1MyHmC.js +0 -22
- package/dist/viewer/WhiteboardLayout-D-gmpAvD.js +0 -4
- package/dist/viewer/agentLook-BPPrbQJ3.js +0 -1
- package/dist/viewer/auto-publish-DK402eHG.js +0 -1
- package/dist/viewer/channel-Cuvtl_mH.js +0 -4
- package/dist/viewer/comments-DUAz1Q9X.js +0 -1
- package/dist/viewer/dist-D9hP37Je.js +0 -1
- package/dist/viewer/local-split-host-CeKHc_JX.js +0 -1
- package/dist/viewer/settings-BQ3tJuXQ.js +0 -1
- package/dist/viewer/snap-Dh3ZoMla.js +0 -1
- package/dist/viewer/split-BZPaH4G4.js +0 -2
- package/dist/viewer/transport-7BF3TWU4.js +0 -1
- package/dist/viewer/url-BaZreTXB.js +0 -29
- package/dist/viewer/useArtifactSocket-CZwBSmOD.js +0 -1
- package/dist/viewer/useRefBoard-Cj5dzC4F.js +0 -1
|
@@ -23,6 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
let node_fs = require("node:fs");
|
|
24
24
|
let node_os = require("node:os");
|
|
25
25
|
let node_path = require("node:path");
|
|
26
|
+
let node_util = require("node:util");
|
|
26
27
|
node_fs = __toESM(node_fs, 1);
|
|
27
28
|
node_os = __toESM(node_os, 1);
|
|
28
29
|
node_path = __toESM(node_path, 1);
|
|
@@ -334,6 +335,26 @@ function result(data, completion = { kind: "succeeded" }, extra = {}) {
|
|
|
334
335
|
...extra
|
|
335
336
|
};
|
|
336
337
|
}
|
|
338
|
+
// src/core/cli/output/text.ts
|
|
339
|
+
const graphemes = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
340
|
+
const cleanText = (text) => (0, node_util.stripVTControlCharacters)(text).replaceAll(/[\p{Cc}]/gu, (char) => char === "\n" || char === " " ? char : " ");
|
|
341
|
+
const inlineText = (text) => cleanText(text).replaceAll(/[\n\t]/g, " ");
|
|
342
|
+
/** Terminal columns, rather than UTF-16 code units (including joined emoji). */
|
|
343
|
+
function displayWidth(text) {
|
|
344
|
+
let width = 0;
|
|
345
|
+
for (const { segment } of graphemes.segment(inlineText(text))) {
|
|
346
|
+
if (/^[\p{Mark}\p{Cf}]+$/u.test(segment)) continue;
|
|
347
|
+
if (/[\p{Emoji_Presentation}\uFE0F\u20E3]/u.test(segment)) {
|
|
348
|
+
width += 2;
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
const cp = segment.codePointAt(0);
|
|
352
|
+
width += cp >= 4352 && (cp <= 4447 || cp === 9001 || cp === 9002 || cp >= 11904 && cp <= 42191 && cp !== 12351 || cp >= 44032 && cp <= 55203 || cp >= 63744 && cp <= 64255 || cp >= 65040 && cp <= 65049 || cp >= 65072 && cp <= 65135 || cp >= 65281 && cp <= 65376 || cp >= 65504 && cp <= 65510 || cp >= 131072 && cp <= 262141) ? 2 : 1;
|
|
353
|
+
}
|
|
354
|
+
return width;
|
|
355
|
+
}
|
|
356
|
+
const outputWidth = () => Math.max(20, Math.min(process.stdout.columns || 80, 120));
|
|
357
|
+
const padColumns = (text, width) => text + " ".repeat(Math.max(0, width - displayWidth(text)));
|
|
337
358
|
// src/core/cli/output/time.ts
|
|
338
359
|
const ISO = /^\d{4}-\d\d-\d\dT\d\d:\d\d(?::\d\d(?:\.\d+)?)?(?:Z|[+-]\d\d:?\d\d)$/;
|
|
339
360
|
const two = (n) => String(n).padStart(2, "0");
|
|
@@ -357,7 +378,7 @@ function recoveryActions(error, subject) {
|
|
|
357
378
|
}] : []);
|
|
358
379
|
}
|
|
359
380
|
// src/core/cli/output/render.ts
|
|
360
|
-
const clean =
|
|
381
|
+
const clean = inlineText;
|
|
361
382
|
function flatten(value, nested = false) {
|
|
362
383
|
if (value === null || value === void 0) return "";
|
|
363
384
|
if (Array.isArray(value)) return value.map((item) => flatten(item, true)).join(", ");
|
|
@@ -374,17 +395,30 @@ const scalar = (value, path, loose) => {
|
|
|
374
395
|
}
|
|
375
396
|
return flatten(value);
|
|
376
397
|
};
|
|
377
|
-
const absent = (value, fallback) => value === void 0 || value === null || value === "" || value === false || fallback !== void 0 && value === fallback;
|
|
398
|
+
const absent = (value, fallback, meaningfulFalse = false) => value === void 0 || value === null || value === "" || value === false && !meaningfulFalse || fallback !== void 0 && value === fallback;
|
|
378
399
|
const EXIT_WORDS = {
|
|
379
|
-
1: "
|
|
380
|
-
2: "
|
|
381
|
-
3: "
|
|
382
|
-
4: "
|
|
383
|
-
5: "
|
|
384
|
-
130: "
|
|
385
|
-
143: "
|
|
400
|
+
1: "failed",
|
|
401
|
+
2: "needs action",
|
|
402
|
+
3: "issues",
|
|
403
|
+
4: "incomplete",
|
|
404
|
+
5: "partial",
|
|
405
|
+
130: "interrupted",
|
|
406
|
+
143: "interrupted"
|
|
407
|
+
};
|
|
408
|
+
const statusWord = (status, code) => {
|
|
409
|
+
const word = clean(status).replaceAll("_", " ").toLowerCase();
|
|
410
|
+
if (code && (!word || [
|
|
411
|
+
"published",
|
|
412
|
+
"complete",
|
|
413
|
+
"clean",
|
|
414
|
+
"ok",
|
|
415
|
+
"ready",
|
|
416
|
+
"saved",
|
|
417
|
+
"installed",
|
|
418
|
+
"done"
|
|
419
|
+
].includes(word))) return EXIT_WORDS[code] ?? "failed";
|
|
420
|
+
return word;
|
|
386
421
|
};
|
|
387
|
-
const statusWord = (status, code) => code ? EXIT_WORDS[code] ?? "FAILED" : clean(status).replaceAll("_", " ").toUpperCase();
|
|
388
422
|
const commandName = (id) => {
|
|
389
423
|
const words = id.replaceAll(/[._]/g, " ").trim();
|
|
390
424
|
return words ? words[0].toUpperCase() + words.slice(1) : "Command";
|
|
@@ -393,7 +427,7 @@ function pageText(page) {
|
|
|
393
427
|
const offset = page.offset ?? 0;
|
|
394
428
|
if (!page.hasMore && offset === 0) return null;
|
|
395
429
|
const of = page.total === null ? "" : ` of ${page.total}`;
|
|
396
|
-
const cursor =
|
|
430
|
+
const cursor = "";
|
|
397
431
|
if (page.offset === void 0) return `${page.returned}${of} shown${page.total === null && page.hasMore ? " · more available" : ""}${cursor}`;
|
|
398
432
|
return `${page.returned ? `${offset + 1}–${offset + page.returned}` : "none"}${of}${cursor}`;
|
|
399
433
|
}
|
|
@@ -401,45 +435,81 @@ const quote = (value) => /^[\w./:@=+-]+$/.test(value) ? value : `'${value.replac
|
|
|
401
435
|
function actionText(action) {
|
|
402
436
|
return action.kind === "command" ? action.argv.map(quote).join(" ") : action.url;
|
|
403
437
|
}
|
|
404
|
-
const
|
|
438
|
+
const effectIdentity = (effect, index) => JSON.stringify([index, effect]);
|
|
405
439
|
const lastSegment = (path) => path.split(".").filter(Boolean).at(-1) ?? path;
|
|
406
|
-
function renderText(view, wire, options, collection, requiredFields = [], code = 0) {
|
|
407
|
-
const
|
|
408
|
-
|
|
440
|
+
function renderText(view, wire, options, collection, requiredFields = [], code = 0, covered = /* @__PURE__ */ new Set()) {
|
|
441
|
+
const lines = [[
|
|
442
|
+
clean(view.heading),
|
|
409
443
|
view.subject && clean(view.subject),
|
|
410
|
-
view.
|
|
411
|
-
|
|
412
|
-
|
|
444
|
+
statusWord(view.status, code),
|
|
445
|
+
view.compact && view.summary && clean(view.summary)
|
|
446
|
+
].filter(Boolean).join(" · ")];
|
|
447
|
+
if (!view.compact && view.summary) lines.push(clean(view.summary));
|
|
448
|
+
const links = /* @__PURE__ */ new Set();
|
|
449
|
+
const printedPages = /* @__PURE__ */ new Set();
|
|
450
|
+
const metadataKeys = /* @__PURE__ */ new Set([
|
|
451
|
+
"snapshot",
|
|
452
|
+
"receipt",
|
|
453
|
+
"delivery",
|
|
454
|
+
"cursor"
|
|
455
|
+
]);
|
|
456
|
+
const append = (text, indent = 0, continuation = indent) => {
|
|
457
|
+
cleanText(text).split("\n").forEach((part, i) => lines.push(" ".repeat(i ? continuation : indent) + part));
|
|
458
|
+
};
|
|
459
|
+
const trackLink = (input) => {
|
|
460
|
+
if (typeof input === "string" && /^https?:\/\/\S+$/.test(input)) links.add(input);
|
|
461
|
+
};
|
|
462
|
+
const cover = (claims, printed = /* @__PURE__ */ new Set()) => {
|
|
463
|
+
for (const claim of claims ?? []) {
|
|
464
|
+
const effect = wire.effects?.[claim.index];
|
|
465
|
+
if (effect && (!claim.fields || claim.fields.every((key) => printed.has(key)))) covered.add(effectIdentity(effect, claim.index));
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
cover(view.effects);
|
|
413
469
|
const omissions = [...wire.omitted ?? []];
|
|
414
470
|
const selected = (key, required = false) => required || requiredFields.includes(key) || !options.fields || options.fields.includes(key);
|
|
415
|
-
const value = (input, path, loose = false) =>
|
|
416
|
-
const cell = (label, key, input, path, positional, fallback, loose = false) => {
|
|
417
|
-
if (absent(input, fallback)) return null;
|
|
471
|
+
const value = (input, path, loose = false) => cleanText(scalar(input, path, loose));
|
|
472
|
+
const cell = (label, key, input, path, positional, fallback, loose = false, meaningfulFalse = false) => {
|
|
473
|
+
if (absent(input, fallback, meaningfulFalse)) return null;
|
|
418
474
|
const name = clean(label ?? key);
|
|
419
475
|
if (input === true) return name;
|
|
420
|
-
const text = value(input, path, loose);
|
|
421
|
-
return positional ? text : `${name} ${text}`;
|
|
476
|
+
const text = input === false ? "no" : value(input, path, loose);
|
|
477
|
+
return positional ? text : `${name}: ${text}`;
|
|
422
478
|
};
|
|
423
479
|
const facts = (items, loose = false) => {
|
|
424
480
|
for (const item of items) {
|
|
425
|
-
if (!collection && !selected(item.binding.key, item.required)) continue;
|
|
426
|
-
if (
|
|
427
|
-
|
|
428
|
-
|
|
481
|
+
if (!collection && !selected(item.binding.key, item.required) && !metadataKeys.has(item.binding.key)) continue;
|
|
482
|
+
if (["project", "artifact"].includes(item.binding.key) && item.binding.value === view.subject) continue;
|
|
483
|
+
if (absent(item.binding.value, void 0, item.required || item.showFalse || options.fields?.includes(item.binding.key))) continue;
|
|
484
|
+
const text = item.binding.value === true ? "yes" : item.binding.value === false ? "no" : value(item.binding.value, `data.${item.binding.key}`, loose);
|
|
485
|
+
append(`${clean(item.label)}: ${text}`, 0, 2);
|
|
486
|
+
trackLink(item.binding.value);
|
|
429
487
|
}
|
|
430
488
|
};
|
|
431
489
|
const metadata = (items, path) => items.map((item) => cell(item.label, item.binding.key, item.binding.value, `${path}.${item.binding.key}`, item.positional)).filter((text) => text !== null).join(" · ");
|
|
432
490
|
const title = (text, summary) => {
|
|
433
|
-
if (text)
|
|
491
|
+
if (text) {
|
|
492
|
+
if (lines.at(-1) !== "") lines.push("");
|
|
493
|
+
lines.push(summary ? `${clean(text)} · ${clean(summary)}` : clean(text));
|
|
494
|
+
}
|
|
434
495
|
};
|
|
435
|
-
const pageLine = (page) => {
|
|
436
|
-
|
|
496
|
+
const pageLine = (page, scope, supplied = []) => {
|
|
497
|
+
if (!page) return;
|
|
498
|
+
const key = JSON.stringify([scope, page]);
|
|
499
|
+
if (printedPages.has(key)) return;
|
|
500
|
+
printedPages.add(key);
|
|
501
|
+
if (page.snapshot && !supplied.some((item) => item.binding.key === "snapshot" && item.binding.value === page.snapshot)) lines.push(`Snapshot: ${clean(page.snapshot)}`);
|
|
502
|
+
const text = pageText(page);
|
|
437
503
|
if (text) lines.push(text);
|
|
504
|
+
if (page.hasMore && page.nextCursor) lines.push(`Cursor: ${clean(page.nextCursor)}`);
|
|
438
505
|
};
|
|
439
506
|
facts(view.facts);
|
|
507
|
+
const sectionVisible = (section) => section.kind === "fields" || !!collection || selected(section.key) || section.kind === "records" && !!options.fields?.some((key) => section.columns.some((column) => column.key === key));
|
|
440
508
|
const errorActions = wire.error ? recoveryActions(wire.error) : [];
|
|
441
509
|
if (wire.error) {
|
|
442
|
-
|
|
510
|
+
const summary = view.errorSummary;
|
|
511
|
+
const message = summary && view.sections.some((section) => section.kind !== "fields" && section.key === summary.section && sectionVisible(section)) ? summary.text : wire.error.message;
|
|
512
|
+
append(`${clean(wire.error.code)}: ${message}`, 0, 2);
|
|
443
513
|
if (wire.error.httpStatus !== void 0 && wire.error.httpStatus >= 500) lines.push(`HTTP: ${wire.error.httpStatus}`);
|
|
444
514
|
const details = wire.error.details;
|
|
445
515
|
if (details && typeof details === "object" && !Array.isArray(details)) {
|
|
@@ -476,59 +546,103 @@ function renderText(view, wire, options, collection, requiredFields = [], code =
|
|
|
476
546
|
facts(section.facts);
|
|
477
547
|
continue;
|
|
478
548
|
}
|
|
479
|
-
|
|
549
|
+
const fieldRecord = section.kind === "records" && options.fields?.some((key) => section.columns.some((column) => column.key === key));
|
|
550
|
+
if (!sectionVisible(section)) continue;
|
|
480
551
|
const named = "title" in section && section.title ? section.title : void 0;
|
|
481
552
|
if (section.kind === "records") {
|
|
482
|
-
title(named ?? (section.page ? section.key : void 0), section.summary);
|
|
553
|
+
title(named ?? (section.page ? section.key : void 0), section.summary === view.summary ? void 0 : section.summary);
|
|
554
|
+
facts(section.metadata ?? []);
|
|
483
555
|
const declared = new Set(section.columns.map((column) => column.key));
|
|
484
556
|
const extra = section.key === collection ? [.../* @__PURE__ */ new Set([...options.fields ?? [], ...options.fields ? requiredFields : []])].filter((key) => !declared.has(key)).map((key) => ({
|
|
485
557
|
key,
|
|
486
558
|
label: key
|
|
487
559
|
})) : [];
|
|
488
560
|
const loose = new Set(extra.map((column) => column.key));
|
|
489
|
-
const columns = [...section.columns, ...extra].filter((column) => section.key !== collection || selected(column.key, column.required));
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
561
|
+
const columns = [...section.columns, ...extra].filter((column) => !fieldRecord && section.key !== collection || selected(column.key, column.required));
|
|
562
|
+
const cells = section.rows.map((row, i) => columns.map((column) => absent(row[column.key], column.default, column.required || column.showFalse || options.fields?.includes(column.key)) ? "" : row[column.key] === false ? "no" : value(row[column.key], `data.${section.key}.${i}.${column.key}`, loose.has(column.key))));
|
|
563
|
+
const labels = columns.map((column) => column.label ?? column.key);
|
|
564
|
+
const widths = labels.map((label, i) => Math.max(displayWidth(label), ...cells.map((row) => displayWidth(row[i] ?? ""))));
|
|
565
|
+
const tableFits = widths.reduce((sum, width) => sum + width, 0) + Math.max(0, columns.length - 1) * 2 <= outputWidth() && cells.every((row) => row.every((text) => !text.includes("\n") && !text.includes(" ")));
|
|
566
|
+
if (options.format === "table" && tableFits && section.rows.length) lines.push(...[labels, ...cells].map((row) => row.map((text, i) => padColumns(text, widths[i])).join(" ").trimEnd()));
|
|
567
|
+
else for (const [i, row] of section.rows.entries()) {
|
|
568
|
+
const primary = [];
|
|
569
|
+
const details = [];
|
|
570
|
+
for (const column of columns) {
|
|
571
|
+
const text = cell(column.label, column.key, row[column.key], `data.${section.key}.${i}.${column.key}`, column.positional, column.default, loose.has(column.key), column.required || column.showFalse || options.fields?.includes(column.key));
|
|
572
|
+
if (text === null) continue;
|
|
573
|
+
trackLink(row[column.key]);
|
|
574
|
+
if (column.detail || text.includes("\n") || primary.length && displayWidth(primary.join(" · ") + " · " + text) > outputWidth() - 2) details.push(text);
|
|
575
|
+
else primary.push(text);
|
|
576
|
+
}
|
|
577
|
+
if (primary.length) append(primary.join(" · "), 2);
|
|
578
|
+
for (const detail of details) append(detail, primary.length ? 4 : 2, primary.length ? 6 : 4);
|
|
579
|
+
}
|
|
580
|
+
section.rows.forEach((row, index) => {
|
|
581
|
+
const printed = new Set(columns.filter((column) => !absent(row[column.key], column.default, column.required || column.showFalse || options.fields?.includes(column.key))).map((column) => column.key));
|
|
582
|
+
if (printed.size) cover(section.effects?.(row, index), printed);
|
|
583
|
+
});
|
|
584
|
+
pageLine(section.page, section.key, section.metadata);
|
|
498
585
|
} else if (section.kind === "messages") {
|
|
499
|
-
title(named, section.summary);
|
|
586
|
+
title(named, section.summary === view.summary ? void 0 : section.summary);
|
|
587
|
+
facts(section.metadata ?? []);
|
|
500
588
|
for (const [g, group] of section.groups.entries()) {
|
|
501
|
-
lines.push(` ${metadata(group.facts, `data.${section.key}.${g}`)}`);
|
|
589
|
+
lines.push(` ${metadata(group.facts.filter((item) => !item.detail), `data.${section.key}.${g}`)}`);
|
|
590
|
+
for (const item of group.facts.filter((item) => item.detail)) {
|
|
591
|
+
const text = cell(item.label, item.binding.key, item.binding.value, `data.${section.key}.${g}`, item.positional);
|
|
592
|
+
if (text) append(text, 4, 6);
|
|
593
|
+
}
|
|
502
594
|
for (const [m, message] of group.messages.entries()) {
|
|
503
595
|
lines.push(` ${metadata(message.facts, `data.${section.key}.${g}.messages.${m}`)}`);
|
|
504
|
-
lines.push(...message.text.split("\n").map((line) => ` ${line
|
|
596
|
+
lines.push(...message.text.split("\n").map((line) => ` ${cleanText(line)}`));
|
|
505
597
|
}
|
|
506
598
|
}
|
|
507
|
-
|
|
508
|
-
pageLine(section.page);
|
|
599
|
+
pageLine(section.page, section.key, section.metadata);
|
|
509
600
|
} else if (section.kind === "diagnostics") {
|
|
510
601
|
const limit = options.detail ? section.items.length : section.preview ?? 3;
|
|
511
|
-
for (const item of section.items.slice(0, limit)) lines.push(` ${item.location ? `${clean(item.location)} ` : ""}${clean(item.code)}: ${value(item.message, `data.${section.key}`)}`);
|
|
602
|
+
for (const item of section.items.slice(0, limit)) lines.push(` ${item.location ? `${clean(item.location)} ` : ""}${item.severity === "error" ? "Error " : ""}${clean(item.code)}: ${value(item.message, `data.${section.key}`)}`);
|
|
512
603
|
if (limit < section.items.length) omissions.push({
|
|
513
604
|
path: `data.${section.key}`,
|
|
514
605
|
reason: "preview",
|
|
515
606
|
count: section.items.length - limit
|
|
516
607
|
});
|
|
517
608
|
} else {
|
|
518
|
-
title(named
|
|
519
|
-
lines.push(...section.text.trimEnd().split("\n").map((line) => ` ${line
|
|
609
|
+
title(named, section.summary === view.summary ? void 0 : section.summary);
|
|
610
|
+
lines.push(...section.text.trimEnd().split("\n").map((line) => ` ${cleanText(line)}`));
|
|
520
611
|
}
|
|
521
612
|
}
|
|
522
|
-
if (wire.page) pageLine(wire.page);
|
|
523
|
-
|
|
524
|
-
|
|
613
|
+
if (wire.page) pageLine(wire.page, collection ?? "root", view.facts);
|
|
614
|
+
const effectGroups = /* @__PURE__ */ new Map();
|
|
615
|
+
(wire.effects ?? []).forEach((effect, index) => {
|
|
616
|
+
if (effect.state === "none" || covered.has(effectIdentity(effect, index)) || !code && effect.state === "confirmed") return;
|
|
617
|
+
const name = effect.state === "unknown" ? "Unconfirmed" : effect.state === "failed" ? "Failed operations" : effect.state === "not_attempted" ? "Not attempted" : code === 130 || code === 143 ? "Completed before interruption" : code === 1 || code === 5 ? "Completed before failure" : "Completed operations";
|
|
618
|
+
effectGroups.set(name, [...effectGroups.get(name) ?? [], {
|
|
619
|
+
effect,
|
|
620
|
+
index
|
|
621
|
+
}]);
|
|
622
|
+
});
|
|
623
|
+
for (const [name, items] of effectGroups) {
|
|
624
|
+
title(name, void 0);
|
|
625
|
+
for (const { effect, index } of items) {
|
|
626
|
+
append(`${clean(effect.operation)} ${clean(effect.target)}`, 2);
|
|
627
|
+
if (effect.details !== void 0) {
|
|
628
|
+
const detail = effect.details;
|
|
629
|
+
append(detail?.message ? `${detail.code ? `${clean(detail.code)}: ` : ""}${detail.message}` : flatten(effect.details), 4, 6);
|
|
630
|
+
}
|
|
631
|
+
covered.add(effectIdentity(effect, index));
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
for (const warning of wire.warnings ?? []) append(`${warning.severity === "error" ? "Error" : "Warning"}: ${warning.message}`);
|
|
525
635
|
const given = view.actions ?? wire.next ?? [];
|
|
526
636
|
const actions = [...given, ...errorActions.filter((action) => !given.some((other) => actionText(other) === actionText(action)))];
|
|
527
637
|
for (const omission of omissions) if (omission.count !== void 0) lines.push(`${omission.count} more ${lastSegment(omission.path)}`);
|
|
528
|
-
|
|
638
|
+
else if (omission.reason !== "fields") lines.push(`Preview: ${lastSegment(omission.path)}`);
|
|
639
|
+
for (const action of actions) if (action.kind === "url" && !links.has(action.url)) {
|
|
640
|
+
lines.push(`${clean(action.label ?? "Link")}: ${clean(action.url)}`);
|
|
641
|
+
links.add(action.url);
|
|
642
|
+
}
|
|
529
643
|
return `${lines.join("\n")}\n`;
|
|
530
644
|
}
|
|
531
|
-
function renderFailure(wire, options, code = 1) {
|
|
645
|
+
function renderFailure(wire, options, code = 1, covered = /* @__PURE__ */ new Set()) {
|
|
532
646
|
return renderText({
|
|
533
647
|
heading: commandName(wire.command),
|
|
534
648
|
status: "",
|
|
@@ -537,7 +651,7 @@ function renderFailure(wire, options, code = 1) {
|
|
|
537
651
|
}, wire, {
|
|
538
652
|
...options,
|
|
539
653
|
fields: void 0
|
|
540
|
-
}, void 0, [], code);
|
|
654
|
+
}, void 0, [], code, covered);
|
|
541
655
|
}
|
|
542
656
|
// src/core/cli/output/bootstrap/index.ts
|
|
543
657
|
function resolveSelection(argv) {
|
|
@@ -170,7 +170,7 @@ async function f(e) {
|
|
|
170
170
|
height: C
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
// ../../node_modules/.pnpm/@haklex+rich-ext-chart@0.
|
|
173
|
+
// ../../node_modules/.pnpm/@haklex+rich-ext-chart@0.68.0_3b47ffa0471124489e2088ac056cd1a9/node_modules/@haklex/rich-ext-chart/dist/rich-ext-chart.css?inline
|
|
174
174
|
var p = ":root{--rc-chart-1:#2a78d6;--rc-chart-2:#eb6834;--rc-chart-3:#1baf7a;--rc-chart-4:#eda100;--rc-chart-5:#e87ba4;--rc-chart-6:#008300;--rc-chart-muted:#d4d4d4;--rc-chart-grid:#f0f0f0;--rc-chart-axis:#d4d4d4;--rc-chart-reference:#a3a3a3;--rc-chart-crosshair:#a3a3a3;--rc-chart-area-opacity:.16;--rc-chart-hover-wash:#0000000a}:root.dark,[data-theme=dark],.dark{--rc-chart-1:#3987e5;--rc-chart-2:#d95926;--rc-chart-3:#199e70;--rc-chart-4:#c98500;--rc-chart-5:#d55181;--rc-chart-6:#008300;--rc-chart-muted:#3a3a3a;--rc-chart-grid:#1c1c1c;--rc-chart-axis:#404040;--rc-chart-reference:#737373;--rc-chart-crosshair:#525252;--rc-chart-area-opacity:.2;--rc-chart-hover-wash:#ffffff0d}[data-theme=light]{--rc-chart-1:#2a78d6;--rc-chart-2:#eb6834;--rc-chart-3:#1baf7a;--rc-chart-4:#eda100;--rc-chart-5:#e87ba4;--rc-chart-6:#008300;--rc-chart-muted:#d4d4d4;--rc-chart-grid:#f0f0f0;--rc-chart-axis:#d4d4d4;--rc-chart-reference:#a3a3a3;--rc-chart-crosshair:#a3a3a3;--rc-chart-area-opacity:.16;--rc-chart-hover-wash:#0000000a}:root{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#f5f5f5);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-max-width:700px;--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-space-xs:4px;--rc-space-sm:8px;--rc-space-md:16px;--rc-space-lg:24px;--rc-space-xl:32px;--rc-flow-paragraph:1.25em;--rc-flow-list:.375em;--rc-flow-block:2em;--rc-flow-heading:2em;--rc-font-family-sans:var(--rc-host-font-family-sans,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-font-family-serif:var(--rc-host-font-family-serif,\"Noto Serif CJK SC\", \"Source Han Serif SC\", \"Source Han Serif\", \"source-han-serif-sc\", \"Songti SC\", STSong, \"华文宋体\", serif);--rc-font-family-kai:var(--rc-host-font-family-kai,\"楷体\", KaiTi, STKaiti, \"Kaiti SC\", \"LXGW WenKai\", \"霞鹜文楷\", \"Noto Serif CJK SC\", serif);--rc-font-mono:var(--rc-host-font-mono,\"SF Mono\", SFMono-Regular, ui-monospace, \"DejaVu Sans Mono\", Menlo, Consolas, \"PingFang SC\", \"Noto Sans SC\", monospace);--rc-font-size-2xs:.625em;--rc-font-size-xs:.75em;--rc-font-size-sm:.8125em;--rc-font-size-md:.875em;--rc-font-size-lg:1.25em;--rc-font-size-base:16px;--rc-font-size-small:14px;--rc-font-size-code:.8125em;--rc-font-size-caption:.8125em;--rc-line-height:1.75;--rc-line-height-tight:1.35;--rc-line-height-compact:1.6;--rc-line-height-code:1.7;--rc-font-family:var(--rc-host-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-radius-sm:4px;--rc-radius-md:8px;--rc-radius-lg:12px}:root.dark,[data-theme=dark]{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}._1uvgp5z0{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#f5f5f5);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-max-width:700px;--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-space-xs:4px;--rc-space-sm:8px;--rc-space-md:16px;--rc-space-lg:24px;--rc-space-xl:32px;--rc-flow-paragraph:1.25em;--rc-flow-list:.375em;--rc-flow-block:2em;--rc-flow-heading:2em;--rc-font-family-sans:var(--rc-host-font-family-sans,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-font-family-serif:var(--rc-host-font-family-serif,\"Noto Serif CJK SC\", \"Source Han Serif SC\", \"Source Han Serif\", \"source-han-serif-sc\", \"Songti SC\", STSong, \"华文宋体\", serif);--rc-font-family-kai:var(--rc-host-font-family-kai,\"楷体\", KaiTi, STKaiti, \"Kaiti SC\", \"LXGW WenKai\", \"霞鹜文楷\", \"Noto Serif CJK SC\", serif);--rc-font-mono:var(--rc-host-font-mono,\"SF Mono\", SFMono-Regular, ui-monospace, \"DejaVu Sans Mono\", Menlo, Consolas, \"PingFang SC\", \"Noto Sans SC\", monospace);--rc-font-size-2xs:.625em;--rc-font-size-xs:.75em;--rc-font-size-sm:.8125em;--rc-font-size-md:.875em;--rc-font-size-lg:1.25em;--rc-font-size-base:16px;--rc-font-size-small:14px;--rc-font-size-code:.8125em;--rc-font-size-caption:.8125em;--rc-line-height:1.75;--rc-line-height-tight:1.35;--rc-line-height-compact:1.6;--rc-line-height-code:1.7;--rc-font-family:var(--rc-host-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-radius-sm:4px;--rc-radius-md:8px;--rc-radius-lg:12px}._1uvgp5z1{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#f5f5f5);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-max-width:700px;--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-space-xs:4px;--rc-space-sm:8px;--rc-space-md:16px;--rc-space-lg:24px;--rc-space-xl:32px;--rc-flow-paragraph:.5em;--rc-flow-list:.375em;--rc-flow-block:2em;--rc-flow-heading:2em;--rc-font-family-sans:var(--rc-host-font-family-sans,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-font-family-serif:var(--rc-host-font-family-serif,\"Noto Serif CJK SC\", \"Source Han Serif SC\", \"Source Han Serif\", \"source-han-serif-sc\", \"Songti SC\", STSong, \"华文宋体\", serif);--rc-font-family-kai:var(--rc-host-font-family-kai,\"楷体\", KaiTi, STKaiti, \"Kaiti SC\", \"LXGW WenKai\", \"霞鹜文楷\", \"Noto Serif CJK SC\", serif);--rc-font-mono:var(--rc-host-font-mono,\"SF Mono\", SFMono-Regular, ui-monospace, \"DejaVu Sans Mono\", Menlo, Consolas, \"PingFang SC\", \"Noto Sans SC\", monospace);--rc-font-size-2xs:.625em;--rc-font-size-xs:.75em;--rc-font-size-sm:.8125em;--rc-font-size-md:.875em;--rc-font-size-lg:1.25em;--rc-font-size-base:16px;--rc-font-size-small:14px;--rc-font-size-code:.8125em;--rc-font-size-caption:.8125em;--rc-line-height:1.85;--rc-line-height-tight:1.35;--rc-line-height-compact:1.6;--rc-line-height-code:1.7;--rc-font-family:var(--rc-host-font-family,\"Noto Serif CJK SC\", \"Source Han Serif SC\", \"Source Han Serif\", \"source-han-serif-sc\", \"Songti SC\", STSong, \"华文宋体\", serif);--rc-radius-sm:4px;--rc-radius-md:8px;--rc-radius-lg:12px}._1uvgp5z2{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#fafafa);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-max-width:none;--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-space-xs:2px;--rc-space-sm:4px;--rc-space-md:10px;--rc-space-lg:16px;--rc-space-xl:20px;--rc-flow-paragraph:.6em;--rc-flow-list:.25em;--rc-flow-block:1em;--rc-flow-heading:1em;--rc-font-family-sans:var(--rc-host-font-family-sans,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-font-family-serif:var(--rc-host-font-family-serif,\"Noto Serif CJK SC\", \"Source Han Serif SC\", \"Source Han Serif\", \"source-han-serif-sc\", \"Songti SC\", STSong, \"华文宋体\", serif);--rc-font-family-kai:var(--rc-host-font-family-kai,\"楷体\", KaiTi, STKaiti, \"Kaiti SC\", \"LXGW WenKai\", \"霞鹜文楷\", \"Noto Serif CJK SC\", serif);--rc-font-mono:var(--rc-host-font-mono,\"SF Mono\", SFMono-Regular, ui-monospace, \"DejaVu Sans Mono\", Menlo, Consolas, \"PingFang SC\", \"Noto Sans SC\", monospace);--rc-font-size-2xs:.625em;--rc-font-size-xs:.75em;--rc-font-size-sm:.8125em;--rc-font-size-md:.875em;--rc-font-size-lg:1.25em;--rc-font-size-base:14px;--rc-font-size-small:12px;--rc-font-size-code:.9286em;--rc-font-size-caption:.9286em;--rc-line-height:1.6;--rc-line-height-tight:1.3;--rc-line-height-compact:1.6;--rc-line-height-code:1.7;--rc-font-family:var(--rc-host-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-radius-sm:3px;--rc-radius-md:6px;--rc-radius-lg:12px}._1uvgp5z3{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#fafafa);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-max-width:none;--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-space-xs:4px;--rc-space-sm:8px;--rc-space-md:16px;--rc-space-lg:24px;--rc-space-xl:32px;--rc-flow-paragraph:.75em;--rc-flow-list:.25em;--rc-flow-block:1em;--rc-flow-heading:1em;--rc-font-family-sans:var(--rc-host-font-family-sans,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-font-family-serif:var(--rc-host-font-family-serif,\"Noto Serif CJK SC\", \"Source Han Serif SC\", \"Source Han Serif\", \"source-han-serif-sc\", \"Songti SC\", STSong, \"华文宋体\", serif);--rc-font-family-kai:var(--rc-host-font-family-kai,\"楷体\", KaiTi, STKaiti, \"Kaiti SC\", \"LXGW WenKai\", \"霞鹜文楷\", \"Noto Serif CJK SC\", serif);--rc-font-mono:var(--rc-host-font-mono,\"SF Mono\", SFMono-Regular, ui-monospace, \"DejaVu Sans Mono\", Menlo, Consolas, \"PingFang SC\", \"Noto Sans SC\", monospace);--rc-font-size-2xs:.625em;--rc-font-size-xs:.75em;--rc-font-size-sm:.8125em;--rc-font-size-md:.875em;--rc-font-size-lg:1.25em;--rc-font-size-base:15px;--rc-font-size-small:13px;--rc-font-size-code:.8667em;--rc-font-size-caption:.8667em;--rc-line-height:1.65;--rc-line-height-tight:1.3;--rc-line-height-compact:1.6;--rc-line-height-code:1.7;--rc-font-family:var(--rc-host-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", Roboto, Helvetica, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\");--rc-radius-sm:4px;--rc-radius-md:8px;--rc-radius-lg:12px}.dark ._1uvgp5z0,[data-theme=dark] ._1uvgp5z0,.dark._1uvgp5z0,[data-theme=dark]._1uvgp5z0,.dark ._1uvgp5z1,[data-theme=dark] ._1uvgp5z1,.dark._1uvgp5z1,[data-theme=dark]._1uvgp5z1,.dark ._1uvgp5z2,[data-theme=dark] ._1uvgp5z2,.dark._1uvgp5z2,[data-theme=dark]._1uvgp5z2,.dark ._1uvgp5z3,[data-theme=dark] ._1uvgp5z3,.dark._1uvgp5z3,[data-theme=dark]._1uvgp5z3{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=dark] [data-theme=light] ._1uvgp5z0{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#f5f5f5);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=light] [data-theme=dark] ._1uvgp5z0{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=light][data-theme]._1uvgp5z0{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#f5f5f5);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=dark][data-theme]._1uvgp5z0{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=dark] [data-theme=light] ._1uvgp5z1{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#f5f5f5);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=light] [data-theme=dark] ._1uvgp5z1{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=light][data-theme]._1uvgp5z1{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#f5f5f5);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=dark][data-theme]._1uvgp5z1{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=dark] [data-theme=light] ._1uvgp5z2{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#fafafa);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=light] [data-theme=dark] ._1uvgp5z2{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=light][data-theme]._1uvgp5z2{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#fafafa);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=dark][data-theme]._1uvgp5z2{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=dark] [data-theme=light] ._1uvgp5z3{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#fafafa);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=light] [data-theme=dark] ._1uvgp5z3{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}[data-theme=light][data-theme]._1uvgp5z3{--rc-text:var(--rc-host-text,#171717);--rc-text-secondary:var(--rc-host-text-secondary,#404040);--rc-text-tertiary:var(--rc-host-text-tertiary,#737373);--rc-text-quaternary:var(--rc-host-text-quaternary,#a3a3a3);--rc-bg:var(--rc-host-bg,#fff);--rc-bg-secondary:var(--rc-host-bg-secondary,#fafafa);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#f5f5f5);--rc-bg-elevated:var(--rc-host-bg-elevated,#fff);--rc-fill:var(--rc-host-fill,#00000012);--rc-fill-secondary:var(--rc-host-fill-secondary,#0000000b);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#00000008);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#00000005);--rc-border:var(--rc-host-border,#e5e5e5);--rc-border-subtle:var(--rc-host-border-subtle,#f0f0f0);--rc-ring:var(--rc-host-ring,#00000014);--rc-scrim:var(--rc-host-scrim,#00000052);--rc-accent:var(--rc-host-accent,#2563eb);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 10%, transparent));--rc-link:var(--rc-host-link,#2563eb);--rc-code-text:var(--rc-host-code-text,#171717);--rc-code-bg:var(--rc-host-code-bg,#f5f5f5);--rc-code-header-bg:var(--rc-host-code-header-bg,#f5f5f5);--rc-hr-border:var(--rc-host-hr-border,#e5e5e5);--rc-quote-border:var(--rc-host-quote-border,#e5e5e5);--rc-quote-bg:var(--rc-host-quote-bg,#fafafa);--rc-alert-info:var(--rc-host-alert-info,#2563eb);--rc-alert-warning:var(--rc-host-alert-warning,#b45309);--rc-alert-tip:var(--rc-host-alert-tip,#15803d);--rc-alert-caution:var(--rc-host-alert-caution,#dc2626);--rc-alert-important:var(--rc-host-alert-important,#7c3aed);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0000000d;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f;--rc-shadow-modal:0 0 0 1px #0000000f, 0 16px 48px -12px #00000040;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 4px 12px #0000000f, 0 12px 32px -8px #0000001f}[data-theme=dark][data-theme]._1uvgp5z3{--rc-text:var(--rc-host-text,#ededed);--rc-text-secondary:var(--rc-host-text-secondary,#c4c4c4);--rc-text-tertiary:var(--rc-host-text-tertiary,#8f8f8f);--rc-text-quaternary:var(--rc-host-text-quaternary,#5c5c5c);--rc-bg:var(--rc-host-bg,#0a0a0a);--rc-bg-secondary:var(--rc-host-bg-secondary,#121212);--rc-bg-tertiary:var(--rc-host-bg-tertiary,#1a1a1a);--rc-bg-elevated:var(--rc-host-bg-elevated,#171717);--rc-fill:var(--rc-host-fill,#ffffff17);--rc-fill-secondary:var(--rc-host-fill-secondary,#ffffff0f);--rc-fill-tertiary:var(--rc-host-fill-tertiary,#ffffff0a);--rc-fill-quaternary:var(--rc-host-fill-quaternary,#ffffff06);--rc-border:var(--rc-host-border,#262626);--rc-border-subtle:var(--rc-host-border-subtle,#1c1c1c);--rc-ring:var(--rc-host-ring,#ffffff1f);--rc-scrim:var(--rc-host-scrim,#0000008f);--rc-accent:var(--rc-host-accent,#60a5fa);--rc-accent-light:var(--rc-host-accent-light,color-mix(in oklab, var(--rc-accent) 16%, transparent));--rc-link:var(--rc-host-link,#60a5fa);--rc-code-text:var(--rc-host-code-text,#ededed);--rc-code-bg:var(--rc-host-code-bg,#1a1a1a);--rc-code-header-bg:var(--rc-host-code-header-bg,#1a1a1a);--rc-hr-border:var(--rc-host-hr-border,#262626);--rc-quote-border:var(--rc-host-quote-border,#262626);--rc-quote-bg:var(--rc-host-quote-bg,#1a1a1a);--rc-alert-info:var(--rc-host-alert-info,#60a5fa);--rc-alert-warning:var(--rc-host-alert-warning,#fbbf24);--rc-alert-tip:var(--rc-host-alert-tip,#4ade80);--rc-alert-caution:var(--rc-host-alert-caution,#f87171);--rc-alert-important:var(--rc-host-alert-important,#a78bfa);--rc-shadow-xs:0 0 0 1px var(--rc-ring), 0 1px 2px #0006;--rc-shadow-top-bar:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009;--rc-shadow-modal:0 0 0 1px #ffffff14, 0 16px 48px -12px #000000b3;--rc-shadow-menu:0 0 0 1px var(--rc-ring), 0 8px 24px #00000080, 0 16px 40px -8px #0009}.appgph0{color:var(--rc-text);margin:1.5em 0;font-size:14px;line-height:1.5;container-type:inline-size}.appgph1{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px;display:flex}.appgph2{color:var(--rc-text);font-size:15px;font-weight:600;line-height:1.4}.appgph3{color:var(--rc-text-tertiary);margin-top:2px;font-size:13px}.appgph4{height:26px;color:var(--rc-text-tertiary);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;align-items:center;gap:5px;padding:0 8px;font-size:12px;display:inline-flex}.appgph4:hover,.appgph4[aria-pressed=true]{background:var(--rc-fill-secondary);color:var(--rc-text)}.appgph4:focus-visible{outline:2px solid var(--rc-accent);outline-offset:1px}.appgph5{color:var(--rc-text-secondary);flex-wrap:wrap;gap:4px 14px;margin:-2px 0 8px;font-size:12px;display:flex}.appgph6{align-items:center;gap:6px;display:inline-flex}.appgph7{border-radius:2px;width:10px;height:10px}.appgph8{border-radius:1px;width:12px;height:2px}.appgpha{display:none}.appgphb{position:relative}.appgphc{font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;width:100%;height:auto;font-family:inherit;display:block;overflow:visible}.appgphd{fill:var(--rc-text-tertiary);font-size:11px}.appgphe{fill:var(--rc-text-tertiary);font-size:12px}.appgphf{fill:var(--rc-text-tertiary);font-size:11px}.appgphg{fill:var(--rc-text);font-size:11px;font-weight:600}.appgphh{font-size:12px}.appgphi{stroke:var(--rc-chart-grid);stroke-width:1px;shape-rendering:crispedges}.appgphj{stroke:var(--rc-chart-axis);stroke-width:1px;shape-rendering:crispedges}.appgphk{z-index:2;pointer-events:none;background:var(--rc-bg);min-width:132px;box-shadow:var(--rc-shadow-menu);white-space:nowrap;border:none;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.5;position:absolute}.appgphl{color:var(--rc-text-tertiary);margin-bottom:4px}.appgphm{grid-template-columns:12px auto 1fr;align-items:center;gap:8px;display:grid}.appgphn{border-radius:1px;width:12px;height:2px}.appgpho{font-variant-numeric:tabular-nums;color:var(--rc-text);font-weight:600}.appgphp{color:var(--rc-text-tertiary)}.appgphq{color:var(--rc-text-tertiary);margin-top:10px;font-size:12px}.appgphr{color:var(--rc-text-secondary);font-weight:500}.appgphs{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:13px}.appgphs th,.appgphs td{border-bottom:1px solid var(--rc-hr-border);text-align:right;padding:7px 10px}.appgphs th{color:var(--rc-text-tertiary);font-size:12px;font-weight:500}.appgphs th:first-child,.appgphs td:first-child{text-align:left}.appgphs tbody tr:hover td{background:var(--rc-bg-secondary)}.appgpht{place-items:center;height:220px;display:grid;position:relative}.appgphu{flex-direction:column;justify-content:space-between;display:flex;position:absolute;inset:20px 0 30px}.appgphv{background:var(--rc-chart-grid);height:1px}.appgphw{text-align:center;background:var(--rc-bg);color:var(--rc-text-secondary);padding:6px 14px;font-size:14px;font-weight:500;position:relative}.appgphx{font-family:var(--rc-font-mono);color:var(--rc-text-tertiary);font-size:12px;font-weight:400;display:block}@container (width<=520px){.appgph9{display:none}.appgpha{display:block}}._3n881z0{border:1px solid var(--rc-hr-border);background:var(--rc-bg-secondary);color:var(--rc-text);border-radius:10px;margin:1.5em 0;padding:16px 18px;font-size:13px;line-height:1.6}._3n881z1{align-items:center;gap:8px;display:flex}._3n881z2{width:16px;height:16px;color:var(--rc-alert-caution);flex:none}._3n881z3{font-size:14px;font-weight:600}._3n881z4{font-family:var(--rc-font-mono);color:var(--rc-text-tertiary);margin-left:auto;font-size:12px}._3n881z5{color:var(--rc-text-tertiary);margin:2px 0 12px 24px}._3n881z6{border-top:1px solid var(--rc-hr-border);margin:0;padding:0;list-style:none}._3n881z7{border-bottom:1px solid var(--rc-hr-border);padding:10px 0 10px 24px}._3n881z7:last-child{border-bottom:0;padding-bottom:0}._3n881z8{font-family:var(--rc-font-mono);background:var(--rc-fill-secondary);border-radius:4px;padding:1px 6px;font-size:12px}._3n881z9{color:var(--rc-text-tertiary);font-size:12px;display:block}.tzkflr0{overflow:hidden}.tzkflr1{max-height:min(520px,100vh - 96px);font-size:13px;line-height:20px;font-family:var(--rc-font-family-sans);color:var(--rc-text);flex-direction:column;display:flex}.tzkflr2{border-bottom:1px solid var(--rc-border-subtle);padding:8px 12px}.tzkflr3{flex-direction:column;gap:12px;min-height:0;padding:12px;display:flex;overflow-y:auto}.tzkflr4{color:var(--rc-text-secondary);margin:0;padding:12px;font-size:12px;font-weight:400;line-height:16px}.tzkflr5{flex-direction:column;gap:4px;min-width:0;display:flex}.tzkflr6{color:var(--rc-text-secondary);font-size:12px;font-weight:500;line-height:16px}.tzkflr7{width:100%}.tzkflr8{flex-shrink:0;width:92px}.tzkflr9{flex:1}.tzkflra{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.tzkflrb{align-items:center;gap:6px;display:flex}.tzkflrc{cursor:pointer;background:0 0;border:0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;padding:0;display:inline-flex}.tzkflrc:hover,.tzkflrc[aria-expanded=true]{background:var(--rc-fill-secondary)}.tzkflrd{border-radius:3px;width:12px;height:12px;display:block}.tzkflre{gap:4px;padding-left:34px;display:flex}.tzkflrf{cursor:pointer;background:0 0;border:2px solid #0000;border-radius:8px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;display:inline-flex}.tzkflrf[aria-pressed=true]{border-color:var(--rc-text)}.tzkflrg{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.tzkflrh{border:1px solid var(--rc-border);border-radius:8px;max-height:300px;overflow:auto}.tzkflri{border-collapse:collapse;table-layout:fixed;width:100%}.tzkflri th,.tzkflri td{border-bottom:1px solid var(--rc-border);border-right:1px solid var(--rc-border);padding:0}.tzkflri th{background:var(--rc-bg-secondary)}.tzkflri tr>:last-child{border-right:0;width:32px}.tzkflri tbody tr:last-child td{border-bottom:0}.tzkflrj{box-sizing:border-box;width:100%;height:30px;color:var(--rc-text);font:inherit;background:0 0;border:0;outline:none;padding:0 8px}.tzkflrj:focus{box-shadow:inset 0 0 0 2px var(--rc-accent)}.tzkflrk{text-align:right;font-variant-numeric:tabular-nums}.tzkflrl{color:var(--rc-text-secondary);font-size:12px;font-weight:500}._1vsdskt0{outline-offset:6px;border-radius:8px;outline:2px solid #0000;transition:outline-color .12s;position:relative}._1vsdskt1{outline-color:var(--rc-accent)}._1vsdskt2{letter-spacing:normal;word-spacing:normal;font-feature-settings:normal;font-variant:normal;text-transform:none;text-indent:0;color:var(--rc-text);font-style:normal;font-weight:400;font-family:var(--rc-font-family-sans);z-index:1;background-color:var(--rc-bg-elevated);box-shadow:var(--rc-shadow-menu);border:none;border-radius:12px;align-items:center;gap:2px;padding:4px;font-size:14px;line-height:20px;display:flex;position:absolute;top:-8px;right:0;transform:translateY(-100%)}._1vsdskt3{flex-direction:column;max-height:360px;display:flex}._1vsdskt4{font-family:var(--rc-font-mono);color:var(--rc-text);white-space:pre;-webkit-user-select:text;user-select:text;flex:1;margin:0;padding:12px;font-size:12px;line-height:1.5;overflow:auto}._1vsdskt5{color:var(--rc-text-tertiary)}";
|
|
175
175
|
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
176
176
|
function m(e) {
|
|
@@ -64873,7 +64873,7 @@ function nde(e) {
|
|
|
64873
64873
|
let { keys: t, value: n, order: r, offset: i } = e, a = Vue();
|
|
64874
64874
|
return t && a.keys(t), n && i9(a.value, n), r && a.order(Zue(r)), i && a.offset(s9(i)), a;
|
|
64875
64875
|
}
|
|
64876
|
-
// ../../node_modules/.pnpm/@haklex+rich-style-token@0.
|
|
64876
|
+
// ../../node_modules/.pnpm/@haklex+rich-style-token@0.68.0_react@19.3.1/node_modules/@haklex/rich-style-token/dist/themes-nGG3HwVM.js
|
|
64877
64877
|
var c9 = {
|
|
64878
64878
|
color: {
|
|
64879
64879
|
text: "var(--rc-text)",
|
|
@@ -64990,7 +64990,7 @@ var c9 = {
|
|
|
64990
64990
|
className: "",
|
|
64991
64991
|
theme: "light"
|
|
64992
64992
|
}), v.createContext(null).Provider;
|
|
64993
|
-
// ../../node_modules/.pnpm/@haklex+rich-ext-chart@0.
|
|
64993
|
+
// ../../node_modules/.pnpm/@haklex+rich-ext-chart@0.68.0_3b47ffa0471124489e2088ac056cd1a9/node_modules/@haklex/rich-ext-chart/dist/static-DGhxnBot.js
|
|
64994
64994
|
var ade = [
|
|
64995
64995
|
[1e9, "B"],
|
|
64996
64996
|
[1e6, "M"],
|
|
@@ -1923,7 +1923,7 @@ var Ut = "none", Wt = class {
|
|
|
1923
1923
|
return e.filter((e, t) => t === 0 || e.op !== "move");
|
|
1924
1924
|
}
|
|
1925
1925
|
};
|
|
1926
|
-
// ../../node_modules/.pnpm/@haklex+rich-ext-whiteboard@0.
|
|
1926
|
+
// ../../node_modules/.pnpm/@haklex+rich-ext-whiteboard@0.68.0_3f3019e441d436abb0b182228cef98fe/node_modules/@haklex/rich-ext-whiteboard/dist/viewport-fit-n_lDh3MZ.js
|
|
1927
1927
|
function Gt(e) {
|
|
1928
1928
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
1929
1929
|
for (let [a, o] of e) t = Math.min(t, a), n = Math.min(n, o), r = Math.max(r, a), i = Math.max(i, o);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{C as t,j as n}from"./route-BEA0O_Ry.js";import{t as r}from"./react-DlmbjZJV.js";import"./BottomSheet-SYC_8Y6k.js";import{n as i,t as a}from"./useMedia-CFebB4XU.js";import{r as o,t as s}from"./agentLook-BPPrbQJ3.js";import{t as c}from"./icons-CCSPm9SD.js";import{t as l}from"./jsx-runtime-LKYXHABd.js";import{t as u}from"./arrow-up-right-CHwLq7Lo.js";import{t as d}from"./chevron-left-DlfRX9wv.js";import{pr as f}from"./url-BaZreTXB.js";import{D as p,E as m,O as h,T as g}from"./index.js";import{t as _}from"./chevron-right-DBC0wrKu.js";var v=e(r(),1),y=l(),b=24;function x({agent:e,dim:t,stacked:n}){let r=s(e),i=r.icon?c[r.icon]:null;return(0,y.jsx)(`span`,{...{0:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f`},2:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f xwq05k6`},1:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f x2459kn`},3:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f xwq05k6 x2459kn`}}[!!t<<1|!!n],children:i?(0,y.jsx)(i.Avatar,{shape:`circle`,size:b}):(0,y.jsx)(`span`,{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f`,style:{backgroundColor:r.color,color:r.darkInk?o.ink:o.white},children:e.slice(0,1).toUpperCase()})})}function S({attention:e,trusted:n,onSend:r}){let{t:i}=t(),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),d=!n||l,f=e=>{l||(u(!0),r(e).then(()=>c(null),e=>c(e.message)).finally(()=>u(!1)))},m=()=>{let e=a.trim();e&&(o(``),f({kind:`text`,text:e}))};return e.kind===`login`?(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.loginHint`)}):e.kind===`none`?(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.useComments`)}):(0,y.jsxs)(`div`,{className:`x78zum5 xdt5ytf x17d4w8g`,children:[e.options?.map(e=>(0,y.jsxs)(`button`,{disabled:d,type:`button`,className:`x78zum5 x6s0dn4 x883omv xu97haq x1awh872 xmkeg23 x1y0btm7 x10ch1fi xur7f20 x1e07pli x1heor9g xln7xf2 x4z9k3i x1yc453h x1ypdohk`,onClick:()=>f({kind:`option`,key:e.key}),children:[(0,y.jsx)(`kbd`,{className:`x1fao0z8 x1j6dyjg xm9j1uf xmkeg23 x1y0btm7 x10ch1fi x12oqio5 x18km98s`,children:e.key}),e.label]},e.key)),p(e)&&(0,y.jsx)(`button`,{disabled:d,type:`button`,className:`x78zum5 x6s0dn4 x883omv xu97haq x1awh872 xmkeg23 x1y0btm7 x10ch1fi xur7f20 x1e07pli x1heor9g xln7xf2 x4z9k3i x1yc453h x1ypdohk`,onClick:()=>f({kind:`interrupt`}),children:i(`daemon.interrupt`)}),h(e)&&(0,y.jsxs)(`div`,{className:`x78zum5 x167g77z`,children:[(0,y.jsx)(`input`,{"aria-label":i(`daemon.replyPlaceholder`),disabled:d,placeholder:i(`daemon.replyPlaceholder`),value:a,className:`x98rzlu xeuugli x90ne7k x1awh872 xmkeg23 x1y0btm7 x10ch1fi xur7f20 x1e07pli x1heor9g xln7xf2 x4z9k3i`,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.nativeEvent.isComposing&&m()}}),(0,y.jsx)(`button`,{disabled:d,type:`button`,className:`x90ne7k xqin4a2 xc342km xur7f20 x19ckca5 xs0jrwl xln7xf2 x4z9k3i x1s688f x1ypdohk`,onClick:m,children:i(`daemon.send`)})]}),!n&&(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.untrusted`)}),s&&(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.sendFailed`,{error:s})})]})}`${o.overlayShadowHair}${o.overlayShadowSoft}`;var C={dock:{kVAEAm:`xixxii4`,kbCHJM:`x1oax2jk`,krVfgx:`xy58vm5`,kY2c9j:`x68pp3s`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x1cy8zhl`,kOIVth:`x167g77z`,kMv6JI:`xqfszdh`,$$css:!0},pill:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kZKoxP:`x10w6t97`,ks0D6T:`x1recik0`,kB7OPa:`x9f619`,kZCmMZ:`x135b78x`,kwRFfy:`xpdmqnj`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`x1e6avla`,kWkggS:`x12ilycc`,kMwMTN:`xo2rkog`,kGVxlE:`x1gxogt1`,kMv6JI:`xjb2p0i`,kGuDYH:`x4z9k3i`,k63SB2:`xk50ysn`,kLWn49:`x37zpob`,khDVqt:`xuxw1ft`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,kkrTdU:`x1ypdohk`,$$css:!0},amber:{kWkggS:`x4roa90`,kVAM5u:`xkoleu3`,kMwMTN:`x16m9qdy`,$$css:!0},grey:{kWkggS:`x15dg6x3`,kMwMTN:`x1bo0w0s`,$$css:!0},still:{kkrTdU:`xt0e3qv`,$$css:!0},card:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x883omv`,kzqmXN:`x15xi2kl`,kB7OPa:`x9f619`,kmVPX3:`x1gnqi22`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`xixl9f9`,kWkggS:`x12ilycc`,kMwMTN:`xo2rkog`,kGVxlE:`x1gxogt1`,kGuDYH:`x4z9k3i`,"--daemon-edge":`x14kz8i8`,"--daemon-field":`x1hthcqu`,$$css:!0},cardAmber:{kVAM5u:`xkoleu3`,$$css:!0},head:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kGuDYH:`xif65rj`,k63SB2:`x1s688f`,$$css:!0},headAmber:{kMwMTN:`x16m9qdy`,$$css:!0},grow:{kUk6DE:`x98rzlu`,$$css:!0},icon:{k1xSpc:`xwz0xwf`,kgQiWS:`x1ku5rj1`,kzqmXN:`x23j0i4`,kZKoxP:`xd7y6wv`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`xu4hgxq`,kWkggS:`xjbqb8w`,kMwMTN:`xddlp02`,kkrTdU:`x1ypdohk`,$$css:!0},line:{kogj98:`x1ghz6dp`,kmVPX3:`x1160tuk`,kaIpWk:`xur7f20`,kWkggS:`xahzvm9`,kMv6JI:`x1fao0z8`,kGuDYH:`xfifm61`,kLWn49:`x1evy7pa`,khDVqt:`x126k92a`,kHjlTd:`xj0a0fe`,$$css:!0},link:{kSGwAc:`xpvyfi4`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x1jnr06f`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kMwMTN:`xo2rkog`,kVVagm:`xln7xf2`,kGuDYH:`x1ct8sxb`,k63SB2:`xk50ysn`,kkrTdU:`x1ypdohk`,$$css:!0},detail:{khDVqt:`xuxw1ft`,$$css:!0},headText:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x195vfkc`,k7Eaqz:`xeuugli`,$$css:!0},headSub:{kGuDYH:`x1ct8sxb`,k63SB2:`xk50ysn`,kSiTet:`xiiclqw`,$$css:!0},quiet:{kMwMTN:`x1bo0w0s`,kGVxlE:`x1gnnqk1`,$$css:!0},stack:{k1xSpc:`x3nfvp2`,$$css:!0},muted:{kMwMTN:`xddlp02`,$$css:!0},list:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x195vfkc`,kzqmXN:`x1h3vhbf`,kB7OPa:`x9f619`,kmVPX3:`x1ruevkc`,kogj98:`x1ghz6dp`,kB88ic:`xe8uvvx`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`x4pepcl`,kWkggS:`x12ilycc`,kGVxlE:`x1gxogt1`,$$css:!0},row:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kzqmXN:`xh8yej3`,kAzted:`x1ba4aug`,k8WAf4:`x12ulsxz`,kg3NbH:`xdqyycr`,kMzoRj:`xc342km`,kaIpWk:`xur7f20`,kWkggS:`xjbqb8w`,kMwMTN:`xo2rkog`,kVVagm:`xln7xf2`,kGuDYH:`x4z9k3i`,k9WMMc:`x1yc453h`,$$css:!0},rowButton:{kkrTdU:`x1ypdohk`,kGzVvX:`xj0l527`,$$css:!0},rowName:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,$$css:!0},rowSub:{kGuDYH:`x1qt5hsa`,kMwMTN:`xddlp02`,$$css:!0},rowState:{kMwMTN:`x1bo0w0s`,khDVqt:`xuxw1ft`,$$css:!0},rowAmber:{kMwMTN:`x16m9qdy`,$$css:!0}};function w({agent:e,attention:r,label:i,detail:a,amber:o,trusted:s,onBack:c,onCollapse:l,onTerminal:p,onSend:m}){let{t:h}=t();return(0,y.jsxs)(`div`,{...n(C.card,o&&C.cardAmber),children:[(0,y.jsxs)(`div`,{...n(C.head,o&&C.headAmber),children:[c&&(0,y.jsx)(`button`,{"aria-label":h(`agentStatus.back`),type:`button`,...n(C.icon),onClick:c,children:(0,y.jsx)(d,{"aria-hidden":`true`,size:15})}),(0,y.jsx)(x,{agent:e}),(0,y.jsxs)(`span`,{...n(C.headText),children:[(0,y.jsx)(`span`,{children:e}),(0,y.jsxs)(`span`,{...n(C.headSub),children:[i,a&&(0,y.jsxs)(`span`,{...n(C.detail),children:[` · `,a]})]})]}),(0,y.jsx)(`span`,{...n(C.grow)}),(0,y.jsx)(`button`,{"aria-label":h(`daemon.collapse`),type:`button`,...n(C.icon),onClick:l,children:(0,y.jsx)(f,{"aria-hidden":`true`,size:15})})]}),r.line&&(0,y.jsx)(`pre`,{...n(C.line),children:r.line}),(0,y.jsx)(S,{attention:r,trusted:s,onSend:m}),(0,y.jsxs)(`button`,{type:`button`,...n(C.link),onClick:p,children:[h(r.kind===`quiet`?`daemon.peek`:`daemon.openTerminal`),(0,y.jsx)(u,{"aria-hidden":`true`,size:13})]})]})}var T={thinking:`agentStatus.thinking`,running:`agentStatus.running`,"your-turn":`agentStatus.yourTurn`,"needs-approval":`agentStatus.needsApproval`},E={starting:`agentStatus.starting`,queued:`agentStatus.queued`,running:`agentStatus.running`,idle:`agentStatus.yourTurn`};function D(e,t){return e.state?t(T[e.state]):t(E[e.daemon?.state??``]??`agentStatus.starting`)}function O(e,t,n,r){let i=D(e,r);return t?m(t,n,r,i):i}function k({rows:e,now:r,onOpen:i}){let{t:a}=t();return(0,y.jsx)(`ul`,{...n(C.list),children:e.map(e=>{let t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(x,{agent:e.agent,dim:e.state===`your-turn`}),(0,y.jsxs)(`span`,{...n(C.rowName),children:[(0,y.jsx)(`span`,{children:e.agent}),(0,y.jsx)(`span`,{...n(C.rowSub),children:a(e.daemon?`agentStatus.fromDaemon`:`agentStatus.fromComputer`)})]}),(0,y.jsx)(`span`,{...n(C.rowState,g(e)===`amber`&&C.rowAmber),children:O(e,e.daemon?.attention??null,r,a)})]});return(0,y.jsx)(`li`,{children:e.daemon?(0,y.jsxs)(`button`,{"data-agent-row":``,type:`button`,...n(C.row,C.rowButton),onClick:()=>i(e),children:[t,(0,y.jsx)(_,{"aria-hidden":`true`,size:14})]}):(0,y.jsx)(`div`,{"data-agent-row":``,...n(C.row),children:t})},e.key)})})}var A=3e3,j=100;function M({agent:e,label:n,attention:r,trusted:i,screen:a,onSend:o,onClose:s}){let{t:c}=t(),[l,u]=(0,v.useState)(null),[d,p]=(0,v.useState)(!1),m=(0,v.useRef)(null),[h,g]=(0,v.useState)(!1),[_,b]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let e=!0,t=0,n,r=async()=>{if(clearTimeout(n),!document.hidden){t+=1;try{let t=await a();if(!e)return;p(!1),u(t)}catch{e&&p(!0)}e&&!document.hidden&&(t>=j?g(!0):n=setTimeout(()=>void r(),A))}},i=()=>{document.hidden?clearTimeout(n):t<j&&r()};return r(),document.addEventListener(`visibilitychange`,i),()=>{e=!1,clearTimeout(n),document.removeEventListener(`visibilitychange`,i)}},[a,_]),(0,v.useEffect)(()=>{m.current?.scrollTo({top:m.current.scrollHeight})},[l]),(0,y.jsxs)(`div`,{"aria-label":c(`daemon.terminal`),role:`dialog`,className:`x78zum5 xdt5ytf x18nlu7x x64f201 x4pepcl xb3r6kr x12zacjc x1cjvsfd x17mo148 x1y6sirb xh94tdt`,children:[(0,y.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x167g77z xn3w4p2 x1c5z90z x4z9k3i`,children:[(0,y.jsx)(`span`,{className:`x1s688f`,children:e}),(0,y.jsxs)(`span`,{className:`x1tchhkq xb3r6kr xlyipyv xuxw1ft`,children:[`· `,n]}),(0,y.jsx)(`span`,{className:`x98rzlu`}),h&&(0,y.jsx)(`button`,{type:`button`,className:`xd7y6wv x1awh872 xmkeg23 x1y0btm7 x1myq7ru xu4hgxq xjbqb8w x1heor9g xln7xf2 xfifm61 x1ypdohk`,onClick:()=>{g(!1),b(e=>e+1)},children:c(`daemon.refresh`)}),(0,y.jsx)(`button`,{"aria-label":c(`daemon.closeTerminal`),type:`button`,className:`xwz0xwf x1ku5rj1 x1849jeq x1gnnpzl x1717udv xc342km xur7f20 xjbqb8w x1heor9g x1ypdohk`,onClick:s,children:(0,y.jsx)(f,{"aria-hidden":`true`,size:16})})]}),(0,y.jsx)(`pre`,{ref:m,className:`x98rzlu x1ghz6dp x1gqud3g xysyzu8 x1fao0z8 x1qt5hsa x1jjo3f5 x126k92a xj0a0fe`,children:d&&l===null?c(`daemon.screenFailed`):(l??[]).join(`
|
|
2
|
-
`)}),(0,y.jsx)(`div`,{className:`xc7ga6q`,children:(0,y.jsx)(S,{attention:r,trusted:i,onSend:o})})]})}function N({text:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(),a=(0,v.useRef)(e),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c=(0,v.useRef)(null);(0,v.useLayoutEffect)(()=>{let e=o.current,t=()=>i(Math.ceil(e.getBoundingClientRect().width));t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e]),(0,v.useLayoutEffect)(()=>{a.current!==e&&(n(matchMedia(`(prefers-reduced-motion: reduce)`).matches?null:a.current),a.current=e)},[e]),(0,v.useLayoutEffect)(()=>{if(t===null)return;let r=matchMedia(`(prefers-reduced-motion: reduce)`);if(r.matches||typeof c.current?.animate!=`function`){n(null);return}let i=[],a=Math.max(Array.from(t).length,Array.from(e).length),o=!1,l=(e,t)=>{[...e.children].forEach((e,n)=>{i.push(e.animate(t?[{transform:`translateY(6px) rotateX(-90deg)`,opacity:0},{transform:`translateY(0) rotateX(0)`,opacity:1}]:[{transform:`translateY(0) rotateX(0)`,opacity:1},{transform:`translateY(-6px) rotateX(90deg)`,opacity:0}],{duration:360,delay:n*160/Math.max(1,a-1),easing:`cubic-bezier(.22,.75,.2,1)`,fill:`both`}))})};l(s.current,!1),l(c.current,!0),Promise.all(i.map(e=>e.finished.catch(()=>{}))).then(()=>{o||n(null)});let u=()=>{r.matches&&n(null)};return r.addEventListener(`change`,u),()=>{o=!0,i.forEach(e=>e.cancel()),r.removeEventListener(`change`,u)}},[t,e]);let l=e=>Array.from(e,(e,t)=>(0,y.jsx)(`span`,{className:`x1rg5ohu x1sdyfia xlp1x4z`,children:e},t));return(0,y.jsxs)(`span`,{"data-flip-label":``,className:`x1rg5ohu x1n2onr6 x1qx5ct2 x2lah0s x7giv3 x1v2g701 xxymvpz x1d63wz7 x9kvfbb`,style:{width:r},children:[(0,y.jsx)(`span`,{"aria-live":`polite`,className:`x10l6tqk x1i1rx1s xjm9jq1 xb3r6kr x1hyvwdk xuxw1ft`,children:e}),(0,y.jsx)(`span`,{"aria-hidden":`true`,ref:o,className:`x10l6tqk x1o0tod x13vifvy x78zum5 x6s0dn4 x1qx5ct2 xezivpi xlp1x4z x1oyok0e xlshs6z x47corl`,children:l(e)}),t!==null&&(0,y.jsx)(`span`,{"aria-hidden":`true`,ref:s,className:`x10l6tqk x1o0tod x13vifvy x78zum5 x6s0dn4 x1qx5ct2 xezivpi xlp1x4z x1oyok0e`,children:l(t)}),(0,y.jsx)(`span`,{"aria-hidden":`true`,ref:c,className:`x10l6tqk x1o0tod x13vifvy x78zum5 x6s0dn4 x1qx5ct2 xezivpi xlp1x4z x1oyok0e`,children:l(e)})]})}function P(e){try{return e.parent!==e&&e.parent.document?e.parent:null}catch{return null}}function F(){let e=window;for(let t=P(e);t;t=P(e))e=t;return e.document}function I(e,t){(0,v.useEffect)(()=>{if(!e)return;let n=F(),r=()=>{n.title.startsWith(t)||(n.title=t+n.title)};r();let i=new MutationObserver(r);return i.observe(n.head,{subtree:!0,childList:!0,characterData:!0}),()=>{i.disconnect(),n.title.startsWith(t)&&(n.title=n.title.slice(t.length))}},[e,t])}var L=142,R=3e4,z=3;function B(){let[e,t]=(0,v.useState)(()=>Date.now());return(0,v.useEffect)(()=>{let e=setInterval(()=>t(Date.now()),R);return()=>clearInterval(e)},[]),e}function V({rows:e,transport:r,trusted:o}){let{t:s}=t(),c=i(a),l=B(),[u,d]=(0,v.useState)(`pill`),[f,
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{C as t,j as n}from"./route-i3jkzu-i.js";import{t as r}from"./react-DlmbjZJV.js";import"./BottomSheet-BFtfrr58.js";import{n as i,t as a}from"./useMedia-CFebB4XU.js";import{r as o,t as s}from"./agentLook-60JQrptF.js";import{t as c}from"./icons-CDVhjQMS.js";import{t as l}from"./jsx-runtime-LKYXHABd.js";import{t as u}from"./arrow-up-right-CHwLq7Lo.js";import{t as d}from"./chevron-left-DlfRX9wv.js";import{vr as f}from"./url-Buh8E05T.js";import{C as p,E as m,T as h,w as g}from"./index.js";import{t as _}from"./chevron-right-DBC0wrKu.js";var v=e(r(),1),y=l(),b=24;function x({agent:e,dim:t,stacked:n}){let r=s(e),i=r.icon?c[r.icon]:null;return(0,y.jsx)(`span`,{...{0:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f`},2:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f xwq05k6`},1:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f x2459kn`},3:{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f xwq05k6 x2459kn`}}[!!t<<1|!!n],children:i?(0,y.jsx)(i.Avatar,{shape:`circle`,size:b}):(0,y.jsx)(`span`,{className:`xvy4d1p xxk0z11 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xryz0cv x1j6dyjg x1s688f`,style:{backgroundColor:r.color,color:r.darkInk?o.ink:o.white},children:e.slice(0,1).toUpperCase()})})}function S({attention:e,trusted:n,onSend:r}){let{t:i}=t(),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),d=!n||l,f=e=>{l||(u(!0),r(e).then(()=>c(null),e=>c(e.message)).finally(()=>u(!1)))},p=()=>{let e=a.trim();e&&(o(``),f({kind:`text`,text:e}))};return e.kind===`login`?(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.loginHint`)}):e.kind===`none`?(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.useComments`)}):(0,y.jsxs)(`div`,{className:`x78zum5 xdt5ytf x17d4w8g`,children:[e.options?.map(e=>(0,y.jsxs)(`button`,{disabled:d,type:`button`,className:`x78zum5 x6s0dn4 x883omv xu97haq x1awh872 xmkeg23 x1y0btm7 x10ch1fi xur7f20 x1e07pli x1heor9g xln7xf2 x4z9k3i x1yc453h x1ypdohk`,onClick:()=>f({kind:`option`,key:e.key}),children:[(0,y.jsx)(`kbd`,{className:`x1fao0z8 x1j6dyjg xm9j1uf xmkeg23 x1y0btm7 x10ch1fi x12oqio5 x18km98s`,children:e.key}),e.label]},e.key)),h(e)&&(0,y.jsx)(`button`,{disabled:d,type:`button`,className:`x78zum5 x6s0dn4 x883omv xu97haq x1awh872 xmkeg23 x1y0btm7 x10ch1fi xur7f20 x1e07pli x1heor9g xln7xf2 x4z9k3i x1yc453h x1ypdohk`,onClick:()=>f({kind:`interrupt`}),children:i(`daemon.interrupt`)}),m(e)&&(0,y.jsxs)(`div`,{className:`x78zum5 x167g77z`,children:[(0,y.jsx)(`input`,{"aria-label":i(`daemon.replyPlaceholder`),disabled:d,placeholder:i(`daemon.replyPlaceholder`),value:a,className:`x98rzlu xeuugli x90ne7k x1awh872 xmkeg23 x1y0btm7 x10ch1fi xur7f20 x1e07pli x1heor9g xln7xf2 x4z9k3i`,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.nativeEvent.isComposing&&p()}}),(0,y.jsx)(`button`,{disabled:d,type:`button`,className:`x90ne7k xqin4a2 xc342km xur7f20 x19ckca5 xs0jrwl xln7xf2 x4z9k3i x1s688f x1ypdohk`,onClick:p,children:i(`daemon.send`)})]}),!n&&(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.untrusted`)}),s&&(0,y.jsx)(`div`,{className:`xfifm61 x1ks1olk`,children:i(`daemon.sendFailed`,{error:s})})]})}`${o.overlayShadowHair}${o.overlayShadowSoft}`;var C={dock:{kVAEAm:`xixxii4`,kbCHJM:`x1oax2jk`,krVfgx:`xy58vm5`,kY2c9j:`x68pp3s`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x1cy8zhl`,kOIVth:`x167g77z`,kMv6JI:`xqfszdh`,$$css:!0},pill:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kZKoxP:`x10w6t97`,ks0D6T:`x1recik0`,kB7OPa:`x9f619`,kZCmMZ:`x135b78x`,kwRFfy:`xpdmqnj`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`x1e6avla`,kWkggS:`x12ilycc`,kMwMTN:`xo2rkog`,kGVxlE:`x1gxogt1`,kMv6JI:`xjb2p0i`,kGuDYH:`x4z9k3i`,k63SB2:`xk50ysn`,kLWn49:`x37zpob`,khDVqt:`xuxw1ft`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,kkrTdU:`x1ypdohk`,$$css:!0},amber:{kWkggS:`x4roa90`,kVAM5u:`xkoleu3`,kMwMTN:`x16m9qdy`,$$css:!0},grey:{kWkggS:`x15dg6x3`,kMwMTN:`x1bo0w0s`,$$css:!0},still:{kkrTdU:`xt0e3qv`,$$css:!0},card:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x883omv`,kzqmXN:`x15xi2kl`,kB7OPa:`x9f619`,kmVPX3:`x1gnqi22`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`xixl9f9`,kWkggS:`x12ilycc`,kMwMTN:`xo2rkog`,kGVxlE:`x1gxogt1`,kGuDYH:`x4z9k3i`,"--daemon-edge":`x14kz8i8`,"--daemon-field":`x1hthcqu`,$$css:!0},cardAmber:{kVAM5u:`xkoleu3`,$$css:!0},head:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kGuDYH:`xif65rj`,k63SB2:`x1s688f`,$$css:!0},headAmber:{kMwMTN:`x16m9qdy`,$$css:!0},grow:{kUk6DE:`x98rzlu`,$$css:!0},icon:{k1xSpc:`xwz0xwf`,kgQiWS:`x1ku5rj1`,kzqmXN:`x23j0i4`,kZKoxP:`xd7y6wv`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`xu4hgxq`,kWkggS:`xjbqb8w`,kMwMTN:`xddlp02`,kkrTdU:`x1ypdohk`,$$css:!0},line:{kogj98:`x1ghz6dp`,kmVPX3:`x1160tuk`,kaIpWk:`xur7f20`,kWkggS:`xahzvm9`,kMv6JI:`x1fao0z8`,kGuDYH:`xfifm61`,kLWn49:`x1evy7pa`,khDVqt:`x126k92a`,kHjlTd:`xj0a0fe`,$$css:!0},link:{kSGwAc:`xpvyfi4`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x1jnr06f`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kMwMTN:`xo2rkog`,kVVagm:`xln7xf2`,kGuDYH:`x1ct8sxb`,k63SB2:`xk50ysn`,kkrTdU:`x1ypdohk`,$$css:!0},detail:{khDVqt:`xuxw1ft`,$$css:!0},headText:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x195vfkc`,k7Eaqz:`xeuugli`,$$css:!0},headSub:{kGuDYH:`x1ct8sxb`,k63SB2:`xk50ysn`,kSiTet:`xiiclqw`,$$css:!0},quiet:{kMwMTN:`x1bo0w0s`,kGVxlE:`x1gnnqk1`,$$css:!0},stack:{k1xSpc:`x3nfvp2`,$$css:!0},muted:{kMwMTN:`xddlp02`,$$css:!0},list:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x195vfkc`,kzqmXN:`x1h3vhbf`,kB7OPa:`x9f619`,kmVPX3:`x1ruevkc`,kogj98:`x1ghz6dp`,kB88ic:`xe8uvvx`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`x4pepcl`,kWkggS:`x12ilycc`,kGVxlE:`x1gxogt1`,$$css:!0},row:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kzqmXN:`xh8yej3`,kAzted:`x1ba4aug`,k8WAf4:`x12ulsxz`,kg3NbH:`xdqyycr`,kMzoRj:`xc342km`,kaIpWk:`xur7f20`,kWkggS:`xjbqb8w`,kMwMTN:`xo2rkog`,kVVagm:`xln7xf2`,kGuDYH:`x4z9k3i`,k9WMMc:`x1yc453h`,$$css:!0},rowButton:{kkrTdU:`x1ypdohk`,kGzVvX:`xj0l527`,$$css:!0},rowName:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,$$css:!0},rowSub:{kGuDYH:`x1qt5hsa`,kMwMTN:`xddlp02`,$$css:!0},rowState:{kMwMTN:`x1bo0w0s`,khDVqt:`xuxw1ft`,$$css:!0},rowAmber:{kMwMTN:`x16m9qdy`,$$css:!0}};function w({agent:e,attention:r,label:i,detail:a,amber:o,trusted:s,onBack:c,onCollapse:l,onTerminal:p,onSend:m}){let{t:h}=t();return(0,y.jsxs)(`div`,{...n(C.card,o&&C.cardAmber),children:[(0,y.jsxs)(`div`,{...n(C.head,o&&C.headAmber),children:[c&&(0,y.jsx)(`button`,{"aria-label":h(`agentStatus.back`),type:`button`,...n(C.icon),onClick:c,children:(0,y.jsx)(d,{"aria-hidden":`true`,size:15})}),(0,y.jsx)(x,{agent:e}),(0,y.jsxs)(`span`,{...n(C.headText),children:[(0,y.jsx)(`span`,{children:e}),(0,y.jsxs)(`span`,{...n(C.headSub),children:[i,a&&(0,y.jsxs)(`span`,{...n(C.detail),children:[` · `,a]})]})]}),(0,y.jsx)(`span`,{...n(C.grow)}),(0,y.jsx)(`button`,{"aria-label":h(`daemon.collapse`),type:`button`,...n(C.icon),onClick:l,children:(0,y.jsx)(f,{"aria-hidden":`true`,size:15})})]}),r.line&&(0,y.jsx)(`pre`,{...n(C.line),children:r.line}),(0,y.jsx)(S,{attention:r,trusted:s,onSend:m}),(0,y.jsxs)(`button`,{type:`button`,...n(C.link),onClick:p,children:[h(r.kind===`quiet`?`daemon.peek`:`daemon.openTerminal`),(0,y.jsx)(u,{"aria-hidden":`true`,size:13})]})]})}var T={thinking:`agentStatus.thinking`,running:`agentStatus.running`,"your-turn":`agentStatus.yourTurn`,"needs-approval":`agentStatus.needsApproval`},E={starting:`agentStatus.starting`,queued:`agentStatus.queued`,running:`agentStatus.running`,idle:`agentStatus.yourTurn`};function D(e,t){return e.state?t(T[e.state]):t(E[e.daemon?.state??``]??`agentStatus.starting`)}function O(e,t,n,r){let i=D(e,r);return t?g(t,n,r,i):i}function k({rows:e,now:r,onOpen:i}){let{t:a}=t();return(0,y.jsx)(`ul`,{...n(C.list),children:e.map(e=>{let t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(x,{agent:e.agent,dim:e.state===`your-turn`}),(0,y.jsxs)(`span`,{...n(C.rowName),children:[(0,y.jsx)(`span`,{children:e.agent}),(0,y.jsx)(`span`,{...n(C.rowSub),children:a(e.daemon?`agentStatus.fromDaemon`:`agentStatus.fromComputer`)})]}),(0,y.jsx)(`span`,{...n(C.rowState,p(e)===`amber`&&C.rowAmber),children:O(e,e.daemon?.attention??null,r,a)})]});return(0,y.jsx)(`li`,{children:e.daemon?(0,y.jsxs)(`button`,{"data-agent-row":``,type:`button`,...n(C.row,C.rowButton),onClick:()=>i(e),children:[t,(0,y.jsx)(_,{"aria-hidden":`true`,size:14})]}):(0,y.jsx)(`div`,{"data-agent-row":``,...n(C.row),children:t})},e.key)})})}var A=3e3,j=100;function M({agent:e,label:n,attention:r,trusted:i,screen:a,onSend:o,onClose:s}){let{t:c}=t(),[l,u]=(0,v.useState)(null),[d,p]=(0,v.useState)(!1),m=(0,v.useRef)(null),[h,g]=(0,v.useState)(!1),[_,b]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let e=!0,t=0,n,r=async()=>{if(clearTimeout(n),!document.hidden){t+=1;try{let t=await a();if(!e)return;p(!1),u(t)}catch{e&&p(!0)}e&&!document.hidden&&(t>=j?g(!0):n=setTimeout(()=>void r(),A))}},i=()=>{document.hidden?clearTimeout(n):t<j&&r()};return r(),document.addEventListener(`visibilitychange`,i),()=>{e=!1,clearTimeout(n),document.removeEventListener(`visibilitychange`,i)}},[a,_]),(0,v.useEffect)(()=>{m.current?.scrollTo({top:m.current.scrollHeight})},[l]),(0,y.jsxs)(`div`,{"aria-label":c(`daemon.terminal`),role:`dialog`,className:`x78zum5 xdt5ytf x18nlu7x x64f201 x4pepcl xb3r6kr x12zacjc x1cjvsfd x17mo148 x1y6sirb xh94tdt`,children:[(0,y.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x167g77z xn3w4p2 x1c5z90z x4z9k3i`,children:[(0,y.jsx)(`span`,{className:`x1s688f`,children:e}),(0,y.jsxs)(`span`,{className:`x1tchhkq xb3r6kr xlyipyv xuxw1ft`,children:[`· `,n]}),(0,y.jsx)(`span`,{className:`x98rzlu`}),h&&(0,y.jsx)(`button`,{type:`button`,className:`xd7y6wv x1awh872 xmkeg23 x1y0btm7 x1myq7ru xu4hgxq xjbqb8w x1heor9g xln7xf2 xfifm61 x1ypdohk`,onClick:()=>{g(!1),b(e=>e+1)},children:c(`daemon.refresh`)}),(0,y.jsx)(`button`,{"aria-label":c(`daemon.closeTerminal`),type:`button`,className:`xwz0xwf x1ku5rj1 x1849jeq x1gnnpzl x1717udv xc342km xur7f20 xjbqb8w x1heor9g x1ypdohk`,onClick:s,children:(0,y.jsx)(f,{"aria-hidden":`true`,size:16})})]}),(0,y.jsx)(`pre`,{ref:m,className:`x98rzlu x1ghz6dp x1gqud3g xysyzu8 x1fao0z8 x1qt5hsa x1jjo3f5 x126k92a xj0a0fe`,children:d&&l===null?c(`daemon.screenFailed`):(l??[]).join(`
|
|
2
|
+
`)}),(0,y.jsx)(`div`,{className:`xc7ga6q`,children:(0,y.jsx)(S,{attention:r,trusted:i,onSend:o})})]})}function N({text:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(),a=(0,v.useRef)(e),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c=(0,v.useRef)(null);(0,v.useLayoutEffect)(()=>{let e=o.current,t=()=>i(Math.ceil(e.getBoundingClientRect().width));t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e]),(0,v.useLayoutEffect)(()=>{a.current!==e&&(n(matchMedia(`(prefers-reduced-motion: reduce)`).matches?null:a.current),a.current=e)},[e]),(0,v.useLayoutEffect)(()=>{if(t===null)return;let r=matchMedia(`(prefers-reduced-motion: reduce)`);if(r.matches||typeof c.current?.animate!=`function`){n(null);return}let i=[],a=Math.max(Array.from(t).length,Array.from(e).length),o=!1,l=(e,t)=>{[...e.children].forEach((e,n)=>{i.push(e.animate(t?[{transform:`translateY(6px) rotateX(-90deg)`,opacity:0},{transform:`translateY(0) rotateX(0)`,opacity:1}]:[{transform:`translateY(0) rotateX(0)`,opacity:1},{transform:`translateY(-6px) rotateX(90deg)`,opacity:0}],{duration:360,delay:n*160/Math.max(1,a-1),easing:`cubic-bezier(.22,.75,.2,1)`,fill:`both`}))})};l(s.current,!1),l(c.current,!0),Promise.all(i.map(e=>e.finished.catch(()=>{}))).then(()=>{o||n(null)});let u=()=>{r.matches&&n(null)};return r.addEventListener(`change`,u),()=>{o=!0,i.forEach(e=>e.cancel()),r.removeEventListener(`change`,u)}},[t,e]);let l=e=>Array.from(e,(e,t)=>(0,y.jsx)(`span`,{className:`x1rg5ohu x1sdyfia xlp1x4z`,children:e},t));return(0,y.jsxs)(`span`,{"data-flip-label":``,className:`x1rg5ohu x1n2onr6 x1qx5ct2 x2lah0s x7giv3 x1v2g701 xxymvpz x1d63wz7 x9kvfbb`,style:{width:r},children:[(0,y.jsx)(`span`,{"aria-live":`polite`,className:`x10l6tqk x1i1rx1s xjm9jq1 xb3r6kr x1hyvwdk xuxw1ft`,children:e}),(0,y.jsx)(`span`,{"aria-hidden":`true`,ref:o,className:`x10l6tqk x1o0tod x13vifvy x78zum5 x6s0dn4 x1qx5ct2 xezivpi xlp1x4z x1oyok0e xlshs6z x47corl`,children:l(e)}),t!==null&&(0,y.jsx)(`span`,{"aria-hidden":`true`,ref:s,className:`x10l6tqk x1o0tod x13vifvy x78zum5 x6s0dn4 x1qx5ct2 xezivpi xlp1x4z x1oyok0e`,children:l(t)}),(0,y.jsx)(`span`,{"aria-hidden":`true`,ref:c,className:`x10l6tqk x1o0tod x13vifvy x78zum5 x6s0dn4 x1qx5ct2 xezivpi xlp1x4z x1oyok0e`,children:l(e)})]})}function P(e){try{return e.parent!==e&&e.parent.document?e.parent:null}catch{return null}}function F(){let e=window;for(let t=P(e);t;t=P(e))e=t;return e.document}function I(e,t){(0,v.useEffect)(()=>{if(!e)return;let n=F(),r=()=>{n.title.startsWith(t)||(n.title=t+n.title)};r();let i=new MutationObserver(r);return i.observe(n.head,{subtree:!0,childList:!0,characterData:!0}),()=>{i.disconnect(),n.title.startsWith(t)&&(n.title=n.title.slice(t.length))}},[e,t])}var L=142,R=3e4,z=3;function B(){let[e,t]=(0,v.useState)(()=>Date.now());return(0,v.useEffect)(()=>{let e=setInterval(()=>t(Date.now()),R);return()=>clearInterval(e)},[]),e}function V({rows:e,transport:r,trusted:o}){let{t:s}=t(),c=i(a),l=B(),[u,d]=(0,v.useState)(`pill`),[f,m]=(0,v.useState)(null),h=(0,v.useRef)(null),g=(0,v.useRef)(r);(0,v.useEffect)(()=>{g.current=r},[r]);let _=(0,v.useCallback)(async()=>await g.current?.screen()??[],[]),b=r?e.find(e=>e.daemon)??null:null,S=b?.daemon?.attention??null,T=S&&f===S.since?{kind:`none`,since:f}:S,E=e=>e===b&&T?.kind===`none`&&e.daemon?.state===`running`?null:p(e),D=e[0],A=D?E(D):null,j=b!==null&&E(b)===`amber`;I(j,s(`daemon.titlePrefix`)),I(!j&&D?.state===`needs-approval`,s(`agentStatus.titlePrefix`));let P=T?.since??null;(0,v.useEffect)(()=>{j&&P!==null&&h.current!==P&&(h.current=P,d(`card`))},[j,P]);let F=e.length>1,R=u===`list`?F:u===`pill`||b!==null;R||d(`pill`);let V=R?u:`pill`;if(!D)return null;let H=F||b!==null,U=e=>O(e,e===b?T:null,l,s),W=async e=>{let t=T?.since??null;await g.current?.input(e),m(t),d(`term`)},G=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{...n(C.stack),children:e.slice(0,z).map((e,t)=>(0,y.jsx)(x,{agent:e.agent,dim:D.state===`your-turn`&&A===null,stacked:t>0},e.key))}),(0,y.jsx)(N,{text:U(D)}),F&&(0,y.jsxs)(`span`,{...n(C.muted),children:[`· `,s(`agentStatus.sessions`,{count:e.length})]})]}),K=[C.pill,A===`amber`&&C.amber,A===`grey`&&C.grey,A===null&&D.state===`your-turn`&&C.quiet],q=b?.turn?s(`agentStatus.turn`,{count:b.turn}):null;return(0,y.jsxs)(`div`,{"data-chrome":`agent-status`,"data-daemon-attention":T?.kind,"data-state":D.state??void 0,...n(C.dock),style:c?{bottom:L,left:12}:void 0,children:[V===`list`&&(0,y.jsx)(k,{now:l,rows:e,onOpen:()=>d(`card`)}),V===`card`&&b&&T&&(0,y.jsx)(w,{agent:b.agent,amber:j,attention:T,detail:q,label:U(b),trusted:o,onBack:F?()=>d(`list`):null,onCollapse:()=>d(`pill`),onSend:W,onTerminal:()=>d(`term`)}),V===`term`&&b&&T&&(0,y.jsx)(M,{agent:b.agent,attention:T,label:q?`${U(b)} · ${q}`:U(b),screen:_,trusted:o,onClose:()=>d(`card`),onSend:W}),H?(0,y.jsx)(`button`,{"aria-expanded":V!==`pill`,"data-agent-pill":``,"data-tone":A??void 0,type:`button`,...n(...K),onClick:()=>d(e=>e===`pill`?F?`list`:`card`:`pill`),children:G}):(0,y.jsx)(`div`,{"data-agent-pill":``,"data-tone":A??void 0,role:`status`,...n(...K,C.still),children:G})]})}export{V as AgentDock};
|