wecool-chat 0.10.0 → 0.11.1
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/CHANGELOG.md +37 -0
- package/README.ja.md +9 -3
- package/README.md +14 -3
- package/dist/CopyIndicator-DcJtCBYP.js +63 -0
- package/dist/{MarkdownBody-EIz0jnQy.js → MarkdownBody-DX0DoV4C.js} +901 -893
- package/dist/VoiceControls-B_kX2Uj3.js +160 -0
- package/dist/{VoiceRuntime-DrYjNkZK.js → VoiceRuntime-D1nURNly.js} +13 -13
- package/dist/blank-line-D-aLg3m0.js +213 -0
- package/dist/{browser-M7mS-hAN.js → browser-a2qIWP48.js} +1 -1
- package/dist/core/client.d.ts +5 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/consume-stream.d.ts +18 -1
- package/dist/core/consume-stream.d.ts.map +1 -1
- package/dist/core/i18n/messages.d.ts +2 -0
- package/dist/core/i18n/messages.d.ts.map +1 -1
- package/dist/core/narration-round.d.ts +27 -0
- package/dist/core/narration-round.d.ts.map +1 -0
- package/dist/core/placeholder-manager.d.ts +30 -0
- package/dist/core/placeholder-manager.d.ts.map +1 -0
- package/dist/core/run-conversation.d.ts.map +1 -1
- package/dist/core/stream-state.d.ts +9 -1
- package/dist/core/stream-state.d.ts.map +1 -1
- package/dist/core/types.d.ts +21 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/createLucideIcon-Dc6H577p.js +120 -0
- package/dist/index.css +2 -2
- package/dist/index.js +6514 -5325
- package/dist/{jsx-runtime-Cyy0mp0f.js → jsx-runtime-2MlY8uwR.js} +132 -122
- package/dist/{messages-FvtWi3lI.js → messages-ZLdeJx9N.js} +11 -31
- package/dist/observe/__tests__/widget-self-http.test.d.ts +2 -0
- package/dist/observe/__tests__/widget-self-http.test.d.ts.map +1 -0
- package/dist/observe/__tests__/widget-self.test.d.ts +2 -0
- package/dist/observe/__tests__/widget-self.test.d.ts.map +1 -0
- package/dist/observe/observers/http.d.ts.map +1 -1
- package/dist/observe/observers/js-error.d.ts +7 -2
- package/dist/observe/observers/js-error.d.ts.map +1 -1
- package/dist/observe/widget-self.d.ts +46 -0
- package/dist/observe/widget-self.d.ts.map +1 -0
- package/dist/plugin/logger.d.ts.map +1 -1
- package/dist/plugins/qrcode.js +7 -6
- package/dist/remark-gfm-DDNju7JY.js +2247 -0
- package/dist/{remark-parse-BnwSmQr-.js → remark-parse-B3YPcONN.js} +377 -445
- package/dist/rolldown-runtime-Csywlj8R.js +25 -0
- package/dist/ui/components/ChatFooter.d.ts +4 -3
- package/dist/ui/components/ChatFooter.d.ts.map +1 -1
- package/dist/ui/components/ChatHeader.d.ts +1 -1
- package/dist/ui/components/ChatHeaderMenu.d.ts +1 -1
- package/dist/ui/components/ChatPanel.d.ts +1 -1
- package/dist/ui/components/ChatWidget.d.ts.map +1 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts +1 -1
- package/dist/ui/components/CommandOverlays.d.ts +1 -1
- package/dist/ui/components/CommandPalette.d.ts +1 -1
- package/dist/ui/components/ConversationSelect.d.ts +1 -1
- package/dist/ui/components/CopyIndicator.d.ts +1 -1
- package/dist/ui/components/FloatButton.d.ts +1 -1
- package/dist/ui/components/FooterActions.d.ts +1 -1
- package/dist/ui/components/HelpDialogContent.d.ts +1 -1
- package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
- package/dist/ui/components/MessageAttachments.d.ts +1 -1
- package/dist/ui/components/MessageBubble.d.ts +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts +1 -1
- package/dist/ui/components/MessageEditor.d.ts +1 -1
- package/dist/ui/components/MessageList.d.ts +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
- package/dist/ui/components/MessageRow.d.ts +1 -1
- package/dist/ui/components/MessageRowActions.d.ts +1 -1
- package/dist/ui/components/MicButton.d.ts +1 -1
- package/dist/ui/components/ResizeHandles.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationCard.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationRecord.d.ts +1 -1
- package/dist/ui/components/ToolsDialogContent.d.ts +1 -1
- package/dist/ui/components/VoiceControls.d.ts +1 -1
- package/dist/ui/components/VoiceControls.d.ts.map +1 -1
- package/dist/ui/components/VoiceLoopStatusBar.d.ts +1 -1
- package/dist/ui/components/VoiceLoopToggle.d.ts +1 -1
- package/dist/ui/components/VoiceRuntime.d.ts +1 -1
- package/dist/ui/components/WidgetDialog.d.ts +1 -1
- package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownBody.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownMessage.d.ts +1 -1
- package/dist/ui/hooks/use-mic-button.d.ts +2 -0
- package/dist/ui/hooks/use-mic-button.d.ts.map +1 -1
- package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
- package/dist/{unified-DctkAd9P.js → unified-DvM6W8YC.js} +3 -3
- package/dist/{use-voice-input-LtJJz-zQ.js → use-voice-input-DJtyHnsT.js} +3 -3
- package/dist/{voice-support-BeOiOzcn.js → voice-support-DYXg7xML.js} +2 -2
- package/package.json +33 -33
- package/dist/CopyIndicator-RR3hSsBA.js +0 -51
- package/dist/VoiceControls-A7N4uPTo.js +0 -146
- package/dist/blank-line-CUDmZ-mX.js +0 -143
- package/dist/createLucideIcon-C7wGkK-Q.js +0 -43
- package/dist/remark-gfm-Bzy1u34W.js +0 -1962
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as ia, r as oa, t as sa } from "./jsx-runtime-
|
|
3
|
-
import { n as la, r as ca, t as ua } from "./CopyIndicator-RR3hSsBA.js";
|
|
1
|
+
import { n as aa, r as Dn, t as We } from "./rolldown-runtime-Csywlj8R.js";
|
|
2
|
+
import { i as ia, r as oa, t as sa } from "./jsx-runtime-2MlY8uwR.js";
|
|
4
3
|
import { n as Tn, t as he } from "./default-sNAxTmdF.js";
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { i as Rt, n as la, r as ca } from "./unified-DvM6W8YC.js";
|
|
5
|
+
import { n as ua } from "./remark-parse-B3YPcONN.js";
|
|
6
|
+
import { p as it } from "./blank-line-D-aLg3m0.js";
|
|
7
|
+
import da, { n as pa, r as ga, t as ma } from "./remark-gfm-DDNju7JY.js";
|
|
8
|
+
import { n as fa, r as ba, t as ha } from "./CopyIndicator-DcJtCBYP.js";
|
|
9
|
+
import { t as _a } from "./stable-prefix-BHsGj4tL.js";
|
|
10
10
|
function ze(e) {
|
|
11
11
|
const n = [];
|
|
12
12
|
let t = -1, r = 0, a = 0;
|
|
13
13
|
for (; ++t < e.length; ) {
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
17
|
-
else if (
|
|
18
|
-
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(
|
|
19
|
-
else if (
|
|
14
|
+
const o = e.charCodeAt(t);
|
|
15
|
+
let i = "";
|
|
16
|
+
if (o === 37 && it(e.charCodeAt(t + 1)) && it(e.charCodeAt(t + 2))) a = 2;
|
|
17
|
+
else if (o < 128)
|
|
18
|
+
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (i = String.fromCharCode(o));
|
|
19
|
+
else if (o > 55295 && o < 57344) {
|
|
20
20
|
const c = e.charCodeAt(t + 1);
|
|
21
|
-
|
|
22
|
-
} else
|
|
23
|
-
|
|
21
|
+
o < 56320 && c > 56319 && c < 57344 ? (i = String.fromCharCode(o, c), a = 1) : i = "�";
|
|
22
|
+
} else i = String.fromCharCode(o);
|
|
23
|
+
i && (n.push(e.slice(r, t), encodeURIComponent(i)), r = t + a + 1, i = ""), a && (t += a, a = 0);
|
|
24
24
|
}
|
|
25
25
|
return n.join("") + e.slice(r);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ea(e, n) {
|
|
28
28
|
const t = n || {};
|
|
29
29
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join((t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")).trim();
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
function
|
|
33
|
-
return ((n ||
|
|
31
|
+
var ya = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, va = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, wa = {};
|
|
32
|
+
function ot(e, n) {
|
|
33
|
+
return ((n || wa).jsx ? va : ya).test(e);
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
35
|
+
var Na = /[ \t\n\f\r]/g;
|
|
36
|
+
function Sa(e) {
|
|
37
|
+
return typeof e == "object" ? e.type === "text" ? st(e.value) : !1 : st(e);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return e.replace(
|
|
39
|
+
function st(e) {
|
|
40
|
+
return e.replace(Na, "") === "";
|
|
41
41
|
}
|
|
42
42
|
var Ze = class {
|
|
43
43
|
constructor(e, n, t) {
|
|
@@ -47,7 +47,7 @@ var Ze = class {
|
|
|
47
47
|
Ze.prototype.normal = {};
|
|
48
48
|
Ze.prototype.property = {};
|
|
49
49
|
Ze.prototype.space = void 0;
|
|
50
|
-
function
|
|
50
|
+
function Mt(e, n) {
|
|
51
51
|
const t = {}, r = {};
|
|
52
52
|
for (const a of e)
|
|
53
53
|
Object.assign(t, a.property), Object.assign(r, a.normal);
|
|
@@ -81,32 +81,32 @@ var On = /* @__PURE__ */ aa({
|
|
|
81
81
|
number: () => b,
|
|
82
82
|
overloadedBoolean: () => Cn,
|
|
83
83
|
spaceSeparated: () => W
|
|
84
|
-
}),
|
|
84
|
+
}), ka = 0, D = Re(), ne = Re(), Cn = Re(), b = Re(), W = Re(), Fe = Re(), be = Re();
|
|
85
85
|
function Re() {
|
|
86
|
-
return 2 ** ++
|
|
86
|
+
return 2 ** ++ka;
|
|
87
87
|
}
|
|
88
|
-
var Nn = Object.keys(On),
|
|
88
|
+
var Nn = Object.keys(On), Ln = class extends fe {
|
|
89
89
|
constructor(e, n, t, r) {
|
|
90
90
|
let a = -1;
|
|
91
|
-
if (super(e, n),
|
|
92
|
-
const
|
|
93
|
-
|
|
91
|
+
if (super(e, n), lt(this, "space", r), typeof t == "number") for (; ++a < Nn.length; ) {
|
|
92
|
+
const o = Nn[a];
|
|
93
|
+
lt(this, Nn[a], (t & On[o]) === On[o]);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
function
|
|
97
|
+
Ln.prototype.defined = !0;
|
|
98
|
+
function lt(e, n, t) {
|
|
99
99
|
t && (e[n] = t);
|
|
100
100
|
}
|
|
101
101
|
function $e(e) {
|
|
102
102
|
const n = {}, t = {};
|
|
103
103
|
for (const [r, a] of Object.entries(e.properties)) {
|
|
104
|
-
const
|
|
105
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (
|
|
104
|
+
const o = new Ln(r, e.transform(e.attributes || {}, r), a, e.space);
|
|
105
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), n[r] = o, t[An(r)] = r, t[An(o.attribute)] = r;
|
|
106
106
|
}
|
|
107
107
|
return new Ze(n, t, e.space);
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var It = $e({
|
|
110
110
|
properties: {
|
|
111
111
|
ariaActiveDescendant: null,
|
|
112
112
|
ariaAtomic: ne,
|
|
@@ -162,13 +162,13 @@ var Dt = $e({
|
|
|
162
162
|
return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
|
-
function
|
|
165
|
+
function Dt(e, n) {
|
|
166
166
|
return n in e ? e[n] : n;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
return
|
|
168
|
+
function Lt(e, n) {
|
|
169
|
+
return Dt(e, n.toLowerCase());
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var xa = $e({
|
|
172
172
|
attributes: {
|
|
173
173
|
acceptcharset: "accept-charset",
|
|
174
174
|
classname: "class",
|
|
@@ -476,8 +476,8 @@ var Sa = $e({
|
|
|
476
476
|
unselectable: null
|
|
477
477
|
},
|
|
478
478
|
space: "html",
|
|
479
|
-
transform:
|
|
480
|
-
}),
|
|
479
|
+
transform: Lt
|
|
480
|
+
}), Ta = $e({
|
|
481
481
|
attributes: {
|
|
482
482
|
accentHeight: "accent-height",
|
|
483
483
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1031,8 +1031,8 @@ var Sa = $e({
|
|
|
1031
1031
|
zoomAndPan: null
|
|
1032
1032
|
},
|
|
1033
1033
|
space: "svg",
|
|
1034
|
-
transform:
|
|
1035
|
-
}),
|
|
1034
|
+
transform: Dt
|
|
1035
|
+
}), Pt = $e({
|
|
1036
1036
|
properties: {
|
|
1037
1037
|
xLinkActuate: null,
|
|
1038
1038
|
xLinkArcRole: null,
|
|
@@ -1046,15 +1046,15 @@ var Sa = $e({
|
|
|
1046
1046
|
transform(e, n) {
|
|
1047
1047
|
return "xlink:" + n.slice(5).toLowerCase();
|
|
1048
1048
|
}
|
|
1049
|
-
}),
|
|
1049
|
+
}), Bt = $e({
|
|
1050
1050
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1051
1051
|
properties: {
|
|
1052
1052
|
xmlnsXLink: null,
|
|
1053
1053
|
xmlns: null
|
|
1054
1054
|
},
|
|
1055
1055
|
space: "xmlns",
|
|
1056
|
-
transform:
|
|
1057
|
-
}),
|
|
1056
|
+
transform: Lt
|
|
1057
|
+
}), Ut = $e({
|
|
1058
1058
|
properties: {
|
|
1059
1059
|
xmlBase: null,
|
|
1060
1060
|
xmlLang: null,
|
|
@@ -1064,7 +1064,7 @@ var Sa = $e({
|
|
|
1064
1064
|
transform(e, n) {
|
|
1065
1065
|
return "xml:" + n.slice(3).toLowerCase();
|
|
1066
1066
|
}
|
|
1067
|
-
}),
|
|
1067
|
+
}), Aa = {
|
|
1068
1068
|
classId: "classID",
|
|
1069
1069
|
dataType: "datatype",
|
|
1070
1070
|
itemId: "itemID",
|
|
@@ -1082,50 +1082,50 @@ var Sa = $e({
|
|
|
1082
1082
|
xLinkTitle: "xlinkTitle",
|
|
1083
1083
|
xLinkType: "xlinkType",
|
|
1084
1084
|
xmlnsXLink: "xmlnsXlink"
|
|
1085
|
-
},
|
|
1086
|
-
function
|
|
1085
|
+
}, Oa = /[A-Z]/g, ct = /-[a-z]/g, Ca = /^data[-\w.:]+$/i;
|
|
1086
|
+
function Ra(e, n) {
|
|
1087
1087
|
const t = An(n);
|
|
1088
1088
|
let r = n, a = fe;
|
|
1089
1089
|
if (t in e.normal) return e.property[e.normal[t]];
|
|
1090
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
1090
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && Ca.test(n)) {
|
|
1091
1091
|
if (n.charAt(4) === "-") {
|
|
1092
|
-
const
|
|
1093
|
-
r = "data" +
|
|
1092
|
+
const o = n.slice(5).replace(ct, Ia);
|
|
1093
|
+
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
1094
1094
|
} else {
|
|
1095
|
-
const
|
|
1096
|
-
if (!
|
|
1097
|
-
let
|
|
1098
|
-
|
|
1095
|
+
const o = n.slice(4);
|
|
1096
|
+
if (!ct.test(o)) {
|
|
1097
|
+
let i = o.replace(Oa, Ma);
|
|
1098
|
+
i.charAt(0) !== "-" && (i = "-" + i), n = "data" + i;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
a =
|
|
1101
|
+
a = Ln;
|
|
1102
1102
|
}
|
|
1103
1103
|
return new a(r, n);
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function Ma(e) {
|
|
1106
1106
|
return "-" + e.toLowerCase();
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Ia(e) {
|
|
1109
1109
|
return e.charAt(1).toUpperCase();
|
|
1110
1110
|
}
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1113
|
-
|
|
1111
|
+
var Da = Mt([
|
|
1112
|
+
It,
|
|
1113
|
+
xa,
|
|
1114
|
+
Pt,
|
|
1114
1115
|
Bt,
|
|
1115
|
-
Ut
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1116
|
+
Ut
|
|
1117
|
+
], "html"), Pn = Mt([
|
|
1118
|
+
It,
|
|
1119
|
+
Ta,
|
|
1120
|
+
Pt,
|
|
1120
1121
|
Bt,
|
|
1121
|
-
Ut
|
|
1122
|
-
Ft
|
|
1122
|
+
Ut
|
|
1123
1123
|
], "svg");
|
|
1124
|
-
function
|
|
1124
|
+
function La(e) {
|
|
1125
1125
|
return e.join(" ").trim();
|
|
1126
1126
|
}
|
|
1127
|
-
var
|
|
1128
|
-
var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, a = /^\s*/,
|
|
1127
|
+
var Pa = /* @__PURE__ */ We(((e, n) => {
|
|
1128
|
+
var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, a = /^\s*/, o = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, c = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, d = /^\s+|\s+$/g, u = `
|
|
1129
1129
|
`, g = "/", p = "*", m = "", y = "comment", _ = "declaration";
|
|
1130
1130
|
function S(v, B) {
|
|
1131
1131
|
if (typeof v != "string") throw new TypeError("First argument must be a string");
|
|
@@ -1186,9 +1186,9 @@ var Da = /* @__PURE__ */ We(((e, n) => {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
function oe() {
|
|
1189
|
-
var C = te(), w = ie(
|
|
1189
|
+
var C = te(), w = ie(o);
|
|
1190
1190
|
if (w) {
|
|
1191
|
-
if (j(), !ie(
|
|
1191
|
+
if (j(), !ie(i)) return Y("property missing ':'");
|
|
1192
1192
|
var z = ie(c), ce = C({
|
|
1193
1193
|
type: _,
|
|
1194
1194
|
property: T(w[0].replace(t, m)),
|
|
@@ -1209,47 +1209,47 @@ var Da = /* @__PURE__ */ We(((e, n) => {
|
|
|
1209
1209
|
return v ? v.replace(d, m) : m;
|
|
1210
1210
|
}
|
|
1211
1211
|
n.exports = S;
|
|
1212
|
-
})),
|
|
1213
|
-
var
|
|
1214
|
-
return
|
|
1212
|
+
})), Ba = /* @__PURE__ */ We(((e, n, t) => {
|
|
1213
|
+
var r = t && t.__importDefault || function(i) {
|
|
1214
|
+
return i && i.__esModule ? i : { default: i };
|
|
1215
1215
|
};
|
|
1216
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default =
|
|
1217
|
-
var
|
|
1218
|
-
function
|
|
1219
|
-
let
|
|
1220
|
-
if (!
|
|
1221
|
-
const
|
|
1222
|
-
return
|
|
1223
|
-
if (
|
|
1224
|
-
const { property:
|
|
1225
|
-
|
|
1226
|
-
}),
|
|
1216
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
|
|
1217
|
+
var a = r(Pa());
|
|
1218
|
+
function o(i, c) {
|
|
1219
|
+
let l = null;
|
|
1220
|
+
if (!i || typeof i != "string") return l;
|
|
1221
|
+
const d = (0, a.default)(i), u = typeof c == "function";
|
|
1222
|
+
return d.forEach((g) => {
|
|
1223
|
+
if (g.type !== "declaration") return;
|
|
1224
|
+
const { property: p, value: m } = g;
|
|
1225
|
+
u ? c(p, m, g) : m && (l = l || {}, l[p] = m);
|
|
1226
|
+
}), l;
|
|
1227
1227
|
}
|
|
1228
|
-
})),
|
|
1228
|
+
})), Ua = /* @__PURE__ */ We(((e) => {
|
|
1229
1229
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
1230
|
-
var n = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, r = /^[^-]+$/, a = /^-(webkit|moz|ms|o|khtml)-/,
|
|
1230
|
+
var n = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, r = /^[^-]+$/, a = /^-(webkit|moz|ms|o|khtml)-/, o = /^-(ms)-/, i = function(u) {
|
|
1231
1231
|
return !u || r.test(u) || n.test(u);
|
|
1232
1232
|
}, c = function(u, g) {
|
|
1233
1233
|
return g.toUpperCase();
|
|
1234
1234
|
}, l = function(u, g) {
|
|
1235
1235
|
return "".concat(g, "-");
|
|
1236
1236
|
}, d = function(u, g) {
|
|
1237
|
-
return g === void 0 && (g = {}),
|
|
1237
|
+
return g === void 0 && (g = {}), i(u) ? u : (u = u.toLowerCase(), g.reactCompat ? u = u.replace(o, l) : u = u.replace(a, l), u.replace(t, c));
|
|
1238
1238
|
};
|
|
1239
1239
|
e.camelCase = d;
|
|
1240
|
-
})),
|
|
1241
|
-
var
|
|
1240
|
+
})), Fa = /* @__PURE__ */ We(((e, n, t) => {
|
|
1241
|
+
var r = (t && t.__importDefault || function(i) {
|
|
1242
1242
|
return i && i.__esModule ? i : { default: i };
|
|
1243
|
-
})(
|
|
1244
|
-
function
|
|
1245
|
-
var
|
|
1246
|
-
return !i || typeof i != "string" || (0,
|
|
1247
|
-
|
|
1248
|
-
}),
|
|
1243
|
+
})(Ba()), a = Ua();
|
|
1244
|
+
function o(i, c) {
|
|
1245
|
+
var l = {};
|
|
1246
|
+
return !i || typeof i != "string" || (0, r.default)(i, function(d, u) {
|
|
1247
|
+
d && u && (l[(0, a.camelCase)(d, c)] = u);
|
|
1248
|
+
}), l;
|
|
1249
1249
|
}
|
|
1250
|
-
|
|
1251
|
-
})),
|
|
1252
|
-
function
|
|
1250
|
+
o.default = o, n.exports = o;
|
|
1251
|
+
})), Ft = zt("end"), Bn = zt("start");
|
|
1252
|
+
function zt(e) {
|
|
1253
1253
|
return n;
|
|
1254
1254
|
function n(t) {
|
|
1255
1255
|
const r = t && t.position && t.position[e] || {};
|
|
@@ -1260,31 +1260,31 @@ function $t(e) {
|
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const n =
|
|
1263
|
+
function za(e) {
|
|
1264
|
+
const n = Bn(e), t = Ft(e);
|
|
1265
1265
|
if (n && t) return {
|
|
1266
1266
|
start: n,
|
|
1267
1267
|
end: t
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
|
-
var
|
|
1270
|
+
var $a = /* @__PURE__ */ Dn(Fa(), 1), Un = {}.hasOwnProperty, Ga = /* @__PURE__ */ new Map(), Ka = /[A-Z]/g, Ha = /* @__PURE__ */ new Set([
|
|
1271
1271
|
"table",
|
|
1272
1272
|
"tbody",
|
|
1273
1273
|
"thead",
|
|
1274
1274
|
"tfoot",
|
|
1275
1275
|
"tr"
|
|
1276
|
-
]),
|
|
1277
|
-
function
|
|
1276
|
+
]), qa = /* @__PURE__ */ new Set(["td", "th"]), $t = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1277
|
+
function Wa(e, n) {
|
|
1278
1278
|
if (!n || n.Fragment === void 0) throw new TypeError("Expected `Fragment` in options");
|
|
1279
1279
|
const t = n.filePath || void 0;
|
|
1280
1280
|
let r;
|
|
1281
1281
|
if (n.development) {
|
|
1282
1282
|
if (typeof n.jsxDEV != "function") throw new TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
1283
|
-
r =
|
|
1283
|
+
r = ei(t, n.jsxDEV);
|
|
1284
1284
|
} else {
|
|
1285
1285
|
if (typeof n.jsx != "function") throw new TypeError("Expected `jsx` in production options");
|
|
1286
1286
|
if (typeof n.jsxs != "function") throw new TypeError("Expected `jsxs` in production options");
|
|
1287
|
-
r =
|
|
1287
|
+
r = ja(t, n.jsx, n.jsxs);
|
|
1288
1288
|
}
|
|
1289
1289
|
const a = {
|
|
1290
1290
|
Fragment: n.Fragment,
|
|
@@ -1297,166 +1297,166 @@ function Ha(e, n) {
|
|
|
1297
1297
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
|
1298
1298
|
passKeys: n.passKeys !== !1,
|
|
1299
1299
|
passNode: n.passNode || !1,
|
|
1300
|
-
schema: n.space === "svg" ?
|
|
1300
|
+
schema: n.space === "svg" ? Pn : Da,
|
|
1301
1301
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
1302
1302
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
1303
|
-
},
|
|
1304
|
-
return
|
|
1305
|
-
}
|
|
1306
|
-
function
|
|
1307
|
-
if (n.type === "element") return
|
|
1308
|
-
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression") return
|
|
1309
|
-
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement") return
|
|
1310
|
-
if (n.type === "mdxjsEsm") return
|
|
1311
|
-
if (n.type === "root") return
|
|
1312
|
-
if (n.type === "text") return
|
|
1313
|
-
}
|
|
1314
|
-
function
|
|
1303
|
+
}, o = Gt(a, e, void 0);
|
|
1304
|
+
return o && typeof o != "string" ? o : a.create(e, a.Fragment, { children: o || void 0 }, void 0);
|
|
1305
|
+
}
|
|
1306
|
+
function Gt(e, n, t) {
|
|
1307
|
+
if (n.type === "element") return Za(e, n, t);
|
|
1308
|
+
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression") return Ya(e, n);
|
|
1309
|
+
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement") return Xa(e, n, t);
|
|
1310
|
+
if (n.type === "mdxjsEsm") return Va(e, n);
|
|
1311
|
+
if (n.type === "root") return Qa(e, n, t);
|
|
1312
|
+
if (n.type === "text") return Ja(e, n);
|
|
1313
|
+
}
|
|
1314
|
+
function Za(e, n, t) {
|
|
1315
1315
|
const r = e.schema;
|
|
1316
1316
|
let a = r;
|
|
1317
|
-
n.tagName.toLowerCase() === "svg" && r.space === "html" && (a =
|
|
1318
|
-
const
|
|
1319
|
-
let c =
|
|
1320
|
-
return
|
|
1321
|
-
return typeof l == "string" ? !
|
|
1322
|
-
})),
|
|
1323
|
-
}
|
|
1324
|
-
function
|
|
1317
|
+
n.tagName.toLowerCase() === "svg" && r.space === "html" && (a = Pn, e.schema = a), e.ancestors.push(n);
|
|
1318
|
+
const o = Ht(e, n.tagName, !1), i = ni(e, n);
|
|
1319
|
+
let c = zn(e, n);
|
|
1320
|
+
return Ha.has(n.tagName) && (c = c.filter(function(l) {
|
|
1321
|
+
return typeof l == "string" ? !Sa(l) : !0;
|
|
1322
|
+
})), Kt(e, i, o, n), Fn(i, c), e.ancestors.pop(), e.schema = r, e.create(n, o, i, t);
|
|
1323
|
+
}
|
|
1324
|
+
function Ya(e, n) {
|
|
1325
1325
|
if (n.data && n.data.estree && e.evaluater) {
|
|
1326
1326
|
const t = n.data.estree.body[0];
|
|
1327
1327
|
return t.type, e.evaluater.evaluateExpression(t.expression);
|
|
1328
1328
|
}
|
|
1329
1329
|
qe(e, n.position);
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function Va(e, n) {
|
|
1332
1332
|
if (n.data && n.data.estree && e.evaluater) return e.evaluater.evaluateProgram(n.data.estree);
|
|
1333
1333
|
qe(e, n.position);
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Xa(e, n, t) {
|
|
1336
1336
|
const r = e.schema;
|
|
1337
1337
|
let a = r;
|
|
1338
|
-
n.name === "svg" && r.space === "html" && (a =
|
|
1339
|
-
const
|
|
1340
|
-
return
|
|
1338
|
+
n.name === "svg" && r.space === "html" && (a = Pn, e.schema = a), e.ancestors.push(n);
|
|
1339
|
+
const o = n.name === null ? e.Fragment : Ht(e, n.name, !0), i = ti(e, n), c = zn(e, n);
|
|
1340
|
+
return Kt(e, i, o, n), Fn(i, c), e.ancestors.pop(), e.schema = r, e.create(n, o, i, t);
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Qa(e, n, t) {
|
|
1343
1343
|
const r = {};
|
|
1344
|
-
return
|
|
1344
|
+
return Fn(r, zn(e, n)), e.create(n, e.Fragment, r, t);
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Ja(e, n) {
|
|
1347
1347
|
return n.value;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function Kt(e, n, t, r) {
|
|
1350
1350
|
typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function Fn(e, n) {
|
|
1353
1353
|
if (n.length > 0) {
|
|
1354
1354
|
const t = n.length > 1 ? n : n[0];
|
|
1355
1355
|
t && (e.children = t);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function ja(e, n, t) {
|
|
1359
1359
|
return r;
|
|
1360
|
-
function r(a,
|
|
1361
|
-
const l = Array.isArray(
|
|
1362
|
-
return c ? l(
|
|
1360
|
+
function r(a, o, i, c) {
|
|
1361
|
+
const l = Array.isArray(i.children) ? t : n;
|
|
1362
|
+
return c ? l(o, i, c) : l(o, i);
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function ei(e, n) {
|
|
1366
1366
|
return t;
|
|
1367
|
-
function t(r, a,
|
|
1368
|
-
const c = Array.isArray(
|
|
1369
|
-
return n(a,
|
|
1367
|
+
function t(r, a, o, i) {
|
|
1368
|
+
const c = Array.isArray(o.children), l = Bn(r);
|
|
1369
|
+
return n(a, o, i, c, {
|
|
1370
1370
|
columnNumber: l ? l.column - 1 : void 0,
|
|
1371
1371
|
fileName: e,
|
|
1372
1372
|
lineNumber: l ? l.line : void 0
|
|
1373
1373
|
}, void 0);
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function ni(e, n) {
|
|
1377
1377
|
const t = {};
|
|
1378
1378
|
let r, a;
|
|
1379
|
-
for (a in n.properties) if (a !== "children" &&
|
|
1380
|
-
const
|
|
1381
|
-
if (
|
|
1382
|
-
const [
|
|
1383
|
-
e.tableCellAlignToStyle &&
|
|
1379
|
+
for (a in n.properties) if (a !== "children" && Un.call(n.properties, a)) {
|
|
1380
|
+
const o = ri(e, a, n.properties[a]);
|
|
1381
|
+
if (o) {
|
|
1382
|
+
const [i, c] = o;
|
|
1383
|
+
e.tableCellAlignToStyle && i === "align" && typeof c == "string" && qa.has(n.tagName) ? r = c : t[i] = c;
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
if (r) {
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1387
|
+
const o = t.style || (t.style = {});
|
|
1388
|
+
o[e.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = r;
|
|
1389
1389
|
}
|
|
1390
1390
|
return t;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function ti(e, n) {
|
|
1393
1393
|
const t = {};
|
|
1394
1394
|
for (const r of n.attributes) if (r.type === "mdxJsxExpressionAttribute")
|
|
1395
1395
|
if (r.data && r.data.estree && e.evaluater) {
|
|
1396
1396
|
const a = r.data.estree.body[0];
|
|
1397
1397
|
a.type;
|
|
1398
|
-
const
|
|
1399
|
-
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1398
|
+
const o = a.expression;
|
|
1399
|
+
o.type;
|
|
1400
|
+
const i = o.properties[0];
|
|
1401
|
+
i.type, Object.assign(t, e.evaluater.evaluateExpression(i.argument));
|
|
1402
1402
|
} else qe(e, n.position);
|
|
1403
1403
|
else {
|
|
1404
1404
|
const a = r.name;
|
|
1405
|
-
let
|
|
1405
|
+
let o;
|
|
1406
1406
|
if (r.value && typeof r.value == "object")
|
|
1407
1407
|
if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
1408
|
-
const
|
|
1409
|
-
|
|
1408
|
+
const i = r.value.data.estree.body[0];
|
|
1409
|
+
i.type, o = e.evaluater.evaluateExpression(i.expression);
|
|
1410
1410
|
} else qe(e, n.position);
|
|
1411
|
-
else
|
|
1412
|
-
t[a] =
|
|
1411
|
+
else o = r.value === null ? !0 : r.value;
|
|
1412
|
+
t[a] = o;
|
|
1413
1413
|
}
|
|
1414
1414
|
return t;
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function zn(e, n) {
|
|
1417
1417
|
const t = [];
|
|
1418
1418
|
let r = -1;
|
|
1419
|
-
const a = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1419
|
+
const a = e.passKeys ? /* @__PURE__ */ new Map() : Ga;
|
|
1420
1420
|
for (; ++r < n.children.length; ) {
|
|
1421
|
-
const
|
|
1422
|
-
let
|
|
1421
|
+
const o = n.children[r];
|
|
1422
|
+
let i;
|
|
1423
1423
|
if (e.passKeys) {
|
|
1424
|
-
const l =
|
|
1424
|
+
const l = o.type === "element" ? o.tagName : o.type === "mdxJsxFlowElement" || o.type === "mdxJsxTextElement" ? o.name : void 0;
|
|
1425
1425
|
if (l) {
|
|
1426
1426
|
const d = a.get(l) || 0;
|
|
1427
|
-
|
|
1427
|
+
i = l + "-" + d, a.set(l, d + 1);
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
const c =
|
|
1430
|
+
const c = Gt(e, o, i);
|
|
1431
1431
|
c !== void 0 && t.push(c);
|
|
1432
1432
|
}
|
|
1433
1433
|
return t;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
const r =
|
|
1435
|
+
function ri(e, n, t) {
|
|
1436
|
+
const r = Ra(e.schema, n);
|
|
1437
1437
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
1438
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
|
1439
|
-
let a = typeof t == "object" ? t :
|
|
1440
|
-
return e.stylePropertyNameCase === "css" && (a =
|
|
1438
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? Ea(t) : La(t)), r.property === "style") {
|
|
1439
|
+
let a = typeof t == "object" ? t : ai(e, String(t));
|
|
1440
|
+
return e.stylePropertyNameCase === "css" && (a = ii(a)), ["style", a];
|
|
1441
1441
|
}
|
|
1442
|
-
return [e.elementAttributeNameCase === "react" && r.space ?
|
|
1442
|
+
return [e.elementAttributeNameCase === "react" && r.space ? Aa[r.property] || r.property : r.attribute, t];
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function ai(e, n) {
|
|
1446
1446
|
try {
|
|
1447
|
-
return (0,
|
|
1447
|
+
return (0, $a.default)(n, { reactCompat: !0 });
|
|
1448
1448
|
} catch (t) {
|
|
1449
1449
|
if (e.ignoreInvalidStyle) return {};
|
|
1450
|
-
const r = t, a = new
|
|
1450
|
+
const r = t, a = new Rt("Cannot parse `style` attribute", {
|
|
1451
1451
|
ancestors: e.ancestors,
|
|
1452
1452
|
cause: r,
|
|
1453
1453
|
ruleId: "style",
|
|
1454
1454
|
source: "hast-util-to-jsx-runtime"
|
|
1455
1455
|
});
|
|
1456
|
-
throw a.file = e.filePath || void 0, a.url =
|
|
1456
|
+
throw a.file = e.filePath || void 0, a.url = $t + "#cannot-parse-style-attribute", a;
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Ht(e, n, t) {
|
|
1460
1460
|
let r;
|
|
1461
1461
|
if (!t) r = {
|
|
1462
1462
|
type: "Literal",
|
|
@@ -1464,25 +1464,25 @@ function qt(e, n, t) {
|
|
|
1464
1464
|
};
|
|
1465
1465
|
else if (n.includes(".")) {
|
|
1466
1466
|
const a = n.split(".");
|
|
1467
|
-
let
|
|
1468
|
-
for (; ++
|
|
1469
|
-
const c =
|
|
1467
|
+
let o = -1, i;
|
|
1468
|
+
for (; ++o < a.length; ) {
|
|
1469
|
+
const c = ot(a[o]) ? {
|
|
1470
1470
|
type: "Identifier",
|
|
1471
|
-
name: a[
|
|
1471
|
+
name: a[o]
|
|
1472
1472
|
} : {
|
|
1473
1473
|
type: "Literal",
|
|
1474
|
-
value: a[
|
|
1474
|
+
value: a[o]
|
|
1475
1475
|
};
|
|
1476
|
-
|
|
1476
|
+
i = i ? {
|
|
1477
1477
|
type: "MemberExpression",
|
|
1478
|
-
object:
|
|
1478
|
+
object: i,
|
|
1479
1479
|
property: c,
|
|
1480
|
-
computed: !!(
|
|
1480
|
+
computed: !!(o && c.type === "Literal"),
|
|
1481
1481
|
optional: !1
|
|
1482
1482
|
} : c;
|
|
1483
1483
|
}
|
|
1484
|
-
r =
|
|
1485
|
-
} else r =
|
|
1484
|
+
r = i;
|
|
1485
|
+
} else r = ot(n) && !/^[a-z]/.test(n) ? {
|
|
1486
1486
|
type: "Identifier",
|
|
1487
1487
|
name: n
|
|
1488
1488
|
} : {
|
|
@@ -1491,31 +1491,31 @@ function qt(e, n, t) {
|
|
|
1491
1491
|
};
|
|
1492
1492
|
if (r.type === "Literal") {
|
|
1493
1493
|
const a = r.value;
|
|
1494
|
-
return
|
|
1494
|
+
return Un.call(e.components, a) ? e.components[a] : a;
|
|
1495
1495
|
}
|
|
1496
1496
|
if (e.evaluater) return e.evaluater.evaluateExpression(r);
|
|
1497
1497
|
qe(e);
|
|
1498
1498
|
}
|
|
1499
1499
|
function qe(e, n) {
|
|
1500
|
-
const t = new
|
|
1500
|
+
const t = new Rt("Cannot handle MDX estrees without `createEvaluater`", {
|
|
1501
1501
|
ancestors: e.ancestors,
|
|
1502
1502
|
place: n,
|
|
1503
1503
|
ruleId: "mdx-estree",
|
|
1504
1504
|
source: "hast-util-to-jsx-runtime"
|
|
1505
1505
|
});
|
|
1506
|
-
throw t.file = e.filePath || void 0, t.url =
|
|
1506
|
+
throw t.file = e.filePath || void 0, t.url = $t + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function ii(e) {
|
|
1509
1509
|
const n = {};
|
|
1510
1510
|
let t;
|
|
1511
|
-
for (t in e)
|
|
1511
|
+
for (t in e) Un.call(e, t) && (n[oi(t)] = e[t]);
|
|
1512
1512
|
return n;
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1515
|
-
let n = e.replace(
|
|
1514
|
+
function oi(e) {
|
|
1515
|
+
let n = e.replace(Ka, si);
|
|
1516
1516
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function si(e) {
|
|
1519
1519
|
return "-" + e.toLowerCase();
|
|
1520
1520
|
}
|
|
1521
1521
|
var Sn = {
|
|
@@ -1551,7 +1551,7 @@ var Sn = {
|
|
|
1551
1551
|
"video"
|
|
1552
1552
|
]
|
|
1553
1553
|
};
|
|
1554
|
-
function
|
|
1554
|
+
function li(e, n) {
|
|
1555
1555
|
const t = {
|
|
1556
1556
|
type: "element",
|
|
1557
1557
|
tagName: "blockquote",
|
|
@@ -1560,7 +1560,7 @@ function oi(e, n) {
|
|
|
1560
1560
|
};
|
|
1561
1561
|
return e.patch(n, t), e.applyData(n, t);
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function ci(e, n) {
|
|
1564
1564
|
const t = {
|
|
1565
1565
|
type: "element",
|
|
1566
1566
|
tagName: "br",
|
|
@@ -1573,11 +1573,11 @@ function si(e, n) {
|
|
|
1573
1573
|
`
|
|
1574
1574
|
}];
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function ui(e, n) {
|
|
1577
1577
|
const t = n.value ? n.value + `
|
|
1578
1578
|
` : "", r = {}, a = n.lang ? n.lang.split(/\s+/) : [];
|
|
1579
1579
|
a.length > 0 && (r.className = ["language-" + a[0]]);
|
|
1580
|
-
let
|
|
1580
|
+
let o = {
|
|
1581
1581
|
type: "element",
|
|
1582
1582
|
tagName: "code",
|
|
1583
1583
|
properties: r,
|
|
@@ -1586,14 +1586,14 @@ function li(e, n) {
|
|
|
1586
1586
|
value: t
|
|
1587
1587
|
}]
|
|
1588
1588
|
};
|
|
1589
|
-
return n.meta && (
|
|
1589
|
+
return n.meta && (o.data = { meta: n.meta }), e.patch(n, o), o = e.applyData(n, o), o = {
|
|
1590
1590
|
type: "element",
|
|
1591
1591
|
tagName: "pre",
|
|
1592
1592
|
properties: {},
|
|
1593
|
-
children: [
|
|
1594
|
-
}, e.patch(n,
|
|
1593
|
+
children: [o]
|
|
1594
|
+
}, e.patch(n, o), o;
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function di(e, n) {
|
|
1597
1597
|
const t = {
|
|
1598
1598
|
type: "element",
|
|
1599
1599
|
tagName: "del",
|
|
@@ -1602,7 +1602,7 @@ function ci(e, n) {
|
|
|
1602
1602
|
};
|
|
1603
1603
|
return e.patch(n, t), e.applyData(n, t);
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function pi(e, n) {
|
|
1606
1606
|
const t = {
|
|
1607
1607
|
type: "element",
|
|
1608
1608
|
tagName: "em",
|
|
@@ -1611,10 +1611,10 @@ function ui(e, n) {
|
|
|
1611
1611
|
};
|
|
1612
1612
|
return e.patch(n, t), e.applyData(n, t);
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1615
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), a = ze(r.toLowerCase()),
|
|
1616
|
-
let
|
|
1617
|
-
c === void 0 ? (c = 0, e.footnoteOrder.push(r),
|
|
1614
|
+
function gi(e, n) {
|
|
1615
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), a = ze(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
1616
|
+
let i, c = e.footnoteCounts.get(r);
|
|
1617
|
+
c === void 0 ? (c = 0, e.footnoteOrder.push(r), i = e.footnoteOrder.length) : i = o + 1, c += 1, e.footnoteCounts.set(r, c);
|
|
1618
1618
|
const l = {
|
|
1619
1619
|
type: "element",
|
|
1620
1620
|
tagName: "a",
|
|
@@ -1626,7 +1626,7 @@ function di(e, n) {
|
|
|
1626
1626
|
},
|
|
1627
1627
|
children: [{
|
|
1628
1628
|
type: "text",
|
|
1629
|
-
value: String(
|
|
1629
|
+
value: String(i)
|
|
1630
1630
|
}]
|
|
1631
1631
|
};
|
|
1632
1632
|
e.patch(n, l);
|
|
@@ -1638,7 +1638,7 @@ function di(e, n) {
|
|
|
1638
1638
|
};
|
|
1639
1639
|
return e.patch(n, d), e.applyData(n, d);
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function mi(e, n) {
|
|
1642
1642
|
const t = {
|
|
1643
1643
|
type: "element",
|
|
1644
1644
|
tagName: "h" + n.depth,
|
|
@@ -1647,7 +1647,7 @@ function pi(e, n) {
|
|
|
1647
1647
|
};
|
|
1648
1648
|
return e.patch(n, t), e.applyData(n, t);
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1650
|
+
function fi(e, n) {
|
|
1651
1651
|
if (e.options.allowDangerousHtml) {
|
|
1652
1652
|
const t = {
|
|
1653
1653
|
type: "raw",
|
|
@@ -1656,41 +1656,41 @@ function gi(e, n) {
|
|
|
1656
1656
|
return e.patch(n, t), e.applyData(n, t);
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function qt(e, n) {
|
|
1660
1660
|
const t = n.referenceType;
|
|
1661
1661
|
let r = "]";
|
|
1662
1662
|
if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference") return [{
|
|
1663
1663
|
type: "text",
|
|
1664
1664
|
value: "![" + n.alt + r
|
|
1665
1665
|
}];
|
|
1666
|
-
const a = e.all(n),
|
|
1667
|
-
|
|
1666
|
+
const a = e.all(n), o = a[0];
|
|
1667
|
+
o && o.type === "text" ? o.value = "[" + o.value : a.unshift({
|
|
1668
1668
|
type: "text",
|
|
1669
1669
|
value: "["
|
|
1670
1670
|
});
|
|
1671
|
-
const
|
|
1672
|
-
return
|
|
1671
|
+
const i = a[a.length - 1];
|
|
1672
|
+
return i && i.type === "text" ? i.value += r : a.push({
|
|
1673
1673
|
type: "text",
|
|
1674
1674
|
value: r
|
|
1675
1675
|
}), a;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function bi(e, n) {
|
|
1678
1678
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
1679
|
-
if (!r) return
|
|
1679
|
+
if (!r) return qt(e, n);
|
|
1680
1680
|
const a = {
|
|
1681
1681
|
src: ze(r.url || ""),
|
|
1682
1682
|
alt: n.alt
|
|
1683
1683
|
};
|
|
1684
1684
|
r.title !== null && r.title !== void 0 && (a.title = r.title);
|
|
1685
|
-
const
|
|
1685
|
+
const o = {
|
|
1686
1686
|
type: "element",
|
|
1687
1687
|
tagName: "img",
|
|
1688
1688
|
properties: a,
|
|
1689
1689
|
children: []
|
|
1690
1690
|
};
|
|
1691
|
-
return e.patch(n,
|
|
1691
|
+
return e.patch(n, o), e.applyData(n, o);
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function hi(e, n) {
|
|
1694
1694
|
const t = { src: ze(n.url) };
|
|
1695
1695
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
1696
1696
|
const r = {
|
|
@@ -1701,7 +1701,7 @@ function fi(e, n) {
|
|
|
1701
1701
|
};
|
|
1702
1702
|
return e.patch(n, r), e.applyData(n, r);
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function _i(e, n) {
|
|
1705
1705
|
const t = {
|
|
1706
1706
|
type: "text",
|
|
1707
1707
|
value: n.value.replace(/\r?\n|\r/g, " ")
|
|
@@ -1715,20 +1715,20 @@ function bi(e, n) {
|
|
|
1715
1715
|
};
|
|
1716
1716
|
return e.patch(n, r), e.applyData(n, r);
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function Ei(e, n) {
|
|
1719
1719
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
1720
|
-
if (!r) return
|
|
1720
|
+
if (!r) return qt(e, n);
|
|
1721
1721
|
const a = { href: ze(r.url || "") };
|
|
1722
1722
|
r.title !== null && r.title !== void 0 && (a.title = r.title);
|
|
1723
|
-
const
|
|
1723
|
+
const o = {
|
|
1724
1724
|
type: "element",
|
|
1725
1725
|
tagName: "a",
|
|
1726
1726
|
properties: a,
|
|
1727
1727
|
children: e.all(n)
|
|
1728
1728
|
};
|
|
1729
|
-
return e.patch(n,
|
|
1729
|
+
return e.patch(n, o), e.applyData(n, o);
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function yi(e, n) {
|
|
1732
1732
|
const t = { href: ze(n.url) };
|
|
1733
1733
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
1734
1734
|
const r = {
|
|
@@ -1739,8 +1739,8 @@ function _i(e, n) {
|
|
|
1739
1739
|
};
|
|
1740
1740
|
return e.patch(n, r), e.applyData(n, r);
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1743
|
-
const r = e.all(n), a = t ?
|
|
1742
|
+
function vi(e, n, t) {
|
|
1743
|
+
const r = e.all(n), a = t ? wi(t) : Wt(n), o = {}, i = [];
|
|
1744
1744
|
if (typeof n.checked == "boolean") {
|
|
1745
1745
|
const u = r[0];
|
|
1746
1746
|
let g;
|
|
@@ -1761,19 +1761,19 @@ function Ei(e, n, t) {
|
|
|
1761
1761
|
disabled: !0
|
|
1762
1762
|
},
|
|
1763
1763
|
children: []
|
|
1764
|
-
}),
|
|
1764
|
+
}), o.className = ["task-list-item"];
|
|
1765
1765
|
}
|
|
1766
1766
|
let c = -1;
|
|
1767
1767
|
for (; ++c < r.length; ) {
|
|
1768
1768
|
const u = r[c];
|
|
1769
|
-
(a || c !== 0 || u.type !== "element" || u.tagName !== "p") &&
|
|
1769
|
+
(a || c !== 0 || u.type !== "element" || u.tagName !== "p") && i.push({
|
|
1770
1770
|
type: "text",
|
|
1771
1771
|
value: `
|
|
1772
1772
|
`
|
|
1773
|
-
}), u.type === "element" && u.tagName === "p" && !a ?
|
|
1773
|
+
}), u.type === "element" && u.tagName === "p" && !a ? i.push(...u.children) : i.push(u);
|
|
1774
1774
|
}
|
|
1775
1775
|
const l = r[r.length - 1];
|
|
1776
|
-
l && (a || l.type !== "element" || l.tagName !== "p") &&
|
|
1776
|
+
l && (a || l.type !== "element" || l.tagName !== "p") && i.push({
|
|
1777
1777
|
type: "text",
|
|
1778
1778
|
value: `
|
|
1779
1779
|
`
|
|
@@ -1781,44 +1781,44 @@ function Ei(e, n, t) {
|
|
|
1781
1781
|
const d = {
|
|
1782
1782
|
type: "element",
|
|
1783
1783
|
tagName: "li",
|
|
1784
|
-
properties:
|
|
1785
|
-
children:
|
|
1784
|
+
properties: o,
|
|
1785
|
+
children: i
|
|
1786
1786
|
};
|
|
1787
1787
|
return e.patch(n, d), e.applyData(n, d);
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1789
|
+
function wi(e) {
|
|
1790
1790
|
let n = !1;
|
|
1791
1791
|
if (e.type === "list") {
|
|
1792
1792
|
n = e.spread || !1;
|
|
1793
1793
|
const t = e.children;
|
|
1794
1794
|
let r = -1;
|
|
1795
|
-
for (; !n && ++r < t.length; ) n =
|
|
1795
|
+
for (; !n && ++r < t.length; ) n = Wt(t[r]);
|
|
1796
1796
|
}
|
|
1797
1797
|
return n;
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1799
|
+
function Wt(e) {
|
|
1800
1800
|
const n = e.spread;
|
|
1801
1801
|
return n ?? e.children.length > 1;
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function Ni(e, n) {
|
|
1804
1804
|
const t = {}, r = e.all(n);
|
|
1805
1805
|
let a = -1;
|
|
1806
1806
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++a < r.length; ) {
|
|
1807
|
-
const
|
|
1808
|
-
if (
|
|
1807
|
+
const i = r[a];
|
|
1808
|
+
if (i.type === "element" && i.tagName === "li" && i.properties && Array.isArray(i.properties.className) && i.properties.className.includes("task-list-item")) {
|
|
1809
1809
|
t.className = ["contains-task-list"];
|
|
1810
1810
|
break;
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
|
-
const
|
|
1813
|
+
const o = {
|
|
1814
1814
|
type: "element",
|
|
1815
1815
|
tagName: n.ordered ? "ol" : "ul",
|
|
1816
1816
|
properties: t,
|
|
1817
1817
|
children: e.wrap(r, !0)
|
|
1818
1818
|
};
|
|
1819
|
-
return e.patch(n,
|
|
1819
|
+
return e.patch(n, o), e.applyData(n, o);
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Si(e, n) {
|
|
1822
1822
|
const t = {
|
|
1823
1823
|
type: "element",
|
|
1824
1824
|
tagName: "p",
|
|
@@ -1827,14 +1827,14 @@ function wi(e, n) {
|
|
|
1827
1827
|
};
|
|
1828
1828
|
return e.patch(n, t), e.applyData(n, t);
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function ki(e, n) {
|
|
1831
1831
|
const t = {
|
|
1832
1832
|
type: "root",
|
|
1833
1833
|
children: e.wrap(e.all(n))
|
|
1834
1834
|
};
|
|
1835
1835
|
return e.patch(n, t), e.applyData(n, t);
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function xi(e, n) {
|
|
1838
1838
|
const t = {
|
|
1839
1839
|
type: "element",
|
|
1840
1840
|
tagName: "strong",
|
|
@@ -1843,43 +1843,43 @@ function Si(e, n) {
|
|
|
1843
1843
|
};
|
|
1844
1844
|
return e.patch(n, t), e.applyData(n, t);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function Ti(e, n) {
|
|
1847
1847
|
const t = e.all(n), r = t.shift(), a = [];
|
|
1848
1848
|
if (r) {
|
|
1849
|
-
const
|
|
1849
|
+
const i = {
|
|
1850
1850
|
type: "element",
|
|
1851
1851
|
tagName: "thead",
|
|
1852
1852
|
properties: {},
|
|
1853
1853
|
children: e.wrap([r], !0)
|
|
1854
1854
|
};
|
|
1855
|
-
e.patch(n.children[0],
|
|
1855
|
+
e.patch(n.children[0], i), a.push(i);
|
|
1856
1856
|
}
|
|
1857
1857
|
if (t.length > 0) {
|
|
1858
|
-
const
|
|
1858
|
+
const i = {
|
|
1859
1859
|
type: "element",
|
|
1860
1860
|
tagName: "tbody",
|
|
1861
1861
|
properties: {},
|
|
1862
1862
|
children: e.wrap(t, !0)
|
|
1863
|
-
}, c =
|
|
1864
|
-
c && l && (
|
|
1863
|
+
}, c = Bn(n.children[1]), l = Ft(n.children[n.children.length - 1]);
|
|
1864
|
+
c && l && (i.position = {
|
|
1865
1865
|
start: c,
|
|
1866
1866
|
end: l
|
|
1867
|
-
}), a.push(
|
|
1867
|
+
}), a.push(i);
|
|
1868
1868
|
}
|
|
1869
|
-
const
|
|
1869
|
+
const o = {
|
|
1870
1870
|
type: "element",
|
|
1871
1871
|
tagName: "table",
|
|
1872
1872
|
properties: {},
|
|
1873
1873
|
children: e.wrap(a, !0)
|
|
1874
1874
|
};
|
|
1875
|
-
return e.patch(n,
|
|
1875
|
+
return e.patch(n, o), e.applyData(n, o);
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1878
|
-
const r = t ? t.children : void 0, a = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td",
|
|
1877
|
+
function Ai(e, n, t) {
|
|
1878
|
+
const r = t ? t.children : void 0, a = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, i = o ? o.length : n.children.length;
|
|
1879
1879
|
let c = -1;
|
|
1880
1880
|
const l = [];
|
|
1881
|
-
for (; ++c <
|
|
1882
|
-
const u = n.children[c], g = {}, p =
|
|
1881
|
+
for (; ++c < i; ) {
|
|
1882
|
+
const u = n.children[c], g = {}, p = o ? o[c] : void 0;
|
|
1883
1883
|
p && (g.align = p);
|
|
1884
1884
|
let m = {
|
|
1885
1885
|
type: "element",
|
|
@@ -1897,7 +1897,7 @@ function xi(e, n, t) {
|
|
|
1897
1897
|
};
|
|
1898
1898
|
return e.patch(n, d), e.applyData(n, d);
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function Oi(e, n) {
|
|
1901
1901
|
const t = {
|
|
1902
1902
|
type: "element",
|
|
1903
1903
|
tagName: "td",
|
|
@@ -1906,37 +1906,37 @@ function Ti(e, n) {
|
|
|
1906
1906
|
};
|
|
1907
1907
|
return e.patch(n, t), e.applyData(n, t);
|
|
1908
1908
|
}
|
|
1909
|
-
var
|
|
1910
|
-
function
|
|
1909
|
+
var ut = 9, dt = 32;
|
|
1910
|
+
function Ci(e) {
|
|
1911
1911
|
const n = String(e), t = /\r?\n|\r/g;
|
|
1912
1912
|
let r = t.exec(n), a = 0;
|
|
1913
|
-
const
|
|
1913
|
+
const o = [];
|
|
1914
1914
|
for (; r; )
|
|
1915
|
-
|
|
1916
|
-
return
|
|
1915
|
+
o.push(pt(n.slice(a, r.index), a > 0, !0), r[0]), a = r.index + r[0].length, r = t.exec(n);
|
|
1916
|
+
return o.push(pt(n.slice(a), a > 0, !1)), o.join("");
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function pt(e, n, t) {
|
|
1919
1919
|
let r = 0, a = e.length;
|
|
1920
1920
|
if (n) {
|
|
1921
|
-
let
|
|
1922
|
-
for (;
|
|
1923
|
-
r++,
|
|
1921
|
+
let o = e.codePointAt(r);
|
|
1922
|
+
for (; o === ut || o === dt; )
|
|
1923
|
+
r++, o = e.codePointAt(r);
|
|
1924
1924
|
}
|
|
1925
1925
|
if (t) {
|
|
1926
|
-
let
|
|
1927
|
-
for (;
|
|
1928
|
-
a--,
|
|
1926
|
+
let o = e.codePointAt(a - 1);
|
|
1927
|
+
for (; o === ut || o === dt; )
|
|
1928
|
+
a--, o = e.codePointAt(a - 1);
|
|
1929
1929
|
}
|
|
1930
1930
|
return a > r ? e.slice(r, a) : "";
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Ri(e, n) {
|
|
1933
1933
|
const t = {
|
|
1934
1934
|
type: "text",
|
|
1935
|
-
value:
|
|
1935
|
+
value: Ci(String(n.value))
|
|
1936
1936
|
};
|
|
1937
1937
|
return e.patch(n, t), e.applyData(n, t);
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Mi(e, n) {
|
|
1940
1940
|
const t = {
|
|
1941
1941
|
type: "element",
|
|
1942
1942
|
tagName: "hr",
|
|
@@ -1945,30 +1945,30 @@ function Ci(e, n) {
|
|
|
1945
1945
|
};
|
|
1946
1946
|
return e.patch(n, t), e.applyData(n, t);
|
|
1947
1947
|
}
|
|
1948
|
-
var
|
|
1949
|
-
blockquote:
|
|
1950
|
-
break:
|
|
1951
|
-
code:
|
|
1952
|
-
delete:
|
|
1953
|
-
emphasis:
|
|
1954
|
-
footnoteReference:
|
|
1955
|
-
heading:
|
|
1956
|
-
html:
|
|
1957
|
-
imageReference:
|
|
1958
|
-
image:
|
|
1959
|
-
inlineCode:
|
|
1960
|
-
linkReference:
|
|
1961
|
-
link:
|
|
1962
|
-
listItem:
|
|
1963
|
-
list:
|
|
1964
|
-
paragraph:
|
|
1965
|
-
root:
|
|
1966
|
-
strong:
|
|
1967
|
-
table:
|
|
1968
|
-
tableCell:
|
|
1969
|
-
tableRow:
|
|
1970
|
-
text:
|
|
1971
|
-
thematicBreak:
|
|
1948
|
+
var Ii = {
|
|
1949
|
+
blockquote: li,
|
|
1950
|
+
break: ci,
|
|
1951
|
+
code: ui,
|
|
1952
|
+
delete: di,
|
|
1953
|
+
emphasis: pi,
|
|
1954
|
+
footnoteReference: gi,
|
|
1955
|
+
heading: mi,
|
|
1956
|
+
html: fi,
|
|
1957
|
+
imageReference: bi,
|
|
1958
|
+
image: hi,
|
|
1959
|
+
inlineCode: _i,
|
|
1960
|
+
linkReference: Ei,
|
|
1961
|
+
link: yi,
|
|
1962
|
+
listItem: vi,
|
|
1963
|
+
list: Ni,
|
|
1964
|
+
paragraph: Si,
|
|
1965
|
+
root: ki,
|
|
1966
|
+
strong: xi,
|
|
1967
|
+
table: Ti,
|
|
1968
|
+
tableCell: Oi,
|
|
1969
|
+
tableRow: Ai,
|
|
1970
|
+
text: Ri,
|
|
1971
|
+
thematicBreak: Mi,
|
|
1972
1972
|
toml: nn,
|
|
1973
1973
|
yaml: nn,
|
|
1974
1974
|
definition: nn,
|
|
@@ -1976,7 +1976,7 @@ var Ri = {
|
|
|
1976
1976
|
};
|
|
1977
1977
|
function nn() {
|
|
1978
1978
|
}
|
|
1979
|
-
var
|
|
1979
|
+
var Di = typeof self == "object" ? self : globalThis, gt = (e, n) => {
|
|
1980
1980
|
switch (e) {
|
|
1981
1981
|
case "Function":
|
|
1982
1982
|
case "SharedWorker":
|
|
@@ -1986,63 +1986,63 @@ var Mi = typeof self == "object" ? self : globalThis, mt = (e, n) => {
|
|
|
1986
1986
|
case "setTimeout":
|
|
1987
1987
|
throw new TypeError("unable to deserialize " + e);
|
|
1988
1988
|
}
|
|
1989
|
-
return new
|
|
1990
|
-
},
|
|
1991
|
-
const t = (a,
|
|
1989
|
+
return new Di[e](n);
|
|
1990
|
+
}, Li = (e, n) => {
|
|
1991
|
+
const t = (a, o) => (e.set(o, a), a), r = (a) => {
|
|
1992
1992
|
if (e.has(a)) return e.get(a);
|
|
1993
|
-
const [
|
|
1994
|
-
switch (
|
|
1993
|
+
const [o, i] = n[a];
|
|
1994
|
+
switch (o) {
|
|
1995
1995
|
case 0:
|
|
1996
1996
|
case -1:
|
|
1997
|
-
return t(
|
|
1997
|
+
return t(i, a);
|
|
1998
1998
|
case 1: {
|
|
1999
1999
|
const c = t([], a);
|
|
2000
|
-
for (const l of
|
|
2000
|
+
for (const l of i) c.push(r(l));
|
|
2001
2001
|
return c;
|
|
2002
2002
|
}
|
|
2003
2003
|
case 2: {
|
|
2004
2004
|
const c = t({}, a);
|
|
2005
|
-
for (const [l, d] of
|
|
2005
|
+
for (const [l, d] of i) c[r(l)] = r(d);
|
|
2006
2006
|
return c;
|
|
2007
2007
|
}
|
|
2008
2008
|
case 3:
|
|
2009
|
-
return t(new Date(
|
|
2009
|
+
return t(new Date(i), a);
|
|
2010
2010
|
case 4: {
|
|
2011
|
-
const { source: c, flags: l } =
|
|
2011
|
+
const { source: c, flags: l } = i;
|
|
2012
2012
|
return t(new RegExp(c, l), a);
|
|
2013
2013
|
}
|
|
2014
2014
|
case 5: {
|
|
2015
2015
|
const c = t(/* @__PURE__ */ new Map(), a);
|
|
2016
|
-
for (const [l, d] of
|
|
2016
|
+
for (const [l, d] of i) c.set(r(l), r(d));
|
|
2017
2017
|
return c;
|
|
2018
2018
|
}
|
|
2019
2019
|
case 6: {
|
|
2020
2020
|
const c = t(/* @__PURE__ */ new Set(), a);
|
|
2021
|
-
for (const l of
|
|
2021
|
+
for (const l of i) c.add(r(l));
|
|
2022
2022
|
return c;
|
|
2023
2023
|
}
|
|
2024
2024
|
case 7: {
|
|
2025
|
-
const { name: c, message: l } =
|
|
2026
|
-
return t(
|
|
2025
|
+
const { name: c, message: l } = i;
|
|
2026
|
+
return t(gt(c, l), a);
|
|
2027
2027
|
}
|
|
2028
2028
|
case 8:
|
|
2029
|
-
return t(BigInt(
|
|
2029
|
+
return t(BigInt(i), a);
|
|
2030
2030
|
case "BigInt":
|
|
2031
|
-
return t(Object(BigInt(
|
|
2031
|
+
return t(Object(BigInt(i)), a);
|
|
2032
2032
|
case "ArrayBuffer":
|
|
2033
|
-
return t(new Uint8Array(
|
|
2033
|
+
return t(new Uint8Array(i).buffer, i);
|
|
2034
2034
|
case "DataView": {
|
|
2035
|
-
const { buffer: c } = new Uint8Array(
|
|
2036
|
-
return t(new DataView(c),
|
|
2035
|
+
const { buffer: c } = new Uint8Array(i);
|
|
2036
|
+
return t(new DataView(c), i);
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
|
-
return t(
|
|
2039
|
+
return t(gt(o, i), a);
|
|
2040
2040
|
};
|
|
2041
2041
|
return r;
|
|
2042
|
-
},
|
|
2042
|
+
}, mt = (e) => Li(/* @__PURE__ */ new Map(), e)(0), Pe = "", { toString: Pi } = {}, { keys: Bi } = Object, Ke = (e) => {
|
|
2043
2043
|
const n = typeof e;
|
|
2044
2044
|
if (n !== "object" || !e) return [0, n];
|
|
2045
|
-
const t =
|
|
2045
|
+
const t = Pi.call(e).slice(8, -1);
|
|
2046
2046
|
switch (t) {
|
|
2047
2047
|
case "Array":
|
|
2048
2048
|
return [1, Pe];
|
|
@@ -2060,19 +2060,19 @@ var Mi = typeof self == "object" ? self : globalThis, mt = (e, n) => {
|
|
|
2060
2060
|
return [1, t];
|
|
2061
2061
|
}
|
|
2062
2062
|
return t.includes("Array") ? [1, t] : t.includes("Error") ? [7, t] : [2, t];
|
|
2063
|
-
}, tn = ([e, n]) => e === 0 && (n === "function" || n === "symbol"),
|
|
2064
|
-
const a = (
|
|
2065
|
-
const l = r.push(
|
|
2063
|
+
}, tn = ([e, n]) => e === 0 && (n === "function" || n === "symbol"), Ui = (e, n, t, r) => {
|
|
2064
|
+
const a = (i, c) => {
|
|
2065
|
+
const l = r.push(i) - 1;
|
|
2066
2066
|
return t.set(c, l), l;
|
|
2067
|
-
},
|
|
2068
|
-
if (t.has(
|
|
2069
|
-
let [c, l] = Ke(
|
|
2067
|
+
}, o = (i) => {
|
|
2068
|
+
if (t.has(i)) return t.get(i);
|
|
2069
|
+
let [c, l] = Ke(i);
|
|
2070
2070
|
switch (c) {
|
|
2071
2071
|
case 0: {
|
|
2072
|
-
let u =
|
|
2072
|
+
let u = i;
|
|
2073
2073
|
switch (l) {
|
|
2074
2074
|
case "bigint":
|
|
2075
|
-
c = 8, u =
|
|
2075
|
+
c = 8, u = i.toString();
|
|
2076
2076
|
break;
|
|
2077
2077
|
case "function":
|
|
2078
2078
|
case "symbol":
|
|
@@ -2080,68 +2080,68 @@ var Mi = typeof self == "object" ? self : globalThis, mt = (e, n) => {
|
|
|
2080
2080
|
u = null;
|
|
2081
2081
|
break;
|
|
2082
2082
|
case "undefined":
|
|
2083
|
-
return a([-1],
|
|
2083
|
+
return a([-1], i);
|
|
2084
2084
|
}
|
|
2085
|
-
return a([c, u],
|
|
2085
|
+
return a([c, u], i);
|
|
2086
2086
|
}
|
|
2087
2087
|
case 1: {
|
|
2088
2088
|
if (l) {
|
|
2089
|
-
let p =
|
|
2090
|
-
return l === "DataView" ? p = new Uint8Array(
|
|
2089
|
+
let p = i;
|
|
2090
|
+
return l === "DataView" ? p = new Uint8Array(i.buffer) : l === "ArrayBuffer" && (p = new Uint8Array(i)), a([l, [...p]], i);
|
|
2091
2091
|
}
|
|
2092
|
-
const u = [], g = a([c, u],
|
|
2093
|
-
for (const p of
|
|
2092
|
+
const u = [], g = a([c, u], i);
|
|
2093
|
+
for (const p of i) u.push(o(p));
|
|
2094
2094
|
return g;
|
|
2095
2095
|
}
|
|
2096
2096
|
case 2: {
|
|
2097
2097
|
if (l) switch (l) {
|
|
2098
2098
|
case "BigInt":
|
|
2099
|
-
return a([l,
|
|
2099
|
+
return a([l, i.toString()], i);
|
|
2100
2100
|
case "Boolean":
|
|
2101
2101
|
case "Number":
|
|
2102
2102
|
case "String":
|
|
2103
|
-
return a([l,
|
|
2103
|
+
return a([l, i.valueOf()], i);
|
|
2104
2104
|
}
|
|
2105
|
-
if (n && "toJSON" in
|
|
2106
|
-
const u = [], g = a([c, u],
|
|
2107
|
-
for (const p of
|
|
2105
|
+
if (n && "toJSON" in i) return o(i.toJSON());
|
|
2106
|
+
const u = [], g = a([c, u], i);
|
|
2107
|
+
for (const p of Bi(i)) (e || !tn(Ke(i[p]))) && u.push([o(p), o(i[p])]);
|
|
2108
2108
|
return g;
|
|
2109
2109
|
}
|
|
2110
2110
|
case 3:
|
|
2111
|
-
return a([c,
|
|
2111
|
+
return a([c, i.toISOString()], i);
|
|
2112
2112
|
case 4: {
|
|
2113
|
-
const { source: u, flags: g } =
|
|
2113
|
+
const { source: u, flags: g } = i;
|
|
2114
2114
|
return a([c, {
|
|
2115
2115
|
source: u,
|
|
2116
2116
|
flags: g
|
|
2117
|
-
}],
|
|
2117
|
+
}], i);
|
|
2118
2118
|
}
|
|
2119
2119
|
case 5: {
|
|
2120
|
-
const u = [], g = a([c, u],
|
|
2121
|
-
for (const [p, m] of
|
|
2120
|
+
const u = [], g = a([c, u], i);
|
|
2121
|
+
for (const [p, m] of i) (e || !(tn(Ke(p)) || tn(Ke(m)))) && u.push([o(p), o(m)]);
|
|
2122
2122
|
return g;
|
|
2123
2123
|
}
|
|
2124
2124
|
case 6: {
|
|
2125
|
-
const u = [], g = a([c, u],
|
|
2126
|
-
for (const p of
|
|
2125
|
+
const u = [], g = a([c, u], i);
|
|
2126
|
+
for (const p of i) (e || !tn(Ke(p))) && u.push(o(p));
|
|
2127
2127
|
return g;
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
|
-
const { message: d } =
|
|
2130
|
+
const { message: d } = i;
|
|
2131
2131
|
return a([c, {
|
|
2132
2132
|
name: l,
|
|
2133
2133
|
message: d
|
|
2134
|
-
}],
|
|
2134
|
+
}], i);
|
|
2135
2135
|
};
|
|
2136
|
-
return
|
|
2137
|
-
},
|
|
2136
|
+
return o;
|
|
2137
|
+
}, ft = (e, { json: n, lossy: t } = {}) => {
|
|
2138
2138
|
const r = [];
|
|
2139
|
-
return
|
|
2139
|
+
return Ui(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
|
2140
2140
|
}, un = typeof structuredClone == "function" ? (
|
|
2141
2141
|
/* c8 ignore start */
|
|
2142
|
-
(e, n) => n && ("json" in n || "lossy" in n) ? ft(
|
|
2143
|
-
) : (e, n) => ft(
|
|
2144
|
-
function
|
|
2142
|
+
(e, n) => n && ("json" in n || "lossy" in n) ? mt(ft(e, n)) : structuredClone(e)
|
|
2143
|
+
) : (e, n) => mt(ft(e, n));
|
|
2144
|
+
function Fi(e, n) {
|
|
2145
2145
|
const t = [{
|
|
2146
2146
|
type: "text",
|
|
2147
2147
|
value: "↩"
|
|
@@ -2156,11 +2156,11 @@ function Bi(e, n) {
|
|
|
2156
2156
|
}]
|
|
2157
2157
|
}), t;
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function zi(e, n) {
|
|
2160
2160
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2163
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
|
2162
|
+
function $i(e) {
|
|
2163
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Fi, r = e.options.footnoteBackLabel || zi, a = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", i = e.options.footnoteLabelProperties || { className: ["sr-only"] }, c = [];
|
|
2164
2164
|
let l = -1;
|
|
2165
2165
|
for (; ++l < e.footnoteOrder.length; ) {
|
|
2166
2166
|
const d = e.footnoteById.get(e.footnoteOrder[l]);
|
|
@@ -2216,9 +2216,9 @@ function Fi(e) {
|
|
|
2216
2216
|
children: [
|
|
2217
2217
|
{
|
|
2218
2218
|
type: "element",
|
|
2219
|
-
tagName:
|
|
2219
|
+
tagName: o,
|
|
2220
2220
|
properties: {
|
|
2221
|
-
...un(
|
|
2221
|
+
...un(i),
|
|
2222
2222
|
id: "footnote-label"
|
|
2223
2223
|
},
|
|
2224
2224
|
children: [{
|
|
@@ -2245,41 +2245,41 @@ function Fi(e) {
|
|
|
2245
2245
|
]
|
|
2246
2246
|
};
|
|
2247
2247
|
}
|
|
2248
|
-
var Rn = {}.hasOwnProperty,
|
|
2249
|
-
function
|
|
2250
|
-
const t = n ||
|
|
2248
|
+
var Rn = {}.hasOwnProperty, Gi = {};
|
|
2249
|
+
function Ki(e, n) {
|
|
2250
|
+
const t = n || Gi, r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = {
|
|
2251
2251
|
all: c,
|
|
2252
|
-
applyData:
|
|
2252
|
+
applyData: qi,
|
|
2253
2253
|
definitionById: r,
|
|
2254
2254
|
footnoteById: a,
|
|
2255
2255
|
footnoteCounts: /* @__PURE__ */ new Map(),
|
|
2256
2256
|
footnoteOrder: [],
|
|
2257
2257
|
handlers: {
|
|
2258
|
-
...
|
|
2258
|
+
...Ii,
|
|
2259
2259
|
...t.handlers
|
|
2260
2260
|
},
|
|
2261
|
-
one:
|
|
2261
|
+
one: i,
|
|
2262
2262
|
options: t,
|
|
2263
|
-
patch:
|
|
2264
|
-
wrap:
|
|
2263
|
+
patch: Hi,
|
|
2264
|
+
wrap: Zi
|
|
2265
2265
|
};
|
|
2266
|
-
return
|
|
2266
|
+
return ma(e, function(l) {
|
|
2267
2267
|
if (l.type === "definition" || l.type === "footnoteDefinition") {
|
|
2268
2268
|
const d = l.type === "definition" ? r : a, u = String(l.identifier).toUpperCase();
|
|
2269
2269
|
d.has(u) || d.set(u, l);
|
|
2270
2270
|
}
|
|
2271
|
-
}),
|
|
2272
|
-
function
|
|
2273
|
-
const u = l.type, g =
|
|
2274
|
-
if (Rn.call(
|
|
2275
|
-
if (
|
|
2271
|
+
}), o;
|
|
2272
|
+
function i(l, d) {
|
|
2273
|
+
const u = l.type, g = o.handlers[u];
|
|
2274
|
+
if (Rn.call(o.handlers, u) && g) return g(o, l, d);
|
|
2275
|
+
if (o.options.passThrough && o.options.passThrough.includes(u)) {
|
|
2276
2276
|
if ("children" in l) {
|
|
2277
2277
|
const { children: p, ...m } = l, y = un(m);
|
|
2278
|
-
return y.children =
|
|
2278
|
+
return y.children = o.all(l), y;
|
|
2279
2279
|
}
|
|
2280
2280
|
return un(l);
|
|
2281
2281
|
}
|
|
2282
|
-
return (
|
|
2282
|
+
return (o.options.unknownHandler || Wi)(o, l, d);
|
|
2283
2283
|
}
|
|
2284
2284
|
function c(l) {
|
|
2285
2285
|
const d = [];
|
|
@@ -2287,11 +2287,11 @@ function $i(e, n) {
|
|
|
2287
2287
|
const u = l.children;
|
|
2288
2288
|
let g = -1;
|
|
2289
2289
|
for (; ++g < u.length; ) {
|
|
2290
|
-
const p =
|
|
2290
|
+
const p = o.one(u[g], l);
|
|
2291
2291
|
if (p) {
|
|
2292
|
-
if (g && u[g - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value =
|
|
2292
|
+
if (g && u[g - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value = bt(p.value)), !Array.isArray(p) && p.type === "element")) {
|
|
2293
2293
|
const m = p.children[0];
|
|
2294
|
-
m && m.type === "text" && (m.value =
|
|
2294
|
+
m && m.type === "text" && (m.value = bt(m.value));
|
|
2295
2295
|
}
|
|
2296
2296
|
Array.isArray(p) ? d.push(...p) : d.push(p);
|
|
2297
2297
|
}
|
|
@@ -2300,23 +2300,23 @@ function $i(e, n) {
|
|
|
2300
2300
|
return d;
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2304
|
-
e.position && (n.position =
|
|
2303
|
+
function Hi(e, n) {
|
|
2304
|
+
e.position && (n.position = za(e));
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2306
|
+
function qi(e, n) {
|
|
2307
2307
|
let t = n;
|
|
2308
2308
|
if (e && e.data) {
|
|
2309
|
-
const r = e.data.hName, a = e.data.hChildren,
|
|
2309
|
+
const r = e.data.hName, a = e.data.hChildren, o = e.data.hProperties;
|
|
2310
2310
|
typeof r == "string" && (t.type === "element" ? t.tagName = r : t = {
|
|
2311
2311
|
type: "element",
|
|
2312
2312
|
tagName: r,
|
|
2313
2313
|
properties: {},
|
|
2314
2314
|
children: "children" in t ? t.children : [t]
|
|
2315
|
-
}), t.type === "element" &&
|
|
2315
|
+
}), t.type === "element" && o && Object.assign(t.properties, un(o)), "children" in t && t.children && a !== null && a !== void 0 && (t.children = a);
|
|
2316
2316
|
}
|
|
2317
2317
|
return t;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function Wi(e, n) {
|
|
2320
2320
|
const t = n.data || {}, r = "value" in n && !(Rn.call(t, "hProperties") || Rn.call(t, "hChildren")) ? {
|
|
2321
2321
|
type: "text",
|
|
2322
2322
|
value: n.value
|
|
@@ -2328,7 +2328,7 @@ function Hi(e, n) {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
return e.patch(n, r), e.applyData(n, r);
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function Zi(e, n) {
|
|
2332
2332
|
const t = [];
|
|
2333
2333
|
let r = -1;
|
|
2334
2334
|
for (n && t.push({
|
|
@@ -2347,41 +2347,49 @@ function qi(e, n) {
|
|
|
2347
2347
|
`
|
|
2348
2348
|
}), t;
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function bt(e) {
|
|
2351
2351
|
let n = 0, t = e.charCodeAt(n);
|
|
2352
2352
|
for (; t === 9 || t === 32; )
|
|
2353
2353
|
n++, t = e.charCodeAt(n);
|
|
2354
2354
|
return e.slice(n);
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2357
|
-
const t =
|
|
2356
|
+
function ht(e, n) {
|
|
2357
|
+
const t = Ki(e, n), r = t.one(e, void 0), a = $i(t), o = Array.isArray(r) ? {
|
|
2358
2358
|
type: "root",
|
|
2359
2359
|
children: r
|
|
2360
2360
|
} : r || {
|
|
2361
2361
|
type: "root",
|
|
2362
2362
|
children: []
|
|
2363
2363
|
};
|
|
2364
|
-
return a && ("children" in
|
|
2364
|
+
return a && ("children" in o, o.children.push({
|
|
2365
2365
|
type: "text",
|
|
2366
2366
|
value: `
|
|
2367
2367
|
`
|
|
2368
|
-
}, a)),
|
|
2368
|
+
}, a)), o;
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2370
|
+
function Yi(e, n) {
|
|
2371
2371
|
return e && "run" in e ? async function(t, r) {
|
|
2372
|
-
const a =
|
|
2372
|
+
const a = ht(t, {
|
|
2373
2373
|
file: r,
|
|
2374
2374
|
...n
|
|
2375
2375
|
});
|
|
2376
2376
|
await e.run(a, r);
|
|
2377
2377
|
} : function(t, r) {
|
|
2378
|
-
return
|
|
2378
|
+
return ht(t, {
|
|
2379
2379
|
file: r,
|
|
2380
2380
|
...e || n
|
|
2381
2381
|
});
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
2384
|
-
|
|
2384
|
+
function Zt(e, n, t, r) {
|
|
2385
|
+
let a, o, i;
|
|
2386
|
+
typeof n == "function" && typeof t != "function" ? (o = void 0, i = n, a = t) : (o = n, i = t, a = r), pa(e, o, c, a);
|
|
2387
|
+
function c(l, d) {
|
|
2388
|
+
const u = d[d.length - 1], g = u ? u.children.indexOf(l) : void 0;
|
|
2389
|
+
return i(l, g, u);
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
var V = sa(), Mn = /* @__PURE__ */ Dn(ia(), 1), _t = [], Et = { allowDangerousHtml: !0 }, Vi = /^(https?|ircs?|mailto|xmpp)$/i, Xi = [
|
|
2385
2393
|
{
|
|
2386
2394
|
from: "astPlugins",
|
|
2387
2395
|
id: "remove-buggy-html-in-markdown-parser"
|
|
@@ -2459,25 +2467,25 @@ var V = sa(), Mn = /* @__PURE__ */ Dn(ia(), 1), Et = [], yt = { allowDangerousHt
|
|
|
2459
2467
|
to: "urlTransform"
|
|
2460
2468
|
}
|
|
2461
2469
|
];
|
|
2462
|
-
function
|
|
2463
|
-
const n =
|
|
2464
|
-
return
|
|
2470
|
+
function Qi(e) {
|
|
2471
|
+
const n = Ji(e), t = ji(e);
|
|
2472
|
+
return eo(n.runSync(n.parse(t), t), e);
|
|
2465
2473
|
}
|
|
2466
|
-
function
|
|
2467
|
-
const n = e.rehypePlugins ||
|
|
2474
|
+
function Ji(e) {
|
|
2475
|
+
const n = e.rehypePlugins || _t, t = e.remarkPlugins || _t, r = e.remarkRehypeOptions ? {
|
|
2468
2476
|
...e.remarkRehypeOptions,
|
|
2469
|
-
...
|
|
2470
|
-
} :
|
|
2471
|
-
return
|
|
2477
|
+
...Et
|
|
2478
|
+
} : Et;
|
|
2479
|
+
return la().use(ua).use(t).use(Yi, r).use(n);
|
|
2472
2480
|
}
|
|
2473
|
-
function
|
|
2474
|
-
const n = e.children || "", t = new
|
|
2481
|
+
function ji(e) {
|
|
2482
|
+
const n = e.children || "", t = new ca();
|
|
2475
2483
|
return typeof n == "string" ? t.value = n : "" + n, t;
|
|
2476
2484
|
}
|
|
2477
|
-
function
|
|
2478
|
-
const t = n.allowedElements, r = n.allowElement, a = n.components,
|
|
2479
|
-
for (const u of
|
|
2480
|
-
return
|
|
2485
|
+
function eo(e, n) {
|
|
2486
|
+
const t = n.allowedElements, r = n.allowElement, a = n.components, o = n.disallowedElements, i = n.skipHtml, c = n.unwrapDisallowed, l = n.urlTransform || no;
|
|
2487
|
+
for (const u of Xi) Object.hasOwn(n, u.from) && "" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") + u.id;
|
|
2488
|
+
return Zt(e, d), Wa(e, {
|
|
2481
2489
|
Fragment: V.Fragment,
|
|
2482
2490
|
components: a,
|
|
2483
2491
|
ignoreInvalidStyle: !0,
|
|
@@ -2488,7 +2496,7 @@ function Ji(e, n) {
|
|
|
2488
2496
|
});
|
|
2489
2497
|
function d(u, g, p) {
|
|
2490
2498
|
if (u.type === "raw" && p && typeof g == "number")
|
|
2491
|
-
return
|
|
2499
|
+
return i ? p.children.splice(g, 1) : p.children[g] = {
|
|
2492
2500
|
type: "text",
|
|
2493
2501
|
value: u.value
|
|
2494
2502
|
}, g;
|
|
@@ -2500,17 +2508,17 @@ function Ji(e, n) {
|
|
|
2500
2508
|
}
|
|
2501
2509
|
}
|
|
2502
2510
|
if (u.type === "element") {
|
|
2503
|
-
let m = t ? !t.includes(u.tagName) :
|
|
2511
|
+
let m = t ? !t.includes(u.tagName) : o ? o.includes(u.tagName) : !1;
|
|
2504
2512
|
if (!m && r && typeof g == "number" && (m = !r(u, g, p)), m && p && typeof g == "number")
|
|
2505
2513
|
return c && u.children ? p.children.splice(g, 1, ...u.children) : p.children.splice(g, 1), g;
|
|
2506
2514
|
}
|
|
2507
2515
|
}
|
|
2508
2516
|
}
|
|
2509
|
-
function
|
|
2517
|
+
function no(e) {
|
|
2510
2518
|
const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), a = e.indexOf("/");
|
|
2511
|
-
return n === -1 || a !== -1 && n > a || t !== -1 && n > t || r !== -1 && n > r ||
|
|
2519
|
+
return n === -1 || a !== -1 && n > a || t !== -1 && n > t || r !== -1 && n > r || Vi.test(e.slice(0, n)) ? e : "";
|
|
2512
2520
|
}
|
|
2513
|
-
var
|
|
2521
|
+
var yt = (function(e, n, t) {
|
|
2514
2522
|
const r = ga(t);
|
|
2515
2523
|
if (!e || !e.type || !e.children) throw new Error("Expected parent node");
|
|
2516
2524
|
if (typeof n == "number") {
|
|
@@ -2518,42 +2526,42 @@ var vt = (function(e, n, t) {
|
|
|
2518
2526
|
} else if (n = e.children.indexOf(n), n < 0) throw new Error("Expected child node or index");
|
|
2519
2527
|
for (; ++n < e.children.length; ) if (r(e.children[n], n, e)) return e.children[n];
|
|
2520
2528
|
}), Me = (function(e) {
|
|
2521
|
-
if (e == null) return
|
|
2522
|
-
if (typeof e == "string") return
|
|
2523
|
-
if (typeof e == "object") return
|
|
2524
|
-
if (typeof e == "function") return
|
|
2529
|
+
if (e == null) return ao;
|
|
2530
|
+
if (typeof e == "string") return ro(e);
|
|
2531
|
+
if (typeof e == "object") return to(e);
|
|
2532
|
+
if (typeof e == "function") return $n(e);
|
|
2525
2533
|
throw new Error("Expected function, string, or array as `test`");
|
|
2526
2534
|
});
|
|
2527
|
-
function
|
|
2535
|
+
function to(e) {
|
|
2528
2536
|
const n = [];
|
|
2529
2537
|
let t = -1;
|
|
2530
2538
|
for (; ++t < e.length; ) n[t] = Me(e[t]);
|
|
2531
|
-
return
|
|
2539
|
+
return $n(r);
|
|
2532
2540
|
function r(...a) {
|
|
2533
|
-
let
|
|
2534
|
-
for (; ++
|
|
2541
|
+
let o = -1;
|
|
2542
|
+
for (; ++o < n.length; ) if (n[o].apply(this, a)) return !0;
|
|
2535
2543
|
return !1;
|
|
2536
2544
|
}
|
|
2537
2545
|
}
|
|
2538
|
-
function
|
|
2539
|
-
return
|
|
2546
|
+
function ro(e) {
|
|
2547
|
+
return $n(n);
|
|
2540
2548
|
function n(t) {
|
|
2541
2549
|
return t.tagName === e;
|
|
2542
2550
|
}
|
|
2543
2551
|
}
|
|
2544
|
-
function
|
|
2552
|
+
function $n(e) {
|
|
2545
2553
|
return n;
|
|
2546
2554
|
function n(t, r, a) {
|
|
2547
|
-
return !!(
|
|
2555
|
+
return !!(io(t) && e.call(this, t, typeof r == "number" ? r : void 0, a || void 0));
|
|
2548
2556
|
}
|
|
2549
2557
|
}
|
|
2550
|
-
function
|
|
2558
|
+
function ao(e) {
|
|
2551
2559
|
return !!(e && typeof e == "object" && "type" in e && e.type === "element" && "tagName" in e && typeof e.tagName == "string");
|
|
2552
2560
|
}
|
|
2553
|
-
function
|
|
2561
|
+
function io(e) {
|
|
2554
2562
|
return e !== null && typeof e == "object" && "type" in e && "tagName" in e;
|
|
2555
2563
|
}
|
|
2556
|
-
var
|
|
2564
|
+
var vt = /\n/g, wt = /[\t ]+/g, In = Me("br"), Nt = Me(mo), oo = Me("p"), St = Me("tr"), so = Me([
|
|
2557
2565
|
"datalist",
|
|
2558
2566
|
"head",
|
|
2559
2567
|
"noembed",
|
|
@@ -2564,8 +2572,8 @@ var wt = /\n/g, Nt = /[\t ]+/g, In = Me("br"), St = Me(po), ao = Me("p"), kt = M
|
|
|
2564
2572
|
"style",
|
|
2565
2573
|
"template",
|
|
2566
2574
|
"title",
|
|
2567
|
-
|
|
2568
|
-
|
|
2575
|
+
go,
|
|
2576
|
+
fo
|
|
2569
2577
|
]), Yt = Me([
|
|
2570
2578
|
"address",
|
|
2571
2579
|
"article",
|
|
@@ -2608,72 +2616,72 @@ var wt = /\n/g, Nt = /[\t ]+/g, In = Me("br"), St = Me(po), ao = Me("p"), kt = M
|
|
|
2608
2616
|
"ul",
|
|
2609
2617
|
"xmp"
|
|
2610
2618
|
]);
|
|
2611
|
-
function
|
|
2612
|
-
const t = n || {}, r = "children" in e ? e.children : [], a = Yt(e),
|
|
2619
|
+
function lo(e, n) {
|
|
2620
|
+
const t = n || {}, r = "children" in e ? e.children : [], a = Yt(e), o = Qt(e, {
|
|
2613
2621
|
whitespace: t.whitespace || "normal",
|
|
2614
2622
|
breakBefore: !1,
|
|
2615
2623
|
breakAfter: !1
|
|
2616
|
-
}),
|
|
2617
|
-
(e.type === "text" || e.type === "comment") &&
|
|
2618
|
-
whitespace:
|
|
2624
|
+
}), i = [];
|
|
2625
|
+
(e.type === "text" || e.type === "comment") && i.push(...Xt(e, {
|
|
2626
|
+
whitespace: o,
|
|
2619
2627
|
breakBefore: !0,
|
|
2620
2628
|
breakAfter: !0
|
|
2621
2629
|
}));
|
|
2622
2630
|
let c = -1;
|
|
2623
|
-
for (; ++c < r.length; )
|
|
2624
|
-
whitespace:
|
|
2631
|
+
for (; ++c < r.length; ) i.push(...Vt(r[c], e, {
|
|
2632
|
+
whitespace: o,
|
|
2625
2633
|
breakBefore: c ? void 0 : a,
|
|
2626
2634
|
breakAfter: c < r.length - 1 ? In(r[c + 1]) : a
|
|
2627
2635
|
}));
|
|
2628
2636
|
const l = [];
|
|
2629
2637
|
let d;
|
|
2630
|
-
for (c = -1; ++c <
|
|
2631
|
-
const u =
|
|
2638
|
+
for (c = -1; ++c < i.length; ) {
|
|
2639
|
+
const u = i[c];
|
|
2632
2640
|
typeof u == "number" ? d !== void 0 && u > d && (d = u) : u && (d !== void 0 && d > -1 && l.push(`
|
|
2633
2641
|
`.repeat(d) || " "), d = -1, l.push(u));
|
|
2634
2642
|
}
|
|
2635
2643
|
return l.join("");
|
|
2636
2644
|
}
|
|
2637
2645
|
function Vt(e, n, t) {
|
|
2638
|
-
return e.type === "element" ?
|
|
2646
|
+
return e.type === "element" ? co(e, n, t) : e.type === "text" ? t.whitespace === "normal" ? Xt(e, t) : uo(e) : [];
|
|
2639
2647
|
}
|
|
2640
|
-
function
|
|
2648
|
+
function co(e, n, t) {
|
|
2641
2649
|
const r = Qt(e, t), a = e.children || [];
|
|
2642
|
-
let
|
|
2643
|
-
if (
|
|
2650
|
+
let o = -1, i = [];
|
|
2651
|
+
if (so(e)) return i;
|
|
2644
2652
|
let c, l;
|
|
2645
|
-
for (In(e) ||
|
|
2646
|
-
` :
|
|
2653
|
+
for (In(e) || St(e) && yt(n, e, St) ? l = `
|
|
2654
|
+
` : oo(e) ? (c = 2, l = 2) : Yt(e) && (c = 1, l = 1); ++o < a.length; ) i = i.concat(Vt(a[o], e, {
|
|
2647
2655
|
whitespace: r,
|
|
2648
|
-
breakBefore:
|
|
2649
|
-
breakAfter:
|
|
2656
|
+
breakBefore: o ? void 0 : c,
|
|
2657
|
+
breakAfter: o < a.length - 1 ? In(a[o + 1]) : l
|
|
2650
2658
|
}));
|
|
2651
|
-
return
|
|
2659
|
+
return Nt(e) && yt(n, e, Nt) && i.push(" "), c && i.unshift(c), l && i.push(l), i;
|
|
2652
2660
|
}
|
|
2653
2661
|
function Xt(e, n) {
|
|
2654
2662
|
const t = String(e.value), r = [], a = [];
|
|
2655
|
-
let
|
|
2656
|
-
for (;
|
|
2657
|
-
|
|
2658
|
-
const l =
|
|
2659
|
-
r.push(
|
|
2663
|
+
let o = 0;
|
|
2664
|
+
for (; o <= t.length; ) {
|
|
2665
|
+
vt.lastIndex = o;
|
|
2666
|
+
const l = vt.exec(t), d = l && "index" in l ? l.index : t.length;
|
|
2667
|
+
r.push(po(t.slice(o, d).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g, ""), o === 0 ? n.breakBefore : !0, d === t.length ? n.breakAfter : !0)), o = d + 1;
|
|
2660
2668
|
}
|
|
2661
|
-
let
|
|
2662
|
-
for (; ++
|
|
2669
|
+
let i = -1, c;
|
|
2670
|
+
for (; ++i < r.length; ) r[i].charCodeAt(r[i].length - 1) === 8203 || i < r.length - 1 && r[i + 1].charCodeAt(0) === 8203 ? (a.push(r[i]), c = void 0) : r[i] ? (typeof c == "number" && a.push(c), a.push(r[i]), c = 0) : (i === 0 || i === r.length - 1) && a.push(0);
|
|
2663
2671
|
return a;
|
|
2664
2672
|
}
|
|
2665
|
-
function
|
|
2673
|
+
function uo(e) {
|
|
2666
2674
|
return [String(e.value)];
|
|
2667
2675
|
}
|
|
2668
|
-
function
|
|
2676
|
+
function po(e, n, t) {
|
|
2669
2677
|
const r = [];
|
|
2670
|
-
let a = 0,
|
|
2678
|
+
let a = 0, o;
|
|
2671
2679
|
for (; a < e.length; ) {
|
|
2672
|
-
|
|
2673
|
-
const
|
|
2674
|
-
|
|
2680
|
+
wt.lastIndex = a;
|
|
2681
|
+
const i = wt.exec(e);
|
|
2682
|
+
o = i ? i.index : e.length, !a && !o && i && !n && r.push(""), a !== o && r.push(e.slice(a, o)), a = i ? o + i[0].length : o;
|
|
2675
2683
|
}
|
|
2676
|
-
return a !==
|
|
2684
|
+
return a !== o && !t && r.push(""), r.join(" ");
|
|
2677
2685
|
}
|
|
2678
2686
|
function Qt(e, n) {
|
|
2679
2687
|
if (e.type === "element") {
|
|
@@ -2696,17 +2704,17 @@ function Qt(e, n) {
|
|
|
2696
2704
|
}
|
|
2697
2705
|
return n.whitespace;
|
|
2698
2706
|
}
|
|
2699
|
-
function
|
|
2707
|
+
function go(e) {
|
|
2700
2708
|
return !!(e.properties || {}).hidden;
|
|
2701
2709
|
}
|
|
2702
|
-
function
|
|
2710
|
+
function mo(e) {
|
|
2703
2711
|
return e.tagName === "td" || e.tagName === "th";
|
|
2704
2712
|
}
|
|
2705
|
-
function
|
|
2713
|
+
function fo(e) {
|
|
2706
2714
|
return e.tagName === "dialog" && !(e.properties || {}).open;
|
|
2707
2715
|
}
|
|
2708
|
-
function
|
|
2709
|
-
const n = e.regex, t = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::",
|
|
2716
|
+
function bo(e) {
|
|
2717
|
+
const n = e.regex, t = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::", o = "(?!struct)(decltype\\(auto\\)|" + n.optional(a) + "[a-zA-Z_]\\w*" + n.optional("<[^<>]+>") + ")", i = {
|
|
2710
2718
|
className: "type",
|
|
2711
2719
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
2712
2720
|
}, c = {
|
|
@@ -3038,7 +3046,7 @@ function mo(e) {
|
|
|
3038
3046
|
}, v = [
|
|
3039
3047
|
T,
|
|
3040
3048
|
d,
|
|
3041
|
-
|
|
3049
|
+
i,
|
|
3042
3050
|
t,
|
|
3043
3051
|
e.C_BLOCK_COMMENT_MODE,
|
|
3044
3052
|
l,
|
|
@@ -3069,7 +3077,7 @@ function mo(e) {
|
|
|
3069
3077
|
relevance: 0
|
|
3070
3078
|
}, U = {
|
|
3071
3079
|
className: "function",
|
|
3072
|
-
begin: "(" +
|
|
3080
|
+
begin: "(" + o + "[\\*&\\s]+)+" + g,
|
|
3073
3081
|
returnBegin: !0,
|
|
3074
3082
|
end: /[{;=]/,
|
|
3075
3083
|
excludeEnd: !0,
|
|
@@ -3111,7 +3119,7 @@ function mo(e) {
|
|
|
3111
3119
|
e.C_BLOCK_COMMENT_MODE,
|
|
3112
3120
|
c,
|
|
3113
3121
|
l,
|
|
3114
|
-
|
|
3122
|
+
i,
|
|
3115
3123
|
{
|
|
3116
3124
|
begin: /\(/,
|
|
3117
3125
|
end: /\)/,
|
|
@@ -3123,12 +3131,12 @@ function mo(e) {
|
|
|
3123
3131
|
e.C_BLOCK_COMMENT_MODE,
|
|
3124
3132
|
c,
|
|
3125
3133
|
l,
|
|
3126
|
-
|
|
3134
|
+
i
|
|
3127
3135
|
]
|
|
3128
3136
|
}
|
|
3129
3137
|
]
|
|
3130
3138
|
},
|
|
3131
|
-
|
|
3139
|
+
i,
|
|
3132
3140
|
t,
|
|
3133
3141
|
e.C_BLOCK_COMMENT_MODE,
|
|
3134
3142
|
d
|
|
@@ -3154,7 +3162,7 @@ function mo(e) {
|
|
|
3154
3162
|
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
|
3155
3163
|
end: ">",
|
|
3156
3164
|
keywords: S,
|
|
3157
|
-
contains: ["self",
|
|
3165
|
+
contains: ["self", i]
|
|
3158
3166
|
},
|
|
3159
3167
|
{
|
|
3160
3168
|
begin: e.IDENT_RE + "::",
|
|
@@ -3174,7 +3182,7 @@ function mo(e) {
|
|
|
3174
3182
|
])
|
|
3175
3183
|
};
|
|
3176
3184
|
}
|
|
3177
|
-
function
|
|
3185
|
+
function ho(e) {
|
|
3178
3186
|
const n = {
|
|
3179
3187
|
type: [
|
|
3180
3188
|
"boolean",
|
|
@@ -3540,10 +3548,10 @@ function fo(e) {
|
|
|
3540
3548
|
"HIGH",
|
|
3541
3549
|
"LOW"
|
|
3542
3550
|
]
|
|
3543
|
-
}, t =
|
|
3551
|
+
}, t = bo(e), r = t.keywords;
|
|
3544
3552
|
return r.type = [...r.type, ...n.type], r.literal = [...r.literal, ...n.literal], r.built_in = [...r.built_in, ...n.built_in], r._hints = n._hints, t.name = "Arduino", t.aliases = ["ino"], t.supersetOf = "cpp", t;
|
|
3545
3553
|
}
|
|
3546
|
-
function
|
|
3554
|
+
function _o(e) {
|
|
3547
3555
|
const n = e.regex, t = {}, r = {
|
|
3548
3556
|
begin: /\$\{/,
|
|
3549
3557
|
end: /\}/,
|
|
@@ -3561,10 +3569,10 @@ function bo(e) {
|
|
|
3561
3569
|
begin: /\$\(/,
|
|
3562
3570
|
end: /\)/,
|
|
3563
3571
|
contains: [e.BACKSLASH_ESCAPE]
|
|
3564
|
-
},
|
|
3572
|
+
}, o = e.inherit(e.COMMENT(), {
|
|
3565
3573
|
match: [/(^|\s)/, /#.*$/],
|
|
3566
3574
|
scope: { 2: "comment" }
|
|
3567
|
-
}),
|
|
3575
|
+
}), i = {
|
|
3568
3576
|
begin: /<<-?\s*(?=\w+)/,
|
|
3569
3577
|
starts: { contains: [e.END_SAME_AS_BEGIN({
|
|
3570
3578
|
begin: /(\w+)/,
|
|
@@ -3869,8 +3877,8 @@ function bo(e) {
|
|
|
3869
3877
|
e.SHEBANG(),
|
|
3870
3878
|
m,
|
|
3871
3879
|
g,
|
|
3872
|
-
i,
|
|
3873
3880
|
o,
|
|
3881
|
+
i,
|
|
3874
3882
|
S,
|
|
3875
3883
|
c,
|
|
3876
3884
|
l,
|
|
@@ -3880,8 +3888,8 @@ function bo(e) {
|
|
|
3880
3888
|
]
|
|
3881
3889
|
};
|
|
3882
3890
|
}
|
|
3883
|
-
function
|
|
3884
|
-
const n = e.regex, t = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::",
|
|
3891
|
+
function Eo(e) {
|
|
3892
|
+
const n = e.regex, t = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::", o = "(decltype\\(auto\\)|" + n.optional(a) + "[a-zA-Z_]\\w*" + n.optional("<[^<>]+>") + ")", i = {
|
|
3885
3893
|
className: "type",
|
|
3886
3894
|
variants: [{ begin: "\\b[a-z\\d_]*_t\\b" }, { match: /\batomic_[a-z]{3,6}\b/ }]
|
|
3887
3895
|
}, c = {
|
|
@@ -4015,7 +4023,7 @@ function ho(e) {
|
|
|
4015
4023
|
built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
|
4016
4024
|
}, m = [
|
|
4017
4025
|
d,
|
|
4018
|
-
|
|
4026
|
+
i,
|
|
4019
4027
|
t,
|
|
4020
4028
|
e.C_BLOCK_COMMENT_MODE,
|
|
4021
4029
|
l,
|
|
@@ -4045,7 +4053,7 @@ function ho(e) {
|
|
|
4045
4053
|
}]),
|
|
4046
4054
|
relevance: 0
|
|
4047
4055
|
}, _ = {
|
|
4048
|
-
begin: "(" +
|
|
4056
|
+
begin: "(" + o + "[\\*&\\s]+)+" + g,
|
|
4049
4057
|
returnBegin: !0,
|
|
4050
4058
|
end: /[{;=]/,
|
|
4051
4059
|
excludeEnd: !0,
|
|
@@ -4078,7 +4086,7 @@ function ho(e) {
|
|
|
4078
4086
|
e.C_BLOCK_COMMENT_MODE,
|
|
4079
4087
|
c,
|
|
4080
4088
|
l,
|
|
4081
|
-
|
|
4089
|
+
i,
|
|
4082
4090
|
{
|
|
4083
4091
|
begin: /\(/,
|
|
4084
4092
|
end: /\)/,
|
|
@@ -4090,12 +4098,12 @@ function ho(e) {
|
|
|
4090
4098
|
e.C_BLOCK_COMMENT_MODE,
|
|
4091
4099
|
c,
|
|
4092
4100
|
l,
|
|
4093
|
-
|
|
4101
|
+
i
|
|
4094
4102
|
]
|
|
4095
4103
|
}
|
|
4096
4104
|
]
|
|
4097
4105
|
},
|
|
4098
|
-
|
|
4106
|
+
i,
|
|
4099
4107
|
t,
|
|
4100
4108
|
e.C_BLOCK_COMMENT_MODE,
|
|
4101
4109
|
d
|
|
@@ -4127,8 +4135,8 @@ function ho(e) {
|
|
|
4127
4135
|
}
|
|
4128
4136
|
};
|
|
4129
4137
|
}
|
|
4130
|
-
function
|
|
4131
|
-
const n = e.regex, t = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::",
|
|
4138
|
+
function yo(e) {
|
|
4139
|
+
const n = e.regex, t = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::", o = "(?!struct)(decltype\\(auto\\)|" + n.optional(a) + "[a-zA-Z_]\\w*" + n.optional("<[^<>]+>") + ")", i = {
|
|
4132
4140
|
className: "type",
|
|
4133
4141
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
4134
4142
|
}, c = {
|
|
@@ -4460,7 +4468,7 @@ function _o(e) {
|
|
|
4460
4468
|
}, v = [
|
|
4461
4469
|
T,
|
|
4462
4470
|
d,
|
|
4463
|
-
|
|
4471
|
+
i,
|
|
4464
4472
|
t,
|
|
4465
4473
|
e.C_BLOCK_COMMENT_MODE,
|
|
4466
4474
|
l,
|
|
@@ -4491,7 +4499,7 @@ function _o(e) {
|
|
|
4491
4499
|
relevance: 0
|
|
4492
4500
|
}, U = {
|
|
4493
4501
|
className: "function",
|
|
4494
|
-
begin: "(" +
|
|
4502
|
+
begin: "(" + o + "[\\*&\\s]+)+" + g,
|
|
4495
4503
|
returnBegin: !0,
|
|
4496
4504
|
end: /[{;=]/,
|
|
4497
4505
|
excludeEnd: !0,
|
|
@@ -4533,7 +4541,7 @@ function _o(e) {
|
|
|
4533
4541
|
e.C_BLOCK_COMMENT_MODE,
|
|
4534
4542
|
c,
|
|
4535
4543
|
l,
|
|
4536
|
-
|
|
4544
|
+
i,
|
|
4537
4545
|
{
|
|
4538
4546
|
begin: /\(/,
|
|
4539
4547
|
end: /\)/,
|
|
@@ -4545,12 +4553,12 @@ function _o(e) {
|
|
|
4545
4553
|
e.C_BLOCK_COMMENT_MODE,
|
|
4546
4554
|
c,
|
|
4547
4555
|
l,
|
|
4548
|
-
|
|
4556
|
+
i
|
|
4549
4557
|
]
|
|
4550
4558
|
}
|
|
4551
4559
|
]
|
|
4552
4560
|
},
|
|
4553
|
-
|
|
4561
|
+
i,
|
|
4554
4562
|
t,
|
|
4555
4563
|
e.C_BLOCK_COMMENT_MODE,
|
|
4556
4564
|
d
|
|
@@ -4576,7 +4584,7 @@ function _o(e) {
|
|
|
4576
4584
|
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
|
4577
4585
|
end: ">",
|
|
4578
4586
|
keywords: S,
|
|
4579
|
-
contains: ["self",
|
|
4587
|
+
contains: ["self", i]
|
|
4580
4588
|
},
|
|
4581
4589
|
{
|
|
4582
4590
|
begin: e.IDENT_RE + "::",
|
|
@@ -4596,7 +4604,7 @@ function _o(e) {
|
|
|
4596
4604
|
])
|
|
4597
4605
|
};
|
|
4598
4606
|
}
|
|
4599
|
-
function
|
|
4607
|
+
function vo(e) {
|
|
4600
4608
|
const n = [
|
|
4601
4609
|
"bool",
|
|
4602
4610
|
"byte",
|
|
@@ -4742,7 +4750,7 @@ function Eo(e) {
|
|
|
4742
4750
|
"null",
|
|
4743
4751
|
"true"
|
|
4744
4752
|
]
|
|
4745
|
-
}, a = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }),
|
|
4753
|
+
}, a = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }), o = {
|
|
4746
4754
|
className: "number",
|
|
4747
4755
|
variants: [
|
|
4748
4756
|
{ begin: "\\b(0b[01']+)" },
|
|
@@ -4750,7 +4758,7 @@ function Eo(e) {
|
|
|
4750
4758
|
{ begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" }
|
|
4751
4759
|
],
|
|
4752
4760
|
relevance: 0
|
|
4753
|
-
},
|
|
4761
|
+
}, i = {
|
|
4754
4762
|
className: "string",
|
|
4755
4763
|
begin: /"""("*)(?!")(.|\n)*?"""\1/,
|
|
4756
4764
|
relevance: 1
|
|
@@ -4800,7 +4808,7 @@ function Eo(e) {
|
|
|
4800
4808
|
c,
|
|
4801
4809
|
e.APOS_STRING_MODE,
|
|
4802
4810
|
e.QUOTE_STRING_MODE,
|
|
4803
|
-
|
|
4811
|
+
o,
|
|
4804
4812
|
e.C_BLOCK_COMMENT_MODE
|
|
4805
4813
|
], u.contains = [
|
|
4806
4814
|
m,
|
|
@@ -4808,11 +4816,11 @@ function Eo(e) {
|
|
|
4808
4816
|
l,
|
|
4809
4817
|
e.APOS_STRING_MODE,
|
|
4810
4818
|
e.QUOTE_STRING_MODE,
|
|
4811
|
-
|
|
4819
|
+
o,
|
|
4812
4820
|
e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
|
|
4813
4821
|
];
|
|
4814
4822
|
const y = { variants: [
|
|
4815
|
-
|
|
4823
|
+
i,
|
|
4816
4824
|
p,
|
|
4817
4825
|
g,
|
|
4818
4826
|
c,
|
|
@@ -4858,7 +4866,7 @@ function Eo(e) {
|
|
|
4858
4866
|
keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
|
|
4859
4867
|
},
|
|
4860
4868
|
y,
|
|
4861
|
-
|
|
4869
|
+
o,
|
|
4862
4870
|
{
|
|
4863
4871
|
beginKeywords: "class interface",
|
|
4864
4872
|
relevance: 0,
|
|
@@ -4940,7 +4948,7 @@ function Eo(e) {
|
|
|
4940
4948
|
relevance: 0,
|
|
4941
4949
|
contains: [
|
|
4942
4950
|
y,
|
|
4943
|
-
|
|
4951
|
+
o,
|
|
4944
4952
|
e.C_BLOCK_COMMENT_MODE
|
|
4945
4953
|
]
|
|
4946
4954
|
},
|
|
@@ -4952,7 +4960,7 @@ function Eo(e) {
|
|
|
4952
4960
|
]
|
|
4953
4961
|
};
|
|
4954
4962
|
}
|
|
4955
|
-
var
|
|
4963
|
+
var wo = (e) => ({
|
|
4956
4964
|
IMPORTANT: {
|
|
4957
4965
|
scope: "meta",
|
|
4958
4966
|
begin: "!important"
|
|
@@ -4982,7 +4990,7 @@ var yo = (e) => ({
|
|
|
4982
4990
|
className: "attr",
|
|
4983
4991
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
4984
4992
|
}
|
|
4985
|
-
}),
|
|
4993
|
+
}), No = [
|
|
4986
4994
|
"a",
|
|
4987
4995
|
"abbr",
|
|
4988
4996
|
"address",
|
|
@@ -5060,7 +5068,7 @@ var yo = (e) => ({
|
|
|
5060
5068
|
"ul",
|
|
5061
5069
|
"var",
|
|
5062
5070
|
"video"
|
|
5063
|
-
],
|
|
5071
|
+
], So = [
|
|
5064
5072
|
"defs",
|
|
5065
5073
|
"g",
|
|
5066
5074
|
"marker",
|
|
@@ -5102,7 +5110,7 @@ var yo = (e) => ({
|
|
|
5102
5110
|
"tspan",
|
|
5103
5111
|
"foreignObject",
|
|
5104
5112
|
"clipPath"
|
|
5105
|
-
],
|
|
5113
|
+
], ko = [...No, ...So], xo = [
|
|
5106
5114
|
"any-hover",
|
|
5107
5115
|
"any-pointer",
|
|
5108
5116
|
"aspect-ratio",
|
|
@@ -5136,7 +5144,7 @@ var yo = (e) => ({
|
|
|
5136
5144
|
"max-width",
|
|
5137
5145
|
"min-height",
|
|
5138
5146
|
"max-height"
|
|
5139
|
-
].sort().reverse(),
|
|
5147
|
+
].sort().reverse(), To = [
|
|
5140
5148
|
"active",
|
|
5141
5149
|
"any-link",
|
|
5142
5150
|
"blank",
|
|
@@ -5196,7 +5204,7 @@ var yo = (e) => ({
|
|
|
5196
5204
|
"valid",
|
|
5197
5205
|
"visited",
|
|
5198
5206
|
"where"
|
|
5199
|
-
].sort().reverse(),
|
|
5207
|
+
].sort().reverse(), Ao = [
|
|
5200
5208
|
"after",
|
|
5201
5209
|
"backdrop",
|
|
5202
5210
|
"before",
|
|
@@ -5211,7 +5219,7 @@ var yo = (e) => ({
|
|
|
5211
5219
|
"selection",
|
|
5212
5220
|
"slotted",
|
|
5213
5221
|
"spelling-error"
|
|
5214
|
-
].sort().reverse(),
|
|
5222
|
+
].sort().reverse(), Oo = [
|
|
5215
5223
|
"accent-color",
|
|
5216
5224
|
"align-content",
|
|
5217
5225
|
"align-items",
|
|
@@ -5727,8 +5735,8 @@ var yo = (e) => ({
|
|
|
5727
5735
|
"z-index",
|
|
5728
5736
|
"zoom"
|
|
5729
5737
|
].sort().reverse();
|
|
5730
|
-
function
|
|
5731
|
-
const n = e.regex, t =
|
|
5738
|
+
function Co(e) {
|
|
5739
|
+
const n = e.regex, t = wo(e), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, a = "and or not only", o = /@-?\w[\w]*(-\w+)*/, i = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE];
|
|
5732
5740
|
return {
|
|
5733
5741
|
name: "CSS",
|
|
5734
5742
|
case_insensitive: !0,
|
|
@@ -5752,12 +5760,12 @@ function Ao(e) {
|
|
|
5752
5760
|
t.ATTRIBUTE_SELECTOR_MODE,
|
|
5753
5761
|
{
|
|
5754
5762
|
className: "selector-pseudo",
|
|
5755
|
-
variants: [{ begin: ":(" +
|
|
5763
|
+
variants: [{ begin: ":(" + To.join("|") + ")" }, { begin: ":(:)?(" + Ao.join("|") + ")" }]
|
|
5756
5764
|
},
|
|
5757
5765
|
t.CSS_VARIABLE,
|
|
5758
5766
|
{
|
|
5759
5767
|
className: "attribute",
|
|
5760
|
-
begin: "\\b(" +
|
|
5768
|
+
begin: "\\b(" + Oo.join("|") + ")\\b"
|
|
5761
5769
|
},
|
|
5762
5770
|
{
|
|
5763
5771
|
begin: /:/,
|
|
@@ -5767,13 +5775,13 @@ function Ao(e) {
|
|
|
5767
5775
|
t.HEXCOLOR,
|
|
5768
5776
|
t.IMPORTANT,
|
|
5769
5777
|
t.CSS_NUMBER_MODE,
|
|
5770
|
-
...
|
|
5778
|
+
...i,
|
|
5771
5779
|
{
|
|
5772
5780
|
begin: /(url|data-uri)\(/,
|
|
5773
5781
|
end: /\)/,
|
|
5774
5782
|
relevance: 0,
|
|
5775
5783
|
keywords: { built_in: "url data-uri" },
|
|
5776
|
-
contains: [...
|
|
5784
|
+
contains: [...i, {
|
|
5777
5785
|
className: "string",
|
|
5778
5786
|
begin: /[^)]/,
|
|
5779
5787
|
endsWithParent: !0,
|
|
@@ -5790,7 +5798,7 @@ function Ao(e) {
|
|
|
5790
5798
|
illegal: /:/,
|
|
5791
5799
|
contains: [{
|
|
5792
5800
|
className: "keyword",
|
|
5793
|
-
begin:
|
|
5801
|
+
begin: o
|
|
5794
5802
|
}, {
|
|
5795
5803
|
begin: /\s/,
|
|
5796
5804
|
endsWithParent: !0,
|
|
@@ -5799,26 +5807,26 @@ function Ao(e) {
|
|
|
5799
5807
|
keywords: {
|
|
5800
5808
|
$pattern: /[a-z-]+/,
|
|
5801
5809
|
keyword: a,
|
|
5802
|
-
attribute:
|
|
5810
|
+
attribute: xo.join(" ")
|
|
5803
5811
|
},
|
|
5804
5812
|
contains: [
|
|
5805
5813
|
{
|
|
5806
5814
|
begin: /[a-z-]+(?=:)/,
|
|
5807
5815
|
className: "attribute"
|
|
5808
5816
|
},
|
|
5809
|
-
...
|
|
5817
|
+
...i,
|
|
5810
5818
|
t.CSS_NUMBER_MODE
|
|
5811
5819
|
]
|
|
5812
5820
|
}]
|
|
5813
5821
|
},
|
|
5814
5822
|
{
|
|
5815
5823
|
className: "selector-tag",
|
|
5816
|
-
begin: "\\b(" +
|
|
5824
|
+
begin: "\\b(" + ko.join("|") + ")\\b"
|
|
5817
5825
|
}
|
|
5818
5826
|
]
|
|
5819
5827
|
};
|
|
5820
5828
|
}
|
|
5821
|
-
function
|
|
5829
|
+
function Ro(e) {
|
|
5822
5830
|
const n = e.regex;
|
|
5823
5831
|
return {
|
|
5824
5832
|
name: "Diff",
|
|
@@ -5854,7 +5862,7 @@ function Oo(e) {
|
|
|
5854
5862
|
]
|
|
5855
5863
|
};
|
|
5856
5864
|
}
|
|
5857
|
-
function
|
|
5865
|
+
function Mo(e) {
|
|
5858
5866
|
const n = {
|
|
5859
5867
|
keyword: [
|
|
5860
5868
|
"break",
|
|
@@ -5991,7 +5999,7 @@ function Co(e) {
|
|
|
5991
5999
|
]
|
|
5992
6000
|
};
|
|
5993
6001
|
}
|
|
5994
|
-
function
|
|
6002
|
+
function Io(e) {
|
|
5995
6003
|
const n = e.regex;
|
|
5996
6004
|
return {
|
|
5997
6005
|
name: "GraphQL",
|
|
@@ -6055,7 +6063,7 @@ function Ro(e) {
|
|
|
6055
6063
|
illegal: [/[;<']/, /BEGIN/]
|
|
6056
6064
|
};
|
|
6057
6065
|
}
|
|
6058
|
-
function
|
|
6066
|
+
function Do(e) {
|
|
6059
6067
|
const n = e.regex, t = {
|
|
6060
6068
|
className: "number",
|
|
6061
6069
|
relevance: 0,
|
|
@@ -6071,10 +6079,10 @@ function Mo(e) {
|
|
|
6071
6079
|
const a = {
|
|
6072
6080
|
className: "variable",
|
|
6073
6081
|
variants: [{ begin: /\$[\w\d"][\w\d_]*/ }, { begin: /\$\{(.*?)\}/ }]
|
|
6074
|
-
},
|
|
6082
|
+
}, o = {
|
|
6075
6083
|
className: "literal",
|
|
6076
6084
|
begin: /\bon|off|true|false|yes|no\b/
|
|
6077
|
-
},
|
|
6085
|
+
}, i = {
|
|
6078
6086
|
className: "string",
|
|
6079
6087
|
contains: [e.BACKSLASH_ESCAPE],
|
|
6080
6088
|
variants: [
|
|
@@ -6102,9 +6110,9 @@ function Mo(e) {
|
|
|
6102
6110
|
end: /\]/,
|
|
6103
6111
|
contains: [
|
|
6104
6112
|
r,
|
|
6105
|
-
i,
|
|
6106
|
-
a,
|
|
6107
6113
|
o,
|
|
6114
|
+
a,
|
|
6115
|
+
i,
|
|
6108
6116
|
t,
|
|
6109
6117
|
"self"
|
|
6110
6118
|
],
|
|
@@ -6130,9 +6138,9 @@ function Mo(e) {
|
|
|
6130
6138
|
contains: [
|
|
6131
6139
|
r,
|
|
6132
6140
|
c,
|
|
6133
|
-
i,
|
|
6134
|
-
a,
|
|
6135
6141
|
o,
|
|
6142
|
+
a,
|
|
6143
|
+
i,
|
|
6136
6144
|
t
|
|
6137
6145
|
]
|
|
6138
6146
|
}
|
|
@@ -6140,7 +6148,7 @@ function Mo(e) {
|
|
|
6140
6148
|
]
|
|
6141
6149
|
};
|
|
6142
6150
|
}
|
|
6143
|
-
var Be = "[0-9](_*[0-9])*", rn = `\\.(${Be})`, an = "[0-9a-fA-F](_*[0-9a-fA-F])*",
|
|
6151
|
+
var Be = "[0-9](_*[0-9])*", rn = `\\.(${Be})`, an = "[0-9a-fA-F](_*[0-9a-fA-F])*", kt = {
|
|
6144
6152
|
className: "number",
|
|
6145
6153
|
variants: [
|
|
6146
6154
|
{ begin: `(\\b(${Be})((${rn})|\\.)?|(${rn}))[eE][+-]?(${Be})[fFdD]?\\b` },
|
|
@@ -6158,7 +6166,7 @@ var Be = "[0-9](_*[0-9])*", rn = `\\.(${Be})`, an = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
6158
6166
|
function Jt(e, n, t) {
|
|
6159
6167
|
return t === -1 ? "" : e.replace(n, (r) => Jt(e, n, t - 1));
|
|
6160
6168
|
}
|
|
6161
|
-
function
|
|
6169
|
+
function Lo(e) {
|
|
6162
6170
|
const n = e.regex, t = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = t + Jt("(?:<" + t + "~~~(?:\\s*,\\s*" + t + "~~~)*>)?", /~~~/g, 2), a = {
|
|
6163
6171
|
keyword: [
|
|
6164
6172
|
"synchronized",
|
|
@@ -6222,7 +6230,7 @@ function Io(e) {
|
|
|
6222
6230
|
"double"
|
|
6223
6231
|
],
|
|
6224
6232
|
built_in: ["super", "this"]
|
|
6225
|
-
},
|
|
6233
|
+
}, o = {
|
|
6226
6234
|
className: "meta",
|
|
6227
6235
|
begin: "@" + t,
|
|
6228
6236
|
contains: [{
|
|
@@ -6230,7 +6238,7 @@ function Io(e) {
|
|
|
6230
6238
|
end: /\)/,
|
|
6231
6239
|
contains: ["self"]
|
|
6232
6240
|
}]
|
|
6233
|
-
},
|
|
6241
|
+
}, i = {
|
|
6234
6242
|
className: "params",
|
|
6235
6243
|
begin: /\(/,
|
|
6236
6244
|
end: /\)/,
|
|
@@ -6310,7 +6318,7 @@ function Io(e) {
|
|
|
6310
6318
|
3: "title.class"
|
|
6311
6319
|
},
|
|
6312
6320
|
contains: [
|
|
6313
|
-
|
|
6321
|
+
i,
|
|
6314
6322
|
e.C_LINE_COMMENT_MODE,
|
|
6315
6323
|
e.C_BLOCK_COMMENT_MODE
|
|
6316
6324
|
]
|
|
@@ -6335,10 +6343,10 @@ function Io(e) {
|
|
|
6335
6343
|
keywords: a,
|
|
6336
6344
|
relevance: 0,
|
|
6337
6345
|
contains: [
|
|
6338
|
-
|
|
6346
|
+
o,
|
|
6339
6347
|
e.APOS_STRING_MODE,
|
|
6340
6348
|
e.QUOTE_STRING_MODE,
|
|
6341
|
-
|
|
6349
|
+
kt,
|
|
6342
6350
|
e.C_BLOCK_COMMENT_MODE
|
|
6343
6351
|
]
|
|
6344
6352
|
},
|
|
@@ -6346,12 +6354,12 @@ function Io(e) {
|
|
|
6346
6354
|
e.C_BLOCK_COMMENT_MODE
|
|
6347
6355
|
]
|
|
6348
6356
|
},
|
|
6349
|
-
|
|
6350
|
-
|
|
6357
|
+
kt,
|
|
6358
|
+
o
|
|
6351
6359
|
]
|
|
6352
6360
|
};
|
|
6353
6361
|
}
|
|
6354
|
-
var
|
|
6362
|
+
var xt = "[A-Za-z$_][0-9A-Za-z$_]*", Po = [
|
|
6355
6363
|
"as",
|
|
6356
6364
|
"in",
|
|
6357
6365
|
"of",
|
|
@@ -6391,7 +6399,7 @@ var Tt = "[A-Za-z$_][0-9A-Za-z$_]*", Do = [
|
|
|
6391
6399
|
"export",
|
|
6392
6400
|
"extends",
|
|
6393
6401
|
"using"
|
|
6394
|
-
],
|
|
6402
|
+
], Bo = [
|
|
6395
6403
|
"true",
|
|
6396
6404
|
"false",
|
|
6397
6405
|
"null",
|
|
@@ -6465,7 +6473,7 @@ var Tt = "[A-Za-z$_][0-9A-Za-z$_]*", Do = [
|
|
|
6465
6473
|
"encodeURIComponent",
|
|
6466
6474
|
"escape",
|
|
6467
6475
|
"unescape"
|
|
6468
|
-
],
|
|
6476
|
+
], Uo = [
|
|
6469
6477
|
"arguments",
|
|
6470
6478
|
"this",
|
|
6471
6479
|
"super",
|
|
@@ -6476,15 +6484,15 @@ var Tt = "[A-Za-z$_][0-9A-Za-z$_]*", Do = [
|
|
|
6476
6484
|
"sessionStorage",
|
|
6477
6485
|
"module",
|
|
6478
6486
|
"global"
|
|
6479
|
-
],
|
|
6480
|
-
function
|
|
6487
|
+
], Fo = [].concat(nr, jt, er);
|
|
6488
|
+
function zo(e) {
|
|
6481
6489
|
const n = e.regex, t = (w, { after: z }) => {
|
|
6482
6490
|
const ce = "</" + w[0].slice(1);
|
|
6483
6491
|
return w.input.indexOf(ce, z) !== -1;
|
|
6484
|
-
}, r =
|
|
6492
|
+
}, r = xt, a = {
|
|
6485
6493
|
begin: "<>",
|
|
6486
6494
|
end: "</>"
|
|
6487
|
-
},
|
|
6495
|
+
}, o = /<[A-Za-z0-9\\._:-]+\s*\/>/, i = {
|
|
6488
6496
|
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
6489
6497
|
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
6490
6498
|
isTrulyOpeningTag: (w, z) => {
|
|
@@ -6506,11 +6514,11 @@ function Uo(e) {
|
|
|
6506
6514
|
}
|
|
6507
6515
|
}
|
|
6508
6516
|
}, c = {
|
|
6509
|
-
$pattern:
|
|
6510
|
-
keyword:
|
|
6511
|
-
literal:
|
|
6512
|
-
built_in:
|
|
6513
|
-
"variable.language":
|
|
6517
|
+
$pattern: xt,
|
|
6518
|
+
keyword: Po,
|
|
6519
|
+
literal: Bo,
|
|
6520
|
+
built_in: Fo,
|
|
6521
|
+
"variable.language": Uo
|
|
6514
6522
|
}, l = "[0-9](_?[0-9])*", d = `\\.(${l})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", g = {
|
|
6515
6523
|
className: "number",
|
|
6516
6524
|
variants: [
|
|
@@ -6815,17 +6823,17 @@ function Uo(e) {
|
|
|
6815
6823
|
begin: a.begin,
|
|
6816
6824
|
end: a.end
|
|
6817
6825
|
},
|
|
6818
|
-
{ match:
|
|
6826
|
+
{ match: o },
|
|
6819
6827
|
{
|
|
6820
|
-
begin:
|
|
6821
|
-
"on:begin":
|
|
6822
|
-
end:
|
|
6828
|
+
begin: i.begin,
|
|
6829
|
+
"on:begin": i.isTrulyOpeningTag,
|
|
6830
|
+
end: i.end
|
|
6823
6831
|
}
|
|
6824
6832
|
],
|
|
6825
6833
|
subLanguage: "xml",
|
|
6826
6834
|
contains: [{
|
|
6827
|
-
begin:
|
|
6828
|
-
end:
|
|
6835
|
+
begin: i.begin,
|
|
6836
|
+
end: i.end,
|
|
6829
6837
|
skip: !0,
|
|
6830
6838
|
contains: ["self"]
|
|
6831
6839
|
}]
|
|
@@ -6865,7 +6873,7 @@ function Uo(e) {
|
|
|
6865
6873
|
]
|
|
6866
6874
|
};
|
|
6867
6875
|
}
|
|
6868
|
-
function
|
|
6876
|
+
function $o(e) {
|
|
6869
6877
|
const n = {
|
|
6870
6878
|
className: "attr",
|
|
6871
6879
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -6898,7 +6906,7 @@ function Fo(e) {
|
|
|
6898
6906
|
illegal: "\\S"
|
|
6899
6907
|
};
|
|
6900
6908
|
}
|
|
6901
|
-
var Ue = "[0-9](_*[0-9])*", on = `\\.(${Ue})`, sn = "[0-9a-fA-F](_*[0-9a-fA-F])*",
|
|
6909
|
+
var Ue = "[0-9](_*[0-9])*", on = `\\.(${Ue})`, sn = "[0-9a-fA-F](_*[0-9a-fA-F])*", Go = {
|
|
6902
6910
|
className: "number",
|
|
6903
6911
|
variants: [
|
|
6904
6912
|
{ begin: `(\\b(${Ue})((${on})|\\.)?|(${on}))[eE][+-]?(${Ue})[fFdD]?\\b` },
|
|
@@ -6913,7 +6921,7 @@ var Ue = "[0-9](_*[0-9])*", on = `\\.(${Ue})`, sn = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
6913
6921
|
],
|
|
6914
6922
|
relevance: 0
|
|
6915
6923
|
};
|
|
6916
|
-
function
|
|
6924
|
+
function Ko(e) {
|
|
6917
6925
|
const n = {
|
|
6918
6926
|
keyword: "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
|
|
6919
6927
|
built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
|
|
@@ -6933,16 +6941,16 @@ function $o(e) {
|
|
|
6933
6941
|
begin: /\$\{/,
|
|
6934
6942
|
end: /\}/,
|
|
6935
6943
|
contains: [e.C_NUMBER_MODE]
|
|
6936
|
-
},
|
|
6944
|
+
}, o = {
|
|
6937
6945
|
className: "variable",
|
|
6938
6946
|
begin: "\\$" + e.UNDERSCORE_IDENT_RE
|
|
6939
|
-
},
|
|
6947
|
+
}, i = {
|
|
6940
6948
|
className: "string",
|
|
6941
6949
|
variants: [
|
|
6942
6950
|
{
|
|
6943
6951
|
begin: '"""',
|
|
6944
6952
|
end: '"""(?=[^"])',
|
|
6945
|
-
contains: [
|
|
6953
|
+
contains: [o, a]
|
|
6946
6954
|
},
|
|
6947
6955
|
{
|
|
6948
6956
|
begin: "'",
|
|
@@ -6956,13 +6964,13 @@ function $o(e) {
|
|
|
6956
6964
|
illegal: /\n/,
|
|
6957
6965
|
contains: [
|
|
6958
6966
|
e.BACKSLASH_ESCAPE,
|
|
6959
|
-
|
|
6967
|
+
o,
|
|
6960
6968
|
a
|
|
6961
6969
|
]
|
|
6962
6970
|
}
|
|
6963
6971
|
]
|
|
6964
6972
|
};
|
|
6965
|
-
a.contains.push(
|
|
6973
|
+
a.contains.push(i);
|
|
6966
6974
|
const c = {
|
|
6967
6975
|
className: "meta",
|
|
6968
6976
|
begin: "@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*" + e.UNDERSCORE_IDENT_RE + ")?"
|
|
@@ -6972,9 +6980,9 @@ function $o(e) {
|
|
|
6972
6980
|
contains: [{
|
|
6973
6981
|
begin: /\(/,
|
|
6974
6982
|
end: /\)/,
|
|
6975
|
-
contains: [e.inherit(
|
|
6983
|
+
contains: [e.inherit(i, { className: "string" }), "self"]
|
|
6976
6984
|
}]
|
|
6977
|
-
}, d =
|
|
6985
|
+
}, d = Go, u = e.COMMENT("/\\*", "\\*/", { contains: [e.C_BLOCK_COMMENT_MODE] }), g = { variants: [{
|
|
6978
6986
|
className: "type",
|
|
6979
6987
|
begin: e.UNDERSCORE_IDENT_RE
|
|
6980
6988
|
}, {
|
|
@@ -7045,7 +7053,7 @@ function $o(e) {
|
|
|
7045
7053
|
u,
|
|
7046
7054
|
c,
|
|
7047
7055
|
l,
|
|
7048
|
-
|
|
7056
|
+
i,
|
|
7049
7057
|
e.C_NUMBER_MODE
|
|
7050
7058
|
]
|
|
7051
7059
|
},
|
|
@@ -7085,7 +7093,7 @@ function $o(e) {
|
|
|
7085
7093
|
l
|
|
7086
7094
|
]
|
|
7087
7095
|
},
|
|
7088
|
-
|
|
7096
|
+
i,
|
|
7089
7097
|
{
|
|
7090
7098
|
className: "meta",
|
|
7091
7099
|
begin: "^#!/usr/bin/env",
|
|
@@ -7097,7 +7105,7 @@ function $o(e) {
|
|
|
7097
7105
|
]
|
|
7098
7106
|
};
|
|
7099
7107
|
}
|
|
7100
|
-
var
|
|
7108
|
+
var Ho = (e) => ({
|
|
7101
7109
|
IMPORTANT: {
|
|
7102
7110
|
scope: "meta",
|
|
7103
7111
|
begin: "!important"
|
|
@@ -7127,7 +7135,7 @@ var Go = (e) => ({
|
|
|
7127
7135
|
className: "attr",
|
|
7128
7136
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
7129
7137
|
}
|
|
7130
|
-
}),
|
|
7138
|
+
}), qo = [
|
|
7131
7139
|
"a",
|
|
7132
7140
|
"abbr",
|
|
7133
7141
|
"address",
|
|
@@ -7205,7 +7213,7 @@ var Go = (e) => ({
|
|
|
7205
7213
|
"ul",
|
|
7206
7214
|
"var",
|
|
7207
7215
|
"video"
|
|
7208
|
-
],
|
|
7216
|
+
], Wo = [
|
|
7209
7217
|
"defs",
|
|
7210
7218
|
"g",
|
|
7211
7219
|
"marker",
|
|
@@ -7247,7 +7255,7 @@ var Go = (e) => ({
|
|
|
7247
7255
|
"tspan",
|
|
7248
7256
|
"foreignObject",
|
|
7249
7257
|
"clipPath"
|
|
7250
|
-
],
|
|
7258
|
+
], Zo = [...qo, ...Wo], Yo = [
|
|
7251
7259
|
"any-hover",
|
|
7252
7260
|
"any-pointer",
|
|
7253
7261
|
"aspect-ratio",
|
|
@@ -7356,7 +7364,7 @@ var Go = (e) => ({
|
|
|
7356
7364
|
"selection",
|
|
7357
7365
|
"slotted",
|
|
7358
7366
|
"spelling-error"
|
|
7359
|
-
].sort().reverse(),
|
|
7367
|
+
].sort().reverse(), Vo = [
|
|
7360
7368
|
"accent-color",
|
|
7361
7369
|
"align-content",
|
|
7362
7370
|
"align-items",
|
|
@@ -7871,9 +7879,9 @@ var Go = (e) => ({
|
|
|
7871
7879
|
"y",
|
|
7872
7880
|
"z-index",
|
|
7873
7881
|
"zoom"
|
|
7874
|
-
].sort().reverse(),
|
|
7875
|
-
function
|
|
7876
|
-
const n =
|
|
7882
|
+
].sort().reverse(), Xo = tr.concat(rr).sort().reverse();
|
|
7883
|
+
function Qo(e) {
|
|
7884
|
+
const n = Ho(e), t = Xo, r = "and or not only", a = "([\\w-]+|@\\{[\\w-]+\\})", o = [], i = [], c = function(v) {
|
|
7877
7885
|
return {
|
|
7878
7886
|
className: "string",
|
|
7879
7887
|
begin: "~?" + v + ".*?" + v
|
|
@@ -7887,15 +7895,15 @@ function Vo(e) {
|
|
|
7887
7895
|
}, d = {
|
|
7888
7896
|
$pattern: /[a-z-]+/,
|
|
7889
7897
|
keyword: r,
|
|
7890
|
-
attribute:
|
|
7898
|
+
attribute: Yo.join(" ")
|
|
7891
7899
|
}, u = {
|
|
7892
7900
|
begin: "\\(",
|
|
7893
7901
|
end: "\\)",
|
|
7894
|
-
contains:
|
|
7902
|
+
contains: i,
|
|
7895
7903
|
keywords: d,
|
|
7896
7904
|
relevance: 0
|
|
7897
7905
|
};
|
|
7898
|
-
|
|
7906
|
+
i.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, c("'"), c('"'), n.CSS_NUMBER_MODE, {
|
|
7899
7907
|
begin: "(url|data-uri)\\(",
|
|
7900
7908
|
starts: {
|
|
7901
7909
|
className: "string",
|
|
@@ -7909,14 +7917,14 @@ function Vo(e) {
|
|
|
7909
7917
|
returnBegin: !0,
|
|
7910
7918
|
excludeEnd: !0
|
|
7911
7919
|
}, n.IMPORTANT, { beginKeywords: "and not" }, n.FUNCTION_DISPATCH);
|
|
7912
|
-
const g =
|
|
7920
|
+
const g = i.concat({
|
|
7913
7921
|
begin: /\{/,
|
|
7914
7922
|
end: /\}/,
|
|
7915
|
-
contains:
|
|
7923
|
+
contains: o
|
|
7916
7924
|
}), p = {
|
|
7917
7925
|
beginKeywords: "when",
|
|
7918
7926
|
endsWithParent: !0,
|
|
7919
|
-
contains: [{ beginKeywords: "and not" }].concat(
|
|
7927
|
+
contains: [{ beginKeywords: "and not" }].concat(i)
|
|
7920
7928
|
}, m = {
|
|
7921
7929
|
begin: a + "\\s*:",
|
|
7922
7930
|
returnBegin: !0,
|
|
@@ -7927,13 +7935,13 @@ function Vo(e) {
|
|
|
7927
7935
|
n.CSS_VARIABLE,
|
|
7928
7936
|
{
|
|
7929
7937
|
className: "attribute",
|
|
7930
|
-
begin: "\\b(" +
|
|
7938
|
+
begin: "\\b(" + Vo.join("|") + ")\\b",
|
|
7931
7939
|
end: /(?=:)/,
|
|
7932
7940
|
starts: {
|
|
7933
7941
|
endsWithParent: !0,
|
|
7934
7942
|
illegal: "[<=$]",
|
|
7935
7943
|
relevance: 0,
|
|
7936
|
-
contains:
|
|
7944
|
+
contains: i
|
|
7937
7945
|
}
|
|
7938
7946
|
}
|
|
7939
7947
|
]
|
|
@@ -7944,7 +7952,7 @@ function Vo(e) {
|
|
|
7944
7952
|
end: "[;{}]",
|
|
7945
7953
|
keywords: d,
|
|
7946
7954
|
returnEnd: !0,
|
|
7947
|
-
contains:
|
|
7955
|
+
contains: i,
|
|
7948
7956
|
relevance: 0
|
|
7949
7957
|
}
|
|
7950
7958
|
}, _ = {
|
|
@@ -7977,7 +7985,7 @@ function Vo(e) {
|
|
|
7977
7985
|
l("keyword", "all\\b"),
|
|
7978
7986
|
l("variable", "@\\{[\\w-]+\\}"),
|
|
7979
7987
|
{
|
|
7980
|
-
begin: "\\b(" +
|
|
7988
|
+
begin: "\\b(" + Zo.join("|") + ")\\b",
|
|
7981
7989
|
className: "selector-tag"
|
|
7982
7990
|
},
|
|
7983
7991
|
n.CSS_NUMBER_MODE,
|
|
@@ -8008,14 +8016,14 @@ function Vo(e) {
|
|
|
8008
8016
|
returnBegin: !0,
|
|
8009
8017
|
contains: [S]
|
|
8010
8018
|
};
|
|
8011
|
-
return
|
|
8019
|
+
return o.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, y, _, T, m, S, p, n.FUNCTION_DISPATCH), {
|
|
8012
8020
|
name: "Less",
|
|
8013
8021
|
case_insensitive: !0,
|
|
8014
8022
|
illegal: `[=>'/<($"]`,
|
|
8015
|
-
contains:
|
|
8023
|
+
contains: o
|
|
8016
8024
|
};
|
|
8017
8025
|
}
|
|
8018
|
-
function
|
|
8026
|
+
function Jo(e) {
|
|
8019
8027
|
const n = "\\[=*\\[", t = "\\]=*\\]", r = {
|
|
8020
8028
|
begin: n,
|
|
8021
8029
|
end: t,
|
|
@@ -8058,7 +8066,7 @@ function Xo(e) {
|
|
|
8058
8066
|
])
|
|
8059
8067
|
};
|
|
8060
8068
|
}
|
|
8061
|
-
function
|
|
8069
|
+
function jo(e) {
|
|
8062
8070
|
const n = {
|
|
8063
8071
|
className: "variable",
|
|
8064
8072
|
variants: [{
|
|
@@ -8076,7 +8084,7 @@ function Qo(e) {
|
|
|
8076
8084
|
end: /\)/,
|
|
8077
8085
|
keywords: { built_in: "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value" },
|
|
8078
8086
|
contains: [n, t]
|
|
8079
|
-
}, a = { begin: "^" + e.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)" },
|
|
8087
|
+
}, a = { begin: "^" + e.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)" }, o = {
|
|
8080
8088
|
className: "meta",
|
|
8081
8089
|
begin: /^\.PHONY:/,
|
|
8082
8090
|
end: /$/,
|
|
@@ -8084,7 +8092,7 @@ function Qo(e) {
|
|
|
8084
8092
|
$pattern: /[\.\w]+/,
|
|
8085
8093
|
keyword: ".PHONY"
|
|
8086
8094
|
}
|
|
8087
|
-
},
|
|
8095
|
+
}, i = {
|
|
8088
8096
|
className: "section",
|
|
8089
8097
|
begin: /^[^\s]+:/,
|
|
8090
8098
|
end: /$/,
|
|
@@ -8107,12 +8115,12 @@ function Qo(e) {
|
|
|
8107
8115
|
t,
|
|
8108
8116
|
r,
|
|
8109
8117
|
a,
|
|
8110
|
-
|
|
8111
|
-
|
|
8118
|
+
o,
|
|
8119
|
+
i
|
|
8112
8120
|
]
|
|
8113
8121
|
};
|
|
8114
8122
|
}
|
|
8115
|
-
function
|
|
8123
|
+
function es(e) {
|
|
8116
8124
|
const n = e.regex, t = {
|
|
8117
8125
|
begin: /<\/?[A-Za-z_]/,
|
|
8118
8126
|
end: ">",
|
|
@@ -8144,12 +8152,12 @@ function Jo(e) {
|
|
|
8144
8152
|
relevance: 0
|
|
8145
8153
|
}
|
|
8146
8154
|
]
|
|
8147
|
-
},
|
|
8155
|
+
}, o = {
|
|
8148
8156
|
className: "bullet",
|
|
8149
8157
|
begin: "^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",
|
|
8150
8158
|
end: "\\s+",
|
|
8151
8159
|
excludeEnd: !0
|
|
8152
|
-
},
|
|
8160
|
+
}, i = {
|
|
8153
8161
|
begin: /^\[[^\n]+\]:/,
|
|
8154
8162
|
returnBegin: !0,
|
|
8155
8163
|
contains: [{
|
|
@@ -8270,7 +8278,7 @@ function Jo(e) {
|
|
|
8270
8278
|
}]
|
|
8271
8279
|
},
|
|
8272
8280
|
t,
|
|
8273
|
-
|
|
8281
|
+
o,
|
|
8274
8282
|
l,
|
|
8275
8283
|
d,
|
|
8276
8284
|
{
|
|
@@ -8282,7 +8290,7 @@ function Jo(e) {
|
|
|
8282
8290
|
a,
|
|
8283
8291
|
r,
|
|
8284
8292
|
c,
|
|
8285
|
-
|
|
8293
|
+
i,
|
|
8286
8294
|
{
|
|
8287
8295
|
scope: "literal",
|
|
8288
8296
|
match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/
|
|
@@ -8290,7 +8298,7 @@ function Jo(e) {
|
|
|
8290
8298
|
]
|
|
8291
8299
|
};
|
|
8292
8300
|
}
|
|
8293
|
-
function
|
|
8301
|
+
function ns(e) {
|
|
8294
8302
|
const n = {
|
|
8295
8303
|
className: "built_in",
|
|
8296
8304
|
begin: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
|
|
@@ -8519,7 +8527,7 @@ function jo(e) {
|
|
|
8519
8527
|
]
|
|
8520
8528
|
};
|
|
8521
8529
|
}
|
|
8522
|
-
function
|
|
8530
|
+
function ts(e) {
|
|
8523
8531
|
const n = e.regex, t = [
|
|
8524
8532
|
"abs",
|
|
8525
8533
|
"accept",
|
|
@@ -8757,12 +8765,12 @@ function es(e) {
|
|
|
8757
8765
|
], r = /[dualxmsipngr]{0,12}/, a = {
|
|
8758
8766
|
$pattern: /[\w.]+/,
|
|
8759
8767
|
keyword: t.join(" ")
|
|
8760
|
-
},
|
|
8768
|
+
}, o = {
|
|
8761
8769
|
className: "subst",
|
|
8762
8770
|
begin: "[$@]\\{",
|
|
8763
8771
|
end: "\\}",
|
|
8764
8772
|
keywords: a
|
|
8765
|
-
},
|
|
8773
|
+
}, i = {
|
|
8766
8774
|
begin: /->\{/,
|
|
8767
8775
|
end: /\}/
|
|
8768
8776
|
}, c = {
|
|
@@ -8791,7 +8799,7 @@ function es(e) {
|
|
|
8791
8799
|
relevance: 0
|
|
8792
8800
|
}, u = [
|
|
8793
8801
|
e.BACKSLASH_ESCAPE,
|
|
8794
|
-
|
|
8802
|
+
o,
|
|
8795
8803
|
l
|
|
8796
8804
|
], g = [
|
|
8797
8805
|
/!/,
|
|
@@ -8808,7 +8816,7 @@ function es(e) {
|
|
|
8808
8816
|
l,
|
|
8809
8817
|
e.HASH_COMMENT_MODE,
|
|
8810
8818
|
e.COMMENT(/^=\w/, /=cut/, { endsWithParent: !0 }),
|
|
8811
|
-
|
|
8819
|
+
i,
|
|
8812
8820
|
{
|
|
8813
8821
|
className: "string",
|
|
8814
8822
|
contains: u,
|
|
@@ -8935,15 +8943,15 @@ function es(e) {
|
|
|
8935
8943
|
}]
|
|
8936
8944
|
}
|
|
8937
8945
|
];
|
|
8938
|
-
return
|
|
8946
|
+
return o.contains = y, i.contains = y, {
|
|
8939
8947
|
name: "Perl",
|
|
8940
8948
|
aliases: ["pl", "pm"],
|
|
8941
8949
|
keywords: a,
|
|
8942
8950
|
contains: y
|
|
8943
8951
|
};
|
|
8944
8952
|
}
|
|
8945
|
-
function
|
|
8946
|
-
const n = e.regex, t = /(?![A-Za-z0-9])(?![$])/, r = n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, t), a = n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, t),
|
|
8953
|
+
function rs(e) {
|
|
8954
|
+
const n = e.regex, t = /(?![A-Za-z0-9])(?![$])/, r = n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, t), a = n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, t), o = n.concat(/[A-Z]+/, t), i = {
|
|
8947
8955
|
scope: "variable",
|
|
8948
8956
|
match: "\\$+" + r
|
|
8949
8957
|
}, c = {
|
|
@@ -9249,7 +9257,7 @@ function ns(e) {
|
|
|
9249
9257
|
keywords: U,
|
|
9250
9258
|
contains: [
|
|
9251
9259
|
Y,
|
|
9252
|
-
|
|
9260
|
+
i,
|
|
9253
9261
|
re,
|
|
9254
9262
|
e.C_BLOCK_COMMENT_MODE,
|
|
9255
9263
|
y,
|
|
@@ -9277,7 +9285,7 @@ function ns(e) {
|
|
|
9277
9285
|
_,
|
|
9278
9286
|
X
|
|
9279
9287
|
], j = {
|
|
9280
|
-
begin: n.concat(/#\[\s*\\?/, n.either(a,
|
|
9288
|
+
begin: n.concat(/#\[\s*\\?/, n.either(a, o)),
|
|
9281
9289
|
beginScope: "meta",
|
|
9282
9290
|
end: /]/,
|
|
9283
9291
|
endScope: "meta",
|
|
@@ -9298,7 +9306,7 @@ function ns(e) {
|
|
|
9298
9306
|
...le,
|
|
9299
9307
|
{
|
|
9300
9308
|
scope: "meta",
|
|
9301
|
-
variants: [{ match: a }, { match:
|
|
9309
|
+
variants: [{ match: a }, { match: o }]
|
|
9302
9310
|
}
|
|
9303
9311
|
]
|
|
9304
9312
|
};
|
|
@@ -9331,7 +9339,7 @@ function ns(e) {
|
|
|
9331
9339
|
scope: "variable.language",
|
|
9332
9340
|
match: /\$this\b/
|
|
9333
9341
|
},
|
|
9334
|
-
|
|
9342
|
+
i,
|
|
9335
9343
|
de,
|
|
9336
9344
|
re,
|
|
9337
9345
|
{
|
|
@@ -9370,7 +9378,7 @@ function ns(e) {
|
|
|
9370
9378
|
contains: [
|
|
9371
9379
|
"self",
|
|
9372
9380
|
j,
|
|
9373
|
-
|
|
9381
|
+
i,
|
|
9374
9382
|
re,
|
|
9375
9383
|
e.C_BLOCK_COMMENT_MODE,
|
|
9376
9384
|
y,
|
|
@@ -9414,7 +9422,7 @@ function ns(e) {
|
|
|
9414
9422
|
]
|
|
9415
9423
|
};
|
|
9416
9424
|
}
|
|
9417
|
-
function
|
|
9425
|
+
function as(e) {
|
|
9418
9426
|
return {
|
|
9419
9427
|
name: "PHP template",
|
|
9420
9428
|
subLanguage: "xml",
|
|
@@ -9454,14 +9462,14 @@ function ts(e) {
|
|
|
9454
9462
|
}]
|
|
9455
9463
|
};
|
|
9456
9464
|
}
|
|
9457
|
-
function
|
|
9465
|
+
function is(e) {
|
|
9458
9466
|
return {
|
|
9459
9467
|
name: "Plain text",
|
|
9460
9468
|
aliases: ["text", "txt"],
|
|
9461
9469
|
disableAutodetect: !0
|
|
9462
9470
|
};
|
|
9463
9471
|
}
|
|
9464
|
-
function
|
|
9472
|
+
function os(e) {
|
|
9465
9473
|
const n = e.regex, t = new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*", "u"), r = [
|
|
9466
9474
|
"and",
|
|
9467
9475
|
"as",
|
|
@@ -9594,10 +9602,10 @@ function as(e) {
|
|
|
9594
9602
|
"Type",
|
|
9595
9603
|
"Union"
|
|
9596
9604
|
]
|
|
9597
|
-
},
|
|
9605
|
+
}, o = {
|
|
9598
9606
|
className: "meta",
|
|
9599
9607
|
begin: /^(>>>|\.\.\.) /
|
|
9600
|
-
},
|
|
9608
|
+
}, i = {
|
|
9601
9609
|
className: "subst",
|
|
9602
9610
|
begin: /\{/,
|
|
9603
9611
|
end: /\}/,
|
|
@@ -9613,13 +9621,13 @@ function as(e) {
|
|
|
9613
9621
|
{
|
|
9614
9622
|
begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,
|
|
9615
9623
|
end: /'''/,
|
|
9616
|
-
contains: [e.BACKSLASH_ESCAPE,
|
|
9624
|
+
contains: [e.BACKSLASH_ESCAPE, o],
|
|
9617
9625
|
relevance: 10
|
|
9618
9626
|
},
|
|
9619
9627
|
{
|
|
9620
9628
|
begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,
|
|
9621
9629
|
end: /"""/,
|
|
9622
|
-
contains: [e.BACKSLASH_ESCAPE,
|
|
9630
|
+
contains: [e.BACKSLASH_ESCAPE, o],
|
|
9623
9631
|
relevance: 10
|
|
9624
9632
|
},
|
|
9625
9633
|
{
|
|
@@ -9627,9 +9635,9 @@ function as(e) {
|
|
|
9627
9635
|
end: /'''/,
|
|
9628
9636
|
contains: [
|
|
9629
9637
|
e.BACKSLASH_ESCAPE,
|
|
9630
|
-
|
|
9638
|
+
o,
|
|
9631
9639
|
c,
|
|
9632
|
-
|
|
9640
|
+
i
|
|
9633
9641
|
]
|
|
9634
9642
|
},
|
|
9635
9643
|
{
|
|
@@ -9637,9 +9645,9 @@ function as(e) {
|
|
|
9637
9645
|
end: /"""/,
|
|
9638
9646
|
contains: [
|
|
9639
9647
|
e.BACKSLASH_ESCAPE,
|
|
9640
|
-
|
|
9648
|
+
o,
|
|
9641
9649
|
c,
|
|
9642
|
-
|
|
9650
|
+
i
|
|
9643
9651
|
]
|
|
9644
9652
|
},
|
|
9645
9653
|
{
|
|
@@ -9666,7 +9674,7 @@ function as(e) {
|
|
|
9666
9674
|
contains: [
|
|
9667
9675
|
e.BACKSLASH_ESCAPE,
|
|
9668
9676
|
c,
|
|
9669
|
-
|
|
9677
|
+
i
|
|
9670
9678
|
]
|
|
9671
9679
|
},
|
|
9672
9680
|
{
|
|
@@ -9675,7 +9683,7 @@ function as(e) {
|
|
|
9675
9683
|
contains: [
|
|
9676
9684
|
e.BACKSLASH_ESCAPE,
|
|
9677
9685
|
c,
|
|
9678
|
-
|
|
9686
|
+
i
|
|
9679
9687
|
]
|
|
9680
9688
|
},
|
|
9681
9689
|
e.APOS_STRING_MODE,
|
|
@@ -9717,17 +9725,17 @@ function as(e) {
|
|
|
9717
9725
|
keywords: a,
|
|
9718
9726
|
contains: [
|
|
9719
9727
|
"self",
|
|
9720
|
-
|
|
9728
|
+
o,
|
|
9721
9729
|
p,
|
|
9722
9730
|
l,
|
|
9723
9731
|
e.HASH_COMMENT_MODE
|
|
9724
9732
|
]
|
|
9725
9733
|
}]
|
|
9726
9734
|
};
|
|
9727
|
-
return
|
|
9735
|
+
return i.contains = [
|
|
9728
9736
|
l,
|
|
9729
9737
|
p,
|
|
9730
|
-
|
|
9738
|
+
o
|
|
9731
9739
|
], {
|
|
9732
9740
|
name: "Python",
|
|
9733
9741
|
aliases: [
|
|
@@ -9739,7 +9747,7 @@ function as(e) {
|
|
|
9739
9747
|
keywords: a,
|
|
9740
9748
|
illegal: /(<\/|\?)|=>/,
|
|
9741
9749
|
contains: [
|
|
9742
|
-
|
|
9750
|
+
o,
|
|
9743
9751
|
p,
|
|
9744
9752
|
{
|
|
9745
9753
|
scope: "variable.language",
|
|
@@ -9801,7 +9809,7 @@ function as(e) {
|
|
|
9801
9809
|
]
|
|
9802
9810
|
};
|
|
9803
9811
|
}
|
|
9804
|
-
function
|
|
9812
|
+
function ss(e) {
|
|
9805
9813
|
return {
|
|
9806
9814
|
aliases: ["pycon"],
|
|
9807
9815
|
contains: [{
|
|
@@ -9817,8 +9825,8 @@ function is(e) {
|
|
|
9817
9825
|
}]
|
|
9818
9826
|
};
|
|
9819
9827
|
}
|
|
9820
|
-
function
|
|
9821
|
-
const n = e.regex, t = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/), a = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,
|
|
9828
|
+
function ls(e) {
|
|
9829
|
+
const n = e.regex, t = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/), a = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/, o = n.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
9822
9830
|
return {
|
|
9823
9831
|
name: "R",
|
|
9824
9832
|
keywords: {
|
|
@@ -9919,7 +9927,7 @@ function os(e) {
|
|
|
9919
9927
|
1: "punctuation",
|
|
9920
9928
|
2: "number"
|
|
9921
9929
|
},
|
|
9922
|
-
match: [
|
|
9930
|
+
match: [o, r]
|
|
9923
9931
|
},
|
|
9924
9932
|
{
|
|
9925
9933
|
scope: { 2: "number" },
|
|
@@ -9944,7 +9952,7 @@ function os(e) {
|
|
|
9944
9952
|
{
|
|
9945
9953
|
scope: "punctuation",
|
|
9946
9954
|
relevance: 0,
|
|
9947
|
-
match:
|
|
9955
|
+
match: o
|
|
9948
9956
|
},
|
|
9949
9957
|
{
|
|
9950
9958
|
begin: "`",
|
|
@@ -9954,8 +9962,8 @@ function os(e) {
|
|
|
9954
9962
|
]
|
|
9955
9963
|
};
|
|
9956
9964
|
}
|
|
9957
|
-
function
|
|
9958
|
-
const n = e.regex, t = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = n.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), a = n.concat(r, /(::\w+)*/),
|
|
9965
|
+
function cs(e) {
|
|
9966
|
+
const n = e.regex, t = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = n.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), a = n.concat(r, /(::\w+)*/), o = {
|
|
9959
9967
|
"variable.constant": [
|
|
9960
9968
|
"__FILE__",
|
|
9961
9969
|
"__LINE__",
|
|
@@ -10020,16 +10028,16 @@ function ss(e) {
|
|
|
10020
10028
|
"false",
|
|
10021
10029
|
"nil"
|
|
10022
10030
|
]
|
|
10023
|
-
},
|
|
10031
|
+
}, i = {
|
|
10024
10032
|
className: "doctag",
|
|
10025
10033
|
begin: "@[A-Za-z]+"
|
|
10026
10034
|
}, c = {
|
|
10027
10035
|
begin: "#<",
|
|
10028
10036
|
end: ">"
|
|
10029
10037
|
}, l = [
|
|
10030
|
-
e.COMMENT("#", "$", { contains: [
|
|
10038
|
+
e.COMMENT("#", "$", { contains: [i] }),
|
|
10031
10039
|
e.COMMENT("^=begin", "^=end", {
|
|
10032
|
-
contains: [
|
|
10040
|
+
contains: [i],
|
|
10033
10041
|
relevance: 10
|
|
10034
10042
|
}),
|
|
10035
10043
|
e.COMMENT("^__END__", e.MATCH_NOTHING_RE)
|
|
@@ -10037,7 +10045,7 @@ function ss(e) {
|
|
|
10037
10045
|
className: "subst",
|
|
10038
10046
|
begin: /#\{/,
|
|
10039
10047
|
end: /\}/,
|
|
10040
|
-
keywords:
|
|
10048
|
+
keywords: o
|
|
10041
10049
|
}, u = {
|
|
10042
10050
|
className: "string",
|
|
10043
10051
|
contains: [e.BACKSLASH_ESCAPE, d],
|
|
@@ -10118,7 +10126,7 @@ function ss(e) {
|
|
|
10118
10126
|
end: /(?=\))/,
|
|
10119
10127
|
excludeBegin: !0,
|
|
10120
10128
|
endsParent: !0,
|
|
10121
|
-
keywords:
|
|
10129
|
+
keywords: o
|
|
10122
10130
|
}] }, _ = [
|
|
10123
10131
|
u,
|
|
10124
10132
|
{
|
|
@@ -10132,12 +10140,12 @@ function ss(e) {
|
|
|
10132
10140
|
2: "title.class",
|
|
10133
10141
|
4: "title.class.inherited"
|
|
10134
10142
|
},
|
|
10135
|
-
keywords:
|
|
10143
|
+
keywords: o
|
|
10136
10144
|
},
|
|
10137
10145
|
{
|
|
10138
10146
|
match: [/(include|extend)\s+/, a],
|
|
10139
10147
|
scope: { 2: "title.class" },
|
|
10140
|
-
keywords:
|
|
10148
|
+
keywords: o
|
|
10141
10149
|
},
|
|
10142
10150
|
{
|
|
10143
10151
|
relevance: 0,
|
|
@@ -10190,7 +10198,7 @@ function ss(e) {
|
|
|
10190
10198
|
excludeBegin: !0,
|
|
10191
10199
|
excludeEnd: !0,
|
|
10192
10200
|
relevance: 0,
|
|
10193
|
-
keywords:
|
|
10201
|
+
keywords: o
|
|
10194
10202
|
},
|
|
10195
10203
|
{
|
|
10196
10204
|
begin: "(" + e.RE_STARTERS_RE + "|unless)\\s*",
|
|
@@ -10237,7 +10245,7 @@ function ss(e) {
|
|
|
10237
10245
|
begin: "^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",
|
|
10238
10246
|
starts: {
|
|
10239
10247
|
end: "$",
|
|
10240
|
-
keywords:
|
|
10248
|
+
keywords: o,
|
|
10241
10249
|
contains: _
|
|
10242
10250
|
}
|
|
10243
10251
|
}];
|
|
@@ -10250,17 +10258,17 @@ function ss(e) {
|
|
|
10250
10258
|
"thor",
|
|
10251
10259
|
"irb"
|
|
10252
10260
|
],
|
|
10253
|
-
keywords:
|
|
10261
|
+
keywords: o,
|
|
10254
10262
|
illegal: /\/\*/,
|
|
10255
10263
|
contains: [e.SHEBANG({ binary: "ruby" })].concat(S).concat(l).concat(_)
|
|
10256
10264
|
};
|
|
10257
10265
|
}
|
|
10258
|
-
function
|
|
10259
|
-
const n = e.regex, t = /(r#)?/, r = n.concat(t, e.UNDERSCORE_IDENT_RE), a = n.concat(t, e.IDENT_RE),
|
|
10266
|
+
function us(e) {
|
|
10267
|
+
const n = e.regex, t = /(r#)?/, r = n.concat(t, e.UNDERSCORE_IDENT_RE), a = n.concat(t, e.IDENT_RE), o = {
|
|
10260
10268
|
className: "title.function.invoke",
|
|
10261
10269
|
relevance: 0,
|
|
10262
10270
|
begin: n.concat(/\b/, /(?!let|for|while|if|else|match\b)/, a, n.lookahead(/\s*\(/))
|
|
10263
|
-
},
|
|
10271
|
+
}, i = "([ui](8|16|32|64|128|size)|f(32|64))?", c = [
|
|
10264
10272
|
"abstract",
|
|
10265
10273
|
"as",
|
|
10266
10274
|
"async",
|
|
@@ -10444,10 +10452,10 @@ function ls(e) {
|
|
|
10444
10452
|
{
|
|
10445
10453
|
className: "number",
|
|
10446
10454
|
variants: [
|
|
10447
|
-
{ begin: "\\b0b([01_]+)" +
|
|
10448
|
-
{ begin: "\\b0o([0-7_]+)" +
|
|
10449
|
-
{ begin: "\\b0x([A-Fa-f0-9_]+)" +
|
|
10450
|
-
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" +
|
|
10455
|
+
{ begin: "\\b0b([01_]+)" + i },
|
|
10456
|
+
{ begin: "\\b0o([0-7_]+)" + i },
|
|
10457
|
+
{ begin: "\\b0x([A-Fa-f0-9_]+)" + i },
|
|
10458
|
+
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" + i }
|
|
10451
10459
|
],
|
|
10452
10460
|
relevance: 0
|
|
10453
10461
|
},
|
|
@@ -10534,11 +10542,11 @@ function ls(e) {
|
|
|
10534
10542
|
className: "punctuation",
|
|
10535
10543
|
begin: "->"
|
|
10536
10544
|
},
|
|
10537
|
-
|
|
10545
|
+
o
|
|
10538
10546
|
]
|
|
10539
10547
|
};
|
|
10540
10548
|
}
|
|
10541
|
-
var
|
|
10549
|
+
var ds = (e) => ({
|
|
10542
10550
|
IMPORTANT: {
|
|
10543
10551
|
scope: "meta",
|
|
10544
10552
|
begin: "!important"
|
|
@@ -10568,7 +10576,7 @@ var cs = (e) => ({
|
|
|
10568
10576
|
className: "attr",
|
|
10569
10577
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
10570
10578
|
}
|
|
10571
|
-
}),
|
|
10579
|
+
}), ps = [
|
|
10572
10580
|
"a",
|
|
10573
10581
|
"abbr",
|
|
10574
10582
|
"address",
|
|
@@ -10646,7 +10654,7 @@ var cs = (e) => ({
|
|
|
10646
10654
|
"ul",
|
|
10647
10655
|
"var",
|
|
10648
10656
|
"video"
|
|
10649
|
-
],
|
|
10657
|
+
], gs = [
|
|
10650
10658
|
"defs",
|
|
10651
10659
|
"g",
|
|
10652
10660
|
"marker",
|
|
@@ -10688,7 +10696,7 @@ var cs = (e) => ({
|
|
|
10688
10696
|
"tspan",
|
|
10689
10697
|
"foreignObject",
|
|
10690
10698
|
"clipPath"
|
|
10691
|
-
],
|
|
10699
|
+
], ms = [...ps, ...gs], fs = [
|
|
10692
10700
|
"any-hover",
|
|
10693
10701
|
"any-pointer",
|
|
10694
10702
|
"aspect-ratio",
|
|
@@ -10722,7 +10730,7 @@ var cs = (e) => ({
|
|
|
10722
10730
|
"max-width",
|
|
10723
10731
|
"min-height",
|
|
10724
10732
|
"max-height"
|
|
10725
|
-
].sort().reverse(),
|
|
10733
|
+
].sort().reverse(), bs = [
|
|
10726
10734
|
"active",
|
|
10727
10735
|
"any-link",
|
|
10728
10736
|
"blank",
|
|
@@ -10782,7 +10790,7 @@ var cs = (e) => ({
|
|
|
10782
10790
|
"valid",
|
|
10783
10791
|
"visited",
|
|
10784
10792
|
"where"
|
|
10785
|
-
].sort().reverse(),
|
|
10793
|
+
].sort().reverse(), hs = [
|
|
10786
10794
|
"after",
|
|
10787
10795
|
"backdrop",
|
|
10788
10796
|
"before",
|
|
@@ -10797,7 +10805,7 @@ var cs = (e) => ({
|
|
|
10797
10805
|
"selection",
|
|
10798
10806
|
"slotted",
|
|
10799
10807
|
"spelling-error"
|
|
10800
|
-
].sort().reverse(),
|
|
10808
|
+
].sort().reverse(), _s = [
|
|
10801
10809
|
"accent-color",
|
|
10802
10810
|
"align-content",
|
|
10803
10811
|
"align-items",
|
|
@@ -11313,8 +11321,8 @@ var cs = (e) => ({
|
|
|
11313
11321
|
"z-index",
|
|
11314
11322
|
"zoom"
|
|
11315
11323
|
].sort().reverse();
|
|
11316
|
-
function
|
|
11317
|
-
const n =
|
|
11324
|
+
function Es(e) {
|
|
11325
|
+
const n = ds(e), t = hs, r = bs, a = "@[a-z-]+", o = "and or not only", i = {
|
|
11318
11326
|
className: "variable",
|
|
11319
11327
|
begin: "(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",
|
|
11320
11328
|
relevance: 0
|
|
@@ -11340,7 +11348,7 @@ function hs(e) {
|
|
|
11340
11348
|
n.ATTRIBUTE_SELECTOR_MODE,
|
|
11341
11349
|
{
|
|
11342
11350
|
className: "selector-tag",
|
|
11343
|
-
begin: "\\b(" +
|
|
11351
|
+
begin: "\\b(" + ms.join("|") + ")\\b",
|
|
11344
11352
|
relevance: 0
|
|
11345
11353
|
},
|
|
11346
11354
|
{
|
|
@@ -11351,7 +11359,7 @@ function hs(e) {
|
|
|
11351
11359
|
className: "selector-pseudo",
|
|
11352
11360
|
begin: ":(:)?(" + t.join("|") + ")"
|
|
11353
11361
|
},
|
|
11354
|
-
|
|
11362
|
+
i,
|
|
11355
11363
|
{
|
|
11356
11364
|
begin: /\(/,
|
|
11357
11365
|
end: /\)/,
|
|
@@ -11360,7 +11368,7 @@ function hs(e) {
|
|
|
11360
11368
|
n.CSS_VARIABLE,
|
|
11361
11369
|
{
|
|
11362
11370
|
className: "attribute",
|
|
11363
|
-
begin: "\\b(" +
|
|
11371
|
+
begin: "\\b(" + _s.join("|") + ")\\b"
|
|
11364
11372
|
},
|
|
11365
11373
|
{ begin: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" },
|
|
11366
11374
|
{
|
|
@@ -11369,7 +11377,7 @@ function hs(e) {
|
|
|
11369
11377
|
relevance: 0,
|
|
11370
11378
|
contains: [
|
|
11371
11379
|
n.BLOCK_COMMENT,
|
|
11372
|
-
|
|
11380
|
+
i,
|
|
11373
11381
|
n.HEXCOLOR,
|
|
11374
11382
|
n.CSS_NUMBER_MODE,
|
|
11375
11383
|
e.QUOTE_STRING_MODE,
|
|
@@ -11391,8 +11399,8 @@ function hs(e) {
|
|
|
11391
11399
|
returnBegin: !0,
|
|
11392
11400
|
keywords: {
|
|
11393
11401
|
$pattern: /[a-z-]+/,
|
|
11394
|
-
keyword:
|
|
11395
|
-
attribute:
|
|
11402
|
+
keyword: o,
|
|
11403
|
+
attribute: fs.join(" ")
|
|
11396
11404
|
},
|
|
11397
11405
|
contains: [
|
|
11398
11406
|
{
|
|
@@ -11403,7 +11411,7 @@ function hs(e) {
|
|
|
11403
11411
|
begin: /[a-z-]+(?=:)/,
|
|
11404
11412
|
className: "attribute"
|
|
11405
11413
|
},
|
|
11406
|
-
|
|
11414
|
+
i,
|
|
11407
11415
|
e.QUOTE_STRING_MODE,
|
|
11408
11416
|
e.APOS_STRING_MODE,
|
|
11409
11417
|
n.HEXCOLOR,
|
|
@@ -11414,7 +11422,7 @@ function hs(e) {
|
|
|
11414
11422
|
]
|
|
11415
11423
|
};
|
|
11416
11424
|
}
|
|
11417
|
-
function
|
|
11425
|
+
function ys(e) {
|
|
11418
11426
|
return {
|
|
11419
11427
|
name: "Shell Session",
|
|
11420
11428
|
aliases: ["console", "shellsession"],
|
|
@@ -11428,7 +11436,7 @@ function _s(e) {
|
|
|
11428
11436
|
}]
|
|
11429
11437
|
};
|
|
11430
11438
|
}
|
|
11431
|
-
function
|
|
11439
|
+
function vs(e) {
|
|
11432
11440
|
const n = e.regex, t = e.COMMENT("--", "$"), r = {
|
|
11433
11441
|
scope: "string",
|
|
11434
11442
|
variants: [{
|
|
@@ -11440,11 +11448,11 @@ function Es(e) {
|
|
|
11440
11448
|
begin: /"/,
|
|
11441
11449
|
end: /"/,
|
|
11442
11450
|
contains: [{ match: /""/ }]
|
|
11443
|
-
},
|
|
11451
|
+
}, o = [
|
|
11444
11452
|
"true",
|
|
11445
11453
|
"false",
|
|
11446
11454
|
"unknown"
|
|
11447
|
-
],
|
|
11455
|
+
], i = [
|
|
11448
11456
|
"double precision",
|
|
11449
11457
|
"large object",
|
|
11450
11458
|
"with timezone",
|
|
@@ -12003,14 +12011,14 @@ function Es(e) {
|
|
|
12003
12011
|
keywords: {
|
|
12004
12012
|
$pattern: /\b[\w\.]+/,
|
|
12005
12013
|
keyword: U(y, { when: (I) => I.length < 3 }),
|
|
12006
|
-
literal:
|
|
12014
|
+
literal: o,
|
|
12007
12015
|
type: c,
|
|
12008
12016
|
built_in: g
|
|
12009
12017
|
},
|
|
12010
12018
|
contains: [
|
|
12011
12019
|
{
|
|
12012
12020
|
scope: "type",
|
|
12013
|
-
match: v(
|
|
12021
|
+
match: v(i)
|
|
12014
12022
|
},
|
|
12015
12023
|
B,
|
|
12016
12024
|
T,
|
|
@@ -12033,14 +12041,14 @@ function He(e) {
|
|
|
12033
12041
|
function K(...e) {
|
|
12034
12042
|
return e.map((n) => ar(n)).join("");
|
|
12035
12043
|
}
|
|
12036
|
-
function
|
|
12044
|
+
function ws(e) {
|
|
12037
12045
|
const n = e[e.length - 1];
|
|
12038
12046
|
return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
|
|
12039
12047
|
}
|
|
12040
12048
|
function ge(...e) {
|
|
12041
|
-
return "(" + (
|
|
12049
|
+
return "(" + (ws(e).capture ? "" : "?:") + e.map((n) => ar(n)).join("|") + ")";
|
|
12042
12050
|
}
|
|
12043
|
-
var
|
|
12051
|
+
var Gn = (e) => K(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), Ns = ["Protocol", "Type"].map(Gn), Tt = ["init", "self"].map(Gn), Ss = ["Any", "Self"], kn = [
|
|
12044
12052
|
"actor",
|
|
12045
12053
|
"any",
|
|
12046
12054
|
"associatedtype",
|
|
@@ -12135,11 +12143,11 @@ var Kn = (e) => K(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), vs = ["Protocol", "Type
|
|
|
12135
12143
|
"where",
|
|
12136
12144
|
"while",
|
|
12137
12145
|
"willSet"
|
|
12138
|
-
],
|
|
12146
|
+
], At = [
|
|
12139
12147
|
"false",
|
|
12140
12148
|
"nil",
|
|
12141
12149
|
"true"
|
|
12142
|
-
],
|
|
12150
|
+
], ks = [
|
|
12143
12151
|
"assignment",
|
|
12144
12152
|
"associativity",
|
|
12145
12153
|
"higherThan",
|
|
@@ -12147,7 +12155,7 @@ var Kn = (e) => K(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), vs = ["Protocol", "Type
|
|
|
12147
12155
|
"lowerThan",
|
|
12148
12156
|
"none",
|
|
12149
12157
|
"right"
|
|
12150
|
-
],
|
|
12158
|
+
], xs = [
|
|
12151
12159
|
"#colorLiteral",
|
|
12152
12160
|
"#column",
|
|
12153
12161
|
"#dsohandle",
|
|
@@ -12167,7 +12175,7 @@ var Kn = (e) => K(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), vs = ["Protocol", "Type
|
|
|
12167
12175
|
"#selector",
|
|
12168
12176
|
"#sourceLocation",
|
|
12169
12177
|
"#warning"
|
|
12170
|
-
],
|
|
12178
|
+
], Ot = [
|
|
12171
12179
|
"abs",
|
|
12172
12180
|
"all",
|
|
12173
12181
|
"any",
|
|
@@ -12202,7 +12210,7 @@ var Kn = (e) => K(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), vs = ["Protocol", "Type
|
|
|
12202
12210
|
"withVaList",
|
|
12203
12211
|
"withoutActuallyEscaping",
|
|
12204
12212
|
"zip"
|
|
12205
|
-
], ir = ge(/[/=\-+!*%<>&|^~?]/, /[\u00A1-\u00A7]/, /[\u00A9\u00AB]/, /[\u00AC\u00AE]/, /[\u00B0\u00B1]/, /[\u00B6\u00BB\u00BF\u00D7\u00F7]/, /[\u2016-\u2017]/, /[\u2020-\u2027]/, /[\u2030-\u203E]/, /[\u2041-\u2053]/, /[\u2055-\u205E]/, /[\u2190-\u23FF]/, /[\u2500-\u2775]/, /[\u2794-\u2BFF]/, /[\u2E00-\u2E7F]/, /[\u3001-\u3003]/, /[\u3008-\u3020]/, /[\u3030]/), or = ge(ir, /[\u0300-\u036F]/, /[\u1DC0-\u1DFF]/, /[\u20D0-\u20FF]/, /[\uFE00-\uFE0F]/, /[\uFE20-\uFE2F]/), xn = K(ir, or, "*"), sr = ge(/[a-zA-Z_]/, /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, /[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/, /[\u1E00-\u1FFF]/, /[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/, /[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/, /[\u2C00-\u2DFF\u2E80-\u2FFF]/, /[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/, /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, /[\uFE47-\uFEFE\uFF00-\uFFFD]/), dn = ge(sr, /\d/, /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/), we = K(sr, dn, "*"), ln = K(/[A-Z]/, dn, "*"),
|
|
12213
|
+
], ir = ge(/[/=\-+!*%<>&|^~?]/, /[\u00A1-\u00A7]/, /[\u00A9\u00AB]/, /[\u00AC\u00AE]/, /[\u00B0\u00B1]/, /[\u00B6\u00BB\u00BF\u00D7\u00F7]/, /[\u2016-\u2017]/, /[\u2020-\u2027]/, /[\u2030-\u203E]/, /[\u2041-\u2053]/, /[\u2055-\u205E]/, /[\u2190-\u23FF]/, /[\u2500-\u2775]/, /[\u2794-\u2BFF]/, /[\u2E00-\u2E7F]/, /[\u3001-\u3003]/, /[\u3008-\u3020]/, /[\u3030]/), or = ge(ir, /[\u0300-\u036F]/, /[\u1DC0-\u1DFF]/, /[\u20D0-\u20FF]/, /[\uFE00-\uFE0F]/, /[\uFE20-\uFE2F]/), xn = K(ir, or, "*"), sr = ge(/[a-zA-Z_]/, /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, /[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/, /[\u1E00-\u1FFF]/, /[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/, /[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/, /[\u2C00-\u2DFF\u2E80-\u2FFF]/, /[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/, /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, /[\uFE47-\uFEFE\uFF00-\uFFFD]/), dn = ge(sr, /\d/, /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/), we = K(sr, dn, "*"), ln = K(/[A-Z]/, dn, "*"), Ts = [
|
|
12206
12214
|
"attached",
|
|
12207
12215
|
"autoclosure",
|
|
12208
12216
|
K(/convention\(/, ge("swift", "block", "c"), /\)/),
|
|
@@ -12237,7 +12245,7 @@ var Kn = (e) => K(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), vs = ["Protocol", "Type
|
|
|
12237
12245
|
"unknown",
|
|
12238
12246
|
"usableFromInline",
|
|
12239
12247
|
"warn_unqualified_access"
|
|
12240
|
-
],
|
|
12248
|
+
], As = [
|
|
12241
12249
|
"iOS",
|
|
12242
12250
|
"iOSApplicationExtension",
|
|
12243
12251
|
"macOS",
|
|
@@ -12250,33 +12258,33 @@ var Kn = (e) => K(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), vs = ["Protocol", "Type
|
|
|
12250
12258
|
"tvOSApplicationExtension",
|
|
12251
12259
|
"swift"
|
|
12252
12260
|
];
|
|
12253
|
-
function
|
|
12261
|
+
function Os(e) {
|
|
12254
12262
|
const n = {
|
|
12255
12263
|
match: /\s+/,
|
|
12256
12264
|
relevance: 0
|
|
12257
12265
|
}, t = e.COMMENT("/\\*", "\\*/", { contains: ["self"] }), r = [e.C_LINE_COMMENT_MODE, t], a = {
|
|
12258
|
-
match: [/\./, ge(...
|
|
12266
|
+
match: [/\./, ge(...Ns, ...Tt)],
|
|
12259
12267
|
className: { 2: "keyword" }
|
|
12260
|
-
},
|
|
12268
|
+
}, o = {
|
|
12261
12269
|
match: K(/\./, ge(...kn)),
|
|
12262
12270
|
relevance: 0
|
|
12263
|
-
},
|
|
12271
|
+
}, i = kn.filter(($) => typeof $ == "string").concat(["_|0"]), c = { variants: [{
|
|
12264
12272
|
className: "keyword",
|
|
12265
|
-
match: ge(...kn.filter(($) => typeof $ != "string").concat(
|
|
12273
|
+
match: ge(...kn.filter(($) => typeof $ != "string").concat(Ss).map(Gn), ...Tt)
|
|
12266
12274
|
}] }, l = {
|
|
12267
12275
|
$pattern: ge(/\b\w+/, /#\w+/),
|
|
12268
|
-
keyword:
|
|
12269
|
-
literal:
|
|
12276
|
+
keyword: i.concat(xs),
|
|
12277
|
+
literal: At
|
|
12270
12278
|
}, d = [
|
|
12271
12279
|
a,
|
|
12272
|
-
|
|
12280
|
+
o,
|
|
12273
12281
|
c
|
|
12274
12282
|
], u = [{
|
|
12275
|
-
match: K(/\./, ge(...
|
|
12283
|
+
match: K(/\./, ge(...Ot)),
|
|
12276
12284
|
relevance: 0
|
|
12277
12285
|
}, {
|
|
12278
12286
|
className: "built_in",
|
|
12279
|
-
match: K(/\b/, ge(...
|
|
12287
|
+
match: K(/\b/, ge(...Ot), /(?=\()/)
|
|
12280
12288
|
}], g = {
|
|
12281
12289
|
match: /->/,
|
|
12282
12290
|
relevance: 0
|
|
@@ -12373,7 +12381,7 @@ function Ts(e) {
|
|
|
12373
12381
|
starts: { contains: [{
|
|
12374
12382
|
begin: /\(/,
|
|
12375
12383
|
end: /\)/,
|
|
12376
|
-
keywords:
|
|
12384
|
+
keywords: As,
|
|
12377
12385
|
contains: [
|
|
12378
12386
|
...p,
|
|
12379
12387
|
_,
|
|
@@ -12383,7 +12391,7 @@ function Ts(e) {
|
|
|
12383
12391
|
},
|
|
12384
12392
|
{
|
|
12385
12393
|
scope: "keyword",
|
|
12386
|
-
match: K(/@/, ge(...
|
|
12394
|
+
match: K(/@/, ge(...Ts), He(ge(/\(/, /\s+/)))
|
|
12387
12395
|
},
|
|
12388
12396
|
{
|
|
12389
12397
|
scope: "meta",
|
|
@@ -12530,7 +12538,7 @@ function Ts(e) {
|
|
|
12530
12538
|
3: "title"
|
|
12531
12539
|
},
|
|
12532
12540
|
contains: [j],
|
|
12533
|
-
keywords: [...
|
|
12541
|
+
keywords: [...ks, ...At],
|
|
12534
12542
|
end: /}/
|
|
12535
12543
|
}, Ne = {
|
|
12536
12544
|
match: [
|
|
@@ -12756,14 +12764,14 @@ var pn = "[A-Za-z$_][0-9A-Za-z$_]*", lr = [
|
|
|
12756
12764
|
"module",
|
|
12757
12765
|
"global"
|
|
12758
12766
|
], mr = [].concat(pr, ur, dr);
|
|
12759
|
-
function
|
|
12767
|
+
function Cs(e) {
|
|
12760
12768
|
const n = e.regex, t = (w, { after: z }) => {
|
|
12761
12769
|
const ce = "</" + w[0].slice(1);
|
|
12762
12770
|
return w.input.indexOf(ce, z) !== -1;
|
|
12763
12771
|
}, r = pn, a = {
|
|
12764
12772
|
begin: "<>",
|
|
12765
12773
|
end: "</>"
|
|
12766
|
-
},
|
|
12774
|
+
}, o = /<[A-Za-z0-9\\._:-]+\s*\/>/, i = {
|
|
12767
12775
|
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
12768
12776
|
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
12769
12777
|
isTrulyOpeningTag: (w, z) => {
|
|
@@ -13094,17 +13102,17 @@ function As(e) {
|
|
|
13094
13102
|
begin: a.begin,
|
|
13095
13103
|
end: a.end
|
|
13096
13104
|
},
|
|
13097
|
-
{ match:
|
|
13105
|
+
{ match: o },
|
|
13098
13106
|
{
|
|
13099
|
-
begin:
|
|
13100
|
-
"on:begin":
|
|
13101
|
-
end:
|
|
13107
|
+
begin: i.begin,
|
|
13108
|
+
"on:begin": i.isTrulyOpeningTag,
|
|
13109
|
+
end: i.end
|
|
13102
13110
|
}
|
|
13103
13111
|
],
|
|
13104
13112
|
subLanguage: "xml",
|
|
13105
13113
|
contains: [{
|
|
13106
|
-
begin:
|
|
13107
|
-
end:
|
|
13114
|
+
begin: i.begin,
|
|
13115
|
+
end: i.end,
|
|
13108
13116
|
skip: !0,
|
|
13109
13117
|
contains: ["self"]
|
|
13110
13118
|
}]
|
|
@@ -13144,8 +13152,8 @@ function As(e) {
|
|
|
13144
13152
|
]
|
|
13145
13153
|
};
|
|
13146
13154
|
}
|
|
13147
|
-
function
|
|
13148
|
-
const n = e.regex, t =
|
|
13155
|
+
function Rs(e) {
|
|
13156
|
+
const n = e.regex, t = Cs(e), r = pn, a = [
|
|
13149
13157
|
"any",
|
|
13150
13158
|
"void",
|
|
13151
13159
|
"number",
|
|
@@ -13156,7 +13164,7 @@ function Os(e) {
|
|
|
13156
13164
|
"symbol",
|
|
13157
13165
|
"bigint",
|
|
13158
13166
|
"unknown"
|
|
13159
|
-
],
|
|
13167
|
+
], o = {
|
|
13160
13168
|
begin: [
|
|
13161
13169
|
/namespace/,
|
|
13162
13170
|
/\s+/,
|
|
@@ -13166,7 +13174,7 @@ function Os(e) {
|
|
|
13166
13174
|
1: "keyword",
|
|
13167
13175
|
3: "title.class"
|
|
13168
13176
|
}
|
|
13169
|
-
},
|
|
13177
|
+
}, i = {
|
|
13170
13178
|
beginKeywords: "interface",
|
|
13171
13179
|
end: /\{/,
|
|
13172
13180
|
excludeEnd: !0,
|
|
@@ -13214,8 +13222,8 @@ function Os(e) {
|
|
|
13214
13222
|
p
|
|
13215
13223
|
]), t.contains = t.contains.concat([
|
|
13216
13224
|
d,
|
|
13217
|
-
i,
|
|
13218
13225
|
o,
|
|
13226
|
+
i,
|
|
13219
13227
|
p
|
|
13220
13228
|
]), u(t, "shebang", e.SHEBANG()), u(t, "use_strict", c);
|
|
13221
13229
|
const m = t.contains.find((y) => y.label === "func.def");
|
|
@@ -13229,7 +13237,7 @@ function Os(e) {
|
|
|
13229
13237
|
]
|
|
13230
13238
|
}), t;
|
|
13231
13239
|
}
|
|
13232
|
-
function
|
|
13240
|
+
function Ms(e) {
|
|
13233
13241
|
const n = e.regex, t = {
|
|
13234
13242
|
className: "string",
|
|
13235
13243
|
begin: /"(""|[^/n])"C\b/
|
|
@@ -13239,13 +13247,13 @@ function Cs(e) {
|
|
|
13239
13247
|
end: /"/,
|
|
13240
13248
|
illegal: /\n/,
|
|
13241
13249
|
contains: [{ begin: /""/ }]
|
|
13242
|
-
}, a = /\d{1,2}\/\d{1,2}\/\d{4}/,
|
|
13250
|
+
}, a = /\d{1,2}\/\d{1,2}\/\d{4}/, o = /\d{4}-\d{1,2}-\d{1,2}/, i = /(\d|1[012])(:\d+){0,2} *(AM|PM)/, c = /\d{1,2}(:\d{1,2}){1,2}/, l = {
|
|
13243
13251
|
className: "literal",
|
|
13244
13252
|
variants: [
|
|
13245
|
-
{ begin: n.concat(/# */, n.either(
|
|
13253
|
+
{ begin: n.concat(/# */, n.either(o, a), / *#/) },
|
|
13246
13254
|
{ begin: n.concat(/# */, c, / *#/) },
|
|
13247
|
-
{ begin: n.concat(/# */,
|
|
13248
|
-
{ begin: n.concat(/# */, n.either(
|
|
13255
|
+
{ begin: n.concat(/# */, i, / *#/) },
|
|
13256
|
+
{ begin: n.concat(/# */, n.either(o, a), / +/, n.either(i, c), / *#/) }
|
|
13249
13257
|
]
|
|
13250
13258
|
}, d = {
|
|
13251
13259
|
className: "number",
|
|
@@ -13295,7 +13303,7 @@ function Cs(e) {
|
|
|
13295
13303
|
]
|
|
13296
13304
|
};
|
|
13297
13305
|
}
|
|
13298
|
-
function
|
|
13306
|
+
function Is(e) {
|
|
13299
13307
|
e.regex;
|
|
13300
13308
|
const n = e.COMMENT(/\(;/, /;\)/);
|
|
13301
13309
|
return n.contains.push("self"), {
|
|
@@ -13401,18 +13409,18 @@ function Rs(e) {
|
|
|
13401
13409
|
]
|
|
13402
13410
|
};
|
|
13403
13411
|
}
|
|
13404
|
-
function
|
|
13412
|
+
function Ds(e) {
|
|
13405
13413
|
const n = e.regex, t = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, a = {
|
|
13406
13414
|
className: "symbol",
|
|
13407
13415
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
13408
|
-
},
|
|
13416
|
+
}, o = {
|
|
13409
13417
|
begin: /\s/,
|
|
13410
13418
|
contains: [{
|
|
13411
13419
|
className: "keyword",
|
|
13412
13420
|
begin: /#?[a-z_][a-z1-9_-]+/,
|
|
13413
13421
|
illegal: /\n/
|
|
13414
13422
|
}]
|
|
13415
|
-
},
|
|
13423
|
+
}, i = e.inherit(o, {
|
|
13416
13424
|
begin: /\(/,
|
|
13417
13425
|
end: /\)/
|
|
13418
13426
|
}), c = e.inherit(e.APOS_STRING_MODE, { className: "string" }), l = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), d = {
|
|
@@ -13468,10 +13476,10 @@ function Ms(e) {
|
|
|
13468
13476
|
end: />/,
|
|
13469
13477
|
relevance: 10,
|
|
13470
13478
|
contains: [
|
|
13471
|
-
|
|
13479
|
+
o,
|
|
13472
13480
|
l,
|
|
13473
13481
|
c,
|
|
13474
|
-
|
|
13482
|
+
i,
|
|
13475
13483
|
{
|
|
13476
13484
|
begin: /\[/,
|
|
13477
13485
|
end: /\]/,
|
|
@@ -13480,8 +13488,8 @@ function Ms(e) {
|
|
|
13480
13488
|
begin: /<![a-z]/,
|
|
13481
13489
|
end: />/,
|
|
13482
13490
|
contains: [
|
|
13483
|
-
i,
|
|
13484
13491
|
o,
|
|
13492
|
+
i,
|
|
13485
13493
|
l,
|
|
13486
13494
|
c
|
|
13487
13495
|
]
|
|
@@ -13564,7 +13572,7 @@ function Ms(e) {
|
|
|
13564
13572
|
]
|
|
13565
13573
|
};
|
|
13566
13574
|
}
|
|
13567
|
-
function
|
|
13575
|
+
function Ls(e) {
|
|
13568
13576
|
const n = "true false yes no null", t = "[\\w#;/?:@&=+$,.~*'()[\\]]+", r = {
|
|
13569
13577
|
className: "attr",
|
|
13570
13578
|
variants: [
|
|
@@ -13581,7 +13589,7 @@ function Is(e) {
|
|
|
13581
13589
|
begin: /%\{/,
|
|
13582
13590
|
end: /\}/
|
|
13583
13591
|
}]
|
|
13584
|
-
},
|
|
13592
|
+
}, o = {
|
|
13585
13593
|
className: "string",
|
|
13586
13594
|
relevance: 0,
|
|
13587
13595
|
begin: /'/,
|
|
@@ -13591,7 +13599,7 @@ function Is(e) {
|
|
|
13591
13599
|
scope: "char.escape",
|
|
13592
13600
|
relevance: 0
|
|
13593
13601
|
}]
|
|
13594
|
-
},
|
|
13602
|
+
}, i = {
|
|
13595
13603
|
className: "string",
|
|
13596
13604
|
relevance: 0,
|
|
13597
13605
|
variants: [{
|
|
@@ -13599,7 +13607,7 @@ function Is(e) {
|
|
|
13599
13607
|
end: /"/
|
|
13600
13608
|
}, { begin: /\S+/ }],
|
|
13601
13609
|
contains: [e.BACKSLASH_ESCAPE, a]
|
|
13602
|
-
}, c = e.inherit(
|
|
13610
|
+
}, c = e.inherit(i, { variants: [
|
|
13603
13611
|
{
|
|
13604
13612
|
begin: /'/,
|
|
13605
13613
|
end: /'/,
|
|
@@ -13695,8 +13703,8 @@ function Is(e) {
|
|
|
13695
13703
|
},
|
|
13696
13704
|
u,
|
|
13697
13705
|
g,
|
|
13698
|
-
|
|
13699
|
-
|
|
13706
|
+
o,
|
|
13707
|
+
i
|
|
13700
13708
|
], m = [...p];
|
|
13701
13709
|
return m.pop(), m.push(c), d.contains = m, {
|
|
13702
13710
|
name: "YAML",
|
|
@@ -13705,45 +13713,45 @@ function Is(e) {
|
|
|
13705
13713
|
contains: p
|
|
13706
13714
|
};
|
|
13707
13715
|
}
|
|
13708
|
-
var
|
|
13709
|
-
arduino:
|
|
13710
|
-
bash:
|
|
13711
|
-
c:
|
|
13712
|
-
cpp:
|
|
13713
|
-
csharp:
|
|
13714
|
-
css:
|
|
13715
|
-
diff:
|
|
13716
|
-
go:
|
|
13717
|
-
graphql:
|
|
13718
|
-
ini:
|
|
13719
|
-
java:
|
|
13720
|
-
javascript:
|
|
13721
|
-
json:
|
|
13722
|
-
kotlin:
|
|
13723
|
-
less:
|
|
13724
|
-
lua:
|
|
13725
|
-
makefile:
|
|
13726
|
-
markdown:
|
|
13727
|
-
objectivec:
|
|
13728
|
-
perl:
|
|
13729
|
-
php:
|
|
13730
|
-
"php-template":
|
|
13731
|
-
plaintext:
|
|
13732
|
-
python:
|
|
13733
|
-
"python-repl":
|
|
13734
|
-
r:
|
|
13735
|
-
ruby:
|
|
13736
|
-
rust:
|
|
13737
|
-
scss:
|
|
13738
|
-
shell:
|
|
13739
|
-
sql:
|
|
13740
|
-
swift:
|
|
13741
|
-
typescript:
|
|
13742
|
-
vbnet:
|
|
13743
|
-
wasm:
|
|
13744
|
-
xml:
|
|
13745
|
-
yaml:
|
|
13746
|
-
},
|
|
13716
|
+
var Ps = {
|
|
13717
|
+
arduino: ho,
|
|
13718
|
+
bash: _o,
|
|
13719
|
+
c: Eo,
|
|
13720
|
+
cpp: yo,
|
|
13721
|
+
csharp: vo,
|
|
13722
|
+
css: Co,
|
|
13723
|
+
diff: Ro,
|
|
13724
|
+
go: Mo,
|
|
13725
|
+
graphql: Io,
|
|
13726
|
+
ini: Do,
|
|
13727
|
+
java: Lo,
|
|
13728
|
+
javascript: zo,
|
|
13729
|
+
json: $o,
|
|
13730
|
+
kotlin: Ko,
|
|
13731
|
+
less: Qo,
|
|
13732
|
+
lua: Jo,
|
|
13733
|
+
makefile: jo,
|
|
13734
|
+
markdown: es,
|
|
13735
|
+
objectivec: ns,
|
|
13736
|
+
perl: ts,
|
|
13737
|
+
php: rs,
|
|
13738
|
+
"php-template": as,
|
|
13739
|
+
plaintext: is,
|
|
13740
|
+
python: os,
|
|
13741
|
+
"python-repl": ss,
|
|
13742
|
+
r: ls,
|
|
13743
|
+
ruby: cs,
|
|
13744
|
+
rust: us,
|
|
13745
|
+
scss: Es,
|
|
13746
|
+
shell: ys,
|
|
13747
|
+
sql: vs,
|
|
13748
|
+
swift: Os,
|
|
13749
|
+
typescript: Rs,
|
|
13750
|
+
vbnet: Ms,
|
|
13751
|
+
wasm: Is,
|
|
13752
|
+
xml: Ds,
|
|
13753
|
+
yaml: Ls
|
|
13754
|
+
}, Bs = /* @__PURE__ */ We(((e, n) => {
|
|
13747
13755
|
function t(s) {
|
|
13748
13756
|
return s instanceof Map ? s.clear = s.delete = s.set = function() {
|
|
13749
13757
|
throw new Error("map is read-only");
|
|
@@ -13765,14 +13773,14 @@ var Ds = {
|
|
|
13765
13773
|
function a(s) {
|
|
13766
13774
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
13767
13775
|
}
|
|
13768
|
-
function
|
|
13776
|
+
function o(s, ...f) {
|
|
13769
13777
|
const N = /* @__PURE__ */ Object.create(null);
|
|
13770
13778
|
for (const L in s) N[L] = s[L];
|
|
13771
13779
|
return f.forEach(function(L) {
|
|
13772
13780
|
for (const Q in L) N[Q] = L[Q];
|
|
13773
13781
|
}), N;
|
|
13774
13782
|
}
|
|
13775
|
-
var
|
|
13783
|
+
var i = "</span>", c = (s) => !!s.scope, l = (s, { prefix: f }) => {
|
|
13776
13784
|
if (s.startsWith("language:")) return s.replace("language:", "language-");
|
|
13777
13785
|
if (s.includes(".")) {
|
|
13778
13786
|
const N = s.split(".");
|
|
@@ -13792,7 +13800,7 @@ var Ds = {
|
|
|
13792
13800
|
this.span(f);
|
|
13793
13801
|
}
|
|
13794
13802
|
closeNode(s) {
|
|
13795
|
-
c(s) && (this.buffer +=
|
|
13803
|
+
c(s) && (this.buffer += i);
|
|
13796
13804
|
}
|
|
13797
13805
|
value() {
|
|
13798
13806
|
return this.buffer;
|
|
@@ -13913,7 +13921,7 @@ var Ds = {
|
|
|
13913
13921
|
}
|
|
13914
13922
|
var re = /\b\B/, Y = "[a-zA-Z]\\w*", ie = "[a-zA-Z_]\\w*", de = "\\b\\d+(\\.\\d+)?", le = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", j = "\\b(0b[01]+)", oe = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Z = (s = {}) => {
|
|
13915
13923
|
const f = /^#![ ]*\//;
|
|
13916
|
-
return s.binary && (s.begin = T(f, /.*\b/, s.binary, /\b.*/)),
|
|
13924
|
+
return s.binary && (s.begin = T(f, /.*\b/, s.binary, /\b.*/)), o({
|
|
13917
13925
|
scope: "meta",
|
|
13918
13926
|
begin: f,
|
|
13919
13927
|
end: /$/,
|
|
@@ -13938,7 +13946,7 @@ var Ds = {
|
|
|
13938
13946
|
illegal: "\\n",
|
|
13939
13947
|
contains: [C]
|
|
13940
13948
|
}, ce = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, me = function(s, f, N = {}) {
|
|
13941
|
-
const L =
|
|
13949
|
+
const L = o({
|
|
13942
13950
|
scope: "comment",
|
|
13943
13951
|
begin: s,
|
|
13944
13952
|
end: f,
|
|
@@ -14066,10 +14074,10 @@ var Ds = {
|
|
|
14066
14074
|
"list",
|
|
14067
14075
|
"value"
|
|
14068
14076
|
], Ar = "keyword";
|
|
14069
|
-
function
|
|
14077
|
+
function Kn(s, f, N = Ar) {
|
|
14070
14078
|
const L = /* @__PURE__ */ Object.create(null);
|
|
14071
14079
|
return typeof s == "string" ? Q(N, s.split(" ")) : Array.isArray(s) ? Q(N, s) : Object.keys(s).forEach(function(J) {
|
|
14072
|
-
Object.assign(L,
|
|
14080
|
+
Object.assign(L, Kn(s[J], f, J));
|
|
14073
14081
|
}), L;
|
|
14074
14082
|
function Q(J, x) {
|
|
14075
14083
|
f && (x = x.map((k) => k.toLowerCase())), x.forEach(function(k) {
|
|
@@ -14084,14 +14092,14 @@ var Ds = {
|
|
|
14084
14092
|
function Cr(s) {
|
|
14085
14093
|
return Tr.includes(s.toLowerCase());
|
|
14086
14094
|
}
|
|
14087
|
-
var
|
|
14095
|
+
var Hn = {}, Oe = (s) => {
|
|
14088
14096
|
console.error(s);
|
|
14089
|
-
},
|
|
14097
|
+
}, qn = (s, ...f) => {
|
|
14090
14098
|
`${s}`, [...f];
|
|
14091
14099
|
}, De = (s, f) => {
|
|
14092
|
-
|
|
14100
|
+
Hn[`${s}/${f}`] || (`${s}${f}`, Hn[`${s}/${f}`] = !0);
|
|
14093
14101
|
}, Ve = /* @__PURE__ */ new Error();
|
|
14094
|
-
function
|
|
14102
|
+
function Wn(s, f, { key: N }) {
|
|
14095
14103
|
let L = 0;
|
|
14096
14104
|
const Q = s[N], J = {}, x = {};
|
|
14097
14105
|
for (let k = 1; k <= f.length; k++)
|
|
@@ -14104,7 +14112,7 @@ var Ds = {
|
|
|
14104
14112
|
throw Oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ve;
|
|
14105
14113
|
if (typeof s.beginScope != "object" || s.beginScope === null)
|
|
14106
14114
|
throw Oe("beginScope must be object"), Ve;
|
|
14107
|
-
|
|
14115
|
+
Wn(s, s.begin, { key: "beginScope" }), s.begin = te(s.begin, { joinWith: "" });
|
|
14108
14116
|
}
|
|
14109
14117
|
}
|
|
14110
14118
|
function Mr(s) {
|
|
@@ -14113,7 +14121,7 @@ var Ds = {
|
|
|
14113
14121
|
throw Oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ve;
|
|
14114
14122
|
if (typeof s.endScope != "object" || s.endScope === null)
|
|
14115
14123
|
throw Oe("endScope must be object"), Ve;
|
|
14116
|
-
|
|
14124
|
+
Wn(s, s.end, { key: "endScope" }), s.end = te(s.end, { joinWith: "" });
|
|
14117
14125
|
}
|
|
14118
14126
|
}
|
|
14119
14127
|
function Ir(s) {
|
|
@@ -14196,28 +14204,28 @@ var Ds = {
|
|
|
14196
14204
|
kr
|
|
14197
14205
|
].forEach((ee) => ee(x, k)), x.isCompiled = !0;
|
|
14198
14206
|
let se = null;
|
|
14199
|
-
return typeof x.keywords == "object" && x.keywords.$pattern && (x.keywords = Object.assign({}, x.keywords), se = x.keywords.$pattern, delete x.keywords.$pattern), se = se || /\w+/, x.keywords && (x.keywords =
|
|
14207
|
+
return typeof x.keywords == "object" && x.keywords.$pattern && (x.keywords = Object.assign({}, x.keywords), se = x.keywords.$pattern, delete x.keywords.$pattern), se = se || /\w+/, x.keywords && (x.keywords = Kn(x.keywords, s.case_insensitive)), R.keywordPatternRe = f(se, !0), k && (x.begin || (x.begin = /\B|\b/), R.beginRe = f(R.begin), !x.end && !x.endsWithParent && (x.end = /\B|\b/), x.end && (R.endRe = f(R.end)), R.terminatorEnd = m(R.end) || "", x.endsWithParent && k.terminatorEnd && (R.terminatorEnd += (x.end ? "|" : "") + k.terminatorEnd)), x.illegal && (R.illegalRe = f(x.illegal)), x.contains || (x.contains = []), x.contains = [].concat(...x.contains.map(function(ee) {
|
|
14200
14208
|
return Pr(ee === "self" ? x : ee);
|
|
14201
14209
|
})), x.contains.forEach(function(ee) {
|
|
14202
14210
|
J(ee, R);
|
|
14203
14211
|
}), x.starts && J(x.starts, k), R.matcher = Q(R), R;
|
|
14204
14212
|
}
|
|
14205
14213
|
if (s.compilerExtensions || (s.compilerExtensions = []), s.contains && s.contains.includes("self")) throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
14206
|
-
return s.classNameAliases =
|
|
14214
|
+
return s.classNameAliases = o(s.classNameAliases || {}), J(s);
|
|
14207
14215
|
}
|
|
14208
|
-
function
|
|
14209
|
-
return s ? s.endsWithParent ||
|
|
14216
|
+
function Zn(s) {
|
|
14217
|
+
return s ? s.endsWithParent || Zn(s.starts) : !1;
|
|
14210
14218
|
}
|
|
14211
14219
|
function Pr(s) {
|
|
14212
14220
|
return s.variants && !s.cachedVariants && (s.cachedVariants = s.variants.map(function(f) {
|
|
14213
|
-
return
|
|
14214
|
-
})), s.cachedVariants ? s.cachedVariants :
|
|
14221
|
+
return o(s, { variants: null }, f);
|
|
14222
|
+
})), s.cachedVariants ? s.cachedVariants : Zn(s) ? o(s, { starts: s.starts ? o(s.starts) : null }) : Object.isFrozen(s) ? o(s) : s;
|
|
14215
14223
|
}
|
|
14216
14224
|
var Br = "11.11.1", Ur = class extends Error {
|
|
14217
14225
|
constructor(s, f) {
|
|
14218
14226
|
super(s), this.name = "HTMLInjectionError", this.html = f;
|
|
14219
14227
|
}
|
|
14220
|
-
}, bn = a,
|
|
14228
|
+
}, bn = a, Yn = o, Vn = /* @__PURE__ */ Symbol("nomatch"), Fr = 7, Xn = function(s) {
|
|
14221
14229
|
const f = /* @__PURE__ */ Object.create(null), N = /* @__PURE__ */ Object.create(null), L = [];
|
|
14222
14230
|
let Q = !0;
|
|
14223
14231
|
const J = "Could not find the language '{}', did you forget to load/include a language module?", x = {
|
|
@@ -14244,7 +14252,7 @@ var Ds = {
|
|
|
14244
14252
|
const F = k.languageDetectRe.exec(O);
|
|
14245
14253
|
if (F) {
|
|
14246
14254
|
const H = Te(F[1]);
|
|
14247
|
-
return H || (
|
|
14255
|
+
return H || (qn(J.replace("{}", F[1])), qn("Falling back to no-highlight mode for this block.", h)), H ? F[1] : "no-highlight";
|
|
14248
14256
|
}
|
|
14249
14257
|
return O.split(/\s+/).find((H) => R(H) || Te(H));
|
|
14250
14258
|
}
|
|
@@ -14296,7 +14304,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14296
14304
|
ue.addText(q);
|
|
14297
14305
|
return;
|
|
14298
14306
|
}
|
|
14299
|
-
E = Ge(M.subLanguage, q, !0,
|
|
14307
|
+
E = Ge(M.subLanguage, q, !0, at[M.subLanguage]), at[M.subLanguage] = E._top;
|
|
14300
14308
|
} else E = _n(q, M.subLanguage.length ? M.subLanguage : null);
|
|
14301
14309
|
M.relevance > 0 && (en += E.relevance), ue.__addSublanguage(E._emitter, E.language);
|
|
14302
14310
|
}
|
|
@@ -14306,7 +14314,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14306
14314
|
function Je(E, A) {
|
|
14307
14315
|
E !== "" && (ue.startScope(A), ue.addText(E), ue.endScope());
|
|
14308
14316
|
}
|
|
14309
|
-
function
|
|
14317
|
+
function et(E, A) {
|
|
14310
14318
|
let P = 1;
|
|
14311
14319
|
const G = A.length - 1;
|
|
14312
14320
|
for (; P <= G; ) {
|
|
@@ -14318,10 +14326,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14318
14326
|
pe ? Je(xe, pe) : (q = xe, Se(), q = ""), P++;
|
|
14319
14327
|
}
|
|
14320
14328
|
}
|
|
14321
|
-
function
|
|
14322
|
-
return E.scope && typeof E.scope == "string" && ue.openNode(ve.classNameAliases[E.scope] || E.scope), E.beginScope && (E.beginScope._wrap ? (Je(q, ve.classNameAliases[E.beginScope._wrap] || E.beginScope._wrap), q = "") : E.beginScope._multi && (
|
|
14329
|
+
function nt(E, A) {
|
|
14330
|
+
return E.scope && typeof E.scope == "string" && ue.openNode(ve.classNameAliases[E.scope] || E.scope), E.beginScope && (E.beginScope._wrap ? (Je(q, ve.classNameAliases[E.beginScope._wrap] || E.beginScope._wrap), q = "") : E.beginScope._multi && (et(E.beginScope, A), q = "")), M = Object.create(E, { parent: { value: M } }), M;
|
|
14323
14331
|
}
|
|
14324
|
-
function
|
|
14332
|
+
function tt(E, A, P) {
|
|
14325
14333
|
let G = I(E.endRe, P);
|
|
14326
14334
|
if (G) {
|
|
14327
14335
|
if (E["on:end"]) {
|
|
@@ -14333,7 +14341,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14333
14341
|
return E;
|
|
14334
14342
|
}
|
|
14335
14343
|
}
|
|
14336
|
-
if (E.endsWithParent) return
|
|
14344
|
+
if (E.endsWithParent) return tt(E.parent, A, P);
|
|
14337
14345
|
}
|
|
14338
14346
|
function Qr(E) {
|
|
14339
14347
|
return M.matcher.regexIndex === 0 ? (q += E[0], 1) : (wn = !0, 0);
|
|
@@ -14343,17 +14351,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14343
14351
|
for (const xe of pe)
|
|
14344
14352
|
if (xe && (xe(E, G), G.isMatchIgnored))
|
|
14345
14353
|
return Qr(A);
|
|
14346
|
-
return P.skip ? q += A : (P.excludeBegin && (q += A), Ee(), !P.returnBegin && !P.excludeBegin && (q = A)),
|
|
14354
|
+
return P.skip ? q += A : (P.excludeBegin && (q += A), Ee(), !P.returnBegin && !P.excludeBegin && (q = A)), nt(P, E), P.returnBegin ? 0 : A.length;
|
|
14347
14355
|
}
|
|
14348
14356
|
function jr(E) {
|
|
14349
|
-
const A = E[0], P = O.substring(E.index), G =
|
|
14350
|
-
if (!G) return
|
|
14357
|
+
const A = E[0], P = O.substring(E.index), G = tt(M, E, P);
|
|
14358
|
+
if (!G) return Vn;
|
|
14351
14359
|
const pe = M;
|
|
14352
|
-
M.endScope && M.endScope._wrap ? (Ee(), Je(A, M.endScope._wrap)) : M.endScope && M.endScope._multi ? (Ee(),
|
|
14360
|
+
M.endScope && M.endScope._wrap ? (Ee(), Je(A, M.endScope._wrap)) : M.endScope && M.endScope._multi ? (Ee(), et(M.endScope, E)) : pe.skip ? q += A : (pe.returnEnd || pe.excludeEnd || (q += A), Ee(), pe.excludeEnd && (q = A));
|
|
14353
14361
|
do
|
|
14354
14362
|
M.scope && ue.closeNode(), !M.skip && !M.subLanguage && (en += M.relevance), M = M.parent;
|
|
14355
14363
|
while (M !== G.parent);
|
|
14356
|
-
return G.starts &&
|
|
14364
|
+
return G.starts && nt(G.starts, E), pe.returnEnd ? 0 : A.length;
|
|
14357
14365
|
}
|
|
14358
14366
|
function ea() {
|
|
14359
14367
|
const E = [];
|
|
@@ -14361,7 +14369,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14361
14369
|
E.forEach((A) => ue.openNode(A));
|
|
14362
14370
|
}
|
|
14363
14371
|
let je = {};
|
|
14364
|
-
function
|
|
14372
|
+
function rt(E, A) {
|
|
14365
14373
|
const P = A && A[0];
|
|
14366
14374
|
if (q += E, P == null)
|
|
14367
14375
|
return Ee(), 0;
|
|
@@ -14378,7 +14386,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14378
14386
|
throw G.mode = M, G;
|
|
14379
14387
|
} else if (A.type === "end") {
|
|
14380
14388
|
const G = jr(A);
|
|
14381
|
-
if (G !==
|
|
14389
|
+
if (G !== Vn) return G;
|
|
14382
14390
|
}
|
|
14383
14391
|
if (A.type === "illegal" && P === "")
|
|
14384
14392
|
return q += `
|
|
@@ -14391,7 +14399,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14391
14399
|
throw Oe(J.replace("{}", h)), new Error('Unknown language: "' + h + '"');
|
|
14392
14400
|
const na = Lr(ve);
|
|
14393
14401
|
let yn = "", M = H || na;
|
|
14394
|
-
const
|
|
14402
|
+
const at = {}, ue = new k.__emitter(k);
|
|
14395
14403
|
ea();
|
|
14396
14404
|
let q = "", en = 0, Ce = 0, vn = 0, wn = !1;
|
|
14397
14405
|
try {
|
|
@@ -14402,10 +14410,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14402
14410
|
vn++, wn ? wn = !1 : M.matcher.considerAll(), M.matcher.lastIndex = Ce;
|
|
14403
14411
|
const E = M.matcher.exec(O);
|
|
14404
14412
|
if (!E) break;
|
|
14405
|
-
const A =
|
|
14413
|
+
const A = rt(O.substring(Ce, E.index), E);
|
|
14406
14414
|
Ce = E.index + A;
|
|
14407
14415
|
}
|
|
14408
|
-
|
|
14416
|
+
rt(O.substring(Ce));
|
|
14409
14417
|
}
|
|
14410
14418
|
return ue.finalize(), yn = ue.toHTML(), {
|
|
14411
14419
|
language: h,
|
|
@@ -14454,7 +14462,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14454
14462
|
}
|
|
14455
14463
|
function _n(h, O) {
|
|
14456
14464
|
O = O || k.languages || Object.keys(f);
|
|
14457
|
-
const F = hn(h), H = O.filter(Te).filter(
|
|
14465
|
+
const F = hn(h), H = O.filter(Te).filter(jn).map((ke) => Ge(ke, h, !1));
|
|
14458
14466
|
H.unshift(F);
|
|
14459
14467
|
const [ae, ye] = H.sort((ke, Ee) => {
|
|
14460
14468
|
if (ke.relevance !== Ee.relevance) return Ee.relevance - ke.relevance;
|
|
@@ -14499,7 +14507,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14499
14507
|
});
|
|
14500
14508
|
}
|
|
14501
14509
|
function $r(h) {
|
|
14502
|
-
k =
|
|
14510
|
+
k = Yn(k, h);
|
|
14503
14511
|
}
|
|
14504
14512
|
const Gr = () => {
|
|
14505
14513
|
Xe(), De("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
@@ -14507,13 +14515,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14507
14515
|
function Kr() {
|
|
14508
14516
|
Xe(), De("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
14509
14517
|
}
|
|
14510
|
-
let
|
|
14518
|
+
let Qn = !1;
|
|
14511
14519
|
function Xe() {
|
|
14512
14520
|
function h() {
|
|
14513
14521
|
Xe();
|
|
14514
14522
|
}
|
|
14515
14523
|
if (document.readyState === "loading") {
|
|
14516
|
-
|
|
14524
|
+
Qn || window.addEventListener("DOMContentLoaded", h, !1), Qn = !0;
|
|
14517
14525
|
return;
|
|
14518
14526
|
}
|
|
14519
14527
|
document.querySelectorAll(k.cssSelector).forEach(En);
|
|
@@ -14527,7 +14535,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14527
14535
|
else throw H;
|
|
14528
14536
|
F = x;
|
|
14529
14537
|
}
|
|
14530
|
-
F.name || (F.name = h), f[h] = F, F.rawDefinition = O.bind(null, s), F.aliases &&
|
|
14538
|
+
F.name || (F.name = h), f[h] = F, F.rawDefinition = O.bind(null, s), F.aliases && Jn(F.aliases, { languageName: h });
|
|
14531
14539
|
}
|
|
14532
14540
|
function qr(h) {
|
|
14533
14541
|
delete f[h];
|
|
@@ -14539,12 +14547,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14539
14547
|
function Te(h) {
|
|
14540
14548
|
return h = (h || "").toLowerCase(), f[h] || f[N[h]];
|
|
14541
14549
|
}
|
|
14542
|
-
function
|
|
14550
|
+
function Jn(h, { languageName: O }) {
|
|
14543
14551
|
typeof h == "string" && (h = [h]), h.forEach((F) => {
|
|
14544
14552
|
N[F.toLowerCase()] = O;
|
|
14545
14553
|
});
|
|
14546
14554
|
}
|
|
14547
|
-
function
|
|
14555
|
+
function jn(h) {
|
|
14548
14556
|
const O = Te(h);
|
|
14549
14557
|
return O && !O.disableAutodetect;
|
|
14550
14558
|
}
|
|
@@ -14584,9 +14592,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14584
14592
|
unregisterLanguage: qr,
|
|
14585
14593
|
listLanguages: Wr,
|
|
14586
14594
|
getLanguage: Te,
|
|
14587
|
-
registerAliases:
|
|
14588
|
-
autoDetection:
|
|
14589
|
-
inherit:
|
|
14595
|
+
registerAliases: Jn,
|
|
14596
|
+
autoDetection: jn,
|
|
14597
|
+
inherit: Yn,
|
|
14590
14598
|
addPlugin: Yr,
|
|
14591
14599
|
removePlugin: Vr
|
|
14592
14600
|
}), s.debugMode = function() {
|
|
@@ -14602,24 +14610,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ae = h, H = O), F ===
|
|
|
14602
14610
|
};
|
|
14603
14611
|
for (const h in Ye) typeof Ye[h] == "object" && t(Ye[h]);
|
|
14604
14612
|
return Object.assign(s, Ye), s;
|
|
14605
|
-
}, Le =
|
|
14606
|
-
Le.newInstance = () =>
|
|
14607
|
-
})),
|
|
14608
|
-
function
|
|
14609
|
-
const n =
|
|
14610
|
-
return e &&
|
|
14613
|
+
}, Le = Xn({});
|
|
14614
|
+
Le.newInstance = () => Xn({}), n.exports = Le, Le.HighlightJS = Le, Le.default = Le;
|
|
14615
|
+
})), Us = /* @__PURE__ */ Dn(Bs()), Fs = Us.default, Ct = {}, zs = "hljs-";
|
|
14616
|
+
function $s(e) {
|
|
14617
|
+
const n = Fs.newInstance();
|
|
14618
|
+
return e && o(e), {
|
|
14611
14619
|
highlight: t,
|
|
14612
14620
|
highlightAuto: r,
|
|
14613
14621
|
listLanguages: a,
|
|
14614
|
-
register:
|
|
14615
|
-
registerAlias:
|
|
14622
|
+
register: o,
|
|
14623
|
+
registerAlias: i,
|
|
14616
14624
|
registered: c
|
|
14617
14625
|
};
|
|
14618
14626
|
function t(l, d, u) {
|
|
14619
|
-
const g = u ||
|
|
14627
|
+
const g = u || Ct, p = typeof g.prefix == "string" ? g.prefix : zs;
|
|
14620
14628
|
if (!n.getLanguage(l)) throw new Error("Unknown language: `" + l + "` is not registered");
|
|
14621
14629
|
n.configure({
|
|
14622
|
-
__emitter:
|
|
14630
|
+
__emitter: Gs,
|
|
14623
14631
|
classPrefix: p
|
|
14624
14632
|
});
|
|
14625
14633
|
const m = n.highlight(d, {
|
|
@@ -14631,7 +14639,7 @@ function Fs(e) {
|
|
|
14631
14639
|
return _.language = m.language, _.relevance = m.relevance, y;
|
|
14632
14640
|
}
|
|
14633
14641
|
function r(l, d) {
|
|
14634
|
-
const u = (d ||
|
|
14642
|
+
const u = (d || Ct).subset || a();
|
|
14635
14643
|
let g = -1, p = 0, m;
|
|
14636
14644
|
for (; ++g < u.length; ) {
|
|
14637
14645
|
const y = u[g];
|
|
@@ -14651,7 +14659,7 @@ function Fs(e) {
|
|
|
14651
14659
|
function a() {
|
|
14652
14660
|
return n.listLanguages();
|
|
14653
14661
|
}
|
|
14654
|
-
function
|
|
14662
|
+
function o(l, d) {
|
|
14655
14663
|
if (typeof l == "string")
|
|
14656
14664
|
n.registerLanguage(l, d);
|
|
14657
14665
|
else {
|
|
@@ -14659,7 +14667,7 @@ function Fs(e) {
|
|
|
14659
14667
|
for (u in l) Object.hasOwn(l, u) && n.registerLanguage(u, l[u]);
|
|
14660
14668
|
}
|
|
14661
14669
|
}
|
|
14662
|
-
function
|
|
14670
|
+
function i(l, d) {
|
|
14663
14671
|
if (typeof l == "string")
|
|
14664
14672
|
n.registerAliases(typeof d == "string" ? d : [...d], { languageName: l });
|
|
14665
14673
|
else {
|
|
@@ -14674,7 +14682,7 @@ function Fs(e) {
|
|
|
14674
14682
|
return !!n.getLanguage(l);
|
|
14675
14683
|
}
|
|
14676
14684
|
}
|
|
14677
|
-
var
|
|
14685
|
+
var Gs = class {
|
|
14678
14686
|
constructor(e) {
|
|
14679
14687
|
this.options = e, this.root = {
|
|
14680
14688
|
type: "root",
|
|
@@ -14709,8 +14717,8 @@ var zs = class {
|
|
|
14709
14717
|
}) : t.children.push(...r);
|
|
14710
14718
|
}
|
|
14711
14719
|
openNode(e) {
|
|
14712
|
-
const n = this, t = e.split(".").map(function(
|
|
14713
|
-
return
|
|
14720
|
+
const n = this, t = e.split(".").map(function(o, i) {
|
|
14721
|
+
return i ? o + "_".repeat(i) : n.options.classPrefix + o;
|
|
14714
14722
|
}), r = this.stack[this.stack.length - 1], a = {
|
|
14715
14723
|
type: "element",
|
|
14716
14724
|
tagName: "span",
|
|
@@ -14727,26 +14735,26 @@ var zs = class {
|
|
|
14727
14735
|
toHTML() {
|
|
14728
14736
|
return "";
|
|
14729
14737
|
}
|
|
14730
|
-
},
|
|
14731
|
-
function
|
|
14732
|
-
const n = e ||
|
|
14738
|
+
}, Ks = {};
|
|
14739
|
+
function Hs(e) {
|
|
14740
|
+
const n = e || Ks, t = n.aliases, r = n.detect || !1, a = n.languages || Ps, o = n.plainText, i = n.prefix, c = n.subset;
|
|
14733
14741
|
let l = "hljs";
|
|
14734
|
-
const d =
|
|
14735
|
-
if (t && d.registerAlias(t),
|
|
14736
|
-
const u =
|
|
14737
|
-
l = u === -1 ?
|
|
14742
|
+
const d = $s(a);
|
|
14743
|
+
if (t && d.registerAlias(t), i) {
|
|
14744
|
+
const u = i.indexOf("-");
|
|
14745
|
+
l = u === -1 ? i : i.slice(0, u);
|
|
14738
14746
|
}
|
|
14739
14747
|
return function(u, g) {
|
|
14740
|
-
|
|
14748
|
+
Zt(u, "element", function(p, m, y) {
|
|
14741
14749
|
if (p.tagName !== "code" || !y || y.type !== "element" || y.tagName !== "pre") return;
|
|
14742
|
-
const _ =
|
|
14743
|
-
if (_ === !1 || !_ && !r || _ &&
|
|
14750
|
+
const _ = qs(p);
|
|
14751
|
+
if (_ === !1 || !_ && !r || _ && o && o.includes(_)) return;
|
|
14744
14752
|
Array.isArray(p.properties.className) || (p.properties.className = []), p.properties.className.includes(l) || p.properties.className.unshift(l);
|
|
14745
|
-
const S =
|
|
14753
|
+
const S = lo(p, { whitespace: "pre" });
|
|
14746
14754
|
let T;
|
|
14747
14755
|
try {
|
|
14748
|
-
T = _ ? d.highlight(_, S, { prefix:
|
|
14749
|
-
prefix:
|
|
14756
|
+
T = _ ? d.highlight(_, S, { prefix: i }) : d.highlightAuto(S, {
|
|
14757
|
+
prefix: i,
|
|
14750
14758
|
subset: c
|
|
14751
14759
|
});
|
|
14752
14760
|
} catch (v) {
|
|
@@ -14767,7 +14775,7 @@ function Gs(e) {
|
|
|
14767
14775
|
});
|
|
14768
14776
|
};
|
|
14769
14777
|
}
|
|
14770
|
-
function
|
|
14778
|
+
function qs(e) {
|
|
14771
14779
|
const n = e.properties.className;
|
|
14772
14780
|
let t = -1;
|
|
14773
14781
|
if (!Array.isArray(n)) return;
|
|
@@ -14779,9 +14787,9 @@ function Ks(e) {
|
|
|
14779
14787
|
}
|
|
14780
14788
|
return r;
|
|
14781
14789
|
}
|
|
14782
|
-
var
|
|
14783
|
-
function
|
|
14784
|
-
const { copied: a, copy:
|
|
14790
|
+
var Ws = "text";
|
|
14791
|
+
function Zs({ language: e, code: n, className: t, children: r }) {
|
|
14792
|
+
const { copied: a, copy: o } = fa(), i = oa();
|
|
14785
14793
|
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
14786
14794
|
className: "wecool-code-block",
|
|
14787
14795
|
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
@@ -14789,20 +14797,20 @@ function qs({ language: e, code: n, className: t, children: r }) {
|
|
|
14789
14797
|
children: [
|
|
14790
14798
|
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
14791
14799
|
className: "wecool-code-block__language",
|
|
14792
|
-
children: e ||
|
|
14800
|
+
children: e || Ws
|
|
14793
14801
|
}),
|
|
14794
14802
|
/* @__PURE__ */ (0, V.jsx)("button", {
|
|
14795
14803
|
type: "button",
|
|
14796
14804
|
className: "wecool-code-block__copy",
|
|
14797
|
-
onClick: () =>
|
|
14798
|
-
"aria-label": a ?
|
|
14799
|
-
children: /* @__PURE__ */ (0, V.jsx)(
|
|
14805
|
+
onClick: () => o(n),
|
|
14806
|
+
"aria-label": a ? i.copiedLabel : i.copyCodeAria,
|
|
14807
|
+
children: /* @__PURE__ */ (0, V.jsx)(ha, { copied: a })
|
|
14800
14808
|
}),
|
|
14801
14809
|
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
14802
14810
|
role: "status",
|
|
14803
14811
|
"aria-live": "polite",
|
|
14804
14812
|
className: "wecool-sr-only",
|
|
14805
|
-
children: a ?
|
|
14813
|
+
children: a ? i.copyCodeAnnouncement : ""
|
|
14806
14814
|
})
|
|
14807
14815
|
]
|
|
14808
14816
|
}), /* @__PURE__ */ (0, V.jsx)("pre", {
|
|
@@ -14814,32 +14822,32 @@ function qs({ language: e, code: n, className: t, children: r }) {
|
|
|
14814
14822
|
})]
|
|
14815
14823
|
});
|
|
14816
14824
|
}
|
|
14817
|
-
var
|
|
14825
|
+
var Ys = [
|
|
14818
14826
|
"http:",
|
|
14819
14827
|
"https:",
|
|
14820
14828
|
"mailto:"
|
|
14821
|
-
],
|
|
14829
|
+
], Vs = (e) => {
|
|
14822
14830
|
const n = e.trim();
|
|
14823
14831
|
if (!n) return "";
|
|
14824
14832
|
if (n.startsWith("/") || n.startsWith("./") || n.startsWith("../") || n.startsWith("#")) return n;
|
|
14825
14833
|
const t = n.indexOf(":");
|
|
14826
14834
|
if (t === -1) return n;
|
|
14827
14835
|
const r = n.slice(0, t + 1).toLowerCase();
|
|
14828
|
-
return
|
|
14829
|
-
},
|
|
14836
|
+
return Ys.includes(r) ? n : "";
|
|
14837
|
+
}, Xs = /[\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7A3\uFF00-\uFFEF]/, Qs = (e) => {
|
|
14830
14838
|
if (e.type !== "link" || typeof e.url != "string") return !1;
|
|
14831
14839
|
const n = e.children ?? [];
|
|
14832
14840
|
if (n.length !== 1) return !1;
|
|
14833
14841
|
const t = n[0];
|
|
14834
14842
|
return t.type !== "text" || typeof t.value != "string" ? !1 : e.url.endsWith(t.value);
|
|
14835
|
-
},
|
|
14836
|
-
const r = t.children[0], a =
|
|
14843
|
+
}, Js = (e, n, t) => {
|
|
14844
|
+
const r = t.children[0], a = Xs.exec(r.value);
|
|
14837
14845
|
if (!a || a.index === 0) return;
|
|
14838
|
-
const
|
|
14839
|
-
r.value =
|
|
14846
|
+
const o = r.value.slice(0, a.index), i = r.value.slice(a.index), c = t.url.slice(0, t.url.length - r.value.length);
|
|
14847
|
+
r.value = o, t.url = c + o;
|
|
14840
14848
|
const l = {
|
|
14841
14849
|
type: "text",
|
|
14842
|
-
value:
|
|
14850
|
+
value: i
|
|
14843
14851
|
};
|
|
14844
14852
|
e.children?.splice(n + 1, 0, l);
|
|
14845
14853
|
}, br = (e) => {
|
|
@@ -14847,20 +14855,20 @@ var Ws = [
|
|
|
14847
14855
|
if (n)
|
|
14848
14856
|
for (let t = 0; t < n.length; t++) {
|
|
14849
14857
|
const r = n[t];
|
|
14850
|
-
|
|
14858
|
+
Qs(r) ? Js(e, t, r) : br(r);
|
|
14851
14859
|
}
|
|
14852
|
-
},
|
|
14860
|
+
}, js = () => (e) => {
|
|
14853
14861
|
br(e);
|
|
14854
|
-
},
|
|
14862
|
+
}, el = [[da, { singleTilde: !1 }], js], nl = [Hs], tl = [
|
|
14855
14863
|
"img",
|
|
14856
14864
|
"iframe",
|
|
14857
14865
|
"script",
|
|
14858
14866
|
"style"
|
|
14859
|
-
],
|
|
14867
|
+
], rl = (e) => {
|
|
14860
14868
|
if (!e) return null;
|
|
14861
14869
|
const n = e.match(/language-([\w+-]+)/);
|
|
14862
14870
|
return n ? n[1] : null;
|
|
14863
|
-
},
|
|
14871
|
+
}, al = (e) => (e.children ?? []).map((n) => n.type === "text" ? n.value ?? "" : "").join("").replace(/\n$/, ""), il = {
|
|
14864
14872
|
a: ({ href: e, children: n, ...t }) => /* @__PURE__ */ (0, V.jsx)("a", {
|
|
14865
14873
|
...t,
|
|
14866
14874
|
href: e,
|
|
@@ -14869,34 +14877,34 @@ var Ws = [
|
|
|
14869
14877
|
children: n
|
|
14870
14878
|
}),
|
|
14871
14879
|
code: ({ node: e, className: n, children: t, ...r }) => {
|
|
14872
|
-
const a =
|
|
14880
|
+
const a = rl(n);
|
|
14873
14881
|
if (!a) return /* @__PURE__ */ (0, V.jsx)("code", {
|
|
14874
14882
|
className: n,
|
|
14875
14883
|
...r,
|
|
14876
14884
|
children: t
|
|
14877
14885
|
});
|
|
14878
|
-
const
|
|
14879
|
-
return /* @__PURE__ */ (0, V.jsx)(
|
|
14886
|
+
const o = e ? al(e) : "";
|
|
14887
|
+
return /* @__PURE__ */ (0, V.jsx)(Zs, {
|
|
14880
14888
|
language: a,
|
|
14881
|
-
code:
|
|
14889
|
+
code: o,
|
|
14882
14890
|
className: n,
|
|
14883
14891
|
children: t
|
|
14884
14892
|
});
|
|
14885
14893
|
},
|
|
14886
14894
|
pre: ({ children: e }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: e })
|
|
14887
|
-
}, cn = (0, Mn.memo)(({ content: e }) => /* @__PURE__ */ (0, V.jsx)(
|
|
14895
|
+
}, cn = (0, Mn.memo)(({ content: e }) => /* @__PURE__ */ (0, V.jsx)(Qi, {
|
|
14888
14896
|
skipHtml: !0,
|
|
14889
|
-
disallowedElements:
|
|
14897
|
+
disallowedElements: tl,
|
|
14890
14898
|
unwrapDisallowed: !0,
|
|
14891
|
-
urlTransform:
|
|
14892
|
-
remarkPlugins:
|
|
14893
|
-
rehypePlugins:
|
|
14894
|
-
components:
|
|
14899
|
+
urlTransform: Vs,
|
|
14900
|
+
remarkPlugins: el,
|
|
14901
|
+
rehypePlugins: nl,
|
|
14902
|
+
components: il,
|
|
14895
14903
|
children: e
|
|
14896
14904
|
}));
|
|
14897
14905
|
cn.displayName = "MarkdownBlock";
|
|
14898
|
-
function
|
|
14899
|
-
const t = (0, Mn.useMemo)(() =>
|
|
14906
|
+
function fl({ content: e, isStreaming: n }) {
|
|
14907
|
+
const t = (0, Mn.useMemo)(() => ba(e), [e]), r = (0, Mn.useMemo)(() => n ? _a(t) : null, [t, n]);
|
|
14900
14908
|
return r ? /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
14901
14909
|
className: "wecool-markdown",
|
|
14902
14910
|
children: [r.prefix && /* @__PURE__ */ (0, V.jsx)(cn, { content: r.prefix }), r.suffix && /* @__PURE__ */ (0, V.jsx)(cn, { content: r.suffix })]
|
|
@@ -14906,5 +14914,5 @@ function gl({ content: e, isStreaming: n }) {
|
|
|
14906
14914
|
});
|
|
14907
14915
|
}
|
|
14908
14916
|
export {
|
|
14909
|
-
|
|
14917
|
+
fl as MarkdownBody
|
|
14910
14918
|
};
|