@go-go-golems/rag-evaluation-site 0.1.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/README.md +80 -0
- package/app/App.d.ts +8 -0
- package/app/index.d.ts +2 -0
- package/app/index.js +149 -0
- package/components/atoms/AnnotationBadge/AnnotationBadge.d.ts +9 -0
- package/components/atoms/AnnotationBadge/index.d.ts +2 -0
- package/components/atoms/Button/Button.d.ts +11 -0
- package/components/atoms/Button/index.d.ts +2 -0
- package/components/atoms/CheckboxRow/CheckboxRow.d.ts +8 -0
- package/components/atoms/CheckboxRow/index.d.ts +2 -0
- package/components/atoms/ContextKindSwatch/ContextKindSwatch.d.ts +11 -0
- package/components/atoms/ContextKindSwatch/index.d.ts +2 -0
- package/components/atoms/ContextStudioNavIcon/ContextStudioNavIcon.d.ts +8 -0
- package/components/atoms/ContextStudioNavIcon/index.d.ts +2 -0
- package/components/atoms/ErrorCallout/ErrorCallout.d.ts +6 -0
- package/components/atoms/ErrorCallout/index.d.ts +2 -0
- package/components/atoms/IconButton/IconButton.d.ts +9 -0
- package/components/atoms/IconButton/index.d.ts +2 -0
- package/components/atoms/SelectInput/SelectInput.d.ts +5 -0
- package/components/atoms/SelectInput/index.d.ts +2 -0
- package/components/atoms/TextInput/TextInput.d.ts +5 -0
- package/components/atoms/TextInput/index.d.ts +2 -0
- package/components/atoms/TranscriptRoleBadge/TranscriptRoleBadge.d.ts +8 -0
- package/components/atoms/TranscriptRoleBadge/index.d.ts +2 -0
- package/components/atoms/UploadGlyph/UploadGlyph.d.ts +6 -0
- package/components/atoms/UploadGlyph/index.d.ts +2 -0
- package/components/atoms/index.d.ts +12 -0
- package/components/foundation/Caption/Caption.d.ts +11 -0
- package/components/foundation/Caption/index.d.ts +2 -0
- package/components/foundation/CodeText/CodeText.d.ts +10 -0
- package/components/foundation/CodeText/index.d.ts +2 -0
- package/components/foundation/Divider/Divider.d.ts +6 -0
- package/components/foundation/Divider/index.d.ts +2 -0
- package/components/foundation/StatusText/StatusText.d.ts +9 -0
- package/components/foundation/StatusText/index.d.ts +2 -0
- package/components/foundation/Text/Text.d.ts +297 -0
- package/components/foundation/Text/index.d.ts +2 -0
- package/components/foundation/VisuallyHidden/VisuallyHidden.d.ts +6 -0
- package/components/foundation/VisuallyHidden/index.d.ts +2 -0
- package/components/foundation/index.d.ts +7 -0
- package/components/index.d.ts +6 -0
- package/components/layout/AppShell/AppShell.d.ts +8 -0
- package/components/layout/AppShell/index.d.ts +2 -0
- package/components/layout/DashboardGrid/DashboardGrid.d.ts +8 -0
- package/components/layout/DashboardGrid/index.d.ts +2 -0
- package/components/layout/FormRow/FormRow.d.ts +8 -0
- package/components/layout/FormRow/index.d.ts +2 -0
- package/components/layout/Inline/Inline.d.ts +11 -0
- package/components/layout/Inline/index.d.ts +2 -0
- package/components/layout/Panel/Panel.d.ts +10 -0
- package/components/layout/Panel/index.d.ts +2 -0
- package/components/layout/ScrollRegion/ScrollRegion.d.ts +7 -0
- package/components/layout/ScrollRegion/index.d.ts +2 -0
- package/components/layout/SectionBlock/SectionBlock.d.ts +11 -0
- package/components/layout/SectionBlock/index.d.ts +2 -0
- package/components/layout/SidebarShell/SidebarShell.d.ts +11 -0
- package/components/layout/SidebarShell/index.d.ts +2 -0
- package/components/layout/SlideShell/SlideShell.d.ts +16 -0
- package/components/layout/SlideShell/index.d.ts +2 -0
- package/components/layout/SplitPane/SplitPane.d.ts +10 -0
- package/components/layout/SplitPane/index.d.ts +2 -0
- package/components/layout/Stack/Stack.d.ts +10 -0
- package/components/layout/Stack/index.d.ts +2 -0
- package/components/layout/TabList/TabList.d.ts +13 -0
- package/components/layout/TabList/index.d.ts +2 -0
- package/components/layout/index.d.ts +13 -0
- package/components/molecules/AnchoredCommentCard/AnchoredCommentCard.d.ts +11 -0
- package/components/molecules/AnchoredCommentCard/index.d.ts +2 -0
- package/components/molecules/AnnotationNoteCard/AnnotationNoteCard.d.ts +9 -0
- package/components/molecules/AnnotationNoteCard/index.d.ts +2 -0
- package/components/molecules/AppNav/AppNav.d.ts +13 -0
- package/components/molecules/AppNav/index.d.ts +2 -0
- package/components/molecules/CheckList/CheckList.d.ts +11 -0
- package/components/molecules/CheckList/index.d.ts +2 -0
- package/components/molecules/ContextBudgetBar/ContextBudgetBar.d.ts +10 -0
- package/components/molecules/ContextBudgetBar/index.d.ts +2 -0
- package/components/molecules/ContextLegend/ContextLegend.d.ts +10 -0
- package/components/molecules/ContextLegend/index.d.ts +2 -0
- package/components/molecules/ContextStackDiagram/ContextStackDiagram.d.ts +8 -0
- package/components/molecules/ContextStackDiagram/index.d.ts +2 -0
- package/components/molecules/ContextStripDiagram/ContextStripDiagram.d.ts +10 -0
- package/components/molecules/ContextStripDiagram/index.d.ts +2 -0
- package/components/molecules/ContextTreemap/ContextTreemap.d.ts +8 -0
- package/components/molecules/ContextTreemap/index.d.ts +2 -0
- package/components/molecules/CourseStepNav/CourseStepNav.d.ts +9 -0
- package/components/molecules/CourseStepNav/index.d.ts +2 -0
- package/components/molecules/DataTable/DataTable.d.ts +19 -0
- package/components/molecules/DataTable/index.d.ts +2 -0
- package/components/molecules/DocumentListPanel/DocumentListPanel.d.ts +23 -0
- package/components/molecules/DocumentListPanel/index.d.ts +2 -0
- package/components/molecules/DocumentPreviewToolbar/DocumentPreviewToolbar.d.ts +11 -0
- package/components/molecules/DocumentPreviewToolbar/index.d.ts +2 -0
- package/components/molecules/FigureBlock/FigureBlock.d.ts +10 -0
- package/components/molecules/FigureBlock/index.d.ts +2 -0
- package/components/molecules/FileDropZone/FileDropZone.d.ts +14 -0
- package/components/molecules/FileDropZone/index.d.ts +2 -0
- package/components/molecules/KeyPointList/KeyPointList.d.ts +14 -0
- package/components/molecules/KeyPointList/index.d.ts +2 -0
- package/components/molecules/KeyValueStrip/KeyValueStrip.d.ts +10 -0
- package/components/molecules/KeyValueStrip/index.d.ts +2 -0
- package/components/molecules/MarkdownArticle/MarkdownArticle.d.ts +6 -0
- package/components/molecules/MarkdownArticle/index.d.ts +2 -0
- package/components/molecules/MetadataGrid/MetadataGrid.d.ts +14 -0
- package/components/molecules/MetadataGrid/index.d.ts +2 -0
- package/components/molecules/PersonSummary/PersonSummary.d.ts +9 -0
- package/components/molecules/PersonSummary/index.d.ts +2 -0
- package/components/molecules/SidebarNav/SidebarNav.d.ts +21 -0
- package/components/molecules/SidebarNav/index.d.ts +2 -0
- package/components/molecules/StepList/StepList.d.ts +15 -0
- package/components/molecules/StepList/index.d.ts +2 -0
- package/components/molecules/TranscriptMessageCard/TranscriptMessageCard.d.ts +11 -0
- package/components/molecules/TranscriptMessageCard/index.d.ts +2 -0
- package/components/molecules/TranscriptSessionHeader/TranscriptSessionHeader.d.ts +11 -0
- package/components/molecules/TranscriptSessionHeader/index.d.ts +2 -0
- package/components/molecules/index.d.ts +25 -0
- package/components/organisms/AnchoredCommentRail/AnchoredCommentRail.d.ts +10 -0
- package/components/organisms/AnchoredCommentRail/index.d.ts +2 -0
- package/components/organisms/AnnotationRailPanel/AnnotationRailPanel.d.ts +11 -0
- package/components/organisms/AnnotationRailPanel/index.d.ts +2 -0
- package/components/organisms/ContextDiagramPanel/ContextDiagramPanel.d.ts +9 -0
- package/components/organisms/ContextDiagramPanel/index.d.ts +2 -0
- package/components/organisms/ContextUploadDropArea/ContextUploadDropArea.d.ts +11 -0
- package/components/organisms/ContextUploadDropArea/index.d.ts +2 -0
- package/components/organisms/CourseLessonPanel/CourseLessonPanel.d.ts +9 -0
- package/components/organisms/CourseLessonPanel/index.d.ts +2 -0
- package/components/organisms/CourseSlidePanel/CourseSlidePanel.d.ts +13 -0
- package/components/organisms/CourseSlidePanel/index.d.ts +2 -0
- package/components/organisms/CourseStudioShell/CourseStudioShell.d.ts +13 -0
- package/components/organisms/CourseStudioShell/courseStudioNav.d.ts +3 -0
- package/components/organisms/CourseStudioShell/index.d.ts +3 -0
- package/components/organisms/HandoutDocumentShell/HandoutDocumentShell.d.ts +14 -0
- package/components/organisms/HandoutDocumentShell/index.d.ts +2 -0
- package/components/organisms/TranscriptReaderPanel/TranscriptReaderPanel.d.ts +13 -0
- package/components/organisms/TranscriptReaderPanel/index.d.ts +2 -0
- package/components/organisms/TranscriptWorkspacePanel/TranscriptWorkspacePanel.d.ts +13 -0
- package/components/organisms/TranscriptWorkspacePanel/index.d.ts +2 -0
- package/components/organisms/index.d.ts +11 -0
- package/context/fixtures.d.ts +13 -0
- package/context/index.d.ts +4 -0
- package/context/kinds.d.ts +22 -0
- package/context/types.d.ts +124 -0
- package/hooks/useWidgetPage.d.ts +19 -0
- package/index.d.ts +6 -0
- package/index.js +375 -0
- package/ir.js +32 -0
- package/package.json +58 -0
- package/styles.css +2 -0
- package/theme.css +53 -0
- package/useWidgetPage-B8iwybER.js +4419 -0
- package/widgets/WidgetRenderer.d.ts +8 -0
- package/widgets/actions.d.ts +19 -0
- package/widgets/cellRenderers.d.ts +11 -0
- package/widgets/index.d.ts +5 -0
- package/widgets/ir.d.ts +507 -0
|
@@ -0,0 +1,4419 @@
|
|
|
1
|
+
import { isWidgetNode as e } from "./ir.js";
|
|
2
|
+
import { createElement as t, useCallback as n, useEffect as r, useState as i } from "react";
|
|
3
|
+
//#region \0rolldown/runtime.js
|
|
4
|
+
var a = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), o = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
5
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
6
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/widgets/actions.ts
|
|
10
|
+
function s(e, t = {}, n) {
|
|
11
|
+
if (n) {
|
|
12
|
+
n(e, t);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (e.kind === "copy") {
|
|
16
|
+
let n = e.value ?? (e.field && t.row ? String(t.row[e.field] ?? "") : "");
|
|
17
|
+
n && navigator.clipboard?.writeText(n).catch(() => {});
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (e.kind === "event") {
|
|
21
|
+
window.dispatchEvent(new CustomEvent(e.event, { detail: {
|
|
22
|
+
...e.detail ?? {},
|
|
23
|
+
context: t
|
|
24
|
+
} }));
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (e.kind === "navigate") {
|
|
28
|
+
let n = l(e.to, t);
|
|
29
|
+
window.history.pushState(e.params ?? {}, "", n), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
e.kind === "server" && fetch(`/api/widget/actions/${encodeURIComponent(e.name)}`, {
|
|
33
|
+
method: "POST",
|
|
34
|
+
headers: { "Content-Type": "application/json" },
|
|
35
|
+
body: JSON.stringify({
|
|
36
|
+
payload: e.payload ?? {},
|
|
37
|
+
context: t
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function c(e, t, n) {
|
|
42
|
+
if (e) return () => s(e, t, n);
|
|
43
|
+
}
|
|
44
|
+
function l(e, t) {
|
|
45
|
+
return e.replace(/\$\{([^}]+)\}|\$([A-Za-z0-9_.-]+)/g, (e, n, r) => {
|
|
46
|
+
let i = u(n ?? r ?? "", t);
|
|
47
|
+
return encodeURIComponent(String(i ?? ""));
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function u(e, t) {
|
|
51
|
+
let n = e.split(".").filter(Boolean), r = t;
|
|
52
|
+
for (let e of n) {
|
|
53
|
+
if (!r || typeof r != "object") return;
|
|
54
|
+
r = r[e];
|
|
55
|
+
}
|
|
56
|
+
return r;
|
|
57
|
+
}
|
|
58
|
+
var d = {
|
|
59
|
+
root: "_root_n5d4d_1",
|
|
60
|
+
sizeBody: "_sizeBody_n5d4d_6",
|
|
61
|
+
sizeCompact: "_sizeCompact_n5d4d_10",
|
|
62
|
+
sizeMetadata: "_sizeMetadata_n5d4d_14",
|
|
63
|
+
sizeLabel: "_sizeLabel_n5d4d_18",
|
|
64
|
+
sizeMetric: "_sizeMetric_n5d4d_24",
|
|
65
|
+
tonePrimary: "_tonePrimary_n5d4d_28",
|
|
66
|
+
toneMuted: "_toneMuted_n5d4d_29",
|
|
67
|
+
toneInverse: "_toneInverse_n5d4d_30",
|
|
68
|
+
toneAccent: "_toneAccent_n5d4d_31",
|
|
69
|
+
toneSuccess: "_toneSuccess_n5d4d_32",
|
|
70
|
+
toneWarning: "_toneWarning_n5d4d_33",
|
|
71
|
+
toneDanger: "_toneDanger_n5d4d_34",
|
|
72
|
+
toneInherit: "_toneInherit_n5d4d_35",
|
|
73
|
+
weightRegular: "_weightRegular_n5d4d_37",
|
|
74
|
+
weightBold: "_weightBold_n5d4d_38",
|
|
75
|
+
alignStart: "_alignStart_n5d4d_40",
|
|
76
|
+
alignCenter: "_alignCenter_n5d4d_41",
|
|
77
|
+
alignEnd: "_alignEnd_n5d4d_42",
|
|
78
|
+
truncate: "_truncate_n5d4d_44"
|
|
79
|
+
}, f = {
|
|
80
|
+
body: d.sizeBody,
|
|
81
|
+
compact: d.sizeCompact,
|
|
82
|
+
metadata: d.sizeMetadata,
|
|
83
|
+
label: d.sizeLabel,
|
|
84
|
+
metric: d.sizeMetric
|
|
85
|
+
}, ee = {
|
|
86
|
+
primary: d.tonePrimary,
|
|
87
|
+
muted: d.toneMuted,
|
|
88
|
+
inverse: d.toneInverse,
|
|
89
|
+
accent: d.toneAccent,
|
|
90
|
+
success: d.toneSuccess,
|
|
91
|
+
warning: d.toneWarning,
|
|
92
|
+
danger: d.toneDanger,
|
|
93
|
+
inherit: d.toneInherit
|
|
94
|
+
}, p = {
|
|
95
|
+
regular: d.weightRegular,
|
|
96
|
+
bold: d.weightBold
|
|
97
|
+
}, m = {
|
|
98
|
+
start: d.alignStart,
|
|
99
|
+
center: d.alignCenter,
|
|
100
|
+
end: d.alignEnd
|
|
101
|
+
};
|
|
102
|
+
function h({ as: e = "p", size: n = "body", tone: r = "primary", weight: i = "regular", align: a = "start", truncate: o = !1, className: s, children: c, ...l }) {
|
|
103
|
+
return t(e, {
|
|
104
|
+
className: [
|
|
105
|
+
d.root,
|
|
106
|
+
f[n],
|
|
107
|
+
ee[r],
|
|
108
|
+
p[i],
|
|
109
|
+
m[a],
|
|
110
|
+
o ? d.truncate : "",
|
|
111
|
+
s ?? ""
|
|
112
|
+
].filter(Boolean).join(" "),
|
|
113
|
+
...l
|
|
114
|
+
}, c);
|
|
115
|
+
}
|
|
116
|
+
var g = {
|
|
117
|
+
root: "_root_rss1l_1",
|
|
118
|
+
inline: "_inline_rss1l_8",
|
|
119
|
+
block: "_block_rss1l_9",
|
|
120
|
+
muted: "_muted_rss1l_10",
|
|
121
|
+
accent: "_accent_rss1l_11",
|
|
122
|
+
copyable: "_copyable_rss1l_13"
|
|
123
|
+
}, te = /* @__PURE__ */ a(((e) => {
|
|
124
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
125
|
+
function r(e, n, r) {
|
|
126
|
+
var i = null;
|
|
127
|
+
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
128
|
+
else r = n;
|
|
129
|
+
return n = r.ref, {
|
|
130
|
+
$$typeof: t,
|
|
131
|
+
type: e,
|
|
132
|
+
key: i,
|
|
133
|
+
ref: n === void 0 ? null : n,
|
|
134
|
+
props: r
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
138
|
+
})), ne = /* @__PURE__ */ a(((e) => {
|
|
139
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
140
|
+
function t(e) {
|
|
141
|
+
if (e == null) return null;
|
|
142
|
+
if (typeof e == "function") return e.$$typeof === v ? null : e.displayName || e.name || null;
|
|
143
|
+
if (typeof e == "string") return e;
|
|
144
|
+
switch (e) {
|
|
145
|
+
case te: return "Fragment";
|
|
146
|
+
case re: return "Profiler";
|
|
147
|
+
case ne: return "StrictMode";
|
|
148
|
+
case oe: return "Suspense";
|
|
149
|
+
case se: return "SuspenseList";
|
|
150
|
+
case ue: return "Activity";
|
|
151
|
+
}
|
|
152
|
+
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
153
|
+
case g: return "Portal";
|
|
154
|
+
case ie: return e.displayName || "Context";
|
|
155
|
+
case _: return (e._context.displayName || "Context") + ".Consumer";
|
|
156
|
+
case ae:
|
|
157
|
+
var n = e.render;
|
|
158
|
+
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
159
|
+
case ce: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
160
|
+
case le:
|
|
161
|
+
n = e._payload, e = e._init;
|
|
162
|
+
try {
|
|
163
|
+
return t(e(n));
|
|
164
|
+
} catch {}
|
|
165
|
+
}
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
function n(e) {
|
|
169
|
+
return "" + e;
|
|
170
|
+
}
|
|
171
|
+
function r(e) {
|
|
172
|
+
try {
|
|
173
|
+
n(e);
|
|
174
|
+
var t = !1;
|
|
175
|
+
} catch {
|
|
176
|
+
t = !0;
|
|
177
|
+
}
|
|
178
|
+
if (t) {
|
|
179
|
+
t = console;
|
|
180
|
+
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
181
|
+
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function i(e) {
|
|
185
|
+
if (e === te) return "<>";
|
|
186
|
+
if (typeof e == "object" && e && e.$$typeof === le) return "<...>";
|
|
187
|
+
try {
|
|
188
|
+
var n = t(e);
|
|
189
|
+
return n ? "<" + n + ">" : "<...>";
|
|
190
|
+
} catch {
|
|
191
|
+
return "<...>";
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
function a() {
|
|
195
|
+
var e = de.A;
|
|
196
|
+
return e === null ? null : e.getOwner();
|
|
197
|
+
}
|
|
198
|
+
function s() {
|
|
199
|
+
return Error("react-stack-top-frame");
|
|
200
|
+
}
|
|
201
|
+
function c(e) {
|
|
202
|
+
if (y.call(e, "key")) {
|
|
203
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
204
|
+
if (t && t.isReactWarning) return !1;
|
|
205
|
+
}
|
|
206
|
+
return e.key !== void 0;
|
|
207
|
+
}
|
|
208
|
+
function l(e, t) {
|
|
209
|
+
function n() {
|
|
210
|
+
pe || (pe = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
211
|
+
}
|
|
212
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
213
|
+
get: n,
|
|
214
|
+
configurable: !0
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function u() {
|
|
218
|
+
var e = t(this.type);
|
|
219
|
+
return x[e] || (x[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
220
|
+
}
|
|
221
|
+
function d(e, t, n, r, i, a) {
|
|
222
|
+
var o = n.ref;
|
|
223
|
+
return e = {
|
|
224
|
+
$$typeof: h,
|
|
225
|
+
type: e,
|
|
226
|
+
key: t,
|
|
227
|
+
props: n,
|
|
228
|
+
_owner: r
|
|
229
|
+
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
230
|
+
enumerable: !1,
|
|
231
|
+
value: null
|
|
232
|
+
}) : Object.defineProperty(e, "ref", {
|
|
233
|
+
enumerable: !1,
|
|
234
|
+
get: u
|
|
235
|
+
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
236
|
+
configurable: !1,
|
|
237
|
+
enumerable: !1,
|
|
238
|
+
writable: !0,
|
|
239
|
+
value: 0
|
|
240
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
241
|
+
configurable: !1,
|
|
242
|
+
enumerable: !1,
|
|
243
|
+
writable: !0,
|
|
244
|
+
value: null
|
|
245
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
246
|
+
configurable: !1,
|
|
247
|
+
enumerable: !1,
|
|
248
|
+
writable: !0,
|
|
249
|
+
value: i
|
|
250
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
251
|
+
configurable: !1,
|
|
252
|
+
enumerable: !1,
|
|
253
|
+
writable: !0,
|
|
254
|
+
value: a
|
|
255
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
256
|
+
}
|
|
257
|
+
function f(e, n, i, o, s, u) {
|
|
258
|
+
var f = n.children;
|
|
259
|
+
if (f !== void 0) if (o) if (fe(f)) {
|
|
260
|
+
for (o = 0; o < f.length; o++) ee(f[o]);
|
|
261
|
+
Object.freeze && Object.freeze(f);
|
|
262
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
263
|
+
else ee(f);
|
|
264
|
+
if (y.call(n, "key")) {
|
|
265
|
+
f = t(e);
|
|
266
|
+
var p = Object.keys(n).filter(function(e) {
|
|
267
|
+
return e !== "key";
|
|
268
|
+
});
|
|
269
|
+
o = 0 < p.length ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}", he[f + o] || (p = 0 < p.length ? "{" + p.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, p, f), he[f + o] = !0);
|
|
270
|
+
}
|
|
271
|
+
if (f = null, i !== void 0 && (r(i), f = "" + i), c(n) && (r(n.key), f = "" + n.key), "key" in n) for (var m in i = {}, n) m !== "key" && (i[m] = n[m]);
|
|
272
|
+
else i = n;
|
|
273
|
+
return f && l(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), s, u);
|
|
274
|
+
}
|
|
275
|
+
function ee(e) {
|
|
276
|
+
p(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === le && (e._payload.status === "fulfilled" ? p(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
277
|
+
}
|
|
278
|
+
function p(e) {
|
|
279
|
+
return typeof e == "object" && !!e && e.$$typeof === h;
|
|
280
|
+
}
|
|
281
|
+
var m = o("react"), h = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), te = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), ie = Symbol.for("react.context"), ae = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), se = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), le = Symbol.for("react.lazy"), ue = Symbol.for("react.activity"), v = Symbol.for("react.client.reference"), de = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, fe = Array.isArray, b = console.createTask ? console.createTask : function() {
|
|
282
|
+
return null;
|
|
283
|
+
};
|
|
284
|
+
m = { react_stack_bottom_frame: function(e) {
|
|
285
|
+
return e();
|
|
286
|
+
} };
|
|
287
|
+
var pe, x = {}, S = m.react_stack_bottom_frame.bind(m, s)(), me = b(i(s)), he = {};
|
|
288
|
+
e.Fragment = te, e.jsx = function(e, t, n) {
|
|
289
|
+
var r = 1e4 > de.recentlyCreatedOwnerStacks++;
|
|
290
|
+
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : S, r ? b(i(e)) : me);
|
|
291
|
+
}, e.jsxs = function(e, t, n) {
|
|
292
|
+
var r = 1e4 > de.recentlyCreatedOwnerStacks++;
|
|
293
|
+
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : S, r ? b(i(e)) : me);
|
|
294
|
+
};
|
|
295
|
+
})();
|
|
296
|
+
})), re = /* @__PURE__ */ a(((e, t) => {
|
|
297
|
+
process.env.NODE_ENV === "production" ? t.exports = te() : t.exports = ne();
|
|
298
|
+
})), _ = re(), ie = {
|
|
299
|
+
primary: "",
|
|
300
|
+
muted: g.muted,
|
|
301
|
+
accent: g.accent
|
|
302
|
+
};
|
|
303
|
+
function ae({ as: e = "code", tone: t = "primary", display: n = "inline", copyable: r = !1, className: i, children: a, onClick: o, ...s }) {
|
|
304
|
+
let c = [
|
|
305
|
+
g.root,
|
|
306
|
+
n === "inline" ? g.inline : g.block,
|
|
307
|
+
ie[t],
|
|
308
|
+
r ? g.copyable : "",
|
|
309
|
+
i ?? ""
|
|
310
|
+
].filter(Boolean).join(" ");
|
|
311
|
+
return /* @__PURE__ */ (0, _.jsx)(e, {
|
|
312
|
+
className: c,
|
|
313
|
+
onClick: (e) => {
|
|
314
|
+
r && typeof a == "string" && navigator.clipboard?.writeText(a).catch(() => {}), o?.(e);
|
|
315
|
+
},
|
|
316
|
+
...s,
|
|
317
|
+
children: a
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
var oe = {
|
|
321
|
+
root: "_root_2cwmi_1",
|
|
322
|
+
pending: "_pending_2cwmi_5",
|
|
323
|
+
ready: "_ready_2cwmi_6",
|
|
324
|
+
running: "_running_2cwmi_7",
|
|
325
|
+
succeeded: "_succeeded_2cwmi_8",
|
|
326
|
+
done: "_done_2cwmi_9",
|
|
327
|
+
partial: "_partial_2cwmi_10",
|
|
328
|
+
warning: "_warning_2cwmi_11",
|
|
329
|
+
failed: "_failed_2cwmi_12",
|
|
330
|
+
error: "_error_2cwmi_13",
|
|
331
|
+
canceled: "_canceled_2cwmi_14"
|
|
332
|
+
}, se = {
|
|
333
|
+
pending: "◌",
|
|
334
|
+
ready: "◌",
|
|
335
|
+
running: "●",
|
|
336
|
+
succeeded: "✔",
|
|
337
|
+
done: "●",
|
|
338
|
+
partial: "◐",
|
|
339
|
+
warning: "⚠",
|
|
340
|
+
failed: "✘",
|
|
341
|
+
error: "✘",
|
|
342
|
+
canceled: "⊘"
|
|
343
|
+
};
|
|
344
|
+
function ce({ status: e, icon: t = !1, className: n, children: r, ...i }) {
|
|
345
|
+
let a = e.toLowerCase(), o = oe[a] ?? "", s = r ?? e;
|
|
346
|
+
return /* @__PURE__ */ (0, _.jsxs)("span", {
|
|
347
|
+
className: [
|
|
348
|
+
oe.root,
|
|
349
|
+
o,
|
|
350
|
+
n ?? ""
|
|
351
|
+
].filter(Boolean).join(" "),
|
|
352
|
+
...i,
|
|
353
|
+
children: [t ? `${se[a] ?? "?"} ` : "", s]
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
var le = {
|
|
357
|
+
root: "_root_1fiw6_1",
|
|
358
|
+
vertical: "_vertical_1fiw6_7"
|
|
359
|
+
};
|
|
360
|
+
//#endregion
|
|
361
|
+
//#region src/components/foundation/Divider/Divider.tsx
|
|
362
|
+
function ue({ orientation: e = "horizontal", className: t, ...n }) {
|
|
363
|
+
return /* @__PURE__ */ (0, _.jsx)("hr", {
|
|
364
|
+
"aria-orientation": e,
|
|
365
|
+
className: [
|
|
366
|
+
le.root,
|
|
367
|
+
e === "vertical" ? le.vertical : "",
|
|
368
|
+
t ?? ""
|
|
369
|
+
].filter(Boolean).join(" "),
|
|
370
|
+
...n
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
var v = {
|
|
374
|
+
root: "_root_kfqnk_1",
|
|
375
|
+
uppercase: "_uppercase_kfqnk_7",
|
|
376
|
+
truncate: "_truncate_kfqnk_8",
|
|
377
|
+
toneMuted: "_toneMuted_kfqnk_9",
|
|
378
|
+
toneAccent: "_toneAccent_kfqnk_10",
|
|
379
|
+
toneSuccess: "_toneSuccess_kfqnk_11",
|
|
380
|
+
toneWarning: "_toneWarning_kfqnk_12",
|
|
381
|
+
toneDanger: "_toneDanger_kfqnk_13",
|
|
382
|
+
toneInherit: "_toneInherit_kfqnk_14"
|
|
383
|
+
}, de = {
|
|
384
|
+
muted: v.toneMuted,
|
|
385
|
+
accent: v.toneAccent,
|
|
386
|
+
success: v.toneSuccess,
|
|
387
|
+
warning: v.toneWarning,
|
|
388
|
+
danger: v.toneDanger,
|
|
389
|
+
inherit: v.toneInherit
|
|
390
|
+
};
|
|
391
|
+
function y({ tone: e = "muted", transform: t = "none", truncate: n = !1, className: r, children: i, ...a }) {
|
|
392
|
+
return /* @__PURE__ */ (0, _.jsx)("span", {
|
|
393
|
+
className: [
|
|
394
|
+
v.root,
|
|
395
|
+
de[e],
|
|
396
|
+
t === "uppercase" ? v.uppercase : "",
|
|
397
|
+
n ? v.truncate : "",
|
|
398
|
+
r ?? ""
|
|
399
|
+
].filter(Boolean).join(" "),
|
|
400
|
+
"data-rag-foundation": "Caption",
|
|
401
|
+
...a,
|
|
402
|
+
children: i
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region src/widgets/cellRenderers.tsx
|
|
407
|
+
function fe(e, t, n) {
|
|
408
|
+
switch (e.kind) {
|
|
409
|
+
case "field": return S(x(t, e.field), e.fallback);
|
|
410
|
+
case "number": return me(x(t, e.field), e);
|
|
411
|
+
case "status": {
|
|
412
|
+
let n = S(x(t, e.field), e.fallback ?? "pending");
|
|
413
|
+
return /* @__PURE__ */ (0, _.jsx)(ce, {
|
|
414
|
+
status: n,
|
|
415
|
+
icon: e.icon,
|
|
416
|
+
children: n
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
case "caption": return /* @__PURE__ */ (0, _.jsx)(y, {
|
|
420
|
+
tone: e.tone,
|
|
421
|
+
children: S(x(t, e.field), e.fallback)
|
|
422
|
+
});
|
|
423
|
+
case "template": return he(e.template, t);
|
|
424
|
+
case "link": {
|
|
425
|
+
let n = S(x(t, e.hrefField), "#"), r = S(x(t, e.labelField), e.fallbackLabel ?? n);
|
|
426
|
+
return /* @__PURE__ */ (0, _.jsx)("a", {
|
|
427
|
+
href: n,
|
|
428
|
+
target: e.target,
|
|
429
|
+
rel: e.target === "_blank" ? "noreferrer" : void 0,
|
|
430
|
+
children: r
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
case "constant": return b(e.value, n);
|
|
434
|
+
default: return /* @__PURE__ */ (0, _.jsx)(y, {
|
|
435
|
+
tone: "danger",
|
|
436
|
+
children: "Unsupported cell"
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
function b(t, n) {
|
|
441
|
+
return t == null || t === !1 ? null : e(t) ? n(t) : String(t);
|
|
442
|
+
}
|
|
443
|
+
function pe(e, t) {
|
|
444
|
+
return typeof t == "string" ? S(x(e, t), "") : "field" in t ? S(x(e, t.field), "") : he(t.template, e);
|
|
445
|
+
}
|
|
446
|
+
function x(e, t) {
|
|
447
|
+
let n = t.split(".").filter(Boolean), r = e;
|
|
448
|
+
for (let e of n) {
|
|
449
|
+
if (!r || typeof r != "object") return;
|
|
450
|
+
r = r[e];
|
|
451
|
+
}
|
|
452
|
+
return r;
|
|
453
|
+
}
|
|
454
|
+
function S(e, t = "") {
|
|
455
|
+
return e == null ? t : String(e);
|
|
456
|
+
}
|
|
457
|
+
function me(e, t) {
|
|
458
|
+
let n = typeof e == "number" ? e : Number(e);
|
|
459
|
+
return Number.isFinite(n) ? t.format === "fixed" ? n.toFixed(t.digits ?? 2) : Math.round(n).toLocaleString() : t.fallback ?? "";
|
|
460
|
+
}
|
|
461
|
+
function he(e, t) {
|
|
462
|
+
return e.replace(/\$\{([^}]+)\}|\$([A-Za-z0-9_.-]+)/g, (e, n, r) => S(x(t, n ?? r ?? ""), ""));
|
|
463
|
+
}
|
|
464
|
+
var ge = {
|
|
465
|
+
root: "_root_1gwp3_1",
|
|
466
|
+
primary: "_primary_1gwp3_20",
|
|
467
|
+
selected: "_selected_1gwp3_21",
|
|
468
|
+
compact: "_compact_1gwp3_36",
|
|
469
|
+
normal: "_normal_1gwp3_41"
|
|
470
|
+
};
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region src/components/atoms/Button/Button.tsx
|
|
473
|
+
function C({ variant: e = "default", size: t = "normal", selected: n = !1, className: r, children: i, ...a }) {
|
|
474
|
+
return /* @__PURE__ */ (0, _.jsx)("button", {
|
|
475
|
+
type: "button",
|
|
476
|
+
className: [
|
|
477
|
+
ge.root,
|
|
478
|
+
e === "primary" ? ge.primary : "",
|
|
479
|
+
n ? ge.selected : "",
|
|
480
|
+
t === "compact" ? ge.compact : ge.normal,
|
|
481
|
+
r ?? ""
|
|
482
|
+
].filter(Boolean).join(" "),
|
|
483
|
+
"data-rag-atom": "Button",
|
|
484
|
+
...a,
|
|
485
|
+
children: i
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
var _e = { root: "_root_e3xd9_1" };
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region src/components/atoms/ErrorCallout/ErrorCallout.tsx
|
|
491
|
+
function ve({ className: e, children: t, ...n }) {
|
|
492
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
493
|
+
className: [_e.root, e ?? ""].filter(Boolean).join(" "),
|
|
494
|
+
role: "alert",
|
|
495
|
+
"data-rag-atom": "ErrorCallout",
|
|
496
|
+
...n,
|
|
497
|
+
children: t
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
var ye = { root: "_root_im5yi_1" };
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region src/components/atoms/SelectInput/SelectInput.tsx
|
|
503
|
+
function be({ className: e, children: t, ...n }) {
|
|
504
|
+
return /* @__PURE__ */ (0, _.jsx)("select", {
|
|
505
|
+
className: [ye.root, e ?? ""].filter(Boolean).join(" "),
|
|
506
|
+
"data-rag-atom": "SelectInput",
|
|
507
|
+
...n,
|
|
508
|
+
children: t
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
var xe = { root: "_root_1bc5y_1" };
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/components/atoms/TextInput/TextInput.tsx
|
|
514
|
+
function Se({ className: e, ...t }) {
|
|
515
|
+
return /* @__PURE__ */ (0, _.jsx)("input", {
|
|
516
|
+
className: [xe.root, e ?? ""].filter(Boolean).join(" "),
|
|
517
|
+
"data-rag-atom": "TextInput",
|
|
518
|
+
...t
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
//#endregion
|
|
522
|
+
//#region src/context/kinds.ts
|
|
523
|
+
var w = "#000000", Ce = "#0000CC", we = "#CC0000", Te = [
|
|
524
|
+
"system",
|
|
525
|
+
"instruction",
|
|
526
|
+
"context",
|
|
527
|
+
"conversation",
|
|
528
|
+
"summary",
|
|
529
|
+
"retrieval",
|
|
530
|
+
"tool",
|
|
531
|
+
"result",
|
|
532
|
+
"generated",
|
|
533
|
+
"annotation",
|
|
534
|
+
"course",
|
|
535
|
+
"evicted",
|
|
536
|
+
"active",
|
|
537
|
+
"empty",
|
|
538
|
+
"other"
|
|
539
|
+
], Ee = {
|
|
540
|
+
empty: {
|
|
541
|
+
fill: "#ffffff",
|
|
542
|
+
stroke: w,
|
|
543
|
+
dashed: !0,
|
|
544
|
+
label: "#666666",
|
|
545
|
+
name: "free space"
|
|
546
|
+
},
|
|
547
|
+
context: {
|
|
548
|
+
fill: "#ffffff",
|
|
549
|
+
stroke: w,
|
|
550
|
+
label: w,
|
|
551
|
+
name: "context / history"
|
|
552
|
+
},
|
|
553
|
+
conversation: {
|
|
554
|
+
fill: "#ffffff",
|
|
555
|
+
stroke: w,
|
|
556
|
+
label: w,
|
|
557
|
+
name: "conversation"
|
|
558
|
+
},
|
|
559
|
+
instruction: {
|
|
560
|
+
fill: "var(--rag-context-pattern-checker)",
|
|
561
|
+
stroke: w,
|
|
562
|
+
label: w,
|
|
563
|
+
name: "instruction",
|
|
564
|
+
pattern: "checker"
|
|
565
|
+
},
|
|
566
|
+
system: {
|
|
567
|
+
fill: "var(--rag-context-pattern-checker)",
|
|
568
|
+
stroke: w,
|
|
569
|
+
label: w,
|
|
570
|
+
name: "system / instructions",
|
|
571
|
+
pattern: "checker"
|
|
572
|
+
},
|
|
573
|
+
summary: {
|
|
574
|
+
fill: "var(--rag-context-pattern-diagonal)",
|
|
575
|
+
stroke: w,
|
|
576
|
+
label: w,
|
|
577
|
+
name: "summary / memory",
|
|
578
|
+
pattern: "diagonal"
|
|
579
|
+
},
|
|
580
|
+
retrieval: {
|
|
581
|
+
fill: "var(--rag-context-pattern-stipple)",
|
|
582
|
+
stroke: w,
|
|
583
|
+
label: w,
|
|
584
|
+
name: "retrieval",
|
|
585
|
+
pattern: "stipple"
|
|
586
|
+
},
|
|
587
|
+
tool: {
|
|
588
|
+
fill: "var(--rag-context-pattern-stipple)",
|
|
589
|
+
stroke: w,
|
|
590
|
+
label: w,
|
|
591
|
+
name: "tool call",
|
|
592
|
+
pattern: "stipple"
|
|
593
|
+
},
|
|
594
|
+
result: {
|
|
595
|
+
fill: "var(--rag-context-pattern-stipple)",
|
|
596
|
+
stroke: w,
|
|
597
|
+
label: w,
|
|
598
|
+
name: "tool result",
|
|
599
|
+
pattern: "stipple"
|
|
600
|
+
},
|
|
601
|
+
generated: {
|
|
602
|
+
fill: "var(--rag-context-pattern-diagonal-dense)",
|
|
603
|
+
stroke: w,
|
|
604
|
+
label: w,
|
|
605
|
+
name: "generated / scratchpad",
|
|
606
|
+
pattern: "diagonalDense"
|
|
607
|
+
},
|
|
608
|
+
annotation: {
|
|
609
|
+
fill: "var(--rag-context-pattern-diagonal)",
|
|
610
|
+
stroke: w,
|
|
611
|
+
label: w,
|
|
612
|
+
name: "annotation",
|
|
613
|
+
pattern: "diagonal"
|
|
614
|
+
},
|
|
615
|
+
course: {
|
|
616
|
+
fill: "#ffffff",
|
|
617
|
+
stroke: w,
|
|
618
|
+
label: w,
|
|
619
|
+
name: "course material"
|
|
620
|
+
},
|
|
621
|
+
evicted: {
|
|
622
|
+
fill: "var(--rag-context-pattern-cross)",
|
|
623
|
+
stroke: w,
|
|
624
|
+
label: w,
|
|
625
|
+
name: "evicted / compressed",
|
|
626
|
+
pattern: "cross"
|
|
627
|
+
},
|
|
628
|
+
active: {
|
|
629
|
+
fill: Ce,
|
|
630
|
+
stroke: w,
|
|
631
|
+
label: "#ffffff",
|
|
632
|
+
name: "active (current)"
|
|
633
|
+
},
|
|
634
|
+
other: {
|
|
635
|
+
fill: "#ffffff",
|
|
636
|
+
stroke: w,
|
|
637
|
+
label: w,
|
|
638
|
+
name: "other"
|
|
639
|
+
}
|
|
640
|
+
}, De = {
|
|
641
|
+
empty: {
|
|
642
|
+
fill: "#ffffff",
|
|
643
|
+
dashed: !0,
|
|
644
|
+
label: "#666666"
|
|
645
|
+
},
|
|
646
|
+
context: {
|
|
647
|
+
fill: "#ffffff",
|
|
648
|
+
label: "#000000"
|
|
649
|
+
},
|
|
650
|
+
conversation: {
|
|
651
|
+
fill: "#ffffff",
|
|
652
|
+
label: "#000000"
|
|
653
|
+
},
|
|
654
|
+
instruction: {
|
|
655
|
+
fill: "#dddddd",
|
|
656
|
+
label: "#000000",
|
|
657
|
+
pattern: void 0
|
|
658
|
+
},
|
|
659
|
+
system: {
|
|
660
|
+
fill: "#dddddd",
|
|
661
|
+
label: "#000000",
|
|
662
|
+
pattern: void 0
|
|
663
|
+
},
|
|
664
|
+
summary: {
|
|
665
|
+
fill: "#eeeeee",
|
|
666
|
+
label: "#000000",
|
|
667
|
+
pattern: void 0
|
|
668
|
+
},
|
|
669
|
+
retrieval: {
|
|
670
|
+
fill: "#d2d2d2",
|
|
671
|
+
label: "#000000",
|
|
672
|
+
pattern: void 0
|
|
673
|
+
},
|
|
674
|
+
tool: {
|
|
675
|
+
fill: "#d2d2d2",
|
|
676
|
+
label: "#000000",
|
|
677
|
+
pattern: void 0
|
|
678
|
+
},
|
|
679
|
+
result: {
|
|
680
|
+
fill: "#c4c4c4",
|
|
681
|
+
label: "#000000",
|
|
682
|
+
pattern: void 0
|
|
683
|
+
},
|
|
684
|
+
generated: {
|
|
685
|
+
fill: "#a0a0a0",
|
|
686
|
+
label: "#000000",
|
|
687
|
+
pattern: void 0
|
|
688
|
+
},
|
|
689
|
+
annotation: {
|
|
690
|
+
fill: "#eeeeee",
|
|
691
|
+
label: "#000000",
|
|
692
|
+
pattern: void 0
|
|
693
|
+
},
|
|
694
|
+
course: {
|
|
695
|
+
fill: "#ffffff",
|
|
696
|
+
label: "#000000"
|
|
697
|
+
},
|
|
698
|
+
evicted: {
|
|
699
|
+
fill: "#6a6a6a",
|
|
700
|
+
label: "#ffffff",
|
|
701
|
+
pattern: void 0
|
|
702
|
+
},
|
|
703
|
+
active: {
|
|
704
|
+
fill: Ce,
|
|
705
|
+
label: "#ffffff"
|
|
706
|
+
},
|
|
707
|
+
other: {
|
|
708
|
+
fill: "#ffffff",
|
|
709
|
+
label: "#000000"
|
|
710
|
+
}
|
|
711
|
+
}, Oe = {
|
|
712
|
+
empty: {
|
|
713
|
+
fill: "#ffffff",
|
|
714
|
+
stroke: "#999999",
|
|
715
|
+
dashed: !0,
|
|
716
|
+
label: "#666666"
|
|
717
|
+
},
|
|
718
|
+
context: {
|
|
719
|
+
fill: "#ffffff",
|
|
720
|
+
strokeWidth: 1.25,
|
|
721
|
+
label: "#000000",
|
|
722
|
+
pattern: void 0
|
|
723
|
+
},
|
|
724
|
+
conversation: {
|
|
725
|
+
fill: "#ffffff",
|
|
726
|
+
strokeWidth: 1.25,
|
|
727
|
+
label: "#000000",
|
|
728
|
+
pattern: void 0
|
|
729
|
+
},
|
|
730
|
+
instruction: {
|
|
731
|
+
fill: "#ffffff",
|
|
732
|
+
strokeWidth: 2.5,
|
|
733
|
+
label: "#000000",
|
|
734
|
+
pattern: void 0
|
|
735
|
+
},
|
|
736
|
+
system: {
|
|
737
|
+
fill: "#ffffff",
|
|
738
|
+
strokeWidth: 2.5,
|
|
739
|
+
label: "#000000",
|
|
740
|
+
pattern: void 0
|
|
741
|
+
},
|
|
742
|
+
summary: {
|
|
743
|
+
fill: "#ffffff",
|
|
744
|
+
dashed: !0,
|
|
745
|
+
label: "#000000",
|
|
746
|
+
pattern: void 0
|
|
747
|
+
},
|
|
748
|
+
retrieval: {
|
|
749
|
+
fill: "#ffffff",
|
|
750
|
+
dotted: !0,
|
|
751
|
+
label: "#000000",
|
|
752
|
+
pattern: void 0
|
|
753
|
+
},
|
|
754
|
+
tool: {
|
|
755
|
+
fill: "#ffffff",
|
|
756
|
+
dotted: !0,
|
|
757
|
+
label: "#000000",
|
|
758
|
+
pattern: void 0
|
|
759
|
+
},
|
|
760
|
+
result: {
|
|
761
|
+
fill: "#ffffff",
|
|
762
|
+
dotted: !0,
|
|
763
|
+
label: "#000000",
|
|
764
|
+
pattern: void 0
|
|
765
|
+
},
|
|
766
|
+
generated: {
|
|
767
|
+
fill: "#ffffff",
|
|
768
|
+
strokeWidth: 2.5,
|
|
769
|
+
dashed: !0,
|
|
770
|
+
label: "#000000",
|
|
771
|
+
pattern: void 0
|
|
772
|
+
},
|
|
773
|
+
annotation: {
|
|
774
|
+
fill: "#ffffff",
|
|
775
|
+
dashed: !0,
|
|
776
|
+
label: "#000000",
|
|
777
|
+
pattern: void 0
|
|
778
|
+
},
|
|
779
|
+
course: {
|
|
780
|
+
fill: "#ffffff",
|
|
781
|
+
strokeWidth: 1.25,
|
|
782
|
+
label: "#000000"
|
|
783
|
+
},
|
|
784
|
+
evicted: {
|
|
785
|
+
fill: "#ffffff",
|
|
786
|
+
inner: !0,
|
|
787
|
+
dashed: !0,
|
|
788
|
+
label: "#000000",
|
|
789
|
+
pattern: void 0
|
|
790
|
+
},
|
|
791
|
+
active: {
|
|
792
|
+
fill: Ce,
|
|
793
|
+
label: "#ffffff"
|
|
794
|
+
},
|
|
795
|
+
other: {
|
|
796
|
+
fill: "#ffffff",
|
|
797
|
+
label: "#000000"
|
|
798
|
+
}
|
|
799
|
+
};
|
|
800
|
+
function ke(e, t = "pattern") {
|
|
801
|
+
let n = Ae(e) ? e : "other", r = Ee[n];
|
|
802
|
+
return t === "tone" ? {
|
|
803
|
+
...r,
|
|
804
|
+
...De[n],
|
|
805
|
+
stroke: De[n]?.stroke ?? "#000000"
|
|
806
|
+
} : t === "outline" ? {
|
|
807
|
+
...r,
|
|
808
|
+
...Oe[n],
|
|
809
|
+
stroke: Oe[n]?.stroke ?? "#000000"
|
|
810
|
+
} : r;
|
|
811
|
+
}
|
|
812
|
+
function T(e) {
|
|
813
|
+
return ke(e).name;
|
|
814
|
+
}
|
|
815
|
+
function Ae(e) {
|
|
816
|
+
return Te.includes(e);
|
|
817
|
+
}
|
|
818
|
+
//#endregion
|
|
819
|
+
//#region src/context/fixtures.ts
|
|
820
|
+
var je = 2e5, Me = [
|
|
821
|
+
{
|
|
822
|
+
id: "t03",
|
|
823
|
+
title: "Turn 3 — warming up",
|
|
824
|
+
subtitle: "Agent has read the repo map and the failing test.",
|
|
825
|
+
limit: je,
|
|
826
|
+
parts: [
|
|
827
|
+
{
|
|
828
|
+
id: "t03-system",
|
|
829
|
+
label: "system + tools",
|
|
830
|
+
kind: "system",
|
|
831
|
+
tokens: 7200,
|
|
832
|
+
note: "instructions + tool schemas"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
id: "t03-project",
|
|
836
|
+
label: "project context",
|
|
837
|
+
kind: "context",
|
|
838
|
+
tokens: 4100,
|
|
839
|
+
note: "CLAUDE.md, repo map"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
id: "t03-conversation",
|
|
843
|
+
label: "conversation",
|
|
844
|
+
kind: "context",
|
|
845
|
+
tokens: 5200,
|
|
846
|
+
note: "3 turns so far"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
id: "t03-file-reads",
|
|
850
|
+
label: "file reads",
|
|
851
|
+
kind: "result",
|
|
852
|
+
tokens: 9800,
|
|
853
|
+
note: "test + 2 source files"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
id: "t03-task",
|
|
857
|
+
label: "current task",
|
|
858
|
+
kind: "active",
|
|
859
|
+
tokens: 1400,
|
|
860
|
+
note: "fix failing test"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
id: "t03-empty",
|
|
864
|
+
label: "free space",
|
|
865
|
+
kind: "empty",
|
|
866
|
+
tokens: 162300
|
|
867
|
+
}
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
id: "t14",
|
|
872
|
+
title: "Turn 14 — deep in the bug",
|
|
873
|
+
subtitle: "Many tool results accumulated; scratchpad reasoning growing.",
|
|
874
|
+
limit: je,
|
|
875
|
+
selectedPartId: "t14-file-reads",
|
|
876
|
+
parts: [
|
|
877
|
+
{
|
|
878
|
+
id: "t14-system",
|
|
879
|
+
label: "system + tools",
|
|
880
|
+
kind: "system",
|
|
881
|
+
tokens: 7200,
|
|
882
|
+
note: "instructions + tool schemas"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
id: "t14-project",
|
|
886
|
+
label: "project context",
|
|
887
|
+
kind: "context",
|
|
888
|
+
tokens: 4100,
|
|
889
|
+
note: "CLAUDE.md, repo map"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
id: "t14-summary",
|
|
893
|
+
label: "summary",
|
|
894
|
+
kind: "summary",
|
|
895
|
+
tokens: 3400,
|
|
896
|
+
note: "turns 1–6 compressed"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
id: "t14-conversation",
|
|
900
|
+
label: "conversation",
|
|
901
|
+
kind: "context",
|
|
902
|
+
tokens: 21800,
|
|
903
|
+
note: "turns 7–14"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
id: "t14-file-reads",
|
|
907
|
+
label: "file reads",
|
|
908
|
+
kind: "result",
|
|
909
|
+
tokens: 38600,
|
|
910
|
+
note: "6 files + grep output"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
id: "t14-test-output",
|
|
914
|
+
label: "test output",
|
|
915
|
+
kind: "result",
|
|
916
|
+
tokens: 12400,
|
|
917
|
+
note: "stack traces"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
id: "t14-scratchpad",
|
|
921
|
+
label: "scratchpad",
|
|
922
|
+
kind: "generated",
|
|
923
|
+
tokens: 9200,
|
|
924
|
+
note: "hypotheses, plan"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
id: "t14-task",
|
|
928
|
+
label: "current task",
|
|
929
|
+
kind: "active",
|
|
930
|
+
tokens: 1900,
|
|
931
|
+
note: "patch the parser"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
id: "t14-empty",
|
|
935
|
+
label: "free space",
|
|
936
|
+
kind: "empty",
|
|
937
|
+
tokens: 91700
|
|
938
|
+
}
|
|
939
|
+
]
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
id: "t31",
|
|
943
|
+
title: "Turn 31 — at the limit",
|
|
944
|
+
subtitle: "Window full. Old turns evicted; results re-summarized to reclaim space.",
|
|
945
|
+
limit: je,
|
|
946
|
+
parts: [
|
|
947
|
+
{
|
|
948
|
+
id: "t31-system",
|
|
949
|
+
label: "system + tools",
|
|
950
|
+
kind: "system",
|
|
951
|
+
tokens: 7200,
|
|
952
|
+
note: "instructions + tool schemas"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
id: "t31-project",
|
|
956
|
+
label: "project context",
|
|
957
|
+
kind: "context",
|
|
958
|
+
tokens: 4100,
|
|
959
|
+
note: "CLAUDE.md, repo map"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
id: "t31-evicted",
|
|
963
|
+
label: "evicted",
|
|
964
|
+
kind: "evicted",
|
|
965
|
+
tokens: 28400,
|
|
966
|
+
note: "turns 1–18 dropped"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
id: "t31-summary",
|
|
970
|
+
label: "summary",
|
|
971
|
+
kind: "summary",
|
|
972
|
+
tokens: 8600,
|
|
973
|
+
note: "rolling summary"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
id: "t31-conversation",
|
|
977
|
+
label: "conversation",
|
|
978
|
+
kind: "context",
|
|
979
|
+
tokens: 41200,
|
|
980
|
+
note: "turns 19–31"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
id: "t31-file-reads",
|
|
984
|
+
label: "file reads",
|
|
985
|
+
kind: "result",
|
|
986
|
+
tokens: 64800,
|
|
987
|
+
note: "12 files in working set"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
id: "t31-scratchpad",
|
|
991
|
+
label: "scratchpad",
|
|
992
|
+
kind: "generated",
|
|
993
|
+
tokens: 22600,
|
|
994
|
+
note: "long reasoning trace"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
id: "t31-task",
|
|
998
|
+
label: "current task",
|
|
999
|
+
kind: "active",
|
|
1000
|
+
tokens: 2100,
|
|
1001
|
+
note: "verify the fix"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
id: "t31-empty",
|
|
1005
|
+
label: "free space",
|
|
1006
|
+
kind: "empty",
|
|
1007
|
+
tokens: 21e3
|
|
1008
|
+
}
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
id: "over",
|
|
1013
|
+
title: "Turn 31 — before reclaim (over budget)",
|
|
1014
|
+
subtitle: "What the naïve append-everything window would have looked like.",
|
|
1015
|
+
limit: je,
|
|
1016
|
+
parts: [
|
|
1017
|
+
{
|
|
1018
|
+
id: "over-system",
|
|
1019
|
+
label: "system + tools",
|
|
1020
|
+
kind: "system",
|
|
1021
|
+
tokens: 7200
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
id: "over-project",
|
|
1025
|
+
label: "project context",
|
|
1026
|
+
kind: "context",
|
|
1027
|
+
tokens: 4100
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
id: "over-conversation",
|
|
1031
|
+
label: "conversation (all)",
|
|
1032
|
+
kind: "context",
|
|
1033
|
+
tokens: 88200
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
id: "over-file-reads",
|
|
1037
|
+
label: "file reads (all)",
|
|
1038
|
+
kind: "result",
|
|
1039
|
+
tokens: 96400
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
id: "over-scratchpad",
|
|
1043
|
+
label: "scratchpad",
|
|
1044
|
+
kind: "generated",
|
|
1045
|
+
tokens: 31600
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
id: "over-task",
|
|
1049
|
+
label: "current task",
|
|
1050
|
+
kind: "active",
|
|
1051
|
+
tokens: 2100
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
}
|
|
1055
|
+
], Ne = {
|
|
1056
|
+
id: "parser-session",
|
|
1057
|
+
title: "Coding-agent transcript — parser fix",
|
|
1058
|
+
subtitle: "Annotated transcript fixture from the context-viewer prototype.",
|
|
1059
|
+
selectedAnnotationId: "task-framing",
|
|
1060
|
+
messages: [
|
|
1061
|
+
{
|
|
1062
|
+
id: "m1",
|
|
1063
|
+
role: "user",
|
|
1064
|
+
tokens: 320,
|
|
1065
|
+
text: "The test `parser.test.ts › handles nested arrays` is failing on main. Can you fix it?"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
id: "m2",
|
|
1069
|
+
role: "assistant",
|
|
1070
|
+
tokens: 180,
|
|
1071
|
+
text: "I'll start by reading the failing test and the parser it exercises.",
|
|
1072
|
+
annotationIds: ["task-framing"]
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
id: "m3",
|
|
1076
|
+
role: "tool",
|
|
1077
|
+
name: "read_file",
|
|
1078
|
+
tokens: 2400,
|
|
1079
|
+
text: "parser.test.ts (148 lines)\nsrc/parser.ts (412 lines)",
|
|
1080
|
+
annotationIds: ["tool-result-cost"]
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
id: "m4",
|
|
1084
|
+
role: "assistant",
|
|
1085
|
+
tokens: 540,
|
|
1086
|
+
text: "The test expects `parseArray` to recurse into nested brackets, but the current implementation only handles one level. Let me run the test to confirm the failure mode."
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
id: "m5",
|
|
1090
|
+
role: "tool",
|
|
1091
|
+
name: "run_test",
|
|
1092
|
+
tokens: 1900,
|
|
1093
|
+
text: "FAIL parser.test.ts\n ● handles nested arrays\n Expected: [[1,2],[3]]\n Received: [\"[1\",\"2]\",\"[3]\"]\n at parseArray (src/parser.ts:218)",
|
|
1094
|
+
annotationIds: ["stack-trace-noise"]
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
id: "m6",
|
|
1098
|
+
role: "assistant",
|
|
1099
|
+
tokens: 880,
|
|
1100
|
+
text: "Confirmed — `parseArray` splits on commas without tracking bracket depth. I'll rewrite it to maintain a depth counter and recurse.",
|
|
1101
|
+
annotationIds: ["scratchpad-reasoning"]
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
id: "m7",
|
|
1105
|
+
role: "tool",
|
|
1106
|
+
name: "edit_file",
|
|
1107
|
+
tokens: 1200,
|
|
1108
|
+
text: "src/parser.ts — rewrote parseArray (lines 198–240)"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
id: "m8",
|
|
1112
|
+
role: "tool",
|
|
1113
|
+
name: "run_test",
|
|
1114
|
+
tokens: 760,
|
|
1115
|
+
text: "PASS parser.test.ts (12 tests)"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
id: "m9",
|
|
1119
|
+
role: "assistant",
|
|
1120
|
+
tokens: 240,
|
|
1121
|
+
text: "All 12 tests pass. The fix tracks bracket depth and recurses on nested arrays. Want me to add a regression test for deeply-nested input?",
|
|
1122
|
+
annotationIds: ["window-rebuilt"]
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
id: "m10",
|
|
1126
|
+
role: "user",
|
|
1127
|
+
tokens: 60,
|
|
1128
|
+
text: "Yes please."
|
|
1129
|
+
}
|
|
1130
|
+
],
|
|
1131
|
+
annotations: [
|
|
1132
|
+
{
|
|
1133
|
+
id: "task-framing",
|
|
1134
|
+
targetMessageId: "m2",
|
|
1135
|
+
kind: "context",
|
|
1136
|
+
label: "Task framing",
|
|
1137
|
+
text: "The current task is small but high-value — it stays pinned at the bottom of every window for the rest of the session."
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
id: "tool-result-cost",
|
|
1141
|
+
targetMessageId: "m3",
|
|
1142
|
+
kind: "result",
|
|
1143
|
+
label: "Tool result cost",
|
|
1144
|
+
text: "Two file reads are cheap now, but reads compound — by turn 14 the working set is 38k."
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
id: "stack-trace-noise",
|
|
1148
|
+
targetMessageId: "m5",
|
|
1149
|
+
kind: "result",
|
|
1150
|
+
label: "Stack traces are noisy",
|
|
1151
|
+
text: "Test output carries stack traces. Keep the assertion and first frame; the rest is a summarization candidate."
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
id: "scratchpad-reasoning",
|
|
1155
|
+
targetMessageId: "m6",
|
|
1156
|
+
kind: "generated",
|
|
1157
|
+
label: "Scratchpad reasoning",
|
|
1158
|
+
text: "Reasoning tokens are generated, not retrieved. Useful in-turn, but rarely worth carrying forward verbatim."
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
id: "window-rebuilt",
|
|
1162
|
+
targetMessageId: "m9",
|
|
1163
|
+
kind: "active",
|
|
1164
|
+
label: "Window rebuilt here",
|
|
1165
|
+
text: "Before this reply, the window was rebuilt: the failing run_test output was summarized to one line now that it's resolved."
|
|
1166
|
+
}
|
|
1167
|
+
]
|
|
1168
|
+
}, Pe = {
|
|
1169
|
+
id: "context-window-engineering",
|
|
1170
|
+
kicker: "LIVE WORKSHOP · SESSION 04",
|
|
1171
|
+
title: "Context Window Engineering",
|
|
1172
|
+
tagline: "What fits, what falls out, and why. A hands-on session on designing the prompt that the model actually sees.",
|
|
1173
|
+
when: "Thursday, June 18, 2026 · 6:30 – 8:30 PM",
|
|
1174
|
+
where: "South Park Commons · San Francisco",
|
|
1175
|
+
format: "In person · 24 seats · laptops required",
|
|
1176
|
+
price: "Free for members",
|
|
1177
|
+
instructor: {
|
|
1178
|
+
name: "M. Calder",
|
|
1179
|
+
role: "Applied ML, Developer Tools",
|
|
1180
|
+
bio: "Builds agent runtimes; has spent more nights staring at token budgets than is healthy."
|
|
1181
|
+
},
|
|
1182
|
+
blurb: "Every model call is a window of fixed size. The difference between an agent that finishes the job and one that loops forever is usually not the model — it's what you packed into that window.",
|
|
1183
|
+
outcomes: [
|
|
1184
|
+
"Read any context window as a budget of competing claims on space",
|
|
1185
|
+
"Diagram a window four ways — strip, stack, budget, and treemap",
|
|
1186
|
+
"Decide what to summarize, what to evict, and what to pin",
|
|
1187
|
+
"Instrument a coding agent and watch its window churn turn by turn"
|
|
1188
|
+
],
|
|
1189
|
+
agenda: [
|
|
1190
|
+
{
|
|
1191
|
+
id: "agenda-01",
|
|
1192
|
+
number: "01",
|
|
1193
|
+
title: "The window as a budget",
|
|
1194
|
+
description: "Fixed size, competing tenants. Why everything is a trade.",
|
|
1195
|
+
duration: "20 min"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
id: "agenda-02",
|
|
1199
|
+
number: "02",
|
|
1200
|
+
title: "Anatomy of a call",
|
|
1201
|
+
description: "System, context, results, scratchpad, the current task.",
|
|
1202
|
+
duration: "25 min"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
id: "agenda-03",
|
|
1206
|
+
number: "03",
|
|
1207
|
+
title: "Growth & truncation",
|
|
1208
|
+
description: "What falls out when the window fills, and how to choose.",
|
|
1209
|
+
duration: "20 min"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
id: "agenda-04",
|
|
1213
|
+
number: "04",
|
|
1214
|
+
title: "The agent loop",
|
|
1215
|
+
description: "Rebuild, don't append. Perceive → think → act → observe.",
|
|
1216
|
+
duration: "25 min"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
id: "agenda-05",
|
|
1220
|
+
number: "05",
|
|
1221
|
+
title: "Reclaiming space",
|
|
1222
|
+
description: "Summarize, evict, retrieve, pin. Live on a real session.",
|
|
1223
|
+
duration: "25 min"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
id: "agenda-06",
|
|
1227
|
+
number: "06",
|
|
1228
|
+
title: "Workshop",
|
|
1229
|
+
description: "Instrument your own agent and annotate its window.",
|
|
1230
|
+
duration: "30 min"
|
|
1231
|
+
}
|
|
1232
|
+
]
|
|
1233
|
+
}, Fe = [
|
|
1234
|
+
{
|
|
1235
|
+
id: "slide-01",
|
|
1236
|
+
number: "01",
|
|
1237
|
+
kicker: "MODULE 01",
|
|
1238
|
+
title: "The window is a fixed budget",
|
|
1239
|
+
view: "budget",
|
|
1240
|
+
snapshotId: "t14",
|
|
1241
|
+
notes: [
|
|
1242
|
+
"Every model call gets a window of fixed size.",
|
|
1243
|
+
"Instructions, history, results, reasoning and the task all compete for the same space.",
|
|
1244
|
+
"If it doesn't fit, the model can't see it. Headroom is the whole game."
|
|
1245
|
+
]
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
id: "slide-02",
|
|
1249
|
+
number: "02",
|
|
1250
|
+
kicker: "MODULE 02",
|
|
1251
|
+
title: "Anatomy of a single call",
|
|
1252
|
+
view: "stack",
|
|
1253
|
+
snapshotId: "t14",
|
|
1254
|
+
notes: [
|
|
1255
|
+
"A call is a layered document: durable layers on top, volatile ones below.",
|
|
1256
|
+
"System and project context are stable. Results and scratchpad churn every turn.",
|
|
1257
|
+
"The current task sits at the bottom and is never evicted."
|
|
1258
|
+
]
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
id: "slide-03",
|
|
1262
|
+
number: "03",
|
|
1263
|
+
kicker: "MODULE 03",
|
|
1264
|
+
title: "Composition at a glance",
|
|
1265
|
+
view: "strip",
|
|
1266
|
+
snapshotId: "t14",
|
|
1267
|
+
notes: [
|
|
1268
|
+
"Laid flat, the window reads left to right as a strip of segments.",
|
|
1269
|
+
"Separators mark where one tenant ends and the next begins.",
|
|
1270
|
+
"This is the fastest way to sanity-check what you packed."
|
|
1271
|
+
]
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
id: "slide-04",
|
|
1275
|
+
number: "04",
|
|
1276
|
+
kicker: "MODULE 04",
|
|
1277
|
+
title: "Where the tokens actually go",
|
|
1278
|
+
view: "treemap",
|
|
1279
|
+
snapshotId: "t31",
|
|
1280
|
+
notes: [
|
|
1281
|
+
"Area equals tokens. The biggest box is usually not the one you think.",
|
|
1282
|
+
"Tool results and file reads dominate long sessions — not the conversation.",
|
|
1283
|
+
"Treemaps make the expensive tenants impossible to miss."
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
id: "slide-05",
|
|
1288
|
+
number: "05",
|
|
1289
|
+
kicker: "MODULE 05",
|
|
1290
|
+
title: "Growth & truncation",
|
|
1291
|
+
view: "budget",
|
|
1292
|
+
snapshotId: "t31",
|
|
1293
|
+
notes: [
|
|
1294
|
+
"As the session runs, new information is added every turn.",
|
|
1295
|
+
"When the limit is reached, the oldest, lowest-value content is dropped.",
|
|
1296
|
+
"Evicted turns are gone unless they were summarized first."
|
|
1297
|
+
]
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
id: "slide-06",
|
|
1301
|
+
number: "06",
|
|
1302
|
+
kicker: "MODULE 06",
|
|
1303
|
+
title: "Reclaim, don't append",
|
|
1304
|
+
view: "budget",
|
|
1305
|
+
snapshotId: "over",
|
|
1306
|
+
notes: [
|
|
1307
|
+
"Append-everything blows the budget — here the same session runs 26% over.",
|
|
1308
|
+
"Summarize resolved results, evict stale turns, retrieve on demand.",
|
|
1309
|
+
"Rebuild the window every turn around what matters now."
|
|
1310
|
+
]
|
|
1311
|
+
}
|
|
1312
|
+
], Ie = [
|
|
1313
|
+
{
|
|
1314
|
+
id: "comment-file-reads",
|
|
1315
|
+
anchorX: .3,
|
|
1316
|
+
anchorY: .52,
|
|
1317
|
+
author: "you",
|
|
1318
|
+
text: "This file-reads block is 38k tokens — biggest single tenant. Candidate to summarize once the bug is found.",
|
|
1319
|
+
time: "2m",
|
|
1320
|
+
status: "open"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
id: "comment-scratchpad",
|
|
1324
|
+
anchorX: .74,
|
|
1325
|
+
anchorY: .5,
|
|
1326
|
+
author: "Priya",
|
|
1327
|
+
text: "Why is the scratchpad carried forward? Drop it after the step completes.",
|
|
1328
|
+
time: "just now",
|
|
1329
|
+
status: "open"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
id: "comment-summary",
|
|
1333
|
+
anchorX: .18,
|
|
1334
|
+
anchorY: .3,
|
|
1335
|
+
author: "Manuel",
|
|
1336
|
+
text: "Resolved tool output can collapse into the rolling summary after the assertion is understood.",
|
|
1337
|
+
time: "resolved",
|
|
1338
|
+
status: "resolved"
|
|
1339
|
+
}
|
|
1340
|
+
], Le = {
|
|
1341
|
+
intro: "Everything from tonight, to take home. Slides, the diagram source, and a one-page field guide.",
|
|
1342
|
+
docs: [
|
|
1343
|
+
{
|
|
1344
|
+
id: "fieldguide",
|
|
1345
|
+
title: "The Context Window — Field Guide",
|
|
1346
|
+
file: "context-window-field-guide.md",
|
|
1347
|
+
format: "Markdown",
|
|
1348
|
+
size: "11 KB",
|
|
1349
|
+
description: "One-page reference: the six ideas, the four diagrams, and the reclaim checklist.",
|
|
1350
|
+
body: "# The Context Window — Field Guide\n\nEvery model call is a **fixed-size document**. The model can only reason over the instructions, history, retrieved context, tool results, summaries, and task framing that fit in that document.\n\n## The one idea\n\nTreat the context window as a workbench, not a filing cabinet. Everything on the workbench must earn its place right now.\n\n- **Pin the current task** — requirements and acceptance criteria stay visible.\n- **Keep exact evidence only while it is active** — resolved tool output becomes summary plus source pointer.\n- **Rebuild every turn** — choose the next window deliberately instead of appending forever.\n\n## Budget table\n\n| Tenant | Keep verbatim when | Reclaim strategy |\n| --- | --- | --- |\n| System instructions | Always relevant | Keep pinned |\n| Tool output | It contains an unresolved error | Summarize after resolution |\n| File reads | The next patch depends on exact lines | Keep excerpts with paths |\n| Conversation | It changes requirements | Summarize decisions |\n\n## The four views\n\n1. Strip — read the whole window left to right.\n2. Stack — compare durable and volatile layers.\n3. Budget — check headroom and overflow.\n4. Treemap — find the biggest token tenants.\n\n> If it is not in the prompt, the model cannot use it. Saved files matter only after retrieval.\n\n### Minimal instrumentation\n\nTrack `tokens_by_kind` for system, context, conversation, results, generated text, active task, evicted text, and empty space."
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
id: "slides-pdf",
|
|
1354
|
+
title: "Slide Deck",
|
|
1355
|
+
file: "context-window-engineering.pdf",
|
|
1356
|
+
format: "PDF",
|
|
1357
|
+
size: "1.4 MB",
|
|
1358
|
+
description: "Printable deck for the six workshop modules.",
|
|
1359
|
+
body: "PDF preview is not available in this static Storybook fixture."
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
id: "diagram-json",
|
|
1363
|
+
title: "Diagram source (JSON)",
|
|
1364
|
+
file: "context-window-diagram.json",
|
|
1365
|
+
format: "JSON",
|
|
1366
|
+
size: "6 KB",
|
|
1367
|
+
description: "Token segment data used by the visualizer examples.",
|
|
1368
|
+
body: "{ \"limit\": 200000, \"parts\": [] }"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
id: "checklist",
|
|
1372
|
+
title: "Reclaim Checklist",
|
|
1373
|
+
file: "reclaim-checklist.md",
|
|
1374
|
+
format: "Markdown",
|
|
1375
|
+
size: "3 KB",
|
|
1376
|
+
description: "The order to cut things when the window fills.",
|
|
1377
|
+
body: "# Reclaim Checklist\n\n- [ ] Is the current task pinned?\n- [ ] Have resolved tool results been summarized?\n- [ ] Is the rolling summary still accurate?\n- [ ] Are stale file reads replaced by path + line references?\n- [ ] Did the next action survive compaction?"
|
|
1378
|
+
}
|
|
1379
|
+
]
|
|
1380
|
+
};
|
|
1381
|
+
function Re(e, t = {}) {
|
|
1382
|
+
return e.parts.reduce((e, n) => !t.includeEmpty && n.kind === "empty" ? e : e + n.tokens, 0);
|
|
1383
|
+
}
|
|
1384
|
+
function ze(e) {
|
|
1385
|
+
return e.limit <= 0 ? 0 : Re(e) / e.limit;
|
|
1386
|
+
}
|
|
1387
|
+
var E = {
|
|
1388
|
+
root: "_root_7tnun_1",
|
|
1389
|
+
sm: "_sm_7tnun_11",
|
|
1390
|
+
md: "_md_7tnun_16",
|
|
1391
|
+
lg: "_lg_7tnun_21",
|
|
1392
|
+
selected: "_selected_7tnun_26",
|
|
1393
|
+
dashed: "_dashed_7tnun_31",
|
|
1394
|
+
dotted: "_dotted_7tnun_35",
|
|
1395
|
+
inner: "_inner_7tnun_39",
|
|
1396
|
+
checker: "_checker_7tnun_43",
|
|
1397
|
+
diagonal: "_diagonal_7tnun_54",
|
|
1398
|
+
diagonalDense: "_diagonalDense_7tnun_59",
|
|
1399
|
+
stipple: "_stipple_7tnun_64",
|
|
1400
|
+
cross: "_cross_7tnun_70",
|
|
1401
|
+
overflow: "_overflow_7tnun_77"
|
|
1402
|
+
};
|
|
1403
|
+
//#endregion
|
|
1404
|
+
//#region src/components/atoms/ContextKindSwatch/ContextKindSwatch.tsx
|
|
1405
|
+
function Be({ kind: e, mode: t = "pattern", size: n = "md", selected: r = !1, className: i, style: a, ...o }) {
|
|
1406
|
+
let s = ke(e, t), c = T(e);
|
|
1407
|
+
return /* @__PURE__ */ (0, _.jsx)("span", {
|
|
1408
|
+
className: [
|
|
1409
|
+
E.root,
|
|
1410
|
+
E[n],
|
|
1411
|
+
s.pattern ? E[s.pattern] : "",
|
|
1412
|
+
s.dashed ? E.dashed : "",
|
|
1413
|
+
s.dotted ? E.dotted : "",
|
|
1414
|
+
s.inner ? E.inner : "",
|
|
1415
|
+
r ? E.selected : "",
|
|
1416
|
+
i ?? ""
|
|
1417
|
+
].filter(Boolean).join(" "),
|
|
1418
|
+
"data-rag-atom": "ContextKindSwatch",
|
|
1419
|
+
"data-kind": e,
|
|
1420
|
+
"data-mode": t,
|
|
1421
|
+
"aria-label": c,
|
|
1422
|
+
title: c,
|
|
1423
|
+
style: {
|
|
1424
|
+
"--rag-context-swatch-fill": s.fill,
|
|
1425
|
+
"--rag-context-swatch-stroke": s.stroke,
|
|
1426
|
+
"--rag-context-swatch-stroke-width": `${s.strokeWidth ?? 1}px`,
|
|
1427
|
+
...a
|
|
1428
|
+
},
|
|
1429
|
+
...o
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
var Ve = {
|
|
1433
|
+
root: "_root_j1d2u_1",
|
|
1434
|
+
user: "_user_j1d2u_2",
|
|
1435
|
+
assistant: "_assistant_j1d2u_3",
|
|
1436
|
+
tool: "_tool_j1d2u_4",
|
|
1437
|
+
system: "_system_j1d2u_5",
|
|
1438
|
+
developer: "_developer_j1d2u_5",
|
|
1439
|
+
other: "_other_j1d2u_6"
|
|
1440
|
+
};
|
|
1441
|
+
//#endregion
|
|
1442
|
+
//#region src/components/atoms/TranscriptRoleBadge/TranscriptRoleBadge.tsx
|
|
1443
|
+
function He({ role: e, name: t, className: n, ...r }) {
|
|
1444
|
+
return /* @__PURE__ */ (0, _.jsx)("span", {
|
|
1445
|
+
className: [
|
|
1446
|
+
Ve.root,
|
|
1447
|
+
Ve[e] ?? Ve.other,
|
|
1448
|
+
n ?? ""
|
|
1449
|
+
].filter(Boolean).join(" "),
|
|
1450
|
+
"data-rag-atom": "TranscriptRoleBadge",
|
|
1451
|
+
"data-role": e,
|
|
1452
|
+
...r,
|
|
1453
|
+
children: t ?? e
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
var Ue = {
|
|
1457
|
+
root: "_root_1dvu0_1",
|
|
1458
|
+
selected: "_selected_1dvu0_2"
|
|
1459
|
+
};
|
|
1460
|
+
//#endregion
|
|
1461
|
+
//#region src/components/atoms/AnnotationBadge/AnnotationBadge.tsx
|
|
1462
|
+
function We({ kind: e, label: t, selected: n = !1, className: r, ...i }) {
|
|
1463
|
+
return /* @__PURE__ */ (0, _.jsxs)("span", {
|
|
1464
|
+
className: [
|
|
1465
|
+
Ue.root,
|
|
1466
|
+
n ? Ue.selected : "",
|
|
1467
|
+
r ?? ""
|
|
1468
|
+
].filter(Boolean).join(" "),
|
|
1469
|
+
"data-rag-atom": "AnnotationBadge",
|
|
1470
|
+
"data-kind": e,
|
|
1471
|
+
...i,
|
|
1472
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Be, {
|
|
1473
|
+
kind: e,
|
|
1474
|
+
size: "sm",
|
|
1475
|
+
selected: n
|
|
1476
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", { children: t })]
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
var Ge = {
|
|
1480
|
+
root: "_root_ga2ee_1",
|
|
1481
|
+
fill: "_fill_ga2ee_7",
|
|
1482
|
+
header: "_header_ga2ee_11",
|
|
1483
|
+
body: "_body_ga2ee_26",
|
|
1484
|
+
condensed: "_condensed_ga2ee_30"
|
|
1485
|
+
};
|
|
1486
|
+
//#endregion
|
|
1487
|
+
//#region src/components/layout/Panel/Panel.tsx
|
|
1488
|
+
function Ke({ title: e, actions: t, density: n = "normal", fill: r = !1, className: i, children: a, ...o }) {
|
|
1489
|
+
return /* @__PURE__ */ (0, _.jsxs)("section", {
|
|
1490
|
+
className: [
|
|
1491
|
+
Ge.root,
|
|
1492
|
+
r ? Ge.fill : "",
|
|
1493
|
+
i ?? ""
|
|
1494
|
+
].filter(Boolean).join(" "),
|
|
1495
|
+
"data-rag-layout": "Panel",
|
|
1496
|
+
...o,
|
|
1497
|
+
children: [(e || t) && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1498
|
+
className: Ge.header,
|
|
1499
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", { children: e }), t]
|
|
1500
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1501
|
+
className: n === "condensed" ? Ge.condensed : Ge.body,
|
|
1502
|
+
children: a
|
|
1503
|
+
})]
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
var D = {
|
|
1507
|
+
root: "_root_15awp_1",
|
|
1508
|
+
gapXs: "_gapXs_15awp_6",
|
|
1509
|
+
gapSm: "_gapSm_15awp_7",
|
|
1510
|
+
gapMd: "_gapMd_15awp_8",
|
|
1511
|
+
gapLg: "_gapLg_15awp_9",
|
|
1512
|
+
gapXl: "_gapXl_15awp_10",
|
|
1513
|
+
alignStretch: "_alignStretch_15awp_12",
|
|
1514
|
+
alignStart: "_alignStart_15awp_13",
|
|
1515
|
+
alignCenter: "_alignCenter_15awp_14",
|
|
1516
|
+
alignEnd: "_alignEnd_15awp_15"
|
|
1517
|
+
}, qe = {
|
|
1518
|
+
xs: D.gapXs,
|
|
1519
|
+
sm: D.gapSm,
|
|
1520
|
+
md: D.gapMd,
|
|
1521
|
+
lg: D.gapLg,
|
|
1522
|
+
xl: D.gapXl
|
|
1523
|
+
}, Je = {
|
|
1524
|
+
stretch: D.alignStretch,
|
|
1525
|
+
start: D.alignStart,
|
|
1526
|
+
center: D.alignCenter,
|
|
1527
|
+
end: D.alignEnd
|
|
1528
|
+
};
|
|
1529
|
+
function Ye({ gap: e = "md", align: t = "stretch", className: n, children: r, ...i }) {
|
|
1530
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1531
|
+
className: [
|
|
1532
|
+
D.root,
|
|
1533
|
+
qe[e],
|
|
1534
|
+
Je[t],
|
|
1535
|
+
n ?? ""
|
|
1536
|
+
].filter(Boolean).join(" "),
|
|
1537
|
+
"data-rag-layout": "Stack",
|
|
1538
|
+
...i,
|
|
1539
|
+
children: r
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
var O = {
|
|
1543
|
+
root: "_root_8hatg_1",
|
|
1544
|
+
wrap: "_wrap_8hatg_6",
|
|
1545
|
+
noWrap: "_noWrap_8hatg_7",
|
|
1546
|
+
gapXs: "_gapXs_8hatg_8",
|
|
1547
|
+
gapSm: "_gapSm_8hatg_9",
|
|
1548
|
+
gapMd: "_gapMd_8hatg_10",
|
|
1549
|
+
gapLg: "_gapLg_8hatg_11",
|
|
1550
|
+
justifyStart: "_justifyStart_8hatg_12",
|
|
1551
|
+
justifyBetween: "_justifyBetween_8hatg_13",
|
|
1552
|
+
justifyEnd: "_justifyEnd_8hatg_14"
|
|
1553
|
+
}, Xe = {
|
|
1554
|
+
xs: O.gapXs,
|
|
1555
|
+
sm: O.gapSm,
|
|
1556
|
+
md: O.gapMd,
|
|
1557
|
+
lg: O.gapLg
|
|
1558
|
+
}, Ze = {
|
|
1559
|
+
start: O.justifyStart,
|
|
1560
|
+
between: O.justifyBetween,
|
|
1561
|
+
end: O.justifyEnd
|
|
1562
|
+
};
|
|
1563
|
+
function Qe({ gap: e = "sm", justify: t = "start", wrap: n = !0, className: r, children: i, ...a }) {
|
|
1564
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1565
|
+
className: [
|
|
1566
|
+
O.root,
|
|
1567
|
+
Xe[e],
|
|
1568
|
+
Ze[t],
|
|
1569
|
+
n ? O.wrap : O.noWrap,
|
|
1570
|
+
r ?? ""
|
|
1571
|
+
].filter(Boolean).join(" "),
|
|
1572
|
+
"data-rag-layout": "Inline",
|
|
1573
|
+
...a,
|
|
1574
|
+
children: i
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
var $e = {
|
|
1578
|
+
root: "_root_rmtbr_1",
|
|
1579
|
+
searchWorkbench: "_searchWorkbench_rmtbr_7",
|
|
1580
|
+
corpusExplorer: "_corpusExplorer_rmtbr_12",
|
|
1581
|
+
twoColumn: "_twoColumn_rmtbr_17"
|
|
1582
|
+
}, et = {
|
|
1583
|
+
searchWorkbench: $e.searchWorkbench,
|
|
1584
|
+
corpusExplorer: $e.corpusExplorer,
|
|
1585
|
+
twoColumn: $e.twoColumn
|
|
1586
|
+
};
|
|
1587
|
+
function tt({ recipe: e = "twoColumn", className: t, children: n, ...r }) {
|
|
1588
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1589
|
+
className: [
|
|
1590
|
+
$e.root,
|
|
1591
|
+
et[e],
|
|
1592
|
+
t ?? ""
|
|
1593
|
+
].filter(Boolean).join(" "),
|
|
1594
|
+
"data-rag-layout": "DashboardGrid",
|
|
1595
|
+
"data-rag-layout-recipe": e,
|
|
1596
|
+
...r,
|
|
1597
|
+
children: n
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
var nt = {
|
|
1601
|
+
root: "_root_1rq8r_1",
|
|
1602
|
+
header: "_header_1rq8r_2",
|
|
1603
|
+
body: "_body_1rq8r_3",
|
|
1604
|
+
sidebar: "_sidebar_1rq8r_4",
|
|
1605
|
+
main: "_main_1rq8r_5"
|
|
1606
|
+
};
|
|
1607
|
+
//#endregion
|
|
1608
|
+
//#region src/components/layout/AppShell/AppShell.tsx
|
|
1609
|
+
function rt({ header: e, sidebar: t, className: n, children: r, ...i }) {
|
|
1610
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1611
|
+
className: [nt.root, n ?? ""].filter(Boolean).join(" "),
|
|
1612
|
+
"data-rag-layout": "AppShell",
|
|
1613
|
+
...i,
|
|
1614
|
+
children: [e && /* @__PURE__ */ (0, _.jsx)("header", {
|
|
1615
|
+
className: nt.header,
|
|
1616
|
+
children: e
|
|
1617
|
+
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1618
|
+
className: nt.body,
|
|
1619
|
+
children: [t && /* @__PURE__ */ (0, _.jsx)("aside", {
|
|
1620
|
+
className: nt.sidebar,
|
|
1621
|
+
children: t
|
|
1622
|
+
}), /* @__PURE__ */ (0, _.jsx)("main", {
|
|
1623
|
+
className: nt.main,
|
|
1624
|
+
children: r
|
|
1625
|
+
})]
|
|
1626
|
+
})]
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
var it = {
|
|
1630
|
+
root: "_root_37934_1",
|
|
1631
|
+
y: "_y_37934_2",
|
|
1632
|
+
x: "_x_37934_3",
|
|
1633
|
+
both: "_both_37934_4"
|
|
1634
|
+
};
|
|
1635
|
+
//#endregion
|
|
1636
|
+
//#region src/components/layout/ScrollRegion/ScrollRegion.tsx
|
|
1637
|
+
function at({ axis: e = "y", className: t, children: n, ...r }) {
|
|
1638
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1639
|
+
className: [
|
|
1640
|
+
it.root,
|
|
1641
|
+
it[e],
|
|
1642
|
+
t ?? ""
|
|
1643
|
+
].filter(Boolean).join(" "),
|
|
1644
|
+
"data-rag-layout": "ScrollRegion",
|
|
1645
|
+
...r,
|
|
1646
|
+
children: n
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
var ot = {
|
|
1650
|
+
root: "_root_bo8as_1",
|
|
1651
|
+
item: "_item_bo8as_2",
|
|
1652
|
+
active: "_active_bo8as_4"
|
|
1653
|
+
};
|
|
1654
|
+
//#endregion
|
|
1655
|
+
//#region src/components/layout/TabList/TabList.tsx
|
|
1656
|
+
function st({ items: e, activeId: t, onChange: n, ariaLabel: r = "Tabs" }) {
|
|
1657
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1658
|
+
className: ot.root,
|
|
1659
|
+
role: "tablist",
|
|
1660
|
+
"aria-label": r,
|
|
1661
|
+
"data-rag-layout": "TabList",
|
|
1662
|
+
children: e.map((e) => /* @__PURE__ */ (0, _.jsx)("button", {
|
|
1663
|
+
type: "button",
|
|
1664
|
+
role: "tab",
|
|
1665
|
+
"aria-selected": e.id === t,
|
|
1666
|
+
className: [ot.item, e.id === t ? ot.active : ""].filter(Boolean).join(" "),
|
|
1667
|
+
onClick: () => n(e.id),
|
|
1668
|
+
children: e.label
|
|
1669
|
+
}, e.id))
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
var ct = {
|
|
1673
|
+
root: "_root_t0l9w_1",
|
|
1674
|
+
label: "_label_t0l9w_2",
|
|
1675
|
+
control: "_control_t0l9w_3",
|
|
1676
|
+
hint: "_hint_t0l9w_4"
|
|
1677
|
+
};
|
|
1678
|
+
//#endregion
|
|
1679
|
+
//#region src/components/layout/FormRow/FormRow.tsx
|
|
1680
|
+
function lt({ label: e, control: t, hint: n, className: r, ...i }) {
|
|
1681
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1682
|
+
className: [ct.root, r ?? ""].filter(Boolean).join(" "),
|
|
1683
|
+
"data-rag-layout": "FormRow",
|
|
1684
|
+
...i,
|
|
1685
|
+
children: [
|
|
1686
|
+
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1687
|
+
className: ct.label,
|
|
1688
|
+
children: e
|
|
1689
|
+
}),
|
|
1690
|
+
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1691
|
+
className: ct.control,
|
|
1692
|
+
children: t
|
|
1693
|
+
}),
|
|
1694
|
+
n && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1695
|
+
className: ct.hint,
|
|
1696
|
+
children: n
|
|
1697
|
+
})
|
|
1698
|
+
]
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
var ut = {
|
|
1702
|
+
root: "_root_145df_1",
|
|
1703
|
+
normal: "_normal_145df_2",
|
|
1704
|
+
spacious: "_spacious_145df_3",
|
|
1705
|
+
"divider-top": "_divider-top_145df_4",
|
|
1706
|
+
"divider-bottom": "_divider-bottom_145df_5",
|
|
1707
|
+
"divider-both": "_divider-both_145df_6",
|
|
1708
|
+
label: "_label_145df_7",
|
|
1709
|
+
caption: "_caption_145df_8",
|
|
1710
|
+
body: "_body_145df_9"
|
|
1711
|
+
};
|
|
1712
|
+
//#endregion
|
|
1713
|
+
//#region src/components/layout/SectionBlock/SectionBlock.tsx
|
|
1714
|
+
function dt({ as: e = "section", label: t, caption: n, density: r = "normal", divider: i = "none", className: a, children: o, ...s }) {
|
|
1715
|
+
return /* @__PURE__ */ (0, _.jsxs)(e, {
|
|
1716
|
+
className: [
|
|
1717
|
+
ut.root,
|
|
1718
|
+
ut[r],
|
|
1719
|
+
ut[`divider-${i}`],
|
|
1720
|
+
a ?? ""
|
|
1721
|
+
].filter(Boolean).join(" "),
|
|
1722
|
+
"data-rag-layout": "SectionBlock",
|
|
1723
|
+
...s,
|
|
1724
|
+
children: [
|
|
1725
|
+
t && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1726
|
+
className: ut.label,
|
|
1727
|
+
children: t
|
|
1728
|
+
}),
|
|
1729
|
+
n && /* @__PURE__ */ (0, _.jsx)(y, {
|
|
1730
|
+
className: ut.caption,
|
|
1731
|
+
children: n
|
|
1732
|
+
}),
|
|
1733
|
+
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1734
|
+
className: ut.body,
|
|
1735
|
+
children: o
|
|
1736
|
+
})
|
|
1737
|
+
]
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1740
|
+
var ft = {
|
|
1741
|
+
root: "_root_1o5gv_1",
|
|
1742
|
+
balanced: "_balanced_1o5gv_2",
|
|
1743
|
+
leftNarrow: "_leftNarrow_1o5gv_3",
|
|
1744
|
+
rightNarrow: "_rightNarrow_1o5gv_4",
|
|
1745
|
+
course: "_course_1o5gv_5",
|
|
1746
|
+
sidebar: "_sidebar_1o5gv_6",
|
|
1747
|
+
divider: "_divider_1o5gv_7",
|
|
1748
|
+
pane: "_pane_1o5gv_7",
|
|
1749
|
+
gutterMd: "_gutterMd_1o5gv_9",
|
|
1750
|
+
gutterLg: "_gutterLg_1o5gv_11"
|
|
1751
|
+
};
|
|
1752
|
+
//#endregion
|
|
1753
|
+
//#region src/components/layout/SplitPane/SplitPane.tsx
|
|
1754
|
+
function pt({ left: e, right: t, ratio: n = "balanced", divider: r = !1, gutter: i = "none", className: a, ...o }) {
|
|
1755
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1756
|
+
className: [
|
|
1757
|
+
ft.root,
|
|
1758
|
+
ft[n],
|
|
1759
|
+
r ? ft.divider : "",
|
|
1760
|
+
i === "none" ? "" : ft[`gutter${i[0].toUpperCase()}${i.slice(1)}`],
|
|
1761
|
+
a ?? ""
|
|
1762
|
+
].filter(Boolean).join(" "),
|
|
1763
|
+
"data-rag-layout": "SplitPane",
|
|
1764
|
+
...o,
|
|
1765
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1766
|
+
className: ft.pane,
|
|
1767
|
+
children: e
|
|
1768
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1769
|
+
className: ft.pane,
|
|
1770
|
+
children: t
|
|
1771
|
+
})]
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1774
|
+
var k = {
|
|
1775
|
+
root: "_root_106h4_1",
|
|
1776
|
+
header: "_header_106h4_12",
|
|
1777
|
+
metaRow: "_metaRow_106h4_20",
|
|
1778
|
+
title: "_title_106h4_27",
|
|
1779
|
+
subtitle: "_subtitle_106h4_35",
|
|
1780
|
+
body: "_body_106h4_42",
|
|
1781
|
+
twoPane: "_twoPane_106h4_47",
|
|
1782
|
+
singlePane: "_singlePane_106h4_52",
|
|
1783
|
+
primaryWide: "_primaryWide_106h4_56",
|
|
1784
|
+
"primary-left": "_primary-left_106h4_56",
|
|
1785
|
+
"primary-right": "_primary-right_106h4_57",
|
|
1786
|
+
secondaryWide: "_secondaryWide_106h4_61",
|
|
1787
|
+
balanced: "_balanced_106h4_66",
|
|
1788
|
+
primary: "_primary_106h4_56",
|
|
1789
|
+
secondary: "_secondary_106h4_61",
|
|
1790
|
+
divider: "_divider_106h4_90",
|
|
1791
|
+
footer: "_footer_106h4_96"
|
|
1792
|
+
};
|
|
1793
|
+
//#endregion
|
|
1794
|
+
//#region src/components/layout/SlideShell/SlideShell.tsx
|
|
1795
|
+
function mt({ as: e = "article", eyebrow: t, counter: n, title: r, subtitle: i, primary: a, secondary: o, primarySide: s = "left", ratio: c = "primaryWide", divider: l = !0, footer: u, className: d, ...f }) {
|
|
1796
|
+
return /* @__PURE__ */ (0, _.jsxs)(e, {
|
|
1797
|
+
className: [k.root, d ?? ""].filter(Boolean).join(" "),
|
|
1798
|
+
"data-rag-layout": "SlideShell",
|
|
1799
|
+
"data-primary-side": s,
|
|
1800
|
+
...f,
|
|
1801
|
+
children: [
|
|
1802
|
+
/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
1803
|
+
className: k.header,
|
|
1804
|
+
children: [
|
|
1805
|
+
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1806
|
+
className: k.metaRow,
|
|
1807
|
+
children: [t ? /* @__PURE__ */ (0, _.jsx)(y, {
|
|
1808
|
+
transform: "uppercase",
|
|
1809
|
+
children: t
|
|
1810
|
+
}) : /* @__PURE__ */ (0, _.jsx)("span", {}), n && /* @__PURE__ */ (0, _.jsx)(y, { children: n })]
|
|
1811
|
+
}),
|
|
1812
|
+
/* @__PURE__ */ (0, _.jsx)("h2", {
|
|
1813
|
+
className: k.title,
|
|
1814
|
+
children: r
|
|
1815
|
+
}),
|
|
1816
|
+
i && /* @__PURE__ */ (0, _.jsx)("p", {
|
|
1817
|
+
className: k.subtitle,
|
|
1818
|
+
children: i
|
|
1819
|
+
})
|
|
1820
|
+
]
|
|
1821
|
+
}),
|
|
1822
|
+
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1823
|
+
className: [
|
|
1824
|
+
k.body,
|
|
1825
|
+
k[c],
|
|
1826
|
+
o ? k.twoPane : k.singlePane,
|
|
1827
|
+
l && o ? k.divider : "",
|
|
1828
|
+
k[`primary-${s}`]
|
|
1829
|
+
].filter(Boolean).join(" "),
|
|
1830
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1831
|
+
className: k.primary,
|
|
1832
|
+
children: a
|
|
1833
|
+
}), o && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1834
|
+
className: k.secondary,
|
|
1835
|
+
children: o
|
|
1836
|
+
})]
|
|
1837
|
+
}),
|
|
1838
|
+
u && /* @__PURE__ */ (0, _.jsx)("footer", {
|
|
1839
|
+
className: k.footer,
|
|
1840
|
+
children: u
|
|
1841
|
+
})
|
|
1842
|
+
]
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1845
|
+
var A = {
|
|
1846
|
+
root: "_root_1w0ju_1",
|
|
1847
|
+
sidebar: "_sidebar_1w0ju_10",
|
|
1848
|
+
sidebarHeader: "_sidebarHeader_1w0ju_19",
|
|
1849
|
+
sidebarFooter: "_sidebarFooter_1w0ju_20",
|
|
1850
|
+
sidebarBody: "_sidebarBody_1w0ju_33",
|
|
1851
|
+
content: "_content_1w0ju_40",
|
|
1852
|
+
contentPaddingMd: "_contentPaddingMd_1w0ju_47",
|
|
1853
|
+
contentPaddingLg: "_contentPaddingLg_1w0ju_51"
|
|
1854
|
+
};
|
|
1855
|
+
//#endregion
|
|
1856
|
+
//#region src/components/layout/SidebarShell/SidebarShell.tsx
|
|
1857
|
+
function ht(e) {
|
|
1858
|
+
return typeof e == "number" ? `${e}px` : e;
|
|
1859
|
+
}
|
|
1860
|
+
function gt({ sidebar: e, sidebarWidth: t = 188, contentPadding: n = "none", header: r, footer: i, className: a, children: o, style: s, ...c }) {
|
|
1861
|
+
let l = {
|
|
1862
|
+
...s,
|
|
1863
|
+
"--rag-sidebar-width": ht(t)
|
|
1864
|
+
};
|
|
1865
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1866
|
+
className: [A.root, a ?? ""].filter(Boolean).join(" "),
|
|
1867
|
+
style: l,
|
|
1868
|
+
"data-rag-layout": "SidebarShell",
|
|
1869
|
+
...c,
|
|
1870
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("aside", {
|
|
1871
|
+
className: A.sidebar,
|
|
1872
|
+
"aria-label": "Course navigation",
|
|
1873
|
+
children: [
|
|
1874
|
+
r && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1875
|
+
className: A.sidebarHeader,
|
|
1876
|
+
children: r
|
|
1877
|
+
}),
|
|
1878
|
+
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1879
|
+
className: A.sidebarBody,
|
|
1880
|
+
children: e
|
|
1881
|
+
}),
|
|
1882
|
+
i && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1883
|
+
className: A.sidebarFooter,
|
|
1884
|
+
children: i
|
|
1885
|
+
})
|
|
1886
|
+
]
|
|
1887
|
+
}), /* @__PURE__ */ (0, _.jsx)("main", {
|
|
1888
|
+
className: [A.content, n === "none" ? "" : A[`contentPadding${n[0].toUpperCase()}${n.slice(1)}`]].filter(Boolean).join(" "),
|
|
1889
|
+
children: o
|
|
1890
|
+
})]
|
|
1891
|
+
});
|
|
1892
|
+
}
|
|
1893
|
+
var j = {
|
|
1894
|
+
root: "_root_1gyp0_1",
|
|
1895
|
+
row: "_row_1gyp0_2",
|
|
1896
|
+
key: "_key_1gyp0_3",
|
|
1897
|
+
value: "_value_1gyp0_4",
|
|
1898
|
+
compact: "_compact_1gyp0_5",
|
|
1899
|
+
copyButton: "_copyButton_1gyp0_6"
|
|
1900
|
+
};
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region src/components/molecules/MetadataGrid/MetadataGrid.tsx
|
|
1903
|
+
function _t({ items: e, density: t = "normal", className: n, onCopy: r }) {
|
|
1904
|
+
let i = (e) => {
|
|
1905
|
+
if (r) {
|
|
1906
|
+
r(e);
|
|
1907
|
+
return;
|
|
1908
|
+
}
|
|
1909
|
+
navigator.clipboard?.writeText(e).catch(() => {});
|
|
1910
|
+
};
|
|
1911
|
+
return /* @__PURE__ */ (0, _.jsx)("dl", {
|
|
1912
|
+
className: [
|
|
1913
|
+
j.root,
|
|
1914
|
+
t === "compact" ? j.compact : "",
|
|
1915
|
+
n ?? ""
|
|
1916
|
+
].filter(Boolean).join(" "),
|
|
1917
|
+
"data-rag-component": "MetadataGrid",
|
|
1918
|
+
children: e.map((e, t) => /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1919
|
+
className: j.row,
|
|
1920
|
+
children: [/* @__PURE__ */ (0, _.jsx)("dt", {
|
|
1921
|
+
className: j.key,
|
|
1922
|
+
children: e.key
|
|
1923
|
+
}), /* @__PURE__ */ (0, _.jsxs)("dd", {
|
|
1924
|
+
className: j.value,
|
|
1925
|
+
children: [e.value, e.copyValue && /* @__PURE__ */ (0, _.jsx)("button", {
|
|
1926
|
+
type: "button",
|
|
1927
|
+
className: j.copyButton,
|
|
1928
|
+
onClick: () => i(e.copyValue),
|
|
1929
|
+
children: "⧉"
|
|
1930
|
+
})]
|
|
1931
|
+
})]
|
|
1932
|
+
}, t))
|
|
1933
|
+
});
|
|
1934
|
+
}
|
|
1935
|
+
var M = {
|
|
1936
|
+
root: "_root_1kw0z_1",
|
|
1937
|
+
selectable: "_selectable_1kw0z_4",
|
|
1938
|
+
selected: "_selected_1kw0z_6",
|
|
1939
|
+
start: "_start_1kw0z_7",
|
|
1940
|
+
end: "_end_1kw0z_8",
|
|
1941
|
+
center: "_center_1kw0z_9",
|
|
1942
|
+
empty: "_empty_1kw0z_10"
|
|
1943
|
+
};
|
|
1944
|
+
//#endregion
|
|
1945
|
+
//#region src/components/molecules/DataTable/DataTable.tsx
|
|
1946
|
+
function vt({ columns: e, rows: t, getRowKey: n, selectedKey: r, onRowSelect: i, emptyMessage: a, className: o }) {
|
|
1947
|
+
return /* @__PURE__ */ (0, _.jsxs)("table", {
|
|
1948
|
+
className: [M.root, o ?? ""].filter(Boolean).join(" "),
|
|
1949
|
+
"data-rag-component": "DataTable",
|
|
1950
|
+
children: [/* @__PURE__ */ (0, _.jsx)("thead", { children: /* @__PURE__ */ (0, _.jsx)("tr", { children: e.map((e) => /* @__PURE__ */ (0, _.jsx)("th", {
|
|
1951
|
+
className: M[e.align ?? "start"],
|
|
1952
|
+
children: e.header
|
|
1953
|
+
}, e.id)) }) }), /* @__PURE__ */ (0, _.jsxs)("tbody", { children: [t.length === 0 && a && /* @__PURE__ */ (0, _.jsx)("tr", { children: /* @__PURE__ */ (0, _.jsx)("td", {
|
|
1954
|
+
colSpan: e.length,
|
|
1955
|
+
className: M.empty,
|
|
1956
|
+
children: a
|
|
1957
|
+
}) }), t.map((t) => {
|
|
1958
|
+
let a = n(t);
|
|
1959
|
+
return /* @__PURE__ */ (0, _.jsx)("tr", {
|
|
1960
|
+
className: [i ? M.selectable : "", r === a ? M.selected : ""].filter(Boolean).join(" "),
|
|
1961
|
+
onClick: i ? () => i(t) : void 0,
|
|
1962
|
+
children: e.map((e) => /* @__PURE__ */ (0, _.jsx)("td", {
|
|
1963
|
+
className: M[e.align ?? "start"],
|
|
1964
|
+
style: e.maxWidth ? { maxWidth: e.maxWidth } : void 0,
|
|
1965
|
+
children: e.cell(t)
|
|
1966
|
+
}, e.id))
|
|
1967
|
+
}, a);
|
|
1968
|
+
})] })]
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
var yt = {
|
|
1972
|
+
root: "_root_13gif_1",
|
|
1973
|
+
brand: "_brand_13gif_13",
|
|
1974
|
+
item: "_item_13gif_22",
|
|
1975
|
+
active: "_active_13gif_42"
|
|
1976
|
+
};
|
|
1977
|
+
//#endregion
|
|
1978
|
+
//#region src/components/molecules/AppNav/AppNav.tsx
|
|
1979
|
+
function bt({ brand: e, items: t, activeItemId: n, onItemSelect: r }) {
|
|
1980
|
+
return /* @__PURE__ */ (0, _.jsxs)("nav", {
|
|
1981
|
+
className: yt.root,
|
|
1982
|
+
"aria-label": "Primary",
|
|
1983
|
+
"data-rag-component": "AppNav",
|
|
1984
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
1985
|
+
className: yt.brand,
|
|
1986
|
+
children: e
|
|
1987
|
+
}), t.map((e) => {
|
|
1988
|
+
let t = e.id === n;
|
|
1989
|
+
return /* @__PURE__ */ (0, _.jsx)("button", {
|
|
1990
|
+
type: "button",
|
|
1991
|
+
className: [yt.item, t ? yt.active : ""].filter(Boolean).join(" "),
|
|
1992
|
+
"aria-current": t ? "page" : void 0,
|
|
1993
|
+
onClick: () => r(e.id),
|
|
1994
|
+
children: e.label
|
|
1995
|
+
}, e.id);
|
|
1996
|
+
})]
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
1999
|
+
var xt = {
|
|
2000
|
+
root: "_root_1i26l_1",
|
|
2001
|
+
default: "_default_1i26l_7",
|
|
2002
|
+
compact: "_compact_1i26l_11",
|
|
2003
|
+
item: "_item_1i26l_15",
|
|
2004
|
+
label: "_label_1i26l_22"
|
|
2005
|
+
};
|
|
2006
|
+
//#endregion
|
|
2007
|
+
//#region src/components/molecules/ContextLegend/ContextLegend.tsx
|
|
2008
|
+
function St({ kinds: e = Te.filter((e) => e !== "other"), mode: t = "pattern", compact: n = !1, selectedKind: r, className: i, ...a }) {
|
|
2009
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2010
|
+
className: [
|
|
2011
|
+
xt.root,
|
|
2012
|
+
n ? xt.compact : xt.default,
|
|
2013
|
+
i ?? ""
|
|
2014
|
+
].filter(Boolean).join(" "),
|
|
2015
|
+
"data-rag-molecule": "ContextLegend",
|
|
2016
|
+
"data-mode": t,
|
|
2017
|
+
...a,
|
|
2018
|
+
children: e.map((e) => /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2019
|
+
className: xt.item,
|
|
2020
|
+
"data-selected": r === e ? "true" : void 0,
|
|
2021
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Be, {
|
|
2022
|
+
kind: e,
|
|
2023
|
+
mode: t,
|
|
2024
|
+
size: n ? "sm" : "md",
|
|
2025
|
+
selected: r === e
|
|
2026
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2027
|
+
className: xt.label,
|
|
2028
|
+
children: T(e)
|
|
2029
|
+
})]
|
|
2030
|
+
}, e))
|
|
2031
|
+
});
|
|
2032
|
+
}
|
|
2033
|
+
var N = {
|
|
2034
|
+
root: "_root_4isez_1",
|
|
2035
|
+
header: "_header_4isez_8",
|
|
2036
|
+
track: "_track_4isez_15",
|
|
2037
|
+
segment: "_segment_4isez_25",
|
|
2038
|
+
selected: "_selected_4isez_32",
|
|
2039
|
+
limitMarker: "_limitMarker_4isez_38",
|
|
2040
|
+
nearBudget: "_nearBudget_4isez_47",
|
|
2041
|
+
overBudget: "_overBudget_4isez_51",
|
|
2042
|
+
legend: "_legend_4isez_55",
|
|
2043
|
+
legendItem: "_legendItem_4isez_61",
|
|
2044
|
+
dot: "_dot_4isez_74",
|
|
2045
|
+
tokens: "_tokens_4isez_81",
|
|
2046
|
+
kind_system: "_kind_system_4isez_85",
|
|
2047
|
+
kind_instruction: "_kind_instruction_4isez_86",
|
|
2048
|
+
kind_context: "_kind_context_4isez_87",
|
|
2049
|
+
kind_conversation: "_kind_conversation_4isez_88",
|
|
2050
|
+
kind_course: "_kind_course_4isez_89",
|
|
2051
|
+
kind_other: "_kind_other_4isez_90",
|
|
2052
|
+
kind_summary: "_kind_summary_4isez_91",
|
|
2053
|
+
kind_annotation: "_kind_annotation_4isez_92",
|
|
2054
|
+
kind_retrieval: "_kind_retrieval_4isez_93",
|
|
2055
|
+
kind_tool: "_kind_tool_4isez_94",
|
|
2056
|
+
kind_result: "_kind_result_4isez_95",
|
|
2057
|
+
kind_generated: "_kind_generated_4isez_96",
|
|
2058
|
+
kind_evicted: "_kind_evicted_4isez_97",
|
|
2059
|
+
kind_active: "_kind_active_4isez_98",
|
|
2060
|
+
kind_empty: "_kind_empty_4isez_99"
|
|
2061
|
+
};
|
|
2062
|
+
//#endregion
|
|
2063
|
+
//#region src/components/molecules/ContextBudgetBar/ContextBudgetBar.tsx
|
|
2064
|
+
function Ct(e) {
|
|
2065
|
+
return `${Math.round(e).toLocaleString()} tok`;
|
|
2066
|
+
}
|
|
2067
|
+
function wt(e) {
|
|
2068
|
+
return e.filter((e) => e.kind !== "empty" && e.tokens > 0);
|
|
2069
|
+
}
|
|
2070
|
+
function Tt({ snapshot: e, mode: t = "pattern", showLegend: n = !0, selectedPartId: r, className: i, ...a }) {
|
|
2071
|
+
let o = Re(e), s = ze(e), c = o > e.limit, l = !c && s >= .8, u = wt(e.parts), d = r ?? e.selectedPartId;
|
|
2072
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2073
|
+
className: [
|
|
2074
|
+
N.root,
|
|
2075
|
+
c ? N.overBudget : l ? N.nearBudget : "",
|
|
2076
|
+
i ?? ""
|
|
2077
|
+
].filter(Boolean).join(" "),
|
|
2078
|
+
"data-rag-molecule": "ContextBudgetBar",
|
|
2079
|
+
"data-mode": t,
|
|
2080
|
+
...a,
|
|
2081
|
+
children: [
|
|
2082
|
+
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2083
|
+
className: N.header,
|
|
2084
|
+
children: [/* @__PURE__ */ (0, _.jsx)(y, {
|
|
2085
|
+
transform: "uppercase",
|
|
2086
|
+
children: e.title
|
|
2087
|
+
}), /* @__PURE__ */ (0, _.jsxs)(y, {
|
|
2088
|
+
tone: c ? "danger" : l ? "warning" : "muted",
|
|
2089
|
+
children: [
|
|
2090
|
+
Ct(o),
|
|
2091
|
+
" / ",
|
|
2092
|
+
Ct(e.limit),
|
|
2093
|
+
" · ",
|
|
2094
|
+
Math.round(s * 100),
|
|
2095
|
+
"%"
|
|
2096
|
+
]
|
|
2097
|
+
})]
|
|
2098
|
+
}),
|
|
2099
|
+
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2100
|
+
className: N.track,
|
|
2101
|
+
role: "img",
|
|
2102
|
+
"aria-label": `${e.title}: ${Ct(o)} of ${Ct(e.limit)} used`,
|
|
2103
|
+
children: [u.map((t) => {
|
|
2104
|
+
let n = e.limit > 0 ? Math.max(.5, t.tokens / e.limit * 100) : 0;
|
|
2105
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2106
|
+
className: [
|
|
2107
|
+
N.segment,
|
|
2108
|
+
N[`kind_${t.kind}`] ?? N.kind_other,
|
|
2109
|
+
d === t.id ? N.selected : ""
|
|
2110
|
+
].filter(Boolean).join(" "),
|
|
2111
|
+
style: { width: `${n}%` },
|
|
2112
|
+
title: `${t.label}: ${Ct(t.tokens)} (${T(t.kind)})`
|
|
2113
|
+
}, t.id);
|
|
2114
|
+
}), c && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2115
|
+
className: N.limitMarker,
|
|
2116
|
+
title: "model context limit"
|
|
2117
|
+
})]
|
|
2118
|
+
}),
|
|
2119
|
+
n && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2120
|
+
className: N.legend,
|
|
2121
|
+
children: u.map((e) => /* @__PURE__ */ (0, _.jsxs)("span", {
|
|
2122
|
+
className: N.legendItem,
|
|
2123
|
+
"data-selected": d === e.id ? "true" : void 0,
|
|
2124
|
+
children: [
|
|
2125
|
+
/* @__PURE__ */ (0, _.jsx)("span", { className: [N.dot, N[`kind_${e.kind}`] ?? N.kind_other].join(" ") }),
|
|
2126
|
+
/* @__PURE__ */ (0, _.jsx)("span", { children: e.label }),
|
|
2127
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2128
|
+
className: N.tokens,
|
|
2129
|
+
children: Ct(e.tokens)
|
|
2130
|
+
})
|
|
2131
|
+
]
|
|
2132
|
+
}, e.id))
|
|
2133
|
+
})
|
|
2134
|
+
]
|
|
2135
|
+
});
|
|
2136
|
+
}
|
|
2137
|
+
var P = {
|
|
2138
|
+
root: "_root_hloz0_1",
|
|
2139
|
+
strip: "_strip_hloz0_2",
|
|
2140
|
+
segment: "_segment_hloz0_3",
|
|
2141
|
+
label: "_label_hloz0_5",
|
|
2142
|
+
selected: "_selected_hloz0_6",
|
|
2143
|
+
caption: "_caption_hloz0_7",
|
|
2144
|
+
kind_system: "_kind_system_hloz0_8",
|
|
2145
|
+
kind_instruction: "_kind_instruction_hloz0_8",
|
|
2146
|
+
kind_context: "_kind_context_hloz0_9",
|
|
2147
|
+
kind_conversation: "_kind_conversation_hloz0_9",
|
|
2148
|
+
kind_course: "_kind_course_hloz0_9",
|
|
2149
|
+
kind_other: "_kind_other_hloz0_9",
|
|
2150
|
+
kind_summary: "_kind_summary_hloz0_10",
|
|
2151
|
+
kind_annotation: "_kind_annotation_hloz0_10",
|
|
2152
|
+
kind_retrieval: "_kind_retrieval_hloz0_11",
|
|
2153
|
+
kind_tool: "_kind_tool_hloz0_11",
|
|
2154
|
+
kind_result: "_kind_result_hloz0_11",
|
|
2155
|
+
kind_generated: "_kind_generated_hloz0_12",
|
|
2156
|
+
kind_evicted: "_kind_evicted_hloz0_13",
|
|
2157
|
+
kind_active: "_kind_active_hloz0_15",
|
|
2158
|
+
kind_empty: "_kind_empty_hloz0_17"
|
|
2159
|
+
};
|
|
2160
|
+
//#endregion
|
|
2161
|
+
//#region src/components/molecules/ContextStripDiagram/ContextStripDiagram.tsx
|
|
2162
|
+
function Et(e) {
|
|
2163
|
+
return `${e.toLocaleString()} tok`;
|
|
2164
|
+
}
|
|
2165
|
+
function Dt({ snapshot: e, mode: t = "pattern", selectedPartId: n, showLabels: r = !0, className: i, ...a }) {
|
|
2166
|
+
let o = n ?? e.selectedPartId, s = e.limit || e.parts.reduce((e, t) => e + t.tokens, 0);
|
|
2167
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2168
|
+
className: [P.root, i ?? ""].filter(Boolean).join(" "),
|
|
2169
|
+
"data-rag-molecule": "ContextStripDiagram",
|
|
2170
|
+
"data-mode": t,
|
|
2171
|
+
...a,
|
|
2172
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2173
|
+
className: P.strip,
|
|
2174
|
+
role: "img",
|
|
2175
|
+
"aria-label": `${e.title} context strip`,
|
|
2176
|
+
children: e.parts.map((e) => {
|
|
2177
|
+
let t = Math.max(2, e.tokens / s * 100), n = o === e.id;
|
|
2178
|
+
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2179
|
+
className: [
|
|
2180
|
+
P.segment,
|
|
2181
|
+
P[`kind_${e.kind}`] ?? P.kind_other,
|
|
2182
|
+
n ? P.selected : ""
|
|
2183
|
+
].filter(Boolean).join(" "),
|
|
2184
|
+
style: { width: `${t}%` },
|
|
2185
|
+
title: `${e.label}: ${Et(e.tokens)} (${T(e.kind)})`,
|
|
2186
|
+
children: r && t >= 7 && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2187
|
+
className: P.label,
|
|
2188
|
+
children: e.label
|
|
2189
|
+
})
|
|
2190
|
+
}, e.id);
|
|
2191
|
+
})
|
|
2192
|
+
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2193
|
+
className: P.caption,
|
|
2194
|
+
children: [
|
|
2195
|
+
e.title,
|
|
2196
|
+
" · ",
|
|
2197
|
+
e.limit.toLocaleString(),
|
|
2198
|
+
" token window"
|
|
2199
|
+
]
|
|
2200
|
+
})]
|
|
2201
|
+
});
|
|
2202
|
+
}
|
|
2203
|
+
var F = {
|
|
2204
|
+
root: "_root_eoqke_1",
|
|
2205
|
+
layers: "_layers_eoqke_2",
|
|
2206
|
+
layer: "_layer_eoqke_2",
|
|
2207
|
+
label: "_label_eoqke_5",
|
|
2208
|
+
tokens: "_tokens_eoqke_6",
|
|
2209
|
+
kind_system: "_kind_system_eoqke_8",
|
|
2210
|
+
kind_instruction: "_kind_instruction_eoqke_10",
|
|
2211
|
+
kind_summary: "_kind_summary_eoqke_12",
|
|
2212
|
+
kind_annotation: "_kind_annotation_eoqke_14",
|
|
2213
|
+
kind_retrieval: "_kind_retrieval_eoqke_16",
|
|
2214
|
+
kind_tool: "_kind_tool_eoqke_18",
|
|
2215
|
+
kind_result: "_kind_result_eoqke_20",
|
|
2216
|
+
kind_generated: "_kind_generated_eoqke_22",
|
|
2217
|
+
selected: "_selected_eoqke_29",
|
|
2218
|
+
kind_context: "_kind_context_eoqke_31",
|
|
2219
|
+
kind_conversation: "_kind_conversation_eoqke_31",
|
|
2220
|
+
kind_course: "_kind_course_eoqke_31",
|
|
2221
|
+
kind_other: "_kind_other_eoqke_31",
|
|
2222
|
+
kind_evicted: "_kind_evicted_eoqke_35",
|
|
2223
|
+
kind_active: "_kind_active_eoqke_37",
|
|
2224
|
+
kind_empty: "_kind_empty_eoqke_39",
|
|
2225
|
+
caption: "_caption_eoqke_40"
|
|
2226
|
+
};
|
|
2227
|
+
//#endregion
|
|
2228
|
+
//#region src/components/molecules/ContextStackDiagram/ContextStackDiagram.tsx
|
|
2229
|
+
function Ot(e) {
|
|
2230
|
+
return `${e.toLocaleString()} tok`;
|
|
2231
|
+
}
|
|
2232
|
+
function kt({ snapshot: e, selectedPartId: t, className: n, ...r }) {
|
|
2233
|
+
let i = t ?? e.selectedPartId, a = e.parts.filter((e) => e.tokens > 0), o = Math.max(...a.map((e) => e.tokens), 1);
|
|
2234
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2235
|
+
className: [F.root, n ?? ""].filter(Boolean).join(" "),
|
|
2236
|
+
"data-rag-molecule": "ContextStackDiagram",
|
|
2237
|
+
...r,
|
|
2238
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2239
|
+
className: F.layers,
|
|
2240
|
+
role: "img",
|
|
2241
|
+
"aria-label": `${e.title} context stack`,
|
|
2242
|
+
children: a.map((e) => {
|
|
2243
|
+
let t = i === e.id, n = Math.max(26, Math.min(74, 22 + e.tokens / o * 52));
|
|
2244
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2245
|
+
className: [
|
|
2246
|
+
F.layer,
|
|
2247
|
+
F[`kind_${e.kind}`] ?? F.kind_other,
|
|
2248
|
+
t ? F.selected : ""
|
|
2249
|
+
].filter(Boolean).join(" "),
|
|
2250
|
+
style: { minHeight: n },
|
|
2251
|
+
title: `${e.label}: ${Ot(e.tokens)} (${T(e.kind)})`,
|
|
2252
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2253
|
+
className: F.label,
|
|
2254
|
+
children: e.label
|
|
2255
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2256
|
+
className: F.tokens,
|
|
2257
|
+
children: Ot(e.tokens)
|
|
2258
|
+
})]
|
|
2259
|
+
}, e.id);
|
|
2260
|
+
})
|
|
2261
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2262
|
+
className: F.caption,
|
|
2263
|
+
children: e.title
|
|
2264
|
+
})]
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
var I = {
|
|
2268
|
+
root: "_root_shrue_1",
|
|
2269
|
+
map: "_map_shrue_2",
|
|
2270
|
+
tile: "_tile_shrue_3",
|
|
2271
|
+
label: "_label_shrue_4",
|
|
2272
|
+
tokens: "_tokens_shrue_5",
|
|
2273
|
+
kind_system: "_kind_system_shrue_7",
|
|
2274
|
+
kind_instruction: "_kind_instruction_shrue_9",
|
|
2275
|
+
kind_summary: "_kind_summary_shrue_11",
|
|
2276
|
+
kind_annotation: "_kind_annotation_shrue_13",
|
|
2277
|
+
kind_retrieval: "_kind_retrieval_shrue_15",
|
|
2278
|
+
kind_tool: "_kind_tool_shrue_17",
|
|
2279
|
+
kind_result: "_kind_result_shrue_19",
|
|
2280
|
+
kind_generated: "_kind_generated_shrue_21",
|
|
2281
|
+
selected: "_selected_shrue_29",
|
|
2282
|
+
kind_context: "_kind_context_shrue_31",
|
|
2283
|
+
kind_conversation: "_kind_conversation_shrue_31",
|
|
2284
|
+
kind_course: "_kind_course_shrue_31",
|
|
2285
|
+
kind_other: "_kind_other_shrue_31",
|
|
2286
|
+
kind_evicted: "_kind_evicted_shrue_35",
|
|
2287
|
+
kind_active: "_kind_active_shrue_37",
|
|
2288
|
+
caption: "_caption_shrue_39"
|
|
2289
|
+
};
|
|
2290
|
+
//#endregion
|
|
2291
|
+
//#region src/components/molecules/ContextTreemap/ContextTreemap.tsx
|
|
2292
|
+
function At(e) {
|
|
2293
|
+
return `${e.toLocaleString()} tok`;
|
|
2294
|
+
}
|
|
2295
|
+
function jt({ snapshot: e, selectedPartId: t, className: n, ...r }) {
|
|
2296
|
+
let i = t ?? e.selectedPartId, a = e.parts.filter((e) => e.kind !== "empty" && e.tokens > 0), o = Re(e) || 1;
|
|
2297
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2298
|
+
className: [I.root, n ?? ""].filter(Boolean).join(" "),
|
|
2299
|
+
"data-rag-molecule": "ContextTreemap",
|
|
2300
|
+
...r,
|
|
2301
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2302
|
+
className: I.map,
|
|
2303
|
+
role: "img",
|
|
2304
|
+
"aria-label": `${e.title} token treemap`,
|
|
2305
|
+
children: a.map((e) => {
|
|
2306
|
+
let t = Math.max(7, e.tokens / o * 100), n = i === e.id;
|
|
2307
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2308
|
+
className: [
|
|
2309
|
+
I.tile,
|
|
2310
|
+
I[`kind_${e.kind}`] ?? I.kind_other,
|
|
2311
|
+
n ? I.selected : ""
|
|
2312
|
+
].filter(Boolean).join(" "),
|
|
2313
|
+
style: {
|
|
2314
|
+
flexBasis: `${t}%`,
|
|
2315
|
+
flexGrow: e.tokens
|
|
2316
|
+
},
|
|
2317
|
+
title: `${e.label}: ${At(e.tokens)} (${T(e.kind)})`,
|
|
2318
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2319
|
+
className: I.label,
|
|
2320
|
+
children: e.label
|
|
2321
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2322
|
+
className: I.tokens,
|
|
2323
|
+
children: At(e.tokens)
|
|
2324
|
+
})]
|
|
2325
|
+
}, e.id);
|
|
2326
|
+
})
|
|
2327
|
+
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2328
|
+
className: I.caption,
|
|
2329
|
+
children: [
|
|
2330
|
+
At(o),
|
|
2331
|
+
" in use · ",
|
|
2332
|
+
e.title
|
|
2333
|
+
]
|
|
2334
|
+
})]
|
|
2335
|
+
});
|
|
2336
|
+
}
|
|
2337
|
+
var L = {
|
|
2338
|
+
root: "_root_15h6i_1",
|
|
2339
|
+
selected: "_selected_15h6i_10",
|
|
2340
|
+
titleBar: "_titleBar_15h6i_15",
|
|
2341
|
+
titleCluster: "_titleCluster_15h6i_26",
|
|
2342
|
+
metaCluster: "_metaCluster_15h6i_27",
|
|
2343
|
+
roleGlyph: "_roleGlyph_15h6i_38",
|
|
2344
|
+
roleLabel: "_roleLabel_15h6i_43",
|
|
2345
|
+
body: "_body_15h6i_51",
|
|
2346
|
+
toolBody: "_toolBody_15h6i_58",
|
|
2347
|
+
noteChip: "_noteChip_15h6i_64",
|
|
2348
|
+
user: "_user_15h6i_80",
|
|
2349
|
+
assistant: "_assistant_15h6i_90",
|
|
2350
|
+
tool: "_tool_15h6i_58",
|
|
2351
|
+
system: "_system_15h6i_92",
|
|
2352
|
+
developer: "_developer_15h6i_93",
|
|
2353
|
+
other: "_other_15h6i_94"
|
|
2354
|
+
}, Mt = {
|
|
2355
|
+
system: "SYSTEM",
|
|
2356
|
+
developer: "DEVELOPER",
|
|
2357
|
+
user: "USER",
|
|
2358
|
+
assistant: "ASSISTANT",
|
|
2359
|
+
tool: "TOOL",
|
|
2360
|
+
other: "MESSAGE"
|
|
2361
|
+
}, Nt = {
|
|
2362
|
+
system: "◆",
|
|
2363
|
+
developer: "◇",
|
|
2364
|
+
user: "▸",
|
|
2365
|
+
assistant: "✦",
|
|
2366
|
+
tool: "⚙",
|
|
2367
|
+
other: "•"
|
|
2368
|
+
};
|
|
2369
|
+
function Pt(e, t) {
|
|
2370
|
+
return e.findIndex((e) => e.id === t) + 1;
|
|
2371
|
+
}
|
|
2372
|
+
function Ft({ message: e, annotations: t = [], selectedAnnotationId: n, onAnnotationSelect: r, showAnnotationChips: i = !0, className: a, ...o }) {
|
|
2373
|
+
let s = t.filter((t) => t.targetMessageId === e.id || e.annotationIds?.includes(t.id)), c = s.some((e) => e.id === n), l = e.name ? `${Mt[e.role]} · ${e.name}` : Mt[e.role], u = [L.body, e.role === "tool" ? L.toolBody : ""].filter(Boolean).join(" ");
|
|
2374
|
+
return /* @__PURE__ */ (0, _.jsxs)("article", {
|
|
2375
|
+
className: [
|
|
2376
|
+
L.root,
|
|
2377
|
+
L[e.role] ?? L.other,
|
|
2378
|
+
c ? L.selected : "",
|
|
2379
|
+
a ?? ""
|
|
2380
|
+
].filter(Boolean).join(" "),
|
|
2381
|
+
"data-rag-molecule": "TranscriptMessageCard",
|
|
2382
|
+
"data-rag-message-id": e.id,
|
|
2383
|
+
"data-rag-role": e.role,
|
|
2384
|
+
"data-rag-has-notes": s.length > 0 ? "true" : void 0,
|
|
2385
|
+
...o,
|
|
2386
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
2387
|
+
className: L.titleBar,
|
|
2388
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2389
|
+
className: L.titleCluster,
|
|
2390
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2391
|
+
className: L.roleGlyph,
|
|
2392
|
+
"aria-hidden": "true",
|
|
2393
|
+
children: Nt[e.role]
|
|
2394
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2395
|
+
className: L.roleLabel,
|
|
2396
|
+
children: l
|
|
2397
|
+
})]
|
|
2398
|
+
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2399
|
+
className: L.metaCluster,
|
|
2400
|
+
children: [i && s.map((e) => {
|
|
2401
|
+
let i = Pt(t, e.id), a = n === e.id;
|
|
2402
|
+
return /* @__PURE__ */ (0, _.jsxs)("button", {
|
|
2403
|
+
type: "button",
|
|
2404
|
+
className: L.noteChip,
|
|
2405
|
+
"data-selected": a ? "true" : void 0,
|
|
2406
|
+
onClick: () => r?.(e.id),
|
|
2407
|
+
children: ["note ", i > 0 ? i : ""]
|
|
2408
|
+
}, e.id);
|
|
2409
|
+
}), /* @__PURE__ */ (0, _.jsxs)(y, { children: [e.tokens?.toLocaleString() ?? "—", " tok"] })]
|
|
2410
|
+
})]
|
|
2411
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2412
|
+
className: u,
|
|
2413
|
+
children: e.text
|
|
2414
|
+
})]
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
var It = {
|
|
2418
|
+
root: "_root_1q2ab_1",
|
|
2419
|
+
titleRow: "_titleRow_1q2ab_11",
|
|
2420
|
+
metaRow: "_metaRow_1q2ab_12",
|
|
2421
|
+
rightSlot: "_rightSlot_1q2ab_20"
|
|
2422
|
+
};
|
|
2423
|
+
//#endregion
|
|
2424
|
+
//#region src/components/molecules/TranscriptSessionHeader/TranscriptSessionHeader.tsx
|
|
2425
|
+
function Lt({ title: e, subtitle: t, messageCount: n, annotationCount: r, tokenTotal: i, rightSlot: a, className: o, ...s }) {
|
|
2426
|
+
let c = [n == null ? void 0 : `${n} message${n === 1 ? "" : "s"}`, r == null ? void 0 : `${r} annotation${r === 1 ? "" : "s"}`].filter(Boolean).join(" · ");
|
|
2427
|
+
return /* @__PURE__ */ (0, _.jsxs)("header", {
|
|
2428
|
+
className: [It.root, o ?? ""].filter(Boolean).join(" "),
|
|
2429
|
+
"data-rag-molecule": "TranscriptSessionHeader",
|
|
2430
|
+
...s,
|
|
2431
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2432
|
+
className: It.titleRow,
|
|
2433
|
+
children: [/* @__PURE__ */ (0, _.jsxs)(h, {
|
|
2434
|
+
as: "div",
|
|
2435
|
+
size: "metric",
|
|
2436
|
+
weight: "bold",
|
|
2437
|
+
children: ["Session: ", e]
|
|
2438
|
+
}), i != null && /* @__PURE__ */ (0, _.jsxs)(y, { children: [i.toLocaleString(), " tok cumulative"] })]
|
|
2439
|
+
}), (t || c || a) && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2440
|
+
className: It.metaRow,
|
|
2441
|
+
children: [/* @__PURE__ */ (0, _.jsx)(y, { children: [t, c].filter(Boolean).join(" · ") }), a && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2442
|
+
className: It.rightSlot,
|
|
2443
|
+
children: a
|
|
2444
|
+
})]
|
|
2445
|
+
})]
|
|
2446
|
+
});
|
|
2447
|
+
}
|
|
2448
|
+
var R = {
|
|
2449
|
+
root: "_root_1hxft_1",
|
|
2450
|
+
selected: "_selected_1hxft_9",
|
|
2451
|
+
titleBar: "_titleBar_1hxft_14",
|
|
2452
|
+
noteLabel: "_noteLabel_1hxft_29",
|
|
2453
|
+
body: "_body_1hxft_34",
|
|
2454
|
+
title: "_title_1hxft_14",
|
|
2455
|
+
text: "_text_1hxft_45"
|
|
2456
|
+
};
|
|
2457
|
+
//#endregion
|
|
2458
|
+
//#region src/components/molecules/AnnotationNoteCard/AnnotationNoteCard.tsx
|
|
2459
|
+
function Rt({ annotation: e, selected: t = !1, index: n, className: r, ...i }) {
|
|
2460
|
+
return /* @__PURE__ */ (0, _.jsxs)("aside", {
|
|
2461
|
+
className: [
|
|
2462
|
+
R.root,
|
|
2463
|
+
t ? R.selected : "",
|
|
2464
|
+
r ?? ""
|
|
2465
|
+
].filter(Boolean).join(" "),
|
|
2466
|
+
"data-rag-molecule": "AnnotationNoteCard",
|
|
2467
|
+
"data-rag-note-id": e.id,
|
|
2468
|
+
"data-rag-target-message-id": e.targetMessageId,
|
|
2469
|
+
...i,
|
|
2470
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
2471
|
+
className: R.titleBar,
|
|
2472
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("span", {
|
|
2473
|
+
className: R.noteLabel,
|
|
2474
|
+
children: ["NOTE ", n ?? ""]
|
|
2475
|
+
}), /* @__PURE__ */ (0, _.jsx)(Be, {
|
|
2476
|
+
kind: e.kind,
|
|
2477
|
+
size: "sm",
|
|
2478
|
+
selected: t
|
|
2479
|
+
})]
|
|
2480
|
+
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2481
|
+
className: R.body,
|
|
2482
|
+
children: [
|
|
2483
|
+
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2484
|
+
className: R.title,
|
|
2485
|
+
children: e.label
|
|
2486
|
+
}),
|
|
2487
|
+
/* @__PURE__ */ (0, _.jsx)("p", {
|
|
2488
|
+
className: R.text,
|
|
2489
|
+
children: e.text
|
|
2490
|
+
}),
|
|
2491
|
+
e.confidence != null && /* @__PURE__ */ (0, _.jsxs)(y, { children: [
|
|
2492
|
+
"confidence ",
|
|
2493
|
+
Math.round(e.confidence * 100),
|
|
2494
|
+
"%"
|
|
2495
|
+
] })
|
|
2496
|
+
]
|
|
2497
|
+
})]
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
var z = {
|
|
2501
|
+
root: "_root_1c1xz_1",
|
|
2502
|
+
selected: "_selected_1c1xz_2",
|
|
2503
|
+
resolved: "_resolved_1c1xz_3",
|
|
2504
|
+
header: "_header_1c1xz_4",
|
|
2505
|
+
index: "_index_1c1xz_6",
|
|
2506
|
+
author: "_author_1c1xz_7",
|
|
2507
|
+
spacer: "_spacer_1c1xz_8",
|
|
2508
|
+
time: "_time_1c1xz_9",
|
|
2509
|
+
dismiss: "_dismiss_1c1xz_10",
|
|
2510
|
+
text: "_text_1c1xz_11",
|
|
2511
|
+
compact: "_compact_1c1xz_12"
|
|
2512
|
+
};
|
|
2513
|
+
//#endregion
|
|
2514
|
+
//#region src/components/molecules/AnchoredCommentCard/AnchoredCommentCard.tsx
|
|
2515
|
+
function zt({ comment: e, index: t, selected: n = !1, compact: r = !1, onDismiss: i, className: a, ...o }) {
|
|
2516
|
+
return /* @__PURE__ */ (0, _.jsxs)("article", {
|
|
2517
|
+
className: [
|
|
2518
|
+
z.root,
|
|
2519
|
+
n ? z.selected : "",
|
|
2520
|
+
r ? z.compact : "",
|
|
2521
|
+
e.status === "resolved" ? z.resolved : "",
|
|
2522
|
+
a ?? ""
|
|
2523
|
+
].filter(Boolean).join(" "),
|
|
2524
|
+
"data-rag-molecule": "AnchoredCommentCard",
|
|
2525
|
+
"data-status": e.status ?? "open",
|
|
2526
|
+
...o,
|
|
2527
|
+
children: [
|
|
2528
|
+
/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
2529
|
+
className: z.header,
|
|
2530
|
+
children: [
|
|
2531
|
+
t != null && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2532
|
+
className: z.index,
|
|
2533
|
+
children: t
|
|
2534
|
+
}),
|
|
2535
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2536
|
+
className: z.author,
|
|
2537
|
+
children: e.author.toUpperCase()
|
|
2538
|
+
}),
|
|
2539
|
+
/* @__PURE__ */ (0, _.jsx)("span", { className: z.spacer }),
|
|
2540
|
+
e.time && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2541
|
+
className: z.time,
|
|
2542
|
+
children: e.time
|
|
2543
|
+
}),
|
|
2544
|
+
i && /* @__PURE__ */ (0, _.jsx)("button", {
|
|
2545
|
+
type: "button",
|
|
2546
|
+
className: z.dismiss,
|
|
2547
|
+
onClick: i,
|
|
2548
|
+
"aria-label": "Dismiss comment",
|
|
2549
|
+
children: "✕"
|
|
2550
|
+
})
|
|
2551
|
+
]
|
|
2552
|
+
}),
|
|
2553
|
+
/* @__PURE__ */ (0, _.jsx)("p", {
|
|
2554
|
+
className: z.text,
|
|
2555
|
+
children: e.text
|
|
2556
|
+
}),
|
|
2557
|
+
e.status === "resolved" && /* @__PURE__ */ (0, _.jsx)(y, {
|
|
2558
|
+
tone: "success",
|
|
2559
|
+
children: "resolved"
|
|
2560
|
+
})
|
|
2561
|
+
]
|
|
2562
|
+
});
|
|
2563
|
+
}
|
|
2564
|
+
var B = {
|
|
2565
|
+
root: "_root_d81sc_1",
|
|
2566
|
+
item: "_item_d81sc_2",
|
|
2567
|
+
button: "_button_d81sc_3",
|
|
2568
|
+
number: "_number_d81sc_6",
|
|
2569
|
+
body: "_body_d81sc_7",
|
|
2570
|
+
title: "_title_d81sc_8",
|
|
2571
|
+
description: "_description_d81sc_9"
|
|
2572
|
+
};
|
|
2573
|
+
//#endregion
|
|
2574
|
+
//#region src/components/molecules/CourseStepNav/CourseStepNav.tsx
|
|
2575
|
+
function Bt({ items: e, activeItemId: t, onItemSelect: n, className: r, ...i }) {
|
|
2576
|
+
return /* @__PURE__ */ (0, _.jsx)("ol", {
|
|
2577
|
+
className: [B.root, r ?? ""].filter(Boolean).join(" "),
|
|
2578
|
+
"data-rag-molecule": "CourseStepNav",
|
|
2579
|
+
...i,
|
|
2580
|
+
children: e.map((e) => {
|
|
2581
|
+
let r = e.id === t;
|
|
2582
|
+
return /* @__PURE__ */ (0, _.jsx)("li", {
|
|
2583
|
+
className: B.item,
|
|
2584
|
+
"data-active": r ? "true" : void 0,
|
|
2585
|
+
children: /* @__PURE__ */ (0, _.jsxs)("button", {
|
|
2586
|
+
type: "button",
|
|
2587
|
+
className: B.button,
|
|
2588
|
+
onClick: () => n?.(e.id),
|
|
2589
|
+
children: [
|
|
2590
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2591
|
+
className: B.number,
|
|
2592
|
+
children: e.number
|
|
2593
|
+
}),
|
|
2594
|
+
/* @__PURE__ */ (0, _.jsxs)("span", {
|
|
2595
|
+
className: B.body,
|
|
2596
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2597
|
+
className: B.title,
|
|
2598
|
+
children: e.title
|
|
2599
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2600
|
+
className: B.description,
|
|
2601
|
+
children: e.description
|
|
2602
|
+
})]
|
|
2603
|
+
}),
|
|
2604
|
+
e.duration && /* @__PURE__ */ (0, _.jsx)(y, { children: e.duration })
|
|
2605
|
+
]
|
|
2606
|
+
})
|
|
2607
|
+
}, e.id);
|
|
2608
|
+
})
|
|
2609
|
+
});
|
|
2610
|
+
}
|
|
2611
|
+
var Vt = {
|
|
2612
|
+
root: "_root_vz3kq_1",
|
|
2613
|
+
cell: "_cell_vz3kq_2"
|
|
2614
|
+
};
|
|
2615
|
+
//#endregion
|
|
2616
|
+
//#region src/components/molecules/KeyValueStrip/KeyValueStrip.tsx
|
|
2617
|
+
function Ht({ items: e, className: t, ...n }) {
|
|
2618
|
+
return /* @__PURE__ */ (0, _.jsx)("dl", {
|
|
2619
|
+
className: [Vt.root, t ?? ""].filter(Boolean).join(" "),
|
|
2620
|
+
"data-rag-molecule": "KeyValueStrip",
|
|
2621
|
+
...n,
|
|
2622
|
+
children: e.map((e, t) => /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2623
|
+
className: Vt.cell,
|
|
2624
|
+
children: [/* @__PURE__ */ (0, _.jsx)("dt", { children: e.key }), /* @__PURE__ */ (0, _.jsx)("dd", { children: e.value })]
|
|
2625
|
+
}, t))
|
|
2626
|
+
});
|
|
2627
|
+
}
|
|
2628
|
+
var Ut = {
|
|
2629
|
+
root: "_root_yhnta_1",
|
|
2630
|
+
item: "_item_yhnta_2",
|
|
2631
|
+
marker: "_marker_yhnta_3"
|
|
2632
|
+
};
|
|
2633
|
+
//#endregion
|
|
2634
|
+
//#region src/components/molecules/CheckList/CheckList.tsx
|
|
2635
|
+
function Wt({ items: e, marker: t = "✔", className: n, ...r }) {
|
|
2636
|
+
return /* @__PURE__ */ (0, _.jsx)("ul", {
|
|
2637
|
+
className: [Ut.root, n ?? ""].filter(Boolean).join(" "),
|
|
2638
|
+
"data-rag-molecule": "CheckList",
|
|
2639
|
+
...r,
|
|
2640
|
+
children: e.map((e, n) => {
|
|
2641
|
+
let r = typeof e == "object" && e && "text" in e ? e.text : e, i = typeof e == "object" && e && "id" in e && e.id ? e.id : n;
|
|
2642
|
+
return /* @__PURE__ */ (0, _.jsxs)("li", {
|
|
2643
|
+
className: Ut.item,
|
|
2644
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2645
|
+
className: Ut.marker,
|
|
2646
|
+
children: t
|
|
2647
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", { children: r })]
|
|
2648
|
+
}, i);
|
|
2649
|
+
})
|
|
2650
|
+
});
|
|
2651
|
+
}
|
|
2652
|
+
var V = {
|
|
2653
|
+
root: "_root_1ypbi_1",
|
|
2654
|
+
item: "_item_1ypbi_2",
|
|
2655
|
+
button: "_button_1ypbi_3",
|
|
2656
|
+
index: "_index_1ypbi_7",
|
|
2657
|
+
body: "_body_1ypbi_8",
|
|
2658
|
+
title: "_title_1ypbi_9",
|
|
2659
|
+
description: "_description_1ypbi_10",
|
|
2660
|
+
meta: "_meta_1ypbi_11"
|
|
2661
|
+
};
|
|
2662
|
+
//#endregion
|
|
2663
|
+
//#region src/components/molecules/StepList/StepList.tsx
|
|
2664
|
+
function Gt({ items: e, activeItemId: t, onItemSelect: n, className: r, ...i }) {
|
|
2665
|
+
return /* @__PURE__ */ (0, _.jsx)("ol", {
|
|
2666
|
+
className: [V.root, r ?? ""].filter(Boolean).join(" "),
|
|
2667
|
+
"data-rag-molecule": "StepList",
|
|
2668
|
+
...i,
|
|
2669
|
+
children: e.map((e) => {
|
|
2670
|
+
let r = e.id === t, i = /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [
|
|
2671
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2672
|
+
className: V.index,
|
|
2673
|
+
children: e.index
|
|
2674
|
+
}),
|
|
2675
|
+
/* @__PURE__ */ (0, _.jsxs)("span", {
|
|
2676
|
+
className: V.body,
|
|
2677
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2678
|
+
className: V.title,
|
|
2679
|
+
children: e.title
|
|
2680
|
+
}), e.description && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2681
|
+
className: V.description,
|
|
2682
|
+
children: e.description
|
|
2683
|
+
})]
|
|
2684
|
+
}),
|
|
2685
|
+
e.meta && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2686
|
+
className: V.meta,
|
|
2687
|
+
children: e.meta
|
|
2688
|
+
})
|
|
2689
|
+
] });
|
|
2690
|
+
return /* @__PURE__ */ (0, _.jsx)("li", {
|
|
2691
|
+
className: V.item,
|
|
2692
|
+
"data-active": r ? "true" : void 0,
|
|
2693
|
+
children: n ? /* @__PURE__ */ (0, _.jsx)("button", {
|
|
2694
|
+
type: "button",
|
|
2695
|
+
className: V.button,
|
|
2696
|
+
onClick: () => n(e.id),
|
|
2697
|
+
children: i
|
|
2698
|
+
}) : /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2699
|
+
className: V.button,
|
|
2700
|
+
children: i
|
|
2701
|
+
})
|
|
2702
|
+
}, e.id);
|
|
2703
|
+
})
|
|
2704
|
+
});
|
|
2705
|
+
}
|
|
2706
|
+
var Kt = {
|
|
2707
|
+
root: "_root_9v8jy_1",
|
|
2708
|
+
avatar: "_avatar_9v8jy_2",
|
|
2709
|
+
body: "_body_9v8jy_3",
|
|
2710
|
+
name: "_name_9v8jy_4",
|
|
2711
|
+
role: "_role_9v8jy_5",
|
|
2712
|
+
bio: "_bio_9v8jy_6"
|
|
2713
|
+
};
|
|
2714
|
+
//#endregion
|
|
2715
|
+
//#region src/components/molecules/PersonSummary/PersonSummary.tsx
|
|
2716
|
+
function qt({ name: e, subtitle: t, bio: n, avatar: r, className: i, ...a }) {
|
|
2717
|
+
let o = typeof e == "string" && e.length > 0 ? e[0] : "?";
|
|
2718
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2719
|
+
className: [Kt.root, i ?? ""].filter(Boolean).join(" "),
|
|
2720
|
+
"data-rag-molecule": "PersonSummary",
|
|
2721
|
+
...a,
|
|
2722
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2723
|
+
className: Kt.avatar,
|
|
2724
|
+
children: r ?? o
|
|
2725
|
+
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2726
|
+
className: Kt.body,
|
|
2727
|
+
children: [
|
|
2728
|
+
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2729
|
+
className: Kt.name,
|
|
2730
|
+
children: e
|
|
2731
|
+
}),
|
|
2732
|
+
t && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2733
|
+
className: Kt.role,
|
|
2734
|
+
children: t
|
|
2735
|
+
}),
|
|
2736
|
+
n && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2737
|
+
className: Kt.bio,
|
|
2738
|
+
children: n
|
|
2739
|
+
})
|
|
2740
|
+
]
|
|
2741
|
+
})]
|
|
2742
|
+
});
|
|
2743
|
+
}
|
|
2744
|
+
var Jt = {
|
|
2745
|
+
root: "_root_zdnh5_1",
|
|
2746
|
+
media: "_media_zdnh5_9",
|
|
2747
|
+
bordered: "_bordered_zdnh5_13",
|
|
2748
|
+
inset: "_inset_zdnh5_19",
|
|
2749
|
+
supporting: "_supporting_zdnh5_25",
|
|
2750
|
+
caption: "_caption_zdnh5_32",
|
|
2751
|
+
legend: "_legend_zdnh5_36"
|
|
2752
|
+
};
|
|
2753
|
+
//#endregion
|
|
2754
|
+
//#region src/components/molecules/FigureBlock/FigureBlock.tsx
|
|
2755
|
+
function Yt({ as: e = "figure", children: t, caption: n, legend: r, frame: i = "none", className: a, ...o }) {
|
|
2756
|
+
return /* @__PURE__ */ (0, _.jsxs)(e, {
|
|
2757
|
+
className: [
|
|
2758
|
+
Jt.root,
|
|
2759
|
+
Jt[i],
|
|
2760
|
+
a ?? ""
|
|
2761
|
+
].filter(Boolean).join(" "),
|
|
2762
|
+
"data-rag-molecule": "FigureBlock",
|
|
2763
|
+
...o,
|
|
2764
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2765
|
+
className: Jt.media,
|
|
2766
|
+
children: t
|
|
2767
|
+
}), (n || r) && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2768
|
+
className: Jt.supporting,
|
|
2769
|
+
children: [n && /* @__PURE__ */ (0, _.jsx)(y, {
|
|
2770
|
+
className: Jt.caption,
|
|
2771
|
+
children: n
|
|
2772
|
+
}), r && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2773
|
+
className: Jt.legend,
|
|
2774
|
+
children: r
|
|
2775
|
+
})]
|
|
2776
|
+
})]
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
var H = {
|
|
2780
|
+
root: "_root_u4dnv_1",
|
|
2781
|
+
item: "_item_u4dnv_9",
|
|
2782
|
+
index: "_index_u4dnv_17",
|
|
2783
|
+
body: "_body_u4dnv_28",
|
|
2784
|
+
title: "_title_u4dnv_35",
|
|
2785
|
+
text: "_text_u4dnv_40",
|
|
2786
|
+
meta: "_meta_u4dnv_45"
|
|
2787
|
+
};
|
|
2788
|
+
//#endregion
|
|
2789
|
+
//#region src/components/molecules/KeyPointList/KeyPointList.tsx
|
|
2790
|
+
function Xt(e, t) {
|
|
2791
|
+
return typeof e == "object" && e && !Array.isArray(e) && "text" in e ? e : {
|
|
2792
|
+
text: e,
|
|
2793
|
+
index: String(t + 1).padStart(2, "0")
|
|
2794
|
+
};
|
|
2795
|
+
}
|
|
2796
|
+
function Zt({ items: e, markerTone: t = "accent", className: n, ...r }) {
|
|
2797
|
+
return /* @__PURE__ */ (0, _.jsx)("ol", {
|
|
2798
|
+
className: [H.root, n ?? ""].filter(Boolean).join(" "),
|
|
2799
|
+
"data-rag-molecule": "KeyPointList",
|
|
2800
|
+
"data-marker-tone": t,
|
|
2801
|
+
...r,
|
|
2802
|
+
children: e.map((e, t) => {
|
|
2803
|
+
let n = Xt(e, t), r = n.index ?? String(t + 1).padStart(2, "0");
|
|
2804
|
+
return /* @__PURE__ */ (0, _.jsxs)("li", {
|
|
2805
|
+
className: H.item,
|
|
2806
|
+
children: [
|
|
2807
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2808
|
+
className: H.index,
|
|
2809
|
+
children: r
|
|
2810
|
+
}),
|
|
2811
|
+
/* @__PURE__ */ (0, _.jsxs)("span", {
|
|
2812
|
+
className: H.body,
|
|
2813
|
+
children: [n.title && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2814
|
+
className: H.title,
|
|
2815
|
+
children: n.title
|
|
2816
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2817
|
+
className: H.text,
|
|
2818
|
+
children: n.text
|
|
2819
|
+
})]
|
|
2820
|
+
}),
|
|
2821
|
+
n.meta && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2822
|
+
className: H.meta,
|
|
2823
|
+
children: n.meta
|
|
2824
|
+
})
|
|
2825
|
+
]
|
|
2826
|
+
}, n.id ?? t);
|
|
2827
|
+
})
|
|
2828
|
+
});
|
|
2829
|
+
}
|
|
2830
|
+
var U = {
|
|
2831
|
+
root: "_root_1y0w9_1",
|
|
2832
|
+
section: "_section_1y0w9_9",
|
|
2833
|
+
sectionLabel: "_sectionLabel_1y0w9_16",
|
|
2834
|
+
items: "_items_1y0w9_24",
|
|
2835
|
+
item: "_item_1y0w9_24",
|
|
2836
|
+
icon: "_icon_1y0w9_67",
|
|
2837
|
+
label: "_label_1y0w9_77",
|
|
2838
|
+
badge: "_badge_1y0w9_83"
|
|
2839
|
+
};
|
|
2840
|
+
//#endregion
|
|
2841
|
+
//#region src/components/molecules/SidebarNav/SidebarNav.tsx
|
|
2842
|
+
function Qt({ sections: e, activeItemId: t, onItemSelect: n, ariaLabel: r = "Course", className: i, ...a }) {
|
|
2843
|
+
return /* @__PURE__ */ (0, _.jsx)("nav", {
|
|
2844
|
+
className: [U.root, i ?? ""].filter(Boolean).join(" "),
|
|
2845
|
+
"aria-label": r,
|
|
2846
|
+
"data-rag-molecule": "SidebarNav",
|
|
2847
|
+
...a,
|
|
2848
|
+
children: e.map((e) => /* @__PURE__ */ (0, _.jsxs)("section", {
|
|
2849
|
+
className: U.section,
|
|
2850
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2851
|
+
className: U.sectionLabel,
|
|
2852
|
+
children: e.label
|
|
2853
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2854
|
+
className: U.items,
|
|
2855
|
+
children: e.items.map((e) => {
|
|
2856
|
+
let r = e.id === t;
|
|
2857
|
+
return /* @__PURE__ */ (0, _.jsxs)("button", {
|
|
2858
|
+
type: "button",
|
|
2859
|
+
className: U.item,
|
|
2860
|
+
"data-active": r ? "true" : void 0,
|
|
2861
|
+
disabled: e.disabled,
|
|
2862
|
+
"aria-current": r ? "page" : void 0,
|
|
2863
|
+
onClick: () => n?.(e.id),
|
|
2864
|
+
children: [
|
|
2865
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2866
|
+
className: U.icon,
|
|
2867
|
+
"aria-hidden": "true",
|
|
2868
|
+
children: e.icon
|
|
2869
|
+
}),
|
|
2870
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2871
|
+
className: U.label,
|
|
2872
|
+
children: e.label
|
|
2873
|
+
}),
|
|
2874
|
+
e.badge && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2875
|
+
className: U.badge,
|
|
2876
|
+
children: e.badge
|
|
2877
|
+
})
|
|
2878
|
+
]
|
|
2879
|
+
}, e.id);
|
|
2880
|
+
})
|
|
2881
|
+
})]
|
|
2882
|
+
}, e.id))
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2885
|
+
var W = {
|
|
2886
|
+
root: "_root_859oh_1",
|
|
2887
|
+
h1: "_h1_859oh_6",
|
|
2888
|
+
h2: "_h2_859oh_7",
|
|
2889
|
+
h3: "_h3_859oh_8",
|
|
2890
|
+
p: "_p_859oh_9",
|
|
2891
|
+
ul: "_ul_859oh_10",
|
|
2892
|
+
ol: "_ol_859oh_11",
|
|
2893
|
+
blockquote: "_blockquote_859oh_12",
|
|
2894
|
+
table: "_table_859oh_13",
|
|
2895
|
+
codeBlock: "_codeBlock_859oh_14",
|
|
2896
|
+
checkList: "_checkList_859oh_60",
|
|
2897
|
+
check: "_check_859oh_60",
|
|
2898
|
+
hr: "_hr_859oh_114",
|
|
2899
|
+
inlineCode: "_inlineCode_859oh_120",
|
|
2900
|
+
link: "_link_859oh_140"
|
|
2901
|
+
};
|
|
2902
|
+
//#endregion
|
|
2903
|
+
//#region src/components/molecules/MarkdownArticle/MarkdownArticle.tsx
|
|
2904
|
+
function G(e, t) {
|
|
2905
|
+
let n = [], r = e, i = 0, a = /(\*\*([^*]+)\*\*|`([^`]+)`|\[([^\]]+)\]\(([^)]+)\))/, o;
|
|
2906
|
+
for (; o = r.match(a);) o.index && o.index > 0 && n.push(r.slice(0, o.index)), o[2] == null ? o[3] == null ? o[4] != null && o[5] != null && n.push(/* @__PURE__ */ (0, _.jsx)("a", {
|
|
2907
|
+
href: o[5],
|
|
2908
|
+
className: W.link,
|
|
2909
|
+
children: o[4]
|
|
2910
|
+
}, `${t}-link-${i}`)) : n.push(/* @__PURE__ */ (0, _.jsx)("code", {
|
|
2911
|
+
className: W.inlineCode,
|
|
2912
|
+
children: o[3]
|
|
2913
|
+
}, `${t}-code-${i}`)) : n.push(/* @__PURE__ */ (0, _.jsx)("strong", { children: o[2] }, `${t}-strong-${i}`)), r = r.slice((o.index ?? 0) + o[0].length), i += 1;
|
|
2914
|
+
return r && n.push(r), n;
|
|
2915
|
+
}
|
|
2916
|
+
function $t(e) {
|
|
2917
|
+
return e.every((e) => /^:?-{3,}:?$/.test(e.trim()));
|
|
2918
|
+
}
|
|
2919
|
+
function en(e) {
|
|
2920
|
+
return e.split("|").slice(1, -1).map((e) => e.trim());
|
|
2921
|
+
}
|
|
2922
|
+
function tn({ source: e, className: t, ...n }) {
|
|
2923
|
+
let r = e.replace(/\r\n/g, "\n").split("\n"), i = [], a = 0, o = 0;
|
|
2924
|
+
for (; a < r.length;) {
|
|
2925
|
+
let e = r[a] ?? "", t = e.trim();
|
|
2926
|
+
if (!t) {
|
|
2927
|
+
a += 1;
|
|
2928
|
+
continue;
|
|
2929
|
+
}
|
|
2930
|
+
if (t.startsWith("```")) {
|
|
2931
|
+
let e = t.slice(3).trim(), n = [];
|
|
2932
|
+
for (a += 1; a < r.length && !(r[a] ?? "").trim().startsWith("```");) n.push(r[a] ?? ""), a += 1;
|
|
2933
|
+
a += 1, i.push(/* @__PURE__ */ (0, _.jsx)("pre", {
|
|
2934
|
+
className: W.codeBlock,
|
|
2935
|
+
"data-language": e || void 0,
|
|
2936
|
+
children: /* @__PURE__ */ (0, _.jsx)("code", { children: n.join("\n") })
|
|
2937
|
+
}, o++));
|
|
2938
|
+
continue;
|
|
2939
|
+
}
|
|
2940
|
+
if (t === "---" || t === "***") {
|
|
2941
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("hr", { className: W.hr }, o++)), a += 1;
|
|
2942
|
+
continue;
|
|
2943
|
+
}
|
|
2944
|
+
if (t.startsWith("### ")) {
|
|
2945
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("h3", {
|
|
2946
|
+
className: W.h3,
|
|
2947
|
+
children: G(t.slice(4), `h3-${o}`)
|
|
2948
|
+
}, o++)), a += 1;
|
|
2949
|
+
continue;
|
|
2950
|
+
}
|
|
2951
|
+
if (t.startsWith("## ")) {
|
|
2952
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("h2", {
|
|
2953
|
+
className: W.h2,
|
|
2954
|
+
children: G(t.slice(3), `h2-${o}`)
|
|
2955
|
+
}, o++)), a += 1;
|
|
2956
|
+
continue;
|
|
2957
|
+
}
|
|
2958
|
+
if (t.startsWith("# ")) {
|
|
2959
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("h1", {
|
|
2960
|
+
className: W.h1,
|
|
2961
|
+
children: G(t.slice(2), `h1-${o}`)
|
|
2962
|
+
}, o++)), a += 1;
|
|
2963
|
+
continue;
|
|
2964
|
+
}
|
|
2965
|
+
if (t.startsWith("> ")) {
|
|
2966
|
+
let e = [];
|
|
2967
|
+
for (; a < r.length && (r[a] ?? "").trim().startsWith("> ");) e.push((r[a] ?? "").trim().slice(2)), a += 1;
|
|
2968
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("blockquote", {
|
|
2969
|
+
className: W.blockquote,
|
|
2970
|
+
children: G(e.join(" "), `quote-${o}`)
|
|
2971
|
+
}, o++));
|
|
2972
|
+
continue;
|
|
2973
|
+
}
|
|
2974
|
+
if (t.startsWith("|")) {
|
|
2975
|
+
let e = [];
|
|
2976
|
+
for (; a < r.length && (r[a] ?? "").trim().startsWith("|");) e.push(en((r[a] ?? "").trim())), a += 1;
|
|
2977
|
+
let [t, ...n] = e.filter((e) => !$t(e));
|
|
2978
|
+
t && i.push(/* @__PURE__ */ (0, _.jsxs)("table", {
|
|
2979
|
+
className: W.table,
|
|
2980
|
+
children: [/* @__PURE__ */ (0, _.jsx)("thead", { children: /* @__PURE__ */ (0, _.jsx)("tr", { children: t.map((e, t) => /* @__PURE__ */ (0, _.jsx)("th", { children: G(e, `th-${o}-${t}`) }, t)) }) }), /* @__PURE__ */ (0, _.jsx)("tbody", { children: n.map((e, t) => /* @__PURE__ */ (0, _.jsx)("tr", { children: e.map((e, n) => /* @__PURE__ */ (0, _.jsx)("td", { children: G(e, `td-${o}-${t}-${n}`) }, n)) }, t)) })]
|
|
2981
|
+
}, o++));
|
|
2982
|
+
continue;
|
|
2983
|
+
}
|
|
2984
|
+
if (/^\s*-\s+\[[ xX]\]\s+/.test(e)) {
|
|
2985
|
+
let e = [];
|
|
2986
|
+
for (; a < r.length && /^\s*-\s+\[[ xX]\]\s+/.test(r[a] ?? "");) {
|
|
2987
|
+
let t = r[a] ?? "";
|
|
2988
|
+
e.push({
|
|
2989
|
+
checked: /\[[xX]\]/.test(t),
|
|
2990
|
+
text: t.replace(/^\s*-\s+\[[ xX]\]\s+/, "")
|
|
2991
|
+
}), a += 1;
|
|
2992
|
+
}
|
|
2993
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("ul", {
|
|
2994
|
+
className: W.checkList,
|
|
2995
|
+
children: e.map((e, t) => /* @__PURE__ */ (0, _.jsxs)("li", { children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2996
|
+
className: W.check,
|
|
2997
|
+
children: e.checked ? "☑" : "☐"
|
|
2998
|
+
}), /* @__PURE__ */ (0, _.jsx)("span", { children: G(e.text, `check-${o}-${t}`) })] }, t))
|
|
2999
|
+
}, o++));
|
|
3000
|
+
continue;
|
|
3001
|
+
}
|
|
3002
|
+
if (/^\s*-\s+/.test(e)) {
|
|
3003
|
+
let e = [];
|
|
3004
|
+
for (; a < r.length && /^\s*-\s+/.test(r[a] ?? "");) e.push((r[a] ?? "").replace(/^\s*-\s+/, "")), a += 1;
|
|
3005
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("ul", {
|
|
3006
|
+
className: W.ul,
|
|
3007
|
+
children: e.map((e, t) => /* @__PURE__ */ (0, _.jsx)("li", { children: G(e, `ul-${o}-${t}`) }, t))
|
|
3008
|
+
}, o++));
|
|
3009
|
+
continue;
|
|
3010
|
+
}
|
|
3011
|
+
if (/^\s*\d+\.\s+/.test(e)) {
|
|
3012
|
+
let e = [];
|
|
3013
|
+
for (; a < r.length && /^\s*\d+\.\s+/.test(r[a] ?? "");) e.push((r[a] ?? "").replace(/^\s*\d+\.\s+/, "")), a += 1;
|
|
3014
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("ol", {
|
|
3015
|
+
className: W.ol,
|
|
3016
|
+
children: e.map((e, t) => /* @__PURE__ */ (0, _.jsx)("li", { children: G(e, `ol-${o}-${t}`) }, t))
|
|
3017
|
+
}, o++));
|
|
3018
|
+
continue;
|
|
3019
|
+
}
|
|
3020
|
+
let n = [];
|
|
3021
|
+
for (; a < r.length;) {
|
|
3022
|
+
let e = (r[a] ?? "").trim();
|
|
3023
|
+
if (!e || /^(#{1,3}\s|>|```|---|\*\*\*|\||\s*-\s+|\s*\d+\.\s+)/.test(e)) break;
|
|
3024
|
+
n.push(e), a += 1;
|
|
3025
|
+
}
|
|
3026
|
+
i.push(/* @__PURE__ */ (0, _.jsx)("p", {
|
|
3027
|
+
className: W.p,
|
|
3028
|
+
children: G(n.join(" "), `p-${o}`)
|
|
3029
|
+
}, o++));
|
|
3030
|
+
}
|
|
3031
|
+
return /* @__PURE__ */ (0, _.jsx)("article", {
|
|
3032
|
+
className: [W.root, t ?? ""].filter(Boolean).join(" "),
|
|
3033
|
+
"data-rag-molecule": "MarkdownArticle",
|
|
3034
|
+
...n,
|
|
3035
|
+
children: i
|
|
3036
|
+
});
|
|
3037
|
+
}
|
|
3038
|
+
var K = {
|
|
3039
|
+
root: "_root_iqxsi_1",
|
|
3040
|
+
header: "_header_iqxsi_9",
|
|
3041
|
+
description: "_description_iqxsi_15",
|
|
3042
|
+
list: "_list_iqxsi_20",
|
|
3043
|
+
empty: "_empty_iqxsi_26",
|
|
3044
|
+
item: "_item_iqxsi_30",
|
|
3045
|
+
icon: "_icon_iqxsi_66",
|
|
3046
|
+
itemBody: "_itemBody_iqxsi_71",
|
|
3047
|
+
itemTitle: "_itemTitle_iqxsi_78",
|
|
3048
|
+
itemMeta: "_itemMeta_iqxsi_84",
|
|
3049
|
+
itemDescription: "_itemDescription_iqxsi_90",
|
|
3050
|
+
footer: "_footer_iqxsi_96",
|
|
3051
|
+
downloadButton: "_downloadButton_iqxsi_103"
|
|
3052
|
+
};
|
|
3053
|
+
//#endregion
|
|
3054
|
+
//#region src/components/molecules/DocumentListPanel/DocumentListPanel.tsx
|
|
3055
|
+
function nn(e) {
|
|
3056
|
+
let t = String(e ?? "").toLowerCase();
|
|
3057
|
+
return t.includes("pdf") ? "▤" : t.includes("json") ? "{ }" : t.includes("markdown") || t.includes("md") ? "¶" : "□";
|
|
3058
|
+
}
|
|
3059
|
+
function rn({ title: e, description: t, items: n, selectedItemId: r, onItemSelect: i, onDownloadAll: a, downloadAllLabel: o = "⤓ Download all (.zip)", emptyMessage: s = "No documents available.", showItemDescriptions: c = !1, className: l, ...u }) {
|
|
3060
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3061
|
+
className: [K.root, l ?? ""].filter(Boolean).join(" "),
|
|
3062
|
+
"data-rag-molecule": "DocumentListPanel",
|
|
3063
|
+
...u,
|
|
3064
|
+
children: [
|
|
3065
|
+
/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
3066
|
+
className: K.header,
|
|
3067
|
+
children: [/* @__PURE__ */ (0, _.jsx)(h, {
|
|
3068
|
+
as: "div",
|
|
3069
|
+
size: "metric",
|
|
3070
|
+
weight: "bold",
|
|
3071
|
+
children: e
|
|
3072
|
+
}), t && /* @__PURE__ */ (0, _.jsx)(y, {
|
|
3073
|
+
className: K.description,
|
|
3074
|
+
children: t
|
|
3075
|
+
})]
|
|
3076
|
+
}),
|
|
3077
|
+
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3078
|
+
className: K.list,
|
|
3079
|
+
role: "listbox",
|
|
3080
|
+
"aria-label": "Documents",
|
|
3081
|
+
children: [n.length === 0 && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3082
|
+
className: K.empty,
|
|
3083
|
+
children: /* @__PURE__ */ (0, _.jsx)(y, { children: s })
|
|
3084
|
+
}), n.map((e) => {
|
|
3085
|
+
let t = e.id === r;
|
|
3086
|
+
return /* @__PURE__ */ (0, _.jsxs)("button", {
|
|
3087
|
+
type: "button",
|
|
3088
|
+
className: K.item,
|
|
3089
|
+
"data-active": t ? "true" : void 0,
|
|
3090
|
+
role: "option",
|
|
3091
|
+
"aria-selected": t,
|
|
3092
|
+
disabled: e.disabled,
|
|
3093
|
+
onClick: () => i?.(e.id),
|
|
3094
|
+
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
3095
|
+
className: K.icon,
|
|
3096
|
+
"aria-hidden": "true",
|
|
3097
|
+
children: e.icon ?? nn(e.format)
|
|
3098
|
+
}), /* @__PURE__ */ (0, _.jsxs)("span", {
|
|
3099
|
+
className: K.itemBody,
|
|
3100
|
+
children: [
|
|
3101
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
3102
|
+
className: K.itemTitle,
|
|
3103
|
+
children: e.title
|
|
3104
|
+
}),
|
|
3105
|
+
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
3106
|
+
className: K.itemMeta,
|
|
3107
|
+
children: [e.format, e.size].filter(Boolean).join(" · ")
|
|
3108
|
+
}),
|
|
3109
|
+
c && e.description && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
3110
|
+
className: K.itemDescription,
|
|
3111
|
+
children: e.description
|
|
3112
|
+
})
|
|
3113
|
+
]
|
|
3114
|
+
})]
|
|
3115
|
+
}, e.id);
|
|
3116
|
+
})]
|
|
3117
|
+
}),
|
|
3118
|
+
a && /* @__PURE__ */ (0, _.jsx)("footer", {
|
|
3119
|
+
className: K.footer,
|
|
3120
|
+
children: /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3121
|
+
variant: "primary",
|
|
3122
|
+
onClick: a,
|
|
3123
|
+
className: K.downloadButton,
|
|
3124
|
+
children: o
|
|
3125
|
+
})
|
|
3126
|
+
})
|
|
3127
|
+
]
|
|
3128
|
+
});
|
|
3129
|
+
}
|
|
3130
|
+
var an = {
|
|
3131
|
+
root: "_root_17s2o_1",
|
|
3132
|
+
meta: "_meta_17s2o_15",
|
|
3133
|
+
actions: "_actions_17s2o_16",
|
|
3134
|
+
badge: "_badge_17s2o_31"
|
|
3135
|
+
};
|
|
3136
|
+
//#endregion
|
|
3137
|
+
//#region src/components/molecules/DocumentPreviewToolbar/DocumentPreviewToolbar.tsx
|
|
3138
|
+
function on({ file: e, format: t, size: n, onDownload: r, downloadLabel: i = "⤓ Download", rightSlot: a, className: o, ...s }) {
|
|
3139
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3140
|
+
className: [an.root, o ?? ""].filter(Boolean).join(" "),
|
|
3141
|
+
"data-rag-molecule": "DocumentPreviewToolbar",
|
|
3142
|
+
...s,
|
|
3143
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3144
|
+
className: an.meta,
|
|
3145
|
+
children: [
|
|
3146
|
+
/* @__PURE__ */ (0, _.jsx)(ae, { children: e }),
|
|
3147
|
+
t && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
3148
|
+
className: an.badge,
|
|
3149
|
+
children: /* @__PURE__ */ (0, _.jsx)(y, {
|
|
3150
|
+
tone: "inherit",
|
|
3151
|
+
children: t
|
|
3152
|
+
})
|
|
3153
|
+
}),
|
|
3154
|
+
n && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
3155
|
+
className: an.badge,
|
|
3156
|
+
children: /* @__PURE__ */ (0, _.jsx)(y, {
|
|
3157
|
+
tone: "inherit",
|
|
3158
|
+
children: n
|
|
3159
|
+
})
|
|
3160
|
+
})
|
|
3161
|
+
]
|
|
3162
|
+
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3163
|
+
className: an.actions,
|
|
3164
|
+
children: [a, r && /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3165
|
+
size: "compact",
|
|
3166
|
+
onClick: r,
|
|
3167
|
+
children: i
|
|
3168
|
+
})]
|
|
3169
|
+
})]
|
|
3170
|
+
});
|
|
3171
|
+
}
|
|
3172
|
+
var sn = { viewport: "_viewport_1j377_1" }, cn = [
|
|
3173
|
+
"strip",
|
|
3174
|
+
"stack",
|
|
3175
|
+
"budget",
|
|
3176
|
+
"treemap"
|
|
3177
|
+
];
|
|
3178
|
+
function ln({ snapshot: e, initialView: t = "strip", selectedPartId: n, className: r, ...a }) {
|
|
3179
|
+
let [o, s] = i(t), c = n ?? e.selectedPartId;
|
|
3180
|
+
return /* @__PURE__ */ (0, _.jsx)(Ke, {
|
|
3181
|
+
title: e.title,
|
|
3182
|
+
actions: /* @__PURE__ */ (0, _.jsx)(Qe, {
|
|
3183
|
+
gap: "xs",
|
|
3184
|
+
children: cn.map((e) => /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3185
|
+
size: "compact",
|
|
3186
|
+
selected: o === e,
|
|
3187
|
+
"aria-pressed": o === e,
|
|
3188
|
+
onClick: () => s(e),
|
|
3189
|
+
children: e
|
|
3190
|
+
}, e))
|
|
3191
|
+
}),
|
|
3192
|
+
className: r,
|
|
3193
|
+
"data-rag-organism": "ContextDiagramPanel",
|
|
3194
|
+
...a,
|
|
3195
|
+
children: /* @__PURE__ */ (0, _.jsxs)(Ye, {
|
|
3196
|
+
gap: "sm",
|
|
3197
|
+
children: [
|
|
3198
|
+
e.subtitle && /* @__PURE__ */ (0, _.jsx)(y, { children: e.subtitle }),
|
|
3199
|
+
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3200
|
+
className: sn.viewport,
|
|
3201
|
+
children: [
|
|
3202
|
+
o === "strip" && /* @__PURE__ */ (0, _.jsx)(Dt, {
|
|
3203
|
+
snapshot: e,
|
|
3204
|
+
selectedPartId: c
|
|
3205
|
+
}),
|
|
3206
|
+
o === "stack" && /* @__PURE__ */ (0, _.jsx)(kt, {
|
|
3207
|
+
snapshot: e,
|
|
3208
|
+
selectedPartId: c
|
|
3209
|
+
}),
|
|
3210
|
+
o === "budget" && /* @__PURE__ */ (0, _.jsx)(Tt, {
|
|
3211
|
+
snapshot: e,
|
|
3212
|
+
selectedPartId: c
|
|
3213
|
+
}),
|
|
3214
|
+
o === "treemap" && /* @__PURE__ */ (0, _.jsx)(jt, {
|
|
3215
|
+
snapshot: e,
|
|
3216
|
+
selectedPartId: c
|
|
3217
|
+
})
|
|
3218
|
+
]
|
|
3219
|
+
}),
|
|
3220
|
+
/* @__PURE__ */ (0, _.jsx)(St, {
|
|
3221
|
+
compact: !0,
|
|
3222
|
+
kinds: [
|
|
3223
|
+
"system",
|
|
3224
|
+
"context",
|
|
3225
|
+
"summary",
|
|
3226
|
+
"result",
|
|
3227
|
+
"generated",
|
|
3228
|
+
"evicted",
|
|
3229
|
+
"active",
|
|
3230
|
+
"empty"
|
|
3231
|
+
],
|
|
3232
|
+
selectedKind: c ? e.parts.find((e) => e.id === c)?.kind : void 0
|
|
3233
|
+
})
|
|
3234
|
+
]
|
|
3235
|
+
})
|
|
3236
|
+
});
|
|
3237
|
+
}
|
|
3238
|
+
var un = {
|
|
3239
|
+
root: "_root_1szio_1",
|
|
3240
|
+
stream: "_stream_1szio_9"
|
|
3241
|
+
};
|
|
3242
|
+
//#endregion
|
|
3243
|
+
//#region src/components/organisms/TranscriptReaderPanel/TranscriptReaderPanel.tsx
|
|
3244
|
+
function dn(e) {
|
|
3245
|
+
return e.reduce((e, t) => e + (t.tokens ?? 0), 0);
|
|
3246
|
+
}
|
|
3247
|
+
function fn({ title: e = "Transcript", subtitle: t, messages: n, annotations: r = [], selectedAnnotationId: i, onAnnotationSelect: a, showAnnotationChips: o = !0, className: s, ...c }) {
|
|
3248
|
+
return /* @__PURE__ */ (0, _.jsxs)("section", {
|
|
3249
|
+
className: [un.root, s ?? ""].filter(Boolean).join(" "),
|
|
3250
|
+
"data-rag-organism": "TranscriptReaderPanel",
|
|
3251
|
+
...c,
|
|
3252
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Lt, {
|
|
3253
|
+
title: e,
|
|
3254
|
+
subtitle: t,
|
|
3255
|
+
messageCount: n.length,
|
|
3256
|
+
annotationCount: r.length,
|
|
3257
|
+
tokenTotal: dn(n)
|
|
3258
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3259
|
+
className: un.stream,
|
|
3260
|
+
children: n.map((e) => /* @__PURE__ */ (0, _.jsx)(Ft, {
|
|
3261
|
+
message: e,
|
|
3262
|
+
annotations: r,
|
|
3263
|
+
selectedAnnotationId: i,
|
|
3264
|
+
onAnnotationSelect: a,
|
|
3265
|
+
showAnnotationChips: o
|
|
3266
|
+
}, e.id))
|
|
3267
|
+
})]
|
|
3268
|
+
});
|
|
3269
|
+
}
|
|
3270
|
+
var pn = {
|
|
3271
|
+
root: "_root_1jf6m_1",
|
|
3272
|
+
header: "_header_1jf6m_10",
|
|
3273
|
+
description: "_description_1jf6m_17",
|
|
3274
|
+
list: "_list_1jf6m_22",
|
|
3275
|
+
button: "_button_1jf6m_32"
|
|
3276
|
+
};
|
|
3277
|
+
//#endregion
|
|
3278
|
+
//#region src/components/organisms/AnnotationRailPanel/AnnotationRailPanel.tsx
|
|
3279
|
+
function mn({ title: e = "Context-engineering notes", description: t = "What each message costs the window. Click a note or a message to focus it.", annotations: n, selectedAnnotationId: r, onAnnotationSelect: i, className: a, ...o }) {
|
|
3280
|
+
return /* @__PURE__ */ (0, _.jsxs)("aside", {
|
|
3281
|
+
className: [pn.root, a ?? ""].filter(Boolean).join(" "),
|
|
3282
|
+
"data-rag-organism": "AnnotationRailPanel",
|
|
3283
|
+
...o,
|
|
3284
|
+
children: [/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
3285
|
+
className: pn.header,
|
|
3286
|
+
children: [/* @__PURE__ */ (0, _.jsx)(h, {
|
|
3287
|
+
as: "div",
|
|
3288
|
+
size: "label",
|
|
3289
|
+
children: e
|
|
3290
|
+
}), /* @__PURE__ */ (0, _.jsx)(y, {
|
|
3291
|
+
className: pn.description,
|
|
3292
|
+
children: t
|
|
3293
|
+
})]
|
|
3294
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3295
|
+
className: pn.list,
|
|
3296
|
+
children: n.map((e, t) => /* @__PURE__ */ (0, _.jsx)("button", {
|
|
3297
|
+
type: "button",
|
|
3298
|
+
className: pn.button,
|
|
3299
|
+
onClick: () => i?.(e.id),
|
|
3300
|
+
children: /* @__PURE__ */ (0, _.jsx)(Rt, {
|
|
3301
|
+
annotation: e,
|
|
3302
|
+
selected: e.id === r,
|
|
3303
|
+
index: t + 1
|
|
3304
|
+
})
|
|
3305
|
+
}, e.id))
|
|
3306
|
+
})]
|
|
3307
|
+
});
|
|
3308
|
+
}
|
|
3309
|
+
var hn = {
|
|
3310
|
+
root: "_root_1q01w_1",
|
|
3311
|
+
withNotes: "_withNotes_1q01w_8",
|
|
3312
|
+
noNotes: "_noNotes_1q01w_13"
|
|
3313
|
+
};
|
|
3314
|
+
//#endregion
|
|
3315
|
+
//#region src/components/organisms/TranscriptWorkspacePanel/TranscriptWorkspacePanel.tsx
|
|
3316
|
+
function gn({ title: e, subtitle: t, messages: n, annotations: r = [], selectedAnnotationId: i, onAnnotationSelect: a, showNotes: o = r.length > 0, className: s, ...c }) {
|
|
3317
|
+
let l = o && r.length > 0;
|
|
3318
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3319
|
+
className: [
|
|
3320
|
+
hn.root,
|
|
3321
|
+
l ? hn.withNotes : hn.noNotes,
|
|
3322
|
+
s ?? ""
|
|
3323
|
+
].filter(Boolean).join(" "),
|
|
3324
|
+
"data-rag-organism": "TranscriptWorkspacePanel",
|
|
3325
|
+
...c,
|
|
3326
|
+
children: [/* @__PURE__ */ (0, _.jsx)(fn, {
|
|
3327
|
+
title: e,
|
|
3328
|
+
subtitle: t,
|
|
3329
|
+
messages: n,
|
|
3330
|
+
annotations: l ? r : [],
|
|
3331
|
+
selectedAnnotationId: i,
|
|
3332
|
+
onAnnotationSelect: a,
|
|
3333
|
+
showAnnotationChips: l
|
|
3334
|
+
}), l && /* @__PURE__ */ (0, _.jsx)(mn, {
|
|
3335
|
+
annotations: r,
|
|
3336
|
+
selectedAnnotationId: i,
|
|
3337
|
+
onAnnotationSelect: a
|
|
3338
|
+
})]
|
|
3339
|
+
});
|
|
3340
|
+
}
|
|
3341
|
+
//#endregion
|
|
3342
|
+
//#region src/components/organisms/AnchoredCommentRail/AnchoredCommentRail.tsx
|
|
3343
|
+
function _n({ title: e = "Comments", comments: t, selectedCommentId: n, onCommentSelect: r, ...i }) {
|
|
3344
|
+
return /* @__PURE__ */ (0, _.jsx)(Ke, {
|
|
3345
|
+
title: e,
|
|
3346
|
+
fill: !0,
|
|
3347
|
+
"data-rag-organism": "AnchoredCommentRail",
|
|
3348
|
+
...i,
|
|
3349
|
+
children: /* @__PURE__ */ (0, _.jsxs)(Ye, {
|
|
3350
|
+
gap: "sm",
|
|
3351
|
+
children: [/* @__PURE__ */ (0, _.jsxs)(y, { children: [
|
|
3352
|
+
t.length,
|
|
3353
|
+
" anchored comment",
|
|
3354
|
+
t.length === 1 ? "" : "s"
|
|
3355
|
+
] }), t.map((e, t) => /* @__PURE__ */ (0, _.jsx)("button", {
|
|
3356
|
+
type: "button",
|
|
3357
|
+
style: {
|
|
3358
|
+
appearance: "none",
|
|
3359
|
+
border: 0,
|
|
3360
|
+
background: "transparent",
|
|
3361
|
+
padding: 0,
|
|
3362
|
+
textAlign: "left",
|
|
3363
|
+
cursor: "pointer"
|
|
3364
|
+
},
|
|
3365
|
+
onClick: () => r?.(e.id),
|
|
3366
|
+
children: /* @__PURE__ */ (0, _.jsx)(zt, {
|
|
3367
|
+
comment: e,
|
|
3368
|
+
index: t + 1,
|
|
3369
|
+
selected: e.id === n
|
|
3370
|
+
})
|
|
3371
|
+
}, e.id))]
|
|
3372
|
+
})
|
|
3373
|
+
});
|
|
3374
|
+
}
|
|
3375
|
+
var q = {
|
|
3376
|
+
root: "_root_1io7b_1",
|
|
3377
|
+
hero: "_hero_1io7b_8",
|
|
3378
|
+
eyebrow: "_eyebrow_1io7b_12",
|
|
3379
|
+
title: "_title_1io7b_20",
|
|
3380
|
+
lead: "_lead_1io7b_28",
|
|
3381
|
+
ctaRow: "_ctaRow_1io7b_35",
|
|
3382
|
+
metaStrip: "_metaStrip_1io7b_42",
|
|
3383
|
+
instructorBlock: "_instructorBlock_1io7b_47",
|
|
3384
|
+
sectionLabel: "_sectionLabel_1io7b_51",
|
|
3385
|
+
blurb: "_blurb_1io7b_59"
|
|
3386
|
+
};
|
|
3387
|
+
//#endregion
|
|
3388
|
+
//#region src/components/organisms/CourseLessonPanel/CourseLessonPanel.tsx
|
|
3389
|
+
function vn({ course: e, activeAgendaItemId: t, onAgendaItemSelect: n, className: r, ...i }) {
|
|
3390
|
+
let a = e.agenda.map((e) => ({
|
|
3391
|
+
id: e.id,
|
|
3392
|
+
index: e.number,
|
|
3393
|
+
title: e.title,
|
|
3394
|
+
description: e.description,
|
|
3395
|
+
meta: e.duration
|
|
3396
|
+
}));
|
|
3397
|
+
return /* @__PURE__ */ (0, _.jsxs)("article", {
|
|
3398
|
+
className: [q.root, r ?? ""].filter(Boolean).join(" "),
|
|
3399
|
+
"data-rag-organism": "CourseLessonPanel",
|
|
3400
|
+
...i,
|
|
3401
|
+
children: [
|
|
3402
|
+
/* @__PURE__ */ (0, _.jsxs)(dt, {
|
|
3403
|
+
density: "spacious",
|
|
3404
|
+
divider: "bottom",
|
|
3405
|
+
className: q.hero,
|
|
3406
|
+
children: [
|
|
3407
|
+
e.kicker && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3408
|
+
className: q.eyebrow,
|
|
3409
|
+
children: e.kicker
|
|
3410
|
+
}),
|
|
3411
|
+
/* @__PURE__ */ (0, _.jsx)("h1", {
|
|
3412
|
+
className: q.title,
|
|
3413
|
+
children: e.title
|
|
3414
|
+
}),
|
|
3415
|
+
/* @__PURE__ */ (0, _.jsx)("p", {
|
|
3416
|
+
className: q.lead,
|
|
3417
|
+
children: e.tagline
|
|
3418
|
+
}),
|
|
3419
|
+
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3420
|
+
className: q.ctaRow,
|
|
3421
|
+
children: [
|
|
3422
|
+
/* @__PURE__ */ (0, _.jsx)(C, {
|
|
3423
|
+
variant: "primary",
|
|
3424
|
+
children: "Reserve a seat"
|
|
3425
|
+
}),
|
|
3426
|
+
/* @__PURE__ */ (0, _.jsx)(C, { children: "Preview the deck" }),
|
|
3427
|
+
e.price && /* @__PURE__ */ (0, _.jsx)(y, { children: e.price })
|
|
3428
|
+
]
|
|
3429
|
+
}),
|
|
3430
|
+
/* @__PURE__ */ (0, _.jsx)(Ht, {
|
|
3431
|
+
className: q.metaStrip,
|
|
3432
|
+
items: [
|
|
3433
|
+
{
|
|
3434
|
+
key: "When",
|
|
3435
|
+
value: e.when ?? "TBD"
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
key: "Where",
|
|
3439
|
+
value: e.where ?? "TBD"
|
|
3440
|
+
},
|
|
3441
|
+
{
|
|
3442
|
+
key: "Format",
|
|
3443
|
+
value: e.format ?? "TBD"
|
|
3444
|
+
}
|
|
3445
|
+
]
|
|
3446
|
+
})
|
|
3447
|
+
]
|
|
3448
|
+
}),
|
|
3449
|
+
/* @__PURE__ */ (0, _.jsx)(pt, {
|
|
3450
|
+
ratio: "course",
|
|
3451
|
+
divider: !0,
|
|
3452
|
+
left: /* @__PURE__ */ (0, _.jsxs)(dt, {
|
|
3453
|
+
label: "What you'll leave with",
|
|
3454
|
+
density: "spacious",
|
|
3455
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Wt, { items: e.outcomes }), e.instructor && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3456
|
+
className: q.instructorBlock,
|
|
3457
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
3458
|
+
className: q.sectionLabel,
|
|
3459
|
+
children: "Instructor"
|
|
3460
|
+
}), /* @__PURE__ */ (0, _.jsx)(qt, {
|
|
3461
|
+
name: e.instructor.name,
|
|
3462
|
+
subtitle: e.instructor.role,
|
|
3463
|
+
bio: e.instructor.bio
|
|
3464
|
+
})]
|
|
3465
|
+
})]
|
|
3466
|
+
}),
|
|
3467
|
+
right: /* @__PURE__ */ (0, _.jsx)(dt, {
|
|
3468
|
+
label: "Agenda · 2 hours",
|
|
3469
|
+
density: "spacious",
|
|
3470
|
+
children: /* @__PURE__ */ (0, _.jsx)(Gt, {
|
|
3471
|
+
items: a,
|
|
3472
|
+
activeItemId: t,
|
|
3473
|
+
onItemSelect: n
|
|
3474
|
+
})
|
|
3475
|
+
})
|
|
3476
|
+
}),
|
|
3477
|
+
e.blurb && /* @__PURE__ */ (0, _.jsx)(dt, {
|
|
3478
|
+
density: "spacious",
|
|
3479
|
+
divider: "top",
|
|
3480
|
+
children: /* @__PURE__ */ (0, _.jsx)("p", {
|
|
3481
|
+
className: q.blurb,
|
|
3482
|
+
children: e.blurb
|
|
3483
|
+
})
|
|
3484
|
+
})
|
|
3485
|
+
]
|
|
3486
|
+
});
|
|
3487
|
+
}
|
|
3488
|
+
//#endregion
|
|
3489
|
+
//#region src/components/organisms/CourseSlidePanel/CourseSlidePanel.tsx
|
|
3490
|
+
function yn(e, t) {
|
|
3491
|
+
return e.view === "strip" ? /* @__PURE__ */ (0, _.jsx)(Dt, { snapshot: t }) : e.view === "stack" ? /* @__PURE__ */ (0, _.jsx)(kt, { snapshot: t }) : e.view === "budget" ? /* @__PURE__ */ (0, _.jsx)(Tt, { snapshot: t }) : /* @__PURE__ */ (0, _.jsx)(jt, { snapshot: t });
|
|
3492
|
+
}
|
|
3493
|
+
function bn({ slide: e, snapshot: t, index: n, total: r, visualSide: i = "left", onPrevious: a, onNext: o, className: s, ...c }) {
|
|
3494
|
+
let l = n != null && r != null ? `${String(n + 1).padStart(2, "0")} / ${String(r).padStart(2, "0")}` : void 0, u = /* @__PURE__ */ (0, _.jsx)(Yt, {
|
|
3495
|
+
caption: `${t.title} — ${t.limit.toLocaleString()} token window`,
|
|
3496
|
+
legend: /* @__PURE__ */ (0, _.jsx)(St, { compact: !0 }),
|
|
3497
|
+
children: yn(e, t)
|
|
3498
|
+
}), d = /* @__PURE__ */ (0, _.jsx)(Zt, { items: e.notes }), f = a || o ? /* @__PURE__ */ (0, _.jsxs)(Qe, {
|
|
3499
|
+
justify: "between",
|
|
3500
|
+
children: [/* @__PURE__ */ (0, _.jsx)(C, {
|
|
3501
|
+
size: "compact",
|
|
3502
|
+
onClick: a,
|
|
3503
|
+
disabled: !a,
|
|
3504
|
+
children: "◂ Prev"
|
|
3505
|
+
}), /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3506
|
+
size: "compact",
|
|
3507
|
+
onClick: o,
|
|
3508
|
+
disabled: !o,
|
|
3509
|
+
children: "Next ▸"
|
|
3510
|
+
})]
|
|
3511
|
+
}) : void 0;
|
|
3512
|
+
return /* @__PURE__ */ (0, _.jsx)(mt, {
|
|
3513
|
+
eyebrow: e.kicker,
|
|
3514
|
+
counter: l,
|
|
3515
|
+
title: e.title,
|
|
3516
|
+
primary: u,
|
|
3517
|
+
secondary: d,
|
|
3518
|
+
primarySide: i,
|
|
3519
|
+
ratio: "primaryWide",
|
|
3520
|
+
footer: f,
|
|
3521
|
+
className: s,
|
|
3522
|
+
"data-rag-organism": "CourseSlidePanel",
|
|
3523
|
+
...c
|
|
3524
|
+
});
|
|
3525
|
+
}
|
|
3526
|
+
var xn = {
|
|
3527
|
+
header: "_header_i94hr_1",
|
|
3528
|
+
title: "_title_i94hr_7",
|
|
3529
|
+
content: "_content_i94hr_13"
|
|
3530
|
+
};
|
|
3531
|
+
//#endregion
|
|
3532
|
+
//#region src/components/organisms/CourseStudioShell/CourseStudioShell.tsx
|
|
3533
|
+
function Sn({ sections: e, activeItemId: t, onNavigate: n, title: r = "Context Window Engineering", subtitle: i = "Course studio", sidebarFooter: a, className: o, children: s, ...c }) {
|
|
3534
|
+
return /* @__PURE__ */ (0, _.jsx)(gt, {
|
|
3535
|
+
className: o,
|
|
3536
|
+
sidebarWidth: 188,
|
|
3537
|
+
header: /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3538
|
+
className: xn.header,
|
|
3539
|
+
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
3540
|
+
className: xn.title,
|
|
3541
|
+
children: r
|
|
3542
|
+
}), i && /* @__PURE__ */ (0, _.jsx)(y, { children: i })]
|
|
3543
|
+
}),
|
|
3544
|
+
footer: a,
|
|
3545
|
+
sidebar: /* @__PURE__ */ (0, _.jsx)(Qt, {
|
|
3546
|
+
sections: e,
|
|
3547
|
+
activeItemId: t,
|
|
3548
|
+
onItemSelect: n
|
|
3549
|
+
}),
|
|
3550
|
+
"data-rag-organism": "CourseStudioShell",
|
|
3551
|
+
...c,
|
|
3552
|
+
children: /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3553
|
+
className: xn.content,
|
|
3554
|
+
children: s
|
|
3555
|
+
})
|
|
3556
|
+
});
|
|
3557
|
+
}
|
|
3558
|
+
var Cn = {
|
|
3559
|
+
root: "_root_1a4mz_1",
|
|
3560
|
+
sidebar: "_sidebar_1a4mz_10",
|
|
3561
|
+
preview: "_preview_1a4mz_17",
|
|
3562
|
+
articleWrap: "_articleWrap_1a4mz_24",
|
|
3563
|
+
placeholder: "_placeholder_1a4mz_30"
|
|
3564
|
+
};
|
|
3565
|
+
//#endregion
|
|
3566
|
+
//#region src/components/organisms/HandoutDocumentShell/HandoutDocumentShell.tsx
|
|
3567
|
+
function wn(e, t) {
|
|
3568
|
+
return e.find((e) => e.id === t) ?? e[0];
|
|
3569
|
+
}
|
|
3570
|
+
function Tn({ intro: e, documents: t, selectedDocumentId: n, onDocumentSelect: r, onDownload: i, onDownloadAll: a, title: o = "Handout", emptyMessage: s = "Select a document to preview it.", className: c, ...l }) {
|
|
3571
|
+
let u = wn(t, n);
|
|
3572
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3573
|
+
className: [Cn.root, c ?? ""].filter(Boolean).join(" "),
|
|
3574
|
+
"data-rag-organism": "HandoutDocumentShell",
|
|
3575
|
+
...l,
|
|
3576
|
+
children: [/* @__PURE__ */ (0, _.jsx)("aside", {
|
|
3577
|
+
className: Cn.sidebar,
|
|
3578
|
+
children: /* @__PURE__ */ (0, _.jsx)(rn, {
|
|
3579
|
+
title: o,
|
|
3580
|
+
description: e,
|
|
3581
|
+
items: t.map((e) => ({
|
|
3582
|
+
id: e.id,
|
|
3583
|
+
title: e.title,
|
|
3584
|
+
format: e.format,
|
|
3585
|
+
size: e.size,
|
|
3586
|
+
description: e.description
|
|
3587
|
+
})),
|
|
3588
|
+
selectedItemId: u?.id,
|
|
3589
|
+
onItemSelect: r,
|
|
3590
|
+
onDownloadAll: a
|
|
3591
|
+
})
|
|
3592
|
+
}), /* @__PURE__ */ (0, _.jsx)("section", {
|
|
3593
|
+
className: Cn.preview,
|
|
3594
|
+
children: u ? /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [/* @__PURE__ */ (0, _.jsx)(on, {
|
|
3595
|
+
file: u.file,
|
|
3596
|
+
format: u.format,
|
|
3597
|
+
size: u.size,
|
|
3598
|
+
onDownload: i ? () => i(u.id) : void 0
|
|
3599
|
+
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3600
|
+
className: Cn.articleWrap,
|
|
3601
|
+
children: u.format.toLowerCase().includes("markdown") ? /* @__PURE__ */ (0, _.jsx)(tn, { source: u.body }) : /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3602
|
+
className: Cn.placeholder,
|
|
3603
|
+
children: /* @__PURE__ */ (0, _.jsx)(y, { children: u.description })
|
|
3604
|
+
})
|
|
3605
|
+
})] }) : /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3606
|
+
className: Cn.placeholder,
|
|
3607
|
+
children: /* @__PURE__ */ (0, _.jsx)(y, { children: s })
|
|
3608
|
+
})
|
|
3609
|
+
})]
|
|
3610
|
+
});
|
|
3611
|
+
}
|
|
3612
|
+
//#endregion
|
|
3613
|
+
//#region src/widgets/WidgetRenderer.tsx
|
|
3614
|
+
function En({ node: e, onAction: t }) {
|
|
3615
|
+
return /* @__PURE__ */ (0, _.jsx)(_.Fragment, { children: J(e, t) });
|
|
3616
|
+
}
|
|
3617
|
+
function J(e, t) {
|
|
3618
|
+
return e.kind === "text" ? e.text : e.kind === "element" ? Dn(e, t) : On(e, t);
|
|
3619
|
+
}
|
|
3620
|
+
function Y(e, t) {
|
|
3621
|
+
return (e ?? []).map((e, n) => /* @__PURE__ */ (0, _.jsx)(En, {
|
|
3622
|
+
node: e,
|
|
3623
|
+
onAction: t
|
|
3624
|
+
}, n));
|
|
3625
|
+
}
|
|
3626
|
+
function X(e, t) {
|
|
3627
|
+
return b(e, (e) => J(e, t));
|
|
3628
|
+
}
|
|
3629
|
+
function Z(e, t) {
|
|
3630
|
+
return e ? J(e, t) : void 0;
|
|
3631
|
+
}
|
|
3632
|
+
function Dn(e, n) {
|
|
3633
|
+
let r = { ...e.attrs ?? {} };
|
|
3634
|
+
return r.style && typeof r.style == "object" && (r.style = r.style), t(e.tag, r, ...Y(e.children, n));
|
|
3635
|
+
}
|
|
3636
|
+
function On(e, t) {
|
|
3637
|
+
switch (e.type) {
|
|
3638
|
+
case "AppShell": return kn(e, t);
|
|
3639
|
+
case "AppNav": return An(e, t);
|
|
3640
|
+
case "Button": return jn(e, t);
|
|
3641
|
+
case "Text": return Mn(e, t);
|
|
3642
|
+
case "CodeText": return Nn(e, t);
|
|
3643
|
+
case "Divider": return Pn(e);
|
|
3644
|
+
case "ContextKindSwatch": return Fn(e);
|
|
3645
|
+
case "AnnotationBadge": return In(e);
|
|
3646
|
+
case "TranscriptRoleBadge": return Ln(e);
|
|
3647
|
+
case "ContextLegend": return Rn(e);
|
|
3648
|
+
case "ContextBudgetBar": return zn(e);
|
|
3649
|
+
case "ContextStripDiagram": return Bn(e);
|
|
3650
|
+
case "ContextStackDiagram": return Vn(e);
|
|
3651
|
+
case "ContextTreemap": return Hn(e);
|
|
3652
|
+
case "ContextDiagramPanel": return Un(e);
|
|
3653
|
+
case "TranscriptSessionHeader": return Wn(e, t);
|
|
3654
|
+
case "TranscriptMessageCard": return Gn(e, t);
|
|
3655
|
+
case "AnnotationNoteCard": return Kn(e);
|
|
3656
|
+
case "AnnotationRailPanel": return qn(e, t);
|
|
3657
|
+
case "TranscriptReaderPanel": return Jn(e, t);
|
|
3658
|
+
case "TranscriptWorkspacePanel": return Yn(e, t);
|
|
3659
|
+
case "AnchoredCommentCard": return Xn(e, t);
|
|
3660
|
+
case "AnchoredCommentRail": return Zn(e, t);
|
|
3661
|
+
case "KeyValueStrip": return Qn(e, t);
|
|
3662
|
+
case "CheckList": return $n(e, t);
|
|
3663
|
+
case "StepList": return er(e, t);
|
|
3664
|
+
case "PersonSummary": return tr(e, t);
|
|
3665
|
+
case "FigureBlock": return nr(e, t);
|
|
3666
|
+
case "KeyPointList": return rr(e, t);
|
|
3667
|
+
case "SidebarNav": return ir(e, t);
|
|
3668
|
+
case "CourseStepNav": return ar(e, t);
|
|
3669
|
+
case "MarkdownArticle": return or(e);
|
|
3670
|
+
case "DocumentListPanel": return sr(e, t);
|
|
3671
|
+
case "DocumentPreviewToolbar": return cr(e, t);
|
|
3672
|
+
case "CourseLessonPanel": return lr(e, t);
|
|
3673
|
+
case "CourseSlidePanel": return ur(e, t);
|
|
3674
|
+
case "CourseStudioShell": return dr(e, t);
|
|
3675
|
+
case "HandoutDocumentShell": return fr(e, t);
|
|
3676
|
+
case "Caption": return gr(e, t);
|
|
3677
|
+
case "DashboardGrid": return _r(e, t);
|
|
3678
|
+
case "DataTable": return vr(e, t);
|
|
3679
|
+
case "FormRow": return yr(e, t);
|
|
3680
|
+
case "Inline": return br(e, t);
|
|
3681
|
+
case "MetadataGrid": return xr(e, t);
|
|
3682
|
+
case "Panel": return Sr(e, t);
|
|
3683
|
+
case "ScrollRegion": return Cr(e, t);
|
|
3684
|
+
case "SectionBlock": return wr(e, t);
|
|
3685
|
+
case "SplitPane": return Tr(e, t);
|
|
3686
|
+
case "SidebarShell": return Er(e, t);
|
|
3687
|
+
case "SlideShell": return Dr(e, t);
|
|
3688
|
+
case "SelectInput": return Or(e, t);
|
|
3689
|
+
case "Stack": return kr(e, t);
|
|
3690
|
+
case "StatusText": return Ar(e, t);
|
|
3691
|
+
case "TabList": return jr(e, t);
|
|
3692
|
+
case "TextInput": return Mr(e);
|
|
3693
|
+
default: return /* @__PURE__ */ (0, _.jsxs)(ve, { children: ["Unknown widget: ", e.type] });
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
function kn(e, t) {
|
|
3697
|
+
let n = e.props ?? {};
|
|
3698
|
+
return /* @__PURE__ */ (0, _.jsx)(rt, {
|
|
3699
|
+
className: n.className,
|
|
3700
|
+
header: n.header ? J(n.header, t) : void 0,
|
|
3701
|
+
sidebar: n.sidebar ? J(n.sidebar, t) : void 0,
|
|
3702
|
+
children: Y(e.children, t)
|
|
3703
|
+
});
|
|
3704
|
+
}
|
|
3705
|
+
function An(e, t) {
|
|
3706
|
+
let n = e.props ?? {};
|
|
3707
|
+
return /* @__PURE__ */ (0, _.jsx)(bt, {
|
|
3708
|
+
brand: X(n.brand, t),
|
|
3709
|
+
items: n.items.map((e) => ({
|
|
3710
|
+
id: e.id,
|
|
3711
|
+
label: X(e.label, t)
|
|
3712
|
+
})),
|
|
3713
|
+
activeItemId: n.activeItemId,
|
|
3714
|
+
onItemSelect: (e) => {
|
|
3715
|
+
let r = n.items.find((t) => t.id === e);
|
|
3716
|
+
r?.action && $(r.action, {
|
|
3717
|
+
value: e,
|
|
3718
|
+
componentType: "AppNav"
|
|
3719
|
+
}, t);
|
|
3720
|
+
}
|
|
3721
|
+
});
|
|
3722
|
+
}
|
|
3723
|
+
function jn(e, t) {
|
|
3724
|
+
let n = e.props ?? {};
|
|
3725
|
+
return /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3726
|
+
className: n.className,
|
|
3727
|
+
variant: n.variant,
|
|
3728
|
+
size: n.size,
|
|
3729
|
+
selected: n.selected,
|
|
3730
|
+
disabled: n.disabled,
|
|
3731
|
+
type: n.type ?? "button",
|
|
3732
|
+
onClick: c(n.action, { componentType: "Button" }, t),
|
|
3733
|
+
children: Y(e.children, t)
|
|
3734
|
+
});
|
|
3735
|
+
}
|
|
3736
|
+
function Mn(e, t) {
|
|
3737
|
+
let n = e.props ?? {};
|
|
3738
|
+
return /* @__PURE__ */ (0, _.jsx)(h, {
|
|
3739
|
+
className: n.className,
|
|
3740
|
+
as: n.as,
|
|
3741
|
+
size: n.size,
|
|
3742
|
+
tone: n.tone,
|
|
3743
|
+
weight: n.weight,
|
|
3744
|
+
align: n.align,
|
|
3745
|
+
truncate: n.truncate,
|
|
3746
|
+
children: Y(e.children, t)
|
|
3747
|
+
});
|
|
3748
|
+
}
|
|
3749
|
+
function Nn(e, t) {
|
|
3750
|
+
let n = e.props ?? {};
|
|
3751
|
+
return /* @__PURE__ */ (0, _.jsx)(ae, {
|
|
3752
|
+
className: n.className,
|
|
3753
|
+
as: n.as,
|
|
3754
|
+
tone: n.tone,
|
|
3755
|
+
display: n.display,
|
|
3756
|
+
copyable: n.copyable,
|
|
3757
|
+
children: Y(e.children, t)
|
|
3758
|
+
});
|
|
3759
|
+
}
|
|
3760
|
+
function Pn(e) {
|
|
3761
|
+
let t = e.props ?? {};
|
|
3762
|
+
return /* @__PURE__ */ (0, _.jsx)(ue, {
|
|
3763
|
+
className: t.className,
|
|
3764
|
+
orientation: t.orientation
|
|
3765
|
+
});
|
|
3766
|
+
}
|
|
3767
|
+
function Fn(e) {
|
|
3768
|
+
let t = e.props ?? {};
|
|
3769
|
+
return /* @__PURE__ */ (0, _.jsx)(Be, {
|
|
3770
|
+
className: t.className,
|
|
3771
|
+
kind: t.kind,
|
|
3772
|
+
mode: t.mode,
|
|
3773
|
+
size: t.size,
|
|
3774
|
+
selected: t.selected
|
|
3775
|
+
});
|
|
3776
|
+
}
|
|
3777
|
+
function In(e) {
|
|
3778
|
+
let t = e.props ?? {};
|
|
3779
|
+
return /* @__PURE__ */ (0, _.jsx)(We, {
|
|
3780
|
+
className: t.className,
|
|
3781
|
+
kind: t.kind,
|
|
3782
|
+
label: t.label,
|
|
3783
|
+
selected: t.selected
|
|
3784
|
+
});
|
|
3785
|
+
}
|
|
3786
|
+
function Ln(e) {
|
|
3787
|
+
let t = e.props ?? {};
|
|
3788
|
+
return /* @__PURE__ */ (0, _.jsx)(He, {
|
|
3789
|
+
className: t.className,
|
|
3790
|
+
role: t.role,
|
|
3791
|
+
name: t.name
|
|
3792
|
+
});
|
|
3793
|
+
}
|
|
3794
|
+
function Rn(e) {
|
|
3795
|
+
let t = e.props ?? {};
|
|
3796
|
+
return /* @__PURE__ */ (0, _.jsx)(St, {
|
|
3797
|
+
className: t.className,
|
|
3798
|
+
kinds: t.kinds,
|
|
3799
|
+
mode: t.mode,
|
|
3800
|
+
compact: t.compact,
|
|
3801
|
+
selectedKind: t.selectedKind
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
function zn(e) {
|
|
3805
|
+
let t = e.props ?? {};
|
|
3806
|
+
return /* @__PURE__ */ (0, _.jsx)(Tt, {
|
|
3807
|
+
className: t.className,
|
|
3808
|
+
snapshot: t.snapshot,
|
|
3809
|
+
mode: t.mode,
|
|
3810
|
+
showLegend: t.showLegend,
|
|
3811
|
+
selectedPartId: t.selectedPartId
|
|
3812
|
+
});
|
|
3813
|
+
}
|
|
3814
|
+
function Bn(e) {
|
|
3815
|
+
let t = e.props ?? {};
|
|
3816
|
+
return /* @__PURE__ */ (0, _.jsx)(Dt, {
|
|
3817
|
+
className: t.className,
|
|
3818
|
+
snapshot: t.snapshot,
|
|
3819
|
+
mode: t.mode,
|
|
3820
|
+
selectedPartId: t.selectedPartId,
|
|
3821
|
+
showLabels: t.showLabels
|
|
3822
|
+
});
|
|
3823
|
+
}
|
|
3824
|
+
function Vn(e) {
|
|
3825
|
+
let t = e.props ?? {};
|
|
3826
|
+
return /* @__PURE__ */ (0, _.jsx)(kt, {
|
|
3827
|
+
className: t.className,
|
|
3828
|
+
snapshot: t.snapshot,
|
|
3829
|
+
selectedPartId: t.selectedPartId
|
|
3830
|
+
});
|
|
3831
|
+
}
|
|
3832
|
+
function Hn(e) {
|
|
3833
|
+
let t = e.props ?? {};
|
|
3834
|
+
return /* @__PURE__ */ (0, _.jsx)(jt, {
|
|
3835
|
+
className: t.className,
|
|
3836
|
+
snapshot: t.snapshot,
|
|
3837
|
+
selectedPartId: t.selectedPartId
|
|
3838
|
+
});
|
|
3839
|
+
}
|
|
3840
|
+
function Un(e) {
|
|
3841
|
+
let t = e.props ?? {};
|
|
3842
|
+
return /* @__PURE__ */ (0, _.jsx)(ln, {
|
|
3843
|
+
className: t.className,
|
|
3844
|
+
snapshot: t.snapshot,
|
|
3845
|
+
initialView: t.initialView,
|
|
3846
|
+
selectedPartId: t.selectedPartId
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3849
|
+
function Wn(e, t) {
|
|
3850
|
+
let n = e.props ?? {};
|
|
3851
|
+
return /* @__PURE__ */ (0, _.jsx)(Lt, {
|
|
3852
|
+
className: n.className,
|
|
3853
|
+
title: X(n.title, t),
|
|
3854
|
+
subtitle: X(n.subtitle, t),
|
|
3855
|
+
messageCount: n.messageCount,
|
|
3856
|
+
annotationCount: n.annotationCount,
|
|
3857
|
+
tokenTotal: n.tokenTotal,
|
|
3858
|
+
rightSlot: Z(n.rightSlot, t)
|
|
3859
|
+
});
|
|
3860
|
+
}
|
|
3861
|
+
function Gn(e, t) {
|
|
3862
|
+
let n = e.props ?? {};
|
|
3863
|
+
return /* @__PURE__ */ (0, _.jsx)(Ft, {
|
|
3864
|
+
className: n.className,
|
|
3865
|
+
message: n.message,
|
|
3866
|
+
annotations: n.annotations,
|
|
3867
|
+
selectedAnnotationId: n.selectedAnnotationId,
|
|
3868
|
+
showAnnotationChips: n.showAnnotationChips,
|
|
3869
|
+
onAnnotationSelect: hr("TranscriptMessageCard", n.onAnnotationSelectAction, t)
|
|
3870
|
+
});
|
|
3871
|
+
}
|
|
3872
|
+
function Kn(e) {
|
|
3873
|
+
let t = e.props ?? {};
|
|
3874
|
+
return /* @__PURE__ */ (0, _.jsx)(Rt, {
|
|
3875
|
+
className: t.className,
|
|
3876
|
+
annotation: t.annotation,
|
|
3877
|
+
selected: t.selected,
|
|
3878
|
+
index: t.index
|
|
3879
|
+
});
|
|
3880
|
+
}
|
|
3881
|
+
function qn(e, t) {
|
|
3882
|
+
let n = e.props ?? {};
|
|
3883
|
+
return /* @__PURE__ */ (0, _.jsx)(mn, {
|
|
3884
|
+
className: n.className,
|
|
3885
|
+
title: n.title,
|
|
3886
|
+
description: n.description,
|
|
3887
|
+
annotations: n.annotations,
|
|
3888
|
+
selectedAnnotationId: n.selectedAnnotationId,
|
|
3889
|
+
onAnnotationSelect: hr("AnnotationRailPanel", n.onAnnotationSelectAction, t)
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
function Jn(e, t) {
|
|
3893
|
+
let n = e.props ?? {};
|
|
3894
|
+
return /* @__PURE__ */ (0, _.jsx)(fn, {
|
|
3895
|
+
className: n.className,
|
|
3896
|
+
title: n.title,
|
|
3897
|
+
subtitle: n.subtitle,
|
|
3898
|
+
messages: n.messages,
|
|
3899
|
+
annotations: n.annotations,
|
|
3900
|
+
selectedAnnotationId: n.selectedAnnotationId,
|
|
3901
|
+
showAnnotationChips: n.showAnnotationChips,
|
|
3902
|
+
onAnnotationSelect: hr("TranscriptReaderPanel", n.onAnnotationSelectAction, t)
|
|
3903
|
+
});
|
|
3904
|
+
}
|
|
3905
|
+
function Yn(e, t) {
|
|
3906
|
+
let n = e.props ?? {};
|
|
3907
|
+
return /* @__PURE__ */ (0, _.jsx)(gn, {
|
|
3908
|
+
className: n.className,
|
|
3909
|
+
title: n.title,
|
|
3910
|
+
subtitle: n.subtitle,
|
|
3911
|
+
messages: n.messages,
|
|
3912
|
+
annotations: n.annotations,
|
|
3913
|
+
selectedAnnotationId: n.selectedAnnotationId,
|
|
3914
|
+
showNotes: n.showNotes,
|
|
3915
|
+
onAnnotationSelect: hr("TranscriptWorkspacePanel", n.onAnnotationSelectAction, t)
|
|
3916
|
+
});
|
|
3917
|
+
}
|
|
3918
|
+
function Xn(e, t) {
|
|
3919
|
+
let n = e.props ?? {};
|
|
3920
|
+
return /* @__PURE__ */ (0, _.jsx)(zt, {
|
|
3921
|
+
className: n.className,
|
|
3922
|
+
comment: n.comment,
|
|
3923
|
+
index: n.index,
|
|
3924
|
+
selected: n.selected,
|
|
3925
|
+
compact: n.compact,
|
|
3926
|
+
onDismiss: n.onDismissAction ? () => $(n.onDismissAction, {
|
|
3927
|
+
commentId: n.comment.id,
|
|
3928
|
+
value: n.comment.id,
|
|
3929
|
+
componentType: "AnchoredCommentCard"
|
|
3930
|
+
}, t) : void 0
|
|
3931
|
+
});
|
|
3932
|
+
}
|
|
3933
|
+
function Zn(e, t) {
|
|
3934
|
+
let n = e.props ?? {};
|
|
3935
|
+
return /* @__PURE__ */ (0, _.jsx)(_n, {
|
|
3936
|
+
className: n.className,
|
|
3937
|
+
title: n.title,
|
|
3938
|
+
comments: n.comments,
|
|
3939
|
+
selectedCommentId: n.selectedCommentId,
|
|
3940
|
+
onCommentSelect: n.onCommentSelectAction ? (e) => $(n.onCommentSelectAction, {
|
|
3941
|
+
commentId: e,
|
|
3942
|
+
value: e,
|
|
3943
|
+
componentType: "AnchoredCommentRail"
|
|
3944
|
+
}, t) : void 0
|
|
3945
|
+
});
|
|
3946
|
+
}
|
|
3947
|
+
function Qn(e, t) {
|
|
3948
|
+
let n = e.props ?? {};
|
|
3949
|
+
return /* @__PURE__ */ (0, _.jsx)(Ht, {
|
|
3950
|
+
className: n.className,
|
|
3951
|
+
items: n.items.map((e) => ({
|
|
3952
|
+
key: X(e.key, t),
|
|
3953
|
+
value: X(e.value, t)
|
|
3954
|
+
}))
|
|
3955
|
+
});
|
|
3956
|
+
}
|
|
3957
|
+
function $n(e, t) {
|
|
3958
|
+
let n = e.props ?? {};
|
|
3959
|
+
return /* @__PURE__ */ (0, _.jsx)(Wt, {
|
|
3960
|
+
className: n.className,
|
|
3961
|
+
marker: X(n.marker, t),
|
|
3962
|
+
items: n.items.map((e) => pr(e) ? {
|
|
3963
|
+
...e,
|
|
3964
|
+
text: X(e.text, t)
|
|
3965
|
+
} : X(e, t))
|
|
3966
|
+
});
|
|
3967
|
+
}
|
|
3968
|
+
function er(e, t) {
|
|
3969
|
+
let n = e.props ?? {};
|
|
3970
|
+
return /* @__PURE__ */ (0, _.jsx)(Gt, {
|
|
3971
|
+
className: n.className,
|
|
3972
|
+
items: n.items.map((e) => ({
|
|
3973
|
+
...e,
|
|
3974
|
+
index: X(e.index, t),
|
|
3975
|
+
title: X(e.title, t),
|
|
3976
|
+
description: X(e.description, t),
|
|
3977
|
+
meta: X(e.meta, t)
|
|
3978
|
+
})),
|
|
3979
|
+
activeItemId: n.activeItemId,
|
|
3980
|
+
onItemSelect: Q("StepList", n.onItemSelectAction, "itemId", t)
|
|
3981
|
+
});
|
|
3982
|
+
}
|
|
3983
|
+
function tr(e, t) {
|
|
3984
|
+
let n = e.props ?? {};
|
|
3985
|
+
return /* @__PURE__ */ (0, _.jsx)(qt, {
|
|
3986
|
+
className: n.className,
|
|
3987
|
+
name: X(n.name, t),
|
|
3988
|
+
subtitle: X(n.subtitle, t),
|
|
3989
|
+
bio: X(n.bio, t),
|
|
3990
|
+
avatar: X(n.avatar, t)
|
|
3991
|
+
});
|
|
3992
|
+
}
|
|
3993
|
+
function nr(e, t) {
|
|
3994
|
+
let n = e.props ?? {};
|
|
3995
|
+
return /* @__PURE__ */ (0, _.jsx)(Yt, {
|
|
3996
|
+
className: n.className,
|
|
3997
|
+
as: n.as,
|
|
3998
|
+
caption: X(n.caption, t),
|
|
3999
|
+
legend: Z(n.legend, t),
|
|
4000
|
+
frame: n.frame,
|
|
4001
|
+
children: Y(e.children, t)
|
|
4002
|
+
});
|
|
4003
|
+
}
|
|
4004
|
+
function rr(e, t) {
|
|
4005
|
+
let n = e.props ?? {};
|
|
4006
|
+
return /* @__PURE__ */ (0, _.jsx)(Zt, {
|
|
4007
|
+
className: n.className,
|
|
4008
|
+
markerTone: n.markerTone,
|
|
4009
|
+
items: n.items.map((e) => mr(e) ? {
|
|
4010
|
+
...e,
|
|
4011
|
+
index: X(e.index, t),
|
|
4012
|
+
title: X(e.title, t),
|
|
4013
|
+
text: X(e.text, t),
|
|
4014
|
+
meta: X(e.meta, t)
|
|
4015
|
+
} : X(e, t))
|
|
4016
|
+
});
|
|
4017
|
+
}
|
|
4018
|
+
function ir(e, t) {
|
|
4019
|
+
let n = e.props ?? {};
|
|
4020
|
+
return /* @__PURE__ */ (0, _.jsx)(Qt, {
|
|
4021
|
+
className: n.className,
|
|
4022
|
+
sections: n.sections.map((e) => ({
|
|
4023
|
+
...e,
|
|
4024
|
+
label: X(e.label, t),
|
|
4025
|
+
items: e.items.map((e) => ({
|
|
4026
|
+
...e,
|
|
4027
|
+
label: X(e.label, t),
|
|
4028
|
+
icon: X(e.icon, t),
|
|
4029
|
+
badge: X(e.badge, t)
|
|
4030
|
+
}))
|
|
4031
|
+
})),
|
|
4032
|
+
activeItemId: n.activeItemId,
|
|
4033
|
+
ariaLabel: n.ariaLabel,
|
|
4034
|
+
onItemSelect: Q("SidebarNav", n.onItemSelectAction, "itemId", t)
|
|
4035
|
+
});
|
|
4036
|
+
}
|
|
4037
|
+
function ar(e, t) {
|
|
4038
|
+
let n = e.props ?? {};
|
|
4039
|
+
return /* @__PURE__ */ (0, _.jsx)(Bt, {
|
|
4040
|
+
className: n.className,
|
|
4041
|
+
items: n.items,
|
|
4042
|
+
activeItemId: n.activeItemId,
|
|
4043
|
+
onItemSelect: Q("CourseStepNav", n.onItemSelectAction, "itemId", t)
|
|
4044
|
+
});
|
|
4045
|
+
}
|
|
4046
|
+
function or(e) {
|
|
4047
|
+
let t = e.props ?? {};
|
|
4048
|
+
return /* @__PURE__ */ (0, _.jsx)(tn, {
|
|
4049
|
+
className: t.className,
|
|
4050
|
+
source: t.source
|
|
4051
|
+
});
|
|
4052
|
+
}
|
|
4053
|
+
function sr(e, t) {
|
|
4054
|
+
let n = e.props ?? {};
|
|
4055
|
+
return /* @__PURE__ */ (0, _.jsx)(rn, {
|
|
4056
|
+
className: n.className,
|
|
4057
|
+
title: X(n.title, t),
|
|
4058
|
+
description: X(n.description, t),
|
|
4059
|
+
items: n.items.map((e) => ({
|
|
4060
|
+
...e,
|
|
4061
|
+
title: X(e.title, t),
|
|
4062
|
+
format: X(e.format, t),
|
|
4063
|
+
size: X(e.size, t),
|
|
4064
|
+
description: X(e.description, t),
|
|
4065
|
+
icon: X(e.icon, t)
|
|
4066
|
+
})),
|
|
4067
|
+
selectedItemId: n.selectedItemId,
|
|
4068
|
+
onItemSelect: Q("DocumentListPanel", n.onItemSelectAction, "itemId", t),
|
|
4069
|
+
onDownloadAll: n.onDownloadAllAction ? () => $(n.onDownloadAllAction, { componentType: "DocumentListPanel" }, t) : void 0,
|
|
4070
|
+
downloadAllLabel: X(n.downloadAllLabel, t),
|
|
4071
|
+
emptyMessage: X(n.emptyMessage, t),
|
|
4072
|
+
showItemDescriptions: n.showItemDescriptions
|
|
4073
|
+
});
|
|
4074
|
+
}
|
|
4075
|
+
function cr(e, t) {
|
|
4076
|
+
let n = e.props ?? {};
|
|
4077
|
+
return /* @__PURE__ */ (0, _.jsx)(on, {
|
|
4078
|
+
className: n.className,
|
|
4079
|
+
file: X(n.file, t),
|
|
4080
|
+
format: X(n.format, t),
|
|
4081
|
+
size: X(n.size, t),
|
|
4082
|
+
onDownload: n.onDownloadAction ? () => $(n.onDownloadAction, { componentType: "DocumentPreviewToolbar" }, t) : void 0,
|
|
4083
|
+
downloadLabel: X(n.downloadLabel, t),
|
|
4084
|
+
rightSlot: Z(n.rightSlot, t)
|
|
4085
|
+
});
|
|
4086
|
+
}
|
|
4087
|
+
function lr(e, t) {
|
|
4088
|
+
let n = e.props ?? {};
|
|
4089
|
+
return /* @__PURE__ */ (0, _.jsx)(vn, {
|
|
4090
|
+
className: n.className,
|
|
4091
|
+
course: n.course,
|
|
4092
|
+
activeAgendaItemId: n.activeAgendaItemId,
|
|
4093
|
+
onAgendaItemSelect: Q("CourseLessonPanel", n.onAgendaItemSelectAction, "agendaItemId", t)
|
|
4094
|
+
});
|
|
4095
|
+
}
|
|
4096
|
+
function ur(e, t) {
|
|
4097
|
+
let n = e.props ?? {};
|
|
4098
|
+
return /* @__PURE__ */ (0, _.jsx)(bn, {
|
|
4099
|
+
className: n.className,
|
|
4100
|
+
slide: n.slide,
|
|
4101
|
+
snapshot: n.snapshot,
|
|
4102
|
+
index: n.index,
|
|
4103
|
+
total: n.total,
|
|
4104
|
+
visualSide: n.visualSide,
|
|
4105
|
+
onPrevious: n.onPreviousAction ? () => $(n.onPreviousAction, {
|
|
4106
|
+
componentType: "CourseSlidePanel",
|
|
4107
|
+
value: "previous"
|
|
4108
|
+
}, t) : void 0,
|
|
4109
|
+
onNext: n.onNextAction ? () => $(n.onNextAction, {
|
|
4110
|
+
componentType: "CourseSlidePanel",
|
|
4111
|
+
value: "next"
|
|
4112
|
+
}, t) : void 0
|
|
4113
|
+
});
|
|
4114
|
+
}
|
|
4115
|
+
function dr(e, t) {
|
|
4116
|
+
let n = e.props ?? {};
|
|
4117
|
+
return /* @__PURE__ */ (0, _.jsx)(Sn, {
|
|
4118
|
+
className: n.className,
|
|
4119
|
+
sections: n.sections.map((e) => ({
|
|
4120
|
+
...e,
|
|
4121
|
+
label: X(e.label, t),
|
|
4122
|
+
items: e.items.map((e) => ({
|
|
4123
|
+
...e,
|
|
4124
|
+
label: X(e.label, t),
|
|
4125
|
+
icon: X(e.icon, t),
|
|
4126
|
+
badge: X(e.badge, t)
|
|
4127
|
+
}))
|
|
4128
|
+
})),
|
|
4129
|
+
activeItemId: n.activeItemId,
|
|
4130
|
+
onNavigate: Q("CourseStudioShell", n.onNavigateAction, "itemId", t),
|
|
4131
|
+
title: X(n.title, t),
|
|
4132
|
+
subtitle: X(n.subtitle, t),
|
|
4133
|
+
sidebarFooter: Z(n.sidebarFooter, t),
|
|
4134
|
+
children: Y(e.children, t)
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
function fr(e, t) {
|
|
4138
|
+
let n = e.props ?? {};
|
|
4139
|
+
return /* @__PURE__ */ (0, _.jsx)(Tn, {
|
|
4140
|
+
className: n.className,
|
|
4141
|
+
intro: X(n.intro, t),
|
|
4142
|
+
documents: n.documents,
|
|
4143
|
+
selectedDocumentId: n.selectedDocumentId,
|
|
4144
|
+
onDocumentSelect: Q("HandoutDocumentShell", n.onDocumentSelectAction, "documentId", t),
|
|
4145
|
+
onDownload: n.onDownloadAction ? (e) => $(n.onDownloadAction, {
|
|
4146
|
+
documentId: e,
|
|
4147
|
+
value: e,
|
|
4148
|
+
componentType: "HandoutDocumentShell"
|
|
4149
|
+
}, t) : void 0,
|
|
4150
|
+
onDownloadAll: n.onDownloadAllAction ? () => $(n.onDownloadAllAction, { componentType: "HandoutDocumentShell" }, t) : void 0,
|
|
4151
|
+
title: X(n.title, t),
|
|
4152
|
+
emptyMessage: X(n.emptyMessage, t)
|
|
4153
|
+
});
|
|
4154
|
+
}
|
|
4155
|
+
function pr(e) {
|
|
4156
|
+
return typeof e == "object" && !!e && "text" in e;
|
|
4157
|
+
}
|
|
4158
|
+
function mr(e) {
|
|
4159
|
+
return typeof e == "object" && !!e && "text" in e;
|
|
4160
|
+
}
|
|
4161
|
+
function Q(e, t, n, r) {
|
|
4162
|
+
if (t) return (i) => $(t, {
|
|
4163
|
+
[n]: i,
|
|
4164
|
+
value: i,
|
|
4165
|
+
componentType: e
|
|
4166
|
+
}, r);
|
|
4167
|
+
}
|
|
4168
|
+
function hr(e, t, n) {
|
|
4169
|
+
if (t) return (r) => $(t, {
|
|
4170
|
+
annotationId: r,
|
|
4171
|
+
value: r,
|
|
4172
|
+
componentType: e
|
|
4173
|
+
}, n);
|
|
4174
|
+
}
|
|
4175
|
+
function gr(e, t) {
|
|
4176
|
+
let n = e.props ?? {};
|
|
4177
|
+
return /* @__PURE__ */ (0, _.jsx)(y, {
|
|
4178
|
+
className: n.className,
|
|
4179
|
+
tone: n.tone,
|
|
4180
|
+
transform: n.transform,
|
|
4181
|
+
truncate: n.truncate,
|
|
4182
|
+
children: Y(e.children, t)
|
|
4183
|
+
});
|
|
4184
|
+
}
|
|
4185
|
+
function _r(e, t) {
|
|
4186
|
+
let n = e.props ?? {};
|
|
4187
|
+
return /* @__PURE__ */ (0, _.jsx)(tt, {
|
|
4188
|
+
className: n.className,
|
|
4189
|
+
recipe: n.recipe,
|
|
4190
|
+
children: Y(e.children, t)
|
|
4191
|
+
});
|
|
4192
|
+
}
|
|
4193
|
+
function vr(e, t) {
|
|
4194
|
+
let n = e.props ?? {}, r = n.onRowSelect;
|
|
4195
|
+
return /* @__PURE__ */ (0, _.jsx)(vt, {
|
|
4196
|
+
className: n.className,
|
|
4197
|
+
rows: n.rows,
|
|
4198
|
+
columns: n.columns.map((e) => ({
|
|
4199
|
+
id: e.id,
|
|
4200
|
+
header: X(e.header, t),
|
|
4201
|
+
align: e.align,
|
|
4202
|
+
maxWidth: e.maxWidth,
|
|
4203
|
+
cell: (n) => fe(e.cell, n, (e) => J(e, t))
|
|
4204
|
+
})),
|
|
4205
|
+
getRowKey: (e) => pe(e, n.getRowKey),
|
|
4206
|
+
selectedKey: n.selectedKey == null ? n.selectedKey : String(n.selectedKey),
|
|
4207
|
+
emptyMessage: X(n.emptyMessage, t),
|
|
4208
|
+
onRowSelect: r ? (e) => $(r, {
|
|
4209
|
+
row: e,
|
|
4210
|
+
rowKey: pe(e, n.getRowKey),
|
|
4211
|
+
componentType: "DataTable"
|
|
4212
|
+
}, t) : void 0
|
|
4213
|
+
});
|
|
4214
|
+
}
|
|
4215
|
+
function yr(e, t) {
|
|
4216
|
+
let n = e.props ?? {};
|
|
4217
|
+
return /* @__PURE__ */ (0, _.jsx)(lt, {
|
|
4218
|
+
className: n.className,
|
|
4219
|
+
label: X(n.label, t),
|
|
4220
|
+
control: J(n.control, t),
|
|
4221
|
+
hint: X(n.hint, t)
|
|
4222
|
+
});
|
|
4223
|
+
}
|
|
4224
|
+
function br(e, t) {
|
|
4225
|
+
let n = e.props ?? {};
|
|
4226
|
+
return /* @__PURE__ */ (0, _.jsx)(Qe, {
|
|
4227
|
+
className: n.className,
|
|
4228
|
+
gap: n.gap,
|
|
4229
|
+
justify: n.justify,
|
|
4230
|
+
wrap: n.wrap,
|
|
4231
|
+
children: Y(e.children, t)
|
|
4232
|
+
});
|
|
4233
|
+
}
|
|
4234
|
+
function xr(e, t) {
|
|
4235
|
+
let n = e.props ?? {};
|
|
4236
|
+
return /* @__PURE__ */ (0, _.jsx)(_t, {
|
|
4237
|
+
className: n.className,
|
|
4238
|
+
density: n.density,
|
|
4239
|
+
items: n.items.map((e) => ({
|
|
4240
|
+
key: X(e.key, t),
|
|
4241
|
+
value: X(e.value, t),
|
|
4242
|
+
copyValue: e.copyValue
|
|
4243
|
+
}))
|
|
4244
|
+
});
|
|
4245
|
+
}
|
|
4246
|
+
function Sr(e, t) {
|
|
4247
|
+
let n = e.props ?? {};
|
|
4248
|
+
return /* @__PURE__ */ (0, _.jsx)(Ke, {
|
|
4249
|
+
className: n.className,
|
|
4250
|
+
title: X(n.title, t),
|
|
4251
|
+
actions: X(n.actions, t),
|
|
4252
|
+
density: n.density,
|
|
4253
|
+
fill: n.fill,
|
|
4254
|
+
children: Y(e.children, t)
|
|
4255
|
+
});
|
|
4256
|
+
}
|
|
4257
|
+
function Cr(e, t) {
|
|
4258
|
+
let n = e.props ?? {};
|
|
4259
|
+
return /* @__PURE__ */ (0, _.jsx)(at, {
|
|
4260
|
+
className: n.className,
|
|
4261
|
+
axis: n.axis,
|
|
4262
|
+
style: n.style,
|
|
4263
|
+
children: Y(e.children, t)
|
|
4264
|
+
});
|
|
4265
|
+
}
|
|
4266
|
+
function wr(e, t) {
|
|
4267
|
+
let n = e.props ?? {};
|
|
4268
|
+
return /* @__PURE__ */ (0, _.jsx)(dt, {
|
|
4269
|
+
className: n.className,
|
|
4270
|
+
as: n.as,
|
|
4271
|
+
label: X(n.label, t),
|
|
4272
|
+
caption: X(n.caption, t),
|
|
4273
|
+
density: n.density,
|
|
4274
|
+
divider: n.divider,
|
|
4275
|
+
children: Y(e.children, t)
|
|
4276
|
+
});
|
|
4277
|
+
}
|
|
4278
|
+
function Tr(e, t) {
|
|
4279
|
+
let n = e.props ?? {};
|
|
4280
|
+
return /* @__PURE__ */ (0, _.jsx)(pt, {
|
|
4281
|
+
className: n.className,
|
|
4282
|
+
left: J(n.left, t),
|
|
4283
|
+
right: J(n.right, t),
|
|
4284
|
+
ratio: n.ratio,
|
|
4285
|
+
divider: n.divider,
|
|
4286
|
+
gutter: n.gutter
|
|
4287
|
+
});
|
|
4288
|
+
}
|
|
4289
|
+
function Er(e, t) {
|
|
4290
|
+
let n = e.props ?? {};
|
|
4291
|
+
return /* @__PURE__ */ (0, _.jsx)(gt, {
|
|
4292
|
+
className: n.className,
|
|
4293
|
+
sidebar: Z(n.sidebar, t),
|
|
4294
|
+
sidebarWidth: n.sidebarWidth,
|
|
4295
|
+
contentPadding: n.contentPadding,
|
|
4296
|
+
header: Z(n.header, t),
|
|
4297
|
+
footer: Z(n.footer, t),
|
|
4298
|
+
children: Y(e.children, t)
|
|
4299
|
+
});
|
|
4300
|
+
}
|
|
4301
|
+
function Dr(e, t) {
|
|
4302
|
+
let n = e.props ?? {};
|
|
4303
|
+
return /* @__PURE__ */ (0, _.jsx)(mt, {
|
|
4304
|
+
className: n.className,
|
|
4305
|
+
as: n.as,
|
|
4306
|
+
eyebrow: X(n.eyebrow, t),
|
|
4307
|
+
counter: X(n.counter, t),
|
|
4308
|
+
title: X(n.title, t),
|
|
4309
|
+
subtitle: X(n.subtitle, t),
|
|
4310
|
+
primary: J(n.primary, t),
|
|
4311
|
+
secondary: Z(n.secondary, t),
|
|
4312
|
+
primarySide: n.primarySide,
|
|
4313
|
+
ratio: n.ratio,
|
|
4314
|
+
divider: n.divider,
|
|
4315
|
+
footer: Z(n.footer, t)
|
|
4316
|
+
});
|
|
4317
|
+
}
|
|
4318
|
+
function Or(e, t) {
|
|
4319
|
+
let n = e.props ?? {};
|
|
4320
|
+
return /* @__PURE__ */ (0, _.jsxs)(be, {
|
|
4321
|
+
className: n.className,
|
|
4322
|
+
name: n.name,
|
|
4323
|
+
value: n.value,
|
|
4324
|
+
disabled: n.disabled,
|
|
4325
|
+
children: [(n.options ?? []).map((e) => /* @__PURE__ */ (0, _.jsx)("option", {
|
|
4326
|
+
value: e.value,
|
|
4327
|
+
disabled: e.disabled,
|
|
4328
|
+
children: X(e.label, t)
|
|
4329
|
+
}, String(e.value))), Y(e.children, t)]
|
|
4330
|
+
});
|
|
4331
|
+
}
|
|
4332
|
+
function kr(e, t) {
|
|
4333
|
+
let n = e.props ?? {};
|
|
4334
|
+
return /* @__PURE__ */ (0, _.jsx)(Ye, {
|
|
4335
|
+
className: n.className,
|
|
4336
|
+
gap: n.gap,
|
|
4337
|
+
align: n.align,
|
|
4338
|
+
children: Y(e.children, t)
|
|
4339
|
+
});
|
|
4340
|
+
}
|
|
4341
|
+
function Ar(e, t) {
|
|
4342
|
+
let n = e.props ?? {};
|
|
4343
|
+
return /* @__PURE__ */ (0, _.jsx)(ce, {
|
|
4344
|
+
className: n.className,
|
|
4345
|
+
status: n.status,
|
|
4346
|
+
icon: n.icon,
|
|
4347
|
+
children: Y(e.children, t)
|
|
4348
|
+
});
|
|
4349
|
+
}
|
|
4350
|
+
function jr(e, t) {
|
|
4351
|
+
let n = e.props ?? {};
|
|
4352
|
+
return /* @__PURE__ */ (0, _.jsx)(st, {
|
|
4353
|
+
items: n.items.map((e) => ({
|
|
4354
|
+
id: e.id,
|
|
4355
|
+
label: X(e.label, t)
|
|
4356
|
+
})),
|
|
4357
|
+
activeId: n.activeId,
|
|
4358
|
+
ariaLabel: n.ariaLabel,
|
|
4359
|
+
onChange: (e) => {
|
|
4360
|
+
n.onChange && $(n.onChange, {
|
|
4361
|
+
value: e,
|
|
4362
|
+
componentType: "TabList"
|
|
4363
|
+
}, t);
|
|
4364
|
+
}
|
|
4365
|
+
});
|
|
4366
|
+
}
|
|
4367
|
+
function Mr(e) {
|
|
4368
|
+
let t = e.props ?? {};
|
|
4369
|
+
return /* @__PURE__ */ (0, _.jsx)(Se, {
|
|
4370
|
+
className: t.className,
|
|
4371
|
+
name: t.name,
|
|
4372
|
+
value: t.value,
|
|
4373
|
+
placeholder: t.placeholder,
|
|
4374
|
+
type: t.type,
|
|
4375
|
+
disabled: t.disabled,
|
|
4376
|
+
min: t.min,
|
|
4377
|
+
max: t.max,
|
|
4378
|
+
readOnly: !0
|
|
4379
|
+
});
|
|
4380
|
+
}
|
|
4381
|
+
function $(e, t, n) {
|
|
4382
|
+
c(e, t, n)?.();
|
|
4383
|
+
}
|
|
4384
|
+
//#endregion
|
|
4385
|
+
//#region src/hooks/useWidgetPage.ts
|
|
4386
|
+
function Nr(e, t = {}) {
|
|
4387
|
+
let { enabled: a = !0, fetcher: o = fetch } = t, [s, c] = i(null), [l, u] = i(!!(a && e)), [d, f] = i(null), [ee, p] = i(0), m = n(() => p((e) => e + 1), []);
|
|
4388
|
+
return r(() => {
|
|
4389
|
+
if (!a || !e) {
|
|
4390
|
+
u(!1);
|
|
4391
|
+
return;
|
|
4392
|
+
}
|
|
4393
|
+
let t = new AbortController();
|
|
4394
|
+
return u(!0), f(null), o(e, { signal: t.signal }).then(async (e) => {
|
|
4395
|
+
if (!e.ok) throw Error(`Widget page request failed: ${e.status} ${e.statusText}`);
|
|
4396
|
+
return e.json();
|
|
4397
|
+
}).then((e) => {
|
|
4398
|
+
t.signal.aborted || c(e);
|
|
4399
|
+
}).catch((e) => {
|
|
4400
|
+
t.signal.aborted || (f(e instanceof Error ? e : Error(String(e))), c(null));
|
|
4401
|
+
}).finally(() => {
|
|
4402
|
+
t.signal.aborted || u(!1);
|
|
4403
|
+
}), () => t.abort();
|
|
4404
|
+
}, [
|
|
4405
|
+
a,
|
|
4406
|
+
o,
|
|
4407
|
+
e,
|
|
4408
|
+
ee
|
|
4409
|
+
]), {
|
|
4410
|
+
page: s,
|
|
4411
|
+
loading: l,
|
|
4412
|
+
error: d,
|
|
4413
|
+
refresh: m
|
|
4414
|
+
};
|
|
4415
|
+
}
|
|
4416
|
+
//#endregion
|
|
4417
|
+
export { Le as $, Tt as A, st as B, zt as C, re as Ct, jt as D, Ft as E, s as Et, gt as F, Ye as G, rt as H, mt as I, He as J, Ke as K, pt as L, bt as M, vt as N, kt as O, _t as P, Pe as Q, dt as R, Bt as S, ae as St, Lt as T, c as Tt, tt as U, at as V, Qe as W, je as X, Be as Y, Ie as Z, Yt as _, b as _t, bn as a, Ce as at, Wt as b, ue as bt, gn as c, Te as ct, ln as d, Ae as dt, Fe as et, on as f, Se as ft, Zt as g, fe as gt, Qt as h, C as ht, Sn as i, Ne as it, St as j, Dt as k, mn as l, T as lt, tn as m, ve as mt, En as n, Me as nt, vn as o, w as ot, rn as p, be as pt, We as q, Tn as r, Re as rt, _n as s, we as st, Nr as t, ze as tt, fn as u, ke as ut, qt as v, pe as vt, Rt as w, h as wt, Ht as x, ce as xt, Gt as y, y as yt, lt as z };
|
|
4418
|
+
|
|
4419
|
+
//# sourceMappingURL=useWidgetPage-B8iwybER.js.map
|