@guihz/trading-vue-editor-tes 0.1.94 → 0.1.96
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/assets/{editor.worker-DeRwRhH0.js → editor.worker-i61BMNLo.js} +1063 -987
- package/lib/assets/{parserTccWorker-XevoLb9V.js → parserTccWorker-ChSupCWX.js} +100892 -99461
- package/lib/assets/{scriptsRunWorker-CV4RH8gv.js → scriptsRunWorker-DsFQ7FnP.js} +25991 -23929
- package/lib/{index-CYl6WXa4.js → index-52FL_9ii.js} +20 -18
- package/lib/{index-DV0xAW0j.js → index-Cg6-_DZK.js} +20 -18
- package/lib/{index-DtxZpANi.js → index-MkbyGsfc.js} +20 -18
- package/lib/{index-Ce2gRdFk.js → index-YTpv4e1I.js} +20 -18
- package/lib/{monarchTokens-B58wECPS.js → monarchTokens-COqfmzEt.js} +1 -1
- package/lib/{monarchTokens-CGSRJbgt.js → monarchTokens-CoCudhym.js} +1 -1
- package/lib/trading-vue-editor.es.packages.js +9397 -9209
- package/lib/trading-vue-editor.umd.packages.mjs +55 -55
- package/package.json +3 -1
|
@@ -1,8 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
var We = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), Yr = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
|
+
}, _t = Math.pow;
|
|
4
|
+
var te = (e, t, n) => new Promise((r, s) => {
|
|
5
|
+
var i = (u) => {
|
|
6
|
+
try {
|
|
7
|
+
o(n.next(u));
|
|
8
|
+
} catch (c) {
|
|
9
|
+
s(c);
|
|
10
|
+
}
|
|
11
|
+
}, l = (u) => {
|
|
12
|
+
try {
|
|
13
|
+
o(n.throw(u));
|
|
14
|
+
} catch (c) {
|
|
15
|
+
s(c);
|
|
16
|
+
}
|
|
17
|
+
}, o = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(i, l);
|
|
18
|
+
o((n = n.apply(e, t)).next());
|
|
19
|
+
}), Jr = function(e, t) {
|
|
20
|
+
this[0] = e, this[1] = t;
|
|
21
|
+
};
|
|
22
|
+
var Kt = (e) => {
|
|
23
|
+
var t = e[We("asyncIterator")], n = !1, r, s = {};
|
|
24
|
+
return t == null ? (t = e[We("iterator")](), r = (i) => s[i] = (l) => t[i](l)) : (t = t.call(e), r = (i) => s[i] = (l) => {
|
|
25
|
+
if (n) {
|
|
26
|
+
if (n = !1, i === "throw") throw l;
|
|
27
|
+
return l;
|
|
28
|
+
}
|
|
29
|
+
return n = !0, {
|
|
30
|
+
done: !1,
|
|
31
|
+
value: new Jr(new Promise((o) => {
|
|
32
|
+
var u = t[i](l);
|
|
33
|
+
u instanceof Object || Yr("Object expected"), o(u);
|
|
34
|
+
}), 1)
|
|
35
|
+
};
|
|
36
|
+
}), s[We("iterator")] = () => s, r("next"), "throw" in t ? r("throw") : s.throw = (i) => {
|
|
37
|
+
throw i;
|
|
38
|
+
}, "return" in t && r("return"), s;
|
|
39
|
+
}, en = (e, t, n) => (t = e[We("asyncIterator")]) ? t.call(e) : (e = e[We("iterator")](), t = {}, n = (r, s) => (s = e[r]) && (t[r] = (i) => new Promise((l, o, u) => (i = s.call(e, i), u = i.done, Promise.resolve(i.value).then((c) => l({ value: c, done: u }), o)))), n("next"), n("return"), t);
|
|
40
|
+
class Zr {
|
|
2
41
|
constructor() {
|
|
3
42
|
this.listeners = [], this.unexpectedErrorHandler = function(t) {
|
|
4
43
|
setTimeout(() => {
|
|
5
|
-
throw t.stack ?
|
|
44
|
+
throw t.stack ? Ve.isErrorNoTelemetry(t) ? new Ve(t.message + `
|
|
6
45
|
|
|
7
46
|
` + t.stack) : new Error(t.message + `
|
|
8
47
|
|
|
@@ -23,11 +62,11 @@ class Or {
|
|
|
23
62
|
this.unexpectedErrorHandler(t);
|
|
24
63
|
}
|
|
25
64
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
28
|
-
|
|
65
|
+
const Kr = new Zr();
|
|
66
|
+
function yr(e) {
|
|
67
|
+
es(e) || Kr.onUnexpectedError(e);
|
|
29
68
|
}
|
|
30
|
-
function
|
|
69
|
+
function tn(e) {
|
|
31
70
|
if (e instanceof Error) {
|
|
32
71
|
const { name: t, message: n } = e, r = e.stacktrace || e.stack;
|
|
33
72
|
return {
|
|
@@ -35,47 +74,47 @@ function Yt(e) {
|
|
|
35
74
|
name: t,
|
|
36
75
|
message: n,
|
|
37
76
|
stack: r,
|
|
38
|
-
noTelemetry:
|
|
77
|
+
noTelemetry: Ve.isErrorNoTelemetry(e)
|
|
39
78
|
};
|
|
40
79
|
}
|
|
41
80
|
return e;
|
|
42
81
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
45
|
-
return e instanceof
|
|
82
|
+
const Rt = "Canceled";
|
|
83
|
+
function es(e) {
|
|
84
|
+
return e instanceof ts ? !0 : e instanceof Error && e.name === Rt && e.message === Rt;
|
|
46
85
|
}
|
|
47
|
-
class
|
|
86
|
+
class ts extends Error {
|
|
48
87
|
constructor() {
|
|
49
|
-
super(
|
|
88
|
+
super(Rt), this.name = this.message;
|
|
50
89
|
}
|
|
51
90
|
}
|
|
52
|
-
class
|
|
91
|
+
class Ve extends Error {
|
|
53
92
|
constructor(t) {
|
|
54
93
|
super(t), this.name = "CodeExpectedError";
|
|
55
94
|
}
|
|
56
95
|
static fromError(t) {
|
|
57
|
-
if (t instanceof
|
|
96
|
+
if (t instanceof Ve)
|
|
58
97
|
return t;
|
|
59
|
-
const n = new
|
|
98
|
+
const n = new Ve();
|
|
60
99
|
return n.message = t.message, n.stack = t.stack, n;
|
|
61
100
|
}
|
|
62
101
|
static isErrorNoTelemetry(t) {
|
|
63
102
|
return t.name === "CodeExpectedError";
|
|
64
103
|
}
|
|
65
104
|
}
|
|
66
|
-
class
|
|
105
|
+
class be extends Error {
|
|
67
106
|
constructor(t) {
|
|
68
|
-
super(t || "An unexpected bug occurred."), Object.setPrototypeOf(this,
|
|
107
|
+
super(t || "An unexpected bug occurred."), Object.setPrototypeOf(this, be.prototype);
|
|
69
108
|
}
|
|
70
109
|
}
|
|
71
|
-
function
|
|
110
|
+
function ns(e, t) {
|
|
72
111
|
const n = this;
|
|
73
112
|
let r = !1, s;
|
|
74
113
|
return function() {
|
|
75
114
|
return r || (r = !0, s = e.apply(n, arguments)), s;
|
|
76
115
|
};
|
|
77
116
|
}
|
|
78
|
-
var
|
|
117
|
+
var ut;
|
|
79
118
|
(function(e) {
|
|
80
119
|
function t(x) {
|
|
81
120
|
return x && typeof x == "object" && typeof x[Symbol.iterator] == "function";
|
|
@@ -137,7 +176,7 @@ var lt;
|
|
|
137
176
|
e.map = m;
|
|
138
177
|
function* g(...x) {
|
|
139
178
|
for (const L of x)
|
|
140
|
-
yield* L;
|
|
179
|
+
yield* Kt(L);
|
|
141
180
|
}
|
|
142
181
|
e.concat = g;
|
|
143
182
|
function _(x, L, p) {
|
|
@@ -168,16 +207,31 @@ var lt;
|
|
|
168
207
|
} }];
|
|
169
208
|
}
|
|
170
209
|
e.consume = N;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
210
|
+
function S(x) {
|
|
211
|
+
return te(this, null, function* () {
|
|
212
|
+
const L = [];
|
|
213
|
+
try {
|
|
214
|
+
for (var p = en(x), R, y, M; R = !(y = yield p.next()).done; R = !1) {
|
|
215
|
+
const B = y.value;
|
|
216
|
+
L.push(B);
|
|
217
|
+
}
|
|
218
|
+
} catch (y) {
|
|
219
|
+
M = [y];
|
|
220
|
+
} finally {
|
|
221
|
+
try {
|
|
222
|
+
R && (y = p.return) && (yield y.call(p));
|
|
223
|
+
} finally {
|
|
224
|
+
if (M)
|
|
225
|
+
throw M[0];
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return Promise.resolve(L);
|
|
229
|
+
});
|
|
176
230
|
}
|
|
177
231
|
e.asyncToArray = S;
|
|
178
|
-
})(
|
|
179
|
-
function
|
|
180
|
-
if (
|
|
232
|
+
})(ut || (ut = {}));
|
|
233
|
+
function Mr(e) {
|
|
234
|
+
if (ut.is(e)) {
|
|
181
235
|
const t = [];
|
|
182
236
|
for (const n of e)
|
|
183
237
|
if (n)
|
|
@@ -194,17 +248,17 @@ function Sr(e) {
|
|
|
194
248
|
} else if (e)
|
|
195
249
|
return e.dispose(), e;
|
|
196
250
|
}
|
|
197
|
-
function
|
|
198
|
-
return
|
|
251
|
+
function rs(...e) {
|
|
252
|
+
return ct(() => Mr(e));
|
|
199
253
|
}
|
|
200
|
-
function
|
|
254
|
+
function ct(e) {
|
|
201
255
|
return {
|
|
202
|
-
dispose:
|
|
256
|
+
dispose: ns(() => {
|
|
203
257
|
e();
|
|
204
258
|
})
|
|
205
259
|
};
|
|
206
260
|
}
|
|
207
|
-
class
|
|
261
|
+
class He {
|
|
208
262
|
constructor() {
|
|
209
263
|
this._toDispose = /* @__PURE__ */ new Set(), this._isDisposed = !1;
|
|
210
264
|
}
|
|
@@ -228,7 +282,7 @@ class Ue {
|
|
|
228
282
|
clear() {
|
|
229
283
|
if (this._toDispose.size !== 0)
|
|
230
284
|
try {
|
|
231
|
-
|
|
285
|
+
Mr(this._toDispose);
|
|
232
286
|
} finally {
|
|
233
287
|
this._toDispose.clear();
|
|
234
288
|
}
|
|
@@ -241,7 +295,7 @@ class Ue {
|
|
|
241
295
|
return t;
|
|
242
296
|
if (t === this)
|
|
243
297
|
throw new Error("Cannot register a disposable on itself!");
|
|
244
|
-
return this._isDisposed ?
|
|
298
|
+
return this._isDisposed ? He.DISABLE_DISPOSED_WARNING || console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack) : this._toDispose.add(t), t;
|
|
245
299
|
}
|
|
246
300
|
/**
|
|
247
301
|
* Deletes the value from the store, but does not dispose it.
|
|
@@ -250,10 +304,10 @@ class Ue {
|
|
|
250
304
|
t && this._toDispose.has(t) && this._toDispose.delete(t);
|
|
251
305
|
}
|
|
252
306
|
}
|
|
253
|
-
|
|
254
|
-
class
|
|
307
|
+
He.DISABLE_DISPOSED_WARNING = !1;
|
|
308
|
+
class je {
|
|
255
309
|
constructor() {
|
|
256
|
-
this._store = new
|
|
310
|
+
this._store = new He(), this._store;
|
|
257
311
|
}
|
|
258
312
|
dispose() {
|
|
259
313
|
this._store.dispose();
|
|
@@ -267,7 +321,7 @@ class Oe {
|
|
|
267
321
|
return this._store.add(t);
|
|
268
322
|
}
|
|
269
323
|
}
|
|
270
|
-
|
|
324
|
+
je.None = Object.freeze({ dispose() {
|
|
271
325
|
} });
|
|
272
326
|
class U {
|
|
273
327
|
constructor(t) {
|
|
@@ -275,7 +329,7 @@ class U {
|
|
|
275
329
|
}
|
|
276
330
|
}
|
|
277
331
|
U.Undefined = new U(void 0);
|
|
278
|
-
class
|
|
332
|
+
class ss {
|
|
279
333
|
constructor() {
|
|
280
334
|
this._first = U.Undefined, this._last = U.Undefined, this._size = 0;
|
|
281
335
|
}
|
|
@@ -341,13 +395,13 @@ class Jr {
|
|
|
341
395
|
yield t.element, t = t.next;
|
|
342
396
|
}
|
|
343
397
|
}
|
|
344
|
-
const
|
|
345
|
-
class
|
|
398
|
+
const is = globalThis.performance && typeof globalThis.performance.now == "function";
|
|
399
|
+
class xt {
|
|
346
400
|
static create(t) {
|
|
347
|
-
return new
|
|
401
|
+
return new xt(t);
|
|
348
402
|
}
|
|
349
403
|
constructor(t) {
|
|
350
|
-
this._now =
|
|
404
|
+
this._now = is && t === !1 ? Date.now : globalThis.performance.now.bind(globalThis.performance), this._startTime = this._now(), this._stopTime = -1;
|
|
351
405
|
}
|
|
352
406
|
stop() {
|
|
353
407
|
this._stopTime = this._now();
|
|
@@ -356,9 +410,9 @@ class gt {
|
|
|
356
410
|
return this._stopTime !== -1 ? this._stopTime - this._startTime : this._now() - this._startTime;
|
|
357
411
|
}
|
|
358
412
|
}
|
|
359
|
-
var
|
|
413
|
+
var yt;
|
|
360
414
|
(function(e) {
|
|
361
|
-
e.None = () =>
|
|
415
|
+
e.None = () => je.None;
|
|
362
416
|
function t(w, b) {
|
|
363
417
|
return h(w, () => {
|
|
364
418
|
}, 0, void 0, !0, void 0, b);
|
|
@@ -367,25 +421,25 @@ var Ct;
|
|
|
367
421
|
function n(w) {
|
|
368
422
|
return (b, C = null, A) => {
|
|
369
423
|
let k = !1, F;
|
|
370
|
-
return F = w((
|
|
424
|
+
return F = w((I) => {
|
|
371
425
|
if (!k)
|
|
372
|
-
return F ? F.dispose() : k = !0, b.call(C,
|
|
426
|
+
return F ? F.dispose() : k = !0, b.call(C, I);
|
|
373
427
|
}, null, A), k && F.dispose(), F;
|
|
374
428
|
};
|
|
375
429
|
}
|
|
376
430
|
e.once = n;
|
|
377
431
|
function r(w, b, C) {
|
|
378
|
-
return c((A, k = null, F) => w((
|
|
432
|
+
return c((A, k = null, F) => w((I) => A.call(k, b(I)), null, F), C);
|
|
379
433
|
}
|
|
380
434
|
e.map = r;
|
|
381
435
|
function s(w, b, C) {
|
|
382
|
-
return c((A, k = null, F) => w((
|
|
383
|
-
b(
|
|
436
|
+
return c((A, k = null, F) => w((I) => {
|
|
437
|
+
b(I), A.call(k, I);
|
|
384
438
|
}, null, F), C);
|
|
385
439
|
}
|
|
386
440
|
e.forEach = s;
|
|
387
441
|
function i(w, b, C) {
|
|
388
|
-
return c((A, k = null, F) => w((
|
|
442
|
+
return c((A, k = null, F) => w((I) => b(I) && A.call(k, I), null, F), C);
|
|
389
443
|
}
|
|
390
444
|
e.filter = i;
|
|
391
445
|
function l(w) {
|
|
@@ -394,7 +448,7 @@ var Ct;
|
|
|
394
448
|
e.signal = l;
|
|
395
449
|
function o(...w) {
|
|
396
450
|
return (b, C = null, A) => {
|
|
397
|
-
const k =
|
|
451
|
+
const k = rs(...w.map((F) => F((I) => b.call(C, I))));
|
|
398
452
|
return f(k, A);
|
|
399
453
|
};
|
|
400
454
|
}
|
|
@@ -411,34 +465,34 @@ var Ct;
|
|
|
411
465
|
C = w(k.fire, k);
|
|
412
466
|
},
|
|
413
467
|
onDidRemoveLastListener() {
|
|
414
|
-
C
|
|
468
|
+
C == null || C.dispose();
|
|
415
469
|
}
|
|
416
|
-
}, k = new
|
|
417
|
-
return b
|
|
470
|
+
}, k = new ae(A);
|
|
471
|
+
return b == null || b.add(k), k.event;
|
|
418
472
|
}
|
|
419
473
|
function f(w, b) {
|
|
420
474
|
return b instanceof Array ? b.push(w) : b && b.add(w), w;
|
|
421
475
|
}
|
|
422
|
-
function h(w, b, C = 100, A = !1, k = !1, F,
|
|
423
|
-
let j, J,
|
|
424
|
-
const
|
|
476
|
+
function h(w, b, C = 100, A = !1, k = !1, F, I) {
|
|
477
|
+
let j, J, Re, et = 0, we;
|
|
478
|
+
const jr = {
|
|
425
479
|
leakWarningThreshold: F,
|
|
426
480
|
onWillAddFirstListener() {
|
|
427
|
-
j = w((
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
J = void 0,
|
|
431
|
-
}, typeof C == "number" ? (clearTimeout(
|
|
481
|
+
j = w((Qr) => {
|
|
482
|
+
et++, J = b(J, Qr), A && !Re && (tt.fire(J), J = void 0), we = () => {
|
|
483
|
+
const Xr = J;
|
|
484
|
+
J = void 0, Re = void 0, (!A || et > 1) && tt.fire(Xr), et = 0;
|
|
485
|
+
}, typeof C == "number" ? (clearTimeout(Re), Re = setTimeout(we, C)) : Re === void 0 && (Re = 0, queueMicrotask(we));
|
|
432
486
|
});
|
|
433
487
|
},
|
|
434
488
|
onWillRemoveListener() {
|
|
435
|
-
k &&
|
|
489
|
+
k && et > 0 && (we == null || we());
|
|
436
490
|
},
|
|
437
491
|
onDidRemoveLastListener() {
|
|
438
|
-
|
|
492
|
+
we = void 0, j.dispose();
|
|
439
493
|
}
|
|
440
|
-
},
|
|
441
|
-
return
|
|
494
|
+
}, tt = new ae(jr);
|
|
495
|
+
return I == null || I.add(tt), tt.event;
|
|
442
496
|
}
|
|
443
497
|
e.debounce = h;
|
|
444
498
|
function d(w, b = 0, C) {
|
|
@@ -448,8 +502,8 @@ var Ct;
|
|
|
448
502
|
function m(w, b = (A, k) => A === k, C) {
|
|
449
503
|
let A = !0, k;
|
|
450
504
|
return i(w, (F) => {
|
|
451
|
-
const
|
|
452
|
-
return A = !1, k = F,
|
|
505
|
+
const I = A || !b(F, k);
|
|
506
|
+
return A = !1, k = F, I;
|
|
453
507
|
}, C);
|
|
454
508
|
}
|
|
455
509
|
e.latch = m;
|
|
@@ -465,14 +519,14 @@ var Ct;
|
|
|
465
519
|
k ? k.push(J) : j.fire(J);
|
|
466
520
|
});
|
|
467
521
|
A && A.add(F);
|
|
468
|
-
const
|
|
469
|
-
k
|
|
470
|
-
}, j = new
|
|
522
|
+
const I = () => {
|
|
523
|
+
k == null || k.forEach((J) => j.fire(J)), k = null;
|
|
524
|
+
}, j = new ae({
|
|
471
525
|
onWillAddFirstListener() {
|
|
472
526
|
F || (F = w((J) => j.fire(J)), A && A.add(F));
|
|
473
527
|
},
|
|
474
528
|
onDidAddFirstListener() {
|
|
475
|
-
k && (b ? setTimeout(
|
|
529
|
+
k && (b ? setTimeout(I) : I());
|
|
476
530
|
},
|
|
477
531
|
onDidRemoveLastListener() {
|
|
478
532
|
F && F.dispose(), F = null;
|
|
@@ -483,9 +537,9 @@ var Ct;
|
|
|
483
537
|
e.buffer = _;
|
|
484
538
|
function v(w, b) {
|
|
485
539
|
return (A, k, F) => {
|
|
486
|
-
const
|
|
540
|
+
const I = b(new S());
|
|
487
541
|
return w(function(j) {
|
|
488
|
-
const J =
|
|
542
|
+
const J = I.evaluate(j);
|
|
489
543
|
J !== N && A.call(k, J);
|
|
490
544
|
}, void 0, F);
|
|
491
545
|
};
|
|
@@ -524,13 +578,13 @@ var Ct;
|
|
|
524
578
|
}
|
|
525
579
|
}
|
|
526
580
|
function x(w, b, C = (A) => A) {
|
|
527
|
-
const A = (...j) =>
|
|
528
|
-
return
|
|
581
|
+
const A = (...j) => I.fire(C(...j)), k = () => w.on(b, A), F = () => w.removeListener(b, A), I = new ae({ onWillAddFirstListener: k, onDidRemoveLastListener: F });
|
|
582
|
+
return I.event;
|
|
529
583
|
}
|
|
530
584
|
e.fromNodeEventEmitter = x;
|
|
531
585
|
function L(w, b, C = (A) => A) {
|
|
532
|
-
const A = (...j) =>
|
|
533
|
-
return
|
|
586
|
+
const A = (...j) => I.fire(C(...j)), k = () => w.addEventListener(b, A), F = () => w.removeEventListener(b, A), I = new ae({ onWillAddFirstListener: k, onDidRemoveLastListener: F });
|
|
587
|
+
return I.event;
|
|
534
588
|
}
|
|
535
589
|
e.fromDOMEventEmitter = L;
|
|
536
590
|
function p(w) {
|
|
@@ -538,7 +592,7 @@ var Ct;
|
|
|
538
592
|
}
|
|
539
593
|
e.toPromise = p;
|
|
540
594
|
function R(w) {
|
|
541
|
-
const b = new
|
|
595
|
+
const b = new ae();
|
|
542
596
|
return w.then((C) => {
|
|
543
597
|
b.fire(C);
|
|
544
598
|
}, () => {
|
|
@@ -563,7 +617,7 @@ var Ct;
|
|
|
563
617
|
b.removeObserver(this);
|
|
564
618
|
}
|
|
565
619
|
};
|
|
566
|
-
this.emitter = new
|
|
620
|
+
this.emitter = new ae(A), C && C.add(this.emitter);
|
|
567
621
|
}
|
|
568
622
|
beginUpdate(b) {
|
|
569
623
|
this._counter++;
|
|
@@ -577,14 +631,14 @@ var Ct;
|
|
|
577
631
|
this._counter--, this._counter === 0 && (this._observable.reportChanges(), this._hasChanged && (this._hasChanged = !1, this.emitter.fire(this._observable.get())));
|
|
578
632
|
}
|
|
579
633
|
}
|
|
580
|
-
function
|
|
634
|
+
function B(w, b) {
|
|
581
635
|
return new M(w, b).emitter.event;
|
|
582
636
|
}
|
|
583
|
-
e.fromObservable =
|
|
637
|
+
e.fromObservable = B;
|
|
584
638
|
function G(w) {
|
|
585
639
|
return (b, C, A) => {
|
|
586
640
|
let k = 0, F = !1;
|
|
587
|
-
const
|
|
641
|
+
const I = {
|
|
588
642
|
beginUpdate() {
|
|
589
643
|
k++;
|
|
590
644
|
},
|
|
@@ -597,23 +651,23 @@ var Ct;
|
|
|
597
651
|
F = !0;
|
|
598
652
|
}
|
|
599
653
|
};
|
|
600
|
-
w.addObserver(
|
|
654
|
+
w.addObserver(I), w.reportChanges();
|
|
601
655
|
const j = {
|
|
602
656
|
dispose() {
|
|
603
|
-
w.removeObserver(
|
|
657
|
+
w.removeObserver(I);
|
|
604
658
|
}
|
|
605
659
|
};
|
|
606
|
-
return A instanceof
|
|
660
|
+
return A instanceof He ? A.add(j) : Array.isArray(A) && A.push(j), j;
|
|
607
661
|
};
|
|
608
662
|
}
|
|
609
663
|
e.fromObservableLight = G;
|
|
610
|
-
})(
|
|
611
|
-
class
|
|
664
|
+
})(yt || (yt = {}));
|
|
665
|
+
class Be {
|
|
612
666
|
constructor(t) {
|
|
613
|
-
this.listenerCount = 0, this.invocationCount = 0, this.elapsedOverall = 0, this.durations = [], this.name = `${t}_${
|
|
667
|
+
this.listenerCount = 0, this.invocationCount = 0, this.elapsedOverall = 0, this.durations = [], this.name = `${t}_${Be._idPool++}`, Be.all.add(this);
|
|
614
668
|
}
|
|
615
669
|
start(t) {
|
|
616
|
-
this._stopWatch = new
|
|
670
|
+
this._stopWatch = new xt(), this.listenerCount = t;
|
|
617
671
|
}
|
|
618
672
|
stop() {
|
|
619
673
|
if (this._stopWatch) {
|
|
@@ -622,10 +676,10 @@ class Ve {
|
|
|
622
676
|
}
|
|
623
677
|
}
|
|
624
678
|
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
let
|
|
628
|
-
class
|
|
679
|
+
Be.all = /* @__PURE__ */ new Set();
|
|
680
|
+
Be._idPool = 0;
|
|
681
|
+
let as = -1;
|
|
682
|
+
class ls {
|
|
629
683
|
constructor(t, n = Math.random().toString(18).slice(2, 5)) {
|
|
630
684
|
this.threshold = t, this.name = n, this._warnCountdown = 0;
|
|
631
685
|
}
|
|
@@ -652,10 +706,10 @@ class es {
|
|
|
652
706
|
};
|
|
653
707
|
}
|
|
654
708
|
}
|
|
655
|
-
class
|
|
709
|
+
class Qt {
|
|
656
710
|
static create() {
|
|
657
711
|
var t;
|
|
658
|
-
return new
|
|
712
|
+
return new Qt((t = new Error().stack) !== null && t !== void 0 ? t : "");
|
|
659
713
|
}
|
|
660
714
|
constructor(t) {
|
|
661
715
|
this.value = t;
|
|
@@ -666,16 +720,16 @@ class Ot {
|
|
|
666
720
|
`));
|
|
667
721
|
}
|
|
668
722
|
}
|
|
669
|
-
class
|
|
723
|
+
class pt {
|
|
670
724
|
constructor(t) {
|
|
671
725
|
this.value = t;
|
|
672
726
|
}
|
|
673
727
|
}
|
|
674
|
-
const
|
|
675
|
-
class
|
|
728
|
+
const os = 2;
|
|
729
|
+
class ae {
|
|
676
730
|
constructor(t) {
|
|
677
731
|
var n, r, s, i, l;
|
|
678
|
-
this._size = 0, this._options = t, this._leakageMon = !((n = this._options) === null || n === void 0) && n.leakWarningThreshold ? new
|
|
732
|
+
this._size = 0, this._options = t, this._leakageMon = !((n = this._options) === null || n === void 0) && n.leakWarningThreshold ? new ls((s = (r = this._options) === null || r === void 0 ? void 0 : r.leakWarningThreshold) !== null && s !== void 0 ? s : as) : void 0, this._perfMon = !((i = this._options) === null || i === void 0) && i._profName ? new Be(this._options._profName) : void 0, this._deliveryQueue = (l = this._options) === null || l === void 0 ? void 0 : l.deliveryQueue;
|
|
679
733
|
}
|
|
680
734
|
dispose() {
|
|
681
735
|
var t, n, r, s;
|
|
@@ -690,17 +744,17 @@ class ie {
|
|
|
690
744
|
return (t = this._event) !== null && t !== void 0 || (this._event = (n, r, s) => {
|
|
691
745
|
var i, l, o, u, c;
|
|
692
746
|
if (this._leakageMon && this._size > this._leakageMon.threshold * 3)
|
|
693
|
-
return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),
|
|
747
|
+
return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`), je.None;
|
|
694
748
|
if (this._disposed)
|
|
695
|
-
return
|
|
749
|
+
return je.None;
|
|
696
750
|
r && (n = n.bind(r));
|
|
697
|
-
const f = new
|
|
751
|
+
const f = new pt(n);
|
|
698
752
|
let h;
|
|
699
|
-
this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (f.stack =
|
|
700
|
-
const d =
|
|
701
|
-
h
|
|
753
|
+
this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (f.stack = Qt.create(), h = this._leakageMon.check(f.stack, this._size + 1)), this._listeners ? this._listeners instanceof pt ? ((c = this._deliveryQueue) !== null && c !== void 0 || (this._deliveryQueue = new us()), this._listeners = [this._listeners, f]) : this._listeners.push(f) : ((l = (i = this._options) === null || i === void 0 ? void 0 : i.onWillAddFirstListener) === null || l === void 0 || l.call(i, this), this._listeners = f, (u = (o = this._options) === null || o === void 0 ? void 0 : o.onDidAddFirstListener) === null || u === void 0 || u.call(o, this)), this._size++;
|
|
754
|
+
const d = ct(() => {
|
|
755
|
+
h == null || h(), this._removeListener(f);
|
|
702
756
|
});
|
|
703
|
-
return s instanceof
|
|
757
|
+
return s instanceof He ? s.add(d) : Array.isArray(s) && s.push(d), d;
|
|
704
758
|
}), this._event;
|
|
705
759
|
}
|
|
706
760
|
_removeListener(t) {
|
|
@@ -716,7 +770,7 @@ class ie {
|
|
|
716
770
|
throw console.log("disposed?", this._disposed), console.log("size?", this._size), console.log("arr?", JSON.stringify(this._listeners)), new Error("Attempted to dispose unknown listener");
|
|
717
771
|
this._size--, l[o] = void 0;
|
|
718
772
|
const u = this._deliveryQueue.current === this;
|
|
719
|
-
if (this._size *
|
|
773
|
+
if (this._size * os <= l.length) {
|
|
720
774
|
let c = 0;
|
|
721
775
|
for (let f = 0; f < l.length; f++)
|
|
722
776
|
l[f] ? l[c++] = l[f] : u && (this._deliveryQueue.end--, c < this._deliveryQueue.i && this._deliveryQueue.i--);
|
|
@@ -727,7 +781,7 @@ class ie {
|
|
|
727
781
|
var r;
|
|
728
782
|
if (!t)
|
|
729
783
|
return;
|
|
730
|
-
const s = ((r = this._options) === null || r === void 0 ? void 0 : r.onListenerError) ||
|
|
784
|
+
const s = ((r = this._options) === null || r === void 0 ? void 0 : r.onListenerError) || yr;
|
|
731
785
|
if (!s) {
|
|
732
786
|
t.value(n);
|
|
733
787
|
return;
|
|
@@ -751,7 +805,7 @@ class ie {
|
|
|
751
805
|
*/
|
|
752
806
|
fire(t) {
|
|
753
807
|
var n, r, s, i;
|
|
754
|
-
if (!((n = this._deliveryQueue) === null || n === void 0) && n.current && (this._deliverQueue(this._deliveryQueue), (r = this._perfMon) === null || r === void 0 || r.stop()), (s = this._perfMon) === null || s === void 0 || s.start(this._size), this._listeners) if (this._listeners instanceof
|
|
808
|
+
if (!((n = this._deliveryQueue) === null || n === void 0) && n.current && (this._deliverQueue(this._deliveryQueue), (r = this._perfMon) === null || r === void 0 || r.stop()), (s = this._perfMon) === null || s === void 0 || s.start(this._size), this._listeners) if (this._listeners instanceof pt)
|
|
755
809
|
this._deliver(this._listeners, t);
|
|
756
810
|
else {
|
|
757
811
|
const l = this._deliveryQueue;
|
|
@@ -763,7 +817,7 @@ class ie {
|
|
|
763
817
|
return this._size > 0;
|
|
764
818
|
}
|
|
765
819
|
}
|
|
766
|
-
class
|
|
820
|
+
class us {
|
|
767
821
|
constructor() {
|
|
768
822
|
this.i = -1, this.end = 0;
|
|
769
823
|
}
|
|
@@ -774,22 +828,22 @@ class ns {
|
|
|
774
828
|
this.i = this.end, this.current = void 0, this.value = void 0;
|
|
775
829
|
}
|
|
776
830
|
}
|
|
777
|
-
function
|
|
831
|
+
function cs(e) {
|
|
778
832
|
return typeof e == "string";
|
|
779
833
|
}
|
|
780
|
-
function
|
|
834
|
+
function hs(e) {
|
|
781
835
|
let t = [];
|
|
782
836
|
for (; Object.prototype !== e; )
|
|
783
837
|
t = t.concat(Object.getOwnPropertyNames(e)), e = Object.getPrototypeOf(e);
|
|
784
838
|
return t;
|
|
785
839
|
}
|
|
786
|
-
function
|
|
840
|
+
function Mt(e) {
|
|
787
841
|
const t = [];
|
|
788
|
-
for (const n of
|
|
842
|
+
for (const n of hs(e))
|
|
789
843
|
typeof e[n] == "function" && t.push(n);
|
|
790
844
|
return t;
|
|
791
845
|
}
|
|
792
|
-
function
|
|
846
|
+
function fs(e, t) {
|
|
793
847
|
const n = (s) => function() {
|
|
794
848
|
const i = Array.prototype.slice.call(arguments, 0);
|
|
795
849
|
return t(s, i);
|
|
@@ -798,44 +852,44 @@ function is(e, t) {
|
|
|
798
852
|
r[s] = n(s);
|
|
799
853
|
return r;
|
|
800
854
|
}
|
|
801
|
-
let
|
|
802
|
-
function
|
|
855
|
+
let ds = typeof document != "undefined" && document.location && document.location.hash.indexOf("pseudo=true") >= 0;
|
|
856
|
+
function ms(e, t) {
|
|
803
857
|
let n;
|
|
804
858
|
return t.length === 0 ? n = e : n = e.replace(/\{(\d+)\}/g, (r, s) => {
|
|
805
859
|
const i = s[0], l = t[i];
|
|
806
860
|
let o = r;
|
|
807
861
|
return typeof l == "string" ? o = l : (typeof l == "number" || typeof l == "boolean" || l === void 0 || l === null) && (o = String(l)), o;
|
|
808
|
-
}),
|
|
862
|
+
}), ds && (n = "[" + n.replace(/[aouei]/g, "$&$&") + "]"), n;
|
|
809
863
|
}
|
|
810
864
|
function W(e, t, ...n) {
|
|
811
|
-
return
|
|
865
|
+
return ms(t, n);
|
|
812
866
|
}
|
|
813
|
-
var
|
|
814
|
-
const
|
|
815
|
-
let
|
|
816
|
-
const
|
|
867
|
+
var vt;
|
|
868
|
+
const Pe = "en";
|
|
869
|
+
let Et = !1, kt = !1, wt = !1, nt, Lt = Pe, nn = Pe, gs, ie;
|
|
870
|
+
const Le = globalThis;
|
|
817
871
|
let X;
|
|
818
|
-
typeof
|
|
819
|
-
const
|
|
872
|
+
typeof Le.vscode != "undefined" && typeof Le.vscode.process != "undefined" ? X = Le.vscode.process : typeof process != "undefined" && (X = process);
|
|
873
|
+
const bs = typeof ((vt = X == null ? void 0 : X.versions) === null || vt === void 0 ? void 0 : vt.electron) == "string", xs = bs && (X == null ? void 0 : X.type) === "renderer";
|
|
820
874
|
if (typeof X == "object") {
|
|
821
|
-
|
|
875
|
+
Et = X.platform === "win32", kt = X.platform === "darwin", wt = X.platform === "linux", wt && X.env.SNAP && X.env.SNAP_REVISION, X.env.CI || X.env.BUILD_ARTIFACTSTAGINGDIRECTORY, nt = Pe, Lt = Pe;
|
|
822
876
|
const e = X.env.VSCODE_NLS_CONFIG;
|
|
823
877
|
if (e)
|
|
824
878
|
try {
|
|
825
879
|
const t = JSON.parse(e), n = t.availableLanguages["*"];
|
|
826
|
-
|
|
827
|
-
} catch {
|
|
880
|
+
nt = t.locale, nn = t.osLocale, Lt = n || Pe, gs = t._translationsConfigFile;
|
|
881
|
+
} catch (t) {
|
|
828
882
|
}
|
|
829
|
-
} else typeof navigator == "object" && !
|
|
883
|
+
} else typeof navigator == "object" && !xs ? (ie = navigator.userAgent, Et = ie.indexOf("Windows") >= 0, kt = ie.indexOf("Macintosh") >= 0, (ie.indexOf("Macintosh") >= 0 || ie.indexOf("iPad") >= 0 || ie.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, wt = ie.indexOf("Linux") >= 0, (ie == null ? void 0 : ie.indexOf("Mobi")) >= 0, // This call _must_ be done in the file that calls `nls.getConfiguredDefaultLocale`
|
|
830
884
|
// to ensure that the NLS AMD Loader plugin has been loaded and configured.
|
|
831
885
|
// This is because the loader plugin decides what the default locale is based on
|
|
832
886
|
// how it's able to resolve the strings.
|
|
833
|
-
W({}, "_"),
|
|
834
|
-
const
|
|
887
|
+
W({}, "_"), nt = Pe, Lt = nt, nn = navigator.language) : console.error("Unable to resolve platform.");
|
|
888
|
+
const Qe = Et, _s = kt, ce = ie, ps = typeof Le.postMessage == "function" && !Le.importScripts;
|
|
835
889
|
(() => {
|
|
836
|
-
if (
|
|
890
|
+
if (ps) {
|
|
837
891
|
const e = [];
|
|
838
|
-
|
|
892
|
+
Le.addEventListener("message", (n) => {
|
|
839
893
|
if (n.data && n.data.vscodeScheduleAsyncWork)
|
|
840
894
|
for (let r = 0, s = e.length; r < s; r++) {
|
|
841
895
|
const i = e[r];
|
|
@@ -851,17 +905,17 @@ const Ge = Rt, hs = yt, ue = se, fs = typeof we.postMessage == "function" && !we
|
|
|
851
905
|
e.push({
|
|
852
906
|
id: r,
|
|
853
907
|
callback: n
|
|
854
|
-
}),
|
|
908
|
+
}), Le.postMessage({ vscodeScheduleAsyncWork: r }, "*");
|
|
855
909
|
};
|
|
856
910
|
}
|
|
857
911
|
return (e) => setTimeout(e);
|
|
858
912
|
})();
|
|
859
|
-
const
|
|
860
|
-
|
|
861
|
-
!
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
class
|
|
913
|
+
const vs = !!(ce && ce.indexOf("Chrome") >= 0);
|
|
914
|
+
ce && ce.indexOf("Firefox") >= 0;
|
|
915
|
+
!vs && ce && ce.indexOf("Safari") >= 0;
|
|
916
|
+
ce && ce.indexOf("Edg/") >= 0;
|
|
917
|
+
ce && ce.indexOf("Android") >= 0;
|
|
918
|
+
class ws {
|
|
865
919
|
constructor(t) {
|
|
866
920
|
this.fn = t, this.lastCache = void 0, this.lastArgKey = void 0;
|
|
867
921
|
}
|
|
@@ -870,7 +924,7 @@ class ms {
|
|
|
870
924
|
return this.lastArgKey !== n && (this.lastArgKey = n, this.lastCache = this.fn(t)), this.lastCache;
|
|
871
925
|
}
|
|
872
926
|
}
|
|
873
|
-
class
|
|
927
|
+
class Er {
|
|
874
928
|
constructor(t) {
|
|
875
929
|
this.executor = t, this._didRun = !1;
|
|
876
930
|
}
|
|
@@ -900,14 +954,14 @@ class Cr {
|
|
|
900
954
|
return this._value;
|
|
901
955
|
}
|
|
902
956
|
}
|
|
903
|
-
var
|
|
904
|
-
function
|
|
957
|
+
var qe;
|
|
958
|
+
function Ls(e) {
|
|
905
959
|
return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, "\\$&");
|
|
906
960
|
}
|
|
907
|
-
function
|
|
961
|
+
function Ns(e) {
|
|
908
962
|
return e.split(/\r\n|\r|\n/);
|
|
909
963
|
}
|
|
910
|
-
function
|
|
964
|
+
function Ss(e) {
|
|
911
965
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
912
966
|
const r = e.charCodeAt(t);
|
|
913
967
|
if (r !== 32 && r !== 9)
|
|
@@ -915,7 +969,7 @@ function xs(e) {
|
|
|
915
969
|
}
|
|
916
970
|
return -1;
|
|
917
971
|
}
|
|
918
|
-
function
|
|
972
|
+
function Cs(e, t = e.length - 1) {
|
|
919
973
|
for (let n = t; n >= 0; n--) {
|
|
920
974
|
const r = e.charCodeAt(n);
|
|
921
975
|
if (r !== 32 && r !== 9)
|
|
@@ -923,37 +977,37 @@ function _s(e, t = e.length - 1) {
|
|
|
923
977
|
}
|
|
924
978
|
return -1;
|
|
925
979
|
}
|
|
926
|
-
function
|
|
980
|
+
function kr(e) {
|
|
927
981
|
return e >= 65 && e <= 90;
|
|
928
982
|
}
|
|
929
|
-
function
|
|
983
|
+
function Pt(e) {
|
|
930
984
|
return 55296 <= e && e <= 56319;
|
|
931
985
|
}
|
|
932
|
-
function
|
|
986
|
+
function As(e) {
|
|
933
987
|
return 56320 <= e && e <= 57343;
|
|
934
988
|
}
|
|
935
|
-
function
|
|
989
|
+
function Rs(e, t) {
|
|
936
990
|
return (e - 55296 << 10) + (t - 56320) + 65536;
|
|
937
991
|
}
|
|
938
|
-
function
|
|
992
|
+
function ys(e, t, n) {
|
|
939
993
|
const r = e.charCodeAt(n);
|
|
940
|
-
if (
|
|
994
|
+
if (Pt(r) && n + 1 < t) {
|
|
941
995
|
const s = e.charCodeAt(n + 1);
|
|
942
|
-
if (
|
|
943
|
-
return
|
|
996
|
+
if (As(s))
|
|
997
|
+
return Rs(r, s);
|
|
944
998
|
}
|
|
945
999
|
return r;
|
|
946
1000
|
}
|
|
947
|
-
const
|
|
948
|
-
function
|
|
949
|
-
return
|
|
1001
|
+
const Ms = /^[\t\n\r\x20-\x7E]*$/;
|
|
1002
|
+
function Es(e) {
|
|
1003
|
+
return Ms.test(e);
|
|
950
1004
|
}
|
|
951
|
-
class
|
|
1005
|
+
class Ce {
|
|
952
1006
|
static getInstance(t) {
|
|
953
|
-
return
|
|
1007
|
+
return qe.cache.get(Array.from(t));
|
|
954
1008
|
}
|
|
955
1009
|
static getLocales() {
|
|
956
|
-
return
|
|
1010
|
+
return qe._locales.value;
|
|
957
1011
|
}
|
|
958
1012
|
constructor(t) {
|
|
959
1013
|
this.confusableDictionary = t;
|
|
@@ -972,9 +1026,9 @@ class Se {
|
|
|
972
1026
|
return new Set(this.confusableDictionary.keys());
|
|
973
1027
|
}
|
|
974
1028
|
}
|
|
975
|
-
|
|
976
|
-
Se.ambiguousCharacterData = new Cr(() => JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));
|
|
977
|
-
|
|
1029
|
+
qe = Ce;
|
|
1030
|
+
Ce.ambiguousCharacterData = new Er(() => JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));
|
|
1031
|
+
Ce.cache = new ws((e) => {
|
|
978
1032
|
function t(c) {
|
|
979
1033
|
const f = /* @__PURE__ */ new Map();
|
|
980
1034
|
for (let h = 0; h < c.length; h += 2)
|
|
@@ -995,7 +1049,7 @@ Se.cache = new ms((e) => {
|
|
|
995
1049
|
f.has(d) && h.set(d, m);
|
|
996
1050
|
return h;
|
|
997
1051
|
}
|
|
998
|
-
const s =
|
|
1052
|
+
const s = qe.ambiguousCharacterData.value;
|
|
999
1053
|
let i = e.filter((c) => !c.startsWith("_") && c in s);
|
|
1000
1054
|
i.length === 0 && (i = ["_default"]);
|
|
1001
1055
|
let l;
|
|
@@ -1004,51 +1058,51 @@ Se.cache = new ms((e) => {
|
|
|
1004
1058
|
l = r(l, f);
|
|
1005
1059
|
}
|
|
1006
1060
|
const o = t(s._common), u = n(o, l);
|
|
1007
|
-
return new
|
|
1061
|
+
return new qe(u);
|
|
1008
1062
|
});
|
|
1009
|
-
|
|
1010
|
-
class
|
|
1063
|
+
Ce._locales = new Er(() => Object.keys(qe.ambiguousCharacterData.value).filter((e) => !e.startsWith("_")));
|
|
1064
|
+
class xe {
|
|
1011
1065
|
static getRawData() {
|
|
1012
1066
|
return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]");
|
|
1013
1067
|
}
|
|
1014
1068
|
static getData() {
|
|
1015
|
-
return this._data || (this._data = new Set(
|
|
1069
|
+
return this._data || (this._data = new Set(xe.getRawData())), this._data;
|
|
1016
1070
|
}
|
|
1017
1071
|
static isInvisibleCharacter(t) {
|
|
1018
|
-
return
|
|
1072
|
+
return xe.getData().has(t);
|
|
1019
1073
|
}
|
|
1020
1074
|
static get codePoints() {
|
|
1021
|
-
return
|
|
1075
|
+
return xe.getData();
|
|
1022
1076
|
}
|
|
1023
1077
|
}
|
|
1024
|
-
|
|
1025
|
-
const
|
|
1026
|
-
class
|
|
1078
|
+
xe._data = void 0;
|
|
1079
|
+
const ks = "$initialize";
|
|
1080
|
+
class Ps {
|
|
1027
1081
|
constructor(t, n, r, s) {
|
|
1028
1082
|
this.vsWorker = t, this.req = n, this.method = r, this.args = s, this.type = 0;
|
|
1029
1083
|
}
|
|
1030
1084
|
}
|
|
1031
|
-
class
|
|
1085
|
+
class rn {
|
|
1032
1086
|
constructor(t, n, r, s) {
|
|
1033
1087
|
this.vsWorker = t, this.seq = n, this.res = r, this.err = s, this.type = 1;
|
|
1034
1088
|
}
|
|
1035
1089
|
}
|
|
1036
|
-
class
|
|
1090
|
+
class Fs {
|
|
1037
1091
|
constructor(t, n, r, s) {
|
|
1038
1092
|
this.vsWorker = t, this.req = n, this.eventName = r, this.arg = s, this.type = 2;
|
|
1039
1093
|
}
|
|
1040
1094
|
}
|
|
1041
|
-
class
|
|
1095
|
+
class Ds {
|
|
1042
1096
|
constructor(t, n, r) {
|
|
1043
1097
|
this.vsWorker = t, this.req = n, this.event = r, this.type = 3;
|
|
1044
1098
|
}
|
|
1045
1099
|
}
|
|
1046
|
-
class
|
|
1100
|
+
class Ts {
|
|
1047
1101
|
constructor(t, n) {
|
|
1048
1102
|
this.vsWorker = t, this.req = n, this.type = 4;
|
|
1049
1103
|
}
|
|
1050
1104
|
}
|
|
1051
|
-
class
|
|
1105
|
+
class Vs {
|
|
1052
1106
|
constructor(t) {
|
|
1053
1107
|
this._workerId = -1, this._handler = t, this._lastSentReq = 0, this._pendingReplies = /* @__PURE__ */ Object.create(null), this._pendingEmitters = /* @__PURE__ */ new Map(), this._pendingEvents = /* @__PURE__ */ new Map();
|
|
1054
1108
|
}
|
|
@@ -1061,17 +1115,17 @@ class Ms {
|
|
|
1061
1115
|
this._pendingReplies[r] = {
|
|
1062
1116
|
resolve: s,
|
|
1063
1117
|
reject: i
|
|
1064
|
-
}, this._send(new
|
|
1118
|
+
}, this._send(new Ps(this._workerId, r, t, n));
|
|
1065
1119
|
});
|
|
1066
1120
|
}
|
|
1067
1121
|
listen(t, n) {
|
|
1068
1122
|
let r = null;
|
|
1069
|
-
const s = new
|
|
1123
|
+
const s = new ae({
|
|
1070
1124
|
onWillAddFirstListener: () => {
|
|
1071
|
-
r = String(++this._lastSentReq), this._pendingEmitters.set(r, s), this._send(new
|
|
1125
|
+
r = String(++this._lastSentReq), this._pendingEmitters.set(r, s), this._send(new Fs(this._workerId, r, t, n));
|
|
1072
1126
|
},
|
|
1073
1127
|
onDidRemoveLastListener: () => {
|
|
1074
|
-
this._pendingEmitters.delete(r), this._send(new
|
|
1128
|
+
this._pendingEmitters.delete(r), this._send(new Ts(this._workerId, r)), r = null;
|
|
1075
1129
|
}
|
|
1076
1130
|
});
|
|
1077
1131
|
return s.event;
|
|
@@ -1109,14 +1163,14 @@ class Ms {
|
|
|
1109
1163
|
_handleRequestMessage(t) {
|
|
1110
1164
|
const n = t.req;
|
|
1111
1165
|
this._handler.handleMessage(t.method, t.args).then((s) => {
|
|
1112
|
-
this._send(new
|
|
1166
|
+
this._send(new rn(this._workerId, n, s, void 0));
|
|
1113
1167
|
}, (s) => {
|
|
1114
|
-
s.detail instanceof Error && (s.detail =
|
|
1168
|
+
s.detail instanceof Error && (s.detail = tn(s.detail)), this._send(new rn(this._workerId, n, void 0, tn(s)));
|
|
1115
1169
|
});
|
|
1116
1170
|
}
|
|
1117
1171
|
_handleSubscribeEventMessage(t) {
|
|
1118
1172
|
const n = t.req, r = this._handler.handleEvent(t.eventName, t.arg)((s) => {
|
|
1119
|
-
this._send(new
|
|
1173
|
+
this._send(new Ds(this._workerId, n, s));
|
|
1120
1174
|
});
|
|
1121
1175
|
this._pendingEvents.set(n, r);
|
|
1122
1176
|
}
|
|
@@ -1143,13 +1197,13 @@ class Ms {
|
|
|
1143
1197
|
this._handler.sendMessage(t, n);
|
|
1144
1198
|
}
|
|
1145
1199
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return e[0] === "o" && e[1] === "n" &&
|
|
1200
|
+
function Pr(e) {
|
|
1201
|
+
return e[0] === "o" && e[1] === "n" && kr(e.charCodeAt(2));
|
|
1148
1202
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return /^onDynamic/.test(e) &&
|
|
1203
|
+
function Fr(e) {
|
|
1204
|
+
return /^onDynamic/.test(e) && kr(e.charCodeAt(9));
|
|
1151
1205
|
}
|
|
1152
|
-
function
|
|
1206
|
+
function Bs(e, t, n) {
|
|
1153
1207
|
const r = (l) => function() {
|
|
1154
1208
|
const o = Array.prototype.slice.call(arguments, 0);
|
|
1155
1209
|
return t(l, o);
|
|
@@ -1157,11 +1211,11 @@ function Es(e, t, n) {
|
|
|
1157
1211
|
return n(l, o);
|
|
1158
1212
|
}, i = {};
|
|
1159
1213
|
for (const l of e) {
|
|
1160
|
-
if (
|
|
1214
|
+
if (Fr(l)) {
|
|
1161
1215
|
i[l] = s(l);
|
|
1162
1216
|
continue;
|
|
1163
1217
|
}
|
|
1164
|
-
if (
|
|
1218
|
+
if (Pr(l)) {
|
|
1165
1219
|
i[l] = n(l, void 0);
|
|
1166
1220
|
continue;
|
|
1167
1221
|
}
|
|
@@ -1169,9 +1223,9 @@ function Es(e, t, n) {
|
|
|
1169
1223
|
}
|
|
1170
1224
|
return i;
|
|
1171
1225
|
}
|
|
1172
|
-
class
|
|
1226
|
+
class qs {
|
|
1173
1227
|
constructor(t, n) {
|
|
1174
|
-
this._requestHandlerFactory = n, this._requestHandler = null, this._protocol = new
|
|
1228
|
+
this._requestHandlerFactory = n, this._requestHandler = null, this._protocol = new Vs({
|
|
1175
1229
|
sendMessage: (r, s) => {
|
|
1176
1230
|
t(r, s);
|
|
1177
1231
|
},
|
|
@@ -1183,7 +1237,7 @@ class ks {
|
|
|
1183
1237
|
this._protocol.handleMessage(t);
|
|
1184
1238
|
}
|
|
1185
1239
|
_handleMessage(t, n) {
|
|
1186
|
-
if (t ===
|
|
1240
|
+
if (t === ks)
|
|
1187
1241
|
return this.initialize(n[0], n[1], n[2], n[3]);
|
|
1188
1242
|
if (!this._requestHandler || typeof this._requestHandler[t] != "function")
|
|
1189
1243
|
return Promise.reject(new Error("Missing requestHandler or method: " + t));
|
|
@@ -1196,13 +1250,13 @@ class ks {
|
|
|
1196
1250
|
_handleEvent(t, n) {
|
|
1197
1251
|
if (!this._requestHandler)
|
|
1198
1252
|
throw new Error("Missing requestHandler");
|
|
1199
|
-
if (
|
|
1253
|
+
if (Fr(t)) {
|
|
1200
1254
|
const r = this._requestHandler[t].call(this._requestHandler, n);
|
|
1201
1255
|
if (typeof r != "function")
|
|
1202
1256
|
throw new Error(`Missing dynamic event ${t} on request handler.`);
|
|
1203
1257
|
return r;
|
|
1204
1258
|
}
|
|
1205
|
-
if (
|
|
1259
|
+
if (Pr(t)) {
|
|
1206
1260
|
const r = this._requestHandler[t];
|
|
1207
1261
|
if (typeof r != "function")
|
|
1208
1262
|
throw new Error(`Missing event ${t} on request handler.`);
|
|
@@ -1212,20 +1266,20 @@ class ks {
|
|
|
1212
1266
|
}
|
|
1213
1267
|
initialize(t, n, r, s) {
|
|
1214
1268
|
this._protocol.setWorkerId(t);
|
|
1215
|
-
const o =
|
|
1216
|
-
return this._requestHandlerFactory ? (this._requestHandler = this._requestHandlerFactory(o), Promise.resolve(
|
|
1269
|
+
const o = Bs(s, (u, c) => this._protocol.sendMessage(u, c), (u, c) => this._protocol.listen(u, c));
|
|
1270
|
+
return this._requestHandlerFactory ? (this._requestHandler = this._requestHandlerFactory(o), Promise.resolve(Mt(this._requestHandler))) : (n && (typeof n.baseUrl != "undefined" && delete n.baseUrl, typeof n.paths != "undefined" && typeof n.paths.vs != "undefined" && delete n.paths.vs, typeof n.trustedTypesPolicy != "undefined" && delete n.trustedTypesPolicy, n.catchError = !0, globalThis.require.config(n)), new Promise((u, c) => {
|
|
1217
1271
|
const f = globalThis.require;
|
|
1218
1272
|
f([r], (h) => {
|
|
1219
1273
|
if (this._requestHandler = h.create(o), !this._requestHandler) {
|
|
1220
1274
|
c(new Error("No RequestHandler!"));
|
|
1221
1275
|
return;
|
|
1222
1276
|
}
|
|
1223
|
-
u(
|
|
1277
|
+
u(Mt(this._requestHandler));
|
|
1224
1278
|
}, c);
|
|
1225
1279
|
}));
|
|
1226
1280
|
}
|
|
1227
1281
|
}
|
|
1228
|
-
class
|
|
1282
|
+
class me {
|
|
1229
1283
|
/**
|
|
1230
1284
|
* Constructs a new DiffChange with the given sequence information
|
|
1231
1285
|
* and content.
|
|
@@ -1246,16 +1300,16 @@ class de {
|
|
|
1246
1300
|
return this.modifiedStart + this.modifiedLength;
|
|
1247
1301
|
}
|
|
1248
1302
|
}
|
|
1249
|
-
function
|
|
1303
|
+
function sn(e, t) {
|
|
1250
1304
|
return (t << 5) - t + e | 0;
|
|
1251
1305
|
}
|
|
1252
|
-
function
|
|
1253
|
-
t =
|
|
1306
|
+
function Is(e, t) {
|
|
1307
|
+
t = sn(149417, t);
|
|
1254
1308
|
for (let n = 0, r = e.length; n < r; n++)
|
|
1255
|
-
t =
|
|
1309
|
+
t = sn(e.charCodeAt(n), t);
|
|
1256
1310
|
return t;
|
|
1257
1311
|
}
|
|
1258
|
-
class
|
|
1312
|
+
class an {
|
|
1259
1313
|
constructor(t) {
|
|
1260
1314
|
this.source = t;
|
|
1261
1315
|
}
|
|
@@ -1266,16 +1320,16 @@ class en {
|
|
|
1266
1320
|
return n;
|
|
1267
1321
|
}
|
|
1268
1322
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return new
|
|
1323
|
+
function Us(e, t, n) {
|
|
1324
|
+
return new ge(new an(e), new an(t)).ComputeDiff(n).changes;
|
|
1271
1325
|
}
|
|
1272
|
-
class
|
|
1326
|
+
class ye {
|
|
1273
1327
|
static Assert(t, n) {
|
|
1274
1328
|
if (!t)
|
|
1275
1329
|
throw new Error(n);
|
|
1276
1330
|
}
|
|
1277
1331
|
}
|
|
1278
|
-
class
|
|
1332
|
+
class Me {
|
|
1279
1333
|
/**
|
|
1280
1334
|
* Copies a range of elements from an Array starting at the specified source index and pastes
|
|
1281
1335
|
* them to another Array starting at the specified destination index. The length and the indexes
|
|
@@ -1300,7 +1354,7 @@ class ye {
|
|
|
1300
1354
|
r[s + l] = t[n + l];
|
|
1301
1355
|
}
|
|
1302
1356
|
}
|
|
1303
|
-
class
|
|
1357
|
+
class ln {
|
|
1304
1358
|
/**
|
|
1305
1359
|
* Constructs a new DiffChangeHelper for the given DiffSequences.
|
|
1306
1360
|
*/
|
|
@@ -1311,7 +1365,7 @@ class tn {
|
|
|
1311
1365
|
* Marks the beginning of the next change in the set of differences.
|
|
1312
1366
|
*/
|
|
1313
1367
|
MarkNextChange() {
|
|
1314
|
-
(this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.m_changes.push(new
|
|
1368
|
+
(this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.m_changes.push(new me(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount)), this.m_originalCount = 0, this.m_modifiedCount = 0, this.m_originalStart = 1073741824, this.m_modifiedStart = 1073741824;
|
|
1315
1369
|
}
|
|
1316
1370
|
/**
|
|
1317
1371
|
* Adds the original element at the given position to the elements
|
|
@@ -1346,13 +1400,13 @@ class tn {
|
|
|
1346
1400
|
return (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.MarkNextChange(), this.m_changes.reverse(), this.m_changes;
|
|
1347
1401
|
}
|
|
1348
1402
|
}
|
|
1349
|
-
class
|
|
1403
|
+
class ge {
|
|
1350
1404
|
/**
|
|
1351
1405
|
* Constructs the DiffFinder
|
|
1352
1406
|
*/
|
|
1353
1407
|
constructor(t, n, r = null) {
|
|
1354
1408
|
this.ContinueProcessingPredicate = r, this._originalSequence = t, this._modifiedSequence = n;
|
|
1355
|
-
const [s, i, l] =
|
|
1409
|
+
const [s, i, l] = ge._getElements(t), [o, u, c] = ge._getElements(n);
|
|
1356
1410
|
this._hasStrings = l && c, this._originalStringElements = s, this._originalElementsOrHash = i, this._modifiedStringElements = o, this._modifiedElementsOrHash = u, this.m_forwardHistory = [], this.m_reverseHistory = [];
|
|
1357
1411
|
}
|
|
1358
1412
|
static _isStringArray(t) {
|
|
@@ -1360,10 +1414,10 @@ class me {
|
|
|
1360
1414
|
}
|
|
1361
1415
|
static _getElements(t) {
|
|
1362
1416
|
const n = t.getElements();
|
|
1363
|
-
if (
|
|
1417
|
+
if (ge._isStringArray(n)) {
|
|
1364
1418
|
const r = new Int32Array(n.length);
|
|
1365
1419
|
for (let s = 0, i = n.length; s < i; s++)
|
|
1366
|
-
r[s] =
|
|
1420
|
+
r[s] = Is(n[s], 0);
|
|
1367
1421
|
return [n, r, !0];
|
|
1368
1422
|
}
|
|
1369
1423
|
return n instanceof Int32Array ? [[], n, !1] : [[], new Int32Array(n), !1];
|
|
@@ -1374,7 +1428,7 @@ class me {
|
|
|
1374
1428
|
ElementsAreStrictEqual(t, n) {
|
|
1375
1429
|
if (!this.ElementsAreEqual(t, n))
|
|
1376
1430
|
return !1;
|
|
1377
|
-
const r =
|
|
1431
|
+
const r = ge._getStrictElement(this._originalSequence, t), s = ge._getStrictElement(this._modifiedSequence, n);
|
|
1378
1432
|
return r === s;
|
|
1379
1433
|
}
|
|
1380
1434
|
static _getStrictElement(t, n) {
|
|
@@ -1414,11 +1468,11 @@ class me {
|
|
|
1414
1468
|
n--, s--;
|
|
1415
1469
|
if (t > n || r > s) {
|
|
1416
1470
|
let h;
|
|
1417
|
-
return r <= s ? (
|
|
1418
|
-
new
|
|
1419
|
-
]) : t <= n ? (
|
|
1420
|
-
new
|
|
1421
|
-
]) : (
|
|
1471
|
+
return r <= s ? (ye.Assert(t === n + 1, "originalStart should only be one more than originalEnd"), h = [
|
|
1472
|
+
new me(t, 0, r, s - r + 1)
|
|
1473
|
+
]) : t <= n ? (ye.Assert(r === s + 1, "modifiedStart should only be one more than modifiedEnd"), h = [
|
|
1474
|
+
new me(t, n - t + 1, r, 0)
|
|
1475
|
+
]) : (ye.Assert(t === n + 1, "originalStart should only be one more than originalEnd"), ye.Assert(r === s + 1, "modifiedStart should only be one more than modifiedEnd"), h = []), h;
|
|
1422
1476
|
}
|
|
1423
1477
|
const l = [0], o = [0], u = this.ComputeRecursionPoint(t, n, r, s, l, o, i), c = l[0], f = o[0];
|
|
1424
1478
|
if (u !== null)
|
|
@@ -1427,18 +1481,18 @@ class me {
|
|
|
1427
1481
|
const h = this.ComputeDiffRecursive(t, c, r, f, i);
|
|
1428
1482
|
let d = [];
|
|
1429
1483
|
return i[0] ? d = [
|
|
1430
|
-
new
|
|
1484
|
+
new me(c + 1, n - (c + 1) + 1, f + 1, s - (f + 1) + 1)
|
|
1431
1485
|
] : d = this.ComputeDiffRecursive(c + 1, n, f + 1, s, i), this.ConcatenateChanges(h, d);
|
|
1432
1486
|
}
|
|
1433
1487
|
return [
|
|
1434
|
-
new
|
|
1488
|
+
new me(t, n - t + 1, r, s - r + 1)
|
|
1435
1489
|
];
|
|
1436
1490
|
}
|
|
1437
1491
|
WALKTRACE(t, n, r, s, i, l, o, u, c, f, h, d, m, g, _, v, N, S) {
|
|
1438
|
-
let x = null, L = null, p = new
|
|
1492
|
+
let x = null, L = null, p = new ln(), R = n, y = r, M = m[0] - v[0] - s, B = -1073741824, G = this.m_forwardHistory.length - 1;
|
|
1439
1493
|
do {
|
|
1440
1494
|
const w = M + t;
|
|
1441
|
-
w === R || w < y && c[w - 1] < c[w + 1] ? (h = c[w + 1], g = h - M - s, h <
|
|
1495
|
+
w === R || w < y && c[w - 1] < c[w + 1] ? (h = c[w + 1], g = h - M - s, h < B && p.MarkNextChange(), B = h, p.AddModifiedElement(h + 1, g), M = w + 1 - t) : (h = c[w - 1] + 1, g = h - M - s, h < B && p.MarkNextChange(), B = h - 1, p.AddOriginalElement(h, g + 1), M = w - 1 - t), G >= 0 && (c = this.m_forwardHistory[G], t = c[0], R = 1, y = c.length - 1);
|
|
1442
1496
|
} while (--G >= -1);
|
|
1443
1497
|
if (x = p.getReverseChanges(), S[0]) {
|
|
1444
1498
|
let w = m[0] + 1, b = v[0] + 1;
|
|
@@ -1447,13 +1501,13 @@ class me {
|
|
|
1447
1501
|
w = Math.max(w, C.getOriginalEnd()), b = Math.max(b, C.getModifiedEnd());
|
|
1448
1502
|
}
|
|
1449
1503
|
L = [
|
|
1450
|
-
new
|
|
1504
|
+
new me(w, d - w + 1, b, _ - b + 1)
|
|
1451
1505
|
];
|
|
1452
1506
|
} else {
|
|
1453
|
-
p = new
|
|
1507
|
+
p = new ln(), R = l, y = o, M = m[0] - v[0] - u, B = 1073741824, G = N ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;
|
|
1454
1508
|
do {
|
|
1455
1509
|
const w = M + i;
|
|
1456
|
-
w === R || w < y && f[w - 1] >= f[w + 1] ? (h = f[w + 1] - 1, g = h - M - u, h >
|
|
1510
|
+
w === R || w < y && f[w - 1] >= f[w + 1] ? (h = f[w + 1] - 1, g = h - M - u, h > B && p.MarkNextChange(), B = h + 1, p.AddOriginalElement(h + 1, g + 1), M = w + 1 - i) : (h = f[w - 1], g = h - M - u, h > B && p.MarkNextChange(), B = h, p.AddModifiedElement(h + 1, g + 1), M = w - 1 - i), G >= 0 && (f = this.m_reverseHistory[G], i = f[0], R = 1, y = f.length - 1);
|
|
1457
1511
|
} while (--G >= -1);
|
|
1458
1512
|
L = p.getChanges();
|
|
1459
1513
|
}
|
|
@@ -1481,20 +1535,20 @@ class me {
|
|
|
1481
1535
|
const g = n - t + (s - r), _ = g + 1, v = new Int32Array(_), N = new Int32Array(_), S = s - r, x = n - t, L = t - r, p = n - s, y = (x - S) % 2 === 0;
|
|
1482
1536
|
v[S] = t, N[x] = n, o[0] = !1;
|
|
1483
1537
|
for (let M = 1; M <= g / 2 + 1; M++) {
|
|
1484
|
-
let
|
|
1538
|
+
let B = 0, G = 0;
|
|
1485
1539
|
f = this.ClipDiagonalBound(S - M, M, S, _), h = this.ClipDiagonalBound(S + M, M, S, _);
|
|
1486
1540
|
for (let b = f; b <= h; b += 2) {
|
|
1487
1541
|
b === f || b < h && v[b - 1] < v[b + 1] ? u = v[b + 1] : u = v[b - 1] + 1, c = u - (b - S) - L;
|
|
1488
1542
|
const C = u;
|
|
1489
1543
|
for (; u < n && c < s && this.ElementsAreEqual(u + 1, c + 1); )
|
|
1490
1544
|
u++, c++;
|
|
1491
|
-
if (v[b] = u, u + c >
|
|
1545
|
+
if (v[b] = u, u + c > B + G && (B = u, G = c), !y && Math.abs(b - x) <= M - 1 && u >= N[b])
|
|
1492
1546
|
return i[0] = u, l[0] = c, C <= N[b] && M <= 1448 ? this.WALKTRACE(S, f, h, L, x, d, m, p, v, N, u, n, i, c, s, l, y, o) : null;
|
|
1493
1547
|
}
|
|
1494
|
-
const w = (
|
|
1495
|
-
if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(
|
|
1496
|
-
return o[0] = !0, i[0] =
|
|
1497
|
-
new
|
|
1548
|
+
const w = (B - t + (G - r) - M) / 2;
|
|
1549
|
+
if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(B, w))
|
|
1550
|
+
return o[0] = !0, i[0] = B, l[0] = G, w > 0 && M <= 1448 ? this.WALKTRACE(S, f, h, L, x, d, m, p, v, N, u, n, i, c, s, l, y, o) : (t++, r++, [
|
|
1551
|
+
new me(t, n - t + 1, r, s - r + 1)
|
|
1498
1552
|
]);
|
|
1499
1553
|
d = this.ClipDiagonalBound(x - M, M, x, _), m = this.ClipDiagonalBound(x + M, M, x, _);
|
|
1500
1554
|
for (let b = d; b <= m; b += 2) {
|
|
@@ -1507,7 +1561,7 @@ class me {
|
|
|
1507
1561
|
}
|
|
1508
1562
|
if (M <= 1447) {
|
|
1509
1563
|
let b = new Int32Array(h - f + 2);
|
|
1510
|
-
b[0] = S - f + 1,
|
|
1564
|
+
b[0] = S - f + 1, Me.Copy2(v, f, b, 1, h - f + 1), this.m_forwardHistory.push(b), b = new Int32Array(m - d + 2), b[0] = x - d + 1, Me.Copy2(N, d, b, 1, m - d + 1), this.m_reverseHistory.push(b);
|
|
1511
1565
|
}
|
|
1512
1566
|
}
|
|
1513
1567
|
return this.WALKTRACE(S, f, h, L, x, d, m, p, v, N, u, n, i, c, s, l, y, o);
|
|
@@ -1635,10 +1689,10 @@ class me {
|
|
|
1635
1689
|
return n.length > 0 ? n : t;
|
|
1636
1690
|
if (this.ChangesOverlap(t[t.length - 1], n[0], r)) {
|
|
1637
1691
|
const s = new Array(t.length + n.length - 1);
|
|
1638
|
-
return
|
|
1692
|
+
return Me.Copy(t, 0, s, 0, t.length - 1), s[t.length - 1] = r[0], Me.Copy(n, 1, s, t.length, n.length - 1), s;
|
|
1639
1693
|
} else {
|
|
1640
1694
|
const s = new Array(t.length + n.length);
|
|
1641
|
-
return
|
|
1695
|
+
return Me.Copy(t, 0, s, 0, t.length), Me.Copy(n, 0, s, t.length, n.length), s;
|
|
1642
1696
|
}
|
|
1643
1697
|
}
|
|
1644
1698
|
/**
|
|
@@ -1650,12 +1704,12 @@ class me {
|
|
|
1650
1704
|
* @returns True if the two changes overlap
|
|
1651
1705
|
*/
|
|
1652
1706
|
ChangesOverlap(t, n, r) {
|
|
1653
|
-
if (
|
|
1707
|
+
if (ye.Assert(t.originalStart <= n.originalStart, "Left change is not less than or equal to right change"), ye.Assert(t.modifiedStart <= n.modifiedStart, "Left change is not less than or equal to right change"), t.originalStart + t.originalLength >= n.originalStart || t.modifiedStart + t.modifiedLength >= n.modifiedStart) {
|
|
1654
1708
|
const s = t.originalStart;
|
|
1655
1709
|
let i = t.originalLength;
|
|
1656
1710
|
const l = t.modifiedStart;
|
|
1657
1711
|
let o = t.modifiedLength;
|
|
1658
|
-
return t.originalStart + t.originalLength >= n.originalStart && (i = n.originalStart + n.originalLength - t.originalStart), t.modifiedStart + t.modifiedLength >= n.modifiedStart && (o = n.modifiedStart + n.modifiedLength - t.modifiedStart), r[0] = new
|
|
1712
|
+
return t.originalStart + t.originalLength >= n.originalStart && (i = n.originalStart + n.originalLength - t.originalStart), t.modifiedStart + t.modifiedLength >= n.modifiedStart && (o = n.modifiedStart + n.modifiedLength - t.modifiedStart), r[0] = new me(s, i, l, o), !0;
|
|
1659
1713
|
} else
|
|
1660
1714
|
return r[0] = null, !1;
|
|
1661
1715
|
}
|
|
@@ -1684,11 +1738,11 @@ class me {
|
|
|
1684
1738
|
}
|
|
1685
1739
|
}
|
|
1686
1740
|
}
|
|
1687
|
-
let
|
|
1688
|
-
const
|
|
1689
|
-
if (typeof
|
|
1690
|
-
const e =
|
|
1691
|
-
|
|
1741
|
+
let De;
|
|
1742
|
+
const Nt = globalThis.vscode;
|
|
1743
|
+
if (typeof Nt != "undefined" && typeof Nt.process != "undefined") {
|
|
1744
|
+
const e = Nt.process;
|
|
1745
|
+
De = {
|
|
1692
1746
|
get platform() {
|
|
1693
1747
|
return e.platform;
|
|
1694
1748
|
},
|
|
@@ -1702,7 +1756,7 @@ if (typeof vt < "u" && typeof vt.process < "u") {
|
|
|
1702
1756
|
return e.cwd();
|
|
1703
1757
|
}
|
|
1704
1758
|
};
|
|
1705
|
-
} else typeof process
|
|
1759
|
+
} else typeof process != "undefined" ? De = {
|
|
1706
1760
|
get platform() {
|
|
1707
1761
|
return process.platform;
|
|
1708
1762
|
},
|
|
@@ -1715,10 +1769,10 @@ if (typeof vt < "u" && typeof vt.process < "u") {
|
|
|
1715
1769
|
cwd() {
|
|
1716
1770
|
return process.env.VSCODE_CWD || process.cwd();
|
|
1717
1771
|
}
|
|
1718
|
-
} :
|
|
1772
|
+
} : De = {
|
|
1719
1773
|
// Supported
|
|
1720
1774
|
get platform() {
|
|
1721
|
-
return
|
|
1775
|
+
return Qe ? "win32" : _s ? "darwin" : "linux";
|
|
1722
1776
|
},
|
|
1723
1777
|
get arch() {
|
|
1724
1778
|
},
|
|
@@ -1730,8 +1784,8 @@ if (typeof vt < "u" && typeof vt.process < "u") {
|
|
|
1730
1784
|
return "/";
|
|
1731
1785
|
}
|
|
1732
1786
|
};
|
|
1733
|
-
const
|
|
1734
|
-
class
|
|
1787
|
+
const ht = De.cwd, Hs = De.env, Ws = De.platform, zs = 65, $s = 97, Os = 90, Gs = 122, _e = 46, Q = 47, K = 92, fe = 58, js = 63;
|
|
1788
|
+
class Dr extends Error {
|
|
1735
1789
|
constructor(t, n, r) {
|
|
1736
1790
|
let s;
|
|
1737
1791
|
typeof n == "string" && n.indexOf("not ") === 0 ? (s = "must not be", n = n.replace(/^not /, "")) : s = "must be";
|
|
@@ -1740,25 +1794,25 @@ class Mr extends Error {
|
|
|
1740
1794
|
l += `. Received type ${typeof r}`, super(l), this.code = "ERR_INVALID_ARG_TYPE";
|
|
1741
1795
|
}
|
|
1742
1796
|
}
|
|
1743
|
-
function
|
|
1797
|
+
function Qs(e, t) {
|
|
1744
1798
|
if (e === null || typeof e != "object")
|
|
1745
|
-
throw new
|
|
1799
|
+
throw new Dr(t, "Object", e);
|
|
1746
1800
|
}
|
|
1747
1801
|
function $(e, t) {
|
|
1748
1802
|
if (typeof e != "string")
|
|
1749
|
-
throw new
|
|
1803
|
+
throw new Dr(t, "string", e);
|
|
1750
1804
|
}
|
|
1751
|
-
const
|
|
1805
|
+
const ve = Ws === "win32";
|
|
1752
1806
|
function P(e) {
|
|
1753
1807
|
return e === Q || e === K;
|
|
1754
1808
|
}
|
|
1755
|
-
function
|
|
1809
|
+
function Ft(e) {
|
|
1756
1810
|
return e === Q;
|
|
1757
1811
|
}
|
|
1758
|
-
function
|
|
1759
|
-
return e >=
|
|
1812
|
+
function de(e) {
|
|
1813
|
+
return e >= zs && e <= Os || e >= $s && e <= Gs;
|
|
1760
1814
|
}
|
|
1761
|
-
function
|
|
1815
|
+
function ft(e, t, n, r) {
|
|
1762
1816
|
let s = "", i = 0, l = -1, o = 0, u = 0;
|
|
1763
1817
|
for (let c = 0; c <= e.length; ++c) {
|
|
1764
1818
|
if (c < e.length)
|
|
@@ -1770,7 +1824,7 @@ function ct(e, t, n, r) {
|
|
|
1770
1824
|
}
|
|
1771
1825
|
if (r(u)) {
|
|
1772
1826
|
if (!(l === c - 1 || o === 1)) if (o === 2) {
|
|
1773
|
-
if (s.length < 2 || i !== 2 || s.charCodeAt(s.length - 1) !==
|
|
1827
|
+
if (s.length < 2 || i !== 2 || s.charCodeAt(s.length - 1) !== _e || s.charCodeAt(s.length - 2) !== _e) {
|
|
1774
1828
|
if (s.length > 2) {
|
|
1775
1829
|
const f = s.lastIndexOf(n);
|
|
1776
1830
|
f === -1 ? (s = "", i = 0) : (s = s.slice(0, f), i = s.length - 1 - s.lastIndexOf(n)), l = c, o = 0;
|
|
@@ -1784,12 +1838,12 @@ function ct(e, t, n, r) {
|
|
|
1784
1838
|
} else
|
|
1785
1839
|
s.length > 0 ? s += `${n}${e.slice(l + 1, c)}` : s = e.slice(l + 1, c), i = c - l - 1;
|
|
1786
1840
|
l = c, o = 0;
|
|
1787
|
-
} else u ===
|
|
1841
|
+
} else u === _e && o !== -1 ? ++o : o = -1;
|
|
1788
1842
|
}
|
|
1789
1843
|
return s;
|
|
1790
1844
|
}
|
|
1791
|
-
function
|
|
1792
|
-
|
|
1845
|
+
function Tr(e, t) {
|
|
1846
|
+
Qs(t, "pathObject");
|
|
1793
1847
|
const n = t.dir || t.root, r = t.base || `${t.name || ""}${t.ext || ""}`;
|
|
1794
1848
|
return n ? n === t.root ? `${n}${r}` : `${n}${e}${r}` : r;
|
|
1795
1849
|
}
|
|
@@ -1802,7 +1856,7 @@ const Z = {
|
|
|
1802
1856
|
if (s >= 0) {
|
|
1803
1857
|
if (i = e[s], $(i, "path"), i.length === 0)
|
|
1804
1858
|
continue;
|
|
1805
|
-
} else t.length === 0 ? i =
|
|
1859
|
+
} else t.length === 0 ? i = ht() : (i = Hs[`=${t}`] || ht(), (i === void 0 || i.slice(0, 2).toLowerCase() !== t.toLowerCase() && i.charCodeAt(2) === K) && (i = `${t}\\`));
|
|
1806
1860
|
const l = i.length;
|
|
1807
1861
|
let o = 0, u = "", c = !1;
|
|
1808
1862
|
const f = i.charCodeAt(0);
|
|
@@ -1825,7 +1879,7 @@ const Z = {
|
|
|
1825
1879
|
}
|
|
1826
1880
|
} else
|
|
1827
1881
|
o = 1;
|
|
1828
|
-
else
|
|
1882
|
+
else de(f) && i.charCodeAt(1) === fe && (u = i.slice(0, 2), o = 2, l > 2 && P(i.charCodeAt(2)) && (c = !0, o = 3));
|
|
1829
1883
|
if (u.length > 0)
|
|
1830
1884
|
if (t.length > 0) {
|
|
1831
1885
|
if (u.toLowerCase() !== t.toLowerCase())
|
|
@@ -1838,7 +1892,7 @@ const Z = {
|
|
|
1838
1892
|
} else if (n = `${i.slice(o)}\\${n}`, r = c, c && t.length > 0)
|
|
1839
1893
|
break;
|
|
1840
1894
|
}
|
|
1841
|
-
return n =
|
|
1895
|
+
return n = ft(n, !r, "\\", P), r ? `${t}\\${n}` : `${t}${n}` || ".";
|
|
1842
1896
|
},
|
|
1843
1897
|
normalize(e) {
|
|
1844
1898
|
$(e, "path");
|
|
@@ -1848,7 +1902,7 @@ const Z = {
|
|
|
1848
1902
|
let n = 0, r, s = !1;
|
|
1849
1903
|
const i = e.charCodeAt(0);
|
|
1850
1904
|
if (t === 1)
|
|
1851
|
-
return
|
|
1905
|
+
return Ft(i) ? "\\" : e;
|
|
1852
1906
|
if (P(i))
|
|
1853
1907
|
if (s = !0, P(e.charCodeAt(1))) {
|
|
1854
1908
|
let o = 2, u = o;
|
|
@@ -1868,8 +1922,8 @@ const Z = {
|
|
|
1868
1922
|
}
|
|
1869
1923
|
} else
|
|
1870
1924
|
n = 1;
|
|
1871
|
-
else
|
|
1872
|
-
let l = n < t ?
|
|
1925
|
+
else de(i) && e.charCodeAt(1) === fe && (r = e.slice(0, 2), n = 2, t > 2 && P(e.charCodeAt(2)) && (s = !0, n = 3));
|
|
1926
|
+
let l = n < t ? ft(e.slice(n), !s, "\\", P) : "";
|
|
1873
1927
|
return l.length === 0 && !s && (l = "."), l.length > 0 && P(e.charCodeAt(t - 1)) && (l += "\\"), r === void 0 ? s ? `\\${l}` : l : s ? `${r}\\${l}` : `${r}${l}`;
|
|
1874
1928
|
},
|
|
1875
1929
|
isAbsolute(e) {
|
|
@@ -1879,7 +1933,7 @@ const Z = {
|
|
|
1879
1933
|
return !1;
|
|
1880
1934
|
const n = e.charCodeAt(0);
|
|
1881
1935
|
return P(n) || // Possible device root
|
|
1882
|
-
t > 2 &&
|
|
1936
|
+
t > 2 && de(n) && e.charCodeAt(1) === fe && P(e.charCodeAt(2));
|
|
1883
1937
|
},
|
|
1884
1938
|
join(...e) {
|
|
1885
1939
|
if (e.length === 0)
|
|
@@ -1961,10 +2015,10 @@ const Z = {
|
|
|
1961
2015
|
if (t.charCodeAt(0) === K) {
|
|
1962
2016
|
if (t.charCodeAt(1) === K) {
|
|
1963
2017
|
const n = t.charCodeAt(2);
|
|
1964
|
-
if (n !==
|
|
2018
|
+
if (n !== js && n !== _e)
|
|
1965
2019
|
return `\\\\?\\UNC\\${t.slice(2)}`;
|
|
1966
2020
|
}
|
|
1967
|
-
} else if (
|
|
2021
|
+
} else if (de(t.charCodeAt(0)) && t.charCodeAt(1) === fe && t.charCodeAt(2) === K)
|
|
1968
2022
|
return `\\\\?\\${t}`;
|
|
1969
2023
|
return e;
|
|
1970
2024
|
},
|
|
@@ -1994,7 +2048,7 @@ const Z = {
|
|
|
1994
2048
|
}
|
|
1995
2049
|
}
|
|
1996
2050
|
}
|
|
1997
|
-
} else
|
|
2051
|
+
} else de(s) && e.charCodeAt(1) === fe && (n = t > 2 && P(e.charCodeAt(2)) ? 3 : 2, r = n);
|
|
1998
2052
|
let i = -1, l = !0;
|
|
1999
2053
|
for (let o = t - 1; o >= r; --o)
|
|
2000
2054
|
if (P(e.charCodeAt(o))) {
|
|
@@ -2014,7 +2068,7 @@ const Z = {
|
|
|
2014
2068
|
basename(e, t) {
|
|
2015
2069
|
t !== void 0 && $(t, "ext"), $(e, "path");
|
|
2016
2070
|
let n = 0, r = -1, s = !0, i;
|
|
2017
|
-
if (e.length >= 2 &&
|
|
2071
|
+
if (e.length >= 2 && de(e.charCodeAt(0)) && e.charCodeAt(1) === fe && (n = 2), t !== void 0 && t.length > 0 && t.length <= e.length) {
|
|
2018
2072
|
if (t === e)
|
|
2019
2073
|
return "";
|
|
2020
2074
|
let l = t.length - 1, o = -1;
|
|
@@ -2042,7 +2096,7 @@ const Z = {
|
|
|
2042
2096
|
extname(e) {
|
|
2043
2097
|
$(e, "path");
|
|
2044
2098
|
let t = 0, n = -1, r = 0, s = -1, i = !0, l = 0;
|
|
2045
|
-
e.length >= 2 && e.charCodeAt(1) ===
|
|
2099
|
+
e.length >= 2 && e.charCodeAt(1) === fe && de(e.charCodeAt(0)) && (t = r = 2);
|
|
2046
2100
|
for (let o = e.length - 1; o >= t; --o) {
|
|
2047
2101
|
const u = e.charCodeAt(o);
|
|
2048
2102
|
if (P(u)) {
|
|
@@ -2052,13 +2106,13 @@ const Z = {
|
|
|
2052
2106
|
}
|
|
2053
2107
|
continue;
|
|
2054
2108
|
}
|
|
2055
|
-
s === -1 && (i = !1, s = o + 1), u ===
|
|
2109
|
+
s === -1 && (i = !1, s = o + 1), u === _e ? n === -1 ? n = o : l !== 1 && (l = 1) : n !== -1 && (l = -1);
|
|
2056
2110
|
}
|
|
2057
2111
|
return n === -1 || s === -1 || // We saw a non-dot character immediately before the dot
|
|
2058
2112
|
l === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
2059
2113
|
l === 1 && n === s - 1 && n === r + 1 ? "" : e.slice(n, s);
|
|
2060
2114
|
},
|
|
2061
|
-
format:
|
|
2115
|
+
format: Tr.bind(null, "\\"),
|
|
2062
2116
|
parse(e) {
|
|
2063
2117
|
$(e, "path");
|
|
2064
2118
|
const t = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
@@ -2083,7 +2137,7 @@ const Z = {
|
|
|
2083
2137
|
}
|
|
2084
2138
|
}
|
|
2085
2139
|
}
|
|
2086
|
-
} else if (
|
|
2140
|
+
} else if (de(s) && e.charCodeAt(1) === fe) {
|
|
2087
2141
|
if (n <= 2)
|
|
2088
2142
|
return t.root = t.dir = e, t;
|
|
2089
2143
|
if (r = 2, P(e.charCodeAt(2))) {
|
|
@@ -2102,7 +2156,7 @@ const Z = {
|
|
|
2102
2156
|
}
|
|
2103
2157
|
continue;
|
|
2104
2158
|
}
|
|
2105
|
-
o === -1 && (u = !1, o = c + 1), s ===
|
|
2159
|
+
o === -1 && (u = !1, o = c + 1), s === _e ? i === -1 ? i = c : f !== 1 && (f = 1) : i !== -1 && (f = -1);
|
|
2106
2160
|
}
|
|
2107
2161
|
return o !== -1 && (i === -1 || // We saw a non-dot character immediately before the dot
|
|
2108
2162
|
f === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
@@ -2112,30 +2166,30 @@ const Z = {
|
|
|
2112
2166
|
delimiter: ";",
|
|
2113
2167
|
win32: null,
|
|
2114
2168
|
posix: null
|
|
2115
|
-
},
|
|
2116
|
-
if (
|
|
2169
|
+
}, Xs = (() => {
|
|
2170
|
+
if (ve) {
|
|
2117
2171
|
const e = /\\/g;
|
|
2118
2172
|
return () => {
|
|
2119
|
-
const t =
|
|
2173
|
+
const t = ht().replace(e, "/");
|
|
2120
2174
|
return t.slice(t.indexOf("/"));
|
|
2121
2175
|
};
|
|
2122
2176
|
}
|
|
2123
|
-
return () =>
|
|
2177
|
+
return () => ht();
|
|
2124
2178
|
})(), ee = {
|
|
2125
2179
|
// path.resolve([from ...], to)
|
|
2126
2180
|
resolve(...e) {
|
|
2127
2181
|
let t = "", n = !1;
|
|
2128
2182
|
for (let r = e.length - 1; r >= -1 && !n; r--) {
|
|
2129
|
-
const s = r >= 0 ? e[r] :
|
|
2183
|
+
const s = r >= 0 ? e[r] : Xs();
|
|
2130
2184
|
$(s, "path"), s.length !== 0 && (t = `${s}/${t}`, n = s.charCodeAt(0) === Q);
|
|
2131
2185
|
}
|
|
2132
|
-
return t =
|
|
2186
|
+
return t = ft(t, !n, "/", Ft), n ? `/${t}` : t.length > 0 ? t : ".";
|
|
2133
2187
|
},
|
|
2134
2188
|
normalize(e) {
|
|
2135
2189
|
if ($(e, "path"), e.length === 0)
|
|
2136
2190
|
return ".";
|
|
2137
2191
|
const t = e.charCodeAt(0) === Q, n = e.charCodeAt(e.length - 1) === Q;
|
|
2138
|
-
return e =
|
|
2192
|
+
return e = ft(e, !t, "/", Ft), e.length === 0 ? t ? "/" : n ? "./" : "." : (n && (e += "/"), t ? `/${e}` : e);
|
|
2139
2193
|
},
|
|
2140
2194
|
isAbsolute(e) {
|
|
2141
2195
|
return $(e, "path"), e.length > 0 && e.charCodeAt(0) === Q;
|
|
@@ -2231,13 +2285,13 @@ const Z = {
|
|
|
2231
2285
|
}
|
|
2232
2286
|
continue;
|
|
2233
2287
|
}
|
|
2234
|
-
r === -1 && (s = !1, r = l + 1), o ===
|
|
2288
|
+
r === -1 && (s = !1, r = l + 1), o === _e ? t === -1 ? t = l : i !== 1 && (i = 1) : t !== -1 && (i = -1);
|
|
2235
2289
|
}
|
|
2236
2290
|
return t === -1 || r === -1 || // We saw a non-dot character immediately before the dot
|
|
2237
2291
|
i === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
2238
2292
|
i === 1 && t === r - 1 && t === n + 1 ? "" : e.slice(t, r);
|
|
2239
2293
|
},
|
|
2240
|
-
format:
|
|
2294
|
+
format: Tr.bind(null, "/"),
|
|
2241
2295
|
parse(e) {
|
|
2242
2296
|
$(e, "path");
|
|
2243
2297
|
const t = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
@@ -2256,7 +2310,7 @@ const Z = {
|
|
|
2256
2310
|
}
|
|
2257
2311
|
continue;
|
|
2258
2312
|
}
|
|
2259
|
-
l === -1 && (o = !1, l = u + 1), f ===
|
|
2313
|
+
l === -1 && (o = !1, l = u + 1), f === _e ? s === -1 ? s = u : c !== 1 && (c = 1) : s !== -1 && (c = -1);
|
|
2260
2314
|
}
|
|
2261
2315
|
if (l !== -1) {
|
|
2262
2316
|
const f = i === 0 && n ? 1 : i;
|
|
@@ -2273,50 +2327,50 @@ const Z = {
|
|
|
2273
2327
|
};
|
|
2274
2328
|
ee.win32 = Z.win32 = Z;
|
|
2275
2329
|
ee.posix = Z.posix = ee;
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
const
|
|
2284
|
-
function
|
|
2330
|
+
ve ? Z.normalize : ee.normalize;
|
|
2331
|
+
ve ? Z.resolve : ee.resolve;
|
|
2332
|
+
ve ? Z.relative : ee.relative;
|
|
2333
|
+
ve ? Z.dirname : ee.dirname;
|
|
2334
|
+
ve ? Z.basename : ee.basename;
|
|
2335
|
+
ve ? Z.extname : ee.extname;
|
|
2336
|
+
ve ? Z.sep : ee.sep;
|
|
2337
|
+
const Ys = /^\w[\w\d+.-]*$/, Js = /^\//, Zs = /^\/\//;
|
|
2338
|
+
function Ks(e, t) {
|
|
2285
2339
|
if (!e.scheme && t)
|
|
2286
2340
|
throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);
|
|
2287
|
-
if (e.scheme && !
|
|
2341
|
+
if (e.scheme && !Ys.test(e.scheme))
|
|
2288
2342
|
throw new Error("[UriError]: Scheme contains illegal characters.");
|
|
2289
2343
|
if (e.path) {
|
|
2290
2344
|
if (e.authority) {
|
|
2291
|
-
if (
|
|
2345
|
+
if (!Js.test(e.path))
|
|
2292
2346
|
throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
|
|
2293
|
-
} else if (
|
|
2347
|
+
} else if (Zs.test(e.path))
|
|
2294
2348
|
throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
|
|
2295
2349
|
}
|
|
2296
2350
|
}
|
|
2297
|
-
function
|
|
2351
|
+
function ei(e, t) {
|
|
2298
2352
|
return !e && !t ? "file" : e;
|
|
2299
2353
|
}
|
|
2300
|
-
function
|
|
2354
|
+
function ti(e, t) {
|
|
2301
2355
|
switch (e) {
|
|
2302
2356
|
case "https":
|
|
2303
2357
|
case "http":
|
|
2304
2358
|
case "file":
|
|
2305
|
-
t ? t[0] !==
|
|
2359
|
+
t ? t[0] !== le && (t = le + t) : t = le;
|
|
2306
2360
|
break;
|
|
2307
2361
|
}
|
|
2308
2362
|
return t;
|
|
2309
2363
|
}
|
|
2310
|
-
const H = "",
|
|
2311
|
-
class
|
|
2364
|
+
const H = "", le = "/", ni = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
|
|
2365
|
+
class Ne {
|
|
2312
2366
|
static isUri(t) {
|
|
2313
|
-
return t instanceof
|
|
2367
|
+
return t instanceof Ne ? !0 : t ? typeof t.authority == "string" && typeof t.fragment == "string" && typeof t.path == "string" && typeof t.query == "string" && typeof t.scheme == "string" && typeof t.fsPath == "string" && typeof t.with == "function" && typeof t.toString == "function" : !1;
|
|
2314
2368
|
}
|
|
2315
2369
|
/**
|
|
2316
2370
|
* @internal
|
|
2317
2371
|
*/
|
|
2318
2372
|
constructor(t, n, r, s, i, l = !1) {
|
|
2319
|
-
typeof t == "object" ? (this.scheme = t.scheme || H, this.authority = t.authority || H, this.path = t.path || H, this.query = t.query || H, this.fragment = t.fragment || H) : (this.scheme =
|
|
2373
|
+
typeof t == "object" ? (this.scheme = t.scheme || H, this.authority = t.authority || H, this.path = t.path || H, this.query = t.query || H, this.fragment = t.fragment || H) : (this.scheme = ei(t, l), this.authority = n || H, this.path = ti(this.scheme, r || H), this.query = s || H, this.fragment = i || H, Ks(this, l));
|
|
2320
2374
|
}
|
|
2321
2375
|
// ---- filesystem path -----------------------
|
|
2322
2376
|
/**
|
|
@@ -2344,14 +2398,14 @@ class Le {
|
|
|
2344
2398
|
* with URIs that represent files on disk (`file` scheme).
|
|
2345
2399
|
*/
|
|
2346
2400
|
get fsPath() {
|
|
2347
|
-
return
|
|
2401
|
+
return Dt(this, !1);
|
|
2348
2402
|
}
|
|
2349
2403
|
// ---- modify to new -------------------------
|
|
2350
2404
|
with(t) {
|
|
2351
2405
|
if (!t)
|
|
2352
2406
|
return this;
|
|
2353
2407
|
let { scheme: n, authority: r, path: s, query: i, fragment: l } = t;
|
|
2354
|
-
return n === void 0 ? n = this.scheme : n === null && (n = H), r === void 0 ? r = this.authority : r === null && (r = H), s === void 0 ? s = this.path : s === null && (s = H), i === void 0 ? i = this.query : i === null && (i = H), l === void 0 ? l = this.fragment : l === null && (l = H), n === this.scheme && r === this.authority && s === this.path && i === this.query && l === this.fragment ? this : new
|
|
2408
|
+
return n === void 0 ? n = this.scheme : n === null && (n = H), r === void 0 ? r = this.authority : r === null && (r = H), s === void 0 ? s = this.path : s === null && (s = H), i === void 0 ? i = this.query : i === null && (i = H), l === void 0 ? l = this.fragment : l === null && (l = H), n === this.scheme && r === this.authority && s === this.path && i === this.query && l === this.fragment ? this : new Ee(n, r, s, i, l);
|
|
2355
2409
|
}
|
|
2356
2410
|
// ---- parse & validate ------------------------
|
|
2357
2411
|
/**
|
|
@@ -2361,8 +2415,8 @@ class Le {
|
|
|
2361
2415
|
* @param value A string which represents an URI (see `URI#toString`).
|
|
2362
2416
|
*/
|
|
2363
2417
|
static parse(t, n = !1) {
|
|
2364
|
-
const r =
|
|
2365
|
-
return r ? new
|
|
2418
|
+
const r = ni.exec(t);
|
|
2419
|
+
return r ? new Ee(r[2] || H, rt(r[4] || H), rt(r[5] || H), rt(r[7] || H), rt(r[9] || H), n) : new Ee(H, H, H, H, H);
|
|
2366
2420
|
}
|
|
2367
2421
|
/**
|
|
2368
2422
|
* Creates a new URI from a file system path, e.g. `c:\my\files`,
|
|
@@ -2387,11 +2441,11 @@ class Le {
|
|
|
2387
2441
|
*/
|
|
2388
2442
|
static file(t) {
|
|
2389
2443
|
let n = H;
|
|
2390
|
-
if (
|
|
2391
|
-
const r = t.indexOf(
|
|
2392
|
-
r === -1 ? (n = t.substring(2), t =
|
|
2444
|
+
if (Qe && (t = t.replace(/\\/g, le)), t[0] === le && t[1] === le) {
|
|
2445
|
+
const r = t.indexOf(le, 2);
|
|
2446
|
+
r === -1 ? (n = t.substring(2), t = le) : (n = t.substring(2, r), t = t.substring(r) || le);
|
|
2393
2447
|
}
|
|
2394
|
-
return new
|
|
2448
|
+
return new Ee("file", n, t, H, H);
|
|
2395
2449
|
}
|
|
2396
2450
|
/**
|
|
2397
2451
|
* Creates new URI from uri components.
|
|
@@ -2401,7 +2455,7 @@ class Le {
|
|
|
2401
2455
|
* user input, command arguments etc
|
|
2402
2456
|
*/
|
|
2403
2457
|
static from(t, n) {
|
|
2404
|
-
return new
|
|
2458
|
+
return new Ee(t.scheme, t.authority, t.path, t.query, t.fragment, n);
|
|
2405
2459
|
}
|
|
2406
2460
|
/**
|
|
2407
2461
|
* Join a URI path with path fragments and normalizes the resulting path.
|
|
@@ -2414,7 +2468,7 @@ class Le {
|
|
|
2414
2468
|
if (!t.path)
|
|
2415
2469
|
throw new Error("[UriError]: cannot call joinPath on URI without path");
|
|
2416
2470
|
let r;
|
|
2417
|
-
return
|
|
2471
|
+
return Qe && t.scheme === "file" ? r = Ne.file(Z.join(Dt(t, !0), ...n)).path : r = ee.join(t.path, ...n), t.with({ path: r });
|
|
2418
2472
|
}
|
|
2419
2473
|
// ---- printing/externalize ---------------------------
|
|
2420
2474
|
/**
|
|
@@ -2429,7 +2483,7 @@ class Le {
|
|
|
2429
2483
|
* @param skipEncoding Do not encode the result, default is `false`
|
|
2430
2484
|
*/
|
|
2431
2485
|
toString(t = !1) {
|
|
2432
|
-
return
|
|
2486
|
+
return Tt(this, t);
|
|
2433
2487
|
}
|
|
2434
2488
|
toJSON() {
|
|
2435
2489
|
return this;
|
|
@@ -2437,35 +2491,35 @@ class Le {
|
|
|
2437
2491
|
static revive(t) {
|
|
2438
2492
|
var n, r;
|
|
2439
2493
|
if (t) {
|
|
2440
|
-
if (t instanceof
|
|
2494
|
+
if (t instanceof Ne)
|
|
2441
2495
|
return t;
|
|
2442
2496
|
{
|
|
2443
|
-
const s = new
|
|
2444
|
-
return s._formatted = (n = t.external) !== null && n !== void 0 ? n : null, s._fsPath = t._sep ===
|
|
2497
|
+
const s = new Ee(t);
|
|
2498
|
+
return s._formatted = (n = t.external) !== null && n !== void 0 ? n : null, s._fsPath = t._sep === Vr && (r = t.fsPath) !== null && r !== void 0 ? r : null, s;
|
|
2445
2499
|
}
|
|
2446
2500
|
} else return t;
|
|
2447
2501
|
}
|
|
2448
2502
|
}
|
|
2449
|
-
const
|
|
2450
|
-
class
|
|
2503
|
+
const Vr = Qe ? 1 : void 0;
|
|
2504
|
+
class Ee extends Ne {
|
|
2451
2505
|
constructor() {
|
|
2452
2506
|
super(...arguments), this._formatted = null, this._fsPath = null;
|
|
2453
2507
|
}
|
|
2454
2508
|
get fsPath() {
|
|
2455
|
-
return this._fsPath || (this._fsPath =
|
|
2509
|
+
return this._fsPath || (this._fsPath = Dt(this, !1)), this._fsPath;
|
|
2456
2510
|
}
|
|
2457
2511
|
toString(t = !1) {
|
|
2458
|
-
return t ?
|
|
2512
|
+
return t ? Tt(this, !0) : (this._formatted || (this._formatted = Tt(this, !1)), this._formatted);
|
|
2459
2513
|
}
|
|
2460
2514
|
toJSON() {
|
|
2461
2515
|
const t = {
|
|
2462
2516
|
$mid: 1
|
|
2463
2517
|
/* MarshalledId.Uri */
|
|
2464
2518
|
};
|
|
2465
|
-
return this._fsPath && (t.fsPath = this._fsPath, t._sep =
|
|
2519
|
+
return this._fsPath && (t.fsPath = this._fsPath, t._sep = Vr), this._formatted && (t.external = this._formatted), this.path && (t.path = this.path), this.scheme && (t.scheme = this.scheme), this.authority && (t.authority = this.authority), this.query && (t.query = this.query), this.fragment && (t.fragment = this.fragment), t;
|
|
2466
2520
|
}
|
|
2467
2521
|
}
|
|
2468
|
-
const
|
|
2522
|
+
const Br = {
|
|
2469
2523
|
58: "%3A",
|
|
2470
2524
|
// gen-delims
|
|
2471
2525
|
47: "%2F",
|
|
@@ -2488,7 +2542,7 @@ const Pr = {
|
|
|
2488
2542
|
61: "%3D",
|
|
2489
2543
|
32: "%20"
|
|
2490
2544
|
};
|
|
2491
|
-
function
|
|
2545
|
+
function on(e, t, n) {
|
|
2492
2546
|
let r, s = -1;
|
|
2493
2547
|
for (let i = 0; i < e.length; i++) {
|
|
2494
2548
|
const l = e.charCodeAt(i);
|
|
@@ -2496,28 +2550,28 @@ function nn(e, t, n) {
|
|
|
2496
2550
|
s !== -1 && (r += encodeURIComponent(e.substring(s, i)), s = -1), r !== void 0 && (r += e.charAt(i));
|
|
2497
2551
|
else {
|
|
2498
2552
|
r === void 0 && (r = e.substr(0, i));
|
|
2499
|
-
const o =
|
|
2553
|
+
const o = Br[l];
|
|
2500
2554
|
o !== void 0 ? (s !== -1 && (r += encodeURIComponent(e.substring(s, i)), s = -1), r += o) : s === -1 && (s = i);
|
|
2501
2555
|
}
|
|
2502
2556
|
}
|
|
2503
2557
|
return s !== -1 && (r += encodeURIComponent(e.substring(s))), r !== void 0 ? r : e;
|
|
2504
2558
|
}
|
|
2505
|
-
function
|
|
2559
|
+
function ri(e) {
|
|
2506
2560
|
let t;
|
|
2507
2561
|
for (let n = 0; n < e.length; n++) {
|
|
2508
2562
|
const r = e.charCodeAt(n);
|
|
2509
|
-
r === 35 || r === 63 ? (t === void 0 && (t = e.substr(0, n)), t +=
|
|
2563
|
+
r === 35 || r === 63 ? (t === void 0 && (t = e.substr(0, n)), t += Br[r]) : t !== void 0 && (t += e[n]);
|
|
2510
2564
|
}
|
|
2511
2565
|
return t !== void 0 ? t : e;
|
|
2512
2566
|
}
|
|
2513
|
-
function
|
|
2567
|
+
function Dt(e, t) {
|
|
2514
2568
|
let n;
|
|
2515
|
-
return e.authority && e.path.length > 1 && e.scheme === "file" ? n = `//${e.authority}${e.path}` : e.path.charCodeAt(0) === 47 && (e.path.charCodeAt(1) >= 65 && e.path.charCodeAt(1) <= 90 || e.path.charCodeAt(1) >= 97 && e.path.charCodeAt(1) <= 122) && e.path.charCodeAt(2) === 58 ? t ? n = e.path.substr(1) : n = e.path[1].toLowerCase() + e.path.substr(2) : n = e.path,
|
|
2569
|
+
return e.authority && e.path.length > 1 && e.scheme === "file" ? n = `//${e.authority}${e.path}` : e.path.charCodeAt(0) === 47 && (e.path.charCodeAt(1) >= 65 && e.path.charCodeAt(1) <= 90 || e.path.charCodeAt(1) >= 97 && e.path.charCodeAt(1) <= 122) && e.path.charCodeAt(2) === 58 ? t ? n = e.path.substr(1) : n = e.path[1].toLowerCase() + e.path.substr(2) : n = e.path, Qe && (n = n.replace(/\//g, "\\")), n;
|
|
2516
2570
|
}
|
|
2517
|
-
function
|
|
2518
|
-
const n = t ?
|
|
2571
|
+
function Tt(e, t) {
|
|
2572
|
+
const n = t ? ri : on;
|
|
2519
2573
|
let r = "", { scheme: s, authority: i, path: l, query: o, fragment: u } = e;
|
|
2520
|
-
if (s && (r += s, r += ":"), (i || s === "file") && (r +=
|
|
2574
|
+
if (s && (r += s, r += ":"), (i || s === "file") && (r += le, r += le), i) {
|
|
2521
2575
|
let c = i.indexOf("@");
|
|
2522
2576
|
if (c !== -1) {
|
|
2523
2577
|
const f = i.substr(0, c);
|
|
@@ -2535,18 +2589,18 @@ function Pt(e, t) {
|
|
|
2535
2589
|
}
|
|
2536
2590
|
r += n(l, !0, !1);
|
|
2537
2591
|
}
|
|
2538
|
-
return o && (r += "?", r += n(o, !1, !1)), u && (r += "#", r += t ? u :
|
|
2592
|
+
return o && (r += "?", r += n(o, !1, !1)), u && (r += "#", r += t ? u : on(u, !1, !1)), r;
|
|
2539
2593
|
}
|
|
2540
|
-
function
|
|
2594
|
+
function qr(e) {
|
|
2541
2595
|
try {
|
|
2542
2596
|
return decodeURIComponent(e);
|
|
2543
|
-
} catch {
|
|
2544
|
-
return e.length > 3 ? e.substr(0, 3) +
|
|
2597
|
+
} catch (t) {
|
|
2598
|
+
return e.length > 3 ? e.substr(0, 3) + qr(e.substr(3)) : e;
|
|
2545
2599
|
}
|
|
2546
2600
|
}
|
|
2547
|
-
const
|
|
2548
|
-
function
|
|
2549
|
-
return e.match(
|
|
2601
|
+
const un = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
|
|
2602
|
+
function rt(e) {
|
|
2603
|
+
return e.match(un) ? e.replace(un, (t) => qr(t)) : e;
|
|
2550
2604
|
}
|
|
2551
2605
|
class Y {
|
|
2552
2606
|
constructor(t, n) {
|
|
@@ -2890,7 +2944,7 @@ class D {
|
|
|
2890
2944
|
return this;
|
|
2891
2945
|
}
|
|
2892
2946
|
}
|
|
2893
|
-
function
|
|
2947
|
+
function si(e, t, n = (r, s) => r === s) {
|
|
2894
2948
|
if (e === t)
|
|
2895
2949
|
return !0;
|
|
2896
2950
|
if (!e || !t || e.length !== t.length)
|
|
@@ -2900,25 +2954,25 @@ function Js(e, t, n = (r, s) => r === s) {
|
|
|
2900
2954
|
return !1;
|
|
2901
2955
|
return !0;
|
|
2902
2956
|
}
|
|
2903
|
-
function*
|
|
2957
|
+
function* ii(e, t) {
|
|
2904
2958
|
let n, r;
|
|
2905
2959
|
for (const s of e)
|
|
2906
2960
|
r !== void 0 && t(r, s) ? n.push(s) : (n && (yield n), n = [s]), r = s;
|
|
2907
2961
|
n && (yield n);
|
|
2908
2962
|
}
|
|
2909
|
-
function
|
|
2963
|
+
function ai(e, t) {
|
|
2910
2964
|
for (let n = 0; n <= e.length; n++)
|
|
2911
2965
|
t(n === 0 ? void 0 : e[n - 1], n === e.length ? void 0 : e[n]);
|
|
2912
2966
|
}
|
|
2913
|
-
function
|
|
2967
|
+
function li(e, t) {
|
|
2914
2968
|
for (let n = 0; n < e.length; n++)
|
|
2915
2969
|
t(n === 0 ? void 0 : e[n - 1], e[n], n + 1 === e.length ? void 0 : e[n + 1]);
|
|
2916
2970
|
}
|
|
2917
|
-
function
|
|
2971
|
+
function oi(e, t) {
|
|
2918
2972
|
for (const n of t)
|
|
2919
2973
|
e.push(n);
|
|
2920
2974
|
}
|
|
2921
|
-
var
|
|
2975
|
+
var cn;
|
|
2922
2976
|
(function(e) {
|
|
2923
2977
|
function t(i) {
|
|
2924
2978
|
return i < 0;
|
|
@@ -2936,34 +2990,34 @@ var sn;
|
|
|
2936
2990
|
return i === 0;
|
|
2937
2991
|
}
|
|
2938
2992
|
e.isNeitherLessOrGreaterThan = s, e.greaterThan = 1, e.lessThan = -1, e.neitherLessOrGreaterThan = 0;
|
|
2939
|
-
})(
|
|
2940
|
-
function
|
|
2993
|
+
})(cn || (cn = {}));
|
|
2994
|
+
function st(e, t) {
|
|
2941
2995
|
return (n, r) => t(e(n), e(r));
|
|
2942
2996
|
}
|
|
2943
|
-
const
|
|
2944
|
-
function
|
|
2997
|
+
const it = (e, t) => e - t;
|
|
2998
|
+
function ui(e) {
|
|
2945
2999
|
return (t, n) => -e(t, n);
|
|
2946
3000
|
}
|
|
2947
|
-
function
|
|
3001
|
+
function hn(e) {
|
|
2948
3002
|
return e < 0 ? 0 : e > 255 ? 255 : e | 0;
|
|
2949
3003
|
}
|
|
2950
|
-
function
|
|
3004
|
+
function ke(e) {
|
|
2951
3005
|
return e < 0 ? 0 : e > 4294967295 ? 4294967295 : e | 0;
|
|
2952
3006
|
}
|
|
2953
|
-
class
|
|
3007
|
+
class ci {
|
|
2954
3008
|
constructor(t) {
|
|
2955
3009
|
this.values = t, this.prefixSum = new Uint32Array(t.length), this.prefixSumValidIndex = new Int32Array(1), this.prefixSumValidIndex[0] = -1;
|
|
2956
3010
|
}
|
|
2957
3011
|
insertValues(t, n) {
|
|
2958
|
-
t =
|
|
3012
|
+
t = ke(t);
|
|
2959
3013
|
const r = this.values, s = this.prefixSum, i = n.length;
|
|
2960
3014
|
return i === 0 ? !1 : (this.values = new Uint32Array(r.length + i), this.values.set(r.subarray(0, t), 0), this.values.set(r.subarray(t), t + i), this.values.set(n, t), t - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = t - 1), this.prefixSum = new Uint32Array(this.values.length), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(s.subarray(0, this.prefixSumValidIndex[0] + 1)), !0);
|
|
2961
3015
|
}
|
|
2962
3016
|
setValue(t, n) {
|
|
2963
|
-
return t =
|
|
3017
|
+
return t = ke(t), n = ke(n), this.values[t] === n ? !1 : (this.values[t] = n, t - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = t - 1), !0);
|
|
2964
3018
|
}
|
|
2965
3019
|
removeValues(t, n) {
|
|
2966
|
-
t =
|
|
3020
|
+
t = ke(t), n = ke(n);
|
|
2967
3021
|
const r = this.values, s = this.prefixSum;
|
|
2968
3022
|
if (t >= r.length)
|
|
2969
3023
|
return !1;
|
|
@@ -2978,7 +3032,7 @@ class ri {
|
|
|
2978
3032
|
* @returns `SUM(0 <= j <= index, values[j])`.
|
|
2979
3033
|
*/
|
|
2980
3034
|
getPrefixSum(t) {
|
|
2981
|
-
return t < 0 ? 0 : (t =
|
|
3035
|
+
return t < 0 ? 0 : (t = ke(t), this._getPrefixSum(t));
|
|
2982
3036
|
}
|
|
2983
3037
|
_getPrefixSum(t) {
|
|
2984
3038
|
if (t <= this.prefixSumValidIndex[0])
|
|
@@ -2999,15 +3053,15 @@ class ri {
|
|
|
2999
3053
|
n = s + 1;
|
|
3000
3054
|
else
|
|
3001
3055
|
break;
|
|
3002
|
-
return new
|
|
3056
|
+
return new hi(s, t - l);
|
|
3003
3057
|
}
|
|
3004
3058
|
}
|
|
3005
|
-
class
|
|
3059
|
+
class hi {
|
|
3006
3060
|
constructor(t, n) {
|
|
3007
3061
|
this.index = t, this.remainder = n, this._prefixSumIndexOfResultBrand = void 0, this.index = t, this.remainder = n;
|
|
3008
3062
|
}
|
|
3009
3063
|
}
|
|
3010
|
-
class
|
|
3064
|
+
class fi {
|
|
3011
3065
|
constructor(t, n, r, s) {
|
|
3012
3066
|
this._uri = t, this._lines = n, this._eol = r, this._versionId = s, this._lineStarts = null, this._cachedTextValue = null;
|
|
3013
3067
|
}
|
|
@@ -3032,7 +3086,7 @@ class ii {
|
|
|
3032
3086
|
const t = this._eol.length, n = this._lines.length, r = new Uint32Array(n);
|
|
3033
3087
|
for (let s = 0; s < n; s++)
|
|
3034
3088
|
r[s] = this._lines[s].length + t;
|
|
3035
|
-
this._lineStarts = new
|
|
3089
|
+
this._lineStarts = new ci(r);
|
|
3036
3090
|
}
|
|
3037
3091
|
}
|
|
3038
3092
|
/**
|
|
@@ -3053,7 +3107,7 @@ class ii {
|
|
|
3053
3107
|
_acceptInsertText(t, n) {
|
|
3054
3108
|
if (n.length === 0)
|
|
3055
3109
|
return;
|
|
3056
|
-
const r =
|
|
3110
|
+
const r = Ns(n);
|
|
3057
3111
|
if (r.length === 1) {
|
|
3058
3112
|
this._setLineText(t.lineNumber - 1, this._lines[t.lineNumber - 1].substring(0, t.column - 1) + r[0] + this._lines[t.lineNumber - 1].substring(t.column - 1));
|
|
3059
3113
|
return;
|
|
@@ -3065,16 +3119,16 @@ class ii {
|
|
|
3065
3119
|
this._lineStarts && this._lineStarts.insertValues(t.lineNumber, s);
|
|
3066
3120
|
}
|
|
3067
3121
|
}
|
|
3068
|
-
const
|
|
3069
|
-
function
|
|
3122
|
+
const di = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";
|
|
3123
|
+
function mi(e = "") {
|
|
3070
3124
|
let t = "(-?\\d*\\.\\d\\w*)|([^";
|
|
3071
|
-
for (const n of
|
|
3125
|
+
for (const n of di)
|
|
3072
3126
|
e.indexOf(n) >= 0 || (t += "\\" + n);
|
|
3073
3127
|
return t += "\\s]+)", new RegExp(t, "g");
|
|
3074
3128
|
}
|
|
3075
|
-
const
|
|
3076
|
-
function
|
|
3077
|
-
let t =
|
|
3129
|
+
const Ir = mi();
|
|
3130
|
+
function Ur(e) {
|
|
3131
|
+
let t = Ir;
|
|
3078
3132
|
if (e && e instanceof RegExp)
|
|
3079
3133
|
if (e.global)
|
|
3080
3134
|
t = e;
|
|
@@ -3084,23 +3138,23 @@ function Tr(e) {
|
|
|
3084
3138
|
}
|
|
3085
3139
|
return t.lastIndex = 0, t;
|
|
3086
3140
|
}
|
|
3087
|
-
const
|
|
3088
|
-
|
|
3141
|
+
const Hr = new ss();
|
|
3142
|
+
Hr.unshift({
|
|
3089
3143
|
maxLen: 1e3,
|
|
3090
3144
|
windowSize: 15,
|
|
3091
3145
|
timeBudget: 150
|
|
3092
3146
|
});
|
|
3093
|
-
function
|
|
3094
|
-
if (t =
|
|
3147
|
+
function Xt(e, t, n, r, s) {
|
|
3148
|
+
if (t = Ur(t), s || (s = ut.first(Hr)), n.length > s.maxLen) {
|
|
3095
3149
|
let c = e - s.maxLen / 2;
|
|
3096
|
-
return c < 0 ? c = 0 : r += c, n = n.substring(c, e + s.maxLen / 2),
|
|
3150
|
+
return c < 0 ? c = 0 : r += c, n = n.substring(c, e + s.maxLen / 2), Xt(e, t, n, r, s);
|
|
3097
3151
|
}
|
|
3098
3152
|
const i = Date.now(), l = e - 1 - r;
|
|
3099
3153
|
let o = -1, u = null;
|
|
3100
3154
|
for (let c = 1; !(Date.now() - i >= s.timeBudget); c++) {
|
|
3101
3155
|
const f = l - s.windowSize * c;
|
|
3102
3156
|
t.lastIndex = Math.max(0, f);
|
|
3103
|
-
const h =
|
|
3157
|
+
const h = gi(t, n, l, o);
|
|
3104
3158
|
if (!h && u || (u = h, f <= 0))
|
|
3105
3159
|
break;
|
|
3106
3160
|
o = f;
|
|
@@ -3115,7 +3169,7 @@ function Gt(e, t, n, r, s) {
|
|
|
3115
3169
|
}
|
|
3116
3170
|
return null;
|
|
3117
3171
|
}
|
|
3118
|
-
function
|
|
3172
|
+
function gi(e, t, n, r) {
|
|
3119
3173
|
let s;
|
|
3120
3174
|
for (; s = e.exec(t); ) {
|
|
3121
3175
|
const i = s.index || 0;
|
|
@@ -3126,17 +3180,17 @@ function oi(e, t, n, r) {
|
|
|
3126
3180
|
}
|
|
3127
3181
|
return null;
|
|
3128
3182
|
}
|
|
3129
|
-
class
|
|
3183
|
+
class Yt {
|
|
3130
3184
|
constructor(t) {
|
|
3131
|
-
const n =
|
|
3132
|
-
this._defaultValue = n, this._asciiMap =
|
|
3185
|
+
const n = hn(t);
|
|
3186
|
+
this._defaultValue = n, this._asciiMap = Yt._createAsciiMap(n), this._map = /* @__PURE__ */ new Map();
|
|
3133
3187
|
}
|
|
3134
3188
|
static _createAsciiMap(t) {
|
|
3135
3189
|
const n = new Uint8Array(256);
|
|
3136
3190
|
return n.fill(t), n;
|
|
3137
3191
|
}
|
|
3138
3192
|
set(t, n) {
|
|
3139
|
-
const r =
|
|
3193
|
+
const r = hn(n);
|
|
3140
3194
|
t >= 0 && t < 256 ? this._asciiMap[t] = r : this._map.set(t, r);
|
|
3141
3195
|
}
|
|
3142
3196
|
get(t) {
|
|
@@ -3146,7 +3200,7 @@ class jt {
|
|
|
3146
3200
|
this._asciiMap.fill(this._defaultValue), this._map.clear();
|
|
3147
3201
|
}
|
|
3148
3202
|
}
|
|
3149
|
-
class
|
|
3203
|
+
class bi {
|
|
3150
3204
|
constructor(t, n, r) {
|
|
3151
3205
|
const s = new Uint8Array(t * n);
|
|
3152
3206
|
for (let i = 0, l = t * n; i < l; i++)
|
|
@@ -3160,7 +3214,7 @@ class ui {
|
|
|
3160
3214
|
this._data[t * this.cols + n] = r;
|
|
3161
3215
|
}
|
|
3162
3216
|
}
|
|
3163
|
-
class
|
|
3217
|
+
class xi {
|
|
3164
3218
|
constructor(t) {
|
|
3165
3219
|
let n = 0, r = 0;
|
|
3166
3220
|
for (let i = 0, l = t.length; i < l; i++) {
|
|
@@ -3168,7 +3222,7 @@ class ci {
|
|
|
3168
3222
|
u > n && (n = u), o > r && (r = o), c > r && (r = c);
|
|
3169
3223
|
}
|
|
3170
3224
|
n++, r++;
|
|
3171
|
-
const s = new
|
|
3225
|
+
const s = new bi(
|
|
3172
3226
|
r,
|
|
3173
3227
|
n,
|
|
3174
3228
|
0
|
|
@@ -3184,9 +3238,9 @@ class ci {
|
|
|
3184
3238
|
return n < 0 || n >= this._maxCharCode ? 0 : this._states.get(t, n);
|
|
3185
3239
|
}
|
|
3186
3240
|
}
|
|
3187
|
-
let
|
|
3188
|
-
function
|
|
3189
|
-
return
|
|
3241
|
+
let St = null;
|
|
3242
|
+
function _i() {
|
|
3243
|
+
return St === null && (St = new xi([
|
|
3190
3244
|
[
|
|
3191
3245
|
1,
|
|
3192
3246
|
104,
|
|
@@ -3319,33 +3373,33 @@ function hi() {
|
|
|
3319
3373
|
12
|
|
3320
3374
|
/* State.End */
|
|
3321
3375
|
]
|
|
3322
|
-
])),
|
|
3376
|
+
])), St;
|
|
3323
3377
|
}
|
|
3324
|
-
let
|
|
3325
|
-
function
|
|
3326
|
-
if (
|
|
3327
|
-
|
|
3378
|
+
let ze = null;
|
|
3379
|
+
function pi() {
|
|
3380
|
+
if (ze === null) {
|
|
3381
|
+
ze = new Yt(
|
|
3328
3382
|
0
|
|
3329
3383
|
/* CharacterClass.None */
|
|
3330
3384
|
);
|
|
3331
3385
|
const e = ` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;
|
|
3332
3386
|
for (let n = 0; n < e.length; n++)
|
|
3333
|
-
|
|
3387
|
+
ze.set(
|
|
3334
3388
|
e.charCodeAt(n),
|
|
3335
3389
|
1
|
|
3336
3390
|
/* CharacterClass.ForceTermination */
|
|
3337
3391
|
);
|
|
3338
3392
|
const t = ".,;:";
|
|
3339
3393
|
for (let n = 0; n < t.length; n++)
|
|
3340
|
-
|
|
3394
|
+
ze.set(
|
|
3341
3395
|
t.charCodeAt(n),
|
|
3342
3396
|
2
|
|
3343
3397
|
/* CharacterClass.CannotEndIn */
|
|
3344
3398
|
);
|
|
3345
3399
|
}
|
|
3346
|
-
return
|
|
3400
|
+
return ze;
|
|
3347
3401
|
}
|
|
3348
|
-
class
|
|
3402
|
+
class dt {
|
|
3349
3403
|
static _createLink(t, n, r, s, i) {
|
|
3350
3404
|
let l = i - 1;
|
|
3351
3405
|
do {
|
|
@@ -3368,8 +3422,8 @@ class ht {
|
|
|
3368
3422
|
url: n.substring(s, l + 1)
|
|
3369
3423
|
};
|
|
3370
3424
|
}
|
|
3371
|
-
static computeLinks(t, n =
|
|
3372
|
-
const r =
|
|
3425
|
+
static computeLinks(t, n = _i()) {
|
|
3426
|
+
const r = pi(), s = [];
|
|
3373
3427
|
for (let i = 1, l = t.getLineCount(); i <= l; i++) {
|
|
3374
3428
|
const o = t.getLineContent(i), u = o.length;
|
|
3375
3429
|
let c = 0, f = 0, h = 0, d = 1, m = !1, g = !1, _ = !1, v = !1;
|
|
@@ -3414,7 +3468,7 @@ class ht {
|
|
|
3414
3468
|
default:
|
|
3415
3469
|
x = r.get(S);
|
|
3416
3470
|
}
|
|
3417
|
-
x === 1 && (s.push(
|
|
3471
|
+
x === 1 && (s.push(dt._createLink(r, o, i, f, c)), N = !0);
|
|
3418
3472
|
} else if (d === 12) {
|
|
3419
3473
|
let x;
|
|
3420
3474
|
S === 91 ? (g = !0, x = 0) : x = r.get(S), x === 1 ? N = !0 : d = 13;
|
|
@@ -3422,15 +3476,15 @@ class ht {
|
|
|
3422
3476
|
d = n.nextState(d, S), d === 0 && (N = !0);
|
|
3423
3477
|
N && (d = 1, m = !1, g = !1, v = !1, f = c + 1, h = S), c++;
|
|
3424
3478
|
}
|
|
3425
|
-
d === 13 && s.push(
|
|
3479
|
+
d === 13 && s.push(dt._createLink(r, o, i, f, u));
|
|
3426
3480
|
}
|
|
3427
3481
|
return s;
|
|
3428
3482
|
}
|
|
3429
3483
|
}
|
|
3430
|
-
function
|
|
3431
|
-
return !e || typeof e.getLineCount != "function" || typeof e.getLineContent != "function" ? [] :
|
|
3484
|
+
function vi(e) {
|
|
3485
|
+
return !e || typeof e.getLineCount != "function" || typeof e.getLineContent != "function" ? [] : dt.computeLinks(e);
|
|
3432
3486
|
}
|
|
3433
|
-
class
|
|
3487
|
+
class Vt {
|
|
3434
3488
|
constructor() {
|
|
3435
3489
|
this._defaultValueSet = [
|
|
3436
3490
|
["true", "false"],
|
|
@@ -3482,27 +3536,27 @@ class Ft {
|
|
|
3482
3536
|
return s >= 0 ? (s += r ? 1 : -1, s < 0 ? s = t.length - 1 : s %= t.length, t[s]) : null;
|
|
3483
3537
|
}
|
|
3484
3538
|
}
|
|
3485
|
-
|
|
3486
|
-
const
|
|
3539
|
+
Vt.INSTANCE = new Vt();
|
|
3540
|
+
const Wr = Object.freeze(function(e, t) {
|
|
3487
3541
|
const n = setTimeout(e.bind(t), 0);
|
|
3488
3542
|
return { dispose() {
|
|
3489
3543
|
clearTimeout(n);
|
|
3490
3544
|
} };
|
|
3491
3545
|
});
|
|
3492
|
-
var
|
|
3546
|
+
var mt;
|
|
3493
3547
|
(function(e) {
|
|
3494
3548
|
function t(n) {
|
|
3495
|
-
return n === e.None || n === e.Cancelled || n instanceof
|
|
3549
|
+
return n === e.None || n === e.Cancelled || n instanceof at ? !0 : !n || typeof n != "object" ? !1 : typeof n.isCancellationRequested == "boolean" && typeof n.onCancellationRequested == "function";
|
|
3496
3550
|
}
|
|
3497
3551
|
e.isCancellationToken = t, e.None = Object.freeze({
|
|
3498
3552
|
isCancellationRequested: !1,
|
|
3499
|
-
onCancellationRequested:
|
|
3553
|
+
onCancellationRequested: yt.None
|
|
3500
3554
|
}), e.Cancelled = Object.freeze({
|
|
3501
3555
|
isCancellationRequested: !0,
|
|
3502
|
-
onCancellationRequested:
|
|
3556
|
+
onCancellationRequested: Wr
|
|
3503
3557
|
});
|
|
3504
|
-
})(
|
|
3505
|
-
class
|
|
3558
|
+
})(mt || (mt = {}));
|
|
3559
|
+
class at {
|
|
3506
3560
|
constructor() {
|
|
3507
3561
|
this._isCancelled = !1, this._emitter = null;
|
|
3508
3562
|
}
|
|
@@ -3513,28 +3567,28 @@ class st {
|
|
|
3513
3567
|
return this._isCancelled;
|
|
3514
3568
|
}
|
|
3515
3569
|
get onCancellationRequested() {
|
|
3516
|
-
return this._isCancelled ?
|
|
3570
|
+
return this._isCancelled ? Wr : (this._emitter || (this._emitter = new ae()), this._emitter.event);
|
|
3517
3571
|
}
|
|
3518
3572
|
dispose() {
|
|
3519
3573
|
this._emitter && (this._emitter.dispose(), this._emitter = null);
|
|
3520
3574
|
}
|
|
3521
3575
|
}
|
|
3522
|
-
class
|
|
3576
|
+
class wi {
|
|
3523
3577
|
constructor(t) {
|
|
3524
3578
|
this._token = void 0, this._parentListener = void 0, this._parentListener = t && t.onCancellationRequested(this.cancel, this);
|
|
3525
3579
|
}
|
|
3526
3580
|
get token() {
|
|
3527
|
-
return this._token || (this._token = new
|
|
3581
|
+
return this._token || (this._token = new at()), this._token;
|
|
3528
3582
|
}
|
|
3529
3583
|
cancel() {
|
|
3530
|
-
this._token ? this._token instanceof
|
|
3584
|
+
this._token ? this._token instanceof at && this._token.cancel() : this._token = mt.Cancelled;
|
|
3531
3585
|
}
|
|
3532
3586
|
dispose(t = !1) {
|
|
3533
3587
|
var n;
|
|
3534
|
-
t && this.cancel(), (n = this._parentListener) === null || n === void 0 || n.dispose(), this._token ? this._token instanceof
|
|
3588
|
+
t && this.cancel(), (n = this._parentListener) === null || n === void 0 || n.dispose(), this._token ? this._token instanceof at && this._token.dispose() : this._token = mt.None;
|
|
3535
3589
|
}
|
|
3536
3590
|
}
|
|
3537
|
-
class
|
|
3591
|
+
class Jt {
|
|
3538
3592
|
constructor() {
|
|
3539
3593
|
this._keyCodeToStr = [], this._strToKeyCode = /* @__PURE__ */ Object.create(null);
|
|
3540
3594
|
}
|
|
@@ -3548,7 +3602,7 @@ class Qt {
|
|
|
3548
3602
|
return this._strToKeyCode[t.toLowerCase()] || 0;
|
|
3549
3603
|
}
|
|
3550
3604
|
}
|
|
3551
|
-
const
|
|
3605
|
+
const lt = new Jt(), Bt = new Jt(), qt = new Jt(), Li = new Array(230), Ni = /* @__PURE__ */ Object.create(null), Si = /* @__PURE__ */ Object.create(null);
|
|
3552
3606
|
(function() {
|
|
3553
3607
|
const e = "", t = [
|
|
3554
3608
|
// immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel
|
|
@@ -3787,34 +3841,34 @@ const it = new Qt(), Dt = new Qt(), Tt = new Qt(), gi = new Array(230), bi = /*
|
|
|
3787
3841
|
], n = [], r = [];
|
|
3788
3842
|
for (const s of t) {
|
|
3789
3843
|
const [i, l, o, u, c, f, h, d, m] = s;
|
|
3790
|
-
if (r[l] || (r[l] = !0,
|
|
3844
|
+
if (r[l] || (r[l] = !0, Ni[o] = l, Si[o.toLowerCase()] = l), !n[u]) {
|
|
3791
3845
|
if (n[u] = !0, !c)
|
|
3792
3846
|
throw new Error(`String representation missing for key code ${u} around scan code ${o}`);
|
|
3793
|
-
|
|
3847
|
+
lt.define(u, c), Bt.define(u, d || c), qt.define(u, m || d || c);
|
|
3794
3848
|
}
|
|
3795
|
-
f && (
|
|
3849
|
+
f && (Li[f] = u);
|
|
3796
3850
|
}
|
|
3797
3851
|
})();
|
|
3798
|
-
var
|
|
3852
|
+
var fn;
|
|
3799
3853
|
(function(e) {
|
|
3800
3854
|
function t(o) {
|
|
3801
|
-
return
|
|
3855
|
+
return lt.keyCodeToStr(o);
|
|
3802
3856
|
}
|
|
3803
3857
|
e.toString = t;
|
|
3804
3858
|
function n(o) {
|
|
3805
|
-
return
|
|
3859
|
+
return lt.strToKeyCode(o);
|
|
3806
3860
|
}
|
|
3807
3861
|
e.fromString = n;
|
|
3808
3862
|
function r(o) {
|
|
3809
|
-
return
|
|
3863
|
+
return Bt.keyCodeToStr(o);
|
|
3810
3864
|
}
|
|
3811
3865
|
e.toUserSettingsUS = r;
|
|
3812
3866
|
function s(o) {
|
|
3813
|
-
return
|
|
3867
|
+
return qt.keyCodeToStr(o);
|
|
3814
3868
|
}
|
|
3815
3869
|
e.toUserSettingsGeneral = s;
|
|
3816
3870
|
function i(o) {
|
|
3817
|
-
return
|
|
3871
|
+
return Bt.strToKeyCode(o) || qt.strToKeyCode(o);
|
|
3818
3872
|
}
|
|
3819
3873
|
e.fromUserSettings = i;
|
|
3820
3874
|
function l(o) {
|
|
@@ -3830,15 +3884,15 @@ var ln;
|
|
|
3830
3884
|
case 17:
|
|
3831
3885
|
return "Right";
|
|
3832
3886
|
}
|
|
3833
|
-
return
|
|
3887
|
+
return lt.keyCodeToStr(o);
|
|
3834
3888
|
}
|
|
3835
3889
|
e.toElectronAccelerator = l;
|
|
3836
|
-
})(
|
|
3837
|
-
function
|
|
3890
|
+
})(fn || (fn = {}));
|
|
3891
|
+
function Ci(e, t) {
|
|
3838
3892
|
const n = (t & 65535) << 16 >>> 0;
|
|
3839
3893
|
return (e | n) >>> 0;
|
|
3840
3894
|
}
|
|
3841
|
-
class
|
|
3895
|
+
class ne extends D {
|
|
3842
3896
|
constructor(t, n, r, s) {
|
|
3843
3897
|
super(t, n, r, s), this.selectionStartLineNumber = t, this.selectionStartColumn = n, this.positionLineNumber = r, this.positionColumn = s;
|
|
3844
3898
|
}
|
|
@@ -3852,7 +3906,7 @@ class te extends D {
|
|
|
3852
3906
|
* Test if equals other selection.
|
|
3853
3907
|
*/
|
|
3854
3908
|
equalsSelection(t) {
|
|
3855
|
-
return
|
|
3909
|
+
return ne.selectionsEqual(this, t);
|
|
3856
3910
|
}
|
|
3857
3911
|
/**
|
|
3858
3912
|
* Test if the two selections are equal.
|
|
@@ -3870,7 +3924,7 @@ class te extends D {
|
|
|
3870
3924
|
* Create a new selection with a different `positionLineNumber` and `positionColumn`.
|
|
3871
3925
|
*/
|
|
3872
3926
|
setEndPosition(t, n) {
|
|
3873
|
-
return this.getDirection() === 0 ? new
|
|
3927
|
+
return this.getDirection() === 0 ? new ne(this.startLineNumber, this.startColumn, t, n) : new ne(t, n, this.startLineNumber, this.startColumn);
|
|
3874
3928
|
}
|
|
3875
3929
|
/**
|
|
3876
3930
|
* Get the position at `positionLineNumber` and `positionColumn`.
|
|
@@ -3888,26 +3942,26 @@ class te extends D {
|
|
|
3888
3942
|
* Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`.
|
|
3889
3943
|
*/
|
|
3890
3944
|
setStartPosition(t, n) {
|
|
3891
|
-
return this.getDirection() === 0 ? new
|
|
3945
|
+
return this.getDirection() === 0 ? new ne(t, n, this.endLineNumber, this.endColumn) : new ne(this.endLineNumber, this.endColumn, t, n);
|
|
3892
3946
|
}
|
|
3893
3947
|
// ----
|
|
3894
3948
|
/**
|
|
3895
3949
|
* Create a `Selection` from one or two positions
|
|
3896
3950
|
*/
|
|
3897
3951
|
static fromPositions(t, n = t) {
|
|
3898
|
-
return new
|
|
3952
|
+
return new ne(t.lineNumber, t.column, n.lineNumber, n.column);
|
|
3899
3953
|
}
|
|
3900
3954
|
/**
|
|
3901
3955
|
* Creates a `Selection` from a range, given a direction.
|
|
3902
3956
|
*/
|
|
3903
3957
|
static fromRange(t, n) {
|
|
3904
|
-
return n === 0 ? new
|
|
3958
|
+
return n === 0 ? new ne(t.startLineNumber, t.startColumn, t.endLineNumber, t.endColumn) : new ne(t.endLineNumber, t.endColumn, t.startLineNumber, t.startColumn);
|
|
3905
3959
|
}
|
|
3906
3960
|
/**
|
|
3907
3961
|
* Create a `Selection` from an `ISelection`.
|
|
3908
3962
|
*/
|
|
3909
3963
|
static liftSelection(t) {
|
|
3910
|
-
return new
|
|
3964
|
+
return new ne(t.selectionStartLineNumber, t.selectionStartColumn, t.positionLineNumber, t.positionColumn);
|
|
3911
3965
|
}
|
|
3912
3966
|
/**
|
|
3913
3967
|
* `a` equals `b`.
|
|
@@ -3934,18 +3988,18 @@ class te extends D {
|
|
|
3934
3988
|
* Create with a direction.
|
|
3935
3989
|
*/
|
|
3936
3990
|
static createWithDirection(t, n, r, s, i) {
|
|
3937
|
-
return i === 0 ? new
|
|
3991
|
+
return i === 0 ? new ne(t, n, r, s) : new ne(r, s, t, n);
|
|
3938
3992
|
}
|
|
3939
3993
|
}
|
|
3940
|
-
const
|
|
3994
|
+
const dn = /* @__PURE__ */ Object.create(null);
|
|
3941
3995
|
function a(e, t) {
|
|
3942
|
-
if (
|
|
3943
|
-
const n =
|
|
3996
|
+
if (cs(t)) {
|
|
3997
|
+
const n = dn[t];
|
|
3944
3998
|
if (n === void 0)
|
|
3945
3999
|
throw new Error(`${e} references an unknown codicon: ${t}`);
|
|
3946
4000
|
t = n;
|
|
3947
4001
|
}
|
|
3948
|
-
return
|
|
4002
|
+
return dn[e] = t, { id: e };
|
|
3949
4003
|
}
|
|
3950
4004
|
const E = {
|
|
3951
4005
|
// built-in icons, with image name
|
|
@@ -4523,9 +4577,9 @@ const E = {
|
|
|
4523
4577
|
toolBarMore: a("toolbar-more", "more"),
|
|
4524
4578
|
quickInputBack: a("quick-input-back", "arrow-left")
|
|
4525
4579
|
};
|
|
4526
|
-
class
|
|
4580
|
+
class Ai {
|
|
4527
4581
|
constructor() {
|
|
4528
|
-
this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new
|
|
4582
|
+
this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new ae(), this.onDidChange = this._onDidChange.event, this._colorMap = null;
|
|
4529
4583
|
}
|
|
4530
4584
|
handleChange(t) {
|
|
4531
4585
|
this._onDidChange.fire({
|
|
@@ -4534,7 +4588,7 @@ class pi {
|
|
|
4534
4588
|
});
|
|
4535
4589
|
}
|
|
4536
4590
|
register(t, n) {
|
|
4537
|
-
return this._tokenizationSupports.set(t, n), this.handleChange([t]),
|
|
4591
|
+
return this._tokenizationSupports.set(t, n), this.handleChange([t]), ct(() => {
|
|
4538
4592
|
this._tokenizationSupports.get(t) === n && (this._tokenizationSupports.delete(t), this.handleChange([t]));
|
|
4539
4593
|
});
|
|
4540
4594
|
}
|
|
@@ -4544,18 +4598,20 @@ class pi {
|
|
|
4544
4598
|
registerFactory(t, n) {
|
|
4545
4599
|
var r;
|
|
4546
4600
|
(r = this._factories.get(t)) === null || r === void 0 || r.dispose();
|
|
4547
|
-
const s = new
|
|
4548
|
-
return this._factories.set(t, s),
|
|
4601
|
+
const s = new Ri(this, t, n);
|
|
4602
|
+
return this._factories.set(t, s), ct(() => {
|
|
4549
4603
|
const i = this._factories.get(t);
|
|
4550
4604
|
!i || i !== s || (this._factories.delete(t), i.dispose());
|
|
4551
4605
|
});
|
|
4552
4606
|
}
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4607
|
+
getOrCreate(t) {
|
|
4608
|
+
return te(this, null, function* () {
|
|
4609
|
+
const n = this.get(t);
|
|
4610
|
+
if (n)
|
|
4611
|
+
return n;
|
|
4612
|
+
const r = this._factories.get(t);
|
|
4613
|
+
return !r || r.isResolved ? null : (yield r.resolve(), this.get(t));
|
|
4614
|
+
});
|
|
4559
4615
|
}
|
|
4560
4616
|
isResolved(t) {
|
|
4561
4617
|
if (this.get(t))
|
|
@@ -4579,7 +4635,7 @@ class pi {
|
|
|
4579
4635
|
] : null;
|
|
4580
4636
|
}
|
|
4581
4637
|
}
|
|
4582
|
-
class
|
|
4638
|
+
class Ri extends je {
|
|
4583
4639
|
get isResolved() {
|
|
4584
4640
|
return this._isResolved;
|
|
4585
4641
|
}
|
|
@@ -4589,15 +4645,19 @@ class vi extends Oe {
|
|
|
4589
4645
|
dispose() {
|
|
4590
4646
|
this._isDisposed = !0, super.dispose();
|
|
4591
4647
|
}
|
|
4592
|
-
|
|
4593
|
-
return this
|
|
4648
|
+
resolve() {
|
|
4649
|
+
return te(this, null, function* () {
|
|
4650
|
+
return this._resolvePromise || (this._resolvePromise = this._create()), this._resolvePromise;
|
|
4651
|
+
});
|
|
4594
4652
|
}
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4653
|
+
_create() {
|
|
4654
|
+
return te(this, null, function* () {
|
|
4655
|
+
const t = yield this._factory.tokenizationSupport;
|
|
4656
|
+
this._isResolved = !0, t && !this._isDisposed && this._register(this._registry.register(this._languageId, t));
|
|
4657
|
+
});
|
|
4598
4658
|
}
|
|
4599
4659
|
}
|
|
4600
|
-
class
|
|
4660
|
+
class yi {
|
|
4601
4661
|
constructor(t, n, r) {
|
|
4602
4662
|
this.offset = t, this.type = n, this.language = r, this._tokenBrand = void 0;
|
|
4603
4663
|
}
|
|
@@ -4605,7 +4665,7 @@ class wi {
|
|
|
4605
4665
|
return "(" + this.offset + ", " + this.type + ")";
|
|
4606
4666
|
}
|
|
4607
4667
|
}
|
|
4608
|
-
var
|
|
4668
|
+
var mn;
|
|
4609
4669
|
(function(e) {
|
|
4610
4670
|
const t = /* @__PURE__ */ new Map();
|
|
4611
4671
|
t.set(0, E.symbolMethod), t.set(1, E.symbolFunction), t.set(2, E.symbolConstructor), t.set(3, E.symbolField), t.set(4, E.symbolVariable), t.set(5, E.symbolClass), t.set(6, E.symbolStruct), t.set(7, E.symbolInterface), t.set(8, E.symbolModule), t.set(9, E.symbolProperty), t.set(10, E.symbolEvent), t.set(11, E.symbolOperator), t.set(12, E.symbolUnit), t.set(13, E.symbolValue), t.set(15, E.symbolEnum), t.set(14, E.symbolConstant), t.set(15, E.symbolEnum), t.set(16, E.symbolEnumMember), t.set(17, E.symbolKeyword), t.set(27, E.symbolSnippet), t.set(18, E.symbolText), t.set(19, E.symbolColor), t.set(20, E.symbolFile), t.set(21, E.symbolReference), t.set(22, E.symbolCustomColor), t.set(23, E.symbolFolder), t.set(24, E.symbolTypeParameter), t.set(25, E.account), t.set(26, E.issues);
|
|
@@ -4738,24 +4798,24 @@ var un;
|
|
|
4738
4798
|
);
|
|
4739
4799
|
function s(i, l) {
|
|
4740
4800
|
let o = r.get(i);
|
|
4741
|
-
return typeof o
|
|
4801
|
+
return typeof o == "undefined" && !l && (o = 9), o;
|
|
4742
4802
|
}
|
|
4743
4803
|
e.fromString = s;
|
|
4744
|
-
})(
|
|
4745
|
-
var
|
|
4804
|
+
})(mn || (mn = {}));
|
|
4805
|
+
var gn;
|
|
4746
4806
|
(function(e) {
|
|
4747
4807
|
e[e.Automatic = 0] = "Automatic", e[e.Explicit = 1] = "Explicit";
|
|
4748
|
-
})(
|
|
4749
|
-
var
|
|
4808
|
+
})(gn || (gn = {}));
|
|
4809
|
+
var bn;
|
|
4750
4810
|
(function(e) {
|
|
4751
4811
|
e[e.Invoke = 1] = "Invoke", e[e.TriggerCharacter = 2] = "TriggerCharacter", e[e.ContentChange = 3] = "ContentChange";
|
|
4752
|
-
})(
|
|
4753
|
-
var
|
|
4812
|
+
})(bn || (bn = {}));
|
|
4813
|
+
var xn;
|
|
4754
4814
|
(function(e) {
|
|
4755
4815
|
e[e.Text = 0] = "Text", e[e.Read = 1] = "Read", e[e.Write = 2] = "Write";
|
|
4756
|
-
})(
|
|
4816
|
+
})(xn || (xn = {}));
|
|
4757
4817
|
W("Array", "array"), W("Boolean", "boolean"), W("Class", "class"), W("Constant", "constant"), W("Constructor", "constructor"), W("Enum", "enumeration"), W("EnumMember", "enumeration member"), W("Event", "event"), W("Field", "field"), W("File", "file"), W("Function", "function"), W("Interface", "interface"), W("Key", "key"), W("Method", "method"), W("Module", "module"), W("Namespace", "namespace"), W("Null", "null"), W("Number", "number"), W("Object", "object"), W("Operator", "operator"), W("Package", "package"), W("Property", "property"), W("String", "string"), W("Struct", "struct"), W("TypeParameter", "type parameter"), W("Variable", "variable");
|
|
4758
|
-
var
|
|
4818
|
+
var _n;
|
|
4759
4819
|
(function(e) {
|
|
4760
4820
|
const t = /* @__PURE__ */ new Map();
|
|
4761
4821
|
t.set(0, E.symbolFile), t.set(1, E.symbolModule), t.set(2, E.symbolNamespace), t.set(3, E.symbolPackage), t.set(4, E.symbolClass), t.set(5, E.symbolMethod), t.set(6, E.symbolProperty), t.set(7, E.symbolField), t.set(8, E.symbolConstructor), t.set(9, E.symbolEnum), t.set(10, E.symbolInterface), t.set(11, E.symbolFunction), t.set(12, E.symbolVariable), t.set(13, E.symbolConstant), t.set(14, E.symbolString), t.set(15, E.symbolNumber), t.set(16, E.symbolBoolean), t.set(17, E.symbolArray), t.set(18, E.symbolObject), t.set(19, E.symbolKey), t.set(20, E.symbolNull), t.set(21, E.symbolEnumMember), t.set(22, E.symbolStruct), t.set(23, E.symbolEvent), t.set(24, E.symbolOperator), t.set(25, E.symbolTypeParameter);
|
|
@@ -4764,241 +4824,241 @@ var dn;
|
|
|
4764
4824
|
return s || (console.info("No codicon found for SymbolKind " + r), s = E.symbolProperty), s;
|
|
4765
4825
|
}
|
|
4766
4826
|
e.toIcon = n;
|
|
4767
|
-
})(
|
|
4768
|
-
var
|
|
4827
|
+
})(_n || (_n = {}));
|
|
4828
|
+
var pn;
|
|
4769
4829
|
(function(e) {
|
|
4770
4830
|
e[e.AIGenerated = 1] = "AIGenerated";
|
|
4771
|
-
})(
|
|
4772
|
-
var
|
|
4831
|
+
})(pn || (pn = {}));
|
|
4832
|
+
var vn;
|
|
4773
4833
|
(function(e) {
|
|
4774
4834
|
function t(n) {
|
|
4775
4835
|
return !n || typeof n != "object" ? !1 : typeof n.id == "string" && typeof n.title == "string";
|
|
4776
4836
|
}
|
|
4777
4837
|
e.is = t;
|
|
4778
|
-
})(gn || (gn = {}));
|
|
4779
|
-
var bn;
|
|
4780
|
-
(function(e) {
|
|
4781
|
-
e[e.Type = 1] = "Type", e[e.Parameter = 2] = "Parameter";
|
|
4782
|
-
})(bn || (bn = {}));
|
|
4783
|
-
new pi();
|
|
4784
|
-
var xn;
|
|
4785
|
-
(function(e) {
|
|
4786
|
-
e[e.Invoke = 0] = "Invoke", e[e.Automatic = 1] = "Automatic";
|
|
4787
|
-
})(xn || (xn = {}));
|
|
4788
|
-
var _n;
|
|
4789
|
-
(function(e) {
|
|
4790
|
-
e[e.Unknown = 0] = "Unknown", e[e.Disabled = 1] = "Disabled", e[e.Enabled = 2] = "Enabled";
|
|
4791
|
-
})(_n || (_n = {}));
|
|
4792
|
-
var pn;
|
|
4793
|
-
(function(e) {
|
|
4794
|
-
e[e.Invoke = 1] = "Invoke", e[e.Auto = 2] = "Auto";
|
|
4795
|
-
})(pn || (pn = {}));
|
|
4796
|
-
var vn;
|
|
4797
|
-
(function(e) {
|
|
4798
|
-
e[e.None = 0] = "None", e[e.KeepWhitespace = 1] = "KeepWhitespace", e[e.InsertAsSnippet = 4] = "InsertAsSnippet";
|
|
4799
4838
|
})(vn || (vn = {}));
|
|
4800
4839
|
var wn;
|
|
4801
4840
|
(function(e) {
|
|
4802
|
-
e[e.
|
|
4841
|
+
e[e.Type = 1] = "Type", e[e.Parameter = 2] = "Parameter";
|
|
4803
4842
|
})(wn || (wn = {}));
|
|
4843
|
+
new Ai();
|
|
4804
4844
|
var Ln;
|
|
4805
4845
|
(function(e) {
|
|
4806
|
-
e[e.
|
|
4846
|
+
e[e.Invoke = 0] = "Invoke", e[e.Automatic = 1] = "Automatic";
|
|
4807
4847
|
})(Ln || (Ln = {}));
|
|
4808
4848
|
var Nn;
|
|
4809
4849
|
(function(e) {
|
|
4810
|
-
e[e.
|
|
4850
|
+
e[e.Unknown = 0] = "Unknown", e[e.Disabled = 1] = "Disabled", e[e.Enabled = 2] = "Enabled";
|
|
4811
4851
|
})(Nn || (Nn = {}));
|
|
4812
4852
|
var Sn;
|
|
4813
4853
|
(function(e) {
|
|
4814
|
-
e[e.
|
|
4854
|
+
e[e.Invoke = 1] = "Invoke", e[e.Auto = 2] = "Auto";
|
|
4815
4855
|
})(Sn || (Sn = {}));
|
|
4816
4856
|
var Cn;
|
|
4817
4857
|
(function(e) {
|
|
4818
|
-
e[e.
|
|
4858
|
+
e[e.None = 0] = "None", e[e.KeepWhitespace = 1] = "KeepWhitespace", e[e.InsertAsSnippet = 4] = "InsertAsSnippet";
|
|
4819
4859
|
})(Cn || (Cn = {}));
|
|
4820
4860
|
var An;
|
|
4821
4861
|
(function(e) {
|
|
4822
|
-
e[e.
|
|
4862
|
+
e[e.Method = 0] = "Method", e[e.Function = 1] = "Function", e[e.Constructor = 2] = "Constructor", e[e.Field = 3] = "Field", e[e.Variable = 4] = "Variable", e[e.Class = 5] = "Class", e[e.Struct = 6] = "Struct", e[e.Interface = 7] = "Interface", e[e.Module = 8] = "Module", e[e.Property = 9] = "Property", e[e.Event = 10] = "Event", e[e.Operator = 11] = "Operator", e[e.Unit = 12] = "Unit", e[e.Value = 13] = "Value", e[e.Constant = 14] = "Constant", e[e.Enum = 15] = "Enum", e[e.EnumMember = 16] = "EnumMember", e[e.Keyword = 17] = "Keyword", e[e.Text = 18] = "Text", e[e.Color = 19] = "Color", e[e.File = 20] = "File", e[e.Reference = 21] = "Reference", e[e.Customcolor = 22] = "Customcolor", e[e.Folder = 23] = "Folder", e[e.TypeParameter = 24] = "TypeParameter", e[e.User = 25] = "User", e[e.Issue = 26] = "Issue", e[e.Snippet = 27] = "Snippet";
|
|
4823
4863
|
})(An || (An = {}));
|
|
4824
4864
|
var Rn;
|
|
4825
4865
|
(function(e) {
|
|
4826
|
-
e[e.
|
|
4866
|
+
e[e.Deprecated = 1] = "Deprecated";
|
|
4827
4867
|
})(Rn || (Rn = {}));
|
|
4828
4868
|
var yn;
|
|
4829
4869
|
(function(e) {
|
|
4830
|
-
e[e.
|
|
4870
|
+
e[e.Invoke = 0] = "Invoke", e[e.TriggerCharacter = 1] = "TriggerCharacter", e[e.TriggerForIncompleteCompletions = 2] = "TriggerForIncompleteCompletions";
|
|
4831
4871
|
})(yn || (yn = {}));
|
|
4832
4872
|
var Mn;
|
|
4833
4873
|
(function(e) {
|
|
4834
|
-
e[e.
|
|
4874
|
+
e[e.EXACT = 0] = "EXACT", e[e.ABOVE = 1] = "ABOVE", e[e.BELOW = 2] = "BELOW";
|
|
4835
4875
|
})(Mn || (Mn = {}));
|
|
4836
4876
|
var En;
|
|
4837
4877
|
(function(e) {
|
|
4838
|
-
e[e.
|
|
4878
|
+
e[e.NotSet = 0] = "NotSet", e[e.ContentFlush = 1] = "ContentFlush", e[e.RecoverFromMarkers = 2] = "RecoverFromMarkers", e[e.Explicit = 3] = "Explicit", e[e.Paste = 4] = "Paste", e[e.Undo = 5] = "Undo", e[e.Redo = 6] = "Redo";
|
|
4839
4879
|
})(En || (En = {}));
|
|
4840
4880
|
var kn;
|
|
4841
4881
|
(function(e) {
|
|
4842
|
-
e[e.LF =
|
|
4882
|
+
e[e.LF = 1] = "LF", e[e.CRLF = 2] = "CRLF";
|
|
4843
4883
|
})(kn || (kn = {}));
|
|
4844
4884
|
var Pn;
|
|
4845
4885
|
(function(e) {
|
|
4846
|
-
e[e.
|
|
4886
|
+
e[e.Text = 0] = "Text", e[e.Read = 1] = "Read", e[e.Write = 2] = "Write";
|
|
4847
4887
|
})(Pn || (Pn = {}));
|
|
4848
4888
|
var Fn;
|
|
4849
4889
|
(function(e) {
|
|
4850
|
-
e[e.None = 0] = "None", e[e.
|
|
4890
|
+
e[e.None = 0] = "None", e[e.Keep = 1] = "Keep", e[e.Brackets = 2] = "Brackets", e[e.Advanced = 3] = "Advanced", e[e.Full = 4] = "Full";
|
|
4851
4891
|
})(Fn || (Fn = {}));
|
|
4852
4892
|
var Dn;
|
|
4853
4893
|
(function(e) {
|
|
4854
|
-
e[e.
|
|
4894
|
+
e[e.acceptSuggestionOnCommitCharacter = 0] = "acceptSuggestionOnCommitCharacter", e[e.acceptSuggestionOnEnter = 1] = "acceptSuggestionOnEnter", e[e.accessibilitySupport = 2] = "accessibilitySupport", e[e.accessibilityPageSize = 3] = "accessibilityPageSize", e[e.ariaLabel = 4] = "ariaLabel", e[e.ariaRequired = 5] = "ariaRequired", e[e.autoClosingBrackets = 6] = "autoClosingBrackets", e[e.autoClosingComments = 7] = "autoClosingComments", e[e.screenReaderAnnounceInlineSuggestion = 8] = "screenReaderAnnounceInlineSuggestion", e[e.autoClosingDelete = 9] = "autoClosingDelete", e[e.autoClosingOvertype = 10] = "autoClosingOvertype", e[e.autoClosingQuotes = 11] = "autoClosingQuotes", e[e.autoIndent = 12] = "autoIndent", e[e.automaticLayout = 13] = "automaticLayout", e[e.autoSurround = 14] = "autoSurround", e[e.bracketPairColorization = 15] = "bracketPairColorization", e[e.guides = 16] = "guides", e[e.codeLens = 17] = "codeLens", e[e.codeLensFontFamily = 18] = "codeLensFontFamily", e[e.codeLensFontSize = 19] = "codeLensFontSize", e[e.colorDecorators = 20] = "colorDecorators", e[e.colorDecoratorsLimit = 21] = "colorDecoratorsLimit", e[e.columnSelection = 22] = "columnSelection", e[e.comments = 23] = "comments", e[e.contextmenu = 24] = "contextmenu", e[e.copyWithSyntaxHighlighting = 25] = "copyWithSyntaxHighlighting", e[e.cursorBlinking = 26] = "cursorBlinking", e[e.cursorSmoothCaretAnimation = 27] = "cursorSmoothCaretAnimation", e[e.cursorStyle = 28] = "cursorStyle", e[e.cursorSurroundingLines = 29] = "cursorSurroundingLines", e[e.cursorSurroundingLinesStyle = 30] = "cursorSurroundingLinesStyle", e[e.cursorWidth = 31] = "cursorWidth", e[e.disableLayerHinting = 32] = "disableLayerHinting", e[e.disableMonospaceOptimizations = 33] = "disableMonospaceOptimizations", e[e.domReadOnly = 34] = "domReadOnly", e[e.dragAndDrop = 35] = "dragAndDrop", e[e.dropIntoEditor = 36] = "dropIntoEditor", e[e.emptySelectionClipboard = 37] = "emptySelectionClipboard", e[e.experimentalWhitespaceRendering = 38] = "experimentalWhitespaceRendering", e[e.extraEditorClassName = 39] = "extraEditorClassName", e[e.fastScrollSensitivity = 40] = "fastScrollSensitivity", e[e.find = 41] = "find", e[e.fixedOverflowWidgets = 42] = "fixedOverflowWidgets", e[e.folding = 43] = "folding", e[e.foldingStrategy = 44] = "foldingStrategy", e[e.foldingHighlight = 45] = "foldingHighlight", e[e.foldingImportsByDefault = 46] = "foldingImportsByDefault", e[e.foldingMaximumRegions = 47] = "foldingMaximumRegions", e[e.unfoldOnClickAfterEndOfLine = 48] = "unfoldOnClickAfterEndOfLine", e[e.fontFamily = 49] = "fontFamily", e[e.fontInfo = 50] = "fontInfo", e[e.fontLigatures = 51] = "fontLigatures", e[e.fontSize = 52] = "fontSize", e[e.fontWeight = 53] = "fontWeight", e[e.fontVariations = 54] = "fontVariations", e[e.formatOnPaste = 55] = "formatOnPaste", e[e.formatOnType = 56] = "formatOnType", e[e.glyphMargin = 57] = "glyphMargin", e[e.gotoLocation = 58] = "gotoLocation", e[e.hideCursorInOverviewRuler = 59] = "hideCursorInOverviewRuler", e[e.hover = 60] = "hover", e[e.inDiffEditor = 61] = "inDiffEditor", e[e.inlineSuggest = 62] = "inlineSuggest", e[e.inlineEdit = 63] = "inlineEdit", e[e.letterSpacing = 64] = "letterSpacing", e[e.lightbulb = 65] = "lightbulb", e[e.lineDecorationsWidth = 66] = "lineDecorationsWidth", e[e.lineHeight = 67] = "lineHeight", e[e.lineNumbers = 68] = "lineNumbers", e[e.lineNumbersMinChars = 69] = "lineNumbersMinChars", e[e.linkedEditing = 70] = "linkedEditing", e[e.links = 71] = "links", e[e.matchBrackets = 72] = "matchBrackets", e[e.minimap = 73] = "minimap", e[e.mouseStyle = 74] = "mouseStyle", e[e.mouseWheelScrollSensitivity = 75] = "mouseWheelScrollSensitivity", e[e.mouseWheelZoom = 76] = "mouseWheelZoom", e[e.multiCursorMergeOverlapping = 77] = "multiCursorMergeOverlapping", e[e.multiCursorModifier = 78] = "multiCursorModifier", e[e.multiCursorPaste = 79] = "multiCursorPaste", e[e.multiCursorLimit = 80] = "multiCursorLimit", e[e.occurrencesHighlight = 81] = "occurrencesHighlight", e[e.overviewRulerBorder = 82] = "overviewRulerBorder", e[e.overviewRulerLanes = 83] = "overviewRulerLanes", e[e.padding = 84] = "padding", e[e.pasteAs = 85] = "pasteAs", e[e.parameterHints = 86] = "parameterHints", e[e.peekWidgetDefaultFocus = 87] = "peekWidgetDefaultFocus", e[e.definitionLinkOpensInPeek = 88] = "definitionLinkOpensInPeek", e[e.quickSuggestions = 89] = "quickSuggestions", e[e.quickSuggestionsDelay = 90] = "quickSuggestionsDelay", e[e.readOnly = 91] = "readOnly", e[e.readOnlyMessage = 92] = "readOnlyMessage", e[e.renameOnType = 93] = "renameOnType", e[e.renderControlCharacters = 94] = "renderControlCharacters", e[e.renderFinalNewline = 95] = "renderFinalNewline", e[e.renderLineHighlight = 96] = "renderLineHighlight", e[e.renderLineHighlightOnlyWhenFocus = 97] = "renderLineHighlightOnlyWhenFocus", e[e.renderValidationDecorations = 98] = "renderValidationDecorations", e[e.renderWhitespace = 99] = "renderWhitespace", e[e.revealHorizontalRightPadding = 100] = "revealHorizontalRightPadding", e[e.roundedSelection = 101] = "roundedSelection", e[e.rulers = 102] = "rulers", e[e.scrollbar = 103] = "scrollbar", e[e.scrollBeyondLastColumn = 104] = "scrollBeyondLastColumn", e[e.scrollBeyondLastLine = 105] = "scrollBeyondLastLine", e[e.scrollPredominantAxis = 106] = "scrollPredominantAxis", e[e.selectionClipboard = 107] = "selectionClipboard", e[e.selectionHighlight = 108] = "selectionHighlight", e[e.selectOnLineNumbers = 109] = "selectOnLineNumbers", e[e.showFoldingControls = 110] = "showFoldingControls", e[e.showUnused = 111] = "showUnused", e[e.snippetSuggestions = 112] = "snippetSuggestions", e[e.smartSelect = 113] = "smartSelect", e[e.smoothScrolling = 114] = "smoothScrolling", e[e.stickyScroll = 115] = "stickyScroll", e[e.stickyTabStops = 116] = "stickyTabStops", e[e.stopRenderingLineAfter = 117] = "stopRenderingLineAfter", e[e.suggest = 118] = "suggest", e[e.suggestFontSize = 119] = "suggestFontSize", e[e.suggestLineHeight = 120] = "suggestLineHeight", e[e.suggestOnTriggerCharacters = 121] = "suggestOnTriggerCharacters", e[e.suggestSelection = 122] = "suggestSelection", e[e.tabCompletion = 123] = "tabCompletion", e[e.tabIndex = 124] = "tabIndex", e[e.unicodeHighlighting = 125] = "unicodeHighlighting", e[e.unusualLineTerminators = 126] = "unusualLineTerminators", e[e.useShadowDOM = 127] = "useShadowDOM", e[e.useTabStops = 128] = "useTabStops", e[e.wordBreak = 129] = "wordBreak", e[e.wordSeparators = 130] = "wordSeparators", e[e.wordWrap = 131] = "wordWrap", e[e.wordWrapBreakAfterCharacters = 132] = "wordWrapBreakAfterCharacters", e[e.wordWrapBreakBeforeCharacters = 133] = "wordWrapBreakBeforeCharacters", e[e.wordWrapColumn = 134] = "wordWrapColumn", e[e.wordWrapOverride1 = 135] = "wordWrapOverride1", e[e.wordWrapOverride2 = 136] = "wordWrapOverride2", e[e.wrappingIndent = 137] = "wrappingIndent", e[e.wrappingStrategy = 138] = "wrappingStrategy", e[e.showDeprecated = 139] = "showDeprecated", e[e.inlayHints = 140] = "inlayHints", e[e.editorClassName = 141] = "editorClassName", e[e.pixelRatio = 142] = "pixelRatio", e[e.tabFocusMode = 143] = "tabFocusMode", e[e.layoutInfo = 144] = "layoutInfo", e[e.wrappingInfo = 145] = "wrappingInfo", e[e.defaultColorDecorators = 146] = "defaultColorDecorators", e[e.colorDecoratorsActivatedOn = 147] = "colorDecoratorsActivatedOn", e[e.inlineCompletionsAccessibilityVerbose = 148] = "inlineCompletionsAccessibilityVerbose";
|
|
4855
4895
|
})(Dn || (Dn = {}));
|
|
4856
4896
|
var Tn;
|
|
4857
4897
|
(function(e) {
|
|
4858
|
-
e[e.
|
|
4898
|
+
e[e.TextDefined = 0] = "TextDefined", e[e.LF = 1] = "LF", e[e.CRLF = 2] = "CRLF";
|
|
4859
4899
|
})(Tn || (Tn = {}));
|
|
4860
4900
|
var Vn;
|
|
4861
4901
|
(function(e) {
|
|
4862
|
-
e[e.
|
|
4902
|
+
e[e.LF = 0] = "LF", e[e.CRLF = 1] = "CRLF";
|
|
4863
4903
|
})(Vn || (Vn = {}));
|
|
4864
4904
|
var Bn;
|
|
4865
4905
|
(function(e) {
|
|
4866
|
-
e[e.
|
|
4906
|
+
e[e.Left = 1] = "Left", e[e.Center = 2] = "Center", e[e.Right = 3] = "Right";
|
|
4867
4907
|
})(Bn || (Bn = {}));
|
|
4868
|
-
var Vt;
|
|
4869
|
-
(function(e) {
|
|
4870
|
-
e[e.DependsOnKbLayout = -1] = "DependsOnKbLayout", e[e.Unknown = 0] = "Unknown", e[e.Backspace = 1] = "Backspace", e[e.Tab = 2] = "Tab", e[e.Enter = 3] = "Enter", e[e.Shift = 4] = "Shift", e[e.Ctrl = 5] = "Ctrl", e[e.Alt = 6] = "Alt", e[e.PauseBreak = 7] = "PauseBreak", e[e.CapsLock = 8] = "CapsLock", e[e.Escape = 9] = "Escape", e[e.Space = 10] = "Space", e[e.PageUp = 11] = "PageUp", e[e.PageDown = 12] = "PageDown", e[e.End = 13] = "End", e[e.Home = 14] = "Home", e[e.LeftArrow = 15] = "LeftArrow", e[e.UpArrow = 16] = "UpArrow", e[e.RightArrow = 17] = "RightArrow", e[e.DownArrow = 18] = "DownArrow", e[e.Insert = 19] = "Insert", e[e.Delete = 20] = "Delete", e[e.Digit0 = 21] = "Digit0", e[e.Digit1 = 22] = "Digit1", e[e.Digit2 = 23] = "Digit2", e[e.Digit3 = 24] = "Digit3", e[e.Digit4 = 25] = "Digit4", e[e.Digit5 = 26] = "Digit5", e[e.Digit6 = 27] = "Digit6", e[e.Digit7 = 28] = "Digit7", e[e.Digit8 = 29] = "Digit8", e[e.Digit9 = 30] = "Digit9", e[e.KeyA = 31] = "KeyA", e[e.KeyB = 32] = "KeyB", e[e.KeyC = 33] = "KeyC", e[e.KeyD = 34] = "KeyD", e[e.KeyE = 35] = "KeyE", e[e.KeyF = 36] = "KeyF", e[e.KeyG = 37] = "KeyG", e[e.KeyH = 38] = "KeyH", e[e.KeyI = 39] = "KeyI", e[e.KeyJ = 40] = "KeyJ", e[e.KeyK = 41] = "KeyK", e[e.KeyL = 42] = "KeyL", e[e.KeyM = 43] = "KeyM", e[e.KeyN = 44] = "KeyN", e[e.KeyO = 45] = "KeyO", e[e.KeyP = 46] = "KeyP", e[e.KeyQ = 47] = "KeyQ", e[e.KeyR = 48] = "KeyR", e[e.KeyS = 49] = "KeyS", e[e.KeyT = 50] = "KeyT", e[e.KeyU = 51] = "KeyU", e[e.KeyV = 52] = "KeyV", e[e.KeyW = 53] = "KeyW", e[e.KeyX = 54] = "KeyX", e[e.KeyY = 55] = "KeyY", e[e.KeyZ = 56] = "KeyZ", e[e.Meta = 57] = "Meta", e[e.ContextMenu = 58] = "ContextMenu", e[e.F1 = 59] = "F1", e[e.F2 = 60] = "F2", e[e.F3 = 61] = "F3", e[e.F4 = 62] = "F4", e[e.F5 = 63] = "F5", e[e.F6 = 64] = "F6", e[e.F7 = 65] = "F7", e[e.F8 = 66] = "F8", e[e.F9 = 67] = "F9", e[e.F10 = 68] = "F10", e[e.F11 = 69] = "F11", e[e.F12 = 70] = "F12", e[e.F13 = 71] = "F13", e[e.F14 = 72] = "F14", e[e.F15 = 73] = "F15", e[e.F16 = 74] = "F16", e[e.F17 = 75] = "F17", e[e.F18 = 76] = "F18", e[e.F19 = 77] = "F19", e[e.F20 = 78] = "F20", e[e.F21 = 79] = "F21", e[e.F22 = 80] = "F22", e[e.F23 = 81] = "F23", e[e.F24 = 82] = "F24", e[e.NumLock = 83] = "NumLock", e[e.ScrollLock = 84] = "ScrollLock", e[e.Semicolon = 85] = "Semicolon", e[e.Equal = 86] = "Equal", e[e.Comma = 87] = "Comma", e[e.Minus = 88] = "Minus", e[e.Period = 89] = "Period", e[e.Slash = 90] = "Slash", e[e.Backquote = 91] = "Backquote", e[e.BracketLeft = 92] = "BracketLeft", e[e.Backslash = 93] = "Backslash", e[e.BracketRight = 94] = "BracketRight", e[e.Quote = 95] = "Quote", e[e.OEM_8 = 96] = "OEM_8", e[e.IntlBackslash = 97] = "IntlBackslash", e[e.Numpad0 = 98] = "Numpad0", e[e.Numpad1 = 99] = "Numpad1", e[e.Numpad2 = 100] = "Numpad2", e[e.Numpad3 = 101] = "Numpad3", e[e.Numpad4 = 102] = "Numpad4", e[e.Numpad5 = 103] = "Numpad5", e[e.Numpad6 = 104] = "Numpad6", e[e.Numpad7 = 105] = "Numpad7", e[e.Numpad8 = 106] = "Numpad8", e[e.Numpad9 = 107] = "Numpad9", e[e.NumpadMultiply = 108] = "NumpadMultiply", e[e.NumpadAdd = 109] = "NumpadAdd", e[e.NUMPAD_SEPARATOR = 110] = "NUMPAD_SEPARATOR", e[e.NumpadSubtract = 111] = "NumpadSubtract", e[e.NumpadDecimal = 112] = "NumpadDecimal", e[e.NumpadDivide = 113] = "NumpadDivide", e[e.KEY_IN_COMPOSITION = 114] = "KEY_IN_COMPOSITION", e[e.ABNT_C1 = 115] = "ABNT_C1", e[e.ABNT_C2 = 116] = "ABNT_C2", e[e.AudioVolumeMute = 117] = "AudioVolumeMute", e[e.AudioVolumeUp = 118] = "AudioVolumeUp", e[e.AudioVolumeDown = 119] = "AudioVolumeDown", e[e.BrowserSearch = 120] = "BrowserSearch", e[e.BrowserHome = 121] = "BrowserHome", e[e.BrowserBack = 122] = "BrowserBack", e[e.BrowserForward = 123] = "BrowserForward", e[e.MediaTrackNext = 124] = "MediaTrackNext", e[e.MediaTrackPrevious = 125] = "MediaTrackPrevious", e[e.MediaStop = 126] = "MediaStop", e[e.MediaPlayPause = 127] = "MediaPlayPause", e[e.LaunchMediaPlayer = 128] = "LaunchMediaPlayer", e[e.LaunchMail = 129] = "LaunchMail", e[e.LaunchApp2 = 130] = "LaunchApp2", e[e.Clear = 131] = "Clear", e[e.MAX_VALUE = 132] = "MAX_VALUE";
|
|
4871
|
-
})(Vt || (Vt = {}));
|
|
4872
|
-
var Bt;
|
|
4873
|
-
(function(e) {
|
|
4874
|
-
e[e.Hint = 1] = "Hint", e[e.Info = 2] = "Info", e[e.Warning = 4] = "Warning", e[e.Error = 8] = "Error";
|
|
4875
|
-
})(Bt || (Bt = {}));
|
|
4876
|
-
var qt;
|
|
4877
|
-
(function(e) {
|
|
4878
|
-
e[e.Unnecessary = 1] = "Unnecessary", e[e.Deprecated = 2] = "Deprecated";
|
|
4879
|
-
})(qt || (qt = {}));
|
|
4880
4908
|
var qn;
|
|
4881
4909
|
(function(e) {
|
|
4882
|
-
e[e.
|
|
4910
|
+
e[e.None = 0] = "None", e[e.Indent = 1] = "Indent", e[e.IndentOutdent = 2] = "IndentOutdent", e[e.Outdent = 3] = "Outdent";
|
|
4883
4911
|
})(qn || (qn = {}));
|
|
4884
4912
|
var In;
|
|
4885
4913
|
(function(e) {
|
|
4886
|
-
e[e.
|
|
4914
|
+
e[e.Both = 0] = "Both", e[e.Right = 1] = "Right", e[e.Left = 2] = "Left", e[e.None = 3] = "None";
|
|
4887
4915
|
})(In || (In = {}));
|
|
4888
4916
|
var Un;
|
|
4889
4917
|
(function(e) {
|
|
4890
|
-
e[e.
|
|
4918
|
+
e[e.Type = 1] = "Type", e[e.Parameter = 2] = "Parameter";
|
|
4891
4919
|
})(Un || (Un = {}));
|
|
4892
4920
|
var Hn;
|
|
4893
4921
|
(function(e) {
|
|
4894
|
-
e[e.
|
|
4922
|
+
e[e.Automatic = 0] = "Automatic", e[e.Explicit = 1] = "Explicit";
|
|
4895
4923
|
})(Hn || (Hn = {}));
|
|
4896
4924
|
var Wn;
|
|
4897
4925
|
(function(e) {
|
|
4898
|
-
e[e.
|
|
4926
|
+
e[e.Invoke = 0] = "Invoke", e[e.Automatic = 1] = "Automatic";
|
|
4899
4927
|
})(Wn || (Wn = {}));
|
|
4928
|
+
var It;
|
|
4929
|
+
(function(e) {
|
|
4930
|
+
e[e.DependsOnKbLayout = -1] = "DependsOnKbLayout", e[e.Unknown = 0] = "Unknown", e[e.Backspace = 1] = "Backspace", e[e.Tab = 2] = "Tab", e[e.Enter = 3] = "Enter", e[e.Shift = 4] = "Shift", e[e.Ctrl = 5] = "Ctrl", e[e.Alt = 6] = "Alt", e[e.PauseBreak = 7] = "PauseBreak", e[e.CapsLock = 8] = "CapsLock", e[e.Escape = 9] = "Escape", e[e.Space = 10] = "Space", e[e.PageUp = 11] = "PageUp", e[e.PageDown = 12] = "PageDown", e[e.End = 13] = "End", e[e.Home = 14] = "Home", e[e.LeftArrow = 15] = "LeftArrow", e[e.UpArrow = 16] = "UpArrow", e[e.RightArrow = 17] = "RightArrow", e[e.DownArrow = 18] = "DownArrow", e[e.Insert = 19] = "Insert", e[e.Delete = 20] = "Delete", e[e.Digit0 = 21] = "Digit0", e[e.Digit1 = 22] = "Digit1", e[e.Digit2 = 23] = "Digit2", e[e.Digit3 = 24] = "Digit3", e[e.Digit4 = 25] = "Digit4", e[e.Digit5 = 26] = "Digit5", e[e.Digit6 = 27] = "Digit6", e[e.Digit7 = 28] = "Digit7", e[e.Digit8 = 29] = "Digit8", e[e.Digit9 = 30] = "Digit9", e[e.KeyA = 31] = "KeyA", e[e.KeyB = 32] = "KeyB", e[e.KeyC = 33] = "KeyC", e[e.KeyD = 34] = "KeyD", e[e.KeyE = 35] = "KeyE", e[e.KeyF = 36] = "KeyF", e[e.KeyG = 37] = "KeyG", e[e.KeyH = 38] = "KeyH", e[e.KeyI = 39] = "KeyI", e[e.KeyJ = 40] = "KeyJ", e[e.KeyK = 41] = "KeyK", e[e.KeyL = 42] = "KeyL", e[e.KeyM = 43] = "KeyM", e[e.KeyN = 44] = "KeyN", e[e.KeyO = 45] = "KeyO", e[e.KeyP = 46] = "KeyP", e[e.KeyQ = 47] = "KeyQ", e[e.KeyR = 48] = "KeyR", e[e.KeyS = 49] = "KeyS", e[e.KeyT = 50] = "KeyT", e[e.KeyU = 51] = "KeyU", e[e.KeyV = 52] = "KeyV", e[e.KeyW = 53] = "KeyW", e[e.KeyX = 54] = "KeyX", e[e.KeyY = 55] = "KeyY", e[e.KeyZ = 56] = "KeyZ", e[e.Meta = 57] = "Meta", e[e.ContextMenu = 58] = "ContextMenu", e[e.F1 = 59] = "F1", e[e.F2 = 60] = "F2", e[e.F3 = 61] = "F3", e[e.F4 = 62] = "F4", e[e.F5 = 63] = "F5", e[e.F6 = 64] = "F6", e[e.F7 = 65] = "F7", e[e.F8 = 66] = "F8", e[e.F9 = 67] = "F9", e[e.F10 = 68] = "F10", e[e.F11 = 69] = "F11", e[e.F12 = 70] = "F12", e[e.F13 = 71] = "F13", e[e.F14 = 72] = "F14", e[e.F15 = 73] = "F15", e[e.F16 = 74] = "F16", e[e.F17 = 75] = "F17", e[e.F18 = 76] = "F18", e[e.F19 = 77] = "F19", e[e.F20 = 78] = "F20", e[e.F21 = 79] = "F21", e[e.F22 = 80] = "F22", e[e.F23 = 81] = "F23", e[e.F24 = 82] = "F24", e[e.NumLock = 83] = "NumLock", e[e.ScrollLock = 84] = "ScrollLock", e[e.Semicolon = 85] = "Semicolon", e[e.Equal = 86] = "Equal", e[e.Comma = 87] = "Comma", e[e.Minus = 88] = "Minus", e[e.Period = 89] = "Period", e[e.Slash = 90] = "Slash", e[e.Backquote = 91] = "Backquote", e[e.BracketLeft = 92] = "BracketLeft", e[e.Backslash = 93] = "Backslash", e[e.BracketRight = 94] = "BracketRight", e[e.Quote = 95] = "Quote", e[e.OEM_8 = 96] = "OEM_8", e[e.IntlBackslash = 97] = "IntlBackslash", e[e.Numpad0 = 98] = "Numpad0", e[e.Numpad1 = 99] = "Numpad1", e[e.Numpad2 = 100] = "Numpad2", e[e.Numpad3 = 101] = "Numpad3", e[e.Numpad4 = 102] = "Numpad4", e[e.Numpad5 = 103] = "Numpad5", e[e.Numpad6 = 104] = "Numpad6", e[e.Numpad7 = 105] = "Numpad7", e[e.Numpad8 = 106] = "Numpad8", e[e.Numpad9 = 107] = "Numpad9", e[e.NumpadMultiply = 108] = "NumpadMultiply", e[e.NumpadAdd = 109] = "NumpadAdd", e[e.NUMPAD_SEPARATOR = 110] = "NUMPAD_SEPARATOR", e[e.NumpadSubtract = 111] = "NumpadSubtract", e[e.NumpadDecimal = 112] = "NumpadDecimal", e[e.NumpadDivide = 113] = "NumpadDivide", e[e.KEY_IN_COMPOSITION = 114] = "KEY_IN_COMPOSITION", e[e.ABNT_C1 = 115] = "ABNT_C1", e[e.ABNT_C2 = 116] = "ABNT_C2", e[e.AudioVolumeMute = 117] = "AudioVolumeMute", e[e.AudioVolumeUp = 118] = "AudioVolumeUp", e[e.AudioVolumeDown = 119] = "AudioVolumeDown", e[e.BrowserSearch = 120] = "BrowserSearch", e[e.BrowserHome = 121] = "BrowserHome", e[e.BrowserBack = 122] = "BrowserBack", e[e.BrowserForward = 123] = "BrowserForward", e[e.MediaTrackNext = 124] = "MediaTrackNext", e[e.MediaTrackPrevious = 125] = "MediaTrackPrevious", e[e.MediaStop = 126] = "MediaStop", e[e.MediaPlayPause = 127] = "MediaPlayPause", e[e.LaunchMediaPlayer = 128] = "LaunchMediaPlayer", e[e.LaunchMail = 129] = "LaunchMail", e[e.LaunchApp2 = 130] = "LaunchApp2", e[e.Clear = 131] = "Clear", e[e.MAX_VALUE = 132] = "MAX_VALUE";
|
|
4931
|
+
})(It || (It = {}));
|
|
4932
|
+
var Ut;
|
|
4933
|
+
(function(e) {
|
|
4934
|
+
e[e.Hint = 1] = "Hint", e[e.Info = 2] = "Info", e[e.Warning = 4] = "Warning", e[e.Error = 8] = "Error";
|
|
4935
|
+
})(Ut || (Ut = {}));
|
|
4936
|
+
var Ht;
|
|
4937
|
+
(function(e) {
|
|
4938
|
+
e[e.Unnecessary = 1] = "Unnecessary", e[e.Deprecated = 2] = "Deprecated";
|
|
4939
|
+
})(Ht || (Ht = {}));
|
|
4900
4940
|
var zn;
|
|
4901
4941
|
(function(e) {
|
|
4902
|
-
e[e.
|
|
4942
|
+
e[e.Inline = 1] = "Inline", e[e.Gutter = 2] = "Gutter";
|
|
4903
4943
|
})(zn || (zn = {}));
|
|
4904
4944
|
var $n;
|
|
4905
4945
|
(function(e) {
|
|
4906
|
-
e[e.
|
|
4946
|
+
e[e.UNKNOWN = 0] = "UNKNOWN", e[e.TEXTAREA = 1] = "TEXTAREA", e[e.GUTTER_GLYPH_MARGIN = 2] = "GUTTER_GLYPH_MARGIN", e[e.GUTTER_LINE_NUMBERS = 3] = "GUTTER_LINE_NUMBERS", e[e.GUTTER_LINE_DECORATIONS = 4] = "GUTTER_LINE_DECORATIONS", e[e.GUTTER_VIEW_ZONE = 5] = "GUTTER_VIEW_ZONE", e[e.CONTENT_TEXT = 6] = "CONTENT_TEXT", e[e.CONTENT_EMPTY = 7] = "CONTENT_EMPTY", e[e.CONTENT_VIEW_ZONE = 8] = "CONTENT_VIEW_ZONE", e[e.CONTENT_WIDGET = 9] = "CONTENT_WIDGET", e[e.OVERVIEW_RULER = 10] = "OVERVIEW_RULER", e[e.SCROLLBAR = 11] = "SCROLLBAR", e[e.OVERLAY_WIDGET = 12] = "OVERLAY_WIDGET", e[e.OUTSIDE_EDITOR = 13] = "OUTSIDE_EDITOR";
|
|
4907
4947
|
})($n || ($n = {}));
|
|
4908
4948
|
var On;
|
|
4909
4949
|
(function(e) {
|
|
4910
|
-
e[e.
|
|
4950
|
+
e[e.AIGenerated = 1] = "AIGenerated";
|
|
4911
4951
|
})(On || (On = {}));
|
|
4912
4952
|
var Gn;
|
|
4913
4953
|
(function(e) {
|
|
4914
|
-
e[e.
|
|
4954
|
+
e[e.TOP_RIGHT_CORNER = 0] = "TOP_RIGHT_CORNER", e[e.BOTTOM_RIGHT_CORNER = 1] = "BOTTOM_RIGHT_CORNER", e[e.TOP_CENTER = 2] = "TOP_CENTER";
|
|
4915
4955
|
})(Gn || (Gn = {}));
|
|
4916
4956
|
var jn;
|
|
4917
4957
|
(function(e) {
|
|
4918
|
-
e[e.
|
|
4958
|
+
e[e.Left = 1] = "Left", e[e.Center = 2] = "Center", e[e.Right = 4] = "Right", e[e.Full = 7] = "Full";
|
|
4919
4959
|
})(jn || (jn = {}));
|
|
4920
|
-
var It;
|
|
4921
|
-
(function(e) {
|
|
4922
|
-
e[e.LTR = 0] = "LTR", e[e.RTL = 1] = "RTL";
|
|
4923
|
-
})(It || (It = {}));
|
|
4924
4960
|
var Qn;
|
|
4925
4961
|
(function(e) {
|
|
4926
|
-
e.
|
|
4962
|
+
e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e[e.None = 2] = "None", e[e.LeftOfInjectedText = 3] = "LeftOfInjectedText", e[e.RightOfInjectedText = 4] = "RightOfInjectedText";
|
|
4927
4963
|
})(Qn || (Qn = {}));
|
|
4928
4964
|
var Xn;
|
|
4929
4965
|
(function(e) {
|
|
4930
|
-
e[e.
|
|
4966
|
+
e[e.Off = 0] = "Off", e[e.On = 1] = "On", e[e.Relative = 2] = "Relative", e[e.Interval = 3] = "Interval", e[e.Custom = 4] = "Custom";
|
|
4931
4967
|
})(Xn || (Xn = {}));
|
|
4932
4968
|
var Yn;
|
|
4933
4969
|
(function(e) {
|
|
4934
|
-
e[e.
|
|
4970
|
+
e[e.None = 0] = "None", e[e.Text = 1] = "Text", e[e.Blocks = 2] = "Blocks";
|
|
4935
4971
|
})(Yn || (Yn = {}));
|
|
4936
4972
|
var Jn;
|
|
4937
4973
|
(function(e) {
|
|
4938
|
-
e[e.
|
|
4974
|
+
e[e.Smooth = 0] = "Smooth", e[e.Immediate = 1] = "Immediate";
|
|
4939
4975
|
})(Jn || (Jn = {}));
|
|
4940
4976
|
var Zn;
|
|
4941
4977
|
(function(e) {
|
|
4942
|
-
e[e.
|
|
4978
|
+
e[e.Auto = 1] = "Auto", e[e.Hidden = 2] = "Hidden", e[e.Visible = 3] = "Visible";
|
|
4943
4979
|
})(Zn || (Zn = {}));
|
|
4980
|
+
var Wt;
|
|
4981
|
+
(function(e) {
|
|
4982
|
+
e[e.LTR = 0] = "LTR", e[e.RTL = 1] = "RTL";
|
|
4983
|
+
})(Wt || (Wt = {}));
|
|
4944
4984
|
var Kn;
|
|
4945
4985
|
(function(e) {
|
|
4946
|
-
e
|
|
4986
|
+
e.Off = "off", e.OnCode = "onCode", e.On = "on";
|
|
4947
4987
|
})(Kn || (Kn = {}));
|
|
4948
4988
|
var er;
|
|
4949
4989
|
(function(e) {
|
|
4950
|
-
e[e.
|
|
4990
|
+
e[e.Invoke = 1] = "Invoke", e[e.TriggerCharacter = 2] = "TriggerCharacter", e[e.ContentChange = 3] = "ContentChange";
|
|
4951
4991
|
})(er || (er = {}));
|
|
4952
4992
|
var tr;
|
|
4953
4993
|
(function(e) {
|
|
4954
|
-
e[e.
|
|
4994
|
+
e[e.File = 0] = "File", e[e.Module = 1] = "Module", e[e.Namespace = 2] = "Namespace", e[e.Package = 3] = "Package", e[e.Class = 4] = "Class", e[e.Method = 5] = "Method", e[e.Property = 6] = "Property", e[e.Field = 7] = "Field", e[e.Constructor = 8] = "Constructor", e[e.Enum = 9] = "Enum", e[e.Interface = 10] = "Interface", e[e.Function = 11] = "Function", e[e.Variable = 12] = "Variable", e[e.Constant = 13] = "Constant", e[e.String = 14] = "String", e[e.Number = 15] = "Number", e[e.Boolean = 16] = "Boolean", e[e.Array = 17] = "Array", e[e.Object = 18] = "Object", e[e.Key = 19] = "Key", e[e.Null = 20] = "Null", e[e.EnumMember = 21] = "EnumMember", e[e.Struct = 22] = "Struct", e[e.Event = 23] = "Event", e[e.Operator = 24] = "Operator", e[e.TypeParameter = 25] = "TypeParameter";
|
|
4955
4995
|
})(tr || (tr = {}));
|
|
4956
|
-
|
|
4996
|
+
var nr;
|
|
4997
|
+
(function(e) {
|
|
4998
|
+
e[e.Deprecated = 1] = "Deprecated";
|
|
4999
|
+
})(nr || (nr = {}));
|
|
5000
|
+
var rr;
|
|
5001
|
+
(function(e) {
|
|
5002
|
+
e[e.Hidden = 0] = "Hidden", e[e.Blink = 1] = "Blink", e[e.Smooth = 2] = "Smooth", e[e.Phase = 3] = "Phase", e[e.Expand = 4] = "Expand", e[e.Solid = 5] = "Solid";
|
|
5003
|
+
})(rr || (rr = {}));
|
|
5004
|
+
var sr;
|
|
5005
|
+
(function(e) {
|
|
5006
|
+
e[e.Line = 1] = "Line", e[e.Block = 2] = "Block", e[e.Underline = 3] = "Underline", e[e.LineThin = 4] = "LineThin", e[e.BlockOutline = 5] = "BlockOutline", e[e.UnderlineThin = 6] = "UnderlineThin";
|
|
5007
|
+
})(sr || (sr = {}));
|
|
5008
|
+
var ir;
|
|
5009
|
+
(function(e) {
|
|
5010
|
+
e[e.AlwaysGrowsWhenTypingAtEdges = 0] = "AlwaysGrowsWhenTypingAtEdges", e[e.NeverGrowsWhenTypingAtEdges = 1] = "NeverGrowsWhenTypingAtEdges", e[e.GrowsOnlyWhenTypingBefore = 2] = "GrowsOnlyWhenTypingBefore", e[e.GrowsOnlyWhenTypingAfter = 3] = "GrowsOnlyWhenTypingAfter";
|
|
5011
|
+
})(ir || (ir = {}));
|
|
5012
|
+
var ar;
|
|
5013
|
+
(function(e) {
|
|
5014
|
+
e[e.None = 0] = "None", e[e.Same = 1] = "Same", e[e.Indent = 2] = "Indent", e[e.DeepIndent = 3] = "DeepIndent";
|
|
5015
|
+
})(ar || (ar = {}));
|
|
5016
|
+
class Ze {
|
|
4957
5017
|
static chord(t, n) {
|
|
4958
|
-
return
|
|
5018
|
+
return Ci(t, n);
|
|
4959
5019
|
}
|
|
4960
5020
|
}
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
function
|
|
5021
|
+
Ze.CtrlCmd = 2048;
|
|
5022
|
+
Ze.Shift = 1024;
|
|
5023
|
+
Ze.Alt = 512;
|
|
5024
|
+
Ze.WinCtrl = 256;
|
|
5025
|
+
function Mi() {
|
|
4966
5026
|
return {
|
|
4967
5027
|
editor: void 0,
|
|
4968
5028
|
// undefined override expected here
|
|
4969
5029
|
languages: void 0,
|
|
4970
5030
|
// undefined override expected here
|
|
4971
|
-
CancellationTokenSource:
|
|
4972
|
-
Emitter:
|
|
4973
|
-
KeyCode:
|
|
4974
|
-
KeyMod:
|
|
5031
|
+
CancellationTokenSource: wi,
|
|
5032
|
+
Emitter: ae,
|
|
5033
|
+
KeyCode: It,
|
|
5034
|
+
KeyMod: Ze,
|
|
4975
5035
|
Position: Y,
|
|
4976
5036
|
Range: D,
|
|
4977
|
-
Selection:
|
|
4978
|
-
SelectionDirection:
|
|
4979
|
-
MarkerSeverity:
|
|
4980
|
-
MarkerTag:
|
|
4981
|
-
Uri:
|
|
4982
|
-
Token:
|
|
5037
|
+
Selection: ne,
|
|
5038
|
+
SelectionDirection: Wt,
|
|
5039
|
+
MarkerSeverity: Ut,
|
|
5040
|
+
MarkerTag: Ht,
|
|
5041
|
+
Uri: Ne,
|
|
5042
|
+
Token: yi
|
|
4983
5043
|
};
|
|
4984
5044
|
}
|
|
4985
|
-
var
|
|
5045
|
+
var lr;
|
|
4986
5046
|
(function(e) {
|
|
4987
5047
|
e[e.Left = 1] = "Left", e[e.Center = 2] = "Center", e[e.Right = 4] = "Right", e[e.Full = 7] = "Full";
|
|
4988
|
-
})(
|
|
4989
|
-
var
|
|
5048
|
+
})(lr || (lr = {}));
|
|
5049
|
+
var or;
|
|
4990
5050
|
(function(e) {
|
|
4991
5051
|
e[e.Left = 1] = "Left", e[e.Center = 2] = "Center", e[e.Right = 3] = "Right";
|
|
4992
|
-
})(
|
|
4993
|
-
var
|
|
5052
|
+
})(or || (or = {}));
|
|
5053
|
+
var ur;
|
|
4994
5054
|
(function(e) {
|
|
4995
5055
|
e[e.Inline = 1] = "Inline", e[e.Gutter = 2] = "Gutter";
|
|
4996
|
-
})(
|
|
4997
|
-
var
|
|
5056
|
+
})(ur || (ur = {}));
|
|
5057
|
+
var cr;
|
|
4998
5058
|
(function(e) {
|
|
4999
5059
|
e[e.Both = 0] = "Both", e[e.Right = 1] = "Right", e[e.Left = 2] = "Left", e[e.None = 3] = "None";
|
|
5000
|
-
})(
|
|
5001
|
-
function
|
|
5060
|
+
})(cr || (cr = {}));
|
|
5061
|
+
function Ei(e, t, n, r, s) {
|
|
5002
5062
|
if (r === 0)
|
|
5003
5063
|
return !0;
|
|
5004
5064
|
const i = t.charCodeAt(r - 1);
|
|
@@ -5011,7 +5071,7 @@ function Ni(e, t, n, r, s) {
|
|
|
5011
5071
|
}
|
|
5012
5072
|
return !1;
|
|
5013
5073
|
}
|
|
5014
|
-
function
|
|
5074
|
+
function ki(e, t, n, r, s) {
|
|
5015
5075
|
if (r + s === n)
|
|
5016
5076
|
return !0;
|
|
5017
5077
|
const i = t.charCodeAt(r + s);
|
|
@@ -5024,10 +5084,10 @@ function Si(e, t, n, r, s) {
|
|
|
5024
5084
|
}
|
|
5025
5085
|
return !1;
|
|
5026
5086
|
}
|
|
5027
|
-
function
|
|
5028
|
-
return
|
|
5087
|
+
function Pi(e, t, n, r, s) {
|
|
5088
|
+
return Ei(e, t, n, r, s) && ki(e, t, n, r, s);
|
|
5029
5089
|
}
|
|
5030
|
-
class
|
|
5090
|
+
class Fi {
|
|
5031
5091
|
constructor(t, n) {
|
|
5032
5092
|
this._wordSeparators = t, this._searchRegex = n, this._prevMatchStartIndex = -1, this._prevMatchLength = 0;
|
|
5033
5093
|
}
|
|
@@ -5043,27 +5103,27 @@ class Ai {
|
|
|
5043
5103
|
const s = r.index, i = r[0].length;
|
|
5044
5104
|
if (s === this._prevMatchStartIndex && i === this._prevMatchLength) {
|
|
5045
5105
|
if (i === 0) {
|
|
5046
|
-
|
|
5106
|
+
ys(t, n, this._searchRegex.lastIndex) > 65535 ? this._searchRegex.lastIndex += 2 : this._searchRegex.lastIndex += 1;
|
|
5047
5107
|
continue;
|
|
5048
5108
|
}
|
|
5049
5109
|
return null;
|
|
5050
5110
|
}
|
|
5051
|
-
if (this._prevMatchStartIndex = s, this._prevMatchLength = i, !this._wordSeparators ||
|
|
5111
|
+
if (this._prevMatchStartIndex = s, this._prevMatchLength = i, !this._wordSeparators || Pi(this._wordSeparators, t, n, s, i))
|
|
5052
5112
|
return r;
|
|
5053
5113
|
} while (r);
|
|
5054
5114
|
return null;
|
|
5055
5115
|
}
|
|
5056
5116
|
}
|
|
5057
|
-
function
|
|
5117
|
+
function Di(e, t = "Unreachable") {
|
|
5058
5118
|
throw new Error(t);
|
|
5059
5119
|
}
|
|
5060
|
-
function
|
|
5120
|
+
function gt(e) {
|
|
5061
5121
|
if (!e()) {
|
|
5062
5122
|
debugger;
|
|
5063
|
-
e(),
|
|
5123
|
+
e(), yr(new be("Assertion Failed"));
|
|
5064
5124
|
}
|
|
5065
5125
|
}
|
|
5066
|
-
function
|
|
5126
|
+
function zr(e, t) {
|
|
5067
5127
|
let n = 0;
|
|
5068
5128
|
for (; n < e.length - 1; ) {
|
|
5069
5129
|
const r = e[n], s = e[n + 1];
|
|
@@ -5073,12 +5133,12 @@ function qr(e, t) {
|
|
|
5073
5133
|
}
|
|
5074
5134
|
return !0;
|
|
5075
5135
|
}
|
|
5076
|
-
class
|
|
5136
|
+
class Ti {
|
|
5077
5137
|
static computeUnicodeHighlights(t, n, r) {
|
|
5078
|
-
const s = r ? r.startLineNumber : 1, i = r ? r.endLineNumber : t.getLineCount(), l = new
|
|
5138
|
+
const s = r ? r.startLineNumber : 1, i = r ? r.endLineNumber : t.getLineCount(), l = new hr(n), o = l.getCandidateCodePoints();
|
|
5079
5139
|
let u;
|
|
5080
|
-
o === "allNonBasicAscii" ? u = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : u = new RegExp(`${
|
|
5081
|
-
const c = new
|
|
5140
|
+
o === "allNonBasicAscii" ? u = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : u = new RegExp(`${Vi(Array.from(o))}`, "g");
|
|
5141
|
+
const c = new Fi(null, u), f = [];
|
|
5082
5142
|
let h = !1, d, m = 0, g = 0, _ = 0;
|
|
5083
5143
|
e: for (let v = s, N = i; v <= N; v++) {
|
|
5084
5144
|
const S = t.getLineContent(v), x = S.length;
|
|
@@ -5087,19 +5147,19 @@ class yi {
|
|
|
5087
5147
|
if (d = c.next(S), d) {
|
|
5088
5148
|
let L = d.index, p = d.index + d[0].length;
|
|
5089
5149
|
if (L > 0) {
|
|
5090
|
-
const
|
|
5091
|
-
|
|
5150
|
+
const B = S.charCodeAt(L - 1);
|
|
5151
|
+
Pt(B) && L--;
|
|
5092
5152
|
}
|
|
5093
5153
|
if (p + 1 < x) {
|
|
5094
|
-
const
|
|
5095
|
-
|
|
5154
|
+
const B = S.charCodeAt(p - 1);
|
|
5155
|
+
Pt(B) && p++;
|
|
5096
5156
|
}
|
|
5097
5157
|
const R = S.substring(L, p);
|
|
5098
|
-
let y =
|
|
5158
|
+
let y = Xt(L + 1, Ir, S, 0);
|
|
5099
5159
|
y && y.endColumn <= L + 1 && (y = null);
|
|
5100
5160
|
const M = l.shouldHighlightNonBasicASCII(R, y ? y.word : null);
|
|
5101
5161
|
if (M !== 0) {
|
|
5102
|
-
if (M === 3 ? m++ : M === 2 ? g++ : M === 1 ? _++ :
|
|
5162
|
+
if (M === 3 ? m++ : M === 2 ? g++ : M === 1 ? _++ : Di(), f.length >= 1e3) {
|
|
5103
5163
|
h = !0;
|
|
5104
5164
|
break e;
|
|
5105
5165
|
}
|
|
@@ -5117,7 +5177,7 @@ class yi {
|
|
|
5117
5177
|
};
|
|
5118
5178
|
}
|
|
5119
5179
|
static computeUnicodeHighlightReason(t, n) {
|
|
5120
|
-
const r = new
|
|
5180
|
+
const r = new hr(n);
|
|
5121
5181
|
switch (r.shouldHighlightNonBasicASCII(t, null)) {
|
|
5122
5182
|
case 0:
|
|
5123
5183
|
return null;
|
|
@@ -5127,7 +5187,7 @@ class yi {
|
|
|
5127
5187
|
/* UnicodeHighlighterReasonKind.Invisible */
|
|
5128
5188
|
};
|
|
5129
5189
|
case 3: {
|
|
5130
|
-
const i = t.codePointAt(0), l = r.ambiguousCharacters.getPrimaryConfusable(i), o =
|
|
5190
|
+
const i = t.codePointAt(0), l = r.ambiguousCharacters.getPrimaryConfusable(i), o = Ce.getLocales().filter((u) => !Ce.getInstance(/* @__PURE__ */ new Set([...n.allowedLocales, u])).isAmbiguous(i));
|
|
5131
5191
|
return { kind: 0, confusableWith: String.fromCodePoint(l), notAmbiguousInLocales: o };
|
|
5132
5192
|
}
|
|
5133
5193
|
case 1:
|
|
@@ -5138,20 +5198,20 @@ class yi {
|
|
|
5138
5198
|
}
|
|
5139
5199
|
}
|
|
5140
5200
|
}
|
|
5141
|
-
function
|
|
5142
|
-
return `[${
|
|
5201
|
+
function Vi(e, t) {
|
|
5202
|
+
return `[${Ls(e.map((r) => String.fromCodePoint(r)).join(""))}]`;
|
|
5143
5203
|
}
|
|
5144
|
-
class
|
|
5204
|
+
class hr {
|
|
5145
5205
|
constructor(t) {
|
|
5146
|
-
this.options = t, this.allowedCodePoints = new Set(t.allowedCodePoints), this.ambiguousCharacters =
|
|
5206
|
+
this.options = t, this.allowedCodePoints = new Set(t.allowedCodePoints), this.ambiguousCharacters = Ce.getInstance(new Set(t.allowedLocales));
|
|
5147
5207
|
}
|
|
5148
5208
|
getCandidateCodePoints() {
|
|
5149
5209
|
if (this.options.nonBasicASCII)
|
|
5150
5210
|
return "allNonBasicAscii";
|
|
5151
5211
|
const t = /* @__PURE__ */ new Set();
|
|
5152
5212
|
if (this.options.invisibleCharacters)
|
|
5153
|
-
for (const n of
|
|
5154
|
-
|
|
5213
|
+
for (const n of xe.codePoints)
|
|
5214
|
+
fr(String.fromCodePoint(n)) || t.add(n);
|
|
5155
5215
|
if (this.options.ambiguousCharacters)
|
|
5156
5216
|
for (const n of this.ambiguousCharacters.getConfusableCodePoints())
|
|
5157
5217
|
t.add(n);
|
|
@@ -5168,26 +5228,26 @@ class ar {
|
|
|
5168
5228
|
let s = !1, i = !1;
|
|
5169
5229
|
if (n)
|
|
5170
5230
|
for (const l of n) {
|
|
5171
|
-
const o = l.codePointAt(0), u =
|
|
5172
|
-
s = s || u, !u && !this.ambiguousCharacters.isAmbiguous(o) && !
|
|
5231
|
+
const o = l.codePointAt(0), u = Es(l);
|
|
5232
|
+
s = s || u, !u && !this.ambiguousCharacters.isAmbiguous(o) && !xe.isInvisibleCharacter(o) && (i = !0);
|
|
5173
5233
|
}
|
|
5174
5234
|
return (
|
|
5175
5235
|
/* Don't allow mixing weird looking characters with ASCII */
|
|
5176
5236
|
!s && /* Is there an obviously weird looking character? */
|
|
5177
|
-
i ? 0 : this.options.invisibleCharacters && !
|
|
5237
|
+
i ? 0 : this.options.invisibleCharacters && !fr(t) && xe.isInvisibleCharacter(r) ? 2 : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(r) ? 3 : 0
|
|
5178
5238
|
);
|
|
5179
5239
|
}
|
|
5180
5240
|
}
|
|
5181
|
-
function
|
|
5241
|
+
function fr(e) {
|
|
5182
5242
|
return e === " " || e === `
|
|
5183
5243
|
` || e === " ";
|
|
5184
5244
|
}
|
|
5185
|
-
class
|
|
5245
|
+
class ot {
|
|
5186
5246
|
constructor(t, n, r) {
|
|
5187
5247
|
this.changes = t, this.moves = n, this.hitTimeout = r;
|
|
5188
5248
|
}
|
|
5189
5249
|
}
|
|
5190
|
-
class
|
|
5250
|
+
class Bi {
|
|
5191
5251
|
constructor(t, n) {
|
|
5192
5252
|
this.lineRangeMapping = t, this.changes = n;
|
|
5193
5253
|
}
|
|
@@ -5215,7 +5275,7 @@ class T {
|
|
|
5215
5275
|
}
|
|
5216
5276
|
constructor(t, n) {
|
|
5217
5277
|
if (this.start = t, this.endExclusive = n, t > n)
|
|
5218
|
-
throw new
|
|
5278
|
+
throw new be(`Invalid range: ${this.toString()}`);
|
|
5219
5279
|
}
|
|
5220
5280
|
get isEmpty() {
|
|
5221
5281
|
return this.start === this.endExclusive;
|
|
@@ -5275,7 +5335,7 @@ class T {
|
|
|
5275
5335
|
*/
|
|
5276
5336
|
clip(t) {
|
|
5277
5337
|
if (this.isEmpty)
|
|
5278
|
-
throw new
|
|
5338
|
+
throw new be(`Invalid clipping range: ${this.toString()}`);
|
|
5279
5339
|
return Math.max(this.start, Math.min(this.endExclusive - 1, t));
|
|
5280
5340
|
}
|
|
5281
5341
|
/**
|
|
@@ -5286,7 +5346,7 @@ class T {
|
|
|
5286
5346
|
*/
|
|
5287
5347
|
clipCyclic(t) {
|
|
5288
5348
|
if (this.isEmpty)
|
|
5289
|
-
throw new
|
|
5349
|
+
throw new be(`Invalid clipping range: ${this.toString()}`);
|
|
5290
5350
|
return t < this.start ? this.endExclusive - (this.start - t) % this.length : t >= this.endExclusive ? this.start + (t - this.start) % this.length : t;
|
|
5291
5351
|
}
|
|
5292
5352
|
forEach(t) {
|
|
@@ -5294,11 +5354,11 @@ class T {
|
|
|
5294
5354
|
t(n);
|
|
5295
5355
|
}
|
|
5296
5356
|
}
|
|
5297
|
-
function
|
|
5298
|
-
const n =
|
|
5357
|
+
function Ie(e, t) {
|
|
5358
|
+
const n = Xe(e, t);
|
|
5299
5359
|
return n === -1 ? void 0 : e[n];
|
|
5300
5360
|
}
|
|
5301
|
-
function
|
|
5361
|
+
function Xe(e, t, n = 0, r = e.length) {
|
|
5302
5362
|
let s = n, i = r;
|
|
5303
5363
|
for (; s < i; ) {
|
|
5304
5364
|
const l = Math.floor((s + i) / 2);
|
|
@@ -5306,11 +5366,11 @@ function je(e, t, n = 0, r = e.length) {
|
|
|
5306
5366
|
}
|
|
5307
5367
|
return s - 1;
|
|
5308
5368
|
}
|
|
5309
|
-
function
|
|
5310
|
-
const n =
|
|
5369
|
+
function qi(e, t) {
|
|
5370
|
+
const n = zt(e, t);
|
|
5311
5371
|
return n === e.length ? void 0 : e[n];
|
|
5312
5372
|
}
|
|
5313
|
-
function
|
|
5373
|
+
function zt(e, t, n = 0, r = e.length) {
|
|
5314
5374
|
let s = n, i = r;
|
|
5315
5375
|
for (; s < i; ) {
|
|
5316
5376
|
const l = Math.floor((s + i) / 2);
|
|
@@ -5318,7 +5378,7 @@ function Ut(e, t, n = 0, r = e.length) {
|
|
|
5318
5378
|
}
|
|
5319
5379
|
return s;
|
|
5320
5380
|
}
|
|
5321
|
-
class
|
|
5381
|
+
class Ke {
|
|
5322
5382
|
constructor(t) {
|
|
5323
5383
|
this._array = t, this._findLastMonotonousLastIdx = 0;
|
|
5324
5384
|
}
|
|
@@ -5327,7 +5387,7 @@ class Je {
|
|
|
5327
5387
|
* For subsequent calls, current predicate must be weaker than (or equal to) the previous predicate, i.e. more entries must be `true`.
|
|
5328
5388
|
*/
|
|
5329
5389
|
findLastMonotonous(t) {
|
|
5330
|
-
if (
|
|
5390
|
+
if (Ke.assertInvariants) {
|
|
5331
5391
|
if (this._prevFindLastPredicate) {
|
|
5332
5392
|
for (const r of this._array)
|
|
5333
5393
|
if (this._prevFindLastPredicate(r) && !t(r))
|
|
@@ -5335,11 +5395,11 @@ class Je {
|
|
|
5335
5395
|
}
|
|
5336
5396
|
this._prevFindLastPredicate = t;
|
|
5337
5397
|
}
|
|
5338
|
-
const n =
|
|
5398
|
+
const n = Xe(this._array, t, this._findLastMonotonousLastIdx);
|
|
5339
5399
|
return this._findLastMonotonousLastIdx = n + 1, n === -1 ? void 0 : this._array[n];
|
|
5340
5400
|
}
|
|
5341
5401
|
}
|
|
5342
|
-
|
|
5402
|
+
Ke.assertInvariants = !1;
|
|
5343
5403
|
class V {
|
|
5344
5404
|
static fromRangeInclusive(t) {
|
|
5345
5405
|
return new V(t.startLineNumber, t.endLineNumber + 1);
|
|
@@ -5350,9 +5410,9 @@ class V {
|
|
|
5350
5410
|
static joinMany(t) {
|
|
5351
5411
|
if (t.length === 0)
|
|
5352
5412
|
return [];
|
|
5353
|
-
let n = new
|
|
5413
|
+
let n = new ue(t[0].slice());
|
|
5354
5414
|
for (let r = 1; r < t.length; r++)
|
|
5355
|
-
n = n.getUnion(new
|
|
5415
|
+
n = n.getUnion(new ue(t[r].slice()));
|
|
5356
5416
|
return n.ranges;
|
|
5357
5417
|
}
|
|
5358
5418
|
static ofLength(t, n) {
|
|
@@ -5366,7 +5426,7 @@ class V {
|
|
|
5366
5426
|
}
|
|
5367
5427
|
constructor(t, n) {
|
|
5368
5428
|
if (t > n)
|
|
5369
|
-
throw new
|
|
5429
|
+
throw new be(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);
|
|
5370
5430
|
this.startLineNumber = t, this.endLineNumberExclusive = n;
|
|
5371
5431
|
}
|
|
5372
5432
|
/**
|
|
@@ -5456,7 +5516,7 @@ class V {
|
|
|
5456
5516
|
return new T(this.startLineNumber - 1, this.endLineNumberExclusive - 1);
|
|
5457
5517
|
}
|
|
5458
5518
|
}
|
|
5459
|
-
class
|
|
5519
|
+
class ue {
|
|
5460
5520
|
constructor(t = []) {
|
|
5461
5521
|
this._normalizedRanges = t;
|
|
5462
5522
|
}
|
|
@@ -5466,7 +5526,7 @@ class oe {
|
|
|
5466
5526
|
addRange(t) {
|
|
5467
5527
|
if (t.length === 0)
|
|
5468
5528
|
return;
|
|
5469
|
-
const n =
|
|
5529
|
+
const n = zt(this._normalizedRanges, (s) => s.endLineNumberExclusive >= t.startLineNumber), r = Xe(this._normalizedRanges, (s) => s.startLineNumber <= t.endLineNumberExclusive) + 1;
|
|
5470
5530
|
if (n === r)
|
|
5471
5531
|
this._normalizedRanges.splice(n, 0, t);
|
|
5472
5532
|
else if (n === r - 1) {
|
|
@@ -5478,11 +5538,11 @@ class oe {
|
|
|
5478
5538
|
}
|
|
5479
5539
|
}
|
|
5480
5540
|
contains(t) {
|
|
5481
|
-
const n =
|
|
5541
|
+
const n = Ie(this._normalizedRanges, (r) => r.startLineNumber <= t);
|
|
5482
5542
|
return !!n && n.endLineNumberExclusive > t;
|
|
5483
5543
|
}
|
|
5484
5544
|
intersects(t) {
|
|
5485
|
-
const n =
|
|
5545
|
+
const n = Ie(this._normalizedRanges, (r) => r.startLineNumber < t.endLineNumberExclusive);
|
|
5486
5546
|
return !!n && n.endLineNumberExclusive > t.startLineNumber;
|
|
5487
5547
|
}
|
|
5488
5548
|
getUnion(t) {
|
|
@@ -5500,22 +5560,22 @@ class oe {
|
|
|
5500
5560
|
} else r < this._normalizedRanges.length ? (l = this._normalizedRanges[r], r++) : (l = t._normalizedRanges[s], s++);
|
|
5501
5561
|
i === null ? i = l : i.endLineNumberExclusive >= l.startLineNumber ? i = new V(i.startLineNumber, Math.max(i.endLineNumberExclusive, l.endLineNumberExclusive)) : (n.push(i), i = l);
|
|
5502
5562
|
}
|
|
5503
|
-
return i !== null && n.push(i), new
|
|
5563
|
+
return i !== null && n.push(i), new ue(n);
|
|
5504
5564
|
}
|
|
5505
5565
|
/**
|
|
5506
5566
|
* Subtracts all ranges in this set from `range` and returns the result.
|
|
5507
5567
|
*/
|
|
5508
5568
|
subtractFrom(t) {
|
|
5509
|
-
const n =
|
|
5569
|
+
const n = zt(this._normalizedRanges, (l) => l.endLineNumberExclusive >= t.startLineNumber), r = Xe(this._normalizedRanges, (l) => l.startLineNumber <= t.endLineNumberExclusive) + 1;
|
|
5510
5570
|
if (n === r)
|
|
5511
|
-
return new
|
|
5571
|
+
return new ue([t]);
|
|
5512
5572
|
const s = [];
|
|
5513
5573
|
let i = t.startLineNumber;
|
|
5514
5574
|
for (let l = n; l < r; l++) {
|
|
5515
5575
|
const o = this._normalizedRanges[l];
|
|
5516
5576
|
o.startLineNumber > i && s.push(new V(i, o.startLineNumber)), i = o.endLineNumberExclusive;
|
|
5517
5577
|
}
|
|
5518
|
-
return i < t.endLineNumberExclusive && s.push(new V(i, t.endLineNumberExclusive)), new
|
|
5578
|
+
return i < t.endLineNumberExclusive && s.push(new V(i, t.endLineNumberExclusive)), new ue(s);
|
|
5519
5579
|
}
|
|
5520
5580
|
toString() {
|
|
5521
5581
|
return this._normalizedRanges.map((t) => t.toString()).join(", ");
|
|
@@ -5527,28 +5587,28 @@ class oe {
|
|
|
5527
5587
|
const i = this._normalizedRanges[r], l = t._normalizedRanges[s], o = i.intersect(l);
|
|
5528
5588
|
o && !o.isEmpty && n.push(o), i.endLineNumberExclusive < l.endLineNumberExclusive ? r++ : s++;
|
|
5529
5589
|
}
|
|
5530
|
-
return new
|
|
5590
|
+
return new ue(n);
|
|
5531
5591
|
}
|
|
5532
5592
|
getWithDelta(t) {
|
|
5533
|
-
return new
|
|
5593
|
+
return new ue(this._normalizedRanges.map((n) => n.delta(t)));
|
|
5534
5594
|
}
|
|
5535
5595
|
}
|
|
5536
|
-
class
|
|
5596
|
+
class oe {
|
|
5537
5597
|
static inverse(t, n, r) {
|
|
5538
5598
|
const s = [];
|
|
5539
5599
|
let i = 1, l = 1;
|
|
5540
5600
|
for (const u of t) {
|
|
5541
|
-
const c = new
|
|
5601
|
+
const c = new oe(new V(i, u.original.startLineNumber), new V(l, u.modified.startLineNumber));
|
|
5542
5602
|
c.modified.isEmpty || s.push(c), i = u.original.endLineNumberExclusive, l = u.modified.endLineNumberExclusive;
|
|
5543
5603
|
}
|
|
5544
|
-
const o = new
|
|
5604
|
+
const o = new oe(new V(i, n + 1), new V(l, r + 1));
|
|
5545
5605
|
return o.modified.isEmpty || s.push(o), s;
|
|
5546
5606
|
}
|
|
5547
5607
|
static clip(t, n, r) {
|
|
5548
5608
|
const s = [];
|
|
5549
5609
|
for (const i of t) {
|
|
5550
5610
|
const l = i.original.intersect(n), o = i.modified.intersect(r);
|
|
5551
|
-
l && !l.isEmpty && o && !o.isEmpty && s.push(new
|
|
5611
|
+
l && !l.isEmpty && o && !o.isEmpty && s.push(new oe(l, o));
|
|
5552
5612
|
}
|
|
5553
5613
|
return s;
|
|
5554
5614
|
}
|
|
@@ -5559,22 +5619,22 @@ class le {
|
|
|
5559
5619
|
return `{${this.original.toString()}->${this.modified.toString()}}`;
|
|
5560
5620
|
}
|
|
5561
5621
|
flip() {
|
|
5562
|
-
return new
|
|
5622
|
+
return new oe(this.modified, this.original);
|
|
5563
5623
|
}
|
|
5564
5624
|
join(t) {
|
|
5565
|
-
return new
|
|
5625
|
+
return new oe(this.original.join(t.original), this.modified.join(t.modified));
|
|
5566
5626
|
}
|
|
5567
5627
|
}
|
|
5568
|
-
class
|
|
5628
|
+
class Ae extends oe {
|
|
5569
5629
|
constructor(t, n, r) {
|
|
5570
5630
|
super(t, n), this.innerChanges = r;
|
|
5571
5631
|
}
|
|
5572
5632
|
flip() {
|
|
5573
5633
|
var t;
|
|
5574
|
-
return new
|
|
5634
|
+
return new Ae(this.modified, this.original, (t = this.innerChanges) === null || t === void 0 ? void 0 : t.map((n) => n.flip()));
|
|
5575
5635
|
}
|
|
5576
5636
|
}
|
|
5577
|
-
class
|
|
5637
|
+
class Ye {
|
|
5578
5638
|
constructor(t, n) {
|
|
5579
5639
|
this.originalRange = t, this.modifiedRange = n;
|
|
5580
5640
|
}
|
|
@@ -5582,14 +5642,14 @@ class Qe {
|
|
|
5582
5642
|
return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`;
|
|
5583
5643
|
}
|
|
5584
5644
|
flip() {
|
|
5585
|
-
return new
|
|
5645
|
+
return new Ye(this.modifiedRange, this.originalRange);
|
|
5586
5646
|
}
|
|
5587
5647
|
}
|
|
5588
|
-
const
|
|
5589
|
-
class
|
|
5648
|
+
const Ii = 3;
|
|
5649
|
+
class Ui {
|
|
5590
5650
|
computeDiff(t, n, r) {
|
|
5591
5651
|
var s;
|
|
5592
|
-
const l = new
|
|
5652
|
+
const l = new zi(t, n, {
|
|
5593
5653
|
maxComputationTime: r.maxComputationTimeMs,
|
|
5594
5654
|
shouldIgnoreTrimWhitespace: r.ignoreTrimWhitespace,
|
|
5595
5655
|
shouldComputeCharChanges: !0,
|
|
@@ -5602,21 +5662,21 @@ class Fi {
|
|
|
5602
5662
|
c.originalEndLineNumber === 0 ? f = new V(c.originalStartLineNumber + 1, c.originalStartLineNumber + 1) : f = new V(c.originalStartLineNumber, c.originalEndLineNumber + 1);
|
|
5603
5663
|
let h;
|
|
5604
5664
|
c.modifiedEndLineNumber === 0 ? h = new V(c.modifiedStartLineNumber + 1, c.modifiedStartLineNumber + 1) : h = new V(c.modifiedStartLineNumber, c.modifiedEndLineNumber + 1);
|
|
5605
|
-
let d = new
|
|
5606
|
-
u && (u.modified.endLineNumberExclusive === d.modified.startLineNumber || u.original.endLineNumberExclusive === d.original.startLineNumber) && (d = new
|
|
5665
|
+
let d = new Ae(f, h, (s = c.charChanges) === null || s === void 0 ? void 0 : s.map((m) => new Ye(new D(m.originalStartLineNumber, m.originalStartColumn, m.originalEndLineNumber, m.originalEndColumn), new D(m.modifiedStartLineNumber, m.modifiedStartColumn, m.modifiedEndLineNumber, m.modifiedEndColumn))));
|
|
5666
|
+
u && (u.modified.endLineNumberExclusive === d.modified.startLineNumber || u.original.endLineNumberExclusive === d.original.startLineNumber) && (d = new Ae(u.original.join(d.original), u.modified.join(d.modified), u.innerChanges && d.innerChanges ? u.innerChanges.concat(d.innerChanges) : void 0), o.pop()), o.push(d), u = d;
|
|
5607
5667
|
}
|
|
5608
|
-
return
|
|
5609
|
-
c.original.endLineNumberExclusive < f.original.startLineNumber && c.modified.endLineNumberExclusive < f.modified.startLineNumber)), new
|
|
5668
|
+
return gt(() => zr(o, (c, f) => f.original.startLineNumber - c.original.endLineNumberExclusive === f.modified.startLineNumber - c.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
|
|
5669
|
+
c.original.endLineNumberExclusive < f.original.startLineNumber && c.modified.endLineNumberExclusive < f.modified.startLineNumber)), new ot(o, [], l.quitEarly);
|
|
5610
5670
|
}
|
|
5611
5671
|
}
|
|
5612
|
-
function
|
|
5613
|
-
return new
|
|
5672
|
+
function $r(e, t, n, r) {
|
|
5673
|
+
return new ge(e, t, n).ComputeDiff(r);
|
|
5614
5674
|
}
|
|
5615
|
-
let
|
|
5675
|
+
let dr = class {
|
|
5616
5676
|
constructor(t) {
|
|
5617
5677
|
const n = [], r = [];
|
|
5618
5678
|
for (let s = 0, i = t.length; s < i; s++)
|
|
5619
|
-
n[s] =
|
|
5679
|
+
n[s] = $t(t[s], 1), r[s] = Ot(t[s], 1);
|
|
5620
5680
|
this.lines = t, this._startColumns = n, this._endColumns = r;
|
|
5621
5681
|
}
|
|
5622
5682
|
getElements() {
|
|
@@ -5643,10 +5703,10 @@ let or = class {
|
|
|
5643
5703
|
s[o] = c.charCodeAt(d - 1), i[o] = u + 1, l[o] = d, o++;
|
|
5644
5704
|
!t && u < r && (s[o] = 10, i[o] = u + 1, l[o] = c.length + 1, o++);
|
|
5645
5705
|
}
|
|
5646
|
-
return new
|
|
5706
|
+
return new Hi(s, i, l);
|
|
5647
5707
|
}
|
|
5648
5708
|
};
|
|
5649
|
-
class
|
|
5709
|
+
class Hi {
|
|
5650
5710
|
constructor(t, n, r) {
|
|
5651
5711
|
this._charCodes = t, this._lineNumbers = n, this._columns = r;
|
|
5652
5712
|
}
|
|
@@ -5673,27 +5733,27 @@ class Di {
|
|
|
5673
5733
|
return t === -1 ? this.getStartColumn(t + 1) : (this._assertIndex(t, this._columns), this._charCodes[t] === 10 ? 1 : this._columns[t] + 1);
|
|
5674
5734
|
}
|
|
5675
5735
|
}
|
|
5676
|
-
class
|
|
5736
|
+
class Te {
|
|
5677
5737
|
constructor(t, n, r, s, i, l, o, u) {
|
|
5678
5738
|
this.originalStartLineNumber = t, this.originalStartColumn = n, this.originalEndLineNumber = r, this.originalEndColumn = s, this.modifiedStartLineNumber = i, this.modifiedStartColumn = l, this.modifiedEndLineNumber = o, this.modifiedEndColumn = u;
|
|
5679
5739
|
}
|
|
5680
5740
|
static createFromDiffChange(t, n, r) {
|
|
5681
5741
|
const s = n.getStartLineNumber(t.originalStart), i = n.getStartColumn(t.originalStart), l = n.getEndLineNumber(t.originalStart + t.originalLength - 1), o = n.getEndColumn(t.originalStart + t.originalLength - 1), u = r.getStartLineNumber(t.modifiedStart), c = r.getStartColumn(t.modifiedStart), f = r.getEndLineNumber(t.modifiedStart + t.modifiedLength - 1), h = r.getEndColumn(t.modifiedStart + t.modifiedLength - 1);
|
|
5682
|
-
return new
|
|
5742
|
+
return new Te(s, i, l, o, u, c, f, h);
|
|
5683
5743
|
}
|
|
5684
5744
|
}
|
|
5685
|
-
function
|
|
5745
|
+
function Wi(e) {
|
|
5686
5746
|
if (e.length <= 1)
|
|
5687
5747
|
return e;
|
|
5688
5748
|
const t = [e[0]];
|
|
5689
5749
|
let n = t[0];
|
|
5690
5750
|
for (let r = 1, s = e.length; r < s; r++) {
|
|
5691
5751
|
const i = e[r], l = i.originalStart - (n.originalStart + n.originalLength), o = i.modifiedStart - (n.modifiedStart + n.modifiedLength);
|
|
5692
|
-
Math.min(l, o) <
|
|
5752
|
+
Math.min(l, o) < Ii ? (n.originalLength = i.originalStart + i.originalLength - n.originalStart, n.modifiedLength = i.modifiedStart + i.modifiedLength - n.modifiedStart) : (t.push(i), n = i);
|
|
5693
5753
|
}
|
|
5694
5754
|
return t;
|
|
5695
5755
|
}
|
|
5696
|
-
class
|
|
5756
|
+
class Ge {
|
|
5697
5757
|
constructor(t, n, r, s, i) {
|
|
5698
5758
|
this.originalStartLineNumber = t, this.originalEndLineNumber = n, this.modifiedStartLineNumber = r, this.modifiedEndLineNumber = s, this.charChanges = i;
|
|
5699
5759
|
}
|
|
@@ -5702,18 +5762,18 @@ class $e {
|
|
|
5702
5762
|
if (n.originalLength === 0 ? (u = r.getStartLineNumber(n.originalStart) - 1, c = 0) : (u = r.getStartLineNumber(n.originalStart), c = r.getEndLineNumber(n.originalStart + n.originalLength - 1)), n.modifiedLength === 0 ? (f = s.getStartLineNumber(n.modifiedStart) - 1, h = 0) : (f = s.getStartLineNumber(n.modifiedStart), h = s.getEndLineNumber(n.modifiedStart + n.modifiedLength - 1)), l && n.originalLength > 0 && n.originalLength < 20 && n.modifiedLength > 0 && n.modifiedLength < 20 && i()) {
|
|
5703
5763
|
const m = r.createCharSequence(t, n.originalStart, n.originalStart + n.originalLength - 1), g = s.createCharSequence(t, n.modifiedStart, n.modifiedStart + n.modifiedLength - 1);
|
|
5704
5764
|
if (m.getElements().length > 0 && g.getElements().length > 0) {
|
|
5705
|
-
let _ =
|
|
5706
|
-
o && (_ =
|
|
5765
|
+
let _ = $r(m, g, i, !0).changes;
|
|
5766
|
+
o && (_ = Wi(_)), d = [];
|
|
5707
5767
|
for (let v = 0, N = _.length; v < N; v++)
|
|
5708
|
-
d.push(
|
|
5768
|
+
d.push(Te.createFromDiffChange(_[v], m, g));
|
|
5709
5769
|
}
|
|
5710
5770
|
}
|
|
5711
|
-
return new
|
|
5771
|
+
return new Ge(u, c, f, h, d);
|
|
5712
5772
|
}
|
|
5713
5773
|
}
|
|
5714
|
-
class
|
|
5774
|
+
class zi {
|
|
5715
5775
|
constructor(t, n, r) {
|
|
5716
|
-
this.shouldComputeCharChanges = r.shouldComputeCharChanges, this.shouldPostProcessCharChanges = r.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = r.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = r.shouldMakePrettyDiff, this.originalLines = t, this.modifiedLines = n, this.original = new
|
|
5776
|
+
this.shouldComputeCharChanges = r.shouldComputeCharChanges, this.shouldPostProcessCharChanges = r.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = r.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = r.shouldMakePrettyDiff, this.originalLines = t, this.modifiedLines = n, this.original = new dr(t), this.modified = new dr(n), this.continueLineDiff = mr(r.maxComputationTime), this.continueCharDiff = mr(r.maxComputationTime === 0 ? 0 : Math.min(r.maxComputationTime, 5e3));
|
|
5717
5777
|
}
|
|
5718
5778
|
computeDiff() {
|
|
5719
5779
|
if (this.original.lines.length === 1 && this.original.lines[0].length === 0)
|
|
@@ -5741,11 +5801,11 @@ class Vi {
|
|
|
5741
5801
|
charChanges: void 0
|
|
5742
5802
|
}]
|
|
5743
5803
|
};
|
|
5744
|
-
const t =
|
|
5804
|
+
const t = $r(this.original, this.modified, this.continueLineDiff, this.shouldMakePrettyDiff), n = t.changes, r = t.quitEarly;
|
|
5745
5805
|
if (this.shouldIgnoreTrimWhitespace) {
|
|
5746
5806
|
const o = [];
|
|
5747
5807
|
for (let u = 0, c = n.length; u < c; u++)
|
|
5748
|
-
o.push(
|
|
5808
|
+
o.push(Ge.createFromDiffResult(this.shouldIgnoreTrimWhitespace, n[u], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));
|
|
5749
5809
|
return {
|
|
5750
5810
|
quitEarly: r,
|
|
5751
5811
|
changes: o
|
|
@@ -5759,7 +5819,7 @@ class Vi {
|
|
|
5759
5819
|
const d = this.originalLines[i], m = this.modifiedLines[l];
|
|
5760
5820
|
if (d !== m) {
|
|
5761
5821
|
{
|
|
5762
|
-
let g =
|
|
5822
|
+
let g = $t(d, 1), _ = $t(m, 1);
|
|
5763
5823
|
for (; g > 1 && _ > 1; ) {
|
|
5764
5824
|
const v = d.charCodeAt(g - 2), N = m.charCodeAt(_ - 2);
|
|
5765
5825
|
if (v !== N)
|
|
@@ -5769,7 +5829,7 @@ class Vi {
|
|
|
5769
5829
|
(g > 1 || _ > 1) && this._pushTrimWhitespaceCharChange(s, i + 1, 1, g, l + 1, 1, _);
|
|
5770
5830
|
}
|
|
5771
5831
|
{
|
|
5772
|
-
let g =
|
|
5832
|
+
let g = Ot(d, 1), _ = Ot(m, 1);
|
|
5773
5833
|
const v = d.length + 1, N = m.length + 1;
|
|
5774
5834
|
for (; g < v && _ < N; ) {
|
|
5775
5835
|
const S = d.charCodeAt(g - 1), x = d.charCodeAt(_ - 1);
|
|
@@ -5782,7 +5842,7 @@ class Vi {
|
|
|
5782
5842
|
}
|
|
5783
5843
|
i++, l++;
|
|
5784
5844
|
}
|
|
5785
|
-
c && (s.push(
|
|
5845
|
+
c && (s.push(Ge.createFromDiffResult(this.shouldIgnoreTrimWhitespace, c, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), i += c.originalLength, l += c.modifiedLength);
|
|
5786
5846
|
}
|
|
5787
5847
|
return {
|
|
5788
5848
|
quitEarly: r,
|
|
@@ -5793,36 +5853,36 @@ class Vi {
|
|
|
5793
5853
|
if (this._mergeTrimWhitespaceCharChange(t, n, r, s, i, l, o))
|
|
5794
5854
|
return;
|
|
5795
5855
|
let u;
|
|
5796
|
-
this.shouldComputeCharChanges && (u = [new
|
|
5856
|
+
this.shouldComputeCharChanges && (u = [new Te(n, r, n, s, i, l, i, o)]), t.push(new Ge(n, n, i, i, u));
|
|
5797
5857
|
}
|
|
5798
5858
|
_mergeTrimWhitespaceCharChange(t, n, r, s, i, l, o) {
|
|
5799
5859
|
const u = t.length;
|
|
5800
5860
|
if (u === 0)
|
|
5801
5861
|
return !1;
|
|
5802
5862
|
const c = t[u - 1];
|
|
5803
|
-
return c.originalEndLineNumber === 0 || c.modifiedEndLineNumber === 0 ? !1 : c.originalEndLineNumber === n && c.modifiedEndLineNumber === i ? (this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new
|
|
5863
|
+
return c.originalEndLineNumber === 0 || c.modifiedEndLineNumber === 0 ? !1 : c.originalEndLineNumber === n && c.modifiedEndLineNumber === i ? (this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new Te(n, r, n, s, i, l, i, o)), !0) : c.originalEndLineNumber + 1 === n && c.modifiedEndLineNumber + 1 === i ? (c.originalEndLineNumber = n, c.modifiedEndLineNumber = i, this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new Te(n, r, n, s, i, l, i, o)), !0) : !1;
|
|
5804
5864
|
}
|
|
5805
5865
|
}
|
|
5806
|
-
function
|
|
5807
|
-
const n =
|
|
5866
|
+
function $t(e, t) {
|
|
5867
|
+
const n = Ss(e);
|
|
5808
5868
|
return n === -1 ? t : n + 1;
|
|
5809
5869
|
}
|
|
5810
|
-
function
|
|
5811
|
-
const n =
|
|
5870
|
+
function Ot(e, t) {
|
|
5871
|
+
const n = Cs(e);
|
|
5812
5872
|
return n === -1 ? t : n + 2;
|
|
5813
5873
|
}
|
|
5814
|
-
function
|
|
5874
|
+
function mr(e) {
|
|
5815
5875
|
if (e === 0)
|
|
5816
5876
|
return () => !0;
|
|
5817
5877
|
const t = Date.now();
|
|
5818
5878
|
return () => Date.now() - t < e;
|
|
5819
5879
|
}
|
|
5820
|
-
class
|
|
5880
|
+
class he {
|
|
5821
5881
|
static trivial(t, n) {
|
|
5822
|
-
return new
|
|
5882
|
+
return new he([new z(T.ofLength(t.length), T.ofLength(n.length))], !1);
|
|
5823
5883
|
}
|
|
5824
5884
|
static trivialTimedOut(t, n) {
|
|
5825
|
-
return new
|
|
5885
|
+
return new he([new z(T.ofLength(t.length), T.ofLength(n.length))], !0);
|
|
5826
5886
|
}
|
|
5827
5887
|
constructor(t, n) {
|
|
5828
5888
|
this.diffs = t, this.hitTimeout = n;
|
|
@@ -5831,8 +5891,8 @@ class ce {
|
|
|
5831
5891
|
class z {
|
|
5832
5892
|
static invert(t, n) {
|
|
5833
5893
|
const r = [];
|
|
5834
|
-
return
|
|
5835
|
-
r.push(z.fromOffsetPairs(s ? s.getEndExclusives() :
|
|
5894
|
+
return ai(t, (s, i) => {
|
|
5895
|
+
r.push(z.fromOffsetPairs(s ? s.getEndExclusives() : re.zero, i ? i.getStarts() : new re(n, (s ? s.seq2Range.endExclusive - s.seq1Range.endExclusive : 0) + n)));
|
|
5836
5896
|
}), r;
|
|
5837
5897
|
}
|
|
5838
5898
|
static fromOffsetPairs(t, n) {
|
|
@@ -5865,13 +5925,13 @@ class z {
|
|
|
5865
5925
|
return new z(n, r);
|
|
5866
5926
|
}
|
|
5867
5927
|
getStarts() {
|
|
5868
|
-
return new
|
|
5928
|
+
return new re(this.seq1Range.start, this.seq2Range.start);
|
|
5869
5929
|
}
|
|
5870
5930
|
getEndExclusives() {
|
|
5871
|
-
return new
|
|
5931
|
+
return new re(this.seq1Range.endExclusive, this.seq2Range.endExclusive);
|
|
5872
5932
|
}
|
|
5873
5933
|
}
|
|
5874
|
-
class
|
|
5934
|
+
class re {
|
|
5875
5935
|
constructor(t, n) {
|
|
5876
5936
|
this.offset1 = t, this.offset2 = n;
|
|
5877
5937
|
}
|
|
@@ -5879,24 +5939,24 @@ class ne {
|
|
|
5879
5939
|
return `${this.offset1} <-> ${this.offset2}`;
|
|
5880
5940
|
}
|
|
5881
5941
|
delta(t) {
|
|
5882
|
-
return t === 0 ? this : new
|
|
5942
|
+
return t === 0 ? this : new re(this.offset1 + t, this.offset2 + t);
|
|
5883
5943
|
}
|
|
5884
5944
|
equals(t) {
|
|
5885
5945
|
return this.offset1 === t.offset1 && this.offset2 === t.offset2;
|
|
5886
5946
|
}
|
|
5887
5947
|
}
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
class
|
|
5948
|
+
re.zero = new re(0, 0);
|
|
5949
|
+
re.max = new re(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER);
|
|
5950
|
+
class Je {
|
|
5891
5951
|
isValid() {
|
|
5892
5952
|
return !0;
|
|
5893
5953
|
}
|
|
5894
5954
|
}
|
|
5895
|
-
|
|
5896
|
-
class
|
|
5955
|
+
Je.instance = new Je();
|
|
5956
|
+
class $i {
|
|
5897
5957
|
constructor(t) {
|
|
5898
5958
|
if (this.timeout = t, this.startTime = Date.now(), this.valid = !0, t <= 0)
|
|
5899
|
-
throw new
|
|
5959
|
+
throw new be("timeout must be positive");
|
|
5900
5960
|
}
|
|
5901
5961
|
// Recommendation: Set a log-point `{this.disable()}` in the body
|
|
5902
5962
|
isValid() {
|
|
@@ -5907,7 +5967,7 @@ class Bi {
|
|
|
5907
5967
|
return this.valid;
|
|
5908
5968
|
}
|
|
5909
5969
|
}
|
|
5910
|
-
class
|
|
5970
|
+
class Ct {
|
|
5911
5971
|
constructor(t, n) {
|
|
5912
5972
|
this.width = t, this.height = n, this.array = [], this.array = new Array(t * n);
|
|
5913
5973
|
}
|
|
@@ -5918,10 +5978,10 @@ class Lt {
|
|
|
5918
5978
|
this.array[t + n * this.width] = r;
|
|
5919
5979
|
}
|
|
5920
5980
|
}
|
|
5921
|
-
function
|
|
5981
|
+
function Gt(e) {
|
|
5922
5982
|
return e === 32 || e === 9;
|
|
5923
5983
|
}
|
|
5924
|
-
class
|
|
5984
|
+
class Ue {
|
|
5925
5985
|
static getKey(t) {
|
|
5926
5986
|
let n = this.chrKeys.get(t);
|
|
5927
5987
|
return n === void 0 && (n = this.chrKeys.size, this.chrKeys.set(t, n)), n;
|
|
@@ -5933,11 +5993,11 @@ class Ie {
|
|
|
5933
5993
|
const l = n[i];
|
|
5934
5994
|
for (let u = 0; u < l.length; u++) {
|
|
5935
5995
|
s++;
|
|
5936
|
-
const c = l[u], f =
|
|
5996
|
+
const c = l[u], f = Ue.getKey(c);
|
|
5937
5997
|
this.histogram[f] = (this.histogram[f] || 0) + 1;
|
|
5938
5998
|
}
|
|
5939
5999
|
s++;
|
|
5940
|
-
const o =
|
|
6000
|
+
const o = Ue.getKey(`
|
|
5941
6001
|
`);
|
|
5942
6002
|
this.histogram[o] = (this.histogram[o] || 0) + 1;
|
|
5943
6003
|
}
|
|
@@ -5952,16 +6012,16 @@ class Ie {
|
|
|
5952
6012
|
return 1 - s / (this.totalCount + t.totalCount);
|
|
5953
6013
|
}
|
|
5954
6014
|
}
|
|
5955
|
-
|
|
5956
|
-
class
|
|
5957
|
-
compute(t, n, r =
|
|
6015
|
+
Ue.chrKeys = /* @__PURE__ */ new Map();
|
|
6016
|
+
class Oi {
|
|
6017
|
+
compute(t, n, r = Je.instance, s) {
|
|
5958
6018
|
if (t.length === 0 || n.length === 0)
|
|
5959
|
-
return
|
|
5960
|
-
const i = new
|
|
6019
|
+
return he.trivial(t, n);
|
|
6020
|
+
const i = new Ct(t.length, n.length), l = new Ct(t.length, n.length), o = new Ct(t.length, n.length);
|
|
5961
6021
|
for (let g = 0; g < t.length; g++)
|
|
5962
6022
|
for (let _ = 0; _ < n.length; _++) {
|
|
5963
6023
|
if (!r.isValid())
|
|
5964
|
-
return
|
|
6024
|
+
return he.trivialTimedOut(t, n);
|
|
5965
6025
|
const v = g === 0 ? 0 : i.get(g - 1, _), N = _ === 0 ? 0 : i.get(g, _ - 1);
|
|
5966
6026
|
let S;
|
|
5967
6027
|
t.getElement(g) === n.getElement(_) ? (g === 0 || _ === 0 ? S = 0 : S = i.get(g - 1, _ - 1), g > 0 && _ > 0 && l.get(g - 1, _ - 1) === 3 && (S += o.get(g - 1, _ - 1)), S += s ? s(g, _) : 1) : S = -1;
|
|
@@ -5980,13 +6040,13 @@ class qi {
|
|
|
5980
6040
|
let d = t.length - 1, m = n.length - 1;
|
|
5981
6041
|
for (; d >= 0 && m >= 0; )
|
|
5982
6042
|
l.get(d, m) === 3 ? (h(d, m), d--, m--) : l.get(d, m) === 1 ? d-- : m--;
|
|
5983
|
-
return h(-1, -1), u.reverse(), new
|
|
6043
|
+
return h(-1, -1), u.reverse(), new he(u, !1);
|
|
5984
6044
|
}
|
|
5985
6045
|
}
|
|
5986
|
-
class
|
|
5987
|
-
compute(t, n, r =
|
|
6046
|
+
class Or {
|
|
6047
|
+
compute(t, n, r = Je.instance) {
|
|
5988
6048
|
if (t.length === 0 || n.length === 0)
|
|
5989
|
-
return
|
|
6049
|
+
return he.trivial(t, n);
|
|
5990
6050
|
const s = t, i = n;
|
|
5991
6051
|
function l(_, v) {
|
|
5992
6052
|
for (; _ < s.length && v < i.length && s.getElement(_) === i.getElement(v); )
|
|
@@ -5994,14 +6054,14 @@ class Ur {
|
|
|
5994
6054
|
return _;
|
|
5995
6055
|
}
|
|
5996
6056
|
let o = 0;
|
|
5997
|
-
const u = new
|
|
6057
|
+
const u = new Gi();
|
|
5998
6058
|
u.set(0, l(0, 0));
|
|
5999
|
-
const c = new
|
|
6000
|
-
c.set(0, u.get(0) === 0 ? null : new
|
|
6059
|
+
const c = new ji();
|
|
6060
|
+
c.set(0, u.get(0) === 0 ? null : new gr(null, 0, 0, u.get(0)));
|
|
6001
6061
|
let f = 0;
|
|
6002
6062
|
e: for (; ; ) {
|
|
6003
6063
|
if (o++, !r.isValid())
|
|
6004
|
-
return
|
|
6064
|
+
return he.trivialTimedOut(s, i);
|
|
6005
6065
|
const _ = -Math.min(o, i.length + o % 2), v = Math.min(o, s.length + o % 2);
|
|
6006
6066
|
for (f = _; f <= v; f += 2) {
|
|
6007
6067
|
const N = f === v ? -1 : u.get(f + 1), S = f === _ ? -1 : u.get(f - 1) + 1, x = Math.min(Math.max(N, S), s.length), L = x - f;
|
|
@@ -6010,7 +6070,7 @@ class Ur {
|
|
|
6010
6070
|
const p = l(x, L);
|
|
6011
6071
|
u.set(f, p);
|
|
6012
6072
|
const R = x === N ? c.get(f + 1) : c.get(f - 1);
|
|
6013
|
-
if (c.set(f, p !== x ? new
|
|
6073
|
+
if (c.set(f, p !== x ? new gr(R, x, L, p - x) : R), u.get(f) === s.length && u.get(f) - f === i.length)
|
|
6014
6074
|
break e;
|
|
6015
6075
|
}
|
|
6016
6076
|
}
|
|
@@ -6023,15 +6083,15 @@ class Ur {
|
|
|
6023
6083
|
break;
|
|
6024
6084
|
m = h.x, g = h.y, h = h.prev;
|
|
6025
6085
|
}
|
|
6026
|
-
return d.reverse(), new
|
|
6086
|
+
return d.reverse(), new he(d, !1);
|
|
6027
6087
|
}
|
|
6028
6088
|
}
|
|
6029
|
-
class
|
|
6089
|
+
class gr {
|
|
6030
6090
|
constructor(t, n, r, s) {
|
|
6031
6091
|
this.prev = t, this.x = n, this.y = r, this.length = s;
|
|
6032
6092
|
}
|
|
6033
6093
|
}
|
|
6034
|
-
class
|
|
6094
|
+
class Gi {
|
|
6035
6095
|
constructor() {
|
|
6036
6096
|
this.positiveArr = new Int32Array(10), this.negativeArr = new Int32Array(10);
|
|
6037
6097
|
}
|
|
@@ -6054,7 +6114,7 @@ class Ii {
|
|
|
6054
6114
|
}
|
|
6055
6115
|
}
|
|
6056
6116
|
}
|
|
6057
|
-
class
|
|
6117
|
+
class ji {
|
|
6058
6118
|
constructor() {
|
|
6059
6119
|
this.positiveArr = [], this.negativeArr = [];
|
|
6060
6120
|
}
|
|
@@ -6065,7 +6125,7 @@ class Ui {
|
|
|
6065
6125
|
t < 0 ? (t = -t - 1, this.negativeArr[t] = n) : this.positiveArr[t] = n;
|
|
6066
6126
|
}
|
|
6067
6127
|
}
|
|
6068
|
-
class
|
|
6128
|
+
class Qi {
|
|
6069
6129
|
constructor() {
|
|
6070
6130
|
this.map = /* @__PURE__ */ new Map();
|
|
6071
6131
|
}
|
|
@@ -6086,7 +6146,7 @@ class Hi {
|
|
|
6086
6146
|
return n || /* @__PURE__ */ new Set();
|
|
6087
6147
|
}
|
|
6088
6148
|
}
|
|
6089
|
-
class
|
|
6149
|
+
class bt {
|
|
6090
6150
|
constructor(t, n, r) {
|
|
6091
6151
|
this.lines = t, this.considerWhitespaceChanges = r, this.elements = [], this.firstCharOffsetByLine = [], this.additionalOffsetByLine = [];
|
|
6092
6152
|
let s = !1;
|
|
@@ -6122,18 +6182,18 @@ class mt {
|
|
|
6122
6182
|
return this.elements.length;
|
|
6123
6183
|
}
|
|
6124
6184
|
getBoundaryScore(t) {
|
|
6125
|
-
const n =
|
|
6185
|
+
const n = xr(t > 0 ? this.elements[t - 1] : -1), r = xr(t < this.elements.length ? this.elements[t] : -1);
|
|
6126
6186
|
if (n === 7 && r === 8)
|
|
6127
6187
|
return 0;
|
|
6128
6188
|
if (n === 8)
|
|
6129
6189
|
return 150;
|
|
6130
6190
|
let s = 0;
|
|
6131
|
-
return n !== r && (s += 10, n === 0 && r === 1 && (s += 1)), s +=
|
|
6191
|
+
return n !== r && (s += 10, n === 0 && r === 1 && (s += 1)), s += br(n), s += br(r), s;
|
|
6132
6192
|
}
|
|
6133
6193
|
translateOffset(t) {
|
|
6134
6194
|
if (this.lineRange.isEmpty)
|
|
6135
6195
|
return new Y(this.lineRange.start + 1, 1);
|
|
6136
|
-
const n =
|
|
6196
|
+
const n = Xe(this.firstCharOffsetByLine, (r) => r <= t);
|
|
6137
6197
|
return new Y(this.lineRange.start + n + 1, t - this.firstCharOffsetByLine[n] + this.additionalOffsetByLine[n] + 1);
|
|
6138
6198
|
}
|
|
6139
6199
|
translateRange(t) {
|
|
@@ -6143,13 +6203,13 @@ class mt {
|
|
|
6143
6203
|
* Finds the word that contains the character at the given offset
|
|
6144
6204
|
*/
|
|
6145
6205
|
findWordContaining(t) {
|
|
6146
|
-
if (t < 0 || t >= this.elements.length || !
|
|
6206
|
+
if (t < 0 || t >= this.elements.length || !At(this.elements[t]))
|
|
6147
6207
|
return;
|
|
6148
6208
|
let n = t;
|
|
6149
|
-
for (; n > 0 &&
|
|
6209
|
+
for (; n > 0 && At(this.elements[n - 1]); )
|
|
6150
6210
|
n--;
|
|
6151
6211
|
let r = t;
|
|
6152
|
-
for (; r < this.elements.length &&
|
|
6212
|
+
for (; r < this.elements.length && At(this.elements[r]); )
|
|
6153
6213
|
r++;
|
|
6154
6214
|
return new T(n, r);
|
|
6155
6215
|
}
|
|
@@ -6161,14 +6221,14 @@ class mt {
|
|
|
6161
6221
|
}
|
|
6162
6222
|
extendToFullLines(t) {
|
|
6163
6223
|
var n, r;
|
|
6164
|
-
const s = (n =
|
|
6224
|
+
const s = (n = Ie(this.firstCharOffsetByLine, (l) => l <= t.start)) !== null && n !== void 0 ? n : 0, i = (r = qi(this.firstCharOffsetByLine, (l) => t.endExclusive <= l)) !== null && r !== void 0 ? r : this.elements.length;
|
|
6165
6225
|
return new T(s, i);
|
|
6166
6226
|
}
|
|
6167
6227
|
}
|
|
6168
|
-
function
|
|
6228
|
+
function At(e) {
|
|
6169
6229
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90 || e >= 48 && e <= 57;
|
|
6170
6230
|
}
|
|
6171
|
-
const
|
|
6231
|
+
const Xi = {
|
|
6172
6232
|
0: 0,
|
|
6173
6233
|
1: 0,
|
|
6174
6234
|
2: 0,
|
|
@@ -6179,51 +6239,51 @@ const Wi = {
|
|
|
6179
6239
|
7: 10,
|
|
6180
6240
|
8: 10
|
|
6181
6241
|
};
|
|
6182
|
-
function
|
|
6183
|
-
return
|
|
6242
|
+
function br(e) {
|
|
6243
|
+
return Xi[e];
|
|
6184
6244
|
}
|
|
6185
|
-
function
|
|
6186
|
-
return e === 10 ? 8 : e === 13 ? 7 :
|
|
6245
|
+
function xr(e) {
|
|
6246
|
+
return e === 10 ? 8 : e === 13 ? 7 : Gt(e) ? 6 : e >= 97 && e <= 122 ? 0 : e >= 65 && e <= 90 ? 1 : e >= 48 && e <= 57 ? 2 : e === -1 ? 3 : e === 44 || e === 59 ? 5 : 4;
|
|
6187
6247
|
}
|
|
6188
|
-
function
|
|
6189
|
-
let { moves: l, excludedChanges: o } =
|
|
6248
|
+
function Yi(e, t, n, r, s, i) {
|
|
6249
|
+
let { moves: l, excludedChanges: o } = Zi(e, t, n, i);
|
|
6190
6250
|
if (!i.isValid())
|
|
6191
6251
|
return [];
|
|
6192
|
-
const u = e.filter((f) => !o.has(f)), c =
|
|
6193
|
-
return
|
|
6252
|
+
const u = e.filter((f) => !o.has(f)), c = Ki(u, r, s, t, n, i);
|
|
6253
|
+
return oi(l, c), l = e1(l), l = l.filter((f) => {
|
|
6194
6254
|
const h = f.original.toOffsetRange().slice(t).map((m) => m.trim());
|
|
6195
6255
|
return h.join(`
|
|
6196
|
-
`).length >= 15 &&
|
|
6197
|
-
}), l =
|
|
6256
|
+
`).length >= 15 && Ji(h, (m) => m.length >= 2) >= 2;
|
|
6257
|
+
}), l = t1(e, l), l;
|
|
6198
6258
|
}
|
|
6199
|
-
function
|
|
6259
|
+
function Ji(e, t) {
|
|
6200
6260
|
let n = 0;
|
|
6201
6261
|
for (const r of e)
|
|
6202
6262
|
t(r) && n++;
|
|
6203
6263
|
return n;
|
|
6204
6264
|
}
|
|
6205
|
-
function
|
|
6206
|
-
const s = [], i = e.filter((u) => u.modified.isEmpty && u.original.length >= 3).map((u) => new
|
|
6265
|
+
function Zi(e, t, n, r) {
|
|
6266
|
+
const s = [], i = e.filter((u) => u.modified.isEmpty && u.original.length >= 3).map((u) => new Ue(u.original, t, u)), l = new Set(e.filter((u) => u.original.isEmpty && u.modified.length >= 3).map((u) => new Ue(u.modified, n, u))), o = /* @__PURE__ */ new Set();
|
|
6207
6267
|
for (const u of i) {
|
|
6208
6268
|
let c = -1, f;
|
|
6209
6269
|
for (const h of l) {
|
|
6210
6270
|
const d = u.computeSimilarity(h);
|
|
6211
6271
|
d > c && (c = d, f = h);
|
|
6212
6272
|
}
|
|
6213
|
-
if (c > 0.9 && f && (l.delete(f), s.push(new
|
|
6273
|
+
if (c > 0.9 && f && (l.delete(f), s.push(new oe(u.range, f.range)), o.add(u.source), o.add(f.source)), !r.isValid())
|
|
6214
6274
|
return { moves: s, excludedChanges: o };
|
|
6215
6275
|
}
|
|
6216
6276
|
return { moves: s, excludedChanges: o };
|
|
6217
6277
|
}
|
|
6218
|
-
function
|
|
6219
|
-
const l = [], o = new
|
|
6278
|
+
function Ki(e, t, n, r, s, i) {
|
|
6279
|
+
const l = [], o = new Qi();
|
|
6220
6280
|
for (const d of e)
|
|
6221
6281
|
for (let m = d.original.startLineNumber; m < d.original.endLineNumberExclusive - 2; m++) {
|
|
6222
6282
|
const g = `${t[m - 1]}:${t[m + 1 - 1]}:${t[m + 2 - 1]}`;
|
|
6223
6283
|
o.add(g, { range: new V(m, m + 3) });
|
|
6224
6284
|
}
|
|
6225
6285
|
const u = [];
|
|
6226
|
-
e.sort(
|
|
6286
|
+
e.sort(st((d) => d.modified.startLineNumber, it));
|
|
6227
6287
|
for (const d of e) {
|
|
6228
6288
|
let m = [];
|
|
6229
6289
|
for (let g = d.modified.startLineNumber; g < d.modified.endLineNumberExclusive - 2; g++) {
|
|
@@ -6244,63 +6304,63 @@ function Gi(e, t, n, r, s, i) {
|
|
|
6244
6304
|
if (!i.isValid())
|
|
6245
6305
|
return [];
|
|
6246
6306
|
}
|
|
6247
|
-
u.sort(
|
|
6248
|
-
const c = new
|
|
6307
|
+
u.sort(ui(st((d) => d.modifiedLineRange.length, it)));
|
|
6308
|
+
const c = new ue(), f = new ue();
|
|
6249
6309
|
for (const d of u) {
|
|
6250
6310
|
const m = d.modifiedLineRange.startLineNumber - d.originalLineRange.startLineNumber, g = c.subtractFrom(d.modifiedLineRange), _ = f.subtractFrom(d.originalLineRange).getWithDelta(m), v = g.getIntersection(_);
|
|
6251
6311
|
for (const N of v.ranges) {
|
|
6252
6312
|
if (N.length < 3)
|
|
6253
6313
|
continue;
|
|
6254
6314
|
const S = N, x = N.delta(-m);
|
|
6255
|
-
l.push(new
|
|
6315
|
+
l.push(new oe(x, S)), c.addRange(S), f.addRange(x);
|
|
6256
6316
|
}
|
|
6257
6317
|
}
|
|
6258
|
-
l.sort(
|
|
6259
|
-
const h = new
|
|
6318
|
+
l.sort(st((d) => d.original.startLineNumber, it));
|
|
6319
|
+
const h = new Ke(e);
|
|
6260
6320
|
for (let d = 0; d < l.length; d++) {
|
|
6261
|
-
const m = l[d], g = h.findLastMonotonous((R) => R.original.startLineNumber <= m.original.startLineNumber), _ =
|
|
6321
|
+
const m = l[d], g = h.findLastMonotonous((R) => R.original.startLineNumber <= m.original.startLineNumber), _ = Ie(e, (R) => R.modified.startLineNumber <= m.modified.startLineNumber), v = Math.max(m.original.startLineNumber - g.original.startLineNumber, m.modified.startLineNumber - _.modified.startLineNumber), N = h.findLastMonotonous((R) => R.original.startLineNumber < m.original.endLineNumberExclusive), S = Ie(e, (R) => R.modified.startLineNumber < m.modified.endLineNumberExclusive), x = Math.max(N.original.endLineNumberExclusive - m.original.endLineNumberExclusive, S.modified.endLineNumberExclusive - m.modified.endLineNumberExclusive);
|
|
6262
6322
|
let L;
|
|
6263
6323
|
for (L = 0; L < v; L++) {
|
|
6264
6324
|
const R = m.original.startLineNumber - L - 1, y = m.modified.startLineNumber - L - 1;
|
|
6265
|
-
if (R > r.length || y > s.length || c.contains(y) || f.contains(R) || !
|
|
6325
|
+
if (R > r.length || y > s.length || c.contains(y) || f.contains(R) || !_r(r[R - 1], s[y - 1], i))
|
|
6266
6326
|
break;
|
|
6267
6327
|
}
|
|
6268
6328
|
L > 0 && (f.addRange(new V(m.original.startLineNumber - L, m.original.startLineNumber)), c.addRange(new V(m.modified.startLineNumber - L, m.modified.startLineNumber)));
|
|
6269
6329
|
let p;
|
|
6270
6330
|
for (p = 0; p < x; p++) {
|
|
6271
6331
|
const R = m.original.endLineNumberExclusive + p, y = m.modified.endLineNumberExclusive + p;
|
|
6272
|
-
if (R > r.length || y > s.length || c.contains(y) || f.contains(R) || !
|
|
6332
|
+
if (R > r.length || y > s.length || c.contains(y) || f.contains(R) || !_r(r[R - 1], s[y - 1], i))
|
|
6273
6333
|
break;
|
|
6274
6334
|
}
|
|
6275
|
-
p > 0 && (f.addRange(new V(m.original.endLineNumberExclusive, m.original.endLineNumberExclusive + p)), c.addRange(new V(m.modified.endLineNumberExclusive, m.modified.endLineNumberExclusive + p))), (L > 0 || p > 0) && (l[d] = new
|
|
6335
|
+
p > 0 && (f.addRange(new V(m.original.endLineNumberExclusive, m.original.endLineNumberExclusive + p)), c.addRange(new V(m.modified.endLineNumberExclusive, m.modified.endLineNumberExclusive + p))), (L > 0 || p > 0) && (l[d] = new oe(new V(m.original.startLineNumber - L, m.original.endLineNumberExclusive + p), new V(m.modified.startLineNumber - L, m.modified.endLineNumberExclusive + p)));
|
|
6276
6336
|
}
|
|
6277
6337
|
return l;
|
|
6278
6338
|
}
|
|
6279
|
-
function
|
|
6339
|
+
function _r(e, t, n) {
|
|
6280
6340
|
if (e.trim() === t.trim())
|
|
6281
6341
|
return !0;
|
|
6282
6342
|
if (e.length > 300 && t.length > 300)
|
|
6283
6343
|
return !1;
|
|
6284
|
-
const s = new
|
|
6344
|
+
const s = new Or().compute(new bt([e], new T(0, 1), !1), new bt([t], new T(0, 1), !1), n);
|
|
6285
6345
|
let i = 0;
|
|
6286
6346
|
const l = z.invert(s.diffs, e.length);
|
|
6287
6347
|
for (const f of l)
|
|
6288
6348
|
f.seq1Range.forEach((h) => {
|
|
6289
|
-
|
|
6349
|
+
Gt(e.charCodeAt(h)) || i++;
|
|
6290
6350
|
});
|
|
6291
6351
|
function o(f) {
|
|
6292
6352
|
let h = 0;
|
|
6293
6353
|
for (let d = 0; d < e.length; d++)
|
|
6294
|
-
|
|
6354
|
+
Gt(f.charCodeAt(d)) || h++;
|
|
6295
6355
|
return h;
|
|
6296
6356
|
}
|
|
6297
6357
|
const u = o(e.length > t.length ? e : t);
|
|
6298
6358
|
return i / u > 0.6 && u > 10;
|
|
6299
6359
|
}
|
|
6300
|
-
function
|
|
6360
|
+
function e1(e) {
|
|
6301
6361
|
if (e.length === 0)
|
|
6302
6362
|
return e;
|
|
6303
|
-
e.sort(
|
|
6363
|
+
e.sort(st((n) => n.original.startLineNumber, it));
|
|
6304
6364
|
const t = [e[0]];
|
|
6305
6365
|
for (let n = 1; n < e.length; n++) {
|
|
6306
6366
|
const r = t[t.length - 1], s = e[n], i = s.original.startLineNumber - r.original.endLineNumberExclusive, l = s.modified.startLineNumber - r.modified.endLineNumberExclusive;
|
|
@@ -6312,18 +6372,18 @@ function ji(e) {
|
|
|
6312
6372
|
}
|
|
6313
6373
|
return t;
|
|
6314
6374
|
}
|
|
6315
|
-
function
|
|
6316
|
-
const n = new
|
|
6375
|
+
function t1(e, t) {
|
|
6376
|
+
const n = new Ke(e);
|
|
6317
6377
|
return t = t.filter((r) => {
|
|
6318
|
-
const s = n.findLastMonotonous((o) => o.original.startLineNumber < r.original.endLineNumberExclusive) || new
|
|
6378
|
+
const s = n.findLastMonotonous((o) => o.original.startLineNumber < r.original.endLineNumberExclusive) || new oe(new V(1, 1), new V(1, 1)), i = Ie(e, (o) => o.modified.startLineNumber < r.modified.endLineNumberExclusive);
|
|
6319
6379
|
return s !== i;
|
|
6320
6380
|
}), t;
|
|
6321
6381
|
}
|
|
6322
|
-
function
|
|
6382
|
+
function pr(e, t, n) {
|
|
6323
6383
|
let r = n;
|
|
6324
|
-
return r =
|
|
6384
|
+
return r = vr(e, t, r), r = vr(e, t, r), r = n1(e, t, r), r;
|
|
6325
6385
|
}
|
|
6326
|
-
function
|
|
6386
|
+
function vr(e, t, n) {
|
|
6327
6387
|
if (n.length === 0)
|
|
6328
6388
|
return n;
|
|
6329
6389
|
const r = [];
|
|
@@ -6363,16 +6423,16 @@ function gr(e, t, n) {
|
|
|
6363
6423
|
}
|
|
6364
6424
|
return r.length > 0 && s.push(r[r.length - 1]), s;
|
|
6365
6425
|
}
|
|
6366
|
-
function
|
|
6426
|
+
function n1(e, t, n) {
|
|
6367
6427
|
if (!e.getBoundaryScore || !t.getBoundaryScore)
|
|
6368
6428
|
return n;
|
|
6369
6429
|
for (let r = 0; r < n.length; r++) {
|
|
6370
6430
|
const s = r > 0 ? n[r - 1] : void 0, i = n[r], l = r + 1 < n.length ? n[r + 1] : void 0, o = new T(s ? s.seq1Range.endExclusive + 1 : 0, l ? l.seq1Range.start - 1 : e.length), u = new T(s ? s.seq2Range.endExclusive + 1 : 0, l ? l.seq2Range.start - 1 : t.length);
|
|
6371
|
-
i.seq1Range.isEmpty ? n[r] =
|
|
6431
|
+
i.seq1Range.isEmpty ? n[r] = wr(i, e, t, o, u) : i.seq2Range.isEmpty && (n[r] = wr(i.swap(), t, e, u, o).swap());
|
|
6372
6432
|
}
|
|
6373
6433
|
return n;
|
|
6374
6434
|
}
|
|
6375
|
-
function
|
|
6435
|
+
function wr(e, t, n, r, s) {
|
|
6376
6436
|
let l = 1;
|
|
6377
6437
|
for (; e.seq1Range.start - l >= r.start && e.seq2Range.start - l >= s.start && n.isStronglyEqual(e.seq2Range.start - l, e.seq2Range.endExclusive - l) && l < 100; )
|
|
6378
6438
|
l++;
|
|
@@ -6389,7 +6449,7 @@ function br(e, t, n, r, s) {
|
|
|
6389
6449
|
}
|
|
6390
6450
|
return e.delta(u);
|
|
6391
6451
|
}
|
|
6392
|
-
function
|
|
6452
|
+
function r1(e, t, n) {
|
|
6393
6453
|
const r = [];
|
|
6394
6454
|
for (const s of n) {
|
|
6395
6455
|
const i = r[r.length - 1];
|
|
@@ -6401,9 +6461,9 @@ function Yi(e, t, n) {
|
|
|
6401
6461
|
}
|
|
6402
6462
|
return r;
|
|
6403
6463
|
}
|
|
6404
|
-
function
|
|
6464
|
+
function s1(e, t, n) {
|
|
6405
6465
|
const r = z.invert(n, e.length), s = [];
|
|
6406
|
-
let i = new
|
|
6466
|
+
let i = new re(0, 0);
|
|
6407
6467
|
function l(u, c) {
|
|
6408
6468
|
if (u.offset1 < i.offset1 || u.offset2 < i.offset2)
|
|
6409
6469
|
return;
|
|
@@ -6429,9 +6489,9 @@ function Ji(e, t, n) {
|
|
|
6429
6489
|
const u = r.shift();
|
|
6430
6490
|
u.seq1Range.isEmpty || (l(u.getStarts(), u), l(u.getEndExclusives().delta(-1), u));
|
|
6431
6491
|
}
|
|
6432
|
-
return
|
|
6492
|
+
return i1(n, s);
|
|
6433
6493
|
}
|
|
6434
|
-
function
|
|
6494
|
+
function i1(e, t) {
|
|
6435
6495
|
const n = [];
|
|
6436
6496
|
for (; e.length > 0 || t.length > 0; ) {
|
|
6437
6497
|
const r = e[0], s = t[0];
|
|
@@ -6440,7 +6500,7 @@ function Zi(e, t) {
|
|
|
6440
6500
|
}
|
|
6441
6501
|
return n;
|
|
6442
6502
|
}
|
|
6443
|
-
function
|
|
6503
|
+
function a1(e, t, n) {
|
|
6444
6504
|
let r = n;
|
|
6445
6505
|
if (r.length === 0)
|
|
6446
6506
|
return r;
|
|
@@ -6463,7 +6523,7 @@ function Ki(e, t, n) {
|
|
|
6463
6523
|
} while (s++ < 10 && i);
|
|
6464
6524
|
return r;
|
|
6465
6525
|
}
|
|
6466
|
-
function
|
|
6526
|
+
function l1(e, t, n) {
|
|
6467
6527
|
let r = n;
|
|
6468
6528
|
if (r.length === 0)
|
|
6469
6529
|
return r;
|
|
@@ -6481,11 +6541,11 @@ function e1(e, t, n) {
|
|
|
6481
6541
|
const S = e.getText(v).trim();
|
|
6482
6542
|
if (S.length > 20 || S.split(/\r\n|\r|\n/).length > 1)
|
|
6483
6543
|
return !1;
|
|
6484
|
-
const x = e.countLinesIn(g.seq1Range), L = g.seq1Range.length, p = t.countLinesIn(g.seq2Range), R = g.seq2Range.length, y = e.countLinesIn(_.seq1Range), M = _.seq1Range.length,
|
|
6544
|
+
const x = e.countLinesIn(g.seq1Range), L = g.seq1Range.length, p = t.countLinesIn(g.seq2Range), R = g.seq2Range.length, y = e.countLinesIn(_.seq1Range), M = _.seq1Range.length, B = t.countLinesIn(_.seq2Range), G = _.seq2Range.length, w = 2 * 40 + 50;
|
|
6485
6545
|
function b(C) {
|
|
6486
6546
|
return Math.min(C, w);
|
|
6487
6547
|
}
|
|
6488
|
-
return Math.pow(Math.pow(b(x * 40 + L), 1.5) + Math.pow(b(p * 40 + R), 1.5), 1.5) + Math.pow(Math.pow(b(y * 40 + M), 1.5) + Math.pow(b(
|
|
6548
|
+
return Math.pow(Math.pow(b(x * 40 + L), 1.5) + Math.pow(b(p * 40 + R), 1.5), 1.5) + Math.pow(Math.pow(b(y * 40 + M), 1.5) + Math.pow(b(B * 40 + G), 1.5), 1.5) > _t(_t(w, 1.5), 1.5) * 1.3;
|
|
6489
6549
|
};
|
|
6490
6550
|
var o = d;
|
|
6491
6551
|
const f = r[c], h = u[u.length - 1];
|
|
@@ -6494,7 +6554,7 @@ function e1(e, t, n) {
|
|
|
6494
6554
|
r = u;
|
|
6495
6555
|
} while (s++ < 10 && i);
|
|
6496
6556
|
const l = [];
|
|
6497
|
-
return
|
|
6557
|
+
return li(r, (u, c, f) => {
|
|
6498
6558
|
let h = c;
|
|
6499
6559
|
function d(S) {
|
|
6500
6560
|
return S.length > 0 && S.trim().length <= 3 && c.seq1Range.length + c.seq2Range.length > 100;
|
|
@@ -6503,11 +6563,11 @@ function e1(e, t, n) {
|
|
|
6503
6563
|
d(g) && (h = h.deltaStart(-g.length));
|
|
6504
6564
|
const _ = e.getText(new T(c.seq1Range.endExclusive, m.endExclusive));
|
|
6505
6565
|
d(_) && (h = h.deltaEnd(_.length));
|
|
6506
|
-
const v = z.fromOffsetPairs(u ? u.getEndExclusives() :
|
|
6566
|
+
const v = z.fromOffsetPairs(u ? u.getEndExclusives() : re.zero, f ? f.getStarts() : re.max), N = h.intersect(v);
|
|
6507
6567
|
l.length > 0 && N.getStarts().equals(l[l.length - 1].getEndExclusives()) ? l[l.length - 1] = l[l.length - 1].join(N) : l.push(N);
|
|
6508
6568
|
}), l;
|
|
6509
6569
|
}
|
|
6510
|
-
class
|
|
6570
|
+
class Lr {
|
|
6511
6571
|
constructor(t, n) {
|
|
6512
6572
|
this.trimmedHash = t, this.lines = n;
|
|
6513
6573
|
}
|
|
@@ -6518,7 +6578,7 @@ class xr {
|
|
|
6518
6578
|
return this.trimmedHash.length;
|
|
6519
6579
|
}
|
|
6520
6580
|
getBoundaryScore(t) {
|
|
6521
|
-
const n = t === 0 ? 0 :
|
|
6581
|
+
const n = t === 0 ? 0 : Nr(this.lines[t - 1]), r = t === this.lines.length ? 0 : Nr(this.lines[t]);
|
|
6522
6582
|
return 1e3 - (n + r);
|
|
6523
6583
|
}
|
|
6524
6584
|
getText(t) {
|
|
@@ -6529,48 +6589,48 @@ class xr {
|
|
|
6529
6589
|
return this.lines[t] === this.lines[n];
|
|
6530
6590
|
}
|
|
6531
6591
|
}
|
|
6532
|
-
function
|
|
6592
|
+
function Nr(e) {
|
|
6533
6593
|
let t = 0;
|
|
6534
6594
|
for (; t < e.length && (e.charCodeAt(t) === 32 || e.charCodeAt(t) === 9); )
|
|
6535
6595
|
t++;
|
|
6536
6596
|
return t;
|
|
6537
6597
|
}
|
|
6538
|
-
class
|
|
6598
|
+
class o1 {
|
|
6539
6599
|
constructor() {
|
|
6540
|
-
this.dynamicProgrammingDiffing = new
|
|
6600
|
+
this.dynamicProgrammingDiffing = new Oi(), this.myersDiffingAlgorithm = new Or();
|
|
6541
6601
|
}
|
|
6542
6602
|
computeDiff(t, n, r) {
|
|
6543
|
-
if (t.length <= 1 &&
|
|
6544
|
-
return new
|
|
6603
|
+
if (t.length <= 1 && si(t, n, (p, R) => p === R))
|
|
6604
|
+
return new ot([], [], !1);
|
|
6545
6605
|
if (t.length === 1 && t[0].length === 0 || n.length === 1 && n[0].length === 0)
|
|
6546
|
-
return new
|
|
6547
|
-
new
|
|
6548
|
-
new
|
|
6606
|
+
return new ot([
|
|
6607
|
+
new Ae(new V(1, t.length + 1), new V(1, n.length + 1), [
|
|
6608
|
+
new Ye(new D(1, 1, t.length, t[0].length + 1), new D(1, 1, n.length, n[0].length + 1))
|
|
6549
6609
|
])
|
|
6550
6610
|
], [], !1);
|
|
6551
|
-
const s = r.maxComputationTimeMs === 0 ?
|
|
6611
|
+
const s = r.maxComputationTimeMs === 0 ? Je.instance : new $i(r.maxComputationTimeMs), i = !r.ignoreTrimWhitespace, l = /* @__PURE__ */ new Map();
|
|
6552
6612
|
function o(p) {
|
|
6553
6613
|
let R = l.get(p);
|
|
6554
6614
|
return R === void 0 && (R = l.size, l.set(p, R)), R;
|
|
6555
6615
|
}
|
|
6556
|
-
const u = t.map((p) => o(p.trim())), c = n.map((p) => o(p.trim())), f = new
|
|
6616
|
+
const u = t.map((p) => o(p.trim())), c = n.map((p) => o(p.trim())), f = new Lr(u, t), h = new Lr(c, n), d = f.length + h.length < 1700 ? this.dynamicProgrammingDiffing.compute(f, h, s, (p, R) => t[p] === n[R] ? n[R].length === 0 ? 0.1 : 1 + Math.log(1 + n[R].length) : 0.99) : this.myersDiffingAlgorithm.compute(f, h);
|
|
6557
6617
|
let m = d.diffs, g = d.hitTimeout;
|
|
6558
|
-
m =
|
|
6618
|
+
m = pr(f, h, m), m = a1(f, h, m);
|
|
6559
6619
|
const _ = [], v = (p) => {
|
|
6560
6620
|
if (i)
|
|
6561
6621
|
for (let R = 0; R < p; R++) {
|
|
6562
6622
|
const y = N + R, M = S + R;
|
|
6563
6623
|
if (t[y] !== n[M]) {
|
|
6564
|
-
const
|
|
6565
|
-
for (const G of
|
|
6624
|
+
const B = this.refineDiff(t, n, new z(new T(y, y + 1), new T(M, M + 1)), s, i);
|
|
6625
|
+
for (const G of B.mappings)
|
|
6566
6626
|
_.push(G);
|
|
6567
|
-
|
|
6627
|
+
B.hitTimeout && (g = !0);
|
|
6568
6628
|
}
|
|
6569
6629
|
}
|
|
6570
6630
|
};
|
|
6571
6631
|
let N = 0, S = 0;
|
|
6572
6632
|
for (const p of m) {
|
|
6573
|
-
|
|
6633
|
+
gt(() => p.seq1Range.start - N === p.seq2Range.start - S);
|
|
6574
6634
|
const R = p.seq1Range.start - N;
|
|
6575
6635
|
v(R), N = p.seq1Range.endExclusive, S = p.seq2Range.endExclusive;
|
|
6576
6636
|
const y = this.refineDiff(t, n, p, s, i);
|
|
@@ -6579,14 +6639,14 @@ class t1 {
|
|
|
6579
6639
|
_.push(M);
|
|
6580
6640
|
}
|
|
6581
6641
|
v(t.length - N);
|
|
6582
|
-
const x =
|
|
6642
|
+
const x = Sr(_, t, n);
|
|
6583
6643
|
let L = [];
|
|
6584
|
-
return r.computeMoves && (L = this.computeMoves(x, t, n, u, c, s, i)),
|
|
6644
|
+
return r.computeMoves && (L = this.computeMoves(x, t, n, u, c, s, i)), gt(() => {
|
|
6585
6645
|
function p(y, M) {
|
|
6586
6646
|
if (y.lineNumber < 1 || y.lineNumber > M.length)
|
|
6587
6647
|
return !1;
|
|
6588
|
-
const
|
|
6589
|
-
return !(y.column < 1 || y.column >
|
|
6648
|
+
const B = M[y.lineNumber - 1];
|
|
6649
|
+
return !(y.column < 1 || y.column > B.length + 1);
|
|
6590
6650
|
}
|
|
6591
6651
|
function R(y, M) {
|
|
6592
6652
|
return !(y.startLineNumber < 1 || y.startLineNumber > M.length + 1 || y.endLineNumberExclusive < 1 || y.endLineNumberExclusive > M.length + 1);
|
|
@@ -6601,57 +6661,57 @@ class t1 {
|
|
|
6601
6661
|
return !1;
|
|
6602
6662
|
}
|
|
6603
6663
|
return !0;
|
|
6604
|
-
}), new
|
|
6664
|
+
}), new ot(x, L, g);
|
|
6605
6665
|
}
|
|
6606
6666
|
computeMoves(t, n, r, s, i, l, o) {
|
|
6607
|
-
return
|
|
6608
|
-
const h = this.refineDiff(n, r, new z(f.original.toOffsetRange(), f.modified.toOffsetRange()), l, o), d =
|
|
6609
|
-
return new
|
|
6667
|
+
return Yi(t, n, r, s, i, l).map((f) => {
|
|
6668
|
+
const h = this.refineDiff(n, r, new z(f.original.toOffsetRange(), f.modified.toOffsetRange()), l, o), d = Sr(h.mappings, n, r, !0);
|
|
6669
|
+
return new Bi(f, d);
|
|
6610
6670
|
});
|
|
6611
6671
|
}
|
|
6612
6672
|
refineDiff(t, n, r, s, i) {
|
|
6613
|
-
const l = new
|
|
6673
|
+
const l = new bt(t, r.seq1Range, i), o = new bt(n, r.seq2Range, i), u = l.length + o.length < 500 ? this.dynamicProgrammingDiffing.compute(l, o, s) : this.myersDiffingAlgorithm.compute(l, o, s);
|
|
6614
6674
|
let c = u.diffs;
|
|
6615
|
-
return c =
|
|
6616
|
-
mappings: c.map((h) => new
|
|
6675
|
+
return c = pr(l, o, c), c = s1(l, o, c), c = r1(l, o, c), c = l1(l, o, c), {
|
|
6676
|
+
mappings: c.map((h) => new Ye(l.translateRange(h.seq1Range), o.translateRange(h.seq2Range))),
|
|
6617
6677
|
hitTimeout: u.hitTimeout
|
|
6618
6678
|
};
|
|
6619
6679
|
}
|
|
6620
6680
|
}
|
|
6621
|
-
function
|
|
6681
|
+
function Sr(e, t, n, r = !1) {
|
|
6622
6682
|
const s = [];
|
|
6623
|
-
for (const i of
|
|
6683
|
+
for (const i of ii(e.map((l) => u1(l, t, n)), (l, o) => l.original.overlapOrTouch(o.original) || l.modified.overlapOrTouch(o.modified))) {
|
|
6624
6684
|
const l = i[0], o = i[i.length - 1];
|
|
6625
|
-
s.push(new
|
|
6685
|
+
s.push(new Ae(l.original.join(o.original), l.modified.join(o.modified), i.map((u) => u.innerChanges[0])));
|
|
6626
6686
|
}
|
|
6627
|
-
return
|
|
6687
|
+
return gt(() => !r && s.length > 0 && s[0].original.startLineNumber !== s[0].modified.startLineNumber ? !1 : zr(s, (i, l) => l.original.startLineNumber - i.original.endLineNumberExclusive === l.modified.startLineNumber - i.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
|
|
6628
6688
|
i.original.endLineNumberExclusive < l.original.startLineNumber && i.modified.endLineNumberExclusive < l.modified.startLineNumber)), s;
|
|
6629
6689
|
}
|
|
6630
|
-
function
|
|
6690
|
+
function u1(e, t, n) {
|
|
6631
6691
|
let r = 0, s = 0;
|
|
6632
6692
|
e.modifiedRange.endColumn === 1 && e.originalRange.endColumn === 1 && e.originalRange.startLineNumber + r <= e.originalRange.endLineNumber && e.modifiedRange.startLineNumber + r <= e.modifiedRange.endLineNumber && (s = -1), e.modifiedRange.startColumn - 1 >= n[e.modifiedRange.startLineNumber - 1].length && e.originalRange.startColumn - 1 >= t[e.originalRange.startLineNumber - 1].length && e.originalRange.startLineNumber <= e.originalRange.endLineNumber + s && e.modifiedRange.startLineNumber <= e.modifiedRange.endLineNumber + s && (r = 1);
|
|
6633
6693
|
const i = new V(e.originalRange.startLineNumber + r, e.originalRange.endLineNumber + 1 + s), l = new V(e.modifiedRange.startLineNumber + r, e.modifiedRange.endLineNumber + 1 + s);
|
|
6634
|
-
return new
|
|
6694
|
+
return new Ae(i, l, [e]);
|
|
6635
6695
|
}
|
|
6636
|
-
const
|
|
6637
|
-
getLegacy: () => new
|
|
6638
|
-
getDefault: () => new
|
|
6696
|
+
const Cr = {
|
|
6697
|
+
getLegacy: () => new Ui(),
|
|
6698
|
+
getDefault: () => new o1()
|
|
6639
6699
|
};
|
|
6640
|
-
function
|
|
6700
|
+
function pe(e, t) {
|
|
6641
6701
|
const n = Math.pow(10, t);
|
|
6642
6702
|
return Math.round(e * n) / n;
|
|
6643
6703
|
}
|
|
6644
6704
|
class O {
|
|
6645
6705
|
constructor(t, n, r, s = 1) {
|
|
6646
|
-
this._rgbaBrand = void 0, this.r = Math.min(255, Math.max(0, t)) | 0, this.g = Math.min(255, Math.max(0, n)) | 0, this.b = Math.min(255, Math.max(0, r)) | 0, this.a =
|
|
6706
|
+
this._rgbaBrand = void 0, this.r = Math.min(255, Math.max(0, t)) | 0, this.g = Math.min(255, Math.max(0, n)) | 0, this.b = Math.min(255, Math.max(0, r)) | 0, this.a = pe(Math.max(Math.min(1, s), 0), 3);
|
|
6647
6707
|
}
|
|
6648
6708
|
static equals(t, n) {
|
|
6649
6709
|
return t.r === n.r && t.g === n.g && t.b === n.b && t.a === n.a;
|
|
6650
6710
|
}
|
|
6651
6711
|
}
|
|
6652
|
-
class
|
|
6712
|
+
class se {
|
|
6653
6713
|
constructor(t, n, r, s) {
|
|
6654
|
-
this._hslaBrand = void 0, this.h = Math.max(Math.min(360, t), 0) | 0, this.s =
|
|
6714
|
+
this._hslaBrand = void 0, this.h = Math.max(Math.min(360, t), 0) | 0, this.s = pe(Math.max(Math.min(1, n), 0), 3), this.l = pe(Math.max(Math.min(1, r), 0), 3), this.a = pe(Math.max(Math.min(1, s), 0), 3);
|
|
6655
6715
|
}
|
|
6656
6716
|
static equals(t, n) {
|
|
6657
6717
|
return t.h === n.h && t.s === n.s && t.l === n.l && t.a === n.a;
|
|
@@ -6680,7 +6740,7 @@ class re {
|
|
|
6680
6740
|
}
|
|
6681
6741
|
u *= 60, u = Math.round(u);
|
|
6682
6742
|
}
|
|
6683
|
-
return new
|
|
6743
|
+
return new se(u, c, f, i);
|
|
6684
6744
|
}
|
|
6685
6745
|
static _hue2rgb(t, n, r) {
|
|
6686
6746
|
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + (n - t) * 6 * r : r < 1 / 2 ? n : r < 2 / 3 ? t + (n - t) * (2 / 3 - r) * 6 : t;
|
|
@@ -6698,14 +6758,14 @@ class re {
|
|
|
6698
6758
|
l = o = u = s;
|
|
6699
6759
|
else {
|
|
6700
6760
|
const c = s < 0.5 ? s * (1 + r) : s + r - s * r, f = 2 * s - c;
|
|
6701
|
-
l =
|
|
6761
|
+
l = se._hue2rgb(f, c, n + 1 / 3), o = se._hue2rgb(f, c, n), u = se._hue2rgb(f, c, n - 1 / 3);
|
|
6702
6762
|
}
|
|
6703
6763
|
return new O(Math.round(l * 255), Math.round(o * 255), Math.round(u * 255), i);
|
|
6704
6764
|
}
|
|
6705
6765
|
}
|
|
6706
|
-
class
|
|
6766
|
+
class Fe {
|
|
6707
6767
|
constructor(t, n, r, s) {
|
|
6708
|
-
this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, t), 0) | 0, this.s =
|
|
6768
|
+
this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, t), 0) | 0, this.s = pe(Math.max(Math.min(1, n), 0), 3), this.v = pe(Math.max(Math.min(1, r), 0), 3), this.a = pe(Math.max(Math.min(1, s), 0), 3);
|
|
6709
6769
|
}
|
|
6710
6770
|
static equals(t, n) {
|
|
6711
6771
|
return t.h === n.h && t.s === n.s && t.v === n.v && t.a === n.a;
|
|
@@ -6714,7 +6774,7 @@ class Pe {
|
|
|
6714
6774
|
static fromRGBA(t) {
|
|
6715
6775
|
const n = t.r / 255, r = t.g / 255, s = t.b / 255, i = Math.max(n, r, s), l = Math.min(n, r, s), o = i - l, u = i === 0 ? 0 : o / i;
|
|
6716
6776
|
let c;
|
|
6717
|
-
return o === 0 ? c = 0 : i === n ? c = ((r - s) / o % 6 + 6) % 6 : i === r ? c = (s - n) / o + 2 : c = (n - r) / o + 4, new
|
|
6777
|
+
return o === 0 ? c = 0 : i === n ? c = ((r - s) / o % 6 + 6) % 6 : i === r ? c = (s - n) / o + 2 : c = (n - r) / o + 4, new Fe(Math.round(c * 60), u, i, t.a);
|
|
6718
6778
|
}
|
|
6719
6779
|
// from http://www.rapidtables.com/convert/color/hsv-to-rgb.htm
|
|
6720
6780
|
static toRGBA(t) {
|
|
@@ -6723,41 +6783,41 @@ class Pe {
|
|
|
6723
6783
|
return n < 60 ? (c = l, f = o) : n < 120 ? (c = o, f = l) : n < 180 ? (f = l, h = o) : n < 240 ? (f = o, h = l) : n < 300 ? (c = o, h = l) : n <= 360 && (c = l, h = o), c = Math.round((c + u) * 255), f = Math.round((f + u) * 255), h = Math.round((h + u) * 255), new O(c, f, h, i);
|
|
6724
6784
|
}
|
|
6725
6785
|
}
|
|
6726
|
-
class
|
|
6786
|
+
class q {
|
|
6727
6787
|
static fromHex(t) {
|
|
6728
|
-
return
|
|
6788
|
+
return q.Format.CSS.parseHex(t) || q.red;
|
|
6729
6789
|
}
|
|
6730
6790
|
static equals(t, n) {
|
|
6731
6791
|
return !t && !n ? !0 : !t || !n ? !1 : t.equals(n);
|
|
6732
6792
|
}
|
|
6733
6793
|
get hsla() {
|
|
6734
|
-
return this._hsla ? this._hsla :
|
|
6794
|
+
return this._hsla ? this._hsla : se.fromRGBA(this.rgba);
|
|
6735
6795
|
}
|
|
6736
6796
|
get hsva() {
|
|
6737
|
-
return this._hsva ? this._hsva :
|
|
6797
|
+
return this._hsva ? this._hsva : Fe.fromRGBA(this.rgba);
|
|
6738
6798
|
}
|
|
6739
6799
|
constructor(t) {
|
|
6740
6800
|
if (t)
|
|
6741
6801
|
if (t instanceof O)
|
|
6742
6802
|
this.rgba = t;
|
|
6743
|
-
else if (t instanceof
|
|
6744
|
-
this._hsla = t, this.rgba =
|
|
6745
|
-
else if (t instanceof
|
|
6746
|
-
this._hsva = t, this.rgba =
|
|
6803
|
+
else if (t instanceof se)
|
|
6804
|
+
this._hsla = t, this.rgba = se.toRGBA(t);
|
|
6805
|
+
else if (t instanceof Fe)
|
|
6806
|
+
this._hsva = t, this.rgba = Fe.toRGBA(t);
|
|
6747
6807
|
else
|
|
6748
6808
|
throw new Error("Invalid color ctor argument");
|
|
6749
6809
|
else throw new Error("Color needs a value");
|
|
6750
6810
|
}
|
|
6751
6811
|
equals(t) {
|
|
6752
|
-
return !!t && O.equals(this.rgba, t.rgba) &&
|
|
6812
|
+
return !!t && O.equals(this.rgba, t.rgba) && se.equals(this.hsla, t.hsla) && Fe.equals(this.hsva, t.hsva);
|
|
6753
6813
|
}
|
|
6754
6814
|
/**
|
|
6755
6815
|
* http://www.w3.org/TR/WCAG20/#relativeluminancedef
|
|
6756
6816
|
* Returns the number in the set [0, 1]. O => Darkest Black. 1 => Lightest white.
|
|
6757
6817
|
*/
|
|
6758
6818
|
getRelativeLuminance() {
|
|
6759
|
-
const t =
|
|
6760
|
-
return
|
|
6819
|
+
const t = q._relativeLuminanceForComponent(this.rgba.r), n = q._relativeLuminanceForComponent(this.rgba.g), r = q._relativeLuminanceForComponent(this.rgba.b), s = 0.2126 * t + 0.7152 * n + 0.0722 * r;
|
|
6820
|
+
return pe(s, 4);
|
|
6761
6821
|
}
|
|
6762
6822
|
static _relativeLuminanceForComponent(t) {
|
|
6763
6823
|
const n = t / 255;
|
|
@@ -6779,14 +6839,14 @@ class B {
|
|
|
6779
6839
|
return n < r;
|
|
6780
6840
|
}
|
|
6781
6841
|
lighten(t) {
|
|
6782
|
-
return new
|
|
6842
|
+
return new q(new se(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * t, this.hsla.a));
|
|
6783
6843
|
}
|
|
6784
6844
|
darken(t) {
|
|
6785
|
-
return new
|
|
6845
|
+
return new q(new se(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * t, this.hsla.a));
|
|
6786
6846
|
}
|
|
6787
6847
|
transparent(t) {
|
|
6788
6848
|
const { r: n, g: r, b: s, a: i } = this.rgba;
|
|
6789
|
-
return new
|
|
6849
|
+
return new q(new O(n, r, s, i * t));
|
|
6790
6850
|
}
|
|
6791
6851
|
isTransparent() {
|
|
6792
6852
|
return this.rgba.a === 0;
|
|
@@ -6795,16 +6855,16 @@ class B {
|
|
|
6795
6855
|
return this.rgba.a === 1;
|
|
6796
6856
|
}
|
|
6797
6857
|
opposite() {
|
|
6798
|
-
return new
|
|
6858
|
+
return new q(new O(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a));
|
|
6799
6859
|
}
|
|
6800
6860
|
makeOpaque(t) {
|
|
6801
6861
|
if (this.isOpaque() || t.rgba.a !== 1)
|
|
6802
6862
|
return this;
|
|
6803
6863
|
const { r: n, g: r, b: s, a: i } = this.rgba;
|
|
6804
|
-
return new
|
|
6864
|
+
return new q(new O(t.rgba.r - i * (t.rgba.r - n), t.rgba.g - i * (t.rgba.g - r), t.rgba.b - i * (t.rgba.b - s), 1));
|
|
6805
6865
|
}
|
|
6806
6866
|
toString() {
|
|
6807
|
-
return this._toString || (this._toString =
|
|
6867
|
+
return this._toString || (this._toString = q.Format.CSS.format(this)), this._toString;
|
|
6808
6868
|
}
|
|
6809
6869
|
static getLighterColor(t, n, r) {
|
|
6810
6870
|
if (t.isLighterThan(n))
|
|
@@ -6821,14 +6881,14 @@ class B {
|
|
|
6821
6881
|
return r = r * (s - i) / s, t.darken(r);
|
|
6822
6882
|
}
|
|
6823
6883
|
}
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6884
|
+
q.white = new q(new O(255, 255, 255, 1));
|
|
6885
|
+
q.black = new q(new O(0, 0, 0, 1));
|
|
6886
|
+
q.red = new q(new O(255, 0, 0, 1));
|
|
6887
|
+
q.blue = new q(new O(0, 0, 255, 1));
|
|
6888
|
+
q.green = new q(new O(0, 255, 0, 1));
|
|
6889
|
+
q.cyan = new q(new O(0, 255, 255, 1));
|
|
6890
|
+
q.lightgrey = new q(new O(211, 211, 211, 1));
|
|
6891
|
+
q.transparent = new q(new O(0, 0, 0, 0));
|
|
6832
6892
|
(function(e) {
|
|
6833
6893
|
(function(t) {
|
|
6834
6894
|
(function(n) {
|
|
@@ -6938,8 +6998,8 @@ B.transparent = new B(new O(0, 0, 0, 0));
|
|
|
6938
6998
|
}
|
|
6939
6999
|
})(t.CSS || (t.CSS = {}));
|
|
6940
7000
|
})(e.Format || (e.Format = {}));
|
|
6941
|
-
})(
|
|
6942
|
-
function
|
|
7001
|
+
})(q || (q = {}));
|
|
7002
|
+
function Gr(e) {
|
|
6943
7003
|
const t = [];
|
|
6944
7004
|
for (const n of e) {
|
|
6945
7005
|
const r = Number(n);
|
|
@@ -6947,7 +7007,7 @@ function Hr(e) {
|
|
|
6947
7007
|
}
|
|
6948
7008
|
return t;
|
|
6949
7009
|
}
|
|
6950
|
-
function
|
|
7010
|
+
function Zt(e, t, n, r) {
|
|
6951
7011
|
return {
|
|
6952
7012
|
red: e / 255,
|
|
6953
7013
|
blue: n / 255,
|
|
@@ -6955,7 +7015,7 @@ function Xt(e, t, n, r) {
|
|
|
6955
7015
|
alpha: r
|
|
6956
7016
|
};
|
|
6957
7017
|
}
|
|
6958
|
-
function
|
|
7018
|
+
function $e(e, t) {
|
|
6959
7019
|
const n = t.index, r = t[0].length;
|
|
6960
7020
|
if (!n)
|
|
6961
7021
|
return;
|
|
@@ -6967,39 +7027,39 @@ function We(e, t) {
|
|
|
6967
7027
|
endColumn: s.column + r
|
|
6968
7028
|
};
|
|
6969
7029
|
}
|
|
6970
|
-
function
|
|
7030
|
+
function c1(e, t) {
|
|
6971
7031
|
if (!e)
|
|
6972
7032
|
return;
|
|
6973
|
-
const n =
|
|
7033
|
+
const n = q.Format.CSS.parseHex(t);
|
|
6974
7034
|
if (n)
|
|
6975
7035
|
return {
|
|
6976
7036
|
range: e,
|
|
6977
|
-
color:
|
|
7037
|
+
color: Zt(n.rgba.r, n.rgba.g, n.rgba.b, n.rgba.a)
|
|
6978
7038
|
};
|
|
6979
7039
|
}
|
|
6980
|
-
function
|
|
7040
|
+
function Ar(e, t, n) {
|
|
6981
7041
|
if (!e || t.length !== 1)
|
|
6982
7042
|
return;
|
|
6983
|
-
const s = t[0].values(), i =
|
|
7043
|
+
const s = t[0].values(), i = Gr(s);
|
|
6984
7044
|
return {
|
|
6985
7045
|
range: e,
|
|
6986
|
-
color:
|
|
7046
|
+
color: Zt(i[0], i[1], i[2], n ? i[3] : 1)
|
|
6987
7047
|
};
|
|
6988
7048
|
}
|
|
6989
|
-
function
|
|
7049
|
+
function Rr(e, t, n) {
|
|
6990
7050
|
if (!e || t.length !== 1)
|
|
6991
7051
|
return;
|
|
6992
|
-
const s = t[0].values(), i =
|
|
7052
|
+
const s = t[0].values(), i = Gr(s), l = new q(new se(i[0], i[1] / 100, i[2] / 100, n ? i[3] : 1));
|
|
6993
7053
|
return {
|
|
6994
7054
|
range: e,
|
|
6995
|
-
color:
|
|
7055
|
+
color: Zt(l.rgba.r, l.rgba.g, l.rgba.b, l.rgba.a)
|
|
6996
7056
|
};
|
|
6997
7057
|
}
|
|
6998
|
-
function
|
|
7058
|
+
function Oe(e, t) {
|
|
6999
7059
|
return typeof e == "string" ? [...e.matchAll(t)] : e.findMatches(t);
|
|
7000
7060
|
}
|
|
7001
|
-
function
|
|
7002
|
-
const t = [], r =
|
|
7061
|
+
function h1(e) {
|
|
7062
|
+
const t = [], r = Oe(e, /\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);
|
|
7003
7063
|
if (r.length > 0)
|
|
7004
7064
|
for (const s of r) {
|
|
7005
7065
|
const i = s.filter((c) => c !== void 0), l = i[1], o = i[2];
|
|
@@ -7008,25 +7068,25 @@ function s1(e) {
|
|
|
7008
7068
|
let u;
|
|
7009
7069
|
if (l === "rgb") {
|
|
7010
7070
|
const c = /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;
|
|
7011
|
-
u =
|
|
7071
|
+
u = Ar($e(e, s), Oe(o, c), !1);
|
|
7012
7072
|
} else if (l === "rgba") {
|
|
7013
7073
|
const c = /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;
|
|
7014
|
-
u =
|
|
7074
|
+
u = Ar($e(e, s), Oe(o, c), !0);
|
|
7015
7075
|
} else if (l === "hsl") {
|
|
7016
7076
|
const c = /^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;
|
|
7017
|
-
u =
|
|
7077
|
+
u = Rr($e(e, s), Oe(o, c), !1);
|
|
7018
7078
|
} else if (l === "hsla") {
|
|
7019
7079
|
const c = /^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;
|
|
7020
|
-
u =
|
|
7021
|
-
} else l === "#" && (u =
|
|
7080
|
+
u = Rr($e(e, s), Oe(o, c), !0);
|
|
7081
|
+
} else l === "#" && (u = c1($e(e, s), l + o));
|
|
7022
7082
|
u && t.push(u);
|
|
7023
7083
|
}
|
|
7024
7084
|
return t;
|
|
7025
7085
|
}
|
|
7026
|
-
function
|
|
7027
|
-
return !e || typeof e.getValue != "function" || typeof e.positionAt != "function" ? [] :
|
|
7086
|
+
function f1(e) {
|
|
7087
|
+
return !e || typeof e.getValue != "function" || typeof e.positionAt != "function" ? [] : h1(e);
|
|
7028
7088
|
}
|
|
7029
|
-
class
|
|
7089
|
+
class d1 extends fi {
|
|
7030
7090
|
get uri() {
|
|
7031
7091
|
return this._uri;
|
|
7032
7092
|
}
|
|
@@ -7055,7 +7115,7 @@ class a1 extends ii {
|
|
|
7055
7115
|
return this._lines[t - 1];
|
|
7056
7116
|
}
|
|
7057
7117
|
getWordAtPosition(t, n) {
|
|
7058
|
-
const r =
|
|
7118
|
+
const r = Xt(t.column, Ur(n), this._lines[t.lineNumber - 1], 0);
|
|
7059
7119
|
return r ? new D(t.lineNumber, r.startColumn, t.lineNumber, r.endColumn) : null;
|
|
7060
7120
|
}
|
|
7061
7121
|
words(t) {
|
|
@@ -7135,7 +7195,7 @@ class a1 extends ii {
|
|
|
7135
7195
|
return s ? { lineNumber: n, column: r } : t;
|
|
7136
7196
|
}
|
|
7137
7197
|
}
|
|
7138
|
-
class
|
|
7198
|
+
class Se {
|
|
7139
7199
|
constructor(t, n) {
|
|
7140
7200
|
this._host = t, this._models = /* @__PURE__ */ Object.create(null), this._foreignModuleFactory = n, this._foreignModule = null;
|
|
7141
7201
|
}
|
|
@@ -7150,7 +7210,7 @@ class Ne {
|
|
|
7150
7210
|
return Object.keys(this._models).forEach((n) => t.push(this._models[n])), t;
|
|
7151
7211
|
}
|
|
7152
7212
|
acceptNewModel(t) {
|
|
7153
|
-
this._models[t.url] = new
|
|
7213
|
+
this._models[t.url] = new d1(Ne.parse(t.url), t.lines, t.EOL, t.versionId);
|
|
7154
7214
|
}
|
|
7155
7215
|
acceptModelChanged(t, n) {
|
|
7156
7216
|
if (!this._models[t])
|
|
@@ -7160,17 +7220,21 @@ class Ne {
|
|
|
7160
7220
|
acceptRemovedModel(t) {
|
|
7161
7221
|
this._models[t] && delete this._models[t];
|
|
7162
7222
|
}
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7223
|
+
computeUnicodeHighlights(t, n, r) {
|
|
7224
|
+
return te(this, null, function* () {
|
|
7225
|
+
const s = this._getModel(t);
|
|
7226
|
+
return s ? Ti.computeUnicodeHighlights(s, n, r) : { ranges: [], hasMore: !1, ambiguousCharacterCount: 0, invisibleCharacterCount: 0, nonBasicAsciiCharacterCount: 0 };
|
|
7227
|
+
});
|
|
7166
7228
|
}
|
|
7167
7229
|
// ---- BEGIN diff --------------------------------------------------------------------------
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7230
|
+
computeDiff(t, n, r, s) {
|
|
7231
|
+
return te(this, null, function* () {
|
|
7232
|
+
const i = this._getModel(t), l = this._getModel(n);
|
|
7233
|
+
return !i || !l ? null : Se.computeDiff(i, l, r, s);
|
|
7234
|
+
});
|
|
7171
7235
|
}
|
|
7172
7236
|
static computeDiff(t, n, r, s) {
|
|
7173
|
-
const i = s === "advanced" ?
|
|
7237
|
+
const i = s === "advanced" ? Cr.getDefault() : Cr.getLegacy(), l = t.getLinesContent(), o = n.getLinesContent(), u = i.computeDiff(l, o, r), c = u.changes.length > 0 ? !1 : this._modelsAreIdentical(t, n);
|
|
7174
7238
|
function f(h) {
|
|
7175
7239
|
return h.map((d) => {
|
|
7176
7240
|
var m;
|
|
@@ -7210,113 +7274,125 @@ class Ne {
|
|
|
7210
7274
|
}
|
|
7211
7275
|
return !0;
|
|
7212
7276
|
}
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7277
|
+
computeMoreMinimalEdits(t, n, r) {
|
|
7278
|
+
return te(this, null, function* () {
|
|
7279
|
+
const s = this._getModel(t);
|
|
7280
|
+
if (!s)
|
|
7281
|
+
return n;
|
|
7282
|
+
const i = [];
|
|
7283
|
+
let l;
|
|
7284
|
+
n = n.slice(0).sort((u, c) => {
|
|
7285
|
+
if (u.range && c.range)
|
|
7286
|
+
return D.compareRangesUsingStarts(u.range, c.range);
|
|
7287
|
+
const f = u.range ? 0 : 1, h = c.range ? 0 : 1;
|
|
7288
|
+
return f - h;
|
|
7289
|
+
});
|
|
7290
|
+
let o = 0;
|
|
7291
|
+
for (let u = 1; u < n.length; u++)
|
|
7292
|
+
D.getEndPosition(n[o].range).equals(D.getStartPosition(n[u].range)) ? (n[o].range = D.fromPositions(D.getStartPosition(n[o].range), D.getEndPosition(n[u].range)), n[o].text += n[u].text) : (o++, n[o] = n[u]);
|
|
7293
|
+
n.length = o + 1;
|
|
7294
|
+
for (let { range: u, text: c, eol: f } of n) {
|
|
7295
|
+
if (typeof f == "number" && (l = f), D.isEmpty(u) && !c)
|
|
7296
|
+
continue;
|
|
7297
|
+
const h = s.getValueInRange(u);
|
|
7298
|
+
if (c = c.replace(/\r\n|\n|\r/g, s.eol), h === c)
|
|
7299
|
+
continue;
|
|
7300
|
+
if (Math.max(c.length, h.length) > Se._diffLimit) {
|
|
7301
|
+
i.push({ range: u, text: c });
|
|
7302
|
+
continue;
|
|
7303
|
+
}
|
|
7304
|
+
const d = Us(h, c, r), m = s.offsetAt(D.lift(u).getStartPosition());
|
|
7305
|
+
for (const g of d) {
|
|
7306
|
+
const _ = s.positionAt(m + g.originalStart), v = s.positionAt(m + g.originalStart + g.originalLength), N = {
|
|
7307
|
+
text: c.substr(g.modifiedStart, g.modifiedLength),
|
|
7308
|
+
range: { startLineNumber: _.lineNumber, startColumn: _.column, endLineNumber: v.lineNumber, endColumn: v.column }
|
|
7309
|
+
};
|
|
7310
|
+
s.getValueInRange(N.range) !== N.text && i.push(N);
|
|
7311
|
+
}
|
|
7246
7312
|
}
|
|
7247
|
-
|
|
7248
|
-
|
|
7313
|
+
return typeof l == "number" && i.push({ eol: l, text: "", range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } }), i;
|
|
7314
|
+
});
|
|
7249
7315
|
}
|
|
7250
7316
|
// ---- END minimal edits ---------------------------------------------------------------
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7317
|
+
computeLinks(t) {
|
|
7318
|
+
return te(this, null, function* () {
|
|
7319
|
+
const n = this._getModel(t);
|
|
7320
|
+
return n ? vi(n) : null;
|
|
7321
|
+
});
|
|
7254
7322
|
}
|
|
7255
7323
|
// --- BEGIN default document colors -----------------------------------------------------------
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7324
|
+
computeDefaultDocumentColors(t) {
|
|
7325
|
+
return te(this, null, function* () {
|
|
7326
|
+
const n = this._getModel(t);
|
|
7327
|
+
return n ? f1(n) : null;
|
|
7328
|
+
});
|
|
7329
|
+
}
|
|
7330
|
+
textualSuggest(t, n, r, s) {
|
|
7331
|
+
return te(this, null, function* () {
|
|
7332
|
+
const i = new xt(), l = new RegExp(r, s), o = /* @__PURE__ */ new Set();
|
|
7333
|
+
e: for (const u of t) {
|
|
7334
|
+
const c = this._getModel(u);
|
|
7335
|
+
if (c) {
|
|
7336
|
+
for (const f of c.words(l))
|
|
7337
|
+
if (!(f === n || !isNaN(Number(f))) && (o.add(f), o.size > Se._suggestionsLimit))
|
|
7338
|
+
break e;
|
|
7339
|
+
}
|
|
7268
7340
|
}
|
|
7269
|
-
|
|
7270
|
-
|
|
7341
|
+
return { words: Array.from(o), duration: i.elapsed() };
|
|
7342
|
+
});
|
|
7271
7343
|
}
|
|
7272
7344
|
// ---- END suggest --------------------------------------------------------------------------
|
|
7273
7345
|
//#region -- word ranges --
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7346
|
+
computeWordRanges(t, n, r, s) {
|
|
7347
|
+
return te(this, null, function* () {
|
|
7348
|
+
const i = this._getModel(t);
|
|
7349
|
+
if (!i)
|
|
7350
|
+
return /* @__PURE__ */ Object.create(null);
|
|
7351
|
+
const l = new RegExp(r, s), o = /* @__PURE__ */ Object.create(null);
|
|
7352
|
+
for (let u = n.startLineNumber; u < n.endLineNumber; u++) {
|
|
7353
|
+
const c = i.getLineWords(u, l);
|
|
7354
|
+
for (const f of c) {
|
|
7355
|
+
if (!isNaN(Number(f.word)))
|
|
7356
|
+
continue;
|
|
7357
|
+
let h = o[f.word];
|
|
7358
|
+
h || (h = [], o[f.word] = h), h.push({
|
|
7359
|
+
startLineNumber: u,
|
|
7360
|
+
startColumn: f.startColumn,
|
|
7361
|
+
endLineNumber: u,
|
|
7362
|
+
endColumn: f.endColumn
|
|
7363
|
+
});
|
|
7364
|
+
}
|
|
7291
7365
|
}
|
|
7292
|
-
|
|
7293
|
-
|
|
7366
|
+
return o;
|
|
7367
|
+
});
|
|
7294
7368
|
}
|
|
7295
7369
|
//#endregion
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7370
|
+
navigateValueSet(t, n, r, s, i) {
|
|
7371
|
+
return te(this, null, function* () {
|
|
7372
|
+
const l = this._getModel(t);
|
|
7373
|
+
if (!l)
|
|
7374
|
+
return null;
|
|
7375
|
+
const o = new RegExp(s, i);
|
|
7376
|
+
n.startColumn === n.endColumn && (n = {
|
|
7377
|
+
startLineNumber: n.startLineNumber,
|
|
7378
|
+
startColumn: n.startColumn,
|
|
7379
|
+
endLineNumber: n.endLineNumber,
|
|
7380
|
+
endColumn: n.endColumn + 1
|
|
7381
|
+
});
|
|
7382
|
+
const u = l.getValueInRange(n), c = l.getWordAtPosition({ lineNumber: n.startLineNumber, column: n.startColumn }, o);
|
|
7383
|
+
if (!c)
|
|
7384
|
+
return null;
|
|
7385
|
+
const f = l.getValueInRange(c);
|
|
7386
|
+
return Vt.INSTANCE.navigateValueSet(n, u, c, f, r);
|
|
7306
7387
|
});
|
|
7307
|
-
const u = l.getValueInRange(n), c = l.getWordAtPosition({ lineNumber: n.startLineNumber, column: n.startColumn }, o);
|
|
7308
|
-
if (!c)
|
|
7309
|
-
return null;
|
|
7310
|
-
const f = l.getValueInRange(c);
|
|
7311
|
-
return Ft.INSTANCE.navigateValueSet(n, u, c, f, r);
|
|
7312
7388
|
}
|
|
7313
7389
|
// ---- BEGIN foreign module support --------------------------------------------------------------------------
|
|
7314
7390
|
loadForeignModule(t, n, r) {
|
|
7315
7391
|
const l = {
|
|
7316
|
-
host:
|
|
7392
|
+
host: fs(r, (o, u) => this._host.fhr(o, u)),
|
|
7317
7393
|
getMirrorModels: () => this._getModels()
|
|
7318
7394
|
};
|
|
7319
|
-
return this._foreignModuleFactory ? (this._foreignModule = this._foreignModuleFactory(l, n), Promise.resolve(
|
|
7395
|
+
return this._foreignModuleFactory ? (this._foreignModule = this._foreignModuleFactory(l, n), Promise.resolve(Mt(this._foreignModule))) : Promise.reject(new Error("Unexpected usage"));
|
|
7320
7396
|
}
|
|
7321
7397
|
// foreign method request
|
|
7322
7398
|
fmr(t, n) {
|
|
@@ -7329,21 +7405,21 @@ class Ne {
|
|
|
7329
7405
|
}
|
|
7330
7406
|
}
|
|
7331
7407
|
}
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
typeof importScripts == "function" && (globalThis.monaco =
|
|
7335
|
-
let
|
|
7336
|
-
function
|
|
7337
|
-
if (
|
|
7408
|
+
Se._diffLimit = 1e5;
|
|
7409
|
+
Se._suggestionsLimit = 1e4;
|
|
7410
|
+
typeof importScripts == "function" && (globalThis.monaco = Mi());
|
|
7411
|
+
let jt = !1;
|
|
7412
|
+
function m1(e) {
|
|
7413
|
+
if (jt)
|
|
7338
7414
|
return;
|
|
7339
|
-
|
|
7340
|
-
const t = new
|
|
7415
|
+
jt = !0;
|
|
7416
|
+
const t = new qs((n) => {
|
|
7341
7417
|
globalThis.postMessage(n);
|
|
7342
|
-
}, (n) => new
|
|
7418
|
+
}, (n) => new Se(n, e));
|
|
7343
7419
|
globalThis.onmessage = (n) => {
|
|
7344
7420
|
t.onmessage(n.data);
|
|
7345
7421
|
};
|
|
7346
7422
|
}
|
|
7347
7423
|
globalThis.onmessage = (e) => {
|
|
7348
|
-
|
|
7424
|
+
jt || m1(null);
|
|
7349
7425
|
};
|