@stackone/malachite 0.62.1 → 0.63.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/dist/{CodeBlockHighlighter-BZ_7PUqo.js → CodeBlockHighlighter-D-G_ejzN.js} +418 -403
- package/dist/{CodeBlockHighlighter-BZ_7PUqo.js.map → CodeBlockHighlighter-D-G_ejzN.js.map} +1 -1
- package/dist/{index-Bi3n5zTv.js → index-BViCOEUo.js} +1245 -1225
- package/dist/index-BViCOEUo.js.map +1 -0
- package/dist/index.js +11 -11
- package/package.json +1 -1
- package/dist/index-Bi3n5zTv.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { jsx as On } from "react/jsx-runtime";
|
|
2
|
+
import { _ as ce, a as ue, C as rn, b as se } from "./index-BViCOEUo.js";
|
|
3
3
|
import H from "react";
|
|
4
|
-
function
|
|
4
|
+
function fe(n, e) {
|
|
5
5
|
if (n == null) return {};
|
|
6
|
-
var t, l, o =
|
|
6
|
+
var t, l, o = ce(n, e);
|
|
7
7
|
if (Object.getOwnPropertySymbols) {
|
|
8
8
|
var a = Object.getOwnPropertySymbols(n);
|
|
9
9
|
for (l = 0; l < a.length; l++) t = a[l], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (o[t] = n[t]);
|
|
@@ -15,25 +15,25 @@ function dn(n, e) {
|
|
|
15
15
|
for (var t = 0, l = Array(e); t < e; t++) l[t] = n[t];
|
|
16
16
|
return l;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function de(n) {
|
|
19
19
|
if (Array.isArray(n)) return dn(n);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ge(n) {
|
|
22
22
|
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function pe(n, e) {
|
|
25
25
|
if (n) {
|
|
26
26
|
if (typeof n == "string") return dn(n, e);
|
|
27
27
|
var t = {}.toString.call(n).slice(8, -1);
|
|
28
28
|
return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? dn(n, e) : void 0;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function he() {
|
|
32
32
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
33
33
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
34
34
|
}
|
|
35
35
|
function gn(n) {
|
|
36
|
-
return
|
|
36
|
+
return de(n) || ge(n) || pe(n) || he();
|
|
37
37
|
}
|
|
38
38
|
function Z(n) {
|
|
39
39
|
"@babel/helpers - typeof";
|
|
@@ -43,7 +43,7 @@ function Z(n) {
|
|
|
43
43
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
44
44
|
}, Z(n);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function me(n, e) {
|
|
47
47
|
if (Z(n) != "object" || !n) return n;
|
|
48
48
|
var t = n[Symbol.toPrimitive];
|
|
49
49
|
if (t !== void 0) {
|
|
@@ -53,19 +53,19 @@ function pe(n, e) {
|
|
|
53
53
|
}
|
|
54
54
|
return (e === "string" ? String : Number)(n);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
var e =
|
|
56
|
+
function ye(n) {
|
|
57
|
+
var e = me(n, "string");
|
|
58
58
|
return Z(e) == "symbol" ? e : e + "";
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return (e =
|
|
60
|
+
function Hn(n, e, t) {
|
|
61
|
+
return (e = ye(e)) in n ? Object.defineProperty(n, e, {
|
|
62
62
|
value: t,
|
|
63
63
|
enumerable: !0,
|
|
64
64
|
configurable: !0,
|
|
65
65
|
writable: !0
|
|
66
66
|
}) : n[e] = t, n;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Pn(n, e) {
|
|
69
69
|
var t = Object.keys(n);
|
|
70
70
|
if (Object.getOwnPropertySymbols) {
|
|
71
71
|
var l = Object.getOwnPropertySymbols(n);
|
|
@@ -78,15 +78,15 @@ function Cn(n, e) {
|
|
|
78
78
|
function K(n) {
|
|
79
79
|
for (var e = 1; e < arguments.length; e++) {
|
|
80
80
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
81
|
-
e % 2 ?
|
|
82
|
-
|
|
83
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) :
|
|
81
|
+
e % 2 ? Pn(Object(t), !0).forEach(function(l) {
|
|
82
|
+
Hn(n, l, t[l]);
|
|
83
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Pn(Object(t)).forEach(function(l) {
|
|
84
84
|
Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
return n;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ve(n) {
|
|
90
90
|
var e = n.length;
|
|
91
91
|
if (e === 0 || e === 1) return n;
|
|
92
92
|
if (e === 2)
|
|
@@ -97,27 +97,27 @@ function me(n) {
|
|
|
97
97
|
return [n[0], n[1], n[2], n[3], "".concat(n[0], ".").concat(n[1]), "".concat(n[0], ".").concat(n[2]), "".concat(n[0], ".").concat(n[3]), "".concat(n[1], ".").concat(n[0]), "".concat(n[1], ".").concat(n[2]), "".concat(n[1], ".").concat(n[3]), "".concat(n[2], ".").concat(n[0]), "".concat(n[2], ".").concat(n[1]), "".concat(n[2], ".").concat(n[3]), "".concat(n[3], ".").concat(n[0]), "".concat(n[3], ".").concat(n[1]), "".concat(n[3], ".").concat(n[2]), "".concat(n[0], ".").concat(n[1], ".").concat(n[2]), "".concat(n[0], ".").concat(n[1], ".").concat(n[3]), "".concat(n[0], ".").concat(n[2], ".").concat(n[1]), "".concat(n[0], ".").concat(n[2], ".").concat(n[3]), "".concat(n[0], ".").concat(n[3], ".").concat(n[1]), "".concat(n[0], ".").concat(n[3], ".").concat(n[2]), "".concat(n[1], ".").concat(n[0], ".").concat(n[2]), "".concat(n[1], ".").concat(n[0], ".").concat(n[3]), "".concat(n[1], ".").concat(n[2], ".").concat(n[0]), "".concat(n[1], ".").concat(n[2], ".").concat(n[3]), "".concat(n[1], ".").concat(n[3], ".").concat(n[0]), "".concat(n[1], ".").concat(n[3], ".").concat(n[2]), "".concat(n[2], ".").concat(n[0], ".").concat(n[1]), "".concat(n[2], ".").concat(n[0], ".").concat(n[3]), "".concat(n[2], ".").concat(n[1], ".").concat(n[0]), "".concat(n[2], ".").concat(n[1], ".").concat(n[3]), "".concat(n[2], ".").concat(n[3], ".").concat(n[0]), "".concat(n[2], ".").concat(n[3], ".").concat(n[1]), "".concat(n[3], ".").concat(n[0], ".").concat(n[1]), "".concat(n[3], ".").concat(n[0], ".").concat(n[2]), "".concat(n[3], ".").concat(n[1], ".").concat(n[0]), "".concat(n[3], ".").concat(n[1], ".").concat(n[2]), "".concat(n[3], ".").concat(n[2], ".").concat(n[0]), "".concat(n[3], ".").concat(n[2], ".").concat(n[1]), "".concat(n[0], ".").concat(n[1], ".").concat(n[2], ".").concat(n[3]), "".concat(n[0], ".").concat(n[1], ".").concat(n[3], ".").concat(n[2]), "".concat(n[0], ".").concat(n[2], ".").concat(n[1], ".").concat(n[3]), "".concat(n[0], ".").concat(n[2], ".").concat(n[3], ".").concat(n[1]), "".concat(n[0], ".").concat(n[3], ".").concat(n[1], ".").concat(n[2]), "".concat(n[0], ".").concat(n[3], ".").concat(n[2], ".").concat(n[1]), "".concat(n[1], ".").concat(n[0], ".").concat(n[2], ".").concat(n[3]), "".concat(n[1], ".").concat(n[0], ".").concat(n[3], ".").concat(n[2]), "".concat(n[1], ".").concat(n[2], ".").concat(n[0], ".").concat(n[3]), "".concat(n[1], ".").concat(n[2], ".").concat(n[3], ".").concat(n[0]), "".concat(n[1], ".").concat(n[3], ".").concat(n[0], ".").concat(n[2]), "".concat(n[1], ".").concat(n[3], ".").concat(n[2], ".").concat(n[0]), "".concat(n[2], ".").concat(n[0], ".").concat(n[1], ".").concat(n[3]), "".concat(n[2], ".").concat(n[0], ".").concat(n[3], ".").concat(n[1]), "".concat(n[2], ".").concat(n[1], ".").concat(n[0], ".").concat(n[3]), "".concat(n[2], ".").concat(n[1], ".").concat(n[3], ".").concat(n[0]), "".concat(n[2], ".").concat(n[3], ".").concat(n[0], ".").concat(n[1]), "".concat(n[2], ".").concat(n[3], ".").concat(n[1], ".").concat(n[0]), "".concat(n[3], ".").concat(n[0], ".").concat(n[1], ".").concat(n[2]), "".concat(n[3], ".").concat(n[0], ".").concat(n[2], ".").concat(n[1]), "".concat(n[3], ".").concat(n[1], ".").concat(n[0], ".").concat(n[2]), "".concat(n[3], ".").concat(n[1], ".").concat(n[2], ".").concat(n[0]), "".concat(n[3], ".").concat(n[2], ".").concat(n[0], ".").concat(n[1]), "".concat(n[3], ".").concat(n[2], ".").concat(n[1], ".").concat(n[0])];
|
|
98
98
|
}
|
|
99
99
|
var sn = {};
|
|
100
|
-
function
|
|
100
|
+
function be(n) {
|
|
101
101
|
if (n.length === 0 || n.length === 1) return n;
|
|
102
102
|
var e = n.join(".");
|
|
103
|
-
return sn[e] || (sn[e] =
|
|
103
|
+
return sn[e] || (sn[e] = ve(n)), sn[e];
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function we(n) {
|
|
106
106
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0, l = n.filter(function(a) {
|
|
107
107
|
return a !== "token";
|
|
108
|
-
}), o =
|
|
108
|
+
}), o = be(l);
|
|
109
109
|
return o.reduce(function(a, r) {
|
|
110
110
|
return K(K({}, a), t[r]);
|
|
111
111
|
}, e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ln(n) {
|
|
114
114
|
return n.join(" ");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function xe(n, e) {
|
|
117
117
|
var t = 0;
|
|
118
118
|
return function(l) {
|
|
119
119
|
return t += 1, l.map(function(o, a) {
|
|
120
|
-
return
|
|
120
|
+
return vn({
|
|
121
121
|
node: o,
|
|
122
122
|
stylesheet: n,
|
|
123
123
|
useInlineStyles: e,
|
|
@@ -126,41 +126,41 @@ function be(n, e) {
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
var e = n.node, t = n.stylesheet, l = n.style, o = l === void 0 ? {} : l, a = n.useInlineStyles, r = n.key, c = e.properties, u = e.type,
|
|
129
|
+
function vn(n) {
|
|
130
|
+
var e = n.node, t = n.stylesheet, l = n.style, o = l === void 0 ? {} : l, a = n.useInlineStyles, r = n.key, c = e.properties, u = e.type, s = e.tagName, m = e.value;
|
|
131
131
|
if (u === "text")
|
|
132
|
-
return
|
|
133
|
-
if (
|
|
134
|
-
var
|
|
132
|
+
return m;
|
|
133
|
+
if (s) {
|
|
134
|
+
var h = xe(t, a), C;
|
|
135
135
|
if (!a)
|
|
136
136
|
C = K(K({}, c), {}, {
|
|
137
|
-
className:
|
|
137
|
+
className: Ln(c.className)
|
|
138
138
|
});
|
|
139
139
|
else {
|
|
140
|
-
var
|
|
141
|
-
return
|
|
140
|
+
var y = Object.keys(t).reduce(function(g, x) {
|
|
141
|
+
return x.split(".").forEach(function(O) {
|
|
142
142
|
g.includes(O) || g.push(O);
|
|
143
143
|
}), g;
|
|
144
144
|
}, []), L = c.className && c.className.includes("token") ? ["token"] : [], N = c.className && L.concat(c.className.filter(function(g) {
|
|
145
|
-
return !
|
|
145
|
+
return !y.includes(g);
|
|
146
146
|
}));
|
|
147
147
|
C = K(K({}, c), {}, {
|
|
148
|
-
className:
|
|
149
|
-
style:
|
|
148
|
+
className: Ln(N) || void 0,
|
|
149
|
+
style: we(c.className, Object.assign({}, c.style, o), t)
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
var
|
|
153
|
-
return /* @__PURE__ */ H.createElement(
|
|
152
|
+
var b = h(e.children);
|
|
153
|
+
return /* @__PURE__ */ H.createElement(s, ue({
|
|
154
154
|
key: r
|
|
155
|
-
}, C),
|
|
155
|
+
}, C), b);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const Se = function(n, e) {
|
|
159
159
|
var t = n.listLanguages();
|
|
160
160
|
return t.indexOf(e) !== -1;
|
|
161
161
|
};
|
|
162
|
-
var
|
|
163
|
-
function
|
|
162
|
+
var ke = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
|
|
163
|
+
function Nn(n, e) {
|
|
164
164
|
var t = Object.keys(n);
|
|
165
165
|
if (Object.getOwnPropertySymbols) {
|
|
166
166
|
var l = Object.getOwnPropertySymbols(n);
|
|
@@ -173,19 +173,19 @@ function Pn(n, e) {
|
|
|
173
173
|
function $(n) {
|
|
174
174
|
for (var e = 1; e < arguments.length; e++) {
|
|
175
175
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
176
|
-
e % 2 ?
|
|
177
|
-
|
|
178
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) :
|
|
176
|
+
e % 2 ? Nn(Object(t), !0).forEach(function(l) {
|
|
177
|
+
Hn(n, l, t[l]);
|
|
178
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Nn(Object(t)).forEach(function(l) {
|
|
179
179
|
Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
return n;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
return n.match(
|
|
184
|
+
var Ce = /\n/g;
|
|
185
|
+
function Oe(n) {
|
|
186
|
+
return n.match(Ce);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Pe(n) {
|
|
189
189
|
var e = n.lines, t = n.startingLineNumber, l = n.style;
|
|
190
190
|
return e.map(function(o, a) {
|
|
191
191
|
var r = a + t;
|
|
@@ -197,24 +197,24 @@ function Ce(n) {
|
|
|
197
197
|
`));
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Le(n) {
|
|
201
201
|
var e = n.codeString, t = n.codeStyle, l = n.containerStyle, o = l === void 0 ? {
|
|
202
202
|
float: "left",
|
|
203
203
|
paddingRight: "10px"
|
|
204
204
|
} : l, a = n.numberStyle, r = a === void 0 ? {} : a, c = n.startingLineNumber;
|
|
205
205
|
return /* @__PURE__ */ H.createElement("code", {
|
|
206
206
|
style: Object.assign({}, t, o)
|
|
207
|
-
},
|
|
207
|
+
}, Pe({
|
|
208
208
|
lines: e.replace(/\n$/, "").split(`
|
|
209
209
|
`),
|
|
210
210
|
style: r,
|
|
211
211
|
startingLineNumber: c
|
|
212
212
|
}));
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Ne(n) {
|
|
215
215
|
return "".concat(n.toString().length, ".25em");
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function $n(n, e) {
|
|
218
218
|
return {
|
|
219
219
|
type: "element",
|
|
220
220
|
tagName: "span",
|
|
@@ -229,10 +229,10 @@ function Hn(n, e) {
|
|
|
229
229
|
}]
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Fn(n, e, t) {
|
|
233
233
|
var l = {
|
|
234
234
|
display: "inline-block",
|
|
235
|
-
minWidth:
|
|
235
|
+
minWidth: Ne(t),
|
|
236
236
|
paddingRight: "1em",
|
|
237
237
|
textAlign: "right",
|
|
238
238
|
userSelect: "none"
|
|
@@ -240,12 +240,12 @@ function $n(n, e, t) {
|
|
|
240
240
|
return a;
|
|
241
241
|
}
|
|
242
242
|
function on(n) {
|
|
243
|
-
var e = n.children, t = n.lineNumber, l = n.lineNumberStyle, o = n.largestLineNumber, a = n.showInlineLineNumbers, r = n.lineProps, c = r === void 0 ? {} : r, u = n.className,
|
|
244
|
-
if (L.className = L.className ? [].concat(gn(L.className.trim().split(/\s+/)), gn(
|
|
245
|
-
var N =
|
|
246
|
-
e.unshift(
|
|
243
|
+
var e = n.children, t = n.lineNumber, l = n.lineNumberStyle, o = n.largestLineNumber, a = n.showInlineLineNumbers, r = n.lineProps, c = r === void 0 ? {} : r, u = n.className, s = u === void 0 ? [] : u, m = n.showLineNumbers, h = n.wrapLongLines, C = n.wrapLines, y = C === void 0 ? !1 : C, L = y ? $({}, typeof c == "function" ? c(t) : c) : {};
|
|
244
|
+
if (L.className = L.className ? [].concat(gn(L.className.trim().split(/\s+/)), gn(s)) : s, t && a) {
|
|
245
|
+
var N = Fn(l, t, o);
|
|
246
|
+
e.unshift($n(t, N));
|
|
247
247
|
}
|
|
248
|
-
return
|
|
248
|
+
return h & m && (L.style = $({
|
|
249
249
|
display: "flex"
|
|
250
250
|
}, L.style)), {
|
|
251
251
|
type: "element",
|
|
@@ -254,7 +254,7 @@ function on(n) {
|
|
|
254
254
|
children: e
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Vn(n) {
|
|
258
258
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
259
259
|
n.length === void 0 && (n = [n]);
|
|
260
260
|
for (var l = 0; l < n.length; l++) {
|
|
@@ -266,20 +266,20 @@ function Fn(n) {
|
|
|
266
266
|
}));
|
|
267
267
|
else if (o.children) {
|
|
268
268
|
var a, r = e.concat(((a = o.properties) === null || a === void 0 ? void 0 : a.className) || []);
|
|
269
|
-
|
|
269
|
+
Vn(o.children, r).forEach(function(c) {
|
|
270
270
|
return t.push(c);
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
return t;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
var
|
|
278
|
-
function L(S,
|
|
276
|
+
function Ae(n, e, t, l, o, a, r, c, u) {
|
|
277
|
+
var s, m = Vn(n.value), h = [], C = -1, y = 0;
|
|
278
|
+
function L(S, v) {
|
|
279
279
|
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
280
280
|
return on({
|
|
281
281
|
children: S,
|
|
282
|
-
lineNumber:
|
|
282
|
+
lineNumber: v,
|
|
283
283
|
lineNumberStyle: c,
|
|
284
284
|
largestLineNumber: r,
|
|
285
285
|
showInlineLineNumbers: o,
|
|
@@ -290,71 +290,71 @@ function Le(n, e, t, l, o, a, r, c, u) {
|
|
|
290
290
|
wrapLines: e
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
function N(S,
|
|
294
|
-
if (l &&
|
|
295
|
-
var k =
|
|
296
|
-
S.unshift(
|
|
293
|
+
function N(S, v) {
|
|
294
|
+
if (l && v && o) {
|
|
295
|
+
var k = Fn(c, v, r);
|
|
296
|
+
S.unshift($n(v, k));
|
|
297
297
|
}
|
|
298
298
|
return S;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function b(S, v) {
|
|
301
301
|
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
302
|
-
return e || k.length > 0 ? L(S,
|
|
302
|
+
return e || k.length > 0 ? L(S, v, k) : N(S, v);
|
|
303
303
|
}
|
|
304
304
|
for (var g = function() {
|
|
305
|
-
var
|
|
305
|
+
var v = m[y], k = v.children[0].value, P = Oe(k);
|
|
306
306
|
if (P) {
|
|
307
307
|
var U = k.split(`
|
|
308
308
|
`);
|
|
309
309
|
U.forEach(function(R, E) {
|
|
310
|
-
var D = l &&
|
|
310
|
+
var D = l && h.length + a, d = {
|
|
311
311
|
type: "text",
|
|
312
312
|
value: "".concat(R, `
|
|
313
313
|
`)
|
|
314
314
|
};
|
|
315
315
|
if (E === 0) {
|
|
316
|
-
var j =
|
|
316
|
+
var j = m.slice(C + 1, y).concat(on({
|
|
317
317
|
children: [d],
|
|
318
|
-
className:
|
|
319
|
-
})), B =
|
|
320
|
-
|
|
318
|
+
className: v.properties.className
|
|
319
|
+
})), B = b(j, D);
|
|
320
|
+
h.push(B);
|
|
321
321
|
} else if (E === U.length - 1) {
|
|
322
|
-
var nn = y
|
|
322
|
+
var nn = m[y + 1] && m[y + 1].children && m[y + 1].children[0], Y = {
|
|
323
323
|
type: "text",
|
|
324
324
|
value: "".concat(R)
|
|
325
325
|
};
|
|
326
326
|
if (nn) {
|
|
327
327
|
var en = on({
|
|
328
328
|
children: [Y],
|
|
329
|
-
className:
|
|
329
|
+
className: v.properties.className
|
|
330
330
|
});
|
|
331
|
-
|
|
331
|
+
m.splice(y + 1, 0, en);
|
|
332
332
|
} else {
|
|
333
|
-
var tn = [Y], F =
|
|
334
|
-
|
|
333
|
+
var tn = [Y], F = b(tn, D, v.properties.className);
|
|
334
|
+
h.push(F);
|
|
335
335
|
}
|
|
336
336
|
} else {
|
|
337
|
-
var V = [d], G =
|
|
338
|
-
|
|
337
|
+
var V = [d], G = b(V, D, v.properties.className);
|
|
338
|
+
h.push(G);
|
|
339
339
|
}
|
|
340
|
-
}), C =
|
|
340
|
+
}), C = y;
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
};
|
|
342
|
+
y++;
|
|
343
|
+
}; y < m.length; )
|
|
344
344
|
g();
|
|
345
|
-
if (C !==
|
|
346
|
-
var
|
|
347
|
-
if (
|
|
348
|
-
var O = l &&
|
|
349
|
-
|
|
345
|
+
if (C !== m.length - 1) {
|
|
346
|
+
var x = m.slice(C + 1, m.length);
|
|
347
|
+
if (x && x.length) {
|
|
348
|
+
var O = l && h.length + a, p = b(x, O);
|
|
349
|
+
h.push(p);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
return e ?
|
|
352
|
+
return e ? h : (s = []).concat.apply(s, h);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Ee(n) {
|
|
355
355
|
var e = n.rows, t = n.stylesheet, l = n.useInlineStyles;
|
|
356
356
|
return e.map(function(o, a) {
|
|
357
|
-
return
|
|
357
|
+
return vn({
|
|
358
358
|
node: o,
|
|
359
359
|
stylesheet: t,
|
|
360
360
|
useInlineStyles: l,
|
|
@@ -362,13 +362,13 @@ function Ne(n) {
|
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Wn(n) {
|
|
366
366
|
return n && typeof n.highlightAuto < "u";
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Te(n) {
|
|
369
369
|
var e = n.astGenerator, t = n.language, l = n.code, o = n.defaultCodeValue;
|
|
370
|
-
if (
|
|
371
|
-
var a =
|
|
370
|
+
if (Wn(e)) {
|
|
371
|
+
var a = Se(e, t);
|
|
372
372
|
return t === "text" ? {
|
|
373
373
|
value: o,
|
|
374
374
|
language: "text"
|
|
@@ -386,48 +386,48 @@ function Ae(n) {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function De(n, e) {
|
|
390
390
|
return function(l) {
|
|
391
|
-
var o, a, r = l.language, c = l.children, u = l.style,
|
|
391
|
+
var o, a, r = l.language, c = l.children, u = l.style, s = u === void 0 ? e : u, m = l.customStyle, h = m === void 0 ? {} : m, C = l.codeTagProps, y = C === void 0 ? {
|
|
392
392
|
className: r ? "language-".concat(r) : void 0,
|
|
393
|
-
style: $($({},
|
|
394
|
-
} : C, L = l.useInlineStyles, N = L === void 0 ? !0 : L,
|
|
393
|
+
style: $($({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(r, '"]')])
|
|
394
|
+
} : C, L = l.useInlineStyles, N = L === void 0 ? !0 : L, b = l.showLineNumbers, g = b === void 0 ? !1 : b, x = l.showInlineLineNumbers, O = x === void 0 ? !0 : x, p = l.startingLineNumber, S = p === void 0 ? 1 : p, v = l.lineNumberContainerStyle, k = l.lineNumberStyle, P = k === void 0 ? {} : k, U = l.wrapLines, R = l.wrapLongLines, E = R === void 0 ? !1 : R, D = l.lineProps, d = D === void 0 ? {} : D, j = l.renderer, B = l.PreTag, nn = B === void 0 ? "pre" : B, Y = l.CodeTag, en = Y === void 0 ? "code" : Y, tn = l.code, F = tn === void 0 ? (Array.isArray(c) ? c[0] : c) || "" : tn, V = l.astGenerator, G = fe(l, ke);
|
|
395
395
|
V = V || n;
|
|
396
|
-
var xn = g ? /* @__PURE__ */ H.createElement(
|
|
397
|
-
containerStyle:
|
|
398
|
-
codeStyle:
|
|
396
|
+
var xn = g ? /* @__PURE__ */ H.createElement(Le, {
|
|
397
|
+
containerStyle: v,
|
|
398
|
+
codeStyle: y.style || {},
|
|
399
399
|
numberStyle: P,
|
|
400
400
|
startingLineNumber: S,
|
|
401
401
|
codeString: F
|
|
402
|
-
}) : null,
|
|
402
|
+
}) : null, oe = s.hljs || s['pre[class*="language-"]'] || {
|
|
403
403
|
backgroundColor: "#fff"
|
|
404
|
-
},
|
|
405
|
-
style: Object.assign({},
|
|
404
|
+
}, Sn = Wn(V) ? "hljs" : "prismjs", kn = N ? Object.assign({}, G, {
|
|
405
|
+
style: Object.assign({}, oe, h)
|
|
406
406
|
}) : Object.assign({}, G, {
|
|
407
|
-
className: G.className ? "".concat(
|
|
408
|
-
style: Object.assign({},
|
|
407
|
+
className: G.className ? "".concat(Sn, " ").concat(G.className) : Sn,
|
|
408
|
+
style: Object.assign({}, h)
|
|
409
409
|
});
|
|
410
|
-
if (E ?
|
|
410
|
+
if (E ? y.style = $({
|
|
411
411
|
whiteSpace: "pre-wrap"
|
|
412
|
-
},
|
|
412
|
+
}, y.style) : y.style = $({
|
|
413
413
|
whiteSpace: "pre"
|
|
414
|
-
},
|
|
415
|
-
return /* @__PURE__ */ H.createElement(nn,
|
|
416
|
-
(U === void 0 && j || E) && (U = !0), j = j ||
|
|
417
|
-
var
|
|
414
|
+
}, y.style), !V)
|
|
415
|
+
return /* @__PURE__ */ H.createElement(nn, kn, xn, /* @__PURE__ */ H.createElement(en, y, F));
|
|
416
|
+
(U === void 0 && j || E) && (U = !0), j = j || Ee;
|
|
417
|
+
var Cn = [{
|
|
418
418
|
type: "text",
|
|
419
419
|
value: F
|
|
420
|
-
}], un =
|
|
420
|
+
}], un = Te({
|
|
421
421
|
astGenerator: V,
|
|
422
422
|
language: r,
|
|
423
423
|
code: F,
|
|
424
|
-
defaultCodeValue:
|
|
424
|
+
defaultCodeValue: Cn
|
|
425
425
|
});
|
|
426
|
-
un.language === null && (un.value =
|
|
427
|
-
var
|
|
428
|
-
return /* @__PURE__ */ H.createElement(nn,
|
|
429
|
-
rows:
|
|
430
|
-
stylesheet:
|
|
426
|
+
un.language === null && (un.value = Cn);
|
|
427
|
+
var ae = (o = (a = F.match(/\n/g)) === null || a === void 0 ? void 0 : a.length) !== null && o !== void 0 ? o : 0, ie = S + ae, re = Ae(un, U, d, g, O, S, ie, P, E);
|
|
428
|
+
return /* @__PURE__ */ H.createElement(nn, kn, /* @__PURE__ */ H.createElement(en, y, !O && xn, j({
|
|
429
|
+
rows: re,
|
|
430
|
+
stylesheet: s,
|
|
431
431
|
useInlineStyles: N
|
|
432
432
|
})));
|
|
433
433
|
};
|
|
@@ -450,7 +450,7 @@ class Q {
|
|
|
450
450
|
Q.prototype.normal = {};
|
|
451
451
|
Q.prototype.property = {};
|
|
452
452
|
Q.prototype.space = void 0;
|
|
453
|
-
function
|
|
453
|
+
function qn(n, e) {
|
|
454
454
|
const t = {}, l = {};
|
|
455
455
|
for (const o of n)
|
|
456
456
|
Object.assign(t, o.property), Object.assign(l, o.normal);
|
|
@@ -484,25 +484,25 @@ I.prototype.overloadedBoolean = !1;
|
|
|
484
484
|
I.prototype.property = "";
|
|
485
485
|
I.prototype.spaceSeparated = !1;
|
|
486
486
|
I.prototype.space = void 0;
|
|
487
|
-
let
|
|
488
|
-
const
|
|
487
|
+
let Me = 0;
|
|
488
|
+
const f = q(), A = q(), pn = q(), i = q(), w = q(), W = q(), z = q();
|
|
489
489
|
function q() {
|
|
490
|
-
return 2 ** ++
|
|
490
|
+
return 2 ** ++Me;
|
|
491
491
|
}
|
|
492
492
|
const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
493
493
|
__proto__: null,
|
|
494
|
-
boolean:
|
|
494
|
+
boolean: f,
|
|
495
495
|
booleanish: A,
|
|
496
496
|
commaOrSpaceSeparated: z,
|
|
497
497
|
commaSeparated: W,
|
|
498
498
|
number: i,
|
|
499
499
|
overloadedBoolean: pn,
|
|
500
|
-
spaceSeparated:
|
|
500
|
+
spaceSeparated: w
|
|
501
501
|
}, Symbol.toStringTag, { value: "Module" })), fn = (
|
|
502
502
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
503
503
|
Object.keys(hn)
|
|
504
504
|
);
|
|
505
|
-
class
|
|
505
|
+
class bn extends I {
|
|
506
506
|
/**
|
|
507
507
|
* @constructor
|
|
508
508
|
* @param {string} property
|
|
@@ -518,21 +518,21 @@ class vn extends I {
|
|
|
518
518
|
*/
|
|
519
519
|
constructor(e, t, l, o) {
|
|
520
520
|
let a = -1;
|
|
521
|
-
if (super(e, t),
|
|
521
|
+
if (super(e, t), An(this, "space", o), typeof l == "number")
|
|
522
522
|
for (; ++a < fn.length; ) {
|
|
523
523
|
const r = fn[a];
|
|
524
|
-
|
|
524
|
+
An(this, fn[a], (l & hn[r]) === hn[r]);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
|
|
529
|
-
function
|
|
528
|
+
bn.prototype.defined = !0;
|
|
529
|
+
function An(n, e, t) {
|
|
530
530
|
t && (n[e] = t);
|
|
531
531
|
}
|
|
532
532
|
function _(n) {
|
|
533
533
|
const e = {}, t = {};
|
|
534
534
|
for (const [l, o] of Object.entries(n.properties)) {
|
|
535
|
-
const a = new
|
|
535
|
+
const a = new bn(
|
|
536
536
|
l,
|
|
537
537
|
n.transform(n.attributes || {}, l),
|
|
538
538
|
o,
|
|
@@ -542,7 +542,7 @@ function _(n) {
|
|
|
542
542
|
}
|
|
543
543
|
return new Q(e, t, n.space);
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const Gn = _({
|
|
546
546
|
properties: {
|
|
547
547
|
ariaActiveDescendant: null,
|
|
548
548
|
ariaAtomic: A,
|
|
@@ -552,36 +552,36 @@ const qn = _({
|
|
|
552
552
|
ariaColCount: i,
|
|
553
553
|
ariaColIndex: i,
|
|
554
554
|
ariaColSpan: i,
|
|
555
|
-
ariaControls:
|
|
555
|
+
ariaControls: w,
|
|
556
556
|
ariaCurrent: null,
|
|
557
|
-
ariaDescribedBy:
|
|
557
|
+
ariaDescribedBy: w,
|
|
558
558
|
ariaDetails: null,
|
|
559
559
|
ariaDisabled: A,
|
|
560
|
-
ariaDropEffect:
|
|
560
|
+
ariaDropEffect: w,
|
|
561
561
|
ariaErrorMessage: null,
|
|
562
562
|
ariaExpanded: A,
|
|
563
|
-
ariaFlowTo:
|
|
563
|
+
ariaFlowTo: w,
|
|
564
564
|
ariaGrabbed: A,
|
|
565
565
|
ariaHasPopup: null,
|
|
566
566
|
ariaHidden: A,
|
|
567
567
|
ariaInvalid: null,
|
|
568
568
|
ariaKeyShortcuts: null,
|
|
569
569
|
ariaLabel: null,
|
|
570
|
-
ariaLabelledBy:
|
|
570
|
+
ariaLabelledBy: w,
|
|
571
571
|
ariaLevel: i,
|
|
572
572
|
ariaLive: null,
|
|
573
573
|
ariaModal: A,
|
|
574
574
|
ariaMultiLine: A,
|
|
575
575
|
ariaMultiSelectable: A,
|
|
576
576
|
ariaOrientation: null,
|
|
577
|
-
ariaOwns:
|
|
577
|
+
ariaOwns: w,
|
|
578
578
|
ariaPlaceholder: null,
|
|
579
579
|
ariaPosInSet: i,
|
|
580
580
|
ariaPressed: A,
|
|
581
581
|
ariaReadOnly: A,
|
|
582
582
|
ariaRelevant: null,
|
|
583
583
|
ariaRequired: A,
|
|
584
|
-
ariaRoleDescription:
|
|
584
|
+
ariaRoleDescription: w,
|
|
585
585
|
ariaRowCount: i,
|
|
586
586
|
ariaRowIndex: i,
|
|
587
587
|
ariaRowSpan: i,
|
|
@@ -598,13 +598,13 @@ const qn = _({
|
|
|
598
598
|
return e === "role" ? e : "aria-" + e.slice(4).toLowerCase();
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
|
-
function
|
|
601
|
+
function Kn(n, e) {
|
|
602
602
|
return e in n ? n[e] : e;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
604
|
+
function _n(n, e) {
|
|
605
|
+
return Kn(n, e.toLowerCase());
|
|
606
606
|
}
|
|
607
|
-
const
|
|
607
|
+
const Re = _({
|
|
608
608
|
attributes: {
|
|
609
609
|
acceptcharset: "accept-charset",
|
|
610
610
|
classname: "class",
|
|
@@ -616,27 +616,27 @@ const De = _({
|
|
|
616
616
|
// Standard Properties.
|
|
617
617
|
abbr: null,
|
|
618
618
|
accept: W,
|
|
619
|
-
acceptCharset:
|
|
620
|
-
accessKey:
|
|
619
|
+
acceptCharset: w,
|
|
620
|
+
accessKey: w,
|
|
621
621
|
action: null,
|
|
622
622
|
allow: null,
|
|
623
|
-
allowFullScreen:
|
|
624
|
-
allowPaymentRequest:
|
|
625
|
-
allowUserMedia:
|
|
626
|
-
alpha:
|
|
623
|
+
allowFullScreen: f,
|
|
624
|
+
allowPaymentRequest: f,
|
|
625
|
+
allowUserMedia: f,
|
|
626
|
+
alpha: f,
|
|
627
627
|
alt: null,
|
|
628
628
|
as: null,
|
|
629
|
-
async:
|
|
629
|
+
async: f,
|
|
630
630
|
autoCapitalize: null,
|
|
631
|
-
autoComplete:
|
|
632
|
-
autoFocus:
|
|
633
|
-
autoPlay:
|
|
634
|
-
blocking:
|
|
631
|
+
autoComplete: w,
|
|
632
|
+
autoFocus: f,
|
|
633
|
+
autoPlay: f,
|
|
634
|
+
blocking: w,
|
|
635
635
|
capture: null,
|
|
636
636
|
charSet: null,
|
|
637
|
-
checked:
|
|
637
|
+
checked: f,
|
|
638
638
|
cite: null,
|
|
639
|
-
className:
|
|
639
|
+
className: w,
|
|
640
640
|
closedBy: null,
|
|
641
641
|
colorSpace: null,
|
|
642
642
|
cols: i,
|
|
@@ -645,18 +645,18 @@ const De = _({
|
|
|
645
645
|
commandFor: null,
|
|
646
646
|
content: null,
|
|
647
647
|
contentEditable: A,
|
|
648
|
-
controls:
|
|
649
|
-
controlsList:
|
|
648
|
+
controls: f,
|
|
649
|
+
controlsList: w,
|
|
650
650
|
coords: i | W,
|
|
651
651
|
crossOrigin: null,
|
|
652
652
|
data: null,
|
|
653
653
|
dateTime: null,
|
|
654
654
|
decoding: null,
|
|
655
|
-
default:
|
|
656
|
-
defer:
|
|
655
|
+
default: f,
|
|
656
|
+
defer: f,
|
|
657
657
|
dir: null,
|
|
658
658
|
dirName: null,
|
|
659
|
-
disabled:
|
|
659
|
+
disabled: f,
|
|
660
660
|
download: pn,
|
|
661
661
|
draggable: A,
|
|
662
662
|
encType: null,
|
|
@@ -666,36 +666,36 @@ const De = _({
|
|
|
666
666
|
formAction: null,
|
|
667
667
|
formEncType: null,
|
|
668
668
|
formMethod: null,
|
|
669
|
-
formNoValidate:
|
|
669
|
+
formNoValidate: f,
|
|
670
670
|
formTarget: null,
|
|
671
|
-
headers:
|
|
671
|
+
headers: w,
|
|
672
672
|
height: i,
|
|
673
673
|
hidden: pn,
|
|
674
674
|
high: i,
|
|
675
675
|
href: null,
|
|
676
676
|
hrefLang: null,
|
|
677
|
-
htmlFor:
|
|
678
|
-
httpEquiv:
|
|
677
|
+
htmlFor: w,
|
|
678
|
+
httpEquiv: w,
|
|
679
679
|
id: null,
|
|
680
680
|
imageSizes: null,
|
|
681
681
|
imageSrcSet: null,
|
|
682
|
-
inert:
|
|
682
|
+
inert: f,
|
|
683
683
|
inputMode: null,
|
|
684
684
|
integrity: null,
|
|
685
685
|
is: null,
|
|
686
|
-
isMap:
|
|
686
|
+
isMap: f,
|
|
687
687
|
itemId: null,
|
|
688
|
-
itemProp:
|
|
689
|
-
itemRef:
|
|
690
|
-
itemScope:
|
|
691
|
-
itemType:
|
|
688
|
+
itemProp: w,
|
|
689
|
+
itemRef: w,
|
|
690
|
+
itemScope: f,
|
|
691
|
+
itemType: w,
|
|
692
692
|
kind: null,
|
|
693
693
|
label: null,
|
|
694
694
|
lang: null,
|
|
695
695
|
language: null,
|
|
696
696
|
list: null,
|
|
697
697
|
loading: null,
|
|
698
|
-
loop:
|
|
698
|
+
loop: f,
|
|
699
699
|
low: i,
|
|
700
700
|
manifest: null,
|
|
701
701
|
max: null,
|
|
@@ -704,12 +704,12 @@ const De = _({
|
|
|
704
704
|
method: null,
|
|
705
705
|
min: null,
|
|
706
706
|
minLength: i,
|
|
707
|
-
multiple:
|
|
708
|
-
muted:
|
|
707
|
+
multiple: f,
|
|
708
|
+
muted: f,
|
|
709
709
|
name: null,
|
|
710
710
|
nonce: null,
|
|
711
|
-
noModule:
|
|
712
|
-
noValidate:
|
|
711
|
+
noModule: f,
|
|
712
|
+
noValidate: f,
|
|
713
713
|
onAbort: null,
|
|
714
714
|
onAfterPrint: null,
|
|
715
715
|
onAuxClick: null,
|
|
@@ -798,34 +798,34 @@ const De = _({
|
|
|
798
798
|
onVolumeChange: null,
|
|
799
799
|
onWaiting: null,
|
|
800
800
|
onWheel: null,
|
|
801
|
-
open:
|
|
801
|
+
open: f,
|
|
802
802
|
optimum: i,
|
|
803
803
|
pattern: null,
|
|
804
|
-
ping:
|
|
804
|
+
ping: w,
|
|
805
805
|
placeholder: null,
|
|
806
|
-
playsInline:
|
|
806
|
+
playsInline: f,
|
|
807
807
|
popover: null,
|
|
808
808
|
popoverTarget: null,
|
|
809
809
|
popoverTargetAction: null,
|
|
810
810
|
poster: null,
|
|
811
811
|
preload: null,
|
|
812
|
-
readOnly:
|
|
812
|
+
readOnly: f,
|
|
813
813
|
referrerPolicy: null,
|
|
814
|
-
rel:
|
|
815
|
-
required:
|
|
816
|
-
reversed:
|
|
814
|
+
rel: w,
|
|
815
|
+
required: f,
|
|
816
|
+
reversed: f,
|
|
817
817
|
rows: i,
|
|
818
818
|
rowSpan: i,
|
|
819
|
-
sandbox:
|
|
819
|
+
sandbox: w,
|
|
820
820
|
scope: null,
|
|
821
|
-
scoped:
|
|
822
|
-
seamless:
|
|
823
|
-
selected:
|
|
824
|
-
shadowRootClonable:
|
|
825
|
-
shadowRootCustomElementRegistry:
|
|
826
|
-
shadowRootDelegatesFocus:
|
|
821
|
+
scoped: f,
|
|
822
|
+
seamless: f,
|
|
823
|
+
selected: f,
|
|
824
|
+
shadowRootClonable: f,
|
|
825
|
+
shadowRootCustomElementRegistry: f,
|
|
826
|
+
shadowRootDelegatesFocus: f,
|
|
827
827
|
shadowRootMode: null,
|
|
828
|
-
shadowRootSerializable:
|
|
828
|
+
shadowRootSerializable: f,
|
|
829
829
|
shape: null,
|
|
830
830
|
size: i,
|
|
831
831
|
sizes: null,
|
|
@@ -844,7 +844,7 @@ const De = _({
|
|
|
844
844
|
title: null,
|
|
845
845
|
translate: null,
|
|
846
846
|
type: null,
|
|
847
|
-
typeMustMatch:
|
|
847
|
+
typeMustMatch: f,
|
|
848
848
|
useMap: null,
|
|
849
849
|
value: A,
|
|
850
850
|
width: i,
|
|
@@ -856,7 +856,7 @@ const De = _({
|
|
|
856
856
|
// Several. Use CSS `text-align` instead,
|
|
857
857
|
aLink: null,
|
|
858
858
|
// `<body>`. Use CSS `a:active {color}` instead
|
|
859
|
-
archive:
|
|
859
|
+
archive: w,
|
|
860
860
|
// `<object>`. List of URIs to archives
|
|
861
861
|
axis: null,
|
|
862
862
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
@@ -890,9 +890,9 @@ const De = _({
|
|
|
890
890
|
// `<object>`
|
|
891
891
|
color: null,
|
|
892
892
|
// `<font>` and `<hr>`. Use CSS instead
|
|
893
|
-
compact:
|
|
893
|
+
compact: f,
|
|
894
894
|
// Lists. Use CSS to reduce space between items instead
|
|
895
|
-
declare:
|
|
895
|
+
declare: f,
|
|
896
896
|
// `<object>`
|
|
897
897
|
event: null,
|
|
898
898
|
// `<script>`
|
|
@@ -916,13 +916,13 @@ const De = _({
|
|
|
916
916
|
// `<body>`
|
|
917
917
|
marginWidth: i,
|
|
918
918
|
// `<body>`
|
|
919
|
-
noResize:
|
|
919
|
+
noResize: f,
|
|
920
920
|
// `<frame>`
|
|
921
|
-
noHref:
|
|
921
|
+
noHref: f,
|
|
922
922
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
923
|
-
noShade:
|
|
923
|
+
noShade: f,
|
|
924
924
|
// `<hr>`. Use background-color and height instead of borders
|
|
925
|
-
noWrap:
|
|
925
|
+
noWrap: f,
|
|
926
926
|
// `<td>` and `<th>`
|
|
927
927
|
object: null,
|
|
928
928
|
// `<applet>`
|
|
@@ -962,11 +962,11 @@ const De = _({
|
|
|
962
962
|
allowTransparency: null,
|
|
963
963
|
autoCorrect: null,
|
|
964
964
|
autoSave: null,
|
|
965
|
-
credentialless:
|
|
966
|
-
disablePictureInPicture:
|
|
967
|
-
disableRemotePlayback:
|
|
965
|
+
credentialless: f,
|
|
966
|
+
disablePictureInPicture: f,
|
|
967
|
+
disableRemotePlayback: f,
|
|
968
968
|
exportParts: W,
|
|
969
|
-
part:
|
|
969
|
+
part: w,
|
|
970
970
|
prefix: null,
|
|
971
971
|
property: null,
|
|
972
972
|
results: i,
|
|
@@ -974,8 +974,8 @@ const De = _({
|
|
|
974
974
|
unselectable: null
|
|
975
975
|
},
|
|
976
976
|
space: "html",
|
|
977
|
-
transform:
|
|
978
|
-
}),
|
|
977
|
+
transform: _n
|
|
978
|
+
}), je = _({
|
|
979
979
|
attributes: {
|
|
980
980
|
accentHeight: "accent-height",
|
|
981
981
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1175,7 +1175,7 @@ const De = _({
|
|
|
1175
1175
|
by: null,
|
|
1176
1176
|
calcMode: null,
|
|
1177
1177
|
capHeight: i,
|
|
1178
|
-
className:
|
|
1178
|
+
className: w,
|
|
1179
1179
|
clip: null,
|
|
1180
1180
|
clipPath: null,
|
|
1181
1181
|
clipPathUnits: null,
|
|
@@ -1202,7 +1202,7 @@ const De = _({
|
|
|
1202
1202
|
dur: null,
|
|
1203
1203
|
divisor: i,
|
|
1204
1204
|
dominantBaseline: null,
|
|
1205
|
-
download:
|
|
1205
|
+
download: f,
|
|
1206
1206
|
dx: null,
|
|
1207
1207
|
dy: null,
|
|
1208
1208
|
edgeMode: null,
|
|
@@ -1411,7 +1411,7 @@ const De = _({
|
|
|
1411
1411
|
patternTransform: null,
|
|
1412
1412
|
patternUnits: null,
|
|
1413
1413
|
phase: null,
|
|
1414
|
-
ping:
|
|
1414
|
+
ping: w,
|
|
1415
1415
|
pitch: null,
|
|
1416
1416
|
playbackOrder: null,
|
|
1417
1417
|
pointerEvents: null,
|
|
@@ -1535,8 +1535,8 @@ const De = _({
|
|
|
1535
1535
|
zoomAndPan: null
|
|
1536
1536
|
},
|
|
1537
1537
|
space: "svg",
|
|
1538
|
-
transform:
|
|
1539
|
-
}),
|
|
1538
|
+
transform: Kn
|
|
1539
|
+
}), Yn = _({
|
|
1540
1540
|
properties: {
|
|
1541
1541
|
xLinkActuate: null,
|
|
1542
1542
|
xLinkArcRole: null,
|
|
@@ -1550,46 +1550,46 @@ const De = _({
|
|
|
1550
1550
|
transform(n, e) {
|
|
1551
1551
|
return "xlink:" + e.slice(5).toLowerCase();
|
|
1552
1552
|
}
|
|
1553
|
-
}),
|
|
1553
|
+
}), Xn = _({
|
|
1554
1554
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1555
1555
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1556
1556
|
space: "xmlns",
|
|
1557
|
-
transform:
|
|
1558
|
-
}),
|
|
1557
|
+
transform: _n
|
|
1558
|
+
}), Zn = _({
|
|
1559
1559
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1560
1560
|
space: "xml",
|
|
1561
1561
|
transform(n, e) {
|
|
1562
1562
|
return "xml:" + e.slice(3).toLowerCase();
|
|
1563
1563
|
}
|
|
1564
|
-
}),
|
|
1565
|
-
function
|
|
1564
|
+
}), Ie = /[A-Z]/g, En = /-[a-z]/g, Ue = /^data[-\w.:]+$/i;
|
|
1565
|
+
function ze(n, e) {
|
|
1566
1566
|
const t = J(e);
|
|
1567
1567
|
let l = e, o = I;
|
|
1568
1568
|
if (t in n.normal)
|
|
1569
1569
|
return n.property[n.normal[t]];
|
|
1570
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
1570
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && Ue.test(e)) {
|
|
1571
1571
|
if (e.charAt(4) === "-") {
|
|
1572
|
-
const a = e.slice(5).replace(
|
|
1572
|
+
const a = e.slice(5).replace(En, He);
|
|
1573
1573
|
l = "data" + a.charAt(0).toUpperCase() + a.slice(1);
|
|
1574
1574
|
} else {
|
|
1575
1575
|
const a = e.slice(4);
|
|
1576
|
-
if (!
|
|
1577
|
-
let r = a.replace(
|
|
1576
|
+
if (!En.test(a)) {
|
|
1577
|
+
let r = a.replace(Ie, Be);
|
|
1578
1578
|
r.charAt(0) !== "-" && (r = "-" + r), e = "data" + r;
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
o =
|
|
1581
|
+
o = bn;
|
|
1582
1582
|
}
|
|
1583
1583
|
return new o(l, e);
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function Be(n) {
|
|
1586
1586
|
return "-" + n.toLowerCase();
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function He(n) {
|
|
1589
1589
|
return n.charAt(1).toUpperCase();
|
|
1590
1590
|
}
|
|
1591
|
-
const
|
|
1592
|
-
function
|
|
1591
|
+
const $e = qn([Gn, Re, Yn, Xn, Zn], "html"), Fe = qn([Gn, je, Yn, Xn, Zn], "svg");
|
|
1592
|
+
function Tn(n) {
|
|
1593
1593
|
const e = [], t = String(n || "");
|
|
1594
1594
|
let l = t.indexOf(","), o = 0, a = !1;
|
|
1595
1595
|
for (; !a; ) {
|
|
@@ -1599,13 +1599,13 @@ function An(n) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
return e;
|
|
1601
1601
|
}
|
|
1602
|
-
const
|
|
1603
|
-
function
|
|
1602
|
+
const Dn = /[#.]/g;
|
|
1603
|
+
function Ve(n, e) {
|
|
1604
1604
|
const t = n || "", l = {};
|
|
1605
1605
|
let o = 0, a, r;
|
|
1606
1606
|
for (; o < t.length; ) {
|
|
1607
|
-
|
|
1608
|
-
const c =
|
|
1607
|
+
Dn.lastIndex = o;
|
|
1608
|
+
const c = Dn.exec(t), u = t.slice(o, c ? c.index : t.length);
|
|
1609
1609
|
u && (a ? a === "#" ? l.id = u : Array.isArray(l.className) ? l.className.push(u) : l.className = [u] : r = u, o += u.length), c && (a = c[0], o++);
|
|
1610
1610
|
}
|
|
1611
1611
|
return {
|
|
@@ -1616,37 +1616,37 @@ function $e(n, e) {
|
|
|
1616
1616
|
children: []
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Mn(n) {
|
|
1620
1620
|
const e = String(n || "").trim();
|
|
1621
1621
|
return e ? e.split(/[ \t\n\r\f]+/g) : [];
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1624
|
-
const l = t ?
|
|
1623
|
+
function Jn(n, e, t) {
|
|
1624
|
+
const l = t ? Ke(t) : void 0;
|
|
1625
1625
|
function o(a, r, ...c) {
|
|
1626
1626
|
let u;
|
|
1627
1627
|
if (a == null) {
|
|
1628
1628
|
u = { type: "root", children: [] };
|
|
1629
|
-
const
|
|
1629
|
+
const s = (
|
|
1630
1630
|
/** @type {Child} */
|
|
1631
1631
|
r
|
|
1632
1632
|
);
|
|
1633
|
-
c.unshift(
|
|
1633
|
+
c.unshift(s);
|
|
1634
1634
|
} else {
|
|
1635
|
-
u =
|
|
1636
|
-
const
|
|
1637
|
-
if (u.tagName =
|
|
1635
|
+
u = Ve(a, e);
|
|
1636
|
+
const s = u.tagName.toLowerCase(), m = l ? l.get(s) : void 0;
|
|
1637
|
+
if (u.tagName = m || s, We(r))
|
|
1638
1638
|
c.unshift(r);
|
|
1639
1639
|
else
|
|
1640
|
-
for (const [
|
|
1641
|
-
|
|
1640
|
+
for (const [h, C] of Object.entries(r))
|
|
1641
|
+
qe(n, u.properties, h, C);
|
|
1642
1642
|
}
|
|
1643
|
-
for (const
|
|
1644
|
-
mn(u.children,
|
|
1643
|
+
for (const s of c)
|
|
1644
|
+
mn(u.children, s);
|
|
1645
1645
|
return u.type === "element" && u.tagName === "template" && (u.content = { type: "root", children: u.children }, u.children = []), u;
|
|
1646
1646
|
}
|
|
1647
1647
|
return o;
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function We(n) {
|
|
1650
1650
|
if (n === null || typeof n != "object" || Array.isArray(n))
|
|
1651
1651
|
return !0;
|
|
1652
1652
|
if (typeof n.type != "string") return !1;
|
|
@@ -1669,20 +1669,20 @@ function Fe(n) {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
return !!("children" in n && Array.isArray(n.children));
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1673
|
-
const o =
|
|
1672
|
+
function qe(n, e, t, l) {
|
|
1673
|
+
const o = ze(n, t);
|
|
1674
1674
|
let a;
|
|
1675
1675
|
if (l != null) {
|
|
1676
1676
|
if (typeof l == "number") {
|
|
1677
1677
|
if (Number.isNaN(l)) return;
|
|
1678
1678
|
a = l;
|
|
1679
|
-
} else typeof l == "boolean" ? a = l : typeof l == "string" ? o.spaceSeparated ? a =
|
|
1679
|
+
} else typeof l == "boolean" ? a = l : typeof l == "string" ? o.spaceSeparated ? a = Mn(l) : o.commaSeparated ? a = Tn(l) : o.commaOrSpaceSeparated ? a = Mn(Tn(l).join(" ")) : a = Rn(o, o.property, l) : Array.isArray(l) ? a = [...l] : a = o.property === "style" ? Ge(l) : String(l);
|
|
1680
1680
|
if (Array.isArray(a)) {
|
|
1681
1681
|
const r = [];
|
|
1682
1682
|
for (const c of a)
|
|
1683
1683
|
r.push(
|
|
1684
1684
|
/** @type {number | string} */
|
|
1685
|
-
|
|
1685
|
+
Rn(o, o.property, c)
|
|
1686
1686
|
);
|
|
1687
1687
|
a = r;
|
|
1688
1688
|
}
|
|
@@ -1703,7 +1703,7 @@ function mn(n, e) {
|
|
|
1703
1703
|
else
|
|
1704
1704
|
throw new Error("Expected node, nodes, or string, got `" + e + "`");
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function Rn(n, e, t) {
|
|
1707
1707
|
if (typeof t == "string") {
|
|
1708
1708
|
if (n.number && t && !Number.isNaN(Number(t)))
|
|
1709
1709
|
return Number(t);
|
|
@@ -1712,19 +1712,19 @@ function Dn(n, e, t) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
return t;
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Ge(n) {
|
|
1716
1716
|
const e = [];
|
|
1717
1717
|
for (const [t, l] of Object.entries(n))
|
|
1718
1718
|
e.push([t, l].join(": "));
|
|
1719
1719
|
return e.join("; ");
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function Ke(n) {
|
|
1722
1722
|
const e = /* @__PURE__ */ new Map();
|
|
1723
1723
|
for (const t of n)
|
|
1724
1724
|
e.set(t.toLowerCase(), t);
|
|
1725
1725
|
return e;
|
|
1726
1726
|
}
|
|
1727
|
-
const
|
|
1727
|
+
const _e = [
|
|
1728
1728
|
"altGlyph",
|
|
1729
1729
|
"altGlyphDef",
|
|
1730
1730
|
"altGlyphItem",
|
|
@@ -1764,9 +1764,9 @@ const Ge = [
|
|
|
1764
1764
|
"solidColor",
|
|
1765
1765
|
"textArea",
|
|
1766
1766
|
"textPath"
|
|
1767
|
-
],
|
|
1768
|
-
|
|
1769
|
-
const
|
|
1767
|
+
], Ye = Jn($e, "div");
|
|
1768
|
+
Jn(Fe, "g", _e);
|
|
1769
|
+
const Xe = [
|
|
1770
1770
|
"AElig",
|
|
1771
1771
|
"AMP",
|
|
1772
1772
|
"Aacute",
|
|
@@ -1873,7 +1873,7 @@ const _e = [
|
|
|
1873
1873
|
"yacute",
|
|
1874
1874
|
"yen",
|
|
1875
1875
|
"yuml"
|
|
1876
|
-
],
|
|
1876
|
+
], jn = {
|
|
1877
1877
|
0: "�",
|
|
1878
1878
|
128: "€",
|
|
1879
1879
|
130: "‚",
|
|
@@ -1903,29 +1903,29 @@ const _e = [
|
|
|
1903
1903
|
158: "ž",
|
|
1904
1904
|
159: "Ÿ"
|
|
1905
1905
|
};
|
|
1906
|
-
function
|
|
1906
|
+
function Qn(n) {
|
|
1907
1907
|
const e = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
1908
1908
|
return e >= 48 && e <= 57;
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function Ze(n) {
|
|
1911
1911
|
const e = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
1912
1912
|
return e >= 97 && e <= 102 || e >= 65 && e <= 70 || e >= 48 && e <= 57;
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function Je(n) {
|
|
1915
1915
|
const e = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
1916
1916
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
1917
1917
|
}
|
|
1918
|
-
function Rn(n) {
|
|
1919
|
-
return Xe(n) || Jn(n);
|
|
1920
|
-
}
|
|
1921
|
-
const jn = document.createElement("i");
|
|
1922
1918
|
function In(n) {
|
|
1919
|
+
return Je(n) || Qn(n);
|
|
1920
|
+
}
|
|
1921
|
+
const Un = document.createElement("i");
|
|
1922
|
+
function zn(n) {
|
|
1923
1923
|
const e = "&" + n + ";";
|
|
1924
|
-
|
|
1925
|
-
const t =
|
|
1924
|
+
Un.innerHTML = e;
|
|
1925
|
+
const t = Un.textContent;
|
|
1926
1926
|
return t.charCodeAt(t.length - 1) === 59 && n !== "semi" || t === e ? !1 : t;
|
|
1927
1927
|
}
|
|
1928
|
-
const
|
|
1928
|
+
const Qe = [
|
|
1929
1929
|
"",
|
|
1930
1930
|
/* 1: Non terminated (named) */
|
|
1931
1931
|
"Named character references must be terminated by a semicolon",
|
|
@@ -1942,51 +1942,51 @@ const Ze = [
|
|
|
1942
1942
|
/* 7: Prohibited (numeric) */
|
|
1943
1943
|
"Numeric character references cannot be outside the permissible Unicode range"
|
|
1944
1944
|
];
|
|
1945
|
-
function
|
|
1945
|
+
function nt(n, e) {
|
|
1946
1946
|
const t = {}, l = typeof t.additional == "string" ? t.additional.charCodeAt(0) : t.additional, o = [];
|
|
1947
|
-
let a = 0, r = -1, c = "", u,
|
|
1948
|
-
t.position && ("start" in t.position || "indent" in t.position ? (
|
|
1949
|
-
let
|
|
1947
|
+
let a = 0, r = -1, c = "", u, s;
|
|
1948
|
+
t.position && ("start" in t.position || "indent" in t.position ? (s = t.position.indent, u = t.position.start) : u = t.position);
|
|
1949
|
+
let m = (u ? u.line : 0) || 1, h = (u ? u.column : 0) || 1, C = L(), y;
|
|
1950
1950
|
for (a--; ++a <= n.length; )
|
|
1951
|
-
if (
|
|
1951
|
+
if (y === 10 && (h = (s ? s[r] : 0) || 1), y = n.charCodeAt(a), y === 38) {
|
|
1952
1952
|
const g = n.charCodeAt(a + 1);
|
|
1953
1953
|
if (g === 9 || g === 10 || g === 12 || g === 32 || g === 38 || g === 60 || Number.isNaN(g) || l && g === l) {
|
|
1954
|
-
c += String.fromCharCode(
|
|
1954
|
+
c += String.fromCharCode(y), h++;
|
|
1955
1955
|
continue;
|
|
1956
1956
|
}
|
|
1957
|
-
const
|
|
1958
|
-
let O =
|
|
1957
|
+
const x = a + 1;
|
|
1958
|
+
let O = x, p = x, S;
|
|
1959
1959
|
if (g === 35) {
|
|
1960
1960
|
p = ++O;
|
|
1961
1961
|
const d = n.charCodeAt(p);
|
|
1962
1962
|
d === 88 || d === 120 ? (S = "hexadecimal", p = ++O) : S = "decimal";
|
|
1963
1963
|
} else
|
|
1964
1964
|
S = "named";
|
|
1965
|
-
let
|
|
1966
|
-
const U = S === "named" ?
|
|
1965
|
+
let v = "", k = "", P = "";
|
|
1966
|
+
const U = S === "named" ? In : S === "decimal" ? Qn : Ze;
|
|
1967
1967
|
for (p--; ++p <= n.length; ) {
|
|
1968
1968
|
const d = n.charCodeAt(p);
|
|
1969
1969
|
if (!U(d))
|
|
1970
1970
|
break;
|
|
1971
|
-
P += String.fromCharCode(d), S === "named" &&
|
|
1971
|
+
P += String.fromCharCode(d), S === "named" && Xe.includes(P) && (v = P, k = zn(P));
|
|
1972
1972
|
}
|
|
1973
1973
|
let R = n.charCodeAt(p) === 59;
|
|
1974
1974
|
if (R) {
|
|
1975
1975
|
p++;
|
|
1976
|
-
const d = S === "named" ?
|
|
1977
|
-
d && (
|
|
1976
|
+
const d = S === "named" ? zn(P) : !1;
|
|
1977
|
+
d && (v = P, k = d);
|
|
1978
1978
|
}
|
|
1979
|
-
let E = 1 + p -
|
|
1979
|
+
let E = 1 + p - x, D = "";
|
|
1980
1980
|
if (!(!R && t.nonTerminated === !1)) if (!P)
|
|
1981
1981
|
S !== "named" && N(4, E);
|
|
1982
1982
|
else if (S === "named") {
|
|
1983
1983
|
if (R && !k)
|
|
1984
1984
|
N(5, 1);
|
|
1985
|
-
else if (
|
|
1986
|
-
const d =
|
|
1985
|
+
else if (v !== P && (p = O + v.length, E = 1 + p - O, R = !1), !R) {
|
|
1986
|
+
const d = v ? 1 : 3;
|
|
1987
1987
|
if (t.attribute) {
|
|
1988
1988
|
const j = n.charCodeAt(p);
|
|
1989
|
-
j === 61 ? (N(d, E), k = "") :
|
|
1989
|
+
j === 61 ? (N(d, E), k = "") : In(j) ? k = "" : N(d, E);
|
|
1990
1990
|
} else
|
|
1991
1991
|
N(d, E);
|
|
1992
1992
|
}
|
|
@@ -1997,61 +1997,61 @@ function Je(n, e) {
|
|
|
1997
1997
|
P,
|
|
1998
1998
|
S === "hexadecimal" ? 16 : 10
|
|
1999
1999
|
);
|
|
2000
|
-
if (
|
|
2000
|
+
if (et(d))
|
|
2001
2001
|
N(7, E), D = "�";
|
|
2002
|
-
else if (d in
|
|
2003
|
-
N(6, E), D =
|
|
2002
|
+
else if (d in jn)
|
|
2003
|
+
N(6, E), D = jn[d];
|
|
2004
2004
|
else {
|
|
2005
2005
|
let j = "";
|
|
2006
|
-
|
|
2006
|
+
tt(d) && N(6, E), d > 65535 && (d -= 65536, j += String.fromCharCode(
|
|
2007
2007
|
d >>> 10 | 55296
|
|
2008
2008
|
), d = 56320 | d & 1023), D = j + String.fromCharCode(d);
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
2011
|
if (D) {
|
|
2012
|
-
|
|
2012
|
+
b(), C = L(), a = p - 1, h += p - x + 1, o.push(D);
|
|
2013
2013
|
const d = L();
|
|
2014
2014
|
d.offset++, t.reference && t.reference.call(
|
|
2015
2015
|
t.referenceContext || void 0,
|
|
2016
2016
|
D,
|
|
2017
2017
|
{ start: C, end: d },
|
|
2018
|
-
n.slice(
|
|
2018
|
+
n.slice(x - 1, p)
|
|
2019
2019
|
), C = d;
|
|
2020
2020
|
} else
|
|
2021
|
-
P = n.slice(
|
|
2021
|
+
P = n.slice(x - 1, p), c += P, h += P.length, a = p - 1;
|
|
2022
2022
|
} else
|
|
2023
|
-
|
|
2023
|
+
y === 10 && (m++, r++, h = 0), Number.isNaN(y) ? b() : (c += String.fromCharCode(y), h++);
|
|
2024
2024
|
return o.join("");
|
|
2025
2025
|
function L() {
|
|
2026
2026
|
return {
|
|
2027
|
-
line:
|
|
2028
|
-
column:
|
|
2027
|
+
line: m,
|
|
2028
|
+
column: h,
|
|
2029
2029
|
offset: a + ((u ? u.offset : 0) || 0)
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
function N(g,
|
|
2032
|
+
function N(g, x) {
|
|
2033
2033
|
let O;
|
|
2034
|
-
t.warning && (O = L(), O.column +=
|
|
2034
|
+
t.warning && (O = L(), O.column += x, O.offset += x, t.warning.call(
|
|
2035
2035
|
t.warningContext || void 0,
|
|
2036
|
-
|
|
2036
|
+
Qe[g],
|
|
2037
2037
|
O,
|
|
2038
2038
|
g
|
|
2039
2039
|
));
|
|
2040
2040
|
}
|
|
2041
|
-
function
|
|
2041
|
+
function b() {
|
|
2042
2042
|
c && (o.push(c), t.text && t.text.call(t.textContext || void 0, c, {
|
|
2043
2043
|
start: C,
|
|
2044
2044
|
end: L()
|
|
2045
2045
|
}), c = "");
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function et(n) {
|
|
2049
2049
|
return n >= 55296 && n <= 57343 || n > 1114111;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function tt(n) {
|
|
2052
2052
|
return n >= 1 && n <= 8 || n === 11 || n >= 13 && n <= 31 || n >= 127 && n <= 159 || n >= 64976 && n <= 65007 || (n & 65535) === 65535 || (n & 65535) === 65534;
|
|
2053
2053
|
}
|
|
2054
|
-
var
|
|
2054
|
+
var lt = 0, ln = {}, M = {
|
|
2055
2055
|
/**
|
|
2056
2056
|
* A namespace for utility methods.
|
|
2057
2057
|
*
|
|
@@ -2088,7 +2088,7 @@ var et = 0, ln = {}, M = {
|
|
|
2088
2088
|
* @returns {number}
|
|
2089
2089
|
*/
|
|
2090
2090
|
objId: function(n) {
|
|
2091
|
-
return n.__id || Object.defineProperty(n, "__id", { value: ++
|
|
2091
|
+
return n.__id || Object.defineProperty(n, "__id", { value: ++lt }), n.__id;
|
|
2092
2092
|
},
|
|
2093
2093
|
/**
|
|
2094
2094
|
* Creates a deep clone of the given object.
|
|
@@ -2264,8 +2264,8 @@ var et = 0, ln = {}, M = {
|
|
|
2264
2264
|
t.hasOwnProperty(r) || (a[r] = o[r]);
|
|
2265
2265
|
}
|
|
2266
2266
|
var u = l[n];
|
|
2267
|
-
return l[n] = a, M.languages.DFS(M.languages, function(
|
|
2268
|
-
|
|
2267
|
+
return l[n] = a, M.languages.DFS(M.languages, function(s, m) {
|
|
2268
|
+
m === u && s != n && (this[s] = a);
|
|
2269
2269
|
}), a;
|
|
2270
2270
|
},
|
|
2271
2271
|
// Traverse a language definition with Depth First Search
|
|
@@ -2342,8 +2342,8 @@ var et = 0, ln = {}, M = {
|
|
|
2342
2342
|
e[l] = t[l];
|
|
2343
2343
|
delete e.rest;
|
|
2344
2344
|
}
|
|
2345
|
-
var o = new
|
|
2346
|
-
return an(o, o.head, n),
|
|
2345
|
+
var o = new ot();
|
|
2346
|
+
return an(o, o.head, n), ne(n, o, e, o.head, 0), it(o);
|
|
2347
2347
|
},
|
|
2348
2348
|
/**
|
|
2349
2349
|
* @namespace
|
|
@@ -2389,7 +2389,7 @@ var et = 0, ln = {}, M = {
|
|
|
2389
2389
|
function X(n, e, t, l) {
|
|
2390
2390
|
this.type = n, this.content = e, this.alias = t, this.length = (l || "").length | 0;
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function Bn(n, e, t, l) {
|
|
2393
2393
|
n.lastIndex = e;
|
|
2394
2394
|
var o = n.exec(t);
|
|
2395
2395
|
if (o && l && o[1]) {
|
|
@@ -2398,7 +2398,7 @@ function Un(n, e, t, l) {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return o;
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function ne(n, e, t, l, o, a) {
|
|
2402
2402
|
for (var r in t)
|
|
2403
2403
|
if (!(!t.hasOwnProperty(r) || !t[r])) {
|
|
2404
2404
|
var c = t[r];
|
|
@@ -2406,50 +2406,50 @@ function Qn(n, e, t, l, o, a) {
|
|
|
2406
2406
|
for (var u = 0; u < c.length; ++u) {
|
|
2407
2407
|
if (a && a.cause == r + "," + u)
|
|
2408
2408
|
return;
|
|
2409
|
-
var
|
|
2410
|
-
if (C && !
|
|
2411
|
-
var L =
|
|
2412
|
-
|
|
2409
|
+
var s = c[u], m = s.inside, h = !!s.lookbehind, C = !!s.greedy, y = s.alias;
|
|
2410
|
+
if (C && !s.pattern.global) {
|
|
2411
|
+
var L = s.pattern.toString().match(/[imsuy]*$/)[0];
|
|
2412
|
+
s.pattern = RegExp(s.pattern.source, L + "g");
|
|
2413
2413
|
}
|
|
2414
|
-
for (var N =
|
|
2415
|
-
var
|
|
2414
|
+
for (var N = s.pattern || s, b = l.next, g = o; b !== e.tail && !(a && g >= a.reach); g += b.value.length, b = b.next) {
|
|
2415
|
+
var x = b.value;
|
|
2416
2416
|
if (e.length > n.length)
|
|
2417
2417
|
return;
|
|
2418
|
-
if (!(
|
|
2418
|
+
if (!(x instanceof X)) {
|
|
2419
2419
|
var O = 1, p;
|
|
2420
2420
|
if (C) {
|
|
2421
|
-
if (p =
|
|
2421
|
+
if (p = Bn(N, g, n, h), !p || p.index >= n.length)
|
|
2422
2422
|
break;
|
|
2423
|
-
var P = p.index, S = p.index + p[0].length,
|
|
2424
|
-
for (
|
|
2425
|
-
|
|
2426
|
-
if (
|
|
2423
|
+
var P = p.index, S = p.index + p[0].length, v = g;
|
|
2424
|
+
for (v += b.value.length; P >= v; )
|
|
2425
|
+
b = b.next, v += b.value.length;
|
|
2426
|
+
if (v -= b.value.length, g = v, b.value instanceof X)
|
|
2427
2427
|
continue;
|
|
2428
|
-
for (var k =
|
|
2429
|
-
O++,
|
|
2430
|
-
O--,
|
|
2431
|
-
} else if (p =
|
|
2428
|
+
for (var k = b; k !== e.tail && (v < S || typeof k.value == "string"); k = k.next)
|
|
2429
|
+
O++, v += k.value.length;
|
|
2430
|
+
O--, x = n.slice(g, v), p.index -= g;
|
|
2431
|
+
} else if (p = Bn(N, 0, x, h), !p)
|
|
2432
2432
|
continue;
|
|
2433
|
-
var P = p.index, U = p[0], R =
|
|
2433
|
+
var P = p.index, U = p[0], R = x.slice(0, P), E = x.slice(P + U.length), D = g + x.length;
|
|
2434
2434
|
a && D > a.reach && (a.reach = D);
|
|
2435
|
-
var d =
|
|
2436
|
-
R && (d = an(e, d, R), g += R.length),
|
|
2435
|
+
var d = b.prev;
|
|
2436
|
+
R && (d = an(e, d, R), g += R.length), at(e, d, O);
|
|
2437
2437
|
var j = new X(
|
|
2438
2438
|
r,
|
|
2439
|
-
|
|
2440
|
-
|
|
2439
|
+
m ? M.tokenize(U, m) : U,
|
|
2440
|
+
y,
|
|
2441
2441
|
U
|
|
2442
2442
|
);
|
|
2443
|
-
if (
|
|
2443
|
+
if (b = an(e, d, j), E && an(e, b, E), O > 1) {
|
|
2444
2444
|
var B = {
|
|
2445
2445
|
cause: r + "," + u,
|
|
2446
2446
|
reach: D
|
|
2447
2447
|
};
|
|
2448
|
-
|
|
2448
|
+
ne(
|
|
2449
2449
|
n,
|
|
2450
2450
|
e,
|
|
2451
2451
|
t,
|
|
2452
|
-
|
|
2452
|
+
b.prev,
|
|
2453
2453
|
g,
|
|
2454
2454
|
B
|
|
2455
2455
|
), a && B.reach > a.reach && (a.reach = B.reach);
|
|
@@ -2459,7 +2459,7 @@ function Qn(n, e, t, l, o, a) {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function ot() {
|
|
2463
2463
|
var n = { value: null, prev: null, next: null }, e = { value: null, prev: n, next: null };
|
|
2464
2464
|
n.next = e, this.head = n, this.tail = e, this.length = 0;
|
|
2465
2465
|
}
|
|
@@ -2467,29 +2467,29 @@ function an(n, e, t) {
|
|
|
2467
2467
|
var l = e.next, o = { value: t, prev: e, next: l };
|
|
2468
2468
|
return e.next = o, l.prev = o, n.length++, o;
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function at(n, e, t) {
|
|
2471
2471
|
for (var l = e.next, o = 0; o < t && l !== n.tail; o++)
|
|
2472
2472
|
l = l.next;
|
|
2473
2473
|
e.next = l, l.prev = e, n.length -= o;
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function it(n) {
|
|
2476
2476
|
for (var e = [], t = n.head.next; t !== n.tail; )
|
|
2477
2477
|
e.push(t.value), t = t.next;
|
|
2478
2478
|
return e;
|
|
2479
2479
|
}
|
|
2480
|
-
const
|
|
2481
|
-
function
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
const T = new
|
|
2485
|
-
T.highlight =
|
|
2486
|
-
T.register =
|
|
2487
|
-
T.alias =
|
|
2488
|
-
T.registered =
|
|
2489
|
-
T.listLanguages =
|
|
2490
|
-
T.util.encode =
|
|
2480
|
+
const ee = M;
|
|
2481
|
+
function te() {
|
|
2482
|
+
}
|
|
2483
|
+
te.prototype = ee;
|
|
2484
|
+
const T = new te();
|
|
2485
|
+
T.highlight = rt;
|
|
2486
|
+
T.register = ct;
|
|
2487
|
+
T.alias = ut;
|
|
2488
|
+
T.registered = st;
|
|
2489
|
+
T.listLanguages = ft;
|
|
2490
|
+
T.util.encode = dt;
|
|
2491
2491
|
T.Token.stringify = yn;
|
|
2492
|
-
function
|
|
2492
|
+
function rt(n, e) {
|
|
2493
2493
|
if (typeof n != "string")
|
|
2494
2494
|
throw new TypeError("Expected `string` for `value`, got `" + n + "`");
|
|
2495
2495
|
let t, l;
|
|
@@ -2506,15 +2506,15 @@ function at(n, e) {
|
|
|
2506
2506
|
return {
|
|
2507
2507
|
type: "root",
|
|
2508
2508
|
// @ts-expect-error: we hacked Prism to accept and return the things we want.
|
|
2509
|
-
children:
|
|
2509
|
+
children: ee.highlight.call(T, n, t, l)
|
|
2510
2510
|
};
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function ct(n) {
|
|
2513
2513
|
if (typeof n != "function" || !n.displayName)
|
|
2514
2514
|
throw new Error("Expected `function` for `syntax`, got `" + n + "`");
|
|
2515
2515
|
Object.hasOwn(T.languages, n.displayName) || n(T);
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function ut(n, e) {
|
|
2518
2518
|
const t = T.languages;
|
|
2519
2519
|
let l = {};
|
|
2520
2520
|
typeof n == "string" ? e && (l[n] = e) : l = n;
|
|
@@ -2527,14 +2527,14 @@ function rt(n, e) {
|
|
|
2527
2527
|
t[r[c]] = t[o];
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function st(n) {
|
|
2531
2531
|
if (typeof n != "string")
|
|
2532
2532
|
throw new TypeError(
|
|
2533
2533
|
"Expected `string` for `aliasOrLanguage`, got `" + n + "`"
|
|
2534
2534
|
);
|
|
2535
2535
|
return Object.hasOwn(T.languages, n);
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function ft() {
|
|
2538
2538
|
const n = T.languages, e = [];
|
|
2539
2539
|
let t;
|
|
2540
2540
|
for (t in n)
|
|
@@ -2564,31 +2564,31 @@ function yn(n, e) {
|
|
|
2564
2564
|
};
|
|
2565
2565
|
return n.alias && t.classes.push(
|
|
2566
2566
|
...typeof n.alias == "string" ? [n.alias] : n.alias
|
|
2567
|
-
), T.hooks.run("wrap", t),
|
|
2567
|
+
), T.hooks.run("wrap", t), Ye(
|
|
2568
2568
|
t.tag + "." + t.classes.join("."),
|
|
2569
|
-
|
|
2569
|
+
gt(t.attributes),
|
|
2570
2570
|
t.content
|
|
2571
2571
|
);
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function dt(n) {
|
|
2574
2574
|
return n;
|
|
2575
2575
|
}
|
|
2576
|
-
function
|
|
2576
|
+
function gt(n) {
|
|
2577
2577
|
let e;
|
|
2578
2578
|
for (e in n)
|
|
2579
|
-
Object.hasOwn(n, e) && (n[e] =
|
|
2579
|
+
Object.hasOwn(n, e) && (n[e] = nt(n[e]));
|
|
2580
2580
|
return n;
|
|
2581
2581
|
}
|
|
2582
|
-
var cn =
|
|
2582
|
+
var cn = De(T, {});
|
|
2583
2583
|
cn.registerLanguage = function(n, e) {
|
|
2584
2584
|
return T.register(e);
|
|
2585
2585
|
};
|
|
2586
2586
|
cn.alias = function(n, e) {
|
|
2587
2587
|
return T.alias(n, e);
|
|
2588
2588
|
};
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
function
|
|
2589
|
+
wn.displayName = "yaml";
|
|
2590
|
+
wn.aliases = ["yml"];
|
|
2591
|
+
function wn(n) {
|
|
2592
2592
|
(function(e) {
|
|
2593
2593
|
var t = /[*&][^\s[\]{},]+/, l = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + l.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + l.source + ")?)", a = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(
|
|
2594
2594
|
/<PLAIN>/g,
|
|
@@ -2596,14 +2596,14 @@ function bn(n) {
|
|
|
2596
2596
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
2597
2597
|
}
|
|
2598
2598
|
), r = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
2599
|
-
function c(u,
|
|
2600
|
-
|
|
2601
|
-
var
|
|
2599
|
+
function c(u, s) {
|
|
2600
|
+
s = (s || "").replace(/m/g, "") + "m";
|
|
2601
|
+
var m = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
2602
2602
|
return o;
|
|
2603
2603
|
}).replace(/<<value>>/g, function() {
|
|
2604
2604
|
return u;
|
|
2605
2605
|
});
|
|
2606
|
-
return RegExp(
|
|
2606
|
+
return RegExp(m, s);
|
|
2607
2607
|
}
|
|
2608
2608
|
e.languages.yaml = {
|
|
2609
2609
|
scalar: {
|
|
@@ -2671,15 +2671,8 @@ function bn(n) {
|
|
|
2671
2671
|
}, e.languages.yml = e.languages.yaml;
|
|
2672
2672
|
})(n);
|
|
2673
2673
|
}
|
|
2674
|
-
cn.registerLanguage("yaml",
|
|
2675
|
-
const
|
|
2676
|
-
color: "var(--malachite-codeblock-foreground)",
|
|
2677
|
-
fontSize: "14px",
|
|
2678
|
-
lineHeight: "20px",
|
|
2679
|
-
fontFamily: "var(--malachite-font-mono, monospace)",
|
|
2680
|
-
textAlign: "left",
|
|
2681
|
-
background: "transparent"
|
|
2682
|
-
}, dt = {
|
|
2674
|
+
cn.registerLanguage("yaml", wn);
|
|
2675
|
+
const pt = {
|
|
2683
2676
|
'code[class*="language-"]': rn,
|
|
2684
2677
|
'pre[class*="language-"]': rn,
|
|
2685
2678
|
comment: { color: "var(--malachite-codeblock-comment)" },
|
|
@@ -2704,36 +2697,58 @@ const rn = {
|
|
|
2704
2697
|
url: { color: "var(--malachite-codeblock-string)" },
|
|
2705
2698
|
number: { color: "var(--malachite-codeblock-number)" },
|
|
2706
2699
|
datetime: { color: "var(--malachite-codeblock-number)" }
|
|
2707
|
-
},
|
|
2700
|
+
}, le = (n) => {
|
|
2701
|
+
if (n.type === "text")
|
|
2702
|
+
return typeof n.value == "string" && n.value.endsWith(`
|
|
2703
|
+
`) ? { ...n, value: n.value.slice(0, -1) } : n;
|
|
2704
|
+
const e = n.children;
|
|
2705
|
+
if (!(e != null && e.length))
|
|
2706
|
+
return n;
|
|
2707
|
+
const t = e[e.length - 1], l = le(t);
|
|
2708
|
+
return l === t ? n : { ...n, children: [...e.slice(0, -1), l] };
|
|
2709
|
+
}, vt = ({
|
|
2708
2710
|
code: n,
|
|
2709
2711
|
language: e,
|
|
2710
2712
|
showLineNumbers: t = !0,
|
|
2711
2713
|
wrapLines: l = !1,
|
|
2712
2714
|
copyClearance: o = !1
|
|
2713
|
-
}) =>
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2715
|
+
}) => {
|
|
2716
|
+
const a = n.split(`
|
|
2717
|
+
`);
|
|
2718
|
+
return /* @__PURE__ */ On(
|
|
2719
|
+
cn,
|
|
2720
|
+
{
|
|
2721
|
+
language: e,
|
|
2722
|
+
style: pt,
|
|
2723
|
+
wrapLines: !0,
|
|
2724
|
+
renderer: ({ rows: c, stylesheet: u, useInlineStyles: s }) => c.map((m, h) => /* @__PURE__ */ On(
|
|
2725
|
+
se,
|
|
2726
|
+
{
|
|
2727
|
+
line: a[h] ?? "",
|
|
2728
|
+
lineNumber: t ? h + 1 : void 0,
|
|
2729
|
+
wrap: l,
|
|
2730
|
+
children: vn({
|
|
2731
|
+
node: le(m),
|
|
2732
|
+
stylesheet: u,
|
|
2733
|
+
useInlineStyles: s,
|
|
2734
|
+
key: `code-line-${h}`
|
|
2735
|
+
})
|
|
2736
|
+
},
|
|
2737
|
+
h
|
|
2738
|
+
)),
|
|
2739
|
+
customStyle: {
|
|
2740
|
+
...rn,
|
|
2741
|
+
margin: 0,
|
|
2742
|
+
padding: "16px",
|
|
2743
|
+
paddingRight: o ? "44px" : "16px",
|
|
2744
|
+
overflow: "auto"
|
|
2745
|
+
},
|
|
2746
|
+
codeTagProps: { style: rn },
|
|
2747
|
+
children: n
|
|
2748
|
+
}
|
|
2749
|
+
);
|
|
2750
|
+
};
|
|
2736
2751
|
export {
|
|
2737
|
-
|
|
2752
|
+
vt as default
|
|
2738
2753
|
};
|
|
2739
|
-
//# sourceMappingURL=CodeBlockHighlighter-
|
|
2754
|
+
//# sourceMappingURL=CodeBlockHighlighter-D-G_ejzN.js.map
|