vite-plugin-opencode-assistant 1.0.29 → 1.0.30
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 +1137 -1128
- package/package.json +4 -4
package/lib/client.js
CHANGED
|
@@ -9,12 +9,12 @@ function Os(e) {
|
|
|
9
9
|
for (const n of e.split(",")) t[n] = 1;
|
|
10
10
|
return (n) => n in t;
|
|
11
11
|
}
|
|
12
|
-
const ce = {}, Ht = [],
|
|
12
|
+
const ce = {}, Ht = [], Et = () => {
|
|
13
13
|
}, Bo = () => !1, jn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
14
14
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Hn = (e) => e.startsWith("onUpdate:"), et = Object.assign, jo = (e, t) => {
|
|
15
15
|
const n = e.indexOf(t);
|
|
16
16
|
n > -1 && e.splice(n, 1);
|
|
17
|
-
}, bl = Object.prototype.hasOwnProperty, se = (e, t) => bl.call(e, t),
|
|
17
|
+
}, bl = Object.prototype.hasOwnProperty, se = (e, t) => bl.call(e, t), U = Array.isArray, Vt = (e) => yn(e) === "[object Map]", Ho = (e) => yn(e) === "[object Set]", Gs = (e) => yn(e) === "[object Date]", ne = (e) => typeof e == "function", ye = (e) => typeof e == "string", He = (e) => typeof e == "symbol", re = (e) => e !== null && typeof e == "object", Vo = (e) => (re(e) || ne(e)) && ne(e.then) && ne(e.catch), Wo = Object.prototype.toString, yn = (e) => Wo.call(e), Sl = (e) => yn(e).slice(8, -1), Ko = (e) => yn(e) === "[object Object]", Vn = (e) => ye(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, ln = /* @__PURE__ */ Os(
|
|
18
18
|
// the leading comma is intentional so empty string "" is also included
|
|
19
19
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
20
20
|
), Wn = (e) => {
|
|
@@ -22,8 +22,8 @@ const ce = {}, Ht = [], Tt = () => {
|
|
|
22
22
|
return (n) => t[n] || (t[n] = e(n));
|
|
23
23
|
}, wl = /-\w/g, Je = Wn(
|
|
24
24
|
(e) => e.replace(wl, (t) => t.slice(1).toUpperCase())
|
|
25
|
-
),
|
|
26
|
-
(e) => e.replace(
|
|
25
|
+
), Tl = /\B([A-Z])/g, $t = Wn(
|
|
26
|
+
(e) => e.replace(Tl, "-$1").toLowerCase()
|
|
27
27
|
), Uo = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), Jn = Wn(
|
|
28
28
|
(e) => e ? `on${Uo(e)}` : ""
|
|
29
29
|
), ut = (e, t) => !Object.is(e, t), Zn = (e, ...t) => {
|
|
@@ -36,14 +36,14 @@ const ce = {}, Ht = [], Tt = () => {
|
|
|
36
36
|
writable: s,
|
|
37
37
|
value: n
|
|
38
38
|
});
|
|
39
|
-
},
|
|
39
|
+
}, El = (e) => {
|
|
40
40
|
const t = parseFloat(e);
|
|
41
41
|
return isNaN(t) ? e : t;
|
|
42
42
|
};
|
|
43
43
|
let Js;
|
|
44
44
|
const Kn = () => Js || (Js = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
45
45
|
function Rt(e) {
|
|
46
|
-
if (
|
|
46
|
+
if (U(e)) {
|
|
47
47
|
const t = {};
|
|
48
48
|
for (let n = 0; n < e.length; n++) {
|
|
49
49
|
const s = e[n], o = ye(s) ? Ol(s) : Rt(s);
|
|
@@ -52,7 +52,7 @@ function Rt(e) {
|
|
|
52
52
|
t[i] = o[i];
|
|
53
53
|
}
|
|
54
54
|
return t;
|
|
55
|
-
} else if (ye(e) ||
|
|
55
|
+
} else if (ye(e) || re(e))
|
|
56
56
|
return e;
|
|
57
57
|
}
|
|
58
58
|
const Cl = /;(?![^(]*\))/g, xl = /:([^]+)/, Al = /\/\*[^]*?\*\//g;
|
|
@@ -65,16 +65,16 @@ function Ol(e) {
|
|
|
65
65
|
}
|
|
66
66
|
}), t;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Me(e) {
|
|
69
69
|
let t = "";
|
|
70
70
|
if (ye(e))
|
|
71
71
|
t = e;
|
|
72
|
-
else if (
|
|
72
|
+
else if (U(e))
|
|
73
73
|
for (let n = 0; n < e.length; n++) {
|
|
74
|
-
const s =
|
|
74
|
+
const s = Me(e[n]);
|
|
75
75
|
s && (t += s + " ");
|
|
76
76
|
}
|
|
77
|
-
else if (
|
|
77
|
+
else if (re(e))
|
|
78
78
|
for (const n in e)
|
|
79
79
|
e[n] && (t += n + " ");
|
|
80
80
|
return t.trim();
|
|
@@ -97,9 +97,9 @@ function Is(e, t) {
|
|
|
97
97
|
return n && s ? e.getTime() === t.getTime() : !1;
|
|
98
98
|
if (n = He(e), s = He(t), n || s)
|
|
99
99
|
return e === t;
|
|
100
|
-
if (n =
|
|
100
|
+
if (n = U(e), s = U(t), n || s)
|
|
101
101
|
return n && s ? Dl(e, t) : !1;
|
|
102
|
-
if (n =
|
|
102
|
+
if (n = re(e), s = re(t), n || s) {
|
|
103
103
|
if (!n || !s)
|
|
104
104
|
return !1;
|
|
105
105
|
const o = Object.keys(e).length, i = Object.keys(t).length;
|
|
@@ -113,14 +113,14 @@ function Is(e, t) {
|
|
|
113
113
|
}
|
|
114
114
|
return String(e) === String(t);
|
|
115
115
|
}
|
|
116
|
-
const Yo = (e) => !!(e && e.__v_isRef === !0), we = (e) => ye(e) ? e : e == null ? "" :
|
|
116
|
+
const Yo = (e) => !!(e && e.__v_isRef === !0), we = (e) => ye(e) ? e : e == null ? "" : U(e) || re(e) && (e.toString === Wo || !ne(e.toString)) ? Yo(e) ? we(e.value) : JSON.stringify(e, Xo, 2) : String(e), Xo = (e, t) => Yo(t) ? Xo(e, t.value) : Vt(t) ? {
|
|
117
117
|
[`Map(${t.size})`]: [...t.entries()].reduce(
|
|
118
118
|
(n, [s, o], i) => (n[Qn(s, i) + " =>"] = o, n),
|
|
119
119
|
{}
|
|
120
120
|
)
|
|
121
121
|
} : Ho(t) ? {
|
|
122
122
|
[`Set(${t.size})`]: [...t.values()].map((n) => Qn(n))
|
|
123
|
-
} : He(t) ? Qn(t) :
|
|
123
|
+
} : He(t) ? Qn(t) : re(t) && !U(t) && !Ko(t) ? String(t) : t, Qn = (e, t = "") => {
|
|
124
124
|
var n;
|
|
125
125
|
return (
|
|
126
126
|
// Symbol.description in es2019+ so we need to cast here to pass
|
|
@@ -136,11 +136,11 @@ function kl(e) {
|
|
|
136
136
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
137
137
|
* @license MIT
|
|
138
138
|
**/
|
|
139
|
-
let
|
|
139
|
+
let ke;
|
|
140
140
|
class Pl {
|
|
141
141
|
// TODO isolatedDeclarations "__v_skip"
|
|
142
142
|
constructor(t = !1) {
|
|
143
|
-
this.detached = t, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.__v_skip = !0, this.parent =
|
|
143
|
+
this.detached = t, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.__v_skip = !0, this.parent = ke, !t && ke && (this.index = (ke.scopes || (ke.scopes = [])).push(
|
|
144
144
|
this
|
|
145
145
|
) - 1);
|
|
146
146
|
}
|
|
@@ -174,11 +174,11 @@ class Pl {
|
|
|
174
174
|
}
|
|
175
175
|
run(t) {
|
|
176
176
|
if (this._active) {
|
|
177
|
-
const n =
|
|
177
|
+
const n = ke;
|
|
178
178
|
try {
|
|
179
|
-
return
|
|
179
|
+
return ke = this, t();
|
|
180
180
|
} finally {
|
|
181
|
-
|
|
181
|
+
ke = n;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -187,14 +187,14 @@ class Pl {
|
|
|
187
187
|
* @internal
|
|
188
188
|
*/
|
|
189
189
|
on() {
|
|
190
|
-
++this._on === 1 && (this.prevScope =
|
|
190
|
+
++this._on === 1 && (this.prevScope = ke, ke = this);
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* This should only be called on non-detached scopes
|
|
194
194
|
* @internal
|
|
195
195
|
*/
|
|
196
196
|
off() {
|
|
197
|
-
this._on > 0 && --this._on === 0 && (
|
|
197
|
+
this._on > 0 && --this._on === 0 && (ke = this.prevScope, this.prevScope = void 0);
|
|
198
198
|
}
|
|
199
199
|
stop(t) {
|
|
200
200
|
if (this._active) {
|
|
@@ -218,13 +218,13 @@ class Pl {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
function Nl() {
|
|
221
|
-
return
|
|
221
|
+
return ke;
|
|
222
222
|
}
|
|
223
|
-
let
|
|
223
|
+
let oe;
|
|
224
224
|
const es = /* @__PURE__ */ new WeakSet();
|
|
225
225
|
class Go {
|
|
226
226
|
constructor(t) {
|
|
227
|
-
this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0,
|
|
227
|
+
this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, ke && ke.active && ke.effects.push(this);
|
|
228
228
|
}
|
|
229
229
|
pause() {
|
|
230
230
|
this.flags |= 64;
|
|
@@ -242,12 +242,12 @@ class Go {
|
|
|
242
242
|
if (!(this.flags & 1))
|
|
243
243
|
return this.fn();
|
|
244
244
|
this.flags |= 2, Zs(this), Qo(this);
|
|
245
|
-
const t =
|
|
246
|
-
|
|
245
|
+
const t = oe, n = Ze;
|
|
246
|
+
oe = this, Ze = !0;
|
|
247
247
|
try {
|
|
248
248
|
return this.fn();
|
|
249
249
|
} finally {
|
|
250
|
-
ei(this),
|
|
250
|
+
ei(this), oe = t, Ze = n, this.flags &= -3;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
stop() {
|
|
@@ -329,8 +329,8 @@ function ti(e) {
|
|
|
329
329
|
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === hn) || (e.globalVersion = hn, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !ps(e))))
|
|
330
330
|
return;
|
|
331
331
|
e.flags |= 2;
|
|
332
|
-
const t = e.dep, n =
|
|
333
|
-
|
|
332
|
+
const t = e.dep, n = oe, s = Ze;
|
|
333
|
+
oe = e, Ze = !0;
|
|
334
334
|
try {
|
|
335
335
|
Qo(e);
|
|
336
336
|
const o = e.fn(e._value);
|
|
@@ -338,7 +338,7 @@ function ti(e) {
|
|
|
338
338
|
} catch (o) {
|
|
339
339
|
throw t.version++, o;
|
|
340
340
|
} finally {
|
|
341
|
-
|
|
341
|
+
oe = n, Ze = s, ei(e), e.flags &= -3;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
function ks(e, t = !1) {
|
|
@@ -366,12 +366,12 @@ function xt() {
|
|
|
366
366
|
function Zs(e) {
|
|
367
367
|
const { cleanup: t } = e;
|
|
368
368
|
if (e.cleanup = void 0, t) {
|
|
369
|
-
const n =
|
|
370
|
-
|
|
369
|
+
const n = oe;
|
|
370
|
+
oe = void 0;
|
|
371
371
|
try {
|
|
372
372
|
t();
|
|
373
373
|
} finally {
|
|
374
|
-
|
|
374
|
+
oe = n;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
}
|
|
@@ -387,14 +387,14 @@ class Ps {
|
|
|
387
387
|
this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0;
|
|
388
388
|
}
|
|
389
389
|
track(t) {
|
|
390
|
-
if (!
|
|
390
|
+
if (!oe || !Ze || oe === this.computed)
|
|
391
391
|
return;
|
|
392
392
|
let n = this.activeLink;
|
|
393
|
-
if (n === void 0 || n.sub !==
|
|
394
|
-
n = this.activeLink = new Ll(
|
|
393
|
+
if (n === void 0 || n.sub !== oe)
|
|
394
|
+
n = this.activeLink = new Ll(oe, this), oe.deps ? (n.prevDep = oe.depsTail, oe.depsTail.nextDep = n, oe.depsTail = n) : oe.deps = oe.depsTail = n, si(n);
|
|
395
395
|
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
396
396
|
const s = n.nextDep;
|
|
397
|
-
s.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = s), n.prevDep =
|
|
397
|
+
s.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = s), n.prevDep = oe.depsTail, n.nextDep = void 0, oe.depsTail.nextDep = n, oe.depsTail = n, oe.deps === n && (oe.deps = s);
|
|
398
398
|
}
|
|
399
399
|
return n;
|
|
400
400
|
}
|
|
@@ -430,8 +430,8 @@ const Mn = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ Symbol(
|
|
|
430
430
|
), pn = /* @__PURE__ */ Symbol(
|
|
431
431
|
""
|
|
432
432
|
);
|
|
433
|
-
function
|
|
434
|
-
if (Ze &&
|
|
433
|
+
function Ee(e, t, n) {
|
|
434
|
+
if (Ze && oe) {
|
|
435
435
|
let s = Mn.get(e);
|
|
436
436
|
s || Mn.set(e, s = /* @__PURE__ */ new Map());
|
|
437
437
|
let o = s.get(n);
|
|
@@ -450,7 +450,7 @@ function vt(e, t, n, s, o, i) {
|
|
|
450
450
|
if (Ms(), t === "clear")
|
|
451
451
|
l.forEach(r);
|
|
452
452
|
else {
|
|
453
|
-
const a =
|
|
453
|
+
const a = U(e), u = a && Vn(n);
|
|
454
454
|
if (a && n === "length") {
|
|
455
455
|
const c = Number(s);
|
|
456
456
|
l.forEach((d, p) => {
|
|
@@ -477,10 +477,10 @@ function Fl(e, t) {
|
|
|
477
477
|
}
|
|
478
478
|
function Bt(e) {
|
|
479
479
|
const t = /* @__PURE__ */ Z(e);
|
|
480
|
-
return t === e ? t : (
|
|
480
|
+
return t === e ? t : (Ee(t, "iterate", pn), /* @__PURE__ */ je(e) ? t : t.map(Qe));
|
|
481
481
|
}
|
|
482
482
|
function Un(e) {
|
|
483
|
-
return
|
|
483
|
+
return Ee(e = /* @__PURE__ */ Z(e), "iterate", pn), e;
|
|
484
484
|
}
|
|
485
485
|
function at(e, t) {
|
|
486
486
|
return /* @__PURE__ */ yt(e) ? qt(/* @__PURE__ */ Ft(e) ? Qe(t) : t) : Qe(t);
|
|
@@ -492,7 +492,7 @@ const $l = {
|
|
|
492
492
|
},
|
|
493
493
|
concat(...e) {
|
|
494
494
|
return Bt(this).concat(
|
|
495
|
-
...e.map((t) =>
|
|
495
|
+
...e.map((t) => U(t) ? Bt(t) : t)
|
|
496
496
|
);
|
|
497
497
|
},
|
|
498
498
|
entries() {
|
|
@@ -631,7 +631,7 @@ function Qs(e, t, n, s) {
|
|
|
631
631
|
}
|
|
632
632
|
function ns(e, t, n) {
|
|
633
633
|
const s = /* @__PURE__ */ Z(e);
|
|
634
|
-
|
|
634
|
+
Ee(s, "iterate", pn);
|
|
635
635
|
const o = s[t](...n);
|
|
636
636
|
return (o === -1 || o === !1) && /* @__PURE__ */ qn(n[0]) ? (n[0] = /* @__PURE__ */ Z(n[0]), s[t](...n)) : o;
|
|
637
637
|
}
|
|
@@ -646,7 +646,7 @@ const jl = /* @__PURE__ */ Os("__proto__,__v_isRef,__isVue"), oi = new Set(
|
|
|
646
646
|
function Hl(e) {
|
|
647
647
|
He(e) || (e = String(e));
|
|
648
648
|
const t = /* @__PURE__ */ Z(this);
|
|
649
|
-
return
|
|
649
|
+
return Ee(t, "has", e), t.hasOwnProperty(e);
|
|
650
650
|
}
|
|
651
651
|
class ii {
|
|
652
652
|
constructor(t = !1, n = !1) {
|
|
@@ -665,7 +665,7 @@ class ii {
|
|
|
665
665
|
return s === (o ? i ? Jl : ci : i ? ai : ri).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
666
666
|
// this means the receiver is a user proxy of the reactive proxy
|
|
667
667
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
668
|
-
const l =
|
|
668
|
+
const l = U(t);
|
|
669
669
|
if (!o) {
|
|
670
670
|
let a;
|
|
671
671
|
if (l && (a = $l[n]))
|
|
@@ -679,15 +679,15 @@ class ii {
|
|
|
679
679
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
680
680
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
681
681
|
// its class methods
|
|
682
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ Te(t) ? t : s
|
|
683
683
|
);
|
|
684
|
-
if ((He(n) ? oi.has(n) : jl(n)) || (o ||
|
|
684
|
+
if ((He(n) ? oi.has(n) : jl(n)) || (o || Ee(t, "get", n), i))
|
|
685
685
|
return r;
|
|
686
|
-
if (/* @__PURE__ */
|
|
686
|
+
if (/* @__PURE__ */ Te(r)) {
|
|
687
687
|
const a = l && Vn(n) ? r : r.value;
|
|
688
|
-
return o &&
|
|
688
|
+
return o && re(a) ? /* @__PURE__ */ vs(a) : a;
|
|
689
689
|
}
|
|
690
|
-
return
|
|
690
|
+
return re(r) ? o ? /* @__PURE__ */ vs(r) : /* @__PURE__ */ ui(r) : r;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
class li extends ii {
|
|
@@ -696,17 +696,17 @@ class li extends ii {
|
|
|
696
696
|
}
|
|
697
697
|
set(t, n, s, o) {
|
|
698
698
|
let i = t[n];
|
|
699
|
-
const l =
|
|
699
|
+
const l = U(t) && Vn(n);
|
|
700
700
|
if (!this._isShallow) {
|
|
701
701
|
const u = /* @__PURE__ */ yt(i);
|
|
702
|
-
if (!/* @__PURE__ */ je(s) && !/* @__PURE__ */ yt(s) && (i = /* @__PURE__ */ Z(i), s = /* @__PURE__ */ Z(s)), !l && /* @__PURE__ */
|
|
702
|
+
if (!/* @__PURE__ */ je(s) && !/* @__PURE__ */ yt(s) && (i = /* @__PURE__ */ Z(i), s = /* @__PURE__ */ Z(s)), !l && /* @__PURE__ */ Te(i) && !/* @__PURE__ */ Te(s))
|
|
703
703
|
return u || (i.value = s), !0;
|
|
704
704
|
}
|
|
705
705
|
const r = l ? Number(n) < t.length : se(t, n), a = Reflect.set(
|
|
706
706
|
t,
|
|
707
707
|
n,
|
|
708
708
|
s,
|
|
709
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ Te(t) ? t : o
|
|
710
710
|
);
|
|
711
711
|
return t === /* @__PURE__ */ Z(o) && (r ? ut(s, i) && vt(t, "set", n, s) : vt(t, "add", n, s)), a;
|
|
712
712
|
}
|
|
@@ -718,13 +718,13 @@ class li extends ii {
|
|
|
718
718
|
}
|
|
719
719
|
has(t, n) {
|
|
720
720
|
const s = Reflect.has(t, n);
|
|
721
|
-
return (!He(n) || !oi.has(n)) &&
|
|
721
|
+
return (!He(n) || !oi.has(n)) && Ee(t, "has", n), s;
|
|
722
722
|
}
|
|
723
723
|
ownKeys(t) {
|
|
724
|
-
return
|
|
724
|
+
return Ee(
|
|
725
725
|
t,
|
|
726
726
|
"iterate",
|
|
727
|
-
|
|
727
|
+
U(t) ? "length" : Lt
|
|
728
728
|
), Reflect.ownKeys(t);
|
|
729
729
|
}
|
|
730
730
|
}
|
|
@@ -744,7 +744,7 @@ const ms = (e) => e, wn = (e) => Reflect.getPrototypeOf(e);
|
|
|
744
744
|
function ql(e, t, n) {
|
|
745
745
|
return function(...s) {
|
|
746
746
|
const o = this.__v_raw, i = /* @__PURE__ */ Z(o), l = Vt(i), r = e === "entries" || e === Symbol.iterator && l, a = e === "keys" && l, u = o[e](...s), c = n ? ms : t ? qt : Qe;
|
|
747
|
-
return !t &&
|
|
747
|
+
return !t && Ee(
|
|
748
748
|
i,
|
|
749
749
|
"iterate",
|
|
750
750
|
a ? gs : Lt
|
|
@@ -764,7 +764,7 @@ function ql(e, t, n) {
|
|
|
764
764
|
);
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Tn(e) {
|
|
768
768
|
return function(...t) {
|
|
769
769
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
770
770
|
};
|
|
@@ -773,7 +773,7 @@ function zl(e, t) {
|
|
|
773
773
|
const n = {
|
|
774
774
|
get(o) {
|
|
775
775
|
const i = this.__v_raw, l = /* @__PURE__ */ Z(i), r = /* @__PURE__ */ Z(o);
|
|
776
|
-
e || (ut(o, r) &&
|
|
776
|
+
e || (ut(o, r) && Ee(l, "get", o), Ee(l, "get", r));
|
|
777
777
|
const { has: a } = wn(l), u = t ? ms : e ? qt : Qe;
|
|
778
778
|
if (a.call(l, o))
|
|
779
779
|
return u(i.get(o));
|
|
@@ -783,24 +783,24 @@ function zl(e, t) {
|
|
|
783
783
|
},
|
|
784
784
|
get size() {
|
|
785
785
|
const o = this.__v_raw;
|
|
786
|
-
return !e &&
|
|
786
|
+
return !e && Ee(/* @__PURE__ */ Z(o), "iterate", Lt), o.size;
|
|
787
787
|
},
|
|
788
788
|
has(o) {
|
|
789
789
|
const i = this.__v_raw, l = /* @__PURE__ */ Z(i), r = /* @__PURE__ */ Z(o);
|
|
790
|
-
return e || (ut(o, r) &&
|
|
790
|
+
return e || (ut(o, r) && Ee(l, "has", o), Ee(l, "has", r)), o === r ? i.has(o) : i.has(o) || i.has(r);
|
|
791
791
|
},
|
|
792
792
|
forEach(o, i) {
|
|
793
793
|
const l = this, r = l.__v_raw, a = /* @__PURE__ */ Z(r), u = t ? ms : e ? qt : Qe;
|
|
794
|
-
return !e &&
|
|
794
|
+
return !e && Ee(a, "iterate", Lt), r.forEach((c, d) => o.call(i, u(c), u(d), l));
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
797
|
return et(
|
|
798
798
|
n,
|
|
799
799
|
e ? {
|
|
800
|
-
add:
|
|
801
|
-
set:
|
|
802
|
-
delete:
|
|
803
|
-
clear:
|
|
800
|
+
add: Tn("add"),
|
|
801
|
+
set: Tn("set"),
|
|
802
|
+
delete: Tn("delete"),
|
|
803
|
+
clear: Tn("clear")
|
|
804
804
|
} : {
|
|
805
805
|
add(o) {
|
|
806
806
|
const i = /* @__PURE__ */ Z(this), l = wn(i), r = /* @__PURE__ */ Z(o), a = !t && !/* @__PURE__ */ je(o) && !/* @__PURE__ */ yt(o) ? r : o;
|
|
@@ -904,7 +904,7 @@ function vs(e) {
|
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
906
|
function Rs(e, t, n, s, o) {
|
|
907
|
-
if (!
|
|
907
|
+
if (!re(e) || e.__v_raw && !(t && e.__v_isReactive))
|
|
908
908
|
return e;
|
|
909
909
|
const i = Ql(e);
|
|
910
910
|
if (i === 0)
|
|
@@ -942,9 +942,9 @@ function Z(e) {
|
|
|
942
942
|
function tr(e) {
|
|
943
943
|
return !se(e, "__v_skip") && Object.isExtensible(e) && qo(e, "__v_skip", !0), e;
|
|
944
944
|
}
|
|
945
|
-
const Qe = (e) =>
|
|
945
|
+
const Qe = (e) => re(e) ? /* @__PURE__ */ ui(e) : e, qt = (e) => re(e) ? /* @__PURE__ */ vs(e) : e;
|
|
946
946
|
// @__NO_SIDE_EFFECTS__
|
|
947
|
-
function
|
|
947
|
+
function Te(e) {
|
|
948
948
|
return e ? e.__v_isRef === !0 : !1;
|
|
949
949
|
}
|
|
950
950
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -952,7 +952,7 @@ function F(e) {
|
|
|
952
952
|
return nr(e, !1);
|
|
953
953
|
}
|
|
954
954
|
function nr(e, t) {
|
|
955
|
-
return /* @__PURE__ */
|
|
955
|
+
return /* @__PURE__ */ Te(e) ? e : new sr(e, t);
|
|
956
956
|
}
|
|
957
957
|
class sr {
|
|
958
958
|
constructor(t, n) {
|
|
@@ -967,13 +967,13 @@ class sr {
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
function de(e) {
|
|
970
|
-
return /* @__PURE__ */
|
|
970
|
+
return /* @__PURE__ */ Te(e) ? e.value : e;
|
|
971
971
|
}
|
|
972
972
|
const or = {
|
|
973
973
|
get: (e, t, n) => t === "__v_raw" ? e : de(Reflect.get(e, t, n)),
|
|
974
974
|
set: (e, t, n, s) => {
|
|
975
975
|
const o = e[t];
|
|
976
|
-
return /* @__PURE__ */
|
|
976
|
+
return /* @__PURE__ */ Te(o) && !/* @__PURE__ */ Te(n) ? (o.value = n, !0) : Reflect.set(e, t, n, s);
|
|
977
977
|
}
|
|
978
978
|
};
|
|
979
979
|
function fi(e) {
|
|
@@ -983,7 +983,7 @@ class ir {
|
|
|
983
983
|
constructor(t, n, s) {
|
|
984
984
|
this._object = t, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._key = He(n) ? n : String(n), this._raw = /* @__PURE__ */ Z(t);
|
|
985
985
|
let o = !0, i = t;
|
|
986
|
-
if (!
|
|
986
|
+
if (!U(t) || He(this._key) || !Vn(this._key))
|
|
987
987
|
do
|
|
988
988
|
o = !/* @__PURE__ */ qn(i) || /* @__PURE__ */ je(i);
|
|
989
989
|
while (o && (i = i.__v_raw));
|
|
@@ -994,9 +994,9 @@ class ir {
|
|
|
994
994
|
return this._shallow && (t = de(t)), this._value = t === void 0 ? this._defaultValue : t;
|
|
995
995
|
}
|
|
996
996
|
set value(t) {
|
|
997
|
-
if (this._shallow && /* @__PURE__ */
|
|
997
|
+
if (this._shallow && /* @__PURE__ */ Te(this._raw[this._key])) {
|
|
998
998
|
const n = this._object[this._key];
|
|
999
|
-
if (/* @__PURE__ */
|
|
999
|
+
if (/* @__PURE__ */ Te(n)) {
|
|
1000
1000
|
n.value = t;
|
|
1001
1001
|
return;
|
|
1002
1002
|
}
|
|
@@ -1016,8 +1016,8 @@ class lr {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
// @__NO_SIDE_EFFECTS__
|
|
1019
|
-
function
|
|
1020
|
-
return /* @__PURE__ */
|
|
1019
|
+
function te(e, t, n) {
|
|
1020
|
+
return /* @__PURE__ */ Te(e) ? e : ne(e) ? new lr(e) : re(e) && arguments.length > 1 ? rr(e, t, n) : /* @__PURE__ */ F(e);
|
|
1021
1021
|
}
|
|
1022
1022
|
function rr(e, t, n) {
|
|
1023
1023
|
return new ir(e, t, n);
|
|
@@ -1031,7 +1031,7 @@ class ar {
|
|
|
1031
1031
|
*/
|
|
1032
1032
|
notify() {
|
|
1033
1033
|
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
1034
|
-
|
|
1034
|
+
oe !== this)
|
|
1035
1035
|
return Zo(this, !0), !0;
|
|
1036
1036
|
}
|
|
1037
1037
|
get value() {
|
|
@@ -1045,9 +1045,9 @@ class ar {
|
|
|
1045
1045
|
// @__NO_SIDE_EFFECTS__
|
|
1046
1046
|
function cr(e, t, n = !1) {
|
|
1047
1047
|
let s, o;
|
|
1048
|
-
return
|
|
1048
|
+
return ne(e) ? s = e : (s = e.get, o = e.set), new ar(s, o, n);
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1050
|
+
const En = {}, Dn = /* @__PURE__ */ new WeakMap();
|
|
1051
1051
|
let Pt;
|
|
1052
1052
|
function ur(e, t = !1, n = Pt) {
|
|
1053
1053
|
if (n) {
|
|
@@ -1056,16 +1056,16 @@ function ur(e, t = !1, n = Pt) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
1058
|
function fr(e, t, n = ce) {
|
|
1059
|
-
const { immediate: s, deep: o, once: i, scheduler: l, augmentJob: r, call: a } = n, u = (
|
|
1060
|
-
let c, d, p, _, x = !1,
|
|
1061
|
-
if (/* @__PURE__ */
|
|
1062
|
-
if (/* @__PURE__ */
|
|
1063
|
-
return
|
|
1064
|
-
if (/* @__PURE__ */ Ft(
|
|
1065
|
-
return u(
|
|
1066
|
-
if (
|
|
1067
|
-
return a ? a(
|
|
1068
|
-
})) :
|
|
1059
|
+
const { immediate: s, deep: o, once: i, scheduler: l, augmentJob: r, call: a } = n, u = (b) => o ? b : /* @__PURE__ */ je(b) || o === !1 || o === 0 ? _t(b, 1) : _t(b);
|
|
1060
|
+
let c, d, p, _, x = !1, S = !1;
|
|
1061
|
+
if (/* @__PURE__ */ Te(e) ? (d = () => e.value, x = /* @__PURE__ */ je(e)) : /* @__PURE__ */ Ft(e) ? (d = () => u(e), x = !0) : U(e) ? (S = !0, x = e.some((b) => /* @__PURE__ */ Ft(b) || /* @__PURE__ */ je(b)), d = () => e.map((b) => {
|
|
1062
|
+
if (/* @__PURE__ */ Te(b))
|
|
1063
|
+
return b.value;
|
|
1064
|
+
if (/* @__PURE__ */ Ft(b))
|
|
1065
|
+
return u(b);
|
|
1066
|
+
if (ne(b))
|
|
1067
|
+
return a ? a(b, 2) : b();
|
|
1068
|
+
})) : ne(e) ? t ? d = a ? () => a(e, 2) : e : d = () => {
|
|
1069
1069
|
if (p) {
|
|
1070
1070
|
Ct();
|
|
1071
1071
|
try {
|
|
@@ -1074,70 +1074,70 @@ function fr(e, t, n = ce) {
|
|
|
1074
1074
|
xt();
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
|
-
const
|
|
1077
|
+
const b = Pt;
|
|
1078
1078
|
Pt = c;
|
|
1079
1079
|
try {
|
|
1080
1080
|
return a ? a(e, 3, [_]) : e(_);
|
|
1081
1081
|
} finally {
|
|
1082
|
-
Pt =
|
|
1082
|
+
Pt = b;
|
|
1083
1083
|
}
|
|
1084
|
-
} : d =
|
|
1085
|
-
const
|
|
1086
|
-
d = () => _t(
|
|
1084
|
+
} : d = Et, t && o) {
|
|
1085
|
+
const b = d, B = o === !0 ? 1 / 0 : o;
|
|
1086
|
+
d = () => _t(b(), B);
|
|
1087
1087
|
}
|
|
1088
|
-
const D = Nl(),
|
|
1088
|
+
const D = Nl(), L = () => {
|
|
1089
1089
|
c.stop(), D && D.active && jo(D.effects, c);
|
|
1090
1090
|
};
|
|
1091
1091
|
if (i && t) {
|
|
1092
|
-
const
|
|
1093
|
-
t = (
|
|
1094
|
-
|
|
1092
|
+
const b = t;
|
|
1093
|
+
t = (...B) => {
|
|
1094
|
+
b(...B), L();
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
let C =
|
|
1098
|
-
const
|
|
1099
|
-
if (!(!(c.flags & 1) || !c.dirty && !
|
|
1097
|
+
let C = S ? new Array(e.length).fill(En) : En;
|
|
1098
|
+
const $ = (b) => {
|
|
1099
|
+
if (!(!(c.flags & 1) || !c.dirty && !b))
|
|
1100
1100
|
if (t) {
|
|
1101
|
-
const
|
|
1102
|
-
if (o || x || (
|
|
1101
|
+
const B = c.run();
|
|
1102
|
+
if (o || x || (S ? B.some((k, N) => ut(k, C[N])) : ut(B, C))) {
|
|
1103
1103
|
p && p();
|
|
1104
|
-
const
|
|
1104
|
+
const k = Pt;
|
|
1105
1105
|
Pt = c;
|
|
1106
1106
|
try {
|
|
1107
|
-
const
|
|
1108
|
-
|
|
1107
|
+
const N = [
|
|
1108
|
+
B,
|
|
1109
1109
|
// pass undefined as the old value when it's changed for the first time
|
|
1110
|
-
C ===
|
|
1110
|
+
C === En ? void 0 : S && C[0] === En ? [] : C,
|
|
1111
1111
|
_
|
|
1112
1112
|
];
|
|
1113
|
-
C =
|
|
1113
|
+
C = B, a ? a(t, 3, N) : (
|
|
1114
1114
|
// @ts-expect-error
|
|
1115
|
-
t(...
|
|
1115
|
+
t(...N)
|
|
1116
1116
|
);
|
|
1117
1117
|
} finally {
|
|
1118
|
-
Pt =
|
|
1118
|
+
Pt = k;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
} else
|
|
1122
1122
|
c.run();
|
|
1123
1123
|
};
|
|
1124
|
-
return r && r(
|
|
1125
|
-
const
|
|
1126
|
-
if (
|
|
1124
|
+
return r && r($), c = new Go(d), c.scheduler = l ? () => l($, !1) : $, _ = (b) => ur(b, !1, c), p = c.onStop = () => {
|
|
1125
|
+
const b = Dn.get(c);
|
|
1126
|
+
if (b) {
|
|
1127
1127
|
if (a)
|
|
1128
|
-
a(
|
|
1128
|
+
a(b, 4);
|
|
1129
1129
|
else
|
|
1130
|
-
for (const
|
|
1130
|
+
for (const B of b) B();
|
|
1131
1131
|
Dn.delete(c);
|
|
1132
1132
|
}
|
|
1133
|
-
}, t ? s ?
|
|
1133
|
+
}, t ? s ? $(!0) : C = c.run() : l ? l($.bind(null, !0), !0) : c.run(), L.pause = c.pause.bind(c), L.resume = c.resume.bind(c), L.stop = L, L;
|
|
1134
1134
|
}
|
|
1135
1135
|
function _t(e, t = 1 / 0, n) {
|
|
1136
|
-
if (t <= 0 || !
|
|
1136
|
+
if (t <= 0 || !re(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
|
|
1137
1137
|
return e;
|
|
1138
|
-
if (n.set(e, t), t--, /* @__PURE__ */
|
|
1138
|
+
if (n.set(e, t), t--, /* @__PURE__ */ Te(e))
|
|
1139
1139
|
_t(e.value, t, n);
|
|
1140
|
-
else if (
|
|
1140
|
+
else if (U(e))
|
|
1141
1141
|
for (let s = 0; s < e.length; s++)
|
|
1142
1142
|
_t(e[s], t, n);
|
|
1143
1143
|
else if (Ho(e) || Vt(e))
|
|
@@ -1165,13 +1165,13 @@ function bn(e, t, n, s) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
function bt(e, t, n, s) {
|
|
1168
|
-
if (
|
|
1168
|
+
if (ne(e)) {
|
|
1169
1169
|
const o = bn(e, t, n, s);
|
|
1170
1170
|
return o && Vo(o) && o.catch((i) => {
|
|
1171
1171
|
zn(i, t, n);
|
|
1172
1172
|
}), o;
|
|
1173
1173
|
}
|
|
1174
|
-
if (
|
|
1174
|
+
if (U(e)) {
|
|
1175
1175
|
const o = [];
|
|
1176
1176
|
for (let i = 0; i < e.length; i++)
|
|
1177
1177
|
o.push(bt(e[i], t, n, s));
|
|
@@ -1208,10 +1208,10 @@ function dr(e, t, n, s = !0, o = !1) {
|
|
|
1208
1208
|
throw e;
|
|
1209
1209
|
console.error(e);
|
|
1210
1210
|
}
|
|
1211
|
-
const
|
|
1211
|
+
const Ie = [];
|
|
1212
1212
|
let rt = -1;
|
|
1213
1213
|
const Wt = [];
|
|
1214
|
-
let
|
|
1214
|
+
let Tt = null, jt = 0;
|
|
1215
1215
|
const di = /* @__PURE__ */ Promise.resolve();
|
|
1216
1216
|
let kn = null;
|
|
1217
1217
|
function hi(e) {
|
|
@@ -1219,33 +1219,33 @@ function hi(e) {
|
|
|
1219
1219
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1220
1220
|
}
|
|
1221
1221
|
function hr(e) {
|
|
1222
|
-
let t = rt + 1, n =
|
|
1222
|
+
let t = rt + 1, n = Ie.length;
|
|
1223
1223
|
for (; t < n; ) {
|
|
1224
|
-
const s = t + n >>> 1, o =
|
|
1224
|
+
const s = t + n >>> 1, o = Ie[s], i = gn(o);
|
|
1225
1225
|
i < e || i === e && o.flags & 2 ? t = s + 1 : n = s;
|
|
1226
1226
|
}
|
|
1227
1227
|
return t;
|
|
1228
1228
|
}
|
|
1229
1229
|
function Ls(e) {
|
|
1230
1230
|
if (!(e.flags & 1)) {
|
|
1231
|
-
const t = gn(e), n =
|
|
1231
|
+
const t = gn(e), n = Ie[Ie.length - 1];
|
|
1232
1232
|
!n || // fast path when the job id is larger than the tail
|
|
1233
|
-
!(e.flags & 2) && t >= gn(n) ?
|
|
1233
|
+
!(e.flags & 2) && t >= gn(n) ? Ie.push(e) : Ie.splice(hr(t), 0, e), e.flags |= 1, pi();
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
function pi() {
|
|
1237
1237
|
kn || (kn = di.then(vi));
|
|
1238
1238
|
}
|
|
1239
1239
|
function gi(e) {
|
|
1240
|
-
|
|
1240
|
+
U(e) ? Wt.push(...e) : Tt && e.id === -1 ? Tt.splice(jt + 1, 0, e) : e.flags & 1 || (Wt.push(e), e.flags |= 1), pi();
|
|
1241
1241
|
}
|
|
1242
1242
|
function eo(e, t, n = rt + 1) {
|
|
1243
|
-
for (; n <
|
|
1244
|
-
const s =
|
|
1243
|
+
for (; n < Ie.length; n++) {
|
|
1244
|
+
const s = Ie[n];
|
|
1245
1245
|
if (s && s.flags & 2) {
|
|
1246
1246
|
if (e && s.id !== e.uid)
|
|
1247
1247
|
continue;
|
|
1248
|
-
|
|
1248
|
+
Ie.splice(n, 1), n--, s.flags & 4 && (s.flags &= -2), s(), s.flags & 4 || (s.flags &= -2);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
@@ -1254,22 +1254,22 @@ function mi(e) {
|
|
|
1254
1254
|
const t = [...new Set(Wt)].sort(
|
|
1255
1255
|
(n, s) => gn(n) - gn(s)
|
|
1256
1256
|
);
|
|
1257
|
-
if (Wt.length = 0,
|
|
1258
|
-
|
|
1257
|
+
if (Wt.length = 0, Tt) {
|
|
1258
|
+
Tt.push(...t);
|
|
1259
1259
|
return;
|
|
1260
1260
|
}
|
|
1261
|
-
for (
|
|
1262
|
-
const n =
|
|
1261
|
+
for (Tt = t, jt = 0; jt < Tt.length; jt++) {
|
|
1262
|
+
const n = Tt[jt];
|
|
1263
1263
|
n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2;
|
|
1264
1264
|
}
|
|
1265
|
-
|
|
1265
|
+
Tt = null, jt = 0;
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
const gn = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1269
1269
|
function vi(e) {
|
|
1270
1270
|
try {
|
|
1271
|
-
for (rt = 0; rt <
|
|
1272
|
-
const t =
|
|
1271
|
+
for (rt = 0; rt < Ie.length; rt++) {
|
|
1272
|
+
const t = Ie[rt];
|
|
1273
1273
|
t && !(t.flags & 8) && (t.flags & 4 && (t.flags &= -2), bn(
|
|
1274
1274
|
t,
|
|
1275
1275
|
t.i,
|
|
@@ -1277,11 +1277,11 @@ function vi(e) {
|
|
|
1277
1277
|
), t.flags & 4 || (t.flags &= -2));
|
|
1278
1278
|
}
|
|
1279
1279
|
} finally {
|
|
1280
|
-
for (; rt <
|
|
1281
|
-
const t =
|
|
1280
|
+
for (; rt < Ie.length; rt++) {
|
|
1281
|
+
const t = Ie[rt];
|
|
1282
1282
|
t && (t.flags &= -2);
|
|
1283
1283
|
}
|
|
1284
|
-
rt = -1,
|
|
1284
|
+
rt = -1, Ie.length = 0, mi(), kn = null, (Ie.length || Wt.length) && vi();
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
let Ce = null, _i = null;
|
|
@@ -1311,7 +1311,7 @@ function ss(e, t) {
|
|
|
1311
1311
|
const n = Gn(Ce), s = e.dirs || (e.dirs = []);
|
|
1312
1312
|
for (let o = 0; o < t.length; o++) {
|
|
1313
1313
|
let [i, l, r, a = ce] = t[o];
|
|
1314
|
-
i && (
|
|
1314
|
+
i && (ne(i) && (i = {
|
|
1315
1315
|
mounted: i,
|
|
1316
1316
|
updated: i
|
|
1317
1317
|
}), i.deep && _t(l), s.push({
|
|
@@ -1353,7 +1353,7 @@ function yi(e, t, n = !1) {
|
|
|
1353
1353
|
if (o && e in o)
|
|
1354
1354
|
return o[e];
|
|
1355
1355
|
if (arguments.length > 1)
|
|
1356
|
-
return n &&
|
|
1356
|
+
return n && ne(t) ? t.call(s && s.proxy) : t;
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
const gr = /* @__PURE__ */ Symbol.for("v-scx"), mr = () => yi(gr);
|
|
@@ -1370,14 +1370,14 @@ function vr(e, t, n = ce) {
|
|
|
1370
1370
|
} else if (!a) {
|
|
1371
1371
|
const _ = () => {
|
|
1372
1372
|
};
|
|
1373
|
-
return _.stop =
|
|
1373
|
+
return _.stop = Et, _.resume = Et, _.pause = Et, _;
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
const c = $e;
|
|
1377
|
-
r.call = (_, x,
|
|
1377
|
+
r.call = (_, x, S) => bt(_, c, x, S);
|
|
1378
1378
|
let d = !1;
|
|
1379
1379
|
i === "post" ? r.scheduler = (_) => {
|
|
1380
|
-
|
|
1380
|
+
Oe(_, c && c.suspense);
|
|
1381
1381
|
} : i !== "sync" && (d = !0, r.scheduler = (_, x) => {
|
|
1382
1382
|
x ? _() : Ls(_);
|
|
1383
1383
|
}), r.augmentJob = (_) => {
|
|
@@ -1397,49 +1397,49 @@ const Dt = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ Symbol("_vte"), _
|
|
|
1397
1397
|
mc: c,
|
|
1398
1398
|
pc: d,
|
|
1399
1399
|
pbc: p,
|
|
1400
|
-
o: { insert: _, querySelector: x, createText:
|
|
1401
|
-
} = u,
|
|
1400
|
+
o: { insert: _, querySelector: x, createText: S, createComment: D }
|
|
1401
|
+
} = u, L = Nt(t.props);
|
|
1402
1402
|
let { dynamicChildren: C } = t;
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1403
|
+
const $ = (k, N, R) => {
|
|
1404
|
+
k.shapeFlag & 16 && c(
|
|
1405
|
+
k.children,
|
|
1406
|
+
N,
|
|
1407
|
+
R,
|
|
1408
1408
|
o,
|
|
1409
1409
|
i,
|
|
1410
1410
|
l,
|
|
1411
1411
|
r,
|
|
1412
1412
|
a
|
|
1413
1413
|
);
|
|
1414
|
-
},
|
|
1415
|
-
const
|
|
1416
|
-
|
|
1417
|
-
},
|
|
1418
|
-
const
|
|
1419
|
-
Dt.get(
|
|
1414
|
+
}, b = (k = t) => {
|
|
1415
|
+
const N = Nt(k.props), R = k.target = _s(k.props, x), Q = ys(R, k, S, _);
|
|
1416
|
+
R && (l !== "svg" && to(R) ? l = "svg" : l !== "mathml" && no(R) && (l = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(R), N || ($(k, R, Q), on(k, !1)));
|
|
1417
|
+
}, B = (k) => {
|
|
1418
|
+
const N = () => {
|
|
1419
|
+
Dt.get(k) === N && (Dt.delete(k), Nt(k.props) && ($(k, n, k.anchor), on(k, !0)), b(k));
|
|
1420
1420
|
};
|
|
1421
|
-
Dt.set(
|
|
1421
|
+
Dt.set(k, N), Oe(N, i);
|
|
1422
1422
|
};
|
|
1423
1423
|
if (e == null) {
|
|
1424
|
-
const
|
|
1425
|
-
if (_(
|
|
1426
|
-
|
|
1424
|
+
const k = t.el = S(""), N = t.anchor = S("");
|
|
1425
|
+
if (_(k, n, s), _(N, n, s), yr(t.props) || i && i.pendingBranch) {
|
|
1426
|
+
B(t);
|
|
1427
1427
|
return;
|
|
1428
1428
|
}
|
|
1429
|
-
|
|
1429
|
+
L && ($(t, n, N), on(t, !0)), b();
|
|
1430
1430
|
} else {
|
|
1431
1431
|
t.el = e.el;
|
|
1432
|
-
const
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1432
|
+
const k = t.anchor = e.anchor, N = Dt.get(e);
|
|
1433
|
+
if (N) {
|
|
1434
|
+
N.flags |= 8, Dt.delete(e), B(t);
|
|
1435
1435
|
return;
|
|
1436
1436
|
}
|
|
1437
1437
|
t.targetStart = e.targetStart;
|
|
1438
|
-
const
|
|
1439
|
-
if (l === "svg" || to(
|
|
1438
|
+
const R = t.target = e.target, Q = t.targetAnchor = e.targetAnchor, X = Nt(e.props), ue = X ? n : R, pe = X ? k : Q;
|
|
1439
|
+
if (l === "svg" || to(R) ? l = "svg" : (l === "mathml" || no(R)) && (l = "mathml"), C ? (p(
|
|
1440
1440
|
e.dynamicChildren,
|
|
1441
1441
|
C,
|
|
1442
|
-
|
|
1442
|
+
ue,
|
|
1443
1443
|
o,
|
|
1444
1444
|
i,
|
|
1445
1445
|
l,
|
|
@@ -1447,41 +1447,41 @@ const Dt = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ Symbol("_vte"), _
|
|
|
1447
1447
|
), Hs(e, t, !0)) : a || d(
|
|
1448
1448
|
e,
|
|
1449
1449
|
t,
|
|
1450
|
-
|
|
1451
|
-
|
|
1450
|
+
ue,
|
|
1451
|
+
pe,
|
|
1452
1452
|
o,
|
|
1453
1453
|
i,
|
|
1454
1454
|
l,
|
|
1455
1455
|
r,
|
|
1456
1456
|
!1
|
|
1457
|
-
),
|
|
1458
|
-
|
|
1457
|
+
), L)
|
|
1458
|
+
X ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Cn(
|
|
1459
1459
|
t,
|
|
1460
1460
|
n,
|
|
1461
|
-
|
|
1461
|
+
k,
|
|
1462
1462
|
u,
|
|
1463
1463
|
1
|
|
1464
1464
|
);
|
|
1465
1465
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1466
|
-
const
|
|
1466
|
+
const P = t.target = _s(
|
|
1467
1467
|
t.props,
|
|
1468
1468
|
x
|
|
1469
1469
|
);
|
|
1470
|
-
|
|
1470
|
+
P && Cn(
|
|
1471
1471
|
t,
|
|
1472
|
-
|
|
1472
|
+
P,
|
|
1473
1473
|
null,
|
|
1474
1474
|
u,
|
|
1475
1475
|
0
|
|
1476
1476
|
);
|
|
1477
|
-
} else
|
|
1477
|
+
} else X && Cn(
|
|
1478
1478
|
t,
|
|
1479
|
-
|
|
1480
|
-
|
|
1479
|
+
R,
|
|
1480
|
+
Q,
|
|
1481
1481
|
u,
|
|
1482
1482
|
1
|
|
1483
1483
|
);
|
|
1484
|
-
on(t,
|
|
1484
|
+
on(t, L);
|
|
1485
1485
|
}
|
|
1486
1486
|
},
|
|
1487
1487
|
remove(e, t, n, { um: s, o: { remove: o } }, i) {
|
|
@@ -1497,8 +1497,8 @@ const Dt = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ Symbol("_vte"), _
|
|
|
1497
1497
|
let _ = i || !Nt(p);
|
|
1498
1498
|
const x = Dt.get(e);
|
|
1499
1499
|
if (x && (x.flags |= 8, Dt.delete(e), _ = !1), d && (o(u), o(c)), i && o(a), l & 16)
|
|
1500
|
-
for (let
|
|
1501
|
-
const D = r[
|
|
1500
|
+
for (let S = 0; S < r.length; S++) {
|
|
1501
|
+
const D = r[S];
|
|
1502
1502
|
s(
|
|
1503
1503
|
D,
|
|
1504
1504
|
t,
|
|
@@ -1527,8 +1527,8 @@ function Cn(e, t, n, { o: { insert: s }, m: o }, i = 2) {
|
|
|
1527
1527
|
function Sr(e, t, n, s, o, i, {
|
|
1528
1528
|
o: { nextSibling: l, parentNode: r, querySelector: a, insert: u, createText: c }
|
|
1529
1529
|
}, d) {
|
|
1530
|
-
function p(D,
|
|
1531
|
-
let C =
|
|
1530
|
+
function p(D, L) {
|
|
1531
|
+
let C = L;
|
|
1532
1532
|
for (; C; ) {
|
|
1533
1533
|
if (C && C.nodeType === 8) {
|
|
1534
1534
|
if (C.data === "teleport start anchor")
|
|
@@ -1541,10 +1541,10 @@ function Sr(e, t, n, s, o, i, {
|
|
|
1541
1541
|
C = l(C);
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
function _(D,
|
|
1545
|
-
|
|
1544
|
+
function _(D, L) {
|
|
1545
|
+
L.anchor = d(
|
|
1546
1546
|
l(D),
|
|
1547
|
-
|
|
1547
|
+
L,
|
|
1548
1548
|
r(D),
|
|
1549
1549
|
n,
|
|
1550
1550
|
s,
|
|
@@ -1555,10 +1555,10 @@ function Sr(e, t, n, s, o, i, {
|
|
|
1555
1555
|
const x = t.target = _s(
|
|
1556
1556
|
t.props,
|
|
1557
1557
|
a
|
|
1558
|
-
),
|
|
1558
|
+
), S = Nt(t.props);
|
|
1559
1559
|
if (x) {
|
|
1560
1560
|
const D = x._lpa || x.firstChild;
|
|
1561
|
-
t.shapeFlag & 16 && (
|
|
1561
|
+
t.shapeFlag & 16 && (S ? (_(e, t), p(x, D), t.targetAnchor || ys(
|
|
1562
1562
|
x,
|
|
1563
1563
|
t,
|
|
1564
1564
|
c,
|
|
@@ -1574,8 +1574,8 @@ function Sr(e, t, n, s, o, i, {
|
|
|
1574
1574
|
s,
|
|
1575
1575
|
o,
|
|
1576
1576
|
i
|
|
1577
|
-
))), on(t,
|
|
1578
|
-
} else
|
|
1577
|
+
))), on(t, S);
|
|
1578
|
+
} else S && t.shapeFlag & 16 && (_(e, t), t.targetStart = e, t.targetAnchor = l(e));
|
|
1579
1579
|
return t.anchor && l(t.anchor);
|
|
1580
1580
|
}
|
|
1581
1581
|
const Si = br;
|
|
@@ -1598,13 +1598,13 @@ function Fs(e, t) {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
// @__NO_SIDE_EFFECTS__
|
|
1600
1600
|
function tt(e, t) {
|
|
1601
|
-
return
|
|
1601
|
+
return ne(e) ? (
|
|
1602
1602
|
// #8236: extend call and options.name access are considered side-effects
|
|
1603
1603
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1604
1604
|
et({ name: e.name }, t, { setup: e })
|
|
1605
1605
|
) : e;
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Tr(e) {
|
|
1608
1608
|
e.ids = [e.ids[0] + e.ids[2]++ + "-", 0, 0];
|
|
1609
1609
|
}
|
|
1610
1610
|
function so(e, t) {
|
|
@@ -1613,11 +1613,11 @@ function so(e, t) {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
const Nn = /* @__PURE__ */ new WeakMap();
|
|
1615
1615
|
function cn(e, t, n, s, o = !1) {
|
|
1616
|
-
if (
|
|
1616
|
+
if (U(e)) {
|
|
1617
1617
|
e.forEach(
|
|
1618
|
-
(
|
|
1619
|
-
|
|
1620
|
-
t && (
|
|
1618
|
+
(S, D) => cn(
|
|
1619
|
+
S,
|
|
1620
|
+
t && (U(t) ? t[D] : t),
|
|
1621
1621
|
n,
|
|
1622
1622
|
s,
|
|
1623
1623
|
o
|
|
@@ -1629,42 +1629,42 @@ function cn(e, t, n, s, o = !1) {
|
|
|
1629
1629
|
s.shapeFlag & 512 && s.type.__asyncResolved && s.component.subTree.component && cn(e, t, n, s.component.subTree);
|
|
1630
1630
|
return;
|
|
1631
1631
|
}
|
|
1632
|
-
const i = s.shapeFlag & 4 ? Gn(s.component) : s.el, l = o ? null : i, { i: r, r: a } = e, u = t && t.r, c = r.refs === ce ? r.refs = {} : r.refs, d = r.setupState, p = /* @__PURE__ */ Z(d), _ = d === ce ? Bo : (
|
|
1632
|
+
const i = s.shapeFlag & 4 ? Gn(s.component) : s.el, l = o ? null : i, { i: r, r: a } = e, u = t && t.r, c = r.refs === ce ? r.refs = {} : r.refs, d = r.setupState, p = /* @__PURE__ */ Z(d), _ = d === ce ? Bo : (S) => so(c, S) ? !1 : se(p, S), x = (S, D) => !(D && so(c, D));
|
|
1633
1633
|
if (u != null && u !== a) {
|
|
1634
1634
|
if (oo(t), ye(u))
|
|
1635
1635
|
c[u] = null, _(u) && (d[u] = null);
|
|
1636
|
-
else if (/* @__PURE__ */
|
|
1637
|
-
const
|
|
1638
|
-
x(u,
|
|
1636
|
+
else if (/* @__PURE__ */ Te(u)) {
|
|
1637
|
+
const S = t;
|
|
1638
|
+
x(u, S.k) && (u.value = null), S.k && (c[S.k] = null);
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
if (
|
|
1641
|
+
if (ne(a))
|
|
1642
1642
|
bn(a, r, 12, [l, c]);
|
|
1643
1643
|
else {
|
|
1644
|
-
const
|
|
1645
|
-
if (
|
|
1646
|
-
const
|
|
1644
|
+
const S = ye(a), D = /* @__PURE__ */ Te(a);
|
|
1645
|
+
if (S || D) {
|
|
1646
|
+
const L = () => {
|
|
1647
1647
|
if (e.f) {
|
|
1648
|
-
const C =
|
|
1648
|
+
const C = S ? _(a) ? d[a] : c[a] : x() || !e.k ? a.value : c[e.k];
|
|
1649
1649
|
if (o)
|
|
1650
|
-
|
|
1651
|
-
else if (
|
|
1650
|
+
U(C) && jo(C, i);
|
|
1651
|
+
else if (U(C))
|
|
1652
1652
|
C.includes(i) || C.push(i);
|
|
1653
|
-
else if (
|
|
1653
|
+
else if (S)
|
|
1654
1654
|
c[a] = [i], _(a) && (d[a] = c[a]);
|
|
1655
1655
|
else {
|
|
1656
|
-
const
|
|
1657
|
-
x(a, e.k) && (a.value =
|
|
1656
|
+
const $ = [i];
|
|
1657
|
+
x(a, e.k) && (a.value = $), e.k && (c[e.k] = $);
|
|
1658
1658
|
}
|
|
1659
|
-
} else
|
|
1659
|
+
} else S ? (c[a] = l, _(a) && (d[a] = l)) : D && (x(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
|
|
1660
1660
|
};
|
|
1661
1661
|
if (l) {
|
|
1662
1662
|
const C = () => {
|
|
1663
|
-
|
|
1663
|
+
L(), Nn.delete(e);
|
|
1664
1664
|
};
|
|
1665
|
-
C.id = -1, Nn.set(e, C),
|
|
1665
|
+
C.id = -1, Nn.set(e, C), Oe(C, n);
|
|
1666
1666
|
} else
|
|
1667
|
-
oo(e),
|
|
1667
|
+
oo(e), L();
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
@@ -1674,7 +1674,7 @@ function oo(e) {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
Kn().requestIdleCallback;
|
|
1676
1676
|
Kn().cancelIdleCallback;
|
|
1677
|
-
const Kt = (e) => !!e.type.__asyncLoader,
|
|
1677
|
+
const Kt = (e) => !!e.type.__asyncLoader, Er = (e) => e.type.__isKeepAlive;
|
|
1678
1678
|
function Cr(e, t, n = $e, s = !1) {
|
|
1679
1679
|
if (n) {
|
|
1680
1680
|
const o = n[e] || (n[e] = []), i = t.__weh || (t.__weh = (...l) => {
|
|
@@ -1692,7 +1692,7 @@ const $s = (e) => (t, n = $e) => {
|
|
|
1692
1692
|
), wt = $s("um"), Ar = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1693
1693
|
function bs(e, t, n, s) {
|
|
1694
1694
|
let o;
|
|
1695
|
-
const i = n, l =
|
|
1695
|
+
const i = n, l = U(e);
|
|
1696
1696
|
if (l || ye(e)) {
|
|
1697
1697
|
const r = l && /* @__PURE__ */ Ft(e);
|
|
1698
1698
|
let a = !1, u = !1;
|
|
@@ -1708,7 +1708,7 @@ function bs(e, t, n, s) {
|
|
|
1708
1708
|
o = new Array(e);
|
|
1709
1709
|
for (let r = 0; r < e; r++)
|
|
1710
1710
|
o[r] = t(r + 1, r, void 0, i);
|
|
1711
|
-
} else if (
|
|
1711
|
+
} else if (re(e))
|
|
1712
1712
|
if (e[Symbol.iterator])
|
|
1713
1713
|
o = Array.from(
|
|
1714
1714
|
e,
|
|
@@ -1729,7 +1729,7 @@ function bs(e, t, n, s) {
|
|
|
1729
1729
|
function os(e, t) {
|
|
1730
1730
|
for (let n = 0; n < t.length; n++) {
|
|
1731
1731
|
const s = t[n];
|
|
1732
|
-
if (
|
|
1732
|
+
if (U(s))
|
|
1733
1733
|
for (let o = 0; o < s.length; o++)
|
|
1734
1734
|
e[s[o].name] = s[o].fn;
|
|
1735
1735
|
else s && (e[s.name] = s.key ? (...o) => {
|
|
@@ -1743,7 +1743,7 @@ function he(e, t, n = {}, s, o) {
|
|
|
1743
1743
|
if (Ce.ce || Ce.parent && Kt(Ce.parent) && Ce.parent.ce) {
|
|
1744
1744
|
const u = Object.keys(n).length > 0;
|
|
1745
1745
|
return t !== "default" && (n.name = t), W(), At(
|
|
1746
|
-
|
|
1746
|
+
fe,
|
|
1747
1747
|
null,
|
|
1748
1748
|
[Se("slot", n, s && s())],
|
|
1749
1749
|
u ? -2 : 64
|
|
@@ -1754,7 +1754,7 @@ function he(e, t, n = {}, s, o) {
|
|
|
1754
1754
|
const l = i && wi(i(n)), r = n.key || // slot content array of a dynamic conditional slot may have a branch
|
|
1755
1755
|
// key attached in the `createSlots` helper, respect that
|
|
1756
1756
|
l && l.key, a = At(
|
|
1757
|
-
|
|
1757
|
+
fe,
|
|
1758
1758
|
{
|
|
1759
1759
|
key: (r && !He(r) ? r : `_${t}`) + // #7256 force differentiate fallback content from actual content
|
|
1760
1760
|
(!l && s ? "_fb" : "")
|
|
@@ -1765,7 +1765,7 @@ function he(e, t, n = {}, s, o) {
|
|
|
1765
1765
|
return a.scopeId && (a.slotScopeIds = [a.scopeId + "-s"]), i && i._c && (i._d = !0), a;
|
|
1766
1766
|
}
|
|
1767
1767
|
function wi(e) {
|
|
1768
|
-
return e.some((t) => Vs(t) ? !(t.type === St || t.type ===
|
|
1768
|
+
return e.some((t) => Vs(t) ? !(t.type === St || t.type === fe && !wi(t.children)) : !0) ? e : null;
|
|
1769
1769
|
}
|
|
1770
1770
|
const Ss = (e) => e ? Fi(e) ? Gn(e) : Ss(e.parent) : null, un = (
|
|
1771
1771
|
// Move PURE marker to new line to workaround compiler discarding it
|
|
@@ -1787,7 +1787,7 @@ const Ss = (e) => e ? Fi(e) ? Gn(e) : Ss(e.parent) : null, un = (
|
|
|
1787
1787
|
Ls(e.update);
|
|
1788
1788
|
}),
|
|
1789
1789
|
$nextTick: (e) => e.n || (e.n = hi.bind(e.proxy)),
|
|
1790
|
-
$watch: (e) =>
|
|
1790
|
+
$watch: (e) => Et
|
|
1791
1791
|
})
|
|
1792
1792
|
), is = (e, t) => e !== ce && !e.__isScriptSetup && se(e, t), Or = {
|
|
1793
1793
|
get({ _: e }, t) {
|
|
@@ -1820,7 +1820,7 @@ const Ss = (e) => e ? Fi(e) ? Gn(e) : Ss(e.parent) : null, un = (
|
|
|
1820
1820
|
const u = un[t];
|
|
1821
1821
|
let c, d;
|
|
1822
1822
|
if (u)
|
|
1823
|
-
return t === "$attrs" &&
|
|
1823
|
+
return t === "$attrs" && Ee(e.attrs, "get", ""), u(e);
|
|
1824
1824
|
if (
|
|
1825
1825
|
// css module (injected by vue-loader)
|
|
1826
1826
|
(c = r.__cssModules) && (c = c[t])
|
|
@@ -1855,7 +1855,7 @@ function Mr(e) {
|
|
|
1855
1855
|
const t = Us();
|
|
1856
1856
|
return t.setupContext || (t.setupContext = Bi(t));
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function Ti() {
|
|
1859
1859
|
return {
|
|
1860
1860
|
app: null,
|
|
1861
1861
|
config: {
|
|
@@ -1879,8 +1879,8 @@ function Ei() {
|
|
|
1879
1879
|
let Dr = 0;
|
|
1880
1880
|
function kr(e, t) {
|
|
1881
1881
|
return function(s, o = null) {
|
|
1882
|
-
|
|
1883
|
-
const i =
|
|
1882
|
+
ne(s) || (s = et({}, s)), o != null && !re(o) && (o = null);
|
|
1883
|
+
const i = Ti(), l = /* @__PURE__ */ new WeakSet(), r = [];
|
|
1884
1884
|
let a = !1;
|
|
1885
1885
|
const u = i.app = {
|
|
1886
1886
|
_uid: Dr++,
|
|
@@ -1896,7 +1896,7 @@ function kr(e, t) {
|
|
|
1896
1896
|
set config(c) {
|
|
1897
1897
|
},
|
|
1898
1898
|
use(c, ...d) {
|
|
1899
|
-
return l.has(c) || (c &&
|
|
1899
|
+
return l.has(c) || (c && ne(c.install) ? (l.add(c), c.install(u, ...d)) : ne(c) && (l.add(c), c(u, ...d))), u;
|
|
1900
1900
|
},
|
|
1901
1901
|
mixin(c) {
|
|
1902
1902
|
return u;
|
|
@@ -1946,7 +1946,7 @@ function Nr(e, t, ...n) {
|
|
|
1946
1946
|
const s = e.vnode.props || ce;
|
|
1947
1947
|
let o = n;
|
|
1948
1948
|
const i = t.startsWith("update:"), l = i && Pr(s, t.slice(7));
|
|
1949
|
-
l && (l.trim && (o = n.map((c) => ye(c) ? c.trim() : c)), l.number && (o = n.map(
|
|
1949
|
+
l && (l.trim && (o = n.map((c) => ye(c) ? c.trim() : c)), l.number && (o = n.map(El)));
|
|
1950
1950
|
let r, a = s[r = Jn(t)] || // also try camelCase event handler (#2249)
|
|
1951
1951
|
s[r = Jn(Je(t))];
|
|
1952
1952
|
!a && i && (a = s[r = Jn($t(t))]), a && bt(
|
|
@@ -1975,7 +1975,7 @@ function Rr(e, t, n = !1) {
|
|
|
1975
1975
|
return o;
|
|
1976
1976
|
const i = e.emits;
|
|
1977
1977
|
let l = {};
|
|
1978
|
-
return i ? (
|
|
1978
|
+
return i ? (U(i) ? i.forEach((r) => l[r] = null) : et(l, i), re(e) && s.set(e, l), l) : (re(e) && s.set(e, null), null);
|
|
1979
1979
|
}
|
|
1980
1980
|
function Yn(e, t) {
|
|
1981
1981
|
return !e || !jn(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), se(e, t[0].toLowerCase() + t.slice(1)) || se(e, $t(t)) || se(e, t));
|
|
@@ -1996,16 +1996,16 @@ function io(e) {
|
|
|
1996
1996
|
data: p,
|
|
1997
1997
|
setupState: _,
|
|
1998
1998
|
ctx: x,
|
|
1999
|
-
inheritAttrs:
|
|
1999
|
+
inheritAttrs: S
|
|
2000
2000
|
} = e, D = Pn(e);
|
|
2001
|
-
let
|
|
2001
|
+
let L, C;
|
|
2002
2002
|
try {
|
|
2003
2003
|
if (n.shapeFlag & 4) {
|
|
2004
|
-
const
|
|
2005
|
-
|
|
2004
|
+
const b = o || s, B = b;
|
|
2005
|
+
L = ct(
|
|
2006
2006
|
u.call(
|
|
2007
|
-
|
|
2008
|
-
|
|
2007
|
+
B,
|
|
2008
|
+
b,
|
|
2009
2009
|
c,
|
|
2010
2010
|
d,
|
|
2011
2011
|
_,
|
|
@@ -2014,29 +2014,29 @@ function io(e) {
|
|
|
2014
2014
|
)
|
|
2015
2015
|
), C = r;
|
|
2016
2016
|
} else {
|
|
2017
|
-
const
|
|
2018
|
-
|
|
2019
|
-
|
|
2017
|
+
const b = t;
|
|
2018
|
+
L = ct(
|
|
2019
|
+
b.length > 1 ? b(
|
|
2020
2020
|
d,
|
|
2021
2021
|
{ attrs: r, slots: l, emit: a }
|
|
2022
|
-
) :
|
|
2022
|
+
) : b(
|
|
2023
2023
|
d,
|
|
2024
2024
|
null
|
|
2025
2025
|
)
|
|
2026
2026
|
), C = t.props ? r : Lr(r);
|
|
2027
2027
|
}
|
|
2028
|
-
} catch (
|
|
2029
|
-
dn.length = 0, zn(
|
|
2028
|
+
} catch (b) {
|
|
2029
|
+
dn.length = 0, zn(b, e, 1), L = Se(St);
|
|
2030
2030
|
}
|
|
2031
|
-
let
|
|
2032
|
-
if (C &&
|
|
2033
|
-
const
|
|
2034
|
-
|
|
2031
|
+
let $ = L;
|
|
2032
|
+
if (C && S !== !1) {
|
|
2033
|
+
const b = Object.keys(C), { shapeFlag: B } = $;
|
|
2034
|
+
b.length && B & 7 && (i && b.some(Hn) && (C = Fr(
|
|
2035
2035
|
C,
|
|
2036
2036
|
i
|
|
2037
|
-
)),
|
|
2037
|
+
)), $ = zt($, C, !1, !0));
|
|
2038
2038
|
}
|
|
2039
|
-
return n.dirs && (
|
|
2039
|
+
return n.dirs && ($ = zt($, null, !1, !0), $.dirs = $.dirs ? $.dirs.concat(n.dirs) : n.dirs), n.transition && Fs($, n.transition), L = $, Pn(D), L;
|
|
2040
2040
|
}
|
|
2041
2041
|
const Lr = (e) => {
|
|
2042
2042
|
let t;
|
|
@@ -2062,7 +2062,7 @@ function $r(e, t, n) {
|
|
|
2062
2062
|
const c = t.dynamicProps;
|
|
2063
2063
|
for (let d = 0; d < c.length; d++) {
|
|
2064
2064
|
const p = c[d];
|
|
2065
|
-
if (
|
|
2065
|
+
if (Ei(l, s, p) && !Yn(u, p))
|
|
2066
2066
|
return !0;
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
@@ -2076,14 +2076,14 @@ function lo(e, t, n) {
|
|
|
2076
2076
|
return !0;
|
|
2077
2077
|
for (let o = 0; o < s.length; o++) {
|
|
2078
2078
|
const i = s[o];
|
|
2079
|
-
if (
|
|
2079
|
+
if (Ei(t, e, i) && !Yn(n, i))
|
|
2080
2080
|
return !0;
|
|
2081
2081
|
}
|
|
2082
2082
|
return !1;
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function Ei(e, t, n) {
|
|
2085
2085
|
const s = e[n], o = t[n];
|
|
2086
|
-
return n === "style" &&
|
|
2086
|
+
return n === "style" && re(s) && re(o) ? !Is(s, o) : s !== o;
|
|
2087
2087
|
}
|
|
2088
2088
|
function Br({ vnode: e, parent: t, suspense: n }, s) {
|
|
2089
2089
|
for (; t; ) {
|
|
@@ -2197,7 +2197,7 @@ function ws(e, t, n, s, o, i) {
|
|
|
2197
2197
|
const r = se(l, "default");
|
|
2198
2198
|
if (r && s === void 0) {
|
|
2199
2199
|
const a = l.default;
|
|
2200
|
-
if (l.type !== Function && !l.skipFactory &&
|
|
2200
|
+
if (l.type !== Function && !l.skipFactory && ne(a)) {
|
|
2201
2201
|
const { propsDefaults: u } = o;
|
|
2202
2202
|
if (n in u)
|
|
2203
2203
|
s = u[n];
|
|
@@ -2228,8 +2228,8 @@ function Vr(e, t, n = !1) {
|
|
|
2228
2228
|
return o;
|
|
2229
2229
|
const i = e.props, l = {}, r = [];
|
|
2230
2230
|
if (!i)
|
|
2231
|
-
return
|
|
2232
|
-
if (
|
|
2231
|
+
return re(e) && s.set(e, Ht), Ht;
|
|
2232
|
+
if (U(i))
|
|
2233
2233
|
for (let u = 0; u < i.length; u++) {
|
|
2234
2234
|
const c = Je(i[u]);
|
|
2235
2235
|
ro(c) && (l[c] = ce);
|
|
@@ -2238,34 +2238,34 @@ function Vr(e, t, n = !1) {
|
|
|
2238
2238
|
for (const u in i) {
|
|
2239
2239
|
const c = Je(u);
|
|
2240
2240
|
if (ro(c)) {
|
|
2241
|
-
const d = i[u], p = l[c] =
|
|
2242
|
-
let x = !1,
|
|
2243
|
-
if (
|
|
2241
|
+
const d = i[u], p = l[c] = U(d) || ne(d) ? { type: d } : et({}, d), _ = p.type;
|
|
2242
|
+
let x = !1, S = !0;
|
|
2243
|
+
if (U(_))
|
|
2244
2244
|
for (let D = 0; D < _.length; ++D) {
|
|
2245
|
-
const
|
|
2245
|
+
const L = _[D], C = ne(L) && L.name;
|
|
2246
2246
|
if (C === "Boolean") {
|
|
2247
2247
|
x = !0;
|
|
2248
2248
|
break;
|
|
2249
|
-
} else C === "String" && (
|
|
2249
|
+
} else C === "String" && (S = !1);
|
|
2250
2250
|
}
|
|
2251
2251
|
else
|
|
2252
|
-
x =
|
|
2252
|
+
x = ne(_) && _.name === "Boolean";
|
|
2253
2253
|
p[
|
|
2254
2254
|
0
|
|
2255
2255
|
/* shouldCast */
|
|
2256
2256
|
] = x, p[
|
|
2257
2257
|
1
|
|
2258
2258
|
/* shouldCastTrue */
|
|
2259
|
-
] =
|
|
2259
|
+
] = S, (x || se(p, "default")) && r.push(c);
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
2262
|
const a = [l, r];
|
|
2263
|
-
return
|
|
2263
|
+
return re(e) && s.set(e, a), a;
|
|
2264
2264
|
}
|
|
2265
2265
|
function ro(e) {
|
|
2266
2266
|
return e[0] !== "$" && !ln(e);
|
|
2267
2267
|
}
|
|
2268
|
-
const Bs = (e) => e === "_" || e === "_ctx" || e === "$stable", js = (e) =>
|
|
2268
|
+
const Bs = (e) => e === "_" || e === "_ctx" || e === "$stable", js = (e) => U(e) ? e.map(ct) : [ct(e)], Wr = (e, t, n) => {
|
|
2269
2269
|
if (t._n)
|
|
2270
2270
|
return t;
|
|
2271
2271
|
const s = Fe((...o) => js(t(...o)), n);
|
|
@@ -2275,7 +2275,7 @@ const Bs = (e) => e === "_" || e === "_ctx" || e === "$stable", js = (e) => K(e)
|
|
|
2275
2275
|
for (const o in e) {
|
|
2276
2276
|
if (Bs(o)) continue;
|
|
2277
2277
|
const i = e[o];
|
|
2278
|
-
if (
|
|
2278
|
+
if (ne(i))
|
|
2279
2279
|
t[o] = Wr(o, i, s);
|
|
2280
2280
|
else if (i != null) {
|
|
2281
2281
|
const l = js(i);
|
|
@@ -2304,7 +2304,7 @@ const Bs = (e) => e === "_" || e === "_ctx" || e === "$stable", js = (e) => K(e)
|
|
|
2304
2304
|
if (i)
|
|
2305
2305
|
for (const r in o)
|
|
2306
2306
|
!Bs(r) && l[r] == null && delete o[r];
|
|
2307
|
-
},
|
|
2307
|
+
}, Oe = Gr;
|
|
2308
2308
|
function qr(e) {
|
|
2309
2309
|
return zr(e);
|
|
2310
2310
|
}
|
|
@@ -2322,54 +2322,54 @@ function zr(e, t) {
|
|
|
2322
2322
|
setElementText: c,
|
|
2323
2323
|
parentNode: d,
|
|
2324
2324
|
nextSibling: p,
|
|
2325
|
-
setScopeId: _ =
|
|
2325
|
+
setScopeId: _ = Et,
|
|
2326
2326
|
insertStaticContent: x
|
|
2327
|
-
} = e,
|
|
2327
|
+
} = e, S = (f, h, m, E = null, T = null, w = null, I = void 0, O = null, g = !!h.dynamicChildren) => {
|
|
2328
2328
|
if (f === h)
|
|
2329
2329
|
return;
|
|
2330
|
-
f && !tn(f, h) && (
|
|
2330
|
+
f && !tn(f, h) && (E = We(f), me(f, T, w, !0), f = null), h.patchFlag === -2 && (g = !1, h.dynamicChildren = null);
|
|
2331
2331
|
const { type: v, ref: H, shapeFlag: M } = h;
|
|
2332
2332
|
switch (v) {
|
|
2333
2333
|
case Xn:
|
|
2334
|
-
D(f, h, m,
|
|
2334
|
+
D(f, h, m, E);
|
|
2335
2335
|
break;
|
|
2336
2336
|
case St:
|
|
2337
|
-
|
|
2337
|
+
L(f, h, m, E);
|
|
2338
2338
|
break;
|
|
2339
2339
|
case fn:
|
|
2340
|
-
f == null && C(h, m,
|
|
2340
|
+
f == null && C(h, m, E, I);
|
|
2341
2341
|
break;
|
|
2342
|
-
case
|
|
2343
|
-
|
|
2342
|
+
case fe:
|
|
2343
|
+
pe(
|
|
2344
2344
|
f,
|
|
2345
2345
|
h,
|
|
2346
2346
|
m,
|
|
2347
|
-
T,
|
|
2348
2347
|
E,
|
|
2349
|
-
|
|
2348
|
+
T,
|
|
2349
|
+
w,
|
|
2350
2350
|
I,
|
|
2351
2351
|
O,
|
|
2352
2352
|
g
|
|
2353
2353
|
);
|
|
2354
2354
|
break;
|
|
2355
2355
|
default:
|
|
2356
|
-
M & 1 ?
|
|
2356
|
+
M & 1 ? B(
|
|
2357
2357
|
f,
|
|
2358
2358
|
h,
|
|
2359
2359
|
m,
|
|
2360
|
-
T,
|
|
2361
2360
|
E,
|
|
2362
|
-
|
|
2361
|
+
T,
|
|
2362
|
+
w,
|
|
2363
2363
|
I,
|
|
2364
2364
|
O,
|
|
2365
2365
|
g
|
|
2366
|
-
) : M & 6 ?
|
|
2366
|
+
) : M & 6 ? P(
|
|
2367
2367
|
f,
|
|
2368
2368
|
h,
|
|
2369
2369
|
m,
|
|
2370
|
-
T,
|
|
2371
2370
|
E,
|
|
2372
|
-
|
|
2371
|
+
T,
|
|
2372
|
+
w,
|
|
2373
2373
|
I,
|
|
2374
2374
|
O,
|
|
2375
2375
|
g
|
|
@@ -2377,60 +2377,60 @@ function zr(e, t) {
|
|
|
2377
2377
|
f,
|
|
2378
2378
|
h,
|
|
2379
2379
|
m,
|
|
2380
|
-
T,
|
|
2381
2380
|
E,
|
|
2382
|
-
|
|
2381
|
+
T,
|
|
2382
|
+
w,
|
|
2383
2383
|
I,
|
|
2384
2384
|
O,
|
|
2385
2385
|
g,
|
|
2386
2386
|
st
|
|
2387
2387
|
);
|
|
2388
2388
|
}
|
|
2389
|
-
H != null &&
|
|
2390
|
-
}, D = (f, h, m,
|
|
2389
|
+
H != null && T ? cn(H, f && f.ref, w, h || f, !h) : H == null && f && f.ref != null && cn(f.ref, null, w, f, !0);
|
|
2390
|
+
}, D = (f, h, m, E) => {
|
|
2391
2391
|
if (f == null)
|
|
2392
2392
|
s(
|
|
2393
2393
|
h.el = r(h.children),
|
|
2394
2394
|
m,
|
|
2395
|
-
|
|
2395
|
+
E
|
|
2396
2396
|
);
|
|
2397
2397
|
else {
|
|
2398
|
-
const
|
|
2399
|
-
h.children !== f.children && u(
|
|
2398
|
+
const T = h.el = f.el;
|
|
2399
|
+
h.children !== f.children && u(T, h.children);
|
|
2400
2400
|
}
|
|
2401
|
-
},
|
|
2401
|
+
}, L = (f, h, m, E) => {
|
|
2402
2402
|
f == null ? s(
|
|
2403
2403
|
h.el = a(h.children || ""),
|
|
2404
2404
|
m,
|
|
2405
|
-
|
|
2405
|
+
E
|
|
2406
2406
|
) : h.el = f.el;
|
|
2407
|
-
}, C = (f, h, m,
|
|
2407
|
+
}, C = (f, h, m, E) => {
|
|
2408
2408
|
[f.el, f.anchor] = x(
|
|
2409
2409
|
f.children,
|
|
2410
2410
|
h,
|
|
2411
2411
|
m,
|
|
2412
|
-
|
|
2412
|
+
E,
|
|
2413
2413
|
f.el,
|
|
2414
2414
|
f.anchor
|
|
2415
2415
|
);
|
|
2416
|
-
},
|
|
2417
|
-
let
|
|
2416
|
+
}, $ = ({ el: f, anchor: h }, m, E) => {
|
|
2417
|
+
let T;
|
|
2418
2418
|
for (; f && f !== h; )
|
|
2419
|
-
|
|
2420
|
-
s(h, m,
|
|
2421
|
-
},
|
|
2419
|
+
T = p(f), s(f, m, E), f = T;
|
|
2420
|
+
s(h, m, E);
|
|
2421
|
+
}, b = ({ el: f, anchor: h }) => {
|
|
2422
2422
|
let m;
|
|
2423
2423
|
for (; f && f !== h; )
|
|
2424
2424
|
m = p(f), o(f), f = m;
|
|
2425
2425
|
o(h);
|
|
2426
|
-
},
|
|
2426
|
+
}, B = (f, h, m, E, T, w, I, O, g) => {
|
|
2427
2427
|
if (h.type === "svg" ? I = "svg" : h.type === "math" && (I = "mathml"), f == null)
|
|
2428
|
-
|
|
2428
|
+
k(
|
|
2429
2429
|
h,
|
|
2430
2430
|
m,
|
|
2431
|
-
T,
|
|
2432
2431
|
E,
|
|
2433
|
-
|
|
2432
|
+
T,
|
|
2433
|
+
w,
|
|
2434
2434
|
I,
|
|
2435
2435
|
O,
|
|
2436
2436
|
g
|
|
@@ -2438,11 +2438,11 @@ function zr(e, t) {
|
|
|
2438
2438
|
else {
|
|
2439
2439
|
const v = f.el && f.el._isVueCE ? f.el : null;
|
|
2440
2440
|
try {
|
|
2441
|
-
v && v._beginPatch(),
|
|
2441
|
+
v && v._beginPatch(), Q(
|
|
2442
2442
|
f,
|
|
2443
2443
|
h,
|
|
2444
|
-
|
|
2445
|
-
|
|
2444
|
+
T,
|
|
2445
|
+
w,
|
|
2446
2446
|
I,
|
|
2447
2447
|
O,
|
|
2448
2448
|
g
|
|
@@ -2451,115 +2451,115 @@ function zr(e, t) {
|
|
|
2451
2451
|
v && v._endPatch();
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
|
-
},
|
|
2454
|
+
}, k = (f, h, m, E, T, w, I, O) => {
|
|
2455
2455
|
let g, v;
|
|
2456
|
-
const { props: H, shapeFlag: M, transition:
|
|
2456
|
+
const { props: H, shapeFlag: M, transition: j, dirs: V } = f;
|
|
2457
2457
|
if (g = f.el = l(
|
|
2458
2458
|
f.type,
|
|
2459
|
-
|
|
2459
|
+
w,
|
|
2460
2460
|
H && H.is,
|
|
2461
2461
|
H
|
|
2462
|
-
), M & 8 ? c(g, f.children) : M & 16 &&
|
|
2462
|
+
), M & 8 ? c(g, f.children) : M & 16 && R(
|
|
2463
2463
|
f.children,
|
|
2464
2464
|
g,
|
|
2465
2465
|
null,
|
|
2466
|
-
T,
|
|
2467
2466
|
E,
|
|
2468
|
-
|
|
2467
|
+
T,
|
|
2468
|
+
ls(f, w),
|
|
2469
2469
|
I,
|
|
2470
2470
|
O
|
|
2471
|
-
), V && Mt(f, null,
|
|
2471
|
+
), V && Mt(f, null, E, "created"), N(g, f, f.scopeId, I, E), H) {
|
|
2472
2472
|
for (const J in H)
|
|
2473
|
-
J !== "value" && !ln(J) && i(g, J, null, H[J],
|
|
2474
|
-
"value" in H && i(g, "value", null, H.value,
|
|
2473
|
+
J !== "value" && !ln(J) && i(g, J, null, H[J], w, E);
|
|
2474
|
+
"value" in H && i(g, "value", null, H.value, w), (v = H.onVnodeBeforeMount) && lt(v, E, f);
|
|
2475
2475
|
}
|
|
2476
|
-
V && Mt(f, null,
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2476
|
+
V && Mt(f, null, E, "beforeMount");
|
|
2477
|
+
const q = Yr(T, j);
|
|
2478
|
+
q && j.beforeEnter(g), s(g, h, m), ((v = H && H.onVnodeMounted) || q || V) && Oe(() => {
|
|
2479
2479
|
try {
|
|
2480
|
-
v && lt(v,
|
|
2480
|
+
v && lt(v, E, f), q && j.enter(g), V && Mt(f, null, E, "mounted");
|
|
2481
2481
|
} finally {
|
|
2482
2482
|
}
|
|
2483
|
-
},
|
|
2484
|
-
},
|
|
2485
|
-
if (m && _(f, m),
|
|
2486
|
-
for (let
|
|
2487
|
-
_(f,
|
|
2488
|
-
if (
|
|
2489
|
-
let
|
|
2490
|
-
if (h ===
|
|
2491
|
-
const I =
|
|
2492
|
-
|
|
2483
|
+
}, T);
|
|
2484
|
+
}, N = (f, h, m, E, T) => {
|
|
2485
|
+
if (m && _(f, m), E)
|
|
2486
|
+
for (let w = 0; w < E.length; w++)
|
|
2487
|
+
_(f, E[w]);
|
|
2488
|
+
if (T) {
|
|
2489
|
+
let w = T.subTree;
|
|
2490
|
+
if (h === w || Ni(w.type) && (w.ssContent === h || w.ssFallback === h)) {
|
|
2491
|
+
const I = T.vnode;
|
|
2492
|
+
N(
|
|
2493
2493
|
f,
|
|
2494
2494
|
I,
|
|
2495
2495
|
I.scopeId,
|
|
2496
2496
|
I.slotScopeIds,
|
|
2497
|
-
|
|
2497
|
+
T.parent
|
|
2498
2498
|
);
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
|
-
},
|
|
2501
|
+
}, R = (f, h, m, E, T, w, I, O, g = 0) => {
|
|
2502
2502
|
for (let v = g; v < f.length; v++) {
|
|
2503
2503
|
const H = f[v] = O ? mt(f[v]) : ct(f[v]);
|
|
2504
|
-
|
|
2504
|
+
S(
|
|
2505
2505
|
null,
|
|
2506
2506
|
H,
|
|
2507
2507
|
h,
|
|
2508
2508
|
m,
|
|
2509
|
-
T,
|
|
2510
2509
|
E,
|
|
2511
|
-
|
|
2510
|
+
T,
|
|
2511
|
+
w,
|
|
2512
2512
|
I,
|
|
2513
2513
|
O
|
|
2514
2514
|
);
|
|
2515
2515
|
}
|
|
2516
|
-
},
|
|
2516
|
+
}, Q = (f, h, m, E, T, w, I) => {
|
|
2517
2517
|
const O = h.el = f.el;
|
|
2518
2518
|
let { patchFlag: g, dynamicChildren: v, dirs: H } = h;
|
|
2519
2519
|
g |= f.patchFlag & 16;
|
|
2520
|
-
const M = f.props || ce,
|
|
2520
|
+
const M = f.props || ce, j = h.props || ce;
|
|
2521
2521
|
let V;
|
|
2522
|
-
if (m && kt(m, !1), (V =
|
|
2522
|
+
if (m && kt(m, !1), (V = j.onVnodeBeforeUpdate) && lt(V, m, h, f), H && Mt(h, f, m, "beforeUpdate"), m && kt(m, !0), (M.innerHTML && j.innerHTML == null || M.textContent && j.textContent == null) && c(O, ""), v ? X(
|
|
2523
2523
|
f.dynamicChildren,
|
|
2524
2524
|
v,
|
|
2525
2525
|
O,
|
|
2526
2526
|
m,
|
|
2527
|
-
|
|
2528
|
-
ls(h,
|
|
2529
|
-
|
|
2530
|
-
) : I ||
|
|
2527
|
+
E,
|
|
2528
|
+
ls(h, T),
|
|
2529
|
+
w
|
|
2530
|
+
) : I || Ae(
|
|
2531
2531
|
f,
|
|
2532
2532
|
h,
|
|
2533
2533
|
O,
|
|
2534
2534
|
null,
|
|
2535
2535
|
m,
|
|
2536
|
-
|
|
2537
|
-
ls(h,
|
|
2538
|
-
|
|
2536
|
+
E,
|
|
2537
|
+
ls(h, T),
|
|
2538
|
+
w,
|
|
2539
2539
|
!1
|
|
2540
2540
|
), g > 0) {
|
|
2541
2541
|
if (g & 16)
|
|
2542
|
-
|
|
2543
|
-
else if (g & 2 && M.class !==
|
|
2544
|
-
const
|
|
2545
|
-
for (let J = 0; J <
|
|
2546
|
-
const
|
|
2547
|
-
(_e !==
|
|
2542
|
+
ue(O, M, j, m, T);
|
|
2543
|
+
else if (g & 2 && M.class !== j.class && i(O, "class", null, j.class, T), g & 4 && i(O, "style", M.style, j.style, T), g & 8) {
|
|
2544
|
+
const q = h.dynamicProps;
|
|
2545
|
+
for (let J = 0; J < q.length; J++) {
|
|
2546
|
+
const ee = q[J], ie = M[ee], _e = j[ee];
|
|
2547
|
+
(_e !== ie || ee === "value") && i(O, ee, ie, _e, T, m);
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
2550
|
g & 1 && f.children !== h.children && c(O, h.children);
|
|
2551
|
-
} else !I && v == null &&
|
|
2552
|
-
((V =
|
|
2551
|
+
} else !I && v == null && ue(O, M, j, m, T);
|
|
2552
|
+
((V = j.onVnodeUpdated) || H) && Oe(() => {
|
|
2553
2553
|
V && lt(V, m, h, f), H && Mt(h, f, m, "updated");
|
|
2554
|
-
},
|
|
2555
|
-
},
|
|
2554
|
+
}, E);
|
|
2555
|
+
}, X = (f, h, m, E, T, w, I) => {
|
|
2556
2556
|
for (let O = 0; O < h.length; O++) {
|
|
2557
2557
|
const g = f[O], v = h[O], H = (
|
|
2558
2558
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
2559
2559
|
// which will not have a mounted element
|
|
2560
2560
|
g.el && // - In the case of a Fragment, we need to provide the actual parent
|
|
2561
2561
|
// of the Fragment itself so it can move its children.
|
|
2562
|
-
(g.type ===
|
|
2562
|
+
(g.type === fe || // - In the case of different nodes, there is going to be a replacement
|
|
2563
2563
|
// which also requires the correct parent container
|
|
2564
2564
|
!tn(g, v) || // - In the case of a component, it could contain anything.
|
|
2565
2565
|
g.shapeFlag & 198) ? d(g.el) : (
|
|
@@ -2568,41 +2568,41 @@ function zr(e, t) {
|
|
|
2568
2568
|
m
|
|
2569
2569
|
)
|
|
2570
2570
|
);
|
|
2571
|
-
|
|
2571
|
+
S(
|
|
2572
2572
|
g,
|
|
2573
2573
|
v,
|
|
2574
2574
|
H,
|
|
2575
2575
|
null,
|
|
2576
|
-
T,
|
|
2577
2576
|
E,
|
|
2578
|
-
|
|
2577
|
+
T,
|
|
2578
|
+
w,
|
|
2579
2579
|
I,
|
|
2580
2580
|
!0
|
|
2581
2581
|
);
|
|
2582
2582
|
}
|
|
2583
|
-
},
|
|
2583
|
+
}, ue = (f, h, m, E, T) => {
|
|
2584
2584
|
if (h !== m) {
|
|
2585
2585
|
if (h !== ce)
|
|
2586
|
-
for (const
|
|
2587
|
-
!ln(
|
|
2586
|
+
for (const w in h)
|
|
2587
|
+
!ln(w) && !(w in m) && i(
|
|
2588
2588
|
f,
|
|
2589
|
-
|
|
2590
|
-
h[
|
|
2589
|
+
w,
|
|
2590
|
+
h[w],
|
|
2591
2591
|
null,
|
|
2592
|
-
|
|
2593
|
-
|
|
2592
|
+
T,
|
|
2593
|
+
E
|
|
2594
2594
|
);
|
|
2595
|
-
for (const
|
|
2596
|
-
if (ln(
|
|
2597
|
-
const I = m[
|
|
2598
|
-
I !== O &&
|
|
2595
|
+
for (const w in m) {
|
|
2596
|
+
if (ln(w)) continue;
|
|
2597
|
+
const I = m[w], O = h[w];
|
|
2598
|
+
I !== O && w !== "value" && i(f, w, O, I, T, E);
|
|
2599
2599
|
}
|
|
2600
|
-
"value" in m && i(f, "value", h.value, m.value,
|
|
2600
|
+
"value" in m && i(f, "value", h.value, m.value, T);
|
|
2601
2601
|
}
|
|
2602
|
-
},
|
|
2602
|
+
}, pe = (f, h, m, E, T, w, I, O, g) => {
|
|
2603
2603
|
const v = h.el = f ? f.el : r(""), H = h.anchor = f ? f.anchor : r("");
|
|
2604
|
-
let { patchFlag: M, dynamicChildren:
|
|
2605
|
-
V && (O = O ? O.concat(V) : V), f == null ? (s(v, m,
|
|
2604
|
+
let { patchFlag: M, dynamicChildren: j, slotScopeIds: V } = h;
|
|
2605
|
+
V && (O = O ? O.concat(V) : V), f == null ? (s(v, m, E), s(H, m, E), R(
|
|
2606
2606
|
// #10007
|
|
2607
2607
|
// such fragment like `<></>` will be compiled into
|
|
2608
2608
|
// a fragment which doesn't have a children.
|
|
@@ -2610,148 +2610,148 @@ function zr(e, t) {
|
|
|
2610
2610
|
h.children || [],
|
|
2611
2611
|
m,
|
|
2612
2612
|
H,
|
|
2613
|
-
|
|
2614
|
-
|
|
2613
|
+
T,
|
|
2614
|
+
w,
|
|
2615
2615
|
I,
|
|
2616
2616
|
O,
|
|
2617
2617
|
g
|
|
2618
|
-
)) : M > 0 && M & 64 &&
|
|
2618
|
+
)) : M > 0 && M & 64 && j && // #2715 the previous fragment could've been a BAILed one as a result
|
|
2619
2619
|
// of renderSlot() with no valid children
|
|
2620
|
-
f.dynamicChildren && f.dynamicChildren.length ===
|
|
2620
|
+
f.dynamicChildren && f.dynamicChildren.length === j.length ? (X(
|
|
2621
2621
|
f.dynamicChildren,
|
|
2622
|
-
|
|
2622
|
+
j,
|
|
2623
2623
|
m,
|
|
2624
|
-
|
|
2625
|
-
|
|
2624
|
+
T,
|
|
2625
|
+
w,
|
|
2626
2626
|
I,
|
|
2627
2627
|
O
|
|
2628
2628
|
), // #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
2629
2629
|
// get moved around. Make sure all root level vnodes inherit el.
|
|
2630
2630
|
// #2134 or if it's a component root, it may also get moved around
|
|
2631
2631
|
// as the component is being moved.
|
|
2632
|
-
(h.key != null ||
|
|
2632
|
+
(h.key != null || T && h === T.subTree) && Hs(
|
|
2633
2633
|
f,
|
|
2634
2634
|
h,
|
|
2635
2635
|
!0
|
|
2636
2636
|
/* shallow */
|
|
2637
|
-
)) :
|
|
2637
|
+
)) : Ae(
|
|
2638
2638
|
f,
|
|
2639
2639
|
h,
|
|
2640
2640
|
m,
|
|
2641
2641
|
H,
|
|
2642
|
-
|
|
2643
|
-
|
|
2642
|
+
T,
|
|
2643
|
+
w,
|
|
2644
2644
|
I,
|
|
2645
2645
|
O,
|
|
2646
2646
|
g
|
|
2647
2647
|
);
|
|
2648
|
-
},
|
|
2649
|
-
h.slotScopeIds = O, f == null ? h.shapeFlag & 512 ?
|
|
2648
|
+
}, P = (f, h, m, E, T, w, I, O, g) => {
|
|
2649
|
+
h.slotScopeIds = O, f == null ? h.shapeFlag & 512 ? T.ctx.activate(
|
|
2650
2650
|
h,
|
|
2651
2651
|
m,
|
|
2652
|
-
|
|
2652
|
+
E,
|
|
2653
2653
|
I,
|
|
2654
2654
|
g
|
|
2655
|
-
) :
|
|
2655
|
+
) : G(
|
|
2656
2656
|
h,
|
|
2657
2657
|
m,
|
|
2658
|
-
T,
|
|
2659
2658
|
E,
|
|
2660
|
-
|
|
2659
|
+
T,
|
|
2660
|
+
w,
|
|
2661
2661
|
I,
|
|
2662
2662
|
g
|
|
2663
|
-
) :
|
|
2664
|
-
},
|
|
2663
|
+
) : ae(f, h, g);
|
|
2664
|
+
}, G = (f, h, m, E, T, w, I) => {
|
|
2665
2665
|
const O = f.component = sa(
|
|
2666
2666
|
f,
|
|
2667
|
-
|
|
2668
|
-
|
|
2667
|
+
E,
|
|
2668
|
+
T
|
|
2669
2669
|
);
|
|
2670
|
-
if (
|
|
2671
|
-
if (
|
|
2670
|
+
if (Er(f) && (O.ctx.renderer = st), oa(O, !1, I), O.asyncDep) {
|
|
2671
|
+
if (T && T.registerDep(O, K, I), !f.el) {
|
|
2672
2672
|
const g = O.subTree = Se(St);
|
|
2673
|
-
|
|
2673
|
+
L(null, g, h, m), f.placeholder = g.el;
|
|
2674
2674
|
}
|
|
2675
2675
|
} else
|
|
2676
|
-
|
|
2676
|
+
K(
|
|
2677
2677
|
O,
|
|
2678
2678
|
f,
|
|
2679
2679
|
h,
|
|
2680
2680
|
m,
|
|
2681
|
-
|
|
2682
|
-
|
|
2681
|
+
T,
|
|
2682
|
+
w,
|
|
2683
2683
|
I
|
|
2684
2684
|
);
|
|
2685
|
-
},
|
|
2686
|
-
const
|
|
2685
|
+
}, ae = (f, h, m) => {
|
|
2686
|
+
const E = h.component = f.component;
|
|
2687
2687
|
if ($r(f, h, m))
|
|
2688
|
-
if (
|
|
2689
|
-
xe(
|
|
2688
|
+
if (E.asyncDep && !E.asyncResolved) {
|
|
2689
|
+
xe(E, h, m);
|
|
2690
2690
|
return;
|
|
2691
2691
|
} else
|
|
2692
|
-
|
|
2692
|
+
E.next = h, E.update();
|
|
2693
2693
|
else
|
|
2694
|
-
h.el = f.el,
|
|
2695
|
-
},
|
|
2694
|
+
h.el = f.el, E.vnode = h;
|
|
2695
|
+
}, K = (f, h, m, E, T, w, I) => {
|
|
2696
2696
|
const O = () => {
|
|
2697
2697
|
if (f.isMounted) {
|
|
2698
|
-
let { next: M, bu:
|
|
2698
|
+
let { next: M, bu: j, u: V, parent: q, vnode: J } = f;
|
|
2699
2699
|
{
|
|
2700
2700
|
const Le = ki(f);
|
|
2701
2701
|
if (Le) {
|
|
2702
2702
|
M && (M.el = J.el, xe(f, M, I)), Le.asyncDep.then(() => {
|
|
2703
|
-
|
|
2703
|
+
Oe(() => {
|
|
2704
2704
|
f.isUnmounted || v();
|
|
2705
|
-
},
|
|
2705
|
+
}, T);
|
|
2706
2706
|
});
|
|
2707
2707
|
return;
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
|
-
let
|
|
2711
|
-
kt(f, !1), M ? (M.el = J.el, xe(f, M, I)) : M = J,
|
|
2712
|
-
const _e = io(f),
|
|
2713
|
-
f.subTree = _e,
|
|
2714
|
-
|
|
2710
|
+
let ee = M, ie;
|
|
2711
|
+
kt(f, !1), M ? (M.el = J.el, xe(f, M, I)) : M = J, j && Zn(j), (ie = M.props && M.props.onVnodeBeforeUpdate) && lt(ie, q, M, J), kt(f, !0);
|
|
2712
|
+
const _e = io(f), Ke = f.subTree;
|
|
2713
|
+
f.subTree = _e, S(
|
|
2714
|
+
Ke,
|
|
2715
2715
|
_e,
|
|
2716
2716
|
// parent may have changed if it's in a teleport
|
|
2717
|
-
d(
|
|
2717
|
+
d(Ke.el),
|
|
2718
2718
|
// anchor may have changed if it's in a fragment
|
|
2719
|
-
|
|
2719
|
+
We(Ke),
|
|
2720
2720
|
f,
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
), M.el = _e.el,
|
|
2724
|
-
() => lt(
|
|
2725
|
-
|
|
2721
|
+
T,
|
|
2722
|
+
w
|
|
2723
|
+
), M.el = _e.el, ee === null && Br(f, _e.el), V && Oe(V, T), (ie = M.props && M.props.onVnodeUpdated) && Oe(
|
|
2724
|
+
() => lt(ie, q, M, J),
|
|
2725
|
+
T
|
|
2726
2726
|
);
|
|
2727
2727
|
} else {
|
|
2728
2728
|
let M;
|
|
2729
|
-
const { el:
|
|
2730
|
-
kt(f, !1),
|
|
2729
|
+
const { el: j, props: V } = h, { bm: q, m: J, parent: ee, root: ie, type: _e } = f, Ke = Kt(h);
|
|
2730
|
+
kt(f, !1), q && Zn(q), !Ke && (M = V && V.onVnodeBeforeMount) && lt(M, ee, h), kt(f, !0);
|
|
2731
2731
|
{
|
|
2732
|
-
|
|
2732
|
+
ie.ce && ie.ce._hasShadowRoot() && ie.ce._injectChildStyle(
|
|
2733
2733
|
_e,
|
|
2734
2734
|
f.parent ? f.parent.type : void 0
|
|
2735
2735
|
);
|
|
2736
2736
|
const Le = f.subTree = io(f);
|
|
2737
|
-
|
|
2737
|
+
S(
|
|
2738
2738
|
null,
|
|
2739
2739
|
Le,
|
|
2740
2740
|
m,
|
|
2741
|
-
T,
|
|
2742
|
-
f,
|
|
2743
2741
|
E,
|
|
2744
|
-
|
|
2742
|
+
f,
|
|
2743
|
+
T,
|
|
2744
|
+
w
|
|
2745
2745
|
), h.el = Le.el;
|
|
2746
2746
|
}
|
|
2747
|
-
if (J &&
|
|
2747
|
+
if (J && Oe(J, T), !Ke && (M = V && V.onVnodeMounted)) {
|
|
2748
2748
|
const Le = h;
|
|
2749
|
-
|
|
2750
|
-
() => lt(M,
|
|
2751
|
-
|
|
2749
|
+
Oe(
|
|
2750
|
+
() => lt(M, ee, Le),
|
|
2751
|
+
T
|
|
2752
2752
|
);
|
|
2753
2753
|
}
|
|
2754
|
-
(h.shapeFlag & 256 ||
|
|
2754
|
+
(h.shapeFlag & 256 || ee && Kt(ee.vnode) && ee.vnode.shapeFlag & 256) && f.a && Oe(f.a, T), f.isMounted = !0, h = m = E = null;
|
|
2755
2755
|
}
|
|
2756
2756
|
};
|
|
2757
2757
|
f.scope.on();
|
|
@@ -2761,32 +2761,32 @@ function zr(e, t) {
|
|
|
2761
2761
|
H.i = f, H.id = f.uid, g.scheduler = () => Ls(H), kt(f, !0), v();
|
|
2762
2762
|
}, xe = (f, h, m) => {
|
|
2763
2763
|
h.component = f;
|
|
2764
|
-
const
|
|
2765
|
-
f.vnode = h, f.next = null, Hr(f, h.props,
|
|
2766
|
-
},
|
|
2767
|
-
const v = f && f.children, H = f ? f.shapeFlag : 0, M = h.children, { patchFlag:
|
|
2768
|
-
if (
|
|
2769
|
-
if (
|
|
2770
|
-
|
|
2764
|
+
const E = f.vnode.props;
|
|
2765
|
+
f.vnode = h, f.next = null, Hr(f, h.props, E, m), Ur(f, h.children, m), Ct(), eo(f), xt();
|
|
2766
|
+
}, Ae = (f, h, m, E, T, w, I, O, g = !1) => {
|
|
2767
|
+
const v = f && f.children, H = f ? f.shapeFlag : 0, M = h.children, { patchFlag: j, shapeFlag: V } = h;
|
|
2768
|
+
if (j > 0) {
|
|
2769
|
+
if (j & 128) {
|
|
2770
|
+
Ve(
|
|
2771
2771
|
v,
|
|
2772
2772
|
M,
|
|
2773
2773
|
m,
|
|
2774
|
-
T,
|
|
2775
2774
|
E,
|
|
2776
|
-
|
|
2775
|
+
T,
|
|
2776
|
+
w,
|
|
2777
2777
|
I,
|
|
2778
2778
|
O,
|
|
2779
2779
|
g
|
|
2780
2780
|
);
|
|
2781
2781
|
return;
|
|
2782
|
-
} else if (
|
|
2783
|
-
|
|
2782
|
+
} else if (j & 256) {
|
|
2783
|
+
ze(
|
|
2784
2784
|
v,
|
|
2785
2785
|
M,
|
|
2786
2786
|
m,
|
|
2787
|
-
T,
|
|
2788
2787
|
E,
|
|
2789
|
-
|
|
2788
|
+
T,
|
|
2789
|
+
w,
|
|
2790
2790
|
I,
|
|
2791
2791
|
O,
|
|
2792
2792
|
g
|
|
@@ -2794,39 +2794,39 @@ function zr(e, t) {
|
|
|
2794
2794
|
return;
|
|
2795
2795
|
}
|
|
2796
2796
|
}
|
|
2797
|
-
V & 8 ? (H & 16 && Re(v,
|
|
2797
|
+
V & 8 ? (H & 16 && Re(v, T, w), M !== v && c(m, M)) : H & 16 ? V & 16 ? Ve(
|
|
2798
2798
|
v,
|
|
2799
2799
|
M,
|
|
2800
2800
|
m,
|
|
2801
|
-
T,
|
|
2802
2801
|
E,
|
|
2803
|
-
|
|
2802
|
+
T,
|
|
2803
|
+
w,
|
|
2804
2804
|
I,
|
|
2805
2805
|
O,
|
|
2806
2806
|
g
|
|
2807
|
-
) : Re(v,
|
|
2807
|
+
) : Re(v, T, w, !0) : (H & 8 && c(m, ""), V & 16 && R(
|
|
2808
2808
|
M,
|
|
2809
2809
|
m,
|
|
2810
|
-
T,
|
|
2811
2810
|
E,
|
|
2812
|
-
|
|
2811
|
+
T,
|
|
2812
|
+
w,
|
|
2813
2813
|
I,
|
|
2814
2814
|
O,
|
|
2815
2815
|
g
|
|
2816
2816
|
));
|
|
2817
|
-
},
|
|
2817
|
+
}, ze = (f, h, m, E, T, w, I, O, g) => {
|
|
2818
2818
|
f = f || Ht, h = h || Ht;
|
|
2819
2819
|
const v = f.length, H = h.length, M = Math.min(v, H);
|
|
2820
|
-
let
|
|
2821
|
-
for (
|
|
2822
|
-
const V = h[
|
|
2823
|
-
|
|
2824
|
-
f[
|
|
2820
|
+
let j;
|
|
2821
|
+
for (j = 0; j < M; j++) {
|
|
2822
|
+
const V = h[j] = g ? mt(h[j]) : ct(h[j]);
|
|
2823
|
+
S(
|
|
2824
|
+
f[j],
|
|
2825
2825
|
V,
|
|
2826
2826
|
m,
|
|
2827
2827
|
null,
|
|
2828
|
-
|
|
2829
|
-
|
|
2828
|
+
T,
|
|
2829
|
+
w,
|
|
2830
2830
|
I,
|
|
2831
2831
|
O,
|
|
2832
2832
|
g
|
|
@@ -2834,36 +2834,36 @@ function zr(e, t) {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
v > H ? Re(
|
|
2836
2836
|
f,
|
|
2837
|
-
|
|
2838
|
-
|
|
2837
|
+
T,
|
|
2838
|
+
w,
|
|
2839
2839
|
!0,
|
|
2840
2840
|
!1,
|
|
2841
2841
|
M
|
|
2842
|
-
) :
|
|
2842
|
+
) : R(
|
|
2843
2843
|
h,
|
|
2844
2844
|
m,
|
|
2845
|
-
T,
|
|
2846
2845
|
E,
|
|
2847
|
-
|
|
2846
|
+
T,
|
|
2847
|
+
w,
|
|
2848
2848
|
I,
|
|
2849
2849
|
O,
|
|
2850
2850
|
g,
|
|
2851
2851
|
M
|
|
2852
2852
|
);
|
|
2853
|
-
},
|
|
2853
|
+
}, Ve = (f, h, m, E, T, w, I, O, g) => {
|
|
2854
2854
|
let v = 0;
|
|
2855
2855
|
const H = h.length;
|
|
2856
|
-
let M = f.length - 1,
|
|
2857
|
-
for (; v <= M && v <=
|
|
2858
|
-
const V = f[v],
|
|
2859
|
-
if (tn(V,
|
|
2860
|
-
|
|
2856
|
+
let M = f.length - 1, j = H - 1;
|
|
2857
|
+
for (; v <= M && v <= j; ) {
|
|
2858
|
+
const V = f[v], q = h[v] = g ? mt(h[v]) : ct(h[v]);
|
|
2859
|
+
if (tn(V, q))
|
|
2860
|
+
S(
|
|
2861
2861
|
V,
|
|
2862
|
-
|
|
2862
|
+
q,
|
|
2863
2863
|
m,
|
|
2864
2864
|
null,
|
|
2865
|
-
|
|
2866
|
-
|
|
2865
|
+
T,
|
|
2866
|
+
w,
|
|
2867
2867
|
I,
|
|
2868
2868
|
O,
|
|
2869
2869
|
g
|
|
@@ -2872,167 +2872,167 @@ function zr(e, t) {
|
|
|
2872
2872
|
break;
|
|
2873
2873
|
v++;
|
|
2874
2874
|
}
|
|
2875
|
-
for (; v <= M && v <=
|
|
2876
|
-
const V = f[M],
|
|
2877
|
-
if (tn(V,
|
|
2878
|
-
|
|
2875
|
+
for (; v <= M && v <= j; ) {
|
|
2876
|
+
const V = f[M], q = h[j] = g ? mt(h[j]) : ct(h[j]);
|
|
2877
|
+
if (tn(V, q))
|
|
2878
|
+
S(
|
|
2879
2879
|
V,
|
|
2880
|
-
|
|
2880
|
+
q,
|
|
2881
2881
|
m,
|
|
2882
2882
|
null,
|
|
2883
|
-
|
|
2884
|
-
|
|
2883
|
+
T,
|
|
2884
|
+
w,
|
|
2885
2885
|
I,
|
|
2886
2886
|
O,
|
|
2887
2887
|
g
|
|
2888
2888
|
);
|
|
2889
2889
|
else
|
|
2890
2890
|
break;
|
|
2891
|
-
M--,
|
|
2891
|
+
M--, j--;
|
|
2892
2892
|
}
|
|
2893
2893
|
if (v > M) {
|
|
2894
|
-
if (v <=
|
|
2895
|
-
const V =
|
|
2896
|
-
for (; v <=
|
|
2897
|
-
|
|
2894
|
+
if (v <= j) {
|
|
2895
|
+
const V = j + 1, q = V < H ? h[V].el : E;
|
|
2896
|
+
for (; v <= j; )
|
|
2897
|
+
S(
|
|
2898
2898
|
null,
|
|
2899
2899
|
h[v] = g ? mt(h[v]) : ct(h[v]),
|
|
2900
2900
|
m,
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2901
|
+
q,
|
|
2902
|
+
T,
|
|
2903
|
+
w,
|
|
2904
2904
|
I,
|
|
2905
2905
|
O,
|
|
2906
2906
|
g
|
|
2907
2907
|
), v++;
|
|
2908
2908
|
}
|
|
2909
|
-
} else if (v >
|
|
2909
|
+
} else if (v > j)
|
|
2910
2910
|
for (; v <= M; )
|
|
2911
|
-
me(f[v],
|
|
2911
|
+
me(f[v], T, w, !0), v++;
|
|
2912
2912
|
else {
|
|
2913
|
-
const V = v,
|
|
2914
|
-
for (v =
|
|
2915
|
-
const
|
|
2916
|
-
|
|
2913
|
+
const V = v, q = v, J = /* @__PURE__ */ new Map();
|
|
2914
|
+
for (v = q; v <= j; v++) {
|
|
2915
|
+
const le = h[v] = g ? mt(h[v]) : ct(h[v]);
|
|
2916
|
+
le.key != null && J.set(le.key, v);
|
|
2917
2917
|
}
|
|
2918
|
-
let
|
|
2919
|
-
const _e =
|
|
2920
|
-
let
|
|
2918
|
+
let ee, ie = 0;
|
|
2919
|
+
const _e = j - q + 1;
|
|
2920
|
+
let Ke = !1, Le = 0;
|
|
2921
2921
|
const A = new Array(_e);
|
|
2922
2922
|
for (v = 0; v < _e; v++) A[v] = 0;
|
|
2923
2923
|
for (v = V; v <= M; v++) {
|
|
2924
|
-
const
|
|
2925
|
-
if (
|
|
2926
|
-
me(
|
|
2924
|
+
const le = f[v];
|
|
2925
|
+
if (ie >= _e) {
|
|
2926
|
+
me(le, T, w, !0);
|
|
2927
2927
|
continue;
|
|
2928
2928
|
}
|
|
2929
2929
|
let ve;
|
|
2930
|
-
if (
|
|
2931
|
-
ve = J.get(
|
|
2930
|
+
if (le.key != null)
|
|
2931
|
+
ve = J.get(le.key);
|
|
2932
2932
|
else
|
|
2933
|
-
for (
|
|
2934
|
-
if (A[
|
|
2935
|
-
ve =
|
|
2933
|
+
for (ee = q; ee <= j; ee++)
|
|
2934
|
+
if (A[ee - q] === 0 && tn(le, h[ee])) {
|
|
2935
|
+
ve = ee;
|
|
2936
2936
|
break;
|
|
2937
2937
|
}
|
|
2938
|
-
ve === void 0 ? me(
|
|
2939
|
-
|
|
2938
|
+
ve === void 0 ? me(le, T, w, !0) : (A[ve - q] = v + 1, ve >= Le ? Le = ve : Ke = !0, S(
|
|
2939
|
+
le,
|
|
2940
2940
|
h[ve],
|
|
2941
2941
|
m,
|
|
2942
2942
|
null,
|
|
2943
|
-
|
|
2944
|
-
|
|
2943
|
+
T,
|
|
2944
|
+
w,
|
|
2945
2945
|
I,
|
|
2946
2946
|
O,
|
|
2947
2947
|
g
|
|
2948
|
-
),
|
|
2948
|
+
), ie++);
|
|
2949
2949
|
}
|
|
2950
|
-
const be =
|
|
2951
|
-
for (
|
|
2952
|
-
const
|
|
2950
|
+
const be = Ke ? Xr(A) : Ht;
|
|
2951
|
+
for (ee = be.length - 1, v = _e - 1; v >= 0; v--) {
|
|
2952
|
+
const le = q + v, ve = h[le], ot = h[le + 1], Xe = le + 1 < H ? (
|
|
2953
2953
|
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
2954
2954
|
ot.el || Pi(ot)
|
|
2955
|
-
) :
|
|
2956
|
-
A[v] === 0 ?
|
|
2955
|
+
) : E;
|
|
2956
|
+
A[v] === 0 ? S(
|
|
2957
2957
|
null,
|
|
2958
2958
|
ve,
|
|
2959
2959
|
m,
|
|
2960
2960
|
Xe,
|
|
2961
|
-
|
|
2962
|
-
|
|
2961
|
+
T,
|
|
2962
|
+
w,
|
|
2963
2963
|
I,
|
|
2964
2964
|
O,
|
|
2965
2965
|
g
|
|
2966
|
-
) :
|
|
2966
|
+
) : Ke && (ee < 0 || v !== be[ee] ? De(ve, m, Xe, 2) : ee--);
|
|
2967
2967
|
}
|
|
2968
2968
|
}
|
|
2969
|
-
},
|
|
2970
|
-
const { el:
|
|
2969
|
+
}, De = (f, h, m, E, T = null) => {
|
|
2970
|
+
const { el: w, type: I, transition: O, children: g, shapeFlag: v } = f;
|
|
2971
2971
|
if (v & 6) {
|
|
2972
|
-
|
|
2972
|
+
De(f.component.subTree, h, m, E);
|
|
2973
2973
|
return;
|
|
2974
2974
|
}
|
|
2975
2975
|
if (v & 128) {
|
|
2976
|
-
f.suspense.move(h, m,
|
|
2976
|
+
f.suspense.move(h, m, E);
|
|
2977
2977
|
return;
|
|
2978
2978
|
}
|
|
2979
2979
|
if (v & 64) {
|
|
2980
2980
|
I.move(f, h, m, st);
|
|
2981
2981
|
return;
|
|
2982
2982
|
}
|
|
2983
|
-
if (I ===
|
|
2984
|
-
s(
|
|
2983
|
+
if (I === fe) {
|
|
2984
|
+
s(w, h, m);
|
|
2985
2985
|
for (let M = 0; M < g.length; M++)
|
|
2986
|
-
|
|
2986
|
+
De(g[M], h, m, E);
|
|
2987
2987
|
s(f.anchor, h, m);
|
|
2988
2988
|
return;
|
|
2989
2989
|
}
|
|
2990
2990
|
if (I === fn) {
|
|
2991
|
-
|
|
2991
|
+
$(f, h, m);
|
|
2992
2992
|
return;
|
|
2993
2993
|
}
|
|
2994
|
-
if (
|
|
2995
|
-
if (
|
|
2996
|
-
O.beforeEnter(
|
|
2994
|
+
if (E !== 2 && v & 1 && O)
|
|
2995
|
+
if (E === 0)
|
|
2996
|
+
O.beforeEnter(w), s(w, h, m), Oe(() => O.enter(w), T);
|
|
2997
2997
|
else {
|
|
2998
|
-
const { leave: M, delayLeave:
|
|
2999
|
-
f.ctx.isUnmounted ? o(
|
|
2998
|
+
const { leave: M, delayLeave: j, afterLeave: V } = O, q = () => {
|
|
2999
|
+
f.ctx.isUnmounted ? o(w) : s(w, h, m);
|
|
3000
3000
|
}, J = () => {
|
|
3001
|
-
|
|
3001
|
+
w._isLeaving && w[wr](
|
|
3002
3002
|
!0
|
|
3003
3003
|
/* cancelled */
|
|
3004
|
-
), M(
|
|
3005
|
-
|
|
3004
|
+
), M(w, () => {
|
|
3005
|
+
q(), V && V();
|
|
3006
3006
|
});
|
|
3007
3007
|
};
|
|
3008
|
-
|
|
3008
|
+
j ? j(w, q, J) : J();
|
|
3009
3009
|
}
|
|
3010
3010
|
else
|
|
3011
|
-
s(
|
|
3012
|
-
}, me = (f, h, m,
|
|
3011
|
+
s(w, h, m);
|
|
3012
|
+
}, me = (f, h, m, E = !1, T = !1) => {
|
|
3013
3013
|
const {
|
|
3014
|
-
type:
|
|
3014
|
+
type: w,
|
|
3015
3015
|
props: I,
|
|
3016
3016
|
ref: O,
|
|
3017
3017
|
children: g,
|
|
3018
3018
|
dynamicChildren: v,
|
|
3019
3019
|
shapeFlag: H,
|
|
3020
3020
|
patchFlag: M,
|
|
3021
|
-
dirs:
|
|
3021
|
+
dirs: j,
|
|
3022
3022
|
cacheIndex: V,
|
|
3023
|
-
memo:
|
|
3023
|
+
memo: q
|
|
3024
3024
|
} = f;
|
|
3025
|
-
if (M === -2 && (
|
|
3025
|
+
if (M === -2 && (T = !1), O != null && (Ct(), cn(O, null, m, f, !0), xt()), V != null && (h.renderCache[V] = void 0), H & 256) {
|
|
3026
3026
|
h.ctx.deactivate(f);
|
|
3027
3027
|
return;
|
|
3028
3028
|
}
|
|
3029
|
-
const J = H & 1 &&
|
|
3030
|
-
let
|
|
3031
|
-
if (
|
|
3032
|
-
dt(f.component, m,
|
|
3029
|
+
const J = H & 1 && j, ee = !Kt(f);
|
|
3030
|
+
let ie;
|
|
3031
|
+
if (ee && (ie = I && I.onVnodeBeforeUnmount) && lt(ie, h, f), H & 6)
|
|
3032
|
+
dt(f.component, m, E);
|
|
3033
3033
|
else {
|
|
3034
3034
|
if (H & 128) {
|
|
3035
|
-
f.suspense.unmount(m,
|
|
3035
|
+
f.suspense.unmount(m, E);
|
|
3036
3036
|
return;
|
|
3037
3037
|
}
|
|
3038
3038
|
J && Mt(f, null, h, "beforeUnmount"), H & 64 ? f.type.remove(
|
|
@@ -3040,59 +3040,59 @@ function zr(e, t) {
|
|
|
3040
3040
|
h,
|
|
3041
3041
|
m,
|
|
3042
3042
|
st,
|
|
3043
|
-
|
|
3043
|
+
E
|
|
3044
3044
|
) : v && // #5154
|
|
3045
3045
|
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
3046
3046
|
// parent block with hasOnce: true
|
|
3047
3047
|
// so that it doesn't take the fast path during unmount - otherwise
|
|
3048
3048
|
// components nested in v-once are never unmounted.
|
|
3049
3049
|
!v.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
3050
|
-
(
|
|
3050
|
+
(w !== fe || M > 0 && M & 64) ? Re(
|
|
3051
3051
|
v,
|
|
3052
3052
|
h,
|
|
3053
3053
|
m,
|
|
3054
3054
|
!1,
|
|
3055
3055
|
!0
|
|
3056
|
-
) : (
|
|
3056
|
+
) : (w === fe && M & 384 || !T && H & 16) && Re(g, h, m), E && Pe(f);
|
|
3057
3057
|
}
|
|
3058
|
-
const _e =
|
|
3059
|
-
(
|
|
3060
|
-
|
|
3058
|
+
const _e = q != null && V == null;
|
|
3059
|
+
(ee && (ie = I && I.onVnodeUnmounted) || J || _e) && Oe(() => {
|
|
3060
|
+
ie && lt(ie, h, f), J && Mt(f, null, h, "unmounted"), _e && (f.el = null);
|
|
3061
3061
|
}, m);
|
|
3062
3062
|
}, Pe = (f) => {
|
|
3063
|
-
const { type: h, el: m, anchor:
|
|
3064
|
-
if (h ===
|
|
3065
|
-
Ne(m,
|
|
3063
|
+
const { type: h, el: m, anchor: E, transition: T } = f;
|
|
3064
|
+
if (h === fe) {
|
|
3065
|
+
Ne(m, E);
|
|
3066
3066
|
return;
|
|
3067
3067
|
}
|
|
3068
3068
|
if (h === fn) {
|
|
3069
|
-
|
|
3069
|
+
b(f);
|
|
3070
3070
|
return;
|
|
3071
3071
|
}
|
|
3072
|
-
const
|
|
3073
|
-
o(m),
|
|
3072
|
+
const w = () => {
|
|
3073
|
+
o(m), T && !T.persisted && T.afterLeave && T.afterLeave();
|
|
3074
3074
|
};
|
|
3075
|
-
if (f.shapeFlag & 1 &&
|
|
3076
|
-
const { leave: I, delayLeave: O } =
|
|
3077
|
-
O ? O(f.el,
|
|
3075
|
+
if (f.shapeFlag & 1 && T && !T.persisted) {
|
|
3076
|
+
const { leave: I, delayLeave: O } = T, g = () => I(m, w);
|
|
3077
|
+
O ? O(f.el, w, g) : g();
|
|
3078
3078
|
} else
|
|
3079
|
-
|
|
3079
|
+
w();
|
|
3080
3080
|
}, Ne = (f, h) => {
|
|
3081
3081
|
let m;
|
|
3082
3082
|
for (; f !== h; )
|
|
3083
3083
|
m = p(f), o(f), f = m;
|
|
3084
3084
|
o(h);
|
|
3085
3085
|
}, dt = (f, h, m) => {
|
|
3086
|
-
const { bum:
|
|
3087
|
-
ao(g), ao(v),
|
|
3086
|
+
const { bum: E, scope: T, job: w, subTree: I, um: O, m: g, a: v } = f;
|
|
3087
|
+
ao(g), ao(v), E && Zn(E), T.stop(), w && (w.flags |= 8, me(I, f, h, m)), O && Oe(O, h), Oe(() => {
|
|
3088
3088
|
f.isUnmounted = !0;
|
|
3089
3089
|
}, h);
|
|
3090
|
-
}, Re = (f, h, m,
|
|
3091
|
-
for (let I =
|
|
3092
|
-
me(f[I], h, m,
|
|
3093
|
-
},
|
|
3090
|
+
}, Re = (f, h, m, E = !1, T = !1, w = 0) => {
|
|
3091
|
+
for (let I = w; I < f.length; I++)
|
|
3092
|
+
me(f[I], h, m, E, T);
|
|
3093
|
+
}, We = (f) => {
|
|
3094
3094
|
if (f.shapeFlag & 6)
|
|
3095
|
-
return
|
|
3095
|
+
return We(f.component.subTree);
|
|
3096
3096
|
if (f.shapeFlag & 128)
|
|
3097
3097
|
return f.suspense.next();
|
|
3098
3098
|
const h = p(f.anchor || f.el), m = h && h[bi];
|
|
@@ -3100,8 +3100,8 @@ function zr(e, t) {
|
|
|
3100
3100
|
};
|
|
3101
3101
|
let Ye = !1;
|
|
3102
3102
|
const Ot = (f, h, m) => {
|
|
3103
|
-
let
|
|
3104
|
-
f == null ? h._vnode && (me(h._vnode, null, null, !0),
|
|
3103
|
+
let E;
|
|
3104
|
+
f == null ? h._vnode && (me(h._vnode, null, null, !0), E = h._vnode.component) : S(
|
|
3105
3105
|
h._vnode || null,
|
|
3106
3106
|
f,
|
|
3107
3107
|
h,
|
|
@@ -3109,17 +3109,17 @@ function zr(e, t) {
|
|
|
3109
3109
|
null,
|
|
3110
3110
|
null,
|
|
3111
3111
|
m
|
|
3112
|
-
), h._vnode = f, Ye || (Ye = !0, eo(
|
|
3112
|
+
), h._vnode = f, Ye || (Ye = !0, eo(E), mi(), Ye = !1);
|
|
3113
3113
|
}, st = {
|
|
3114
|
-
p:
|
|
3114
|
+
p: S,
|
|
3115
3115
|
um: me,
|
|
3116
|
-
m:
|
|
3116
|
+
m: De,
|
|
3117
3117
|
r: Pe,
|
|
3118
|
-
mt:
|
|
3119
|
-
mc:
|
|
3120
|
-
pc:
|
|
3121
|
-
pbc:
|
|
3122
|
-
n:
|
|
3118
|
+
mt: G,
|
|
3119
|
+
mc: R,
|
|
3120
|
+
pc: Ae,
|
|
3121
|
+
pbc: X,
|
|
3122
|
+
n: We,
|
|
3123
3123
|
o: e
|
|
3124
3124
|
};
|
|
3125
3125
|
return {
|
|
@@ -3139,7 +3139,7 @@ function Yr(e, t) {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
function Hs(e, t, n = !1) {
|
|
3141
3141
|
const s = e.children, o = t.children;
|
|
3142
|
-
if (
|
|
3142
|
+
if (U(s) && U(o))
|
|
3143
3143
|
for (let i = 0; i < s.length; i++) {
|
|
3144
3144
|
const l = s[i];
|
|
3145
3145
|
let r = o[i];
|
|
@@ -3184,9 +3184,9 @@ function Pi(e) {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
const Ni = (e) => e.__isSuspense;
|
|
3186
3186
|
function Gr(e, t) {
|
|
3187
|
-
t && t.pendingBranch ?
|
|
3187
|
+
t && t.pendingBranch ? U(e) ? t.effects.push(...e) : t.effects.push(e) : gi(e);
|
|
3188
3188
|
}
|
|
3189
|
-
const
|
|
3189
|
+
const fe = /* @__PURE__ */ Symbol.for("v-fgt"), Xn = /* @__PURE__ */ Symbol.for("v-txt"), St = /* @__PURE__ */ Symbol.for("v-cmt"), fn = /* @__PURE__ */ Symbol.for("v-stc"), dn = [];
|
|
3190
3190
|
let Be = null;
|
|
3191
3191
|
function W(e = !1) {
|
|
3192
3192
|
dn.push(Be = e ? null : []);
|
|
@@ -3201,7 +3201,7 @@ function co(e, t = !1) {
|
|
|
3201
3201
|
function Ri(e) {
|
|
3202
3202
|
return e.dynamicChildren = mn > 0 ? Be || Ht : null, Jr(), mn > 0 && Be && Be.push(e), e;
|
|
3203
3203
|
}
|
|
3204
|
-
function
|
|
3204
|
+
function z(e, t, n, s, o, i) {
|
|
3205
3205
|
return Ri(
|
|
3206
3206
|
y(
|
|
3207
3207
|
e,
|
|
@@ -3236,8 +3236,8 @@ const Li = ({ key: e }) => e ?? null, An = ({
|
|
|
3236
3236
|
ref: e,
|
|
3237
3237
|
ref_key: t,
|
|
3238
3238
|
ref_for: n
|
|
3239
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? ye(e) || /* @__PURE__ */
|
|
3240
|
-
function y(e, t = null, n = null, s = 0, o = null, i = e ===
|
|
3239
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? ye(e) || /* @__PURE__ */ Te(e) || ne(e) ? { i: Ce, r: e, k: t, f: !!n } : e : null);
|
|
3240
|
+
function y(e, t = null, n = null, s = 0, o = null, i = e === fe ? 0 : 1, l = !1, r = !1) {
|
|
3241
3241
|
const a = {
|
|
3242
3242
|
__v_isVNode: !0,
|
|
3243
3243
|
__v_skip: !0,
|
|
@@ -3291,9 +3291,9 @@ function Zr(e, t = null, n = null, s = 0, o = null, i = !1) {
|
|
|
3291
3291
|
if (ra(e) && (e = e.__vccOpts), t) {
|
|
3292
3292
|
t = Qr(t);
|
|
3293
3293
|
let { class: r, style: a } = t;
|
|
3294
|
-
r && !ye(r) && (t.class =
|
|
3294
|
+
r && !ye(r) && (t.class = Me(r)), re(a) && (/* @__PURE__ */ qn(a) && !U(a) && (a = et({}, a)), t.style = Rt(a));
|
|
3295
3295
|
}
|
|
3296
|
-
const l = ye(e) ? 1 : Ni(e) ? 128 : _r(e) ? 64 :
|
|
3296
|
+
const l = ye(e) ? 1 : Ni(e) ? 128 : _r(e) ? 64 : re(e) ? 4 : ne(e) ? 2 : 0;
|
|
3297
3297
|
return y(
|
|
3298
3298
|
e,
|
|
3299
3299
|
t,
|
|
@@ -3319,7 +3319,7 @@ function zt(e, t, n = !1, s = !1) {
|
|
|
3319
3319
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
3320
3320
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
3321
3321
|
// the refs so the single vnode can be set on multiple refs
|
|
3322
|
-
n && i ?
|
|
3322
|
+
n && i ? U(i) ? i.concat(An(t)) : [i, An(t)] : An(t)
|
|
3323
3323
|
) : i,
|
|
3324
3324
|
scopeId: e.scopeId,
|
|
3325
3325
|
slotScopeIds: e.slotScopeIds,
|
|
@@ -3333,7 +3333,7 @@ function zt(e, t, n = !1, s = !1) {
|
|
|
3333
3333
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
3334
3334
|
// note: preserve flag for fragments since they use the flag for children
|
|
3335
3335
|
// fast paths only.
|
|
3336
|
-
patchFlag: t && e.type !==
|
|
3336
|
+
patchFlag: t && e.type !== fe ? l === -1 ? 16 : l | 16 : l,
|
|
3337
3337
|
dynamicProps: e.dynamicProps,
|
|
3338
3338
|
dynamicChildren: e.dynamicChildren,
|
|
3339
3339
|
appContext: e.appContext,
|
|
@@ -3365,12 +3365,12 @@ function uo(e, t) {
|
|
|
3365
3365
|
const n = Se(fn, null, e);
|
|
3366
3366
|
return n.staticCount = t, n;
|
|
3367
3367
|
}
|
|
3368
|
-
function
|
|
3368
|
+
function qe(e = "", t = !1) {
|
|
3369
3369
|
return t ? (W(), At(St, null, e)) : Se(St, null, e);
|
|
3370
3370
|
}
|
|
3371
3371
|
function ct(e) {
|
|
3372
|
-
return e == null || typeof e == "boolean" ? Se(St) :
|
|
3373
|
-
|
|
3372
|
+
return e == null || typeof e == "boolean" ? Se(St) : U(e) ? Se(
|
|
3373
|
+
fe,
|
|
3374
3374
|
null,
|
|
3375
3375
|
// #3666, avoid reference pollution when reusing vnode
|
|
3376
3376
|
e.slice()
|
|
@@ -3384,7 +3384,7 @@ function Ks(e, t) {
|
|
|
3384
3384
|
const { shapeFlag: s } = e;
|
|
3385
3385
|
if (t == null)
|
|
3386
3386
|
t = null;
|
|
3387
|
-
else if (
|
|
3387
|
+
else if (U(t))
|
|
3388
3388
|
n = 16;
|
|
3389
3389
|
else if (typeof t == "object")
|
|
3390
3390
|
if (s & 65) {
|
|
@@ -3396,7 +3396,7 @@ function Ks(e, t) {
|
|
|
3396
3396
|
const o = t._;
|
|
3397
3397
|
!o && !Ai(t) ? t._ctx = Ce : o === 3 && Ce && (Ce.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
3398
3398
|
}
|
|
3399
|
-
else
|
|
3399
|
+
else ne(t) ? (t = { default: t, _ctx: Ce }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [Ws(t)]) : n = 8);
|
|
3400
3400
|
e.children = t, e.shapeFlag |= n;
|
|
3401
3401
|
}
|
|
3402
3402
|
function ea(...e) {
|
|
@@ -3405,12 +3405,12 @@ function ea(...e) {
|
|
|
3405
3405
|
const s = e[n];
|
|
3406
3406
|
for (const o in s)
|
|
3407
3407
|
if (o === "class")
|
|
3408
|
-
t.class !== s.class && (t.class =
|
|
3408
|
+
t.class !== s.class && (t.class = Me([t.class, s.class]));
|
|
3409
3409
|
else if (o === "style")
|
|
3410
3410
|
t.style = Rt([t.style, s.style]);
|
|
3411
3411
|
else if (jn(o)) {
|
|
3412
3412
|
const i = t[o], l = s[o];
|
|
3413
|
-
l && i !== l && !(
|
|
3413
|
+
l && i !== l && !(U(i) && i.includes(l)) ? t[o] = i ? [].concat(i, l) : l : l == null && i == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
3414
3414
|
// the model listener.
|
|
3415
3415
|
!Hn(o) && (t[o] = l);
|
|
3416
3416
|
} else o !== "" && (t[o] = s[o]);
|
|
@@ -3423,7 +3423,7 @@ function lt(e, t, n, s = null) {
|
|
|
3423
3423
|
s
|
|
3424
3424
|
]);
|
|
3425
3425
|
}
|
|
3426
|
-
const ta =
|
|
3426
|
+
const ta = Ti();
|
|
3427
3427
|
let na = 0;
|
|
3428
3428
|
function sa(e, t, n) {
|
|
3429
3429
|
const s = e.type, o = (t ? t.appContext : e.appContext) || ta, i = {
|
|
@@ -3506,7 +3506,7 @@ function sa(e, t, n) {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
let $e = null;
|
|
3508
3508
|
const Us = () => $e || Ce;
|
|
3509
|
-
let Rn,
|
|
3509
|
+
let Rn, Ts;
|
|
3510
3510
|
{
|
|
3511
3511
|
const e = Kn(), t = (n, s) => {
|
|
3512
3512
|
let o;
|
|
@@ -3517,7 +3517,7 @@ let Rn, Es;
|
|
|
3517
3517
|
Rn = t(
|
|
3518
3518
|
"__VUE_INSTANCE_SETTERS__",
|
|
3519
3519
|
(n) => $e = n
|
|
3520
|
-
),
|
|
3520
|
+
), Ts = t(
|
|
3521
3521
|
"__VUE_SSR_SETTERS__",
|
|
3522
3522
|
(n) => vn = n
|
|
3523
3523
|
);
|
|
@@ -3535,11 +3535,11 @@ function Fi(e) {
|
|
|
3535
3535
|
}
|
|
3536
3536
|
let vn = !1;
|
|
3537
3537
|
function oa(e, t = !1, n = !1) {
|
|
3538
|
-
t &&
|
|
3538
|
+
t && Ts(t);
|
|
3539
3539
|
const { props: s, children: o } = e.vnode, i = Fi(e);
|
|
3540
3540
|
jr(e, s, i, t), Kr(e, o, n || t);
|
|
3541
3541
|
const l = i ? ia(e, t) : void 0;
|
|
3542
|
-
return t &&
|
|
3542
|
+
return t && Ts(!1), l;
|
|
3543
3543
|
}
|
|
3544
3544
|
function ia(e, t) {
|
|
3545
3545
|
const n = e.type;
|
|
@@ -3556,7 +3556,7 @@ function ia(e, t) {
|
|
|
3556
3556
|
o
|
|
3557
3557
|
]
|
|
3558
3558
|
), r = Vo(l);
|
|
3559
|
-
if (xt(), i(), (r || e.sp) && !Kt(e) &&
|
|
3559
|
+
if (xt(), i(), (r || e.sp) && !Kt(e) && Tr(e), r) {
|
|
3560
3560
|
if (l.then(fo, fo), t)
|
|
3561
3561
|
return l.then((a) => {
|
|
3562
3562
|
ho(e, a);
|
|
@@ -3570,15 +3570,15 @@ function ia(e, t) {
|
|
|
3570
3570
|
$i(e);
|
|
3571
3571
|
}
|
|
3572
3572
|
function ho(e, t, n) {
|
|
3573
|
-
|
|
3573
|
+
ne(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : re(t) && (e.setupState = fi(t)), $i(e);
|
|
3574
3574
|
}
|
|
3575
3575
|
function $i(e, t, n) {
|
|
3576
3576
|
const s = e.type;
|
|
3577
|
-
e.render || (e.render = s.render ||
|
|
3577
|
+
e.render || (e.render = s.render || Et);
|
|
3578
3578
|
}
|
|
3579
3579
|
const la = {
|
|
3580
3580
|
get(e, t) {
|
|
3581
|
-
return
|
|
3581
|
+
return Ee(e, "get", ""), e[t];
|
|
3582
3582
|
}
|
|
3583
3583
|
};
|
|
3584
3584
|
function Bi(e) {
|
|
@@ -3606,24 +3606,24 @@ function Gn(e) {
|
|
|
3606
3606
|
})) : e.proxy;
|
|
3607
3607
|
}
|
|
3608
3608
|
function ra(e) {
|
|
3609
|
-
return
|
|
3609
|
+
return ne(e) && "__vccOpts" in e;
|
|
3610
3610
|
}
|
|
3611
|
-
const
|
|
3611
|
+
const Y = (e, t) => /* @__PURE__ */ cr(e, t, vn), aa = "3.5.32";
|
|
3612
3612
|
/**
|
|
3613
3613
|
* @vue/runtime-dom v3.5.32
|
|
3614
3614
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
3615
3615
|
* @license MIT
|
|
3616
3616
|
**/
|
|
3617
|
-
let
|
|
3617
|
+
let Es;
|
|
3618
3618
|
const po = typeof window < "u" && window.trustedTypes;
|
|
3619
3619
|
if (po)
|
|
3620
3620
|
try {
|
|
3621
|
-
|
|
3621
|
+
Es = /* @__PURE__ */ po.createPolicy("vue", {
|
|
3622
3622
|
createHTML: (e) => e
|
|
3623
3623
|
});
|
|
3624
3624
|
} catch {
|
|
3625
3625
|
}
|
|
3626
|
-
const ji =
|
|
3626
|
+
const ji = Es ? (e) => Es.createHTML(e) : (e) => e, ca = "http://www.w3.org/2000/svg", ua = "http://www.w3.org/1998/Math/MathML", gt = typeof document < "u" ? document : null, go = gt && /* @__PURE__ */ gt.createElement("template"), fa = {
|
|
3627
3627
|
insert: (e, t, n) => {
|
|
3628
3628
|
t.insertBefore(e, n || null);
|
|
3629
3629
|
},
|
|
@@ -3720,7 +3720,7 @@ function pa(e) {
|
|
|
3720
3720
|
xr(() => {
|
|
3721
3721
|
gi(s);
|
|
3722
3722
|
}), nt(() => {
|
|
3723
|
-
ft(s,
|
|
3723
|
+
ft(s, Et, { flush: "post" });
|
|
3724
3724
|
const o = new MutationObserver(s);
|
|
3725
3725
|
o.observe(t.subTree.el.parentNode, { childList: !0 }), wt(() => o.disconnect());
|
|
3726
3726
|
});
|
|
@@ -3736,7 +3736,7 @@ function Cs(e, t) {
|
|
|
3736
3736
|
e = e.component.subTree;
|
|
3737
3737
|
if (e.shapeFlag & 1 && e.el)
|
|
3738
3738
|
Fn(e.el, t);
|
|
3739
|
-
else if (e.type ===
|
|
3739
|
+
else if (e.type === fe)
|
|
3740
3740
|
e.children.forEach((n) => Cs(n, t));
|
|
3741
3741
|
else if (e.type === fn) {
|
|
3742
3742
|
let { el: n, anchor: s } = e;
|
|
@@ -3781,7 +3781,7 @@ function ma(e, t, n) {
|
|
|
3781
3781
|
}
|
|
3782
3782
|
const mo = /\s*!important$/;
|
|
3783
3783
|
function On(e, t, n) {
|
|
3784
|
-
if (
|
|
3784
|
+
if (U(n))
|
|
3785
3785
|
n.forEach((s) => On(e, t, s));
|
|
3786
3786
|
else if (n == null && (n = ""), t.startsWith("--"))
|
|
3787
3787
|
e.setProperty(t, n);
|
|
@@ -3858,7 +3858,7 @@ function ba(e, t, n, s, o = null) {
|
|
|
3858
3858
|
else {
|
|
3859
3859
|
const [r, a] = Sa(t);
|
|
3860
3860
|
if (s) {
|
|
3861
|
-
const u = i[t] =
|
|
3861
|
+
const u = i[t] = Ea(
|
|
3862
3862
|
s,
|
|
3863
3863
|
o
|
|
3864
3864
|
);
|
|
@@ -3878,8 +3878,8 @@ function Sa(e) {
|
|
|
3878
3878
|
return [e[2] === ":" ? e.slice(3) : $t(e.slice(2)), t];
|
|
3879
3879
|
}
|
|
3880
3880
|
let cs = 0;
|
|
3881
|
-
const wa = /* @__PURE__ */ Promise.resolve(),
|
|
3882
|
-
function
|
|
3881
|
+
const wa = /* @__PURE__ */ Promise.resolve(), Ta = () => cs || (wa.then(() => cs = 0), cs = Date.now());
|
|
3882
|
+
function Ea(e, t) {
|
|
3883
3883
|
const n = (s) => {
|
|
3884
3884
|
if (!s._vts)
|
|
3885
3885
|
s._vts = Date.now();
|
|
@@ -3892,10 +3892,10 @@ function Ta(e, t) {
|
|
|
3892
3892
|
[s]
|
|
3893
3893
|
);
|
|
3894
3894
|
};
|
|
3895
|
-
return n.value = e, n.attached =
|
|
3895
|
+
return n.value = e, n.attached = Ta(), n;
|
|
3896
3896
|
}
|
|
3897
3897
|
function Ca(e, t) {
|
|
3898
|
-
if (
|
|
3898
|
+
if (U(t)) {
|
|
3899
3899
|
const n = e.stopImmediatePropagation;
|
|
3900
3900
|
return e.stopImmediatePropagation = () => {
|
|
3901
3901
|
n.call(e), e._stopped = !0;
|
|
@@ -3905,7 +3905,7 @@ function Ca(e, t) {
|
|
|
3905
3905
|
} else
|
|
3906
3906
|
return t;
|
|
3907
3907
|
}
|
|
3908
|
-
const
|
|
3908
|
+
const To = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // lowercase letter
|
|
3909
3909
|
e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, xa = (e, t, n, s, o, i) => {
|
|
3910
3910
|
const l = o === "svg";
|
|
3911
3911
|
t === "class" ? ha(e, s, l) : t === "style" ? ma(e, n, s) : jn(t) ? Hn(t) || ba(e, t, n, s, i) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Aa(e, t, s, l)) ? (bo(e, t, s), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && yo(e, t, s, l, i, t !== "value")) : /* #11081 force set props for possible async custom element */ e._isVueCE && // #12408 check if it's declared prop or it's async custom element
|
|
@@ -3914,7 +3914,7 @@ e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, xa = (e, t, n, s, o, i) => {
|
|
|
3914
3914
|
};
|
|
3915
3915
|
function Aa(e, t, n, s) {
|
|
3916
3916
|
if (s)
|
|
3917
|
-
return !!(t === "innerHTML" || t === "textContent" || t in e &&
|
|
3917
|
+
return !!(t === "innerHTML" || t === "textContent" || t in e && To(t) && ne(n));
|
|
3918
3918
|
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA")
|
|
3919
3919
|
return !1;
|
|
3920
3920
|
if (t === "width" || t === "height") {
|
|
@@ -3922,7 +3922,7 @@ function Aa(e, t, n, s) {
|
|
|
3922
3922
|
if (o === "IMG" || o === "VIDEO" || o === "CANVAS" || o === "SOURCE")
|
|
3923
3923
|
return !1;
|
|
3924
3924
|
}
|
|
3925
|
-
return
|
|
3925
|
+
return To(t) && ye(n) ? !1 : t in e;
|
|
3926
3926
|
}
|
|
3927
3927
|
function Oa(e, t) {
|
|
3928
3928
|
const n = (
|
|
@@ -3957,9 +3957,9 @@ const Ia = ["ctrl", "shift", "alt", "meta"], Ma = {
|
|
|
3957
3957
|
return e(o, ...i);
|
|
3958
3958
|
});
|
|
3959
3959
|
}, Da = /* @__PURE__ */ et({ patchProp: xa }, fa);
|
|
3960
|
-
let
|
|
3960
|
+
let Eo;
|
|
3961
3961
|
function ka() {
|
|
3962
|
-
return
|
|
3962
|
+
return Eo || (Eo = qr(Da));
|
|
3963
3963
|
}
|
|
3964
3964
|
const Pa = (...e) => {
|
|
3965
3965
|
const t = ka().createApp(...e), { mount: n } = t;
|
|
@@ -3967,7 +3967,7 @@ const Pa = (...e) => {
|
|
|
3967
3967
|
const o = Ra(s);
|
|
3968
3968
|
if (!o) return;
|
|
3969
3969
|
const i = t._component;
|
|
3970
|
-
!
|
|
3970
|
+
!ne(i) && !i.render && !i.template && (i.template = o.innerHTML), o.nodeType === 1 && (o.textContent = "");
|
|
3971
3971
|
const l = n(o, !1, Na(o));
|
|
3972
3972
|
return o instanceof Element && (o.removeAttribute("v-cloak"), o.setAttribute("data-v-app", "")), l;
|
|
3973
3973
|
}, t;
|
|
@@ -4032,8 +4032,8 @@ const zi = /* @__PURE__ */ tt({
|
|
|
4032
4032
|
handleFrameLoaded: c
|
|
4033
4033
|
} = Xt();
|
|
4034
4034
|
function d(_, x) {
|
|
4035
|
-
var
|
|
4036
|
-
(
|
|
4035
|
+
var S;
|
|
4036
|
+
(S = n.value) != null && S.contentWindow && n.value.contentWindow.postMessage(Ha({ type: _ }, x), "*");
|
|
4037
4037
|
}
|
|
4038
4038
|
nt(() => {
|
|
4039
4039
|
n.value && n.value.addEventListener("load", () => {
|
|
@@ -4047,11 +4047,11 @@ const zi = /* @__PURE__ */ tt({
|
|
|
4047
4047
|
}
|
|
4048
4048
|
}), Va = { class: "opencode-iframe-container" }, Wa = { class: "opencode-empty-state-text" }, Ka = ["src"];
|
|
4049
4049
|
function Ua(e, t, n, s, o, i) {
|
|
4050
|
-
return W(),
|
|
4050
|
+
return W(), z("div", Va, [
|
|
4051
4051
|
y(
|
|
4052
4052
|
"div",
|
|
4053
4053
|
{
|
|
4054
|
-
class:
|
|
4054
|
+
class: Me(["opencode-empty-state-overlay", { visible: s.showEmptyState }])
|
|
4055
4055
|
},
|
|
4056
4056
|
[
|
|
4057
4057
|
he(e.$slots, "empty-state", {}, () => [
|
|
@@ -4104,7 +4104,7 @@ function Ua(e, t, n, s, o, i) {
|
|
|
4104
4104
|
y(
|
|
4105
4105
|
"div",
|
|
4106
4106
|
{
|
|
4107
|
-
class:
|
|
4107
|
+
class: Me(["opencode-loading-overlay", { visible: s.frameLoading }])
|
|
4108
4108
|
},
|
|
4109
4109
|
[
|
|
4110
4110
|
he(e.$slots, "loading", {}, () => [
|
|
@@ -4130,7 +4130,7 @@ function Ua(e, t, n, s, o, i) {
|
|
|
4130
4130
|
y(
|
|
4131
4131
|
"div",
|
|
4132
4132
|
{
|
|
4133
|
-
class:
|
|
4133
|
+
class: Me(["opencode-error-overlay", { visible: s.showError }])
|
|
4134
4134
|
},
|
|
4135
4135
|
[
|
|
4136
4136
|
he(e.$slots, "error")
|
|
@@ -4169,18 +4169,18 @@ const Yi = /* @__PURE__ */ tt({
|
|
|
4169
4169
|
handleToggleSelectMode: p,
|
|
4170
4170
|
handleToggleTheme: _,
|
|
4171
4171
|
handleClose: x,
|
|
4172
|
-
handleToggleMinimize:
|
|
4172
|
+
handleToggleMinimize: S,
|
|
4173
4173
|
handleTogglePromptDock: D
|
|
4174
|
-
} = Xt(),
|
|
4174
|
+
} = Xt(), L = Y(() => `主题: ${{
|
|
4175
4175
|
auto: "自动",
|
|
4176
4176
|
light: "亮色",
|
|
4177
4177
|
dark: "暗色"
|
|
4178
|
-
}[r.value]} (${a.value})`), C =
|
|
4178
|
+
}[r.value]} (${a.value})`), C = Y(() => `切换主题 - 当前: ${{
|
|
4179
4179
|
auto: "自动跟随系统",
|
|
4180
4180
|
light: "亮色主题",
|
|
4181
4181
|
dark: "暗色主题"
|
|
4182
|
-
}[r.value]}`),
|
|
4183
|
-
return Object.defineProperty(
|
|
4182
|
+
}[r.value]}`), $ = { title: n, sessionListTitle: s, sessionListCollapsed: o, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: u, promptDockVisible: c, handleToggleSessionList: d, handleToggleSelectMode: p, handleToggleTheme: _, handleClose: x, handleToggleMinimize: S, handleTogglePromptDock: D, themeIconTitle: L, themeIconLabel: C };
|
|
4183
|
+
return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
|
|
4184
4184
|
}
|
|
4185
4185
|
}), za = { class: "opencode-chat-header" }, Ya = { class: "opencode-chat-header-left" }, Xa = ["title", "aria-label", "aria-expanded"], Ga = ["aria-pressed", "disabled"], Ja = ["title", "aria-label"], Za = {
|
|
4186
4186
|
key: 0,
|
|
@@ -4229,10 +4229,10 @@ const Yi = /* @__PURE__ */ tt({
|
|
|
4229
4229
|
"aria-hidden": "true"
|
|
4230
4230
|
};
|
|
4231
4231
|
function rc(e, t, n, s, o, i) {
|
|
4232
|
-
return W(),
|
|
4232
|
+
return W(), z("div", za, [
|
|
4233
4233
|
y("div", Ya, [
|
|
4234
4234
|
y("button", {
|
|
4235
|
-
class:
|
|
4235
|
+
class: Me(["opencode-header-btn session-toggle", { active: !s.sessionListCollapsed }]),
|
|
4236
4236
|
type: "button",
|
|
4237
4237
|
title: s.sessionListTitle,
|
|
4238
4238
|
"aria-label": s.sessionListTitle,
|
|
@@ -4263,7 +4263,7 @@ function rc(e, t, n, s, o, i) {
|
|
|
4263
4263
|
])
|
|
4264
4264
|
], 10, Xa),
|
|
4265
4265
|
y("button", {
|
|
4266
|
-
class:
|
|
4266
|
+
class: Me(["opencode-header-btn select-btn", { active: s.selectMode }]),
|
|
4267
4267
|
type: "button",
|
|
4268
4268
|
title: "选择页面元素 (Ctrl+P)",
|
|
4269
4269
|
"aria-label": "选择页面元素",
|
|
@@ -4303,9 +4303,9 @@ function rc(e, t, n, s, o, i) {
|
|
|
4303
4303
|
onClick: t[2] || (t[2] = (...l) => s.handleToggleTheme && s.handleToggleTheme(...l))
|
|
4304
4304
|
}, [
|
|
4305
4305
|
he(e.$slots, "theme-icon", {}, () => [
|
|
4306
|
-
s.theme === "light" ? (W(),
|
|
4306
|
+
s.theme === "light" ? (W(), z("svg", Za, [...t[8] || (t[8] = [
|
|
4307
4307
|
uo('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>', 9)
|
|
4308
|
-
])])) : s.theme === "dark" ? (W(),
|
|
4308
|
+
])])) : s.theme === "dark" ? (W(), z("svg", Qa, [...t[9] || (t[9] = [
|
|
4309
4309
|
y(
|
|
4310
4310
|
"path",
|
|
4311
4311
|
{ d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" },
|
|
@@ -4313,7 +4313,7 @@ function rc(e, t, n, s, o, i) {
|
|
|
4313
4313
|
-1
|
|
4314
4314
|
/* CACHED */
|
|
4315
4315
|
)
|
|
4316
|
-
])])) : (W(),
|
|
4316
|
+
])])) : (W(), z("svg", ec, [...t[10] || (t[10] = [
|
|
4317
4317
|
uo('<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line><circle cx="12" cy="10" r="3"></circle><path d="M7 7l2 2M17 7l-2 2M7 13l2-2M17 13l-2-2"></path>', 5)
|
|
4318
4318
|
])]))
|
|
4319
4319
|
])
|
|
@@ -4364,7 +4364,7 @@ function rc(e, t, n, s, o, i) {
|
|
|
4364
4364
|
onClick: t[4] || (t[4] = (...l) => s.handleToggleMinimize && s.handleToggleMinimize(...l))
|
|
4365
4365
|
}, [
|
|
4366
4366
|
he(e.$slots, "minimize-icon", {}, () => [
|
|
4367
|
-
s.minimized ? (W(),
|
|
4367
|
+
s.minimized ? (W(), z("svg", ic, [...t[12] || (t[12] = [
|
|
4368
4368
|
y(
|
|
4369
4369
|
"path",
|
|
4370
4370
|
{ d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" },
|
|
@@ -4372,7 +4372,7 @@ function rc(e, t, n, s, o, i) {
|
|
|
4372
4372
|
-1
|
|
4373
4373
|
/* CACHED */
|
|
4374
4374
|
)
|
|
4375
|
-
])])) : (W(),
|
|
4375
|
+
])])) : (W(), z("svg", lc, [...t[13] || (t[13] = [
|
|
4376
4376
|
y(
|
|
4377
4377
|
"path",
|
|
4378
4378
|
{ d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" },
|
|
@@ -4424,10 +4424,10 @@ const Xi = /* @__PURE__ */ tt({
|
|
|
4424
4424
|
}
|
|
4425
4425
|
}), cc = { class: "opencode-hint-shortcut" };
|
|
4426
4426
|
function uc(e, t, n, s, o, i) {
|
|
4427
|
-
return W(),
|
|
4427
|
+
return W(), z(
|
|
4428
4428
|
"div",
|
|
4429
4429
|
{
|
|
4430
|
-
class:
|
|
4430
|
+
class: Me(["opencode-select-mode-hint", { visible: s.visible }])
|
|
4431
4431
|
},
|
|
4432
4432
|
[
|
|
4433
4433
|
t[0] || (t[0] = y(
|
|
@@ -4470,10 +4470,10 @@ const Gi = /* @__PURE__ */ tt({
|
|
|
4470
4470
|
"aria-label": "已选元素列表"
|
|
4471
4471
|
}, hc = ["onClick"], pc = { class: "opencode-node-content" }, gc = { class: "opencode-node-text" }, mc = { class: "opencode-node-file" }, vc = ["aria-label", "onClick"];
|
|
4472
4472
|
function _c(e, t, n, s, o, i) {
|
|
4473
|
-
return W(),
|
|
4473
|
+
return W(), z(
|
|
4474
4474
|
"div",
|
|
4475
4475
|
{
|
|
4476
|
-
class:
|
|
4476
|
+
class: Me(["opencode-right-toolbar", { collapsed: s.items.length === 0 }])
|
|
4477
4477
|
},
|
|
4478
4478
|
[
|
|
4479
4479
|
t[1] || (t[1] = y(
|
|
@@ -4487,10 +4487,10 @@ function _c(e, t, n, s, o, i) {
|
|
|
4487
4487
|
/* CACHED */
|
|
4488
4488
|
)),
|
|
4489
4489
|
y("div", dc, [
|
|
4490
|
-
(W(!0),
|
|
4491
|
-
|
|
4490
|
+
(W(!0), z(
|
|
4491
|
+
fe,
|
|
4492
4492
|
null,
|
|
4493
|
-
bs(s.items, (l, r) => (W(),
|
|
4493
|
+
bs(s.items, (l, r) => (W(), z("div", {
|
|
4494
4494
|
key: l.key,
|
|
4495
4495
|
class: "opencode-selected-node",
|
|
4496
4496
|
role: "listitem",
|
|
@@ -4523,13 +4523,13 @@ function _c(e, t, n, s, o, i) {
|
|
|
4523
4523
|
/* KEYED_FRAGMENT */
|
|
4524
4524
|
))
|
|
4525
4525
|
]),
|
|
4526
|
-
s.showClearAll && s.items.length > 0 ? (W(),
|
|
4526
|
+
s.showClearAll && s.items.length > 0 ? (W(), z("button", {
|
|
4527
4527
|
key: 0,
|
|
4528
4528
|
class: "opencode-clear-all-btn",
|
|
4529
4529
|
type: "button",
|
|
4530
4530
|
"aria-label": "清空所有已选节点",
|
|
4531
4531
|
onClick: t[0] || (t[0] = (...l) => s.handleClearSelectedNodes && s.handleClearSelectedNodes(...l))
|
|
4532
|
-
}, " 一键清空 ")) :
|
|
4532
|
+
}, " 一键清空 ")) : qe("v-if", !0)
|
|
4533
4533
|
],
|
|
4534
4534
|
2
|
|
4535
4535
|
/* CLASS */
|
|
@@ -4558,17 +4558,17 @@ const Ji = /* @__PURE__ */ tt({
|
|
|
4558
4558
|
d.value = !1;
|
|
4559
4559
|
}, 200);
|
|
4560
4560
|
});
|
|
4561
|
-
const _ =
|
|
4561
|
+
const _ = Y(() => !!(d.value || i.value));
|
|
4562
4562
|
function x(D) {
|
|
4563
|
-
var
|
|
4564
|
-
return !c?.value || !D ? !1 : (C = (
|
|
4563
|
+
var L, C;
|
|
4564
|
+
return !c?.value || !D ? !1 : (C = (L = c.value[D]) == null ? void 0 : L.thinking) != null ? C : !1;
|
|
4565
4565
|
}
|
|
4566
|
-
const
|
|
4566
|
+
const S = { collapsed: n, sessions: s, loadingSessionList: o, showSessionListSkeleton: i, handleCreateSession: l, handleSelectSession: r, handleDeleteSession: a, sessionKey: u, sessionStates: c, isAnimating: d, get animTimer() {
|
|
4567
4567
|
return p;
|
|
4568
4568
|
}, set animTimer(D) {
|
|
4569
4569
|
p = D;
|
|
4570
4570
|
}, showSkeleton: _, isSessionThinking: x };
|
|
4571
|
-
return Object.defineProperty(
|
|
4571
|
+
return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
|
|
4572
4572
|
}
|
|
4573
4573
|
}), bc = {
|
|
4574
4574
|
key: 0,
|
|
@@ -4580,26 +4580,26 @@ const Ji = /* @__PURE__ */ tt({
|
|
|
4580
4580
|
class: "opencode-session-list-content",
|
|
4581
4581
|
role: "listbox",
|
|
4582
4582
|
"aria-labelledby": "opencode-session-list-title"
|
|
4583
|
-
},
|
|
4583
|
+
}, Tc = {
|
|
4584
4584
|
key: 0,
|
|
4585
4585
|
class: "opencode-session-list-loading-overlay"
|
|
4586
|
-
},
|
|
4586
|
+
}, Ec = ["aria-selected", "onClick"], Cc = { class: "opencode-session-header" }, xc = { class: "opencode-session-title" }, Ac = {
|
|
4587
4587
|
key: 0,
|
|
4588
4588
|
class: "opencode-thinking-loading"
|
|
4589
4589
|
}, Oc = ["aria-label", "onClick"], Ic = { class: "opencode-session-meta" };
|
|
4590
4590
|
function Mc(e, t, n, s, o, i) {
|
|
4591
|
-
return W(),
|
|
4591
|
+
return W(), z(
|
|
4592
4592
|
"div",
|
|
4593
4593
|
{
|
|
4594
|
-
class:
|
|
4594
|
+
class: Me(["opencode-session-list", { collapsed: s.collapsed }])
|
|
4595
4595
|
},
|
|
4596
4596
|
[
|
|
4597
|
-
|
|
4598
|
-
s.showSkeleton ? (W(),
|
|
4599
|
-
|
|
4597
|
+
qe(" Header "),
|
|
4598
|
+
s.showSkeleton ? (W(), z(
|
|
4599
|
+
fe,
|
|
4600
4600
|
{ key: 1 },
|
|
4601
4601
|
[
|
|
4602
|
-
|
|
4602
|
+
qe(" Header Skeleton "),
|
|
4603
4603
|
t[2] || (t[2] = y(
|
|
4604
4604
|
"div",
|
|
4605
4605
|
{ class: "opencode-session-header-skeleton visible" },
|
|
@@ -4613,7 +4613,7 @@ function Mc(e, t, n, s, o, i) {
|
|
|
4613
4613
|
],
|
|
4614
4614
|
2112
|
|
4615
4615
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
4616
|
-
)) : (W(),
|
|
4616
|
+
)) : (W(), z("div", bc, [
|
|
4617
4617
|
t[1] || (t[1] = y(
|
|
4618
4618
|
"span",
|
|
4619
4619
|
{ id: "opencode-session-list-title" },
|
|
@@ -4629,10 +4629,10 @@ function Mc(e, t, n, s, o, i) {
|
|
|
4629
4629
|
onClick: t[0] || (t[0] = (...l) => s.handleCreateSession && s.handleCreateSession(...l))
|
|
4630
4630
|
}, " + ")
|
|
4631
4631
|
])),
|
|
4632
|
-
|
|
4633
|
-
s.showSkeleton ? (W(),
|
|
4634
|
-
(W(),
|
|
4635
|
-
|
|
4632
|
+
qe(" Content Skeleton "),
|
|
4633
|
+
s.showSkeleton ? (W(), z("div", Sc, [
|
|
4634
|
+
(W(), z(
|
|
4635
|
+
fe,
|
|
4636
4636
|
null,
|
|
4637
4637
|
bs(5, (l) => y("div", {
|
|
4638
4638
|
key: `skeleton-${l}`,
|
|
@@ -4656,13 +4656,13 @@ function Mc(e, t, n, s, o, i) {
|
|
|
4656
4656
|
64
|
|
4657
4657
|
/* STABLE_FRAGMENT */
|
|
4658
4658
|
))
|
|
4659
|
-
])) : (W(),
|
|
4660
|
-
|
|
4659
|
+
])) : (W(), z(
|
|
4660
|
+
fe,
|
|
4661
4661
|
{ key: 3 },
|
|
4662
4662
|
[
|
|
4663
|
-
|
|
4663
|
+
qe(" Content "),
|
|
4664
4664
|
y("div", wc, [
|
|
4665
|
-
s.loadingSessionList ? (W(),
|
|
4665
|
+
s.loadingSessionList ? (W(), z("div", Tc, [...t[4] || (t[4] = [
|
|
4666
4666
|
y(
|
|
4667
4667
|
"div",
|
|
4668
4668
|
{ class: "opencode-loading-spinner small" },
|
|
@@ -4670,20 +4670,20 @@ function Mc(e, t, n, s, o, i) {
|
|
|
4670
4670
|
-1
|
|
4671
4671
|
/* CACHED */
|
|
4672
4672
|
)
|
|
4673
|
-
])])) :
|
|
4674
|
-
s.sessions.length > 0 ? (W(!0),
|
|
4675
|
-
|
|
4673
|
+
])])) : qe("v-if", !0),
|
|
4674
|
+
s.sessions.length > 0 ? (W(!0), z(
|
|
4675
|
+
fe,
|
|
4676
4676
|
{ key: 1 },
|
|
4677
|
-
bs(s.sessions, (l) => (W(),
|
|
4677
|
+
bs(s.sessions, (l) => (W(), z("div", {
|
|
4678
4678
|
key: l[s.sessionKey],
|
|
4679
|
-
class:
|
|
4679
|
+
class: Me(["opencode-session-item", { active: l.active, thinking: s.isSessionThinking(l.id) }]),
|
|
4680
4680
|
role: "option",
|
|
4681
4681
|
"aria-selected": l.active,
|
|
4682
4682
|
onClick: (r) => s.handleSelectSession(l)
|
|
4683
4683
|
}, [
|
|
4684
4684
|
y("div", Cc, [
|
|
4685
4685
|
y("div", xc, [
|
|
4686
|
-
s.isSessionThinking(l.id) ? (W(),
|
|
4686
|
+
s.isSessionThinking(l.id) ? (W(), z("span", Ac)) : qe("v-if", !0),
|
|
4687
4687
|
Ws(
|
|
4688
4688
|
" " + we(l.title),
|
|
4689
4689
|
1
|
|
@@ -4704,14 +4704,14 @@ function Mc(e, t, n, s, o, i) {
|
|
|
4704
4704
|
1
|
|
4705
4705
|
/* TEXT */
|
|
4706
4706
|
)
|
|
4707
|
-
], 10,
|
|
4707
|
+
], 10, Ec))),
|
|
4708
4708
|
128
|
|
4709
4709
|
/* KEYED_FRAGMENT */
|
|
4710
|
-
)) : (W(),
|
|
4711
|
-
|
|
4710
|
+
)) : (W(), z(
|
|
4711
|
+
fe,
|
|
4712
4712
|
{ key: 2 },
|
|
4713
4713
|
[
|
|
4714
|
-
|
|
4714
|
+
qe(" Empty State "),
|
|
4715
4715
|
he(e.$slots, "empty")
|
|
4716
4716
|
],
|
|
4717
4717
|
64
|
|
@@ -4754,52 +4754,57 @@ const Zi = /* @__PURE__ */ tt($c(Fc({}, {
|
|
|
4754
4754
|
y: 0,
|
|
4755
4755
|
width: 0,
|
|
4756
4756
|
height: 0
|
|
4757
|
-
}), r = (
|
|
4757
|
+
}), r = (P) => P !== null && typeof P == "object", a = Y(
|
|
4758
4758
|
() => r(s.gap) ? s.gap.x : s.gap
|
|
4759
|
-
), u =
|
|
4759
|
+
), u = Y(
|
|
4760
4760
|
() => r(s.gap) ? s.gap.y : s.gap
|
|
4761
|
-
), c = /* @__PURE__ */ F(typeof window < "u" ? window.innerWidth : 0), d = /* @__PURE__ */ F(typeof window < "u" ? window.innerHeight : 0), p =
|
|
4761
|
+
), c = /* @__PURE__ */ F(typeof window < "u" ? window.innerWidth : 0), d = /* @__PURE__ */ F(typeof window < "u" ? window.innerHeight : 0), p = Y(() => ({
|
|
4762
4762
|
top: u.value,
|
|
4763
4763
|
right: c.value - l.value.width - a.value,
|
|
4764
4764
|
bottom: d.value - l.value.height - u.value,
|
|
4765
4765
|
left: a.value
|
|
4766
|
-
})), _ = (
|
|
4767
|
-
(
|
|
4766
|
+
})), _ = (P, G) => P.reduce(
|
|
4767
|
+
(ae, K) => Math.abs(ae - G) < Math.abs(K - G) ? ae : K
|
|
4768
4768
|
), x = () => {
|
|
4769
|
-
if (s.magnetic === "x")
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4769
|
+
if (s.magnetic === "x")
|
|
4770
|
+
if (L.value === "left")
|
|
4771
|
+
l.value.x = p.value.left;
|
|
4772
|
+
else if (L.value === "right")
|
|
4773
|
+
l.value.x = p.value.right;
|
|
4774
|
+
else {
|
|
4775
|
+
const P = _(
|
|
4776
|
+
[p.value.left, p.value.right],
|
|
4777
|
+
l.value.x
|
|
4778
|
+
);
|
|
4779
|
+
l.value.x = P, L.value = P === p.value.left ? "left" : "right";
|
|
4780
|
+
}
|
|
4776
4781
|
if (s.magnetic === "y") {
|
|
4777
|
-
const
|
|
4782
|
+
const P = _(
|
|
4778
4783
|
[p.value.top, p.value.bottom],
|
|
4779
4784
|
l.value.y
|
|
4780
4785
|
);
|
|
4781
|
-
l.value.y =
|
|
4786
|
+
l.value.y = P;
|
|
4782
4787
|
}
|
|
4783
|
-
},
|
|
4784
|
-
const
|
|
4785
|
-
return
|
|
4786
|
-
}),
|
|
4788
|
+
}, S = /* @__PURE__ */ F(!1), D = /* @__PURE__ */ F(!1), L = /* @__PURE__ */ F(null), C = Y(() => {
|
|
4789
|
+
const P = {}, G = `${l.value.x}px`, ae = `${l.value.y}px`;
|
|
4790
|
+
return P.transform = `translate3d(${G}, ${ae}, 0)`, S.value || !D.value ? P.transition = "none" : P.transition = "transform 0.3s ease", P;
|
|
4791
|
+
}), $ = () => {
|
|
4787
4792
|
if (!i.value || typeof window > "u") return;
|
|
4788
|
-
const
|
|
4789
|
-
let
|
|
4790
|
-
const
|
|
4791
|
-
|
|
4792
|
-
const
|
|
4793
|
+
const P = i.value.getBoundingClientRect(), { offset: G } = s;
|
|
4794
|
+
let ae = G ? G.x : c.value - P.width - a.value, K = G ? G.y : d.value - P.height - u.value;
|
|
4795
|
+
const xe = c.value - P.width - a.value, Ae = d.value - P.height - u.value;
|
|
4796
|
+
ae < a.value && (ae = a.value), ae > xe && (ae = xe), K < u.value && (K = u.value), K > Ae && (K = Ae);
|
|
4797
|
+
const ze = l.value.x, Ve = l.value.y;
|
|
4793
4798
|
if (l.value = {
|
|
4794
|
-
x:
|
|
4795
|
-
y:
|
|
4796
|
-
width:
|
|
4797
|
-
height:
|
|
4798
|
-
}, !
|
|
4799
|
-
const
|
|
4800
|
-
o("update:offset",
|
|
4799
|
+
x: ae,
|
|
4800
|
+
y: K,
|
|
4801
|
+
width: P.width,
|
|
4802
|
+
height: P.height
|
|
4803
|
+
}, !S.value && (s.magnetic === "x" && L.value ? L.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : x(), l.value.x !== ze || l.value.y !== Ve)) {
|
|
4804
|
+
const De = { x: l.value.x, y: l.value.y };
|
|
4805
|
+
o("update:offset", De), o("offset-change", De);
|
|
4801
4806
|
}
|
|
4802
|
-
},
|
|
4807
|
+
}, b = {
|
|
4803
4808
|
startX: /* @__PURE__ */ F(0),
|
|
4804
4809
|
startY: /* @__PURE__ */ F(0),
|
|
4805
4810
|
deltaX: /* @__PURE__ */ F(0),
|
|
@@ -4807,72 +4812,76 @@ const Zi = /* @__PURE__ */ tt($c(Fc({}, {
|
|
|
4807
4812
|
offsetX: /* @__PURE__ */ F(0),
|
|
4808
4813
|
offsetY: /* @__PURE__ */ F(0),
|
|
4809
4814
|
isTap: /* @__PURE__ */ F(!0),
|
|
4810
|
-
start(
|
|
4811
|
-
this.startX.value = "touches" in
|
|
4815
|
+
start(P) {
|
|
4816
|
+
this.startX.value = "touches" in P ? P.touches[0].clientX : P.clientX, this.startY.value = "touches" in P ? P.touches[0].clientY : P.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
|
|
4812
4817
|
},
|
|
4813
|
-
move(
|
|
4814
|
-
const
|
|
4815
|
-
this.deltaX.value =
|
|
4816
|
-
const
|
|
4817
|
-
this.isTap.value && (this.offsetX.value >
|
|
4818
|
+
move(P) {
|
|
4819
|
+
const G = "touches" in P ? P.touches[0].clientX : P.clientX, ae = "touches" in P ? P.touches[0].clientY : P.clientY;
|
|
4820
|
+
this.deltaX.value = G - this.startX.value, this.deltaY.value = ae - this.startY.value, this.offsetX.value = Math.abs(this.deltaX.value), this.offsetY.value = Math.abs(this.deltaY.value);
|
|
4821
|
+
const K = 5;
|
|
4822
|
+
this.isTap.value && (this.offsetX.value > K || this.offsetY.value > K) && (this.isTap.value = !1);
|
|
4818
4823
|
}
|
|
4819
4824
|
};
|
|
4820
|
-
let
|
|
4821
|
-
const
|
|
4822
|
-
|
|
4823
|
-
},
|
|
4824
|
-
|
|
4825
|
-
const
|
|
4826
|
-
if (
|
|
4825
|
+
let B = 0, k = 0;
|
|
4826
|
+
const N = (P) => {
|
|
4827
|
+
b.start(P), S.value = !0, B = l.value.x, k = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in P || (window.addEventListener("mousemove", R, { passive: !1 }), window.addEventListener("mouseup", Q));
|
|
4828
|
+
}, R = (P) => {
|
|
4829
|
+
P.cancelable && P.preventDefault();
|
|
4830
|
+
const G = b.isTap.value;
|
|
4831
|
+
if (b.move(P), G && !b.isTap.value && o("drag-start"), s.axis !== "lock" && !b.isTap.value) {
|
|
4827
4832
|
if (s.axis === "x" || s.axis === "xy") {
|
|
4828
|
-
let
|
|
4829
|
-
|
|
4833
|
+
let K = B + b.deltaX.value;
|
|
4834
|
+
K < p.value.left && (K = p.value.left), K > p.value.right && (K = p.value.right), l.value.x = K;
|
|
4830
4835
|
}
|
|
4831
4836
|
if (s.axis === "y" || s.axis === "xy") {
|
|
4832
|
-
let
|
|
4833
|
-
|
|
4837
|
+
let K = k + b.deltaY.value;
|
|
4838
|
+
K < p.value.top && (K = p.value.top), K > p.value.bottom && (K = p.value.bottom), l.value.y = K;
|
|
4834
4839
|
}
|
|
4835
|
-
const
|
|
4836
|
-
o("update:offset",
|
|
4840
|
+
const ae = { x: l.value.x, y: l.value.y };
|
|
4841
|
+
o("update:offset", ae);
|
|
4837
4842
|
}
|
|
4838
|
-
},
|
|
4839
|
-
|
|
4840
|
-
if (x
|
|
4843
|
+
}, Q = (P) => {
|
|
4844
|
+
S.value = !1, document.body.classList.remove("floating-bubble-dragging"), P && !("touches" in P) && P.type === "mouseup" && (window.removeEventListener("mousemove", R), window.removeEventListener("mouseup", Q)), requestAnimationFrame(() => {
|
|
4845
|
+
if (s.magnetic === "x" && !b.isTap.value) {
|
|
4846
|
+
const G = l.value.x + l.value.width / 2, ae = c.value / 2;
|
|
4847
|
+
L.value = G < ae ? "left" : "right";
|
|
4848
|
+
}
|
|
4849
|
+
if (x(), !b.isTap.value) {
|
|
4841
4850
|
o("drag-end");
|
|
4842
|
-
const
|
|
4843
|
-
o("update:offset",
|
|
4851
|
+
const G = { x: l.value.x, y: l.value.y };
|
|
4852
|
+
o("update:offset", G), (B !== G.x || k !== G.y) && o("offset-change", G);
|
|
4844
4853
|
}
|
|
4845
4854
|
});
|
|
4846
|
-
},
|
|
4847
|
-
|
|
4848
|
-
},
|
|
4855
|
+
}, X = (P) => {
|
|
4856
|
+
b.isTap.value ? o("click", P) : P.stopPropagation();
|
|
4857
|
+
}, ue = () => {
|
|
4849
4858
|
typeof window < "u" && (c.value = window.innerWidth, d.value = window.innerHeight);
|
|
4850
4859
|
};
|
|
4851
4860
|
nt(() => {
|
|
4852
|
-
|
|
4861
|
+
$(), requestAnimationFrame(() => {
|
|
4853
4862
|
D.value = !0;
|
|
4854
|
-
}), typeof window < "u" && window.addEventListener("resize",
|
|
4863
|
+
}), typeof window < "u" && window.addEventListener("resize", ue), i.value && i.value.addEventListener("touchmove", R, {
|
|
4855
4864
|
passive: !1
|
|
4856
4865
|
});
|
|
4857
4866
|
}), wt(() => {
|
|
4858
|
-
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize",
|
|
4867
|
+
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", ue), window.removeEventListener("mousemove", R), window.removeEventListener("mouseup", Q)), i.value && i.value.removeEventListener("touchmove", R);
|
|
4859
4868
|
}), ft(
|
|
4860
4869
|
[c, d, a, u, () => s.offset],
|
|
4861
|
-
|
|
4870
|
+
$,
|
|
4862
4871
|
{ deep: !0 }
|
|
4863
4872
|
), t({
|
|
4864
|
-
offset:
|
|
4873
|
+
offset: Y(() => ({ x: l.value.x, y: l.value.y }))
|
|
4865
4874
|
});
|
|
4866
|
-
const
|
|
4867
|
-
return
|
|
4868
|
-
}, set prevX(
|
|
4869
|
-
|
|
4875
|
+
const pe = { props: s, emit: o, rootRef: i, state: l, isObject: r, gapX: a, gapY: u, windowWidth: c, windowHeight: d, boundary: p, closest: _, applyMagnetic: x, dragging: S, initialized: D, magneticSide: L, rootStyle: C, updateState: $, touch: b, get prevX() {
|
|
4876
|
+
return B;
|
|
4877
|
+
}, set prevX(P) {
|
|
4878
|
+
B = P;
|
|
4870
4879
|
}, get prevY() {
|
|
4871
|
-
return
|
|
4872
|
-
}, set prevY(
|
|
4873
|
-
|
|
4874
|
-
}, onTouchStart:
|
|
4875
|
-
return Object.defineProperty(
|
|
4880
|
+
return k;
|
|
4881
|
+
}, set prevY(P) {
|
|
4882
|
+
k = P;
|
|
4883
|
+
}, onTouchStart: N, onTouchMove: R, onTouchEnd: Q, onClick: X, handleResize: ue };
|
|
4884
|
+
return Object.defineProperty(pe, "__isScriptSetup", { enumerable: !1, value: !0 }), pe;
|
|
4876
4885
|
}
|
|
4877
4886
|
}));
|
|
4878
4887
|
function Bc(e, t, n, s, o, i) {
|
|
@@ -4912,11 +4921,11 @@ const Qi = /* @__PURE__ */ tt({
|
|
|
4912
4921
|
handleToggle: a,
|
|
4913
4922
|
bubbleOffset: u,
|
|
4914
4923
|
handleBubbleOffsetChange: c
|
|
4915
|
-
} = Xt(), d = /* @__PURE__ */ F(u.value), p = n, _ = (
|
|
4916
|
-
d.value =
|
|
4924
|
+
} = Xt(), d = /* @__PURE__ */ F(u.value), p = n, _ = (S) => {
|
|
4925
|
+
d.value = S, c(S);
|
|
4917
4926
|
};
|
|
4918
|
-
ft(u, (
|
|
4919
|
-
d.value =
|
|
4927
|
+
ft(u, (S) => {
|
|
4928
|
+
d.value = S;
|
|
4920
4929
|
}), t({
|
|
4921
4930
|
offset: d
|
|
4922
4931
|
});
|
|
@@ -4939,7 +4948,7 @@ function Vc(e, t, n, s, o, i) {
|
|
|
4939
4948
|
}, {
|
|
4940
4949
|
default: Fe(() => [
|
|
4941
4950
|
y("button", {
|
|
4942
|
-
class:
|
|
4951
|
+
class: Me(["opencode-button", { active: s.active, thinking: s.thinking, "opencode-theme-dark": s.resolvedTheme === "dark" }]),
|
|
4943
4952
|
type: "button",
|
|
4944
4953
|
"aria-expanded": s.open,
|
|
4945
4954
|
"aria-label": "打开 AI 助手",
|
|
@@ -5036,7 +5045,7 @@ function zc(e) {
|
|
|
5036
5045
|
return `${(n = e.innerText) != null && n.trim() ? `${Ui(e.innerText.trim(), 30)} · ` : ""}${s}${o}`;
|
|
5037
5046
|
}
|
|
5038
5047
|
function Yc(e) {
|
|
5039
|
-
const t =
|
|
5048
|
+
const t = Y(() => e.selectMode.value), n = Y(
|
|
5040
5049
|
() => (e.selectedElements.value || []).map(
|
|
5041
5050
|
(a, u) => ({
|
|
5042
5051
|
key: Uc(a, u),
|
|
@@ -5046,7 +5055,7 @@ function Yc(e) {
|
|
|
5046
5055
|
element: a
|
|
5047
5056
|
})
|
|
5048
5057
|
)
|
|
5049
|
-
), s =
|
|
5058
|
+
), s = Y(() => n.value.length > 0);
|
|
5050
5059
|
function o() {
|
|
5051
5060
|
e.onToggleSelectMode(!e.selectMode.value);
|
|
5052
5061
|
}
|
|
@@ -5080,8 +5089,8 @@ function Yc(e) {
|
|
|
5080
5089
|
_ = D.getPropertyValue("--oc-primary").trim() || _, x = D.getPropertyValue("--oc-primary-bg").trim() || x;
|
|
5081
5090
|
}
|
|
5082
5091
|
d.style.border = `2px solid ${_}`, d.style.background = x;
|
|
5083
|
-
const
|
|
5084
|
-
d.style.top = `${
|
|
5092
|
+
const S = c.getBoundingClientRect();
|
|
5093
|
+
d.style.top = `${S.top + window.scrollY}px`, d.style.left = `${S.left + window.scrollX}px`, d.style.width = `${S.width}px`, d.style.height = `${S.height}px`, document.body.appendChild(d), setTimeout(() => {
|
|
5085
5094
|
d.remove();
|
|
5086
5095
|
}, 2e3);
|
|
5087
5096
|
}
|
|
@@ -5132,7 +5141,7 @@ function Gc(e) {
|
|
|
5132
5141
|
return Number.isNaN(t.getTime()) ? "" : `${t.toLocaleDateString()} ${t.toLocaleTimeString()}`;
|
|
5133
5142
|
}
|
|
5134
5143
|
function Jc(e) {
|
|
5135
|
-
const t =
|
|
5144
|
+
const t = Y(
|
|
5136
5145
|
() => (e.sessions.value || []).map((i) => ({
|
|
5137
5146
|
key: i.id,
|
|
5138
5147
|
id: i.id,
|
|
@@ -5168,22 +5177,22 @@ function Zc(e) {
|
|
|
5168
5177
|
}
|
|
5169
5178
|
let s = null, o = null;
|
|
5170
5179
|
nt(() => {
|
|
5171
|
-
typeof window > "u" || (t.value = n(), s = window.matchMedia("(prefers-color-scheme: dark)"), o = (
|
|
5172
|
-
t.value =
|
|
5180
|
+
typeof window > "u" || (t.value = n(), s = window.matchMedia("(prefers-color-scheme: dark)"), o = (S) => {
|
|
5181
|
+
t.value = S.matches ? "dark" : "light";
|
|
5173
5182
|
}, s.addEventListener("change", o));
|
|
5174
5183
|
}), wt(() => {
|
|
5175
5184
|
s && o && s.removeEventListener("change", o);
|
|
5176
5185
|
});
|
|
5177
|
-
const i =
|
|
5186
|
+
const i = Y(() => e.theme.value === "auto" ? t.value : e.theme.value), l = Y(() => [
|
|
5178
5187
|
"opencode-widget",
|
|
5179
5188
|
`opencode-theme-${i.value}`
|
|
5180
|
-
]), r =
|
|
5189
|
+
]), r = Y(() => !!(e.open.value || e.selectMode.value)), a = Y(() => e.iframeSrc.value || "about:blank"), u = Y(
|
|
5181
5190
|
() => e.sessionListCollapsed.value ? "展开会话列表" : "折叠会话列表"
|
|
5182
5191
|
);
|
|
5183
5192
|
function c() {
|
|
5184
|
-
var
|
|
5193
|
+
var S;
|
|
5185
5194
|
if (e.selectMode.value) {
|
|
5186
|
-
(
|
|
5195
|
+
(S = e.onToggleSelectMode) == null || S.call(e, !1);
|
|
5187
5196
|
return;
|
|
5188
5197
|
}
|
|
5189
5198
|
const D = !e.open.value;
|
|
@@ -5199,9 +5208,9 @@ function Zc(e) {
|
|
|
5199
5208
|
e.onEmptyAction();
|
|
5200
5209
|
}
|
|
5201
5210
|
function x() {
|
|
5202
|
-
var
|
|
5203
|
-
const
|
|
5204
|
-
(
|
|
5211
|
+
var S;
|
|
5212
|
+
const L = (fs.indexOf(e.theme.value) + 1) % fs.length, C = fs[L];
|
|
5213
|
+
(S = e.onToggleTheme) == null || S.call(e, C);
|
|
5205
5214
|
}
|
|
5206
5215
|
return {
|
|
5207
5216
|
buttonActive: r,
|
|
@@ -5223,7 +5232,7 @@ const _n = {
|
|
|
5223
5232
|
NONE: "",
|
|
5224
5233
|
DESCENDANT: " ",
|
|
5225
5234
|
CHILD: " > "
|
|
5226
|
-
},
|
|
5235
|
+
}, ge = {
|
|
5227
5236
|
id: "id",
|
|
5228
5237
|
class: "class",
|
|
5229
5238
|
tag: "tag",
|
|
@@ -5240,10 +5249,10 @@ function $n(e = "unknown problem", ...t) {
|
|
|
5240
5249
|
}
|
|
5241
5250
|
const tu = {
|
|
5242
5251
|
selectors: [
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5252
|
+
ge.id,
|
|
5253
|
+
ge.class,
|
|
5254
|
+
ge.tag,
|
|
5255
|
+
ge.attribute
|
|
5247
5256
|
],
|
|
5248
5257
|
// if set to true, always include tag name
|
|
5249
5258
|
includeTag: !1,
|
|
@@ -5261,7 +5270,7 @@ function sn(e) {
|
|
|
5261
5270
|
return !!e;
|
|
5262
5271
|
}
|
|
5263
5272
|
function nu(e) {
|
|
5264
|
-
return Array.isArray(e) ? e.filter((t) => Qc(
|
|
5273
|
+
return Array.isArray(e) ? e.filter((t) => Qc(ge, t)) : [];
|
|
5265
5274
|
}
|
|
5266
5275
|
function tl(e) {
|
|
5267
5276
|
return e instanceof RegExp;
|
|
@@ -5364,12 +5373,12 @@ const ol = ", ", cu = new RegExp([
|
|
|
5364
5373
|
"^$"
|
|
5365
5374
|
// empty or not set
|
|
5366
5375
|
].join("|")), il = [
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5376
|
+
ge.nthoftype,
|
|
5377
|
+
ge.tag,
|
|
5378
|
+
ge.id,
|
|
5379
|
+
ge.class,
|
|
5380
|
+
ge.attribute,
|
|
5381
|
+
ge.nthchild
|
|
5373
5382
|
], fu = Bn([
|
|
5374
5383
|
"class",
|
|
5375
5384
|
"id",
|
|
@@ -5474,7 +5483,7 @@ function dl(e, t) {
|
|
|
5474
5483
|
}
|
|
5475
5484
|
return [];
|
|
5476
5485
|
}
|
|
5477
|
-
function
|
|
5486
|
+
function Tu(e, t) {
|
|
5478
5487
|
return Sn(e.map((n) => dl(n)));
|
|
5479
5488
|
}
|
|
5480
5489
|
function* hl(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
@@ -5482,7 +5491,7 @@ function* hl(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
|
5482
5491
|
for (; s.length <= e.length && n < t; )
|
|
5483
5492
|
n += 1, yield s.map((i) => e[i]), s = Cu(s, e.length - 1);
|
|
5484
5493
|
}
|
|
5485
|
-
function
|
|
5494
|
+
function Eu(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
5486
5495
|
return Array.from(hl(e, { maxResults: t }));
|
|
5487
5496
|
}
|
|
5488
5497
|
function Cu(e = [], t = 0) {
|
|
@@ -5539,7 +5548,7 @@ const Mu = {
|
|
|
5539
5548
|
class: bu,
|
|
5540
5549
|
attribute: mu,
|
|
5541
5550
|
nthchild: wu,
|
|
5542
|
-
nthoftype:
|
|
5551
|
+
nthoftype: Tu
|
|
5543
5552
|
}, Du = {
|
|
5544
5553
|
tag: ul,
|
|
5545
5554
|
id: al,
|
|
@@ -5581,10 +5590,10 @@ function $u(e) {
|
|
|
5581
5590
|
return n && !s.includes("tag") && s.push("tag"), s;
|
|
5582
5591
|
}
|
|
5583
5592
|
function Bu(e) {
|
|
5584
|
-
return e.includes(
|
|
5593
|
+
return e.includes(ge.tag) || e.includes(ge.nthoftype) ? [...e] : [...e, ge.tag];
|
|
5585
5594
|
}
|
|
5586
5595
|
function ju(e) {
|
|
5587
|
-
const { selectors: t, combineBetweenSelectors: n, includeTag: s, maxCandidates: o } = e, i = n ?
|
|
5596
|
+
const { selectors: t, combineBetweenSelectors: n, includeTag: s, maxCandidates: o } = e, i = n ? Eu(t, { maxResults: o }) : t.map((l) => [l]);
|
|
5588
5597
|
return s ? i.map(Bu) : i;
|
|
5589
5598
|
}
|
|
5590
5599
|
function* Hu(e, t) {
|
|
@@ -5605,7 +5614,7 @@ function Wu(e, t) {
|
|
|
5605
5614
|
}
|
|
5606
5615
|
function Ku(e = {}) {
|
|
5607
5616
|
const t = [...il];
|
|
5608
|
-
return e[
|
|
5617
|
+
return e[ge.tag] && e[ge.nthoftype] && t.splice(t.indexOf(ge.tag), 1), t.map((n) => Wu(n, e)).join("");
|
|
5609
5618
|
}
|
|
5610
5619
|
function Uu(e, t) {
|
|
5611
5620
|
return [
|
|
@@ -5678,7 +5687,7 @@ function Zu(e, t, n = _n.NONE) {
|
|
|
5678
5687
|
}
|
|
5679
5688
|
function Qu({ selectors: e, operator: t }) {
|
|
5680
5689
|
let n = [...il];
|
|
5681
|
-
e[
|
|
5690
|
+
e[ge.tag] && e[ge.nthoftype] && (n = n.filter((o) => o !== ge.tag));
|
|
5682
5691
|
let s = "";
|
|
5683
5692
|
return n.forEach((o) => {
|
|
5684
5693
|
var i;
|
|
@@ -5692,7 +5701,7 @@ function ef(e, t) {
|
|
|
5692
5701
|
var a;
|
|
5693
5702
|
const u = Zu(
|
|
5694
5703
|
l,
|
|
5695
|
-
[
|
|
5704
|
+
[ge.nthchild],
|
|
5696
5705
|
// do not use child combinator for the first element in ShadowRoot
|
|
5697
5706
|
s && r === 0 ? _n.NONE : _n.CHILD
|
|
5698
5707
|
);
|
|
@@ -5893,57 +5902,57 @@ function uf(e) {
|
|
|
5893
5902
|
}), s = /* @__PURE__ */ F(!1), o = /* @__PURE__ */ F({ top: "0px", left: "0px" }), i = /* @__PURE__ */ F({ description: "", fileInfo: "" }), l = 500;
|
|
5894
5903
|
let r = null, a = null, u = { file: null, line: null, column: null }, c = "#3b82f6", d = "rgba(59, 130, 246, 0.1)", p = "", _ = "";
|
|
5895
5904
|
function x(C) {
|
|
5896
|
-
var
|
|
5905
|
+
var $, b;
|
|
5897
5906
|
if (!e.selectMode.value) return;
|
|
5898
|
-
const
|
|
5899
|
-
|
|
5900
|
-
let
|
|
5907
|
+
const B = window.__VUE_INSPECTOR__, k = document.querySelector(".opencode-element-highlight"), N = document.querySelector(".opencode-element-tooltip");
|
|
5908
|
+
k && (k.style.pointerEvents = "none"), N && (N.style.pointerEvents = "none");
|
|
5909
|
+
let R = null, Q, X = { file: null, line: null, column: null };
|
|
5901
5910
|
try {
|
|
5902
|
-
if (
|
|
5903
|
-
const
|
|
5904
|
-
|
|
5905
|
-
const
|
|
5906
|
-
|
|
5907
|
-
file:
|
|
5908
|
-
line: (
|
|
5909
|
-
column: (
|
|
5910
|
-
} :
|
|
5911
|
+
if (B) {
|
|
5912
|
+
const ue = B.getTargetNode(C);
|
|
5913
|
+
Q = ue.targetNode;
|
|
5914
|
+
const pe = ue.params;
|
|
5915
|
+
Q && (R = xn(C.clientX, C.clientY, Q) || Q, pe && pe.file ? X = {
|
|
5916
|
+
file: pe.file,
|
|
5917
|
+
line: ($ = pe.line) != null ? $ : null,
|
|
5918
|
+
column: (b = pe.column) != null ? b : null
|
|
5919
|
+
} : X = No(Q, B));
|
|
5911
5920
|
}
|
|
5912
|
-
|
|
5921
|
+
R || (R = xn(C.clientX, C.clientY, null)), R && !X.file && (X = As(R) || X);
|
|
5913
5922
|
} finally {
|
|
5914
|
-
|
|
5923
|
+
k && (k.style.pointerEvents = ""), N && (N.style.pointerEvents = "");
|
|
5915
5924
|
}
|
|
5916
|
-
if (
|
|
5917
|
-
const
|
|
5918
|
-
if (
|
|
5919
|
-
a =
|
|
5920
|
-
const
|
|
5921
|
-
if (
|
|
5922
|
-
const Ye = getComputedStyle(
|
|
5925
|
+
if (R) {
|
|
5926
|
+
const ue = a !== R;
|
|
5927
|
+
if (ue) {
|
|
5928
|
+
a = R, u = X;
|
|
5929
|
+
const We = document.querySelector(".opencode-widget");
|
|
5930
|
+
if (We) {
|
|
5931
|
+
const Ye = getComputedStyle(We);
|
|
5923
5932
|
c = Ye.getPropertyValue("--oc-primary").trim() || c, d = Ye.getPropertyValue("--oc-primary-bg").trim() || d;
|
|
5924
5933
|
}
|
|
5925
|
-
p = Po(
|
|
5926
|
-
} else !u.file &&
|
|
5927
|
-
const
|
|
5928
|
-
let
|
|
5929
|
-
u.line && (
|
|
5930
|
-
const
|
|
5931
|
-
(
|
|
5934
|
+
p = Po(R);
|
|
5935
|
+
} else !u.file && X.file && (u = X);
|
|
5936
|
+
const pe = u.file ? u.file.split("/").pop() : "";
|
|
5937
|
+
let P = "";
|
|
5938
|
+
u.line && (P = `:${u.line}`, u.column && (P += `:${u.column}`));
|
|
5939
|
+
const G = pe ? `${pe}${P}` : "";
|
|
5940
|
+
(ue || _ !== G) && (_ = G, i.value = {
|
|
5932
5941
|
description: p,
|
|
5933
5942
|
fileInfo: _
|
|
5934
5943
|
});
|
|
5935
|
-
const
|
|
5936
|
-
(n.value.top !== xe || n.value.left !==
|
|
5944
|
+
const K = R.getBoundingClientRect(), xe = `${K.top}px`, Ae = `${K.left}px`, ze = `${K.width}px`, Ve = `${K.height}px`;
|
|
5945
|
+
(n.value.top !== xe || n.value.left !== Ae || n.value.width !== ze || n.value.height !== Ve) && (n.value = {
|
|
5937
5946
|
top: xe,
|
|
5938
|
-
left:
|
|
5939
|
-
width:
|
|
5940
|
-
height:
|
|
5947
|
+
left: Ae,
|
|
5948
|
+
width: ze,
|
|
5949
|
+
height: Ve,
|
|
5941
5950
|
border: `2px solid ${c}`,
|
|
5942
5951
|
background: d
|
|
5943
5952
|
});
|
|
5944
|
-
const
|
|
5945
|
-
let Pe =
|
|
5946
|
-
Pe < 10 && (Pe =
|
|
5953
|
+
const De = 50, me = 200;
|
|
5954
|
+
let Pe = K.top - De - 8, Ne = K.left;
|
|
5955
|
+
Pe < 10 && (Pe = K.bottom + 8), Ne + me > window.innerWidth - 10 && (Ne = window.innerWidth - me - 10);
|
|
5947
5956
|
const dt = `${Pe}px`, Re = `${Ne}px`;
|
|
5948
5957
|
(o.value.top !== dt || o.value.left !== Re) && (o.value = {
|
|
5949
5958
|
top: dt,
|
|
@@ -5952,47 +5961,47 @@ function uf(e) {
|
|
|
5952
5961
|
} else
|
|
5953
5962
|
a = null, p = "", _ = "", u = { file: null, line: null, column: null }, t.value && (t.value = !1), s.value && (s.value = !1);
|
|
5954
5963
|
}
|
|
5955
|
-
const
|
|
5964
|
+
const S = sf(x, 16);
|
|
5956
5965
|
function D() {
|
|
5957
5966
|
const C = window.__VUE_INSPECTOR__;
|
|
5958
5967
|
if (!C || C.__opencode_hooked) return;
|
|
5959
|
-
const
|
|
5960
|
-
C.handleClick = function(
|
|
5961
|
-
var
|
|
5968
|
+
const $ = C.handleClick.bind(C);
|
|
5969
|
+
C.handleClick = function(b) {
|
|
5970
|
+
var B, k;
|
|
5962
5971
|
if (e.selectMode.value) {
|
|
5963
|
-
let
|
|
5964
|
-
const { targetNode:
|
|
5965
|
-
if (
|
|
5966
|
-
file:
|
|
5967
|
-
line: (
|
|
5968
|
-
column: (
|
|
5969
|
-
} :
|
|
5970
|
-
const
|
|
5971
|
-
filePath:
|
|
5972
|
-
line:
|
|
5973
|
-
column:
|
|
5974
|
-
innerText: Ui(
|
|
5975
|
-
description:
|
|
5972
|
+
let N = null, R = { file: null, line: null, column: null };
|
|
5973
|
+
const { targetNode: Q, params: X } = C.getTargetNode(b);
|
|
5974
|
+
if (Q && (N = xn(b.clientX, b.clientY, Q) || Q, X && X.file ? R = {
|
|
5975
|
+
file: X.file,
|
|
5976
|
+
line: (B = X.line) != null ? B : null,
|
|
5977
|
+
column: (k = X.column) != null ? k : null
|
|
5978
|
+
} : N && (R = No(N, C))), N || (N = xn(b.clientX, b.clientY, null)), N && !R.file && (R = As(N) || R), N) {
|
|
5979
|
+
const ue = of(N), pe = Po(N), P = {
|
|
5980
|
+
filePath: R.file,
|
|
5981
|
+
line: R.line,
|
|
5982
|
+
column: R.column,
|
|
5983
|
+
innerText: Ui(ue, 200),
|
|
5984
|
+
description: pe
|
|
5976
5985
|
};
|
|
5977
|
-
e.onAddSelectedNode(
|
|
5986
|
+
e.onAddSelectedNode(P);
|
|
5978
5987
|
}
|
|
5979
5988
|
return;
|
|
5980
5989
|
}
|
|
5981
|
-
return
|
|
5990
|
+
return $.call(C, b);
|
|
5982
5991
|
}, C.__opencode_hooked = !0;
|
|
5983
5992
|
}
|
|
5984
|
-
function
|
|
5993
|
+
function L(C) {
|
|
5985
5994
|
C.key === "Escape" && e.selectMode.value && (C.preventDefault(), C.stopPropagation(), e.onExitSelectMode());
|
|
5986
5995
|
}
|
|
5987
5996
|
return ft(e.selectMode, (C) => {
|
|
5988
|
-
const
|
|
5989
|
-
C ? (
|
|
5997
|
+
const $ = window.__VUE_INSPECTOR__;
|
|
5998
|
+
C ? ($ && $.enable(), document.addEventListener("mousemove", S), document.addEventListener("keydown", L, !0)) : ($ && $.disable(), document.removeEventListener("mousemove", S), document.removeEventListener("keydown", L, !0), a = null, p = "", _ = "", u = { file: null, line: null, column: null }, t.value = !1, s.value = !1);
|
|
5990
5999
|
}), nt(() => {
|
|
5991
6000
|
window.__VUE_INSPECTOR__ ? D() : r = window.setInterval(() => {
|
|
5992
6001
|
window.__VUE_INSPECTOR__ && (D(), r && (window.clearInterval(r), r = null));
|
|
5993
6002
|
}, l);
|
|
5994
6003
|
}), wt(() => {
|
|
5995
|
-
r && window.clearInterval(r), document.removeEventListener("mousemove",
|
|
6004
|
+
r && window.clearInterval(r), document.removeEventListener("mousemove", S), document.removeEventListener("keydown", L, !0);
|
|
5996
6005
|
}), {
|
|
5997
6006
|
highlightVisible: t,
|
|
5998
6007
|
highlightStyle: n,
|
|
@@ -6094,53 +6103,53 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6094
6103
|
const s = e, o = n, i = Ir(), l = /* @__PURE__ */ F(""), r = /* @__PURE__ */ F(!1), a = /* @__PURE__ */ F("widget");
|
|
6095
6104
|
let u = null;
|
|
6096
6105
|
const c = (A, be) => {
|
|
6097
|
-
const { duration:
|
|
6106
|
+
const { duration: le = 3e3, mode: ve = "widget" } = be || {};
|
|
6098
6107
|
l.value = A, r.value = !0, a.value = ve, u && clearTimeout(u), u = setTimeout(() => {
|
|
6099
6108
|
r.value = !1;
|
|
6100
|
-
},
|
|
6109
|
+
}, le);
|
|
6101
6110
|
}, d = /* @__PURE__ */ F(!1), p = /* @__PURE__ */ F("");
|
|
6102
6111
|
let _ = null;
|
|
6103
6112
|
const x = (A) => (p.value = A, d.value = !0, new Promise((be) => {
|
|
6104
6113
|
_ = be;
|
|
6105
|
-
})),
|
|
6114
|
+
})), S = () => {
|
|
6106
6115
|
d.value = !1, _ && _(!0);
|
|
6107
6116
|
}, D = () => {
|
|
6108
6117
|
d.value = !1, _ && _(!1);
|
|
6109
|
-
},
|
|
6110
|
-
var
|
|
6111
|
-
(
|
|
6112
|
-
},
|
|
6113
|
-
|
|
6114
|
-
},
|
|
6115
|
-
o("frame-loaded"),
|
|
6118
|
+
}, L = /* @__PURE__ */ F(null), C = /* @__PURE__ */ F(null), $ = (A, be) => {
|
|
6119
|
+
var le;
|
|
6120
|
+
(le = L.value) == null || le.sendMessageToIframe(A, be);
|
|
6121
|
+
}, b = /* @__PURE__ */ F(s.sessionListCollapsed), B = /* @__PURE__ */ F(!1), k = /* @__PURE__ */ F(!0), N = /* @__PURE__ */ F(!0), R = /* @__PURE__ */ F(!1), Q = () => {
|
|
6122
|
+
R.value && ($("prompt-dock-visibility-change", { visible: k.value }), $("minimize-state-change", { minimized: B.value }));
|
|
6123
|
+
}, X = () => {
|
|
6124
|
+
o("frame-loaded"), R.value = !0, Q();
|
|
6116
6125
|
};
|
|
6117
6126
|
t({
|
|
6118
6127
|
showNotification: c,
|
|
6119
6128
|
showConfirmDialog: x,
|
|
6120
|
-
sendMessageToIframe:
|
|
6129
|
+
sendMessageToIframe: $
|
|
6121
6130
|
}), ft(
|
|
6122
6131
|
() => s.sessionListCollapsed,
|
|
6123
6132
|
(A) => {
|
|
6124
|
-
|
|
6133
|
+
b.value = A;
|
|
6125
6134
|
}
|
|
6126
6135
|
);
|
|
6127
6136
|
const {
|
|
6128
|
-
buttonActive:
|
|
6129
|
-
containerClasses:
|
|
6130
|
-
iframeSource:
|
|
6131
|
-
sessionListTitle:
|
|
6132
|
-
resolvedTheme:
|
|
6133
|
-
handleClose:
|
|
6137
|
+
buttonActive: ue,
|
|
6138
|
+
containerClasses: pe,
|
|
6139
|
+
iframeSource: P,
|
|
6140
|
+
sessionListTitle: G,
|
|
6141
|
+
resolvedTheme: ae,
|
|
6142
|
+
handleClose: K,
|
|
6134
6143
|
handleEmptyAction: xe,
|
|
6135
|
-
handleToggle:
|
|
6136
|
-
handleToggleSessionList:
|
|
6137
|
-
handleToggleTheme:
|
|
6144
|
+
handleToggle: Ae,
|
|
6145
|
+
handleToggleSessionList: ze,
|
|
6146
|
+
handleToggleTheme: Ve
|
|
6138
6147
|
} = Zc({
|
|
6139
|
-
theme: /* @__PURE__ */
|
|
6140
|
-
open: /* @__PURE__ */
|
|
6141
|
-
selectMode: /* @__PURE__ */
|
|
6142
|
-
iframeSrc: /* @__PURE__ */
|
|
6143
|
-
sessionListCollapsed:
|
|
6148
|
+
theme: /* @__PURE__ */ te(s, "theme"),
|
|
6149
|
+
open: /* @__PURE__ */ te(s, "open"),
|
|
6150
|
+
selectMode: /* @__PURE__ */ te(s, "selectMode"),
|
|
6151
|
+
iframeSrc: /* @__PURE__ */ te(s, "iframeSrc"),
|
|
6152
|
+
sessionListCollapsed: b,
|
|
6144
6153
|
onToggle: (A) => {
|
|
6145
6154
|
o("update:open", A), o("toggle", A);
|
|
6146
6155
|
},
|
|
@@ -6151,7 +6160,7 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6151
6160
|
o("update:open", !1), o("close");
|
|
6152
6161
|
},
|
|
6153
6162
|
onToggleSessionList: (A) => {
|
|
6154
|
-
|
|
6163
|
+
b.value = A, o("update:sessionListCollapsed", A), o("toggle-session-list", A);
|
|
6155
6164
|
},
|
|
6156
6165
|
onEmptyAction: () => {
|
|
6157
6166
|
o("empty-action");
|
|
@@ -6159,9 +6168,9 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6159
6168
|
onToggleTheme: (A) => {
|
|
6160
6169
|
o("update:theme", A), o("toggle-theme", A);
|
|
6161
6170
|
}
|
|
6162
|
-
}), { sessionItems:
|
|
6163
|
-
sessions: /* @__PURE__ */
|
|
6164
|
-
currentSessionId: /* @__PURE__ */
|
|
6171
|
+
}), { sessionItems: De, handleCreateSession: me, handleDeleteSession: Pe, handleSelectSession: Ne } = Jc({
|
|
6172
|
+
sessions: /* @__PURE__ */ te(s, "sessions"),
|
|
6173
|
+
currentSessionId: /* @__PURE__ */ te(s, "currentSessionId"),
|
|
6165
6174
|
onCreateSession: () => o("create-session"),
|
|
6166
6175
|
onSelectSession: (A) => {
|
|
6167
6176
|
o("update:currentSessionId", A.id), o("select-session", A);
|
|
@@ -6171,14 +6180,14 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6171
6180
|
}), {
|
|
6172
6181
|
bubbleVisible: dt,
|
|
6173
6182
|
hasSelectedElements: Re,
|
|
6174
|
-
selectedElementItems:
|
|
6183
|
+
selectedElementItems: We,
|
|
6175
6184
|
handleClearSelectedNodes: Ye,
|
|
6176
6185
|
handleClickSelectedNode: Ot,
|
|
6177
6186
|
handleRemoveSelectedNode: st,
|
|
6178
6187
|
handleToggleSelectMode: Gt
|
|
6179
6188
|
} = Yc({
|
|
6180
|
-
selectMode: /* @__PURE__ */
|
|
6181
|
-
selectedElements: /* @__PURE__ */
|
|
6189
|
+
selectMode: /* @__PURE__ */ te(s, "selectMode"),
|
|
6190
|
+
selectedElements: /* @__PURE__ */ te(s, "selectedElements"),
|
|
6182
6191
|
onToggleSelectMode: (A) => {
|
|
6183
6192
|
o("update:selectMode", A), o("toggle-select-mode", A);
|
|
6184
6193
|
},
|
|
@@ -6191,41 +6200,41 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6191
6200
|
o("clear-selected-nodes"), o("update:selectedElements", []);
|
|
6192
6201
|
},
|
|
6193
6202
|
showConfirmDialog: x
|
|
6194
|
-
}), { highlightVisible: f, highlightStyle: h, tooltipVisible: m, tooltipStyle:
|
|
6195
|
-
selectMode: /* @__PURE__ */
|
|
6203
|
+
}), { highlightVisible: f, highlightStyle: h, tooltipVisible: m, tooltipStyle: E, tooltipContent: T } = uf({
|
|
6204
|
+
selectMode: /* @__PURE__ */ te(s, "selectMode"),
|
|
6196
6205
|
onAddSelectedNode: (A) => {
|
|
6197
6206
|
o("click-selected-node", A);
|
|
6198
6207
|
},
|
|
6199
6208
|
onExitSelectMode: () => {
|
|
6200
6209
|
o("update:selectMode", !1), o("toggle-select-mode", !1);
|
|
6201
6210
|
}
|
|
6202
|
-
}),
|
|
6211
|
+
}), w = /* @__PURE__ */ F(void 0);
|
|
6203
6212
|
hf({
|
|
6204
|
-
open: /* @__PURE__ */
|
|
6205
|
-
minimized:
|
|
6206
|
-
promptDockVisible:
|
|
6207
|
-
bubbleOffset:
|
|
6208
|
-
theme: /* @__PURE__ */
|
|
6209
|
-
sessionListCollapsed:
|
|
6213
|
+
open: /* @__PURE__ */ te(s, "open"),
|
|
6214
|
+
minimized: B,
|
|
6215
|
+
promptDockVisible: k,
|
|
6216
|
+
bubbleOffset: w,
|
|
6217
|
+
theme: /* @__PURE__ */ te(s, "theme"),
|
|
6218
|
+
sessionListCollapsed: b,
|
|
6210
6219
|
onRestore: (A) => {
|
|
6211
|
-
if (A.open !== void 0 && A.open !== s.open && (o("update:open", A.open), o("toggle", A.open)), A.minimized !== void 0 && (
|
|
6220
|
+
if (A.open !== void 0 && A.open !== s.open && (o("update:open", A.open), o("toggle", A.open)), A.minimized !== void 0 && (B.value = A.minimized), A.bubbleOffset !== void 0) {
|
|
6212
6221
|
const ve = window.innerWidth - 44 - 10, ot = window.innerHeight - 44 - 10;
|
|
6213
|
-
|
|
6222
|
+
w.value = {
|
|
6214
6223
|
x: Math.max(10, Math.min(A.bubbleOffset.x, ve)),
|
|
6215
6224
|
y: Math.max(10, Math.min(A.bubbleOffset.y, ot))
|
|
6216
6225
|
};
|
|
6217
6226
|
}
|
|
6218
|
-
A.theme !== void 0 && A.theme !== s.theme && (o("update:theme", A.theme), o("toggle-theme", A.theme)), A.sessionListCollapsed !== void 0 && A.sessionListCollapsed !== s.sessionListCollapsed && (
|
|
6219
|
-
|
|
6220
|
-
|
|
6227
|
+
A.theme !== void 0 && A.theme !== s.theme && (o("update:theme", A.theme), o("toggle-theme", A.theme)), A.sessionListCollapsed !== void 0 && A.sessionListCollapsed !== s.sessionListCollapsed && (b.value = A.sessionListCollapsed, o("update:sessionListCollapsed", A.sessionListCollapsed)), A.promptDockVisible !== void 0 ? k.value = A.promptDockVisible : B.value && (k.value = !1), hi(() => {
|
|
6228
|
+
Q(), setTimeout(() => {
|
|
6229
|
+
N.value = !1;
|
|
6221
6230
|
}, 50);
|
|
6222
6231
|
});
|
|
6223
6232
|
}
|
|
6224
6233
|
});
|
|
6225
6234
|
const I = () => {
|
|
6226
|
-
|
|
6235
|
+
B.value = !B.value, k.value = !B.value, $("prompt-dock-visibility-change", { visible: k.value }), $("minimize-state-change", { minimized: B.value });
|
|
6227
6236
|
}, O = () => {
|
|
6228
|
-
|
|
6237
|
+
k.value = !k.value, $("prompt-dock-visibility-change", { visible: k.value });
|
|
6229
6238
|
}, g = /* @__PURE__ */ F(typeof window < "u" ? window.innerWidth : 0), v = /* @__PURE__ */ F(typeof window < "u" ? window.innerHeight : 0), H = () => {
|
|
6230
6239
|
typeof window < "u" && (g.value = window.innerWidth, v.value = window.innerHeight);
|
|
6231
6240
|
};
|
|
@@ -6234,33 +6243,33 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6234
6243
|
}), wt(() => {
|
|
6235
6244
|
typeof window < "u" && window.removeEventListener("resize", H);
|
|
6236
6245
|
});
|
|
6237
|
-
const M =
|
|
6238
|
-
var A, be,
|
|
6246
|
+
const M = Y(() => {
|
|
6247
|
+
var A, be, le, ve;
|
|
6239
6248
|
if (typeof window > "u") return "bottom-right";
|
|
6240
|
-
const ot = g.value / 2, Xe = v.value / 2, ht = 44,
|
|
6249
|
+
const ot = g.value / 2, Xe = v.value / 2, ht = 44, Ue = (be = (A = C.value) == null ? void 0 : A.offset) != null ? be : w.value, It = ((le = Ue?.x) != null ? le : g.value - ht - 24) + ht / 2, it = ((ve = Ue?.y) != null ? ve : v.value - ht - 24) + ht / 2;
|
|
6241
6250
|
return It >= ot && it >= Xe ? "bottom-right" : It < ot && it >= Xe ? "bottom-left" : It >= ot && it < Xe ? "top-right" : "top-left";
|
|
6242
|
-
}),
|
|
6251
|
+
}), j = Y(() => {
|
|
6243
6252
|
const A = M.value;
|
|
6244
6253
|
return A === "top-right" || A === "bottom-right";
|
|
6245
|
-
}), V =
|
|
6246
|
-
var A, be,
|
|
6254
|
+
}), V = Y(() => {
|
|
6255
|
+
var A, be, le;
|
|
6247
6256
|
if (typeof window > "u") return {};
|
|
6248
|
-
const ve =
|
|
6249
|
-
if (
|
|
6257
|
+
const ve = B.value ? 300 : 700, ot = B.value ? 300 : Math.min(v.value * 0.86, v.value - 40), Xe = 24, ht = 44, Ue = 20, It = (le = (be = (A = C.value) == null ? void 0 : A.offset) != null ? be : w.value) != null ? le : { x: g.value - ht - Xe, y: v.value - ht - Xe }, it = {};
|
|
6258
|
+
if (j.value) {
|
|
6250
6259
|
let Ge = g.value - It.x + Xe;
|
|
6251
|
-
const Zt =
|
|
6260
|
+
const Zt = Ue, Qt = g.value - ve - Ue;
|
|
6252
6261
|
Ge > Qt && (Ge = Qt), Ge < Zt && (Ge = Zt), it.right = `${Ge}px`, it.left = "auto";
|
|
6253
6262
|
} else {
|
|
6254
6263
|
let Ge = It.x + ht + Xe;
|
|
6255
|
-
const Zt =
|
|
6264
|
+
const Zt = Ue, Qt = g.value - ve - Ue;
|
|
6256
6265
|
Ge > Qt && (Ge = Qt), Ge < Zt && (Ge = Zt), it.left = `${Ge}px`, it.right = "auto";
|
|
6257
6266
|
}
|
|
6258
6267
|
let Jt = v.value - It.y - ht;
|
|
6259
|
-
const Xs = v.value - ot -
|
|
6260
|
-
return Jt > Xs && (Jt = Xs), Jt <
|
|
6261
|
-
}),
|
|
6262
|
-
|
|
6263
|
-
}, J =
|
|
6268
|
+
const Xs = v.value - ot - Ue;
|
|
6269
|
+
return Jt > Xs && (Jt = Xs), Jt < Ue && (Jt = Ue), it.bottom = `${Jt}px`, it;
|
|
6270
|
+
}), q = (A) => {
|
|
6271
|
+
w.value = A;
|
|
6272
|
+
}, J = Y(() => {
|
|
6264
6273
|
switch (M.value) {
|
|
6265
6274
|
case "top-left":
|
|
6266
6275
|
return { x: "-20px", y: "-20px" };
|
|
@@ -6272,53 +6281,53 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6272
6281
|
default:
|
|
6273
6282
|
return { x: "20px", y: "20px" };
|
|
6274
6283
|
}
|
|
6275
|
-
}),
|
|
6276
|
-
let
|
|
6284
|
+
}), ee = /* @__PURE__ */ F(!1);
|
|
6285
|
+
let ie = !1;
|
|
6277
6286
|
const _e = () => {
|
|
6278
|
-
|
|
6279
|
-
},
|
|
6280
|
-
|
|
6287
|
+
ee.value = !0, ie = s.open, s.open && o("update:open", !1);
|
|
6288
|
+
}, Ke = () => {
|
|
6289
|
+
ee.value = !1, ie && o("update:open", !0);
|
|
6281
6290
|
};
|
|
6282
6291
|
Fa({
|
|
6283
|
-
theme: /* @__PURE__ */
|
|
6284
|
-
resolvedTheme:
|
|
6285
|
-
title: /* @__PURE__ */
|
|
6286
|
-
hotkeyLabel: /* @__PURE__ */
|
|
6287
|
-
selectShortcutLabel: /* @__PURE__ */
|
|
6288
|
-
selectMode: /* @__PURE__ */
|
|
6289
|
-
selectEnabled: /* @__PURE__ */
|
|
6290
|
-
sessionListCollapsed:
|
|
6291
|
-
sessionKey: /* @__PURE__ */
|
|
6292
|
-
frameLoading: /* @__PURE__ */
|
|
6293
|
-
loadingSessionList: /* @__PURE__ */
|
|
6294
|
-
showSessionListSkeleton: /* @__PURE__ */
|
|
6295
|
-
showEmptyState: /* @__PURE__ */
|
|
6296
|
-
showError: /* @__PURE__ */
|
|
6297
|
-
emptyStateText: /* @__PURE__ */
|
|
6298
|
-
emptyStateActionText: /* @__PURE__ */
|
|
6299
|
-
showClearAll: /* @__PURE__ */
|
|
6300
|
-
open: /* @__PURE__ */
|
|
6301
|
-
thinking: /* @__PURE__ */
|
|
6302
|
-
minimized:
|
|
6303
|
-
promptDockVisible:
|
|
6304
|
-
bubbleOffset:
|
|
6305
|
-
sessionStates:
|
|
6292
|
+
theme: /* @__PURE__ */ te(s, "theme"),
|
|
6293
|
+
resolvedTheme: ae,
|
|
6294
|
+
title: /* @__PURE__ */ te(s, "title"),
|
|
6295
|
+
hotkeyLabel: /* @__PURE__ */ te(s, "hotkeyLabel"),
|
|
6296
|
+
selectShortcutLabel: /* @__PURE__ */ te(s, "selectShortcutLabel"),
|
|
6297
|
+
selectMode: /* @__PURE__ */ te(s, "selectMode"),
|
|
6298
|
+
selectEnabled: /* @__PURE__ */ te(s, "selectEnabled"),
|
|
6299
|
+
sessionListCollapsed: b,
|
|
6300
|
+
sessionKey: /* @__PURE__ */ te(s, "sessionKey"),
|
|
6301
|
+
frameLoading: /* @__PURE__ */ te(s, "frameLoading"),
|
|
6302
|
+
loadingSessionList: /* @__PURE__ */ te(s, "loadingSessionList"),
|
|
6303
|
+
showSessionListSkeleton: /* @__PURE__ */ te(s, "showSessionListSkeleton"),
|
|
6304
|
+
showEmptyState: /* @__PURE__ */ te(s, "showEmptyState"),
|
|
6305
|
+
showError: /* @__PURE__ */ te(s, "showError"),
|
|
6306
|
+
emptyStateText: /* @__PURE__ */ te(s, "emptyStateText"),
|
|
6307
|
+
emptyStateActionText: /* @__PURE__ */ te(s, "emptyStateActionText"),
|
|
6308
|
+
showClearAll: /* @__PURE__ */ te(s, "showClearAll"),
|
|
6309
|
+
open: /* @__PURE__ */ te(s, "open"),
|
|
6310
|
+
thinking: /* @__PURE__ */ te(s, "thinking"),
|
|
6311
|
+
minimized: B,
|
|
6312
|
+
promptDockVisible: k,
|
|
6313
|
+
bubbleOffset: w,
|
|
6314
|
+
sessionStates: Y(() => {
|
|
6306
6315
|
var A;
|
|
6307
6316
|
return (A = s.sessionStates) != null ? A : {};
|
|
6308
6317
|
}),
|
|
6309
|
-
iframeSource:
|
|
6310
|
-
buttonActive:
|
|
6311
|
-
sessionListTitle:
|
|
6318
|
+
iframeSource: P,
|
|
6319
|
+
buttonActive: ue,
|
|
6320
|
+
sessionListTitle: G,
|
|
6312
6321
|
bubbleVisible: dt,
|
|
6313
6322
|
hasSelectedElements: Re,
|
|
6314
|
-
sessionItems:
|
|
6315
|
-
selectedElementItems:
|
|
6316
|
-
handleToggle:
|
|
6317
|
-
handleClose:
|
|
6323
|
+
sessionItems: De,
|
|
6324
|
+
selectedElementItems: We,
|
|
6325
|
+
handleToggle: Ae,
|
|
6326
|
+
handleClose: K,
|
|
6318
6327
|
handleToggleMinimize: I,
|
|
6319
6328
|
handleTogglePromptDock: O,
|
|
6320
|
-
handleToggleSessionList:
|
|
6321
|
-
handleToggleTheme:
|
|
6329
|
+
handleToggleSessionList: ze,
|
|
6330
|
+
handleToggleTheme: Ve,
|
|
6322
6331
|
handleEmptyAction: xe,
|
|
6323
6332
|
handleCreateSession: me,
|
|
6324
6333
|
handleSelectSession: Ne,
|
|
@@ -6327,8 +6336,8 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6327
6336
|
handleClickSelectedNode: Ot,
|
|
6328
6337
|
handleRemoveSelectedNode: (A) => st(A.item, A.index, A.source),
|
|
6329
6338
|
handleClearSelectedNodes: Ye,
|
|
6330
|
-
handleFrameLoaded:
|
|
6331
|
-
handleBubbleOffsetChange:
|
|
6339
|
+
handleFrameLoaded: X,
|
|
6340
|
+
handleBubbleOffsetChange: q
|
|
6332
6341
|
});
|
|
6333
6342
|
const Le = { props: s, emit: o, slots: i, notificationMessage: l, notificationVisible: r, notificationMode: a, get notificationTimer() {
|
|
6334
6343
|
return u;
|
|
@@ -6338,18 +6347,18 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6338
6347
|
return _;
|
|
6339
6348
|
}, set dialogResolve(A) {
|
|
6340
6349
|
_ = A;
|
|
6341
|
-
}, showConfirmDialog: x, handleDialogConfirm:
|
|
6342
|
-
return
|
|
6350
|
+
}, showConfirmDialog: x, handleDialogConfirm: S, handleDialogCancel: D, frameRef: L, triggerRef: C, sendMessageToIframe: $, localSessionListCollapsed: b, minimized: B, promptDockVisible: k, isRestoring: N, iframeLoaded: R, syncStateToIframe: Q, handleFrameLoaded: X, buttonActive: ue, containerClasses: pe, iframeSource: P, sessionListTitle: G, resolvedTheme: ae, handleClose: K, handleEmptyAction: xe, handleToggle: Ae, handleToggleSessionList: ze, handleToggleTheme: Ve, sessionItems: De, handleCreateSession: me, handleDeleteSession: Pe, handleSelectSession: Ne, bubbleVisible: dt, hasSelectedElements: Re, selectedElementItems: We, handleClearSelectedNodes: Ye, handleClickSelectedNode: Ot, handleRemoveSelectedNode: st, handleToggleSelectMode: Gt, highlightVisible: f, highlightStyle: h, tooltipVisible: m, tooltipStyle: E, tooltipContent: T, bubbleOffset: w, handleToggleMinimize: I, handleTogglePromptDock: O, windowWidth: g, windowHeight: v, handleWindowResize: H, bubbleQuadrant: M, isBubbleOnRightSide: j, chatPositionStyle: V, handleBubbleOffsetChange: q, chatAnimationOrigin: J, isDragging: ee, get wasOpenBeforeDrag() {
|
|
6351
|
+
return ie;
|
|
6343
6352
|
}, set wasOpenBeforeDrag(A) {
|
|
6344
|
-
|
|
6345
|
-
}, handleDragStart: _e, handleDragEnd:
|
|
6353
|
+
ie = A;
|
|
6354
|
+
}, handleDragStart: _e, handleDragEnd: Ke, Frame: qa, Header: ac, SelectHint: fc, SelectedNodes: yc, SessionList: Dc, Trigger: Wc };
|
|
6346
6355
|
return Object.defineProperty(Le, "__isScriptSetup", { enumerable: !1, value: !0 }), Le;
|
|
6347
6356
|
}
|
|
6348
6357
|
})), Sf = {
|
|
6349
6358
|
key: 0,
|
|
6350
6359
|
class: "opencode-notification",
|
|
6351
6360
|
role: "alert"
|
|
6352
|
-
}, wf = { class: "opencode-chat-content" },
|
|
6361
|
+
}, wf = { class: "opencode-chat-content" }, Tf = { class: "opencode-tooltip-tag" }, Ef = { class: "opencode-tooltip-file" }, Cf = {
|
|
6353
6362
|
key: 0,
|
|
6354
6363
|
class: "opencode-dialog-overlay"
|
|
6355
6364
|
}, xf = {
|
|
@@ -6362,10 +6371,10 @@ const vl = /* @__PURE__ */ tt(bf(yf({}, {
|
|
|
6362
6371
|
role: "alert"
|
|
6363
6372
|
};
|
|
6364
6373
|
function Mf(e, t, n, s, o, i) {
|
|
6365
|
-
return W(),
|
|
6374
|
+
return W(), z(
|
|
6366
6375
|
"div",
|
|
6367
6376
|
{
|
|
6368
|
-
class:
|
|
6377
|
+
class: Me(s.containerClasses)
|
|
6369
6378
|
},
|
|
6370
6379
|
[
|
|
6371
6380
|
Se(
|
|
@@ -6393,7 +6402,7 @@ function Mf(e, t, n, s, o, i) {
|
|
|
6393
6402
|
ss(y(
|
|
6394
6403
|
"div",
|
|
6395
6404
|
{
|
|
6396
|
-
class:
|
|
6405
|
+
class: Me(["opencode-chat", { open: n.open, minimized: s.minimized, dragging: s.isDragging, "no-transition": s.isRestoring }]),
|
|
6397
6406
|
style: Rt(s.chatPositionStyle)
|
|
6398
6407
|
},
|
|
6399
6408
|
[
|
|
@@ -6429,13 +6438,13 @@ function Mf(e, t, n, s, o, i) {
|
|
|
6429
6438
|
1024
|
|
6430
6439
|
/* DYNAMIC_SLOTS */
|
|
6431
6440
|
),
|
|
6432
|
-
s.notificationVisible && s.notificationMode === "widget" ? (W(),
|
|
6441
|
+
s.notificationVisible && s.notificationMode === "widget" ? (W(), z(
|
|
6433
6442
|
"div",
|
|
6434
6443
|
Sf,
|
|
6435
6444
|
we(s.notificationMessage),
|
|
6436
6445
|
1
|
|
6437
6446
|
/* TEXT */
|
|
6438
|
-
)) :
|
|
6447
|
+
)) : qe("v-if", !0),
|
|
6439
6448
|
y("div", wf, [
|
|
6440
6449
|
Se(s.SessionList, null, {
|
|
6441
6450
|
empty: Fe(() => [
|
|
@@ -6521,14 +6530,14 @@ function Mf(e, t, n, s, o, i) {
|
|
|
6521
6530
|
[
|
|
6522
6531
|
y(
|
|
6523
6532
|
"div",
|
|
6524
|
-
|
|
6533
|
+
Tf,
|
|
6525
6534
|
we(s.tooltipContent.description),
|
|
6526
6535
|
1
|
|
6527
6536
|
/* TEXT */
|
|
6528
6537
|
),
|
|
6529
6538
|
y(
|
|
6530
6539
|
"div",
|
|
6531
|
-
|
|
6540
|
+
Ef,
|
|
6532
6541
|
we(s.tooltipContent.fileInfo),
|
|
6533
6542
|
1
|
|
6534
6543
|
/* TEXT */
|
|
@@ -6539,7 +6548,7 @@ function Mf(e, t, n, s, o, i) {
|
|
|
6539
6548
|
), [
|
|
6540
6549
|
[rs, s.tooltipVisible]
|
|
6541
6550
|
]),
|
|
6542
|
-
s.dialogVisible ? (W(),
|
|
6551
|
+
s.dialogVisible ? (W(), z("div", Cf, [
|
|
6543
6552
|
y("div", xf, [
|
|
6544
6553
|
y("div", Af, [
|
|
6545
6554
|
y(
|
|
@@ -6561,15 +6570,15 @@ function Mf(e, t, n, s, o, i) {
|
|
|
6561
6570
|
}, "确认")
|
|
6562
6571
|
])
|
|
6563
6572
|
])
|
|
6564
|
-
])) :
|
|
6573
|
+
])) : qe("v-if", !0),
|
|
6565
6574
|
(W(), At(Si, { to: "body" }, [
|
|
6566
|
-
s.notificationVisible && s.notificationMode === "page" ? (W(),
|
|
6575
|
+
s.notificationVisible && s.notificationMode === "page" ? (W(), z(
|
|
6567
6576
|
"div",
|
|
6568
6577
|
If,
|
|
6569
6578
|
we(s.notificationMessage),
|
|
6570
6579
|
1
|
|
6571
6580
|
/* TEXT */
|
|
6572
|
-
)) :
|
|
6581
|
+
)) : qe("v-if", !0)
|
|
6573
6582
|
]))
|
|
6574
6583
|
],
|
|
6575
6584
|
2
|
|
@@ -6619,8 +6628,8 @@ function _l(e) {
|
|
|
6619
6628
|
} = e, c = /* @__PURE__ */ F(null), d = /* @__PURE__ */ F("idle"), p = /* @__PURE__ */ F(0);
|
|
6620
6629
|
function _(C) {
|
|
6621
6630
|
try {
|
|
6622
|
-
const
|
|
6623
|
-
u?.(
|
|
6631
|
+
const $ = JSON.parse(C.data);
|
|
6632
|
+
u?.($);
|
|
6624
6633
|
} catch {
|
|
6625
6634
|
u?.(C.data);
|
|
6626
6635
|
}
|
|
@@ -6638,51 +6647,51 @@ function _l(e) {
|
|
|
6638
6647
|
}, c.value.onmessage = _, c.value.onerror = () => {
|
|
6639
6648
|
const C = d.value === "connected";
|
|
6640
6649
|
d.value = "error", c.value?.close(), c.value = null;
|
|
6641
|
-
const
|
|
6642
|
-
if (a?.(
|
|
6650
|
+
const $ = new Error(`SSE connection error: ${t}`);
|
|
6651
|
+
if (a?.($), p.value < o) {
|
|
6643
6652
|
p.value++;
|
|
6644
|
-
const
|
|
6653
|
+
const b = i * p.value;
|
|
6645
6654
|
setTimeout(() => {
|
|
6646
6655
|
s?.value !== !1 && !c.value && x();
|
|
6647
|
-
},
|
|
6656
|
+
}, b);
|
|
6648
6657
|
} else C && r?.();
|
|
6649
6658
|
};
|
|
6650
6659
|
} catch (C) {
|
|
6651
6660
|
d.value = "error";
|
|
6652
|
-
const
|
|
6653
|
-
if (a?.(
|
|
6661
|
+
const $ = C instanceof Error ? C : new Error(String(C));
|
|
6662
|
+
if (a?.($), p.value < o) {
|
|
6654
6663
|
p.value++;
|
|
6655
|
-
const
|
|
6664
|
+
const b = i * p.value;
|
|
6656
6665
|
setTimeout(() => {
|
|
6657
6666
|
c.value || x();
|
|
6658
|
-
},
|
|
6667
|
+
}, b);
|
|
6659
6668
|
}
|
|
6660
6669
|
}
|
|
6661
6670
|
}
|
|
6662
6671
|
}
|
|
6663
|
-
function
|
|
6672
|
+
function S() {
|
|
6664
6673
|
c.value && (c.value.close(), c.value = null, d.value = "disconnected", p.value = 0, r?.());
|
|
6665
6674
|
}
|
|
6666
6675
|
function D() {
|
|
6667
|
-
|
|
6676
|
+
S(), x();
|
|
6668
6677
|
}
|
|
6669
|
-
function
|
|
6678
|
+
function L() {
|
|
6670
6679
|
p.value = 0;
|
|
6671
6680
|
}
|
|
6672
6681
|
return n && s?.value !== !1 && x(), wt(() => {
|
|
6673
|
-
|
|
6682
|
+
S();
|
|
6674
6683
|
}), {
|
|
6675
6684
|
// 状态
|
|
6676
6685
|
connection: c,
|
|
6677
6686
|
status: d,
|
|
6678
6687
|
retryCount: p,
|
|
6679
|
-
isConnected:
|
|
6680
|
-
isConnecting:
|
|
6688
|
+
isConnected: Y(() => d.value === "connected"),
|
|
6689
|
+
isConnecting: Y(() => d.value === "connecting"),
|
|
6681
6690
|
// 方法
|
|
6682
6691
|
connect: x,
|
|
6683
|
-
disconnect:
|
|
6692
|
+
disconnect: S,
|
|
6684
6693
|
reconnect: D,
|
|
6685
|
-
resetRetryCount:
|
|
6694
|
+
resetRetryCount: L
|
|
6686
6695
|
};
|
|
6687
6696
|
}
|
|
6688
6697
|
function Ff(e = {}) {
|
|
@@ -6739,66 +6748,66 @@ function $f(e) {
|
|
|
6739
6748
|
}
|
|
6740
6749
|
function Bf(e) {
|
|
6741
6750
|
const { proxyBaseUrl: t, currentSessionId: n, enabled: s, onConnected: o, onSessionUpdate: i } = e, l = /* @__PURE__ */ F({});
|
|
6742
|
-
function r(
|
|
6743
|
-
return
|
|
6744
|
-
}
|
|
6745
|
-
function a(
|
|
6746
|
-
const
|
|
6747
|
-
l.value[
|
|
6748
|
-
thinking:
|
|
6749
|
-
statusType:
|
|
6750
|
-
hasPending:
|
|
6751
|
+
function r(b) {
|
|
6752
|
+
return b?.role === "assistant" && typeof b?.time?.completed != "number";
|
|
6753
|
+
}
|
|
6754
|
+
function a(b) {
|
|
6755
|
+
const B = l.value[b], k = B?.hasPending || B?.statusType !== "idle";
|
|
6756
|
+
l.value[b] = {
|
|
6757
|
+
thinking: k,
|
|
6758
|
+
statusType: B?.statusType || "idle",
|
|
6759
|
+
hasPending: B?.hasPending || !1
|
|
6751
6760
|
};
|
|
6752
6761
|
}
|
|
6753
|
-
function u(
|
|
6754
|
-
const
|
|
6755
|
-
switch (
|
|
6762
|
+
function u(b) {
|
|
6763
|
+
const B = b.type, k = b.properties;
|
|
6764
|
+
switch (B) {
|
|
6756
6765
|
case "session.updated": {
|
|
6757
|
-
const
|
|
6758
|
-
if (!
|
|
6766
|
+
const N = k.info;
|
|
6767
|
+
if (!N?.id) return;
|
|
6759
6768
|
i?.({
|
|
6760
|
-
id:
|
|
6761
|
-
title:
|
|
6762
|
-
time:
|
|
6763
|
-
summary:
|
|
6769
|
+
id: N.id,
|
|
6770
|
+
title: N.title,
|
|
6771
|
+
time: N.time,
|
|
6772
|
+
summary: N.summary
|
|
6764
6773
|
});
|
|
6765
6774
|
break;
|
|
6766
6775
|
}
|
|
6767
6776
|
case "session.status": {
|
|
6768
|
-
const
|
|
6769
|
-
if (!
|
|
6770
|
-
const
|
|
6771
|
-
l.value[
|
|
6772
|
-
thinking:
|
|
6773
|
-
statusType:
|
|
6777
|
+
const N = k.sessionID;
|
|
6778
|
+
if (!N) return;
|
|
6779
|
+
const R = k.status?.type || "idle";
|
|
6780
|
+
l.value[N] = {
|
|
6781
|
+
thinking: R !== "idle",
|
|
6782
|
+
statusType: R,
|
|
6774
6783
|
hasPending: !1
|
|
6775
|
-
}, a(
|
|
6784
|
+
}, a(N);
|
|
6776
6785
|
break;
|
|
6777
6786
|
}
|
|
6778
6787
|
case "message.updated": {
|
|
6779
|
-
const
|
|
6780
|
-
if (!
|
|
6781
|
-
const
|
|
6782
|
-
if (
|
|
6783
|
-
const
|
|
6788
|
+
const N = k.info;
|
|
6789
|
+
if (!N?.sessionID) return;
|
|
6790
|
+
const R = N.sessionID;
|
|
6791
|
+
if (N.role === "assistant") {
|
|
6792
|
+
const Q = r(N), X = l.value[R] || {
|
|
6784
6793
|
thinking: !1,
|
|
6785
6794
|
statusType: "idle",
|
|
6786
6795
|
hasPending: !1
|
|
6787
6796
|
};
|
|
6788
|
-
l.value[
|
|
6789
|
-
...
|
|
6790
|
-
hasPending:
|
|
6791
|
-
}, a(
|
|
6797
|
+
l.value[R] = {
|
|
6798
|
+
...X,
|
|
6799
|
+
hasPending: Q
|
|
6800
|
+
}, a(R);
|
|
6792
6801
|
}
|
|
6793
6802
|
break;
|
|
6794
6803
|
}
|
|
6795
6804
|
case "message.part.delta": {
|
|
6796
|
-
const
|
|
6797
|
-
if (!
|
|
6798
|
-
const
|
|
6799
|
-
|
|
6805
|
+
const N = k.sessionID;
|
|
6806
|
+
if (!N) return;
|
|
6807
|
+
const R = l.value[N];
|
|
6808
|
+
R?.hasPending || (l.value[N] = {
|
|
6800
6809
|
thinking: !0,
|
|
6801
|
-
statusType:
|
|
6810
|
+
statusType: R?.statusType || "idle",
|
|
6802
6811
|
hasPending: !0
|
|
6803
6812
|
});
|
|
6804
6813
|
break;
|
|
@@ -6810,28 +6819,28 @@ function Bf(e) {
|
|
|
6810
6819
|
enabled: s,
|
|
6811
6820
|
onEvent: u,
|
|
6812
6821
|
onConnected: o
|
|
6813
|
-
}), d =
|
|
6814
|
-
const
|
|
6815
|
-
return
|
|
6816
|
-
}), p =
|
|
6817
|
-
const
|
|
6818
|
-
return
|
|
6819
|
-
}), _ =
|
|
6820
|
-
function b
|
|
6821
|
-
delete l.value[
|
|
6822
|
+
}), d = Y(() => {
|
|
6823
|
+
const b = n.value;
|
|
6824
|
+
return b ? l.value[b]?.thinking ?? !1 : !1;
|
|
6825
|
+
}), p = Y(() => {
|
|
6826
|
+
const b = n.value;
|
|
6827
|
+
return b && l.value[b] || null;
|
|
6828
|
+
}), _ = Y(() => Object.values(l.value).some((b) => b.thinking)), x = Y(() => Object.values(l.value).filter((b) => b.thinking).length);
|
|
6829
|
+
function S(b) {
|
|
6830
|
+
delete l.value[b];
|
|
6822
6831
|
}
|
|
6823
6832
|
function D() {
|
|
6824
6833
|
l.value = {};
|
|
6825
6834
|
}
|
|
6826
|
-
function
|
|
6827
|
-
return l.value[
|
|
6835
|
+
function L(b) {
|
|
6836
|
+
return l.value[b];
|
|
6828
6837
|
}
|
|
6829
|
-
function C(
|
|
6830
|
-
return l.value[
|
|
6838
|
+
function C(b) {
|
|
6839
|
+
return l.value[b]?.thinking ?? !1;
|
|
6831
6840
|
}
|
|
6832
|
-
function
|
|
6833
|
-
return
|
|
6834
|
-
(
|
|
6841
|
+
function $(b) {
|
|
6842
|
+
return b.reduce(
|
|
6843
|
+
(B, k) => (B[k] = C(k), B),
|
|
6835
6844
|
{}
|
|
6836
6845
|
);
|
|
6837
6846
|
}
|
|
@@ -6848,15 +6857,15 @@ function Bf(e) {
|
|
|
6848
6857
|
// 方法
|
|
6849
6858
|
connect: c.connect,
|
|
6850
6859
|
disconnect: c.disconnect,
|
|
6851
|
-
clearSessionState:
|
|
6860
|
+
clearSessionState: S,
|
|
6852
6861
|
clearAllSessionStates: D,
|
|
6853
|
-
getSessionState:
|
|
6862
|
+
getSessionState: L,
|
|
6854
6863
|
isSessionThinking: C,
|
|
6855
|
-
getSessionsThinking:
|
|
6864
|
+
getSessionsThinking: $
|
|
6856
6865
|
};
|
|
6857
6866
|
}
|
|
6858
6867
|
function jf(e) {
|
|
6859
|
-
const { showNotification: t } = e, n = /* @__PURE__ */ F([]), s = /* @__PURE__ */ F(void 0), o = /* @__PURE__ */ F(null), i = /* @__PURE__ */ F(!1), l =
|
|
6868
|
+
const { showNotification: t } = e, n = /* @__PURE__ */ F([]), s = /* @__PURE__ */ F(void 0), o = /* @__PURE__ */ F(null), i = /* @__PURE__ */ F(!1), l = Y(() => o.value && n.value.find((p) => p.id === o.value)?.url || ""), r = async () => {
|
|
6860
6869
|
s.value = !0;
|
|
6861
6870
|
try {
|
|
6862
6871
|
const _ = await (await fetch(us)).json();
|
|
@@ -6870,7 +6879,7 @@ function jf(e) {
|
|
|
6870
6879
|
s.value = !1;
|
|
6871
6880
|
}
|
|
6872
6881
|
}, a = (p) => {
|
|
6873
|
-
const _ = n.value.findIndex((
|
|
6882
|
+
const _ = n.value.findIndex((S) => S.id === p.id);
|
|
6874
6883
|
if (_ === -1) return;
|
|
6875
6884
|
const x = n.value[_];
|
|
6876
6885
|
p.title && p.title !== x.title && (n.value[_] = {
|
|
@@ -6918,7 +6927,7 @@ function jf(e) {
|
|
|
6918
6927
|
};
|
|
6919
6928
|
}
|
|
6920
6929
|
function Hf(e, t) {
|
|
6921
|
-
const n = /* @__PURE__ */ F(e), s =
|
|
6930
|
+
const n = /* @__PURE__ */ F(e), s = Y(() => n.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n.value), o = () => {
|
|
6922
6931
|
t.value?.sendMessageToIframe("OPENCODE_SET_THEME", {
|
|
6923
6932
|
theme: s.value
|
|
6924
6933
|
});
|
|
@@ -6966,7 +6975,7 @@ function Vf() {
|
|
|
6966
6975
|
};
|
|
6967
6976
|
}
|
|
6968
6977
|
function Wf() {
|
|
6969
|
-
const e = /* @__PURE__ */ F(""), t = /* @__PURE__ */ F("idle"), n = /* @__PURE__ */ F(!1), s = /* @__PURE__ */ F(void 0), o = /* @__PURE__ */ F(void 0), i =
|
|
6978
|
+
const e = /* @__PURE__ */ F(""), t = /* @__PURE__ */ F("idle"), n = /* @__PURE__ */ F(!1), s = /* @__PURE__ */ F(void 0), o = /* @__PURE__ */ F(void 0), i = Y(() => e.value && La[e.value] || "加载中...");
|
|
6970
6979
|
return {
|
|
6971
6980
|
currentTask: e,
|
|
6972
6981
|
serviceStatus: t,
|
|
@@ -7022,7 +7031,7 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7022
7031
|
loadingText: {}
|
|
7023
7032
|
},
|
|
7024
7033
|
setup(e) {
|
|
7025
|
-
return (t, n) => (W(),
|
|
7034
|
+
return (t, n) => (W(), z("div", Uf, [
|
|
7026
7035
|
n[0] || (n[0] = y("div", { class: "opencode-loading-spinner" }, null, -1)),
|
|
7027
7036
|
y("div", qf, we(e.loadingText), 1)
|
|
7028
7037
|
]));
|
|
@@ -7037,7 +7046,7 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7037
7046
|
emits: ["retry"],
|
|
7038
7047
|
setup(e, { emit: t }) {
|
|
7039
7048
|
const n = t;
|
|
7040
|
-
return (s, o) => (W(),
|
|
7049
|
+
return (s, o) => (W(), z("div", Yf, [
|
|
7041
7050
|
o[9] || (o[9] = y("div", { class: "opencode-chrome-warmup-failed-icon" }, [
|
|
7042
7051
|
y("svg", {
|
|
7043
7052
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7055,7 +7064,7 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7055
7064
|
})
|
|
7056
7065
|
])
|
|
7057
7066
|
], -1)),
|
|
7058
|
-
e.errorType === de(In).CHROME_NOT_CONNECTED ? (W(),
|
|
7067
|
+
e.errorType === de(In).CHROME_NOT_CONNECTED ? (W(), z(fe, { key: 0 }, [
|
|
7059
7068
|
o[1] || (o[1] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)),
|
|
7060
7069
|
o[2] || (o[2] = y("div", { class: "opencode-chrome-warmup-failed-text" }, [
|
|
7061
7070
|
y("p", null, "请按以下步骤开启 Chrome 远程调试:"),
|
|
@@ -7069,7 +7078,7 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7069
7078
|
y("li", null, "完成后点击下方按钮重试")
|
|
7070
7079
|
])
|
|
7071
7080
|
], -1))
|
|
7072
|
-
], 64)) : e.errorType === de(In).AI_TIMEOUT ? (W(),
|
|
7081
|
+
], 64)) : e.errorType === de(In).AI_TIMEOUT ? (W(), z(fe, { key: 1 }, [
|
|
7073
7082
|
o[3] || (o[3] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "AI 响应超时", -1)),
|
|
7074
7083
|
o[4] || (o[4] = y("div", { class: "opencode-chrome-warmup-failed-text" }, [
|
|
7075
7084
|
y("p", null, "AI 模型响应超时,可能的原因:"),
|
|
@@ -7080,17 +7089,17 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7080
7089
|
]),
|
|
7081
7090
|
y("p", { style: { "margin-top": "12px", "font-weight": "500" } }, "请检查 OpenCode 配置文件中的 AI 模型设置")
|
|
7082
7091
|
], -1))
|
|
7083
|
-
], 64)) : e.errorType === de(In).AI_RESPONSE_ERROR ? (W(),
|
|
7092
|
+
], 64)) : e.errorType === de(In).AI_RESPONSE_ERROR ? (W(), z(fe, { key: 2 }, [
|
|
7084
7093
|
o[7] || (o[7] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "AI 响应错误", -1)),
|
|
7085
7094
|
y("div", Xf, [
|
|
7086
7095
|
o[5] || (o[5] = y("p", null, "AI 模型返回了意外的响应:", -1)),
|
|
7087
7096
|
y("div", Gf, we(e.errorMessage || "未知错误"), 1),
|
|
7088
7097
|
o[6] || (o[6] = y("p", { style: { "margin-top": "12px" } }, "请检查 OpenCode AI 模型配置是否正确", -1))
|
|
7089
7098
|
])
|
|
7090
|
-
], 64)) : (W(),
|
|
7099
|
+
], 64)) : (W(), z(fe, { key: 3 }, [
|
|
7091
7100
|
o[8] || (o[8] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)),
|
|
7092
7101
|
y("div", Jf, [
|
|
7093
|
-
e.errorMessage ? (W(),
|
|
7102
|
+
e.errorMessage ? (W(), z("p", Zf, we(e.errorMessage), 1)) : (W(), z("p", Qf, "连接失败,请重试"))
|
|
7094
7103
|
])
|
|
7095
7104
|
], 64)),
|
|
7096
7105
|
y("div", ed, [
|
|
@@ -7119,59 +7128,59 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7119
7128
|
hotkey: c = "ctrl+k",
|
|
7120
7129
|
proxyPort: d = 4098,
|
|
7121
7130
|
proxyHost: p = "localhost"
|
|
7122
|
-
} = t.config, _ = a, x =
|
|
7131
|
+
} = t.config, _ = a, x = Y(() => `http://${p}:${d}`), S = (g, v) => {
|
|
7123
7132
|
l.value?.showNotification?.(g, v);
|
|
7124
7133
|
}, {
|
|
7125
7134
|
serviceStatus: D,
|
|
7126
|
-
chromeMcpFailed:
|
|
7135
|
+
chromeMcpFailed: L,
|
|
7127
7136
|
chromeMcpErrorType: C,
|
|
7128
|
-
chromeMcpErrorMessage:
|
|
7129
|
-
loadingText:
|
|
7130
|
-
updateStatusFromTask:
|
|
7131
|
-
setStarting:
|
|
7137
|
+
chromeMcpErrorMessage: $,
|
|
7138
|
+
loadingText: b,
|
|
7139
|
+
updateStatusFromTask: B,
|
|
7140
|
+
setStarting: k
|
|
7132
7141
|
} = Wf(), {
|
|
7133
|
-
selectedElements:
|
|
7134
|
-
removeElement:
|
|
7135
|
-
clearElements:
|
|
7142
|
+
selectedElements: N,
|
|
7143
|
+
removeElement: R,
|
|
7144
|
+
clearElements: Q
|
|
7136
7145
|
} = Vf(), {
|
|
7137
|
-
theme:
|
|
7138
|
-
sendThemeToIframe:
|
|
7146
|
+
theme: X,
|
|
7147
|
+
sendThemeToIframe: ue
|
|
7139
7148
|
} = Hf(_, l), {
|
|
7140
|
-
sessions:
|
|
7141
|
-
loadingSessionList:
|
|
7142
|
-
currentSessionId:
|
|
7143
|
-
iframeSrc:
|
|
7144
|
-
iframeLoading:
|
|
7149
|
+
sessions: pe,
|
|
7150
|
+
loadingSessionList: P,
|
|
7151
|
+
currentSessionId: G,
|
|
7152
|
+
iframeSrc: ae,
|
|
7153
|
+
iframeLoading: K,
|
|
7145
7154
|
loadSessions: xe,
|
|
7146
|
-
createSession:
|
|
7147
|
-
deleteSession:
|
|
7148
|
-
selectSession:
|
|
7149
|
-
updateSessionInfo:
|
|
7150
|
-
} = jf({ showNotification:
|
|
7155
|
+
createSession: Ae,
|
|
7156
|
+
deleteSession: ze,
|
|
7157
|
+
selectSession: Ve,
|
|
7158
|
+
updateSessionInfo: De
|
|
7159
|
+
} = jf({ showNotification: S }), { updateContext: me } = Kf(D, N), Pe = Ff({
|
|
7151
7160
|
onStatusSync: (g) => {
|
|
7152
|
-
g.isStarted !== void 0 && g.isStarted && D.value === "idle" &&
|
|
7161
|
+
g.isStarted !== void 0 && g.isStarted && D.value === "idle" && k(), g.task && B(g.task, g.errorType, g.errorMessage), D.value !== "idle" && xe();
|
|
7153
7162
|
},
|
|
7154
7163
|
onTaskUpdate: (g) => {
|
|
7155
|
-
|
|
7164
|
+
B(g.task, g.errorType, g.errorMessage);
|
|
7156
7165
|
},
|
|
7157
|
-
onClearElements: () =>
|
|
7166
|
+
onClearElements: () => Q(),
|
|
7158
7167
|
onConnected: () => me(!0)
|
|
7159
7168
|
}), Ne = Bf({
|
|
7160
7169
|
proxyBaseUrl: x.value,
|
|
7161
|
-
currentSessionId:
|
|
7170
|
+
currentSessionId: G,
|
|
7162
7171
|
onConnected: () => {
|
|
7163
7172
|
console.log("[OpenCode] Session SSE connected");
|
|
7164
7173
|
},
|
|
7165
7174
|
onSessionUpdate: (g) => {
|
|
7166
|
-
|
|
7175
|
+
De(g);
|
|
7167
7176
|
}
|
|
7168
|
-
}), dt = Ne.hasAnyThinking, Re = Ne.sessionStates,
|
|
7177
|
+
}), dt = Ne.hasAnyThinking, Re = Ne.sessionStates, We = Y(() => D.value === "starting"), Ye = Y(() => D.value === "starting" || K.value), Ot = Y(() => D.value === "starting" ? b.value : "加载会话..."), st = async () => {
|
|
7169
7178
|
r.value = !0;
|
|
7170
7179
|
try {
|
|
7171
7180
|
const v = await (await fetch("/__opencode_warmup__", { method: "POST" })).json();
|
|
7172
|
-
v.success ? (
|
|
7181
|
+
v.success ? (L.value = !1, D.value = "ready", S("Chrome DevTools MCP 连接成功")) : v.errorType === "AI_TIMEOUT" ? S("AI 响应超时,请检查 OpenCode AI 模型配置") : v.errorType === "AI_RESPONSE_ERROR" ? S("AI 响应错误,请检查 OpenCode AI 模型配置") : v.errorType === "CHROME_NOT_CONNECTED" ? S("Chrome 远程调试未开启,请按照提示操作") : S(v.error || "重试失败,请确认 Chrome 远程调试已开启");
|
|
7173
7182
|
} catch (g) {
|
|
7174
|
-
console.error("[OpenCode] Retry warmup failed:", g),
|
|
7183
|
+
console.error("[OpenCode] Retry warmup failed:", g), S("重试失败,请稍后再试");
|
|
7175
7184
|
} finally {
|
|
7176
7185
|
r.value = !1;
|
|
7177
7186
|
}
|
|
@@ -7179,7 +7188,7 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7179
7188
|
if (D.value !== "idle") return !0;
|
|
7180
7189
|
try {
|
|
7181
7190
|
if ((await (await fetch("/__opencode_start__")).json()).success)
|
|
7182
|
-
return
|
|
7191
|
+
return k(), Pe.connect(), !0;
|
|
7183
7192
|
} catch {
|
|
7184
7193
|
}
|
|
7185
7194
|
return !1;
|
|
@@ -7187,7 +7196,7 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7187
7196
|
Fo(c, (g) => {
|
|
7188
7197
|
g.preventDefault(), f(!n.value);
|
|
7189
7198
|
}), Fo("ctrl+p", (g) => {
|
|
7190
|
-
g.preventDefault(), window.__VUE_INSPECTOR__ ? s.value = !s.value :
|
|
7199
|
+
g.preventDefault(), window.__VUE_INSPECTOR__ ? s.value = !s.value : S("Vue Inspector 未加载,无法使用元素选择功能");
|
|
7191
7200
|
}), ft(D, (g, v) => {
|
|
7192
7201
|
g !== "idle" && v === "idle" && (Pe.connect(), Ne.connect());
|
|
7193
7202
|
}), nt(() => {
|
|
@@ -7195,7 +7204,7 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7195
7204
|
n.value = !0;
|
|
7196
7205
|
}, 1e3);
|
|
7197
7206
|
const g = (v) => {
|
|
7198
|
-
v.data?.type === "OPENCODE_READY" &&
|
|
7207
|
+
v.data?.type === "OPENCODE_READY" && ue();
|
|
7199
7208
|
};
|
|
7200
7209
|
window.addEventListener("message", g);
|
|
7201
7210
|
});
|
|
@@ -7204,74 +7213,74 @@ const Uf = { class: "opencode-custom-loading" }, qf = { class: "opencode-loading
|
|
|
7204
7213
|
i.value = !0;
|
|
7205
7214
|
const v = await Gt();
|
|
7206
7215
|
if (i.value = !1, !v) {
|
|
7207
|
-
|
|
7216
|
+
S("服务启动失败");
|
|
7208
7217
|
return;
|
|
7209
7218
|
}
|
|
7210
7219
|
}
|
|
7211
|
-
n.value = g, g && me(), g && (
|
|
7220
|
+
n.value = g, g && me(), g && (K.value = !1);
|
|
7212
7221
|
}, h = (g) => {
|
|
7213
7222
|
const v = {
|
|
7214
7223
|
...g,
|
|
7215
7224
|
previewPageUrl: window.location.href,
|
|
7216
7225
|
previewPageTitle: document.title
|
|
7217
7226
|
};
|
|
7218
|
-
l.value?.sendMessageToIframe("OPENCODE_INSERT_FILE_PART", { element: v }),
|
|
7227
|
+
l.value?.sendMessageToIframe("OPENCODE_INSERT_FILE_PART", { element: v }), S("节点已添加到对话框", { mode: "page" });
|
|
7219
7228
|
}, m = () => {
|
|
7220
|
-
|
|
7221
|
-
}, T = (g) => {
|
|
7222
|
-
s.value = g, !g && !n.value && (n.value = !0);
|
|
7229
|
+
Q(), me(!0), S("已清除所有选中元素");
|
|
7223
7230
|
}, E = (g) => {
|
|
7231
|
+
s.value = g, !g && !n.value && (n.value = !0);
|
|
7232
|
+
}, T = (g) => {
|
|
7224
7233
|
o.value = g;
|
|
7225
|
-
},
|
|
7226
|
-
|
|
7234
|
+
}, w = (g) => {
|
|
7235
|
+
X.value = g;
|
|
7227
7236
|
}, I = ({ index: g }) => {
|
|
7228
|
-
|
|
7237
|
+
R(g), me(!0);
|
|
7229
7238
|
}, O = () => {
|
|
7230
|
-
|
|
7239
|
+
K.value = !1;
|
|
7231
7240
|
};
|
|
7232
7241
|
return (g, v) => (W(), At(de(kf), {
|
|
7233
7242
|
ref_key: "widgetRef",
|
|
7234
7243
|
ref: l,
|
|
7235
|
-
theme: de(
|
|
7244
|
+
theme: de(X),
|
|
7236
7245
|
open: n.value,
|
|
7237
7246
|
"select-mode": s.value,
|
|
7238
7247
|
"session-list-collapsed": o.value,
|
|
7239
7248
|
"frame-loading": Ye.value,
|
|
7240
|
-
"loading-session-list": de(
|
|
7241
|
-
"show-session-list-skeleton":
|
|
7242
|
-
"show-error": de(
|
|
7243
|
-
"iframe-src": de(
|
|
7244
|
-
"current-session-id": de(
|
|
7245
|
-
sessions: de(
|
|
7249
|
+
"loading-session-list": de(P),
|
|
7250
|
+
"show-session-list-skeleton": We.value,
|
|
7251
|
+
"show-error": de(L),
|
|
7252
|
+
"iframe-src": de(ae),
|
|
7253
|
+
"current-session-id": de(G),
|
|
7254
|
+
sessions: de(pe),
|
|
7246
7255
|
"session-states": de(Re),
|
|
7247
7256
|
"session-key": "id",
|
|
7248
7257
|
"hotkey-label": de(c),
|
|
7249
7258
|
thinking: de(dt),
|
|
7250
7259
|
"onUpdate:open": f,
|
|
7251
|
-
"onUpdate:selectMode":
|
|
7252
|
-
"onUpdate:sessionListCollapsed":
|
|
7253
|
-
"onUpdate:theme":
|
|
7254
|
-
onToggleTheme:
|
|
7255
|
-
onCreateSession: de(
|
|
7256
|
-
onDeleteSession: de(
|
|
7257
|
-
onSelectSession: de(
|
|
7260
|
+
"onUpdate:selectMode": E,
|
|
7261
|
+
"onUpdate:sessionListCollapsed": T,
|
|
7262
|
+
"onUpdate:theme": w,
|
|
7263
|
+
onToggleTheme: w,
|
|
7264
|
+
onCreateSession: de(Ae),
|
|
7265
|
+
onDeleteSession: de(ze),
|
|
7266
|
+
onSelectSession: de(Ve),
|
|
7258
7267
|
onClickSelectedNode: h,
|
|
7259
7268
|
onClearSelectedNodes: m,
|
|
7260
7269
|
onRemoveSelectedNode: I,
|
|
7261
|
-
onEmptyAction: de(
|
|
7270
|
+
onEmptyAction: de(Ae),
|
|
7262
7271
|
onFrameLoaded: O
|
|
7263
7272
|
}, {
|
|
7264
7273
|
loading: Fe(() => [
|
|
7265
7274
|
Se(zf, { "loading-text": Ot.value }, null, 8, ["loading-text"])
|
|
7266
7275
|
]),
|
|
7267
7276
|
error: Fe(() => [
|
|
7268
|
-
de(
|
|
7277
|
+
de(L) ? (W(), At(od, {
|
|
7269
7278
|
key: 0,
|
|
7270
7279
|
retrying: r.value,
|
|
7271
7280
|
"error-type": de(C),
|
|
7272
|
-
"error-message": de(
|
|
7281
|
+
"error-message": de($),
|
|
7273
7282
|
onRetry: st
|
|
7274
|
-
}, null, 8, ["retrying", "error-type", "error-message"])) :
|
|
7283
|
+
}, null, 8, ["retrying", "error-type", "error-message"])) : qe("", !0)
|
|
7275
7284
|
]),
|
|
7276
7285
|
_: 1
|
|
7277
7286
|
}, 8, ["theme", "open", "select-mode", "session-list-collapsed", "frame-loading", "loading-session-list", "show-session-list-skeleton", "show-error", "iframe-src", "current-session-id", "sessions", "session-states", "hotkey-label", "thinking", "onCreateSession", "onDeleteSession", "onSelectSession", "onEmptyAction"]));
|