reactive-vscode 0.0.1-beta.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +62 -5
- package/dist/index.js +791 -724
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { workspace as
|
|
1
|
+
import { workspace as P, commands as _e, window as l, debug as Qe, extensions as De, comments as Wt, env as B, EventEmitter as Le, tasks as J, Uri as kt, languages as jt, ColorThemeKind as Xe, l10n as Ze } from "vscode";
|
|
2
2
|
/**
|
|
3
3
|
* @vue/shared v3.4.27
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -6,20 +6,20 @@ import { workspace as k, commands as ve, window as d, debug as qe, extensions as
|
|
|
6
6
|
**/
|
|
7
7
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
8
8
|
// @__NO_SIDE_EFFECTS__
|
|
9
|
-
function
|
|
9
|
+
function Ft(e, t) {
|
|
10
10
|
const n = new Set(e.split(","));
|
|
11
11
|
return (s) => n.has(s);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Kt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
14
14
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15
15
|
const X = () => {
|
|
16
|
-
},
|
|
16
|
+
}, ge = Object.assign, Ut = (e, t) => {
|
|
17
17
|
const n = e.indexOf(t);
|
|
18
18
|
n > -1 && e.splice(n, 1);
|
|
19
|
-
},
|
|
19
|
+
}, $t = Object.prototype.hasOwnProperty, le = (e, t) => $t.call(e, t), D = Array.isArray, G = (e) => Ee(e) === "[object Map]", Gt = (e) => Ee(e) === "[object Set]", y = (e) => typeof e == "function", zt = (e) => typeof e == "string", te = (e) => typeof e == "symbol", K = (e) => e !== null && typeof e == "object", Bt = (e) => (K(e) || y(e)) && y(e.then) && y(e.catch), Yt = Object.prototype.toString, Ee = (e) => Yt.call(e), ct = (e) => Ee(e).slice(8, -1), Jt = (e) => Ee(e) === "[object Object]", Pe = (e) => zt(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, qt = (e) => {
|
|
20
20
|
const t = /* @__PURE__ */ Object.create(null);
|
|
21
21
|
return (n) => t[n] || (t[n] = e(n));
|
|
22
|
-
},
|
|
22
|
+
}, Qt = qt((e) => e.charAt(0).toUpperCase() + e.slice(1)), H = (e, t) => !Object.is(e, t), Xt = (e, t, n, s = !1) => {
|
|
23
23
|
Object.defineProperty(e, t, {
|
|
24
24
|
configurable: !0,
|
|
25
25
|
enumerable: !1,
|
|
@@ -36,7 +36,7 @@ function C(e, ...t) {
|
|
|
36
36
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
37
37
|
}
|
|
38
38
|
let m;
|
|
39
|
-
class
|
|
39
|
+
class Zt {
|
|
40
40
|
constructor(t = !1) {
|
|
41
41
|
this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this.parent = m, !t && m && (this.index = (m.scopes || (m.scopes = [])).push(
|
|
42
42
|
this
|
|
@@ -88,34 +88,34 @@ class Yt {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return new
|
|
91
|
+
function en(e) {
|
|
92
|
+
return new Zt(e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function at(e, t = m) {
|
|
95
95
|
t && t.active && t.effects.push(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Me() {
|
|
98
98
|
return m;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ut(e) {
|
|
101
101
|
m ? m.cleanups.push(e) : process.env.NODE_ENV !== "production" && C(
|
|
102
102
|
"onScopeDispose() is called when there is no active effect scope to be associated with."
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
let j;
|
|
106
|
-
class
|
|
106
|
+
class fe {
|
|
107
107
|
constructor(t, n, s, i) {
|
|
108
|
-
this.fn = t, this.trigger = n, this.scheduler = s, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0,
|
|
108
|
+
this.fn = t, this.trigger = n, this.scheduler = s, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, at(this, i);
|
|
109
109
|
}
|
|
110
110
|
get dirty() {
|
|
111
111
|
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
|
|
112
|
-
this._dirtyLevel = 1,
|
|
112
|
+
this._dirtyLevel = 1, We();
|
|
113
113
|
for (let t = 0; t < this._depsLength; t++) {
|
|
114
114
|
const n = this.deps[t];
|
|
115
|
-
if (n.computed && (
|
|
115
|
+
if (n.computed && (tn(n.computed), this._dirtyLevel >= 4))
|
|
116
116
|
break;
|
|
117
117
|
}
|
|
118
|
-
this._dirtyLevel === 1 && (this._dirtyLevel = 0),
|
|
118
|
+
this._dirtyLevel === 1 && (this._dirtyLevel = 0), ke();
|
|
119
119
|
}
|
|
120
120
|
return this._dirtyLevel >= 4;
|
|
121
121
|
}
|
|
@@ -127,91 +127,91 @@ class le {
|
|
|
127
127
|
return this.fn();
|
|
128
128
|
let t = O, n = j;
|
|
129
129
|
try {
|
|
130
|
-
return O = !0, j = this, this._runnings++,
|
|
130
|
+
return O = !0, j = this, this._runnings++, et(this), this.fn();
|
|
131
131
|
} finally {
|
|
132
|
-
|
|
132
|
+
tt(this), this._runnings--, j = n, O = t;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
stop() {
|
|
136
|
-
this.active && (
|
|
136
|
+
this.active && (et(this), tt(this), this.onStop && this.onStop(), this.active = !1);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function tn(e) {
|
|
140
140
|
return e.value;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function et(e) {
|
|
143
143
|
e._trackId++, e._depsLength = 0;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function tt(e) {
|
|
146
146
|
if (e.deps.length > e._depsLength) {
|
|
147
147
|
for (let t = e._depsLength; t < e.deps.length; t++)
|
|
148
|
-
|
|
148
|
+
lt(e.deps[t], e);
|
|
149
149
|
e.deps.length = e._depsLength;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function lt(e, t) {
|
|
153
153
|
const n = e.get(t);
|
|
154
154
|
n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup());
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
e.effect instanceof
|
|
158
|
-
const n = new
|
|
156
|
+
function Zn(e, t) {
|
|
157
|
+
e.effect instanceof fe && (e = e.effect.fn);
|
|
158
|
+
const n = new fe(e, X, () => {
|
|
159
159
|
n.dirty && n.run();
|
|
160
160
|
});
|
|
161
|
-
t && (
|
|
161
|
+
t && (ge(n, t), t.scope && at(n, t.scope)), (!t || !t.lazy) && n.run();
|
|
162
162
|
const s = n.run.bind(n);
|
|
163
163
|
return s.effect = n, s;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function es(e) {
|
|
166
166
|
e.effect.stop();
|
|
167
167
|
}
|
|
168
|
-
let O = !0,
|
|
169
|
-
const
|
|
170
|
-
function
|
|
171
|
-
|
|
168
|
+
let O = !0, Se = 0;
|
|
169
|
+
const He = [];
|
|
170
|
+
function We() {
|
|
171
|
+
He.push(O), O = !1;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
|
|
173
|
+
function ts() {
|
|
174
|
+
He.push(O), O = !0;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
const e =
|
|
176
|
+
function ke() {
|
|
177
|
+
const e = He.pop();
|
|
178
178
|
O = e === void 0 ? !0 : e;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
180
|
+
function je() {
|
|
181
|
+
Se++;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
for (
|
|
185
|
-
|
|
183
|
+
function Fe() {
|
|
184
|
+
for (Se--; !Se && ye.length; )
|
|
185
|
+
ye.shift()();
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ft(e, t, n) {
|
|
188
188
|
var s;
|
|
189
189
|
if (t.get(e) !== e._trackId) {
|
|
190
190
|
t.set(e, e._trackId);
|
|
191
191
|
const i = e.deps[e._depsLength];
|
|
192
|
-
i !== t ? (i &&
|
|
192
|
+
i !== t ? (i && lt(i, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((s = e.onTrack) == null || s.call(e, ge({ effect: e }, n)));
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
const
|
|
196
|
-
function
|
|
195
|
+
const ye = [];
|
|
196
|
+
function dt(e, t, n) {
|
|
197
197
|
var s;
|
|
198
|
-
|
|
198
|
+
je();
|
|
199
199
|
for (const i of e.keys()) {
|
|
200
|
-
let
|
|
201
|
-
i._dirtyLevel < t && (
|
|
200
|
+
let r;
|
|
201
|
+
i._dirtyLevel < t && (r ?? (r = e.get(i) === i._trackId)) && (i._shouldSchedule || (i._shouldSchedule = i._dirtyLevel === 0), i._dirtyLevel = t), i._shouldSchedule && (r ?? (r = e.get(i) === i._trackId)) && (process.env.NODE_ENV !== "production" && ((s = i.onTrigger) == null || s.call(i, ge({ effect: i }, n))), i.trigger(), (!i._runnings || i.allowRecurse) && i._dirtyLevel !== 2 && (i._shouldSchedule = !1, i.scheduler && ye.push(i.scheduler)));
|
|
202
202
|
}
|
|
203
|
-
|
|
203
|
+
Fe();
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const ht = (e, t) => {
|
|
206
206
|
const n = /* @__PURE__ */ new Map();
|
|
207
207
|
return n.cleanup = e, n.computed = t, n;
|
|
208
|
-
},
|
|
208
|
+
}, de = /* @__PURE__ */ new WeakMap(), F = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Oe = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
|
209
209
|
function N(e, t, n) {
|
|
210
210
|
if (O && j) {
|
|
211
|
-
let s =
|
|
212
|
-
s ||
|
|
211
|
+
let s = de.get(e);
|
|
212
|
+
s || de.set(e, s = /* @__PURE__ */ new Map());
|
|
213
213
|
let i = s.get(n);
|
|
214
|
-
i || s.set(n, i =
|
|
214
|
+
i || s.set(n, i = ht(() => s.delete(n))), ft(
|
|
215
215
|
j,
|
|
216
216
|
i,
|
|
217
217
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -222,34 +222,34 @@ function N(e, t, n) {
|
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
const
|
|
227
|
-
if (!
|
|
225
|
+
function M(e, t, n, s, i, r) {
|
|
226
|
+
const o = de.get(e);
|
|
227
|
+
if (!o)
|
|
228
228
|
return;
|
|
229
229
|
let c = [];
|
|
230
230
|
if (t === "clear")
|
|
231
|
-
c = [...
|
|
232
|
-
else if (n === "length" &&
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
(w === "length" || !te(w) && w >=
|
|
231
|
+
c = [...o.values()];
|
|
232
|
+
else if (n === "length" && D(e)) {
|
|
233
|
+
const d = Number(s);
|
|
234
|
+
o.forEach((_, w) => {
|
|
235
|
+
(w === "length" || !te(w) && w >= d) && c.push(_);
|
|
236
236
|
});
|
|
237
237
|
} else
|
|
238
|
-
switch (n !== void 0 && c.push(
|
|
238
|
+
switch (n !== void 0 && c.push(o.get(n)), t) {
|
|
239
239
|
case "add":
|
|
240
|
-
|
|
240
|
+
D(e) ? Pe(n) && c.push(o.get("length")) : (c.push(o.get(F)), G(e) && c.push(o.get(Oe)));
|
|
241
241
|
break;
|
|
242
242
|
case "delete":
|
|
243
|
-
|
|
243
|
+
D(e) || (c.push(o.get(F)), G(e) && c.push(o.get(Oe)));
|
|
244
244
|
break;
|
|
245
245
|
case "set":
|
|
246
|
-
|
|
246
|
+
G(e) && c.push(o.get(F));
|
|
247
247
|
break;
|
|
248
248
|
}
|
|
249
|
-
|
|
250
|
-
for (const
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
je();
|
|
250
|
+
for (const d of c)
|
|
251
|
+
d && dt(
|
|
252
|
+
d,
|
|
253
253
|
4,
|
|
254
254
|
process.env.NODE_ENV !== "production" ? {
|
|
255
255
|
target: e,
|
|
@@ -257,99 +257,99 @@ function P(e, t, n, s, i, o) {
|
|
|
257
257
|
key: n,
|
|
258
258
|
newValue: s,
|
|
259
259
|
oldValue: i,
|
|
260
|
-
oldTarget:
|
|
260
|
+
oldTarget: r
|
|
261
261
|
} : void 0
|
|
262
262
|
);
|
|
263
|
-
|
|
263
|
+
Fe();
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
const n =
|
|
265
|
+
function nn(e, t) {
|
|
266
|
+
const n = de.get(e);
|
|
267
267
|
return n && n.get(t);
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const sn = /* @__PURE__ */ Ft("__proto__,__v_isRef,__isVue"), pt = new Set(
|
|
270
270
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(te)
|
|
271
|
-
),
|
|
272
|
-
function
|
|
271
|
+
), nt = /* @__PURE__ */ rn();
|
|
272
|
+
function rn() {
|
|
273
273
|
const e = {};
|
|
274
274
|
return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
|
|
275
275
|
e[t] = function(...n) {
|
|
276
|
-
const s =
|
|
277
|
-
for (let
|
|
278
|
-
N(s, "get",
|
|
276
|
+
const s = f(this);
|
|
277
|
+
for (let r = 0, o = this.length; r < o; r++)
|
|
278
|
+
N(s, "get", r + "");
|
|
279
279
|
const i = s[t](...n);
|
|
280
|
-
return i === -1 || i === !1 ? s[t](...n.map(
|
|
280
|
+
return i === -1 || i === !1 ? s[t](...n.map(f)) : i;
|
|
281
281
|
};
|
|
282
282
|
}), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
|
|
283
283
|
e[t] = function(...n) {
|
|
284
|
-
|
|
285
|
-
const s =
|
|
286
|
-
return
|
|
284
|
+
We(), je();
|
|
285
|
+
const s = f(this)[t].apply(this, n);
|
|
286
|
+
return Fe(), ke(), s;
|
|
287
287
|
};
|
|
288
288
|
}), e;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function on(e) {
|
|
291
291
|
te(e) || (e = String(e));
|
|
292
|
-
const t =
|
|
292
|
+
const t = f(this);
|
|
293
293
|
return N(t, "has", e), t.hasOwnProperty(e);
|
|
294
294
|
}
|
|
295
|
-
class
|
|
295
|
+
class vt {
|
|
296
296
|
constructor(t = !1, n = !1) {
|
|
297
297
|
this._isReadonly = t, this._isShallow = n;
|
|
298
298
|
}
|
|
299
299
|
get(t, n, s) {
|
|
300
|
-
const i = this._isReadonly,
|
|
300
|
+
const i = this._isReadonly, r = this._isShallow;
|
|
301
301
|
if (n === "__v_isReactive")
|
|
302
302
|
return !i;
|
|
303
303
|
if (n === "__v_isReadonly")
|
|
304
304
|
return i;
|
|
305
305
|
if (n === "__v_isShallow")
|
|
306
|
-
return
|
|
306
|
+
return r;
|
|
307
307
|
if (n === "__v_raw")
|
|
308
|
-
return s === (i ?
|
|
308
|
+
return s === (i ? r ? bt : Tt : r ? mt : wt).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
309
309
|
// this means the reciever is a user proxy of the reactive proxy
|
|
310
310
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
311
|
-
const
|
|
311
|
+
const o = D(t);
|
|
312
312
|
if (!i) {
|
|
313
|
-
if (
|
|
314
|
-
return Reflect.get(
|
|
313
|
+
if (o && le(nt, n))
|
|
314
|
+
return Reflect.get(nt, n, s);
|
|
315
315
|
if (n === "hasOwnProperty")
|
|
316
|
-
return
|
|
316
|
+
return on;
|
|
317
317
|
}
|
|
318
318
|
const c = Reflect.get(t, n, s);
|
|
319
|
-
return (te(n) ?
|
|
319
|
+
return (te(n) ? pt.has(n) : sn(n)) || (i || N(t, "get", n), r) ? c : T(c) ? o && Pe(n) ? c : c.value : K(c) ? i ? Rt(c) : Nt(c) : c;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
class
|
|
322
|
+
class _t extends vt {
|
|
323
323
|
constructor(t = !1) {
|
|
324
324
|
super(!1, t);
|
|
325
325
|
}
|
|
326
326
|
set(t, n, s, i) {
|
|
327
|
-
let
|
|
327
|
+
let r = t[n];
|
|
328
328
|
if (!this._isShallow) {
|
|
329
|
-
const
|
|
330
|
-
if (!
|
|
331
|
-
return
|
|
329
|
+
const d = Z(r);
|
|
330
|
+
if (!he(s) && !Z(s) && (r = f(r), s = f(s)), !D(t) && T(r) && !T(s))
|
|
331
|
+
return d ? !1 : (r.value = s, !0);
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
return t ===
|
|
333
|
+
const o = D(t) && Pe(n) ? Number(n) < t.length : le(t, n), c = Reflect.set(t, n, s, i);
|
|
334
|
+
return t === f(i) && (o ? H(s, r) && M(t, "set", n, s, r) : M(t, "add", n, s)), c;
|
|
335
335
|
}
|
|
336
336
|
deleteProperty(t, n) {
|
|
337
|
-
const s =
|
|
338
|
-
return
|
|
337
|
+
const s = le(t, n), i = t[n], r = Reflect.deleteProperty(t, n);
|
|
338
|
+
return r && s && M(t, "delete", n, void 0, i), r;
|
|
339
339
|
}
|
|
340
340
|
has(t, n) {
|
|
341
341
|
const s = Reflect.has(t, n);
|
|
342
|
-
return (!te(n) || !
|
|
342
|
+
return (!te(n) || !pt.has(n)) && N(t, "has", n), s;
|
|
343
343
|
}
|
|
344
344
|
ownKeys(t) {
|
|
345
345
|
return N(
|
|
346
346
|
t,
|
|
347
347
|
"iterate",
|
|
348
|
-
|
|
348
|
+
D(t) ? "length" : F
|
|
349
349
|
), Reflect.ownKeys(t);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
class
|
|
352
|
+
class gt extends vt {
|
|
353
353
|
constructor(t = !1) {
|
|
354
354
|
super(!0, t);
|
|
355
355
|
}
|
|
@@ -366,70 +366,70 @@ class vt extends ht {
|
|
|
366
366
|
), !0;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
const
|
|
369
|
+
const cn = /* @__PURE__ */ new _t(), an = /* @__PURE__ */ new gt(), un = /* @__PURE__ */ new _t(
|
|
370
370
|
!0
|
|
371
|
-
),
|
|
371
|
+
), ln = /* @__PURE__ */ new gt(!0), Ke = (e) => e, we = (e) => Reflect.getPrototypeOf(e);
|
|
372
372
|
function se(e, t, n = !1, s = !1) {
|
|
373
373
|
e = e.__v_raw;
|
|
374
|
-
const i =
|
|
375
|
-
n || (
|
|
376
|
-
const { has:
|
|
377
|
-
if (
|
|
374
|
+
const i = f(e), r = f(t);
|
|
375
|
+
n || (H(t, r) && N(i, "get", t), N(i, "get", r));
|
|
376
|
+
const { has: o } = we(i), c = s ? Ke : n ? Ue : ee;
|
|
377
|
+
if (o.call(i, t))
|
|
378
378
|
return c(e.get(t));
|
|
379
|
-
if (
|
|
380
|
-
return c(e.get(
|
|
379
|
+
if (o.call(i, r))
|
|
380
|
+
return c(e.get(r));
|
|
381
381
|
e !== i && e.get(t);
|
|
382
382
|
}
|
|
383
383
|
function ie(e, t = !1) {
|
|
384
|
-
const n = this.__v_raw, s =
|
|
385
|
-
return t || (
|
|
386
|
-
}
|
|
387
|
-
function
|
|
388
|
-
return e = e.__v_raw, !t && N(
|
|
389
|
-
}
|
|
390
|
-
function
|
|
391
|
-
e =
|
|
392
|
-
const t =
|
|
393
|
-
return
|
|
394
|
-
}
|
|
395
|
-
function
|
|
396
|
-
t =
|
|
397
|
-
const n =
|
|
398
|
-
let
|
|
399
|
-
|
|
400
|
-
const
|
|
401
|
-
return n.set(e, t),
|
|
402
|
-
}
|
|
403
|
-
function
|
|
404
|
-
const t =
|
|
384
|
+
const n = this.__v_raw, s = f(n), i = f(e);
|
|
385
|
+
return t || (H(e, i) && N(s, "has", e), N(s, "has", i)), e === i ? n.has(e) : n.has(e) || n.has(i);
|
|
386
|
+
}
|
|
387
|
+
function re(e, t = !1) {
|
|
388
|
+
return e = e.__v_raw, !t && N(f(e), "iterate", F), Reflect.get(e, "size", e);
|
|
389
|
+
}
|
|
390
|
+
function st(e) {
|
|
391
|
+
e = f(e);
|
|
392
|
+
const t = f(this);
|
|
393
|
+
return we(t).has.call(t, e) || (t.add(e), M(t, "add", e, e)), this;
|
|
394
|
+
}
|
|
395
|
+
function it(e, t) {
|
|
396
|
+
t = f(t);
|
|
397
|
+
const n = f(this), { has: s, get: i } = we(n);
|
|
398
|
+
let r = s.call(n, e);
|
|
399
|
+
r ? process.env.NODE_ENV !== "production" && Et(n, s, e) : (e = f(e), r = s.call(n, e));
|
|
400
|
+
const o = i.call(n, e);
|
|
401
|
+
return n.set(e, t), r ? H(t, o) && M(n, "set", e, t, o) : M(n, "add", e, t), this;
|
|
402
|
+
}
|
|
403
|
+
function rt(e) {
|
|
404
|
+
const t = f(this), { has: n, get: s } = we(t);
|
|
405
405
|
let i = n.call(t, e);
|
|
406
|
-
i ? process.env.NODE_ENV !== "production" &&
|
|
407
|
-
const
|
|
408
|
-
return i &&
|
|
406
|
+
i ? process.env.NODE_ENV !== "production" && Et(t, n, e) : (e = f(e), i = n.call(t, e));
|
|
407
|
+
const r = s ? s.call(t, e) : void 0, o = t.delete(e);
|
|
408
|
+
return i && M(t, "delete", e, void 0, r), o;
|
|
409
409
|
}
|
|
410
410
|
function ot() {
|
|
411
|
-
const e =
|
|
412
|
-
return t &&
|
|
411
|
+
const e = f(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? G(e) ? new Map(e) : new Set(e) : void 0, s = e.clear();
|
|
412
|
+
return t && M(e, "clear", void 0, void 0, n), s;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function oe(e, t) {
|
|
415
415
|
return function(s, i) {
|
|
416
|
-
const
|
|
417
|
-
return !e && N(c, "iterate",
|
|
416
|
+
const r = this, o = r.__v_raw, c = f(o), d = t ? Ke : e ? Ue : ee;
|
|
417
|
+
return !e && N(c, "iterate", F), o.forEach((_, w) => s.call(i, d(_), d(w), r));
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
function ce(e, t, n) {
|
|
421
421
|
return function(...s) {
|
|
422
|
-
const i = this.__v_raw,
|
|
422
|
+
const i = this.__v_raw, r = f(i), o = G(r), c = e === "entries" || e === Symbol.iterator && o, d = e === "keys" && o, _ = i[e](...s), w = n ? Ke : t ? Ue : ee;
|
|
423
423
|
return !t && N(
|
|
424
|
-
|
|
424
|
+
r,
|
|
425
425
|
"iterate",
|
|
426
|
-
|
|
426
|
+
d ? Oe : F
|
|
427
427
|
), {
|
|
428
428
|
// iterator protocol
|
|
429
429
|
next() {
|
|
430
|
-
const { value:
|
|
431
|
-
return A ? { value:
|
|
432
|
-
value: c ? [w(
|
|
430
|
+
const { value: g, done: A } = _.next();
|
|
431
|
+
return A ? { value: g, done: A } : {
|
|
432
|
+
value: c ? [w(g[0]), w(g[1])] : w(g),
|
|
433
433
|
done: A
|
|
434
434
|
};
|
|
435
435
|
},
|
|
@@ -445,79 +445,79 @@ function I(e) {
|
|
|
445
445
|
if (process.env.NODE_ENV !== "production") {
|
|
446
446
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
447
447
|
C(
|
|
448
|
-
`${
|
|
449
|
-
|
|
448
|
+
`${Qt(e)} operation ${n}failed: target is readonly.`,
|
|
449
|
+
f(this)
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function fn() {
|
|
456
456
|
const e = {
|
|
457
|
-
get(
|
|
458
|
-
return se(this,
|
|
457
|
+
get(r) {
|
|
458
|
+
return se(this, r);
|
|
459
459
|
},
|
|
460
460
|
get size() {
|
|
461
|
-
return
|
|
461
|
+
return re(this);
|
|
462
462
|
},
|
|
463
463
|
has: ie,
|
|
464
|
-
add:
|
|
465
|
-
set:
|
|
466
|
-
delete:
|
|
464
|
+
add: st,
|
|
465
|
+
set: it,
|
|
466
|
+
delete: rt,
|
|
467
467
|
clear: ot,
|
|
468
|
-
forEach:
|
|
468
|
+
forEach: oe(!1, !1)
|
|
469
469
|
}, t = {
|
|
470
|
-
get(
|
|
471
|
-
return se(this,
|
|
470
|
+
get(r) {
|
|
471
|
+
return se(this, r, !1, !0);
|
|
472
472
|
},
|
|
473
473
|
get size() {
|
|
474
|
-
return
|
|
474
|
+
return re(this);
|
|
475
475
|
},
|
|
476
476
|
has: ie,
|
|
477
|
-
add:
|
|
478
|
-
set:
|
|
479
|
-
delete:
|
|
477
|
+
add: st,
|
|
478
|
+
set: it,
|
|
479
|
+
delete: rt,
|
|
480
480
|
clear: ot,
|
|
481
|
-
forEach:
|
|
481
|
+
forEach: oe(!1, !0)
|
|
482
482
|
}, n = {
|
|
483
|
-
get(
|
|
484
|
-
return se(this,
|
|
483
|
+
get(r) {
|
|
484
|
+
return se(this, r, !0);
|
|
485
485
|
},
|
|
486
486
|
get size() {
|
|
487
|
-
return
|
|
487
|
+
return re(this, !0);
|
|
488
488
|
},
|
|
489
|
-
has(
|
|
490
|
-
return ie.call(this,
|
|
489
|
+
has(r) {
|
|
490
|
+
return ie.call(this, r, !0);
|
|
491
491
|
},
|
|
492
492
|
add: I("add"),
|
|
493
493
|
set: I("set"),
|
|
494
494
|
delete: I("delete"),
|
|
495
495
|
clear: I("clear"),
|
|
496
|
-
forEach:
|
|
496
|
+
forEach: oe(!0, !1)
|
|
497
497
|
}, s = {
|
|
498
|
-
get(
|
|
499
|
-
return se(this,
|
|
498
|
+
get(r) {
|
|
499
|
+
return se(this, r, !0, !0);
|
|
500
500
|
},
|
|
501
501
|
get size() {
|
|
502
|
-
return
|
|
502
|
+
return re(this, !0);
|
|
503
503
|
},
|
|
504
|
-
has(
|
|
505
|
-
return ie.call(this,
|
|
504
|
+
has(r) {
|
|
505
|
+
return ie.call(this, r, !0);
|
|
506
506
|
},
|
|
507
507
|
add: I("add"),
|
|
508
508
|
set: I("set"),
|
|
509
509
|
delete: I("delete"),
|
|
510
510
|
clear: I("clear"),
|
|
511
|
-
forEach:
|
|
511
|
+
forEach: oe(!0, !0)
|
|
512
512
|
};
|
|
513
513
|
return [
|
|
514
514
|
"keys",
|
|
515
515
|
"values",
|
|
516
516
|
"entries",
|
|
517
517
|
Symbol.iterator
|
|
518
|
-
].forEach((
|
|
519
|
-
e[
|
|
520
|
-
|
|
518
|
+
].forEach((r) => {
|
|
519
|
+
e[r] = ce(r, !1, !1), n[r] = ce(r, !0, !1), t[r] = ce(r, !1, !0), s[r] = ce(
|
|
520
|
+
r,
|
|
521
521
|
!0,
|
|
522
522
|
!0
|
|
523
523
|
);
|
|
@@ -529,39 +529,39 @@ function cn() {
|
|
|
529
529
|
];
|
|
530
530
|
}
|
|
531
531
|
const [
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
] = /* @__PURE__ */
|
|
537
|
-
function
|
|
538
|
-
const n = t ? e ?
|
|
539
|
-
return (s, i,
|
|
540
|
-
|
|
532
|
+
dn,
|
|
533
|
+
hn,
|
|
534
|
+
pn,
|
|
535
|
+
vn
|
|
536
|
+
] = /* @__PURE__ */ fn();
|
|
537
|
+
function me(e, t) {
|
|
538
|
+
const n = t ? e ? vn : pn : e ? hn : dn;
|
|
539
|
+
return (s, i, r) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_raw" ? s : Reflect.get(
|
|
540
|
+
le(n, i) && i in s ? n : s,
|
|
541
541
|
i,
|
|
542
|
-
|
|
542
|
+
r
|
|
543
543
|
);
|
|
544
544
|
}
|
|
545
|
-
const
|
|
546
|
-
get: /* @__PURE__ */
|
|
547
|
-
},
|
|
548
|
-
get: /* @__PURE__ */
|
|
549
|
-
},
|
|
550
|
-
get: /* @__PURE__ */
|
|
551
|
-
},
|
|
552
|
-
get: /* @__PURE__ */
|
|
545
|
+
const _n = {
|
|
546
|
+
get: /* @__PURE__ */ me(!1, !1)
|
|
547
|
+
}, gn = {
|
|
548
|
+
get: /* @__PURE__ */ me(!1, !0)
|
|
549
|
+
}, En = {
|
|
550
|
+
get: /* @__PURE__ */ me(!0, !1)
|
|
551
|
+
}, wn = {
|
|
552
|
+
get: /* @__PURE__ */ me(!0, !0)
|
|
553
553
|
};
|
|
554
|
-
function
|
|
555
|
-
const s =
|
|
554
|
+
function Et(e, t, n) {
|
|
555
|
+
const s = f(n);
|
|
556
556
|
if (s !== n && t.call(e, s)) {
|
|
557
|
-
const i =
|
|
557
|
+
const i = ct(e);
|
|
558
558
|
C(
|
|
559
559
|
`Reactive ${i} contains both the raw and reactive versions of the same object${i === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
560
560
|
);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
const
|
|
564
|
-
function
|
|
563
|
+
const wt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap();
|
|
564
|
+
function mn(e) {
|
|
565
565
|
switch (e) {
|
|
566
566
|
case "Object":
|
|
567
567
|
case "Array":
|
|
@@ -575,59 +575,59 @@ function _n(e) {
|
|
|
575
575
|
return 0;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
578
|
+
function Tn(e) {
|
|
579
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : mn(ct(e));
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return Z(e) ? e :
|
|
581
|
+
function Nt(e) {
|
|
582
|
+
return Z(e) ? e : Te(
|
|
583
583
|
e,
|
|
584
584
|
!1,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
585
|
+
cn,
|
|
586
|
+
_n,
|
|
587
|
+
wt
|
|
588
588
|
);
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
return
|
|
590
|
+
function bn(e) {
|
|
591
|
+
return Te(
|
|
592
592
|
e,
|
|
593
593
|
!1,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
594
|
+
un,
|
|
595
|
+
gn,
|
|
596
|
+
mt
|
|
597
597
|
);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function Rt(e) {
|
|
600
|
+
return Te(
|
|
601
601
|
e,
|
|
602
602
|
!0,
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
603
|
+
an,
|
|
604
|
+
En,
|
|
605
|
+
Tt
|
|
606
606
|
);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
608
|
+
function ns(e) {
|
|
609
|
+
return Te(
|
|
610
610
|
e,
|
|
611
611
|
!0,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
612
|
+
ln,
|
|
613
|
+
wn,
|
|
614
|
+
bt
|
|
615
615
|
);
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
if (!
|
|
617
|
+
function Te(e, t, n, s, i) {
|
|
618
|
+
if (!K(e))
|
|
619
619
|
return process.env.NODE_ENV !== "production" && C(`value cannot be made reactive: ${String(e)}`), e;
|
|
620
620
|
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
621
621
|
return e;
|
|
622
|
-
const
|
|
623
|
-
if (
|
|
624
|
-
return
|
|
625
|
-
const
|
|
626
|
-
if (
|
|
622
|
+
const r = i.get(e);
|
|
623
|
+
if (r)
|
|
624
|
+
return r;
|
|
625
|
+
const o = Tn(e);
|
|
626
|
+
if (o === 0)
|
|
627
627
|
return e;
|
|
628
628
|
const c = new Proxy(
|
|
629
629
|
e,
|
|
630
|
-
|
|
630
|
+
o === 2 ? s : n
|
|
631
631
|
);
|
|
632
632
|
return i.set(e, c), c;
|
|
633
633
|
}
|
|
@@ -637,23 +637,23 @@ function q(e) {
|
|
|
637
637
|
function Z(e) {
|
|
638
638
|
return !!(e && e.__v_isReadonly);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function he(e) {
|
|
641
641
|
return !!(e && e.__v_isShallow);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Nn(e) {
|
|
644
644
|
return e ? !!e.__v_raw : !1;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function f(e) {
|
|
647
647
|
const t = e && e.__v_raw;
|
|
648
|
-
return t ?
|
|
648
|
+
return t ? f(t) : e;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return Object.isExtensible(e) &&
|
|
650
|
+
function ss(e) {
|
|
651
|
+
return Object.isExtensible(e) && Xt(e, "__v_skip", !0), e;
|
|
652
652
|
}
|
|
653
|
-
const ee = (e) =>
|
|
654
|
-
class
|
|
653
|
+
const ee = (e) => K(e) ? Nt(e) : e, Ue = (e) => K(e) ? Rt(e) : e, Rn = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
|
|
654
|
+
class Dt {
|
|
655
655
|
constructor(t, n, s, i) {
|
|
656
|
-
this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new
|
|
656
|
+
this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new fe(
|
|
657
657
|
() => t(this._value),
|
|
658
658
|
() => z(
|
|
659
659
|
this,
|
|
@@ -662,8 +662,8 @@ class Rt {
|
|
|
662
662
|
), this.effect.computed = this, this.effect.active = this._cacheable = !i, this.__v_isReadonly = s;
|
|
663
663
|
}
|
|
664
664
|
get value() {
|
|
665
|
-
const t =
|
|
666
|
-
return (!t._cacheable || t.effect.dirty) &&
|
|
665
|
+
const t = f(this);
|
|
666
|
+
return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && z(t, 4), $e(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && C(Rn, `
|
|
667
667
|
|
|
668
668
|
getter: `, this.getter), z(t, 2)), t._value;
|
|
669
669
|
}
|
|
@@ -681,20 +681,20 @@ getter: `, this.getter), z(t, 2)), t._value;
|
|
|
681
681
|
}
|
|
682
682
|
function v(e, t, n = !1) {
|
|
683
683
|
let s, i;
|
|
684
|
-
const
|
|
685
|
-
|
|
684
|
+
const r = y(e);
|
|
685
|
+
r ? (s = e, i = process.env.NODE_ENV !== "production" ? () => {
|
|
686
686
|
C("Write operation failed: computed value is readonly");
|
|
687
687
|
} : X) : (s = e.get, i = e.set);
|
|
688
|
-
const
|
|
689
|
-
return process.env.NODE_ENV !== "production" && t && !n && (
|
|
688
|
+
const o = new Dt(s, i, r || !i, n);
|
|
689
|
+
return process.env.NODE_ENV !== "production" && t && !n && (o.effect.onTrack = t.onTrack, o.effect.onTrigger = t.onTrigger), o;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function $e(e) {
|
|
692
692
|
var t;
|
|
693
|
-
O && j && (e =
|
|
693
|
+
O && j && (e = f(e), ft(
|
|
694
694
|
j,
|
|
695
|
-
(t = e.dep) != null ? t : e.dep =
|
|
695
|
+
(t = e.dep) != null ? t : e.dep = ht(
|
|
696
696
|
() => e.dep = void 0,
|
|
697
|
-
e instanceof
|
|
697
|
+
e instanceof Dt ? e : void 0
|
|
698
698
|
),
|
|
699
699
|
process.env.NODE_ENV !== "production" ? {
|
|
700
700
|
target: e,
|
|
@@ -704,9 +704,9 @@ function Fe(e) {
|
|
|
704
704
|
));
|
|
705
705
|
}
|
|
706
706
|
function z(e, t = 4, n) {
|
|
707
|
-
e =
|
|
707
|
+
e = f(e);
|
|
708
708
|
const s = e.dep;
|
|
709
|
-
s &&
|
|
709
|
+
s && dt(
|
|
710
710
|
s,
|
|
711
711
|
t,
|
|
712
712
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -717,54 +717,54 @@ function z(e, t = 4, n) {
|
|
|
717
717
|
} : void 0
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function T(e) {
|
|
721
721
|
return !!(e && e.__v_isRef === !0);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function be(e) {
|
|
724
724
|
return St(e, !1);
|
|
725
725
|
}
|
|
726
726
|
function h(e) {
|
|
727
727
|
return St(e, !0);
|
|
728
728
|
}
|
|
729
729
|
function St(e, t) {
|
|
730
|
-
return
|
|
730
|
+
return T(e) ? e : new Dn(e, t);
|
|
731
731
|
}
|
|
732
|
-
class
|
|
732
|
+
class Dn {
|
|
733
733
|
constructor(t, n) {
|
|
734
|
-
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t :
|
|
734
|
+
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : f(t), this._value = n ? t : ee(t);
|
|
735
735
|
}
|
|
736
736
|
get value() {
|
|
737
|
-
return
|
|
737
|
+
return $e(this), this._value;
|
|
738
738
|
}
|
|
739
739
|
set value(t) {
|
|
740
|
-
const n = this.__v_isShallow ||
|
|
741
|
-
t = n ? t :
|
|
740
|
+
const n = this.__v_isShallow || he(t) || Z(t);
|
|
741
|
+
t = n ? t : f(t), H(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ee(t), z(this, 4, t));
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function is(e) {
|
|
745
745
|
z(e, 4, process.env.NODE_ENV !== "production" ? e.value : void 0);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
return
|
|
747
|
+
function yt(e) {
|
|
748
|
+
return T(e) ? e.value : e;
|
|
749
749
|
}
|
|
750
750
|
function a(e) {
|
|
751
|
-
return y(e) ? e() :
|
|
751
|
+
return y(e) ? e() : yt(e);
|
|
752
752
|
}
|
|
753
|
-
const
|
|
754
|
-
get: (e, t, n) =>
|
|
753
|
+
const Sn = {
|
|
754
|
+
get: (e, t, n) => yt(Reflect.get(e, t, n)),
|
|
755
755
|
set: (e, t, n, s) => {
|
|
756
756
|
const i = e[t];
|
|
757
|
-
return
|
|
757
|
+
return T(i) && !T(n) ? (i.value = n, !0) : Reflect.set(e, t, n, s);
|
|
758
758
|
}
|
|
759
759
|
};
|
|
760
|
-
function
|
|
761
|
-
return q(e) ? e : new Proxy(e,
|
|
760
|
+
function rs(e) {
|
|
761
|
+
return q(e) ? e : new Proxy(e, Sn);
|
|
762
762
|
}
|
|
763
|
-
class
|
|
763
|
+
class yn {
|
|
764
764
|
constructor(t) {
|
|
765
765
|
this.dep = void 0, this.__v_isRef = !0;
|
|
766
766
|
const { get: n, set: s } = t(
|
|
767
|
-
() =>
|
|
767
|
+
() => $e(this),
|
|
768
768
|
() => z(this)
|
|
769
769
|
);
|
|
770
770
|
this._get = n, this._set = s;
|
|
@@ -776,17 +776,17 @@ class Rn {
|
|
|
776
776
|
this._set(t);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
return new
|
|
779
|
+
function os(e) {
|
|
780
|
+
return new yn(e);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
783
|
-
process.env.NODE_ENV !== "production" && !
|
|
784
|
-
const t =
|
|
782
|
+
function cs(e) {
|
|
783
|
+
process.env.NODE_ENV !== "production" && !Nn(e) && C("toRefs() expects a reactive object but received a plain one.");
|
|
784
|
+
const t = D(e) ? new Array(e.length) : {};
|
|
785
785
|
for (const n in e)
|
|
786
|
-
t[n] =
|
|
786
|
+
t[n] = Ot(e, n);
|
|
787
787
|
return t;
|
|
788
788
|
}
|
|
789
|
-
class
|
|
789
|
+
class On {
|
|
790
790
|
constructor(t, n, s) {
|
|
791
791
|
this._object = t, this._key = n, this._defaultValue = s, this.__v_isRef = !0;
|
|
792
792
|
}
|
|
@@ -798,10 +798,10 @@ class bn {
|
|
|
798
798
|
this._object[this._key] = t;
|
|
799
799
|
}
|
|
800
800
|
get dep() {
|
|
801
|
-
return
|
|
801
|
+
return nn(f(this._object), this._key);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
class
|
|
804
|
+
class Cn {
|
|
805
805
|
constructor(t) {
|
|
806
806
|
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0;
|
|
807
807
|
}
|
|
@@ -809,23 +809,23 @@ class Sn {
|
|
|
809
809
|
return this._getter();
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
return
|
|
812
|
+
function as(e, t, n) {
|
|
813
|
+
return T(e) ? e : y(e) ? new Cn(e) : K(e) && arguments.length > 1 ? Ot(e, t, n) : be(e);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Ot(e, t, n) {
|
|
816
816
|
const s = e[t];
|
|
817
|
-
return
|
|
817
|
+
return T(s) ? s : new On(e, t, n);
|
|
818
818
|
}
|
|
819
|
-
const
|
|
819
|
+
const us = v, ls = {
|
|
820
820
|
GET: "get",
|
|
821
821
|
HAS: "has",
|
|
822
822
|
ITERATE: "iterate"
|
|
823
|
-
},
|
|
823
|
+
}, fs = {
|
|
824
824
|
SET: "set",
|
|
825
825
|
ADD: "add",
|
|
826
826
|
DELETE: "delete",
|
|
827
827
|
CLEAR: "clear"
|
|
828
|
-
},
|
|
828
|
+
}, An = {
|
|
829
829
|
SKIP: "__v_skip",
|
|
830
830
|
IS_REACTIVE: "__v_isReactive",
|
|
831
831
|
IS_READONLY: "__v_isReadonly",
|
|
@@ -833,14 +833,14 @@ const os = v, rs = {
|
|
|
833
833
|
RAW: "__v_raw"
|
|
834
834
|
};
|
|
835
835
|
function V(e, ...t) {
|
|
836
|
-
|
|
836
|
+
We();
|
|
837
837
|
const n = [`[Vue warn]: ${e}`, ...t];
|
|
838
|
-
console.warn(...n),
|
|
838
|
+
console.warn(...n), ke();
|
|
839
839
|
}
|
|
840
|
-
var
|
|
841
|
-
const
|
|
842
|
-
[
|
|
843
|
-
[
|
|
840
|
+
var Ce = /* @__PURE__ */ ((e) => (e.ACTIVATED = "a", e.DEACTIVATED = "da", e))(Ce || {}), x = /* @__PURE__ */ ((e) => (e[e.SETUP_FUNCTION = 0] = "SETUP_FUNCTION", e[e.RENDER_FUNCTION = 1] = "RENDER_FUNCTION", e[e.WATCH_GETTER = 2] = "WATCH_GETTER", e[e.WATCH_CALLBACK = 3] = "WATCH_CALLBACK", e[e.WATCH_CLEANUP = 4] = "WATCH_CLEANUP", e[e.NATIVE_EVENT_HANDLER = 5] = "NATIVE_EVENT_HANDLER", e[e.COMPONENT_EVENT_HANDLER = 6] = "COMPONENT_EVENT_HANDLER", e[e.VNODE_HOOK = 7] = "VNODE_HOOK", e[e.DIRECTIVE_HOOK = 8] = "DIRECTIVE_HOOK", e[e.TRANSITION_HOOK = 9] = "TRANSITION_HOOK", e[e.APP_ERROR_HANDLER = 10] = "APP_ERROR_HANDLER", e[e.APP_WARN_HANDLER = 11] = "APP_WARN_HANDLER", e[e.FUNCTION_REF = 12] = "FUNCTION_REF", e[e.ASYNC_COMPONENT_LOADER = 13] = "ASYNC_COMPONENT_LOADER", e[e.SCHEDULER = 14] = "SCHEDULER", e))(x || {});
|
|
841
|
+
const In = {
|
|
842
|
+
[Ce.ACTIVATED]: "activated hook",
|
|
843
|
+
[Ce.DEACTIVATED]: "deactivated hook",
|
|
844
844
|
0: "setup function",
|
|
845
845
|
1: "render function",
|
|
846
846
|
2: "watcher getter",
|
|
@@ -861,67 +861,67 @@ function Q(e, t, n, s) {
|
|
|
861
861
|
try {
|
|
862
862
|
return s ? e(...s) : e();
|
|
863
863
|
} catch (i) {
|
|
864
|
-
|
|
864
|
+
Ge(i, t, n);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Ae(e, t, n, s) {
|
|
868
868
|
if (y(e)) {
|
|
869
869
|
const i = Q(e, t, n, s);
|
|
870
|
-
return i &&
|
|
871
|
-
|
|
870
|
+
return i && Bt(i) && i.catch((r) => {
|
|
871
|
+
Ge(r, t, n);
|
|
872
872
|
}), i;
|
|
873
873
|
}
|
|
874
|
-
if (
|
|
874
|
+
if (D(e)) {
|
|
875
875
|
const i = [];
|
|
876
|
-
for (let
|
|
877
|
-
i.push(
|
|
876
|
+
for (let r = 0; r < e.length; r++)
|
|
877
|
+
i.push(Ae(e[r], t, n, s));
|
|
878
878
|
return i;
|
|
879
879
|
} else
|
|
880
880
|
process.env.NODE_ENV !== "production" && V(
|
|
881
881
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
882
882
|
);
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
884
|
+
function Ge(e, t, n, s = !0) {
|
|
885
|
+
Vn(e, n, null, s);
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Vn(e, t, n, s = !0) {
|
|
888
888
|
if (process.env.NODE_ENV !== "production") {
|
|
889
|
-
const i =
|
|
889
|
+
const i = In[t];
|
|
890
890
|
if (V(`Unhandled error${i ? ` during execution of ${i}` : ""}`), s)
|
|
891
891
|
throw e;
|
|
892
892
|
console.error(e);
|
|
893
893
|
} else
|
|
894
894
|
console.error(e);
|
|
895
895
|
}
|
|
896
|
-
let
|
|
897
|
-
const
|
|
898
|
-
let
|
|
899
|
-
const
|
|
900
|
-
let
|
|
901
|
-
const
|
|
902
|
-
function
|
|
903
|
-
const t =
|
|
896
|
+
let pe = !1, Ie = !1;
|
|
897
|
+
const R = [];
|
|
898
|
+
let L = 0;
|
|
899
|
+
const Ct = /* @__PURE__ */ Promise.resolve();
|
|
900
|
+
let ze = null;
|
|
901
|
+
const xn = 100;
|
|
902
|
+
function ds(e) {
|
|
903
|
+
const t = ze || Ct;
|
|
904
904
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
let t =
|
|
906
|
+
function Ln(e) {
|
|
907
|
+
let t = L + 1, n = R.length;
|
|
908
908
|
for (; t < n; ) {
|
|
909
|
-
const s = t + n >>> 1, i =
|
|
910
|
-
|
|
909
|
+
const s = t + n >>> 1, i = R[s], r = Ve(i);
|
|
910
|
+
r < e || r === e && i.pre ? t = s + 1 : n = s;
|
|
911
911
|
}
|
|
912
912
|
return t;
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
(!
|
|
914
|
+
function Pn(e) {
|
|
915
|
+
(!R.length || !R.includes(
|
|
916
916
|
e,
|
|
917
|
-
|
|
918
|
-
)) && (e.id == null ?
|
|
917
|
+
pe && e.allowRecurse ? L + 1 : L
|
|
918
|
+
)) && (e.id == null ? R.push(e) : R.splice(Ln(e.id), 0, e), Mn());
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
!
|
|
920
|
+
function Mn() {
|
|
921
|
+
!pe && !Ie && (Ie = !0, ze = Ct.then(At));
|
|
922
922
|
}
|
|
923
|
-
const
|
|
924
|
-
const n =
|
|
923
|
+
const Ve = (e) => e.id == null ? 1 / 0 : e.id, Hn = (e, t) => {
|
|
924
|
+
const n = Ve(e) - Ve(t);
|
|
925
925
|
if (n === 0) {
|
|
926
926
|
if (e.pre && !t.pre)
|
|
927
927
|
return -1;
|
|
@@ -930,64 +930,64 @@ const Ae = (e) => e.id == null ? 1 / 0 : e.id, Ln = (e, t) => {
|
|
|
930
930
|
}
|
|
931
931
|
return n;
|
|
932
932
|
};
|
|
933
|
-
function
|
|
934
|
-
|
|
935
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
933
|
+
function At(e) {
|
|
934
|
+
Ie = !1, pe = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), R.sort(Hn);
|
|
935
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => Wn(e, n) : X;
|
|
936
936
|
try {
|
|
937
|
-
for (
|
|
938
|
-
const n =
|
|
937
|
+
for (L = 0; L < R.length; L++) {
|
|
938
|
+
const n = R[L];
|
|
939
939
|
if (n && n.active !== !1) {
|
|
940
940
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
941
941
|
continue;
|
|
942
|
-
Q(n, null,
|
|
942
|
+
Q(n, null, x.SCHEDULER);
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
} finally {
|
|
946
|
-
|
|
946
|
+
L = 0, R.length = 0, pe = !1, ze = null, R.length && At(e);
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function Wn(e, t) {
|
|
950
950
|
if (!e.has(t))
|
|
951
951
|
e.set(t, 1);
|
|
952
952
|
else {
|
|
953
953
|
const n = e.get(t);
|
|
954
|
-
if (n >
|
|
955
|
-
return
|
|
954
|
+
if (n > xn)
|
|
955
|
+
return Ge(
|
|
956
956
|
"Maximum recursive updates exceeded. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.",
|
|
957
957
|
null,
|
|
958
|
-
|
|
958
|
+
x.APP_ERROR_HANDLER
|
|
959
959
|
), !0;
|
|
960
960
|
e.set(t, n + 1);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
return
|
|
963
|
+
function S(e, t) {
|
|
964
|
+
return Be(e, null, t);
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
return
|
|
966
|
+
function hs(e, t) {
|
|
967
|
+
return Be(
|
|
968
968
|
e,
|
|
969
969
|
null,
|
|
970
|
-
process.env.NODE_ENV !== "production" ?
|
|
970
|
+
process.env.NODE_ENV !== "production" ? ge({}, t, { flush: "sync" }) : { flush: "sync" }
|
|
971
971
|
);
|
|
972
972
|
}
|
|
973
973
|
const ae = {};
|
|
974
|
-
function
|
|
974
|
+
function U(e, t, n) {
|
|
975
975
|
return process.env.NODE_ENV !== "production" && !y(t) && V(
|
|
976
976
|
"`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
|
|
977
|
-
),
|
|
977
|
+
), Be(e, t, n);
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Be(e, t, {
|
|
980
980
|
immediate: n,
|
|
981
981
|
deep: s,
|
|
982
982
|
flush: i,
|
|
983
|
-
once:
|
|
984
|
-
onTrack:
|
|
983
|
+
once: r,
|
|
984
|
+
onTrack: o,
|
|
985
985
|
onTrigger: c
|
|
986
|
-
} =
|
|
987
|
-
if (t &&
|
|
986
|
+
} = Kt) {
|
|
987
|
+
if (t && r) {
|
|
988
988
|
const p = t;
|
|
989
|
-
t = (...
|
|
990
|
-
p(...
|
|
989
|
+
t = (...Re) => {
|
|
990
|
+
p(...Re), qe();
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
993
|
process.env.NODE_ENV !== "production" && s !== void 0 && typeof s == "number" && V(
|
|
@@ -996,236 +996,273 @@ function ze(e, t, {
|
|
|
996
996
|
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
997
997
|
), s !== void 0 && V(
|
|
998
998
|
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
|
|
999
|
-
),
|
|
999
|
+
), r !== void 0 && V(
|
|
1000
1000
|
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1001
1001
|
));
|
|
1002
|
-
const
|
|
1002
|
+
const d = (p) => {
|
|
1003
1003
|
V(
|
|
1004
1004
|
"Invalid watch source: ",
|
|
1005
1005
|
p,
|
|
1006
1006
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
1007
1007
|
);
|
|
1008
|
-
},
|
|
1008
|
+
}, _ = null, w = (p) => s === !0 ? p : (
|
|
1009
1009
|
// for deep: false, only traverse root-level properties
|
|
1010
|
-
|
|
1010
|
+
k(p, s === !1 ? 1 : void 0)
|
|
1011
1011
|
);
|
|
1012
|
-
let
|
|
1013
|
-
if (
|
|
1014
|
-
if (
|
|
1012
|
+
let g, A = !1, ne = !1;
|
|
1013
|
+
if (T(e) ? (g = () => e.value, A = he(e)) : q(e) ? (g = () => w(e), A = !0) : D(e) ? (ne = !0, A = e.some((p) => q(p) || he(p)), g = () => e.map((p) => {
|
|
1014
|
+
if (T(p))
|
|
1015
1015
|
return p.value;
|
|
1016
1016
|
if (q(p))
|
|
1017
1017
|
return w(p);
|
|
1018
1018
|
if (y(p))
|
|
1019
|
-
return Q(p,
|
|
1020
|
-
process.env.NODE_ENV !== "production" &&
|
|
1021
|
-
})) : y(e) ? t ?
|
|
1019
|
+
return Q(p, _, x.WATCH_GETTER);
|
|
1020
|
+
process.env.NODE_ENV !== "production" && d(p);
|
|
1021
|
+
})) : y(e) ? t ? g = () => Q(e, _, x.WATCH_GETTER) : g = () => ($ && $(), Ae(
|
|
1022
1022
|
e,
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
[
|
|
1026
|
-
)) : (
|
|
1027
|
-
const p =
|
|
1028
|
-
|
|
1029
|
-
}
|
|
1030
|
-
let
|
|
1031
|
-
|
|
1032
|
-
Q(p,
|
|
1023
|
+
_,
|
|
1024
|
+
x.WATCH_CALLBACK,
|
|
1025
|
+
[Ye]
|
|
1026
|
+
)) : (g = X, process.env.NODE_ENV !== "production" && d(e)), t && s) {
|
|
1027
|
+
const p = g;
|
|
1028
|
+
g = () => k(p());
|
|
1029
|
+
}
|
|
1030
|
+
let $, Ye = (p) => {
|
|
1031
|
+
$ = b.onStop = () => {
|
|
1032
|
+
Q(p, _, x.WATCH_CLEANUP), $ = b.onStop = void 0;
|
|
1033
1033
|
};
|
|
1034
|
-
},
|
|
1034
|
+
}, W = ne ? new Array(e.length).fill(ae) : ae;
|
|
1035
1035
|
const Y = () => {
|
|
1036
|
-
if (!(!
|
|
1036
|
+
if (!(!b.active || !b.dirty))
|
|
1037
1037
|
if (t) {
|
|
1038
|
-
const p =
|
|
1039
|
-
(s || A || (ne ? p.some((
|
|
1038
|
+
const p = b.run();
|
|
1039
|
+
(s || A || (ne ? p.some((Re, Ht) => H(Re, W[Ht])) : H(p, W))) && ($ && $(), Ae(t, _, x.WATCH_CALLBACK, [
|
|
1040
1040
|
p,
|
|
1041
1041
|
// pass undefined as the old value when it's changed for the first time
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
]),
|
|
1042
|
+
W === ae ? void 0 : ne && W[0] === ae ? [] : W,
|
|
1043
|
+
Ye
|
|
1044
|
+
]), W = p);
|
|
1045
1045
|
} else
|
|
1046
|
-
|
|
1046
|
+
b.run();
|
|
1047
1047
|
};
|
|
1048
1048
|
Y.allowRecurse = !!t;
|
|
1049
|
-
let
|
|
1050
|
-
i === "sync" ?
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1049
|
+
let Ne;
|
|
1050
|
+
i === "sync" ? Ne = Y : (Y.pre = !0, Ne = () => Pn(Y));
|
|
1051
|
+
const b = new fe(g, X, Ne), Je = Me(), qe = () => {
|
|
1052
|
+
b.stop(), Je && Ut(Je.effects, b);
|
|
1053
1053
|
};
|
|
1054
|
-
return process.env.NODE_ENV !== "production" && (
|
|
1054
|
+
return process.env.NODE_ENV !== "production" && (b.onTrack = o, b.onTrigger = c), t ? n ? Y() : W = b.run() : b.run(), qe;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1057
|
-
if (t <= 0 || !
|
|
1056
|
+
function k(e, t = 1 / 0, n) {
|
|
1057
|
+
if (t <= 0 || !K(e) || e[An.SKIP] || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
1058
1058
|
return e;
|
|
1059
|
-
if (n.add(e), t--,
|
|
1060
|
-
|
|
1061
|
-
else if (
|
|
1059
|
+
if (n.add(e), t--, T(e))
|
|
1060
|
+
k(e.value, t, n);
|
|
1061
|
+
else if (D(e))
|
|
1062
1062
|
for (let s = 0; s < e.length; s++)
|
|
1063
|
-
|
|
1064
|
-
else if (
|
|
1063
|
+
k(e[s], t, n);
|
|
1064
|
+
else if (Gt(e) || G(e))
|
|
1065
1065
|
e.forEach((s) => {
|
|
1066
|
-
|
|
1066
|
+
k(s, t, n);
|
|
1067
1067
|
});
|
|
1068
|
-
else if (
|
|
1068
|
+
else if (Jt(e)) {
|
|
1069
1069
|
for (const s in e)
|
|
1070
|
-
|
|
1070
|
+
k(e[s], t, n);
|
|
1071
1071
|
for (const s of Object.getOwnPropertySymbols(e))
|
|
1072
|
-
Object.prototype.propertyIsEnumerable.call(e, s) &&
|
|
1072
|
+
Object.prototype.propertyIsEnumerable.call(e, s) && k(e[s], t, n);
|
|
1073
1073
|
}
|
|
1074
1074
|
return e;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return
|
|
1076
|
+
function kn(e) {
|
|
1077
|
+
return Me() ? (ut(e), !0) : !1;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function It(e, t) {
|
|
1080
1080
|
const n = /* @__PURE__ */ new Map();
|
|
1081
1081
|
return (...s) => {
|
|
1082
1082
|
const i = t(...s);
|
|
1083
|
-
let
|
|
1084
|
-
return
|
|
1083
|
+
let r = n.get(i);
|
|
1084
|
+
return r ? r.refCount++ : (r = {
|
|
1085
1085
|
data: e(...s),
|
|
1086
1086
|
refCount: 1
|
|
1087
|
-
}, n.set(i,
|
|
1088
|
-
--
|
|
1089
|
-
}),
|
|
1087
|
+
}, n.set(i, r)), kn(() => {
|
|
1088
|
+
--r.refCount === 0 && n.delete(i);
|
|
1089
|
+
}), r.data;
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function E(e) {
|
|
1093
1093
|
let t;
|
|
1094
1094
|
return () => t ?? (t = e());
|
|
1095
1095
|
}
|
|
1096
|
-
const
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1096
|
+
const Vt = [];
|
|
1097
|
+
function ps(e) {
|
|
1098
|
+
Vt.push(e);
|
|
1099
1099
|
}
|
|
1100
|
-
const
|
|
1101
|
-
function
|
|
1100
|
+
const ve = h(null), xe = en();
|
|
1101
|
+
function vs(e) {
|
|
1102
1102
|
return {
|
|
1103
1103
|
activate: (t) => {
|
|
1104
|
-
|
|
1105
|
-
|
|
1104
|
+
ve.value = t, xe.run(() => {
|
|
1105
|
+
xt.map((n) => n(t)), e();
|
|
1106
1106
|
});
|
|
1107
1107
|
},
|
|
1108
1108
|
deactivate: () => {
|
|
1109
|
-
|
|
1109
|
+
Vt.map((t) => t()), xe.stop();
|
|
1110
1110
|
}
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1114
|
-
function
|
|
1115
|
-
|
|
1116
|
-
}
|
|
1117
|
-
function
|
|
1118
|
-
const s =
|
|
1119
|
-
function i(
|
|
1120
|
-
const
|
|
1121
|
-
return
|
|
1122
|
-
await s.update(
|
|
1123
|
-
},
|
|
1113
|
+
const xt = [];
|
|
1114
|
+
function jn(e) {
|
|
1115
|
+
ve.value ? e(ve.value) : xt.push(e);
|
|
1116
|
+
}
|
|
1117
|
+
function _s(e, t, n) {
|
|
1118
|
+
const s = P.getConfiguration(e, n);
|
|
1119
|
+
function i(o, c) {
|
|
1120
|
+
const d = h(c);
|
|
1121
|
+
return d.update = async (_, w, g) => {
|
|
1122
|
+
await s.update(o, _, w, g), d.value = _;
|
|
1123
|
+
}, d;
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1126
|
-
Object.keys(t).map((
|
|
1125
|
+
const r = Object.fromEntries(
|
|
1126
|
+
Object.keys(t).map((o) => [o, i(o, s.get(o))])
|
|
1127
1127
|
);
|
|
1128
|
-
return
|
|
1129
|
-
u(
|
|
1130
|
-
if (!
|
|
1128
|
+
return jn(() => {
|
|
1129
|
+
u(P.onDidChangeConfiguration((o) => {
|
|
1130
|
+
if (!o.affectsConfiguration(e))
|
|
1131
1131
|
return;
|
|
1132
|
-
const c =
|
|
1133
|
-
for (const
|
|
1134
|
-
|
|
1132
|
+
const c = P.getConfiguration(e);
|
|
1133
|
+
for (const d in t)
|
|
1134
|
+
o.affectsConfiguration(`${e}.${d}`) && (r[d].value = c.get(d));
|
|
1135
1135
|
}));
|
|
1136
|
-
}),
|
|
1136
|
+
}), r;
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1138
|
+
function gs(e, ...t) {
|
|
1139
|
+
return _e.executeCommand(e, ...t);
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1141
|
+
function Fn(e, t = !1) {
|
|
1142
|
+
const n = ve.value;
|
|
1143
|
+
if (!n && !t)
|
|
1144
|
+
throw new Error("Cannot get absolute path because the extension is not activated yet");
|
|
1145
|
+
return n == null ? void 0 : n.asAbsolutePath(e);
|
|
1146
|
+
}
|
|
1147
|
+
function Es(e, t = !1) {
|
|
1148
|
+
return v(() => Fn(a(e), t));
|
|
1148
1149
|
}
|
|
1149
1150
|
function u(e) {
|
|
1150
|
-
return (
|
|
1151
|
+
return (Me() ?? xe).cleanups.push(e.dispose.bind(e)), e;
|
|
1151
1152
|
}
|
|
1152
|
-
const
|
|
1153
|
-
const e = h(
|
|
1154
|
-
return u(
|
|
1153
|
+
const Kn = E(() => {
|
|
1154
|
+
const e = h(l.activeColorTheme);
|
|
1155
|
+
return u(l.onDidChangeActiveColorTheme((t) => {
|
|
1155
1156
|
e.value = t;
|
|
1156
1157
|
})), e;
|
|
1157
|
-
}),
|
|
1158
|
-
const e = h(
|
|
1159
|
-
return u(
|
|
1158
|
+
}), ws = E(() => {
|
|
1159
|
+
const e = h(Qe.activeDebugSession);
|
|
1160
|
+
return u(Qe.onDidChangeActiveDebugSession((t) => {
|
|
1160
1161
|
e.value = t;
|
|
1161
1162
|
})), v(() => e.value);
|
|
1162
|
-
}),
|
|
1163
|
-
const e = h(
|
|
1164
|
-
return u(
|
|
1163
|
+
}), Un = E(() => {
|
|
1164
|
+
const e = h(l.activeTextEditor);
|
|
1165
|
+
return u(l.onDidChangeActiveTextEditor((t) => {
|
|
1165
1166
|
e.value = t;
|
|
1166
1167
|
})), e;
|
|
1167
1168
|
});
|
|
1168
|
-
function
|
|
1169
|
-
const s = "key" in t ? t :
|
|
1170
|
-
|
|
1169
|
+
function $n(e, t, n) {
|
|
1170
|
+
const s = "key" in t ? t : l.createTextEditorDecorationType(t);
|
|
1171
|
+
S(() => {
|
|
1171
1172
|
var i;
|
|
1172
1173
|
(i = a(e)) == null || i.setDecorations(s, a(n));
|
|
1173
1174
|
});
|
|
1174
1175
|
}
|
|
1175
|
-
function
|
|
1176
|
-
const n =
|
|
1177
|
-
|
|
1176
|
+
function ms(e, t) {
|
|
1177
|
+
const n = Un();
|
|
1178
|
+
$n(n, e, t);
|
|
1178
1179
|
}
|
|
1179
|
-
const
|
|
1180
|
-
const e = h(
|
|
1181
|
-
return u(
|
|
1180
|
+
const Ts = E(() => {
|
|
1181
|
+
const e = h(l.activeNotebookEditor);
|
|
1182
|
+
return u(l.onDidChangeActiveNotebookEditor((t) => {
|
|
1182
1183
|
e.value = t;
|
|
1183
1184
|
})), e;
|
|
1184
|
-
}),
|
|
1185
|
-
const e = h(
|
|
1186
|
-
return u(
|
|
1185
|
+
}), bs = E(() => {
|
|
1186
|
+
const e = h(l.activeTerminal);
|
|
1187
|
+
return u(l.onDidChangeActiveTerminal((t) => {
|
|
1187
1188
|
e.value = t;
|
|
1188
1189
|
})), e;
|
|
1189
|
-
}),
|
|
1190
|
-
const e = h(
|
|
1191
|
-
return u(
|
|
1192
|
-
e.value =
|
|
1190
|
+
}), Ns = E(() => {
|
|
1191
|
+
const e = h(De.all);
|
|
1192
|
+
return u(De.onDidChange(() => {
|
|
1193
|
+
e.value = De.all;
|
|
1193
1194
|
})), v(() => e.value);
|
|
1194
1195
|
});
|
|
1195
|
-
function
|
|
1196
|
-
u(
|
|
1196
|
+
function Gn(e, t) {
|
|
1197
|
+
u(_e.registerCommand(e, t));
|
|
1197
1198
|
}
|
|
1198
|
-
function
|
|
1199
|
+
function Rs(e) {
|
|
1199
1200
|
for (const [t, n] of Object.entries(e))
|
|
1200
|
-
n &&
|
|
1201
|
+
n && Gn(t, n);
|
|
1202
|
+
}
|
|
1203
|
+
function Ds(e, t) {
|
|
1204
|
+
return u(Wt.createCommentController(e, t));
|
|
1205
|
+
}
|
|
1206
|
+
function Lt(e) {
|
|
1207
|
+
var n;
|
|
1208
|
+
const t = h((n = a(e)) == null ? void 0 : n.state);
|
|
1209
|
+
return U(e, () => {
|
|
1210
|
+
var s;
|
|
1211
|
+
t.value = (s = a(e)) == null ? void 0 : s.state;
|
|
1212
|
+
}), u(l.onDidChangeTerminalState((s) => {
|
|
1213
|
+
s === a(e) && (t.value = s.state);
|
|
1214
|
+
})), v(() => t.value);
|
|
1201
1215
|
}
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1216
|
+
function Ss(...e) {
|
|
1217
|
+
const t = be(null);
|
|
1218
|
+
function n() {
|
|
1219
|
+
return !!t.value && t.value.exitStatus == null;
|
|
1220
|
+
}
|
|
1221
|
+
function s() {
|
|
1222
|
+
return n() ? t.value : t.value = l.createTerminal(...e);
|
|
1223
|
+
}
|
|
1224
|
+
async function i(c) {
|
|
1225
|
+
s().sendText(c);
|
|
1226
|
+
}
|
|
1227
|
+
async function r() {
|
|
1228
|
+
s().show();
|
|
1229
|
+
}
|
|
1230
|
+
function o() {
|
|
1231
|
+
n() && (t.value.sendText(""), t.value.dispose(), t.value = null);
|
|
1232
|
+
}
|
|
1233
|
+
return ut(o), {
|
|
1234
|
+
terminal: t,
|
|
1235
|
+
getIsActive: n,
|
|
1236
|
+
show: r,
|
|
1237
|
+
sendText: i,
|
|
1238
|
+
close: o,
|
|
1239
|
+
state: Lt(t)
|
|
1240
|
+
};
|
|
1204
1241
|
}
|
|
1205
|
-
const
|
|
1206
|
-
const e = h(
|
|
1207
|
-
return u(
|
|
1242
|
+
const ys = E(() => {
|
|
1243
|
+
const e = h(B.shell);
|
|
1244
|
+
return u(B.onDidChangeShell((t) => {
|
|
1208
1245
|
e.value = t;
|
|
1209
1246
|
})), v(() => e.value);
|
|
1210
1247
|
});
|
|
1211
|
-
function
|
|
1248
|
+
function Os(e) {
|
|
1212
1249
|
var n;
|
|
1213
1250
|
const t = h((n = a(e)) == null ? void 0 : n.getText());
|
|
1214
|
-
return
|
|
1251
|
+
return S(() => {
|
|
1215
1252
|
var s;
|
|
1216
1253
|
t.value = (s = a(e)) == null ? void 0 : s.getText();
|
|
1217
|
-
}), u(
|
|
1254
|
+
}), u(P.onDidChangeTextDocument((s) => {
|
|
1218
1255
|
s.document === a(e) && (t.value = s.document.getText());
|
|
1219
1256
|
})), t;
|
|
1220
1257
|
}
|
|
1221
|
-
function
|
|
1222
|
-
const n = (s, i,
|
|
1258
|
+
function ue(e, t = []) {
|
|
1259
|
+
const n = (s, i, r) => u(e(s, i, r));
|
|
1223
1260
|
for (const s of t)
|
|
1224
1261
|
n(s);
|
|
1225
1262
|
return n;
|
|
1226
1263
|
}
|
|
1227
|
-
function
|
|
1228
|
-
const t = u(new
|
|
1264
|
+
function Cs(e = []) {
|
|
1265
|
+
const t = u(new Le()), n = ue(t.event, e);
|
|
1229
1266
|
for (const s of e)
|
|
1230
1267
|
n(s);
|
|
1231
1268
|
return {
|
|
@@ -1234,11 +1271,11 @@ function bs(e = []) {
|
|
|
1234
1271
|
addListener: n
|
|
1235
1272
|
};
|
|
1236
1273
|
}
|
|
1237
|
-
function
|
|
1274
|
+
function As(e) {
|
|
1238
1275
|
return v(() => J.fetchTasks(a(e)));
|
|
1239
1276
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return
|
|
1277
|
+
function zn(e) {
|
|
1278
|
+
return bn({
|
|
1242
1279
|
get scheme() {
|
|
1243
1280
|
return a(e).scheme;
|
|
1244
1281
|
},
|
|
@@ -1268,52 +1305,61 @@ function Fn(e) {
|
|
|
1268
1305
|
}
|
|
1269
1306
|
});
|
|
1270
1307
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1308
|
+
function Is(e) {
|
|
1309
|
+
return zn(() => kt.file(a(e)));
|
|
1273
1310
|
}
|
|
1274
|
-
function
|
|
1275
|
-
const n = new
|
|
1276
|
-
|
|
1311
|
+
function Vs(e, t) {
|
|
1312
|
+
const n = new Le(), s = h();
|
|
1313
|
+
S(() => {
|
|
1277
1314
|
s.value && n.fire(), s.value = a(t);
|
|
1278
|
-
}), u(
|
|
1315
|
+
}), u(jt.registerFoldingRangeProvider(
|
|
1279
1316
|
e,
|
|
1280
1317
|
{
|
|
1281
1318
|
onDidChangeFoldingRanges: n.event,
|
|
1282
|
-
provideFoldingRanges(i,
|
|
1319
|
+
provideFoldingRanges(i, r, o) {
|
|
1283
1320
|
var c;
|
|
1284
|
-
return (c = s.value) == null ? void 0 : c.call(s, i,
|
|
1321
|
+
return (c = s.value) == null ? void 0 : c.call(s, i, r, o);
|
|
1285
1322
|
}
|
|
1286
1323
|
}
|
|
1287
1324
|
));
|
|
1288
1325
|
}
|
|
1289
|
-
|
|
1290
|
-
const
|
|
1291
|
-
return
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1326
|
+
function xs(e, t, n, s) {
|
|
1327
|
+
const i = u(P.createFileSystemWatcher(e, t, n, s));
|
|
1328
|
+
return {
|
|
1329
|
+
...i,
|
|
1330
|
+
onDidCreate: ue(i.onDidCreate),
|
|
1331
|
+
onDidChange: ue(i.onDidChange),
|
|
1332
|
+
onDidDelete: ue(i.onDidDelete)
|
|
1333
|
+
};
|
|
1334
|
+
}
|
|
1335
|
+
const Ls = E(() => {
|
|
1336
|
+
const e = Kn();
|
|
1337
|
+
return v(() => e.value.kind === Xe.Dark || e.value.kind === Xe.HighContrast);
|
|
1338
|
+
}), Ps = E(() => {
|
|
1339
|
+
const e = h(B.isTelemetryEnabled);
|
|
1340
|
+
return u(B.onDidChangeTelemetryEnabled((t) => {
|
|
1295
1341
|
e.value = t;
|
|
1296
1342
|
})), v(() => e.value);
|
|
1297
1343
|
});
|
|
1298
|
-
function
|
|
1299
|
-
return v(() => typeof t[0] == "object" ?
|
|
1344
|
+
function Ms(e, ...t) {
|
|
1345
|
+
return v(() => typeof t[0] == "object" ? Ze.t(a(e), f(t[0])) : Ze.t(a(e), ...t.map(a)));
|
|
1300
1346
|
}
|
|
1301
|
-
const
|
|
1302
|
-
const e = h(
|
|
1303
|
-
return u(
|
|
1347
|
+
const Hs = E(() => {
|
|
1348
|
+
const e = h(B.logLevel);
|
|
1349
|
+
return u(B.onDidChangeLogLevel((t) => {
|
|
1304
1350
|
e.value = t;
|
|
1305
1351
|
})), v(() => e.value);
|
|
1306
1352
|
});
|
|
1307
|
-
function
|
|
1308
|
-
return u(
|
|
1353
|
+
function Bn(e, t) {
|
|
1354
|
+
return u(l.createOutputChannel(e, t));
|
|
1309
1355
|
}
|
|
1310
|
-
function
|
|
1311
|
-
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), s = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"),
|
|
1312
|
-
return `${n}-${s}-${i} ${
|
|
1356
|
+
function Yn(e) {
|
|
1357
|
+
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), s = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), r = String(t.getHours()).padStart(2, "0"), o = String(t.getMinutes()).padStart(2, "0"), c = String(t.getSeconds()).padStart(2, "0"), d = String(t.getMilliseconds()).padStart(3, "0");
|
|
1358
|
+
return `${n}-${s}-${i} ${r}:${o}:${c}.${d} [${e}] `;
|
|
1313
1359
|
}
|
|
1314
|
-
function
|
|
1315
|
-
const n =
|
|
1316
|
-
n.appendLine(t(i) +
|
|
1360
|
+
function Ws(e, t = Yn) {
|
|
1361
|
+
const n = Bn(e), s = (i) => (...r) => {
|
|
1362
|
+
n.appendLine(t(i) + r.join(" "));
|
|
1317
1363
|
};
|
|
1318
1364
|
return {
|
|
1319
1365
|
outputChannel: n,
|
|
@@ -1329,13 +1375,13 @@ function Vs(e, t = $n) {
|
|
|
1329
1375
|
hide: n.hide.bind(n)
|
|
1330
1376
|
};
|
|
1331
1377
|
}
|
|
1332
|
-
function
|
|
1378
|
+
function Jn(e) {
|
|
1333
1379
|
var n;
|
|
1334
1380
|
const t = h(((n = a(e)) == null ? void 0 : n.selections) ?? []);
|
|
1335
|
-
return
|
|
1381
|
+
return U(e, () => {
|
|
1336
1382
|
var s;
|
|
1337
1383
|
t.value = ((s = a(e)) == null ? void 0 : s.selections) ?? [];
|
|
1338
|
-
}), u(
|
|
1384
|
+
}), u(l.onDidChangeNotebookEditorSelection((s) => {
|
|
1339
1385
|
s.notebookEditor === a(e) && (t.value = s.selections);
|
|
1340
1386
|
})), v({
|
|
1341
1387
|
get() {
|
|
@@ -1348,8 +1394,8 @@ function zn(e) {
|
|
|
1348
1394
|
}
|
|
1349
1395
|
});
|
|
1350
1396
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const t =
|
|
1397
|
+
function ks(e) {
|
|
1398
|
+
const t = Jn(e);
|
|
1353
1399
|
return v({
|
|
1354
1400
|
get() {
|
|
1355
1401
|
return t.value[0];
|
|
@@ -1359,28 +1405,28 @@ function Ls(e) {
|
|
|
1359
1405
|
}
|
|
1360
1406
|
});
|
|
1361
1407
|
}
|
|
1362
|
-
function
|
|
1408
|
+
function js(e) {
|
|
1363
1409
|
var n;
|
|
1364
1410
|
const t = h(((n = a(e)) == null ? void 0 : n.visibleRanges) ?? []);
|
|
1365
|
-
return
|
|
1411
|
+
return U(e, () => {
|
|
1366
1412
|
var s;
|
|
1367
1413
|
t.value = ((s = a(e)) == null ? void 0 : s.visibleRanges) ?? [];
|
|
1368
|
-
}), u(
|
|
1414
|
+
}), u(l.onDidChangeNotebookEditorVisibleRanges((s) => {
|
|
1369
1415
|
s.notebookEditor === a(e) && (t.value = s.visibleRanges);
|
|
1370
1416
|
})), v(() => t.value);
|
|
1371
1417
|
}
|
|
1372
|
-
const
|
|
1373
|
-
const e = h(
|
|
1418
|
+
const Fs = E(() => {
|
|
1419
|
+
const e = h(l.terminals);
|
|
1374
1420
|
function t() {
|
|
1375
|
-
e.value =
|
|
1421
|
+
e.value = l.terminals;
|
|
1376
1422
|
}
|
|
1377
|
-
return u(
|
|
1423
|
+
return u(l.onDidOpenTerminal(t)), u(l.onDidCloseTerminal(t)), e;
|
|
1378
1424
|
});
|
|
1379
|
-
function
|
|
1380
|
-
const t = u(e.id ?
|
|
1425
|
+
function Ks(e) {
|
|
1426
|
+
const t = u(e.id ? l.createStatusBarItem(e.id, e.alignment, e.priority) : l.createStatusBarItem(e.alignment, e.priority));
|
|
1381
1427
|
function n(s) {
|
|
1382
1428
|
const i = e[s];
|
|
1383
|
-
i != null &&
|
|
1429
|
+
i != null && S(() => t[s] = a(i));
|
|
1384
1430
|
}
|
|
1385
1431
|
return [
|
|
1386
1432
|
"name",
|
|
@@ -1392,50 +1438,64 @@ function Ms(e) {
|
|
|
1392
1438
|
"accessibilityInformation"
|
|
1393
1439
|
].forEach(n), t;
|
|
1394
1440
|
}
|
|
1395
|
-
const
|
|
1441
|
+
const Us = E(() => {
|
|
1396
1442
|
const e = h(J.taskExecutions);
|
|
1397
1443
|
function t() {
|
|
1398
1444
|
e.value = J.taskExecutions;
|
|
1399
1445
|
}
|
|
1400
1446
|
return u(J.onDidStartTask(t)), u(J.onDidEndTask(t)), v(() => e.value);
|
|
1401
|
-
})
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
)
|
|
1410
|
-
|
|
1411
|
-
|
|
1447
|
+
});
|
|
1448
|
+
function $s(...e) {
|
|
1449
|
+
const t = u(l.createTerminal(...e));
|
|
1450
|
+
return {
|
|
1451
|
+
terminal: t,
|
|
1452
|
+
get name() {
|
|
1453
|
+
return t.name;
|
|
1454
|
+
},
|
|
1455
|
+
get processId() {
|
|
1456
|
+
return t.processId;
|
|
1457
|
+
},
|
|
1458
|
+
get creationOptions() {
|
|
1459
|
+
return t.creationOptions;
|
|
1460
|
+
},
|
|
1461
|
+
get exitStatus() {
|
|
1462
|
+
return t.exitStatus;
|
|
1463
|
+
},
|
|
1464
|
+
sendText: t.sendText.bind(t),
|
|
1465
|
+
show: t.show.bind(t),
|
|
1466
|
+
hide: t.hide.bind(t),
|
|
1467
|
+
state: Lt(t)
|
|
1468
|
+
};
|
|
1412
1469
|
}
|
|
1413
|
-
function
|
|
1470
|
+
function qn(e, t) {
|
|
1471
|
+
u(_e.registerTextEditorCommand(e, t));
|
|
1472
|
+
}
|
|
1473
|
+
function Gs(e) {
|
|
1414
1474
|
for (const [t, n] of Object.entries(e))
|
|
1415
|
-
|
|
1475
|
+
qn(t, n);
|
|
1416
1476
|
}
|
|
1417
|
-
function
|
|
1477
|
+
function Qn(e, t) {
|
|
1418
1478
|
var s;
|
|
1419
1479
|
const n = h(((s = a(e)) == null ? void 0 : s.selections) ?? []);
|
|
1420
|
-
return
|
|
1480
|
+
return U(e, () => {
|
|
1421
1481
|
var i;
|
|
1422
1482
|
n.value = ((i = a(e)) == null ? void 0 : i.selections) ?? [];
|
|
1423
|
-
}), u(
|
|
1424
|
-
const
|
|
1425
|
-
i.textEditor ===
|
|
1483
|
+
}), u(l.onDidChangeTextEditorSelection((i) => {
|
|
1484
|
+
const r = a(e), o = a(t);
|
|
1485
|
+
i.textEditor === r && (!o || o.includes(i.kind)) && (n.value = i.selections);
|
|
1426
1486
|
})), v({
|
|
1427
1487
|
get() {
|
|
1428
1488
|
return n.value;
|
|
1429
1489
|
},
|
|
1430
1490
|
set(i) {
|
|
1431
1491
|
n.value = i;
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1492
|
+
const r = a(e);
|
|
1493
|
+
r && (r.selections = i);
|
|
1434
1494
|
}
|
|
1435
1495
|
});
|
|
1436
1496
|
}
|
|
1437
|
-
function
|
|
1438
|
-
const n =
|
|
1497
|
+
function zs(e, t) {
|
|
1498
|
+
const n = Qn(e, t);
|
|
1439
1499
|
return v({
|
|
1440
1500
|
get() {
|
|
1441
1501
|
return n.value[0];
|
|
@@ -1445,233 +1505,240 @@ function js(e, t) {
|
|
|
1445
1505
|
}
|
|
1446
1506
|
});
|
|
1447
1507
|
}
|
|
1448
|
-
function
|
|
1508
|
+
function Bs(e) {
|
|
1449
1509
|
var n;
|
|
1450
1510
|
const t = h((n = a(e)) == null ? void 0 : n.viewColumn);
|
|
1451
|
-
return
|
|
1511
|
+
return U(e, () => {
|
|
1452
1512
|
var s;
|
|
1453
1513
|
t.value = (s = a(e)) == null ? void 0 : s.viewColumn;
|
|
1454
|
-
}), u(
|
|
1514
|
+
}), u(l.onDidChangeTextEditorViewColumn((s) => {
|
|
1455
1515
|
s.textEditor === a(e) && (t.value = s.viewColumn);
|
|
1456
1516
|
})), v(() => t.value);
|
|
1457
1517
|
}
|
|
1458
|
-
function
|
|
1518
|
+
function Ys(e) {
|
|
1459
1519
|
var n;
|
|
1460
1520
|
const t = h(((n = a(e)) == null ? void 0 : n.visibleRanges) ?? []);
|
|
1461
|
-
return
|
|
1521
|
+
return U(e, () => {
|
|
1462
1522
|
var s;
|
|
1463
1523
|
t.value = ((s = a(e)) == null ? void 0 : s.visibleRanges) ?? [];
|
|
1464
|
-
}), u(
|
|
1524
|
+
}), u(l.onDidChangeTextEditorVisibleRanges((s) => {
|
|
1465
1525
|
s.textEditor === a(e) && (t.value = s.visibleRanges);
|
|
1466
1526
|
})), v(() => t.value);
|
|
1467
1527
|
}
|
|
1468
|
-
|
|
1528
|
+
function Pt(e, t) {
|
|
1529
|
+
S(() => {
|
|
1530
|
+
const n = a(e);
|
|
1531
|
+
n && (n.badge = a(t));
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
function Mt(e, t) {
|
|
1535
|
+
S(() => {
|
|
1536
|
+
const n = a(e);
|
|
1537
|
+
n && (n.title = a(t));
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
const Js = It(
|
|
1469
1541
|
(e, t, n) => {
|
|
1470
|
-
const s = typeof n == "function" ? { getTreeItem: n } : n, i = new
|
|
1471
|
-
|
|
1472
|
-
const
|
|
1473
|
-
return u(d.createTreeView(e, {
|
|
1542
|
+
const s = typeof n == "function" ? { getTreeItem: n } : n, i = new Le();
|
|
1543
|
+
U(t, () => i.fire());
|
|
1544
|
+
const r = /* @__PURE__ */ new WeakMap(), o = u(l.createTreeView(e, {
|
|
1474
1545
|
...s,
|
|
1475
1546
|
treeDataProvider: {
|
|
1476
1547
|
...s,
|
|
1477
1548
|
onDidChangeTreeData: i.event,
|
|
1478
|
-
getTreeItem(
|
|
1479
|
-
return s.getTreeItem(
|
|
1549
|
+
getTreeItem(c) {
|
|
1550
|
+
return s.getTreeItem(c);
|
|
1480
1551
|
},
|
|
1481
|
-
getChildren(
|
|
1482
|
-
var
|
|
1483
|
-
return
|
|
1552
|
+
getChildren(c) {
|
|
1553
|
+
var d;
|
|
1554
|
+
return c ? ((d = c.children) == null || d.forEach((_) => r.set(_, c)), c.children) : a(t);
|
|
1484
1555
|
},
|
|
1485
|
-
getParent(
|
|
1486
|
-
return
|
|
1556
|
+
getParent(c) {
|
|
1557
|
+
return r.get(c);
|
|
1487
1558
|
}
|
|
1488
1559
|
}
|
|
1489
1560
|
}));
|
|
1561
|
+
return s != null && s.title && Mt(o, s.title), s != null && s.badge && Pt(o, s.badge), o;
|
|
1490
1562
|
},
|
|
1491
1563
|
(e) => e
|
|
1492
1564
|
);
|
|
1493
|
-
function
|
|
1494
|
-
D(() => {
|
|
1495
|
-
const n = a(e);
|
|
1496
|
-
n && (n.badge = a(t));
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
function zs(e, t) {
|
|
1500
|
-
D(() => {
|
|
1501
|
-
const n = a(e);
|
|
1502
|
-
n && (n.title = a(t));
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
function Gs(e) {
|
|
1565
|
+
function qs(e) {
|
|
1506
1566
|
var s;
|
|
1507
|
-
const t =
|
|
1567
|
+
const t = be((s = a(e)) == null ? void 0 : s.visible);
|
|
1508
1568
|
function n() {
|
|
1509
1569
|
var i;
|
|
1510
1570
|
t.value = (i = a(e)) == null ? void 0 : i.visible;
|
|
1511
1571
|
}
|
|
1512
|
-
return
|
|
1513
|
-
const
|
|
1514
|
-
if (
|
|
1515
|
-
const
|
|
1516
|
-
i(() =>
|
|
1572
|
+
return S((i) => {
|
|
1573
|
+
const r = a(e);
|
|
1574
|
+
if (r) {
|
|
1575
|
+
const o = r.onDidChangeVisibility(n);
|
|
1576
|
+
i(() => o.dispose());
|
|
1517
1577
|
}
|
|
1518
|
-
}),
|
|
1578
|
+
}), S(n), v(() => !!t.value);
|
|
1519
1579
|
}
|
|
1520
|
-
const
|
|
1521
|
-
const e = h(
|
|
1522
|
-
return u(
|
|
1580
|
+
const Qs = E(() => {
|
|
1581
|
+
const e = h(l.visibleNotebookEditors);
|
|
1582
|
+
return u(l.onDidChangeVisibleNotebookEditors((t) => {
|
|
1523
1583
|
e.value = t;
|
|
1524
1584
|
})), e;
|
|
1525
|
-
}),
|
|
1526
|
-
const e = h(
|
|
1527
|
-
return u(
|
|
1585
|
+
}), Xs = E(() => {
|
|
1586
|
+
const e = h(l.visibleTextEditors);
|
|
1587
|
+
return u(l.onDidChangeVisibleTextEditors((t) => {
|
|
1528
1588
|
e.value = t;
|
|
1529
1589
|
})), e;
|
|
1530
1590
|
});
|
|
1531
|
-
function
|
|
1532
|
-
const s = typeof t == "function" ? v(t) : t;
|
|
1533
|
-
return
|
|
1534
|
-
a(n) &&
|
|
1591
|
+
function Zs(e, t, n = !0) {
|
|
1592
|
+
const s = T(t) ? t : typeof t == "function" ? v(t) : be(t);
|
|
1593
|
+
return S(() => {
|
|
1594
|
+
a(n) && _e.executeCommand("setContext", e, s.value);
|
|
1535
1595
|
}), s;
|
|
1536
1596
|
}
|
|
1537
|
-
const
|
|
1538
|
-
(e, t, n
|
|
1539
|
-
const
|
|
1540
|
-
u(
|
|
1541
|
-
resolveWebviewView(
|
|
1542
|
-
|
|
1597
|
+
const ei = It(
|
|
1598
|
+
(e, t, n) => {
|
|
1599
|
+
const s = h(), i = h();
|
|
1600
|
+
if (u(l.registerWebviewViewProvider(e, {
|
|
1601
|
+
resolveWebviewView(o, c) {
|
|
1602
|
+
s.value = o, i.value = c, n != null && n.onDidReceiveMessage && o.webview.onDidReceiveMessage(n.onDidReceiveMessage);
|
|
1543
1603
|
}
|
|
1544
|
-
},
|
|
1545
|
-
|
|
1546
|
-
}), n &&
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1604
|
+
}, n)), S(() => {
|
|
1605
|
+
s.value && (s.value.webview.html = a(t));
|
|
1606
|
+
}), n != null && n.webviewOptions) {
|
|
1607
|
+
const o = n.webviewOptions;
|
|
1608
|
+
S(() => {
|
|
1609
|
+
s.value && (s.value.webview.options = a(o));
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
n != null && n.title && Mt(s, n.title), n != null && n.badge && Pt(s, n.badge);
|
|
1613
|
+
function r(o) {
|
|
1614
|
+
var c;
|
|
1615
|
+
return (c = s.value) == null ? void 0 : c.webview.postMessage(o);
|
|
1552
1616
|
}
|
|
1553
|
-
return { view:
|
|
1617
|
+
return { view: s, context: i, postMessage: r };
|
|
1554
1618
|
},
|
|
1555
1619
|
(e) => e
|
|
1556
|
-
),
|
|
1557
|
-
const e = h(
|
|
1558
|
-
return u(
|
|
1620
|
+
), ti = E(() => {
|
|
1621
|
+
const e = h(l.state);
|
|
1622
|
+
return u(l.onDidChangeWindowState((t) => {
|
|
1559
1623
|
e.value = t;
|
|
1560
1624
|
})), {
|
|
1561
1625
|
focused: v(() => e.value.focused),
|
|
1562
1626
|
active: v(() => e.value.active)
|
|
1563
1627
|
};
|
|
1564
|
-
}),
|
|
1565
|
-
const e = h(
|
|
1566
|
-
return u(
|
|
1567
|
-
e.value =
|
|
1628
|
+
}), ni = E(() => {
|
|
1629
|
+
const e = h(P.workspaceFolders);
|
|
1630
|
+
return u(P.onDidChangeWorkspaceFolders(() => {
|
|
1631
|
+
e.value = P.workspaceFolders;
|
|
1568
1632
|
})), v(() => e.value);
|
|
1569
1633
|
});
|
|
1570
1634
|
export {
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1635
|
+
Zt as EffectScope,
|
|
1636
|
+
F as ITERATE_KEY,
|
|
1637
|
+
fe as ReactiveEffect,
|
|
1638
|
+
An as ReactiveFlags,
|
|
1639
|
+
ls as TrackOpTypes,
|
|
1640
|
+
fs as TriggerOpTypes,
|
|
1641
|
+
xt as activateCbs,
|
|
1578
1642
|
v as computed,
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1643
|
+
It as createKeyedComposable,
|
|
1644
|
+
E as createSingletonComposable,
|
|
1645
|
+
os as customRef,
|
|
1646
|
+
Vt as deactivateCbs,
|
|
1647
|
+
us as deferredComputed,
|
|
1648
|
+
_s as defineConfigs,
|
|
1649
|
+
vs as defineExtension,
|
|
1650
|
+
Zn as effect,
|
|
1651
|
+
en as effectScope,
|
|
1652
|
+
ts as enableTracking,
|
|
1653
|
+
gs as executeCommand,
|
|
1654
|
+
ve as extensionContext,
|
|
1655
|
+
xe as extensionScope,
|
|
1656
|
+
Me as getCurrentScope,
|
|
1657
|
+
Nn as isProxy,
|
|
1594
1658
|
q as isReactive,
|
|
1595
1659
|
Z as isReadonly,
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1660
|
+
T as isRef,
|
|
1661
|
+
he as isShallow,
|
|
1662
|
+
ss as markRaw,
|
|
1663
|
+
ds as nextTick,
|
|
1664
|
+
jn as onActivate,
|
|
1665
|
+
ps as onDeactivate,
|
|
1666
|
+
ut as onScopeDispose,
|
|
1667
|
+
je as pauseScheduling,
|
|
1668
|
+
We as pauseTracking,
|
|
1669
|
+
rs as proxyRefs,
|
|
1670
|
+
Nt as reactive,
|
|
1671
|
+
Rt as readonly,
|
|
1672
|
+
be as ref,
|
|
1673
|
+
Fe as resetScheduling,
|
|
1674
|
+
ke as resetTracking,
|
|
1675
|
+
bn as shallowReactive,
|
|
1676
|
+
ns as shallowReadonly,
|
|
1613
1677
|
h as shallowRef,
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1678
|
+
es as stop,
|
|
1679
|
+
f as toRaw,
|
|
1680
|
+
as as toRef,
|
|
1681
|
+
cs as toRefs,
|
|
1618
1682
|
a as toValue,
|
|
1619
1683
|
N as track,
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1684
|
+
M as trigger,
|
|
1685
|
+
is as triggerRef,
|
|
1686
|
+
kn as tryOnScopeDispose,
|
|
1687
|
+
yt as unref,
|
|
1688
|
+
Es as useAbsolutePath,
|
|
1689
|
+
Kn as useActiveColorTheme,
|
|
1690
|
+
ws as useActiveDebugSession,
|
|
1691
|
+
ms as useActiveEditorDecorations,
|
|
1692
|
+
Ts as useActiveNotebookEditor,
|
|
1693
|
+
bs as useActiveTerminal,
|
|
1694
|
+
Un as useActiveTextEditor,
|
|
1695
|
+
Ns as useAllExtensions,
|
|
1696
|
+
Gn as useCommand,
|
|
1697
|
+
Rs as useCommands,
|
|
1698
|
+
Ds as useCommentController,
|
|
1699
|
+
Ss as useControlledTerminal,
|
|
1700
|
+
ys as useDefaultShell,
|
|
1636
1701
|
u as useDisposable,
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1702
|
+
Os as useDocumentText,
|
|
1703
|
+
$n as useEditorDecorations,
|
|
1704
|
+
ue as useEvent,
|
|
1705
|
+
Cs as useEventEmitter,
|
|
1706
|
+
As as useFetchTasks,
|
|
1707
|
+
Is as useFileUri,
|
|
1708
|
+
Vs as useFoldingRangeProvider,
|
|
1709
|
+
xs as useFsWatcher,
|
|
1710
|
+
Ls as useIsDarkTheme,
|
|
1711
|
+
Ps as useIsTelemetryEnabled,
|
|
1712
|
+
Ms as useL10nText,
|
|
1713
|
+
Hs as useLogLevel,
|
|
1714
|
+
Ws as useLogger,
|
|
1715
|
+
ks as useNotebookEditorSelection,
|
|
1716
|
+
Jn as useNotebookEditorSelections,
|
|
1717
|
+
js as useNotebookEditorVisibleRanges,
|
|
1718
|
+
Fs as useOpenedTerminals,
|
|
1719
|
+
Bn as useOutputChannel,
|
|
1720
|
+
Ks as useStatusBarItem,
|
|
1721
|
+
Us as useTaskExecutions,
|
|
1722
|
+
$s as useTerminal,
|
|
1723
|
+
Lt as useTerminalState,
|
|
1724
|
+
qn as useTextEditorCommand,
|
|
1725
|
+
Gs as useTextEditorCommands,
|
|
1726
|
+
zs as useTextEditorSelection,
|
|
1727
|
+
Qn as useTextEditorSelections,
|
|
1728
|
+
Bs as useTextEditorViewColumn,
|
|
1729
|
+
Ys as useTextEditorVisibleRanges,
|
|
1730
|
+
Js as useTreeView,
|
|
1731
|
+
zn as useUri,
|
|
1732
|
+
Pt as useViewBadge,
|
|
1733
|
+
Mt as useViewTitle,
|
|
1734
|
+
qs as useViewVisibility,
|
|
1735
|
+
Qs as useVisibleNotebookEditors,
|
|
1736
|
+
Xs as useVisibleTextEditors,
|
|
1737
|
+
Zs as useVscodeContext,
|
|
1738
|
+
ei as useWebviewView,
|
|
1739
|
+
ti as useWindowState,
|
|
1740
|
+
ni as useWorkspaceFolders,
|
|
1741
|
+
U as watch,
|
|
1742
|
+
S as watchEffect,
|
|
1743
|
+
hs as watchSyncEffect
|
|
1677
1744
|
};
|