@arcgis/coding-components 5.1.0-next.95 → 5.1.0-next.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/dist/cdn/GHTOL7NB.js +2 -0
- package/dist/cdn/{55EKVOZS.js → GVMVHGSK.js} +1 -1
- package/dist/cdn/WP6BSOSW.js +2 -0
- package/dist/cdn/assets/code-editor/sql-layer.worker.js +619 -602
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +15 -17
- package/dist/components/arcgis-code-editor/customElement.js +88 -97
- package/dist/components/arcgis-sql-layer-editor/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/AEHKSYEZ.js +0 -2
- package/dist/cdn/E3VATROF.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class $s {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.listeners = [], this.unexpectedErrorHandler = function(e) {
|
|
4
4
|
setTimeout(() => {
|
|
@@ -23,11 +23,11 @@ class Us {
|
|
|
23
23
|
this.unexpectedErrorHandler(e);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const zs = new $s();
|
|
27
27
|
function dt(t) {
|
|
28
|
-
|
|
28
|
+
Ws(t) || zs.onUnexpectedError(t);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function $t(t) {
|
|
31
31
|
if (t instanceof Error) {
|
|
32
32
|
const { name: e, message: n, cause: r } = t, s = t.stacktrace || t.stack;
|
|
33
33
|
return {
|
|
@@ -36,19 +36,19 @@ function Ut(t) {
|
|
|
36
36
|
message: n,
|
|
37
37
|
stack: s,
|
|
38
38
|
noTelemetry: He.isErrorNoTelemetry(t),
|
|
39
|
-
cause: r ?
|
|
39
|
+
cause: r ? $t(r) : void 0,
|
|
40
40
|
code: t.code
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
function
|
|
47
|
-
return t instanceof cs ? !0 : t instanceof Error && t.name ===
|
|
45
|
+
const zt = "Canceled";
|
|
46
|
+
function Ws(t) {
|
|
47
|
+
return t instanceof cs ? !0 : t instanceof Error && t.name === zt && t.message === zt;
|
|
48
48
|
}
|
|
49
49
|
class cs extends Error {
|
|
50
50
|
constructor() {
|
|
51
|
-
super(
|
|
51
|
+
super(zt), this.name = this.message;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
class He extends Error {
|
|
@@ -70,10 +70,10 @@ class Z extends Error {
|
|
|
70
70
|
super(e || "An unexpected bug occurred."), Object.setPrototypeOf(this, Z.prototype);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Hs(t, e = "Unreachable") {
|
|
74
74
|
throw new Error(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Os(t, e = "unexpected state") {
|
|
77
77
|
if (!t)
|
|
78
78
|
throw typeof e == "string" ? new Z(`Assertion Failed: ${e}`) : e;
|
|
79
79
|
}
|
|
@@ -93,10 +93,10 @@ function hs(t, e) {
|
|
|
93
93
|
}
|
|
94
94
|
return !0;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Gs(t) {
|
|
97
97
|
return typeof t == "string";
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function js(t) {
|
|
100
100
|
return !!t && typeof t[Symbol.iterator] == "function";
|
|
101
101
|
}
|
|
102
102
|
var _t;
|
|
@@ -176,7 +176,7 @@ var _t;
|
|
|
176
176
|
t.flatMap = d;
|
|
177
177
|
function* w(...y) {
|
|
178
178
|
for (const _ of y)
|
|
179
|
-
|
|
179
|
+
js(_) ? yield* _ : yield _;
|
|
180
180
|
}
|
|
181
181
|
t.concat = w;
|
|
182
182
|
function N(y, _, A) {
|
|
@@ -247,10 +247,10 @@ function fs(t) {
|
|
|
247
247
|
} else if (t)
|
|
248
248
|
return t.dispose(), t;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Xs(...t) {
|
|
251
251
|
return Lt(() => fs(t));
|
|
252
252
|
}
|
|
253
|
-
class
|
|
253
|
+
class Qs {
|
|
254
254
|
constructor(e) {
|
|
255
255
|
this._isDisposed = !1, this._fn = e;
|
|
256
256
|
}
|
|
@@ -263,7 +263,7 @@ class Xs {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
function Lt(t) {
|
|
266
|
-
return new
|
|
266
|
+
return new Qs(t);
|
|
267
267
|
}
|
|
268
268
|
class ot {
|
|
269
269
|
static {
|
|
@@ -347,7 +347,7 @@ class O {
|
|
|
347
347
|
this.element = e, this.next = O.Undefined, this.prev = O.Undefined;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class Js {
|
|
351
351
|
constructor() {
|
|
352
352
|
this._first = O.Undefined, this._last = O.Undefined, this._size = 0;
|
|
353
353
|
}
|
|
@@ -413,13 +413,13 @@ class Qs {
|
|
|
413
413
|
yield e.element, e = e.next;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
const
|
|
417
|
-
class
|
|
416
|
+
const Zs = globalThis.performance.now.bind(globalThis.performance);
|
|
417
|
+
class Mt {
|
|
418
418
|
static create(e) {
|
|
419
|
-
return new
|
|
419
|
+
return new Mt(e);
|
|
420
420
|
}
|
|
421
421
|
constructor(e) {
|
|
422
|
-
this._now = e === !1 ? Date.now :
|
|
422
|
+
this._now = e === !1 ? Date.now : Zs, this._startTime = this._now(), this._stopTime = -1;
|
|
423
423
|
}
|
|
424
424
|
stop() {
|
|
425
425
|
this._stopTime = this._now();
|
|
@@ -431,7 +431,7 @@ class kt {
|
|
|
431
431
|
return this._stopTime !== -1 ? this._stopTime - this._startTime : this._now() - this._startTime;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
var
|
|
434
|
+
var Wt;
|
|
435
435
|
(function(t) {
|
|
436
436
|
t.None = () => rt.None;
|
|
437
437
|
function e(x, S) {
|
|
@@ -473,7 +473,7 @@ var zt;
|
|
|
473
473
|
t.signal = l;
|
|
474
474
|
function u(...x) {
|
|
475
475
|
return (S, k = null, R) => {
|
|
476
|
-
const T =
|
|
476
|
+
const T = Xs(...x.map((U) => U((W) => S.call(k, W))));
|
|
477
477
|
return f(T, R);
|
|
478
478
|
};
|
|
479
479
|
}
|
|
@@ -500,13 +500,13 @@ var zt;
|
|
|
500
500
|
}
|
|
501
501
|
function m(x, S, k = 100, R = !1, T = !1, U, W) {
|
|
502
502
|
let Q, Y, Ae, ut = 0, je;
|
|
503
|
-
const
|
|
503
|
+
const Bs = {
|
|
504
504
|
leakWarningThreshold: U,
|
|
505
505
|
onWillAddFirstListener() {
|
|
506
|
-
Q = x((
|
|
507
|
-
ut++, Y = S(Y,
|
|
508
|
-
const
|
|
509
|
-
Y = void 0, Ae = void 0, (!R || ut > 1) && ct.fire(
|
|
506
|
+
Q = x((qs) => {
|
|
507
|
+
ut++, Y = S(Y, qs), R && !Ae && (ct.fire(Y), Y = void 0), je = () => {
|
|
508
|
+
const Us = Y;
|
|
509
|
+
Y = void 0, Ae = void 0, (!R || ut > 1) && ct.fire(Us), ut = 0;
|
|
510
510
|
}, typeof k == "number" ? (Ae && clearTimeout(Ae), Ae = setTimeout(je, k)) : Ae === void 0 && (Ae = null, queueMicrotask(je));
|
|
511
511
|
});
|
|
512
512
|
},
|
|
@@ -516,7 +516,7 @@ var zt;
|
|
|
516
516
|
onDidRemoveLastListener() {
|
|
517
517
|
je = void 0, Q.dispose();
|
|
518
518
|
}
|
|
519
|
-
}, ct = new he(
|
|
519
|
+
}, ct = new he(Bs);
|
|
520
520
|
return W?.add(ct), ct.event;
|
|
521
521
|
}
|
|
522
522
|
t.debounce = m;
|
|
@@ -684,7 +684,7 @@ var zt;
|
|
|
684
684
|
};
|
|
685
685
|
}
|
|
686
686
|
t.fromObservableLight = q;
|
|
687
|
-
})(
|
|
687
|
+
})(Wt || (Wt = {}));
|
|
688
688
|
class vt {
|
|
689
689
|
static {
|
|
690
690
|
this.all = /* @__PURE__ */ new Set();
|
|
@@ -696,7 +696,7 @@ class vt {
|
|
|
696
696
|
this.listenerCount = 0, this.invocationCount = 0, this.elapsedOverall = 0, this.durations = [], this.name = `${e}_${vt._idPool++}`, vt.all.add(this);
|
|
697
697
|
}
|
|
698
698
|
start(e) {
|
|
699
|
-
this._stopWatch = new
|
|
699
|
+
this._stopWatch = new Mt(), this.listenerCount = e;
|
|
700
700
|
}
|
|
701
701
|
stop() {
|
|
702
702
|
if (this._stopWatch) {
|
|
@@ -705,12 +705,12 @@ class vt {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
let
|
|
709
|
-
class
|
|
708
|
+
let Ys = -1;
|
|
709
|
+
class hn {
|
|
710
710
|
static {
|
|
711
711
|
this._idPool = 1;
|
|
712
712
|
}
|
|
713
|
-
constructor(e, n, r = (
|
|
713
|
+
constructor(e, n, r = (hn._idPool++).toString(16).padStart(3, "0")) {
|
|
714
714
|
this._errorHandler = e, this.threshold = n, this.name = r, this._warnCountdown = 0;
|
|
715
715
|
}
|
|
716
716
|
dispose() {
|
|
@@ -726,7 +726,7 @@ class cn {
|
|
|
726
726
|
this._warnCountdown = r * 0.5;
|
|
727
727
|
const [i, a] = this.getMostFrequentStack(), l = `[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;
|
|
728
728
|
console.warn(l), console.warn(i);
|
|
729
|
-
const u = new
|
|
729
|
+
const u = new Ks(l, i);
|
|
730
730
|
this._errorHandler(u);
|
|
731
731
|
}
|
|
732
732
|
return () => {
|
|
@@ -743,10 +743,10 @@ class cn {
|
|
|
743
743
|
return e;
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
class
|
|
746
|
+
class fn {
|
|
747
747
|
static create() {
|
|
748
748
|
const e = new Error();
|
|
749
|
-
return new
|
|
749
|
+
return new fn(e.stack ?? "");
|
|
750
750
|
}
|
|
751
751
|
constructor(e) {
|
|
752
752
|
this.value = e;
|
|
@@ -757,25 +757,25 @@ class hn {
|
|
|
757
757
|
`));
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
class
|
|
760
|
+
class Ks extends Error {
|
|
761
761
|
constructor(e, n) {
|
|
762
762
|
super(e), this.name = "ListenerLeakError", this.stack = n;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
class
|
|
765
|
+
class ei extends Error {
|
|
766
766
|
constructor(e, n) {
|
|
767
767
|
super(e), this.name = "ListenerRefusalError", this.stack = n;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
class
|
|
770
|
+
class Tt {
|
|
771
771
|
constructor(e) {
|
|
772
772
|
this.value = e;
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
const
|
|
775
|
+
const ti = 2;
|
|
776
776
|
class he {
|
|
777
777
|
constructor(e) {
|
|
778
|
-
this._size = 0, this._options = e, this._leakageMon = this._options?.leakWarningThreshold ? new
|
|
778
|
+
this._size = 0, this._options = e, this._leakageMon = this._options?.leakWarningThreshold ? new hn(e?.onListenerError ?? dt, this._options?.leakWarningThreshold ?? Ys) : void 0, this._perfMon = this._options?._profName ? new vt(this._options._profName) : void 0, this._deliveryQueue = this._options?.deliveryQueue;
|
|
779
779
|
}
|
|
780
780
|
dispose() {
|
|
781
781
|
this._disposed || (this._disposed = !0, this._deliveryQueue?.current === this && this._deliveryQueue.reset(), this._listeners && (this._listeners = void 0, this._size = 0), this._options?.onDidRemoveLastListener?.(), this._leakageMon?.dispose());
|
|
@@ -789,15 +789,15 @@ class he {
|
|
|
789
789
|
if (this._leakageMon && this._size > this._leakageMon.threshold ** 2) {
|
|
790
790
|
const l = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
|
|
791
791
|
console.warn(l);
|
|
792
|
-
const u = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], c = new
|
|
792
|
+
const u = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], c = new ei(`${l}. HINT: Stack shows most frequent listener (${u[1]}-times)`, u[0]);
|
|
793
793
|
return (this._options?.onListenerError || dt)(c), rt.None;
|
|
794
794
|
}
|
|
795
795
|
if (this._disposed)
|
|
796
796
|
return rt.None;
|
|
797
797
|
n && (e = e.bind(n));
|
|
798
|
-
const s = new
|
|
798
|
+
const s = new Tt(e);
|
|
799
799
|
let i;
|
|
800
|
-
this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (s.stack =
|
|
800
|
+
this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (s.stack = fn.create(), i = this._leakageMon.check(s.stack, this._size + 1)), this._listeners ? this._listeners instanceof Tt ? (this._deliveryQueue ??= new ni(), this._listeners = [this._listeners, s]) : this._listeners.push(s) : (this._options?.onWillAddFirstListener?.(this), this._listeners = s, this._options?.onDidAddFirstListener?.(this)), this._options?.onDidAddListener?.(this), this._size++;
|
|
801
801
|
const a = Lt(() => {
|
|
802
802
|
i?.(), this._removeListener(s);
|
|
803
803
|
});
|
|
@@ -816,7 +816,7 @@ class he {
|
|
|
816
816
|
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");
|
|
817
817
|
this._size--, n[r] = void 0;
|
|
818
818
|
const s = this._deliveryQueue.current === this;
|
|
819
|
-
if (this._size *
|
|
819
|
+
if (this._size * ti <= n.length) {
|
|
820
820
|
let i = 0;
|
|
821
821
|
for (let a = 0; a < n.length; a++)
|
|
822
822
|
n[a] ? n[i++] = n[a] : s && i < this._deliveryQueue.end && (this._deliveryQueue.end--, i < this._deliveryQueue.i && this._deliveryQueue.i--);
|
|
@@ -849,7 +849,7 @@ class he {
|
|
|
849
849
|
* subscribers
|
|
850
850
|
*/
|
|
851
851
|
fire(e) {
|
|
852
|
-
if (this._deliveryQueue?.current && (this._deliverQueue(this._deliveryQueue), this._perfMon?.stop()), this._perfMon?.start(this._size), this._listeners) if (this._listeners instanceof
|
|
852
|
+
if (this._deliveryQueue?.current && (this._deliverQueue(this._deliveryQueue), this._perfMon?.stop()), this._perfMon?.start(this._size), this._listeners) if (this._listeners instanceof Tt)
|
|
853
853
|
this._deliver(this._listeners, e);
|
|
854
854
|
else {
|
|
855
855
|
const n = this._deliveryQueue;
|
|
@@ -861,7 +861,7 @@ class he {
|
|
|
861
861
|
return this._size > 0;
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
class
|
|
864
|
+
class ni {
|
|
865
865
|
constructor() {
|
|
866
866
|
this.i = -1, this.end = 0;
|
|
867
867
|
}
|
|
@@ -872,26 +872,26 @@ class ti {
|
|
|
872
872
|
this.i = this.end, this.current = void 0, this.value = void 0;
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function ri() {
|
|
876
876
|
return globalThis._VSCODE_NLS_MESSAGES;
|
|
877
877
|
}
|
|
878
878
|
function ms() {
|
|
879
879
|
return globalThis._VSCODE_NLS_LANGUAGE;
|
|
880
880
|
}
|
|
881
|
-
const
|
|
882
|
-
function
|
|
881
|
+
const si = ms() === "pseudo" || typeof document < "u" && document.location && typeof document.location.hash == "string" && document.location.hash.indexOf("pseudo=true") >= 0;
|
|
882
|
+
function yn(t, e) {
|
|
883
883
|
let n;
|
|
884
884
|
return e.length === 0 ? n = t : n = t.replace(/\{(\d+)\}/g, (r, s) => {
|
|
885
885
|
const i = s[0], a = e[i];
|
|
886
886
|
let l = r;
|
|
887
887
|
return typeof a == "string" ? l = a : (typeof a == "number" || typeof a == "boolean" || a === void 0 || a === null) && (l = String(a)), l;
|
|
888
|
-
}),
|
|
888
|
+
}), si && (n = "[" + n.replace(/[aouei]/g, "$&$&") + "]"), n;
|
|
889
889
|
}
|
|
890
890
|
function P(t, e, ...n) {
|
|
891
|
-
return
|
|
891
|
+
return yn(typeof t == "number" ? ii(t, e) : e, n);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
const n =
|
|
893
|
+
function ii(t, e) {
|
|
894
|
+
const n = ri()?.[t];
|
|
895
895
|
if (typeof n != "string") {
|
|
896
896
|
if (typeof e == "string")
|
|
897
897
|
return e;
|
|
@@ -900,24 +900,24 @@ function si(t, e) {
|
|
|
900
900
|
return n;
|
|
901
901
|
}
|
|
902
902
|
const Be = "en";
|
|
903
|
-
let
|
|
903
|
+
let Ht = !1, Ot = !1, Ft = !1, ht, Dt = Be, xn = Be, ai, pe;
|
|
904
904
|
const Ce = globalThis;
|
|
905
905
|
let te;
|
|
906
906
|
typeof Ce.vscode < "u" && typeof Ce.vscode.process < "u" ? te = Ce.vscode.process : typeof process < "u" && typeof process?.versions?.node == "string" && (te = process);
|
|
907
|
-
const
|
|
907
|
+
const oi = typeof te?.versions?.electron == "string", li = oi && te?.type === "renderer";
|
|
908
908
|
if (typeof te == "object") {
|
|
909
|
-
|
|
909
|
+
Ht = te.platform === "win32", Ot = te.platform === "darwin", Ft = te.platform === "linux", Ft && te.env.SNAP && te.env.SNAP_REVISION, te.env.CI || te.env.BUILD_ARTIFACTSTAGINGDIRECTORY || te.env.GITHUB_WORKSPACE, ht = Be, Dt = Be;
|
|
910
910
|
const t = te.env.VSCODE_NLS_CONFIG;
|
|
911
911
|
if (t)
|
|
912
912
|
try {
|
|
913
913
|
const e = JSON.parse(t);
|
|
914
|
-
ht = e.userLocale,
|
|
914
|
+
ht = e.userLocale, xn = e.osLocale, Dt = e.resolvedLanguage || Be, ai = e.languagePack?.translationsConfigFile;
|
|
915
915
|
} catch {
|
|
916
916
|
}
|
|
917
|
-
} else typeof navigator == "object" && !
|
|
918
|
-
const st =
|
|
917
|
+
} else typeof navigator == "object" && !li ? (pe = navigator.userAgent, Ht = pe.indexOf("Windows") >= 0, Ot = pe.indexOf("Macintosh") >= 0, (pe.indexOf("Macintosh") >= 0 || pe.indexOf("iPad") >= 0 || pe.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, Ft = pe.indexOf("Linux") >= 0, pe?.indexOf("Mobi") >= 0, Dt = ms() || Be, ht = navigator.language.toLowerCase(), xn = ht) : console.error("Unable to resolve platform.");
|
|
918
|
+
const st = Ht, ui = Ot, me = pe, ci = typeof Ce.postMessage == "function" && !Ce.importScripts;
|
|
919
919
|
(() => {
|
|
920
|
-
if (
|
|
920
|
+
if (ci) {
|
|
921
921
|
const t = [];
|
|
922
922
|
Ce.addEventListener("message", (n) => {
|
|
923
923
|
if (n.data && n.data.vscodeScheduleAsyncWork)
|
|
@@ -940,17 +940,17 @@ const st = Wt, li = Ht, me = pe, ui = typeof Ce.postMessage == "function" && !Ce
|
|
|
940
940
|
}
|
|
941
941
|
return (t) => setTimeout(t);
|
|
942
942
|
})();
|
|
943
|
-
const
|
|
943
|
+
const hi = !!(me && me.indexOf("Chrome") >= 0);
|
|
944
944
|
me && me.indexOf("Firefox") >= 0;
|
|
945
|
-
!
|
|
945
|
+
!hi && me && me.indexOf("Safari") >= 0;
|
|
946
946
|
me && me.indexOf("Edg/") >= 0;
|
|
947
947
|
me && me.indexOf("Android") >= 0;
|
|
948
|
-
function
|
|
948
|
+
function fi(t) {
|
|
949
949
|
return t;
|
|
950
950
|
}
|
|
951
|
-
class
|
|
951
|
+
class mi {
|
|
952
952
|
constructor(e, n) {
|
|
953
|
-
this.lastCache = void 0, this.lastArgKey = void 0, typeof e == "function" ? (this._fn = e, this._computeKey =
|
|
953
|
+
this.lastCache = void 0, this.lastArgKey = void 0, typeof e == "function" ? (this._fn = e, this._computeKey = fi) : (this._fn = n, this._computeKey = e.getCacheKey);
|
|
954
954
|
}
|
|
955
955
|
get(e) {
|
|
956
956
|
const n = this._computeKey(e);
|
|
@@ -961,7 +961,7 @@ var Re;
|
|
|
961
961
|
(function(t) {
|
|
962
962
|
t[t.Uninitialized = 0] = "Uninitialized", t[t.Running = 1] = "Running", t[t.Completed = 2] = "Completed";
|
|
963
963
|
})(Re || (Re = {}));
|
|
964
|
-
class
|
|
964
|
+
class Gt {
|
|
965
965
|
constructor(e) {
|
|
966
966
|
this.executor = e, this._state = Re.Uninitialized;
|
|
967
967
|
}
|
|
@@ -994,16 +994,16 @@ class Ot {
|
|
|
994
994
|
return this._value;
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function di(t) {
|
|
998
998
|
return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, "\\$&");
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function gi(t) {
|
|
1001
1001
|
return t.source === "^" || t.source === "^$" || t.source === "$" || t.source === "^\\s*$" ? !1 : !!(t.exec("") && t.lastIndex === 0);
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function pi(t) {
|
|
1004
1004
|
return t.split(/\r\n|\r|\n/);
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function bi(t) {
|
|
1007
1007
|
for (let e = 0, n = t.length; e < n; e++) {
|
|
1008
1008
|
const r = t.charCodeAt(e);
|
|
1009
1009
|
if (r !== 32 && r !== 9)
|
|
@@ -1011,7 +1011,7 @@ function pi(t) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
return -1;
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function wi(t, e = t.length - 1) {
|
|
1015
1015
|
for (let n = e; n >= 0; n--) {
|
|
1016
1016
|
const r = t.charCodeAt(n);
|
|
1017
1017
|
if (r !== 32 && r !== 9)
|
|
@@ -1022,7 +1022,7 @@ function bi(t, e = t.length - 1) {
|
|
|
1022
1022
|
function ds(t) {
|
|
1023
1023
|
return t >= 65 && t <= 90;
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function yi(t, e) {
|
|
1026
1026
|
const n = Math.min(t.length, e.length);
|
|
1027
1027
|
let r;
|
|
1028
1028
|
for (r = 0; r < n; r++)
|
|
@@ -1030,7 +1030,7 @@ function wi(t, e) {
|
|
|
1030
1030
|
return r;
|
|
1031
1031
|
return n;
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function xi(t, e) {
|
|
1034
1034
|
const n = Math.min(t.length, e.length);
|
|
1035
1035
|
let r;
|
|
1036
1036
|
const s = t.length - 1, i = e.length - 1;
|
|
@@ -1039,34 +1039,34 @@ function yi(t, e) {
|
|
|
1039
1039
|
return r;
|
|
1040
1040
|
return n;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function jt(t) {
|
|
1043
1043
|
return 55296 <= t && t <= 56319;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function _i(t) {
|
|
1046
1046
|
return 56320 <= t && t <= 57343;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Li(t, e) {
|
|
1049
1049
|
return (t - 55296 << 10) + (e - 56320) + 65536;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function vi(t, e, n) {
|
|
1052
1052
|
const r = t.charCodeAt(n);
|
|
1053
|
-
if (
|
|
1053
|
+
if (jt(r) && n + 1 < e) {
|
|
1054
1054
|
const s = t.charCodeAt(n + 1);
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1055
|
+
if (_i(s))
|
|
1056
|
+
return Li(r, s);
|
|
1057
1057
|
}
|
|
1058
1058
|
return r;
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1061
|
-
function
|
|
1062
|
-
return
|
|
1060
|
+
const Ni = /^[\t\n\r\x20-\x7E]*$/;
|
|
1061
|
+
function Si(t) {
|
|
1062
|
+
return Ni.test(t);
|
|
1063
1063
|
}
|
|
1064
1064
|
class ve {
|
|
1065
1065
|
static {
|
|
1066
|
-
this.ambiguousCharacterData = new Ot(() => 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,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,1523,96,8242,96,1370,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,118002,50,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,118003,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,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,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,118008,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,118009,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,117974,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,117975,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,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,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,117977,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,117978,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,117979,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,117980,71,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,117981,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,117983,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,117984,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,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,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,117985,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,117986,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,117987,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,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,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,117989,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,117990,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,117991,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,117992,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,117993,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,117994,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,117995,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,71910,87,71919,87,117996,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,117997,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,117998,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,71909,90,66293,90,65338,90,8484,90,8488,90,117999,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,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,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,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,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,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"pl":[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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,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,65297,49],"zh-hant":[8211,45,65374,126,8218,44,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]}'));
|
|
1066
|
+
this.ambiguousCharacterData = new Gt(() => 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,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,1523,96,8242,96,1370,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,118002,50,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,118003,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,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,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,118008,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,118009,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,117974,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,117975,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,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,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,117977,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,117978,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,117979,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,117980,71,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,117981,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,117983,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,117984,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,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,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,117985,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,117986,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,117987,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,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,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,117989,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,117990,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,117991,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,117992,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,117993,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,117994,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,117995,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,71910,87,71919,87,117996,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,117997,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,117998,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,71909,90,66293,90,65338,90,8484,90,8488,90,117999,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,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,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,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,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,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"pl":[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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,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,65297,49],"zh-hant":[8211,45,65374,126,8218,44,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]}'));
|
|
1067
1067
|
}
|
|
1068
1068
|
static {
|
|
1069
|
-
this.cache = new
|
|
1069
|
+
this.cache = new mi({ getCacheKey: JSON.stringify }, (e) => {
|
|
1070
1070
|
function n(h) {
|
|
1071
1071
|
const f = /* @__PURE__ */ new Map();
|
|
1072
1072
|
for (let m = 0; m < h.length; m += 2)
|
|
@@ -1103,7 +1103,7 @@ class ve {
|
|
|
1103
1103
|
return ve.cache.get(Array.from(e));
|
|
1104
1104
|
}
|
|
1105
1105
|
static {
|
|
1106
|
-
this._locales = new
|
|
1106
|
+
this._locales = new Gt(() => Object.keys(ve.ambiguousCharacterData.value).filter((e) => !e.startsWith("_")));
|
|
1107
1107
|
}
|
|
1108
1108
|
static getLocales() {
|
|
1109
1109
|
return ve._locales.value;
|
|
@@ -1142,33 +1142,33 @@ class Ee {
|
|
|
1142
1142
|
return Ee.getData();
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1146
|
-
class
|
|
1145
|
+
const It = "default", Ai = "$initialize";
|
|
1146
|
+
class Ri {
|
|
1147
1147
|
constructor(e, n, r, s, i) {
|
|
1148
1148
|
this.vsWorker = e, this.req = n, this.channel = r, this.method = s, this.args = i, this.type = 0;
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
|
-
class
|
|
1151
|
+
class _n {
|
|
1152
1152
|
constructor(e, n, r, s) {
|
|
1153
1153
|
this.vsWorker = e, this.seq = n, this.res = r, this.err = s, this.type = 1;
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
-
class
|
|
1156
|
+
class Ci {
|
|
1157
1157
|
constructor(e, n, r, s, i) {
|
|
1158
1158
|
this.vsWorker = e, this.req = n, this.channel = r, this.eventName = s, this.arg = i, this.type = 2;
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
|
-
class
|
|
1161
|
+
class Ei {
|
|
1162
1162
|
constructor(e, n, r) {
|
|
1163
1163
|
this.vsWorker = e, this.req = n, this.event = r, this.type = 3;
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
|
-
class
|
|
1166
|
+
class ki {
|
|
1167
1167
|
constructor(e, n) {
|
|
1168
1168
|
this.vsWorker = e, this.req = n, this.type = 4;
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
|
-
class
|
|
1171
|
+
class Mi {
|
|
1172
1172
|
constructor(e) {
|
|
1173
1173
|
this._workerId = -1, this._handler = e, this._lastSentReq = 0, this._pendingReplies = /* @__PURE__ */ Object.create(null), this._pendingEmitters = /* @__PURE__ */ new Map(), this._pendingEvents = /* @__PURE__ */ new Map();
|
|
1174
1174
|
}
|
|
@@ -1181,17 +1181,17 @@ class ki {
|
|
|
1181
1181
|
this._pendingReplies[s] = {
|
|
1182
1182
|
resolve: i,
|
|
1183
1183
|
reject: a
|
|
1184
|
-
}, this._send(new
|
|
1184
|
+
}, this._send(new Ri(this._workerId, s, e, n, r));
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
1187
|
listen(e, n, r) {
|
|
1188
1188
|
let s = null;
|
|
1189
1189
|
const i = new he({
|
|
1190
1190
|
onWillAddFirstListener: () => {
|
|
1191
|
-
s = String(++this._lastSentReq), this._pendingEmitters.set(s, i), this._send(new
|
|
1191
|
+
s = String(++this._lastSentReq), this._pendingEmitters.set(s, i), this._send(new Ci(this._workerId, s, e, n, r));
|
|
1192
1192
|
},
|
|
1193
1193
|
onDidRemoveLastListener: () => {
|
|
1194
|
-
this._pendingEmitters.delete(s), this._send(new
|
|
1194
|
+
this._pendingEmitters.delete(s), this._send(new ki(this._workerId, s)), s = null;
|
|
1195
1195
|
}
|
|
1196
1196
|
});
|
|
1197
1197
|
return i.event;
|
|
@@ -1239,14 +1239,14 @@ class ki {
|
|
|
1239
1239
|
_handleRequestMessage(e) {
|
|
1240
1240
|
const n = e.req;
|
|
1241
1241
|
this._handler.handleMessage(e.channel, e.method, e.args).then((s) => {
|
|
1242
|
-
this._send(new
|
|
1242
|
+
this._send(new _n(this._workerId, n, s, void 0));
|
|
1243
1243
|
}, (s) => {
|
|
1244
|
-
s.detail instanceof Error && (s.detail =
|
|
1244
|
+
s.detail instanceof Error && (s.detail = $t(s.detail)), this._send(new _n(this._workerId, n, void 0, $t(s)));
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
1247
|
_handleSubscribeEventMessage(e) {
|
|
1248
1248
|
const n = e.req, r = this._handler.handleEvent(e.channel, e.eventName, e.arg)((s) => {
|
|
1249
|
-
this._send(new
|
|
1249
|
+
this._send(new Ei(this._workerId, n, s));
|
|
1250
1250
|
});
|
|
1251
1251
|
this._pendingEvents.set(n, r);
|
|
1252
1252
|
}
|
|
@@ -1281,9 +1281,9 @@ function gs(t) {
|
|
|
1281
1281
|
function ps(t) {
|
|
1282
1282
|
return /^onDynamic/.test(t) && ds(t.charCodeAt(9));
|
|
1283
1283
|
}
|
|
1284
|
-
class
|
|
1284
|
+
class Pi {
|
|
1285
1285
|
constructor(e, n) {
|
|
1286
|
-
this._localChannels = /* @__PURE__ */ new Map(), this._remoteChannels = /* @__PURE__ */ new Map(), this._protocol = new
|
|
1286
|
+
this._localChannels = /* @__PURE__ */ new Map(), this._remoteChannels = /* @__PURE__ */ new Map(), this._protocol = new Mi({
|
|
1287
1287
|
sendMessage: (r, s) => {
|
|
1288
1288
|
e(r, s);
|
|
1289
1289
|
},
|
|
@@ -1295,9 +1295,9 @@ class Mi {
|
|
|
1295
1295
|
this._protocol.handleMessage(e);
|
|
1296
1296
|
}
|
|
1297
1297
|
_handleMessage(e, n, r) {
|
|
1298
|
-
if (e ===
|
|
1298
|
+
if (e === It && n === Ai)
|
|
1299
1299
|
return this.initialize(r[0]);
|
|
1300
|
-
const s = e ===
|
|
1300
|
+
const s = e === It ? this.requestHandler : this._localChannels.get(e);
|
|
1301
1301
|
if (!s)
|
|
1302
1302
|
return Promise.reject(new Error(`Missing channel ${e} on worker thread`));
|
|
1303
1303
|
const i = s[n];
|
|
@@ -1310,7 +1310,7 @@ class Mi {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
_handleEvent(e, n, r) {
|
|
1313
|
-
const s = e ===
|
|
1313
|
+
const s = e === It ? this.requestHandler : this._localChannels.get(e);
|
|
1314
1314
|
if (!s)
|
|
1315
1315
|
throw new Error(`Missing channel ${e} on worker thread`);
|
|
1316
1316
|
if (ps(n)) {
|
|
@@ -1341,12 +1341,12 @@ class Mi {
|
|
|
1341
1341
|
this._protocol.setWorkerId(e);
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
let
|
|
1345
|
-
function
|
|
1346
|
-
if (
|
|
1344
|
+
let Ln = !1;
|
|
1345
|
+
function Ti(t) {
|
|
1346
|
+
if (Ln)
|
|
1347
1347
|
throw new Error("WebWorker already initialized!");
|
|
1348
|
-
|
|
1349
|
-
const e = new
|
|
1348
|
+
Ln = !0;
|
|
1349
|
+
const e = new Pi((n) => globalThis.postMessage(n), (n) => t(n));
|
|
1350
1350
|
return globalThis.onmessage = (n) => {
|
|
1351
1351
|
e.onmessage(n.data);
|
|
1352
1352
|
}, e;
|
|
@@ -1372,17 +1372,17 @@ class ye {
|
|
|
1372
1372
|
return this.modifiedStart + this.modifiedLength;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
new
|
|
1376
|
-
function
|
|
1375
|
+
new Gt(() => new Uint8Array(256));
|
|
1376
|
+
function vn(t, e) {
|
|
1377
1377
|
return (e << 5) - e + t | 0;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1380
|
-
e =
|
|
1379
|
+
function Fi(t, e) {
|
|
1380
|
+
e = vn(149417, e);
|
|
1381
1381
|
for (let n = 0, r = t.length; n < r; n++)
|
|
1382
|
-
e =
|
|
1382
|
+
e = vn(t.charCodeAt(n), e);
|
|
1383
1383
|
return e;
|
|
1384
1384
|
}
|
|
1385
|
-
class
|
|
1385
|
+
class Nn {
|
|
1386
1386
|
constructor(e) {
|
|
1387
1387
|
this.source = e;
|
|
1388
1388
|
}
|
|
@@ -1393,8 +1393,8 @@ class vn {
|
|
|
1393
1393
|
return n;
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return new Le(new
|
|
1396
|
+
function Di(t, e, n) {
|
|
1397
|
+
return new Le(new Nn(t), new Nn(e)).ComputeDiff(n).changes;
|
|
1398
1398
|
}
|
|
1399
1399
|
class Pe {
|
|
1400
1400
|
static Assert(e, n) {
|
|
@@ -1427,7 +1427,7 @@ class Te {
|
|
|
1427
1427
|
r[s + a] = e[n + a];
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
class
|
|
1430
|
+
class Sn {
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Constructs a new DiffChangeHelper for the given DiffSequences.
|
|
1433
1433
|
*/
|
|
@@ -1490,7 +1490,7 @@ class Le {
|
|
|
1490
1490
|
if (Le._isStringArray(n)) {
|
|
1491
1491
|
const r = new Int32Array(n.length);
|
|
1492
1492
|
for (let s = 0, i = n.length; s < i; s++)
|
|
1493
|
-
r[s] =
|
|
1493
|
+
r[s] = Fi(n[s], 0);
|
|
1494
1494
|
return [n, r, !0];
|
|
1495
1495
|
}
|
|
1496
1496
|
return n instanceof Int32Array ? [[], n, !1] : [[], new Int32Array(n), !1];
|
|
@@ -1562,7 +1562,7 @@ class Le {
|
|
|
1562
1562
|
];
|
|
1563
1563
|
}
|
|
1564
1564
|
WALKTRACE(e, n, r, s, i, a, l, u, c, h, f, m, b, g, d, w, N, v) {
|
|
1565
|
-
let L = null, E = null, F = new
|
|
1565
|
+
let L = null, E = null, F = new Sn(), B = n, y = r, _ = b[0] - w[0] - s, A = -1073741824, D = this.m_forwardHistory.length - 1;
|
|
1566
1566
|
do {
|
|
1567
1567
|
const q = _ + e;
|
|
1568
1568
|
q === B || q < y && c[q - 1] < c[q + 1] ? (f = c[q + 1], g = f - _ - s, f < A && F.MarkNextChange(), A = f, F.AddModifiedElement(f + 1, g), _ = q + 1 - e) : (f = c[q - 1] + 1, g = f - _ - s, f < A && F.MarkNextChange(), A = f - 1, F.AddOriginalElement(f, g + 1), _ = q - 1 - e), D >= 0 && (c = this.m_forwardHistory[D], e = c[0], B = 1, y = c.length - 1);
|
|
@@ -1577,7 +1577,7 @@ class Le {
|
|
|
1577
1577
|
new ye(q, m - q + 1, x, d - x + 1)
|
|
1578
1578
|
];
|
|
1579
1579
|
} else {
|
|
1580
|
-
F = new
|
|
1580
|
+
F = new Sn(), B = a, y = l, _ = b[0] - w[0] - u, A = 1073741824, D = N ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;
|
|
1581
1581
|
do {
|
|
1582
1582
|
const q = _ + i;
|
|
1583
1583
|
q === B || q < y && h[q - 1] >= h[q + 1] ? (f = h[q + 1] - 1, g = f - _ - u, f > A && F.MarkNextChange(), A = f + 1, F.AddOriginalElement(f + 1, g + 1), _ = q + 1 - i) : (f = h[q - 1], g = f - _ - u, f > A && F.MarkNextChange(), A = f, F.AddModifiedElement(f + 1, g + 1), _ = q - 1 - i), D >= 0 && (h = this.m_reverseHistory[D], i = h[0], B = 1, y = h.length - 1);
|
|
@@ -2162,23 +2162,23 @@ class C {
|
|
|
2162
2162
|
return this;
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function An(t) {
|
|
2166
2166
|
return t < 0 ? 0 : t > 255 ? 255 : t | 0;
|
|
2167
2167
|
}
|
|
2168
2168
|
function Fe(t) {
|
|
2169
2169
|
return t < 0 ? 0 : t > 4294967295 ? 4294967295 : t | 0;
|
|
2170
2170
|
}
|
|
2171
|
-
class
|
|
2171
|
+
class mn {
|
|
2172
2172
|
constructor(e) {
|
|
2173
|
-
const n =
|
|
2174
|
-
this._defaultValue = n, this._asciiMap =
|
|
2173
|
+
const n = An(e);
|
|
2174
|
+
this._defaultValue = n, this._asciiMap = mn._createAsciiMap(n), this._map = /* @__PURE__ */ new Map();
|
|
2175
2175
|
}
|
|
2176
2176
|
static _createAsciiMap(e) {
|
|
2177
2177
|
const n = new Uint8Array(256);
|
|
2178
2178
|
return n.fill(e), n;
|
|
2179
2179
|
}
|
|
2180
2180
|
set(e, n) {
|
|
2181
|
-
const r =
|
|
2181
|
+
const r = An(n);
|
|
2182
2182
|
e >= 0 && e < 256 ? this._asciiMap[e] = r : this._map.set(e, r);
|
|
2183
2183
|
}
|
|
2184
2184
|
get(e) {
|
|
@@ -2188,7 +2188,7 @@ class fn {
|
|
|
2188
2188
|
this._asciiMap.fill(this._defaultValue), this._map.clear();
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
|
-
class
|
|
2191
|
+
class Ii {
|
|
2192
2192
|
constructor(e, n, r) {
|
|
2193
2193
|
const s = new Uint8Array(e * n);
|
|
2194
2194
|
for (let i = 0, a = e * n; i < a; i++)
|
|
@@ -2202,7 +2202,7 @@ class Di {
|
|
|
2202
2202
|
this._data[e * this.cols + n] = r;
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
|
-
class
|
|
2205
|
+
class Vi {
|
|
2206
2206
|
constructor(e) {
|
|
2207
2207
|
let n = 0, r = 0;
|
|
2208
2208
|
for (let i = 0, a = e.length; i < a; i++) {
|
|
@@ -2210,7 +2210,7 @@ class Ii {
|
|
|
2210
2210
|
u > n && (n = u), l > r && (r = l), c > r && (r = c);
|
|
2211
2211
|
}
|
|
2212
2212
|
n++, r++;
|
|
2213
|
-
const s = new
|
|
2213
|
+
const s = new Ii(
|
|
2214
2214
|
r,
|
|
2215
2215
|
n,
|
|
2216
2216
|
0
|
|
@@ -2226,9 +2226,9 @@ class Ii {
|
|
|
2226
2226
|
return n < 0 || n >= this._maxCharCode ? 0 : this._states.get(e, n);
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
let
|
|
2230
|
-
function
|
|
2231
|
-
return
|
|
2229
|
+
let Vt = null;
|
|
2230
|
+
function Bi() {
|
|
2231
|
+
return Vt === null && (Vt = new Vi([
|
|
2232
2232
|
[
|
|
2233
2233
|
1,
|
|
2234
2234
|
104,
|
|
@@ -2361,12 +2361,12 @@ function Vi() {
|
|
|
2361
2361
|
12
|
|
2362
2362
|
/* State.End */
|
|
2363
2363
|
]
|
|
2364
|
-
])),
|
|
2364
|
+
])), Vt;
|
|
2365
2365
|
}
|
|
2366
2366
|
let Xe = null;
|
|
2367
|
-
function
|
|
2367
|
+
function qi() {
|
|
2368
2368
|
if (Xe === null) {
|
|
2369
|
-
Xe = new
|
|
2369
|
+
Xe = new mn(
|
|
2370
2370
|
0
|
|
2371
2371
|
/* CharacterClass.None */
|
|
2372
2372
|
);
|
|
@@ -2410,8 +2410,8 @@ class Nt {
|
|
|
2410
2410
|
url: n.substring(s, a + 1)
|
|
2411
2411
|
};
|
|
2412
2412
|
}
|
|
2413
|
-
static computeLinks(e, n =
|
|
2414
|
-
const r =
|
|
2413
|
+
static computeLinks(e, n = Bi()) {
|
|
2414
|
+
const r = qi(), s = [];
|
|
2415
2415
|
for (let i = 1, a = e.getLineCount(); i <= a; i++) {
|
|
2416
2416
|
const l = e.getLineContent(i), u = l.length;
|
|
2417
2417
|
let c = 0, h = 0, f = 0, m = 1, b = !1, g = !1, d = !1, w = !1;
|
|
@@ -2468,10 +2468,10 @@ class Nt {
|
|
|
2468
2468
|
return s;
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
function
|
|
2471
|
+
function Ui(t) {
|
|
2472
2472
|
return !t || typeof t.getLineCount != "function" || typeof t.getLineContent != "function" ? [] : Nt.computeLinks(t);
|
|
2473
2473
|
}
|
|
2474
|
-
class
|
|
2474
|
+
class dn {
|
|
2475
2475
|
constructor() {
|
|
2476
2476
|
this._defaultValueSet = [
|
|
2477
2477
|
["true", "false"],
|
|
@@ -2481,7 +2481,7 @@ class mn {
|
|
|
2481
2481
|
];
|
|
2482
2482
|
}
|
|
2483
2483
|
static {
|
|
2484
|
-
this.INSTANCE = new
|
|
2484
|
+
this.INSTANCE = new dn();
|
|
2485
2485
|
}
|
|
2486
2486
|
navigateValueSet(e, n, r, s, i) {
|
|
2487
2487
|
if (e && n) {
|
|
@@ -2539,7 +2539,7 @@ var St;
|
|
|
2539
2539
|
}
|
|
2540
2540
|
t.isCancellationToken = e, t.None = Object.freeze({
|
|
2541
2541
|
isCancellationRequested: !1,
|
|
2542
|
-
onCancellationRequested:
|
|
2542
|
+
onCancellationRequested: Wt.None
|
|
2543
2543
|
}), t.Cancelled = Object.freeze({
|
|
2544
2544
|
isCancellationRequested: !0,
|
|
2545
2545
|
onCancellationRequested: bs
|
|
@@ -2562,7 +2562,7 @@ class gt {
|
|
|
2562
2562
|
this._emitter && (this._emitter.dispose(), this._emitter = null);
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
|
-
class
|
|
2565
|
+
class $i {
|
|
2566
2566
|
constructor(e) {
|
|
2567
2567
|
this._token = void 0, this._parentListener = void 0, this._parentListener = e && e.onCancellationRequested(this.cancel, this);
|
|
2568
2568
|
}
|
|
@@ -2576,7 +2576,7 @@ class Ui {
|
|
|
2576
2576
|
e && this.cancel(), this._parentListener?.dispose(), this._token ? this._token instanceof gt && this._token.dispose() : this._token = St.None;
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
|
-
class
|
|
2579
|
+
class gn {
|
|
2580
2580
|
constructor() {
|
|
2581
2581
|
this._keyCodeToStr = [], this._strToKeyCode = /* @__PURE__ */ Object.create(null);
|
|
2582
2582
|
}
|
|
@@ -2590,7 +2590,7 @@ class dn {
|
|
|
2590
2590
|
return this._strToKeyCode[e.toLowerCase()] || 0;
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
|
-
const pt = new
|
|
2593
|
+
const pt = new gn(), Xt = new gn(), Qt = new gn(), zi = new Array(230), Wi = /* @__PURE__ */ Object.create(null), Hi = /* @__PURE__ */ Object.create(null);
|
|
2594
2594
|
(function() {
|
|
2595
2595
|
const e = [
|
|
2596
2596
|
// immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel
|
|
@@ -2829,15 +2829,15 @@ const pt = new dn(), jt = new dn(), Xt = new dn(), $i = new Array(230), zi = /*
|
|
|
2829
2829
|
], n = [], r = [];
|
|
2830
2830
|
for (const s of e) {
|
|
2831
2831
|
const [i, a, l, u, c, h, f, m, b] = s;
|
|
2832
|
-
if (r[a] || (r[a] = !0,
|
|
2832
|
+
if (r[a] || (r[a] = !0, Wi[l] = a, Hi[l.toLowerCase()] = a), !n[u]) {
|
|
2833
2833
|
if (n[u] = !0, !c)
|
|
2834
2834
|
throw new Error(`String representation missing for key code ${u} around scan code ${l}`);
|
|
2835
|
-
pt.define(u, c),
|
|
2835
|
+
pt.define(u, c), Xt.define(u, m || c), Qt.define(u, b || m || c);
|
|
2836
2836
|
}
|
|
2837
|
-
h && (
|
|
2837
|
+
h && (zi[h] = u);
|
|
2838
2838
|
}
|
|
2839
2839
|
})();
|
|
2840
|
-
var
|
|
2840
|
+
var Rn;
|
|
2841
2841
|
(function(t) {
|
|
2842
2842
|
function e(l) {
|
|
2843
2843
|
return pt.keyCodeToStr(l);
|
|
@@ -2848,15 +2848,15 @@ var An;
|
|
|
2848
2848
|
}
|
|
2849
2849
|
t.fromString = n;
|
|
2850
2850
|
function r(l) {
|
|
2851
|
-
return
|
|
2851
|
+
return Xt.keyCodeToStr(l);
|
|
2852
2852
|
}
|
|
2853
2853
|
t.toUserSettingsUS = r;
|
|
2854
2854
|
function s(l) {
|
|
2855
|
-
return
|
|
2855
|
+
return Qt.keyCodeToStr(l);
|
|
2856
2856
|
}
|
|
2857
2857
|
t.toUserSettingsGeneral = s;
|
|
2858
2858
|
function i(l) {
|
|
2859
|
-
return
|
|
2859
|
+
return Xt.strToKeyCode(l) || Qt.strToKeyCode(l);
|
|
2860
2860
|
}
|
|
2861
2861
|
t.fromUserSettings = i;
|
|
2862
2862
|
function a(l) {
|
|
@@ -2875,15 +2875,15 @@ var An;
|
|
|
2875
2875
|
return pt.keyCodeToStr(l);
|
|
2876
2876
|
}
|
|
2877
2877
|
t.toElectronAccelerator = a;
|
|
2878
|
-
})(
|
|
2879
|
-
function
|
|
2878
|
+
})(Rn || (Rn = {}));
|
|
2879
|
+
function Oi(t, e) {
|
|
2880
2880
|
const n = (e & 65535) << 16 >>> 0;
|
|
2881
2881
|
return (t | n) >>> 0;
|
|
2882
2882
|
}
|
|
2883
2883
|
let $e;
|
|
2884
|
-
const
|
|
2885
|
-
if (typeof
|
|
2886
|
-
const t =
|
|
2884
|
+
const Bt = globalThis.vscode;
|
|
2885
|
+
if (typeof Bt < "u" && typeof Bt.process < "u") {
|
|
2886
|
+
const t = Bt.process;
|
|
2887
2887
|
$e = {
|
|
2888
2888
|
get platform() {
|
|
2889
2889
|
return t.platform;
|
|
@@ -2914,7 +2914,7 @@ if (typeof Vt < "u" && typeof Vt.process < "u") {
|
|
|
2914
2914
|
} : $e = {
|
|
2915
2915
|
// Supported
|
|
2916
2916
|
get platform() {
|
|
2917
|
-
return st ? "win32" :
|
|
2917
|
+
return st ? "win32" : ui ? "darwin" : "linux";
|
|
2918
2918
|
},
|
|
2919
2919
|
get arch() {
|
|
2920
2920
|
},
|
|
@@ -2926,7 +2926,7 @@ if (typeof Vt < "u" && typeof Vt.process < "u") {
|
|
|
2926
2926
|
return "/";
|
|
2927
2927
|
}
|
|
2928
2928
|
};
|
|
2929
|
-
const At = $e.cwd,
|
|
2929
|
+
const At = $e.cwd, Gi = $e.env, ji = $e.platform, Xi = 65, Qi = 97, Ji = 90, Zi = 122, ke = 46, J = 47, ee = 92, de = 58, Yi = 63;
|
|
2930
2930
|
class ws extends Error {
|
|
2931
2931
|
constructor(e, n, r) {
|
|
2932
2932
|
let s;
|
|
@@ -2936,7 +2936,7 @@ class ws extends Error {
|
|
|
2936
2936
|
a += `. Received type ${typeof r}`, super(a), this.code = "ERR_INVALID_ARG_TYPE";
|
|
2937
2937
|
}
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2939
|
+
function Ki(t, e) {
|
|
2940
2940
|
if (t === null || typeof t != "object")
|
|
2941
2941
|
throw new ws(e, "Object", t);
|
|
2942
2942
|
}
|
|
@@ -2944,15 +2944,15 @@ function X(t, e) {
|
|
|
2944
2944
|
if (typeof t != "string")
|
|
2945
2945
|
throw new ws(e, "string", t);
|
|
2946
2946
|
}
|
|
2947
|
-
const Se =
|
|
2947
|
+
const Se = ji === "win32";
|
|
2948
2948
|
function V(t) {
|
|
2949
2949
|
return t === J || t === ee;
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function Jt(t) {
|
|
2952
2952
|
return t === J;
|
|
2953
2953
|
}
|
|
2954
2954
|
function ge(t) {
|
|
2955
|
-
return t >=
|
|
2955
|
+
return t >= Xi && t <= Ji || t >= Qi && t <= Zi;
|
|
2956
2956
|
}
|
|
2957
2957
|
function Rt(t, e, n, r) {
|
|
2958
2958
|
let s = "", i = 0, a = -1, l = 0, u = 0;
|
|
@@ -2984,12 +2984,12 @@ function Rt(t, e, n, r) {
|
|
|
2984
2984
|
}
|
|
2985
2985
|
return s;
|
|
2986
2986
|
}
|
|
2987
|
-
function
|
|
2987
|
+
function ea(t) {
|
|
2988
2988
|
return t ? `${t[0] === "." ? "" : "."}${t}` : "";
|
|
2989
2989
|
}
|
|
2990
2990
|
function ys(t, e) {
|
|
2991
|
-
|
|
2992
|
-
const n = e.dir || e.root, r = e.base || `${e.name || ""}${
|
|
2991
|
+
Ki(e, "pathObject");
|
|
2992
|
+
const n = e.dir || e.root, r = e.base || `${e.name || ""}${ea(e.ext)}`;
|
|
2993
2993
|
return n ? n === e.root ? `${n}${r}` : `${n}${t}${r}` : r;
|
|
2994
2994
|
}
|
|
2995
2995
|
const K = {
|
|
@@ -3001,7 +3001,7 @@ const K = {
|
|
|
3001
3001
|
if (s >= 0) {
|
|
3002
3002
|
if (i = t[s], X(i, `paths[${s}]`), i.length === 0)
|
|
3003
3003
|
continue;
|
|
3004
|
-
} else e.length === 0 ? i = At() : (i =
|
|
3004
|
+
} else e.length === 0 ? i = At() : (i = Gi[`=${e}`] || At(), (i === void 0 || i.slice(0, 2).toLowerCase() !== e.toLowerCase() && i.charCodeAt(2) === ee) && (i = `${e}\\`));
|
|
3005
3005
|
const a = i.length;
|
|
3006
3006
|
let l = 0, u = "", c = !1;
|
|
3007
3007
|
const h = i.charCodeAt(0);
|
|
@@ -3047,7 +3047,7 @@ const K = {
|
|
|
3047
3047
|
let n = 0, r, s = !1;
|
|
3048
3048
|
const i = t.charCodeAt(0);
|
|
3049
3049
|
if (e === 1)
|
|
3050
|
-
return
|
|
3050
|
+
return Jt(i) ? "\\" : t;
|
|
3051
3051
|
if (V(i))
|
|
3052
3052
|
if (s = !0, V(t.charCodeAt(1))) {
|
|
3053
3053
|
let l = 2, u = l;
|
|
@@ -3178,7 +3178,7 @@ const K = {
|
|
|
3178
3178
|
if (e.charCodeAt(0) === ee) {
|
|
3179
3179
|
if (e.charCodeAt(1) === ee) {
|
|
3180
3180
|
const n = e.charCodeAt(2);
|
|
3181
|
-
if (n !==
|
|
3181
|
+
if (n !== Yi && n !== ke)
|
|
3182
3182
|
return `\\\\?\\UNC\\${e.slice(2)}`;
|
|
3183
3183
|
}
|
|
3184
3184
|
} else if (ge(e.charCodeAt(0)) && e.charCodeAt(1) === de && e.charCodeAt(2) === ee)
|
|
@@ -3329,7 +3329,7 @@ const K = {
|
|
|
3329
3329
|
delimiter: ";",
|
|
3330
3330
|
win32: null,
|
|
3331
3331
|
posix: null
|
|
3332
|
-
},
|
|
3332
|
+
}, ta = (() => {
|
|
3333
3333
|
if (Se) {
|
|
3334
3334
|
const t = /\\/g;
|
|
3335
3335
|
return () => {
|
|
@@ -3347,16 +3347,16 @@ const K = {
|
|
|
3347
3347
|
X(s, `paths[${r}]`), s.length !== 0 && (e = `${s}/${e}`, n = s.charCodeAt(0) === J);
|
|
3348
3348
|
}
|
|
3349
3349
|
if (!n) {
|
|
3350
|
-
const r =
|
|
3350
|
+
const r = ta();
|
|
3351
3351
|
e = `${r}/${e}`, n = r.charCodeAt(0) === J;
|
|
3352
3352
|
}
|
|
3353
|
-
return e = Rt(e, !n, "/",
|
|
3353
|
+
return e = Rt(e, !n, "/", Jt), n ? `/${e}` : e.length > 0 ? e : ".";
|
|
3354
3354
|
},
|
|
3355
3355
|
normalize(t) {
|
|
3356
3356
|
if (X(t, "path"), t.length === 0)
|
|
3357
3357
|
return ".";
|
|
3358
3358
|
const e = t.charCodeAt(0) === J, n = t.charCodeAt(t.length - 1) === J;
|
|
3359
|
-
return t = Rt(t, !e, "/",
|
|
3359
|
+
return t = Rt(t, !e, "/", Jt), t.length === 0 ? e ? "/" : n ? "./" : "." : (n && (t += "/"), e ? `/${t}` : t);
|
|
3360
3360
|
},
|
|
3361
3361
|
isAbsolute(t) {
|
|
3362
3362
|
return X(t, "path"), t.length > 0 && t.charCodeAt(0) === J;
|
|
@@ -3501,24 +3501,24 @@ Se ? K.dirname : ne.dirname;
|
|
|
3501
3501
|
Se ? K.basename : ne.basename;
|
|
3502
3502
|
Se ? K.extname : ne.extname;
|
|
3503
3503
|
Se ? K.sep : ne.sep;
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3504
|
+
const na = /^\w[\w\d+.-]*$/, ra = /^\//, sa = /^\/\//;
|
|
3505
|
+
function ia(t, e) {
|
|
3506
3506
|
if (!t.scheme && e)
|
|
3507
3507
|
throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);
|
|
3508
|
-
if (t.scheme && !
|
|
3508
|
+
if (t.scheme && !na.test(t.scheme))
|
|
3509
3509
|
throw new Error("[UriError]: Scheme contains illegal characters.");
|
|
3510
3510
|
if (t.path) {
|
|
3511
3511
|
if (t.authority) {
|
|
3512
|
-
if (!
|
|
3512
|
+
if (!ra.test(t.path))
|
|
3513
3513
|
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');
|
|
3514
|
-
} else if (
|
|
3514
|
+
} else if (sa.test(t.path))
|
|
3515
3515
|
throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
|
|
3516
3516
|
}
|
|
3517
3517
|
}
|
|
3518
|
-
function
|
|
3518
|
+
function aa(t, e) {
|
|
3519
3519
|
return !t && !e ? "file" : t;
|
|
3520
3520
|
}
|
|
3521
|
-
function
|
|
3521
|
+
function oa(t, e) {
|
|
3522
3522
|
switch (t) {
|
|
3523
3523
|
case "https":
|
|
3524
3524
|
case "http":
|
|
@@ -3528,7 +3528,7 @@ function aa(t, e) {
|
|
|
3528
3528
|
}
|
|
3529
3529
|
return e;
|
|
3530
3530
|
}
|
|
3531
|
-
const H = "", ue = "/",
|
|
3531
|
+
const H = "", ue = "/", la = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
|
|
3532
3532
|
class Me {
|
|
3533
3533
|
static isUri(e) {
|
|
3534
3534
|
return e instanceof Me ? !0 : !e || typeof e != "object" ? !1 : typeof e.authority == "string" && typeof e.fragment == "string" && typeof e.path == "string" && typeof e.query == "string" && typeof e.scheme == "string" && typeof e.fsPath == "string" && typeof e.with == "function" && typeof e.toString == "function";
|
|
@@ -3537,7 +3537,7 @@ class Me {
|
|
|
3537
3537
|
* @internal
|
|
3538
3538
|
*/
|
|
3539
3539
|
constructor(e, n, r, s, i, a = !1) {
|
|
3540
|
-
typeof e == "object" ? (this.scheme = e.scheme || H, this.authority = e.authority || H, this.path = e.path || H, this.query = e.query || H, this.fragment = e.fragment || H) : (this.scheme =
|
|
3540
|
+
typeof e == "object" ? (this.scheme = e.scheme || H, this.authority = e.authority || H, this.path = e.path || H, this.query = e.query || H, this.fragment = e.fragment || H) : (this.scheme = aa(e, a), this.authority = n || H, this.path = oa(this.scheme, r || H), this.query = s || H, this.fragment = i || H, ia(this, a));
|
|
3541
3541
|
}
|
|
3542
3542
|
// ---- filesystem path -----------------------
|
|
3543
3543
|
/**
|
|
@@ -3565,7 +3565,7 @@ class Me {
|
|
|
3565
3565
|
* with URIs that represent files on disk (`file` scheme).
|
|
3566
3566
|
*/
|
|
3567
3567
|
get fsPath() {
|
|
3568
|
-
return
|
|
3568
|
+
return Zt(this, !1);
|
|
3569
3569
|
}
|
|
3570
3570
|
// ---- modify to new -------------------------
|
|
3571
3571
|
with(e) {
|
|
@@ -3582,7 +3582,7 @@ class Me {
|
|
|
3582
3582
|
* @param value A string which represents an URI (see `URI#toString`).
|
|
3583
3583
|
*/
|
|
3584
3584
|
static parse(e, n = !1) {
|
|
3585
|
-
const r =
|
|
3585
|
+
const r = la.exec(e);
|
|
3586
3586
|
return r ? new De(r[2] || H, ft(r[4] || H), ft(r[5] || H), ft(r[7] || H), ft(r[9] || H), n) : new De(H, H, H, H, H);
|
|
3587
3587
|
}
|
|
3588
3588
|
/**
|
|
@@ -3635,7 +3635,7 @@ class Me {
|
|
|
3635
3635
|
if (!e.path)
|
|
3636
3636
|
throw new Error("[UriError]: cannot call joinPath on URI without path");
|
|
3637
3637
|
let r;
|
|
3638
|
-
return st && e.scheme === "file" ? r = Me.file(K.join(
|
|
3638
|
+
return st && e.scheme === "file" ? r = Me.file(K.join(Zt(e, !0), ...n)).path : r = ne.join(e.path, ...n), e.with({ path: r });
|
|
3639
3639
|
}
|
|
3640
3640
|
// ---- printing/externalize ---------------------------
|
|
3641
3641
|
/**
|
|
@@ -3650,7 +3650,7 @@ class Me {
|
|
|
3650
3650
|
* @param skipEncoding Do not encode the result, default is `false`
|
|
3651
3651
|
*/
|
|
3652
3652
|
toString(e = !1) {
|
|
3653
|
-
return
|
|
3653
|
+
return Yt(this, e);
|
|
3654
3654
|
}
|
|
3655
3655
|
toJSON() {
|
|
3656
3656
|
return this;
|
|
@@ -3672,10 +3672,10 @@ class De extends Me {
|
|
|
3672
3672
|
super(...arguments), this._formatted = null, this._fsPath = null;
|
|
3673
3673
|
}
|
|
3674
3674
|
get fsPath() {
|
|
3675
|
-
return this._fsPath || (this._fsPath =
|
|
3675
|
+
return this._fsPath || (this._fsPath = Zt(this, !1)), this._fsPath;
|
|
3676
3676
|
}
|
|
3677
3677
|
toString(e = !1) {
|
|
3678
|
-
return e ?
|
|
3678
|
+
return e ? Yt(this, !0) : (this._formatted || (this._formatted = Yt(this, !1)), this._formatted);
|
|
3679
3679
|
}
|
|
3680
3680
|
toJSON() {
|
|
3681
3681
|
const e = {
|
|
@@ -3708,7 +3708,7 @@ const _s = {
|
|
|
3708
3708
|
61: "%3D",
|
|
3709
3709
|
32: "%20"
|
|
3710
3710
|
};
|
|
3711
|
-
function
|
|
3711
|
+
function Cn(t, e, n) {
|
|
3712
3712
|
let r, s = -1;
|
|
3713
3713
|
for (let i = 0; i < t.length; i++) {
|
|
3714
3714
|
const a = t.charCodeAt(i);
|
|
@@ -3722,7 +3722,7 @@ function Rn(t, e, n) {
|
|
|
3722
3722
|
}
|
|
3723
3723
|
return s !== -1 && (r += encodeURIComponent(t.substring(s))), r !== void 0 ? r : t;
|
|
3724
3724
|
}
|
|
3725
|
-
function
|
|
3725
|
+
function ua(t) {
|
|
3726
3726
|
let e;
|
|
3727
3727
|
for (let n = 0; n < t.length; n++) {
|
|
3728
3728
|
const r = t.charCodeAt(n);
|
|
@@ -3730,12 +3730,12 @@ function la(t) {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
return e !== void 0 ? e : t;
|
|
3732
3732
|
}
|
|
3733
|
-
function
|
|
3733
|
+
function Zt(t, e) {
|
|
3734
3734
|
let n;
|
|
3735
3735
|
return t.authority && t.path.length > 1 && t.scheme === "file" ? n = `//${t.authority}${t.path}` : t.path.charCodeAt(0) === 47 && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && t.path.charCodeAt(2) === 58 ? e ? n = t.path.substr(1) : n = t.path[1].toLowerCase() + t.path.substr(2) : n = t.path, st && (n = n.replace(/\//g, "\\")), n;
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3738
|
-
const n = e ?
|
|
3737
|
+
function Yt(t, e) {
|
|
3738
|
+
const n = e ? ua : Cn;
|
|
3739
3739
|
let r = "", { scheme: s, authority: i, path: a, query: l, fragment: u } = t;
|
|
3740
3740
|
if (s && (r += s, r += ":"), (i || s === "file") && (r += ue, r += ue), i) {
|
|
3741
3741
|
let c = i.indexOf("@");
|
|
@@ -3755,7 +3755,7 @@ function Zt(t, e) {
|
|
|
3755
3755
|
}
|
|
3756
3756
|
r += n(a, !0, !1);
|
|
3757
3757
|
}
|
|
3758
|
-
return l && (r += "?", r += n(l, !1, !1)), u && (r += "#", r += e ? u :
|
|
3758
|
+
return l && (r += "?", r += n(l, !1, !1)), u && (r += "#", r += e ? u : Cn(u, !1, !1)), r;
|
|
3759
3759
|
}
|
|
3760
3760
|
function Ls(t) {
|
|
3761
3761
|
try {
|
|
@@ -3764,9 +3764,9 @@ function Ls(t) {
|
|
|
3764
3764
|
return t.length > 3 ? t.substr(0, 3) + Ls(t.substr(3)) : t;
|
|
3765
3765
|
}
|
|
3766
3766
|
}
|
|
3767
|
-
const
|
|
3767
|
+
const En = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
|
|
3768
3768
|
function ft(t) {
|
|
3769
|
-
return t.match(
|
|
3769
|
+
return t.match(En) ? t.replace(En, (e) => Ls(e)) : t;
|
|
3770
3770
|
}
|
|
3771
3771
|
class re extends C {
|
|
3772
3772
|
constructor(e, n, r, s) {
|
|
@@ -3867,17 +3867,17 @@ class re extends C {
|
|
|
3867
3867
|
return i === 0 ? new re(e, n, r, s) : new re(r, s, e, n);
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
3870
|
-
const
|
|
3870
|
+
const kn = /* @__PURE__ */ Object.create(null);
|
|
3871
3871
|
function o(t, e) {
|
|
3872
|
-
if (
|
|
3873
|
-
const n =
|
|
3872
|
+
if (Gs(e)) {
|
|
3873
|
+
const n = kn[e];
|
|
3874
3874
|
if (n === void 0)
|
|
3875
3875
|
throw new Error(`${t} references an unknown codicon: ${e}`);
|
|
3876
3876
|
e = n;
|
|
3877
3877
|
}
|
|
3878
|
-
return
|
|
3878
|
+
return kn[t] = e, { id: t };
|
|
3879
3879
|
}
|
|
3880
|
-
const
|
|
3880
|
+
const ca = {
|
|
3881
3881
|
add: o("add", 6e4),
|
|
3882
3882
|
plus: o("plus", 6e4),
|
|
3883
3883
|
gistNew: o("gist-new", 6e4),
|
|
@@ -4507,7 +4507,7 @@ const ua = {
|
|
|
4507
4507
|
gitBranchDelete: o("git-branch-delete", 60527),
|
|
4508
4508
|
searchLarge: o("search-large", 60528),
|
|
4509
4509
|
terminalGitBash: o("terminal-git-bash", 60529)
|
|
4510
|
-
},
|
|
4510
|
+
}, ha = {
|
|
4511
4511
|
dialogError: o("dialog-error", "error"),
|
|
4512
4512
|
dialogWarning: o("dialog-warning", "warning"),
|
|
4513
4513
|
dialogInfo: o("dialog-info", "info"),
|
|
@@ -4538,10 +4538,10 @@ const ua = {
|
|
|
4538
4538
|
lightbulbSparkleAutofix: o("lightbulb-sparkle-autofix", 60447),
|
|
4539
4539
|
debugBreakpointPending: o("debug-breakpoint-pending", 60377)
|
|
4540
4540
|
}, M = {
|
|
4541
|
-
...
|
|
4542
|
-
...
|
|
4541
|
+
...ca,
|
|
4542
|
+
...ha
|
|
4543
4543
|
};
|
|
4544
|
-
class
|
|
4544
|
+
class fa {
|
|
4545
4545
|
constructor() {
|
|
4546
4546
|
this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new he(), this.onDidChange = this._onDidChange.event, this._colorMap = null;
|
|
4547
4547
|
}
|
|
@@ -4561,7 +4561,7 @@ class ha {
|
|
|
4561
4561
|
}
|
|
4562
4562
|
registerFactory(e, n) {
|
|
4563
4563
|
this._factories.get(e)?.dispose();
|
|
4564
|
-
const r = new
|
|
4564
|
+
const r = new ma(this, e, n);
|
|
4565
4565
|
return this._factories.set(e, r), Lt(() => {
|
|
4566
4566
|
const s = this._factories.get(e);
|
|
4567
4567
|
!s || s !== r || (this._factories.delete(e), s.dispose());
|
|
@@ -4596,7 +4596,7 @@ class ha {
|
|
|
4596
4596
|
] : null;
|
|
4597
4597
|
}
|
|
4598
4598
|
}
|
|
4599
|
-
class
|
|
4599
|
+
class ma extends rt {
|
|
4600
4600
|
get isResolved() {
|
|
4601
4601
|
return this._isResolved;
|
|
4602
4602
|
}
|
|
@@ -4614,7 +4614,7 @@ class fa extends rt {
|
|
|
4614
4614
|
this._isResolved = !0, e && !this._isDisposed && this._register(this._registry.register(this._languageId, e));
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
|
-
class
|
|
4617
|
+
class da {
|
|
4618
4618
|
constructor(e, n, r) {
|
|
4619
4619
|
this.offset = e, this.type = n, this.language = r, this._tokenBrand = void 0;
|
|
4620
4620
|
}
|
|
@@ -4622,11 +4622,11 @@ class ma {
|
|
|
4622
4622
|
return "(" + this.offset + ", " + this.type + ")";
|
|
4623
4623
|
}
|
|
4624
4624
|
}
|
|
4625
|
-
var
|
|
4625
|
+
var Mn;
|
|
4626
4626
|
(function(t) {
|
|
4627
4627
|
t[t.Increase = 0] = "Increase", t[t.Decrease = 1] = "Decrease";
|
|
4628
|
-
})(
|
|
4629
|
-
var
|
|
4628
|
+
})(Mn || (Mn = {}));
|
|
4629
|
+
var Pn;
|
|
4630
4630
|
(function(t) {
|
|
4631
4631
|
const e = /* @__PURE__ */ new Map();
|
|
4632
4632
|
e.set(0, M.symbolMethod), e.set(1, M.symbolFunction), e.set(2, M.symbolConstructor), e.set(3, M.symbolField), e.set(4, M.symbolVariable), e.set(5, M.symbolClass), e.set(6, M.symbolStruct), e.set(7, M.symbolInterface), e.set(8, M.symbolModule), e.set(9, M.symbolProperty), e.set(10, M.symbolEvent), e.set(11, M.symbolOperator), e.set(12, M.symbolUnit), e.set(13, M.symbolValue), e.set(15, M.symbolEnum), e.set(14, M.symbolConstant), e.set(15, M.symbolEnum), e.set(16, M.symbolEnumMember), e.set(17, M.symbolKeyword), e.set(28, M.symbolSnippet), e.set(18, M.symbolText), e.set(19, M.symbolColor), e.set(20, M.symbolFile), e.set(21, M.symbolReference), e.set(22, M.symbolCustomColor), e.set(23, M.symbolFolder), e.set(24, M.symbolTypeParameter), e.set(25, M.account), e.set(26, M.issues), e.set(27, M.tools);
|
|
@@ -4831,33 +4831,33 @@ var Mn;
|
|
|
4831
4831
|
return typeof u > "u" && !l && (u = 9), u;
|
|
4832
4832
|
}
|
|
4833
4833
|
t.fromString = i;
|
|
4834
|
-
})(Mn || (Mn = {}));
|
|
4835
|
-
var Pn;
|
|
4836
|
-
(function(t) {
|
|
4837
|
-
t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit";
|
|
4838
4834
|
})(Pn || (Pn = {}));
|
|
4839
4835
|
var Tn;
|
|
4840
4836
|
(function(t) {
|
|
4841
|
-
t[t.
|
|
4837
|
+
t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit";
|
|
4842
4838
|
})(Tn || (Tn = {}));
|
|
4843
4839
|
var Fn;
|
|
4844
4840
|
(function(t) {
|
|
4845
|
-
t[t.
|
|
4841
|
+
t[t.Code = 1] = "Code", t[t.Label = 2] = "Label";
|
|
4846
4842
|
})(Fn || (Fn = {}));
|
|
4847
4843
|
var Dn;
|
|
4848
4844
|
(function(t) {
|
|
4849
|
-
t[t.
|
|
4845
|
+
t[t.Accepted = 0] = "Accepted", t[t.Rejected = 1] = "Rejected", t[t.Ignored = 2] = "Ignored";
|
|
4850
4846
|
})(Dn || (Dn = {}));
|
|
4851
4847
|
var In;
|
|
4852
4848
|
(function(t) {
|
|
4853
|
-
t[t.
|
|
4849
|
+
t[t.Automatic = 0] = "Automatic", t[t.PasteAs = 1] = "PasteAs";
|
|
4854
4850
|
})(In || (In = {}));
|
|
4855
4851
|
var Vn;
|
|
4856
4852
|
(function(t) {
|
|
4857
|
-
t[t.
|
|
4853
|
+
t[t.Invoke = 1] = "Invoke", t[t.TriggerCharacter = 2] = "TriggerCharacter", t[t.ContentChange = 3] = "ContentChange";
|
|
4858
4854
|
})(Vn || (Vn = {}));
|
|
4859
|
-
P(757, "array"), P(758, "boolean"), P(759, "class"), P(760, "constant"), P(761, "constructor"), P(762, "enumeration"), P(763, "enumeration member"), P(764, "event"), P(765, "field"), P(766, "file"), P(767, "function"), P(768, "interface"), P(769, "key"), P(770, "method"), P(771, "module"), P(772, "namespace"), P(773, "null"), P(774, "number"), P(775, "object"), P(776, "operator"), P(777, "package"), P(778, "property"), P(779, "string"), P(780, "struct"), P(781, "type parameter"), P(782, "variable");
|
|
4860
4855
|
var Bn;
|
|
4856
|
+
(function(t) {
|
|
4857
|
+
t[t.Text = 0] = "Text", t[t.Read = 1] = "Read", t[t.Write = 2] = "Write";
|
|
4858
|
+
})(Bn || (Bn = {}));
|
|
4859
|
+
P(757, "array"), P(758, "boolean"), P(759, "class"), P(760, "constant"), P(761, "constructor"), P(762, "enumeration"), P(763, "enumeration member"), P(764, "event"), P(765, "field"), P(766, "file"), P(767, "function"), P(768, "interface"), P(769, "key"), P(770, "method"), P(771, "module"), P(772, "namespace"), P(773, "null"), P(774, "number"), P(775, "object"), P(776, "operator"), P(777, "package"), P(778, "property"), P(779, "string"), P(780, "struct"), P(781, "type parameter"), P(782, "variable");
|
|
4860
|
+
var qn;
|
|
4861
4861
|
(function(t) {
|
|
4862
4862
|
const e = /* @__PURE__ */ new Map();
|
|
4863
4863
|
e.set(0, M.symbolFile), e.set(1, M.symbolModule), e.set(2, M.symbolNamespace), e.set(3, M.symbolPackage), e.set(4, M.symbolClass), e.set(5, M.symbolMethod), e.set(6, M.symbolProperty), e.set(7, M.symbolField), e.set(8, M.symbolConstructor), e.set(9, M.symbolEnum), e.set(10, M.symbolInterface), e.set(11, M.symbolFunction), e.set(12, M.symbolVariable), e.set(13, M.symbolConstant), e.set(14, M.symbolString), e.set(15, M.symbolNumber), e.set(16, M.symbolBoolean), e.set(17, M.symbolArray), e.set(18, M.symbolObject), e.set(19, M.symbolKey), e.set(20, M.symbolNull), e.set(21, M.symbolEnumMember), e.set(22, M.symbolStruct), e.set(23, M.symbolEvent), e.set(24, M.symbolOperator), e.set(25, M.symbolTypeParameter);
|
|
@@ -4977,7 +4977,7 @@ var Bn;
|
|
|
4977
4977
|
return a === void 0 && (console.info("No completion kind found for SymbolKind " + i), a = 20), a;
|
|
4978
4978
|
}
|
|
4979
4979
|
t.toCompletionKind = s;
|
|
4980
|
-
})(
|
|
4980
|
+
})(qn || (qn = {}));
|
|
4981
4981
|
class xe {
|
|
4982
4982
|
static {
|
|
4983
4983
|
this.Comment = new xe("comment");
|
|
@@ -5013,219 +5013,219 @@ class xe {
|
|
|
5013
5013
|
this.value = e;
|
|
5014
5014
|
}
|
|
5015
5015
|
}
|
|
5016
|
-
var qn;
|
|
5017
|
-
(function(t) {
|
|
5018
|
-
t[t.AIGenerated = 1] = "AIGenerated";
|
|
5019
|
-
})(qn || (qn = {}));
|
|
5020
5016
|
var Un;
|
|
5021
5017
|
(function(t) {
|
|
5022
|
-
t[t.
|
|
5018
|
+
t[t.AIGenerated = 1] = "AIGenerated";
|
|
5023
5019
|
})(Un || (Un = {}));
|
|
5024
5020
|
var $n;
|
|
5021
|
+
(function(t) {
|
|
5022
|
+
t[t.Invoke = 0] = "Invoke", t[t.Automatic = 1] = "Automatic";
|
|
5023
|
+
})($n || ($n = {}));
|
|
5024
|
+
var zn;
|
|
5025
5025
|
(function(t) {
|
|
5026
5026
|
function e(n) {
|
|
5027
5027
|
return !n || typeof n != "object" ? !1 : typeof n.id == "string" && typeof n.title == "string";
|
|
5028
5028
|
}
|
|
5029
5029
|
t.is = e;
|
|
5030
|
-
})($n || ($n = {}));
|
|
5031
|
-
var zn;
|
|
5032
|
-
(function(t) {
|
|
5033
|
-
t[t.Type = 1] = "Type", t[t.Parameter = 2] = "Parameter";
|
|
5034
5030
|
})(zn || (zn = {}));
|
|
5035
|
-
new ha();
|
|
5036
5031
|
var Wn;
|
|
5037
5032
|
(function(t) {
|
|
5038
|
-
t[t.
|
|
5033
|
+
t[t.Type = 1] = "Type", t[t.Parameter = 2] = "Parameter";
|
|
5039
5034
|
})(Wn || (Wn = {}));
|
|
5035
|
+
new fa();
|
|
5040
5036
|
var Hn;
|
|
5041
5037
|
(function(t) {
|
|
5042
|
-
t[t.
|
|
5038
|
+
t[t.Unknown = 0] = "Unknown", t[t.Disabled = 1] = "Disabled", t[t.Enabled = 2] = "Enabled";
|
|
5043
5039
|
})(Hn || (Hn = {}));
|
|
5044
5040
|
var On;
|
|
5045
5041
|
(function(t) {
|
|
5046
|
-
t[t.
|
|
5042
|
+
t[t.Invoke = 1] = "Invoke", t[t.Auto = 2] = "Auto";
|
|
5047
5043
|
})(On || (On = {}));
|
|
5048
5044
|
var Gn;
|
|
5049
5045
|
(function(t) {
|
|
5050
|
-
t[t.
|
|
5046
|
+
t[t.None = 0] = "None", t[t.KeepWhitespace = 1] = "KeepWhitespace", t[t.InsertAsSnippet = 4] = "InsertAsSnippet";
|
|
5051
5047
|
})(Gn || (Gn = {}));
|
|
5052
5048
|
var jn;
|
|
5053
5049
|
(function(t) {
|
|
5054
|
-
t[t.
|
|
5050
|
+
t[t.Method = 0] = "Method", t[t.Function = 1] = "Function", t[t.Constructor = 2] = "Constructor", t[t.Field = 3] = "Field", t[t.Variable = 4] = "Variable", t[t.Class = 5] = "Class", t[t.Struct = 6] = "Struct", t[t.Interface = 7] = "Interface", t[t.Module = 8] = "Module", t[t.Property = 9] = "Property", t[t.Event = 10] = "Event", t[t.Operator = 11] = "Operator", t[t.Unit = 12] = "Unit", t[t.Value = 13] = "Value", t[t.Constant = 14] = "Constant", t[t.Enum = 15] = "Enum", t[t.EnumMember = 16] = "EnumMember", t[t.Keyword = 17] = "Keyword", t[t.Text = 18] = "Text", t[t.Color = 19] = "Color", t[t.File = 20] = "File", t[t.Reference = 21] = "Reference", t[t.Customcolor = 22] = "Customcolor", t[t.Folder = 23] = "Folder", t[t.TypeParameter = 24] = "TypeParameter", t[t.User = 25] = "User", t[t.Issue = 26] = "Issue", t[t.Tool = 27] = "Tool", t[t.Snippet = 28] = "Snippet";
|
|
5055
5051
|
})(jn || (jn = {}));
|
|
5056
5052
|
var Xn;
|
|
5057
5053
|
(function(t) {
|
|
5058
|
-
t[t.
|
|
5054
|
+
t[t.Deprecated = 1] = "Deprecated";
|
|
5059
5055
|
})(Xn || (Xn = {}));
|
|
5060
5056
|
var Qn;
|
|
5061
5057
|
(function(t) {
|
|
5062
|
-
t[t.
|
|
5058
|
+
t[t.Invoke = 0] = "Invoke", t[t.TriggerCharacter = 1] = "TriggerCharacter", t[t.TriggerForIncompleteCompletions = 2] = "TriggerForIncompleteCompletions";
|
|
5063
5059
|
})(Qn || (Qn = {}));
|
|
5064
5060
|
var Jn;
|
|
5065
5061
|
(function(t) {
|
|
5066
|
-
t[t.
|
|
5062
|
+
t[t.EXACT = 0] = "EXACT", t[t.ABOVE = 1] = "ABOVE", t[t.BELOW = 2] = "BELOW";
|
|
5067
5063
|
})(Jn || (Jn = {}));
|
|
5068
5064
|
var Zn;
|
|
5069
5065
|
(function(t) {
|
|
5070
|
-
t[t.
|
|
5066
|
+
t[t.NotSet = 0] = "NotSet", t[t.ContentFlush = 1] = "ContentFlush", t[t.RecoverFromMarkers = 2] = "RecoverFromMarkers", t[t.Explicit = 3] = "Explicit", t[t.Paste = 4] = "Paste", t[t.Undo = 5] = "Undo", t[t.Redo = 6] = "Redo";
|
|
5071
5067
|
})(Zn || (Zn = {}));
|
|
5072
5068
|
var Yn;
|
|
5073
5069
|
(function(t) {
|
|
5074
|
-
t[t.
|
|
5070
|
+
t[t.LF = 1] = "LF", t[t.CRLF = 2] = "CRLF";
|
|
5075
5071
|
})(Yn || (Yn = {}));
|
|
5076
5072
|
var Kn;
|
|
5077
5073
|
(function(t) {
|
|
5078
|
-
t[t.
|
|
5074
|
+
t[t.Text = 0] = "Text", t[t.Read = 1] = "Read", t[t.Write = 2] = "Write";
|
|
5079
5075
|
})(Kn || (Kn = {}));
|
|
5080
5076
|
var er;
|
|
5081
5077
|
(function(t) {
|
|
5082
|
-
t[t.
|
|
5078
|
+
t[t.None = 0] = "None", t[t.Keep = 1] = "Keep", t[t.Brackets = 2] = "Brackets", t[t.Advanced = 3] = "Advanced", t[t.Full = 4] = "Full";
|
|
5083
5079
|
})(er || (er = {}));
|
|
5084
5080
|
var tr;
|
|
5085
5081
|
(function(t) {
|
|
5086
|
-
t[t.
|
|
5082
|
+
t[t.acceptSuggestionOnCommitCharacter = 0] = "acceptSuggestionOnCommitCharacter", t[t.acceptSuggestionOnEnter = 1] = "acceptSuggestionOnEnter", t[t.accessibilitySupport = 2] = "accessibilitySupport", t[t.accessibilityPageSize = 3] = "accessibilityPageSize", t[t.allowOverflow = 4] = "allowOverflow", t[t.allowVariableLineHeights = 5] = "allowVariableLineHeights", t[t.allowVariableFonts = 6] = "allowVariableFonts", t[t.allowVariableFontsInAccessibilityMode = 7] = "allowVariableFontsInAccessibilityMode", t[t.ariaLabel = 8] = "ariaLabel", t[t.ariaRequired = 9] = "ariaRequired", t[t.autoClosingBrackets = 10] = "autoClosingBrackets", t[t.autoClosingComments = 11] = "autoClosingComments", t[t.screenReaderAnnounceInlineSuggestion = 12] = "screenReaderAnnounceInlineSuggestion", t[t.autoClosingDelete = 13] = "autoClosingDelete", t[t.autoClosingOvertype = 14] = "autoClosingOvertype", t[t.autoClosingQuotes = 15] = "autoClosingQuotes", t[t.autoIndent = 16] = "autoIndent", t[t.autoIndentOnPaste = 17] = "autoIndentOnPaste", t[t.autoIndentOnPasteWithinString = 18] = "autoIndentOnPasteWithinString", t[t.automaticLayout = 19] = "automaticLayout", t[t.autoSurround = 20] = "autoSurround", t[t.bracketPairColorization = 21] = "bracketPairColorization", t[t.guides = 22] = "guides", t[t.codeLens = 23] = "codeLens", t[t.codeLensFontFamily = 24] = "codeLensFontFamily", t[t.codeLensFontSize = 25] = "codeLensFontSize", t[t.colorDecorators = 26] = "colorDecorators", t[t.colorDecoratorsLimit = 27] = "colorDecoratorsLimit", t[t.columnSelection = 28] = "columnSelection", t[t.comments = 29] = "comments", t[t.contextmenu = 30] = "contextmenu", t[t.copyWithSyntaxHighlighting = 31] = "copyWithSyntaxHighlighting", t[t.cursorBlinking = 32] = "cursorBlinking", t[t.cursorSmoothCaretAnimation = 33] = "cursorSmoothCaretAnimation", t[t.cursorStyle = 34] = "cursorStyle", t[t.cursorSurroundingLines = 35] = "cursorSurroundingLines", t[t.cursorSurroundingLinesStyle = 36] = "cursorSurroundingLinesStyle", t[t.cursorWidth = 37] = "cursorWidth", t[t.cursorHeight = 38] = "cursorHeight", t[t.disableLayerHinting = 39] = "disableLayerHinting", t[t.disableMonospaceOptimizations = 40] = "disableMonospaceOptimizations", t[t.domReadOnly = 41] = "domReadOnly", t[t.dragAndDrop = 42] = "dragAndDrop", t[t.dropIntoEditor = 43] = "dropIntoEditor", t[t.editContext = 44] = "editContext", t[t.emptySelectionClipboard = 45] = "emptySelectionClipboard", t[t.experimentalGpuAcceleration = 46] = "experimentalGpuAcceleration", t[t.experimentalWhitespaceRendering = 47] = "experimentalWhitespaceRendering", t[t.extraEditorClassName = 48] = "extraEditorClassName", t[t.fastScrollSensitivity = 49] = "fastScrollSensitivity", t[t.find = 50] = "find", t[t.fixedOverflowWidgets = 51] = "fixedOverflowWidgets", t[t.folding = 52] = "folding", t[t.foldingStrategy = 53] = "foldingStrategy", t[t.foldingHighlight = 54] = "foldingHighlight", t[t.foldingImportsByDefault = 55] = "foldingImportsByDefault", t[t.foldingMaximumRegions = 56] = "foldingMaximumRegions", t[t.unfoldOnClickAfterEndOfLine = 57] = "unfoldOnClickAfterEndOfLine", t[t.fontFamily = 58] = "fontFamily", t[t.fontInfo = 59] = "fontInfo", t[t.fontLigatures = 60] = "fontLigatures", t[t.fontSize = 61] = "fontSize", t[t.fontWeight = 62] = "fontWeight", t[t.fontVariations = 63] = "fontVariations", t[t.formatOnPaste = 64] = "formatOnPaste", t[t.formatOnType = 65] = "formatOnType", t[t.glyphMargin = 66] = "glyphMargin", t[t.gotoLocation = 67] = "gotoLocation", t[t.hideCursorInOverviewRuler = 68] = "hideCursorInOverviewRuler", t[t.hover = 69] = "hover", t[t.inDiffEditor = 70] = "inDiffEditor", t[t.inlineSuggest = 71] = "inlineSuggest", t[t.letterSpacing = 72] = "letterSpacing", t[t.lightbulb = 73] = "lightbulb", t[t.lineDecorationsWidth = 74] = "lineDecorationsWidth", t[t.lineHeight = 75] = "lineHeight", t[t.lineNumbers = 76] = "lineNumbers", t[t.lineNumbersMinChars = 77] = "lineNumbersMinChars", t[t.linkedEditing = 78] = "linkedEditing", t[t.links = 79] = "links", t[t.matchBrackets = 80] = "matchBrackets", t[t.minimap = 81] = "minimap", t[t.mouseStyle = 82] = "mouseStyle", t[t.mouseWheelScrollSensitivity = 83] = "mouseWheelScrollSensitivity", t[t.mouseWheelZoom = 84] = "mouseWheelZoom", t[t.multiCursorMergeOverlapping = 85] = "multiCursorMergeOverlapping", t[t.multiCursorModifier = 86] = "multiCursorModifier", t[t.mouseMiddleClickAction = 87] = "mouseMiddleClickAction", t[t.multiCursorPaste = 88] = "multiCursorPaste", t[t.multiCursorLimit = 89] = "multiCursorLimit", t[t.occurrencesHighlight = 90] = "occurrencesHighlight", t[t.occurrencesHighlightDelay = 91] = "occurrencesHighlightDelay", t[t.overtypeCursorStyle = 92] = "overtypeCursorStyle", t[t.overtypeOnPaste = 93] = "overtypeOnPaste", t[t.overviewRulerBorder = 94] = "overviewRulerBorder", t[t.overviewRulerLanes = 95] = "overviewRulerLanes", t[t.padding = 96] = "padding", t[t.pasteAs = 97] = "pasteAs", t[t.parameterHints = 98] = "parameterHints", t[t.peekWidgetDefaultFocus = 99] = "peekWidgetDefaultFocus", t[t.placeholder = 100] = "placeholder", t[t.definitionLinkOpensInPeek = 101] = "definitionLinkOpensInPeek", t[t.quickSuggestions = 102] = "quickSuggestions", t[t.quickSuggestionsDelay = 103] = "quickSuggestionsDelay", t[t.readOnly = 104] = "readOnly", t[t.readOnlyMessage = 105] = "readOnlyMessage", t[t.renameOnType = 106] = "renameOnType", t[t.renderRichScreenReaderContent = 107] = "renderRichScreenReaderContent", t[t.renderControlCharacters = 108] = "renderControlCharacters", t[t.renderFinalNewline = 109] = "renderFinalNewline", t[t.renderLineHighlight = 110] = "renderLineHighlight", t[t.renderLineHighlightOnlyWhenFocus = 111] = "renderLineHighlightOnlyWhenFocus", t[t.renderValidationDecorations = 112] = "renderValidationDecorations", t[t.renderWhitespace = 113] = "renderWhitespace", t[t.revealHorizontalRightPadding = 114] = "revealHorizontalRightPadding", t[t.roundedSelection = 115] = "roundedSelection", t[t.rulers = 116] = "rulers", t[t.scrollbar = 117] = "scrollbar", t[t.scrollBeyondLastColumn = 118] = "scrollBeyondLastColumn", t[t.scrollBeyondLastLine = 119] = "scrollBeyondLastLine", t[t.scrollPredominantAxis = 120] = "scrollPredominantAxis", t[t.selectionClipboard = 121] = "selectionClipboard", t[t.selectionHighlight = 122] = "selectionHighlight", t[t.selectionHighlightMaxLength = 123] = "selectionHighlightMaxLength", t[t.selectionHighlightMultiline = 124] = "selectionHighlightMultiline", t[t.selectOnLineNumbers = 125] = "selectOnLineNumbers", t[t.showFoldingControls = 126] = "showFoldingControls", t[t.showUnused = 127] = "showUnused", t[t.snippetSuggestions = 128] = "snippetSuggestions", t[t.smartSelect = 129] = "smartSelect", t[t.smoothScrolling = 130] = "smoothScrolling", t[t.stickyScroll = 131] = "stickyScroll", t[t.stickyTabStops = 132] = "stickyTabStops", t[t.stopRenderingLineAfter = 133] = "stopRenderingLineAfter", t[t.suggest = 134] = "suggest", t[t.suggestFontSize = 135] = "suggestFontSize", t[t.suggestLineHeight = 136] = "suggestLineHeight", t[t.suggestOnTriggerCharacters = 137] = "suggestOnTriggerCharacters", t[t.suggestSelection = 138] = "suggestSelection", t[t.tabCompletion = 139] = "tabCompletion", t[t.tabIndex = 140] = "tabIndex", t[t.trimWhitespaceOnDelete = 141] = "trimWhitespaceOnDelete", t[t.unicodeHighlighting = 142] = "unicodeHighlighting", t[t.unusualLineTerminators = 143] = "unusualLineTerminators", t[t.useShadowDOM = 144] = "useShadowDOM", t[t.useTabStops = 145] = "useTabStops", t[t.wordBreak = 146] = "wordBreak", t[t.wordSegmenterLocales = 147] = "wordSegmenterLocales", t[t.wordSeparators = 148] = "wordSeparators", t[t.wordWrap = 149] = "wordWrap", t[t.wordWrapBreakAfterCharacters = 150] = "wordWrapBreakAfterCharacters", t[t.wordWrapBreakBeforeCharacters = 151] = "wordWrapBreakBeforeCharacters", t[t.wordWrapColumn = 152] = "wordWrapColumn", t[t.wordWrapOverride1 = 153] = "wordWrapOverride1", t[t.wordWrapOverride2 = 154] = "wordWrapOverride2", t[t.wrappingIndent = 155] = "wrappingIndent", t[t.wrappingStrategy = 156] = "wrappingStrategy", t[t.showDeprecated = 157] = "showDeprecated", t[t.inertialScroll = 158] = "inertialScroll", t[t.inlayHints = 159] = "inlayHints", t[t.wrapOnEscapedLineFeeds = 160] = "wrapOnEscapedLineFeeds", t[t.effectiveCursorStyle = 161] = "effectiveCursorStyle", t[t.editorClassName = 162] = "editorClassName", t[t.pixelRatio = 163] = "pixelRatio", t[t.tabFocusMode = 164] = "tabFocusMode", t[t.layoutInfo = 165] = "layoutInfo", t[t.wrappingInfo = 166] = "wrappingInfo", t[t.defaultColorDecorators = 167] = "defaultColorDecorators", t[t.colorDecoratorsActivatedOn = 168] = "colorDecoratorsActivatedOn", t[t.inlineCompletionsAccessibilityVerbose = 169] = "inlineCompletionsAccessibilityVerbose", t[t.effectiveEditContext = 170] = "effectiveEditContext", t[t.scrollOnMiddleClick = 171] = "scrollOnMiddleClick", t[t.effectiveAllowVariableFonts = 172] = "effectiveAllowVariableFonts";
|
|
5087
5083
|
})(tr || (tr = {}));
|
|
5088
5084
|
var nr;
|
|
5089
5085
|
(function(t) {
|
|
5090
|
-
t[t.
|
|
5086
|
+
t[t.TextDefined = 0] = "TextDefined", t[t.LF = 1] = "LF", t[t.CRLF = 2] = "CRLF";
|
|
5091
5087
|
})(nr || (nr = {}));
|
|
5092
5088
|
var rr;
|
|
5093
5089
|
(function(t) {
|
|
5094
|
-
t[t.
|
|
5090
|
+
t[t.LF = 0] = "LF", t[t.CRLF = 1] = "CRLF";
|
|
5095
5091
|
})(rr || (rr = {}));
|
|
5096
5092
|
var sr;
|
|
5097
5093
|
(function(t) {
|
|
5098
|
-
t[t.
|
|
5094
|
+
t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 3] = "Right";
|
|
5099
5095
|
})(sr || (sr = {}));
|
|
5100
5096
|
var ir;
|
|
5101
5097
|
(function(t) {
|
|
5102
|
-
t[t.
|
|
5098
|
+
t[t.Increase = 0] = "Increase", t[t.Decrease = 1] = "Decrease";
|
|
5103
5099
|
})(ir || (ir = {}));
|
|
5104
5100
|
var ar;
|
|
5105
5101
|
(function(t) {
|
|
5106
|
-
t[t.
|
|
5102
|
+
t[t.None = 0] = "None", t[t.Indent = 1] = "Indent", t[t.IndentOutdent = 2] = "IndentOutdent", t[t.Outdent = 3] = "Outdent";
|
|
5107
5103
|
})(ar || (ar = {}));
|
|
5108
5104
|
var or;
|
|
5109
5105
|
(function(t) {
|
|
5110
|
-
t[t.
|
|
5106
|
+
t[t.Both = 0] = "Both", t[t.Right = 1] = "Right", t[t.Left = 2] = "Left", t[t.None = 3] = "None";
|
|
5111
5107
|
})(or || (or = {}));
|
|
5112
5108
|
var lr;
|
|
5113
5109
|
(function(t) {
|
|
5114
|
-
t[t.
|
|
5110
|
+
t[t.Type = 1] = "Type", t[t.Parameter = 2] = "Parameter";
|
|
5115
5111
|
})(lr || (lr = {}));
|
|
5116
5112
|
var ur;
|
|
5117
5113
|
(function(t) {
|
|
5118
|
-
t[t.
|
|
5114
|
+
t[t.Accepted = 0] = "Accepted", t[t.Rejected = 1] = "Rejected", t[t.Ignored = 2] = "Ignored";
|
|
5119
5115
|
})(ur || (ur = {}));
|
|
5120
5116
|
var cr;
|
|
5121
5117
|
(function(t) {
|
|
5122
|
-
t[t.
|
|
5118
|
+
t[t.Code = 1] = "Code", t[t.Label = 2] = "Label";
|
|
5123
5119
|
})(cr || (cr = {}));
|
|
5124
|
-
var
|
|
5120
|
+
var hr;
|
|
5125
5121
|
(function(t) {
|
|
5126
|
-
t[t.
|
|
5127
|
-
})(
|
|
5122
|
+
t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit";
|
|
5123
|
+
})(hr || (hr = {}));
|
|
5128
5124
|
var Kt;
|
|
5129
5125
|
(function(t) {
|
|
5130
|
-
t[t.
|
|
5126
|
+
t[t.DependsOnKbLayout = -1] = "DependsOnKbLayout", t[t.Unknown = 0] = "Unknown", t[t.Backspace = 1] = "Backspace", t[t.Tab = 2] = "Tab", t[t.Enter = 3] = "Enter", t[t.Shift = 4] = "Shift", t[t.Ctrl = 5] = "Ctrl", t[t.Alt = 6] = "Alt", t[t.PauseBreak = 7] = "PauseBreak", t[t.CapsLock = 8] = "CapsLock", t[t.Escape = 9] = "Escape", t[t.Space = 10] = "Space", t[t.PageUp = 11] = "PageUp", t[t.PageDown = 12] = "PageDown", t[t.End = 13] = "End", t[t.Home = 14] = "Home", t[t.LeftArrow = 15] = "LeftArrow", t[t.UpArrow = 16] = "UpArrow", t[t.RightArrow = 17] = "RightArrow", t[t.DownArrow = 18] = "DownArrow", t[t.Insert = 19] = "Insert", t[t.Delete = 20] = "Delete", t[t.Digit0 = 21] = "Digit0", t[t.Digit1 = 22] = "Digit1", t[t.Digit2 = 23] = "Digit2", t[t.Digit3 = 24] = "Digit3", t[t.Digit4 = 25] = "Digit4", t[t.Digit5 = 26] = "Digit5", t[t.Digit6 = 27] = "Digit6", t[t.Digit7 = 28] = "Digit7", t[t.Digit8 = 29] = "Digit8", t[t.Digit9 = 30] = "Digit9", t[t.KeyA = 31] = "KeyA", t[t.KeyB = 32] = "KeyB", t[t.KeyC = 33] = "KeyC", t[t.KeyD = 34] = "KeyD", t[t.KeyE = 35] = "KeyE", t[t.KeyF = 36] = "KeyF", t[t.KeyG = 37] = "KeyG", t[t.KeyH = 38] = "KeyH", t[t.KeyI = 39] = "KeyI", t[t.KeyJ = 40] = "KeyJ", t[t.KeyK = 41] = "KeyK", t[t.KeyL = 42] = "KeyL", t[t.KeyM = 43] = "KeyM", t[t.KeyN = 44] = "KeyN", t[t.KeyO = 45] = "KeyO", t[t.KeyP = 46] = "KeyP", t[t.KeyQ = 47] = "KeyQ", t[t.KeyR = 48] = "KeyR", t[t.KeyS = 49] = "KeyS", t[t.KeyT = 50] = "KeyT", t[t.KeyU = 51] = "KeyU", t[t.KeyV = 52] = "KeyV", t[t.KeyW = 53] = "KeyW", t[t.KeyX = 54] = "KeyX", t[t.KeyY = 55] = "KeyY", t[t.KeyZ = 56] = "KeyZ", t[t.Meta = 57] = "Meta", t[t.ContextMenu = 58] = "ContextMenu", t[t.F1 = 59] = "F1", t[t.F2 = 60] = "F2", t[t.F3 = 61] = "F3", t[t.F4 = 62] = "F4", t[t.F5 = 63] = "F5", t[t.F6 = 64] = "F6", t[t.F7 = 65] = "F7", t[t.F8 = 66] = "F8", t[t.F9 = 67] = "F9", t[t.F10 = 68] = "F10", t[t.F11 = 69] = "F11", t[t.F12 = 70] = "F12", t[t.F13 = 71] = "F13", t[t.F14 = 72] = "F14", t[t.F15 = 73] = "F15", t[t.F16 = 74] = "F16", t[t.F17 = 75] = "F17", t[t.F18 = 76] = "F18", t[t.F19 = 77] = "F19", t[t.F20 = 78] = "F20", t[t.F21 = 79] = "F21", t[t.F22 = 80] = "F22", t[t.F23 = 81] = "F23", t[t.F24 = 82] = "F24", t[t.NumLock = 83] = "NumLock", t[t.ScrollLock = 84] = "ScrollLock", t[t.Semicolon = 85] = "Semicolon", t[t.Equal = 86] = "Equal", t[t.Comma = 87] = "Comma", t[t.Minus = 88] = "Minus", t[t.Period = 89] = "Period", t[t.Slash = 90] = "Slash", t[t.Backquote = 91] = "Backquote", t[t.BracketLeft = 92] = "BracketLeft", t[t.Backslash = 93] = "Backslash", t[t.BracketRight = 94] = "BracketRight", t[t.Quote = 95] = "Quote", t[t.OEM_8 = 96] = "OEM_8", t[t.IntlBackslash = 97] = "IntlBackslash", t[t.Numpad0 = 98] = "Numpad0", t[t.Numpad1 = 99] = "Numpad1", t[t.Numpad2 = 100] = "Numpad2", t[t.Numpad3 = 101] = "Numpad3", t[t.Numpad4 = 102] = "Numpad4", t[t.Numpad5 = 103] = "Numpad5", t[t.Numpad6 = 104] = "Numpad6", t[t.Numpad7 = 105] = "Numpad7", t[t.Numpad8 = 106] = "Numpad8", t[t.Numpad9 = 107] = "Numpad9", t[t.NumpadMultiply = 108] = "NumpadMultiply", t[t.NumpadAdd = 109] = "NumpadAdd", t[t.NUMPAD_SEPARATOR = 110] = "NUMPAD_SEPARATOR", t[t.NumpadSubtract = 111] = "NumpadSubtract", t[t.NumpadDecimal = 112] = "NumpadDecimal", t[t.NumpadDivide = 113] = "NumpadDivide", t[t.KEY_IN_COMPOSITION = 114] = "KEY_IN_COMPOSITION", t[t.ABNT_C1 = 115] = "ABNT_C1", t[t.ABNT_C2 = 116] = "ABNT_C2", t[t.AudioVolumeMute = 117] = "AudioVolumeMute", t[t.AudioVolumeUp = 118] = "AudioVolumeUp", t[t.AudioVolumeDown = 119] = "AudioVolumeDown", t[t.BrowserSearch = 120] = "BrowserSearch", t[t.BrowserHome = 121] = "BrowserHome", t[t.BrowserBack = 122] = "BrowserBack", t[t.BrowserForward = 123] = "BrowserForward", t[t.MediaTrackNext = 124] = "MediaTrackNext", t[t.MediaTrackPrevious = 125] = "MediaTrackPrevious", t[t.MediaStop = 126] = "MediaStop", t[t.MediaPlayPause = 127] = "MediaPlayPause", t[t.LaunchMediaPlayer = 128] = "LaunchMediaPlayer", t[t.LaunchMail = 129] = "LaunchMail", t[t.LaunchApp2 = 130] = "LaunchApp2", t[t.Clear = 131] = "Clear", t[t.MAX_VALUE = 132] = "MAX_VALUE";
|
|
5131
5127
|
})(Kt || (Kt = {}));
|
|
5132
5128
|
var en;
|
|
5133
5129
|
(function(t) {
|
|
5134
|
-
t[t.
|
|
5130
|
+
t[t.Hint = 1] = "Hint", t[t.Info = 2] = "Info", t[t.Warning = 4] = "Warning", t[t.Error = 8] = "Error";
|
|
5135
5131
|
})(en || (en = {}));
|
|
5136
|
-
var
|
|
5132
|
+
var tn;
|
|
5137
5133
|
(function(t) {
|
|
5138
|
-
t[t.
|
|
5139
|
-
})(
|
|
5134
|
+
t[t.Unnecessary = 1] = "Unnecessary", t[t.Deprecated = 2] = "Deprecated";
|
|
5135
|
+
})(tn || (tn = {}));
|
|
5140
5136
|
var fr;
|
|
5141
5137
|
(function(t) {
|
|
5142
|
-
t[t.
|
|
5138
|
+
t[t.Inline = 1] = "Inline", t[t.Gutter = 2] = "Gutter";
|
|
5143
5139
|
})(fr || (fr = {}));
|
|
5144
5140
|
var mr;
|
|
5145
5141
|
(function(t) {
|
|
5146
|
-
t[t.
|
|
5142
|
+
t[t.Normal = 1] = "Normal", t[t.Underlined = 2] = "Underlined";
|
|
5147
5143
|
})(mr || (mr = {}));
|
|
5148
5144
|
var dr;
|
|
5149
5145
|
(function(t) {
|
|
5150
|
-
t[t.
|
|
5146
|
+
t[t.UNKNOWN = 0] = "UNKNOWN", t[t.TEXTAREA = 1] = "TEXTAREA", t[t.GUTTER_GLYPH_MARGIN = 2] = "GUTTER_GLYPH_MARGIN", t[t.GUTTER_LINE_NUMBERS = 3] = "GUTTER_LINE_NUMBERS", t[t.GUTTER_LINE_DECORATIONS = 4] = "GUTTER_LINE_DECORATIONS", t[t.GUTTER_VIEW_ZONE = 5] = "GUTTER_VIEW_ZONE", t[t.CONTENT_TEXT = 6] = "CONTENT_TEXT", t[t.CONTENT_EMPTY = 7] = "CONTENT_EMPTY", t[t.CONTENT_VIEW_ZONE = 8] = "CONTENT_VIEW_ZONE", t[t.CONTENT_WIDGET = 9] = "CONTENT_WIDGET", t[t.OVERVIEW_RULER = 10] = "OVERVIEW_RULER", t[t.SCROLLBAR = 11] = "SCROLLBAR", t[t.OVERLAY_WIDGET = 12] = "OVERLAY_WIDGET", t[t.OUTSIDE_EDITOR = 13] = "OUTSIDE_EDITOR";
|
|
5151
5147
|
})(dr || (dr = {}));
|
|
5152
5148
|
var gr;
|
|
5153
5149
|
(function(t) {
|
|
5154
|
-
t[t.
|
|
5150
|
+
t[t.AIGenerated = 1] = "AIGenerated";
|
|
5155
5151
|
})(gr || (gr = {}));
|
|
5156
5152
|
var pr;
|
|
5157
5153
|
(function(t) {
|
|
5158
|
-
t[t.
|
|
5154
|
+
t[t.Invoke = 0] = "Invoke", t[t.Automatic = 1] = "Automatic";
|
|
5159
5155
|
})(pr || (pr = {}));
|
|
5160
5156
|
var br;
|
|
5161
5157
|
(function(t) {
|
|
5162
|
-
t[t.
|
|
5158
|
+
t[t.TOP_RIGHT_CORNER = 0] = "TOP_RIGHT_CORNER", t[t.BOTTOM_RIGHT_CORNER = 1] = "BOTTOM_RIGHT_CORNER", t[t.TOP_CENTER = 2] = "TOP_CENTER";
|
|
5163
5159
|
})(br || (br = {}));
|
|
5164
5160
|
var wr;
|
|
5165
5161
|
(function(t) {
|
|
5166
|
-
t[t.
|
|
5162
|
+
t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 4] = "Right", t[t.Full = 7] = "Full";
|
|
5167
5163
|
})(wr || (wr = {}));
|
|
5168
5164
|
var yr;
|
|
5169
5165
|
(function(t) {
|
|
5170
|
-
t[t.
|
|
5166
|
+
t[t.Word = 0] = "Word", t[t.Line = 1] = "Line", t[t.Suggest = 2] = "Suggest";
|
|
5171
5167
|
})(yr || (yr = {}));
|
|
5172
5168
|
var xr;
|
|
5173
5169
|
(function(t) {
|
|
5174
|
-
t[t.
|
|
5170
|
+
t[t.Left = 0] = "Left", t[t.Right = 1] = "Right", t[t.None = 2] = "None", t[t.LeftOfInjectedText = 3] = "LeftOfInjectedText", t[t.RightOfInjectedText = 4] = "RightOfInjectedText";
|
|
5175
5171
|
})(xr || (xr = {}));
|
|
5176
5172
|
var _r;
|
|
5177
5173
|
(function(t) {
|
|
5178
|
-
t[t.
|
|
5174
|
+
t[t.Off = 0] = "Off", t[t.On = 1] = "On", t[t.Relative = 2] = "Relative", t[t.Interval = 3] = "Interval", t[t.Custom = 4] = "Custom";
|
|
5179
5175
|
})(_r || (_r = {}));
|
|
5180
5176
|
var Lr;
|
|
5181
5177
|
(function(t) {
|
|
5182
|
-
t[t.
|
|
5178
|
+
t[t.None = 0] = "None", t[t.Text = 1] = "Text", t[t.Blocks = 2] = "Blocks";
|
|
5183
5179
|
})(Lr || (Lr = {}));
|
|
5184
5180
|
var vr;
|
|
5185
5181
|
(function(t) {
|
|
5186
|
-
t[t.
|
|
5182
|
+
t[t.Smooth = 0] = "Smooth", t[t.Immediate = 1] = "Immediate";
|
|
5187
5183
|
})(vr || (vr = {}));
|
|
5188
|
-
var tn;
|
|
5189
|
-
(function(t) {
|
|
5190
|
-
t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL";
|
|
5191
|
-
})(tn || (tn = {}));
|
|
5192
5184
|
var Nr;
|
|
5193
5185
|
(function(t) {
|
|
5194
|
-
t.
|
|
5186
|
+
t[t.Auto = 1] = "Auto", t[t.Hidden = 2] = "Hidden", t[t.Visible = 3] = "Visible";
|
|
5195
5187
|
})(Nr || (Nr = {}));
|
|
5188
|
+
var nn;
|
|
5189
|
+
(function(t) {
|
|
5190
|
+
t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL";
|
|
5191
|
+
})(nn || (nn = {}));
|
|
5196
5192
|
var Sr;
|
|
5197
5193
|
(function(t) {
|
|
5198
|
-
t
|
|
5194
|
+
t.Off = "off", t.OnCode = "onCode", t.On = "on";
|
|
5199
5195
|
})(Sr || (Sr = {}));
|
|
5200
5196
|
var Ar;
|
|
5201
5197
|
(function(t) {
|
|
5202
|
-
t[t.
|
|
5198
|
+
t[t.Invoke = 1] = "Invoke", t[t.TriggerCharacter = 2] = "TriggerCharacter", t[t.ContentChange = 3] = "ContentChange";
|
|
5203
5199
|
})(Ar || (Ar = {}));
|
|
5204
5200
|
var Rr;
|
|
5205
5201
|
(function(t) {
|
|
5206
|
-
t[t.
|
|
5202
|
+
t[t.File = 0] = "File", t[t.Module = 1] = "Module", t[t.Namespace = 2] = "Namespace", t[t.Package = 3] = "Package", t[t.Class = 4] = "Class", t[t.Method = 5] = "Method", t[t.Property = 6] = "Property", t[t.Field = 7] = "Field", t[t.Constructor = 8] = "Constructor", t[t.Enum = 9] = "Enum", t[t.Interface = 10] = "Interface", t[t.Function = 11] = "Function", t[t.Variable = 12] = "Variable", t[t.Constant = 13] = "Constant", t[t.String = 14] = "String", t[t.Number = 15] = "Number", t[t.Boolean = 16] = "Boolean", t[t.Array = 17] = "Array", t[t.Object = 18] = "Object", t[t.Key = 19] = "Key", t[t.Null = 20] = "Null", t[t.EnumMember = 21] = "EnumMember", t[t.Struct = 22] = "Struct", t[t.Event = 23] = "Event", t[t.Operator = 24] = "Operator", t[t.TypeParameter = 25] = "TypeParameter";
|
|
5207
5203
|
})(Rr || (Rr = {}));
|
|
5208
5204
|
var Cr;
|
|
5209
5205
|
(function(t) {
|
|
5210
|
-
t[t.
|
|
5206
|
+
t[t.Deprecated = 1] = "Deprecated";
|
|
5211
5207
|
})(Cr || (Cr = {}));
|
|
5212
5208
|
var Er;
|
|
5213
5209
|
(function(t) {
|
|
5214
|
-
t[t.
|
|
5210
|
+
t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL";
|
|
5215
5211
|
})(Er || (Er = {}));
|
|
5216
5212
|
var kr;
|
|
5217
5213
|
(function(t) {
|
|
5218
|
-
t[t.
|
|
5214
|
+
t[t.Hidden = 0] = "Hidden", t[t.Blink = 1] = "Blink", t[t.Smooth = 2] = "Smooth", t[t.Phase = 3] = "Phase", t[t.Expand = 4] = "Expand", t[t.Solid = 5] = "Solid";
|
|
5219
5215
|
})(kr || (kr = {}));
|
|
5220
5216
|
var Mr;
|
|
5221
5217
|
(function(t) {
|
|
5222
|
-
t[t.
|
|
5218
|
+
t[t.Line = 1] = "Line", t[t.Block = 2] = "Block", t[t.Underline = 3] = "Underline", t[t.LineThin = 4] = "LineThin", t[t.BlockOutline = 5] = "BlockOutline", t[t.UnderlineThin = 6] = "UnderlineThin";
|
|
5223
5219
|
})(Mr || (Mr = {}));
|
|
5224
5220
|
var Pr;
|
|
5225
5221
|
(function(t) {
|
|
5226
|
-
t[t.
|
|
5222
|
+
t[t.AlwaysGrowsWhenTypingAtEdges = 0] = "AlwaysGrowsWhenTypingAtEdges", t[t.NeverGrowsWhenTypingAtEdges = 1] = "NeverGrowsWhenTypingAtEdges", t[t.GrowsOnlyWhenTypingBefore = 2] = "GrowsOnlyWhenTypingBefore", t[t.GrowsOnlyWhenTypingAfter = 3] = "GrowsOnlyWhenTypingAfter";
|
|
5227
5223
|
})(Pr || (Pr = {}));
|
|
5228
|
-
|
|
5224
|
+
var Tr;
|
|
5225
|
+
(function(t) {
|
|
5226
|
+
t[t.None = 0] = "None", t[t.Same = 1] = "Same", t[t.Indent = 2] = "Indent", t[t.DeepIndent = 3] = "DeepIndent";
|
|
5227
|
+
})(Tr || (Tr = {}));
|
|
5228
|
+
class ga {
|
|
5229
5229
|
static {
|
|
5230
5230
|
this.CtrlCmd = 2048;
|
|
5231
5231
|
}
|
|
@@ -5239,33 +5239,33 @@ class da {
|
|
|
5239
5239
|
this.WinCtrl = 256;
|
|
5240
5240
|
}
|
|
5241
5241
|
static chord(e, n) {
|
|
5242
|
-
return
|
|
5242
|
+
return Oi(e, n);
|
|
5243
5243
|
}
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function pa() {
|
|
5246
5246
|
return {
|
|
5247
5247
|
editor: void 0,
|
|
5248
5248
|
// undefined override expected here
|
|
5249
5249
|
languages: void 0,
|
|
5250
5250
|
// undefined override expected here
|
|
5251
|
-
CancellationTokenSource:
|
|
5251
|
+
CancellationTokenSource: $i,
|
|
5252
5252
|
Emitter: he,
|
|
5253
|
-
KeyCode:
|
|
5254
|
-
KeyMod:
|
|
5253
|
+
KeyCode: Kt,
|
|
5254
|
+
KeyMod: ga,
|
|
5255
5255
|
Position: z,
|
|
5256
5256
|
Range: C,
|
|
5257
5257
|
Selection: re,
|
|
5258
|
-
SelectionDirection:
|
|
5259
|
-
MarkerSeverity:
|
|
5260
|
-
MarkerTag:
|
|
5258
|
+
SelectionDirection: nn,
|
|
5259
|
+
MarkerSeverity: en,
|
|
5260
|
+
MarkerTag: tn,
|
|
5261
5261
|
Uri: Me,
|
|
5262
|
-
Token:
|
|
5262
|
+
Token: da
|
|
5263
5263
|
};
|
|
5264
5264
|
}
|
|
5265
|
-
var
|
|
5266
|
-
class
|
|
5265
|
+
var Fr;
|
|
5266
|
+
class ba {
|
|
5267
5267
|
constructor() {
|
|
5268
|
-
this[
|
|
5268
|
+
this[Fr] = "LinkedMap", this._map = /* @__PURE__ */ new Map(), this._head = void 0, this._tail = void 0, this._size = 0, this._state = 0;
|
|
5269
5269
|
}
|
|
5270
5270
|
clear() {
|
|
5271
5271
|
this._map.clear(), this._head = void 0, this._tail = void 0, this._size = 0, this._state++;
|
|
@@ -5395,7 +5395,7 @@ class pa {
|
|
|
5395
5395
|
};
|
|
5396
5396
|
return s;
|
|
5397
5397
|
}
|
|
5398
|
-
[(
|
|
5398
|
+
[(Fr = Symbol.toStringTag, Symbol.iterator)]() {
|
|
5399
5399
|
return this.entries();
|
|
5400
5400
|
}
|
|
5401
5401
|
trimOld(e) {
|
|
@@ -5488,7 +5488,7 @@ class pa {
|
|
|
5488
5488
|
this.set(n, r);
|
|
5489
5489
|
}
|
|
5490
5490
|
}
|
|
5491
|
-
class
|
|
5491
|
+
class wa extends ba {
|
|
5492
5492
|
constructor(e, n = 1) {
|
|
5493
5493
|
super(), this._limit = e, this._ratio = Math.min(Math.max(0, n), 1);
|
|
5494
5494
|
}
|
|
@@ -5520,7 +5520,7 @@ class ba extends pa {
|
|
|
5520
5520
|
this.size > this._limit && this.trim(Math.round(this._limit * this._ratio));
|
|
5521
5521
|
}
|
|
5522
5522
|
}
|
|
5523
|
-
class
|
|
5523
|
+
class ya extends wa {
|
|
5524
5524
|
constructor(e, n = 1) {
|
|
5525
5525
|
super(e, n);
|
|
5526
5526
|
}
|
|
@@ -5531,7 +5531,7 @@ class wa extends ba {
|
|
|
5531
5531
|
return super.set(e, n), this.checkTrim(), this;
|
|
5532
5532
|
}
|
|
5533
5533
|
}
|
|
5534
|
-
class
|
|
5534
|
+
class xa {
|
|
5535
5535
|
constructor() {
|
|
5536
5536
|
this.map = /* @__PURE__ */ new Map();
|
|
5537
5537
|
}
|
|
@@ -5548,24 +5548,24 @@ class ya {
|
|
|
5548
5548
|
r && r.forEach(n);
|
|
5549
5549
|
}
|
|
5550
5550
|
}
|
|
5551
|
-
new
|
|
5552
|
-
var Fr;
|
|
5553
|
-
(function(t) {
|
|
5554
|
-
t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 4] = "Right", t[t.Full = 7] = "Full";
|
|
5555
|
-
})(Fr || (Fr = {}));
|
|
5551
|
+
new ya(10);
|
|
5556
5552
|
var Dr;
|
|
5557
5553
|
(function(t) {
|
|
5558
|
-
t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right =
|
|
5554
|
+
t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 4] = "Right", t[t.Full = 7] = "Full";
|
|
5559
5555
|
})(Dr || (Dr = {}));
|
|
5560
5556
|
var Ir;
|
|
5561
5557
|
(function(t) {
|
|
5562
|
-
t[t.
|
|
5558
|
+
t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 3] = "Right";
|
|
5563
5559
|
})(Ir || (Ir = {}));
|
|
5564
5560
|
var Vr;
|
|
5565
5561
|
(function(t) {
|
|
5566
|
-
t[t.
|
|
5562
|
+
t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL";
|
|
5567
5563
|
})(Vr || (Vr = {}));
|
|
5568
|
-
|
|
5564
|
+
var Br;
|
|
5565
|
+
(function(t) {
|
|
5566
|
+
t[t.Both = 0] = "Both", t[t.Right = 1] = "Right", t[t.Left = 2] = "Left", t[t.None = 3] = "None";
|
|
5567
|
+
})(Br || (Br = {}));
|
|
5568
|
+
function _a(t) {
|
|
5569
5569
|
if (!t || t.length === 0)
|
|
5570
5570
|
return !1;
|
|
5571
5571
|
for (let e = 0, n = t.length; e < n; e++) {
|
|
@@ -5582,7 +5582,7 @@ function xa(t) {
|
|
|
5582
5582
|
}
|
|
5583
5583
|
return !1;
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5585
|
+
function La(t, e, n, r, s) {
|
|
5586
5586
|
if (r === 0)
|
|
5587
5587
|
return !0;
|
|
5588
5588
|
const i = e.charCodeAt(r - 1);
|
|
@@ -5595,7 +5595,7 @@ function _a(t, e, n, r, s) {
|
|
|
5595
5595
|
}
|
|
5596
5596
|
return !1;
|
|
5597
5597
|
}
|
|
5598
|
-
function
|
|
5598
|
+
function va(t, e, n, r, s) {
|
|
5599
5599
|
if (r + s === n)
|
|
5600
5600
|
return !0;
|
|
5601
5601
|
const i = e.charCodeAt(r + s);
|
|
@@ -5608,10 +5608,10 @@ function La(t, e, n, r, s) {
|
|
|
5608
5608
|
}
|
|
5609
5609
|
return !1;
|
|
5610
5610
|
}
|
|
5611
|
-
function
|
|
5612
|
-
return
|
|
5611
|
+
function Na(t, e, n, r, s) {
|
|
5612
|
+
return La(t, e, n, r, s) && va(t, e, n, r, s);
|
|
5613
5613
|
}
|
|
5614
|
-
class
|
|
5614
|
+
class Sa {
|
|
5615
5615
|
constructor(e, n) {
|
|
5616
5616
|
this._wordSeparators = e, this._searchRegex = n, this._prevMatchStartIndex = -1, this._prevMatchLength = 0;
|
|
5617
5617
|
}
|
|
@@ -5627,25 +5627,25 @@ class Na {
|
|
|
5627
5627
|
const s = r.index, i = r[0].length;
|
|
5628
5628
|
if (s === this._prevMatchStartIndex && i === this._prevMatchLength) {
|
|
5629
5629
|
if (i === 0) {
|
|
5630
|
-
|
|
5630
|
+
vi(e, n, this._searchRegex.lastIndex) > 65535 ? this._searchRegex.lastIndex += 2 : this._searchRegex.lastIndex += 1;
|
|
5631
5631
|
continue;
|
|
5632
5632
|
}
|
|
5633
5633
|
return null;
|
|
5634
5634
|
}
|
|
5635
|
-
if (this._prevMatchStartIndex = s, this._prevMatchLength = i, !this._wordSeparators ||
|
|
5635
|
+
if (this._prevMatchStartIndex = s, this._prevMatchLength = i, !this._wordSeparators || Na(this._wordSeparators, e, n, s, i))
|
|
5636
5636
|
return r;
|
|
5637
5637
|
} while (r);
|
|
5638
5638
|
return null;
|
|
5639
5639
|
}
|
|
5640
5640
|
}
|
|
5641
|
-
const
|
|
5642
|
-
function
|
|
5641
|
+
const Aa = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";
|
|
5642
|
+
function Ra(t = "") {
|
|
5643
5643
|
let e = "(-?\\d*\\.\\d\\w*)|([^";
|
|
5644
|
-
for (const n of
|
|
5644
|
+
for (const n of Aa)
|
|
5645
5645
|
t.indexOf(n) >= 0 || (e += "\\" + n);
|
|
5646
5646
|
return e += "\\s]+)", new RegExp(e, "g");
|
|
5647
5647
|
}
|
|
5648
|
-
const vs =
|
|
5648
|
+
const vs = Ra();
|
|
5649
5649
|
function Ns(t) {
|
|
5650
5650
|
let e = vs;
|
|
5651
5651
|
if (t && t instanceof RegExp)
|
|
@@ -5657,23 +5657,23 @@ function Ns(t) {
|
|
|
5657
5657
|
}
|
|
5658
5658
|
return e.lastIndex = 0, e;
|
|
5659
5659
|
}
|
|
5660
|
-
const Ss = new
|
|
5660
|
+
const Ss = new Js();
|
|
5661
5661
|
Ss.unshift({
|
|
5662
5662
|
maxLen: 1e3,
|
|
5663
5663
|
windowSize: 15,
|
|
5664
5664
|
timeBudget: 150
|
|
5665
5665
|
});
|
|
5666
|
-
function
|
|
5666
|
+
function pn(t, e, n, r, s) {
|
|
5667
5667
|
if (e = Ns(e), s || (s = _t.first(Ss)), n.length > s.maxLen) {
|
|
5668
5668
|
let c = t - s.maxLen / 2;
|
|
5669
|
-
return c < 0 ? c = 0 : r += c, n = n.substring(c, t + s.maxLen / 2),
|
|
5669
|
+
return c < 0 ? c = 0 : r += c, n = n.substring(c, t + s.maxLen / 2), pn(t, e, n, r, s);
|
|
5670
5670
|
}
|
|
5671
5671
|
const i = Date.now(), a = t - 1 - r;
|
|
5672
5672
|
let l = -1, u = null;
|
|
5673
5673
|
for (let c = 1; !(Date.now() - i >= s.timeBudget); c++) {
|
|
5674
5674
|
const h = a - s.windowSize * c;
|
|
5675
5675
|
e.lastIndex = Math.max(0, h);
|
|
5676
|
-
const f =
|
|
5676
|
+
const f = Ca(e, n, a, l);
|
|
5677
5677
|
if (!f && u || (u = f, h <= 0))
|
|
5678
5678
|
break;
|
|
5679
5679
|
l = h;
|
|
@@ -5688,7 +5688,7 @@ function gn(t, e, n, r, s) {
|
|
|
5688
5688
|
}
|
|
5689
5689
|
return null;
|
|
5690
5690
|
}
|
|
5691
|
-
function
|
|
5691
|
+
function Ca(t, e, n, r) {
|
|
5692
5692
|
let s;
|
|
5693
5693
|
for (; s = t.exec(e); ) {
|
|
5694
5694
|
const i = s.index || 0;
|
|
@@ -5699,12 +5699,12 @@ function Ra(t, e, n, r) {
|
|
|
5699
5699
|
}
|
|
5700
5700
|
return null;
|
|
5701
5701
|
}
|
|
5702
|
-
class
|
|
5702
|
+
class Ea {
|
|
5703
5703
|
static computeUnicodeHighlights(e, n, r) {
|
|
5704
|
-
const s = r ? r.startLineNumber : 1, i = r ? r.endLineNumber : e.getLineCount(), a = new
|
|
5704
|
+
const s = r ? r.startLineNumber : 1, i = r ? r.endLineNumber : e.getLineCount(), a = new qr(n), l = a.getCandidateCodePoints();
|
|
5705
5705
|
let u;
|
|
5706
|
-
l === "allNonBasicAscii" ? u = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : u = new RegExp(`${
|
|
5707
|
-
const c = new
|
|
5706
|
+
l === "allNonBasicAscii" ? u = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : u = new RegExp(`${ka(Array.from(l))}`, "g");
|
|
5707
|
+
const c = new Sa(null, u), h = [];
|
|
5708
5708
|
let f = !1, m, b = 0, g = 0, d = 0;
|
|
5709
5709
|
e: for (let w = s, N = i; w <= N; w++) {
|
|
5710
5710
|
const v = e.getLineContent(w), L = v.length;
|
|
@@ -5714,18 +5714,18 @@ class Ca {
|
|
|
5714
5714
|
let E = m.index, F = m.index + m[0].length;
|
|
5715
5715
|
if (E > 0) {
|
|
5716
5716
|
const A = v.charCodeAt(E - 1);
|
|
5717
|
-
|
|
5717
|
+
jt(A) && E--;
|
|
5718
5718
|
}
|
|
5719
5719
|
if (F + 1 < L) {
|
|
5720
5720
|
const A = v.charCodeAt(F - 1);
|
|
5721
|
-
|
|
5721
|
+
jt(A) && F++;
|
|
5722
5722
|
}
|
|
5723
5723
|
const B = v.substring(E, F);
|
|
5724
|
-
let y =
|
|
5724
|
+
let y = pn(E + 1, vs, v, 0);
|
|
5725
5725
|
y && y.endColumn <= E + 1 && (y = null);
|
|
5726
5726
|
const _ = a.shouldHighlightNonBasicASCII(B, y ? y.word : null);
|
|
5727
5727
|
if (_ !== 0) {
|
|
5728
|
-
if (_ === 3 ? b++ : _ === 2 ? g++ : _ === 1 ? d++ :
|
|
5728
|
+
if (_ === 3 ? b++ : _ === 2 ? g++ : _ === 1 ? d++ : Hs(), h.length >= 1e3) {
|
|
5729
5729
|
f = !0;
|
|
5730
5730
|
break e;
|
|
5731
5731
|
}
|
|
@@ -5743,7 +5743,7 @@ class Ca {
|
|
|
5743
5743
|
};
|
|
5744
5744
|
}
|
|
5745
5745
|
static computeUnicodeHighlightReason(e, n) {
|
|
5746
|
-
const r = new
|
|
5746
|
+
const r = new qr(n);
|
|
5747
5747
|
switch (r.shouldHighlightNonBasicASCII(e, null)) {
|
|
5748
5748
|
case 0:
|
|
5749
5749
|
return null;
|
|
@@ -5764,10 +5764,10 @@ class Ca {
|
|
|
5764
5764
|
}
|
|
5765
5765
|
}
|
|
5766
5766
|
}
|
|
5767
|
-
function
|
|
5768
|
-
return `[${
|
|
5767
|
+
function ka(t, e) {
|
|
5768
|
+
return `[${di(t.map((r) => String.fromCodePoint(r)).join(""))}]`;
|
|
5769
5769
|
}
|
|
5770
|
-
class
|
|
5770
|
+
class qr {
|
|
5771
5771
|
constructor(e) {
|
|
5772
5772
|
this.options = e, this.allowedCodePoints = new Set(e.allowedCodePoints), this.ambiguousCharacters = ve.getInstance(new Set(e.allowedLocales));
|
|
5773
5773
|
}
|
|
@@ -5777,7 +5777,7 @@ class Br {
|
|
|
5777
5777
|
const e = /* @__PURE__ */ new Set();
|
|
5778
5778
|
if (this.options.invisibleCharacters)
|
|
5779
5779
|
for (const n of Ee.codePoints)
|
|
5780
|
-
|
|
5780
|
+
Ur(String.fromCodePoint(n)) || e.add(n);
|
|
5781
5781
|
if (this.options.ambiguousCharacters)
|
|
5782
5782
|
for (const n of this.ambiguousCharacters.getConfusableCodePoints())
|
|
5783
5783
|
e.add(n);
|
|
@@ -5794,17 +5794,17 @@ class Br {
|
|
|
5794
5794
|
let s = !1, i = !1;
|
|
5795
5795
|
if (n)
|
|
5796
5796
|
for (const a of n) {
|
|
5797
|
-
const l = a.codePointAt(0), u =
|
|
5797
|
+
const l = a.codePointAt(0), u = Si(a);
|
|
5798
5798
|
s = s || u, !u && !this.ambiguousCharacters.isAmbiguous(l) && !Ee.isInvisibleCharacter(l) && (i = !0);
|
|
5799
5799
|
}
|
|
5800
5800
|
return (
|
|
5801
5801
|
/* Don't allow mixing weird looking characters with ASCII */
|
|
5802
5802
|
!s && /* Is there an obviously weird looking character? */
|
|
5803
|
-
i ? 0 : this.options.invisibleCharacters && !
|
|
5803
|
+
i ? 0 : this.options.invisibleCharacters && !Ur(e) && Ee.isInvisibleCharacter(r) ? 2 : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(r) ? 3 : 0
|
|
5804
5804
|
);
|
|
5805
5805
|
}
|
|
5806
5806
|
}
|
|
5807
|
-
function
|
|
5807
|
+
function Ur(t) {
|
|
5808
5808
|
return t === " " || t === `
|
|
5809
5809
|
` || t === " ";
|
|
5810
5810
|
}
|
|
@@ -5813,12 +5813,12 @@ class bt {
|
|
|
5813
5813
|
this.changes = e, this.moves = n, this.hitTimeout = r;
|
|
5814
5814
|
}
|
|
5815
5815
|
}
|
|
5816
|
-
class
|
|
5816
|
+
class Ma {
|
|
5817
5817
|
constructor(e, n) {
|
|
5818
5818
|
this.lineRangeMapping = e, this.changes = n;
|
|
5819
5819
|
}
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5821
|
+
function Pa(t, e, n = (r, s) => r === s) {
|
|
5822
5822
|
if (t === e)
|
|
5823
5823
|
return !0;
|
|
5824
5824
|
if (!t || !e || t.length !== e.length)
|
|
@@ -5828,25 +5828,25 @@ function Ma(t, e, n = (r, s) => r === s) {
|
|
|
5828
5828
|
return !1;
|
|
5829
5829
|
return !0;
|
|
5830
5830
|
}
|
|
5831
|
-
function*
|
|
5831
|
+
function* Ta(t, e) {
|
|
5832
5832
|
let n, r;
|
|
5833
5833
|
for (const s of t)
|
|
5834
5834
|
r !== void 0 && e(r, s) ? n.push(s) : (n && (yield n), n = [s]), r = s;
|
|
5835
5835
|
n && (yield n);
|
|
5836
5836
|
}
|
|
5837
|
-
function
|
|
5837
|
+
function Fa(t, e) {
|
|
5838
5838
|
for (let n = 0; n <= t.length; n++)
|
|
5839
5839
|
e(n === 0 ? void 0 : t[n - 1], n === t.length ? void 0 : t[n]);
|
|
5840
5840
|
}
|
|
5841
|
-
function
|
|
5841
|
+
function Da(t, e) {
|
|
5842
5842
|
for (let n = 0; n < t.length; n++)
|
|
5843
5843
|
e(n === 0 ? void 0 : t[n - 1], t[n], n + 1 === t.length ? void 0 : t[n + 1]);
|
|
5844
5844
|
}
|
|
5845
|
-
function
|
|
5845
|
+
function Ia(t, e) {
|
|
5846
5846
|
for (const n of e)
|
|
5847
5847
|
t.push(n);
|
|
5848
5848
|
}
|
|
5849
|
-
var
|
|
5849
|
+
var rn;
|
|
5850
5850
|
(function(t) {
|
|
5851
5851
|
function e(i) {
|
|
5852
5852
|
return i < 0;
|
|
@@ -5864,12 +5864,12 @@ var nn;
|
|
|
5864
5864
|
return i === 0;
|
|
5865
5865
|
}
|
|
5866
5866
|
t.isNeitherLessOrGreaterThan = s, t.greaterThan = 1, t.lessThan = -1, t.neitherLessOrGreaterThan = 0;
|
|
5867
|
-
})(
|
|
5867
|
+
})(rn || (rn = {}));
|
|
5868
5868
|
function Ze(t, e) {
|
|
5869
5869
|
return (n, r) => e(t(n), t(r));
|
|
5870
5870
|
}
|
|
5871
5871
|
const Ye = (t, e) => t - e;
|
|
5872
|
-
function
|
|
5872
|
+
function Va(t) {
|
|
5873
5873
|
return (e, n) => -t(e, n);
|
|
5874
5874
|
}
|
|
5875
5875
|
class wt {
|
|
@@ -5896,7 +5896,7 @@ class wt {
|
|
|
5896
5896
|
}
|
|
5897
5897
|
findLastMaxBy(e) {
|
|
5898
5898
|
let n, r = !0;
|
|
5899
|
-
return this.iterate((s) => ((r ||
|
|
5899
|
+
return this.iterate((s) => ((r || rn.isGreaterThan(e(s, n))) && (r = !1, n = s), !0)), n;
|
|
5900
5900
|
}
|
|
5901
5901
|
}
|
|
5902
5902
|
class $ {
|
|
@@ -6046,11 +6046,11 @@ function Ge(t, e, n = 0, r = t.length) {
|
|
|
6046
6046
|
}
|
|
6047
6047
|
return s - 1;
|
|
6048
6048
|
}
|
|
6049
|
-
function
|
|
6050
|
-
const n =
|
|
6049
|
+
function Ba(t, e) {
|
|
6050
|
+
const n = sn(t, e);
|
|
6051
6051
|
return n === t.length ? void 0 : t[n];
|
|
6052
6052
|
}
|
|
6053
|
-
function
|
|
6053
|
+
function sn(t, e, n = 0, r = t.length) {
|
|
6054
6054
|
let s = n, i = r;
|
|
6055
6055
|
for (; s < i; ) {
|
|
6056
6056
|
const a = Math.floor((s + i) / 2);
|
|
@@ -6058,7 +6058,7 @@ function rn(t, e, n = 0, r = t.length) {
|
|
|
6058
6058
|
}
|
|
6059
6059
|
return s;
|
|
6060
6060
|
}
|
|
6061
|
-
class
|
|
6061
|
+
class Pt {
|
|
6062
6062
|
static {
|
|
6063
6063
|
this.assertInvariants = !1;
|
|
6064
6064
|
}
|
|
@@ -6070,7 +6070,7 @@ class Mt {
|
|
|
6070
6070
|
* For subsequent calls, current predicate must be weaker than (or equal to) the previous predicate, i.e. more entries must be `true`.
|
|
6071
6071
|
*/
|
|
6072
6072
|
findLastMonotonous(e) {
|
|
6073
|
-
if (
|
|
6073
|
+
if (Pt.assertInvariants) {
|
|
6074
6074
|
if (this._prevFindLastPredicate) {
|
|
6075
6075
|
for (const r of this._array)
|
|
6076
6076
|
if (this._prevFindLastPredicate(r) && !e(r))
|
|
@@ -6225,7 +6225,7 @@ class fe {
|
|
|
6225
6225
|
addRange(e) {
|
|
6226
6226
|
if (e.length === 0)
|
|
6227
6227
|
return;
|
|
6228
|
-
const n =
|
|
6228
|
+
const n = sn(this._normalizedRanges, (s) => s.endLineNumberExclusive >= e.startLineNumber), r = Ge(this._normalizedRanges, (s) => s.startLineNumber <= e.endLineNumberExclusive) + 1;
|
|
6229
6229
|
if (n === r)
|
|
6230
6230
|
this._normalizedRanges.splice(n, 0, e);
|
|
6231
6231
|
else if (n === r - 1) {
|
|
@@ -6265,7 +6265,7 @@ class fe {
|
|
|
6265
6265
|
* Subtracts all ranges in this set from `range` and returns the result.
|
|
6266
6266
|
*/
|
|
6267
6267
|
subtractFrom(e) {
|
|
6268
|
-
const n =
|
|
6268
|
+
const n = sn(this._normalizedRanges, (a) => a.endLineNumberExclusive >= e.startLineNumber), r = Ge(this._normalizedRanges, (a) => a.startLineNumber <= e.endLineNumberExclusive) + 1;
|
|
6269
6269
|
if (n === r)
|
|
6270
6270
|
return new fe([e]);
|
|
6271
6271
|
const s = [];
|
|
@@ -6337,7 +6337,7 @@ class ie {
|
|
|
6337
6337
|
return `${this.lineCount},${this.columnCount}`;
|
|
6338
6338
|
}
|
|
6339
6339
|
}
|
|
6340
|
-
class
|
|
6340
|
+
class qa {
|
|
6341
6341
|
getOffsetRange(e) {
|
|
6342
6342
|
return new $(this.getOffset(e.getStartPosition()), this.getOffset(e.getEndPosition()));
|
|
6343
6343
|
}
|
|
@@ -6365,7 +6365,7 @@ class yt {
|
|
|
6365
6365
|
return this._deps;
|
|
6366
6366
|
}
|
|
6367
6367
|
}
|
|
6368
|
-
class
|
|
6368
|
+
class Ua extends qa {
|
|
6369
6369
|
constructor(e) {
|
|
6370
6370
|
super(), this.text = e, this.lineStartOffsetByLineIdx = [], this.lineEndOffsetByLineIdx = [], this.lineStartOffsetByLineIdx.push(0);
|
|
6371
6371
|
for (let n = 0; n < e.length; n++)
|
|
@@ -6402,7 +6402,7 @@ class qa extends Ba {
|
|
|
6402
6402
|
return this.lineEndOffsetByLineIdx[e - 1] - this.lineStartOffsetByLineIdx[e - 1];
|
|
6403
6403
|
}
|
|
6404
6404
|
}
|
|
6405
|
-
class
|
|
6405
|
+
class $a {
|
|
6406
6406
|
constructor() {
|
|
6407
6407
|
this._transformer = void 0;
|
|
6408
6408
|
}
|
|
@@ -6422,15 +6422,15 @@ class Ua {
|
|
|
6422
6422
|
return this.getValueOfRange(new C(e, 1, e, Number.MAX_SAFE_INTEGER)).length;
|
|
6423
6423
|
}
|
|
6424
6424
|
getTransformer() {
|
|
6425
|
-
return this._transformer || (this._transformer = new
|
|
6425
|
+
return this._transformer || (this._transformer = new Ua(this.getValue())), this._transformer;
|
|
6426
6426
|
}
|
|
6427
6427
|
getLineAt(e) {
|
|
6428
6428
|
return this.getValueOfRange(new C(e, 1, e, Number.MAX_SAFE_INTEGER));
|
|
6429
6429
|
}
|
|
6430
6430
|
}
|
|
6431
|
-
class
|
|
6431
|
+
class za extends $a {
|
|
6432
6432
|
constructor(e, n) {
|
|
6433
|
-
|
|
6433
|
+
Os(n >= 1), super(), this._getLineContent = e, this._lineCount = n;
|
|
6434
6434
|
}
|
|
6435
6435
|
getValueOfRange(e) {
|
|
6436
6436
|
if (e.startLineNumber === e.endLineNumber)
|
|
@@ -6450,7 +6450,7 @@ class $a extends Ua {
|
|
|
6450
6450
|
return new ie(this._lineCount - 1, e.length);
|
|
6451
6451
|
}
|
|
6452
6452
|
}
|
|
6453
|
-
class mt extends
|
|
6453
|
+
class mt extends za {
|
|
6454
6454
|
constructor(e) {
|
|
6455
6455
|
super((n) => e[n - 1], e.length);
|
|
6456
6456
|
}
|
|
@@ -6498,7 +6498,7 @@ class _e {
|
|
|
6498
6498
|
`, `
|
|
6499
6499
|
`), r = this.text.replaceAll(`\r
|
|
6500
6500
|
`, `
|
|
6501
|
-
`), s =
|
|
6501
|
+
`), s = yi(n, r), i = ie.ofText(n.substring(0, s)).addToPosition(this.range.getStartPosition()), a = r.substring(s), l = C.fromPositions(i, this.range.getEndPosition());
|
|
6502
6502
|
return new _e(l, a);
|
|
6503
6503
|
}
|
|
6504
6504
|
removeCommonSuffix(e) {
|
|
@@ -6506,7 +6506,7 @@ class _e {
|
|
|
6506
6506
|
`, `
|
|
6507
6507
|
`), r = this.text.replaceAll(`\r
|
|
6508
6508
|
`, `
|
|
6509
|
-
`), s =
|
|
6509
|
+
`), s = xi(n, r), i = ie.ofText(n.substring(0, n.length - s)).addToPosition(this.range.getStartPosition()), a = r.substring(0, r.length - s), l = C.fromPositions(this.range.getStartPosition(), i);
|
|
6510
6510
|
return new _e(l, a);
|
|
6511
6511
|
}
|
|
6512
6512
|
toString() {
|
|
@@ -6567,7 +6567,7 @@ class le {
|
|
|
6567
6567
|
* It avoids various problems when the line range points to non-existing line-numbers.
|
|
6568
6568
|
*/
|
|
6569
6569
|
toRangeMapping2(e, n) {
|
|
6570
|
-
if (
|
|
6570
|
+
if ($r(this.original.endLineNumberExclusive, e) && $r(this.modified.endLineNumberExclusive, n))
|
|
6571
6571
|
return new ae(new C(this.original.startLineNumber, 1, this.original.endLineNumberExclusive, 1), new C(this.modified.startLineNumber, 1, this.modified.endLineNumberExclusive, 1));
|
|
6572
6572
|
if (!this.original.isEmpty && !this.modified.isEmpty)
|
|
6573
6573
|
return new ae(C.fromPositions(new z(this.original.startLineNumber, 1), Ie(new z(this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), e)), C.fromPositions(new z(this.modified.startLineNumber, 1), Ie(new z(this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), n)));
|
|
@@ -6584,7 +6584,7 @@ function Ie(t, e) {
|
|
|
6584
6584
|
const n = e[t.lineNumber - 1];
|
|
6585
6585
|
return t.column > n.length + 1 ? new z(t.lineNumber, n.length + 1) : t;
|
|
6586
6586
|
}
|
|
6587
|
-
function
|
|
6587
|
+
function $r(t, e) {
|
|
6588
6588
|
return t >= 1 && t <= e.length;
|
|
6589
6589
|
}
|
|
6590
6590
|
class be extends le {
|
|
@@ -6631,25 +6631,25 @@ class ae {
|
|
|
6631
6631
|
return new _e(this.originalRange, n);
|
|
6632
6632
|
}
|
|
6633
6633
|
}
|
|
6634
|
-
function
|
|
6634
|
+
function zr(t, e, n, r = !1) {
|
|
6635
6635
|
const s = [];
|
|
6636
|
-
for (const i of
|
|
6636
|
+
for (const i of Ta(t.map((a) => Wa(a, e, n)), (a, l) => a.original.intersectsOrTouches(l.original) || a.modified.intersectsOrTouches(l.modified))) {
|
|
6637
6637
|
const a = i[0], l = i[i.length - 1];
|
|
6638
6638
|
s.push(new be(a.original.join(l.original), a.modified.join(l.modified), i.map((u) => u.innerChanges[0])));
|
|
6639
6639
|
}
|
|
6640
6640
|
return xt(() => !r && s.length > 0 && (s[0].modified.startLineNumber !== s[0].original.startLineNumber || n.length.lineCount - s[s.length - 1].modified.endLineNumberExclusive !== e.length.lineCount - s[s.length - 1].original.endLineNumberExclusive) ? !1 : hs(s, (i, a) => a.original.startLineNumber - i.original.endLineNumberExclusive === a.modified.startLineNumber - i.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
|
|
6641
6641
|
i.original.endLineNumberExclusive < a.original.startLineNumber && i.modified.endLineNumberExclusive < a.modified.startLineNumber)), s;
|
|
6642
6642
|
}
|
|
6643
|
-
function
|
|
6643
|
+
function Wa(t, e, n) {
|
|
6644
6644
|
let r = 0, s = 0;
|
|
6645
6645
|
t.modifiedRange.endColumn === 1 && t.originalRange.endColumn === 1 && t.originalRange.startLineNumber + r <= t.originalRange.endLineNumber && t.modifiedRange.startLineNumber + r <= t.modifiedRange.endLineNumber && (s = -1), t.modifiedRange.startColumn - 1 >= n.getLineLength(t.modifiedRange.startLineNumber) && t.originalRange.startColumn - 1 >= e.getLineLength(t.originalRange.startLineNumber) && t.originalRange.startLineNumber <= t.originalRange.endLineNumber + s && t.modifiedRange.startLineNumber <= t.modifiedRange.endLineNumber + s && (r = 1);
|
|
6646
6646
|
const i = new I(t.originalRange.startLineNumber + r, t.originalRange.endLineNumber + 1 + s), a = new I(t.modifiedRange.startLineNumber + r, t.modifiedRange.endLineNumber + 1 + s);
|
|
6647
6647
|
return new be(i, a, [t]);
|
|
6648
6648
|
}
|
|
6649
|
-
const
|
|
6650
|
-
class
|
|
6649
|
+
const Ha = 3;
|
|
6650
|
+
class Oa {
|
|
6651
6651
|
computeDiff(e, n, r) {
|
|
6652
|
-
const i = new
|
|
6652
|
+
const i = new Xa(e, n, {
|
|
6653
6653
|
maxComputationTime: r.maxComputationTimeMs,
|
|
6654
6654
|
shouldIgnoreTrimWhitespace: r.ignoreTrimWhitespace,
|
|
6655
6655
|
shouldComputeCharChanges: !0,
|
|
@@ -6672,11 +6672,11 @@ class Ha {
|
|
|
6672
6672
|
function As(t, e, n, r) {
|
|
6673
6673
|
return new Le(t, e, n).ComputeDiff(r);
|
|
6674
6674
|
}
|
|
6675
|
-
let
|
|
6675
|
+
let Wr = class {
|
|
6676
6676
|
constructor(e) {
|
|
6677
6677
|
const n = [], r = [];
|
|
6678
6678
|
for (let s = 0, i = e.length; s < i; s++)
|
|
6679
|
-
n[s] =
|
|
6679
|
+
n[s] = an(e[s], 1), r[s] = on(e[s], 1);
|
|
6680
6680
|
this.lines = e, this._startColumns = n, this._endColumns = r;
|
|
6681
6681
|
}
|
|
6682
6682
|
getElements() {
|
|
@@ -6703,10 +6703,10 @@ let zr = class {
|
|
|
6703
6703
|
s[l] = c.charCodeAt(m - 1), i[l] = u + 1, a[l] = m, l++;
|
|
6704
6704
|
!e && u < r && (s[l] = 10, i[l] = u + 1, a[l] = c.length + 1, l++);
|
|
6705
6705
|
}
|
|
6706
|
-
return new
|
|
6706
|
+
return new Ga(s, i, a);
|
|
6707
6707
|
}
|
|
6708
6708
|
};
|
|
6709
|
-
class
|
|
6709
|
+
class Ga {
|
|
6710
6710
|
constructor(e, n, r) {
|
|
6711
6711
|
this._charCodes = e, this._lineNumbers = n, this._columns = r;
|
|
6712
6712
|
}
|
|
@@ -6742,14 +6742,14 @@ class ze {
|
|
|
6742
6742
|
return new ze(s, i, a, l, u, c, h, f);
|
|
6743
6743
|
}
|
|
6744
6744
|
}
|
|
6745
|
-
function
|
|
6745
|
+
function ja(t) {
|
|
6746
6746
|
if (t.length <= 1)
|
|
6747
6747
|
return t;
|
|
6748
6748
|
const e = [t[0]];
|
|
6749
6749
|
let n = e[0];
|
|
6750
6750
|
for (let r = 1, s = t.length; r < s; r++) {
|
|
6751
6751
|
const i = t[r], a = i.originalStart - (n.originalStart + n.originalLength), l = i.modifiedStart - (n.modifiedStart + n.modifiedLength);
|
|
6752
|
-
Math.min(a, l) <
|
|
6752
|
+
Math.min(a, l) < Ha ? (n.originalLength = i.originalStart + i.originalLength - n.originalStart, n.modifiedLength = i.modifiedStart + i.modifiedLength - n.modifiedStart) : (e.push(i), n = i);
|
|
6753
6753
|
}
|
|
6754
6754
|
return e;
|
|
6755
6755
|
}
|
|
@@ -6763,7 +6763,7 @@ class Ke {
|
|
|
6763
6763
|
const b = r.createCharSequence(e, n.originalStart, n.originalStart + n.originalLength - 1), g = s.createCharSequence(e, n.modifiedStart, n.modifiedStart + n.modifiedLength - 1);
|
|
6764
6764
|
if (b.getElements().length > 0 && g.getElements().length > 0) {
|
|
6765
6765
|
let d = As(b, g, i, !0).changes;
|
|
6766
|
-
l && (d =
|
|
6766
|
+
l && (d = ja(d)), m = [];
|
|
6767
6767
|
for (let w = 0, N = d.length; w < N; w++)
|
|
6768
6768
|
m.push(ze.createFromDiffChange(d[w], b, g));
|
|
6769
6769
|
}
|
|
@@ -6771,9 +6771,9 @@ class Ke {
|
|
|
6771
6771
|
return new Ke(u, c, h, f, m);
|
|
6772
6772
|
}
|
|
6773
6773
|
}
|
|
6774
|
-
class
|
|
6774
|
+
class Xa {
|
|
6775
6775
|
constructor(e, n, r) {
|
|
6776
|
-
this.shouldComputeCharChanges = r.shouldComputeCharChanges, this.shouldPostProcessCharChanges = r.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = r.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = r.shouldMakePrettyDiff, this.originalLines = e, this.modifiedLines = n, this.original = new
|
|
6776
|
+
this.shouldComputeCharChanges = r.shouldComputeCharChanges, this.shouldPostProcessCharChanges = r.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = r.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = r.shouldMakePrettyDiff, this.originalLines = e, this.modifiedLines = n, this.original = new Wr(e), this.modified = new Wr(n), this.continueLineDiff = Hr(r.maxComputationTime), this.continueCharDiff = Hr(r.maxComputationTime === 0 ? 0 : Math.min(r.maxComputationTime, 5e3));
|
|
6777
6777
|
}
|
|
6778
6778
|
computeDiff() {
|
|
6779
6779
|
if (this.original.lines.length === 1 && this.original.lines[0].length === 0)
|
|
@@ -6819,7 +6819,7 @@ class ja {
|
|
|
6819
6819
|
const m = this.originalLines[i], b = this.modifiedLines[a];
|
|
6820
6820
|
if (m !== b) {
|
|
6821
6821
|
{
|
|
6822
|
-
let g =
|
|
6822
|
+
let g = an(m, 1), d = an(b, 1);
|
|
6823
6823
|
for (; g > 1 && d > 1; ) {
|
|
6824
6824
|
const w = m.charCodeAt(g - 2), N = b.charCodeAt(d - 2);
|
|
6825
6825
|
if (w !== N)
|
|
@@ -6829,7 +6829,7 @@ class ja {
|
|
|
6829
6829
|
(g > 1 || d > 1) && this._pushTrimWhitespaceCharChange(s, i + 1, 1, g, a + 1, 1, d);
|
|
6830
6830
|
}
|
|
6831
6831
|
{
|
|
6832
|
-
let g =
|
|
6832
|
+
let g = on(m, 1), d = on(b, 1);
|
|
6833
6833
|
const w = m.length + 1, N = b.length + 1;
|
|
6834
6834
|
for (; g < w && d < N; ) {
|
|
6835
6835
|
const v = m.charCodeAt(g - 1), L = m.charCodeAt(d - 1);
|
|
@@ -6863,15 +6863,15 @@ class ja {
|
|
|
6863
6863
|
return c.originalEndLineNumber === 0 || c.modifiedEndLineNumber === 0 ? !1 : c.originalEndLineNumber === n && c.modifiedEndLineNumber === i ? (this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new ze(n, r, n, s, i, a, i, l)), !0) : c.originalEndLineNumber + 1 === n && c.modifiedEndLineNumber + 1 === i ? (c.originalEndLineNumber = n, c.modifiedEndLineNumber = i, this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new ze(n, r, n, s, i, a, i, l)), !0) : !1;
|
|
6864
6864
|
}
|
|
6865
6865
|
}
|
|
6866
|
-
function sn(t, e) {
|
|
6867
|
-
const n = pi(t);
|
|
6868
|
-
return n === -1 ? e : n + 1;
|
|
6869
|
-
}
|
|
6870
6866
|
function an(t, e) {
|
|
6871
6867
|
const n = bi(t);
|
|
6868
|
+
return n === -1 ? e : n + 1;
|
|
6869
|
+
}
|
|
6870
|
+
function on(t, e) {
|
|
6871
|
+
const n = wi(t);
|
|
6872
6872
|
return n === -1 ? e : n + 2;
|
|
6873
6873
|
}
|
|
6874
|
-
function
|
|
6874
|
+
function Hr(t) {
|
|
6875
6875
|
if (t === 0)
|
|
6876
6876
|
return () => !0;
|
|
6877
6877
|
const e = Date.now();
|
|
@@ -6891,7 +6891,7 @@ class we {
|
|
|
6891
6891
|
class j {
|
|
6892
6892
|
static invert(e, n) {
|
|
6893
6893
|
const r = [];
|
|
6894
|
-
return
|
|
6894
|
+
return Fa(e, (s, i) => {
|
|
6895
6895
|
r.push(j.fromOffsetPairs(s ? s.getEndExclusives() : ce.zero, i ? i.getStarts() : new ce(n, (s ? s.seq2Range.endExclusive - s.seq1Range.endExclusive : 0) + n)));
|
|
6896
6896
|
}), r;
|
|
6897
6897
|
}
|
|
@@ -6967,7 +6967,7 @@ class lt {
|
|
|
6967
6967
|
return !0;
|
|
6968
6968
|
}
|
|
6969
6969
|
}
|
|
6970
|
-
class
|
|
6970
|
+
class Qa {
|
|
6971
6971
|
constructor(e) {
|
|
6972
6972
|
if (this.timeout = e, this.startTime = Date.now(), this.valid = !0, e <= 0)
|
|
6973
6973
|
throw new Z("timeout must be positive");
|
|
@@ -6977,7 +6977,7 @@ class Xa {
|
|
|
6977
6977
|
return !(Date.now() - this.startTime < this.timeout) && this.valid && (this.valid = !1), this.valid;
|
|
6978
6978
|
}
|
|
6979
6979
|
}
|
|
6980
|
-
class
|
|
6980
|
+
class qt {
|
|
6981
6981
|
constructor(e, n) {
|
|
6982
6982
|
this.width = e, this.height = n, this.array = [], this.array = new Array(e * n);
|
|
6983
6983
|
}
|
|
@@ -6988,7 +6988,7 @@ class Bt {
|
|
|
6988
6988
|
this.array[e + n * this.width] = r;
|
|
6989
6989
|
}
|
|
6990
6990
|
}
|
|
6991
|
-
function
|
|
6991
|
+
function ln(t) {
|
|
6992
6992
|
return t === 32 || t === 9;
|
|
6993
6993
|
}
|
|
6994
6994
|
class it {
|
|
@@ -7024,11 +7024,11 @@ class it {
|
|
|
7024
7024
|
return 1 - n / (this.totalCount + e.totalCount);
|
|
7025
7025
|
}
|
|
7026
7026
|
}
|
|
7027
|
-
class
|
|
7027
|
+
class Ja {
|
|
7028
7028
|
compute(e, n, r = lt.instance, s) {
|
|
7029
7029
|
if (e.length === 0 || n.length === 0)
|
|
7030
7030
|
return we.trivial(e, n);
|
|
7031
|
-
const i = new
|
|
7031
|
+
const i = new qt(e.length, n.length), a = new qt(e.length, n.length), l = new qt(e.length, n.length);
|
|
7032
7032
|
for (let g = 0; g < e.length; g++)
|
|
7033
7033
|
for (let d = 0; d < n.length; d++) {
|
|
7034
7034
|
if (!r.isValid())
|
|
@@ -7065,10 +7065,10 @@ class Rs {
|
|
|
7065
7065
|
return d;
|
|
7066
7066
|
}
|
|
7067
7067
|
let l = 0;
|
|
7068
|
-
const u = new
|
|
7068
|
+
const u = new Za();
|
|
7069
7069
|
u.set(0, a(0, 0));
|
|
7070
|
-
const c = new
|
|
7071
|
-
c.set(0, u.get(0) === 0 ? null : new
|
|
7070
|
+
const c = new Ya();
|
|
7071
|
+
c.set(0, u.get(0) === 0 ? null : new Or(null, 0, 0, u.get(0)));
|
|
7072
7072
|
let h = 0;
|
|
7073
7073
|
e: for (; ; ) {
|
|
7074
7074
|
if (l++, !r.isValid())
|
|
@@ -7081,7 +7081,7 @@ class Rs {
|
|
|
7081
7081
|
const F = a(L, E);
|
|
7082
7082
|
u.set(h, F);
|
|
7083
7083
|
const B = L === N ? c.get(h + 1) : c.get(h - 1);
|
|
7084
|
-
if (c.set(h, F !== L ? new
|
|
7084
|
+
if (c.set(h, F !== L ? new Or(B, L, E, F - L) : B), u.get(h) === s.length && u.get(h) - h === i.length)
|
|
7085
7085
|
break e;
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
@@ -7097,12 +7097,12 @@ class Rs {
|
|
|
7097
7097
|
return m.reverse(), new we(m, !1);
|
|
7098
7098
|
}
|
|
7099
7099
|
}
|
|
7100
|
-
class
|
|
7100
|
+
class Or {
|
|
7101
7101
|
constructor(e, n, r, s) {
|
|
7102
7102
|
this.prev = e, this.x = n, this.y = r, this.length = s;
|
|
7103
7103
|
}
|
|
7104
7104
|
}
|
|
7105
|
-
class
|
|
7105
|
+
class Za {
|
|
7106
7106
|
constructor() {
|
|
7107
7107
|
this.positiveArr = new Int32Array(10), this.negativeArr = new Int32Array(10);
|
|
7108
7108
|
}
|
|
@@ -7125,7 +7125,7 @@ class Ja {
|
|
|
7125
7125
|
}
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
|
-
class
|
|
7128
|
+
class Ya {
|
|
7129
7129
|
constructor() {
|
|
7130
7130
|
this.positiveArr = [], this.negativeArr = [];
|
|
7131
7131
|
}
|
|
@@ -7170,13 +7170,13 @@ class Ct {
|
|
|
7170
7170
|
return this.elements.length;
|
|
7171
7171
|
}
|
|
7172
7172
|
getBoundaryScore(e) {
|
|
7173
|
-
const n =
|
|
7173
|
+
const n = Xr(e > 0 ? this.elements[e - 1] : -1), r = Xr(e < this.elements.length ? this.elements[e] : -1);
|
|
7174
7174
|
if (n === 7 && r === 8)
|
|
7175
7175
|
return 0;
|
|
7176
7176
|
if (n === 8)
|
|
7177
7177
|
return 150;
|
|
7178
7178
|
let s = 0;
|
|
7179
|
-
return n !== r && (s += 10, n === 0 && r === 1 && (s += 1)), s +=
|
|
7179
|
+
return n !== r && (s += 10, n === 0 && r === 1 && (s += 1)), s += jr(n), s += jr(r), s;
|
|
7180
7180
|
}
|
|
7181
7181
|
translateOffset(e, n = "right") {
|
|
7182
7182
|
const r = Ge(this.firstElementOffsetByLineIdx, (i) => i <= e), s = e - this.firstElementOffsetByLineIdx[r];
|
|
@@ -7205,10 +7205,10 @@ class Ct {
|
|
|
7205
7205
|
if (e < 0 || e >= this.elements.length || !Ve(this.elements[e]))
|
|
7206
7206
|
return;
|
|
7207
7207
|
let n = e;
|
|
7208
|
-
for (; n > 0 && Ve(this.elements[n - 1]) && !
|
|
7208
|
+
for (; n > 0 && Ve(this.elements[n - 1]) && !Gr(this.elements[n]); )
|
|
7209
7209
|
n--;
|
|
7210
7210
|
let r = e;
|
|
7211
|
-
for (; r < this.elements.length && Ve(this.elements[r]) && !
|
|
7211
|
+
for (; r < this.elements.length && Ve(this.elements[r]) && !Gr(this.elements[r]); )
|
|
7212
7212
|
r++;
|
|
7213
7213
|
return new $(n, r);
|
|
7214
7214
|
}
|
|
@@ -7219,17 +7219,17 @@ class Ct {
|
|
|
7219
7219
|
return this.elements[e] === this.elements[n];
|
|
7220
7220
|
}
|
|
7221
7221
|
extendToFullLines(e) {
|
|
7222
|
-
const n = Oe(this.firstElementOffsetByLineIdx, (s) => s <= e.start) ?? 0, r =
|
|
7222
|
+
const n = Oe(this.firstElementOffsetByLineIdx, (s) => s <= e.start) ?? 0, r = Ba(this.firstElementOffsetByLineIdx, (s) => e.endExclusive <= s) ?? this.elements.length;
|
|
7223
7223
|
return new $(n, r);
|
|
7224
7224
|
}
|
|
7225
7225
|
}
|
|
7226
7226
|
function Ve(t) {
|
|
7227
7227
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57;
|
|
7228
7228
|
}
|
|
7229
|
-
function
|
|
7229
|
+
function Gr(t) {
|
|
7230
7230
|
return t >= 65 && t <= 90;
|
|
7231
7231
|
}
|
|
7232
|
-
const
|
|
7232
|
+
const Ka = {
|
|
7233
7233
|
0: 0,
|
|
7234
7234
|
1: 0,
|
|
7235
7235
|
2: 0,
|
|
@@ -7240,30 +7240,30 @@ const Ya = {
|
|
|
7240
7240
|
7: 10,
|
|
7241
7241
|
8: 10
|
|
7242
7242
|
};
|
|
7243
|
-
function Gr(t) {
|
|
7244
|
-
return Ya[t];
|
|
7245
|
-
}
|
|
7246
7243
|
function jr(t) {
|
|
7247
|
-
return t
|
|
7244
|
+
return Ka[t];
|
|
7248
7245
|
}
|
|
7249
|
-
function
|
|
7250
|
-
|
|
7246
|
+
function Xr(t) {
|
|
7247
|
+
return t === 10 ? 8 : t === 13 ? 7 : ln(t) ? 6 : t >= 97 && t <= 122 ? 0 : t >= 65 && t <= 90 ? 1 : t >= 48 && t <= 57 ? 2 : t === -1 ? 3 : t === 44 || t === 59 ? 5 : 4;
|
|
7248
|
+
}
|
|
7249
|
+
function e1(t, e, n, r, s, i) {
|
|
7250
|
+
let { moves: a, excludedChanges: l } = n1(t, e, n, i);
|
|
7251
7251
|
if (!i.isValid())
|
|
7252
7252
|
return [];
|
|
7253
|
-
const u = t.filter((h) => !l.has(h)), c =
|
|
7254
|
-
return
|
|
7253
|
+
const u = t.filter((h) => !l.has(h)), c = r1(u, r, s, e, n, i);
|
|
7254
|
+
return Ia(a, c), a = s1(a), a = a.filter((h) => {
|
|
7255
7255
|
const f = h.original.toOffsetRange().slice(e).map((b) => b.trim());
|
|
7256
7256
|
return f.join(`
|
|
7257
|
-
`).length >= 15 &&
|
|
7258
|
-
}), a =
|
|
7257
|
+
`).length >= 15 && t1(f, (b) => b.length >= 2) >= 2;
|
|
7258
|
+
}), a = i1(t, a), a;
|
|
7259
7259
|
}
|
|
7260
|
-
function
|
|
7260
|
+
function t1(t, e) {
|
|
7261
7261
|
let n = 0;
|
|
7262
7262
|
for (const r of t)
|
|
7263
7263
|
e(r) && n++;
|
|
7264
7264
|
return n;
|
|
7265
7265
|
}
|
|
7266
|
-
function
|
|
7266
|
+
function n1(t, e, n, r) {
|
|
7267
7267
|
const s = [], i = t.filter((u) => u.modified.isEmpty && u.original.length >= 3).map((u) => new it(u.original, e, u)), a = new Set(t.filter((u) => u.original.isEmpty && u.modified.length >= 3).map((u) => new it(u.modified, n, u))), l = /* @__PURE__ */ new Set();
|
|
7268
7268
|
for (const u of i) {
|
|
7269
7269
|
let c = -1, h;
|
|
@@ -7276,8 +7276,8 @@ function t1(t, e, n, r) {
|
|
|
7276
7276
|
}
|
|
7277
7277
|
return { moves: s, excludedChanges: l };
|
|
7278
7278
|
}
|
|
7279
|
-
function
|
|
7280
|
-
const a = [], l = new
|
|
7279
|
+
function r1(t, e, n, r, s, i) {
|
|
7280
|
+
const a = [], l = new xa();
|
|
7281
7281
|
for (const m of t)
|
|
7282
7282
|
for (let b = m.original.startLineNumber; b < m.original.endLineNumberExclusive - 2; b++) {
|
|
7283
7283
|
const g = `${e[b - 1]}:${e[b + 1 - 1]}:${e[b + 2 - 1]}`;
|
|
@@ -7305,7 +7305,7 @@ function n1(t, e, n, r, s, i) {
|
|
|
7305
7305
|
if (!i.isValid())
|
|
7306
7306
|
return [];
|
|
7307
7307
|
}
|
|
7308
|
-
u.sort(
|
|
7308
|
+
u.sort(Va(Ze((m) => m.modifiedLineRange.length, Ye)));
|
|
7309
7309
|
const c = new fe(), h = new fe();
|
|
7310
7310
|
for (const m of u) {
|
|
7311
7311
|
const b = m.modifiedLineRange.startLineNumber - m.originalLineRange.startLineNumber, g = c.subtractFrom(m.modifiedLineRange), d = h.subtractFrom(m.originalLineRange).getWithDelta(b), w = g.getIntersection(d);
|
|
@@ -7317,27 +7317,27 @@ function n1(t, e, n, r, s, i) {
|
|
|
7317
7317
|
}
|
|
7318
7318
|
}
|
|
7319
7319
|
a.sort(Ze((m) => m.original.startLineNumber, Ye));
|
|
7320
|
-
const f = new
|
|
7320
|
+
const f = new Pt(t);
|
|
7321
7321
|
for (let m = 0; m < a.length; m++) {
|
|
7322
7322
|
const b = a[m], g = f.findLastMonotonous((B) => B.original.startLineNumber <= b.original.startLineNumber), d = Oe(t, (B) => B.modified.startLineNumber <= b.modified.startLineNumber), w = Math.max(b.original.startLineNumber - g.original.startLineNumber, b.modified.startLineNumber - d.modified.startLineNumber), N = f.findLastMonotonous((B) => B.original.startLineNumber < b.original.endLineNumberExclusive), v = Oe(t, (B) => B.modified.startLineNumber < b.modified.endLineNumberExclusive), L = Math.max(N.original.endLineNumberExclusive - b.original.endLineNumberExclusive, v.modified.endLineNumberExclusive - b.modified.endLineNumberExclusive);
|
|
7323
7323
|
let E;
|
|
7324
7324
|
for (E = 0; E < w; E++) {
|
|
7325
7325
|
const B = b.original.startLineNumber - E - 1, y = b.modified.startLineNumber - E - 1;
|
|
7326
|
-
if (B > r.length || y > s.length || c.contains(y) || h.contains(B) || !
|
|
7326
|
+
if (B > r.length || y > s.length || c.contains(y) || h.contains(B) || !Qr(r[B - 1], s[y - 1], i))
|
|
7327
7327
|
break;
|
|
7328
7328
|
}
|
|
7329
7329
|
E > 0 && (h.addRange(new I(b.original.startLineNumber - E, b.original.startLineNumber)), c.addRange(new I(b.modified.startLineNumber - E, b.modified.startLineNumber)));
|
|
7330
7330
|
let F;
|
|
7331
7331
|
for (F = 0; F < L; F++) {
|
|
7332
7332
|
const B = b.original.endLineNumberExclusive + F, y = b.modified.endLineNumberExclusive + F;
|
|
7333
|
-
if (B > r.length || y > s.length || c.contains(y) || h.contains(B) || !
|
|
7333
|
+
if (B > r.length || y > s.length || c.contains(y) || h.contains(B) || !Qr(r[B - 1], s[y - 1], i))
|
|
7334
7334
|
break;
|
|
7335
7335
|
}
|
|
7336
7336
|
F > 0 && (h.addRange(new I(b.original.endLineNumberExclusive, b.original.endLineNumberExclusive + F)), c.addRange(new I(b.modified.endLineNumberExclusive, b.modified.endLineNumberExclusive + F))), (E > 0 || F > 0) && (a[m] = new le(new I(b.original.startLineNumber - E, b.original.endLineNumberExclusive + F), new I(b.modified.startLineNumber - E, b.modified.endLineNumberExclusive + F)));
|
|
7337
7337
|
}
|
|
7338
7338
|
return a;
|
|
7339
7339
|
}
|
|
7340
|
-
function
|
|
7340
|
+
function Qr(t, e, n) {
|
|
7341
7341
|
if (t.trim() === e.trim())
|
|
7342
7342
|
return !0;
|
|
7343
7343
|
if (t.length > 300 && e.length > 300)
|
|
@@ -7347,18 +7347,18 @@ function Xr(t, e, n) {
|
|
|
7347
7347
|
const a = j.invert(s.diffs, t.length);
|
|
7348
7348
|
for (const h of a)
|
|
7349
7349
|
h.seq1Range.forEach((f) => {
|
|
7350
|
-
|
|
7350
|
+
ln(t.charCodeAt(f)) || i++;
|
|
7351
7351
|
});
|
|
7352
7352
|
function l(h) {
|
|
7353
7353
|
let f = 0;
|
|
7354
7354
|
for (let m = 0; m < t.length; m++)
|
|
7355
|
-
|
|
7355
|
+
ln(h.charCodeAt(m)) || f++;
|
|
7356
7356
|
return f;
|
|
7357
7357
|
}
|
|
7358
7358
|
const u = l(t.length > e.length ? t : e);
|
|
7359
7359
|
return i / u > 0.6 && u > 10;
|
|
7360
7360
|
}
|
|
7361
|
-
function
|
|
7361
|
+
function s1(t) {
|
|
7362
7362
|
if (t.length === 0)
|
|
7363
7363
|
return t;
|
|
7364
7364
|
t.sort(Ze((n) => n.original.startLineNumber, Ye));
|
|
@@ -7373,18 +7373,18 @@ function r1(t) {
|
|
|
7373
7373
|
}
|
|
7374
7374
|
return e;
|
|
7375
7375
|
}
|
|
7376
|
-
function
|
|
7377
|
-
const n = new
|
|
7376
|
+
function i1(t, e) {
|
|
7377
|
+
const n = new Pt(t);
|
|
7378
7378
|
return e = e.filter((r) => {
|
|
7379
7379
|
const s = n.findLastMonotonous((l) => l.original.startLineNumber < r.original.endLineNumberExclusive) || new le(new I(1, 1), new I(1, 1)), i = Oe(t, (l) => l.modified.startLineNumber < r.modified.endLineNumberExclusive);
|
|
7380
7380
|
return s !== i;
|
|
7381
7381
|
}), e;
|
|
7382
7382
|
}
|
|
7383
|
-
function
|
|
7383
|
+
function Jr(t, e, n) {
|
|
7384
7384
|
let r = n;
|
|
7385
|
-
return r =
|
|
7385
|
+
return r = Zr(t, e, r), r = Zr(t, e, r), r = a1(t, e, r), r;
|
|
7386
7386
|
}
|
|
7387
|
-
function
|
|
7387
|
+
function Zr(t, e, n) {
|
|
7388
7388
|
if (n.length === 0)
|
|
7389
7389
|
return n;
|
|
7390
7390
|
const r = [];
|
|
@@ -7424,16 +7424,16 @@ function Jr(t, e, n) {
|
|
|
7424
7424
|
}
|
|
7425
7425
|
return r.length > 0 && s.push(r[r.length - 1]), s;
|
|
7426
7426
|
}
|
|
7427
|
-
function
|
|
7427
|
+
function a1(t, e, n) {
|
|
7428
7428
|
if (!t.getBoundaryScore || !e.getBoundaryScore)
|
|
7429
7429
|
return n;
|
|
7430
7430
|
for (let r = 0; r < n.length; r++) {
|
|
7431
7431
|
const s = r > 0 ? n[r - 1] : void 0, i = n[r], a = r + 1 < n.length ? n[r + 1] : void 0, l = new $(s ? s.seq1Range.endExclusive + 1 : 0, a ? a.seq1Range.start - 1 : t.length), u = new $(s ? s.seq2Range.endExclusive + 1 : 0, a ? a.seq2Range.start - 1 : e.length);
|
|
7432
|
-
i.seq1Range.isEmpty ? n[r] =
|
|
7432
|
+
i.seq1Range.isEmpty ? n[r] = Yr(i, t, e, l, u) : i.seq2Range.isEmpty && (n[r] = Yr(i.swap(), e, t, u, l).swap());
|
|
7433
7433
|
}
|
|
7434
7434
|
return n;
|
|
7435
7435
|
}
|
|
7436
|
-
function
|
|
7436
|
+
function Yr(t, e, n, r, s) {
|
|
7437
7437
|
let a = 1;
|
|
7438
7438
|
for (; t.seq1Range.start - a >= r.start && t.seq2Range.start - a >= s.start && n.isStronglyEqual(t.seq2Range.start - a, t.seq2Range.endExclusive - a) && a < 100; )
|
|
7439
7439
|
a++;
|
|
@@ -7450,7 +7450,7 @@ function Zr(t, e, n, r, s) {
|
|
|
7450
7450
|
}
|
|
7451
7451
|
return t.delta(u);
|
|
7452
7452
|
}
|
|
7453
|
-
function
|
|
7453
|
+
function o1(t, e, n) {
|
|
7454
7454
|
const r = [];
|
|
7455
7455
|
for (const s of n) {
|
|
7456
7456
|
const i = r[r.length - 1];
|
|
@@ -7462,7 +7462,7 @@ function a1(t, e, n) {
|
|
|
7462
7462
|
}
|
|
7463
7463
|
return r;
|
|
7464
7464
|
}
|
|
7465
|
-
function
|
|
7465
|
+
function Kr(t, e, n, r, s = !1) {
|
|
7466
7466
|
const i = j.invert(n, t.length), a = [];
|
|
7467
7467
|
let l = new ce(0, 0);
|
|
7468
7468
|
function u(h, f) {
|
|
@@ -7490,9 +7490,9 @@ function Yr(t, e, n, r, s = !1) {
|
|
|
7490
7490
|
const h = i.shift();
|
|
7491
7491
|
h.seq1Range.isEmpty || (u(h.getStarts(), h), u(h.getEndExclusives().delta(-1), h));
|
|
7492
7492
|
}
|
|
7493
|
-
return
|
|
7493
|
+
return l1(n, a);
|
|
7494
7494
|
}
|
|
7495
|
-
function
|
|
7495
|
+
function l1(t, e) {
|
|
7496
7496
|
const n = [];
|
|
7497
7497
|
for (; t.length > 0 || e.length > 0; ) {
|
|
7498
7498
|
const r = t[0], s = e[0];
|
|
@@ -7501,7 +7501,7 @@ function o1(t, e) {
|
|
|
7501
7501
|
}
|
|
7502
7502
|
return n;
|
|
7503
7503
|
}
|
|
7504
|
-
function
|
|
7504
|
+
function u1(t, e, n) {
|
|
7505
7505
|
let r = n;
|
|
7506
7506
|
if (r.length === 0)
|
|
7507
7507
|
return r;
|
|
@@ -7524,7 +7524,7 @@ function l1(t, e, n) {
|
|
|
7524
7524
|
} while (s++ < 10 && i);
|
|
7525
7525
|
return r;
|
|
7526
7526
|
}
|
|
7527
|
-
function
|
|
7527
|
+
function c1(t, e, n) {
|
|
7528
7528
|
let r = n;
|
|
7529
7529
|
if (r.length === 0)
|
|
7530
7530
|
return r;
|
|
@@ -7555,7 +7555,7 @@ function u1(t, e, n) {
|
|
|
7555
7555
|
r = u;
|
|
7556
7556
|
} while (s++ < 10 && i);
|
|
7557
7557
|
const a = [];
|
|
7558
|
-
return
|
|
7558
|
+
return Da(r, (u, c, h) => {
|
|
7559
7559
|
let f = c;
|
|
7560
7560
|
function m(v) {
|
|
7561
7561
|
return v.length > 0 && v.trim().length <= 3 && c.seq1Range.length + c.seq2Range.length > 100;
|
|
@@ -7568,7 +7568,7 @@ function u1(t, e, n) {
|
|
|
7568
7568
|
a.length > 0 && N.getStarts().equals(a[a.length - 1].getEndExclusives()) ? a[a.length - 1] = a[a.length - 1].join(N) : a.push(N);
|
|
7569
7569
|
}), a;
|
|
7570
7570
|
}
|
|
7571
|
-
class
|
|
7571
|
+
class es {
|
|
7572
7572
|
constructor(e, n) {
|
|
7573
7573
|
this.trimmedHash = e, this.lines = n;
|
|
7574
7574
|
}
|
|
@@ -7579,7 +7579,7 @@ class Kr {
|
|
|
7579
7579
|
return this.trimmedHash.length;
|
|
7580
7580
|
}
|
|
7581
7581
|
getBoundaryScore(e) {
|
|
7582
|
-
const n = e === 0 ? 0 :
|
|
7582
|
+
const n = e === 0 ? 0 : ts(this.lines[e - 1]), r = e === this.lines.length ? 0 : ts(this.lines[e]);
|
|
7583
7583
|
return 1e3 - (n + r);
|
|
7584
7584
|
}
|
|
7585
7585
|
getText(e) {
|
|
@@ -7590,18 +7590,18 @@ class Kr {
|
|
|
7590
7590
|
return this.lines[e] === this.lines[n];
|
|
7591
7591
|
}
|
|
7592
7592
|
}
|
|
7593
|
-
function
|
|
7593
|
+
function ts(t) {
|
|
7594
7594
|
let e = 0;
|
|
7595
7595
|
for (; e < t.length && (t.charCodeAt(e) === 32 || t.charCodeAt(e) === 9); )
|
|
7596
7596
|
e++;
|
|
7597
7597
|
return e;
|
|
7598
7598
|
}
|
|
7599
|
-
class
|
|
7599
|
+
class h1 {
|
|
7600
7600
|
constructor() {
|
|
7601
|
-
this.dynamicProgrammingDiffing = new
|
|
7601
|
+
this.dynamicProgrammingDiffing = new Ja(), this.myersDiffingAlgorithm = new Rs();
|
|
7602
7602
|
}
|
|
7603
7603
|
computeDiff(e, n, r) {
|
|
7604
|
-
if (e.length <= 1 &&
|
|
7604
|
+
if (e.length <= 1 && Pa(e, n, (y, _) => y === _))
|
|
7605
7605
|
return new bt([], [], !1);
|
|
7606
7606
|
if (e.length === 1 && e[0].length === 0 || n.length === 1 && n[0].length === 0)
|
|
7607
7607
|
return new bt([
|
|
@@ -7609,14 +7609,14 @@ class c1 {
|
|
|
7609
7609
|
new ae(new C(1, 1, e.length, e[e.length - 1].length + 1), new C(1, 1, n.length, n[n.length - 1].length + 1))
|
|
7610
7610
|
])
|
|
7611
7611
|
], [], !1);
|
|
7612
|
-
const s = r.maxComputationTimeMs === 0 ? lt.instance : new
|
|
7612
|
+
const s = r.maxComputationTimeMs === 0 ? lt.instance : new Qa(r.maxComputationTimeMs), i = !r.ignoreTrimWhitespace, a = /* @__PURE__ */ new Map();
|
|
7613
7613
|
function l(y) {
|
|
7614
7614
|
let _ = a.get(y);
|
|
7615
7615
|
return _ === void 0 && (_ = a.size, a.set(y, _)), _;
|
|
7616
7616
|
}
|
|
7617
|
-
const u = e.map((y) => l(y.trim())), c = n.map((y) => l(y.trim())), h = new
|
|
7617
|
+
const u = e.map((y) => l(y.trim())), c = n.map((y) => l(y.trim())), h = new es(u, e), f = new es(c, n), m = h.length + f.length < 1700 ? this.dynamicProgrammingDiffing.compute(h, f, s, (y, _) => e[y] === n[_] ? n[_].length === 0 ? 0.1 : 1 + Math.log(1 + n[_].length) : 0.99) : this.myersDiffingAlgorithm.compute(h, f, s);
|
|
7618
7618
|
let b = m.diffs, g = m.hitTimeout;
|
|
7619
|
-
b =
|
|
7619
|
+
b = Jr(h, f, b), b = u1(h, f, b);
|
|
7620
7620
|
const d = [], w = (y) => {
|
|
7621
7621
|
if (i)
|
|
7622
7622
|
for (let _ = 0; _ < y; _++) {
|
|
@@ -7640,7 +7640,7 @@ class c1 {
|
|
|
7640
7640
|
d.push(D);
|
|
7641
7641
|
}
|
|
7642
7642
|
w(e.length - N);
|
|
7643
|
-
const L = new mt(e), E = new mt(n), F =
|
|
7643
|
+
const L = new mt(e), E = new mt(n), F = zr(d, L, E);
|
|
7644
7644
|
let B = [];
|
|
7645
7645
|
return r.computeMoves && (B = this.computeMoves(F, e, n, u, c, s, i, r)), xt(() => {
|
|
7646
7646
|
function y(A, D) {
|
|
@@ -7665,26 +7665,26 @@ class c1 {
|
|
|
7665
7665
|
}), new bt(F, B, g);
|
|
7666
7666
|
}
|
|
7667
7667
|
computeMoves(e, n, r, s, i, a, l, u) {
|
|
7668
|
-
return
|
|
7669
|
-
const m = this.refineDiff(n, r, new j(f.original.toOffsetRange(), f.modified.toOffsetRange()), a, l, u), b =
|
|
7670
|
-
return new
|
|
7668
|
+
return e1(e, n, r, s, i, a).map((f) => {
|
|
7669
|
+
const m = this.refineDiff(n, r, new j(f.original.toOffsetRange(), f.modified.toOffsetRange()), a, l, u), b = zr(m.mappings, new mt(n), new mt(r), !0);
|
|
7670
|
+
return new Ma(f, b);
|
|
7671
7671
|
});
|
|
7672
7672
|
}
|
|
7673
7673
|
refineDiff(e, n, r, s, i, a) {
|
|
7674
|
-
const u =
|
|
7674
|
+
const u = f1(r).toRangeMapping2(e, n), c = new Ct(e, u.originalRange, i), h = new Ct(n, u.modifiedRange, i), f = c.length + h.length < 500 ? this.dynamicProgrammingDiffing.compute(c, h, s) : this.myersDiffingAlgorithm.compute(c, h, s);
|
|
7675
7675
|
let m = f.diffs;
|
|
7676
|
-
return m =
|
|
7676
|
+
return m = Jr(c, h, m), m = Kr(c, h, m, (g, d) => g.findWordContaining(d)), a.extendToSubwords && (m = Kr(c, h, m, (g, d) => g.findSubWordContaining(d), !0)), m = o1(c, h, m), m = c1(c, h, m), {
|
|
7677
7677
|
mappings: m.map((g) => new ae(c.translateRange(g.seq1Range), h.translateRange(g.seq2Range))),
|
|
7678
7678
|
hitTimeout: f.hitTimeout
|
|
7679
7679
|
};
|
|
7680
7680
|
}
|
|
7681
7681
|
}
|
|
7682
|
-
function
|
|
7682
|
+
function f1(t) {
|
|
7683
7683
|
return new le(new I(t.seq1Range.start + 1, t.seq1Range.endExclusive + 1), new I(t.seq2Range.start + 1, t.seq2Range.endExclusive + 1));
|
|
7684
7684
|
}
|
|
7685
|
-
const
|
|
7686
|
-
getLegacy: () => new
|
|
7687
|
-
getDefault: () => new
|
|
7685
|
+
const ns = {
|
|
7686
|
+
getLegacy: () => new Oa(),
|
|
7687
|
+
getDefault: () => new h1()
|
|
7688
7688
|
};
|
|
7689
7689
|
function Ne(t, e) {
|
|
7690
7690
|
const n = Math.pow(10, e);
|
|
@@ -8349,7 +8349,7 @@ function Cs(t) {
|
|
|
8349
8349
|
}
|
|
8350
8350
|
return e;
|
|
8351
8351
|
}
|
|
8352
|
-
function
|
|
8352
|
+
function bn(t, e, n, r) {
|
|
8353
8353
|
return {
|
|
8354
8354
|
red: t / 255,
|
|
8355
8355
|
blue: n / 255,
|
|
@@ -8369,38 +8369,38 @@ function Qe(t, e) {
|
|
|
8369
8369
|
endColumn: s.column + r
|
|
8370
8370
|
};
|
|
8371
8371
|
}
|
|
8372
|
-
function
|
|
8372
|
+
function m1(t, e) {
|
|
8373
8373
|
if (!t)
|
|
8374
8374
|
return;
|
|
8375
8375
|
const n = G.Format.CSS.parseHex(e);
|
|
8376
8376
|
if (n)
|
|
8377
8377
|
return {
|
|
8378
8378
|
range: t,
|
|
8379
|
-
color:
|
|
8379
|
+
color: bn(n.rgba.r, n.rgba.g, n.rgba.b, n.rgba.a)
|
|
8380
8380
|
};
|
|
8381
8381
|
}
|
|
8382
|
-
function
|
|
8382
|
+
function rs(t, e, n) {
|
|
8383
8383
|
if (!t || e.length !== 1)
|
|
8384
8384
|
return;
|
|
8385
8385
|
const s = e[0].values(), i = Cs(s);
|
|
8386
8386
|
return {
|
|
8387
8387
|
range: t,
|
|
8388
|
-
color:
|
|
8388
|
+
color: bn(i[0], i[1], i[2], n ? i[3] : 1)
|
|
8389
8389
|
};
|
|
8390
8390
|
}
|
|
8391
|
-
function
|
|
8391
|
+
function ss(t, e, n) {
|
|
8392
8392
|
if (!t || e.length !== 1)
|
|
8393
8393
|
return;
|
|
8394
8394
|
const s = e[0].values(), i = Cs(s), a = new G(new oe(i[0], i[1] / 100, i[2] / 100, n ? i[3] : 1));
|
|
8395
8395
|
return {
|
|
8396
8396
|
range: t,
|
|
8397
|
-
color:
|
|
8397
|
+
color: bn(a.rgba.r, a.rgba.g, a.rgba.b, a.rgba.a)
|
|
8398
8398
|
};
|
|
8399
8399
|
}
|
|
8400
8400
|
function Je(t, e) {
|
|
8401
8401
|
return typeof t == "string" ? [...t.matchAll(e)] : t.findMatches(e);
|
|
8402
8402
|
}
|
|
8403
|
-
function
|
|
8403
|
+
function d1(t) {
|
|
8404
8404
|
const e = [], r = Je(t, /\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|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);
|
|
8405
8405
|
if (r.length > 0)
|
|
8406
8406
|
for (const s of r) {
|
|
@@ -8410,38 +8410,38 @@ function m1(t) {
|
|
|
8410
8410
|
let u;
|
|
8411
8411
|
if (a === "rgb") {
|
|
8412
8412
|
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;
|
|
8413
|
-
u =
|
|
8413
|
+
u = rs(Qe(t, s), Je(l, c), !1);
|
|
8414
8414
|
} else if (a === "rgba") {
|
|
8415
8415
|
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;
|
|
8416
|
-
u =
|
|
8416
|
+
u = rs(Qe(t, s), Je(l, c), !0);
|
|
8417
8417
|
} else if (a === "hsl") {
|
|
8418
8418
|
const c = /^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;
|
|
8419
|
-
u =
|
|
8419
|
+
u = ss(Qe(t, s), Je(l, c), !1);
|
|
8420
8420
|
} else if (a === "hsla") {
|
|
8421
8421
|
const c = /^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;
|
|
8422
|
-
u =
|
|
8423
|
-
} else a === "#" && (u =
|
|
8422
|
+
u = ss(Qe(t, s), Je(l, c), !0);
|
|
8423
|
+
} else a === "#" && (u = m1(Qe(t, s), a + l));
|
|
8424
8424
|
u && e.push(u);
|
|
8425
8425
|
}
|
|
8426
8426
|
return e;
|
|
8427
8427
|
}
|
|
8428
|
-
function
|
|
8429
|
-
return !t || typeof t.getValue != "function" || typeof t.positionAt != "function" ? [] :
|
|
8428
|
+
function g1(t) {
|
|
8429
|
+
return !t || typeof t.getValue != "function" || typeof t.positionAt != "function" ? [] : d1(t);
|
|
8430
8430
|
}
|
|
8431
|
-
const
|
|
8432
|
-
function
|
|
8431
|
+
const p1 = /^-+|-+$/g, is = 100, b1 = 5;
|
|
8432
|
+
function w1(t, e) {
|
|
8433
8433
|
let n = [];
|
|
8434
8434
|
if (e.findRegionSectionHeaders && e.foldingRules?.markers) {
|
|
8435
|
-
const r =
|
|
8435
|
+
const r = y1(t, e);
|
|
8436
8436
|
n = n.concat(r);
|
|
8437
8437
|
}
|
|
8438
8438
|
if (e.findMarkSectionHeaders) {
|
|
8439
|
-
const r =
|
|
8439
|
+
const r = x1(t, e);
|
|
8440
8440
|
n = n.concat(r);
|
|
8441
8441
|
}
|
|
8442
8442
|
return n;
|
|
8443
8443
|
}
|
|
8444
|
-
function
|
|
8444
|
+
function y1(t, e) {
|
|
8445
8445
|
const n = [], r = t.getLineCount();
|
|
8446
8446
|
for (let s = 1; s <= r; s++) {
|
|
8447
8447
|
const i = t.getLineContent(s), a = i.match(e.foldingRules.markers.start);
|
|
@@ -8450,7 +8450,7 @@ function w1(t, e) {
|
|
|
8450
8450
|
if (l.endColumn > l.startColumn) {
|
|
8451
8451
|
const u = {
|
|
8452
8452
|
range: l,
|
|
8453
|
-
...
|
|
8453
|
+
..._1(i.substring(a[0].length)),
|
|
8454
8454
|
shouldBeInComments: !1
|
|
8455
8455
|
};
|
|
8456
8456
|
(u.text || u.hasSeparatorLine) && n.push(u);
|
|
@@ -8459,15 +8459,15 @@ function w1(t, e) {
|
|
|
8459
8459
|
}
|
|
8460
8460
|
return n;
|
|
8461
8461
|
}
|
|
8462
|
-
function
|
|
8462
|
+
function x1(t, e) {
|
|
8463
8463
|
const n = [], r = t.getLineCount();
|
|
8464
8464
|
if (!e.markSectionHeaderRegex || e.markSectionHeaderRegex.trim() === "")
|
|
8465
8465
|
return n;
|
|
8466
|
-
const s =
|
|
8467
|
-
if (
|
|
8466
|
+
const s = _a(e.markSectionHeaderRegex), i = new RegExp(e.markSectionHeaderRegex, `gdm${s ? "s" : ""}`);
|
|
8467
|
+
if (gi(i))
|
|
8468
8468
|
return n;
|
|
8469
|
-
for (let a = 1; a <= r; a +=
|
|
8470
|
-
const l = Math.min(a +
|
|
8469
|
+
for (let a = 1; a <= r; a += is - b1) {
|
|
8470
|
+
const l = Math.min(a + is - 1, r), u = [];
|
|
8471
8471
|
for (let f = a; f <= l; f++)
|
|
8472
8472
|
u.push(t.getLineContent(f));
|
|
8473
8473
|
const c = u.join(`
|
|
@@ -8493,12 +8493,12 @@ function y1(t, e) {
|
|
|
8493
8493
|
}
|
|
8494
8494
|
return n;
|
|
8495
8495
|
}
|
|
8496
|
-
function
|
|
8496
|
+
function _1(t) {
|
|
8497
8497
|
t = t.trim();
|
|
8498
8498
|
const e = t.startsWith("-");
|
|
8499
|
-
return t = t.replace(
|
|
8499
|
+
return t = t.replace(p1, ""), { text: t, hasSeparatorLine: e };
|
|
8500
8500
|
}
|
|
8501
|
-
class
|
|
8501
|
+
class L1 {
|
|
8502
8502
|
get isRejected() {
|
|
8503
8503
|
return this.outcome?.outcome === 1;
|
|
8504
8504
|
}
|
|
@@ -8524,7 +8524,7 @@ class _1 {
|
|
|
8524
8524
|
return this.error(new cs());
|
|
8525
8525
|
}
|
|
8526
8526
|
}
|
|
8527
|
-
var
|
|
8527
|
+
var as;
|
|
8528
8528
|
(function(t) {
|
|
8529
8529
|
async function e(r) {
|
|
8530
8530
|
let s;
|
|
@@ -8546,8 +8546,8 @@ var is;
|
|
|
8546
8546
|
});
|
|
8547
8547
|
}
|
|
8548
8548
|
t.withAsyncBody = n;
|
|
8549
|
-
})(
|
|
8550
|
-
class
|
|
8549
|
+
})(as || (as = {}));
|
|
8550
|
+
class v1 {
|
|
8551
8551
|
constructor() {
|
|
8552
8552
|
this._unsatisfiedConsumers = [], this._unconsumedValues = [];
|
|
8553
8553
|
}
|
|
@@ -8579,14 +8579,14 @@ class L1 {
|
|
|
8579
8579
|
const e = this._unconsumedValues.length > 0 ? this._unconsumedValues.shift() : this._finalValue;
|
|
8580
8580
|
return e.ok ? Promise.resolve(e.value) : Promise.reject(e.error);
|
|
8581
8581
|
} else {
|
|
8582
|
-
const e = new
|
|
8582
|
+
const e = new L1();
|
|
8583
8583
|
return this._unsatisfiedConsumers.push(e), e.p;
|
|
8584
8584
|
}
|
|
8585
8585
|
}
|
|
8586
8586
|
}
|
|
8587
8587
|
class se {
|
|
8588
8588
|
constructor(e, n) {
|
|
8589
|
-
this._onReturn = n, this._producerConsumer = new
|
|
8589
|
+
this._onReturn = n, this._producerConsumer = new v1(), this._iterator = {
|
|
8590
8590
|
next: () => this._producerConsumer.consume(),
|
|
8591
8591
|
return: () => (this._onReturn?.(), Promise.resolve({ done: !0, value: void 0 })),
|
|
8592
8592
|
throw: async (r) => (this._finishError(r), { done: !0, value: void 0 })
|
|
@@ -8667,7 +8667,7 @@ class se {
|
|
|
8667
8667
|
return this._iterator;
|
|
8668
8668
|
}
|
|
8669
8669
|
}
|
|
8670
|
-
class
|
|
8670
|
+
class N1 {
|
|
8671
8671
|
constructor(e) {
|
|
8672
8672
|
this.values = e, this.prefixSum = new Uint32Array(e.length), this.prefixSumValidIndex = new Int32Array(1), this.prefixSumValidIndex[0] = -1;
|
|
8673
8673
|
}
|
|
@@ -8716,15 +8716,15 @@ class v1 {
|
|
|
8716
8716
|
n = s + 1;
|
|
8717
8717
|
else
|
|
8718
8718
|
break;
|
|
8719
|
-
return new
|
|
8719
|
+
return new S1(s, e - a);
|
|
8720
8720
|
}
|
|
8721
8721
|
}
|
|
8722
|
-
class
|
|
8722
|
+
class S1 {
|
|
8723
8723
|
constructor(e, n) {
|
|
8724
8724
|
this.index = e, this.remainder = n, this._prefixSumIndexOfResultBrand = void 0, this.index = e, this.remainder = n;
|
|
8725
8725
|
}
|
|
8726
8726
|
}
|
|
8727
|
-
class
|
|
8727
|
+
class A1 {
|
|
8728
8728
|
constructor(e, n, r, s) {
|
|
8729
8729
|
this._uri = e, this._lines = n, this._eol = r, this._versionId = s, this._lineStarts = null, this._cachedTextValue = null;
|
|
8730
8730
|
}
|
|
@@ -8749,7 +8749,7 @@ class S1 {
|
|
|
8749
8749
|
const e = this._eol.length, n = this._lines.length, r = new Uint32Array(n);
|
|
8750
8750
|
for (let s = 0; s < n; s++)
|
|
8751
8751
|
r[s] = this._lines[s].length + e;
|
|
8752
|
-
this._lineStarts = new
|
|
8752
|
+
this._lineStarts = new N1(r);
|
|
8753
8753
|
}
|
|
8754
8754
|
}
|
|
8755
8755
|
/**
|
|
@@ -8770,7 +8770,7 @@ class S1 {
|
|
|
8770
8770
|
_acceptInsertText(e, n) {
|
|
8771
8771
|
if (n.length === 0)
|
|
8772
8772
|
return;
|
|
8773
|
-
const r =
|
|
8773
|
+
const r = pi(n);
|
|
8774
8774
|
if (r.length === 1) {
|
|
8775
8775
|
this._setLineText(e.lineNumber - 1, this._lines[e.lineNumber - 1].substring(0, e.column - 1) + r[0] + this._lines[e.lineNumber - 1].substring(e.column - 1));
|
|
8776
8776
|
return;
|
|
@@ -8782,7 +8782,7 @@ class S1 {
|
|
|
8782
8782
|
this._lineStarts && this._lineStarts.insertValues(e.lineNumber, s);
|
|
8783
8783
|
}
|
|
8784
8784
|
}
|
|
8785
|
-
class
|
|
8785
|
+
class R1 {
|
|
8786
8786
|
constructor() {
|
|
8787
8787
|
this._models = /* @__PURE__ */ Object.create(null);
|
|
8788
8788
|
}
|
|
@@ -8794,7 +8794,7 @@ class A1 {
|
|
|
8794
8794
|
return Object.keys(this._models).forEach((n) => e.push(this._models[n])), e;
|
|
8795
8795
|
}
|
|
8796
8796
|
$acceptNewModel(e) {
|
|
8797
|
-
this._models[e.url] = new
|
|
8797
|
+
this._models[e.url] = new C1(Me.parse(e.url), e.lines, e.EOL, e.versionId);
|
|
8798
8798
|
}
|
|
8799
8799
|
$acceptModelChanged(e, n) {
|
|
8800
8800
|
if (!this._models[e])
|
|
@@ -8805,7 +8805,7 @@ class A1 {
|
|
|
8805
8805
|
this._models[e] && delete this._models[e];
|
|
8806
8806
|
}
|
|
8807
8807
|
}
|
|
8808
|
-
class
|
|
8808
|
+
class C1 extends A1 {
|
|
8809
8809
|
get uri() {
|
|
8810
8810
|
return this._uri;
|
|
8811
8811
|
}
|
|
@@ -8834,7 +8834,7 @@ class R1 extends S1 {
|
|
|
8834
8834
|
return this._lines[e - 1];
|
|
8835
8835
|
}
|
|
8836
8836
|
getWordAtPosition(e, n) {
|
|
8837
|
-
const r =
|
|
8837
|
+
const r = pn(e.column, Ns(n), this._lines[e.lineNumber - 1], 0);
|
|
8838
8838
|
return r ? new C(e.lineNumber, r.startColumn, e.lineNumber, r.endColumn) : null;
|
|
8839
8839
|
}
|
|
8840
8840
|
words(e) {
|
|
@@ -8916,7 +8916,7 @@ class R1 extends S1 {
|
|
|
8916
8916
|
}
|
|
8917
8917
|
class et {
|
|
8918
8918
|
constructor(e = null) {
|
|
8919
|
-
this._foreignModule = e, this._requestHandlerBrand = void 0, this._workerTextModelSyncServer = new
|
|
8919
|
+
this._foreignModule = e, this._requestHandlerBrand = void 0, this._workerTextModelSyncServer = new R1();
|
|
8920
8920
|
}
|
|
8921
8921
|
dispose() {
|
|
8922
8922
|
}
|
|
@@ -8940,11 +8940,11 @@ class et {
|
|
|
8940
8940
|
}
|
|
8941
8941
|
async $computeUnicodeHighlights(e, n, r) {
|
|
8942
8942
|
const s = this._getModel(e);
|
|
8943
|
-
return s ?
|
|
8943
|
+
return s ? Ea.computeUnicodeHighlights(s, n, r) : { ranges: [], hasMore: !1, ambiguousCharacterCount: 0, invisibleCharacterCount: 0, nonBasicAsciiCharacterCount: 0 };
|
|
8944
8944
|
}
|
|
8945
8945
|
async $findSectionHeaders(e, n) {
|
|
8946
8946
|
const r = this._getModel(e);
|
|
8947
|
-
return r ?
|
|
8947
|
+
return r ? w1(r, n) : [];
|
|
8948
8948
|
}
|
|
8949
8949
|
// ---- BEGIN diff --------------------------------------------------------------------------
|
|
8950
8950
|
async $computeDiff(e, n, r, s) {
|
|
@@ -8952,7 +8952,7 @@ class et {
|
|
|
8952
8952
|
return !i || !a ? null : et.computeDiff(i, a, r, s);
|
|
8953
8953
|
}
|
|
8954
8954
|
static computeDiff(e, n, r, s) {
|
|
8955
|
-
const i = s === "advanced" ?
|
|
8955
|
+
const i = s === "advanced" ? ns.getDefault() : ns.getLegacy(), a = e.getLinesContent(), l = n.getLinesContent(), u = i.computeDiff(a, l, r), c = u.changes.length > 0 ? !1 : this._modelsAreIdentical(e, n);
|
|
8956
8956
|
function h(f) {
|
|
8957
8957
|
return f.map((m) => [m.original.startLineNumber, m.original.endLineNumberExclusive, m.modified.startLineNumber, m.modified.endLineNumberExclusive, m.innerChanges?.map((b) => [
|
|
8958
8958
|
b.originalRange.startLineNumber,
|
|
@@ -9018,7 +9018,7 @@ class et {
|
|
|
9018
9018
|
i.push({ range: u, text: c });
|
|
9019
9019
|
continue;
|
|
9020
9020
|
}
|
|
9021
|
-
const m =
|
|
9021
|
+
const m = Di(f, c, r), b = s.offsetAt(C.lift(u).getStartPosition());
|
|
9022
9022
|
for (const g of m) {
|
|
9023
9023
|
const d = s.positionAt(b + g.originalStart), w = s.positionAt(b + g.originalStart + g.originalLength), N = {
|
|
9024
9024
|
text: c.substr(g.modifiedStart, g.modifiedLength),
|
|
@@ -9032,18 +9032,18 @@ class et {
|
|
|
9032
9032
|
// ---- END minimal edits ---------------------------------------------------------------
|
|
9033
9033
|
async $computeLinks(e) {
|
|
9034
9034
|
const n = this._getModel(e);
|
|
9035
|
-
return n ?
|
|
9035
|
+
return n ? Ui(n) : null;
|
|
9036
9036
|
}
|
|
9037
9037
|
// --- BEGIN default document colors -----------------------------------------------------------
|
|
9038
9038
|
async $computeDefaultDocumentColors(e) {
|
|
9039
9039
|
const n = this._getModel(e);
|
|
9040
|
-
return n ?
|
|
9040
|
+
return n ? g1(n) : null;
|
|
9041
9041
|
}
|
|
9042
9042
|
static {
|
|
9043
9043
|
this._suggestionsLimit = 1e4;
|
|
9044
9044
|
}
|
|
9045
9045
|
async $textualSuggest(e, n, r, s) {
|
|
9046
|
-
const i = new
|
|
9046
|
+
const i = new Mt(), a = new RegExp(r, s), l = /* @__PURE__ */ new Set();
|
|
9047
9047
|
e: for (const u of e) {
|
|
9048
9048
|
const c = this._getModel(u);
|
|
9049
9049
|
if (c) {
|
|
@@ -9093,7 +9093,7 @@ class et {
|
|
|
9093
9093
|
if (!c)
|
|
9094
9094
|
return null;
|
|
9095
9095
|
const h = a.getValueInRange(c);
|
|
9096
|
-
return
|
|
9096
|
+
return dn.INSTANCE.navigateValueSet(n, u, c, h, r);
|
|
9097
9097
|
}
|
|
9098
9098
|
// ---- BEGIN foreign module support --------------------------------------------------------------------------
|
|
9099
9099
|
// foreign method request
|
|
@@ -9107,7 +9107,7 @@ class et {
|
|
|
9107
9107
|
}
|
|
9108
9108
|
}
|
|
9109
9109
|
}
|
|
9110
|
-
typeof importScripts == "function" && (globalThis.monaco =
|
|
9110
|
+
typeof importScripts == "function" && (globalThis.monaco = pa());
|
|
9111
9111
|
class Et {
|
|
9112
9112
|
static {
|
|
9113
9113
|
this.CHANNEL_NAME = "editorWorkerHost";
|
|
@@ -9121,7 +9121,7 @@ class Et {
|
|
|
9121
9121
|
}
|
|
9122
9122
|
function Es(t) {
|
|
9123
9123
|
let e;
|
|
9124
|
-
const n =
|
|
9124
|
+
const n = Ti((r) => {
|
|
9125
9125
|
const s = Et.getChannel(r), a = {
|
|
9126
9126
|
host: new Proxy({}, {
|
|
9127
9127
|
get(l, u, c) {
|
|
@@ -9139,16 +9139,16 @@ function Es(t) {
|
|
|
9139
9139
|
return e;
|
|
9140
9140
|
}
|
|
9141
9141
|
let ks = !1;
|
|
9142
|
-
function
|
|
9142
|
+
function E1() {
|
|
9143
9143
|
return ks;
|
|
9144
9144
|
}
|
|
9145
|
-
function
|
|
9145
|
+
function k1(t) {
|
|
9146
9146
|
ks = !0, self.onmessage = (e) => {
|
|
9147
9147
|
Es((n) => t(n, e.data));
|
|
9148
9148
|
};
|
|
9149
9149
|
}
|
|
9150
9150
|
self.onmessage = () => {
|
|
9151
|
-
|
|
9151
|
+
E1() || Es(() => ({}));
|
|
9152
9152
|
};
|
|
9153
9153
|
class at {
|
|
9154
9154
|
constructor(e, n, r, s) {
|
|
@@ -9177,7 +9177,7 @@ class at {
|
|
|
9177
9177
|
this._content = this._content.substring(0, i) + r.text + this._content.substring(a, this._content.length);
|
|
9178
9178
|
const l = Math.max(s.start.line, 0), u = Math.max(s.end.line, 0);
|
|
9179
9179
|
let c = this._lineOffsets;
|
|
9180
|
-
const h =
|
|
9180
|
+
const h = os(r.text, !1, i);
|
|
9181
9181
|
if (u - l === h.length)
|
|
9182
9182
|
for (let m = 0, b = h.length; m < b; m++)
|
|
9183
9183
|
c[m + l + 1] = h[m];
|
|
@@ -9194,7 +9194,7 @@ class at {
|
|
|
9194
9194
|
this._version = n;
|
|
9195
9195
|
}
|
|
9196
9196
|
getLineOffsets() {
|
|
9197
|
-
return this._lineOffsets === void 0 && (this._lineOffsets =
|
|
9197
|
+
return this._lineOffsets === void 0 && (this._lineOffsets = os(this._content, !0)), this._lineOffsets;
|
|
9198
9198
|
}
|
|
9199
9199
|
positionAt(e) {
|
|
9200
9200
|
e = Math.max(Math.min(e, this._content.length), 0);
|
|
@@ -9238,7 +9238,7 @@ class at {
|
|
|
9238
9238
|
return n != null && typeof n.text == "string" && n.range === void 0 && n.rangeLength === void 0;
|
|
9239
9239
|
}
|
|
9240
9240
|
}
|
|
9241
|
-
var
|
|
9241
|
+
var un;
|
|
9242
9242
|
(function(t) {
|
|
9243
9243
|
function e(s, i, a, l) {
|
|
9244
9244
|
return new at(s, i, a, l);
|
|
@@ -9251,7 +9251,7 @@ var ln;
|
|
|
9251
9251
|
}
|
|
9252
9252
|
t.update = n;
|
|
9253
9253
|
function r(s, i) {
|
|
9254
|
-
const a = s.getText(), l =
|
|
9254
|
+
const a = s.getText(), l = cn(i.map(M1), (h, f) => {
|
|
9255
9255
|
const m = h.range.start.line - f.range.start.line;
|
|
9256
9256
|
return m === 0 ? h.range.start.character - f.range.start.character : m;
|
|
9257
9257
|
});
|
|
@@ -9266,12 +9266,12 @@ var ln;
|
|
|
9266
9266
|
return c.push(a.substr(u)), c.join("");
|
|
9267
9267
|
}
|
|
9268
9268
|
t.applyEdits = r;
|
|
9269
|
-
})(
|
|
9270
|
-
function
|
|
9269
|
+
})(un || (un = {}));
|
|
9270
|
+
function cn(t, e) {
|
|
9271
9271
|
if (t.length <= 1)
|
|
9272
9272
|
return t;
|
|
9273
9273
|
const n = t.length / 2 | 0, r = t.slice(0, n), s = t.slice(n);
|
|
9274
|
-
|
|
9274
|
+
cn(r, e), cn(s, e);
|
|
9275
9275
|
let i = 0, a = 0, l = 0;
|
|
9276
9276
|
for (; i < r.length && a < s.length; )
|
|
9277
9277
|
e(r[i], s[a]) <= 0 ? t[l++] = r[i++] : t[l++] = s[a++];
|
|
@@ -9281,7 +9281,7 @@ function un(t, e) {
|
|
|
9281
9281
|
t[l++] = s[a++];
|
|
9282
9282
|
return t;
|
|
9283
9283
|
}
|
|
9284
|
-
function
|
|
9284
|
+
function os(t, e, n = 0) {
|
|
9285
9285
|
const r = e ? [n] : [];
|
|
9286
9286
|
for (let s = 0; s < t.length; s++) {
|
|
9287
9287
|
const i = t.charCodeAt(s);
|
|
@@ -9296,7 +9296,7 @@ function Ps(t) {
|
|
|
9296
9296
|
const e = t.start, n = t.end;
|
|
9297
9297
|
return e.line > n.line || e.line === n.line && e.character > n.character ? { start: n, end: e } : t;
|
|
9298
9298
|
}
|
|
9299
|
-
function
|
|
9299
|
+
function M1(t) {
|
|
9300
9300
|
const e = Ps(t.range);
|
|
9301
9301
|
return e !== t.range ? { newText: t.newText, range: e } : t;
|
|
9302
9302
|
}
|
|
@@ -9308,18 +9308,18 @@ class Ue extends Error {
|
|
|
9308
9308
|
function Ts(t) {
|
|
9309
9309
|
return t instanceof Ue;
|
|
9310
9310
|
}
|
|
9311
|
-
const
|
|
9311
|
+
const P1 = (t) => {
|
|
9312
9312
|
const e = /* @__PURE__ */ new Set();
|
|
9313
9313
|
for (const n of t.keywords)
|
|
9314
9314
|
e.add(n.toUpperCase());
|
|
9315
9315
|
return e;
|
|
9316
|
-
},
|
|
9316
|
+
}, T1 = (t) => {
|
|
9317
9317
|
const e = /* @__PURE__ */ new Set();
|
|
9318
9318
|
for (const n of t.operators)
|
|
9319
9319
|
e.add(n);
|
|
9320
9320
|
return Array.from(e).sort((n, r) => r.length - n.length);
|
|
9321
|
-
},
|
|
9322
|
-
const n = [], r =
|
|
9321
|
+
}, F1 = (t, e) => {
|
|
9322
|
+
const n = [], r = P1(e), s = T1(e), i = e.specialChars.identifierQuote;
|
|
9323
9323
|
let a = 0;
|
|
9324
9324
|
const l = t.length, u = (m, b, g, d) => {
|
|
9325
9325
|
n.push({ kind: m, value: b, start: g, end: d });
|
|
@@ -9415,8 +9415,8 @@ const M1 = (t) => {
|
|
|
9415
9415
|
});
|
|
9416
9416
|
}
|
|
9417
9417
|
return n.push({ kind: "eof", value: "", start: a, end: a }), n;
|
|
9418
|
-
}, Fs = (t, e) => new F1(
|
|
9419
|
-
class
|
|
9418
|
+
}, Fs = (t, e) => new D1(F1(t, e)).parseProgram();
|
|
9419
|
+
class D1 {
|
|
9420
9420
|
constructor(e) {
|
|
9421
9421
|
this.tokens = e, this.index = 0;
|
|
9422
9422
|
}
|
|
@@ -9766,18 +9766,21 @@ class F1 {
|
|
|
9766
9766
|
return this.matchKeyword("JOIN") ? "INNER" : this.matchKeyword("LEFT") ? (this.matchKeyword("OUTER"), this.expectKeyword("JOIN"), "LEFT") : this.matchKeyword("RIGHT") ? (this.matchKeyword("OUTER"), this.expectKeyword("JOIN"), "RIGHT") : this.matchKeyword("FULL") ? (this.matchKeyword("OUTER"), this.expectKeyword("JOIN"), "FULL") : this.matchKeyword("INNER") ? (this.expectKeyword("JOIN"), "INNER") : this.matchKeyword("CROSS") ? (this.expectKeyword("JOIN"), "CROSS") : null;
|
|
9767
9767
|
}
|
|
9768
9768
|
}
|
|
9769
|
-
const
|
|
9770
|
-
function
|
|
9769
|
+
const I1 = / at (\d+)\.?$/u, V1 = /;\s*$/u, B1 = "Trailing semicolons are not supported. Remove the trailing ';'.";
|
|
9770
|
+
function q1(t, e) {
|
|
9771
|
+
const n = $1(t);
|
|
9772
|
+
if (n)
|
|
9773
|
+
return [n];
|
|
9771
9774
|
try {
|
|
9772
9775
|
return Fs(t, e), [];
|
|
9773
|
-
} catch (
|
|
9774
|
-
return [
|
|
9776
|
+
} catch (r) {
|
|
9777
|
+
return [U1(r, t)];
|
|
9775
9778
|
}
|
|
9776
9779
|
}
|
|
9777
|
-
const
|
|
9778
|
-
const n =
|
|
9780
|
+
const U1 = (t, e) => {
|
|
9781
|
+
const n = z1(t), r = O1(t, n), s = Math.min(Math.max(r.start, 0), e.length), i = Math.min(Math.max(r.end, s), e.length), a = kt(e, s), l = kt(e, Math.min(Math.max(i, s + 1), e.length));
|
|
9779
9782
|
return {
|
|
9780
|
-
severity:
|
|
9783
|
+
severity: Is.Error,
|
|
9781
9784
|
message: n,
|
|
9782
9785
|
startLineNumber: a.line,
|
|
9783
9786
|
startColumn: a.column,
|
|
@@ -9785,10 +9788,24 @@ const V1 = (t, e) => {
|
|
|
9785
9788
|
endColumn: l.column,
|
|
9786
9789
|
source: "sql-layer"
|
|
9787
9790
|
};
|
|
9788
|
-
},
|
|
9791
|
+
}, $1 = (t) => {
|
|
9792
|
+
const e = V1.exec(t);
|
|
9793
|
+
if (!e)
|
|
9794
|
+
return;
|
|
9795
|
+
const n = e.index, r = kt(t, n), s = kt(t, Math.min(n + 1, t.length));
|
|
9796
|
+
return {
|
|
9797
|
+
severity: Is.Error,
|
|
9798
|
+
message: B1,
|
|
9799
|
+
startLineNumber: r.line,
|
|
9800
|
+
startColumn: r.column,
|
|
9801
|
+
endLineNumber: s.line,
|
|
9802
|
+
endColumn: s.column,
|
|
9803
|
+
source: "sql-layer"
|
|
9804
|
+
};
|
|
9805
|
+
}, z1 = (t) => Ts(t) ? W1(t.expected, t.found, t.start) : t instanceof Error ? t.message : "Invalid SQL query.", W1 = (t, e, n) => {
|
|
9789
9806
|
if (t?.kind === "keyword" && t.value === "SELECT" && n === 0)
|
|
9790
9807
|
return "Only SELECT statements are supported. Start the query with SELECT.";
|
|
9791
|
-
const r =
|
|
9808
|
+
const r = H1(e);
|
|
9792
9809
|
if (!t)
|
|
9793
9810
|
return e?.value ? `Unexpected token ${Ds(e)}.` : "Invalid SQL query.";
|
|
9794
9811
|
switch (t.kind) {
|
|
@@ -9807,7 +9824,7 @@ const V1 = (t, e) => {
|
|
|
9807
9824
|
case "eof":
|
|
9808
9825
|
return `Unexpected input after end of query${r}`;
|
|
9809
9826
|
}
|
|
9810
|
-
},
|
|
9827
|
+
}, H1 = (t) => t ? t.kind === "eof" ? ", but reached end of input." : `, found ${Ds(t)}.` : ".", Ds = (t) => {
|
|
9811
9828
|
switch (t.kind) {
|
|
9812
9829
|
case "keyword":
|
|
9813
9830
|
return `keyword ${t.value}`;
|
|
@@ -9826,21 +9843,21 @@ const V1 = (t, e) => {
|
|
|
9826
9843
|
default:
|
|
9827
9844
|
return t.value ? `'${t.value}'` : t.kind;
|
|
9828
9845
|
}
|
|
9829
|
-
},
|
|
9846
|
+
}, O1 = (t, e) => {
|
|
9830
9847
|
if (Ts(t))
|
|
9831
9848
|
return { start: t.start, end: t.end };
|
|
9832
|
-
const n =
|
|
9849
|
+
const n = G1(e);
|
|
9833
9850
|
return { start: n, end: n + 1 };
|
|
9834
|
-
},
|
|
9835
|
-
const e = t.match(
|
|
9851
|
+
}, G1 = (t) => {
|
|
9852
|
+
const e = t.match(I1);
|
|
9836
9853
|
return e ? Number(e[1]) : 0;
|
|
9837
|
-
},
|
|
9854
|
+
}, kt = (t, e) => {
|
|
9838
9855
|
let n = 1, r = 1;
|
|
9839
9856
|
for (let s = 0; s < e && s < t.length; s += 1)
|
|
9840
9857
|
t[s] === `
|
|
9841
9858
|
` ? (n += 1, r = 1) : r += 1;
|
|
9842
9859
|
return { line: n, column: r };
|
|
9843
|
-
},
|
|
9860
|
+
}, Is = {
|
|
9844
9861
|
Error: 8
|
|
9845
9862
|
};
|
|
9846
9863
|
function We(t) {
|
|
@@ -9849,8 +9866,8 @@ function We(t) {
|
|
|
9849
9866
|
function ls(t) {
|
|
9850
9867
|
return t.split(".").at(-1) ?? t;
|
|
9851
9868
|
}
|
|
9852
|
-
|
|
9853
|
-
class
|
|
9869
|
+
k1((t) => new j1(t));
|
|
9870
|
+
class j1 {
|
|
9854
9871
|
constructor(e) {
|
|
9855
9872
|
this._ctx = e, this._languageId = e.host.getLanguageId();
|
|
9856
9873
|
}
|
|
@@ -9859,7 +9876,7 @@ class H1 {
|
|
|
9859
9876
|
}
|
|
9860
9877
|
async doValidation(e, n) {
|
|
9861
9878
|
const r = this._getTextDocument(e);
|
|
9862
|
-
return r ?
|
|
9879
|
+
return r ? q1(r.getText(), await this._getDialectSpec()) : [];
|
|
9863
9880
|
}
|
|
9864
9881
|
async doComplete(e, n, r, s) {
|
|
9865
9882
|
const i = this._getTextDocument(e);
|
|
@@ -9867,7 +9884,7 @@ class H1 {
|
|
|
9867
9884
|
return { suggestions: [] };
|
|
9868
9885
|
const a = i.getText(), l = await this._getDialectSpec(), u = us(a, r, s.sqlProfile, l), c = await this._hydrateProfileForCompletion(e, s.sqlProfile, u), h = c === s.sqlProfile ? u : us(a, r, c, l);
|
|
9869
9886
|
return {
|
|
9870
|
-
suggestions:
|
|
9887
|
+
suggestions: Q1(n, l, c, h)
|
|
9871
9888
|
};
|
|
9872
9889
|
}
|
|
9873
9890
|
/**
|
|
@@ -9876,7 +9893,7 @@ class H1 {
|
|
|
9876
9893
|
* the worker will request column information for the relevant tables from the main thread and hydrate the profile before generating suggestions.
|
|
9877
9894
|
*/
|
|
9878
9895
|
async _hydrateProfileForCompletion(e, n, r) {
|
|
9879
|
-
if (!n || !
|
|
9896
|
+
if (!n || !J1(r.clauseContext))
|
|
9880
9897
|
return n;
|
|
9881
9898
|
const s = (r.columnTargetScope?.tables ?? []).filter((l) => !l.columns.length);
|
|
9882
9899
|
if (!s.length)
|
|
@@ -9904,21 +9921,21 @@ class H1 {
|
|
|
9904
9921
|
const n = this._ctx.getMirrorModels();
|
|
9905
9922
|
for (const r of n)
|
|
9906
9923
|
if (r.uri.toString() === e)
|
|
9907
|
-
return
|
|
9924
|
+
return un.create(e, this._languageId, r.version, r.getValue());
|
|
9908
9925
|
return null;
|
|
9909
9926
|
}
|
|
9910
9927
|
}
|
|
9911
|
-
const
|
|
9912
|
-
const s =
|
|
9928
|
+
const X1 = /((?:[A-Za-z_][A-Za-z0-9_$]*\.)*[A-Za-z_][A-Za-z0-9_$]*)\.[A-Za-z0-9_$]*$/u, Q1 = (t, e, n, r) => {
|
|
9929
|
+
const s = Ut(e.keywords).map(
|
|
9913
9930
|
(c) => tt(c, nt.Keyword, t, { sortText: `3-${c}` })
|
|
9914
|
-
), i =
|
|
9931
|
+
), i = Ut(e.functions).map(
|
|
9915
9932
|
(c) => tt(c, nt.Function, t, { sortText: `4-${c}` })
|
|
9916
|
-
), a =
|
|
9933
|
+
), a = Ut(e.operators).map(
|
|
9917
9934
|
(c) => tt(c, nt.Operator, t, { sortText: `5-${c}` })
|
|
9918
9935
|
);
|
|
9919
9936
|
if (!n)
|
|
9920
9937
|
return [...s, ...i, ...a];
|
|
9921
|
-
const l =
|
|
9938
|
+
const l = Z1(n.tables, t, r.clauseContext), u = r.columnTargetScope ? Y1(r.columnTargetScope, t, r.clauseContext) : [];
|
|
9922
9939
|
switch (r.clauseContext) {
|
|
9923
9940
|
case "from":
|
|
9924
9941
|
case "join":
|
|
@@ -9937,13 +9954,13 @@ const O1 = /((?:[A-Za-z_][A-Za-z0-9_$]*\.)*[A-Za-z_][A-Za-z0-9_$]*)\.[A-Za-z0-9_
|
|
|
9937
9954
|
function us(t, e, n, r) {
|
|
9938
9955
|
if (!n)
|
|
9939
9956
|
return { clauseContext: "unknown", columnTargetScope: null };
|
|
9940
|
-
const s =
|
|
9957
|
+
const s = to(t, e), i = no(t, s), a = ro(i.beforeCursor), l = so(i.statementText, n, r);
|
|
9941
9958
|
return {
|
|
9942
9959
|
clauseContext: a,
|
|
9943
|
-
columnTargetScope: l ?
|
|
9960
|
+
columnTargetScope: l ? K1(i.beforeCursor, l) : null
|
|
9944
9961
|
};
|
|
9945
9962
|
}
|
|
9946
|
-
function
|
|
9963
|
+
function J1(t) {
|
|
9947
9964
|
switch (t) {
|
|
9948
9965
|
case "select":
|
|
9949
9966
|
case "where":
|
|
@@ -9963,7 +9980,7 @@ const tt = (t, e, n, r = {}) => ({
|
|
|
9963
9980
|
range: n,
|
|
9964
9981
|
...r
|
|
9965
9982
|
});
|
|
9966
|
-
function
|
|
9983
|
+
function Z1(t, e, n) {
|
|
9967
9984
|
const r = n === "from" || n === "join" ? "1" : "9";
|
|
9968
9985
|
return t.map(
|
|
9969
9986
|
(s) => tt(s.completionLabel, nt.Table, e, {
|
|
@@ -9974,7 +9991,7 @@ function X1(t, e, n) {
|
|
|
9974
9991
|
})
|
|
9975
9992
|
);
|
|
9976
9993
|
}
|
|
9977
|
-
function
|
|
9994
|
+
function Y1(t, e, n) {
|
|
9978
9995
|
const r = n === "select" || n === "where" || n === "on" ? "1" : "2", s = [];
|
|
9979
9996
|
return t.tables.forEach((i) => {
|
|
9980
9997
|
i.columns.forEach((a) => {
|
|
@@ -9989,31 +10006,31 @@ function Q1(t, e, n) {
|
|
|
9989
10006
|
});
|
|
9990
10007
|
}), s;
|
|
9991
10008
|
}
|
|
9992
|
-
function
|
|
9993
|
-
const n =
|
|
10009
|
+
function K1(t, e) {
|
|
10010
|
+
const n = eo(t);
|
|
9994
10011
|
if (!n)
|
|
9995
10012
|
return { tables: e.tables };
|
|
9996
10013
|
const r = We(n), s = e.aliases.get(r);
|
|
9997
10014
|
if (s)
|
|
9998
10015
|
return { qualifier: n, tables: [s] };
|
|
9999
|
-
const i =
|
|
10016
|
+
const i = wn(n, e.tables);
|
|
10000
10017
|
return i ? { qualifier: n, tables: [i] } : { qualifier: n, tables: [] };
|
|
10001
10018
|
}
|
|
10002
|
-
function
|
|
10003
|
-
return t.match(
|
|
10019
|
+
function eo(t) {
|
|
10020
|
+
return t.match(X1)?.[1];
|
|
10004
10021
|
}
|
|
10005
|
-
function
|
|
10022
|
+
function to(t, e) {
|
|
10006
10023
|
const n = t.split(/\r?\n/u);
|
|
10007
10024
|
let r = 0;
|
|
10008
10025
|
for (let s = 0; s < e.lineNumber - 1; s += 1)
|
|
10009
10026
|
r += (n[s] ?? "").length + 1;
|
|
10010
10027
|
return r + e.column - 1;
|
|
10011
10028
|
}
|
|
10012
|
-
function
|
|
10029
|
+
function no(t, e) {
|
|
10013
10030
|
const n = t.lastIndexOf(";", Math.max(e - 1, 0)), r = t.indexOf(";", e), s = n === -1 ? 0 : n + 1, i = r === -1 ? t.length : r, a = t.slice(s, i);
|
|
10014
10031
|
return { beforeCursor: t.slice(s, e), statementText: a };
|
|
10015
10032
|
}
|
|
10016
|
-
function
|
|
10033
|
+
function ro(t) {
|
|
10017
10034
|
const e = t.toUpperCase(), r = [
|
|
10018
10035
|
{ clause: "orderBy", index: e.lastIndexOf("ORDER BY") },
|
|
10019
10036
|
{ clause: "groupBy", index: e.lastIndexOf("GROUP BY") },
|
|
@@ -10026,32 +10043,32 @@ function eo(t) {
|
|
|
10026
10043
|
].filter((s) => s.index !== -1);
|
|
10027
10044
|
return r.length ? (r.sort((s, i) => i.index - s.index), r[0].clause) : "unknown";
|
|
10028
10045
|
}
|
|
10029
|
-
function
|
|
10046
|
+
function so(t, e, n) {
|
|
10030
10047
|
try {
|
|
10031
10048
|
const s = Fs(t, n).body.at(-1);
|
|
10032
|
-
return s?.type !== "select" ? null :
|
|
10049
|
+
return s?.type !== "select" ? null : io(s, e);
|
|
10033
10050
|
} catch {
|
|
10034
|
-
return
|
|
10051
|
+
return ao(t, e);
|
|
10035
10052
|
}
|
|
10036
10053
|
}
|
|
10037
|
-
function
|
|
10038
|
-
const n =
|
|
10054
|
+
function io(t, e) {
|
|
10055
|
+
const n = lo(t.from), r = [], s = /* @__PURE__ */ new Map();
|
|
10039
10056
|
return n.forEach((i) => {
|
|
10040
|
-
const a =
|
|
10057
|
+
const a = wn(i.name, e.tables);
|
|
10041
10058
|
a && (r.push(a), i.alias && s.set(We(i.alias), a));
|
|
10042
|
-
}), { tables:
|
|
10059
|
+
}), { tables: Vs(r), aliases: s };
|
|
10043
10060
|
}
|
|
10044
|
-
function
|
|
10045
|
-
const n =
|
|
10061
|
+
function ao(t, e) {
|
|
10062
|
+
const n = oo(t);
|
|
10046
10063
|
if (!n.length)
|
|
10047
10064
|
return null;
|
|
10048
10065
|
const r = [], s = /* @__PURE__ */ new Map();
|
|
10049
10066
|
return n.forEach((i) => {
|
|
10050
|
-
const a =
|
|
10067
|
+
const a = wn(i.name, e.tables);
|
|
10051
10068
|
a && (r.push(a), i.alias && s.set(We(i.alias), a));
|
|
10052
|
-
}), r.length ? { tables:
|
|
10069
|
+
}), r.length ? { tables: Vs(r), aliases: s } : null;
|
|
10053
10070
|
}
|
|
10054
|
-
function
|
|
10071
|
+
function oo(t) {
|
|
10055
10072
|
const e = [], n = /\b(?:FROM|JOIN)\s+([A-Za-z_][A-Za-z0-9_$.]*)(?:\s+(?:AS\s+)?([A-Za-z_][A-Za-z0-9_$]*))?/giu;
|
|
10056
10073
|
for (const r of t.matchAll(n))
|
|
10057
10074
|
e.push({
|
|
@@ -10060,7 +10077,7 @@ function so(t) {
|
|
|
10060
10077
|
});
|
|
10061
10078
|
return e;
|
|
10062
10079
|
}
|
|
10063
|
-
function
|
|
10080
|
+
function lo(t) {
|
|
10064
10081
|
if (!t?.length)
|
|
10065
10082
|
return [];
|
|
10066
10083
|
const e = [];
|
|
@@ -10068,17 +10085,17 @@ function io(t) {
|
|
|
10068
10085
|
e.push(n), n.joins?.forEach((r) => e.push(r.table));
|
|
10069
10086
|
return e;
|
|
10070
10087
|
}
|
|
10071
|
-
function
|
|
10088
|
+
function wn(t, e) {
|
|
10072
10089
|
const n = We(t), r = We(ls(t));
|
|
10073
10090
|
return e.find(
|
|
10074
10091
|
(s) => s.normalizedName === n || We(ls(s.name)) === r
|
|
10075
10092
|
);
|
|
10076
10093
|
}
|
|
10077
|
-
function
|
|
10094
|
+
function Vs(t) {
|
|
10078
10095
|
const e = /* @__PURE__ */ new Set();
|
|
10079
10096
|
return t.filter((n) => e.has(n.id) ? !1 : (e.add(n.id), !0));
|
|
10080
10097
|
}
|
|
10081
|
-
const
|
|
10098
|
+
const Ut = (t) => Array.from(new Set(t)), nt = {
|
|
10082
10099
|
Field: 5,
|
|
10083
10100
|
Function: 3,
|
|
10084
10101
|
Keyword: 14,
|