@mechane-ai/elements 0.9.0 → 0.10.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/NOTICE +24 -0
- package/README.md +7 -1
- package/dist/ai.js +129 -125
- package/dist/{categorical-values-DYRiw5Qd.js → categorical-values-DLRE4EEW.js} +4 -4
- package/dist/{chart-frame-RL1hCWBC.js → chart-frame-et6f6Vhg.js} +22 -14
- package/dist/{chart-input-Bm3ot1yD.js → chart-input-CdLkFomi.js} +2 -2
- package/dist/charts/cartesian.js +529 -450
- package/dist/charts/distribution.js +302 -261
- package/dist/charts/graph.js +137 -103
- package/dist/charts/hierarchy.js +7 -7
- package/dist/charts/matrix.js +187 -174
- package/dist/charts/timeline.js +118 -92
- package/dist/charts.js +1 -1
- package/dist/code-block-D77maJBB.js +180 -0
- package/dist/collections.js +280 -236
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +81 -63
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +115 -96
- package/dist/content/tree.js +43 -38
- package/dist/{content-link-BrPrpBof.js → content-link-BpSZeTNK.js} +6 -2
- package/dist/content.js +172 -153
- package/dist/{assets/stylex.css → elements.css} +471 -185
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +25 -25
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +239 -192
- package/dist/navigation/commands.js +45 -42
- package/dist/{navigation-yxK3iQXo.js → navigation-D2_sGy3C.js} +2 -2
- package/dist/navigation.js +10 -10
- package/dist/overlays.js +1 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -0
- package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
- package/dist/packages/charts/src/chart-frame.d.ts +3 -0
- package/dist/packages/charts/src/chart-theme.d.ts +2 -1
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +22 -2
- package/dist/packages/collections/src/collection-scroll.d.ts +2 -1
- package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -1
- package/dist/packages/content/src/viewer-styles.d.ts +64 -0
- package/dist/packages/core/src/index.d.ts +1 -1
- package/dist/packages/core/src/surfaces.d.ts +5 -0
- package/dist/packages/feedback/src/index.d.ts +4 -1
- package/dist/packages/feedback/src/toast.d.ts +5 -27
- package/dist/packages/forms/src/field-styles.d.ts +9 -0
- package/dist/packages/forms/src/selection-styles.d.ts +18 -2
- package/dist/packages/foundations/src/overlay-styles.d.ts +3 -1
- package/dist/packages/foundations/src/popup-styles.d.ts +7 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +9 -0
- package/dist/packages/layout/src/frame.stylex.d.ts +1 -0
- package/dist/packages/layout/src/sidebar.d.ts +3 -1
- package/dist/packages/overlays/src/alert-dialog.d.ts +5 -2
- package/dist/packages/overlays/src/dialog.d.ts +7 -3
- package/dist/pierre-diff--zsiHCCB.js +71 -0
- package/dist/pierre-theme-D9hnHv3Z.js +126 -0
- package/dist/{pierre-tree-CRk09rx7.js → pierre-tree-BFxEuxwb.js} +3 -3
- package/dist/{src-Cc0Sadzr.js → src-Be7NLG8c.js} +238 -186
- package/dist/src-CBspCKfO.js +969 -0
- package/dist/src-Cs0dRc4X.js +617 -0
- package/dist/{src-elMBQ2Dh.js → src-sU9b0oZW.js} +224 -143
- package/dist/tokens.js +9 -1
- package/dist/viewer-styles-CpHqp5Qv.js +70 -0
- package/package.json +2 -1
- package/packages/foundations/src/tokens.stylex.ts +7 -0
- package/styles.css +1 -1
- package/dist/code-block-B30xQKqg.js +0 -175
- package/dist/pierre-diff-CZdzgiYm.js +0 -66
- package/dist/pierre-theme-BpESNIsV.js +0 -96
- package/dist/popup-styles-CvtZDE2t.js +0 -135
- package/dist/src-CfDf8TY8.js +0 -466
- package/dist/src-DuuAmS-c.js +0 -360
package/NOTICE
CHANGED
|
@@ -30,3 +30,27 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
30
30
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
31
31
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
32
32
|
SOFTWARE.
|
|
33
|
+
|
|
34
|
+
Bundled Sonner
|
|
35
|
+
|
|
36
|
+
MIT License
|
|
37
|
+
|
|
38
|
+
Copyright (c) 2023 Emil Kowalski
|
|
39
|
+
|
|
40
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
41
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
42
|
+
in the Software without restriction, including without limitation the rights
|
|
43
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
44
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
45
|
+
furnished to do so, subject to the following conditions:
|
|
46
|
+
|
|
47
|
+
The above copyright notice and this permission notice shall be included in all
|
|
48
|
+
copies or substantial portions of the Software.
|
|
49
|
+
|
|
50
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
51
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
52
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
53
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
54
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
55
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
56
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -95,7 +95,8 @@ Use `ToolbarAction` for page-header actions, including links composed with `rend
|
|
|
95
95
|
`CopyValue render={<ToolbarAction />}`; the rendered control owns its appearance and CopyValue owns copy feedback. Use
|
|
96
96
|
`Row` for aligned inline actions, `Stack` for related content, and `RecordPage.Content` for separated page sections.
|
|
97
97
|
Detail titles wrap; list metadata truncates. Sidebar items share contiguous hit areas. Put scrolling commands with the
|
|
98
|
-
navigation and reserve the divided sidebar footer for persistent account
|
|
98
|
+
navigation and reserve the divided sidebar footer for persistent account controls. Use
|
|
99
|
+
`SidebarFooter layout="navigation"` for a group of commands; its intrinsic height keeps the scrolling navigation clear.
|
|
99
100
|
|
|
100
101
|
`AppShell focus` temporarily hides navigation while retaining its expansion state. `ViewStack.Panel` keeps inactive
|
|
101
102
|
content mounted and measurable but removes it from keyboard and assistive-technology navigation. The application owns
|
|
@@ -144,6 +145,11 @@ When an application's Content Security Policy requires nonces, wrap its componen
|
|
|
144
145
|
This is [Base UI's CSP provider](https://base-ui.com/react/utils/csp-provider); it authorizes component style tags such
|
|
145
146
|
as Select's scrollbar rules. The application owns nonce generation and its security policy.
|
|
146
147
|
|
|
148
|
+
Mount one `Toaster` from `/feedback` and call its exported `toast` API for notifications. Elements includes Sonner's
|
|
149
|
+
structural styles in the published stylesheet, so the production package injects no additional toast style tag. Keep
|
|
150
|
+
initial-read failures and field validation local; retained-content refresh failures can use one notification with Retry.
|
|
151
|
+
The application owns stable notification IDs and dismissal on recovery or navigation.
|
|
152
|
+
|
|
147
153
|
## Develop and release
|
|
148
154
|
|
|
149
155
|
From `workspaces/core`:
|
package/dist/ai.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { C as e,
|
|
2
|
-
import { t as c } from "./content-link-
|
|
3
|
-
import { r as l, t as u } from "./src-
|
|
4
|
-
import { c as d, u as f } from "./src-
|
|
1
|
+
import { C as e, E as t, T as n, f as r, g as i, p as a, t as o, w as s } from "./src-sU9b0oZW.js";
|
|
2
|
+
import { t as c } from "./content-link-BpSZeTNK.js";
|
|
3
|
+
import { r as l, t as u } from "./src-Cs0dRc4X.js";
|
|
4
|
+
import { c as d, u as f } from "./src-Be7NLG8c.js";
|
|
5
5
|
import { t as p } from "./accessibility-C-aIZ1Yx.js";
|
|
6
6
|
import * as m from "@stylexjs/stylex";
|
|
7
7
|
import { createContext as h, useContext as g, useId as _, useRef as v } from "react";
|
|
8
8
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
9
|
-
import { ArrowDown as x, ArrowUp as S,
|
|
10
|
-
import { MessageScroller as
|
|
9
|
+
import { ArrowDown as x, ArrowUp as S, File as C, GitBranch as w, Square as T } from "lucide-react";
|
|
10
|
+
import { MessageScroller as E, useMessageScroller as D, useMessageScrollerScrollable as O } from "@shadcn/react/message-scroller";
|
|
11
11
|
// packages/ai/src/approval.tsx
|
|
12
|
-
function
|
|
12
|
+
function k(t) {
|
|
13
13
|
return /* @__PURE__ */ b("section", {
|
|
14
|
-
"aria-label":
|
|
15
|
-
"data-request-id":
|
|
16
|
-
className: "x78zum5 xdt5ytf x1n8ia3y xeuugli x1c8xbx5 xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt",
|
|
14
|
+
"aria-label": t.title,
|
|
15
|
+
"data-request-id": t.requestId,
|
|
16
|
+
className: "x78zum5 xdt5ytf x1n8ia3y xeuugli x1c8xbx5 xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
|
|
17
17
|
children: [
|
|
18
18
|
/* @__PURE__ */ y("h3", {
|
|
19
|
-
className: "x1ghz6dp xtqrqnz x1778rvt
|
|
20
|
-
children:
|
|
19
|
+
className: "x1ghz6dp xtqrqnz x1778rvt xk4h15q xj0a0fe",
|
|
20
|
+
children: t.title
|
|
21
21
|
}),
|
|
22
|
-
|
|
22
|
+
t.description !== void 0 && /* @__PURE__ */ y("p", {
|
|
23
23
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
24
|
-
children:
|
|
24
|
+
children: t.description
|
|
25
25
|
}),
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
t.children,
|
|
27
|
+
t.status === "pending" ? /* @__PURE__ */ b(r, { children: [/* @__PURE__ */ y(e, {
|
|
28
28
|
variant: "solid",
|
|
29
|
-
onClick:
|
|
30
|
-
disabled:
|
|
31
|
-
pending:
|
|
29
|
+
onClick: t.onApprove,
|
|
30
|
+
disabled: t.disabled === !0 || t.busy !== void 0,
|
|
31
|
+
pending: t.busy === "approve",
|
|
32
32
|
pendingLabel: "Approving…",
|
|
33
|
-
children:
|
|
34
|
-
}), /* @__PURE__ */ y(
|
|
35
|
-
onClick:
|
|
36
|
-
disabled:
|
|
37
|
-
pending:
|
|
33
|
+
children: t.approveLabel ?? "Approve"
|
|
34
|
+
}), /* @__PURE__ */ y(e, {
|
|
35
|
+
onClick: t.onDeny,
|
|
36
|
+
disabled: t.disabled === !0 || t.busy !== void 0,
|
|
37
|
+
pending: t.busy === "deny",
|
|
38
38
|
pendingLabel: "Denying…",
|
|
39
|
-
children:
|
|
40
|
-
})] }) : /* @__PURE__ */ y(o, { children:
|
|
39
|
+
children: t.denyLabel ?? "Deny"
|
|
40
|
+
})] }) : /* @__PURE__ */ y(o, { children: t.statusLabel })
|
|
41
41
|
]
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
// packages/ai/src/conversation.tsx
|
|
45
|
-
var
|
|
46
|
-
function
|
|
45
|
+
var A = h(void 0);
|
|
46
|
+
function j({ children: e, initialPosition: t = "end", follow: n = !0 }) {
|
|
47
47
|
let r = v(null);
|
|
48
|
-
return /* @__PURE__ */ y(
|
|
48
|
+
return /* @__PURE__ */ y(A.Provider, {
|
|
49
49
|
value: r,
|
|
50
|
-
children: /* @__PURE__ */ y(
|
|
50
|
+
children: /* @__PURE__ */ y(E.Provider, {
|
|
51
51
|
autoScroll: n,
|
|
52
52
|
defaultScrollPosition: t,
|
|
53
|
-
children: /* @__PURE__ */ y(
|
|
54
|
-
className: "x1n2onr6 x78zum5 xdt5ytf x5yr21d x2lwn1j xeuugli xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt",
|
|
53
|
+
children: /* @__PURE__ */ y(E.Root, {
|
|
54
|
+
className: "x1n2onr6 x78zum5 xdt5ytf x5yr21d x2lwn1j xeuugli xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
|
|
55
55
|
children: e
|
|
56
56
|
})
|
|
57
57
|
})
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
let r = g(
|
|
62
|
-
return /* @__PURE__ */ y(
|
|
60
|
+
function M({ label: e, children: t, scrollRestorationId: n }) {
|
|
61
|
+
let r = g(A);
|
|
62
|
+
return /* @__PURE__ */ y(E.Viewport, {
|
|
63
63
|
ref: r,
|
|
64
64
|
"aria-label": e,
|
|
65
65
|
"data-scroll-restoration-id": n,
|
|
66
|
-
className: "x98rzlu x2lwn1j xeuugli x1odjw0f x1046ku7 x185mbhu x1ok0vyi x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
66
|
+
className: "x98rzlu x2lwn1j xeuugli x1odjw0f x1046ku7 x185mbhu x1ok0vyi x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
67
67
|
children: t
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return /* @__PURE__ */ y(
|
|
70
|
+
function N({ children: e, streaming: t = !1 }) {
|
|
71
|
+
return /* @__PURE__ */ y(E.Content, {
|
|
72
72
|
"aria-live": "polite",
|
|
73
73
|
"aria-relevant": "additions",
|
|
74
74
|
"aria-busy": t,
|
|
@@ -76,35 +76,35 @@ function P({ children: e, streaming: t = !1 }) {
|
|
|
76
76
|
children: e
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return /* @__PURE__ */ y(
|
|
79
|
+
function P({ messageId: e, children: t }) {
|
|
80
|
+
return /* @__PURE__ */ y(E.Item, {
|
|
81
81
|
messageId: e,
|
|
82
82
|
className: "xeuugli xj0a0fe",
|
|
83
83
|
children: t
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
let { scrollToEnd: n } =
|
|
86
|
+
function F({ label: t = "Jump to latest" }) {
|
|
87
|
+
let { scrollToEnd: n } = D(), { end: r } = O(), i = g(A);
|
|
88
88
|
return r ? /* @__PURE__ */ y("div", {
|
|
89
|
-
className: "x10l6tqk xwthv0x x1nrll8i xuuh30",
|
|
90
|
-
children: /* @__PURE__ */ b(
|
|
89
|
+
className: "x10l6tqk xwthv0x x1nrll8i xuuh30 x1tv4vx4 xeuugli",
|
|
90
|
+
children: /* @__PURE__ */ b(e, {
|
|
91
91
|
onClick: () => {
|
|
92
92
|
n({ behavior: "instant" }), i?.current?.focus({ preventScroll: !0 });
|
|
93
93
|
},
|
|
94
94
|
children: [/* @__PURE__ */ y(x, {
|
|
95
95
|
size: 16,
|
|
96
96
|
"aria-hidden": !0
|
|
97
|
-
}),
|
|
97
|
+
}), t]
|
|
98
98
|
})
|
|
99
99
|
}) : null;
|
|
100
100
|
}
|
|
101
|
-
var
|
|
102
|
-
Root:
|
|
103
|
-
Viewport:
|
|
104
|
-
Content:
|
|
105
|
-
Item:
|
|
106
|
-
JumpToLatest:
|
|
107
|
-
},
|
|
101
|
+
var I = {
|
|
102
|
+
Root: j,
|
|
103
|
+
Viewport: M,
|
|
104
|
+
Content: N,
|
|
105
|
+
Item: P,
|
|
106
|
+
JumpToLatest: F
|
|
107
|
+
}, L = {
|
|
108
108
|
root: {
|
|
109
109
|
k1xSpc: "x78zum5",
|
|
110
110
|
kXwgrk: "xdt5ytf",
|
|
@@ -114,6 +114,7 @@ var L = {
|
|
|
114
114
|
kMv6JI: "x1hz01jw",
|
|
115
115
|
kGuDYH: "xtqrqnz",
|
|
116
116
|
kLWn49: "x1778rvt",
|
|
117
|
+
k63SB2: "xj57cvi",
|
|
117
118
|
$$css: !0
|
|
118
119
|
},
|
|
119
120
|
user: {
|
|
@@ -129,19 +130,19 @@ var L = {
|
|
|
129
130
|
k8WAf4: "xn9t2bk",
|
|
130
131
|
$$css: !0
|
|
131
132
|
}
|
|
133
|
+
}, R = {
|
|
134
|
+
user: L.user,
|
|
135
|
+
assistant: L.assistant,
|
|
136
|
+
system: L.system
|
|
132
137
|
}, z = {
|
|
133
|
-
user: R.user,
|
|
134
|
-
assistant: R.assistant,
|
|
135
|
-
system: R.system
|
|
136
|
-
}, B = {
|
|
137
138
|
"x-default-marker": "x-default-marker",
|
|
138
139
|
$$css: !0
|
|
139
140
|
};
|
|
140
|
-
function
|
|
141
|
+
function B({ author: e, children: t, id: n, kind: r = "assistant", meta: i, avatar: a, actions: o, attachments: s }) {
|
|
141
142
|
return /* @__PURE__ */ b("article", {
|
|
142
143
|
id: n,
|
|
143
144
|
"aria-label": e,
|
|
144
|
-
...m.props(
|
|
145
|
+
...m.props(L.root, R[r], z),
|
|
145
146
|
children: [
|
|
146
147
|
/* @__PURE__ */ b("header", {
|
|
147
148
|
className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli",
|
|
@@ -151,79 +152,82 @@ function V({ author: e, children: t, id: n, kind: r = "assistant", meta: i, avat
|
|
|
151
152
|
children: a
|
|
152
153
|
}),
|
|
153
154
|
/* @__PURE__ */ y("span", {
|
|
154
|
-
className: "
|
|
155
|
+
className: "xk4h15q xeuugli xj0a0fe",
|
|
155
156
|
children: e
|
|
156
157
|
}),
|
|
157
158
|
i !== void 0 && /* @__PURE__ */ y("div", {
|
|
158
|
-
className: "x153jb6y xy8obcc xas2l8k",
|
|
159
|
+
className: "x153jb6y xy8obcc xas2l8k xeuugli xj0a0fe",
|
|
159
160
|
children: i
|
|
160
161
|
})
|
|
161
162
|
]
|
|
162
163
|
}),
|
|
163
164
|
/* @__PURE__ */ y("div", {
|
|
164
|
-
className: "xeuugli xj0a0fe",
|
|
165
|
+
className: "xeuugli xj0a0fe x1ytb0s6",
|
|
165
166
|
children: t
|
|
166
167
|
}),
|
|
167
168
|
s !== void 0 && /* @__PURE__ */ y("div", {
|
|
168
|
-
className: "x78zum5 x1a02dak x1qjc9v5 x1hnptsi",
|
|
169
|
+
className: "x78zum5 x1a02dak x1qjc9v5 x1hnptsi xeuugli",
|
|
169
170
|
children: s
|
|
170
171
|
}),
|
|
171
172
|
o !== void 0 && /* @__PURE__ */ y("footer", {
|
|
172
|
-
className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1hc1fzr x1ac4sdd xea5s0o xbfgl4k",
|
|
173
|
+
className: "x78zum5 x1a02dak x6s0dn4 xeuugli xunmzkg x1hc1fzr x1ac4sdd xea5s0o xbfgl4k",
|
|
173
174
|
children: o
|
|
174
175
|
})
|
|
175
176
|
]
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
+
function V({ name: e, description: t, href: n, actions: r }) {
|
|
179
180
|
return /* @__PURE__ */ b("div", {
|
|
180
|
-
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli x193iq5w x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 x1hz01jw xtqrqnz x1778rvt",
|
|
181
|
+
className: "x78zum5 x1a02dak x6s0dn4 x1n8ia3y xeuugli x193iq5w x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 x1hz01jw xtqrqnz x1778rvt xj57cvi",
|
|
181
182
|
children: [
|
|
182
|
-
/* @__PURE__ */ y(
|
|
183
|
+
/* @__PURE__ */ y(C, {
|
|
183
184
|
size: 16,
|
|
184
185
|
"aria-hidden": !0,
|
|
185
186
|
className: "x153jb6y x2lah0s"
|
|
186
187
|
}),
|
|
187
188
|
/* @__PURE__ */ b("div", {
|
|
188
|
-
className: "x78zum5 xdt5ytf xfko13i xeuugli xj0a0fe",
|
|
189
|
+
className: "x78zum5 xdt5ytf xfko13i x1slnebi xeuugli xj0a0fe",
|
|
189
190
|
children: [n === void 0 ? /* @__PURE__ */ y("span", { children: e }) : /* @__PURE__ */ y(c, {
|
|
190
191
|
href: n,
|
|
191
192
|
children: e
|
|
192
193
|
}), t !== void 0 && /* @__PURE__ */ y("span", {
|
|
193
|
-
className: "x153jb6y xy8obcc xas2l8k",
|
|
194
|
+
className: "x153jb6y xy8obcc xas2l8k xeuugli xj0a0fe",
|
|
194
195
|
children: t
|
|
195
196
|
})]
|
|
196
197
|
}),
|
|
197
|
-
r
|
|
198
|
+
r !== void 0 && /* @__PURE__ */ y("div", {
|
|
199
|
+
className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli",
|
|
200
|
+
children: r
|
|
201
|
+
})
|
|
198
202
|
]
|
|
199
203
|
});
|
|
200
204
|
}
|
|
201
205
|
// packages/ai/src/message-action.tsx
|
|
202
|
-
function
|
|
203
|
-
if (
|
|
204
|
-
let { kind:
|
|
205
|
-
return /* @__PURE__ */ y(
|
|
206
|
-
...
|
|
207
|
-
"aria-label":
|
|
206
|
+
function H(e) {
|
|
207
|
+
if (e.kind === "link") {
|
|
208
|
+
let { kind: t, label: r, ...i } = e;
|
|
209
|
+
return /* @__PURE__ */ y(n, {
|
|
210
|
+
...i,
|
|
211
|
+
"aria-label": r
|
|
208
212
|
});
|
|
209
213
|
}
|
|
210
|
-
let { kind:
|
|
211
|
-
return /* @__PURE__ */ y(
|
|
214
|
+
let { kind: t, label: r, ...i } = e;
|
|
215
|
+
return /* @__PURE__ */ y(s, {
|
|
212
216
|
...i,
|
|
213
217
|
variant: "ghost",
|
|
214
218
|
"aria-label": r
|
|
215
219
|
});
|
|
216
220
|
}
|
|
217
|
-
function
|
|
218
|
-
return /* @__PURE__ */ b(u.Root, { children: [/* @__PURE__ */ y(u.Trigger, { render:
|
|
221
|
+
function U(e) {
|
|
222
|
+
return /* @__PURE__ */ b(u.Root, { children: [/* @__PURE__ */ y(u.Trigger, { render: H(e) }), /* @__PURE__ */ y(u.Portal, { children: /* @__PURE__ */ y(u.Positioner, { children: /* @__PURE__ */ y(u.Popup, { children: e.label }) }) })] });
|
|
219
223
|
}
|
|
220
224
|
// packages/ai/src/message-boundary.tsx
|
|
221
|
-
function
|
|
225
|
+
function W({ label: e, children: t }) {
|
|
222
226
|
return /* @__PURE__ */ b(i.Root, {
|
|
223
227
|
className: "xeuugli x1kbiq1m xykt701 xpu655y",
|
|
224
228
|
children: [/* @__PURE__ */ b(i.Trigger, {
|
|
225
|
-
className: "xlqzeqv x1hnptsi x153jb6y xy8obcc xas2l8k
|
|
226
|
-
children: [/* @__PURE__ */ y(
|
|
229
|
+
className: "xlqzeqv x1hnptsi x153jb6y xy8obcc xas2l8k xj57cvi",
|
|
230
|
+
children: [/* @__PURE__ */ y(w, {
|
|
227
231
|
size: 14,
|
|
228
232
|
"aria-hidden": !0,
|
|
229
233
|
className: "x2lah0s"
|
|
@@ -238,11 +242,11 @@ function G({ label: e, children: t }) {
|
|
|
238
242
|
});
|
|
239
243
|
}
|
|
240
244
|
// packages/ai/src/prompt-input.tsx
|
|
241
|
-
var
|
|
245
|
+
var G = { action: {
|
|
242
246
|
keTefX: "xvc5jky",
|
|
243
247
|
$$css: !0
|
|
244
248
|
} };
|
|
245
|
-
function
|
|
249
|
+
function K({ label: e, value: t, onValueChange: n, onSubmit: r, name: i = "prompt", placeholder: a, maxLength: o, required: c = !0, pending: l = !1, disabled: h = !1, submitDisabled: g = !1, submitLabel: v = "Send message", pendingLabel: x = "Sending…", enterBehavior: C = "newline", compact: w = !1, description: E, error: D, controls: O, attachments: k, onStop: A, stopPending: j = !1, stopLabel: M = "Stop response" }) {
|
|
246
250
|
let N = _(), P = h || l, F = v;
|
|
247
251
|
A === void 0 ? l ? F = x : C === "submit" && (F = `${v} · Enter`) : F = j ? "Stopping…" : M;
|
|
248
252
|
function I(e) {
|
|
@@ -251,17 +255,17 @@ function q({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "promp
|
|
|
251
255
|
e.shiftKey || t || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || (e.preventDefault(), !P && !g && A === void 0 && e.currentTarget.form?.requestSubmit());
|
|
252
256
|
}
|
|
253
257
|
function L(e) {
|
|
254
|
-
e.preventDefault(), !P && !g && A === void 0 &&
|
|
258
|
+
e.preventDefault(), !P && !g && A === void 0 && r(e);
|
|
255
259
|
}
|
|
256
260
|
return /* @__PURE__ */ y("form", {
|
|
257
261
|
onSubmit: L,
|
|
258
|
-
className: "x78zum5 xdt5ytf x1hnptsi xeuugli xh8yej3 xe10afn xvueqy4",
|
|
262
|
+
className: "x78zum5 xdt5ytf x1hnptsi xeuugli xh8yej3 xe10afn xvueqy4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
|
|
259
263
|
children: /* @__PURE__ */ b(d.Root, {
|
|
260
264
|
invalid: D !== void 0,
|
|
261
265
|
children: [
|
|
262
266
|
/* @__PURE__ */ y(d.Label, {
|
|
263
267
|
...m.props(p.hidden),
|
|
264
|
-
children:
|
|
268
|
+
children: e
|
|
265
269
|
}),
|
|
266
270
|
/* @__PURE__ */ b("div", {
|
|
267
271
|
...{
|
|
@@ -273,12 +277,12 @@ function q({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "promp
|
|
|
273
277
|
appearance: "plain",
|
|
274
278
|
rows: w ? 1 : 2,
|
|
275
279
|
compact: w,
|
|
276
|
-
name:
|
|
277
|
-
value:
|
|
278
|
-
onChange: (e) =>
|
|
280
|
+
name: i,
|
|
281
|
+
value: t,
|
|
282
|
+
onChange: (e) => n(e.currentTarget.value),
|
|
279
283
|
onKeyDown: I,
|
|
280
|
-
placeholder:
|
|
281
|
-
maxLength:
|
|
284
|
+
placeholder: a ?? e,
|
|
285
|
+
maxLength: o,
|
|
282
286
|
required: c,
|
|
283
287
|
disabled: h,
|
|
284
288
|
readOnly: l,
|
|
@@ -290,8 +294,8 @@ function q({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "promp
|
|
|
290
294
|
children: [O !== void 0 && /* @__PURE__ */ y("div", {
|
|
291
295
|
className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli x12lumcd",
|
|
292
296
|
children: O
|
|
293
|
-
}), /* @__PURE__ */ b(u.Root, { children: [/* @__PURE__ */ y(u.Trigger, { render: A === void 0 ? /* @__PURE__ */ y(
|
|
294
|
-
xstyle:
|
|
297
|
+
}), /* @__PURE__ */ b(u.Root, { children: [/* @__PURE__ */ y(u.Trigger, { render: A === void 0 ? /* @__PURE__ */ y(s, {
|
|
298
|
+
xstyle: G.action,
|
|
295
299
|
type: "submit",
|
|
296
300
|
variant: "solid",
|
|
297
301
|
"aria-label": l ? x : v,
|
|
@@ -301,8 +305,8 @@ function q({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "promp
|
|
|
301
305
|
size: 16,
|
|
302
306
|
"aria-hidden": !0
|
|
303
307
|
})
|
|
304
|
-
}) : /* @__PURE__ */ y(
|
|
305
|
-
xstyle:
|
|
308
|
+
}) : /* @__PURE__ */ y(s, {
|
|
309
|
+
xstyle: G.action,
|
|
306
310
|
type: "button",
|
|
307
311
|
"aria-label": j ? "Stopping…" : M,
|
|
308
312
|
onClick: (e) => {
|
|
@@ -310,7 +314,7 @@ function q({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "promp
|
|
|
310
314
|
},
|
|
311
315
|
disabled: h,
|
|
312
316
|
pending: j,
|
|
313
|
-
children: /* @__PURE__ */ y(
|
|
317
|
+
children: /* @__PURE__ */ y(T, {
|
|
314
318
|
size: 14,
|
|
315
319
|
"aria-hidden": !0
|
|
316
320
|
})
|
|
@@ -318,7 +322,7 @@ function q({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "promp
|
|
|
318
322
|
})
|
|
319
323
|
]
|
|
320
324
|
}),
|
|
321
|
-
|
|
325
|
+
E !== void 0 && /* @__PURE__ */ y(d.Description, { children: E }),
|
|
322
326
|
D !== void 0 && /* @__PURE__ */ y(d.Error, {
|
|
323
327
|
id: N,
|
|
324
328
|
match: !0,
|
|
@@ -330,42 +334,42 @@ function q({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "promp
|
|
|
330
334
|
});
|
|
331
335
|
}
|
|
332
336
|
// packages/ai/src/sources.tsx
|
|
333
|
-
function
|
|
337
|
+
function q({ sources: e, label: t = "Sources" }) {
|
|
334
338
|
return /* @__PURE__ */ b("section", {
|
|
335
339
|
"aria-label": t,
|
|
336
|
-
className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1hz01jw xtqrqnz x1778rvt xbixft",
|
|
337
|
-
children: [
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
className: "
|
|
344
|
-
children:
|
|
345
|
-
|
|
346
|
-
|
|
340
|
+
className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft",
|
|
341
|
+
children: [
|
|
342
|
+
/* @__PURE__ */ y("h3", {
|
|
343
|
+
className: "x1ghz6dp xtqrqnz x1778rvt xk4h15q xj0a0fe",
|
|
344
|
+
children: t
|
|
345
|
+
}),
|
|
346
|
+
e.length === 0 && /* @__PURE__ */ y("p", {
|
|
347
|
+
className: "x1ghz6dp x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
348
|
+
children: "No sources supplied."
|
|
349
|
+
}),
|
|
350
|
+
/* @__PURE__ */ y("ol", {
|
|
351
|
+
className: "x78zum5 xdt5ytf x1n8ia3y x1ghz6dp x1717udv x3ct3a4",
|
|
352
|
+
children: e.map((e) => /* @__PURE__ */ b("li", {
|
|
353
|
+
className: "x78zum5 xdt5ytf xfko13i xeuugli xj0a0fe",
|
|
354
|
+
children: [/* @__PURE__ */ y("span", { children: /* @__PURE__ */ y(c, {
|
|
347
355
|
href: e.href,
|
|
348
356
|
children: e.title
|
|
349
|
-
}), /* @__PURE__ */ y(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
className: "x2lah0s x153jb6y"
|
|
357
|
+
}) }), e.description !== void 0 && /* @__PURE__ */ y("p", {
|
|
358
|
+
className: "x1ghz6dp x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
359
|
+
children: e.description
|
|
353
360
|
})]
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
})]
|
|
358
|
-
}, e.id))
|
|
359
|
-
})]
|
|
361
|
+
}, e.id))
|
|
362
|
+
})
|
|
363
|
+
]
|
|
360
364
|
});
|
|
361
365
|
}
|
|
362
|
-
function
|
|
366
|
+
function J({ source: e, label: n }) {
|
|
363
367
|
return /* @__PURE__ */ y("span", {
|
|
364
368
|
className: "xt0psk2 x11njtxf xss6m8b",
|
|
365
369
|
children: /* @__PURE__ */ b(l.Root, { children: [/* @__PURE__ */ y(l.Trigger, {
|
|
366
|
-
render: /* @__PURE__ */ y(
|
|
367
|
-
"aria-label": `Source ${
|
|
368
|
-
children:
|
|
370
|
+
render: /* @__PURE__ */ y(t, {}),
|
|
371
|
+
"aria-label": `Source ${n}: ${e.title}`,
|
|
372
|
+
children: n
|
|
369
373
|
}), /* @__PURE__ */ y(l.Portal, { children: /* @__PURE__ */ y(l.Positioner, {
|
|
370
374
|
side: "top",
|
|
371
375
|
children: /* @__PURE__ */ y(l.Popup, { children: /* @__PURE__ */ b(a, {
|
|
@@ -382,4 +386,4 @@ function Y({ source: e, label: t }) {
|
|
|
382
386
|
}) })] })
|
|
383
387
|
});
|
|
384
388
|
}
|
|
385
|
-
export {
|
|
389
|
+
export { k as Approval, I as Conversation, J as InlineCitation, B as Message, U as MessageAction, V as MessageAttachment, W as MessageBoundary, K as PromptInput, q as Sources };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e,
|
|
2
|
-
import { n } from "./chart-input-
|
|
1
|
+
import { n as e, s as t } from "./chart-frame-et6f6Vhg.js";
|
|
2
|
+
import { n } from "./chart-input-CdLkFomi.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
// packages/charts/src/categorical-values.tsx
|
|
@@ -43,13 +43,13 @@ function f({ items: n, selection: o }) {
|
|
|
43
43
|
selected: o?.selectedId === n.id,
|
|
44
44
|
onSelect: o === void 0 ? void 0 : () => o.onSelect(n.id),
|
|
45
45
|
children: [/* @__PURE__ */ a("span", {
|
|
46
|
-
className: "x78zum5 x6s0dn4 x1hnptsi xeuugli",
|
|
46
|
+
className: "x78zum5 x6s0dn4 x1hnptsi x1slnebi xeuugli",
|
|
47
47
|
children: [/* @__PURE__ */ i("span", {
|
|
48
48
|
"aria-hidden": !0,
|
|
49
49
|
...r.props(s.swatch(t[n.tone]))
|
|
50
50
|
}), n.label]
|
|
51
51
|
}), /* @__PURE__ */ i("span", {
|
|
52
|
-
className: "x153jb6y xp4054r",
|
|
52
|
+
className: "x153jb6y xp4054r xeuugli x193iq5w",
|
|
53
53
|
children: n.valueLabel
|
|
54
54
|
})]
|
|
55
55
|
}) }, n.id))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as e } from "./src-sU9b0oZW.js";
|
|
2
2
|
import { chartColors as t, colors as n } from "./tokens.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { useId as i } from "react";
|
|
@@ -43,6 +43,7 @@ var s = {
|
|
|
43
43
|
kDwRjp: "x1q7gtio",
|
|
44
44
|
kMv6JI: "x1hz01jw",
|
|
45
45
|
kGuDYH: "xy8obcc",
|
|
46
|
+
k63SB2: "xj57cvi",
|
|
46
47
|
kcqcaj: "xss6m8b",
|
|
47
48
|
$$css: !0
|
|
48
49
|
},
|
|
@@ -62,7 +63,7 @@ var s = {
|
|
|
62
63
|
kZs9gx: "x19rmrnh",
|
|
63
64
|
k7shQP: "x9v5kkp",
|
|
64
65
|
kPJHz1: "x13qnu6",
|
|
65
|
-
kiEn40: "
|
|
66
|
+
kiEn40: "x17c0hmk",
|
|
66
67
|
$$css: !0
|
|
67
68
|
}
|
|
68
69
|
}, l = {
|
|
@@ -82,7 +83,7 @@ function d({ title: e, description: t, children: n, actions: r, footer: s }) {
|
|
|
82
83
|
let c = i();
|
|
83
84
|
return /* @__PURE__ */ o("figure", {
|
|
84
85
|
"aria-labelledby": c,
|
|
85
|
-
className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz x1778rvt",
|
|
86
|
+
className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt",
|
|
86
87
|
children: [
|
|
87
88
|
/* @__PURE__ */ o("figcaption", {
|
|
88
89
|
className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www",
|
|
@@ -90,10 +91,10 @@ function d({ title: e, description: t, children: n, actions: r, footer: s }) {
|
|
|
90
91
|
className: "x1iv9x3n xeuugli xj0a0fe",
|
|
91
92
|
children: [/* @__PURE__ */ a("p", {
|
|
92
93
|
id: c,
|
|
93
|
-
className: "x1ghz6dp x12myhf4 x1778rvt
|
|
94
|
+
className: "x1ghz6dp x12myhf4 x1778rvt xk4h15q",
|
|
94
95
|
children: e
|
|
95
96
|
}), t !== void 0 && /* @__PURE__ */ a("p", {
|
|
96
|
-
className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc",
|
|
97
|
+
className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
|
|
97
98
|
children: t
|
|
98
99
|
})]
|
|
99
100
|
}), r !== void 0 && /* @__PURE__ */ a("div", {
|
|
@@ -103,7 +104,7 @@ function d({ title: e, description: t, children: n, actions: r, footer: s }) {
|
|
|
103
104
|
}),
|
|
104
105
|
n,
|
|
105
106
|
s !== void 0 && /* @__PURE__ */ a("div", {
|
|
106
|
-
className: "x1xxf3xd x153jb6y xy8obcc",
|
|
107
|
+
className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
107
108
|
children: s
|
|
108
109
|
})
|
|
109
110
|
]
|
|
@@ -112,9 +113,9 @@ function d({ title: e, description: t, children: n, actions: r, footer: s }) {
|
|
|
112
113
|
function f({ items: e, label: t = "Legend" }) {
|
|
113
114
|
return /* @__PURE__ */ a("ul", {
|
|
114
115
|
"aria-label": t,
|
|
115
|
-
className: "x78zum5 x1a02dak
|
|
116
|
+
className: "x78zum5 x1a02dak x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k",
|
|
116
117
|
children: e.map((e) => /* @__PURE__ */ o("li", {
|
|
117
|
-
className: "x3nfvp2 x6s0dn4 xunmzkg",
|
|
118
|
+
className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli x193iq5w xj0a0fe",
|
|
118
119
|
children: [/* @__PURE__ */ a("span", {
|
|
119
120
|
"aria-hidden": !0,
|
|
120
121
|
...r.props(u.swatch(s[e.tone]))
|
|
@@ -124,7 +125,7 @@ function f({ items: e, label: t = "Legend" }) {
|
|
|
124
125
|
}
|
|
125
126
|
function p({ label: e, selected: t = !1, onSelect: n, children: r }) {
|
|
126
127
|
return n === void 0 ? /* @__PURE__ */ a("div", {
|
|
127
|
-
className: "x78zum5 x6s0dn4 x1qughib
|
|
128
|
+
className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli xaeotn9 xwu7q15 x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b",
|
|
128
129
|
children: r
|
|
129
130
|
}) : /* @__PURE__ */ a("button", {
|
|
130
131
|
type: "button",
|
|
@@ -132,22 +133,29 @@ function p({ label: e, selected: t = !1, onSelect: n, children: r }) {
|
|
|
132
133
|
"aria-pressed": t,
|
|
133
134
|
onClick: n,
|
|
134
135
|
...{
|
|
135
|
-
0: { className: "x78zum5 x6s0dn4 x1qughib
|
|
136
|
-
1: { className: "x78zum5 x6s0dn4 x1qughib
|
|
136
|
+
0: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli xaeotn9 xwu7q15 x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b x1ypdohk x1t137rt xzro8vx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal" },
|
|
137
|
+
1: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli xaeotn9 xwu7q15 x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xss6m8b x1ypdohk x1t137rt xzro8vx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1r7kqkb x1jmj9dw" }
|
|
137
138
|
}[!!t | 0],
|
|
138
139
|
children: r
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
|
-
function m({ children:
|
|
142
|
+
function m({ children: e }) {
|
|
143
|
+
return /* @__PURE__ */ a("p", {
|
|
144
|
+
"aria-live": "polite",
|
|
145
|
+
className: "x1ghz6dp xeuugli x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xj0a0fe",
|
|
146
|
+
children: e
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function h({ children: t, label: n = "View data" }) {
|
|
142
150
|
return /* @__PURE__ */ a("div", {
|
|
143
151
|
className: "x1xxf3xd x178xt8z x13fuv20 xhjagg4",
|
|
144
152
|
children: /* @__PURE__ */ o(e.Root, { children: [/* @__PURE__ */ a(e.Trigger, { children: n }), /* @__PURE__ */ a(e.Panel, { children: /* @__PURE__ */ a("div", {
|
|
145
153
|
role: "region",
|
|
146
154
|
"aria-label": n,
|
|
147
155
|
tabIndex: 0,
|
|
148
|
-
className: "xeuugli x1sslpiy xysyzu8 x19rmrnh x9v5kkp x13qnu6 x1bqaal",
|
|
156
|
+
className: "xeuugli x1sslpiy xysyzu8 x1t137rt x19rmrnh x9v5kkp x13qnu6 x1bqaal",
|
|
149
157
|
children: t
|
|
150
158
|
}) })] })
|
|
151
159
|
});
|
|
152
160
|
}
|
|
153
|
-
export {
|
|
161
|
+
export { m as a, f as i, p as n, c as o, d as r, s, h as t };
|