@stackone/malachite 2.16.0 → 2.16.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-FRBmWthe.js → CodeBlockHighlighter-CvA6nVfU.js} +74 -72
- package/dist/{CodeBlockHighlighter-FRBmWthe.js.map → CodeBlockHighlighter-CvA6nVfU.js.map} +1 -1
- package/dist/{index-DB8AAfU8.js → index-YNe-JV3F.js} +11 -5
- package/dist/index-YNe-JV3F.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-DB8AAfU8.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as Pn } from "react/jsx-runtime";
|
|
2
|
-
import { _ as ue, a as se, C as cn, b as fe } from "./index-
|
|
2
|
+
import { _ as ue, a as se, C as cn, b as fe } from "./index-YNe-JV3F.js";
|
|
3
3
|
import H from "react";
|
|
4
4
|
function de(n, e) {
|
|
5
5
|
if (n == null) return {};
|
|
@@ -113,7 +113,7 @@ function xe(n) {
|
|
|
113
113
|
function Nn(n) {
|
|
114
114
|
return n.join(" ");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ke(n, e) {
|
|
117
117
|
var t = 0;
|
|
118
118
|
return function(l) {
|
|
119
119
|
return t += 1, l.map(function(o, a) {
|
|
@@ -131,14 +131,14 @@ function vn(n) {
|
|
|
131
131
|
if (u === "text")
|
|
132
132
|
return m;
|
|
133
133
|
if (s) {
|
|
134
|
-
var v =
|
|
134
|
+
var v = ke(t, a), b;
|
|
135
135
|
if (!a)
|
|
136
136
|
b = K(K({}, c), {}, {
|
|
137
137
|
className: Nn(c.className)
|
|
138
138
|
});
|
|
139
139
|
else {
|
|
140
|
-
var g = Object.keys(t).reduce(function(p,
|
|
141
|
-
return
|
|
140
|
+
var g = Object.keys(t).reduce(function(p, k) {
|
|
141
|
+
return k.split(".").forEach(function(P) {
|
|
142
142
|
p.includes(P) || p.push(P);
|
|
143
143
|
}), p;
|
|
144
144
|
}, []), O = c.className && c.className.includes("token") ? ["token"] : [], N = c.className && O.concat(c.className.filter(function(p) {
|
|
@@ -155,7 +155,7 @@ function vn(n) {
|
|
|
155
155
|
}, b), w);
|
|
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
|
};
|
|
@@ -229,7 +229,7 @@ function Fn(n, e) {
|
|
|
229
229
|
}]
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Wn(n, e, t) {
|
|
233
233
|
var l = {
|
|
234
234
|
display: "inline-block",
|
|
235
235
|
minWidth: Ae(t),
|
|
@@ -242,7 +242,7 @@ function Vn(n, e, t) {
|
|
|
242
242
|
function an(n) {
|
|
243
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, v = n.wrapLongLines, b = n.wrapLines, g = b === void 0 ? !1 : b, O = g ? $({}, typeof c == "function" ? c(t) : c) : {};
|
|
244
244
|
if (O.className = O.className ? [].concat(gn(O.className.trim().split(/\s+/)), gn(s)) : s, t && a) {
|
|
245
|
-
var N =
|
|
245
|
+
var N = Wn(l, t, o);
|
|
246
246
|
e.unshift(Fn(t, N));
|
|
247
247
|
}
|
|
248
248
|
return v & m && (O.style = $({
|
|
@@ -254,7 +254,7 @@ function an(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,7 +266,7 @@ function Wn(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
|
}
|
|
@@ -274,11 +274,11 @@ function Wn(n) {
|
|
|
274
274
|
return t;
|
|
275
275
|
}
|
|
276
276
|
function Ee(n, e, t, l, o, a, r, c, u) {
|
|
277
|
-
var s, m =
|
|
278
|
-
function O(
|
|
277
|
+
var s, m = Vn(n.value), v = [], b = -1, g = 0;
|
|
278
|
+
function O(S, y) {
|
|
279
279
|
var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
280
280
|
return an({
|
|
281
|
-
children:
|
|
281
|
+
children: S,
|
|
282
282
|
lineNumber: y,
|
|
283
283
|
lineNumberStyle: c,
|
|
284
284
|
largestLineNumber: r,
|
|
@@ -290,16 +290,16 @@ function Ee(n, e, t, l, o, a, r, c, u) {
|
|
|
290
290
|
wrapLines: e
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
function N(
|
|
293
|
+
function N(S, y) {
|
|
294
294
|
if (l && y && o) {
|
|
295
|
-
var C =
|
|
296
|
-
|
|
295
|
+
var C = Wn(c, y, r);
|
|
296
|
+
S.unshift(Fn(y, C));
|
|
297
297
|
}
|
|
298
|
-
return
|
|
298
|
+
return S;
|
|
299
299
|
}
|
|
300
|
-
function w(
|
|
300
|
+
function w(S, y) {
|
|
301
301
|
var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
302
|
-
return e || C.length > 0 ? O(
|
|
302
|
+
return e || C.length > 0 ? O(S, y, C) : N(S, y);
|
|
303
303
|
}
|
|
304
304
|
for (var p = function() {
|
|
305
305
|
var y = m[g], C = y.children[0].value, L = Pe(C);
|
|
@@ -334,7 +334,7 @@ function Ee(n, e, t, l, o, a, r, c, u) {
|
|
|
334
334
|
v.push(F);
|
|
335
335
|
}
|
|
336
336
|
} else {
|
|
337
|
-
var
|
|
337
|
+
var W = [d], G = w(W, D, y.properties.className);
|
|
338
338
|
v.push(G);
|
|
339
339
|
}
|
|
340
340
|
}), b = g;
|
|
@@ -343,9 +343,9 @@ function Ee(n, e, t, l, o, a, r, c, u) {
|
|
|
343
343
|
}; g < m.length; )
|
|
344
344
|
p();
|
|
345
345
|
if (b !== m.length - 1) {
|
|
346
|
-
var
|
|
347
|
-
if (
|
|
348
|
-
var P = l && v.length + a, h = w(
|
|
346
|
+
var k = m.slice(b + 1, m.length);
|
|
347
|
+
if (k && k.length) {
|
|
348
|
+
var P = l && v.length + a, h = w(k, P);
|
|
349
349
|
v.push(h);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
@@ -368,7 +368,7 @@ function qn(n) {
|
|
|
368
368
|
function De(n) {
|
|
369
369
|
var e = n.astGenerator, t = n.language, l = n.code, o = n.defaultCodeValue;
|
|
370
370
|
if (qn(e)) {
|
|
371
|
-
var a =
|
|
371
|
+
var a = Se(e, t);
|
|
372
372
|
return t === "text" ? {
|
|
373
373
|
value: o,
|
|
374
374
|
language: "text"
|
|
@@ -391,41 +391,41 @@ function Me(n, e) {
|
|
|
391
391
|
var o, a, r = l.language, c = l.children, u = l.style, s = u === void 0 ? e : u, m = l.customStyle, v = m === void 0 ? {} : m, b = l.codeTagProps, g = b === void 0 ? {
|
|
392
392
|
className: r ? "language-".concat(r) : void 0,
|
|
393
393
|
style: $($({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(r, '"]')])
|
|
394
|
-
} : b, O = l.useInlineStyles, N = O === void 0 ? !0 : O, w = l.showLineNumbers, p = w === void 0 ? !1 : w,
|
|
395
|
-
|
|
396
|
-
var
|
|
394
|
+
} : b, O = l.useInlineStyles, N = O === void 0 ? !0 : O, w = l.showLineNumbers, p = w === void 0 ? !1 : w, k = l.showInlineLineNumbers, P = k === void 0 ? !0 : k, h = l.startingLineNumber, S = h === void 0 ? 1 : h, y = l.lineNumberContainerStyle, C = l.lineNumberStyle, L = C === void 0 ? {} : C, 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, en = B === void 0 ? "pre" : B, Y = l.CodeTag, tn = Y === void 0 ? "code" : Y, ln = l.code, F = ln === void 0 ? (Array.isArray(c) ? c[0] : c) || "" : ln, W = l.astGenerator, G = de(l, Ce);
|
|
395
|
+
W = W || n;
|
|
396
|
+
var kn = p ? /* @__PURE__ */ H.createElement(Ne, {
|
|
397
397
|
containerStyle: y,
|
|
398
398
|
codeStyle: g.style || {},
|
|
399
399
|
numberStyle: L,
|
|
400
|
-
startingLineNumber:
|
|
400
|
+
startingLineNumber: S,
|
|
401
401
|
codeString: F
|
|
402
402
|
}) : null, ae = s.hljs || s['pre[class*="language-"]'] || {
|
|
403
403
|
backgroundColor: "#fff"
|
|
404
|
-
},
|
|
404
|
+
}, Sn = qn(W) ? "hljs" : "prismjs", Cn = N ? Object.assign({}, G, {
|
|
405
405
|
style: Object.assign({}, ae, v)
|
|
406
406
|
}) : Object.assign({}, G, {
|
|
407
|
-
className: G.className ? "".concat(
|
|
407
|
+
className: G.className ? "".concat(Sn, " ").concat(G.className) : Sn,
|
|
408
408
|
style: Object.assign({}, v)
|
|
409
409
|
});
|
|
410
410
|
if (E ? g.style = $({
|
|
411
411
|
whiteSpace: "pre-wrap"
|
|
412
412
|
}, g.style) : g.style = $({
|
|
413
413
|
whiteSpace: "pre"
|
|
414
|
-
}, g.style), !
|
|
415
|
-
return /* @__PURE__ */ H.createElement(en, Cn,
|
|
414
|
+
}, g.style), !W)
|
|
415
|
+
return /* @__PURE__ */ H.createElement(en, Cn, kn, /* @__PURE__ */ H.createElement(tn, g, F));
|
|
416
416
|
(U === void 0 && j || E) && (U = !0), j = j || Te;
|
|
417
417
|
var On = [{
|
|
418
418
|
type: "text",
|
|
419
419
|
value: F
|
|
420
420
|
}], un = De({
|
|
421
|
-
astGenerator:
|
|
421
|
+
astGenerator: W,
|
|
422
422
|
language: r,
|
|
423
423
|
code: F,
|
|
424
424
|
defaultCodeValue: On
|
|
425
425
|
});
|
|
426
426
|
un.language === null && (un.value = On);
|
|
427
|
-
var ie = (o = (a = F.match(/\n/g)) === null || a === void 0 ? void 0 : a.length) !== null && o !== void 0 ? o : 0, re =
|
|
428
|
-
return /* @__PURE__ */ H.createElement(en, Cn, /* @__PURE__ */ H.createElement(tn, g, !P &&
|
|
427
|
+
var ie = (o = (a = F.match(/\n/g)) === null || a === void 0 ? void 0 : a.length) !== null && o !== void 0 ? o : 0, re = S + ie, ce = Ee(un, U, d, p, P, S, re, L, E);
|
|
428
|
+
return /* @__PURE__ */ H.createElement(en, Cn, /* @__PURE__ */ H.createElement(tn, g, !P && kn, j({
|
|
429
429
|
rows: ce,
|
|
430
430
|
stylesheet: s,
|
|
431
431
|
useInlineStyles: N
|
|
@@ -485,7 +485,7 @@ I.prototype.property = "";
|
|
|
485
485
|
I.prototype.spaceSeparated = !1;
|
|
486
486
|
I.prototype.space = void 0;
|
|
487
487
|
let Re = 0;
|
|
488
|
-
const f = q(), A = q(), pn = q(), i = q(), x = q(),
|
|
488
|
+
const f = q(), A = q(), pn = q(), i = q(), x = q(), V = q(), z = q();
|
|
489
489
|
function q() {
|
|
490
490
|
return 2 ** ++Re;
|
|
491
491
|
}
|
|
@@ -494,7 +494,7 @@ const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
494
494
|
boolean: f,
|
|
495
495
|
booleanish: A,
|
|
496
496
|
commaOrSpaceSeparated: z,
|
|
497
|
-
commaSeparated:
|
|
497
|
+
commaSeparated: V,
|
|
498
498
|
number: i,
|
|
499
499
|
overloadedBoolean: pn,
|
|
500
500
|
spaceSeparated: x
|
|
@@ -615,7 +615,7 @@ const je = _({
|
|
|
615
615
|
properties: {
|
|
616
616
|
// Standard Properties.
|
|
617
617
|
abbr: null,
|
|
618
|
-
accept:
|
|
618
|
+
accept: V,
|
|
619
619
|
acceptCharset: x,
|
|
620
620
|
accessKey: x,
|
|
621
621
|
action: null,
|
|
@@ -647,7 +647,7 @@ const je = _({
|
|
|
647
647
|
contentEditable: A,
|
|
648
648
|
controls: f,
|
|
649
649
|
controlsList: x,
|
|
650
|
-
coords: i |
|
|
650
|
+
coords: i | V,
|
|
651
651
|
crossOrigin: null,
|
|
652
652
|
data: null,
|
|
653
653
|
dateTime: null,
|
|
@@ -965,7 +965,7 @@ const je = _({
|
|
|
965
965
|
credentialless: f,
|
|
966
966
|
disablePictureInPicture: f,
|
|
967
967
|
disableRemotePlayback: f,
|
|
968
|
-
exportParts:
|
|
968
|
+
exportParts: V,
|
|
969
969
|
part: x,
|
|
970
970
|
prefix: null,
|
|
971
971
|
property: null,
|
|
@@ -1235,9 +1235,9 @@ const je = _({
|
|
|
1235
1235
|
from: null,
|
|
1236
1236
|
fx: null,
|
|
1237
1237
|
fy: null,
|
|
1238
|
-
g1:
|
|
1239
|
-
g2:
|
|
1240
|
-
glyphName:
|
|
1238
|
+
g1: V,
|
|
1239
|
+
g2: V,
|
|
1240
|
+
glyphName: V,
|
|
1241
1241
|
glyphOrientationHorizontal: null,
|
|
1242
1242
|
glyphOrientationVertical: null,
|
|
1243
1243
|
glyphRef: null,
|
|
@@ -1588,7 +1588,7 @@ function He(n) {
|
|
|
1588
1588
|
function $e(n) {
|
|
1589
1589
|
return n.charAt(1).toUpperCase();
|
|
1590
1590
|
}
|
|
1591
|
-
const Fe = Gn([Kn, je, Xn, Zn, Jn], "html"),
|
|
1591
|
+
const Fe = Gn([Kn, je, Xn, Zn, Jn], "html"), We = Gn([Kn, Ie, Xn, Zn, Jn], "svg");
|
|
1592
1592
|
function Dn(n) {
|
|
1593
1593
|
const e = [], t = String(n || "");
|
|
1594
1594
|
let l = t.indexOf(","), o = 0, a = !1;
|
|
@@ -1600,7 +1600,7 @@ function Dn(n) {
|
|
|
1600
1600
|
return e;
|
|
1601
1601
|
}
|
|
1602
1602
|
const Mn = /[#.]/g;
|
|
1603
|
-
function
|
|
1603
|
+
function Ve(n, e) {
|
|
1604
1604
|
const t = n || "", l = {};
|
|
1605
1605
|
let o = 0, a, r;
|
|
1606
1606
|
for (; o < t.length; ) {
|
|
@@ -1632,7 +1632,7 @@ function Qn(n, e, t) {
|
|
|
1632
1632
|
);
|
|
1633
1633
|
c.unshift(s);
|
|
1634
1634
|
} else {
|
|
1635
|
-
u =
|
|
1635
|
+
u = Ve(a, e);
|
|
1636
1636
|
const s = u.tagName.toLowerCase(), m = l ? l.get(s) : void 0;
|
|
1637
1637
|
if (u.tagName = m || s, qe(r))
|
|
1638
1638
|
c.unshift(r);
|
|
@@ -1765,7 +1765,7 @@ const Ye = [
|
|
|
1765
1765
|
"textArea",
|
|
1766
1766
|
"textPath"
|
|
1767
1767
|
], Xe = Qn(Fe, "div");
|
|
1768
|
-
Qn(
|
|
1768
|
+
Qn(We, "g", Ye);
|
|
1769
1769
|
const Ze = [
|
|
1770
1770
|
"AElig",
|
|
1771
1771
|
"AMP",
|
|
@@ -1954,32 +1954,32 @@ function et(n, e) {
|
|
|
1954
1954
|
c += String.fromCharCode(g), v++;
|
|
1955
1955
|
continue;
|
|
1956
1956
|
}
|
|
1957
|
-
const
|
|
1958
|
-
let P =
|
|
1957
|
+
const k = a + 1;
|
|
1958
|
+
let P = k, h = k, S;
|
|
1959
1959
|
if (p === 35) {
|
|
1960
1960
|
h = ++P;
|
|
1961
1961
|
const d = n.charCodeAt(h);
|
|
1962
|
-
d === 88 || d === 120 ? (
|
|
1962
|
+
d === 88 || d === 120 ? (S = "hexadecimal", h = ++P) : S = "decimal";
|
|
1963
1963
|
} else
|
|
1964
|
-
|
|
1964
|
+
S = "named";
|
|
1965
1965
|
let y = "", C = "", L = "";
|
|
1966
|
-
const U =
|
|
1966
|
+
const U = S === "named" ? Un : S === "decimal" ? ne : Je;
|
|
1967
1967
|
for (h--; ++h <= n.length; ) {
|
|
1968
1968
|
const d = n.charCodeAt(h);
|
|
1969
1969
|
if (!U(d))
|
|
1970
1970
|
break;
|
|
1971
|
-
L += String.fromCharCode(d),
|
|
1971
|
+
L += String.fromCharCode(d), S === "named" && Ze.includes(L) && (y = L, C = Bn(L));
|
|
1972
1972
|
}
|
|
1973
1973
|
let R = n.charCodeAt(h) === 59;
|
|
1974
1974
|
if (R) {
|
|
1975
1975
|
h++;
|
|
1976
|
-
const d =
|
|
1976
|
+
const d = S === "named" ? Bn(L) : !1;
|
|
1977
1977
|
d && (y = L, C = d);
|
|
1978
1978
|
}
|
|
1979
|
-
let E = 1 + h -
|
|
1979
|
+
let E = 1 + h - k, D = "";
|
|
1980
1980
|
if (!(!R && t.nonTerminated === !1)) if (!L)
|
|
1981
|
-
|
|
1982
|
-
else if (
|
|
1981
|
+
S !== "named" && N(4, E);
|
|
1982
|
+
else if (S === "named") {
|
|
1983
1983
|
if (R && !C)
|
|
1984
1984
|
N(5, 1);
|
|
1985
1985
|
else if (y !== L && (h = P + y.length, E = 1 + h - P, R = !1), !R) {
|
|
@@ -1995,7 +1995,7 @@ function et(n, e) {
|
|
|
1995
1995
|
R || N(2, E);
|
|
1996
1996
|
let d = Number.parseInt(
|
|
1997
1997
|
L,
|
|
1998
|
-
|
|
1998
|
+
S === "hexadecimal" ? 16 : 10
|
|
1999
1999
|
);
|
|
2000
2000
|
if (tt(d))
|
|
2001
2001
|
N(7, E), D = "�";
|
|
@@ -2009,16 +2009,16 @@ function et(n, e) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
2011
|
if (D) {
|
|
2012
|
-
w(), b = O(), a = h - 1, v += h -
|
|
2012
|
+
w(), b = O(), a = h - 1, v += h - k + 1, o.push(D);
|
|
2013
2013
|
const d = O();
|
|
2014
2014
|
d.offset++, t.reference && t.reference.call(
|
|
2015
2015
|
t.referenceContext || void 0,
|
|
2016
2016
|
D,
|
|
2017
2017
|
{ start: b, end: d },
|
|
2018
|
-
n.slice(
|
|
2018
|
+
n.slice(k - 1, h)
|
|
2019
2019
|
), b = d;
|
|
2020
2020
|
} else
|
|
2021
|
-
L = n.slice(
|
|
2021
|
+
L = n.slice(k - 1, h), c += L, v += L.length, a = h - 1;
|
|
2022
2022
|
} else
|
|
2023
2023
|
g === 10 && (m++, r++, v = 0), Number.isNaN(g) ? w() : (c += String.fromCharCode(g), v++);
|
|
2024
2024
|
return o.join("");
|
|
@@ -2029,9 +2029,9 @@ function et(n, e) {
|
|
|
2029
2029
|
offset: a + ((u ? u.offset : 0) || 0)
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
function N(p,
|
|
2032
|
+
function N(p, k) {
|
|
2033
2033
|
let P;
|
|
2034
|
-
t.warning && (P = O(), P.column +=
|
|
2034
|
+
t.warning && (P = O(), P.column += k, P.offset += k, t.warning.call(
|
|
2035
2035
|
t.warningContext || void 0,
|
|
2036
2036
|
nt[p],
|
|
2037
2037
|
P,
|
|
@@ -2412,25 +2412,25 @@ function ee(n, e, t, l, o, a) {
|
|
|
2412
2412
|
s.pattern = RegExp(s.pattern.source, O + "g");
|
|
2413
2413
|
}
|
|
2414
2414
|
for (var N = s.pattern || s, w = l.next, p = o; w !== e.tail && !(a && p >= a.reach); p += w.value.length, w = w.next) {
|
|
2415
|
-
var
|
|
2415
|
+
var k = w.value;
|
|
2416
2416
|
if (e.length > n.length)
|
|
2417
2417
|
return;
|
|
2418
|
-
if (!(
|
|
2418
|
+
if (!(k instanceof X)) {
|
|
2419
2419
|
var P = 1, h;
|
|
2420
2420
|
if (b) {
|
|
2421
2421
|
if (h = Hn(N, p, n, v), !h || h.index >= n.length)
|
|
2422
2422
|
break;
|
|
2423
|
-
var L = h.index,
|
|
2423
|
+
var L = h.index, S = h.index + h[0].length, y = p;
|
|
2424
2424
|
for (y += w.value.length; L >= y; )
|
|
2425
2425
|
w = w.next, y += w.value.length;
|
|
2426
2426
|
if (y -= w.value.length, p = y, w.value instanceof X)
|
|
2427
2427
|
continue;
|
|
2428
|
-
for (var C = w; C !== e.tail && (y <
|
|
2428
|
+
for (var C = w; C !== e.tail && (y < S || typeof C.value == "string"); C = C.next)
|
|
2429
2429
|
P++, y += C.value.length;
|
|
2430
|
-
P--,
|
|
2431
|
-
} else if (h = Hn(N, 0,
|
|
2430
|
+
P--, k = n.slice(p, y), h.index -= p;
|
|
2431
|
+
} else if (h = Hn(N, 0, k, v), !h)
|
|
2432
2432
|
continue;
|
|
2433
|
-
var L = h.index, U = h[0], R =
|
|
2433
|
+
var L = h.index, U = h[0], R = k.slice(0, L), E = k.slice(L + U.length), D = p + k.length;
|
|
2434
2434
|
a && D > a.reach && (a.reach = D);
|
|
2435
2435
|
var d = w.prev;
|
|
2436
2436
|
R && (d = rn(e, d, R), p += R.length), it(e, d, P);
|
|
@@ -2778,7 +2778,9 @@ const ht = {
|
|
|
2778
2778
|
paddingRight: o ? "44px" : "16px",
|
|
2779
2779
|
overflow: "auto"
|
|
2780
2780
|
},
|
|
2781
|
-
codeTagProps: {
|
|
2781
|
+
codeTagProps: {
|
|
2782
|
+
style: { ...cn, display: "block", width: "max-content", minWidth: "100%" }
|
|
2783
|
+
},
|
|
2782
2784
|
children: n
|
|
2783
2785
|
}
|
|
2784
2786
|
);
|
|
@@ -2786,4 +2788,4 @@ const ht = {
|
|
|
2786
2788
|
export {
|
|
2787
2789
|
bt as default
|
|
2788
2790
|
};
|
|
2789
|
-
//# sourceMappingURL=CodeBlockHighlighter-
|
|
2791
|
+
//# sourceMappingURL=CodeBlockHighlighter-CvA6nVfU.js.map
|