@opentiny/tiny-robot 0.3.0-alpha.9 → 0.3.0-rc.0
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/action-group/index.js +14 -14
- package/dist/attachments/index.js +526 -0
- package/dist/bubble/index.js +2067 -1322
- package/dist/container/index.js +33 -33
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +117 -50
- package/dist/feedback/index.js +75 -75
- package/dist/flow-layout-buttons/index.js +29 -29
- package/dist/history/index.js +71 -72
- package/dist/index.d.ts +1029 -451
- package/dist/index.js +207 -63
- package/dist/index2.js +477 -388
- package/dist/index3.js +98 -88
- package/dist/loading.js +4 -0
- package/dist/mcp-server-picker/index.js +736 -0
- package/dist/no-data.js +4 -0
- package/dist/sender/index.js +900 -782
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +15 -15
- package/dist/suggestion-popover/index.js +185 -183
- package/dist/useSlotRefs.js +6 -6
- package/dist/utils.js +8 -2
- package/package.json +5 -9
- package/dist/close.js +0 -29
- package/dist/index4.js +0 -315
- package/dist/index5.js +0 -637
- package/dist/index6.js +0 -2156
- package/dist/index7.js +0 -4749
- package/dist/question/index.js +0 -429
- package/dist/suggestion/index.js +0 -497
- package/dist/tiny-robot-svgs.js +0 -590
package/dist/bubble/index.js
CHANGED
|
@@ -1,13 +1,666 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var hn = Object.defineProperty;
|
|
2
|
+
var pn = (u, e, t) => e in u ? hn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
|
+
var Ru = (u, e, t) => pn(u, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as Au, ref as i0, createElementBlock as $, openBlock as S, createElementVNode as Z, createVNode as At, toDisplayString as Ou, unref as Ae, normalizeClass as Mu, withDirectives as bn, vShow as _n, computed as uu, useCssModule as mn, createCommentVNode as Xu, createBlock as eu, resolveDynamicComponent as mu, createTextVNode as xn, inject as $0, normalizeProps as Ce, mergeProps as Ju, h as j0, useSlots as gn, useAttrs as kn, normalizeStyle as En, renderSlot as ge, Fragment as e0, renderList as ke, watch as An, createSlots as G0, withCtx as W0, guardReactiveProps as Cn, provide as Z0 } from "vue";
|
|
5
|
+
import { _ as Dn } from "../loading.js";
|
|
6
|
+
import { t as yn } from "../utils.js";
|
|
7
|
+
import { IconArrowUp as Fn, IconPlugin as V0, IconArrowDown as Tn, IconLoading as Sn, IconError as wn, IconCancelled as vn } from "@opentiny/tiny-robot-svgs";
|
|
8
|
+
import { _ as re } from "../_plugin-vue_export-helper.js";
|
|
9
|
+
import { u as Rn } from "../index2.js";
|
|
10
|
+
class a0 {
|
|
11
|
+
}
|
|
12
|
+
const In = { class: "tr-bubble__step-text" }, Mn = { class: "tr-bubble__step-text-title" }, Ln = { class: "tr-bubble__step-text-content-wrapper" }, On = /* @__PURE__ */ Au({
|
|
13
|
+
__name: "collapsible-text",
|
|
14
|
+
props: {
|
|
15
|
+
title: {},
|
|
16
|
+
content: {},
|
|
17
|
+
defaultOpen: { type: Boolean }
|
|
18
|
+
},
|
|
19
|
+
setup(u) {
|
|
20
|
+
const e = u, t = i0(e.defaultOpen ?? !1);
|
|
21
|
+
return (n, r) => (S(), $("div", In, [
|
|
22
|
+
Z("div", Mn, [
|
|
23
|
+
Z("span", null, Ou(e.title), 1),
|
|
24
|
+
At(Ae(Fn), {
|
|
25
|
+
class: Mu(["expand-icon", { "rotate-180": !t.value }]),
|
|
26
|
+
onClick: r[0] || (r[0] = (o) => t.value = !t.value)
|
|
27
|
+
}, null, 8, ["class"])
|
|
28
|
+
]),
|
|
29
|
+
Z("div", Ln, [
|
|
30
|
+
bn(Z("div", { class: "tr-bubble__step-text-content" }, Ou(e.content), 513), [
|
|
31
|
+
[_n, t.value]
|
|
32
|
+
])
|
|
33
|
+
])
|
|
34
|
+
]));
|
|
35
|
+
}
|
|
36
|
+
}), Nn = /* @__PURE__ */ re(On, [["__scopeId", "data-v-d412dffa"]]), Bn = Nn, Pn = { class: "tr-bubble__text" }, zn = /* @__PURE__ */ Au({
|
|
37
|
+
__name: "text",
|
|
38
|
+
props: {
|
|
39
|
+
content: {}
|
|
40
|
+
},
|
|
41
|
+
setup(u) {
|
|
42
|
+
const e = u;
|
|
43
|
+
return (t, n) => (S(), $("span", Pn, Ou(e.content), 1));
|
|
44
|
+
}
|
|
45
|
+
}), qn = /* @__PURE__ */ re(zn, [["__scopeId", "data-v-5658bc8d"]]), s0 = qn, Un = { class: "tr-bubble__step-tool" }, Hn = { class: "tr-bubble__step-tool-header" }, $n = { class: "tr-bubble__step-tool-left" }, jn = { class: "tr-bubble__step-tool-title" }, Gn = { class: "tr-bubble__step-tool-name" }, Wn = { class: "tr-bubble__step-tool-expand" }, Zn = {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "tr-bubble__step-tool-params"
|
|
48
|
+
}, Vn = ["innerHTML"], Yn = /* @__PURE__ */ Au({
|
|
49
|
+
__name: "tool",
|
|
50
|
+
props: {
|
|
51
|
+
name: {},
|
|
52
|
+
status: {},
|
|
53
|
+
content: {},
|
|
54
|
+
formatPretty: { type: Boolean },
|
|
55
|
+
defaultOpen: { type: Boolean }
|
|
56
|
+
},
|
|
57
|
+
setup(u) {
|
|
58
|
+
const e = u, t = i0(e.defaultOpen ?? !1), n = /* @__PURE__ */ new Map([
|
|
59
|
+
["running", { text: "正在调用", icon: Sn }],
|
|
60
|
+
["success", { text: "已调用", icon: V0 }],
|
|
61
|
+
["failed", { text: "调用失败", icon: wn }],
|
|
62
|
+
["cancelled", { text: "已取消", icon: vn }]
|
|
63
|
+
]), r = uu(() => n.get(e.status) || { text: "", icon: V0 }), o = mn(), i = (c) => {
|
|
64
|
+
if (!c)
|
|
65
|
+
return "";
|
|
66
|
+
let a = "";
|
|
67
|
+
const s = e.formatPretty ? 2 : 0;
|
|
68
|
+
try {
|
|
69
|
+
typeof c == "string" ? a = JSON.stringify(JSON.parse(c), null, s) : a = JSON.stringify(c, null, s);
|
|
70
|
+
} catch (f) {
|
|
71
|
+
console.warn(f);
|
|
72
|
+
}
|
|
73
|
+
return a = a.replace(
|
|
74
|
+
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,
|
|
75
|
+
(f) => {
|
|
76
|
+
let d = "number";
|
|
77
|
+
return /^"/.test(f) ? d = /:$/.test(f) ? "key" : "string" : /true|false/.test(f) ? d = "boolean" : /null/.test(f) && (d = "null"), `<span class="${o[d]}">${f}</span>`;
|
|
78
|
+
}
|
|
79
|
+
), a;
|
|
80
|
+
};
|
|
81
|
+
return (c, a) => (S(), $("div", Un, [
|
|
82
|
+
Z("div", Hn, [
|
|
83
|
+
Z("div", $n, [
|
|
84
|
+
(S(), eu(mu(r.value.icon), {
|
|
85
|
+
class: Mu(["tr-bubble__step-tool-icon", `icon-${e.status}`])
|
|
86
|
+
}, null, 8, ["class"])),
|
|
87
|
+
Z("span", jn, [
|
|
88
|
+
xn(Ou(r.value.text) + " ", 1),
|
|
89
|
+
Z("span", Gn, Ou(e.name), 1)
|
|
90
|
+
])
|
|
91
|
+
]),
|
|
92
|
+
Z("div", Wn, [
|
|
93
|
+
At(Ae(Tn), {
|
|
94
|
+
class: Mu(["expand-icon", { "-rotate-90": !t.value }]),
|
|
95
|
+
onClick: a[0] || (a[0] = (s) => t.value = !t.value)
|
|
96
|
+
}, null, 8, ["class"])
|
|
97
|
+
])
|
|
98
|
+
]),
|
|
99
|
+
t.value ? (S(), $("div", Zn, [
|
|
100
|
+
a[1] || (a[1] = Z("hr", { class: "tr-bubble__step-tool-hr" }, null, -1)),
|
|
101
|
+
Z("div", {
|
|
102
|
+
class: "tr-bubble__step-tool-params-content",
|
|
103
|
+
innerHTML: i(e.content)
|
|
104
|
+
}, null, 8, Vn)
|
|
105
|
+
])) : Xu("", !0)
|
|
106
|
+
]));
|
|
107
|
+
}
|
|
108
|
+
}), Xn = "_number_jtifp_2", Jn = "_key_jtifp_6", Qn = "_string_jtifp_10", Kn = "_boolean_jtifp_14", ur = {
|
|
109
|
+
number: Xn,
|
|
110
|
+
key: Jn,
|
|
111
|
+
string: Qn,
|
|
112
|
+
boolean: Kn,
|
|
113
|
+
null: "_null_jtifp_18"
|
|
114
|
+
}, er = {
|
|
115
|
+
$style: ur
|
|
116
|
+
}, tr = /* @__PURE__ */ re(Yn, [["__cssModules", er], ["__scopeId", "data-v-69a31e03"]]), nr = tr, Ct = /* @__PURE__ */ new Map([
|
|
117
|
+
["text", s0],
|
|
118
|
+
["tool", nr],
|
|
119
|
+
["collapsible-text", Bn]
|
|
120
|
+
]), Dt = Symbol("bubbleContentRendererMap"), yt = Symbol("bubbleContentFallbackRenderer"), rr = /* @__PURE__ */ Au({
|
|
121
|
+
__name: "ContentItem",
|
|
122
|
+
props: {
|
|
123
|
+
item: {}
|
|
124
|
+
},
|
|
125
|
+
setup(u) {
|
|
126
|
+
const e = $0(Dt, Ct), t = $0(yt, s0), n = u, r = (i) => {
|
|
127
|
+
const c = e.get(i) || t;
|
|
128
|
+
return typeof c == "function" ? { isComponent: !1, vNodeOrComponent: c(n.item) } : c instanceof a0 ? { isComponent: !1, vNodeOrComponent: c.render(n.item) } : { isComponent: !0, vNodeOrComponent: c };
|
|
129
|
+
}, o = uu(() => r(n.item.type));
|
|
130
|
+
return (i, c) => o.value.isComponent ? (S(), eu(mu(o.value.vNodeOrComponent), Ce(Ju({ key: 0 }, n.item)), null, 16)) : (S(), eu(mu(o.value.vNodeOrComponent), { key: 1 }));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
134
|
+
const {
|
|
135
|
+
entries: Ft,
|
|
136
|
+
setPrototypeOf: Y0,
|
|
137
|
+
isFrozen: or,
|
|
138
|
+
getPrototypeOf: cr,
|
|
139
|
+
getOwnPropertyDescriptor: ir
|
|
140
|
+
} = Object;
|
|
141
|
+
let {
|
|
142
|
+
freeze: j,
|
|
143
|
+
seal: J,
|
|
144
|
+
create: Tt
|
|
145
|
+
} = Object, {
|
|
146
|
+
apply: t0,
|
|
147
|
+
construct: n0
|
|
148
|
+
} = typeof Reflect < "u" && Reflect;
|
|
149
|
+
j || (j = function(e) {
|
|
150
|
+
return e;
|
|
151
|
+
});
|
|
152
|
+
J || (J = function(e) {
|
|
153
|
+
return e;
|
|
154
|
+
});
|
|
155
|
+
t0 || (t0 = function(e, t, n) {
|
|
156
|
+
return e.apply(t, n);
|
|
157
|
+
});
|
|
158
|
+
n0 || (n0 = function(e, t) {
|
|
159
|
+
return new e(...t);
|
|
160
|
+
});
|
|
161
|
+
const be = G(Array.prototype.forEach), ar = G(Array.prototype.lastIndexOf), X0 = G(Array.prototype.pop), Gu = G(Array.prototype.push), sr = G(Array.prototype.splice), Ee = G(String.prototype.toLowerCase), $e = G(String.prototype.toString), J0 = G(String.prototype.match), Wu = G(String.prototype.replace), lr = G(String.prototype.indexOf), fr = G(String.prototype.trim), K = G(Object.prototype.hasOwnProperty), H = G(RegExp.prototype.test), Zu = dr(TypeError);
|
|
162
|
+
function G(u) {
|
|
163
|
+
return function(e) {
|
|
164
|
+
e instanceof RegExp && (e.lastIndex = 0);
|
|
165
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
166
|
+
n[r - 1] = arguments[r];
|
|
167
|
+
return t0(u, e, n);
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function dr(u) {
|
|
171
|
+
return function() {
|
|
172
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
173
|
+
t[n] = arguments[n];
|
|
174
|
+
return n0(u, t);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function F(u, e) {
|
|
178
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ee;
|
|
179
|
+
Y0 && Y0(u, null);
|
|
180
|
+
let n = e.length;
|
|
181
|
+
for (; n--; ) {
|
|
182
|
+
let r = e[n];
|
|
183
|
+
if (typeof r == "string") {
|
|
184
|
+
const o = t(r);
|
|
185
|
+
o !== r && (or(e) || (e[n] = o), r = o);
|
|
186
|
+
}
|
|
187
|
+
u[r] = !0;
|
|
188
|
+
}
|
|
189
|
+
return u;
|
|
190
|
+
}
|
|
191
|
+
function hr(u) {
|
|
192
|
+
for (let e = 0; e < u.length; e++)
|
|
193
|
+
K(u, e) || (u[e] = null);
|
|
194
|
+
return u;
|
|
195
|
+
}
|
|
196
|
+
function du(u) {
|
|
197
|
+
const e = Tt(null);
|
|
198
|
+
for (const [t, n] of Ft(u))
|
|
199
|
+
K(u, t) && (Array.isArray(n) ? e[t] = hr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = du(n) : e[t] = n);
|
|
200
|
+
return e;
|
|
201
|
+
}
|
|
202
|
+
function Vu(u, e) {
|
|
203
|
+
for (; u !== null; ) {
|
|
204
|
+
const n = ir(u, e);
|
|
205
|
+
if (n) {
|
|
206
|
+
if (n.get)
|
|
207
|
+
return G(n.get);
|
|
208
|
+
if (typeof n.value == "function")
|
|
209
|
+
return G(n.value);
|
|
210
|
+
}
|
|
211
|
+
u = cr(u);
|
|
212
|
+
}
|
|
213
|
+
function t() {
|
|
214
|
+
return null;
|
|
215
|
+
}
|
|
216
|
+
return t;
|
|
217
|
+
}
|
|
218
|
+
const Q0 = j(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), je = j(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ge = j(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), pr = j(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), We = j(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), br = j(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), K0 = j(["#text"]), ut = j(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ze = j(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), et = j(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), _e = j(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), _r = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), mr = J(/<%[\w\W]*|[\w\W]*%>/gm), xr = J(/\$\{[\w\W]*/gm), gr = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), kr = J(/^aria-[\-\w]+$/), St = J(
|
|
219
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
220
|
+
// eslint-disable-line no-useless-escape
|
|
221
|
+
), Er = J(/^(?:\w+script|data):/i), Ar = J(
|
|
222
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
223
|
+
// eslint-disable-line no-control-regex
|
|
224
|
+
), wt = J(/^html$/i), Cr = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
225
|
+
var tt = /* @__PURE__ */ Object.freeze({
|
|
226
|
+
__proto__: null,
|
|
227
|
+
ARIA_ATTR: kr,
|
|
228
|
+
ATTR_WHITESPACE: Ar,
|
|
229
|
+
CUSTOM_ELEMENT: Cr,
|
|
230
|
+
DATA_ATTR: gr,
|
|
231
|
+
DOCTYPE_NAME: wt,
|
|
232
|
+
ERB_EXPR: mr,
|
|
233
|
+
IS_ALLOWED_URI: St,
|
|
234
|
+
IS_SCRIPT_OR_DATA: Er,
|
|
235
|
+
MUSTACHE_EXPR: _r,
|
|
236
|
+
TMPLIT_EXPR: xr
|
|
237
|
+
});
|
|
238
|
+
const Yu = {
|
|
239
|
+
element: 1,
|
|
240
|
+
text: 3,
|
|
241
|
+
// Deprecated
|
|
242
|
+
progressingInstruction: 7,
|
|
243
|
+
comment: 8,
|
|
244
|
+
document: 9
|
|
245
|
+
}, Dr = function() {
|
|
246
|
+
return typeof window > "u" ? null : window;
|
|
247
|
+
}, yr = function(e, t) {
|
|
248
|
+
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
249
|
+
return null;
|
|
250
|
+
let n = null;
|
|
251
|
+
const r = "data-tt-policy-suffix";
|
|
252
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
253
|
+
const o = "dompurify" + (n ? "#" + n : "");
|
|
254
|
+
try {
|
|
255
|
+
return e.createPolicy(o, {
|
|
256
|
+
createHTML(i) {
|
|
257
|
+
return i;
|
|
258
|
+
},
|
|
259
|
+
createScriptURL(i) {
|
|
260
|
+
return i;
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
} catch {
|
|
264
|
+
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
265
|
+
}
|
|
266
|
+
}, nt = function() {
|
|
267
|
+
return {
|
|
268
|
+
afterSanitizeAttributes: [],
|
|
269
|
+
afterSanitizeElements: [],
|
|
270
|
+
afterSanitizeShadowDOM: [],
|
|
271
|
+
beforeSanitizeAttributes: [],
|
|
272
|
+
beforeSanitizeElements: [],
|
|
273
|
+
beforeSanitizeShadowDOM: [],
|
|
274
|
+
uponSanitizeAttribute: [],
|
|
275
|
+
uponSanitizeElement: [],
|
|
276
|
+
uponSanitizeShadowNode: []
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
function vt() {
|
|
280
|
+
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Dr();
|
|
281
|
+
const e = (g) => vt(g);
|
|
282
|
+
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !== Yu.document || !u.Element)
|
|
283
|
+
return e.isSupported = !1, e;
|
|
284
|
+
let {
|
|
285
|
+
document: t
|
|
286
|
+
} = u;
|
|
287
|
+
const n = t, r = n.currentScript, {
|
|
288
|
+
DocumentFragment: o,
|
|
289
|
+
HTMLTemplateElement: i,
|
|
290
|
+
Node: c,
|
|
291
|
+
Element: a,
|
|
292
|
+
NodeFilter: s,
|
|
293
|
+
NamedNodeMap: f = u.NamedNodeMap || u.MozNamedAttrMap,
|
|
294
|
+
HTMLFormElement: d,
|
|
295
|
+
DOMParser: _,
|
|
296
|
+
trustedTypes: p
|
|
297
|
+
} = u, h = a.prototype, C = Vu(h, "cloneNode"), D = Vu(h, "remove"), T = Vu(h, "nextSibling"), E = Vu(h, "childNodes"), k = Vu(h, "parentNode");
|
|
298
|
+
if (typeof i == "function") {
|
|
299
|
+
const g = t.createElement("template");
|
|
300
|
+
g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
|
|
301
|
+
}
|
|
302
|
+
let m, A = "";
|
|
303
|
+
const {
|
|
304
|
+
implementation: y,
|
|
305
|
+
createNodeIterator: I,
|
|
306
|
+
createDocumentFragment: Y,
|
|
307
|
+
getElementsByTagName: nu
|
|
308
|
+
} = t, {
|
|
309
|
+
importNode: gu
|
|
310
|
+
} = n;
|
|
311
|
+
let M = nt();
|
|
312
|
+
e.isSupported = typeof Ft == "function" && typeof k == "function" && y && y.createHTMLDocument !== void 0;
|
|
313
|
+
const {
|
|
314
|
+
MUSTACHE_EXPR: zu,
|
|
315
|
+
ERB_EXPR: qu,
|
|
316
|
+
TMPLIT_EXPR: Cu,
|
|
317
|
+
DATA_ATTR: hu,
|
|
318
|
+
ARIA_ATTR: Re,
|
|
319
|
+
IS_SCRIPT_OR_DATA: tn,
|
|
320
|
+
ATTR_WHITESPACE: x0,
|
|
321
|
+
CUSTOM_ELEMENT: nn
|
|
322
|
+
} = tt;
|
|
323
|
+
let {
|
|
324
|
+
IS_ALLOWED_URI: g0
|
|
325
|
+
} = tt, O = null;
|
|
326
|
+
const k0 = F({}, [...Q0, ...je, ...Ge, ...We, ...K0]);
|
|
327
|
+
let z = null;
|
|
328
|
+
const E0 = F({}, [...ut, ...Ze, ...et, ..._e]);
|
|
329
|
+
let R = Object.seal(Tt(null, {
|
|
330
|
+
tagNameCheck: {
|
|
331
|
+
writable: !0,
|
|
332
|
+
configurable: !1,
|
|
333
|
+
enumerable: !0,
|
|
334
|
+
value: null
|
|
335
|
+
},
|
|
336
|
+
attributeNameCheck: {
|
|
337
|
+
writable: !0,
|
|
338
|
+
configurable: !1,
|
|
339
|
+
enumerable: !0,
|
|
340
|
+
value: null
|
|
341
|
+
},
|
|
342
|
+
allowCustomizedBuiltInElements: {
|
|
343
|
+
writable: !0,
|
|
344
|
+
configurable: !1,
|
|
345
|
+
enumerable: !0,
|
|
346
|
+
value: !1
|
|
347
|
+
}
|
|
348
|
+
})), Uu = null, Ie = null, A0 = !0, Me = !0, C0 = !1, D0 = !0, Du = !1, ae = !0, ku = !1, Le = !1, Oe = !1, yu = !1, se = !1, le = !1, y0 = !0, F0 = !1;
|
|
349
|
+
const rn = "user-content-";
|
|
350
|
+
let Ne = !0, Hu = !1, Fu = {}, Tu = null;
|
|
351
|
+
const T0 = F({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
352
|
+
let S0 = null;
|
|
353
|
+
const w0 = F({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
354
|
+
let Be = null;
|
|
355
|
+
const v0 = F({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), fe = "http://www.w3.org/1998/Math/MathML", de = "http://www.w3.org/2000/svg", su = "http://www.w3.org/1999/xhtml";
|
|
356
|
+
let Su = su, Pe = !1, ze = null;
|
|
357
|
+
const on = F({}, [fe, de, su], $e);
|
|
358
|
+
let he = F({}, ["mi", "mo", "mn", "ms", "mtext"]), pe = F({}, ["annotation-xml"]);
|
|
359
|
+
const cn = F({}, ["title", "style", "font", "a", "script"]);
|
|
360
|
+
let $u = null;
|
|
361
|
+
const an = ["application/xhtml+xml", "text/html"], sn = "text/html";
|
|
362
|
+
let N = null, wu = null;
|
|
363
|
+
const ln = t.createElement("form"), R0 = function(l) {
|
|
364
|
+
return l instanceof RegExp || l instanceof Function;
|
|
365
|
+
}, qe = function() {
|
|
366
|
+
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
367
|
+
if (!(wu && wu === l)) {
|
|
368
|
+
if ((!l || typeof l != "object") && (l = {}), l = du(l), $u = // eslint-disable-next-line unicorn/prefer-includes
|
|
369
|
+
an.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? sn : l.PARSER_MEDIA_TYPE, N = $u === "application/xhtml+xml" ? $e : Ee, O = K(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, N) : k0, z = K(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, N) : E0, ze = K(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, $e) : on, Be = K(l, "ADD_URI_SAFE_ATTR") ? F(du(v0), l.ADD_URI_SAFE_ATTR, N) : v0, S0 = K(l, "ADD_DATA_URI_TAGS") ? F(du(w0), l.ADD_DATA_URI_TAGS, N) : w0, Tu = K(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, N) : T0, Uu = K(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, N) : du({}), Ie = K(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, N) : du({}), Fu = K(l, "USE_PROFILES") ? l.USE_PROFILES : !1, A0 = l.ALLOW_ARIA_ATTR !== !1, Me = l.ALLOW_DATA_ATTR !== !1, C0 = l.ALLOW_UNKNOWN_PROTOCOLS || !1, D0 = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Du = l.SAFE_FOR_TEMPLATES || !1, ae = l.SAFE_FOR_XML !== !1, ku = l.WHOLE_DOCUMENT || !1, yu = l.RETURN_DOM || !1, se = l.RETURN_DOM_FRAGMENT || !1, le = l.RETURN_TRUSTED_TYPE || !1, Oe = l.FORCE_BODY || !1, y0 = l.SANITIZE_DOM !== !1, F0 = l.SANITIZE_NAMED_PROPS || !1, Ne = l.KEEP_CONTENT !== !1, Hu = l.IN_PLACE || !1, g0 = l.ALLOWED_URI_REGEXP || St, Su = l.NAMESPACE || su, he = l.MATHML_TEXT_INTEGRATION_POINTS || he, pe = l.HTML_INTEGRATION_POINTS || pe, R = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && R0(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && R0(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Du && (Me = !1), se && (yu = !0), Fu && (O = F({}, K0), z = [], Fu.html === !0 && (F(O, Q0), F(z, ut)), Fu.svg === !0 && (F(O, je), F(z, Ze), F(z, _e)), Fu.svgFilters === !0 && (F(O, Ge), F(z, Ze), F(z, _e)), Fu.mathMl === !0 && (F(O, We), F(z, et), F(z, _e))), l.ADD_TAGS && (O === k0 && (O = du(O)), F(O, l.ADD_TAGS, N)), l.ADD_ATTR && (z === E0 && (z = du(z)), F(z, l.ADD_ATTR, N)), l.ADD_URI_SAFE_ATTR && F(Be, l.ADD_URI_SAFE_ATTR, N), l.FORBID_CONTENTS && (Tu === T0 && (Tu = du(Tu)), F(Tu, l.FORBID_CONTENTS, N)), Ne && (O["#text"] = !0), ku && F(O, ["html", "head", "body"]), O.table && (F(O, ["tbody"]), delete Uu.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
370
|
+
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
371
|
+
throw Zu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
372
|
+
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
373
|
+
throw Zu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
374
|
+
m = l.TRUSTED_TYPES_POLICY, A = m.createHTML("");
|
|
375
|
+
} else
|
|
376
|
+
m === void 0 && (m = yr(p, r)), m !== null && typeof A == "string" && (A = m.createHTML(""));
|
|
377
|
+
j && j(l), wu = l;
|
|
378
|
+
}
|
|
379
|
+
}, I0 = F({}, [...je, ...Ge, ...pr]), M0 = F({}, [...We, ...br]), fn = function(l) {
|
|
380
|
+
let b = k(l);
|
|
381
|
+
(!b || !b.tagName) && (b = {
|
|
382
|
+
namespaceURI: Su,
|
|
383
|
+
tagName: "template"
|
|
384
|
+
});
|
|
385
|
+
const x = Ee(l.tagName), v = Ee(b.tagName);
|
|
386
|
+
return ze[l.namespaceURI] ? l.namespaceURI === de ? b.namespaceURI === su ? x === "svg" : b.namespaceURI === fe ? x === "svg" && (v === "annotation-xml" || he[v]) : !!I0[x] : l.namespaceURI === fe ? b.namespaceURI === su ? x === "math" : b.namespaceURI === de ? x === "math" && pe[v] : !!M0[x] : l.namespaceURI === su ? b.namespaceURI === de && !pe[v] || b.namespaceURI === fe && !he[v] ? !1 : !M0[x] && (cn[x] || !I0[x]) : !!($u === "application/xhtml+xml" && ze[l.namespaceURI]) : !1;
|
|
387
|
+
}, ru = function(l) {
|
|
388
|
+
Gu(e.removed, {
|
|
389
|
+
element: l
|
|
390
|
+
});
|
|
391
|
+
try {
|
|
392
|
+
k(l).removeChild(l);
|
|
393
|
+
} catch {
|
|
394
|
+
D(l);
|
|
395
|
+
}
|
|
396
|
+
}, vu = function(l, b) {
|
|
397
|
+
try {
|
|
398
|
+
Gu(e.removed, {
|
|
399
|
+
attribute: b.getAttributeNode(l),
|
|
400
|
+
from: b
|
|
401
|
+
});
|
|
402
|
+
} catch {
|
|
403
|
+
Gu(e.removed, {
|
|
404
|
+
attribute: null,
|
|
405
|
+
from: b
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
if (b.removeAttribute(l), l === "is")
|
|
409
|
+
if (yu || se)
|
|
410
|
+
try {
|
|
411
|
+
ru(b);
|
|
412
|
+
} catch {
|
|
413
|
+
}
|
|
414
|
+
else
|
|
415
|
+
try {
|
|
416
|
+
b.setAttribute(l, "");
|
|
417
|
+
} catch {
|
|
418
|
+
}
|
|
419
|
+
}, L0 = function(l) {
|
|
420
|
+
let b = null, x = null;
|
|
421
|
+
if (Oe)
|
|
422
|
+
l = "<remove></remove>" + l;
|
|
423
|
+
else {
|
|
424
|
+
const L = J0(l, /^[\r\n\t ]+/);
|
|
425
|
+
x = L && L[0];
|
|
426
|
+
}
|
|
427
|
+
$u === "application/xhtml+xml" && Su === su && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
428
|
+
const v = m ? m.createHTML(l) : l;
|
|
429
|
+
if (Su === su)
|
|
430
|
+
try {
|
|
431
|
+
b = new _().parseFromString(v, $u);
|
|
432
|
+
} catch {
|
|
433
|
+
}
|
|
434
|
+
if (!b || !b.documentElement) {
|
|
435
|
+
b = y.createDocument(Su, "template", null);
|
|
436
|
+
try {
|
|
437
|
+
b.documentElement.innerHTML = Pe ? A : v;
|
|
438
|
+
} catch {
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
const q = b.body || b.documentElement;
|
|
442
|
+
return l && x && q.insertBefore(t.createTextNode(x), q.childNodes[0] || null), Su === su ? nu.call(b, ku ? "html" : "body")[0] : ku ? b.documentElement : q;
|
|
443
|
+
}, O0 = function(l) {
|
|
444
|
+
return I.call(
|
|
445
|
+
l.ownerDocument || l,
|
|
446
|
+
l,
|
|
447
|
+
// eslint-disable-next-line no-bitwise
|
|
448
|
+
s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
|
|
449
|
+
null
|
|
450
|
+
);
|
|
451
|
+
}, Ue = function(l) {
|
|
452
|
+
return l instanceof d && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof f) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
453
|
+
}, N0 = function(l) {
|
|
454
|
+
return typeof c == "function" && l instanceof c;
|
|
455
|
+
};
|
|
456
|
+
function lu(g, l, b) {
|
|
457
|
+
be(g, (x) => {
|
|
458
|
+
x.call(e, l, b, wu);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
const B0 = function(l) {
|
|
462
|
+
let b = null;
|
|
463
|
+
if (lu(M.beforeSanitizeElements, l, null), Ue(l))
|
|
464
|
+
return ru(l), !0;
|
|
465
|
+
const x = N(l.nodeName);
|
|
466
|
+
if (lu(M.uponSanitizeElement, l, {
|
|
467
|
+
tagName: x,
|
|
468
|
+
allowedTags: O
|
|
469
|
+
}), ae && l.hasChildNodes() && !N0(l.firstElementChild) && H(/<[/\w!]/g, l.innerHTML) && H(/<[/\w!]/g, l.textContent) || l.nodeType === Yu.progressingInstruction || ae && l.nodeType === Yu.comment && H(/<[/\w]/g, l.data))
|
|
470
|
+
return ru(l), !0;
|
|
471
|
+
if (!O[x] || Uu[x]) {
|
|
472
|
+
if (!Uu[x] && z0(x) && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
473
|
+
return !1;
|
|
474
|
+
if (Ne && !Tu[x]) {
|
|
475
|
+
const v = k(l) || l.parentNode, q = E(l) || l.childNodes;
|
|
476
|
+
if (q && v) {
|
|
477
|
+
const L = q.length;
|
|
478
|
+
for (let W = L - 1; W >= 0; --W) {
|
|
479
|
+
const fu = C(q[W], !0);
|
|
480
|
+
fu.__removalCount = (l.__removalCount || 0) + 1, v.insertBefore(fu, T(l));
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return ru(l), !0;
|
|
485
|
+
}
|
|
486
|
+
return l instanceof a && !fn(l) || (x === "noscript" || x === "noembed" || x === "noframes") && H(/<\/no(script|embed|frames)/i, l.innerHTML) ? (ru(l), !0) : (Du && l.nodeType === Yu.text && (b = l.textContent, be([zu, qu, Cu], (v) => {
|
|
487
|
+
b = Wu(b, v, " ");
|
|
488
|
+
}), l.textContent !== b && (Gu(e.removed, {
|
|
489
|
+
element: l.cloneNode()
|
|
490
|
+
}), l.textContent = b)), lu(M.afterSanitizeElements, l, null), !1);
|
|
491
|
+
}, P0 = function(l, b, x) {
|
|
492
|
+
if (y0 && (b === "id" || b === "name") && (x in t || x in ln))
|
|
493
|
+
return !1;
|
|
494
|
+
if (!(Me && !Ie[b] && H(hu, b))) {
|
|
495
|
+
if (!(A0 && H(Re, b))) {
|
|
496
|
+
if (!z[b] || Ie[b]) {
|
|
497
|
+
if (
|
|
498
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
499
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
500
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
501
|
+
!(z0(l) && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, l) || R.tagNameCheck instanceof Function && R.tagNameCheck(l)) && (R.attributeNameCheck instanceof RegExp && H(R.attributeNameCheck, b) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
502
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
503
|
+
b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
504
|
+
) return !1;
|
|
505
|
+
} else if (!Be[b]) {
|
|
506
|
+
if (!H(g0, Wu(x, x0, ""))) {
|
|
507
|
+
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" && lr(x, "data:") === 0 && S0[l])) {
|
|
508
|
+
if (!(C0 && !H(tn, Wu(x, x0, "")))) {
|
|
509
|
+
if (x)
|
|
510
|
+
return !1;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return !0;
|
|
518
|
+
}, z0 = function(l) {
|
|
519
|
+
return l !== "annotation-xml" && J0(l, nn);
|
|
520
|
+
}, q0 = function(l) {
|
|
521
|
+
lu(M.beforeSanitizeAttributes, l, null);
|
|
522
|
+
const {
|
|
523
|
+
attributes: b
|
|
524
|
+
} = l;
|
|
525
|
+
if (!b || Ue(l))
|
|
526
|
+
return;
|
|
527
|
+
const x = {
|
|
528
|
+
attrName: "",
|
|
529
|
+
attrValue: "",
|
|
530
|
+
keepAttr: !0,
|
|
531
|
+
allowedAttributes: z,
|
|
532
|
+
forceKeepAttr: void 0
|
|
533
|
+
};
|
|
534
|
+
let v = b.length;
|
|
535
|
+
for (; v--; ) {
|
|
536
|
+
const q = b[v], {
|
|
537
|
+
name: L,
|
|
538
|
+
namespaceURI: W,
|
|
539
|
+
value: fu
|
|
540
|
+
} = q, ju = N(L), He = fu;
|
|
541
|
+
let U = L === "value" ? He : fr(He);
|
|
542
|
+
if (x.attrName = ju, x.attrValue = U, x.keepAttr = !0, x.forceKeepAttr = void 0, lu(M.uponSanitizeAttribute, l, x), U = x.attrValue, F0 && (ju === "id" || ju === "name") && (vu(L, l), U = rn + U), ae && H(/((--!?|])>)|<\/(style|title)/i, U)) {
|
|
543
|
+
vu(L, l);
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
if (x.forceKeepAttr)
|
|
547
|
+
continue;
|
|
548
|
+
if (!x.keepAttr) {
|
|
549
|
+
vu(L, l);
|
|
550
|
+
continue;
|
|
551
|
+
}
|
|
552
|
+
if (!D0 && H(/\/>/i, U)) {
|
|
553
|
+
vu(L, l);
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
Du && be([zu, qu, Cu], (H0) => {
|
|
557
|
+
U = Wu(U, H0, " ");
|
|
558
|
+
});
|
|
559
|
+
const U0 = N(l.nodeName);
|
|
560
|
+
if (!P0(U0, ju, U)) {
|
|
561
|
+
vu(L, l);
|
|
562
|
+
continue;
|
|
563
|
+
}
|
|
564
|
+
if (m && typeof p == "object" && typeof p.getAttributeType == "function" && !W)
|
|
565
|
+
switch (p.getAttributeType(U0, ju)) {
|
|
566
|
+
case "TrustedHTML": {
|
|
567
|
+
U = m.createHTML(U);
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
case "TrustedScriptURL": {
|
|
571
|
+
U = m.createScriptURL(U);
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
if (U !== He)
|
|
576
|
+
try {
|
|
577
|
+
W ? l.setAttributeNS(W, L, U) : l.setAttribute(L, U), Ue(l) ? ru(l) : X0(e.removed);
|
|
578
|
+
} catch {
|
|
579
|
+
vu(L, l);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
lu(M.afterSanitizeAttributes, l, null);
|
|
583
|
+
}, dn = function g(l) {
|
|
584
|
+
let b = null;
|
|
585
|
+
const x = O0(l);
|
|
586
|
+
for (lu(M.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
|
|
587
|
+
lu(M.uponSanitizeShadowNode, b, null), B0(b), q0(b), b.content instanceof o && g(b.content);
|
|
588
|
+
lu(M.afterSanitizeShadowDOM, l, null);
|
|
589
|
+
};
|
|
590
|
+
return e.sanitize = function(g) {
|
|
591
|
+
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null, q = null;
|
|
592
|
+
if (Pe = !g, Pe && (g = "<!-->"), typeof g != "string" && !N0(g))
|
|
593
|
+
if (typeof g.toString == "function") {
|
|
594
|
+
if (g = g.toString(), typeof g != "string")
|
|
595
|
+
throw Zu("dirty is not a string, aborting");
|
|
596
|
+
} else
|
|
597
|
+
throw Zu("toString is not a function");
|
|
598
|
+
if (!e.isSupported)
|
|
599
|
+
return g;
|
|
600
|
+
if (Le || qe(l), e.removed = [], typeof g == "string" && (Hu = !1), Hu) {
|
|
601
|
+
if (g.nodeName) {
|
|
602
|
+
const fu = N(g.nodeName);
|
|
603
|
+
if (!O[fu] || Uu[fu])
|
|
604
|
+
throw Zu("root node is forbidden and cannot be sanitized in-place");
|
|
605
|
+
}
|
|
606
|
+
} else if (g instanceof c)
|
|
607
|
+
b = L0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Yu.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
|
|
608
|
+
else {
|
|
609
|
+
if (!yu && !Du && !ku && // eslint-disable-next-line unicorn/prefer-includes
|
|
610
|
+
g.indexOf("<") === -1)
|
|
611
|
+
return m && le ? m.createHTML(g) : g;
|
|
612
|
+
if (b = L0(g), !b)
|
|
613
|
+
return yu ? null : le ? A : "";
|
|
614
|
+
}
|
|
615
|
+
b && Oe && ru(b.firstChild);
|
|
616
|
+
const L = O0(Hu ? g : b);
|
|
617
|
+
for (; v = L.nextNode(); )
|
|
618
|
+
B0(v), q0(v), v.content instanceof o && dn(v.content);
|
|
619
|
+
if (Hu)
|
|
620
|
+
return g;
|
|
621
|
+
if (yu) {
|
|
622
|
+
if (se)
|
|
623
|
+
for (q = Y.call(b.ownerDocument); b.firstChild; )
|
|
624
|
+
q.appendChild(b.firstChild);
|
|
625
|
+
else
|
|
626
|
+
q = b;
|
|
627
|
+
return (z.shadowroot || z.shadowrootmode) && (q = gu.call(n, q, !0)), q;
|
|
628
|
+
}
|
|
629
|
+
let W = ku ? b.outerHTML : b.innerHTML;
|
|
630
|
+
return ku && O["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name && H(wt, b.ownerDocument.doctype.name) && (W = "<!DOCTYPE " + b.ownerDocument.doctype.name + `>
|
|
631
|
+
` + W), Du && be([zu, qu, Cu], (fu) => {
|
|
632
|
+
W = Wu(W, fu, " ");
|
|
633
|
+
}), m && le ? m.createHTML(W) : W;
|
|
634
|
+
}, e.setConfig = function() {
|
|
635
|
+
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
636
|
+
qe(g), Le = !0;
|
|
637
|
+
}, e.clearConfig = function() {
|
|
638
|
+
wu = null, Le = !1;
|
|
639
|
+
}, e.isValidAttribute = function(g, l, b) {
|
|
640
|
+
wu || qe({});
|
|
641
|
+
const x = N(g), v = N(l);
|
|
642
|
+
return P0(x, v, b);
|
|
643
|
+
}, e.addHook = function(g, l) {
|
|
644
|
+
typeof l == "function" && Gu(M[g], l);
|
|
645
|
+
}, e.removeHook = function(g, l) {
|
|
646
|
+
if (l !== void 0) {
|
|
647
|
+
const b = ar(M[g], l);
|
|
648
|
+
return b === -1 ? void 0 : sr(M[g], b, 1)[0];
|
|
649
|
+
}
|
|
650
|
+
return X0(M[g]);
|
|
651
|
+
}, e.removeHooks = function(g) {
|
|
652
|
+
M[g] = [];
|
|
653
|
+
}, e.removeAllHooks = function() {
|
|
654
|
+
M = nt();
|
|
655
|
+
}, e;
|
|
656
|
+
}
|
|
657
|
+
var Fr = vt();
|
|
658
|
+
const rt = {};
|
|
659
|
+
function Tr(u) {
|
|
660
|
+
let e = rt[u];
|
|
8
661
|
if (e)
|
|
9
662
|
return e;
|
|
10
|
-
e =
|
|
663
|
+
e = rt[u] = [];
|
|
11
664
|
for (let t = 0; t < 128; t++) {
|
|
12
665
|
const n = String.fromCharCode(t);
|
|
13
666
|
e.push(n);
|
|
@@ -18,38 +671,38 @@ function W0(u) {
|
|
|
18
671
|
}
|
|
19
672
|
return e;
|
|
20
673
|
}
|
|
21
|
-
function
|
|
22
|
-
typeof e != "string" && (e =
|
|
23
|
-
const t =
|
|
674
|
+
function Nu(u, e) {
|
|
675
|
+
typeof e != "string" && (e = Nu.defaultChars);
|
|
676
|
+
const t = Tr(e);
|
|
24
677
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
25
678
|
let r = "";
|
|
26
|
-
for (let
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
r += t[
|
|
679
|
+
for (let o = 0, i = n.length; o < i; o += 3) {
|
|
680
|
+
const c = parseInt(n.slice(o + 1, o + 3), 16);
|
|
681
|
+
if (c < 128) {
|
|
682
|
+
r += t[c];
|
|
30
683
|
continue;
|
|
31
684
|
}
|
|
32
|
-
if ((
|
|
33
|
-
const a = parseInt(n.slice(
|
|
685
|
+
if ((c & 224) === 192 && o + 3 < i) {
|
|
686
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16);
|
|
34
687
|
if ((a & 192) === 128) {
|
|
35
|
-
const s =
|
|
36
|
-
s < 128 ? r += "��" : r += String.fromCharCode(s),
|
|
688
|
+
const s = c << 6 & 1984 | a & 63;
|
|
689
|
+
s < 128 ? r += "��" : r += String.fromCharCode(s), o += 3;
|
|
37
690
|
continue;
|
|
38
691
|
}
|
|
39
692
|
}
|
|
40
|
-
if ((
|
|
41
|
-
const a = parseInt(n.slice(
|
|
693
|
+
if ((c & 240) === 224 && o + 6 < i) {
|
|
694
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
|
|
42
695
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
|
43
|
-
const f =
|
|
44
|
-
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f),
|
|
696
|
+
const f = c << 12 & 61440 | a << 6 & 4032 | s & 63;
|
|
697
|
+
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), o += 6;
|
|
45
698
|
continue;
|
|
46
699
|
}
|
|
47
700
|
}
|
|
48
|
-
if ((
|
|
49
|
-
const a = parseInt(n.slice(
|
|
701
|
+
if ((c & 248) === 240 && o + 9 < i) {
|
|
702
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), f = parseInt(n.slice(o + 10, o + 12), 16);
|
|
50
703
|
if ((a & 192) === 128 && (s & 192) === 128 && (f & 192) === 128) {
|
|
51
|
-
let d =
|
|
52
|
-
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))),
|
|
704
|
+
let d = c << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | f & 63;
|
|
705
|
+
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), o += 9;
|
|
53
706
|
continue;
|
|
54
707
|
}
|
|
55
708
|
}
|
|
@@ -58,14 +711,14 @@ function G(u, e) {
|
|
|
58
711
|
return r;
|
|
59
712
|
});
|
|
60
713
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
function
|
|
65
|
-
let e =
|
|
714
|
+
Nu.defaultChars = ";/?:@&=+$,#";
|
|
715
|
+
Nu.componentChars = "";
|
|
716
|
+
const ot = {};
|
|
717
|
+
function Sr(u) {
|
|
718
|
+
let e = ot[u];
|
|
66
719
|
if (e)
|
|
67
720
|
return e;
|
|
68
|
-
e =
|
|
721
|
+
e = ot[u] = [];
|
|
69
722
|
for (let t = 0; t < 128; t++) {
|
|
70
723
|
const n = String.fromCharCode(t);
|
|
71
724
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
|
@@ -74,49 +727,49 @@ function J0(u) {
|
|
|
74
727
|
e[u.charCodeAt(t)] = u[t];
|
|
75
728
|
return e;
|
|
76
729
|
}
|
|
77
|
-
function
|
|
78
|
-
typeof e != "string" && (t = e, e =
|
|
79
|
-
const n =
|
|
730
|
+
function oe(u, e, t) {
|
|
731
|
+
typeof e != "string" && (t = e, e = oe.defaultChars), typeof t > "u" && (t = !0);
|
|
732
|
+
const n = Sr(e);
|
|
80
733
|
let r = "";
|
|
81
|
-
for (let
|
|
82
|
-
const
|
|
83
|
-
if (t &&
|
|
84
|
-
r += u.slice(
|
|
734
|
+
for (let o = 0, i = u.length; o < i; o++) {
|
|
735
|
+
const c = u.charCodeAt(o);
|
|
736
|
+
if (t && c === 37 && o + 2 < i && /^[0-9a-f]{2}$/i.test(u.slice(o + 1, o + 3))) {
|
|
737
|
+
r += u.slice(o, o + 3), o += 2;
|
|
85
738
|
continue;
|
|
86
739
|
}
|
|
87
|
-
if (
|
|
88
|
-
r += n[
|
|
740
|
+
if (c < 128) {
|
|
741
|
+
r += n[c];
|
|
89
742
|
continue;
|
|
90
743
|
}
|
|
91
|
-
if (
|
|
92
|
-
if (
|
|
93
|
-
const a = u.charCodeAt(
|
|
744
|
+
if (c >= 55296 && c <= 57343) {
|
|
745
|
+
if (c >= 55296 && c <= 56319 && o + 1 < i) {
|
|
746
|
+
const a = u.charCodeAt(o + 1);
|
|
94
747
|
if (a >= 56320 && a <= 57343) {
|
|
95
|
-
r += encodeURIComponent(u[
|
|
748
|
+
r += encodeURIComponent(u[o] + u[o + 1]), o++;
|
|
96
749
|
continue;
|
|
97
750
|
}
|
|
98
751
|
}
|
|
99
752
|
r += "%EF%BF%BD";
|
|
100
753
|
continue;
|
|
101
754
|
}
|
|
102
|
-
r += encodeURIComponent(u[
|
|
755
|
+
r += encodeURIComponent(u[o]);
|
|
103
756
|
}
|
|
104
757
|
return r;
|
|
105
758
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
function
|
|
759
|
+
oe.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
760
|
+
oe.componentChars = "-_.!~*'()";
|
|
761
|
+
function l0(u) {
|
|
109
762
|
let e = "";
|
|
110
763
|
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;
|
|
111
764
|
}
|
|
112
|
-
function
|
|
765
|
+
function De() {
|
|
113
766
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
114
767
|
}
|
|
115
|
-
const
|
|
116
|
-
`, " "],
|
|
768
|
+
const wr = /^([a-z0-9.+-]+:)/i, vr = /:[0-9]*$/, Rr = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Ir = ["<", ">", '"', "`", " ", "\r", `
|
|
769
|
+
`, " "], Mr = ["{", "}", "|", "\\", "^", "`"].concat(Ir), Lr = ["'"].concat(Mr), ct = ["%", "/", "?", ";", "#"].concat(Lr), it = ["/", "?", "#"], Or = 255, at = /^[+a-z0-9A-Z_-]{0,63}$/, Nr = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, st = {
|
|
117
770
|
javascript: !0,
|
|
118
771
|
"javascript:": !0
|
|
119
|
-
},
|
|
772
|
+
}, lt = {
|
|
120
773
|
http: !0,
|
|
121
774
|
https: !0,
|
|
122
775
|
ftp: !0,
|
|
@@ -128,81 +781,81 @@ const Q0 = /^([a-z0-9.+-]+:)/i, X0 = /:[0-9]*$/, Y0 = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
128
781
|
"gopher:": !0,
|
|
129
782
|
"file:": !0
|
|
130
783
|
};
|
|
131
|
-
function
|
|
132
|
-
if (u && u instanceof
|
|
133
|
-
const t = new
|
|
784
|
+
function f0(u, e) {
|
|
785
|
+
if (u && u instanceof De) return u;
|
|
786
|
+
const t = new De();
|
|
134
787
|
return t.parse(u, e), t;
|
|
135
788
|
}
|
|
136
|
-
|
|
137
|
-
let t, n, r,
|
|
138
|
-
if (
|
|
139
|
-
const s =
|
|
789
|
+
De.prototype.parse = function(u, e) {
|
|
790
|
+
let t, n, r, o = u;
|
|
791
|
+
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
792
|
+
const s = Rr.exec(o);
|
|
140
793
|
if (s)
|
|
141
794
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
142
795
|
}
|
|
143
|
-
let
|
|
144
|
-
if (
|
|
796
|
+
let i = wr.exec(o);
|
|
797
|
+
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, o = o.substr(i.length)), (e || i || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(i && st[i]) && (o = o.substr(2), this.slashes = !0)), !st[i] && (r || i && !lt[i])) {
|
|
145
798
|
let s = -1;
|
|
146
|
-
for (let
|
|
147
|
-
n =
|
|
799
|
+
for (let h = 0; h < it.length; h++)
|
|
800
|
+
n = o.indexOf(it[h]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
148
801
|
let f, d;
|
|
149
|
-
s === -1 ? d =
|
|
150
|
-
for (let
|
|
151
|
-
n =
|
|
152
|
-
s === -1 && (s =
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
if (!
|
|
157
|
-
const
|
|
158
|
-
for (let
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
-
let
|
|
162
|
-
for (let
|
|
163
|
-
|
|
164
|
-
if (!
|
|
165
|
-
const
|
|
166
|
-
|
|
802
|
+
s === -1 ? d = o.lastIndexOf("@") : d = o.lastIndexOf("@", s), d !== -1 && (f = o.slice(0, d), o = o.slice(d + 1), this.auth = f), s = -1;
|
|
803
|
+
for (let h = 0; h < ct.length; h++)
|
|
804
|
+
n = o.indexOf(ct[h]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
805
|
+
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
806
|
+
const _ = o.slice(0, s);
|
|
807
|
+
o = o.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
808
|
+
const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
809
|
+
if (!p) {
|
|
810
|
+
const h = this.hostname.split(/\./);
|
|
811
|
+
for (let C = 0, D = h.length; C < D; C++) {
|
|
812
|
+
const T = h[C];
|
|
813
|
+
if (T && !T.match(at)) {
|
|
814
|
+
let E = "";
|
|
815
|
+
for (let k = 0, m = T.length; k < m; k++)
|
|
816
|
+
T.charCodeAt(k) > 127 ? E += "x" : E += T[k];
|
|
817
|
+
if (!E.match(at)) {
|
|
818
|
+
const k = h.slice(0, C), m = h.slice(C + 1), A = T.match(Nr);
|
|
819
|
+
A && (k.push(A[1]), m.unshift(A[2])), m.length && (o = m.join(".") + o), this.hostname = k.join(".");
|
|
167
820
|
break;
|
|
168
821
|
}
|
|
169
822
|
}
|
|
170
823
|
}
|
|
171
824
|
}
|
|
172
|
-
this.hostname.length >
|
|
825
|
+
this.hostname.length > Or && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
173
826
|
}
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
const a =
|
|
177
|
-
return a !== -1 && (this.search =
|
|
827
|
+
const c = o.indexOf("#");
|
|
828
|
+
c !== -1 && (this.hash = o.substr(c), o = o.slice(0, c));
|
|
829
|
+
const a = o.indexOf("?");
|
|
830
|
+
return a !== -1 && (this.search = o.substr(a), o = o.slice(0, a)), o && (this.pathname = o), lt[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
178
831
|
};
|
|
179
|
-
|
|
180
|
-
let e =
|
|
832
|
+
De.prototype.parseHost = function(u) {
|
|
833
|
+
let e = vr.exec(u);
|
|
181
834
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
182
835
|
};
|
|
183
|
-
const
|
|
836
|
+
const Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
184
837
|
__proto__: null,
|
|
185
|
-
decode:
|
|
186
|
-
encode:
|
|
187
|
-
format:
|
|
188
|
-
parse:
|
|
189
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
838
|
+
decode: Nu,
|
|
839
|
+
encode: oe,
|
|
840
|
+
format: l0,
|
|
841
|
+
parse: f0
|
|
842
|
+
}, Symbol.toStringTag, { value: "Module" })), Rt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, It = /[\0-\x1F\x7F-\x9F]/, Pr = /[\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]/, d0 = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, Mt = /[\$\+<->\^`\|~\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]/, Lt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
190
843
|
__proto__: null,
|
|
191
|
-
Any:
|
|
192
|
-
Cc:
|
|
193
|
-
Cf:
|
|
194
|
-
P:
|
|
195
|
-
S:
|
|
196
|
-
Z:
|
|
197
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
844
|
+
Any: Rt,
|
|
845
|
+
Cc: It,
|
|
846
|
+
Cf: Pr,
|
|
847
|
+
P: d0,
|
|
848
|
+
S: Mt,
|
|
849
|
+
Z: Lt
|
|
850
|
+
}, Symbol.toStringTag, { value: "Module" })), qr = new Uint16Array(
|
|
198
851
|
// prettier-ignore
|
|
199
852
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
|
200
|
-
),
|
|
853
|
+
), Ur = new Uint16Array(
|
|
201
854
|
// prettier-ignore
|
|
202
855
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
203
856
|
);
|
|
204
|
-
var
|
|
205
|
-
const
|
|
857
|
+
var Ve;
|
|
858
|
+
const Hr = /* @__PURE__ */ new Map([
|
|
206
859
|
[0, 65533],
|
|
207
860
|
// C1 Unicode control character reference replacements
|
|
208
861
|
[128, 8364],
|
|
@@ -232,53 +885,53 @@ const se = /* @__PURE__ */ new Map([
|
|
|
232
885
|
[156, 339],
|
|
233
886
|
[158, 382],
|
|
234
887
|
[159, 376]
|
|
235
|
-
]),
|
|
888
|
+
]), $r = (
|
|
236
889
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
237
|
-
(
|
|
890
|
+
(Ve = String.fromCodePoint) !== null && Ve !== void 0 ? Ve : function(u) {
|
|
238
891
|
let e = "";
|
|
239
892
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
240
893
|
}
|
|
241
894
|
);
|
|
242
|
-
function
|
|
895
|
+
function jr(u) {
|
|
243
896
|
var e;
|
|
244
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
897
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = Hr.get(u)) !== null && e !== void 0 ? e : u;
|
|
245
898
|
}
|
|
246
|
-
var
|
|
899
|
+
var P;
|
|
247
900
|
(function(u) {
|
|
248
901
|
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";
|
|
249
|
-
})(
|
|
250
|
-
const
|
|
251
|
-
var
|
|
902
|
+
})(P || (P = {}));
|
|
903
|
+
const Gr = 32;
|
|
904
|
+
var _u;
|
|
252
905
|
(function(u) {
|
|
253
906
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
254
|
-
})(
|
|
255
|
-
function
|
|
256
|
-
return u >=
|
|
907
|
+
})(_u || (_u = {}));
|
|
908
|
+
function r0(u) {
|
|
909
|
+
return u >= P.ZERO && u <= P.NINE;
|
|
257
910
|
}
|
|
258
|
-
function
|
|
259
|
-
return u >=
|
|
911
|
+
function Wr(u) {
|
|
912
|
+
return u >= P.UPPER_A && u <= P.UPPER_F || u >= P.LOWER_A && u <= P.LOWER_F;
|
|
260
913
|
}
|
|
261
|
-
function
|
|
262
|
-
return u >=
|
|
914
|
+
function Zr(u) {
|
|
915
|
+
return u >= P.UPPER_A && u <= P.UPPER_Z || u >= P.LOWER_A && u <= P.LOWER_Z || r0(u);
|
|
263
916
|
}
|
|
264
|
-
function
|
|
265
|
-
return u ===
|
|
917
|
+
function Vr(u) {
|
|
918
|
+
return u === P.EQUALS || Zr(u);
|
|
266
919
|
}
|
|
267
|
-
var
|
|
920
|
+
var B;
|
|
268
921
|
(function(u) {
|
|
269
922
|
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";
|
|
270
|
-
})(
|
|
271
|
-
var
|
|
923
|
+
})(B || (B = {}));
|
|
924
|
+
var bu;
|
|
272
925
|
(function(u) {
|
|
273
926
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
274
|
-
})(
|
|
275
|
-
class
|
|
927
|
+
})(bu || (bu = {}));
|
|
928
|
+
class Yr {
|
|
276
929
|
constructor(e, t, n) {
|
|
277
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
|
930
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = B.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
|
|
278
931
|
}
|
|
279
932
|
/** Resets the instance to make it reusable. */
|
|
280
933
|
startEntity(e) {
|
|
281
|
-
this.decodeMode = e, this.state =
|
|
934
|
+
this.decodeMode = e, this.state = B.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
282
935
|
}
|
|
283
936
|
/**
|
|
284
937
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -293,15 +946,15 @@ class xe {
|
|
|
293
946
|
*/
|
|
294
947
|
write(e, t) {
|
|
295
948
|
switch (this.state) {
|
|
296
|
-
case
|
|
297
|
-
return e.charCodeAt(t) ===
|
|
298
|
-
case
|
|
949
|
+
case B.EntityStart:
|
|
950
|
+
return e.charCodeAt(t) === P.NUM ? (this.state = B.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = B.NamedEntity, this.stateNamedEntity(e, t));
|
|
951
|
+
case B.NumericStart:
|
|
299
952
|
return this.stateNumericStart(e, t);
|
|
300
|
-
case
|
|
953
|
+
case B.NumericDecimal:
|
|
301
954
|
return this.stateNumericDecimal(e, t);
|
|
302
|
-
case
|
|
955
|
+
case B.NumericHex:
|
|
303
956
|
return this.stateNumericHex(e, t);
|
|
304
|
-
case
|
|
957
|
+
case B.NamedEntity:
|
|
305
958
|
return this.stateNamedEntity(e, t);
|
|
306
959
|
}
|
|
307
960
|
}
|
|
@@ -315,12 +968,12 @@ class xe {
|
|
|
315
968
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
316
969
|
*/
|
|
317
970
|
stateNumericStart(e, t) {
|
|
318
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
971
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | Gr) === P.LOWER_X ? (this.state = B.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = B.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
319
972
|
}
|
|
320
973
|
addToNumericResult(e, t, n, r) {
|
|
321
974
|
if (t !== n) {
|
|
322
|
-
const
|
|
323
|
-
this.result = this.result * Math.pow(r,
|
|
975
|
+
const o = n - t;
|
|
976
|
+
this.result = this.result * Math.pow(r, o) + parseInt(e.substr(t, o), r), this.consumed += o;
|
|
324
977
|
}
|
|
325
978
|
}
|
|
326
979
|
/**
|
|
@@ -336,7 +989,7 @@ class xe {
|
|
|
336
989
|
const n = t;
|
|
337
990
|
for (; t < e.length; ) {
|
|
338
991
|
const r = e.charCodeAt(t);
|
|
339
|
-
if (
|
|
992
|
+
if (r0(r) || Wr(r))
|
|
340
993
|
t += 1;
|
|
341
994
|
else
|
|
342
995
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -356,7 +1009,7 @@ class xe {
|
|
|
356
1009
|
const n = t;
|
|
357
1010
|
for (; t < e.length; ) {
|
|
358
1011
|
const r = e.charCodeAt(t);
|
|
359
|
-
if (
|
|
1012
|
+
if (r0(r))
|
|
360
1013
|
t += 1;
|
|
361
1014
|
else
|
|
362
1015
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -380,11 +1033,11 @@ class xe {
|
|
|
380
1033
|
var n;
|
|
381
1034
|
if (this.consumed <= t)
|
|
382
1035
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
383
|
-
if (e ===
|
|
1036
|
+
if (e === P.SEMI)
|
|
384
1037
|
this.consumed += 1;
|
|
385
|
-
else if (this.decodeMode ===
|
|
1038
|
+
else if (this.decodeMode === bu.Strict)
|
|
386
1039
|
return 0;
|
|
387
|
-
return this.emitCodePoint(
|
|
1040
|
+
return this.emitCodePoint(jr(this.result), this.consumed), this.errors && (e !== P.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
388
1041
|
}
|
|
389
1042
|
/**
|
|
390
1043
|
* Parses a named entity.
|
|
@@ -397,18 +1050,18 @@ class xe {
|
|
|
397
1050
|
*/
|
|
398
1051
|
stateNamedEntity(e, t) {
|
|
399
1052
|
const { decodeTree: n } = this;
|
|
400
|
-
let r = n[this.treeIndex],
|
|
1053
|
+
let r = n[this.treeIndex], o = (r & _u.VALUE_LENGTH) >> 14;
|
|
401
1054
|
for (; t < e.length; t++, this.excess++) {
|
|
402
|
-
const
|
|
403
|
-
if (this.treeIndex =
|
|
1055
|
+
const i = e.charCodeAt(t);
|
|
1056
|
+
if (this.treeIndex = Xr(n, r, this.treeIndex + Math.max(1, o), i), this.treeIndex < 0)
|
|
404
1057
|
return this.result === 0 || // If we are parsing an attribute
|
|
405
|
-
this.decodeMode ===
|
|
406
|
-
(
|
|
407
|
-
|
|
408
|
-
if (r = n[this.treeIndex],
|
|
409
|
-
if (
|
|
410
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
411
|
-
this.decodeMode !==
|
|
1058
|
+
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1059
|
+
(o === 0 || // And there should be no invalid characters.
|
|
1060
|
+
Vr(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1061
|
+
if (r = n[this.treeIndex], o = (r & _u.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1062
|
+
if (i === P.SEMI)
|
|
1063
|
+
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1064
|
+
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
412
1065
|
}
|
|
413
1066
|
}
|
|
414
1067
|
return -1;
|
|
@@ -420,7 +1073,7 @@ class xe {
|
|
|
420
1073
|
*/
|
|
421
1074
|
emitNotTerminatedNamedEntity() {
|
|
422
1075
|
var e;
|
|
423
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
1076
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & _u.VALUE_LENGTH) >> 14;
|
|
424
1077
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
425
1078
|
}
|
|
426
1079
|
/**
|
|
@@ -434,7 +1087,7 @@ class xe {
|
|
|
434
1087
|
*/
|
|
435
1088
|
emitNamedEntityData(e, t, n) {
|
|
436
1089
|
const { decodeTree: r } = this;
|
|
437
|
-
return this.emitCodePoint(t === 1 ? r[e] &
|
|
1090
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~_u.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
|
438
1091
|
}
|
|
439
1092
|
/**
|
|
440
1093
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -446,77 +1099,77 @@ class xe {
|
|
|
446
1099
|
end() {
|
|
447
1100
|
var e;
|
|
448
1101
|
switch (this.state) {
|
|
449
|
-
case
|
|
450
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
451
|
-
case
|
|
1102
|
+
case B.NamedEntity:
|
|
1103
|
+
return this.result !== 0 && (this.decodeMode !== bu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1104
|
+
case B.NumericDecimal:
|
|
452
1105
|
return this.emitNumericEntity(0, 2);
|
|
453
|
-
case
|
|
1106
|
+
case B.NumericHex:
|
|
454
1107
|
return this.emitNumericEntity(0, 3);
|
|
455
|
-
case
|
|
1108
|
+
case B.NumericStart:
|
|
456
1109
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
457
|
-
case
|
|
1110
|
+
case B.EntityStart:
|
|
458
1111
|
return 0;
|
|
459
1112
|
}
|
|
460
1113
|
}
|
|
461
1114
|
}
|
|
462
|
-
function
|
|
1115
|
+
function Ot(u) {
|
|
463
1116
|
let e = "";
|
|
464
|
-
const t = new
|
|
465
|
-
return function(r,
|
|
466
|
-
let
|
|
467
|
-
for (; (
|
|
468
|
-
e += r.slice(
|
|
1117
|
+
const t = new Yr(u, (n) => e += $r(n));
|
|
1118
|
+
return function(r, o) {
|
|
1119
|
+
let i = 0, c = 0;
|
|
1120
|
+
for (; (c = r.indexOf("&", c)) >= 0; ) {
|
|
1121
|
+
e += r.slice(i, c), t.startEntity(o);
|
|
469
1122
|
const s = t.write(
|
|
470
1123
|
r,
|
|
471
1124
|
// Skip the "&"
|
|
472
|
-
|
|
1125
|
+
c + 1
|
|
473
1126
|
);
|
|
474
1127
|
if (s < 0) {
|
|
475
|
-
|
|
1128
|
+
i = c + t.end();
|
|
476
1129
|
break;
|
|
477
1130
|
}
|
|
478
|
-
|
|
1131
|
+
i = c + s, c = s === 0 ? i + 1 : i;
|
|
479
1132
|
}
|
|
480
|
-
const a = e + r.slice(
|
|
1133
|
+
const a = e + r.slice(i);
|
|
481
1134
|
return e = "", a;
|
|
482
1135
|
};
|
|
483
1136
|
}
|
|
484
|
-
function
|
|
485
|
-
const r = (e &
|
|
1137
|
+
function Xr(u, e, t, n) {
|
|
1138
|
+
const r = (e & _u.BRANCH_LENGTH) >> 7, o = e & _u.JUMP_TABLE;
|
|
486
1139
|
if (r === 0)
|
|
487
|
-
return
|
|
488
|
-
if (
|
|
489
|
-
const a = n -
|
|
1140
|
+
return o !== 0 && n === o ? t : -1;
|
|
1141
|
+
if (o) {
|
|
1142
|
+
const a = n - o;
|
|
490
1143
|
return a < 0 || a >= r ? -1 : u[t + a] - 1;
|
|
491
1144
|
}
|
|
492
|
-
let
|
|
493
|
-
for (;
|
|
494
|
-
const a =
|
|
1145
|
+
let i = t, c = i + r - 1;
|
|
1146
|
+
for (; i <= c; ) {
|
|
1147
|
+
const a = i + c >>> 1, s = u[a];
|
|
495
1148
|
if (s < n)
|
|
496
|
-
|
|
1149
|
+
i = a + 1;
|
|
497
1150
|
else if (s > n)
|
|
498
|
-
|
|
1151
|
+
c = a - 1;
|
|
499
1152
|
else
|
|
500
1153
|
return u[a + r];
|
|
501
1154
|
}
|
|
502
1155
|
return -1;
|
|
503
1156
|
}
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
function
|
|
507
|
-
return
|
|
1157
|
+
const Jr = Ot(qr);
|
|
1158
|
+
Ot(Ur);
|
|
1159
|
+
function Nt(u, e = bu.Legacy) {
|
|
1160
|
+
return Jr(u, e);
|
|
508
1161
|
}
|
|
509
|
-
function
|
|
1162
|
+
function Qr(u) {
|
|
510
1163
|
return Object.prototype.toString.call(u);
|
|
511
1164
|
}
|
|
512
|
-
function
|
|
513
|
-
return
|
|
1165
|
+
function h0(u) {
|
|
1166
|
+
return Qr(u) === "[object String]";
|
|
514
1167
|
}
|
|
515
|
-
const
|
|
516
|
-
function
|
|
517
|
-
return
|
|
1168
|
+
const Kr = Object.prototype.hasOwnProperty;
|
|
1169
|
+
function uo(u, e) {
|
|
1170
|
+
return Kr.call(u, e);
|
|
518
1171
|
}
|
|
519
|
-
function
|
|
1172
|
+
function Te(u) {
|
|
520
1173
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
521
1174
|
if (t) {
|
|
522
1175
|
if (typeof t != "object")
|
|
@@ -527,13 +1180,13 @@ function du(u) {
|
|
|
527
1180
|
}
|
|
528
1181
|
}), u;
|
|
529
1182
|
}
|
|
530
|
-
function
|
|
1183
|
+
function Bt(u, e, t) {
|
|
531
1184
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
|
532
1185
|
}
|
|
533
|
-
function
|
|
1186
|
+
function p0(u) {
|
|
534
1187
|
return !(u >= 55296 && u <= 57343 || u >= 64976 && u <= 65007 || (u & 65535) === 65535 || (u & 65535) === 65534 || u >= 0 && u <= 8 || u === 11 || u >= 14 && u <= 31 || u >= 127 && u <= 159 || u > 1114111);
|
|
535
1188
|
}
|
|
536
|
-
function
|
|
1189
|
+
function ye(u) {
|
|
537
1190
|
if (u > 65535) {
|
|
538
1191
|
u -= 65536;
|
|
539
1192
|
const e = 55296 + (u >> 10), t = 56320 + (u & 1023);
|
|
@@ -541,40 +1194,40 @@ function fu(u) {
|
|
|
541
1194
|
}
|
|
542
1195
|
return String.fromCharCode(u);
|
|
543
1196
|
}
|
|
544
|
-
const
|
|
545
|
-
function
|
|
546
|
-
if (e.charCodeAt(0) === 35 &&
|
|
1197
|
+
const Pt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, eo = /&([a-z#][a-z0-9]{1,31});/gi, to = new RegExp(Pt.source + "|" + eo.source, "gi"), no = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1198
|
+
function ro(u, e) {
|
|
1199
|
+
if (e.charCodeAt(0) === 35 && no.test(e)) {
|
|
547
1200
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
548
|
-
return
|
|
1201
|
+
return p0(n) ? ye(n) : u;
|
|
549
1202
|
}
|
|
550
|
-
const t =
|
|
1203
|
+
const t = Nt(u);
|
|
551
1204
|
return t !== u ? t : u;
|
|
552
1205
|
}
|
|
553
|
-
function
|
|
554
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
1206
|
+
function oo(u) {
|
|
1207
|
+
return u.indexOf("\\") < 0 ? u : u.replace(Pt, "$1");
|
|
555
1208
|
}
|
|
556
|
-
function
|
|
557
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
558
|
-
return t ||
|
|
1209
|
+
function Bu(u) {
|
|
1210
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(to, function(e, t, n) {
|
|
1211
|
+
return t || ro(e, n);
|
|
559
1212
|
});
|
|
560
1213
|
}
|
|
561
|
-
const
|
|
1214
|
+
const co = /[&<>"]/, io = /[&<>"]/g, ao = {
|
|
562
1215
|
"&": "&",
|
|
563
1216
|
"<": "<",
|
|
564
1217
|
">": ">",
|
|
565
1218
|
'"': """
|
|
566
1219
|
};
|
|
567
|
-
function
|
|
568
|
-
return
|
|
1220
|
+
function so(u) {
|
|
1221
|
+
return ao[u];
|
|
569
1222
|
}
|
|
570
|
-
function
|
|
571
|
-
return
|
|
1223
|
+
function xu(u) {
|
|
1224
|
+
return co.test(u) ? u.replace(io, so) : u;
|
|
572
1225
|
}
|
|
573
|
-
const
|
|
574
|
-
function
|
|
575
|
-
return u.replace(
|
|
1226
|
+
const lo = /[.?*+^$[\]\\(){}|-]/g;
|
|
1227
|
+
function fo(u) {
|
|
1228
|
+
return u.replace(lo, "\\$&");
|
|
576
1229
|
}
|
|
577
|
-
function
|
|
1230
|
+
function w(u) {
|
|
578
1231
|
switch (u) {
|
|
579
1232
|
case 9:
|
|
580
1233
|
case 32:
|
|
@@ -582,7 +1235,7 @@ function E(u) {
|
|
|
582
1235
|
}
|
|
583
1236
|
return !1;
|
|
584
1237
|
}
|
|
585
|
-
function
|
|
1238
|
+
function Qu(u) {
|
|
586
1239
|
if (u >= 8192 && u <= 8202)
|
|
587
1240
|
return !0;
|
|
588
1241
|
switch (u) {
|
|
@@ -601,10 +1254,10 @@ function Y(u) {
|
|
|
601
1254
|
}
|
|
602
1255
|
return !1;
|
|
603
1256
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
1257
|
+
function Ku(u) {
|
|
1258
|
+
return d0.test(u) || Mt.test(u);
|
|
606
1259
|
}
|
|
607
|
-
function
|
|
1260
|
+
function ue(u) {
|
|
608
1261
|
switch (u) {
|
|
609
1262
|
case 33:
|
|
610
1263
|
case 34:
|
|
@@ -643,38 +1296,38 @@ function uu(u) {
|
|
|
643
1296
|
return !1;
|
|
644
1297
|
}
|
|
645
1298
|
}
|
|
646
|
-
function
|
|
1299
|
+
function Se(u) {
|
|
647
1300
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
648
1301
|
}
|
|
649
|
-
const
|
|
1302
|
+
const ho = { mdurl: Br, ucmicro: zr }, po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
650
1303
|
__proto__: null,
|
|
651
|
-
arrayReplaceAt:
|
|
652
|
-
assign:
|
|
653
|
-
escapeHtml:
|
|
654
|
-
escapeRE:
|
|
655
|
-
fromCodePoint:
|
|
656
|
-
has:
|
|
657
|
-
isMdAsciiPunct:
|
|
658
|
-
isPunctChar:
|
|
659
|
-
isSpace:
|
|
660
|
-
isString:
|
|
661
|
-
isValidEntityCode:
|
|
662
|
-
isWhiteSpace:
|
|
663
|
-
lib:
|
|
664
|
-
normalizeReference:
|
|
665
|
-
unescapeAll:
|
|
666
|
-
unescapeMd:
|
|
1304
|
+
arrayReplaceAt: Bt,
|
|
1305
|
+
assign: Te,
|
|
1306
|
+
escapeHtml: xu,
|
|
1307
|
+
escapeRE: fo,
|
|
1308
|
+
fromCodePoint: ye,
|
|
1309
|
+
has: uo,
|
|
1310
|
+
isMdAsciiPunct: ue,
|
|
1311
|
+
isPunctChar: Ku,
|
|
1312
|
+
isSpace: w,
|
|
1313
|
+
isString: h0,
|
|
1314
|
+
isValidEntityCode: p0,
|
|
1315
|
+
isWhiteSpace: Qu,
|
|
1316
|
+
lib: ho,
|
|
1317
|
+
normalizeReference: Se,
|
|
1318
|
+
unescapeAll: Bu,
|
|
1319
|
+
unescapeMd: oo
|
|
667
1320
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
668
|
-
function
|
|
669
|
-
let n, r,
|
|
670
|
-
const
|
|
671
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
|
672
|
-
if (
|
|
1321
|
+
function bo(u, e, t) {
|
|
1322
|
+
let n, r, o, i;
|
|
1323
|
+
const c = u.posMax, a = u.pos;
|
|
1324
|
+
for (u.pos = e + 1, n = 1; u.pos < c; ) {
|
|
1325
|
+
if (o = u.src.charCodeAt(u.pos), o === 93 && (n--, n === 0)) {
|
|
673
1326
|
r = !0;
|
|
674
1327
|
break;
|
|
675
1328
|
}
|
|
676
|
-
if (
|
|
677
|
-
if (
|
|
1329
|
+
if (i = u.pos, u.md.inline.skipToken(u), o === 91) {
|
|
1330
|
+
if (i === u.pos - 1)
|
|
678
1331
|
n++;
|
|
679
1332
|
else if (t)
|
|
680
1333
|
return u.pos = a, -1;
|
|
@@ -683,9 +1336,9 @@ function qe(u, e, t) {
|
|
|
683
1336
|
let s = -1;
|
|
684
1337
|
return r && (s = u.pos), u.pos = a, s;
|
|
685
1338
|
}
|
|
686
|
-
function
|
|
1339
|
+
function _o(u, e, t) {
|
|
687
1340
|
let n, r = e;
|
|
688
|
-
const
|
|
1341
|
+
const o = {
|
|
689
1342
|
ok: !1,
|
|
690
1343
|
pos: 0,
|
|
691
1344
|
str: ""
|
|
@@ -693,18 +1346,18 @@ function Re(u, e, t) {
|
|
|
693
1346
|
if (u.charCodeAt(r) === 60) {
|
|
694
1347
|
for (r++; r < t; ) {
|
|
695
1348
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
696
|
-
return
|
|
1349
|
+
return o;
|
|
697
1350
|
if (n === 62)
|
|
698
|
-
return
|
|
1351
|
+
return o.pos = r + 1, o.str = Bu(u.slice(e + 1, r)), o.ok = !0, o;
|
|
699
1352
|
if (n === 92 && r + 1 < t) {
|
|
700
1353
|
r += 2;
|
|
701
1354
|
continue;
|
|
702
1355
|
}
|
|
703
1356
|
r++;
|
|
704
1357
|
}
|
|
705
|
-
return
|
|
1358
|
+
return o;
|
|
706
1359
|
}
|
|
707
|
-
let
|
|
1360
|
+
let i = 0;
|
|
708
1361
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
709
1362
|
if (n === 92 && r + 1 < t) {
|
|
710
1363
|
if (u.charCodeAt(r + 1) === 32)
|
|
@@ -712,20 +1365,20 @@ function Re(u, e, t) {
|
|
|
712
1365
|
r += 2;
|
|
713
1366
|
continue;
|
|
714
1367
|
}
|
|
715
|
-
if (n === 40 && (
|
|
716
|
-
return
|
|
1368
|
+
if (n === 40 && (i++, i > 32))
|
|
1369
|
+
return o;
|
|
717
1370
|
if (n === 41) {
|
|
718
|
-
if (
|
|
1371
|
+
if (i === 0)
|
|
719
1372
|
break;
|
|
720
|
-
|
|
1373
|
+
i--;
|
|
721
1374
|
}
|
|
722
1375
|
r++;
|
|
723
1376
|
}
|
|
724
|
-
return e === r ||
|
|
1377
|
+
return e === r || i !== 0 || (o.str = Bu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
725
1378
|
}
|
|
726
|
-
function
|
|
727
|
-
let r,
|
|
728
|
-
const
|
|
1379
|
+
function mo(u, e, t, n) {
|
|
1380
|
+
let r, o = e;
|
|
1381
|
+
const i = {
|
|
729
1382
|
// if `true`, this is a valid link title
|
|
730
1383
|
ok: !1,
|
|
731
1384
|
// if `true`, this link can be continued on the next line
|
|
@@ -738,124 +1391,124 @@ function Le(u, e, t, n) {
|
|
|
738
1391
|
marker: 0
|
|
739
1392
|
};
|
|
740
1393
|
if (n)
|
|
741
|
-
|
|
1394
|
+
i.str = n.str, i.marker = n.marker;
|
|
742
1395
|
else {
|
|
743
|
-
if (
|
|
744
|
-
return
|
|
745
|
-
let
|
|
746
|
-
if (
|
|
747
|
-
return
|
|
748
|
-
e++,
|
|
749
|
-
}
|
|
750
|
-
for (;
|
|
751
|
-
if (r = u.charCodeAt(
|
|
752
|
-
return
|
|
753
|
-
if (r === 40 &&
|
|
754
|
-
return
|
|
755
|
-
r === 92 &&
|
|
756
|
-
}
|
|
757
|
-
return
|
|
758
|
-
}
|
|
759
|
-
const
|
|
1396
|
+
if (o >= t)
|
|
1397
|
+
return i;
|
|
1398
|
+
let c = u.charCodeAt(o);
|
|
1399
|
+
if (c !== 34 && c !== 39 && c !== 40)
|
|
1400
|
+
return i;
|
|
1401
|
+
e++, o++, c === 40 && (c = 41), i.marker = c;
|
|
1402
|
+
}
|
|
1403
|
+
for (; o < t; ) {
|
|
1404
|
+
if (r = u.charCodeAt(o), r === i.marker)
|
|
1405
|
+
return i.pos = o + 1, i.str += Bu(u.slice(e, o)), i.ok = !0, i;
|
|
1406
|
+
if (r === 40 && i.marker === 41)
|
|
1407
|
+
return i;
|
|
1408
|
+
r === 92 && o + 1 < t && o++, o++;
|
|
1409
|
+
}
|
|
1410
|
+
return i.can_continue = !0, i.str += Bu(u.slice(e, o)), i;
|
|
1411
|
+
}
|
|
1412
|
+
const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
760
1413
|
__proto__: null,
|
|
761
|
-
parseLinkDestination:
|
|
762
|
-
parseLinkLabel:
|
|
763
|
-
parseLinkTitle:
|
|
764
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
765
|
-
|
|
766
|
-
const
|
|
767
|
-
return "<code" + r.renderAttrs(
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
const
|
|
771
|
-
return "<pre" + r.renderAttrs(
|
|
1414
|
+
parseLinkDestination: _o,
|
|
1415
|
+
parseLinkLabel: bo,
|
|
1416
|
+
parseLinkTitle: mo
|
|
1417
|
+
}, Symbol.toStringTag, { value: "Module" })), iu = {};
|
|
1418
|
+
iu.code_inline = function(u, e, t, n, r) {
|
|
1419
|
+
const o = u[e];
|
|
1420
|
+
return "<code" + r.renderAttrs(o) + ">" + xu(o.content) + "</code>";
|
|
1421
|
+
};
|
|
1422
|
+
iu.code_block = function(u, e, t, n, r) {
|
|
1423
|
+
const o = u[e];
|
|
1424
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + xu(u[e].content) + `</code></pre>
|
|
772
1425
|
`;
|
|
773
1426
|
};
|
|
774
|
-
|
|
775
|
-
const
|
|
776
|
-
let
|
|
777
|
-
if (
|
|
778
|
-
const f =
|
|
779
|
-
|
|
1427
|
+
iu.fence = function(u, e, t, n, r) {
|
|
1428
|
+
const o = u[e], i = o.info ? Bu(o.info).trim() : "";
|
|
1429
|
+
let c = "", a = "";
|
|
1430
|
+
if (i) {
|
|
1431
|
+
const f = i.split(/(\s+)/g);
|
|
1432
|
+
c = f[0], a = f.slice(2).join("");
|
|
780
1433
|
}
|
|
781
1434
|
let s;
|
|
782
|
-
if (t.highlight ? s = t.highlight(
|
|
1435
|
+
if (t.highlight ? s = t.highlight(o.content, c, a) || xu(o.content) : s = xu(o.content), s.indexOf("<pre") === 0)
|
|
783
1436
|
return s + `
|
|
784
1437
|
`;
|
|
785
|
-
if (
|
|
786
|
-
const f =
|
|
787
|
-
f < 0 ? d.push(["class", t.langPrefix +
|
|
788
|
-
const
|
|
1438
|
+
if (i) {
|
|
1439
|
+
const f = o.attrIndex("class"), d = o.attrs ? o.attrs.slice() : [];
|
|
1440
|
+
f < 0 ? d.push(["class", t.langPrefix + c]) : (d[f] = d[f].slice(), d[f][1] += " " + t.langPrefix + c);
|
|
1441
|
+
const _ = {
|
|
789
1442
|
attrs: d
|
|
790
1443
|
};
|
|
791
|
-
return `<pre><code${r.renderAttrs(
|
|
1444
|
+
return `<pre><code${r.renderAttrs(_)}>${s}</code></pre>
|
|
792
1445
|
`;
|
|
793
1446
|
}
|
|
794
|
-
return `<pre><code${r.renderAttrs(
|
|
1447
|
+
return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
|
795
1448
|
`;
|
|
796
1449
|
};
|
|
797
|
-
|
|
798
|
-
const
|
|
799
|
-
return
|
|
1450
|
+
iu.image = function(u, e, t, n, r) {
|
|
1451
|
+
const o = u[e];
|
|
1452
|
+
return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(u, e, t);
|
|
800
1453
|
};
|
|
801
|
-
|
|
1454
|
+
iu.hardbreak = function(u, e, t) {
|
|
802
1455
|
return t.xhtmlOut ? `<br />
|
|
803
1456
|
` : `<br>
|
|
804
1457
|
`;
|
|
805
1458
|
};
|
|
806
|
-
|
|
1459
|
+
iu.softbreak = function(u, e, t) {
|
|
807
1460
|
return t.breaks ? t.xhtmlOut ? `<br />
|
|
808
1461
|
` : `<br>
|
|
809
1462
|
` : `
|
|
810
1463
|
`;
|
|
811
1464
|
};
|
|
812
|
-
|
|
813
|
-
return
|
|
1465
|
+
iu.text = function(u, e) {
|
|
1466
|
+
return xu(u[e].content);
|
|
814
1467
|
};
|
|
815
|
-
|
|
1468
|
+
iu.html_block = function(u, e) {
|
|
816
1469
|
return u[e].content;
|
|
817
1470
|
};
|
|
818
|
-
|
|
1471
|
+
iu.html_inline = function(u, e) {
|
|
819
1472
|
return u[e].content;
|
|
820
1473
|
};
|
|
821
|
-
function
|
|
822
|
-
this.rules =
|
|
1474
|
+
function Pu() {
|
|
1475
|
+
this.rules = Te({}, iu);
|
|
823
1476
|
}
|
|
824
|
-
|
|
1477
|
+
Pu.prototype.renderAttrs = function(e) {
|
|
825
1478
|
let t, n, r;
|
|
826
1479
|
if (!e.attrs)
|
|
827
1480
|
return "";
|
|
828
1481
|
for (r = "", t = 0, n = e.attrs.length; t < n; t++)
|
|
829
|
-
r += " " +
|
|
1482
|
+
r += " " + xu(e.attrs[t][0]) + '="' + xu(e.attrs[t][1]) + '"';
|
|
830
1483
|
return r;
|
|
831
1484
|
};
|
|
832
|
-
|
|
1485
|
+
Pu.prototype.renderToken = function(e, t, n) {
|
|
833
1486
|
const r = e[t];
|
|
834
|
-
let
|
|
1487
|
+
let o = "";
|
|
835
1488
|
if (r.hidden)
|
|
836
1489
|
return "";
|
|
837
|
-
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (
|
|
838
|
-
`),
|
|
839
|
-
let
|
|
840
|
-
if (r.block && (
|
|
841
|
-
const
|
|
842
|
-
(
|
|
1490
|
+
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (o += `
|
|
1491
|
+
`), o += (r.nesting === -1 ? "</" : "<") + r.tag, o += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (o += " /");
|
|
1492
|
+
let i = !1;
|
|
1493
|
+
if (r.block && (i = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1494
|
+
const c = e[t + 1];
|
|
1495
|
+
(c.type === "inline" || c.hidden || c.nesting === -1 && c.tag === r.tag) && (i = !1);
|
|
843
1496
|
}
|
|
844
|
-
return
|
|
845
|
-
` : ">",
|
|
1497
|
+
return o += i ? `>
|
|
1498
|
+
` : ">", o;
|
|
846
1499
|
};
|
|
847
|
-
|
|
1500
|
+
Pu.prototype.renderInline = function(u, e, t) {
|
|
848
1501
|
let n = "";
|
|
849
1502
|
const r = this.rules;
|
|
850
|
-
for (let
|
|
851
|
-
const
|
|
852
|
-
typeof r[
|
|
1503
|
+
for (let o = 0, i = u.length; o < i; o++) {
|
|
1504
|
+
const c = u[o].type;
|
|
1505
|
+
typeof r[c] < "u" ? n += r[c](u, o, e, t, this) : n += this.renderToken(u, o, e);
|
|
853
1506
|
}
|
|
854
1507
|
return n;
|
|
855
1508
|
};
|
|
856
|
-
|
|
1509
|
+
Pu.prototype.renderInlineAsText = function(u, e, t) {
|
|
857
1510
|
let n = "";
|
|
858
|
-
for (let r = 0,
|
|
1511
|
+
for (let r = 0, o = u.length; r < o; r++)
|
|
859
1512
|
switch (u[r].type) {
|
|
860
1513
|
case "text":
|
|
861
1514
|
n += u[r].content;
|
|
@@ -875,25 +1528,25 @@ Q.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
875
1528
|
}
|
|
876
1529
|
return n;
|
|
877
1530
|
};
|
|
878
|
-
|
|
1531
|
+
Pu.prototype.render = function(u, e, t) {
|
|
879
1532
|
let n = "";
|
|
880
1533
|
const r = this.rules;
|
|
881
|
-
for (let
|
|
882
|
-
const
|
|
883
|
-
|
|
1534
|
+
for (let o = 0, i = u.length; o < i; o++) {
|
|
1535
|
+
const c = u[o].type;
|
|
1536
|
+
c === "inline" ? n += this.renderInline(u[o].children, e, t) : typeof r[c] < "u" ? n += r[c](u, o, e, t, this) : n += this.renderToken(u, o, e, t);
|
|
884
1537
|
}
|
|
885
1538
|
return n;
|
|
886
1539
|
};
|
|
887
|
-
function
|
|
1540
|
+
function V() {
|
|
888
1541
|
this.__rules__ = [], this.__cache__ = null;
|
|
889
1542
|
}
|
|
890
|
-
|
|
1543
|
+
V.prototype.__find__ = function(u) {
|
|
891
1544
|
for (let e = 0; e < this.__rules__.length; e++)
|
|
892
1545
|
if (this.__rules__[e].name === u)
|
|
893
1546
|
return e;
|
|
894
1547
|
return -1;
|
|
895
1548
|
};
|
|
896
|
-
|
|
1549
|
+
V.prototype.__compile__ = function() {
|
|
897
1550
|
const u = this, e = [""];
|
|
898
1551
|
u.__rules__.forEach(function(t) {
|
|
899
1552
|
t.enabled && t.alt.forEach(function(n) {
|
|
@@ -905,35 +1558,35 @@ w.prototype.__compile__ = function() {
|
|
|
905
1558
|
});
|
|
906
1559
|
});
|
|
907
1560
|
};
|
|
908
|
-
|
|
1561
|
+
V.prototype.at = function(u, e, t) {
|
|
909
1562
|
const n = this.__find__(u), r = t || {};
|
|
910
1563
|
if (n === -1)
|
|
911
1564
|
throw new Error("Parser rule not found: " + u);
|
|
912
1565
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
913
1566
|
};
|
|
914
|
-
|
|
915
|
-
const r = this.__find__(u),
|
|
1567
|
+
V.prototype.before = function(u, e, t, n) {
|
|
1568
|
+
const r = this.__find__(u), o = n || {};
|
|
916
1569
|
if (r === -1)
|
|
917
1570
|
throw new Error("Parser rule not found: " + u);
|
|
918
1571
|
this.__rules__.splice(r, 0, {
|
|
919
1572
|
name: e,
|
|
920
1573
|
enabled: !0,
|
|
921
1574
|
fn: t,
|
|
922
|
-
alt:
|
|
1575
|
+
alt: o.alt || []
|
|
923
1576
|
}), this.__cache__ = null;
|
|
924
1577
|
};
|
|
925
|
-
|
|
926
|
-
const r = this.__find__(u),
|
|
1578
|
+
V.prototype.after = function(u, e, t, n) {
|
|
1579
|
+
const r = this.__find__(u), o = n || {};
|
|
927
1580
|
if (r === -1)
|
|
928
1581
|
throw new Error("Parser rule not found: " + u);
|
|
929
1582
|
this.__rules__.splice(r + 1, 0, {
|
|
930
1583
|
name: e,
|
|
931
1584
|
enabled: !0,
|
|
932
1585
|
fn: t,
|
|
933
|
-
alt:
|
|
1586
|
+
alt: o.alt || []
|
|
934
1587
|
}), this.__cache__ = null;
|
|
935
1588
|
};
|
|
936
|
-
|
|
1589
|
+
V.prototype.push = function(u, e, t) {
|
|
937
1590
|
const n = t || {};
|
|
938
1591
|
this.__rules__.push({
|
|
939
1592
|
name: u,
|
|
@@ -942,7 +1595,7 @@ w.prototype.push = function(u, e, t) {
|
|
|
942
1595
|
alt: n.alt || []
|
|
943
1596
|
}), this.__cache__ = null;
|
|
944
1597
|
};
|
|
945
|
-
|
|
1598
|
+
V.prototype.enable = function(u, e) {
|
|
946
1599
|
Array.isArray(u) || (u = [u]);
|
|
947
1600
|
const t = [];
|
|
948
1601
|
return u.forEach(function(n) {
|
|
@@ -955,12 +1608,12 @@ w.prototype.enable = function(u, e) {
|
|
|
955
1608
|
this.__rules__[r].enabled = !0, t.push(n);
|
|
956
1609
|
}, this), this.__cache__ = null, t;
|
|
957
1610
|
};
|
|
958
|
-
|
|
1611
|
+
V.prototype.enableOnly = function(u, e) {
|
|
959
1612
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
|
960
1613
|
t.enabled = !1;
|
|
961
1614
|
}), this.enable(u, e);
|
|
962
1615
|
};
|
|
963
|
-
|
|
1616
|
+
V.prototype.disable = function(u, e) {
|
|
964
1617
|
Array.isArray(u) || (u = [u]);
|
|
965
1618
|
const t = [];
|
|
966
1619
|
return u.forEach(function(n) {
|
|
@@ -973,13 +1626,13 @@ w.prototype.disable = function(u, e) {
|
|
|
973
1626
|
this.__rules__[r].enabled = !1, t.push(n);
|
|
974
1627
|
}, this), this.__cache__ = null, t;
|
|
975
1628
|
};
|
|
976
|
-
|
|
1629
|
+
V.prototype.getRules = function(u) {
|
|
977
1630
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
978
1631
|
};
|
|
979
|
-
function
|
|
1632
|
+
function tu(u, e, t) {
|
|
980
1633
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
981
1634
|
}
|
|
982
|
-
|
|
1635
|
+
tu.prototype.attrIndex = function(e) {
|
|
983
1636
|
if (!this.attrs)
|
|
984
1637
|
return -1;
|
|
985
1638
|
const t = this.attrs;
|
|
@@ -988,284 +1641,284 @@ z.prototype.attrIndex = function(e) {
|
|
|
988
1641
|
return n;
|
|
989
1642
|
return -1;
|
|
990
1643
|
};
|
|
991
|
-
|
|
1644
|
+
tu.prototype.attrPush = function(e) {
|
|
992
1645
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
993
1646
|
};
|
|
994
|
-
|
|
1647
|
+
tu.prototype.attrSet = function(e, t) {
|
|
995
1648
|
const n = this.attrIndex(e), r = [e, t];
|
|
996
1649
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
997
1650
|
};
|
|
998
|
-
|
|
1651
|
+
tu.prototype.attrGet = function(e) {
|
|
999
1652
|
const t = this.attrIndex(e);
|
|
1000
1653
|
let n = null;
|
|
1001
1654
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1002
1655
|
};
|
|
1003
|
-
|
|
1656
|
+
tu.prototype.attrJoin = function(e, t) {
|
|
1004
1657
|
const n = this.attrIndex(e);
|
|
1005
1658
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1006
1659
|
};
|
|
1007
|
-
function
|
|
1660
|
+
function zt(u, e, t) {
|
|
1008
1661
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1009
1662
|
}
|
|
1010
|
-
|
|
1011
|
-
const
|
|
1012
|
-
function
|
|
1663
|
+
zt.prototype.Token = tu;
|
|
1664
|
+
const go = /\r\n?|\n/g, ko = /\0/g;
|
|
1665
|
+
function Eo(u) {
|
|
1013
1666
|
let e;
|
|
1014
|
-
e = u.src.replace(
|
|
1015
|
-
`), e = e.replace(
|
|
1667
|
+
e = u.src.replace(go, `
|
|
1668
|
+
`), e = e.replace(ko, "�"), u.src = e;
|
|
1016
1669
|
}
|
|
1017
|
-
function
|
|
1670
|
+
function Ao(u) {
|
|
1018
1671
|
let e;
|
|
1019
1672
|
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);
|
|
1020
1673
|
}
|
|
1021
|
-
function
|
|
1674
|
+
function Co(u) {
|
|
1022
1675
|
const e = u.tokens;
|
|
1023
1676
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1024
1677
|
const r = e[t];
|
|
1025
1678
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1026
1679
|
}
|
|
1027
1680
|
}
|
|
1028
|
-
function
|
|
1681
|
+
function Do(u) {
|
|
1029
1682
|
return /^<a[>\s]/i.test(u);
|
|
1030
1683
|
}
|
|
1031
|
-
function
|
|
1684
|
+
function yo(u) {
|
|
1032
1685
|
return /^<\/a\s*>/i.test(u);
|
|
1033
1686
|
}
|
|
1034
|
-
function
|
|
1687
|
+
function Fo(u) {
|
|
1035
1688
|
const e = u.tokens;
|
|
1036
1689
|
if (u.md.options.linkify)
|
|
1037
1690
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1038
1691
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1039
1692
|
continue;
|
|
1040
|
-
let r = e[t].children,
|
|
1041
|
-
for (let
|
|
1042
|
-
const
|
|
1043
|
-
if (
|
|
1044
|
-
for (
|
|
1045
|
-
|
|
1693
|
+
let r = e[t].children, o = 0;
|
|
1694
|
+
for (let i = r.length - 1; i >= 0; i--) {
|
|
1695
|
+
const c = r[i];
|
|
1696
|
+
if (c.type === "link_close") {
|
|
1697
|
+
for (i--; r[i].level !== c.level && r[i].type !== "link_open"; )
|
|
1698
|
+
i--;
|
|
1046
1699
|
continue;
|
|
1047
1700
|
}
|
|
1048
|
-
if (
|
|
1049
|
-
const a =
|
|
1701
|
+
if (c.type === "html_inline" && (Do(c.content) && o > 0 && o--, yo(c.content) && o++), !(o > 0) && c.type === "text" && u.md.linkify.test(c.content)) {
|
|
1702
|
+
const a = c.content;
|
|
1050
1703
|
let s = u.md.linkify.match(a);
|
|
1051
1704
|
const f = [];
|
|
1052
|
-
let d =
|
|
1053
|
-
s.length > 0 && s[0].index === 0 &&
|
|
1054
|
-
for (let
|
|
1055
|
-
const
|
|
1056
|
-
if (!u.md.validateLink(
|
|
1705
|
+
let d = c.level, _ = 0;
|
|
1706
|
+
s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
|
|
1707
|
+
for (let p = 0; p < s.length; p++) {
|
|
1708
|
+
const h = s[p].url, C = u.md.normalizeLink(h);
|
|
1709
|
+
if (!u.md.validateLink(C))
|
|
1057
1710
|
continue;
|
|
1058
|
-
let
|
|
1059
|
-
s[
|
|
1060
|
-
const
|
|
1061
|
-
if (
|
|
1062
|
-
const
|
|
1063
|
-
|
|
1711
|
+
let D = s[p].text;
|
|
1712
|
+
s[p].schema ? s[p].schema === "mailto:" && !/^mailto:/i.test(D) ? D = u.md.normalizeLinkText("mailto:" + D).replace(/^mailto:/, "") : D = u.md.normalizeLinkText(D) : D = u.md.normalizeLinkText("http://" + D).replace(/^http:\/\//, "");
|
|
1713
|
+
const T = s[p].index;
|
|
1714
|
+
if (T > _) {
|
|
1715
|
+
const A = new u.Token("text", "", 0);
|
|
1716
|
+
A.content = a.slice(_, T), A.level = d, f.push(A);
|
|
1064
1717
|
}
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1069
|
-
const
|
|
1070
|
-
|
|
1718
|
+
const E = new u.Token("link_open", "a", 1);
|
|
1719
|
+
E.attrs = [["href", C]], E.level = d++, E.markup = "linkify", E.info = "auto", f.push(E);
|
|
1720
|
+
const k = new u.Token("text", "", 0);
|
|
1721
|
+
k.content = D, k.level = d, f.push(k);
|
|
1722
|
+
const m = new u.Token("link_close", "a", -1);
|
|
1723
|
+
m.level = --d, m.markup = "linkify", m.info = "auto", f.push(m), _ = s[p].lastIndex;
|
|
1071
1724
|
}
|
|
1072
|
-
if (
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1725
|
+
if (_ < a.length) {
|
|
1726
|
+
const p = new u.Token("text", "", 0);
|
|
1727
|
+
p.content = a.slice(_), p.level = d, f.push(p);
|
|
1075
1728
|
}
|
|
1076
|
-
e[t].children = r =
|
|
1729
|
+
e[t].children = r = Bt(r, i, f);
|
|
1077
1730
|
}
|
|
1078
1731
|
}
|
|
1079
1732
|
}
|
|
1080
1733
|
}
|
|
1081
|
-
const
|
|
1734
|
+
const qt = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, To = /\((c|tm|r)\)/i, So = /\((c|tm|r)\)/ig, wo = {
|
|
1082
1735
|
c: "©",
|
|
1083
1736
|
r: "®",
|
|
1084
1737
|
tm: "™"
|
|
1085
1738
|
};
|
|
1086
|
-
function
|
|
1087
|
-
return
|
|
1739
|
+
function vo(u, e) {
|
|
1740
|
+
return wo[e.toLowerCase()];
|
|
1088
1741
|
}
|
|
1089
|
-
function
|
|
1742
|
+
function Ro(u) {
|
|
1090
1743
|
let e = 0;
|
|
1091
1744
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1092
1745
|
const n = u[t];
|
|
1093
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
1746
|
+
n.type === "text" && !e && (n.content = n.content.replace(So, vo)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1094
1747
|
}
|
|
1095
1748
|
}
|
|
1096
|
-
function
|
|
1749
|
+
function Io(u) {
|
|
1097
1750
|
let e = 0;
|
|
1098
1751
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1099
1752
|
const n = u[t];
|
|
1100
|
-
n.type === "text" && !e &&
|
|
1753
|
+
n.type === "text" && !e && qt.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++;
|
|
1101
1754
|
}
|
|
1102
1755
|
}
|
|
1103
|
-
function
|
|
1756
|
+
function Mo(u) {
|
|
1104
1757
|
let e;
|
|
1105
1758
|
if (u.md.options.typographer)
|
|
1106
1759
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1107
|
-
u.tokens[e].type === "inline" && (
|
|
1760
|
+
u.tokens[e].type === "inline" && (To.test(u.tokens[e].content) && Ro(u.tokens[e].children), qt.test(u.tokens[e].content) && Io(u.tokens[e].children));
|
|
1108
1761
|
}
|
|
1109
|
-
const
|
|
1110
|
-
function
|
|
1762
|
+
const Lo = /['"]/, ft = /['"]/g, dt = "’";
|
|
1763
|
+
function me(u, e, t) {
|
|
1111
1764
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1112
1765
|
}
|
|
1113
|
-
function
|
|
1766
|
+
function Oo(u, e) {
|
|
1114
1767
|
let t;
|
|
1115
1768
|
const n = [];
|
|
1116
1769
|
for (let r = 0; r < u.length; r++) {
|
|
1117
|
-
const
|
|
1118
|
-
for (t = n.length - 1; t >= 0 && !(n[t].level <=
|
|
1770
|
+
const o = u[r], i = u[r].level;
|
|
1771
|
+
for (t = n.length - 1; t >= 0 && !(n[t].level <= i); t--)
|
|
1119
1772
|
;
|
|
1120
|
-
if (n.length = t + 1,
|
|
1773
|
+
if (n.length = t + 1, o.type !== "text")
|
|
1121
1774
|
continue;
|
|
1122
|
-
let
|
|
1775
|
+
let c = o.content, a = 0, s = c.length;
|
|
1123
1776
|
u:
|
|
1124
1777
|
for (; a < s; ) {
|
|
1125
|
-
|
|
1126
|
-
const f =
|
|
1778
|
+
ft.lastIndex = a;
|
|
1779
|
+
const f = ft.exec(c);
|
|
1127
1780
|
if (!f)
|
|
1128
1781
|
break;
|
|
1129
|
-
let d = !0,
|
|
1782
|
+
let d = !0, _ = !0;
|
|
1130
1783
|
a = f.index + 1;
|
|
1131
|
-
const
|
|
1132
|
-
let
|
|
1784
|
+
const p = f[0] === "'";
|
|
1785
|
+
let h = 32;
|
|
1133
1786
|
if (f.index - 1 >= 0)
|
|
1134
|
-
|
|
1787
|
+
h = c.charCodeAt(f.index - 1);
|
|
1135
1788
|
else
|
|
1136
1789
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
1137
1790
|
if (u[t].content) {
|
|
1138
|
-
|
|
1791
|
+
h = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1139
1792
|
break;
|
|
1140
1793
|
}
|
|
1141
|
-
let
|
|
1794
|
+
let C = 32;
|
|
1142
1795
|
if (a < s)
|
|
1143
|
-
|
|
1796
|
+
C = c.charCodeAt(a);
|
|
1144
1797
|
else
|
|
1145
1798
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1146
1799
|
if (u[t].content) {
|
|
1147
|
-
|
|
1800
|
+
C = u[t].content.charCodeAt(0);
|
|
1148
1801
|
break;
|
|
1149
1802
|
}
|
|
1150
|
-
const
|
|
1151
|
-
if (
|
|
1152
|
-
|
|
1803
|
+
const D = ue(h) || Ku(String.fromCharCode(h)), T = ue(C) || Ku(String.fromCharCode(C)), E = Qu(h), k = Qu(C);
|
|
1804
|
+
if (k ? d = !1 : T && (E || D || (d = !1)), E ? _ = !1 : D && (k || T || (_ = !1)), C === 34 && f[0] === '"' && h >= 48 && h <= 57 && (_ = d = !1), d && _ && (d = D, _ = T), !d && !_) {
|
|
1805
|
+
p && (o.content = me(o.content, f.index, dt));
|
|
1153
1806
|
continue;
|
|
1154
1807
|
}
|
|
1155
|
-
if (
|
|
1808
|
+
if (_)
|
|
1156
1809
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1157
|
-
let
|
|
1158
|
-
if (n[t].level <
|
|
1810
|
+
let m = n[t];
|
|
1811
|
+
if (n[t].level < i)
|
|
1159
1812
|
break;
|
|
1160
|
-
if (
|
|
1161
|
-
|
|
1162
|
-
let
|
|
1163
|
-
|
|
1164
|
-
u[
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
), a +=
|
|
1813
|
+
if (m.single === p && n[t].level === i) {
|
|
1814
|
+
m = n[t];
|
|
1815
|
+
let A, y;
|
|
1816
|
+
p ? (A = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (A = e.md.options.quotes[0], y = e.md.options.quotes[1]), o.content = me(o.content, f.index, y), u[m.token].content = me(
|
|
1817
|
+
u[m.token].content,
|
|
1818
|
+
m.pos,
|
|
1819
|
+
A
|
|
1820
|
+
), a += y.length - 1, m.token === r && (a += A.length - 1), c = o.content, s = c.length, n.length = t;
|
|
1168
1821
|
continue u;
|
|
1169
1822
|
}
|
|
1170
1823
|
}
|
|
1171
1824
|
d ? n.push({
|
|
1172
1825
|
token: r,
|
|
1173
1826
|
pos: f.index,
|
|
1174
|
-
single:
|
|
1175
|
-
level:
|
|
1176
|
-
}) :
|
|
1827
|
+
single: p,
|
|
1828
|
+
level: i
|
|
1829
|
+
}) : _ && p && (o.content = me(o.content, f.index, dt));
|
|
1177
1830
|
}
|
|
1178
1831
|
}
|
|
1179
1832
|
}
|
|
1180
|
-
function
|
|
1833
|
+
function No(u) {
|
|
1181
1834
|
if (u.md.options.typographer)
|
|
1182
1835
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
1183
|
-
u.tokens[e].type !== "inline" || !
|
|
1836
|
+
u.tokens[e].type !== "inline" || !Lo.test(u.tokens[e].content) || Oo(u.tokens[e].children, u);
|
|
1184
1837
|
}
|
|
1185
|
-
function
|
|
1838
|
+
function Bo(u) {
|
|
1186
1839
|
let e, t;
|
|
1187
1840
|
const n = u.tokens, r = n.length;
|
|
1188
|
-
for (let
|
|
1189
|
-
if (n[
|
|
1190
|
-
const
|
|
1191
|
-
for (e = 0; e <
|
|
1192
|
-
|
|
1193
|
-
for (e = t = 0; e <
|
|
1194
|
-
|
|
1195
|
-
e !== t && (
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
const
|
|
1199
|
-
["normalize",
|
|
1200
|
-
["block",
|
|
1201
|
-
["inline",
|
|
1202
|
-
["linkify",
|
|
1203
|
-
["replacements",
|
|
1204
|
-
["smartquotes",
|
|
1841
|
+
for (let o = 0; o < r; o++) {
|
|
1842
|
+
if (n[o].type !== "inline") continue;
|
|
1843
|
+
const i = n[o].children, c = i.length;
|
|
1844
|
+
for (e = 0; e < c; e++)
|
|
1845
|
+
i[e].type === "text_special" && (i[e].type = "text");
|
|
1846
|
+
for (e = t = 0; e < c; e++)
|
|
1847
|
+
i[e].type === "text" && e + 1 < c && i[e + 1].type === "text" ? i[e + 1].content = i[e].content + i[e + 1].content : (e !== t && (i[t] = i[e]), t++);
|
|
1848
|
+
e !== t && (i.length = t);
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
const Ye = [
|
|
1852
|
+
["normalize", Eo],
|
|
1853
|
+
["block", Ao],
|
|
1854
|
+
["inline", Co],
|
|
1855
|
+
["linkify", Fo],
|
|
1856
|
+
["replacements", Mo],
|
|
1857
|
+
["smartquotes", No],
|
|
1205
1858
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
1206
1859
|
// and joins them with the rest of the text
|
|
1207
|
-
["text_join",
|
|
1860
|
+
["text_join", Bo]
|
|
1208
1861
|
];
|
|
1209
|
-
function
|
|
1210
|
-
this.ruler = new
|
|
1211
|
-
for (let u = 0; u <
|
|
1212
|
-
this.ruler.push(
|
|
1862
|
+
function b0() {
|
|
1863
|
+
this.ruler = new V();
|
|
1864
|
+
for (let u = 0; u < Ye.length; u++)
|
|
1865
|
+
this.ruler.push(Ye[u][0], Ye[u][1]);
|
|
1213
1866
|
}
|
|
1214
|
-
|
|
1867
|
+
b0.prototype.process = function(u) {
|
|
1215
1868
|
const e = this.ruler.getRules("");
|
|
1216
1869
|
for (let t = 0, n = e.length; t < n; t++)
|
|
1217
1870
|
e[t](u);
|
|
1218
1871
|
};
|
|
1219
|
-
|
|
1220
|
-
function
|
|
1872
|
+
b0.prototype.State = zt;
|
|
1873
|
+
function au(u, e, t, n) {
|
|
1221
1874
|
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;
|
|
1222
1875
|
const r = this.src;
|
|
1223
|
-
for (let
|
|
1224
|
-
const d = r.charCodeAt(
|
|
1876
|
+
for (let o = 0, i = 0, c = 0, a = 0, s = r.length, f = !1; i < s; i++) {
|
|
1877
|
+
const d = r.charCodeAt(i);
|
|
1225
1878
|
if (!f)
|
|
1226
|
-
if (
|
|
1227
|
-
|
|
1879
|
+
if (w(d)) {
|
|
1880
|
+
c++, d === 9 ? a += 4 - a % 4 : a++;
|
|
1228
1881
|
continue;
|
|
1229
1882
|
} else
|
|
1230
1883
|
f = !0;
|
|
1231
|
-
(d === 10 ||
|
|
1884
|
+
(d === 10 || i === s - 1) && (d !== 10 && i++, this.bMarks.push(o), this.eMarks.push(i), this.tShift.push(c), this.sCount.push(a), this.bsCount.push(0), f = !1, c = 0, a = 0, o = i + 1);
|
|
1232
1885
|
}
|
|
1233
1886
|
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;
|
|
1234
1887
|
}
|
|
1235
|
-
|
|
1236
|
-
const n = new
|
|
1888
|
+
au.prototype.push = function(u, e, t) {
|
|
1889
|
+
const n = new tu(u, e, t);
|
|
1237
1890
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
1238
1891
|
};
|
|
1239
|
-
|
|
1892
|
+
au.prototype.isEmpty = function(e) {
|
|
1240
1893
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
|
1241
1894
|
};
|
|
1242
|
-
|
|
1895
|
+
au.prototype.skipEmptyLines = function(e) {
|
|
1243
1896
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
|
1244
1897
|
;
|
|
1245
1898
|
return e;
|
|
1246
1899
|
};
|
|
1247
|
-
|
|
1900
|
+
au.prototype.skipSpaces = function(e) {
|
|
1248
1901
|
for (let t = this.src.length; e < t; e++) {
|
|
1249
1902
|
const n = this.src.charCodeAt(e);
|
|
1250
|
-
if (!
|
|
1903
|
+
if (!w(n))
|
|
1251
1904
|
break;
|
|
1252
1905
|
}
|
|
1253
1906
|
return e;
|
|
1254
1907
|
};
|
|
1255
|
-
|
|
1908
|
+
au.prototype.skipSpacesBack = function(e, t) {
|
|
1256
1909
|
if (e <= t)
|
|
1257
1910
|
return e;
|
|
1258
1911
|
for (; e > t; )
|
|
1259
|
-
if (!
|
|
1912
|
+
if (!w(this.src.charCodeAt(--e)))
|
|
1260
1913
|
return e + 1;
|
|
1261
1914
|
return e;
|
|
1262
1915
|
};
|
|
1263
|
-
|
|
1916
|
+
au.prototype.skipChars = function(e, t) {
|
|
1264
1917
|
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
|
|
1265
1918
|
;
|
|
1266
1919
|
return e;
|
|
1267
1920
|
};
|
|
1268
|
-
|
|
1921
|
+
au.prototype.skipCharsBack = function(e, t, n) {
|
|
1269
1922
|
if (e <= n)
|
|
1270
1923
|
return e;
|
|
1271
1924
|
for (; e > n; )
|
|
@@ -1273,125 +1926,125 @@ R.prototype.skipCharsBack = function(e, t, n) {
|
|
|
1273
1926
|
return e + 1;
|
|
1274
1927
|
return e;
|
|
1275
1928
|
};
|
|
1276
|
-
|
|
1929
|
+
au.prototype.getLines = function(e, t, n, r) {
|
|
1277
1930
|
if (e >= t)
|
|
1278
1931
|
return "";
|
|
1279
|
-
const
|
|
1280
|
-
for (let
|
|
1932
|
+
const o = new Array(t - e);
|
|
1933
|
+
for (let i = 0, c = e; c < t; c++, i++) {
|
|
1281
1934
|
let a = 0;
|
|
1282
|
-
const s = this.bMarks[
|
|
1935
|
+
const s = this.bMarks[c];
|
|
1283
1936
|
let f = s, d;
|
|
1284
|
-
for (
|
|
1285
|
-
const
|
|
1286
|
-
if (
|
|
1287
|
-
|
|
1288
|
-
else if (f - s < this.tShift[
|
|
1937
|
+
for (c + 1 < t || r ? d = this.eMarks[c] + 1 : d = this.eMarks[c]; f < d && a < n; ) {
|
|
1938
|
+
const _ = this.src.charCodeAt(f);
|
|
1939
|
+
if (w(_))
|
|
1940
|
+
_ === 9 ? a += 4 - (a + this.bsCount[c]) % 4 : a++;
|
|
1941
|
+
else if (f - s < this.tShift[c])
|
|
1289
1942
|
a++;
|
|
1290
1943
|
else
|
|
1291
1944
|
break;
|
|
1292
1945
|
f++;
|
|
1293
1946
|
}
|
|
1294
|
-
a > n ?
|
|
1947
|
+
a > n ? o[i] = new Array(a - n + 1).join(" ") + this.src.slice(f, d) : o[i] = this.src.slice(f, d);
|
|
1295
1948
|
}
|
|
1296
|
-
return
|
|
1949
|
+
return o.join("");
|
|
1297
1950
|
};
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1300
|
-
function
|
|
1951
|
+
au.prototype.Token = tu;
|
|
1952
|
+
const Po = 65536;
|
|
1953
|
+
function Xe(u, e) {
|
|
1301
1954
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
1302
1955
|
return u.src.slice(t, n);
|
|
1303
1956
|
}
|
|
1304
|
-
function
|
|
1957
|
+
function ht(u) {
|
|
1305
1958
|
const e = [], t = u.length;
|
|
1306
|
-
let n = 0, r = u.charCodeAt(n),
|
|
1959
|
+
let n = 0, r = u.charCodeAt(n), o = !1, i = 0, c = "";
|
|
1307
1960
|
for (; n < t; )
|
|
1308
|
-
r === 124 && (
|
|
1309
|
-
return e.push(
|
|
1961
|
+
r === 124 && (o ? (c += u.substring(i, n - 1), i = n) : (e.push(c + u.substring(i, n)), c = "", i = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
1962
|
+
return e.push(c + u.substring(i)), e;
|
|
1310
1963
|
}
|
|
1311
|
-
function
|
|
1964
|
+
function zo(u, e, t, n) {
|
|
1312
1965
|
if (e + 2 > t)
|
|
1313
1966
|
return !1;
|
|
1314
1967
|
let r = e + 1;
|
|
1315
1968
|
if (u.sCount[r] < u.blkIndent || u.sCount[r] - u.blkIndent >= 4)
|
|
1316
1969
|
return !1;
|
|
1317
|
-
let
|
|
1318
|
-
if (
|
|
1970
|
+
let o = u.bMarks[r] + u.tShift[r];
|
|
1971
|
+
if (o >= u.eMarks[r])
|
|
1319
1972
|
return !1;
|
|
1320
|
-
const
|
|
1321
|
-
if (
|
|
1973
|
+
const i = u.src.charCodeAt(o++);
|
|
1974
|
+
if (i !== 124 && i !== 45 && i !== 58 || o >= u.eMarks[r])
|
|
1322
1975
|
return !1;
|
|
1323
|
-
const
|
|
1324
|
-
if (
|
|
1976
|
+
const c = u.src.charCodeAt(o++);
|
|
1977
|
+
if (c !== 124 && c !== 45 && c !== 58 && !w(c) || i === 45 && w(c))
|
|
1325
1978
|
return !1;
|
|
1326
|
-
for (;
|
|
1327
|
-
const
|
|
1328
|
-
if (
|
|
1979
|
+
for (; o < u.eMarks[r]; ) {
|
|
1980
|
+
const m = u.src.charCodeAt(o);
|
|
1981
|
+
if (m !== 124 && m !== 45 && m !== 58 && !w(m))
|
|
1329
1982
|
return !1;
|
|
1330
|
-
|
|
1983
|
+
o++;
|
|
1331
1984
|
}
|
|
1332
|
-
let a =
|
|
1985
|
+
let a = Xe(u, e + 1), s = a.split("|");
|
|
1333
1986
|
const f = [];
|
|
1334
|
-
for (let
|
|
1335
|
-
const
|
|
1336
|
-
if (!
|
|
1337
|
-
if (
|
|
1987
|
+
for (let m = 0; m < s.length; m++) {
|
|
1988
|
+
const A = s[m].trim();
|
|
1989
|
+
if (!A) {
|
|
1990
|
+
if (m === 0 || m === s.length - 1)
|
|
1338
1991
|
continue;
|
|
1339
1992
|
return !1;
|
|
1340
1993
|
}
|
|
1341
|
-
if (!/^:?-+:?$/.test(
|
|
1994
|
+
if (!/^:?-+:?$/.test(A))
|
|
1342
1995
|
return !1;
|
|
1343
|
-
|
|
1996
|
+
A.charCodeAt(A.length - 1) === 58 ? f.push(A.charCodeAt(0) === 58 ? "center" : "right") : A.charCodeAt(0) === 58 ? f.push("left") : f.push("");
|
|
1344
1997
|
}
|
|
1345
|
-
if (a =
|
|
1998
|
+
if (a = Xe(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
1346
1999
|
return !1;
|
|
1347
|
-
s =
|
|
2000
|
+
s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
1348
2001
|
const d = s.length;
|
|
1349
2002
|
if (d === 0 || d !== f.length)
|
|
1350
2003
|
return !1;
|
|
1351
2004
|
if (n)
|
|
1352
2005
|
return !0;
|
|
1353
|
-
const
|
|
2006
|
+
const _ = u.parentType;
|
|
1354
2007
|
u.parentType = "table";
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1361
|
-
for (let
|
|
1362
|
-
const
|
|
1363
|
-
f[
|
|
1364
|
-
const
|
|
1365
|
-
|
|
2008
|
+
const p = u.md.block.ruler.getRules("blockquote"), h = u.push("table_open", "table", 1), C = [e, 0];
|
|
2009
|
+
h.map = C;
|
|
2010
|
+
const D = u.push("thead_open", "thead", 1);
|
|
2011
|
+
D.map = [e, e + 1];
|
|
2012
|
+
const T = u.push("tr_open", "tr", 1);
|
|
2013
|
+
T.map = [e, e + 1];
|
|
2014
|
+
for (let m = 0; m < s.length; m++) {
|
|
2015
|
+
const A = u.push("th_open", "th", 1);
|
|
2016
|
+
f[m] && (A.attrs = [["style", "text-align:" + f[m]]]);
|
|
2017
|
+
const y = u.push("inline", "", 0);
|
|
2018
|
+
y.content = s[m].trim(), y.children = [], u.push("th_close", "th", -1);
|
|
1366
2019
|
}
|
|
1367
2020
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
1368
|
-
let
|
|
2021
|
+
let E, k = 0;
|
|
1369
2022
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
1370
|
-
let
|
|
1371
|
-
for (let
|
|
1372
|
-
if (
|
|
1373
|
-
|
|
2023
|
+
let m = !1;
|
|
2024
|
+
for (let y = 0, I = p.length; y < I; y++)
|
|
2025
|
+
if (p[y](u, r, t, !0)) {
|
|
2026
|
+
m = !0;
|
|
1374
2027
|
break;
|
|
1375
2028
|
}
|
|
1376
|
-
if (
|
|
2029
|
+
if (m || (a = Xe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += d - s.length, k > Po))
|
|
1377
2030
|
break;
|
|
1378
2031
|
if (r === e + 2) {
|
|
1379
|
-
const
|
|
1380
|
-
|
|
2032
|
+
const y = u.push("tbody_open", "tbody", 1);
|
|
2033
|
+
y.map = E = [e + 2, 0];
|
|
1381
2034
|
}
|
|
1382
|
-
const
|
|
1383
|
-
|
|
1384
|
-
for (let
|
|
1385
|
-
const
|
|
1386
|
-
f[
|
|
1387
|
-
const
|
|
1388
|
-
|
|
2035
|
+
const A = u.push("tr_open", "tr", 1);
|
|
2036
|
+
A.map = [r, r + 1];
|
|
2037
|
+
for (let y = 0; y < d; y++) {
|
|
2038
|
+
const I = u.push("td_open", "td", 1);
|
|
2039
|
+
f[y] && (I.attrs = [["style", "text-align:" + f[y]]]);
|
|
2040
|
+
const Y = u.push("inline", "", 0);
|
|
2041
|
+
Y.content = s[y] ? s[y].trim() : "", Y.children = [], u.push("td_close", "td", -1);
|
|
1389
2042
|
}
|
|
1390
2043
|
u.push("tr_close", "tr", -1);
|
|
1391
2044
|
}
|
|
1392
|
-
return
|
|
2045
|
+
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType = _, u.line = r, !0;
|
|
1393
2046
|
}
|
|
1394
|
-
function
|
|
2047
|
+
function qo(u, e, t) {
|
|
1395
2048
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
1396
2049
|
return !1;
|
|
1397
2050
|
let n = e + 1, r = n;
|
|
@@ -1407,313 +2060,313 @@ function it(u, e, t) {
|
|
|
1407
2060
|
break;
|
|
1408
2061
|
}
|
|
1409
2062
|
u.line = r;
|
|
1410
|
-
const
|
|
1411
|
-
return
|
|
1412
|
-
`,
|
|
2063
|
+
const o = u.push("code_block", "code", 0);
|
|
2064
|
+
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2065
|
+
`, o.map = [e, u.line], !0;
|
|
1413
2066
|
}
|
|
1414
|
-
function
|
|
1415
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
1416
|
-
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 >
|
|
2067
|
+
function Uo(u, e, t, n) {
|
|
2068
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2069
|
+
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
1417
2070
|
return !1;
|
|
1418
|
-
const
|
|
1419
|
-
if (
|
|
2071
|
+
const i = u.src.charCodeAt(r);
|
|
2072
|
+
if (i !== 126 && i !== 96)
|
|
1420
2073
|
return !1;
|
|
1421
|
-
let
|
|
1422
|
-
r = u.skipChars(r,
|
|
1423
|
-
let a = r -
|
|
2074
|
+
let c = r;
|
|
2075
|
+
r = u.skipChars(r, i);
|
|
2076
|
+
let a = r - c;
|
|
1424
2077
|
if (a < 3)
|
|
1425
2078
|
return !1;
|
|
1426
|
-
const s = u.src.slice(
|
|
1427
|
-
if (
|
|
2079
|
+
const s = u.src.slice(c, r), f = u.src.slice(r, o);
|
|
2080
|
+
if (i === 96 && f.indexOf(String.fromCharCode(i)) >= 0)
|
|
1428
2081
|
return !1;
|
|
1429
2082
|
if (n)
|
|
1430
2083
|
return !0;
|
|
1431
|
-
let d = e,
|
|
1432
|
-
for (; d++, !(d >= t || (r =
|
|
1433
|
-
if (u.src.charCodeAt(r) ===
|
|
1434
|
-
|
|
2084
|
+
let d = e, _ = !1;
|
|
2085
|
+
for (; d++, !(d >= t || (r = c = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r < o && u.sCount[d] < u.blkIndent)); )
|
|
2086
|
+
if (u.src.charCodeAt(r) === i && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r - c < a) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
2087
|
+
_ = !0;
|
|
1435
2088
|
break;
|
|
1436
2089
|
}
|
|
1437
|
-
a = u.sCount[e], u.line = d + (
|
|
1438
|
-
const
|
|
1439
|
-
return
|
|
2090
|
+
a = u.sCount[e], u.line = d + (_ ? 1 : 0);
|
|
2091
|
+
const p = u.push("fence", "code", 0);
|
|
2092
|
+
return p.info = f, p.content = u.getLines(e + 1, d, a, !0), p.markup = s, p.map = [e, u.line], !0;
|
|
1440
2093
|
}
|
|
1441
|
-
function
|
|
1442
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
1443
|
-
const
|
|
2094
|
+
function Ho(u, e, t, n) {
|
|
2095
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2096
|
+
const i = u.lineMax;
|
|
1444
2097
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
1445
2098
|
return !1;
|
|
1446
2099
|
if (n)
|
|
1447
2100
|
return !0;
|
|
1448
|
-
const
|
|
2101
|
+
const c = [], a = [], s = [], f = [], d = u.md.block.ruler.getRules("blockquote"), _ = u.parentType;
|
|
1449
2102
|
u.parentType = "blockquote";
|
|
1450
|
-
let
|
|
1451
|
-
for (
|
|
1452
|
-
const
|
|
1453
|
-
if (r = u.bMarks[
|
|
2103
|
+
let p = !1, h;
|
|
2104
|
+
for (h = e; h < t; h++) {
|
|
2105
|
+
const k = u.sCount[h] < u.blkIndent;
|
|
2106
|
+
if (r = u.bMarks[h] + u.tShift[h], o = u.eMarks[h], r >= o)
|
|
1454
2107
|
break;
|
|
1455
|
-
if (u.src.charCodeAt(r++) === 62 && !
|
|
1456
|
-
let
|
|
1457
|
-
u.src.charCodeAt(r) === 32 ? (r++,
|
|
1458
|
-
let
|
|
1459
|
-
for (
|
|
1460
|
-
const
|
|
1461
|
-
if (
|
|
1462
|
-
|
|
2108
|
+
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2109
|
+
let A = u.sCount[h] + 1, y, I;
|
|
2110
|
+
u.src.charCodeAt(r) === 32 ? (r++, A++, I = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[h] + A) % 4 === 3 ? (r++, A++, I = !1) : I = !0) : y = !1;
|
|
2111
|
+
let Y = A;
|
|
2112
|
+
for (c.push(u.bMarks[h]), u.bMarks[h] = r; r < o; ) {
|
|
2113
|
+
const nu = u.src.charCodeAt(r);
|
|
2114
|
+
if (w(nu))
|
|
2115
|
+
nu === 9 ? Y += 4 - (Y + u.bsCount[h] + (I ? 1 : 0)) % 4 : Y++;
|
|
1463
2116
|
else
|
|
1464
2117
|
break;
|
|
1465
2118
|
r++;
|
|
1466
2119
|
}
|
|
1467
|
-
|
|
2120
|
+
p = r >= o, a.push(u.bsCount[h]), u.bsCount[h] = u.sCount[h] + 1 + (y ? 1 : 0), s.push(u.sCount[h]), u.sCount[h] = Y - A, f.push(u.tShift[h]), u.tShift[h] = r - u.bMarks[h];
|
|
1468
2121
|
continue;
|
|
1469
2122
|
}
|
|
1470
|
-
if (
|
|
2123
|
+
if (p)
|
|
1471
2124
|
break;
|
|
1472
|
-
let
|
|
1473
|
-
for (let
|
|
1474
|
-
if (d[
|
|
1475
|
-
|
|
2125
|
+
let m = !1;
|
|
2126
|
+
for (let A = 0, y = d.length; A < y; A++)
|
|
2127
|
+
if (d[A](u, h, t, !0)) {
|
|
2128
|
+
m = !0;
|
|
1476
2129
|
break;
|
|
1477
2130
|
}
|
|
1478
|
-
if (
|
|
1479
|
-
u.lineMax =
|
|
2131
|
+
if (m) {
|
|
2132
|
+
u.lineMax = h, u.blkIndent !== 0 && (c.push(u.bMarks[h]), a.push(u.bsCount[h]), f.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] -= u.blkIndent);
|
|
1480
2133
|
break;
|
|
1481
2134
|
}
|
|
1482
|
-
|
|
2135
|
+
c.push(u.bMarks[h]), a.push(u.bsCount[h]), f.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] = -1;
|
|
1483
2136
|
}
|
|
1484
|
-
const
|
|
2137
|
+
const C = u.blkIndent;
|
|
1485
2138
|
u.blkIndent = 0;
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
const
|
|
1489
|
-
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1492
|
-
for (let
|
|
1493
|
-
u.bMarks[
|
|
1494
|
-
return u.blkIndent =
|
|
1495
|
-
}
|
|
1496
|
-
function
|
|
2139
|
+
const D = u.push("blockquote_open", "blockquote", 1);
|
|
2140
|
+
D.markup = ">";
|
|
2141
|
+
const T = [e, 0];
|
|
2142
|
+
D.map = T, u.md.block.tokenize(u, e, h);
|
|
2143
|
+
const E = u.push("blockquote_close", "blockquote", -1);
|
|
2144
|
+
E.markup = ">", u.lineMax = i, u.parentType = _, T[1] = u.line;
|
|
2145
|
+
for (let k = 0; k < f.length; k++)
|
|
2146
|
+
u.bMarks[k + e] = c[k], u.tShift[k + e] = f[k], u.sCount[k + e] = s[k], u.bsCount[k + e] = a[k];
|
|
2147
|
+
return u.blkIndent = C, !0;
|
|
2148
|
+
}
|
|
2149
|
+
function $o(u, e, t, n) {
|
|
1497
2150
|
const r = u.eMarks[e];
|
|
1498
2151
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
1499
2152
|
return !1;
|
|
1500
|
-
let
|
|
1501
|
-
const
|
|
1502
|
-
if (
|
|
2153
|
+
let o = u.bMarks[e] + u.tShift[e];
|
|
2154
|
+
const i = u.src.charCodeAt(o++);
|
|
2155
|
+
if (i !== 42 && i !== 45 && i !== 95)
|
|
1503
2156
|
return !1;
|
|
1504
|
-
let
|
|
1505
|
-
for (;
|
|
1506
|
-
const s = u.src.charCodeAt(
|
|
1507
|
-
if (s !==
|
|
2157
|
+
let c = 1;
|
|
2158
|
+
for (; o < r; ) {
|
|
2159
|
+
const s = u.src.charCodeAt(o++);
|
|
2160
|
+
if (s !== i && !w(s))
|
|
1508
2161
|
return !1;
|
|
1509
|
-
s ===
|
|
2162
|
+
s === i && c++;
|
|
1510
2163
|
}
|
|
1511
|
-
if (
|
|
2164
|
+
if (c < 3)
|
|
1512
2165
|
return !1;
|
|
1513
2166
|
if (n)
|
|
1514
2167
|
return !0;
|
|
1515
2168
|
u.line = e + 1;
|
|
1516
2169
|
const a = u.push("hr", "hr", 0);
|
|
1517
|
-
return a.map = [e, u.line], a.markup = Array(
|
|
2170
|
+
return a.map = [e, u.line], a.markup = Array(c + 1).join(String.fromCharCode(i)), !0;
|
|
1518
2171
|
}
|
|
1519
|
-
function
|
|
2172
|
+
function pt(u, e) {
|
|
1520
2173
|
const t = u.eMarks[e];
|
|
1521
2174
|
let n = u.bMarks[e] + u.tShift[e];
|
|
1522
2175
|
const r = u.src.charCodeAt(n++);
|
|
1523
2176
|
if (r !== 42 && r !== 45 && r !== 43)
|
|
1524
2177
|
return -1;
|
|
1525
2178
|
if (n < t) {
|
|
1526
|
-
const
|
|
1527
|
-
if (!
|
|
2179
|
+
const o = u.src.charCodeAt(n);
|
|
2180
|
+
if (!w(o))
|
|
1528
2181
|
return -1;
|
|
1529
2182
|
}
|
|
1530
2183
|
return n;
|
|
1531
2184
|
}
|
|
1532
|
-
function
|
|
2185
|
+
function bt(u, e) {
|
|
1533
2186
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
1534
2187
|
let r = t;
|
|
1535
2188
|
if (r + 1 >= n)
|
|
1536
2189
|
return -1;
|
|
1537
|
-
let
|
|
1538
|
-
if (
|
|
2190
|
+
let o = u.src.charCodeAt(r++);
|
|
2191
|
+
if (o < 48 || o > 57)
|
|
1539
2192
|
return -1;
|
|
1540
2193
|
for (; ; ) {
|
|
1541
2194
|
if (r >= n)
|
|
1542
2195
|
return -1;
|
|
1543
|
-
if (
|
|
2196
|
+
if (o = u.src.charCodeAt(r++), o >= 48 && o <= 57) {
|
|
1544
2197
|
if (r - t >= 10)
|
|
1545
2198
|
return -1;
|
|
1546
2199
|
continue;
|
|
1547
2200
|
}
|
|
1548
|
-
if (
|
|
2201
|
+
if (o === 41 || o === 46)
|
|
1549
2202
|
break;
|
|
1550
2203
|
return -1;
|
|
1551
2204
|
}
|
|
1552
|
-
return r < n && (
|
|
2205
|
+
return r < n && (o = u.src.charCodeAt(r), !w(o)) ? -1 : r;
|
|
1553
2206
|
}
|
|
1554
|
-
function
|
|
2207
|
+
function jo(u, e) {
|
|
1555
2208
|
const t = u.level + 2;
|
|
1556
2209
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
1557
2210
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
1558
2211
|
}
|
|
1559
|
-
function
|
|
1560
|
-
let r,
|
|
2212
|
+
function Go(u, e, t, n) {
|
|
2213
|
+
let r, o, i, c, a = e, s = !0;
|
|
1561
2214
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
1562
2215
|
return !1;
|
|
1563
2216
|
let f = !1;
|
|
1564
2217
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (f = !0);
|
|
1565
|
-
let d,
|
|
1566
|
-
if ((
|
|
1567
|
-
if (d = !0,
|
|
1568
|
-
} else if ((
|
|
2218
|
+
let d, _, p;
|
|
2219
|
+
if ((p = bt(u, a)) >= 0) {
|
|
2220
|
+
if (d = !0, i = u.bMarks[a] + u.tShift[a], _ = Number(u.src.slice(i, p - 1)), f && _ !== 1) return !1;
|
|
2221
|
+
} else if ((p = pt(u, a)) >= 0)
|
|
1569
2222
|
d = !1;
|
|
1570
2223
|
else
|
|
1571
2224
|
return !1;
|
|
1572
|
-
if (f && u.skipSpaces(
|
|
2225
|
+
if (f && u.skipSpaces(p) >= u.eMarks[a])
|
|
1573
2226
|
return !1;
|
|
1574
2227
|
if (n)
|
|
1575
2228
|
return !0;
|
|
1576
|
-
const
|
|
1577
|
-
d ? (
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1580
|
-
let
|
|
1581
|
-
const
|
|
2229
|
+
const h = u.src.charCodeAt(p - 1), C = u.tokens.length;
|
|
2230
|
+
d ? (c = u.push("ordered_list_open", "ol", 1), _ !== 1 && (c.attrs = [["start", _]])) : c = u.push("bullet_list_open", "ul", 1);
|
|
2231
|
+
const D = [a, 0];
|
|
2232
|
+
c.map = D, c.markup = String.fromCharCode(h);
|
|
2233
|
+
let T = !1;
|
|
2234
|
+
const E = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
1582
2235
|
for (u.parentType = "list"; a < t; ) {
|
|
1583
|
-
|
|
1584
|
-
const
|
|
1585
|
-
let
|
|
1586
|
-
for (;
|
|
1587
|
-
const
|
|
1588
|
-
if (
|
|
1589
|
-
|
|
1590
|
-
else if (
|
|
1591
|
-
|
|
2236
|
+
o = p, r = u.eMarks[a];
|
|
2237
|
+
const m = u.sCount[a] + p - (u.bMarks[a] + u.tShift[a]);
|
|
2238
|
+
let A = m;
|
|
2239
|
+
for (; o < r; ) {
|
|
2240
|
+
const hu = u.src.charCodeAt(o);
|
|
2241
|
+
if (hu === 9)
|
|
2242
|
+
A += 4 - (A + u.bsCount[a]) % 4;
|
|
2243
|
+
else if (hu === 32)
|
|
2244
|
+
A++;
|
|
1592
2245
|
else
|
|
1593
2246
|
break;
|
|
1594
|
-
|
|
1595
|
-
}
|
|
1596
|
-
const
|
|
1597
|
-
let
|
|
1598
|
-
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1601
|
-
const
|
|
1602
|
-
|
|
1603
|
-
const
|
|
1604
|
-
if (u.listIndent = u.blkIndent, u.blkIndent =
|
|
2247
|
+
o++;
|
|
2248
|
+
}
|
|
2249
|
+
const y = o;
|
|
2250
|
+
let I;
|
|
2251
|
+
y >= r ? I = 1 : I = A - m, I > 4 && (I = 1);
|
|
2252
|
+
const Y = m + I;
|
|
2253
|
+
c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(h);
|
|
2254
|
+
const nu = [a, 0];
|
|
2255
|
+
c.map = nu, d && (c.info = u.src.slice(i, p - 1));
|
|
2256
|
+
const gu = u.tight, M = u.tShift[a], zu = u.sCount[a], qu = u.listIndent;
|
|
2257
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = A, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || T) && (s = !1), T = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = qu, u.tShift[a] = M, u.sCount[a] = zu, u.tight = gu, c = u.push("list_item_close", "li", -1), c.markup = String.fromCharCode(h), a = u.line, nu[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
1605
2258
|
break;
|
|
1606
|
-
let
|
|
1607
|
-
for (let
|
|
1608
|
-
if (
|
|
1609
|
-
|
|
2259
|
+
let Cu = !1;
|
|
2260
|
+
for (let hu = 0, Re = E.length; hu < Re; hu++)
|
|
2261
|
+
if (E[hu](u, a, t, !0)) {
|
|
2262
|
+
Cu = !0;
|
|
1610
2263
|
break;
|
|
1611
2264
|
}
|
|
1612
|
-
if (
|
|
2265
|
+
if (Cu)
|
|
1613
2266
|
break;
|
|
1614
2267
|
if (d) {
|
|
1615
|
-
if (
|
|
2268
|
+
if (p = bt(u, a), p < 0)
|
|
1616
2269
|
break;
|
|
1617
|
-
|
|
1618
|
-
} else if (
|
|
2270
|
+
i = u.bMarks[a] + u.tShift[a];
|
|
2271
|
+
} else if (p = pt(u, a), p < 0)
|
|
1619
2272
|
break;
|
|
1620
|
-
if (
|
|
2273
|
+
if (h !== u.src.charCodeAt(p - 1))
|
|
1621
2274
|
break;
|
|
1622
2275
|
}
|
|
1623
|
-
return d ?
|
|
2276
|
+
return d ? c = u.push("ordered_list_close", "ol", -1) : c = u.push("bullet_list_close", "ul", -1), c.markup = String.fromCharCode(h), D[1] = a, u.line = a, u.parentType = k, s && jo(u, C), !0;
|
|
1624
2277
|
}
|
|
1625
|
-
function
|
|
1626
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2278
|
+
function Wo(u, e, t, n) {
|
|
2279
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], i = e + 1;
|
|
1627
2280
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
1628
2281
|
return !1;
|
|
1629
|
-
function
|
|
1630
|
-
const
|
|
1631
|
-
if (
|
|
2282
|
+
function c(E) {
|
|
2283
|
+
const k = u.lineMax;
|
|
2284
|
+
if (E >= k || u.isEmpty(E))
|
|
1632
2285
|
return null;
|
|
1633
|
-
let
|
|
1634
|
-
if (u.sCount[
|
|
1635
|
-
const
|
|
2286
|
+
let m = !1;
|
|
2287
|
+
if (u.sCount[E] - u.blkIndent > 3 && (m = !0), u.sCount[E] < 0 && (m = !0), !m) {
|
|
2288
|
+
const I = u.md.block.ruler.getRules("reference"), Y = u.parentType;
|
|
1636
2289
|
u.parentType = "reference";
|
|
1637
|
-
let
|
|
1638
|
-
for (let
|
|
1639
|
-
if (
|
|
1640
|
-
|
|
2290
|
+
let nu = !1;
|
|
2291
|
+
for (let gu = 0, M = I.length; gu < M; gu++)
|
|
2292
|
+
if (I[gu](u, E, k, !0)) {
|
|
2293
|
+
nu = !0;
|
|
1641
2294
|
break;
|
|
1642
2295
|
}
|
|
1643
|
-
if (u.parentType =
|
|
2296
|
+
if (u.parentType = Y, nu)
|
|
1644
2297
|
return null;
|
|
1645
2298
|
}
|
|
1646
|
-
const
|
|
1647
|
-
return u.src.slice(
|
|
2299
|
+
const A = u.bMarks[E] + u.tShift[E], y = u.eMarks[E];
|
|
2300
|
+
return u.src.slice(A, y + 1);
|
|
1648
2301
|
}
|
|
1649
|
-
let a = u.src.slice(r,
|
|
1650
|
-
|
|
2302
|
+
let a = u.src.slice(r, o + 1);
|
|
2303
|
+
o = a.length;
|
|
1651
2304
|
let s = -1;
|
|
1652
|
-
for (r = 1; r <
|
|
1653
|
-
const
|
|
1654
|
-
if (
|
|
2305
|
+
for (r = 1; r < o; r++) {
|
|
2306
|
+
const E = a.charCodeAt(r);
|
|
2307
|
+
if (E === 91)
|
|
1655
2308
|
return !1;
|
|
1656
|
-
if (
|
|
2309
|
+
if (E === 93) {
|
|
1657
2310
|
s = r;
|
|
1658
2311
|
break;
|
|
1659
|
-
} else if (
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
} else if (
|
|
1663
|
-
const
|
|
1664
|
-
|
|
2312
|
+
} else if (E === 10) {
|
|
2313
|
+
const k = c(i);
|
|
2314
|
+
k !== null && (a += k, o = a.length, i++);
|
|
2315
|
+
} else if (E === 92 && (r++, r < o && a.charCodeAt(r) === 10)) {
|
|
2316
|
+
const k = c(i);
|
|
2317
|
+
k !== null && (a += k, o = a.length, i++);
|
|
1665
2318
|
}
|
|
1666
2319
|
}
|
|
1667
2320
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
1668
2321
|
return !1;
|
|
1669
|
-
for (r = s + 2; r <
|
|
1670
|
-
const
|
|
1671
|
-
if (
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1674
|
-
} else if (!E
|
|
1675
|
-
}
|
|
1676
|
-
const f = u.md.helpers.parseLinkDestination(a, r,
|
|
2322
|
+
for (r = s + 2; r < o; r++) {
|
|
2323
|
+
const E = a.charCodeAt(r);
|
|
2324
|
+
if (E === 10) {
|
|
2325
|
+
const k = c(i);
|
|
2326
|
+
k !== null && (a += k, o = a.length, i++);
|
|
2327
|
+
} else if (!w(E)) break;
|
|
2328
|
+
}
|
|
2329
|
+
const f = u.md.helpers.parseLinkDestination(a, r, o);
|
|
1677
2330
|
if (!f.ok)
|
|
1678
2331
|
return !1;
|
|
1679
2332
|
const d = u.md.normalizeLink(f.str);
|
|
1680
2333
|
if (!u.md.validateLink(d))
|
|
1681
2334
|
return !1;
|
|
1682
2335
|
r = f.pos;
|
|
1683
|
-
const
|
|
1684
|
-
for (; r <
|
|
1685
|
-
const
|
|
1686
|
-
if (
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1689
|
-
} else if (!E
|
|
1690
|
-
}
|
|
1691
|
-
let
|
|
1692
|
-
for (;
|
|
1693
|
-
const
|
|
1694
|
-
if (
|
|
1695
|
-
a +=
|
|
1696
|
-
}
|
|
1697
|
-
let
|
|
1698
|
-
for (r <
|
|
1699
|
-
const
|
|
1700
|
-
if (!E
|
|
2336
|
+
const _ = r, p = i, h = r;
|
|
2337
|
+
for (; r < o; r++) {
|
|
2338
|
+
const E = a.charCodeAt(r);
|
|
2339
|
+
if (E === 10) {
|
|
2340
|
+
const k = c(i);
|
|
2341
|
+
k !== null && (a += k, o = a.length, i++);
|
|
2342
|
+
} else if (!w(E)) break;
|
|
2343
|
+
}
|
|
2344
|
+
let C = u.md.helpers.parseLinkTitle(a, r, o);
|
|
2345
|
+
for (; C.can_continue; ) {
|
|
2346
|
+
const E = c(i);
|
|
2347
|
+
if (E === null) break;
|
|
2348
|
+
a += E, r = o, o = a.length, i++, C = u.md.helpers.parseLinkTitle(a, r, o, C);
|
|
2349
|
+
}
|
|
2350
|
+
let D;
|
|
2351
|
+
for (r < o && h !== r && C.ok ? (D = C.str, r = C.pos) : (D = "", r = _, i = p); r < o; ) {
|
|
2352
|
+
const E = a.charCodeAt(r);
|
|
2353
|
+
if (!w(E))
|
|
1701
2354
|
break;
|
|
1702
2355
|
r++;
|
|
1703
2356
|
}
|
|
1704
|
-
if (r <
|
|
1705
|
-
for (
|
|
1706
|
-
const
|
|
1707
|
-
if (!E
|
|
2357
|
+
if (r < o && a.charCodeAt(r) !== 10 && D)
|
|
2358
|
+
for (D = "", r = _, i = p; r < o; ) {
|
|
2359
|
+
const E = a.charCodeAt(r);
|
|
2360
|
+
if (!w(E))
|
|
1708
2361
|
break;
|
|
1709
2362
|
r++;
|
|
1710
2363
|
}
|
|
1711
|
-
if (r <
|
|
2364
|
+
if (r < o && a.charCodeAt(r) !== 10)
|
|
1712
2365
|
return !1;
|
|
1713
|
-
const
|
|
1714
|
-
return
|
|
2366
|
+
const T = Se(a.slice(1, s));
|
|
2367
|
+
return T ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[T] > "u" && (u.env.references[T] = { title: D, href: d }), u.line = i), !0) : !1;
|
|
1715
2368
|
}
|
|
1716
|
-
const
|
|
2369
|
+
const Zo = [
|
|
1717
2370
|
"address",
|
|
1718
2371
|
"article",
|
|
1719
2372
|
"aside",
|
|
@@ -1776,31 +2429,31 @@ const bt = [
|
|
|
1776
2429
|
"tr",
|
|
1777
2430
|
"track",
|
|
1778
2431
|
"ul"
|
|
1779
|
-
],
|
|
2432
|
+
], Vo = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Yo = "[^\"'=<>`\\x00-\\x20]+", Xo = "'[^']*'", Jo = '"[^"]*"', Qo = "(?:" + Yo + "|" + Xo + "|" + Jo + ")", Ko = "(?:\\s+" + Vo + "(?:\\s*=\\s*" + Qo + ")?)", Ut = "<[A-Za-z][A-Za-z0-9\\-]*" + Ko + "*\\s*\\/?>", Ht = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", uc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", ec = "<[?][\\s\\S]*?[?]>", tc = "<![A-Za-z][^>]*>", nc = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", rc = new RegExp("^(?:" + Ut + "|" + Ht + "|" + uc + "|" + ec + "|" + tc + "|" + nc + ")"), oc = new RegExp("^(?:" + Ut + "|" + Ht + ")"), Iu = [
|
|
1780
2433
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
1781
2434
|
[/^<!--/, /-->/, !0],
|
|
1782
2435
|
[/^<\?/, /\?>/, !0],
|
|
1783
2436
|
[/^<![A-Z]/, />/, !0],
|
|
1784
2437
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
1785
|
-
[new RegExp("^</?(" +
|
|
1786
|
-
[new RegExp(
|
|
2438
|
+
[new RegExp("^</?(" + Zo.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2439
|
+
[new RegExp(oc.source + "\\s*$"), /^$/, !1]
|
|
1787
2440
|
];
|
|
1788
|
-
function
|
|
1789
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2441
|
+
function cc(u, e, t, n) {
|
|
2442
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
1790
2443
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
1791
2444
|
return !1;
|
|
1792
|
-
let
|
|
1793
|
-
for (;
|
|
2445
|
+
let i = u.src.slice(r, o), c = 0;
|
|
2446
|
+
for (; c < Iu.length && !Iu[c][0].test(i); c++)
|
|
1794
2447
|
;
|
|
1795
|
-
if (
|
|
2448
|
+
if (c === Iu.length)
|
|
1796
2449
|
return !1;
|
|
1797
2450
|
if (n)
|
|
1798
|
-
return
|
|
2451
|
+
return Iu[c][2];
|
|
1799
2452
|
let a = e + 1;
|
|
1800
|
-
if (!
|
|
2453
|
+
if (!Iu[c][1].test(i)) {
|
|
1801
2454
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
1802
|
-
if (r = u.bMarks[a] + u.tShift[a],
|
|
1803
|
-
|
|
2455
|
+
if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], i = u.src.slice(r, o), Iu[c][1].test(i)) {
|
|
2456
|
+
i.length !== 0 && a++;
|
|
1804
2457
|
break;
|
|
1805
2458
|
}
|
|
1806
2459
|
}
|
|
@@ -1808,162 +2461,162 @@ function yt(u, e, t, n) {
|
|
|
1808
2461
|
const s = u.push("html_block", "", 0);
|
|
1809
2462
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
1810
2463
|
}
|
|
1811
|
-
function
|
|
1812
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2464
|
+
function ic(u, e, t, n) {
|
|
2465
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
1813
2466
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
1814
2467
|
return !1;
|
|
1815
|
-
let
|
|
1816
|
-
if (
|
|
2468
|
+
let i = u.src.charCodeAt(r);
|
|
2469
|
+
if (i !== 35 || r >= o)
|
|
1817
2470
|
return !1;
|
|
1818
|
-
let
|
|
1819
|
-
for (
|
|
1820
|
-
|
|
1821
|
-
if (
|
|
2471
|
+
let c = 1;
|
|
2472
|
+
for (i = u.src.charCodeAt(++r); i === 35 && r < o && c <= 6; )
|
|
2473
|
+
c++, i = u.src.charCodeAt(++r);
|
|
2474
|
+
if (c > 6 || r < o && !w(i))
|
|
1822
2475
|
return !1;
|
|
1823
2476
|
if (n)
|
|
1824
2477
|
return !0;
|
|
1825
|
-
|
|
1826
|
-
const a = u.skipCharsBack(
|
|
1827
|
-
a > r &&
|
|
1828
|
-
const s = u.push("heading_open", "h" + String(
|
|
1829
|
-
s.markup = "########".slice(0,
|
|
2478
|
+
o = u.skipSpacesBack(o, r);
|
|
2479
|
+
const a = u.skipCharsBack(o, 35, r);
|
|
2480
|
+
a > r && w(u.src.charCodeAt(a - 1)) && (o = a), u.line = e + 1;
|
|
2481
|
+
const s = u.push("heading_open", "h" + String(c), 1);
|
|
2482
|
+
s.markup = "########".slice(0, c), s.map = [e, u.line];
|
|
1830
2483
|
const f = u.push("inline", "", 0);
|
|
1831
|
-
f.content = u.src.slice(r,
|
|
1832
|
-
const d = u.push("heading_close", "h" + String(
|
|
1833
|
-
return d.markup = "########".slice(0,
|
|
2484
|
+
f.content = u.src.slice(r, o).trim(), f.map = [e, u.line], f.children = [];
|
|
2485
|
+
const d = u.push("heading_close", "h" + String(c), -1);
|
|
2486
|
+
return d.markup = "########".slice(0, c), !0;
|
|
1834
2487
|
}
|
|
1835
|
-
function
|
|
2488
|
+
function ac(u, e, t) {
|
|
1836
2489
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
1837
2490
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
1838
2491
|
return !1;
|
|
1839
2492
|
const r = u.parentType;
|
|
1840
2493
|
u.parentType = "paragraph";
|
|
1841
|
-
let
|
|
1842
|
-
for (;
|
|
1843
|
-
if (u.sCount[
|
|
2494
|
+
let o = 0, i, c = e + 1;
|
|
2495
|
+
for (; c < t && !u.isEmpty(c); c++) {
|
|
2496
|
+
if (u.sCount[c] - u.blkIndent > 3)
|
|
1844
2497
|
continue;
|
|
1845
|
-
if (u.sCount[
|
|
1846
|
-
let
|
|
1847
|
-
const
|
|
1848
|
-
if (
|
|
1849
|
-
|
|
2498
|
+
if (u.sCount[c] >= u.blkIndent) {
|
|
2499
|
+
let p = u.bMarks[c] + u.tShift[c];
|
|
2500
|
+
const h = u.eMarks[c];
|
|
2501
|
+
if (p < h && (i = u.src.charCodeAt(p), (i === 45 || i === 61) && (p = u.skipChars(p, i), p = u.skipSpaces(p), p >= h))) {
|
|
2502
|
+
o = i === 61 ? 1 : 2;
|
|
1850
2503
|
break;
|
|
1851
2504
|
}
|
|
1852
2505
|
}
|
|
1853
|
-
if (u.sCount[
|
|
2506
|
+
if (u.sCount[c] < 0)
|
|
1854
2507
|
continue;
|
|
1855
|
-
let
|
|
1856
|
-
for (let
|
|
1857
|
-
if (n[
|
|
1858
|
-
|
|
2508
|
+
let _ = !1;
|
|
2509
|
+
for (let p = 0, h = n.length; p < h; p++)
|
|
2510
|
+
if (n[p](u, c, t, !0)) {
|
|
2511
|
+
_ = !0;
|
|
1859
2512
|
break;
|
|
1860
2513
|
}
|
|
1861
|
-
if (
|
|
2514
|
+
if (_)
|
|
1862
2515
|
break;
|
|
1863
2516
|
}
|
|
1864
|
-
if (!
|
|
2517
|
+
if (!o)
|
|
1865
2518
|
return !1;
|
|
1866
|
-
const a = u.getLines(e,
|
|
1867
|
-
u.line =
|
|
1868
|
-
const s = u.push("heading_open", "h" + String(
|
|
1869
|
-
s.markup = String.fromCharCode(
|
|
2519
|
+
const a = u.getLines(e, c, u.blkIndent, !1).trim();
|
|
2520
|
+
u.line = c + 1;
|
|
2521
|
+
const s = u.push("heading_open", "h" + String(o), 1);
|
|
2522
|
+
s.markup = String.fromCharCode(i), s.map = [e, u.line];
|
|
1870
2523
|
const f = u.push("inline", "", 0);
|
|
1871
2524
|
f.content = a, f.map = [e, u.line - 1], f.children = [];
|
|
1872
|
-
const d = u.push("heading_close", "h" + String(
|
|
1873
|
-
return d.markup = String.fromCharCode(
|
|
2525
|
+
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2526
|
+
return d.markup = String.fromCharCode(i), u.parentType = r, !0;
|
|
1874
2527
|
}
|
|
1875
|
-
function
|
|
2528
|
+
function sc(u, e, t) {
|
|
1876
2529
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
1877
|
-
let
|
|
1878
|
-
for (u.parentType = "paragraph";
|
|
1879
|
-
if (u.sCount[
|
|
2530
|
+
let o = e + 1;
|
|
2531
|
+
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
2532
|
+
if (u.sCount[o] - u.blkIndent > 3 || u.sCount[o] < 0)
|
|
1880
2533
|
continue;
|
|
1881
2534
|
let s = !1;
|
|
1882
2535
|
for (let f = 0, d = n.length; f < d; f++)
|
|
1883
|
-
if (n[f](u,
|
|
2536
|
+
if (n[f](u, o, t, !0)) {
|
|
1884
2537
|
s = !0;
|
|
1885
2538
|
break;
|
|
1886
2539
|
}
|
|
1887
2540
|
if (s)
|
|
1888
2541
|
break;
|
|
1889
2542
|
}
|
|
1890
|
-
const
|
|
1891
|
-
u.line =
|
|
1892
|
-
const
|
|
1893
|
-
|
|
2543
|
+
const i = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2544
|
+
u.line = o;
|
|
2545
|
+
const c = u.push("paragraph_open", "p", 1);
|
|
2546
|
+
c.map = [e, u.line];
|
|
1894
2547
|
const a = u.push("inline", "", 0);
|
|
1895
|
-
return a.content =
|
|
2548
|
+
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
1896
2549
|
}
|
|
1897
|
-
const
|
|
2550
|
+
const xe = [
|
|
1898
2551
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
1899
2552
|
// which can be terminated by this one.
|
|
1900
|
-
["table",
|
|
1901
|
-
["code",
|
|
1902
|
-
["fence",
|
|
1903
|
-
["blockquote",
|
|
1904
|
-
["hr",
|
|
1905
|
-
["list",
|
|
1906
|
-
["reference",
|
|
1907
|
-
["html_block",
|
|
1908
|
-
["heading",
|
|
1909
|
-
["lheading",
|
|
1910
|
-
["paragraph",
|
|
2553
|
+
["table", zo, ["paragraph", "reference"]],
|
|
2554
|
+
["code", qo],
|
|
2555
|
+
["fence", Uo, ["paragraph", "reference", "blockquote", "list"]],
|
|
2556
|
+
["blockquote", Ho, ["paragraph", "reference", "blockquote", "list"]],
|
|
2557
|
+
["hr", $o, ["paragraph", "reference", "blockquote", "list"]],
|
|
2558
|
+
["list", Go, ["paragraph", "reference", "blockquote"]],
|
|
2559
|
+
["reference", Wo],
|
|
2560
|
+
["html_block", cc, ["paragraph", "reference", "blockquote"]],
|
|
2561
|
+
["heading", ic, ["paragraph", "reference", "blockquote"]],
|
|
2562
|
+
["lheading", ac],
|
|
2563
|
+
["paragraph", sc]
|
|
1911
2564
|
];
|
|
1912
|
-
function
|
|
1913
|
-
this.ruler = new
|
|
1914
|
-
for (let u = 0; u <
|
|
1915
|
-
this.ruler.push(
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
const n = this.ruler.getRules(""), r = n.length,
|
|
1919
|
-
let
|
|
1920
|
-
for (;
|
|
1921
|
-
if (u.level >=
|
|
2565
|
+
function we() {
|
|
2566
|
+
this.ruler = new V();
|
|
2567
|
+
for (let u = 0; u < xe.length; u++)
|
|
2568
|
+
this.ruler.push(xe[u][0], xe[u][1], { alt: (xe[u][2] || []).slice() });
|
|
2569
|
+
}
|
|
2570
|
+
we.prototype.tokenize = function(u, e, t) {
|
|
2571
|
+
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2572
|
+
let i = e, c = !1;
|
|
2573
|
+
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
|
2574
|
+
if (u.level >= o) {
|
|
1922
2575
|
u.line = t;
|
|
1923
2576
|
break;
|
|
1924
2577
|
}
|
|
1925
2578
|
const a = u.line;
|
|
1926
2579
|
let s = !1;
|
|
1927
2580
|
for (let f = 0; f < r; f++)
|
|
1928
|
-
if (s = n[f](u,
|
|
2581
|
+
if (s = n[f](u, i, t, !1), s) {
|
|
1929
2582
|
if (a >= u.line)
|
|
1930
2583
|
throw new Error("block rule didn't increment state.line");
|
|
1931
2584
|
break;
|
|
1932
2585
|
}
|
|
1933
2586
|
if (!s) throw new Error("none of the block rules matched");
|
|
1934
|
-
u.tight = !
|
|
2587
|
+
u.tight = !c, u.isEmpty(u.line - 1) && (c = !0), i = u.line, i < t && u.isEmpty(i) && (c = !0, i++, u.line = i);
|
|
1935
2588
|
}
|
|
1936
2589
|
};
|
|
1937
|
-
|
|
2590
|
+
we.prototype.parse = function(u, e, t, n) {
|
|
1938
2591
|
if (!u)
|
|
1939
2592
|
return;
|
|
1940
2593
|
const r = new this.State(u, e, t, n);
|
|
1941
2594
|
this.tokenize(r, r.line, r.lineMax);
|
|
1942
2595
|
};
|
|
1943
|
-
|
|
1944
|
-
function
|
|
2596
|
+
we.prototype.State = au;
|
|
2597
|
+
function ce(u, e, t, n) {
|
|
1945
2598
|
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;
|
|
1946
2599
|
}
|
|
1947
|
-
|
|
1948
|
-
const u = new
|
|
2600
|
+
ce.prototype.pushPending = function() {
|
|
2601
|
+
const u = new tu("text", "", 0);
|
|
1949
2602
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
1950
2603
|
};
|
|
1951
|
-
|
|
2604
|
+
ce.prototype.push = function(u, e, t) {
|
|
1952
2605
|
this.pending && this.pushPending();
|
|
1953
|
-
const n = new
|
|
2606
|
+
const n = new tu(u, e, t);
|
|
1954
2607
|
let r = null;
|
|
1955
2608
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
1956
2609
|
};
|
|
1957
|
-
|
|
2610
|
+
ce.prototype.scanDelims = function(u, e) {
|
|
1958
2611
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
1959
|
-
let
|
|
1960
|
-
for (;
|
|
1961
|
-
|
|
1962
|
-
const
|
|
1963
|
-
return { can_open:
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
|
-
function
|
|
2612
|
+
let o = u;
|
|
2613
|
+
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2614
|
+
o++;
|
|
2615
|
+
const i = o - u, c = o < t ? this.src.charCodeAt(o) : 32, a = ue(r) || Ku(String.fromCharCode(r)), s = ue(c) || Ku(String.fromCharCode(c)), f = Qu(r), d = Qu(c), _ = !d && (!s || f || a), p = !f && (!a || d || s);
|
|
2616
|
+
return { can_open: _ && (e || !p || a), can_close: p && (e || !_ || s), length: i };
|
|
2617
|
+
};
|
|
2618
|
+
ce.prototype.Token = tu;
|
|
2619
|
+
function lc(u) {
|
|
1967
2620
|
switch (u) {
|
|
1968
2621
|
case 10:
|
|
1969
2622
|
case 33:
|
|
@@ -1993,38 +2646,38 @@ function Bt(u) {
|
|
|
1993
2646
|
return !1;
|
|
1994
2647
|
}
|
|
1995
2648
|
}
|
|
1996
|
-
function
|
|
2649
|
+
function fc(u, e) {
|
|
1997
2650
|
let t = u.pos;
|
|
1998
|
-
for (; t < u.posMax && !
|
|
2651
|
+
for (; t < u.posMax && !lc(u.src.charCodeAt(t)); )
|
|
1999
2652
|
t++;
|
|
2000
2653
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2001
2654
|
}
|
|
2002
|
-
const
|
|
2003
|
-
function
|
|
2655
|
+
const dc = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2656
|
+
function hc(u, e) {
|
|
2004
2657
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2005
2658
|
const t = u.pos, n = u.posMax;
|
|
2006
2659
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2007
|
-
const r = u.pending.match(
|
|
2660
|
+
const r = u.pending.match(dc);
|
|
2008
2661
|
if (!r) return !1;
|
|
2009
|
-
const
|
|
2010
|
-
if (!
|
|
2011
|
-
let
|
|
2012
|
-
if (
|
|
2013
|
-
|
|
2014
|
-
const a = u.md.normalizeLink(
|
|
2662
|
+
const o = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2663
|
+
if (!i) return !1;
|
|
2664
|
+
let c = i.url;
|
|
2665
|
+
if (c.length <= o.length) return !1;
|
|
2666
|
+
c = c.replace(/\*+$/, "");
|
|
2667
|
+
const a = u.md.normalizeLink(c);
|
|
2015
2668
|
if (!u.md.validateLink(a)) return !1;
|
|
2016
2669
|
if (!e) {
|
|
2017
|
-
u.pending = u.pending.slice(0, -
|
|
2670
|
+
u.pending = u.pending.slice(0, -o.length);
|
|
2018
2671
|
const s = u.push("link_open", "a", 1);
|
|
2019
2672
|
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
|
2020
2673
|
const f = u.push("text", "", 0);
|
|
2021
|
-
f.content = u.md.normalizeLinkText(
|
|
2674
|
+
f.content = u.md.normalizeLinkText(c);
|
|
2022
2675
|
const d = u.push("link_close", "a", -1);
|
|
2023
2676
|
d.markup = "linkify", d.info = "auto";
|
|
2024
2677
|
}
|
|
2025
|
-
return u.pos +=
|
|
2678
|
+
return u.pos += c.length - o.length, !0;
|
|
2026
2679
|
}
|
|
2027
|
-
function
|
|
2680
|
+
function pc(u, e) {
|
|
2028
2681
|
let t = u.pos;
|
|
2029
2682
|
if (u.src.charCodeAt(t) !== 10)
|
|
2030
2683
|
return !1;
|
|
@@ -2032,86 +2685,86 @@ function Mt(u, e) {
|
|
|
2032
2685
|
if (!e)
|
|
2033
2686
|
if (n >= 0 && u.pending.charCodeAt(n) === 32)
|
|
2034
2687
|
if (n >= 1 && u.pending.charCodeAt(n - 1) === 32) {
|
|
2035
|
-
let
|
|
2036
|
-
for (;
|
|
2037
|
-
u.pending = u.pending.slice(0,
|
|
2688
|
+
let o = n - 1;
|
|
2689
|
+
for (; o >= 1 && u.pending.charCodeAt(o - 1) === 32; ) o--;
|
|
2690
|
+
u.pending = u.pending.slice(0, o), u.push("hardbreak", "br", 0);
|
|
2038
2691
|
} else
|
|
2039
2692
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2040
2693
|
else
|
|
2041
2694
|
u.push("softbreak", "br", 0);
|
|
2042
|
-
for (t++; t < r &&
|
|
2695
|
+
for (t++; t < r && w(u.src.charCodeAt(t)); )
|
|
2043
2696
|
t++;
|
|
2044
2697
|
return u.pos = t, !0;
|
|
2045
2698
|
}
|
|
2046
|
-
const
|
|
2699
|
+
const _0 = [];
|
|
2047
2700
|
for (let u = 0; u < 256; u++)
|
|
2048
|
-
|
|
2701
|
+
_0.push(0);
|
|
2049
2702
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2050
|
-
|
|
2703
|
+
_0[u.charCodeAt(0)] = 1;
|
|
2051
2704
|
});
|
|
2052
|
-
function
|
|
2705
|
+
function bc(u, e) {
|
|
2053
2706
|
let t = u.pos;
|
|
2054
2707
|
const n = u.posMax;
|
|
2055
2708
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
2056
2709
|
let r = u.src.charCodeAt(t);
|
|
2057
2710
|
if (r === 10) {
|
|
2058
|
-
for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!
|
|
2711
|
+
for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!w(r)); )
|
|
2059
2712
|
t++;
|
|
2060
2713
|
return u.pos = t, !0;
|
|
2061
2714
|
}
|
|
2062
|
-
let
|
|
2715
|
+
let o = u.src[t];
|
|
2063
2716
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
|
2064
|
-
const
|
|
2065
|
-
|
|
2717
|
+
const c = u.src.charCodeAt(t + 1);
|
|
2718
|
+
c >= 56320 && c <= 57343 && (o += u.src[t + 1], t++);
|
|
2066
2719
|
}
|
|
2067
|
-
const
|
|
2720
|
+
const i = "\\" + o;
|
|
2068
2721
|
if (!e) {
|
|
2069
|
-
const
|
|
2070
|
-
r < 256 &&
|
|
2722
|
+
const c = u.push("text_special", "", 0);
|
|
2723
|
+
r < 256 && _0[r] !== 0 ? c.content = o : c.content = i, c.markup = i, c.info = "escape";
|
|
2071
2724
|
}
|
|
2072
2725
|
return u.pos = t + 1, !0;
|
|
2073
2726
|
}
|
|
2074
|
-
function
|
|
2727
|
+
function _c(u, e) {
|
|
2075
2728
|
let t = u.pos;
|
|
2076
2729
|
if (u.src.charCodeAt(t) !== 96)
|
|
2077
2730
|
return !1;
|
|
2078
2731
|
const r = t;
|
|
2079
2732
|
t++;
|
|
2080
|
-
const
|
|
2081
|
-
for (; t <
|
|
2733
|
+
const o = u.posMax;
|
|
2734
|
+
for (; t < o && u.src.charCodeAt(t) === 96; )
|
|
2082
2735
|
t++;
|
|
2083
|
-
const
|
|
2084
|
-
if (u.backticksScanned && (u.backticks[
|
|
2085
|
-
return e || (u.pending +=
|
|
2736
|
+
const i = u.src.slice(r, t), c = i.length;
|
|
2737
|
+
if (u.backticksScanned && (u.backticks[c] || 0) <= r)
|
|
2738
|
+
return e || (u.pending += i), u.pos += c, !0;
|
|
2086
2739
|
let a = t, s;
|
|
2087
2740
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
|
2088
|
-
for (a = s + 1; a <
|
|
2741
|
+
for (a = s + 1; a < o && u.src.charCodeAt(a) === 96; )
|
|
2089
2742
|
a++;
|
|
2090
2743
|
const f = a - s;
|
|
2091
|
-
if (f ===
|
|
2744
|
+
if (f === c) {
|
|
2092
2745
|
if (!e) {
|
|
2093
2746
|
const d = u.push("code_inline", "code", 0);
|
|
2094
|
-
d.markup =
|
|
2747
|
+
d.markup = i, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2095
2748
|
}
|
|
2096
2749
|
return u.pos = a, !0;
|
|
2097
2750
|
}
|
|
2098
2751
|
u.backticks[f] = s;
|
|
2099
2752
|
}
|
|
2100
|
-
return u.backticksScanned = !0, e || (u.pending +=
|
|
2753
|
+
return u.backticksScanned = !0, e || (u.pending += i), u.pos += c, !0;
|
|
2101
2754
|
}
|
|
2102
|
-
function
|
|
2755
|
+
function mc(u, e) {
|
|
2103
2756
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2104
2757
|
if (e || n !== 126)
|
|
2105
2758
|
return !1;
|
|
2106
2759
|
const r = u.scanDelims(u.pos, !0);
|
|
2107
|
-
let
|
|
2108
|
-
const
|
|
2109
|
-
if (
|
|
2760
|
+
let o = r.length;
|
|
2761
|
+
const i = String.fromCharCode(n);
|
|
2762
|
+
if (o < 2)
|
|
2110
2763
|
return !1;
|
|
2111
|
-
let
|
|
2112
|
-
|
|
2113
|
-
for (let a = 0; a <
|
|
2114
|
-
|
|
2764
|
+
let c;
|
|
2765
|
+
o % 2 && (c = u.push("text", "", 0), c.content = i, o--);
|
|
2766
|
+
for (let a = 0; a < o; a += 2)
|
|
2767
|
+
c = u.push("text", "", 0), c.content = i + i, u.delimiters.push({
|
|
2115
2768
|
marker: n,
|
|
2116
2769
|
length: 0,
|
|
2117
2770
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -2122,42 +2775,42 @@ function Lt(u, e) {
|
|
|
2122
2775
|
});
|
|
2123
2776
|
return u.pos += r.length, !0;
|
|
2124
2777
|
}
|
|
2125
|
-
function
|
|
2778
|
+
function _t(u, e) {
|
|
2126
2779
|
let t;
|
|
2127
2780
|
const n = [], r = e.length;
|
|
2128
|
-
for (let
|
|
2129
|
-
const
|
|
2130
|
-
if (
|
|
2781
|
+
for (let o = 0; o < r; o++) {
|
|
2782
|
+
const i = e[o];
|
|
2783
|
+
if (i.marker !== 126 || i.end === -1)
|
|
2131
2784
|
continue;
|
|
2132
|
-
const
|
|
2133
|
-
t = u.tokens[
|
|
2785
|
+
const c = e[i.end];
|
|
2786
|
+
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[c.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[c.token - 1].type === "text" && u.tokens[c.token - 1].content === "~" && n.push(c.token - 1);
|
|
2134
2787
|
}
|
|
2135
2788
|
for (; n.length; ) {
|
|
2136
|
-
const
|
|
2137
|
-
let
|
|
2138
|
-
for (;
|
|
2139
|
-
|
|
2140
|
-
|
|
2789
|
+
const o = n.pop();
|
|
2790
|
+
let i = o + 1;
|
|
2791
|
+
for (; i < u.tokens.length && u.tokens[i].type === "s_close"; )
|
|
2792
|
+
i++;
|
|
2793
|
+
i--, o !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[o], u.tokens[o] = t);
|
|
2141
2794
|
}
|
|
2142
2795
|
}
|
|
2143
|
-
function
|
|
2796
|
+
function xc(u) {
|
|
2144
2797
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2145
|
-
|
|
2798
|
+
_t(u, u.delimiters);
|
|
2146
2799
|
for (let n = 0; n < t; n++)
|
|
2147
|
-
e[n] && e[n].delimiters &&
|
|
2800
|
+
e[n] && e[n].delimiters && _t(u, e[n].delimiters);
|
|
2148
2801
|
}
|
|
2149
|
-
const
|
|
2150
|
-
tokenize:
|
|
2151
|
-
postProcess:
|
|
2802
|
+
const $t = {
|
|
2803
|
+
tokenize: mc,
|
|
2804
|
+
postProcess: xc
|
|
2152
2805
|
};
|
|
2153
|
-
function
|
|
2806
|
+
function gc(u, e) {
|
|
2154
2807
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2155
2808
|
if (e || n !== 95 && n !== 42)
|
|
2156
2809
|
return !1;
|
|
2157
2810
|
const r = u.scanDelims(u.pos, n === 42);
|
|
2158
|
-
for (let
|
|
2159
|
-
const
|
|
2160
|
-
|
|
2811
|
+
for (let o = 0; o < r.length; o++) {
|
|
2812
|
+
const i = u.push("text", "", 0);
|
|
2813
|
+
i.content = String.fromCharCode(n), u.delimiters.push({
|
|
2161
2814
|
// Char code of the starting marker (number).
|
|
2162
2815
|
//
|
|
2163
2816
|
marker: n,
|
|
@@ -2180,308 +2833,308 @@ function Ot(u, e) {
|
|
|
2180
2833
|
}
|
|
2181
2834
|
return u.pos += r.length, !0;
|
|
2182
2835
|
}
|
|
2183
|
-
function
|
|
2836
|
+
function mt(u, e) {
|
|
2184
2837
|
const t = e.length;
|
|
2185
2838
|
for (let n = t - 1; n >= 0; n--) {
|
|
2186
2839
|
const r = e[n];
|
|
2187
2840
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
2188
2841
|
continue;
|
|
2189
|
-
const
|
|
2842
|
+
const o = e[r.end], i = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
2190
2843
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
2191
|
-
e[r.end + 1].token ===
|
|
2192
|
-
a.type =
|
|
2193
|
-
const s = u.tokens[
|
|
2194
|
-
s.type =
|
|
2844
|
+
e[r.end + 1].token === o.token + 1, c = String.fromCharCode(r.marker), a = u.tokens[r.token];
|
|
2845
|
+
a.type = i ? "strong_open" : "em_open", a.tag = i ? "strong" : "em", a.nesting = 1, a.markup = i ? c + c : c, a.content = "";
|
|
2846
|
+
const s = u.tokens[o.token];
|
|
2847
|
+
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? c + c : c, s.content = "", i && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
2195
2848
|
}
|
|
2196
2849
|
}
|
|
2197
|
-
function
|
|
2850
|
+
function kc(u) {
|
|
2198
2851
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2199
|
-
|
|
2852
|
+
mt(u, u.delimiters);
|
|
2200
2853
|
for (let n = 0; n < t; n++)
|
|
2201
|
-
e[n] && e[n].delimiters &&
|
|
2854
|
+
e[n] && e[n].delimiters && mt(u, e[n].delimiters);
|
|
2202
2855
|
}
|
|
2203
|
-
const
|
|
2204
|
-
tokenize:
|
|
2205
|
-
postProcess:
|
|
2856
|
+
const jt = {
|
|
2857
|
+
tokenize: gc,
|
|
2858
|
+
postProcess: kc
|
|
2206
2859
|
};
|
|
2207
|
-
function
|
|
2208
|
-
let t, n, r,
|
|
2860
|
+
function Ec(u, e) {
|
|
2861
|
+
let t, n, r, o, i = "", c = "", a = u.pos, s = !0;
|
|
2209
2862
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2210
2863
|
return !1;
|
|
2211
|
-
const f = u.pos, d = u.posMax,
|
|
2212
|
-
if (
|
|
2864
|
+
const f = u.pos, d = u.posMax, _ = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
2865
|
+
if (p < 0)
|
|
2213
2866
|
return !1;
|
|
2214
|
-
let
|
|
2215
|
-
if (
|
|
2216
|
-
for (s = !1,
|
|
2867
|
+
let h = p + 1;
|
|
2868
|
+
if (h < d && u.src.charCodeAt(h) === 40) {
|
|
2869
|
+
for (s = !1, h++; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
2217
2870
|
;
|
|
2218
|
-
if (
|
|
2871
|
+
if (h >= d)
|
|
2219
2872
|
return !1;
|
|
2220
|
-
if (a =
|
|
2221
|
-
for (
|
|
2873
|
+
if (a = h, r = u.md.helpers.parseLinkDestination(u.src, h, u.posMax), r.ok) {
|
|
2874
|
+
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? h = r.pos : i = "", a = h; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
2222
2875
|
;
|
|
2223
|
-
if (r = u.md.helpers.parseLinkTitle(u.src,
|
|
2224
|
-
for (
|
|
2876
|
+
if (r = u.md.helpers.parseLinkTitle(u.src, h, u.posMax), h < d && a !== h && r.ok)
|
|
2877
|
+
for (c = r.str, h = r.pos; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
2225
2878
|
;
|
|
2226
2879
|
}
|
|
2227
|
-
(
|
|
2880
|
+
(h >= d || u.src.charCodeAt(h) !== 41) && (s = !0), h++;
|
|
2228
2881
|
}
|
|
2229
2882
|
if (s) {
|
|
2230
2883
|
if (typeof u.env.references > "u")
|
|
2231
2884
|
return !1;
|
|
2232
|
-
if (
|
|
2885
|
+
if (h < d && u.src.charCodeAt(h) === 91 ? (a = h + 1, h = u.md.helpers.parseLinkLabel(u, h), h >= 0 ? n = u.src.slice(a, h++) : h = p + 1) : h = p + 1, n || (n = u.src.slice(_, p)), o = u.env.references[Se(n)], !o)
|
|
2233
2886
|
return u.pos = f, !1;
|
|
2234
|
-
|
|
2887
|
+
i = o.href, c = o.title;
|
|
2235
2888
|
}
|
|
2236
2889
|
if (!e) {
|
|
2237
|
-
u.pos =
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2890
|
+
u.pos = _, u.posMax = p;
|
|
2891
|
+
const C = u.push("link_open", "a", 1), D = [["href", i]];
|
|
2892
|
+
C.attrs = D, c && D.push(["title", c]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2240
2893
|
}
|
|
2241
|
-
return u.pos =
|
|
2894
|
+
return u.pos = h, u.posMax = d, !0;
|
|
2242
2895
|
}
|
|
2243
|
-
function
|
|
2244
|
-
let t, n, r,
|
|
2245
|
-
const d = u.pos,
|
|
2896
|
+
function Ac(u, e) {
|
|
2897
|
+
let t, n, r, o, i, c, a, s, f = "";
|
|
2898
|
+
const d = u.pos, _ = u.posMax;
|
|
2246
2899
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
2247
2900
|
return !1;
|
|
2248
|
-
const
|
|
2249
|
-
if (
|
|
2901
|
+
const p = u.pos + 2, h = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
2902
|
+
if (h < 0)
|
|
2250
2903
|
return !1;
|
|
2251
|
-
if (
|
|
2252
|
-
for (
|
|
2904
|
+
if (o = h + 1, o < _ && u.src.charCodeAt(o) === 40) {
|
|
2905
|
+
for (o++; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
2253
2906
|
;
|
|
2254
|
-
if (
|
|
2907
|
+
if (o >= _)
|
|
2255
2908
|
return !1;
|
|
2256
|
-
for (s =
|
|
2909
|
+
for (s = o, c = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), c.ok && (f = u.md.normalizeLink(c.str), u.md.validateLink(f) ? o = c.pos : f = ""), s = o; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
2257
2910
|
;
|
|
2258
|
-
if (
|
|
2259
|
-
for (a =
|
|
2911
|
+
if (c = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < _ && s !== o && c.ok)
|
|
2912
|
+
for (a = c.str, o = c.pos; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
2260
2913
|
;
|
|
2261
2914
|
else
|
|
2262
2915
|
a = "";
|
|
2263
|
-
if (
|
|
2916
|
+
if (o >= _ || u.src.charCodeAt(o) !== 41)
|
|
2264
2917
|
return u.pos = d, !1;
|
|
2265
|
-
|
|
2918
|
+
o++;
|
|
2266
2919
|
} else {
|
|
2267
2920
|
if (typeof u.env.references > "u")
|
|
2268
2921
|
return !1;
|
|
2269
|
-
if (
|
|
2922
|
+
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = h + 1) : o = h + 1, r || (r = u.src.slice(p, h)), i = u.env.references[Se(r)], !i)
|
|
2270
2923
|
return u.pos = d, !1;
|
|
2271
|
-
f =
|
|
2924
|
+
f = i.href, a = i.title;
|
|
2272
2925
|
}
|
|
2273
2926
|
if (!e) {
|
|
2274
|
-
n = u.src.slice(
|
|
2275
|
-
const
|
|
2927
|
+
n = u.src.slice(p, h);
|
|
2928
|
+
const C = [];
|
|
2276
2929
|
u.md.inline.parse(
|
|
2277
2930
|
n,
|
|
2278
2931
|
u.md,
|
|
2279
2932
|
u.env,
|
|
2280
|
-
|
|
2933
|
+
C
|
|
2281
2934
|
);
|
|
2282
|
-
const
|
|
2283
|
-
|
|
2935
|
+
const D = u.push("image", "img", 0), T = [["src", f], ["alt", ""]];
|
|
2936
|
+
D.attrs = T, D.children = C, D.content = n, a && T.push(["title", a]);
|
|
2284
2937
|
}
|
|
2285
|
-
return u.pos =
|
|
2938
|
+
return u.pos = o, u.posMax = _, !0;
|
|
2286
2939
|
}
|
|
2287
|
-
const
|
|
2288
|
-
function
|
|
2940
|
+
const Cc = /^([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])?)*)$/, Dc = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2941
|
+
function yc(u, e) {
|
|
2289
2942
|
let t = u.pos;
|
|
2290
2943
|
if (u.src.charCodeAt(t) !== 60)
|
|
2291
2944
|
return !1;
|
|
2292
2945
|
const n = u.pos, r = u.posMax;
|
|
2293
2946
|
for (; ; ) {
|
|
2294
2947
|
if (++t >= r) return !1;
|
|
2295
|
-
const
|
|
2296
|
-
if (
|
|
2297
|
-
if (
|
|
2298
|
-
}
|
|
2299
|
-
const
|
|
2300
|
-
if (
|
|
2301
|
-
const
|
|
2302
|
-
if (!u.md.validateLink(
|
|
2948
|
+
const i = u.src.charCodeAt(t);
|
|
2949
|
+
if (i === 60) return !1;
|
|
2950
|
+
if (i === 62) break;
|
|
2951
|
+
}
|
|
2952
|
+
const o = u.src.slice(n + 1, t);
|
|
2953
|
+
if (Dc.test(o)) {
|
|
2954
|
+
const i = u.md.normalizeLink(o);
|
|
2955
|
+
if (!u.md.validateLink(i))
|
|
2303
2956
|
return !1;
|
|
2304
2957
|
if (!e) {
|
|
2305
|
-
const
|
|
2306
|
-
|
|
2958
|
+
const c = u.push("link_open", "a", 1);
|
|
2959
|
+
c.attrs = [["href", i]], c.markup = "autolink", c.info = "auto";
|
|
2307
2960
|
const a = u.push("text", "", 0);
|
|
2308
|
-
a.content = u.md.normalizeLinkText(
|
|
2961
|
+
a.content = u.md.normalizeLinkText(o);
|
|
2309
2962
|
const s = u.push("link_close", "a", -1);
|
|
2310
2963
|
s.markup = "autolink", s.info = "auto";
|
|
2311
2964
|
}
|
|
2312
|
-
return u.pos +=
|
|
2965
|
+
return u.pos += o.length + 2, !0;
|
|
2313
2966
|
}
|
|
2314
|
-
if (
|
|
2315
|
-
const
|
|
2316
|
-
if (!u.md.validateLink(
|
|
2967
|
+
if (Cc.test(o)) {
|
|
2968
|
+
const i = u.md.normalizeLink("mailto:" + o);
|
|
2969
|
+
if (!u.md.validateLink(i))
|
|
2317
2970
|
return !1;
|
|
2318
2971
|
if (!e) {
|
|
2319
|
-
const
|
|
2320
|
-
|
|
2972
|
+
const c = u.push("link_open", "a", 1);
|
|
2973
|
+
c.attrs = [["href", i]], c.markup = "autolink", c.info = "auto";
|
|
2321
2974
|
const a = u.push("text", "", 0);
|
|
2322
|
-
a.content = u.md.normalizeLinkText(
|
|
2975
|
+
a.content = u.md.normalizeLinkText(o);
|
|
2323
2976
|
const s = u.push("link_close", "a", -1);
|
|
2324
2977
|
s.markup = "autolink", s.info = "auto";
|
|
2325
2978
|
}
|
|
2326
|
-
return u.pos +=
|
|
2979
|
+
return u.pos += o.length + 2, !0;
|
|
2327
2980
|
}
|
|
2328
2981
|
return !1;
|
|
2329
2982
|
}
|
|
2330
|
-
function
|
|
2983
|
+
function Fc(u) {
|
|
2331
2984
|
return /^<a[>\s]/i.test(u);
|
|
2332
2985
|
}
|
|
2333
|
-
function
|
|
2986
|
+
function Tc(u) {
|
|
2334
2987
|
return /^<\/a\s*>/i.test(u);
|
|
2335
2988
|
}
|
|
2336
|
-
function
|
|
2989
|
+
function Sc(u) {
|
|
2337
2990
|
const e = u | 32;
|
|
2338
2991
|
return e >= 97 && e <= 122;
|
|
2339
2992
|
}
|
|
2340
|
-
function
|
|
2993
|
+
function wc(u, e) {
|
|
2341
2994
|
if (!u.md.options.html)
|
|
2342
2995
|
return !1;
|
|
2343
2996
|
const t = u.posMax, n = u.pos;
|
|
2344
2997
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
2345
2998
|
return !1;
|
|
2346
2999
|
const r = u.src.charCodeAt(n + 1);
|
|
2347
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
3000
|
+
if (r !== 33 && r !== 63 && r !== 47 && !Sc(r))
|
|
2348
3001
|
return !1;
|
|
2349
|
-
const
|
|
2350
|
-
if (!
|
|
3002
|
+
const o = u.src.slice(n).match(rc);
|
|
3003
|
+
if (!o)
|
|
2351
3004
|
return !1;
|
|
2352
3005
|
if (!e) {
|
|
2353
|
-
const
|
|
2354
|
-
|
|
3006
|
+
const i = u.push("html_inline", "", 0);
|
|
3007
|
+
i.content = o[0], Fc(i.content) && u.linkLevel++, Tc(i.content) && u.linkLevel--;
|
|
2355
3008
|
}
|
|
2356
|
-
return u.pos +=
|
|
3009
|
+
return u.pos += o[0].length, !0;
|
|
2357
3010
|
}
|
|
2358
|
-
const
|
|
2359
|
-
function
|
|
3011
|
+
const vc = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Rc = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3012
|
+
function Ic(u, e) {
|
|
2360
3013
|
const t = u.pos, n = u.posMax;
|
|
2361
3014
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
2362
3015
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
2363
|
-
const
|
|
2364
|
-
if (
|
|
3016
|
+
const o = u.src.slice(t).match(vc);
|
|
3017
|
+
if (o) {
|
|
2365
3018
|
if (!e) {
|
|
2366
|
-
const
|
|
2367
|
-
|
|
3019
|
+
const i = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), c = u.push("text_special", "", 0);
|
|
3020
|
+
c.content = p0(i) ? ye(i) : ye(65533), c.markup = o[0], c.info = "entity";
|
|
2368
3021
|
}
|
|
2369
|
-
return u.pos +=
|
|
3022
|
+
return u.pos += o[0].length, !0;
|
|
2370
3023
|
}
|
|
2371
3024
|
} else {
|
|
2372
|
-
const
|
|
2373
|
-
if (
|
|
2374
|
-
const
|
|
2375
|
-
if (
|
|
3025
|
+
const o = u.src.slice(t).match(Rc);
|
|
3026
|
+
if (o) {
|
|
3027
|
+
const i = Nt(o[0]);
|
|
3028
|
+
if (i !== o[0]) {
|
|
2376
3029
|
if (!e) {
|
|
2377
|
-
const
|
|
2378
|
-
|
|
3030
|
+
const c = u.push("text_special", "", 0);
|
|
3031
|
+
c.content = i, c.markup = o[0], c.info = "entity";
|
|
2379
3032
|
}
|
|
2380
|
-
return u.pos +=
|
|
3033
|
+
return u.pos += o[0].length, !0;
|
|
2381
3034
|
}
|
|
2382
3035
|
}
|
|
2383
3036
|
}
|
|
2384
3037
|
return !1;
|
|
2385
3038
|
}
|
|
2386
|
-
function
|
|
3039
|
+
function xt(u) {
|
|
2387
3040
|
const e = {}, t = u.length;
|
|
2388
3041
|
if (!t) return;
|
|
2389
3042
|
let n = 0, r = -2;
|
|
2390
|
-
const
|
|
2391
|
-
for (let
|
|
2392
|
-
const
|
|
2393
|
-
if (
|
|
2394
|
-
e.hasOwnProperty(
|
|
2395
|
-
const a = e[
|
|
2396
|
-
let s = n -
|
|
2397
|
-
for (; s > a; s -=
|
|
3043
|
+
const o = [];
|
|
3044
|
+
for (let i = 0; i < t; i++) {
|
|
3045
|
+
const c = u[i];
|
|
3046
|
+
if (o.push(0), (u[n].marker !== c.marker || r !== c.token - 1) && (n = i), r = c.token, c.length = c.length || 0, !c.close) continue;
|
|
3047
|
+
e.hasOwnProperty(c.marker) || (e[c.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3048
|
+
const a = e[c.marker][(c.open ? 3 : 0) + c.length % 3];
|
|
3049
|
+
let s = n - o[n] - 1, f = s;
|
|
3050
|
+
for (; s > a; s -= o[s] + 1) {
|
|
2398
3051
|
const d = u[s];
|
|
2399
|
-
if (d.marker ===
|
|
2400
|
-
let
|
|
2401
|
-
if ((d.close ||
|
|
2402
|
-
const
|
|
2403
|
-
|
|
3052
|
+
if (d.marker === c.marker && d.open && d.end < 0) {
|
|
3053
|
+
let _ = !1;
|
|
3054
|
+
if ((d.close || c.open) && (d.length + c.length) % 3 === 0 && (d.length % 3 !== 0 || c.length % 3 !== 0) && (_ = !0), !_) {
|
|
3055
|
+
const p = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3056
|
+
o[i] = i - s + p, o[s] = p, c.open = !1, d.end = i, d.close = !1, f = -1, r = -2;
|
|
2404
3057
|
break;
|
|
2405
3058
|
}
|
|
2406
3059
|
}
|
|
2407
3060
|
}
|
|
2408
|
-
f !== -1 && (e[
|
|
3061
|
+
f !== -1 && (e[c.marker][(c.open ? 3 : 0) + (c.length || 0) % 3] = f);
|
|
2409
3062
|
}
|
|
2410
3063
|
}
|
|
2411
|
-
function
|
|
3064
|
+
function Mc(u) {
|
|
2412
3065
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2413
|
-
|
|
3066
|
+
xt(u.delimiters);
|
|
2414
3067
|
for (let n = 0; n < t; n++)
|
|
2415
|
-
e[n] && e[n].delimiters &&
|
|
3068
|
+
e[n] && e[n].delimiters && xt(e[n].delimiters);
|
|
2416
3069
|
}
|
|
2417
|
-
function
|
|
3070
|
+
function Lc(u) {
|
|
2418
3071
|
let e, t, n = 0;
|
|
2419
|
-
const r = u.tokens,
|
|
2420
|
-
for (e = t = 0; e <
|
|
2421
|
-
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 <
|
|
3072
|
+
const r = u.tokens, o = u.tokens.length;
|
|
3073
|
+
for (e = t = 0; e < o; e++)
|
|
3074
|
+
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < o && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
2422
3075
|
e !== t && (r.length = t);
|
|
2423
3076
|
}
|
|
2424
|
-
const
|
|
2425
|
-
["text",
|
|
2426
|
-
["linkify",
|
|
2427
|
-
["newline",
|
|
2428
|
-
["escape",
|
|
2429
|
-
["backticks",
|
|
2430
|
-
["strikethrough",
|
|
2431
|
-
["emphasis",
|
|
2432
|
-
["link",
|
|
2433
|
-
["image",
|
|
2434
|
-
["autolink",
|
|
2435
|
-
["html_inline",
|
|
2436
|
-
["entity",
|
|
2437
|
-
],
|
|
2438
|
-
["balance_pairs",
|
|
2439
|
-
["strikethrough",
|
|
2440
|
-
["emphasis",
|
|
3077
|
+
const Je = [
|
|
3078
|
+
["text", fc],
|
|
3079
|
+
["linkify", hc],
|
|
3080
|
+
["newline", pc],
|
|
3081
|
+
["escape", bc],
|
|
3082
|
+
["backticks", _c],
|
|
3083
|
+
["strikethrough", $t.tokenize],
|
|
3084
|
+
["emphasis", jt.tokenize],
|
|
3085
|
+
["link", Ec],
|
|
3086
|
+
["image", Ac],
|
|
3087
|
+
["autolink", yc],
|
|
3088
|
+
["html_inline", wc],
|
|
3089
|
+
["entity", Ic]
|
|
3090
|
+
], Qe = [
|
|
3091
|
+
["balance_pairs", Mc],
|
|
3092
|
+
["strikethrough", $t.postProcess],
|
|
3093
|
+
["emphasis", jt.postProcess],
|
|
2441
3094
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
2442
3095
|
// rule below merges unused segments back with the rest of the text
|
|
2443
|
-
["fragments_join",
|
|
3096
|
+
["fragments_join", Lc]
|
|
2444
3097
|
];
|
|
2445
|
-
function
|
|
2446
|
-
this.ruler = new
|
|
2447
|
-
for (let u = 0; u <
|
|
2448
|
-
this.ruler.push(
|
|
2449
|
-
this.ruler2 = new
|
|
2450
|
-
for (let u = 0; u <
|
|
2451
|
-
this.ruler2.push(
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting,
|
|
2455
|
-
if (typeof
|
|
2456
|
-
u.pos =
|
|
3098
|
+
function ie() {
|
|
3099
|
+
this.ruler = new V();
|
|
3100
|
+
for (let u = 0; u < Je.length; u++)
|
|
3101
|
+
this.ruler.push(Je[u][0], Je[u][1]);
|
|
3102
|
+
this.ruler2 = new V();
|
|
3103
|
+
for (let u = 0; u < Qe.length; u++)
|
|
3104
|
+
this.ruler2.push(Qe[u][0], Qe[u][1]);
|
|
3105
|
+
}
|
|
3106
|
+
ie.prototype.skipToken = function(u) {
|
|
3107
|
+
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, o = u.cache;
|
|
3108
|
+
if (typeof o[e] < "u") {
|
|
3109
|
+
u.pos = o[e];
|
|
2457
3110
|
return;
|
|
2458
3111
|
}
|
|
2459
|
-
let
|
|
3112
|
+
let i = !1;
|
|
2460
3113
|
if (u.level < r) {
|
|
2461
|
-
for (let
|
|
2462
|
-
if (u.level++,
|
|
3114
|
+
for (let c = 0; c < n; c++)
|
|
3115
|
+
if (u.level++, i = t[c](u, !0), u.level--, i) {
|
|
2463
3116
|
if (e >= u.pos)
|
|
2464
3117
|
throw new Error("inline rule didn't increment state.pos");
|
|
2465
3118
|
break;
|
|
2466
3119
|
}
|
|
2467
3120
|
} else
|
|
2468
3121
|
u.pos = u.posMax;
|
|
2469
|
-
|
|
3122
|
+
i || u.pos++, o[e] = u.pos;
|
|
2470
3123
|
};
|
|
2471
|
-
|
|
3124
|
+
ie.prototype.tokenize = function(u) {
|
|
2472
3125
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
2473
3126
|
for (; u.pos < n; ) {
|
|
2474
|
-
const
|
|
2475
|
-
let
|
|
3127
|
+
const o = u.pos;
|
|
3128
|
+
let i = !1;
|
|
2476
3129
|
if (u.level < r) {
|
|
2477
|
-
for (let
|
|
2478
|
-
if (
|
|
2479
|
-
if (
|
|
3130
|
+
for (let c = 0; c < t; c++)
|
|
3131
|
+
if (i = e[c](u, !1), i) {
|
|
3132
|
+
if (o >= u.pos)
|
|
2480
3133
|
throw new Error("inline rule didn't increment state.pos");
|
|
2481
3134
|
break;
|
|
2482
3135
|
}
|
|
2483
3136
|
}
|
|
2484
|
-
if (
|
|
3137
|
+
if (i) {
|
|
2485
3138
|
if (u.pos >= n)
|
|
2486
3139
|
break;
|
|
2487
3140
|
continue;
|
|
@@ -2490,17 +3143,17 @@ cu.prototype.tokenize = function(u) {
|
|
|
2490
3143
|
}
|
|
2491
3144
|
u.pending && u.pushPending();
|
|
2492
3145
|
};
|
|
2493
|
-
|
|
3146
|
+
ie.prototype.parse = function(u, e, t, n) {
|
|
2494
3147
|
const r = new this.State(u, e, t, n);
|
|
2495
3148
|
this.tokenize(r);
|
|
2496
|
-
const
|
|
2497
|
-
for (let
|
|
2498
|
-
c
|
|
3149
|
+
const o = this.ruler2.getRules(""), i = o.length;
|
|
3150
|
+
for (let c = 0; c < i; c++)
|
|
3151
|
+
o[c](r);
|
|
2499
3152
|
};
|
|
2500
|
-
|
|
2501
|
-
function
|
|
3153
|
+
ie.prototype.State = ce;
|
|
3154
|
+
function Oc(u) {
|
|
2502
3155
|
const e = {};
|
|
2503
|
-
u = u || {}, e.src_Any =
|
|
3156
|
+
u = u || {}, e.src_Any = Rt.source, e.src_Cc = It.source, e.src_Z = Lt.source, e.src_P = d0.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
2504
3157
|
const t = "[><|]";
|
|
2505
3158
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
2506
3159
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -2510,42 +3163,42 @@ function er(u) {
|
|
|
2510
3163
|
// but can start with > (markdown blockquote)
|
|
2511
3164
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
2512
3165
|
}
|
|
2513
|
-
function
|
|
3166
|
+
function o0(u) {
|
|
2514
3167
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
2515
3168
|
t && Object.keys(t).forEach(function(n) {
|
|
2516
3169
|
u[n] = t[n];
|
|
2517
3170
|
});
|
|
2518
3171
|
}), u;
|
|
2519
3172
|
}
|
|
2520
|
-
function
|
|
3173
|
+
function ve(u) {
|
|
2521
3174
|
return Object.prototype.toString.call(u);
|
|
2522
3175
|
}
|
|
2523
|
-
function
|
|
2524
|
-
return
|
|
3176
|
+
function Nc(u) {
|
|
3177
|
+
return ve(u) === "[object String]";
|
|
2525
3178
|
}
|
|
2526
|
-
function
|
|
2527
|
-
return
|
|
3179
|
+
function Bc(u) {
|
|
3180
|
+
return ve(u) === "[object Object]";
|
|
2528
3181
|
}
|
|
2529
|
-
function
|
|
2530
|
-
return
|
|
3182
|
+
function Pc(u) {
|
|
3183
|
+
return ve(u) === "[object RegExp]";
|
|
2531
3184
|
}
|
|
2532
|
-
function
|
|
2533
|
-
return
|
|
3185
|
+
function gt(u) {
|
|
3186
|
+
return ve(u) === "[object Function]";
|
|
2534
3187
|
}
|
|
2535
|
-
function
|
|
3188
|
+
function zc(u) {
|
|
2536
3189
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
2537
3190
|
}
|
|
2538
|
-
const
|
|
3191
|
+
const Gt = {
|
|
2539
3192
|
fuzzyLink: !0,
|
|
2540
3193
|
fuzzyEmail: !0,
|
|
2541
3194
|
fuzzyIP: !1
|
|
2542
3195
|
};
|
|
2543
|
-
function
|
|
3196
|
+
function qc(u) {
|
|
2544
3197
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
2545
|
-
return e ||
|
|
3198
|
+
return e || Gt.hasOwnProperty(t);
|
|
2546
3199
|
}, !1);
|
|
2547
3200
|
}
|
|
2548
|
-
const
|
|
3201
|
+
const Uc = {
|
|
2549
3202
|
"http:": {
|
|
2550
3203
|
validate: function(u, e, t) {
|
|
2551
3204
|
const n = u.slice(e);
|
|
@@ -2577,230 +3230,230 @@ const or = {
|
|
|
2577
3230
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
2578
3231
|
}
|
|
2579
3232
|
}
|
|
2580
|
-
},
|
|
2581
|
-
function
|
|
3233
|
+
}, Hc = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", $c = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3234
|
+
function jc(u) {
|
|
2582
3235
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
2583
3236
|
}
|
|
2584
|
-
function
|
|
3237
|
+
function Gc(u) {
|
|
2585
3238
|
return function(e, t) {
|
|
2586
3239
|
const n = e.slice(t);
|
|
2587
3240
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
2588
3241
|
};
|
|
2589
3242
|
}
|
|
2590
|
-
function
|
|
3243
|
+
function kt() {
|
|
2591
3244
|
return function(u, e) {
|
|
2592
3245
|
e.normalize(u);
|
|
2593
3246
|
};
|
|
2594
3247
|
}
|
|
2595
|
-
function
|
|
2596
|
-
const e = u.re =
|
|
2597
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
2598
|
-
function n(
|
|
2599
|
-
return
|
|
3248
|
+
function Fe(u) {
|
|
3249
|
+
const e = u.re = Oc(u.__opts__), t = u.__tlds__.slice();
|
|
3250
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(Hc), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3251
|
+
function n(c) {
|
|
3252
|
+
return c.replace("%TLDS%", e.src_tlds);
|
|
2600
3253
|
}
|
|
2601
3254
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
|
2602
3255
|
const r = [];
|
|
2603
3256
|
u.__compiled__ = {};
|
|
2604
|
-
function c
|
|
2605
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
|
3257
|
+
function o(c, a) {
|
|
3258
|
+
throw new Error('(LinkifyIt) Invalid schema "' + c + '": ' + a);
|
|
2606
3259
|
}
|
|
2607
|
-
Object.keys(u.__schemas__).forEach(function(
|
|
2608
|
-
const a = u.__schemas__[
|
|
3260
|
+
Object.keys(u.__schemas__).forEach(function(c) {
|
|
3261
|
+
const a = u.__schemas__[c];
|
|
2609
3262
|
if (a === null)
|
|
2610
3263
|
return;
|
|
2611
3264
|
const s = { validate: null, link: null };
|
|
2612
|
-
if (u.__compiled__[
|
|
2613
|
-
|
|
3265
|
+
if (u.__compiled__[c] = s, Bc(a)) {
|
|
3266
|
+
Pc(a.validate) ? s.validate = Gc(a.validate) : gt(a.validate) ? s.validate = a.validate : o(c, a), gt(a.normalize) ? s.normalize = a.normalize : a.normalize ? o(c, a) : s.normalize = kt();
|
|
2614
3267
|
return;
|
|
2615
3268
|
}
|
|
2616
|
-
if (
|
|
2617
|
-
r.push(
|
|
3269
|
+
if (Nc(a)) {
|
|
3270
|
+
r.push(c);
|
|
2618
3271
|
return;
|
|
2619
3272
|
}
|
|
2620
|
-
c
|
|
2621
|
-
}), r.forEach(function(
|
|
2622
|
-
u.__compiled__[u.__schemas__[
|
|
2623
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
|
2624
|
-
const
|
|
2625
|
-
return
|
|
2626
|
-
}).map(
|
|
2627
|
-
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" +
|
|
3273
|
+
o(c, a);
|
|
3274
|
+
}), r.forEach(function(c) {
|
|
3275
|
+
u.__compiled__[u.__schemas__[c]] && (u.__compiled__[c].validate = u.__compiled__[u.__schemas__[c]].validate, u.__compiled__[c].normalize = u.__compiled__[u.__schemas__[c]].normalize);
|
|
3276
|
+
}), u.__compiled__[""] = { validate: null, normalize: kt() };
|
|
3277
|
+
const i = Object.keys(u.__compiled__).filter(function(c) {
|
|
3278
|
+
return c.length > 0 && u.__compiled__[c];
|
|
3279
|
+
}).map(zc).join("|");
|
|
3280
|
+
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
2628
3281
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
2629
3282
|
"i"
|
|
2630
|
-
),
|
|
3283
|
+
), jc(u);
|
|
2631
3284
|
}
|
|
2632
|
-
function
|
|
3285
|
+
function Wc(u, e) {
|
|
2633
3286
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
2634
3287
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
2635
3288
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const t = new
|
|
3289
|
+
function c0(u, e) {
|
|
3290
|
+
const t = new Wc(u, e);
|
|
2638
3291
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
2639
3292
|
}
|
|
2640
|
-
function
|
|
2641
|
-
if (!(this instanceof
|
|
2642
|
-
return new
|
|
2643
|
-
e ||
|
|
3293
|
+
function X(u, e) {
|
|
3294
|
+
if (!(this instanceof X))
|
|
3295
|
+
return new X(u, e);
|
|
3296
|
+
e || qc(u) && (e = u, u = {}), this.__opts__ = o0({}, Gt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = o0({}, Uc, u), this.__compiled__ = {}, this.__tlds__ = $c, this.__tlds_replaced__ = !1, this.re = {}, Fe(this);
|
|
2644
3297
|
}
|
|
2645
|
-
|
|
2646
|
-
return this.__schemas__[e] = t,
|
|
3298
|
+
X.prototype.add = function(e, t) {
|
|
3299
|
+
return this.__schemas__[e] = t, Fe(this), this;
|
|
2647
3300
|
};
|
|
2648
|
-
|
|
2649
|
-
return this.__opts__ =
|
|
3301
|
+
X.prototype.set = function(e) {
|
|
3302
|
+
return this.__opts__ = o0(this.__opts__, e), this;
|
|
2650
3303
|
};
|
|
2651
|
-
|
|
3304
|
+
X.prototype.test = function(e) {
|
|
2652
3305
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
2653
3306
|
return !1;
|
|
2654
|
-
let t, n, r,
|
|
3307
|
+
let t, n, r, o, i, c, a, s, f;
|
|
2655
3308
|
if (this.re.schema_test.test(e)) {
|
|
2656
3309
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
|
2657
|
-
if (
|
|
2658
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length +
|
|
3310
|
+
if (o = this.testSchemaAt(e, t[2], a.lastIndex), o) {
|
|
3311
|
+
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + o;
|
|
2659
3312
|
break;
|
|
2660
3313
|
}
|
|
2661
3314
|
}
|
|
2662
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (
|
|
3315
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, c = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && c > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = c))), this.__index__ >= 0;
|
|
2663
3316
|
};
|
|
2664
|
-
|
|
3317
|
+
X.prototype.pretest = function(e) {
|
|
2665
3318
|
return this.re.pretest.test(e);
|
|
2666
3319
|
};
|
|
2667
|
-
|
|
3320
|
+
X.prototype.testSchemaAt = function(e, t, n) {
|
|
2668
3321
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
|
2669
3322
|
};
|
|
2670
|
-
|
|
3323
|
+
X.prototype.match = function(e) {
|
|
2671
3324
|
const t = [];
|
|
2672
3325
|
let n = 0;
|
|
2673
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
|
3326
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(c0(this, n)), n = this.__last_index__);
|
|
2674
3327
|
let r = n ? e.slice(n) : e;
|
|
2675
3328
|
for (; this.test(r); )
|
|
2676
|
-
t.push(
|
|
3329
|
+
t.push(c0(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
2677
3330
|
return t.length ? t : null;
|
|
2678
3331
|
};
|
|
2679
|
-
|
|
3332
|
+
X.prototype.matchAtStart = function(e) {
|
|
2680
3333
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
|
|
2681
3334
|
const t = this.re.schema_at_start.exec(e);
|
|
2682
3335
|
if (!t) return null;
|
|
2683
3336
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
2684
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
|
3337
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, c0(this, 0)) : null;
|
|
2685
3338
|
};
|
|
2686
|
-
|
|
2687
|
-
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r,
|
|
2688
|
-
return n !==
|
|
2689
|
-
}).reverse(),
|
|
3339
|
+
X.prototype.tlds = function(e, t) {
|
|
3340
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3341
|
+
return n !== o[r - 1];
|
|
3342
|
+
}).reverse(), Fe(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Fe(this), this);
|
|
2690
3343
|
};
|
|
2691
|
-
|
|
3344
|
+
X.prototype.normalize = function(e) {
|
|
2692
3345
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
2693
3346
|
};
|
|
2694
|
-
|
|
3347
|
+
X.prototype.onCompile = function() {
|
|
2695
3348
|
};
|
|
2696
|
-
const
|
|
3349
|
+
const Lu = 2147483647, ou = 36, m0 = 1, ee = 26, Zc = 38, Vc = 700, Wt = 72, Zt = 128, Vt = "-", Yc = /^xn--/, Xc = /[^\0-\x7F]/, Jc = /[\x2E\u3002\uFF0E\uFF61]/g, Qc = {
|
|
2697
3350
|
overflow: "Overflow: input needs wider integers to process",
|
|
2698
3351
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2699
3352
|
"invalid-input": "Invalid input"
|
|
2700
|
-
},
|
|
2701
|
-
function
|
|
2702
|
-
throw new RangeError(
|
|
3353
|
+
}, Ke = ou - m0, cu = Math.floor, u0 = String.fromCharCode;
|
|
3354
|
+
function pu(u) {
|
|
3355
|
+
throw new RangeError(Qc[u]);
|
|
2703
3356
|
}
|
|
2704
|
-
function
|
|
3357
|
+
function Kc(u, e) {
|
|
2705
3358
|
const t = [];
|
|
2706
3359
|
let n = u.length;
|
|
2707
3360
|
for (; n--; )
|
|
2708
3361
|
t[n] = e(u[n]);
|
|
2709
3362
|
return t;
|
|
2710
3363
|
}
|
|
2711
|
-
function
|
|
3364
|
+
function Yt(u, e) {
|
|
2712
3365
|
const t = u.split("@");
|
|
2713
3366
|
let n = "";
|
|
2714
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
2715
|
-
const r = u.split("."),
|
|
2716
|
-
return n +
|
|
3367
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(Jc, ".");
|
|
3368
|
+
const r = u.split("."), o = Kc(r, e).join(".");
|
|
3369
|
+
return n + o;
|
|
2717
3370
|
}
|
|
2718
|
-
function
|
|
3371
|
+
function Xt(u) {
|
|
2719
3372
|
const e = [];
|
|
2720
3373
|
let t = 0;
|
|
2721
3374
|
const n = u.length;
|
|
2722
3375
|
for (; t < n; ) {
|
|
2723
3376
|
const r = u.charCodeAt(t++);
|
|
2724
3377
|
if (r >= 55296 && r <= 56319 && t < n) {
|
|
2725
|
-
const
|
|
2726
|
-
(
|
|
3378
|
+
const o = u.charCodeAt(t++);
|
|
3379
|
+
(o & 64512) == 56320 ? e.push(((r & 1023) << 10) + (o & 1023) + 65536) : (e.push(r), t--);
|
|
2727
3380
|
} else
|
|
2728
3381
|
e.push(r);
|
|
2729
3382
|
}
|
|
2730
3383
|
return e;
|
|
2731
3384
|
}
|
|
2732
|
-
const
|
|
2733
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
|
2734
|
-
},
|
|
3385
|
+
const ui = (u) => String.fromCodePoint(...u), ei = function(u) {
|
|
3386
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : ou;
|
|
3387
|
+
}, Et = function(u, e) {
|
|
2735
3388
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
2736
|
-
},
|
|
3389
|
+
}, Jt = function(u, e, t) {
|
|
2737
3390
|
let n = 0;
|
|
2738
|
-
for (u = t ?
|
|
2739
|
-
u =
|
|
2740
|
-
return
|
|
2741
|
-
},
|
|
3391
|
+
for (u = t ? cu(u / Vc) : u >> 1, u += cu(u / e); u > Ke * ee >> 1; n += ou)
|
|
3392
|
+
u = cu(u / Ke);
|
|
3393
|
+
return cu(n + (Ke + 1) * u / (u + Zc));
|
|
3394
|
+
}, Qt = function(u) {
|
|
2742
3395
|
const e = [], t = u.length;
|
|
2743
|
-
let n = 0, r =
|
|
2744
|
-
|
|
2745
|
-
for (let
|
|
2746
|
-
u.charCodeAt(
|
|
2747
|
-
for (let
|
|
3396
|
+
let n = 0, r = Zt, o = Wt, i = u.lastIndexOf(Vt);
|
|
3397
|
+
i < 0 && (i = 0);
|
|
3398
|
+
for (let c = 0; c < i; ++c)
|
|
3399
|
+
u.charCodeAt(c) >= 128 && pu("not-basic"), e.push(u.charCodeAt(c));
|
|
3400
|
+
for (let c = i > 0 ? i + 1 : 0; c < t; ) {
|
|
2748
3401
|
const a = n;
|
|
2749
|
-
for (let f = 1, d =
|
|
2750
|
-
|
|
2751
|
-
const
|
|
2752
|
-
|
|
2753
|
-
const
|
|
2754
|
-
if (
|
|
3402
|
+
for (let f = 1, d = ou; ; d += ou) {
|
|
3403
|
+
c >= t && pu("invalid-input");
|
|
3404
|
+
const _ = ei(u.charCodeAt(c++));
|
|
3405
|
+
_ >= ou && pu("invalid-input"), _ > cu((Lu - n) / f) && pu("overflow"), n += _ * f;
|
|
3406
|
+
const p = d <= o ? m0 : d >= o + ee ? ee : d - o;
|
|
3407
|
+
if (_ < p)
|
|
2755
3408
|
break;
|
|
2756
|
-
const
|
|
2757
|
-
f >
|
|
3409
|
+
const h = ou - p;
|
|
3410
|
+
f > cu(Lu / h) && pu("overflow"), f *= h;
|
|
2758
3411
|
}
|
|
2759
3412
|
const s = e.length + 1;
|
|
2760
|
-
|
|
3413
|
+
o = Jt(n - a, s, a == 0), cu(n / s) > Lu - r && pu("overflow"), r += cu(n / s), n %= s, e.splice(n++, 0, r);
|
|
2761
3414
|
}
|
|
2762
3415
|
return String.fromCodePoint(...e);
|
|
2763
|
-
},
|
|
3416
|
+
}, Kt = function(u) {
|
|
2764
3417
|
const e = [];
|
|
2765
|
-
u =
|
|
3418
|
+
u = Xt(u);
|
|
2766
3419
|
const t = u.length;
|
|
2767
|
-
let n =
|
|
3420
|
+
let n = Zt, r = 0, o = Wt;
|
|
2768
3421
|
for (const a of u)
|
|
2769
|
-
a < 128 && e.push(
|
|
2770
|
-
const
|
|
2771
|
-
let
|
|
2772
|
-
for (
|
|
2773
|
-
let a =
|
|
3422
|
+
a < 128 && e.push(u0(a));
|
|
3423
|
+
const i = e.length;
|
|
3424
|
+
let c = i;
|
|
3425
|
+
for (i && e.push(Vt); c < t; ) {
|
|
3426
|
+
let a = Lu;
|
|
2774
3427
|
for (const f of u)
|
|
2775
3428
|
f >= n && f < a && (a = f);
|
|
2776
|
-
const s =
|
|
2777
|
-
a - n >
|
|
3429
|
+
const s = c + 1;
|
|
3430
|
+
a - n > cu((Lu - r) / s) && pu("overflow"), r += (a - n) * s, n = a;
|
|
2778
3431
|
for (const f of u)
|
|
2779
|
-
if (f < n && ++r >
|
|
3432
|
+
if (f < n && ++r > Lu && pu("overflow"), f === n) {
|
|
2780
3433
|
let d = r;
|
|
2781
|
-
for (let
|
|
2782
|
-
const
|
|
2783
|
-
if (d <
|
|
3434
|
+
for (let _ = ou; ; _ += ou) {
|
|
3435
|
+
const p = _ <= o ? m0 : _ >= o + ee ? ee : _ - o;
|
|
3436
|
+
if (d < p)
|
|
2784
3437
|
break;
|
|
2785
|
-
const
|
|
3438
|
+
const h = d - p, C = ou - p;
|
|
2786
3439
|
e.push(
|
|
2787
|
-
|
|
2788
|
-
), d =
|
|
3440
|
+
u0(Et(p + h % C, 0))
|
|
3441
|
+
), d = cu(h / C);
|
|
2789
3442
|
}
|
|
2790
|
-
e.push(
|
|
3443
|
+
e.push(u0(Et(d, 0))), o = Jt(r, s, c === i), r = 0, ++c;
|
|
2791
3444
|
}
|
|
2792
3445
|
++r, ++n;
|
|
2793
3446
|
}
|
|
2794
3447
|
return e.join("");
|
|
2795
|
-
},
|
|
2796
|
-
return
|
|
2797
|
-
return
|
|
3448
|
+
}, ti = function(u) {
|
|
3449
|
+
return Yt(u, function(e) {
|
|
3450
|
+
return Yc.test(e) ? Qt(e.slice(4).toLowerCase()) : e;
|
|
2798
3451
|
});
|
|
2799
|
-
},
|
|
2800
|
-
return
|
|
2801
|
-
return
|
|
3452
|
+
}, ni = function(u) {
|
|
3453
|
+
return Yt(u, function(e) {
|
|
3454
|
+
return Xc.test(e) ? "xn--" + Kt(e) : e;
|
|
2802
3455
|
});
|
|
2803
|
-
},
|
|
3456
|
+
}, un = {
|
|
2804
3457
|
/**
|
|
2805
3458
|
* A string representing the current Punycode.js version number.
|
|
2806
3459
|
* @memberOf punycode
|
|
@@ -2815,14 +3468,14 @@ const gr = (u) => String.fromCodePoint(...u), Dr = function(u) {
|
|
|
2815
3468
|
* @type Object
|
|
2816
3469
|
*/
|
|
2817
3470
|
ucs2: {
|
|
2818
|
-
decode:
|
|
2819
|
-
encode:
|
|
3471
|
+
decode: Xt,
|
|
3472
|
+
encode: ui
|
|
2820
3473
|
},
|
|
2821
|
-
decode:
|
|
2822
|
-
encode:
|
|
2823
|
-
toASCII:
|
|
2824
|
-
toUnicode:
|
|
2825
|
-
},
|
|
3474
|
+
decode: Qt,
|
|
3475
|
+
encode: Kt,
|
|
3476
|
+
toASCII: ni,
|
|
3477
|
+
toUnicode: ti
|
|
3478
|
+
}, ri = {
|
|
2826
3479
|
options: {
|
|
2827
3480
|
// Enable HTML tags in source
|
|
2828
3481
|
html: !1,
|
|
@@ -2858,7 +3511,7 @@ const gr = (u) => String.fromCodePoint(...u), Dr = function(u) {
|
|
|
2858
3511
|
block: {},
|
|
2859
3512
|
inline: {}
|
|
2860
3513
|
}
|
|
2861
|
-
},
|
|
3514
|
+
}, oi = {
|
|
2862
3515
|
options: {
|
|
2863
3516
|
// Enable HTML tags in source
|
|
2864
3517
|
html: !1,
|
|
@@ -2913,7 +3566,7 @@ const gr = (u) => String.fromCodePoint(...u), Dr = function(u) {
|
|
|
2913
3566
|
]
|
|
2914
3567
|
}
|
|
2915
3568
|
}
|
|
2916
|
-
},
|
|
3569
|
+
}, ci = {
|
|
2917
3570
|
options: {
|
|
2918
3571
|
// Enable HTML tags in source
|
|
2919
3572
|
html: !0,
|
|
@@ -2987,47 +3640,47 @@ const gr = (u) => String.fromCodePoint(...u), Dr = function(u) {
|
|
|
2987
3640
|
]
|
|
2988
3641
|
}
|
|
2989
3642
|
}
|
|
2990
|
-
},
|
|
2991
|
-
default:
|
|
2992
|
-
zero:
|
|
2993
|
-
commonmark:
|
|
2994
|
-
},
|
|
2995
|
-
function
|
|
3643
|
+
}, ii = {
|
|
3644
|
+
default: ri,
|
|
3645
|
+
zero: oi,
|
|
3646
|
+
commonmark: ci
|
|
3647
|
+
}, ai = /^(vbscript|javascript|file|data):/, si = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3648
|
+
function li(u) {
|
|
2996
3649
|
const e = u.trim().toLowerCase();
|
|
2997
|
-
return
|
|
3650
|
+
return ai.test(e) ? si.test(e) : !0;
|
|
2998
3651
|
}
|
|
2999
|
-
const
|
|
3000
|
-
function
|
|
3001
|
-
const e =
|
|
3002
|
-
if (e.hostname && (!e.protocol ||
|
|
3652
|
+
const en = ["http:", "https:", "mailto:"];
|
|
3653
|
+
function fi(u) {
|
|
3654
|
+
const e = f0(u, !0);
|
|
3655
|
+
if (e.hostname && (!e.protocol || en.indexOf(e.protocol) >= 0))
|
|
3003
3656
|
try {
|
|
3004
|
-
e.hostname =
|
|
3657
|
+
e.hostname = un.toASCII(e.hostname);
|
|
3005
3658
|
} catch {
|
|
3006
3659
|
}
|
|
3007
|
-
return
|
|
3660
|
+
return oe(l0(e));
|
|
3008
3661
|
}
|
|
3009
|
-
function
|
|
3010
|
-
const e =
|
|
3011
|
-
if (e.hostname && (!e.protocol ||
|
|
3662
|
+
function di(u) {
|
|
3663
|
+
const e = f0(u, !0);
|
|
3664
|
+
if (e.hostname && (!e.protocol || en.indexOf(e.protocol) >= 0))
|
|
3012
3665
|
try {
|
|
3013
|
-
e.hostname =
|
|
3666
|
+
e.hostname = un.toUnicode(e.hostname);
|
|
3014
3667
|
} catch {
|
|
3015
3668
|
}
|
|
3016
|
-
return
|
|
3669
|
+
return Nu(l0(e), Nu.defaultChars + "%");
|
|
3017
3670
|
}
|
|
3018
|
-
function
|
|
3019
|
-
if (!(this instanceof
|
|
3020
|
-
return new
|
|
3021
|
-
e ||
|
|
3671
|
+
function Q(u, e) {
|
|
3672
|
+
if (!(this instanceof Q))
|
|
3673
|
+
return new Q(u, e);
|
|
3674
|
+
e || h0(u) || (e = u || {}, u = "default"), this.inline = new ie(), this.block = new we(), this.core = new b0(), this.renderer = new Pu(), this.linkify = new X(), this.validateLink = li, this.normalizeLink = fi, this.normalizeLinkText = di, this.utils = po, this.helpers = Te({}, xo), this.options = {}, this.configure(u), e && this.set(e);
|
|
3022
3675
|
}
|
|
3023
|
-
|
|
3024
|
-
return
|
|
3676
|
+
Q.prototype.set = function(u) {
|
|
3677
|
+
return Te(this.options, u), this;
|
|
3025
3678
|
};
|
|
3026
|
-
|
|
3679
|
+
Q.prototype.configure = function(u) {
|
|
3027
3680
|
const e = this;
|
|
3028
|
-
if (
|
|
3681
|
+
if (h0(u)) {
|
|
3029
3682
|
const t = u;
|
|
3030
|
-
if (u =
|
|
3683
|
+
if (u = ii[t], !u)
|
|
3031
3684
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3032
3685
|
}
|
|
3033
3686
|
if (!u)
|
|
@@ -3036,7 +3689,7 @@ B.prototype.configure = function(u) {
|
|
|
3036
3689
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3037
3690
|
}), this;
|
|
3038
3691
|
};
|
|
3039
|
-
|
|
3692
|
+
Q.prototype.enable = function(u, e) {
|
|
3040
3693
|
let t = [];
|
|
3041
3694
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3042
3695
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -3048,7 +3701,7 @@ B.prototype.enable = function(u, e) {
|
|
|
3048
3701
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3049
3702
|
return this;
|
|
3050
3703
|
};
|
|
3051
|
-
|
|
3704
|
+
Q.prototype.disable = function(u, e) {
|
|
3052
3705
|
let t = [];
|
|
3053
3706
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3054
3707
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -3060,153 +3713,245 @@ B.prototype.disable = function(u, e) {
|
|
|
3060
3713
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
3061
3714
|
return this;
|
|
3062
3715
|
};
|
|
3063
|
-
|
|
3716
|
+
Q.prototype.use = function(u) {
|
|
3064
3717
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3065
3718
|
return u.apply(u, e), this;
|
|
3066
3719
|
};
|
|
3067
|
-
|
|
3720
|
+
Q.prototype.parse = function(u, e) {
|
|
3068
3721
|
if (typeof u != "string")
|
|
3069
3722
|
throw new Error("Input data should be a String");
|
|
3070
3723
|
const t = new this.core.State(u, this, e);
|
|
3071
3724
|
return this.core.process(t), t.tokens;
|
|
3072
3725
|
};
|
|
3073
|
-
|
|
3726
|
+
Q.prototype.render = function(u, e) {
|
|
3074
3727
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
3075
3728
|
};
|
|
3076
|
-
|
|
3729
|
+
Q.prototype.parseInline = function(u, e) {
|
|
3077
3730
|
const t = new this.core.State(u, this, e);
|
|
3078
3731
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
3079
3732
|
};
|
|
3080
|
-
|
|
3733
|
+
Q.prototype.renderInline = function(u, e) {
|
|
3081
3734
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3082
3735
|
};
|
|
3083
|
-
|
|
3736
|
+
class Ri extends a0 {
|
|
3737
|
+
constructor(t = {}) {
|
|
3738
|
+
super();
|
|
3739
|
+
Ru(this, "mdConfig");
|
|
3740
|
+
Ru(this, "dompurifyConfig");
|
|
3741
|
+
Ru(this, "sanitizeDisabled");
|
|
3742
|
+
Ru(this, "defaultAttrs");
|
|
3743
|
+
Ru(this, "md");
|
|
3744
|
+
this.mdConfig = t.mdConfig || {}, this.dompurifyConfig = t.dompurifyConfig || {}, this.sanitizeDisabled = t.sanitizeDisabled ?? !1, this.defaultAttrs = t.defaultAttrs || {}, this.md = Q(this.mdConfig);
|
|
3745
|
+
}
|
|
3746
|
+
render(t) {
|
|
3747
|
+
const { content: n, ...r } = t;
|
|
3748
|
+
let o = "";
|
|
3749
|
+
try {
|
|
3750
|
+
o = this.md.render(n ?? "");
|
|
3751
|
+
} catch (c) {
|
|
3752
|
+
console.error("Error rendering markdown:", c), o = n ?? "";
|
|
3753
|
+
}
|
|
3754
|
+
if (this.sanitizeDisabled)
|
|
3755
|
+
return console.warn("HTML sanitization is disabled, potential XSS risk"), j0("div", { ...this.defaultAttrs, ...r, innerHTML: o });
|
|
3756
|
+
const i = Fr.sanitize(o, this.dompurifyConfig);
|
|
3757
|
+
return j0("div", { ...this.defaultAttrs, ...r, innerHTML: i });
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
const hi = {
|
|
3084
3761
|
key: 0,
|
|
3085
3762
|
class: "tr-bubble__avatar"
|
|
3086
|
-
},
|
|
3763
|
+
}, pi = { class: "tr-bubble__content-wrapper" }, bi = {
|
|
3764
|
+
key: 0,
|
|
3765
|
+
class: "tr-bubble__content-items"
|
|
3766
|
+
}, _i = {
|
|
3087
3767
|
key: 1,
|
|
3088
|
-
class:
|
|
3089
|
-
},
|
|
3768
|
+
class: "tr-bubble__body-text"
|
|
3769
|
+
}, mi = {
|
|
3090
3770
|
key: 2,
|
|
3091
|
-
class: "tr-
|
|
3092
|
-
},
|
|
3093
|
-
key:
|
|
3094
|
-
class: "tr-
|
|
3095
|
-
},
|
|
3771
|
+
class: "tr-bubble__aborted"
|
|
3772
|
+
}, xi = {
|
|
3773
|
+
key: 3,
|
|
3774
|
+
class: "tr-bubble__footer"
|
|
3775
|
+
}, gi = /* @__PURE__ */ Au({
|
|
3096
3776
|
__name: "Bubble",
|
|
3097
3777
|
props: {
|
|
3098
3778
|
content: { default: "" },
|
|
3099
3779
|
id: {},
|
|
3100
|
-
placement: { default: "start" },
|
|
3101
|
-
avatar: {},
|
|
3102
3780
|
role: {},
|
|
3103
|
-
type: { default: "text" },
|
|
3104
3781
|
loading: { type: Boolean },
|
|
3105
3782
|
aborted: { type: Boolean },
|
|
3106
|
-
|
|
3783
|
+
placement: { default: "start" },
|
|
3784
|
+
avatar: {},
|
|
3785
|
+
shape: { default: "corner" },
|
|
3786
|
+
contentRenderer: {},
|
|
3787
|
+
customContentField: {},
|
|
3107
3788
|
maxWidth: { default: "80%" }
|
|
3108
3789
|
},
|
|
3109
3790
|
setup(u) {
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3791
|
+
const e = u, t = gn(), n = uu(() => {
|
|
3792
|
+
const f = e.contentRenderer;
|
|
3793
|
+
return f ? typeof f == "function" ? { isComponent: !1, vNodeOrComponent: f(e) } : f instanceof a0 ? { isComponent: !1, vNodeOrComponent: f.render(e) } : { isComponent: !0, vNodeOrComponent: f } : null;
|
|
3794
|
+
}), r = kn(), o = uu(() => {
|
|
3795
|
+
if (!e.customContentField)
|
|
3796
|
+
return null;
|
|
3797
|
+
const f = r[e.customContentField];
|
|
3798
|
+
return typeof f == "string" || Array.isArray(f) && f.length > 0 ? f : null;
|
|
3799
|
+
}), i = uu(() => o.value || e.content), c = uu(() => Array.isArray(i.value) ? "" : i.value), a = uu(() => Array.isArray(i.value) ? i.value : []), s = uu(() => e.placement === "start");
|
|
3800
|
+
return (f, d) => (S(), $("div", {
|
|
3801
|
+
class: Mu([
|
|
3116
3802
|
"tr-bubble",
|
|
3117
3803
|
{
|
|
3118
|
-
"placement-start":
|
|
3119
|
-
"placement-end": !
|
|
3804
|
+
"placement-start": s.value,
|
|
3805
|
+
"placement-end": !s.value
|
|
3120
3806
|
}
|
|
3121
|
-
])
|
|
3807
|
+
]),
|
|
3808
|
+
style: En({ maxWidth: Ae(yn)(e.maxWidth) })
|
|
3122
3809
|
}, [
|
|
3123
|
-
e.avatar ? (S(),
|
|
3124
|
-
(S(),
|
|
3125
|
-
])) :
|
|
3126
|
-
Z("div",
|
|
3127
|
-
e.loading ?
|
|
3810
|
+
e.avatar ? (S(), $("div", hi, [
|
|
3811
|
+
(S(), eu(mu(e.avatar)))
|
|
3812
|
+
])) : Xu("", !0),
|
|
3813
|
+
Z("div", pi, [
|
|
3814
|
+
e.loading ? ge(f.$slots, "loading", {
|
|
3128
3815
|
key: 0,
|
|
3129
3816
|
bubbleProps: e
|
|
3130
3817
|
}, () => [
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
Z("
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3818
|
+
Z("div", {
|
|
3819
|
+
class: Mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
3820
|
+
}, d[0] || (d[0] = [
|
|
3821
|
+
Z("img", {
|
|
3822
|
+
src: Dn,
|
|
3823
|
+
alt: "loading",
|
|
3824
|
+
class: "tr-bubble__loading"
|
|
3825
|
+
}, null, -1)
|
|
3826
|
+
]), 2)
|
|
3827
|
+
], !0) : (S(), $("div", {
|
|
3828
|
+
key: 1,
|
|
3829
|
+
class: Mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
3830
|
+
}, [
|
|
3831
|
+
a.value.length ? (S(), $("div", bi, [
|
|
3832
|
+
(S(!0), $(e0, null, ke(a.value, (_, p) => (S(), eu(Ae(rr), {
|
|
3833
|
+
key: p,
|
|
3834
|
+
item: _
|
|
3835
|
+
}, null, 8, ["item"]))), 128))
|
|
3836
|
+
])) : ge(f.$slots, "default", {
|
|
3837
|
+
key: 1,
|
|
3838
|
+
bubbleProps: e
|
|
3839
|
+
}, () => [
|
|
3840
|
+
n.value ? (S(), $(e0, { key: 0 }, [
|
|
3841
|
+
n.value.isComponent ? (S(), eu(mu(n.value.vNodeOrComponent), Ce(Ju({ key: 0 }, e)), null, 16)) : (S(), eu(mu(n.value.vNodeOrComponent), { key: 1 }))
|
|
3842
|
+
], 64)) : (S(), $("span", _i, Ou(c.value), 1))
|
|
3843
|
+
], !0),
|
|
3844
|
+
e.aborted ? (S(), $("span", mi, "(用户停止)")) : Xu("", !0),
|
|
3845
|
+
t.footer ? (S(), $("div", xi, [
|
|
3846
|
+
ge(f.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
3847
|
+
])) : Xu("", !0)
|
|
3848
|
+
], 2))
|
|
3150
3849
|
])
|
|
3151
|
-
],
|
|
3850
|
+
], 6));
|
|
3152
3851
|
}
|
|
3153
|
-
}),
|
|
3852
|
+
}), Eu = /* @__PURE__ */ re(gi, [["__scopeId", "data-v-65a71444"]]), ki = /* @__PURE__ */ Au({
|
|
3154
3853
|
__name: "BubbleList",
|
|
3155
3854
|
props: {
|
|
3156
3855
|
items: {},
|
|
3157
3856
|
roles: {},
|
|
3857
|
+
loading: { type: Boolean },
|
|
3858
|
+
loadingRole: {},
|
|
3158
3859
|
autoScroll: { type: Boolean }
|
|
3159
3860
|
},
|
|
3160
3861
|
setup(u) {
|
|
3161
|
-
const e = u, t =
|
|
3862
|
+
const e = u, t = i0(null), { y: n } = Rn(t, {
|
|
3162
3863
|
behavior: "smooth",
|
|
3163
3864
|
throttle: 100
|
|
3164
|
-
}), r =
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3865
|
+
}), r = uu(() => e.items.at(-1));
|
|
3866
|
+
An(
|
|
3867
|
+
[() => e.items.length, () => {
|
|
3868
|
+
var c;
|
|
3869
|
+
return (c = r.value) == null ? void 0 : c.content;
|
|
3870
|
+
}],
|
|
3871
|
+
() => {
|
|
3872
|
+
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
3873
|
+
},
|
|
3874
|
+
{ deep: !0 }
|
|
3875
|
+
);
|
|
3876
|
+
const o = uu(() => e.items.map((c) => {
|
|
3877
|
+
var h;
|
|
3878
|
+
const a = c.role ? ((h = e.roles) == null ? void 0 : h[c.role]) || {} : {};
|
|
3879
|
+
if (a.hidden)
|
|
3880
|
+
return null;
|
|
3881
|
+
const { slots: s, hidden: f, ...d } = a, { slots: _, ...p } = c;
|
|
3882
|
+
return {
|
|
3883
|
+
id: c.id,
|
|
3884
|
+
props: { ...d, ...p },
|
|
3885
|
+
slots: { ...s, ..._ }
|
|
3886
|
+
};
|
|
3887
|
+
}).filter((c) => !!c)), i = uu(() => {
|
|
3176
3888
|
var s;
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3889
|
+
if (!(e.loading && e.loadingRole && ((s = e.roles) != null && s[e.loadingRole])))
|
|
3890
|
+
return null;
|
|
3891
|
+
const { slots: c, ...a } = e.roles[e.loadingRole];
|
|
3892
|
+
return { props: { ...a, loading: !0 }, slots: c };
|
|
3893
|
+
});
|
|
3894
|
+
return (c, a) => (S(), $("div", {
|
|
3180
3895
|
class: "tr-bubble-list",
|
|
3181
3896
|
ref_key: "scrollContainerRef",
|
|
3182
3897
|
ref: t
|
|
3183
3898
|
}, [
|
|
3184
|
-
(S(!0),
|
|
3899
|
+
(S(!0), $(e0, null, ke(o.value, (s, f) => (S(), eu(Eu, Ju({
|
|
3185
3900
|
key: s.id || f
|
|
3186
|
-
}, { ref_for: !0 },
|
|
3187
|
-
|
|
3188
|
-
name:
|
|
3189
|
-
fn:
|
|
3190
|
-
(S(),
|
|
3901
|
+
}, { ref_for: !0 }, s.props), G0({ _: 2 }, [
|
|
3902
|
+
ke(s.slots, (d, _) => ({
|
|
3903
|
+
name: _,
|
|
3904
|
+
fn: W0((p) => [
|
|
3905
|
+
(S(), eu(mu(d), Ju({ ref_for: !0 }, p), null, 16))
|
|
3906
|
+
])
|
|
3907
|
+
}))
|
|
3908
|
+
]), 1040))), 128)),
|
|
3909
|
+
i.value ? (S(), eu(Eu, Ce(Ju({ key: 0 }, i.value.props)), G0({ _: 2 }, [
|
|
3910
|
+
ke(i.value.slots, (s, f) => ({
|
|
3911
|
+
name: f,
|
|
3912
|
+
fn: W0((d) => [
|
|
3913
|
+
(S(), eu(mu(s), Ce(Cn(d)), null, 16))
|
|
3191
3914
|
])
|
|
3192
3915
|
}))
|
|
3193
|
-
]), 1040))
|
|
3916
|
+
]), 1040)) : Xu("", !0)
|
|
3194
3917
|
], 512));
|
|
3195
3918
|
}
|
|
3196
|
-
}),
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
}
|
|
3201
|
-
|
|
3202
|
-
const
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3919
|
+
}), te = /* @__PURE__ */ re(ki, [["__scopeId", "data-v-9d26d2da"]]), ne = /* @__PURE__ */ Au({
|
|
3920
|
+
__name: "BubbleProvider",
|
|
3921
|
+
props: {
|
|
3922
|
+
contentRenderers: { default: () => ({}) }
|
|
3923
|
+
},
|
|
3924
|
+
setup(u) {
|
|
3925
|
+
const e = u, t = /* @__PURE__ */ new Map();
|
|
3926
|
+
for (const [n, r] of Ct.entries())
|
|
3927
|
+
t.set(n, r);
|
|
3928
|
+
for (const [n, r] of Object.entries(e.contentRenderers))
|
|
3929
|
+
t.set(n, r);
|
|
3930
|
+
return Z0(Dt, t), Z0(yt, s0), (n, r) => ge(n.$slots, "default");
|
|
3931
|
+
}
|
|
3932
|
+
});
|
|
3933
|
+
Eu.name = "TrBubble";
|
|
3934
|
+
const Ei = function(u) {
|
|
3935
|
+
u.component(Eu.name, Eu);
|
|
3936
|
+
};
|
|
3937
|
+
Eu.install = Ei;
|
|
3938
|
+
const Ii = Eu;
|
|
3939
|
+
te.name = "TrBubbleList";
|
|
3940
|
+
const Ai = function(u) {
|
|
3941
|
+
u.component(te.name, te);
|
|
3942
|
+
};
|
|
3943
|
+
te.install = Ai;
|
|
3944
|
+
const Mi = te;
|
|
3945
|
+
ne.name = "TrBubbleProvider";
|
|
3946
|
+
const Ci = function(u) {
|
|
3947
|
+
u.component(ne.name, ne);
|
|
3948
|
+
};
|
|
3949
|
+
ne.install = Ci;
|
|
3950
|
+
const Li = ne;
|
|
3209
3951
|
export {
|
|
3210
|
-
|
|
3211
|
-
|
|
3952
|
+
Ii as Bubble,
|
|
3953
|
+
a0 as BubbleContentClassRenderer,
|
|
3954
|
+
Mi as BubbleList,
|
|
3955
|
+
Ri as BubbleMarkdownContentRenderer,
|
|
3956
|
+
Li as BubbleProvider
|
|
3212
3957
|
};
|