eddyter 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/CommentBubblePlugin-DDCERFQO.js +29 -0
- package/dist/{LazyCodeMirror-CcceEUqu.js → LazyCodeMirror-C1bW4mVF.js} +941 -1484
- package/dist/{LazySignatureCanvas-Cck44R9l.js → LazySignatureCanvas-D5P1189T.js} +21 -38
- package/dist/Provider/EditorProvider.d.ts +2 -0
- package/dist/api/auth.d.ts +4 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
- package/dist/components/ColorPicker/LazyHexColorPicker.d.ts +2 -0
- package/dist/components/CommentToggle/CommentToggle.d.ts +2 -2
- package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -2
- package/dist/components/EmojiPickerWidget/LazyEmojiPicker.d.ts +4 -0
- package/dist/components/LockedFeature/FeatureLockCard.d.ts +22 -0
- package/dist/components/LockedFeature/FeatureLockTooltipContent.d.ts +12 -0
- package/dist/components/LockedFeature/LockedFeature.d.ts +6 -1
- package/dist/components/LockedFeature/lockedFeatureMetadata.d.ts +7 -0
- package/dist/components/Toolbar/styles.d.ts +5 -5
- package/dist/components/ui/tooltip.d.ts +2 -1
- package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
- package/dist/{generateDocxThumbnail-DGj_L73_.js → generateDocxThumbnail-BVFpoKUP.js} +762 -1118
- package/dist/{generatePdfThumbnail-D1ui86rp.js → generatePdfThumbnail-Pvt57kGy.js} +13 -19
- package/dist/{generateXlsxThumbnail-CbJOr-_6.js → generateXlsxThumbnail-DRggrLYK.js} +3322 -3508
- package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
- package/dist/{html2canvas.esm-C2wu93Kq.js → html2canvas.esm-BD_Vwvv8.js} +139 -204
- package/dist/{html2pdf.bundle.min-CN_w9Sxu.js → html2pdf.bundle.min-DElEIEzd.js} +3405 -5221
- package/dist/{index-DiSjJC3k.js → index-C9Dld3-L.js} +13 -13
- package/dist/{index-CuwrKBfY.js → index-Cojy1w7r.js} +194 -217
- package/dist/index-D11sRTul.js +147 -0
- package/dist/{index-Dh0oRk6u.js → index-DFEFJp4J.js} +37294 -41489
- package/dist/index-D_izLqTY.js +552 -0
- package/dist/{index-hrDzgkRb.js → index-ZBDns08-.js} +81 -80
- package/dist/index-rm00T8b9.js +166 -0
- package/dist/index.js +2 -2
- package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
- package/dist/{objectWithoutPropertiesLoose-DO0w4vQT.js → objectWithoutPropertiesLoose-DiWPeE4c.js} +6 -10
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -1
- package/dist/plugins/LocalStoragePlugin.d.ts +0 -2
- package/dist/{postcss-B0bxXf7u.js → postcss-CGIcwj_g.js} +615 -1065
- package/dist/{standalone-DmuJV5rn.js → standalone-C0qguT38.js} +350 -596
- package/dist/{typescript-DZlC_9M8.js → typescript-BM7wk6k-.js} +1114 -1806
- package/package.json +8 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as My } from "react/jsx-runtime";
|
|
2
|
-
import { _ as $_, a as Q_ } from "./objectWithoutPropertiesLoose-
|
|
2
|
+
import { _ as $_, a as Q_ } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
3
3
|
import { useState as Mr, useLayoutEffect as p_, useEffect as Br, forwardRef as m_, useRef as g_, useImperativeHandle as S_, useCallback as P_ } from "react";
|
|
4
4
|
let Pd = [], By = [];
|
|
5
5
|
(() => {
|
|
@@ -8,18 +8,13 @@ let Pd = [], By = [];
|
|
|
8
8
|
(e % 2 ? By : Pd).push(i = i + t[e]);
|
|
9
9
|
})();
|
|
10
10
|
function b_(t) {
|
|
11
|
-
if (t < 768)
|
|
12
|
-
return !1;
|
|
11
|
+
if (t < 768) return !1;
|
|
13
12
|
for (let e = 0, i = Pd.length; ; ) {
|
|
14
13
|
let O = e + i >> 1;
|
|
15
|
-
if (t < Pd[O])
|
|
16
|
-
|
|
17
|
-
else
|
|
18
|
-
|
|
19
|
-
else
|
|
20
|
-
return !0;
|
|
21
|
-
if (e == i)
|
|
22
|
-
return !1;
|
|
14
|
+
if (t < Pd[O]) i = O;
|
|
15
|
+
else if (t >= By[O]) e = O + 1;
|
|
16
|
+
else return !0;
|
|
17
|
+
if (e == i) return !1;
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
20
|
function $p(t) {
|
|
@@ -30,8 +25,7 @@ function y_(t, e, i = !0, O = !0) {
|
|
|
30
25
|
return (i ? Fy : T_)(t, e, O);
|
|
31
26
|
}
|
|
32
27
|
function Fy(t, e, i) {
|
|
33
|
-
if (e == t.length)
|
|
34
|
-
return e;
|
|
28
|
+
if (e == t.length) return e;
|
|
35
29
|
e && Hy(t.charCodeAt(e)) && Ky(t.charCodeAt(e - 1)) && e--;
|
|
36
30
|
let O = fu(t, e);
|
|
37
31
|
for (e += pp(O); e < t.length; ) {
|
|
@@ -42,8 +36,7 @@ function Fy(t, e, i) {
|
|
|
42
36
|
let r = 0, a = e - 2;
|
|
43
37
|
for (; a >= 0 && $p(fu(t, a)); )
|
|
44
38
|
r++, a -= 2;
|
|
45
|
-
if (r % 2 == 0)
|
|
46
|
-
break;
|
|
39
|
+
if (r % 2 == 0) break;
|
|
47
40
|
e += 2;
|
|
48
41
|
} else
|
|
49
42
|
break;
|
|
@@ -53,16 +46,14 @@ function Fy(t, e, i) {
|
|
|
53
46
|
function T_(t, e, i) {
|
|
54
47
|
for (; e > 0; ) {
|
|
55
48
|
let O = Fy(t, e - 2, i);
|
|
56
|
-
if (O < e)
|
|
57
|
-
return O;
|
|
49
|
+
if (O < e) return O;
|
|
58
50
|
e--;
|
|
59
51
|
}
|
|
60
52
|
return 0;
|
|
61
53
|
}
|
|
62
54
|
function fu(t, e) {
|
|
63
55
|
let i = t.charCodeAt(e);
|
|
64
|
-
if (!Ky(i) || e + 1 == t.length)
|
|
65
|
-
return i;
|
|
56
|
+
if (!Ky(i) || e + 1 == t.length) return i;
|
|
66
57
|
let O = t.charCodeAt(e + 1);
|
|
67
58
|
return Hy(O) ? (i - 55296 << 10) + (O - 56320) + 65536 : i;
|
|
68
59
|
}
|
|
@@ -302,7 +293,7 @@ class Ci extends ge {
|
|
|
302
293
|
let a = this.children[n], o = r + a.length;
|
|
303
294
|
if (e >= r && i <= o) {
|
|
304
295
|
let l = a.replace(e - r, i - r, O), s = this.lines - a.lines + l.lines;
|
|
305
|
-
if (l.lines < s >>
|
|
296
|
+
if (l.lines < s >> 4 && l.lines > s >> 6) {
|
|
306
297
|
let c = this.children.slice();
|
|
307
298
|
return c[n] = l, new Ci(c, this.length - (i - e) + O.length);
|
|
308
299
|
}
|
|
@@ -359,8 +350,7 @@ class Ci extends ge {
|
|
|
359
350
|
if (h.lines > r && h instanceof Ci)
|
|
360
351
|
for (let p of h.children)
|
|
361
352
|
u(p);
|
|
362
|
-
else
|
|
363
|
-
h.lines > a && (l > a || !l) ? (d(), o.push(h)) : h instanceof Me && l && ($ = c[c.length - 1]) instanceof Me && h.lines + $.lines <= 32 ? (l += h.lines, s += h.length + 1, c[c.length - 1] = new Me($.text.concat(h.text), $.length + 1 + h.length)) : (l + h.lines > n && d(), l += h.lines, s += h.length + 1, c.push(h));
|
|
353
|
+
else h.lines > a && (l > a || !l) ? (d(), o.push(h)) : h instanceof Me && l && ($ = c[c.length - 1]) instanceof Me && h.lines + $.lines <= 32 ? (l += h.lines, s += h.length + 1, c[c.length - 1] = new Me($.text.concat(h.text), $.length + 1 + h.length)) : (l + h.lines > n && d(), l += h.lines, s += h.length + 1, c.push(h));
|
|
364
354
|
}
|
|
365
355
|
function d() {
|
|
366
356
|
l != 0 && (o.push(c.length == 1 ? c[0] : Ci.from(c, s)), s = -1, l = c.length = 0);
|
|
@@ -495,9 +485,9 @@ function Gi(t) {
|
|
|
495
485
|
return t < 65536 ? 1 : 2;
|
|
496
486
|
}
|
|
497
487
|
const bd = /\r\n?|\n/;
|
|
498
|
-
var ft = /* @__PURE__ */ function(t) {
|
|
488
|
+
var ft = /* @__PURE__ */ (function(t) {
|
|
499
489
|
return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t;
|
|
500
|
-
}(ft || (ft = {}));
|
|
490
|
+
})(ft || (ft = {}));
|
|
501
491
|
class Mi {
|
|
502
492
|
// Sections are encoded as pairs of integers. The first is the
|
|
503
493
|
// length in the current document, and the second is -1 for
|
|
@@ -744,25 +734,24 @@ class it extends Mi {
|
|
|
744
734
|
*/
|
|
745
735
|
filter(e) {
|
|
746
736
|
let i = [], O = [], n = [], r = new Aa(this);
|
|
747
|
-
e:
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
gt(i, c, -1), gt(n, c, r.ins == -1 ? -1 : r.off == 0 ? r.ins : 0), r.forward(c), o += c;
|
|
764
|
-
}
|
|
737
|
+
e: for (let a = 0, o = 0; ; ) {
|
|
738
|
+
let l = a == e.length ? 1e9 : e[a++];
|
|
739
|
+
for (; o < l || o == l && r.len == 0; ) {
|
|
740
|
+
if (r.done)
|
|
741
|
+
break e;
|
|
742
|
+
let c = Math.min(r.len, l - o);
|
|
743
|
+
gt(n, c, -1);
|
|
744
|
+
let u = r.ins == -1 ? -1 : r.off == 0 ? r.ins : 0;
|
|
745
|
+
gt(i, c, u), u > 0 && WO(O, i, r.text), r.forward(c), o += c;
|
|
746
|
+
}
|
|
747
|
+
let s = e[a++];
|
|
748
|
+
for (; o < s; ) {
|
|
749
|
+
if (r.done)
|
|
750
|
+
break e;
|
|
751
|
+
let c = Math.min(r.len, s - o);
|
|
752
|
+
gt(i, c, -1), gt(n, c, r.ins == -1 ? -1 : r.off == 0 ? r.ins : 0), r.forward(c), o += c;
|
|
765
753
|
}
|
|
754
|
+
}
|
|
766
755
|
return {
|
|
767
756
|
changes: new it(i, O),
|
|
768
757
|
filtered: Mi.create(n)
|
|
@@ -933,8 +922,7 @@ function tT(t, e, i = !1) {
|
|
|
933
922
|
if (r.ins == -1) {
|
|
934
923
|
let c = a.ins == -1 ? -1 : a.off ? 0 : a.ins;
|
|
935
924
|
gt(O, l, c, o), n && c && WO(n, O, a.text);
|
|
936
|
-
} else
|
|
937
|
-
a.ins == -1 ? (gt(O, r.off ? 0 : r.len, l, o), n && WO(n, O, r.textBit(l))) : (gt(O, r.off ? 0 : r.len, a.off ? 0 : a.ins, o), n && !a.off && WO(n, O, a.text));
|
|
925
|
+
} else a.ins == -1 ? (gt(O, r.off ? 0 : r.len, l, o), n && WO(n, O, r.textBit(l))) : (gt(O, r.off ? 0 : r.len, a.off ? 0 : a.ins, o), n && !a.off && WO(n, O, a.text));
|
|
938
926
|
o = (r.ins > l || a.ins >= 0 && a.len > l) && (o || O.length > s), r.forward2(l), a.forward(l);
|
|
939
927
|
}
|
|
940
928
|
}
|
|
@@ -1252,7 +1240,7 @@ class Fl {
|
|
|
1252
1240
|
var i;
|
|
1253
1241
|
let O = this.value, n = this.facet.compareInput, r = this.id, a = e[r] >> 1, o = this.type == 2, l = !1, s = !1, c = [];
|
|
1254
1242
|
for (let u of this.dependencies)
|
|
1255
|
-
u == "doc" ? l = !0 : u == "selection" ? s = !0 : ((i = e[u.id]) !== null && i !== void 0 ? i : 1) & 1
|
|
1243
|
+
u == "doc" ? l = !0 : u == "selection" ? s = !0 : (((i = e[u.id]) !== null && i !== void 0 ? i : 1) & 1) == 0 && c.push(e[u.id]);
|
|
1256
1244
|
return {
|
|
1257
1245
|
create(u) {
|
|
1258
1246
|
return u.values[a] = O(u), 1;
|
|
@@ -1786,9 +1774,9 @@ const V_ = [];
|
|
|
1786
1774
|
function lr(t) {
|
|
1787
1775
|
return t == null ? V_ : Array.isArray(t) ? t : [t];
|
|
1788
1776
|
}
|
|
1789
|
-
var ze = /* @__PURE__ */ function(t) {
|
|
1777
|
+
var ze = /* @__PURE__ */ (function(t) {
|
|
1790
1778
|
return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t;
|
|
1791
|
-
}(ze || (ze = {}));
|
|
1779
|
+
})(ze || (ze = {}));
|
|
1792
1780
|
const U_ = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
1793
1781
|
let vd;
|
|
1794
1782
|
try {
|
|
@@ -2108,11 +2096,10 @@ function Hi(t, e, i = {}) {
|
|
|
2108
2096
|
let a = n[r], o = O[r];
|
|
2109
2097
|
if (o === void 0)
|
|
2110
2098
|
O[r] = a;
|
|
2111
|
-
else if (!(o === a || a === void 0))
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
throw new Error("Config merge conflict for field " + r);
|
|
2099
|
+
else if (!(o === a || a === void 0)) if (Object.hasOwnProperty.call(i, r))
|
|
2100
|
+
O[r] = i[r](o, a);
|
|
2101
|
+
else
|
|
2102
|
+
throw new Error("Config merge conflict for field " + r);
|
|
2116
2103
|
}
|
|
2117
2104
|
for (let n in e)
|
|
2118
2105
|
O[n] === void 0 && (O[n] = e[n]);
|
|
@@ -2250,8 +2237,7 @@ class he {
|
|
|
2250
2237
|
if (l < i.length && (o.from - i[l].from || o.startSide - i[l].value.startSide) >= 0) {
|
|
2251
2238
|
let u = i[l++];
|
|
2252
2239
|
c.addInner(u.from, u.to, u.value) || s.push(u);
|
|
2253
|
-
} else
|
|
2254
|
-
o.rangeIndex == 1 && o.chunkIndex < this.chunk.length && (l == i.length || this.chunkEnd(o.chunkIndex) < i[l].from) && (!a || n > this.chunkEnd(o.chunkIndex) || r < this.chunkPos[o.chunkIndex]) && c.addChunk(this.chunkPos[o.chunkIndex], this.chunk[o.chunkIndex]) ? o.nextChunk() : ((!a || n > o.to || r < o.from || a(o.from, o.to, o.value)) && (c.addInner(o.from, o.to, o.value) || s.push(_d.create(o.from, o.to, o.value))), o.next());
|
|
2240
|
+
} else o.rangeIndex == 1 && o.chunkIndex < this.chunk.length && (l == i.length || this.chunkEnd(o.chunkIndex) < i[l].from) && (!a || n > this.chunkEnd(o.chunkIndex) || r < this.chunkPos[o.chunkIndex]) && c.addChunk(this.chunkPos[o.chunkIndex], this.chunk[o.chunkIndex]) ? o.nextChunk() : ((!a || n > o.to || r < o.from || a(o.from, o.to, o.value)) && (c.addInner(o.from, o.to, o.value) || s.push(_d.create(o.from, o.to, o.value))), o.next());
|
|
2255
2241
|
return c.finishInner(this.nextLayer.isEmpty && !s.length ? he.empty : this.nextLayer.update({ add: s, filter: a, filterFrom: n, filterTo: r }));
|
|
2256
2242
|
}
|
|
2257
2243
|
/**
|
|
@@ -2322,7 +2308,7 @@ class he {
|
|
|
2322
2308
|
if they are equivalent in the given range.
|
|
2323
2309
|
*/
|
|
2324
2310
|
static eq(e, i, O = 0, n) {
|
|
2325
|
-
n == null && (n =
|
|
2311
|
+
n == null && (n = 999999999);
|
|
2326
2312
|
let r = e.filter((c) => !c.isEmpty && i.indexOf(c) < 0), a = i.filter((c) => !c.isEmpty && e.indexOf(c) < 0);
|
|
2327
2313
|
if (r.length != a.length)
|
|
2328
2314
|
return !1;
|
|
@@ -2351,8 +2337,7 @@ class he {
|
|
|
2351
2337
|
if (a.point) {
|
|
2352
2338
|
let c = a.activeForPoint(a.to), u = a.pointFrom < i ? c.length + 1 : a.point.startSide < 0 ? c.length : Math.min(c.length, l);
|
|
2353
2339
|
n.point(o, s, a.point, c, u, a.pointRank), l = Math.min(a.openEnd(s), c.length);
|
|
2354
|
-
} else
|
|
2355
|
-
s > o && (n.span(o, s, a.active, l), l = a.openEnd(s));
|
|
2340
|
+
} else s > o && (n.span(o, s, a.active, l), l = a.openEnd(s));
|
|
2356
2341
|
if (a.to > O)
|
|
2357
2342
|
return l + (a.point && a.to > O ? 1 : 0);
|
|
2358
2343
|
o = a.to, a.next();
|
|
@@ -2692,7 +2677,7 @@ function Yd(t, e, i, O) {
|
|
|
2692
2677
|
}
|
|
2693
2678
|
return O === !0 ? -1 : t.length;
|
|
2694
2679
|
}
|
|
2695
|
-
const Zd = "ͼ", yp = typeof Symbol > "u" ? "__" + Zd : Symbol.for(Zd), zd = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), Tp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
2680
|
+
const Zd = "ͼ", yp = typeof Symbol > "u" ? "__" + Zd : Symbol.for(Zd), zd = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : /* @__PURE__ */ Symbol("styleSet"), Tp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
2696
2681
|
class IO {
|
|
2697
2682
|
// :: (Object<Style>, ?{finish: ?(string) → string})
|
|
2698
2683
|
// Create a style module from the given spec.
|
|
@@ -2707,8 +2692,7 @@ class IO {
|
|
|
2707
2692
|
}
|
|
2708
2693
|
function r(a, o, l, s) {
|
|
2709
2694
|
let c = [], u = /^@(\w+)\b/.exec(a[0]), d = u && u[1] == "keyframes";
|
|
2710
|
-
if (u && o == null)
|
|
2711
|
-
return l.push(a[0] + ";");
|
|
2695
|
+
if (u && o == null) return l.push(a[0] + ";");
|
|
2712
2696
|
for (let h in o) {
|
|
2713
2697
|
let $ = o[h];
|
|
2714
2698
|
if (/&/.test(h))
|
|
@@ -2718,16 +2702,13 @@ class IO {
|
|
|
2718
2702
|
l
|
|
2719
2703
|
);
|
|
2720
2704
|
else if ($ && typeof $ == "object") {
|
|
2721
|
-
if (!u)
|
|
2722
|
-
throw new RangeError("The value of a property (" + h + ") should be a primitive value.");
|
|
2705
|
+
if (!u) throw new RangeError("The value of a property (" + h + ") should be a primitive value.");
|
|
2723
2706
|
r(n(h), $, c, d);
|
|
2724
|
-
} else
|
|
2725
|
-
$ != null && c.push(h.replace(/_.*/, "").replace(/[A-Z]/g, (p) => "-" + p.toLowerCase()) + ": " + $ + ";");
|
|
2707
|
+
} else $ != null && c.push(h.replace(/_.*/, "").replace(/[A-Z]/g, (p) => "-" + p.toLowerCase()) + ": " + $ + ";");
|
|
2726
2708
|
}
|
|
2727
2709
|
(c.length || d) && l.push((O && !u && !s ? a.map(O) : a).join(", ") + " {" + c.join(" ") + "}");
|
|
2728
2710
|
}
|
|
2729
|
-
for (let a in e)
|
|
2730
|
-
r(n(a), e[a], this.rules);
|
|
2711
|
+
for (let a in e) r(n(a), e[a], this.rules);
|
|
2731
2712
|
}
|
|
2732
2713
|
// :: () → string
|
|
2733
2714
|
// Returns a string containing the module's CSS rules.
|
|
@@ -2768,8 +2749,7 @@ class G_ {
|
|
|
2768
2749
|
let O = e.ownerDocument || e, n = O.defaultView;
|
|
2769
2750
|
if (!e.head && e.adoptedStyleSheets && n.CSSStyleSheet) {
|
|
2770
2751
|
let r = Xp.get(O);
|
|
2771
|
-
if (r)
|
|
2772
|
-
return e[zd] = r;
|
|
2752
|
+
if (r) return e[zd] = r;
|
|
2773
2753
|
this.sheet = new n.CSSStyleSheet(), Xp.set(O, this);
|
|
2774
2754
|
} else
|
|
2775
2755
|
this.styleTag = O.createElement("style"), i && this.styleTag.setAttribute("nonce", i);
|
|
@@ -2780,12 +2760,10 @@ class G_ {
|
|
|
2780
2760
|
for (let a = 0; a < e.length; a++) {
|
|
2781
2761
|
let o = e[a], l = this.modules.indexOf(o);
|
|
2782
2762
|
if (l < r && l > -1 && (this.modules.splice(l, 1), r--, l = -1), l == -1) {
|
|
2783
|
-
if (this.modules.splice(r++, 0, o), O)
|
|
2784
|
-
|
|
2785
|
-
O.insertRule(o.rules[s], n++);
|
|
2763
|
+
if (this.modules.splice(r++, 0, o), O) for (let s = 0; s < o.rules.length; s++)
|
|
2764
|
+
O.insertRule(o.rules[s], n++);
|
|
2786
2765
|
} else {
|
|
2787
|
-
for (; r < l; )
|
|
2788
|
-
n += this.modules[r++].rules.length;
|
|
2766
|
+
for (; r < l; ) n += this.modules[r++].rules.length;
|
|
2789
2767
|
n += o.rules.length, r++;
|
|
2790
2768
|
}
|
|
2791
2769
|
}
|
|
@@ -2884,14 +2862,11 @@ var DO = {
|
|
|
2884
2862
|
221: "}",
|
|
2885
2863
|
222: '"'
|
|
2886
2864
|
}, j_ = typeof navigator < "u" && /Mac/.test(navigator.platform), A_ = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
2887
|
-
for (var ut = 0; ut < 10; ut++)
|
|
2888
|
-
|
|
2889
|
-
for (var ut = 1; ut <= 24; ut++)
|
|
2890
|
-
DO[ut + 111] = "F" + ut;
|
|
2865
|
+
for (var ut = 0; ut < 10; ut++) DO[48 + ut] = DO[96 + ut] = String(ut);
|
|
2866
|
+
for (var ut = 1; ut <= 24; ut++) DO[ut + 111] = "F" + ut;
|
|
2891
2867
|
for (var ut = 65; ut <= 90; ut++)
|
|
2892
2868
|
DO[ut] = String.fromCharCode(ut + 32), Da[ut] = String.fromCharCode(ut);
|
|
2893
|
-
for (var hu in DO)
|
|
2894
|
-
Da.hasOwnProperty(hu) || (Da[hu] = DO[hu]);
|
|
2869
|
+
for (var hu in DO) Da.hasOwnProperty(hu) || (Da[hu] = DO[hu]);
|
|
2895
2870
|
function I_(t) {
|
|
2896
2871
|
var e = j_ && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || A_ && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", i = !e && t.key || (t.shiftKey ? Da : DO)[t.keyCode] || t.key || "Unidentified";
|
|
2897
2872
|
return i == "Esc" && (i = "Escape"), i == "Del" && (i = "Delete"), i == "Left" && (i = "ArrowLeft"), i == "Up" && (i = "ArrowUp"), i == "Right" && (i = "ArrowRight"), i == "Down" && (i = "ArrowDown"), i;
|
|
@@ -2901,28 +2876,24 @@ function ve() {
|
|
|
2901
2876
|
typeof t == "string" && (t = document.createElement(t));
|
|
2902
2877
|
var e = 1, i = arguments[1];
|
|
2903
2878
|
if (i && typeof i == "object" && i.nodeType == null && !Array.isArray(i)) {
|
|
2904
|
-
for (var O in i)
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
}
|
|
2879
|
+
for (var O in i) if (Object.prototype.hasOwnProperty.call(i, O)) {
|
|
2880
|
+
var n = i[O];
|
|
2881
|
+
typeof n == "string" ? t.setAttribute(O, n) : n != null && (t[O] = n);
|
|
2882
|
+
}
|
|
2909
2883
|
e++;
|
|
2910
2884
|
}
|
|
2911
|
-
for (; e < arguments.length; e++)
|
|
2912
|
-
hT(t, arguments[e]);
|
|
2885
|
+
for (; e < arguments.length; e++) hT(t, arguments[e]);
|
|
2913
2886
|
return t;
|
|
2914
2887
|
}
|
|
2915
2888
|
function hT(t, e) {
|
|
2916
2889
|
if (typeof e == "string")
|
|
2917
2890
|
t.appendChild(document.createTextNode(e));
|
|
2918
|
-
else if (e != null)
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
else
|
|
2925
|
-
throw new RangeError("Unsupported child node: " + e);
|
|
2891
|
+
else if (e != null) if (e.nodeType != null)
|
|
2892
|
+
t.appendChild(e);
|
|
2893
|
+
else if (Array.isArray(e))
|
|
2894
|
+
for (var i = 0; i < e.length; i++) hT(t, e[i]);
|
|
2895
|
+
else
|
|
2896
|
+
throw new RangeError("Unsupported child node: " + e);
|
|
2926
2897
|
}
|
|
2927
2898
|
let xt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Vd = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
2928
2899
|
const Ud = /* @__PURE__ */ /Edge\/(\d+)/.exec(xt.userAgent), $T = /* @__PURE__ */ /MSIE \d/.test(xt.userAgent), Wd = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xt.userAgent), uc = !!($T || Wd || Ud), wp = !uc && /* @__PURE__ */ /gecko\/(\d+)/i.test(xt.userAgent), $u = !uc && /* @__PURE__ */ /Chrome\/(\d+)/.exec(xt.userAgent), D_ = "webkitFontSmoothing" in Vd.documentElement.style, Ed = !uc && /* @__PURE__ */ /Apple Computer/.test(xt.vendor), kp = Ed && (/* @__PURE__ */ /Mobile\/\w+/.test(xt.userAgent) || xt.maxTouchPoints > 2);
|
|
@@ -3073,9 +3044,9 @@ class _i {
|
|
|
3073
3044
|
destroy(e) {
|
|
3074
3045
|
}
|
|
3075
3046
|
}
|
|
3076
|
-
var dt = /* @__PURE__ */ function(t) {
|
|
3047
|
+
var dt = /* @__PURE__ */ (function(t) {
|
|
3077
3048
|
return t[t.Text = 0] = "Text", t[t.WidgetBefore = 1] = "WidgetBefore", t[t.WidgetAfter = 2] = "WidgetAfter", t[t.WidgetRange = 3] = "WidgetRange", t;
|
|
3078
|
-
}(dt || (dt = {}));
|
|
3049
|
+
})(dt || (dt = {}));
|
|
3079
3050
|
class ie extends AO {
|
|
3080
3051
|
constructor(e, i, O, n) {
|
|
3081
3052
|
super(), this.startSide = e, this.endSide = i, this.widget = O, this.spec = n;
|
|
@@ -3490,9 +3461,9 @@ class wi {
|
|
|
3490
3461
|
return new wi(e.parentNode, LO(e) + 1, i);
|
|
3491
3462
|
}
|
|
3492
3463
|
}
|
|
3493
|
-
var Re = /* @__PURE__ */ function(t) {
|
|
3464
|
+
var Re = /* @__PURE__ */ (function(t) {
|
|
3494
3465
|
return t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL", t;
|
|
3495
|
-
}(Re || (Re = {}));
|
|
3466
|
+
})(Re || (Re = {}));
|
|
3496
3467
|
const kn = Re.LTR, g$ = Re.RTL;
|
|
3497
3468
|
function yT(t) {
|
|
3498
3469
|
let e = [];
|
|
@@ -3582,8 +3553,7 @@ function OR(t, e, i, O, n) {
|
|
|
3582
3553
|
for (let p = s; p < h; p++)
|
|
3583
3554
|
_e[p] = $;
|
|
3584
3555
|
s = h - 1;
|
|
3585
|
-
} else
|
|
3586
|
-
d == 8 && u == 1 && (_e[s] = 1);
|
|
3556
|
+
} else d == 8 && u == 1 && (_e[s] = 1);
|
|
3587
3557
|
c = d, d & 7 && (u = d);
|
|
3588
3558
|
}
|
|
3589
3559
|
}
|
|
@@ -3659,37 +3629,36 @@ function jd(t, e, i, O, n, r, a) {
|
|
|
3659
3629
|
p != o && (c = !1, u = p == 16);
|
|
3660
3630
|
}
|
|
3661
3631
|
let d = !c && o == 1 ? [] : null, h = c ? O : O + 1, $ = l;
|
|
3662
|
-
e:
|
|
3663
|
-
|
|
3664
|
-
if (
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3632
|
+
e: for (; ; )
|
|
3633
|
+
if (s < r.length && $ == r[s].from) {
|
|
3634
|
+
if (u)
|
|
3635
|
+
break e;
|
|
3636
|
+
let p = r[s];
|
|
3637
|
+
if (!c)
|
|
3638
|
+
for (let m = p.to, S = s + 1; ; ) {
|
|
3639
|
+
if (m == i)
|
|
3640
|
+
break e;
|
|
3641
|
+
if (S < r.length && r[S].from == m)
|
|
3642
|
+
m = r[S++].to;
|
|
3643
|
+
else {
|
|
3644
|
+
if (_e[m] == o)
|
|
3671
3645
|
break e;
|
|
3672
|
-
|
|
3673
|
-
m = r[S++].to;
|
|
3674
|
-
else {
|
|
3675
|
-
if (_e[m] == o)
|
|
3676
|
-
break e;
|
|
3677
|
-
break;
|
|
3678
|
-
}
|
|
3646
|
+
break;
|
|
3679
3647
|
}
|
|
3680
|
-
if (s++, d)
|
|
3681
|
-
d.push(p);
|
|
3682
|
-
else {
|
|
3683
|
-
p.from > l && a.push(new Ii(l, p.from, h));
|
|
3684
|
-
let m = p.direction == kn != !(h % 2);
|
|
3685
|
-
Ad(t, m ? O + 1 : O, n, p.inner, p.from, p.to, a), l = p.to;
|
|
3686
3648
|
}
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3649
|
+
if (s++, d)
|
|
3650
|
+
d.push(p);
|
|
3651
|
+
else {
|
|
3652
|
+
p.from > l && a.push(new Ii(l, p.from, h));
|
|
3653
|
+
let m = p.direction == kn != !(h % 2);
|
|
3654
|
+
Ad(t, m ? O + 1 : O, n, p.inner, p.from, p.to, a), l = p.to;
|
|
3692
3655
|
}
|
|
3656
|
+
$ = p.to;
|
|
3657
|
+
} else {
|
|
3658
|
+
if ($ == i || (c ? _e[$] != o : _e[$] == o))
|
|
3659
|
+
break;
|
|
3660
|
+
$++;
|
|
3661
|
+
}
|
|
3693
3662
|
d ? jd(t, l, $, O + 1, n, d, a) : l < $ && a.push(new Ii(l, $, h)), l = $;
|
|
3694
3663
|
}
|
|
3695
3664
|
else
|
|
@@ -3700,37 +3669,36 @@ function jd(t, e, i, O, n, r, a) {
|
|
|
3700
3669
|
p != o && (c = !1, u = p == 16);
|
|
3701
3670
|
}
|
|
3702
3671
|
let d = !c && o == 1 ? [] : null, h = c ? O : O + 1, $ = l;
|
|
3703
|
-
e:
|
|
3704
|
-
|
|
3705
|
-
if (
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3672
|
+
e: for (; ; )
|
|
3673
|
+
if (s && $ == r[s - 1].to) {
|
|
3674
|
+
if (u)
|
|
3675
|
+
break e;
|
|
3676
|
+
let p = r[--s];
|
|
3677
|
+
if (!c)
|
|
3678
|
+
for (let m = p.from, S = s; ; ) {
|
|
3679
|
+
if (m == e)
|
|
3680
|
+
break e;
|
|
3681
|
+
if (S && r[S - 1].to == m)
|
|
3682
|
+
m = r[--S].from;
|
|
3683
|
+
else {
|
|
3684
|
+
if (_e[m - 1] == o)
|
|
3712
3685
|
break e;
|
|
3713
|
-
|
|
3714
|
-
m = r[--S].from;
|
|
3715
|
-
else {
|
|
3716
|
-
if (_e[m - 1] == o)
|
|
3717
|
-
break e;
|
|
3718
|
-
break;
|
|
3719
|
-
}
|
|
3686
|
+
break;
|
|
3720
3687
|
}
|
|
3721
|
-
if (d)
|
|
3722
|
-
d.push(p);
|
|
3723
|
-
else {
|
|
3724
|
-
p.to < l && a.push(new Ii(p.to, l, h));
|
|
3725
|
-
let m = p.direction == kn != !(h % 2);
|
|
3726
|
-
Ad(t, m ? O + 1 : O, n, p.inner, p.from, p.to, a), l = p.from;
|
|
3727
3688
|
}
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3689
|
+
if (d)
|
|
3690
|
+
d.push(p);
|
|
3691
|
+
else {
|
|
3692
|
+
p.to < l && a.push(new Ii(p.to, l, h));
|
|
3693
|
+
let m = p.direction == kn != !(h % 2);
|
|
3694
|
+
Ad(t, m ? O + 1 : O, n, p.inner, p.from, p.to, a), l = p.from;
|
|
3733
3695
|
}
|
|
3696
|
+
$ = p.from;
|
|
3697
|
+
} else {
|
|
3698
|
+
if ($ == e || (c ? _e[$ - 1] != o : _e[$ - 1] == o))
|
|
3699
|
+
break;
|
|
3700
|
+
$--;
|
|
3701
|
+
}
|
|
3734
3702
|
d ? jd(t, $, l, O + 1, n, d, a) : $ < l && a.push(new Ii($, l, h)), l = $;
|
|
3735
3703
|
}
|
|
3736
3704
|
}
|
|
@@ -4950,26 +4918,25 @@ class Zp {
|
|
|
4950
4918
|
(o || !u.focusNode || (!Ra(s.node, s.offset, u.anchorNode, u.anchorOffset) || !Ra(c.node, c.offset, u.focusNode, u.focusOffset)) && !this.suppressWidgetCursorChange(u, l)) && (this.view.observer.ignore(() => {
|
|
4951
4919
|
F.android && F.chrome && O.contains(u.focusNode) && vR(u.focusNode, O) && (O.blur(), O.focus({ preventScroll: !0 }));
|
|
4952
4920
|
let d = Na(this.view.root);
|
|
4953
|
-
if (d)
|
|
4954
|
-
if (
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
$ && (s = new wi($.node, $.offset));
|
|
4960
|
-
}
|
|
4961
|
-
}
|
|
4962
|
-
d.collapse(s.node, s.offset), l.bidiLevel != null && d.caretBidiLevel !== void 0 && (d.caretBidiLevel = l.bidiLevel);
|
|
4963
|
-
} else if (d.extend) {
|
|
4964
|
-
d.collapse(s.node, s.offset);
|
|
4965
|
-
try {
|
|
4966
|
-
d.extend(c.node, c.offset);
|
|
4967
|
-
} catch {
|
|
4921
|
+
if (d) if (l.empty) {
|
|
4922
|
+
if (F.gecko) {
|
|
4923
|
+
let h = TR(s.node, s.offset);
|
|
4924
|
+
if (h && h != 3) {
|
|
4925
|
+
let $ = (h == 1 ? PT : bT)(s.node, s.offset);
|
|
4926
|
+
$ && (s = new wi($.node, $.offset));
|
|
4968
4927
|
}
|
|
4969
|
-
} else {
|
|
4970
|
-
let h = document.createRange();
|
|
4971
|
-
l.anchor > l.head && ([s, c] = [c, s]), h.setEnd(c.node, c.offset), h.setStart(s.node, s.offset), d.removeAllRanges(), d.addRange(h);
|
|
4972
4928
|
}
|
|
4929
|
+
d.collapse(s.node, s.offset), l.bidiLevel != null && d.caretBidiLevel !== void 0 && (d.caretBidiLevel = l.bidiLevel);
|
|
4930
|
+
} else if (d.extend) {
|
|
4931
|
+
d.collapse(s.node, s.offset);
|
|
4932
|
+
try {
|
|
4933
|
+
d.extend(c.node, c.offset);
|
|
4934
|
+
} catch {
|
|
4935
|
+
}
|
|
4936
|
+
} else {
|
|
4937
|
+
let h = document.createRange();
|
|
4938
|
+
l.anchor > l.head && ([s, c] = [c, s]), h.setEnd(c.node, c.offset), h.setStart(s.node, s.offset), d.removeAllRanges(), d.addRange(h);
|
|
4939
|
+
}
|
|
4973
4940
|
a && this.view.root.activeElement == O && (O.blur(), n && n.focus());
|
|
4974
4941
|
}), this.view.observer.setSelectionRange(s, c)), this.impreciseAnchor = s.precise ? null : new wi(u.anchorNode, u.anchorOffset), this.impreciseHead = c.precise ? null : new wi(u.focusNode, u.focusOffset);
|
|
4975
4942
|
}
|
|
@@ -5030,8 +4997,7 @@ class Zp {
|
|
|
5030
4997
|
return o;
|
|
5031
4998
|
o += l.length + l.breakAfter;
|
|
5032
4999
|
}
|
|
5033
|
-
} else
|
|
5034
|
-
return O.isText() ? e == O.dom ? n + i : n + (i ? O.length : 0) : n;
|
|
5000
|
+
} else return O.isText() ? e == O.dom ? n + i : n + (i ? O.length : 0) : n;
|
|
5035
5001
|
}
|
|
5036
5002
|
domAtPos(e, i) {
|
|
5037
5003
|
let { tile: O, offset: n } = this.tile.resolveBlock(e, i);
|
|
@@ -5530,37 +5496,35 @@ class VR {
|
|
|
5530
5496
|
// will be child tiles.
|
|
5531
5497
|
scan(e, i) {
|
|
5532
5498
|
let O = 0, n = e.length - 1, r = /* @__PURE__ */ new Set(), a = this.bidiIn(e[0], e[n]), o, l, s = -1, c = 1e9, u;
|
|
5533
|
-
e:
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
$ = m;
|
|
5542
|
-
break t;
|
|
5543
|
-
}
|
|
5544
|
-
m++, m == n && (m = O);
|
|
5545
|
-
}
|
|
5546
|
-
break e;
|
|
5499
|
+
e: for (; O < n; ) {
|
|
5500
|
+
let h = n - O, $ = O + n >> 1;
|
|
5501
|
+
t: if (r.has($)) {
|
|
5502
|
+
let m = O + Math.floor(Math.random() * h);
|
|
5503
|
+
for (let S = 0; S < h; S++) {
|
|
5504
|
+
if (!r.has(m)) {
|
|
5505
|
+
$ = m;
|
|
5506
|
+
break t;
|
|
5547
5507
|
}
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5508
|
+
m++, m == n && (m = O);
|
|
5509
|
+
}
|
|
5510
|
+
break e;
|
|
5511
|
+
}
|
|
5512
|
+
r.add($);
|
|
5513
|
+
let p = i($);
|
|
5514
|
+
if (p)
|
|
5515
|
+
for (let m = 0; m < p.length; m++) {
|
|
5516
|
+
let S = p[m], y = 0;
|
|
5517
|
+
if (S.bottom < this.y)
|
|
5518
|
+
(!o || o.bottom < S.bottom) && (o = S), y = 1;
|
|
5519
|
+
else if (S.top > this.y)
|
|
5520
|
+
(!l || l.top > S.top) && (l = S), y = -1;
|
|
5521
|
+
else {
|
|
5522
|
+
let w = S.left > this.x ? this.x - S.left : S.right < this.x ? this.x - S.right : 0, Y = Math.abs(w);
|
|
5523
|
+
Y < c && (s = $, c = Y, u = S), w && (y = w < 0 == (this.baseDir == Re.LTR) ? -1 : 1);
|
|
5562
5524
|
}
|
|
5563
|
-
|
|
5525
|
+
y == -1 && (!a || this.baseDirAt(e[$], 1)) ? n = $ : y == 1 && (!a || this.baseDirAt(e[$ + 1], -1)) && (O = $ + 1);
|
|
5526
|
+
}
|
|
5527
|
+
}
|
|
5564
5528
|
if (!u) {
|
|
5565
5529
|
let h = o && (!l || this.y - o.bottom < l.top - this.y) ? o : l;
|
|
5566
5530
|
return this.y = (h.top + h.bottom) / 2, this.scan(e, i);
|
|
@@ -5652,8 +5616,7 @@ class UR {
|
|
|
5652
5616
|
this.findPointInside(e, O.length);
|
|
5653
5617
|
for (let n = O.iter(); !n.next().done; )
|
|
5654
5618
|
n.lineBreak ? this.lineBreak() : this.append(n.value);
|
|
5655
|
-
} else
|
|
5656
|
-
e.nodeType == 3 ? this.readTextNode(e) : e.nodeName == "BR" ? e.nextSibling && this.lineBreak() : e.nodeType == 1 && this.readRange(e.firstChild, null);
|
|
5619
|
+
} else e.nodeType == 3 ? this.readTextNode(e) : e.nodeName == "BR" ? e.nextSibling && this.lineBreak() : e.nodeType == 1 && this.readRange(e.firstChild, null);
|
|
5657
5620
|
}
|
|
5658
5621
|
findPointBefore(e, i) {
|
|
5659
5622
|
for (let O of this.points)
|
|
@@ -5732,8 +5695,7 @@ function DT(t, e, i, O) {
|
|
|
5732
5695
|
startDOM: (n ? t.children[n - 1].dom.nextSibling : null) || t.dom.firstChild,
|
|
5733
5696
|
endDOM: a < t.children.length && a >= 0 ? t.children[a].dom : null
|
|
5734
5697
|
};
|
|
5735
|
-
} else
|
|
5736
|
-
return t.isText() ? { from: O, to: O + t.length, startDOM: t.dom, endDOM: t.dom.nextSibling } : null;
|
|
5698
|
+
} else return t.isText() ? { from: O, to: O + t.length, startDOM: t.dom, endDOM: t.dom.nextSibling } : null;
|
|
5737
5699
|
}
|
|
5738
5700
|
function LT(t, e) {
|
|
5739
5701
|
let i, { newSel: O } = e, { state: n } = t, r = n.selection.main, a = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1;
|
|
@@ -5750,8 +5712,7 @@ function LT(t, e) {
|
|
|
5750
5712
|
to: o + h.toA,
|
|
5751
5713
|
insert: ge.of(e.text.slice(h.from, h.toB).split(Jn))
|
|
5752
5714
|
});
|
|
5753
|
-
} else
|
|
5754
|
-
O && (!t.hasFocus && n.facet(fO) || bs(O, r)) && (O = null);
|
|
5715
|
+
} else O && (!t.hasFocus && n.facet(fO) || bs(O, r)) && (O = null);
|
|
5755
5716
|
if (!i && !O)
|
|
5756
5717
|
return !1;
|
|
5757
5718
|
if ((F.mac || F.android) && i && i.from == i.to && i.from == r.head - 1 && /^\. ?$/.test(i.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (O && i.insert.length == 2 && (O = V.single(O.main.anchor - 1, O.main.head - 1)), i = { from: i.from, to: i.to, insert: ge.of([i.insert.toString().replace(".", " ")]) }) : n.doc.lineAt(r.from).to < r.to && t.docView.lineHasWidget(r.to) && t.inputState.insertingTextAt > Date.now() - 50 ? i = {
|
|
@@ -6083,14 +6044,13 @@ function HT(t, e) {
|
|
|
6083
6044
|
range: V.cursor(s.from + u.length)
|
|
6084
6045
|
};
|
|
6085
6046
|
});
|
|
6086
|
-
} else
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
}) : O = i.replaceSelection(r);
|
|
6047
|
+
} else a ? O = i.changeByRange((l) => {
|
|
6048
|
+
let s = r.line(n++);
|
|
6049
|
+
return {
|
|
6050
|
+
changes: { from: l.from, to: l.to, insert: s.text },
|
|
6051
|
+
range: V.cursor(l.from + s.length)
|
|
6052
|
+
};
|
|
6053
|
+
}) : O = i.replaceSelection(r);
|
|
6094
6054
|
t.dispatch(O, {
|
|
6095
6055
|
userEvent: "input.paste",
|
|
6096
6056
|
scrollIntoView: !0
|
|
@@ -6422,9 +6382,9 @@ class Xi {
|
|
|
6422
6382
|
return new Xi(this.from, this.length + e.length, this.top, this.height + e.height, i);
|
|
6423
6383
|
}
|
|
6424
6384
|
}
|
|
6425
|
-
var qe = /* @__PURE__ */ function(t) {
|
|
6385
|
+
var qe = /* @__PURE__ */ (function(t) {
|
|
6426
6386
|
return t[t.ByPos = 0] = "ByPos", t[t.ByHeight = 1] = "ByHeight", t[t.ByPosNoHeight = 2] = "ByPosNoHeight", t;
|
|
6427
|
-
}(qe || (qe = {}));
|
|
6387
|
+
})(qe || (qe = {}));
|
|
6428
6388
|
const Hl = 1e-3;
|
|
6429
6389
|
class vt {
|
|
6430
6390
|
constructor(e, i, O = 2) {
|
|
@@ -6626,8 +6586,7 @@ class ct extends vt {
|
|
|
6626
6586
|
o <= r && a.push(null, new ct(r - o).updateHeight(e, o));
|
|
6627
6587
|
let s = vt.of(a);
|
|
6628
6588
|
return (l < 0 || Math.abs(s.height - this.height) >= Hl || Math.abs(l - this.heightMetrics(e, i).perLine) >= Hl) && (Pr = !0), ys(this, s);
|
|
6629
|
-
} else
|
|
6630
|
-
(O || this.outdated) && (this.setHeight(e.heightForGap(i, i + this.length)), this.outdated = !1);
|
|
6589
|
+
} else (O || this.outdated) && (this.setHeight(e.heightForGap(i, i + this.length)), this.outdated = !1);
|
|
6631
6590
|
return this;
|
|
6632
6591
|
}
|
|
6633
6592
|
toString() {
|
|
@@ -6726,8 +6685,7 @@ class w$ {
|
|
|
6726
6685
|
n < 0 && (n = this.oracle.lineHeight);
|
|
6727
6686
|
let a = i - e;
|
|
6728
6687
|
O.block ? this.addBlock(new iX(a, n, O)) : (a || r || n >= cq) && this.addLineDeco(n, r, a);
|
|
6729
|
-
} else
|
|
6730
|
-
i > e && this.span(e, i);
|
|
6688
|
+
} else i > e && this.span(e, i);
|
|
6731
6689
|
this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to);
|
|
6732
6690
|
}
|
|
6733
6691
|
enterLine() {
|
|
@@ -7682,8 +7640,7 @@ class Pq {
|
|
|
7682
7640
|
to: n ? i.posBefore(n) : i.posAtEnd,
|
|
7683
7641
|
typeOver: !1
|
|
7684
7642
|
};
|
|
7685
|
-
} else
|
|
7686
|
-
return e.type == "characterData" ? { from: i.posAtStart, to: i.posAtEnd, typeOver: e.target.nodeValue == e.oldValue } : null;
|
|
7643
|
+
} else return e.type == "characterData" ? { from: i.posAtStart, to: i.posAtEnd, typeOver: e.target.nodeValue == e.oldValue } : null;
|
|
7687
7644
|
}
|
|
7688
7645
|
setWindow(e) {
|
|
7689
7646
|
e != this.win && (this.removeWindowListeners(this.win), this.win = e, this.addWindowListeners(this.win));
|
|
@@ -9346,7 +9303,7 @@ function nY(t, e) {
|
|
|
9346
9303
|
} : null;
|
|
9347
9304
|
}
|
|
9348
9305
|
function rY(t) {
|
|
9349
|
-
let e = (i) => i.altKey && i.button == 0;
|
|
9306
|
+
let e = ((i) => i.altKey && i.button == 0);
|
|
9350
9307
|
return L.mouseSelectionStyle.of((i, O) => e(O) ? nY(i, O) : null);
|
|
9351
9308
|
}
|
|
9352
9309
|
const aY = {
|
|
@@ -9474,8 +9431,7 @@ const Tu = /* @__PURE__ */ B.define({
|
|
|
9474
9431
|
for (let n of this.manager.tooltipViews)
|
|
9475
9432
|
this.container.appendChild(n.dom);
|
|
9476
9433
|
i = !0;
|
|
9477
|
-
} else
|
|
9478
|
-
this.parent && this.view.themeClasses != this.classes && (this.classes = this.container.className = this.view.themeClasses);
|
|
9434
|
+
} else this.parent && this.view.themeClasses != this.classes && (this.classes = this.container.className = this.view.themeClasses);
|
|
9479
9435
|
i && this.maybeMeasure();
|
|
9480
9436
|
}
|
|
9481
9437
|
createTooltip(t, e) {
|
|
@@ -9552,8 +9508,7 @@ const Tu = /* @__PURE__ */ B.define({
|
|
|
9552
9508
|
continue;
|
|
9553
9509
|
}
|
|
9554
9510
|
am.set(s, m), c.style.height = (m = X) / r + "px";
|
|
9555
|
-
} else
|
|
9556
|
-
c.style.height && (c.style.height = "");
|
|
9511
|
+
} else c.style.height && (c.style.height = "");
|
|
9557
9512
|
let k = Y ? u.top - m - $ - S.y : u.bottom + $ + S.y, b = w + p;
|
|
9558
9513
|
if (s.overlap !== !0)
|
|
9559
9514
|
for (let x of a)
|
|
@@ -9599,7 +9554,7 @@ const cY = /* @__PURE__ */ L.baseTheme({
|
|
|
9599
9554
|
},
|
|
9600
9555
|
".cm-tooltip-arrow": {
|
|
9601
9556
|
height: "7px",
|
|
9602
|
-
width:
|
|
9557
|
+
width: "14px",
|
|
9603
9558
|
position: "absolute",
|
|
9604
9559
|
zIndex: -1,
|
|
9605
9560
|
overflow: "hidden",
|
|
@@ -9754,8 +9709,7 @@ class dY {
|
|
|
9754
9709
|
a.then((l) => {
|
|
9755
9710
|
this.pending == o && (this.pending = null, l && !(Array.isArray(l) && !l.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(l) ? l : [l]) }));
|
|
9756
9711
|
}, (l) => Wt(e.state, l, "hover tooltip"));
|
|
9757
|
-
} else
|
|
9758
|
-
a && !(Array.isArray(a) && !a.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(a) ? a : [a]) });
|
|
9712
|
+
} else a && !(Array.isArray(a) && !a.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(a) ? a : [a]) });
|
|
9759
9713
|
}
|
|
9760
9714
|
get tooltip() {
|
|
9761
9715
|
let e = this.view.plugin(x$), i = e ? e.manager.tooltips.findIndex((O) => O.create == Qc.create) : -1;
|
|
@@ -11355,17 +11309,16 @@ class ws {
|
|
|
11355
11309
|
return this._tree;
|
|
11356
11310
|
let e = this.bufferNode, i = null, O = 0;
|
|
11357
11311
|
if (e && e.context == this.buffer)
|
|
11358
|
-
e:
|
|
11359
|
-
for (let
|
|
11360
|
-
|
|
11361
|
-
if (
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
}
|
|
11312
|
+
e: for (let n = this.index, r = this.stack.length; r >= 0; ) {
|
|
11313
|
+
for (let a = e; a; a = a._parent)
|
|
11314
|
+
if (a.index == n) {
|
|
11315
|
+
if (n == this.index)
|
|
11316
|
+
return a;
|
|
11317
|
+
i = a, O = r + 1;
|
|
11318
|
+
break e;
|
|
11319
|
+
}
|
|
11320
|
+
n = this.stack[--r];
|
|
11321
|
+
}
|
|
11369
11322
|
for (let n = O; n < this.stack.length; n++)
|
|
11370
11323
|
i = new Di(this.buffer, i, this.stack[n]);
|
|
11371
11324
|
return this.bufferNode = new Di(this.buffer, i, this.index);
|
|
@@ -11515,29 +11468,27 @@ function WY(t) {
|
|
|
11515
11468
|
}
|
|
11516
11469
|
function m(X, k) {
|
|
11517
11470
|
let b = o.fork(), x = 0, g = 0, W = 0, Z = b.end - n, E = { size: 0, start: 0, skip: 0 };
|
|
11518
|
-
e:
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
if (b.size
|
|
11531
|
-
|
|
11532
|
-
q += 4;
|
|
11533
|
-
else
|
|
11534
|
-
break e;
|
|
11471
|
+
e: for (let z = b.pos - X; b.pos > z; ) {
|
|
11472
|
+
let T = b.size;
|
|
11473
|
+
if (b.id == k && T >= 0) {
|
|
11474
|
+
E.size = x, E.start = g, E.skip = W, W += 4, x += 4, b.next();
|
|
11475
|
+
continue;
|
|
11476
|
+
}
|
|
11477
|
+
let R = b.pos - T;
|
|
11478
|
+
if (T < 0 || R < z || b.start < Z)
|
|
11479
|
+
break;
|
|
11480
|
+
let q = b.id >= a ? 4 : 0, _ = b.start;
|
|
11481
|
+
for (b.next(); b.pos > R; ) {
|
|
11482
|
+
if (b.size < 0)
|
|
11483
|
+
if (b.size == -3 || b.size == -4)
|
|
11484
|
+
q += 4;
|
|
11535
11485
|
else
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
g = _, x += T, W += q;
|
|
11486
|
+
break e;
|
|
11487
|
+
else b.id >= a && (q += 4);
|
|
11488
|
+
b.next();
|
|
11540
11489
|
}
|
|
11490
|
+
g = _, x += T, W += q;
|
|
11491
|
+
}
|
|
11541
11492
|
return (k < 0 || x == X) && (E.size = x, E.start = g, E.skip = W), E.size > 4 ? E : void 0;
|
|
11542
11493
|
}
|
|
11543
11494
|
function S(X, k, b) {
|
|
@@ -11550,8 +11501,7 @@ function WY(t) {
|
|
|
11550
11501
|
b = S(X, k, b);
|
|
11551
11502
|
}
|
|
11552
11503
|
k[--b] = E, k[--b] = W - X, k[--b] = g - X, k[--b] = x;
|
|
11553
|
-
} else
|
|
11554
|
-
Z == -3 ? s = x : Z == -4 && (c = x);
|
|
11504
|
+
} else Z == -3 ? s = x : Z == -4 && (c = x);
|
|
11555
11505
|
return b;
|
|
11556
11506
|
}
|
|
11557
11507
|
let y = [], w = [];
|
|
@@ -11821,49 +11771,48 @@ class GY {
|
|
|
11821
11771
|
}
|
|
11822
11772
|
startInner() {
|
|
11823
11773
|
let e = new IY(this.fragments), i = null, O = null, n = new ws(new Pt(this.baseTree, this.ranges[0].from, 0, null), be.IncludeAnonymous | be.IgnoreMounts);
|
|
11824
|
-
e:
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
u >= n.from && d <= n.to && !i.ranges.some((h) => h.from < d && h.to > u) && i.ranges.push({ from: u, to: d });
|
|
11836
|
-
}
|
|
11837
|
-
}
|
|
11838
|
-
o = !1;
|
|
11839
|
-
} else if (O && (a = jY(O.ranges, n.from, n.to)))
|
|
11840
|
-
o = a != 2;
|
|
11841
|
-
else if (!n.type.isAnonymous && (r = this.nest(n, this.input)) && (n.from < n.to || !r.overlay)) {
|
|
11842
|
-
n.tree || (AY(n), i && i.depth++, O && O.depth++);
|
|
11843
|
-
let s = e.findMounts(n.from, r.parser);
|
|
11844
|
-
if (typeof r.overlay == "function")
|
|
11845
|
-
i = new CY(r.parser, r.overlay, s, this.inner.length, n.from, !!r.bracketed, n.tree, i);
|
|
11846
|
-
else {
|
|
11847
|
-
let c = Pm(this.ranges, r.overlay || (n.from < n.to ? [new ci(n.from, n.to)] : []));
|
|
11848
|
-
c.length && mm(c), (c.length || !r.overlay) && this.inner.push(new pm(r.parser, c.length ? r.parser.startParse(this.input, bm(s, c), c) : r.parser.startParse(""), r.overlay ? r.overlay.map((u) => new ci(u.from - n.from, u.to - n.from)) : null, !!r.bracketed, n.tree, c.length ? c[0].from : n.from)), r.overlay ? c.length && (O = { ranges: c, depth: 0, prev: O }) : o = !1;
|
|
11849
|
-
}
|
|
11850
|
-
} else if (i && (l = i.predicate(n)) && (l === !0 && (l = new ci(n.from, n.to)), l.from < l.to)) {
|
|
11851
|
-
let s = i.ranges.length - 1;
|
|
11852
|
-
s >= 0 && i.ranges[s].to == l.from ? i.ranges[s] = { from: i.ranges[s].from, to: l.to } : i.ranges.push(l);
|
|
11853
|
-
}
|
|
11854
|
-
if (o && n.firstChild())
|
|
11855
|
-
i && i.depth++, O && O.depth++;
|
|
11856
|
-
else
|
|
11857
|
-
for (; !n.nextSibling(); ) {
|
|
11858
|
-
if (!n.parent())
|
|
11859
|
-
break e;
|
|
11860
|
-
if (i && !--i.depth) {
|
|
11861
|
-
let s = Pm(this.ranges, i.ranges);
|
|
11862
|
-
s.length && (mm(s), this.inner.splice(i.index, 0, new pm(i.parser, i.parser.startParse(this.input, bm(i.mounts, s), s), i.ranges.map((c) => new ci(c.from - i.start, c.to - i.start)), i.bracketed, i.target, s[0].from))), i = i.prev;
|
|
11774
|
+
e: for (let r, a; ; ) {
|
|
11775
|
+
let o = !0, l;
|
|
11776
|
+
if (this.stoppedAt != null && n.from >= this.stoppedAt)
|
|
11777
|
+
o = !1;
|
|
11778
|
+
else if (e.hasNode(n)) {
|
|
11779
|
+
if (i) {
|
|
11780
|
+
let s = i.mounts.find((c) => c.frag.from <= n.from && c.frag.to >= n.to && c.mount.overlay);
|
|
11781
|
+
if (s)
|
|
11782
|
+
for (let c of s.mount.overlay) {
|
|
11783
|
+
let u = c.from + s.pos, d = c.to + s.pos;
|
|
11784
|
+
u >= n.from && d <= n.to && !i.ranges.some((h) => h.from < d && h.to > u) && i.ranges.push({ from: u, to: d });
|
|
11863
11785
|
}
|
|
11864
|
-
|
|
11865
|
-
|
|
11786
|
+
}
|
|
11787
|
+
o = !1;
|
|
11788
|
+
} else if (O && (a = jY(O.ranges, n.from, n.to)))
|
|
11789
|
+
o = a != 2;
|
|
11790
|
+
else if (!n.type.isAnonymous && (r = this.nest(n, this.input)) && (n.from < n.to || !r.overlay)) {
|
|
11791
|
+
n.tree || (AY(n), i && i.depth++, O && O.depth++);
|
|
11792
|
+
let s = e.findMounts(n.from, r.parser);
|
|
11793
|
+
if (typeof r.overlay == "function")
|
|
11794
|
+
i = new CY(r.parser, r.overlay, s, this.inner.length, n.from, !!r.bracketed, n.tree, i);
|
|
11795
|
+
else {
|
|
11796
|
+
let c = Pm(this.ranges, r.overlay || (n.from < n.to ? [new ci(n.from, n.to)] : []));
|
|
11797
|
+
c.length && mm(c), (c.length || !r.overlay) && this.inner.push(new pm(r.parser, c.length ? r.parser.startParse(this.input, bm(s, c), c) : r.parser.startParse(""), r.overlay ? r.overlay.map((u) => new ci(u.from - n.from, u.to - n.from)) : null, !!r.bracketed, n.tree, c.length ? c[0].from : n.from)), r.overlay ? c.length && (O = { ranges: c, depth: 0, prev: O }) : o = !1;
|
|
11798
|
+
}
|
|
11799
|
+
} else if (i && (l = i.predicate(n)) && (l === !0 && (l = new ci(n.from, n.to)), l.from < l.to)) {
|
|
11800
|
+
let s = i.ranges.length - 1;
|
|
11801
|
+
s >= 0 && i.ranges[s].to == l.from ? i.ranges[s] = { from: i.ranges[s].from, to: l.to } : i.ranges.push(l);
|
|
11866
11802
|
}
|
|
11803
|
+
if (o && n.firstChild())
|
|
11804
|
+
i && i.depth++, O && O.depth++;
|
|
11805
|
+
else
|
|
11806
|
+
for (; !n.nextSibling(); ) {
|
|
11807
|
+
if (!n.parent())
|
|
11808
|
+
break e;
|
|
11809
|
+
if (i && !--i.depth) {
|
|
11810
|
+
let s = Pm(this.ranges, i.ranges);
|
|
11811
|
+
s.length && (mm(s), this.inner.splice(i.index, 0, new pm(i.parser, i.parser.startParse(this.input, bm(i.mounts, s), s), i.ranges.map((c) => new ci(c.from - i.start, c.to - i.start)), i.bracketed, i.target, s[0].from))), i = i.prev;
|
|
11812
|
+
}
|
|
11813
|
+
O && !--O.depth && (O = O.prev);
|
|
11814
|
+
}
|
|
11815
|
+
}
|
|
11867
11816
|
}
|
|
11868
11817
|
}
|
|
11869
11818
|
function jY(t, e, i) {
|
|
@@ -12981,7 +12930,7 @@ typeof requestIdleCallback < "u" && (XX = (t) => {
|
|
|
12981
12930
|
let e = -1, i = setTimeout(
|
|
12982
12931
|
() => {
|
|
12983
12932
|
e = requestIdleCallback(t, {
|
|
12984
|
-
timeout:
|
|
12933
|
+
timeout: 400
|
|
12985
12934
|
/* Work.MinPause */
|
|
12986
12935
|
});
|
|
12987
12936
|
},
|
|
@@ -13437,12 +13386,11 @@ const Rn = /* @__PURE__ */ ht.define({
|
|
|
13437
13386
|
if (i.is(bc) && !dZ(t, i.value.from, i.value.to)) {
|
|
13438
13387
|
let { preparePlaceholder: O } = e.state.facet(YX), n = O ? ie.replace({ widget: new SZ(O(e.state, i.value)) }) : xm;
|
|
13439
13388
|
t = t.update({ add: [n.range(i.value.from, i.value.to)] });
|
|
13440
|
-
} else
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
}));
|
|
13389
|
+
} else i.is(wo) && (t = t.update({
|
|
13390
|
+
filter: (O, n) => i.value.from != O || i.value.to != n,
|
|
13391
|
+
filterFrom: i.value.from,
|
|
13392
|
+
filterTo: i.value.to
|
|
13393
|
+
}));
|
|
13446
13394
|
return e.selection && (t = km(t, e.selection.main.head)), t;
|
|
13447
13395
|
},
|
|
13448
13396
|
provide: (t) => L.decorations.from(t),
|
|
@@ -14395,25 +14343,24 @@ function NX(t, e, i = e.selection.ranges) {
|
|
|
14395
14343
|
}
|
|
14396
14344
|
function BZ(t, e, i = e.selection.ranges) {
|
|
14397
14345
|
let O = [], n = -1;
|
|
14398
|
-
e:
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
d < u.text.length && d < l && (l = d), O.push({ line: u, comment: $, token: s, indent: d, empty: h, single: !1 });
|
|
14409
|
-
}
|
|
14410
|
-
c = u.to + 1;
|
|
14346
|
+
e: for (let { from: r, to: a } of i) {
|
|
14347
|
+
let o = O.length, l = 1e9, s;
|
|
14348
|
+
for (let c = r; c <= a; ) {
|
|
14349
|
+
let u = e.doc.lineAt(c);
|
|
14350
|
+
if (s == null && (s = G$(e, u.from).line, !s))
|
|
14351
|
+
continue e;
|
|
14352
|
+
if (u.from > n && (r == a || a > u.from)) {
|
|
14353
|
+
n = u.from;
|
|
14354
|
+
let d = /^\s*/.exec(u.text)[0].length, h = d == u.length, $ = u.text.slice(d, d + s.length) == s ? d : -1;
|
|
14355
|
+
d < u.text.length && d < l && (l = d), O.push({ line: u, comment: $, token: s, indent: d, empty: h, single: !1 });
|
|
14411
14356
|
}
|
|
14412
|
-
|
|
14413
|
-
for (let c = o; c < O.length; c++)
|
|
14414
|
-
O[c].indent < O[c].line.text.length && (O[c].indent = l);
|
|
14415
|
-
O.length == o + 1 && (O[o].single = !0);
|
|
14357
|
+
c = u.to + 1;
|
|
14416
14358
|
}
|
|
14359
|
+
if (l < 1e9)
|
|
14360
|
+
for (let c = o; c < O.length; c++)
|
|
14361
|
+
O[c].indent < O[c].line.text.length && (O[c].indent = l);
|
|
14362
|
+
O.length == o + 1 && (O[o].single = !0);
|
|
14363
|
+
}
|
|
14417
14364
|
if (t != 2 && O.some((r) => r.comment < 0 && (!r.empty || r.single))) {
|
|
14418
14365
|
let r = [];
|
|
14419
14366
|
for (let { line: o, token: l, indent: s, empty: c, single: u } of O)
|
|
@@ -15265,8 +15212,7 @@ const Oz = (t) => {
|
|
|
15265
15212
|
if (s && u) {
|
|
15266
15213
|
let m = h / 100;
|
|
15267
15214
|
l && (m = m * (l == "-" ? -1 : 1) + o.number / e.doc.lines), h = Math.round(e.doc.lines * m);
|
|
15268
|
-
} else
|
|
15269
|
-
s && l && (h = h * (l == "-" ? -1 : 1) + o.number);
|
|
15215
|
+
} else s && l && (h = h * (l == "-" ? -1 : 1) + o.number);
|
|
15270
15216
|
let $ = e.doc.line(Math.max(1, Math.min(e.doc.lines, h))), p = V.cursor($.from + Math.max(0, Math.min(d, $.length)));
|
|
15271
15217
|
t.dispatch({
|
|
15272
15218
|
effects: [O, L.scrollIntoView(p.from, { y: "center" })],
|
|
@@ -15594,7 +15540,7 @@ const Pz = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch" }), bz = /* @__PURE
|
|
|
15594
15540
|
let { view: i } = this, O = new gO();
|
|
15595
15541
|
for (let n = 0, r = i.visibleRanges, a = r.length; n < a; n++) {
|
|
15596
15542
|
let { from: o, to: l } = r[n];
|
|
15597
|
-
for (; n < a - 1 && l > r[n + 1].from -
|
|
15543
|
+
for (; n < a - 1 && l > r[n + 1].from - 500; )
|
|
15598
15544
|
l = r[++n].to;
|
|
15599
15545
|
t.highlight(i.state, o, l, (s, c) => {
|
|
15600
15546
|
let u = i.state.selection.ranges.some((d) => d.from == s && d.to == c);
|
|
@@ -16047,11 +15993,10 @@ class Zz {
|
|
|
16047
15993
|
let { chars: i, folded: O, any: n, precise: r, byWord: a } = this;
|
|
16048
15994
|
if (i.length == 1) {
|
|
16049
15995
|
let y = zt(e, 0), w = Gi(y), Y = w == e.length ? 0 : -100;
|
|
16050
|
-
if (y != i[0])
|
|
16051
|
-
|
|
16052
|
-
|
|
16053
|
-
|
|
16054
|
-
return null;
|
|
15996
|
+
if (y != i[0]) if (y == O[0])
|
|
15997
|
+
Y += -200;
|
|
15998
|
+
else
|
|
15999
|
+
return null;
|
|
16055
16000
|
return this.ret(Y, [0, w]);
|
|
16056
16001
|
}
|
|
16057
16002
|
let o = e.indexOf(this.pattern);
|
|
@@ -16073,7 +16018,7 @@ class Zz {
|
|
|
16073
16018
|
let k, b = X < 255 ? X >= 48 && X <= 57 || X >= 97 && X <= 122 ? 2 : X >= 65 && X <= 90 ? 1 : 0 : (k = f$(X)) != k.toLowerCase() ? 1 : k != k.toUpperCase() ? 2 : 0;
|
|
16074
16019
|
(!y || b == 1 && m || Y == 0 && b != 0) && (i[u] == X || O[u] == X && (d = !0) ? a[u++] = y : a.length && (S = !1)), Y = b, y += Gi(X);
|
|
16075
16020
|
}
|
|
16076
|
-
return u == l && a[0] == 0 && S ? this.result(-100 + (d ? -200 : 0), a, e) : h == l && $ == 0 ? this.ret(-200 - e.length + (p == e.length ? 0 : -100), [0, p]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : h == l ? this.ret(-
|
|
16021
|
+
return u == l && a[0] == 0 && S ? this.result(-100 + (d ? -200 : 0), a, e) : h == l && $ == 0 ? this.ret(-200 - e.length + (p == e.length ? 0 : -100), [0, p]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : h == l ? this.ret(-900 - e.length, [$, p]) : u == l ? this.result(-100 + (d ? -200 : 0) + -700 + (S ? 0 : -1100), a, e) : i.length == 2 ? null : this.result((n[0] ? -700 : 0) + -200 + -1100, n, e);
|
|
16077
16022
|
}
|
|
16078
16023
|
result(e, i, O) {
|
|
16079
16024
|
let n = [], r = 0;
|
|
@@ -17355,8 +17300,7 @@ const Iw = /* @__PURE__ */ le.define(), iQ = /* @__PURE__ */ le.define(), Dw = /
|
|
|
17355
17300
|
if (i.is(Iw)) {
|
|
17356
17301
|
let O = e.state.facet(ao).autoPanel ? i.value.length ? oo.open : null : t.panel;
|
|
17357
17302
|
t = $n.init(i.value, O, e.state);
|
|
17358
|
-
} else
|
|
17359
|
-
i.is(iQ) ? t = new $n(t.diagnostics, i.value ? oo.open : null, t.selected) : i.is(Dw) && (t = new $n(t.diagnostics, t.panel, i.value));
|
|
17303
|
+
} else i.is(iQ) ? t = new $n(t.diagnostics, i.value ? oo.open : null, t.selected) : i.is(Dw) && (t = new $n(t.diagnostics, t.panel, i.value));
|
|
17360
17304
|
return t;
|
|
17361
17305
|
},
|
|
17362
17306
|
provide: (t) => [
|
|
@@ -17427,17 +17371,16 @@ function ig(t, e) {
|
|
|
17427
17371
|
function Lw(t) {
|
|
17428
17372
|
let e = [];
|
|
17429
17373
|
if (t)
|
|
17430
|
-
e:
|
|
17431
|
-
for (let
|
|
17432
|
-
|
|
17433
|
-
|
|
17434
|
-
|
|
17435
|
-
|
|
17436
|
-
continue e;
|
|
17437
|
-
}
|
|
17374
|
+
e: for (let { name: i } of t) {
|
|
17375
|
+
for (let O = 0; O < i.length; O++) {
|
|
17376
|
+
let n = i[O];
|
|
17377
|
+
if (/[a-zA-Z]/.test(n) && !e.some((r) => r.toLowerCase() == n.toLowerCase())) {
|
|
17378
|
+
e.push(n);
|
|
17379
|
+
continue e;
|
|
17438
17380
|
}
|
|
17439
|
-
e.push("");
|
|
17440
17381
|
}
|
|
17382
|
+
e.push("");
|
|
17383
|
+
}
|
|
17441
17384
|
return e;
|
|
17442
17385
|
}
|
|
17443
17386
|
function Nw(t, e, i) {
|
|
@@ -18248,9 +18191,7 @@ class Es {
|
|
|
18248
18191
|
shift(e, i, O, n) {
|
|
18249
18192
|
if (e & 131072)
|
|
18250
18193
|
this.pushState(e & 65535, this.pos);
|
|
18251
|
-
else if (e & 262144)
|
|
18252
|
-
this.pos = n, this.shiftContext(i, O), i <= this.p.parser.maxNode && this.buffer.push(i, O, n, 4);
|
|
18253
|
-
else {
|
|
18194
|
+
else if ((e & 262144) == 0) {
|
|
18254
18195
|
let r = e, { parser: a } = this.p;
|
|
18255
18196
|
this.pos = n;
|
|
18256
18197
|
let o = a.stateFlag(
|
|
@@ -18259,7 +18200,8 @@ class Es {
|
|
|
18259
18200
|
/* StateFlag.Skipped */
|
|
18260
18201
|
);
|
|
18261
18202
|
!o && (n > O || i <= a.maxNode) && (this.reducePos = n), this.pushState(r, o ? O : Math.min(O, this.reducePos)), this.shiftContext(i, O), i <= a.maxNode && this.buffer.push(i, O, n, 4);
|
|
18262
|
-
}
|
|
18203
|
+
} else
|
|
18204
|
+
this.pos = n, this.shiftContext(i, O), i <= this.p.parser.maxNode && this.buffer.push(i, O, n, 4);
|
|
18263
18205
|
}
|
|
18264
18206
|
// Apply an action
|
|
18265
18207
|
/**
|
|
@@ -18322,7 +18264,7 @@ class Es {
|
|
|
18322
18264
|
) || this.p.parser.hasAction(i.state, e);
|
|
18323
18265
|
if (O == 0)
|
|
18324
18266
|
return !1;
|
|
18325
|
-
if (
|
|
18267
|
+
if ((O & 65536) == 0)
|
|
18326
18268
|
return !0;
|
|
18327
18269
|
i.reduce(O);
|
|
18328
18270
|
}
|
|
@@ -18368,7 +18310,7 @@ class Es {
|
|
|
18368
18310
|
5
|
|
18369
18311
|
/* ParseState.ForcedReduce */
|
|
18370
18312
|
);
|
|
18371
|
-
if (
|
|
18313
|
+
if ((i & 65536) == 0)
|
|
18372
18314
|
return !1;
|
|
18373
18315
|
if (!e.validAction(this.state, i)) {
|
|
18374
18316
|
let O = i >> 19, n = i & 65535, r = this.stack.length - O * 3;
|
|
@@ -18391,19 +18333,18 @@ class Es {
|
|
|
18391
18333
|
let { parser: e } = this.p, i = [], O = (n, r) => {
|
|
18392
18334
|
if (!i.includes(n))
|
|
18393
18335
|
return i.push(n), e.allActions(n, (a) => {
|
|
18394
|
-
if (!(a & 393216))
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
return o << 19 | 65536 | l;
|
|
18401
|
-
}
|
|
18402
|
-
} else {
|
|
18403
|
-
let o = O(a, r + 1);
|
|
18404
|
-
if (o != null)
|
|
18405
|
-
return o;
|
|
18336
|
+
if (!(a & 393216)) if (a & 65536) {
|
|
18337
|
+
let o = (a >> 19) - r;
|
|
18338
|
+
if (o > 1) {
|
|
18339
|
+
let l = a & 65535, s = this.stack.length - o * 3;
|
|
18340
|
+
if (s >= 0 && e.getGoto(this.stack[s], l, !1) >= 0)
|
|
18341
|
+
return o << 19 | 65536 | l;
|
|
18406
18342
|
}
|
|
18343
|
+
} else {
|
|
18344
|
+
let o = O(a, r + 1);
|
|
18345
|
+
if (o != null)
|
|
18346
|
+
return o;
|
|
18347
|
+
}
|
|
18407
18348
|
});
|
|
18408
18349
|
};
|
|
18409
18350
|
return O(this.state, 0);
|
|
@@ -18777,35 +18718,34 @@ class Oe {
|
|
|
18777
18718
|
}
|
|
18778
18719
|
function Fw(t, e, i, O, n, r) {
|
|
18779
18720
|
let a = 0, o = 1 << O, { dialect: l } = i.p.parser;
|
|
18780
|
-
e:
|
|
18781
|
-
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
break;
|
|
18789
|
-
}
|
|
18721
|
+
e: for (; (o & t[a]) != 0; ) {
|
|
18722
|
+
let s = t[a + 1];
|
|
18723
|
+
for (let h = a + 3; h < s; h += 2)
|
|
18724
|
+
if ((t[h + 1] & o) > 0) {
|
|
18725
|
+
let $ = t[h];
|
|
18726
|
+
if (l.allows($) && (e.token.value == -1 || e.token.value == $ || oU($, e.token.value, n, r))) {
|
|
18727
|
+
e.acceptToken($);
|
|
18728
|
+
break;
|
|
18790
18729
|
}
|
|
18791
|
-
let c = e.next, u = 0, d = t[a + 2];
|
|
18792
|
-
if (e.next < 0 && d > u && t[s + d * 3 - 3] == 65535) {
|
|
18793
|
-
a = t[s + d * 3 - 1];
|
|
18794
|
-
continue e;
|
|
18795
18730
|
}
|
|
18796
|
-
|
|
18797
|
-
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
|
|
18803
|
-
|
|
18804
|
-
|
|
18805
|
-
|
|
18731
|
+
let c = e.next, u = 0, d = t[a + 2];
|
|
18732
|
+
if (e.next < 0 && d > u && t[s + d * 3 - 3] == 65535) {
|
|
18733
|
+
a = t[s + d * 3 - 1];
|
|
18734
|
+
continue e;
|
|
18735
|
+
}
|
|
18736
|
+
for (; u < d; ) {
|
|
18737
|
+
let h = u + d >> 1, $ = s + h + (h << 1), p = t[$], m = t[$ + 1] || 65536;
|
|
18738
|
+
if (c < p)
|
|
18739
|
+
d = h;
|
|
18740
|
+
else if (c >= m)
|
|
18741
|
+
u = h + 1;
|
|
18742
|
+
else {
|
|
18743
|
+
a = t[$ + 2], e.advance();
|
|
18744
|
+
continue e;
|
|
18806
18745
|
}
|
|
18807
|
-
break;
|
|
18808
18746
|
}
|
|
18747
|
+
break;
|
|
18748
|
+
}
|
|
18809
18749
|
}
|
|
18810
18750
|
function hg(t, e, i) {
|
|
18811
18751
|
for (let O = e, n; (n = t[O]) != 65535; O++)
|
|
@@ -18901,7 +18841,7 @@ class sU {
|
|
|
18901
18841
|
/* ParseState.TokenizerMask */
|
|
18902
18842
|
), o = e.curContext ? e.curContext.hash : 0, l = 0;
|
|
18903
18843
|
for (let s = 0; s < r.length; s++) {
|
|
18904
|
-
if (
|
|
18844
|
+
if ((1 << s & a) == 0)
|
|
18905
18845
|
continue;
|
|
18906
18846
|
let c = r[s], u = this.tokens[s];
|
|
18907
18847
|
if (!(O && !c.fallback) && ((c.contextual || u.start != e.pos || u.mask != a || u.context != o) && (this.updateCachedToken(u, c, e), u.mask = a, u.context = o), u.lookAhead > u.end + 25 && (l = Math.max(u.lookAhead, l)), u.value != 0)) {
|
|
@@ -18928,7 +18868,7 @@ class sU {
|
|
|
18928
18868
|
if (r.specialized[a] == e.value) {
|
|
18929
18869
|
let o = r.specializers[a](this.stream.read(e.start, e.end), O);
|
|
18930
18870
|
if (o >= 0 && O.p.parser.dialect.allows(o >> 1)) {
|
|
18931
|
-
o & 1 ? e.
|
|
18871
|
+
(o & 1) == 0 ? e.value = o >> 1 : e.extended = o >> 1;
|
|
18932
18872
|
break;
|
|
18933
18873
|
}
|
|
18934
18874
|
}
|
|
@@ -19021,20 +18961,19 @@ class cU {
|
|
|
19021
18961
|
O.pop();
|
|
19022
18962
|
O.some((o) => o.reducePos > i) && this.recovering--;
|
|
19023
18963
|
} else if (O.length > 1) {
|
|
19024
|
-
e:
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
if (o.
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
}
|
|
19036
|
-
}
|
|
18964
|
+
e: for (let a = 0; a < O.length - 1; a++) {
|
|
18965
|
+
let o = O[a];
|
|
18966
|
+
for (let l = a + 1; l < O.length; l++) {
|
|
18967
|
+
let s = O[l];
|
|
18968
|
+
if (o.sameState(s) || o.buffer.length > 500 && s.buffer.length > 500)
|
|
18969
|
+
if ((o.score - s.score || o.buffer.length - s.buffer.length) > 0)
|
|
18970
|
+
O.splice(l--, 1);
|
|
18971
|
+
else {
|
|
18972
|
+
O.splice(a--, 1);
|
|
18973
|
+
continue e;
|
|
18974
|
+
}
|
|
19037
18975
|
}
|
|
18976
|
+
}
|
|
19038
18977
|
O.length > 12 && (O.sort((a, o) => o.score - a.score), O.splice(
|
|
19039
18978
|
12,
|
|
19040
18979
|
O.length - 12
|
|
@@ -19090,10 +19029,10 @@ class cU {
|
|
|
19090
19029
|
let l = this.tokens.getActions(e);
|
|
19091
19030
|
for (let s = 0; s < l.length; ) {
|
|
19092
19031
|
let c = l[s++], u = l[s++], d = l[s++], h = s == l.length || !O, $ = h ? e : e.split(), p = this.tokens.mainToken;
|
|
19093
|
-
if ($.apply(c, u, p ? p.start : $.pos, d), At && console.log(a + this.stackID($) + ` (via ${c & 65536 ? `reduce of ${r.getName(
|
|
19032
|
+
if ($.apply(c, u, p ? p.start : $.pos, d), At && console.log(a + this.stackID($) + ` (via ${(c & 65536) == 0 ? "shift" : `reduce of ${r.getName(
|
|
19094
19033
|
c & 65535
|
|
19095
19034
|
/* Action.ValueMask */
|
|
19096
|
-
)}`
|
|
19035
|
+
)}`} for ${r.getName(u)} @ ${n}${$ == e ? "" : ", split"})`), h)
|
|
19097
19036
|
return !0;
|
|
19098
19037
|
$.pos > n ? i.push($) : O.push($);
|
|
19099
19038
|
}
|
|
@@ -19327,7 +19266,7 @@ class We extends mc {
|
|
|
19327
19266
|
O = uO(this.data, O + 2);
|
|
19328
19267
|
else
|
|
19329
19268
|
break;
|
|
19330
|
-
if (
|
|
19269
|
+
if ((this.data[O + 2] & 1) == 0) {
|
|
19331
19270
|
let n = this.data[O + 1];
|
|
19332
19271
|
i.some((r, a) => a & 1 && r == n) || i.push(this.data[O], n);
|
|
19333
19272
|
}
|
|
@@ -19442,13 +19381,11 @@ function pg(t) {
|
|
|
19442
19381
|
return t.get;
|
|
19443
19382
|
}
|
|
19444
19383
|
const mg = 1, dU = 2, hU = 3, $U = 82, QU = 76, pU = 117, mU = 85, gU = 97, SU = 122, PU = 65, bU = 90, yU = 95, $h = 48, gg = 34, TU = 40, Sg = 41, XU = 32, Pg = 62, wU = new Oe((t) => {
|
|
19445
|
-
if (t.next == QU || t.next == mU ? t.advance() : t.next == pU && (t.advance(), t.next == $h + 8 && t.advance()), t.next != $U || (t.advance(), t.next != gg))
|
|
19446
|
-
return;
|
|
19384
|
+
if (t.next == QU || t.next == mU ? t.advance() : t.next == pU && (t.advance(), t.next == $h + 8 && t.advance()), t.next != $U || (t.advance(), t.next != gg)) return;
|
|
19447
19385
|
t.advance();
|
|
19448
19386
|
let e = "";
|
|
19449
19387
|
for (; t.next != TU; ) {
|
|
19450
|
-
if (t.next == XU || t.next <= 13 || t.next == Sg)
|
|
19451
|
-
return;
|
|
19388
|
+
if (t.next == XU || t.next <= 13 || t.next == Sg) return;
|
|
19452
19389
|
e += String.fromCharCode(t.next), t.advance();
|
|
19453
19390
|
}
|
|
19454
19391
|
for (t.advance(); ; ) {
|
|
@@ -19469,13 +19406,10 @@ const mg = 1, dU = 2, hU = 3, $U = 82, QU = 76, pU = 117, mU = 85, gU = 97, SU =
|
|
|
19469
19406
|
else {
|
|
19470
19407
|
let e = !1, i = 0;
|
|
19471
19408
|
for (; ; i++) {
|
|
19472
|
-
if (t.next >= PU && t.next <= bU)
|
|
19473
|
-
e = !0;
|
|
19409
|
+
if (t.next >= PU && t.next <= bU) e = !0;
|
|
19474
19410
|
else {
|
|
19475
|
-
if (t.next >= gU && t.next <= SU)
|
|
19476
|
-
|
|
19477
|
-
if (t.next != yU && !(t.next >= $h && t.next <= $h + 9))
|
|
19478
|
-
break;
|
|
19411
|
+
if (t.next >= gU && t.next <= SU) return;
|
|
19412
|
+
if (t.next != yU && !(t.next >= $h && t.next <= $h + 9)) break;
|
|
19479
19413
|
}
|
|
19480
19414
|
t.advance();
|
|
19481
19415
|
}
|
|
@@ -19625,8 +19559,7 @@ const ek = (t, e, i) => (O, n) => {
|
|
|
19625
19559
|
O.advance();
|
|
19626
19560
|
while (yg(O.next));
|
|
19627
19561
|
O.next == 32 && O.advance();
|
|
19628
|
-
} else
|
|
19629
|
-
O.next > -1 && O.advance();
|
|
19562
|
+
} else O.next > -1 && O.advance();
|
|
19630
19563
|
r = !0;
|
|
19631
19564
|
} else {
|
|
19632
19565
|
r && O.acceptToken(
|
|
@@ -20704,15 +20637,14 @@ const UW = new KO({
|
|
|
20704
20637
|
]);
|
|
20705
20638
|
function Dn(t, e) {
|
|
20706
20639
|
return (i, O) => {
|
|
20707
|
-
e:
|
|
20708
|
-
for (
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
r--, n = a.nextSibling, a = a.parent;
|
|
20713
|
-
}
|
|
20714
|
-
e && n.name == e || n.name == "SpecList" ? (r++, a = n, n = n.firstChild) : (n.name == "DefName" && O(n, t), n = n.nextSibling);
|
|
20640
|
+
e: for (let n = i.node.firstChild, r = 0, a = null; ; ) {
|
|
20641
|
+
for (; !n; ) {
|
|
20642
|
+
if (!r)
|
|
20643
|
+
break e;
|
|
20644
|
+
r--, n = a.nextSibling, a = a.parent;
|
|
20715
20645
|
}
|
|
20646
|
+
e && n.name == e || n.name == "SpecList" ? (r++, a = n, n = n.firstChild) : (n.name == "DefName" && O(n, t), n = n.nextSibling);
|
|
20647
|
+
}
|
|
20716
20648
|
return !0;
|
|
20717
20649
|
};
|
|
20718
20650
|
}
|
|
@@ -20896,8 +20828,7 @@ function QE(t) {
|
|
|
20896
20828
|
let Yg = null, Zg = null, zg = 0;
|
|
20897
20829
|
function ph(t, e) {
|
|
20898
20830
|
let i = t.pos + e;
|
|
20899
|
-
if (zg == i && Zg == t)
|
|
20900
|
-
return Yg;
|
|
20831
|
+
if (zg == i && Zg == t) return Yg;
|
|
20901
20832
|
let O = t.peek(e), n = "";
|
|
20902
20833
|
for (; QE(O); )
|
|
20903
20834
|
n += String.fromCharCode(O), O = t.peek(++e);
|
|
@@ -20929,31 +20860,20 @@ const SE = [aQ, lk, rk, ak, ok], PE = new KO({
|
|
|
20929
20860
|
let i = t.next == oQ;
|
|
20930
20861
|
i && t.advance();
|
|
20931
20862
|
let O = ph(t, 0);
|
|
20932
|
-
if (O === void 0)
|
|
20933
|
-
|
|
20934
|
-
if (!O)
|
|
20935
|
-
return t.acceptToken(i ? nE : OE);
|
|
20863
|
+
if (O === void 0) return;
|
|
20864
|
+
if (!O) return t.acceptToken(i ? nE : OE);
|
|
20936
20865
|
let n = e.context ? e.context.name : null;
|
|
20937
20866
|
if (i) {
|
|
20938
|
-
if (O == n)
|
|
20939
|
-
|
|
20940
|
-
if (
|
|
20941
|
-
|
|
20942
|
-
if (e.dialectEnabled(fE))
|
|
20943
|
-
return t.acceptToken(tE);
|
|
20944
|
-
for (let r = e.context; r; r = r.parent)
|
|
20945
|
-
if (r.name == O)
|
|
20946
|
-
return;
|
|
20867
|
+
if (O == n) return t.acceptToken(eE);
|
|
20868
|
+
if (n && $E[n]) return t.acceptToken(Nu, -2);
|
|
20869
|
+
if (e.dialectEnabled(fE)) return t.acceptToken(tE);
|
|
20870
|
+
for (let r = e.context; r; r = r.parent) if (r.name == O) return;
|
|
20947
20871
|
t.acceptToken(iE);
|
|
20948
20872
|
} else {
|
|
20949
|
-
if (O == "script")
|
|
20950
|
-
|
|
20951
|
-
if (O == "
|
|
20952
|
-
|
|
20953
|
-
if (O == "textarea")
|
|
20954
|
-
return t.acceptToken(ok);
|
|
20955
|
-
if (hE.hasOwnProperty(O))
|
|
20956
|
-
return t.acceptToken(lk);
|
|
20873
|
+
if (O == "script") return t.acceptToken(rk);
|
|
20874
|
+
if (O == "style") return t.acceptToken(ak);
|
|
20875
|
+
if (O == "textarea") return t.acceptToken(ok);
|
|
20876
|
+
if (hE.hasOwnProperty(O)) return t.acceptToken(lk);
|
|
20957
20877
|
n && qg[n] && qg[n][O] ? t.acceptToken(Nu, -1) : t.acceptToken(aQ);
|
|
20958
20878
|
}
|
|
20959
20879
|
}, { contextual: !0 }), yE = new Oe((t) => {
|
|
@@ -20974,16 +20894,14 @@ const SE = [aQ, lk, rk, ak, ok], PE = new KO({
|
|
|
20974
20894
|
});
|
|
20975
20895
|
function TE(t) {
|
|
20976
20896
|
for (; t; t = t.parent)
|
|
20977
|
-
if (t.name == "svg" || t.name == "math")
|
|
20978
|
-
return !0;
|
|
20897
|
+
if (t.name == "svg" || t.name == "math") return !0;
|
|
20979
20898
|
return !1;
|
|
20980
20899
|
}
|
|
20981
20900
|
const XE = new Oe((t, e) => {
|
|
20982
20901
|
if (t.next == oQ && t.peek(1) == Gs) {
|
|
20983
20902
|
let i = e.dialectEnabled(dE) || TE(e.context);
|
|
20984
20903
|
t.acceptToken(i ? JW : _g, 2);
|
|
20985
|
-
} else
|
|
20986
|
-
t.next == Gs && t.acceptToken(_g, 1);
|
|
20904
|
+
} else t.next == Gs && t.acceptToken(_g, 1);
|
|
20987
20905
|
});
|
|
20988
20906
|
function lQ(t, e, i) {
|
|
20989
20907
|
let O = 2 + t.length;
|
|
@@ -21066,16 +20984,12 @@ function hk(t = [], e = []) {
|
|
|
21066
20984
|
for (let o of t)
|
|
21067
20985
|
(o.tag == "script" ? i : o.tag == "style" ? O : o.tag == "textarea" ? n : r).push(o);
|
|
21068
20986
|
let a = e.length ? /* @__PURE__ */ Object.create(null) : null;
|
|
21069
|
-
for (let o of e)
|
|
21070
|
-
(a[o.name] || (a[o.name] = [])).push(o);
|
|
20987
|
+
for (let o of e) (a[o.name] || (a[o.name] = [])).push(o);
|
|
21071
20988
|
return kO((o, l) => {
|
|
21072
20989
|
let s = o.type.id;
|
|
21073
|
-
if (s == oE)
|
|
21074
|
-
|
|
21075
|
-
if (s ==
|
|
21076
|
-
return Mu(o, l, O);
|
|
21077
|
-
if (s == sE)
|
|
21078
|
-
return Mu(o, l, n);
|
|
20990
|
+
if (s == oE) return Mu(o, l, i);
|
|
20991
|
+
if (s == lE) return Mu(o, l, O);
|
|
20992
|
+
if (s == sE) return Mu(o, l, n);
|
|
21079
20993
|
if (s == sk && r.length) {
|
|
21080
20994
|
let c = o.node, u = c.firstChild, d = u && Ug(u, l), h;
|
|
21081
20995
|
if (d) {
|
|
@@ -21091,18 +21005,15 @@ function hk(t = [], e = []) {
|
|
|
21091
21005
|
let c = o.node, u;
|
|
21092
21006
|
if (u = c.firstChild) {
|
|
21093
21007
|
let d = a[l.read(u.from, u.to)];
|
|
21094
|
-
if (d)
|
|
21095
|
-
|
|
21096
|
-
|
|
21097
|
-
|
|
21098
|
-
let
|
|
21099
|
-
if (
|
|
21100
|
-
|
|
21101
|
-
|
|
21102
|
-
|
|
21103
|
-
} else if ($.type.id == uk)
|
|
21104
|
-
return { parser: h.parser, overlay: [{ from: $.from, to: $.to }] };
|
|
21105
|
-
}
|
|
21008
|
+
if (d) for (let h of d) {
|
|
21009
|
+
if (h.tagName && h.tagName != Ug(c.parent, l)) continue;
|
|
21010
|
+
let $ = c.lastChild;
|
|
21011
|
+
if ($.type.id == Qh) {
|
|
21012
|
+
let p = $.from + 1, m = $.lastChild, S = $.to - (m && m.isError ? 0 : 1);
|
|
21013
|
+
if (S > p) return { parser: h.parser, overlay: [{ from: p, to: S }], bracketed: !0 };
|
|
21014
|
+
} else if ($.type.id == uk)
|
|
21015
|
+
return { parser: h.parser, overlay: [{ from: $.from, to: $.to }] };
|
|
21016
|
+
}
|
|
21106
21017
|
}
|
|
21107
21018
|
}
|
|
21108
21019
|
return null;
|
|
@@ -21156,15 +21067,13 @@ const RE = 316, qE = 317, Wg = 1, YE = 2, ZE = 3, zE = 4, VE = 318, UE = 320, WE
|
|
|
21156
21067
|
let O = !e.context && e.canShift(Wg);
|
|
21157
21068
|
t.acceptToken(O ? Wg : YE);
|
|
21158
21069
|
}
|
|
21159
|
-
} else
|
|
21160
|
-
i == ME && t.peek(1) == BE && (t.advance(), t.advance(), (t.next < 48 || t.next > 57) && t.acceptToken(ZE));
|
|
21070
|
+
} else i == ME && t.peek(1) == BE && (t.advance(), t.advance(), (t.next < 48 || t.next > 57) && t.acceptToken(ZE));
|
|
21161
21071
|
}, { contextual: !0 });
|
|
21162
21072
|
function Bu(t, e) {
|
|
21163
21073
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t == 95 || t >= 192 || !e && t >= 48 && t <= 57;
|
|
21164
21074
|
}
|
|
21165
21075
|
const i2 = new Oe((t, e) => {
|
|
21166
|
-
if (t.next != LE || !e.dialectEnabled(GE) || (t.advance(), t.next == gh))
|
|
21167
|
-
return;
|
|
21076
|
+
if (t.next != LE || !e.dialectEnabled(GE) || (t.advance(), t.next == gh)) return;
|
|
21168
21077
|
let i = 0;
|
|
21169
21078
|
for (; mh.indexOf(t.next) > -1; )
|
|
21170
21079
|
t.advance(), i++;
|
|
@@ -21173,16 +21082,13 @@ const i2 = new Oe((t, e) => {
|
|
|
21173
21082
|
t.advance(), i++;
|
|
21174
21083
|
for (; mh.indexOf(t.next) > -1; )
|
|
21175
21084
|
t.advance(), i++;
|
|
21176
|
-
if (t.next == NE)
|
|
21177
|
-
return;
|
|
21085
|
+
if (t.next == NE) return;
|
|
21178
21086
|
for (let O = 0; ; O++) {
|
|
21179
21087
|
if (O == 7) {
|
|
21180
|
-
if (!Bu(t.next, !0))
|
|
21181
|
-
return;
|
|
21088
|
+
if (!Bu(t.next, !0)) return;
|
|
21182
21089
|
break;
|
|
21183
21090
|
}
|
|
21184
|
-
if (t.next != "extends".charCodeAt(O))
|
|
21185
|
-
break;
|
|
21091
|
+
if (t.next != "extends".charCodeAt(O)) break;
|
|
21186
21092
|
t.advance(), i++;
|
|
21187
21093
|
}
|
|
21188
21094
|
}
|
|
@@ -23457,41 +23363,39 @@ class jC {
|
|
|
23457
23363
|
}
|
|
23458
23364
|
if (this.fragments && this.reuseFragment(e.basePos))
|
|
23459
23365
|
return null;
|
|
23460
|
-
e:
|
|
23461
|
-
for (
|
|
23462
|
-
|
|
23463
|
-
|
|
23464
|
-
|
|
23465
|
-
if (n
|
|
23466
|
-
|
|
23467
|
-
|
|
23468
|
-
|
|
23469
|
-
continue e;
|
|
23470
|
-
}
|
|
23366
|
+
e: for (; ; ) {
|
|
23367
|
+
for (let O of this.parser.blockParsers)
|
|
23368
|
+
if (O) {
|
|
23369
|
+
let n = O(this, e);
|
|
23370
|
+
if (n != !1) {
|
|
23371
|
+
if (n == !0)
|
|
23372
|
+
return null;
|
|
23373
|
+
e.forward();
|
|
23374
|
+
continue e;
|
|
23471
23375
|
}
|
|
23472
|
-
|
|
23473
|
-
|
|
23376
|
+
}
|
|
23377
|
+
break;
|
|
23378
|
+
}
|
|
23474
23379
|
let i = new VC(this.lineStart + e.pos, e.text.slice(e.pos));
|
|
23475
23380
|
for (let O of this.parser.leafBlockParsers)
|
|
23476
23381
|
if (O) {
|
|
23477
23382
|
let n = O(this, i);
|
|
23478
23383
|
n && i.parsers.push(n);
|
|
23479
23384
|
}
|
|
23480
|
-
e:
|
|
23481
|
-
|
|
23482
|
-
|
|
23483
|
-
|
|
23484
|
-
|
|
23485
|
-
break e;
|
|
23486
|
-
}
|
|
23487
|
-
for (let O of i.parsers)
|
|
23488
|
-
if (O.nextLine(this, e, i))
|
|
23489
|
-
return null;
|
|
23490
|
-
i.content += `
|
|
23491
|
-
` + e.scrub();
|
|
23492
|
-
for (let O of e.markers)
|
|
23493
|
-
i.marks.push(O);
|
|
23385
|
+
e: for (; this.nextLine() && e.pos != e.text.length; ) {
|
|
23386
|
+
if (e.indent < e.baseIndent + 4) {
|
|
23387
|
+
for (let O of this.parser.endLeafBlock)
|
|
23388
|
+
if (O(this, e, i))
|
|
23389
|
+
break e;
|
|
23494
23390
|
}
|
|
23391
|
+
for (let O of i.parsers)
|
|
23392
|
+
if (O.nextLine(this, e, i))
|
|
23393
|
+
return null;
|
|
23394
|
+
i.content += `
|
|
23395
|
+
` + e.scrub();
|
|
23396
|
+
for (let O of e.markers)
|
|
23397
|
+
i.marks.push(O);
|
|
23398
|
+
}
|
|
23495
23399
|
return this.finishLeaf(i), null;
|
|
23496
23400
|
}
|
|
23497
23401
|
stopAt(e) {
|
|
@@ -23762,19 +23666,18 @@ class vc extends mc {
|
|
|
23762
23666
|
*/
|
|
23763
23667
|
parseInline(e, i) {
|
|
23764
23668
|
let O = new hQ(this, e, i);
|
|
23765
|
-
e:
|
|
23766
|
-
|
|
23767
|
-
|
|
23768
|
-
|
|
23769
|
-
|
|
23770
|
-
|
|
23771
|
-
|
|
23772
|
-
|
|
23773
|
-
continue e;
|
|
23774
|
-
}
|
|
23669
|
+
e: for (let n = i; n < O.end; ) {
|
|
23670
|
+
let r = O.char(n);
|
|
23671
|
+
for (let a of this.inlineParsers)
|
|
23672
|
+
if (a) {
|
|
23673
|
+
let o = a(O, r, n);
|
|
23674
|
+
if (o >= 0) {
|
|
23675
|
+
n = o;
|
|
23676
|
+
continue e;
|
|
23775
23677
|
}
|
|
23776
|
-
|
|
23777
|
-
|
|
23678
|
+
}
|
|
23679
|
+
n++;
|
|
23680
|
+
}
|
|
23778
23681
|
return O.resolveMarkers(0);
|
|
23779
23682
|
}
|
|
23780
23683
|
}
|
|
@@ -24043,8 +23946,7 @@ function t1(t, e, i) {
|
|
|
24043
23946
|
if (!n)
|
|
24044
23947
|
break;
|
|
24045
23948
|
n--;
|
|
24046
|
-
} else
|
|
24047
|
-
o == 92 && (a = !0);
|
|
23949
|
+
} else o == 92 && (a = !0);
|
|
24048
23950
|
}
|
|
24049
23951
|
return r > e ? me(D.URL, e + i, r + i) : r == t.length ? null : !1;
|
|
24050
23952
|
}
|
|
@@ -24522,8 +24424,7 @@ const OG = {
|
|
|
24522
24424
|
let a = /([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(O, r));
|
|
24523
24425
|
r = O + a[0].length;
|
|
24524
24426
|
}
|
|
24525
|
-
} else
|
|
24526
|
-
n[3] ? r = uS(t.text, O) : (r = uS(t.text, O + n[0].length), r > -1 && n[0] == "xmpp:" && (sS.lastIndex = r, n = sS.exec(t.text), n && (r = n.index + n[0].length)));
|
|
24427
|
+
} else n[3] ? r = uS(t.text, O) : (r = uS(t.text, O + n[0].length), r > -1 && n[0] == "xmpp:" && (sS.lastIndex = r, n = sS.exec(t.text), n && (r = n.index + n[0].length)));
|
|
24527
24428
|
return r < 0 ? -1 : (t.addElement(t.elt("URL", i, r + t.offset)), r + t.offset);
|
|
24528
24429
|
}
|
|
24529
24430
|
}]
|
|
@@ -24984,39 +24885,30 @@ const Wj = {
|
|
|
24984
24885
|
if (t.next == 40) {
|
|
24985
24886
|
t.advance();
|
|
24986
24887
|
let e = 0;
|
|
24987
|
-
for (; pS(t.peek(e)); )
|
|
24988
|
-
e++;
|
|
24888
|
+
for (; pS(t.peek(e)); ) e++;
|
|
24989
24889
|
let i = "", O;
|
|
24990
24890
|
for (; d1(O = t.peek(e)); )
|
|
24991
24891
|
i += String.fromCharCode(O), e++;
|
|
24992
|
-
for (; pS(t.peek(e)); )
|
|
24993
|
-
e++;
|
|
24892
|
+
for (; pS(t.peek(e)); ) e++;
|
|
24994
24893
|
t.peek(e) == 41 && Wj[i.toLowerCase()] && t.acceptToken(TG);
|
|
24995
24894
|
} else if (t.next == 60 && t.peek(1) == 60 && t.peek(2) == 60) {
|
|
24996
|
-
for (let O = 0; O < 3; O++)
|
|
24997
|
-
|
|
24998
|
-
for (; t.next == 32 || t.next == 9; )
|
|
24999
|
-
t.advance();
|
|
24895
|
+
for (let O = 0; O < 3; O++) t.advance();
|
|
24896
|
+
for (; t.next == 32 || t.next == 9; ) t.advance();
|
|
25000
24897
|
let e = t.next == 39;
|
|
25001
|
-
if (e && t.advance(), !Va(t.next))
|
|
25002
|
-
return;
|
|
24898
|
+
if (e && t.advance(), !Va(t.next)) return;
|
|
25003
24899
|
let i = String.fromCharCode(t.next);
|
|
25004
24900
|
for (; t.advance(), !(!Va(t.next) && !(t.next >= 48 && t.next <= 55)); )
|
|
25005
24901
|
i += String.fromCharCode(t.next);
|
|
25006
24902
|
if (e) {
|
|
25007
|
-
if (t.next != 39)
|
|
25008
|
-
return;
|
|
24903
|
+
if (t.next != 39) return;
|
|
25009
24904
|
t.advance();
|
|
25010
24905
|
}
|
|
25011
|
-
if (t.next != 10 && t.next != 13)
|
|
25012
|
-
return;
|
|
24906
|
+
if (t.next != 10 && t.next != 13) return;
|
|
25013
24907
|
for (; ; ) {
|
|
25014
24908
|
let O = t.next == 10 || t.next == 13;
|
|
25015
|
-
if (t.advance(), t.next < 0)
|
|
25016
|
-
return;
|
|
24909
|
+
if (t.advance(), t.next < 0) return;
|
|
25017
24910
|
if (O) {
|
|
25018
|
-
for (; t.next == 32 || t.next == 9; )
|
|
25019
|
-
t.advance();
|
|
24911
|
+
for (; t.next == 32 || t.next == 9; ) t.advance();
|
|
25020
24912
|
let n = !0;
|
|
25021
24913
|
for (let r = 0; r < i.length; r++) {
|
|
25022
24914
|
if (t.next != i.charCodeAt(r)) {
|
|
@@ -25025,8 +24917,7 @@ const Wj = {
|
|
|
25025
24917
|
}
|
|
25026
24918
|
t.advance();
|
|
25027
24919
|
}
|
|
25028
|
-
if (n)
|
|
25029
|
-
return t.acceptToken(XG);
|
|
24920
|
+
if (n) return t.acceptToken(XG);
|
|
25030
24921
|
}
|
|
25031
24922
|
}
|
|
25032
24923
|
}
|
|
@@ -25041,8 +24932,7 @@ function jj(t) {
|
|
|
25041
24932
|
return 2;
|
|
25042
24933
|
if (e >= 48 && e <= 55) {
|
|
25043
24934
|
let i = 2, O;
|
|
25044
|
-
for (; i < 5 && (O = t.peek(i)) >= 48 && O <= 55; )
|
|
25045
|
-
i++;
|
|
24935
|
+
for (; i < 5 && (O = t.peek(i)) >= 48 && O <= 55; ) i++;
|
|
25046
24936
|
return i;
|
|
25047
24937
|
}
|
|
25048
24938
|
if (e == 120 && sf(t.peek(2)))
|
|
@@ -25050,10 +24940,8 @@ function jj(t) {
|
|
|
25050
24940
|
if (e == 117 && t.peek(2) == 123)
|
|
25051
24941
|
for (let i = 3; ; i++) {
|
|
25052
24942
|
let O = t.peek(i);
|
|
25053
|
-
if (O == 125)
|
|
25054
|
-
|
|
25055
|
-
if (!sf(O))
|
|
25056
|
-
break;
|
|
24943
|
+
if (O == 125) return i == 2 ? 0 : i + 1;
|
|
24944
|
+
if (!sf(O)) break;
|
|
25057
24945
|
}
|
|
25058
24946
|
return 0;
|
|
25059
24947
|
}
|
|
@@ -25063,8 +24951,7 @@ const Aj = new Oe((t, e) => {
|
|
|
25063
24951
|
if (t.next == 92) {
|
|
25064
24952
|
let O = jj(t);
|
|
25065
24953
|
if (O) {
|
|
25066
|
-
if (i)
|
|
25067
|
-
break;
|
|
24954
|
+
if (i) break;
|
|
25068
24955
|
return t.acceptToken(kG, O);
|
|
25069
24956
|
}
|
|
25070
24957
|
} else if (!i && (t.next == 91 || t.next == 45 && t.peek(1) == 62 && Va(t.peek(2)) || t.next == 63 && t.peek(1) == 45 && t.peek(2) == 62 && Va(t.peek(3))) && e.canShift(xG))
|
|
@@ -25177,13 +25064,12 @@ const Aj = new Oe((t, e) => {
|
|
|
25177
25064
|
});
|
|
25178
25065
|
function Ln(t = {}) {
|
|
25179
25066
|
let e = [], i;
|
|
25180
|
-
if (t.baseLanguage !== null)
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
}
|
|
25067
|
+
if (t.baseLanguage !== null) if (t.baseLanguage)
|
|
25068
|
+
i = t.baseLanguage;
|
|
25069
|
+
else {
|
|
25070
|
+
let O = hO({ matchClosingTags: !1 });
|
|
25071
|
+
e.push(O.support), i = O.language;
|
|
25072
|
+
}
|
|
25187
25073
|
return new Ue(Nj.configure({
|
|
25188
25074
|
wrap: i && kO((O) => O.type.isTop ? {
|
|
25189
25075
|
parser: i.parser,
|
|
@@ -25231,22 +25117,17 @@ const N7 = new Oe((t, e) => {
|
|
|
25231
25117
|
for (; t.next == pQ || t.next == _c; )
|
|
25232
25118
|
t.advance(), O++;
|
|
25233
25119
|
(t.next == qn || t.next == ho || t.next == mQ) && t.acceptToken(mS, -O);
|
|
25234
|
-
} else
|
|
25235
|
-
cf(t.next) && t.acceptToken(Bj, 1);
|
|
25120
|
+
} else cf(t.next) && t.acceptToken(Bj, 1);
|
|
25236
25121
|
}, { contextual: !0 }), M7 = new Oe((t, e) => {
|
|
25237
25122
|
let i = e.context;
|
|
25238
|
-
if (i.flags)
|
|
25239
|
-
return;
|
|
25123
|
+
if (i.flags) return;
|
|
25240
25124
|
let O = t.peek(-1);
|
|
25241
25125
|
if (O == qn || O == ho) {
|
|
25242
25126
|
let n = 0, r = 0;
|
|
25243
25127
|
for (; ; ) {
|
|
25244
|
-
if (t.next == pQ)
|
|
25245
|
-
|
|
25246
|
-
else
|
|
25247
|
-
n += 8 - n % 8;
|
|
25248
|
-
else
|
|
25249
|
-
break;
|
|
25128
|
+
if (t.next == pQ) n++;
|
|
25129
|
+
else if (t.next == _c) n += 8 - n % 8;
|
|
25130
|
+
else break;
|
|
25250
25131
|
t.advance(), r++;
|
|
25251
25132
|
}
|
|
25252
25133
|
n != i.indent && t.next != qn && t.next != ho && t.next != mQ && (n < i.indent ? t.acceptToken($1, -r) : t.acceptToken(h1));
|
|
@@ -25292,8 +25173,7 @@ const bS = new Map([
|
|
|
25292
25173
|
}
|
|
25293
25174
|
}), K7 = new Oe((t) => {
|
|
25294
25175
|
for (let e = 0; e < 5; e++) {
|
|
25295
|
-
if (t.next != "print".charCodeAt(e))
|
|
25296
|
-
return;
|
|
25176
|
+
if (t.next != "print".charCodeAt(e)) return;
|
|
25297
25177
|
t.advance();
|
|
25298
25178
|
}
|
|
25299
25179
|
if (!/\w/.test(String.fromCharCode(t.next)))
|
|
@@ -25347,20 +25227,15 @@ const bS = new Map([
|
|
|
25347
25227
|
});
|
|
25348
25228
|
function eA(t, e) {
|
|
25349
25229
|
if (e == G7)
|
|
25350
|
-
for (let i = 0; i < 2 && t.next >= 48 && t.next <= 55; i++)
|
|
25351
|
-
t.advance();
|
|
25230
|
+
for (let i = 0; i < 2 && t.next >= 48 && t.next <= 55; i++) t.advance();
|
|
25352
25231
|
else if (e == j7)
|
|
25353
|
-
for (let i = 0; i < 2 && uf(t.next); i++)
|
|
25354
|
-
t.advance();
|
|
25232
|
+
for (let i = 0; i < 2 && uf(t.next); i++) t.advance();
|
|
25355
25233
|
else if (e == I7)
|
|
25356
|
-
for (let i = 0; i < 4 && uf(t.next); i++)
|
|
25357
|
-
t.advance();
|
|
25234
|
+
for (let i = 0; i < 4 && uf(t.next); i++) t.advance();
|
|
25358
25235
|
else if (e == D7)
|
|
25359
|
-
for (let i = 0; i < 8 && uf(t.next); i++)
|
|
25360
|
-
t.advance();
|
|
25236
|
+
for (let i = 0; i < 8 && uf(t.next); i++) t.advance();
|
|
25361
25237
|
else if (e == A7 && t.next == kh) {
|
|
25362
|
-
for (t.advance(); t.next >= 0 && t.next != SS && t.next != m1 && t.next != g1 && t.next != qn; )
|
|
25363
|
-
t.advance();
|
|
25238
|
+
for (t.advance(); t.next >= 0 && t.next != SS && t.next != m1 && t.next != g1 && t.next != qn; ) t.advance();
|
|
25364
25239
|
t.next == SS && t.advance();
|
|
25365
25240
|
}
|
|
25366
25241
|
}
|
|
@@ -25729,8 +25604,7 @@ function ff(t) {
|
|
|
25729
25604
|
e = r;
|
|
25730
25605
|
else
|
|
25731
25606
|
break;
|
|
25732
|
-
else
|
|
25733
|
-
break;
|
|
25607
|
+
else break;
|
|
25734
25608
|
}
|
|
25735
25609
|
return n;
|
|
25736
25610
|
}
|
|
@@ -25830,8 +25704,7 @@ const bA = new Oe((t, e) => {
|
|
|
25830
25704
|
return;
|
|
25831
25705
|
}
|
|
25832
25706
|
if (t.next == hA || t.next == QA) {
|
|
25833
|
-
if (i = !0, t.advance(), (t.next == pA || t.next == mA) && t.advance(), !Sl(t.next))
|
|
25834
|
-
return;
|
|
25707
|
+
if (i = !0, t.advance(), (t.next == pA || t.next == mA) && t.advance(), !Sl(t.next)) return;
|
|
25835
25708
|
do
|
|
25836
25709
|
t.advance();
|
|
25837
25710
|
while (Sl(t.next));
|
|
@@ -25845,30 +25718,25 @@ const bA = new Oe((t, e) => {
|
|
|
25845
25718
|
}
|
|
25846
25719
|
i && t.acceptToken(dA);
|
|
25847
25720
|
} else if (t.next == XS || t.next == wS) {
|
|
25848
|
-
if (t.next == XS && t.advance(), t.next != wS)
|
|
25849
|
-
return;
|
|
25721
|
+
if (t.next == XS && t.advance(), t.next != wS) return;
|
|
25850
25722
|
t.advance();
|
|
25851
25723
|
let i = 0;
|
|
25852
25724
|
for (; t.next == xS; )
|
|
25853
25725
|
i++, t.advance();
|
|
25854
|
-
if (t.next != vS)
|
|
25855
|
-
return;
|
|
25726
|
+
if (t.next != vS) return;
|
|
25856
25727
|
t.advance();
|
|
25857
|
-
e:
|
|
25858
|
-
|
|
25859
|
-
|
|
25860
|
-
|
|
25861
|
-
let
|
|
25862
|
-
|
|
25863
|
-
|
|
25864
|
-
if (t.next != xS)
|
|
25865
|
-
continue e;
|
|
25866
|
-
t.advance();
|
|
25867
|
-
}
|
|
25868
|
-
t.acceptToken(fA);
|
|
25869
|
-
return;
|
|
25728
|
+
e: for (; ; ) {
|
|
25729
|
+
if (t.next < 0) return;
|
|
25730
|
+
let O = t.next == vS;
|
|
25731
|
+
if (t.advance(), O) {
|
|
25732
|
+
for (let n = 0; n < i; n++) {
|
|
25733
|
+
if (t.next != xS) continue e;
|
|
25734
|
+
t.advance();
|
|
25870
25735
|
}
|
|
25736
|
+
t.acceptToken(fA);
|
|
25737
|
+
return;
|
|
25871
25738
|
}
|
|
25739
|
+
}
|
|
25872
25740
|
}
|
|
25873
25741
|
}), yA = new Oe((t) => {
|
|
25874
25742
|
t.next == gA && t.acceptToken(sA, 1);
|
|
@@ -26015,8 +25883,7 @@ const NA = new Oe((t, e) => {
|
|
|
26015
25883
|
} else if (t.next == oi)
|
|
26016
25884
|
t.acceptToken(VA, 1);
|
|
26017
25885
|
else if ($O.includes(t.next)) {
|
|
26018
|
-
for (t.advance(); t.next != oi && $O.includes(t.next); )
|
|
26019
|
-
t.advance();
|
|
25886
|
+
for (t.advance(); t.next != oi && $O.includes(t.next); ) t.advance();
|
|
26020
25887
|
t.acceptToken($f);
|
|
26021
25888
|
}
|
|
26022
25889
|
} else {
|
|
@@ -26059,8 +25926,7 @@ const NA = new Oe((t, e) => {
|
|
|
26059
25926
|
}
|
|
26060
25927
|
}
|
|
26061
25928
|
if (t.next == Wa) {
|
|
26062
|
-
for (; t.next != oi && t.next >= 0; )
|
|
26063
|
-
t.advance();
|
|
25929
|
+
for (; t.next != oi && t.next >= 0; ) t.advance();
|
|
26064
25930
|
t.acceptToken(zS);
|
|
26065
25931
|
} else {
|
|
26066
25932
|
for (t.advance(); t.next >= 0; ) {
|
|
@@ -26076,8 +25942,7 @@ const NA = new Oe((t, e) => {
|
|
|
26076
25942
|
}), BA = new Oe((t, e) => {
|
|
26077
25943
|
(t.next == DA || t.next == US) && e.dialectEnabled(Rc) && t.acceptToken(t.next == US ? UA : WA, 1);
|
|
26078
25944
|
}), FA = new Oe((t, e) => {
|
|
26079
|
-
if (!e.dialectEnabled(Rc))
|
|
26080
|
-
return;
|
|
25945
|
+
if (!e.dialectEnabled(Rc)) return;
|
|
26081
25946
|
let i = e.context.depth;
|
|
26082
25947
|
if (t.next < 0 && i) {
|
|
26083
25948
|
t.acceptToken(vh);
|
|
@@ -26293,15 +26158,12 @@ function T4(t) {
|
|
|
26293
26158
|
let CS = null, GS = null, jS = 0;
|
|
26294
26159
|
function qh(t, e) {
|
|
26295
26160
|
let i = t.pos + e;
|
|
26296
|
-
if (GS == t && jS == i)
|
|
26297
|
-
|
|
26298
|
-
for (; T4(t.peek(e)); )
|
|
26299
|
-
e++;
|
|
26161
|
+
if (GS == t && jS == i) return CS;
|
|
26162
|
+
for (; T4(t.peek(e)); ) e++;
|
|
26300
26163
|
let O = "";
|
|
26301
26164
|
for (; ; ) {
|
|
26302
26165
|
let n = t.peek(e);
|
|
26303
|
-
if (!y4(n))
|
|
26304
|
-
break;
|
|
26166
|
+
if (!y4(n)) break;
|
|
26305
26167
|
O += String.fromCharCode(n), e++;
|
|
26306
26168
|
}
|
|
26307
26169
|
return GS = t, jS = i, CS = O || null;
|
|
@@ -26327,13 +26189,9 @@ const X4 = new KO({
|
|
|
26327
26189
|
if (t.advance(), t.next == 47) {
|
|
26328
26190
|
t.advance();
|
|
26329
26191
|
let i = qh(t, 0);
|
|
26330
|
-
if (!i)
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
return t.acceptToken(h4);
|
|
26334
|
-
for (let O = e.context; O; O = O.parent)
|
|
26335
|
-
if (O.name == i)
|
|
26336
|
-
return t.acceptToken($4, -2);
|
|
26192
|
+
if (!i) return t.acceptToken(p4);
|
|
26193
|
+
if (e.context && i == e.context.name) return t.acceptToken(h4);
|
|
26194
|
+
for (let O = e.context; O; O = O.parent) if (O.name == i) return t.acceptToken($4, -2);
|
|
26337
26195
|
t.acceptToken(Q4);
|
|
26338
26196
|
} else if (t.next != 33 && t.next != 63)
|
|
26339
26197
|
return t.acceptToken(Rh);
|
|
@@ -26342,14 +26200,12 @@ const X4 = new KO({
|
|
|
26342
26200
|
function yQ(t, e) {
|
|
26343
26201
|
return new Oe((i) => {
|
|
26344
26202
|
let O = 0, n = e.charCodeAt(0);
|
|
26345
|
-
e:
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
break;
|
|
26352
|
-
}
|
|
26203
|
+
e: for (; !(i.next < 0); i.advance(), O++)
|
|
26204
|
+
if (i.next == n) {
|
|
26205
|
+
for (let r = 1; r < e.length; r++)
|
|
26206
|
+
if (i.peek(r) != e.charCodeAt(r)) continue e;
|
|
26207
|
+
break;
|
|
26208
|
+
}
|
|
26353
26209
|
O && i.acceptToken(t);
|
|
26354
26210
|
});
|
|
26355
26211
|
}
|
|
@@ -26602,8 +26458,7 @@ pn.top = new pn(null, -1, e8);
|
|
|
26602
26458
|
function Ca(t, e) {
|
|
26603
26459
|
for (let i = 0, O = e - t.pos - 1; ; O--, i++) {
|
|
26604
26460
|
let n = t.peek(O);
|
|
26605
|
-
if (bO(n) || n == -1)
|
|
26606
|
-
return i;
|
|
26461
|
+
if (bO(n) || n == -1) return i;
|
|
26607
26462
|
}
|
|
26608
26463
|
}
|
|
26609
26464
|
function Vh(t) {
|
|
@@ -26636,8 +26491,7 @@ const t8 = new KO({
|
|
|
26636
26491
|
return t.parent;
|
|
26637
26492
|
if (e == J4) {
|
|
26638
26493
|
let n = /[1-9]/.exec(O.read(O.pos, i.pos));
|
|
26639
|
-
if (n)
|
|
26640
|
-
return new pn(t, t.depth + +n[0], zh);
|
|
26494
|
+
if (n) return new pn(t, t.depth + +n[0], zh);
|
|
26641
26495
|
}
|
|
26642
26496
|
return t;
|
|
26643
26497
|
},
|
|
@@ -26658,19 +26512,15 @@ const i8 = new Oe((t, e) => {
|
|
|
26658
26512
|
45
|
|
26659
26513
|
/* '-' */
|
|
26660
26514
|
))
|
|
26661
|
-
if (e.canShift(ir))
|
|
26662
|
-
|
|
26663
|
-
else
|
|
26664
|
-
return t.acceptToken(U4, 3);
|
|
26515
|
+
if (e.canShift(ir)) t.acceptToken(ir);
|
|
26516
|
+
else return t.acceptToken(U4, 3);
|
|
26665
26517
|
if (xr(
|
|
26666
26518
|
t,
|
|
26667
26519
|
46
|
|
26668
26520
|
/* '.' */
|
|
26669
26521
|
))
|
|
26670
|
-
if (e.canShift(ir))
|
|
26671
|
-
|
|
26672
|
-
else
|
|
26673
|
-
return t.acceptToken(W4, 3);
|
|
26522
|
+
if (e.canShift(ir)) t.acceptToken(ir);
|
|
26523
|
+
else return t.acceptToken(W4, 3);
|
|
26674
26524
|
let O = 0;
|
|
26675
26525
|
for (; t.next == 32; )
|
|
26676
26526
|
O++, t.advance();
|
|
@@ -26690,8 +26540,7 @@ const i8 = new Oe((t, e) => {
|
|
|
26690
26540
|
let i = t.pos;
|
|
26691
26541
|
for (; ; )
|
|
26692
26542
|
if (Vh(t.next)) {
|
|
26693
|
-
if (t.pos == i)
|
|
26694
|
-
return;
|
|
26543
|
+
if (t.pos == i) return;
|
|
26695
26544
|
t.advance();
|
|
26696
26545
|
} else if (t.next == 33)
|
|
26697
26546
|
q1(t);
|
|
@@ -26701,22 +26550,18 @@ const i8 = new Oe((t, e) => {
|
|
|
26701
26550
|
Uh(t);
|
|
26702
26551
|
break;
|
|
26703
26552
|
} else if (t.next == 39 || t.next == 34) {
|
|
26704
|
-
if (XQ(t, !0))
|
|
26705
|
-
break;
|
|
26553
|
+
if (XQ(t, !0)) break;
|
|
26706
26554
|
return;
|
|
26707
26555
|
} else if (t.next == 91 || t.next == 123) {
|
|
26708
|
-
if (!r8(t))
|
|
26709
|
-
return;
|
|
26556
|
+
if (!r8(t)) return;
|
|
26710
26557
|
break;
|
|
26711
26558
|
} else {
|
|
26712
26559
|
Y1(t, !0, !1, 0);
|
|
26713
26560
|
break;
|
|
26714
26561
|
}
|
|
26715
|
-
for (; Vh(t.next); )
|
|
26716
|
-
t.advance();
|
|
26562
|
+
for (; Vh(t.next); ) t.advance();
|
|
26717
26563
|
if (t.next == 58) {
|
|
26718
|
-
if (t.pos == i && e.canShift(F4))
|
|
26719
|
-
return;
|
|
26564
|
+
if (t.pos == i && e.canShift(F4)) return;
|
|
26720
26565
|
let O = t.peek(1);
|
|
26721
26566
|
bn(O) && t.acceptTokenTo(e.context.type == Zh && e.context.depth == Ca(t, i) ? j4 : v1, i);
|
|
26722
26567
|
}
|
|
@@ -26743,28 +26588,23 @@ function q1(t) {
|
|
|
26743
26588
|
;
|
|
26744
26589
|
}
|
|
26745
26590
|
function Uh(t) {
|
|
26746
|
-
for (t.advance(); !bn(t.next) && Ls(t.next) != "f"; )
|
|
26747
|
-
t.advance();
|
|
26591
|
+
for (t.advance(); !bn(t.next) && Ls(t.next) != "f"; ) t.advance();
|
|
26748
26592
|
}
|
|
26749
26593
|
function XQ(t, e) {
|
|
26750
26594
|
let i = t.next, O = !1, n = t.pos;
|
|
26751
26595
|
for (t.advance(); ; ) {
|
|
26752
26596
|
let r = t.next;
|
|
26753
|
-
if (r < 0)
|
|
26754
|
-
break;
|
|
26597
|
+
if (r < 0) break;
|
|
26755
26598
|
if (t.advance(), r == i)
|
|
26756
26599
|
if (r == 39)
|
|
26757
|
-
if (t.next == 39)
|
|
26758
|
-
|
|
26759
|
-
else
|
|
26760
|
-
break;
|
|
26600
|
+
if (t.next == 39) t.advance();
|
|
26601
|
+
else break;
|
|
26761
26602
|
else
|
|
26762
26603
|
break;
|
|
26763
26604
|
else if (r == 92 && i == 34)
|
|
26764
26605
|
t.next >= 0 && t.advance();
|
|
26765
26606
|
else if (bO(r)) {
|
|
26766
|
-
if (e)
|
|
26767
|
-
return !1;
|
|
26607
|
+
if (e) return !1;
|
|
26768
26608
|
O = !0;
|
|
26769
26609
|
} else if (e && t.pos >= n + 1024)
|
|
26770
26610
|
return !1;
|
|
@@ -26776,13 +26616,10 @@ function r8(t) {
|
|
|
26776
26616
|
if (t.next == 91 || t.next == 123)
|
|
26777
26617
|
e.push(t.next), t.advance();
|
|
26778
26618
|
else if (t.next == 39 || t.next == 34) {
|
|
26779
|
-
if (!XQ(t, !0))
|
|
26780
|
-
return !1;
|
|
26619
|
+
if (!XQ(t, !0)) return !1;
|
|
26781
26620
|
} else if (t.next == 93 || t.next == 125) {
|
|
26782
|
-
if (e[e.length - 1] != t.next - 2)
|
|
26783
|
-
|
|
26784
|
-
if (e.pop(), t.advance(), !e.length)
|
|
26785
|
-
return !0;
|
|
26621
|
+
if (e[e.length - 1] != t.next - 2) return !1;
|
|
26622
|
+
if (e.pop(), t.advance(), !e.length) return !0;
|
|
26786
26623
|
} else {
|
|
26787
26624
|
if (t.next < 0 || t.pos > i || bO(t.next))
|
|
26788
26625
|
return !1;
|
|
@@ -26807,8 +26644,7 @@ function Y1(t, e, i, O) {
|
|
|
26807
26644
|
let r = t.next, a = 0, o = O + 1;
|
|
26808
26645
|
for (; R1(r); ) {
|
|
26809
26646
|
if (bO(r)) {
|
|
26810
|
-
if (e)
|
|
26811
|
-
return !1;
|
|
26647
|
+
if (e) return !1;
|
|
26812
26648
|
o = 0;
|
|
26813
26649
|
} else
|
|
26814
26650
|
o++;
|
|
@@ -26816,12 +26652,9 @@ function Y1(t, e, i, O) {
|
|
|
26816
26652
|
}
|
|
26817
26653
|
if (!(r >= 0 && (r == 58 ? gf(t.peek(a + 1), i) : r == 35 ? t.peek(a - 1) != 32 : gf(r, i))) || !i && o <= O || o == 0 && !i && (xr(t, 45, a) || xr(t, 46, a)))
|
|
26818
26654
|
break;
|
|
26819
|
-
if (e && Ls(r) == "f")
|
|
26820
|
-
|
|
26821
|
-
|
|
26822
|
-
t.advance();
|
|
26823
|
-
if (e && t.pos > n + 1024)
|
|
26824
|
-
return !1;
|
|
26655
|
+
if (e && Ls(r) == "f") return !1;
|
|
26656
|
+
for (let s = a; s >= 0; s--) t.advance();
|
|
26657
|
+
if (e && t.pos > n + 1024) return !1;
|
|
26825
26658
|
}
|
|
26826
26659
|
return !0;
|
|
26827
26660
|
}
|
|
@@ -26831,26 +26664,21 @@ const o8 = new Oe((t, e) => {
|
|
|
26831
26664
|
else if (t.next == 38 || t.next == 42) {
|
|
26832
26665
|
let i = t.next == 38 ? D4 : L4;
|
|
26833
26666
|
Uh(t), t.acceptToken(i);
|
|
26834
|
-
} else
|
|
26835
|
-
t.next == 39 || t.next == 34 ? (XQ(t, !1), t.acceptToken(I4)) : Y1(t, !1, e.context.type == $o, e.context.depth) && t.acceptToken(A4);
|
|
26667
|
+
} else t.next == 39 || t.next == 34 ? (XQ(t, !1), t.acceptToken(I4)) : Y1(t, !1, e.context.type == $o, e.context.depth) && t.acceptToken(A4);
|
|
26836
26668
|
}), l8 = new Oe((t, e) => {
|
|
26837
26669
|
let i = e.context.type == zh ? e.context.depth : -1, O = t.pos;
|
|
26838
|
-
e:
|
|
26670
|
+
e: for (; ; ) {
|
|
26671
|
+
let n = 0, r = t.next;
|
|
26672
|
+
for (; r == 32; ) r = t.peek(++n);
|
|
26673
|
+
if (!n && (xr(t, 45, n) || xr(t, 46, n)) || !bO(r) && (i < 0 && (i = Math.max(e.context.depth + 1, n)), n < i))
|
|
26674
|
+
break;
|
|
26839
26675
|
for (; ; ) {
|
|
26840
|
-
|
|
26841
|
-
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
break;
|
|
26845
|
-
for (; ; ) {
|
|
26846
|
-
if (t.next < 0)
|
|
26847
|
-
break e;
|
|
26848
|
-
let a = bO(t.next);
|
|
26849
|
-
if (t.advance(), a)
|
|
26850
|
-
continue e;
|
|
26851
|
-
O = t.pos;
|
|
26852
|
-
}
|
|
26676
|
+
if (t.next < 0) break e;
|
|
26677
|
+
let a = bO(t.next);
|
|
26678
|
+
if (t.advance(), a) continue e;
|
|
26679
|
+
O = t.pos;
|
|
26853
26680
|
}
|
|
26681
|
+
}
|
|
26854
26682
|
t.acceptTokenTo(_1, O);
|
|
26855
26683
|
}), s8 = Ee({
|
|
26856
26684
|
DirectiveName: f.keyword,
|
|
@@ -27035,8 +26863,7 @@ const KS = {
|
|
|
27035
26863
|
}
|
|
27036
26864
|
};
|
|
27037
26865
|
function RO(t) {
|
|
27038
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
27039
|
-
e[i[O]] = !0;
|
|
26866
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
27040
26867
|
return e;
|
|
27041
26868
|
}
|
|
27042
26869
|
const iO = {
|
|
@@ -27106,27 +26933,19 @@ function JS(t) {
|
|
|
27106
26933
|
},
|
|
27107
26934
|
token: function(S, y) {
|
|
27108
26935
|
var w = y.context;
|
|
27109
|
-
if (S.sol() && (w.align == null && (w.align = !1), y.indented = S.indentation(), y.startOfLine = !0), S.eatSpace())
|
|
27110
|
-
return null;
|
|
26936
|
+
if (S.sol() && (w.align == null && (w.align = !1), y.indented = S.indentation(), y.startOfLine = !0), S.eatSpace()) return null;
|
|
27111
26937
|
u = null;
|
|
27112
26938
|
var Y = (y.tokenize || d)(S, y);
|
|
27113
|
-
if (Y == "comment")
|
|
27114
|
-
return Y;
|
|
26939
|
+
if (Y == "comment") return Y;
|
|
27115
26940
|
if (w.align == null && (w.align = !0), (u == ";" || u == ":" || u == ",") && w.type == "statement")
|
|
27116
26941
|
m(y);
|
|
27117
|
-
else if (u == "{")
|
|
27118
|
-
|
|
27119
|
-
else if (u == "
|
|
27120
|
-
p(y, S.column(), "]");
|
|
27121
|
-
else if (u == "(")
|
|
27122
|
-
p(y, S.column(), ")");
|
|
26942
|
+
else if (u == "{") p(y, S.column(), "}");
|
|
26943
|
+
else if (u == "[") p(y, S.column(), "]");
|
|
26944
|
+
else if (u == "(") p(y, S.column(), ")");
|
|
27123
26945
|
else if (u == "}") {
|
|
27124
|
-
for (; w.type == "statement"; )
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
w = m(y);
|
|
27128
|
-
} else
|
|
27129
|
-
u == w.type ? m(y) : s && ((w.type == "}" || w.type == "top") && u != ";" || w.type == "statement" && u == "newstatement") && p(y, S.column(), "statement");
|
|
26946
|
+
for (; w.type == "statement"; ) w = m(y);
|
|
26947
|
+
for (w.type == "}" && (w = m(y)); w.type == "statement"; ) w = m(y);
|
|
26948
|
+
} else u == w.type ? m(y) : s && ((w.type == "}" || w.type == "top") && u != ";" || w.type == "statement" && u == "newstatement") && p(y, S.column(), "statement");
|
|
27130
26949
|
return y.startOfLine = !1, Y;
|
|
27131
26950
|
},
|
|
27132
26951
|
languageData: {
|
|
@@ -27147,8 +26966,7 @@ const eP = {
|
|
|
27147
26966
|
};
|
|
27148
26967
|
},
|
|
27149
26968
|
token: function(t, e) {
|
|
27150
|
-
if (t.eatSpace())
|
|
27151
|
-
return null;
|
|
26969
|
+
if (t.eatSpace()) return null;
|
|
27152
26970
|
t.sol() && (e.commentLine = !1);
|
|
27153
26971
|
var i = t.next().toString();
|
|
27154
26972
|
if (g8.indexOf(i) !== -1) {
|
|
@@ -27169,8 +26987,7 @@ const eP = {
|
|
|
27169
26987
|
};
|
|
27170
26988
|
var S8 = "builtin", P8 = "comment", tP = "string", iP = "atom", b8 = "number", y8 = "keyword", T8 = "header", X8 = "def", w8 = "link";
|
|
27171
26989
|
function wQ(t) {
|
|
27172
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
27173
|
-
e[i[O]] = !0;
|
|
26990
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
27174
26991
|
return e;
|
|
27175
26992
|
}
|
|
27176
26993
|
var OP = wQ("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "), nP = wQ(
|
|
@@ -27249,15 +27066,12 @@ function na(t) {
|
|
|
27249
27066
|
return (e == ")" || e == "]" || e == "}") && (t.indented = t.context.indented), t.context = t.context.prev;
|
|
27250
27067
|
}
|
|
27251
27068
|
function oP(t, e, i) {
|
|
27252
|
-
if (e.prevToken == "variable" || e.prevToken == "type" || /\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0, i)) || e.typeAtEndOfLine && t.column() == t.indentation())
|
|
27253
|
-
return !0;
|
|
27069
|
+
if (e.prevToken == "variable" || e.prevToken == "type" || /\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0, i)) || e.typeAtEndOfLine && t.column() == t.indentation()) return !0;
|
|
27254
27070
|
}
|
|
27255
27071
|
function Pf(t) {
|
|
27256
27072
|
for (; ; ) {
|
|
27257
|
-
if (!t || t.type == "top")
|
|
27258
|
-
|
|
27259
|
-
if (t.type == "}" && t.prev.info != "namespace")
|
|
27260
|
-
return !1;
|
|
27073
|
+
if (!t || t.type == "top") return !0;
|
|
27074
|
+
if (t.type == "}" && t.prev.info != "namespace") return !1;
|
|
27261
27075
|
t = t.prev;
|
|
27262
27076
|
}
|
|
27263
27077
|
}
|
|
@@ -27267,14 +27081,12 @@ function ti(t) {
|
|
|
27267
27081
|
var E = W.next();
|
|
27268
27082
|
if (s[E]) {
|
|
27269
27083
|
var z = s[E](W, Z);
|
|
27270
|
-
if (z !== !1)
|
|
27271
|
-
return z;
|
|
27084
|
+
if (z !== !1) return z;
|
|
27272
27085
|
}
|
|
27273
27086
|
if (E == '"' || E == "'")
|
|
27274
27087
|
return Z.tokenize = b(E), Z.tokenize(W, Z);
|
|
27275
27088
|
if (p.test(E)) {
|
|
27276
|
-
if (W.backUp(1), W.match(m))
|
|
27277
|
-
return "number";
|
|
27089
|
+
if (W.backUp(1), W.match(m)) return "number";
|
|
27278
27090
|
W.next();
|
|
27279
27091
|
}
|
|
27280
27092
|
if ($.test(E))
|
|
@@ -27290,9 +27102,8 @@ function ti(t) {
|
|
|
27290
27102
|
;
|
|
27291
27103
|
return "operator";
|
|
27292
27104
|
}
|
|
27293
|
-
if (W.eatWhile(y), h)
|
|
27294
|
-
|
|
27295
|
-
W.eatWhile(y);
|
|
27105
|
+
if (W.eatWhile(y), h) for (; W.match(h); )
|
|
27106
|
+
W.eatWhile(y);
|
|
27296
27107
|
var T = W.current();
|
|
27297
27108
|
return lO(O, T) ? (lO(a, T) && (Y = "newstatement"), lO(o, T) && (X = !0), "keyword") : lO(n, T) ? "type" : lO(r, T) || w && w(T) ? (lO(a, T) && (Y = "newstatement"), "builtin") : lO(l, T) ? "atom" : "variable";
|
|
27298
27109
|
}
|
|
@@ -27338,24 +27149,16 @@ function ti(t) {
|
|
|
27338
27149
|
return g(W, Z), null;
|
|
27339
27150
|
Y = X = null;
|
|
27340
27151
|
var z = (Z.tokenize || k)(W, Z);
|
|
27341
|
-
if (z == "comment" || z == "meta")
|
|
27342
|
-
return z;
|
|
27152
|
+
if (z == "comment" || z == "meta") return z;
|
|
27343
27153
|
if (E.align == null && (E.align = !0), Y == ";" || Y == ":" || Y == "," && W.match(/^\s*(?:\/\/.*)?$/, !1))
|
|
27344
|
-
for (; Z.context.type == "statement"; )
|
|
27345
|
-
|
|
27346
|
-
else if (Y == "
|
|
27347
|
-
|
|
27348
|
-
else if (Y == "[")
|
|
27349
|
-
bl(Z, W.column(), "]");
|
|
27350
|
-
else if (Y == "(")
|
|
27351
|
-
bl(Z, W.column(), ")");
|
|
27154
|
+
for (; Z.context.type == "statement"; ) na(Z);
|
|
27155
|
+
else if (Y == "{") bl(Z, W.column(), "}");
|
|
27156
|
+
else if (Y == "[") bl(Z, W.column(), "]");
|
|
27157
|
+
else if (Y == "(") bl(Z, W.column(), ")");
|
|
27352
27158
|
else if (Y == "}") {
|
|
27353
|
-
for (; E.type == "statement"; )
|
|
27354
|
-
|
|
27355
|
-
|
|
27356
|
-
E = na(Z);
|
|
27357
|
-
} else
|
|
27358
|
-
Y == E.type ? na(Z) : u && ((E.type == "}" || E.type == "top") && Y != ";" || E.type == "statement" && Y == "newstatement") && bl(Z, W.column(), "statement", W.current());
|
|
27159
|
+
for (; E.type == "statement"; ) E = na(Z);
|
|
27160
|
+
for (E.type == "}" && (E = na(Z)); E.type == "statement"; ) E = na(Z);
|
|
27161
|
+
} else Y == E.type ? na(Z) : u && ((E.type == "}" || E.type == "top") && Y != ";" || E.type == "statement" && Y == "newstatement") && bl(Z, W.column(), "statement", W.current());
|
|
27359
27162
|
if (z == "variable" && (Z.prevToken == "def" || t.typeFirstDefinitions && oP(W, Z, W.start) && Pf(Z.context) && W.match(/^\s*\(/, !1)) && (z = "def"), s.token) {
|
|
27360
27163
|
var T = s.token(W, Z, z);
|
|
27361
27164
|
T !== void 0 && (z = T);
|
|
@@ -27371,13 +27174,11 @@ function ti(t) {
|
|
|
27371
27174
|
z = z.prev;
|
|
27372
27175
|
if (s.indent) {
|
|
27373
27176
|
var q = s.indent(W, z, Z, E.unit);
|
|
27374
|
-
if (typeof q == "number")
|
|
27375
|
-
return q;
|
|
27177
|
+
if (typeof q == "number") return q;
|
|
27376
27178
|
}
|
|
27377
27179
|
var _ = z.prev && z.prev.info == "switch";
|
|
27378
27180
|
if (t.allmanIndentation && /[{(]/.test(T)) {
|
|
27379
|
-
for (; z.type != "top" && z.type != "}"; )
|
|
27380
|
-
z = z.prev;
|
|
27181
|
+
for (; z.type != "top" && z.type != "}"; ) z = z.prev;
|
|
27381
27182
|
return z.indented;
|
|
27382
27183
|
}
|
|
27383
27184
|
return z.type == "statement" ? z.indented + (T == "{" ? 0 : e || E.unit) : z.align && (!i || z.type != ")") ? z.column + (R ? 0 : 1) : z.type == ")" && !R ? z.indented + (e || E.unit) : z.indented + (R ? 0 : E.unit) + (!R && _ && !/^(?:case|default)\b/.test(Z) ? E.unit : 0);
|
|
@@ -27391,8 +27192,7 @@ function ti(t) {
|
|
|
27391
27192
|
};
|
|
27392
27193
|
}
|
|
27393
27194
|
function J(t) {
|
|
27394
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
27395
|
-
e[i[O]] = !0;
|
|
27195
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
27396
27196
|
return e;
|
|
27397
27197
|
}
|
|
27398
27198
|
function lO(t, e) {
|
|
@@ -27407,8 +27207,7 @@ function U1(t) {
|
|
|
27407
27207
|
}
|
|
27408
27208
|
var zo = "case do else for if switch while struct enum union", qc = "struct enum union";
|
|
27409
27209
|
function JO(t, e) {
|
|
27410
|
-
if (!e.startOfLine)
|
|
27411
|
-
return !1;
|
|
27210
|
+
if (!e.startOfLine) return !1;
|
|
27412
27211
|
for (var i, O = null; i = t.peek(); ) {
|
|
27413
27212
|
if (i == "\\" && t.match(/^.$/)) {
|
|
27414
27213
|
O = JO;
|
|
@@ -27805,10 +27604,8 @@ function V8(t) {
|
|
|
27805
27604
|
function bf(t, e, i, O) {
|
|
27806
27605
|
var n = !1;
|
|
27807
27606
|
if (e.eat(t))
|
|
27808
|
-
if (e.eat(t))
|
|
27809
|
-
|
|
27810
|
-
else
|
|
27811
|
-
return "string";
|
|
27607
|
+
if (e.eat(t)) n = !0;
|
|
27608
|
+
else return "string";
|
|
27812
27609
|
function r(a, o) {
|
|
27813
27610
|
for (var l = !1; !a.eol(); ) {
|
|
27814
27611
|
if (!O && !l && a.peek() == "$")
|
|
@@ -28601,22 +28398,15 @@ var j1 = ["false", "nil", "true"], A1 = [
|
|
|
28601
28398
|
"with-redefs-fn"
|
|
28602
28399
|
], G8 = zc(j1), j8 = zc(A1), A8 = zc(I1), I8 = zc(C8), D8 = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/, L8 = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/, N8 = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/, M8 = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;
|
|
28603
28400
|
function xQ(t, e) {
|
|
28604
|
-
if (t.eatSpace() || t.eat(","))
|
|
28605
|
-
|
|
28606
|
-
if (t.match(
|
|
28607
|
-
|
|
28608
|
-
if (t.
|
|
28609
|
-
|
|
28610
|
-
if (t.eat(/^"/))
|
|
28611
|
-
return (e.tokenize = B8)(t, e);
|
|
28612
|
-
if (t.eat(/^[(\[{]/))
|
|
28613
|
-
return ["open", "bracket"];
|
|
28614
|
-
if (t.eat(/^[)\]}]/))
|
|
28615
|
-
return ["close", "bracket"];
|
|
28401
|
+
if (t.eatSpace() || t.eat(",")) return ["space", null];
|
|
28402
|
+
if (t.match(L8)) return [null, "number"];
|
|
28403
|
+
if (t.match(N8)) return [null, "string.special"];
|
|
28404
|
+
if (t.eat(/^"/)) return (e.tokenize = B8)(t, e);
|
|
28405
|
+
if (t.eat(/^[(\[{]/)) return ["open", "bracket"];
|
|
28406
|
+
if (t.eat(/^[)\]}]/)) return ["close", "bracket"];
|
|
28616
28407
|
if (t.eat(/^;/))
|
|
28617
28408
|
return t.skipToEnd(), ["space", "comment"];
|
|
28618
|
-
if (t.eat(/^[#'@^`~]/))
|
|
28619
|
-
return [null, "meta"];
|
|
28409
|
+
if (t.eat(/^[#'@^`~]/)) return [null, "meta"];
|
|
28620
28410
|
var i = t.match(M8), O = i && i[0];
|
|
28621
28411
|
return O ? O === "comment" && e.lastToken === "(" ? (e.tokenize = F8)(t, e) : ya(O, G8) || O.charAt(0) === ":" ? ["symbol", "atom"] : ya(O, j8) || ya(O, A8) ? ["symbol", "keyword"] : e.lastToken === "(" ? ["symbol", "builtin"] : ["symbol", "variable"] : (t.next(), t.eatWhile(function(n) {
|
|
28622
28412
|
return !ya(n, D8);
|
|
@@ -28641,15 +28431,12 @@ function F8(t, e) {
|
|
|
28641
28431
|
return ["space", "comment"];
|
|
28642
28432
|
}
|
|
28643
28433
|
function zc(t) {
|
|
28644
|
-
for (var e = {}, i = 0; i < t.length; ++i)
|
|
28645
|
-
e[t[i]] = !0;
|
|
28434
|
+
for (var e = {}, i = 0; i < t.length; ++i) e[t[i]] = !0;
|
|
28646
28435
|
return e;
|
|
28647
28436
|
}
|
|
28648
28437
|
function ya(t, e) {
|
|
28649
|
-
if (e instanceof RegExp)
|
|
28650
|
-
|
|
28651
|
-
if (e instanceof Object)
|
|
28652
|
-
return e.propertyIsEnumerable(t);
|
|
28438
|
+
if (e instanceof RegExp) return e.test(t);
|
|
28439
|
+
if (e instanceof Object) return e.propertyIsEnumerable(t);
|
|
28653
28440
|
}
|
|
28654
28441
|
const ra = {
|
|
28655
28442
|
name: "clojure",
|
|
@@ -28685,8 +28472,7 @@ function Vc(t) {
|
|
|
28685
28472
|
var q = T.next();
|
|
28686
28473
|
if (i[q]) {
|
|
28687
28474
|
var _ = i[q](T, R);
|
|
28688
|
-
if (_ !== !1)
|
|
28689
|
-
return _;
|
|
28475
|
+
if (_ !== !1) return _;
|
|
28690
28476
|
}
|
|
28691
28477
|
if (q == "@")
|
|
28692
28478
|
return T.eatWhile(/[\w\\\-]/), w("def", T.current());
|
|
@@ -28707,8 +28493,7 @@ function Vc(t) {
|
|
|
28707
28493
|
return T.eatWhile(/[\w\\\-]/), T.match(/^\s*:/, !1) ? w("def", "variable-definition") : w("variableName", "variable");
|
|
28708
28494
|
if (T.match(/^\w+-/))
|
|
28709
28495
|
return w("meta", "meta");
|
|
28710
|
-
} else
|
|
28711
|
-
return /[,+>*\/]/.test(q) ? w(null, "select-op") : q == "." && T.match(/^-?[_a-z][_a-z0-9-]*/i) ? w("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(q) ? w(null, q) : T.match(/^[\w-.]+(?=\()/) ? (/^(url(-prefix)?|domain|regexp)$/i.test(T.current()) && (R.tokenize = k), w("variableName.function", "variable")) : /[\w\\\-]/.test(q) ? (T.eatWhile(/[\w\\\-]/), w("property", "word")) : w(null, null);
|
|
28496
|
+
} else return /[,+>*\/]/.test(q) ? w(null, "select-op") : q == "." && T.match(/^-?[_a-z][_a-z0-9-]*/i) ? w("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(q) ? w(null, q) : T.match(/^[\w-.]+(?=\()/) ? (/^(url(-prefix)?|domain|regexp)$/i.test(T.current()) && (R.tokenize = k), w("variableName.function", "variable")) : /[\w\\\-]/.test(q) ? (T.eatWhile(/[\w\\\-]/), w("property", "word")) : w(null, null);
|
|
28712
28497
|
}
|
|
28713
28498
|
function X(T) {
|
|
28714
28499
|
return function(R, q) {
|
|
@@ -28783,19 +28568,14 @@ function Vc(t) {
|
|
|
28783
28568
|
if (T == "word") {
|
|
28784
28569
|
var _ = R.current().toLowerCase();
|
|
28785
28570
|
return o.hasOwnProperty(_) ? (y = "property", "maybeprop") : l.hasOwnProperty(_) ? (y = m ? "string.special" : "property", "maybeprop") : h ? (y = R.match(/^\s*:(?:\s|$)/, !1) ? "property" : "tag", "block") : (y = "error", "maybeprop");
|
|
28786
|
-
} else
|
|
28787
|
-
return T == "meta" ? "block" : !h && (T == "hash" || T == "qualifier") ? (y = "error", "block") : z.top(T, R, q);
|
|
28571
|
+
} else return T == "meta" ? "block" : !h && (T == "hash" || T == "qualifier") ? (y = "error", "block") : z.top(T, R, q);
|
|
28788
28572
|
}, z.maybeprop = function(T, R, q) {
|
|
28789
28573
|
return T == ":" ? x(q, R, "prop") : W(T, R, q);
|
|
28790
28574
|
}, z.prop = function(T, R, q) {
|
|
28791
|
-
if (T == ";")
|
|
28792
|
-
|
|
28793
|
-
if (T == "{"
|
|
28794
|
-
|
|
28795
|
-
if (T == "}" || T == "{")
|
|
28796
|
-
return Z(T, R, q);
|
|
28797
|
-
if (T == "(")
|
|
28798
|
-
return x(q, R, "parens");
|
|
28575
|
+
if (T == ";") return g(q);
|
|
28576
|
+
if (T == "{" && h) return x(q, R, "propBlock");
|
|
28577
|
+
if (T == "}" || T == "{") return Z(T, R, q);
|
|
28578
|
+
if (T == "(") return x(q, R, "parens");
|
|
28799
28579
|
if (T == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(R.current()))
|
|
28800
28580
|
y = "error";
|
|
28801
28581
|
else if (T == "word")
|
|
@@ -28812,14 +28592,10 @@ function Vc(t) {
|
|
|
28812
28592
|
}, z.documentTypes = function(T, R, q) {
|
|
28813
28593
|
return T == "word" && O.hasOwnProperty(R.current()) ? (y = "tag", q.context.type) : z.atBlock(T, R, q);
|
|
28814
28594
|
}, z.atBlock = function(T, R, q) {
|
|
28815
|
-
if (T == "(")
|
|
28816
|
-
|
|
28817
|
-
if (T == "
|
|
28818
|
-
|
|
28819
|
-
if (T == "{")
|
|
28820
|
-
return g(q) && x(q, R, h ? "block" : "top");
|
|
28821
|
-
if (T == "interpolation")
|
|
28822
|
-
return x(q, R, "interpolation");
|
|
28595
|
+
if (T == "(") return x(q, R, "atBlock_parens");
|
|
28596
|
+
if (T == "}" || T == ";") return Z(T, R, q);
|
|
28597
|
+
if (T == "{") return g(q) && x(q, R, h ? "block" : "top");
|
|
28598
|
+
if (T == "interpolation") return x(q, R, "interpolation");
|
|
28823
28599
|
if (T == "word") {
|
|
28824
28600
|
var _ = R.current().toLowerCase();
|
|
28825
28601
|
_ == "only" || _ == "not" || _ == "and" || _ == "or" ? y = "keyword" : n.hasOwnProperty(_) ? y = "attribute" : r.hasOwnProperty(_) ? y = "property" : a.hasOwnProperty(_) ? y = "keyword" : o.hasOwnProperty(_) ? y = "property" : l.hasOwnProperty(_) ? y = m ? "string.special" : "property" : d.hasOwnProperty(_) ? y = "atom" : u.hasOwnProperty(_) ? y = "keyword" : y = "error";
|
|
@@ -28850,8 +28626,7 @@ function Vc(t) {
|
|
|
28850
28626
|
};
|
|
28851
28627
|
},
|
|
28852
28628
|
token: function(T, R) {
|
|
28853
|
-
if (!R.tokenize && T.eatSpace())
|
|
28854
|
-
return null;
|
|
28629
|
+
if (!R.tokenize && T.eatSpace()) return null;
|
|
28855
28630
|
var q = (R.tokenize || Y)(T, R);
|
|
28856
28631
|
return q && typeof q == "object" && (S = q[1], q = q[0]), y = q, S != "comment" && (R.state = z[R.state](S, T, R)), y;
|
|
28857
28632
|
},
|
|
@@ -30427,12 +30202,9 @@ const Q9 = {
|
|
|
30427
30202
|
return O && O != "comment" && (i && (i.align = !0), e.prop = O == "punctuation" && t.current() == "."), O;
|
|
30428
30203
|
},
|
|
30429
30204
|
indent: function(t, e) {
|
|
30430
|
-
if (t.tokenize != po)
|
|
30431
|
-
return 0;
|
|
30205
|
+
if (t.tokenize != po) return 0;
|
|
30432
30206
|
var i = t.scope, O = e && "])}".indexOf(e.charAt(0)) > -1;
|
|
30433
|
-
if (O)
|
|
30434
|
-
for (; i.type == "coffee" && i.prev; )
|
|
30435
|
-
i = i.prev;
|
|
30207
|
+
if (O) for (; i.type == "coffee" && i.prev; ) i = i.prev;
|
|
30436
30208
|
var n = O && i.type === e.charAt(0);
|
|
30437
30209
|
return i.align ? i.alignOffset - (n ? 1 : 0) : (n ? i.prev : i).offset;
|
|
30438
30210
|
},
|
|
@@ -30443,8 +30215,7 @@ const Q9 = {
|
|
|
30443
30215
|
var p9 = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/, ix = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/, m9 = /^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/, g9 = /[^\s'`,@()\[\]";]/, Ft;
|
|
30444
30216
|
function Tf(t) {
|
|
30445
30217
|
for (var e; e = t.next(); )
|
|
30446
|
-
if (e == "\\")
|
|
30447
|
-
t.next();
|
|
30218
|
+
if (e == "\\") t.next();
|
|
30448
30219
|
else if (!g9.test(e)) {
|
|
30449
30220
|
t.backUp(1);
|
|
30450
30221
|
break;
|
|
@@ -30454,19 +30225,16 @@ function Tf(t) {
|
|
|
30454
30225
|
function _Q(t, e) {
|
|
30455
30226
|
if (t.eatSpace())
|
|
30456
30227
|
return Ft = "ws", null;
|
|
30457
|
-
if (t.match(m9))
|
|
30458
|
-
return "number";
|
|
30228
|
+
if (t.match(m9)) return "number";
|
|
30459
30229
|
var i = t.next();
|
|
30460
|
-
if (i == "\\" && (i = t.next()), i == '"')
|
|
30461
|
-
return (e.tokenize = S9)(t, e);
|
|
30230
|
+
if (i == "\\" && (i = t.next()), i == '"') return (e.tokenize = S9)(t, e);
|
|
30462
30231
|
if (i == "(")
|
|
30463
30232
|
return Ft = "open", "bracket";
|
|
30464
30233
|
if (i == ")")
|
|
30465
30234
|
return Ft = "close", "bracket";
|
|
30466
30235
|
if (i == ";")
|
|
30467
30236
|
return t.skipToEnd(), Ft = "ws", "comment";
|
|
30468
|
-
if (/['`,@]/.test(i))
|
|
30469
|
-
return null;
|
|
30237
|
+
if (/['`,@]/.test(i)) return null;
|
|
30470
30238
|
if (i == "|")
|
|
30471
30239
|
return t.skipTo("|") ? (t.next(), "variableName") : (t.skipToEnd(), "error");
|
|
30472
30240
|
if (i == "#") {
|
|
@@ -30569,8 +30337,7 @@ const QP = {
|
|
|
30569
30337
|
for (; e.context && e.context.type === "pattern"; )
|
|
30570
30338
|
wf(e);
|
|
30571
30339
|
e.context && zO === e.context.type && wf(e);
|
|
30572
|
-
} else
|
|
30573
|
-
zO === "." && e.context && e.context.type === "pattern" ? wf(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? yl(e, "pattern", t.column()) : e.context.type === "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
30340
|
+
} else zO === "." && e.context && e.context.type === "pattern" ? wf(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? yl(e, "pattern", t.column()) : e.context.type === "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
30574
30341
|
return i;
|
|
30575
30342
|
},
|
|
30576
30343
|
indent: function(t, e, i) {
|
|
@@ -30692,8 +30459,7 @@ function Ox(t) {
|
|
|
30692
30459
|
t.doubleDelimiters,
|
|
30693
30460
|
t.tripleDelimiters,
|
|
30694
30461
|
t.operators || /^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/
|
|
30695
|
-
], n = 0; n < O.length; n++)
|
|
30696
|
-
O[n] || O.splice(n--, 1);
|
|
30462
|
+
], n = 0; n < O.length; n++) O[n] || O.splice(n--, 1);
|
|
30697
30463
|
var r = t.hangingIndent, a = pP, o = mP;
|
|
30698
30464
|
t.extra_keywords != null && (a = a.concat(t.extra_keywords)), t.extra_builtins != null && (o = o.concat(t.extra_builtins));
|
|
30699
30465
|
var l = !(t.version && Number(t.version) < 3);
|
|
@@ -30739,10 +30505,8 @@ function Ox(t) {
|
|
|
30739
30505
|
return $(X, k);
|
|
30740
30506
|
}
|
|
30741
30507
|
function $(X, k, b) {
|
|
30742
|
-
if (X.eatSpace())
|
|
30743
|
-
|
|
30744
|
-
if (!b && X.match(/^#.*/))
|
|
30745
|
-
return "comment";
|
|
30508
|
+
if (X.eatSpace()) return null;
|
|
30509
|
+
if (!b && X.match(/^#.*/)) return "comment";
|
|
30746
30510
|
if (X.match(/^[0-9\.]/, !1)) {
|
|
30747
30511
|
var x = !1;
|
|
30748
30512
|
if (X.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i) && (x = !0), X.match(/^[\d_]+\.\d*/) && (x = !0), X.match(/^\.\d+/) && (x = !0), x)
|
|
@@ -30756,8 +30520,7 @@ function Ox(t) {
|
|
|
30756
30520
|
return W ? (k.tokenize = p(X.current(), k.tokenize), k.tokenize(X, k)) : (k.tokenize = m(X.current(), k.tokenize), k.tokenize(X, k));
|
|
30757
30521
|
}
|
|
30758
30522
|
for (var Z = 0; Z < O.length; Z++)
|
|
30759
|
-
if (X.match(O[Z]))
|
|
30760
|
-
return "operator";
|
|
30523
|
+
if (X.match(O[Z])) return "operator";
|
|
30761
30524
|
return X.match(i) ? "punctuation" : k.lastToken == "." && X.match(s) ? "property" : X.match(u) || X.match(k9) ? "keyword" : X.match(d) ? "builtin" : X.match(/^(self|cls)\b/) ? "self" : X.match(s) ? k.lastToken == "def" || k.lastToken == "class" ? "def" : "variable" : (X.next(), b ? null : e);
|
|
30762
30525
|
}
|
|
30763
30526
|
function p(X, k) {
|
|
@@ -30821,8 +30584,7 @@ function Ox(t) {
|
|
|
30821
30584
|
return g.isString = !0, g;
|
|
30822
30585
|
}
|
|
30823
30586
|
function S(X, k) {
|
|
30824
|
-
for (; gi(k).type != "py"; )
|
|
30825
|
-
k.scopes.pop();
|
|
30587
|
+
for (; gi(k).type != "py"; ) k.scopes.pop();
|
|
30826
30588
|
k.scopes.push({
|
|
30827
30589
|
offset: gi(k).offset + X.indentUnit,
|
|
30828
30590
|
type: "py",
|
|
@@ -30839,8 +30601,7 @@ function Ox(t) {
|
|
|
30839
30601
|
}
|
|
30840
30602
|
function w(X, k) {
|
|
30841
30603
|
for (var b = X.indentation(); k.scopes.length > 1 && gi(k).offset > b; ) {
|
|
30842
|
-
if (gi(k).type != "py")
|
|
30843
|
-
return !0;
|
|
30604
|
+
if (gi(k).type != "py") return !0;
|
|
30844
30605
|
k.scopes.pop();
|
|
30845
30606
|
}
|
|
30846
30607
|
return gi(k).offset != b;
|
|
@@ -30853,10 +30614,8 @@ function Ox(t) {
|
|
|
30853
30614
|
if (/\S/.test(x) && (k.beginningOfLine = !1), (b == "variable" || b == "builtin") && k.lastToken == "meta" && (b = "meta"), (x == "pass" || x == "return") && (k.dedent = !0), x == "lambda" && (k.lambda = !0), x == ":" && !k.lambda && gi(k).type == "py" && X.match(/^\s*(?:#|$)/, !1) && S(X, k), x.length == 1 && !/string|comment/.test(b)) {
|
|
30854
30615
|
var g = "[({".indexOf(x);
|
|
30855
30616
|
if (g != -1 && y(X, k, "])}".slice(g, g + 1)), g = "])}".indexOf(x), g != -1)
|
|
30856
|
-
if (gi(k).type == x)
|
|
30857
|
-
|
|
30858
|
-
else
|
|
30859
|
-
return e;
|
|
30617
|
+
if (gi(k).type == x) k.indent = k.scopes.pop().offset - (r || X.indentUnit);
|
|
30618
|
+
else return e;
|
|
30860
30619
|
}
|
|
30861
30620
|
return k.dedent && X.eol() && gi(k).type == "py" && k.scopes.length > 1 && k.scopes.pop(), b;
|
|
30862
30621
|
}
|
|
@@ -31114,8 +30873,7 @@ const C9 = {
|
|
|
31114
30873
|
}
|
|
31115
30874
|
};
|
|
31116
30875
|
function Tl(t) {
|
|
31117
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
31118
|
-
e[i[O]] = !0;
|
|
30876
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
31119
30877
|
return e;
|
|
31120
30878
|
}
|
|
31121
30879
|
var PP = "body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";
|
|
@@ -31135,8 +30893,7 @@ function XP(t, e) {
|
|
|
31135
30893
|
var i = t.next();
|
|
31136
30894
|
if (yP[i]) {
|
|
31137
30895
|
var O = yP[i](t, e);
|
|
31138
|
-
if (O !== !1)
|
|
31139
|
-
return O;
|
|
30896
|
+
if (O !== !1) return O;
|
|
31140
30897
|
}
|
|
31141
30898
|
if (i == '"' || i == "'" || i == "`")
|
|
31142
30899
|
return e.tokenize = L9(i), e.tokenize(t, e);
|
|
@@ -31213,32 +30970,22 @@ const N9 = {
|
|
|
31213
30970
|
},
|
|
31214
30971
|
token: function(t, e) {
|
|
31215
30972
|
var i = e.context;
|
|
31216
|
-
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace())
|
|
31217
|
-
return null;
|
|
30973
|
+
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace()) return null;
|
|
31218
30974
|
Zt = null;
|
|
31219
30975
|
var O = (e.tokenize || XP)(t, e);
|
|
31220
|
-
if (O == "comment" || O == "meta")
|
|
31221
|
-
|
|
31222
|
-
if (
|
|
31223
|
-
|
|
31224
|
-
else if (Zt == "
|
|
31225
|
-
Xl(e, t.column(), "}");
|
|
31226
|
-
else if (Zt == "[")
|
|
31227
|
-
Xl(e, t.column(), "]");
|
|
31228
|
-
else if (Zt == "(")
|
|
31229
|
-
Xl(e, t.column(), ")");
|
|
30976
|
+
if (O == "comment" || O == "meta") return O;
|
|
30977
|
+
if (i.align == null && (i.align = !0), (Zt == ";" || Zt == ":" || Zt == ",") && i.type == "statement") aa(e);
|
|
30978
|
+
else if (Zt == "{") Xl(e, t.column(), "}");
|
|
30979
|
+
else if (Zt == "[") Xl(e, t.column(), "]");
|
|
30980
|
+
else if (Zt == "(") Xl(e, t.column(), ")");
|
|
31230
30981
|
else if (Zt == "}") {
|
|
31231
|
-
for (; i.type == "statement"; )
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
i = aa(e);
|
|
31235
|
-
} else
|
|
31236
|
-
Zt == i.type ? aa(e) : ((i.type == "}" || i.type == "top") && Zt != ";" || i.type == "statement" && Zt == "newstatement") && Xl(e, t.column(), "statement");
|
|
30982
|
+
for (; i.type == "statement"; ) i = aa(e);
|
|
30983
|
+
for (i.type == "}" && (i = aa(e)); i.type == "statement"; ) i = aa(e);
|
|
30984
|
+
} else Zt == i.type ? aa(e) : ((i.type == "}" || i.type == "top") && Zt != ";" || i.type == "statement" && Zt == "newstatement") && Xl(e, t.column(), "statement");
|
|
31237
30985
|
return e.startOfLine = !1, O;
|
|
31238
30986
|
},
|
|
31239
30987
|
indent: function(t, e, i) {
|
|
31240
|
-
if (t.tokenize != XP && t.tokenize != null)
|
|
31241
|
-
return null;
|
|
30988
|
+
if (t.tokenize != XP && t.tokenize != null) return null;
|
|
31242
30989
|
var O = t.context, n = e && e.charAt(0);
|
|
31243
30990
|
O.type == "statement" && n == "}" && (O = O.prev);
|
|
31244
30991
|
var r = n == O.type;
|
|
@@ -31273,26 +31020,20 @@ function Lc(t, e) {
|
|
|
31273
31020
|
if (i == "<" && t.eat("!")) {
|
|
31274
31021
|
if (t.eatWhile(/[\-]/))
|
|
31275
31022
|
return e.tokenize = _P, _P(t, e);
|
|
31276
|
-
if (t.eatWhile(/[\w]/))
|
|
31277
|
-
return Pi("keyword", "doindent");
|
|
31023
|
+
if (t.eatWhile(/[\w]/)) return Pi("keyword", "doindent");
|
|
31278
31024
|
} else {
|
|
31279
31025
|
if (i == "<" && t.eat("?"))
|
|
31280
31026
|
return e.tokenize = B9("meta", "?>"), Pi("meta", i);
|
|
31281
|
-
if (i == "#" && t.eatWhile(/[\w]/))
|
|
31282
|
-
|
|
31283
|
-
if (i
|
|
31284
|
-
|
|
31285
|
-
if (i.match(/[\(\)\[\]\-\.,\+\?>]/))
|
|
31286
|
-
return Pi(null, i);
|
|
31287
|
-
if (i.match(/[\[\]]/))
|
|
31288
|
-
return Pi("rule", i);
|
|
31027
|
+
if (i == "#" && t.eatWhile(/[\w]/)) return Pi("atom", "tag");
|
|
31028
|
+
if (i == "|") return Pi("keyword", "separator");
|
|
31029
|
+
if (i.match(/[\(\)\[\]\-\.,\+\?>]/)) return Pi(null, i);
|
|
31030
|
+
if (i.match(/[\[\]]/)) return Pi("rule", i);
|
|
31289
31031
|
if (i == '"' || i == "'")
|
|
31290
31032
|
return e.tokenize = M9(i), e.tokenize(t, e);
|
|
31291
31033
|
if (t.eatWhile(/[a-zA-Z\?\+\d]/)) {
|
|
31292
31034
|
var O = t.current();
|
|
31293
31035
|
return O.substr(O.length - 1, O.length).match(/\?|\+/) !== null && t.backUp(1), Pi("tag", "tag");
|
|
31294
|
-
} else
|
|
31295
|
-
return i == "%" || i == "*" ? Pi("number", "number") : (t.eatWhile(/[\w\\\-_%.{,]/), Pi(null, null));
|
|
31036
|
+
} else return i == "%" || i == "*" ? Pi("number", "number") : (t.eatWhile(/[\w\\\-_%.{,]/), Pi(null, null));
|
|
31296
31037
|
}
|
|
31297
31038
|
}
|
|
31298
31039
|
function _P(t, e) {
|
|
@@ -31339,8 +31080,7 @@ const F9 = {
|
|
|
31339
31080
|
};
|
|
31340
31081
|
},
|
|
31341
31082
|
token: function(t, e) {
|
|
31342
|
-
if (t.eatSpace())
|
|
31343
|
-
return null;
|
|
31083
|
+
if (t.eatSpace()) return null;
|
|
31344
31084
|
var i = e.tokenize(t, e), O = e.stack[e.stack.length - 1];
|
|
31345
31085
|
return t.current() == "[" || $t === "doindent" || $t == "[" ? e.stack.push("rule") : $t === "endtag" ? e.stack[e.stack.length - 1] = "endtag" : t.current() == "]" || $t == "]" || $t == ">" && O == "rule" ? e.stack.pop() : $t == "[" && e.stack.push("["), i;
|
|
31346
31086
|
},
|
|
@@ -31353,13 +31093,10 @@ const F9 = {
|
|
|
31353
31093
|
}
|
|
31354
31094
|
};
|
|
31355
31095
|
function RP(t, e) {
|
|
31356
|
-
for (var i = 0; i < t.length; i++)
|
|
31357
|
-
e(t[i], i);
|
|
31096
|
+
for (var i = 0; i < t.length; i++) e(t[i], i);
|
|
31358
31097
|
}
|
|
31359
31098
|
function H9(t, e) {
|
|
31360
|
-
for (var i = 0; i < t.length; i++)
|
|
31361
|
-
if (e(t[i], i))
|
|
31362
|
-
return !0;
|
|
31099
|
+
for (var i = 0; i < t.length; i++) if (e(t[i], i)) return !0;
|
|
31363
31100
|
return !1;
|
|
31364
31101
|
}
|
|
31365
31102
|
var Ot = {
|
|
@@ -31551,8 +31288,7 @@ function eI(t, e) {
|
|
|
31551
31288
|
e.tokenize = qQ;
|
|
31552
31289
|
break;
|
|
31553
31290
|
}
|
|
31554
|
-
else
|
|
31555
|
-
r == "*" && O && n++;
|
|
31291
|
+
else r == "*" && O && n++;
|
|
31556
31292
|
i = r == "*", O = r == "/";
|
|
31557
31293
|
}
|
|
31558
31294
|
return "comment";
|
|
@@ -31588,8 +31324,7 @@ const qf = {
|
|
|
31588
31324
|
}
|
|
31589
31325
|
};
|
|
31590
31326
|
function En(t) {
|
|
31591
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
31592
|
-
e[i[O]] = !0;
|
|
31327
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
31593
31328
|
return e;
|
|
31594
31329
|
}
|
|
31595
31330
|
function tI(t, e) {
|
|
@@ -31600,8 +31335,7 @@ function Ms(t, e) {
|
|
|
31600
31335
|
var i = t.next();
|
|
31601
31336
|
if (ZP[i]) {
|
|
31602
31337
|
var O = ZP[i](t, e);
|
|
31603
|
-
if (O !== !1)
|
|
31604
|
-
return O;
|
|
31338
|
+
if (O !== !1) return O;
|
|
31605
31339
|
}
|
|
31606
31340
|
if (i == '"' || i == "'")
|
|
31607
31341
|
return e.tokenize = oI(i), e.tokenize(t, e);
|
|
@@ -31682,32 +31416,22 @@ const lI = {
|
|
|
31682
31416
|
},
|
|
31683
31417
|
token: function(t, e) {
|
|
31684
31418
|
var i = e.context;
|
|
31685
|
-
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace())
|
|
31686
|
-
return null;
|
|
31419
|
+
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace()) return null;
|
|
31687
31420
|
pt = null;
|
|
31688
31421
|
var O = (e.tokenize || Ms)(t, e);
|
|
31689
|
-
if (O == "comment" || O == "meta")
|
|
31690
|
-
|
|
31691
|
-
if (
|
|
31692
|
-
|
|
31693
|
-
else if (pt == "
|
|
31694
|
-
wl(e, t.column(), "}");
|
|
31695
|
-
else if (pt == "[")
|
|
31696
|
-
wl(e, t.column(), "]");
|
|
31697
|
-
else if (pt == "(")
|
|
31698
|
-
wl(e, t.column(), ")");
|
|
31422
|
+
if (O == "comment" || O == "meta") return O;
|
|
31423
|
+
if (i.align == null && (i.align = !0), (pt == ";" || pt == ":") && i.type == "statement") oa(e);
|
|
31424
|
+
else if (pt == "{") wl(e, t.column(), "}");
|
|
31425
|
+
else if (pt == "[") wl(e, t.column(), "]");
|
|
31426
|
+
else if (pt == "(") wl(e, t.column(), ")");
|
|
31699
31427
|
else if (pt == "}") {
|
|
31700
|
-
for (; i.type == "statement"; )
|
|
31701
|
-
|
|
31702
|
-
|
|
31703
|
-
i = oa(e);
|
|
31704
|
-
} else
|
|
31705
|
-
pt == i.type ? oa(e) : (i.type == "}" || i.type == "top" || i.type == "statement" && pt == "newstatement") && wl(e, t.column(), "statement");
|
|
31428
|
+
for (; i.type == "statement"; ) i = oa(e);
|
|
31429
|
+
for (i.type == "}" && (i = oa(e)); i.type == "statement"; ) i = oa(e);
|
|
31430
|
+
} else pt == i.type ? oa(e) : (i.type == "}" || i.type == "top" || i.type == "statement" && pt == "newstatement") && wl(e, t.column(), "statement");
|
|
31706
31431
|
return e.startOfLine = !1, O;
|
|
31707
31432
|
},
|
|
31708
31433
|
indent: function(t, e, i) {
|
|
31709
|
-
if (t.tokenize != Ms && t.tokenize != null)
|
|
31710
|
-
return 0;
|
|
31434
|
+
if (t.tokenize != Ms && t.tokenize != null) return 0;
|
|
31711
31435
|
var O = t.context, n = e && e.charAt(0);
|
|
31712
31436
|
O.type == "statement" && n == "}" && (O = O.prev);
|
|
31713
31437
|
var r = n == O.type;
|
|
@@ -31718,8 +31442,7 @@ const lI = {
|
|
|
31718
31442
|
}
|
|
31719
31443
|
};
|
|
31720
31444
|
function ux(t) {
|
|
31721
|
-
for (var e = {}, i = 0, O = t.length; i < O; ++i)
|
|
31722
|
-
e[t[i]] = !0;
|
|
31445
|
+
for (var e = {}, i = 0, O = t.length; i < O; ++i) e[t[i]] = !0;
|
|
31723
31446
|
return e;
|
|
31724
31447
|
}
|
|
31725
31448
|
var sI = ux([
|
|
@@ -31792,8 +31515,7 @@ function uI(t, e, i) {
|
|
|
31792
31515
|
return i.tokenize.push(t), t(e, i);
|
|
31793
31516
|
}
|
|
31794
31517
|
function fI(t, e) {
|
|
31795
|
-
if (t.eatSpace())
|
|
31796
|
-
return null;
|
|
31518
|
+
if (t.eatSpace()) return null;
|
|
31797
31519
|
var i = t.next();
|
|
31798
31520
|
return i == '"' || i == "'" ? uI(dI(i, "string"), t, e) : i == "-" && t.eat("-") ? (t.skipToEnd(), "comment") : i == ":" && t.eat("=") ? "operator" : /[0-9]/.test(i) ? (t.eatWhile(/[xXbBCc0-9\.]/), t.eat(/[\?\!]/), "variable") : /[a-zA-Z_0-9]/.test(i) ? (t.eatWhile(/[a-zA-Z_0-9]/), t.eat(/[\?\!]/), "variable") : /[=+\-\/*^%<>~]/.test(i) ? (t.eatWhile(/[=+\-\/*^%<>~]/), "operator") : null;
|
|
31799
31521
|
}
|
|
@@ -32303,8 +32025,7 @@ function AI(t, e) {
|
|
|
32303
32025
|
return 0 < i && t[i].type === "record" && e.type === "dot" ? t.pop() : (0 < i && t[i].type === "group" && t.pop(), t.push(e)), t;
|
|
32304
32026
|
}
|
|
32305
32027
|
function II(t) {
|
|
32306
|
-
if (!t.length)
|
|
32307
|
-
return t;
|
|
32028
|
+
if (!t.length) return t;
|
|
32308
32029
|
var e = t.length - 1;
|
|
32309
32030
|
if (t[e].type === "dot")
|
|
32310
32031
|
return [];
|
|
@@ -32419,12 +32140,11 @@ const BI = {
|
|
|
32419
32140
|
function Qx(t) {
|
|
32420
32141
|
px(t, "start");
|
|
32421
32142
|
var e = {}, i = t.languageData || {}, O = !1;
|
|
32422
|
-
for (var n in t)
|
|
32423
|
-
|
|
32424
|
-
|
|
32425
|
-
|
|
32426
|
-
|
|
32427
|
-
}
|
|
32143
|
+
for (var n in t) if (n != i && t.hasOwnProperty(n))
|
|
32144
|
+
for (var r = e[n] = [], a = t[n], o = 0; o < a.length; o++) {
|
|
32145
|
+
var l = a[o];
|
|
32146
|
+
r.push(new KI(l, t)), (l.indent || l.dedent) && (O = !0);
|
|
32147
|
+
}
|
|
32428
32148
|
return {
|
|
32429
32149
|
name: i.name,
|
|
32430
32150
|
startState: function() {
|
|
@@ -32445,18 +32165,14 @@ function px(t, e) {
|
|
|
32445
32165
|
throw new Error("Undefined state " + e + " in simple mode");
|
|
32446
32166
|
}
|
|
32447
32167
|
function FI(t, e) {
|
|
32448
|
-
if (!t)
|
|
32449
|
-
return /(?:)/;
|
|
32168
|
+
if (!t) return /(?:)/;
|
|
32450
32169
|
var i = "";
|
|
32451
32170
|
return t instanceof RegExp ? (t.ignoreCase && (i = "i"), t.unicode && (i += "u"), t = t.source) : t = String(t), new RegExp("^(?:" + t + ")", i);
|
|
32452
32171
|
}
|
|
32453
32172
|
function HI(t) {
|
|
32454
|
-
if (!t)
|
|
32455
|
-
|
|
32456
|
-
if (t.
|
|
32457
|
-
return t;
|
|
32458
|
-
if (typeof t == "string")
|
|
32459
|
-
return t.replace(/\./g, " ");
|
|
32173
|
+
if (!t) return null;
|
|
32174
|
+
if (t.apply) return t;
|
|
32175
|
+
if (typeof t == "string") return t.replace(/\./g, " ");
|
|
32460
32176
|
for (var e = [], i = 0; i < t.length; i++)
|
|
32461
32177
|
e.push(t[i] && t[i].replace(/\./g, " "));
|
|
32462
32178
|
return e;
|
|
@@ -32480,8 +32196,7 @@ function JI(t) {
|
|
|
32480
32196
|
for (var s = 2; s < o.length; s++)
|
|
32481
32197
|
o[s] && i.pending.push({ text: o[s], token: a.token[s - 1] });
|
|
32482
32198
|
return e.backUp(o[0].length - (o[1] ? o[1].length : 0)), l[0];
|
|
32483
|
-
} else
|
|
32484
|
-
return l && l.join ? l[0] : l;
|
|
32199
|
+
} else return l && l.join ? l[0] : l;
|
|
32485
32200
|
}
|
|
32486
32201
|
}
|
|
32487
32202
|
return e.next(), null;
|
|
@@ -32492,20 +32207,19 @@ function e3(t, e) {
|
|
|
32492
32207
|
if (i.indent == null || e.dontIndentStates && e.dontIndentStates.indexOf(i.state) > -1)
|
|
32493
32208
|
return null;
|
|
32494
32209
|
var n = i.indent.length - 1, r = t[i.state];
|
|
32495
|
-
e:
|
|
32496
|
-
for (; ; ) {
|
|
32497
|
-
|
|
32498
|
-
|
|
32499
|
-
|
|
32500
|
-
|
|
32501
|
-
|
|
32502
|
-
|
|
32503
|
-
continue e;
|
|
32504
|
-
}
|
|
32210
|
+
e: for (; ; ) {
|
|
32211
|
+
for (var a = 0; a < r.length; a++) {
|
|
32212
|
+
var o = r[a];
|
|
32213
|
+
if (o.data.dedent && o.data.dedentIfLineStart !== !1) {
|
|
32214
|
+
var l = o.regex.exec(O);
|
|
32215
|
+
if (l && l[0]) {
|
|
32216
|
+
n--, (o.next || o.push) && (r = t[o.next || o.push]), O = O.slice(l[0].length);
|
|
32217
|
+
continue e;
|
|
32505
32218
|
}
|
|
32506
32219
|
}
|
|
32507
|
-
break;
|
|
32508
32220
|
}
|
|
32221
|
+
break;
|
|
32222
|
+
}
|
|
32509
32223
|
return n < 0 ? 0 : i.indent[n];
|
|
32510
32224
|
};
|
|
32511
32225
|
}
|
|
@@ -33061,8 +32775,7 @@ const sa = {
|
|
|
33061
32775
|
return { tokenize: null };
|
|
33062
32776
|
},
|
|
33063
32777
|
token: function(t, e) {
|
|
33064
|
-
if (t.eatSpace())
|
|
33065
|
-
return null;
|
|
32778
|
+
if (t.eatSpace()) return null;
|
|
33066
32779
|
var i = (e.tokenize || l3)(t, e);
|
|
33067
32780
|
return i == "comment" || i == "meta", i;
|
|
33068
32781
|
}
|
|
@@ -33546,8 +33259,7 @@ const f3 = {
|
|
|
33546
33259
|
}
|
|
33547
33260
|
};
|
|
33548
33261
|
function Nc(t) {
|
|
33549
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
33550
|
-
e[i[O]] = !0;
|
|
33262
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
33551
33263
|
return e;
|
|
33552
33264
|
}
|
|
33553
33265
|
var d3 = Nc(
|
|
@@ -33575,8 +33287,7 @@ function zQ(t, e) {
|
|
|
33575
33287
|
return t.eatWhile(/[+\-*&%=<>|~]/), "operator";
|
|
33576
33288
|
if (t.eatWhile(/[\w\$_]/), i == "@")
|
|
33577
33289
|
return t.eatWhile(/[\w\$_\.]/), "meta";
|
|
33578
|
-
if (e.lastToken == ".")
|
|
33579
|
-
return "property";
|
|
33290
|
+
if (e.lastToken == ".") return "property";
|
|
33580
33291
|
if (t.eat(":"))
|
|
33581
33292
|
return Qt = "proplabel", "property";
|
|
33582
33293
|
var O = t.current();
|
|
@@ -33586,10 +33297,8 @@ zQ.isBase = !0;
|
|
|
33586
33297
|
function IP(t, e, i) {
|
|
33587
33298
|
var O = !1;
|
|
33588
33299
|
if (t != "/" && e.eat(t))
|
|
33589
|
-
if (e.eat(t))
|
|
33590
|
-
|
|
33591
|
-
else
|
|
33592
|
-
return "string";
|
|
33300
|
+
if (e.eat(t)) O = !0;
|
|
33301
|
+
else return "string";
|
|
33593
33302
|
function n(r, a) {
|
|
33594
33303
|
for (var o = !1, l, s = !O; (l = r.next()) != null; ) {
|
|
33595
33304
|
if (l == t && !o) {
|
|
@@ -33618,8 +33327,7 @@ function p3() {
|
|
|
33618
33327
|
if (i.peek() == "}") {
|
|
33619
33328
|
if (t--, t == 0)
|
|
33620
33329
|
return O.tokenize.pop(), O.tokenize[O.tokenize.length - 1](i, O);
|
|
33621
|
-
} else
|
|
33622
|
-
i.peek() == "{" && t++;
|
|
33330
|
+
} else i.peek() == "{" && t++;
|
|
33623
33331
|
return zQ(i, O);
|
|
33624
33332
|
}
|
|
33625
33333
|
return e.isBase = !0, e;
|
|
@@ -33664,34 +33372,24 @@ const LP = {
|
|
|
33664
33372
|
},
|
|
33665
33373
|
token: function(t, e) {
|
|
33666
33374
|
var i = e.context;
|
|
33667
|
-
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0, i.type == "statement" && !Ah(e.lastToken, !0) && (on(e), i = e.context)), t.eatSpace())
|
|
33668
|
-
return null;
|
|
33375
|
+
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0, i.type == "statement" && !Ah(e.lastToken, !0) && (on(e), i = e.context)), t.eatSpace()) return null;
|
|
33669
33376
|
Qt = null;
|
|
33670
33377
|
var O = e.tokenize[e.tokenize.length - 1](t, e);
|
|
33671
|
-
if (O == "comment")
|
|
33672
|
-
|
|
33673
|
-
if (i.align == null && (i.align = !0), (Qt == ";" || Qt == ":") && i.type == "statement")
|
|
33674
|
-
on(e);
|
|
33378
|
+
if (O == "comment") return O;
|
|
33379
|
+
if (i.align == null && (i.align = !0), (Qt == ";" || Qt == ":") && i.type == "statement") on(e);
|
|
33675
33380
|
else if (Qt == "->" && i.type == "statement" && i.prev.type == "}")
|
|
33676
33381
|
on(e), e.context.align = !1;
|
|
33677
|
-
else if (Qt == "{")
|
|
33678
|
-
|
|
33679
|
-
else if (Qt == "
|
|
33680
|
-
Rl(e, t.column(), "]");
|
|
33681
|
-
else if (Qt == "(")
|
|
33682
|
-
Rl(e, t.column(), ")");
|
|
33382
|
+
else if (Qt == "{") Rl(e, t.column(), "}");
|
|
33383
|
+
else if (Qt == "[") Rl(e, t.column(), "]");
|
|
33384
|
+
else if (Qt == "(") Rl(e, t.column(), ")");
|
|
33683
33385
|
else if (Qt == "}") {
|
|
33684
|
-
for (; i.type == "statement"; )
|
|
33685
|
-
|
|
33686
|
-
|
|
33687
|
-
i = on(e);
|
|
33688
|
-
} else
|
|
33689
|
-
Qt == i.type ? on(e) : (i.type == "}" || i.type == "top" || i.type == "statement" && Qt == "newstatement") && Rl(e, t.column(), "statement");
|
|
33386
|
+
for (; i.type == "statement"; ) i = on(e);
|
|
33387
|
+
for (i.type == "}" && (i = on(e)); i.type == "statement"; ) i = on(e);
|
|
33388
|
+
} else Qt == i.type ? on(e) : (i.type == "}" || i.type == "top" || i.type == "statement" && Qt == "newstatement") && Rl(e, t.column(), "statement");
|
|
33690
33389
|
return e.startOfLine = !1, e.lastToken = Qt || O, O;
|
|
33691
33390
|
},
|
|
33692
33391
|
indent: function(t, e, i) {
|
|
33693
|
-
if (!t.tokenize[t.tokenize.length - 1].isBase)
|
|
33694
|
-
return null;
|
|
33392
|
+
if (!t.tokenize[t.tokenize.length - 1].isBase) return null;
|
|
33695
33393
|
var O = e && e.charAt(0), n = t.context;
|
|
33696
33394
|
n.type == "statement" && !Ah(t.lastToken, !0) && (n = n.prev);
|
|
33697
33395
|
var r = O == n.type;
|
|
@@ -33767,7 +33465,7 @@ function yx(t, e) {
|
|
|
33767
33465
|
function T3(t, e) {
|
|
33768
33466
|
return t.eat("\\") ? Ih(t, e, yx) : (t.next(), e(vr), "error");
|
|
33769
33467
|
}
|
|
33770
|
-
var MP = function() {
|
|
33468
|
+
var MP = (function() {
|
|
33771
33469
|
var t = {};
|
|
33772
33470
|
function e(i) {
|
|
33773
33471
|
return function() {
|
|
@@ -34056,7 +33754,7 @@ var MP = function() {
|
|
|
34056
33754
|
"zipWith",
|
|
34057
33755
|
"zipWith3"
|
|
34058
33756
|
), t;
|
|
34059
|
-
}();
|
|
33757
|
+
})();
|
|
34060
33758
|
const X3 = {
|
|
34061
33759
|
name: "haskell",
|
|
34062
33760
|
startState: function() {
|
|
@@ -34183,8 +33881,7 @@ function kx(t, e, i, O, n, r) {
|
|
|
34183
33881
|
}
|
|
34184
33882
|
function v3(t, e) {
|
|
34185
33883
|
for (var i = t.localVars; i; i = i.next)
|
|
34186
|
-
if (i.name == e)
|
|
34187
|
-
return !0;
|
|
33884
|
+
if (i.name == e) return !0;
|
|
34188
33885
|
}
|
|
34189
33886
|
function _3(t, e, i, O, n) {
|
|
34190
33887
|
var r = t.cc;
|
|
@@ -34201,38 +33898,32 @@ function R3(t, e) {
|
|
|
34201
33898
|
if (/[a-z]/.test(e.charAt(0)))
|
|
34202
33899
|
return !1;
|
|
34203
33900
|
for (var i = t.importedtypes.length, O = 0; O < i; O++)
|
|
34204
|
-
if (t.importedtypes[O] == e)
|
|
34205
|
-
return !0;
|
|
33901
|
+
if (t.importedtypes[O] == e) return !0;
|
|
34206
33902
|
}
|
|
34207
33903
|
function xx(t) {
|
|
34208
33904
|
for (var e = Ze.state, i = e.importedtypes; i; i = i.next)
|
|
34209
|
-
if (i.name == t)
|
|
34210
|
-
return;
|
|
33905
|
+
if (i.name == t) return;
|
|
34211
33906
|
e.importedtypes = { name: t, next: e.importedtypes };
|
|
34212
33907
|
}
|
|
34213
33908
|
var Ze = { state: null, marked: null, cc: null };
|
|
34214
33909
|
function TO() {
|
|
34215
|
-
for (var t = arguments.length - 1; t >= 0; t--)
|
|
34216
|
-
Ze.cc.push(arguments[t]);
|
|
33910
|
+
for (var t = arguments.length - 1; t >= 0; t--) Ze.cc.push(arguments[t]);
|
|
34217
33911
|
}
|
|
34218
33912
|
function H() {
|
|
34219
33913
|
return TO.apply(null, arguments), !0;
|
|
34220
33914
|
}
|
|
34221
33915
|
function KP(t, e) {
|
|
34222
33916
|
for (var i = e; i; i = i.next)
|
|
34223
|
-
if (i.name == t)
|
|
34224
|
-
return !0;
|
|
33917
|
+
if (i.name == t) return !0;
|
|
34225
33918
|
return !1;
|
|
34226
33919
|
}
|
|
34227
33920
|
function Mc(t) {
|
|
34228
33921
|
var e = Ze.state;
|
|
34229
33922
|
if (e.context) {
|
|
34230
|
-
if (Ze.marked = "def", KP(t, e.localVars))
|
|
34231
|
-
return;
|
|
33923
|
+
if (Ze.marked = "def", KP(t, e.localVars)) return;
|
|
34232
33924
|
e.localVars = { name: t, next: e.localVars };
|
|
34233
33925
|
} else if (e.globalVars) {
|
|
34234
|
-
if (KP(t, e.globalVars))
|
|
34235
|
-
return;
|
|
33926
|
+
if (KP(t, e.globalVars)) return;
|
|
34236
33927
|
e.globalVars = { name: t, next: e.globalVars };
|
|
34237
33928
|
}
|
|
34238
33929
|
}
|
|
@@ -34298,42 +33989,30 @@ function Gf(t) {
|
|
|
34298
33989
|
return t.match(/[;\}\)\],]/) ? TO() : TO(di);
|
|
34299
33990
|
}
|
|
34300
33991
|
function Ai(t, e) {
|
|
34301
|
-
if (t == "operator" && /\+\+|--/.test(e))
|
|
34302
|
-
|
|
34303
|
-
if (t == "operator" || t == ":")
|
|
34304
|
-
return H(di);
|
|
33992
|
+
if (t == "operator" && /\+\+|--/.test(e)) return H(Ai);
|
|
33993
|
+
if (t == "operator" || t == ":") return H(di);
|
|
34305
33994
|
if (t != ";") {
|
|
34306
|
-
if (t == "(")
|
|
34307
|
-
|
|
34308
|
-
if (t == "
|
|
34309
|
-
return H(V3, Ai);
|
|
34310
|
-
if (t == "[")
|
|
34311
|
-
return H(tt("]"), di, wt("]"), Ne, Ai);
|
|
33995
|
+
if (t == "(") return H(tt(")"), _r(di, ")"), Ne, Ai);
|
|
33996
|
+
if (t == ".") return H(V3, Ai);
|
|
33997
|
+
if (t == "[") return H(tt("]"), di, wt("]"), Ne, Ai);
|
|
34312
33998
|
}
|
|
34313
33999
|
}
|
|
34314
34000
|
function vx(t) {
|
|
34315
|
-
if (t == "attribute")
|
|
34316
|
-
|
|
34317
|
-
if (t == "
|
|
34318
|
-
return H(go);
|
|
34319
|
-
if (t == "var")
|
|
34320
|
-
return H(VQ);
|
|
34001
|
+
if (t == "attribute") return H(vx);
|
|
34002
|
+
if (t == "function") return H(go);
|
|
34003
|
+
if (t == "var") return H(VQ);
|
|
34321
34004
|
}
|
|
34322
34005
|
function Lh(t) {
|
|
34323
|
-
if (t == ":" || t == "variable")
|
|
34324
|
-
|
|
34325
|
-
if (t == "(")
|
|
34326
|
-
return H(tt(")"), _r(Y3, ")"), Ne, QO);
|
|
34006
|
+
if (t == ":" || t == "variable") return H(Lh);
|
|
34007
|
+
if (t == "(") return H(tt(")"), _r(Y3, ")"), Ne, QO);
|
|
34327
34008
|
}
|
|
34328
34009
|
function Y3(t) {
|
|
34329
|
-
if (t == "variable")
|
|
34330
|
-
return H();
|
|
34010
|
+
if (t == "variable") return H();
|
|
34331
34011
|
}
|
|
34332
34012
|
function _x(t, e) {
|
|
34333
34013
|
if (t == "variable" && /[A-Z]/.test(e.charAt(0)))
|
|
34334
34014
|
return xx(e), H();
|
|
34335
|
-
if (t == "variable" || t == "property" || t == "." || e == "*")
|
|
34336
|
-
return H(_x);
|
|
34015
|
+
if (t == "variable" || t == "property" || t == "." || e == "*") return H(_x);
|
|
34337
34016
|
}
|
|
34338
34017
|
function Z3(t, e) {
|
|
34339
34018
|
if (t == "variable" && /[A-Z]/.test(e.charAt(0)))
|
|
@@ -34349,8 +34028,7 @@ function V3(t) {
|
|
|
34349
34028
|
return Ze.marked = "property", H();
|
|
34350
34029
|
}
|
|
34351
34030
|
function U3(t) {
|
|
34352
|
-
if (t == "variable" && (Ze.marked = "property"), wx.hasOwnProperty(t))
|
|
34353
|
-
return H(wt(":"), di);
|
|
34031
|
+
if (t == "variable" && (Ze.marked = "property"), wx.hasOwnProperty(t)) return H(wt(":"), di);
|
|
34354
34032
|
}
|
|
34355
34033
|
function _r(t, e) {
|
|
34356
34034
|
function i(O) {
|
|
@@ -34367,39 +34045,30 @@ function VQ(t, e) {
|
|
|
34367
34045
|
return t == "variable" ? (Mc(e), H(Bc, Rx)) : H();
|
|
34368
34046
|
}
|
|
34369
34047
|
function Rx(t, e) {
|
|
34370
|
-
if (e == "=")
|
|
34371
|
-
|
|
34372
|
-
if (t == ",")
|
|
34373
|
-
return H(VQ);
|
|
34048
|
+
if (e == "=") return H(di, Rx);
|
|
34049
|
+
if (t == ",") return H(VQ);
|
|
34374
34050
|
}
|
|
34375
34051
|
function W3(t, e) {
|
|
34376
34052
|
return t == "variable" ? (Mc(e), H(E3, di)) : TO();
|
|
34377
34053
|
}
|
|
34378
34054
|
function E3(t, e) {
|
|
34379
|
-
if (e == "in")
|
|
34380
|
-
return H();
|
|
34055
|
+
if (e == "in") return H();
|
|
34381
34056
|
}
|
|
34382
34057
|
function go(t, e) {
|
|
34383
34058
|
if (t == "variable" || t == "type")
|
|
34384
34059
|
return Mc(e), H(go);
|
|
34385
|
-
if (e == "new")
|
|
34386
|
-
|
|
34387
|
-
if (t == "(")
|
|
34388
|
-
return H(tt(")"), Dh, _r(qx, ")"), Ne, Bc, QO, Hs);
|
|
34060
|
+
if (e == "new") return H(go);
|
|
34061
|
+
if (t == "(") return H(tt(")"), Dh, _r(qx, ")"), Ne, Bc, QO, Hs);
|
|
34389
34062
|
}
|
|
34390
34063
|
function Bc(t) {
|
|
34391
|
-
if (t == ":")
|
|
34392
|
-
return H(C3);
|
|
34064
|
+
if (t == ":") return H(C3);
|
|
34393
34065
|
}
|
|
34394
34066
|
function C3(t) {
|
|
34395
|
-
if (t == "type" || t == "variable")
|
|
34396
|
-
|
|
34397
|
-
if (t == "{")
|
|
34398
|
-
return H(tt("}"), _r(G3, "}"), Ne);
|
|
34067
|
+
if (t == "type" || t == "variable") return H();
|
|
34068
|
+
if (t == "{") return H(tt("}"), _r(G3, "}"), Ne);
|
|
34399
34069
|
}
|
|
34400
34070
|
function G3(t) {
|
|
34401
|
-
if (t == "variable")
|
|
34402
|
-
return H(Bc);
|
|
34071
|
+
if (t == "variable") return H(Bc);
|
|
34403
34072
|
}
|
|
34404
34073
|
function qx(t, e) {
|
|
34405
34074
|
if (t == "variable")
|
|
@@ -34421,14 +34090,12 @@ const j3 = {
|
|
|
34421
34090
|
return i;
|
|
34422
34091
|
},
|
|
34423
34092
|
token: function(t, e) {
|
|
34424
|
-
if (t.sol() && (e.lexical.hasOwnProperty("align") || (e.lexical.align = !1), e.indented = t.indentation()), t.eatSpace())
|
|
34425
|
-
return null;
|
|
34093
|
+
if (t.sol() && (e.lexical.hasOwnProperty("align") || (e.lexical.align = !1), e.indented = t.indentation()), t.eatSpace()) return null;
|
|
34426
34094
|
var i = e.tokenize(t, e);
|
|
34427
34095
|
return mt == "comment" ? i : (e.reAllowed = !!(mt == "operator" || mt == "keyword c" || mt.match(/^[\[{}\(,;:]$/)), e.kwAllowed = mt != ".", _3(e, i, mt, Xx, t));
|
|
34428
34096
|
},
|
|
34429
34097
|
indent: function(t, e, i) {
|
|
34430
|
-
if (t.tokenize != Fs)
|
|
34431
|
-
return 0;
|
|
34098
|
+
if (t.tokenize != Fs) return 0;
|
|
34432
34099
|
var O = e && e.charAt(0), n = t.lexical;
|
|
34433
34100
|
n.type == "stat" && O == "}" && (n = n.prev);
|
|
34434
34101
|
var r = n.type, a = O == r;
|
|
@@ -35406,7 +35073,7 @@ const F3 = {
|
|
|
35406
35073
|
}
|
|
35407
35074
|
};
|
|
35408
35075
|
function Fc(t) {
|
|
35409
|
-
var e = t.statementIndent, i = t.jsonld, O = t.json || i, n = t.typescript, r = t.wordCharacters || /[\w$\xa1-\uffff]/, a = function() {
|
|
35076
|
+
var e = t.statementIndent, i = t.jsonld, O = t.json || i, n = t.typescript, r = t.wordCharacters || /[\w$\xa1-\uffff]/, a = (function() {
|
|
35410
35077
|
function Q(Gt) {
|
|
35411
35078
|
return { type: Gt, style: "keyword" };
|
|
35412
35079
|
}
|
|
@@ -35454,12 +35121,11 @@ function Fc(t) {
|
|
|
35454
35121
|
extends: M,
|
|
35455
35122
|
await: M
|
|
35456
35123
|
};
|
|
35457
|
-
}(), o = /[+\-*&%=<>!?|~^@]/, l = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
|
35124
|
+
})(), o = /[+\-*&%=<>!?|~^@]/, l = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
|
35458
35125
|
function s(Q) {
|
|
35459
35126
|
for (var P = !1, U, M = !1; (U = Q.next()) != null; ) {
|
|
35460
35127
|
if (!P) {
|
|
35461
|
-
if (U == "/" && !M)
|
|
35462
|
-
return;
|
|
35128
|
+
if (U == "/" && !M) return;
|
|
35463
35129
|
U == "[" ? M = !0 : M && U == "]" && (M = !1);
|
|
35464
35130
|
}
|
|
35465
35131
|
P = !P && U == "\\";
|
|
@@ -35567,8 +35233,7 @@ function Fc(t) {
|
|
|
35567
35233
|
Se = !0;
|
|
35568
35234
|
else if (/["'\/`]/.test(Gt))
|
|
35569
35235
|
for (; ; --xe) {
|
|
35570
|
-
if (xe == 0)
|
|
35571
|
-
return;
|
|
35236
|
+
if (xe == 0) return;
|
|
35572
35237
|
var Nr = Q.string.charAt(xe - 1);
|
|
35573
35238
|
if (Nr == Gt && Q.string.charAt(xe - 2) != "\\") {
|
|
35574
35239
|
xe--;
|
|
@@ -35598,12 +35263,10 @@ function Fc(t) {
|
|
|
35598
35263
|
}
|
|
35599
35264
|
function X(Q, P) {
|
|
35600
35265
|
for (var U = Q.localVars; U; U = U.next)
|
|
35601
|
-
if (U.name == P)
|
|
35602
|
-
return !0;
|
|
35266
|
+
if (U.name == P) return !0;
|
|
35603
35267
|
for (var M = Q.context; M; M = M.prev)
|
|
35604
35268
|
for (var U = M.vars; U; U = U.next)
|
|
35605
|
-
if (U.name == P)
|
|
35606
|
-
return !0;
|
|
35269
|
+
if (U.name == P) return !0;
|
|
35607
35270
|
}
|
|
35608
35271
|
function k(Q, P, U, M, K) {
|
|
35609
35272
|
var Se = Q.cc;
|
|
@@ -35618,16 +35281,13 @@ function Fc(t) {
|
|
|
35618
35281
|
}
|
|
35619
35282
|
var b = { state: null, marked: null, cc: null };
|
|
35620
35283
|
function x() {
|
|
35621
|
-
for (var Q = arguments.length - 1; Q >= 0; Q--)
|
|
35622
|
-
b.cc.push(arguments[Q]);
|
|
35284
|
+
for (var Q = arguments.length - 1; Q >= 0; Q--) b.cc.push(arguments[Q]);
|
|
35623
35285
|
}
|
|
35624
35286
|
function g() {
|
|
35625
35287
|
return x.apply(null, arguments), !0;
|
|
35626
35288
|
}
|
|
35627
35289
|
function W(Q, P) {
|
|
35628
|
-
for (var U = P; U; U = U.next)
|
|
35629
|
-
if (U.name == Q)
|
|
35630
|
-
return !0;
|
|
35290
|
+
for (var U = P; U; U = U.next) if (U.name == Q) return !0;
|
|
35631
35291
|
return !1;
|
|
35632
35292
|
}
|
|
35633
35293
|
function Z(Q) {
|
|
@@ -35651,10 +35311,8 @@ function Fc(t) {
|
|
|
35651
35311
|
if (P.block) {
|
|
35652
35312
|
var U = E(Q, P.prev);
|
|
35653
35313
|
return U ? U == P.prev ? P : new T(U, P.vars, !0) : null;
|
|
35654
|
-
} else
|
|
35655
|
-
|
|
35656
|
-
else
|
|
35657
|
-
return null;
|
|
35314
|
+
} else return W(Q, P.vars) ? P : new T(P.prev, new R(Q, P.vars), !1);
|
|
35315
|
+
else return null;
|
|
35658
35316
|
}
|
|
35659
35317
|
function z(Q) {
|
|
35660
35318
|
return Q == "public" || Q == "private" || Q == "protected" || Q == "abstract" || Q == "readonly";
|
|
@@ -35680,11 +35338,9 @@ function Fc(t) {
|
|
|
35680
35338
|
function C(Q, P) {
|
|
35681
35339
|
var U = function() {
|
|
35682
35340
|
var M = b.state, K = M.indented;
|
|
35683
|
-
if (M.lexical.type == "stat")
|
|
35684
|
-
|
|
35685
|
-
|
|
35686
|
-
for (var Se = M.lexical; Se && Se.type == ")" && Se.align; Se = Se.prev)
|
|
35687
|
-
K = Se.indented;
|
|
35341
|
+
if (M.lexical.type == "stat") K = M.lexical.indented;
|
|
35342
|
+
else for (var Se = M.lexical; Se && Se.type == ")" && Se.align; Se = Se.prev)
|
|
35343
|
+
K = Se.indented;
|
|
35688
35344
|
M.lexical = new Y(K, b.stream.column(), Q, null, M.lexical, P);
|
|
35689
35345
|
};
|
|
35690
35346
|
return U.lex = !0, U;
|
|
@@ -35714,8 +35370,7 @@ function Fc(t) {
|
|
|
35714
35370
|
) : Q == "case" ? g(A, ee(":")) : Q == "default" ? g(ee(":")) : Q == "catch" ? g(C("form"), _, Rt, $e, j, G) : Q == "export" ? g(C("stat"), l_, j) : Q == "import" ? g(C("stat"), s_, j) : Q == "async" ? g($e) : P == "@" ? g(A, $e) : x(C("stat"), A, ee(";"), j);
|
|
35715
35371
|
}
|
|
35716
35372
|
function Rt(Q) {
|
|
35717
|
-
if (Q == "(")
|
|
35718
|
-
return g(rn, ee(")"));
|
|
35373
|
+
if (Q == "(") return g(rn, ee(")"));
|
|
35719
35374
|
}
|
|
35720
35375
|
function A(Q, P) {
|
|
35721
35376
|
return Be(Q, P, !1);
|
|
@@ -35729,10 +35384,8 @@ function Fc(t) {
|
|
|
35729
35384
|
function Be(Q, P, U) {
|
|
35730
35385
|
if (b.state.fatArrowAt == b.stream.start) {
|
|
35731
35386
|
var M = U ? rp : np;
|
|
35732
|
-
if (Q == "(")
|
|
35733
|
-
|
|
35734
|
-
if (Q == "variable")
|
|
35735
|
-
return x(_, pi, ee("=>"), M, G);
|
|
35387
|
+
if (Q == "(") return g(_, C(")"), st(rn, ")"), j, ee("=>"), M, G);
|
|
35388
|
+
if (Q == "variable") return x(_, pi, ee("=>"), M, G);
|
|
35736
35389
|
}
|
|
35737
35390
|
var K = U ? Gn : On;
|
|
35738
35391
|
return w.hasOwnProperty(Q) ? g(K) : Q == "function" ? g(vO, K) : Q == "class" || n && P == "interface" ? (b.marked = "keyword", g(C("form"), o_, j)) : Q == "keyword c" || Q == "async" ? g(U ? ne : A) : Q == "(" ? g(C(")"), Tt, ee(")"), j, K) : Q == "operator" || Q == "spread" ? g(U ? ne : A) : Q == "[" ? g(C("]"), u_, j, K) : Q == "{" ? Dr(Co, "}", null, K) : Q == "quasi" ? x(Eo, K) : Q == "new" ? g(L0(U)) : g();
|
|
@@ -35745,19 +35398,15 @@ function Fc(t) {
|
|
|
35745
35398
|
}
|
|
35746
35399
|
function Gn(Q, P, U) {
|
|
35747
35400
|
var M = U == !1 ? On : Gn, K = U == !1 ? A : ne;
|
|
35748
|
-
if (Q == "=>")
|
|
35749
|
-
return g(_, U ? rp : np, G);
|
|
35401
|
+
if (Q == "=>") return g(_, U ? rp : np, G);
|
|
35750
35402
|
if (Q == "operator")
|
|
35751
35403
|
return /\+\+|--/.test(P) || n && P == "!" ? g(M) : n && P == "<" && b.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? g(C(">"), st(ke, ">"), j, M) : P == "?" ? g(A, ee(":"), K) : g(K);
|
|
35752
35404
|
if (Q == "quasi")
|
|
35753
35405
|
return x(Eo, M);
|
|
35754
35406
|
if (Q != ";") {
|
|
35755
|
-
if (Q == "(")
|
|
35756
|
-
|
|
35757
|
-
if (Q == "
|
|
35758
|
-
return g(F0, M);
|
|
35759
|
-
if (Q == "[")
|
|
35760
|
-
return g(C("]"), Tt, ee("]"), j, M);
|
|
35407
|
+
if (Q == "(") return Dr(ne, ")", "call", M);
|
|
35408
|
+
if (Q == ".") return g(F0, M);
|
|
35409
|
+
if (Q == "[") return g(C("]"), Tt, ee("]"), j, M);
|
|
35761
35410
|
if (n && P == "as")
|
|
35762
35411
|
return b.marked = "keyword", g(ke, M);
|
|
35763
35412
|
if (Q == "regexp")
|
|
@@ -35801,8 +35450,7 @@ function Fc(t) {
|
|
|
35801
35450
|
if (Q == "async")
|
|
35802
35451
|
return b.marked = "property", g(Co);
|
|
35803
35452
|
if (Q == "variable" || b.style == "keyword") {
|
|
35804
|
-
if (b.marked = "property", P == "get" || P == "set")
|
|
35805
|
-
return g(H0);
|
|
35453
|
+
if (b.marked = "property", P == "get" || P == "set") return g(H0);
|
|
35806
35454
|
var U;
|
|
35807
35455
|
return n && b.state.fatArrowAt == b.stream.start && (U = b.stream.match(/^\s*:\s*/, !1)) && (b.state.fatArrowAt = b.stream.pos + U[0].length), g(nn);
|
|
35808
35456
|
} else {
|
|
@@ -35826,10 +35474,8 @@ function Fc(t) {
|
|
|
35826
35474
|
return Q != "variable" ? x(nn) : (b.marked = "property", g(vO));
|
|
35827
35475
|
}
|
|
35828
35476
|
function nn(Q) {
|
|
35829
|
-
if (Q == ":")
|
|
35830
|
-
|
|
35831
|
-
if (Q == "(")
|
|
35832
|
-
return x(vO);
|
|
35477
|
+
if (Q == ":") return g(ne);
|
|
35478
|
+
if (Q == "(") return x(vO);
|
|
35833
35479
|
}
|
|
35834
35480
|
function st(Q, P, U) {
|
|
35835
35481
|
function M(K, Se) {
|
|
@@ -35855,15 +35501,12 @@ function Fc(t) {
|
|
|
35855
35501
|
}
|
|
35856
35502
|
function jn(Q, P) {
|
|
35857
35503
|
if (n) {
|
|
35858
|
-
if (Q == ":")
|
|
35859
|
-
|
|
35860
|
-
if (P == "?")
|
|
35861
|
-
return g(jn);
|
|
35504
|
+
if (Q == ":") return g(ke);
|
|
35505
|
+
if (P == "?") return g(jn);
|
|
35862
35506
|
}
|
|
35863
35507
|
}
|
|
35864
35508
|
function K0(Q, P) {
|
|
35865
|
-
if (n && (Q == ":" || P == "in"))
|
|
35866
|
-
return g(ke);
|
|
35509
|
+
if (n && (Q == ":" || P == "in")) return g(ke);
|
|
35867
35510
|
}
|
|
35868
35511
|
function ap(Q) {
|
|
35869
35512
|
if (n && Q == ":")
|
|
@@ -35878,24 +35521,16 @@ function Fc(t) {
|
|
|
35878
35521
|
return b.marked = "keyword", g(P == "typeof" ? ne : ke);
|
|
35879
35522
|
if (Q == "variable" || P == "void")
|
|
35880
35523
|
return b.marked = "type", g(Ji);
|
|
35881
|
-
if (P == "|" || P == "&")
|
|
35882
|
-
|
|
35883
|
-
if (Q == "
|
|
35884
|
-
|
|
35885
|
-
if (Q == "
|
|
35886
|
-
|
|
35887
|
-
if (Q == "
|
|
35888
|
-
return g(C("}"), ou, j, Ji);
|
|
35889
|
-
if (Q == "(")
|
|
35890
|
-
return g(st(su, ")"), e_, Ji);
|
|
35891
|
-
if (Q == "<")
|
|
35892
|
-
return g(st(ke, ">"), ke);
|
|
35893
|
-
if (Q == "quasi")
|
|
35894
|
-
return x(lu, Ji);
|
|
35524
|
+
if (P == "|" || P == "&") return g(ke);
|
|
35525
|
+
if (Q == "string" || Q == "number" || Q == "atom") return g(Ji);
|
|
35526
|
+
if (Q == "[") return g(C("]"), st(ke, "]", ","), j, Ji);
|
|
35527
|
+
if (Q == "{") return g(C("}"), ou, j, Ji);
|
|
35528
|
+
if (Q == "(") return g(st(su, ")"), e_, Ji);
|
|
35529
|
+
if (Q == "<") return g(st(ke, ">"), ke);
|
|
35530
|
+
if (Q == "quasi") return x(lu, Ji);
|
|
35895
35531
|
}
|
|
35896
35532
|
function e_(Q) {
|
|
35897
|
-
if (Q == "=>")
|
|
35898
|
-
return g(ke);
|
|
35533
|
+
if (Q == "=>") return g(ke);
|
|
35899
35534
|
}
|
|
35900
35535
|
function ou(Q) {
|
|
35901
35536
|
return Q.match(/[\}\)\]]/) ? g() : Q == "," || Q == ";" ? g(ou) : x(Lr, ou);
|
|
@@ -35925,27 +35560,21 @@ function Fc(t) {
|
|
|
35925
35560
|
return Q == "variable" && b.stream.match(/^\s*[?:]/, !1) || P == "?" ? g(su) : Q == ":" ? g(ke) : Q == "spread" ? g(su) : x(ke);
|
|
35926
35561
|
}
|
|
35927
35562
|
function Ji(Q, P) {
|
|
35928
|
-
if (P == "<")
|
|
35929
|
-
|
|
35930
|
-
if (
|
|
35931
|
-
return g(ke);
|
|
35932
|
-
if (Q == "[")
|
|
35933
|
-
return g(ke, ee("]"), Ji);
|
|
35563
|
+
if (P == "<") return g(C(">"), st(ke, ">"), j, Ji);
|
|
35564
|
+
if (P == "|" || Q == "." || P == "&") return g(ke);
|
|
35565
|
+
if (Q == "[") return g(ke, ee("]"), Ji);
|
|
35934
35566
|
if (P == "extends" || P == "implements")
|
|
35935
35567
|
return b.marked = "keyword", g(ke);
|
|
35936
|
-
if (P == "?")
|
|
35937
|
-
return g(ke, ee(":"), ke);
|
|
35568
|
+
if (P == "?") return g(ke, ee(":"), ke);
|
|
35938
35569
|
}
|
|
35939
35570
|
function i_(Q, P) {
|
|
35940
|
-
if (P == "<")
|
|
35941
|
-
return g(C(">"), st(ke, ">"), j, Ji);
|
|
35571
|
+
if (P == "<") return g(C(">"), st(ke, ">"), j, Ji);
|
|
35942
35572
|
}
|
|
35943
35573
|
function jo() {
|
|
35944
35574
|
return x(ke, O_);
|
|
35945
35575
|
}
|
|
35946
35576
|
function O_(Q, P) {
|
|
35947
|
-
if (P == "=")
|
|
35948
|
-
return g(ke);
|
|
35577
|
+
if (P == "=") return g(ke);
|
|
35949
35578
|
}
|
|
35950
35579
|
function cu(Q, P) {
|
|
35951
35580
|
return P == "enum" ? (b.marked = "keyword", g(hp)) : x(pi, jn, xO, r_);
|
|
@@ -35955,12 +35584,9 @@ function Fc(t) {
|
|
|
35955
35584
|
return b.marked = "keyword", g(pi);
|
|
35956
35585
|
if (Q == "variable")
|
|
35957
35586
|
return Z(P), g();
|
|
35958
|
-
if (Q == "spread")
|
|
35959
|
-
|
|
35960
|
-
if (Q == "
|
|
35961
|
-
return Dr(n_, "]");
|
|
35962
|
-
if (Q == "{")
|
|
35963
|
-
return Dr(op, "}");
|
|
35587
|
+
if (Q == "spread") return g(pi);
|
|
35588
|
+
if (Q == "[") return Dr(n_, "]");
|
|
35589
|
+
if (Q == "{") return Dr(op, "}");
|
|
35964
35590
|
}
|
|
35965
35591
|
function op(Q, P) {
|
|
35966
35592
|
return Q == "variable" && !b.stream.match(/^\s*:/, !1) ? (Z(P), g(xO)) : (Q == "variable" && (b.marked = "property"), Q == "spread" ? g(pi) : Q == "}" ? x() : Q == "[" ? g(A, ee("]"), ee(":"), op) : g(ee(":"), pi, xO));
|
|
@@ -35969,22 +35595,17 @@ function Fc(t) {
|
|
|
35969
35595
|
return x(pi, xO);
|
|
35970
35596
|
}
|
|
35971
35597
|
function xO(Q, P) {
|
|
35972
|
-
if (P == "=")
|
|
35973
|
-
return g(ne);
|
|
35598
|
+
if (P == "=") return g(ne);
|
|
35974
35599
|
}
|
|
35975
35600
|
function r_(Q) {
|
|
35976
|
-
if (Q == ",")
|
|
35977
|
-
return g(cu);
|
|
35601
|
+
if (Q == ",") return g(cu);
|
|
35978
35602
|
}
|
|
35979
35603
|
function lp(Q, P) {
|
|
35980
|
-
if (Q == "keyword b" && P == "else")
|
|
35981
|
-
return g(C("form", "else"), $e, j);
|
|
35604
|
+
if (Q == "keyword b" && P == "else") return g(C("form", "else"), $e, j);
|
|
35982
35605
|
}
|
|
35983
35606
|
function sp(Q, P) {
|
|
35984
|
-
if (P == "await")
|
|
35985
|
-
|
|
35986
|
-
if (Q == "(")
|
|
35987
|
-
return g(C(")"), a_, j);
|
|
35607
|
+
if (P == "await") return g(sp);
|
|
35608
|
+
if (Q == "(") return g(C(")"), a_, j);
|
|
35988
35609
|
}
|
|
35989
35610
|
function a_(Q) {
|
|
35990
35611
|
return Q == "var" ? g(cu, An) : Q == "variable" ? g(An) : x(An);
|
|
@@ -35997,20 +35618,16 @@ function Fc(t) {
|
|
|
35997
35618
|
return b.marked = "keyword", g(vO);
|
|
35998
35619
|
if (Q == "variable")
|
|
35999
35620
|
return Z(P), g(vO);
|
|
36000
|
-
if (Q == "(")
|
|
36001
|
-
|
|
36002
|
-
if (n && P == "<")
|
|
36003
|
-
return g(C(">"), st(jo, ">"), j, vO);
|
|
35621
|
+
if (Q == "(") return g(_, C(")"), st(rn, ")"), j, ap, $e, G);
|
|
35622
|
+
if (n && P == "<") return g(C(">"), st(jo, ">"), j, vO);
|
|
36004
35623
|
}
|
|
36005
35624
|
function In(Q, P) {
|
|
36006
35625
|
if (P == "*")
|
|
36007
35626
|
return b.marked = "keyword", g(In);
|
|
36008
35627
|
if (Q == "variable")
|
|
36009
35628
|
return Z(P), g(In);
|
|
36010
|
-
if (Q == "(")
|
|
36011
|
-
|
|
36012
|
-
if (n && P == "<")
|
|
36013
|
-
return g(C(">"), st(jo, ">"), j, In);
|
|
35629
|
+
if (Q == "(") return g(_, C(")"), st(rn, ")"), j, ap, G);
|
|
35630
|
+
if (n && P == "<") return g(C(">"), st(jo, ">"), j, In);
|
|
36014
35631
|
}
|
|
36015
35632
|
function cp(Q, P) {
|
|
36016
35633
|
if (Q == "keyword" || Q == "variable")
|
|
@@ -36029,40 +35646,30 @@ function Fc(t) {
|
|
|
36029
35646
|
return Z(P), g(Ao);
|
|
36030
35647
|
}
|
|
36031
35648
|
function Ao(Q, P) {
|
|
36032
|
-
if (P == "<")
|
|
36033
|
-
return g(C(">"), st(jo, ">"), j, Ao);
|
|
35649
|
+
if (P == "<") return g(C(">"), st(jo, ">"), j, Ao);
|
|
36034
35650
|
if (P == "extends" || P == "implements" || n && Q == ",")
|
|
36035
35651
|
return P == "implements" && (b.marked = "keyword"), g(n ? ke : A, Ao);
|
|
36036
|
-
if (Q == "{")
|
|
36037
|
-
return g(C("}"), eO, j);
|
|
35652
|
+
if (Q == "{") return g(C("}"), eO, j);
|
|
36038
35653
|
}
|
|
36039
35654
|
function eO(Q, P) {
|
|
36040
35655
|
if (Q == "async" || Q == "variable" && (P == "static" || P == "get" || P == "set" || n && z(P)) && b.stream.match(/^\s+#?[\w$\xa1-\uffff]/, !1))
|
|
36041
35656
|
return b.marked = "keyword", g(eO);
|
|
36042
35657
|
if (Q == "variable" || b.style == "keyword")
|
|
36043
35658
|
return b.marked = "property", g(Io, eO);
|
|
36044
|
-
if (Q == "number" || Q == "string")
|
|
36045
|
-
return g(Io, eO);
|
|
35659
|
+
if (Q == "number" || Q == "string") return g(Io, eO);
|
|
36046
35660
|
if (Q == "[")
|
|
36047
35661
|
return g(A, jn, ee("]"), Io, eO);
|
|
36048
35662
|
if (P == "*")
|
|
36049
35663
|
return b.marked = "keyword", g(eO);
|
|
36050
|
-
if (n && Q == "(")
|
|
36051
|
-
|
|
36052
|
-
if (Q == "
|
|
36053
|
-
|
|
36054
|
-
if (Q == "}")
|
|
36055
|
-
return g();
|
|
36056
|
-
if (P == "@")
|
|
36057
|
-
return g(A, eO);
|
|
35664
|
+
if (n && Q == "(") return x(In, eO);
|
|
35665
|
+
if (Q == ";" || Q == ",") return g(eO);
|
|
35666
|
+
if (Q == "}") return g();
|
|
35667
|
+
if (P == "@") return g(A, eO);
|
|
36058
35668
|
}
|
|
36059
35669
|
function Io(Q, P) {
|
|
36060
|
-
if (P == "!" || P == "?")
|
|
36061
|
-
|
|
36062
|
-
if (
|
|
36063
|
-
return g(ke, xO);
|
|
36064
|
-
if (P == "=")
|
|
36065
|
-
return g(ne);
|
|
35670
|
+
if (P == "!" || P == "?") return g(Io);
|
|
35671
|
+
if (Q == ":") return g(ke, xO);
|
|
35672
|
+
if (P == "=") return g(ne);
|
|
36066
35673
|
var U = b.state.lexical.prev, M = U && U.info == "interface";
|
|
36067
35674
|
return x(M ? In : vO);
|
|
36068
35675
|
}
|
|
@@ -36072,8 +35679,7 @@ function Fc(t) {
|
|
|
36072
35679
|
function fp(Q, P) {
|
|
36073
35680
|
if (P == "as")
|
|
36074
35681
|
return b.marked = "keyword", g(ee("variable"));
|
|
36075
|
-
if (Q == "variable")
|
|
36076
|
-
return x(ne, fp);
|
|
35682
|
+
if (Q == "variable") return x(ne, fp);
|
|
36077
35683
|
}
|
|
36078
35684
|
function s_(Q) {
|
|
36079
35685
|
return Q == "string" ? g() : Q == "(" ? x(A) : Q == "." ? x(On) : x(Do, dp, uu);
|
|
@@ -36082,8 +35688,7 @@ function Fc(t) {
|
|
|
36082
35688
|
return Q == "{" ? Dr(Do, "}") : (Q == "variable" && Z(P), P == "*" && (b.marked = "keyword"), g(c_));
|
|
36083
35689
|
}
|
|
36084
35690
|
function dp(Q) {
|
|
36085
|
-
if (Q == ",")
|
|
36086
|
-
return g(Do, dp);
|
|
35691
|
+
if (Q == ",") return g(Do, dp);
|
|
36087
35692
|
}
|
|
36088
35693
|
function c_(Q, P) {
|
|
36089
35694
|
if (P == "as")
|
|
@@ -36123,25 +35728,19 @@ function Fc(t) {
|
|
|
36123
35728
|
return t.globalVars && typeof t.globalVars == "object" && (P.globalVars = t.globalVars), P;
|
|
36124
35729
|
},
|
|
36125
35730
|
token: function(Q, P) {
|
|
36126
|
-
if (Q.sol() && (P.lexical.hasOwnProperty("align") || (P.lexical.align = !1), P.indented = Q.indentation(), y(Q, P)), P.tokenize != p && Q.eatSpace())
|
|
36127
|
-
return null;
|
|
35731
|
+
if (Q.sol() && (P.lexical.hasOwnProperty("align") || (P.lexical.align = !1), P.indented = Q.indentation(), y(Q, P)), P.tokenize != p && Q.eatSpace()) return null;
|
|
36128
35732
|
var U = P.tokenize(Q, P);
|
|
36129
35733
|
return c == "comment" ? U : (P.lastType = c == "operator" && (u == "++" || u == "--") ? "incdec" : c, k(P, U, c, u, Q));
|
|
36130
35734
|
},
|
|
36131
35735
|
indent: function(Q, P, U) {
|
|
36132
|
-
if (Q.tokenize == p || Q.tokenize == m)
|
|
36133
|
-
|
|
36134
|
-
if (Q.tokenize != h)
|
|
36135
|
-
return 0;
|
|
35736
|
+
if (Q.tokenize == p || Q.tokenize == m) return null;
|
|
35737
|
+
if (Q.tokenize != h) return 0;
|
|
36136
35738
|
var M = P && P.charAt(0), K = Q.lexical, Se;
|
|
36137
|
-
if (!/^\s*else\b/.test(P))
|
|
36138
|
-
|
|
36139
|
-
|
|
36140
|
-
|
|
36141
|
-
|
|
36142
|
-
else if (Gt != lp && Gt != G)
|
|
36143
|
-
break;
|
|
36144
|
-
}
|
|
35739
|
+
if (!/^\s*else\b/.test(P)) for (var xe = Q.cc.length - 1; xe >= 0; --xe) {
|
|
35740
|
+
var Gt = Q.cc[xe];
|
|
35741
|
+
if (Gt == j) K = K.prev;
|
|
35742
|
+
else if (Gt != lp && Gt != G) break;
|
|
35743
|
+
}
|
|
36145
35744
|
for (; (K.type == "stat" || K.type == "form") && (M == "}" || (Se = Q.cc[Q.cc.length - 1]) && (Se == On || Se == Gn) && !/^[,\.=+\-*:?[\(]/.test(P)); )
|
|
36146
35745
|
K = K.prev;
|
|
36147
35746
|
e && K.type == ")" && K.prev.type == "stat" && (K = K.prev);
|
|
@@ -36643,8 +36242,7 @@ for (var jf in or) {
|
|
|
36643
36242
|
var Af = Yl[Zl];
|
|
36644
36243
|
typeof Af.regex == "string" && (or[jf][Zl].regex = new RegExp("^" + Af.regex));
|
|
36645
36244
|
}
|
|
36646
|
-
else
|
|
36647
|
-
typeof Af.regex == "string" && (or[jf].regex = new RegExp("^" + Yl.regex));
|
|
36245
|
+
else typeof Af.regex == "string" && (or[jf].regex = new RegExp("^" + Yl.regex));
|
|
36648
36246
|
}
|
|
36649
36247
|
const w6 = {
|
|
36650
36248
|
name: "livescript",
|
|
@@ -36836,8 +36434,7 @@ var x6 = Hc([
|
|
|
36836
36434
|
"local"
|
|
36837
36435
|
]), _6 = Hc(["function", "if", "repeat", "do", "\\(", "{"]), R6 = Hc(["end", "until", "\\)", "}"]), q6 = k6(["end", "until", "\\)", "}", "else", "elseif"]);
|
|
36838
36436
|
function tb(t) {
|
|
36839
|
-
for (var e = 0; t.eat("="); )
|
|
36840
|
-
++e;
|
|
36437
|
+
for (var e = 0; t.eat("="); ) ++e;
|
|
36841
36438
|
return t.eat("["), e;
|
|
36842
36439
|
}
|
|
36843
36440
|
function UQ(t, e) {
|
|
@@ -36849,13 +36446,11 @@ function ib(t, e) {
|
|
|
36849
36446
|
for (var n = null, r; (r = i.next()) != null; )
|
|
36850
36447
|
if (n == null)
|
|
36851
36448
|
r == "]" && (n = 0);
|
|
36852
|
-
else if (r == "=")
|
|
36853
|
-
++n;
|
|
36449
|
+
else if (r == "=") ++n;
|
|
36854
36450
|
else if (r == "]" && n == t) {
|
|
36855
36451
|
O.cur = UQ;
|
|
36856
36452
|
break;
|
|
36857
|
-
} else
|
|
36858
|
-
n = null;
|
|
36453
|
+
} else n = null;
|
|
36859
36454
|
return e;
|
|
36860
36455
|
};
|
|
36861
36456
|
}
|
|
@@ -36872,8 +36467,7 @@ const Z6 = {
|
|
|
36872
36467
|
return { basecol: 0, indentDepth: 0, cur: UQ };
|
|
36873
36468
|
},
|
|
36874
36469
|
token: function(t, e) {
|
|
36875
|
-
if (t.eatSpace())
|
|
36876
|
-
return null;
|
|
36470
|
+
if (t.eatSpace()) return null;
|
|
36877
36471
|
var i = e.cur(t, e), O = t.current();
|
|
36878
36472
|
return i == "variable" && (v6.test(O) ? i = "keyword" : x6.test(O) && (i = "builtin")), i != "comment" && i != "string" && (_6.test(O) ? ++e.indentDepth : R6.test(O) && --e.indentDepth), i;
|
|
36879
36473
|
},
|
|
@@ -36887,8 +36481,7 @@ const Z6 = {
|
|
|
36887
36481
|
}
|
|
36888
36482
|
};
|
|
36889
36483
|
function WQ(t) {
|
|
36890
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
36891
|
-
e[i[O]] = !0;
|
|
36484
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
36892
36485
|
return e;
|
|
36893
36486
|
}
|
|
36894
36487
|
var Ob = WQ("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"), nb = WQ("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"), rb = WQ("if elseif else and not or eq ne in ni for foreach while switch"), ab = /[+\-*&%=<>!?^\/\|]/;
|
|
@@ -37069,8 +36662,7 @@ const eD = {
|
|
|
37069
36662
|
return e.tokenize(t, e);
|
|
37070
36663
|
},
|
|
37071
36664
|
indent: function(t, e, i) {
|
|
37072
|
-
if (t.tokenize != null)
|
|
37073
|
-
return null;
|
|
36665
|
+
if (t.tokenize != null) return null;
|
|
37074
36666
|
var O = t.level;
|
|
37075
36667
|
return /(algorithm)/.test(e) && O--, /(equation)/.test(e) && O--, /(initial algorithm)/.test(e) && O--, /(initial equation)/.test(e) && O--, /(end)/.test(e) && O--, O > 0 ? i.unit * O : 0;
|
|
37076
36668
|
},
|
|
@@ -37143,10 +36735,8 @@ function bD(t, e) {
|
|
|
37143
36735
|
if (e.inHeader) {
|
|
37144
36736
|
var n = PD(e.header);
|
|
37145
36737
|
if (e.emailPermitted) {
|
|
37146
|
-
if (t.match(gD))
|
|
37147
|
-
|
|
37148
|
-
if (t.match(SD))
|
|
37149
|
-
return n;
|
|
36738
|
+
if (t.match(gD)) return n + " link";
|
|
36739
|
+
if (t.match(SD)) return n;
|
|
37150
36740
|
}
|
|
37151
36741
|
return t.skipToEnd(), n;
|
|
37152
36742
|
}
|
|
@@ -37418,8 +37008,7 @@ function YD(t, e) {
|
|
|
37418
37008
|
return t.match(/^.*%}/) ? (e.tokenize = pr, "comment") : (t.skipToEnd(), "comment");
|
|
37419
37009
|
}
|
|
37420
37010
|
function pr(t, e) {
|
|
37421
|
-
if (t.eatSpace())
|
|
37422
|
-
return null;
|
|
37011
|
+
if (t.eatSpace()) return null;
|
|
37423
37012
|
if (t.match("%{"))
|
|
37424
37013
|
return e.tokenize = YD, t.skipToEnd(), "comment";
|
|
37425
37014
|
if (t.match(/^[%#]/))
|
|
@@ -37536,8 +37125,7 @@ function zn(t, e) {
|
|
|
37536
37125
|
if (/^[0-9]/.test(t.peek())) {
|
|
37537
37126
|
if (t.next() == "0" && t.match(/^[xX][0-9a-fA-F]+/) || t.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))
|
|
37538
37127
|
return "number";
|
|
37539
|
-
} else
|
|
37540
|
-
return null;
|
|
37128
|
+
} else return null;
|
|
37541
37129
|
return O == "0" && t.match(/^[xX][0-9a-fA-F]+/) || t.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/) ? "number" : null;
|
|
37542
37130
|
}
|
|
37543
37131
|
return O == "%" ? (t.skipToEnd(), "comment") : O == "/" && t.eat("*") ? (e.tokenize = ub, ub(t, e)) : zD.test(O) ? "operator" : (t.eatWhile(/\w/), "variable");
|
|
@@ -37600,8 +37188,7 @@ const LD = {
|
|
|
37600
37188
|
}
|
|
37601
37189
|
};
|
|
37602
37190
|
function ND(t) {
|
|
37603
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
37604
|
-
e[i[O]] = !0;
|
|
37191
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
37605
37192
|
return e;
|
|
37606
37193
|
}
|
|
37607
37194
|
var MD = ND(
|
|
@@ -37665,8 +37252,7 @@ const $b = {
|
|
|
37665
37252
|
return { tokenize: null };
|
|
37666
37253
|
},
|
|
37667
37254
|
token: function(t, e) {
|
|
37668
|
-
if (t.eatSpace())
|
|
37669
|
-
return null;
|
|
37255
|
+
if (t.eatSpace()) return null;
|
|
37670
37256
|
var i = (e.tokenize || FD)(t, e);
|
|
37671
37257
|
return i == "comment" || i == "meta", i;
|
|
37672
37258
|
},
|
|
@@ -38588,8 +38174,7 @@ const pb = {
|
|
|
38588
38174
|
}
|
|
38589
38175
|
};
|
|
38590
38176
|
function AQ(t) {
|
|
38591
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
38592
|
-
e[i[O]] = !0;
|
|
38177
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
38593
38178
|
return e;
|
|
38594
38179
|
}
|
|
38595
38180
|
var Jx = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ", ev = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP", tv = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ", mb = AQ(Jx), gb = AQ(ev), Sb = AQ(tv), zl = /[*+\-%<>=&?:\/!|]/;
|
|
@@ -38631,8 +38216,7 @@ const eL = {
|
|
|
38631
38216
|
};
|
|
38632
38217
|
},
|
|
38633
38218
|
token: function(t, e) {
|
|
38634
|
-
if (t.eatSpace())
|
|
38635
|
-
return null;
|
|
38219
|
+
if (t.eatSpace()) return null;
|
|
38636
38220
|
var i = e.tokenize(t, e);
|
|
38637
38221
|
return i;
|
|
38638
38222
|
},
|
|
@@ -38960,8 +38544,7 @@ var Xb = {
|
|
|
38960
38544
|
"[": "]"
|
|
38961
38545
|
};
|
|
38962
38546
|
function PL(t) {
|
|
38963
|
-
if (typeof t != "object")
|
|
38964
|
-
return t;
|
|
38547
|
+
if (typeof t != "object") return t;
|
|
38965
38548
|
let e = {};
|
|
38966
38549
|
for (let i in t) {
|
|
38967
38550
|
let O = t[i];
|
|
@@ -39007,8 +38590,7 @@ function XL(t) {
|
|
|
39007
38590
|
return "keyword";
|
|
39008
38591
|
}
|
|
39009
38592
|
function wL(t) {
|
|
39010
|
-
if (t.match(/^(?:doctype) *([^\n]+)?/))
|
|
39011
|
-
return "meta";
|
|
38593
|
+
if (t.match(/^(?:doctype) *([^\n]+)?/)) return "meta";
|
|
39012
38594
|
}
|
|
39013
38595
|
function ov(t, e) {
|
|
39014
38596
|
if (t.match("#{"))
|
|
@@ -39019,8 +38601,7 @@ function kL(t, e) {
|
|
|
39019
38601
|
if (t.peek() === "}") {
|
|
39020
38602
|
if (e.interpolationNesting--, e.interpolationNesting < 0)
|
|
39021
38603
|
return t.next(), e.isInterpolating = !1, "punctuation";
|
|
39022
|
-
} else
|
|
39023
|
-
t.peek() === "{" && e.interpolationNesting++;
|
|
38604
|
+
} else t.peek() === "{" && e.interpolationNesting++;
|
|
39024
38605
|
return Zn.token(t, e.jsState) || !0;
|
|
39025
38606
|
}
|
|
39026
38607
|
}
|
|
@@ -39306,25 +38887,19 @@ const pN = {
|
|
|
39306
38887
|
token: function(t, e) {
|
|
39307
38888
|
t.sol() && (e.context && e.context.align == null && (e.context.align = !1), e.indent = t.indentation());
|
|
39308
38889
|
var i = e.tokenize(t, e);
|
|
39309
|
-
if (i != "comment" && e.context && e.context.align == null && e.context.type != "pattern" && (e.context.align = !0), fn == "(")
|
|
39310
|
-
|
|
39311
|
-
else if (fn == "
|
|
39312
|
-
Vl(e, "]", t.column());
|
|
39313
|
-
else if (fn == "{")
|
|
39314
|
-
Vl(e, "}", t.column());
|
|
38890
|
+
if (i != "comment" && e.context && e.context.align == null && e.context.type != "pattern" && (e.context.align = !0), fn == "(") Vl(e, ")", t.column());
|
|
38891
|
+
else if (fn == "[") Vl(e, "]", t.column());
|
|
38892
|
+
else if (fn == "{") Vl(e, "}", t.column());
|
|
39315
38893
|
else if (/[\]\}\)]/.test(fn)) {
|
|
39316
|
-
for (; e.context && e.context.type == "pattern"; )
|
|
39317
|
-
Bf(e);
|
|
38894
|
+
for (; e.context && e.context.type == "pattern"; ) Bf(e);
|
|
39318
38895
|
e.context && fn == e.context.type && Bf(e);
|
|
39319
|
-
} else
|
|
39320
|
-
fn == "." && e.context && e.context.type == "pattern" ? Bf(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? Vl(e, "pattern", t.column()) : e.context.type == "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
38896
|
+
} else fn == "." && e.context && e.context.type == "pattern" ? Bf(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? Vl(e, "pattern", t.column()) : e.context.type == "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
39321
38897
|
return i;
|
|
39322
38898
|
},
|
|
39323
38899
|
indent: function(t, e, i) {
|
|
39324
38900
|
var O = e && e.charAt(0), n = t.context;
|
|
39325
38901
|
if (/[\]\}]/.test(O))
|
|
39326
|
-
for (; n && n.type == "pattern"; )
|
|
39327
|
-
n = n.prev;
|
|
38902
|
+
for (; n && n.type == "pattern"; ) n = n.prev;
|
|
39328
38903
|
var r = n && O == n.type;
|
|
39329
38904
|
return n ? n.type == "pattern" ? n.col : n.align ? n.col + (r ? 0 : 1) : n.indent + (r ? 0 : i.unit) : 0;
|
|
39330
38905
|
},
|
|
@@ -39333,8 +38908,7 @@ const pN = {
|
|
|
39333
38908
|
}
|
|
39334
38909
|
};
|
|
39335
38910
|
function Jc(t) {
|
|
39336
|
-
for (var e = {}, i = 0; i < t.length; ++i)
|
|
39337
|
-
e[t[i]] = !0;
|
|
38911
|
+
for (var e = {}, i = 0; i < t.length; ++i) e[t[i]] = !0;
|
|
39338
38912
|
return e;
|
|
39339
38913
|
}
|
|
39340
38914
|
var cv = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"], uv = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"], fv = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"], mN = ["if", "else", "repeat", "while", "function", "for"], gN = Jc(cv), SN = Jc(uv), PN = Jc(fv), bN = Jc(mN), xb = /[+\-*\/^<>=!&|~$:]/, yi;
|
|
@@ -39359,8 +38933,7 @@ function Hh(t, e) {
|
|
|
39359
38933
|
t.eatWhile(/[\w\.]/);
|
|
39360
38934
|
var O = t.current();
|
|
39361
38935
|
return gN.propertyIsEnumerable(O) ? "atom" : PN.propertyIsEnumerable(O) ? (bN.propertyIsEnumerable(O) && !t.match(/\s*if(\s+|$)/, !1) && (yi = "block"), "keyword") : SN.propertyIsEnumerable(O) ? "builtin" : "variable";
|
|
39362
|
-
} else
|
|
39363
|
-
return i == "%" ? (t.skipTo("%") && t.next(), "variableName.special") : i == "<" && t.eat("-") || i == "<" && t.match("<-") || i == "-" && t.match(/>>?/) || i == "=" && e.ctx.argList ? "operator" : xb.test(i) ? (i == "$" || t.eatWhile(xb), "operator") : /[\(\){}\[\];]/.test(i) ? (yi = i, i == ";" ? "punctuation" : null) : null;
|
|
38936
|
+
} else return i == "%" ? (t.skipTo("%") && t.next(), "variableName.special") : i == "<" && t.eat("-") || i == "<" && t.match("<-") || i == "-" && t.match(/>>?/) || i == "=" && e.ctx.argList ? "operator" : xb.test(i) ? (i == "$" || t.eatWhile(xb), "operator") : /[\(\){}\[\];]/.test(i) ? (yi = i, i == ";" ? "punctuation" : null) : null;
|
|
39364
38937
|
}
|
|
39365
38938
|
function yN(t) {
|
|
39366
38939
|
return function(e, i) {
|
|
@@ -39420,14 +38993,12 @@ const Rb = {
|
|
|
39420
38993
|
};
|
|
39421
38994
|
},
|
|
39422
38995
|
token: function(t, e) {
|
|
39423
|
-
if (t.sol() && (e.ctx.flags & 3
|
|
39424
|
-
return null;
|
|
38996
|
+
if (t.sol() && ((e.ctx.flags & 3) == 0 && (e.ctx.flags |= Ff), e.ctx.flags & Hf && Kf(e), e.indent = t.indentation()), t.eatSpace()) return null;
|
|
39425
38997
|
var i = e.tokenize(t, e);
|
|
39426
|
-
return i != "comment" &&
|
|
38998
|
+
return i != "comment" && (e.ctx.flags & Ff) == 0 && _b(e, vb), (yi == ";" || yi == "{" || yi == "}") && e.ctx.type == "block" && Kf(e), yi == "{" ? Ul(e, "}", t) : yi == "(" ? (Ul(e, ")", t), e.afterIdent && (e.ctx.argList = !0)) : yi == "[" ? Ul(e, "]", t) : yi == "block" ? Ul(e, "block", t) : yi == e.ctx.type ? Kf(e) : e.ctx.type == "block" && i != "comment" && _b(e, Hf), e.afterIdent = i == "variable" || i == "keyword", i;
|
|
39427
38999
|
},
|
|
39428
39000
|
indent: function(t, e, i) {
|
|
39429
|
-
if (t.tokenize != Hh)
|
|
39430
|
-
return 0;
|
|
39001
|
+
if (t.tokenize != Hh) return 0;
|
|
39431
39002
|
var O = e && e.charAt(0), n = t.ctx, r = O == n.type;
|
|
39432
39003
|
return n.flags & Hf && (n = n.prev), n.type == "block" ? n.indent + (O == "{" ? 0 : i.unit) : n.flags & vb ? n.column + (r ? 0 : 1) : n.indent + (r ? 0 : i.unit);
|
|
39433
39004
|
},
|
|
@@ -39484,8 +39055,7 @@ const _N = {
|
|
|
39484
39055
|
}
|
|
39485
39056
|
};
|
|
39486
39057
|
function LQ(t) {
|
|
39487
|
-
for (var e = {}, i = 0, O = t.length; i < O; ++i)
|
|
39488
|
-
e[t[i]] = !0;
|
|
39058
|
+
for (var e = {}, i = 0, O = t.length; i < O; ++i) e[t[i]] = !0;
|
|
39489
39059
|
return e;
|
|
39490
39060
|
}
|
|
39491
39061
|
var dv = [
|
|
@@ -39567,8 +39137,7 @@ function Hn(t, e, i) {
|
|
|
39567
39137
|
function ec(t, e) {
|
|
39568
39138
|
if (t.sol() && t.match("=begin") && t.eol())
|
|
39569
39139
|
return e.tokenize.push(WN), "comment";
|
|
39570
|
-
if (t.eatSpace())
|
|
39571
|
-
return null;
|
|
39140
|
+
if (t.eatSpace()) return null;
|
|
39572
39141
|
var i = t.next(), O;
|
|
39573
39142
|
if (i == "`" || i == "'" || i == '"')
|
|
39574
39143
|
return Hn(fa(i, "string", i == '"' || i == "`"), t, e);
|
|
@@ -39623,8 +39192,7 @@ function zN(t) {
|
|
|
39623
39192
|
if ("[{(".indexOf(O) > -1)
|
|
39624
39193
|
i++;
|
|
39625
39194
|
else if ("]})".indexOf(O) > -1) {
|
|
39626
|
-
if (i--, i < 0)
|
|
39627
|
-
break;
|
|
39195
|
+
if (i--, i < 0) break;
|
|
39628
39196
|
} else if (O == "/" && i == 0) {
|
|
39629
39197
|
n = !0;
|
|
39630
39198
|
break;
|
|
@@ -39639,8 +39207,7 @@ function Kh(t) {
|
|
|
39639
39207
|
if (t == 1)
|
|
39640
39208
|
return i.tokenize.pop(), i.tokenize[i.tokenize.length - 1](e, i);
|
|
39641
39209
|
i.tokenize[i.tokenize.length - 1] = Kh(t - 1);
|
|
39642
|
-
} else
|
|
39643
|
-
e.peek() == "{" && (i.tokenize[i.tokenize.length - 1] = Kh(t + 1));
|
|
39210
|
+
} else e.peek() == "{" && (i.tokenize[i.tokenize.length - 1] = Kh(t + 1));
|
|
39644
39211
|
return ec(e, i);
|
|
39645
39212
|
};
|
|
39646
39213
|
}
|
|
@@ -39702,8 +39269,7 @@ const EN = {
|
|
|
39702
39269
|
return (Ti || i && i != "comment") && (e.lastTok = n), Ti == "|" && (e.varList = !e.varList), O == "indent" || /[\(\[\{]/.test(Ti) ? e.context = { prev: e.context, type: Ti || i, indented: e.indented } : (O == "dedent" || /[\)\]\}]/.test(Ti)) && e.context.prev && (e.context = e.context.prev), t.eol() && (e.continuedLine = Ti == "\\" || i == "operator"), i;
|
|
39703
39270
|
},
|
|
39704
39271
|
indent: function(t, e, i) {
|
|
39705
|
-
if (t.tokenize[t.tokenize.length - 1] != ec)
|
|
39706
|
-
return null;
|
|
39272
|
+
if (t.tokenize[t.tokenize.length - 1] != ec) return null;
|
|
39707
39273
|
var O = e && e.charAt(0), n = t.context, r = n.type == ZN[O] || n.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(e);
|
|
39708
39274
|
return n.indented + (r ? 0 : i.unit) + (t.continuedLine ? i.unit : 0);
|
|
39709
39275
|
},
|
|
@@ -39772,8 +39338,7 @@ function jN(t, e) {
|
|
|
39772
39338
|
return "operator";
|
|
39773
39339
|
var n;
|
|
39774
39340
|
if (t.match(/[%&;\w]+/, !1) != null) {
|
|
39775
|
-
if (n = i + t.match(/[%&;\w]+/, !0), /&/.test(n))
|
|
39776
|
-
return "variable";
|
|
39341
|
+
if (n = i + t.match(/[%&;\w]+/, !0), /&/.test(n)) return "variable";
|
|
39777
39342
|
} else
|
|
39778
39343
|
n = i;
|
|
39779
39344
|
if (e.nextword)
|
|
@@ -39785,8 +39350,7 @@ function jN(t, e) {
|
|
|
39785
39350
|
return /\w/.test(t.peek()) ? "variableName.special" : "variable";
|
|
39786
39351
|
if (n && Ie.hasOwnProperty(n) && (Ie[n].state.indexOf("inDataStep") !== -1 || Ie[n].state.indexOf("ALL") !== -1)) {
|
|
39787
39352
|
t.start < t.pos && t.backUp(t.pos - t.start);
|
|
39788
|
-
for (var r = 0; r < n.length; ++r)
|
|
39789
|
-
t.next();
|
|
39353
|
+
for (var r = 0; r < n.length; ++r) t.next();
|
|
39790
39354
|
return Ie[n].style;
|
|
39791
39355
|
}
|
|
39792
39356
|
}
|
|
@@ -39819,8 +39383,7 @@ const AN = {
|
|
|
39819
39383
|
};
|
|
39820
39384
|
var IN = "builtin", ln = "comment", Zb = "string", zb = "symbol", da = "atom", Vb = "number", Ub = "bracket", DN = 2;
|
|
39821
39385
|
function hv(t) {
|
|
39822
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
39823
|
-
e[i[O]] = !0;
|
|
39386
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
39824
39387
|
return e;
|
|
39825
39388
|
}
|
|
39826
39389
|
var Wb = hv("λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"), LN = hv("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");
|
|
@@ -39927,8 +39490,7 @@ const Cb = {
|
|
|
39927
39490
|
for (var s = "", c = t.column(), u; (u = t.eat(/[^\s\(\[\;\)\]]/)) != null; )
|
|
39928
39491
|
s += u;
|
|
39929
39492
|
s.length > 0 && LN.propertyIsEnumerable(s) ? Jf(e, c + DN, r) : (t.eatSpace(), t.eol() || t.peek() == ";" ? Jf(e, c + 1, r) : Jf(e, c + t.current().length, r)), t.backUp(t.current().length - 1), typeof e.sExprComment == "number" && e.sExprComment++, typeof e.sExprQuote == "number" && e.sExprQuote++, i = Ub;
|
|
39930
|
-
} else
|
|
39931
|
-
r == ")" || r == "]" ? (i = Ub, e.indentStack != null && e.indentStack.type == (r == ")" ? "(" : "[") && (MN(e), typeof e.sExprComment == "number" && --e.sExprComment == 0 && (i = ln, e.sExprComment = !1), typeof e.sExprQuote == "number" && --e.sExprQuote == 0 && (i = da, e.sExprQuote = !1))) : (t.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), Wb && Wb.propertyIsEnumerable(t.current()) ? i = IN : i = "variable");
|
|
39493
|
+
} else r == ")" || r == "]" ? (i = Ub, e.indentStack != null && e.indentStack.type == (r == ")" ? "(" : "[") && (MN(e), typeof e.sExprComment == "number" && --e.sExprComment == 0 && (i = ln, e.sExprComment = !1), typeof e.sExprQuote == "number" && --e.sExprQuote == 0 && (i = da, e.sExprQuote = !1))) : (t.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), Wb && Wb.propertyIsEnumerable(t.current()) ? i = IN : i = "variable");
|
|
39932
39494
|
}
|
|
39933
39495
|
return typeof e.sExprComment == "number" ? ln : typeof e.sExprQuote == "number" ? da : i;
|
|
39934
39496
|
},
|
|
@@ -40038,8 +39600,7 @@ NQ("atom", $v);
|
|
|
40038
39600
|
NQ("keyword", Qv);
|
|
40039
39601
|
NQ("builtin", pv);
|
|
40040
39602
|
function iM(t, e) {
|
|
40041
|
-
if (t.eatSpace())
|
|
40042
|
-
return null;
|
|
39603
|
+
if (t.eatSpace()) return null;
|
|
40043
39604
|
var i = t.sol(), O = t.next();
|
|
40044
39605
|
if (O === "\\")
|
|
40045
39606
|
return t.next(), null;
|
|
@@ -40054,8 +39615,7 @@ function iM(t, e) {
|
|
|
40054
39615
|
if (O === "-")
|
|
40055
39616
|
return t.eat("-"), t.eatWhile(/\w/), "attribute";
|
|
40056
39617
|
if (O == "<") {
|
|
40057
|
-
if (t.match("<<"))
|
|
40058
|
-
return "operator";
|
|
39618
|
+
if (t.match("<<")) return "operator";
|
|
40059
39619
|
var n = t.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
|
|
40060
39620
|
if (n)
|
|
40061
39621
|
return e.tokens.unshift(nM(n[1] || n[2])), "string.special";
|
|
@@ -40122,8 +39682,7 @@ const td = {
|
|
|
40122
39682
|
}
|
|
40123
39683
|
};
|
|
40124
39684
|
function gv(t) {
|
|
40125
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
40126
|
-
e[i[O]] = !0;
|
|
39685
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
40127
39686
|
return e;
|
|
40128
39687
|
}
|
|
40129
39688
|
var rM = gv("if elsif else stop require"), aM = gv("true false not");
|
|
@@ -40408,28 +39967,21 @@ const Bb = {
|
|
|
40408
39967
|
};
|
|
40409
39968
|
},
|
|
40410
39969
|
token: function(t, e) {
|
|
40411
|
-
if (t.sol() && (e.context && e.context.align == null && (e.context.align = !1), e.indent = t.indentation()), t.eatSpace())
|
|
40412
|
-
return null;
|
|
39970
|
+
if (t.sol() && (e.context && e.context.align == null && (e.context.align = !1), e.indent = t.indentation()), t.eatSpace()) return null;
|
|
40413
39971
|
var i = e.tokenize(t, e);
|
|
40414
|
-
if (i != "comment" && e.context && e.context.align == null && e.context.type != "pattern" && (e.context.align = !0), sO == "(")
|
|
40415
|
-
|
|
40416
|
-
else if (sO == "
|
|
40417
|
-
Wl(e, "]", t.column());
|
|
40418
|
-
else if (sO == "{")
|
|
40419
|
-
Wl(e, "}", t.column());
|
|
39972
|
+
if (i != "comment" && e.context && e.context.align == null && e.context.type != "pattern" && (e.context.align = !0), sO == "(") Wl(e, ")", t.column());
|
|
39973
|
+
else if (sO == "[") Wl(e, "]", t.column());
|
|
39974
|
+
else if (sO == "{") Wl(e, "}", t.column());
|
|
40420
39975
|
else if (/[\]\}\)]/.test(sO)) {
|
|
40421
|
-
for (; e.context && e.context.type == "pattern"; )
|
|
40422
|
-
El(e);
|
|
39976
|
+
for (; e.context && e.context.type == "pattern"; ) El(e);
|
|
40423
39977
|
e.context && sO == e.context.type && (El(e), sO == "}" && e.context && e.context.type == "pattern" && El(e));
|
|
40424
|
-
} else
|
|
40425
|
-
sO == "." && e.context && e.context.type == "pattern" ? El(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? Wl(e, "pattern", t.column()) : e.context.type == "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
39978
|
+
} else sO == "." && e.context && e.context.type == "pattern" ? El(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? Wl(e, "pattern", t.column()) : e.context.type == "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
40426
39979
|
return i;
|
|
40427
39980
|
},
|
|
40428
39981
|
indent: function(t, e, i) {
|
|
40429
39982
|
var O = e && e.charAt(0), n = t.context;
|
|
40430
39983
|
if (/[\]\}]/.test(O))
|
|
40431
|
-
for (; n && n.type == "pattern"; )
|
|
40432
|
-
n = n.prev;
|
|
39984
|
+
for (; n && n.type == "pattern"; ) n = n.prev;
|
|
40433
39985
|
var r = n && O == n.type;
|
|
40434
39986
|
return n ? n.type == "pattern" ? n.col : n.align ? n.col + (r ? 0 : 1) : n.indent + (r ? 0 : i.unit) : 0;
|
|
40435
39987
|
},
|
|
@@ -40457,8 +40009,7 @@ function zv(t) {
|
|
|
40457
40009
|
}), new RegExp("^((" + t.join(")|(") + "))\\b");
|
|
40458
40010
|
}
|
|
40459
40011
|
function Yi(t) {
|
|
40460
|
-
for (var e = {}, i = 0; i < t.length; ++i)
|
|
40461
|
-
e[t[i]] = !0;
|
|
40012
|
+
for (var e = {}, i = 0; i < t.length; ++i) e[t[i]] = !0;
|
|
40462
40013
|
return e;
|
|
40463
40014
|
}
|
|
40464
40015
|
function SM(t) {
|
|
@@ -40602,21 +40153,18 @@ ei.block = function(t, e, i) {
|
|
|
40602
40153
|
return se = "atom", "block";
|
|
40603
40154
|
if (BQ.test(O) && (mn(e) && e.string.match(/=/) || !mn(e) && !e.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) && !Bi(ai(e))))
|
|
40604
40155
|
return se = "variable", Xn(ai(e)) ? "block" : ae(i, e, "block", 0);
|
|
40605
|
-
if (kt(e))
|
|
40606
|
-
return ae(i, e, "block");
|
|
40156
|
+
if (kt(e)) return ae(i, e, "block");
|
|
40607
40157
|
}
|
|
40608
40158
|
if (se == "block-keyword")
|
|
40609
40159
|
return se = "keyword", e.current(/(if|unless)/) && !mn(e) ? "block" : ae(i, e, "block");
|
|
40610
|
-
if (O == "return")
|
|
40611
|
-
return ae(i, e, "block", 0);
|
|
40160
|
+
if (O == "return") return ae(i, e, "block", 0);
|
|
40612
40161
|
if (se == "variable" && e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))
|
|
40613
40162
|
return ae(i, e, "block");
|
|
40614
40163
|
}
|
|
40615
40164
|
return i.context.type;
|
|
40616
40165
|
};
|
|
40617
40166
|
ei.parens = function(t, e, i) {
|
|
40618
|
-
if (t == "(")
|
|
40619
|
-
return ae(i, e, "parens");
|
|
40167
|
+
if (t == "(") return ae(i, e, "parens");
|
|
40620
40168
|
if (t == ")")
|
|
40621
40169
|
return i.context.prev.type == "parens" ? Vn(i, e) : e.string.match(/^[a-z][\w-]*\(/i) && kt(e) || Xn(ai(e)) || /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ai(e)) || !e.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) && Bi(ai(e)) ? ae(i, e, "block") : e.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/) || e.string.match(/^\s*(\(|\)|[0-9])/) || e.string.match(/^\s+[a-z][\w-]*\(/i) || e.string.match(/^\s+[\$-]?[a-z]/i) ? ae(i, e, "block", 0) : kt(e) ? ae(i, e, "block") : ae(i, e, "block", 0);
|
|
40622
40170
|
if (t && t.charAt(0) == "@" && Un(e.current().slice(1)) && (se = "variable"), t == "word") {
|
|
@@ -40632,8 +40180,7 @@ ei.pseudo = function(t, e, i) {
|
|
|
40632
40180
|
return Un(ai(e.string)) ? FQ(t, e, i) : (e.match(/^[a-z-]+/), se = "variableName.special", kt(e) ? ae(i, e, "block") : Vn(i, e));
|
|
40633
40181
|
};
|
|
40634
40182
|
ei.atBlock = function(t, e, i) {
|
|
40635
|
-
if (t == "(")
|
|
40636
|
-
return ae(i, e, "atBlock_parens");
|
|
40183
|
+
if (t == "(") return ae(i, e, "atBlock_parens");
|
|
40637
40184
|
if (Ev(t, e))
|
|
40638
40185
|
return ae(i, e, "block");
|
|
40639
40186
|
if (Cv(t, e))
|
|
@@ -40646,8 +40193,7 @@ ei.atBlock = function(t, e, i) {
|
|
|
40646
40193
|
return t == "operator" && /^(not|and|or)$/.test(e.current()) && (se = "keyword"), i.context.type;
|
|
40647
40194
|
};
|
|
40648
40195
|
ei.atBlock_parens = function(t, e, i) {
|
|
40649
|
-
if (t == "{" || t == "}")
|
|
40650
|
-
return i.context.type;
|
|
40196
|
+
if (t == "{" || t == "}") return i.context.type;
|
|
40651
40197
|
if (t == ")")
|
|
40652
40198
|
return kt(e) ? ae(i, e, "block") : ae(i, e, "atBlock");
|
|
40653
40199
|
if (t == "word") {
|
|
@@ -40691,8 +40237,7 @@ const WM = {
|
|
|
40691
40237
|
}
|
|
40692
40238
|
};
|
|
40693
40239
|
function tu(t) {
|
|
40694
|
-
for (var e = {}, i = 0; i < t.length; i++)
|
|
40695
|
-
e[t[i]] = !0;
|
|
40240
|
+
for (var e = {}, i = 0; i < t.length; i++) e[t[i]] = !0;
|
|
40696
40241
|
return e;
|
|
40697
40242
|
}
|
|
40698
40243
|
var EM = tu([
|
|
@@ -40811,8 +40356,7 @@ var EM = tu([
|
|
|
40811
40356
|
"Void"
|
|
40812
40357
|
]), AM = "+-/*%=|&<>~^?!", IM = ":;,.(){}[]", DM = /^\-?0b[01][01_]*/, LM = /^\-?0o[0-7][0-7_]*/, NM = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/, MM = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/, BM = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/, FM = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/, HM = /^\#[A-Za-z]+/, KM = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
|
|
40813
40358
|
function jv(t, e, i) {
|
|
40814
|
-
if (t.sol() && (e.indented = t.indentation()), t.eatSpace())
|
|
40815
|
-
return null;
|
|
40359
|
+
if (t.sol() && (e.indented = t.indentation()), t.eatSpace()) return null;
|
|
40816
40360
|
var O = t.peek();
|
|
40817
40361
|
if (O == "/") {
|
|
40818
40362
|
if (t.match("//"))
|
|
@@ -40820,14 +40364,10 @@ function jv(t, e, i) {
|
|
|
40820
40364
|
if (t.match("/*"))
|
|
40821
40365
|
return e.tokenize.push(e$), e$(t, e);
|
|
40822
40366
|
}
|
|
40823
|
-
if (t.match(HM))
|
|
40824
|
-
|
|
40825
|
-
if (t.match(
|
|
40826
|
-
|
|
40827
|
-
if (t.match(DM) || t.match(LM) || t.match(NM) || t.match(MM))
|
|
40828
|
-
return "number";
|
|
40829
|
-
if (t.match(FM))
|
|
40830
|
-
return "property";
|
|
40367
|
+
if (t.match(HM)) return "builtin";
|
|
40368
|
+
if (t.match(KM)) return "attribute";
|
|
40369
|
+
if (t.match(DM) || t.match(LM) || t.match(NM) || t.match(MM)) return "number";
|
|
40370
|
+
if (t.match(FM)) return "property";
|
|
40831
40371
|
if (AM.indexOf(O) > -1)
|
|
40832
40372
|
return t.next(), "operator";
|
|
40833
40373
|
if (IM.indexOf(O) > -1)
|
|
@@ -40848,8 +40388,7 @@ function JM() {
|
|
|
40848
40388
|
return function(e, i, O) {
|
|
40849
40389
|
var n = jv(e, i, O);
|
|
40850
40390
|
if (n == "punctuation") {
|
|
40851
|
-
if (e.current() == "(")
|
|
40852
|
-
++t;
|
|
40391
|
+
if (e.current() == "(") ++t;
|
|
40853
40392
|
else if (e.current() == ")") {
|
|
40854
40393
|
if (t == 0)
|
|
40855
40394
|
return e.backUp(1), i.tokenize.pop(), i.tokenize[i.tokenize.length - 1](e, i);
|
|
@@ -40914,8 +40453,7 @@ const nB = {
|
|
|
40914
40453
|
},
|
|
40915
40454
|
indent: function(t, e, i) {
|
|
40916
40455
|
var O = t.context;
|
|
40917
|
-
if (!O)
|
|
40918
|
-
return 0;
|
|
40456
|
+
if (!O) return 0;
|
|
40919
40457
|
var n = /^[\]\}\)]/.test(e);
|
|
40920
40458
|
return O.align != null ? O.align - (n ? 1 : 0) : O.indented + (n ? 0 : i.unit);
|
|
40921
40459
|
},
|
|
@@ -40997,8 +40535,7 @@ function Av(t) {
|
|
|
40997
40535
|
else
|
|
40998
40536
|
return "error";
|
|
40999
40537
|
return "bracket";
|
|
41000
|
-
} else
|
|
41001
|
-
return p == "{" || p == "[" ? (h = a.DEFAULT, h = new h(), e(d, h), "bracket") : /\d/.test(p) ? (u.eatWhile(/[\w.%]/), "atom") : (u.eatWhile(/[\w\-_]/), h = n(d), h.name == "begin" && (h.argument = u.current()), h.styleIdentifier());
|
|
40538
|
+
} else return p == "{" || p == "[" ? (h = a.DEFAULT, h = new h(), e(d, h), "bracket") : /\d/.test(p) ? (u.eatWhile(/[\w.%]/), "atom") : (u.eatWhile(/[\w\-_]/), h = n(d), h.name == "begin" && (h.argument = u.current()), h.styleIdentifier());
|
|
41002
40539
|
}
|
|
41003
40540
|
function s(u, d, h) {
|
|
41004
40541
|
if (u.eatSpace())
|
|
@@ -41055,8 +40592,7 @@ Av(!0);
|
|
|
41055
40592
|
function Iv(t) {
|
|
41056
40593
|
var e = t.statementIndentUnit, i = t.dontAlignCalls, O = t.noIndentKeywords || [], n = t.multiLineStrings, r = t.hooks || {};
|
|
41057
40594
|
function a(_) {
|
|
41058
|
-
for (var I = {}, G = _.split(" "), C = 0; C < G.length; ++C)
|
|
41059
|
-
I[G[C]] = !0;
|
|
40595
|
+
for (var I = {}, G = _.split(" "), C = 0; C < G.length; ++C) I[G[C]] = !0;
|
|
41060
40596
|
return I;
|
|
41061
40597
|
}
|
|
41062
40598
|
var o = a(
|
|
@@ -41176,17 +40712,14 @@ function Iv(t) {
|
|
|
41176
40712
|
if (C !== void 0)
|
|
41177
40713
|
return C;
|
|
41178
40714
|
}
|
|
41179
|
-
if (_.eatSpace())
|
|
41180
|
-
return null;
|
|
40715
|
+
if (_.eatSpace()) return null;
|
|
41181
40716
|
y = null, w = null;
|
|
41182
40717
|
var C = (I.tokenize || g)(_, I);
|
|
41183
|
-
if (C == "comment" || C == "meta" || C == "variable")
|
|
41184
|
-
return C;
|
|
40718
|
+
if (C == "comment" || C == "meta" || C == "variable") return C;
|
|
41185
40719
|
if (G.align == null && (G.align = !0), y == G.type)
|
|
41186
40720
|
T(I);
|
|
41187
40721
|
else if (y == ";" && G.type == "statement" || G.type && R(w, G.type))
|
|
41188
|
-
for (G = T(I); G && G.type == "statement"; )
|
|
41189
|
-
G = T(I);
|
|
40722
|
+
for (G = T(I); G && G.type == "statement"; ) G = T(I);
|
|
41190
40723
|
else if (y == "{")
|
|
41191
40724
|
z(I, _.column(), "}");
|
|
41192
40725
|
else if (y == "[")
|
|
@@ -41206,12 +40739,10 @@ function Iv(t) {
|
|
|
41206
40739
|
return I.startOfLine = !1, C;
|
|
41207
40740
|
},
|
|
41208
40741
|
indent: function(_, I, G) {
|
|
41209
|
-
if (_.tokenize != g && _.tokenize != null)
|
|
41210
|
-
return null;
|
|
40742
|
+
if (_.tokenize != g && _.tokenize != null) return null;
|
|
41211
40743
|
if (r.indent) {
|
|
41212
40744
|
var C = r.indent(_);
|
|
41213
|
-
if (C >= 0)
|
|
41214
|
-
return C;
|
|
40745
|
+
if (C >= 0) return C;
|
|
41215
40746
|
}
|
|
41216
40747
|
var j = _.context, ee = I && I.charAt(0);
|
|
41217
40748
|
j.type == "statement" && ee == "}" && (j = j.prev);
|
|
@@ -41295,18 +40826,16 @@ Iv({
|
|
|
41295
40826
|
}
|
|
41296
40827
|
if (e.tlvCodeActive) {
|
|
41297
40828
|
var O;
|
|
41298
|
-
if (i === void 0)
|
|
41299
|
-
|
|
41300
|
-
|
|
41301
|
-
|
|
41302
|
-
|
|
41303
|
-
|
|
41304
|
-
|
|
41305
|
-
|
|
41306
|
-
|
|
41307
|
-
|
|
41308
|
-
} else
|
|
41309
|
-
t.match(/^\t+/) ? i = "invalid" : t.match(/^[\[\]{}\(\);\:]+/) ? i = "meta" : (O = t.match(/^[mM]4([\+_])?[\w\d_]*/)) ? i = O[1] == "+" ? "keyword.special" : "keyword" : t.match(/^ +/) ? t.eol() && (i = "error") : t.match(/^[\w\d_]+/) ? i = "number" : t.next();
|
|
40829
|
+
if (i === void 0) if (e.tlvInBlockComment)
|
|
40830
|
+
t.match(/^.*?\*\//) ? e.tlvInBlockComment = !1 : t.skipToEnd(), i = "comment";
|
|
40831
|
+
else if ((O = t.match(aB)) && !e.tlvInBlockComment)
|
|
40832
|
+
O[0] == "//" ? t.skipToEnd() : e.tlvInBlockComment = !0, i = "comment";
|
|
40833
|
+
else if (O = t.match(ey)) {
|
|
40834
|
+
var c = O[1], u = O[2];
|
|
40835
|
+
// is identifier prefix
|
|
40836
|
+
rd.hasOwnProperty(c) && // has mnemonic or we're at the end of the line (maybe it hasn't been typed yet)
|
|
40837
|
+
(u.length > 0 || t.eol()) ? i = rd[c] : t.backUp(t.current().length - 1);
|
|
40838
|
+
} else t.match(/^\t+/) ? i = "invalid" : t.match(/^[\[\]{}\(\);\:]+/) ? i = "meta" : (O = t.match(/^[mM]4([\+_])?[\w\d_]*/)) ? i = O[1] == "+" ? "keyword.special" : "keyword" : t.match(/^ +/) ? t.eol() && (i = "error") : t.match(/^[\w\d_]+/) ? i = "number" : t.next();
|
|
41310
40839
|
} else
|
|
41311
40840
|
t.match(/^[mM]4([\w\d_]*)/) && (i = "keyword");
|
|
41312
40841
|
return i;
|
|
@@ -41320,8 +40849,7 @@ Iv({
|
|
|
41320
40849
|
}
|
|
41321
40850
|
});
|
|
41322
40851
|
function Dv(t) {
|
|
41323
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
41324
|
-
e[i[O]] = !0;
|
|
40852
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
41325
40853
|
return e;
|
|
41326
40854
|
}
|
|
41327
40855
|
var ty = Dv("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"), iy = Dv("if elseif else and not or eq ne in ni for foreach while switch"), Oy = /[+\-*&%=<>!?^\/\|]/;
|
|
@@ -41477,14 +41005,12 @@ function Lt(t, e, i, O, n) {
|
|
|
41477
41005
|
var o = Xt(e);
|
|
41478
41006
|
return e[i] = !1, o;
|
|
41479
41007
|
}
|
|
41480
|
-
} else
|
|
41481
|
-
(!r || /\W/.test(r)) && a && /\S/.test(a) && t.match(new RegExp("^.*\\S" + O.source + "(?:\\W|$)"), !1) && (e[i] = !0, e.mode = je.attributes);
|
|
41008
|
+
} else (!r || /\W/.test(r)) && a && /\S/.test(a) && t.match(new RegExp("^.*\\S" + O.source + "(?:\\W|$)"), !1) && (e[i] = !0, e.mode = je.attributes);
|
|
41482
41009
|
return Xt(e);
|
|
41483
41010
|
}
|
|
41484
41011
|
function Xt(t) {
|
|
41485
41012
|
var e = Lv(t);
|
|
41486
|
-
if (e)
|
|
41487
|
-
return e;
|
|
41013
|
+
if (e) return e;
|
|
41488
41014
|
var i = [];
|
|
41489
41015
|
return t.layoutType && i.push(Ht[t.layoutType]), i = i.concat(fB(
|
|
41490
41016
|
t,
|
|
@@ -41524,8 +41050,7 @@ function fB(t) {
|
|
|
41524
41050
|
}
|
|
41525
41051
|
function dB(t) {
|
|
41526
41052
|
var e = t.spanningLayout, i = t.layoutType;
|
|
41527
|
-
for (var O in t)
|
|
41528
|
-
t.hasOwnProperty(O) && delete t[O];
|
|
41053
|
+
for (var O in t) t.hasOwnProperty(O) && delete t[O];
|
|
41529
41054
|
t.mode = je.newLayout, e && (t.layoutType = i, t.spanningLayout = !0);
|
|
41530
41055
|
}
|
|
41531
41056
|
var de = {
|
|
@@ -41642,8 +41167,7 @@ var je = {
|
|
|
41642
41167
|
return (i = O.match(we("header"))) ? (e.layoutType = "header", e.header = parseInt(i[0][1])) : O.match(we("bq")) ? e.layoutType = "quote" : O.match(we("bc")) ? e.layoutType = "code" : O.match(we("foot")) ? e.layoutType = "footnote" : O.match(we("notextile")) ? e.layoutType = "notextile" : O.match(we("pre")) ? e.layoutType = "pre" : O.match(we("div")) ? e.layoutType = "div" : O.match(we("table")) && (e.layoutType = "table"), e.mode = je.attributes, Xt(e);
|
|
41643
41168
|
},
|
|
41644
41169
|
text: function(t, e) {
|
|
41645
|
-
if (t.match(we("text")))
|
|
41646
|
-
return Xt(e);
|
|
41170
|
+
if (t.match(we("text"))) return Xt(e);
|
|
41647
41171
|
var i = t.next();
|
|
41648
41172
|
return i === '"' ? (e.mode = je.link)(t, e) : ny(t, e, i);
|
|
41649
41173
|
},
|
|
@@ -41750,8 +41274,7 @@ const hB = {
|
|
|
41750
41274
|
};
|
|
41751
41275
|
var ry = {};
|
|
41752
41276
|
function QB(t) {
|
|
41753
|
-
if (t.eatSpace())
|
|
41754
|
-
return null;
|
|
41277
|
+
if (t.eatSpace()) return null;
|
|
41755
41278
|
var e = t.sol(), i = t.next();
|
|
41756
41279
|
if (i === "\\")
|
|
41757
41280
|
return t.match("fB") || t.match("fR") || t.match("fI") || t.match("u") || t.match("d") || t.match("%") || t.match("&") ? "string" : t.match("m[") ? (t.skipTo("]"), t.next(), "string") : t.match("s+") || t.match("s-") ? (t.eatWhile(/[\d-]/), "string") : ((t.match("(") || t.match("*(")) && t.eatWhile(/[\w-]/), "string");
|
|
@@ -41782,8 +41305,7 @@ const OO = {
|
|
|
41782
41305
|
}
|
|
41783
41306
|
};
|
|
41784
41307
|
function qt(t) {
|
|
41785
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
41786
|
-
e[i[O]] = !0;
|
|
41308
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
41787
41309
|
return e;
|
|
41788
41310
|
}
|
|
41789
41311
|
const nt = {
|
|
@@ -41804,9 +41326,7 @@ const nt = {
|
|
|
41804
41326
|
};
|
|
41805
41327
|
var Nv = [];
|
|
41806
41328
|
function Ou(t) {
|
|
41807
|
-
if (t)
|
|
41808
|
-
for (var e in t)
|
|
41809
|
-
t.hasOwnProperty(e) && Nv.push(e);
|
|
41329
|
+
if (t) for (var e in t) t.hasOwnProperty(e) && Nv.push(e);
|
|
41810
41330
|
}
|
|
41811
41331
|
Ou(nt.keywords);
|
|
41812
41332
|
Ou(nt.builtin);
|
|
@@ -41883,27 +41403,19 @@ const ld = {
|
|
|
41883
41403
|
},
|
|
41884
41404
|
token: function(t, e) {
|
|
41885
41405
|
var i = e.context;
|
|
41886
|
-
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace())
|
|
41887
|
-
return null;
|
|
41406
|
+
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace()) return null;
|
|
41888
41407
|
Oi = null;
|
|
41889
41408
|
var O = (e.tokenize || YB)(t, e);
|
|
41890
|
-
if (O == "comment")
|
|
41891
|
-
return O;
|
|
41409
|
+
if (O == "comment") return O;
|
|
41892
41410
|
if (i.align == null && (i.align = !0), (Oi == ";" || Oi == ":" || Oi == ",") && i.type == "statement")
|
|
41893
41411
|
ha(e);
|
|
41894
|
-
else if (Oi == "{")
|
|
41895
|
-
|
|
41896
|
-
else if (Oi == "
|
|
41897
|
-
Cl(e, t.column(), "]");
|
|
41898
|
-
else if (Oi == "(")
|
|
41899
|
-
Cl(e, t.column(), ")");
|
|
41412
|
+
else if (Oi == "{") Cl(e, t.column(), "}");
|
|
41413
|
+
else if (Oi == "[") Cl(e, t.column(), "]");
|
|
41414
|
+
else if (Oi == "(") Cl(e, t.column(), ")");
|
|
41900
41415
|
else if (Oi == "}") {
|
|
41901
|
-
for (; i.type == "statement"; )
|
|
41902
|
-
|
|
41903
|
-
|
|
41904
|
-
i = ha(e);
|
|
41905
|
-
} else
|
|
41906
|
-
Oi == i.type ? ha(e) : qB && ((i.type == "}" || i.type == "top") && Oi != ";" || i.type == "statement" && Oi == "newstatement") && Cl(e, t.column(), "statement");
|
|
41416
|
+
for (; i.type == "statement"; ) i = ha(e);
|
|
41417
|
+
for (i.type == "}" && (i = ha(e)); i.type == "statement"; ) i = ha(e);
|
|
41418
|
+
} else Oi == i.type ? ha(e) : qB && ((i.type == "}" || i.type == "top") && Oi != ";" || i.type == "statement" && Oi == "newstatement") && Cl(e, t.column(), "statement");
|
|
41907
41419
|
return e.startOfLine = !1, O;
|
|
41908
41420
|
},
|
|
41909
41421
|
languageData: {
|
|
@@ -41977,27 +41489,19 @@ const GB = {
|
|
|
41977
41489
|
},
|
|
41978
41490
|
token: function(t, e) {
|
|
41979
41491
|
var i = e.context;
|
|
41980
|
-
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace())
|
|
41981
|
-
return null;
|
|
41492
|
+
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace()) return null;
|
|
41982
41493
|
ni = null;
|
|
41983
41494
|
var O = (e.tokenize || EB)(t, e);
|
|
41984
|
-
if (O == "comment")
|
|
41985
|
-
return O;
|
|
41495
|
+
if (O == "comment") return O;
|
|
41986
41496
|
if (i.align == null && (i.align = !0), (ni == ";" || ni == ":" || ni == ",") && i.type == "statement")
|
|
41987
41497
|
$a(e);
|
|
41988
|
-
else if (ni == "{")
|
|
41989
|
-
|
|
41990
|
-
else if (ni == "
|
|
41991
|
-
Gl(e, t.column(), "]");
|
|
41992
|
-
else if (ni == "(")
|
|
41993
|
-
Gl(e, t.column(), ")");
|
|
41498
|
+
else if (ni == "{") Gl(e, t.column(), "}");
|
|
41499
|
+
else if (ni == "[") Gl(e, t.column(), "]");
|
|
41500
|
+
else if (ni == "(") Gl(e, t.column(), ")");
|
|
41994
41501
|
else if (ni == "}") {
|
|
41995
|
-
for (; i.type == "statement"; )
|
|
41996
|
-
|
|
41997
|
-
|
|
41998
|
-
i = $a(e);
|
|
41999
|
-
} else
|
|
42000
|
-
ni == i.type ? $a(e) : WB && ((i.type == "}" || i.type == "top") && ni != ";" || i.type == "statement" && ni == "newstatement") && Gl(e, t.column(), "statement");
|
|
41502
|
+
for (; i.type == "statement"; ) i = $a(e);
|
|
41503
|
+
for (i.type == "}" && (i = $a(e)); i.type == "statement"; ) i = $a(e);
|
|
41504
|
+
} else ni == i.type ? $a(e) : WB && ((i.type == "}" || i.type == "top") && ni != ";" || i.type == "statement" && ni == "newstatement") && Gl(e, t.column(), "statement");
|
|
42001
41505
|
return e.startOfLine = !1, O;
|
|
42002
41506
|
},
|
|
42003
41507
|
languageData: {
|
|
@@ -42060,28 +41564,21 @@ const IB = {
|
|
|
42060
41564
|
};
|
|
42061
41565
|
},
|
|
42062
41566
|
token: function(t, e) {
|
|
42063
|
-
if (t.sol() && (e.context && e.context.align == null && (e.context.align = !1), e.indent = t.indentation()), t.eatSpace())
|
|
42064
|
-
return null;
|
|
41567
|
+
if (t.sol() && (e.context && e.context.align == null && (e.context.align = !1), e.indent = t.indentation()), t.eatSpace()) return null;
|
|
42065
41568
|
var i = e.tokenize(t, e);
|
|
42066
|
-
if (i != "comment" && e.context && e.context.align == null && e.context.type != "pattern" && (e.context.align = !0), VO == "(")
|
|
42067
|
-
|
|
42068
|
-
else if (VO == "
|
|
42069
|
-
jl(e, "]", t.column());
|
|
42070
|
-
else if (VO == "{")
|
|
42071
|
-
jl(e, "}", t.column());
|
|
41569
|
+
if (i != "comment" && e.context && e.context.align == null && e.context.type != "pattern" && (e.context.align = !0), VO == "(") jl(e, ")", t.column());
|
|
41570
|
+
else if (VO == "[") jl(e, "]", t.column());
|
|
41571
|
+
else if (VO == "{") jl(e, "}", t.column());
|
|
42072
41572
|
else if (/[\]\}\)]/.test(VO)) {
|
|
42073
|
-
for (; e.context && e.context.type == "pattern"; )
|
|
42074
|
-
cd(e);
|
|
41573
|
+
for (; e.context && e.context.type == "pattern"; ) cd(e);
|
|
42075
41574
|
e.context && VO == e.context.type && cd(e);
|
|
42076
|
-
} else
|
|
42077
|
-
VO == "." && e.context && e.context.type == "pattern" ? cd(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? jl(e, "pattern", t.column()) : e.context.type == "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
41575
|
+
} else VO == "." && e.context && e.context.type == "pattern" ? cd(e) : /atom|string|variable/.test(i) && e.context && (/[\}\]]/.test(e.context.type) ? jl(e, "pattern", t.column()) : e.context.type == "pattern" && !e.context.align && (e.context.align = !0, e.context.col = t.column()));
|
|
42078
41576
|
return i;
|
|
42079
41577
|
},
|
|
42080
41578
|
indent: function(t, e, i) {
|
|
42081
41579
|
var O = e && e.charAt(0), n = t.context;
|
|
42082
41580
|
if (/[\]\}]/.test(O))
|
|
42083
|
-
for (; n && n.type == "pattern"; )
|
|
42084
|
-
n = n.prev;
|
|
41581
|
+
for (; n && n.type == "pattern"; ) n = n.prev;
|
|
42085
41582
|
var r = n && O == n.type;
|
|
42086
41583
|
return n ? n.type == "pattern" ? n.col : n.align ? n.col + (r ? 0 : 1) : n.indent + (r ? 0 : i.unit) : 0;
|
|
42087
41584
|
},
|
|
@@ -42194,26 +41691,21 @@ var Kv = [
|
|
|
42194
41691
|
// Rest of ConstValue
|
|
42195
41692
|
], MB = Ir(t0), BB = ["callback", "dictionary", "enum", "interface"], FB = Ir(BB), HB = ["typedef"], KB = Ir(HB), JB = /^[:<=>?]/, eF = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/, tF = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/, cy = /^_?[A-Za-z][0-9A-Z_a-z-]*/, iF = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/, OF = /^"[^"]*"/, nF = /^\/\*.*?\*\//, rF = /^\/\*.*/, aF = /^.*?\*\//;
|
|
42196
41693
|
function oF(t, e) {
|
|
42197
|
-
if (t.eatSpace())
|
|
42198
|
-
return null;
|
|
41694
|
+
if (t.eatSpace()) return null;
|
|
42199
41695
|
if (e.inComment)
|
|
42200
41696
|
return t.match(aF) ? (e.inComment = !1, "comment") : (t.skipToEnd(), "comment");
|
|
42201
41697
|
if (t.match("//"))
|
|
42202
41698
|
return t.skipToEnd(), "comment";
|
|
42203
|
-
if (t.match(nF))
|
|
42204
|
-
return "comment";
|
|
41699
|
+
if (t.match(nF)) return "comment";
|
|
42205
41700
|
if (t.match(rF))
|
|
42206
41701
|
return e.inComment = !0, "comment";
|
|
42207
41702
|
if (t.match(/^-?[0-9\.]/, !1) && (t.match(eF) || t.match(tF)))
|
|
42208
41703
|
return "number";
|
|
42209
|
-
if (t.match(OF))
|
|
42210
|
-
|
|
42211
|
-
if (e.startDef && t.match(cy))
|
|
42212
|
-
return "def";
|
|
41704
|
+
if (t.match(OF)) return "string";
|
|
41705
|
+
if (e.startDef && t.match(cy)) return "def";
|
|
42213
41706
|
if (e.endDef && t.match(iF))
|
|
42214
41707
|
return e.endDef = !1, "def";
|
|
42215
|
-
if (t.match(NB))
|
|
42216
|
-
return "keyword";
|
|
41708
|
+
if (t.match(NB)) return "keyword";
|
|
42217
41709
|
if (t.match(LB)) {
|
|
42218
41710
|
var i = e.lastToken, O = (t.match(/^\s*(.+?)\b/, !1) || [])[1];
|
|
42219
41711
|
return i === ":" || i === "implements" || O === "implements" || O === "=" ? "builtin" : "type";
|
|
@@ -42639,8 +42131,7 @@ function u0(t) {
|
|
|
42639
42131
|
const TF = u0({});
|
|
42640
42132
|
u0({ isASP: !0 });
|
|
42641
42133
|
function HQ(t) {
|
|
42642
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
42643
|
-
e[i[O]] = !0;
|
|
42134
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
42644
42135
|
return e;
|
|
42645
42136
|
}
|
|
42646
42137
|
var uy = HQ("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"), Al = HQ("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"), fy = HQ("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"), dy = /[+\-*&%=<>!?:\/|]/;
|
|
@@ -42747,8 +42238,7 @@ function tc(t, e) {
|
|
|
42747
42238
|
var i = t.next();
|
|
42748
42239
|
if (Qy[i]) {
|
|
42749
42240
|
var O = Qy[i](t, e);
|
|
42750
|
-
if (O !== !1)
|
|
42751
|
-
return O;
|
|
42241
|
+
if (O !== !1) return O;
|
|
42752
42242
|
}
|
|
42753
42243
|
if (i == '"')
|
|
42754
42244
|
return e.tokenize = qF(i), e.tokenize(t, e);
|
|
@@ -42812,32 +42302,22 @@ const my = {
|
|
|
42812
42302
|
},
|
|
42813
42303
|
token: function(t, e) {
|
|
42814
42304
|
var i = e.context;
|
|
42815
|
-
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace())
|
|
42816
|
-
return null;
|
|
42305
|
+
if (t.sol() && (i.align == null && (i.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace()) return null;
|
|
42817
42306
|
bi = null;
|
|
42818
42307
|
var O = (e.tokenize || tc)(t, e);
|
|
42819
|
-
if (O == "comment" || O == "meta")
|
|
42820
|
-
|
|
42821
|
-
if (
|
|
42822
|
-
|
|
42823
|
-
else if (bi == "
|
|
42824
|
-
Dl(e, t.column(), "}");
|
|
42825
|
-
else if (bi == "[")
|
|
42826
|
-
Dl(e, t.column(), "]");
|
|
42827
|
-
else if (bi == "(")
|
|
42828
|
-
Dl(e, t.column(), ")");
|
|
42308
|
+
if (O == "comment" || O == "meta") return O;
|
|
42309
|
+
if (i.align == null && (i.align = !0), (bi == ";" || bi == ":") && i.type == "statement") Qa(e);
|
|
42310
|
+
else if (bi == "{") Dl(e, t.column(), "}");
|
|
42311
|
+
else if (bi == "[") Dl(e, t.column(), "]");
|
|
42312
|
+
else if (bi == "(") Dl(e, t.column(), ")");
|
|
42829
42313
|
else if (bi == "}") {
|
|
42830
|
-
for (; i.type == "statement"; )
|
|
42831
|
-
|
|
42832
|
-
|
|
42833
|
-
i = Qa(e);
|
|
42834
|
-
} else
|
|
42835
|
-
bi == i.type ? Qa(e) : (i.type == "}" || i.type == "top" || i.type == "statement" && bi == "newstatement") && Dl(e, t.column(), "statement");
|
|
42314
|
+
for (; i.type == "statement"; ) i = Qa(e);
|
|
42315
|
+
for (i.type == "}" && (i = Qa(e)); i.type == "statement"; ) i = Qa(e);
|
|
42316
|
+
} else bi == i.type ? Qa(e) : (i.type == "}" || i.type == "top" || i.type == "statement" && bi == "newstatement") && Dl(e, t.column(), "statement");
|
|
42836
42317
|
return e.startOfLine = !1, O;
|
|
42837
42318
|
},
|
|
42838
42319
|
indent: function(t, e, i) {
|
|
42839
|
-
if (t.tokenize != tc && t.tokenize != null)
|
|
42840
|
-
return 0;
|
|
42320
|
+
if (t.tokenize != tc && t.tokenize != null) return 0;
|
|
42841
42321
|
var O = e && e.charAt(0), n = t.context, r = O == n.type;
|
|
42842
42322
|
return n.type == "statement" ? n.indented + (O == "{" ? 0 : i.unit) : n.align ? n.column + (r ? 0 : 1) : n.indented + (r ? 0 : i.unit);
|
|
42843
42323
|
},
|
|
@@ -42846,7 +42326,7 @@ const my = {
|
|
|
42846
42326
|
commentTokens: { line: "--" }
|
|
42847
42327
|
}
|
|
42848
42328
|
};
|
|
42849
|
-
var Ll = function() {
|
|
42329
|
+
var Ll = (function() {
|
|
42850
42330
|
function t(d) {
|
|
42851
42331
|
return { type: d, style: "keyword" };
|
|
42852
42332
|
}
|
|
@@ -43101,7 +42581,7 @@ var Ll = function() {
|
|
|
43101
42581
|
], o = 0, l = u.length; o < l; o++)
|
|
43102
42582
|
r[u[o]] = n;
|
|
43103
42583
|
return r;
|
|
43104
|
-
}();
|
|
42584
|
+
})();
|
|
43105
42585
|
function Or(t, e, i) {
|
|
43106
42586
|
return e.tokenize = i, i(t, e);
|
|
43107
42587
|
}
|
|
@@ -43116,8 +42596,7 @@ function ki(t, e) {
|
|
|
43116
42596
|
return Or(t, e, EF);
|
|
43117
42597
|
var r = t.eat("/");
|
|
43118
42598
|
t.eatSpace();
|
|
43119
|
-
for (var a = "", o; o = t.eat(/[^\s\u00a0=<>\"\'\/?]/); )
|
|
43120
|
-
a += o;
|
|
42599
|
+
for (var a = "", o; o = t.eat(/[^\s\u00a0=<>\"\'\/?]/); ) a += o;
|
|
43121
42600
|
return Or(t, e, VF(a, r));
|
|
43122
42601
|
} else {
|
|
43123
42602
|
if (i == "{")
|
|
@@ -43145,12 +42624,10 @@ function ki(t, e) {
|
|
|
43145
42624
|
if (i === "]")
|
|
43146
42625
|
return li(e), null;
|
|
43147
42626
|
var l = Ll.propertyIsEnumerable(i) && Ll[i];
|
|
43148
|
-
if (n && i === '"')
|
|
43149
|
-
|
|
43150
|
-
|
|
43151
|
-
|
|
43152
|
-
for (; t.next() !== "'"; )
|
|
43153
|
-
;
|
|
42627
|
+
if (n && i === '"') for (; t.next() !== '"'; )
|
|
42628
|
+
;
|
|
42629
|
+
if (n && i === "'") for (; t.next() !== "'"; )
|
|
42630
|
+
;
|
|
43154
42631
|
l || t.eatWhile(/[\w\$_-]/);
|
|
43155
42632
|
var s = t.eat(":");
|
|
43156
42633
|
!t.eat(":") && s && t.eatWhile(/[\w\$_-]/), t.match(/^[ \t]*\(/, !1) && (O = !0);
|
|
@@ -43167,8 +42644,7 @@ function YF(t, e) {
|
|
|
43167
42644
|
li(e);
|
|
43168
42645
|
break;
|
|
43169
42646
|
}
|
|
43170
|
-
else
|
|
43171
|
-
r == ":" && O && n++;
|
|
42647
|
+
else r == ":" && O && n++;
|
|
43172
42648
|
i = r == ":", O = r == "(";
|
|
43173
42649
|
}
|
|
43174
42650
|
return "comment";
|
|
@@ -43261,8 +42737,7 @@ const pa = {
|
|
|
43261
42737
|
};
|
|
43262
42738
|
},
|
|
43263
42739
|
token: function(t, e) {
|
|
43264
|
-
if (t.eatSpace())
|
|
43265
|
-
return null;
|
|
42740
|
+
if (t.eatSpace()) return null;
|
|
43266
42741
|
var i = e.tokenize(t, e);
|
|
43267
42742
|
return i;
|
|
43268
42743
|
},
|
|
@@ -43271,8 +42746,7 @@ const pa = {
|
|
|
43271
42746
|
}
|
|
43272
42747
|
};
|
|
43273
42748
|
function jF(t) {
|
|
43274
|
-
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O)
|
|
43275
|
-
e[i[O]] = !0;
|
|
42749
|
+
for (var e = {}, i = t.split(" "), O = 0; O < i.length; ++O) e[i[O]] = !0;
|
|
43276
42750
|
return e;
|
|
43277
42751
|
}
|
|
43278
42752
|
var AF = jF("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"), IF = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)", ic = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)", DF = new RegExp(IF), LF = new RegExp(ic), NF = new RegExp(ic + "?_" + ic), MF = new RegExp(ic + "\\s*\\(");
|
|
@@ -43370,8 +42844,7 @@ function Q0(t) {
|
|
|
43370
42844
|
return "number";
|
|
43371
42845
|
if (r.test(s))
|
|
43372
42846
|
return "error";
|
|
43373
|
-
} else
|
|
43374
|
-
return o.match(a) ? "number" : null;
|
|
42847
|
+
} else return o.match(a) ? "number" : null;
|
|
43375
42848
|
else {
|
|
43376
42849
|
if (o.eat(";"))
|
|
43377
42850
|
return o.skipToEnd(), "comment";
|
|
@@ -43584,24 +43057,23 @@ function dn(t, e, i) {
|
|
|
43584
43057
|
}
|
|
43585
43058
|
}
|
|
43586
43059
|
function qH(t, e) {
|
|
43587
|
-
e:
|
|
43588
|
-
|
|
43589
|
-
|
|
43590
|
-
|
|
43591
|
-
|
|
43060
|
+
e: for (; ; ) {
|
|
43061
|
+
if (t.next < 0)
|
|
43062
|
+
return;
|
|
43063
|
+
if (t.next == 36) {
|
|
43064
|
+
t.advance();
|
|
43065
|
+
for (let i = 0; i < e.length; i++) {
|
|
43066
|
+
if (t.next != e.charCodeAt(i))
|
|
43067
|
+
continue e;
|
|
43592
43068
|
t.advance();
|
|
43593
|
-
|
|
43594
|
-
|
|
43595
|
-
continue e;
|
|
43596
|
-
t.advance();
|
|
43597
|
-
}
|
|
43598
|
-
if (t.next == 36) {
|
|
43599
|
-
t.advance();
|
|
43600
|
-
return;
|
|
43601
|
-
}
|
|
43602
|
-
} else
|
|
43069
|
+
}
|
|
43070
|
+
if (t.next == 36) {
|
|
43603
43071
|
t.advance();
|
|
43604
|
-
|
|
43072
|
+
return;
|
|
43073
|
+
}
|
|
43074
|
+
} else
|
|
43075
|
+
t.advance();
|
|
43076
|
+
}
|
|
43605
43077
|
}
|
|
43606
43078
|
function YH(t, e) {
|
|
43607
43079
|
let i = "[{<(".indexOf(String.fromCharCode(e)), O = i < 0 ? e : "]}>)".charCodeAt(i);
|
|
@@ -43718,8 +43190,7 @@ function T0(t) {
|
|
|
43718
43190
|
if (e.advance(), r == 42 && e.next == 47) {
|
|
43719
43191
|
if (n--, e.advance(), !n)
|
|
43720
43192
|
break;
|
|
43721
|
-
} else
|
|
43722
|
-
r == 47 && e.next == 42 && (n++, e.advance());
|
|
43193
|
+
} else r == 47 && e.next == 42 && (n++, e.advance());
|
|
43723
43194
|
}
|
|
43724
43195
|
e.acceptToken(hH);
|
|
43725
43196
|
} else if ((O == 101 || O == 69) && e.next == 39)
|
|
@@ -44076,8 +43547,7 @@ const au = /* @__PURE__ */ Zr.define({}), KH = /* @__PURE__ */ Zr.define({
|
|
|
44076
43547
|
} else if (O === x0 && e) {
|
|
44077
43548
|
i == 1 ? t.acceptToken(eK, 1) : t.acceptToken(Qd, -1);
|
|
44078
43549
|
break;
|
|
44079
|
-
} else
|
|
44080
|
-
O === k0 && (t.advance(), t.acceptToken(iK, 1));
|
|
43550
|
+
} else O === k0 && (t.advance(), t.acceptToken(iK, 1));
|
|
44081
43551
|
e = O === v0, t.advance();
|
|
44082
43552
|
}
|
|
44083
43553
|
}), lK = /* @__PURE__ */ new Oe((t) => {
|
|
@@ -44092,8 +43562,7 @@ const au = /* @__PURE__ */ Zr.define({}), KH = /* @__PURE__ */ Zr.define({
|
|
|
44092
43562
|
} else if (n === x0 && e) {
|
|
44093
43563
|
O == 1 ? t.acceptToken(OK, 1) : t.acceptToken(pd, -1);
|
|
44094
43564
|
break;
|
|
44095
|
-
} else
|
|
44096
|
-
n === k0 && (t.advance(), t.acceptToken(rK, 1));
|
|
43565
|
+
} else n === k0 && (t.advance(), t.acceptToken(rK, 1));
|
|
44097
43566
|
e = n === v0, i = n === xy, t.advance();
|
|
44098
43567
|
}
|
|
44099
43568
|
}), sK = { __proto__: null, assert: 22, with: 26, let: 30, inherit: 42, in: 48, if: 52, then: 54, else: 56, builtins: 70, null: 214, true: 216, false: 216, rec: 100, or: 108 }, cK = /* @__PURE__ */ We.deserialize({
|
|
@@ -44260,11 +43729,9 @@ function Z0(t) {
|
|
|
44260
43729
|
let qy = null, Yy = null, Zy = 0;
|
|
44261
43730
|
function u$(t, e) {
|
|
44262
43731
|
let i = t.pos + e;
|
|
44263
|
-
if (Zy == i && Yy == t)
|
|
44264
|
-
return qy;
|
|
43732
|
+
if (Zy == i && Yy == t) return qy;
|
|
44265
43733
|
let O = t.peek(e);
|
|
44266
|
-
for (; Z0(O); )
|
|
44267
|
-
O = t.peek(++e);
|
|
43734
|
+
for (; Z0(O); ) O = t.peek(++e);
|
|
44268
43735
|
let n = "";
|
|
44269
43736
|
for (; _K(O); )
|
|
44270
43737
|
n += String.fromCharCode(O), O = t.peek(++e);
|
|
@@ -44308,29 +43775,20 @@ const ZK = [
|
|
|
44308
43775
|
let i = t.next == V0;
|
|
44309
43776
|
i && t.advance();
|
|
44310
43777
|
let O = u$(t, 0);
|
|
44311
|
-
if (O === void 0)
|
|
44312
|
-
|
|
44313
|
-
if (!O)
|
|
44314
|
-
return t.acceptToken(i ? bK : rc);
|
|
43778
|
+
if (O === void 0) return;
|
|
43779
|
+
if (!O) return t.acceptToken(i ? bK : rc);
|
|
44315
43780
|
let n = e.context ? e.context.name : null;
|
|
44316
43781
|
if (i) {
|
|
44317
|
-
if (O == n)
|
|
44318
|
-
return t.acceptToken(SK);
|
|
43782
|
+
if (O == n) return t.acceptToken(SK);
|
|
44319
43783
|
if (n && vK[n])
|
|
44320
43784
|
return t.acceptToken(md, -2);
|
|
44321
|
-
for (let r = e.context; r; r = r.parent)
|
|
44322
|
-
if (r.name == O)
|
|
44323
|
-
return;
|
|
43785
|
+
for (let r = e.context; r; r = r.parent) if (r.name == O) return;
|
|
44324
43786
|
t.acceptToken(PK);
|
|
44325
43787
|
} else {
|
|
44326
|
-
if (O == "script")
|
|
44327
|
-
|
|
44328
|
-
if (O == "
|
|
44329
|
-
|
|
44330
|
-
if (O == "textarea")
|
|
44331
|
-
return t.acceptToken(q0);
|
|
44332
|
-
if (xK.hasOwnProperty(O))
|
|
44333
|
-
return t.acceptToken(Y0);
|
|
43788
|
+
if (O == "script") return t.acceptToken(_0);
|
|
43789
|
+
if (O == "style") return t.acceptToken(R0);
|
|
43790
|
+
if (O == "textarea") return t.acceptToken(q0);
|
|
43791
|
+
if (xK.hasOwnProperty(O)) return t.acceptToken(Y0);
|
|
44334
43792
|
n && Ry[n] && Ry[n][O] ? t.acceptToken(md, -1) : t.acceptToken(rc);
|
|
44335
43793
|
}
|
|
44336
43794
|
},
|
|
@@ -45346,7 +44804,6 @@ function FJ({
|
|
|
45346
44804
|
return Ml.js();
|
|
45347
44805
|
case "json":
|
|
45348
44806
|
return Ml.json();
|
|
45349
|
-
case "html":
|
|
45350
44807
|
default:
|
|
45351
44808
|
return Ml.html();
|
|
45352
44809
|
}
|