@guihz/trading-vue-editor-tes 0.0.138 → 0.0.139
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/assets/{parserTccWorker-BC_aawb2.js → parserTccWorker-CEYO20yY.js} +68 -68
- package/lib/components/editor/utils/completions.d.ts +1 -0
- package/lib/components/editor/utils/parse.d.ts +2 -0
- package/lib/components/editor/utils/signatureHelp.d.ts +1 -1
- package/lib/components/editor/utils/suggestions.d.ts +2 -2
- package/lib/trading-vue-editor.js +1005 -997
- package/lib/trading-vue-editor.umd.cjs +22 -22
- package/package.json +1 -1
@@ -33,16 +33,16 @@ function ab() {
|
|
33
33
|
if (hc)
|
34
34
|
return Pr;
|
35
35
|
hc = 1;
|
36
|
-
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty,
|
37
|
-
function m(_,
|
36
|
+
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
37
|
+
function m(_, f, b) {
|
38
38
|
var h, T = {}, M = null, F = null;
|
39
|
-
b !== void 0 && (M = "" + b),
|
40
|
-
for (h in
|
41
|
-
o.call(
|
39
|
+
b !== void 0 && (M = "" + b), f.key !== void 0 && (M = "" + f.key), f.ref !== void 0 && (F = f.ref);
|
40
|
+
for (h in f)
|
41
|
+
o.call(f, h) && !l.hasOwnProperty(h) && (T[h] = f[h]);
|
42
42
|
if (_ && _.defaultProps)
|
43
|
-
for (h in
|
44
|
-
T[h] === void 0 && (T[h] =
|
45
|
-
return { $$typeof: n, type: _, key: M, ref: F, props: T, _owner:
|
43
|
+
for (h in f = _.defaultProps, f)
|
44
|
+
T[h] === void 0 && (T[h] = f[h]);
|
45
|
+
return { $$typeof: n, type: _, key: M, ref: F, props: T, _owner: c.current };
|
46
46
|
}
|
47
47
|
return Pr.Fragment = r, Pr.jsx = m, Pr.jsxs = m, Pr;
|
48
48
|
}
|
@@ -59,86 +59,86 @@ var Or = {};
|
|
59
59
|
var wc;
|
60
60
|
function nb() {
|
61
61
|
return wc || (wc = 1, process.env.NODE_ENV !== "production" && function() {
|
62
|
-
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"),
|
63
|
-
function
|
64
|
-
if (
|
62
|
+
var a = is, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), P = Symbol.iterator, N = "@@iterator";
|
63
|
+
function $(g) {
|
64
|
+
if (g === null || typeof g != "object")
|
65
65
|
return null;
|
66
|
-
var S = P &&
|
66
|
+
var S = P && g[P] || g[N];
|
67
67
|
return typeof S == "function" ? S : null;
|
68
68
|
}
|
69
69
|
var G = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
70
|
-
function j(
|
70
|
+
function j(g) {
|
71
71
|
{
|
72
72
|
for (var S = arguments.length, B = new Array(S > 1 ? S - 1 : 0), Z = 1; Z < S; Z++)
|
73
73
|
B[Z - 1] = arguments[Z];
|
74
|
-
O("error",
|
74
|
+
O("error", g, B);
|
75
75
|
}
|
76
76
|
}
|
77
|
-
function O(
|
77
|
+
function O(g, S, B) {
|
78
78
|
{
|
79
79
|
var Z = G.ReactDebugCurrentFrame, ye = Z.getStackAddendum();
|
80
80
|
ye !== "" && (S += "%s", B = B.concat([ye]));
|
81
81
|
var xe = B.map(function(pe) {
|
82
82
|
return String(pe);
|
83
83
|
});
|
84
|
-
xe.unshift("Warning: " + S), Function.prototype.apply.call(console[
|
84
|
+
xe.unshift("Warning: " + S), Function.prototype.apply.call(console[g], console, xe);
|
85
85
|
}
|
86
86
|
}
|
87
87
|
var I = !1, A = !1, R = !1, U = !1, se = !1, me;
|
88
88
|
me = Symbol.for("react.module.reference");
|
89
|
-
function ie(
|
90
|
-
return !!(typeof
|
89
|
+
function ie(g) {
|
90
|
+
return !!(typeof g == "string" || typeof g == "function" || g === o || g === l || se || g === c || g === b || g === h || U || g === F || I || A || R || typeof g == "object" && g !== null && (g.$$typeof === M || g.$$typeof === T || g.$$typeof === m || g.$$typeof === _ || g.$$typeof === f || // This needs to include all possible module reference object
|
91
91
|
// types supported by any Flight configuration anywhere since
|
92
92
|
// we don't know which Flight build this will end up being used
|
93
93
|
// with.
|
94
|
-
|
94
|
+
g.$$typeof === me || g.getModuleId !== void 0));
|
95
95
|
}
|
96
|
-
function xt(
|
97
|
-
var Z =
|
96
|
+
function xt(g, S, B) {
|
97
|
+
var Z = g.displayName;
|
98
98
|
if (Z)
|
99
99
|
return Z;
|
100
100
|
var ye = S.displayName || S.name || "";
|
101
101
|
return ye !== "" ? B + "(" + ye + ")" : B;
|
102
102
|
}
|
103
|
-
function Et(
|
104
|
-
return
|
103
|
+
function Et(g) {
|
104
|
+
return g.displayName || "Context";
|
105
105
|
}
|
106
|
-
function Ke(
|
107
|
-
if (
|
106
|
+
function Ke(g) {
|
107
|
+
if (g == null)
|
108
108
|
return null;
|
109
|
-
if (typeof
|
110
|
-
return
|
111
|
-
if (typeof
|
112
|
-
return
|
113
|
-
switch (
|
109
|
+
if (typeof g.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
110
|
+
return g.displayName || g.name || null;
|
111
|
+
if (typeof g == "string")
|
112
|
+
return g;
|
113
|
+
switch (g) {
|
114
114
|
case o:
|
115
115
|
return "Fragment";
|
116
116
|
case r:
|
117
117
|
return "Portal";
|
118
|
-
case c:
|
119
|
-
return "Profiler";
|
120
118
|
case l:
|
119
|
+
return "Profiler";
|
120
|
+
case c:
|
121
121
|
return "StrictMode";
|
122
122
|
case b:
|
123
123
|
return "Suspense";
|
124
124
|
case h:
|
125
125
|
return "SuspenseList";
|
126
126
|
}
|
127
|
-
if (typeof
|
128
|
-
switch (
|
127
|
+
if (typeof g == "object")
|
128
|
+
switch (g.$$typeof) {
|
129
129
|
case _:
|
130
|
-
var S =
|
130
|
+
var S = g;
|
131
131
|
return Et(S) + ".Consumer";
|
132
132
|
case m:
|
133
|
-
var B =
|
133
|
+
var B = g;
|
134
134
|
return Et(B._context) + ".Provider";
|
135
|
-
case
|
136
|
-
return xt(
|
135
|
+
case f:
|
136
|
+
return xt(g, g.render, "ForwardRef");
|
137
137
|
case T:
|
138
|
-
var Z =
|
139
|
-
return Z !== null ? Z : Ke(
|
138
|
+
var Z = g.displayName || null;
|
139
|
+
return Z !== null ? Z : Ke(g.type) || "Memo";
|
140
140
|
case M: {
|
141
|
-
var ye =
|
141
|
+
var ye = g, xe = ye._payload, pe = ye._init;
|
142
142
|
try {
|
143
143
|
return Ke(pe(xe));
|
144
144
|
} catch {
|
@@ -156,20 +156,20 @@ function nb() {
|
|
156
156
|
{
|
157
157
|
if (Y === 0) {
|
158
158
|
_e = console.log, Ce = console.info, Se = console.warn, lt = console.error, Nt = console.group, J = console.groupCollapsed, be = console.groupEnd;
|
159
|
-
var
|
159
|
+
var g = {
|
160
160
|
configurable: !0,
|
161
161
|
enumerable: !0,
|
162
162
|
value: Oe,
|
163
163
|
writable: !0
|
164
164
|
};
|
165
165
|
Object.defineProperties(console, {
|
166
|
-
info:
|
167
|
-
log:
|
168
|
-
warn:
|
169
|
-
error:
|
170
|
-
group:
|
171
|
-
groupCollapsed:
|
172
|
-
groupEnd:
|
166
|
+
info: g,
|
167
|
+
log: g,
|
168
|
+
warn: g,
|
169
|
+
error: g,
|
170
|
+
group: g,
|
171
|
+
groupCollapsed: g,
|
172
|
+
groupEnd: g
|
173
173
|
});
|
174
174
|
}
|
175
175
|
Y++;
|
@@ -178,31 +178,31 @@ function nb() {
|
|
178
178
|
function De() {
|
179
179
|
{
|
180
180
|
if (Y--, Y === 0) {
|
181
|
-
var
|
181
|
+
var g = {
|
182
182
|
configurable: !0,
|
183
183
|
enumerable: !0,
|
184
184
|
writable: !0
|
185
185
|
};
|
186
186
|
Object.defineProperties(console, {
|
187
|
-
log: Fe({},
|
187
|
+
log: Fe({}, g, {
|
188
188
|
value: _e
|
189
189
|
}),
|
190
|
-
info: Fe({},
|
190
|
+
info: Fe({}, g, {
|
191
191
|
value: Ce
|
192
192
|
}),
|
193
|
-
warn: Fe({},
|
193
|
+
warn: Fe({}, g, {
|
194
194
|
value: Se
|
195
195
|
}),
|
196
|
-
error: Fe({},
|
196
|
+
error: Fe({}, g, {
|
197
197
|
value: lt
|
198
198
|
}),
|
199
|
-
group: Fe({},
|
199
|
+
group: Fe({}, g, {
|
200
200
|
value: Nt
|
201
201
|
}),
|
202
|
-
groupCollapsed: Fe({},
|
202
|
+
groupCollapsed: Fe({}, g, {
|
203
203
|
value: J
|
204
204
|
}),
|
205
|
-
groupEnd: Fe({},
|
205
|
+
groupEnd: Fe({}, g, {
|
206
206
|
value: be
|
207
207
|
})
|
208
208
|
});
|
@@ -211,7 +211,7 @@ function nb() {
|
|
211
211
|
}
|
212
212
|
}
|
213
213
|
var os = G.ReactCurrentDispatcher, lr;
|
214
|
-
function Kt(
|
214
|
+
function Kt(g, S, B) {
|
215
215
|
{
|
216
216
|
if (lr === void 0)
|
217
217
|
try {
|
@@ -221,19 +221,19 @@ function nb() {
|
|
221
221
|
lr = Z && Z[1] || "";
|
222
222
|
}
|
223
223
|
return `
|
224
|
-
` + lr +
|
224
|
+
` + lr + g;
|
225
225
|
}
|
226
226
|
}
|
227
|
-
var Xt = !1,
|
227
|
+
var Xt = !1, Os;
|
228
228
|
{
|
229
|
-
var
|
230
|
-
|
229
|
+
var Fs = typeof WeakMap == "function" ? WeakMap : Map;
|
230
|
+
Os = new Fs();
|
231
231
|
}
|
232
|
-
function ws(
|
233
|
-
if (!
|
232
|
+
function ws(g, S) {
|
233
|
+
if (!g || Xt)
|
234
234
|
return "";
|
235
235
|
{
|
236
|
-
var B =
|
236
|
+
var B = Os.get(g);
|
237
237
|
if (B !== void 0)
|
238
238
|
return B;
|
239
239
|
}
|
@@ -258,14 +258,14 @@ function nb() {
|
|
258
258
|
} catch (tt) {
|
259
259
|
Z = tt;
|
260
260
|
}
|
261
|
-
Reflect.construct(
|
261
|
+
Reflect.construct(g, [], pe);
|
262
262
|
} else {
|
263
263
|
try {
|
264
264
|
pe.call();
|
265
265
|
} catch (tt) {
|
266
266
|
Z = tt;
|
267
267
|
}
|
268
|
-
|
268
|
+
g.call(pe.prototype);
|
269
269
|
}
|
270
270
|
} else {
|
271
271
|
try {
|
@@ -273,7 +273,7 @@ function nb() {
|
|
273
273
|
} catch (tt) {
|
274
274
|
Z = tt;
|
275
275
|
}
|
276
|
-
|
276
|
+
g();
|
277
277
|
}
|
278
278
|
} catch (tt) {
|
279
279
|
if (tt && Z && typeof tt.stack == "string") {
|
@@ -288,7 +288,7 @@ function nb() {
|
|
288
288
|
if (Ae--, ze--, ze < 0 || le[Ae] !== He[ze]) {
|
289
289
|
var et = `
|
290
290
|
` + le[Ae].replace(" at new ", " at ");
|
291
|
-
return
|
291
|
+
return g.displayName && et.includes("<anonymous>") && (et = et.replace("<anonymous>", g.displayName)), typeof g == "function" && Os.set(g, et), et;
|
292
292
|
}
|
293
293
|
while (Ae >= 1 && ze >= 0);
|
294
294
|
break;
|
@@ -297,37 +297,37 @@ function nb() {
|
|
297
297
|
} finally {
|
298
298
|
Xt = !1, os.current = xe, De(), Error.prepareStackTrace = ye;
|
299
299
|
}
|
300
|
-
var Lt =
|
301
|
-
return typeof
|
300
|
+
var Lt = g ? g.displayName || g.name : "", ra = Lt ? Kt(Lt) : "";
|
301
|
+
return typeof g == "function" && Os.set(g, ra), ra;
|
302
302
|
}
|
303
|
-
function Xr(
|
304
|
-
return ws(
|
303
|
+
function Xr(g, S, B) {
|
304
|
+
return ws(g, !1);
|
305
305
|
}
|
306
|
-
function ct(
|
307
|
-
var S =
|
306
|
+
function ct(g) {
|
307
|
+
var S = g.prototype;
|
308
308
|
return !!(S && S.isReactComponent);
|
309
309
|
}
|
310
|
-
function Ut(
|
311
|
-
if (
|
310
|
+
function Ut(g, S, B) {
|
311
|
+
if (g == null)
|
312
312
|
return "";
|
313
|
-
if (typeof
|
314
|
-
return ws(
|
315
|
-
if (typeof
|
316
|
-
return Kt(
|
317
|
-
switch (
|
313
|
+
if (typeof g == "function")
|
314
|
+
return ws(g, ct(g));
|
315
|
+
if (typeof g == "string")
|
316
|
+
return Kt(g);
|
317
|
+
switch (g) {
|
318
318
|
case b:
|
319
319
|
return Kt("Suspense");
|
320
320
|
case h:
|
321
321
|
return Kt("SuspenseList");
|
322
322
|
}
|
323
|
-
if (typeof
|
324
|
-
switch (
|
325
|
-
case
|
326
|
-
return Xr(
|
323
|
+
if (typeof g == "object")
|
324
|
+
switch (g.$$typeof) {
|
325
|
+
case f:
|
326
|
+
return Xr(g.render);
|
327
327
|
case T:
|
328
|
-
return Ut(
|
328
|
+
return Ut(g.type, S, B);
|
329
329
|
case M: {
|
330
|
-
var Z =
|
330
|
+
var Z = g, ye = Z._payload, xe = Z._init;
|
331
331
|
try {
|
332
332
|
return Ut(xe(ye), S, B);
|
333
333
|
} catch {
|
@@ -336,114 +336,114 @@ function nb() {
|
|
336
336
|
}
|
337
337
|
return "";
|
338
338
|
}
|
339
|
-
var
|
340
|
-
function
|
341
|
-
if (
|
342
|
-
var S =
|
339
|
+
var Rs = Object.prototype.hasOwnProperty, wt = {}, cr = G.ReactDebugCurrentFrame;
|
340
|
+
function Bs(g) {
|
341
|
+
if (g) {
|
342
|
+
var S = g._owner, B = Ut(g.type, g._source, S ? S.type : null);
|
343
343
|
cr.setExtraStackFrame(B);
|
344
344
|
} else
|
345
345
|
cr.setExtraStackFrame(null);
|
346
346
|
}
|
347
|
-
function vs(
|
347
|
+
function vs(g, S, B, Z, ye) {
|
348
348
|
{
|
349
|
-
var xe = Function.call.bind(
|
350
|
-
for (var pe in
|
351
|
-
if (xe(
|
349
|
+
var xe = Function.call.bind(Rs);
|
350
|
+
for (var pe in g)
|
351
|
+
if (xe(g, pe)) {
|
352
352
|
var le = void 0;
|
353
353
|
try {
|
354
|
-
if (typeof
|
355
|
-
var He = Error((Z || "React class") + ": " + B + " type `" + pe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
354
|
+
if (typeof g[pe] != "function") {
|
355
|
+
var He = Error((Z || "React class") + ": " + B + " type `" + pe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[pe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
356
356
|
throw He.name = "Invariant Violation", He;
|
357
357
|
}
|
358
|
-
le =
|
358
|
+
le = g[pe](S, pe, Z, B, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
359
359
|
} catch (Ae) {
|
360
360
|
le = Ae;
|
361
361
|
}
|
362
|
-
le && !(le instanceof Error) && (
|
362
|
+
le && !(le instanceof Error) && (Bs(ye), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Z || "React class", B, pe, typeof le), Bs(null)), le instanceof Error && !(le.message in wt) && (wt[le.message] = !0, Bs(ye), j("Failed %s type: %s", B, le.message), Bs(null));
|
363
363
|
}
|
364
364
|
}
|
365
365
|
}
|
366
366
|
var pt = Array.isArray;
|
367
|
-
function Yt(
|
368
|
-
return pt(
|
367
|
+
function Yt(g) {
|
368
|
+
return pt(g);
|
369
369
|
}
|
370
|
-
function
|
370
|
+
function Ks(g) {
|
371
371
|
{
|
372
|
-
var S = typeof Symbol == "function" && Symbol.toStringTag, B = S &&
|
372
|
+
var S = typeof Symbol == "function" && Symbol.toStringTag, B = S && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
373
373
|
return B;
|
374
374
|
}
|
375
375
|
}
|
376
|
-
function on(
|
376
|
+
function on(g) {
|
377
377
|
try {
|
378
|
-
return ls(
|
378
|
+
return ls(g), !1;
|
379
379
|
} catch {
|
380
380
|
return !0;
|
381
381
|
}
|
382
382
|
}
|
383
|
-
function ls(
|
384
|
-
return "" +
|
383
|
+
function ls(g) {
|
384
|
+
return "" + g;
|
385
385
|
}
|
386
|
-
function Yr(
|
387
|
-
if (on(
|
388
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
386
|
+
function Yr(g) {
|
387
|
+
if (on(g))
|
388
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ks(g)), ls(g);
|
389
389
|
}
|
390
390
|
var St = G.ReactCurrentOwner, cs = {
|
391
391
|
key: !0,
|
392
392
|
ref: !0,
|
393
393
|
__self: !0,
|
394
394
|
__source: !0
|
395
|
-
},
|
395
|
+
}, Us, $s, Ts;
|
396
396
|
Ts = {};
|
397
|
-
function pr(
|
398
|
-
if (
|
399
|
-
var S = Object.getOwnPropertyDescriptor(
|
397
|
+
function pr(g) {
|
398
|
+
if (Rs.call(g, "ref")) {
|
399
|
+
var S = Object.getOwnPropertyDescriptor(g, "ref").get;
|
400
400
|
if (S && S.isReactWarning)
|
401
401
|
return !1;
|
402
402
|
}
|
403
|
-
return
|
403
|
+
return g.ref !== void 0;
|
404
404
|
}
|
405
|
-
function dr(
|
406
|
-
if (
|
407
|
-
var S = Object.getOwnPropertyDescriptor(
|
405
|
+
function dr(g) {
|
406
|
+
if (Rs.call(g, "key")) {
|
407
|
+
var S = Object.getOwnPropertyDescriptor(g, "key").get;
|
408
408
|
if (S && S.isReactWarning)
|
409
409
|
return !1;
|
410
410
|
}
|
411
|
-
return
|
411
|
+
return g.key !== void 0;
|
412
412
|
}
|
413
|
-
function mr(
|
414
|
-
if (typeof
|
413
|
+
function mr(g, S) {
|
414
|
+
if (typeof g.ref == "string" && St.current && S && St.current.stateNode !== S) {
|
415
415
|
var B = Ke(St.current.type);
|
416
|
-
Ts[B] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Ke(St.current.type),
|
416
|
+
Ts[B] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Ke(St.current.type), g.ref), Ts[B] = !0);
|
417
417
|
}
|
418
418
|
}
|
419
|
-
function ur(
|
419
|
+
function ur(g, S) {
|
420
420
|
{
|
421
421
|
var B = function() {
|
422
|
-
|
422
|
+
Us || (Us = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
|
423
423
|
};
|
424
|
-
B.isReactWarning = !0, Object.defineProperty(
|
424
|
+
B.isReactWarning = !0, Object.defineProperty(g, "key", {
|
425
425
|
get: B,
|
426
426
|
configurable: !0
|
427
427
|
});
|
428
428
|
}
|
429
429
|
}
|
430
|
-
function yr(
|
430
|
+
function yr(g, S) {
|
431
431
|
{
|
432
432
|
var B = function() {
|
433
|
-
|
433
|
+
$s || ($s = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
|
434
434
|
};
|
435
|
-
B.isReactWarning = !0, Object.defineProperty(
|
435
|
+
B.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
436
436
|
get: B,
|
437
437
|
configurable: !0
|
438
438
|
});
|
439
439
|
}
|
440
440
|
}
|
441
|
-
var _r = function(
|
441
|
+
var _r = function(g, S, B, Z, ye, xe, pe) {
|
442
442
|
var le = {
|
443
443
|
// This tag allows us to uniquely identify this as a React Element
|
444
444
|
$$typeof: n,
|
445
445
|
// Built-in properties that belong on the element
|
446
|
-
type:
|
446
|
+
type: g,
|
447
447
|
key: S,
|
448
448
|
ref: B,
|
449
449
|
props: pe,
|
@@ -467,53 +467,53 @@ function nb() {
|
|
467
467
|
value: ye
|
468
468
|
}), Object.freeze && (Object.freeze(le.props), Object.freeze(le)), le;
|
469
469
|
};
|
470
|
-
function ln(
|
470
|
+
function ln(g, S, B, Z, ye) {
|
471
471
|
{
|
472
472
|
var xe, pe = {}, le = null, He = null;
|
473
473
|
B !== void 0 && (Yr(B), le = "" + B), dr(S) && (Yr(S.key), le = "" + S.key), pr(S) && (He = S.ref, mr(S, ye));
|
474
474
|
for (xe in S)
|
475
|
-
|
476
|
-
if (
|
477
|
-
var Ae =
|
475
|
+
Rs.call(S, xe) && !cs.hasOwnProperty(xe) && (pe[xe] = S[xe]);
|
476
|
+
if (g && g.defaultProps) {
|
477
|
+
var Ae = g.defaultProps;
|
478
478
|
for (xe in Ae)
|
479
479
|
pe[xe] === void 0 && (pe[xe] = Ae[xe]);
|
480
480
|
}
|
481
481
|
if (le || He) {
|
482
|
-
var ze = typeof
|
482
|
+
var ze = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
|
483
483
|
le && ur(pe, ze), He && yr(pe, ze);
|
484
484
|
}
|
485
|
-
return _r(
|
485
|
+
return _r(g, le, He, ye, Z, St.current, pe);
|
486
486
|
}
|
487
487
|
}
|
488
488
|
var fr = G.ReactCurrentOwner, Vr = G.ReactDebugCurrentFrame;
|
489
|
-
function Vt(
|
490
|
-
if (
|
491
|
-
var S =
|
489
|
+
function Vt(g) {
|
490
|
+
if (g) {
|
491
|
+
var S = g._owner, B = Ut(g.type, g._source, S ? S.type : null);
|
492
492
|
Vr.setExtraStackFrame(B);
|
493
493
|
} else
|
494
494
|
Vr.setExtraStackFrame(null);
|
495
495
|
}
|
496
|
-
var
|
497
|
-
|
498
|
-
function gr(
|
499
|
-
return typeof
|
496
|
+
var Hs;
|
497
|
+
Hs = !1;
|
498
|
+
function gr(g) {
|
499
|
+
return typeof g == "object" && g !== null && g.$$typeof === n;
|
500
500
|
}
|
501
501
|
function Qr() {
|
502
502
|
{
|
503
503
|
if (fr.current) {
|
504
|
-
var
|
505
|
-
if (
|
504
|
+
var g = Ke(fr.current.type);
|
505
|
+
if (g)
|
506
506
|
return `
|
507
507
|
|
508
|
-
Check the render method of \`` +
|
508
|
+
Check the render method of \`` + g + "`.";
|
509
509
|
}
|
510
510
|
return "";
|
511
511
|
}
|
512
512
|
}
|
513
|
-
function cn(
|
513
|
+
function cn(g) {
|
514
514
|
{
|
515
|
-
if (
|
516
|
-
var S =
|
515
|
+
if (g !== void 0) {
|
516
|
+
var S = g.fileName.replace(/^.*[\\\/]/, ""), B = g.lineNumber;
|
517
517
|
return `
|
518
518
|
|
519
519
|
Check your code at ` + S + ":" + B + ".";
|
@@ -522,11 +522,11 @@ Check your code at ` + S + ":" + B + ".";
|
|
522
522
|
}
|
523
523
|
}
|
524
524
|
var Zr = {};
|
525
|
-
function Jr(
|
525
|
+
function Jr(g) {
|
526
526
|
{
|
527
527
|
var S = Qr();
|
528
528
|
if (!S) {
|
529
|
-
var B = typeof
|
529
|
+
var B = typeof g == "string" ? g : g.displayName || g.name;
|
530
530
|
B && (S = `
|
531
531
|
|
532
532
|
Check the top-level render call using <` + B + ">.");
|
@@ -534,47 +534,47 @@ Check the top-level render call using <` + B + ">.");
|
|
534
534
|
return S;
|
535
535
|
}
|
536
536
|
}
|
537
|
-
function ea(
|
537
|
+
function ea(g, S) {
|
538
538
|
{
|
539
|
-
if (!
|
539
|
+
if (!g._store || g._store.validated || g.key != null)
|
540
540
|
return;
|
541
|
-
|
541
|
+
g._store.validated = !0;
|
542
542
|
var B = Jr(S);
|
543
543
|
if (Zr[B])
|
544
544
|
return;
|
545
545
|
Zr[B] = !0;
|
546
546
|
var Z = "";
|
547
|
-
|
547
|
+
g && g._owner && g._owner !== fr.current && (Z = " It was passed a child from " + Ke(g._owner.type) + "."), Vt(g), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, Z), Vt(null);
|
548
548
|
}
|
549
549
|
}
|
550
|
-
function ta(
|
550
|
+
function ta(g, S) {
|
551
551
|
{
|
552
|
-
if (typeof
|
552
|
+
if (typeof g != "object")
|
553
553
|
return;
|
554
|
-
if (Yt(
|
555
|
-
for (var B = 0; B <
|
556
|
-
var Z =
|
554
|
+
if (Yt(g))
|
555
|
+
for (var B = 0; B < g.length; B++) {
|
556
|
+
var Z = g[B];
|
557
557
|
gr(Z) && ea(Z, S);
|
558
558
|
}
|
559
|
-
else if (gr(
|
560
|
-
|
561
|
-
else if (
|
562
|
-
var ye =
|
563
|
-
if (typeof ye == "function" && ye !==
|
564
|
-
for (var xe = ye.call(
|
559
|
+
else if (gr(g))
|
560
|
+
g._store && (g._store.validated = !0);
|
561
|
+
else if (g) {
|
562
|
+
var ye = $(g);
|
563
|
+
if (typeof ye == "function" && ye !== g.entries)
|
564
|
+
for (var xe = ye.call(g), pe; !(pe = xe.next()).done; )
|
565
565
|
gr(pe.value) && ea(pe.value, S);
|
566
566
|
}
|
567
567
|
}
|
568
568
|
}
|
569
|
-
function pn(
|
569
|
+
function pn(g) {
|
570
570
|
{
|
571
|
-
var S =
|
571
|
+
var S = g.type;
|
572
572
|
if (S == null || typeof S == "string")
|
573
573
|
return;
|
574
574
|
var B;
|
575
575
|
if (typeof S == "function")
|
576
576
|
B = S.propTypes;
|
577
|
-
else if (typeof S == "object" && (S.$$typeof ===
|
577
|
+
else if (typeof S == "object" && (S.$$typeof === f || // Note: Memo only checks outer props here.
|
578
578
|
// Inner props are checked in the reconciler.
|
579
579
|
S.$$typeof === T))
|
580
580
|
B = S.propTypes;
|
@@ -582,39 +582,39 @@ Check the top-level render call using <` + B + ">.");
|
|
582
582
|
return;
|
583
583
|
if (B) {
|
584
584
|
var Z = Ke(S);
|
585
|
-
vs(B,
|
586
|
-
} else if (S.PropTypes !== void 0 &&
|
587
|
-
|
585
|
+
vs(B, g.props, "prop", Z, g);
|
586
|
+
} else if (S.PropTypes !== void 0 && !Hs) {
|
587
|
+
Hs = !0;
|
588
588
|
var ye = Ke(S);
|
589
589
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ye || "Unknown");
|
590
590
|
}
|
591
591
|
typeof S.getDefaultProps == "function" && !S.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
592
592
|
}
|
593
593
|
}
|
594
|
-
function br(
|
594
|
+
function br(g) {
|
595
595
|
{
|
596
|
-
for (var S = Object.keys(
|
596
|
+
for (var S = Object.keys(g.props), B = 0; B < S.length; B++) {
|
597
597
|
var Z = S[B];
|
598
598
|
if (Z !== "children" && Z !== "key") {
|
599
|
-
Vt(
|
599
|
+
Vt(g), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Z), Vt(null);
|
600
600
|
break;
|
601
601
|
}
|
602
602
|
}
|
603
|
-
|
603
|
+
g.ref !== null && (Vt(g), j("Invalid attribute `ref` supplied to `React.Fragment`."), Vt(null));
|
604
604
|
}
|
605
605
|
}
|
606
|
-
function sa(
|
606
|
+
function sa(g, S, B, Z, ye, xe) {
|
607
607
|
{
|
608
|
-
var pe = ie(
|
608
|
+
var pe = ie(g);
|
609
609
|
if (!pe) {
|
610
610
|
var le = "";
|
611
|
-
(
|
611
|
+
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (le += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
612
612
|
var He = cn(ye);
|
613
613
|
He ? le += He : le += Qr();
|
614
614
|
var Ae;
|
615
|
-
|
615
|
+
g === null ? Ae = "null" : Yt(g) ? Ae = "array" : g !== void 0 && g.$$typeof === n ? (Ae = "<" + (Ke(g.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Ae = typeof g, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ae, le);
|
616
616
|
}
|
617
|
-
var ze = ln(
|
617
|
+
var ze = ln(g, S, B, ye, xe);
|
618
618
|
if (ze == null)
|
619
619
|
return ze;
|
620
620
|
if (pe) {
|
@@ -623,21 +623,21 @@ Check the top-level render call using <` + B + ">.");
|
|
623
623
|
if (Z)
|
624
624
|
if (Yt(et)) {
|
625
625
|
for (var Lt = 0; Lt < et.length; Lt++)
|
626
|
-
ta(et[Lt],
|
626
|
+
ta(et[Lt], g);
|
627
627
|
Object.freeze && Object.freeze(et);
|
628
628
|
} else
|
629
629
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
630
630
|
else
|
631
|
-
ta(et,
|
631
|
+
ta(et, g);
|
632
632
|
}
|
633
|
-
return
|
633
|
+
return g === o ? br(ze) : pn(ze), ze;
|
634
634
|
}
|
635
635
|
}
|
636
|
-
function xr(
|
637
|
-
return sa(
|
636
|
+
function xr(g, S, B) {
|
637
|
+
return sa(g, S, B, !0);
|
638
638
|
}
|
639
|
-
function dn(
|
640
|
-
return sa(
|
639
|
+
function dn(g, S, B) {
|
640
|
+
return sa(g, S, B, !1);
|
641
641
|
}
|
642
642
|
var mn = dn, un = xr;
|
643
643
|
Or.Fragment = o, Or.jsx = mn, Or.jsxs = un;
|
@@ -657,8 +657,8 @@ function vc(a, n) {
|
|
657
657
|
var r = Object.keys(a);
|
658
658
|
if (Object.getOwnPropertySymbols) {
|
659
659
|
var o = Object.getOwnPropertySymbols(a);
|
660
|
-
n && (o = o.filter(function(
|
661
|
-
return Object.getOwnPropertyDescriptor(a,
|
660
|
+
n && (o = o.filter(function(c) {
|
661
|
+
return Object.getOwnPropertyDescriptor(a, c).enumerable;
|
662
662
|
})), r.push.apply(r, o);
|
663
663
|
}
|
664
664
|
return r;
|
@@ -677,19 +677,19 @@ function Tc(a) {
|
|
677
677
|
function ob(a, n) {
|
678
678
|
if (a == null)
|
679
679
|
return {};
|
680
|
-
var r = {}, o = Object.keys(a),
|
681
|
-
for (
|
682
|
-
|
680
|
+
var r = {}, o = Object.keys(a), c, l;
|
681
|
+
for (l = 0; l < o.length; l++)
|
682
|
+
c = o[l], !(n.indexOf(c) >= 0) && (r[c] = a[c]);
|
683
683
|
return r;
|
684
684
|
}
|
685
685
|
function lb(a, n) {
|
686
686
|
if (a == null)
|
687
687
|
return {};
|
688
|
-
var r = ob(a, n), o,
|
688
|
+
var r = ob(a, n), o, c;
|
689
689
|
if (Object.getOwnPropertySymbols) {
|
690
|
-
var
|
691
|
-
for (
|
692
|
-
o = c
|
690
|
+
var l = Object.getOwnPropertySymbols(a);
|
691
|
+
for (c = 0; c < l.length; c++)
|
692
|
+
o = l[c], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(a, o) && (r[o] = a[o]);
|
693
693
|
}
|
694
694
|
return r;
|
695
695
|
}
|
@@ -702,18 +702,18 @@ function pb(a) {
|
|
702
702
|
}
|
703
703
|
function db(a, n) {
|
704
704
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(a)))) {
|
705
|
-
var r = [], o = !0,
|
705
|
+
var r = [], o = !0, c = !1, l = void 0;
|
706
706
|
try {
|
707
707
|
for (var m = a[Symbol.iterator](), _; !(o = (_ = m.next()).done) && (r.push(_.value), !(n && r.length === n)); o = !0)
|
708
708
|
;
|
709
|
-
} catch (
|
710
|
-
|
709
|
+
} catch (f) {
|
710
|
+
c = !0, l = f;
|
711
711
|
} finally {
|
712
712
|
try {
|
713
713
|
!o && m.return != null && m.return();
|
714
714
|
} finally {
|
715
|
-
if (
|
716
|
-
throw
|
715
|
+
if (c)
|
716
|
+
throw l;
|
717
717
|
}
|
718
718
|
}
|
719
719
|
return r;
|
@@ -752,8 +752,8 @@ function Ic(a, n) {
|
|
752
752
|
var r = Object.keys(a);
|
753
753
|
if (Object.getOwnPropertySymbols) {
|
754
754
|
var o = Object.getOwnPropertySymbols(a);
|
755
|
-
n && (o = o.filter(function(
|
756
|
-
return Object.getOwnPropertyDescriptor(a,
|
755
|
+
n && (o = o.filter(function(c) {
|
756
|
+
return Object.getOwnPropertyDescriptor(a, c).enumerable;
|
757
757
|
})), r.push.apply(r, o);
|
758
758
|
}
|
759
759
|
return r;
|
@@ -773,19 +773,19 @@ function _b() {
|
|
773
773
|
for (var a = arguments.length, n = new Array(a), r = 0; r < a; r++)
|
774
774
|
n[r] = arguments[r];
|
775
775
|
return function(o) {
|
776
|
-
return n.reduceRight(function(
|
777
|
-
return c
|
776
|
+
return n.reduceRight(function(c, l) {
|
777
|
+
return l(c);
|
778
778
|
}, o);
|
779
779
|
};
|
780
780
|
}
|
781
781
|
function Rr(a) {
|
782
782
|
return function n() {
|
783
|
-
for (var r = this, o = arguments.length,
|
784
|
-
l
|
785
|
-
return
|
786
|
-
for (var m = arguments.length, _ = new Array(m),
|
787
|
-
_[
|
788
|
-
return n.apply(r, [].concat(
|
783
|
+
for (var r = this, o = arguments.length, c = new Array(o), l = 0; l < o; l++)
|
784
|
+
c[l] = arguments[l];
|
785
|
+
return c.length >= a.length ? a.apply(this, c) : function() {
|
786
|
+
for (var m = arguments.length, _ = new Array(m), f = 0; f < m; f++)
|
787
|
+
_[f] = arguments[f];
|
788
|
+
return n.apply(r, [].concat(c, _));
|
789
789
|
};
|
790
790
|
};
|
791
791
|
}
|
@@ -841,17 +841,17 @@ function Db(a) {
|
|
841
841
|
Ha.initial(a), Ha.handler(n);
|
842
842
|
var r = {
|
843
843
|
current: a
|
844
|
-
}, o = Rr(Ab)(r, n),
|
844
|
+
}, o = Rr(Ab)(r, n), c = Rr(kb)(r), l = Rr(Ha.changes)(a), m = Rr(Ib)(r);
|
845
845
|
function _() {
|
846
846
|
var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(h) {
|
847
847
|
return h;
|
848
848
|
};
|
849
849
|
return Ha.selector(b), b(r.current);
|
850
850
|
}
|
851
|
-
function
|
852
|
-
_b(o,
|
851
|
+
function f(b) {
|
852
|
+
_b(o, c, l, m)(b);
|
853
853
|
}
|
854
|
-
return [_,
|
854
|
+
return [_, f];
|
855
855
|
}
|
856
856
|
function Ib(a, n) {
|
857
857
|
return jr(n) ? n(a.current) : n;
|
@@ -861,8 +861,8 @@ function kb(a, n) {
|
|
861
861
|
}
|
862
862
|
function Ab(a, n, r) {
|
863
863
|
return jr(n) ? n(a.current) : Object.keys(r).forEach(function(o) {
|
864
|
-
var
|
865
|
-
return (
|
864
|
+
var c;
|
865
|
+
return (c = n[o]) === null || c === void 0 ? void 0 : c.call(n, a.current[o]);
|
866
866
|
}), r;
|
867
867
|
}
|
868
868
|
var qb = {
|
@@ -874,12 +874,12 @@ var qb = {
|
|
874
874
|
};
|
875
875
|
function zb(a) {
|
876
876
|
return function n() {
|
877
|
-
for (var r = this, o = arguments.length,
|
878
|
-
l
|
879
|
-
return
|
880
|
-
for (var m = arguments.length, _ = new Array(m),
|
881
|
-
_[
|
882
|
-
return n.apply(r, [].concat(
|
877
|
+
for (var r = this, o = arguments.length, c = new Array(o), l = 0; l < o; l++)
|
878
|
+
c[l] = arguments[l];
|
879
|
+
return c.length >= a.length ? a.apply(this, c) : function() {
|
880
|
+
for (var m = arguments.length, _ = new Array(m), f = 0; f < m; f++)
|
881
|
+
_[f] = arguments[f];
|
882
|
+
return n.apply(r, [].concat(c, _));
|
883
883
|
};
|
884
884
|
};
|
885
885
|
}
|
@@ -918,10 +918,10 @@ var wp = {
|
|
918
918
|
}, Pb = function() {
|
919
919
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
920
920
|
r[o] = arguments[o];
|
921
|
-
return function(
|
922
|
-
return r.reduceRight(function(
|
923
|
-
return m(
|
924
|
-
},
|
921
|
+
return function(c) {
|
922
|
+
return r.reduceRight(function(l, m) {
|
923
|
+
return m(l);
|
924
|
+
}, c);
|
925
925
|
};
|
926
926
|
};
|
927
927
|
function vp(a, n) {
|
@@ -934,10 +934,10 @@ var Ob = {
|
|
934
934
|
msg: "operation is manually canceled"
|
935
935
|
};
|
936
936
|
function Di(a) {
|
937
|
-
var n = !1, r = new Promise(function(o,
|
938
|
-
a.then(function(
|
939
|
-
return n ?
|
940
|
-
}), a.catch(
|
937
|
+
var n = !1, r = new Promise(function(o, c) {
|
938
|
+
a.then(function(l) {
|
939
|
+
return n ? c(Ob) : o(l);
|
940
|
+
}), a.catch(c);
|
941
941
|
});
|
942
942
|
return r.cancel = function() {
|
943
943
|
return n = !0;
|
@@ -952,20 +952,20 @@ var Fb = qb.create({
|
|
952
952
|
}), Tp = cb(Fb, 2), Gr = Tp[0], an = Tp[1];
|
953
953
|
function Rb(a) {
|
954
954
|
var n = Mb.config(a), r = n.monaco, o = lb(n, ["monaco"]);
|
955
|
-
an(function(
|
955
|
+
an(function(c) {
|
956
956
|
return {
|
957
|
-
config: vp(
|
957
|
+
config: vp(c.config, o),
|
958
958
|
monaco: r
|
959
959
|
};
|
960
960
|
});
|
961
961
|
}
|
962
962
|
function Bb() {
|
963
963
|
var a = Gr(function(n) {
|
964
|
-
var r = n.monaco, o = n.isInitialized,
|
964
|
+
var r = n.monaco, o = n.isInitialized, c = n.resolve;
|
965
965
|
return {
|
966
966
|
monaco: r,
|
967
967
|
isInitialized: o,
|
968
|
-
resolve:
|
968
|
+
resolve: c
|
969
969
|
};
|
970
970
|
});
|
971
971
|
if (!a.isInitialized) {
|
@@ -988,10 +988,10 @@ function Ub(a) {
|
|
988
988
|
}
|
989
989
|
function $b(a) {
|
990
990
|
var n = Gr(function(o) {
|
991
|
-
var
|
991
|
+
var c = o.config, l = o.reject;
|
992
992
|
return {
|
993
|
-
config:
|
994
|
-
reject:
|
993
|
+
config: c,
|
994
|
+
reject: l
|
995
995
|
};
|
996
996
|
}), r = Ub("".concat(n.config.paths.vs, "/loader.js"));
|
997
997
|
return r.onload = function() {
|
@@ -1000,11 +1000,11 @@ function $b(a) {
|
|
1000
1000
|
}
|
1001
1001
|
function Hb() {
|
1002
1002
|
var a = Gr(function(r) {
|
1003
|
-
var o = r.config,
|
1003
|
+
var o = r.config, c = r.resolve, l = r.reject;
|
1004
1004
|
return {
|
1005
1005
|
config: o,
|
1006
|
-
resolve:
|
1007
|
-
reject:
|
1006
|
+
resolve: c,
|
1007
|
+
reject: l
|
1008
1008
|
};
|
1009
1009
|
}), n = window.require;
|
1010
1010
|
n.config(a.config), n(["vs/editor/editor.main"], function(r) {
|
@@ -1038,8 +1038,8 @@ function Yb({ children: a }) {
|
|
1038
1038
|
return is.createElement("div", { style: Xb.container }, a);
|
1039
1039
|
}
|
1040
1040
|
var Vb = Yb, Qb = Vb;
|
1041
|
-
function Zb({ width: a, height: n, isEditorReady: r, loading: o, _ref:
|
1042
|
-
return is.createElement("section", { style: { ...ki.wrapper, width: a, height: n }, ...m }, !r && is.createElement(Qb, null, o), is.createElement("div", { ref:
|
1041
|
+
function Zb({ width: a, height: n, isEditorReady: r, loading: o, _ref: c, className: l, wrapperProps: m }) {
|
1042
|
+
return is.createElement("section", { style: { ...ki.wrapper, width: a, height: n }, ...m }, !r && is.createElement(Qb, null, o), is.createElement("div", { ref: c, style: { ...ki.fullWidth, ...!r && ki.hide }, className: l }));
|
1043
1043
|
}
|
1044
1044
|
var Jb = Zb, Ip = Fi(Jb);
|
1045
1045
|
function ex(a) {
|
@@ -1055,7 +1055,7 @@ function tx(a, n, r = !0) {
|
|
1055
1055
|
var gt = tx;
|
1056
1056
|
function Ur() {
|
1057
1057
|
}
|
1058
|
-
function
|
1058
|
+
function ir(a, n, r, o) {
|
1059
1059
|
return sx(a, o) || rx(a, n, r, o);
|
1060
1060
|
}
|
1061
1061
|
function sx(a, n) {
|
@@ -1067,19 +1067,19 @@ function rx(a, n, r, o) {
|
|
1067
1067
|
function Ap(a, n) {
|
1068
1068
|
return a.Uri.parse(n);
|
1069
1069
|
}
|
1070
|
-
function ax({ original: a, modified: n, language: r, originalLanguage: o, modifiedLanguage:
|
1071
|
-
let [j, O] = ot(!1), [I, A] = ot(!0), R = Pe(null), U = Pe(null), se = Pe(null), me = Pe(G), ie = Pe(
|
1070
|
+
function ax({ original: a, modified: n, language: r, originalLanguage: o, modifiedLanguage: c, originalModelPath: l, modifiedModelPath: m, keepCurrentOriginalModel: _ = !1, keepCurrentModifiedModel: f = !1, theme: b = "light", loading: h = "Loading...", options: T = {}, height: M = "100%", width: F = "100%", className: P, wrapperProps: N = {}, beforeMount: $ = Ur, onMount: G = Ur }) {
|
1071
|
+
let [j, O] = ot(!1), [I, A] = ot(!0), R = Pe(null), U = Pe(null), se = Pe(null), me = Pe(G), ie = Pe($), xt = Pe(!1);
|
1072
1072
|
kp(() => {
|
1073
1073
|
let Y = Ri.init();
|
1074
1074
|
return Y.then((_e) => (U.current = _e) && A(!1)).catch((_e) => (_e == null ? void 0 : _e.type) !== "cancelation" && console.error("Monaco initialization: error:", _e)), () => R.current ? Fe() : Y.cancel();
|
1075
1075
|
}), gt(() => {
|
1076
1076
|
if (R.current && U.current) {
|
1077
|
-
let Y = R.current.getOriginalEditor(), _e =
|
1077
|
+
let Y = R.current.getOriginalEditor(), _e = ir(U.current, a || "", o || r || "text", l || "");
|
1078
1078
|
_e !== Y.getModel() && Y.setModel(_e);
|
1079
1079
|
}
|
1080
|
-
}, [
|
1080
|
+
}, [l], j), gt(() => {
|
1081
1081
|
if (R.current && U.current) {
|
1082
|
-
let Y = R.current.getModifiedEditor(), _e =
|
1082
|
+
let Y = R.current.getModifiedEditor(), _e = ir(U.current, n || "", c || r || "text", m || "");
|
1083
1083
|
_e !== Y.getModel() && Y.setModel(_e);
|
1084
1084
|
}
|
1085
1085
|
}, [m], j), gt(() => {
|
@@ -1090,8 +1090,8 @@ function ax({ original: a, modified: n, language: r, originalLanguage: o, modifi
|
|
1090
1090
|
(_e = (Y = R.current) == null ? void 0 : Y.getModel()) == null || _e.original.setValue(a || "");
|
1091
1091
|
}, [a], j), gt(() => {
|
1092
1092
|
let { original: Y, modified: _e } = R.current.getModel();
|
1093
|
-
U.current.editor.setModelLanguage(Y, o || r || "text"), U.current.editor.setModelLanguage(_e,
|
1094
|
-
}, [r, o,
|
1093
|
+
U.current.editor.setModelLanguage(Y, o || r || "text"), U.current.editor.setModelLanguage(_e, c || r || "text");
|
1094
|
+
}, [r, o, c], j), gt(() => {
|
1095
1095
|
var Y;
|
1096
1096
|
(Y = U.current) == null || Y.editor.setTheme(b);
|
1097
1097
|
}, [b], j), gt(() => {
|
@@ -1103,9 +1103,9 @@ function ax({ original: a, modified: n, language: r, originalLanguage: o, modifi
|
|
1103
1103
|
if (!U.current)
|
1104
1104
|
return;
|
1105
1105
|
ie.current(U.current);
|
1106
|
-
let Y =
|
1106
|
+
let Y = ir(U.current, a || "", o || r || "text", l || ""), _e = ir(U.current, n || "", c || r || "text", m || "");
|
1107
1107
|
(Ce = R.current) == null || Ce.setModel({ original: Y, modified: _e });
|
1108
|
-
}, [r, n,
|
1108
|
+
}, [r, n, c, a, o, l, m]), Ke = $r(() => {
|
1109
1109
|
var Y;
|
1110
1110
|
!xt.current && se.current && (R.current = U.current.editor.createDiffEditor(se.current, { automaticLayout: !0, ...T }), Et(), (Y = U.current) == null || Y.editor.setTheme(b), O(!0), xt.current = !0);
|
1111
1111
|
}, [T, b, Et]);
|
@@ -1117,7 +1117,7 @@ function ax({ original: a, modified: n, language: r, originalLanguage: o, modifi
|
|
1117
1117
|
function Fe() {
|
1118
1118
|
var _e, Ce, Se, lt;
|
1119
1119
|
let Y = (_e = R.current) == null ? void 0 : _e.getModel();
|
1120
|
-
_ || ((Ce = Y == null ? void 0 : Y.original) == null || Ce.dispose()),
|
1120
|
+
_ || ((Ce = Y == null ? void 0 : Y.original) == null || Ce.dispose()), f || ((Se = Y == null ? void 0 : Y.modified) == null || Se.dispose()), (lt = R.current) == null || lt.dispose();
|
1121
1121
|
}
|
1122
1122
|
return is.createElement(Ip, { width: F, height: M, isEditorReady: j, loading: h, _ref: se, className: P, wrapperProps: N });
|
1123
1123
|
}
|
@@ -1129,16 +1129,16 @@ function ox(a) {
|
|
1129
1129
|
}, [a]), n.current;
|
1130
1130
|
}
|
1131
1131
|
var lx = ox, ja = /* @__PURE__ */ new Map();
|
1132
|
-
function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, language:
|
1133
|
-
let [A, R] = ot(!1), [U, se] = ot(!0), me = Pe(null), ie = Pe(null), xt = Pe(null), Et = Pe(j), Ke = Pe(G), Fe = Pe(), Y = Pe(o), _e = lx(
|
1132
|
+
function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, language: c, path: l, theme: m = "light", line: _, loading: f = "Loading...", options: b = {}, overrideServices: h = {}, saveViewState: T = !0, keepCurrentModel: M = !1, width: F = "100%", height: P = "100%", className: N, wrapperProps: $ = {}, beforeMount: G = Ur, onMount: j = Ur, onChange: O, onValidate: I = Ur }) {
|
1133
|
+
let [A, R] = ot(!1), [U, se] = ot(!0), me = Pe(null), ie = Pe(null), xt = Pe(null), Et = Pe(j), Ke = Pe(G), Fe = Pe(), Y = Pe(o), _e = lx(l), Ce = Pe(!1), Se = Pe(!1);
|
1134
1134
|
kp(() => {
|
1135
1135
|
let J = Ri.init();
|
1136
1136
|
return J.then((be) => (me.current = be) && se(!1)).catch((be) => (be == null ? void 0 : be.type) !== "cancelation" && console.error("Monaco initialization: error:", be)), () => ie.current ? Nt() : J.cancel();
|
1137
1137
|
}), gt(() => {
|
1138
1138
|
var be, Oe, ht, De;
|
1139
|
-
let J =
|
1140
|
-
J !== ((be = ie.current) == null ? void 0 : be.getModel()) && (T && ja.set(_e, (Oe = ie.current) == null ? void 0 : Oe.saveViewState()), (ht = ie.current) == null || ht.setModel(J), T && ((De = ie.current) == null || De.restoreViewState(ja.get(
|
1141
|
-
}, [
|
1139
|
+
let J = ir(me.current, a || o || "", n || c || "", l || r || "");
|
1140
|
+
J !== ((be = ie.current) == null ? void 0 : be.getModel()) && (T && ja.set(_e, (Oe = ie.current) == null ? void 0 : Oe.saveViewState()), (ht = ie.current) == null || ht.setModel(J), T && ((De = ie.current) == null || De.restoreViewState(ja.get(l))));
|
1141
|
+
}, [l], A), gt(() => {
|
1142
1142
|
var J;
|
1143
1143
|
(J = ie.current) == null || J.updateOptions(b);
|
1144
1144
|
}, [b], A), gt(() => {
|
@@ -1146,8 +1146,8 @@ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
|
|
1146
1146
|
}, [o], A), gt(() => {
|
1147
1147
|
var be, Oe;
|
1148
1148
|
let J = (be = ie.current) == null ? void 0 : be.getModel();
|
1149
|
-
J &&
|
1150
|
-
}, [
|
1149
|
+
J && c && ((Oe = me.current) == null || Oe.editor.setModelLanguage(J, c));
|
1150
|
+
}, [c], A), gt(() => {
|
1151
1151
|
var J;
|
1152
1152
|
_ !== void 0 && ((J = ie.current) == null || J.revealLine(_));
|
1153
1153
|
}, [_], A), gt(() => {
|
@@ -1158,10 +1158,10 @@ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
|
|
1158
1158
|
var J;
|
1159
1159
|
if (!(!xt.current || !me.current) && !Ce.current) {
|
1160
1160
|
Ke.current(me.current);
|
1161
|
-
let be =
|
1161
|
+
let be = l || r, Oe = ir(me.current, o || a || "", n || c || "", be || "");
|
1162
1162
|
ie.current = (J = me.current) == null ? void 0 : J.editor.create(xt.current, { model: Oe, automaticLayout: !0, ...b }, h), T && ie.current.restoreViewState(ja.get(be)), me.current.editor.setTheme(m), _ !== void 0 && ie.current.revealLine(_), R(!0), Ce.current = !0;
|
1163
1163
|
}
|
1164
|
-
}, [a, n, r, o,
|
1164
|
+
}, [a, n, r, o, c, l, b, h, T, m, _]);
|
1165
1165
|
Ve(() => {
|
1166
1166
|
A && Et.current(ie.current, me.current);
|
1167
1167
|
}, [A]), Ve(() => {
|
@@ -1190,9 +1190,9 @@ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
|
|
1190
1190
|
}, [A, I]);
|
1191
1191
|
function Nt() {
|
1192
1192
|
var J, be;
|
1193
|
-
(J = Fe.current) == null || J.dispose(), M ? T && ja.set(
|
1193
|
+
(J = Fe.current) == null || J.dispose(), M ? T && ja.set(l, ie.current.saveViewState()) : (be = ie.current.getModel()) == null || be.dispose(), ie.current.dispose();
|
1194
1194
|
}
|
1195
|
-
return is.createElement(Ip, { width: F, height: P, isEditorReady: A, loading:
|
1195
|
+
return is.createElement(Ip, { width: F, height: P, isEditorReady: A, loading: f, _ref: xt, className: N, wrapperProps: $ });
|
1196
1196
|
}
|
1197
1197
|
var px = cx, dx = Fi(px);
|
1198
1198
|
const qc = {
|
@@ -60495,17 +60495,17 @@ else
|
|
60495
60495
|
function yx() {
|
60496
60496
|
const a = {}, n = {};
|
60497
60497
|
return Object.keys(qc).reduce((r, o) => {
|
60498
|
-
const
|
60498
|
+
const c = qc[o], l = ge[o], { mapObj: m, keys: _ } = _x(c, l);
|
60499
60499
|
return r.keyMapList[o] = m, r.keyList[o] = _, r;
|
60500
60500
|
}, { keyList: a, keyMapList: n }), { keyList: a, keyMapList: n };
|
60501
60501
|
}
|
60502
60502
|
function _x(a, n) {
|
60503
60503
|
const r = /* @__PURE__ */ new Map(), o = [];
|
60504
|
-
return a.forEach((
|
60504
|
+
return a.forEach((c) => {
|
60505
60505
|
var m;
|
60506
|
-
|
60507
|
-
const
|
60508
|
-
|
60506
|
+
c.title = n;
|
60507
|
+
const l = c.originalName || c.name;
|
60508
|
+
l !== "for...in" && (r.has(l) ? (m = r.get(l)) == null || m.push(c) : (o.push(l), r.set(l, [c])));
|
60509
60509
|
}), { mapObj: r, keys: o };
|
60510
60510
|
}
|
60511
60511
|
const { keyList: Cp, keyMapList: bt } = yx(), Br = [{
|
@@ -60585,8 +60585,8 @@ ${n}
|
|
60585
60585
|
}
|
60586
60586
|
const ne = new gx();
|
60587
60587
|
function bx(a) {
|
60588
|
-
const { name: n, libraryName: r, desc: o } = a,
|
60589
|
-
return
|
60588
|
+
const { name: n, libraryName: r, desc: o } = a, c = [`${ne.bold(n || r)} (library)`];
|
60589
|
+
return c.push(ne.delimiter), o && c.push(ne.paragraph(ne.bold(it.Description), ne.lineBreak, o)), c.join(c.length === 2 ? " " : ne.lineBreak);
|
60590
60590
|
}
|
60591
60591
|
function xx(a, n = 0, r = !0) {
|
60592
60592
|
const o = a[n];
|
@@ -60594,28 +60594,28 @@ function xx(a, n = 0, r = !0) {
|
|
60594
60594
|
return "";
|
60595
60595
|
if (o.isEnumMember)
|
60596
60596
|
return `${ne.bold(o.name)} (enum member)${o.value === void 0 ? "" : ` = ${o.value}`}`;
|
60597
|
-
const
|
60598
|
-
if (a.length > 1 && P.push(ne.italic(`+${a.length - 1} overloads`)), P.push(ne.delimiter), _ && P.push(ne.paragraph(Array.isArray(_) ? _.join(ne.lineBreak) : _ || "")),
|
60597
|
+
const c = /(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent), { name: l, title: m, desc: _, type: f, syntax: b, returns: h, remarks: T, fields: M, members: F } = o, P = [`${ne.bold(l)} (${m})`];
|
60598
|
+
if (a.length > 1 && P.push(ne.italic(`+${a.length - 1} overloads`)), P.push(ne.delimiter), _ && P.push(ne.paragraph(Array.isArray(_) ? _.join(ne.lineBreak) : _ || "")), f && P.push(ne.paragraph(ne.bold(it.Type), ne.italic(f))), b && b.length && P.push(ne.paragraph(ne.bold(it.Syntax), ne.pineCode(b.join(ne.lineBreak)))), h && P.push(ne.paragraph(ne.bold(it.Returns), ne.lineBreak, h.join(ne.lineBreak))), T && T.length && a.length <= 1) {
|
60599
60599
|
let N = "";
|
60600
60600
|
typeof T == "string" ? N = T : N = T.join(ne.lineBreak) || "", N.length < 200 && P.push(ne.paragraph(ne.bold(it.Remarks), ne.lineBreak, N));
|
60601
60601
|
}
|
60602
60602
|
if (M) {
|
60603
60603
|
const N = [];
|
60604
|
-
for (const
|
60605
|
-
const G =
|
60606
|
-
N.push(`${
|
60604
|
+
for (const $ of M) {
|
60605
|
+
const G = $.desc ? ` - ${$.desc}` : "";
|
60606
|
+
N.push(`${$.name} (${$.type})${G}`);
|
60607
60607
|
}
|
60608
60608
|
P.push(ne.paragraph(ne.bold(it.Fields), ne.lineBreak, N.join(ne.paragraphBreak)));
|
60609
60609
|
}
|
60610
60610
|
if (F) {
|
60611
60611
|
const N = [];
|
60612
|
-
for (const
|
60613
|
-
const G =
|
60614
|
-
N.push(`${
|
60612
|
+
for (const $ of F) {
|
60613
|
+
const G = $.desc ? ` - ${$.desc}` : "";
|
60614
|
+
N.push(`${$.name}${$.value ? ` (${$.value})` : ""}${G}`);
|
60615
60615
|
}
|
60616
60616
|
P.push(ne.paragraph(ne.bold(it.EnumMembers), ne.lineBreak, N.join(ne.paragraphBreak)));
|
60617
60617
|
}
|
60618
|
-
return r && P.push(ne.italic(`${ne.code(
|
60618
|
+
return r && P.push(ne.italic(`${ne.code(c ? "⌘" : "Ctrl")} + ${ux.clickOnKeywordForMoreHelp}`)), P.join(P.length === 2 ? " " : ne.lineBreak);
|
60619
60619
|
}
|
60620
60620
|
const Ai = "tcc_cursor_position", hx = ["submenuitem.EditorContextPeek", "editor.action.peekDefinition"];
|
60621
60621
|
function wx(a) {
|
@@ -60624,8 +60624,8 @@ function wx(a) {
|
|
60624
60624
|
function vx(a) {
|
60625
60625
|
const n = a.getContribution("editor.contrib.contextmenu"), r = n == null ? void 0 : n._getMenuActions;
|
60626
60626
|
n._getMenuActions = function() {
|
60627
|
-
return r.apply(n, arguments).filter(function(
|
60628
|
-
return !hx.includes(
|
60627
|
+
return r.apply(n, arguments).filter(function(c) {
|
60628
|
+
return !hx.includes(c.id);
|
60629
60629
|
});
|
60630
60630
|
};
|
60631
60631
|
}
|
@@ -60729,6 +60729,9 @@ class Tx {
|
|
60729
60729
|
get userFuncs() {
|
60730
60730
|
return this._userFunctions;
|
60731
60731
|
}
|
60732
|
+
get userEnums() {
|
60733
|
+
return this._userEnums;
|
60734
|
+
}
|
60732
60735
|
set nextIsBracket(n) {
|
60733
60736
|
this._nextIsBracket = n;
|
60734
60737
|
}
|
@@ -60750,20 +60753,20 @@ class Tx {
|
|
60750
60753
|
_initUserDefind() {
|
60751
60754
|
this._userFuncArgsCache.clear(), this._userNamespaceCache.clear(), this._userOutermostNsItems.clear(), this._methodNamespaceCache.clear(), this._methodFuncs.clear();
|
60752
60755
|
}
|
60753
|
-
setUserDefind(n, r, o,
|
60756
|
+
setUserDefind(n, r, o, c, l) {
|
60754
60757
|
this._initUserDefind();
|
60755
|
-
const m = this._mergeTreeSlices(this._generateTreeSlice(bt.methods, "method"), this._generateTreeSlice(
|
60756
|
-
this._getMethodNamespaceCache(m), this._userMethods =
|
60758
|
+
const m = this._mergeTreeSlices(this._generateTreeSlice(bt.methods, "method"), this._generateTreeSlice(c, "method"));
|
60759
|
+
this._getMethodNamespaceCache(m), this._userMethods = c, this._userTypes = r, this._userFunctions = n, this._userEnums = l;
|
60757
60760
|
const _ = this._generateTreeSlice(n, "fun");
|
60758
|
-
this._userSuggestions = this._getAllUserCompletionItems(_, this._generateTreeSlice(r, "type"), this._generateTreeSlice(o, "var"), this._generateTreeSlice(
|
60761
|
+
this._userSuggestions = this._getAllUserCompletionItems(_, this._generateTreeSlice(r, "type"), this._generateTreeSlice(o, "var"), this._generateTreeSlice(l, "enum")), this._getUserFuncArgumentsCompletionItemsToCache(_);
|
60759
60762
|
}
|
60760
|
-
_getAllUserCompletionItems(n, r, o,
|
60761
|
-
const
|
60762
|
-
return [..._, ...
|
60763
|
+
_getAllUserCompletionItems(n, r, o, c) {
|
60764
|
+
const l = this._getEnumCompletionItems(c), m = this._getUserVariableCompletionItems(o), _ = this._getTypeCompletionItems(r, !0), f = this._getFunctionCompletionItems(n, void 0, !0);
|
60765
|
+
return [..._, ...f, ...m, ...l, ...this._userOutermostNsItems.values()];
|
60763
60766
|
}
|
60764
60767
|
_getAllCompletionItems() {
|
60765
|
-
const { variables: n, keywords: r, types: o, functions:
|
60766
|
-
return [...
|
60768
|
+
const { variables: n, keywords: r, types: o, functions: c } = this._builtinSubtreeCache, l = this._getVariableCompletionItems(n), m = this._getKeywordCompletionItems(r), _ = this._getTypeCompletionItems(o), f = this._getFunctionCompletionItems(c), b = this._getSnippetsCompletionsList();
|
60769
|
+
return [...l, ...m, ..._, ...f, ...this._outermostNsItems.values(), ...b];
|
60767
60770
|
}
|
60768
60771
|
_getNodeKey(n, r) {
|
60769
60772
|
return `${r}_${n}`;
|
@@ -60771,12 +60774,12 @@ class Tx {
|
|
60771
60774
|
_mergeTreeSlices(...n) {
|
60772
60775
|
const r = /* @__PURE__ */ new Map();
|
60773
60776
|
for (const o of n)
|
60774
|
-
for (const [
|
60775
|
-
const m = r.get(
|
60776
|
-
m ? r.set(
|
60777
|
+
for (const [c, l] of o) {
|
60778
|
+
const m = r.get(c);
|
60779
|
+
m ? r.set(c, {
|
60777
60780
|
...m,
|
60778
|
-
children: this._mergeTreeSlices(
|
60779
|
-
}) : r.set(
|
60781
|
+
children: this._mergeTreeSlices(l.children, m.children)
|
60782
|
+
}) : r.set(c, l);
|
60780
60783
|
}
|
60781
60784
|
return r;
|
60782
60785
|
}
|
@@ -60790,14 +60793,14 @@ class Tx {
|
|
60790
60793
|
}
|
60791
60794
|
_generateTreeSlice(n, r) {
|
60792
60795
|
const o = /* @__PURE__ */ new Map();
|
60793
|
-
for (const [
|
60794
|
-
const [m, ..._] =
|
60795
|
-
let h = /* @__PURE__ */ new Map(), T =
|
60796
|
+
for (const [c, l] of n) {
|
60797
|
+
const [m, ..._] = c.split("."), f = _.length > 0, b = o.get(this._getNodeKey(m, f ? "ns" : r));
|
60798
|
+
let h = /* @__PURE__ */ new Map(), T = l.map((F) => ({
|
60796
60799
|
...F,
|
60797
|
-
name:
|
60798
|
-
})), M = this._getNodeKey(
|
60799
|
-
if (
|
60800
|
-
const F = /* @__PURE__ */ new Map([[_.join("."),
|
60800
|
+
name: c
|
60801
|
+
})), M = this._getNodeKey(c, r);
|
60802
|
+
if (f && r !== "type") {
|
60803
|
+
const F = /* @__PURE__ */ new Map([[_.join("."), l]]);
|
60801
60804
|
T = [{
|
60802
60805
|
name: m,
|
60803
60806
|
title: ge.namespace
|
@@ -60814,90 +60817,90 @@ class Tx {
|
|
60814
60817
|
return o;
|
60815
60818
|
}
|
60816
60819
|
_getBuiltinsCacheFragment() {
|
60817
|
-
const { keywords: n, variables: r, constants: o, types:
|
60820
|
+
const { keywords: n, variables: r, constants: o, types: c, functions: l, annotations: m } = bt, _ = this._generateTreeSlice(m, "an");
|
60818
60821
|
return _.delete("an_@version="), this._builtinSubtreeCache = {
|
60819
60822
|
keywords: this._generateTreeSlice(n, "key"),
|
60820
60823
|
variables: this._mergeTreeSlices(this._generateTreeSlice(r, "var"), this._generateTreeSlice(o, "var")),
|
60821
|
-
types: this._generateTreeSlice(
|
60822
|
-
functions: this._generateTreeSlice(
|
60824
|
+
types: this._generateTreeSlice(c, "type"),
|
60825
|
+
functions: this._generateTreeSlice(l, "fun"),
|
60823
60826
|
annotations: _
|
60824
60827
|
}, this._builtinSubtreeCache;
|
60825
60828
|
}
|
60826
60829
|
_getVariableCompletionItems(n, r) {
|
60827
|
-
const o = [],
|
60828
|
-
for (const [
|
60829
|
-
const { value: _, children:
|
60830
|
-
if (
|
60830
|
+
const o = [], c = [];
|
60831
|
+
for (const [l, m] of n) {
|
60832
|
+
const { value: _, children: f } = m;
|
60833
|
+
if (l.startsWith("ns")) {
|
60831
60834
|
const b = this._getNamespaceCompletionItem(_[0]);
|
60832
60835
|
if (r) {
|
60833
|
-
|
60836
|
+
c.push({ ...b });
|
60834
60837
|
const T = `${r}.${b.label}`;
|
60835
60838
|
b.label = T, b.insertText = T;
|
60836
60839
|
}
|
60837
|
-
const h = this._getVariableCompletionItems(
|
60838
|
-
r || this._outermostNsItems.set(
|
60840
|
+
const h = this._getVariableCompletionItems(f, b.label);
|
60841
|
+
r || this._outermostNsItems.set(l, b), o.push(...h);
|
60839
60842
|
} else {
|
60840
60843
|
const b = this._getVariableCompletionItem(_[0], r ? 3 : 2);
|
60841
60844
|
if (r) {
|
60842
|
-
|
60845
|
+
c.push({ ...b });
|
60843
60846
|
const { label: h } = b;
|
60844
60847
|
b.label = `${r}.${h}`, b.insertText = `${r}.${b.insertText}`, b.filterText = `${h}\r`;
|
60845
60848
|
}
|
60846
60849
|
o.push(b);
|
60847
60850
|
}
|
60848
60851
|
}
|
60849
|
-
return
|
60852
|
+
return c.length && r && this._mergeCompletions(r, c), o;
|
60850
60853
|
}
|
60851
60854
|
_setUserVariableSubItems(n, r) {
|
60852
60855
|
var b, h, T, M;
|
60853
60856
|
let o = [];
|
60854
|
-
const
|
60855
|
-
|
60857
|
+
const c = wx(n.type || ""), l = this._methodNamespaceCache.get(c), m = r ? `${r}.${n.name}` : n.name;
|
60858
|
+
l && (o = l.filter((F) => {
|
60856
60859
|
var G;
|
60857
|
-
const P = `${
|
60858
|
-
if (
|
60860
|
+
const P = `${c}.${F.label}`, N = bt.methods.get(P) || this._userMethods.get(P), $ = N == null ? void 0 : N.some((j) => !j.thisType || j.thisType[0].includes("<>") || j.thisType.includes(n.type || ""));
|
60861
|
+
if ($ && N) {
|
60859
60862
|
const j = this._getNamedArgumentsCompletionList(((G = N[0]) == null ? void 0 : G.args) || []), O = `${m}.${F.label}`;
|
60860
60863
|
this._userFuncArgsCache.set(O, j), this._methodFuncs.set(O, N);
|
60861
60864
|
}
|
60862
|
-
return
|
60865
|
+
return $;
|
60863
60866
|
}));
|
60864
|
-
const { types: _ } = bt,
|
60865
|
-
if (
|
60866
|
-
for (const F of
|
60867
|
-
const P = F.name, N = F.type,
|
60868
|
-
this._setUserVariableSubItems({ name: P, type: N }, n.name), o.push({
|
60867
|
+
const { types: _ } = bt, f = ((h = (b = this._userTypes.get(c)) == null ? void 0 : b[0]) == null ? void 0 : h.fields) || ((M = (T = _.get(c)) == null ? void 0 : T[0]) == null ? void 0 : M.fields);
|
60868
|
+
if (f)
|
60869
|
+
for (const F of f) {
|
60870
|
+
const P = F.name, N = F.type, $ = this._getInstanceTypeCompletionItemProp({ name: P, type: N, desc: F.desc ? [F.desc] : void 0 });
|
60871
|
+
this._setUserVariableSubItems({ name: P, type: N }, n.name), o.push({ ...$ });
|
60869
60872
|
}
|
60870
60873
|
o.length && this._mergeUserCompletions(m, o);
|
60871
60874
|
}
|
60872
60875
|
_getUserVariableCompletionItems(n, r) {
|
60873
|
-
const o = [],
|
60874
|
-
for (const [
|
60875
|
-
const { value: _, children:
|
60876
|
-
if (this._setUserVariableSubItems(_[0]),
|
60876
|
+
const o = [], c = [];
|
60877
|
+
for (const [l, m] of n) {
|
60878
|
+
const { value: _, children: f } = m;
|
60879
|
+
if (this._setUserVariableSubItems(_[0]), l.startsWith("ns")) {
|
60877
60880
|
const b = this._getNamespaceCompletionItem(_[0]);
|
60878
60881
|
if (r) {
|
60879
|
-
|
60882
|
+
c.push({ ...b });
|
60880
60883
|
const T = `${r}.${b.label}`;
|
60881
60884
|
b.label = T, b.insertText = T;
|
60882
60885
|
}
|
60883
|
-
const h = this._getUserVariableCompletionItems(
|
60884
|
-
r || this._userOutermostNsItems.set(
|
60886
|
+
const h = this._getUserVariableCompletionItems(f, b.label);
|
60887
|
+
r || this._userOutermostNsItems.set(l, b), o.push(...h);
|
60885
60888
|
} else {
|
60886
60889
|
const b = this._getVariableCompletionItem(_[0], r ? 2 : 1, !1);
|
60887
60890
|
if (r) {
|
60888
|
-
|
60891
|
+
c.push({ ...b });
|
60889
60892
|
const { label: h } = b;
|
60890
60893
|
b.label = `${r}.${h}`, b.insertText = `${r}.${b.insertText}`, b.filterText = `${h}\r`;
|
60891
60894
|
}
|
60892
60895
|
o.push(b);
|
60893
60896
|
}
|
60894
60897
|
}
|
60895
|
-
return
|
60898
|
+
return c.length && r && this._mergeUserCompletions(r, c), o;
|
60896
60899
|
}
|
60897
60900
|
_getTypeCompletionItems(n, r = !1) {
|
60898
60901
|
const o = [];
|
60899
|
-
for (const [,
|
60900
|
-
const { value:
|
60902
|
+
for (const [, c] of n) {
|
60903
|
+
const { value: l } = c, m = r ? this._getCustomTypeCompletionItem(l[0]) : this._getTypeCompletionItem(l[0]);
|
60901
60904
|
o.push(m);
|
60902
60905
|
}
|
60903
60906
|
return o;
|
@@ -60905,94 +60908,94 @@ class Tx {
|
|
60905
60908
|
_getEnumCompletionItems(n) {
|
60906
60909
|
const r = [];
|
60907
60910
|
for (const [, o] of n) {
|
60908
|
-
const { value:
|
60909
|
-
r.push(
|
60910
|
-
const m =
|
60911
|
-
m != null && m.length && this._getEnumMemberCompletionItems(
|
60911
|
+
const { value: c } = o, l = this._getEnumCompletionItem(c[0]);
|
60912
|
+
r.push(l);
|
60913
|
+
const m = c[0].members;
|
60914
|
+
m != null && m.length && this._getEnumMemberCompletionItems(c[0].name, m);
|
60912
60915
|
}
|
60913
60916
|
return r;
|
60914
60917
|
}
|
60915
60918
|
_getEnumMemberCompletionItems(n, r) {
|
60916
60919
|
const o = [];
|
60917
|
-
for (const
|
60918
|
-
const { name:
|
60919
|
-
o.push(
|
60920
|
+
for (const c of r) {
|
60921
|
+
const { name: l, desc: m, value: _ } = c, f = this._getEnumMemberCompletionItem({ name: l, desc: m ? [m] : void 0, value: _ });
|
60922
|
+
o.push(f);
|
60920
60923
|
}
|
60921
60924
|
o.length && this._mergeUserCompletions(n, o);
|
60922
60925
|
}
|
60923
60926
|
_getAnnotationCompletionItems(n) {
|
60924
60927
|
const r = [];
|
60925
60928
|
for (const [, o] of n) {
|
60926
|
-
const { value:
|
60927
|
-
r.push(
|
60929
|
+
const { value: c } = o, l = this._getAnnotationCompletionItem(c[0]);
|
60930
|
+
r.push(l);
|
60928
60931
|
}
|
60929
60932
|
return r;
|
60930
60933
|
}
|
60931
60934
|
_getKeywordCompletionItems(n) {
|
60932
60935
|
const r = [];
|
60933
60936
|
for (const [, o] of n) {
|
60934
|
-
const { value:
|
60935
|
-
r.push(
|
60937
|
+
const { value: c } = o, l = this._getKeywordCompletionItem(c[0]);
|
60938
|
+
r.push(l);
|
60936
60939
|
}
|
60937
60940
|
return r;
|
60938
60941
|
}
|
60939
60942
|
_getMethodNamespaceCache(n, r) {
|
60940
60943
|
const o = [];
|
60941
|
-
for (const [
|
60942
|
-
const { value: m, children: _ } =
|
60943
|
-
if (
|
60944
|
-
const
|
60944
|
+
for (const [c, l] of n) {
|
60945
|
+
const { value: m, children: _ } = l;
|
60946
|
+
if (c.startsWith("ns")) {
|
60947
|
+
const f = this._getNamespaceCompletionItem(m[0]);
|
60945
60948
|
if (r) {
|
60946
|
-
o.push({ ...
|
60947
|
-
const b = `${r}.${
|
60948
|
-
|
60949
|
+
o.push({ ...f });
|
60950
|
+
const b = `${r}.${f.label}`;
|
60951
|
+
f.label = b, f.insertText = b;
|
60949
60952
|
}
|
60950
|
-
this._getMethodNamespaceCache(_,
|
60953
|
+
this._getMethodNamespaceCache(_, f.label);
|
60951
60954
|
} else {
|
60952
|
-
const
|
60953
|
-
if (m.length > 1 && (
|
60954
|
-
o.push({ ...
|
60955
|
-
const { label: b } =
|
60956
|
-
|
60955
|
+
const f = this._getFunctionCompletionItem(m[0], r ? 3 : 2);
|
60956
|
+
if (m.length > 1 && (f.detail = `${f.detail} (+${m.length - 1} overloads)`), r) {
|
60957
|
+
o.push({ ...f });
|
60958
|
+
const { label: b } = f;
|
60959
|
+
f.label = `${r}.${b}`, f.insertText = `${r}.${f.insertText}`, f.originInsertText = `${r}.${f.originInsertText}`, f.filterText = `${b}\r`;
|
60957
60960
|
}
|
60958
60961
|
}
|
60959
60962
|
}
|
60960
60963
|
r && this._methodNamespaceCache.set(r, o);
|
60961
60964
|
}
|
60962
60965
|
_getFunctionCompletionItems(n, r, o = !1) {
|
60963
|
-
const
|
60966
|
+
const c = [], l = [];
|
60964
60967
|
for (const [m, _] of n) {
|
60965
|
-
const { value:
|
60968
|
+
const { value: f, children: b } = _;
|
60966
60969
|
if (m.startsWith("ns")) {
|
60967
|
-
const h = this._getNamespaceCompletionItem(
|
60970
|
+
const h = this._getNamespaceCompletionItem(f[0]);
|
60968
60971
|
if (r) {
|
60969
|
-
|
60972
|
+
l.push({ ...h });
|
60970
60973
|
const M = `${r}.${h.label}`;
|
60971
60974
|
h.label = M, h.insertText = M;
|
60972
60975
|
}
|
60973
60976
|
const T = this._getFunctionCompletionItems(b, h.label, o);
|
60974
|
-
r || (o ? this._userOutermostNsItems.set(m, h) : this._outermostNsItems.set(m, h)),
|
60977
|
+
r || (o ? this._userOutermostNsItems.set(m, h) : this._outermostNsItems.set(m, h)), c.push(...T);
|
60975
60978
|
} else {
|
60976
|
-
const h = this._getFunctionCompletionItem(
|
60977
|
-
if (
|
60978
|
-
|
60979
|
+
const h = this._getFunctionCompletionItem(f[0], r ? 3 : 2, !o);
|
60980
|
+
if (f.length > 1 && (h.detail = `${h.detail} (+${f.length - 1} overloads)`), r) {
|
60981
|
+
l.push({ ...h });
|
60979
60982
|
const { label: T } = h;
|
60980
60983
|
h.label = `${r}.${T}`, h.insertText = `${r}.${h.insertText}`, h.originInsertText = `${r}.${h.originInsertText}`, h.filterText = `${T}\r`;
|
60981
60984
|
}
|
60982
|
-
|
60985
|
+
c.push(h);
|
60983
60986
|
}
|
60984
60987
|
}
|
60985
|
-
return
|
60988
|
+
return l.length && r && (o ? this._mergeUserCompletions(r, l) : this._mergeCompletions(r, l)), c;
|
60986
60989
|
}
|
60987
60990
|
_getSnippetsCompletionsList() {
|
60988
60991
|
return mx.map((n) => {
|
60989
|
-
const { label: r, kind: o, insertText:
|
60990
|
-
value: this._formatter.pineCode(
|
60992
|
+
const { label: r, kind: o, insertText: c } = n, l = r.charAt(0).toUpperCase() + r.substring(1), m = {
|
60993
|
+
value: this._formatter.pineCode(c.replace(/\${\d:([^}]+)}|\${\d}/g, "$1"))
|
60991
60994
|
};
|
60992
60995
|
return {
|
60993
60996
|
label: r,
|
60994
|
-
detail: `(${
|
60995
|
-
insertText:
|
60997
|
+
detail: `(${l} ${o})`,
|
60998
|
+
insertText: c,
|
60996
60999
|
insertTextRules: $e.CompletionItemInsertTextRule.InsertAsSnippet,
|
60997
61000
|
sortText: `2_${r}`,
|
60998
61001
|
kind: $e.CompletionItemKind.Snippet,
|
@@ -61001,76 +61004,76 @@ class Tx {
|
|
61001
61004
|
});
|
61002
61005
|
}
|
61003
61006
|
_getFuncArgumentsCompletionItemsToCache(n, r) {
|
61004
|
-
for (const [o,
|
61005
|
-
const { name:
|
61007
|
+
for (const [o, c] of n) {
|
61008
|
+
const { name: l } = c.value[0];
|
61006
61009
|
if (o.startsWith("ns"))
|
61007
|
-
this._getFuncArgumentsCompletionItemsToCache(
|
61010
|
+
this._getFuncArgumentsCompletionItemsToCache(c.children, r ? `${r}.${l}` : l);
|
61008
61011
|
else {
|
61009
61012
|
const m = /* @__PURE__ */ new Map();
|
61010
|
-
|
61013
|
+
c.value.reduce((b, h) => {
|
61011
61014
|
const T = h.args;
|
61012
61015
|
return T && T.length && T.forEach((M) => {
|
61013
61016
|
b.set(M.name, M);
|
61014
61017
|
}), b;
|
61015
61018
|
}, m);
|
61016
|
-
const _ = this._getNamedArgumentsCompletionList([...m.values()]),
|
61017
|
-
this._funcArgsCache.set(
|
61019
|
+
const _ = this._getNamedArgumentsCompletionList([...m.values()]), f = r ? `${r}.${l}` : l;
|
61020
|
+
this._funcArgsCache.set(f, _);
|
61018
61021
|
}
|
61019
61022
|
}
|
61020
61023
|
}
|
61021
61024
|
_getUserFuncArgumentsCompletionItemsToCache(n, r) {
|
61022
|
-
for (const [o,
|
61023
|
-
const { name:
|
61025
|
+
for (const [o, c] of n) {
|
61026
|
+
const { name: l } = c.value[0];
|
61024
61027
|
if (o.startsWith("ns"))
|
61025
|
-
this._getUserFuncArgumentsCompletionItemsToCache(
|
61028
|
+
this._getUserFuncArgumentsCompletionItemsToCache(c.children, r ? `${r}.${l}` : l);
|
61026
61029
|
else {
|
61027
61030
|
const m = /* @__PURE__ */ new Map();
|
61028
|
-
|
61031
|
+
c.value.reduce((b, h) => {
|
61029
61032
|
const T = h.args;
|
61030
61033
|
return T && T.length && T.forEach((M) => {
|
61031
61034
|
b.set(M.name, M);
|
61032
61035
|
}), b;
|
61033
61036
|
}, m);
|
61034
|
-
const _ = this._getNamedArgumentsCompletionList([...m.values()]),
|
61035
|
-
this._userFuncArgsCache.set(
|
61037
|
+
const _ = this._getNamedArgumentsCompletionList([...m.values()]), f = r ? `${r}.${l}` : l;
|
61038
|
+
this._userFuncArgsCache.set(f, _);
|
61036
61039
|
}
|
61037
61040
|
}
|
61038
61041
|
}
|
61039
61042
|
_getNamedArgumentsCompletionList(n) {
|
61040
61043
|
return n.map((r) => {
|
61041
|
-
const { name: o, desc:
|
61044
|
+
const { name: o, desc: c, displayType: l } = r, m = `${o} = `, _ = Array.isArray(c) ? c.join(this._formatter.delimiter) : c || "";
|
61042
61045
|
return {
|
61043
61046
|
label: m,
|
61044
61047
|
documentation: {
|
61045
61048
|
value: this._formatter.paragraph(this._formatter.bold(ge.Description), this._formatter.lineBreak, _)
|
61046
61049
|
},
|
61047
61050
|
insertText: m,
|
61048
|
-
detail: `(${ge.parameter}) ${ge.types} ${
|
61051
|
+
detail: `(${ge.parameter}) ${ge.types} ${l}`,
|
61049
61052
|
kind: $e.CompletionItemKind.Text,
|
61050
61053
|
sortText: `0_${m}`
|
61051
61054
|
};
|
61052
61055
|
});
|
61053
61056
|
}
|
61054
61057
|
_getVariableCompletionItem(n, r = 2, o = !0) {
|
61055
|
-
const
|
61056
|
-
|
61058
|
+
const c = this._extractExamples(n), l = this._extractDescription(n), m = [this._createDescriptionSection(l)];
|
61059
|
+
c.length ? m.push(this._createExampleSection(c)) : n.syntax && n.syntax.length && m.push(this._createSyntaxSection(n.syntax));
|
61057
61060
|
const _ = {
|
61058
61061
|
value: m.join(this._formatter.lineBreak)
|
61059
|
-
},
|
61062
|
+
}, f = o ? ge.variables : ge.userDefinedVariable;
|
61060
61063
|
return {
|
61061
61064
|
documentation: _,
|
61062
61065
|
label: n.name,
|
61063
61066
|
insertText: n.name,
|
61064
61067
|
kind: $e.CompletionItemKind.Variable,
|
61065
61068
|
sortText: `${r}_${n.name}`,
|
61066
|
-
detail: `(${
|
61069
|
+
detail: `(${f}) ${n.type}`
|
61067
61070
|
};
|
61068
61071
|
}
|
61069
61072
|
_getKeywordCompletionItem(n, r = 2) {
|
61070
|
-
const o = this._extractExamples(n),
|
61071
|
-
return o.length ?
|
61073
|
+
const o = this._extractExamples(n), c = this._extractDescription(n), l = [this._createDescriptionSection(c)];
|
61074
|
+
return o.length ? l.push(this._createExampleSection(o)) : n.syntax && n.syntax.length && l.push(this._createSyntaxSection(n.syntax)), {
|
61072
61075
|
documentation: {
|
61073
|
-
value:
|
61076
|
+
value: l.join(this._formatter.lineBreak)
|
61074
61077
|
},
|
61075
61078
|
label: n.name,
|
61076
61079
|
insertText: n.name,
|
@@ -61146,20 +61149,20 @@ class Tx {
|
|
61146
61149
|
}
|
61147
61150
|
_getFunctionCompletionItem(n, r = 2, o = !0) {
|
61148
61151
|
var F;
|
61149
|
-
const
|
61150
|
-
|
61151
|
-
const
|
61152
|
+
const c = n.returnedTypes && n.returnedTypes[0] || n.syntax && n.syntax[0] && ((F = n.syntax[0].split("→").pop()) == null ? void 0 : F.trim()), l = this._extractExamples(n), m = this._extractDescription(n), _ = [this._createDescriptionSection(m)];
|
61153
|
+
l.length ? _.push(this._createExampleSection(l)) : n.syntax && n.syntax.length && _.push(this._createSyntaxSection(n.syntax)), n.returns && n.returns.length && _.push(this._createReturnSection(n.returns));
|
61154
|
+
const f = {
|
61152
61155
|
value: _.join(this._formatter.lineBreak)
|
61153
61156
|
}, b = n.name, h = o ? ge.functions : ge.userDefinedFunction, T = n.template, M = T ? `${fx(b)}<\${1}>` : b;
|
61154
61157
|
return {
|
61155
|
-
documentation:
|
61158
|
+
documentation: f,
|
61156
61159
|
label: T ? `${b.replace(/<.+>/, "")}<type>` : b,
|
61157
61160
|
kind: $e.CompletionItemKind.Function,
|
61158
61161
|
sortText: `${r}_${b}`,
|
61159
61162
|
insertTextRules: $e.CompletionItemInsertTextRule.InsertAsSnippet,
|
61160
61163
|
insertText: M + this.bracketsPostfix,
|
61161
61164
|
originInsertText: M,
|
61162
|
-
detail: `(${h}) ${ge.returns} ${
|
61165
|
+
detail: `(${h}) ${ge.returns} ${c}`,
|
61163
61166
|
command: {
|
61164
61167
|
id: "tcc.editor.function",
|
61165
61168
|
title: "",
|
@@ -61170,10 +61173,10 @@ class Tx {
|
|
61170
61173
|
};
|
61171
61174
|
}
|
61172
61175
|
_getAnnotationCompletionItem(n) {
|
61173
|
-
const r = this._extractDescription(n), o = this._extractExamples(n),
|
61174
|
-
return o.length &&
|
61176
|
+
const r = this._extractDescription(n), o = this._extractExamples(n), c = [this._createDescriptionSection(r)];
|
61177
|
+
return o.length && c.push(this._createExampleSection(o)), {
|
61175
61178
|
documentation: {
|
61176
|
-
value:
|
61179
|
+
value: c.join(this._formatter.lineBreak)
|
61177
61180
|
},
|
61178
61181
|
label: n.name,
|
61179
61182
|
insertText: n.name.replace("@", ""),
|
@@ -61254,31 +61257,34 @@ class Dx {
|
|
61254
61257
|
value: void 0
|
61255
61258
|
}), 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._userEnums = /* @__PURE__ */ new Map(), this._overloadsFuncs = [];
|
61256
61259
|
}
|
61260
|
+
get overloadsFuncs() {
|
61261
|
+
return this._overloadsFuncs;
|
61262
|
+
}
|
61257
61263
|
setUserDefined(n, r) {
|
61258
|
-
const { functions: o, variables:
|
61259
|
-
o && (this._userFunctions = o),
|
61264
|
+
const { functions: o, variables: c, types: l, methods: m, imports: _, enums: f } = n;
|
61265
|
+
o && (this._userFunctions = o), c && (this._userVariables = c), l && (this._userTypes = l), m && (this._userMethods = m), _ && (this._imports = _), f && (this._userEnums = f), this._overloadsFuncs = r;
|
61260
61266
|
}
|
61261
|
-
parseLineContentFuncVar(n, r, o,
|
61262
|
-
let
|
61263
|
-
const m =
|
61264
|
-
if (this._removeString(
|
61267
|
+
parseLineContentFuncVar(n, r, o, c) {
|
61268
|
+
let l = (o == null ? void 0 : o.getLineContent(r)) || "";
|
61269
|
+
const m = l.indexOf("//");
|
61270
|
+
if (this._removeString(l).indexOf("//") !== -1 && m <= n)
|
61265
61271
|
return;
|
61266
|
-
|
61267
|
-
const _ = this._getVariablesDocVal(
|
61272
|
+
l = l + " ";
|
61273
|
+
const _ = this._getVariablesDocVal(l, n, r);
|
61268
61274
|
if (_) {
|
61269
61275
|
if (_.isBuildIn) {
|
61270
|
-
const h = o == null ? void 0 : o.getWordAtPosition(
|
61276
|
+
const h = o == null ? void 0 : o.getWordAtPosition(c || new eb(r, n));
|
61271
61277
|
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("="))
|
61272
61278
|
return null;
|
61273
61279
|
}
|
61274
61280
|
return _;
|
61275
61281
|
}
|
61276
|
-
const
|
61277
|
-
if (
|
61278
|
-
return
|
61279
|
-
const b =
|
61282
|
+
const f = this._getFuncsDocVal(l, n, r);
|
61283
|
+
if (f)
|
61284
|
+
return f;
|
61285
|
+
const b = l.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);
|
61280
61286
|
if (b) {
|
61281
|
-
const h = this._matchContent(b,
|
61287
|
+
const h = this._matchContent(b, l, n);
|
61282
61288
|
if (h) {
|
61283
61289
|
const T = this._getBuildInOther(h.name);
|
61284
61290
|
if (T)
|
@@ -61298,10 +61304,10 @@ class Dx {
|
|
61298
61304
|
}
|
61299
61305
|
}
|
61300
61306
|
}
|
61301
|
-
return this._getImportDocVal(
|
61307
|
+
return this._getImportDocVal(l, n, r);
|
61302
61308
|
}
|
61303
61309
|
_getImportDocVal(n, r, o) {
|
61304
|
-
const
|
61310
|
+
const c = new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)", "g"), l = new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)", "g"), m = n.match(c);
|
61305
61311
|
if (m) {
|
61306
61312
|
const _ = this._matchContent(m, n, r);
|
61307
61313
|
if (_) {
|
@@ -61309,9 +61315,9 @@ class Dx {
|
|
61309
61315
|
if (b)
|
61310
61316
|
return b;
|
61311
61317
|
}
|
61312
|
-
const
|
61313
|
-
if (
|
61314
|
-
const b = this._matchContent(
|
61318
|
+
const f = n.match(l);
|
61319
|
+
if (f) {
|
61320
|
+
const b = this._matchContent(f, n, r);
|
61315
61321
|
if (b) {
|
61316
61322
|
for (const [h, T] of this._imports)
|
61317
61323
|
if (T.name === b.name)
|
@@ -61328,16 +61334,16 @@ class Dx {
|
|
61328
61334
|
return bt.methods.get(n);
|
61329
61335
|
}
|
61330
61336
|
_getBuildInOther(n) {
|
61331
|
-
const { keywords: r, variables: o, constants:
|
61332
|
-
return r.get(n) || o.get(n) ||
|
61337
|
+
const { keywords: r, variables: o, constants: c, types: l } = bt;
|
61338
|
+
return r.get(n) || o.get(n) || c.get(n) || l.get(n);
|
61333
61339
|
}
|
61334
61340
|
parseCurrentInputFunc(n, r = !1, o = !1) {
|
61335
|
-
let
|
61336
|
-
for (;
|
61337
|
-
const
|
61338
|
-
if (
|
61339
|
-
const b =
|
61340
|
-
if (
|
61341
|
+
let c = n.length - 1, l = 0, m = r, _ = o;
|
61342
|
+
for (; c >= 0; ) {
|
61343
|
+
const f = n.charAt(c);
|
61344
|
+
if (c -= 1, /['"]/.test(f)) {
|
61345
|
+
const b = f;
|
61346
|
+
if (f === "'") {
|
61341
61347
|
if (m) {
|
61342
61348
|
m = !1;
|
61343
61349
|
continue;
|
@@ -61346,38 +61352,38 @@ class Dx {
|
|
61346
61352
|
_ = !1;
|
61347
61353
|
continue;
|
61348
61354
|
}
|
61349
|
-
for (;
|
61350
|
-
const h = n.charAt(
|
61351
|
-
if (
|
61355
|
+
for (; c >= 0; ) {
|
61356
|
+
const h = n.charAt(c);
|
61357
|
+
if (c -= 1, h === b)
|
61352
61358
|
break;
|
61353
61359
|
}
|
61354
61360
|
}
|
61355
|
-
if (!(m || _) && (/\)/.test(
|
61356
|
-
if (
|
61357
|
-
|
61361
|
+
if (!(m || _) && (/\)/.test(f) && (l += 1), /\(/.test(f))) {
|
61362
|
+
if (l > 0) {
|
61363
|
+
l -= 1;
|
61358
61364
|
continue;
|
61359
61365
|
}
|
61360
61366
|
let b = "";
|
61361
|
-
for (;
|
61362
|
-
const h = n.charAt(
|
61363
|
-
if (
|
61367
|
+
for (; c >= 0; ) {
|
61368
|
+
const h = n.charAt(c);
|
61369
|
+
if (!(/\s/.test(h) && !b)) {
|
61364
61370
|
if (/[^\w.]/.test(h))
|
61365
61371
|
break;
|
61366
|
-
b = h + b;
|
61372
|
+
c -= 1, b = h + b;
|
61367
61373
|
}
|
61368
61374
|
}
|
61369
61375
|
if (b)
|
61370
61376
|
return {
|
61371
61377
|
funcName: b,
|
61372
|
-
startIndex:
|
61378
|
+
startIndex: c + 1
|
61373
61379
|
};
|
61374
61380
|
}
|
61375
61381
|
}
|
61376
61382
|
}
|
61377
61383
|
parseCurrentInputFuncAndArg(n, r = !1, o = !1) {
|
61378
|
-
const { funcName:
|
61379
|
-
if (
|
61380
|
-
let m = n.slice(
|
61384
|
+
const { funcName: c, startIndex: l } = this.parseCurrentInputFunc(n, r, o) || {};
|
61385
|
+
if (c && typeof l == "number") {
|
61386
|
+
let m = n.slice(l + c.length).trim().slice(1), _ = -1;
|
61381
61387
|
if (r && (_ = m.lastIndexOf("'")), o) {
|
61382
61388
|
const h = m.lastIndexOf('"');
|
61383
61389
|
(h !== -1 && h < _ || _ === -1) && (_ = h);
|
@@ -61388,7 +61394,8 @@ class Dx {
|
|
61388
61394
|
return T.length <= 1 ? "" : T[0].trim();
|
61389
61395
|
});
|
61390
61396
|
return {
|
61391
|
-
|
61397
|
+
startIndex: l,
|
61398
|
+
funcName: c,
|
61392
61399
|
args: b
|
61393
61400
|
};
|
61394
61401
|
}
|
@@ -61397,36 +61404,36 @@ class Dx {
|
|
61397
61404
|
return n.replace(/\\"|\\'/g, "").replace(/"[^"]*"|'[^']*'/g, "");
|
61398
61405
|
}
|
61399
61406
|
_getVariablesDocVal(n, r, o) {
|
61400
|
-
const
|
61401
|
-
if (
|
61402
|
-
const
|
61403
|
-
if (
|
61407
|
+
const c = 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);
|
61408
|
+
if (c) {
|
61409
|
+
const l = this._matchContent(c, n, r);
|
61410
|
+
if (l) {
|
61404
61411
|
const m = {
|
61405
61412
|
docValue: void 0,
|
61406
61413
|
isBuildIn: !0,
|
61407
61414
|
index: 0
|
61408
|
-
}, _ = this._getBuildInOther(
|
61415
|
+
}, _ = this._getBuildInOther(l.name);
|
61409
61416
|
if (_)
|
61410
61417
|
return m.docValue = _, m;
|
61411
|
-
const
|
61412
|
-
if (
|
61413
|
-
return Object.assign(m, { docValue: [
|
61414
|
-
const b = this._getUserTypesDocVal(
|
61418
|
+
const f = this._getUserVariablesDocVal(l.name, r, o);
|
61419
|
+
if (f)
|
61420
|
+
return Object.assign(m, { docValue: [f], isBuildIn: !1 });
|
61421
|
+
const b = this._getUserTypesDocVal(l.name);
|
61415
61422
|
if (b)
|
61416
61423
|
return Object.assign(m, { docValue: b, isBuildIn: !1 });
|
61417
|
-
const h = this._getTypesAndFileds(n,
|
61424
|
+
const h = this._getTypesAndFileds(n, l.name, r, o);
|
61418
61425
|
if (h && typeof h != "string")
|
61419
61426
|
return Object.assign(m, { docValue: [h], isBuildIn: !1 });
|
61420
|
-
const T = this._getUserEnumsDocVal(
|
61427
|
+
const T = this._getUserEnumsDocVal(l, r);
|
61421
61428
|
if (T)
|
61422
61429
|
return Object.assign(m, { docValue: T, isBuildIn: !1 });
|
61423
61430
|
}
|
61424
61431
|
}
|
61425
61432
|
}
|
61426
61433
|
_getUserVariablesDocVal(n, r, o) {
|
61427
|
-
const m = [...this._userVariables.get(n) || []].sort((_,
|
61428
|
-
const
|
61429
|
-
return ((
|
61434
|
+
const m = [...this._userVariables.get(n) || []].sort((_, f) => (f.scope || 0) - (_.scope || 0)).find((_) => {
|
61435
|
+
const f = _.range;
|
61436
|
+
return ((f == null ? void 0 : f.startColumn) || 0) <= r && ((f == null ? void 0 : f.startLineNumber) || 0) <= o && ((f == null ? void 0 : f.endLineNumber) || 0) >= o;
|
61430
61437
|
});
|
61431
61438
|
if (m)
|
61432
61439
|
return m.title = ge.userDefinedVariable, m.type = this._arrayTypeTransform(m.type), m;
|
@@ -61437,35 +61444,35 @@ class Dx {
|
|
61437
61444
|
return r[0].title = ge.userDefinedType, r;
|
61438
61445
|
}
|
61439
61446
|
_getUserEnumsDocVal(n, r) {
|
61440
|
-
var
|
61441
|
-
const { endIndex: o, name:
|
61442
|
-
let m =
|
61443
|
-
|
61447
|
+
var f;
|
61448
|
+
const { endIndex: o, name: c } = n, l = c.split(".");
|
61449
|
+
let m = l[0];
|
61450
|
+
l.length > 2 && (m = l.slice(0, 2).join("."));
|
61444
61451
|
const _ = this._userEnums.get(m);
|
61445
61452
|
if (_ && _.length) {
|
61446
61453
|
_[0].title = ge.enum;
|
61447
|
-
const b =
|
61454
|
+
const b = l[l.length - 1], h = (f = _[0].members) == null ? void 0 : f.find((T) => T.name === b);
|
61448
61455
|
if (!h || r < o - b.length)
|
61449
61456
|
return _;
|
61450
61457
|
if (r > o - b.length)
|
61451
61458
|
return [h];
|
61452
61459
|
}
|
61453
61460
|
}
|
61454
|
-
_getTypesAndFileds(n, r, o,
|
61455
|
-
var
|
61461
|
+
_getTypesAndFileds(n, r, o, c) {
|
61462
|
+
var l, m;
|
61456
61463
|
if (r.includes(".")) {
|
61457
61464
|
const _ = r.split(".");
|
61458
|
-
let
|
61465
|
+
let f = _[0], b, h = null, T = n.indexOf(r, o - r.length) + 1, M = T + f.length - 1;
|
61459
61466
|
for (const F of _.slice(1)) {
|
61460
61467
|
if (!h) {
|
61461
|
-
const P = T <= o && M >= o, N = this._getUserVariablesDocVal(
|
61468
|
+
const P = T <= o && M >= o, N = this._getUserVariablesDocVal(f, o, c);
|
61462
61469
|
if (P && N)
|
61463
61470
|
return N;
|
61464
61471
|
h = N == null ? void 0 : N.type;
|
61465
61472
|
}
|
61466
61473
|
if (h) {
|
61467
61474
|
b = h, T = M + 2, M = M + F.length + 1;
|
61468
|
-
const P = this._userTypes.get(h) || bt.types.get(h), N = (m = (
|
61475
|
+
const P = this._userTypes.get(h) || bt.types.get(h), N = (m = (l = P == null ? void 0 : P[0]) == null ? void 0 : l.fields) == null ? void 0 : m.find(($) => $.name === F);
|
61469
61476
|
if (N && T <= o && M >= o)
|
61470
61477
|
return {
|
61471
61478
|
name: `${h}.${F}`,
|
@@ -61475,38 +61482,38 @@ class Dx {
|
|
61475
61482
|
};
|
61476
61483
|
h = N == null ? void 0 : N.type;
|
61477
61484
|
} else
|
61478
|
-
|
61485
|
+
f = `${f}.${F}`, M = M + F.length + 1;
|
61479
61486
|
}
|
61480
61487
|
return b;
|
61481
61488
|
}
|
61482
61489
|
}
|
61483
61490
|
_getFuncsDocVal(n, r, o) {
|
61484
|
-
const
|
61485
|
-
if (
|
61486
|
-
const
|
61487
|
-
if (
|
61491
|
+
const c = n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);
|
61492
|
+
if (c) {
|
61493
|
+
const l = this._matchContent(c, n, r);
|
61494
|
+
if (l) {
|
61488
61495
|
const m = {
|
61489
61496
|
docValue: void 0,
|
61490
61497
|
isBuildIn: !0,
|
61491
|
-
endIndex:
|
61498
|
+
endIndex: l.endIndex,
|
61492
61499
|
index: 0
|
61493
|
-
}, _ = this._getBuildInFunc(
|
61500
|
+
}, _ = this._getBuildInFunc(l.name);
|
61494
61501
|
if (_)
|
61495
|
-
return m.index = this._getOverloadsFuncIndex(_, r,
|
61496
|
-
const
|
61497
|
-
if (
|
61498
|
-
return m.index = this._getOverloadsFuncIndex(
|
61499
|
-
const b = this._getUserVarFuncsDocVal(n,
|
61502
|
+
return m.index = this._getOverloadsFuncIndex(_, r, l.name, o), Object.assign(m, { docValue: _ });
|
61503
|
+
const f = this._getUserFuncsDocVal(l.name);
|
61504
|
+
if (f)
|
61505
|
+
return m.index = this._getOverloadsFuncIndex(f, r, l.name, o), Object.assign(m, { docValue: f, isBuildIn: !1 });
|
61506
|
+
const b = this._getUserVarFuncsDocVal(n, l.name, r, o);
|
61500
61507
|
if (b)
|
61501
61508
|
return Object.assign(m, { docValue: [b], isBuildIn: !1 });
|
61502
61509
|
}
|
61503
61510
|
}
|
61504
61511
|
}
|
61505
|
-
_getOverloadsFuncIndex(n, r, o,
|
61512
|
+
_getOverloadsFuncIndex(n, r, o, c) {
|
61506
61513
|
if (n.length > 1) {
|
61507
|
-
const
|
61508
|
-
if (
|
61509
|
-
return
|
61514
|
+
const l = this._overloadsFuncs.find((m) => m.name === o && m.line === c && m.startColumn <= r && m.endColumn >= r);
|
61515
|
+
if (l)
|
61516
|
+
return l.index;
|
61510
61517
|
}
|
61511
61518
|
return 0;
|
61512
61519
|
}
|
@@ -61526,17 +61533,17 @@ class Dx {
|
|
61526
61533
|
return r;
|
61527
61534
|
}
|
61528
61535
|
}
|
61529
|
-
_getUserVarFuncsDocVal(n, r, o,
|
61530
|
-
var
|
61536
|
+
_getUserVarFuncsDocVal(n, r, o, c) {
|
61537
|
+
var l;
|
61531
61538
|
if (r.includes(".")) {
|
61532
|
-
const m = r.split("."), _ = this._getTypesAndFileds(n, r, o,
|
61539
|
+
const m = r.split("."), _ = this._getTypesAndFileds(n, r, o, c);
|
61533
61540
|
if (typeof _ == "string") {
|
61534
61541
|
const b = `${this._arrayTypeTransform(_).replace(/<[^<>]+>/, "").replace(/(series|simple|const|input)\s+([\w\d.]+)/, "$2")}.${m.pop()}`, h = this._getBuildInMethod(b);
|
61535
61542
|
if (h) {
|
61536
|
-
const T = this._getOverloadsFuncIndex(h, o, b,
|
61543
|
+
const T = this._getOverloadsFuncIndex(h, o, b, c);
|
61537
61544
|
return { ...h[0], name: b, index: T };
|
61538
61545
|
}
|
61539
|
-
return (
|
61546
|
+
return (l = this._getUserMethodsDocVal(b)) == null ? void 0 : l[0];
|
61540
61547
|
} else
|
61541
61548
|
return _;
|
61542
61549
|
}
|
@@ -61545,26 +61552,26 @@ class Dx {
|
|
61545
61552
|
return n.includes("[]") ? `array<${n.replace("[]", "")}>` : n;
|
61546
61553
|
}
|
61547
61554
|
_matchContent(n, r, o) {
|
61548
|
-
let
|
61549
|
-
for (const
|
61550
|
-
|
61551
|
-
const m = r.indexOf(
|
61552
|
-
if (
|
61555
|
+
let c = 0;
|
61556
|
+
for (const l of n) {
|
61557
|
+
c = o - l.length;
|
61558
|
+
const m = r.indexOf(l, c);
|
61559
|
+
if (c = m + l.length, this._judgeVal(r, m, c) && m + 1 <= o && c >= o)
|
61553
61560
|
return {
|
61554
|
-
name:
|
61555
|
-
endIndex:
|
61561
|
+
name: l,
|
61562
|
+
endIndex: c
|
61556
61563
|
};
|
61557
61564
|
}
|
61558
61565
|
}
|
61559
61566
|
_judgeVal(n, r, o) {
|
61560
|
-
const
|
61561
|
-
if (
|
61567
|
+
const c = n.charAt(r - 1), l = /[\w\d."'/]/;
|
61568
|
+
if (l.test(c))
|
61562
61569
|
return !1;
|
61563
61570
|
const m = n.charAt(o);
|
61564
|
-
return !
|
61571
|
+
return !l.test(m);
|
61565
61572
|
}
|
61566
61573
|
}
|
61567
|
-
const
|
61574
|
+
const Ps = new Dx();
|
61568
61575
|
var Za = { exports: {} };
|
61569
61576
|
/**
|
61570
61577
|
* @license
|
@@ -61577,9 +61584,9 @@ var Za = { exports: {} };
|
|
61577
61584
|
Za.exports;
|
61578
61585
|
(function(a, n) {
|
61579
61586
|
(function() {
|
61580
|
-
var r, o = "4.17.21",
|
61587
|
+
var r, o = "4.17.21", c = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", _ = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", b = 500, h = "__lodash_placeholder__", T = 1, M = 2, F = 4, P = 1, N = 2, $ = 1, G = 2, j = 4, O = 8, I = 16, A = 32, R = 64, U = 128, se = 256, me = 512, ie = 30, xt = "...", Et = 800, Ke = 16, Fe = 1, Y = 2, _e = 3, Ce = 1 / 0, Se = 9007199254740991, lt = 17976931348623157e292, Nt = NaN, J = 4294967295, be = J - 1, Oe = J >>> 1, ht = [
|
61581
61588
|
["ary", U],
|
61582
|
-
["bind",
|
61589
|
+
["bind", $],
|
61583
61590
|
["bindKey", G],
|
61584
61591
|
["curry", O],
|
61585
61592
|
["curryRight", I],
|
@@ -61587,11 +61594,11 @@ Za.exports;
|
|
61587
61594
|
["partial", A],
|
61588
61595
|
["partialRight", R],
|
61589
61596
|
["rearg", se]
|
61590
|
-
], De = "[object Arguments]", os = "[object Array]", lr = "[object AsyncFunction]", Kt = "[object Boolean]", Xt = "[object Date]",
|
61591
|
-
|
61592
|
-
td + "+" + oo + "(?=" + [Ji,
|
61593
|
-
|
61594
|
-
|
61597
|
+
], De = "[object Arguments]", os = "[object Array]", lr = "[object AsyncFunction]", Kt = "[object Boolean]", Xt = "[object Date]", Os = "[object DOMException]", Fs = "[object Error]", ws = "[object Function]", Xr = "[object GeneratorFunction]", ct = "[object Map]", Ut = "[object Number]", Rs = "[object Null]", wt = "[object Object]", cr = "[object Promise]", Bs = "[object Proxy]", vs = "[object RegExp]", pt = "[object Set]", Yt = "[object String]", Ks = "[object Symbol]", on = "[object Undefined]", ls = "[object WeakMap]", Yr = "[object WeakSet]", St = "[object ArrayBuffer]", cs = "[object DataView]", Us = "[object Float32Array]", $s = "[object Float64Array]", Ts = "[object Int8Array]", pr = "[object Int16Array]", dr = "[object Int32Array]", mr = "[object Uint8Array]", ur = "[object Uint8ClampedArray]", yr = "[object Uint16Array]", _r = "[object Uint32Array]", ln = /\b__p \+= '';/g, fr = /\b(__p \+=) '' \+/g, Vr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Vt = /&(?:amp|lt|gt|quot|#39);/g, Hs = /[&<>"']/g, gr = RegExp(Vt.source), Qr = RegExp(Hs.source), cn = /<%-([\s\S]+?)%>/g, Zr = /<%([\s\S]+?)%>/g, Jr = /<%=([\s\S]+?)%>/g, ea = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ta = /^\w*$/, pn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, br = /[\\^$.*+?()[\]{}|]/g, sa = RegExp(br.source), xr = /^\s+/, dn = /\s/, mn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, un = /\{\n\/\* \[wrapped with (.+)\] \*/, g = /,? & /, S = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, B = /[()=,{}\[\]\/\s]/, Z = /\\(\\)?/g, ye = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, xe = /\w*$/, pe = /^[-+]0x[0-9a-f]+$/i, le = /^0b[01]+$/i, He = /^\[object .+?Constructor\]$/, Ae = /^0o[0-7]+$/i, ze = /^(?:0|[1-9]\d*)$/, et = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Lt = /($^)/, ra = /['\n\r\u2028\u2029\\]/g, tt = "\\ud800-\\udfff", jp = "\\u0300-\\u036f", Wp = "\\ufe20-\\ufe2f", Gp = "\\u20d0-\\u20ff", Gi = jp + Wp + Gp, Xi = "\\u2700-\\u27bf", Yi = "a-z\\xdf-\\xf6\\xf8-\\xff", Xp = "\\xac\\xb1\\xd7\\xf7", Yp = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Vp = "\\u2000-\\u206f", Qp = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Vi = "A-Z\\xc0-\\xd6\\xd8-\\xde", Qi = "\\ufe0e\\ufe0f", Zi = Xp + Yp + Vp + Qp, yn = "['’]", Zp = "[" + tt + "]", Ji = "[" + Zi + "]", aa = "[" + Gi + "]", eo = "\\d+", Jp = "[" + Xi + "]", to = "[" + Yi + "]", so = "[^" + tt + Zi + eo + Xi + Yi + Vi + "]", _n = "\\ud83c[\\udffb-\\udfff]", ed = "(?:" + aa + "|" + _n + ")", ro = "[^" + tt + "]", fn = "(?:\\ud83c[\\udde6-\\uddff]){2}", gn = "[\\ud800-\\udbff][\\udc00-\\udfff]", js = "[" + Vi + "]", ao = "\\u200d", no = "(?:" + to + "|" + so + ")", td = "(?:" + js + "|" + so + ")", io = "(?:" + yn + "(?:d|ll|m|re|s|t|ve))?", oo = "(?:" + yn + "(?:D|LL|M|RE|S|T|VE))?", lo = ed + "?", co = "[" + Qi + "]?", sd = "(?:" + ao + "(?:" + [ro, fn, gn].join("|") + ")" + co + lo + ")*", rd = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ad = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", po = co + lo + sd, nd = "(?:" + [Jp, fn, gn].join("|") + ")" + po, id = "(?:" + [ro + aa + "?", aa, fn, gn, Zp].join("|") + ")", od = RegExp(yn, "g"), ld = RegExp(aa, "g"), bn = RegExp(_n + "(?=" + _n + ")|" + id + po, "g"), cd = RegExp([
|
61598
|
+
js + "?" + to + "+" + io + "(?=" + [Ji, js, "$"].join("|") + ")",
|
61599
|
+
td + "+" + oo + "(?=" + [Ji, js + no, "$"].join("|") + ")",
|
61600
|
+
js + "?" + no + "+" + io,
|
61601
|
+
js + "+" + oo,
|
61595
61602
|
ad,
|
61596
61603
|
rd,
|
61597
61604
|
eo,
|
@@ -61628,9 +61635,9 @@ Za.exports;
|
|
61628
61635
|
"parseInt",
|
61629
61636
|
"setTimeout"
|
61630
61637
|
], ud = -1, Ie = {};
|
61631
|
-
Ie[
|
61638
|
+
Ie[Us] = Ie[$s] = Ie[Ts] = Ie[pr] = Ie[dr] = Ie[mr] = Ie[ur] = Ie[yr] = Ie[_r] = !0, Ie[De] = Ie[os] = Ie[St] = Ie[Kt] = Ie[cs] = Ie[Xt] = Ie[Fs] = Ie[ws] = Ie[ct] = Ie[Ut] = Ie[wt] = Ie[vs] = Ie[pt] = Ie[Yt] = Ie[ls] = !1;
|
61632
61639
|
var Te = {};
|
61633
|
-
Te[De] = Te[os] = Te[St] = Te[cs] = Te[Kt] = Te[Xt] = Te[
|
61640
|
+
Te[De] = Te[os] = Te[St] = Te[cs] = Te[Kt] = Te[Xt] = Te[Us] = Te[$s] = Te[Ts] = Te[pr] = Te[dr] = Te[ct] = Te[Ut] = Te[wt] = Te[vs] = Te[pt] = Te[Yt] = Te[Ks] = Te[mr] = Te[ur] = Te[yr] = Te[_r] = !0, Te[Fs] = Te[ws] = Te[ls] = !1;
|
61634
61641
|
var yd = {
|
61635
61642
|
// Latin-1 Supplement block.
|
61636
61643
|
À: "A",
|
@@ -61863,15 +61870,15 @@ Za.exports;
|
|
61863
61870
|
}
|
61864
61871
|
return w.apply(q, D);
|
61865
61872
|
}
|
61866
|
-
function wd(w, q, D,
|
61873
|
+
function wd(w, q, D, H) {
|
61867
61874
|
for (var ee = -1, fe = w == null ? 0 : w.length; ++ee < fe; ) {
|
61868
61875
|
var Re = w[ee];
|
61869
|
-
q(
|
61876
|
+
q(H, Re, D(Re), w);
|
61870
61877
|
}
|
61871
|
-
return
|
61878
|
+
return H;
|
61872
61879
|
}
|
61873
61880
|
function Tt(w, q) {
|
61874
|
-
for (var D = -1,
|
61881
|
+
for (var D = -1, H = w == null ? 0 : w.length; ++D < H && q(w[D], D, w) !== !1; )
|
61875
61882
|
;
|
61876
61883
|
return w;
|
61877
61884
|
}
|
@@ -61881,13 +61888,13 @@ Za.exports;
|
|
61881
61888
|
return w;
|
61882
61889
|
}
|
61883
61890
|
function ho(w, q) {
|
61884
|
-
for (var D = -1,
|
61891
|
+
for (var D = -1, H = w == null ? 0 : w.length; ++D < H; )
|
61885
61892
|
if (!q(w[D], D, w))
|
61886
61893
|
return !1;
|
61887
61894
|
return !0;
|
61888
61895
|
}
|
61889
61896
|
function ps(w, q) {
|
61890
|
-
for (var D = -1,
|
61897
|
+
for (var D = -1, H = w == null ? 0 : w.length, ee = 0, fe = []; ++D < H; ) {
|
61891
61898
|
var Re = w[D];
|
61892
61899
|
q(Re, D, w) && (fe[ee++] = Re);
|
61893
61900
|
}
|
@@ -61895,38 +61902,38 @@ Za.exports;
|
|
61895
61902
|
}
|
61896
61903
|
function na(w, q) {
|
61897
61904
|
var D = w == null ? 0 : w.length;
|
61898
|
-
return !!D &&
|
61905
|
+
return !!D && Ws(w, q, 0) > -1;
|
61899
61906
|
}
|
61900
61907
|
function wn(w, q, D) {
|
61901
|
-
for (var
|
61902
|
-
if (D(q, w[
|
61908
|
+
for (var H = -1, ee = w == null ? 0 : w.length; ++H < ee; )
|
61909
|
+
if (D(q, w[H]))
|
61903
61910
|
return !0;
|
61904
61911
|
return !1;
|
61905
61912
|
}
|
61906
61913
|
function ke(w, q) {
|
61907
|
-
for (var D = -1,
|
61914
|
+
for (var D = -1, H = w == null ? 0 : w.length, ee = Array(H); ++D < H; )
|
61908
61915
|
ee[D] = q(w[D], D, w);
|
61909
61916
|
return ee;
|
61910
61917
|
}
|
61911
61918
|
function ds(w, q) {
|
61912
|
-
for (var D = -1,
|
61919
|
+
for (var D = -1, H = q.length, ee = w.length; ++D < H; )
|
61913
61920
|
w[ee + D] = q[D];
|
61914
61921
|
return w;
|
61915
61922
|
}
|
61916
|
-
function vn(w, q, D,
|
61923
|
+
function vn(w, q, D, H) {
|
61917
61924
|
var ee = -1, fe = w == null ? 0 : w.length;
|
61918
|
-
for (
|
61925
|
+
for (H && fe && (D = w[++ee]); ++ee < fe; )
|
61919
61926
|
D = q(D, w[ee], ee, w);
|
61920
61927
|
return D;
|
61921
61928
|
}
|
61922
|
-
function Td(w, q, D,
|
61929
|
+
function Td(w, q, D, H) {
|
61923
61930
|
var ee = w == null ? 0 : w.length;
|
61924
|
-
for (
|
61931
|
+
for (H && ee && (D = w[--ee]); ee--; )
|
61925
61932
|
D = q(D, w[ee], ee, w);
|
61926
61933
|
return D;
|
61927
61934
|
}
|
61928
61935
|
function Tn(w, q) {
|
61929
|
-
for (var D = -1,
|
61936
|
+
for (var D = -1, H = w == null ? 0 : w.length; ++D < H; )
|
61930
61937
|
if (q(w[D], D, w))
|
61931
61938
|
return !0;
|
61932
61939
|
return !1;
|
@@ -61939,24 +61946,24 @@ Za.exports;
|
|
61939
61946
|
return w.match(S) || [];
|
61940
61947
|
}
|
61941
61948
|
function wo(w, q, D) {
|
61942
|
-
var
|
61949
|
+
var H;
|
61943
61950
|
return D(w, function(ee, fe, Re) {
|
61944
61951
|
if (q(ee, fe, Re))
|
61945
|
-
return
|
61946
|
-
}),
|
61952
|
+
return H = fe, !1;
|
61953
|
+
}), H;
|
61947
61954
|
}
|
61948
|
-
function ia(w, q, D,
|
61949
|
-
for (var ee = w.length, fe = D + (
|
61955
|
+
function ia(w, q, D, H) {
|
61956
|
+
for (var ee = w.length, fe = D + (H ? 1 : -1); H ? fe-- : ++fe < ee; )
|
61950
61957
|
if (q(w[fe], fe, w))
|
61951
61958
|
return fe;
|
61952
61959
|
return -1;
|
61953
61960
|
}
|
61954
|
-
function
|
61961
|
+
function Ws(w, q, D) {
|
61955
61962
|
return q === q ? Fd(w, q, D) : ia(w, vo, D);
|
61956
61963
|
}
|
61957
|
-
function Ad(w, q, D,
|
61964
|
+
function Ad(w, q, D, H) {
|
61958
61965
|
for (var ee = D - 1, fe = w.length; ++ee < fe; )
|
61959
|
-
if (
|
61966
|
+
if (H(w[ee], q))
|
61960
61967
|
return ee;
|
61961
61968
|
return -1;
|
61962
61969
|
}
|
@@ -61977,9 +61984,9 @@ Za.exports;
|
|
61977
61984
|
return w == null ? r : w[q];
|
61978
61985
|
};
|
61979
61986
|
}
|
61980
|
-
function Do(w, q, D,
|
61987
|
+
function Do(w, q, D, H, ee) {
|
61981
61988
|
return ee(w, function(fe, Re, ve) {
|
61982
|
-
D =
|
61989
|
+
D = H ? (H = !1, fe) : q(D, fe, Re, ve);
|
61983
61990
|
}), D;
|
61984
61991
|
}
|
61985
61992
|
function qd(w, q) {
|
@@ -61989,16 +61996,16 @@ Za.exports;
|
|
61989
61996
|
return w;
|
61990
61997
|
}
|
61991
61998
|
function kn(w, q) {
|
61992
|
-
for (var D,
|
61993
|
-
var fe = q(w[
|
61999
|
+
for (var D, H = -1, ee = w.length; ++H < ee; ) {
|
62000
|
+
var fe = q(w[H]);
|
61994
62001
|
fe !== r && (D = D === r ? fe : D + fe);
|
61995
62002
|
}
|
61996
62003
|
return D;
|
61997
62004
|
}
|
61998
62005
|
function An(w, q) {
|
61999
|
-
for (var D = -1,
|
62000
|
-
|
62001
|
-
return
|
62006
|
+
for (var D = -1, H = Array(w); ++D < w; )
|
62007
|
+
H[D] = q(D);
|
62008
|
+
return H;
|
62002
62009
|
}
|
62003
62010
|
function Cd(w, q) {
|
62004
62011
|
return ke(q, function(D) {
|
@@ -62022,19 +62029,19 @@ Za.exports;
|
|
62022
62029
|
return w.has(q);
|
62023
62030
|
}
|
62024
62031
|
function ko(w, q) {
|
62025
|
-
for (var D = -1,
|
62032
|
+
for (var D = -1, H = w.length; ++D < H && Ws(q, w[D], 0) > -1; )
|
62026
62033
|
;
|
62027
62034
|
return D;
|
62028
62035
|
}
|
62029
62036
|
function Ao(w, q) {
|
62030
|
-
for (var D = w.length; D-- &&
|
62037
|
+
for (var D = w.length; D-- && Ws(q, w[D], 0) > -1; )
|
62031
62038
|
;
|
62032
62039
|
return D;
|
62033
62040
|
}
|
62034
62041
|
function zd(w, q) {
|
62035
|
-
for (var D = w.length,
|
62036
|
-
w[D] === q &&
|
62037
|
-
return
|
62042
|
+
for (var D = w.length, H = 0; D--; )
|
62043
|
+
w[D] === q && ++H;
|
62044
|
+
return H;
|
62038
62045
|
}
|
62039
62046
|
var Ed = In(yd), Nd = In(_d);
|
62040
62047
|
function Sd(w) {
|
@@ -62043,7 +62050,7 @@ Za.exports;
|
|
62043
62050
|
function Ld(w, q) {
|
62044
62051
|
return w == null ? r : w[q];
|
62045
62052
|
}
|
62046
|
-
function
|
62053
|
+
function Gs(w) {
|
62047
62054
|
return pd.test(w);
|
62048
62055
|
}
|
62049
62056
|
function Md(w) {
|
@@ -62056,8 +62063,8 @@ Za.exports;
|
|
62056
62063
|
}
|
62057
62064
|
function Cn(w) {
|
62058
62065
|
var q = -1, D = Array(w.size);
|
62059
|
-
return w.forEach(function(
|
62060
|
-
D[++q] = [ee,
|
62066
|
+
return w.forEach(function(H, ee) {
|
62067
|
+
D[++q] = [ee, H];
|
62061
62068
|
}), D;
|
62062
62069
|
}
|
62063
62070
|
function qo(w, q) {
|
@@ -62066,7 +62073,7 @@ Za.exports;
|
|
62066
62073
|
};
|
62067
62074
|
}
|
62068
62075
|
function ms(w, q) {
|
62069
|
-
for (var D = -1,
|
62076
|
+
for (var D = -1, H = w.length, ee = 0, fe = []; ++D < H; ) {
|
62070
62077
|
var Re = w[D];
|
62071
62078
|
(Re === q || Re === h) && (w[D] = h, fe[ee++] = D);
|
62072
62079
|
}
|
@@ -62074,33 +62081,33 @@ Za.exports;
|
|
62074
62081
|
}
|
62075
62082
|
function oa(w) {
|
62076
62083
|
var q = -1, D = Array(w.size);
|
62077
|
-
return w.forEach(function(
|
62078
|
-
D[++q] =
|
62084
|
+
return w.forEach(function(H) {
|
62085
|
+
D[++q] = H;
|
62079
62086
|
}), D;
|
62080
62087
|
}
|
62081
62088
|
function Od(w) {
|
62082
62089
|
var q = -1, D = Array(w.size);
|
62083
|
-
return w.forEach(function(
|
62084
|
-
D[++q] = [
|
62090
|
+
return w.forEach(function(H) {
|
62091
|
+
D[++q] = [H, H];
|
62085
62092
|
}), D;
|
62086
62093
|
}
|
62087
62094
|
function Fd(w, q, D) {
|
62088
|
-
for (var
|
62089
|
-
if (w[
|
62090
|
-
return
|
62095
|
+
for (var H = D - 1, ee = w.length; ++H < ee; )
|
62096
|
+
if (w[H] === q)
|
62097
|
+
return H;
|
62091
62098
|
return -1;
|
62092
62099
|
}
|
62093
62100
|
function Rd(w, q, D) {
|
62094
|
-
for (var
|
62095
|
-
if (w[
|
62096
|
-
return
|
62097
|
-
return
|
62101
|
+
for (var H = D + 1; H--; )
|
62102
|
+
if (w[H] === q)
|
62103
|
+
return H;
|
62104
|
+
return H;
|
62098
62105
|
}
|
62099
|
-
function
|
62100
|
-
return
|
62106
|
+
function Xs(w) {
|
62107
|
+
return Gs(w) ? Kd(w) : Dd(w);
|
62101
62108
|
}
|
62102
62109
|
function Mt(w) {
|
62103
|
-
return
|
62110
|
+
return Gs(w) ? Ud(w) : Id(w);
|
62104
62111
|
}
|
62105
62112
|
function Co(w) {
|
62106
62113
|
for (var q = w.length; q-- && dn.test(w.charAt(q)); )
|
@@ -62120,19 +62127,19 @@ Za.exports;
|
|
62120
62127
|
return w.match(cd) || [];
|
62121
62128
|
}
|
62122
62129
|
var Hd = function w(q) {
|
62123
|
-
q = q == null ? je :
|
62124
|
-
var D = q.Array,
|
62130
|
+
q = q == null ? je : Ys.defaults(je.Object(), q, Ys.pick(je, md));
|
62131
|
+
var D = q.Array, H = q.Date, ee = q.Error, fe = q.Function, Re = q.Math, ve = q.Object, zn = q.RegExp, jd = q.String, Dt = q.TypeError, la = D.prototype, Wd = fe.prototype, Vs = ve.prototype, ca = q["__core-js_shared__"], pa = Wd.toString, we = Vs.hasOwnProperty, Gd = 0, zo = function() {
|
62125
62132
|
var e = /[^.]+$/.exec(ca && ca.keys && ca.keys.IE_PROTO || "");
|
62126
62133
|
return e ? "Symbol(src)_1." + e : "";
|
62127
|
-
}(), da =
|
62134
|
+
}(), da = Vs.toString, Xd = pa.call(ve), Yd = je._, Vd = zn(
|
62128
62135
|
"^" + pa.call(we).replace(br, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
62129
|
-
), ma = uo ? q.Buffer : r, us = q.Symbol, ua = q.Uint8Array, Eo = ma ? ma.allocUnsafe : r, ya = qo(ve.getPrototypeOf, ve), No = ve.create, So =
|
62136
|
+
), ma = uo ? q.Buffer : r, us = q.Symbol, ua = q.Uint8Array, Eo = ma ? ma.allocUnsafe : r, ya = qo(ve.getPrototypeOf, ve), No = ve.create, So = Vs.propertyIsEnumerable, _a = la.splice, Lo = us ? us.isConcatSpreadable : r, wr = us ? us.iterator : r, Is = us ? us.toStringTag : r, fa = function() {
|
62130
62137
|
try {
|
62131
62138
|
var e = zs(ve, "defineProperty");
|
62132
62139
|
return e({}, "", {}), e;
|
62133
62140
|
} catch {
|
62134
62141
|
}
|
62135
|
-
}(), Qd = q.clearTimeout !== je.clearTimeout && q.clearTimeout, Zd =
|
62142
|
+
}(), Qd = q.clearTimeout !== je.clearTimeout && q.clearTimeout, Zd = H && H.now !== je.Date.now && H.now, Jd = q.setTimeout !== je.setTimeout && q.setTimeout, ga = Re.ceil, ba = Re.floor, En = ve.getOwnPropertySymbols, em = ma ? ma.isBuffer : r, Mo = q.isFinite, tm = la.join, sm = qo(ve.keys, ve), Be = Re.max, Ge = Re.min, rm = H.now, am = q.parseInt, Po = Re.random, nm = la.reverse, Nn = zs(q, "DataView"), vr = zs(q, "Map"), Sn = zs(q, "Promise"), Qs = zs(q, "Set"), Tr = zs(q, "WeakMap"), Dr = zs(ve, "create"), xa = Tr && new Tr(), Zs = {}, im = Es(Nn), om = Es(vr), lm = Es(Sn), cm = Es(Qs), pm = Es(Tr), ha = us ? us.prototype : r, Ir = ha ? ha.valueOf : r, Oo = ha ? ha.toString : r;
|
62136
62143
|
function d(e) {
|
62137
62144
|
if (Ee(e) && !te(e) && !(e instanceof de)) {
|
62138
62145
|
if (e instanceof It)
|
@@ -62142,7 +62149,7 @@ Za.exports;
|
|
62142
62149
|
}
|
62143
62150
|
return new It(e);
|
62144
62151
|
}
|
62145
|
-
var
|
62152
|
+
var Js = /* @__PURE__ */ function() {
|
62146
62153
|
function e() {
|
62147
62154
|
}
|
62148
62155
|
return function(t) {
|
@@ -62204,7 +62211,7 @@ Za.exports;
|
|
62204
62211
|
*/
|
62205
62212
|
_: d
|
62206
62213
|
}
|
62207
|
-
}, d.prototype = wa.prototype, d.prototype.constructor = d, It.prototype =
|
62214
|
+
}, d.prototype = wa.prototype, d.prototype.constructor = d, It.prototype = Js(wa.prototype), It.prototype.constructor = It;
|
62208
62215
|
function de(e) {
|
62209
62216
|
this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = J, this.__views__ = [];
|
62210
62217
|
}
|
@@ -62242,7 +62249,7 @@ Za.exports;
|
|
62242
62249
|
}
|
62243
62250
|
return V;
|
62244
62251
|
}
|
62245
|
-
de.prototype =
|
62252
|
+
de.prototype = Js(wa.prototype), de.prototype.constructor = de;
|
62246
62253
|
function ks(e) {
|
62247
62254
|
var t = -1, s = e == null ? 0 : e.length;
|
62248
62255
|
for (this.clear(); ++t < s; ) {
|
@@ -62261,7 +62268,7 @@ Za.exports;
|
|
62261
62268
|
var t = this.__data__;
|
62262
62269
|
if (Dr) {
|
62263
62270
|
var s = t[e];
|
62264
|
-
return s ===
|
62271
|
+
return s === f ? r : s;
|
62265
62272
|
}
|
62266
62273
|
return we.call(t, e) ? t[e] : r;
|
62267
62274
|
}
|
@@ -62271,7 +62278,7 @@ Za.exports;
|
|
62271
62278
|
}
|
62272
62279
|
function bm(e, t) {
|
62273
62280
|
var s = this.__data__;
|
62274
|
-
return this.size += this.has(e) ? 0 : 1, s[e] = Dr && t === r ?
|
62281
|
+
return this.size += this.has(e) ? 0 : 1, s[e] = Dr && t === r ? f : t, this;
|
62275
62282
|
}
|
62276
62283
|
ks.prototype.clear = ym, ks.prototype.delete = _m, ks.prototype.get = fm, ks.prototype.has = gm, ks.prototype.set = bm;
|
62277
62284
|
function Qt(e) {
|
@@ -62338,7 +62345,7 @@ Za.exports;
|
|
62338
62345
|
this.add(e[t]);
|
62339
62346
|
}
|
62340
62347
|
function Cm(e) {
|
62341
|
-
return this.__data__.set(e,
|
62348
|
+
return this.__data__.set(e, f), this;
|
62342
62349
|
}
|
62343
62350
|
function zm(e) {
|
62344
62351
|
return this.__data__.has(e);
|
@@ -62365,7 +62372,7 @@ Za.exports;
|
|
62365
62372
|
var s = this.__data__;
|
62366
62373
|
if (s instanceof Qt) {
|
62367
62374
|
var i = s.__data__;
|
62368
|
-
if (!vr || i.length <
|
62375
|
+
if (!vr || i.length < c - 1)
|
62369
62376
|
return i.push([e, t]), this.size = ++s.size, this;
|
62370
62377
|
s = this.__data__ = new Zt(i);
|
62371
62378
|
}
|
@@ -62373,7 +62380,7 @@ Za.exports;
|
|
62373
62380
|
}
|
62374
62381
|
Pt.prototype.clear = Em, Pt.prototype.delete = Nm, Pt.prototype.get = Sm, Pt.prototype.has = Lm, Pt.prototype.set = Mm;
|
62375
62382
|
function Fo(e, t) {
|
62376
|
-
var s = te(e), i = !s && Ns(e), p = !s && !i && bs(e), u = !s && !i && !p &&
|
62383
|
+
var s = te(e), i = !s && Ns(e), p = !s && !i && bs(e), u = !s && !i && !p && rr(e), y = s || i || p || u, x = y ? An(e.length, jd) : [], v = x.length;
|
62377
62384
|
for (var C in e)
|
62378
62385
|
(t || we.call(e, C)) && !(y && // Safari 9 has enumerable `arguments.length` in strict mode.
|
62379
62386
|
(C == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
@@ -62497,7 +62504,7 @@ Za.exports;
|
|
62497
62504
|
var p = -1, u = na, y = !0, x = e.length, v = [], C = t.length;
|
62498
62505
|
if (!x)
|
62499
62506
|
return v;
|
62500
|
-
s && (t = ke(t, mt(s))), i ? (u = wn, y = !1) : t.length >=
|
62507
|
+
s && (t = ke(t, mt(s))), i ? (u = wn, y = !1) : t.length >= c && (u = hr, y = !1, t = new As(t));
|
62501
62508
|
e:
|
62502
62509
|
for (; ++p < x; ) {
|
62503
62510
|
var z = e[p], E = s == null ? z : s(z);
|
@@ -62569,7 +62576,7 @@ Za.exports;
|
|
62569
62576
|
return te(e) ? i : ds(i, s(e));
|
62570
62577
|
}
|
62571
62578
|
function Qe(e) {
|
62572
|
-
return e == null ? e === r ? on :
|
62579
|
+
return e == null ? e === r ? on : Rs : Is && Is in ve(e) ? Du(e) : Ou(e);
|
62573
62580
|
}
|
62574
62581
|
function Fn(e, t) {
|
62575
62582
|
return e > t;
|
@@ -62636,7 +62643,7 @@ Za.exports;
|
|
62636
62643
|
y = !0, z = !1;
|
62637
62644
|
}
|
62638
62645
|
if (K && !z)
|
62639
|
-
return u || (u = new Pt()), y ||
|
62646
|
+
return u || (u = new Pt()), y || rr(e) ? kl(e, t, s, i, p, u) : vu(e, t, v, s, i, p, u);
|
62640
62647
|
if (!(s & P)) {
|
62641
62648
|
var W = z && we.call(e, "__wrapped__"), V = E && we.call(t, "__wrapped__");
|
62642
62649
|
if (W || V) {
|
@@ -62747,7 +62754,7 @@ Za.exports;
|
|
62747
62754
|
}
|
62748
62755
|
var z = u ? u(x, v, s + "", e, t, y) : r, E = z === r;
|
62749
62756
|
if (E) {
|
62750
|
-
var K = te(v), W = !K && bs(v), V = !K && !W &&
|
62757
|
+
var K = te(v), W = !K && bs(v), V = !K && !W && rr(v);
|
62751
62758
|
z = v, K || W || V ? te(x) ? z = x : Le(x) ? z = st(x) : W ? (E = !1, z = pl(v, !0)) : V ? (E = !1, z = dl(v, !0)) : z = [] : Lr(v) || Ns(v) ? (z = x, Ns(x) ? z = oc(x) : (!qe(x) || rs(x)) && (z = Cl(v))) : E = !1;
|
62752
62759
|
}
|
62753
62760
|
E && (y.set(v, z), p(z, v, i, u, y), y.delete(v)), Ln(e, s, z);
|
@@ -62793,7 +62800,7 @@ Za.exports;
|
|
62793
62800
|
};
|
62794
62801
|
}
|
62795
62802
|
function $n(e, t, s, i) {
|
62796
|
-
var p = i ? Ad :
|
62803
|
+
var p = i ? Ad : Ws, u = -1, y = t.length, x = e;
|
62797
62804
|
for (e === t && (t = st(t)), s && (x = ke(e, mt(s))); ++u < y; )
|
62798
62805
|
for (var v = 0, C = t[u], z = s ? s(C) : C; (v = p(x, z, v, i)) > -1; )
|
62799
62806
|
x !== e && _a.call(x, v, 1), _a.call(e, v, 1);
|
@@ -62830,10 +62837,10 @@ Za.exports;
|
|
62830
62837
|
return li(Nl(e, t, nt), e + "");
|
62831
62838
|
}
|
62832
62839
|
function nu(e) {
|
62833
|
-
return Ro(
|
62840
|
+
return Ro(ar(e));
|
62834
62841
|
}
|
62835
62842
|
function iu(e, t) {
|
62836
|
-
var s =
|
62843
|
+
var s = ar(e);
|
62837
62844
|
return Ma(s, qs(t, 0, s.length));
|
62838
62845
|
}
|
62839
62846
|
function zr(e, t, s, i) {
|
@@ -62863,7 +62870,7 @@ Za.exports;
|
|
62863
62870
|
});
|
62864
62871
|
} : nt;
|
62865
62872
|
function lu(e) {
|
62866
|
-
return Ma(
|
62873
|
+
return Ma(ar(e));
|
62867
62874
|
}
|
62868
62875
|
function At(e, t, s) {
|
62869
62876
|
var i = -1, p = e.length;
|
@@ -62931,7 +62938,7 @@ Za.exports;
|
|
62931
62938
|
var i = -1, p = na, u = e.length, y = !0, x = [], v = x;
|
62932
62939
|
if (s)
|
62933
62940
|
y = !1, p = wn;
|
62934
|
-
else if (u >=
|
62941
|
+
else if (u >= c) {
|
62935
62942
|
var C = t ? null : hu(e);
|
62936
62943
|
if (C)
|
62937
62944
|
return oa(C);
|
@@ -63093,7 +63100,7 @@ Za.exports;
|
|
63093
63100
|
return p(s, e, X(i, 2), u);
|
63094
63101
|
};
|
63095
63102
|
}
|
63096
|
-
function
|
63103
|
+
function er(e) {
|
63097
63104
|
return oe(function(t, s) {
|
63098
63105
|
var i = -1, p = s.length, u = p > 1 ? s[p - 1] : r, y = p > 2 ? s[2] : r;
|
63099
63106
|
for (u = e.length > 3 && typeof u == "function" ? (p--, u) : r, y && Ze(s[0], s[1], y) && (u = p < 3 ? r : u, p = 1), t = ve(t); ++i < p; ) {
|
@@ -63125,7 +63132,7 @@ Za.exports;
|
|
63125
63132
|
};
|
63126
63133
|
}
|
63127
63134
|
function gu(e, t, s) {
|
63128
|
-
var i = t &
|
63135
|
+
var i = t & $, p = Er(e);
|
63129
63136
|
function u() {
|
63130
63137
|
var y = this && this !== je && this instanceof u ? p : e;
|
63131
63138
|
return y.apply(i ? s : this, arguments);
|
@@ -63135,11 +63142,11 @@ Za.exports;
|
|
63135
63142
|
function gl(e) {
|
63136
63143
|
return function(t) {
|
63137
63144
|
t = he(t);
|
63138
|
-
var s =
|
63145
|
+
var s = Gs(t) ? Mt(t) : r, i = s ? s[0] : t.charAt(0), p = s ? gs(s, 1).join("") : t.slice(1);
|
63139
63146
|
return i[e]() + p;
|
63140
63147
|
};
|
63141
63148
|
}
|
63142
|
-
function
|
63149
|
+
function tr(e) {
|
63143
63150
|
return function(t) {
|
63144
63151
|
return vn(_c(yc(t).replace(od, "")), e, "");
|
63145
63152
|
};
|
@@ -63165,14 +63172,14 @@ Za.exports;
|
|
63165
63172
|
case 7:
|
63166
63173
|
return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]);
|
63167
63174
|
}
|
63168
|
-
var s =
|
63175
|
+
var s = Js(e.prototype), i = e.apply(s, t);
|
63169
63176
|
return qe(i) ? i : s;
|
63170
63177
|
};
|
63171
63178
|
}
|
63172
63179
|
function bu(e, t, s) {
|
63173
63180
|
var i = Er(e);
|
63174
63181
|
function p() {
|
63175
|
-
for (var u = arguments.length, y = D(u), x = u, v =
|
63182
|
+
for (var u = arguments.length, y = D(u), x = u, v = sr(p); x--; )
|
63176
63183
|
y[x] = arguments[x];
|
63177
63184
|
var C = u < 3 && y[0] !== v && y[u - 1] !== v ? [] : ms(y, v);
|
63178
63185
|
if (u -= C.length, u < s)
|
@@ -63232,12 +63239,12 @@ Za.exports;
|
|
63232
63239
|
});
|
63233
63240
|
}
|
63234
63241
|
function Ca(e, t, s, i, p, u, y, x, v, C) {
|
63235
|
-
var z = t & U, E = t &
|
63242
|
+
var z = t & U, E = t & $, K = t & G, W = t & (O | I), V = t & me, ae = K ? r : Er(e);
|
63236
63243
|
function Q() {
|
63237
63244
|
for (var ce = arguments.length, ue = D(ce), _t = ce; _t--; )
|
63238
63245
|
ue[_t] = arguments[_t];
|
63239
63246
|
if (W)
|
63240
|
-
var Je =
|
63247
|
+
var Je = sr(Q), ft = zd(ue, Je);
|
63241
63248
|
if (i && (ue = ul(ue, i, p, W)), u && (ue = yl(ue, u, y, W)), ce -= ft, W && ce < C) {
|
63242
63249
|
var Me = ms(ue, Je);
|
63243
63250
|
return vl(
|
@@ -63291,11 +63298,11 @@ Za.exports;
|
|
63291
63298
|
var s = t.length;
|
63292
63299
|
if (s < 2)
|
63293
63300
|
return s ? jn(t, e) : t;
|
63294
|
-
var i = jn(t, ga(e /
|
63295
|
-
return
|
63301
|
+
var i = jn(t, ga(e / Xs(t)));
|
63302
|
+
return Gs(t) ? gs(Mt(i), 0, e).join("") : i.slice(0, e);
|
63296
63303
|
}
|
63297
63304
|
function xu(e, t, s, i) {
|
63298
|
-
var p = t &
|
63305
|
+
var p = t & $, u = Er(e);
|
63299
63306
|
function y() {
|
63300
63307
|
for (var x = -1, v = arguments.length, C = -1, z = i.length, E = D(z + v), K = this && this !== je && this instanceof y ? u : e; ++C < z; )
|
63301
63308
|
E[C] = i[C];
|
@@ -63317,7 +63324,7 @@ Za.exports;
|
|
63317
63324
|
}
|
63318
63325
|
function vl(e, t, s, i, p, u, y, x, v, C) {
|
63319
63326
|
var z = t & O, E = z ? y : r, K = z ? r : y, W = z ? u : r, V = z ? r : u;
|
63320
|
-
t |= z ? A : R, t &= ~(z ? R : A), t & j || (t &= ~(
|
63327
|
+
t |= z ? A : R, t &= ~(z ? R : A), t & j || (t &= ~($ | G));
|
63321
63328
|
var ae = [
|
63322
63329
|
e,
|
63323
63330
|
t,
|
@@ -63342,8 +63349,8 @@ Za.exports;
|
|
63342
63349
|
return t(s);
|
63343
63350
|
};
|
63344
63351
|
}
|
63345
|
-
var hu =
|
63346
|
-
return new
|
63352
|
+
var hu = Qs && 1 / oa(new Qs([, -0]))[1] == Ce ? function(e) {
|
63353
|
+
return new Qs(e);
|
63347
63354
|
} : wi;
|
63348
63355
|
function Tl(e) {
|
63349
63356
|
return function(t) {
|
@@ -63372,15 +63379,15 @@ Za.exports;
|
|
63372
63379
|
y,
|
63373
63380
|
x
|
63374
63381
|
];
|
63375
|
-
if (K && Mu(W, K), e = W[0], t = W[1], s = W[2], i = W[3], p = W[4], x = W[9] = W[9] === r ? v ? 0 : e.length : Be(W[9] - C, 0), !x && t & (O | I) && (t &= ~(O | I)), !t || t ==
|
63382
|
+
if (K && Mu(W, K), e = W[0], t = W[1], s = W[2], i = W[3], p = W[4], x = W[9] = W[9] === r ? v ? 0 : e.length : Be(W[9] - C, 0), !x && t & (O | I) && (t &= ~(O | I)), !t || t == $)
|
63376
63383
|
var V = gu(e, t, s);
|
63377
63384
|
else
|
63378
|
-
t == O || t == I ? V = bu(e, t, x) : (t == A || t == (
|
63385
|
+
t == O || t == I ? V = bu(e, t, x) : (t == A || t == ($ | A)) && !p.length ? V = xu(e, t, s, i) : V = Ca.apply(r, W);
|
63379
63386
|
var ae = K ? rl : Ll;
|
63380
63387
|
return Ml(ae(V, W), e, t);
|
63381
63388
|
}
|
63382
63389
|
function Dl(e, t, s, i) {
|
63383
|
-
return e === r || Ot(e,
|
63390
|
+
return e === r || Ot(e, Vs[s]) && !we.call(i, s) ? t : e;
|
63384
63391
|
}
|
63385
63392
|
function Il(e, t, s, i, p, u) {
|
63386
63393
|
return qe(e) && qe(t) && (u.set(t, e), Ia(e, t, r, Il, u), u.delete(t)), e;
|
@@ -63433,7 +63440,7 @@ Za.exports;
|
|
63433
63440
|
case Xt:
|
63434
63441
|
case Ut:
|
63435
63442
|
return Ot(+e, +t);
|
63436
|
-
case
|
63443
|
+
case Fs:
|
63437
63444
|
return e.name == t.name && e.message == t.message;
|
63438
63445
|
case vs:
|
63439
63446
|
case Yt:
|
@@ -63450,7 +63457,7 @@ Za.exports;
|
|
63450
63457
|
i |= N, y.set(e, t);
|
63451
63458
|
var z = kl(x(e), x(t), i, p, u, y);
|
63452
63459
|
return y.delete(e), z;
|
63453
|
-
case
|
63460
|
+
case Ks:
|
63454
63461
|
if (Ir)
|
63455
63462
|
return Ir.call(e) == Ir.call(t);
|
63456
63463
|
}
|
@@ -63500,14 +63507,14 @@ Za.exports;
|
|
63500
63507
|
return xa.get(e);
|
63501
63508
|
} : wi;
|
63502
63509
|
function Sa(e) {
|
63503
|
-
for (var t = e.name + "", s =
|
63510
|
+
for (var t = e.name + "", s = Zs[t], i = we.call(Zs, t) ? s.length : 0; i--; ) {
|
63504
63511
|
var p = s[i], u = p.func;
|
63505
63512
|
if (u == null || u == e)
|
63506
63513
|
return p.name;
|
63507
63514
|
}
|
63508
63515
|
return t;
|
63509
63516
|
}
|
63510
|
-
function
|
63517
|
+
function sr(e) {
|
63511
63518
|
var t = we.call(d, "placeholder") ? d : e;
|
63512
63519
|
return t.placeholder;
|
63513
63520
|
}
|
@@ -63549,7 +63556,7 @@ Za.exports;
|
|
63549
63556
|
ds(t, ai(e)), e = ya(e);
|
63550
63557
|
return t;
|
63551
63558
|
} : vi, Xe = Qe;
|
63552
|
-
(Nn && Xe(new Nn(new ArrayBuffer(1))) != cs || vr && Xe(new vr()) != ct || Sn && Xe(Sn.resolve()) != cr ||
|
63559
|
+
(Nn && Xe(new Nn(new ArrayBuffer(1))) != cs || vr && Xe(new vr()) != ct || Sn && Xe(Sn.resolve()) != cr || Qs && Xe(new Qs()) != pt || Tr && Xe(new Tr()) != ls) && (Xe = function(e) {
|
63553
63560
|
var t = Qe(e), s = t == wt ? e.constructor : r, i = s ? Es(s) : "";
|
63554
63561
|
if (i)
|
63555
63562
|
switch (i) {
|
@@ -63588,7 +63595,7 @@ Za.exports;
|
|
63588
63595
|
}
|
63589
63596
|
function ku(e) {
|
63590
63597
|
var t = e.match(un);
|
63591
|
-
return t ? t[1].split(
|
63598
|
+
return t ? t[1].split(g) : [];
|
63592
63599
|
}
|
63593
63600
|
function ql(e, t, s) {
|
63594
63601
|
t = fs(t, e);
|
@@ -63605,7 +63612,7 @@ Za.exports;
|
|
63605
63612
|
return t && typeof e[0] == "string" && we.call(e, "index") && (s.index = e.index, s.input = e.input), s;
|
63606
63613
|
}
|
63607
63614
|
function Cl(e) {
|
63608
|
-
return typeof e.constructor == "function" && !Nr(e) ?
|
63615
|
+
return typeof e.constructor == "function" && !Nr(e) ? Js(ya(e)) : {};
|
63609
63616
|
}
|
63610
63617
|
function qu(e, t, s) {
|
63611
63618
|
var i = e.constructor;
|
@@ -63617,8 +63624,8 @@ Za.exports;
|
|
63617
63624
|
return new i(+e);
|
63618
63625
|
case cs:
|
63619
63626
|
return du(e, s);
|
63620
|
-
case Ks:
|
63621
63627
|
case Us:
|
63628
|
+
case $s:
|
63622
63629
|
case Ts:
|
63623
63630
|
case pr:
|
63624
63631
|
case dr:
|
@@ -63636,7 +63643,7 @@ Za.exports;
|
|
63636
63643
|
return mu(e);
|
63637
63644
|
case pt:
|
63638
63645
|
return new i();
|
63639
|
-
case
|
63646
|
+
case Ks:
|
63640
63647
|
return uu(e);
|
63641
63648
|
}
|
63642
63649
|
}
|
@@ -63686,7 +63693,7 @@ Za.exports;
|
|
63686
63693
|
}
|
63687
63694
|
var Su = ca ? rs : Ti;
|
63688
63695
|
function Nr(e) {
|
63689
|
-
var t = e && e.constructor, s = typeof t == "function" && t.prototype ||
|
63696
|
+
var t = e && e.constructor, s = typeof t == "function" && t.prototype || Vs;
|
63690
63697
|
return e === s;
|
63691
63698
|
}
|
63692
63699
|
function zl(e) {
|
@@ -63704,10 +63711,10 @@ Za.exports;
|
|
63704
63711
|
return t;
|
63705
63712
|
}
|
63706
63713
|
function Mu(e, t) {
|
63707
|
-
var s = e[1], i = t[1], p = s | i, u = p < (
|
63714
|
+
var s = e[1], i = t[1], p = s | i, u = p < ($ | G | U), y = i == U && s == O || i == U && s == se && e[7].length <= t[8] || i == (U | se) && t[7].length <= t[8] && s == O;
|
63708
63715
|
if (!(u || y))
|
63709
63716
|
return e;
|
63710
|
-
i &
|
63717
|
+
i & $ && (e[2] = t[2], p |= s & $ ? 0 : j);
|
63711
63718
|
var x = t[3];
|
63712
63719
|
if (x) {
|
63713
63720
|
var v = e[3];
|
@@ -63905,7 +63912,7 @@ Za.exports;
|
|
63905
63912
|
if (!i)
|
63906
63913
|
return -1;
|
63907
63914
|
var p = s == null ? 0 : re(s);
|
63908
|
-
return p < 0 && (p = Be(i + p, 0)),
|
63915
|
+
return p < 0 && (p = Be(i + p, 0)), Ws(e, t, p);
|
63909
63916
|
}
|
63910
63917
|
function ty(e) {
|
63911
63918
|
var t = e == null ? 0 : e.length;
|
@@ -64176,9 +64183,9 @@ Za.exports;
|
|
64176
64183
|
we.call(e, s) ? e[s].push(t) : Jt(e, s, [t]);
|
64177
64184
|
});
|
64178
64185
|
function n_(e, t, s, i) {
|
64179
|
-
e = rt(e) ? e :
|
64186
|
+
e = rt(e) ? e : ar(e), s = s && !i ? re(s) : 0;
|
64180
64187
|
var p = e.length;
|
64181
|
-
return s < 0 && (s = Be(p + s, 0)), Ua(e) ? s <= p && e.indexOf(t, s) > -1 : !!p &&
|
64188
|
+
return s < 0 && (s = Be(p + s, 0)), Ua(e) ? s <= p && e.indexOf(t, s) > -1 : !!p && Ws(e, t, s) > -1;
|
64182
64189
|
}
|
64183
64190
|
var i_ = oe(function(e, t, s) {
|
64184
64191
|
var i = -1, p = typeof t == "function", u = rt(e) ? D(e.length) : [];
|
@@ -64229,7 +64236,7 @@ Za.exports;
|
|
64229
64236
|
if (e == null)
|
64230
64237
|
return 0;
|
64231
64238
|
if (rt(e))
|
64232
|
-
return Ua(e) ?
|
64239
|
+
return Ua(e) ? Xs(e) : e.length;
|
64233
64240
|
var t = Xe(e);
|
64234
64241
|
return t == ct || t == pt ? e.size : Kn(e).length;
|
64235
64242
|
}
|
@@ -64265,16 +64272,16 @@ Za.exports;
|
|
64265
64272
|
};
|
64266
64273
|
}
|
64267
64274
|
var di = oe(function(e, t, s) {
|
64268
|
-
var i =
|
64275
|
+
var i = $;
|
64269
64276
|
if (s.length) {
|
64270
|
-
var p = ms(s,
|
64277
|
+
var p = ms(s, sr(di));
|
64271
64278
|
i |= A;
|
64272
64279
|
}
|
64273
64280
|
return es(e, i, t, s, p);
|
64274
64281
|
}), Vl = oe(function(e, t, s) {
|
64275
|
-
var i =
|
64282
|
+
var i = $ | G;
|
64276
64283
|
if (s.length) {
|
64277
|
-
var p = ms(s,
|
64284
|
+
var p = ms(s, sr(Vl));
|
64278
64285
|
i |= A;
|
64279
64286
|
}
|
64280
64287
|
return es(t, i, e, s, p);
|
@@ -64387,10 +64394,10 @@ Za.exports;
|
|
64387
64394
|
return dt(e, this, i);
|
64388
64395
|
});
|
64389
64396
|
}), mi = oe(function(e, t) {
|
64390
|
-
var s = ms(t,
|
64397
|
+
var s = ms(t, sr(mi));
|
64391
64398
|
return es(e, A, r, t, s);
|
64392
64399
|
}), ec = oe(function(e, t) {
|
64393
|
-
var s = ms(t,
|
64400
|
+
var s = ms(t, sr(ec));
|
64394
64401
|
return es(e, R, r, t, s);
|
64395
64402
|
}), I_ = ts(function(e, t) {
|
64396
64403
|
return es(e, se, r, r, r, t);
|
@@ -64471,7 +64478,7 @@ Za.exports;
|
|
64471
64478
|
function $_(e) {
|
64472
64479
|
if (e == null)
|
64473
64480
|
return !0;
|
64474
|
-
if (rt(e) && (te(e) || typeof e == "string" || typeof e.splice == "function" || bs(e) ||
|
64481
|
+
if (rt(e) && (te(e) || typeof e == "string" || typeof e.splice == "function" || bs(e) || rr(e) || Ns(e)))
|
64475
64482
|
return !e.length;
|
64476
64483
|
var t = Xe(e);
|
64477
64484
|
if (t == ct || t == pt)
|
@@ -64495,7 +64502,7 @@ Za.exports;
|
|
64495
64502
|
if (!Ee(e))
|
64496
64503
|
return !1;
|
64497
64504
|
var t = Qe(e);
|
64498
|
-
return t ==
|
64505
|
+
return t == Fs || t == Os || typeof e.message == "string" && typeof e.name == "string" && !Lr(e);
|
64499
64506
|
}
|
64500
64507
|
function W_(e) {
|
64501
64508
|
return typeof e == "number" && Mo(e);
|
@@ -64504,7 +64511,7 @@ Za.exports;
|
|
64504
64511
|
if (!qe(e))
|
64505
64512
|
return !1;
|
64506
64513
|
var t = Qe(e);
|
64507
|
-
return t == ws || t == Xr || t == lr || t ==
|
64514
|
+
return t == ws || t == Xr || t == lr || t == Bs;
|
64508
64515
|
}
|
64509
64516
|
function tc(e) {
|
64510
64517
|
return typeof e == "number" && e == re(e);
|
@@ -64531,7 +64538,7 @@ Za.exports;
|
|
64531
64538
|
}
|
64532
64539
|
function V_(e) {
|
64533
64540
|
if (Su(e))
|
64534
|
-
throw new ee(
|
64541
|
+
throw new ee(l);
|
64535
64542
|
return Xo(e);
|
64536
64543
|
}
|
64537
64544
|
function Q_(e) {
|
@@ -64561,9 +64568,9 @@ Za.exports;
|
|
64561
64568
|
return typeof e == "string" || !te(e) && Ee(e) && Qe(e) == Yt;
|
64562
64569
|
}
|
64563
64570
|
function yt(e) {
|
64564
|
-
return typeof e == "symbol" || Ee(e) && Qe(e) ==
|
64571
|
+
return typeof e == "symbol" || Ee(e) && Qe(e) == Ks;
|
64565
64572
|
}
|
64566
|
-
var
|
64573
|
+
var rr = xo ? mt(xo) : Jm;
|
64567
64574
|
function ef(e) {
|
64568
64575
|
return e === r;
|
64569
64576
|
}
|
@@ -64583,7 +64590,7 @@ Za.exports;
|
|
64583
64590
|
return Ua(e) ? Mt(e) : st(e);
|
64584
64591
|
if (wr && e[wr])
|
64585
64592
|
return Pd(e[wr]());
|
64586
|
-
var t = Xe(e), s = t == ct ? Cn : t == pt ? oa :
|
64593
|
+
var t = Xe(e), s = t == ct ? Cn : t == pt ? oa : ar;
|
64587
64594
|
return s(e);
|
64588
64595
|
}
|
64589
64596
|
function as(e) {
|
@@ -64626,22 +64633,22 @@ Za.exports;
|
|
64626
64633
|
function he(e) {
|
64627
64634
|
return e == null ? "" : ut(e);
|
64628
64635
|
}
|
64629
|
-
var of =
|
64636
|
+
var of = er(function(e, t) {
|
64630
64637
|
if (Nr(t) || rt(t)) {
|
64631
64638
|
Ht(t, Ue(t), e);
|
64632
64639
|
return;
|
64633
64640
|
}
|
64634
64641
|
for (var s in t)
|
64635
64642
|
we.call(t, s) && kr(e, s, t[s]);
|
64636
|
-
}), lc =
|
64643
|
+
}), lc = er(function(e, t) {
|
64637
64644
|
Ht(t, at(t), e);
|
64638
|
-
}), $a =
|
64645
|
+
}), $a = er(function(e, t, s, i) {
|
64639
64646
|
Ht(t, at(t), e, i);
|
64640
|
-
}), lf =
|
64647
|
+
}), lf = er(function(e, t, s, i) {
|
64641
64648
|
Ht(t, Ue(t), e, i);
|
64642
64649
|
}), cf = ts(Mn);
|
64643
64650
|
function pf(e, t) {
|
64644
|
-
var s =
|
64651
|
+
var s = Js(e);
|
64645
64652
|
return t == null ? s : Bo(s, t);
|
64646
64653
|
}
|
64647
64654
|
var df = oe(function(e, t) {
|
@@ -64650,7 +64657,7 @@ Za.exports;
|
|
64650
64657
|
for (p && Ze(t[0], t[1], p) && (i = 1); ++s < i; )
|
64651
64658
|
for (var u = t[s], y = at(u), x = -1, v = y.length; ++x < v; ) {
|
64652
64659
|
var C = y[x], z = e[C];
|
64653
|
-
(z === r || Ot(z,
|
64660
|
+
(z === r || Ot(z, Vs[C]) && !we.call(e, C)) && (e[C] = u[C]);
|
64654
64661
|
}
|
64655
64662
|
return e;
|
64656
64663
|
}), mf = oe(function(e) {
|
@@ -64713,9 +64720,9 @@ Za.exports;
|
|
64713
64720
|
Jt(s, p, t(i, p, u));
|
64714
64721
|
}), s;
|
64715
64722
|
}
|
64716
|
-
var Af =
|
64723
|
+
var Af = er(function(e, t, s) {
|
64717
64724
|
Ia(e, t, s);
|
64718
|
-
}), cc =
|
64725
|
+
}), cc = er(function(e, t, s, i) {
|
64719
64726
|
Ia(e, t, s, i);
|
64720
64727
|
}), qf = ts(function(e, t) {
|
64721
64728
|
var s = {};
|
@@ -64762,10 +64769,10 @@ Za.exports;
|
|
64762
64769
|
}
|
64763
64770
|
var dc = Tl(Ue), mc = Tl(at);
|
64764
64771
|
function Lf(e, t, s) {
|
64765
|
-
var i = te(e), p = i || bs(e) ||
|
64772
|
+
var i = te(e), p = i || bs(e) || rr(e);
|
64766
64773
|
if (t = X(t, 4), s == null) {
|
64767
64774
|
var u = e && e.constructor;
|
64768
|
-
p ? s = i ? new u() : [] : qe(e) ? s = rs(u) ?
|
64775
|
+
p ? s = i ? new u() : [] : qe(e) ? s = rs(u) ? Js(ya(e)) : {} : s = {};
|
64769
64776
|
}
|
64770
64777
|
return (p ? Tt : $t)(e, function(y, x, v) {
|
64771
64778
|
return t(s, y, x, v);
|
@@ -64780,7 +64787,7 @@ Za.exports;
|
|
64780
64787
|
function Of(e, t, s, i) {
|
64781
64788
|
return i = typeof i == "function" ? i : r, e == null ? e : il(e, t, Vn(s), i);
|
64782
64789
|
}
|
64783
|
-
function
|
64790
|
+
function ar(e) {
|
64784
64791
|
return e == null ? [] : qn(e, Ue(e));
|
64785
64792
|
}
|
64786
64793
|
function Ff(e) {
|
@@ -64803,7 +64810,7 @@ Za.exports;
|
|
64803
64810
|
}
|
64804
64811
|
return Hn(e, t);
|
64805
64812
|
}
|
64806
|
-
var Uf =
|
64813
|
+
var Uf = tr(function(e, t, s) {
|
64807
64814
|
return t = t.toLowerCase(), e + (s ? uc(t) : t);
|
64808
64815
|
});
|
64809
64816
|
function uc(e) {
|
@@ -64820,19 +64827,19 @@ Za.exports;
|
|
64820
64827
|
return s -= t.length, s >= 0 && e.slice(s, p) == t;
|
64821
64828
|
}
|
64822
64829
|
function Hf(e) {
|
64823
|
-
return e = he(e), e && Qr.test(e) ? e.replace(
|
64830
|
+
return e = he(e), e && Qr.test(e) ? e.replace(Hs, Nd) : e;
|
64824
64831
|
}
|
64825
64832
|
function jf(e) {
|
64826
64833
|
return e = he(e), e && sa.test(e) ? e.replace(br, "\\$&") : e;
|
64827
64834
|
}
|
64828
|
-
var Wf =
|
64835
|
+
var Wf = tr(function(e, t, s) {
|
64829
64836
|
return e + (s ? "-" : "") + t.toLowerCase();
|
64830
|
-
}), Gf =
|
64837
|
+
}), Gf = tr(function(e, t, s) {
|
64831
64838
|
return e + (s ? " " : "") + t.toLowerCase();
|
64832
64839
|
}), Xf = gl("toLowerCase");
|
64833
64840
|
function Yf(e, t, s) {
|
64834
64841
|
e = he(e), t = re(t);
|
64835
|
-
var i = t ?
|
64842
|
+
var i = t ? Xs(e) : 0;
|
64836
64843
|
if (!t || i >= t)
|
64837
64844
|
return e;
|
64838
64845
|
var p = (t - i) / 2;
|
@@ -64840,12 +64847,12 @@ Za.exports;
|
|
64840
64847
|
}
|
64841
64848
|
function Vf(e, t, s) {
|
64842
64849
|
e = he(e), t = re(t);
|
64843
|
-
var i = t ?
|
64850
|
+
var i = t ? Xs(e) : 0;
|
64844
64851
|
return t && i < t ? e + Ea(t - i, s) : e;
|
64845
64852
|
}
|
64846
64853
|
function Qf(e, t, s) {
|
64847
64854
|
e = he(e), t = re(t);
|
64848
|
-
var i = t ?
|
64855
|
+
var i = t ? Xs(e) : 0;
|
64849
64856
|
return t && i < t ? Ea(t - i, s) + e : e;
|
64850
64857
|
}
|
64851
64858
|
function Zf(e, t, s) {
|
@@ -64858,13 +64865,13 @@ Za.exports;
|
|
64858
64865
|
var e = arguments, t = he(e[0]);
|
64859
64866
|
return e.length < 3 ? t : t.replace(e[1], e[2]);
|
64860
64867
|
}
|
64861
|
-
var tg =
|
64868
|
+
var tg = tr(function(e, t, s) {
|
64862
64869
|
return e + (s ? "_" : "") + t.toLowerCase();
|
64863
64870
|
});
|
64864
64871
|
function sg(e, t, s) {
|
64865
|
-
return s && typeof s != "number" && Ze(e, t, s) && (t = s = r), s = s === r ? J : s >>> 0, s ? (e = he(e), e && (typeof t == "string" || t != null && !yi(t)) && (t = ut(t), !t &&
|
64872
|
+
return s && typeof s != "number" && Ze(e, t, s) && (t = s = r), s = s === r ? J : s >>> 0, s ? (e = he(e), e && (typeof t == "string" || t != null && !yi(t)) && (t = ut(t), !t && Gs(e)) ? gs(Mt(e), 0, s) : e.split(t, s)) : [];
|
64866
64873
|
}
|
64867
|
-
var rg =
|
64874
|
+
var rg = tr(function(e, t, s) {
|
64868
64875
|
return e + (s ? " " : "") + gi(t);
|
64869
64876
|
});
|
64870
64877
|
function ag(e, t, s) {
|
@@ -64948,13 +64955,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
64948
64955
|
}
|
64949
64956
|
e = he(e);
|
64950
64957
|
var u = e.length;
|
64951
|
-
if (
|
64958
|
+
if (Gs(e)) {
|
64952
64959
|
var y = Mt(e);
|
64953
64960
|
u = y.length;
|
64954
64961
|
}
|
64955
64962
|
if (s >= u)
|
64956
64963
|
return e;
|
64957
|
-
var x = s -
|
64964
|
+
var x = s - Xs(i);
|
64958
64965
|
if (x < 1)
|
64959
64966
|
return i;
|
64960
64967
|
var v = y ? gs(y, 0, x).join("") : e.slice(0, x);
|
@@ -64976,7 +64983,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
64976
64983
|
function mg(e) {
|
64977
64984
|
return e = he(e), e && gr.test(e) ? e.replace(Vt, Bd) : e;
|
64978
64985
|
}
|
64979
|
-
var ug =
|
64986
|
+
var ug = tr(function(e, t, s) {
|
64980
64987
|
return e + (s ? " " : "") + t.toUpperCase();
|
64981
64988
|
}), gi = gl("toUpperCase");
|
64982
64989
|
function _c(e, t, s) {
|
@@ -65141,7 +65148,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
65141
65148
|
function Zg(e, t) {
|
65142
65149
|
return e && e.length ? kn(e, X(t, 2)) : 0;
|
65143
65150
|
}
|
65144
|
-
return d.after = x_, d.ary = Xl, d.assign = of, d.assignIn = lc, d.assignInWith = $a, d.assignWith = lf, d.at = cf, d.before = Yl, d.bind = di, d.bindAll = yg, d.bindKey = Vl, d.castArray = E_, d.chain = jl, d.chunk = Bu, d.compact = Ku, d.concat = Uu, d.cond = _g, d.conforms = fg, d.constant = bi, d.countBy = Vy, d.create = pf, d.curry = Ql, d.curryRight = Zl, d.debounce = Jl, d.defaults = df, d.defaultsDeep = mf, d.defer = h_, d.delay = w_, d.difference = $u, d.differenceBy = Hu, d.differenceWith = ju, d.drop = Wu, d.dropRight = Gu, d.dropRightWhile = Xu, d.dropWhile = Yu, d.fill = Vu, d.filter = Zy, d.flatMap = t_, d.flatMapDeep = s_, d.flatMapDepth = r_, d.flatten = Kl, d.flattenDeep = Qu, d.flattenDepth = Zu, d.flip = v_, d.flow = bg, d.flowRight = xg, d.fromPairs = Ju, d.functions = xf, d.functionsIn = hf, d.groupBy = a_, d.initial = ty, d.intersection = sy, d.intersectionBy = ry, d.intersectionWith = ay, d.invert = vf, d.invertBy = Tf, d.invokeMap = i_, d.iteratee = xi, d.keyBy = o_, d.keys = Ue, d.keysIn = at, d.map = Oa, d.mapKeys = If, d.mapValues = kf, d.matches = hg, d.matchesProperty = wg, d.memoize = Ra, d.merge = Af, d.mergeWith = cc, d.method = vg, d.methodOf = Tg, d.mixin = hi, d.negate = Ba, d.nthArg = Ig, d.omit = qf, d.omitBy = Cf, d.once = T_, d.orderBy = l_, d.over = kg, d.overArgs = D_, d.overEvery = Ag, d.overSome = qg, d.partial = mi, d.partialRight = ec, d.partition = c_, d.pick = zf, d.pickBy = pc, d.property = gc, d.propertyOf = Cg, d.pull = ly, d.pullAll = $l, d.pullAllBy = cy, d.pullAllWith = py, d.pullAt = dy, d.range = zg, d.rangeRight = Eg, d.rearg = I_, d.reject = m_, d.remove = my, d.rest = k_, d.reverse = ci, d.sampleSize = y_, d.set = Nf, d.setWith = Sf, d.shuffle = __, d.slice = uy, d.sortBy = b_, d.sortedUniq = hy, d.sortedUniqBy = wy, d.split = sg, d.spread = A_, d.tail = vy, d.take = Ty, d.takeRight = Dy, d.takeRightWhile = Iy, d.takeWhile = ky, d.tap = Ky, d.throttle = q_, d.thru = Pa, d.toArray = nc, d.toPairs = dc, d.toPairsIn = mc, d.toPath = Pg, d.toPlainObject = oc, d.transform = Lf, d.unary = C_, d.union = Ay, d.unionBy = qy, d.unionWith = Cy, d.uniq = zy, d.uniqBy = Ey, d.uniqWith = Ny, d.unset = Mf, d.unzip = pi, d.unzipWith = Hl, d.update = Pf, d.updateWith = Of, d.values =
|
65151
|
+
return d.after = x_, d.ary = Xl, d.assign = of, d.assignIn = lc, d.assignInWith = $a, d.assignWith = lf, d.at = cf, d.before = Yl, d.bind = di, d.bindAll = yg, d.bindKey = Vl, d.castArray = E_, d.chain = jl, d.chunk = Bu, d.compact = Ku, d.concat = Uu, d.cond = _g, d.conforms = fg, d.constant = bi, d.countBy = Vy, d.create = pf, d.curry = Ql, d.curryRight = Zl, d.debounce = Jl, d.defaults = df, d.defaultsDeep = mf, d.defer = h_, d.delay = w_, d.difference = $u, d.differenceBy = Hu, d.differenceWith = ju, d.drop = Wu, d.dropRight = Gu, d.dropRightWhile = Xu, d.dropWhile = Yu, d.fill = Vu, d.filter = Zy, d.flatMap = t_, d.flatMapDeep = s_, d.flatMapDepth = r_, d.flatten = Kl, d.flattenDeep = Qu, d.flattenDepth = Zu, d.flip = v_, d.flow = bg, d.flowRight = xg, d.fromPairs = Ju, d.functions = xf, d.functionsIn = hf, d.groupBy = a_, d.initial = ty, d.intersection = sy, d.intersectionBy = ry, d.intersectionWith = ay, d.invert = vf, d.invertBy = Tf, d.invokeMap = i_, d.iteratee = xi, d.keyBy = o_, d.keys = Ue, d.keysIn = at, d.map = Oa, d.mapKeys = If, d.mapValues = kf, d.matches = hg, d.matchesProperty = wg, d.memoize = Ra, d.merge = Af, d.mergeWith = cc, d.method = vg, d.methodOf = Tg, d.mixin = hi, d.negate = Ba, d.nthArg = Ig, d.omit = qf, d.omitBy = Cf, d.once = T_, d.orderBy = l_, d.over = kg, d.overArgs = D_, d.overEvery = Ag, d.overSome = qg, d.partial = mi, d.partialRight = ec, d.partition = c_, d.pick = zf, d.pickBy = pc, d.property = gc, d.propertyOf = Cg, d.pull = ly, d.pullAll = $l, d.pullAllBy = cy, d.pullAllWith = py, d.pullAt = dy, d.range = zg, d.rangeRight = Eg, d.rearg = I_, d.reject = m_, d.remove = my, d.rest = k_, d.reverse = ci, d.sampleSize = y_, d.set = Nf, d.setWith = Sf, d.shuffle = __, d.slice = uy, d.sortBy = b_, d.sortedUniq = hy, d.sortedUniqBy = wy, d.split = sg, d.spread = A_, d.tail = vy, d.take = Ty, d.takeRight = Dy, d.takeRightWhile = Iy, d.takeWhile = ky, d.tap = Ky, d.throttle = q_, d.thru = Pa, d.toArray = nc, d.toPairs = dc, d.toPairsIn = mc, d.toPath = Pg, d.toPlainObject = oc, d.transform = Lf, d.unary = C_, d.union = Ay, d.unionBy = qy, d.unionWith = Cy, d.uniq = zy, d.uniqBy = Ey, d.uniqWith = Ny, d.unset = Mf, d.unzip = pi, d.unzipWith = Hl, d.update = Pf, d.updateWith = Of, d.values = ar, d.valuesIn = Ff, d.without = Sy, d.words = _c, d.wrap = z_, d.xor = Ly, d.xorBy = My, d.xorWith = Py, d.zip = Oy, d.zipObject = Fy, d.zipObjectDeep = Ry, d.zipWith = By, d.entries = dc, d.entriesIn = mc, d.extend = lc, d.extendWith = $a, hi(d, d), d.add = Fg, d.attempt = fc, d.camelCase = Uf, d.capitalize = uc, d.ceil = Rg, d.clamp = Rf, d.clone = N_, d.cloneDeep = L_, d.cloneDeepWith = M_, d.cloneWith = S_, d.conformsTo = P_, d.deburr = yc, d.defaultTo = gg, d.divide = Bg, d.endsWith = $f, d.eq = Ot, d.escape = Hf, d.escapeRegExp = jf, d.every = Qy, d.find = Jy, d.findIndex = Rl, d.findKey = uf, d.findLast = e_, d.findLastIndex = Bl, d.findLastKey = yf, d.floor = Kg, d.forEach = Wl, d.forEachRight = Gl, d.forIn = _f, d.forInRight = ff, d.forOwn = gf, d.forOwnRight = bf, d.get = _i, d.gt = O_, d.gte = F_, d.has = wf, d.hasIn = fi, d.head = Ul, d.identity = nt, d.includes = n_, d.indexOf = ey, d.inRange = Bf, d.invoke = Df, d.isArguments = Ns, d.isArray = te, d.isArrayBuffer = R_, d.isArrayLike = rt, d.isArrayLikeObject = Le, d.isBoolean = B_, d.isBuffer = bs, d.isDate = K_, d.isElement = U_, d.isEmpty = $_, d.isEqual = H_, d.isEqualWith = j_, d.isError = ui, d.isFinite = W_, d.isFunction = rs, d.isInteger = tc, d.isLength = Ka, d.isMap = sc, d.isMatch = G_, d.isMatchWith = X_, d.isNaN = Y_, d.isNative = V_, d.isNil = Z_, d.isNull = Q_, d.isNumber = rc, d.isObject = qe, d.isObjectLike = Ee, d.isPlainObject = Lr, d.isRegExp = yi, d.isSafeInteger = J_, d.isSet = ac, d.isString = Ua, d.isSymbol = yt, d.isTypedArray = rr, d.isUndefined = ef, d.isWeakMap = tf, d.isWeakSet = sf, d.join = ny, d.kebabCase = Wf, d.last = qt, d.lastIndexOf = iy, d.lowerCase = Gf, d.lowerFirst = Xf, d.lt = rf, d.lte = af, d.max = Ug, d.maxBy = $g, d.mean = Hg, d.meanBy = jg, d.min = Wg, d.minBy = Gg, d.stubArray = vi, d.stubFalse = Ti, d.stubObject = Ng, d.stubString = Sg, d.stubTrue = Lg, d.multiply = Xg, d.nth = oy, d.noConflict = Dg, d.noop = wi, d.now = Fa, d.pad = Yf, d.padEnd = Vf, d.padStart = Qf, d.parseInt = Zf, d.random = Kf, d.reduce = p_, d.reduceRight = d_, d.repeat = Jf, d.replace = eg, d.result = Ef, d.round = Yg, d.runInContext = w, d.sample = u_, d.size = f_, d.snakeCase = tg, d.some = g_, d.sortedIndex = yy, d.sortedIndexBy = _y, d.sortedIndexOf = fy, d.sortedLastIndex = gy, d.sortedLastIndexBy = by, d.sortedLastIndexOf = xy, d.startCase = rg, d.startsWith = ag, d.subtract = Vg, d.sum = Qg, d.sumBy = Zg, d.template = ng, d.times = Mg, d.toFinite = as, d.toInteger = re, d.toLength = ic, d.toLower = ig, d.toNumber = Ct, d.toSafeInteger = nf, d.toString = he, d.toUpper = og, d.trim = lg, d.trimEnd = cg, d.trimStart = pg, d.truncate = dg, d.unescape = mg, d.uniqueId = Og, d.upperCase = ug, d.upperFirst = gi, d.each = Wl, d.eachRight = Gl, d.first = Ul, hi(d, function() {
|
65145
65152
|
var e = {};
|
65146
65153
|
return $t(d, function(t, s) {
|
65147
65154
|
we.call(d.prototype, s) || (e[s] = t);
|
@@ -65230,18 +65237,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
65230
65237
|
var s = d[t];
|
65231
65238
|
if (s) {
|
65232
65239
|
var i = s.name + "";
|
65233
|
-
we.call(
|
65240
|
+
we.call(Zs, i) || (Zs[i] = []), Zs[i].push({ name: t, func: s });
|
65234
65241
|
}
|
65235
|
-
}),
|
65242
|
+
}), Zs[Ca(r, G).name] = [{
|
65236
65243
|
name: "wrapper",
|
65237
65244
|
func: r
|
65238
65245
|
}], de.prototype.clone = dm, de.prototype.reverse = mm, de.prototype.value = um, d.prototype.at = Uy, d.prototype.chain = $y, d.prototype.commit = Hy, d.prototype.next = jy, d.prototype.plant = Gy, d.prototype.reverse = Xy, d.prototype.toJSON = d.prototype.valueOf = d.prototype.value = Yy, d.prototype.first = d.prototype.head, wr && (d.prototype[wr] = Wy), d;
|
65239
|
-
},
|
65240
|
-
Ds ? ((Ds.exports =
|
65246
|
+
}, Ys = Hd();
|
65247
|
+
Ds ? ((Ds.exports = Ys)._ = Ys, xn._ = Ys) : je._ = Ys;
|
65241
65248
|
}).call(Mr);
|
65242
65249
|
})(Za, Za.exports);
|
65243
65250
|
var Cc = Za.exports;
|
65244
|
-
const Ne = "tccScript",
|
65251
|
+
const Ne = "tccScript", or = {
|
65245
65252
|
builtinFunctions: /strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|input\.enum|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,
|
65246
65253
|
keywords: /continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to/,
|
65247
65254
|
tokenizer: {
|
@@ -65798,12 +65805,12 @@ class Ax {
|
|
65798
65805
|
configurable: !0,
|
65799
65806
|
writable: !0,
|
65800
65807
|
value: (r = [], o) => {
|
65801
|
-
const
|
65802
|
-
for (let m =
|
65803
|
-
o[m] !== "," && o[m] !== ")" || (_++,
|
65804
|
-
return r.map(({ name: m = "", displayType: _, desc:
|
65805
|
-
const b = [], h =
|
65806
|
-
return b.push(this._formatter.paragraph(this._formatter.bold(m), this._formatter.italic(_ || ""))),
|
65808
|
+
const c = /* @__PURE__ */ new Map(), l = o.indexOf("(");
|
65809
|
+
for (let m = l + 1, _ = l; m < o.length; m++)
|
65810
|
+
o[m] !== "," && o[m] !== ")" || (_++, c.set(o.slice(_, m), _), _ = m + 1);
|
65811
|
+
return r.map(({ name: m = "", displayType: _, desc: f }) => {
|
65812
|
+
const b = [], h = c.get(m), T = h + m.length;
|
65813
|
+
return b.push(this._formatter.paragraph(this._formatter.bold(m), this._formatter.italic(_ || ""))), f && b.push(Array.isArray(f) ? f.join(this._formatter.lineBreak) : f), {
|
65807
65814
|
label: [h, T],
|
65808
65815
|
documentation: {
|
65809
65816
|
value: b.join(this._formatter.lineBreak)
|
@@ -65813,33 +65820,34 @@ class Ax {
|
|
65813
65820
|
}
|
65814
65821
|
}), this._formatter = ne, this._isMac = /(Mac|iPhone|iPod|iPad)/i.test(n);
|
65815
65822
|
}
|
65816
|
-
getSignatureHelpValues(n, r) {
|
65817
|
-
|
65818
|
-
|
65823
|
+
getSignatureHelpValues(n, r, o = 0, c = 0) {
|
65824
|
+
var b;
|
65825
|
+
const l = this._getFuncItems(n);
|
65826
|
+
if (!(l != null && l.length))
|
65819
65827
|
return null;
|
65820
|
-
const
|
65821
|
-
return {
|
65822
|
-
signatures:
|
65823
|
-
...
|
65828
|
+
const m = this._getSequentialSignatures(n, l), _ = this._getActiveIndex(l, r), f = (b = Ps.overloadsFuncs) == null ? void 0 : b.find((h) => h.name === n && h.startColumn === o && c === h.line);
|
65829
|
+
return f && (_.activeSignature = Number(f.index)), {
|
65830
|
+
signatures: m,
|
65831
|
+
..._
|
65824
65832
|
};
|
65825
65833
|
}
|
65826
65834
|
_getActiveIndex(n, r = []) {
|
65827
|
-
let o = 0,
|
65828
|
-
r.some((m) => !!m) || (
|
65829
|
-
const
|
65830
|
-
if (
|
65835
|
+
let o = 0, c = -1;
|
65836
|
+
r.some((m) => !!m) || (c = r.length - 1);
|
65837
|
+
const l = r.pop();
|
65838
|
+
if (l)
|
65831
65839
|
for (const [m, _] of n.entries()) {
|
65832
|
-
const { args:
|
65833
|
-
if (
|
65834
|
-
const b =
|
65840
|
+
const { args: f } = _;
|
65841
|
+
if (f && f.length) {
|
65842
|
+
const b = f.findIndex((h) => h.name === l);
|
65835
65843
|
if (b != -1) {
|
65836
|
-
|
65844
|
+
c = b, o = m;
|
65837
65845
|
break;
|
65838
65846
|
}
|
65839
65847
|
}
|
65840
65848
|
}
|
65841
65849
|
return {
|
65842
|
-
activeParameter:
|
65850
|
+
activeParameter: c,
|
65843
65851
|
activeSignature: o
|
65844
65852
|
};
|
65845
65853
|
}
|
@@ -65848,25 +65856,25 @@ class Ax {
|
|
65848
65856
|
}
|
65849
65857
|
_getSequentialSignatures(n, r) {
|
65850
65858
|
return r.map((o) => {
|
65851
|
-
const
|
65859
|
+
const c = this._getSignatureLabel(n, o);
|
65852
65860
|
return {
|
65853
|
-
label:
|
65861
|
+
label: c,
|
65854
65862
|
documentation: this._getFormattedSignatureDocumentation(o),
|
65855
|
-
parameters: this._getSignatureParams(o.args,
|
65863
|
+
parameters: this._getSignatureParams(o.args, c)
|
65856
65864
|
};
|
65857
65865
|
});
|
65858
65866
|
}
|
65859
65867
|
_getSignatureLabel(n, r, o = !1) {
|
65860
|
-
const
|
65861
|
-
return o &&
|
65868
|
+
const c = [n];
|
65869
|
+
return o && c.push("<type>"), r.args && (c.push("("), c.push(r.args.map(({ name: l }) => l).join(", ")), c.push(")")), c.join("");
|
65862
65870
|
}
|
65863
65871
|
_getFormattedSignatureDocumentation(n) {
|
65864
65872
|
const { desc: r } = n, o = [];
|
65865
65873
|
r && o.push(Array.isArray(r) ? r.join(this._formatter.lineBreak) : r);
|
65866
|
-
const
|
65874
|
+
const c = `${this._formatter.code(this._isMac ? "⌘" : "Ctrl")} +
|
65867
65875
|
${this._formatter.code("Shift")} +
|
65868
65876
|
${this._formatter.code("Space")}`;
|
65869
|
-
return o.push(this._formatter.lineBreak), o.push(this._formatter.italic(`${
|
65877
|
+
return o.push(this._formatter.lineBreak), o.push(this._formatter.italic(`${c} ${ge.toTriggerParameterHints}`)), {
|
65870
65878
|
value: this._formatter.paragraph(...o)
|
65871
65879
|
};
|
65872
65880
|
}
|
@@ -65884,14 +65892,14 @@ class Cx {
|
|
65884
65892
|
getDocumentColors(n) {
|
65885
65893
|
const r = [];
|
65886
65894
|
return n.forEach((o) => {
|
65887
|
-
const { range:
|
65888
|
-
let { matches:
|
65889
|
-
|
65890
|
-
const m =
|
65895
|
+
const { range: c } = o;
|
65896
|
+
let { matches: l } = o;
|
65897
|
+
l = l || [];
|
65898
|
+
const m = l[0] || "";
|
65891
65899
|
let _ = null;
|
65892
|
-
this._isHexToken(m) ? _ = this._hexToColor(m) : this._isRgbColor(m) ? _ = this._rgbToColor(m) : this._colors[m] ? _ = this._hexToColor(this._colors[m]) : this._isColorExpression(m) &&
|
65900
|
+
this._isHexToken(m) ? _ = this._hexToColor(m) : this._isRgbColor(m) ? _ = this._rgbToColor(m) : this._colors[m] ? _ = this._hexToColor(this._colors[m]) : this._isColorExpression(m) && l[1] && l[6] && (_ = this._extractNewExpression(l[1], Number(l[6]))), _ && r.push({
|
65893
65901
|
color: _,
|
65894
|
-
range:
|
65902
|
+
range: c
|
65895
65903
|
});
|
65896
65904
|
}), r;
|
65897
65905
|
}
|
@@ -65903,22 +65911,22 @@ class Cx {
|
|
65903
65911
|
return `color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`;
|
65904
65912
|
}
|
65905
65913
|
getDocumentColorPresentations(n, { color: r, range: o }) {
|
65906
|
-
const
|
65907
|
-
if (this._isHexToken(
|
65914
|
+
const c = n.getValueInRange(o);
|
65915
|
+
if (this._isHexToken(c) || this._colors[c])
|
65908
65916
|
return [{
|
65909
65917
|
label: this._colorRgbRepresentation(r)
|
65910
65918
|
}, {
|
65911
65919
|
label: this._colorHexRepresentation(r)
|
65912
65920
|
}];
|
65913
|
-
if (this._isColorExpression(
|
65914
|
-
const
|
65915
|
-
if (!
|
65921
|
+
if (this._isColorExpression(c) || this._isRgbColor(c)) {
|
65922
|
+
const l = this._isColorExpression(c) ? this._colorNewRepresentation(r) : this._colorRgbRepresentation(r);
|
65923
|
+
if (!l)
|
65916
65924
|
return [];
|
65917
65925
|
const m = this._colorHexRepresentation(r);
|
65918
65926
|
return [{
|
65919
|
-
label:
|
65927
|
+
label: l,
|
65920
65928
|
textEdit: {
|
65921
|
-
text:
|
65929
|
+
text: l,
|
65922
65930
|
range: o
|
65923
65931
|
}
|
65924
65932
|
}, {
|
@@ -65955,12 +65963,12 @@ class Cx {
|
|
65955
65963
|
} : null;
|
65956
65964
|
}
|
65957
65965
|
_colorHexRepresentation(n) {
|
65958
|
-
const r = this._hexFromNumber(n.red), o = this._hexFromNumber(n.green),
|
65959
|
-
return `#${r}${o}${
|
65966
|
+
const r = this._hexFromNumber(n.red), o = this._hexFromNumber(n.green), c = this._hexFromNumber(n.blue), l = this._hexFromNumber(n.alpha);
|
65967
|
+
return `#${r}${o}${c}${n.alpha === 1 ? "" : l}`;
|
65960
65968
|
}
|
65961
65969
|
_colorRgbRepresentation(n) {
|
65962
|
-
const r = this._denormalize(n.red), o = this._denormalize(n.green),
|
65963
|
-
return
|
65970
|
+
const r = this._denormalize(n.red), o = this._denormalize(n.green), c = this._denormalize(n.blue), l = this._denormalizeAlpha(n.alpha), m = [r, o, c];
|
65971
|
+
return l > 0 && m.push(l), `color.rgb(${m.join(", ")})`;
|
65964
65972
|
}
|
65965
65973
|
_colorNewRepresentation(n) {
|
65966
65974
|
const r = {
|
@@ -65970,20 +65978,20 @@ class Cx {
|
|
65970
65978
|
return `color.new(${this._colorHexRepresentation(r)}, ${this._denormalizeAlpha(n.alpha)})`;
|
65971
65979
|
}
|
65972
65980
|
_hexToColor(n) {
|
65973
|
-
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),
|
65981
|
+
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), c = r ? `${n.slice(1, 2)}${n.slice(1, 2)}` : n.slice(2, 4), l = r ? `${n.slice(2, 3)}${n.slice(2, 3)}` : n.slice(4, 6), m = (r ? `${n.slice(3, 4)}${n.slice(3, 4)}` : n.slice(6, 8)) || "ff";
|
65974
65982
|
return {
|
65975
65983
|
red: this._normalize(parseInt(o, 16)),
|
65976
|
-
green: this._normalize(parseInt(
|
65977
|
-
blue: this._normalize(parseInt(
|
65984
|
+
green: this._normalize(parseInt(c, 16)),
|
65985
|
+
blue: this._normalize(parseInt(l, 16)),
|
65978
65986
|
alpha: this._normalize(parseInt(m, 16))
|
65979
65987
|
};
|
65980
65988
|
}
|
65981
65989
|
_rgbToColor(n) {
|
65982
|
-
const r = n.replace(/[^\d,]/g, "").split(","), o = this._normalize(Number(r[0])),
|
65983
|
-
return isNaN(o) || isNaN(
|
65990
|
+
const r = n.replace(/[^\d,]/g, "").split(","), o = this._normalize(Number(r[0])), c = this._normalize(Number(r[1])), l = this._normalize(Number(r[2])), m = this._normalizeAlpha(Number(r[3])) || 1;
|
65991
|
+
return isNaN(o) || isNaN(c) || isNaN(l) ? null : {
|
65984
65992
|
red: o,
|
65985
|
-
green:
|
65986
|
-
blue:
|
65993
|
+
green: c,
|
65994
|
+
blue: l,
|
65987
65995
|
alpha: m
|
65988
65996
|
};
|
65989
65997
|
}
|
@@ -66461,20 +66469,20 @@ class Ex {
|
|
66461
66469
|
this._editor = n;
|
66462
66470
|
}
|
66463
66471
|
async setInlayHints(n) {
|
66464
|
-
const { endLine: r, endColumn: o, name:
|
66465
|
-
if (this._importCompleteLibrary.has(
|
66466
|
-
const _ = this._funcs.get(
|
66467
|
-
return ((_ == null ? void 0 : _.name) !==
|
66472
|
+
const { endLine: r, endColumn: o, name: c, libraryId: l, libraryName: m } = n;
|
66473
|
+
if (this._importCompleteLibrary.has(l)) {
|
66474
|
+
const _ = this._funcs.get(l);
|
66475
|
+
return ((_ == null ? void 0 : _.name) !== c || !c && !this._inlayHints.has(l)) && (this._updateFuncNames(c || m, l), this._inlayHintsHandle(n)), this._importCompleteLibrary.get(l);
|
66468
66476
|
}
|
66469
|
-
return this._importCompleteLibrary.set(
|
66477
|
+
return this._importCompleteLibrary.set(l, lp), this._inlayHints.set(l, {
|
66470
66478
|
label: "载入中...",
|
66471
66479
|
position: {
|
66472
66480
|
column: o,
|
66473
66481
|
lineNumber: r
|
66474
66482
|
},
|
66475
66483
|
paddingLeft: !0
|
66476
|
-
}), this.triggerInlayHints(), this._updateFuncNames(
|
66477
|
-
this._inlayHints.has(
|
66484
|
+
}), this.triggerInlayHints(), this._updateFuncNames(c || m, l), setTimeout(() => {
|
66485
|
+
this._inlayHints.has(l) && this._inlayHintsHandle(n);
|
66478
66486
|
}, 2e3), lp;
|
66479
66487
|
}
|
66480
66488
|
deleteInlayHints(n) {
|
@@ -66494,13 +66502,13 @@ class Ex {
|
|
66494
66502
|
const o = this._importCompleteLibrary.get(r);
|
66495
66503
|
if (!o)
|
66496
66504
|
return;
|
66497
|
-
const
|
66498
|
-
this._funcs.set(r, { name: n, funcs:
|
66505
|
+
const c = o.functions.map((l) => `${n}.${l.name}`);
|
66506
|
+
this._funcs.set(r, { name: n, funcs: c }), this._updateMonarchTokens();
|
66499
66507
|
}
|
66500
66508
|
_setNoNameInlayHints(n) {
|
66501
|
-
const { endLine: r, endColumn: o, libraryId:
|
66502
|
-
this._inlayHints.set(
|
66503
|
-
label: `as ${
|
66509
|
+
const { endLine: r, endColumn: o, libraryId: c, libraryName: l } = n;
|
66510
|
+
this._inlayHints.set(c, {
|
66511
|
+
label: `as ${l}`,
|
66504
66512
|
position: {
|
66505
66513
|
column: o,
|
66506
66514
|
lineNumber: r
|
@@ -66513,8 +66521,8 @@ class Ex {
|
|
66513
66521
|
r ? this._inlayHints.delete(o) : this._setNoNameInlayHints(n), this.triggerInlayHints();
|
66514
66522
|
}
|
66515
66523
|
_updateMonarchTokens() {
|
66516
|
-
const n = [...this._funcs.values()].map((
|
66517
|
-
o.splice(15, 0, [r, "meta.function-call"]), $e.setMonarchTokensProvider(Ne, { ...
|
66524
|
+
const n = [...this._funcs.values()].map((c) => c.funcs.join("|")), r = new RegExp("\\b(" + n.join("|") + ")(?=\\s*\\()"), o = [...or.tokenizer.root];
|
66525
|
+
o.splice(15, 0, [r, "meta.function-call"]), $e.setMonarchTokensProvider(Ne, { ...or, tokenizer: { ...or.tokenizer, root: o } });
|
66518
66526
|
}
|
66519
66527
|
}
|
66520
66528
|
const Ja = new Ex();
|
@@ -66525,27 +66533,27 @@ function Nx(a, n, r) {
|
|
66525
66533
|
startColumn: 1,
|
66526
66534
|
endLineNumber: n.lineNumber,
|
66527
66535
|
endColumn: n.column
|
66528
|
-
},
|
66529
|
-
if (/^\/\/\s*@/.test(
|
66536
|
+
}, c = a.getValueInRange(o);
|
66537
|
+
if (/^\/\/\s*@/.test(c))
|
66530
66538
|
return {
|
66531
66539
|
suggestions: Bt.annotationSuggestions
|
66532
66540
|
};
|
66533
66541
|
if (r.triggerCharacter === "@")
|
66534
66542
|
return { suggestions: [] };
|
66535
|
-
const
|
66536
|
-
if (!
|
66543
|
+
const l = c.match(/([\w.]+)$/) || [];
|
66544
|
+
if (!l.length)
|
66537
66545
|
return {
|
66538
66546
|
suggestions: []
|
66539
66547
|
};
|
66540
|
-
const m = (F =
|
66548
|
+
const m = (F = l[0]) == null ? void 0 : F.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/), _ = m ? m[1] ? m[1] : m[2] ? m[2] : void 0 : void 0, f = a.getWordUntilPosition(n), b = Ps.parseCurrentInputFunc(c), h = {
|
66541
66549
|
startLineNumber: n.lineNumber,
|
66542
66550
|
endLineNumber: n.lineNumber,
|
66543
|
-
startColumn:
|
66544
|
-
endColumn:
|
66545
|
-
}, T = a.getValueInRange({ ...h, startColumn:
|
66551
|
+
startColumn: f.startColumn,
|
66552
|
+
endColumn: f.endColumn
|
66553
|
+
}, T = a.getValueInRange({ ...h, startColumn: f.endColumn, endColumn: f.endColumn + 1 });
|
66546
66554
|
Bt.nextIsBracket = T === "(";
|
66547
66555
|
let M = cp(Bt.getSuggestions(_) || [], h);
|
66548
|
-
if (
|
66556
|
+
if (l[0] === "." && (M = []), b && !_ && !/=\s*\w+$/.test(c)) {
|
66549
66557
|
const P = cp(Bt.getArgSuggestions(b.funcName) || [], h);
|
66550
66558
|
M = M.concat(P);
|
66551
66559
|
}
|
@@ -66563,7 +66571,7 @@ function Sx(a) {
|
|
66563
66571
|
}
|
66564
66572
|
function Lx(a, n) {
|
66565
66573
|
var o;
|
66566
|
-
const r =
|
66574
|
+
const r = Ps.parseLineContentFuncVar(n.column, n.lineNumber, a, n);
|
66567
66575
|
if (r != null && r.libraryId)
|
66568
66576
|
return {
|
66569
66577
|
contents: [
|
@@ -66573,12 +66581,12 @@ function Lx(a, n) {
|
|
66573
66581
|
]
|
66574
66582
|
};
|
66575
66583
|
if ((o = r == null ? void 0 : r.docValue) != null && o.length) {
|
66576
|
-
const
|
66577
|
-
if (
|
66584
|
+
const c = xx(r.docValue, r.index, r.isBuildIn);
|
66585
|
+
if (c)
|
66578
66586
|
return {
|
66579
66587
|
contents: [
|
66580
66588
|
{
|
66581
|
-
value:
|
66589
|
+
value: c
|
66582
66590
|
}
|
66583
66591
|
]
|
66584
66592
|
};
|
@@ -66594,17 +66602,17 @@ function Mx(a, n) {
|
|
66594
66602
|
endLineNumber: n.lineNumber,
|
66595
66603
|
startColumn: 1,
|
66596
66604
|
endColumn: n.column
|
66597
|
-
}, o = a.getValueInRange(r),
|
66598
|
-
let
|
66599
|
-
|
66605
|
+
}, o = a.getValueInRange(r), c = a.findMatches(String(Ix), r, !0, !1, null, !0), l = a.findMatches(String(kx), r, !0, !1, null, !0), m = (T = c.pop()) == null ? void 0 : T.matches, _ = (M = l.pop()) == null ? void 0 : M.matches;
|
66606
|
+
let f = !1;
|
66607
|
+
c.length % 2 === 0 ? m && m[0] === '"' && (f = !0) : m && !m[0] && (f = !0);
|
66600
66608
|
let b = !1;
|
66601
|
-
|
66602
|
-
const h =
|
66609
|
+
l.length % 2 === 0 ? _ && _[0] === "'" && (b = !0) : _ && !_[0] && (b = !0);
|
66610
|
+
const h = Ps.parseCurrentInputFuncAndArg(o, b, f);
|
66603
66611
|
if (h) {
|
66604
|
-
const { funcName: F, args: P } = h,
|
66605
|
-
if (
|
66612
|
+
const { funcName: F, args: P, startIndex: N } = h, $ = qx.getSignatureHelpValues(F, P, N + 1, n.lineNumber);
|
66613
|
+
if ($)
|
66606
66614
|
return {
|
66607
|
-
value:
|
66615
|
+
value: $,
|
66608
66616
|
dispose: () => {
|
66609
66617
|
}
|
66610
66618
|
};
|
@@ -66614,30 +66622,30 @@ function Mx(a, n) {
|
|
66614
66622
|
function Px(a) {
|
66615
66623
|
let n = a.findMatches(Ei.colorMatchesRegStr, !0, !0, !1, null, !0);
|
66616
66624
|
return n = n.filter((o) => {
|
66617
|
-
const
|
66625
|
+
const c = a.getValueInRange({
|
66618
66626
|
...o.range,
|
66619
66627
|
startColumn: 0
|
66620
66628
|
});
|
66621
|
-
return
|
66629
|
+
return c.indexOf("//") === -1 || c.indexOf("//") > o.range.endColumn;
|
66622
66630
|
}), Ei.getDocumentColors(n);
|
66623
66631
|
}
|
66624
66632
|
function Ox(a, n) {
|
66625
66633
|
return Ei.getDocumentColorPresentations(a, n) || [];
|
66626
66634
|
}
|
66627
66635
|
function Fx(a, n) {
|
66628
|
-
const r = a.getModel(), o =
|
66636
|
+
const r = a.getModel(), o = Ps.parseLineContentFuncVar(n.startColumn + 1, n.startLineNumber, r);
|
66629
66637
|
if (!o || o.isBuildIn || !o.docValue || !o.docValue[0].pos)
|
66630
66638
|
return o != null && o.isBuildIn ? o : void 0;
|
66631
|
-
const { lineNumber:
|
66632
|
-
startLineNumber:
|
66633
|
-
endLineNumber:
|
66634
|
-
startColumn:
|
66635
|
-
endColumn:
|
66639
|
+
const { lineNumber: c, column: l } = o.docValue[0].pos, m = {
|
66640
|
+
startLineNumber: c,
|
66641
|
+
endLineNumber: c,
|
66642
|
+
startColumn: l,
|
66643
|
+
endColumn: l
|
66636
66644
|
};
|
66637
66645
|
a.revealRangeInCenterIfOutsideViewport(m), a.setSelection(m);
|
66638
66646
|
}
|
66639
66647
|
function Rx(a, n) {
|
66640
|
-
return
|
66648
|
+
return Ps.parseLineContentFuncVar(n.column, n.lineNumber, a, n) ? {
|
66641
66649
|
uri: a.uri,
|
66642
66650
|
range: {
|
66643
66651
|
startLineNumber: n.lineNumber,
|
@@ -66683,12 +66691,12 @@ var Ye;
|
|
66683
66691
|
a.added = "added", a.removed = "removed", a.modified = "modified";
|
66684
66692
|
})(Ye || (Ye = {}));
|
66685
66693
|
const Kx = (a, n) => {
|
66686
|
-
const { close: r, retracement: o } = a, [
|
66694
|
+
const { close: r, retracement: o } = a, [c, l] = ot("modified");
|
66687
66695
|
return hp(n, () => ({
|
66688
66696
|
updateType(m) {
|
66689
|
-
|
66697
|
+
l(m);
|
66690
66698
|
}
|
66691
|
-
})), L.jsxs("div", { className: `content-popup content-${
|
66699
|
+
})), L.jsxs("div", { className: `content-popup content-${c}-popup`, children: [L.jsx("div", { className: `triangle-popup triangle-${c}-popup` }), L.jsxs("div", { className: `header-popup header-${c}-popup`, children: [L.jsx("div", { className: "title-popup", children: "Local working changes" }), L.jsx("div", { className: "actions-popup", children: L.jsx("div", { onClick: r, "data-role": "button", className: "button-popup", "data-name": "button-close-diff", children: L.jsx("span", { className: "icon-popup", role: "img", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12", width: "12", height: "12", children: L.jsx("path", { stroke: "currentColor", strokeWidth: "1.2", d: "m1.5 1.5 9 9m0-9-9 9" }) }) }) }) })] }), L.jsx("div", { id: "diffEditorContainer", style: { height: "100%" } })] });
|
66692
66700
|
}, Ux = xp(Kx);
|
66693
66701
|
class $x {
|
66694
66702
|
constructor(n, r, o = !0) {
|
@@ -66712,7 +66720,7 @@ class $x {
|
|
66712
66720
|
configurable: !0,
|
66713
66721
|
writable: !0,
|
66714
66722
|
value: void 0
|
66715
|
-
}), 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(L.jsx(Ux, { ref: (
|
66723
|
+
}), 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(L.jsx(Ux, { ref: (c) => this._content = c, close: () => this._close(), retracement: this._retracement })), this._top = 0;
|
66716
66724
|
}
|
66717
66725
|
_close() {
|
66718
66726
|
this._domNode.style.display = "none";
|
@@ -66729,8 +66737,8 @@ class $x {
|
|
66729
66737
|
return null;
|
66730
66738
|
}
|
66731
66739
|
show(n, r, o) {
|
66732
|
-
var
|
66733
|
-
this._top = r, (
|
66740
|
+
var c;
|
66741
|
+
this._top = r, (c = this._content) == null || c.updateType(o), this._domNode.style.top = `${n}px`, this._domNode.style.display = "block";
|
66734
66742
|
}
|
66735
66743
|
hide() {
|
66736
66744
|
this._domNode.style.display = "none";
|
@@ -66744,52 +66752,52 @@ function hs() {
|
|
66744
66752
|
}
|
66745
66753
|
hs.prototype = {
|
66746
66754
|
diff: function(n, r) {
|
66747
|
-
var o,
|
66748
|
-
typeof
|
66755
|
+
var o, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = c.callback;
|
66756
|
+
typeof c == "function" && (l = c, c = {}), this.options = c;
|
66749
66757
|
var m = this;
|
66750
66758
|
function _(I) {
|
66751
|
-
return
|
66752
|
-
|
66759
|
+
return l ? (setTimeout(function() {
|
66760
|
+
l(void 0, I);
|
66753
66761
|
}, 0), !0) : I;
|
66754
66762
|
}
|
66755
66763
|
n = this.castInput(n), r = this.castInput(r), n = this.removeEmpty(this.tokenize(n)), r = this.removeEmpty(this.tokenize(r));
|
66756
|
-
var
|
66757
|
-
|
66758
|
-
var M = (o =
|
66764
|
+
var f = r.length, b = n.length, h = 1, T = f + b;
|
66765
|
+
c.maxEditLength && (T = Math.min(T, c.maxEditLength));
|
66766
|
+
var M = (o = c.timeout) !== null && o !== void 0 ? o : 1 / 0, F = Date.now() + M, P = [{
|
66759
66767
|
oldPos: -1,
|
66760
66768
|
lastComponent: void 0
|
66761
66769
|
}], N = this.extractCommon(P[0], r, n, 0);
|
66762
|
-
if (P[0].oldPos + 1 >= b && N + 1 >=
|
66770
|
+
if (P[0].oldPos + 1 >= b && N + 1 >= f)
|
66763
66771
|
return _([{
|
66764
66772
|
value: this.join(r),
|
66765
66773
|
count: r.length
|
66766
66774
|
}]);
|
66767
|
-
var
|
66775
|
+
var $ = -1 / 0, G = 1 / 0;
|
66768
66776
|
function j() {
|
66769
|
-
for (var I = Math.max(
|
66777
|
+
for (var I = Math.max($, -h); I <= Math.min(G, h); I += 2) {
|
66770
66778
|
var A = void 0, R = P[I - 1], U = P[I + 1];
|
66771
66779
|
R && (P[I - 1] = void 0);
|
66772
66780
|
var se = !1;
|
66773
66781
|
if (U) {
|
66774
66782
|
var me = U.oldPos - I;
|
66775
|
-
se = U && 0 <= me && me <
|
66783
|
+
se = U && 0 <= me && me < f;
|
66776
66784
|
}
|
66777
66785
|
var ie = R && R.oldPos + 1 < b;
|
66778
66786
|
if (!se && !ie) {
|
66779
66787
|
P[I] = void 0;
|
66780
66788
|
continue;
|
66781
66789
|
}
|
66782
|
-
if (!ie || se && R.oldPos + 1 < U.oldPos ? A = m.addToPath(U, !0, void 0, 0) : A = m.addToPath(R, void 0, !0, 1), N = m.extractCommon(A, r, n, I), A.oldPos + 1 >= b && N + 1 >=
|
66790
|
+
if (!ie || se && R.oldPos + 1 < U.oldPos ? A = m.addToPath(U, !0, void 0, 0) : A = m.addToPath(R, void 0, !0, 1), N = m.extractCommon(A, r, n, I), A.oldPos + 1 >= b && N + 1 >= f)
|
66783
66791
|
return _(Hx(m, A.lastComponent, r, n, m.useLongestToken));
|
66784
|
-
P[I] = A, A.oldPos + 1 >= b && (G = Math.min(G, I - 1)), N + 1 >=
|
66792
|
+
P[I] = A, A.oldPos + 1 >= b && (G = Math.min(G, I - 1)), N + 1 >= f && ($ = Math.max($, I + 1));
|
66785
66793
|
}
|
66786
66794
|
h++;
|
66787
66795
|
}
|
66788
|
-
if (
|
66796
|
+
if (l)
|
66789
66797
|
(function I() {
|
66790
66798
|
setTimeout(function() {
|
66791
66799
|
if (h > T || Date.now() > F)
|
66792
|
-
return
|
66800
|
+
return l();
|
66793
66801
|
j() || I();
|
66794
66802
|
}, 0);
|
66795
66803
|
})();
|
@@ -66800,33 +66808,33 @@ hs.prototype = {
|
|
66800
66808
|
return O;
|
66801
66809
|
}
|
66802
66810
|
},
|
66803
|
-
addToPath: function(n, r, o,
|
66804
|
-
var
|
66805
|
-
return
|
66806
|
-
oldPos: n.oldPos +
|
66811
|
+
addToPath: function(n, r, o, c) {
|
66812
|
+
var l = n.lastComponent;
|
66813
|
+
return l && l.added === r && l.removed === o ? {
|
66814
|
+
oldPos: n.oldPos + c,
|
66807
66815
|
lastComponent: {
|
66808
|
-
count:
|
66816
|
+
count: l.count + 1,
|
66809
66817
|
added: r,
|
66810
66818
|
removed: o,
|
66811
|
-
previousComponent:
|
66819
|
+
previousComponent: l.previousComponent
|
66812
66820
|
}
|
66813
66821
|
} : {
|
66814
|
-
oldPos: n.oldPos +
|
66822
|
+
oldPos: n.oldPos + c,
|
66815
66823
|
lastComponent: {
|
66816
66824
|
count: 1,
|
66817
66825
|
added: r,
|
66818
66826
|
removed: o,
|
66819
|
-
previousComponent:
|
66827
|
+
previousComponent: l
|
66820
66828
|
}
|
66821
66829
|
};
|
66822
66830
|
},
|
66823
|
-
extractCommon: function(n, r, o,
|
66824
|
-
for (var
|
66825
|
-
|
66831
|
+
extractCommon: function(n, r, o, c) {
|
66832
|
+
for (var l = r.length, m = o.length, _ = n.oldPos, f = _ - c, b = 0; f + 1 < l && _ + 1 < m && this.equals(r[f + 1], o[_ + 1]); )
|
66833
|
+
f++, _++, b++;
|
66826
66834
|
return b && (n.lastComponent = {
|
66827
66835
|
count: b,
|
66828
66836
|
previousComponent: n.lastComponent
|
66829
|
-
}), n.oldPos = _,
|
66837
|
+
}), n.oldPos = _, f;
|
66830
66838
|
},
|
66831
66839
|
equals: function(n, r) {
|
66832
66840
|
return this.options.comparator ? this.options.comparator(n, r) : n === r || this.options.ignoreCase && n.toLowerCase() === r.toLowerCase();
|
@@ -66846,22 +66854,22 @@ hs.prototype = {
|
|
66846
66854
|
return n.join("");
|
66847
66855
|
}
|
66848
66856
|
};
|
66849
|
-
function Hx(a, n, r, o,
|
66850
|
-
for (var
|
66851
|
-
|
66852
|
-
|
66853
|
-
for (var _ = 0,
|
66854
|
-
var T =
|
66857
|
+
function Hx(a, n, r, o, c) {
|
66858
|
+
for (var l = [], m; n; )
|
66859
|
+
l.push(n), m = n.previousComponent, delete n.previousComponent, n = m;
|
66860
|
+
l.reverse();
|
66861
|
+
for (var _ = 0, f = l.length, b = 0, h = 0; _ < f; _++) {
|
66862
|
+
var T = l[_];
|
66855
66863
|
if (T.removed) {
|
66856
|
-
if (T.value = a.join(o.slice(h, h + T.count)), h += T.count, _ &&
|
66857
|
-
var F =
|
66858
|
-
|
66864
|
+
if (T.value = a.join(o.slice(h, h + T.count)), h += T.count, _ && l[_ - 1].added) {
|
66865
|
+
var F = l[_ - 1];
|
66866
|
+
l[_ - 1] = l[_], l[_] = F;
|
66859
66867
|
}
|
66860
66868
|
} else {
|
66861
|
-
if (!T.added &&
|
66869
|
+
if (!T.added && c) {
|
66862
66870
|
var M = r.slice(b, b + T.count);
|
66863
|
-
M = M.map(function(N,
|
66864
|
-
var G = o[h +
|
66871
|
+
M = M.map(function(N, $) {
|
66872
|
+
var G = o[h + $];
|
66865
66873
|
return G.length > N.length ? G : N;
|
66866
66874
|
}), T.value = a.join(M);
|
66867
66875
|
} else
|
@@ -66869,8 +66877,8 @@ function Hx(a, n, r, o, l) {
|
|
66869
66877
|
b += T.count, T.added || (h += T.count);
|
66870
66878
|
}
|
66871
66879
|
}
|
66872
|
-
var P =
|
66873
|
-
return
|
66880
|
+
var P = l[f - 1];
|
66881
|
+
return f > 1 && typeof P.value == "string" && (P.added || P.removed) && a.equals("", P.value) && (l[f - 2].value += P.value, l.pop()), l;
|
66874
66882
|
}
|
66875
66883
|
var pp = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, dp = /\S/, zp = new hs();
|
66876
66884
|
zp.equals = function(a, n) {
|
@@ -66888,8 +66896,8 @@ $i.tokenize = function(a) {
|
|
66888
66896
|
var n = [], r = a.split(/(\n|\r\n)/);
|
66889
66897
|
r[r.length - 1] || r.pop();
|
66890
66898
|
for (var o = 0; o < r.length; o++) {
|
66891
|
-
var
|
66892
|
-
o % 2 && !this.options.newlineIsToken ? n[n.length - 1] +=
|
66899
|
+
var c = r[o];
|
66900
|
+
o % 2 && !this.options.newlineIsToken ? n[n.length - 1] += c : (this.options.ignoreWhitespace && (c = c.trim()), n.push(c));
|
66893
66901
|
}
|
66894
66902
|
return n;
|
66895
66903
|
};
|
@@ -66916,33 +66924,33 @@ var Xx = Object.prototype.toString, Wr = new hs();
|
|
66916
66924
|
Wr.useLongestToken = !0;
|
66917
66925
|
Wr.tokenize = $i.tokenize;
|
66918
66926
|
Wr.castInput = function(a) {
|
66919
|
-
var n = this.options, r = n.undefinedReplacement, o = n.stringifyReplacer,
|
66927
|
+
var n = this.options, r = n.undefinedReplacement, o = n.stringifyReplacer, c = o === void 0 ? function(l, m) {
|
66920
66928
|
return typeof m > "u" ? r : m;
|
66921
66929
|
} : o;
|
66922
|
-
return typeof a == "string" ? a : JSON.stringify(Ni(a, null, null,
|
66930
|
+
return typeof a == "string" ? a : JSON.stringify(Ni(a, null, null, c), c, " ");
|
66923
66931
|
};
|
66924
66932
|
Wr.equals = function(a, n) {
|
66925
66933
|
return hs.prototype.equals.call(Wr, a.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
|
66926
66934
|
};
|
66927
|
-
function Ni(a, n, r, o,
|
66928
|
-
n = n || [], r = r || [], o && (a = o(
|
66929
|
-
var
|
66930
|
-
for (
|
66931
|
-
if (n[
|
66932
|
-
return r[
|
66935
|
+
function Ni(a, n, r, o, c) {
|
66936
|
+
n = n || [], r = r || [], o && (a = o(c, a));
|
66937
|
+
var l;
|
66938
|
+
for (l = 0; l < n.length; l += 1)
|
66939
|
+
if (n[l] === a)
|
66940
|
+
return r[l];
|
66933
66941
|
var m;
|
66934
66942
|
if (Xx.call(a) === "[object Array]") {
|
66935
|
-
for (n.push(a), m = new Array(a.length), r.push(m),
|
66936
|
-
m[
|
66943
|
+
for (n.push(a), m = new Array(a.length), r.push(m), l = 0; l < a.length; l += 1)
|
66944
|
+
m[l] = Ni(a[l], n, r, o, c);
|
66937
66945
|
return n.pop(), r.pop(), m;
|
66938
66946
|
}
|
66939
66947
|
if (a && a.toJSON && (a = a.toJSON()), Ya(a) === "object" && a !== null) {
|
66940
66948
|
n.push(a), m = {}, r.push(m);
|
66941
|
-
var _ = [],
|
66942
|
-
for (
|
66943
|
-
a.hasOwnProperty(
|
66944
|
-
for (_.sort(),
|
66945
|
-
|
66949
|
+
var _ = [], f;
|
66950
|
+
for (f in a)
|
66951
|
+
a.hasOwnProperty(f) && _.push(f);
|
66952
|
+
for (_.sort(), l = 0; l < _.length; l += 1)
|
66953
|
+
f = _[l], m[f] = Ni(a[f], n, r, o, f);
|
66946
66954
|
n.pop(), r.pop();
|
66947
66955
|
} else
|
66948
66956
|
m = a;
|
@@ -67012,23 +67020,23 @@ class Yx {
|
|
67012
67020
|
(o = this._editor.getModel()) == null || o.deltaDecorations(this._oldDecorations, []), this._oldDecorations = [];
|
67013
67021
|
}
|
67014
67022
|
dispose() {
|
67015
|
-
var n, r, o,
|
67016
|
-
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 = [], (
|
67023
|
+
var n, r, o, c;
|
67024
|
+
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 = [], (c = this._diffEditor) == null || c.dispose(), this._diffEditor = void 0;
|
67017
67025
|
}
|
67018
67026
|
_changesHandle(n) {
|
67019
67027
|
let r = 0, o;
|
67020
|
-
const
|
67021
|
-
let
|
67028
|
+
const c = [];
|
67029
|
+
let l = 0;
|
67022
67030
|
for (const m of n) {
|
67023
|
-
const { added: _, removed:
|
67024
|
-
_ ? o && o.removed ? (r = this._changeHandle(
|
67031
|
+
const { added: _, removed: f, count: b = 1, value: h } = m;
|
67032
|
+
_ ? o && o.removed ? (r = this._changeHandle(c, r, l, b, Ye.modified), l = 0, o = void 0) : (o && o.added && (r = this._changeHandle(c, r, l, o.count || 1, Ye.added), l = 0), o = m) : f ? o && o.added ? (r = this._changeHandle(c, r, l, o.count || 1, Ye.modified), l = 0, o = void 0) : (o && o.removed && this._addDecorationList(c, r, Ye.removed), o = m) : /^\n+$/.test(h) ? o && (o.added || o.removed) ? l = b : r += b : (o && o.added ? (r = this._changeHandle(c, r, l, o.count || 1, Ye.added), l = 0, o = void 0) : o && o.removed && (this._addDecorationList(c, r, Ye.removed), o = void 0), r += b);
|
67025
67033
|
}
|
67026
|
-
return o && o.added ? r = this._changeHandle(
|
67034
|
+
return o && o.added ? r = this._changeHandle(c, r, l, o.count || 1, Ye.added) : o && o.removed && this._addDecorationList(c, r, Ye.removed), c;
|
67027
67035
|
}
|
67028
|
-
_changeHandle(n, r, o,
|
67029
|
-
for (let m = 1; m <=
|
67030
|
-
this._addDecorationList(n, r + m,
|
67031
|
-
return r +=
|
67036
|
+
_changeHandle(n, r, o, c, l) {
|
67037
|
+
for (let m = 1; m <= c; m++)
|
67038
|
+
this._addDecorationList(n, r + m, l);
|
67039
|
+
return r += c + o, r;
|
67032
67040
|
}
|
67033
67041
|
_addDecorationList(n, r, o) {
|
67034
67042
|
n.push({
|
@@ -67040,8 +67048,8 @@ class Yx {
|
|
67040
67048
|
});
|
67041
67049
|
}
|
67042
67050
|
_changeEvent() {
|
67043
|
-
var
|
67044
|
-
const n = jx(this._originalModel.getValue(), ((
|
67051
|
+
var c, l;
|
67052
|
+
const n = jx(this._originalModel.getValue(), ((c = this._editor.getModel()) == null ? void 0 : c.getValue()) || ""), r = this._changesHandle(n), o = ((l = this._editor.getModel()) == null ? void 0 : l.deltaDecorations(this._oldDecorations, r)) || [];
|
67045
67053
|
this._oldDecorations = o;
|
67046
67054
|
}
|
67047
67055
|
_eventListening() {
|
@@ -67049,10 +67057,10 @@ class Yx {
|
|
67049
67057
|
this._editor.addOverlayWidget(n), this._onMouseDownListener = this._editor.onMouseDown((r) => this._onMouseDownHandle(r)), this._diffPopupWidget = n;
|
67050
67058
|
}
|
67051
67059
|
_onMouseDownHandle(n) {
|
67052
|
-
var m, _,
|
67053
|
-
const r = (m = n.target.element) == null ? void 0 : m.classList, o = r == null ? void 0 : r.contains(`line-${Ye.added}`),
|
67054
|
-
if (o ||
|
67055
|
-
const M = ((
|
67060
|
+
var m, _, f, b, h, T;
|
67061
|
+
const r = (m = n.target.element) == null ? void 0 : m.classList, o = r == null ? void 0 : r.contains(`line-${Ye.added}`), c = r == null ? void 0 : r.contains(`line-${Ye.modified}`), l = r == null ? void 0 : r.contains(`line-${Ye.removed}`);
|
67062
|
+
if (o || c || l) {
|
67063
|
+
const M = ((f = (_ = n == null ? void 0 : n.target) == null ? void 0 : _.position) == null ? void 0 : f.lineNumber) || 0, F = ((b = this._editor) == null ? void 0 : b.getTopForLineNumber(M + 1)) || 0, P = ((h = this._editor) == null ? void 0 : h.getScrollTop()) || 0, N = o ? Ye.added : c ? Ye.modified : Ye.removed;
|
67056
67064
|
(T = this._diffPopupWidget) == null || T.show(F - P, F, N), this._diffEditor || (this._diffEditor = this._createDiffEditor()), this._diffEditor.setModel({
|
67057
67065
|
original: this._originalModel,
|
67058
67066
|
modified: this._editor.getModel()
|
@@ -67129,8 +67137,8 @@ class Vx {
|
|
67129
67137
|
this._editor.setValue(n), this._editor.setScrollTop(0), (r = this._editor) == null || r.focus();
|
67130
67138
|
}
|
67131
67139
|
setPosition(n) {
|
67132
|
-
var r, o,
|
67133
|
-
(r = this._editor) == null || r.setPosition(n), (o = this._editor) == null || o.revealPositionInCenter(n), (
|
67140
|
+
var r, o, c;
|
67141
|
+
(r = this._editor) == null || r.setPosition(n), (o = this._editor) == null || o.revealPositionInCenter(n), (c = this._editor) == null || c.focus();
|
67134
67142
|
}
|
67135
67143
|
setOriginalScript(n) {
|
67136
67144
|
var r;
|
@@ -67145,8 +67153,8 @@ class Vx {
|
|
67145
67153
|
};
|
67146
67154
|
}
|
67147
67155
|
setEditorLayout(n, r) {
|
67148
|
-
var o,
|
67149
|
-
(
|
67156
|
+
var o, c;
|
67157
|
+
(c = this._editor) == null || c.layout({ height: n, width: r || ((o = this._editor) == null ? void 0 : o.getContainerDomNode().clientWidth) });
|
67150
67158
|
}
|
67151
67159
|
_init() {
|
67152
67160
|
this._register(), this._setOptions(), this._addCommands(), this._addActions(), this._setCursorPosition(), this._onTabSizeChange();
|
@@ -67181,9 +67189,9 @@ class Vx {
|
|
67181
67189
|
provideDocumentColors: Px
|
67182
67190
|
}), this._monaco.editor.registerEditorOpener({
|
67183
67191
|
openCodeEditor: (n, r, o) => {
|
67184
|
-
const
|
67185
|
-
if (
|
67186
|
-
const { index:
|
67192
|
+
const c = Fx(n, o);
|
67193
|
+
if (c) {
|
67194
|
+
const { index: l, docValue: m } = c, { title: _, name: f } = m[l];
|
67187
67195
|
let b = "";
|
67188
67196
|
switch (_) {
|
67189
67197
|
case ge.keywords:
|
@@ -67202,7 +67210,7 @@ class Vx {
|
|
67202
67210
|
b = "const";
|
67203
67211
|
break;
|
67204
67212
|
}
|
67205
|
-
this._onLinkOpen && this._onLinkOpen(`${b}_${
|
67213
|
+
this._onLinkOpen && this._onLinkOpen(`${b}_${f}`, l);
|
67206
67214
|
}
|
67207
67215
|
return !0;
|
67208
67216
|
}
|
@@ -67215,7 +67223,7 @@ class Vx {
|
|
67215
67223
|
});
|
67216
67224
|
}
|
67217
67225
|
_setOptions() {
|
67218
|
-
this._monaco.editor.defineTheme("vs-dark", Ui), this._monaco.editor.defineTheme("vs", Ki), this._monaco.languages.setMonarchTokensProvider(Ne,
|
67226
|
+
this._monaco.editor.defineTheme("vs-dark", Ui), this._monaco.editor.defineTheme("vs", Ki), this._monaco.languages.setMonarchTokensProvider(Ne, or), this._monaco.languages.setLanguageConfiguration(Ne, Bi);
|
67219
67227
|
}
|
67220
67228
|
_addCommands() {
|
67221
67229
|
this._monaco.editor.addCommand({
|
@@ -67223,8 +67231,8 @@ class Vx {
|
|
67223
67231
|
run: (n, r) => {
|
67224
67232
|
var o;
|
67225
67233
|
if (Bt.nextIsBracket) {
|
67226
|
-
const
|
67227
|
-
|
67234
|
+
const c = this._editor.getPosition();
|
67235
|
+
c && this._editor.setPosition(Object.assign(c, { column: c.column + 1 }));
|
67228
67236
|
}
|
67229
67237
|
(o = this._editor.getAction(r)) == null || o.run();
|
67230
67238
|
}
|
@@ -67331,14 +67339,14 @@ function th(a, n) {
|
|
67331
67339
|
return !1;
|
67332
67340
|
}
|
67333
67341
|
function Lp(a, n = globalThis, r = ["*"]) {
|
67334
|
-
n.addEventListener("message", function o(
|
67335
|
-
if (!
|
67342
|
+
n.addEventListener("message", function o(c) {
|
67343
|
+
if (!c || !c.data)
|
67336
67344
|
return;
|
67337
|
-
if (!th(r,
|
67338
|
-
console.warn(`Invalid origin '${
|
67345
|
+
if (!th(r, c.origin)) {
|
67346
|
+
console.warn(`Invalid origin '${c.origin}' for comlink proxy`);
|
67339
67347
|
return;
|
67340
67348
|
}
|
67341
|
-
const { id:
|
67349
|
+
const { id: l, type: m, path: _ } = Object.assign({ path: [] }, c.data), f = (c.data.argumentList || []).map(Ms);
|
67342
67350
|
let b;
|
67343
67351
|
try {
|
67344
67352
|
const h = _.slice(0, -1).reduce((M, F) => M[F], a), T = _.reduce((M, F) => M[F], a);
|
@@ -67347,14 +67355,14 @@ function Lp(a, n = globalThis, r = ["*"]) {
|
|
67347
67355
|
b = T;
|
67348
67356
|
break;
|
67349
67357
|
case "SET":
|
67350
|
-
h[_.slice(-1)[0]] = Ms(
|
67358
|
+
h[_.slice(-1)[0]] = Ms(c.data.value), b = !0;
|
67351
67359
|
break;
|
67352
67360
|
case "APPLY":
|
67353
|
-
b = T.apply(h,
|
67361
|
+
b = T.apply(h, f);
|
67354
67362
|
break;
|
67355
67363
|
case "CONSTRUCT":
|
67356
67364
|
{
|
67357
|
-
const M = new T(...
|
67365
|
+
const M = new T(...f);
|
67358
67366
|
b = ji(M);
|
67359
67367
|
}
|
67360
67368
|
break;
|
@@ -67375,13 +67383,13 @@ function Lp(a, n = globalThis, r = ["*"]) {
|
|
67375
67383
|
}
|
67376
67384
|
Promise.resolve(b).catch((h) => ({ value: h, [Va]: 0 })).then((h) => {
|
67377
67385
|
const [T, M] = sn(h);
|
67378
|
-
n.postMessage(Object.assign(Object.assign({}, T), { id:
|
67386
|
+
n.postMessage(Object.assign(Object.assign({}, T), { id: l }), M), m === "RELEASE" && (n.removeEventListener("message", o), Mp(n), qi in a && typeof a[qi] == "function" && a[qi]());
|
67379
67387
|
}).catch((h) => {
|
67380
67388
|
const [T, M] = sn({
|
67381
67389
|
value: new TypeError("Unserializable return value"),
|
67382
67390
|
[Va]: 0
|
67383
67391
|
});
|
67384
|
-
n.postMessage(Object.assign(Object.assign({}, T), { id:
|
67392
|
+
n.postMessage(Object.assign(Object.assign({}, T), { id: l }), M);
|
67385
67393
|
});
|
67386
67394
|
}), n.start && n.start();
|
67387
67395
|
}
|
@@ -67399,7 +67407,7 @@ function Ga(a) {
|
|
67399
67407
|
throw new Error("Proxy has been released and is not useable");
|
67400
67408
|
}
|
67401
67409
|
function Pp(a) {
|
67402
|
-
return
|
67410
|
+
return nr(a, {
|
67403
67411
|
type: "RELEASE"
|
67404
67412
|
}).then(() => {
|
67405
67413
|
Mp(a);
|
@@ -67419,59 +67427,59 @@ function ah(a) {
|
|
67419
67427
|
function Li(a, n = [], r = function() {
|
67420
67428
|
}) {
|
67421
67429
|
let o = !1;
|
67422
|
-
const
|
67423
|
-
get(
|
67430
|
+
const c = new Proxy(r, {
|
67431
|
+
get(l, m) {
|
67424
67432
|
if (Ga(o), m === Zx)
|
67425
67433
|
return () => {
|
67426
|
-
ah(
|
67434
|
+
ah(c), Pp(a), o = !0;
|
67427
67435
|
};
|
67428
67436
|
if (m === "then") {
|
67429
67437
|
if (n.length === 0)
|
67430
|
-
return { then: () =>
|
67431
|
-
const _ =
|
67438
|
+
return { then: () => c };
|
67439
|
+
const _ = nr(a, {
|
67432
67440
|
type: "GET",
|
67433
|
-
path: n.map((
|
67441
|
+
path: n.map((f) => f.toString())
|
67434
67442
|
}).then(Ms);
|
67435
67443
|
return _.then.bind(_);
|
67436
67444
|
}
|
67437
67445
|
return Li(a, [...n, m]);
|
67438
67446
|
},
|
67439
|
-
set(
|
67447
|
+
set(l, m, _) {
|
67440
67448
|
Ga(o);
|
67441
|
-
const [
|
67442
|
-
return
|
67449
|
+
const [f, b] = sn(_);
|
67450
|
+
return nr(a, {
|
67443
67451
|
type: "SET",
|
67444
67452
|
path: [...n, m].map((h) => h.toString()),
|
67445
|
-
value:
|
67453
|
+
value: f
|
67446
67454
|
}, b).then(Ms);
|
67447
67455
|
},
|
67448
|
-
apply(
|
67456
|
+
apply(l, m, _) {
|
67449
67457
|
Ga(o);
|
67450
|
-
const
|
67451
|
-
if (
|
67452
|
-
return
|
67458
|
+
const f = n[n.length - 1];
|
67459
|
+
if (f === Qx)
|
67460
|
+
return nr(a, {
|
67453
67461
|
type: "ENDPOINT"
|
67454
67462
|
}).then(Ms);
|
67455
|
-
if (
|
67463
|
+
if (f === "bind")
|
67456
67464
|
return Li(a, n.slice(0, -1));
|
67457
67465
|
const [b, h] = mp(_);
|
67458
|
-
return
|
67466
|
+
return nr(a, {
|
67459
67467
|
type: "APPLY",
|
67460
67468
|
path: n.map((T) => T.toString()),
|
67461
67469
|
argumentList: b
|
67462
67470
|
}, h).then(Ms);
|
67463
67471
|
},
|
67464
|
-
construct(
|
67472
|
+
construct(l, m) {
|
67465
67473
|
Ga(o);
|
67466
|
-
const [_,
|
67467
|
-
return
|
67474
|
+
const [_, f] = mp(m);
|
67475
|
+
return nr(a, {
|
67468
67476
|
type: "CONSTRUCT",
|
67469
67477
|
path: n.map((b) => b.toString()),
|
67470
67478
|
argumentList: _
|
67471
|
-
},
|
67479
|
+
}, f).then(Ms);
|
67472
67480
|
}
|
67473
67481
|
});
|
67474
|
-
return rh(
|
67482
|
+
return rh(c, a), c;
|
67475
67483
|
}
|
67476
67484
|
function nh(a) {
|
67477
67485
|
return Array.prototype.concat.apply([], a);
|
@@ -67490,14 +67498,14 @@ function ji(a) {
|
|
67490
67498
|
function sn(a) {
|
67491
67499
|
for (const [n, r] of Sp)
|
67492
67500
|
if (r.canHandle(a)) {
|
67493
|
-
const [o,
|
67501
|
+
const [o, c] = r.serialize(a);
|
67494
67502
|
return [
|
67495
67503
|
{
|
67496
67504
|
type: "HANDLER",
|
67497
67505
|
name: n,
|
67498
67506
|
value: o
|
67499
67507
|
},
|
67500
|
-
|
67508
|
+
c
|
67501
67509
|
];
|
67502
67510
|
}
|
67503
67511
|
return [
|
@@ -67516,12 +67524,12 @@ function Ms(a) {
|
|
67516
67524
|
return a.value;
|
67517
67525
|
}
|
67518
67526
|
}
|
67519
|
-
function
|
67527
|
+
function nr(a, n, r) {
|
67520
67528
|
return new Promise((o) => {
|
67521
|
-
const
|
67522
|
-
a.addEventListener("message", function
|
67523
|
-
!m.data || !m.data.id || m.data.id !==
|
67524
|
-
}), a.start && a.start(), a.postMessage(Object.assign({ id:
|
67529
|
+
const c = oh();
|
67530
|
+
a.addEventListener("message", function l(m) {
|
67531
|
+
!m.data || !m.data.id || m.data.id !== c || (a.removeEventListener("message", l), o(m.data));
|
67532
|
+
}), a.start && a.start(), a.postMessage(Object.assign({ id: c }, n), r);
|
67525
67533
|
});
|
67526
67534
|
}
|
67527
67535
|
function oh() {
|
@@ -67534,14 +67542,14 @@ Fp.onerror = (a) => {
|
|
67534
67542
|
async function Rp(a) {
|
67535
67543
|
return await Ja.setInlayHints(a);
|
67536
67544
|
}
|
67537
|
-
const Bp = Hi(Fp), Kp = Hi(new Worker(new URL("" + new URL("assets/parserTccWorker-
|
67545
|
+
const Bp = Hi(Fp), Kp = Hi(new Worker(new URL("" + new URL("assets/parserTccWorker-CEYO20yY.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
|
67538
67546
|
async function lh(a, n = !1) {
|
67539
|
-
const { functions: r, types: o, constants:
|
67540
|
-
return await Kp.parseTcc(a, n, ji(Rp), { functions: Object.fromEntries(r), methods: Object.fromEntries(m), types: Object.fromEntries(o), constants: Object.fromEntries(
|
67547
|
+
const { functions: r, types: o, constants: c, variables: l, methods: m } = bt;
|
67548
|
+
return await Kp.parseTcc(a, n, ji(Rp), { functions: Object.fromEntries(r), methods: Object.fromEntries(m), types: Object.fromEntries(o), constants: Object.fromEntries(c), variables: Object.fromEntries(l) });
|
67541
67549
|
}
|
67542
67550
|
async function Oh(a, n) {
|
67543
|
-
const { functions: r, types: o, constants:
|
67544
|
-
return await Kp.parseLibraryCode(a, n, ji(Rp), { functions: Object.fromEntries(r), methods: Object.fromEntries(m), types: Object.fromEntries(o), constants: Object.fromEntries(
|
67551
|
+
const { functions: r, types: o, constants: c, variables: l, methods: m } = bt;
|
67552
|
+
return await Kp.parseLibraryCode(a, n, ji(Rp), { functions: Object.fromEntries(r), methods: Object.fromEntries(m), types: Object.fromEntries(o), constants: Object.fromEntries(c), variables: Object.fromEntries(l) });
|
67545
67553
|
}
|
67546
67554
|
async function ch(a, n, r = !0) {
|
67547
67555
|
return await Bp.runScript(a, n, r);
|
@@ -67570,7 +67578,7 @@ Ri.config({
|
|
67570
67578
|
});
|
67571
67579
|
let up = {};
|
67572
67580
|
const dh = (a, n) => {
|
67573
|
-
const { height: r, width: o, theme:
|
67581
|
+
const { height: r, width: o, theme: c, options: l, hasDiff: m, readOnly: _, defaultValue: f, onChange: b, onLinkOpen: h, onDeclareConfigChange: T, onCursorPositionChange: M, onActionTrigger: F, onEditorDidMount: P } = a, N = Pe(null), $ = Pe(null);
|
67574
67582
|
hp(n, () => ({
|
67575
67583
|
setOriginalScript(A) {
|
67576
67584
|
var R;
|
@@ -67615,7 +67623,7 @@ const dh = (a, n) => {
|
|
67615
67623
|
const j = $r(async (A) => {
|
67616
67624
|
var ht;
|
67617
67625
|
const R = Date.now(), { errors: U, functions: se, methods: me, types: ie, variables: xt, overloadsFuncs: Et, imports: Ke, preParserCode: Fe, enums: Y } = await lh(A), _e = new Map(Object.entries(se)), Ce = new Map(Object.entries(me)), Se = new Map(Object.entries(ie)), lt = new Map(Object.entries(xt)), Nt = new Map(Object.entries(Ke)), J = new Map(Object.entries(Y));
|
67618
|
-
|
67626
|
+
Ps.setUserDefined({
|
67619
67627
|
functions: _e,
|
67620
67628
|
methods: Ce,
|
67621
67629
|
types: Se,
|
@@ -67661,16 +67669,16 @@ const dh = (a, n) => {
|
|
67661
67669
|
const A = () => {
|
67662
67670
|
window.requestAnimationFrame(() => {
|
67663
67671
|
var se, me;
|
67664
|
-
const U = (se =
|
67672
|
+
const U = (se = $.current) == null ? void 0 : se.getBoundingClientRect();
|
67665
67673
|
(me = N.current) == null || me.setEditorLayout((U == null ? void 0 : U.height) || 0, U == null ? void 0 : U.width);
|
67666
67674
|
});
|
67667
67675
|
}, R = new ResizeObserver(A);
|
67668
|
-
return
|
67669
|
-
|
67676
|
+
return $.current && R.observe($.current), () => {
|
67677
|
+
$.current && R.unobserve($.current), R.disconnect();
|
67670
67678
|
};
|
67671
|
-
}, []), L.jsx("div", { ref:
|
67679
|
+
}, []), L.jsx("div", { ref: $, children: L.jsx(dx, { height: r, width: o || "100%", defaultLanguage: Ne, defaultValue: f || `indicator("我的脚本")
|
67672
67680
|
plot(close)
|
67673
|
-
`, theme:
|
67681
|
+
`, theme: c || "vs-dark", className: `tvue-script ${c || "vs-dark"}`, options: {
|
67674
67682
|
colorDecorators: !0,
|
67675
67683
|
useShadowDOM: !1,
|
67676
67684
|
matchOnWordStartOnly: !0,
|
@@ -67684,15 +67692,15 @@ plot(close)
|
|
67684
67692
|
readOnlyMessage: {
|
67685
67693
|
value: "该脚本是只读的。它无法被编辑。"
|
67686
67694
|
},
|
67687
|
-
...
|
67695
|
+
...l
|
67688
67696
|
}, onMount: G, onChange: I }) });
|
67689
67697
|
}, Rh = xp(dh), Bh = (a) => {
|
67690
|
-
const { theme: n, modified: r, original: o, height:
|
67698
|
+
const { theme: n, modified: r, original: o, height: c, width: l, renderSideBySide: m = !0 } = a, _ = $r((f, b) => {
|
67691
67699
|
b.languages.register({
|
67692
67700
|
id: Ne
|
67693
|
-
}), b.editor.defineTheme("vs-dark", Ui), b.editor.defineTheme("vs", Ki), b.languages.setMonarchTokensProvider(Ne,
|
67701
|
+
}), b.editor.defineTheme("vs-dark", Ui), b.editor.defineTheme("vs", Ki), b.languages.setMonarchTokensProvider(Ne, or), b.languages.setLanguageConfiguration(Ne, Bi);
|
67694
67702
|
}, []);
|
67695
|
-
return L.jsx(ix, { height:
|
67703
|
+
return L.jsx(ix, { height: c || "90vh", width: l || "100%", theme: n || "vs-dark", options: {
|
67696
67704
|
readOnly: !0,
|
67697
67705
|
renderSideBySide: m,
|
67698
67706
|
scrollBeyondLastLine: !1
|
@@ -67719,8 +67727,8 @@ var nn = {}, mh = function() {
|
|
67719
67727
|
break;
|
67720
67728
|
}
|
67721
67729
|
return a.removeAllRanges(), function() {
|
67722
|
-
a.type === "Caret" && a.removeAllRanges(), a.rangeCount || r.forEach(function(
|
67723
|
-
a.addRange(
|
67730
|
+
a.type === "Caret" && a.removeAllRanges(), a.rangeCount || r.forEach(function(c) {
|
67731
|
+
a.addRange(c);
|
67724
67732
|
}), n && n.focus();
|
67725
67733
|
};
|
67726
67734
|
}, uh = mh, _p = {
|
@@ -67733,10 +67741,10 @@ function _h(a) {
|
|
67733
67741
|
return a.replace(/#{\s*key\s*}/g, n);
|
67734
67742
|
}
|
67735
67743
|
function fh(a, n) {
|
67736
|
-
var r, o,
|
67744
|
+
var r, o, c, l, m, _, f = !1;
|
67737
67745
|
n || (n = {}), r = n.debug || !1;
|
67738
67746
|
try {
|
67739
|
-
|
67747
|
+
c = uh(), l = document.createRange(), m = document.getSelection(), _ = document.createElement("span"), _.textContent = a, _.ariaHidden = "true", _.style.all = "unset", _.style.position = "fixed", _.style.top = 0, _.style.clip = "rect(0, 0, 0, 0)", _.style.whiteSpace = "pre", _.style.webkitUserSelect = "text", _.style.MozUserSelect = "text", _.style.msUserSelect = "text", _.style.userSelect = "text", _.addEventListener("copy", function(h) {
|
67740
67748
|
if (h.stopPropagation(), n.format)
|
67741
67749
|
if (h.preventDefault(), typeof h.clipboardData > "u") {
|
67742
67750
|
r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
@@ -67745,22 +67753,22 @@ function fh(a, n) {
|
|
67745
67753
|
} else
|
67746
67754
|
h.clipboardData.clearData(), h.clipboardData.setData(n.format, a);
|
67747
67755
|
n.onCopy && (h.preventDefault(), n.onCopy(h.clipboardData));
|
67748
|
-
}), document.body.appendChild(_),
|
67756
|
+
}), document.body.appendChild(_), l.selectNodeContents(_), m.addRange(l);
|
67749
67757
|
var b = document.execCommand("copy");
|
67750
67758
|
if (!b)
|
67751
67759
|
throw new Error("copy command was unsuccessful");
|
67752
|
-
|
67760
|
+
f = !0;
|
67753
67761
|
} catch (h) {
|
67754
67762
|
r && console.error("unable to copy using execCommand: ", h), r && console.warn("trying IE specific stuff");
|
67755
67763
|
try {
|
67756
|
-
window.clipboardData.setData(n.format || "text", a), n.onCopy && n.onCopy(window.clipboardData),
|
67764
|
+
window.clipboardData.setData(n.format || "text", a), n.onCopy && n.onCopy(window.clipboardData), f = !0;
|
67757
67765
|
} catch (T) {
|
67758
67766
|
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);
|
67759
67767
|
}
|
67760
67768
|
} finally {
|
67761
|
-
m && (typeof m.removeRange == "function" ? m.removeRange(
|
67769
|
+
m && (typeof m.removeRange == "function" ? m.removeRange(l) : m.removeAllRanges()), _ && document.body.removeChild(_), c();
|
67762
67770
|
}
|
67763
|
-
return
|
67771
|
+
return f;
|
67764
67772
|
}
|
67765
67773
|
var gh = fh;
|
67766
67774
|
function Mi(a) {
|
@@ -67783,8 +67791,8 @@ function fp(a, n) {
|
|
67783
67791
|
var r = Object.keys(a);
|
67784
67792
|
if (Object.getOwnPropertySymbols) {
|
67785
67793
|
var o = Object.getOwnPropertySymbols(a);
|
67786
|
-
n && (o = o.filter(function(
|
67787
|
-
return Object.getOwnPropertyDescriptor(a,
|
67794
|
+
n && (o = o.filter(function(c) {
|
67795
|
+
return Object.getOwnPropertyDescriptor(a, c).enumerable;
|
67788
67796
|
})), r.push.apply(r, o);
|
67789
67797
|
}
|
67790
67798
|
return r;
|
@@ -67803,20 +67811,20 @@ function gp(a) {
|
|
67803
67811
|
function hh(a, n) {
|
67804
67812
|
if (a == null)
|
67805
67813
|
return {};
|
67806
|
-
var r = wh(a, n), o,
|
67814
|
+
var r = wh(a, n), o, c;
|
67807
67815
|
if (Object.getOwnPropertySymbols) {
|
67808
|
-
var
|
67809
|
-
for (
|
67810
|
-
o = c
|
67816
|
+
var l = Object.getOwnPropertySymbols(a);
|
67817
|
+
for (c = 0; c < l.length; c++)
|
67818
|
+
o = l[c], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(a, o) && (r[o] = a[o]);
|
67811
67819
|
}
|
67812
67820
|
return r;
|
67813
67821
|
}
|
67814
67822
|
function wh(a, n) {
|
67815
67823
|
if (a == null)
|
67816
67824
|
return {};
|
67817
|
-
var r = {}, o = Object.keys(a),
|
67818
|
-
for (
|
67819
|
-
|
67825
|
+
var r = {}, o = Object.keys(a), c, l;
|
67826
|
+
for (l = 0; l < o.length; l++)
|
67827
|
+
c = o[l], !(n.indexOf(c) >= 0) && (r[c] = a[c]);
|
67820
67828
|
return r;
|
67821
67829
|
}
|
67822
67830
|
function vh(a, n) {
|
@@ -67838,20 +67846,20 @@ function Dh(a, n) {
|
|
67838
67846
|
a.prototype = Object.create(n && n.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), n && Pi(a, n);
|
67839
67847
|
}
|
67840
67848
|
function Pi(a, n) {
|
67841
|
-
return Pi = Object.setPrototypeOf || function(o,
|
67842
|
-
return o.__proto__ =
|
67849
|
+
return Pi = Object.setPrototypeOf || function(o, c) {
|
67850
|
+
return o.__proto__ = c, o;
|
67843
67851
|
}, Pi(a, n);
|
67844
67852
|
}
|
67845
67853
|
function Ih(a) {
|
67846
67854
|
var n = Ah();
|
67847
67855
|
return function() {
|
67848
|
-
var o = rn(a),
|
67856
|
+
var o = rn(a), c;
|
67849
67857
|
if (n) {
|
67850
|
-
var
|
67851
|
-
|
67858
|
+
var l = rn(this).constructor;
|
67859
|
+
c = Reflect.construct(o, arguments, l);
|
67852
67860
|
} else
|
67853
|
-
|
67854
|
-
return kh(this,
|
67861
|
+
c = o.apply(this, arguments);
|
67862
|
+
return kh(this, c);
|
67855
67863
|
};
|
67856
67864
|
}
|
67857
67865
|
function kh(a, n) {
|
@@ -67892,19 +67900,19 @@ var Hp = /* @__PURE__ */ function(a) {
|
|
67892
67900
|
function r() {
|
67893
67901
|
var o;
|
67894
67902
|
vh(this, r);
|
67895
|
-
for (var
|
67896
|
-
|
67897
|
-
return o = n.call.apply(n, [this].concat(
|
67898
|
-
var
|
67903
|
+
for (var c = arguments.length, l = new Array(c), m = 0; m < c; m++)
|
67904
|
+
l[m] = arguments[m];
|
67905
|
+
return o = n.call.apply(n, [this].concat(l)), Wi($p(o), "onClick", function(_) {
|
67906
|
+
var f = o.props, b = f.text, h = f.onCopy, T = f.children, M = f.options, F = Xa.default.Children.only(T), P = (0, bh.default)(b, M);
|
67899
67907
|
h && h(b, P), F && F.props && typeof F.props.onClick == "function" && F.props.onClick(_);
|
67900
67908
|
}), o;
|
67901
67909
|
}
|
67902
67910
|
return Th(r, [{
|
67903
67911
|
key: "render",
|
67904
67912
|
value: function() {
|
67905
|
-
var
|
67906
|
-
|
67907
|
-
var
|
67913
|
+
var c = this.props;
|
67914
|
+
c.text, c.onCopy, c.options;
|
67915
|
+
var l = c.children, m = hh(c, xh), _ = Xa.default.Children.only(l);
|
67908
67916
|
return /* @__PURE__ */ Xa.default.cloneElement(_, gp(gp({}, m), {}, {
|
67909
67917
|
onClick: this.onClick
|
67910
67918
|
}));
|
@@ -67924,13 +67932,13 @@ async function zh(a, n = 0) {
|
|
67924
67932
|
const r = a[n];
|
67925
67933
|
if (!r)
|
67926
67934
|
return;
|
67927
|
-
const { name: o, args:
|
67935
|
+
const { name: o, args: c, type: l, desc: m, examples: _, remarks: f, seeAlso: b, syntax: h, detailedDesc: T, fields: M, returns: F } = r, P = {
|
67928
67936
|
name: o
|
67929
67937
|
};
|
67930
|
-
if (a.length > 1 && (P.overloads = `${a.length} overloads`),
|
67931
|
-
const { name:
|
67938
|
+
if (a.length > 1 && (P.overloads = `${a.length} overloads`), l && (P.type = l), c && (P.name = `${o}()`, P.args = c.map((N) => {
|
67939
|
+
const { name: $, desc: G, displayType: j } = N;
|
67932
67940
|
return {
|
67933
|
-
label: `${
|
67941
|
+
label: `${$} (${j})`,
|
67934
67942
|
desc: G && Ss(G)
|
67935
67943
|
};
|
67936
67944
|
})), m && (P.desc = m.map((N) => Ss(N))), _ && (P.originalExample = _.join(`
|
@@ -67939,8 +67947,8 @@ async function zh(a, n = 0) {
|
|
67939
67947
|
})), T) {
|
67940
67948
|
P.detailedDesc = [];
|
67941
67949
|
for (const N of T) {
|
67942
|
-
const { desc:
|
67943
|
-
let j =
|
67950
|
+
const { desc: $, examples: G } = N;
|
67951
|
+
let j = $.map((A) => Ss(A)), O, I;
|
67944
67952
|
G && (I = G.join(`
|
67945
67953
|
`), O = await Hr.colorize(I, Ne, {
|
67946
67954
|
tabSize: 4
|
@@ -67951,13 +67959,13 @@ async function zh(a, n = 0) {
|
|
67951
67959
|
});
|
67952
67960
|
}
|
67953
67961
|
}
|
67954
|
-
return F && (P.returns = F.map((N) => Ss(N))),
|
67955
|
-
var
|
67956
|
-
return (
|
67962
|
+
return F && (P.returns = F.map((N) => Ss(N))), f && (P.remarks = typeof f == "string" ? [Ss(f)] : f.map((N) => Ss(N))), h && (P.syntax = a.map((N) => {
|
67963
|
+
var $;
|
67964
|
+
return ($ = N.syntax) == null ? void 0 : $[0];
|
67957
67965
|
})), M && (P.fields = M.map((N) => {
|
67958
|
-
const { name:
|
67966
|
+
const { name: $, desc: G, type: j } = N;
|
67959
67967
|
return {
|
67960
|
-
label: `${
|
67968
|
+
label: `${$} (${j})`,
|
67961
67969
|
desc: G && Ss(G)
|
67962
67970
|
};
|
67963
67971
|
})), b && (P.seeAlso = b.map((N) => Eh(N))), P;
|
@@ -67965,43 +67973,43 @@ async function zh(a, n = 0) {
|
|
67965
67973
|
function Eh(a) {
|
67966
67974
|
const r = /\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);
|
67967
67975
|
if (r) {
|
67968
|
-
const [o,
|
67976
|
+
const [o, c, l] = r;
|
67969
67977
|
return {
|
67970
|
-
name:
|
67971
|
-
link:
|
67978
|
+
name: c,
|
67979
|
+
link: l
|
67972
67980
|
};
|
67973
67981
|
}
|
67974
67982
|
}
|
67975
67983
|
function Ss(a) {
|
67976
67984
|
const n = /\*\*([^\*]+)\*\*/g, r = /\`([^\`]+)\`/g, o = /\[([^\[\]]+)\]\(([^\(\)]+)\)/g;
|
67977
|
-
return a.replace(n, (
|
67985
|
+
return a.replace(n, (c, l) => `<strong>${l}</strong>`).replace(r, (c, l) => `<code>${l}</code>`).replace(o, (c, l, m) => `<a ${m.startsWith("#") ? `data-name="${l}"` : 'target="_blank"'} class="manual-content-text-link" href="${m}">${l}</a>`);
|
67978
67986
|
}
|
67979
67987
|
function Nh(a) {
|
67980
67988
|
var o;
|
67981
67989
|
const n = [], r = [];
|
67982
|
-
for (const
|
67983
|
-
for (let
|
67984
|
-
if (qp.includes(
|
67990
|
+
for (const c of Br) {
|
67991
|
+
for (let l of Cp[c.key].sort()) {
|
67992
|
+
if (qp.includes(l))
|
67985
67993
|
continue;
|
67986
|
-
let m =
|
67987
|
-
|
67994
|
+
let m = l;
|
67995
|
+
c.prefix === "fun" && (m = `${l}()`), m.includes(a) && (m.startsWith(a) ? n.unshift({
|
67988
67996
|
label: m,
|
67989
|
-
group:
|
67990
|
-
key: `${
|
67997
|
+
group: c,
|
67998
|
+
key: `${c.prefix}_${l}`
|
67991
67999
|
}) : n.push({
|
67992
68000
|
label: m,
|
67993
|
-
group:
|
67994
|
-
key: `${
|
68001
|
+
group: c,
|
68002
|
+
key: `${c.prefix}_${l}`
|
67995
68003
|
}));
|
67996
68004
|
}
|
67997
|
-
for (const [
|
68005
|
+
for (const [l, m] of bt[c.key])
|
67998
68006
|
for (const _ of m) {
|
67999
|
-
const { name:
|
68000
|
-
label:
|
68001
|
-
group:
|
68002
|
-
key: `${
|
68007
|
+
const { name: f, args: b, type: h, desc: T, examples: M, remarks: F, seeAlso: P, syntax: N, detailedDesc: $, fields: G, returns: j } = _, O = {
|
68008
|
+
label: f,
|
68009
|
+
group: c,
|
68010
|
+
key: `${c.prefix}_${f}`
|
68003
68011
|
};
|
68004
|
-
if (
|
68012
|
+
if (c.prefix === "fun" && (O.label = `${f}()`), O.label.includes(a))
|
68005
68013
|
break;
|
68006
68014
|
if (b) {
|
68007
68015
|
let I = !1;
|
@@ -68064,9 +68072,9 @@ function Nh(a) {
|
|
68064
68072
|
if (I)
|
68065
68073
|
break;
|
68066
68074
|
}
|
68067
|
-
if (
|
68075
|
+
if ($) {
|
68068
68076
|
let I = !1;
|
68069
|
-
for (const A of
|
68077
|
+
for (const A of $) {
|
68070
68078
|
const { desc: R, examples: U } = A;
|
68071
68079
|
if (R.join(`
|
68072
68080
|
`).includes(a)) {
|
@@ -68113,13 +68121,13 @@ function Nh(a) {
|
|
68113
68121
|
}
|
68114
68122
|
const Sh = (a) => {
|
68115
68123
|
var j;
|
68116
|
-
const { group: n, itemKey: r, onItemClick: o, currentIndex:
|
68124
|
+
const { group: n, itemKey: r, onItemClick: o, currentIndex: c } = a, [l, m] = ot(), [_, f] = ot(0), [b, h] = ot("Copy code"), [T, M] = ot("Copy link");
|
68117
68125
|
Ve(() => {
|
68118
|
-
F(
|
68126
|
+
F(c);
|
68119
68127
|
}, [r]);
|
68120
68128
|
const F = (O) => {
|
68121
68129
|
const I = r.replace(`${n == null ? void 0 : n.prefix}_`, ""), A = bt[n == null ? void 0 : n.key].get(I);
|
68122
|
-
|
68130
|
+
f(O), A && zh(A, O).then((R) => {
|
68123
68131
|
m(R);
|
68124
68132
|
});
|
68125
68133
|
}, P = (O) => {
|
@@ -68131,7 +68139,7 @@ const Sh = (a) => {
|
|
68131
68139
|
const { hash: R } = O.target;
|
68132
68140
|
o(R.replace("#", ""));
|
68133
68141
|
}
|
68134
|
-
},
|
68142
|
+
}, $ = () => {
|
68135
68143
|
h("Copied"), setTimeout(() => {
|
68136
68144
|
h("Copy code");
|
68137
68145
|
}, 1e3);
|
@@ -68140,36 +68148,36 @@ const Sh = (a) => {
|
|
68140
68148
|
M("Copy link");
|
68141
68149
|
}, 3e3);
|
68142
68150
|
};
|
68143
|
-
return L.jsx("div", { onClick: N, id: `#${r}`, children: L.jsxs("div", { className: "manual-content-wrapper", children: [L.jsxs("div", { className: "manual-content-header", children: [L.jsxs("div", { children: [L.jsx("h3", { className: "manual-content-header-title", children:
|
68151
|
+
return L.jsx("div", { onClick: N, id: `#${r}`, children: L.jsxs("div", { className: "manual-content-wrapper", children: [L.jsxs("div", { className: "manual-content-header", children: [L.jsxs("div", { children: [L.jsx("h3", { className: "manual-content-header-title", children: l == null ? void 0 : l.name }), !!(l != null && l.overloads) && L.jsx("span", { className: "manual-content-header-overloads", children: l == null ? void 0 : l.overloads })] }), L.jsx(Ci, { text: (l == null ? void 0 : l.name) || "", onCopy: G, children: L.jsx("div", { "data-tooltip": T, className: "manual-content-btn", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: L.jsxs("g", { fill: "currentColor", children: [L.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" }), L.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), (j = l == null ? void 0 : l.desc) == null ? void 0 : j.map((O, I) => L.jsx("div", { dangerouslySetInnerHTML: {
|
68144
68152
|
__html: O
|
68145
|
-
}, className: "manual-content-text" }, I)), (
|
68153
|
+
}, className: "manual-content-text" }, I)), (l == null ? void 0 : l.type) && L.jsxs(Wt, { children: [L.jsx("div", { className: "manual-content-sub-title", children: "type" }), L.jsx("div", { className: "manual-content-text", children: l.type })] }), (l == null ? void 0 : l.syntax) && L.jsxs(Wt, { children: [L.jsxs("div", { className: "manual-content-sub-title", children: ["Syntax ", !!(l != null && l.overloads) && "& Overloads"] }), l.syntax.map((O, I) => {
|
68146
68154
|
var A;
|
68147
|
-
return (((A =
|
68148
|
-
})] }), (
|
68155
|
+
return (((A = l.syntax) == null ? void 0 : A.length) || 0) > 1 ? L.jsx("div", { onClick: () => P(I), children: L.jsx("pre", { className: `manual-content-syntax with-overloads ${I === _ ? "selected" : ""}`, children: O }) }, I) : L.jsx("pre", { className: "manual-content-syntax", children: O }, I);
|
68156
|
+
})] }), (l == null ? void 0 : l.args) && L.jsxs(Wt, { children: [L.jsx("div", { className: "manual-content-sub-title", children: "arguments" }), l.args.map((O, I) => L.jsxs("div", { className: "manual-content-text", children: [L.jsx("span", { className: "manual-content-args-label", children: O.label }), " ", L.jsx("span", { dangerouslySetInnerHTML: {
|
68149
68157
|
__html: O.desc || ""
|
68150
|
-
} })] }, I))] }), (
|
68158
|
+
} })] }, I))] }), (l == null ? void 0 : l.fields) && L.jsxs(Wt, { children: [L.jsx("div", { className: "manual-content-sub-title", children: "fields" }), l.fields.map((O, I) => L.jsxs("div", { className: "manual-content-text", children: [L.jsx("span", { className: "manual-content-args-label", children: O.label }), " ", L.jsx("span", { dangerouslySetInnerHTML: {
|
68151
68159
|
__html: O.desc || ""
|
68152
|
-
} })] }, I))] }), (
|
68153
|
-
__html:
|
68154
|
-
} }) })] }), (
|
68160
|
+
} })] }, I))] }), (l == null ? void 0 : l.examples) && L.jsxs(Wt, { children: [L.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [L.jsx("div", { children: L.jsx("span", { children: "example" }) }), L.jsx(Ci, { text: l.originalExample || "", onCopy: $, children: L.jsx("div", { "data-tooltip": b, className: "manual-content-btn manual-content-example-copy", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: L.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" }) }) }) })] }), L.jsx("pre", { className: "manual-content-example", children: L.jsx("code", { dangerouslySetInnerHTML: {
|
68161
|
+
__html: l.examples
|
68162
|
+
} }) })] }), (l == null ? void 0 : l.detailedDesc) && l.detailedDesc.map((O, I) => L.jsxs(Wt, { children: [O.desc.map((A, R) => L.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
68155
68163
|
__html: A
|
68156
|
-
} }, R)), L.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [L.jsx("div", { children: L.jsx("span", { children: "example" }) }), L.jsx(Ci, { text: O.originalExample || "", onCopy:
|
68164
|
+
} }, R)), L.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [L.jsx("div", { children: L.jsx("span", { children: "example" }) }), L.jsx(Ci, { text: O.originalExample || "", onCopy: $, children: L.jsx("div", { "data-tooltip": b, className: "manual-content-btn manual-content-example-copy", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: L.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" }) }) }) })] }), L.jsx("pre", { className: "manual-content-example", children: L.jsx("code", { dangerouslySetInnerHTML: {
|
68157
68165
|
__html: O.examples || ""
|
68158
|
-
} }) })] }, I)), (
|
68166
|
+
} }) })] }, I)), (l == null ? void 0 : l.returns) && L.jsxs(Wt, { children: [L.jsx("div", { className: "manual-content-sub-title", children: "returns" }), l.returns.map((O, I) => L.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
68159
68167
|
__html: O
|
68160
|
-
} }, I))] }), (
|
68168
|
+
} }, I))] }), (l == null ? void 0 : l.remarks) && L.jsxs(Wt, { children: [L.jsx("div", { className: "manual-content-sub-title", children: "remarks" }), l.remarks.map((O, I) => L.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
68161
68169
|
__html: O
|
68162
|
-
} }, I))] }), (
|
68170
|
+
} }, I))] }), (l == null ? void 0 : l.seeAlso) && L.jsxs(Wt, { children: [L.jsx("div", { className: "manual-content-sub-title", children: "see Also" }), L.jsx("div", { className: "manual-content-see_also", children: l.seeAlso.map((O, I) => L.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 }, I)) })] })] }) });
|
68163
68171
|
};
|
68164
68172
|
$e.register({
|
68165
68173
|
id: Ne
|
68166
68174
|
});
|
68167
68175
|
Hr.defineTheme("vs-dark", Ui);
|
68168
68176
|
Hr.defineTheme("vs", Ki);
|
68169
|
-
$e.setMonarchTokensProvider(Ne,
|
68177
|
+
$e.setMonarchTokensProvider(Ne, or);
|
68170
68178
|
$e.setLanguageConfiguration(Ne, Bi);
|
68171
68179
|
const Kh = ({ theme: a = "vs-dark", currentValue: n }) => {
|
68172
|
-
const [r, o] = ot(Br[0]), [
|
68180
|
+
const [r, o] = ot(Br[0]), [c, l] = ot(null), [m, _] = ot(0), [f, b] = ot(""), [h, T] = ot("var_bar_index"), M = Pe(null), F = Pe(null), P = (I) => {
|
68173
68181
|
I.key === (r == null ? void 0 : r.key) && !(r != null && r.isHidden) ? o({ ...I, isHidden: !0 }) : o(I);
|
68174
68182
|
};
|
68175
68183
|
Ve(() => {
|
@@ -68183,16 +68191,16 @@ const Kh = ({ theme: a = "vs-dark", currentValue: n }) => {
|
|
68183
68191
|
const N = (I, A) => {
|
68184
68192
|
var R;
|
68185
68193
|
I !== h && (A && o(A), _(0), T(I), (R = F.current) == null || R.scrollTo({ top: 0 }));
|
68186
|
-
},
|
68194
|
+
}, $ = (I) => {
|
68187
68195
|
if (I.target.value.trim() === "")
|
68188
68196
|
G();
|
68189
68197
|
else {
|
68190
68198
|
b(I.target.value);
|
68191
68199
|
const A = Nh(I.target.value);
|
68192
|
-
|
68200
|
+
l(A);
|
68193
68201
|
}
|
68194
68202
|
}, G = () => {
|
68195
|
-
b(""),
|
68203
|
+
b(""), l(null), setTimeout(() => {
|
68196
68204
|
var I, A;
|
68197
68205
|
(A = (I = M.current) == null ? void 0 : I.querySelector(`a[data-href="${h}"]`)) == null || A.scrollIntoView(!0);
|
68198
68206
|
}, 10);
|
@@ -68206,11 +68214,11 @@ const Kh = ({ theme: a = "vs-dark", currentValue: n }) => {
|
|
68206
68214
|
const A = Br.find((R) => I.startsWith(R.prefix));
|
68207
68215
|
A && (_(0), j(A, I));
|
68208
68216
|
};
|
68209
|
-
return L.jsxs("div", { className: `${a} manual-warpper`, children: [L.jsxs("div", { className: "manual-left", children: [L.jsxs("div", { className: "manual-search", children: [L.jsx("span", { className: "manual-search-icon", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: L.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" }) }) }), L.jsx("input", { onChange:
|
68217
|
+
return L.jsxs("div", { className: `${a} manual-warpper`, children: [L.jsxs("div", { className: "manual-left", children: [L.jsxs("div", { className: "manual-search", children: [L.jsx("span", { className: "manual-search-icon", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: L.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" }) }) }), L.jsx("input", { onChange: $, spellCheck: "false", value: f, className: "manual-search-input", autoComplete: "off", placeholder: "Search", type: "text" }), L.jsx("span", { onClick: G, className: `manual-search-clear ${f ? "" : "hide"}`, children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 95.939 95.939", width: "9", height: "9", children: L.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" }) }) })] }), L.jsx("div", { className: `manual-group-search-list manual-scroll ${f ? "" : "hide"}`, children: L.jsxs("div", { children: [c == null ? void 0 : c.labelList.map((I) => L.jsx("a", { onClick: (A) => {
|
68210
68218
|
A.preventDefault(), N(I.key, I.group);
|
68211
|
-
}, className: `manual-group-body-item ${I.key === h ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`)), L.jsx("div", { className: "manual-content-separator" }),
|
68219
|
+
}, className: `manual-group-body-item ${I.key === h ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`)), L.jsx("div", { className: "manual-content-separator" }), c == null ? void 0 : c.contentList.map((I) => L.jsx("a", { onClick: (A) => {
|
68212
68220
|
A.preventDefault(), N(I.key, I.group);
|
68213
|
-
}, className: `manual-group-body-item ${I.key === h ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`))] }) }), L.jsx("div", { className: `manual-group-list manual-scroll ${
|
68221
|
+
}, className: `manual-group-body-item ${I.key === h ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`))] }) }), L.jsx("div", { className: `manual-group-list manual-scroll ${f ? "hide" : ""}`, ref: M, children: Br.map((I) => {
|
68214
68222
|
var A, R;
|
68215
68223
|
return L.jsxs(Wt, { children: [L.jsx("div", { onClick: () => P(I), className: `manual-group-title ${I.key === (r == null ? void 0 : r.key) && !(r != null && r.isHidden) ? "active" : ""}`, children: I.title }), L.jsx("div", { className: `manual-group-body manual-scroll ${I.key !== (r == null ? void 0 : r.key) || r != null && r.isHidden ? "hide" : ""}`, children: (R = (A = Cp[I.key]) == null ? void 0 : A.sort().filter((U) => !qp.includes(U))) == null ? void 0 : R.map((U) => {
|
68216
68224
|
const se = `${I.prefix}_${U}`;
|