vite-plugin-opencode-assistant 1.0.73 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +272 -267
- package/package.json +4 -4
package/lib/client.js
CHANGED
|
@@ -65,13 +65,13 @@ function tr(e) {
|
|
|
65
65
|
}
|
|
66
66
|
}), t;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ce(e) {
|
|
69
69
|
let t = "";
|
|
70
70
|
if (we(e))
|
|
71
71
|
t = e;
|
|
72
72
|
else if (G(e))
|
|
73
73
|
for (let n = 0; n < e.length; n++) {
|
|
74
|
-
const o =
|
|
74
|
+
const o = Ce(e[n]);
|
|
75
75
|
o && (t += o + " ");
|
|
76
76
|
}
|
|
77
77
|
else if (ue(e))
|
|
@@ -1088,13 +1088,13 @@ function $r(e, t, n = fe) {
|
|
|
1088
1088
|
const y = f, j = s === !0 ? 1 / 0 : s;
|
|
1089
1089
|
f = () => St(y(), j);
|
|
1090
1090
|
}
|
|
1091
|
-
const x = ar(),
|
|
1091
|
+
const x = ar(), I = () => {
|
|
1092
1092
|
c.stop(), x && x.active && ii(x.effects, c);
|
|
1093
1093
|
};
|
|
1094
1094
|
if (i && t) {
|
|
1095
1095
|
const y = t;
|
|
1096
1096
|
t = (...j) => {
|
|
1097
|
-
y(...j),
|
|
1097
|
+
y(...j), I();
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
1100
|
let M = m ? new Array(e.length).fill(Ln) : Ln;
|
|
@@ -1133,7 +1133,7 @@ function $r(e, t, n = fe) {
|
|
|
1133
1133
|
for (const j of y) j();
|
|
1134
1134
|
Wn.delete(c);
|
|
1135
1135
|
}
|
|
1136
|
-
}, t ? o ? $(!0) : M = c.run() : l ? l($.bind(null, !0), !0) : c.run(),
|
|
1136
|
+
}, t ? o ? $(!0) : M = c.run() : l ? l($.bind(null, !0), !0) : c.run(), I.pause = c.pause.bind(c), I.resume = c.resume.bind(c), I.stop = I, I;
|
|
1137
1137
|
}
|
|
1138
1138
|
function St(e, t = 1 / 0, n) {
|
|
1139
1139
|
if (t <= 0 || !ue(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
|
|
@@ -1360,7 +1360,7 @@ function Fi(e, t, n = !1) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
1362
|
const Vr = /* @__PURE__ */ Symbol.for("v-scx"), zr = () => Fi(Vr);
|
|
1363
|
-
function
|
|
1363
|
+
function xe(e, t, n) {
|
|
1364
1364
|
return qr(e, t, n);
|
|
1365
1365
|
}
|
|
1366
1366
|
function qr(e, t, n = fe) {
|
|
@@ -1401,7 +1401,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1401
1401
|
pc: f,
|
|
1402
1402
|
pbc: p,
|
|
1403
1403
|
o: { insert: g, querySelector: b, createText: m, createComment: x }
|
|
1404
|
-
} = u,
|
|
1404
|
+
} = u, I = $t(t.props);
|
|
1405
1405
|
let { dynamicChildren: M } = t;
|
|
1406
1406
|
const $ = (L, B, q) => {
|
|
1407
1407
|
L.shapeFlag & 16 && c(
|
|
@@ -1429,7 +1429,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1429
1429
|
j(t);
|
|
1430
1430
|
return;
|
|
1431
1431
|
}
|
|
1432
|
-
|
|
1432
|
+
I && ($(t, n, B), hn(t, !0)), y();
|
|
1433
1433
|
} else {
|
|
1434
1434
|
t.el = e.el;
|
|
1435
1435
|
const L = t.anchor = e.anchor, B = Lt.get(e);
|
|
@@ -1457,7 +1457,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1457
1457
|
l,
|
|
1458
1458
|
r,
|
|
1459
1459
|
!1
|
|
1460
|
-
),
|
|
1460
|
+
), I)
|
|
1461
1461
|
Q ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Nn(
|
|
1462
1462
|
t,
|
|
1463
1463
|
n,
|
|
@@ -1466,13 +1466,13 @@ const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1466
1466
|
1
|
|
1467
1467
|
);
|
|
1468
1468
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1469
|
-
const
|
|
1469
|
+
const k = t.target = Do(
|
|
1470
1470
|
t.props,
|
|
1471
1471
|
b
|
|
1472
1472
|
);
|
|
1473
|
-
|
|
1473
|
+
k && Nn(
|
|
1474
1474
|
t,
|
|
1475
|
-
|
|
1475
|
+
k,
|
|
1476
1476
|
null,
|
|
1477
1477
|
u,
|
|
1478
1478
|
0
|
|
@@ -1484,7 +1484,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1484
1484
|
u,
|
|
1485
1485
|
1
|
|
1486
1486
|
);
|
|
1487
|
-
hn(t,
|
|
1487
|
+
hn(t, I);
|
|
1488
1488
|
}
|
|
1489
1489
|
},
|
|
1490
1490
|
remove(e, t, n, { um: o, o: { remove: s } }, i) {
|
|
@@ -1530,8 +1530,8 @@ function Nn(e, t, n, { o: { insert: o }, m: s }, i = 2) {
|
|
|
1530
1530
|
function Gr(e, t, n, o, s, i, {
|
|
1531
1531
|
o: { nextSibling: l, parentNode: r, querySelector: a, insert: u, createText: c }
|
|
1532
1532
|
}, f) {
|
|
1533
|
-
function p(x,
|
|
1534
|
-
let M =
|
|
1533
|
+
function p(x, I) {
|
|
1534
|
+
let M = I;
|
|
1535
1535
|
for (; M; ) {
|
|
1536
1536
|
if (M && M.nodeType === 8) {
|
|
1537
1537
|
if (M.data === "teleport start anchor")
|
|
@@ -1544,10 +1544,10 @@ function Gr(e, t, n, o, s, i, {
|
|
|
1544
1544
|
M = l(M);
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
1547
|
-
function g(x,
|
|
1548
|
-
|
|
1547
|
+
function g(x, I) {
|
|
1548
|
+
I.anchor = f(
|
|
1549
1549
|
l(x),
|
|
1550
|
-
|
|
1550
|
+
I,
|
|
1551
1551
|
r(x),
|
|
1552
1552
|
n,
|
|
1553
1553
|
o,
|
|
@@ -1646,7 +1646,7 @@ function vn(e, t, n, o, s = !1) {
|
|
|
1646
1646
|
else {
|
|
1647
1647
|
const m = we(a), x = /* @__PURE__ */ Te(a);
|
|
1648
1648
|
if (m || x) {
|
|
1649
|
-
const
|
|
1649
|
+
const I = () => {
|
|
1650
1650
|
if (e.f) {
|
|
1651
1651
|
const M = m ? g(a) ? f[a] : c[a] : b() || !e.k ? a.value : c[e.k];
|
|
1652
1652
|
if (s)
|
|
@@ -1663,11 +1663,11 @@ function vn(e, t, n, o, s = !1) {
|
|
|
1663
1663
|
};
|
|
1664
1664
|
if (l) {
|
|
1665
1665
|
const M = () => {
|
|
1666
|
-
|
|
1666
|
+
I(), zn.delete(e);
|
|
1667
1667
|
};
|
|
1668
1668
|
M.id = -1, zn.set(e, M), Ie(M, n);
|
|
1669
1669
|
} else
|
|
1670
|
-
_s(e),
|
|
1670
|
+
_s(e), I();
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
@@ -2001,11 +2001,11 @@ function ys(e) {
|
|
|
2001
2001
|
ctx: b,
|
|
2002
2002
|
inheritAttrs: m
|
|
2003
2003
|
} = e, x = Vn(e);
|
|
2004
|
-
let
|
|
2004
|
+
let I, M;
|
|
2005
2005
|
try {
|
|
2006
2006
|
if (n.shapeFlag & 4) {
|
|
2007
2007
|
const y = s || o, j = y;
|
|
2008
|
-
|
|
2008
|
+
I = ut(
|
|
2009
2009
|
u.call(
|
|
2010
2010
|
j,
|
|
2011
2011
|
y,
|
|
@@ -2018,7 +2018,7 @@ function ys(e) {
|
|
|
2018
2018
|
), M = r;
|
|
2019
2019
|
} else {
|
|
2020
2020
|
const y = t;
|
|
2021
|
-
|
|
2021
|
+
I = ut(
|
|
2022
2022
|
y.length > 1 ? y(
|
|
2023
2023
|
f,
|
|
2024
2024
|
{ attrs: r, slots: l, emit: a }
|
|
@@ -2029,9 +2029,9 @@ function ys(e) {
|
|
|
2029
2029
|
), M = t.props ? r : ca(r);
|
|
2030
2030
|
}
|
|
2031
2031
|
} catch (y) {
|
|
2032
|
-
bn.length = 0, lo(y, e, 1),
|
|
2032
|
+
bn.length = 0, lo(y, e, 1), I = Ee(Tt);
|
|
2033
2033
|
}
|
|
2034
|
-
let $ =
|
|
2034
|
+
let $ = I;
|
|
2035
2035
|
if (M && m !== !1) {
|
|
2036
2036
|
const y = Object.keys(M), { shapeFlag: j } = $;
|
|
2037
2037
|
y.length && j & 7 && (i && y.some(Qn) && (M = ua(
|
|
@@ -2039,7 +2039,7 @@ function ys(e) {
|
|
|
2039
2039
|
i
|
|
2040
2040
|
)), $ = Qt($, M, !1, !0));
|
|
2041
2041
|
}
|
|
2042
|
-
return n.dirs && ($ = Qt($, null, !1, !0), $.dirs = $.dirs ? $.dirs.concat(n.dirs) : n.dirs), n.transition && Go($, n.transition),
|
|
2042
|
+
return n.dirs && ($ = Qt($, null, !1, !0), $.dirs = $.dirs ? $.dirs.concat(n.dirs) : n.dirs), n.transition && Go($, n.transition), I = $, Vn(x), I;
|
|
2043
2043
|
}
|
|
2044
2044
|
const ca = (e) => {
|
|
2045
2045
|
let t;
|
|
@@ -2245,7 +2245,7 @@ function ga(e, t, n = !1) {
|
|
|
2245
2245
|
let b = !1, m = !0;
|
|
2246
2246
|
if (G(g))
|
|
2247
2247
|
for (let x = 0; x < g.length; ++x) {
|
|
2248
|
-
const
|
|
2248
|
+
const I = g[x], M = ie(I) && I.name;
|
|
2249
2249
|
if (M === "Boolean") {
|
|
2250
2250
|
b = !0;
|
|
2251
2251
|
break;
|
|
@@ -2327,20 +2327,20 @@ function ba(e, t) {
|
|
|
2327
2327
|
nextSibling: p,
|
|
2328
2328
|
setScopeId: g = Ot,
|
|
2329
2329
|
insertStaticContent: b
|
|
2330
|
-
} = e, m = (d, h, _, C = null, S = null, w = null,
|
|
2330
|
+
} = e, m = (d, h, _, C = null, S = null, w = null, R = void 0, P = null, A = !!h.dynamicChildren) => {
|
|
2331
2331
|
if (d === h)
|
|
2332
2332
|
return;
|
|
2333
2333
|
d && !un(d, h) && (C = Ge(d), ve(d, S, w, !0), d = null), h.patchFlag === -2 && (A = !1, h.dynamicChildren = null);
|
|
2334
|
-
const { type: E, ref: z, shapeFlag:
|
|
2334
|
+
const { type: E, ref: z, shapeFlag: D } = h;
|
|
2335
2335
|
switch (E) {
|
|
2336
2336
|
case ao:
|
|
2337
2337
|
x(d, h, _, C);
|
|
2338
2338
|
break;
|
|
2339
2339
|
case Tt:
|
|
2340
|
-
|
|
2340
|
+
I(d, h, _, C);
|
|
2341
2341
|
break;
|
|
2342
2342
|
case yn:
|
|
2343
|
-
d == null && M(h, _, C,
|
|
2343
|
+
d == null && M(h, _, C, R);
|
|
2344
2344
|
break;
|
|
2345
2345
|
case ce:
|
|
2346
2346
|
Ae(
|
|
@@ -2350,40 +2350,40 @@ function ba(e, t) {
|
|
|
2350
2350
|
C,
|
|
2351
2351
|
S,
|
|
2352
2352
|
w,
|
|
2353
|
-
|
|
2353
|
+
R,
|
|
2354
2354
|
P,
|
|
2355
2355
|
A
|
|
2356
2356
|
);
|
|
2357
2357
|
break;
|
|
2358
2358
|
default:
|
|
2359
|
-
|
|
2359
|
+
D & 1 ? j(
|
|
2360
2360
|
d,
|
|
2361
2361
|
h,
|
|
2362
2362
|
_,
|
|
2363
2363
|
C,
|
|
2364
2364
|
S,
|
|
2365
2365
|
w,
|
|
2366
|
-
|
|
2366
|
+
R,
|
|
2367
2367
|
P,
|
|
2368
2368
|
A
|
|
2369
|
-
) :
|
|
2369
|
+
) : D & 6 ? k(
|
|
2370
2370
|
d,
|
|
2371
2371
|
h,
|
|
2372
2372
|
_,
|
|
2373
2373
|
C,
|
|
2374
2374
|
S,
|
|
2375
2375
|
w,
|
|
2376
|
-
|
|
2376
|
+
R,
|
|
2377
2377
|
P,
|
|
2378
2378
|
A
|
|
2379
|
-
) : (
|
|
2379
|
+
) : (D & 64 || D & 128) && E.process(
|
|
2380
2380
|
d,
|
|
2381
2381
|
h,
|
|
2382
2382
|
_,
|
|
2383
2383
|
C,
|
|
2384
2384
|
S,
|
|
2385
2385
|
w,
|
|
2386
|
-
|
|
2386
|
+
R,
|
|
2387
2387
|
P,
|
|
2388
2388
|
A,
|
|
2389
2389
|
it
|
|
@@ -2401,7 +2401,7 @@ function ba(e, t) {
|
|
|
2401
2401
|
const S = h.el = d.el;
|
|
2402
2402
|
h.children !== d.children && u(S, h.children);
|
|
2403
2403
|
}
|
|
2404
|
-
},
|
|
2404
|
+
}, I = (d, h, _, C) => {
|
|
2405
2405
|
d == null ? o(
|
|
2406
2406
|
h.el = a(h.children || ""),
|
|
2407
2407
|
_,
|
|
@@ -2426,15 +2426,15 @@ function ba(e, t) {
|
|
|
2426
2426
|
for (; d && d !== h; )
|
|
2427
2427
|
_ = p(d), s(d), d = _;
|
|
2428
2428
|
s(h);
|
|
2429
|
-
}, j = (d, h, _, C, S, w,
|
|
2430
|
-
if (h.type === "svg" ?
|
|
2429
|
+
}, j = (d, h, _, C, S, w, R, P, A) => {
|
|
2430
|
+
if (h.type === "svg" ? R = "svg" : h.type === "math" && (R = "mathml"), d == null)
|
|
2431
2431
|
L(
|
|
2432
2432
|
h,
|
|
2433
2433
|
_,
|
|
2434
2434
|
C,
|
|
2435
2435
|
S,
|
|
2436
2436
|
w,
|
|
2437
|
-
|
|
2437
|
+
R,
|
|
2438
2438
|
P,
|
|
2439
2439
|
A
|
|
2440
2440
|
);
|
|
@@ -2446,7 +2446,7 @@ function ba(e, t) {
|
|
|
2446
2446
|
h,
|
|
2447
2447
|
S,
|
|
2448
2448
|
w,
|
|
2449
|
-
|
|
2449
|
+
R,
|
|
2450
2450
|
P,
|
|
2451
2451
|
A
|
|
2452
2452
|
);
|
|
@@ -2454,24 +2454,24 @@ function ba(e, t) {
|
|
|
2454
2454
|
E && E._endPatch();
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
}, L = (d, h, _, C, S, w,
|
|
2457
|
+
}, L = (d, h, _, C, S, w, R, P) => {
|
|
2458
2458
|
let A, E;
|
|
2459
|
-
const { props: z, shapeFlag:
|
|
2459
|
+
const { props: z, shapeFlag: D, transition: H, dirs: K } = d;
|
|
2460
2460
|
if (A = d.el = l(
|
|
2461
2461
|
d.type,
|
|
2462
2462
|
w,
|
|
2463
2463
|
z && z.is,
|
|
2464
2464
|
z
|
|
2465
|
-
),
|
|
2465
|
+
), D & 8 ? c(A, d.children) : D & 16 && q(
|
|
2466
2466
|
d.children,
|
|
2467
2467
|
A,
|
|
2468
2468
|
null,
|
|
2469
2469
|
C,
|
|
2470
2470
|
S,
|
|
2471
2471
|
_o(d, w),
|
|
2472
|
-
|
|
2472
|
+
R,
|
|
2473
2473
|
P
|
|
2474
|
-
), K && Rt(d, null, C, "created"), B(A, d, d.scopeId,
|
|
2474
|
+
), K && Rt(d, null, C, "created"), B(A, d, d.scopeId, R, C), z) {
|
|
2475
2475
|
for (const O in z)
|
|
2476
2476
|
O !== "value" && !pn(O) && i(A, O, null, z[O], w, C);
|
|
2477
2477
|
"value" in z && i(A, "value", null, z.value, w), (E = z.onVnodeBeforeMount) && rt(E, C, d);
|
|
@@ -2491,17 +2491,17 @@ function ba(e, t) {
|
|
|
2491
2491
|
if (S) {
|
|
2492
2492
|
let w = S.subTree;
|
|
2493
2493
|
if (h === w || Qi(w.type) && (w.ssContent === h || w.ssFallback === h)) {
|
|
2494
|
-
const
|
|
2494
|
+
const R = S.vnode;
|
|
2495
2495
|
B(
|
|
2496
2496
|
d,
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2497
|
+
R,
|
|
2498
|
+
R.scopeId,
|
|
2499
|
+
R.slotScopeIds,
|
|
2500
2500
|
S.parent
|
|
2501
2501
|
);
|
|
2502
2502
|
}
|
|
2503
2503
|
}
|
|
2504
|
-
}, q = (d, h, _, C, S, w,
|
|
2504
|
+
}, q = (d, h, _, C, S, w, R, P, A = 0) => {
|
|
2505
2505
|
for (let E = A; E < d.length; E++) {
|
|
2506
2506
|
const z = d[E] = P ? yt(d[E]) : ut(d[E]);
|
|
2507
2507
|
m(
|
|
@@ -2512,17 +2512,17 @@ function ba(e, t) {
|
|
|
2512
2512
|
C,
|
|
2513
2513
|
S,
|
|
2514
2514
|
w,
|
|
2515
|
-
|
|
2515
|
+
R,
|
|
2516
2516
|
P
|
|
2517
2517
|
);
|
|
2518
2518
|
}
|
|
2519
|
-
}, Z = (d, h, _, C, S, w,
|
|
2519
|
+
}, Z = (d, h, _, C, S, w, R) => {
|
|
2520
2520
|
const P = h.el = d.el;
|
|
2521
2521
|
let { patchFlag: A, dynamicChildren: E, dirs: z } = h;
|
|
2522
2522
|
A |= d.patchFlag & 16;
|
|
2523
|
-
const
|
|
2523
|
+
const D = d.props || fe, H = h.props || fe;
|
|
2524
2524
|
let K;
|
|
2525
|
-
if (_ && Nt(_, !1), (K = H.onVnodeBeforeUpdate) && rt(K, _, h, d), z && Rt(h, d, _, "beforeUpdate"), _ && Nt(_, !0), (
|
|
2525
|
+
if (_ && Nt(_, !1), (K = H.onVnodeBeforeUpdate) && rt(K, _, h, d), z && Rt(h, d, _, "beforeUpdate"), _ && Nt(_, !0), (D.innerHTML && H.innerHTML == null || D.textContent && H.textContent == null) && c(P, ""), E ? Q(
|
|
2526
2526
|
d.dynamicChildren,
|
|
2527
2527
|
E,
|
|
2528
2528
|
P,
|
|
@@ -2530,7 +2530,7 @@ function ba(e, t) {
|
|
|
2530
2530
|
C,
|
|
2531
2531
|
_o(h, S),
|
|
2532
2532
|
w
|
|
2533
|
-
) :
|
|
2533
|
+
) : R || De(
|
|
2534
2534
|
d,
|
|
2535
2535
|
h,
|
|
2536
2536
|
P,
|
|
@@ -2542,20 +2542,20 @@ function ba(e, t) {
|
|
|
2542
2542
|
!1
|
|
2543
2543
|
), A > 0) {
|
|
2544
2544
|
if (A & 16)
|
|
2545
|
-
me(P,
|
|
2546
|
-
else if (A & 2 &&
|
|
2545
|
+
me(P, D, H, _, S);
|
|
2546
|
+
else if (A & 2 && D.class !== H.class && i(P, "class", null, H.class, S), A & 4 && i(P, "style", D.style, H.style, S), A & 8) {
|
|
2547
2547
|
const J = h.dynamicProps;
|
|
2548
2548
|
for (let O = 0; O < J.length; O++) {
|
|
2549
|
-
const V = J[O], te =
|
|
2549
|
+
const V = J[O], te = D[V], Se = H[V];
|
|
2550
2550
|
(Se !== te || V === "value") && i(P, V, te, Se, S, _);
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
A & 1 && d.children !== h.children && c(P, h.children);
|
|
2554
|
-
} else !
|
|
2554
|
+
} else !R && E == null && me(P, D, H, _, S);
|
|
2555
2555
|
((K = H.onVnodeUpdated) || z) && Ie(() => {
|
|
2556
2556
|
K && rt(K, _, h, d), z && Rt(h, d, _, "updated");
|
|
2557
2557
|
}, C);
|
|
2558
|
-
}, Q = (d, h, _, C, S, w,
|
|
2558
|
+
}, Q = (d, h, _, C, S, w, R) => {
|
|
2559
2559
|
for (let P = 0; P < h.length; P++) {
|
|
2560
2560
|
const A = d[P], E = h[P], z = (
|
|
2561
2561
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
@@ -2579,7 +2579,7 @@ function ba(e, t) {
|
|
|
2579
2579
|
C,
|
|
2580
2580
|
S,
|
|
2581
2581
|
w,
|
|
2582
|
-
|
|
2582
|
+
R,
|
|
2583
2583
|
!0
|
|
2584
2584
|
);
|
|
2585
2585
|
}
|
|
@@ -2597,14 +2597,14 @@ function ba(e, t) {
|
|
|
2597
2597
|
);
|
|
2598
2598
|
for (const w in _) {
|
|
2599
2599
|
if (pn(w)) continue;
|
|
2600
|
-
const
|
|
2601
|
-
|
|
2600
|
+
const R = _[w], P = h[w];
|
|
2601
|
+
R !== P && w !== "value" && i(d, w, P, R, S, C);
|
|
2602
2602
|
}
|
|
2603
2603
|
"value" in _ && i(d, "value", h.value, _.value, S);
|
|
2604
2604
|
}
|
|
2605
|
-
}, Ae = (d, h, _, C, S, w,
|
|
2605
|
+
}, Ae = (d, h, _, C, S, w, R, P, A) => {
|
|
2606
2606
|
const E = h.el = d ? d.el : r(""), z = h.anchor = d ? d.anchor : r("");
|
|
2607
|
-
let { patchFlag:
|
|
2607
|
+
let { patchFlag: D, dynamicChildren: H, slotScopeIds: K } = h;
|
|
2608
2608
|
K && (P = P ? P.concat(K) : K), d == null ? (o(E, _, C), o(z, _, C), q(
|
|
2609
2609
|
// #10007
|
|
2610
2610
|
// such fragment like `<></>` will be compiled into
|
|
@@ -2615,10 +2615,10 @@ function ba(e, t) {
|
|
|
2615
2615
|
z,
|
|
2616
2616
|
S,
|
|
2617
2617
|
w,
|
|
2618
|
-
|
|
2618
|
+
R,
|
|
2619
2619
|
P,
|
|
2620
2620
|
A
|
|
2621
|
-
)) :
|
|
2621
|
+
)) : D > 0 && D & 64 && H && // #2715 the previous fragment could've been a BAILed one as a result
|
|
2622
2622
|
// of renderSlot() with no valid children
|
|
2623
2623
|
d.dynamicChildren && d.dynamicChildren.length === H.length ? (Q(
|
|
2624
2624
|
d.dynamicChildren,
|
|
@@ -2626,7 +2626,7 @@ function ba(e, t) {
|
|
|
2626
2626
|
_,
|
|
2627
2627
|
S,
|
|
2628
2628
|
w,
|
|
2629
|
-
|
|
2629
|
+
R,
|
|
2630
2630
|
P
|
|
2631
2631
|
), // #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
2632
2632
|
// get moved around. Make sure all root level vnodes inherit el.
|
|
@@ -2644,16 +2644,16 @@ function ba(e, t) {
|
|
|
2644
2644
|
z,
|
|
2645
2645
|
S,
|
|
2646
2646
|
w,
|
|
2647
|
-
|
|
2647
|
+
R,
|
|
2648
2648
|
P,
|
|
2649
2649
|
A
|
|
2650
2650
|
);
|
|
2651
|
-
},
|
|
2651
|
+
}, k = (d, h, _, C, S, w, R, P, A) => {
|
|
2652
2652
|
h.slotScopeIds = P, d == null ? h.shapeFlag & 512 ? S.ctx.activate(
|
|
2653
2653
|
h,
|
|
2654
2654
|
_,
|
|
2655
2655
|
C,
|
|
2656
|
-
|
|
2656
|
+
R,
|
|
2657
2657
|
A
|
|
2658
2658
|
) : Y(
|
|
2659
2659
|
h,
|
|
@@ -2661,19 +2661,19 @@ function ba(e, t) {
|
|
|
2661
2661
|
C,
|
|
2662
2662
|
S,
|
|
2663
2663
|
w,
|
|
2664
|
-
|
|
2664
|
+
R,
|
|
2665
2665
|
A
|
|
2666
2666
|
) : oe(d, h, A);
|
|
2667
|
-
}, Y = (d, h, _, C, S, w,
|
|
2667
|
+
}, Y = (d, h, _, C, S, w, R) => {
|
|
2668
2668
|
const P = d.component = Pa(
|
|
2669
2669
|
d,
|
|
2670
2670
|
C,
|
|
2671
2671
|
S
|
|
2672
2672
|
);
|
|
2673
|
-
if (Zr(d) && (P.ctx.renderer = it), ka(P, !1,
|
|
2674
|
-
if (S && S.registerDep(P, X,
|
|
2673
|
+
if (Zr(d) && (P.ctx.renderer = it), ka(P, !1, R), P.asyncDep) {
|
|
2674
|
+
if (S && S.registerDep(P, X, R), !d.el) {
|
|
2675
2675
|
const A = P.subTree = Ee(Tt);
|
|
2676
|
-
|
|
2676
|
+
I(null, A, h, _), d.placeholder = A.el;
|
|
2677
2677
|
}
|
|
2678
2678
|
} else
|
|
2679
2679
|
X(
|
|
@@ -2683,7 +2683,7 @@ function ba(e, t) {
|
|
|
2683
2683
|
_,
|
|
2684
2684
|
S,
|
|
2685
2685
|
w,
|
|
2686
|
-
|
|
2686
|
+
R
|
|
2687
2687
|
);
|
|
2688
2688
|
}, oe = (d, h, _) => {
|
|
2689
2689
|
const C = h.component = d.component;
|
|
@@ -2695,14 +2695,14 @@ function ba(e, t) {
|
|
|
2695
2695
|
C.next = h, C.update();
|
|
2696
2696
|
else
|
|
2697
2697
|
h.el = d.el, C.vnode = h;
|
|
2698
|
-
}, X = (d, h, _, C, S, w,
|
|
2698
|
+
}, X = (d, h, _, C, S, w, R) => {
|
|
2699
2699
|
const P = () => {
|
|
2700
2700
|
if (d.isMounted) {
|
|
2701
|
-
let { next:
|
|
2701
|
+
let { next: D, bu: H, u: K, parent: J, vnode: O } = d;
|
|
2702
2702
|
{
|
|
2703
2703
|
const $e = Ji(d);
|
|
2704
2704
|
if ($e) {
|
|
2705
|
-
|
|
2705
|
+
D && (D.el = O.el, Oe(d, D, R)), $e.asyncDep.then(() => {
|
|
2706
2706
|
Ie(() => {
|
|
2707
2707
|
d.isUnmounted || E();
|
|
2708
2708
|
}, S);
|
|
@@ -2710,8 +2710,8 @@ function ba(e, t) {
|
|
|
2710
2710
|
return;
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
2713
|
-
let V =
|
|
2714
|
-
Nt(d, !1),
|
|
2713
|
+
let V = D, te;
|
|
2714
|
+
Nt(d, !1), D ? (D.el = O.el, Oe(d, D, R)) : D = O, H && Fn(H), (te = D.props && D.props.onVnodeBeforeUpdate) && rt(te, J, D, O), Nt(d, !0);
|
|
2715
2715
|
const Se = ys(d), Be = d.subTree;
|
|
2716
2716
|
d.subTree = Se, m(
|
|
2717
2717
|
Be,
|
|
@@ -2723,14 +2723,14 @@ function ba(e, t) {
|
|
|
2723
2723
|
d,
|
|
2724
2724
|
S,
|
|
2725
2725
|
w
|
|
2726
|
-
),
|
|
2727
|
-
() => rt(te, J,
|
|
2726
|
+
), D.el = Se.el, V === null && fa(d, Se.el), K && Ie(K, S), (te = D.props && D.props.onVnodeUpdated) && Ie(
|
|
2727
|
+
() => rt(te, J, D, O),
|
|
2728
2728
|
S
|
|
2729
2729
|
);
|
|
2730
2730
|
} else {
|
|
2731
|
-
let
|
|
2731
|
+
let D;
|
|
2732
2732
|
const { el: H, props: K } = h, { bm: J, m: O, parent: V, root: te, type: Se } = d, Be = Xt(h);
|
|
2733
|
-
Nt(d, !1), J && Fn(J), !Be && (
|
|
2733
|
+
Nt(d, !1), J && Fn(J), !Be && (D = K && K.onVnodeBeforeMount) && rt(D, V, h), Nt(d, !0);
|
|
2734
2734
|
{
|
|
2735
2735
|
te.ce && te.ce._hasShadowRoot() && te.ce._injectChildStyle(
|
|
2736
2736
|
Se,
|
|
@@ -2747,10 +2747,10 @@ function ba(e, t) {
|
|
|
2747
2747
|
w
|
|
2748
2748
|
), h.el = $e.el;
|
|
2749
2749
|
}
|
|
2750
|
-
if (O && Ie(O, S), !Be && (
|
|
2750
|
+
if (O && Ie(O, S), !Be && (D = K && K.onVnodeMounted)) {
|
|
2751
2751
|
const $e = h;
|
|
2752
2752
|
Ie(
|
|
2753
|
-
() => rt(
|
|
2753
|
+
() => rt(D, V, $e),
|
|
2754
2754
|
S
|
|
2755
2755
|
);
|
|
2756
2756
|
}
|
|
@@ -2766,18 +2766,18 @@ function ba(e, t) {
|
|
|
2766
2766
|
h.component = d;
|
|
2767
2767
|
const C = d.vnode.props;
|
|
2768
2768
|
d.vnode = h, d.next = null, pa(d, h.props, C, _), _a(d, h.children, _), Mt(), ps(d), Pt();
|
|
2769
|
-
}, De = (d, h, _, C, S, w,
|
|
2770
|
-
const E = d && d.children, z = d ? d.shapeFlag : 0,
|
|
2769
|
+
}, De = (d, h, _, C, S, w, R, P, A = !1) => {
|
|
2770
|
+
const E = d && d.children, z = d ? d.shapeFlag : 0, D = h.children, { patchFlag: H, shapeFlag: K } = h;
|
|
2771
2771
|
if (H > 0) {
|
|
2772
2772
|
if (H & 128) {
|
|
2773
2773
|
ye(
|
|
2774
2774
|
E,
|
|
2775
|
-
|
|
2775
|
+
D,
|
|
2776
2776
|
_,
|
|
2777
2777
|
C,
|
|
2778
2778
|
S,
|
|
2779
2779
|
w,
|
|
2780
|
-
|
|
2780
|
+
R,
|
|
2781
2781
|
P,
|
|
2782
2782
|
A
|
|
2783
2783
|
);
|
|
@@ -2785,43 +2785,43 @@ function ba(e, t) {
|
|
|
2785
2785
|
} else if (H & 256) {
|
|
2786
2786
|
Ye(
|
|
2787
2787
|
E,
|
|
2788
|
-
|
|
2788
|
+
D,
|
|
2789
2789
|
_,
|
|
2790
2790
|
C,
|
|
2791
2791
|
S,
|
|
2792
2792
|
w,
|
|
2793
|
-
|
|
2793
|
+
R,
|
|
2794
2794
|
P,
|
|
2795
2795
|
A
|
|
2796
2796
|
);
|
|
2797
2797
|
return;
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
|
-
K & 8 ? (z & 16 && Le(E, S, w),
|
|
2800
|
+
K & 8 ? (z & 16 && Le(E, S, w), D !== E && c(_, D)) : z & 16 ? K & 16 ? ye(
|
|
2801
2801
|
E,
|
|
2802
|
-
|
|
2802
|
+
D,
|
|
2803
2803
|
_,
|
|
2804
2804
|
C,
|
|
2805
2805
|
S,
|
|
2806
2806
|
w,
|
|
2807
|
-
|
|
2807
|
+
R,
|
|
2808
2808
|
P,
|
|
2809
2809
|
A
|
|
2810
2810
|
) : Le(E, S, w, !0) : (z & 8 && c(_, ""), K & 16 && q(
|
|
2811
|
-
|
|
2811
|
+
D,
|
|
2812
2812
|
_,
|
|
2813
2813
|
C,
|
|
2814
2814
|
S,
|
|
2815
2815
|
w,
|
|
2816
|
-
|
|
2816
|
+
R,
|
|
2817
2817
|
P,
|
|
2818
2818
|
A
|
|
2819
2819
|
));
|
|
2820
|
-
}, Ye = (d, h, _, C, S, w,
|
|
2820
|
+
}, Ye = (d, h, _, C, S, w, R, P, A) => {
|
|
2821
2821
|
d = d || Ut, h = h || Ut;
|
|
2822
|
-
const E = d.length, z = h.length,
|
|
2822
|
+
const E = d.length, z = h.length, D = Math.min(E, z);
|
|
2823
2823
|
let H;
|
|
2824
|
-
for (H = 0; H <
|
|
2824
|
+
for (H = 0; H < D; H++) {
|
|
2825
2825
|
const K = h[H] = A ? yt(h[H]) : ut(h[H]);
|
|
2826
2826
|
m(
|
|
2827
2827
|
d[H],
|
|
@@ -2830,7 +2830,7 @@ function ba(e, t) {
|
|
|
2830
2830
|
null,
|
|
2831
2831
|
S,
|
|
2832
2832
|
w,
|
|
2833
|
-
|
|
2833
|
+
R,
|
|
2834
2834
|
P,
|
|
2835
2835
|
A
|
|
2836
2836
|
);
|
|
@@ -2841,23 +2841,23 @@ function ba(e, t) {
|
|
|
2841
2841
|
w,
|
|
2842
2842
|
!0,
|
|
2843
2843
|
!1,
|
|
2844
|
-
|
|
2844
|
+
D
|
|
2845
2845
|
) : q(
|
|
2846
2846
|
h,
|
|
2847
2847
|
_,
|
|
2848
2848
|
C,
|
|
2849
2849
|
S,
|
|
2850
2850
|
w,
|
|
2851
|
-
|
|
2851
|
+
R,
|
|
2852
2852
|
P,
|
|
2853
2853
|
A,
|
|
2854
|
-
|
|
2854
|
+
D
|
|
2855
2855
|
);
|
|
2856
|
-
}, ye = (d, h, _, C, S, w,
|
|
2856
|
+
}, ye = (d, h, _, C, S, w, R, P, A) => {
|
|
2857
2857
|
let E = 0;
|
|
2858
2858
|
const z = h.length;
|
|
2859
|
-
let
|
|
2860
|
-
for (; E <=
|
|
2859
|
+
let D = d.length - 1, H = z - 1;
|
|
2860
|
+
for (; E <= D && E <= H; ) {
|
|
2861
2861
|
const K = d[E], J = h[E] = A ? yt(h[E]) : ut(h[E]);
|
|
2862
2862
|
if (un(K, J))
|
|
2863
2863
|
m(
|
|
@@ -2867,7 +2867,7 @@ function ba(e, t) {
|
|
|
2867
2867
|
null,
|
|
2868
2868
|
S,
|
|
2869
2869
|
w,
|
|
2870
|
-
|
|
2870
|
+
R,
|
|
2871
2871
|
P,
|
|
2872
2872
|
A
|
|
2873
2873
|
);
|
|
@@ -2875,8 +2875,8 @@ function ba(e, t) {
|
|
|
2875
2875
|
break;
|
|
2876
2876
|
E++;
|
|
2877
2877
|
}
|
|
2878
|
-
for (; E <=
|
|
2879
|
-
const K = d[
|
|
2878
|
+
for (; E <= D && E <= H; ) {
|
|
2879
|
+
const K = d[D], J = h[H] = A ? yt(h[H]) : ut(h[H]);
|
|
2880
2880
|
if (un(K, J))
|
|
2881
2881
|
m(
|
|
2882
2882
|
K,
|
|
@@ -2885,15 +2885,15 @@ function ba(e, t) {
|
|
|
2885
2885
|
null,
|
|
2886
2886
|
S,
|
|
2887
2887
|
w,
|
|
2888
|
-
|
|
2888
|
+
R,
|
|
2889
2889
|
P,
|
|
2890
2890
|
A
|
|
2891
2891
|
);
|
|
2892
2892
|
else
|
|
2893
2893
|
break;
|
|
2894
|
-
|
|
2894
|
+
D--, H--;
|
|
2895
2895
|
}
|
|
2896
|
-
if (E >
|
|
2896
|
+
if (E > D) {
|
|
2897
2897
|
if (E <= H) {
|
|
2898
2898
|
const K = H + 1, J = K < z ? h[K].el : C;
|
|
2899
2899
|
for (; E <= H; )
|
|
@@ -2904,13 +2904,13 @@ function ba(e, t) {
|
|
|
2904
2904
|
J,
|
|
2905
2905
|
S,
|
|
2906
2906
|
w,
|
|
2907
|
-
|
|
2907
|
+
R,
|
|
2908
2908
|
P,
|
|
2909
2909
|
A
|
|
2910
2910
|
), E++;
|
|
2911
2911
|
}
|
|
2912
2912
|
} else if (E > H)
|
|
2913
|
-
for (; E <=
|
|
2913
|
+
for (; E <= D; )
|
|
2914
2914
|
ve(d[E], S, w, !0), E++;
|
|
2915
2915
|
else {
|
|
2916
2916
|
const K = E, J = E, O = /* @__PURE__ */ new Map();
|
|
@@ -2923,7 +2923,7 @@ function ba(e, t) {
|
|
|
2923
2923
|
let Be = !1, $e = 0;
|
|
2924
2924
|
const xt = new Array(Se);
|
|
2925
2925
|
for (E = 0; E < Se; E++) xt[E] = 0;
|
|
2926
|
-
for (E = K; E <=
|
|
2926
|
+
for (E = K; E <= D; E++) {
|
|
2927
2927
|
const he = d[E];
|
|
2928
2928
|
if (te >= Se) {
|
|
2929
2929
|
ve(he, S, w, !0);
|
|
@@ -2945,7 +2945,7 @@ function ba(e, t) {
|
|
|
2945
2945
|
null,
|
|
2946
2946
|
S,
|
|
2947
2947
|
w,
|
|
2948
|
-
|
|
2948
|
+
R,
|
|
2949
2949
|
P,
|
|
2950
2950
|
A
|
|
2951
2951
|
), te++);
|
|
@@ -2963,14 +2963,14 @@ function ba(e, t) {
|
|
|
2963
2963
|
on,
|
|
2964
2964
|
S,
|
|
2965
2965
|
w,
|
|
2966
|
-
|
|
2966
|
+
R,
|
|
2967
2967
|
P,
|
|
2968
2968
|
A
|
|
2969
2969
|
) : Be && (V < 0 || E !== Je[V] ? be(Ne, _, on, 2) : V--);
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
2972
|
}, be = (d, h, _, C, S = null) => {
|
|
2973
|
-
const { el: w, type:
|
|
2973
|
+
const { el: w, type: R, transition: P, children: A, shapeFlag: E } = d;
|
|
2974
2974
|
if (E & 6) {
|
|
2975
2975
|
be(d.component.subTree, h, _, C);
|
|
2976
2976
|
return;
|
|
@@ -2980,17 +2980,17 @@ function ba(e, t) {
|
|
|
2980
2980
|
return;
|
|
2981
2981
|
}
|
|
2982
2982
|
if (E & 64) {
|
|
2983
|
-
|
|
2983
|
+
R.move(d, h, _, it);
|
|
2984
2984
|
return;
|
|
2985
2985
|
}
|
|
2986
|
-
if (
|
|
2986
|
+
if (R === ce) {
|
|
2987
2987
|
o(w, h, _);
|
|
2988
|
-
for (let
|
|
2989
|
-
be(A[
|
|
2988
|
+
for (let D = 0; D < A.length; D++)
|
|
2989
|
+
be(A[D], h, _, C);
|
|
2990
2990
|
o(d.anchor, h, _);
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
|
-
if (
|
|
2993
|
+
if (R === yn) {
|
|
2994
2994
|
$(d, h, _);
|
|
2995
2995
|
return;
|
|
2996
2996
|
}
|
|
@@ -2998,13 +2998,13 @@ function ba(e, t) {
|
|
|
2998
2998
|
if (C === 0)
|
|
2999
2999
|
P.beforeEnter(w), o(w, h, _), Ie(() => P.enter(w), S);
|
|
3000
3000
|
else {
|
|
3001
|
-
const { leave:
|
|
3001
|
+
const { leave: D, delayLeave: H, afterLeave: K } = P, J = () => {
|
|
3002
3002
|
d.ctx.isUnmounted ? s(w) : o(w, h, _);
|
|
3003
3003
|
}, O = () => {
|
|
3004
3004
|
w._isLeaving && w[Xr](
|
|
3005
3005
|
!0
|
|
3006
3006
|
/* cancelled */
|
|
3007
|
-
),
|
|
3007
|
+
), D(w, () => {
|
|
3008
3008
|
J(), K && K();
|
|
3009
3009
|
});
|
|
3010
3010
|
};
|
|
@@ -3015,23 +3015,23 @@ function ba(e, t) {
|
|
|
3015
3015
|
}, ve = (d, h, _, C = !1, S = !1) => {
|
|
3016
3016
|
const {
|
|
3017
3017
|
type: w,
|
|
3018
|
-
props:
|
|
3018
|
+
props: R,
|
|
3019
3019
|
ref: P,
|
|
3020
3020
|
children: A,
|
|
3021
3021
|
dynamicChildren: E,
|
|
3022
3022
|
shapeFlag: z,
|
|
3023
|
-
patchFlag:
|
|
3023
|
+
patchFlag: D,
|
|
3024
3024
|
dirs: H,
|
|
3025
3025
|
cacheIndex: K,
|
|
3026
3026
|
memo: J
|
|
3027
3027
|
} = d;
|
|
3028
|
-
if (
|
|
3028
|
+
if (D === -2 && (S = !1), P != null && (Mt(), vn(P, null, _, d, !0), Pt()), K != null && (h.renderCache[K] = void 0), z & 256) {
|
|
3029
3029
|
h.ctx.deactivate(d);
|
|
3030
3030
|
return;
|
|
3031
3031
|
}
|
|
3032
3032
|
const O = z & 1 && H, V = !Xt(d);
|
|
3033
3033
|
let te;
|
|
3034
|
-
if (V && (te =
|
|
3034
|
+
if (V && (te = R && R.onVnodeBeforeUnmount) && rt(te, h, d), z & 6)
|
|
3035
3035
|
pt(d.component, _, C);
|
|
3036
3036
|
else {
|
|
3037
3037
|
if (z & 128) {
|
|
@@ -3050,16 +3050,16 @@ function ba(e, t) {
|
|
|
3050
3050
|
// so that it doesn't take the fast path during unmount - otherwise
|
|
3051
3051
|
// components nested in v-once are never unmounted.
|
|
3052
3052
|
!E.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
3053
|
-
(w !== ce ||
|
|
3053
|
+
(w !== ce || D > 0 && D & 64) ? Le(
|
|
3054
3054
|
E,
|
|
3055
3055
|
h,
|
|
3056
3056
|
_,
|
|
3057
3057
|
!1,
|
|
3058
3058
|
!0
|
|
3059
|
-
) : (w === ce &&
|
|
3059
|
+
) : (w === ce && D & 384 || !S && z & 16) && Le(A, h, _), C && st(d);
|
|
3060
3060
|
}
|
|
3061
3061
|
const Se = J != null && K == null;
|
|
3062
|
-
(V && (te =
|
|
3062
|
+
(V && (te = R && R.onVnodeUnmounted) || O || Se) && Ie(() => {
|
|
3063
3063
|
te && rt(te, h, d), O && Rt(d, null, h, "unmounted"), Se && (d.el = null);
|
|
3064
3064
|
}, _);
|
|
3065
3065
|
}, st = (d) => {
|
|
@@ -3076,7 +3076,7 @@ function ba(e, t) {
|
|
|
3076
3076
|
s(_), S && !S.persisted && S.afterLeave && S.afterLeave();
|
|
3077
3077
|
};
|
|
3078
3078
|
if (d.shapeFlag & 1 && S && !S.persisted) {
|
|
3079
|
-
const { leave:
|
|
3079
|
+
const { leave: R, delayLeave: P } = S, A = () => R(_, w);
|
|
3080
3080
|
P ? P(d.el, w, A) : A();
|
|
3081
3081
|
} else
|
|
3082
3082
|
w();
|
|
@@ -3086,13 +3086,13 @@ function ba(e, t) {
|
|
|
3086
3086
|
_ = p(d), s(d), d = _;
|
|
3087
3087
|
s(h);
|
|
3088
3088
|
}, pt = (d, h, _) => {
|
|
3089
|
-
const { bum: C, scope: S, job: w, subTree:
|
|
3090
|
-
ws(A), ws(E), C && Fn(C), S.stop(), w && (w.flags |= 8, ve(
|
|
3089
|
+
const { bum: C, scope: S, job: w, subTree: R, um: P, m: A, a: E } = d;
|
|
3090
|
+
ws(A), ws(E), C && Fn(C), S.stop(), w && (w.flags |= 8, ve(R, d, h, _)), P && Ie(P, h), Ie(() => {
|
|
3091
3091
|
d.isUnmounted = !0;
|
|
3092
3092
|
}, h);
|
|
3093
3093
|
}, Le = (d, h, _, C = !1, S = !1, w = 0) => {
|
|
3094
|
-
for (let
|
|
3095
|
-
ve(d[
|
|
3094
|
+
for (let R = w; R < d.length; R++)
|
|
3095
|
+
ve(d[R], h, _, C, S);
|
|
3096
3096
|
}, Ge = (d) => {
|
|
3097
3097
|
if (d.shapeFlag & 6)
|
|
3098
3098
|
return Ge(d.component.subTree);
|
|
@@ -3294,7 +3294,7 @@ function xa(e, t = null, n = null, o = 0, s = null, i = !1) {
|
|
|
3294
3294
|
if (Ra(e) && (e = e.__vccOpts), t) {
|
|
3295
3295
|
t = Ca(t);
|
|
3296
3296
|
let { class: r, style: a } = t;
|
|
3297
|
-
r && !we(r) && (t.class =
|
|
3297
|
+
r && !we(r) && (t.class = Ce(r)), ue(a) && (/* @__PURE__ */ io(a) && !G(a) && (a = nt({}, a)), t.style = Ht(a));
|
|
3298
3298
|
}
|
|
3299
3299
|
const l = we(e) ? 1 : Qi(e) ? 128 : Kr(e) ? 64 : ue(e) ? 4 : ie(e) ? 2 : 0;
|
|
3300
3300
|
return v(
|
|
@@ -3408,7 +3408,7 @@ function Aa(...e) {
|
|
|
3408
3408
|
const o = e[n];
|
|
3409
3409
|
for (const s in o)
|
|
3410
3410
|
if (s === "class")
|
|
3411
|
-
t.class !== o.class && (t.class =
|
|
3411
|
+
t.class !== o.class && (t.class = Ce([t.class, o.class]));
|
|
3412
3412
|
else if (s === "style")
|
|
3413
3413
|
t.style = Ht([t.style, o.style]);
|
|
3414
3414
|
else if (Zn(s)) {
|
|
@@ -3723,7 +3723,7 @@ function al(e) {
|
|
|
3723
3723
|
ea(() => {
|
|
3724
3724
|
Ii(o);
|
|
3725
3725
|
}), Ue(() => {
|
|
3726
|
-
|
|
3726
|
+
xe(o, Ot, { flush: "post" });
|
|
3727
3727
|
const s = new MutationObserver(o);
|
|
3728
3728
|
s.observe(t.subTree.el.parentNode, { childList: !0 }), ot(() => s.disconnect());
|
|
3729
3729
|
});
|
|
@@ -4107,7 +4107,7 @@ function vc(e, t, n, o, s, i) {
|
|
|
4107
4107
|
v(
|
|
4108
4108
|
"div",
|
|
4109
4109
|
{
|
|
4110
|
-
class:
|
|
4110
|
+
class: Ce(["opencode-empty-state-overlay", { visible: o.showEmptyState }])
|
|
4111
4111
|
},
|
|
4112
4112
|
[
|
|
4113
4113
|
ee(e.$slots, "empty-state", {}, () => [
|
|
@@ -4160,7 +4160,7 @@ function vc(e, t, n, o, s, i) {
|
|
|
4160
4160
|
v(
|
|
4161
4161
|
"div",
|
|
4162
4162
|
{
|
|
4163
|
-
class:
|
|
4163
|
+
class: Ce(["opencode-loading-overlay", { visible: o.frameLoading }])
|
|
4164
4164
|
},
|
|
4165
4165
|
[
|
|
4166
4166
|
ee(e.$slots, "loading", {}, () => [
|
|
@@ -4186,7 +4186,7 @@ function vc(e, t, n, o, s, i) {
|
|
|
4186
4186
|
v(
|
|
4187
4187
|
"div",
|
|
4188
4188
|
{
|
|
4189
|
-
class:
|
|
4189
|
+
class: Ce(["opencode-error-overlay", { visible: o.showError }])
|
|
4190
4190
|
},
|
|
4191
4191
|
[
|
|
4192
4192
|
ee(e.$slots, "error")
|
|
@@ -4227,7 +4227,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4227
4227
|
handleToggleSessionList: b,
|
|
4228
4228
|
handleToggleSelectMode: m,
|
|
4229
4229
|
handleToggleTheme: x,
|
|
4230
|
-
handleToggleDisplayMode:
|
|
4230
|
+
handleToggleDisplayMode: I,
|
|
4231
4231
|
handleToggleSplitPosition: M,
|
|
4232
4232
|
handleClose: $,
|
|
4233
4233
|
handleToggleMinimize: y,
|
|
@@ -4254,8 +4254,8 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4254
4254
|
}), me = U(() => `分栏位置: ${{
|
|
4255
4255
|
left: "左侧",
|
|
4256
4256
|
right: "右侧"
|
|
4257
|
-
}[g.value]}`), Ae = U(() => `切换分栏位置 - 下一个: ${g.value === "right" ? "左侧" : "右侧"}`),
|
|
4258
|
-
return Object.defineProperty(
|
|
4257
|
+
}[g.value]}`), Ae = U(() => `切换分栏位置 - 下一个: ${g.value === "right" ? "左侧" : "右侧"}`), k = { title: n, sessionListTitle: o, sessionListCollapsed: s, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: u, promptDockVisible: c, mode: f, displayMode: p, splitPosition: g, handleToggleSessionList: b, handleToggleSelectMode: m, handleToggleTheme: x, handleToggleDisplayMode: I, handleToggleSplitPosition: M, handleClose: $, handleToggleMinimize: y, handleTogglePromptDock: j, isSplitMode: L, themeIconTitle: B, themeIconLabel: q, displayModeIconTitle: Z, displayModeIconLabel: Q, splitPositionIconTitle: me, splitPositionIconLabel: Ae };
|
|
4258
|
+
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
4259
4259
|
}
|
|
4260
4260
|
}), yc = { class: "opencode-chat-header" }, bc = { class: "opencode-chat-header-left" }, Sc = ["title", "aria-label", "aria-expanded"], wc = ["aria-pressed", "disabled"], Ec = ["title", "aria-label"], Tc = {
|
|
4261
4261
|
key: 0,
|
|
@@ -4352,7 +4352,7 @@ function jc(e, t, n, o, s, i) {
|
|
|
4352
4352
|
return F(), W("div", yc, [
|
|
4353
4353
|
v("div", bc, [
|
|
4354
4354
|
v("button", {
|
|
4355
|
-
class:
|
|
4355
|
+
class: Ce(["opencode-header-btn session-toggle", { active: !o.sessionListCollapsed }]),
|
|
4356
4356
|
type: "button",
|
|
4357
4357
|
title: o.sessionListTitle,
|
|
4358
4358
|
"aria-label": o.sessionListTitle,
|
|
@@ -4383,7 +4383,7 @@ function jc(e, t, n, o, s, i) {
|
|
|
4383
4383
|
])
|
|
4384
4384
|
], 10, Sc),
|
|
4385
4385
|
v("button", {
|
|
4386
|
-
class:
|
|
4386
|
+
class: Ce(["opencode-header-btn select-btn", { active: o.selectMode }]),
|
|
4387
4387
|
type: "button",
|
|
4388
4388
|
title: "选择页面元素 (Ctrl+P)",
|
|
4389
4389
|
"aria-label": "选择页面元素",
|
|
@@ -4754,15 +4754,15 @@ const ml = /* @__PURE__ */ qe({
|
|
|
4754
4754
|
sessionStates: c
|
|
4755
4755
|
} = tn(), f = /* @__PURE__ */ N(!1);
|
|
4756
4756
|
let p = null;
|
|
4757
|
-
|
|
4757
|
+
xe(n, () => {
|
|
4758
4758
|
f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
|
|
4759
4759
|
f.value = !1;
|
|
4760
4760
|
}, 200);
|
|
4761
4761
|
});
|
|
4762
4762
|
const g = U(() => !!(f.value || i.value));
|
|
4763
4763
|
function b(x) {
|
|
4764
|
-
var
|
|
4765
|
-
return !c?.value || !x ? !1 : (M = (
|
|
4764
|
+
var I, M;
|
|
4765
|
+
return !c?.value || !x ? !1 : (M = (I = c.value[x]) == null ? void 0 : I.thinking) != null ? M : !1;
|
|
4766
4766
|
}
|
|
4767
4767
|
const m = { collapsed: n, sessions: o, loadingSessionList: s, showSessionListSkeleton: i, handleCreateSession: l, handleSelectSession: r, handleDeleteSession: a, sessionKey: u, sessionStates: c, isAnimating: f, get animTimer() {
|
|
4768
4768
|
return p;
|
|
@@ -4792,7 +4792,7 @@ function Zc(e, t, n, o, s, i) {
|
|
|
4792
4792
|
return F(), W(
|
|
4793
4793
|
"div",
|
|
4794
4794
|
{
|
|
4795
|
-
class:
|
|
4795
|
+
class: Ce(["opencode-session-list", { collapsed: o.collapsed }])
|
|
4796
4796
|
},
|
|
4797
4797
|
[
|
|
4798
4798
|
ae(" Header "),
|
|
@@ -4877,7 +4877,7 @@ function Zc(e, t, n, o, s, i) {
|
|
|
4877
4877
|
{ key: 1 },
|
|
4878
4878
|
Tn(o.sessions, (l) => (F(), W("div", {
|
|
4879
4879
|
key: l[o.sessionKey],
|
|
4880
|
-
class:
|
|
4880
|
+
class: Ce(["opencode-session-item", { active: l.active, thinking: o.isSessionThinking(l.id) }]),
|
|
4881
4881
|
role: "option",
|
|
4882
4882
|
"aria-selected": l.active,
|
|
4883
4883
|
onClick: (r) => o.handleSelectSession(l)
|
|
@@ -4952,7 +4952,7 @@ function lu(e, t, n, o, s, i) {
|
|
|
4952
4952
|
return F(), W(
|
|
4953
4953
|
"div",
|
|
4954
4954
|
{
|
|
4955
|
-
class:
|
|
4955
|
+
class: Ce(["opencode-right-toolbar", { collapsed: o.items.length === 0 }])
|
|
4956
4956
|
},
|
|
4957
4957
|
[
|
|
4958
4958
|
t[1] || (t[1] = v(
|
|
@@ -5060,7 +5060,7 @@ function gu(e, t, n, o, s, i) {
|
|
|
5060
5060
|
return F(), W(
|
|
5061
5061
|
"div",
|
|
5062
5062
|
{
|
|
5063
|
-
class:
|
|
5063
|
+
class: Ce(["opencode-resize-handle", { resizing: o.isResizing, "handle-left": n.position === "left" }]),
|
|
5064
5064
|
onMousedown: o.handleMouseDown,
|
|
5065
5065
|
onDblclick: o.handleDoubleClick
|
|
5066
5066
|
},
|
|
@@ -5108,8 +5108,8 @@ const yl = /* @__PURE__ */ qe(Eu(wu({}, {
|
|
|
5108
5108
|
"-animationOrigin.y": m.animationOrigin.y
|
|
5109
5109
|
}));
|
|
5110
5110
|
const o = e, s = n, i = Wi(), l = /* @__PURE__ */ N(null), r = (m, x) => {
|
|
5111
|
-
var
|
|
5112
|
-
(
|
|
5111
|
+
var I;
|
|
5112
|
+
(I = l.value) == null || I.sendMessageToIframe(m, x);
|
|
5113
5113
|
};
|
|
5114
5114
|
t({
|
|
5115
5115
|
sendMessageToIframe: r,
|
|
@@ -5180,7 +5180,7 @@ function Du(e, t, n, o, s, i) {
|
|
|
5180
5180
|
return F(), W(
|
|
5181
5181
|
"div",
|
|
5182
5182
|
{
|
|
5183
|
-
class:
|
|
5183
|
+
class: Ce(o.panelClasses),
|
|
5184
5184
|
style: Ht(o.panelStyle)
|
|
5185
5185
|
},
|
|
5186
5186
|
[
|
|
@@ -5197,7 +5197,7 @@ function Du(e, t, n, o, s, i) {
|
|
|
5197
5197
|
n.mode === "split" ? (F(), W("button", {
|
|
5198
5198
|
key: 1,
|
|
5199
5199
|
type: "button",
|
|
5200
|
-
class:
|
|
5200
|
+
class: Ce(["opencode-split-toggle-btn", { open: o.props.open, thinking: o.props.thinking, "opencode-theme-dark": n.resolvedTheme === "dark", "split-left": n.splitPosition === "left" }]),
|
|
5201
5201
|
"aria-expanded": n.open,
|
|
5202
5202
|
"aria-label": "切换面板",
|
|
5203
5203
|
onClick: o.handleToggle
|
|
@@ -5372,7 +5372,7 @@ function Lu(e, t, n, o, s, i) {
|
|
|
5372
5372
|
return F(), W(
|
|
5373
5373
|
"div",
|
|
5374
5374
|
{
|
|
5375
|
-
class:
|
|
5375
|
+
class: Ce(["opencode-select-mode-hint", { visible: o.visible }])
|
|
5376
5376
|
},
|
|
5377
5377
|
[
|
|
5378
5378
|
t[0] || (t[0] = v(
|
|
@@ -5421,7 +5421,7 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5421
5421
|
y: 0,
|
|
5422
5422
|
width: 0,
|
|
5423
5423
|
height: 0
|
|
5424
|
-
}), r = (
|
|
5424
|
+
}), r = (k) => k !== null && typeof k == "object", a = U(
|
|
5425
5425
|
() => r(o.gap) ? o.gap.x : o.gap
|
|
5426
5426
|
), u = U(
|
|
5427
5427
|
() => r(o.gap) ? o.gap.y : o.gap
|
|
@@ -5430,44 +5430,44 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5430
5430
|
right: c.value - l.value.width - a.value,
|
|
5431
5431
|
bottom: f.value - l.value.height - u.value,
|
|
5432
5432
|
left: a.value
|
|
5433
|
-
})), g = (
|
|
5433
|
+
})), g = (k, Y) => k.reduce(
|
|
5434
5434
|
(oe, X) => Math.abs(oe - Y) < Math.abs(X - Y) ? oe : X
|
|
5435
5435
|
), b = () => {
|
|
5436
5436
|
if (o.magnetic === "x")
|
|
5437
|
-
if (
|
|
5437
|
+
if (I.value === "left")
|
|
5438
5438
|
l.value.x = p.value.left;
|
|
5439
|
-
else if (
|
|
5439
|
+
else if (I.value === "right")
|
|
5440
5440
|
l.value.x = p.value.right;
|
|
5441
5441
|
else {
|
|
5442
|
-
const
|
|
5442
|
+
const k = g(
|
|
5443
5443
|
[p.value.left, p.value.right],
|
|
5444
5444
|
l.value.x
|
|
5445
5445
|
);
|
|
5446
|
-
l.value.x =
|
|
5446
|
+
l.value.x = k, I.value = k === p.value.left ? "left" : "right";
|
|
5447
5447
|
}
|
|
5448
5448
|
if (o.magnetic === "y") {
|
|
5449
|
-
const
|
|
5449
|
+
const k = g(
|
|
5450
5450
|
[p.value.top, p.value.bottom],
|
|
5451
5451
|
l.value.y
|
|
5452
5452
|
);
|
|
5453
|
-
l.value.y =
|
|
5453
|
+
l.value.y = k;
|
|
5454
5454
|
}
|
|
5455
|
-
}, m = /* @__PURE__ */ N(!1), x = /* @__PURE__ */ N(!1),
|
|
5456
|
-
const
|
|
5457
|
-
return
|
|
5455
|
+
}, m = /* @__PURE__ */ N(!1), x = /* @__PURE__ */ N(!1), I = /* @__PURE__ */ N(null), M = U(() => {
|
|
5456
|
+
const k = {}, Y = `${l.value.x}px`, oe = `${l.value.y}px`;
|
|
5457
|
+
return k.transform = `translate3d(${Y}, ${oe}, 0)`, m.value || !x.value ? k.transition = "none" : k.transition = "transform 0.3s ease", k;
|
|
5458
5458
|
}), $ = () => {
|
|
5459
5459
|
if (!i.value || typeof window > "u") return;
|
|
5460
|
-
const
|
|
5461
|
-
let oe = Y ? Y.x : c.value -
|
|
5462
|
-
const Oe = c.value -
|
|
5460
|
+
const k = i.value.getBoundingClientRect(), { offset: Y } = o;
|
|
5461
|
+
let oe = Y ? Y.x : c.value - k.width - a.value, X = Y ? Y.y : f.value - k.height - u.value;
|
|
5462
|
+
const Oe = c.value - k.width - a.value, De = f.value - k.height - u.value;
|
|
5463
5463
|
oe < a.value && (oe = a.value), oe > Oe && (oe = Oe), X < u.value && (X = u.value), X > De && (X = De);
|
|
5464
5464
|
const Ye = l.value.x, ye = l.value.y;
|
|
5465
5465
|
if (l.value = {
|
|
5466
5466
|
x: oe,
|
|
5467
5467
|
y: X,
|
|
5468
|
-
width:
|
|
5469
|
-
height:
|
|
5470
|
-
}, !m.value && (o.magnetic === "x" &&
|
|
5468
|
+
width: k.width,
|
|
5469
|
+
height: k.height
|
|
5470
|
+
}, !m.value && (o.magnetic === "x" && I.value ? I.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : b(), l.value.x !== Ye || l.value.y !== ye)) {
|
|
5471
5471
|
const be = { x: l.value.x, y: l.value.y };
|
|
5472
5472
|
s("update:offset", be), s("offset-change", be);
|
|
5473
5473
|
}
|
|
@@ -5479,23 +5479,23 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5479
5479
|
offsetX: /* @__PURE__ */ N(0),
|
|
5480
5480
|
offsetY: /* @__PURE__ */ N(0),
|
|
5481
5481
|
isTap: /* @__PURE__ */ N(!0),
|
|
5482
|
-
start(
|
|
5483
|
-
this.startX.value = "touches" in
|
|
5482
|
+
start(k) {
|
|
5483
|
+
this.startX.value = "touches" in k ? k.touches[0].clientX : k.clientX, this.startY.value = "touches" in k ? k.touches[0].clientY : k.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
|
|
5484
5484
|
},
|
|
5485
|
-
move(
|
|
5486
|
-
const Y = "touches" in
|
|
5485
|
+
move(k) {
|
|
5486
|
+
const Y = "touches" in k ? k.touches[0].clientX : k.clientX, oe = "touches" in k ? k.touches[0].clientY : k.clientY;
|
|
5487
5487
|
this.deltaX.value = Y - this.startX.value, this.deltaY.value = oe - this.startY.value, this.offsetX.value = Math.abs(this.deltaX.value), this.offsetY.value = Math.abs(this.deltaY.value);
|
|
5488
5488
|
const X = 5;
|
|
5489
5489
|
this.isTap.value && (this.offsetX.value > X || this.offsetY.value > X) && (this.isTap.value = !1);
|
|
5490
5490
|
}
|
|
5491
5491
|
};
|
|
5492
5492
|
let j = 0, L = 0;
|
|
5493
|
-
const B = (
|
|
5494
|
-
y.start(
|
|
5495
|
-
}, q = (
|
|
5496
|
-
|
|
5493
|
+
const B = (k) => {
|
|
5494
|
+
y.start(k), m.value = !0, j = l.value.x, L = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in k || (window.addEventListener("mousemove", q, { passive: !1 }), window.addEventListener("mouseup", Z));
|
|
5495
|
+
}, q = (k) => {
|
|
5496
|
+
k.cancelable && k.preventDefault();
|
|
5497
5497
|
const Y = y.isTap.value;
|
|
5498
|
-
if (y.move(
|
|
5498
|
+
if (y.move(k), Y && !y.isTap.value && s("drag-start"), o.axis !== "lock" && !y.isTap.value) {
|
|
5499
5499
|
if (o.axis === "x" || o.axis === "xy") {
|
|
5500
5500
|
let X = j + y.deltaX.value;
|
|
5501
5501
|
X < p.value.left && (X = p.value.left), X > p.value.right && (X = p.value.right), l.value.x = X;
|
|
@@ -5507,11 +5507,11 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5507
5507
|
const oe = { x: l.value.x, y: l.value.y };
|
|
5508
5508
|
s("update:offset", oe);
|
|
5509
5509
|
}
|
|
5510
|
-
}, Z = (
|
|
5511
|
-
m.value = !1, document.body.classList.remove("floating-bubble-dragging"),
|
|
5510
|
+
}, Z = (k) => {
|
|
5511
|
+
m.value = !1, document.body.classList.remove("floating-bubble-dragging"), k && !("touches" in k) && k.type === "mouseup" && (window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", Z)), requestAnimationFrame(() => {
|
|
5512
5512
|
if (o.magnetic === "x" && !y.isTap.value) {
|
|
5513
5513
|
const Y = l.value.x + l.value.width / 2, oe = c.value / 2;
|
|
5514
|
-
|
|
5514
|
+
I.value = Y < oe ? "left" : "right";
|
|
5515
5515
|
}
|
|
5516
5516
|
if (b(), !y.isTap.value) {
|
|
5517
5517
|
s("drag-end");
|
|
@@ -5519,8 +5519,8 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5519
5519
|
s("update:offset", Y), (j !== Y.x || L !== Y.y) && s("offset-change", Y);
|
|
5520
5520
|
}
|
|
5521
5521
|
});
|
|
5522
|
-
}, Q = (
|
|
5523
|
-
y.isTap.value ? s("click",
|
|
5522
|
+
}, Q = (k) => {
|
|
5523
|
+
y.isTap.value ? s("click", k) : k.stopPropagation();
|
|
5524
5524
|
}, me = () => {
|
|
5525
5525
|
typeof window < "u" && (c.value = window.innerWidth, f.value = window.innerHeight);
|
|
5526
5526
|
};
|
|
@@ -5532,21 +5532,26 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5532
5532
|
});
|
|
5533
5533
|
}), ot(() => {
|
|
5534
5534
|
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", me), window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", Z)), i.value && i.value.removeEventListener("touchmove", q);
|
|
5535
|
-
}),
|
|
5536
|
-
[c, f, a, u
|
|
5537
|
-
|
|
5535
|
+
}), xe(
|
|
5536
|
+
[c, f, a, u],
|
|
5537
|
+
$
|
|
5538
|
+
), xe(
|
|
5539
|
+
() => o.offset,
|
|
5540
|
+
(k) => {
|
|
5541
|
+
k && (I.value = null), $();
|
|
5542
|
+
},
|
|
5538
5543
|
{ deep: !0 }
|
|
5539
5544
|
), t({
|
|
5540
5545
|
offset: U(() => ({ x: l.value.x, y: l.value.y }))
|
|
5541
5546
|
});
|
|
5542
|
-
const Ae = { props: o, emit: s, rootRef: i, state: l, isObject: r, gapX: a, gapY: u, windowWidth: c, windowHeight: f, boundary: p, closest: g, applyMagnetic: b, dragging: m, initialized: x, magneticSide:
|
|
5547
|
+
const Ae = { props: o, emit: s, rootRef: i, state: l, isObject: r, gapX: a, gapY: u, windowWidth: c, windowHeight: f, boundary: p, closest: g, applyMagnetic: b, dragging: m, initialized: x, magneticSide: I, rootStyle: M, updateState: $, touch: y, get prevX() {
|
|
5543
5548
|
return j;
|
|
5544
|
-
}, set prevX(
|
|
5545
|
-
j =
|
|
5549
|
+
}, set prevX(k) {
|
|
5550
|
+
j = k;
|
|
5546
5551
|
}, get prevY() {
|
|
5547
5552
|
return L;
|
|
5548
|
-
}, set prevY(
|
|
5549
|
-
L =
|
|
5553
|
+
}, set prevY(k) {
|
|
5554
|
+
L = k;
|
|
5550
5555
|
}, onTouchStart: B, onTouchMove: q, onTouchEnd: Z, onClick: Q, handleResize: me };
|
|
5551
5556
|
return Object.defineProperty(Ae, "__isScriptSetup", { enumerable: !1, value: !0 }), Ae;
|
|
5552
5557
|
}
|
|
@@ -5591,7 +5596,7 @@ const wl = /* @__PURE__ */ qe({
|
|
|
5591
5596
|
} = tn(), f = /* @__PURE__ */ N(u.value), p = n, g = (m) => {
|
|
5592
5597
|
f.value = m, c(m);
|
|
5593
5598
|
};
|
|
5594
|
-
|
|
5599
|
+
xe(u, (m) => {
|
|
5595
5600
|
f.value = m;
|
|
5596
5601
|
}), t({
|
|
5597
5602
|
offset: f
|
|
@@ -5615,7 +5620,7 @@ function Uu(e, t, n, o, s, i) {
|
|
|
5615
5620
|
}, {
|
|
5616
5621
|
default: pe(() => [
|
|
5617
5622
|
v("button", {
|
|
5618
|
-
class:
|
|
5623
|
+
class: Ce(["opencode-button", { active: o.active, thinking: o.thinking, "opencode-theme-dark": o.resolvedTheme === "dark" }]),
|
|
5619
5624
|
type: "button",
|
|
5620
5625
|
"aria-expanded": o.open,
|
|
5621
5626
|
"aria-label": "打开 AI 助手",
|
|
@@ -5876,7 +5881,7 @@ function od(e) {
|
|
|
5876
5881
|
}
|
|
5877
5882
|
function b() {
|
|
5878
5883
|
var m;
|
|
5879
|
-
const
|
|
5884
|
+
const I = (Eo.indexOf(e.theme.value) + 1) % Eo.length, M = Eo[I];
|
|
5880
5885
|
(m = e.onToggleTheme) == null || m.call(e, M);
|
|
5881
5886
|
}
|
|
5882
5887
|
return {
|
|
@@ -6553,18 +6558,18 @@ function wf(e) {
|
|
|
6553
6558
|
}), o = /* @__PURE__ */ N(!1), s = /* @__PURE__ */ N({ top: "0px", left: "0px" }), i = /* @__PURE__ */ N({ description: "", fileInfo: "" }), l = 500;
|
|
6554
6559
|
let r = null, a = "#3b82f6", u = "rgba(59, 130, 246, 0.1)";
|
|
6555
6560
|
function c(x) {
|
|
6556
|
-
x.forEach((
|
|
6557
|
-
|
|
6561
|
+
x.forEach((I) => {
|
|
6562
|
+
I && (I.style.pointerEvents = "none");
|
|
6558
6563
|
});
|
|
6559
6564
|
}
|
|
6560
6565
|
function f(x) {
|
|
6561
|
-
x.forEach((
|
|
6562
|
-
|
|
6566
|
+
x.forEach((I) => {
|
|
6567
|
+
I && (I.style.pointerEvents = "");
|
|
6563
6568
|
});
|
|
6564
6569
|
}
|
|
6565
6570
|
function p(x) {
|
|
6566
6571
|
if (!e.selectMode.value) return;
|
|
6567
|
-
const
|
|
6572
|
+
const I = document.querySelector(".opencode-element-highlight"), M = document.querySelector(".opencode-element-tooltip"), $ = document.querySelector(".opencode-select-mode-hint"), y = document.querySelector(".floating-bubble"), j = [I, M, $, y];
|
|
6568
6573
|
c(j);
|
|
6569
6574
|
const L = Zs(x), B = Qs(x, L);
|
|
6570
6575
|
if (f(j), L) {
|
|
@@ -6581,7 +6586,7 @@ function wf(e) {
|
|
|
6581
6586
|
description: Z,
|
|
6582
6587
|
fileInfo: Ae
|
|
6583
6588
|
};
|
|
6584
|
-
const
|
|
6589
|
+
const k = L.getBoundingClientRect(), Y = `${k.top}px`, oe = `${k.left}px`, X = `${k.width}px`, Oe = `${k.height}px`;
|
|
6585
6590
|
(n.value.top !== Y || n.value.left !== oe || n.value.width !== X || n.value.height !== Oe) && (n.value = {
|
|
6586
6591
|
top: Y,
|
|
6587
6592
|
left: oe,
|
|
@@ -6591,8 +6596,8 @@ function wf(e) {
|
|
|
6591
6596
|
background: u
|
|
6592
6597
|
});
|
|
6593
6598
|
const De = 50, Ye = 200, ye = 10;
|
|
6594
|
-
let be =
|
|
6595
|
-
be < ye && (be =
|
|
6599
|
+
let be = k.top - De - 8, ve = k.left;
|
|
6600
|
+
be < ye && (be = k.bottom + 8), be + De > window.innerHeight - ye && (be = Math.max(ye, k.top - De - 8)), ve < ye && (ve = ye), ve + Ye > window.innerWidth - ye && (ve = window.innerWidth - Ye - ye);
|
|
6596
6601
|
const st = `${be}px`, ht = `${ve}px`;
|
|
6597
6602
|
(s.value.top !== st || s.value.left !== ht) && (s.value = {
|
|
6598
6603
|
top: st,
|
|
@@ -6605,12 +6610,12 @@ function wf(e) {
|
|
|
6605
6610
|
function b() {
|
|
6606
6611
|
const x = window.__VUE_INSPECTOR__;
|
|
6607
6612
|
if (!x || x.__opencode_hooked) return;
|
|
6608
|
-
const
|
|
6613
|
+
const I = x.handleClick.bind(x);
|
|
6609
6614
|
x.handleClick = function(M) {
|
|
6610
6615
|
if (e.selectMode.value) {
|
|
6611
6616
|
const $ = M.target instanceof Element ? M.target : null;
|
|
6612
6617
|
if ($ && $.closest(".opencode-widget"))
|
|
6613
|
-
return
|
|
6618
|
+
return I.call(x, M);
|
|
6614
6619
|
M.preventDefault(), M.stopPropagation();
|
|
6615
6620
|
const y = Zs(M), j = Qs(M, y);
|
|
6616
6621
|
if (y) {
|
|
@@ -6625,15 +6630,15 @@ function wf(e) {
|
|
|
6625
6630
|
}
|
|
6626
6631
|
return;
|
|
6627
6632
|
}
|
|
6628
|
-
return
|
|
6633
|
+
return I.call(x, M);
|
|
6629
6634
|
}, x.__opencode_hooked = !0;
|
|
6630
6635
|
}
|
|
6631
6636
|
function m(x) {
|
|
6632
6637
|
x.key === "Escape" && e.selectMode.value && (x.preventDefault(), x.stopPropagation(), e.onExitSelectMode());
|
|
6633
6638
|
}
|
|
6634
|
-
return
|
|
6635
|
-
const
|
|
6636
|
-
x ? (
|
|
6639
|
+
return xe(e.selectMode, (x) => {
|
|
6640
|
+
const I = window.__VUE_INSPECTOR__;
|
|
6641
|
+
x ? (I && I.enable(), document.addEventListener("mousemove", g), document.addEventListener("keydown", m, !0)) : (I && I.disable(), document.removeEventListener("mousemove", g), document.removeEventListener("keydown", m, !0), t.value = !1, o.value = !1);
|
|
6637
6642
|
}), Ue(() => {
|
|
6638
6643
|
window.__VUE_INSPECTOR__ ? b() : r = window.setInterval(() => {
|
|
6639
6644
|
window.__VUE_INSPECTOR__ && (b(), r && (window.clearInterval(r), r = null));
|
|
@@ -6696,7 +6701,7 @@ function xf(e) {
|
|
|
6696
6701
|
e.sessionListCollapsed
|
|
6697
6702
|
];
|
|
6698
6703
|
return e.splitPanelWidth && s.push(e.splitPanelWidth), e.displayMode && s.push(e.displayMode), e.splitPosition && s.push(e.splitPosition), Ue(() => {
|
|
6699
|
-
t(),
|
|
6704
|
+
t(), xe(
|
|
6700
6705
|
s,
|
|
6701
6706
|
() => {
|
|
6702
6707
|
o();
|
|
@@ -6712,12 +6717,12 @@ const Cf = 1440;
|
|
|
6712
6717
|
function Af(e) {
|
|
6713
6718
|
var t, n;
|
|
6714
6719
|
const o = /* @__PURE__ */ N(typeof window < "u" ? window.innerWidth : 0), s = /* @__PURE__ */ N((n = (t = e.splitPosition) == null ? void 0 : t.value) != null ? n : "right"), i = U(() => {
|
|
6715
|
-
var m, x,
|
|
6720
|
+
var m, x, I, M, $, y, j;
|
|
6716
6721
|
const L = e.splitMode.value || {};
|
|
6717
6722
|
return {
|
|
6718
6723
|
width: (m = L.width) != null ? m : 500,
|
|
6719
6724
|
minWidth: (x = L.minWidth) != null ? x : 400,
|
|
6720
|
-
maxWidth: (
|
|
6725
|
+
maxWidth: (I = L.maxWidth) != null ? I : 800,
|
|
6721
6726
|
resizable: (M = L.resizable) != null ? M : !0,
|
|
6722
6727
|
shrinkPage: ($ = L.shrinkPage) != null ? $ : !0,
|
|
6723
6728
|
defaultOpen: (y = L.defaultOpen) != null ? y : !0,
|
|
@@ -6740,9 +6745,9 @@ function Af(e) {
|
|
|
6740
6745
|
if (typeof document > "u") return;
|
|
6741
6746
|
a.value && e.open.value && i.value.shrinkPage ? (document.body.classList.add("has-opencode-split"), document.body.style.setProperty("--opencode-split-width", `${l.value}px`), u.value === "left" ? (document.body.classList.add("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right")) : (document.body.classList.add("has-opencode-split-right"), document.body.classList.remove("has-opencode-split-left"))) : (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width"));
|
|
6742
6747
|
};
|
|
6743
|
-
return
|
|
6748
|
+
return xe([a, e.open, l, u], b, { immediate: !0 }), xe(i, (m) => {
|
|
6744
6749
|
l.value < m.minWidth && (l.value = m.minWidth), l.value > m.maxWidth && (l.value = m.maxWidth);
|
|
6745
|
-
}),
|
|
6750
|
+
}), xe(
|
|
6746
6751
|
() => {
|
|
6747
6752
|
var m;
|
|
6748
6753
|
return (m = e.splitPosition) == null ? void 0 : m.value;
|
|
@@ -6824,7 +6829,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
6824
6829
|
let m = null;
|
|
6825
6830
|
const x = (T) => (b.value = T, g.value = !0, new Promise((Me) => {
|
|
6826
6831
|
m = Me;
|
|
6827
|
-
})),
|
|
6832
|
+
})), I = () => {
|
|
6828
6833
|
g.value = !1, m && m(!0);
|
|
6829
6834
|
}, M = () => {
|
|
6830
6835
|
g.value = !1, m && m(!1);
|
|
@@ -6833,22 +6838,22 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
6833
6838
|
(je = $.value) == null || je.sendMessageToIframe(T, Me);
|
|
6834
6839
|
}, L = /* @__PURE__ */ N(i.sessionListCollapsed), B = /* @__PURE__ */ N(i.displayMode), q = /* @__PURE__ */ N(
|
|
6835
6840
|
(s = (o = i.splitMode) == null ? void 0 : o.position) != null ? s : "right"
|
|
6836
|
-
), Z = /* @__PURE__ */ N(!1), Q = /* @__PURE__ */ N(!0), me = /* @__PURE__ */ N(!0), Ae = /* @__PURE__ */ N(!1),
|
|
6841
|
+
), Z = /* @__PURE__ */ N(!1), Q = /* @__PURE__ */ N(!0), me = /* @__PURE__ */ N(!0), Ae = /* @__PURE__ */ N(!1), k = /* @__PURE__ */ N(i.splitPanelWidth), Y = () => {
|
|
6837
6842
|
Ae.value && (j("prompt-dock-visibility-change", { visible: Q.value }), j("minimize-state-change", { minimized: Z.value }));
|
|
6838
6843
|
}, oe = () => {
|
|
6839
6844
|
l("frame-loaded"), Ae.value = !0, Y();
|
|
6840
6845
|
};
|
|
6841
|
-
|
|
6846
|
+
xe(
|
|
6842
6847
|
() => i.sessionListCollapsed,
|
|
6843
6848
|
(T) => {
|
|
6844
6849
|
L.value = T;
|
|
6845
6850
|
}
|
|
6846
|
-
),
|
|
6851
|
+
), xe(
|
|
6847
6852
|
() => i.splitPanelWidth,
|
|
6848
6853
|
(T) => {
|
|
6849
|
-
|
|
6854
|
+
k.value = T;
|
|
6850
6855
|
}
|
|
6851
|
-
),
|
|
6856
|
+
), xe(
|
|
6852
6857
|
() => i.displayMode,
|
|
6853
6858
|
(T) => {
|
|
6854
6859
|
B.value = T;
|
|
@@ -6924,7 +6929,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
6924
6929
|
l("clear-selected-nodes"), l("update:selectedElements", []);
|
|
6925
6930
|
},
|
|
6926
6931
|
showConfirmDialog: x
|
|
6927
|
-
}), { highlightVisible:
|
|
6932
|
+
}), { highlightVisible: R, highlightStyle: P, tooltipVisible: A, tooltipStyle: E, tooltipContent: z } = wf({
|
|
6928
6933
|
selectMode: /* @__PURE__ */ se(i, "selectMode"),
|
|
6929
6934
|
onAddSelectedNode: (T) => {
|
|
6930
6935
|
l("click-selected-node", T);
|
|
@@ -6932,7 +6937,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
6932
6937
|
onExitSelectMode: () => {
|
|
6933
6938
|
l("update:selectMode", !1), l("toggle-select-mode", !1);
|
|
6934
6939
|
}
|
|
6935
|
-
}),
|
|
6940
|
+
}), D = /* @__PURE__ */ N(void 0), {
|
|
6936
6941
|
effectiveMode: H,
|
|
6937
6942
|
isSplitMode: K,
|
|
6938
6943
|
panelWidth: J,
|
|
@@ -6950,7 +6955,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
6950
6955
|
l("update:open", T), l("toggle", T);
|
|
6951
6956
|
},
|
|
6952
6957
|
onWidthChange: (T) => {
|
|
6953
|
-
|
|
6958
|
+
k.value = T, l("update:splitPanelWidth", T), l("split-panel-width-change", T);
|
|
6954
6959
|
},
|
|
6955
6960
|
onPositionChange: (T) => {
|
|
6956
6961
|
q.value = T;
|
|
@@ -6960,16 +6965,16 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
6960
6965
|
open: /* @__PURE__ */ se(i, "open"),
|
|
6961
6966
|
minimized: Z,
|
|
6962
6967
|
promptDockVisible: Q,
|
|
6963
|
-
bubbleOffset:
|
|
6968
|
+
bubbleOffset: D,
|
|
6964
6969
|
theme: /* @__PURE__ */ se(i, "theme"),
|
|
6965
6970
|
sessionListCollapsed: L,
|
|
6966
|
-
splitPanelWidth:
|
|
6971
|
+
splitPanelWidth: k,
|
|
6967
6972
|
displayMode: B,
|
|
6968
6973
|
splitPosition: q,
|
|
6969
6974
|
onRestore: (T) => {
|
|
6970
6975
|
if (T.open !== void 0 && T.open !== i.open && (l("update:open", T.open), l("toggle", T.open)), T.minimized !== void 0 && (Z.value = T.minimized), T.bubbleOffset !== void 0) {
|
|
6971
6976
|
const gt = window.innerWidth - 44 - 10, Dt = window.innerHeight - 44 - 10;
|
|
6972
|
-
|
|
6977
|
+
D.value = {
|
|
6973
6978
|
x: Math.max(10, Math.min(T.bubbleOffset.x, gt)),
|
|
6974
6979
|
y: Math.max(10, Math.min(T.bubbleOffset.y, Dt))
|
|
6975
6980
|
};
|
|
@@ -6996,7 +7001,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
6996
7001
|
const zt = U(() => {
|
|
6997
7002
|
var T, Me, je, gt;
|
|
6998
7003
|
if (typeof window > "u") return "bottom-right";
|
|
6999
|
-
const Dt = Je.value / 2, Ct = he.value / 2, mt = 44, Ke = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me :
|
|
7004
|
+
const Dt = Je.value / 2, Ct = he.value / 2, mt = 44, Ke = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me : D.value, It = ((je = Ke?.x) != null ? je : Je.value - mt - 24) + mt / 2, lt = ((gt = Ke?.y) != null ? gt : he.value - mt - 24) + mt / 2;
|
|
7000
7005
|
return It >= Dt && lt >= Ct ? "bottom-right" : It < Dt && lt >= Ct ? "bottom-left" : It >= Dt && lt < Ct ? "top-right" : "top-left";
|
|
7001
7006
|
}), on = U(() => {
|
|
7002
7007
|
const T = zt.value;
|
|
@@ -7004,7 +7009,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
7004
7009
|
}), Vl = U(() => {
|
|
7005
7010
|
var T, Me, je;
|
|
7006
7011
|
if (typeof window > "u") return {};
|
|
7007
|
-
const gt = Z.value ? 300 : 700, Dt = Z.value ? 300 : Math.min(he.value * 0.86, he.value - 40), Ct = 24, mt = 44, Ke = 20, It = (je = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me :
|
|
7012
|
+
const gt = Z.value ? 300 : 700, Dt = Z.value ? 300 : Math.min(he.value * 0.86, he.value - 40), Ct = 24, mt = 44, Ke = 20, It = (je = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me : D.value) != null ? je : { x: Je.value - mt - Ct, y: he.value - mt - Ct }, lt = {};
|
|
7008
7013
|
if (on.value) {
|
|
7009
7014
|
let Ze = Je.value - It.x + Ct;
|
|
7010
7015
|
const rn = Ke, an = Je.value - gt - Ke;
|
|
@@ -7018,7 +7023,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
7018
7023
|
const cs = he.value - Dt - Ke;
|
|
7019
7024
|
return ln > cs && (ln = cs), ln < Ke && (ln = Ke), lt.bottom = `${ln}px`, lt;
|
|
7020
7025
|
}), rs = (T) => {
|
|
7021
|
-
|
|
7026
|
+
D.value = T;
|
|
7022
7027
|
}, zl = () => {
|
|
7023
7028
|
sn.value = !0;
|
|
7024
7029
|
}, ql = () => {
|
|
@@ -7064,7 +7069,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
7064
7069
|
thinking: /* @__PURE__ */ se(i, "thinking"),
|
|
7065
7070
|
minimized: Z,
|
|
7066
7071
|
promptDockVisible: Q,
|
|
7067
|
-
bubbleOffset:
|
|
7072
|
+
bubbleOffset: D,
|
|
7068
7073
|
mode: H,
|
|
7069
7074
|
displayMode: B,
|
|
7070
7075
|
splitPosition: V,
|
|
@@ -7111,7 +7116,7 @@ const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
|
7111
7116
|
return m;
|
|
7112
7117
|
}, set dialogResolve(T) {
|
|
7113
7118
|
m = T;
|
|
7114
|
-
}, showConfirmDialog: x, handleDialogConfirm:
|
|
7119
|
+
}, showConfirmDialog: x, handleDialogConfirm: I, handleDialogCancel: M, frameRef: $, triggerRef: y, sendMessageToIframe: j, localSessionListCollapsed: L, localDisplayMode: B, localSplitPosition: q, minimized: Z, promptDockVisible: Q, isRestoring: me, iframeLoaded: Ae, splitPanelWidth: k, syncStateToIframe: Y, handleFrameLoaded: oe, handleToggleDisplayMode: X, buttonActive: Oe, containerClasses: De, iframeSource: Ye, sessionListTitle: ye, resolvedTheme: be, handleClose: ve, handleEmptyAction: st, handleToggle: ht, handleToggleSessionList: pt, handleToggleTheme: Le, sessionItems: Ge, handleCreateSession: Xe, handleDeleteSession: kt, handleSelectSession: it, bubbleVisible: nn, hasSelectedElements: d, selectedElementItems: h, handleClearSelectedNodes: _, handleClickSelectedNode: C, handleRemoveSelectedNode: S, handleToggleSelectMode: w, highlightVisible: R, highlightStyle: P, tooltipVisible: A, tooltipStyle: E, tooltipContent: z, bubbleOffset: D, effectiveMode: H, isSplitMode: K, panelWidth: J, splitConfig: O, splitPosition: V, handleResize: te, handleSplitToggle: Se, handleTogglePosition: Be, handleToggleMinimize: $e, handleTogglePromptDock: xt, windowWidth: Je, windowHeight: he, handleWindowResize: Ne, bubbleQuadrant: zt, isBubbleOnRightSide: on, chatPositionStyle: Vl, handleBubbleOffsetChange: rs, handleResizeStart: zl, handleResizeEnd: ql, chatAnimationOrigin: uo, isDragging: sn, get wasOpenBeforeDrag() {
|
|
7115
7120
|
return Dn;
|
|
7116
7121
|
}, set wasOpenBeforeDrag(T) {
|
|
7117
7122
|
Dn = T;
|
|
@@ -7134,7 +7139,7 @@ function Hf(e, t, n, o, s, i) {
|
|
|
7134
7139
|
return F(), W(
|
|
7135
7140
|
"div",
|
|
7136
7141
|
{
|
|
7137
|
-
class:
|
|
7142
|
+
class: Ce(o.containerClasses)
|
|
7138
7143
|
},
|
|
7139
7144
|
[
|
|
7140
7145
|
o.isSplitMode ? ae("v-if", !0) : (F(), ft(
|
|
@@ -7415,7 +7420,7 @@ function Wl(e) {
|
|
|
7415
7420
|
function x() {
|
|
7416
7421
|
m(), b();
|
|
7417
7422
|
}
|
|
7418
|
-
function
|
|
7423
|
+
function I() {
|
|
7419
7424
|
p.value = 0;
|
|
7420
7425
|
}
|
|
7421
7426
|
return n && o?.value !== !1 && b(), ot(() => {
|
|
@@ -7431,7 +7436,7 @@ function Wl(e) {
|
|
|
7431
7436
|
connect: b,
|
|
7432
7437
|
disconnect: m,
|
|
7433
7438
|
reconnect: x,
|
|
7434
|
-
resetRetryCount:
|
|
7439
|
+
resetRetryCount: I
|
|
7435
7440
|
};
|
|
7436
7441
|
}
|
|
7437
7442
|
function Gf(e = {}) {
|
|
@@ -7572,7 +7577,7 @@ function Jf(e) {
|
|
|
7572
7577
|
function x() {
|
|
7573
7578
|
l.value = {};
|
|
7574
7579
|
}
|
|
7575
|
-
function
|
|
7580
|
+
function I(y) {
|
|
7576
7581
|
return l.value[y];
|
|
7577
7582
|
}
|
|
7578
7583
|
function M(y) {
|
|
@@ -7599,7 +7604,7 @@ function Jf(e) {
|
|
|
7599
7604
|
disconnect: c.disconnect,
|
|
7600
7605
|
clearSessionState: m,
|
|
7601
7606
|
clearAllSessionStates: x,
|
|
7602
|
-
getSessionState:
|
|
7607
|
+
getSessionState: I,
|
|
7603
7608
|
isSessionThinking: M,
|
|
7604
7609
|
getSessionsThinking: $
|
|
7605
7610
|
};
|
|
@@ -7677,7 +7682,7 @@ function Qf(e, t) {
|
|
|
7677
7682
|
n.value === "auto" && s();
|
|
7678
7683
|
};
|
|
7679
7684
|
return Ue(() => {
|
|
7680
|
-
i = window.matchMedia("(prefers-color-scheme: dark)"), i.addEventListener("change", l),
|
|
7685
|
+
i = window.matchMedia("(prefers-color-scheme: dark)"), i.addEventListener("change", l), xe(o, () => {
|
|
7681
7686
|
s();
|
|
7682
7687
|
});
|
|
7683
7688
|
}), ot(() => {
|
|
@@ -7695,7 +7700,7 @@ function eh() {
|
|
|
7695
7700
|
s && (e.value = JSON.parse(s));
|
|
7696
7701
|
} catch {
|
|
7697
7702
|
}
|
|
7698
|
-
return
|
|
7703
|
+
return xe(
|
|
7699
7704
|
e,
|
|
7700
7705
|
(s) => {
|
|
7701
7706
|
sessionStorage.setItem("__opencode_selected_elements__", JSON.stringify(s));
|
|
@@ -7802,7 +7807,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7802
7807
|
emits: ["retry"],
|
|
7803
7808
|
setup(e, { emit: t }) {
|
|
7804
7809
|
const n = e, o = t, s = /* @__PURE__ */ N("");
|
|
7805
|
-
|
|
7810
|
+
xe(
|
|
7806
7811
|
() => n.models,
|
|
7807
7812
|
(p) => {
|
|
7808
7813
|
p && p.length > 0 && !s.value && (s.value = `${p[0].providerID}:${p[0].modelID}`);
|
|
@@ -7958,7 +7963,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7958
7963
|
proxyHost: g = "localhost",
|
|
7959
7964
|
displayMode: b = "bubble",
|
|
7960
7965
|
splitMode: m
|
|
7961
|
-
} = t.config, x = u,
|
|
7966
|
+
} = t.config, x = u, I = /* @__PURE__ */ N(m?.width ?? 500), M = U(() => `http://${g}:${p}`), $ = (O, V) => {
|
|
7962
7967
|
l.value?.showNotification?.(O, V);
|
|
7963
7968
|
}, {
|
|
7964
7969
|
serviceStatus: y,
|
|
@@ -7968,7 +7973,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7968
7973
|
loadingText: q,
|
|
7969
7974
|
updateStatusFromTask: Z,
|
|
7970
7975
|
setStarting: Q
|
|
7971
|
-
} = th(), { selectedElements: me, removeElement: Ae, clearElements:
|
|
7976
|
+
} = th(), { selectedElements: me, removeElement: Ae, clearElements: k } = eh(), { theme: Y, sendThemeToIframe: oe } = Qf(x, l), {
|
|
7972
7977
|
sessions: X,
|
|
7973
7978
|
loadingSessionList: Oe,
|
|
7974
7979
|
currentSessionId: De,
|
|
@@ -7986,7 +7991,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7986
7991
|
onTaskUpdate: (O) => {
|
|
7987
7992
|
Z(O.task, O.errorType, O.errorMessage);
|
|
7988
7993
|
},
|
|
7989
|
-
onClearElements: () =>
|
|
7994
|
+
onClearElements: () => k(),
|
|
7990
7995
|
onConnected: () => Le(!0)
|
|
7991
7996
|
}), Xe = Jf({
|
|
7992
7997
|
proxyBaseUrl: M.value,
|
|
@@ -8028,16 +8033,16 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8028
8033
|
return !1;
|
|
8029
8034
|
};
|
|
8030
8035
|
ni(f, (O) => {
|
|
8031
|
-
O.preventDefault(),
|
|
8036
|
+
O.preventDefault(), R(!n.value);
|
|
8032
8037
|
});
|
|
8033
8038
|
const w = () => {
|
|
8034
8039
|
window.__VUE_INSPECTOR__ ? E(!o.value) : $("Vue Inspector 未加载,无法使用元素选择功能");
|
|
8035
8040
|
};
|
|
8036
8041
|
ni("ctrl+p", (O) => {
|
|
8037
8042
|
O.preventDefault(), w();
|
|
8038
|
-
}),
|
|
8043
|
+
}), xe(y, (O, V) => {
|
|
8039
8044
|
O !== "idle" && V === "idle" && (Ge.connect(), Xe.connect()), O === "ready" && V !== "ready" && be();
|
|
8040
|
-
}),
|
|
8045
|
+
}), xe(j, (O) => {
|
|
8041
8046
|
O && C();
|
|
8042
8047
|
}), Ue(() => {
|
|
8043
8048
|
y.value === "ready" && (be(), Ge.connect(), Xe.connect(), Le(!0)), c && y.value === "ready" && setTimeout(() => {
|
|
@@ -8048,7 +8053,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8048
8053
|
};
|
|
8049
8054
|
window.addEventListener("message", O);
|
|
8050
8055
|
});
|
|
8051
|
-
const
|
|
8056
|
+
const R = async (O) => {
|
|
8052
8057
|
if (y.value === "idle" && O) {
|
|
8053
8058
|
i.value = !0;
|
|
8054
8059
|
const V = await S();
|
|
@@ -8068,7 +8073,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8068
8073
|
element: V
|
|
8069
8074
|
}), $("节点已添加到对话框", { mode: "page" });
|
|
8070
8075
|
}, A = () => {
|
|
8071
|
-
|
|
8076
|
+
k(), Le(!0), $("已清除所有选中元素");
|
|
8072
8077
|
}, E = (O) => {
|
|
8073
8078
|
o.value = O, l.value?.sendMessageToIframe("OPENCODE_SELECT_MODE_CHANGE", {
|
|
8074
8079
|
selectMode: O
|
|
@@ -8077,10 +8082,10 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8077
8082
|
O && !V && n.value && (n.value = !1), !O && !n.value && (n.value = !0);
|
|
8078
8083
|
}, z = (O) => {
|
|
8079
8084
|
s.value = O;
|
|
8080
|
-
},
|
|
8085
|
+
}, D = (O) => {
|
|
8081
8086
|
Y.value = O;
|
|
8082
8087
|
}, H = (O) => {
|
|
8083
|
-
|
|
8088
|
+
I.value = O;
|
|
8084
8089
|
}, K = ({ index: O }) => {
|
|
8085
8090
|
Ae(O), Le(!0);
|
|
8086
8091
|
}, J = () => {
|
|
@@ -8106,13 +8111,13 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8106
8111
|
thinking: de(kt),
|
|
8107
8112
|
"display-mode": de(b),
|
|
8108
8113
|
"split-mode": de(m),
|
|
8109
|
-
"split-panel-width":
|
|
8110
|
-
"onUpdate:open":
|
|
8114
|
+
"split-panel-width": I.value,
|
|
8115
|
+
"onUpdate:open": R,
|
|
8111
8116
|
"onUpdate:selectMode": E,
|
|
8112
8117
|
"onUpdate:sessionListCollapsed": z,
|
|
8113
|
-
"onUpdate:theme":
|
|
8118
|
+
"onUpdate:theme": D,
|
|
8114
8119
|
"onUpdate:splitPanelWidth": H,
|
|
8115
|
-
onToggleTheme:
|
|
8120
|
+
onToggleTheme: D,
|
|
8116
8121
|
onCreateSession: de(ve),
|
|
8117
8122
|
onDeleteSession: de(st),
|
|
8118
8123
|
onSelectSession: de(ht),
|