@covalent/components 8.15.0-beta.7 → 8.15.0-beta.8
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/cell/cell.d.ts +1 -0
- package/cell/cell.d.ts.map +1 -1
- package/cell.js +3 -3
- package/cell.mjs +1 -0
- package/monacoeditorwork/css.worker.bundle.js +45885 -0
- package/monacoeditorwork/editor.worker.bundle.js +9103 -0
- package/monacoeditorwork/html.worker.bundle.js +25134 -0
- package/monacoeditorwork/json.worker.bundle.js +16363 -0
- package/monacoeditorwork/ts.worker.bundle.js +170782 -0
- package/notebook/notebook.d.ts +0 -1
- package/notebook/notebook.d.ts.map +1 -1
- package/notebook.js +5 -5
- package/notebook.mjs +84 -118
- package/package.json +1 -1
- package/assets/css.worker-1af1972f.js +0 -84
- package/assets/editor.worker-df55e1ff.js +0 -8
- package/assets/html.worker-38c267f1.js +0 -456
- package/assets/json.worker-bf861c27.js +0 -39
- package/assets/ts.worker-e151483b.js +0 -33972
package/notebook.mjs
CHANGED
@@ -33,12 +33,12 @@ import "./mwc-list-item-base-3c6a3bfb.mjs";
|
|
33
33
|
import "./observer-be7b92e2.mjs";
|
34
34
|
import "./form-element-abadd335.mjs";
|
35
35
|
import "./list-item-e628f363.mjs";
|
36
|
-
const
|
36
|
+
const qu = {};
|
37
37
|
function T0(u) {
|
38
|
-
let e =
|
38
|
+
let e = qu[u];
|
39
39
|
if (e)
|
40
40
|
return e;
|
41
|
-
e =
|
41
|
+
e = qu[u] = [];
|
42
42
|
for (let t = 0; t < 128; t++) {
|
43
43
|
const n = String.fromCharCode(t);
|
44
44
|
e.push(n);
|
@@ -91,12 +91,12 @@ function V(u, e) {
|
|
91
91
|
}
|
92
92
|
V.defaultChars = ";/?:@&=+$,#";
|
93
93
|
V.componentChars = "";
|
94
|
-
const
|
94
|
+
const Mu = {};
|
95
95
|
function I0(u) {
|
96
|
-
let e =
|
96
|
+
let e = Mu[u];
|
97
97
|
if (e)
|
98
98
|
return e;
|
99
|
-
e =
|
99
|
+
e = Mu[u] = [];
|
100
100
|
for (let t = 0; t < 128; t++) {
|
101
101
|
const n = String.fromCharCode(t);
|
102
102
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
@@ -136,15 +136,15 @@ function uu(u, e, t) {
|
|
136
136
|
}
|
137
137
|
uu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
138
138
|
uu.componentChars = "-_.!~*'()";
|
139
|
-
function
|
139
|
+
function yu(u) {
|
140
140
|
let e = "";
|
141
141
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
142
142
|
}
|
143
143
|
function iu() {
|
144
144
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
145
145
|
}
|
146
|
-
const B0 = /^([a-z0-9.+-]+:)/i, z0 = /:[0-9]*$/,
|
147
|
-
`, " "], R0 = ["{", "}", "|", "\\", "^", "`"].concat(
|
146
|
+
const B0 = /^([a-z0-9.+-]+:)/i, z0 = /:[0-9]*$/, q0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, M0 = ["<", ">", '"', "`", " ", "\r", `
|
147
|
+
`, " "], R0 = ["{", "}", "|", "\\", "^", "`"].concat(M0), L0 = ["'"].concat(R0), Ru = ["%", "/", "?", ";", "#"].concat(L0), Lu = ["/", "?", "#"], P0 = 255, Pu = /^[+a-z0-9A-Z_-]{0,63}$/, O0 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ou = {
|
148
148
|
javascript: !0,
|
149
149
|
"javascript:": !0
|
150
150
|
}, $u = {
|
@@ -168,7 +168,7 @@ function Fu(u, e) {
|
|
168
168
|
iu.prototype.parse = function(u, e) {
|
169
169
|
let t, n, r, c = u;
|
170
170
|
if (c = c.trim(), !e && u.split("#").length === 1) {
|
171
|
-
const s =
|
171
|
+
const s = q0.exec(c);
|
172
172
|
if (s)
|
173
173
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
174
174
|
}
|
@@ -216,7 +216,7 @@ const $0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
216
216
|
__proto__: null,
|
217
217
|
decode: V,
|
218
218
|
encode: uu,
|
219
|
-
format:
|
219
|
+
format: yu,
|
220
220
|
parse: Fu
|
221
221
|
}, Symbol.toStringTag, { value: "Module" })), Ku = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yu = /[\0-\x1F\x7F-\x9F]/, N0 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, vu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, u0 = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, e0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, j0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
222
222
|
__proto__: null,
|
@@ -275,42 +275,42 @@ function G0(u) {
|
|
275
275
|
var e;
|
276
276
|
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = Z0.get(u)) !== null && e !== void 0 ? e : u;
|
277
277
|
}
|
278
|
-
var
|
278
|
+
var y;
|
279
279
|
(function(u) {
|
280
280
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
281
|
-
})(
|
281
|
+
})(y || (y = {}));
|
282
282
|
const W0 = 32;
|
283
283
|
var $;
|
284
284
|
(function(u) {
|
285
285
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
286
286
|
})($ || ($ = {}));
|
287
287
|
function Du(u) {
|
288
|
-
return u >=
|
288
|
+
return u >= y.ZERO && u <= y.NINE;
|
289
289
|
}
|
290
290
|
function J0(u) {
|
291
|
-
return u >=
|
291
|
+
return u >= y.UPPER_A && u <= y.UPPER_F || u >= y.LOWER_A && u <= y.LOWER_F;
|
292
292
|
}
|
293
293
|
function Q0(u) {
|
294
|
-
return u >=
|
294
|
+
return u >= y.UPPER_A && u <= y.UPPER_Z || u >= y.LOWER_A && u <= y.LOWER_Z || Du(u);
|
295
295
|
}
|
296
296
|
function X0(u) {
|
297
|
-
return u ===
|
297
|
+
return u === y.EQUALS || Q0(u);
|
298
298
|
}
|
299
|
-
var
|
299
|
+
var A;
|
300
300
|
(function(u) {
|
301
301
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
302
|
-
})(
|
302
|
+
})(A || (A = {}));
|
303
303
|
var O;
|
304
304
|
(function(u) {
|
305
305
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
306
306
|
})(O || (O = {}));
|
307
307
|
class K0 {
|
308
308
|
constructor(e, t, n) {
|
309
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
309
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = A.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = O.Strict;
|
310
310
|
}
|
311
311
|
/** Resets the instance to make it reusable. */
|
312
312
|
startEntity(e) {
|
313
|
-
this.decodeMode = e, this.state =
|
313
|
+
this.decodeMode = e, this.state = A.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
314
314
|
}
|
315
315
|
/**
|
316
316
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
@@ -325,15 +325,15 @@ class K0 {
|
|
325
325
|
*/
|
326
326
|
write(e, t) {
|
327
327
|
switch (this.state) {
|
328
|
-
case
|
329
|
-
return e.charCodeAt(t) ===
|
330
|
-
case
|
328
|
+
case A.EntityStart:
|
329
|
+
return e.charCodeAt(t) === y.NUM ? (this.state = A.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = A.NamedEntity, this.stateNamedEntity(e, t));
|
330
|
+
case A.NumericStart:
|
331
331
|
return this.stateNumericStart(e, t);
|
332
|
-
case
|
332
|
+
case A.NumericDecimal:
|
333
333
|
return this.stateNumericDecimal(e, t);
|
334
|
-
case
|
334
|
+
case A.NumericHex:
|
335
335
|
return this.stateNumericHex(e, t);
|
336
|
-
case
|
336
|
+
case A.NamedEntity:
|
337
337
|
return this.stateNamedEntity(e, t);
|
338
338
|
}
|
339
339
|
}
|
@@ -347,7 +347,7 @@ class K0 {
|
|
347
347
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
348
348
|
*/
|
349
349
|
stateNumericStart(e, t) {
|
350
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) | W0) ===
|
350
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | W0) === y.LOWER_X ? (this.state = A.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = A.NumericDecimal, this.stateNumericDecimal(e, t));
|
351
351
|
}
|
352
352
|
addToNumericResult(e, t, n, r) {
|
353
353
|
if (t !== n) {
|
@@ -412,11 +412,11 @@ class K0 {
|
|
412
412
|
var n;
|
413
413
|
if (this.consumed <= t)
|
414
414
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
415
|
-
if (e ===
|
415
|
+
if (e === y.SEMI)
|
416
416
|
this.consumed += 1;
|
417
417
|
else if (this.decodeMode === O.Strict)
|
418
418
|
return 0;
|
419
|
-
return this.emitCodePoint(G0(this.result), this.consumed), this.errors && (e !==
|
419
|
+
return this.emitCodePoint(G0(this.result), this.consumed), this.errors && (e !== y.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
420
420
|
}
|
421
421
|
/**
|
422
422
|
* Parses a named entity.
|
@@ -438,7 +438,7 @@ class K0 {
|
|
438
438
|
(c === 0 || // And there should be no invalid characters.
|
439
439
|
X0(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
440
440
|
if (r = n[this.treeIndex], c = (r & $.VALUE_LENGTH) >> 14, c !== 0) {
|
441
|
-
if (i ===
|
441
|
+
if (i === y.SEMI)
|
442
442
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
443
443
|
this.decodeMode !== O.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
444
444
|
}
|
@@ -478,15 +478,15 @@ class K0 {
|
|
478
478
|
end() {
|
479
479
|
var e;
|
480
480
|
switch (this.state) {
|
481
|
-
case
|
481
|
+
case A.NamedEntity:
|
482
482
|
return this.result !== 0 && (this.decodeMode !== O.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
483
|
-
case
|
483
|
+
case A.NumericDecimal:
|
484
484
|
return this.emitNumericEntity(0, 2);
|
485
|
-
case
|
485
|
+
case A.NumericHex:
|
486
486
|
return this.emitNumericEntity(0, 3);
|
487
|
-
case
|
487
|
+
case A.NumericStart:
|
488
488
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
489
|
-
case
|
489
|
+
case A.EntityStart:
|
490
490
|
return 0;
|
491
491
|
}
|
492
492
|
}
|
@@ -793,17 +793,17 @@ const ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
793
793
|
parseLinkDestination: me,
|
794
794
|
parseLinkLabel: _e,
|
795
795
|
parseLinkTitle: ge
|
796
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
797
|
-
|
796
|
+
}, Symbol.toStringTag, { value: "Module" })), q = {};
|
797
|
+
q.code_inline = function(u, e, t, n, r) {
|
798
798
|
const c = u[e];
|
799
799
|
return "<code" + r.renderAttrs(c) + ">" + N(c.content) + "</code>";
|
800
800
|
};
|
801
|
-
|
801
|
+
q.code_block = function(u, e, t, n, r) {
|
802
802
|
const c = u[e];
|
803
803
|
return "<pre" + r.renderAttrs(c) + "><code>" + N(u[e].content) + `</code></pre>
|
804
804
|
`;
|
805
805
|
};
|
806
|
-
|
806
|
+
q.fence = function(u, e, t, n, r) {
|
807
807
|
const c = u[e], i = c.info ? G(c.info).trim() : "";
|
808
808
|
let o = "", a = "";
|
809
809
|
if (i) {
|
@@ -826,32 +826,32 @@ M.fence = function(u, e, t, n, r) {
|
|
826
826
|
return `<pre><code${r.renderAttrs(c)}>${s}</code></pre>
|
827
827
|
`;
|
828
828
|
};
|
829
|
-
|
829
|
+
q.image = function(u, e, t, n, r) {
|
830
830
|
const c = u[e];
|
831
831
|
return c.attrs[c.attrIndex("alt")][1] = r.renderInlineAsText(c.children, t, n), r.renderToken(u, e, t);
|
832
832
|
};
|
833
|
-
|
833
|
+
q.hardbreak = function(u, e, t) {
|
834
834
|
return t.xhtmlOut ? `<br />
|
835
835
|
` : `<br>
|
836
836
|
`;
|
837
837
|
};
|
838
|
-
|
838
|
+
q.softbreak = function(u, e, t) {
|
839
839
|
return t.breaks ? t.xhtmlOut ? `<br />
|
840
840
|
` : `<br>
|
841
841
|
` : `
|
842
842
|
`;
|
843
843
|
};
|
844
|
-
|
844
|
+
q.text = function(u, e) {
|
845
845
|
return N(u[e].content);
|
846
846
|
};
|
847
|
-
|
847
|
+
q.html_block = function(u, e) {
|
848
848
|
return u[e].content;
|
849
849
|
};
|
850
|
-
|
850
|
+
q.html_inline = function(u, e) {
|
851
851
|
return u[e].content;
|
852
852
|
};
|
853
853
|
function W() {
|
854
|
-
this.rules = lu({},
|
854
|
+
this.rules = lu({}, q);
|
855
855
|
}
|
856
856
|
W.prototype.renderAttrs = function(e) {
|
857
857
|
let t, n, r;
|
@@ -1046,11 +1046,11 @@ function Ee(u) {
|
|
1046
1046
|
e = u.src.replace(Ce, `
|
1047
1047
|
`), e = e.replace(De, "�"), u.src = e;
|
1048
1048
|
}
|
1049
|
-
function
|
1049
|
+
function Ae(u) {
|
1050
1050
|
let e;
|
1051
1051
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
1052
1052
|
}
|
1053
|
-
function
|
1053
|
+
function ye(u) {
|
1054
1054
|
const e = u.tokens;
|
1055
1055
|
for (let t = 0, n = e.length; t < n; t++) {
|
1056
1056
|
const r = e[t];
|
@@ -1125,18 +1125,18 @@ function ze(u) {
|
|
1125
1125
|
n.type === "text" && !e && (n.content = n.content.replace(Te, Be)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
1126
1126
|
}
|
1127
1127
|
}
|
1128
|
-
function
|
1128
|
+
function qe(u) {
|
1129
1129
|
let e = 0;
|
1130
1130
|
for (let t = u.length - 1; t >= 0; t--) {
|
1131
1131
|
const n = u[t];
|
1132
1132
|
n.type === "text" && !e && o0.test(n.content) && (n.content = n.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
1133
1133
|
}
|
1134
1134
|
}
|
1135
|
-
function
|
1135
|
+
function Me(u) {
|
1136
1136
|
let e;
|
1137
1137
|
if (u.md.options.typographer)
|
1138
1138
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
1139
|
-
u.tokens[e].type === "inline" && (Se.test(u.tokens[e].content) && ze(u.tokens[e].children), o0.test(u.tokens[e].content) &&
|
1139
|
+
u.tokens[e].type === "inline" && (Se.test(u.tokens[e].content) && ze(u.tokens[e].children), o0.test(u.tokens[e].content) && qe(u.tokens[e].children));
|
1140
1140
|
}
|
1141
1141
|
const Re = /['"]/, Nu = /['"]/g, ju = "’";
|
1142
1142
|
function nu(u, e, t) {
|
@@ -1230,10 +1230,10 @@ function Oe(u) {
|
|
1230
1230
|
}
|
1231
1231
|
const xu = [
|
1232
1232
|
["normalize", Ee],
|
1233
|
-
["block",
|
1234
|
-
["inline",
|
1233
|
+
["block", Ae],
|
1234
|
+
["inline", ye],
|
1235
1235
|
["linkify", we],
|
1236
|
-
["replacements",
|
1236
|
+
["replacements", Me],
|
1237
1237
|
["smartquotes", Pe],
|
1238
1238
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
1239
1239
|
// and joins them with the rest of the text
|
@@ -1250,7 +1250,7 @@ Tu.prototype.process = function(u) {
|
|
1250
1250
|
e[t](u);
|
1251
1251
|
};
|
1252
1252
|
Tu.prototype.State = i0;
|
1253
|
-
function
|
1253
|
+
function M(u, e, t, n) {
|
1254
1254
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
1255
1255
|
const r = this.src;
|
1256
1256
|
for (let c = 0, i = 0, o = 0, a = 0, s = r.length, l = !1; i < s; i++) {
|
@@ -1265,19 +1265,19 @@ function q(u, e, t, n) {
|
|
1265
1265
|
}
|
1266
1266
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
1267
1267
|
}
|
1268
|
-
|
1268
|
+
M.prototype.push = function(u, e, t) {
|
1269
1269
|
const n = new I(u, e, t);
|
1270
1270
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
1271
1271
|
};
|
1272
|
-
|
1272
|
+
M.prototype.isEmpty = function(e) {
|
1273
1273
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
1274
1274
|
};
|
1275
|
-
|
1275
|
+
M.prototype.skipEmptyLines = function(e) {
|
1276
1276
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
1277
1277
|
;
|
1278
1278
|
return e;
|
1279
1279
|
};
|
1280
|
-
|
1280
|
+
M.prototype.skipSpaces = function(e) {
|
1281
1281
|
for (let t = this.src.length; e < t; e++) {
|
1282
1282
|
const n = this.src.charCodeAt(e);
|
1283
1283
|
if (!E(n))
|
@@ -1285,7 +1285,7 @@ q.prototype.skipSpaces = function(e) {
|
|
1285
1285
|
}
|
1286
1286
|
return e;
|
1287
1287
|
};
|
1288
|
-
|
1288
|
+
M.prototype.skipSpacesBack = function(e, t) {
|
1289
1289
|
if (e <= t)
|
1290
1290
|
return e;
|
1291
1291
|
for (; e > t; )
|
@@ -1293,12 +1293,12 @@ q.prototype.skipSpacesBack = function(e, t) {
|
|
1293
1293
|
return e + 1;
|
1294
1294
|
return e;
|
1295
1295
|
};
|
1296
|
-
|
1296
|
+
M.prototype.skipChars = function(e, t) {
|
1297
1297
|
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
|
1298
1298
|
;
|
1299
1299
|
return e;
|
1300
1300
|
};
|
1301
|
-
|
1301
|
+
M.prototype.skipCharsBack = function(e, t, n) {
|
1302
1302
|
if (e <= n)
|
1303
1303
|
return e;
|
1304
1304
|
for (; e > n; )
|
@@ -1306,7 +1306,7 @@ q.prototype.skipCharsBack = function(e, t, n) {
|
|
1306
1306
|
return e + 1;
|
1307
1307
|
return e;
|
1308
1308
|
};
|
1309
|
-
|
1309
|
+
M.prototype.getLines = function(e, t, n, r) {
|
1310
1310
|
if (e >= t)
|
1311
1311
|
return "";
|
1312
1312
|
const c = new Array(t - e);
|
@@ -1328,7 +1328,7 @@ q.prototype.getLines = function(e, t, n, r) {
|
|
1328
1328
|
}
|
1329
1329
|
return c.join("");
|
1330
1330
|
};
|
1331
|
-
|
1331
|
+
M.prototype.Token = I;
|
1332
1332
|
const $e = 65536;
|
1333
1333
|
function _u(u, e) {
|
1334
1334
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
@@ -1634,11 +1634,11 @@ function Ge(u, e, t, n) {
|
|
1634
1634
|
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(f);
|
1635
1635
|
const L = [a, 0];
|
1636
1636
|
o.map = L, d && (o.info = u.src.slice(i, h - 1));
|
1637
|
-
const J = u.tight, bu = u.tShift[a], E0 = u.sCount[a],
|
1638
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = T, u.tight = !0, u.tShift[a] = C - u.bMarks[a], u.sCount[a] = m, C >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || D) && (s = !1), D = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent =
|
1637
|
+
const J = u.tight, bu = u.tShift[a], E0 = u.sCount[a], A0 = u.listIndent;
|
1638
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = T, u.tight = !0, u.tShift[a] = C - u.bMarks[a], u.sCount[a] = m, C >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || D) && (s = !1), D = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = A0, u.tShift[a] = bu, u.sCount[a] = E0, u.tight = J, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(f), a = u.line, L[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
1639
1639
|
break;
|
1640
1640
|
let zu = !1;
|
1641
|
-
for (let U = 0,
|
1641
|
+
for (let U = 0, y0 = p.length; U < y0; U++)
|
1642
1642
|
if (p[U](u, a, t, !0)) {
|
1643
1643
|
zu = !0;
|
1644
1644
|
break;
|
@@ -1978,7 +1978,7 @@ du.prototype.parse = function(u, e, t, n) {
|
|
1978
1978
|
const r = new this.State(u, e, t, n);
|
1979
1979
|
this.tokenize(r, r.line, r.lineMax);
|
1980
1980
|
};
|
1981
|
-
du.prototype.State =
|
1981
|
+
du.prototype.State = M;
|
1982
1982
|
function eu(u, e, t, n) {
|
1983
1983
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
1984
1984
|
}
|
@@ -2286,7 +2286,7 @@ function Et(u, e) {
|
|
2286
2286
|
}
|
2287
2287
|
return u.pos = f, u.posMax = d, !0;
|
2288
2288
|
}
|
2289
|
-
function
|
2289
|
+
function At(u, e) {
|
2290
2290
|
let t, n, r, c, i, o, a, s, l = "";
|
2291
2291
|
const d = u.pos, b = u.posMax;
|
2292
2292
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
@@ -2330,7 +2330,7 @@ function yt(u, e) {
|
|
2330
2330
|
}
|
2331
2331
|
return u.pos = c, u.posMax = b, !0;
|
2332
2332
|
}
|
2333
|
-
const
|
2333
|
+
const yt = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Ft = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
2334
2334
|
function vt(u, e) {
|
2335
2335
|
let t = u.pos;
|
2336
2336
|
if (u.src.charCodeAt(t) !== 60)
|
@@ -2360,7 +2360,7 @@ function vt(u, e) {
|
|
2360
2360
|
}
|
2361
2361
|
return u.pos += c.length + 2, !0;
|
2362
2362
|
}
|
2363
|
-
if (
|
2363
|
+
if (yt.test(c)) {
|
2364
2364
|
const i = u.md.normalizeLink("mailto:" + c);
|
2365
2365
|
if (!u.md.validateLink(i))
|
2366
2366
|
return !1;
|
@@ -2405,7 +2405,7 @@ function It(u, e) {
|
|
2405
2405
|
return u.pos += c[0].length, !0;
|
2406
2406
|
}
|
2407
2407
|
const Bt = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, zt = /^&([a-z][a-z0-9]{1,31});/i;
|
2408
|
-
function
|
2408
|
+
function qt(u, e) {
|
2409
2409
|
const t = u.pos, n = u.posMax;
|
2410
2410
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n)
|
2411
2411
|
return !1;
|
@@ -2460,7 +2460,7 @@ function Wu(u) {
|
|
2460
2460
|
l !== -1 && (e[o.marker][(o.open ? 3 : 0) + (o.length || 0) % 3] = l);
|
2461
2461
|
}
|
2462
2462
|
}
|
2463
|
-
function
|
2463
|
+
function Mt(u) {
|
2464
2464
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2465
2465
|
Wu(u.delimiters);
|
2466
2466
|
for (let n = 0; n < t; n++)
|
@@ -2482,12 +2482,12 @@ const mu = [
|
|
2482
2482
|
["strikethrough", l0.tokenize],
|
2483
2483
|
["emphasis", f0.tokenize],
|
2484
2484
|
["link", Et],
|
2485
|
-
["image",
|
2485
|
+
["image", At],
|
2486
2486
|
["autolink", vt],
|
2487
2487
|
["html_inline", It],
|
2488
|
-
["entity",
|
2488
|
+
["entity", qt]
|
2489
2489
|
], gu = [
|
2490
|
-
["balance_pairs",
|
2490
|
+
["balance_pairs", Mt],
|
2491
2491
|
["strikethrough", l0.postProcess],
|
2492
2492
|
["emphasis", f0.postProcess],
|
2493
2493
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
@@ -2685,7 +2685,7 @@ function Wt(u, e) {
|
|
2685
2685
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
2686
2686
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
2687
2687
|
}
|
2688
|
-
function
|
2688
|
+
function Au(u, e) {
|
2689
2689
|
const t = new Wt(u, e);
|
2690
2690
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
2691
2691
|
}
|
@@ -2722,10 +2722,10 @@ w.prototype.testSchemaAt = function(e, t, n) {
|
|
2722
2722
|
w.prototype.match = function(e) {
|
2723
2723
|
const t = [];
|
2724
2724
|
let n = 0;
|
2725
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
2725
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(Au(this, n)), n = this.__last_index__);
|
2726
2726
|
let r = n ? e.slice(n) : e;
|
2727
2727
|
for (; this.test(r); )
|
2728
|
-
t.push(
|
2728
|
+
t.push(Au(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
2729
2729
|
return t.length ? t : null;
|
2730
2730
|
};
|
2731
2731
|
w.prototype.matchAtStart = function(e) {
|
@@ -2735,7 +2735,7 @@ w.prototype.matchAtStart = function(e) {
|
|
2735
2735
|
if (!t)
|
2736
2736
|
return null;
|
2737
2737
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
2738
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
2738
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, Au(this, 0)) : null;
|
2739
2739
|
};
|
2740
2740
|
w.prototype.tlds = function(e, t) {
|
2741
2741
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
@@ -3058,7 +3058,7 @@ function hr(u) {
|
|
3058
3058
|
e.hostname = C0.toASCII(e.hostname);
|
3059
3059
|
} catch {
|
3060
3060
|
}
|
3061
|
-
return uu(
|
3061
|
+
return uu(yu(e));
|
3062
3062
|
}
|
3063
3063
|
function br(u) {
|
3064
3064
|
const e = Fu(u, !0);
|
@@ -3067,7 +3067,7 @@ function br(u) {
|
|
3067
3067
|
e.hostname = C0.toUnicode(e.hostname);
|
3068
3068
|
} catch {
|
3069
3069
|
}
|
3070
|
-
return V(
|
3070
|
+
return V(yu(e), V.defaultChars + "%");
|
3071
3071
|
}
|
3072
3072
|
function S(u, e) {
|
3073
3073
|
if (!(this instanceof S))
|
@@ -3178,7 +3178,7 @@ let j = class extends w0 {
|
|
3178
3178
|
firstUpdated() {
|
3179
3179
|
this.cells.length && (this.cells.forEach((u) => {
|
3180
3180
|
u.showEditor = this.shouldRenderEditor(u);
|
3181
|
-
}), this.selectCell(0), this.requestUpdate())
|
3181
|
+
}), this.selectCell(0), this.requestUpdate());
|
3182
3182
|
}
|
3183
3183
|
// Dispatch an event when the cell type is changed
|
3184
3184
|
handleCellTypeChange(u) {
|
@@ -3247,40 +3247,6 @@ let j = class extends w0 {
|
|
3247
3247
|
const e = this.cells[u];
|
3248
3248
|
e.language === "markdown" && (e.showEditor = !0);
|
3249
3249
|
}
|
3250
|
-
initializeMonaco() {
|
3251
|
-
window.MonacoEnvironment = {
|
3252
|
-
getWorker: function(u, e) {
|
3253
|
-
switch (e) {
|
3254
|
-
case "json":
|
3255
|
-
return new Worker(
|
3256
|
-
new URL("/assets/json.worker-bf861c27.js", self.location),
|
3257
|
-
{ type: "module" }
|
3258
|
-
);
|
3259
|
-
case "css":
|
3260
|
-
return new Worker(
|
3261
|
-
new URL("/assets/css.worker-1af1972f.js", self.location),
|
3262
|
-
{ type: "module" }
|
3263
|
-
);
|
3264
|
-
case "html":
|
3265
|
-
return new Worker(
|
3266
|
-
new URL("/assets/html.worker-38c267f1.js", self.location),
|
3267
|
-
{ type: "module" }
|
3268
|
-
);
|
3269
|
-
case "typescript":
|
3270
|
-
case "javascript":
|
3271
|
-
return new Worker(
|
3272
|
-
new URL("/assets/ts.worker-e151483b.js", self.location),
|
3273
|
-
{ type: "module" }
|
3274
|
-
);
|
3275
|
-
default:
|
3276
|
-
return new Worker(
|
3277
|
-
new URL("/assets/editor.worker-df55e1ff.js", self.location),
|
3278
|
-
{ type: "module" }
|
3279
|
-
);
|
3280
|
-
}
|
3281
|
-
}
|
3282
|
-
};
|
3283
|
-
}
|
3284
3250
|
// Paste the copied/cut cell in the desired position
|
3285
3251
|
pasteCell() {
|
3286
3252
|
if (this._clipboardCell !== null) {
|