@guihz/trading-vue-editor-tes 0.0.72 → 0.0.73
Sign up to get free protection for your applications and to get access to all the features.
@@ -34,16 +34,16 @@ function ab() {
|
|
34
34
|
if (hc)
|
35
35
|
return Mr;
|
36
36
|
hc = 1;
|
37
|
-
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty,
|
37
|
+
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
38
38
|
function u(f, x, g) {
|
39
39
|
var h, T = {}, P = null, M = null;
|
40
40
|
g !== void 0 && (P = "" + g), x.key !== void 0 && (P = "" + x.key), x.ref !== void 0 && (M = x.ref);
|
41
41
|
for (h in x)
|
42
|
-
o.call(x, h) && !
|
42
|
+
o.call(x, h) && !c.hasOwnProperty(h) && (T[h] = x[h]);
|
43
43
|
if (f && f.defaultProps)
|
44
44
|
for (h in x = f.defaultProps, x)
|
45
45
|
T[h] === void 0 && (T[h] = x[h]);
|
46
|
-
return { $$typeof: n, type: f, key: P, ref: M, props: T, _owner:
|
46
|
+
return { $$typeof: n, type: f, key: P, ref: M, props: T, _owner: l.current };
|
47
47
|
}
|
48
48
|
return Mr.Fragment = r, Mr.jsx = u, Mr.jsxs = u, Mr;
|
49
49
|
}
|
@@ -60,7 +60,7 @@ var Or = {};
|
|
60
60
|
var wc;
|
61
61
|
function nb() {
|
62
62
|
return wc || (wc = 1, process.env.NODE_ENV !== "production" && function() {
|
63
|
-
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"),
|
63
|
+
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), F = Symbol.iterator, L = "@@iterator";
|
64
64
|
function W(_) {
|
65
65
|
if (_ === null || typeof _ != "object")
|
66
66
|
return null;
|
@@ -88,7 +88,7 @@ function nb() {
|
|
88
88
|
var A = !1, I = !1, R = !1, U = !1, ie = !1, ae;
|
89
89
|
ae = Symbol.for("react.module.reference");
|
90
90
|
function oe(_) {
|
91
|
-
return !!(typeof _ == "string" || typeof _ == "function" || _ === o || _ ===
|
91
|
+
return !!(typeof _ == "string" || typeof _ == "function" || _ === o || _ === c || ie || _ === l || _ === g || _ === h || U || _ === M || A || I || R || typeof _ == "object" && _ !== null && (_.$$typeof === P || _.$$typeof === T || _.$$typeof === u || _.$$typeof === f || _.$$typeof === x || // This needs to include all possible module reference object
|
92
92
|
// types supported by any Flight configuration anywhere since
|
93
93
|
// we don't know which Flight build this will end up being used
|
94
94
|
// with.
|
@@ -116,9 +116,9 @@ function nb() {
|
|
116
116
|
return "Fragment";
|
117
117
|
case r:
|
118
118
|
return "Portal";
|
119
|
-
case l:
|
120
|
-
return "Profiler";
|
121
119
|
case c:
|
120
|
+
return "Profiler";
|
121
|
+
case l:
|
122
122
|
return "StrictMode";
|
123
123
|
case g:
|
124
124
|
return "Suspense";
|
@@ -658,8 +658,8 @@ function vc(a, n) {
|
|
658
658
|
var r = Object.keys(a);
|
659
659
|
if (Object.getOwnPropertySymbols) {
|
660
660
|
var o = Object.getOwnPropertySymbols(a);
|
661
|
-
n && (o = o.filter(function(
|
662
|
-
return Object.getOwnPropertyDescriptor(a,
|
661
|
+
n && (o = o.filter(function(l) {
|
662
|
+
return Object.getOwnPropertyDescriptor(a, l).enumerable;
|
663
663
|
})), r.push.apply(r, o);
|
664
664
|
}
|
665
665
|
return r;
|
@@ -678,19 +678,19 @@ function Tc(a) {
|
|
678
678
|
function ob(a, n) {
|
679
679
|
if (a == null)
|
680
680
|
return {};
|
681
|
-
var r = {}, o = Object.keys(a),
|
682
|
-
for (
|
683
|
-
|
681
|
+
var r = {}, o = Object.keys(a), l, c;
|
682
|
+
for (c = 0; c < o.length; c++)
|
683
|
+
l = o[c], !(n.indexOf(l) >= 0) && (r[l] = a[l]);
|
684
684
|
return r;
|
685
685
|
}
|
686
686
|
function lb(a, n) {
|
687
687
|
if (a == null)
|
688
688
|
return {};
|
689
|
-
var r = ob(a, n), o,
|
689
|
+
var r = ob(a, n), o, l;
|
690
690
|
if (Object.getOwnPropertySymbols) {
|
691
|
-
var
|
692
|
-
for (
|
693
|
-
o = l
|
691
|
+
var c = Object.getOwnPropertySymbols(a);
|
692
|
+
for (l = 0; l < c.length; l++)
|
693
|
+
o = c[l], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(a, o) && (r[o] = a[o]);
|
694
694
|
}
|
695
695
|
return r;
|
696
696
|
}
|
@@ -703,18 +703,18 @@ function pb(a) {
|
|
703
703
|
}
|
704
704
|
function db(a, n) {
|
705
705
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(a)))) {
|
706
|
-
var r = [], o = !0,
|
706
|
+
var r = [], o = !0, l = !1, c = void 0;
|
707
707
|
try {
|
708
708
|
for (var u = a[Symbol.iterator](), f; !(o = (f = u.next()).done) && (r.push(f.value), !(n && r.length === n)); o = !0)
|
709
709
|
;
|
710
710
|
} catch (x) {
|
711
|
-
|
711
|
+
l = !0, c = x;
|
712
712
|
} finally {
|
713
713
|
try {
|
714
714
|
!o && u.return != null && u.return();
|
715
715
|
} finally {
|
716
|
-
if (
|
717
|
-
throw
|
716
|
+
if (l)
|
717
|
+
throw c;
|
718
718
|
}
|
719
719
|
}
|
720
720
|
return r;
|
@@ -753,8 +753,8 @@ function Ic(a, n) {
|
|
753
753
|
var r = Object.keys(a);
|
754
754
|
if (Object.getOwnPropertySymbols) {
|
755
755
|
var o = Object.getOwnPropertySymbols(a);
|
756
|
-
n && (o = o.filter(function(
|
757
|
-
return Object.getOwnPropertyDescriptor(a,
|
756
|
+
n && (o = o.filter(function(l) {
|
757
|
+
return Object.getOwnPropertyDescriptor(a, l).enumerable;
|
758
758
|
})), r.push.apply(r, o);
|
759
759
|
}
|
760
760
|
return r;
|
@@ -774,19 +774,19 @@ function _b() {
|
|
774
774
|
for (var a = arguments.length, n = new Array(a), r = 0; r < a; r++)
|
775
775
|
n[r] = arguments[r];
|
776
776
|
return function(o) {
|
777
|
-
return n.reduceRight(function(
|
778
|
-
return l
|
777
|
+
return n.reduceRight(function(l, c) {
|
778
|
+
return c(l);
|
779
779
|
}, o);
|
780
780
|
};
|
781
781
|
}
|
782
782
|
function Rr(a) {
|
783
783
|
return function n() {
|
784
|
-
for (var r = this, o = arguments.length,
|
785
|
-
c
|
786
|
-
return
|
784
|
+
for (var r = this, o = arguments.length, l = new Array(o), c = 0; c < o; c++)
|
785
|
+
l[c] = arguments[c];
|
786
|
+
return l.length >= a.length ? a.apply(this, l) : function() {
|
787
787
|
for (var u = arguments.length, f = new Array(u), x = 0; x < u; x++)
|
788
788
|
f[x] = arguments[x];
|
789
|
-
return n.apply(r, [].concat(
|
789
|
+
return n.apply(r, [].concat(l, f));
|
790
790
|
};
|
791
791
|
};
|
792
792
|
}
|
@@ -842,7 +842,7 @@ function Db(a) {
|
|
842
842
|
Ha.initial(a), Ha.handler(n);
|
843
843
|
var r = {
|
844
844
|
current: a
|
845
|
-
}, o = Rr(Ab)(r, n),
|
845
|
+
}, o = Rr(Ab)(r, n), l = Rr(kb)(r), c = Rr(Ha.changes)(a), u = Rr(Ib)(r);
|
846
846
|
function f() {
|
847
847
|
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(h) {
|
848
848
|
return h;
|
@@ -850,7 +850,7 @@ function Db(a) {
|
|
850
850
|
return Ha.selector(g), g(r.current);
|
851
851
|
}
|
852
852
|
function x(g) {
|
853
|
-
_b(o,
|
853
|
+
_b(o, l, c, u)(g);
|
854
854
|
}
|
855
855
|
return [f, x];
|
856
856
|
}
|
@@ -862,8 +862,8 @@ function kb(a, n) {
|
|
862
862
|
}
|
863
863
|
function Ab(a, n, r) {
|
864
864
|
return jr(n) ? n(a.current) : Object.keys(r).forEach(function(o) {
|
865
|
-
var
|
866
|
-
return (
|
865
|
+
var l;
|
866
|
+
return (l = n[o]) === null || l === void 0 ? void 0 : l.call(n, a.current[o]);
|
867
867
|
}), r;
|
868
868
|
}
|
869
869
|
var qb = {
|
@@ -875,12 +875,12 @@ var qb = {
|
|
875
875
|
};
|
876
876
|
function zb(a) {
|
877
877
|
return function n() {
|
878
|
-
for (var r = this, o = arguments.length,
|
879
|
-
c
|
880
|
-
return
|
878
|
+
for (var r = this, o = arguments.length, l = new Array(o), c = 0; c < o; c++)
|
879
|
+
l[c] = arguments[c];
|
880
|
+
return l.length >= a.length ? a.apply(this, l) : function() {
|
881
881
|
for (var u = arguments.length, f = new Array(u), x = 0; x < u; x++)
|
882
882
|
f[x] = arguments[x];
|
883
|
-
return n.apply(r, [].concat(
|
883
|
+
return n.apply(r, [].concat(l, f));
|
884
884
|
};
|
885
885
|
};
|
886
886
|
}
|
@@ -919,10 +919,10 @@ var hp = {
|
|
919
919
|
}, Mb = function() {
|
920
920
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
921
921
|
r[o] = arguments[o];
|
922
|
-
return function(
|
923
|
-
return r.reduceRight(function(
|
924
|
-
return u(
|
925
|
-
},
|
922
|
+
return function(l) {
|
923
|
+
return r.reduceRight(function(c, u) {
|
924
|
+
return u(c);
|
925
|
+
}, l);
|
926
926
|
};
|
927
927
|
};
|
928
928
|
function wp(a, n) {
|
@@ -935,10 +935,10 @@ var Ob = {
|
|
935
935
|
msg: "operation is manually canceled"
|
936
936
|
};
|
937
937
|
function Di(a) {
|
938
|
-
var n = !1, r = new Promise(function(o,
|
939
|
-
a.then(function(
|
940
|
-
return n ?
|
941
|
-
}), a.catch(
|
938
|
+
var n = !1, r = new Promise(function(o, l) {
|
939
|
+
a.then(function(c) {
|
940
|
+
return n ? l(Ob) : o(c);
|
941
|
+
}), a.catch(l);
|
942
942
|
});
|
943
943
|
return r.cancel = function() {
|
944
944
|
return n = !0;
|
@@ -953,20 +953,20 @@ var Fb = qb.create({
|
|
953
953
|
}), vp = cb(Fb, 2), Gr = vp[0], an = vp[1];
|
954
954
|
function Rb(a) {
|
955
955
|
var n = Pb.config(a), r = n.monaco, o = lb(n, ["monaco"]);
|
956
|
-
an(function(
|
956
|
+
an(function(l) {
|
957
957
|
return {
|
958
|
-
config: wp(
|
958
|
+
config: wp(l.config, o),
|
959
959
|
monaco: r
|
960
960
|
};
|
961
961
|
});
|
962
962
|
}
|
963
963
|
function Bb() {
|
964
964
|
var a = Gr(function(n) {
|
965
|
-
var r = n.monaco, o = n.isInitialized,
|
965
|
+
var r = n.monaco, o = n.isInitialized, l = n.resolve;
|
966
966
|
return {
|
967
967
|
monaco: r,
|
968
968
|
isInitialized: o,
|
969
|
-
resolve:
|
969
|
+
resolve: l
|
970
970
|
};
|
971
971
|
});
|
972
972
|
if (!a.isInitialized) {
|
@@ -989,10 +989,10 @@ function Ub(a) {
|
|
989
989
|
}
|
990
990
|
function $b(a) {
|
991
991
|
var n = Gr(function(o) {
|
992
|
-
var
|
992
|
+
var l = o.config, c = o.reject;
|
993
993
|
return {
|
994
|
-
config:
|
995
|
-
reject:
|
994
|
+
config: l,
|
995
|
+
reject: c
|
996
996
|
};
|
997
997
|
}), r = Ub("".concat(n.config.paths.vs, "/loader.js"));
|
998
998
|
return r.onload = function() {
|
@@ -1001,11 +1001,11 @@ function $b(a) {
|
|
1001
1001
|
}
|
1002
1002
|
function Hb() {
|
1003
1003
|
var a = Gr(function(r) {
|
1004
|
-
var o = r.config,
|
1004
|
+
var o = r.config, l = r.resolve, c = r.reject;
|
1005
1005
|
return {
|
1006
1006
|
config: o,
|
1007
|
-
resolve:
|
1008
|
-
reject:
|
1007
|
+
resolve: l,
|
1008
|
+
reject: c
|
1009
1009
|
};
|
1010
1010
|
}), n = window.require;
|
1011
1011
|
n.config(a.config), n(["vs/editor/editor.main"], function(r) {
|
@@ -1039,8 +1039,8 @@ function Yb({ children: a }) {
|
|
1039
1039
|
return is.createElement("div", { style: Xb.container }, a);
|
1040
1040
|
}
|
1041
1041
|
var Vb = Yb, Qb = Vb;
|
1042
|
-
function Zb({ width: a, height: n, isEditorReady: r, loading: o, _ref:
|
1043
|
-
return is.createElement("section", { style: { ...ki.wrapper, width: a, height: n }, ...u }, !r && is.createElement(Qb, null, o), is.createElement("div", { ref:
|
1042
|
+
function Zb({ width: a, height: n, isEditorReady: r, loading: o, _ref: l, className: c, wrapperProps: u }) {
|
1043
|
+
return is.createElement("section", { style: { ...ki.wrapper, width: a, height: n }, ...u }, !r && is.createElement(Qb, null, o), is.createElement("div", { ref: l, style: { ...ki.fullWidth, ...!r && ki.hide }, className: c }));
|
1044
1044
|
}
|
1045
1045
|
var Jb = Zb, Dp = Fi(Jb);
|
1046
1046
|
function ex(a) {
|
@@ -1068,19 +1068,19 @@ function rx(a, n, r, o) {
|
|
1068
1068
|
function kp(a, n) {
|
1069
1069
|
return a.Uri.parse(n);
|
1070
1070
|
}
|
1071
|
-
function ax({ original: a, modified: n, language: r, originalLanguage: o, modifiedLanguage:
|
1071
|
+
function ax({ original: a, modified: n, language: r, originalLanguage: o, modifiedLanguage: l, originalModelPath: c, modifiedModelPath: u, keepCurrentOriginalModel: f = !1, keepCurrentModifiedModel: x = !1, theme: g = "light", loading: h = "Loading...", options: T = {}, height: P = "100%", width: M = "100%", className: F, wrapperProps: L = {}, beforeMount: W = Ur, onMount: Q = Ur }) {
|
1072
1072
|
let [j, O] = it(!1), [A, I] = it(!0), R = Pe(null), U = Pe(null), ie = Pe(null), ae = Pe(Q), oe = Pe(W), bt = Pe(!1);
|
1073
1073
|
Ip(() => {
|
1074
1074
|
let G = Ri.init();
|
1075
1075
|
return G.then((fe) => (U.current = fe) && I(!1)).catch((fe) => (fe == null ? void 0 : fe.type) !== "cancelation" && console.error("Monaco initialization: error:", fe)), () => R.current ? Oe() : G.cancel();
|
1076
1076
|
}), _t(() => {
|
1077
1077
|
if (R.current && U.current) {
|
1078
|
-
let G = R.current.getOriginalEditor(), fe = nr(U.current, a || "", o || r || "text",
|
1078
|
+
let G = R.current.getOriginalEditor(), fe = nr(U.current, a || "", o || r || "text", c || "");
|
1079
1079
|
fe !== G.getModel() && G.setModel(fe);
|
1080
1080
|
}
|
1081
|
-
}, [
|
1081
|
+
}, [c], j), _t(() => {
|
1082
1082
|
if (R.current && U.current) {
|
1083
|
-
let G = R.current.getModifiedEditor(), fe = nr(U.current, n || "",
|
1083
|
+
let G = R.current.getModifiedEditor(), fe = nr(U.current, n || "", l || r || "text", u || "");
|
1084
1084
|
fe !== G.getModel() && G.setModel(fe);
|
1085
1085
|
}
|
1086
1086
|
}, [u], j), _t(() => {
|
@@ -1091,8 +1091,8 @@ function ax({ original: a, modified: n, language: r, originalLanguage: o, modifi
|
|
1091
1091
|
(fe = (G = R.current) == null ? void 0 : G.getModel()) == null || fe.original.setValue(a || "");
|
1092
1092
|
}, [a], j), _t(() => {
|
1093
1093
|
let { original: G, modified: fe } = R.current.getModel();
|
1094
|
-
U.current.editor.setModelLanguage(G, o || r || "text"), U.current.editor.setModelLanguage(fe,
|
1095
|
-
}, [r, o,
|
1094
|
+
U.current.editor.setModelLanguage(G, o || r || "text"), U.current.editor.setModelLanguage(fe, l || r || "text");
|
1095
|
+
}, [r, o, l], j), _t(() => {
|
1096
1096
|
var G;
|
1097
1097
|
(G = U.current) == null || G.editor.setTheme(g);
|
1098
1098
|
}, [g], j), _t(() => {
|
@@ -1104,9 +1104,9 @@ function ax({ original: a, modified: n, language: r, originalLanguage: o, modifi
|
|
1104
1104
|
if (!U.current)
|
1105
1105
|
return;
|
1106
1106
|
oe.current(U.current);
|
1107
|
-
let G = nr(U.current, a || "", o || r || "text",
|
1107
|
+
let G = nr(U.current, a || "", o || r || "text", c || ""), fe = nr(U.current, n || "", l || r || "text", u || "");
|
1108
1108
|
(qe = R.current) == null || qe.setModel({ original: G, modified: fe });
|
1109
|
-
}, [r, n,
|
1109
|
+
}, [r, n, l, a, o, c, u]), Me = $r(() => {
|
1110
1110
|
var G;
|
1111
1111
|
!bt.current && ie.current && (R.current = U.current.editor.createDiffEditor(ie.current, { automaticLayout: !0, ...T }), Ct(), (G = U.current) == null || G.editor.setTheme(g), O(!0), bt.current = !0);
|
1112
1112
|
}, [T, g, Ct]);
|
@@ -1130,16 +1130,16 @@ function ox(a) {
|
|
1130
1130
|
}, [a]), n.current;
|
1131
1131
|
}
|
1132
1132
|
var lx = ox, ja = /* @__PURE__ */ new Map();
|
1133
|
-
function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, language:
|
1134
|
-
let [I, R] = it(!1), [U, ie] = it(!0), ae = Pe(null), oe = Pe(null), bt = Pe(null), Ct = Pe(j), Me = Pe(Q), Oe = Pe(), G = Pe(o), fe = lx(
|
1133
|
+
function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, language: l, path: c, theme: u = "light", line: f, loading: x = "Loading...", options: g = {}, overrideServices: h = {}, saveViewState: T = !0, keepCurrentModel: P = !1, width: M = "100%", height: F = "100%", className: L, wrapperProps: W = {}, beforeMount: Q = Ur, onMount: j = Ur, onChange: O, onValidate: A = Ur }) {
|
1134
|
+
let [I, R] = it(!1), [U, ie] = it(!0), ae = Pe(null), oe = Pe(null), bt = Pe(null), Ct = Pe(j), Me = Pe(Q), Oe = Pe(), G = Pe(o), fe = lx(c), qe = Pe(!1), Le = Pe(!1);
|
1135
1135
|
Ip(() => {
|
1136
1136
|
let J = Ri.init();
|
1137
1137
|
return J.then((ce) => (ae.current = ce) && ie(!1)).catch((ce) => (ce == null ? void 0 : ce.type) !== "cancelation" && console.error("Monaco initialization: error:", ce)), () => oe.current ? zt() : J.cancel();
|
1138
1138
|
}), _t(() => {
|
1139
1139
|
var ce, Be, Gt, Ve;
|
1140
|
-
let J = nr(ae.current, a || o || "", n ||
|
1141
|
-
J !== ((ce = oe.current) == null ? void 0 : ce.getModel()) && (T && ja.set(fe, (Be = oe.current) == null ? void 0 : Be.saveViewState()), (Gt = oe.current) == null || Gt.setModel(J), T && ((Ve = oe.current) == null || Ve.restoreViewState(ja.get(
|
1142
|
-
}, [
|
1140
|
+
let J = nr(ae.current, a || o || "", n || l || "", c || r || "");
|
1141
|
+
J !== ((ce = oe.current) == null ? void 0 : ce.getModel()) && (T && ja.set(fe, (Be = oe.current) == null ? void 0 : Be.saveViewState()), (Gt = oe.current) == null || Gt.setModel(J), T && ((Ve = oe.current) == null || Ve.restoreViewState(ja.get(c))));
|
1142
|
+
}, [c], I), _t(() => {
|
1143
1143
|
var J;
|
1144
1144
|
(J = oe.current) == null || J.updateOptions(g);
|
1145
1145
|
}, [g], I), _t(() => {
|
@@ -1147,8 +1147,8 @@ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
|
|
1147
1147
|
}, [o], I), _t(() => {
|
1148
1148
|
var ce, Be;
|
1149
1149
|
let J = (ce = oe.current) == null ? void 0 : ce.getModel();
|
1150
|
-
J &&
|
1151
|
-
}, [
|
1150
|
+
J && l && ((Be = ae.current) == null || Be.editor.setModelLanguage(J, l));
|
1151
|
+
}, [l], I), _t(() => {
|
1152
1152
|
var J;
|
1153
1153
|
f !== void 0 && ((J = oe.current) == null || J.revealLine(f));
|
1154
1154
|
}, [f], I), _t(() => {
|
@@ -1159,10 +1159,10 @@ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
|
|
1159
1159
|
var J;
|
1160
1160
|
if (!(!bt.current || !ae.current) && !qe.current) {
|
1161
1161
|
Me.current(ae.current);
|
1162
|
-
let ce =
|
1162
|
+
let ce = c || r, Be = nr(ae.current, o || a || "", n || l || "", ce || "");
|
1163
1163
|
oe.current = (J = ae.current) == null ? void 0 : J.editor.create(bt.current, { model: Be, automaticLayout: !0, ...g }, h), T && oe.current.restoreViewState(ja.get(ce)), ae.current.editor.setTheme(u), f !== void 0 && oe.current.revealLine(f), R(!0), qe.current = !0;
|
1164
1164
|
}
|
1165
|
-
}, [a, n, r, o,
|
1165
|
+
}, [a, n, r, o, l, c, g, h, T, u, f]);
|
1166
1166
|
Ye(() => {
|
1167
1167
|
I && Ct.current(oe.current, ae.current);
|
1168
1168
|
}, [I]), Ye(() => {
|
@@ -1191,7 +1191,7 @@ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
|
|
1191
1191
|
}, [I, A]);
|
1192
1192
|
function zt() {
|
1193
1193
|
var J, ce;
|
1194
|
-
(J = Oe.current) == null || J.dispose(), P ? T && ja.set(
|
1194
|
+
(J = Oe.current) == null || J.dispose(), P ? T && ja.set(c, oe.current.saveViewState()) : (ce = oe.current.getModel()) == null || ce.dispose(), oe.current.dispose();
|
1195
1195
|
}
|
1196
1196
|
return is.createElement(Dp, { width: M, height: F, isEditorReady: I, loading: x, _ref: bt, className: L, wrapperProps: W });
|
1197
1197
|
}
|
@@ -60263,17 +60263,17 @@ else
|
|
60263
60263
|
function yx() {
|
60264
60264
|
const a = {}, n = {};
|
60265
60265
|
return Object.keys(qc).reduce((r, o) => {
|
60266
|
-
const
|
60266
|
+
const l = qc[o], c = we[o], { mapObj: u, keys: f } = _x(l, c);
|
60267
60267
|
return r.keyMapList[o] = u, r.keyList[o] = f, r;
|
60268
60268
|
}, { keyList: a, keyMapList: n }), { keyList: a, keyMapList: n };
|
60269
60269
|
}
|
60270
60270
|
function _x(a, n) {
|
60271
60271
|
const r = /* @__PURE__ */ new Map(), o = [];
|
60272
|
-
return a.forEach((
|
60272
|
+
return a.forEach((l) => {
|
60273
60273
|
var u;
|
60274
|
-
|
60275
|
-
const
|
60276
|
-
|
60274
|
+
l.title = n;
|
60275
|
+
const c = l.originalName || l.name;
|
60276
|
+
c !== "for...in" && (r.has(c) ? (u = r.get(c)) == null || u.push(l) : (o.push(c), r.set(c, [l])));
|
60277
60277
|
}), { mapObj: r, keys: o };
|
60278
60278
|
}
|
60279
60279
|
const { keyList: qp, keyMapList: gt } = yx(), Br = [{
|
@@ -60353,14 +60353,14 @@ ${n}
|
|
60353
60353
|
}
|
60354
60354
|
const ye = new gx();
|
60355
60355
|
function bx(a) {
|
60356
|
-
const { name: n, libraryName: r, desc: o } = a,
|
60357
|
-
return
|
60356
|
+
const { name: n, libraryName: r, desc: o } = a, l = [`${ye.bold(n || r)} (library)`];
|
60357
|
+
return l.push(ye.delimiter), o && l.push(ye.paragraph(ye.bold(ft.Description), ye.lineBreak, o)), l.join(l.length === 2 ? " " : ye.lineBreak);
|
60358
60358
|
}
|
60359
60359
|
function xx(a, n = 0, r = !0) {
|
60360
60360
|
const o = a[n];
|
60361
60361
|
if (!o)
|
60362
60362
|
return "";
|
60363
|
-
const
|
60363
|
+
const l = /(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent), { name: c, title: u, desc: f, type: x, syntax: g, returns: h, remarks: T, fields: P } = o, M = [`${ye.bold(c)} (${u})`];
|
60364
60364
|
if (a.length > 1 && M.push(ye.italic(`+${a.length - 1} overloads`)), M.push(ye.delimiter), f && M.push(ye.paragraph(Array.isArray(f) ? f.join(ye.lineBreak) : f || "")), x && M.push(ye.paragraph(ye.bold(ft.Type), ye.italic(x))), g && g.length && M.push(ye.paragraph(ye.bold(ft.Syntax), ye.pineCode(g.join(ye.lineBreak)))), h && M.push(ye.paragraph(ye.bold(ft.Returns), ye.lineBreak, h.join(ye.lineBreak))), T && T.length && a.length <= 1) {
|
60365
60365
|
let F = "";
|
60366
60366
|
typeof T == "string" ? F = T : F = T.join(ye.lineBreak) || "", F.length < 200 && M.push(ye.paragraph(ye.bold(ft.Remarks), ye.lineBreak, F));
|
@@ -60373,7 +60373,7 @@ function xx(a, n = 0, r = !0) {
|
|
60373
60373
|
}
|
60374
60374
|
M.push(ye.paragraph(ye.bold(ft.Fields), ye.lineBreak, F.join(ye.paragraphBreak)));
|
60375
60375
|
}
|
60376
|
-
return r && M.push(ye.italic(`${ye.code(
|
60376
|
+
return r && M.push(ye.italic(`${ye.code(l ? "⌘" : "Ctrl")} + ${ux.clickOnKeywordForMoreHelp}`)), M.join(M.length === 2 ? " " : ye.lineBreak);
|
60377
60377
|
}
|
60378
60378
|
const Ai = "tcc_cursor_position", hx = ["submenuitem.EditorContextPeek", "editor.action.peekDefinition"];
|
60379
60379
|
function wx(a) {
|
@@ -60382,8 +60382,8 @@ function wx(a) {
|
|
60382
60382
|
function vx(a) {
|
60383
60383
|
const n = a.getContribution("editor.contrib.contextmenu"), r = n == null ? void 0 : n._getMenuActions;
|
60384
60384
|
n._getMenuActions = function() {
|
60385
|
-
return r.apply(n, arguments).filter(function(
|
60386
|
-
return !hx.includes(
|
60385
|
+
return r.apply(n, arguments).filter(function(l) {
|
60386
|
+
return !hx.includes(l.id);
|
60387
60387
|
});
|
60388
60388
|
};
|
60389
60389
|
}
|
@@ -60503,20 +60503,20 @@ class Tx {
|
|
60503
60503
|
_initUserDefind() {
|
60504
60504
|
this._userFuncArgsCache.clear(), this._userNamespaceCache.clear(), this._userOutermostNsItems.clear(), this._methodNamespaceCache.clear(), this._methodFuncs.clear();
|
60505
60505
|
}
|
60506
|
-
setUserDefind(n, r, o,
|
60506
|
+
setUserDefind(n, r, o, l) {
|
60507
60507
|
this._initUserDefind();
|
60508
|
-
const
|
60509
|
-
this._getMethodNamespaceCache(
|
60508
|
+
const c = this._mergeTreeSlices(this._generateTreeSlice(gt.methods, "method"), this._generateTreeSlice(l, "method"));
|
60509
|
+
this._getMethodNamespaceCache(c), this._userMethods = l, this._userTypes = r, this._userFunctions = n;
|
60510
60510
|
const u = this._generateTreeSlice(n, "fun");
|
60511
60511
|
this._userSuggestions = this._getAllUserCompletionItems(u, this._generateTreeSlice(r, "type"), this._generateTreeSlice(o, "var")), this._getUserFuncArgumentsCompletionItemsToCache(u);
|
60512
60512
|
}
|
60513
60513
|
_getAllUserCompletionItems(n, r, o) {
|
60514
|
-
const
|
60515
|
-
return [...
|
60514
|
+
const l = this._getUserVariableCompletionItems(o), c = this._getTypeCompletionItems(r, !0), u = this._getFunctionCompletionItems(n, void 0, !0);
|
60515
|
+
return [...c, ...u, ...l, ...this._userOutermostNsItems.values()];
|
60516
60516
|
}
|
60517
60517
|
_getAllCompletionItems() {
|
60518
|
-
const { variables: n, keywords: r, types: o, functions:
|
60519
|
-
return [...
|
60518
|
+
const { variables: n, keywords: r, types: o, functions: l } = this._builtinSubtreeCache, c = this._getVariableCompletionItems(n), u = this._getKeywordCompletionItems(r), f = this._getTypeCompletionItems(o), x = this._getFunctionCompletionItems(l), g = this._getSnippetsCompletionsList();
|
60519
|
+
return [...c, ...u, ...f, ...x, ...this._outermostNsItems.values(), ...g];
|
60520
60520
|
}
|
60521
60521
|
_getNodeKey(n, r) {
|
60522
60522
|
return `${r}_${n}`;
|
@@ -60524,12 +60524,12 @@ class Tx {
|
|
60524
60524
|
_mergeTreeSlices(...n) {
|
60525
60525
|
const r = /* @__PURE__ */ new Map();
|
60526
60526
|
for (const o of n)
|
60527
|
-
for (const [
|
60528
|
-
const u = r.get(
|
60529
|
-
u ? r.set(
|
60527
|
+
for (const [l, c] of o) {
|
60528
|
+
const u = r.get(l);
|
60529
|
+
u ? r.set(l, {
|
60530
60530
|
...u,
|
60531
|
-
children: this._mergeTreeSlices(
|
60532
|
-
}) : r.set(
|
60531
|
+
children: this._mergeTreeSlices(c.children, u.children)
|
60532
|
+
}) : r.set(l, c);
|
60533
60533
|
}
|
60534
60534
|
return r;
|
60535
60535
|
}
|
@@ -60543,14 +60543,14 @@ class Tx {
|
|
60543
60543
|
}
|
60544
60544
|
_generateTreeSlice(n, r) {
|
60545
60545
|
const o = /* @__PURE__ */ new Map();
|
60546
|
-
for (const [
|
60547
|
-
const [u, ...f] =
|
60548
|
-
let h = /* @__PURE__ */ new Map(), T =
|
60546
|
+
for (const [l, c] of n) {
|
60547
|
+
const [u, ...f] = l.split("."), x = f.length > 0, g = o.get(this._getNodeKey(u, x ? "ns" : r));
|
60548
|
+
let h = /* @__PURE__ */ new Map(), T = c.map((M) => ({
|
60549
60549
|
...M,
|
60550
|
-
name:
|
60551
|
-
})), P = this._getNodeKey(
|
60550
|
+
name: l
|
60551
|
+
})), P = this._getNodeKey(l, r);
|
60552
60552
|
if (x && r !== "type") {
|
60553
|
-
const M = /* @__PURE__ */ new Map([[f.join("."),
|
60553
|
+
const M = /* @__PURE__ */ new Map([[f.join("."), c]]);
|
60554
60554
|
T = [{
|
60555
60555
|
name: u,
|
60556
60556
|
title: we.namespace
|
@@ -60567,54 +60567,54 @@ class Tx {
|
|
60567
60567
|
return o;
|
60568
60568
|
}
|
60569
60569
|
_getBuiltinsCacheFragment() {
|
60570
|
-
const { keywords: n, variables: r, constants: o, types:
|
60570
|
+
const { keywords: n, variables: r, constants: o, types: l, functions: c, annotations: u } = gt, f = this._generateTreeSlice(u, "an");
|
60571
60571
|
return f.delete("an_@version="), this._builtinSubtreeCache = {
|
60572
60572
|
keywords: this._generateTreeSlice(n, "key"),
|
60573
60573
|
variables: this._mergeTreeSlices(this._generateTreeSlice(r, "var"), this._generateTreeSlice(o, "var")),
|
60574
|
-
types: this._generateTreeSlice(
|
60575
|
-
functions: this._generateTreeSlice(
|
60574
|
+
types: this._generateTreeSlice(l, "type"),
|
60575
|
+
functions: this._generateTreeSlice(c, "fun"),
|
60576
60576
|
annotations: f
|
60577
60577
|
}, this._builtinSubtreeCache;
|
60578
60578
|
}
|
60579
60579
|
_getVariableCompletionItems(n, r) {
|
60580
|
-
const o = [],
|
60581
|
-
for (const [
|
60580
|
+
const o = [], l = [];
|
60581
|
+
for (const [c, u] of n) {
|
60582
60582
|
const { value: f, children: x } = u;
|
60583
|
-
if (
|
60583
|
+
if (c.startsWith("ns")) {
|
60584
60584
|
const g = this._getNamespaceCompletionItem(f[0]);
|
60585
60585
|
if (r) {
|
60586
|
-
|
60586
|
+
l.push({ ...g });
|
60587
60587
|
const T = `${r}.${g.label}`;
|
60588
60588
|
g.label = T, g.insertText = T;
|
60589
60589
|
}
|
60590
60590
|
const h = this._getVariableCompletionItems(x, g.label);
|
60591
|
-
r || this._outermostNsItems.set(
|
60591
|
+
r || this._outermostNsItems.set(c, g), o.push(...h);
|
60592
60592
|
} else {
|
60593
60593
|
const g = this._getVariableCompletionItem(f[0], r ? 3 : 2);
|
60594
60594
|
if (r) {
|
60595
|
-
|
60595
|
+
l.push({ ...g });
|
60596
60596
|
const { label: h } = g;
|
60597
60597
|
g.label = `${r}.${h}`, g.insertText = `${r}.${g.insertText}`, g.filterText = `${h}\r`;
|
60598
60598
|
}
|
60599
60599
|
o.push(g);
|
60600
60600
|
}
|
60601
60601
|
}
|
60602
|
-
return
|
60602
|
+
return l.length && r && this._mergeCompletions(r, l), o;
|
60603
60603
|
}
|
60604
60604
|
_setUserVariableSubItems(n, r) {
|
60605
60605
|
var g, h, T, P;
|
60606
60606
|
let o = [];
|
60607
|
-
const
|
60608
|
-
|
60607
|
+
const l = wx(n.type || ""), c = this._methodNamespaceCache.get(l), u = r ? `${r}.${n.name}` : n.name;
|
60608
|
+
c && (o = c.filter((M) => {
|
60609
60609
|
var Q;
|
60610
|
-
const F = `${
|
60610
|
+
const F = `${l}.${M.label}`, L = gt.methods.get(F) || this._userMethods.get(F), W = L == null ? void 0 : L.some((j) => !j.thisType || j.thisType[0].includes("<>") || j.thisType.includes(n.type || ""));
|
60611
60611
|
if (W && L) {
|
60612
60612
|
const j = this._getNamedArgumentsCompletionList(((Q = L[0]) == null ? void 0 : Q.args) || []), O = `${u}.${M.label}`;
|
60613
60613
|
this._userFuncArgsCache.set(O, j), this._methodFuncs.set(O, L);
|
60614
60614
|
}
|
60615
60615
|
return W;
|
60616
60616
|
}));
|
60617
|
-
const { types: f } = gt, x = ((h = (g = this._userTypes.get(
|
60617
|
+
const { types: f } = gt, x = ((h = (g = this._userTypes.get(l)) == null ? void 0 : g[0]) == null ? void 0 : h.fields) || ((P = (T = f.get(l)) == null ? void 0 : T[0]) == null ? void 0 : P.fields);
|
60618
60618
|
if (x)
|
60619
60619
|
for (const M of x) {
|
60620
60620
|
const F = M.name, L = M.type, W = this._getInstanceTypeCompletionItemProp({ name: F, type: L });
|
@@ -60623,34 +60623,34 @@ class Tx {
|
|
60623
60623
|
o.length && this._mergeUserCompletions(u, o);
|
60624
60624
|
}
|
60625
60625
|
_getUserVariableCompletionItems(n, r) {
|
60626
|
-
const o = [],
|
60627
|
-
for (const [
|
60626
|
+
const o = [], l = [];
|
60627
|
+
for (const [c, u] of n) {
|
60628
60628
|
const { value: f, children: x } = u;
|
60629
|
-
if (this._setUserVariableSubItems(f[0]),
|
60629
|
+
if (this._setUserVariableSubItems(f[0]), c.startsWith("ns")) {
|
60630
60630
|
const g = this._getNamespaceCompletionItem(f[0]);
|
60631
60631
|
if (r) {
|
60632
|
-
|
60632
|
+
l.push({ ...g });
|
60633
60633
|
const T = `${r}.${g.label}`;
|
60634
60634
|
g.label = T, g.insertText = T;
|
60635
60635
|
}
|
60636
60636
|
const h = this._getUserVariableCompletionItems(x, g.label);
|
60637
|
-
r || this._userOutermostNsItems.set(
|
60637
|
+
r || this._userOutermostNsItems.set(c, g), o.push(...h);
|
60638
60638
|
} else {
|
60639
60639
|
const g = this._getVariableCompletionItem(f[0], r ? 2 : 1, !1);
|
60640
60640
|
if (r) {
|
60641
|
-
|
60641
|
+
l.push({ ...g });
|
60642
60642
|
const { label: h } = g;
|
60643
60643
|
g.label = `${r}.${h}`, g.insertText = `${r}.${g.insertText}`, g.filterText = `${h}\r`;
|
60644
60644
|
}
|
60645
60645
|
o.push(g);
|
60646
60646
|
}
|
60647
60647
|
}
|
60648
|
-
return
|
60648
|
+
return l.length && r && this._mergeUserCompletions(r, l), o;
|
60649
60649
|
}
|
60650
60650
|
_getTypeCompletionItems(n, r = !1) {
|
60651
60651
|
const o = [];
|
60652
|
-
for (const [,
|
60653
|
-
const { value:
|
60652
|
+
for (const [, l] of n) {
|
60653
|
+
const { value: c } = l, u = r ? this._getCustomTypeCompletionItem(c[0]) : this._getTypeCompletionItem(c[0]);
|
60654
60654
|
o.push(u);
|
60655
60655
|
}
|
60656
60656
|
return o;
|
@@ -60658,24 +60658,24 @@ class Tx {
|
|
60658
60658
|
_getAnnotationCompletionItems(n) {
|
60659
60659
|
const r = [];
|
60660
60660
|
for (const [, o] of n) {
|
60661
|
-
const { value:
|
60662
|
-
r.push(
|
60661
|
+
const { value: l } = o, c = this._getAnnotationCompletionItem(l[0]);
|
60662
|
+
r.push(c);
|
60663
60663
|
}
|
60664
60664
|
return r;
|
60665
60665
|
}
|
60666
60666
|
_getKeywordCompletionItems(n) {
|
60667
60667
|
const r = [];
|
60668
60668
|
for (const [, o] of n) {
|
60669
|
-
const { value:
|
60670
|
-
r.push(
|
60669
|
+
const { value: l } = o, c = this._getKeywordCompletionItem(l[0]);
|
60670
|
+
r.push(c);
|
60671
60671
|
}
|
60672
60672
|
return r;
|
60673
60673
|
}
|
60674
60674
|
_getMethodNamespaceCache(n, r) {
|
60675
60675
|
const o = [];
|
60676
|
-
for (const [
|
60677
|
-
const { value: u, children: f } =
|
60678
|
-
if (
|
60676
|
+
for (const [l, c] of n) {
|
60677
|
+
const { value: u, children: f } = c;
|
60678
|
+
if (l.startsWith("ns")) {
|
60679
60679
|
const x = this._getNamespaceCompletionItem(u[0]);
|
60680
60680
|
if (r) {
|
60681
60681
|
o.push({ ...x });
|
@@ -60695,39 +60695,39 @@ class Tx {
|
|
60695
60695
|
r && this._methodNamespaceCache.set(r, o);
|
60696
60696
|
}
|
60697
60697
|
_getFunctionCompletionItems(n, r, o = !1) {
|
60698
|
-
const
|
60698
|
+
const l = [], c = [];
|
60699
60699
|
for (const [u, f] of n) {
|
60700
60700
|
const { value: x, children: g } = f;
|
60701
60701
|
if (u.startsWith("ns")) {
|
60702
60702
|
const h = this._getNamespaceCompletionItem(x[0]);
|
60703
60703
|
if (r) {
|
60704
|
-
|
60704
|
+
c.push({ ...h });
|
60705
60705
|
const P = `${r}.${h.label}`;
|
60706
60706
|
h.label = P, h.insertText = P;
|
60707
60707
|
}
|
60708
60708
|
const T = this._getFunctionCompletionItems(g, h.label, o);
|
60709
|
-
r || (o ? this._userOutermostNsItems.set(u, h) : this._outermostNsItems.set(u, h)),
|
60709
|
+
r || (o ? this._userOutermostNsItems.set(u, h) : this._outermostNsItems.set(u, h)), l.push(...T);
|
60710
60710
|
} else {
|
60711
60711
|
const h = this._getFunctionCompletionItem(x[0], r ? 3 : 2, !o);
|
60712
60712
|
if (x.length > 1 && (h.detail = `${h.detail} (+${x.length - 1} overloads)`), r) {
|
60713
|
-
|
60713
|
+
c.push({ ...h });
|
60714
60714
|
const { label: T } = h;
|
60715
60715
|
h.label = `${r}.${T}`, h.insertText = `${r}.${h.insertText}`, h.filterText = `${T}\r`;
|
60716
60716
|
}
|
60717
|
-
|
60717
|
+
l.push(h);
|
60718
60718
|
}
|
60719
60719
|
}
|
60720
|
-
return
|
60720
|
+
return c.length && r && (o ? this._mergeUserCompletions(r, c) : this._mergeCompletions(r, c)), l;
|
60721
60721
|
}
|
60722
60722
|
_getSnippetsCompletionsList() {
|
60723
60723
|
return mx.map((n) => {
|
60724
|
-
const { label: r, kind: o, insertText:
|
60725
|
-
value: this._formatter.pineCode(
|
60724
|
+
const { label: r, kind: o, insertText: l } = n, c = r.charAt(0).toUpperCase() + r.substring(1), u = {
|
60725
|
+
value: this._formatter.pineCode(l.replace(/\${\d:([^}]+)}|\${\d}/g, "$1"))
|
60726
60726
|
};
|
60727
60727
|
return {
|
60728
60728
|
label: r,
|
60729
|
-
detail: `(${
|
60730
|
-
insertText:
|
60729
|
+
detail: `(${c} ${o})`,
|
60730
|
+
insertText: l,
|
60731
60731
|
insertTextRules: Xe.CompletionItemInsertTextRule.InsertAsSnippet,
|
60732
60732
|
sortText: `2_${r}`,
|
60733
60733
|
kind: Xe.CompletionItemKind.Snippet,
|
@@ -60736,59 +60736,59 @@ class Tx {
|
|
60736
60736
|
});
|
60737
60737
|
}
|
60738
60738
|
_getFuncArgumentsCompletionItemsToCache(n, r) {
|
60739
|
-
for (const [o,
|
60740
|
-
const { name:
|
60739
|
+
for (const [o, l] of n) {
|
60740
|
+
const { name: c } = l.value[0];
|
60741
60741
|
if (o.startsWith("ns"))
|
60742
|
-
this._getFuncArgumentsCompletionItemsToCache(
|
60742
|
+
this._getFuncArgumentsCompletionItemsToCache(l.children, r ? `${r}.${c}` : c);
|
60743
60743
|
else {
|
60744
60744
|
const u = /* @__PURE__ */ new Map();
|
60745
|
-
|
60745
|
+
l.value.reduce((g, h) => {
|
60746
60746
|
const T = h.args;
|
60747
60747
|
return T && T.length && T.forEach((P) => {
|
60748
60748
|
g.set(P.name, P);
|
60749
60749
|
}), g;
|
60750
60750
|
}, u);
|
60751
|
-
const f = this._getNamedArgumentsCompletionList([...u.values()]), x = r ? `${r}.${
|
60751
|
+
const f = this._getNamedArgumentsCompletionList([...u.values()]), x = r ? `${r}.${c}` : c;
|
60752
60752
|
this._funcArgsCache.set(x, f);
|
60753
60753
|
}
|
60754
60754
|
}
|
60755
60755
|
}
|
60756
60756
|
_getUserFuncArgumentsCompletionItemsToCache(n, r) {
|
60757
|
-
for (const [o,
|
60758
|
-
const { name:
|
60757
|
+
for (const [o, l] of n) {
|
60758
|
+
const { name: c } = l.value[0];
|
60759
60759
|
if (o.startsWith("ns"))
|
60760
|
-
this._getUserFuncArgumentsCompletionItemsToCache(
|
60760
|
+
this._getUserFuncArgumentsCompletionItemsToCache(l.children, r ? `${r}.${c}` : c);
|
60761
60761
|
else {
|
60762
60762
|
const u = /* @__PURE__ */ new Map();
|
60763
|
-
|
60763
|
+
l.value.reduce((g, h) => {
|
60764
60764
|
const T = h.args;
|
60765
60765
|
return T && T.length && T.forEach((P) => {
|
60766
60766
|
g.set(P.name, P);
|
60767
60767
|
}), g;
|
60768
60768
|
}, u);
|
60769
|
-
const f = this._getNamedArgumentsCompletionList([...u.values()]), x = r ? `${r}.${
|
60769
|
+
const f = this._getNamedArgumentsCompletionList([...u.values()]), x = r ? `${r}.${c}` : c;
|
60770
60770
|
this._userFuncArgsCache.set(x, f);
|
60771
60771
|
}
|
60772
60772
|
}
|
60773
60773
|
}
|
60774
60774
|
_getNamedArgumentsCompletionList(n) {
|
60775
60775
|
return n.map((r) => {
|
60776
|
-
const { name: o, desc:
|
60776
|
+
const { name: o, desc: l, displayType: c } = r, u = `${o} = `, f = Array.isArray(l) ? l.join(this._formatter.delimiter) : l || "";
|
60777
60777
|
return {
|
60778
60778
|
label: u,
|
60779
60779
|
documentation: {
|
60780
60780
|
value: this._formatter.paragraph(this._formatter.bold(we.Description), this._formatter.lineBreak, f)
|
60781
60781
|
},
|
60782
60782
|
insertText: u,
|
60783
|
-
detail: `(${we.parameter}) ${we.types} ${
|
60783
|
+
detail: `(${we.parameter}) ${we.types} ${c}`,
|
60784
60784
|
kind: Xe.CompletionItemKind.Text,
|
60785
60785
|
sortText: `0_${u}`
|
60786
60786
|
};
|
60787
60787
|
});
|
60788
60788
|
}
|
60789
60789
|
_getVariableCompletionItem(n, r = 2, o = !0) {
|
60790
|
-
const
|
60791
|
-
|
60790
|
+
const l = this._extractExamples(n), c = this._extractDescription(n), u = [this._createDescriptionSection(c)];
|
60791
|
+
l.length ? u.push(this._createExampleSection(l)) : n.syntax && n.syntax.length && u.push(this._createSyntaxSection(n.syntax));
|
60792
60792
|
const f = {
|
60793
60793
|
value: u.join(this._formatter.lineBreak)
|
60794
60794
|
}, x = o ? we.variables : we.userDefinedVariable;
|
@@ -60802,10 +60802,10 @@ class Tx {
|
|
60802
60802
|
};
|
60803
60803
|
}
|
60804
60804
|
_getKeywordCompletionItem(n, r = 2) {
|
60805
|
-
const o = this._extractExamples(n),
|
60806
|
-
return o.length ?
|
60805
|
+
const o = this._extractExamples(n), l = this._extractDescription(n), c = [this._createDescriptionSection(l)];
|
60806
|
+
return o.length ? c.push(this._createExampleSection(o)) : n.syntax && n.syntax.length && c.push(this._createSyntaxSection(n.syntax)), {
|
60807
60807
|
documentation: {
|
60808
|
-
value:
|
60808
|
+
value: c.join(this._formatter.lineBreak)
|
60809
60809
|
},
|
60810
60810
|
label: n.name,
|
60811
60811
|
insertText: n.name,
|
@@ -60855,8 +60855,8 @@ class Tx {
|
|
60855
60855
|
}
|
60856
60856
|
_getFunctionCompletionItem(n, r = 2, o = !0) {
|
60857
60857
|
var M;
|
60858
|
-
const
|
60859
|
-
|
60858
|
+
const l = n.returnedTypes && n.returnedTypes[0] || n.syntax && n.syntax[0] && ((M = n.syntax[0].split("→").pop()) == null ? void 0 : M.trim()), c = this._extractExamples(n), u = this._extractDescription(n), f = [this._createDescriptionSection(u)];
|
60859
|
+
c.length ? f.push(this._createExampleSection(c)) : n.syntax && n.syntax.length && f.push(this._createSyntaxSection(n.syntax)), n.returns && n.returns.length && f.push(this._createReturnSection(n.returns));
|
60860
60860
|
const x = {
|
60861
60861
|
value: f.join(this._formatter.lineBreak)
|
60862
60862
|
}, g = n.name, h = o ? we.functions : we.userDefinedFunction, T = n.template, P = T ? `${fx(g)}<\${1}>` : g;
|
@@ -60868,7 +60868,7 @@ class Tx {
|
|
60868
60868
|
insertTextRules: Xe.CompletionItemInsertTextRule.InsertAsSnippet,
|
60869
60869
|
insertText: P + this.bracketsPostfix,
|
60870
60870
|
originInsertText: P,
|
60871
|
-
detail: `(${h}) ${we.returns} ${
|
60871
|
+
detail: `(${h}) ${we.returns} ${l}`,
|
60872
60872
|
command: {
|
60873
60873
|
id: "tcc.editor.function",
|
60874
60874
|
title: "",
|
@@ -60879,10 +60879,10 @@ class Tx {
|
|
60879
60879
|
};
|
60880
60880
|
}
|
60881
60881
|
_getAnnotationCompletionItem(n) {
|
60882
|
-
const r = this._extractDescription(n), o = this._extractExamples(n),
|
60883
|
-
return o.length &&
|
60882
|
+
const r = this._extractDescription(n), o = this._extractExamples(n), l = [this._createDescriptionSection(r)];
|
60883
|
+
return o.length && l.push(this._createExampleSection(o)), {
|
60884
60884
|
documentation: {
|
60885
|
-
value:
|
60885
|
+
value: l.join(this._formatter.lineBreak)
|
60886
60886
|
},
|
60887
60887
|
label: n.name,
|
60888
60888
|
insertText: n.name.replace("@", ""),
|
@@ -60959,30 +60959,30 @@ class Dx {
|
|
60959
60959
|
}), this._userFunctions = /* @__PURE__ */ new Map(), this._userVariables = /* @__PURE__ */ new Map(), this._userTypes = /* @__PURE__ */ new Map(), this._userMethods = /* @__PURE__ */ new Map(), this._imports = /* @__PURE__ */ new Map(), this._overloadsFuncs = [];
|
60960
60960
|
}
|
60961
60961
|
setUserDefined(n, r) {
|
60962
|
-
const { functions: o, variables:
|
60963
|
-
o && (this._userFunctions = o),
|
60962
|
+
const { functions: o, variables: l, types: c, methods: u, imports: f } = n;
|
60963
|
+
o && (this._userFunctions = o), l && (this._userVariables = l), c && (this._userTypes = c), u && (this._userMethods = u), f && (this._imports = f), this._overloadsFuncs = r;
|
60964
60964
|
}
|
60965
|
-
parseLineContentFuncVar(n, r, o,
|
60966
|
-
let
|
60967
|
-
const u =
|
60968
|
-
if (this._removeString(
|
60965
|
+
parseLineContentFuncVar(n, r, o, l) {
|
60966
|
+
let c = (o == null ? void 0 : o.getLineContent(r)) || "";
|
60967
|
+
const u = c.indexOf("//");
|
60968
|
+
if (this._removeString(c).indexOf("//") !== -1 && u <= n)
|
60969
60969
|
return;
|
60970
|
-
|
60971
|
-
const f = this._getVariablesDocVal(
|
60970
|
+
c = c + " ";
|
60971
|
+
const f = this._getVariablesDocVal(c, n, r);
|
60972
60972
|
if (f) {
|
60973
60973
|
if (f.isBuildIn) {
|
60974
|
-
const h = o == null ? void 0 : o.getWordAtPosition(
|
60974
|
+
const h = o == null ? void 0 : o.getWordAtPosition(l || new eb(r, n));
|
60975
60975
|
if (((o == null ? void 0 : o.getValueInRange({ startLineNumber: r, startColumn: (h == null ? void 0 : h.endColumn) || 0, endLineNumber: r, endColumn: ((h == null ? void 0 : h.endColumn) || 0) + 2 })) || "").trim().startsWith("="))
|
60976
60976
|
return null;
|
60977
60977
|
}
|
60978
60978
|
return f;
|
60979
60979
|
}
|
60980
|
-
const x = this._getFuncsDocVal(
|
60980
|
+
const x = this._getFuncsDocVal(c, n, r);
|
60981
60981
|
if (x)
|
60982
60982
|
return x;
|
60983
|
-
const g =
|
60983
|
+
const g = c.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);
|
60984
60984
|
if (g) {
|
60985
|
-
const h = this._matchContent(g,
|
60985
|
+
const h = this._matchContent(g, c, n);
|
60986
60986
|
if (h) {
|
60987
60987
|
const T = this._getBuildInOther(h.name);
|
60988
60988
|
if (T)
|
@@ -61002,10 +61002,10 @@ class Dx {
|
|
61002
61002
|
}
|
61003
61003
|
}
|
61004
61004
|
}
|
61005
|
-
return this._getImportDocVal(
|
61005
|
+
return this._getImportDocVal(c, n, r);
|
61006
61006
|
}
|
61007
61007
|
_getImportDocVal(n, r, o) {
|
61008
|
-
const
|
61008
|
+
const l = new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)", "g"), c = new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)", "g"), u = n.match(l);
|
61009
61009
|
if (u) {
|
61010
61010
|
const f = this._matchContent(u, n, r);
|
61011
61011
|
if (f) {
|
@@ -61013,7 +61013,7 @@ class Dx {
|
|
61013
61013
|
if (g)
|
61014
61014
|
return g;
|
61015
61015
|
}
|
61016
|
-
const x = n.match(
|
61016
|
+
const x = n.match(c);
|
61017
61017
|
if (x) {
|
61018
61018
|
const g = this._matchContent(x, n, r);
|
61019
61019
|
if (g) {
|
@@ -61032,14 +61032,14 @@ class Dx {
|
|
61032
61032
|
return gt.methods.get(n);
|
61033
61033
|
}
|
61034
61034
|
_getBuildInOther(n) {
|
61035
|
-
const { keywords: r, variables: o, constants:
|
61036
|
-
return r.get(n) || o.get(n) ||
|
61035
|
+
const { keywords: r, variables: o, constants: l, types: c } = gt;
|
61036
|
+
return r.get(n) || o.get(n) || l.get(n) || c.get(n);
|
61037
61037
|
}
|
61038
61038
|
parseCurrentInputFunc(n, r = !1, o = !1) {
|
61039
|
-
let
|
61040
|
-
for (;
|
61041
|
-
const x = n.charAt(
|
61042
|
-
if (
|
61039
|
+
let l = n.length - 1, c = 0, u = r, f = o;
|
61040
|
+
for (; l >= 0; ) {
|
61041
|
+
const x = n.charAt(l);
|
61042
|
+
if (l -= 1, /['"]/.test(x)) {
|
61043
61043
|
const g = x;
|
61044
61044
|
if (x === "'") {
|
61045
61045
|
if (u) {
|
@@ -61050,21 +61050,21 @@ class Dx {
|
|
61050
61050
|
f = !1;
|
61051
61051
|
continue;
|
61052
61052
|
}
|
61053
|
-
for (;
|
61054
|
-
const h = n.charAt(
|
61055
|
-
if (
|
61053
|
+
for (; l >= 0; ) {
|
61054
|
+
const h = n.charAt(l);
|
61055
|
+
if (l -= 1, h === g)
|
61056
61056
|
break;
|
61057
61057
|
}
|
61058
61058
|
}
|
61059
|
-
if (!(u || f) && (/\)/.test(x) && (
|
61060
|
-
if (
|
61061
|
-
|
61059
|
+
if (!(u || f) && (/\)/.test(x) && (c += 1), /\(/.test(x))) {
|
61060
|
+
if (c > 0) {
|
61061
|
+
c -= 1;
|
61062
61062
|
continue;
|
61063
61063
|
}
|
61064
61064
|
let g = "";
|
61065
|
-
for (;
|
61066
|
-
const h = n.charAt(
|
61067
|
-
if (
|
61065
|
+
for (; l >= 0; ) {
|
61066
|
+
const h = n.charAt(l);
|
61067
|
+
if (l -= 1, !(/\s/.test(h) && !g)) {
|
61068
61068
|
if (/[^\w.]/.test(h))
|
61069
61069
|
break;
|
61070
61070
|
g = h + g;
|
@@ -61073,15 +61073,15 @@ class Dx {
|
|
61073
61073
|
if (g)
|
61074
61074
|
return {
|
61075
61075
|
funcName: g,
|
61076
|
-
startIndex:
|
61076
|
+
startIndex: l + 1
|
61077
61077
|
};
|
61078
61078
|
}
|
61079
61079
|
}
|
61080
61080
|
}
|
61081
61081
|
parseCurrentInputFuncAndArg(n, r = !1, o = !1) {
|
61082
|
-
const { funcName:
|
61083
|
-
if (
|
61084
|
-
let u = n.slice(
|
61082
|
+
const { funcName: l, startIndex: c } = this.parseCurrentInputFunc(n, r, o) || {};
|
61083
|
+
if (l && typeof c == "number") {
|
61084
|
+
let u = n.slice(c + l.length).trim().slice(1), f = -1;
|
61085
61085
|
if (r && (f = u.lastIndexOf("'")), o) {
|
61086
61086
|
const h = u.lastIndexOf('"');
|
61087
61087
|
(h !== -1 && h < f || f === -1) && (f = h);
|
@@ -61092,7 +61092,7 @@ class Dx {
|
|
61092
61092
|
return T.length <= 1 ? "" : T[0].trim();
|
61093
61093
|
});
|
61094
61094
|
return {
|
61095
|
-
funcName:
|
61095
|
+
funcName: l,
|
61096
61096
|
args: g
|
61097
61097
|
};
|
61098
61098
|
}
|
@@ -61101,24 +61101,24 @@ class Dx {
|
|
61101
61101
|
return n.replace(/\\"|\\'/g, "").replace(/"[^"]*"|'[^']*'/g, "");
|
61102
61102
|
}
|
61103
61103
|
_getVariablesDocVal(n, r, o) {
|
61104
|
-
const
|
61105
|
-
if (
|
61106
|
-
const
|
61107
|
-
if (
|
61104
|
+
const l = this._removeString(n).replace(/\/\/.*/g, "").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);
|
61105
|
+
if (l) {
|
61106
|
+
const c = this._matchContent(l, n, r);
|
61107
|
+
if (c) {
|
61108
61108
|
const u = {
|
61109
61109
|
docValue: void 0,
|
61110
61110
|
isBuildIn: !0,
|
61111
61111
|
index: 0
|
61112
|
-
}, f = this._getBuildInOther(
|
61112
|
+
}, f = this._getBuildInOther(c.name);
|
61113
61113
|
if (f)
|
61114
61114
|
return u.docValue = f, u;
|
61115
|
-
const x = this._getUserVariablesDocVal(
|
61115
|
+
const x = this._getUserVariablesDocVal(c.name, r, o);
|
61116
61116
|
if (x)
|
61117
61117
|
return Object.assign(u, { docValue: [x], isBuildIn: !1 });
|
61118
|
-
const g = this._getUserTypesDocVal(
|
61118
|
+
const g = this._getUserTypesDocVal(c.name);
|
61119
61119
|
if (g)
|
61120
61120
|
return Object.assign(u, { docValue: g, isBuildIn: !1 });
|
61121
|
-
const h = this._getTypesAndFileds(n,
|
61121
|
+
const h = this._getTypesAndFileds(n, c.name, r, o);
|
61122
61122
|
if (h && typeof h != "string")
|
61123
61123
|
return Object.assign(u, { docValue: [h], isBuildIn: !1 });
|
61124
61124
|
}
|
@@ -61137,21 +61137,21 @@ class Dx {
|
|
61137
61137
|
if (r)
|
61138
61138
|
return r[0].title = we.userDefinedType, r;
|
61139
61139
|
}
|
61140
|
-
_getTypesAndFileds(n, r, o,
|
61141
|
-
var
|
61140
|
+
_getTypesAndFileds(n, r, o, l) {
|
61141
|
+
var c, u;
|
61142
61142
|
if (r.includes(".")) {
|
61143
61143
|
const f = r.split(".");
|
61144
61144
|
let x = f[0], g, h = null, T = n.indexOf(r, o - r.length) + 1, P = T + x.length - 1;
|
61145
61145
|
for (const M of f.slice(1)) {
|
61146
61146
|
if (!h) {
|
61147
|
-
const F = T <= o && P >= o, L = this._getUserVariablesDocVal(x, o,
|
61147
|
+
const F = T <= o && P >= o, L = this._getUserVariablesDocVal(x, o, l);
|
61148
61148
|
if (F && L)
|
61149
61149
|
return L;
|
61150
61150
|
h = L == null ? void 0 : L.type;
|
61151
61151
|
}
|
61152
61152
|
if (h) {
|
61153
61153
|
g = h, T = P + 2, P = P + M.length + 1;
|
61154
|
-
const F = this._userTypes.get(h) || gt.types.get(h), L = (u = (
|
61154
|
+
const F = this._userTypes.get(h) || gt.types.get(h), L = (u = (c = F == null ? void 0 : F[0]) == null ? void 0 : c.fields) == null ? void 0 : u.find((W) => W.name === M);
|
61155
61155
|
if (L && T <= o && P >= o)
|
61156
61156
|
return {
|
61157
61157
|
name: `${h}.${M}`,
|
@@ -61167,32 +61167,32 @@ class Dx {
|
|
61167
61167
|
}
|
61168
61168
|
}
|
61169
61169
|
_getFuncsDocVal(n, r, o) {
|
61170
|
-
const
|
61171
|
-
if (
|
61172
|
-
const
|
61173
|
-
if (
|
61170
|
+
const l = n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);
|
61171
|
+
if (l) {
|
61172
|
+
const c = this._matchContent(l, n, r);
|
61173
|
+
if (c) {
|
61174
61174
|
const u = {
|
61175
61175
|
docValue: void 0,
|
61176
61176
|
isBuildIn: !0,
|
61177
|
-
endIndex:
|
61177
|
+
endIndex: c.endIndex,
|
61178
61178
|
index: 0
|
61179
|
-
}, f = this._getBuildInFunc(
|
61179
|
+
}, f = this._getBuildInFunc(c.name);
|
61180
61180
|
if (f)
|
61181
|
-
return u.index = this._getOverloadsFuncIndex(f, r,
|
61182
|
-
const x = this._getUserFuncsDocVal(
|
61181
|
+
return u.index = this._getOverloadsFuncIndex(f, r, c.name, o), Object.assign(u, { docValue: f });
|
61182
|
+
const x = this._getUserFuncsDocVal(c.name);
|
61183
61183
|
if (x)
|
61184
|
-
return u.index = this._getOverloadsFuncIndex(x, r,
|
61185
|
-
const g = this._getUserVarFuncsDocVal(n,
|
61184
|
+
return u.index = this._getOverloadsFuncIndex(x, r, c.name, o), Object.assign(u, { docValue: x, isBuildIn: !1 });
|
61185
|
+
const g = this._getUserVarFuncsDocVal(n, c.name, r, o);
|
61186
61186
|
if (g)
|
61187
61187
|
return Object.assign(u, { docValue: [g], isBuildIn: !1 });
|
61188
61188
|
}
|
61189
61189
|
}
|
61190
61190
|
}
|
61191
|
-
_getOverloadsFuncIndex(n, r, o,
|
61191
|
+
_getOverloadsFuncIndex(n, r, o, l) {
|
61192
61192
|
if (n.length > 1) {
|
61193
|
-
const
|
61194
|
-
if (
|
61195
|
-
return
|
61193
|
+
const c = this._overloadsFuncs.find((u) => u.name === o && u.line === l && u.startColumn <= r && u.endColumn >= r);
|
61194
|
+
if (c)
|
61195
|
+
return c.index;
|
61196
61196
|
}
|
61197
61197
|
return 0;
|
61198
61198
|
}
|
@@ -61212,17 +61212,17 @@ class Dx {
|
|
61212
61212
|
return r;
|
61213
61213
|
}
|
61214
61214
|
}
|
61215
|
-
_getUserVarFuncsDocVal(n, r, o,
|
61216
|
-
var
|
61215
|
+
_getUserVarFuncsDocVal(n, r, o, l) {
|
61216
|
+
var c;
|
61217
61217
|
if (r.includes(".")) {
|
61218
|
-
const u = r.split("."), f = this._getTypesAndFileds(n, r, o,
|
61218
|
+
const u = r.split("."), f = this._getTypesAndFileds(n, r, o, l);
|
61219
61219
|
if (typeof f == "string") {
|
61220
61220
|
const g = `${this._arrayTypeTransform(f).replace(/<[^<>]+>/, "").replace(/(series|simple|const|input)\s+([\w\d.]+)/, "$2")}.${u.pop()}`, h = this._getBuildInMethod(g);
|
61221
61221
|
if (h) {
|
61222
|
-
const T = this._getOverloadsFuncIndex(h, o, g,
|
61222
|
+
const T = this._getOverloadsFuncIndex(h, o, g, l);
|
61223
61223
|
return { ...h[0], name: g, index: T };
|
61224
61224
|
}
|
61225
|
-
return (
|
61225
|
+
return (c = this._getUserMethodsDocVal(g)) == null ? void 0 : c[0];
|
61226
61226
|
} else
|
61227
61227
|
return f;
|
61228
61228
|
}
|
@@ -61231,23 +61231,23 @@ class Dx {
|
|
61231
61231
|
return n.includes("[]") ? `array<${n.replace("[]", "")}>` : n;
|
61232
61232
|
}
|
61233
61233
|
_matchContent(n, r, o) {
|
61234
|
-
let
|
61235
|
-
for (const
|
61236
|
-
|
61237
|
-
const u = r.indexOf(
|
61238
|
-
if (
|
61234
|
+
let l = 0;
|
61235
|
+
for (const c of n) {
|
61236
|
+
l = o - c.length;
|
61237
|
+
const u = r.indexOf(c, l);
|
61238
|
+
if (l = u + c.length, this._judgeVal(r, u, l) && u + 1 <= o && l >= o)
|
61239
61239
|
return {
|
61240
|
-
name:
|
61241
|
-
endIndex:
|
61240
|
+
name: c,
|
61241
|
+
endIndex: l
|
61242
61242
|
};
|
61243
61243
|
}
|
61244
61244
|
}
|
61245
61245
|
_judgeVal(n, r, o) {
|
61246
|
-
const
|
61247
|
-
if (
|
61246
|
+
const l = n.charAt(r - 1), c = /[\w\d."'/]/;
|
61247
|
+
if (c.test(l))
|
61248
61248
|
return !1;
|
61249
61249
|
const u = n.charAt(o);
|
61250
|
-
return !
|
61250
|
+
return !c.test(u);
|
61251
61251
|
}
|
61252
61252
|
}
|
61253
61253
|
const or = new Dx();
|
@@ -61263,7 +61263,7 @@ var Za = { exports: {} };
|
|
61263
61263
|
Za.exports;
|
61264
61264
|
(function(a, n) {
|
61265
61265
|
(function() {
|
61266
|
-
var r, o = "4.17.21",
|
61266
|
+
var r, o = "4.17.21", l = 200, c = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", f = "Invalid `variable` option passed into `_.template`", x = "__lodash_hash_undefined__", g = 500, h = "__lodash_placeholder__", T = 1, P = 2, M = 4, F = 1, L = 2, W = 1, Q = 2, j = 4, O = 8, A = 16, I = 32, R = 64, U = 128, ie = 256, ae = 512, oe = 30, bt = "...", Ct = 800, Me = 16, Oe = 1, G = 2, fe = 3, qe = 1 / 0, Le = 9007199254740991, xt = 17976931348623157e292, zt = NaN, J = 4294967295, ce = J - 1, Be = J >>> 1, Gt = [
|
61267
61267
|
["ary", U],
|
61268
61268
|
["bind", W],
|
61269
61269
|
["bindKey", Q],
|
@@ -62051,7 +62051,7 @@ Za.exports;
|
|
62051
62051
|
var s = this.__data__;
|
62052
62052
|
if (s instanceof Qt) {
|
62053
62053
|
var i = s.__data__;
|
62054
|
-
if (!vr || i.length <
|
62054
|
+
if (!vr || i.length < l - 1)
|
62055
62055
|
return i.push([e, t]), this.size = ++s.size, this;
|
62056
62056
|
s = this.__data__ = new Zt(i);
|
62057
62057
|
}
|
@@ -62183,7 +62183,7 @@ Za.exports;
|
|
62183
62183
|
var p = -1, m = na, y = !0, b = e.length, v = [], C = t.length;
|
62184
62184
|
if (!b)
|
62185
62185
|
return v;
|
62186
|
-
s && (t = Ie(t, pt(s))), i ? (m = wn, y = !1) : t.length >=
|
62186
|
+
s && (t = Ie(t, pt(s))), i ? (m = wn, y = !1) : t.length >= l && (m = hr, y = !1, t = new As(t));
|
62187
62187
|
e:
|
62188
62188
|
for (; ++p < b; ) {
|
62189
62189
|
var z = e[p], N = s == null ? z : s(z);
|
@@ -62617,7 +62617,7 @@ Za.exports;
|
|
62617
62617
|
var i = -1, p = na, m = e.length, y = !0, b = [], v = b;
|
62618
62618
|
if (s)
|
62619
62619
|
y = !1, p = wn;
|
62620
|
-
else if (m >=
|
62620
|
+
else if (m >= l) {
|
62621
62621
|
var C = t ? null : xu(e);
|
62622
62622
|
if (C)
|
62623
62623
|
return oa(C);
|
@@ -64217,7 +64217,7 @@ Za.exports;
|
|
64217
64217
|
}
|
64218
64218
|
function Y_(e) {
|
64219
64219
|
if (Eu(e))
|
64220
|
-
throw new ee(
|
64220
|
+
throw new ee(c);
|
64221
64221
|
return Xo(e);
|
64222
64222
|
}
|
64223
64223
|
function V_(e) {
|
@@ -65479,11 +65479,11 @@ class Ax {
|
|
65479
65479
|
configurable: !0,
|
65480
65480
|
writable: !0,
|
65481
65481
|
value: (r = [], o) => {
|
65482
|
-
const
|
65483
|
-
for (let u =
|
65484
|
-
o[u] !== "," && o[u] !== ")" || (f++,
|
65482
|
+
const l = /* @__PURE__ */ new Map(), c = o.indexOf("(");
|
65483
|
+
for (let u = c + 1, f = c; u < o.length; u++)
|
65484
|
+
o[u] !== "," && o[u] !== ")" || (f++, l.set(o.slice(f, u), f), f = u + 1);
|
65485
65485
|
return r.map(({ name: u, displayType: f, desc: x }) => {
|
65486
|
-
const g = [], h =
|
65486
|
+
const g = [], h = l.get(u), T = h + u.length;
|
65487
65487
|
return g.push(this._formatter.paragraph(this._formatter.bold(u), this._formatter.italic(f || ""))), x && g.push(Array.isArray(x) ? x.join(this._formatter.lineBreak) : x), {
|
65488
65488
|
label: [h, T],
|
65489
65489
|
documentation: {
|
@@ -65498,29 +65498,29 @@ class Ax {
|
|
65498
65498
|
const o = this._getFuncItems(n);
|
65499
65499
|
if (!(o != null && o.length))
|
65500
65500
|
return null;
|
65501
|
-
const
|
65501
|
+
const l = this._getSequentialSignatures(n, o), c = this._getActiveIndex(o, r);
|
65502
65502
|
return {
|
65503
|
-
signatures:
|
65504
|
-
...
|
65503
|
+
signatures: l,
|
65504
|
+
...c
|
65505
65505
|
};
|
65506
65506
|
}
|
65507
65507
|
_getActiveIndex(n, r = []) {
|
65508
|
-
let o = 0,
|
65509
|
-
r.some((u) => !!u) || (
|
65510
|
-
const
|
65511
|
-
if (
|
65508
|
+
let o = 0, l = -1;
|
65509
|
+
r.some((u) => !!u) || (l = r.length - 1);
|
65510
|
+
const c = r.pop();
|
65511
|
+
if (c)
|
65512
65512
|
for (const [u, f] of n.entries()) {
|
65513
65513
|
const { args: x } = f;
|
65514
65514
|
if (x && x.length) {
|
65515
|
-
const g = x.findIndex((h) => h.name ===
|
65515
|
+
const g = x.findIndex((h) => h.name === c);
|
65516
65516
|
if (g != -1) {
|
65517
|
-
|
65517
|
+
l = g, o = u;
|
65518
65518
|
break;
|
65519
65519
|
}
|
65520
65520
|
}
|
65521
65521
|
}
|
65522
65522
|
return {
|
65523
|
-
activeParameter:
|
65523
|
+
activeParameter: l,
|
65524
65524
|
activeSignature: o
|
65525
65525
|
};
|
65526
65526
|
}
|
@@ -65529,25 +65529,25 @@ class Ax {
|
|
65529
65529
|
}
|
65530
65530
|
_getSequentialSignatures(n, r) {
|
65531
65531
|
return r.map((o) => {
|
65532
|
-
const
|
65532
|
+
const l = this._getSignatureLabel(n, o);
|
65533
65533
|
return {
|
65534
|
-
label:
|
65534
|
+
label: l,
|
65535
65535
|
documentation: this._getFormattedSignatureDocumentation(o),
|
65536
|
-
parameters: this._getSignatureParams(o.args,
|
65536
|
+
parameters: this._getSignatureParams(o.args, l)
|
65537
65537
|
};
|
65538
65538
|
});
|
65539
65539
|
}
|
65540
65540
|
_getSignatureLabel(n, r, o = !1) {
|
65541
|
-
const
|
65542
|
-
return o &&
|
65541
|
+
const l = [n];
|
65542
|
+
return o && l.push("<type>"), r.args && (l.push("("), l.push(r.args.map(({ name: c }) => c).join(", ")), l.push(")")), l.join("");
|
65543
65543
|
}
|
65544
65544
|
_getFormattedSignatureDocumentation(n) {
|
65545
65545
|
const { desc: r } = n, o = [];
|
65546
65546
|
r && o.push(Array.isArray(r) ? r.join(this._formatter.lineBreak) : r);
|
65547
|
-
const
|
65547
|
+
const l = `${this._formatter.code(this._isMac ? "⌘" : "Ctrl")} +
|
65548
65548
|
${this._formatter.code("Shift")} +
|
65549
65549
|
${this._formatter.code("Space")}`;
|
65550
|
-
return o.push(this._formatter.lineBreak), o.push(this._formatter.italic(`${
|
65550
|
+
return o.push(this._formatter.lineBreak), o.push(this._formatter.italic(`${l} ${we.toTriggerParameterHints}`)), {
|
65551
65551
|
value: this._formatter.paragraph(...o)
|
65552
65552
|
};
|
65553
65553
|
}
|
@@ -65565,14 +65565,14 @@ class Cx {
|
|
65565
65565
|
getDocumentColors(n) {
|
65566
65566
|
const r = [];
|
65567
65567
|
return n.forEach((o) => {
|
65568
|
-
const { range:
|
65569
|
-
let { matches:
|
65570
|
-
|
65571
|
-
const u =
|
65568
|
+
const { range: l } = o;
|
65569
|
+
let { matches: c } = o;
|
65570
|
+
c = c || [];
|
65571
|
+
const u = c[0] || "";
|
65572
65572
|
let f = null;
|
65573
|
-
this._isHexToken(u) ? f = this._hexToColor(u) : this._isRgbColor(u) ? f = this._rgbToColor(u) : this._colors[u] ? f = this._hexToColor(this._colors[u]) : this._isColorExpression(u) &&
|
65573
|
+
this._isHexToken(u) ? f = this._hexToColor(u) : this._isRgbColor(u) ? f = this._rgbToColor(u) : this._colors[u] ? f = this._hexToColor(this._colors[u]) : this._isColorExpression(u) && c[1] && c[6] && (f = this._extractNewExpression(c[1], Number(c[6]))), f && r.push({
|
65574
65574
|
color: f,
|
65575
|
-
range:
|
65575
|
+
range: l
|
65576
65576
|
});
|
65577
65577
|
}), r;
|
65578
65578
|
}
|
@@ -65584,22 +65584,22 @@ class Cx {
|
|
65584
65584
|
return `color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`;
|
65585
65585
|
}
|
65586
65586
|
getDocumentColorPresentations(n, { color: r, range: o }) {
|
65587
|
-
const
|
65588
|
-
if (this._isHexToken(
|
65587
|
+
const l = n.getValueInRange(o);
|
65588
|
+
if (this._isHexToken(l) || this._colors[l])
|
65589
65589
|
return [{
|
65590
65590
|
label: this._colorRgbRepresentation(r)
|
65591
65591
|
}, {
|
65592
65592
|
label: this._colorHexRepresentation(r)
|
65593
65593
|
}];
|
65594
|
-
if (this._isColorExpression(
|
65595
|
-
const
|
65596
|
-
if (!
|
65594
|
+
if (this._isColorExpression(l) || this._isRgbColor(l)) {
|
65595
|
+
const c = this._isColorExpression(l) ? this._colorNewRepresentation(r) : this._colorRgbRepresentation(r);
|
65596
|
+
if (!c)
|
65597
65597
|
return [];
|
65598
65598
|
const u = this._colorHexRepresentation(r);
|
65599
65599
|
return [{
|
65600
|
-
label:
|
65600
|
+
label: c,
|
65601
65601
|
textEdit: {
|
65602
|
-
text:
|
65602
|
+
text: c,
|
65603
65603
|
range: o
|
65604
65604
|
}
|
65605
65605
|
}, {
|
@@ -65636,12 +65636,12 @@ class Cx {
|
|
65636
65636
|
} : null;
|
65637
65637
|
}
|
65638
65638
|
_colorHexRepresentation(n) {
|
65639
|
-
const r = this._hexFromNumber(n.red), o = this._hexFromNumber(n.green),
|
65640
|
-
return `#${r}${o}${
|
65639
|
+
const r = this._hexFromNumber(n.red), o = this._hexFromNumber(n.green), l = this._hexFromNumber(n.blue), c = this._hexFromNumber(n.alpha);
|
65640
|
+
return `#${r}${o}${l}${n.alpha === 1 ? "" : c}`;
|
65641
65641
|
}
|
65642
65642
|
_colorRgbRepresentation(n) {
|
65643
|
-
const r = this._denormalize(n.red), o = this._denormalize(n.green),
|
65644
|
-
return
|
65643
|
+
const r = this._denormalize(n.red), o = this._denormalize(n.green), l = this._denormalize(n.blue), c = this._denormalizeAlpha(n.alpha), u = [r, o, l];
|
65644
|
+
return c > 0 && u.push(c), `color.rgb(${u.join(", ")})`;
|
65645
65645
|
}
|
65646
65646
|
_colorNewRepresentation(n) {
|
65647
65647
|
const r = {
|
@@ -65651,20 +65651,20 @@ class Cx {
|
|
65651
65651
|
return `color.new(${this._colorHexRepresentation(r)}, ${this._denormalizeAlpha(n.alpha)})`;
|
65652
65652
|
}
|
65653
65653
|
_hexToColor(n) {
|
65654
|
-
const r = (n = this._isHexToken(n) ? n.slice(1) : n).length === 3 || n.length === 4, o = r ? `${n.slice(0, 1)}${n.slice(0, 1)}` : n.slice(0, 2),
|
65654
|
+
const r = (n = this._isHexToken(n) ? n.slice(1) : n).length === 3 || n.length === 4, o = r ? `${n.slice(0, 1)}${n.slice(0, 1)}` : n.slice(0, 2), l = r ? `${n.slice(1, 2)}${n.slice(1, 2)}` : n.slice(2, 4), c = r ? `${n.slice(2, 3)}${n.slice(2, 3)}` : n.slice(4, 6), u = (r ? `${n.slice(3, 4)}${n.slice(3, 4)}` : n.slice(6, 8)) || "ff";
|
65655
65655
|
return {
|
65656
65656
|
red: this._normalize(parseInt(o, 16)),
|
65657
|
-
green: this._normalize(parseInt(
|
65658
|
-
blue: this._normalize(parseInt(
|
65657
|
+
green: this._normalize(parseInt(l, 16)),
|
65658
|
+
blue: this._normalize(parseInt(c, 16)),
|
65659
65659
|
alpha: this._normalize(parseInt(u, 16))
|
65660
65660
|
};
|
65661
65661
|
}
|
65662
65662
|
_rgbToColor(n) {
|
65663
|
-
const r = n.replace(/[^\d,]/g, "").split(","), o = this._normalize(Number(r[0])),
|
65664
|
-
return isNaN(o) || isNaN(
|
65663
|
+
const r = n.replace(/[^\d,]/g, "").split(","), o = this._normalize(Number(r[0])), l = this._normalize(Number(r[1])), c = this._normalize(Number(r[2])), u = this._normalizeAlpha(Number(r[3])) || 1;
|
65664
|
+
return isNaN(o) || isNaN(l) || isNaN(c) ? null : {
|
65665
65665
|
red: o,
|
65666
|
-
green:
|
65667
|
-
blue:
|
65666
|
+
green: l,
|
65667
|
+
blue: c,
|
65668
65668
|
alpha: u
|
65669
65669
|
};
|
65670
65670
|
}
|
@@ -66174,20 +66174,20 @@ class Nx {
|
|
66174
66174
|
this._editor = n;
|
66175
66175
|
}
|
66176
66176
|
async setInlayHints(n) {
|
66177
|
-
const { endLine: r, endColumn: o, name:
|
66178
|
-
if (this._importCompleteLibrary.has(
|
66179
|
-
const f = this._funcs.get(
|
66180
|
-
return ((f == null ? void 0 : f.name) !==
|
66177
|
+
const { endLine: r, endColumn: o, name: l, libraryId: c, libraryName: u } = n;
|
66178
|
+
if (this._importCompleteLibrary.has(c)) {
|
66179
|
+
const f = this._funcs.get(c);
|
66180
|
+
return ((f == null ? void 0 : f.name) !== l || !l && !this._inlayHints.has(c)) && (this._updateFuncNames(l || u, c), this._inlayHintsHandle(n)), this._importCompleteLibrary.get(c);
|
66181
66181
|
}
|
66182
|
-
return this._importCompleteLibrary.set(
|
66182
|
+
return this._importCompleteLibrary.set(c, op), this._inlayHints.set(c, {
|
66183
66183
|
label: "载入中...",
|
66184
66184
|
position: {
|
66185
66185
|
column: o,
|
66186
66186
|
lineNumber: r
|
66187
66187
|
},
|
66188
66188
|
paddingLeft: !0
|
66189
|
-
}), this.triggerInlayHints(), this._updateFuncNames(
|
66190
|
-
this._inlayHints.has(
|
66189
|
+
}), this.triggerInlayHints(), this._updateFuncNames(l || u, c), setTimeout(() => {
|
66190
|
+
this._inlayHints.has(c) && this._inlayHintsHandle(n);
|
66191
66191
|
}, 2e3), op;
|
66192
66192
|
}
|
66193
66193
|
deleteInlayHints(n) {
|
@@ -66207,13 +66207,13 @@ class Nx {
|
|
66207
66207
|
const o = this._importCompleteLibrary.get(r);
|
66208
66208
|
if (!o)
|
66209
66209
|
return;
|
66210
|
-
const
|
66211
|
-
this._funcs.set(r, { name: n, funcs:
|
66210
|
+
const l = o.functions.map((c) => `${n}.${c.name}`);
|
66211
|
+
this._funcs.set(r, { name: n, funcs: l }), this._updateMonarchTokens();
|
66212
66212
|
}
|
66213
66213
|
_setNoNameInlayHints(n) {
|
66214
|
-
const { endLine: r, endColumn: o, libraryId:
|
66215
|
-
this._inlayHints.set(
|
66216
|
-
label: `as ${
|
66214
|
+
const { endLine: r, endColumn: o, libraryId: l, libraryName: c } = n;
|
66215
|
+
this._inlayHints.set(l, {
|
66216
|
+
label: `as ${c}`,
|
66217
66217
|
position: {
|
66218
66218
|
column: o,
|
66219
66219
|
lineNumber: r
|
@@ -66226,7 +66226,7 @@ class Nx {
|
|
66226
66226
|
r ? this._inlayHints.delete(o) : this._setNoNameInlayHints(n), this.triggerInlayHints();
|
66227
66227
|
}
|
66228
66228
|
_updateMonarchTokens() {
|
66229
|
-
const n = [...this._funcs.values()].map((
|
66229
|
+
const n = [...this._funcs.values()].map((l) => l.funcs.join("|")), r = new RegExp("\\b(" + n.join("|") + ")(?=\\s*\\()"), o = [...ir.tokenizer.root];
|
66230
66230
|
o.splice(15, 0, [r, "meta.function-call"]), Xe.setMonarchTokensProvider(Ne, { ...ir, tokenizer: { ...ir.tokenizer, root: o } });
|
66231
66231
|
}
|
66232
66232
|
}
|
@@ -66238,19 +66238,19 @@ function Ex(a, n, r) {
|
|
66238
66238
|
startColumn: 1,
|
66239
66239
|
endLineNumber: n.lineNumber,
|
66240
66240
|
endColumn: n.column
|
66241
|
-
},
|
66242
|
-
if (/^\/\/\s*@/.test(
|
66241
|
+
}, l = a.getValueInRange(o);
|
66242
|
+
if (/^\/\/\s*@/.test(l))
|
66243
66243
|
return {
|
66244
66244
|
suggestions: Rt.annotationSuggestions
|
66245
66245
|
};
|
66246
66246
|
if (r.triggerCharacter === "@")
|
66247
66247
|
return { suggestions: [] };
|
66248
|
-
const
|
66249
|
-
if (!
|
66248
|
+
const c = l.match(/([\w.]+)$/) || [];
|
66249
|
+
if (!c.length)
|
66250
66250
|
return {
|
66251
66251
|
suggestions: []
|
66252
66252
|
};
|
66253
|
-
const u = (M =
|
66253
|
+
const u = (M = c[0]) == null ? void 0 : M.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/), f = u ? u[1] ? u[1] : u[2] ? u[2] : void 0 : void 0, x = a.getWordUntilPosition(n), g = or.parseCurrentInputFunc(l), h = {
|
66254
66254
|
startLineNumber: n.lineNumber,
|
66255
66255
|
endLineNumber: n.lineNumber,
|
66256
66256
|
startColumn: x.startColumn,
|
@@ -66258,7 +66258,7 @@ function Ex(a, n, r) {
|
|
66258
66258
|
}, T = a.getValueInRange({ ...h, startColumn: x.endColumn, endColumn: x.endColumn + 1 });
|
66259
66259
|
Rt.nextIsBracket = T === "(";
|
66260
66260
|
let P = lp(Rt.getSuggestions(f) || [], h);
|
66261
|
-
if (
|
66261
|
+
if (c[0] === "." && (P = []), g && !f && !/=\s*\w+$/.test(l)) {
|
66262
66262
|
const F = lp(Rt.getArgSuggestions(g.funcName) || [], h);
|
66263
66263
|
P = P.concat(F);
|
66264
66264
|
}
|
@@ -66286,12 +66286,12 @@ function Lx(a, n) {
|
|
66286
66286
|
]
|
66287
66287
|
};
|
66288
66288
|
if ((o = r == null ? void 0 : r.docValue) != null && o.length) {
|
66289
|
-
const
|
66290
|
-
if (
|
66289
|
+
const l = xx(r.docValue, r.index, r.isBuildIn);
|
66290
|
+
if (l)
|
66291
66291
|
return {
|
66292
66292
|
contents: [
|
66293
66293
|
{
|
66294
|
-
value:
|
66294
|
+
value: l
|
66295
66295
|
}
|
66296
66296
|
]
|
66297
66297
|
};
|
@@ -66307,11 +66307,11 @@ function Px(a, n) {
|
|
66307
66307
|
endLineNumber: n.lineNumber,
|
66308
66308
|
startColumn: 1,
|
66309
66309
|
endColumn: n.column
|
66310
|
-
}, o = a.getValueInRange(r),
|
66310
|
+
}, o = a.getValueInRange(r), l = a.findMatches(String(Ix), r, !0, !1, null, !0), c = a.findMatches(String(kx), r, !0, !1, null, !0), u = (T = l.pop()) == null ? void 0 : T.matches, f = (P = c.pop()) == null ? void 0 : P.matches;
|
66311
66311
|
let x = !1;
|
66312
|
-
|
66312
|
+
l.length % 2 === 0 ? u && u[0] === '"' && (x = !0) : u && !u[0] && (x = !0);
|
66313
66313
|
let g = !1;
|
66314
|
-
|
66314
|
+
c.length % 2 === 0 ? f && f[0] === "'" && (g = !0) : f && !f[0] && (g = !0);
|
66315
66315
|
const h = or.parseCurrentInputFuncAndArg(o, g, x);
|
66316
66316
|
if (h) {
|
66317
66317
|
const { funcName: M, args: F } = h, L = qx.getSignatureHelpValues(M, F);
|
@@ -66327,11 +66327,11 @@ function Px(a, n) {
|
|
66327
66327
|
function Mx(a) {
|
66328
66328
|
let n = a.findMatches(Ni.colorMatchesRegStr, !0, !0, !1, null, !0);
|
66329
66329
|
return n = n.filter((o) => {
|
66330
|
-
const
|
66330
|
+
const l = a.getValueInRange({
|
66331
66331
|
...o.range,
|
66332
66332
|
startColumn: 0
|
66333
66333
|
});
|
66334
|
-
return
|
66334
|
+
return l.indexOf("//") === -1 || l.indexOf("//") > o.range.endColumn;
|
66335
66335
|
}), Ni.getDocumentColors(n);
|
66336
66336
|
}
|
66337
66337
|
function Ox(a, n) {
|
@@ -66341,11 +66341,11 @@ function Fx(a, n) {
|
|
66341
66341
|
const r = a.getModel(), o = or.parseLineContentFuncVar(n.startColumn + 1, n.startLineNumber, r);
|
66342
66342
|
if (!o || o.isBuildIn || !o.docValue || !o.docValue[0].pos)
|
66343
66343
|
return o != null && o.isBuildIn ? o : void 0;
|
66344
|
-
const { lineNumber:
|
66345
|
-
startLineNumber:
|
66346
|
-
endLineNumber:
|
66347
|
-
startColumn:
|
66348
|
-
endColumn:
|
66344
|
+
const { lineNumber: l, column: c } = o.docValue[0].pos, u = {
|
66345
|
+
startLineNumber: l,
|
66346
|
+
endLineNumber: l,
|
66347
|
+
startColumn: c,
|
66348
|
+
endColumn: c
|
66349
66349
|
};
|
66350
66350
|
a.revealRangeInCenterIfOutsideViewport(u), a.setSelection(u);
|
66351
66351
|
}
|
@@ -66396,12 +66396,12 @@ var Ge;
|
|
66396
66396
|
a.added = "added", a.removed = "removed", a.modified = "modified";
|
66397
66397
|
})(Ge || (Ge = {}));
|
66398
66398
|
const Kx = (a, n) => {
|
66399
|
-
const { close: r, retracement: o } = a, [
|
66399
|
+
const { close: r, retracement: o } = a, [l, c] = it("modified");
|
66400
66400
|
return xp(n, () => ({
|
66401
66401
|
updateType(u) {
|
66402
|
-
|
66402
|
+
c(u);
|
66403
66403
|
}
|
66404
|
-
})), S.jsxs("div", { className: `content-popup content-${
|
66404
|
+
})), S.jsxs("div", { className: `content-popup content-${l}-popup`, children: [S.jsx("div", { className: `triangle-popup triangle-${l}-popup` }), S.jsxs("div", { className: `header-popup header-${l}-popup`, children: [S.jsx("div", { className: "title-popup", children: "Local working changes" }), S.jsx("div", { className: "actions-popup", children: S.jsx("div", { onClick: r, "data-role": "button", className: "button-popup", "data-name": "button-close-diff", children: S.jsx("span", { className: "icon-popup", role: "img", children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12", width: "12", height: "12", children: S.jsx("path", { stroke: "currentColor", strokeWidth: "1.2", d: "m1.5 1.5 9 9m0-9-9 9" }) }) }) }) })] }), S.jsx("div", { id: "diffEditorContainer", style: { height: "100%" } })] });
|
66405
66405
|
}, Ux = bp(Kx);
|
66406
66406
|
class $x {
|
66407
66407
|
constructor(n, r, o = !0) {
|
@@ -66425,7 +66425,7 @@ class $x {
|
|
66425
66425
|
configurable: !0,
|
66426
66426
|
writable: !0,
|
66427
66427
|
value: void 0
|
66428
|
-
}), this._id = n, this._domNode = document.createElement("div"), this._domNode.style.display = "none", this._domNode.style.width = o ? "calc(100% - 134px)" : "calc(100% - 14px)", this._domNode.style.height = "200px", r == null || r.onDidScrollChange(this.scrollChangeHandler.bind(this)), Kr.createRoot(this._domNode).render(S.jsx(Ux, { ref: (
|
66428
|
+
}), this._id = n, this._domNode = document.createElement("div"), this._domNode.style.display = "none", this._domNode.style.width = o ? "calc(100% - 134px)" : "calc(100% - 14px)", this._domNode.style.height = "200px", r == null || r.onDidScrollChange(this.scrollChangeHandler.bind(this)), Kr.createRoot(this._domNode).render(S.jsx(Ux, { ref: (l) => this._content = l, close: () => this._close(), retracement: this._retracement })), this._top = 0;
|
66429
66429
|
}
|
66430
66430
|
_close() {
|
66431
66431
|
this._domNode.style.display = "none";
|
@@ -66442,8 +66442,8 @@ class $x {
|
|
66442
66442
|
return null;
|
66443
66443
|
}
|
66444
66444
|
show(n, r, o) {
|
66445
|
-
var
|
66446
|
-
this._top = r, (
|
66445
|
+
var l;
|
66446
|
+
this._top = r, (l = this._content) == null || l.updateType(o), this._domNode.style.top = `${n}px`, this._domNode.style.display = "block";
|
66447
66447
|
}
|
66448
66448
|
hide() {
|
66449
66449
|
this._domNode.style.display = "none";
|
@@ -66457,18 +66457,18 @@ function hs() {
|
|
66457
66457
|
}
|
66458
66458
|
hs.prototype = {
|
66459
66459
|
diff: function(n, r) {
|
66460
|
-
var o,
|
66461
|
-
typeof
|
66460
|
+
var o, l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = l.callback;
|
66461
|
+
typeof l == "function" && (c = l, l = {}), this.options = l;
|
66462
66462
|
var u = this;
|
66463
66463
|
function f(A) {
|
66464
|
-
return
|
66465
|
-
|
66464
|
+
return c ? (setTimeout(function() {
|
66465
|
+
c(void 0, A);
|
66466
66466
|
}, 0), !0) : A;
|
66467
66467
|
}
|
66468
66468
|
n = this.castInput(n), r = this.castInput(r), n = this.removeEmpty(this.tokenize(n)), r = this.removeEmpty(this.tokenize(r));
|
66469
66469
|
var x = r.length, g = n.length, h = 1, T = x + g;
|
66470
|
-
|
66471
|
-
var P = (o =
|
66470
|
+
l.maxEditLength && (T = Math.min(T, l.maxEditLength));
|
66471
|
+
var P = (o = l.timeout) !== null && o !== void 0 ? o : 1 / 0, M = Date.now() + P, F = [{
|
66472
66472
|
oldPos: -1,
|
66473
66473
|
lastComponent: void 0
|
66474
66474
|
}], L = this.extractCommon(F[0], r, n, 0);
|
@@ -66498,11 +66498,11 @@ hs.prototype = {
|
|
66498
66498
|
}
|
66499
66499
|
h++;
|
66500
66500
|
}
|
66501
|
-
if (
|
66501
|
+
if (c)
|
66502
66502
|
(function A() {
|
66503
66503
|
setTimeout(function() {
|
66504
66504
|
if (h > T || Date.now() > M)
|
66505
|
-
return
|
66505
|
+
return c();
|
66506
66506
|
j() || A();
|
66507
66507
|
}, 0);
|
66508
66508
|
})();
|
@@ -66513,28 +66513,28 @@ hs.prototype = {
|
|
66513
66513
|
return O;
|
66514
66514
|
}
|
66515
66515
|
},
|
66516
|
-
addToPath: function(n, r, o,
|
66517
|
-
var
|
66518
|
-
return
|
66519
|
-
oldPos: n.oldPos +
|
66516
|
+
addToPath: function(n, r, o, l) {
|
66517
|
+
var c = n.lastComponent;
|
66518
|
+
return c && c.added === r && c.removed === o ? {
|
66519
|
+
oldPos: n.oldPos + l,
|
66520
66520
|
lastComponent: {
|
66521
|
-
count:
|
66521
|
+
count: c.count + 1,
|
66522
66522
|
added: r,
|
66523
66523
|
removed: o,
|
66524
|
-
previousComponent:
|
66524
|
+
previousComponent: c.previousComponent
|
66525
66525
|
}
|
66526
66526
|
} : {
|
66527
|
-
oldPos: n.oldPos +
|
66527
|
+
oldPos: n.oldPos + l,
|
66528
66528
|
lastComponent: {
|
66529
66529
|
count: 1,
|
66530
66530
|
added: r,
|
66531
66531
|
removed: o,
|
66532
|
-
previousComponent:
|
66532
|
+
previousComponent: c
|
66533
66533
|
}
|
66534
66534
|
};
|
66535
66535
|
},
|
66536
|
-
extractCommon: function(n, r, o,
|
66537
|
-
for (var
|
66536
|
+
extractCommon: function(n, r, o, l) {
|
66537
|
+
for (var c = r.length, u = o.length, f = n.oldPos, x = f - l, g = 0; x + 1 < c && f + 1 < u && this.equals(r[x + 1], o[f + 1]); )
|
66538
66538
|
x++, f++, g++;
|
66539
66539
|
return g && (n.lastComponent = {
|
66540
66540
|
count: g,
|
@@ -66559,19 +66559,19 @@ hs.prototype = {
|
|
66559
66559
|
return n.join("");
|
66560
66560
|
}
|
66561
66561
|
};
|
66562
|
-
function Hx(a, n, r, o,
|
66563
|
-
for (var
|
66564
|
-
|
66565
|
-
|
66566
|
-
for (var f = 0, x =
|
66567
|
-
var T =
|
66562
|
+
function Hx(a, n, r, o, l) {
|
66563
|
+
for (var c = [], u; n; )
|
66564
|
+
c.push(n), u = n.previousComponent, delete n.previousComponent, n = u;
|
66565
|
+
c.reverse();
|
66566
|
+
for (var f = 0, x = c.length, g = 0, h = 0; f < x; f++) {
|
66567
|
+
var T = c[f];
|
66568
66568
|
if (T.removed) {
|
66569
|
-
if (T.value = a.join(o.slice(h, h + T.count)), h += T.count, f &&
|
66570
|
-
var M =
|
66571
|
-
|
66569
|
+
if (T.value = a.join(o.slice(h, h + T.count)), h += T.count, f && c[f - 1].added) {
|
66570
|
+
var M = c[f - 1];
|
66571
|
+
c[f - 1] = c[f], c[f] = M;
|
66572
66572
|
}
|
66573
66573
|
} else {
|
66574
|
-
if (!T.added &&
|
66574
|
+
if (!T.added && l) {
|
66575
66575
|
var P = r.slice(g, g + T.count);
|
66576
66576
|
P = P.map(function(L, W) {
|
66577
66577
|
var Q = o[h + W];
|
@@ -66582,8 +66582,8 @@ function Hx(a, n, r, o, c) {
|
|
66582
66582
|
g += T.count, T.added || (h += T.count);
|
66583
66583
|
}
|
66584
66584
|
}
|
66585
|
-
var F =
|
66586
|
-
return x > 1 && typeof F.value == "string" && (F.added || F.removed) && a.equals("", F.value) && (
|
66585
|
+
var F = c[x - 1];
|
66586
|
+
return x > 1 && typeof F.value == "string" && (F.added || F.removed) && a.equals("", F.value) && (c[x - 2].value += F.value, c.pop()), c;
|
66587
66587
|
}
|
66588
66588
|
var cp = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, pp = /\S/, Cp = new hs();
|
66589
66589
|
Cp.equals = function(a, n) {
|
@@ -66601,8 +66601,8 @@ $i.tokenize = function(a) {
|
|
66601
66601
|
var n = [], r = a.split(/(\n|\r\n)/);
|
66602
66602
|
r[r.length - 1] || r.pop();
|
66603
66603
|
for (var o = 0; o < r.length; o++) {
|
66604
|
-
var
|
66605
|
-
o % 2 && !this.options.newlineIsToken ? n[n.length - 1] +=
|
66604
|
+
var l = r[o];
|
66605
|
+
o % 2 && !this.options.newlineIsToken ? n[n.length - 1] += l : (this.options.ignoreWhitespace && (l = l.trim()), n.push(l));
|
66606
66606
|
}
|
66607
66607
|
return n;
|
66608
66608
|
};
|
@@ -66629,24 +66629,24 @@ var Xx = Object.prototype.toString, Wr = new hs();
|
|
66629
66629
|
Wr.useLongestToken = !0;
|
66630
66630
|
Wr.tokenize = $i.tokenize;
|
66631
66631
|
Wr.castInput = function(a) {
|
66632
|
-
var n = this.options, r = n.undefinedReplacement, o = n.stringifyReplacer,
|
66632
|
+
var n = this.options, r = n.undefinedReplacement, o = n.stringifyReplacer, l = o === void 0 ? function(c, u) {
|
66633
66633
|
return typeof u > "u" ? r : u;
|
66634
66634
|
} : o;
|
66635
|
-
return typeof a == "string" ? a : JSON.stringify(Ei(a, null, null,
|
66635
|
+
return typeof a == "string" ? a : JSON.stringify(Ei(a, null, null, l), l, " ");
|
66636
66636
|
};
|
66637
66637
|
Wr.equals = function(a, n) {
|
66638
66638
|
return hs.prototype.equals.call(Wr, a.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
|
66639
66639
|
};
|
66640
|
-
function Ei(a, n, r, o,
|
66641
|
-
n = n || [], r = r || [], o && (a = o(
|
66642
|
-
var
|
66643
|
-
for (
|
66644
|
-
if (n[
|
66645
|
-
return r[
|
66640
|
+
function Ei(a, n, r, o, l) {
|
66641
|
+
n = n || [], r = r || [], o && (a = o(l, a));
|
66642
|
+
var c;
|
66643
|
+
for (c = 0; c < n.length; c += 1)
|
66644
|
+
if (n[c] === a)
|
66645
|
+
return r[c];
|
66646
66646
|
var u;
|
66647
66647
|
if (Xx.call(a) === "[object Array]") {
|
66648
|
-
for (n.push(a), u = new Array(a.length), r.push(u),
|
66649
|
-
u[
|
66648
|
+
for (n.push(a), u = new Array(a.length), r.push(u), c = 0; c < a.length; c += 1)
|
66649
|
+
u[c] = Ei(a[c], n, r, o, l);
|
66650
66650
|
return n.pop(), r.pop(), u;
|
66651
66651
|
}
|
66652
66652
|
if (a && a.toJSON && (a = a.toJSON()), Ya(a) === "object" && a !== null) {
|
@@ -66654,8 +66654,8 @@ function Ei(a, n, r, o, c) {
|
|
66654
66654
|
var f = [], x;
|
66655
66655
|
for (x in a)
|
66656
66656
|
a.hasOwnProperty(x) && f.push(x);
|
66657
|
-
for (f.sort(),
|
66658
|
-
x = f[
|
66657
|
+
for (f.sort(), c = 0; c < f.length; c += 1)
|
66658
|
+
x = f[c], u[x] = Ei(a[x], n, r, o, x);
|
66659
66659
|
n.pop(), r.pop();
|
66660
66660
|
} else
|
66661
66661
|
u = a;
|
@@ -66725,23 +66725,23 @@ class Yx {
|
|
66725
66725
|
(o = this._editor.getModel()) == null || o.deltaDecorations(this._oldDecorations, []), this._oldDecorations = [];
|
66726
66726
|
}
|
66727
66727
|
dispose() {
|
66728
|
-
var n, r, o,
|
66729
|
-
this._diffPopupWidget && (this._diffPopupWidget.hide(), this._editor.removeOverlayWidget(this._diffPopupWidget)), (n = this._didChangeListener) == null || n.dispose(), (r = this._onMouseDownListener) == null || r.dispose(), (o = this._editor.getModel()) == null || o.deltaDecorations(this._oldDecorations, []), this._oldDecorations = [], (
|
66728
|
+
var n, r, o, l;
|
66729
|
+
this._diffPopupWidget && (this._diffPopupWidget.hide(), this._editor.removeOverlayWidget(this._diffPopupWidget)), (n = this._didChangeListener) == null || n.dispose(), (r = this._onMouseDownListener) == null || r.dispose(), (o = this._editor.getModel()) == null || o.deltaDecorations(this._oldDecorations, []), this._oldDecorations = [], (l = this._diffEditor) == null || l.dispose(), this._diffEditor = void 0;
|
66730
66730
|
}
|
66731
66731
|
_changesHandle(n) {
|
66732
66732
|
let r = 0, o;
|
66733
|
-
const
|
66734
|
-
let
|
66733
|
+
const l = [];
|
66734
|
+
let c = 0;
|
66735
66735
|
for (const u of n) {
|
66736
66736
|
const { added: f, removed: x, count: g = 1, value: h } = u;
|
66737
|
-
f ? o && o.removed ? (r = this._changeHandle(
|
66737
|
+
f ? o && o.removed ? (r = this._changeHandle(l, r, c, g, Ge.modified), c = 0, o = void 0) : (o && o.added && (r = this._changeHandle(l, r, c, o.count || 1, Ge.added), c = 0), o = u) : x ? o && o.added ? (r = this._changeHandle(l, r, c, o.count || 1, Ge.modified), c = 0, o = void 0) : (o && o.removed && this._addDecorationList(l, r, Ge.removed), o = u) : /^\n+$/.test(h) ? o && (o.added || o.removed) ? c = g : r += g : (o && o.added ? (r = this._changeHandle(l, r, c, o.count || 1, Ge.added), c = 0, o = void 0) : o && o.removed && (this._addDecorationList(l, r, Ge.removed), o = void 0), r += g);
|
66738
66738
|
}
|
66739
|
-
return o && o.added ? r = this._changeHandle(
|
66739
|
+
return o && o.added ? r = this._changeHandle(l, r, c, o.count || 1, Ge.added) : o && o.removed && this._addDecorationList(l, r, Ge.removed), l;
|
66740
66740
|
}
|
66741
|
-
_changeHandle(n, r, o,
|
66742
|
-
for (let u = 1; u <=
|
66743
|
-
this._addDecorationList(n, r + u,
|
66744
|
-
return r +=
|
66741
|
+
_changeHandle(n, r, o, l, c) {
|
66742
|
+
for (let u = 1; u <= l; u++)
|
66743
|
+
this._addDecorationList(n, r + u, c);
|
66744
|
+
return r += l + o, r;
|
66745
66745
|
}
|
66746
66746
|
_addDecorationList(n, r, o) {
|
66747
66747
|
n.push({
|
@@ -66753,8 +66753,8 @@ class Yx {
|
|
66753
66753
|
});
|
66754
66754
|
}
|
66755
66755
|
_changeEvent() {
|
66756
|
-
var
|
66757
|
-
const n = jx(this._originalModel.getValue(), ((
|
66756
|
+
var l, c;
|
66757
|
+
const n = jx(this._originalModel.getValue(), ((l = this._editor.getModel()) == null ? void 0 : l.getValue()) || ""), r = this._changesHandle(n), o = ((c = this._editor.getModel()) == null ? void 0 : c.deltaDecorations(this._oldDecorations, r)) || [];
|
66758
66758
|
this._oldDecorations = o;
|
66759
66759
|
}
|
66760
66760
|
_eventListening() {
|
@@ -66763,9 +66763,9 @@ class Yx {
|
|
66763
66763
|
}
|
66764
66764
|
_onMouseDownHandle(n) {
|
66765
66765
|
var u, f, x, g, h, T;
|
66766
|
-
const r = (u = n.target.element) == null ? void 0 : u.classList, o = r == null ? void 0 : r.contains(`line-${Ge.added}`),
|
66767
|
-
if (o ||
|
66768
|
-
const P = ((x = (f = n == null ? void 0 : n.target) == null ? void 0 : f.position) == null ? void 0 : x.lineNumber) || 0, M = ((g = this._editor) == null ? void 0 : g.getTopForLineNumber(P + 1)) || 0, F = ((h = this._editor) == null ? void 0 : h.getScrollTop()) || 0, L = o ? Ge.added :
|
66766
|
+
const r = (u = n.target.element) == null ? void 0 : u.classList, o = r == null ? void 0 : r.contains(`line-${Ge.added}`), l = r == null ? void 0 : r.contains(`line-${Ge.modified}`), c = r == null ? void 0 : r.contains(`line-${Ge.removed}`);
|
66767
|
+
if (o || l || c) {
|
66768
|
+
const P = ((x = (f = n == null ? void 0 : n.target) == null ? void 0 : f.position) == null ? void 0 : x.lineNumber) || 0, M = ((g = this._editor) == null ? void 0 : g.getTopForLineNumber(P + 1)) || 0, F = ((h = this._editor) == null ? void 0 : h.getScrollTop()) || 0, L = o ? Ge.added : l ? Ge.modified : Ge.removed;
|
66769
66769
|
(T = this._diffPopupWidget) == null || T.show(M - F, M, L), this._diffEditor || (this._diffEditor = this._createDiffEditor()), this._diffEditor.setModel({
|
66770
66770
|
original: this._originalModel,
|
66771
66771
|
modified: this._editor.getModel()
|
@@ -66841,8 +66841,8 @@ class Vx {
|
|
66841
66841
|
this._editor.setValue(n);
|
66842
66842
|
}
|
66843
66843
|
setPosition(n) {
|
66844
|
-
var r, o,
|
66845
|
-
(r = this._editor) == null || r.setPosition(n), (o = this._editor) == null || o.revealPositionInCenter(n), (
|
66844
|
+
var r, o, l;
|
66845
|
+
(r = this._editor) == null || r.setPosition(n), (o = this._editor) == null || o.revealPositionInCenter(n), (l = this._editor) == null || l.focus();
|
66846
66846
|
}
|
66847
66847
|
setOriginalScript(n) {
|
66848
66848
|
var r;
|
@@ -66856,9 +66856,9 @@ class Vx {
|
|
66856
66856
|
lineCount: r
|
66857
66857
|
};
|
66858
66858
|
}
|
66859
|
-
setEditorLayout(n) {
|
66860
|
-
var
|
66861
|
-
(
|
66859
|
+
setEditorLayout(n, r) {
|
66860
|
+
var o, l;
|
66861
|
+
(l = this._editor) == null || l.layout({ height: n, width: r || ((o = this._editor) == null ? void 0 : o.getContainerDomNode().clientWidth) });
|
66862
66862
|
}
|
66863
66863
|
_init() {
|
66864
66864
|
this._register(), this._setOptions(), this._addCommands(), this._addActions(), this._setCursorPosition();
|
@@ -66884,9 +66884,9 @@ class Vx {
|
|
66884
66884
|
provideDocumentColors: Mx
|
66885
66885
|
}), this._monaco.editor.registerEditorOpener({
|
66886
66886
|
openCodeEditor: (n, r, o) => {
|
66887
|
-
const
|
66888
|
-
if (
|
66889
|
-
const { index:
|
66887
|
+
const l = Fx(n, o);
|
66888
|
+
if (l) {
|
66889
|
+
const { index: c, docValue: u } = l, { title: f, name: x } = u[c];
|
66890
66890
|
let g = "";
|
66891
66891
|
switch (f) {
|
66892
66892
|
case we.keywords:
|
@@ -66905,7 +66905,7 @@ class Vx {
|
|
66905
66905
|
g = "const";
|
66906
66906
|
break;
|
66907
66907
|
}
|
66908
|
-
this._onLinkOpen && this._onLinkOpen(`${g}_${x}`,
|
66908
|
+
this._onLinkOpen && this._onLinkOpen(`${g}_${x}`, c);
|
66909
66909
|
}
|
66910
66910
|
return !0;
|
66911
66911
|
}
|
@@ -66926,8 +66926,8 @@ class Vx {
|
|
66926
66926
|
run: (n, r) => {
|
66927
66927
|
var o;
|
66928
66928
|
if (Rt.nextIsBracket) {
|
66929
|
-
const
|
66930
|
-
|
66929
|
+
const l = this._editor.getPosition();
|
66930
|
+
l && this._editor.setPosition(Object.assign(l, { column: l.column + 1 }));
|
66931
66931
|
}
|
66932
66932
|
(o = this._editor.getAction(r)) == null || o.run();
|
66933
66933
|
}
|
@@ -67034,14 +67034,14 @@ function th(a, n) {
|
|
67034
67034
|
return !1;
|
67035
67035
|
}
|
67036
67036
|
function Sp(a, n = globalThis, r = ["*"]) {
|
67037
|
-
n.addEventListener("message", function o(
|
67038
|
-
if (!
|
67037
|
+
n.addEventListener("message", function o(l) {
|
67038
|
+
if (!l || !l.data)
|
67039
67039
|
return;
|
67040
|
-
if (!th(r,
|
67041
|
-
console.warn(`Invalid origin '${
|
67040
|
+
if (!th(r, l.origin)) {
|
67041
|
+
console.warn(`Invalid origin '${l.origin}' for comlink proxy`);
|
67042
67042
|
return;
|
67043
67043
|
}
|
67044
|
-
const { id:
|
67044
|
+
const { id: c, type: u, path: f } = Object.assign({ path: [] }, l.data), x = (l.data.argumentList || []).map(Ps);
|
67045
67045
|
let g;
|
67046
67046
|
try {
|
67047
67047
|
const h = f.slice(0, -1).reduce((P, M) => P[M], a), T = f.reduce((P, M) => P[M], a);
|
@@ -67050,7 +67050,7 @@ function Sp(a, n = globalThis, r = ["*"]) {
|
|
67050
67050
|
g = T;
|
67051
67051
|
break;
|
67052
67052
|
case "SET":
|
67053
|
-
h[f.slice(-1)[0]] = Ps(
|
67053
|
+
h[f.slice(-1)[0]] = Ps(l.data.value), g = !0;
|
67054
67054
|
break;
|
67055
67055
|
case "APPLY":
|
67056
67056
|
g = T.apply(h, x);
|
@@ -67078,13 +67078,13 @@ function Sp(a, n = globalThis, r = ["*"]) {
|
|
67078
67078
|
}
|
67079
67079
|
Promise.resolve(g).catch((h) => ({ value: h, [Va]: 0 })).then((h) => {
|
67080
67080
|
const [T, P] = sn(h);
|
67081
|
-
n.postMessage(Object.assign(Object.assign({}, T), { id:
|
67081
|
+
n.postMessage(Object.assign(Object.assign({}, T), { id: c }), P), u === "RELEASE" && (n.removeEventListener("message", o), Lp(n), qi in a && typeof a[qi] == "function" && a[qi]());
|
67082
67082
|
}).catch((h) => {
|
67083
67083
|
const [T, P] = sn({
|
67084
67084
|
value: new TypeError("Unserializable return value"),
|
67085
67085
|
[Va]: 0
|
67086
67086
|
});
|
67087
|
-
n.postMessage(Object.assign(Object.assign({}, T), { id:
|
67087
|
+
n.postMessage(Object.assign(Object.assign({}, T), { id: c }), P);
|
67088
67088
|
});
|
67089
67089
|
}), n.start && n.start();
|
67090
67090
|
}
|
@@ -67122,15 +67122,15 @@ function ah(a) {
|
|
67122
67122
|
function Li(a, n = [], r = function() {
|
67123
67123
|
}) {
|
67124
67124
|
let o = !1;
|
67125
|
-
const
|
67126
|
-
get(
|
67125
|
+
const l = new Proxy(r, {
|
67126
|
+
get(c, u) {
|
67127
67127
|
if (Ga(o), u === Zx)
|
67128
67128
|
return () => {
|
67129
|
-
ah(
|
67129
|
+
ah(l), Pp(a), o = !0;
|
67130
67130
|
};
|
67131
67131
|
if (u === "then") {
|
67132
67132
|
if (n.length === 0)
|
67133
|
-
return { then: () =>
|
67133
|
+
return { then: () => l };
|
67134
67134
|
const f = ar(a, {
|
67135
67135
|
type: "GET",
|
67136
67136
|
path: n.map((x) => x.toString())
|
@@ -67139,7 +67139,7 @@ function Li(a, n = [], r = function() {
|
|
67139
67139
|
}
|
67140
67140
|
return Li(a, [...n, u]);
|
67141
67141
|
},
|
67142
|
-
set(
|
67142
|
+
set(c, u, f) {
|
67143
67143
|
Ga(o);
|
67144
67144
|
const [x, g] = sn(f);
|
67145
67145
|
return ar(a, {
|
@@ -67148,7 +67148,7 @@ function Li(a, n = [], r = function() {
|
|
67148
67148
|
value: x
|
67149
67149
|
}, g).then(Ps);
|
67150
67150
|
},
|
67151
|
-
apply(
|
67151
|
+
apply(c, u, f) {
|
67152
67152
|
Ga(o);
|
67153
67153
|
const x = n[n.length - 1];
|
67154
67154
|
if (x === Qx)
|
@@ -67164,7 +67164,7 @@ function Li(a, n = [], r = function() {
|
|
67164
67164
|
argumentList: g
|
67165
67165
|
}, h).then(Ps);
|
67166
67166
|
},
|
67167
|
-
construct(
|
67167
|
+
construct(c, u) {
|
67168
67168
|
Ga(o);
|
67169
67169
|
const [f, x] = dp(u);
|
67170
67170
|
return ar(a, {
|
@@ -67174,7 +67174,7 @@ function Li(a, n = [], r = function() {
|
|
67174
67174
|
}, x).then(Ps);
|
67175
67175
|
}
|
67176
67176
|
});
|
67177
|
-
return rh(
|
67177
|
+
return rh(l, a), l;
|
67178
67178
|
}
|
67179
67179
|
function nh(a) {
|
67180
67180
|
return Array.prototype.concat.apply([], a);
|
@@ -67193,14 +67193,14 @@ function ji(a) {
|
|
67193
67193
|
function sn(a) {
|
67194
67194
|
for (const [n, r] of Ep)
|
67195
67195
|
if (r.canHandle(a)) {
|
67196
|
-
const [o,
|
67196
|
+
const [o, l] = r.serialize(a);
|
67197
67197
|
return [
|
67198
67198
|
{
|
67199
67199
|
type: "HANDLER",
|
67200
67200
|
name: n,
|
67201
67201
|
value: o
|
67202
67202
|
},
|
67203
|
-
|
67203
|
+
l
|
67204
67204
|
];
|
67205
67205
|
}
|
67206
67206
|
return [
|
@@ -67221,16 +67221,16 @@ function Ps(a) {
|
|
67221
67221
|
}
|
67222
67222
|
function ar(a, n, r) {
|
67223
67223
|
return new Promise((o) => {
|
67224
|
-
const
|
67225
|
-
a.addEventListener("message", function
|
67226
|
-
!u.data || !u.data.id || u.data.id !==
|
67227
|
-
}), a.start && a.start(), a.postMessage(Object.assign({ id:
|
67224
|
+
const l = oh();
|
67225
|
+
a.addEventListener("message", function c(u) {
|
67226
|
+
!u.data || !u.data.id || u.data.id !== l || (a.removeEventListener("message", c), o(u.data));
|
67227
|
+
}), a.start && a.start(), a.postMessage(Object.assign({ id: l }, n), r);
|
67228
67228
|
});
|
67229
67229
|
}
|
67230
67230
|
function oh() {
|
67231
67231
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
67232
67232
|
}
|
67233
|
-
const Op = new Worker(new URL("" + new URL("assets/scriptsRunWorker-
|
67233
|
+
const Op = new Worker(new URL("" + new URL("assets/scriptsRunWorker-B3nnXi90.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
|
67234
67234
|
Op.onerror = (a) => {
|
67235
67235
|
console.error(a);
|
67236
67236
|
};
|
@@ -67239,12 +67239,12 @@ async function Fp(a) {
|
|
67239
67239
|
}
|
67240
67240
|
const Rp = Hi(Op), Bp = Hi(new Worker(new URL("" + new URL("assets/parserTccWorker-Bo1vM4qv.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
|
67241
67241
|
async function lh(a, n = !1) {
|
67242
|
-
const { functions: r, types: o, constants:
|
67243
|
-
return await Bp.parseTcc(a, n, ji(Fp), { functions: Object.fromEntries(r), methods: Object.fromEntries(u), types: Object.fromEntries(o), constants: Object.fromEntries(
|
67242
|
+
const { functions: r, types: o, constants: l, variables: c, methods: u } = gt;
|
67243
|
+
return await Bp.parseTcc(a, n, ji(Fp), { functions: Object.fromEntries(r), methods: Object.fromEntries(u), types: Object.fromEntries(o), constants: Object.fromEntries(l), variables: Object.fromEntries(c) });
|
67244
67244
|
}
|
67245
67245
|
async function Oh(a, n) {
|
67246
|
-
const { functions: r, types: o, constants:
|
67247
|
-
return await Bp.parseLibraryCode(a, n, ji(Fp), { functions: Object.fromEntries(r), methods: Object.fromEntries(u), types: Object.fromEntries(o), constants: Object.fromEntries(
|
67246
|
+
const { functions: r, types: o, constants: l, variables: c, methods: u } = gt;
|
67247
|
+
return await Bp.parseLibraryCode(a, n, ji(Fp), { functions: Object.fromEntries(r), methods: Object.fromEntries(u), types: Object.fromEntries(o), constants: Object.fromEntries(l), variables: Object.fromEntries(c) });
|
67248
67248
|
}
|
67249
67249
|
async function ch(a, n, r = !0) {
|
67250
67250
|
return await Rp.runScript(a, n, r);
|
@@ -67268,7 +67268,7 @@ self.MonacoEnvironment = {
|
|
67268
67268
|
Ri.config({ monaco: Jg });
|
67269
67269
|
let mp = {};
|
67270
67270
|
const dh = (a, n) => {
|
67271
|
-
const { height: r, width: o, theme:
|
67271
|
+
const { height: r, width: o, theme: l, options: c, hasDiff: u, readOnly: f, defaultValue: x, onChange: g, onLinkOpen: h, onDeclareConfigChange: T, onCursorPositionChange: P, onActionTrigger: M, onEditorDidMount: F } = a, L = Pe(null);
|
67272
67272
|
xp(n, () => ({
|
67273
67273
|
setOriginalScript(A) {
|
67274
67274
|
var I;
|
@@ -67359,7 +67359,7 @@ const dh = (a, n) => {
|
|
67359
67359
|
}
|
67360
67360
|
return S.jsx(dx, { height: r, width: o || "100%", defaultLanguage: Ne, defaultValue: x || `indicator("我的脚本")
|
67361
67361
|
plot(close)
|
67362
|
-
`, theme:
|
67362
|
+
`, theme: l || "vs-dark", className: `tvue-script ${l || "vs-dark"}`, options: {
|
67363
67363
|
colorDecorators: !0,
|
67364
67364
|
useShadowDOM: !1,
|
67365
67365
|
matchOnWordStartOnly: !0,
|
@@ -67372,15 +67372,15 @@ plot(close)
|
|
67372
67372
|
readOnlyMessage: {
|
67373
67373
|
value: "该脚本是只读的。它无法被编辑。"
|
67374
67374
|
},
|
67375
|
-
...
|
67375
|
+
...c
|
67376
67376
|
}, onMount: W, onChange: O });
|
67377
67377
|
}, Rh = bp(dh), Bh = (a) => {
|
67378
|
-
const { theme: n, modified: r, original: o, height:
|
67378
|
+
const { theme: n, modified: r, original: o, height: l, width: c, renderSideBySide: u = !0 } = a, f = $r((x, g) => {
|
67379
67379
|
g.languages.register({
|
67380
67380
|
id: Ne
|
67381
67381
|
}), g.editor.defineTheme("vs-dark", Ui), g.editor.defineTheme("vs", Ki), g.languages.setMonarchTokensProvider(Ne, ir), g.languages.setLanguageConfiguration(Ne, Bi);
|
67382
67382
|
}, []);
|
67383
|
-
return S.jsx(ix, { height:
|
67383
|
+
return S.jsx(ix, { height: l || "90vh", width: c || "100%", theme: n || "vs-dark", options: {
|
67384
67384
|
readOnly: !0,
|
67385
67385
|
renderSideBySide: u,
|
67386
67386
|
scrollBeyondLastLine: !1
|
@@ -67407,8 +67407,8 @@ var nn = {}, mh = function() {
|
|
67407
67407
|
break;
|
67408
67408
|
}
|
67409
67409
|
return a.removeAllRanges(), function() {
|
67410
|
-
a.type === "Caret" && a.removeAllRanges(), a.rangeCount || r.forEach(function(
|
67411
|
-
a.addRange(
|
67410
|
+
a.type === "Caret" && a.removeAllRanges(), a.rangeCount || r.forEach(function(l) {
|
67411
|
+
a.addRange(l);
|
67412
67412
|
}), n && n.focus();
|
67413
67413
|
};
|
67414
67414
|
}, uh = mh, yp = {
|
@@ -67421,10 +67421,10 @@ function _h(a) {
|
|
67421
67421
|
return a.replace(/#{\s*key\s*}/g, n);
|
67422
67422
|
}
|
67423
67423
|
function fh(a, n) {
|
67424
|
-
var r, o,
|
67424
|
+
var r, o, l, c, u, f, x = !1;
|
67425
67425
|
n || (n = {}), r = n.debug || !1;
|
67426
67426
|
try {
|
67427
|
-
|
67427
|
+
l = uh(), c = document.createRange(), u = document.getSelection(), f = document.createElement("span"), f.textContent = a, f.ariaHidden = "true", f.style.all = "unset", f.style.position = "fixed", f.style.top = 0, f.style.clip = "rect(0, 0, 0, 0)", f.style.whiteSpace = "pre", f.style.webkitUserSelect = "text", f.style.MozUserSelect = "text", f.style.msUserSelect = "text", f.style.userSelect = "text", f.addEventListener("copy", function(h) {
|
67428
67428
|
if (h.stopPropagation(), n.format)
|
67429
67429
|
if (h.preventDefault(), typeof h.clipboardData > "u") {
|
67430
67430
|
r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
@@ -67433,7 +67433,7 @@ function fh(a, n) {
|
|
67433
67433
|
} else
|
67434
67434
|
h.clipboardData.clearData(), h.clipboardData.setData(n.format, a);
|
67435
67435
|
n.onCopy && (h.preventDefault(), n.onCopy(h.clipboardData));
|
67436
|
-
}), document.body.appendChild(f),
|
67436
|
+
}), document.body.appendChild(f), c.selectNodeContents(f), u.addRange(c);
|
67437
67437
|
var g = document.execCommand("copy");
|
67438
67438
|
if (!g)
|
67439
67439
|
throw new Error("copy command was unsuccessful");
|
@@ -67446,7 +67446,7 @@ function fh(a, n) {
|
|
67446
67446
|
r && console.error("unable to copy using clipboardData: ", T), r && console.error("falling back to prompt"), o = _h("message" in n ? n.message : yh), window.prompt(o, a);
|
67447
67447
|
}
|
67448
67448
|
} finally {
|
67449
|
-
u && (typeof u.removeRange == "function" ? u.removeRange(
|
67449
|
+
u && (typeof u.removeRange == "function" ? u.removeRange(c) : u.removeAllRanges()), f && document.body.removeChild(f), l();
|
67450
67450
|
}
|
67451
67451
|
return x;
|
67452
67452
|
}
|
@@ -67471,8 +67471,8 @@ function _p(a, n) {
|
|
67471
67471
|
var r = Object.keys(a);
|
67472
67472
|
if (Object.getOwnPropertySymbols) {
|
67473
67473
|
var o = Object.getOwnPropertySymbols(a);
|
67474
|
-
n && (o = o.filter(function(
|
67475
|
-
return Object.getOwnPropertyDescriptor(a,
|
67474
|
+
n && (o = o.filter(function(l) {
|
67475
|
+
return Object.getOwnPropertyDescriptor(a, l).enumerable;
|
67476
67476
|
})), r.push.apply(r, o);
|
67477
67477
|
}
|
67478
67478
|
return r;
|
@@ -67491,20 +67491,20 @@ function fp(a) {
|
|
67491
67491
|
function hh(a, n) {
|
67492
67492
|
if (a == null)
|
67493
67493
|
return {};
|
67494
|
-
var r = wh(a, n), o,
|
67494
|
+
var r = wh(a, n), o, l;
|
67495
67495
|
if (Object.getOwnPropertySymbols) {
|
67496
|
-
var
|
67497
|
-
for (
|
67498
|
-
o = l
|
67496
|
+
var c = Object.getOwnPropertySymbols(a);
|
67497
|
+
for (l = 0; l < c.length; l++)
|
67498
|
+
o = c[l], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(a, o) && (r[o] = a[o]);
|
67499
67499
|
}
|
67500
67500
|
return r;
|
67501
67501
|
}
|
67502
67502
|
function wh(a, n) {
|
67503
67503
|
if (a == null)
|
67504
67504
|
return {};
|
67505
|
-
var r = {}, o = Object.keys(a),
|
67506
|
-
for (
|
67507
|
-
|
67505
|
+
var r = {}, o = Object.keys(a), l, c;
|
67506
|
+
for (c = 0; c < o.length; c++)
|
67507
|
+
l = o[c], !(n.indexOf(l) >= 0) && (r[l] = a[l]);
|
67508
67508
|
return r;
|
67509
67509
|
}
|
67510
67510
|
function vh(a, n) {
|
@@ -67526,20 +67526,20 @@ function Dh(a, n) {
|
|
67526
67526
|
a.prototype = Object.create(n && n.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), n && Mi(a, n);
|
67527
67527
|
}
|
67528
67528
|
function Mi(a, n) {
|
67529
|
-
return Mi = Object.setPrototypeOf || function(o,
|
67530
|
-
return o.__proto__ =
|
67529
|
+
return Mi = Object.setPrototypeOf || function(o, l) {
|
67530
|
+
return o.__proto__ = l, o;
|
67531
67531
|
}, Mi(a, n);
|
67532
67532
|
}
|
67533
67533
|
function Ih(a) {
|
67534
67534
|
var n = Ah();
|
67535
67535
|
return function() {
|
67536
|
-
var o = rn(a),
|
67536
|
+
var o = rn(a), l;
|
67537
67537
|
if (n) {
|
67538
|
-
var
|
67539
|
-
|
67538
|
+
var c = rn(this).constructor;
|
67539
|
+
l = Reflect.construct(o, arguments, c);
|
67540
67540
|
} else
|
67541
|
-
|
67542
|
-
return kh(this,
|
67541
|
+
l = o.apply(this, arguments);
|
67542
|
+
return kh(this, l);
|
67543
67543
|
};
|
67544
67544
|
}
|
67545
67545
|
function kh(a, n) {
|
@@ -67580,9 +67580,9 @@ var $p = /* @__PURE__ */ function(a) {
|
|
67580
67580
|
function r() {
|
67581
67581
|
var o;
|
67582
67582
|
vh(this, r);
|
67583
|
-
for (var
|
67584
|
-
|
67585
|
-
return o = n.call.apply(n, [this].concat(
|
67583
|
+
for (var l = arguments.length, c = new Array(l), u = 0; u < l; u++)
|
67584
|
+
c[u] = arguments[u];
|
67585
|
+
return o = n.call.apply(n, [this].concat(c)), Wi(Up(o), "onClick", function(f) {
|
67586
67586
|
var x = o.props, g = x.text, h = x.onCopy, T = x.children, P = x.options, M = Xa.default.Children.only(T), F = (0, bh.default)(g, P);
|
67587
67587
|
h && h(g, F), M && M.props && typeof M.props.onClick == "function" && M.props.onClick(f);
|
67588
67588
|
}), o;
|
@@ -67590,9 +67590,9 @@ var $p = /* @__PURE__ */ function(a) {
|
|
67590
67590
|
return Th(r, [{
|
67591
67591
|
key: "render",
|
67592
67592
|
value: function() {
|
67593
|
-
var
|
67594
|
-
|
67595
|
-
var
|
67593
|
+
var l = this.props;
|
67594
|
+
l.text, l.onCopy, l.options;
|
67595
|
+
var c = l.children, u = hh(l, xh), f = Xa.default.Children.only(c);
|
67596
67596
|
return /* @__PURE__ */ Xa.default.cloneElement(f, fp(fp({}, u), {}, {
|
67597
67597
|
onClick: this.onClick
|
67598
67598
|
}));
|
@@ -67612,10 +67612,10 @@ async function zh(a, n = 0) {
|
|
67612
67612
|
const r = a[n];
|
67613
67613
|
if (!r)
|
67614
67614
|
return;
|
67615
|
-
const { name: o, args:
|
67615
|
+
const { name: o, args: l, type: c, desc: u, examples: f, remarks: x, seeAlso: g, syntax: h, detailedDesc: T, fields: P, returns: M } = r, F = {
|
67616
67616
|
name: o
|
67617
67617
|
};
|
67618
|
-
if (a.length > 1 && (F.overloads = `${a.length} overloads`),
|
67618
|
+
if (a.length > 1 && (F.overloads = `${a.length} overloads`), c && (F.type = c), l && (F.name = `${o}()`, F.args = l.map((L) => {
|
67619
67619
|
const { name: W, desc: Q, displayType: j } = L;
|
67620
67620
|
return {
|
67621
67621
|
label: `${W} (${j})`,
|
@@ -67653,43 +67653,43 @@ async function zh(a, n = 0) {
|
|
67653
67653
|
function Nh(a) {
|
67654
67654
|
const r = /\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);
|
67655
67655
|
if (r) {
|
67656
|
-
const [o,
|
67656
|
+
const [o, l, c] = r;
|
67657
67657
|
return {
|
67658
|
-
name:
|
67659
|
-
link:
|
67658
|
+
name: l,
|
67659
|
+
link: c
|
67660
67660
|
};
|
67661
67661
|
}
|
67662
67662
|
}
|
67663
67663
|
function Ss(a) {
|
67664
67664
|
const n = /\*\*([^\*]+)\*\*/g, r = /\`([^\`]+)\`/g, o = /\[([^\[\]]+)\]\(([^\(\)]+)\)/g;
|
67665
|
-
return a.replace(n, (
|
67665
|
+
return a.replace(n, (l, c) => `<strong>${c}</strong>`).replace(r, (l, c) => `<code>${c}</code>`).replace(o, (l, c, u) => `<a ${u.startsWith("#") ? `data-name="${c}"` : 'target="_blank"'} class="manual-content-text-link" href="${u}">${c}</a>`);
|
67666
67666
|
}
|
67667
67667
|
function Eh(a) {
|
67668
67668
|
var o;
|
67669
67669
|
const n = [], r = [];
|
67670
|
-
for (const
|
67671
|
-
for (let
|
67672
|
-
if (Ap.includes(
|
67670
|
+
for (const l of Br) {
|
67671
|
+
for (let c of qp[l.key].sort()) {
|
67672
|
+
if (Ap.includes(c))
|
67673
67673
|
continue;
|
67674
|
-
let u =
|
67675
|
-
|
67674
|
+
let u = c;
|
67675
|
+
l.prefix === "fun" && (u = `${c}()`), u.includes(a) && (u.startsWith(a) ? n.unshift({
|
67676
67676
|
label: u,
|
67677
|
-
group:
|
67678
|
-
key: `${
|
67677
|
+
group: l,
|
67678
|
+
key: `${l.prefix}_${c}`
|
67679
67679
|
}) : n.push({
|
67680
67680
|
label: u,
|
67681
|
-
group:
|
67682
|
-
key: `${
|
67681
|
+
group: l,
|
67682
|
+
key: `${l.prefix}_${c}`
|
67683
67683
|
}));
|
67684
67684
|
}
|
67685
|
-
for (const [
|
67685
|
+
for (const [c, u] of gt[l.key])
|
67686
67686
|
for (const f of u) {
|
67687
67687
|
const { name: x, args: g, type: h, desc: T, examples: P, remarks: M, seeAlso: F, syntax: L, detailedDesc: W, fields: Q, returns: j } = f, O = {
|
67688
67688
|
label: x,
|
67689
|
-
group:
|
67690
|
-
key: `${
|
67689
|
+
group: l,
|
67690
|
+
key: `${l.prefix}_${x}`
|
67691
67691
|
};
|
67692
|
-
if (
|
67692
|
+
if (l.prefix === "fun" && (O.label = `${x}()`), O.label.includes(a))
|
67693
67693
|
break;
|
67694
67694
|
if (g) {
|
67695
67695
|
let A = !1;
|
@@ -67801,9 +67801,9 @@ function Eh(a) {
|
|
67801
67801
|
}
|
67802
67802
|
const Sh = (a) => {
|
67803
67803
|
var j;
|
67804
|
-
const { group: n, itemKey: r, onItemClick: o, currentIndex:
|
67804
|
+
const { group: n, itemKey: r, onItemClick: o, currentIndex: l } = a, [c, u] = it(), [f, x] = it(0), [g, h] = it("Copy code"), [T, P] = it("Copy link");
|
67805
67805
|
Ye(() => {
|
67806
|
-
M(
|
67806
|
+
M(l);
|
67807
67807
|
}, [r]);
|
67808
67808
|
const M = (O) => {
|
67809
67809
|
const A = r.replace(`${n == null ? void 0 : n.prefix}_`, ""), I = gt[n == null ? void 0 : n.key].get(A);
|
@@ -67828,26 +67828,26 @@ const Sh = (a) => {
|
|
67828
67828
|
P("Copy link");
|
67829
67829
|
}, 3e3);
|
67830
67830
|
};
|
67831
|
-
return S.jsx("div", { onClick: L, id: `#${r}`, children: S.jsxs("div", { className: "manual-content-wrapper", children: [S.jsxs("div", { className: "manual-content-header", children: [S.jsxs("div", { children: [S.jsx("h3", { className: "manual-content-header-title", children:
|
67831
|
+
return S.jsx("div", { onClick: L, id: `#${r}`, children: S.jsxs("div", { className: "manual-content-wrapper", children: [S.jsxs("div", { className: "manual-content-header", children: [S.jsxs("div", { children: [S.jsx("h3", { className: "manual-content-header-title", children: c == null ? void 0 : c.name }), !!(c != null && c.overloads) && S.jsx("span", { className: "manual-content-header-overloads", children: c == null ? void 0 : c.overloads })] }), S.jsx(Ci, { text: (c == null ? void 0 : c.name) || "", onCopy: Q, children: S.jsx("div", { "data-tooltip": T, className: "manual-content-btn", children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: S.jsxs("g", { fill: "currentColor", children: [S.jsx("path", { fillRule: "nonzero", d: "M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z" }), S.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), (j = c == null ? void 0 : c.desc) == null ? void 0 : j.map((O, A) => S.jsx("div", { dangerouslySetInnerHTML: {
|
67832
67832
|
__html: O
|
67833
|
-
}, className: "manual-content-text" }, A)), (
|
67833
|
+
}, className: "manual-content-text" }, A)), (c == null ? void 0 : c.type) && S.jsxs(jt, { children: [S.jsx("div", { className: "manual-content-sub-title", children: "type" }), S.jsx("div", { className: "manual-content-text", children: c.type })] }), (c == null ? void 0 : c.syntax) && S.jsxs(jt, { children: [S.jsxs("div", { className: "manual-content-sub-title", children: ["Syntax ", !!(c != null && c.overloads) && "& Overloads"] }), c.syntax.map((O, A) => {
|
67834
67834
|
var I;
|
67835
|
-
return (((I =
|
67836
|
-
})] }), (
|
67835
|
+
return (((I = c.syntax) == null ? void 0 : I.length) || 0) > 1 ? S.jsx("div", { onClick: () => F(A), children: S.jsx("pre", { className: `manual-content-syntax with-overloads ${A === f ? "selected" : ""}`, children: O }) }, A) : S.jsx("pre", { className: "manual-content-syntax", children: O }, A);
|
67836
|
+
})] }), (c == null ? void 0 : c.args) && S.jsxs(jt, { children: [S.jsx("div", { className: "manual-content-sub-title", children: "arguments" }), c.args.map((O, A) => S.jsxs("div", { className: "manual-content-text", children: [S.jsx("span", { className: "manual-content-args-label", children: O.label }), " ", S.jsx("span", { dangerouslySetInnerHTML: {
|
67837
67837
|
__html: O.desc || ""
|
67838
|
-
} })] }, A))] }), (
|
67838
|
+
} })] }, A))] }), (c == null ? void 0 : c.fields) && S.jsxs(jt, { children: [S.jsx("div", { className: "manual-content-sub-title", children: "fields" }), c.fields.map((O, A) => S.jsxs("div", { className: "manual-content-text", children: [S.jsx("span", { className: "manual-content-args-label", children: O.label }), " ", S.jsx("span", { dangerouslySetInnerHTML: {
|
67839
67839
|
__html: O.desc || ""
|
67840
|
-
} })] }, A))] }), (
|
67841
|
-
__html:
|
67842
|
-
} }) })] }), (
|
67840
|
+
} })] }, A))] }), (c == null ? void 0 : c.examples) && S.jsxs(jt, { children: [S.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [S.jsx("div", { children: S.jsx("span", { children: "example" }) }), S.jsx(Ci, { text: c.originalExample || "", onCopy: W, children: S.jsx("div", { "data-tooltip": g, className: "manual-content-btn manual-content-example-copy", children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: S.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), S.jsx("pre", { className: "manual-content-example", children: S.jsx("code", { dangerouslySetInnerHTML: {
|
67841
|
+
__html: c.examples
|
67842
|
+
} }) })] }), (c == null ? void 0 : c.detailedDesc) && c.detailedDesc.map((O, A) => S.jsxs(jt, { children: [O.desc.map((I, R) => S.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
67843
67843
|
__html: I
|
67844
67844
|
} }, R)), S.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [S.jsx("div", { children: S.jsx("span", { children: "example" }) }), S.jsx(Ci, { text: O.originalExample || "", onCopy: W, children: S.jsx("div", { "data-tooltip": g, className: "manual-content-btn manual-content-example-copy", children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: S.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), S.jsx("pre", { className: "manual-content-example", children: S.jsx("code", { dangerouslySetInnerHTML: {
|
67845
67845
|
__html: O.examples || ""
|
67846
|
-
} }) })] }, A)), (
|
67846
|
+
} }) })] }, A)), (c == null ? void 0 : c.returns) && S.jsxs(jt, { children: [S.jsx("div", { className: "manual-content-sub-title", children: "returns" }), c.returns.map((O, A) => S.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
67847
67847
|
__html: O
|
67848
|
-
} }, A))] }), (
|
67848
|
+
} }, A))] }), (c == null ? void 0 : c.remarks) && S.jsxs(jt, { children: [S.jsx("div", { className: "manual-content-sub-title", children: "remarks" }), c.remarks.map((O, A) => S.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
67849
67849
|
__html: O
|
67850
|
-
} }, A))] }), (
|
67850
|
+
} }, A))] }), (c == null ? void 0 : c.seeAlso) && S.jsxs(jt, { children: [S.jsx("div", { className: "manual-content-sub-title", children: "see Also" }), S.jsx("div", { className: "manual-content-see_also", children: c.seeAlso.map((O, A) => S.jsx("a", { className: "manual-content-see_also-tag", "data-name": O == null ? void 0 : O.name, href: O == null ? void 0 : O.link, children: O == null ? void 0 : O.name }, A)) })] })] }) });
|
67851
67851
|
};
|
67852
67852
|
Xe.register({
|
67853
67853
|
id: Ne
|
@@ -67857,8 +67857,8 @@ Hr.defineTheme("vs", Ki);
|
|
67857
67857
|
Xe.setMonarchTokensProvider(Ne, ir);
|
67858
67858
|
Xe.setLanguageConfiguration(Ne, Bi);
|
67859
67859
|
const Kh = ({ theme: a = "vs-dark", currentKey: n, currentIndex: r = 0 }) => {
|
67860
|
-
const [o,
|
67861
|
-
I.key === (o == null ? void 0 : o.key) && !(o != null && o.isHidden) ?
|
67860
|
+
const [o, l] = it(Br[0]), [c, u] = it(null), [f, x] = it(0), [g, h] = it(""), [T, P] = it("var_bar_index"), M = Pe(null), F = Pe(null), L = (I) => {
|
67861
|
+
I.key === (o == null ? void 0 : o.key) && !(o != null && o.isHidden) ? l({ ...I, isHidden: !0 }) : l(I);
|
67862
67862
|
};
|
67863
67863
|
Ye(() => {
|
67864
67864
|
Hr.setTheme(a);
|
@@ -67870,7 +67870,7 @@ const Kh = ({ theme: a = "vs-dark", currentKey: n, currentIndex: r = 0 }) => {
|
|
67870
67870
|
}, [n]);
|
67871
67871
|
const W = (I, R) => {
|
67872
67872
|
var U;
|
67873
|
-
I !== T && (R &&
|
67873
|
+
I !== T && (R && l(R), x(0), P(I), (U = F.current) == null || U.scrollTo({ top: 0 }));
|
67874
67874
|
}, Q = (I) => {
|
67875
67875
|
if (I.target.value.trim() === "")
|
67876
67876
|
j();
|
@@ -67886,7 +67886,7 @@ const Kh = ({ theme: a = "vs-dark", currentKey: n, currentIndex: r = 0 }) => {
|
|
67886
67886
|
}, 10);
|
67887
67887
|
}, O = (I, R) => {
|
67888
67888
|
var U;
|
67889
|
-
|
67889
|
+
l(I), P(R), setTimeout(() => {
|
67890
67890
|
var ie, ae;
|
67891
67891
|
(ae = (ie = M.current) == null ? void 0 : ie.querySelector(`a[data-href="${R}"]`)) == null || ae.scrollIntoView(!0);
|
67892
67892
|
}, 10), (U = F.current) == null || U.scrollTo({ top: 0 });
|
@@ -67894,9 +67894,9 @@ const Kh = ({ theme: a = "vs-dark", currentKey: n, currentIndex: r = 0 }) => {
|
|
67894
67894
|
const R = Br.find((U) => I.startsWith(U.prefix));
|
67895
67895
|
R && O(R, I);
|
67896
67896
|
};
|
67897
|
-
return S.jsxs("div", { className: `${a} manual-warpper`, children: [S.jsxs("div", { className: "manual-left", children: [S.jsxs("div", { className: "manual-search", children: [S.jsx("span", { className: "manual-search-icon", children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: S.jsx("path", { fillRule: "evenodd", d: "M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z" }) }) }), S.jsx("input", { onChange: Q, spellCheck: "false", value: g, className: "manual-search-input", autoComplete: "off", placeholder: "Search", type: "text" }), S.jsx("span", { onClick: j, className: `manual-search-clear ${g ? "" : "hide"}`, children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 95.939 95.939", width: "9", height: "9", children: S.jsx("path", { d: "M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z" }) }) })] }), S.jsx("div", { className: `manual-group-search-list manual-scroll ${g ? "" : "hide"}`, children: S.jsxs("div", { children: [
|
67897
|
+
return S.jsxs("div", { className: `${a} manual-warpper`, children: [S.jsxs("div", { className: "manual-left", children: [S.jsxs("div", { className: "manual-search", children: [S.jsx("span", { className: "manual-search-icon", children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: S.jsx("path", { fillRule: "evenodd", d: "M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z" }) }) }), S.jsx("input", { onChange: Q, spellCheck: "false", value: g, className: "manual-search-input", autoComplete: "off", placeholder: "Search", type: "text" }), S.jsx("span", { onClick: j, className: `manual-search-clear ${g ? "" : "hide"}`, children: S.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 95.939 95.939", width: "9", height: "9", children: S.jsx("path", { d: "M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z" }) }) })] }), S.jsx("div", { className: `manual-group-search-list manual-scroll ${g ? "" : "hide"}`, children: S.jsxs("div", { children: [c == null ? void 0 : c.labelList.map((I) => S.jsx("a", { onClick: (R) => {
|
67898
67898
|
R.preventDefault(), W(I.key, I.group);
|
67899
|
-
}, className: `manual-group-body-item ${I.key === T ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`)), S.jsx("div", { className: "manual-content-separator" }),
|
67899
|
+
}, className: `manual-group-body-item ${I.key === T ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`)), S.jsx("div", { className: "manual-content-separator" }), c == null ? void 0 : c.contentList.map((I) => S.jsx("a", { onClick: (R) => {
|
67900
67900
|
R.preventDefault(), W(I.key, I.group);
|
67901
67901
|
}, className: `manual-group-body-item ${I.key === T ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`))] }) }), S.jsx("div", { className: `manual-group-list manual-scroll ${g ? "hide" : ""}`, ref: M, children: Br.map((I) => {
|
67902
67902
|
var R, U;
|