@ganglion/xacpx-relay 0.9.8 → 0.9.9

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.
@@ -0,0 +1,293 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/shiki-pwUAmJyk.js","assets/index-DiQFOIWj.js","assets/index-CTf6nwJs.css"])))=>i.map(i=>d[i]);
2
+ import{j as se,k as _t,r as M,l as re,A as zu,m as Z,p as Yo,d as de,q as tt,s as Yt,c as m,a as f,n as J,t as k,x as B,f as g,F as Q,y as ce,g as L,h as Ae,z as X,o as d,B as It,C as ve,T as Jt,e as he,w as we,D as Re,E as Rn,G as St,H as Mt,I as vu,J as Jo,K as He,L as Lu,M as Bu,N as Qo,O as er,P as tr,Q as Tt,R as ht,_ as ur,S as nr,b as sr,U as ar}from"./index-DiQFOIWj.js";import{_ as or}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{u as rr}from"./theme-BGjW_vh-.js";/**
3
+ * @license lucide-vue-next v1.0.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */const ys=se("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
8
+ * @license lucide-vue-next v1.0.0 - ISC
9
+ *
10
+ * This source code is licensed under the ISC license.
11
+ * See the LICENSE file in the root directory of this source tree.
12
+ */const ks=se("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
13
+ * @license lucide-vue-next v1.0.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */const Da=se("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]);/**
18
+ * @license lucide-vue-next v1.0.0 - ISC
19
+ *
20
+ * This source code is licensed under the ISC license.
21
+ * See the LICENSE file in the root directory of this source tree.
22
+ */const ir=se("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
23
+ * @license lucide-vue-next v1.0.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */const Ta=se("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
28
+ * @license lucide-vue-next v1.0.0 - ISC
29
+ *
30
+ * This source code is licensed under the ISC license.
31
+ * See the LICENSE file in the root directory of this source tree.
32
+ */const Nn=se("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);/**
33
+ * @license lucide-vue-next v1.0.0 - ISC
34
+ *
35
+ * This source code is licensed under the ISC license.
36
+ * See the LICENSE file in the root directory of this source tree.
37
+ */const lr=se("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
38
+ * @license lucide-vue-next v1.0.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */const Qt=se("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
43
+ * @license lucide-vue-next v1.0.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
47
+ */const ut=se("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
48
+ * @license lucide-vue-next v1.0.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */const xt=se("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
53
+ * @license lucide-vue-next v1.0.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */const cr=se("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
58
+ * @license lucide-vue-next v1.0.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const _s=se("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
63
+ * @license lucide-vue-next v1.0.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const Sa=se("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
68
+ * @license lucide-vue-next v1.0.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const dr=se("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
73
+ * @license lucide-vue-next v1.0.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const fr=se("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
78
+ * @license lucide-vue-next v1.0.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const pr=se("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
83
+ * @license lucide-vue-next v1.0.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const Fa=se("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);/**
88
+ * @license lucide-vue-next v1.0.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const hr=se("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
93
+ * @license lucide-vue-next v1.0.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const mr=se("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]);/**
98
+ * @license lucide-vue-next v1.0.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const br=se("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
103
+ * @license lucide-vue-next v1.0.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const gr=se("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
108
+ * @license lucide-vue-next v1.0.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const xr=se("file-diff",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);/**
113
+ * @license lucide-vue-next v1.0.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const fu=se("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
118
+ * @license lucide-vue-next v1.0.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const Ou=se("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);/**
123
+ * @license lucide-vue-next v1.0.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const vr=se("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/**
128
+ * @license lucide-vue-next v1.0.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const Sn=se("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
133
+ * @license lucide-vue-next v1.0.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const yr=se("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
138
+ * @license lucide-vue-next v1.0.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const Fn=se("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);/**
143
+ * @license lucide-vue-next v1.0.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const it=se("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
148
+ * @license lucide-vue-next v1.0.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const Ru=se("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);/**
153
+ * @license lucide-vue-next v1.0.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const kr=se("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/**
158
+ * @license lucide-vue-next v1.0.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const _r=se("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/**
163
+ * @license lucide-vue-next v1.0.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const wr=se("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
168
+ * @license lucide-vue-next v1.0.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const Er=se("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
173
+ * @license lucide-vue-next v1.0.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const Ar=se("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
178
+ * @license lucide-vue-next v1.0.0 - ISC
179
+ *
180
+ * This source code is licensed under the ISC license.
181
+ * See the LICENSE file in the root directory of this source tree.
182
+ */const Cr=se("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);/**
183
+ * @license lucide-vue-next v1.0.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ */const $r=se("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
188
+ * @license lucide-vue-next v1.0.0 - ISC
189
+ *
190
+ * This source code is licensed under the ISC license.
191
+ * See the LICENSE file in the root directory of this source tree.
192
+ */const Uu=se("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
193
+ * @license lucide-vue-next v1.0.0 - ISC
194
+ *
195
+ * This source code is licensed under the ISC license.
196
+ * See the LICENSE file in the root directory of this source tree.
197
+ */const Dr=se("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
198
+ * @license lucide-vue-next v1.0.0 - ISC
199
+ *
200
+ * This source code is licensed under the ISC license.
201
+ * See the LICENSE file in the root directory of this source tree.
202
+ */const Tr=se("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
203
+ * @license lucide-vue-next v1.0.0 - ISC
204
+ *
205
+ * This source code is licensed under the ISC license.
206
+ * See the LICENSE file in the root directory of this source tree.
207
+ */const Hu=se("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
208
+ * @license lucide-vue-next v1.0.0 - ISC
209
+ *
210
+ * This source code is licensed under the ISC license.
211
+ * See the LICENSE file in the root directory of this source tree.
212
+ */const Sr=se("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
213
+ * @license lucide-vue-next v1.0.0 - ISC
214
+ *
215
+ * This source code is licensed under the ISC license.
216
+ * See the LICENSE file in the root directory of this source tree.
217
+ */const Fr=se("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
218
+ * @license lucide-vue-next v1.0.0 - ISC
219
+ *
220
+ * This source code is licensed under the ISC license.
221
+ * See the LICENSE file in the root directory of this source tree.
222
+ */const Ir=se("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
223
+ * @license lucide-vue-next v1.0.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ */const Mr=se("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
228
+ * @license lucide-vue-next v1.0.0 - ISC
229
+ *
230
+ * This source code is licensed under the ISC license.
231
+ * See the LICENSE file in the root directory of this source tree.
232
+ */const zr=se("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
233
+ * @license lucide-vue-next v1.0.0 - ISC
234
+ *
235
+ * This source code is licensed under the ISC license.
236
+ * See the LICENSE file in the root directory of this source tree.
237
+ */const pu=se("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
238
+ * @license lucide-vue-next v1.0.0 - ISC
239
+ *
240
+ * This source code is licensed under the ISC license.
241
+ * See the LICENSE file in the root directory of this source tree.
242
+ */const Ia=se("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);/**
243
+ * @license lucide-vue-next v1.0.0 - ISC
244
+ *
245
+ * This source code is licensed under the ISC license.
246
+ * See the LICENSE file in the root directory of this source tree.
247
+ */const Ge=se("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ws=1;function Lr(e){let t;try{t=JSON.parse(e)}catch{return{ok:!1,error:"invalid-json"}}return Or(t)?t.protocolVersion!==ws?{ok:!1,error:"version-mismatch",detail:`expected protocolVersion ${ws}, got ${t.protocolVersion}`}:{ok:!0,envelope:t}:{ok:!1,error:"invalid-envelope"}}function Or(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.protocolVersion!="number"||!Number.isInteger(t.protocolVersion)||t.kind!=="req"&&t.kind!=="res"&&t.kind!=="event"||typeof t.type!="string"||t.type.trim().length===0||t.id!==void 0&&typeof t.id!="string"||(t.kind==="req"||t.kind==="res")&&(typeof t.id!="string"||t.id.length===0))}function Ft(e){if(typeof e!="object"||e===null)return!1;const t=e.error;if(typeof t!="object"||t===null)return!1;const u=t;return typeof u.code=="string"&&typeof u.message=="string"}var Rr="web.event",Nr=new Set(["instance-status","control-event","notice"]),Pr=new Set(["turn-output","turn-started","tool-event","turn-thought","plan","turn-usage","agent-commands","turn-finished","sessions-changed","workspaces-changed","scheduled-changed","orchestration-changed"]),Br=new Set(["read","search","execute","edit","think","other"]),Ur=new Set(["running","success","error"]),ot=e=>typeof e=="string",Vt=e=>e===void 0||typeof e=="string",Hr=e=>e===void 0||typeof e=="number";function qr(e){switch(e.type){case"diff":return ot(e.path)&&ot(e.oldText)&&ot(e.newText);case"read":return ot(e.path)&&Vt(e.lines)&&Vt(e.preview);case"command":return ot(e.command)&&Vt(e.output)&&Hr(e.exitCode);case"search":return ot(e.query)&&Vt(e.output);case"text":return ot(e.text);case"fields":return Array.isArray(e.fields)&&e.fields.every(t=>t!==null&&typeof t=="object"&&ot(t.label)&&ot(t.value))&&Vt(e.output);default:return!1}}function jr(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.toolCallId!="string"||typeof t.toolName!="string"||typeof t.title!="string"||typeof t.kind!="string"||!Br.has(t.kind)||typeof t.status!="string"||!Ur.has(t.status)||!Vt(t.error)||t.detail!==void 0&&(typeof t.detail!="object"||t.detail===null||!qr(t.detail)))}function Vr(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.type!="string"||!Pr.has(t.type)?!1:t.type==="turn-output"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.chunk=="string":t.type==="turn-finished"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.ok=="boolean":t.type==="scheduled-changed"?typeof t.chatKey=="string":t.type==="turn-started"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string":t.type==="turn-thought"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.chunk=="string":t.type==="plan"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&Array.isArray(t.entries):t.type==="turn-usage"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.used=="number"&&typeof t.size=="number":t.type==="agent-commands"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&Array.isArray(t.commands)&&t.commands.every(u=>u!==null&&typeof u=="object"&&typeof u.name=="string"):t.type==="tool-event"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&jr(t.step):!0}var Gr=new Set(["task-completion","task-progress","coordinator-message"]);function Wr(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.kind=="string"&&Gr.has(t.kind)&&typeof t.text=="string"}function Kr(e){if(e.kind!=="event"||e.type!==Rr)return null;const t=e.payload;if(typeof t!="object"||t===null)return null;const u=t;return typeof u.instanceId!="string"||typeof u.kind!="string"||!Nr.has(u.kind)||u.kind==="instance-status"&&typeof u.online!="boolean"||u.kind==="control-event"&&!Vr(u.event)||u.kind==="notice"&&!Wr(u.notice)?null:t}function Zr(e,t){let u=null,n=!1,s=0,a=null;const o=()=>{const r=location.protocol==="https:"?"wss":"ws";u=new WebSocket(`${r}://${location.host}/ws`),u.onmessage=i=>{const l=Lr(String(i.data));if(!l.ok)return;const p=Kr(l.envelope);p&&e(p)},u.onopen=()=>{s=0,t==null||t(!0)},u.onclose=()=>{t==null||t(!1),!n&&(s=Math.min(s+1,6),a=setTimeout(()=>{a=null,n||o()},250*2**(s-1)))}};return o(),()=>{n=!0,a&&(clearTimeout(a),a=null),u==null||u.close()}}function Ct(e){if(Ft(e))throw e.error.code==="unknown-type"?new Error("This feature needs a newer connector — rebuild and reconnect the relay channel on that instance."):new Error(e.error.message||e.error.code);return e}const lt=_t("instances",()=>{const e=M([]);async function t(){const{instances:w}=await re.get("/api/instances");e.value=w.map(I=>{const N=_(I.id);return{...I,sessions:(N==null?void 0:N.sessions)??[],sessionsLoaded:(N==null?void 0:N.sessionsLoaded)??!1,agents:(N==null?void 0:N.agents)??[],workspaces:(N==null?void 0:N.workspaces)??[],agentCatalog:(N==null?void 0:N.agentCatalog)??[]}});for(const I of e.value)I.online&&!I.sessionsLoaded&&u(I.id).catch(()=>{})}async function u(w){var W;const I=(((W=_(w))==null?void 0:W.agents.length)??0)===0,[{sessions:N},ue]=await Promise.all([re.rpc(w,"control.sessions.list"),I?re.rpc(w,"control.agents.list").catch(()=>null):Promise.resolve(null)]),ee=_(w);ee&&(ee.sessions=N,ee.sessionsLoaded=!0,ue&&!Ft(ue)&&Array.isArray(ue.agents)&&(ee.agents=ue.agents))}async function n(w){const{workspaces:I}=await re.rpc(w,"control.workspaces.list"),N=_(w);N&&(N.workspaces=I)}async function s(w){const[{agents:I},{workspaces:N},{agents:ue}]=await Promise.all([re.rpc(w,"control.agents.list"),re.rpc(w,"control.workspaces.list"),re.rpc(w,"control.agents.catalog")]),ee=_(w);ee&&(ee.agents=I,ee.workspaces=N,ee.agentCatalog=ue)}async function a(w){const{agents:I}=await re.rpc(w,"control.agents.catalog"),N=_(w);N&&(N.agentCatalog=I)}async function o(w,I,N){Ct(await re.rpc(w,"control.agents.create",{name:I,driver:N})),await s(w)}async function r(w,I){Ct(await re.rpc(w,"control.agents.remove",{name:I})),await s(w)}async function i(w,I){Ct(await re.rpc(w,"control.workspaces.remove",{name:I})),await s(w)}async function l(w,I,N,ue){const{workspace:ee}=Ct(await re.rpc(w,"control.workspaces.create",{name:I,cwd:N,description:ue})),W=_(w);return W&&!W.workspaces.some(z=>z.name===ee.name)&&(W.workspaces=[...W.workspaces,ee]),ee}async function p(w,I,N,ue,ee,W){try{Ct(await re.rpc(w,"control.sessions.create",{alias:I,agent:N,workspace:ue,...ee?{agentSessionId:ee}:{},...W?{model:W}:{}}))}catch(z){if(z instanceof zu&&(z.status===504||z.code==="timeout"))return{pending:!0};throw z}return await u(w),{pending:!1}}function c(w,I,N,ue,ee,W){const z=_(w);return!z||z.sessions.some(U=>U.alias===I)?!1:(z.sessions=[{alias:I,agent:N,workspace:ue,transportSession:"",running:!1,archived:!1,creating:!0,creatingSince:Date.now()},...z.sessions],p(w,I,N,ue,ee,W).catch(U=>{var R;const q=(R=_(w))==null?void 0:R.sessions.find($=>$.alias===I);q!=null&&q.creating&&(q.creating=!1,q.createError=U instanceof Error?U.message:"create failed")}),!0)}function v(w,I){const N=_(w);N&&(N.sessions=N.sessions.filter(ue=>!(ue.alias===I&&(ue.creating||ue.createError))))}async function h(w,I,N){const{sessions:ue}=Ct(await re.rpc(w,"control.sessions.native.list",{agent:I,workspace:N}));return ue}async function x(w,I,N){const ue=_(w),ee=((ue==null?void 0:ue.sessions)??[]).filter(z=>z.agent===I&&z.workspace===N&&!z.archived);if(ee.length===0)return[];if(new Set(ee.map(z=>z.agentCommand??"")).size>1)return[];const W=ee[0];try{const z=Ct(await re.rpc(w,"control.session.model.get",{sessionAlias:W.alias})),U=new Set,q=[];for(const R of[...z.current?[z.current]:[],...z.available])R&&!U.has(R)&&(U.add(R),q.push(R));return q}catch{return[]}}async function A(w,I){await re.rpc(w,"control.sessions.remove",{alias:I}),await u(w)}async function T(w,I){await re.rpc(w,"control.sessions.archive",{alias:I}),await u(w)}async function D(w,I){await re.rpc(w,"control.sessions.unarchive",{alias:I}),await u(w)}async function C(w,I){await re.patch(`/api/instances/${w}`,{name:I});const N=_(w);N&&(N.name=I)}function y(w){if(w.kind==="instance-status"){const I=_(w.instanceId);I&&(I.online=w.online,w.online&&!I.sessionsLoaded&&u(w.instanceId).catch(()=>{}))}else w.kind==="control-event"&&w.event.type==="sessions-changed"?u(w.instanceId).catch(()=>{}):w.kind==="control-event"&&w.event.type==="workspaces-changed"&&n(w.instanceId).catch(()=>{})}function _(w){return e.value.find(I=>I.id===w)}return{instances:e,loadInstances:t,loadSessions:u,loadWorkspaces:n,loadFormOptions:s,loadAgentCatalog:a,createWorkspace:l,createAgent:o,removeAgent:r,removeWorkspace:i,createSession:p,beginSessionCreation:c,cancelSessionCreation:v,listNativeSessions:h,listModelSuggestions:x,removeSession:A,archiveSession:T,unarchiveSession:D,renameInstance:C,applyEvent:y,byId:_}}),Pn="xrelay.selectedSession";function Xr(e,t){try{localStorage.setItem(Pn,JSON.stringify({instanceId:e,alias:t}))}catch{}}function Yr(){try{localStorage.removeItem(Pn)}catch{}}function Jr(){try{const e=localStorage.getItem(Pn);if(!e)return null;const t=JSON.parse(e);return typeof t.instanceId=="string"&&typeof t.alias=="string"?{instanceId:t.instanceId,alias:t.alias}:null}catch{return null}}function Qr(e,t){const u=e[e.length-1];(u==null?void 0:u.type)==="text"?u.text+=t:e.push({type:"text",text:t})}function ei(e,t){const u=e[e.length-1];if((u==null?void 0:u.type)==="reasoning"){u.text+=t;return}t.trim()&&e.push({type:"reasoning",text:t})}function ti(e,t){const u=e.findIndex(n=>n.type==="tool"&&n.step.toolCallId===t.toolCallId);u>=0?e[u]={type:"tool",step:t}:e.push({type:"tool",step:t})}const Es=e=>e.filter(t=>t.type==="text").map(t=>t.text).join(""),As=e=>e.filter(t=>t.type==="tool").map(t=>t.step),ui=e=>e.filter(t=>t.type==="reasoning").map(t=>t.text).join(""),wt=_t("chat",()=>{const e=M(null),t=M(null),u=M([]),n=M({}),s=M({}),a=M({}),o=M({}),r=M(new Set),i=new Set,l=(Y,P)=>`${Y}\0${P}`;function p(Y,P){const ne=l(Y,P);return n.value[ne]?"working":r.value.has(ne)?"unread":"idle"}function c(Y,P){var ne;return((ne=n.value[l(Y,P)])==null?void 0:ne.startedAt)??null}const v=Z(()=>e.value&&t.value?l(e.value,t.value):null),h=Z(()=>v.value?n.value[v.value]??null:null),x=Z(()=>v.value?s.value[v.value]??null:null),A=Z(()=>v.value?a.value[v.value]??null:null),T=Z(()=>v.value?o.value[v.value]??[]:[]),D=Z(()=>h.value?Es(h.value.parts):""),C=Z(()=>h.value?As(h.value.parts):[]),y=Z(()=>h.value!==null),_=M(!1),w=M(""),I=M(null);let N=0;function ue(Y){I.value={taskId:Y,nonce:++N}}const ee=100,W=M(!1),z=M(!1);function U(Y){let P=n.value[Y];return P||(P={parts:[],status:"working",startedAt:Date.now()},n.value[Y]=P),P}function q(Y,P,ne,O){const K=l(Y,P),H=n.value[K];delete n.value[K];const me=Y===e.value&&P===t.value;if(ne==="error"&&me&&(w.value=O??"turn-failed"),!H)return;const le=Es(H.parts),Te=As(H.parts),ie=ui(H.parts);if((le.length>0||Te.length>0||ie.length>0)&&me){const ke=Te.length>0||ie.length>0?{toolSteps:Te,...ie?{reasoning:ie}:{},parts:H.parts}:void 0;u.value.push({instanceId:Y,sessionAlias:P,direction:"out",text:le,createdAt:new Date().toISOString(),failed:ne==="error",status:ne,...ke?{structured:ke}:{}})}}function R(Y,P){e.value=Y,t.value=P,Xr(Y,P),u.value=[],w.value="",W.value=!1,z.value=!1;const ne=l(Y,P);if(r.value.has(ne)){const O=new Set(r.value);O.delete(ne),r.value=O}}function $(){e.value=null,t.value=null,Yr(),u.value=[],w.value="",W.value=!1,z.value=!1}async function E(){if(!e.value||!t.value)return;const{messages:Y,hasMore:P}=await re.get(`/api/instances/${e.value}/sessions/${t.value}/messages?limit=${ee}`);u.value=Y,W.value=P??!1}async function S(){var O;if(!e.value||!t.value||z.value||!W.value)return;const Y=(O=u.value.find(K=>typeof K.id=="number"))==null?void 0:O.id;if(Y===void 0)return;const P=e.value,ne=t.value;z.value=!0;try{const{messages:K,hasMore:H}=await re.get(`/api/instances/${P}/sessions/${ne}/messages?before=${Y}&limit=${ee}`);if(P!==e.value||ne!==t.value)return;K.length>0&&(u.value=[...K,...u.value]),W.value=H??!1}catch{}finally{z.value=!1}}function ae(Y){for(const P of Y){const ne=l(P.instanceId,P.sessionAlias);n.value[ne]||i.has(ne)||(n.value[ne]={parts:P.parts,status:P.status,startedAt:P.startedAt})}}function V(Y){for(const P of Y)a.value[l(P.instanceId,P.sessionAlias)]={used:P.used,size:P.size,...P.cost?{cost:P.cost}:{},...P.breakdown?{breakdown:P.breakdown}:{}}}function be(Y){for(const P of Y)o.value[l(P.instanceId,P.sessionAlias)]=P.commands}async function ge(){const{turns:Y,usage:P,commands:ne}=await re.get("/api/active-turns");ae(Y),P&&V(P),ne&&be(ne)}function tu(Y){if(Y.kind==="instance-status"&&!Y.online){const ne=`${Y.instanceId}\0`;for(const K of Object.keys(n.value))K.startsWith(ne)&&delete n.value[K];const O=new Set([...r.value].filter(K=>!K.startsWith(ne)));O.size!==r.value.size&&(r.value=O);return}if(Y.kind!=="control-event")return;const P=Y.event;if(P.type==="turn-started"){const ne=l(Y.instanceId,P.sessionAlias);i.delete(ne),U(ne);const O=Y.instanceId===e.value&&P.sessionAlias===t.value;P.prompt&&O&&u.value.push({instanceId:Y.instanceId,sessionAlias:P.sessionAlias,direction:"in",text:P.prompt,createdAt:new Date().toISOString(),...P.scheduled?{scheduled:P.scheduled}:{}})}else if(P.type==="turn-output"){const ne=U(l(Y.instanceId,P.sessionAlias));Qr(ne.parts,P.chunk),ne.status="streaming"}else if(P.type==="tool-event"){const ne=U(l(Y.instanceId,P.sessionAlias));ti(ne.parts,P.step)}else if(P.type==="turn-thought")ei(U(l(Y.instanceId,P.sessionAlias)).parts,P.chunk);else if(P.type==="plan")s.value[l(Y.instanceId,P.sessionAlias)]=P.entries;else if(P.type==="turn-usage")a.value[l(Y.instanceId,P.sessionAlias)]={used:P.used,size:P.size,...P.cost?{cost:P.cost}:{},...P.breakdown?{breakdown:P.breakdown}:{}};else if(P.type==="agent-commands")o.value[l(Y.instanceId,P.sessionAlias)]=P.commands;else if(P.type==="session-history")Y.instanceId===e.value&&P.sessionAlias===t.value&&E().catch(()=>{});else if(P.type==="turn-finished"){const ne=P.cancelled?"cancelled":P.ok?"done":"error",O=Y.instanceId===e.value&&P.sessionAlias===t.value;if(i.add(l(Y.instanceId,P.sessionAlias)),q(Y.instanceId,P.sessionAlias,ne,P.errorMessage),!O&&(ne==="done"||ne==="error")){const K=l(Y.instanceId,P.sessionAlias),H=new Set(r.value);H.add(K),r.value=H}}}async function Lt(Y,P=[]){if(!e.value||!t.value)return;w.value="",_.value=!0;const ne={instanceId:e.value,sessionAlias:t.value,direction:"in",text:Y,createdAt:new Date().toISOString(),...P.length>0?{attachments:P.map(O=>({id:O.id,filename:O.fileName,mimeType:O.mimeType,size:O.size,kind:O.kind,...O.previewUrl?{previewUrl:O.previewUrl}:{}}))}:{}};u.value.push(ne);try{const O=await re.rpc(e.value,"control.prompt",{sessionAlias:t.value,text:Y,...P.length>0?{media:P}:{}});O&&O.ok===!1&&(w.value=O.errorMessage??"prompt-failed",ne.failed=!0)}catch(O){O instanceof zu&&(O.status===504||O.code==="timeout")||(w.value=O instanceof zu?O.code:"send-failed",ne.failed=!0)}finally{_.value=!1}}async function Ot(Y){if(!Y.failed||Y.direction!=="in")return;const P=u.value.indexOf(Y);P>=0&&u.value.splice(P,1),await Lt(Y.text)}async function uu(){if(!e.value||!t.value)return;const Y=e.value,P=t.value;q(Y,P,"cancelled");try{await re.rpc(Y,"control.prompt.cancel",{sessionAlias:P})}catch(ne){w.value=ne instanceof zu?ne.code:"cancel-failed"}}return{instanceId:e,sessionAlias:t,messages:u,streaming:D,liveTurn:h,sessionPlan:x,sessionUsage:A,sessionCommands:T,liveToolSteps:C,busy:y,unread:r,sessionAttention:p,runningSince:c,sending:_,error:w,scrollRequest:I,requestScrollToScheduled:ue,hasMoreOlder:W,loadingOlder:z,select:R,clearSelection:$,loadHistory:E,loadOlder:S,loadActiveTurns:ge,seedActiveTurns:ae,applyEvent:tu,send:Lt,resend:Ot,cancel:uu}}),yu=_t("tasks",()=>{const e=M([]),t=M([]),u=M(null);async function n(p,c){const{tasks:v}=await re.rpc(p,"control.scheduled.list");e.value=v.filter(h=>h.sessionAlias===c)}async function s(p){const{tasks:c}=await re.rpc(p,"control.orchestration.list");t.value=c}async function a(p,c){u.value={instanceId:p,sessionAlias:c},await Promise.all([n(p,c).catch(()=>{e.value=[]}),s(p).catch(()=>{t.value=[]})])}async function o(p,c,v,h){await re.rpc(p,"control.scheduled.create",{sessionAlias:c,executeAt:v,message:h}),await n(p,c)}async function r(p){const c=u.value;c&&(await re.rpc(c.instanceId,"control.scheduled.cancel",{id:p}),await n(c.instanceId,c.sessionAlias))}async function i(p){const c=u.value;c&&(await re.rpc(c.instanceId,"control.orchestration.cancel",{taskId:p}),await s(c.instanceId))}function l(p){if(p.kind!=="control-event")return;const c=u.value;!c||p.instanceId!==c.instanceId||(p.event.type==="scheduled-changed"?n(c.instanceId,c.sessionAlias).catch(()=>{}):p.event.type==="orchestration-changed"&&s(c.instanceId).catch(()=>{}))}return{scheduled:e,orchestration:t,scope:u,loadScheduled:n,loadOrchestration:s,loadFor:a,createScheduled:o,cancelScheduled:r,cancelOrchestration:i,applyEvent:l}}),Cs=20,Ma=_t("notices",()=>{const e=M([]);let t=0;function u(s){s.kind==="notice"&&(e.value.unshift({id:++t,instanceId:s.instanceId,kind:s.notice.kind,text:s.notice.text}),e.value.length>Cs&&(e.value.length=Cs))}function n(s){e.value=e.value.filter(a=>a.id!==s)}return{items:e,applyEvent:u,dismiss:n}}),za=_t("connection",()=>{const e=M(!1);function t(u){e.value=u}return{online:e,setOnline:t}});function ou(e){if(Ft(e))throw new Error(e.error.message||e.error.code);return e}const qu=_t("files",()=>{const e=M(null),t=M(null),u=M(""),n=M([]),s=M(null),a=M(null),o=M(null),r=M(!1),i=M("files"),l=M({}),p=M(null),c=M(""),v=M([]),h=M(!1),x=M(!1),A=M(!1),T=M("");function D(){t.value=null,u.value="",n.value=[],s.value=null,a.value=null,o.value=null,r.value=!1,l.value={},c.value="",v.value=[],T.value=""}async function C(U,q){e.value=U,t.value=q,s.value=null,a.value=null,o.value=null,r.value=!1,l.value={},c.value="",v.value=[],await w(""),y()}async function y(){if(!(!e.value||!t.value))try{const U=await re.rpc(e.value,"control.fs.diff",{workspace:t.value});if(Ft(U)){l.value={};return}const q={};for(const R of U.files)q[R.path]=R.status;l.value=q}catch{l.value={}}}async function _(U,q){if(!U||!q){p.value=null;return}try{const R=await re.rpc(U,"control.fs.diff",{workspace:q});if(Ft(R)){p.value=null;return}const $=typeof R.branch=="string"?R.branch:void 0,E=R.detached===!0;p.value={workspace:q,changedCount:R.files.length,...$?{branch:$}:{},...E?{detached:!0}:{}}}catch{p.value=null}}async function w(U){if(!(!e.value||!t.value)){A.value=!0,T.value="",s.value=null;try{const q=ou(await re.rpc(e.value,"control.fs.list",{workspace:t.value,path:U}));u.value=q.path,n.value=q.entries}catch(q){T.value=q instanceof Error?q.message:"list-failed"}finally{A.value=!1}}}async function I(U){const q=u.value?`${u.value}/${U.name}`:U.name;if(U.type==="dir")return w(q);if(!(!e.value||!t.value)){A.value=!0,T.value="";try{s.value=ou(await re.rpc(e.value,"control.fs.read",{workspace:t.value,path:q}))}catch(R){T.value=R instanceof Error?R.message:"read-failed"}finally{A.value=!1}}}async function N(U){if(!(!e.value||!t.value)){A.value=!0,T.value="";try{s.value=ou(await re.rpc(e.value,"control.fs.read",{workspace:t.value,path:U}))}catch(q){T.value=q instanceof Error?q.message:"read-failed"}finally{A.value=!1}}}async function ue(){if(!(!e.value||!t.value)){if(i.value==="changes"){await z(o.value??void 0);return}await w(u.value),await y(),await _(e.value,t.value)}}function ee(U){const q=u.value?u.value.split("/"):[];w(q.slice(0,U+1).join("/"))}async function W(U){if(c.value=U,!e.value||!t.value||!U.trim()){v.value=[],h.value=!1;return}x.value=!0,T.value="";try{const q=ou(await re.rpc(e.value,"control.fs.search",{workspace:t.value,query:U}));v.value=q.matches,h.value=q.truncated}catch(q){T.value=q instanceof Error?q.message:"search-failed"}finally{x.value=!1}}async function z(U){if(!(!e.value||!t.value)){A.value=!0,T.value="",o.value=U??null;try{a.value=ou(await re.rpc(e.value,"control.fs.diff",{workspace:t.value,...U?{path:U}:{}})),r.value=!1}catch(q){const R=q instanceof Error?q.message:"diff-failed";a.value=null,R==="not-a-git-repo"?r.value=!0:T.value=R}finally{A.value=!1}}}return{instanceId:e,workspace:t,path:u,entries:n,file:s,diff:a,diffPath:o,notGit:r,changed:l,gitSummary:p,tab:i,query:c,results:v,searchTruncated:h,searching:x,loading:A,error:T,reset:D,selectWorkspace:C,list:w,open:I,openFile:N,up:ee,search:W,loadDiff:z,loadStatus:y,loadGitSummary:_,refresh:ue}}),Kt=M(null);let Je=null;function ni(){return Kt}function si(e,t=6e3){Je&&clearTimeout(Je),Kt.value=e,Je=setTimeout(()=>{Kt.value=null,Je=null},t)}function $s(){const e=Kt.value;Kt.value=null,Je&&(clearTimeout(Je),Je=null),e==null||e.action()}function Ds(){Kt.value=null,Je&&(clearTimeout(Je),Je=null)}function ai(e){const t=e.intent??4;let u=0,n=0,s=!1,a=!1,o=!1,r=null,i=null;function l(T){var D;if(r=typeof T.pointerId=="number"?T.pointerId:null,i=T.currentTarget??null,r!==null)try{(D=i==null?void 0:i.setPointerCapture)==null||D.call(i,r)}catch{}}function p(){var T;if(r!==null)try{(T=i==null?void 0:i.releasePointerCapture)==null||T.call(i,r)}catch{}finally{r=null,i=null}}function c(T){var D;s&&(s=!1,a=!1,o=!1,p(),(D=e.onEnd)==null||D.call(e,T))}function v(T){T.pointerType&&e.pointerTypes&&!e.pointerTypes.includes(T.pointerType)||(u=T.clientX,n=T.clientY,s=!0,a=!1,o=!1,l(T))}function h(T){var y;if(!s)return;if(T.buttons===0){c(o?T.clientX-u:0);return}const D=T.clientX-u,C=T.clientY-n;if(!a){if(Math.abs(D)<t&&Math.abs(C)<t)return;a=!0,o=Math.abs(D)>Math.abs(C)}if(!o){c(0);return}(y=e.onMove)==null||y.call(e,D)}function x(T){c(o?T.clientX-u:0)}function A(){c(0)}return{handlers:{pointerdown:v,pointermove:h,pointerup:x,pointercancel:A}}}function La(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function fn(e,t){return La(`${e}-${t}`)}function pn(e,t){const u=new Set(t);if(!u.has(e))return e;for(let n=2;;n+=1){const s=`${e}-${n}`;if(!u.has(s))return s}}function Ts(e){const u=e.replace(/[\\/]+$/,"").split(/[\\/]/).pop()??"";return La(u)}function Oa(){return Yo.global.locale.value}function Ss(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString(Oa(),{hour:"2-digit",minute:"2-digit"})}function Bn(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleString(Oa())}const oi=["data-test","aria-label","aria-expanded"],ri={key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-lg border border-border bg-raised py-1 shadow-xl"},ii={key:0,class:"px-3 pb-0.5 pt-1.5 text-[11px] font-medium uppercase tracking-wide text-fg-muted"},li=["data-value","onMousedown","onMouseenter"],ci={class:"truncate"},hn=de({__name:"SelectMenu",props:{modelValue:{},groups:{},placeholder:{},dataTest:{},ariaLabel:{}},emits:["update:modelValue"],setup(e,{emit:t}){const u=e,n=t,s=M(!1),a=M(null),o=M(-1),r=Z(()=>u.groups.flatMap(D=>D.options)),i=Z(()=>{var D;return((D=r.value.find(C=>C.value===u.modelValue))==null?void 0:D.label)??""});function l(){s.value=!0;const D=r.value.findIndex(C=>C.value===u.modelValue&&!C.disabled);o.value=D>=0?D:r.value.findIndex(C=>!C.disabled)}function p(){s.value=!1}function c(){s.value?p():l()}function v(D){D.disabled||(n("update:modelValue",D.value),p())}function h(D){const C=r.value;if(!C.length)return;let y=o.value;for(let _=0;_<C.length;_++)if(y=(y+D+C.length)%C.length,!C[y].disabled){o.value=y;return}}function x(D){if(!s.value){(D.key==="Enter"||D.key===" "||D.key==="ArrowDown")&&(D.preventDefault(),l());return}if(D.key==="ArrowDown")D.preventDefault(),h(1);else if(D.key==="ArrowUp")D.preventDefault(),h(-1);else if(D.key==="Enter"||D.key===" "){D.preventDefault();const C=r.value[o.value];C&&v(C)}else D.key==="Escape"&&(D.stopPropagation(),p())}function A(D){s.value&&a.value&&!a.value.contains(D.target)&&p()}tt(()=>document.addEventListener("mousedown",A)),Yt(()=>document.removeEventListener("mousedown",A));function T(D,C){let y=0;for(let _=0;_<D;_++)y+=u.groups[_].options.length;return y+C}return(D,C)=>(d(),m("div",{ref_key:"boxEl",ref:a,class:"relative"},[f("button",{type:"button","data-test":e.dataTest,"aria-label":e.ariaLabel,"aria-expanded":s.value,class:"flex w-full items-center justify-between rounded-lg border border-border bg-bg py-2 pl-3 pr-2 text-left text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onClick:c,onKeydown:x},[f("span",{class:J(["truncate",i.value?"text-fg":"text-fg-muted"])},k(i.value||e.placeholder||"Select…"),3),B(g(ut),{size:16,class:J(["ml-2 shrink-0 text-fg-muted transition-transform",s.value?"rotate-180":""])},null,8,["class"])],40,oi),s.value?(d(),m("ul",ri,[(d(!0),m(Q,null,ce(e.groups,(y,_)=>(d(),m(Q,{key:_},[y.label?(d(),m("li",ii,k(y.label),1)):L("",!0),(d(!0),m(Q,null,ce(y.options,(w,I)=>(d(),m("li",{key:w.value,"data-value":w.value,class:J(["flex items-center justify-between px-3 py-1.5 text-sm",[w.disabled?"cursor-not-allowed text-fg-muted/50":T(_,I)===o.value?"cursor-pointer bg-accent/15 text-fg":"cursor-pointer text-fg-muted hover:bg-fg/5"]]),onMousedown:Ae(N=>v(w),["prevent"]),onMouseenter:N=>!w.disabled&&(o.value=T(_,I))},[f("span",ci,k(w.label),1),w.value===e.modelValue?(d(),X(g(Qt),{key:0,size:14,class:"ml-2 shrink-0 text-accent"})):L("",!0)],42,li))),128))],64))),128))])):L("",!0)],512))}}),di={class:"w-full max-w-md rounded-xl border border-border bg-raised shadow-xl","data-test":"new-session-dialog"},fi={class:"flex items-center justify-between border-b border-border px-5 py-3"},pi={class:"text-sm font-semibold text-fg"},hi={class:"font-normal text-fg-muted"},mi=["aria-label"],bi={class:"space-y-4 px-5 py-4"},gi={key:0,class:"py-6 text-center text-sm text-fg-muted"},xi={class:"block"},vi={class:"mb-1 block text-xs font-medium text-fg-muted"},yi={class:"flex gap-1"},ki={class:"block"},_i={class:"mb-1 block text-xs font-medium text-fg-muted"},wi={class:"font-normal text-fg-muted"},Ei=["placeholder"],Ai={class:"block"},Ci={class:"mb-1 block text-xs font-medium text-fg-muted"},$i={class:"block"},Di={class:"mb-1 flex items-center justify-between"},Ti={class:"text-xs font-medium text-fg-muted"},Si={key:0,class:"flex gap-1"},Fi=["placeholder"],Ii={key:0,class:"block"},Mi={class:"mb-1 block text-xs font-medium text-fg-muted"},zi={class:"font-normal text-fg-muted"},Li=["aria-label"],Oi={key:0,"data-test":"ns-model-list",class:"absolute z-10 mt-1 max-h-48 w-full overflow-auto rounded-lg border border-border bg-raised py-1 shadow-xl"},Ri=["onMousedown","onMouseenter"],Ni={class:"truncate"},Pi={key:0,class:"ml-2 shrink-0 text-xs text-fg-muted"},Bi={key:1,class:"block"},Ui={class:"mb-1 block text-xs font-medium text-fg-muted"},Hi={key:0,"data-test":"ns-native-loading",class:"space-y-1.5"},qi={class:"flex items-center gap-2 text-xs text-fg-muted"},ji={key:2,"data-test":"ns-native-error",class:"rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger"},Vi={class:"flex items-start gap-1.5"},Gi={class:"min-w-0"},Wi={class:"break-words font-medium"},Ki={key:0,class:"mt-1 text-danger/80"},Zi={key:3,"data-test":"ns-native-empty",class:"rounded-lg bg-bg px-3 py-2 text-xs text-fg-muted"},Xi={key:2,"data-test":"ns-error",class:"rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger"},Yi={class:"flex justify-end gap-2 border-t border-border px-5 py-3"},Ji=["disabled"],Qi=de({__name:"NewSessionDialog",props:{instanceId:{},instanceName:{}},emits:["created","close"],setup(e,{emit:t}){const u=e,n=t,{t:s}=It(),a=lt(),o=Z(()=>a.byId(u.instanceId)),r=M(""),i=M(""),l=M("new"),p=M("existing"),c=M(""),v=M(""),h=M(""),x=M([]),A=M(!1),T=M(0),D=M(null),C=Z(()=>{const O=new Set(["default"]),K=["default"];for(const H of x.value)H&&!O.has(H)&&(O.add(H),K.push(H));return K}),y=Z(()=>{const O=h.value.trim().toLowerCase();return O?C.value.filter(K=>K.toLowerCase().includes(O)):C.value});function _(){A.value=!0,T.value=0}function w(){A.value=!1}function I(O){h.value=O==="default"?"":O,w()}function N(O){if(O.key==="ArrowDown"){if(O.preventDefault(),!A.value){_();return}T.value=Math.min(T.value+1,y.value.length-1)}else O.key==="ArrowUp"?(O.preventDefault(),T.value=Math.max(T.value-1,0)):O.key==="Enter"?A.value&&T.value>=0&&T.value<y.value.length?(O.preventDefault(),I(y.value[T.value])):ne():O.key==="Escape"&&A.value&&(O.stopPropagation(),w())}function ue(O){A.value&&D.value&&!D.value.contains(O.target)&&w()}tt(()=>document.addEventListener("mousedown",ue)),Yt(()=>document.removeEventListener("mousedown",ue));const ee=M(!1),W=M(""),z=M(!0),U=M([]),q=M(""),R=M(!1),$=M("");tt(async()=>{var O,K,H,me,le,Te;try{await a.loadFormOptions(u.instanceId)}catch(ie){W.value=ie instanceof Error?ie.message:s("session.failedLoadOptions")}finally{z.value=!1}i.value=((K=(O=o.value)==null?void 0:O.agents[0])==null?void 0:K.name)??((me=(H=o.value)==null?void 0:H.agentCatalog.find(ie=>ie.installed!=="unknown"))==null?void 0:me.driver)??"",c.value=((Te=(le=o.value)==null?void 0:le.workspaces[0])==null?void 0:Te.name)??""});const E=Z(()=>{var O;return new Set((((O=o.value)==null?void 0:O.agents)??[]).map(K=>K.name))}),S=Z(()=>{var O;return(((O=o.value)==null?void 0:O.agentCatalog)??[]).filter(K=>!K.configured)}),ae=Z(()=>{var H;const O=[],K=((H=o.value)==null?void 0:H.agents)??[];return K.length&&O.push({label:s("session.configured"),options:K.map(me=>({value:me.name,label:`${me.name} · ${me.driver}`}))}),S.value.length&&O.push({label:s("session.availableDrivers"),options:S.value.map(me=>({value:me.driver,label:me.installed==="unknown"?s("session.cliNotDetected",{driver:me.driver}):me.driver,disabled:me.installed==="unknown"}))}),O}),V=Z(()=>{var O;return[{options:(((O=o.value)==null?void 0:O.workspaces)??[]).map(K=>({value:K.name,label:`${K.name} — ${K.cwd}`}))}]}),be=Z(()=>p.value==="path"?v.value.trim()?Ts(v.value):"":c.value),ge=Z(()=>be.value&&i.value?fn(be.value,i.value):s("session.autoAlias")),tu=Z(()=>E.value.has(i.value));async function Lt(){var O;if(q.value="",U.value=[],$.value="",!(l.value!=="native"||!i.value||!c.value)){if(!tu.value){$.value=s("session.pickConfiguredAgent");return}R.value=!0;try{U.value=await a.listNativeSessions(u.instanceId,i.value,c.value),q.value=((O=U.value[0])==null?void 0:O.sessionId)??""}catch(K){$.value=K instanceof Error?K.message:s("session.failedListNative")}finally{R.value=!1}}}ve([l,i,c],()=>{l.value==="native"&&(p.value="existing",Lt())}),ve([i,c],async()=>{x.value=[],!(!i.value||!c.value)&&(x.value=await a.listModelSuggestions(u.instanceId,i.value,c.value))});const Ot=Z(()=>{const O=$.value;return O&&/auth|login|unauthor|credential|sign[\s-]?in/i.test(O)?s("session.authHint",{agent:i.value||s("session.thisAgent")}):""});function uu(O){const K=(O.title??"").trim()||O.sessionId,H=O.sessionId.length>8?`…${O.sessionId.slice(-8)}`:O.sessionId,me=O.updatedAt?` · ${Bn(O.updatedAt)}`:"";return`${K} (${H})${me}`}const Y=Z(()=>[{options:U.value.map(O=>({value:O.sessionId,label:uu(O)}))}]),P=Z(()=>ee.value||!i.value?!1:l.value==="native"?!!q.value:p.value==="existing"?!!c.value:!!v.value.trim());async function ne(){var O,K;if(P.value){ee.value=!0,W.value="";try{const H=i.value,me=(((O=o.value)==null?void 0:O.sessions)??[]).map(je=>je.alias);if(l.value==="native"){const je=c.value,ke=r.value.trim()||pn(fn(je,H),me);if(!je||!ke||!q.value){W.value=s("session.pickNativeAndAlias");return}if(me.includes(ke)){W.value=s("session.aliasTaken",{alias:ke});return}if(!a.beginSessionCreation(u.instanceId,ke,H,je,q.value)){W.value=s("session.aliasTaken",{alias:ke});return}n("created",ke),n("close");return}let le=c.value;if(p.value==="path"){const je=(((K=o.value)==null?void 0:K.workspaces)??[]).map(ke=>ke.name);le=pn(Ts(v.value),je)}const Te=r.value.trim()||pn(fn(le,H),me);if(!le||!Te){W.value=s("session.couldNotDeriveName");return}if(me.includes(Te)){W.value=s("session.aliasTaken",{alias:Te});return}E.value.has(H)||await a.createAgent(u.instanceId,H,H),p.value==="path"&&await a.createWorkspace(u.instanceId,le,v.value.trim());const ie=h.value.trim(),ct=ie&&ie.toLowerCase()!=="default"?ie:void 0;if(!a.beginSessionCreation(u.instanceId,Te,H,le,void 0,ct)){W.value=s("session.aliasTaken",{alias:Te});return}n("created",Te),n("close")}catch(H){W.value=H instanceof Error?H.message:s("session.createFailed")}finally{ee.value=!1}}}return(O,K)=>(d(),X(Jt,{to:"body"},[f("div",{class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:K[13]||(K[13]=Ae(H=>n("close"),["self"]))},[f("div",di,[f("header",fi,[f("h2",pi,[he(k(O.$t("session.newSession"))+" ",1),f("span",hi,"· "+k(e.instanceName),1)]),f("button",{class:"rounded p-1 text-fg-muted hover:bg-fg/5 hover:text-fg","aria-label":O.$t("session.close"),onClick:K[0]||(K[0]=H=>n("close"))},[B(g(Ge),{size:16})],8,mi)]),f("div",bi,[z.value?(d(),m("div",gi,k(O.$t("session.loadingOptions")),1)):(d(),m(Q,{key:1},[f("div",xi,[f("span",vi,k(O.$t("session.source")),1),f("div",yi,[f("button",{type:"button","data-test":"ns-source-new",class:J(["flex-1 rounded px-2 py-1 text-xs",l.value==="new"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:K[1]||(K[1]=H=>l.value="new")},k(O.$t("session.newSession")),3),f("button",{type:"button","data-test":"ns-source-native",class:J(["flex-1 rounded px-2 py-1 text-xs",l.value==="native"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:K[2]||(K[2]=H=>l.value="native")},k(O.$t("session.nativeSession")),3)])]),f("label",ki,[f("span",_i,[he(k(O.$t("session.sessionAlias"))+" ",1),f("span",wi,k(O.$t("session.optional")),1)]),we(f("input",{"onUpdate:modelValue":K[3]||(K[3]=H=>r.value=H),"data-test":"ns-alias",placeholder:ge.value,class:"w-full rounded-lg border border-border bg-bg px-3 py-2 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onKeydown:Rn(ne,["enter"])},null,40,Ei),[[Re,r.value]])]),f("div",Ai,[f("span",Ci,k(O.$t("session.agent")),1),B(hn,{modelValue:i.value,"onUpdate:modelValue":K[4]||(K[4]=H=>i.value=H),groups:ae.value,"data-test":"ns-agent","aria-label":O.$t("session.agent"),placeholder:O.$t("session.selectAgent")},null,8,["modelValue","groups","aria-label","placeholder"])]),f("div",$i,[f("div",Di,[f("span",Ti,k(O.$t("session.workspace")),1),l.value==="new"?(d(),m("div",Si,[f("button",{type:"button","data-test":"ns-ws-mode-existing",class:J(["rounded px-2 py-0.5 text-xs",p.value==="existing"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:K[5]||(K[5]=H=>p.value="existing")},k(O.$t("session.existing")),3),f("button",{type:"button","data-test":"ns-ws-mode-path",class:J(["rounded px-2 py-0.5 text-xs",p.value==="path"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:K[6]||(K[6]=H=>p.value="path")},k(O.$t("session.newPath")),3)])):L("",!0)]),p.value==="existing"?(d(),X(hn,{key:0,modelValue:c.value,"onUpdate:modelValue":K[7]||(K[7]=H=>c.value=H),groups:V.value,"data-test":"ns-workspace","aria-label":O.$t("session.workspace"),placeholder:O.$t("session.selectWorkspace")},null,8,["modelValue","groups","aria-label","placeholder"])):we((d(),m("input",{key:1,"onUpdate:modelValue":K[8]||(K[8]=H=>v.value=H),"data-test":"ns-ws-path",placeholder:O.$t("session.pathPlaceholder"),class:"w-full rounded-lg border border-border bg-bg px-3 py-2 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,Fi)),[[Re,v.value]])]),l.value==="new"?(d(),m("div",Ii,[f("span",Mi,[he(k(O.$t("session.model"))+" ",1),f("span",zi,k(O.$t("session.optional")),1)]),f("div",{ref_key:"modelBoxEl",ref:D,class:"relative"},[we(f("input",{"onUpdate:modelValue":K[9]||(K[9]=H=>h.value=H),"data-test":"ns-model",placeholder:"default",autocomplete:"off",class:"w-full rounded-lg border border-border bg-bg py-2 pl-3 pr-9 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onFocus:_,onInput:_,onKeydown:N},null,544),[[Re,h.value]]),f("button",{type:"button",tabindex:"-1","aria-label":O.$t("session.toggleModelList"),class:"absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-1 text-fg-muted hover:text-fg",onClick:K[10]||(K[10]=H=>A.value?w():_())},[B(g(ut),{size:16,class:J(["transition-transform",A.value?"rotate-180":""])},null,8,["class"])],8,Li),A.value&&y.value.length?(d(),m("ul",Oi,[(d(!0),m(Q,null,ce(y.value,(H,me)=>(d(),m("li",{key:H,class:J(["flex cursor-pointer items-center justify-between px-3 py-1.5 text-sm",me===T.value?"bg-accent/15 text-fg":"text-fg-muted hover:bg-fg/5"]),onMousedown:Ae(le=>I(H),["prevent"]),onMouseenter:le=>T.value=me},[f("span",Ni,k(H),1),H==="default"?(d(),m("span",Pi,k(O.$t("session.agentDefault")),1)):L("",!0)],42,Ri))),128))])):L("",!0)],512)])):L("",!0),l.value==="native"?(d(),m("div",Bi,[f("span",Ui,k(O.$t("session.nativeSession")),1),R.value?(d(),m("div",Hi,[f("div",qi,[B(g(it),{size:13,class:"animate-spin motion-reduce:animate-none text-accent"}),he(" "+k(O.$t("session.listingNative")),1)]),(d(),m(Q,null,ce(3,H=>f("div",{key:H,class:"h-7 animate-pulse rounded-lg bg-fg/5 motion-reduce:animate-none",style:Mt({width:`${92-H*12}%`})},null,4)),64))])):U.value.length?(d(),X(hn,{key:1,modelValue:q.value,"onUpdate:modelValue":K[11]||(K[11]=H=>q.value=H),groups:Y.value,"data-test":"ns-native","aria-label":O.$t("session.nativeSession"),placeholder:O.$t("session.selectNative")},null,8,["modelValue","groups","aria-label","placeholder"])):$.value?(d(),m("div",ji,[f("div",Vi,[B(g(St),{size:13,class:"mt-0.5 shrink-0"}),f("div",Gi,[f("p",Wi,k($.value),1),Ot.value?(d(),m("p",Ki,k(Ot.value),1)):L("",!0)])])])):(d(),m("p",Zi,k(O.$t("session.noNativeSessions")),1))])):L("",!0),W.value?(d(),m("p",Xi,k(W.value),1)):L("",!0)],64))]),f("footer",Yi,[f("button",{class:"rounded-lg px-3 py-1.5 text-sm text-fg-muted hover:bg-fg/5",onClick:K[12]||(K[12]=H=>n("close"))},k(O.$t("common.cancel")),1),f("button",{"data-test":"ns-create",disabled:!P.value,class:"rounded-lg bg-accent px-4 py-1.5 text-sm font-medium text-white enabled:hover:bg-accent-hover disabled:opacity-40",onClick:ne},k(ee.value?O.$t("session.creatingButton"):O.$t("session.create")),9,Ji)])])])]))}}),el={class:"space-y-3"},tl={key:0,"data-test":"wm-error",class:"rounded bg-danger/10 px-3 py-2 text-sm text-danger"},ul=["placeholder"],nl={key:2,"data-test":"wm-empty",class:"text-sm text-fg-muted"},sl={key:3,class:"max-h-64 divide-y divide-border overflow-y-auto rounded border border-border"},al=["title"],ol={class:"font-medium text-fg"},rl={class:"text-fg-muted"},il=["data-test","title","aria-label","disabled","onClick"],ll={key:0,class:"px-3 py-2 text-sm text-fg-muted"},cl={key:5,class:"space-y-2 rounded border border-border p-3"},dl={class:"grid grid-cols-1 gap-2 sm:grid-cols-3"},fl=["placeholder"],pl=["placeholder"],hl=["placeholder"],ml={class:"flex gap-2"},bl=["disabled"],gl=de({__name:"WorkspacesManager",props:{instanceId:{}},setup(e){const t=e,u=lt(),{t:n}=It(),s=Z(()=>u.byId(t.instanceId)),a=M(""),o=M(""),r=M(""),i=M(""),l=M(!1),p=M(!1),c=M(""),v=Z(()=>{var D;return((D=s.value)==null?void 0:D.workspaces)??[]}),h=Z(()=>v.value.length>6),x=Z(()=>{const D=c.value.trim().toLowerCase();return D?v.value.filter(C=>C.name.toLowerCase().includes(D)||(C.cwd??"").toLowerCase().includes(D)):v.value});async function A(){if(!(!a.value.trim()||!o.value.trim()||l.value)){l.value=!0,i.value="";try{await u.createWorkspace(t.instanceId,a.value.trim(),o.value.trim(),r.value.trim()||void 0),a.value="",o.value="",r.value=""}catch(D){i.value=D instanceof Error?D.message:n("workspaces.createFailed")}finally{l.value=!1}}}async function T(D){if(!(l.value||!await vu({title:n("workspaces.removeTitle"),message:n("workspaces.removeBody",{name:D}),confirmLabel:n("common.remove"),tone:"danger"}))){l.value=!0,i.value="";try{await u.removeWorkspace(t.instanceId,D)}catch(y){i.value=y instanceof Error?y.message:n("workspaces.removeFailed")}finally{l.value=!1}}}return(D,C)=>(d(),m("section",el,[i.value?(d(),m("p",tl,k(i.value),1)):L("",!0),h.value?we((d(),m("input",{key:1,"onUpdate:modelValue":C[0]||(C[0]=y=>c.value=y),"data-test":"wm-filter",placeholder:D.$t("common.filter"),class:"w-full rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,ul)),[[Re,c.value]]):L("",!0),v.value.length?(d(),m("ul",sl,[(d(!0),m(Q,null,ce(x.value,y=>(d(),m("li",{key:y.name,class:"flex items-center justify-between gap-2 px-3 py-2 text-sm"},[f("span",{class:"min-w-0 truncate",title:`${y.name} — ${y.cwd}`},[f("span",ol,k(y.name),1),f("span",rl," — "+k(y.cwd),1)],8,al),f("button",{"data-test":`wm-remove-${y.name}`,title:D.$t("workspaces.remove",{name:y.name}),"aria-label":D.$t("workspaces.removeAria",{name:y.name}),class:"grid h-7 w-7 shrink-0 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger disabled:opacity-50",disabled:l.value,onClick:_=>T(y.name)},[B(g(pu),{size:14})],8,il)]))),128)),x.value.length?L("",!0):(d(),m("li",ll,k(D.$t("common.noMatch")),1))])):(d(),m("p",nl,k(D.$t("workspaces.empty")),1)),p.value?(d(),m("div",cl,[f("div",dl,[we(f("input",{"onUpdate:modelValue":C[2]||(C[2]=y=>a.value=y),"data-test":"wm-name",placeholder:D.$t("workspaces.namePlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,fl),[[Re,a.value]]),we(f("input",{"onUpdate:modelValue":C[3]||(C[3]=y=>o.value=y),"data-test":"wm-path",placeholder:D.$t("workspaces.pathPlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,pl),[[Re,o.value]]),we(f("input",{"onUpdate:modelValue":C[4]||(C[4]=y=>r.value=y),"data-test":"wm-desc",placeholder:D.$t("workspaces.descPlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,hl),[[Re,r.value]])]),f("div",ml,[f("button",{"data-test":"wm-create",class:"rounded bg-accent px-3 py-1.5 text-sm text-white hover:bg-accent-hover disabled:opacity-50",disabled:l.value||!a.value.trim()||!o.value.trim(),onClick:A},k(D.$t("common.add")),9,bl),f("button",{type:"button","data-test":"wm-add-cancel",class:"rounded px-3 py-1.5 text-sm text-fg-muted hover:bg-fg/5 hover:text-fg",onClick:C[5]||(C[5]=y=>p.value=!1)},k(D.$t("common.cancel")),1)])])):(d(),m("button",{key:4,type:"button","data-test":"wm-add-toggle",onClick:C[1]||(C[1]=y=>p.value=!0),class:"flex items-center gap-1.5 rounded border border-dashed border-border px-3 py-1.5 text-sm text-fg-muted transition-colors hover:border-accent hover:text-fg"},[B(g(Uu),{size:14}),he(" "+k(D.$t("workspaces.add")),1)]))]))}}),xl={class:"space-y-3"},vl={key:0,"data-test":"am-error",class:"rounded bg-danger/10 px-3 py-2 text-sm text-danger"},yl=["placeholder"],kl={key:2,"data-test":"am-empty",class:"text-sm text-fg-muted"},_l={key:3,class:"max-h-64 divide-y divide-border overflow-y-auto rounded border border-border"},wl=["title"],El={class:"font-medium text-fg"},Al={class:"text-fg-muted"},Cl=["data-test","title","aria-label","disabled","onClick"],$l={key:0,class:"px-3 py-2 text-sm text-fg-muted"},Dl={key:5,class:"space-y-2 rounded border border-border p-3"},Tl={class:"grid grid-cols-1 gap-2 sm:grid-cols-2"},Sl={value:"",disabled:""},Fl=["value","disabled"],Il=["placeholder"],Ml={class:"flex gap-2"},zl=["disabled"],Ll=de({__name:"AgentsManager",props:{instanceId:{}},setup(e){const t=e,u=lt(),{t:n}=It(),s=Z(()=>u.byId(t.instanceId)),a=M(""),o=M(""),r=M(""),i=M(!1),l=M(!1),p=M(""),c=Z(()=>{var C;return(((C=s.value)==null?void 0:C.agentCatalog)??[]).filter(y=>!y.configured)}),v=Z(()=>{var C;return((C=s.value)==null?void 0:C.agents)??[]}),h=Z(()=>v.value.length>6),x=Z(()=>{const C=p.value.trim().toLowerCase();return C?v.value.filter(y=>y.name.toLowerCase().includes(C)||(y.driver??"").toLowerCase().includes(C)):v.value});async function A(){if(!(!a.value||i.value)){i.value=!0,r.value="";try{await u.createAgent(t.instanceId,o.value.trim()||a.value,a.value),a.value="",o.value=""}catch(C){r.value=C instanceof Error?C.message:n("agents.addFailed")}finally{i.value=!1}}}async function T(C){if(!(i.value||!await vu({title:n("agents.removeTitle"),message:n("agents.removeBody",{name:C}),confirmLabel:n("common.remove"),tone:"danger"}))){i.value=!0,r.value="";try{await u.removeAgent(t.instanceId,C)}catch(_){r.value=_ instanceof Error?_.message:n("agents.removeFailed")}finally{i.value=!1}}}function D(C){return n(C==="builtin"?"agents.builtin":C==="yes"?"agents.installed":"agents.cliNotDetected")}return(C,y)=>(d(),m("section",xl,[r.value?(d(),m("p",vl,k(r.value),1)):L("",!0),h.value?we((d(),m("input",{key:1,"onUpdate:modelValue":y[0]||(y[0]=_=>p.value=_),"data-test":"am-filter",placeholder:C.$t("common.filter"),class:"w-full rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,yl)),[[Re,p.value]]):L("",!0),v.value.length?(d(),m("ul",_l,[(d(!0),m(Q,null,ce(x.value,_=>(d(),m("li",{key:_.name,class:"flex items-center justify-between gap-2 px-3 py-2 text-sm"},[f("span",{class:"min-w-0 truncate",title:`${_.name} · ${_.driver}`},[f("span",El,k(_.name),1),f("span",Al," · "+k(_.driver),1)],8,wl),f("button",{"data-test":`am-remove-${_.name}`,title:C.$t("agents.remove",{name:_.name}),"aria-label":C.$t("agents.removeAria",{name:_.name}),class:"grid h-7 w-7 shrink-0 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger disabled:opacity-50",disabled:i.value,onClick:w=>T(_.name)},[B(g(pu),{size:14})],8,Cl)]))),128)),x.value.length?L("",!0):(d(),m("li",$l,k(C.$t("common.noMatch")),1))])):(d(),m("p",kl,k(C.$t("agents.empty")),1)),l.value?(d(),m("div",Dl,[f("div",Tl,[we(f("select",{"onUpdate:modelValue":y[2]||(y[2]=_=>a.value=_),"data-test":"am-driver",class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},[f("option",Sl,k(C.$t("agents.chooseDriver")),1),(d(!0),m(Q,null,ce(c.value,_=>(d(),m("option",{key:_.driver,value:_.driver,disabled:_.installed==="unknown"},k(_.driver)+" ("+k(D(_.installed))+") ",9,Fl))),128))],512),[[Jo,a.value]]),we(f("input",{"onUpdate:modelValue":y[3]||(y[3]=_=>o.value=_),"data-test":"am-name",placeholder:C.$t("agents.namePlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,Il),[[Re,o.value]])]),f("div",Ml,[f("button",{"data-test":"am-add",class:"rounded bg-accent px-3 py-1.5 text-sm text-white hover:bg-accent-hover disabled:opacity-50",disabled:i.value||!a.value,onClick:A},k(C.$t("common.add")),9,zl),f("button",{type:"button","data-test":"am-add-cancel",class:"rounded px-3 py-1.5 text-sm text-fg-muted hover:bg-fg/5 hover:text-fg",onClick:y[4]||(y[4]=_=>l.value=!1)},k(C.$t("common.cancel")),1)])])):(d(),m("button",{key:4,type:"button","data-test":"am-add-toggle",onClick:y[1]||(y[1]=_=>l.value=!0),class:"flex items-center gap-1.5 rounded border border-dashed border-border px-3 py-1.5 text-sm text-fg-muted transition-colors hover:border-accent hover:text-fg"},[B(g(Uu),{size:14}),he(" "+k(C.$t("agents.add")),1)]))]))}}),Ol={class:"flex shrink-0 items-center justify-between border-b border-border px-5 py-3"},Rl={id:"manage-instance-title",class:"truncate text-sm font-semibold text-fg"},Nl=["aria-label"],Pl={key:0,class:"py-6 text-center text-sm text-fg-muted"},Bl=["id","data-test","aria-selected","aria-controls","tabindex","onClick"],Ul={class:"flex-1 overflow-y-auto p-5"},Hl={key:0,id:"tabpanel-general",role:"tabpanel","aria-labelledby":"tab-general",class:"space-y-6"},ql={class:"space-y-3"},jl={class:"text-sm font-semibold uppercase text-fg-muted"},Vl={key:0,"data-test":"rename-error",class:"rounded bg-danger/10 px-3 py-2 text-sm text-danger"},Gl={class:"flex gap-2"},Wl=["placeholder"],Kl=["disabled"],Zl={class:"space-y-1"},Xl={class:"text-sm font-semibold uppercase text-fg-muted"},Yl={class:"text-sm text-fg-muted","data-test":"instance-version"},Jl={key:1,id:"tabpanel-workspaces",role:"tabpanel","aria-labelledby":"tab-workspaces"},Ql={key:2,id:"tabpanel-agents",role:"tabpanel","aria-labelledby":"tab-agents"},e0='a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])',t0=de({__name:"ManageInstanceDialog",props:{instanceId:{},instanceName:{}},emits:["close"],setup(e,{emit:t}){const u=e,n=t,s=lt(),{t:a}=It(),o=Z(()=>{var y;return((y=s.byId(u.instanceId))==null?void 0:y.coreVersion)??null}),r=M(!0),i=["general","workspaces","agents"],l=M("general");function p(y){const _=i.indexOf(l.value);let w=_;if(y.key==="ArrowRight")w=(_+1)%i.length;else if(y.key==="ArrowLeft")w=(_-1+i.length)%i.length;else if(y.key==="Home")w=0;else if(y.key==="End")w=i.length-1;else return;y.preventDefault(),l.value=i[w],He(()=>{var I,N;(N=(I=A.value)==null?void 0:I.querySelector(`#tab-${i[w]}`))==null||N.focus()})}const c=M(u.instanceName),v=M(""),h=M(!1);async function x(){const y=c.value.trim();if(!(!y||h.value)){h.value=!0,v.value="";try{await s.renameInstance(u.instanceId,y),c.value=y}catch(_){v.value=_ instanceof Error?_.message:a("instance.renameFailed")}finally{h.value=!1}}}const A=M(null);let T=null;function D(){return A.value?Array.from(A.value.querySelectorAll(e0)):[]}function C(y){if(y.key==="Escape"){y.preventDefault(),n("close");return}if(y.key!=="Tab")return;const _=D();if(_.length===0)return;const w=_[0],I=_[_.length-1],N=document.activeElement;y.shiftKey&&N===w?(y.preventDefault(),I.focus()):!y.shiftKey&&N===I&&(y.preventDefault(),w.focus())}return tt(async()=>{T=document.activeElement instanceof HTMLElement?document.activeElement:null,document.addEventListener("keydown",C),He(()=>{var y;(y=D()[0]??A.value)==null||y.focus()});try{await s.loadFormOptions(u.instanceId)}catch{}finally{r.value=!1}}),Yt(()=>{var y;document.removeEventListener("keydown",C),(y=T==null?void 0:T.focus)==null||y.call(T)}),(y,_)=>(d(),X(Jt,{to:"body"},[f("div",{class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:_[2]||(_[2]=Ae(w=>n("close"),["self"]))},[f("div",{ref_key:"dialogEl",ref:A,tabindex:"-1",role:"dialog","aria-modal":"true","aria-labelledby":"manage-instance-title",class:"flex max-h-[85vh] w-full max-w-xl flex-col rounded-xl border border-border bg-raised shadow-xl focus:outline-none","data-test":"manage-instance-dialog"},[f("header",Ol,[f("h2",Rl,k(y.$t("instance.manageTitle",{name:c.value})),1),f("button",{class:"rounded p-1 text-fg-muted hover:bg-fg/5 hover:text-fg","aria-label":y.$t("instance.close"),onClick:_[0]||(_[0]=w=>n("close"))},[B(g(Ge),{size:16})],8,Nl)]),r.value?(d(),m("div",Pl,k(y.$t("instance.dialogLoading")),1)):(d(),m(Q,{key:1},[f("nav",{class:"flex shrink-0 gap-1 border-b border-border px-3 pt-2",role:"tablist",onKeydown:p},[(d(),m(Q,null,ce(["general","workspaces","agents"],w=>f("button",{key:w,id:`tab-${w}`,"data-test":`tab-${w}`,role:"tab","aria-selected":l.value===w,"aria-controls":`tabpanel-${w}`,tabindex:l.value===w?0:-1,class:J(["rounded-t px-3 py-1.5 text-sm font-medium transition-colors",l.value===w?"border-b-2 border-accent text-fg":"text-fg-muted hover:text-fg"]),onClick:I=>l.value=w},k(w==="general"?y.$t("instance.tabGeneral"):w==="workspaces"?y.$t("workspaces.title"):y.$t("agents.title")),11,Bl)),64))],32),f("div",Ul,[l.value==="general"?(d(),m("div",Hl,[f("section",ql,[f("h3",jl,k(y.$t("instance.nameLabel")),1),v.value?(d(),m("p",Vl,k(v.value),1)):L("",!0),f("div",Gl,[we(f("input",{"onUpdate:modelValue":_[1]||(_[1]=w=>c.value=w),"data-test":"rename-name",placeholder:y.$t("instance.renamePlaceholder"),class:"min-w-0 flex-1 rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onKeyup:Rn(x,["enter"])},null,40,Wl),[[Re,c.value]]),f("button",{"data-test":"rename-save",class:"shrink-0 rounded bg-accent px-3 py-1.5 text-sm text-white hover:bg-accent-hover disabled:opacity-50",disabled:h.value||!c.value.trim(),onClick:x},k(h.value?y.$t("instance.renameSaving"):y.$t("instance.renameSave")),9,Kl)])]),f("section",Zl,[f("h3",Xl,k(y.$t("instance.versionLabel")),1),f("p",Yl,k(o.value?y.$t("instance.coreVersion",{version:o.value}):y.$t("instance.coreVersionUnknown")),1)])])):l.value==="workspaces"?(d(),m("div",Jl,[B(gl,{"instance-id":e.instanceId},null,8,["instance-id"])])):l.value==="agents"?(d(),m("div",Ql,[B(Ll,{"instance-id":e.instanceId},null,8,["instance-id"])])):L("",!0)])],64))],512)])]))}}),u0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Codex</title><path d="M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z" fill="#fff"></path><path d="M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z" fill="url(#lobe-icons-codex-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-codex-_R_0_" x1="12" x2="12" y1="3" y2="21"><stop stop-color="#B1A7FF"></stop><stop offset=".5" stop-color="#7A9DFF"></stop><stop offset="1" stop-color="#3941FF"></stop></linearGradient></defs></svg>',n0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Claude Code</title><path clip-rule="evenodd" d="M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z" fill="#D97757" fill-rule="evenodd"></path></svg>',s0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Gemini</title><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="#3186FF"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-0-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-1-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-2-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-0-_R_0_" x1="7" x2="11" y1="15.5" y2="12"><stop stop-color="#08B962"></stop><stop offset="1" stop-color="#08B962" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-1-_R_0_" x1="8" x2="11.5" y1="5.5" y2="11"><stop stop-color="#F94543"></stop><stop offset="1" stop-color="#F94543" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-2-_R_0_" x1="3.5" x2="17.5" y1="13.5" y2="12"><stop stop-color="#FABC12"></stop><stop offset=".46" stop-color="#FABC12" stop-opacity="0"></stop></linearGradient></defs></svg>',a0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Copilot</title><path d="M17.533 1.829A2.528 2.528 0 0015.11 0h-.737a2.531 2.531 0 00-2.484 2.087l-1.263 6.937.314-1.08a2.528 2.528 0 012.424-1.833h4.284l1.797.706 1.731-.706h-.505a2.528 2.528 0 01-2.423-1.829l-.715-2.453z" fill="url(#lobe-icons-copilot-0-_R_0_)" transform="translate(0 1)"></path><path d="M6.726 20.16A2.528 2.528 0 009.152 22h1.566c1.37 0 2.49-1.1 2.525-2.48l.17-6.69-.357 1.228a2.528 2.528 0 01-2.423 1.83h-4.32l-1.54-.842-1.667.843h.497c1.124 0 2.113.75 2.426 1.84l.697 2.432z" fill="url(#lobe-icons-copilot-1-_R_0_)" transform="translate(0 1)"></path><path d="M15 0H6.252c-2.5 0-4 3.331-5 6.662-1.184 3.947-2.734 9.225 1.75 9.225H6.78c1.13 0 2.12-.753 2.43-1.847.657-2.317 1.809-6.359 2.713-9.436.46-1.563.842-2.906 1.43-3.742A1.97 1.97 0 0115 0" fill="url(#lobe-icons-copilot-2-_R_0_)" transform="translate(0 1)"></path><path d="M15 0H6.252c-2.5 0-4 3.331-5 6.662-1.184 3.947-2.734 9.225 1.75 9.225H6.78c1.13 0 2.12-.753 2.43-1.847.657-2.317 1.809-6.359 2.713-9.436.46-1.563.842-2.906 1.43-3.742A1.97 1.97 0 0115 0" fill="url(#lobe-icons-copilot-3-_R_0_)" transform="translate(0 1)"></path><path d="M9 22h8.749c2.5 0 4-3.332 5-6.663 1.184-3.948 2.734-9.227-1.75-9.227H17.22c-1.129 0-2.12.754-2.43 1.848a1149.2 1149.2 0 01-2.713 9.437c-.46 1.564-.842 2.907-1.43 3.743A1.97 1.97 0 019 22" fill="url(#lobe-icons-copilot-4-_R_0_)" transform="translate(0 1)"></path><path d="M9 22h8.749c2.5 0 4-3.332 5-6.663 1.184-3.948 2.734-9.227-1.75-9.227H17.22c-1.129 0-2.12.754-2.43 1.848a1149.2 1149.2 0 01-2.713 9.437c-.46 1.564-.842 2.907-1.43 3.743A1.97 1.97 0 019 22" fill="url(#lobe-icons-copilot-5-_R_0_)" transform="translate(0 1)"></path><defs><radialGradient cx="85.44%" cy="100.653%" fx="85.44%" fy="100.653%" gradientTransform="scale(-.8553 -1) rotate(50.927 2.041 -1.946)" id="lobe-icons-copilot-0-_R_0_" r="105.116%"><stop offset="9.6%" stop-color="#00AEFF"></stop><stop offset="77.3%" stop-color="#2253CE"></stop><stop offset="100%" stop-color="#0736C4"></stop></radialGradient><radialGradient cx="18.143%" cy="32.928%" fx="18.143%" fy="32.928%" gradientTransform="scale(.8897 1) rotate(52.069 .193 .352)" id="lobe-icons-copilot-1-_R_0_" r="95.612%"><stop offset="0%" stop-color="#FFB657"></stop><stop offset="63.4%" stop-color="#FF5F3D"></stop><stop offset="92.3%" stop-color="#C02B3C"></stop></radialGradient><radialGradient cx="82.987%" cy="-9.792%" fx="82.987%" fy="-9.792%" gradientTransform="scale(-1 -.9441) rotate(-70.872 .142 1.17)" id="lobe-icons-copilot-4-_R_0_" r="140.622%"><stop offset="6.6%" stop-color="#8C48FF"></stop><stop offset="50%" stop-color="#F2598A"></stop><stop offset="89.6%" stop-color="#FFB152"></stop></radialGradient><linearGradient id="lobe-icons-copilot-2-_R_0_" x1="39.465%" x2="46.884%" y1="12.117%" y2="103.774%"><stop offset="15.6%" stop-color="#0D91E1"></stop><stop offset="48.7%" stop-color="#52B471"></stop><stop offset="65.2%" stop-color="#98BD42"></stop><stop offset="93.7%" stop-color="#FFC800"></stop></linearGradient><linearGradient id="lobe-icons-copilot-3-_R_0_" x1="45.949%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#3DCBFF"></stop><stop offset="24.7%" stop-color="#0588F7" stop-opacity="0"></stop></linearGradient><linearGradient id="lobe-icons-copilot-5-_R_0_" x1="83.507%" x2="83.453%" y1="-6.106%" y2="21.131%"><stop offset="5.8%" stop-color="#F8ADFA"></stop><stop offset="70.8%" stop-color="#A86EDD" stop-opacity="0"></stop></linearGradient></defs></svg>',o0='<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Cursor</title><path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"></path></svg>',r0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Qwen</title><path d="M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z" fill="url(#lobe-icons-qwen-_R_0_)" fill-rule="nonzero"></path><defs><linearGradient id="lobe-icons-qwen-_R_0_" x1="0%" x2="100%" y1="0%" y2="0%"><stop offset="0%" stop-color="#6336E7" stop-opacity=".84"></stop><stop offset="100%" stop-color="#6F69F7" stop-opacity=".84"></stop></linearGradient></defs></svg>',i0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kimi</title><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z" fill="#1783FF"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z" fill="#fff"></path></svg>',l0='<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>opencode</title><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"></path></svg>',c0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenClaw</title><path d="M12 2.568c-6.33 0-9.495 5.275-9.495 9.495 0 4.22 3.165 8.44 6.33 9.494v2.11h2.11v-2.11s1.055.422 2.11 0v2.11h2.11v-2.11c3.165-1.055 6.33-5.274 6.33-9.494S18.33 2.568 12 2.568z" fill="url(#lobe-icons-open-claw-0-_R_0_)"></path><path d="M3.56 9.953C.396 8.898-.66 11.008.396 13.118c1.055 2.11 3.164 1.055 4.22-1.055.632-1.477 0-2.11-1.056-2.11z" fill="url(#lobe-icons-open-claw-1-_R_0_)"></path><path d="M20.44 9.953c3.164-1.055 4.22 1.055 3.164 3.165-1.055 2.11-3.164 1.055-4.22-1.055-.632-1.477 0-2.11 1.056-2.11z" fill="url(#lobe-icons-open-claw-2-_R_0_)"></path><path d="M5.507 1.875c.476-.285 1.036-.233 1.615.037.577.27 1.223.774 1.937 1.488a.316.316 0 01-.447.447c-.693-.693-1.279-1.138-1.757-1.361-.475-.222-.795-.205-1.022-.069a.317.317 0 01-.326-.542zM16.877 1.913c.58-.27 1.14-.323 1.616-.038a.317.317 0 01-.326.542c-.227-.136-.547-.153-1.022.069-.478.223-1.064.668-1.756 1.361a.316.316 0 11-.448-.447c.714-.714 1.36-1.218 1.936-1.487z" fill="#FF4D4D"></path><path d="M8.835 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532zM15.165 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532z" fill="#050810"></path><path d="M9.046 8.16a.527.527 0 100-1.056.527.527 0 000 1.055zM15.376 8.16a.527.527 0 100-1.055.527.527 0 000 1.054z" fill="#00E5CC"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-0-_R_0_" x1="-.659" x2="27.023" y1=".458" y2="22.855"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-1-_R_0_" x1="0" x2="4.311" y1="9.672" y2="14.949"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-2-_R_0_" x1="19.385" x2="24.399" y1="9.953" y2="14.462"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient></defs></svg>',d0='<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kilo Code</title><path d="M0 0v24h24V0H0zm22.222 22.222H1.778V1.778h20.444v20.444zm-7.555-4.964h2.222v1.778h-2.794L12.89 17.83v-2.794h1.778v2.222zm4 0h-1.778v-2.222h-2.222v-1.778h2.793l1.207 1.207v2.793zm-7.556-2.591H9.333v-1.778h1.778v1.778zm-5.778-1.778h1.778v4h4v1.778H6.54L5.333 17.46V12.89zm13.334-3.556v1.778h-5.778V9.333h1.987V7.111h-1.987V5.333h2.558l1.206 1.207v2.793h2.014zm-11.556-2h2.222l1.778 1.778v2H9.333v-2H7.111v2H5.333V5.333h1.778v2zm4 0H9.333v-2h1.778v2z"></path></svg>',f0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kiro</title><path d="M18.8 0H5.2A5.2 5.2 0 000 5.2v13.6A5.2 5.2 0 005.2 24h13.6a5.2 5.2 0 005.2-5.2V5.2A5.2 5.2 0 0018.8 0z" fill="#9046FF"></path><path d="M7.97 16.376c-1.644 3.642 1.86 4.556 4.443 2.424.76 2.39 3.608.607 4.631-1.247 2.251-4.084 1.342-8.249 1.108-9.108-1.6-5.859-9.6-5.869-10.976.03-.323 1.033-.328 2.206-.507 3.423-.09.617-.16 1.009-.393 1.655-.139.373-.323.7-.62 1.257-.458.865-.264 2.53 2.101 1.665l.224-.1h-.01l-.001.001z" fill="#fff"></path><path d="M12.722 10.985c-.656 0-.755-.785-.755-1.252 0-.423.074-.756.218-.97a.61.61 0 01.537-.283c.229 0 .428.095.567.289.159.218.243.55.243.964 0 .785-.303 1.252-.805 1.252h-.005zm2.703 0c-.656 0-.755-.785-.755-1.252 0-.423.074-.756.219-.97a.61.61 0 01.536-.283c.229 0 .428.095.567.289.159.218.243.55.243.964 0 .785-.303 1.252-.805 1.252h-.005z" fill="#000"></path></svg>',p0='<svg fill="currentColor" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Qoder</title><path d="M23.376 14.458v-4.056c0-2.304-1.003-4.154-2.748-5.075L11.612.574l-.046.086-.045.086c1.68.886 2.644 2.673 2.644 4.902v4.056a7.928 7.928 0 01-.014.454l-.005.061c-.005.081-.01.164-.018.245a4.897 4.897 0 01-.011.1l-.01.076c-.008.068-.015.135-.025.203l-.018.113-.01.058a9.99 9.99 0 01-.098.513l-.007.03a7.209 7.209 0 01-.074.294l-.024.086c-.027.099-.056.197-.087.296l-.027.085a9.592 9.592 0 01-.111.323l-.033.085-.018.046c-.032.082-.064.166-.098.248-.019.048-.04.096-.061.145l-.007.017a6 6 0 01-.084.187c-.024.056-.05.11-.077.165-.03.061-.058.122-.089.182a9.423 9.423 0 01-.176.332c-.03.056-.062.111-.094.167-.031.053-.062.108-.095.16-.033.055-.066.11-.101.164-.033.053-.065.104-.1.155-.034.055-.07.107-.111.169l-.099.144a15.193 15.193 0 01-.34.457c-.04.05-.08.102-.121.151l-.107.128-.007.008a6.987 6.987 0 01-.262.298l-.149.16-.116.12a9.562 9.562 0 01-.204.198l-.03.03-.072.069a9.05 9.05 0 01-.263.235l-.025.022-.029.026-.042.035a11.7 11.7 0 01-.22.18l-.07.055-.018.013a8.904 8.904 0 01-.194.146c-.029.02-.057.042-.086.063a7.7 7.7 0 01-.22.152l-.057.04a8.865 8.865 0 01-.293.185l-.062.037a10.424 10.424 0 01-.307.173l-.037.02-.196.103-.108.052-.012.006a6.196 6.196 0 01-.315.143c-.065.028-.13.054-.196.08l-.035.014-.086.034c-.07.026-.143.05-.215.075l-.039.014-.064.023a8.056 8.056 0 01-.323.097l-.63.173a7.285 7.285 0 01-.33.08l-.07.015c-.053.012-.104.023-.157.032l-.065.011-.085.015a2.332 2.332 0 01-.194.027l-.085.01a4.715 4.715 0 01-.16.018l-.034.003a4.861 4.861 0 01-.246.016h-.033a2.714 2.714 0 01-.155.005h-.106a3.384 3.384 0 01-.225-.007H4.86l-.15-.012-.066-.006a5.586 5.586 0 01-.187-.02l-.04-.005a5.14 5.14 0 01-.219-.035l-.054-.01a6.943 6.943 0 01-.347-.082l-.03-.008-.038-.01a5.034 5.034 0 01-.269-.086l-.063-.023a4.216 4.216 0 01-.188-.073l-.071-.031-.016-.007a4.959 4.959 0 01-.16-.074l-.026-.013a.164.164 0 00-.014-.007l-.671-.351.486.486h.016l8.995 4.742.093.048.03.014.02.01c.056.026.111.052.169.076l.016.008.073.032.195.076.022.008a.718.718 0 01.03.012l.014.004a4.693 4.693 0 00.323.1l.027.007c.073.02.147.038.22.055l.018.004.027.006.066.013.088.016c.075.014.15.026.226.038l.042.004c.064.009.128.016.193.022l.126.012.06.003.05.002.098.005c.046.002.094.002.14.003h.12c.05 0 .1-.002.161-.005h.033l.07-.004a6.17 6.17 0 00.184-.014l.033-.003a.753.753 0 00.058-.005l.108-.012.081-.01.08-.01.129-.021.082-.014.071-.012c.054-.01.107-.021.16-.033l.066-.013.059-.013c.096-.022.192-.046.287-.073l.63-.172a7.354 7.354 0 00.397-.122l.04-.015c.075-.025.149-.051.222-.078.032-.011.062-.024.093-.037l.03-.012c.067-.027.135-.054.2-.082l.128-.056.195-.09.021-.01.102-.05c.068-.034.135-.069.202-.105l.037-.02.073-.038c.08-.044.16-.092.24-.139l.026-.015a8.086 8.086 0 00.322-.2l.065-.045 1.98.902a1.748 1.748 0 002.472-1.59v-7.33l.004.004z" fill="#2ADB5C"></path><path d="M11.617.576a3.904 3.904 0 00-.093-.047c-.016-.009-.033-.016-.05-.024a5.854 5.854 0 00-.166-.077l-.09-.04a4.094 4.094 0 00-.194-.074c-.017-.006-.035-.015-.053-.02l-.013-.005a5.18 5.18 0 00-.277-.088l-.07-.019a4.034 4.034 0 00-.219-.053c-.015-.003-.03-.008-.044-.012L10.253.1l-.057-.011a5.177 5.177 0 00-.225-.036L9.928.047a5.972 5.972 0 00-.191-.022L9.669.02a1.33 1.33 0 00-.058-.005L9.515.009a4.058 4.058 0 00-.111-.005C9.354 0 9.304 0 9.254 0h-.109c-.052 0-.106.004-.16.004L8.884.01A5.32 5.32 0 008.7.022l-.083.006h-.008c-.05.005-.1.013-.15.019l-.12.014c-.056.008-.112.018-.169.028-.037.006-.074.011-.11.018a7.054 7.054 0 00-.572.133l-.63.172c-.111.031-.22.064-.33.1-.037.011-.072.025-.108.037a12.91 12.91 0 00-.345.126c-.067.027-.133.054-.2.083l-.128.055a11.916 11.916 0 00-.318.15 7.376 7.376 0 00-.311.163c-.082.045-.16.092-.24.14a9.424 9.424 0 00-.35.218l-.016.01-.06.04a9.242 9.242 0 00-.51.37 12.54 12.54 0 00-.315.254l-.043.034-.01.007-.045.041c-.09.078-.18.158-.268.24l-.106.101c-.07.067-.139.135-.207.204l-.056.054-.063.067-.153.164-.12.133-.148.17c-.024.03-.049.057-.073.086l-.043.053a5.96 5.96 0 00-.123.155l-.118.151c-.04.053-.08.106-.118.16l-.075.101-.038.056-.107.155-.11.164a9.91 9.91 0 00-.168.265c-.012.02-.023.043-.037.063a12.43 12.43 0 00-.192.335l-.09.168c-.019.034-.04.07-.057.105-.011.022-.02.043-.032.065l-.092.188-.08.167a19.15 19.15 0 00-.083.192c-.017.038-.035.076-.05.115-.008.016-.014.034-.021.051-.035.083-.067.167-.1.253l-.051.134c-.04.11-.077.22-.113.33l-.02.057c0 .002 0 .005-.002.007l-.008.026c-.032.1-.06.2-.09.301l-.023.089c-.027.1-.052.2-.075.301l-.007.03a7.63 7.63 0 00-.057.267l-.008.048c-.015.074-.026.148-.038.223L.082 8.4c-.011.078-.02.156-.029.234-.006.051-.013.103-.017.154a6.57 6.57 0 00-.02.26c-.003.044-.007.086-.009.13-.004.128-.007.257-.007.386v4.056c0 1.478.42 2.741 1.138 3.692A4.75 4.75 0 002.73 18.67l9.015 4.753c-1.656-.874-2.728-2.685-2.73-5.051v-4.056c0-.13.004-.26.01-.39.002-.043.006-.085.01-.128.005-.088.01-.174.019-.261l.017-.155c.01-.077.018-.155.029-.234l.026-.164c.013-.074.025-.15.039-.223.02-.105.04-.21.064-.313l.008-.031c.023-.1.048-.201.075-.301l.023-.088c.028-.1.058-.202.09-.302l.008-.025.021-.063c.036-.11.073-.22.113-.33l.052-.134c.031-.085.065-.169.1-.253.022-.056.047-.111.07-.166a13.856 13.856 0 01.164-.358c.03-.063.06-.126.092-.188l.088-.172a9.22 9.22 0 01.187-.338l.096-.164c.034-.057.069-.112.104-.168l.1-.159a10.49 10.49 0 01.567-.786l.123-.155.116-.139c.05-.057.098-.115.148-.171a14.092 14.092 0 01.272-.297 9.706 9.706 0 01.432-.425c.088-.083.177-.163.268-.241l.054-.048a10.08 10.08 0 01.553-.435l.092-.068c.075-.053.15-.105.226-.156.019-.013.038-.028.06-.04a9.18 9.18 0 01.362-.227c.08-.047.16-.094.241-.139l.11-.058a7.643 7.643 0 01.521-.256l.126-.056a7.509 7.509 0 01.546-.208l.107-.037c.11-.036.22-.069.33-.1l.63-.172c.095-.026.191-.05.287-.072l.097-.02c.062-.014.125-.029.187-.04l.114-.018c.055-.01.11-.02.166-.028.04-.006.08-.01.12-.014.053-.007.105-.014.157-.019l.083-.006c.061-.005.123-.01.184-.013.034-.003.067-.003.101-.004l.16-.006h.11a3.187 3.187 0 01.261.008l.153.01.067.007c.064.006.128.013.192.022l.043.005a5.232 5.232 0 01.281.047l.141.03c.073.016.146.035.218.053l.07.019c.094.026.187.055.278.087l.067.025a4.326 4.326 0 01.449.19l.143.072L11.617.576z"></path></svg>',h0='<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>TRAE</title><path d="M24 20.541H3.428v-3.426H0V3.4h24V20.54zM3.428 17.115h17.144V6.827H3.428v10.288zm8.573-5.196l-2.425 2.424-2.424-2.424 2.424-2.424 2.425 2.424zm6.857-.001l-2.424 2.423-2.425-2.423 2.425-2.425 2.424 2.425z" fill="#32F08C"></path></svg>',m0={codex:u0,claude:n0,gemini:s0,copilot:a0,cursor:o0,qwen:r0,kimi:i0,opencode:l0,openclaw:c0,kilocode:d0,kiro:f0,qoder:p0,trae:h0};function b0(e){return e?m0[e.trim().toLowerCase()]??null:null}const g0=["data-driver","title","aria-label"],x0=["innerHTML"],In=de({__name:"AgentIcon",props:{driver:{},size:{default:16},title:{}},setup(e){const t=e,u=Z(()=>b0(t.driver)),n=Z(()=>`${t.size}px`);return(s,a)=>(d(),m("span",{"data-test":"agent-icon","data-driver":e.driver||"",title:e.title,role:"img","aria-label":e.title||e.driver||void 0,class:"inline-grid shrink-0 place-items-center [&>svg]:h-full [&>svg]:w-full",style:Mt({width:n.value,height:n.value})},[u.value?(d(),m("span",{key:0,class:"grid h-full w-full place-items-center [&>svg]:block [&>svg]:h-full [&>svg]:w-full",innerHTML:u.value},null,8,x0)):(d(),X(g(Ta),{key:1,size:e.size,class:"text-fg-muted"},null,8,["size"]))],12,g0))}}),v0={class:"thin-scroll flex h-full flex-1 flex-col space-y-1.5 overflow-y-auto px-2 pb-2 pt-1.5"},y0=["onClick"],k0=["title"],_0={key:2,class:"font-mono text-[10px] tabular-nums text-fg-muted"},w0={key:3,class:"text-[10px] font-medium text-fg-muted"},E0={class:"ml-2.5 mt-px space-y-px border-l border-border pl-2.5"},A0={class:"overflow-hidden rounded-md"},C0={key:0,class:"absolute bottom-1 left-0 top-1 w-[3px] rounded-full bg-accent"},$0=["onClick"],D0={key:1,"data-test":"attention-dot","data-attention":"working",class:"pulse-dot h-2 w-2 shrink-0 rounded-full bg-run-bright"},T0={key:2,"data-test":"attention-dot","data-attention":"unread",class:"h-2 w-2 shrink-0 rounded-full bg-info"},S0={key:3,"data-test":"attention-dot","data-attention":"running",class:"h-2 w-2 shrink-0 rounded-full bg-run"},F0={key:4,"data-test":"archived-badge",class:"shrink-0 rounded bg-bg px-1 py-px text-[9px] text-fg-muted"},I0={key:5,"data-test":"session-elapsed",class:"ml-auto shrink-0 font-mono text-[10px] tabular-nums text-run"},M0={key:1,"data-test":"session-actions",class:"relative mr-1 shrink-0"},z0=["aria-label","onClick"],L0=["aria-label","title","onClick"],O0=["aria-label","title","onClick"],R0=["onClick"],N0=["onClick"],P0={key:0,"data-test":"sessions-loading",class:"py-1 pl-2.5 text-[11px] text-fg-muted"},B0={key:1,"data-test":"no-sessions",class:"py-1 pl-2.5 text-[11px] text-fg-muted"},U0={class:"flex items-center gap-0.5 pb-px pl-2 pt-0.5"},H0=["title","aria-label","onClick"],q0=["title","aria-label","onClick"],j0=de({__name:"InstanceTree",emits:["select"],setup(e,{emit:t}){const u=lt(),n=wt(),{t:s}=It();function a(R,$){var E;return(E=R.agents.find(S=>S.name===$))==null?void 0:E.driver}const o=t,r=M(null),i=M(null),l=M(Date.now()),p=setInterval(()=>{l.value=Date.now()},1e3);Lu(()=>clearInterval(p));function c(R,$){const E=n.runningSince(R,$);if(E===null)return"";const S=Math.max(0,Math.floor((l.value-E)/1e3));return S<60?`${S}s`:S<3600?`${Math.floor(S/60)}m`:`${Math.floor(S/3600)}h`}function v(R,$){return n.instanceId===R&&n.sessionAlias===$}const h=M(new Set);function x(R){return!h.value.has(R)}function A(R){const $=new Set(h.value);$.has(R)?$.delete(R):$.add(R),h.value=$,C.value=null,x(R)&&u.loadSessions(R).catch(()=>{})}function T(R){return[...R].sort(($,E)=>Number($.archived??!1)-Number(E.archived??!1))}const D=M(null),C=M(null),y=M(null),_=M(0);function w(){D.value=null,C.value=null}tt(()=>document.addEventListener("mousedown",w)),Lu(()=>document.removeEventListener("mousedown",w));function I(R){return R.archived?56:112}function N(R,$){const E=`${R}:${$.alias}`,S=I($);if(y.value===E){const ae=C.value===E?-S:0;return`translateX(${Math.max(-S,Math.min(0,ae+_.value))}px)`}return C.value===E?`translateX(-${S}px)`:"translateX(0)"}function ue(R,$){const E=`${R}:${$}`;if(C.value===E){C.value=null;return}o("select",R,$)}async function ee(R,$){D.value=null,C.value=null,await u.archiveSession(R,$).catch(()=>{}),W(R,$)}function W(R,$){si({message:s("instance.sessionArchivedToast",{alias:$}),actionLabel:s("instance.undo"),action:()=>{u.unarchiveSession(R,$).catch(()=>{})}})}async function z(R,$){if(D.value=null,C.value=null,!await vu({title:s("instance.deleteSessionTitle"),message:s("instance.deleteSessionBody",{alias:$}),confirmLabel:s("common.delete"),tone:"danger"}))return;const S=v(R,$);u.removeSession(R,$).catch(()=>{}),S&&n.clearSelection()}function U(R){var E;const $=(E=r.value)==null?void 0:E.id;r.value=null,$&&o("select",$,R)}const q=Z(()=>{const R={};for(const $ of u.instances)if($.online)for(const E of $.sessions){const S=`${$.id}:${E.alias}`,ae=I(E);R[S]=ai({pointerTypes:["touch","pen"],onMove:V=>{D.value=null,y.value=S,_.value=V},onEnd:V=>{const be=C.value===S?-ae:0,ge=Math.max(-ae,Math.min(0,be+V));C.value=ge<=-ae/2?S:null,y.value=null,_.value=0}}).handlers}return R});return(R,$)=>(d(),m("nav",v0,[(d(!0),m(Q,null,ce(g(u).instances,E=>(d(),m("div",{key:E.id,class:J(E.online?"":"opacity-60")},[f("button",{class:"group flex h-7 w-full items-center gap-1.5 rounded-md px-1.5 transition-colors hover:bg-raised",onClick:S=>A(E.id)},[x(E.id)?(d(),X(g(ut),{key:0,size:12,class:"shrink-0 text-fg-muted"})):(d(),X(g(xt),{key:1,size:12,class:"shrink-0 text-fg-muted"})),f("span",{class:J(["h-2 w-2 shrink-0 rounded-full",E.online?"bg-run":"bg-fg-muted"]),"data-test":"online-dot"},null,2),f("span",{class:J(["flex-1 truncate text-left text-[12.5px] font-semibold",E.online?"text-fg":"text-fg-muted"]),title:E.coreVersion?R.$t("instance.coreVersion",{version:E.coreVersion}):R.$t("instance.coreVersionUnknown")},k(E.name),11,k0),E.online?(d(),m("span",_0,k(E.sessions.length),1)):(d(),m("span",w0,k(R.$t("instance.offline")),1))],8,y0),we(f("div",E0,[(d(!0),m(Q,null,ce(T(E.sessions),S=>(d(),m("div",{key:S.alias,"data-test":"session-row",class:"group relative rounded-md"},[f("div",A0,[f("div",Qo({"data-test":"swipe-track",class:["flex touch-pan-y ease-out",y.value===`${E.id}:${S.alias}`?"":"transition-transform duration-200"],style:{transform:N(E.id,S)}},er(E.online?q.value[`${E.id}:${S.alias}`]??{}:{})),[f("div",{class:J(["relative flex w-full shrink-0 items-center rounded-md transition-colors",v(E.id,S.alias)?"bg-accent/10":"hover:bg-raised"])},[v(E.id,S.alias)?(d(),m("span",C0)):L("",!0),f("button",{class:"flex min-w-0 flex-1 items-center gap-2 py-2 pl-2.5 pr-1.5 text-left",onClick:ae=>ue(E.id,S.alias)},[S.creating?(d(),X(g(it),{key:0,"data-test":"session-creating",size:12,class:"shrink-0 animate-spin motion-reduce:animate-none text-accent"})):!S.archived&&g(n).sessionAttention(E.id,S.alias)==="working"?(d(),m("span",D0)):!S.archived&&g(n).sessionAttention(E.id,S.alias)==="unread"?(d(),m("span",T0)):!S.archived&&S.running?(d(),m("span",S0)):L("",!0),f("span",{class:J(["truncate text-[12.5px] font-medium",S.archived?"text-fg-muted":v(E.id,S.alias)?"font-semibold text-accent":"text-fg"])},k(S.alias),3),B(In,{driver:a(E,S.agent),title:S.agent,size:14,class:J(S.archived?"opacity-60":"")},null,8,["driver","title","class"]),S.archived?(d(),m("span",F0,k(R.$t("instance.sessionArchivedBadge")),1)):L("",!0),!S.archived&&c(E.id,S.alias)?(d(),m("span",I0,k(c(E.id,S.alias)),1)):L("",!0)],8,$0),E.online?(d(),m("div",M0,[f("button",{"data-test":"session-menu","aria-label":R.$t("common.more"),class:"grid h-5 w-5 place-items-center rounded text-fg-muted hover:bg-raised hover:text-fg opacity-100 [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:group-hover:opacity-100",onClick:Ae(ae=>{C.value=null,D.value=D.value===`${E.id}:${S.alias}`?null:`${E.id}:${S.alias}`},["stop"])},[B(g(br),{size:13})],8,z0)])):L("",!0)],2),E.online?(d(),m(Q,{key:0},[S.archived?L("",!0):(d(),m("button",{key:0,"data-test":"swipe-archive","aria-label":R.$t("instance.archiveSession"),title:R.$t("instance.archiveSession"),class:"flex w-14 shrink-0 items-center justify-center bg-warn text-white transition-colors hover:bg-warn/90",onClick:Ae(ae=>ee(E.id,S.alias),["stop"])},[B(g(ys),{size:16})],8,L0)),f("button",{"data-test":"swipe-delete","aria-label":R.$t("common.delete"),title:R.$t("common.delete"),class:"flex w-14 shrink-0 items-center justify-center bg-danger text-white transition-colors hover:bg-danger/90",onClick:Ae(ae=>z(E.id,S.alias),["stop"])},[B(g(pu),{size:16})],8,O0)],64)):L("",!0)],16)]),E.online&&D.value===`${E.id}:${S.alias}`?(d(),m("div",{key:0,onMousedown:$[0]||($[0]=Ae(()=>{},["stop"])),class:"absolute right-1 top-full z-30 mt-0.5 w-32 rounded-md border border-border bg-surface py-1 shadow-lg"},[S.archived?L("",!0):(d(),m("button",{key:0,"data-test":"action-archive",class:"flex w-full items-center gap-2 px-2.5 py-1 text-left text-[12px] text-fg hover:bg-raised",onClick:Ae(ae=>ee(E.id,S.alias),["stop"])},[B(g(ys),{size:12}),he(k(R.$t("instance.archiveSession")),1)],8,R0)),f("button",{"data-test":"delete-session",class:"flex w-full items-center gap-2 px-2.5 py-1 text-left text-[12px] text-danger hover:bg-danger/10",onClick:Ae(ae=>z(E.id,S.alias),["stop"])},[B(g(pu),{size:12}),he(k(R.$t("common.delete")),1)],8,N0)],32)):L("",!0)]))),128)),E.online&&!E.sessionsLoaded&&!E.sessions.length?(d(),m("div",P0,k(R.$t("instance.loading")),1)):E.sessionsLoaded&&!E.sessions.length?(d(),m("div",B0,k(R.$t("instance.noSessions")),1)):L("",!0),f("div",U0,[f("button",{"data-test":"new-session",title:R.$t("instance.newSession"),"aria-label":R.$t("instance.newSession"),class:"grid h-6 w-6 place-items-center rounded text-accent transition-colors hover:bg-accent/10",onClick:S=>r.value={id:E.id,name:E.name}},[B(g(Uu),{size:14})],8,H0),f("button",{"data-test":"manage-instance",title:R.$t("instance.manage"),"aria-label":R.$t("instance.manage"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:S=>i.value={id:E.id,name:E.name}},[B(g(Fr),{size:13})],8,q0)])],512),[[Bu,x(E.id)]])],2))),128)),r.value?(d(),X(Qi,{key:0,"instance-id":r.value.id,"instance-name":r.value.name,onClose:$[1]||($[1]=E=>r.value=null),onCreated:U},null,8,["instance-id","instance-name"])):L("",!0),i.value?(d(),X(t0,{key:1,"instance-id":i.value.id,"instance-name":i.value.name,onClose:$[2]||($[2]=E=>i.value=null)},null,8,["instance-id","instance-name"])):L("",!0)]))}});async function V0(e,t=512){if(!e.type.startsWith("image/"))return;const u=await createImageBitmap(e,{imageOrientation:"from-image"}).catch(()=>null);if(!u)return;const n=Math.min(1,t/Math.max(u.width,u.height)),s=Math.max(1,Math.round(u.width*n)),a=Math.max(1,Math.round(u.height*n)),o=document.createElement("canvas");o.width=s,o.height=a;const r=o.getContext("2d");if(r)return r.drawImage(u,0,0,s,a),u.close(),o.toDataURL("image/jpeg",.8)}function G0(e){return new Promise((t,u)=>{const n=new FileReader;n.onload=()=>{const s=n.result;t(s.slice(s.indexOf(",")+1))},n.onerror=()=>u(n.error),n.readAsDataURL(e)})}const W0=5,K0=10*1024*1024,Ra=_t("composer",()=>{const e=M(null);let t=0;function u(v,h){e.value={key:v,text:h,seq:++t}}const n=M([]),s=M(!1),a=M(null);let o="",r=0;function i(v){o=v}async function l(v){const h=o;if(h){a.value=null,s.value=!0;for(const x of v){if(n.value.length>=W0){a.value={reason:"too-many",filename:x.name};break}if(x.size>K0){a.value={reason:"too-large",filename:x.name};continue}const A=`local-${++r}`,T=x.type.startsWith("image/")?"image":"file",D={id:A,filename:x.name,mimeType:x.type||"application/octet-stream",size:x.size,kind:T,status:"uploading"};n.value.push(D);try{const C=await V0(x);C&&(D.previewUrl=C);const y=await G0(x),_=await re.upload(h,{filename:x.name,content:y,mimeType:D.mimeType});D.filePath=_.path,D.id=_.id,D.size=_.size,D.status="ready"}catch{D.status="error"}}s.value=n.value.some(x=>x.status==="uploading")}}function p(v){n.value=n.value.filter(h=>h.id!==v),a.value=null}function c(){n.value=[],a.value=null}return{insertRequest:e,requestInsert:u,pending:n,uploading:s,rejection:a,bindInstance:i,addFiles:l,removeAttachment:p,clearAttachments:c}}),Fs={};function Z0(e){let t=Fs[e];if(t)return t;t=Fs[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);t.push(n)}for(let u=0;u<e.length;u++){const n=e.charCodeAt(u);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function Zt(e,t){typeof t!="string"&&(t=Zt.defaultChars);const u=Z0(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let s="";for(let a=0,o=n.length;a<o;a+=3){const r=parseInt(n.slice(a+1,a+3),16);if(r<128){s+=u[r];continue}if((r&224)===192&&a+3<o){const i=parseInt(n.slice(a+4,a+6),16);if((i&192)===128){const l=r<<6&1984|i&63;l<128?s+="��":s+=String.fromCharCode(l),a+=3;continue}}if((r&240)===224&&a+6<o){const i=parseInt(n.slice(a+4,a+6),16),l=parseInt(n.slice(a+7,a+9),16);if((i&192)===128&&(l&192)===128){const p=r<<12&61440|i<<6&4032|l&63;p<2048||p>=55296&&p<=57343?s+="���":s+=String.fromCharCode(p),a+=6;continue}}if((r&248)===240&&a+9<o){const i=parseInt(n.slice(a+4,a+6),16),l=parseInt(n.slice(a+7,a+9),16),p=parseInt(n.slice(a+10,a+12),16);if((i&192)===128&&(l&192)===128&&(p&192)===128){let c=r<<18&1835008|i<<12&258048|l<<6&4032|p&63;c<65536||c>1114111?s+="����":(c-=65536,s+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),a+=9;continue}}s+="�"}return s})}Zt.defaultChars=";/?:@&=+$,#";Zt.componentChars="";const Is={};function X0(e){let t=Is[e];if(t)return t;t=Is[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+u.toString(16).toUpperCase()).slice(-2))}for(let u=0;u<e.length;u++)t[e.charCodeAt(u)]=e[u];return t}function ku(e,t,u){typeof t!="string"&&(u=t,t=ku.defaultChars),typeof u>"u"&&(u=!0);const n=X0(t);let s="";for(let a=0,o=e.length;a<o;a++){const r=e.charCodeAt(a);if(u&&r===37&&a+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){s+=e.slice(a,a+3),a+=2;continue}if(r<128){s+=n[r];continue}if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&a+1<o){const i=e.charCodeAt(a+1);if(i>=56320&&i<=57343){s+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[a])}return s}ku.defaultChars=";/?:@&=+$,-_.!~*'()#";ku.componentChars="-_.!~*'()";function Un(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Nu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Y0=/^([a-z0-9.+-]+:)/i,J0=/:[0-9]*$/,Q0=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ec=["<",">",'"',"`"," ","\r",`
248
+ `," "],tc=["{","}","|","\\","^","`"].concat(ec),uc=["'"].concat(tc),Ms=["%","/","?",";","#"].concat(uc),zs=["/","?","#"],nc=255,Ls=/^[+a-z0-9A-Z_-]{0,63}$/,sc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Os={javascript:!0,"javascript:":!0},Rs={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Hn(e,t){if(e&&e instanceof Nu)return e;const u=new Nu;return u.parse(e,t),u}Nu.prototype.parse=function(e,t){let u,n,s,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const l=Q0.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let o=Y0.exec(a);if(o&&(o=o[0],u=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(o&&Os[o])&&(a=a.substr(2),this.slashes=!0)),!Os[o]&&(s||o&&!Rs[o])){let l=-1;for(let x=0;x<zs.length;x++)n=a.indexOf(zs[x]),n!==-1&&(l===-1||n<l)&&(l=n);let p,c;l===-1?c=a.lastIndexOf("@"):c=a.lastIndexOf("@",l),c!==-1&&(p=a.slice(0,c),a=a.slice(c+1),this.auth=p),l=-1;for(let x=0;x<Ms.length;x++)n=a.indexOf(Ms[x]),n!==-1&&(l===-1||n<l)&&(l=n);l===-1&&(l=a.length),a[l-1]===":"&&l--;const v=a.slice(0,l);a=a.slice(l),this.parseHost(v),this.hostname=this.hostname||"";const h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){const x=this.hostname.split(/\./);for(let A=0,T=x.length;A<T;A++){const D=x[A];if(D&&!D.match(Ls)){let C="";for(let y=0,_=D.length;y<_;y++)D.charCodeAt(y)>127?C+="x":C+=D[y];if(!C.match(Ls)){const y=x.slice(0,A),_=x.slice(A+1),w=D.match(sc);w&&(y.push(w[1]),_.unshift(w[2])),_.length&&(a=_.join(".")+a),this.hostname=y.join(".");break}}}}this.hostname.length>nc&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const r=a.indexOf("#");r!==-1&&(this.hash=a.substr(r),a=a.slice(0,r));const i=a.indexOf("?");return i!==-1&&(this.search=a.substr(i),a=a.slice(0,i)),a&&(this.pathname=a),Rs[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Nu.prototype.parseHost=function(e){let t=J0.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const ac=Object.freeze(Object.defineProperty({__proto__:null,decode:Zt,encode:ku,format:Un,parse:Hn},Symbol.toStringTag,{value:"Module"})),Na=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Pa=/[\0-\x1F\x7F-\x9F]/,oc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,qn=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ba=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Ua=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rc=Object.freeze(Object.defineProperty({__proto__:null,Any:Na,Cc:Pa,Cf:oc,P:qn,S:Ba,Z:Ua},Symbol.toStringTag,{value:"Module"})),ic=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),lc=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var mn;const cc=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),dc=(mn=String.fromCodePoint)!==null&&mn!==void 0?mn:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function fc(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=cc.get(e))!==null&&t!==void 0?t:e}var De;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(De||(De={}));const pc=32;var gt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(gt||(gt={}));function Mn(e){return e>=De.ZERO&&e<=De.NINE}function hc(e){return e>=De.UPPER_A&&e<=De.UPPER_F||e>=De.LOWER_A&&e<=De.LOWER_F}function mc(e){return e>=De.UPPER_A&&e<=De.UPPER_Z||e>=De.LOWER_A&&e<=De.LOWER_Z||Mn(e)}function bc(e){return e===De.EQUALS||mc(e)}var $e;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})($e||($e={}));var rt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(rt||(rt={}));class gc{constructor(t,u,n){this.decodeTree=t,this.emitCodePoint=u,this.errors=n,this.state=$e.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=rt.Strict}startEntity(t){this.decodeMode=t,this.state=$e.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case $e.EntityStart:return t.charCodeAt(u)===De.NUM?(this.state=$e.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=$e.NamedEntity,this.stateNamedEntity(t,u));case $e.NumericStart:return this.stateNumericStart(t,u);case $e.NumericDecimal:return this.stateNumericDecimal(t,u);case $e.NumericHex:return this.stateNumericHex(t,u);case $e.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|pc)===De.LOWER_X?(this.state=$e.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=$e.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,n,s){if(u!==n){const a=n-u;this.result=this.result*Math.pow(s,a)+parseInt(t.substr(u,a),s),this.consumed+=a}}stateNumericHex(t,u){const n=u;for(;u<t.length;){const s=t.charCodeAt(u);if(Mn(s)||hc(s))u+=1;else return this.addToNumericResult(t,n,u,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,n,u,16),-1}stateNumericDecimal(t,u){const n=u;for(;u<t.length;){const s=t.charCodeAt(u);if(Mn(s))u+=1;else return this.addToNumericResult(t,n,u,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,n,u,10),-1}emitNumericEntity(t,u){var n;if(this.consumed<=u)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===De.SEMI)this.consumed+=1;else if(this.decodeMode===rt.Strict)return 0;return this.emitCodePoint(fc(this.result),this.consumed),this.errors&&(t!==De.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:n}=this;let s=n[this.treeIndex],a=(s&gt.VALUE_LENGTH)>>14;for(;u<t.length;u++,this.excess++){const o=t.charCodeAt(u);if(this.treeIndex=xc(n,s,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return this.result===0||this.decodeMode===rt.Attribute&&(a===0||bc(o))?0:this.emitNotTerminatedNamedEntity();if(s=n[this.treeIndex],a=(s&gt.VALUE_LENGTH)>>14,a!==0){if(o===De.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==rt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:n}=this,s=(n[u]&gt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,n){const{decodeTree:s}=this;return this.emitCodePoint(u===1?s[t]&~gt.VALUE_LENGTH:s[t+1],n),u===3&&this.emitCodePoint(s[t+2],n),n}end(){var t;switch(this.state){case $e.NamedEntity:return this.result!==0&&(this.decodeMode!==rt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case $e.NumericDecimal:return this.emitNumericEntity(0,2);case $e.NumericHex:return this.emitNumericEntity(0,3);case $e.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case $e.EntityStart:return 0}}}function Ha(e){let t="";const u=new gc(e,n=>t+=dc(n));return function(s,a){let o=0,r=0;for(;(r=s.indexOf("&",r))>=0;){t+=s.slice(o,r),u.startEntity(a);const l=u.write(s,r+1);if(l<0){o=r+u.end();break}o=r+l,r=l===0?o+1:o}const i=t+s.slice(o);return t="",i}}function xc(e,t,u,n){const s=(t&gt.BRANCH_LENGTH)>>7,a=t&gt.JUMP_TABLE;if(s===0)return a!==0&&n===a?u:-1;if(a){const i=n-a;return i<0||i>=s?-1:e[u+i]-1}let o=u,r=o+s-1;for(;o<=r;){const i=o+r>>>1,l=e[i];if(l<n)o=i+1;else if(l>n)r=i-1;else return e[i+s]}return-1}const qa=Ha(ic);Ha(lc);function vc(e,t=rt.Legacy){return qa(e,t)}function yc(e){return qa(e,rt.Strict)}function kc(e){return Object.prototype.toString.call(e)}function jn(e){return kc(e)==="[object String]"}const _c=Object.prototype.hasOwnProperty;function wc(e,t){return _c.call(e,t)}function ju(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){if(u){if(typeof u!="object")throw new TypeError(u+"must be object");Object.keys(u).forEach(function(n){e[n]=u[n]})}}),e}function ja(e,t,u){return[].concat(e.slice(0,t),u,e.slice(t+1))}function Vn(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function hu(e){if(e>65535){e-=65536;const t=55296+(e>>10),u=56320+(e&1023);return String.fromCharCode(t,u)}return String.fromCharCode(e)}const Va=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ec=/&([a-z#][a-z0-9]{1,31});/gi,Ac=new RegExp(Va.source+"|"+Ec.source,"gi"),Cc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function $c(e,t){if(t.charCodeAt(0)===35&&Cc.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Vn(n)?hu(n):e}const u=vc(e);return u!==e?u:e}function Dc(e){return e.indexOf("\\")<0?e:e.replace(Va,"$1")}function Xt(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ac,function(t,u,n){return u||$c(t,n)})}const Tc=/[&<>"]/,Sc=/[&<>"]/g,Fc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Ic(e){return Fc[e]}function vt(e){return Tc.test(e)?e.replace(Sc,Ic):e}const Mc=/[.?*+^$[\]\\(){}|-]/g;function zc(e){return e.replace(Mc,"\\$&")}function xe(e){switch(e){case 9:case 32:return!0}return!1}function mu(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ga(e){return qn.test(e)||Ba.test(e)}function bu(e){return Ga(hu(e))}function gu(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Vu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Ns(e){return e===32||e===9||e===10||e===13}function Gu(e){let t=0;for(;t<e.length&&Ns(e.charCodeAt(t));t++);let u=e.length-1;for(;u>=t&&Ns(e.charCodeAt(u));u--);return e.slice(t,u+1)}const Lc={mdurl:ac,ucmicro:rc},Oc=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:ja,asciiTrim:Gu,assign:ju,escapeHtml:vt,escapeRE:zc,fromCodePoint:hu,has:wc,isMdAsciiPunct:gu,isPunctChar:Ga,isPunctCharCode:bu,isSpace:xe,isString:jn,isValidEntityCode:Vn,isWhiteSpace:mu,lib:Lc,normalizeReference:Vu,unescapeAll:Xt,unescapeMd:Dc},Symbol.toStringTag,{value:"Module"}));function Rc(e,t,u){let n,s,a,o;const r=e.posMax,i=e.pos;for(e.pos=t+1,n=1;e.pos<r;){if(a=e.src.charCodeAt(e.pos),a===93&&(n--,n===0)){s=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)n++;else if(u)return e.pos=i,-1}}let l=-1;return s&&(l=e.pos),e.pos=i,l}function Nc(e,t,u){let n,s=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(s)===60){for(s++;s<u;){if(n=e.charCodeAt(s),n===10||n===60)return a;if(n===62)return a.pos=s+1,a.str=Xt(e.slice(t+1,s)),a.ok=!0,a;if(n===92&&s+1<u){s+=2;continue}s++}return a}let o=0;for(;s<u&&(n=e.charCodeAt(s),!(n===32||n<32||n===127));){if(n===92&&s+1<u){if(e.charCodeAt(s+1)===32)break;s+=2;continue}if(n===40&&(o++,o>32))return a;if(n===41){if(o===0)break;o--}s++}return t===s||o!==0||(a.str=Xt(e.slice(t,s)),a.pos=s,a.ok=!0),a}function Pc(e,t,u,n){let s,a=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(a>=u)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<u;){if(s=e.charCodeAt(a),s===o.marker)return o.pos=a+1,o.str+=Xt(e.slice(t,a)),o.ok=!0,o;if(s===40&&o.marker===41)return o;s===92&&a+1<u&&a++,a++}return o.can_continue=!0,o.str+=Xt(e.slice(t,a)),o}const Bc=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Nc,parseLinkLabel:Rc,parseLinkTitle:Pc},Symbol.toStringTag,{value:"Module"})),nt={};nt.code_inline=function(e,t,u,n,s){const a=e[t];return"<code"+s.renderAttrs(a)+">"+vt(a.content)+"</code>"};nt.code_block=function(e,t,u,n,s){const a=e[t];return"<pre"+s.renderAttrs(a)+"><code>"+vt(e[t].content)+`</code></pre>
249
+ `};nt.fence=function(e,t,u,n,s){const a=e[t],o=a.info?Xt(a.info).trim():"";let r="",i="";if(o){const p=o.split(/(\s+)/g);r=p[0],i=p.slice(2).join("")}let l;if(u.highlight?l=u.highlight(a.content,r,i)||vt(a.content):l=vt(a.content),l.indexOf("<pre")===0)return l+`
250
+ `;if(o){const p=a.attrIndex("class"),c=a.attrs?a.attrs.slice():[];p<0?c.push(["class",u.langPrefix+r]):(c[p]=c[p].slice(),c[p][1]+=" "+u.langPrefix+r);const v={attrs:c};return`<pre><code${s.renderAttrs(v)}>${l}</code></pre>
251
+ `}return`<pre><code${s.renderAttrs(a)}>${l}</code></pre>
252
+ `};nt.image=function(e,t,u,n,s){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=s.renderInlineAsText(a.children,u,n),s.renderToken(e,t,u)};nt.hardbreak=function(e,t,u){return u.xhtmlOut?`<br />
253
+ `:`<br>
254
+ `};nt.softbreak=function(e,t,u){return u.breaks?u.xhtmlOut?`<br />
255
+ `:`<br>
256
+ `:`
257
+ `};nt.text=function(e,t){return vt(e[t].content)};nt.html_block=function(e,t){return e[t].content};nt.html_inline=function(e,t){return e[t].content};function eu(){this.rules=ju({},nt)}eu.prototype.renderAttrs=function(t){let u,n,s;if(!t.attrs)return"";for(s="",u=0,n=t.attrs.length;u<n;u++)s+=" "+vt(t.attrs[u][0])+'="'+vt(t.attrs[u][1])+'"';return s};eu.prototype.renderToken=function(t,u,n){const s=t[u];let a="";if(s.hidden)return"";s.block&&s.nesting!==-1&&u&&t[u-1].hidden&&(a+=`
258
+ `),a+=(s.nesting===-1?"</":"<")+s.tag,a+=this.renderAttrs(s),s.nesting===0&&n.xhtmlOut&&(a+=" /");let o=!1;if(s.block&&(o=!0,s.nesting===1&&u+1<t.length)){const r=t[u+1];(r.type==="inline"||r.hidden||r.nesting===-1&&r.tag===s.tag)&&(o=!1)}return a+=o?`>
259
+ `:">",a};eu.prototype.renderInline=function(e,t,u){let n="";const s=this.rules;for(let a=0,o=e.length;a<o;a++){const r=e[a].type;typeof s[r]<"u"?n+=s[r](e,a,t,u,this):n+=this.renderToken(e,a,t)}return n};eu.prototype.renderInlineAsText=function(e,t,u){let n="";for(let s=0,a=e.length;s<a;s++)switch(e[s].type){case"text":n+=e[s].content;break;case"image":n+=this.renderInlineAsText(e[s].children,t,u);break;case"html_inline":case"html_block":n+=e[s].content;break;case"softbreak":case"hardbreak":n+=`
260
+ `;break}return n};eu.prototype.render=function(e,t,u){let n="";const s=this.rules;for(let a=0,o=e.length;a<o;a++){const r=e[a].type;r==="inline"?n+=this.renderInline(e[a].children,t,u):typeof s[r]<"u"?n+=s[r](e,a,t,u,this):n+=this.renderToken(e,a,t,u)}return n};function Pe(){this.__rules__=[],this.__cache__=null}Pe.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Pe.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(u){u.enabled&&u.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(u){e.__cache__[u]=[],e.__rules__.forEach(function(n){n.enabled&&(u&&n.alt.indexOf(u)<0||e.__cache__[u].push(n.fn))})})};Pe.prototype.at=function(e,t,u){const n=this.__find__(e),s=u||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=s.alt||[],this.__cache__=null};Pe.prototype.before=function(e,t,u,n){const s=this.__find__(e),a=n||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s,0,{name:t,enabled:!0,fn:u,alt:a.alt||[]}),this.__cache__=null};Pe.prototype.after=function(e,t,u,n){const s=this.__find__(e),a=n||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s+1,0,{name:t,enabled:!0,fn:u,alt:a.alt||[]}),this.__cache__=null};Pe.prototype.push=function(e,t,u){const n=u||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Pe.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const u=[];return e.forEach(function(n){const s=this.__find__(n);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[s].enabled=!0,u.push(n)},this),this.__cache__=null,u};Pe.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(u){u.enabled=!1}),this.enable(e,t)};Pe.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const u=[];return e.forEach(function(n){const s=this.__find__(n);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[s].enabled=!1,u.push(n)},this),this.__cache__=null,u};Pe.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function We(e,t,u){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=u,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}We.prototype.attrIndex=function(t){if(!this.attrs)return-1;const u=this.attrs;for(let n=0,s=u.length;n<s;n++)if(u[n][0]===t)return n;return-1};We.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};We.prototype.attrSet=function(t,u){const n=this.attrIndex(t),s=[t,u];n<0?this.attrPush(s):this.attrs[n]=s};We.prototype.attrGet=function(t){const u=this.attrIndex(t);let n=null;return u>=0&&(n=this.attrs[u][1]),n};We.prototype.attrJoin=function(t,u){const n=this.attrIndex(t);n<0?this.attrPush([t,u]):this.attrs[n][1]=this.attrs[n][1]+" "+u};function Wa(e,t,u){this.src=e,this.env=u,this.tokens=[],this.inlineMode=!1,this.md=t}Wa.prototype.Token=We;const Uc=/\r\n?|\n/g,Hc=/\0/g;function qc(e){let t;t=e.src.replace(Uc,`
261
+ `),t=t.replace(Hc,"�"),e.src=t}function jc(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Vc(e){const t=e.tokens;for(let u=0,n=t.length;u<n;u++){const s=t[u];s.type==="inline"&&e.md.inline.parse(s.content,e.md,e.env,s.children)}}function Gc(e){return/^<a[>\s]/i.test(e)}function Wc(e){return/^<\/a\s*>/i.test(e)}function Kc(e){const t=e.tokens;if(e.md.options.linkify)for(let u=0,n=t.length;u<n;u++){if(t[u].type!=="inline"||!e.md.linkify.pretest(t[u].content))continue;let s=t[u].children,a=0;for(let o=s.length-1;o>=0;o--){const r=s[o];if(r.type==="link_close"){for(o--;s[o].level!==r.level&&s[o].type!=="link_open";)o--;continue}if(r.type==="html_inline"&&(Gc(r.content)&&a>0&&a--,Wc(r.content)&&a++),!(a>0)&&r.type==="text"&&e.md.linkify.test(r.content)){const i=r.content;let l=e.md.linkify.match(i);const p=[];let c=r.level,v=0;l.length>0&&l[0].index===0&&o>0&&s[o-1].type==="text_special"&&(l=l.slice(1));for(let h=0;h<l.length;h++){const x=l[h].url,A=e.md.normalizeLink(x);if(!e.md.validateLink(A))continue;let T=l[h].text;l[h].schema?l[h].schema==="mailto:"&&!/^mailto:/i.test(T)?T=e.md.normalizeLinkText("mailto:"+T).replace(/^mailto:/,""):T=e.md.normalizeLinkText(T):T=e.md.normalizeLinkText("http://"+T).replace(/^http:\/\//,"");const D=l[h].index;if(D>v){const w=new e.Token("text","",0);w.content=i.slice(v,D),w.level=c,p.push(w)}const C=new e.Token("link_open","a",1);C.attrs=[["href",A]],C.level=c++,C.markup="linkify",C.info="auto",p.push(C);const y=new e.Token("text","",0);y.content=T,y.level=c,p.push(y);const _=new e.Token("link_close","a",-1);_.level=--c,_.markup="linkify",_.info="auto",p.push(_),v=l[h].lastIndex}if(v<i.length){const h=new e.Token("text","",0);h.content=i.slice(v),h.level=c,p.push(h)}t[u].children=s=ja(s,o,p)}}}}const Ka=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Zc=/\((c|tm|r)\)/i,Xc=/\((c|tm|r)\)/ig,Yc={c:"©",r:"®",tm:"™"};function Jc(e,t){return Yc[t.toLowerCase()]}function Qc(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&(n.content=n.content.replace(Xc,Jc)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function e1(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&Ka.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function t1(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Zc.test(e.tokens[t].content)&&Qc(e.tokens[t].children),Ka.test(e.tokens[t].content)&&e1(e.tokens[t].children))}const u1=/['"]/,Ps=/['"]/g,Bs="’";function Fu(e,t,u,n){e[t]||(e[t]=[]),e[t].push({pos:u,ch:n})}function n1(e,t){let u="",n=0;t.sort((s,a)=>s.pos-a.pos);for(let s=0;s<t.length;s++){const a=t[s];u+=e.slice(n,a.pos)+a.ch,n=a.pos+1}return u+e.slice(n)}function s1(e,t){let u;const n=[],s={};for(let a=0;a<e.length;a++){const o=e[a],r=e[a].level;for(u=n.length-1;u>=0&&!(n[u].level<=r);u--);if(n.length=u+1,o.type!=="text")continue;const i=o.content;let l=0;const p=i.length;e:for(;l<p;){Ps.lastIndex=l;const c=Ps.exec(i);if(!c)break;let v=!0,h=!0;l=c.index+1;const x=c[0]==="'";let A=32;if(c.index-1>=0)A=i.charCodeAt(c.index-1);else for(u=a-1;u>=0&&!(e[u].type==="softbreak"||e[u].type==="hardbreak");u--)if(e[u].content){A=e[u].content.charCodeAt(e[u].content.length-1);break}let T=32;if(l<p)T=i.charCodeAt(l);else for(u=a+1;u<e.length&&!(e[u].type==="softbreak"||e[u].type==="hardbreak");u++)if(e[u].content){T=e[u].content.charCodeAt(0);break}const D=gu(A)||bu(A),C=gu(T)||bu(T),y=mu(A),_=mu(T);if(_?v=!1:C&&(y||D||(v=!1)),y?h=!1:D&&(_||C||(h=!1)),T===34&&c[0]==='"'&&A>=48&&A<=57&&(h=v=!1),v&&h&&(v=D,h=C),!v&&!h){x&&Fu(s,a,c.index,Bs);continue}if(h)for(u=n.length-1;u>=0;u--){let w=n[u];if(n[u].level<r)break;if(w.single===x&&n[u].level===r){w=n[u];let I,N;x?(I=t.md.options.quotes[2],N=t.md.options.quotes[3]):(I=t.md.options.quotes[0],N=t.md.options.quotes[1]),Fu(s,a,c.index,N),Fu(s,w.token,w.pos,I),n.length=u;continue e}}v?n.push({token:a,pos:c.index,single:x,level:r}):h&&x&&Fu(s,a,c.index,Bs)}}Object.keys(s).forEach(function(a){e[a].content=n1(e[a].content,s[a])})}function a1(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!u1.test(e.tokens[t].content)||s1(e.tokens[t].children,e)}function o1(e){let t,u;const n=e.tokens,s=n.length;for(let a=0;a<s;a++){if(n[a].type!=="inline")continue;const o=n[a].children,r=o.length;for(t=0;t<r;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=u=0;t<r;t++)o[t].type==="text"&&t+1<r&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==u&&(o[u]=o[t]),u++);t!==u&&(o.length=u)}}const bn=[["normalize",qc],["block",jc],["inline",Vc],["linkify",Kc],["replacements",t1],["smartquotes",a1],["text_join",o1]];function Gn(){this.ruler=new Pe;for(let e=0;e<bn.length;e++)this.ruler.push(bn[e][0],bn[e][1])}Gn.prototype.process=function(e){const t=this.ruler.getRules("");for(let u=0,n=t.length;u<n;u++)t[u](e)};Gn.prototype.State=Wa;function st(e,t,u,n){this.src=e,this.md=t,this.env=u,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let a=0,o=0,r=0,i=0,l=s.length,p=!1;o<l;o++){const c=s.charCodeAt(o);if(!p)if(xe(c)){r++,c===9?i+=4-i%4:i++;continue}else p=!0;(c===10||o===l-1)&&(c!==10&&o++,this.bMarks.push(a),this.eMarks.push(o),this.tShift.push(r),this.sCount.push(i),this.bsCount.push(0),p=!1,r=0,i=0,a=o+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}st.prototype.push=function(e,t,u){const n=new We(e,t,u);return n.block=!0,u<0&&this.level--,n.level=this.level,u>0&&this.level++,this.tokens.push(n),n};st.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};st.prototype.skipEmptyLines=function(t){for(let u=this.lineMax;t<u&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};st.prototype.skipSpaces=function(t){for(let u=this.src.length;t<u;t++){const n=this.src.charCodeAt(t);if(!xe(n))break}return t};st.prototype.skipSpacesBack=function(t,u){if(t<=u)return t;for(;t>u;)if(!xe(this.src.charCodeAt(--t)))return t+1;return t};st.prototype.skipChars=function(t,u){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===u;t++);return t};st.prototype.skipCharsBack=function(t,u,n){if(t<=n)return t;for(;t>n;)if(u!==this.src.charCodeAt(--t))return t+1;return t};st.prototype.getLines=function(t,u,n,s){if(t>=u)return"";const a=new Array(u-t);for(let o=0,r=t;r<u;r++,o++){let i=0;const l=this.bMarks[r];let p=l,c;for(r+1<u||s?c=this.eMarks[r]+1:c=this.eMarks[r];p<c&&i<n;){const v=this.src.charCodeAt(p);if(xe(v))v===9?i+=4-(i+this.bsCount[r])%4:i++;else if(p-l<this.tShift[r])i++;else break;p++}i>n?a[o]=new Array(i-n+1).join(" ")+this.src.slice(p,c):a[o]=this.src.slice(p,c)}return a.join("")};st.prototype.Token=We;const r1=65536;function gn(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(u,n)}function Us(e){const t=[],u=e.length;let n=0,s=e.charCodeAt(n),a=!1,o=0,r="";for(;n<u;)s===124&&(a?(r+=e.substring(o,n-1),o=n):(t.push(r+e.substring(o,n)),r="",o=n+1)),a=s===92,n++,s=e.charCodeAt(n);return t.push(r+e.substring(o)),t}function i1(e,t,u,n){if(t+2>u)return!1;let s=t+1;if(e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)return!1;let a=e.bMarks[s]+e.tShift[s];if(a>=e.eMarks[s])return!1;const o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[s])return!1;const r=e.src.charCodeAt(a++);if(r!==124&&r!==45&&r!==58&&!xe(r)||o===45&&xe(r))return!1;for(;a<e.eMarks[s];){const _=e.src.charCodeAt(a);if(_!==124&&_!==45&&_!==58&&!xe(_))return!1;a++}let i=gn(e,t+1),l=i.split("|");const p=[];for(let _=0;_<l.length;_++){const w=l[_].trim();if(!w){if(_===0||_===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?p.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?p.push("left"):p.push("")}if(i=gn(e,t).trim(),i.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Us(i),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const c=l.length;if(c===0||c!==p.length)return!1;if(n)return!0;const v=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),x=e.push("table_open","table",1),A=[t,0];x.map=A;const T=e.push("thead_open","thead",1);T.map=[t,t+1];const D=e.push("tr_open","tr",1);D.map=[t,t+1];for(let _=0;_<l.length;_++){const w=e.push("th_open","th",1);p[_]&&(w.attrs=[["style","text-align:"+p[_]]]);const I=e.push("inline","",0);I.content=l[_].trim(),I.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let C,y=0;for(s=t+2;s<u&&!(e.sCount[s]<e.blkIndent);s++){let _=!1;for(let I=0,N=h.length;I<N;I++)if(h[I](e,s,u,!0)){_=!0;break}if(_||(i=gn(e,s).trim(),!i)||e.sCount[s]-e.blkIndent>=4||(l=Us(i),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),y+=c-l.length,y>r1))break;if(s===t+2){const I=e.push("tbody_open","tbody",1);I.map=C=[t+2,0]}const w=e.push("tr_open","tr",1);w.map=[s,s+1];for(let I=0;I<c;I++){const N=e.push("td_open","td",1);p[I]&&(N.attrs=[["style","text-align:"+p[I]]]);const ue=e.push("inline","",0);ue.content=l[I]?l[I].trim():"",ue.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return C&&(e.push("tbody_close","tbody",-1),C[1]=s),e.push("table_close","table",-1),A[1]=s,e.parentType=v,e.line=s,!0}function l1(e,t,u){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,s=n;for(;n<u;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,s=n;continue}break}e.line=s;const a=e.push("code_block","code",0);return a.content=e.getLines(t,s,4+e.blkIndent,!1)+`
262
+ `,a.map=[t,e.line],!0}function c1(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||s+3>a)return!1;const o=e.src.charCodeAt(s);if(o!==126&&o!==96)return!1;let r=s;s=e.skipChars(s,o);let i=s-r;if(i<3)return!1;const l=e.src.slice(r,s),p=e.src.slice(s,a);if(o===96&&p.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let c=t,v=!1;for(;c++,!(c>=u||(s=r=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],s<a&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(s)===o&&!(e.sCount[c]-e.blkIndent>=4)&&(s=e.skipChars(s,o),!(s-r<i)&&(s=e.skipSpaces(s),!(s<a)))){v=!0;break}i=e.sCount[t],e.line=c+(v?1:0);const h=e.push("fence","code",0);return h.info=p,h.content=e.getLines(t+1,c,i,!0),h.markup=l,h.map=[t,e.line],!0}function d1(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(s)!==62)return!1;if(n)return!0;const r=[],i=[],l=[],p=[],c=e.md.block.ruler.getRules("blockquote"),v=e.parentType;e.parentType="blockquote";let h=!1,x;for(x=t;x<u;x++){const y=e.sCount[x]<e.blkIndent;if(s=e.bMarks[x]+e.tShift[x],a=e.eMarks[x],s>=a)break;if(e.src.charCodeAt(s++)===62&&!y){let w=e.sCount[x]+1,I,N;e.src.charCodeAt(s)===32?(s++,w++,N=!1,I=!0):e.src.charCodeAt(s)===9?(I=!0,(e.bsCount[x]+w)%4===3?(s++,w++,N=!1):N=!0):I=!1;let ue=w;for(r.push(e.bMarks[x]),e.bMarks[x]=s;s<a;){const ee=e.src.charCodeAt(s);if(xe(ee))ee===9?ue+=4-(ue+e.bsCount[x]+(N?1:0))%4:ue++;else break;s++}h=s>=a,i.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(I?1:0),l.push(e.sCount[x]),e.sCount[x]=ue-w,p.push(e.tShift[x]),e.tShift[x]=s-e.bMarks[x];continue}if(h)break;let _=!1;for(let w=0,I=c.length;w<I;w++)if(c[w](e,x,u,!0)){_=!0;break}if(_){e.lineMax=x,e.blkIndent!==0&&(r.push(e.bMarks[x]),i.push(e.bsCount[x]),p.push(e.tShift[x]),l.push(e.sCount[x]),e.sCount[x]-=e.blkIndent);break}r.push(e.bMarks[x]),i.push(e.bsCount[x]),p.push(e.tShift[x]),l.push(e.sCount[x]),e.sCount[x]=-1}const A=e.blkIndent;e.blkIndent=0;const T=e.push("blockquote_open","blockquote",1);T.markup=">";const D=[t,0];T.map=D,e.md.block.tokenize(e,t,x);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=o,e.parentType=v,D[1]=e.line;for(let y=0;y<p.length;y++)e.bMarks[y+t]=r[y],e.tShift[y+t]=p[y],e.sCount[y+t]=l[y],e.bsCount[y+t]=i[y];return e.blkIndent=A,!0}function f1(e,t,u,n){const s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let r=1;for(;a<s;){const l=e.src.charCodeAt(a++);if(l!==o&&!xe(l))return!1;l===o&&r++}if(r<3)return!1;if(n)return!0;e.line=t+1;const i=e.push("hr","hr",0);return i.map=[t,e.line],i.markup=Array(r+1).join(String.fromCharCode(o)),!0}function Hs(e,t){const u=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(n++);if(s!==42&&s!==45&&s!==43)return-1;if(n<u){const a=e.src.charCodeAt(n);if(!xe(a))return-1}return n}function qs(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let s=u;if(s+1>=n)return-1;let a=e.src.charCodeAt(s++);if(a<48||a>57)return-1;for(;;){if(s>=n)return-1;if(a=e.src.charCodeAt(s++),a>=48&&a<=57){if(s-u>=10)return-1;continue}if(a===41||a===46)break;return-1}return s<n&&(a=e.src.charCodeAt(s),!xe(a))?-1:s}function p1(e,t){const u=e.level+2;for(let n=t+2,s=e.tokens.length-2;n<s;n++)e.tokens[n].level===u&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function h1(e,t,u,n){let s,a,o,r,i=t,l=!0;if(e.sCount[i]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]<e.blkIndent)return!1;let p=!1;n&&e.parentType==="paragraph"&&e.sCount[i]>=e.blkIndent&&(p=!0);let c,v,h;if((h=qs(e,i))>=0){if(c=!0,o=e.bMarks[i]+e.tShift[i],v=Number(e.src.slice(o,h-1)),p&&v!==1)return!1}else if((h=Hs(e,i))>=0)c=!1;else return!1;if(p&&e.skipSpaces(h)>=e.eMarks[i])return!1;if(n)return!0;const x=e.src.charCodeAt(h-1),A=e.tokens.length;c?(r=e.push("ordered_list_open","ol",1),v!==1&&(r.attrs=[["start",v]])):r=e.push("bullet_list_open","ul",1);const T=[i,0];r.map=T,r.markup=String.fromCharCode(x);let D=!1;const C=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";i<u;){a=h,s=e.eMarks[i];const _=e.sCount[i]+h-(e.bMarks[i]+e.tShift[i]);let w=_;for(;a<s;){const $=e.src.charCodeAt(a);if($===9)w+=4-(w+e.bsCount[i])%4;else if($===32)w++;else break;a++}const I=a;let N;I>=s?N=1:N=w-_,N>4&&(N=1);const ue=_+N;r=e.push("list_item_open","li",1),r.markup=String.fromCharCode(x);const ee=[i,0];r.map=ee,c&&(r.info=e.src.slice(o,h-1));const W=e.tight,z=e.tShift[i],U=e.sCount[i],q=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=ue,e.tight=!0,e.tShift[i]=I-e.bMarks[i],e.sCount[i]=w,I>=s&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,u):e.md.block.tokenize(e,i,u,!0),(!e.tight||D)&&(l=!1),D=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=q,e.tShift[i]=z,e.sCount[i]=U,e.tight=W,r=e.push("list_item_close","li",-1),r.markup=String.fromCharCode(x),i=e.line,ee[1]=i,i>=u||e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)break;let R=!1;for(let $=0,E=C.length;$<E;$++)if(C[$](e,i,u,!0)){R=!0;break}if(R)break;if(c){if(h=qs(e,i),h<0)break;o=e.bMarks[i]+e.tShift[i]}else if(h=Hs(e,i),h<0)break;if(x!==e.src.charCodeAt(h-1))break}return c?r=e.push("ordered_list_close","ol",-1):r=e.push("bullet_list_close","ul",-1),r.markup=String.fromCharCode(x),T[1]=i,e.line=i,e.parentType=y,l&&p1(e,A),!0}function m1(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(s)!==91)return!1;function r(C){const y=e.lineMax;if(C>=y||e.isEmpty(C))return null;let _=!1;if(e.sCount[C]-e.blkIndent>3&&(_=!0),e.sCount[C]<0&&(_=!0),!_){const N=e.md.block.ruler.getRules("reference"),ue=e.parentType;e.parentType="reference";let ee=!1;for(let W=0,z=N.length;W<z;W++)if(N[W](e,C,y,!0)){ee=!0;break}if(e.parentType=ue,ee)return null}const w=e.bMarks[C]+e.tShift[C],I=e.eMarks[C];return e.src.slice(w,I+1)}let i=e.src.slice(s,a+1);a=i.length;let l=-1;for(s=1;s<a;s++){const C=i.charCodeAt(s);if(C===91)return!1;if(C===93){l=s;break}else if(C===10){const y=r(o);y!==null&&(i+=y,a=i.length,o++)}else if(C===92&&(s++,s<a&&i.charCodeAt(s)===10)){const y=r(o);y!==null&&(i+=y,a=i.length,o++)}}if(l<0||i.charCodeAt(l+1)!==58)return!1;for(s=l+2;s<a;s++){const C=i.charCodeAt(s);if(C===10){const y=r(o);y!==null&&(i+=y,a=i.length,o++)}else if(!xe(C))break}const p=e.md.helpers.parseLinkDestination(i,s,a);if(!p.ok)return!1;const c=e.md.normalizeLink(p.str);if(!e.md.validateLink(c))return!1;s=p.pos;const v=s,h=o,x=s;for(;s<a;s++){const C=i.charCodeAt(s);if(C===10){const y=r(o);y!==null&&(i+=y,a=i.length,o++)}else if(!xe(C))break}let A=e.md.helpers.parseLinkTitle(i,s,a);for(;A.can_continue;){const C=r(o);if(C===null)break;i+=C,s=a,a=i.length,o++,A=e.md.helpers.parseLinkTitle(i,s,a,A)}let T;for(s<a&&x!==s&&A.ok?(T=A.str,s=A.pos):(T="",s=v,o=h);s<a;){const C=i.charCodeAt(s);if(!xe(C))break;s++}if(s<a&&i.charCodeAt(s)!==10&&T)for(T="",s=v,o=h;s<a;){const C=i.charCodeAt(s);if(!xe(C))break;s++}if(s<a&&i.charCodeAt(s)!==10)return!1;const D=Vu(i.slice(1,l));return D?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[D]>"u"&&(e.env.references[D]={title:T,href:c}),e.line=o),!0):!1}const b1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],g1="[a-zA-Z_:][a-zA-Z0-9:._-]*",x1="[^\"'=<>`\\x00-\\x20]+",v1="'[^']*'",y1='"[^"]*"',k1="(?:"+x1+"|"+v1+"|"+y1+")",_1="(?:\\s+"+g1+"(?:\\s*=\\s*"+k1+")?)",Za="<[A-Za-z][A-Za-z0-9\\-]*"+_1+"*\\s*\\/?>",Xa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",w1="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",E1="<[?][\\s\\S]*?[?]>",A1="<![A-Za-z][^>]*>",C1="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",$1=new RegExp("^(?:"+Za+"|"+Xa+"|"+w1+"|"+E1+"|"+A1+"|"+C1+")"),D1=new RegExp("^(?:"+Za+"|"+Xa+")"),$t=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+b1.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(D1.source+"\\s*$"),/^$/,!1]];function T1(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(s)!==60)return!1;let o=e.src.slice(s,a),r=0;for(;r<$t.length&&!$t[r][0].test(o);r++);if(r===$t.length)return!1;if(n)return $t[r][2];let i=t+1;const l=$t[r][1].test("");if(!$t[r][1].test(o)){for(;i<u&&!(e.sCount[i]<e.blkIndent&&(l||!e.isEmpty(i)));i++)if(s=e.bMarks[i]+e.tShift[i],a=e.eMarks[i],o=e.src.slice(s,a),$t[r][1].test(o)){o.length!==0&&i++;break}}e.line=i;const p=e.push("html_block","",0);return p.map=[t,i],p.content=e.getLines(t,i,e.blkIndent,!0),!0}function S1(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(s);if(o!==35||s>=a)return!1;let r=1;for(o=e.src.charCodeAt(++s);o===35&&s<a&&r<=6;)r++,o=e.src.charCodeAt(++s);if(r>6||s<a&&!xe(o))return!1;if(n)return!0;a=e.skipSpacesBack(a,s);const i=e.skipCharsBack(a,35,s);i>s&&xe(e.src.charCodeAt(i-1))&&(a=i),e.line=t+1;const l=e.push("heading_open","h"+String(r),1);l.markup="########".slice(0,r),l.map=[t,e.line];const p=e.push("inline","",0);p.content=Gu(e.src.slice(s,a)),p.map=[t,e.line],p.children=[];const c=e.push("heading_close","h"+String(r),-1);return c.markup="########".slice(0,r),!0}function F1(e,t,u){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const s=e.parentType;e.parentType="paragraph";let a=0,o,r=t+1;for(;r<u&&!e.isEmpty(r);r++){if(e.sCount[r]-e.blkIndent>3)continue;if(e.sCount[r]>=e.blkIndent){let h=e.bMarks[r]+e.tShift[r];const x=e.eMarks[r];if(h<x&&(o=e.src.charCodeAt(h),(o===45||o===61)&&(h=e.skipChars(h,o),h=e.skipSpaces(h),h>=x))){a=o===61?1:2;break}}if(e.sCount[r]<0)continue;let v=!1;for(let h=0,x=n.length;h<x;h++)if(n[h](e,r,u,!0)){v=!0;break}if(v)break}if(!a)return e.parentType=s,!1;const i=Gu(e.getLines(t,r,e.blkIndent,!1));e.line=r+1;const l=e.push("heading_open","h"+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];const p=e.push("inline","",0);p.content=i,p.map=[t,e.line-1],p.children=[];const c=e.push("heading_close","h"+String(a),-1);return c.markup=String.fromCharCode(o),e.parentType=s,!0}function I1(e,t,u){const n=e.md.block.ruler.getRules("paragraph"),s=e.parentType;let a=t+1;for(e.parentType="paragraph";a<u&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let l=!1;for(let p=0,c=n.length;p<c;p++)if(n[p](e,a,u,!0)){l=!0;break}if(l)break}const o=Gu(e.getLines(t,a,e.blkIndent,!1));e.line=a;const r=e.push("paragraph_open","p",1);r.map=[t,e.line];const i=e.push("inline","",0);return i.content=o,i.map=[t,e.line],i.children=[],e.push("paragraph_close","p",-1),e.parentType=s,!0}const Iu=[["table",i1,["paragraph","reference"]],["code",l1],["fence",c1,["paragraph","reference","blockquote","list"]],["blockquote",d1,["paragraph","reference","blockquote","list"]],["hr",f1,["paragraph","reference","blockquote","list"]],["list",h1,["paragraph","reference","blockquote"]],["reference",m1],["html_block",T1,["paragraph","reference","blockquote"]],["heading",S1,["paragraph","reference","blockquote"]],["lheading",F1],["paragraph",I1]];function Wu(){this.ruler=new Pe;for(let e=0;e<Iu.length;e++)this.ruler.push(Iu[e][0],Iu[e][1],{alt:(Iu[e][2]||[]).slice()})}Wu.prototype.tokenize=function(e,t,u){const n=this.ruler.getRules(""),s=n.length,a=e.md.options.maxNesting;let o=t,r=!1;for(;o<u&&(e.line=o=e.skipEmptyLines(o),!(o>=u||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=u;break}const i=e.line;let l=!1;for(let p=0;p<s;p++)if(l=n[p](e,o,u,!1),l){if(i>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!r,e.isEmpty(e.line-1)&&(r=!0),o=e.line,o<u&&e.isEmpty(o)&&(r=!0,o++,e.line=o)}};Wu.prototype.parse=function(e,t,u,n){if(!e)return;const s=new this.State(e,t,u,n);this.tokenize(s,s.line,s.lineMax)};Wu.prototype.State=st;function _u(e,t,u,n){this.src=e,this.env=u,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}_u.prototype.pushPending=function(){const e=new We("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};_u.prototype.push=function(e,t,u){this.pending&&this.pushPending();const n=new We(e,t,u);let s=null;return u<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,u>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(s),n};_u.prototype.scanDelims=function(e,t){const u=this.posMax,n=this.src.charCodeAt(e);let s;if(e===0)s=32;else if(e===1)s=this.src.charCodeAt(0),(s&63488)===55296&&(s=65533);else if(s=this.src.charCodeAt(e-1),(s&64512)===56320){const T=this.src.charCodeAt(e-2);s=(T&64512)===55296?65536+(T-55296<<10)+(s-56320):65533}else(s&64512)===55296&&(s=65533);let a=e;for(;a<u&&this.src.charCodeAt(a)===n;)a++;const o=a-e;let r=a<u?this.src.charCodeAt(a):32;if((r&64512)===55296){const T=this.src.charCodeAt(a+1);r=(T&64512)===56320?65536+(r-55296<<10)+(T-56320):65533}else(r&64512)===56320&&(r=65533);const i=gu(s)||bu(s),l=gu(r)||bu(r),p=mu(s),c=mu(r),v=!c&&(!l||p||i),h=!p&&(!i||c||l);return{can_open:v&&(t||!h||i),can_close:h&&(t||!v||l),length:o}};_u.prototype.Token=We;function M1(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function z1(e,t){let u=e.pos;for(;u<e.posMax&&!M1(e.src.charCodeAt(u));)u++;return u===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,u)),e.pos=u,!0)}const L1=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function O1(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const u=e.pos,n=e.posMax;if(u+3>n||e.src.charCodeAt(u)!==58||e.src.charCodeAt(u+1)!==47||e.src.charCodeAt(u+2)!==47)return!1;const s=e.pending.match(L1);if(!s)return!1;const a=s[1],o=e.md.linkify.matchAtStart(e.src.slice(u-a.length));if(!o)return!1;let r=o.url;if(r.length<=a.length)return!1;let i=r.length;for(;i>0&&r.charCodeAt(i-1)===42;)i--;i!==r.length&&(r=r.slice(0,i));const l=e.md.normalizeLink(r);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const p=e.push("link_open","a",1);p.attrs=[["href",l]],p.markup="linkify",p.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(r);const v=e.push("link_close","a",-1);v.markup="linkify",v.info="auto"}return e.pos+=r.length-a.length,!0}function R1(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==10)return!1;const n=e.pending.length-1,s=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let a=n-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(u++;u<s&&xe(e.src.charCodeAt(u));)u++;return e.pos=u,!0}const Wn=[];for(let e=0;e<256;e++)Wn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Wn[e.charCodeAt(0)]=1});function N1(e,t){let u=e.pos;const n=e.posMax;if(e.src.charCodeAt(u)!==92||(u++,u>=n))return!1;let s=e.src.charCodeAt(u);if(s===10){for(t||e.push("hardbreak","br",0),u++;u<n&&(s=e.src.charCodeAt(u),!!xe(s));)u++;return e.pos=u,!0}let a=e.src[u];if(s>=55296&&s<=56319&&u+1<n){const r=e.src.charCodeAt(u+1);r>=56320&&r<=57343&&(a+=e.src[u+1],u++)}const o="\\"+a;if(!t){const r=e.push("text_special","",0);s<256&&Wn[s]!==0?r.content=a:r.content=o,r.markup=o,r.info="escape"}return e.pos=u+1,!0}function P1(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==96)return!1;const s=u;u++;const a=e.posMax;for(;u<a&&e.src.charCodeAt(u)===96;)u++;const o=e.src.slice(s,u),r=o.length;if(e.backticksScanned&&(e.backticks[r]||0)<=s)return t||(e.pending+=o),e.pos+=r,!0;let i=u,l;for(;(l=e.src.indexOf("`",i))!==-1;){for(i=l+1;i<a&&e.src.charCodeAt(i)===96;)i++;const p=i-l;if(p===r){if(!t){const c=e.push("code_inline","code",0);c.markup=o,c.content=e.src.slice(u,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=i,!0}e.backticks[p]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=r,!0}function B1(e,t){const u=e.pos,n=e.src.charCodeAt(u);if(t||n!==126)return!1;const s=e.scanDelims(e.pos,!0);let a=s.length;const o=String.fromCharCode(n);if(a<2)return!1;let r;a%2&&(r=e.push("text","",0),r.content=o,a--);for(let i=0;i<a;i+=2)r=e.push("text","",0),r.content=o+o,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0}function js(e,t){let u;const n=[],s=t.length;for(let a=0;a<s;a++){const o=t[a];if(o.marker!==126||o.end===-1)continue;const r=t[o.end];u=e.tokens[o.token],u.type="s_open",u.tag="s",u.nesting=1,u.markup="~~",u.content="",u=e.tokens[r.token],u.type="s_close",u.tag="s",u.nesting=-1,u.markup="~~",u.content="",e.tokens[r.token-1].type==="text"&&e.tokens[r.token-1].content==="~"&&n.push(r.token-1)}for(;n.length;){const a=n.pop();let o=a+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,a!==o&&(u=e.tokens[o],e.tokens[o]=e.tokens[a],e.tokens[a]=u)}}function U1(e){const t=e.tokens_meta,u=e.tokens_meta.length;js(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&js(e,t[n].delimiters)}const Ya={tokenize:B1,postProcess:U1};function H1(e,t){const u=e.pos,n=e.src.charCodeAt(u);if(t||n!==95&&n!==42)return!1;const s=e.scanDelims(e.pos,n===42);for(let a=0;a<s.length;a++){const o=e.push("text","",0);o.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close})}return e.pos+=s.length,!0}function Vs(e,t){const u=t.length;for(let n=u-1;n>=0;n--){const s=t[n];if(s.marker!==95&&s.marker!==42||s.end===-1)continue;const a=t[s.end],o=n>0&&t[n-1].end===s.end+1&&t[n-1].marker===s.marker&&t[n-1].token===s.token-1&&t[s.end+1].token===a.token+1,r=String.fromCharCode(s.marker),i=e.tokens[s.token];i.type=o?"strong_open":"em_open",i.tag=o?"strong":"em",i.nesting=1,i.markup=o?r+r:r,i.content="";const l=e.tokens[a.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?r+r:r,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[s.end+1].token].content="",n--)}}function q1(e){const t=e.tokens_meta,u=e.tokens_meta.length;Vs(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Vs(e,t[n].delimiters)}const Ja={tokenize:H1,postProcess:q1};function j1(e,t){let u,n,s,a,o="",r="",i=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const p=e.pos,c=e.posMax,v=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let x=h+1;if(x<c&&e.src.charCodeAt(x)===40){for(l=!1,x++;x<c&&(u=e.src.charCodeAt(x),!(!xe(u)&&u!==10));x++);if(x>=c)return!1;if(i=x,s=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),s.ok){for(o=e.md.normalizeLink(s.str),e.md.validateLink(o)?x=s.pos:o="",i=x;x<c&&(u=e.src.charCodeAt(x),!(!xe(u)&&u!==10));x++);if(s=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<c&&i!==x&&s.ok)for(r=s.str,x=s.pos;x<c&&(u=e.src.charCodeAt(x),!(!xe(u)&&u!==10));x++);}(x>=c||e.src.charCodeAt(x)!==41)&&(l=!0),x++}if(l){if(typeof e.env.references>"u")return!1;if(x<c&&e.src.charCodeAt(x)===91?(i=x+1,x=e.md.helpers.parseLinkLabel(e,x),x>=0?n=e.src.slice(i,x++):x=h+1):x=h+1,n||(n=e.src.slice(v,h)),a=e.env.references[Vu(n)],!a)return e.pos=p,!1;o=a.href,r=a.title}if(!t){e.pos=v,e.posMax=h;const A=e.push("link_open","a",1),T=[["href",o]];A.attrs=T,r&&T.push(["title",r]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=x,e.posMax=c,!0}function V1(e,t){let u,n,s,a,o,r,i,l,p="";const c=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(a=x+1,a<v&&e.src.charCodeAt(a)===40){for(a++;a<v&&(u=e.src.charCodeAt(a),!(!xe(u)&&u!==10));a++);if(a>=v)return!1;for(l=a,r=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),r.ok&&(p=e.md.normalizeLink(r.str),e.md.validateLink(p)?a=r.pos:p=""),l=a;a<v&&(u=e.src.charCodeAt(a),!(!xe(u)&&u!==10));a++);if(r=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<v&&l!==a&&r.ok)for(i=r.str,a=r.pos;a<v&&(u=e.src.charCodeAt(a),!(!xe(u)&&u!==10));a++);else i="";if(a>=v||e.src.charCodeAt(a)!==41)return e.pos=c,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<v&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(l,a++):a=x+1):a=x+1,s||(s=e.src.slice(h,x)),o=e.env.references[Vu(s)],!o)return e.pos=c,!1;p=o.href,i=o.title}if(!t){n=e.src.slice(h,x);const A=[];e.md.inline.parse(n,e.md,e.env,A);const T=e.push("image","img",0),D=[["src",p],["alt",""]];T.attrs=D,T.children=A,T.content=n,i&&D.push(["title",i])}return e.pos=a,e.posMax=v,!0}const G1=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,W1=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function K1(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;const n=e.pos,s=e.posMax;for(;;){if(++u>=s)return!1;const o=e.src.charCodeAt(u);if(o===60)return!1;if(o===62)break}const a=e.src.slice(n+1,u);if(W1.test(a)){const o=e.md.normalizeLink(a);if(!e.md.validateLink(o))return!1;if(!t){const r=e.push("link_open","a",1);r.attrs=[["href",o]],r.markup="autolink",r.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}if(G1.test(a)){const o=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(o))return!1;if(!t){const r=e.push("link_open","a",1);r.attrs=[["href",o]],r.markup="autolink",r.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}return!1}function Z1(e){return/^<a[>\s]/i.test(e)}function X1(e){return/^<\/a\s*>/i.test(e)}function Y1(e){const t=e|32;return t>=97&&t<=122}function J1(e,t){if(!e.md.options.html)return!1;const u=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=u)return!1;const s=e.src.charCodeAt(n+1);if(s!==33&&s!==63&&s!==47&&!Y1(s))return!1;const a=e.src.slice(n).match($1);if(!a)return!1;if(!t){const o=e.push("html_inline","",0);o.content=a[0],Z1(o.content)&&e.linkLevel++,X1(o.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const Q1=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ed=/^&([a-z][a-z0-9]{1,31});/i;function td(e,t){const u=e.pos,n=e.posMax;if(e.src.charCodeAt(u)!==38||u+1>=n)return!1;if(e.src.charCodeAt(u+1)===35){const a=e.src.slice(u).match(Q1);if(a){if(!t){const o=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),r=e.push("text_special","",0);r.content=Vn(o)?hu(o):hu(65533),r.markup=a[0],r.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(u).match(ed);if(a){const o=yc(a[0]);if(o!==a[0]){if(!t){const r=e.push("text_special","",0);r.content=o,r.markup=a[0],r.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function Gs(e){const t={},u=e.length;if(!u)return;let n=0,s=-2;const a=[];for(let o=0;o<u;o++){const r=e[o];if(a.push(0),(e[n].marker!==r.marker||s!==r.token-1)&&(n=o),s=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);const i=t[r.marker][(r.open?3:0)+r.length%3];let l=n-a[n]-1,p=l;for(;l>i;l-=a[l]+1){const c=e[l];if(c.marker===r.marker&&c.open&&c.end<0){let v=!1;if((c.close||r.open)&&(c.length+r.length)%3===0&&(c.length%3!==0||r.length%3!==0)&&(v=!0),!v){const h=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+h,a[l]=h,r.open=!1,c.end=o,c.close=!1,p=-1,s=-2;break}}}p!==-1&&(t[r.marker][(r.open?3:0)+(r.length||0)%3]=p)}}function ud(e){const t=e.tokens_meta,u=e.tokens_meta.length;Gs(e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Gs(t[n].delimiters)}function nd(e){let t,u,n=0;const s=e.tokens,a=e.tokens.length;for(t=u=0;t<a;t++)s[t].nesting<0&&n--,s[t].level=n,s[t].nesting>0&&n++,s[t].type==="text"&&t+1<a&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==u&&(s[u]=s[t]),u++);t!==u&&(s.length=u)}const xn=[["text",z1],["linkify",O1],["newline",R1],["escape",N1],["backticks",P1],["strikethrough",Ya.tokenize],["emphasis",Ja.tokenize],["link",j1],["image",V1],["autolink",K1],["html_inline",J1],["entity",td]],vn=[["balance_pairs",ud],["strikethrough",Ya.postProcess],["emphasis",Ja.postProcess],["fragments_join",nd]];function wu(){this.ruler=new Pe;for(let e=0;e<xn.length;e++)this.ruler.push(xn[e][0],xn[e][1]);this.ruler2=new Pe;for(let e=0;e<vn.length;e++)this.ruler2.push(vn[e][0],vn[e][1])}wu.prototype.skipToken=function(e){const t=e.pos,u=this.ruler.getRules(""),n=u.length,s=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let o=!1;if(e.level<s){for(let r=0;r<n;r++)if(e.level++,o=u[r](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos};wu.prototype.tokenize=function(e){const t=this.ruler.getRules(""),u=t.length,n=e.posMax,s=e.md.options.maxNesting;for(;e.pos<n;){const a=e.pos;let o=!1;if(e.level<s){for(let r=0;r<u;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};wu.prototype.parse=function(e,t,u,n){const s=new this.State(e,t,u,n);this.tokenize(s);const a=this.ruler2.getRules(""),o=a.length;for(let r=0;r<o;r++)a[r](s)};wu.prototype.State=_u;function sd(e){const t={};e=e||{},t.src_Any=Na.source,t.src_Cc=Pa.source,t.src_Z=Ua.source,t.src_P=qn.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const u="[><|]";return t.src_pseudo_letter="(?:(?!"+u+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+u+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+u+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+u+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function zn(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){u&&Object.keys(u).forEach(function(n){e[n]=u[n]})}),e}function Ku(e){return Object.prototype.toString.call(e)}function ad(e){return Ku(e)==="[object String]"}function od(e){return Ku(e)==="[object Object]"}function rd(e){return Ku(e)==="[object RegExp]"}function Ws(e){return Ku(e)==="[object Function]"}function id(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Qa={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ld(e){return Object.keys(e||{}).reduce(function(t,u){return t||Qa.hasOwnProperty(u)},!1)}const cd={"http:":{validate:function(e,t,u){const n=e.slice(t);return u.re.http||(u.re.http=new RegExp("^\\/\\/"+u.re.src_auth+u.re.src_host_port_strict+u.re.src_path,"i")),u.re.http.test(n)?n.match(u.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,u){const n=e.slice(t);return u.re.no_http||(u.re.no_http=new RegExp("^"+u.re.src_auth+"(?:localhost|(?:(?:"+u.re.src_domain+")\\.)+"+u.re.src_domain_root+")"+u.re.src_port+u.re.src_host_terminator+u.re.src_path,"i")),u.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(u.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,u){const n=e.slice(t);return u.re.mailto||(u.re.mailto=new RegExp("^"+u.re.src_email_name+"@"+u.re.src_host_strict,"i")),u.re.mailto.test(n)?n.match(u.re.mailto)[0].length:0}}},dd="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",fd="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function pd(e){return function(t,u){const n=t.slice(u);return e.test(n)?n.match(e)[0].length:0}}function Ks(){return function(e,t){t.normalize(e)}}function Pu(e){const t=e.re=sd(e.__opts__),u=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||u.push(dd),u.push(t.src_xn),t.src_tlds=u.join("|");function n(r){return r.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const s=[];e.__compiled__={};function a(r,i){throw new Error('(LinkifyIt) Invalid schema "'+r+'": '+i)}Object.keys(e.__schemas__).forEach(function(r){const i=e.__schemas__[r];if(i===null)return;const l={validate:null,link:null};if(e.__compiled__[r]=l,od(i)){rd(i.validate)?l.validate=pd(i.validate):Ws(i.validate)?l.validate=i.validate:a(r,i),Ws(i.normalize)?l.normalize=i.normalize:i.normalize?a(r,i):l.normalize=Ks();return}if(ad(i)){s.push(r);return}a(r,i)}),s.forEach(function(r){e.__compiled__[e.__schemas__[r]]&&(e.__compiled__[r].validate=e.__compiled__[e.__schemas__[r]].validate,e.__compiled__[r].normalize=e.__compiled__[e.__schemas__[r]].normalize)}),e.__compiled__[""]={validate:null,normalize:Ks()};const o=Object.keys(e.__compiled__).filter(function(r){return r.length>0&&e.__compiled__[r]}).map(id).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function eo(e,t,u,n){const s=e.slice(u,n);this.schema=t.toLowerCase(),this.index=u,this.lastIndex=n,this.raw=s,this.text=s,this.url=s}function Be(e,t){if(!(this instanceof Be))return new Be(e,t);t||ld(e)&&(t=e,e={}),this.__opts__=zn({},Qa,t),this.__schemas__=zn({},cd,e),this.__compiled__={},this.__tlds__=fd,this.__tlds_replaced__=!1,this.re={},Pu(this)}Be.prototype.add=function(t,u){return this.__schemas__[t]=u,Pu(this),this};Be.prototype.set=function(t){return this.__opts__=zn(this.__opts__,t),this};Be.prototype.test=function(t){if(!t.length)return!1;let u,n;if(this.re.schema_test.test(t)){for(n=this.re.schema_search,n.lastIndex=0;(u=n.exec(t))!==null;)if(this.testSchemaAt(t,u[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};Be.prototype.pretest=function(t){return this.re.pretest.test(t)};Be.prototype.testSchemaAt=function(t,u,n){return this.__compiled__[u.toLowerCase()]?this.__compiled__[u.toLowerCase()].validate(t,n,this):0};Be.prototype.match=function(t){const u=[],n=[],s=[],a=[];let o,r,i;function l(v,h){return v?h?v.index!==h.index?v.index<h.index?v:h:v.lastIndex>=h.lastIndex?v:h:v:h}if(!t.length)return null;if(this.re.schema_test.test(t))for(i=this.re.schema_search,i.lastIndex=0;(o=i.exec(t))!==null;)r=this.testSchemaAt(t,o[2],i.lastIndex),r&&n.push({schema:o[2],index:o.index+o[1].length,lastIndex:o.index+o[0].length+r});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(i=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,i.lastIndex=0;(o=i.exec(t))!==null;)s.push({schema:"",index:o.index+o[1].length,lastIndex:o.index+o[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(i=this.re.email_fuzzy_global,i.lastIndex=0;(o=i.exec(t))!==null;)a.push({schema:"mailto:",index:o.index+o[1].length,lastIndex:o.index+o[0].length});const p=[0,0,0];let c=0;for(;;){const v=[n[p[0]],a[p[1]],s[p[2]]],h=l(l(v[0],v[1]),v[2]);if(!h)break;if(h===v[0]?p[0]++:h===v[1]?p[1]++:p[2]++,h.index<c)continue;const x=new eo(t,h.schema,h.index,h.lastIndex);this.__compiled__[x.schema].normalize(x,this),u.push(x),c=h.lastIndex}return u.length?u:null};Be.prototype.matchAtStart=function(t){if(!t.length)return null;const u=this.re.schema_at_start.exec(t);if(!u)return null;const n=this.testSchemaAt(t,u[2],u[0].length);if(!n)return null;const s=new eo(t,u[2],u.index+u[1].length,u.index+u[0].length+n);return this.__compiled__[s.schema].normalize(s,this),s};Be.prototype.tlds=function(t,u){return t=Array.isArray(t)?t:[t],u?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,s,a){return n!==a[s-1]}).reverse(),Pu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Pu(this),this)};Be.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Be.prototype.onCompile=function(){};const Wt=2147483647,Qe=36,Kn=1,xu=26,hd=38,md=700,to=72,uo=128,no="-",bd=/^xn--/,gd=/[^\0-\x7F]/,xd=/[\x2E\u3002\uFF0E\uFF61]/g,vd={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},yn=Qe-Kn,et=Math.floor,kn=String.fromCharCode;function mt(e){throw new RangeError(vd[e])}function yd(e,t){const u=[];let n=e.length;for(;n--;)u[n]=t(e[n]);return u}function so(e,t){const u=e.split("@");let n="";u.length>1&&(n=u[0]+"@",e=u[1]),e=e.replace(xd,".");const s=e.split("."),a=yd(s,t).join(".");return n+a}function ao(e){const t=[];let u=0;const n=e.length;for(;u<n;){const s=e.charCodeAt(u++);if(s>=55296&&s<=56319&&u<n){const a=e.charCodeAt(u++);(a&64512)==56320?t.push(((s&1023)<<10)+(a&1023)+65536):(t.push(s),u--)}else t.push(s)}return t}const kd=e=>String.fromCodePoint(...e),_d=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Qe},Zs=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},oo=function(e,t,u){let n=0;for(e=u?et(e/md):e>>1,e+=et(e/t);e>yn*xu>>1;n+=Qe)e=et(e/yn);return et(n+(yn+1)*e/(e+hd))},ro=function(e){const t=[],u=e.length;let n=0,s=uo,a=to,o=e.lastIndexOf(no);o<0&&(o=0);for(let r=0;r<o;++r)e.charCodeAt(r)>=128&&mt("not-basic"),t.push(e.charCodeAt(r));for(let r=o>0?o+1:0;r<u;){const i=n;for(let p=1,c=Qe;;c+=Qe){r>=u&&mt("invalid-input");const v=_d(e.charCodeAt(r++));v>=Qe&&mt("invalid-input"),v>et((Wt-n)/p)&&mt("overflow"),n+=v*p;const h=c<=a?Kn:c>=a+xu?xu:c-a;if(v<h)break;const x=Qe-h;p>et(Wt/x)&&mt("overflow"),p*=x}const l=t.length+1;a=oo(n-i,l,i==0),et(n/l)>Wt-s&&mt("overflow"),s+=et(n/l),n%=l,t.splice(n++,0,s)}return String.fromCodePoint(...t)},io=function(e){const t=[];e=ao(e);const u=e.length;let n=uo,s=0,a=to;for(const i of e)i<128&&t.push(kn(i));const o=t.length;let r=o;for(o&&t.push(no);r<u;){let i=Wt;for(const p of e)p>=n&&p<i&&(i=p);const l=r+1;i-n>et((Wt-s)/l)&&mt("overflow"),s+=(i-n)*l,n=i;for(const p of e)if(p<n&&++s>Wt&&mt("overflow"),p===n){let c=s;for(let v=Qe;;v+=Qe){const h=v<=a?Kn:v>=a+xu?xu:v-a;if(c<h)break;const x=c-h,A=Qe-h;t.push(kn(Zs(h+x%A,0))),c=et(x/A)}t.push(kn(Zs(c,0))),a=oo(s,l,r===o),s=0,++r}++s,++n}return t.join("")},wd=function(e){return so(e,function(t){return bd.test(t)?ro(t.slice(4).toLowerCase()):t})},Ed=function(e){return so(e,function(t){return gd.test(t)?"xn--"+io(t):t})},lo={version:"2.3.1",ucs2:{decode:ao,encode:kd},decode:ro,encode:io,toASCII:Ed,toUnicode:wd},Ad={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Cd={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},$d={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Dd={default:Ad,zero:Cd,commonmark:$d},Td=/^(vbscript|javascript|file|data):/,Sd=/^data:image\/(gif|png|jpeg|webp);/;function Fd(e){const t=e.trim().toLowerCase();return Td.test(t)?Sd.test(t):!0}const co=["http:","https:","mailto:"];function Id(e){const t=Hn(e,!0);if(t.hostname&&(!t.protocol||co.indexOf(t.protocol)>=0))try{t.hostname=lo.toASCII(t.hostname)}catch{}return ku(Un(t))}function Md(e){const t=Hn(e,!0);if(t.hostname&&(!t.protocol||co.indexOf(t.protocol)>=0))try{t.hostname=lo.toUnicode(t.hostname)}catch{}return Zt(Un(t),Zt.defaultChars+"%")}function qe(e,t){if(!(this instanceof qe))return new qe(e,t);t||jn(e)||(t=e||{},e="default"),this.inline=new wu,this.block=new Wu,this.core=new Gn,this.renderer=new eu,this.linkify=new Be,this.validateLink=Fd,this.normalizeLink=Id,this.normalizeLinkText=Md,this.utils=Oc,this.helpers=ju({},Bc),this.options={},this.configure(e),t&&this.set(t)}qe.prototype.set=function(e){return ju(this.options,e),this};qe.prototype.configure=function(e){const t=this;if(jn(e)){const u=e;if(e=Dd[u],!e)throw new Error('Wrong `markdown-it` preset "'+u+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(u){e.components[u].rules&&t[u].ruler.enableOnly(e.components[u].rules),e.components[u].rules2&&t[u].ruler2.enableOnly(e.components[u].rules2)}),this};qe.prototype.enable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){u=u.concat(this[s].ruler.enable(e,!0))},this),u=u.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(s){return u.indexOf(s)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};qe.prototype.disable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){u=u.concat(this[s].ruler.disable(e,!0))},this),u=u.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(s){return u.indexOf(s)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};qe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};qe.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const u=new this.core.State(e,this,t);return this.core.process(u),u.tokens};qe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};qe.prototype.parseInline=function(e,t){const u=new this.core.State(e,this,t);return u.inlineMode=!0,this.core.process(u),u.tokens};qe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE */function Xs(e,t){(t==null||t>e.length)&&(t=e.length);for(var u=0,n=Array(t);u<t;u++)n[u]=e[u];return n}function zd(e){if(Array.isArray(e))return e}function Ld(e,t){var u=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(u!=null){var n,s,a,o,r=[],i=!0,l=!1;try{if(a=(u=u.call(e)).next,t!==0)for(;!(i=(n=a.call(u)).done)&&(r.push(n.value),r.length!==t);i=!0);}catch(p){l=!0,s=p}finally{try{if(!i&&u.return!=null&&(o=u.return(),Object(o)!==o))return}finally{if(l)throw s}}return r}}function Od(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
263
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rd(e,t){return zd(e)||Ld(e,t)||Nd(e,t)||Od()}function Nd(e,t){if(e){if(typeof e=="string")return Xs(e,t);var u={}.toString.call(e).slice(8,-1);return u==="Object"&&e.constructor&&(u=e.constructor.name),u==="Map"||u==="Set"?Array.from(e):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Xs(e,t):void 0}}const fo=Object.entries,Ys=Object.setPrototypeOf,Pd=Object.isFrozen,Bd=Object.getPrototypeOf,Ud=Object.getOwnPropertyDescriptor;let Fe=Object.freeze,Ie=Object.seal,Gt=Object.create,po=typeof Reflect<"u"&&Reflect,Ln=po.apply,On=po.construct;Fe||(Fe=function(t){return t});Ie||(Ie=function(t){return t});Ln||(Ln=function(t,u){for(var n=arguments.length,s=new Array(n>2?n-2:0),a=2;a<n;a++)s[a-2]=arguments[a];return t.apply(u,s)});On||(On=function(t){for(var u=arguments.length,n=new Array(u>1?u-1:0),s=1;s<u;s++)n[s-1]=arguments[s];return new t(...n)});const ru=Ee(Array.prototype.forEach),Hd=Ee(Array.prototype.lastIndexOf),Js=Ee(Array.prototype.pop),Ht=Ee(Array.prototype.push),qd=Ee(Array.prototype.splice),bt=Array.isArray,cu=Ee(String.prototype.toLowerCase),_n=Ee(String.prototype.toString),Qs=Ee(String.prototype.match),iu=Ee(String.prototype.replace),ea=Ee(String.prototype.indexOf),jd=Ee(String.prototype.trim),Vd=Ee(Number.prototype.toString),Gd=Ee(Boolean.prototype.toString),ta=typeof BigInt>"u"?null:Ee(BigInt.prototype.toString),ua=typeof Symbol>"u"?null:Ee(Symbol.prototype.toString),Oe=Ee(Object.prototype.hasOwnProperty),lu=Ee(Object.prototype.toString),Se=Ee(RegExp.prototype.test),Dt=Wd(TypeError);function Ee(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var u=arguments.length,n=new Array(u>1?u-1:0),s=1;s<u;s++)n[s-1]=arguments[s];return Ln(e,t,n)}}function Wd(e){return function(){for(var t=arguments.length,u=new Array(t),n=0;n<t;n++)u[n]=arguments[n];return On(e,u)}}function fe(e,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:cu;if(Ys&&Ys(e,null),!bt(t))return e;let n=t.length;for(;n--;){let s=t[n];if(typeof s=="string"){const a=u(s);a!==s&&(Pd(t)||(t[n]=a),s=a)}e[s]=!0}return e}function Kd(e){for(let t=0;t<e.length;t++)Oe(e,t)||(e[t]=null);return e}function Le(e){const t=Gt(null);for(const n of fo(e)){var u=Rd(n,2);const s=u[0],a=u[1];Oe(e,s)&&(bt(a)?t[s]=Kd(a):a&&typeof a=="object"&&a.constructor===Object?t[s]=Le(a):t[s]=a)}return t}function Zd(e){switch(typeof e){case"string":return e;case"number":return Vd(e);case"boolean":return Gd(e);case"bigint":return ta?ta(e):"0";case"symbol":return ua?ua(e):"Symbol()";case"undefined":return lu(e);case"function":case"object":{if(e===null)return lu(e);const t=e,u=Ye(t,"toString");if(typeof u=="function"){const n=u(t);return typeof n=="string"?n:lu(n)}return lu(e)}default:return lu(e)}}function Ye(e,t){for(;e!==null;){const n=Ud(e,t);if(n){if(n.get)return Ee(n.get);if(typeof n.value=="function")return Ee(n.value)}e=Bd(e)}function u(){return null}return u}function Xd(e){try{return Se(e,""),!0}catch{return!1}}const na=Fe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),wn=Fe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),En=Fe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Yd=Fe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),An=Fe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Jd=Fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sa=Fe(["#text"]),aa=Fe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Cn=Fe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),oa=Fe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Mu=Fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qd=Ie(/{{[\w\W]*|^[\w\W]*}}/g),ef=Ie(/<%[\w\W]*|^[\w\W]*%>/g),tf=Ie(/\${[\w\W]*/g),uf=Ie(/^data-[\-\w.\u00B7-\uFFFF]+$/),nf=Ie(/^aria-[\-\w]+$/),ra=Ie(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sf=Ie(/^(?:\w+script|data):/i),af=Ie(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),of=Ie(/^html$/i),rf=Ie(/^[a-z][.\w]*(-[.\w]+)+$/i),ia=Ie(/<[/\w!]/g),lf=Ie(/<[/\w]/g),cf=Ie(/<\/no(script|embed|frames)/i),df=Ie(/\/>/i),Xe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ff=function(){return typeof window>"u"?null:window},pf=function(t,u){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";u&&u.hasAttribute(s)&&(n=u.getAttribute(s));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},la=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},pt=function(t,u,n,s){return Oe(t,u)&&bt(t[u])?fe(s.base?Le(s.base):{},t[u],s.transform):n};function ho(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ff();const t=G=>ho(G);if(t.version="3.4.10",t.removed=[],!e||!e.document||e.document.nodeType!==Xe.document||!e.Element)return t.isSupported=!1,t;let u=e.document;const n=u,s=n.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,o=e.Node,r=e.Element,i=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,c=e.trustedTypes,v=r.prototype,h=Ye(v,"cloneNode"),x=Ye(v,"remove"),A=Ye(v,"nextSibling"),T=Ye(v,"childNodes"),D=Ye(v,"parentNode"),C=Ye(v,"shadowRoot"),y=Ye(v,"attributes"),_=o&&o.prototype?Ye(o.prototype,"nodeType"):null,w=o&&o.prototype?Ye(o.prototype,"nodeName"):null;if(typeof a=="function"){const G=u.createElement("template");G.content&&G.content.ownerDocument&&(u=G.content.ownerDocument)}let I,N="",ue,ee=!1,W=0;const z=function(){if(W>0)throw Dt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},U=function(b){z(),W++;try{return I.createHTML(b)}finally{W--}},q=function(b){z(),W++;try{return I.createScriptURL(b)}finally{W--}},R=function(){return ee||(ue=pf(c,s),ee=!0),ue},$=u,E=$.implementation,S=$.createNodeIterator,ae=$.createDocumentFragment,V=$.getElementsByTagName,be=n.importNode;let ge=la();t.isSupported=typeof fo=="function"&&typeof D=="function"&&E&&E.createHTMLDocument!==void 0;const tu=Qd,Lt=ef,Ot=tf,uu=uf,Y=nf,P=sf,ne=af,O=rf;let K=ra,H=null;const me=fe({},[...na,...wn,...En,...An,...sa]);let le=null;const Te=fe({},[...aa,...Cn,...oa,...Mu]);let ie=Object.seal(Gt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ct=null,je=null;const ke=Object.seal(Gt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qn=!0,Xu=!0,es=!1,ts=!0,dt=!1,nu=!0,Et=!1,Yu=!1,Ju=!1,Rt=!1,Eu=!1,Au=!1,us=!0,ns=!1;const ss="user-content-";let Qu=!0,en=!1,Nt={},Ke=null;const tn=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let as=null;const os=fe({},["audio","video","img","source","image","track"]);let un=null;const rs=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cu="http://www.w3.org/1998/Math/MathML",$u="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Pt=Ze,nn=!1,sn=null;const Lo=fe({},[Cu,$u,Ze],_n),is=Fe(["mi","mo","mn","ms","mtext"]);let an=fe({},is);const ls=Fe(["annotation-xml"]);let on=fe({},ls);const Oo=fe({},["title","style","font","a","script"]);let su=null;const Ro=["application/xhtml+xml","text/html"],No="text/html";let ye=null,Bt=null;const Po=u.createElement("form"),cs=function(b){return b instanceof RegExp||b instanceof Function},rn=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Bt&&Bt===b)return;(!b||typeof b!="object")&&(b={}),b=Le(b),su=Ro.indexOf(b.PARSER_MEDIA_TYPE)===-1?No:b.PARSER_MEDIA_TYPE,ye=su==="application/xhtml+xml"?_n:cu,H=pt(b,"ALLOWED_TAGS",me,{transform:ye}),le=pt(b,"ALLOWED_ATTR",Te,{transform:ye}),sn=pt(b,"ALLOWED_NAMESPACES",Lo,{transform:_n}),un=pt(b,"ADD_URI_SAFE_ATTR",rs,{transform:ye,base:rs}),as=pt(b,"ADD_DATA_URI_TAGS",os,{transform:ye,base:os}),Ke=pt(b,"FORBID_CONTENTS",tn,{transform:ye}),ct=pt(b,"FORBID_TAGS",Le({}),{transform:ye}),je=pt(b,"FORBID_ATTR",Le({}),{transform:ye}),Nt=Oe(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?Le(b.USE_PROFILES):b.USE_PROFILES:!1,Qn=b.ALLOW_ARIA_ATTR!==!1,Xu=b.ALLOW_DATA_ATTR!==!1,es=b.ALLOW_UNKNOWN_PROTOCOLS||!1,ts=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,dt=b.SAFE_FOR_TEMPLATES||!1,nu=b.SAFE_FOR_XML!==!1,Et=b.WHOLE_DOCUMENT||!1,Rt=b.RETURN_DOM||!1,Eu=b.RETURN_DOM_FRAGMENT||!1,Au=b.RETURN_TRUSTED_TYPE||!1,Ju=b.FORCE_BODY||!1,us=b.SANITIZE_DOM!==!1,ns=b.SANITIZE_NAMED_PROPS||!1,Qu=b.KEEP_CONTENT!==!1,en=b.IN_PLACE||!1,K=Xd(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:ra,Pt=typeof b.NAMESPACE=="string"?b.NAMESPACE:Ze,an=Oe(b,"MATHML_TEXT_INTEGRATION_POINTS")&&b.MATHML_TEXT_INTEGRATION_POINTS&&typeof b.MATHML_TEXT_INTEGRATION_POINTS=="object"?Le(b.MATHML_TEXT_INTEGRATION_POINTS):fe({},is),on=Oe(b,"HTML_INTEGRATION_POINTS")&&b.HTML_INTEGRATION_POINTS&&typeof b.HTML_INTEGRATION_POINTS=="object"?Le(b.HTML_INTEGRATION_POINTS):fe({},ls);const F=Oe(b,"CUSTOM_ELEMENT_HANDLING")&&b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING=="object"?Le(b.CUSTOM_ELEMENT_HANDLING):Gt(null);if(ie=Gt(null),Oe(F,"tagNameCheck")&&cs(F.tagNameCheck)&&(ie.tagNameCheck=F.tagNameCheck),Oe(F,"attributeNameCheck")&&cs(F.attributeNameCheck)&&(ie.attributeNameCheck=F.attributeNameCheck),Oe(F,"allowCustomizedBuiltInElements")&&typeof F.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=F.allowCustomizedBuiltInElements),Ie(ie),dt&&(Xu=!1),Eu&&(Rt=!0),Nt&&(H=fe({},sa),le=Gt(null),Nt.html===!0&&(fe(H,na),fe(le,aa)),Nt.svg===!0&&(fe(H,wn),fe(le,Cn),fe(le,Mu)),Nt.svgFilters===!0&&(fe(H,En),fe(le,Cn),fe(le,Mu)),Nt.mathMl===!0&&(fe(H,An),fe(le,oa),fe(le,Mu))),ke.tagCheck=null,ke.attributeCheck=null,Oe(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?ke.tagCheck=b.ADD_TAGS:bt(b.ADD_TAGS)&&(H===me&&(H=Le(H)),fe(H,b.ADD_TAGS,ye))),Oe(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?ke.attributeCheck=b.ADD_ATTR:bt(b.ADD_ATTR)&&(le===Te&&(le=Le(le)),fe(le,b.ADD_ATTR,ye))),Oe(b,"ADD_URI_SAFE_ATTR")&&bt(b.ADD_URI_SAFE_ATTR)&&fe(un,b.ADD_URI_SAFE_ATTR,ye),Oe(b,"FORBID_CONTENTS")&&bt(b.FORBID_CONTENTS)&&(Ke===tn&&(Ke=Le(Ke)),fe(Ke,b.FORBID_CONTENTS,ye)),Oe(b,"ADD_FORBID_CONTENTS")&&bt(b.ADD_FORBID_CONTENTS)&&(Ke===tn&&(Ke=Le(Ke)),fe(Ke,b.ADD_FORBID_CONTENTS,ye)),Qu&&(H["#text"]=!0),Et&&fe(H,["html","head","body"]),H.table&&(fe(H,["tbody"]),delete ct.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw Dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const j=I;I=b.TRUSTED_TYPES_POLICY;try{N=U("")}catch(te){throw I=j,te}}else b.TRUSTED_TYPES_POLICY===null?(I=void 0,N=""):(I===void 0&&(I=R()),I&&typeof N=="string"&&(N=U("")));(ge.uponSanitizeElement.length>0||ge.uponSanitizeAttribute.length>0)&&H===me&&(H=Le(H)),ge.uponSanitizeAttribute.length>0&&le===Te&&(le=Le(le)),Fe&&Fe(b),Bt=b},ds=fe({},[...wn,...En,...Yd]),fs=fe({},[...An,...Jd]),Bo=function(b,F,j){return F.namespaceURI===Ze?b==="svg":F.namespaceURI===Cu?b==="svg"&&(j==="annotation-xml"||an[j]):!!ds[b]},Uo=function(b,F,j){return F.namespaceURI===Ze?b==="math":F.namespaceURI===$u?b==="math"&&on[j]:!!fs[b]},Ho=function(b,F,j){return F.namespaceURI===$u&&!on[j]||F.namespaceURI===Cu&&!an[j]?!1:!fs[b]&&(Oo[b]||!ds[b])},qo=function(b){let F=D(b);(!F||!F.tagName)&&(F={namespaceURI:Pt,tagName:"template"});const j=cu(b.tagName),te=cu(F.tagName);return sn[b.namespaceURI]?b.namespaceURI===$u?Bo(j,F,te):b.namespaceURI===Cu?Uo(j,F,te):b.namespaceURI===Ze?Ho(j,F,te):!!(su==="application/xhtml+xml"&&sn[b.namespaceURI]):!1},ft=function(b){Ht(t.removed,{element:b});try{D(b).removeChild(b)}catch{if(x(b),!D(b))throw Dt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ps=function(b){const F=T(b);if(F){const te=[];ru(F,oe=>{Ht(te,oe)}),ru(te,oe=>{try{x(oe)}catch{}})}const j=y(b);if(j)for(let te=j.length-1;te>=0;--te){const oe=j[te],pe=oe&&oe.name;if(typeof pe=="string")try{b.removeAttribute(pe)}catch{}}},At=function(b,F){try{Ht(t.removed,{attribute:F.getAttributeNode(b),from:F})}catch{Ht(t.removed,{attribute:null,from:F})}if(F.removeAttribute(b),b==="is")if(Rt||Eu)try{ft(F)}catch{}else try{F.setAttribute(b,"")}catch{}},jo=function(b){const F=y(b);if(F)for(let j=F.length-1;j>=0;--j){const te=F[j],oe=te&&te.name;if(!(typeof oe!="string"||le[ye(oe)]))try{b.removeAttribute(oe)}catch{}}},Vo=function(b){const F=[b];for(;F.length>0;){const j=F.pop();(_?_(j):j.nodeType)===Xe.element&&jo(j);const oe=T(j);if(oe)for(let pe=oe.length-1;pe>=0;--pe)F.push(oe[pe])}},hs=function(b){let F=null,j=null;if(Ju)b="<remove></remove>"+b;else{const pe=Qs(b,/^[\r\n\t ]+/);j=pe&&pe[0]}su==="application/xhtml+xml"&&Pt===Ze&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const te=I?U(b):b;if(Pt===Ze)try{F=new p().parseFromString(te,su)}catch{}if(!F||!F.documentElement){F=E.createDocument(Pt,"template",null);try{F.documentElement.innerHTML=nn?N:te}catch{}}const oe=F.body||F.documentElement;return b&&j&&oe.insertBefore(u.createTextNode(j),oe.childNodes[0]||null),Pt===Ze?V.call(F,Et?"html":"body")[0]:Et?F.documentElement:oe},ms=function(b){return S.call(b.ownerDocument||b,b,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT|i.SHOW_PROCESSING_INSTRUCTION|i.SHOW_CDATA_SECTION,null)},Du=function(b){return b=iu(b,tu," "),b=iu(b,Lt," "),b=iu(b,Ot," "),b},ln=function(b){var F;b.normalize();const j=S.call(b.ownerDocument||b,b,i.SHOW_TEXT|i.SHOW_COMMENT|i.SHOW_CDATA_SECTION|i.SHOW_PROCESSING_INSTRUCTION,null);let te=j.nextNode();for(;te;)te.data=Du(te.data),te=j.nextNode();const oe=(F=b.querySelectorAll)===null||F===void 0?void 0:F.call(b,"template");oe&&ru(oe,pe=>{Ut(pe.content)&&ln(pe.content)})},Tu=function(b){const F=w?w(b):null;return typeof F!="string"||ye(F)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==y(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==_(b)||b.childNodes!==T(b)},Ut=function(b){if(!_||typeof b!="object"||b===null)return!1;try{return _(b)===Xe.documentFragment}catch{return!1}},au=function(b){if(!_||typeof b!="object"||b===null)return!1;try{return typeof _(b)=="number"}catch{return!1}};function at(G,b,F){G.length!==0&&ru(G,j=>{j.call(t,b,F,Bt)})}const Go=function(b,F){return!!(nu&&b.hasChildNodes()&&!au(b.firstElementChild)&&Se(ia,b.textContent)&&Se(ia,b.innerHTML)||nu&&b.namespaceURI===Ze&&F==="style"&&au(b.firstElementChild)||b.nodeType===Xe.processingInstruction||nu&&b.nodeType===Xe.comment&&Se(lf,b.data))},Wo=function(b,F){if(!ct[F]&&xs(F)&&(ie.tagNameCheck instanceof RegExp&&Se(ie.tagNameCheck,F)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(F)))return!1;if(Qu&&!Ke[F]){const j=D(b),te=T(b);if(te&&j){const oe=te.length;for(let pe=oe-1;pe>=0;--pe){const Ce=en?te[pe]:h(te[pe],!0);j.insertBefore(Ce,A(b))}}}return ft(b),!0},bs=function(b){if(at(ge.beforeSanitizeElements,b,null),Tu(b))return ft(b),!0;const F=ye(w?w(b):b.nodeName);if(at(ge.uponSanitizeElement,b,{tagName:F,allowedTags:H}),Go(b,F))return ft(b),!0;if(ct[F]||!(ke.tagCheck instanceof Function&&ke.tagCheck(F))&&!H[F])return Wo(b,F);if((_?_(b):b.nodeType)===Xe.element&&!qo(b)||(F==="noscript"||F==="noembed"||F==="noframes")&&Se(cf,b.innerHTML))return ft(b),!0;if(dt&&b.nodeType===Xe.text){const te=Du(b.textContent);b.textContent!==te&&(Ht(t.removed,{element:b.cloneNode()}),b.textContent=te)}return at(ge.afterSanitizeElements,b,null),!1},gs=function(b,F,j){if(je[F]||us&&(F==="id"||F==="name")&&(j in u||j in Po))return!1;const te=le[F]||ke.attributeCheck instanceof Function&&ke.attributeCheck(F,b);if(!(Xu&&Se(uu,F))){if(!(Qn&&Se(Y,F))){if(te){if(!un[F]){if(!Se(K,iu(j,ne,""))){if(!((F==="src"||F==="xlink:href"||F==="href")&&b!=="script"&&ea(j,"data:")===0&&as[b])){if(!(es&&!Se(P,iu(j,ne,"")))){if(j)return!1}}}}}else if(!(xs(b)&&(ie.tagNameCheck instanceof RegExp&&Se(ie.tagNameCheck,b)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(b))&&(ie.attributeNameCheck instanceof RegExp&&Se(ie.attributeNameCheck,F)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(F,b))||F==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&Se(ie.tagNameCheck,j)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(j))))return!1}}return!0},Ko=fe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),xs=function(b){return!Ko[cu(b)]&&Se(O,b)},Zo=function(b,F,j,te){if(I&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!j)switch(c.getAttributeType(b,F)){case"TrustedHTML":return U(te);case"TrustedScriptURL":return q(te)}return te},Xo=function(b,F,j,te){try{j?b.setAttributeNS(j,F,te):b.setAttribute(F,te),Tu(b)?ft(b):Js(t.removed)}catch{At(F,b)}},vs=function(b){at(ge.beforeSanitizeAttributes,b,null);const F=b.attributes;if(!F||Tu(b))return;const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le,forceKeepAttr:void 0};let te=F.length;const oe=ye(b.nodeName);for(;te--;){const pe=F[te],Ce=pe.name,_e=pe.namespaceURI,Ue=pe.value,Ve=ye(Ce),dn=Ue;let Me=Ce==="value"?dn:jd(dn);if(j.attrName=Ve,j.attrValue=Me,j.keepAttr=!0,j.forceKeepAttr=void 0,at(ge.uponSanitizeAttribute,b,j),Me=j.attrValue,ns&&(Ve==="id"||Ve==="name")&&ea(Me,ss)!==0&&(At(Ce,b),Me=ss+Me),nu&&Se(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Me)){At(Ce,b);continue}if(Ve==="attributename"&&Qs(Me,"href")){At(Ce,b);continue}if(!j.forceKeepAttr){if(!j.keepAttr){At(Ce,b);continue}if(!ts&&Se(df,Me)){At(Ce,b);continue}if(dt&&(Me=Du(Me)),!gs(oe,Ve,Me)){At(Ce,b);continue}Me=Zo(oe,Ve,_e,Me),Me!==dn&&Xo(b,Ce,_e,Me)}}at(ge.afterSanitizeAttributes,b,null)},Su=function(b){let F=null;const j=ms(b);for(at(ge.beforeSanitizeShadowDOM,b,null);F=j.nextNode();)if(at(ge.uponSanitizeShadowNode,F,null),bs(F),vs(F),Ut(F.content)&&Su(F.content),(_?_(F):F.nodeType)===Xe.element){const oe=C(F);Ut(oe)&&(cn(oe),Su(oe))}at(ge.afterSanitizeShadowDOM,b,null)},cn=function(b){const F=[{node:b,shadow:null}];for(;F.length>0;){const j=F.pop();if(j.shadow){Su(j.shadow);continue}const te=j.node,pe=(_?_(te):te.nodeType)===Xe.element,Ce=T(te);if(Ce)for(let _e=Ce.length-1;_e>=0;--_e)F.push({node:Ce[_e],shadow:null});if(pe){const _e=w?w(te):null;if(typeof _e=="string"&&ye(_e)==="template"){const Ue=te.content;Ut(Ue)&&F.push({node:Ue,shadow:null})}}if(pe){const _e=C(te);Ut(_e)&&F.push({node:null,shadow:_e},{node:_e,shadow:null})}}};return t.sanitize=function(G){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=null,j=null,te=null,oe=null;if(nn=!G,nn&&(G="<!-->"),typeof G!="string"&&!au(G)&&(G=Zd(G),typeof G!="string"))throw Dt("dirty is not a string, aborting");if(!t.isSupported)return G;Yu||rn(b),t.removed=[];const pe=en&&typeof G!="string"&&au(G);if(pe){const Ue=w?w(G):G.nodeName;if(typeof Ue=="string"){const Ve=ye(Ue);if(!H[Ve]||ct[Ve])throw Dt("root node is forbidden and cannot be sanitized in-place")}if(Tu(G))throw Dt("root node is clobbered and cannot be sanitized in-place");try{cn(G)}catch(Ve){throw ps(G),Ve}}else if(au(G))F=hs("<!---->"),j=F.ownerDocument.importNode(G,!0),j.nodeType===Xe.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?F=j:F.appendChild(j),cn(j);else{if(!Rt&&!dt&&!Et&&G.indexOf("<")===-1)return I&&Au?U(G):G;if(F=hs(G),!F)return Rt?null:Au?N:""}F&&Ju&&ft(F.firstChild);const Ce=ms(pe?G:F);try{for(;te=Ce.nextNode();)bs(te),vs(te),Ut(te.content)&&Su(te.content)}catch(Ue){throw pe&&ps(G),Ue}if(pe)return ru(t.removed,Ue=>{Ue.element&&Vo(Ue.element)}),dt&&ln(G),G;if(Rt){if(dt&&ln(F),Eu)for(oe=ae.call(F.ownerDocument);F.firstChild;)oe.appendChild(F.firstChild);else oe=F;return(le.shadowroot||le.shadowrootmode)&&(oe=be.call(n,oe,!0)),oe}let _e=Et?F.outerHTML:F.innerHTML;return Et&&H["!doctype"]&&F.ownerDocument&&F.ownerDocument.doctype&&F.ownerDocument.doctype.name&&Se(of,F.ownerDocument.doctype.name)&&(_e="<!DOCTYPE "+F.ownerDocument.doctype.name+`>
264
+ `+_e),dt&&(_e=Du(_e)),I&&Au?U(_e):_e},t.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rn(G),Yu=!0},t.clearConfig=function(){Bt=null,Yu=!1,I=ue,N=""},t.isValidAttribute=function(G,b,F){Bt||rn({});const j=ye(G),te=ye(b);return gs(j,te,F)},t.addHook=function(G,b){typeof b=="function"&&Ht(ge[G],b)},t.removeHook=function(G,b){if(b!==void 0){const F=Hd(ge[G],b);return F===-1?void 0:qd(ge[G],F,1)[0]}return Js(ge[G])},t.removeHooks=function(G){ge[G]=[]},t.removeAllHooks=function(){ge=la()},t}var mo=ho(),hf=Object.defineProperty,mf=Object.defineProperties,bf=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,xf=Object.prototype.propertyIsEnumerable,da=(e,t,u)=>t in e?hf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,bo=(e,t)=>{for(var u in t||(t={}))gf.call(t,u)&&da(e,u,t[u]);if(ca)for(var u of ca(t))xf.call(t,u)&&da(e,u,t[u]);return e},go=(e,t)=>mf(e,bf(t)),Ne=(e,t)=>{let u=!1,n=!1;for(let s=0;s<t;s+=1){if(e[s]==="\\"&&s+1<e.length&&e[s+1]==="`"){s+=1;continue}if(e.substring(s,s+3)==="```"){n=!n,s+=2;continue}!n&&e[s]==="`"&&(u=!u)}return u||n},vf=(e,t)=>{let u=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",s=t>1&&e.substring(t-2,t+1)==="```";return u||n||s},yf=e=>{let t=0;for(let u=0;u<e.length;u+=1){if(e[u]==="\\"&&u+1<e.length&&e[u+1]==="`"){u+=1;continue}e[u]==="`"&&!vf(e,u)&&(t+=1)}return t},yt=(e,t)=>{let u=!1,n=!1,s=-1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){n=!n,a+=2;continue}if(!n&&e[a]==="`")if(u){if(s<t&&t<a)return!0;u=!1,s=-1}else u=!0,s=a}return!1},kf=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,_f=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(kf,(t,u,n,s)=>Ne(e,s)?t:`${u}\\>${n}`),wf=/(\*\*)([^*]*\*?)$/,Ef=/(__)([^_]*?)$/,Af=/(\*\*\*)([^*]*?)$/,Cf=/(\*)([^*]*?)$/,$f=/(_)([^_]*?)$/,Df=/(`)([^`]*?)$/,Tf=/(~~)([^~]*?)$/,zt=/^[\s_~*`]*$/,xo=/^[\s]*[-*+][\s]+$/,Sf=/[\p{L}\p{N}_]/u,Ff=/^```[^`\n]*```?$/,If=/^\*{4,}$/,Mf=/(__)([^_]+)_$/,zf=/(~~)([^~]+)~$/,fa=/~~/g,kt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:Sf.test(e)},Lf=(e,t)=>{let u=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")u+=1;else if(e[n]==="["&&(u-=1,u===0))return n;return-1},vo=(e,t)=>{let u=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")u+=1;else if(e[n]==="]"&&(u-=1,u===0))return n;return-1},Zu=(e,t)=>{let u=!1,n=!1;for(let s=0;s<e.length&&s<t;s+=1){if(e[s]==="\\"&&e[s+1]==="$"){s+=1;continue}e[s]==="$"&&(e[s+1]==="$"?(n=!n,s+=1,u=!1):n||(u=!u))}return u||n},Of=(e,t)=>{for(let u=t;u<e.length;u+=1){if(e[u]===")")return!0;if(e[u]===`
265
+ `)return!1}return!1},yo=(e,t)=>{for(let u=t-1;u>=0;u-=1){if(e[u]===")")return!1;if(e[u]==="(")return u>0&&e[u-1]==="]"?Of(e,t):!1;if(e[u]===`
266
+ `)return!1}return!1},Rf=(e,t)=>{for(let u=t-1;u>=0;u-=1){if(e[u]===">")return!1;if(e[u]==="<"){let n=u+1<e.length?e[u+1]:"";return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(e[u]===`
267
+ `)return!1}return!1},Zn=(e,t,u)=>{let n=0;for(let i=t-1;i>=0;i-=1)if(e[i]===`
268
+ `){n=i+1;break}let s=e.length;for(let i=t;i<e.length;i+=1)if(e[i]===`
269
+ `){s=i;break}let a=e.substring(n,s),o=0,r=!1;for(let i of a)if(i===u)o+=1;else if(i!==" "&&i!==" "){r=!0;break}return o>=3&&!r},Nf=(e,t,u,n)=>u==="\\"||e.includes("$")&&Zu(e,t)?!0:u!=="*"&&n==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(u==="*"||u&&n&&kt(u)&&kt(n)||(!u||u===" "||u===" "||u===`
270
+ `)&&(!n||n===" "||n===" "||n===`
271
+ `)),ko=e=>{let t=0,u=!1,n=e.length;for(let s=0;s<n;s+=1){if(e[s]==="`"&&s+2<n&&e[s+1]==="`"&&e[s+2]==="`"){u=!u,s+=2;continue}if(u||e[s]!=="*")continue;let a=s>0?e[s-1]:"",o=s<n-1?e[s+1]:"";Nf(e,s,a,o)||(t+=1)}return t},Pf=(e,t,u,n)=>!!(u==="\\"||e.includes("$")&&Zu(e,t)||yo(e,t)||Rf(e,t)||u==="_"||n==="_"||u&&n&&kt(u)&&kt(n)),Bf=e=>{let t=0,u=!1,n=e.length;for(let s=0;s<n;s+=1){if(e[s]==="`"&&s+2<n&&e[s+1]==="`"&&e[s+2]==="`"){u=!u,s+=2;continue}if(u||e[s]!=="_")continue;let a=s>0?e[s-1]:"",o=s<n-1?e[s+1]:"";Pf(e,s,a,o)||(t+=1)}return t},Uf=e=>{let t=0,u=0,n=!1;for(let s=0;s<e.length;s+=1){if(e[s]==="`"&&s+2<e.length&&e[s+1]==="`"&&e[s+2]==="`"){u>=3&&(t+=Math.floor(u/3)),u=0,n=!n,s+=2;continue}n||(e[s]==="*"?u+=1:(u>=3&&(t+=Math.floor(u/3)),u=0))}return u>=3&&(t+=Math.floor(u/3)),t},Xn=e=>{let t=0,u=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){u=!u,n+=2;continue}u||e[n]==="*"&&n+1<e.length&&e[n+1]==="*"&&(t+=1,n+=1)}return t},pa=e=>{let t=0,u=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){u=!u,n+=2;continue}u||e[n]==="_"&&n+1<e.length&&e[n+1]==="_"&&(t+=1,n+=1)}return t},Hf=(e,t,u)=>{if(!t||zt.test(t))return!0;let n=e.substring(0,u).lastIndexOf(`
272
+ `),s=n===-1?0:n+1,a=e.substring(s,u);return xo.test(a)&&t.includes(`
273
+ `)?!0:Zn(e,u,"*")},qf=e=>{let t=e.match(wf);if(!t)return e;let u=t[2],n=e.lastIndexOf(t[1]);return Ne(e,n)||yt(e,n)||Hf(e,u,n)?e:Xn(e)%2===1?u.endsWith("*")?`${e}*`:`${e}**`:e},jf=(e,t,u)=>{if(!t||zt.test(t))return!0;let n=e.substring(0,u).lastIndexOf(`
274
+ `),s=n===-1?0:n+1,a=e.substring(s,u);return xo.test(a)&&t.includes(`
275
+ `)?!0:Zn(e,u,"_")},Vf=e=>{let t=e.match(Ef);if(!t){let s=e.match(Mf);if(s){let a=e.lastIndexOf(s[1]);if(!(Ne(e,a)||yt(e,a))&&pa(e)%2===1)return`${e}_`}return e}let u=t[2],n=e.lastIndexOf(t[1]);return Ne(e,n)||yt(e,n)||jf(e,u,n)?e:pa(e)%2===1?`${e}__`:e},Gf=e=>{let t=!1;for(let u=0;u<e.length;u+=1){if(e[u]==="`"&&u+2<e.length&&e[u+1]==="`"&&e[u+2]==="`"){t=!t,u+=2;continue}if(!t&&e[u]==="*"&&e[u-1]!=="*"&&e[u+1]!=="*"&&e[u-1]!=="\\"&&!Zu(e,u)){let n=u>0?e[u-1]:"",s=u<e.length-1?e[u+1]:"";if((!n||n===" "||n===" "||n===`
276
+ `)&&(!s||s===" "||s===" "||s===`
277
+ `)||n&&s&&kt(n)&&kt(s))continue;return u}}return-1},Wf=e=>{if(!e.match(Cf))return e;let t=Gf(e);if(t===-1||Ne(e,t)||yt(e,t))return e;let u=e.substring(t+1);return!u||zt.test(u)?e:ko(e)%2===1?`${e}*`:e},_o=e=>{let t=!1;for(let u=0;u<e.length;u+=1){if(e[u]==="`"&&u+2<e.length&&e[u+1]==="`"&&e[u+2]==="`"){t=!t,u+=2;continue}if(!t&&e[u]==="_"&&e[u-1]!=="_"&&e[u+1]!=="_"&&e[u-1]!=="\\"&&!Zu(e,u)&&!yo(e,u)){let n=u>0?e[u-1]:"",s=u<e.length-1?e[u+1]:"";if(n&&s&&kt(n)&&kt(s))continue;return u}}return-1},Kf=e=>{let t=e.length;for(;t>0&&e[t-1]===`
278
+ `;)t-=1;if(t<e.length){let u=e.slice(0,t),n=e.slice(t);return`${u}_${n}`}return`${e}_`},Zf=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Xn(t)%2!==1)return null;let u=t.indexOf("**"),n=_o(t);return u!==-1&&n!==-1&&u<n?`${t}_**`:null},Xf=e=>{if(!e.match($f))return e;let t=_o(e);if(t===-1)return e;let u=e.substring(t+1);if(!u||zt.test(u)||Ne(e,t)||yt(e,t))return e;if(Bf(e)%2===1){let n=Zf(e);return n!==null?n:Kf(e)}return e},Yf=e=>{let t=Xn(e),u=ko(e);return t%2===0&&u%2===0},Jf=(e,t,u)=>!t||zt.test(t)||Ne(e,u)||yt(e,u)?!0:Zn(e,u,"*"),Qf=e=>{if(If.test(e))return e;let t=e.match(Af);if(!t)return e;let u=t[2],n=e.lastIndexOf(t[1]);return Jf(e,u,n)?e:Uf(e)%2===1?Yf(e)?e:`${e}***`:e},e2=/<[a-zA-Z/][^>]*$/,t2=e=>{let t=e.match(e2);return!t||t.index===void 0||Ne(e,t.index)?e:e.substring(0,t.index).trimEnd()},u2=e=>!e.match(Ff)||e.includes(`
279
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,n2=e=>(e.match(/```/g)||[]).length%2===1,s2=e=>{let t=u2(e);if(t!==null)return t;let u=e.match(Df);if(u&&!n2(e)){let n=u[2];if(!n||zt.test(n))return e;if(yf(e)%2===1)return`${e}\``}return e},wo=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",a2=e=>{let t=0,u=!1;for(let n=0;n<e.length-1;n+=1)e[n]==="`"&&!wo(e,n)&&(u=!u),!u&&e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},o2=e=>{let t=0,u=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"){n+=1;continue}if(e[n]==="`"&&!wo(e,n)){u=!u;continue}!u&&e[n]==="$"&&(n+1<e.length&&e[n+1]==="$"?n+=1:t+=1)}return t},r2=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
280
+ `,t)!==-1&&!e.endsWith(`
281
+ `)?`${e}
282
+ $$`:`${e}$$`},i2=e=>a2(e)%2===0?e:r2(e),l2=e=>o2(e)%2===1?`${e}$`:e,c2=(e,t,u)=>{if(e.substring(t+2).includes(")"))return null;let n=Lf(e,t);if(n===-1||Ne(e,n))return null;let s=n>0&&e[n-1]==="!",a=s?n-1:n,o=e.substring(0,a);if(s)return o;let r=e.substring(n+1,t);return u==="text-only"?`${o}${r}`:`${o}[${r}](streamdown:incomplete-link)`},ha=(e,t)=>{for(let u=0;u<t;u++)if(e[u]==="["&&!Ne(e,u)){if(u>0&&e[u-1]==="!")continue;let n=vo(e,u);if(n===-1)return u;if(n+1<e.length&&e[n+1]==="("){let s=e.indexOf(")",n+2);s!==-1&&(u=s)}}return t},d2=(e,t,u)=>{let n=t>0&&e[t-1]==="!",s=n?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,s);if(n)return a;if(u==="text-only"){let o=ha(e,t);return e.substring(0,o)+e.substring(o+1)}return`${e}](streamdown:incomplete-link)`}if(vo(e,t)===-1){let a=e.substring(0,s);if(n)return a;if(u==="text-only"){let o=ha(e,t);return e.substring(0,o)+e.substring(o+1)}return`${e}](streamdown:incomplete-link)`}return null},Eo=(e,t="protocol")=>{let u=e.lastIndexOf("](");if(u!==-1&&!Ne(e,u)){let n=c2(e,u,t);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!Ne(e,n)){let s=d2(e,n,t);if(s!==null)return s}return e},f2=/^-{1,2}$/,p2=/^[\s]*-{1,2}[\s]+$/,h2=/^={1,2}$/,m2=/^[\s]*={1,2}[\s]+$/,b2=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
283
+ `);if(t===-1)return e;let u=e.substring(t+1),n=e.substring(0,t),s=u.trim();if(f2.test(s)&&!u.match(p2)){let a=n.split(`
284
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}if(h2.test(s)&&!u.match(m2)){let a=n.split(`
285
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}return e},g2=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),x2=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(g2,(t,u)=>Ne(e,u)?t:"\\~"),v2=e=>{var t,u;let n=e.match(Tf);if(n){let s=n[2];if(!s||zt.test(s))return e;let a=e.lastIndexOf(n[1]);if(Ne(e,a)||yt(e,a))return e;if(((t=e.match(fa))==null?void 0:t.length)%2===1)return`${e}~~`}else{let s=e.match(zf);if(s){let a=e.lastIndexOf(s[0].slice(0,2));if(Ne(e,a)||yt(e,a))return e;if(((u=e.match(fa))==null?void 0:u.length)%2===1)return`${e}~`}}return e},$n=e=>e!==!1,y2=e=>e===!0,ze={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},k2=[{handler:{name:"singleTilde",handle:x2,priority:ze.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:_f,priority:ze.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:t2,priority:ze.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:b2,priority:ze.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Eo,priority:ze.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:Qf,priority:ze.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:qf,priority:ze.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Vf,priority:ze.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:Wf,priority:ze.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:Xf,priority:ze.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:s2,priority:ze.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:v2,priority:ze.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:i2,priority:ze.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:l2,priority:ze.INLINE_KATEX},optionKey:"inlineKatex"}],_2=e=>{var t;let u=(t=e==null?void 0:e.linkMode)!=null?t:"protocol";return k2.filter(({handler:n,optionKey:s})=>n.name==="links"?$n(e==null?void 0:e.links)||$n(e==null?void 0:e.images):n.name==="inlineKatex"?y2(e==null?void 0:e.inlineKatex):$n(e==null?void 0:e[s])).map(({handler:n,earlyReturn:s})=>n.name==="links"?{handler:go(bo({},n),{handle:a=>Eo(a,u)}),earlyReturn:u==="protocol"?s:void 0}:{handler:n,earlyReturn:s})},w2=(e,t)=>{var u;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,s=_2(t),a=((u=t==null?void 0:t.handlers)!=null?u:[]).map(r=>{var i;return{handler:go(bo({},r),{priority:(i=r.priority)!=null?i:ze.DEFAULT}),earlyReturn:void 0}}),o=[...s,...a].sort((r,i)=>{var l,p;return((l=r.handler.priority)!=null?l:0)-((p=i.handler.priority)!=null?p:0)});for(let{handler:r,earlyReturn:i}of o)if(n=r.handle(n),i!=null&&i(n))return n;return n},E2=w2;function du(e){return e.trim().startsWith("|")}function A2(e){return/^(?: {4,}|\t)/.test(e)}function Ao(e){let t=e.trim();return t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&(t=t.slice(0,-1)),t.split("|")}function ma(e){if(!du(e))return!1;const t=Ao(e);return t.length===0?!1:t.every(u=>/^\s*:?-+:?\s*$/.test(u))}function C2(e){return"| "+Array(e).fill("---").join(" | ")+" |"}function $2(e){if(e==="")return"";const t=e.split(`
286
+ `),u=[];let n=!1;for(let s=0;s<t.length;s++){const a=t[s];if(/^\s*(```|~~~)/.test(a)){n=!n,u.push(a);continue}if(n){u.push(a);continue}const o=u.length>0?u[u.length-1]:null,r=o!==null&&du(o);if(du(a)&&!A2(a)&&!r&&!ma(a)){const i=s+1<t.length?t[s+1]:null;if(i!==null&&du(i)&&ma(i)){u.length>0&&u[u.length-1].trim()!==""&&u.push(""),u.push(a);continue}if(i!==null&&du(i)){u.length>0&&u[u.length-1].trim()!==""&&u.push(""),u.push(a),u.push(C2(Ao(a).length));continue}u.push(a);continue}u.push(a)}return u.join(`
287
+ `)}const Yn=new qe({html:!1,linkify:!0,breaks:!0});Yn.renderer.rules.table_open=()=>'<div class="md-table-wrap"><table>';Yn.renderer.rules.table_close=()=>"</table></div>";mo.addHook("afterSanitizeAttributes",e=>{e.nodeName==="A"&&e.hasAttribute("href")&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer nofollow"))});function D2(e,t={}){const u=t.streaming?E2(e):e,n=$2(u),s=Yn.render(n);return mo.sanitize(s)}const T2=["innerHTML"],Co=de({__name:"StreamMarkdown",props:{text:{},streaming:{type:Boolean}},setup(e){const t=e,u=Z(()=>D2(t.text,{streaming:t.streaming}));return(n,s)=>(d(),m("div",{class:"stream-md text-sm",innerHTML:u.value},null,8,T2))}}),qt=de({__name:"ExpandableBlock",props:{maxPx:{default:200}},setup(e){const t=e,u=M(!1),n=M(!1),s=M(null);let a=null;function o(){const r=s.value;r&&(n.value=r.scrollHeight>t.maxPx+8)}return tt(()=>{He(o),typeof ResizeObserver<"u"&&s.value&&(a=new ResizeObserver(()=>o()),a.observe(s.value))}),Yt(()=>a==null?void 0:a.disconnect()),ve(u,()=>{u.value||He(o)}),(r,i)=>(d(),m("div",null,[f("div",{ref_key:"inner",ref:s,"data-test":"clamp-inner",class:J(!u.value&&n.value?"overflow-hidden":""),style:Mt(!u.value&&n.value?{maxHeight:e.maxPx+"px"}:void 0)},[tr(r.$slots,"default")],6),n.value?(d(),m("button",{key:0,type:"button","data-test":"expand-toggle",class:"mt-1 inline-flex items-center gap-1 text-[10.5px] font-medium text-accent hover:underline",onClick:i[0]||(i[0]=l=>u.value=!u.value)},[(d(),X(Tt(u.value?g(cr):g(ut)),{size:12})),he(" "+k(u.value?"Show less":"Show more"),1)])):L("",!0)]))}}),S2={class:"mt-1 space-y-1 text-xs"},F2={class:"flex min-w-0 items-center gap-2 font-mono text-fg-muted"},I2={class:"inline-flex min-w-0 items-center gap-1"},M2={class:"truncate"},z2={"data-test":"diff-stats",class:"ml-auto flex shrink-0 items-center gap-2 font-mono text-[10px]"},L2={key:0,class:"text-run"},O2={key:1,class:"text-danger"},R2={class:"overflow-x-auto rounded bg-bg p-2 font-mono"},N2={"data-test":"cmd-command",class:"break-all font-mono text-fg"},P2={"data-test":"cmd-output",class:"overflow-x-auto rounded bg-raised p-2 font-mono text-fg whitespace-pre-wrap"},B2={key:1,class:"text-fg-muted"},U2={"data-test":"read-path",class:"flex min-w-0 items-center gap-1 font-mono text-fg"},H2={class:"truncate"},q2={key:0,class:"ml-2 shrink-0 text-fg-muted"},j2={class:"overflow-x-auto rounded bg-bg p-2 font-mono text-fg-muted whitespace-pre-wrap"},V2={"data-test":"search-query",class:"flex min-w-0 items-center gap-1 font-mono text-fg"},G2={class:"truncate"},W2={"data-test":"search-output",class:"overflow-x-auto rounded bg-bg p-2 font-mono text-fg-muted whitespace-pre-wrap"},K2={class:"grid grid-cols-[auto,1fr] gap-x-3 gap-y-1"},Z2={class:"text-fg-muted"},X2=["data-test"],Y2={class:"overflow-x-auto rounded bg-bg p-2 font-mono text-fg-muted whitespace-pre-wrap"},J2={"data-test":"tool-text",class:"whitespace-pre-wrap text-fg-muted"},$o=de({__name:"ToolDetail",props:{detail:{}},setup(e){const t=e,u=Z(()=>t.detail.type!=="diff"?{del:[],add:[]}:{del:t.detail.oldText.split(`
288
+ `),add:t.detail.newText.split(`
289
+ `)}),n=Z(()=>({add:u.value.add.filter(s=>s.length>0).length,del:u.value.del.filter(s=>s.length>0).length}));return(s,a)=>(d(),m("div",S2,[e.detail.type==="diff"?(d(),m(Q,{key:0},[f("div",F2,[f("span",I2,[B(g(Ou),{size:14,class:"shrink-0"}),f("span",M2,k(e.detail.path),1)]),f("span",z2,[n.value.add?(d(),m("span",L2,"+"+k(n.value.add),1)):L("",!0),n.value.del?(d(),m("span",O2,"−"+k(n.value.del),1)):L("",!0)])]),B(qt,null,{default:ht(()=>[f("div",R2,[(d(!0),m(Q,null,ce(u.value.del,(o,r)=>(d(),m("div",{key:"d"+r,"data-test":"diff-del",class:"whitespace-pre text-danger"},"- "+k(o),1))),128)),(d(!0),m(Q,null,ce(u.value.add,(o,r)=>(d(),m("div",{key:"a"+r,"data-test":"diff-add",class:"whitespace-pre text-run"},"+ "+k(o),1))),128))])]),_:1})],64)):e.detail.type==="command"?(d(),m(Q,{key:1},[f("div",N2,"$ "+k(e.detail.command),1),e.detail.output?(d(),X(qt,{key:0},{default:ht(()=>[f("pre",P2,k(e.detail.output),1)]),_:1})):L("",!0),e.detail.exitCode!==void 0?(d(),m("div",B2,"exit "+k(e.detail.exitCode),1)):L("",!0)],64)):e.detail.type==="read"?(d(),m(Q,{key:2},[f("div",U2,[B(g(Ou),{size:14,class:"shrink-0"}),f("span",H2,k(e.detail.path),1),e.detail.lines?(d(),m("span",q2,k(e.detail.lines),1)):L("",!0)]),e.detail.preview?(d(),X(qt,{key:0},{default:ht(()=>[f("pre",j2,k(e.detail.preview),1)]),_:1})):L("",!0)],64)):e.detail.type==="search"?(d(),m(Q,{key:3},[f("div",V2,[B(g(Hu),{size:14,class:"shrink-0"}),f("span",G2,k(e.detail.query),1)]),e.detail.output?(d(),X(qt,{key:0},{default:ht(()=>[f("pre",W2,k(e.detail.output),1)]),_:1})):L("",!0)],64)):e.detail.type==="fields"?(d(),m(Q,{key:4},[f("dl",K2,[(d(!0),m(Q,null,ce(e.detail.fields,o=>(d(),m(Q,{key:o.label},[f("dt",Z2,k(o.label),1),f("dd",{"data-test":"field-"+o.label,class:"font-mono text-fg break-all"},k(o.value),9,X2)],64))),128))]),e.detail.output?(d(),X(qt,{key:0},{default:ht(()=>[f("pre",Y2,k(e.detail.output),1)]),_:1})):L("",!0)],64)):e.detail.type==="text"?(d(),X(qt,{key:5},{default:ht(()=>[f("p",J2,k(e.detail.text),1)]),_:1})):L("",!0)]))}}),Q2=de({__name:"FueDot",props:{pulsing:{type:Boolean,default:!0}},setup(e){return(t,u)=>(d(),m("span",{"data-test":"fue-dot",class:J(["inline-block h-2 w-2 rounded-full bg-accent",e.pulsing?"animate-pulse motion-reduce:animate-none":""]),"aria-hidden":"true"},null,2))}}),jt=8;function Do(e,t,u,n=jt){const s=e.top+e.height+n,a=e.top-t.height-n,o=u.height-(e.top+e.height),r=e.top,p=s+t.height>u.height-jt&&r>o?"above":"below",c=p==="above"?Math.max(jt,a):s,v=e.left+e.width/2-t.width/2,h=Math.max(jt,u.width-t.width-jt),x=Math.min(Math.max(jt,v),h);return{top:c,left:x,placement:p}}const ep={class:"flex items-center gap-2 font-medium text-fg"},tp={class:"mt-1 text-xs text-fg-muted"},up={class:"mt-2 flex justify-end"},np=de({__name:"FueCallout",props:{title:{},body:{},anchor:{}},emits:["dismiss"],setup(e,{emit:t}){const u=e,n=t,s=M(null),a=M({visibility:"hidden"});function o(){const i=s.value;if(!i)return;const l={width:i.offsetWidth||256,height:i.offsetHeight||96},p={width:window.innerWidth,height:window.innerHeight};if(u.anchor){const c=Do(u.anchor,l,p);a.value={top:`${c.top}px`,left:`${c.left}px`,visibility:"visible"}}else a.value={top:`${Math.max(8,p.height/2-l.height/2)}px`,left:`${Math.max(8,p.width/2-l.width/2)}px`,visibility:"visible"}}function r(i){i.key==="Escape"&&n("dismiss")}return tt(()=>{o(),window.addEventListener("keydown",r),window.addEventListener("resize",o)}),Yt(()=>{window.removeEventListener("keydown",r),window.removeEventListener("resize",o)}),(i,l)=>(d(),X(Jt,{to:"body"},[f("div",{ref_key:"card",ref:s,"data-test":"fue-callout",class:"fixed z-50 w-64 rounded-lg border border-border bg-raised p-3 text-sm shadow-lg",style:Mt(a.value),role:"dialog"},[f("p",ep,[l[1]||(l[1]=f("span",{class:"inline-block h-2 w-2 rounded-full bg-accent","aria-hidden":"true"},null,-1)),he(" "+k(e.title),1)]),f("p",tp,k(e.body),1),f("div",up,[f("button",{"data-test":"fue-dismiss",type:"button",class:"rounded bg-accent px-2 py-1 text-xs font-medium text-white hover:bg-accent-hover",onClick:l[0]||(l[0]=p=>n("dismiss"))},k(i.$t("fue.gotIt")),1)])],4)]))}}),To="xacpx.fue.v1.";function sp(e){try{return localStorage.getItem(To+e)==="1"}catch{return!1}}function ap(e){try{localStorage.setItem(To+e,"1")}catch{}}function op(e){const t=M(sp(e)?"acknowledged":"unseen");function u(){t.value==="unseen"&&(t.value="engaging")}function n(){t.value="acknowledged",ap(e)}return{status:t,engage:u,dismiss:n}}const Jn={read:ir,search:Hu,execute:Mr,edit:$r,think:Nn,other:Ia},rp={running:it,success:Qt,error:Ge},ip=["read","search","execute","edit","think","other"],lp=["running","success","error"],ba=5;function cp(e){const t=new Map,u=new Map;for(const n of e)t.set(n.kind,(t.get(n.kind)??0)+1),u.set(n.status,(u.get(n.status)??0)+1);return{kinds:ip.filter(n=>t.has(n)).map(n=>({icon:Jn[n],count:t.get(n),label:n})),statuses:lp.filter(n=>u.has(n)).map(n=>({icon:rp[n],count:u.get(n),label:n}))}}const dp={class:"overflow-hidden rounded-lg border border-border bg-surface text-xs shadow-e1"},fp={class:"inline-flex items-center gap-1.5 text-[11.5px] font-semibold text-fg-muted"},pp={key:3,"data-test":"tool-count",class:"font-mono text-[10.5px] text-fg-muted"},hp={"data-test":"tool-summary",class:"ml-1 flex items-center gap-1.5 text-[10.5px] text-fg-muted"},mp=["data-test"],bp={class:"tabular-nums"},gp={key:0,class:"text-fg-muted"},xp=["data-test"],vp={class:"tabular-nums"},yp={key:1,class:"space-y-1 border-t border-border px-3 pb-2.5 pt-2"},kp=["onClick"],_p={class:"truncate font-mono text-[11px] text-fg"},wp={key:0,class:"ml-auto font-mono text-[10.5px] text-fg-muted"},Ep={key:0,class:"px-2 pb-2 pt-1"},Ap=de({__name:"ToolCallPanel",props:{steps:{}},setup(e){const t=e,u=M(t.steps.length<=ba),n=M(new Set);function s(h){n.value.has(h)?n.value.delete(h):n.value.add(h),n.value=new Set(n.value)}const a=Z(()=>cp(t.steps)),o=op("tool-group-collapse"),r=Z(()=>t.steps.length>ba),i=Z(()=>r.value&&o.status.value!=="acknowledged"),l=M(null),p=M(null);function c(){var h;if(u.value=!u.value,i.value){const x=(h=l.value)==null?void 0:h.getBoundingClientRect();x&&(p.value={top:x.top,left:x.left,width:x.width,height:x.height}),o.engage()}}function v(h){return h===void 0?"":h>=1e3?`${(h/1e3).toFixed(1)}s`:`${h}ms`}return(h,x)=>(d(),m("div",dp,[f("button",{ref_key:"header",ref:l,type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-bg",onClick:c},[u.value?(d(),X(g(ut),{key:0,size:13,class:"text-fg-muted"})):(d(),X(g(xt),{key:1,size:13,class:"text-fg-muted"})),f("span",fp,[B(g(Ia),{size:13}),he(" "+k(h.$t("tools.toolSteps")),1)]),i.value?(d(),X(Q2,{key:2,pulsing:g(o).status.value==="unseen"},null,8,["pulsing"])):(d(),m("span",pp,k(e.steps.length),1)),f("span",hp,[(d(!0),m(Q,null,ce(a.value.kinds,A=>(d(),m("span",{key:"k"+A.label,"data-test":"sum-"+A.label,class:"inline-flex items-center gap-0.5"},[(d(),X(Tt(A.icon),{size:11})),f("span",bp,k(A.count),1)],8,mp))),128)),a.value.statuses.length?(d(),m("span",gp,"·")):L("",!0),(d(!0),m(Q,null,ce(a.value.statuses,A=>(d(),m("span",{key:"s"+A.label,"data-test":"sum-"+A.label,class:J(["inline-flex items-center gap-0.5",A.label==="success"?"text-run":A.label==="error"?"text-danger":"text-fg-muted"])},[(d(),X(Tt(A.icon),{size:11,class:J(A.label==="running"?"animate-spin motion-reduce:animate-none":"")},null,8,["class"])),f("span",vp,k(A.count),1)],10,xp))),128))])],512),g(o).status.value==="engaging"?(d(),X(np,{key:0,title:h.$t("tools.collapsed"),body:h.$t("tools.collapsedBody"),anchor:p.value,onDismiss:x[0]||(x[0]=A=>g(o).dismiss())},null,8,["title","body","anchor"])):L("",!0),u.value?(d(),m("ul",yp,[(d(!0),m(Q,null,ce(e.steps,A=>(d(),m("li",{key:A.toolCallId},[f("button",{type:"button","data-test":"tool-row",class:"flex w-full items-center gap-2 rounded text-left text-[12px] hover:bg-fg/5",onClick:T=>s(A.toolCallId)},[f("span",{class:J(["grid h-4 w-4 shrink-0 place-items-center rounded-full",A.status==="success"?"bg-run/15":A.status==="running"?"bg-accent/15":"bg-danger/15"])},[A.status==="success"?(d(),X(g(Qt),{key:0,"data-test":"step-status-success",size:9,class:"text-run"})):A.status==="running"?(d(),X(g(it),{key:1,"data-test":"step-status-running",size:9,class:"animate-spin motion-reduce:animate-none text-accent"})):(d(),X(g(St),{key:2,"data-test":"step-status-error",size:9,class:"text-danger"}))],2),(d(),X(Tt(g(Jn)[A.kind]),{size:12,class:"shrink-0 text-fg-muted"})),f("span",_p,k(A.title),1),A.durationMs!==void 0?(d(),m("span",wp,k(v(A.durationMs)),1)):L("",!0)],8,kp),n.value.has(A.toolCallId)&&A.detail?(d(),m("div",Ep,[B($o,{detail:A.detail},null,8,["detail"])])):L("",!0)]))),128))])):L("",!0)]))}}),Cp={class:"overflow-hidden rounded-lg border border-border bg-surface text-xs shadow-e1"},$p={key:2,"data-test":"reasoning-shimmer",class:"ml-1 inline-block h-1.5 w-1.5 animate-pulse motion-reduce:animate-none rounded-full bg-fg-muted","aria-hidden":"true"},Dp={key:0,"data-test":"reasoning-body",class:"whitespace-pre-wrap border-t border-border px-3 pb-2.5 pt-2 text-[12px] leading-relaxed text-fg-muted"},So=de({__name:"ReasoningPanel",props:{reasoning:{},defaultOpen:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){const u=M(e.defaultOpen??!1),n=Z(()=>u.value);return(s,a)=>(d(),m("div",Cp,[f("button",{type:"button",class:"flex w-full items-center gap-1.5 px-3 py-2 text-left text-fg-muted",onClick:a[0]||(a[0]=o=>u.value=!u.value)},[n.value?(d(),X(g(ut),{key:0,size:13})):(d(),X(g(xt),{key:1,size:13})),B(g(Nn),{size:13,class:J(e.streaming?"text-accent":"")},null,8,["class"]),f("span",{class:J(["text-[12px] font-medium",e.streaming?"shimmer-text":""])},k(e.streaming?s.$t("reasoning.reasoningStreaming"):s.$t("reasoning.reasoning")),3),e.streaming?(d(),m("span",$p)):L("",!0)]),n.value?(d(),m("p",Dp,k(e.reasoning),1)):L("",!0)]))}}),Tp={class:"truncate font-mono text-[11.5px] text-fg"},Sp={class:"ml-auto flex shrink-0 items-center gap-2"},Fp={key:0,class:"font-mono text-[10.5px] text-fg-muted"},Ip={key:0,class:"border-t border-border px-3 pb-2.5 pt-2"},Mp={key:0,"data-test":"tool-step-error",class:"mb-1.5 flex items-start gap-1.5 rounded bg-danger/10 px-2 py-1.5 text-danger"},zp={class:"whitespace-pre-wrap break-words font-mono text-[11px] leading-relaxed"},Lp=de({__name:"ToolStepCard",props:{step:{}},setup(e){const t=e,u=M(!0),n=Z(()=>{const o=t.step.detail;return o?o.type==="command"||o.type==="search"||o.type==="fields"?o.output??"":o.type==="read"?o.preview??"":o.type==="text"?o.text??"":"":""}),s=Z(()=>{var l;if(t.step.status!=="error")return!1;const o=(l=t.step.error)==null?void 0:l.trim();if(!o)return!1;const r=o.indexOf("…(truncated)"),i=(r>=0?o.slice(0,r):o).trim();return i?!n.value.includes(i):!0});function a(o){return o===void 0?"":o>=1e3?`${(o/1e3).toFixed(1)}s`:`${o}ms`}return(o,r)=>(d(),m("div",{"data-test":"tool-step-card",class:J(["overflow-hidden rounded-lg border bg-surface text-xs shadow-e1",e.step.status==="error"?"border-danger/40":"border-border"])},[f("button",{type:"button","data-test":"tool-step-header",class:"flex w-full items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-bg",onClick:r[0]||(r[0]=i=>u.value=!u.value)},[u.value?(d(),X(g(ut),{key:0,size:13,class:"text-fg-muted"})):(d(),X(g(xt),{key:1,size:13,class:"text-fg-muted"})),(d(),X(Tt(g(Jn)[e.step.kind]),{size:13,class:"shrink-0 text-fg-muted"})),f("span",Tp,k(e.step.title),1),f("span",Sp,[e.step.durationMs!==void 0?(d(),m("span",Fp,k(a(e.step.durationMs)),1)):L("",!0),e.step.status==="success"?(d(),X(g(Qt),{key:1,"data-test":"step-status-success",size:13,class:"text-run"})):e.step.status==="running"?(d(),X(g(it),{key:2,"data-test":"step-status-running",size:13,class:"animate-spin motion-reduce:animate-none text-accent"})):(d(),X(g(St),{key:3,"data-test":"step-status-error",size:13,class:"text-danger"}))])]),u.value?(d(),m("div",Ip,[s.value?(d(),m("div",Mp,[B(g(St),{size:13,class:"mt-0.5 shrink-0"}),f("span",zp,k(e.step.error),1)])):L("",!0),e.step.detail?(d(),X($o,{key:1,detail:e.step.detail},null,8,["detail"])):L("",!0)])):L("",!0)],2))}}),Op={class:"space-y-2.5"},ga=de({__name:"TurnParts",props:{parts:{},streaming:{type:Boolean}},setup(e){const t=e,u=n=>t.streaming===!0&&n===t.parts.length-1;return(n,s)=>(d(),m("div",Op,[(d(!0),m(Q,null,ce(e.parts,(a,o)=>(d(),m(Q,{key:o},[a.type==="reasoning"&&a.text.trim()?(d(),X(So,{key:0,reasoning:a.text,streaming:u(o),"default-open":!1},null,8,["reasoning","streaming"])):a.type==="tool"?(d(),X(Lp,{key:1,step:a.step},null,8,["step"])):(d(),X(Co,{key:2,text:a.text,streaming:u(o),class:J(["text-[14px] leading-relaxed text-fg",u(o)?"caret":""])},null,8,["text","streaming","class"]))],64))),128))]))}}),Rp=["aria-label","title"],Fo=de({__name:"CopyButton",props:{text:{}},setup(e){const t=e,u=M(!1);let n=null;async function s(){try{await navigator.clipboard.writeText(t.text)}catch{const a=document.createElement("textarea");a.value=t.text,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select();try{document.execCommand("copy")}catch{}document.body.removeChild(a)}u.value=!0,n&&clearTimeout(n),n=setTimeout(()=>u.value=!1,1200)}return(a,o)=>(d(),m("button",{"data-test":"copy-button",type:"button","aria-label":a.$t("copy.copy"),title:u.value?a.$t("copy.copied"):a.$t("copy.copy"),class:"rounded p-1 leading-none text-fg-muted hover:bg-fg/5 hover:text-fg",onClick:Ae(s,["stop"])},[u.value?(d(),X(g(Qt),{key:0,size:14,class:"text-run"})):(d(),X(g(hr),{key:1,size:14}))],8,Rp))}}),Np={class:"mt-1 flex flex-wrap gap-2"},Pp=["src","alt"],Bp={key:1,"data-test":"att-file",class:"flex items-center gap-2 rounded-lg border border-border bg-surface px-3 py-2 text-[13px]"},Up={class:"max-w-[180px] truncate"},Hp={class:"text-fg-muted"},qp=de({__name:"MessageAttachments",props:{attachments:{}},setup(e){function t(u){return u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(0)} KB`:`${(u/1024/1024).toFixed(1)} MB`}return(u,n)=>(d(),m("div",Np,[(d(!0),m(Q,null,ce(e.attachments,s=>(d(),m(Q,{key:s.id},[s.kind==="image"&&s.previewUrl?(d(),m("img",{key:0,"data-test":"att-image",src:s.previewUrl,alt:s.filename,class:"max-h-40 max-w-[200px] rounded-lg border border-border object-cover"},null,8,Pp)):(d(),m("div",Bp,[B(g(fu),{size:16,class:"shrink-0 text-fg-muted"}),f("span",Up,k(s.filename),1),f("span",Hp,k(t(s.size)),1)]))],64))),128))]))}}),jp={class:"relative flex-1 overflow-hidden"},Vp={class:"mx-auto max-w-3xl space-y-5"},Gp={key:0,"data-test":"loading-older",class:"flex justify-center py-1 text-[11px] text-fg-muted"},Wp=["data-scheduled-task"],Kp={class:"flex max-w-[80%] flex-col items-end"},Zp=["title"],Xp={class:"whitespace-pre-wrap text-[14px] leading-relaxed text-fg"},Yp={key:1,class:"mt-1.5 flex items-center gap-2"},Jp={"data-test":"msg-failed",class:"inline-flex items-center gap-1 text-[11px] font-medium text-danger"},Qp=["title","onClick"],eh={key:1,class:"cv-row group flex gap-2.5"},th={class:"mt-0.5 grid h-6 w-6 shrink-0 place-items-center overflow-hidden rounded-lg border border-border bg-surface"},uh={"data-test":"msg-actions",class:"flex items-center gap-1.5 pt-0.5 text-fg-muted"},nh={key:1,"data-test":"msg-time",class:"font-mono text-[10.5px] tabular-nums"},sh={key:2,"data-test":"msg-cancelled",class:"inline-flex items-center gap-1 text-[11px] text-warn"},ah={key:3,"data-test":"msg-failed",class:"inline-flex items-center gap-1 text-[11px] text-danger"},oh={key:1,class:"flex gap-2.5"},rh={class:"mt-0.5 grid h-6 w-6 shrink-0 place-items-center overflow-hidden rounded-lg border border-border bg-surface"},ih={"data-test":"msg-streaming",class:"min-w-0 flex-1"},lh=48,ch=240,dh=de({__name:"MessageList",props:{messages:{},liveTurn:{},driver:{},hasMoreOlder:{type:Boolean},loadingOlder:{type:Boolean},sessionKey:{},scrollToScheduled:{}},emits:["resend","loadOlder"],setup(e,{emit:t}){const u=e,n=t;function s(c){var v;return c.scheduled??((v=c.structured)==null?void 0:v.scheduled)}const a=M(null),o=M(!0);let r=null;function i(){const c=a.value;c&&(o.value=c.scrollHeight-c.scrollTop-c.clientHeight<=lh,c.scrollTop<=ch&&u.hasMoreOlder&&!u.loadingOlder&&r===null&&(r=c.scrollHeight-c.scrollTop,n("loadOlder")))}ve(()=>u.loadingOlder,(c,v)=>{if(!(v&&!c)||r===null)return;const h=r;r=null,He(()=>{const x=a.value;x&&(x.scrollTop=x.scrollHeight-h)})});let l=0;function p(c=!1){const v=a.value;if(!v||(typeof v.scrollTo=="function"?v.scrollTo({top:v.scrollHeight,behavior:c?"smooth":"auto"}):v.scrollTop=v.scrollHeight,o.value=!0,c||typeof requestAnimationFrame!="function"))return;l&&cancelAnimationFrame(l);let h=0;const x=()=>{l=0;const A=a.value;A&&(A.scrollHeight-A.scrollTop-A.clientHeight>1&&(A.scrollTop=A.scrollHeight),++h<4&&(l=requestAnimationFrame(x)))};l=requestAnimationFrame(x)}return ve(()=>u.sessionKey,()=>{o.value=!0,r=null,He(()=>p(!1))}),ve(()=>{var c;return(c=u.scrollToScheduled)==null?void 0:c.nonce},()=>{var v;const c=(v=u.scrollToScheduled)==null?void 0:v.taskId;c&&He(()=>{var x;const h=(x=a.value)==null?void 0:x.querySelector(`[data-scheduled-task="${c}"]`);h&&typeof h.scrollIntoView=="function"&&(h.scrollIntoView({behavior:"smooth",block:"center"}),o.value=!1)})}),ve(()=>{const c=u.liveTurn,v=c==null?void 0:c.parts[c.parts.length-1],h=v?v.type==="tool"?v.step.status:v.text.length:0;return[u.messages.length,(c==null?void 0:c.parts.length)??0,h]},()=>{o.value&&He(()=>p(!1))}),(c,v)=>(d(),m("div",jp,[f("div",{ref_key:"scroller",ref:a,"data-test":"msg-scroller",class:"thin-scroll h-full overflow-y-auto px-3 py-4 lg:px-5 lg:py-5",onScroll:i},[f("div",Vp,[e.loadingOlder?(d(),m("div",Gp,[B(g(it),{size:13,class:"animate-spin motion-reduce:animate-none"})])):L("",!0),(d(!0),m(Q,null,ce(e.messages,(h,x)=>{var A,T,D,C,y,_,w,I;return d(),m(Q,{key:h.id!==void 0?`p${h.id}`:`o${h.createdAt}:${x}`},[h.direction==="in"?(d(),m("div",{key:0,class:"cv-row flex justify-end","data-scheduled-task":(A=s(h))==null?void 0:A.taskId},[f("div",Kp,[s(h)?(d(),m("span",{key:0,"data-test":"msg-scheduled-badge",class:"mb-1 inline-flex items-center gap-1 rounded-full bg-accent/10 px-2 py-0.5 text-[10.5px] font-medium text-accent",title:`${c.$t("chat.scheduledFor")} ${g(Bn)(s(h).executeAt)}`},[B(g(Fa),{size:11}),he(k(c.$t("chat.scheduled")),1)],8,Zp)):L("",!0),f("div",{"data-test":"msg-in",class:J(["rounded-2xl rounded-tr-md border px-3.5 py-2",h.failed?"border-danger/30 bg-danger/5":"border-accent/15 bg-accent/10"])},[f("p",Xp,k(h.text),1),(T=h.attachments)!=null&&T.length?(d(),X(qp,{key:0,attachments:h.attachments},null,8,["attachments"])):L("",!0)],2),h.failed?(d(),m("div",Yp,[f("span",Jp,[B(g(_s),{size:12,class:"shrink-0"}),he(k(c.$t("chat.failedToSend")),1)]),f("button",{type:"button","data-test":"msg-resend",class:"inline-flex items-center gap-1 rounded-md border border-accent/30 bg-accent/10 px-2 py-0.5 text-[11px] font-medium text-accent transition-colors hover:bg-accent/20",title:c.$t("chat.resendThis"),onClick:N=>n("resend",h)},[B(g(Tr),{size:11}),he(k(c.$t("chat.resend")),1)],8,Qp)])):L("",!0)])],8,Wp)):(d(),m("div",eh,[f("div",th,[B(In,{driver:e.driver,size:15},null,8,["driver"])]),f("div",{"data-test":"msg-out",class:J(["min-w-0 flex-1 space-y-2.5",h.failed?"rounded-lg ring-1 ring-danger/40":""])},[(C=(D=h.structured)==null?void 0:D.parts)!=null&&C.length?(d(),X(ga,{key:0,parts:h.structured.parts},null,8,["parts"])):(d(),m(Q,{key:1},[(_=(y=h.structured)==null?void 0:y.toolSteps)!=null&&_.length?(d(),X(Ap,{key:0,steps:h.structured.toolSteps},null,8,["steps"])):L("",!0),(I=(w=h.structured)==null?void 0:w.reasoning)!=null&&I.trim()?(d(),X(So,{key:1,reasoning:h.structured.reasoning,"default-open":!1},null,8,["reasoning"])):L("",!0),h.text?(d(),X(Co,{key:2,text:h.text,class:"text-[14px] leading-relaxed text-fg"},null,8,["text"])):L("",!0)],64)),f("div",uh,[h.text?(d(),X(Fo,{key:0,text:h.text},null,8,["text"])):L("",!0),g(Ss)(h.createdAt)?(d(),m("span",nh,k(g(Ss)(h.createdAt)),1)):L("",!0),h.status==="cancelled"?(d(),m("span",sh,[B(g(dr),{size:12}),he(" "+k(c.$t("chat.stopped")),1)])):L("",!0),h.failed?(d(),m("span",ah,[B(g(_s),{size:11}),he(k(c.$t("chat.failed")),1)])):L("",!0)])],2)]))],64)}),128)),e.liveTurn&&e.liveTurn.parts.length?(d(),m("div",oh,[f("div",rh,[B(In,{driver:e.driver,size:15},null,8,["driver"])]),f("div",ih,[B(ga,{parts:e.liveTurn.parts,streaming:!0},null,8,["parts"])])])):L("",!0)])],544),we(f("button",{"data-test":"jump-latest",type:"button",class:"absolute bottom-3 left-1/2 -translate-x-1/2 rounded-full border border-border bg-raised px-3 py-1 text-xs text-fg-muted shadow hover:bg-fg/5",onClick:v[0]||(v[0]=h=>p(!0))},k(c.$t("chat.jumpLatest")),513),[[Bu,!o.value]])]))}}),fh=or(dh,[["__scopeId","data-v-78a5b86b"]]),Io="xacpx.composer-drafts.v1";function Mo(){try{const e=sessionStorage.getItem(Io);return e?JSON.parse(e):{}}catch{return{}}}function ph(e){try{sessionStorage.setItem(Io,JSON.stringify(e))}catch{}}function xa(e){return e?Mo()[e]??"":""}function va(e,t){if(!e)return;const u=Mo();t?u[e]=t:delete u[e],ph(u)}const hh={class:"mb-1 text-[11px] font-semibold uppercase tracking-wide text-fg-muted"},mh={class:"flex items-baseline justify-between tabular-nums"},bh={class:"text-fg"},gh={class:"text-fg-muted"},xh={class:"mb-1 mt-3 text-[11px] font-semibold uppercase tracking-wide text-fg-muted"},vh={class:"space-y-0.5"},yh={key:0,class:"flex justify-between tabular-nums"},kh={class:"text-fg-muted"},_h={class:"text-fg"},wh={class:"mb-1 mt-3 text-[11px] font-semibold uppercase tracking-wide text-fg-muted"},Eh={class:"flex justify-between tabular-nums"},Ah={class:"text-fg-muted"},Ch={class:"text-fg"},$h=de({__name:"UsagePopover",props:{used:{},size:{},pct:{},cost:{},breakdown:{},anchor:{}},emits:["dismiss"],setup(e,{emit:t}){const u=e,n=t,s=M(null),a=M({visibility:"hidden"}),o=[{key:"inputTokens",label:"chat.usage.input"},{key:"outputTokens",label:"chat.usage.output"},{key:"cachedReadTokens",label:"chat.usage.cacheRead"},{key:"cachedWriteTokens",label:"chat.usage.cacheWrite"},{key:"thoughtTokens",label:"chat.usage.thinking"},{key:"totalTokens",label:"chat.usage.total"}];function r(v){return typeof v=="number"?v.toLocaleString():null}function i(){var x,A;const v=(x=u.cost)==null?void 0:x.amount;if(typeof v!="number")return null;const h=(A=u.cost)==null?void 0:A.currency;try{if(h)return new Intl.NumberFormat(void 0,{style:"currency",currency:h,maximumFractionDigits:4}).format(v)}catch{}return h?`${v} ${h}`:String(v)}function l(){const v=s.value;if(!v)return;const h={width:v.offsetWidth||240,height:v.offsetHeight||160},x={width:window.innerWidth,height:window.innerHeight};if(u.anchor){const A=Do(u.anchor,h,x);a.value={top:`${A.top}px`,left:`${A.left}px`,visibility:"visible"}}else a.value={top:`${Math.max(8,x.height/2-h.height/2)}px`,left:`${Math.max(8,x.width/2-h.width/2)}px`,visibility:"visible"}}function p(v){v.key==="Escape"&&n("dismiss")}function c(v){s.value&&!s.value.contains(v.target)&&n("dismiss")}return tt(()=>{l(),window.addEventListener("keydown",p),window.addEventListener("resize",l),setTimeout(()=>document.addEventListener("pointerdown",c),0)}),Yt(()=>{window.removeEventListener("keydown",p),window.removeEventListener("resize",l),document.removeEventListener("pointerdown",c)}),(v,h)=>(d(),X(Jt,{to:"body"},[f("div",{ref_key:"card",ref:s,"data-test":"usage-popover",class:"fixed z-[60] w-60 rounded-lg border border-border bg-raised p-3 text-sm shadow-e2",style:Mt(a.value),role:"dialog"},[f("p",hh,k(v.$t("chat.usage.contextWindow")),1),f("div",mh,[f("span",bh,k(e.used.toLocaleString())+" / "+k(e.size.toLocaleString()),1),f("span",gh,k(e.pct)+"%",1)]),e.breakdown?(d(),m(Q,{key:0},[f("p",xh,k(v.$t("chat.usage.tokens")),1),f("dl",vh,[(d(),m(Q,null,ce(o,x=>(d(),m(Q,{key:x.key},[r(e.breakdown[x.key])!==null?(d(),m("div",yh,[f("dt",kh,k(v.$t(x.label)),1),f("dd",_h,k(r(e.breakdown[x.key])),1)])):L("",!0)],64))),64))])],64)):L("",!0),i()!==null?(d(),m(Q,{key:1},[f("p",wh,k(v.$t("chat.usage.cost")),1),f("div",Eh,[f("span",Ah,k(v.$t("chat.usage.cumulative")),1),f("span",Ch,k(i()),1)])],64)):L("",!0)],4)]))}}),Dh=_t("session-controls",()=>{const e=M(void 0),t=M([]),u=M(!1),n=M("");function s(){e.value=void 0,t.value=[],n.value=""}async function a(r,i){if(!r||!i){s();return}u.value=!0,n.value="";try{const l=await re.rpc(r,"control.session.model.get",{sessionAlias:i});if(Ft(l)){s();return}e.value=typeof l.current=="string"?l.current:void 0,t.value=Array.isArray(l.available)?l.available:[]}catch{s()}finally{u.value=!1}}async function o(r,i,l){n.value="";const p=e.value;e.value=l;try{const c=await re.rpc(r,"control.session.model.set",{sessionAlias:i,modelId:l});return Ft(c)?(e.value=p,n.value=c.error.message,!1):!0}catch(c){return e.value=p,n.value=c instanceof Error?c.message:"set-failed",!1}}return{current:e,available:t,loading:u,error:n,reset:s,loadModel:a,setModel:o}}),Th=new Set(["minimal","low","medium","high","xhigh","max"]);function ya(e){const t=/^(.+)\[([a-z]+)\]$/.exec(e);return t&&Th.has(t[2])?`${t[1]}/${t[2]}`:e}const Sh={class:"relative rounded-lg border border-border bg-surface shadow-e2 focus-within:border-accent/50 transition-colors"},Fh={key:0,class:"flex flex-wrap gap-2 px-2.5 pt-2.5 pb-1"},Ih=["src","alt"],Mh={class:"max-w-[120px] truncate text-fg"},zh={key:1,class:"text-fg-muted"},Lh={key:2,class:"text-danger font-semibold"},Oh=["title","onClick"],Rh={key:1,"data-test":"attach-rejected",class:"block px-3 pt-2 text-xs text-danger"},Nh={key:2,"data-test":"cmd-menu",role:"listbox",class:"absolute bottom-full inset-x-2.5 z-20 mb-2 max-h-56 overflow-auto rounded-md border border-border bg-raised py-1 shadow-e2"},Ph=["aria-selected","onMousedown","onMouseenter"],Bh={class:"shrink-0 font-medium text-fg"},Uh={key:0,class:"truncate text-fg-muted"},Hh=["placeholder"],qh={class:"flex items-center justify-between px-2.5 pb-2.5 pt-0.5"},jh={key:0,class:"relative flex items-center gap-2"},Vh=["disabled"],Gh={class:"font-mono text-[11.5px] font-medium text-fg"},Wh={key:0,"data-test":"model-menu",class:"absolute bottom-full left-0 z-10 mb-1 max-h-48 min-w-40 overflow-y-auto rounded-lg border border-border bg-raised shadow-lg"},Kh=["onClick"],Zh={class:"font-mono"},Xh={key:1,"data-test":"model-error",class:"text-xs text-danger"},Yh=["title"],Jh={class:"relative h-1 w-8 shrink-0 overflow-hidden rounded-full bg-border"},Qh={class:"shrink-0 text-[11.5px] font-medium tabular-nums text-fg-muted"},e3={key:1},t3={class:"flex items-center gap-1.5"},u3=["title"],n3=["disabled"],s3=de({__name:"PromptInput",props:{busy:{type:Boolean},draftKey:{},instanceId:{},sessionAlias:{}},emits:["send","cancel"],setup(e,{emit:t}){const u=e,n=t,s=Ra(),a=Dh(),o=wt(),r=Z(()=>{const $=o.sessionUsage;if(!$||$.size<=0)return null;const E=Math.min(100,Math.round($.used/$.size*100)),S=E>=90?"danger":E>=75?"warn":"accent";return{used:$.used,size:$.size,pct:E,tone:S,cost:$.cost,breakdown:$.breakdown}}),i=M(!1),l=M(null);function p($){const E=$.currentTarget.getBoundingClientRect();l.value={top:E.top,left:E.left,width:E.width,height:E.height},i.value=!i.value}const c=M(!1);ve(()=>[u.instanceId,u.sessionAlias],([$,E])=>{a.loadModel($??null,E??null),c.value=!1},{immediate:!0});async function v($){c.value=!1,u.instanceId&&u.sessionAlias&&await a.setModel(u.instanceId,u.sessionAlias,$)}const h=M(xa(u.draftKey??"")),x=M(null),A=M(null),T=M(!1),D=M(0),C=Z(()=>{const $=h.value;return!$.startsWith("/")||$.includes(`
290
+ `)||$.slice(1).includes(" ")?null:$.slice(1).toLowerCase()}),y=Z(()=>{const $=C.value;return $===null?[]:o.sessionCommands.filter(E=>E.name.toLowerCase().startsWith($)).slice(0,8)});ve(y,$=>{T.value=$.length>0,D.value=0});function _($){h.value=`/${$} `,T.value=!1,He(()=>{var E;return(E=x.value)==null?void 0:E.focus()})}function w(){var $;($=A.value)==null||$.click()}async function I($){const E=$.target;E.files&&await s.addFiles(Array.from(E.files)),E.value=""}async function N($){var S;const E=Array.from(((S=$.clipboardData)==null?void 0:S.files)??[]);E.length>0&&($.preventDefault(),await s.addFiles(E))}async function ue($){var S;const E=Array.from(((S=$.dataTransfer)==null?void 0:S.files)??[]);E.length>0&&($.preventDefault(),await s.addFiles(E))}ve(h,$=>va(u.draftKey??"",$)),ve(()=>u.draftKey,($,E)=>{E&&va(E,h.value),h.value=xa($??"")}),ve(()=>s.insertRequest,$=>{!$||$.key!==(u.draftKey??"")||(h.value=h.value.trim()?`${h.value.trimEnd()} ${$.text}`:$.text,He(()=>{var E;return(E=x.value)==null?void 0:E.focus()}))});const ee=M([]);let W=-1;function z(){if(u.busy||s.uploading)return;const $=h.value.trim(),E=s.pending.filter(ae=>ae.status==="ready");if(!$&&E.length===0)return;const S=E.map(ae=>({id:ae.id,filePath:ae.filePath,fileName:ae.filename,mimeType:ae.mimeType,kind:ae.kind,size:ae.size,...ae.previewUrl?{previewUrl:ae.previewUrl}:{}}));n("send",$,S),s.clearAttachments(),$&&ee.value[ee.value.length-1]!==$&&ee.value.push($),W=-1,h.value=""}function U($){if(ee.value.length!==0){if($===-1)W=W===-1?ee.value.length-1:Math.max(0,W-1);else{if(W===-1)return;if(W=W+1,W>=ee.value.length){W=-1,h.value="";return}}h.value=ee.value[W]}}function q($){var S,ae;if($.isComposing)return;if(T.value&&y.value.length>0){if($.key==="ArrowDown"){D.value=(D.value+1)%y.value.length,$.preventDefault();return}if($.key==="ArrowUp"){D.value=(D.value-1+y.value.length)%y.value.length,$.preventDefault();return}if($.key==="Enter"||$.key==="Tab"){const V=y.value[D.value];V&&_(V.name),$.preventDefault();return}if($.key==="Escape"){T.value=!1,$.preventDefault();return}}if($.key==="Escape"){u.busy&&(n("cancel"),$.preventDefault());return}if($.key==="Enter"&&!$.shiftKey){z(),$.preventDefault();return}const E=(((S=x.value)==null?void 0:S.selectionStart)??0)===0&&(((ae=x.value)==null?void 0:ae.selectionEnd)??0)===0;if($.key==="ArrowUp"&&E){U(-1),$.preventDefault();return}if($.key==="ArrowDown"&&W!==-1&&E){U(1),$.preventDefault();return}}function R(){W=-1}return($,E)=>(d(),m("form",{class:"relative border-t border-border px-0 pt-3 lg:px-3 lg:pt-3",onSubmit:Ae(z,["prevent"]),onDrop:Ae(ue,["prevent"]),onDragover:E[4]||(E[4]=Ae(()=>{},["prevent"]))},[f("input",{ref_key:"fileInput",ref:A,type:"file",multiple:"",class:"hidden","data-test":"attach-input",onChange:I},null,544),f("div",Sh,[g(s).pending.length?(d(),m("div",Fh,[(d(!0),m(Q,null,ce(g(s).pending,S=>(d(),m("div",{key:S.id,class:"flex items-center gap-1.5 rounded-md border border-border bg-raised px-2 py-1 text-[12px]"},[S.previewUrl?(d(),m("img",{key:0,src:S.previewUrl,class:"h-6 w-6 rounded object-cover",alt:S.filename},null,8,Ih)):L("",!0),f("span",Mh,k(S.filename),1),S.status==="uploading"?(d(),m("span",zh,"…")):S.status==="error"?(d(),m("span",Lh,"!")):L("",!0),f("button",{type:"button",title:$.$t("chat.attach.remove"),class:"text-fg-muted hover:text-fg transition-colors",onClick:ae=>g(s).removeAttachment(S.id)},[B(g(Ge),{size:12})],8,Oh)]))),128))])):L("",!0),g(s).rejection?(d(),m("span",Rh,k(g(s).rejection.reason==="too-many"?$.$t("chat.attach.tooMany"):$.$t("chat.attach.tooLarge",{name:g(s).rejection.filename})),1)):L("",!0),T.value&&y.value.length?(d(),m("ul",Nh,[(d(!0),m(Q,null,ce(y.value,(S,ae)=>(d(),m("li",{key:S.name,"data-test":"cmd-item",role:"option","aria-selected":ae===D.value,class:J(["flex cursor-pointer items-baseline gap-2 px-3 py-1.5 text-[13px]",ae===D.value?"bg-accent/10":""]),onMousedown:Ae(V=>_(S.name),["prevent"]),onMouseenter:V=>D.value=ae},[f("span",Bh,"/"+k(S.name),1),S.description?(d(),m("span",Uh,k(S.description),1)):L("",!0)],42,Ph))),128))])):L("",!0),we(f("textarea",{ref_key:"textarea",ref:x,"onUpdate:modelValue":E[0]||(E[0]=S=>h.value=S),rows:"2",class:"w-full resize-none bg-transparent px-3.5 pt-2.5 pb-1 text-[16px] lg:text-[14px] leading-relaxed text-fg placeholder:text-fg-muted focus:outline-none",placeholder:e.busy?$.$t("chat.working"):$.$t("chat.message"),onInput:R,onKeydown:q,onPaste:N},null,40,Hh),[[Re,h.value]]),f("div",qh,[e.instanceId&&e.sessionAlias?(d(),m("div",jh,[f("button",{type:"button","data-test":"model-chip",class:"flex items-center gap-1.5 px-1.5 py-1 rounded-md text-fg-muted hover:bg-raised transition-colors disabled:opacity-60",disabled:!g(a).available.length,onClick:E[1]||(E[1]=S=>c.value=!c.value)},[B(g(Nn),{size:14,class:"text-accent"}),f("span",Gh,k(g(a).current?g(ya)(g(a).current):$.$t("chat.model")),1),g(a).available.length?(d(),X(g(ut),{key:0,size:13})):L("",!0)],8,Vh),c.value&&g(a).available.length?(d(),m("ul",Wh,[(d(!0),m(Q,null,ce(g(a).available,S=>(d(),m("li",{key:S},[f("button",{type:"button","data-test":"model-option",class:J(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm",S===g(a).current?"bg-accent/10 text-accent":"hover:bg-fg/10 text-fg-muted"]),onClick:ae=>v(S)},[f("span",Zh,k(g(ya)(S)),1),S===g(a).current?(d(),X(g(Qt),{key:0,size:14,class:"ml-auto"})):L("",!0)],10,Kh)]))),128))])):L("",!0),g(a).error?(d(),m("span",Xh,k(g(a).error),1)):L("",!0),r.value?(d(),m("button",{key:2,type:"button","data-test":"context-meter",class:"flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded pl-0.5 hover:opacity-80",title:$.$t("chat.contextUsage",{used:r.value.used.toLocaleString(),size:r.value.size.toLocaleString()}),onClick:p},[B(g(yr),{size:13,class:J(["shrink-0",r.value.tone==="danger"?"text-danger":r.value.tone==="warn"?"text-warn":"text-accent"])},null,8,["class"]),f("span",Jh,[f("span",{class:J(["absolute inset-y-0 left-0 rounded-full",r.value.tone==="danger"?"bg-danger":r.value.tone==="warn"?"bg-warn":"bg-accent"]),style:Mt({width:r.value.pct+"%"})},null,6)]),f("span",Qh,k(r.value.pct)+"%",1)],8,Yh)):L("",!0),r.value&&i.value?(d(),X($h,{key:3,used:r.value.used,size:r.value.size,pct:r.value.pct,cost:r.value.cost,breakdown:r.value.breakdown,anchor:l.value,onDismiss:E[2]||(E[2]=S=>i.value=!1)},null,8,["used","size","pct","cost","breakdown","anchor"])):L("",!0)])):(d(),m("span",e3)),f("div",t3,[f("button",{type:"button","data-test":"attach-btn",title:$.$t("chat.attach.add"),class:"flex items-center gap-1.5 px-1.5 py-1 rounded-md text-fg-muted hover:bg-raised transition-colors",onClick:w},[B(g(Cr),{size:15})],8,u3),e.busy?(d(),m("button",{key:0,type:"button","data-test":"composer-stop",class:"flex items-center gap-1.5 pl-3 pr-2.5 py-1.5 rounded-md bg-danger text-white text-[12.5px] font-semibold hover:opacity-90 transition-all",onClick:E[3]||(E[3]=S=>n("cancel"))},k($.$t("chat.stop")),1)):(d(),m("button",{key:1,type:"submit","data-test":"composer-send",disabled:g(s).uploading||!h.value.trim()&&!g(s).pending.filter(S=>S.status==="ready").length,class:"flex items-center gap-1.5 pl-3 pr-2.5 py-1.5 rounded-md bg-accent text-white text-[12.5px] font-semibold shadow-e1 hover:bg-accent-hover hover:shadow-e2 transition-all disabled:bg-fg/10 disabled:text-fg-muted disabled:shadow-none"},[he(k($.$t("chat.send"))+" ",1),B(g(Sr),{size:14})],8,n3))])])])],32))}}),a3={key:0,"data-test":"plan-panel",class:"rounded-md border border-border bg-surface p-2 text-sm"},o3=["aria-expanded","aria-label"],r3={class:"ml-auto font-mono tabular-nums"},i3=["data-test"],l3=de({__name:"PlanPanel",props:{entries:{},active:{type:Boolean,default:void 0}},setup(e){const t=e,u=M(t.active??!0),n=M(null),s=Z(()=>t.entries.filter(l=>l.status==="completed").length),a=Z(()=>{let l=-1;return t.entries.forEach((p,c)=>{p.status==="in_progress"&&(l=c)}),l>=0?l:(t.entries.forEach((p,c)=>{p.status==="completed"&&(l=c)}),l>=0?l:t.entries.length-1)}),o=l=>l==="completed"?Sa:l==="in_progress"?it:pr,r=l=>l==="completed"?"text-run":l==="in_progress"?"text-accent":"text-fg-muted";async function i(){var c;if(!u.value)return;await He();const l=n.value;if(!l)return;const p=l.children[a.value];(c=p==null?void 0:p.scrollIntoView)==null||c.call(p,{block:"nearest"})}return ve(()=>t.entries,i,{flush:"post"}),ve(u,i),ve(()=>t.active,l=>{l!==void 0&&(u.value=l)}),(l,p)=>e.entries.length?(d(),m("div",a3,[f("button",{type:"button","data-test":"plan-toggle","aria-expanded":u.value,"aria-controls":"plan-list","aria-label":l.$t("plan.togglePlan"),class:"mb-1 flex w-full items-center gap-1.5 text-xs font-semibold uppercase text-fg-muted hover:text-fg transition-colors",onClick:p[0]||(p[0]=c=>u.value=!u.value)},[u.value?(d(),X(g(ut),{key:0,size:12,class:"shrink-0"})):(d(),X(g(xt),{key:1,size:12,class:"shrink-0"})),he(" "+k(l.$t("plan.title"))+" ",1),f("span",r3,k(s.value)+"/"+k(e.entries.length),1)],8,o3),we(f("ul",{id:"plan-list",ref_key:"listEl",ref:n,class:"max-h-48 overflow-y-auto thin-scroll space-y-0.5"},[(d(!0),m(Q,null,ce(e.entries,(c,v)=>(d(),m("li",{key:v,"data-test":v===a.value?"plan-active":void 0,class:"flex items-start gap-1.5"},[(d(),X(Tt(o(c.status)),{size:13,class:J([r(c.status),"mt-0.5 shrink-0",c.status==="in_progress"?"animate-spin motion-reduce:animate-none":""])},null,8,["class"])),f("span",{class:J(["min-w-0",c.status==="completed"?"text-fg-muted line-through":"text-fg"])},k(c.content),3)],8,i3))),128))],512),[[Bu,u.value]])])):L("",!0)}}),c3={class:"flex h-full flex-1 flex-col"},d3={key:0,class:"flex flex-1 items-center justify-center text-fg-muted"},f3={class:"shrink-0 flex min-h-11 lg:h-11 items-center gap-2.5 border-b border-border bg-surface/60 px-3 lg:px-5 py-1.5 lg:py-0 backdrop-blur-md"},p3={class:"hidden lg:block text-[14px] font-semibold tracking-tight text-fg"},h3={key:0,class:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto no-scrollbar"},m3=["title"],b3={key:1,"data-test":"ctx-chip-instance",class:"flex shrink-0 items-center gap-1 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted"},g3={key:2,"data-test":"ctx-chip-agent",class:"flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted"},x3=["title"],v3={key:0,class:"font-mono"},y3={key:1,class:"italic"},k3={class:"text-warn"},_3={key:0,"data-test":"chat-error",class:"mx-3 mt-2 flex items-start gap-2 rounded-lg border border-danger/25 bg-danger/10 px-3 py-2 text-danger"},w3={class:"min-w-0 flex-1 max-h-24 overflow-y-auto whitespace-pre-wrap break-words text-[12px] leading-relaxed"},E3=["title"],A3={key:1,"data-test":"session-booting",class:"flex flex-1 flex-col items-center justify-center gap-3 px-6 text-center"},C3={class:"text-sm font-medium text-danger"},$3={class:"max-w-sm break-words text-xs text-fg-muted"},D3={class:"text-sm font-medium text-fg"},T3={class:"ml-1 font-mono tabular-nums text-fg-muted"},S3={class:"max-w-sm text-xs text-fg-muted"},F3={class:"shrink-0 space-y-2 bg-gradient-to-t from-bg to-transparent px-2 lg:px-5 pb-[max(1rem,env(safe-area-inset-bottom))] pt-1.5"},I3={key:0,"data-test":"turn-hud",class:"flex items-center gap-2 rounded-lg border border-run/20 bg-run/8 px-3 py-1.5"},M3={class:"text-[12px] font-semibold text-run"},z3={class:"font-mono text-[12px] font-semibold tabular-nums text-run"},L3={key:0,class:"text-[11.5px] text-fg-muted"},O3=de({__name:"ChatPane",emits:["show-files"],setup(e,{emit:t}){const u=t,n=wt(),s=lt(),a=qu(),o=Ra();function r(y,_=[]){n.send(y,_)}ve(()=>n.instanceId,y=>{y&&o.bindInstance(y)},{immediate:!0}),ve(()=>[n.instanceId,n.sessionAlias],([y,_],w)=>{w&&(y!==w[0]||_!==w[1])&&o.clearAttachments()});const i=Z(()=>n.instanceId?s.byId(n.instanceId):void 0),l=Z(()=>{var y;return(y=i.value)==null?void 0:y.sessions.find(_=>_.alias===n.sessionAlias)}),p=Z(()=>{var y,_;return(_=(y=i.value)==null?void 0:y.agents.find(w=>{var I;return w.name===((I=l.value)==null?void 0:I.agent)}))==null?void 0:_.driver}),c=Z(()=>{var _;const y=(_=l.value)==null?void 0:_.creatingSince;return y?Math.max(0,Math.floor((h.value-y)/1e3)):0});function v(){const y=n.instanceId,_=n.sessionAlias;y&&_&&s.cancelSessionCreation(y,_),n.clearSelection()}ve(()=>{var y;return[n.instanceId,(y=l.value)==null?void 0:y.workspace]},([y,_])=>{y&&_?a.loadGitSummary(y,_):a.gitSummary=null},{immediate:!0});const h=M(Date.now()),x=setInterval(()=>{h.value=Date.now()},1e3);Lu(()=>clearInterval(x));const A=Z(()=>{if(!n.liveTurn)return"";const y=Math.max(0,Math.floor((h.value-n.liveTurn.startedAt)/1e3));return`${Math.floor(y/60)}:${String(y%60).padStart(2,"0")}`}),T=Z(()=>n.liveToolSteps.filter(y=>y.status==="running").length),D=["Working","Thinking","Pondering","Cogitating","Reasoning","Computing","Churning","Crunching","Percolating","Noodling","Mulling","Brewing","Processing","Deliberating","Ruminating","Synthesizing","Wrangling","Tinkering"],C=Z(()=>{if(!n.liveTurn)return D[0];const y=Math.max(0,Math.floor((h.value-n.liveTurn.startedAt)/1e3));return D[Math.floor(y/10)%D.length]});return(y,_)=>{var w,I,N,ue,ee,W,z,U;return d(),m("div",c3,[g(n).sessionAlias?(d(),m(Q,{key:1},[f("div",f3,[f("h1",p3,k(g(n).sessionAlias),1),l.value||i.value?(d(),m("div",h3,[(w=l.value)!=null&&w.workspace?(d(),m("button",{key:0,"data-test":"ctx-chip-workspace",class:"flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted hover:bg-fg/5",title:y.$t("chat.browseFiles"),onClick:_[0]||(_[0]=q=>u("show-files"))},[B(g(Sn),{size:11,class:"shrink-0 text-warn"}),f("span",null,k(l.value.workspace),1)],8,m3)):L("",!0),(I=i.value)!=null&&I.name?(d(),m("span",b3,[_[4]||(_[4]=f("span",{class:"font-mono text-accent"},"@",-1)),f("span",null,k(i.value.name),1)])):L("",!0),(N=l.value)!=null&&N.agent?(d(),m("span",g3,[B(g(Ta),{size:11,class:"shrink-0 text-accent"}),f("span",null,k(l.value.agent),1)])):L("",!0),g(a).gitSummary?(d(),m("button",{key:3,"data-test":"git-summary",class:"flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted hover:bg-fg/5",title:g(a).gitSummary.branch||y.$t("chat.viewChanges"),onClick:_[1]||(_[1]=q=>{g(a).tab="changes",u("show-files")})},[B(g(Fn),{size:11,class:"shrink-0 text-warn"}),g(a).gitSummary.branch?(d(),m("span",v3,k(g(a).gitSummary.branch),1)):g(a).gitSummary.detached?(d(),m("span",y3,k(y.$t("files.detached")),1)):L("",!0),_[5]||(_[5]=f("span",{class:"h-1 w-1 shrink-0 rounded-full bg-warn","aria-hidden":"true"},null,-1)),f("span",k3,k(g(a).gitSummary.changedCount)+" "+k(y.$t("chat.changed")),1)],8,x3)):L("",!0)])):L("",!0)]),g(n).error?(d(),m("div",_3,[B(g(St),{size:14,class:"mt-0.5 shrink-0","aria-hidden":"true"}),f("p",w3,k(g(n).error),1),f("button",{type:"button",class:"-mr-0.5 -mt-0.5 shrink-0 rounded-md p-1 text-danger/70 transition-colors hover:bg-danger/15 hover:text-danger",title:y.$t("common.dismissNotice"),onClick:_[2]||(_[2]=q=>g(n).error="")},[B(g(Ge),{size:14})],8,E3)])):L("",!0),(ue=l.value)!=null&&ue.creating||(ee=l.value)!=null&&ee.createError?(d(),m("div",A3,[(W=l.value)!=null&&W.createError?(d(),m(Q,{key:0},[B(g(St),{size:22,class:"text-danger","aria-hidden":"true"}),f("p",C3,k(y.$t("session.startFailed")),1),f("p",$3,k(l.value.createError),1),f("button",{"data-test":"booting-dismiss",class:"rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-fg hover:bg-fg/5",onClick:v},k(y.$t("common.dismiss")),1)],64)):(d(),m(Q,{key:1},[B(g(it),{size:22,class:"animate-spin motion-reduce:animate-none text-accent","aria-hidden":"true"}),f("p",D3,[he(k(y.$t("session.starting",{agent:(z=l.value)==null?void 0:z.agent}))+" ",1),f("span",T3,k(c.value)+"s",1)]),f("p",S3,k(y.$t("session.startingHint")),1),f("button",{"data-test":"booting-cancel",class:"rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-fg-muted hover:bg-fg/5",onClick:v},k(y.$t("common.cancel")),1)],64))])):(d(),m(Q,{key:2},[B(fh,{messages:g(n).messages,"live-turn":g(n).liveTurn,driver:p.value,"session-key":`${g(n).instanceId}\0${g(n).sessionAlias}`,"scroll-to-scheduled":g(n).scrollRequest,"has-more-older":g(n).hasMoreOlder,"loading-older":g(n).loadingOlder,onResend:g(n).resend,onLoadOlder:g(n).loadOlder},null,8,["messages","live-turn","driver","session-key","scroll-to-scheduled","has-more-older","loading-older","onResend","onLoadOlder"]),f("div",F3,[g(n).busy?(d(),m("div",I3,[_[6]||(_[6]=f("span",{class:"h-2 w-2 rounded-full bg-run pulse-dot","aria-hidden":"true"},null,-1)),f("span",M3,k(C.value)+"…",1),f("span",z3,k(A.value),1),T.value>0?(d(),m("span",L3,"· "+k(T.value)+" "+k(T.value===1?y.$t("chat.tool"):y.$t("chat.tools")),1)):L("",!0),_[7]||(_[7]=f("span",{class:"flex-1"},null,-1)),f("button",{"data-test":"cancel-turn",class:"flex items-center gap-1.5 text-[11.5px] font-medium text-danger transition-opacity hover:opacity-80",onClick:_[3]||(_[3]=(...q)=>g(n).cancel&&g(n).cancel(...q))},[B(g(Ge),{size:13}),he(k(y.$t("common.cancel")),1)])])):L("",!0),(U=g(n).sessionPlan)!=null&&U.length?(d(),X(l3,{key:1,entries:g(n).sessionPlan,active:g(n).busy},null,8,["entries","active"])):L("",!0),B(s3,{busy:g(n).busy,"draft-key":`${g(n).instanceId}\0${g(n).sessionAlias}`,"instance-id":g(n).instanceId,"session-alias":g(n).sessionAlias,onSend:r,onCancel:g(n).cancel},null,8,["busy","draft-key","instance-id","session-alias","onCancel"])])],64))],64)):(d(),m("div",d3,k(y.$t("chat.selectSession")),1))])}}}),R3=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@(.*)$/;function N3(e){const t=[];let u=0,n=0,s=0,a=0,o=!1;for(const r of e.split(`
291
+ `)){const i=R3.exec(r);if(i){s=Number(i[1]),a=Number(i[2]),o=!0,t.push({type:"hunk",oldNo:null,newNo:null,text:i[3].trim()});continue}if(!o)continue;const l=r[0];if(l==="+"){if(r.startsWith("+++"))continue;t.push({type:"add",oldNo:null,newNo:a,text:r.slice(1)}),a++,u++}else if(l==="-"){if(r.startsWith("---"))continue;t.push({type:"del",oldNo:s,newNo:null,text:r.slice(1)}),s++,n++}else l===" "&&(t.push({type:"context",oldNo:s,newNo:a,text:r.slice(1)}),s++,a++)}return{rows:t,add:u,del:n}}const P3={class:"flex h-full flex-1 flex-col bg-bg","data-test":"file-viewer-center"},B3={class:"flex h-11 shrink-0 items-center gap-2 border-b border-border bg-surface/60 px-3 backdrop-blur-md"},U3=["aria-label"],H3=["aria-label"],q3={class:"truncate font-mono text-[12.5px] text-fg"},j3={class:"shrink-0 text-[11px] text-fg-muted"},V3={key:0,class:"shrink-0 rounded bg-warn/10 px-1 text-[10.5px] text-warn"},G3={key:1,class:"shrink-0 rounded bg-fg/5 px-1 text-[10.5px] text-fg-muted"},W3={class:"truncate font-mono text-[12.5px] text-fg"},K3={class:"ml-auto flex shrink-0 items-center gap-1"},Z3=["aria-label"],X3={class:"min-h-0 flex-1 overflow-auto thin-scroll"},Y3={key:0,"data-test":"fv-file-body"},J3=["innerHTML"],Q3={key:1,class:"overflow-x-auto p-4 font-mono text-[12.5px] leading-relaxed text-fg whitespace-pre"},em={key:1,"data-test":"fv-file-body",class:"overflow-x-auto p-4 font-mono text-[12.5px] leading-relaxed text-fg whitespace-pre"},tm={key:2,class:"p-6 text-sm text-fg-muted"},um={key:0,"data-test":"fv-diff-body",class:"font-mono text-[12.5px] leading-relaxed"},nm={class:"sticky left-0 w-12 shrink-0 select-none border-r border-border bg-surface px-2 text-right tabular-nums text-fg-muted/70"},sm={class:"w-12 shrink-0 select-none border-r border-border bg-surface px-2 text-right tabular-nums text-fg-muted/70"},am={key:1,class:"p-6 text-sm text-fg-muted"},om={key:2,class:"px-4 py-1 text-xs text-warn"},ka=5e3,rm=de({__name:"FileViewer",emits:["back","close"],setup(e,{emit:t}){const u=t,n=qu(),s=Z(()=>{const l=n.file;return!l||l.binary?[]:l.content.split(`
292
+ `)}),a=M("");let o=null;ve(()=>{var l,p,c;return[(l=n.file)==null?void 0:l.path,(p=n.file)==null?void 0:p.content,(c=n.file)==null?void 0:c.binary]},([l,p,c])=>{if(o&&clearTimeout(o),a.value="",!n.file||c||p===void 0||s.value.length>ka)return;const v=p;o=setTimeout(()=>{(async()=>{var T;const{resolveLang:h,highlightToHtml:x}=await ur(async()=>{const{resolveLang:D,highlightToHtml:C}=await import("./shiki-pwUAmJyk.js");return{resolveLang:D,highlightToHtml:C}},__vite__mapDeps([0,1,2])),A=await x(v,h(l));((T=n.file)==null?void 0:T.content)===v&&(a.value=A)})()},150)},{immediate:!0});const r=Z(()=>{var l;return(l=n.diff)!=null&&l.diff?N3(n.diff.diff):null});function i(l){return l===void 0?"":l<1024?`${l} B`:l<1024*1024?`${(l/1024).toFixed(1)} KB`:`${(l/1024/1024).toFixed(1)} MB`}return(l,p)=>(d(),m("div",P3,[f("div",B3,[f("button",{"data-test":"fv-back-list","aria-label":l.$t("files.backToList"),class:"flex lg:hidden shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1 text-[12px] font-medium text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:p[0]||(p[0]=c=>u("back"))},[B(g(ks),{size:14,class:"shrink-0"}),he(k(l.$t("files.title")),1)],8,U3),f("button",{"data-test":"fv-back","aria-label":l.$t("files.back"),class:"hidden lg:flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1 text-[12px] font-medium text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:p[1]||(p[1]=c=>u("close"))},[B(g(ks),{size:14,class:"shrink-0"}),he(k(l.$t("files.back")),1)],8,H3),p[3]||(p[3]=f("span",{class:"h-4 w-px bg-border","aria-hidden":"true"},null,-1)),g(n).file?(d(),m(Q,{key:0},[B(g(fu),{size:14,class:"shrink-0 text-accent"}),f("span",q3,k(g(n).file.path),1),f("span",j3,k(i(g(n).file.size)),1),g(n).file.truncated?(d(),m("span",V3,k(l.$t("files.truncated")),1)):L("",!0),g(n).file.binary?(d(),m("span",G3,k(l.$t("files.binary")),1)):L("",!0)],64)):g(n).diffPath?(d(),m(Q,{key:1},[B(g(xr),{size:14,class:"shrink-0 text-accent"}),f("span",W3,k(g(n).diffPath),1)],64)):L("",!0),f("div",K3,[g(n).file&&!g(n).file.binary?(d(),X(Fo,{key:0,text:g(n).file.content},null,8,["text"])):L("",!0),f("button",{"data-test":"fv-close","aria-label":l.$t("files.closeFile"),class:"grid h-7 w-7 place-items-center rounded text-fg-muted transition-colors hover:bg-raised hover:text-fg lg:hidden",onClick:p[2]||(p[2]=c=>u("close"))},[B(g(Ge),{size:16})],8,Z3)])]),f("div",X3,[g(n).file?(d(),m(Q,{key:0},[!g(n).file.binary&&s.value.length<=ka?(d(),m("div",Y3,[a.value?(d(),m("div",{key:0,innerHTML:a.value},null,8,J3)):(d(),m("pre",Q3,k(g(n).file.content),1))])):g(n).file.binary?(d(),m("div",tm,k(l.$t("files.binaryNotShown")),1)):(d(),m("pre",em,k(g(n).file.content),1))],64)):g(n).diffPath&&g(n).diff?(d(),m(Q,{key:1},[r.value&&r.value.rows.length?(d(),m("div",um,[(d(!0),m(Q,null,ce(r.value.rows,(c,v)=>(d(),m("div",{key:v,"data-test":"fv-diff-row",class:J(["flex",c.type==="add"?"bg-run/10":c.type==="del"?"bg-danger/10":c.type==="hunk"?"bg-info/5":""])},[f("span",nm,k(c.oldNo??""),1),f("span",sm,k(c.newNo??""),1),f("span",{class:J(["w-4 shrink-0 select-none text-center",c.type==="add"?"text-run":c.type==="del"?"text-danger":"text-fg-muted/40"])},k(c.type==="add"?"+":c.type==="del"?"-":""),3),f("span",{class:J(["whitespace-pre px-2",c.type==="hunk"?"text-info":"text-fg"])},k(c.text),3)],2))),128))])):(d(),m("div",am,k(l.$t("files.noDiffContent")),1)),g(n).diff.truncated?(d(),m("div",om,k(l.$t("files.diffTruncated")),1)):L("",!0)],64)):L("",!0)])]))}}),im={"data-test":"scheduled-item",class:"rounded-md border border-border bg-bg text-sm"},lm={class:"flex items-center gap-1 px-2 py-1.5"},cm=["data-test"],dm=["data-test"],fm={class:"min-w-0 flex-1 truncate text-[12.5px] text-fg"},pm={class:"flex shrink-0 items-center gap-0.5"},hm=["title","aria-label"],mm=["title","aria-label"],bm=["data-test"],gm={class:"whitespace-pre-wrap text-[12.5px] text-fg"},xm={class:"font-mono text-[10.5px] tabular-nums text-fg-muted"},vm=["data-test"],_a=de({__name:"ScheduledTaskRow",props:{task:{}},emits:["view"],setup(e,{emit:t}){const u=e,n=t,{t:s}=It(),a=yu(),o=wt(),r=M(!1);function i(c){switch(c){case"pending":return{label:s("tasks.statusUpcoming"),cls:"text-fg-muted",icon:Fa};case"triggering":return{label:s("tasks.statusRunning"),cls:"text-run",icon:it,spin:!0};case"executed":return{label:s("tasks.statusDone"),cls:"text-run",icon:Sa};case"failed":return{label:s("tasks.statusFailed"),cls:"text-danger",icon:fr};case"missed":return{label:s("tasks.statusMissed"),cls:"text-warn",icon:St};case"cancelled":return{label:s("tasks.statusCancelled"),cls:"text-fg-muted",icon:Da}}}function l(){o.requestScrollToScheduled(u.task.id),n("view")}async function p(c){await vu({title:s("tasks.cancelScheduledTitle"),message:s("tasks.cancelScheduledBody"),confirmLabel:s("tasks.cancelTask"),cancelLabel:s("tasks.keep"),tone:"danger"})&&await a.cancelScheduled(c)}return(c,v)=>(d(),m("li",im,[f("div",lm,[f("button",{type:"button","data-test":`scheduled-toggle-${e.task.id}`,class:"flex min-w-0 flex-1 items-center gap-1.5 text-left cursor-pointer",onClick:v[0]||(v[0]=h=>r.value=!r.value)},[B(g(xt),{size:12,class:J(["shrink-0 text-fg-muted transition-transform",r.value?"rotate-90":""])},null,8,["class"]),f("span",{"data-test":`scheduled-status-${e.task.id}`,class:J(["inline-flex shrink-0 items-center gap-1 text-[11px] font-medium",i(e.task.status).cls])},[(d(),X(Tt(i(e.task.status).icon),{size:12,class:J(i(e.task.status).spin?"animate-spin motion-reduce:animate-none":"")},null,8,["class"])),he(" "+k(i(e.task.status).label),1)],10,dm),f("span",fm,k(e.task.message),1)],8,cm),f("span",pm,[e.task.status==="executed"?(d(),m("button",{key:0,"data-test":"view-scheduled",title:c.$t("tasks.viewRunTitle"),"aria-label":c.$t("tasks.viewRun"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-accent/15 hover:text-accent",onClick:l},[B(g(gr),{size:13})],8,hm)):L("",!0),e.task.status==="pending"?(d(),m("button",{key:1,"data-test":"cancel-scheduled",title:c.$t("tasks.cancelScheduled"),"aria-label":c.$t("tasks.cancelScheduled"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger",onClick:v[1]||(v[1]=h=>p(e.task.id))},[B(g(pu),{size:13})],8,mm)):L("",!0)])]),r.value?(d(),m("div",{key:0,"data-test":`scheduled-detail-${e.task.id}`,class:"space-y-1 border-t border-border px-2 py-1.5"},[f("p",gm,k(e.task.message),1),f("p",xm,k(g(Bn)(e.task.executeAt)),1),e.task.status==="failed"&&e.task.lastError?(d(),m("p",{key:0,"data-test":`scheduled-error-${e.task.id}`,class:"rounded bg-danger/10 px-2 py-1 text-[11px] text-danger"},k(e.task.lastError),9,vm)):L("",!0)],8,bm)):L("",!0)]))}}),ym={class:"shrink-0 border-b border-border bg-surface p-3"},km={class:"mb-2 flex items-center gap-1.5"},_m={class:"text-xs font-semibold uppercase tracking-wide text-fg-muted"},wm={key:0,class:"rounded-full bg-bg px-1.5 font-mono text-[10px] tabular-nums text-fg-muted"},Em=["title","aria-label"],Am={class:"space-y-1"},Cm={key:0,class:"rounded-md border border-dashed border-border px-2 py-2 text-center text-[11px] text-fg-muted"},$m={class:"flex flex-col gap-1"},Dm={class:"text-[10px] font-semibold uppercase tracking-wide text-fg-muted"},Tm={class:"flex flex-col gap-1"},Sm={class:"text-[10px] font-semibold uppercase tracking-wide text-fg-muted"},Fm=["placeholder"],Im={class:"flex items-center gap-1.5 pt-0.5"},Mm=["disabled"],zm=["aria-label"],Lm={class:"flex items-center justify-between border-b border-border px-4 py-3"},Om={class:"text-sm font-semibold text-fg"},Rm=["aria-label"],Nm={class:"flex-1 space-y-1 overflow-y-auto p-3"},wa=3,Pm=de({__name:"ScheduledTasks",setup(e){const t=yu(),u=wt(),n=M(""),s=M(""),a=M(!1),o=Z(()=>t.scheduled.slice(0,wa)),r=Z(()=>Math.max(0,t.scheduled.length-wa)),i=M(!1);async function l(){if(!u.instanceId||!u.sessionAlias||!n.value||!s.value)return;const p=new Date(n.value).toISOString();await t.createScheduled(u.instanceId,u.sessionAlias,p,s.value),n.value="",s.value="",a.value=!1}return(p,c)=>(d(),m("div",ym,[f("div",km,[B(g(lr),{size:13,class:"shrink-0 text-fg-muted"}),f("h3",_m,k(p.$t("tasks.scheduled")),1),g(t).scheduled.length?(d(),m("span",wm,k(g(t).scheduled.length),1)):L("",!0),f("button",{type:"button","data-test":"scheduled-compose-toggle",title:p.$t("tasks.newScheduled"),"aria-label":p.$t("tasks.newScheduled"),class:J(["ml-auto grid h-6 w-6 place-items-center rounded-md transition-colors hover:bg-raised hover:text-fg",a.value?"bg-raised text-fg":"text-fg-muted"]),onClick:c[0]||(c[0]=v=>a.value=!a.value)},[B(g(Uu),{size:14,class:J(["transition-transform",a.value?"rotate-45":""])},null,8,["class"])],10,Em)]),f("ul",Am,[(d(!0),m(Q,null,ce(o.value,v=>(d(),X(_a,{key:v.id,task:v},null,8,["task"]))),128)),g(t).scheduled.length===0?(d(),m("li",Cm,k(p.$t("tasks.noScheduled")),1)):L("",!0)]),r.value>0?(d(),m("button",{key:0,type:"button","data-test":"scheduled-view-all",class:"mt-1.5 flex w-full items-center justify-center gap-1 rounded-md border border-border bg-bg px-2 py-1 text-[11px] font-medium text-fg-muted transition-colors hover:bg-accent/10 hover:text-accent",onClick:c[1]||(c[1]=v=>i.value=!0)},[he(k(p.$t("tasks.viewAll",{count:g(t).scheduled.length}))+" ",1),B(g(ut),{size:12})])):L("",!0),a.value?(d(),m("form",{key:1,"data-test":"scheduled-composer",class:"mt-2 space-y-2 rounded-lg border border-border bg-bg p-2.5",onSubmit:Ae(l,["prevent"])},[f("label",$m,[f("span",Dm,k(p.$t("tasks.whenLabel")),1),we(f("input",{"onUpdate:modelValue":c[2]||(c[2]=v=>n.value=v),type:"datetime-local",class:"w-full min-w-0 rounded-md border border-border bg-surface px-2 py-1 text-xs text-fg focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent"},null,512),[[Re,n.value]])]),f("label",Tm,[f("span",Sm,k(p.$t("tasks.messageLabel")),1),we(f("input",{"onUpdate:modelValue":c[3]||(c[3]=v=>s.value=v),placeholder:p.$t("tasks.messagePlaceholder"),class:"w-full rounded-md border border-border bg-surface px-2 py-1 text-xs text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent"},null,8,Fm),[[Re,s.value]])]),f("div",Im,[f("button",{type:"submit",disabled:!n.value||!s.value,class:"flex-1 rounded-md bg-accent px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-accent-hover disabled:cursor-not-allowed disabled:opacity-40"},k(p.$t("tasks.schedule")),9,Mm),f("button",{type:"button",class:"rounded-md border border-border px-2 py-1 text-xs text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:c[4]||(c[4]=v=>a.value=!1)},k(p.$t("common.cancel")),1)])],32)):L("",!0),(d(),X(Jt,{to:"body"},[B(nr,{"enter-active-class":"transition-opacity duration-200 ease-out motion-reduce:transition-none","enter-from-class":"opacity-0","leave-active-class":"transition-opacity duration-150 ease-in motion-reduce:transition-none","leave-to-class":"opacity-0"},{default:ht(()=>[i.value?(d(),m("div",{key:0,"data-test":"scheduled-drawer",class:"fixed inset-0 z-50 flex justify-end bg-black/50",onClick:c[7]||(c[7]=Ae(v=>i.value=!1,["self"])),onKeydown:c[8]||(c[8]=Rn(v=>i.value=!1,["esc"]))},[f("aside",{class:"flex h-full w-full max-w-md flex-col border-l border-border bg-raised shadow-xl",role:"dialog","aria-label":p.$t("tasks.allScheduled")},[f("header",Lm,[f("h2",Om,k(p.$t("tasks.scheduledCount",{count:g(t).scheduled.length})),1),f("button",{class:"rounded p-1 text-fg-muted hover:bg-fg/5 hover:text-fg","aria-label":p.$t("tasks.close"),"data-test":"scheduled-drawer-close",onClick:c[5]||(c[5]=v=>i.value=!1)},[B(g(Ge),{size:16})],8,Rm)]),f("ul",Nm,[(d(!0),m(Q,null,ce(g(t).scheduled,v=>(d(),X(_a,{key:v.id,task:v,onView:c[6]||(c[6]=h=>i.value=!1)},null,8,["task"]))),128))])],8,zm)],32)):L("",!0)]),_:1})]))]))}}),Bm={class:"flex min-h-0 flex-col bg-surface"},Um={class:"shrink-0 px-3 pt-3 pb-2 text-xs font-semibold uppercase text-fg-muted"},Hm={class:"min-h-0 flex-1 space-y-1 overflow-y-auto thin-scroll px-3 pb-3"},qm={class:"flex min-w-0 items-center gap-1.5"},jm={class:"truncate"},Vm=["title","aria-label","onClick"],Gm={key:0,class:"text-xs text-fg-muted"},Wm={key:1,class:"pt-0.5 text-center text-[10.5px] text-fg-muted"},Dn=10,Km=de({__name:"OrchestrationTasks",setup(e){const{t}=It(),u=yu(),n=Z(()=>[...u.orchestration].sort((o,r)=>r.createdAt.localeCompare(o.createdAt)).slice(0,Dn));async function s(o){await vu({title:t("tasks.cancelTitle"),message:t("tasks.cancelBody"),confirmLabel:t("tasks.cancelConfirm"),cancelLabel:t("tasks.keepRunning"),tone:"danger"})&&await u.cancelOrchestration(o)}function a(o){const r=o.toLowerCase();return r.includes("run")||r.includes("active")?"text-run":r.includes("fail")||r.includes("error")||r.includes("cancel")?"text-danger":r.includes("wait")||r.includes("pending")||r.includes("block")?"text-warn":"text-fg-muted"}return(o,r)=>(d(),m("div",Bm,[f("h3",Um,k(o.$t("tasks.orchestration")),1),f("ul",Hm,[(d(!0),m(Q,null,ce(n.value,i=>(d(),m("li",{key:i.taskId,class:"flex items-center justify-between text-sm text-fg"},[f("span",qm,[B(g(Ru),{size:14,class:"shrink-0 text-fg-muted"}),f("span",jm,[he(k(i.task)+" ",1),f("span",{class:J(["text-xs",a(i.status)])},"("+k(i.status)+")",3)])]),f("button",{"data-test":"cancel-orchestration",title:o.$t("tasks.cancelTask"),"aria-label":o.$t("tasks.cancelOrchestrationAria"),class:"ml-2 grid h-6 w-6 shrink-0 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger",onClick:l=>s(i.taskId)},[B(g(Da),{size:13})],8,Vm)]))),128)),g(u).orchestration.length===0?(d(),m("li",Gm,k(o.$t("tasks.noOrchestration")),1)):L("",!0),g(u).orchestration.length>Dn?(d(),m("li",Wm,k(o.$t("tasks.moreOrchestration",{count:g(u).orchestration.length-Dn})),1)):L("",!0)])]))}}),Zm={key:0,class:"flex h-full flex-col"},Xm={key:1,class:"p-4 text-sm text-fg-muted"},Ym=de({__name:"TaskPanel",setup(e){const t=wt(),u=yu();return ve(()=>[t.instanceId,t.sessionAlias],([n,s])=>{n&&s&&u.loadFor(n,s)},{immediate:!0}),(n,s)=>g(t).instanceId&&g(t).sessionAlias?(d(),m("div",Zm,[B(Pm),B(Km,{class:"min-h-0 flex-1"})])):(d(),m("div",Xm,k(n.$t("taskPanel.noSession")),1))}});function Jm(e){const t=[],u=[],n=[];for(const s of e){if(s.status==="??"){n.push(s);continue}const a=s.status[0]??" ",o=s.status[1]??" ";a!==" "&&a!=="?"&&t.push(s),o!==" "&&o!=="?"&&u.push(s)}return{staged:t,changes:u,untracked:n}}function Tn(e){const t=e.lastIndexOf("/");return t<0?{dir:"",name:e}:{dir:e.slice(0,t+1),name:e.slice(t+1)}}const Qm={class:"flex h-full flex-col bg-surface text-sm text-fg-muted"},eb={key:0,class:"flex flex-1 items-center justify-center p-4 text-center text-xs text-fg-muted"},tb={class:"flex shrink-0 items-center gap-2 border-b border-border p-2"},ub=["title"],nb={class:"truncate font-medium"},sb={class:"flex shrink-0 items-center gap-1"},ab=["title","aria-label","disabled"],ob={key:0,"data-test":"files-error",class:"shrink-0 bg-danger/10 px-2 py-1 text-xs text-danger"},rb={key:1,class:"flex min-h-0 flex-1 flex-col"},ib={class:"flex shrink-0 items-center gap-1 border-b border-border px-2 py-1"},lb=["placeholder"],cb=["aria-label"],db={key:0,"data-test":"fs-results",class:"min-h-0 flex-1 overflow-y-auto thin-scroll"},fb={class:"p-2.5 text-[11px] font-mono leading-5 space-y-px"},pb=["onClick"],hb={class:"truncate font-sans text-[12px] text-fg-muted"},mb={key:0,class:"px-1.5 py-1 text-xs text-fg-muted"},bb={key:0,class:"px-2.5 pb-1 text-xs text-warn"},gb={class:"flex shrink-0 flex-wrap items-center gap-1 border-b border-border px-2.5 py-1.5 font-mono text-[11px] text-fg-muted"},xb=["title","aria-label","disabled"],vb=["onClick"],yb={class:"min-h-0 flex-1 overflow-y-auto thin-scroll p-2.5 text-[11px] font-mono leading-5 space-y-px"},kb=["onClick"],_b={key:1,class:"w-[11px] shrink-0"},wb=["title"],Eb={key:5,class:"shrink-0 font-mono text-[10.5px] text-fg-muted tabular-nums"},Ab={key:0,class:"px-1.5 py-1 text-xs text-fg-muted"},Cb={key:2,class:"flex min-h-0 flex-1 flex-col"},$b={class:"shrink-0 border-b border-border"},Db={key:0,"data-test":"changes-branch",class:"truncate font-mono text-[11.5px] font-medium text-fg"},Tb={key:1,"data-test":"changes-branch",class:"truncate font-mono text-[11.5px] italic text-fg-muted"},Sb={key:2,class:"text-[10.5px] font-semibold uppercase tracking-wider text-fg-muted"},Fb={key:3,"data-test":"worktree-linked",class:"shrink-0 rounded-full border border-accent/30 bg-accent/10 px-1.5 py-px text-[9px] font-semibold uppercase tracking-wide text-accent"},Ib={key:4,class:"flex shrink-0 items-center gap-1.5 font-mono text-[10.5px] tabular-nums"},Mb={class:"text-fg-muted"},zb={class:"text-run"},Lb={class:"text-danger"},Ob=["title"],Rb={class:"truncate font-mono",dir:"rtl"},Nb={class:"min-h-0 flex-1 overflow-y-auto thin-scroll p-2.5 space-y-2"},Pb=["onClick"],Bb={class:"text-fg-muted/60"},Ub={class:"space-y-px pt-0.5"},Hb=["title","onClick"],qb={class:"flex min-w-0 flex-1 items-baseline truncate font-mono text-[11px]"},jb={key:0,class:"truncate text-fg-muted/70"},Vb={key:0,class:"px-1.5 py-1 text-xs text-fg-muted"},Gb={key:1,"data-test":"changes-not-git",class:"flex min-h-0 flex-1 flex-col items-center justify-center gap-1.5 p-6 text-center text-xs text-fg-muted"},Wb={class:"text-[11px] text-fg-muted/70"},Kb={key:2,class:"p-3 text-xs text-fg-muted"},Zb={key:3,class:"shrink-0 border-t border-border px-3 py-1 text-xs text-fg-muted"},Ea="xacpx.changes.collapsed",Xb=de({__name:"FilesPanel",props:{instanceId:{}},setup(e){const t=e,u=qu(),n=lt(),s=wt(),a=Z(()=>u.path?u.path.split("/"):[]),o=Z(()=>a.value.length===0);function r(){o.value||u.up(a.value.length-2)}const i=Z(()=>{var U;const z=t.instanceId?n.byId(t.instanceId):void 0;return((U=z==null?void 0:z.sessions.find(q=>q.alias===s.sessionAlias))==null?void 0:U.workspace)??null}),l=Z(()=>{const z=u.diff;return z?{branch:z.branch,detached:z.detached===!0,worktree:z.worktree}:null}),p=Z(()=>{const z=u.diff;if(!z)return null;let U=0,q=0;for(const R of z.diff?z.diff.split(`
293
+ `):[])R.startsWith("+")&&!R.startsWith("+++")?U++:R.startsWith("-")&&!R.startsWith("---")&&q++;return{fileCount:z.files.length,add:U,del:q}}),c=Z(()=>{var U;const z=Jm(((U=u.diff)==null?void 0:U.files)??[]);return[{key:"staged",items:z.staged},{key:"changes",items:z.changes},{key:"untracked",items:z.untracked}].filter(q=>q.items.length)}),v=M(h());function h(){try{return JSON.parse(localStorage.getItem(Ea)??"{}")}catch{return{}}}function x(z){v.value={...v.value,[z]:!v.value[z]};try{localStorage.setItem(Ea,JSON.stringify(v.value))}catch{}}const A=M("");let T=null;function D(){T&&clearTimeout(T),T=setTimeout(()=>void u.search(A.value),250)}function C(){A.value="",u.search("")}function y(z){return z===void 0?"":z<1024?`${z} B`:z<1024*1024?`${(z/1024).toFixed(1)} KB`:`${(z/1024/1024).toFixed(1)} MB`}function _(z){return u.path?`${u.path}/${z}`:z}function w(z){const U=z.trim();return U.includes("?")?{label:"U",cls:"text-warn",dot:"bg-warn"}:U.includes("A")?{label:"A",cls:"text-run",dot:"bg-run"}:U.includes("D")?{label:"D",cls:"text-danger",dot:"bg-danger"}:U.includes("R")?{label:"R",cls:"text-accent",dot:"bg-accent"}:U.includes("M")?{label:"M",cls:"text-info",dot:"bg-warn"}:{label:U[0]??"•",cls:"text-fg-muted",dot:"bg-warn"}}function I(z){const U=_(z.name);if(z.type==="file"){const R=u.changed[U];return R?w(R):null}const q=`${U}/`;return Object.keys(u.changed).some(R=>R.startsWith(q))?{label:"•",cls:"text-warn",dot:"bg-warn"}:null}function N(z){return!!u.file&&u.file.path===_(z)}function ue(z){z.type==="file"&&(u.diffPath=null),u.open(z)}function ee(z){u.diffPath=null,u.openFile(z)}function W(z){u.file=null,u.loadDiff(z)}return ve(()=>[t.instanceId,i.value],async([z,U])=>{var R,$,E;if(u.reset(),A.value="",!z)return;u.instanceId=z,await n.loadWorkspaces(z).catch(()=>{});const q=U??((E=($=(R=n.byId(z))==null?void 0:R.workspaces)==null?void 0:$[0])==null?void 0:E.name);q&&(await u.selectWorkspace(z,q),u.tab==="changes"&&u.loadDiff())},{immediate:!0}),ve(()=>u.tab,z=>{z==="changes"&&!u.diff&&u.loadDiff()}),(z,U)=>{var q,R,$,E,S,ae;return d(),m("div",Qm,[e.instanceId?(d(),m(Q,{key:1},[f("div",tb,[f("div",{"data-test":"ws-label",class:"flex min-w-0 flex-1 items-center gap-1.5 text-xs text-fg",title:g(u).workspace??""},[B(g(Sn),{size:13,class:"shrink-0 text-warn"}),f("span",nb,k(g(u).workspace??"—"),1)],8,ub),f("div",sb,[f("button",{"data-test":"refresh-files",title:z.$t("files.refresh"),"aria-label":z.$t("files.refresh"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-raised hover:text-fg disabled:opacity-50",disabled:g(u).loading,onClick:U[0]||(U[0]=V=>g(u).refresh())},[B(g(Dr),{size:13,class:J(g(u).loading?"animate-spin motion-reduce:animate-none":"")},null,8,["class"])],8,ab),f("button",{"data-test":"tab-files",class:J(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",g(u).tab==="files"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:U[1]||(U[1]=V=>g(u).tab="files")},[B(g(fu),{size:13}),he(k(z.$t("files.title")),1)],2),f("button",{"data-test":"tab-changes",class:J(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",g(u).tab==="changes"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:U[2]||(U[2]=V=>g(u).tab="changes")},[B(g(Ru),{size:13}),he(k(z.$t("files.changes")),1)],2)])]),g(u).error?(d(),m("div",ob,k(g(u).error),1)):L("",!0),g(u).tab==="files"?(d(),m("div",rb,[f("div",ib,[we(f("input",{"onUpdate:modelValue":U[3]||(U[3]=V=>A.value=V),"data-test":"fs-search",placeholder:z.$t("files.searchPlaceholder"),class:"min-w-0 flex-1 rounded border border-border bg-bg px-2 py-1 text-xs text-fg placeholder:text-fg-muted",onInput:D},null,40,lb),[[Re,A.value]]),A.value?(d(),m("button",{key:0,"aria-label":z.$t("files.clearSearch"),class:"text-fg-muted hover:text-fg",onClick:C},[B(g(Ge),{size:14})],8,cb)):L("",!0)]),g(u).query.trim()?(d(),m("div",db,[f("ul",fb,[(d(!0),m(Q,null,ce(g(u).results,V=>(d(),m("li",{key:V},[f("button",{"data-test":"fs-result",class:"flex w-full items-center gap-1.5 rounded-md px-1.5 py-1 text-left hover:bg-raised cursor-pointer",onClick:be=>ee(V)},[B(g(Ou),{size:13,class:"shrink-0 text-fg-muted"}),f("span",hb,k(V),1)],8,pb)]))),128)),!g(u).results.length&&!g(u).searching?(d(),m("li",mb,k(z.$t("palette.noMatches")),1)):L("",!0)]),g(u).searchTruncated?(d(),m("div",bb,k(z.$t("files.showingFirstMatches")),1)):L("",!0)])):(d(),m(Q,{key:1},[f("div",gb,[f("button",{"data-test":"fs-up",title:z.$t("files.upOneLevel"),"aria-label":z.$t("files.upOneLevel"),class:"grid h-5 w-5 shrink-0 place-items-center rounded text-fg-muted hover:bg-raised hover:text-fg disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-fg-muted",disabled:o.value||g(u).loading,onClick:r},[B(g(mr),{size:13})],8,xb),f("button",{class:"hover:text-fg",onClick:U[4]||(U[4]=V=>g(u).up(-1))},k(g(u).workspace??z.$t("files.root")),1),(d(!0),m(Q,null,ce(a.value,(V,be)=>(d(),m(Q,{key:be},[U[5]||(U[5]=f("span",null,"/",-1)),f("button",{class:"hover:text-fg",onClick:ge=>g(u).up(be)},k(V),9,vb)],64))),128))]),f("ul",yb,[(d(!0),m(Q,null,ce(g(u).entries,V=>(d(),m("li",{key:V.name},[f("button",{"data-test":"fs-entry",class:J(["flex w-full items-center gap-1.5 rounded-md px-1.5 py-1 text-left cursor-pointer",N(V.name)?"bg-accent/15":I(V)?"bg-accent/10":"hover:bg-raised"]),onClick:be=>ue(V)},[V.type==="dir"?(d(),X(g(xt),{key:0,size:11,class:"shrink-0 text-fg-muted"})):(d(),m("span",_b)),V.type==="dir"?(d(),X(g(Sn),{key:2,size:13,class:J(["shrink-0",I(V)?"text-accent":"text-fg-muted"])},null,8,["class"])):(d(),X(g(Ou),{key:3,size:13,class:J(["shrink-0",N(V.name)||I(V)?"text-accent":"text-fg-muted"])},null,8,["class"])),f("span",{class:J(["flex-1 truncate font-sans text-[12px]",N(V.name)||I(V)?"text-accent font-medium":V.type==="dir"?"text-fg font-medium":"text-fg-muted"])},k(V.name),3),I(V)?(d(),m("span",{key:4,"data-test":"fs-status",class:J(["w-1.5 h-1.5 shrink-0 rounded-full",I(V).dot]),title:`${I(V).label} — ${g(u).changed[_(V.name)]||z.$t("files.containsChanges")}`},null,10,wb)):L("",!0),V.type==="file"&&!I(V)?(d(),m("span",Eb,k(y(V.size)),1)):L("",!0)],10,kb)]))),128)),!g(u).entries.length&&!g(u).loading?(d(),m("li",Ab,k(z.$t("files.emptyDirectory")),1)):L("",!0)])],64))])):(d(),m("div",Cb,[g(u).diff?(d(),m(Q,{key:0},[f("div",$b,[f("div",{"data-test":"changes-summary",class:J(["flex items-center gap-1.5 px-2.5 pt-2",(q=l.value)!=null&&q.worktree?"pb-1":"pb-2"])},[B(g(Fn),{size:12,class:"shrink-0 text-accent"}),(R=l.value)!=null&&R.branch?(d(),m("span",Db,k(l.value.branch),1)):($=l.value)!=null&&$.detached?(d(),m("span",Tb,k(z.$t("files.detached")),1)):(d(),m("span",Sb,k(z.$t("files.changes")),1)),(S=(E=l.value)==null?void 0:E.worktree)!=null&&S.linked?(d(),m("span",Fb,k(z.$t("files.linked")),1)):L("",!0),U[6]||(U[6]=f("span",{class:"flex-1"},null,-1)),p.value?(d(),m("div",Ib,[f("span",Mb,k(p.value.fileCount)+" "+k(z.$t("files.filesCount")),1),f("span",zb,"+"+k(p.value.add),1),f("span",Lb,"−"+k(p.value.del),1)])):L("",!0)],2),(ae=l.value)!=null&&ae.worktree?(d(),m("div",{key:0,"data-test":"worktree-path",class:"flex items-center gap-1.5 px-2.5 pb-2 text-[10px] text-fg-muted",title:`${z.$t("files.worktree")}: ${l.value.worktree.root}`},[B(g(vr),{size:11,class:"shrink-0 opacity-70"}),f("span",Rb,k(l.value.worktree.root),1)],8,Ob)):L("",!0)]),f("div",Nb,[(d(!0),m(Q,null,ce(c.value,V=>(d(),m("div",{key:V.key,"data-test":"change-group"},[f("button",{class:"flex w-full items-center gap-1.5 px-1 py-0.5 text-[10.5px] font-semibold uppercase tracking-wider text-fg-muted transition-colors hover:text-fg",onClick:be=>x(V.key)},[B(g(xt),{size:11,class:J(["shrink-0 transition-transform",v.value[V.key]?"":"rotate-90"])},null,8,["class"]),f("span",null,k(z.$t(`files.${V.key}`)),1),f("span",Bb,k(V.items.length),1)],8,Pb),we(f("ul",Ub,[(d(!0),m(Q,null,ce(V.items,be=>(d(),m("li",{key:be.path},[f("button",{"data-test":"diff-file",title:be.path,class:J(["flex w-full items-center gap-2 rounded-md px-1.5 py-1 text-left cursor-pointer",g(u).diffPath===be.path?"bg-accent/10":"hover:bg-raised"]),onClick:ge=>W(be.path)},[f("span",{class:J(["w-3 shrink-0 text-center font-mono text-[10.5px] uppercase",w(be.status).cls])},k(w(be.status).label),3),f("span",qb,[g(Tn)(be.path).dir?(d(),m("span",jb,k(g(Tn)(be.path).dir),1)):L("",!0),f("span",{class:J(["shrink-0",g(u).diffPath===be.path?"text-accent":"text-fg"])},k(g(Tn)(be.path).name),3)])],10,Hb)]))),128))],512),[[Bu,!v.value[V.key]]])]))),128)),c.value.length?L("",!0):(d(),m("div",Vb,k(z.$t("files.noChanges")),1))])],64)):g(u).notGit?(d(),m("div",Gb,[B(g(Fn),{size:20,class:"text-fg-muted/60"}),f("span",null,k(z.$t("files.notGitRepo")),1),f("span",Wb,k(z.$t("files.notGitRepoBody")),1)])):g(u).loading?L("",!0):(d(),m("div",Kb,k(z.$t("files.noDiffLoaded")),1))])),g(u).loading?(d(),m("div",Zb,k(z.$t("files.loading")),1)):L("",!0)],64)):(d(),m("div",eb,k(z.$t("files.selectToBrowse")),1))])}}}),Yb={class:"pointer-events-none fixed bottom-4 right-4 z-50 flex w-72 flex-col gap-2","aria-live":"polite"},Jb={class:"flex items-start justify-between gap-2"},Qb=["aria-label","onClick"],eg=de({__name:"NoticeToast",setup(e){const t=Ma();function u(n){const s=n.toLowerCase();return s.includes("fail")||s.includes("error")?"text-danger":s.includes("complet")||s.includes("done")||s.includes("success")?"text-run":"text-info"}return(n,s)=>(d(),m("div",Yb,[(d(!0),m(Q,null,ce(g(t).items.slice(0,4),a=>(d(),m("div",{key:a.id,"data-test":"notice",class:"pointer-events-auto rounded border border-border bg-raised px-3 py-2 text-sm text-fg shadow-lg"},[f("div",Jb,[f("span",null,[f("span",{class:J(["text-xs uppercase",u(a.kind)])},k(a.kind),3),s[0]||(s[0]=f("br",null,null,-1)),he(k(a.text),1)]),f("button",{class:"text-xs text-fg-muted hover:text-fg","aria-label":n.$t("common.dismissNotice"),onClick:o=>g(t).dismiss(a.id)},"×",8,Qb)])]))),128))]))}}),tg={key:0,"data-test":"action-toast",class:"fixed bottom-[calc(1rem+env(safe-area-inset-bottom))] left-1/2 z-50 flex -translate-x-1/2 items-center gap-3 rounded-lg border border-border bg-surface px-3 py-2 text-sm text-fg shadow-lg"},ug=["aria-label"],ng=de({__name:"ActionToast",setup(e){const t=ni();return(u,n)=>(d(),X(Jt,{to:"body"},[g(t)?(d(),m("div",tg,[f("span",null,k(g(t).message),1),f("button",{"data-test":"toast-action",class:"font-medium text-accent hover:underline",onClick:n[0]||(n[0]=(...s)=>g($s)&&g($s)(...s))},k(g(t).actionLabel),1),f("button",{class:"text-fg-muted hover:text-fg","aria-label":u.$t("common.dismiss"),onClick:n[1]||(n[1]=(...s)=>g(Ds)&&g(Ds)(...s))},"×",8,ug)])):L("",!0)]))}}),sg=["title"],ag=de({__name:"ConnectionBadge",setup(e){const t=za();return(u,n)=>(d(),m("div",{"data-test":"conn-badge",class:J(["inline-flex items-center gap-1.5 rounded-full border border-border px-2 py-0.5 text-xs",g(t).online?"text-run":"text-danger"]),title:g(t).online?u.$t("connection.online"):u.$t("connection.reconnecting")},[f("span",{class:J(["h-2 w-2 rounded-full",g(t).online?"bg-run":"bg-danger"]),"aria-hidden":"true"},null,2),f("span",null,k(g(t).online?u.$t("connection.online"):u.$t("connection.reconnecting")),1)],10,sg))}}),og={class:"w-full max-w-lg overflow-hidden rounded-xl border border-border bg-raised shadow-xl"},rg={class:"flex items-center gap-2 border-b border-border px-4 py-3"},ig=["placeholder"],lg={class:"max-h-80 overflow-y-auto py-1 text-sm"},cg=["onMouseenter","onClick"],dg={class:"font-medium"},fg={class:"truncate text-xs text-fg-muted"},pg={key:0,class:"px-4 py-3 text-xs text-fg-muted"},hg=de({__name:"CommandPalette",emits:["close","select-session"],setup(e,{emit:t}){const u=t,n=lt(),s=M(""),a=M(null),o=M(0),r=Z(()=>n.instances.flatMap(h=>h.sessions.map(x=>({label:x.alias,sub:`${h.name} · ${x.agent}`,instanceId:h.id,alias:x.alias}))));function i(h,x){return x?`${h.label} ${h.sub}`.toLowerCase().includes(x.toLowerCase()):!0}const l=Z(()=>{const h=s.value.trim();return r.value.filter(x=>i(x,h))});function p(){o.value>=l.value.length&&(o.value=Math.max(0,l.value.length-1))}function c(h){u("select-session",h.instanceId,h.alias),u("close")}function v(h){if(h.key==="Escape"){u("close");return}if(h.key==="ArrowDown")h.preventDefault(),o.value=Math.min(o.value+1,l.value.length-1);else if(h.key==="ArrowUp")h.preventDefault(),o.value=Math.max(o.value-1,0);else if(h.key==="Enter"){h.preventDefault();const x=l.value[o.value];x&&c(x)}}return tt(()=>void He(()=>{var h;return(h=a.value)==null?void 0:h.focus()})),(h,x)=>(d(),m("div",{class:"fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-24","data-test":"command-palette",onClick:x[2]||(x[2]=Ae(A=>u("close"),["self"]))},[f("div",og,[f("div",rg,[B(g(Hu),{size:16,class:"shrink-0 text-fg-muted"}),we(f("input",{ref_key:"input",ref:a,"onUpdate:modelValue":x[0]||(x[0]=A=>s.value=A),"data-test":"palette-input",placeholder:h.$t("palette.placeholder"),class:"w-full bg-transparent text-sm text-fg placeholder:text-fg-muted outline-none",onInput:x[1]||(x[1]=A=>{o.value=0,p()}),onKeydown:v},null,40,ig),[[Re,s.value]])]),f("ul",lg,[(d(!0),m(Q,null,ce(l.value,(A,T)=>(d(),m("li",{key:`${A.instanceId}:${A.alias}:${T}`},[f("button",{"data-test":"palette-row",class:J(["flex w-full items-center gap-2 px-4 py-1.5 text-left",T===o.value?"bg-accent/10 text-accent":"text-fg hover:bg-fg/5"]),onMouseenter:D=>o.value=T,onClick:D=>c(A)},[B(g(_r),{size:14,class:"shrink-0"}),f("span",dg,k(A.label),1),f("span",fg,k(A.sub),1)],42,cg)]))),128)),l.value.length?L("",!0):(d(),m("li",pg,k(h.$t("palette.noMatches")),1))])])]))}}),mg={class:"flex items-center gap-2 select-none"},bg=de({__name:"BrandLogo",setup(e){return(t,u)=>(d(),m("div",mg,[...u[0]||(u[0]=[sr('<svg data-test="brand-x" width="22" height="22" viewBox="28.5 9 83 83" fill="none" aria-hidden="true"><g stroke-width="22" stroke-linecap="round" stroke-linejoin="round"><path d="M40 20 L54.5 34.5 A22 22 0 0 0 85.5 34.5 L100 20" stroke="#69D689"></path><path d="M53 68 L40 81" stroke="#4F9BF5"></path><path d="M87 68 L100 81" stroke="#4F9BF5"></path></g></svg><span class="text-[15px] font-semibold tracking-tight text-fg">XACPX</span><span class="text-fg-muted text-xs font-medium tracking-wide">HUB</span>',3)])]))}});function gg(e){const t=e.edgeZone??30,u=e.threshold??45,n=e.viewportWidth??(()=>window.innerWidth);let s=0,a=0,o=null;function r(h){var x,A;return((x=h.touches)==null?void 0:x[0])??((A=h.changedTouches)==null?void 0:A[0])??null}function i(h){var x,A;return((x=h.changedTouches)==null?void 0:x[0])??((A=h.touches)==null?void 0:A[0])??null}function l(h){const x=h.target;return!!(x&&typeof x.closest=="function"&&x.closest("[data-drawer]"))}function p(h){var A;if(o=null,!e.isEnabled()||(((A=h.touches)==null?void 0:A.length)??0)>1)return;const x=r(h);if(x){if(s=x.clientX,a=x.clientY,e.isLeftOpen()||e.isRightOpen()){if(l(h))return;o=e.isLeftOpen()?"close-left":"close-right";return}s<=t?o="open-left":s>=n()-t&&(o="open-right")}}function c(h){const x=o;if(o=null,!x)return;const A=i(h);if(!A)return;const T=A.clientX-s,D=A.clientY-a;Math.abs(T)<u||Math.abs(T)<=Math.abs(D)||(x==="open-left"&&T>0?e.openLeft():x==="open-right"&&T<0?e.openRight():x==="close-left"&&T<0?e.closeLeft():x==="close-right"&&T>0&&e.closeRight())}function v(){o=null}return{onTouchStart:p,onTouchEnd:c,onTouchCancel:v}}function zo(e,t,u,n,s){let a=u;return s!=null&&n!=null&&(a=Math.min(a,Math.floor(n*s))),a<t&&(a=t),e<t?t:e>a?a:Math.round(e)}function xg(e){const t=e.viewportWidth??(()=>window.innerWidth),u=e.target??window;let n=0,s=0,a=!1;function o(p){const c=e.side==="right"?n-p:p-n,v=zo(s+c,e.min,e.max,t(),e.maxViewportFraction);e.setWidth(v)}function r(p){a&&o(p.clientX)}function i(){var p;a&&(a=!1,u.removeEventListener("pointermove",r),u.removeEventListener("pointerup",i),u.removeEventListener("pointercancel",i),(p=e.onDragEnd)==null||p.call(e))}function l(p){var c;e.isEnabled()&&(a=!0,n=p.clientX,s=e.getWidth(),u.addEventListener("pointermove",r),u.addEventListener("pointerup",i),u.addEventListener("pointercancel",i),(c=e.onDragStart)==null||c.call(e))}return{onPointerDown:l}}const vg={class:"sticky top-0 z-30 flex h-[calc(2.75rem+env(safe-area-inset-top))] shrink-0 items-center justify-between border-b border-border bg-surface/80 px-3 pt-[env(safe-area-inset-top)] backdrop-blur-xl"},yg={class:"flex items-center gap-2"},kg={class:"flex items-center gap-1.5"},_g=["aria-label"],wg={class:"hidden flex-1 text-[12.5px] text-fg-muted sm:inline"},Eg=["aria-label"],Ag={class:"flex items-center gap-2 border-b border-border bg-surface px-2 py-1.5 lg:hidden"},Cg=["aria-label"],$g={class:"min-w-0 flex-1 truncate text-center text-sm font-medium"},Dg={class:"flex shrink-0 items-center gap-0.5"},Tg=["aria-label","title"],Sg=["aria-label","title"],Fg={class:"flex flex-1 overflow-hidden"},Ig={class:"flex h-9 shrink-0 items-center justify-between px-3 text-xs"},Mg={class:"font-semibold uppercase tracking-wider text-fg-muted"},zg={class:"flex items-center gap-2"},Lg=["aria-label","title"],Og=["aria-label"],Rg=["aria-label","title"],Ng={"data-test":"column",class:"relative flex min-w-0 flex-1 flex-col"},Pg=["title"],Bg={class:"flex h-9 shrink-0 items-center gap-1 border-b border-border px-2.5"},Ug=["aria-label"],Hg={class:"min-h-0 flex-1 overflow-hidden"},Aa=240,Ca=560,qg=296,$a=.5,Wg=de({__name:"DashboardView",setup(e){const t=rr(),u=lt(),n=wt(),s=qu(),a=yu(),o=Ma(),r=za();let i=null;const l=M(!1),p=M(!1),c=M("tasks");function v(){l.value=!1,p.value=!1}function h(E){c.value=E,p.value=!0}const x=gg({isEnabled:()=>typeof window<"u"&&window.innerWidth<1024,isLeftOpen:()=>l.value,isRightOpen:()=>p.value,openLeft:()=>{l.value=!0},openRight:()=>{p.value=!0},closeLeft:()=>{l.value=!1},closeRight:()=>{p.value=!1}});function A(){ee(),h("files")}const T=M(localStorage.getItem("xacpx.leftCollapsed")==="1");ve(T,E=>localStorage.setItem("xacpx.leftCollapsed",E?"1":"0"));function D(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(min-width: 1024px)").matches}const C=M(D()),y=M(zo(Number(localStorage.getItem("xacpx.rightWidth"))||qg,Aa,Ca,typeof window<"u"?window.innerWidth:void 0,$a)),_=M(!1);ve(y,E=>localStorage.setItem("xacpx.rightWidth",String(E)));const w=xg({side:"right",getWidth:()=>y.value,setWidth:E=>{y.value=E},min:Aa,max:Ca,maxViewportFraction:$a,isEnabled:()=>C.value,onDragStart:()=>{_.value=!0,document.body.style.cursor="col-resize",document.body.style.userSelect="none"},onDragEnd:()=>{_.value=!1,document.body.style.cursor="",document.body.style.userSelect=""}});let I=null;function N(E){C.value=E.matches}const ue=Z(()=>!!(s.file||s.diffPath));function ee(){s.file=null,s.diffPath=null}ve(ue,E=>{E&&(p.value=!1)});const W=M(!1);function z(E){(E.metaKey||E.ctrlKey)&&E.key.toLowerCase()==="k"&&(E.preventDefault(),W.value=!W.value)}function U(E,S){n.select(E,S),n.loadHistory().catch(()=>{}),l.value=!1}let q=!1;async function R(){await u.loadInstances().catch(()=>{}),await n.loadActiveTurns().catch(()=>{}),n.instanceId&&n.sessionAlias&&(await u.loadSessions(n.instanceId).catch(()=>{}),await n.loadHistory().catch(()=>{}),await a.loadFor(n.instanceId,n.sessionAlias).catch(()=>{}))}function $(E){r.setOnline(E),E&&(q&&R(),q=!0)}return tt(async()=>{window.addEventListener("keydown",z),typeof window.matchMedia=="function"&&(I=window.matchMedia("(min-width: 1024px)"),C.value=I.matches,I.addEventListener("change",N)),await u.loadInstances(),i=Zr(S=>{u.applyEvent(S),n.applyEvent(S),a.applyEvent(S),o.applyEvent(S)},$),await n.loadActiveTurns().catch(()=>{});const E=Jr();E&&u.byId(E.instanceId)&&U(E.instanceId,E.alias)}),Lu(()=>{window.removeEventListener("keydown",z),I==null||I.removeEventListener("change",N),i==null||i()}),(E,S)=>{const ae=ar("router-link");return d(),m("div",{class:"flex h-dvh flex-col bg-bg text-fg",onTouchstartPassive:S[15]||(S[15]=(...V)=>g(x).onTouchStart&&g(x).onTouchStart(...V)),onTouchendPassive:S[16]||(S[16]=(...V)=>g(x).onTouchEnd&&g(x).onTouchEnd(...V)),onTouchcancelPassive:S[17]||(S[17]=(...V)=>g(x).onTouchCancel&&g(x).onTouchCancel(...V))},[f("header",vg,[f("div",yg,[B(bg),B(ag)]),f("div",kg,[f("button",{"data-test":"global-search","aria-label":E.$t("nav.search"),class:"group flex h-7 items-center gap-2 rounded-lg border border-border bg-bg px-2.5 text-left transition-colors hover:border-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent sm:w-64",onClick:S[0]||(S[0]=V=>W.value=!0)},[B(g(Hu),{size:14,class:"text-fg-muted"}),f("span",wg,k(E.$t("nav.searchPlaceholder")),1),S[18]||(S[18]=f("kbd",{class:"hidden rounded border border-border bg-raised px-1.5 py-0.5 font-mono text-[10px] text-fg-muted sm:inline"},"⌘K",-1))],8,_g),f("button",{"data-test":"theme-toggle","aria-label":g(t).mode==="dark"?E.$t("nav.toLight"):E.$t("nav.toDark"),class:"grid h-7 w-7 place-items-center rounded-lg border border-border text-fg-muted transition-colors hover:bg-raised focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onClick:S[1]||(S[1]=V=>g(t).toggle())},[g(t).mode==="dark"?(d(),X(g(wr),{key:0,size:15})):(d(),X(g(zr),{key:1,size:15}))],8,Eg),B(ae,{to:"/settings","data-test":"settings-link","aria-label":E.$t("nav.settings"),class:"grid h-7 w-7 place-items-center rounded-lg border border-border text-fg-muted transition-colors hover:bg-raised focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},{default:ht(()=>[B(g(Ir),{size:15})]),_:1},8,["aria-label"])])]),f("div",Ag,[f("button",{"data-test":"open-instances","aria-label":E.$t("nav.openInstances"),class:"rounded p-1 leading-none text-fg-muted hover:bg-fg/5",onClick:S[2]||(S[2]=V=>l.value=!0)},[B(g(kr),{size:20})],8,Cg),f("span",$g,k(g(n).sessionAlias??"xacpx relay"),1),f("div",Dg,[f("button",{"data-test":"open-files","aria-label":E.$t("nav.openFiles"),title:E.$t("nav.files"),class:"grid h-8 w-8 place-items-center rounded text-fg-muted hover:bg-fg/5",onClick:S[3]||(S[3]=V=>h("files"))},[B(g(fu),{size:18})],8,Tg),f("button",{"data-test":"open-tasks","aria-label":E.$t("nav.openTasks"),title:E.$t("nav.tasks"),class:"grid h-8 w-8 place-items-center rounded text-fg-muted hover:bg-fg/5",onClick:S[4]||(S[4]=V=>h("tasks"))},[B(g(Ru),{size:18})],8,Sg)])]),f("div",Fg,[l.value||p.value?(d(),m("div",{key:0,"data-test":"drawer-backdrop",class:"fixed inset-0 z-30 bg-black/30 lg:hidden",onClick:v})):L("",!0),f("div",{"data-test":"column","data-drawer":"left",class:J(["fixed inset-y-0 left-0 z-40 flex w-72 max-w-[85%] shrink-0 transform flex-col border-r border-border bg-surface shadow-lg transition-[transform,width] pt-[env(safe-area-inset-top)] lg:static lg:z-auto lg:max-w-none lg:translate-x-0 lg:transform-none lg:shadow-none lg:pt-0",[l.value?"translate-x-0":"-translate-x-full",T.value?"lg:w-0 lg:min-w-0 lg:overflow-hidden lg:border-r-0":"lg:w-[248px]"]])},[f("div",Ig,[f("span",Mg,k(E.$t("nav.instances")),1),f("div",zg,[f("button",{"data-test":"toggle-left","aria-label":E.$t("nav.hideSidebar"),title:E.$t("nav.hideSidebar"),class:"hidden h-6 w-6 place-items-center rounded-md text-fg-muted transition-colors hover:bg-raised hover:text-fg lg:grid",onClick:S[5]||(S[5]=V=>T.value=!0)},[B(g(Er),{size:15})],8,Lg),f("button",{"data-test":"close-instances","aria-label":E.$t("nav.closeInstances"),class:"text-fg-muted hover:text-fg lg:hidden",onClick:S[6]||(S[6]=V=>l.value=!1)},[B(g(Ge),{size:18})],8,Og)])]),B(j0,{onSelect:U})],2),T.value?(d(),m("button",{key:1,"data-test":"expand-left","aria-label":E.$t("nav.showSidebar"),title:E.$t("nav.showSidebar"),class:"hidden w-5 shrink-0 items-center justify-center border-r border-border bg-surface/60 text-fg-muted transition-colors hover:bg-raised hover:text-fg lg:flex",onClick:S[7]||(S[7]=V=>T.value=!1)},[B(g(Ar),{size:15})],8,Rg)):L("",!0),f("div",Ng,[B(O3,{class:"absolute inset-0",inert:ue.value,onShowFiles:S[8]||(S[8]=V=>c.value="files")},null,8,["inert"]),ue.value?(d(),X(rm,{key:0,class:"absolute inset-0 z-10",onBack:A,onClose:ee})):L("",!0)]),f("div",{"data-test":"column","data-drawer":"right",class:J(["fixed inset-y-0 right-0 z-40 flex w-72 max-w-[85%] shrink-0 transform flex-col overflow-hidden border-l border-border bg-surface shadow-lg transition-transform pt-[env(safe-area-inset-top)] lg:relative lg:z-auto lg:w-[296px] lg:max-w-none lg:translate-x-0 lg:transform-none lg:shadow-none lg:pt-0",p.value?"translate-x-0":"translate-x-full"]),style:Mt(C.value?{width:y.value+"px"}:void 0)},[f("div",{"data-test":"right-resize","aria-hidden":"true",title:E.$t("nav.resizePanel"),class:J(["absolute inset-y-0 left-0 z-20 hidden w-1.5 cursor-col-resize touch-none select-none transition-colors lg:block",_.value?"bg-accent/50":"hover:bg-accent/30"]),onPointerdown:S[9]||(S[9]=Ae((...V)=>g(w).onPointerDown&&g(w).onPointerDown(...V),["prevent"]))},null,42,Pg),f("div",Bg,[f("button",{"data-test":"right-tab-files",class:J(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",c.value==="files"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:S[10]||(S[10]=V=>c.value="files")},[B(g(fu),{size:13}),he(k(E.$t("nav.files")),1)],2),f("button",{"data-test":"right-tab-tasks",class:J(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",c.value==="tasks"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:S[11]||(S[11]=V=>c.value="tasks")},[B(g(Ru),{size:13}),he(k(E.$t("nav.tasks")),1)],2),f("button",{"data-test":"close-tasks","aria-label":E.$t("nav.closeTasks"),class:"ml-auto text-fg-muted hover:text-fg lg:hidden",onClick:S[12]||(S[12]=V=>p.value=!1)},[B(g(Ge),{size:18})],8,Ug)]),f("div",Hg,[c.value==="tasks"?(d(),X(Ym,{key:0})):(d(),X(Xb,{key:1,"instance-id":g(n).instanceId},null,8,["instance-id"]))])],6)]),B(eg),B(ng),W.value?(d(),X(hg,{key:0,onClose:S[13]||(S[13]=V=>W.value=!1),onSelectSession:S[14]||(S[14]=(V,be)=>{U(V,be),W.value=!1})})):L("",!0)],32)}}});export{Wg as default};