@opentiny/tiny-robot 0.3.0-alpha.8 → 0.3.0-alpha.9
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 +15 -15
- package/dist/base-popper/index.js +1 -1
- package/dist/bubble/index.js +1229 -1949
- package/dist/container/index.js +12 -12
- package/dist/dropdown-menu/index.js +38 -33
- package/dist/feedback/index.js +55 -55
- package/dist/flow-layout-buttons/index.js +24 -24
- package/dist/history/index.js +46 -46
- package/dist/index.d.ts +405 -975
- package/dist/index.js +63 -207
- package/dist/index2.js +593 -610
- package/dist/index3.js +139 -676
- package/dist/index4.js +306 -137
- package/dist/index5.js +591 -270
- package/dist/index6.js +599 -795
- package/dist/index7.js +1717 -3622
- package/dist/question/index.js +28 -28
- package/dist/sender/index.js +659 -709
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +22 -22
- package/dist/suggestion-pills/index.js +25 -25
- package/dist/suggestion-popover/index.js +185 -180
- package/dist/tiny-robot-svgs.js +178 -727
- package/dist/useSlotRefs.js +12 -12
- package/package.json +3 -9
- package/dist/attachments/index.js +0 -526
- package/dist/drag-overlay/index.js +0 -57
- package/dist/loading.js +0 -4
- package/dist/mcp-server-picker/index.js +0 -29682
package/dist/bubble/index.js
CHANGED
|
@@ -1,803 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { _ as re } from "../_plugin-vue_export-helper.js";
|
|
9
|
-
import { u as Sn } from "../index3.js";
|
|
10
|
-
class Et {
|
|
11
|
-
}
|
|
12
|
-
const wn = { class: "tr-bubble__step-text" }, vn = { class: "tr-bubble__step-text-title" }, Rn = { class: "tr-bubble__step-text-content-wrapper" }, Mn = /* @__PURE__ */ Eu({
|
|
13
|
-
__name: "collapsible-text",
|
|
14
|
-
props: {
|
|
15
|
-
title: {},
|
|
16
|
-
content: {}
|
|
17
|
-
},
|
|
18
|
-
setup(u) {
|
|
19
|
-
const e = u, t = a0(!1);
|
|
20
|
-
return (n, r) => (v(), Z("div", wn, [
|
|
21
|
-
$("div", vn, [
|
|
22
|
-
$("span", null, Iu(e.title), 1),
|
|
23
|
-
u0(pu(yn), {
|
|
24
|
-
class: Vu(["expand-icon", { "rotate-180": t.value }]),
|
|
25
|
-
onClick: r[0] || (r[0] = (c) => t.value = !t.value)
|
|
26
|
-
}, null, 8, ["class"])
|
|
27
|
-
]),
|
|
28
|
-
$("div", Rn, [
|
|
29
|
-
pn($("div", { class: "tr-bubble__step-text-content" }, Iu(e.content), 513), [
|
|
30
|
-
[bn, !t.value]
|
|
31
|
-
])
|
|
32
|
-
])
|
|
33
|
-
]));
|
|
34
|
-
}
|
|
35
|
-
}), In = /* @__PURE__ */ re(Mn, [["__scopeId", "data-v-08a61852"]]), Ln = In, On = { class: "tr-bubble__text" }, Nn = /* @__PURE__ */ Eu({
|
|
36
|
-
__name: "text",
|
|
37
|
-
props: {
|
|
38
|
-
content: {}
|
|
39
|
-
},
|
|
40
|
-
setup(u) {
|
|
41
|
-
const e = u;
|
|
42
|
-
return (t, n) => (v(), Z("span", On, Iu(e.content), 1));
|
|
43
|
-
}
|
|
44
|
-
}), Bn = /* @__PURE__ */ re(Nn, [["__scopeId", "data-v-48128fbb"]]), s0 = Bn, Pn = { class: "tr-bubble__step-tool" }, zn = { class: "tr-bubble__step-tool-header" }, qn = { class: "tr-bubble__step-tool-left" }, Un = { class: "tr-bubble__step-tool-title" }, Hn = { class: "tr-bubble__step-tool-name" }, $n = { class: "tr-bubble__step-tool-expand" }, jn = {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "tr-bubble__step-tool-params"
|
|
47
|
-
}, Gn = ["innerHTML"], Wn = /* @__PURE__ */ Eu({
|
|
48
|
-
__name: "tool",
|
|
49
|
-
props: {
|
|
50
|
-
name: {},
|
|
51
|
-
status: {},
|
|
52
|
-
params: {},
|
|
53
|
-
formatPretty: { type: Boolean }
|
|
54
|
-
},
|
|
55
|
-
setup(u) {
|
|
56
|
-
const e = u, t = a0(!1), n = Xu(() => e.status === "running" ? "正在调用" : e.status === "success" ? "已调用" : e.status === "failed" ? "调用失败" : "已取消"), r = _n(), c = (i) => {
|
|
57
|
-
if (!i)
|
|
58
|
-
return "";
|
|
59
|
-
let o = "";
|
|
60
|
-
const a = e.formatPretty ? 2 : 0;
|
|
61
|
-
try {
|
|
62
|
-
typeof i == "string" ? o = JSON.stringify(JSON.parse(i), null, a) : o = JSON.stringify(i, null, a);
|
|
63
|
-
} catch (s) {
|
|
64
|
-
console.warn(s);
|
|
65
|
-
}
|
|
66
|
-
return o = o.replace(
|
|
67
|
-
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,
|
|
68
|
-
(s) => {
|
|
69
|
-
let f = "number";
|
|
70
|
-
return /^"/.test(s) ? f = /:$/.test(s) ? "key" : "string" : /true|false/.test(s) ? f = "boolean" : /null/.test(s) && (f = "null"), `<span class="${r[f]}">${s}</span>`;
|
|
71
|
-
}
|
|
72
|
-
), o;
|
|
73
|
-
};
|
|
74
|
-
return (i, o) => (v(), Z("div", Pn, [
|
|
75
|
-
$("div", zn, [
|
|
76
|
-
$("div", qn, [
|
|
77
|
-
u0(pu(Fn), { class: "tr-bubble__step-tool-icon" }),
|
|
78
|
-
$("span", Un, [
|
|
79
|
-
mn(Iu(n.value) + " ", 1),
|
|
80
|
-
$("span", Hn, Iu(e.name), 1)
|
|
81
|
-
])
|
|
82
|
-
]),
|
|
83
|
-
$("div", $n, [
|
|
84
|
-
u0(pu(Tn), {
|
|
85
|
-
class: Vu(["expand-icon", { "-rotate-90": t.value }]),
|
|
86
|
-
onClick: o[0] || (o[0] = (a) => t.value = !t.value)
|
|
87
|
-
}, null, 8, ["class"])
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
t.value ? Ru("", !0) : (v(), Z("div", jn, [
|
|
91
|
-
o[1] || (o[1] = $("hr", { class: "tr-bubble__step-tool-hr" }, null, -1)),
|
|
92
|
-
$("div", {
|
|
93
|
-
class: "tr-bubble__step-tool-params-content",
|
|
94
|
-
innerHTML: c(e.params)
|
|
95
|
-
}, null, 8, Gn)
|
|
96
|
-
]))
|
|
97
|
-
]));
|
|
98
|
-
}
|
|
99
|
-
}), Zn = "_number_jtifp_2", Vn = "_key_jtifp_6", Yn = "_string_jtifp_10", Xn = "_boolean_jtifp_14", Jn = {
|
|
100
|
-
number: Zn,
|
|
101
|
-
key: Vn,
|
|
102
|
-
string: Yn,
|
|
103
|
-
boolean: Xn,
|
|
104
|
-
null: "_null_jtifp_18"
|
|
105
|
-
}, Qn = {
|
|
106
|
-
$style: Jn
|
|
107
|
-
}, Kn = /* @__PURE__ */ re(Wn, [["__cssModules", Qn], ["__scopeId", "data-v-95e13117"]]), ur = Kn, At = /* @__PURE__ */ new Map([
|
|
108
|
-
["text", s0],
|
|
109
|
-
["tool", ur],
|
|
110
|
-
["collapsible-text", Ln]
|
|
111
|
-
]), Ct = Symbol("bubbleMessageRendererMap"), Dt = Symbol("bubbleMessageFallbackRenderer"), er = /* @__PURE__ */ Eu({
|
|
112
|
-
inheritAttrs: !1,
|
|
113
|
-
__name: "Message",
|
|
114
|
-
props: {
|
|
115
|
-
type: {}
|
|
116
|
-
},
|
|
117
|
-
setup(u) {
|
|
118
|
-
const e = $0(Ct, At), t = $0(Dt, s0), n = u, r = xn(), c = (a) => {
|
|
119
|
-
const s = { ...r, ...n }, f = e.get(a) || t;
|
|
120
|
-
return typeof f == "function" ? { isComponent: !1, vNodeOrComponent: f(s) } : f instanceof Et ? { isComponent: !1, vNodeOrComponent: f.render(s) } : { isComponent: !0, vNodeOrComponent: f };
|
|
121
|
-
}, { isComponent: i, vNodeOrComponent: o } = c(n.type);
|
|
122
|
-
return (a, s) => pu(i) ? (v(), bu(Ju(pu(o)), e0(Yu({ key: 0 }, { ...n, ...pu(r) })), null, 16)) : (v(), bu(Ju(pu(o)), { key: 1 }));
|
|
123
|
-
}
|
|
124
|
-
}), tr = {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: "tr-bubble__avatar"
|
|
127
|
-
}, nr = { class: "tr-bubble__content-wrapper" }, rr = {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: "tr-bubble__content-messages"
|
|
130
|
-
}, cr = { class: "tr-bubble__body-text" }, or = {
|
|
131
|
-
key: 2,
|
|
132
|
-
class: "tr-bubble__aborted"
|
|
133
|
-
}, ir = {
|
|
134
|
-
key: 3,
|
|
135
|
-
class: "tr-bubble__footer"
|
|
136
|
-
}, ar = /* @__PURE__ */ Eu({
|
|
137
|
-
__name: "Bubble",
|
|
138
|
-
props: {
|
|
139
|
-
content: { default: "" },
|
|
140
|
-
messages: {},
|
|
141
|
-
id: {},
|
|
142
|
-
role: {},
|
|
143
|
-
loading: { type: Boolean },
|
|
144
|
-
aborted: { type: Boolean },
|
|
145
|
-
placement: { default: "start" },
|
|
146
|
-
avatar: {},
|
|
147
|
-
shape: { default: "corner" },
|
|
148
|
-
hidden: { type: Boolean },
|
|
149
|
-
maxWidth: { default: "80%" }
|
|
150
|
-
},
|
|
151
|
-
setup(u) {
|
|
152
|
-
gn((c) => ({
|
|
153
|
-
"2dad71ca": pu(Dn)(e.maxWidth)
|
|
154
|
-
}));
|
|
155
|
-
const e = u, t = kn(), n = Xu(() => e.content), r = Xu(() => e.placement === "start");
|
|
156
|
-
return (c, i) => {
|
|
157
|
-
var o;
|
|
158
|
-
return v(), Z("div", {
|
|
159
|
-
class: Vu([
|
|
160
|
-
"tr-bubble",
|
|
161
|
-
{
|
|
162
|
-
"placement-start": r.value,
|
|
163
|
-
"placement-end": !r.value
|
|
164
|
-
}
|
|
165
|
-
])
|
|
166
|
-
}, [
|
|
167
|
-
e.avatar ? (v(), Z("div", tr, [
|
|
168
|
-
(v(), bu(Ju(e.avatar)))
|
|
169
|
-
])) : Ru("", !0),
|
|
170
|
-
$("div", nr, [
|
|
171
|
-
e.loading ? ke(c.$slots, "loading", {
|
|
172
|
-
key: 0,
|
|
173
|
-
bubbleProps: e
|
|
174
|
-
}, () => [
|
|
175
|
-
$("div", {
|
|
176
|
-
class: Vu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
177
|
-
}, i[0] || (i[0] = [
|
|
178
|
-
$("img", {
|
|
179
|
-
src: Cn,
|
|
180
|
-
alt: "loading",
|
|
181
|
-
class: "tr-bubble__loading"
|
|
182
|
-
}, null, -1)
|
|
183
|
-
]), 2)
|
|
184
|
-
], !0) : (v(), Z("div", {
|
|
185
|
-
key: 1,
|
|
186
|
-
class: Vu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
187
|
-
}, [
|
|
188
|
-
(o = e.messages) != null && o.length ? (v(), Z("div", rr, [
|
|
189
|
-
(v(!0), Z(t0, null, Ee(e.messages, (a, s) => (v(), bu(er, Yu({ key: s }, { ref_for: !0 }, a), null, 16))), 128))
|
|
190
|
-
])) : ke(c.$slots, "default", {
|
|
191
|
-
key: 1,
|
|
192
|
-
bubbleProps: e
|
|
193
|
-
}, () => [
|
|
194
|
-
$("span", cr, Iu(n.value), 1)
|
|
195
|
-
], !0),
|
|
196
|
-
e.aborted ? (v(), Z("span", or, "(用户停止)")) : Ru("", !0),
|
|
197
|
-
t.footer ? (v(), Z("div", ir, [
|
|
198
|
-
ke(c.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
199
|
-
])) : Ru("", !0)
|
|
200
|
-
], 2))
|
|
201
|
-
])
|
|
202
|
-
], 2);
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
}), ku = /* @__PURE__ */ re(ar, [["__scopeId", "data-v-79376827"]]), sr = /* @__PURE__ */ Eu({
|
|
206
|
-
__name: "BubbleList",
|
|
207
|
-
props: {
|
|
208
|
-
items: {},
|
|
209
|
-
roles: {},
|
|
210
|
-
loading: { type: Boolean },
|
|
211
|
-
loadingRole: {},
|
|
212
|
-
autoScroll: { type: Boolean }
|
|
213
|
-
},
|
|
214
|
-
setup(u) {
|
|
215
|
-
const e = u, t = a0(null), { y: n } = Sn(t, {
|
|
216
|
-
behavior: "smooth",
|
|
217
|
-
throttle: 100
|
|
218
|
-
}), r = Xu(() => e.items.at(-1));
|
|
219
|
-
En([() => e.items.length, () => {
|
|
220
|
-
var a;
|
|
221
|
-
return (a = r.value) == null ? void 0 : a.content;
|
|
222
|
-
}], () => {
|
|
223
|
-
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
224
|
-
});
|
|
225
|
-
const c = (a) => {
|
|
226
|
-
var d;
|
|
227
|
-
const s = a.role ? ((d = e.roles) == null ? void 0 : d[a.role]) || {} : {}, { slots: f, ...h } = s, { slots: _, ...p } = a;
|
|
228
|
-
return { ...h, ...p };
|
|
229
|
-
}, i = (a) => {
|
|
230
|
-
var f;
|
|
231
|
-
return { ...(a.role ? ((f = e.roles) == null ? void 0 : f[a.role]) || {} : {}).slots, ...a.slots };
|
|
232
|
-
}, o = Xu(() => {
|
|
233
|
-
var f;
|
|
234
|
-
if (!(e.loading && e.loadingRole && ((f = e.roles) != null && f[e.loadingRole])))
|
|
235
|
-
return null;
|
|
236
|
-
const { slots: a, ...s } = e.roles[e.loadingRole];
|
|
237
|
-
return { props: { ...s, loading: !0 }, slots: a };
|
|
238
|
-
});
|
|
239
|
-
return (a, s) => (v(), Z("div", {
|
|
240
|
-
class: "tr-bubble-list",
|
|
241
|
-
ref_key: "scrollContainerRef",
|
|
242
|
-
ref: t
|
|
243
|
-
}, [
|
|
244
|
-
(v(!0), Z(t0, null, Ee(e.items, (f, h) => (v(), Z(t0, {
|
|
245
|
-
key: f.id || h
|
|
246
|
-
}, [
|
|
247
|
-
f.hidden ? Ru("", !0) : (v(), bu(ku, Yu({
|
|
248
|
-
key: 0,
|
|
249
|
-
ref_for: !0
|
|
250
|
-
}, c(f)), j0({ _: 2 }, [
|
|
251
|
-
Ee(i(f), (_, p) => ({
|
|
252
|
-
name: p,
|
|
253
|
-
fn: G0((d) => [
|
|
254
|
-
(v(), bu(Ju(_), Yu({ ref_for: !0 }, d), null, 16))
|
|
255
|
-
])
|
|
256
|
-
}))
|
|
257
|
-
]), 1040))
|
|
258
|
-
], 64))), 128)),
|
|
259
|
-
o.value ? (v(), bu(ku, e0(Yu({ key: 0 }, o.value.props)), j0({ _: 2 }, [
|
|
260
|
-
Ee(o.value.slots, (f, h) => ({
|
|
261
|
-
name: h,
|
|
262
|
-
fn: G0((_) => [
|
|
263
|
-
(v(), bu(Ju(f), e0(An(_)), null, 16))
|
|
264
|
-
])
|
|
265
|
-
}))
|
|
266
|
-
]), 1040)) : Ru("", !0)
|
|
267
|
-
], 512));
|
|
268
|
-
}
|
|
269
|
-
}), Qu = /* @__PURE__ */ re(sr, [["__scopeId", "data-v-24c3a7d6"]]);
|
|
270
|
-
/*! @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 */
|
|
271
|
-
const {
|
|
272
|
-
entries: yt,
|
|
273
|
-
setPrototypeOf: V0,
|
|
274
|
-
isFrozen: lr,
|
|
275
|
-
getPrototypeOf: fr,
|
|
276
|
-
getOwnPropertyDescriptor: dr
|
|
277
|
-
} = Object;
|
|
278
|
-
let {
|
|
279
|
-
freeze: j,
|
|
280
|
-
seal: J,
|
|
281
|
-
create: Ft
|
|
282
|
-
} = Object, {
|
|
283
|
-
apply: n0,
|
|
284
|
-
construct: r0
|
|
285
|
-
} = typeof Reflect < "u" && Reflect;
|
|
286
|
-
j || (j = function(e) {
|
|
287
|
-
return e;
|
|
288
|
-
});
|
|
289
|
-
J || (J = function(e) {
|
|
290
|
-
return e;
|
|
291
|
-
});
|
|
292
|
-
n0 || (n0 = function(e, t, n) {
|
|
293
|
-
return e.apply(t, n);
|
|
294
|
-
});
|
|
295
|
-
r0 || (r0 = function(e, t) {
|
|
296
|
-
return new e(...t);
|
|
297
|
-
});
|
|
298
|
-
const _e = G(Array.prototype.forEach), hr = G(Array.prototype.lastIndexOf), Y0 = G(Array.prototype.pop), $u = G(Array.prototype.push), pr = G(Array.prototype.splice), Ae = G(String.prototype.toLowerCase), He = G(String.prototype.toString), X0 = G(String.prototype.match), ju = G(String.prototype.replace), br = G(String.prototype.indexOf), _r = G(String.prototype.trim), K = G(Object.prototype.hasOwnProperty), H = G(RegExp.prototype.test), Gu = mr(TypeError);
|
|
299
|
-
function G(u) {
|
|
300
|
-
return function(e) {
|
|
301
|
-
e instanceof RegExp && (e.lastIndex = 0);
|
|
302
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
303
|
-
n[r - 1] = arguments[r];
|
|
304
|
-
return n0(u, e, n);
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
function mr(u) {
|
|
308
|
-
return function() {
|
|
309
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
310
|
-
t[n] = arguments[n];
|
|
311
|
-
return r0(u, t);
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
function F(u, e) {
|
|
315
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ae;
|
|
316
|
-
V0 && V0(u, null);
|
|
317
|
-
let n = e.length;
|
|
318
|
-
for (; n--; ) {
|
|
319
|
-
let r = e[n];
|
|
320
|
-
if (typeof r == "string") {
|
|
321
|
-
const c = t(r);
|
|
322
|
-
c !== r && (lr(e) || (e[n] = c), r = c);
|
|
323
|
-
}
|
|
324
|
-
u[r] = !0;
|
|
325
|
-
}
|
|
326
|
-
return u;
|
|
327
|
-
}
|
|
328
|
-
function xr(u) {
|
|
329
|
-
for (let e = 0; e < u.length; e++)
|
|
330
|
-
K(u, e) || (u[e] = null);
|
|
331
|
-
return u;
|
|
332
|
-
}
|
|
333
|
-
function lu(u) {
|
|
334
|
-
const e = Ft(null);
|
|
335
|
-
for (const [t, n] of yt(u))
|
|
336
|
-
K(u, t) && (Array.isArray(n) ? e[t] = xr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = lu(n) : e[t] = n);
|
|
337
|
-
return e;
|
|
338
|
-
}
|
|
339
|
-
function Wu(u, e) {
|
|
340
|
-
for (; u !== null; ) {
|
|
341
|
-
const n = dr(u, e);
|
|
342
|
-
if (n) {
|
|
343
|
-
if (n.get)
|
|
344
|
-
return G(n.get);
|
|
345
|
-
if (typeof n.value == "function")
|
|
346
|
-
return G(n.value);
|
|
347
|
-
}
|
|
348
|
-
u = fr(u);
|
|
349
|
-
}
|
|
350
|
-
function t() {
|
|
351
|
-
return null;
|
|
352
|
-
}
|
|
353
|
-
return t;
|
|
354
|
-
}
|
|
355
|
-
const J0 = 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"]), $e = 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"]), je = 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"]), gr = 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"]), Ge = 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"]), kr = j(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Q0 = j(["#text"]), K0 = 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"]), We = 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"]), ut = 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"]), me = j(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Er = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ar = J(/<%[\w\W]*|[\w\W]*%>/gm), Cr = J(/\$\{[\w\W]*/gm), Dr = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), yr = J(/^aria-[\-\w]+$/), Tt = J(
|
|
356
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
357
|
-
// eslint-disable-line no-useless-escape
|
|
358
|
-
), Fr = J(/^(?:\w+script|data):/i), Tr = J(
|
|
359
|
-
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
360
|
-
// eslint-disable-line no-control-regex
|
|
361
|
-
), St = J(/^html$/i), Sr = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
362
|
-
var et = /* @__PURE__ */ Object.freeze({
|
|
363
|
-
__proto__: null,
|
|
364
|
-
ARIA_ATTR: yr,
|
|
365
|
-
ATTR_WHITESPACE: Tr,
|
|
366
|
-
CUSTOM_ELEMENT: Sr,
|
|
367
|
-
DATA_ATTR: Dr,
|
|
368
|
-
DOCTYPE_NAME: St,
|
|
369
|
-
ERB_EXPR: Ar,
|
|
370
|
-
IS_ALLOWED_URI: Tt,
|
|
371
|
-
IS_SCRIPT_OR_DATA: Fr,
|
|
372
|
-
MUSTACHE_EXPR: Er,
|
|
373
|
-
TMPLIT_EXPR: Cr
|
|
374
|
-
});
|
|
375
|
-
const Zu = {
|
|
376
|
-
element: 1,
|
|
377
|
-
text: 3,
|
|
378
|
-
// Deprecated
|
|
379
|
-
progressingInstruction: 7,
|
|
380
|
-
comment: 8,
|
|
381
|
-
document: 9
|
|
382
|
-
}, wr = function() {
|
|
383
|
-
return typeof window > "u" ? null : window;
|
|
384
|
-
}, vr = function(e, t) {
|
|
385
|
-
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
386
|
-
return null;
|
|
387
|
-
let n = null;
|
|
388
|
-
const r = "data-tt-policy-suffix";
|
|
389
|
-
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
390
|
-
const c = "dompurify" + (n ? "#" + n : "");
|
|
391
|
-
try {
|
|
392
|
-
return e.createPolicy(c, {
|
|
393
|
-
createHTML(i) {
|
|
394
|
-
return i;
|
|
395
|
-
},
|
|
396
|
-
createScriptURL(i) {
|
|
397
|
-
return i;
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
} catch {
|
|
401
|
-
return console.warn("TrustedTypes policy " + c + " could not be created."), null;
|
|
402
|
-
}
|
|
403
|
-
}, tt = function() {
|
|
404
|
-
return {
|
|
405
|
-
afterSanitizeAttributes: [],
|
|
406
|
-
afterSanitizeElements: [],
|
|
407
|
-
afterSanitizeShadowDOM: [],
|
|
408
|
-
beforeSanitizeAttributes: [],
|
|
409
|
-
beforeSanitizeElements: [],
|
|
410
|
-
beforeSanitizeShadowDOM: [],
|
|
411
|
-
uponSanitizeAttribute: [],
|
|
412
|
-
uponSanitizeElement: [],
|
|
413
|
-
uponSanitizeShadowNode: []
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
function wt() {
|
|
417
|
-
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : wr();
|
|
418
|
-
const e = (g) => wt(g);
|
|
419
|
-
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !== Zu.document || !u.Element)
|
|
420
|
-
return e.isSupported = !1, e;
|
|
421
|
-
let {
|
|
422
|
-
document: t
|
|
423
|
-
} = u;
|
|
424
|
-
const n = t, r = n.currentScript, {
|
|
425
|
-
DocumentFragment: c,
|
|
426
|
-
HTMLTemplateElement: i,
|
|
427
|
-
Node: o,
|
|
428
|
-
Element: a,
|
|
429
|
-
NodeFilter: s,
|
|
430
|
-
NamedNodeMap: f = u.NamedNodeMap || u.MozNamedAttrMap,
|
|
431
|
-
HTMLFormElement: h,
|
|
432
|
-
DOMParser: _,
|
|
433
|
-
trustedTypes: p
|
|
434
|
-
} = u, d = a.prototype, C = Wu(d, "cloneNode"), D = Wu(d, "remove"), T = Wu(d, "nextSibling"), E = Wu(d, "childNodes"), k = Wu(d, "parentNode");
|
|
435
|
-
if (typeof i == "function") {
|
|
436
|
-
const g = t.createElement("template");
|
|
437
|
-
g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
|
|
438
|
-
}
|
|
439
|
-
let m, A = "";
|
|
440
|
-
const {
|
|
441
|
-
implementation: y,
|
|
442
|
-
createNodeIterator: M,
|
|
443
|
-
createDocumentFragment: Y,
|
|
444
|
-
getElementsByTagName: eu
|
|
445
|
-
} = t, {
|
|
446
|
-
importNode: xu
|
|
447
|
-
} = n;
|
|
448
|
-
let I = tt();
|
|
449
|
-
e.isSupported = typeof yt == "function" && typeof k == "function" && y && y.createHTMLDocument !== void 0;
|
|
450
|
-
const {
|
|
451
|
-
MUSTACHE_EXPR: Bu,
|
|
452
|
-
ERB_EXPR: Pu,
|
|
453
|
-
TMPLIT_EXPR: Au,
|
|
454
|
-
DATA_ATTR: fu,
|
|
455
|
-
ARIA_ATTR: ve,
|
|
456
|
-
IS_SCRIPT_OR_DATA: en,
|
|
457
|
-
ATTR_WHITESPACE: x0,
|
|
458
|
-
CUSTOM_ELEMENT: tn
|
|
459
|
-
} = et;
|
|
460
|
-
let {
|
|
461
|
-
IS_ALLOWED_URI: g0
|
|
462
|
-
} = et, O = null;
|
|
463
|
-
const k0 = F({}, [...J0, ...$e, ...je, ...Ge, ...Q0]);
|
|
464
|
-
let z = null;
|
|
465
|
-
const E0 = F({}, [...K0, ...We, ...ut, ...me]);
|
|
466
|
-
let R = Object.seal(Ft(null, {
|
|
467
|
-
tagNameCheck: {
|
|
468
|
-
writable: !0,
|
|
469
|
-
configurable: !1,
|
|
470
|
-
enumerable: !0,
|
|
471
|
-
value: null
|
|
472
|
-
},
|
|
473
|
-
attributeNameCheck: {
|
|
474
|
-
writable: !0,
|
|
475
|
-
configurable: !1,
|
|
476
|
-
enumerable: !0,
|
|
477
|
-
value: null
|
|
478
|
-
},
|
|
479
|
-
allowCustomizedBuiltInElements: {
|
|
480
|
-
writable: !0,
|
|
481
|
-
configurable: !1,
|
|
482
|
-
enumerable: !0,
|
|
483
|
-
value: !1
|
|
484
|
-
}
|
|
485
|
-
})), zu = null, Re = null, A0 = !0, Me = !0, C0 = !1, D0 = !0, Cu = !1, ae = !0, gu = !1, Ie = !1, Le = !1, Du = !1, se = !1, le = !1, y0 = !0, F0 = !1;
|
|
486
|
-
const nn = "user-content-";
|
|
487
|
-
let Oe = !0, qu = !1, yu = {}, Fu = null;
|
|
488
|
-
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"]);
|
|
489
|
-
let S0 = null;
|
|
490
|
-
const w0 = F({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
491
|
-
let Ne = null;
|
|
492
|
-
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", iu = "http://www.w3.org/1999/xhtml";
|
|
493
|
-
let Tu = iu, Be = !1, Pe = null;
|
|
494
|
-
const rn = F({}, [fe, de, iu], He);
|
|
495
|
-
let he = F({}, ["mi", "mo", "mn", "ms", "mtext"]), pe = F({}, ["annotation-xml"]);
|
|
496
|
-
const cn = F({}, ["title", "style", "font", "a", "script"]);
|
|
497
|
-
let Uu = null;
|
|
498
|
-
const on = ["application/xhtml+xml", "text/html"], an = "text/html";
|
|
499
|
-
let N = null, Su = null;
|
|
500
|
-
const sn = t.createElement("form"), R0 = function(l) {
|
|
501
|
-
return l instanceof RegExp || l instanceof Function;
|
|
502
|
-
}, ze = function() {
|
|
503
|
-
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
504
|
-
if (!(Su && Su === l)) {
|
|
505
|
-
if ((!l || typeof l != "object") && (l = {}), l = lu(l), Uu = // eslint-disable-next-line unicorn/prefer-includes
|
|
506
|
-
on.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? an : l.PARSER_MEDIA_TYPE, N = Uu === "application/xhtml+xml" ? He : Ae, O = K(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, N) : k0, z = K(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, N) : E0, Pe = K(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, He) : rn, Ne = K(l, "ADD_URI_SAFE_ATTR") ? F(lu(v0), l.ADD_URI_SAFE_ATTR, N) : v0, S0 = K(l, "ADD_DATA_URI_TAGS") ? F(lu(w0), l.ADD_DATA_URI_TAGS, N) : w0, Fu = K(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, N) : T0, zu = K(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, N) : lu({}), Re = K(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, N) : lu({}), yu = 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, Cu = l.SAFE_FOR_TEMPLATES || !1, ae = l.SAFE_FOR_XML !== !1, gu = l.WHOLE_DOCUMENT || !1, Du = l.RETURN_DOM || !1, se = l.RETURN_DOM_FRAGMENT || !1, le = l.RETURN_TRUSTED_TYPE || !1, Le = l.FORCE_BODY || !1, y0 = l.SANITIZE_DOM !== !1, F0 = l.SANITIZE_NAMED_PROPS || !1, Oe = l.KEEP_CONTENT !== !1, qu = l.IN_PLACE || !1, g0 = l.ALLOWED_URI_REGEXP || Tt, Tu = l.NAMESPACE || iu, 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), Cu && (Me = !1), se && (Du = !0), yu && (O = F({}, Q0), z = [], yu.html === !0 && (F(O, J0), F(z, K0)), yu.svg === !0 && (F(O, $e), F(z, We), F(z, me)), yu.svgFilters === !0 && (F(O, je), F(z, We), F(z, me)), yu.mathMl === !0 && (F(O, Ge), F(z, ut), F(z, me))), l.ADD_TAGS && (O === k0 && (O = lu(O)), F(O, l.ADD_TAGS, N)), l.ADD_ATTR && (z === E0 && (z = lu(z)), F(z, l.ADD_ATTR, N)), l.ADD_URI_SAFE_ATTR && F(Ne, l.ADD_URI_SAFE_ATTR, N), l.FORBID_CONTENTS && (Fu === T0 && (Fu = lu(Fu)), F(Fu, l.FORBID_CONTENTS, N)), Oe && (O["#text"] = !0), gu && F(O, ["html", "head", "body"]), O.table && (F(O, ["tbody"]), delete zu.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
507
|
-
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
508
|
-
throw Gu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
509
|
-
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
510
|
-
throw Gu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
511
|
-
m = l.TRUSTED_TYPES_POLICY, A = m.createHTML("");
|
|
512
|
-
} else
|
|
513
|
-
m === void 0 && (m = vr(p, r)), m !== null && typeof A == "string" && (A = m.createHTML(""));
|
|
514
|
-
j && j(l), Su = l;
|
|
515
|
-
}
|
|
516
|
-
}, M0 = F({}, [...$e, ...je, ...gr]), I0 = F({}, [...Ge, ...kr]), ln = function(l) {
|
|
517
|
-
let b = k(l);
|
|
518
|
-
(!b || !b.tagName) && (b = {
|
|
519
|
-
namespaceURI: Tu,
|
|
520
|
-
tagName: "template"
|
|
521
|
-
});
|
|
522
|
-
const x = Ae(l.tagName), w = Ae(b.tagName);
|
|
523
|
-
return Pe[l.namespaceURI] ? l.namespaceURI === de ? b.namespaceURI === iu ? x === "svg" : b.namespaceURI === fe ? x === "svg" && (w === "annotation-xml" || he[w]) : !!M0[x] : l.namespaceURI === fe ? b.namespaceURI === iu ? x === "math" : b.namespaceURI === de ? x === "math" && pe[w] : !!I0[x] : l.namespaceURI === iu ? b.namespaceURI === de && !pe[w] || b.namespaceURI === fe && !he[w] ? !1 : !I0[x] && (cn[x] || !M0[x]) : !!(Uu === "application/xhtml+xml" && Pe[l.namespaceURI]) : !1;
|
|
524
|
-
}, tu = function(l) {
|
|
525
|
-
$u(e.removed, {
|
|
526
|
-
element: l
|
|
527
|
-
});
|
|
528
|
-
try {
|
|
529
|
-
k(l).removeChild(l);
|
|
530
|
-
} catch {
|
|
531
|
-
D(l);
|
|
532
|
-
}
|
|
533
|
-
}, wu = function(l, b) {
|
|
534
|
-
try {
|
|
535
|
-
$u(e.removed, {
|
|
536
|
-
attribute: b.getAttributeNode(l),
|
|
537
|
-
from: b
|
|
538
|
-
});
|
|
539
|
-
} catch {
|
|
540
|
-
$u(e.removed, {
|
|
541
|
-
attribute: null,
|
|
542
|
-
from: b
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
if (b.removeAttribute(l), l === "is")
|
|
546
|
-
if (Du || se)
|
|
547
|
-
try {
|
|
548
|
-
tu(b);
|
|
549
|
-
} catch {
|
|
550
|
-
}
|
|
551
|
-
else
|
|
552
|
-
try {
|
|
553
|
-
b.setAttribute(l, "");
|
|
554
|
-
} catch {
|
|
555
|
-
}
|
|
556
|
-
}, L0 = function(l) {
|
|
557
|
-
let b = null, x = null;
|
|
558
|
-
if (Le)
|
|
559
|
-
l = "<remove></remove>" + l;
|
|
560
|
-
else {
|
|
561
|
-
const L = X0(l, /^[\r\n\t ]+/);
|
|
562
|
-
x = L && L[0];
|
|
563
|
-
}
|
|
564
|
-
Uu === "application/xhtml+xml" && Tu === iu && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
565
|
-
const w = m ? m.createHTML(l) : l;
|
|
566
|
-
if (Tu === iu)
|
|
567
|
-
try {
|
|
568
|
-
b = new _().parseFromString(w, Uu);
|
|
569
|
-
} catch {
|
|
570
|
-
}
|
|
571
|
-
if (!b || !b.documentElement) {
|
|
572
|
-
b = y.createDocument(Tu, "template", null);
|
|
573
|
-
try {
|
|
574
|
-
b.documentElement.innerHTML = Be ? A : w;
|
|
575
|
-
} catch {
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
const q = b.body || b.documentElement;
|
|
579
|
-
return l && x && q.insertBefore(t.createTextNode(x), q.childNodes[0] || null), Tu === iu ? eu.call(b, gu ? "html" : "body")[0] : gu ? b.documentElement : q;
|
|
580
|
-
}, O0 = function(l) {
|
|
581
|
-
return M.call(
|
|
582
|
-
l.ownerDocument || l,
|
|
583
|
-
l,
|
|
584
|
-
// eslint-disable-next-line no-bitwise
|
|
585
|
-
s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
|
|
586
|
-
null
|
|
587
|
-
);
|
|
588
|
-
}, qe = function(l) {
|
|
589
|
-
return l instanceof h && (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");
|
|
590
|
-
}, N0 = function(l) {
|
|
591
|
-
return typeof o == "function" && l instanceof o;
|
|
592
|
-
};
|
|
593
|
-
function au(g, l, b) {
|
|
594
|
-
_e(g, (x) => {
|
|
595
|
-
x.call(e, l, b, Su);
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
const B0 = function(l) {
|
|
599
|
-
let b = null;
|
|
600
|
-
if (au(I.beforeSanitizeElements, l, null), qe(l))
|
|
601
|
-
return tu(l), !0;
|
|
602
|
-
const x = N(l.nodeName);
|
|
603
|
-
if (au(I.uponSanitizeElement, l, {
|
|
604
|
-
tagName: x,
|
|
605
|
-
allowedTags: O
|
|
606
|
-
}), ae && l.hasChildNodes() && !N0(l.firstElementChild) && H(/<[/\w!]/g, l.innerHTML) && H(/<[/\w!]/g, l.textContent) || l.nodeType === Zu.progressingInstruction || ae && l.nodeType === Zu.comment && H(/<[/\w]/g, l.data))
|
|
607
|
-
return tu(l), !0;
|
|
608
|
-
if (!O[x] || zu[x]) {
|
|
609
|
-
if (!zu[x] && z0(x) && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
610
|
-
return !1;
|
|
611
|
-
if (Oe && !Fu[x]) {
|
|
612
|
-
const w = k(l) || l.parentNode, q = E(l) || l.childNodes;
|
|
613
|
-
if (q && w) {
|
|
614
|
-
const L = q.length;
|
|
615
|
-
for (let W = L - 1; W >= 0; --W) {
|
|
616
|
-
const su = C(q[W], !0);
|
|
617
|
-
su.__removalCount = (l.__removalCount || 0) + 1, w.insertBefore(su, T(l));
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
return tu(l), !0;
|
|
622
|
-
}
|
|
623
|
-
return l instanceof a && !ln(l) || (x === "noscript" || x === "noembed" || x === "noframes") && H(/<\/no(script|embed|frames)/i, l.innerHTML) ? (tu(l), !0) : (Cu && l.nodeType === Zu.text && (b = l.textContent, _e([Bu, Pu, Au], (w) => {
|
|
624
|
-
b = ju(b, w, " ");
|
|
625
|
-
}), l.textContent !== b && ($u(e.removed, {
|
|
626
|
-
element: l.cloneNode()
|
|
627
|
-
}), l.textContent = b)), au(I.afterSanitizeElements, l, null), !1);
|
|
628
|
-
}, P0 = function(l, b, x) {
|
|
629
|
-
if (y0 && (b === "id" || b === "name") && (x in t || x in sn))
|
|
630
|
-
return !1;
|
|
631
|
-
if (!(Me && !Re[b] && H(fu, b))) {
|
|
632
|
-
if (!(A0 && H(ve, b))) {
|
|
633
|
-
if (!z[b] || Re[b]) {
|
|
634
|
-
if (
|
|
635
|
-
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
636
|
-
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
637
|
-
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
638
|
-
!(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
|
|
639
|
-
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
640
|
-
b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && H(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
641
|
-
) return !1;
|
|
642
|
-
} else if (!Ne[b]) {
|
|
643
|
-
if (!H(g0, ju(x, x0, ""))) {
|
|
644
|
-
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" && br(x, "data:") === 0 && S0[l])) {
|
|
645
|
-
if (!(C0 && !H(en, ju(x, x0, "")))) {
|
|
646
|
-
if (x)
|
|
647
|
-
return !1;
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
return !0;
|
|
655
|
-
}, z0 = function(l) {
|
|
656
|
-
return l !== "annotation-xml" && X0(l, tn);
|
|
657
|
-
}, q0 = function(l) {
|
|
658
|
-
au(I.beforeSanitizeAttributes, l, null);
|
|
659
|
-
const {
|
|
660
|
-
attributes: b
|
|
661
|
-
} = l;
|
|
662
|
-
if (!b || qe(l))
|
|
663
|
-
return;
|
|
664
|
-
const x = {
|
|
665
|
-
attrName: "",
|
|
666
|
-
attrValue: "",
|
|
667
|
-
keepAttr: !0,
|
|
668
|
-
allowedAttributes: z,
|
|
669
|
-
forceKeepAttr: void 0
|
|
670
|
-
};
|
|
671
|
-
let w = b.length;
|
|
672
|
-
for (; w--; ) {
|
|
673
|
-
const q = b[w], {
|
|
674
|
-
name: L,
|
|
675
|
-
namespaceURI: W,
|
|
676
|
-
value: su
|
|
677
|
-
} = q, Hu = N(L), Ue = su;
|
|
678
|
-
let U = L === "value" ? Ue : _r(Ue);
|
|
679
|
-
if (x.attrName = Hu, x.attrValue = U, x.keepAttr = !0, x.forceKeepAttr = void 0, au(I.uponSanitizeAttribute, l, x), U = x.attrValue, F0 && (Hu === "id" || Hu === "name") && (wu(L, l), U = nn + U), ae && H(/((--!?|])>)|<\/(style|title)/i, U)) {
|
|
680
|
-
wu(L, l);
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
if (x.forceKeepAttr)
|
|
684
|
-
continue;
|
|
685
|
-
if (!x.keepAttr) {
|
|
686
|
-
wu(L, l);
|
|
687
|
-
continue;
|
|
688
|
-
}
|
|
689
|
-
if (!D0 && H(/\/>/i, U)) {
|
|
690
|
-
wu(L, l);
|
|
691
|
-
continue;
|
|
692
|
-
}
|
|
693
|
-
Cu && _e([Bu, Pu, Au], (H0) => {
|
|
694
|
-
U = ju(U, H0, " ");
|
|
695
|
-
});
|
|
696
|
-
const U0 = N(l.nodeName);
|
|
697
|
-
if (!P0(U0, Hu, U)) {
|
|
698
|
-
wu(L, l);
|
|
699
|
-
continue;
|
|
700
|
-
}
|
|
701
|
-
if (m && typeof p == "object" && typeof p.getAttributeType == "function" && !W)
|
|
702
|
-
switch (p.getAttributeType(U0, Hu)) {
|
|
703
|
-
case "TrustedHTML": {
|
|
704
|
-
U = m.createHTML(U);
|
|
705
|
-
break;
|
|
706
|
-
}
|
|
707
|
-
case "TrustedScriptURL": {
|
|
708
|
-
U = m.createScriptURL(U);
|
|
709
|
-
break;
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
if (U !== Ue)
|
|
713
|
-
try {
|
|
714
|
-
W ? l.setAttributeNS(W, L, U) : l.setAttribute(L, U), qe(l) ? tu(l) : Y0(e.removed);
|
|
715
|
-
} catch {
|
|
716
|
-
wu(L, l);
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
au(I.afterSanitizeAttributes, l, null);
|
|
720
|
-
}, fn = function g(l) {
|
|
721
|
-
let b = null;
|
|
722
|
-
const x = O0(l);
|
|
723
|
-
for (au(I.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
|
|
724
|
-
au(I.uponSanitizeShadowNode, b, null), B0(b), q0(b), b.content instanceof c && g(b.content);
|
|
725
|
-
au(I.afterSanitizeShadowDOM, l, null);
|
|
726
|
-
};
|
|
727
|
-
return e.sanitize = function(g) {
|
|
728
|
-
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, w = null, q = null;
|
|
729
|
-
if (Be = !g, Be && (g = "<!-->"), typeof g != "string" && !N0(g))
|
|
730
|
-
if (typeof g.toString == "function") {
|
|
731
|
-
if (g = g.toString(), typeof g != "string")
|
|
732
|
-
throw Gu("dirty is not a string, aborting");
|
|
733
|
-
} else
|
|
734
|
-
throw Gu("toString is not a function");
|
|
735
|
-
if (!e.isSupported)
|
|
736
|
-
return g;
|
|
737
|
-
if (Ie || ze(l), e.removed = [], typeof g == "string" && (qu = !1), qu) {
|
|
738
|
-
if (g.nodeName) {
|
|
739
|
-
const su = N(g.nodeName);
|
|
740
|
-
if (!O[su] || zu[su])
|
|
741
|
-
throw Gu("root node is forbidden and cannot be sanitized in-place");
|
|
742
|
-
}
|
|
743
|
-
} else if (g instanceof o)
|
|
744
|
-
b = L0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Zu.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
|
|
745
|
-
else {
|
|
746
|
-
if (!Du && !Cu && !gu && // eslint-disable-next-line unicorn/prefer-includes
|
|
747
|
-
g.indexOf("<") === -1)
|
|
748
|
-
return m && le ? m.createHTML(g) : g;
|
|
749
|
-
if (b = L0(g), !b)
|
|
750
|
-
return Du ? null : le ? A : "";
|
|
751
|
-
}
|
|
752
|
-
b && Le && tu(b.firstChild);
|
|
753
|
-
const L = O0(qu ? g : b);
|
|
754
|
-
for (; w = L.nextNode(); )
|
|
755
|
-
B0(w), q0(w), w.content instanceof c && fn(w.content);
|
|
756
|
-
if (qu)
|
|
757
|
-
return g;
|
|
758
|
-
if (Du) {
|
|
759
|
-
if (se)
|
|
760
|
-
for (q = Y.call(b.ownerDocument); b.firstChild; )
|
|
761
|
-
q.appendChild(b.firstChild);
|
|
762
|
-
else
|
|
763
|
-
q = b;
|
|
764
|
-
return (z.shadowroot || z.shadowrootmode) && (q = xu.call(n, q, !0)), q;
|
|
765
|
-
}
|
|
766
|
-
let W = gu ? b.outerHTML : b.innerHTML;
|
|
767
|
-
return gu && O["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name && H(St, b.ownerDocument.doctype.name) && (W = "<!DOCTYPE " + b.ownerDocument.doctype.name + `>
|
|
768
|
-
` + W), Cu && _e([Bu, Pu, Au], (su) => {
|
|
769
|
-
W = ju(W, su, " ");
|
|
770
|
-
}), m && le ? m.createHTML(W) : W;
|
|
771
|
-
}, e.setConfig = function() {
|
|
772
|
-
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
773
|
-
ze(g), Ie = !0;
|
|
774
|
-
}, e.clearConfig = function() {
|
|
775
|
-
Su = null, Ie = !1;
|
|
776
|
-
}, e.isValidAttribute = function(g, l, b) {
|
|
777
|
-
Su || ze({});
|
|
778
|
-
const x = N(g), w = N(l);
|
|
779
|
-
return P0(x, w, b);
|
|
780
|
-
}, e.addHook = function(g, l) {
|
|
781
|
-
typeof l == "function" && $u(I[g], l);
|
|
782
|
-
}, e.removeHook = function(g, l) {
|
|
783
|
-
if (l !== void 0) {
|
|
784
|
-
const b = hr(I[g], l);
|
|
785
|
-
return b === -1 ? void 0 : pr(I[g], b, 1)[0];
|
|
786
|
-
}
|
|
787
|
-
return Y0(I[g]);
|
|
788
|
-
}, e.removeHooks = function(g) {
|
|
789
|
-
I[g] = [];
|
|
790
|
-
}, e.removeAllHooks = function() {
|
|
791
|
-
I = tt();
|
|
792
|
-
}, e;
|
|
793
|
-
}
|
|
794
|
-
var Rr = wt();
|
|
795
|
-
const nt = {};
|
|
796
|
-
function Mr(u) {
|
|
797
|
-
let e = nt[u];
|
|
1
|
+
import { defineComponent as c0, useCssVars as L0, unref as P0, useSlots as O0, computed as au, createElementBlock as L, openBlock as S, normalizeClass as i0, createCommentVNode as _u, createElementVNode as Z, createBlock as yu, resolveDynamicComponent as o0, renderSlot as mu, toDisplayString as N0, ref as $0, watch as j0, Fragment as U0, renderList as Ou, mergeProps as Nu, createSlots as Z0, withCtx as H0 } from "vue";
|
|
2
|
+
import { t as V0 } from "../utils.js";
|
|
3
|
+
import { _ as a0 } from "../_plugin-vue_export-helper.js";
|
|
4
|
+
import { u as G0 } from "../index2.js";
|
|
5
|
+
const $u = {};
|
|
6
|
+
function W0(u) {
|
|
7
|
+
let e = $u[u];
|
|
798
8
|
if (e)
|
|
799
9
|
return e;
|
|
800
|
-
e =
|
|
10
|
+
e = $u[u] = [];
|
|
801
11
|
for (let t = 0; t < 128; t++) {
|
|
802
12
|
const n = String.fromCharCode(t);
|
|
803
13
|
e.push(n);
|
|
@@ -808,38 +18,38 @@ function Mr(u) {
|
|
|
808
18
|
}
|
|
809
19
|
return e;
|
|
810
20
|
}
|
|
811
|
-
function
|
|
812
|
-
typeof e != "string" && (e =
|
|
813
|
-
const t =
|
|
21
|
+
function G(u, e) {
|
|
22
|
+
typeof e != "string" && (e = G.defaultChars);
|
|
23
|
+
const t = W0(e);
|
|
814
24
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
815
25
|
let r = "";
|
|
816
|
-
for (let c = 0,
|
|
817
|
-
const
|
|
818
|
-
if (
|
|
819
|
-
r += t[
|
|
26
|
+
for (let c = 0, o = n.length; c < o; c += 3) {
|
|
27
|
+
const i = parseInt(n.slice(c + 1, c + 3), 16);
|
|
28
|
+
if (i < 128) {
|
|
29
|
+
r += t[i];
|
|
820
30
|
continue;
|
|
821
31
|
}
|
|
822
|
-
if ((
|
|
32
|
+
if ((i & 224) === 192 && c + 3 < o) {
|
|
823
33
|
const a = parseInt(n.slice(c + 4, c + 6), 16);
|
|
824
34
|
if ((a & 192) === 128) {
|
|
825
|
-
const s =
|
|
35
|
+
const s = i << 6 & 1984 | a & 63;
|
|
826
36
|
s < 128 ? r += "��" : r += String.fromCharCode(s), c += 3;
|
|
827
37
|
continue;
|
|
828
38
|
}
|
|
829
39
|
}
|
|
830
|
-
if ((
|
|
40
|
+
if ((i & 240) === 224 && c + 6 < o) {
|
|
831
41
|
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16);
|
|
832
42
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
|
833
|
-
const f =
|
|
43
|
+
const f = i << 12 & 61440 | a << 6 & 4032 | s & 63;
|
|
834
44
|
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), c += 6;
|
|
835
45
|
continue;
|
|
836
46
|
}
|
|
837
47
|
}
|
|
838
|
-
if ((
|
|
48
|
+
if ((i & 248) === 240 && c + 9 < o) {
|
|
839
49
|
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16), f = parseInt(n.slice(c + 10, c + 12), 16);
|
|
840
50
|
if ((a & 192) === 128 && (s & 192) === 128 && (f & 192) === 128) {
|
|
841
|
-
let
|
|
842
|
-
|
|
51
|
+
let d = i << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | f & 63;
|
|
52
|
+
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), c += 9;
|
|
843
53
|
continue;
|
|
844
54
|
}
|
|
845
55
|
}
|
|
@@ -848,14 +58,14 @@ function Lu(u, e) {
|
|
|
848
58
|
return r;
|
|
849
59
|
});
|
|
850
60
|
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
const
|
|
854
|
-
function
|
|
855
|
-
let e =
|
|
61
|
+
G.defaultChars = ";/?:@&=+$,#";
|
|
62
|
+
G.componentChars = "";
|
|
63
|
+
const ju = {};
|
|
64
|
+
function J0(u) {
|
|
65
|
+
let e = ju[u];
|
|
856
66
|
if (e)
|
|
857
67
|
return e;
|
|
858
|
-
e =
|
|
68
|
+
e = ju[u] = [];
|
|
859
69
|
for (let t = 0; t < 128; t++) {
|
|
860
70
|
const n = String.fromCharCode(t);
|
|
861
71
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
|
@@ -864,22 +74,22 @@ function Ir(u) {
|
|
|
864
74
|
e[u.charCodeAt(t)] = u[t];
|
|
865
75
|
return e;
|
|
866
76
|
}
|
|
867
|
-
function
|
|
868
|
-
typeof e != "string" && (t = e, e =
|
|
869
|
-
const n =
|
|
77
|
+
function ru(u, e, t) {
|
|
78
|
+
typeof e != "string" && (t = e, e = ru.defaultChars), typeof t > "u" && (t = !0);
|
|
79
|
+
const n = J0(e);
|
|
870
80
|
let r = "";
|
|
871
|
-
for (let c = 0,
|
|
872
|
-
const
|
|
873
|
-
if (t &&
|
|
81
|
+
for (let c = 0, o = u.length; c < o; c++) {
|
|
82
|
+
const i = u.charCodeAt(c);
|
|
83
|
+
if (t && i === 37 && c + 2 < o && /^[0-9a-f]{2}$/i.test(u.slice(c + 1, c + 3))) {
|
|
874
84
|
r += u.slice(c, c + 3), c += 2;
|
|
875
85
|
continue;
|
|
876
86
|
}
|
|
877
|
-
if (
|
|
878
|
-
r += n[
|
|
87
|
+
if (i < 128) {
|
|
88
|
+
r += n[i];
|
|
879
89
|
continue;
|
|
880
90
|
}
|
|
881
|
-
if (
|
|
882
|
-
if (
|
|
91
|
+
if (i >= 55296 && i <= 57343) {
|
|
92
|
+
if (i >= 55296 && i <= 56319 && c + 1 < o) {
|
|
883
93
|
const a = u.charCodeAt(c + 1);
|
|
884
94
|
if (a >= 56320 && a <= 57343) {
|
|
885
95
|
r += encodeURIComponent(u[c] + u[c + 1]), c++;
|
|
@@ -893,20 +103,20 @@ function ce(u, e, t) {
|
|
|
893
103
|
}
|
|
894
104
|
return r;
|
|
895
105
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
function
|
|
106
|
+
ru.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
107
|
+
ru.componentChars = "-_.!~*'()";
|
|
108
|
+
function Bu(u) {
|
|
899
109
|
let e = "";
|
|
900
110
|
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;
|
|
901
111
|
}
|
|
902
|
-
function
|
|
112
|
+
function su() {
|
|
903
113
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
904
114
|
}
|
|
905
|
-
const
|
|
906
|
-
`, " "],
|
|
115
|
+
const Q0 = /^([a-z0-9.+-]+:)/i, X0 = /:[0-9]*$/, Y0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, K0 = ["<", ">", '"', "`", " ", "\r", `
|
|
116
|
+
`, " "], ue = ["{", "}", "|", "\\", "^", "`"].concat(K0), ee = ["'"].concat(ue), Uu = ["%", "/", "?", ";", "#"].concat(ee), Zu = ["/", "?", "#"], te = 255, Hu = /^[+a-z0-9A-Z_-]{0,63}$/, re = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Vu = {
|
|
907
117
|
javascript: !0,
|
|
908
118
|
"javascript:": !0
|
|
909
|
-
},
|
|
119
|
+
}, Gu = {
|
|
910
120
|
http: !0,
|
|
911
121
|
https: !0,
|
|
912
122
|
ftp: !0,
|
|
@@ -918,81 +128,81 @@ const Lr = /^([a-z0-9.+-]+:)/i, Or = /:[0-9]*$/, Nr = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
918
128
|
"gopher:": !0,
|
|
919
129
|
"file:": !0
|
|
920
130
|
};
|
|
921
|
-
function
|
|
922
|
-
if (u && u instanceof
|
|
923
|
-
const t = new
|
|
131
|
+
function Tu(u, e) {
|
|
132
|
+
if (u && u instanceof su) return u;
|
|
133
|
+
const t = new su();
|
|
924
134
|
return t.parse(u, e), t;
|
|
925
135
|
}
|
|
926
|
-
|
|
136
|
+
su.prototype.parse = function(u, e) {
|
|
927
137
|
let t, n, r, c = u;
|
|
928
138
|
if (c = c.trim(), !e && u.split("#").length === 1) {
|
|
929
|
-
const s =
|
|
139
|
+
const s = Y0.exec(c);
|
|
930
140
|
if (s)
|
|
931
141
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
932
142
|
}
|
|
933
|
-
let
|
|
934
|
-
if (
|
|
143
|
+
let o = Q0.exec(c);
|
|
144
|
+
if (o && (o = o[0], t = o.toLowerCase(), this.protocol = o, c = c.substr(o.length)), (e || o || c.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = c.substr(0, 2) === "//", r && !(o && Vu[o]) && (c = c.substr(2), this.slashes = !0)), !Vu[o] && (r || o && !Gu[o])) {
|
|
935
145
|
let s = -1;
|
|
936
|
-
for (let
|
|
937
|
-
n = c.indexOf(
|
|
938
|
-
let f,
|
|
939
|
-
s === -1 ?
|
|
940
|
-
for (let
|
|
941
|
-
n = c.indexOf(
|
|
146
|
+
for (let l = 0; l < Zu.length; l++)
|
|
147
|
+
n = c.indexOf(Zu[l]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
148
|
+
let f, d;
|
|
149
|
+
s === -1 ? d = c.lastIndexOf("@") : d = c.lastIndexOf("@", s), d !== -1 && (f = c.slice(0, d), c = c.slice(d + 1), this.auth = f), s = -1;
|
|
150
|
+
for (let l = 0; l < Uu.length; l++)
|
|
151
|
+
n = c.indexOf(Uu[l]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
942
152
|
s === -1 && (s = c.length), c[s - 1] === ":" && s--;
|
|
943
|
-
const
|
|
944
|
-
c = c.slice(s), this.parseHost(
|
|
945
|
-
const
|
|
946
|
-
if (!
|
|
947
|
-
const
|
|
948
|
-
for (let
|
|
949
|
-
const
|
|
950
|
-
if (
|
|
951
|
-
let
|
|
952
|
-
for (let
|
|
953
|
-
|
|
954
|
-
if (!
|
|
955
|
-
const
|
|
956
|
-
|
|
153
|
+
const h = c.slice(0, s);
|
|
154
|
+
c = c.slice(s), this.parseHost(h), this.hostname = this.hostname || "";
|
|
155
|
+
const b = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
156
|
+
if (!b) {
|
|
157
|
+
const l = this.hostname.split(/\./);
|
|
158
|
+
for (let k = 0, g = l.length; k < g; k++) {
|
|
159
|
+
const C = l[k];
|
|
160
|
+
if (C && !C.match(Hu)) {
|
|
161
|
+
let p = "";
|
|
162
|
+
for (let _ = 0, x = C.length; _ < x; _++)
|
|
163
|
+
C.charCodeAt(_) > 127 ? p += "x" : p += C[_];
|
|
164
|
+
if (!p.match(Hu)) {
|
|
165
|
+
const _ = l.slice(0, k), x = l.slice(k + 1), m = C.match(re);
|
|
166
|
+
m && (_.push(m[1]), x.unshift(m[2])), x.length && (c = x.join(".") + c), this.hostname = _.join(".");
|
|
957
167
|
break;
|
|
958
168
|
}
|
|
959
169
|
}
|
|
960
170
|
}
|
|
961
171
|
}
|
|
962
|
-
this.hostname.length >
|
|
172
|
+
this.hostname.length > te && (this.hostname = ""), b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
963
173
|
}
|
|
964
|
-
const
|
|
965
|
-
|
|
174
|
+
const i = c.indexOf("#");
|
|
175
|
+
i !== -1 && (this.hash = c.substr(i), c = c.slice(0, i));
|
|
966
176
|
const a = c.indexOf("?");
|
|
967
|
-
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c),
|
|
177
|
+
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c), Gu[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
968
178
|
};
|
|
969
|
-
|
|
970
|
-
let e =
|
|
179
|
+
su.prototype.parseHost = function(u) {
|
|
180
|
+
let e = X0.exec(u);
|
|
971
181
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
972
182
|
};
|
|
973
|
-
const
|
|
183
|
+
const ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
974
184
|
__proto__: null,
|
|
975
|
-
decode:
|
|
976
|
-
encode:
|
|
977
|
-
format:
|
|
978
|
-
parse:
|
|
979
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
185
|
+
decode: G,
|
|
186
|
+
encode: ru,
|
|
187
|
+
format: Bu,
|
|
188
|
+
parse: Tu
|
|
189
|
+
}, Symbol.toStringTag, { value: "Module" })), s0 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, f0 = /[\0-\x1F\x7F-\x9F]/, ce = /[\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]/, zu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, l0 = /[\$\+<->\^`\|~\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]/, d0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
980
190
|
__proto__: null,
|
|
981
|
-
Any:
|
|
982
|
-
Cc:
|
|
983
|
-
Cf:
|
|
984
|
-
P:
|
|
985
|
-
S:
|
|
986
|
-
Z:
|
|
987
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
191
|
+
Any: s0,
|
|
192
|
+
Cc: f0,
|
|
193
|
+
Cf: ce,
|
|
194
|
+
P: zu,
|
|
195
|
+
S: l0,
|
|
196
|
+
Z: d0
|
|
197
|
+
}, Symbol.toStringTag, { value: "Module" })), oe = new Uint16Array(
|
|
988
198
|
// prettier-ignore
|
|
989
199
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\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))
|
|
990
|
-
),
|
|
200
|
+
), ae = new Uint16Array(
|
|
991
201
|
// prettier-ignore
|
|
992
202
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
993
203
|
);
|
|
994
|
-
var
|
|
995
|
-
const
|
|
204
|
+
var ku;
|
|
205
|
+
const se = /* @__PURE__ */ new Map([
|
|
996
206
|
[0, 65533],
|
|
997
207
|
// C1 Unicode control character reference replacements
|
|
998
208
|
[128, 8364],
|
|
@@ -1022,53 +232,53 @@ const Zr = /* @__PURE__ */ new Map([
|
|
|
1022
232
|
[156, 339],
|
|
1023
233
|
[158, 382],
|
|
1024
234
|
[159, 376]
|
|
1025
|
-
]),
|
|
235
|
+
]), fe = (
|
|
1026
236
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1027
|
-
(
|
|
237
|
+
(ku = String.fromCodePoint) !== null && ku !== void 0 ? ku : function(u) {
|
|
1028
238
|
let e = "";
|
|
1029
239
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
1030
240
|
}
|
|
1031
241
|
);
|
|
1032
|
-
function
|
|
242
|
+
function le(u) {
|
|
1033
243
|
var e;
|
|
1034
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
244
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = se.get(u)) !== null && e !== void 0 ? e : u;
|
|
1035
245
|
}
|
|
1036
|
-
var
|
|
246
|
+
var A;
|
|
1037
247
|
(function(u) {
|
|
1038
248
|
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";
|
|
1039
|
-
})(
|
|
1040
|
-
const
|
|
1041
|
-
var
|
|
249
|
+
})(A || (A = {}));
|
|
250
|
+
const de = 32;
|
|
251
|
+
var $;
|
|
1042
252
|
(function(u) {
|
|
1043
253
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1044
|
-
})(
|
|
1045
|
-
function
|
|
1046
|
-
return u >=
|
|
254
|
+
})($ || ($ = {}));
|
|
255
|
+
function wu(u) {
|
|
256
|
+
return u >= A.ZERO && u <= A.NINE;
|
|
1047
257
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return u >=
|
|
258
|
+
function be(u) {
|
|
259
|
+
return u >= A.UPPER_A && u <= A.UPPER_F || u >= A.LOWER_A && u <= A.LOWER_F;
|
|
1050
260
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return u >=
|
|
261
|
+
function he(u) {
|
|
262
|
+
return u >= A.UPPER_A && u <= A.UPPER_Z || u >= A.LOWER_A && u <= A.LOWER_Z || wu(u);
|
|
1053
263
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return u ===
|
|
264
|
+
function pe(u) {
|
|
265
|
+
return u === A.EQUALS || he(u);
|
|
1056
266
|
}
|
|
1057
|
-
var
|
|
267
|
+
var F;
|
|
1058
268
|
(function(u) {
|
|
1059
269
|
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";
|
|
1060
|
-
})(
|
|
1061
|
-
var
|
|
270
|
+
})(F || (F = {}));
|
|
271
|
+
var N;
|
|
1062
272
|
(function(u) {
|
|
1063
273
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1064
|
-
})(
|
|
1065
|
-
class
|
|
274
|
+
})(N || (N = {}));
|
|
275
|
+
class xe {
|
|
1066
276
|
constructor(e, t, n) {
|
|
1067
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
|
277
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = F.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = N.Strict;
|
|
1068
278
|
}
|
|
1069
279
|
/** Resets the instance to make it reusable. */
|
|
1070
280
|
startEntity(e) {
|
|
1071
|
-
this.decodeMode = e, this.state =
|
|
281
|
+
this.decodeMode = e, this.state = F.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
1072
282
|
}
|
|
1073
283
|
/**
|
|
1074
284
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -1083,15 +293,15 @@ class uc {
|
|
|
1083
293
|
*/
|
|
1084
294
|
write(e, t) {
|
|
1085
295
|
switch (this.state) {
|
|
1086
|
-
case
|
|
1087
|
-
return e.charCodeAt(t) ===
|
|
1088
|
-
case
|
|
296
|
+
case F.EntityStart:
|
|
297
|
+
return e.charCodeAt(t) === A.NUM ? (this.state = F.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = F.NamedEntity, this.stateNamedEntity(e, t));
|
|
298
|
+
case F.NumericStart:
|
|
1089
299
|
return this.stateNumericStart(e, t);
|
|
1090
|
-
case
|
|
300
|
+
case F.NumericDecimal:
|
|
1091
301
|
return this.stateNumericDecimal(e, t);
|
|
1092
|
-
case
|
|
302
|
+
case F.NumericHex:
|
|
1093
303
|
return this.stateNumericHex(e, t);
|
|
1094
|
-
case
|
|
304
|
+
case F.NamedEntity:
|
|
1095
305
|
return this.stateNamedEntity(e, t);
|
|
1096
306
|
}
|
|
1097
307
|
}
|
|
@@ -1105,7 +315,7 @@ class uc {
|
|
|
1105
315
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1106
316
|
*/
|
|
1107
317
|
stateNumericStart(e, t) {
|
|
1108
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
318
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | de) === A.LOWER_X ? (this.state = F.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = F.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1109
319
|
}
|
|
1110
320
|
addToNumericResult(e, t, n, r) {
|
|
1111
321
|
if (t !== n) {
|
|
@@ -1126,7 +336,7 @@ class uc {
|
|
|
1126
336
|
const n = t;
|
|
1127
337
|
for (; t < e.length; ) {
|
|
1128
338
|
const r = e.charCodeAt(t);
|
|
1129
|
-
if (
|
|
339
|
+
if (wu(r) || be(r))
|
|
1130
340
|
t += 1;
|
|
1131
341
|
else
|
|
1132
342
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1146,7 +356,7 @@ class uc {
|
|
|
1146
356
|
const n = t;
|
|
1147
357
|
for (; t < e.length; ) {
|
|
1148
358
|
const r = e.charCodeAt(t);
|
|
1149
|
-
if (
|
|
359
|
+
if (wu(r))
|
|
1150
360
|
t += 1;
|
|
1151
361
|
else
|
|
1152
362
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1170,11 +380,11 @@ class uc {
|
|
|
1170
380
|
var n;
|
|
1171
381
|
if (this.consumed <= t)
|
|
1172
382
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1173
|
-
if (e ===
|
|
383
|
+
if (e === A.SEMI)
|
|
1174
384
|
this.consumed += 1;
|
|
1175
|
-
else if (this.decodeMode ===
|
|
385
|
+
else if (this.decodeMode === N.Strict)
|
|
1176
386
|
return 0;
|
|
1177
|
-
return this.emitCodePoint(
|
|
387
|
+
return this.emitCodePoint(le(this.result), this.consumed), this.errors && (e !== A.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1178
388
|
}
|
|
1179
389
|
/**
|
|
1180
390
|
* Parses a named entity.
|
|
@@ -1187,18 +397,18 @@ class uc {
|
|
|
1187
397
|
*/
|
|
1188
398
|
stateNamedEntity(e, t) {
|
|
1189
399
|
const { decodeTree: n } = this;
|
|
1190
|
-
let r = n[this.treeIndex], c = (r &
|
|
400
|
+
let r = n[this.treeIndex], c = (r & $.VALUE_LENGTH) >> 14;
|
|
1191
401
|
for (; t < e.length; t++, this.excess++) {
|
|
1192
|
-
const
|
|
1193
|
-
if (this.treeIndex =
|
|
402
|
+
const o = e.charCodeAt(t);
|
|
403
|
+
if (this.treeIndex = _e(n, r, this.treeIndex + Math.max(1, c), o), this.treeIndex < 0)
|
|
1194
404
|
return this.result === 0 || // If we are parsing an attribute
|
|
1195
|
-
this.decodeMode ===
|
|
405
|
+
this.decodeMode === N.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1196
406
|
(c === 0 || // And there should be no invalid characters.
|
|
1197
|
-
|
|
1198
|
-
if (r = n[this.treeIndex], c = (r &
|
|
1199
|
-
if (
|
|
407
|
+
pe(o)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
408
|
+
if (r = n[this.treeIndex], c = (r & $.VALUE_LENGTH) >> 14, c !== 0) {
|
|
409
|
+
if (o === A.SEMI)
|
|
1200
410
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
|
1201
|
-
this.decodeMode !==
|
|
411
|
+
this.decodeMode !== N.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1202
412
|
}
|
|
1203
413
|
}
|
|
1204
414
|
return -1;
|
|
@@ -1210,7 +420,7 @@ class uc {
|
|
|
1210
420
|
*/
|
|
1211
421
|
emitNotTerminatedNamedEntity() {
|
|
1212
422
|
var e;
|
|
1213
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
423
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & $.VALUE_LENGTH) >> 14;
|
|
1214
424
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
1215
425
|
}
|
|
1216
426
|
/**
|
|
@@ -1224,7 +434,7 @@ class uc {
|
|
|
1224
434
|
*/
|
|
1225
435
|
emitNamedEntityData(e, t, n) {
|
|
1226
436
|
const { decodeTree: r } = this;
|
|
1227
|
-
return this.emitCodePoint(t === 1 ? r[e] &
|
|
437
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~$.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
|
1228
438
|
}
|
|
1229
439
|
/**
|
|
1230
440
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -1236,77 +446,77 @@ class uc {
|
|
|
1236
446
|
end() {
|
|
1237
447
|
var e;
|
|
1238
448
|
switch (this.state) {
|
|
1239
|
-
case
|
|
1240
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
1241
|
-
case
|
|
449
|
+
case F.NamedEntity:
|
|
450
|
+
return this.result !== 0 && (this.decodeMode !== N.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
451
|
+
case F.NumericDecimal:
|
|
1242
452
|
return this.emitNumericEntity(0, 2);
|
|
1243
|
-
case
|
|
453
|
+
case F.NumericHex:
|
|
1244
454
|
return this.emitNumericEntity(0, 3);
|
|
1245
|
-
case
|
|
455
|
+
case F.NumericStart:
|
|
1246
456
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1247
|
-
case
|
|
457
|
+
case F.EntityStart:
|
|
1248
458
|
return 0;
|
|
1249
459
|
}
|
|
1250
460
|
}
|
|
1251
461
|
}
|
|
1252
|
-
function
|
|
462
|
+
function b0(u) {
|
|
1253
463
|
let e = "";
|
|
1254
|
-
const t = new
|
|
464
|
+
const t = new xe(u, (n) => e += fe(n));
|
|
1255
465
|
return function(r, c) {
|
|
1256
|
-
let
|
|
1257
|
-
for (; (
|
|
1258
|
-
e += r.slice(
|
|
466
|
+
let o = 0, i = 0;
|
|
467
|
+
for (; (i = r.indexOf("&", i)) >= 0; ) {
|
|
468
|
+
e += r.slice(o, i), t.startEntity(c);
|
|
1259
469
|
const s = t.write(
|
|
1260
470
|
r,
|
|
1261
471
|
// Skip the "&"
|
|
1262
|
-
|
|
472
|
+
i + 1
|
|
1263
473
|
);
|
|
1264
474
|
if (s < 0) {
|
|
1265
|
-
|
|
475
|
+
o = i + t.end();
|
|
1266
476
|
break;
|
|
1267
477
|
}
|
|
1268
|
-
|
|
478
|
+
o = i + s, i = s === 0 ? o + 1 : o;
|
|
1269
479
|
}
|
|
1270
|
-
const a = e + r.slice(
|
|
480
|
+
const a = e + r.slice(o);
|
|
1271
481
|
return e = "", a;
|
|
1272
482
|
};
|
|
1273
483
|
}
|
|
1274
|
-
function
|
|
1275
|
-
const r = (e &
|
|
484
|
+
function _e(u, e, t, n) {
|
|
485
|
+
const r = (e & $.BRANCH_LENGTH) >> 7, c = e & $.JUMP_TABLE;
|
|
1276
486
|
if (r === 0)
|
|
1277
487
|
return c !== 0 && n === c ? t : -1;
|
|
1278
488
|
if (c) {
|
|
1279
489
|
const a = n - c;
|
|
1280
490
|
return a < 0 || a >= r ? -1 : u[t + a] - 1;
|
|
1281
491
|
}
|
|
1282
|
-
let
|
|
1283
|
-
for (;
|
|
1284
|
-
const a =
|
|
492
|
+
let o = t, i = o + r - 1;
|
|
493
|
+
for (; o <= i; ) {
|
|
494
|
+
const a = o + i >>> 1, s = u[a];
|
|
1285
495
|
if (s < n)
|
|
1286
|
-
|
|
496
|
+
o = a + 1;
|
|
1287
497
|
else if (s > n)
|
|
1288
|
-
|
|
498
|
+
i = a - 1;
|
|
1289
499
|
else
|
|
1290
500
|
return u[a + r];
|
|
1291
501
|
}
|
|
1292
502
|
return -1;
|
|
1293
503
|
}
|
|
1294
|
-
const
|
|
1295
|
-
|
|
1296
|
-
function
|
|
1297
|
-
return
|
|
504
|
+
const me = b0(oe);
|
|
505
|
+
b0(ae);
|
|
506
|
+
function h0(u, e = N.Legacy) {
|
|
507
|
+
return me(u, e);
|
|
1298
508
|
}
|
|
1299
|
-
function
|
|
509
|
+
function ke(u) {
|
|
1300
510
|
return Object.prototype.toString.call(u);
|
|
1301
511
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return
|
|
512
|
+
function Iu(u) {
|
|
513
|
+
return ke(u) === "[object String]";
|
|
1304
514
|
}
|
|
1305
|
-
const
|
|
1306
|
-
function
|
|
1307
|
-
return
|
|
515
|
+
const ge = Object.prototype.hasOwnProperty;
|
|
516
|
+
function De(u, e) {
|
|
517
|
+
return ge.call(u, e);
|
|
1308
518
|
}
|
|
1309
|
-
function
|
|
519
|
+
function du(u) {
|
|
1310
520
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1311
521
|
if (t) {
|
|
1312
522
|
if (typeof t != "object")
|
|
@@ -1317,13 +527,13 @@ function Fe(u) {
|
|
|
1317
527
|
}
|
|
1318
528
|
}), u;
|
|
1319
529
|
}
|
|
1320
|
-
function
|
|
530
|
+
function p0(u, e, t) {
|
|
1321
531
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
|
1322
532
|
}
|
|
1323
|
-
function
|
|
533
|
+
function Mu(u) {
|
|
1324
534
|
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);
|
|
1325
535
|
}
|
|
1326
|
-
function
|
|
536
|
+
function fu(u) {
|
|
1327
537
|
if (u > 65535) {
|
|
1328
538
|
u -= 65536;
|
|
1329
539
|
const e = 55296 + (u >> 10), t = 56320 + (u & 1023);
|
|
@@ -1331,40 +541,40 @@ function De(u) {
|
|
|
1331
541
|
}
|
|
1332
542
|
return String.fromCharCode(u);
|
|
1333
543
|
}
|
|
1334
|
-
const
|
|
1335
|
-
function
|
|
1336
|
-
if (e.charCodeAt(0) === 35 &&
|
|
544
|
+
const x0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Ce = /&([a-z#][a-z0-9]{1,31});/gi, Ee = new RegExp(x0.source + "|" + Ce.source, "gi"), Fe = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
545
|
+
function Ae(u, e) {
|
|
546
|
+
if (e.charCodeAt(0) === 35 && Fe.test(e)) {
|
|
1337
547
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1338
|
-
return
|
|
548
|
+
return Mu(n) ? fu(n) : u;
|
|
1339
549
|
}
|
|
1340
|
-
const t =
|
|
550
|
+
const t = h0(u);
|
|
1341
551
|
return t !== u ? t : u;
|
|
1342
552
|
}
|
|
1343
|
-
function
|
|
1344
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
553
|
+
function ye(u) {
|
|
554
|
+
return u.indexOf("\\") < 0 ? u : u.replace(x0, "$1");
|
|
1345
555
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1348
|
-
return t ||
|
|
556
|
+
function W(u) {
|
|
557
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(Ee, function(e, t, n) {
|
|
558
|
+
return t || Ae(e, n);
|
|
1349
559
|
});
|
|
1350
560
|
}
|
|
1351
|
-
const
|
|
561
|
+
const we = /[&<>"]/, ve = /[&<>"]/g, Se = {
|
|
1352
562
|
"&": "&",
|
|
1353
563
|
"<": "<",
|
|
1354
564
|
">": ">",
|
|
1355
565
|
'"': """
|
|
1356
566
|
};
|
|
1357
|
-
function
|
|
1358
|
-
return
|
|
567
|
+
function Be(u) {
|
|
568
|
+
return Se[u];
|
|
1359
569
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return
|
|
570
|
+
function j(u) {
|
|
571
|
+
return we.test(u) ? u.replace(ve, Be) : u;
|
|
1362
572
|
}
|
|
1363
|
-
const
|
|
1364
|
-
function
|
|
1365
|
-
return u.replace(
|
|
573
|
+
const Te = /[.?*+^$[\]\\(){}|-]/g;
|
|
574
|
+
function ze(u) {
|
|
575
|
+
return u.replace(Te, "\\$&");
|
|
1366
576
|
}
|
|
1367
|
-
function
|
|
577
|
+
function E(u) {
|
|
1368
578
|
switch (u) {
|
|
1369
579
|
case 9:
|
|
1370
580
|
case 32:
|
|
@@ -1372,7 +582,7 @@ function S(u) {
|
|
|
1372
582
|
}
|
|
1373
583
|
return !1;
|
|
1374
584
|
}
|
|
1375
|
-
function
|
|
585
|
+
function Y(u) {
|
|
1376
586
|
if (u >= 8192 && u <= 8202)
|
|
1377
587
|
return !0;
|
|
1378
588
|
switch (u) {
|
|
@@ -1391,10 +601,10 @@ function Ku(u) {
|
|
|
1391
601
|
}
|
|
1392
602
|
return !1;
|
|
1393
603
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return
|
|
604
|
+
function K(u) {
|
|
605
|
+
return zu.test(u) || l0.test(u);
|
|
1396
606
|
}
|
|
1397
|
-
function
|
|
607
|
+
function uu(u) {
|
|
1398
608
|
switch (u) {
|
|
1399
609
|
case 33:
|
|
1400
610
|
case 34:
|
|
@@ -1433,38 +643,38 @@ function ee(u) {
|
|
|
1433
643
|
return !1;
|
|
1434
644
|
}
|
|
1435
645
|
}
|
|
1436
|
-
function
|
|
646
|
+
function bu(u) {
|
|
1437
647
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1438
648
|
}
|
|
1439
|
-
const
|
|
649
|
+
const Ie = { mdurl: ne, ucmicro: ie }, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1440
650
|
__proto__: null,
|
|
1441
|
-
arrayReplaceAt:
|
|
1442
|
-
assign:
|
|
1443
|
-
escapeHtml:
|
|
1444
|
-
escapeRE:
|
|
1445
|
-
fromCodePoint:
|
|
1446
|
-
has:
|
|
1447
|
-
isMdAsciiPunct:
|
|
1448
|
-
isPunctChar:
|
|
1449
|
-
isSpace:
|
|
1450
|
-
isString:
|
|
1451
|
-
isValidEntityCode:
|
|
1452
|
-
isWhiteSpace:
|
|
1453
|
-
lib:
|
|
1454
|
-
normalizeReference:
|
|
1455
|
-
unescapeAll:
|
|
1456
|
-
unescapeMd:
|
|
651
|
+
arrayReplaceAt: p0,
|
|
652
|
+
assign: du,
|
|
653
|
+
escapeHtml: j,
|
|
654
|
+
escapeRE: ze,
|
|
655
|
+
fromCodePoint: fu,
|
|
656
|
+
has: De,
|
|
657
|
+
isMdAsciiPunct: uu,
|
|
658
|
+
isPunctChar: K,
|
|
659
|
+
isSpace: E,
|
|
660
|
+
isString: Iu,
|
|
661
|
+
isValidEntityCode: Mu,
|
|
662
|
+
isWhiteSpace: Y,
|
|
663
|
+
lib: Ie,
|
|
664
|
+
normalizeReference: bu,
|
|
665
|
+
unescapeAll: W,
|
|
666
|
+
unescapeMd: ye
|
|
1457
667
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1458
|
-
function
|
|
1459
|
-
let n, r, c,
|
|
1460
|
-
const
|
|
1461
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
|
668
|
+
function qe(u, e, t) {
|
|
669
|
+
let n, r, c, o;
|
|
670
|
+
const i = u.posMax, a = u.pos;
|
|
671
|
+
for (u.pos = e + 1, n = 1; u.pos < i; ) {
|
|
1462
672
|
if (c = u.src.charCodeAt(u.pos), c === 93 && (n--, n === 0)) {
|
|
1463
673
|
r = !0;
|
|
1464
674
|
break;
|
|
1465
675
|
}
|
|
1466
|
-
if (
|
|
1467
|
-
if (
|
|
676
|
+
if (o = u.pos, u.md.inline.skipToken(u), c === 91) {
|
|
677
|
+
if (o === u.pos - 1)
|
|
1468
678
|
n++;
|
|
1469
679
|
else if (t)
|
|
1470
680
|
return u.pos = a, -1;
|
|
@@ -1473,7 +683,7 @@ function gc(u, e, t) {
|
|
|
1473
683
|
let s = -1;
|
|
1474
684
|
return r && (s = u.pos), u.pos = a, s;
|
|
1475
685
|
}
|
|
1476
|
-
function
|
|
686
|
+
function Re(u, e, t) {
|
|
1477
687
|
let n, r = e;
|
|
1478
688
|
const c = {
|
|
1479
689
|
ok: !1,
|
|
@@ -1485,7 +695,7 @@ function kc(u, e, t) {
|
|
|
1485
695
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1486
696
|
return c;
|
|
1487
697
|
if (n === 62)
|
|
1488
|
-
return c.pos = r + 1, c.str =
|
|
698
|
+
return c.pos = r + 1, c.str = W(u.slice(e + 1, r)), c.ok = !0, c;
|
|
1489
699
|
if (n === 92 && r + 1 < t) {
|
|
1490
700
|
r += 2;
|
|
1491
701
|
continue;
|
|
@@ -1494,7 +704,7 @@ function kc(u, e, t) {
|
|
|
1494
704
|
}
|
|
1495
705
|
return c;
|
|
1496
706
|
}
|
|
1497
|
-
let
|
|
707
|
+
let o = 0;
|
|
1498
708
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
1499
709
|
if (n === 92 && r + 1 < t) {
|
|
1500
710
|
if (u.charCodeAt(r + 1) === 32)
|
|
@@ -1502,20 +712,20 @@ function kc(u, e, t) {
|
|
|
1502
712
|
r += 2;
|
|
1503
713
|
continue;
|
|
1504
714
|
}
|
|
1505
|
-
if (n === 40 && (
|
|
715
|
+
if (n === 40 && (o++, o > 32))
|
|
1506
716
|
return c;
|
|
1507
717
|
if (n === 41) {
|
|
1508
|
-
if (
|
|
718
|
+
if (o === 0)
|
|
1509
719
|
break;
|
|
1510
|
-
|
|
720
|
+
o--;
|
|
1511
721
|
}
|
|
1512
722
|
r++;
|
|
1513
723
|
}
|
|
1514
|
-
return e === r ||
|
|
724
|
+
return e === r || o !== 0 || (c.str = W(u.slice(e, r)), c.pos = r, c.ok = !0), c;
|
|
1515
725
|
}
|
|
1516
|
-
function
|
|
726
|
+
function Le(u, e, t, n) {
|
|
1517
727
|
let r, c = e;
|
|
1518
|
-
const
|
|
728
|
+
const o = {
|
|
1519
729
|
// if `true`, this is a valid link title
|
|
1520
730
|
ok: !1,
|
|
1521
731
|
// if `true`, this link can be continued on the next line
|
|
@@ -1528,122 +738,122 @@ function Ec(u, e, t, n) {
|
|
|
1528
738
|
marker: 0
|
|
1529
739
|
};
|
|
1530
740
|
if (n)
|
|
1531
|
-
|
|
741
|
+
o.str = n.str, o.marker = n.marker;
|
|
1532
742
|
else {
|
|
1533
743
|
if (c >= t)
|
|
1534
|
-
return
|
|
1535
|
-
let
|
|
1536
|
-
if (
|
|
1537
|
-
return
|
|
1538
|
-
e++, c++,
|
|
744
|
+
return o;
|
|
745
|
+
let i = u.charCodeAt(c);
|
|
746
|
+
if (i !== 34 && i !== 39 && i !== 40)
|
|
747
|
+
return o;
|
|
748
|
+
e++, c++, i === 40 && (i = 41), o.marker = i;
|
|
1539
749
|
}
|
|
1540
750
|
for (; c < t; ) {
|
|
1541
|
-
if (r = u.charCodeAt(c), r ===
|
|
1542
|
-
return
|
|
1543
|
-
if (r === 40 &&
|
|
1544
|
-
return
|
|
751
|
+
if (r = u.charCodeAt(c), r === o.marker)
|
|
752
|
+
return o.pos = c + 1, o.str += W(u.slice(e, c)), o.ok = !0, o;
|
|
753
|
+
if (r === 40 && o.marker === 41)
|
|
754
|
+
return o;
|
|
1545
755
|
r === 92 && c + 1 < t && c++, c++;
|
|
1546
756
|
}
|
|
1547
|
-
return
|
|
757
|
+
return o.can_continue = !0, o.str += W(u.slice(e, c)), o;
|
|
1548
758
|
}
|
|
1549
|
-
const
|
|
759
|
+
const Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1550
760
|
__proto__: null,
|
|
1551
|
-
parseLinkDestination:
|
|
1552
|
-
parseLinkLabel:
|
|
1553
|
-
parseLinkTitle:
|
|
1554
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1555
|
-
|
|
761
|
+
parseLinkDestination: Re,
|
|
762
|
+
parseLinkLabel: qe,
|
|
763
|
+
parseLinkTitle: Le
|
|
764
|
+
}, Symbol.toStringTag, { value: "Module" })), q = {};
|
|
765
|
+
q.code_inline = function(u, e, t, n, r) {
|
|
1556
766
|
const c = u[e];
|
|
1557
|
-
return "<code" + r.renderAttrs(c) + ">" +
|
|
767
|
+
return "<code" + r.renderAttrs(c) + ">" + j(c.content) + "</code>";
|
|
1558
768
|
};
|
|
1559
|
-
|
|
769
|
+
q.code_block = function(u, e, t, n, r) {
|
|
1560
770
|
const c = u[e];
|
|
1561
|
-
return "<pre" + r.renderAttrs(c) + "><code>" +
|
|
771
|
+
return "<pre" + r.renderAttrs(c) + "><code>" + j(u[e].content) + `</code></pre>
|
|
1562
772
|
`;
|
|
1563
773
|
};
|
|
1564
|
-
|
|
1565
|
-
const c = u[e],
|
|
1566
|
-
let
|
|
1567
|
-
if (
|
|
1568
|
-
const f =
|
|
1569
|
-
|
|
774
|
+
q.fence = function(u, e, t, n, r) {
|
|
775
|
+
const c = u[e], o = c.info ? W(c.info).trim() : "";
|
|
776
|
+
let i = "", a = "";
|
|
777
|
+
if (o) {
|
|
778
|
+
const f = o.split(/(\s+)/g);
|
|
779
|
+
i = f[0], a = f.slice(2).join("");
|
|
1570
780
|
}
|
|
1571
781
|
let s;
|
|
1572
|
-
if (t.highlight ? s = t.highlight(c.content,
|
|
782
|
+
if (t.highlight ? s = t.highlight(c.content, i, a) || j(c.content) : s = j(c.content), s.indexOf("<pre") === 0)
|
|
1573
783
|
return s + `
|
|
1574
784
|
`;
|
|
1575
|
-
if (
|
|
1576
|
-
const f = c.attrIndex("class"),
|
|
1577
|
-
f < 0 ?
|
|
1578
|
-
const
|
|
1579
|
-
attrs:
|
|
785
|
+
if (o) {
|
|
786
|
+
const f = c.attrIndex("class"), d = c.attrs ? c.attrs.slice() : [];
|
|
787
|
+
f < 0 ? d.push(["class", t.langPrefix + i]) : (d[f] = d[f].slice(), d[f][1] += " " + t.langPrefix + i);
|
|
788
|
+
const h = {
|
|
789
|
+
attrs: d
|
|
1580
790
|
};
|
|
1581
|
-
return `<pre><code${r.renderAttrs(
|
|
791
|
+
return `<pre><code${r.renderAttrs(h)}>${s}</code></pre>
|
|
1582
792
|
`;
|
|
1583
793
|
}
|
|
1584
794
|
return `<pre><code${r.renderAttrs(c)}>${s}</code></pre>
|
|
1585
795
|
`;
|
|
1586
796
|
};
|
|
1587
|
-
|
|
797
|
+
q.image = function(u, e, t, n, r) {
|
|
1588
798
|
const c = u[e];
|
|
1589
799
|
return c.attrs[c.attrIndex("alt")][1] = r.renderInlineAsText(c.children, t, n), r.renderToken(u, e, t);
|
|
1590
800
|
};
|
|
1591
|
-
|
|
801
|
+
q.hardbreak = function(u, e, t) {
|
|
1592
802
|
return t.xhtmlOut ? `<br />
|
|
1593
803
|
` : `<br>
|
|
1594
804
|
`;
|
|
1595
805
|
};
|
|
1596
|
-
|
|
806
|
+
q.softbreak = function(u, e, t) {
|
|
1597
807
|
return t.breaks ? t.xhtmlOut ? `<br />
|
|
1598
808
|
` : `<br>
|
|
1599
809
|
` : `
|
|
1600
810
|
`;
|
|
1601
811
|
};
|
|
1602
|
-
|
|
1603
|
-
return
|
|
812
|
+
q.text = function(u, e) {
|
|
813
|
+
return j(u[e].content);
|
|
1604
814
|
};
|
|
1605
|
-
|
|
815
|
+
q.html_block = function(u, e) {
|
|
1606
816
|
return u[e].content;
|
|
1607
817
|
};
|
|
1608
|
-
|
|
818
|
+
q.html_inline = function(u, e) {
|
|
1609
819
|
return u[e].content;
|
|
1610
820
|
};
|
|
1611
|
-
function
|
|
1612
|
-
this.rules =
|
|
821
|
+
function Q() {
|
|
822
|
+
this.rules = du({}, q);
|
|
1613
823
|
}
|
|
1614
|
-
|
|
824
|
+
Q.prototype.renderAttrs = function(e) {
|
|
1615
825
|
let t, n, r;
|
|
1616
826
|
if (!e.attrs)
|
|
1617
827
|
return "";
|
|
1618
828
|
for (r = "", t = 0, n = e.attrs.length; t < n; t++)
|
|
1619
|
-
r += " " +
|
|
829
|
+
r += " " + j(e.attrs[t][0]) + '="' + j(e.attrs[t][1]) + '"';
|
|
1620
830
|
return r;
|
|
1621
831
|
};
|
|
1622
|
-
|
|
832
|
+
Q.prototype.renderToken = function(e, t, n) {
|
|
1623
833
|
const r = e[t];
|
|
1624
834
|
let c = "";
|
|
1625
835
|
if (r.hidden)
|
|
1626
836
|
return "";
|
|
1627
837
|
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (c += `
|
|
1628
838
|
`), c += (r.nesting === -1 ? "</" : "<") + r.tag, c += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (c += " /");
|
|
1629
|
-
let
|
|
1630
|
-
if (r.block && (
|
|
1631
|
-
const
|
|
1632
|
-
(
|
|
839
|
+
let o = !1;
|
|
840
|
+
if (r.block && (o = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
841
|
+
const i = e[t + 1];
|
|
842
|
+
(i.type === "inline" || i.hidden || i.nesting === -1 && i.tag === r.tag) && (o = !1);
|
|
1633
843
|
}
|
|
1634
|
-
return c +=
|
|
844
|
+
return c += o ? `>
|
|
1635
845
|
` : ">", c;
|
|
1636
846
|
};
|
|
1637
|
-
|
|
847
|
+
Q.prototype.renderInline = function(u, e, t) {
|
|
1638
848
|
let n = "";
|
|
1639
849
|
const r = this.rules;
|
|
1640
|
-
for (let c = 0,
|
|
1641
|
-
const
|
|
1642
|
-
typeof r[
|
|
850
|
+
for (let c = 0, o = u.length; c < o; c++) {
|
|
851
|
+
const i = u[c].type;
|
|
852
|
+
typeof r[i] < "u" ? n += r[i](u, c, e, t, this) : n += this.renderToken(u, c, e);
|
|
1643
853
|
}
|
|
1644
854
|
return n;
|
|
1645
855
|
};
|
|
1646
|
-
|
|
856
|
+
Q.prototype.renderInlineAsText = function(u, e, t) {
|
|
1647
857
|
let n = "";
|
|
1648
858
|
for (let r = 0, c = u.length; r < c; r++)
|
|
1649
859
|
switch (u[r].type) {
|
|
@@ -1665,25 +875,25 @@ Nu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1665
875
|
}
|
|
1666
876
|
return n;
|
|
1667
877
|
};
|
|
1668
|
-
|
|
878
|
+
Q.prototype.render = function(u, e, t) {
|
|
1669
879
|
let n = "";
|
|
1670
880
|
const r = this.rules;
|
|
1671
|
-
for (let c = 0,
|
|
1672
|
-
const
|
|
1673
|
-
|
|
881
|
+
for (let c = 0, o = u.length; c < o; c++) {
|
|
882
|
+
const i = u[c].type;
|
|
883
|
+
i === "inline" ? n += this.renderInline(u[c].children, e, t) : typeof r[i] < "u" ? n += r[i](u, c, e, t, this) : n += this.renderToken(u, c, e, t);
|
|
1674
884
|
}
|
|
1675
885
|
return n;
|
|
1676
886
|
};
|
|
1677
|
-
function
|
|
887
|
+
function w() {
|
|
1678
888
|
this.__rules__ = [], this.__cache__ = null;
|
|
1679
889
|
}
|
|
1680
|
-
|
|
890
|
+
w.prototype.__find__ = function(u) {
|
|
1681
891
|
for (let e = 0; e < this.__rules__.length; e++)
|
|
1682
892
|
if (this.__rules__[e].name === u)
|
|
1683
893
|
return e;
|
|
1684
894
|
return -1;
|
|
1685
895
|
};
|
|
1686
|
-
|
|
896
|
+
w.prototype.__compile__ = function() {
|
|
1687
897
|
const u = this, e = [""];
|
|
1688
898
|
u.__rules__.forEach(function(t) {
|
|
1689
899
|
t.enabled && t.alt.forEach(function(n) {
|
|
@@ -1695,13 +905,13 @@ V.prototype.__compile__ = function() {
|
|
|
1695
905
|
});
|
|
1696
906
|
});
|
|
1697
907
|
};
|
|
1698
|
-
|
|
908
|
+
w.prototype.at = function(u, e, t) {
|
|
1699
909
|
const n = this.__find__(u), r = t || {};
|
|
1700
910
|
if (n === -1)
|
|
1701
911
|
throw new Error("Parser rule not found: " + u);
|
|
1702
912
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1703
913
|
};
|
|
1704
|
-
|
|
914
|
+
w.prototype.before = function(u, e, t, n) {
|
|
1705
915
|
const r = this.__find__(u), c = n || {};
|
|
1706
916
|
if (r === -1)
|
|
1707
917
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1712,7 +922,7 @@ V.prototype.before = function(u, e, t, n) {
|
|
|
1712
922
|
alt: c.alt || []
|
|
1713
923
|
}), this.__cache__ = null;
|
|
1714
924
|
};
|
|
1715
|
-
|
|
925
|
+
w.prototype.after = function(u, e, t, n) {
|
|
1716
926
|
const r = this.__find__(u), c = n || {};
|
|
1717
927
|
if (r === -1)
|
|
1718
928
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1723,7 +933,7 @@ V.prototype.after = function(u, e, t, n) {
|
|
|
1723
933
|
alt: c.alt || []
|
|
1724
934
|
}), this.__cache__ = null;
|
|
1725
935
|
};
|
|
1726
|
-
|
|
936
|
+
w.prototype.push = function(u, e, t) {
|
|
1727
937
|
const n = t || {};
|
|
1728
938
|
this.__rules__.push({
|
|
1729
939
|
name: u,
|
|
@@ -1732,7 +942,7 @@ V.prototype.push = function(u, e, t) {
|
|
|
1732
942
|
alt: n.alt || []
|
|
1733
943
|
}), this.__cache__ = null;
|
|
1734
944
|
};
|
|
1735
|
-
|
|
945
|
+
w.prototype.enable = function(u, e) {
|
|
1736
946
|
Array.isArray(u) || (u = [u]);
|
|
1737
947
|
const t = [];
|
|
1738
948
|
return u.forEach(function(n) {
|
|
@@ -1745,12 +955,12 @@ V.prototype.enable = function(u, e) {
|
|
|
1745
955
|
this.__rules__[r].enabled = !0, t.push(n);
|
|
1746
956
|
}, this), this.__cache__ = null, t;
|
|
1747
957
|
};
|
|
1748
|
-
|
|
958
|
+
w.prototype.enableOnly = function(u, e) {
|
|
1749
959
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
|
1750
960
|
t.enabled = !1;
|
|
1751
961
|
}), this.enable(u, e);
|
|
1752
962
|
};
|
|
1753
|
-
|
|
963
|
+
w.prototype.disable = function(u, e) {
|
|
1754
964
|
Array.isArray(u) || (u = [u]);
|
|
1755
965
|
const t = [];
|
|
1756
966
|
return u.forEach(function(n) {
|
|
@@ -1763,13 +973,13 @@ V.prototype.disable = function(u, e) {
|
|
|
1763
973
|
this.__rules__[r].enabled = !1, t.push(n);
|
|
1764
974
|
}, this), this.__cache__ = null, t;
|
|
1765
975
|
};
|
|
1766
|
-
|
|
976
|
+
w.prototype.getRules = function(u) {
|
|
1767
977
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1768
978
|
};
|
|
1769
|
-
function
|
|
979
|
+
function z(u, e, t) {
|
|
1770
980
|
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;
|
|
1771
981
|
}
|
|
1772
|
-
|
|
982
|
+
z.prototype.attrIndex = function(e) {
|
|
1773
983
|
if (!this.attrs)
|
|
1774
984
|
return -1;
|
|
1775
985
|
const t = this.attrs;
|
|
@@ -1778,284 +988,284 @@ uu.prototype.attrIndex = function(e) {
|
|
|
1778
988
|
return n;
|
|
1779
989
|
return -1;
|
|
1780
990
|
};
|
|
1781
|
-
|
|
991
|
+
z.prototype.attrPush = function(e) {
|
|
1782
992
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1783
993
|
};
|
|
1784
|
-
|
|
994
|
+
z.prototype.attrSet = function(e, t) {
|
|
1785
995
|
const n = this.attrIndex(e), r = [e, t];
|
|
1786
996
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1787
997
|
};
|
|
1788
|
-
|
|
998
|
+
z.prototype.attrGet = function(e) {
|
|
1789
999
|
const t = this.attrIndex(e);
|
|
1790
1000
|
let n = null;
|
|
1791
1001
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1792
1002
|
};
|
|
1793
|
-
|
|
1003
|
+
z.prototype.attrJoin = function(e, t) {
|
|
1794
1004
|
const n = this.attrIndex(e);
|
|
1795
1005
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1796
1006
|
};
|
|
1797
|
-
function
|
|
1007
|
+
function _0(u, e, t) {
|
|
1798
1008
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1799
1009
|
}
|
|
1800
|
-
|
|
1801
|
-
const
|
|
1802
|
-
function
|
|
1010
|
+
_0.prototype.Token = z;
|
|
1011
|
+
const Oe = /\r\n?|\n/g, Ne = /\0/g;
|
|
1012
|
+
function $e(u) {
|
|
1803
1013
|
let e;
|
|
1804
|
-
e = u.src.replace(
|
|
1805
|
-
`), e = e.replace(
|
|
1014
|
+
e = u.src.replace(Oe, `
|
|
1015
|
+
`), e = e.replace(Ne, "�"), u.src = e;
|
|
1806
1016
|
}
|
|
1807
|
-
function
|
|
1017
|
+
function je(u) {
|
|
1808
1018
|
let e;
|
|
1809
1019
|
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);
|
|
1810
1020
|
}
|
|
1811
|
-
function
|
|
1021
|
+
function Ue(u) {
|
|
1812
1022
|
const e = u.tokens;
|
|
1813
1023
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1814
1024
|
const r = e[t];
|
|
1815
1025
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1816
1026
|
}
|
|
1817
1027
|
}
|
|
1818
|
-
function
|
|
1028
|
+
function Ze(u) {
|
|
1819
1029
|
return /^<a[>\s]/i.test(u);
|
|
1820
1030
|
}
|
|
1821
|
-
function
|
|
1031
|
+
function He(u) {
|
|
1822
1032
|
return /^<\/a\s*>/i.test(u);
|
|
1823
1033
|
}
|
|
1824
|
-
function
|
|
1034
|
+
function Ve(u) {
|
|
1825
1035
|
const e = u.tokens;
|
|
1826
1036
|
if (u.md.options.linkify)
|
|
1827
1037
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1828
1038
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1829
1039
|
continue;
|
|
1830
1040
|
let r = e[t].children, c = 0;
|
|
1831
|
-
for (let
|
|
1832
|
-
const
|
|
1833
|
-
if (
|
|
1834
|
-
for (
|
|
1835
|
-
|
|
1041
|
+
for (let o = r.length - 1; o >= 0; o--) {
|
|
1042
|
+
const i = r[o];
|
|
1043
|
+
if (i.type === "link_close") {
|
|
1044
|
+
for (o--; r[o].level !== i.level && r[o].type !== "link_open"; )
|
|
1045
|
+
o--;
|
|
1836
1046
|
continue;
|
|
1837
1047
|
}
|
|
1838
|
-
if (
|
|
1839
|
-
const a =
|
|
1048
|
+
if (i.type === "html_inline" && (Ze(i.content) && c > 0 && c--, He(i.content) && c++), !(c > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
|
|
1049
|
+
const a = i.content;
|
|
1840
1050
|
let s = u.md.linkify.match(a);
|
|
1841
1051
|
const f = [];
|
|
1842
|
-
let
|
|
1843
|
-
s.length > 0 && s[0].index === 0 &&
|
|
1844
|
-
for (let
|
|
1845
|
-
const
|
|
1846
|
-
if (!u.md.validateLink(
|
|
1052
|
+
let d = i.level, h = 0;
|
|
1053
|
+
s.length > 0 && s[0].index === 0 && o > 0 && r[o - 1].type === "text_special" && (s = s.slice(1));
|
|
1054
|
+
for (let b = 0; b < s.length; b++) {
|
|
1055
|
+
const l = s[b].url, k = u.md.normalizeLink(l);
|
|
1056
|
+
if (!u.md.validateLink(k))
|
|
1847
1057
|
continue;
|
|
1848
|
-
let
|
|
1849
|
-
s[
|
|
1850
|
-
const
|
|
1851
|
-
if (
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1058
|
+
let g = s[b].text;
|
|
1059
|
+
s[b].schema ? s[b].schema === "mailto:" && !/^mailto:/i.test(g) ? g = u.md.normalizeLinkText("mailto:" + g).replace(/^mailto:/, "") : g = u.md.normalizeLinkText(g) : g = u.md.normalizeLinkText("http://" + g).replace(/^http:\/\//, "");
|
|
1060
|
+
const C = s[b].index;
|
|
1061
|
+
if (C > h) {
|
|
1062
|
+
const m = new u.Token("text", "", 0);
|
|
1063
|
+
m.content = a.slice(h, C), m.level = d, f.push(m);
|
|
1854
1064
|
}
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1859
|
-
const
|
|
1860
|
-
|
|
1065
|
+
const p = new u.Token("link_open", "a", 1);
|
|
1066
|
+
p.attrs = [["href", k]], p.level = d++, p.markup = "linkify", p.info = "auto", f.push(p);
|
|
1067
|
+
const _ = new u.Token("text", "", 0);
|
|
1068
|
+
_.content = g, _.level = d, f.push(_);
|
|
1069
|
+
const x = new u.Token("link_close", "a", -1);
|
|
1070
|
+
x.level = --d, x.markup = "linkify", x.info = "auto", f.push(x), h = s[b].lastIndex;
|
|
1861
1071
|
}
|
|
1862
|
-
if (
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1072
|
+
if (h < a.length) {
|
|
1073
|
+
const b = new u.Token("text", "", 0);
|
|
1074
|
+
b.content = a.slice(h), b.level = d, f.push(b);
|
|
1865
1075
|
}
|
|
1866
|
-
e[t].children = r =
|
|
1076
|
+
e[t].children = r = p0(r, o, f);
|
|
1867
1077
|
}
|
|
1868
1078
|
}
|
|
1869
1079
|
}
|
|
1870
1080
|
}
|
|
1871
|
-
const
|
|
1081
|
+
const m0 = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Ge = /\((c|tm|r)\)/i, We = /\((c|tm|r)\)/ig, Je = {
|
|
1872
1082
|
c: "©",
|
|
1873
1083
|
r: "®",
|
|
1874
1084
|
tm: "™"
|
|
1875
1085
|
};
|
|
1876
|
-
function
|
|
1877
|
-
return
|
|
1086
|
+
function Qe(u, e) {
|
|
1087
|
+
return Je[e.toLowerCase()];
|
|
1878
1088
|
}
|
|
1879
|
-
function
|
|
1089
|
+
function Xe(u) {
|
|
1880
1090
|
let e = 0;
|
|
1881
1091
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1882
1092
|
const n = u[t];
|
|
1883
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
1093
|
+
n.type === "text" && !e && (n.content = n.content.replace(We, Qe)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1884
1094
|
}
|
|
1885
1095
|
}
|
|
1886
|
-
function
|
|
1096
|
+
function Ye(u) {
|
|
1887
1097
|
let e = 0;
|
|
1888
1098
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1889
1099
|
const n = u[t];
|
|
1890
|
-
n.type === "text" && !e &&
|
|
1100
|
+
n.type === "text" && !e && m0.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++;
|
|
1891
1101
|
}
|
|
1892
1102
|
}
|
|
1893
|
-
function
|
|
1103
|
+
function Ke(u) {
|
|
1894
1104
|
let e;
|
|
1895
1105
|
if (u.md.options.typographer)
|
|
1896
1106
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1897
|
-
u.tokens[e].type === "inline" && (
|
|
1107
|
+
u.tokens[e].type === "inline" && (Ge.test(u.tokens[e].content) && Xe(u.tokens[e].children), m0.test(u.tokens[e].content) && Ye(u.tokens[e].children));
|
|
1898
1108
|
}
|
|
1899
|
-
const
|
|
1900
|
-
function
|
|
1109
|
+
const ut = /['"]/, Wu = /['"]/g, Ju = "’";
|
|
1110
|
+
function iu(u, e, t) {
|
|
1901
1111
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1902
1112
|
}
|
|
1903
|
-
function
|
|
1113
|
+
function et(u, e) {
|
|
1904
1114
|
let t;
|
|
1905
1115
|
const n = [];
|
|
1906
1116
|
for (let r = 0; r < u.length; r++) {
|
|
1907
|
-
const c = u[r],
|
|
1908
|
-
for (t = n.length - 1; t >= 0 && !(n[t].level <=
|
|
1117
|
+
const c = u[r], o = u[r].level;
|
|
1118
|
+
for (t = n.length - 1; t >= 0 && !(n[t].level <= o); t--)
|
|
1909
1119
|
;
|
|
1910
1120
|
if (n.length = t + 1, c.type !== "text")
|
|
1911
1121
|
continue;
|
|
1912
|
-
let
|
|
1122
|
+
let i = c.content, a = 0, s = i.length;
|
|
1913
1123
|
u:
|
|
1914
1124
|
for (; a < s; ) {
|
|
1915
|
-
|
|
1916
|
-
const f =
|
|
1125
|
+
Wu.lastIndex = a;
|
|
1126
|
+
const f = Wu.exec(i);
|
|
1917
1127
|
if (!f)
|
|
1918
1128
|
break;
|
|
1919
|
-
let
|
|
1129
|
+
let d = !0, h = !0;
|
|
1920
1130
|
a = f.index + 1;
|
|
1921
|
-
const
|
|
1922
|
-
let
|
|
1131
|
+
const b = f[0] === "'";
|
|
1132
|
+
let l = 32;
|
|
1923
1133
|
if (f.index - 1 >= 0)
|
|
1924
|
-
|
|
1134
|
+
l = i.charCodeAt(f.index - 1);
|
|
1925
1135
|
else
|
|
1926
1136
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
1927
1137
|
if (u[t].content) {
|
|
1928
|
-
|
|
1138
|
+
l = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1929
1139
|
break;
|
|
1930
1140
|
}
|
|
1931
|
-
let
|
|
1141
|
+
let k = 32;
|
|
1932
1142
|
if (a < s)
|
|
1933
|
-
|
|
1143
|
+
k = i.charCodeAt(a);
|
|
1934
1144
|
else
|
|
1935
1145
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1936
1146
|
if (u[t].content) {
|
|
1937
|
-
|
|
1147
|
+
k = u[t].content.charCodeAt(0);
|
|
1938
1148
|
break;
|
|
1939
1149
|
}
|
|
1940
|
-
const
|
|
1941
|
-
if (
|
|
1942
|
-
|
|
1150
|
+
const g = uu(l) || K(String.fromCharCode(l)), C = uu(k) || K(String.fromCharCode(k)), p = Y(l), _ = Y(k);
|
|
1151
|
+
if (_ ? d = !1 : C && (p || g || (d = !1)), p ? h = !1 : g && (_ || C || (h = !1)), k === 34 && f[0] === '"' && l >= 48 && l <= 57 && (h = d = !1), d && h && (d = g, h = C), !d && !h) {
|
|
1152
|
+
b && (c.content = iu(c.content, f.index, Ju));
|
|
1943
1153
|
continue;
|
|
1944
1154
|
}
|
|
1945
|
-
if (
|
|
1155
|
+
if (h)
|
|
1946
1156
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1947
|
-
let
|
|
1948
|
-
if (n[t].level <
|
|
1157
|
+
let x = n[t];
|
|
1158
|
+
if (n[t].level < o)
|
|
1949
1159
|
break;
|
|
1950
|
-
if (
|
|
1951
|
-
|
|
1952
|
-
let
|
|
1953
|
-
|
|
1954
|
-
u[
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
), a +=
|
|
1160
|
+
if (x.single === b && n[t].level === o) {
|
|
1161
|
+
x = n[t];
|
|
1162
|
+
let m, D;
|
|
1163
|
+
b ? (m = e.md.options.quotes[2], D = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], D = e.md.options.quotes[1]), c.content = iu(c.content, f.index, D), u[x.token].content = iu(
|
|
1164
|
+
u[x.token].content,
|
|
1165
|
+
x.pos,
|
|
1166
|
+
m
|
|
1167
|
+
), a += D.length - 1, x.token === r && (a += m.length - 1), i = c.content, s = i.length, n.length = t;
|
|
1958
1168
|
continue u;
|
|
1959
1169
|
}
|
|
1960
1170
|
}
|
|
1961
|
-
|
|
1171
|
+
d ? n.push({
|
|
1962
1172
|
token: r,
|
|
1963
1173
|
pos: f.index,
|
|
1964
|
-
single:
|
|
1965
|
-
level:
|
|
1966
|
-
}) :
|
|
1174
|
+
single: b,
|
|
1175
|
+
level: o
|
|
1176
|
+
}) : h && b && (c.content = iu(c.content, f.index, Ju));
|
|
1967
1177
|
}
|
|
1968
1178
|
}
|
|
1969
1179
|
}
|
|
1970
|
-
function
|
|
1180
|
+
function tt(u) {
|
|
1971
1181
|
if (u.md.options.typographer)
|
|
1972
1182
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
1973
|
-
u.tokens[e].type !== "inline" || !
|
|
1183
|
+
u.tokens[e].type !== "inline" || !ut.test(u.tokens[e].content) || et(u.tokens[e].children, u);
|
|
1974
1184
|
}
|
|
1975
|
-
function
|
|
1185
|
+
function rt(u) {
|
|
1976
1186
|
let e, t;
|
|
1977
1187
|
const n = u.tokens, r = n.length;
|
|
1978
1188
|
for (let c = 0; c < r; c++) {
|
|
1979
1189
|
if (n[c].type !== "inline") continue;
|
|
1980
|
-
const
|
|
1981
|
-
for (e = 0; e <
|
|
1982
|
-
|
|
1983
|
-
for (e = t = 0; e <
|
|
1984
|
-
|
|
1985
|
-
e !== t && (
|
|
1986
|
-
}
|
|
1987
|
-
}
|
|
1988
|
-
const
|
|
1989
|
-
["normalize",
|
|
1990
|
-
["block",
|
|
1991
|
-
["inline",
|
|
1992
|
-
["linkify",
|
|
1993
|
-
["replacements",
|
|
1994
|
-
["smartquotes",
|
|
1190
|
+
const o = n[c].children, i = o.length;
|
|
1191
|
+
for (e = 0; e < i; e++)
|
|
1192
|
+
o[e].type === "text_special" && (o[e].type = "text");
|
|
1193
|
+
for (e = t = 0; e < i; e++)
|
|
1194
|
+
o[e].type === "text" && e + 1 < i && o[e + 1].type === "text" ? o[e + 1].content = o[e].content + o[e + 1].content : (e !== t && (o[t] = o[e]), t++);
|
|
1195
|
+
e !== t && (o.length = t);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
const gu = [
|
|
1199
|
+
["normalize", $e],
|
|
1200
|
+
["block", je],
|
|
1201
|
+
["inline", Ue],
|
|
1202
|
+
["linkify", Ve],
|
|
1203
|
+
["replacements", Ke],
|
|
1204
|
+
["smartquotes", tt],
|
|
1995
1205
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
1996
1206
|
// and joins them with the rest of the text
|
|
1997
|
-
["text_join",
|
|
1207
|
+
["text_join", rt]
|
|
1998
1208
|
];
|
|
1999
|
-
function
|
|
2000
|
-
this.ruler = new
|
|
2001
|
-
for (let u = 0; u <
|
|
2002
|
-
this.ruler.push(
|
|
1209
|
+
function qu() {
|
|
1210
|
+
this.ruler = new w();
|
|
1211
|
+
for (let u = 0; u < gu.length; u++)
|
|
1212
|
+
this.ruler.push(gu[u][0], gu[u][1]);
|
|
2003
1213
|
}
|
|
2004
|
-
|
|
1214
|
+
qu.prototype.process = function(u) {
|
|
2005
1215
|
const e = this.ruler.getRules("");
|
|
2006
1216
|
for (let t = 0, n = e.length; t < n; t++)
|
|
2007
1217
|
e[t](u);
|
|
2008
1218
|
};
|
|
2009
|
-
|
|
2010
|
-
function
|
|
1219
|
+
qu.prototype.State = _0;
|
|
1220
|
+
function R(u, e, t, n) {
|
|
2011
1221
|
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;
|
|
2012
1222
|
const r = this.src;
|
|
2013
|
-
for (let c = 0,
|
|
2014
|
-
const
|
|
1223
|
+
for (let c = 0, o = 0, i = 0, a = 0, s = r.length, f = !1; o < s; o++) {
|
|
1224
|
+
const d = r.charCodeAt(o);
|
|
2015
1225
|
if (!f)
|
|
2016
|
-
if (
|
|
2017
|
-
|
|
1226
|
+
if (E(d)) {
|
|
1227
|
+
i++, d === 9 ? a += 4 - a % 4 : a++;
|
|
2018
1228
|
continue;
|
|
2019
1229
|
} else
|
|
2020
1230
|
f = !0;
|
|
2021
|
-
(
|
|
1231
|
+
(d === 10 || o === s - 1) && (d !== 10 && o++, this.bMarks.push(c), this.eMarks.push(o), this.tShift.push(i), this.sCount.push(a), this.bsCount.push(0), f = !1, i = 0, a = 0, c = o + 1);
|
|
2022
1232
|
}
|
|
2023
1233
|
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;
|
|
2024
1234
|
}
|
|
2025
|
-
|
|
2026
|
-
const n = new
|
|
1235
|
+
R.prototype.push = function(u, e, t) {
|
|
1236
|
+
const n = new z(u, e, t);
|
|
2027
1237
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2028
1238
|
};
|
|
2029
|
-
|
|
1239
|
+
R.prototype.isEmpty = function(e) {
|
|
2030
1240
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
|
2031
1241
|
};
|
|
2032
|
-
|
|
1242
|
+
R.prototype.skipEmptyLines = function(e) {
|
|
2033
1243
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
|
2034
1244
|
;
|
|
2035
1245
|
return e;
|
|
2036
1246
|
};
|
|
2037
|
-
|
|
1247
|
+
R.prototype.skipSpaces = function(e) {
|
|
2038
1248
|
for (let t = this.src.length; e < t; e++) {
|
|
2039
1249
|
const n = this.src.charCodeAt(e);
|
|
2040
|
-
if (!
|
|
1250
|
+
if (!E(n))
|
|
2041
1251
|
break;
|
|
2042
1252
|
}
|
|
2043
1253
|
return e;
|
|
2044
1254
|
};
|
|
2045
|
-
|
|
1255
|
+
R.prototype.skipSpacesBack = function(e, t) {
|
|
2046
1256
|
if (e <= t)
|
|
2047
1257
|
return e;
|
|
2048
1258
|
for (; e > t; )
|
|
2049
|
-
if (!
|
|
1259
|
+
if (!E(this.src.charCodeAt(--e)))
|
|
2050
1260
|
return e + 1;
|
|
2051
1261
|
return e;
|
|
2052
1262
|
};
|
|
2053
|
-
|
|
1263
|
+
R.prototype.skipChars = function(e, t) {
|
|
2054
1264
|
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
|
|
2055
1265
|
;
|
|
2056
1266
|
return e;
|
|
2057
1267
|
};
|
|
2058
|
-
|
|
1268
|
+
R.prototype.skipCharsBack = function(e, t, n) {
|
|
2059
1269
|
if (e <= n)
|
|
2060
1270
|
return e;
|
|
2061
1271
|
for (; e > n; )
|
|
@@ -2063,42 +1273,42 @@ ou.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2063
1273
|
return e + 1;
|
|
2064
1274
|
return e;
|
|
2065
1275
|
};
|
|
2066
|
-
|
|
1276
|
+
R.prototype.getLines = function(e, t, n, r) {
|
|
2067
1277
|
if (e >= t)
|
|
2068
1278
|
return "";
|
|
2069
1279
|
const c = new Array(t - e);
|
|
2070
|
-
for (let
|
|
1280
|
+
for (let o = 0, i = e; i < t; i++, o++) {
|
|
2071
1281
|
let a = 0;
|
|
2072
|
-
const s = this.bMarks[
|
|
2073
|
-
let f = s,
|
|
2074
|
-
for (
|
|
2075
|
-
const
|
|
2076
|
-
if (
|
|
2077
|
-
|
|
2078
|
-
else if (f - s < this.tShift[
|
|
1282
|
+
const s = this.bMarks[i];
|
|
1283
|
+
let f = s, d;
|
|
1284
|
+
for (i + 1 < t || r ? d = this.eMarks[i] + 1 : d = this.eMarks[i]; f < d && a < n; ) {
|
|
1285
|
+
const h = this.src.charCodeAt(f);
|
|
1286
|
+
if (E(h))
|
|
1287
|
+
h === 9 ? a += 4 - (a + this.bsCount[i]) % 4 : a++;
|
|
1288
|
+
else if (f - s < this.tShift[i])
|
|
2079
1289
|
a++;
|
|
2080
1290
|
else
|
|
2081
1291
|
break;
|
|
2082
1292
|
f++;
|
|
2083
1293
|
}
|
|
2084
|
-
a > n ? c[
|
|
1294
|
+
a > n ? c[o] = new Array(a - n + 1).join(" ") + this.src.slice(f, d) : c[o] = this.src.slice(f, d);
|
|
2085
1295
|
}
|
|
2086
1296
|
return c.join("");
|
|
2087
1297
|
};
|
|
2088
|
-
|
|
2089
|
-
const
|
|
2090
|
-
function
|
|
1298
|
+
R.prototype.Token = z;
|
|
1299
|
+
const nt = 65536;
|
|
1300
|
+
function Du(u, e) {
|
|
2091
1301
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2092
1302
|
return u.src.slice(t, n);
|
|
2093
1303
|
}
|
|
2094
|
-
function
|
|
1304
|
+
function Qu(u) {
|
|
2095
1305
|
const e = [], t = u.length;
|
|
2096
|
-
let n = 0, r = u.charCodeAt(n), c = !1,
|
|
1306
|
+
let n = 0, r = u.charCodeAt(n), c = !1, o = 0, i = "";
|
|
2097
1307
|
for (; n < t; )
|
|
2098
|
-
r === 124 && (c ? (
|
|
2099
|
-
return e.push(
|
|
1308
|
+
r === 124 && (c ? (i += u.substring(o, n - 1), o = n) : (e.push(i + u.substring(o, n)), i = "", o = n + 1)), c = r === 92, n++, r = u.charCodeAt(n);
|
|
1309
|
+
return e.push(i + u.substring(o)), e;
|
|
2100
1310
|
}
|
|
2101
|
-
function
|
|
1311
|
+
function ct(u, e, t, n) {
|
|
2102
1312
|
if (e + 2 > t)
|
|
2103
1313
|
return !1;
|
|
2104
1314
|
let r = e + 1;
|
|
@@ -2107,81 +1317,81 @@ function $c(u, e, t, n) {
|
|
|
2107
1317
|
let c = u.bMarks[r] + u.tShift[r];
|
|
2108
1318
|
if (c >= u.eMarks[r])
|
|
2109
1319
|
return !1;
|
|
2110
|
-
const i = u.src.charCodeAt(c++);
|
|
2111
|
-
if (i !== 124 && i !== 45 && i !== 58 || c >= u.eMarks[r])
|
|
2112
|
-
return !1;
|
|
2113
1320
|
const o = u.src.charCodeAt(c++);
|
|
2114
|
-
if (o !== 124 && o !== 45 && o !== 58
|
|
1321
|
+
if (o !== 124 && o !== 45 && o !== 58 || c >= u.eMarks[r])
|
|
1322
|
+
return !1;
|
|
1323
|
+
const i = u.src.charCodeAt(c++);
|
|
1324
|
+
if (i !== 124 && i !== 45 && i !== 58 && !E(i) || o === 45 && E(i))
|
|
2115
1325
|
return !1;
|
|
2116
1326
|
for (; c < u.eMarks[r]; ) {
|
|
2117
|
-
const
|
|
2118
|
-
if (
|
|
1327
|
+
const x = u.src.charCodeAt(c);
|
|
1328
|
+
if (x !== 124 && x !== 45 && x !== 58 && !E(x))
|
|
2119
1329
|
return !1;
|
|
2120
1330
|
c++;
|
|
2121
1331
|
}
|
|
2122
|
-
let a =
|
|
1332
|
+
let a = Du(u, e + 1), s = a.split("|");
|
|
2123
1333
|
const f = [];
|
|
2124
|
-
for (let
|
|
2125
|
-
const
|
|
2126
|
-
if (!
|
|
2127
|
-
if (
|
|
1334
|
+
for (let x = 0; x < s.length; x++) {
|
|
1335
|
+
const m = s[x].trim();
|
|
1336
|
+
if (!m) {
|
|
1337
|
+
if (x === 0 || x === s.length - 1)
|
|
2128
1338
|
continue;
|
|
2129
1339
|
return !1;
|
|
2130
1340
|
}
|
|
2131
|
-
if (!/^:?-+:?$/.test(
|
|
1341
|
+
if (!/^:?-+:?$/.test(m))
|
|
2132
1342
|
return !1;
|
|
2133
|
-
|
|
1343
|
+
m.charCodeAt(m.length - 1) === 58 ? f.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? f.push("left") : f.push("");
|
|
2134
1344
|
}
|
|
2135
|
-
if (a =
|
|
1345
|
+
if (a = Du(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2136
1346
|
return !1;
|
|
2137
|
-
s =
|
|
2138
|
-
const
|
|
2139
|
-
if (
|
|
1347
|
+
s = Qu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
1348
|
+
const d = s.length;
|
|
1349
|
+
if (d === 0 || d !== f.length)
|
|
2140
1350
|
return !1;
|
|
2141
1351
|
if (n)
|
|
2142
1352
|
return !0;
|
|
2143
|
-
const
|
|
1353
|
+
const h = u.parentType;
|
|
2144
1354
|
u.parentType = "table";
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2147
|
-
const
|
|
2148
|
-
|
|
2149
|
-
const
|
|
2150
|
-
|
|
2151
|
-
for (let
|
|
2152
|
-
const
|
|
2153
|
-
f[
|
|
2154
|
-
const
|
|
2155
|
-
|
|
1355
|
+
const b = u.md.block.ruler.getRules("blockquote"), l = u.push("table_open", "table", 1), k = [e, 0];
|
|
1356
|
+
l.map = k;
|
|
1357
|
+
const g = u.push("thead_open", "thead", 1);
|
|
1358
|
+
g.map = [e, e + 1];
|
|
1359
|
+
const C = u.push("tr_open", "tr", 1);
|
|
1360
|
+
C.map = [e, e + 1];
|
|
1361
|
+
for (let x = 0; x < s.length; x++) {
|
|
1362
|
+
const m = u.push("th_open", "th", 1);
|
|
1363
|
+
f[x] && (m.attrs = [["style", "text-align:" + f[x]]]);
|
|
1364
|
+
const D = u.push("inline", "", 0);
|
|
1365
|
+
D.content = s[x].trim(), D.children = [], u.push("th_close", "th", -1);
|
|
2156
1366
|
}
|
|
2157
1367
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
2158
|
-
let
|
|
1368
|
+
let p, _ = 0;
|
|
2159
1369
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2160
|
-
let
|
|
2161
|
-
for (let
|
|
2162
|
-
if (
|
|
2163
|
-
|
|
1370
|
+
let x = !1;
|
|
1371
|
+
for (let D = 0, y = b.length; D < y; D++)
|
|
1372
|
+
if (b[D](u, r, t, !0)) {
|
|
1373
|
+
x = !0;
|
|
2164
1374
|
break;
|
|
2165
1375
|
}
|
|
2166
|
-
if (
|
|
1376
|
+
if (x || (a = Du(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = Qu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), _ += d - s.length, _ > nt))
|
|
2167
1377
|
break;
|
|
2168
1378
|
if (r === e + 2) {
|
|
2169
|
-
const
|
|
2170
|
-
|
|
1379
|
+
const D = u.push("tbody_open", "tbody", 1);
|
|
1380
|
+
D.map = p = [e + 2, 0];
|
|
2171
1381
|
}
|
|
2172
|
-
const
|
|
2173
|
-
|
|
2174
|
-
for (let
|
|
2175
|
-
const
|
|
2176
|
-
f[
|
|
2177
|
-
const
|
|
2178
|
-
|
|
1382
|
+
const m = u.push("tr_open", "tr", 1);
|
|
1383
|
+
m.map = [r, r + 1];
|
|
1384
|
+
for (let D = 0; D < d; D++) {
|
|
1385
|
+
const y = u.push("td_open", "td", 1);
|
|
1386
|
+
f[D] && (y.attrs = [["style", "text-align:" + f[D]]]);
|
|
1387
|
+
const T = u.push("inline", "", 0);
|
|
1388
|
+
T.content = s[D] ? s[D].trim() : "", T.children = [], u.push("td_close", "td", -1);
|
|
2179
1389
|
}
|
|
2180
1390
|
u.push("tr_close", "tr", -1);
|
|
2181
1391
|
}
|
|
2182
|
-
return
|
|
1392
|
+
return p && (u.push("tbody_close", "tbody", -1), p[1] = r), u.push("table_close", "table", -1), k[1] = r, u.parentType = h, u.line = r, !0;
|
|
2183
1393
|
}
|
|
2184
|
-
function
|
|
1394
|
+
function it(u, e, t) {
|
|
2185
1395
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2186
1396
|
return !1;
|
|
2187
1397
|
let n = e + 1, r = n;
|
|
@@ -2201,112 +1411,112 @@ function jc(u, e, t) {
|
|
|
2201
1411
|
return c.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2202
1412
|
`, c.map = [e, u.line], !0;
|
|
2203
1413
|
}
|
|
2204
|
-
function
|
|
1414
|
+
function ot(u, e, t, n) {
|
|
2205
1415
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2206
1416
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > c)
|
|
2207
1417
|
return !1;
|
|
2208
|
-
const
|
|
2209
|
-
if (
|
|
1418
|
+
const o = u.src.charCodeAt(r);
|
|
1419
|
+
if (o !== 126 && o !== 96)
|
|
2210
1420
|
return !1;
|
|
2211
|
-
let
|
|
2212
|
-
r = u.skipChars(r,
|
|
2213
|
-
let a = r -
|
|
1421
|
+
let i = r;
|
|
1422
|
+
r = u.skipChars(r, o);
|
|
1423
|
+
let a = r - i;
|
|
2214
1424
|
if (a < 3)
|
|
2215
1425
|
return !1;
|
|
2216
|
-
const s = u.src.slice(
|
|
2217
|
-
if (
|
|
1426
|
+
const s = u.src.slice(i, r), f = u.src.slice(r, c);
|
|
1427
|
+
if (o === 96 && f.indexOf(String.fromCharCode(o)) >= 0)
|
|
2218
1428
|
return !1;
|
|
2219
1429
|
if (n)
|
|
2220
1430
|
return !0;
|
|
2221
|
-
let
|
|
2222
|
-
for (;
|
|
2223
|
-
if (u.src.charCodeAt(r) ===
|
|
2224
|
-
|
|
1431
|
+
let d = e, h = !1;
|
|
1432
|
+
for (; d++, !(d >= t || (r = i = u.bMarks[d] + u.tShift[d], c = u.eMarks[d], r < c && u.sCount[d] < u.blkIndent)); )
|
|
1433
|
+
if (u.src.charCodeAt(r) === o && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, o), !(r - i < a) && (r = u.skipSpaces(r), !(r < c)))) {
|
|
1434
|
+
h = !0;
|
|
2225
1435
|
break;
|
|
2226
1436
|
}
|
|
2227
|
-
a = u.sCount[e], u.line =
|
|
2228
|
-
const
|
|
2229
|
-
return
|
|
1437
|
+
a = u.sCount[e], u.line = d + (h ? 1 : 0);
|
|
1438
|
+
const b = u.push("fence", "code", 0);
|
|
1439
|
+
return b.info = f, b.content = u.getLines(e + 1, d, a, !0), b.markup = s, b.map = [e, u.line], !0;
|
|
2230
1440
|
}
|
|
2231
|
-
function
|
|
1441
|
+
function at(u, e, t, n) {
|
|
2232
1442
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2233
|
-
const
|
|
1443
|
+
const o = u.lineMax;
|
|
2234
1444
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2235
1445
|
return !1;
|
|
2236
1446
|
if (n)
|
|
2237
1447
|
return !0;
|
|
2238
|
-
const
|
|
1448
|
+
const i = [], a = [], s = [], f = [], d = u.md.block.ruler.getRules("blockquote"), h = u.parentType;
|
|
2239
1449
|
u.parentType = "blockquote";
|
|
2240
|
-
let
|
|
2241
|
-
for (
|
|
2242
|
-
const
|
|
2243
|
-
if (r = u.bMarks[
|
|
1450
|
+
let b = !1, l;
|
|
1451
|
+
for (l = e; l < t; l++) {
|
|
1452
|
+
const _ = u.sCount[l] < u.blkIndent;
|
|
1453
|
+
if (r = u.bMarks[l] + u.tShift[l], c = u.eMarks[l], r >= c)
|
|
2244
1454
|
break;
|
|
2245
|
-
if (u.src.charCodeAt(r++) === 62 && !
|
|
2246
|
-
let
|
|
2247
|
-
u.src.charCodeAt(r) === 32 ? (r++,
|
|
2248
|
-
let
|
|
2249
|
-
for (
|
|
2250
|
-
const
|
|
2251
|
-
if (
|
|
2252
|
-
|
|
1455
|
+
if (u.src.charCodeAt(r++) === 62 && !_) {
|
|
1456
|
+
let m = u.sCount[l] + 1, D, y;
|
|
1457
|
+
u.src.charCodeAt(r) === 32 ? (r++, m++, y = !1, D = !0) : u.src.charCodeAt(r) === 9 ? (D = !0, (u.bsCount[l] + m) % 4 === 3 ? (r++, m++, y = !1) : y = !0) : D = !1;
|
|
1458
|
+
let T = m;
|
|
1459
|
+
for (i.push(u.bMarks[l]), u.bMarks[l] = r; r < c; ) {
|
|
1460
|
+
const P = u.src.charCodeAt(r);
|
|
1461
|
+
if (E(P))
|
|
1462
|
+
P === 9 ? T += 4 - (T + u.bsCount[l] + (y ? 1 : 0)) % 4 : T++;
|
|
2253
1463
|
else
|
|
2254
1464
|
break;
|
|
2255
1465
|
r++;
|
|
2256
1466
|
}
|
|
2257
|
-
|
|
1467
|
+
b = r >= c, a.push(u.bsCount[l]), u.bsCount[l] = u.sCount[l] + 1 + (D ? 1 : 0), s.push(u.sCount[l]), u.sCount[l] = T - m, f.push(u.tShift[l]), u.tShift[l] = r - u.bMarks[l];
|
|
2258
1468
|
continue;
|
|
2259
1469
|
}
|
|
2260
|
-
if (
|
|
1470
|
+
if (b)
|
|
2261
1471
|
break;
|
|
2262
|
-
let
|
|
2263
|
-
for (let
|
|
2264
|
-
if (
|
|
2265
|
-
|
|
1472
|
+
let x = !1;
|
|
1473
|
+
for (let m = 0, D = d.length; m < D; m++)
|
|
1474
|
+
if (d[m](u, l, t, !0)) {
|
|
1475
|
+
x = !0;
|
|
2266
1476
|
break;
|
|
2267
1477
|
}
|
|
2268
|
-
if (
|
|
2269
|
-
u.lineMax =
|
|
1478
|
+
if (x) {
|
|
1479
|
+
u.lineMax = l, u.blkIndent !== 0 && (i.push(u.bMarks[l]), a.push(u.bsCount[l]), f.push(u.tShift[l]), s.push(u.sCount[l]), u.sCount[l] -= u.blkIndent);
|
|
2270
1480
|
break;
|
|
2271
1481
|
}
|
|
2272
|
-
|
|
1482
|
+
i.push(u.bMarks[l]), a.push(u.bsCount[l]), f.push(u.tShift[l]), s.push(u.sCount[l]), u.sCount[l] = -1;
|
|
2273
1483
|
}
|
|
2274
|
-
const
|
|
1484
|
+
const k = u.blkIndent;
|
|
2275
1485
|
u.blkIndent = 0;
|
|
2276
|
-
const
|
|
2277
|
-
|
|
2278
|
-
const
|
|
2279
|
-
|
|
2280
|
-
const
|
|
2281
|
-
|
|
2282
|
-
for (let
|
|
2283
|
-
u.bMarks[
|
|
2284
|
-
return u.blkIndent =
|
|
2285
|
-
}
|
|
2286
|
-
function
|
|
1486
|
+
const g = u.push("blockquote_open", "blockquote", 1);
|
|
1487
|
+
g.markup = ">";
|
|
1488
|
+
const C = [e, 0];
|
|
1489
|
+
g.map = C, u.md.block.tokenize(u, e, l);
|
|
1490
|
+
const p = u.push("blockquote_close", "blockquote", -1);
|
|
1491
|
+
p.markup = ">", u.lineMax = o, u.parentType = h, C[1] = u.line;
|
|
1492
|
+
for (let _ = 0; _ < f.length; _++)
|
|
1493
|
+
u.bMarks[_ + e] = i[_], u.tShift[_ + e] = f[_], u.sCount[_ + e] = s[_], u.bsCount[_ + e] = a[_];
|
|
1494
|
+
return u.blkIndent = k, !0;
|
|
1495
|
+
}
|
|
1496
|
+
function st(u, e, t, n) {
|
|
2287
1497
|
const r = u.eMarks[e];
|
|
2288
1498
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2289
1499
|
return !1;
|
|
2290
1500
|
let c = u.bMarks[e] + u.tShift[e];
|
|
2291
|
-
const
|
|
2292
|
-
if (
|
|
1501
|
+
const o = u.src.charCodeAt(c++);
|
|
1502
|
+
if (o !== 42 && o !== 45 && o !== 95)
|
|
2293
1503
|
return !1;
|
|
2294
|
-
let
|
|
1504
|
+
let i = 1;
|
|
2295
1505
|
for (; c < r; ) {
|
|
2296
1506
|
const s = u.src.charCodeAt(c++);
|
|
2297
|
-
if (s !==
|
|
1507
|
+
if (s !== o && !E(s))
|
|
2298
1508
|
return !1;
|
|
2299
|
-
s ===
|
|
1509
|
+
s === o && i++;
|
|
2300
1510
|
}
|
|
2301
|
-
if (
|
|
1511
|
+
if (i < 3)
|
|
2302
1512
|
return !1;
|
|
2303
1513
|
if (n)
|
|
2304
1514
|
return !0;
|
|
2305
1515
|
u.line = e + 1;
|
|
2306
1516
|
const a = u.push("hr", "hr", 0);
|
|
2307
|
-
return a.map = [e, u.line], a.markup = Array(
|
|
1517
|
+
return a.map = [e, u.line], a.markup = Array(i + 1).join(String.fromCharCode(o)), !0;
|
|
2308
1518
|
}
|
|
2309
|
-
function
|
|
1519
|
+
function Xu(u, e) {
|
|
2310
1520
|
const t = u.eMarks[e];
|
|
2311
1521
|
let n = u.bMarks[e] + u.tShift[e];
|
|
2312
1522
|
const r = u.src.charCodeAt(n++);
|
|
@@ -2314,12 +1524,12 @@ function ht(u, e) {
|
|
|
2314
1524
|
return -1;
|
|
2315
1525
|
if (n < t) {
|
|
2316
1526
|
const c = u.src.charCodeAt(n);
|
|
2317
|
-
if (!
|
|
1527
|
+
if (!E(c))
|
|
2318
1528
|
return -1;
|
|
2319
1529
|
}
|
|
2320
1530
|
return n;
|
|
2321
1531
|
}
|
|
2322
|
-
function
|
|
1532
|
+
function Yu(u, e) {
|
|
2323
1533
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2324
1534
|
let r = t;
|
|
2325
1535
|
if (r + 1 >= n)
|
|
@@ -2339,171 +1549,171 @@ function pt(u, e) {
|
|
|
2339
1549
|
break;
|
|
2340
1550
|
return -1;
|
|
2341
1551
|
}
|
|
2342
|
-
return r < n && (c = u.src.charCodeAt(r), !
|
|
1552
|
+
return r < n && (c = u.src.charCodeAt(r), !E(c)) ? -1 : r;
|
|
2343
1553
|
}
|
|
2344
|
-
function
|
|
1554
|
+
function ft(u, e) {
|
|
2345
1555
|
const t = u.level + 2;
|
|
2346
1556
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2347
1557
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2348
1558
|
}
|
|
2349
|
-
function
|
|
2350
|
-
let r, c,
|
|
1559
|
+
function lt(u, e, t, n) {
|
|
1560
|
+
let r, c, o, i, a = e, s = !0;
|
|
2351
1561
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2352
1562
|
return !1;
|
|
2353
1563
|
let f = !1;
|
|
2354
1564
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (f = !0);
|
|
2355
|
-
let
|
|
2356
|
-
if ((
|
|
2357
|
-
if (
|
|
2358
|
-
} else if ((
|
|
2359
|
-
|
|
1565
|
+
let d, h, b;
|
|
1566
|
+
if ((b = Yu(u, a)) >= 0) {
|
|
1567
|
+
if (d = !0, o = u.bMarks[a] + u.tShift[a], h = Number(u.src.slice(o, b - 1)), f && h !== 1) return !1;
|
|
1568
|
+
} else if ((b = Xu(u, a)) >= 0)
|
|
1569
|
+
d = !1;
|
|
2360
1570
|
else
|
|
2361
1571
|
return !1;
|
|
2362
|
-
if (f && u.skipSpaces(
|
|
1572
|
+
if (f && u.skipSpaces(b) >= u.eMarks[a])
|
|
2363
1573
|
return !1;
|
|
2364
1574
|
if (n)
|
|
2365
1575
|
return !0;
|
|
2366
|
-
const
|
|
2367
|
-
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2370
|
-
let
|
|
2371
|
-
const
|
|
1576
|
+
const l = u.src.charCodeAt(b - 1), k = u.tokens.length;
|
|
1577
|
+
d ? (i = u.push("ordered_list_open", "ol", 1), h !== 1 && (i.attrs = [["start", h]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
1578
|
+
const g = [a, 0];
|
|
1579
|
+
i.map = g, i.markup = String.fromCharCode(l);
|
|
1580
|
+
let C = !1;
|
|
1581
|
+
const p = u.md.block.ruler.getRules("list"), _ = u.parentType;
|
|
2372
1582
|
for (u.parentType = "list"; a < t; ) {
|
|
2373
|
-
c =
|
|
2374
|
-
const
|
|
2375
|
-
let
|
|
1583
|
+
c = b, r = u.eMarks[a];
|
|
1584
|
+
const x = u.sCount[a] + b - (u.bMarks[a] + u.tShift[a]);
|
|
1585
|
+
let m = x;
|
|
2376
1586
|
for (; c < r; ) {
|
|
2377
|
-
const
|
|
2378
|
-
if (
|
|
2379
|
-
|
|
2380
|
-
else if (
|
|
2381
|
-
|
|
1587
|
+
const U = u.src.charCodeAt(c);
|
|
1588
|
+
if (U === 9)
|
|
1589
|
+
m += 4 - (m + u.bsCount[a]) % 4;
|
|
1590
|
+
else if (U === 32)
|
|
1591
|
+
m++;
|
|
2382
1592
|
else
|
|
2383
1593
|
break;
|
|
2384
1594
|
c++;
|
|
2385
1595
|
}
|
|
2386
|
-
const
|
|
2387
|
-
let
|
|
2388
|
-
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2393
|
-
const
|
|
2394
|
-
if (u.listIndent = u.blkIndent, u.blkIndent =
|
|
1596
|
+
const D = c;
|
|
1597
|
+
let y;
|
|
1598
|
+
D >= r ? y = 1 : y = m - x, y > 4 && (y = 1);
|
|
1599
|
+
const T = x + y;
|
|
1600
|
+
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(l);
|
|
1601
|
+
const P = [a, 0];
|
|
1602
|
+
i.map = P, d && (i.info = u.src.slice(o, b - 1));
|
|
1603
|
+
const X = u.tight, xu = u.tShift[a], M0 = u.sCount[a], q0 = u.listIndent;
|
|
1604
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = T, u.tight = !0, u.tShift[a] = D - u.bMarks[a], u.sCount[a] = m, D >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = q0, u.tShift[a] = xu, u.sCount[a] = M0, u.tight = X, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(l), a = u.line, P[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2395
1605
|
break;
|
|
2396
|
-
let
|
|
2397
|
-
for (let
|
|
2398
|
-
if (
|
|
2399
|
-
|
|
1606
|
+
let Pu = !1;
|
|
1607
|
+
for (let U = 0, R0 = p.length; U < R0; U++)
|
|
1608
|
+
if (p[U](u, a, t, !0)) {
|
|
1609
|
+
Pu = !0;
|
|
2400
1610
|
break;
|
|
2401
1611
|
}
|
|
2402
|
-
if (
|
|
1612
|
+
if (Pu)
|
|
2403
1613
|
break;
|
|
2404
|
-
if (
|
|
2405
|
-
if (
|
|
1614
|
+
if (d) {
|
|
1615
|
+
if (b = Yu(u, a), b < 0)
|
|
2406
1616
|
break;
|
|
2407
|
-
|
|
2408
|
-
} else if (
|
|
1617
|
+
o = u.bMarks[a] + u.tShift[a];
|
|
1618
|
+
} else if (b = Xu(u, a), b < 0)
|
|
2409
1619
|
break;
|
|
2410
|
-
if (
|
|
1620
|
+
if (l !== u.src.charCodeAt(b - 1))
|
|
2411
1621
|
break;
|
|
2412
1622
|
}
|
|
2413
|
-
return
|
|
1623
|
+
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(l), g[1] = a, u.line = a, u.parentType = _, s && ft(u, k), !0;
|
|
2414
1624
|
}
|
|
2415
|
-
function
|
|
2416
|
-
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e],
|
|
1625
|
+
function dt(u, e, t, n) {
|
|
1626
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e], o = e + 1;
|
|
2417
1627
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2418
1628
|
return !1;
|
|
2419
|
-
function
|
|
2420
|
-
const
|
|
2421
|
-
if (
|
|
1629
|
+
function i(p) {
|
|
1630
|
+
const _ = u.lineMax;
|
|
1631
|
+
if (p >= _ || u.isEmpty(p))
|
|
2422
1632
|
return null;
|
|
2423
|
-
let
|
|
2424
|
-
if (u.sCount[
|
|
2425
|
-
const
|
|
1633
|
+
let x = !1;
|
|
1634
|
+
if (u.sCount[p] - u.blkIndent > 3 && (x = !0), u.sCount[p] < 0 && (x = !0), !x) {
|
|
1635
|
+
const y = u.md.block.ruler.getRules("reference"), T = u.parentType;
|
|
2426
1636
|
u.parentType = "reference";
|
|
2427
|
-
let
|
|
2428
|
-
for (let
|
|
2429
|
-
if (
|
|
2430
|
-
|
|
1637
|
+
let P = !1;
|
|
1638
|
+
for (let X = 0, xu = y.length; X < xu; X++)
|
|
1639
|
+
if (y[X](u, p, _, !0)) {
|
|
1640
|
+
P = !0;
|
|
2431
1641
|
break;
|
|
2432
1642
|
}
|
|
2433
|
-
if (u.parentType =
|
|
1643
|
+
if (u.parentType = T, P)
|
|
2434
1644
|
return null;
|
|
2435
1645
|
}
|
|
2436
|
-
const
|
|
2437
|
-
return u.src.slice(
|
|
1646
|
+
const m = u.bMarks[p] + u.tShift[p], D = u.eMarks[p];
|
|
1647
|
+
return u.src.slice(m, D + 1);
|
|
2438
1648
|
}
|
|
2439
1649
|
let a = u.src.slice(r, c + 1);
|
|
2440
1650
|
c = a.length;
|
|
2441
1651
|
let s = -1;
|
|
2442
1652
|
for (r = 1; r < c; r++) {
|
|
2443
|
-
const
|
|
2444
|
-
if (
|
|
1653
|
+
const p = a.charCodeAt(r);
|
|
1654
|
+
if (p === 91)
|
|
2445
1655
|
return !1;
|
|
2446
|
-
if (
|
|
1656
|
+
if (p === 93) {
|
|
2447
1657
|
s = r;
|
|
2448
1658
|
break;
|
|
2449
|
-
} else if (
|
|
2450
|
-
const
|
|
2451
|
-
|
|
2452
|
-
} else if (
|
|
2453
|
-
const
|
|
2454
|
-
|
|
1659
|
+
} else if (p === 10) {
|
|
1660
|
+
const _ = i(o);
|
|
1661
|
+
_ !== null && (a += _, c = a.length, o++);
|
|
1662
|
+
} else if (p === 92 && (r++, r < c && a.charCodeAt(r) === 10)) {
|
|
1663
|
+
const _ = i(o);
|
|
1664
|
+
_ !== null && (a += _, c = a.length, o++);
|
|
2455
1665
|
}
|
|
2456
1666
|
}
|
|
2457
1667
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
2458
1668
|
return !1;
|
|
2459
1669
|
for (r = s + 2; r < c; r++) {
|
|
2460
|
-
const
|
|
2461
|
-
if (
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2464
|
-
} else if (!
|
|
1670
|
+
const p = a.charCodeAt(r);
|
|
1671
|
+
if (p === 10) {
|
|
1672
|
+
const _ = i(o);
|
|
1673
|
+
_ !== null && (a += _, c = a.length, o++);
|
|
1674
|
+
} else if (!E(p)) break;
|
|
2465
1675
|
}
|
|
2466
1676
|
const f = u.md.helpers.parseLinkDestination(a, r, c);
|
|
2467
1677
|
if (!f.ok)
|
|
2468
1678
|
return !1;
|
|
2469
|
-
const
|
|
2470
|
-
if (!u.md.validateLink(
|
|
1679
|
+
const d = u.md.normalizeLink(f.str);
|
|
1680
|
+
if (!u.md.validateLink(d))
|
|
2471
1681
|
return !1;
|
|
2472
1682
|
r = f.pos;
|
|
2473
|
-
const
|
|
1683
|
+
const h = r, b = o, l = r;
|
|
2474
1684
|
for (; r < c; r++) {
|
|
2475
|
-
const
|
|
2476
|
-
if (
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2479
|
-
} else if (!
|
|
2480
|
-
}
|
|
2481
|
-
let
|
|
2482
|
-
for (;
|
|
2483
|
-
const
|
|
2484
|
-
if (
|
|
2485
|
-
a +=
|
|
2486
|
-
}
|
|
2487
|
-
let
|
|
2488
|
-
for (r < c &&
|
|
2489
|
-
const
|
|
2490
|
-
if (!
|
|
1685
|
+
const p = a.charCodeAt(r);
|
|
1686
|
+
if (p === 10) {
|
|
1687
|
+
const _ = i(o);
|
|
1688
|
+
_ !== null && (a += _, c = a.length, o++);
|
|
1689
|
+
} else if (!E(p)) break;
|
|
1690
|
+
}
|
|
1691
|
+
let k = u.md.helpers.parseLinkTitle(a, r, c);
|
|
1692
|
+
for (; k.can_continue; ) {
|
|
1693
|
+
const p = i(o);
|
|
1694
|
+
if (p === null) break;
|
|
1695
|
+
a += p, r = c, c = a.length, o++, k = u.md.helpers.parseLinkTitle(a, r, c, k);
|
|
1696
|
+
}
|
|
1697
|
+
let g;
|
|
1698
|
+
for (r < c && l !== r && k.ok ? (g = k.str, r = k.pos) : (g = "", r = h, o = b); r < c; ) {
|
|
1699
|
+
const p = a.charCodeAt(r);
|
|
1700
|
+
if (!E(p))
|
|
2491
1701
|
break;
|
|
2492
1702
|
r++;
|
|
2493
1703
|
}
|
|
2494
|
-
if (r < c && a.charCodeAt(r) !== 10 &&
|
|
2495
|
-
for (
|
|
2496
|
-
const
|
|
2497
|
-
if (!
|
|
1704
|
+
if (r < c && a.charCodeAt(r) !== 10 && g)
|
|
1705
|
+
for (g = "", r = h, o = b; r < c; ) {
|
|
1706
|
+
const p = a.charCodeAt(r);
|
|
1707
|
+
if (!E(p))
|
|
2498
1708
|
break;
|
|
2499
1709
|
r++;
|
|
2500
1710
|
}
|
|
2501
1711
|
if (r < c && a.charCodeAt(r) !== 10)
|
|
2502
1712
|
return !1;
|
|
2503
|
-
const
|
|
2504
|
-
return
|
|
1713
|
+
const C = bu(a.slice(1, s));
|
|
1714
|
+
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: g, href: d }), u.line = o), !0) : !1;
|
|
2505
1715
|
}
|
|
2506
|
-
const
|
|
1716
|
+
const bt = [
|
|
2507
1717
|
"address",
|
|
2508
1718
|
"article",
|
|
2509
1719
|
"aside",
|
|
@@ -2566,31 +1776,31 @@ const Jc = [
|
|
|
2566
1776
|
"tr",
|
|
2567
1777
|
"track",
|
|
2568
1778
|
"ul"
|
|
2569
|
-
],
|
|
1779
|
+
], ht = "[a-zA-Z_:][a-zA-Z0-9:._-]*", pt = "[^\"'=<>`\\x00-\\x20]+", xt = "'[^']*'", _t = '"[^"]*"', mt = "(?:" + pt + "|" + xt + "|" + _t + ")", kt = "(?:\\s+" + ht + "(?:\\s*=\\s*" + mt + ")?)", k0 = "<[A-Za-z][A-Za-z0-9\\-]*" + kt + "*\\s*\\/?>", g0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", gt = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Dt = "<[?][\\s\\S]*?[?]>", Ct = "<![A-Za-z][^>]*>", Et = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Ft = new RegExp("^(?:" + k0 + "|" + g0 + "|" + gt + "|" + Dt + "|" + Ct + "|" + Et + ")"), At = new RegExp("^(?:" + k0 + "|" + g0 + ")"), H = [
|
|
2570
1780
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2571
1781
|
[/^<!--/, /-->/, !0],
|
|
2572
1782
|
[/^<\?/, /\?>/, !0],
|
|
2573
1783
|
[/^<![A-Z]/, />/, !0],
|
|
2574
1784
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2575
|
-
[new RegExp("^</?(" +
|
|
2576
|
-
[new RegExp(
|
|
1785
|
+
[new RegExp("^</?(" + bt.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
1786
|
+
[new RegExp(At.source + "\\s*$"), /^$/, !1]
|
|
2577
1787
|
];
|
|
2578
|
-
function
|
|
1788
|
+
function yt(u, e, t, n) {
|
|
2579
1789
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2580
1790
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2581
1791
|
return !1;
|
|
2582
|
-
let
|
|
2583
|
-
for (;
|
|
1792
|
+
let o = u.src.slice(r, c), i = 0;
|
|
1793
|
+
for (; i < H.length && !H[i][0].test(o); i++)
|
|
2584
1794
|
;
|
|
2585
|
-
if (
|
|
1795
|
+
if (i === H.length)
|
|
2586
1796
|
return !1;
|
|
2587
1797
|
if (n)
|
|
2588
|
-
return
|
|
1798
|
+
return H[i][2];
|
|
2589
1799
|
let a = e + 1;
|
|
2590
|
-
if (!
|
|
1800
|
+
if (!H[i][1].test(o)) {
|
|
2591
1801
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2592
|
-
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a],
|
|
2593
|
-
|
|
1802
|
+
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a], o = u.src.slice(r, c), H[i][1].test(o)) {
|
|
1803
|
+
o.length !== 0 && a++;
|
|
2594
1804
|
break;
|
|
2595
1805
|
}
|
|
2596
1806
|
}
|
|
@@ -2598,78 +1808,78 @@ function lo(u, e, t, n) {
|
|
|
2598
1808
|
const s = u.push("html_block", "", 0);
|
|
2599
1809
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2600
1810
|
}
|
|
2601
|
-
function
|
|
1811
|
+
function wt(u, e, t, n) {
|
|
2602
1812
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2603
1813
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2604
1814
|
return !1;
|
|
2605
|
-
let
|
|
2606
|
-
if (
|
|
1815
|
+
let o = u.src.charCodeAt(r);
|
|
1816
|
+
if (o !== 35 || r >= c)
|
|
2607
1817
|
return !1;
|
|
2608
|
-
let
|
|
2609
|
-
for (
|
|
2610
|
-
|
|
2611
|
-
if (
|
|
1818
|
+
let i = 1;
|
|
1819
|
+
for (o = u.src.charCodeAt(++r); o === 35 && r < c && i <= 6; )
|
|
1820
|
+
i++, o = u.src.charCodeAt(++r);
|
|
1821
|
+
if (i > 6 || r < c && !E(o))
|
|
2612
1822
|
return !1;
|
|
2613
1823
|
if (n)
|
|
2614
1824
|
return !0;
|
|
2615
1825
|
c = u.skipSpacesBack(c, r);
|
|
2616
1826
|
const a = u.skipCharsBack(c, 35, r);
|
|
2617
|
-
a > r &&
|
|
2618
|
-
const s = u.push("heading_open", "h" + String(
|
|
2619
|
-
s.markup = "########".slice(0,
|
|
1827
|
+
a > r && E(u.src.charCodeAt(a - 1)) && (c = a), u.line = e + 1;
|
|
1828
|
+
const s = u.push("heading_open", "h" + String(i), 1);
|
|
1829
|
+
s.markup = "########".slice(0, i), s.map = [e, u.line];
|
|
2620
1830
|
const f = u.push("inline", "", 0);
|
|
2621
1831
|
f.content = u.src.slice(r, c).trim(), f.map = [e, u.line], f.children = [];
|
|
2622
|
-
const
|
|
2623
|
-
return
|
|
1832
|
+
const d = u.push("heading_close", "h" + String(i), -1);
|
|
1833
|
+
return d.markup = "########".slice(0, i), !0;
|
|
2624
1834
|
}
|
|
2625
|
-
function
|
|
1835
|
+
function vt(u, e, t) {
|
|
2626
1836
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2627
1837
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2628
1838
|
return !1;
|
|
2629
1839
|
const r = u.parentType;
|
|
2630
1840
|
u.parentType = "paragraph";
|
|
2631
|
-
let c = 0,
|
|
2632
|
-
for (;
|
|
2633
|
-
if (u.sCount[
|
|
1841
|
+
let c = 0, o, i = e + 1;
|
|
1842
|
+
for (; i < t && !u.isEmpty(i); i++) {
|
|
1843
|
+
if (u.sCount[i] - u.blkIndent > 3)
|
|
2634
1844
|
continue;
|
|
2635
|
-
if (u.sCount[
|
|
2636
|
-
let
|
|
2637
|
-
const
|
|
2638
|
-
if (
|
|
2639
|
-
c =
|
|
1845
|
+
if (u.sCount[i] >= u.blkIndent) {
|
|
1846
|
+
let b = u.bMarks[i] + u.tShift[i];
|
|
1847
|
+
const l = u.eMarks[i];
|
|
1848
|
+
if (b < l && (o = u.src.charCodeAt(b), (o === 45 || o === 61) && (b = u.skipChars(b, o), b = u.skipSpaces(b), b >= l))) {
|
|
1849
|
+
c = o === 61 ? 1 : 2;
|
|
2640
1850
|
break;
|
|
2641
1851
|
}
|
|
2642
1852
|
}
|
|
2643
|
-
if (u.sCount[
|
|
1853
|
+
if (u.sCount[i] < 0)
|
|
2644
1854
|
continue;
|
|
2645
|
-
let
|
|
2646
|
-
for (let
|
|
2647
|
-
if (n[
|
|
2648
|
-
|
|
1855
|
+
let h = !1;
|
|
1856
|
+
for (let b = 0, l = n.length; b < l; b++)
|
|
1857
|
+
if (n[b](u, i, t, !0)) {
|
|
1858
|
+
h = !0;
|
|
2649
1859
|
break;
|
|
2650
1860
|
}
|
|
2651
|
-
if (
|
|
1861
|
+
if (h)
|
|
2652
1862
|
break;
|
|
2653
1863
|
}
|
|
2654
1864
|
if (!c)
|
|
2655
1865
|
return !1;
|
|
2656
|
-
const a = u.getLines(e,
|
|
2657
|
-
u.line =
|
|
1866
|
+
const a = u.getLines(e, i, u.blkIndent, !1).trim();
|
|
1867
|
+
u.line = i + 1;
|
|
2658
1868
|
const s = u.push("heading_open", "h" + String(c), 1);
|
|
2659
|
-
s.markup = String.fromCharCode(
|
|
1869
|
+
s.markup = String.fromCharCode(o), s.map = [e, u.line];
|
|
2660
1870
|
const f = u.push("inline", "", 0);
|
|
2661
1871
|
f.content = a, f.map = [e, u.line - 1], f.children = [];
|
|
2662
|
-
const
|
|
2663
|
-
return
|
|
1872
|
+
const d = u.push("heading_close", "h" + String(c), -1);
|
|
1873
|
+
return d.markup = String.fromCharCode(o), u.parentType = r, !0;
|
|
2664
1874
|
}
|
|
2665
|
-
function
|
|
1875
|
+
function St(u, e, t) {
|
|
2666
1876
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2667
1877
|
let c = e + 1;
|
|
2668
1878
|
for (u.parentType = "paragraph"; c < t && !u.isEmpty(c); c++) {
|
|
2669
1879
|
if (u.sCount[c] - u.blkIndent > 3 || u.sCount[c] < 0)
|
|
2670
1880
|
continue;
|
|
2671
1881
|
let s = !1;
|
|
2672
|
-
for (let f = 0,
|
|
1882
|
+
for (let f = 0, d = n.length; f < d; f++)
|
|
2673
1883
|
if (n[f](u, c, t, !0)) {
|
|
2674
1884
|
s = !0;
|
|
2675
1885
|
break;
|
|
@@ -2677,37 +1887,37 @@ function po(u, e, t) {
|
|
|
2677
1887
|
if (s)
|
|
2678
1888
|
break;
|
|
2679
1889
|
}
|
|
2680
|
-
const
|
|
1890
|
+
const o = u.getLines(e, c, u.blkIndent, !1).trim();
|
|
2681
1891
|
u.line = c;
|
|
2682
|
-
const
|
|
2683
|
-
|
|
1892
|
+
const i = u.push("paragraph_open", "p", 1);
|
|
1893
|
+
i.map = [e, u.line];
|
|
2684
1894
|
const a = u.push("inline", "", 0);
|
|
2685
|
-
return a.content =
|
|
1895
|
+
return a.content = o, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2686
1896
|
}
|
|
2687
|
-
const
|
|
1897
|
+
const ou = [
|
|
2688
1898
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2689
1899
|
// which can be terminated by this one.
|
|
2690
|
-
["table",
|
|
2691
|
-
["code",
|
|
2692
|
-
["fence",
|
|
2693
|
-
["blockquote",
|
|
2694
|
-
["hr",
|
|
2695
|
-
["list",
|
|
2696
|
-
["reference",
|
|
2697
|
-
["html_block",
|
|
2698
|
-
["heading",
|
|
2699
|
-
["lheading",
|
|
2700
|
-
["paragraph",
|
|
1900
|
+
["table", ct, ["paragraph", "reference"]],
|
|
1901
|
+
["code", it],
|
|
1902
|
+
["fence", ot, ["paragraph", "reference", "blockquote", "list"]],
|
|
1903
|
+
["blockquote", at, ["paragraph", "reference", "blockquote", "list"]],
|
|
1904
|
+
["hr", st, ["paragraph", "reference", "blockquote", "list"]],
|
|
1905
|
+
["list", lt, ["paragraph", "reference", "blockquote"]],
|
|
1906
|
+
["reference", dt],
|
|
1907
|
+
["html_block", yt, ["paragraph", "reference", "blockquote"]],
|
|
1908
|
+
["heading", wt, ["paragraph", "reference", "blockquote"]],
|
|
1909
|
+
["lheading", vt],
|
|
1910
|
+
["paragraph", St]
|
|
2701
1911
|
];
|
|
2702
|
-
function
|
|
2703
|
-
this.ruler = new
|
|
2704
|
-
for (let u = 0; u <
|
|
2705
|
-
this.ruler.push(
|
|
1912
|
+
function hu() {
|
|
1913
|
+
this.ruler = new w();
|
|
1914
|
+
for (let u = 0; u < ou.length; u++)
|
|
1915
|
+
this.ruler.push(ou[u][0], ou[u][1], { alt: (ou[u][2] || []).slice() });
|
|
2706
1916
|
}
|
|
2707
|
-
|
|
1917
|
+
hu.prototype.tokenize = function(u, e, t) {
|
|
2708
1918
|
const n = this.ruler.getRules(""), r = n.length, c = u.md.options.maxNesting;
|
|
2709
|
-
let
|
|
2710
|
-
for (;
|
|
1919
|
+
let o = e, i = !1;
|
|
1920
|
+
for (; o < t && (u.line = o = u.skipEmptyLines(o), !(o >= t || u.sCount[o] < u.blkIndent)); ) {
|
|
2711
1921
|
if (u.level >= c) {
|
|
2712
1922
|
u.line = t;
|
|
2713
1923
|
break;
|
|
@@ -2715,45 +1925,45 @@ Se.prototype.tokenize = function(u, e, t) {
|
|
|
2715
1925
|
const a = u.line;
|
|
2716
1926
|
let s = !1;
|
|
2717
1927
|
for (let f = 0; f < r; f++)
|
|
2718
|
-
if (s = n[f](u,
|
|
1928
|
+
if (s = n[f](u, o, t, !1), s) {
|
|
2719
1929
|
if (a >= u.line)
|
|
2720
1930
|
throw new Error("block rule didn't increment state.line");
|
|
2721
1931
|
break;
|
|
2722
1932
|
}
|
|
2723
1933
|
if (!s) throw new Error("none of the block rules matched");
|
|
2724
|
-
u.tight = !
|
|
1934
|
+
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0), o = u.line, o < t && u.isEmpty(o) && (i = !0, o++, u.line = o);
|
|
2725
1935
|
}
|
|
2726
1936
|
};
|
|
2727
|
-
|
|
1937
|
+
hu.prototype.parse = function(u, e, t, n) {
|
|
2728
1938
|
if (!u)
|
|
2729
1939
|
return;
|
|
2730
1940
|
const r = new this.State(u, e, t, n);
|
|
2731
1941
|
this.tokenize(r, r.line, r.lineMax);
|
|
2732
1942
|
};
|
|
2733
|
-
|
|
2734
|
-
function
|
|
1943
|
+
hu.prototype.State = R;
|
|
1944
|
+
function nu(u, e, t, n) {
|
|
2735
1945
|
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;
|
|
2736
1946
|
}
|
|
2737
|
-
|
|
2738
|
-
const u = new
|
|
1947
|
+
nu.prototype.pushPending = function() {
|
|
1948
|
+
const u = new z("text", "", 0);
|
|
2739
1949
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2740
1950
|
};
|
|
2741
|
-
|
|
1951
|
+
nu.prototype.push = function(u, e, t) {
|
|
2742
1952
|
this.pending && this.pushPending();
|
|
2743
|
-
const n = new
|
|
1953
|
+
const n = new z(u, e, t);
|
|
2744
1954
|
let r = null;
|
|
2745
1955
|
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;
|
|
2746
1956
|
};
|
|
2747
|
-
|
|
1957
|
+
nu.prototype.scanDelims = function(u, e) {
|
|
2748
1958
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2749
1959
|
let c = u;
|
|
2750
1960
|
for (; c < t && this.src.charCodeAt(c) === n; )
|
|
2751
1961
|
c++;
|
|
2752
|
-
const
|
|
2753
|
-
return { can_open:
|
|
1962
|
+
const o = c - u, i = c < t ? this.src.charCodeAt(c) : 32, a = uu(r) || K(String.fromCharCode(r)), s = uu(i) || K(String.fromCharCode(i)), f = Y(r), d = Y(i), h = !d && (!s || f || a), b = !f && (!a || d || s);
|
|
1963
|
+
return { can_open: h && (e || !b || a), can_close: b && (e || !h || s), length: o };
|
|
2754
1964
|
};
|
|
2755
|
-
|
|
2756
|
-
function
|
|
1965
|
+
nu.prototype.Token = z;
|
|
1966
|
+
function Bt(u) {
|
|
2757
1967
|
switch (u) {
|
|
2758
1968
|
case 10:
|
|
2759
1969
|
case 33:
|
|
@@ -2783,38 +1993,38 @@ function bo(u) {
|
|
|
2783
1993
|
return !1;
|
|
2784
1994
|
}
|
|
2785
1995
|
}
|
|
2786
|
-
function
|
|
1996
|
+
function Tt(u, e) {
|
|
2787
1997
|
let t = u.pos;
|
|
2788
|
-
for (; t < u.posMax && !
|
|
1998
|
+
for (; t < u.posMax && !Bt(u.src.charCodeAt(t)); )
|
|
2789
1999
|
t++;
|
|
2790
2000
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2791
2001
|
}
|
|
2792
|
-
const
|
|
2793
|
-
function
|
|
2002
|
+
const zt = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2003
|
+
function It(u, e) {
|
|
2794
2004
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2795
2005
|
const t = u.pos, n = u.posMax;
|
|
2796
2006
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2797
|
-
const r = u.pending.match(
|
|
2007
|
+
const r = u.pending.match(zt);
|
|
2798
2008
|
if (!r) return !1;
|
|
2799
|
-
const c = r[1],
|
|
2800
|
-
if (!
|
|
2801
|
-
let
|
|
2802
|
-
if (
|
|
2803
|
-
|
|
2804
|
-
const a = u.md.normalizeLink(
|
|
2009
|
+
const c = r[1], o = u.md.linkify.matchAtStart(u.src.slice(t - c.length));
|
|
2010
|
+
if (!o) return !1;
|
|
2011
|
+
let i = o.url;
|
|
2012
|
+
if (i.length <= c.length) return !1;
|
|
2013
|
+
i = i.replace(/\*+$/, "");
|
|
2014
|
+
const a = u.md.normalizeLink(i);
|
|
2805
2015
|
if (!u.md.validateLink(a)) return !1;
|
|
2806
2016
|
if (!e) {
|
|
2807
2017
|
u.pending = u.pending.slice(0, -c.length);
|
|
2808
2018
|
const s = u.push("link_open", "a", 1);
|
|
2809
2019
|
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
|
2810
2020
|
const f = u.push("text", "", 0);
|
|
2811
|
-
f.content = u.md.normalizeLinkText(
|
|
2812
|
-
const
|
|
2813
|
-
|
|
2021
|
+
f.content = u.md.normalizeLinkText(i);
|
|
2022
|
+
const d = u.push("link_close", "a", -1);
|
|
2023
|
+
d.markup = "linkify", d.info = "auto";
|
|
2814
2024
|
}
|
|
2815
|
-
return u.pos +=
|
|
2025
|
+
return u.pos += i.length - c.length, !0;
|
|
2816
2026
|
}
|
|
2817
|
-
function
|
|
2027
|
+
function Mt(u, e) {
|
|
2818
2028
|
let t = u.pos;
|
|
2819
2029
|
if (u.src.charCodeAt(t) !== 10)
|
|
2820
2030
|
return !1;
|
|
@@ -2829,39 +2039,39 @@ function go(u, e) {
|
|
|
2829
2039
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2830
2040
|
else
|
|
2831
2041
|
u.push("softbreak", "br", 0);
|
|
2832
|
-
for (t++; t < r &&
|
|
2042
|
+
for (t++; t < r && E(u.src.charCodeAt(t)); )
|
|
2833
2043
|
t++;
|
|
2834
2044
|
return u.pos = t, !0;
|
|
2835
2045
|
}
|
|
2836
|
-
const
|
|
2046
|
+
const Ru = [];
|
|
2837
2047
|
for (let u = 0; u < 256; u++)
|
|
2838
|
-
|
|
2048
|
+
Ru.push(0);
|
|
2839
2049
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2840
|
-
|
|
2050
|
+
Ru[u.charCodeAt(0)] = 1;
|
|
2841
2051
|
});
|
|
2842
|
-
function
|
|
2052
|
+
function qt(u, e) {
|
|
2843
2053
|
let t = u.pos;
|
|
2844
2054
|
const n = u.posMax;
|
|
2845
2055
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
2846
2056
|
let r = u.src.charCodeAt(t);
|
|
2847
2057
|
if (r === 10) {
|
|
2848
|
-
for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!
|
|
2058
|
+
for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!E(r)); )
|
|
2849
2059
|
t++;
|
|
2850
2060
|
return u.pos = t, !0;
|
|
2851
2061
|
}
|
|
2852
2062
|
let c = u.src[t];
|
|
2853
2063
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
|
2854
|
-
const
|
|
2855
|
-
|
|
2064
|
+
const i = u.src.charCodeAt(t + 1);
|
|
2065
|
+
i >= 56320 && i <= 57343 && (c += u.src[t + 1], t++);
|
|
2856
2066
|
}
|
|
2857
|
-
const
|
|
2067
|
+
const o = "\\" + c;
|
|
2858
2068
|
if (!e) {
|
|
2859
|
-
const
|
|
2860
|
-
r < 256 &&
|
|
2069
|
+
const i = u.push("text_special", "", 0);
|
|
2070
|
+
r < 256 && Ru[r] !== 0 ? i.content = c : i.content = o, i.markup = o, i.info = "escape";
|
|
2861
2071
|
}
|
|
2862
2072
|
return u.pos = t + 1, !0;
|
|
2863
2073
|
}
|
|
2864
|
-
function
|
|
2074
|
+
function Rt(u, e) {
|
|
2865
2075
|
let t = u.pos;
|
|
2866
2076
|
if (u.src.charCodeAt(t) !== 96)
|
|
2867
2077
|
return !1;
|
|
@@ -2870,38 +2080,38 @@ function Eo(u, e) {
|
|
|
2870
2080
|
const c = u.posMax;
|
|
2871
2081
|
for (; t < c && u.src.charCodeAt(t) === 96; )
|
|
2872
2082
|
t++;
|
|
2873
|
-
const
|
|
2874
|
-
if (u.backticksScanned && (u.backticks[
|
|
2875
|
-
return e || (u.pending +=
|
|
2083
|
+
const o = u.src.slice(r, t), i = o.length;
|
|
2084
|
+
if (u.backticksScanned && (u.backticks[i] || 0) <= r)
|
|
2085
|
+
return e || (u.pending += o), u.pos += i, !0;
|
|
2876
2086
|
let a = t, s;
|
|
2877
2087
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
|
2878
2088
|
for (a = s + 1; a < c && u.src.charCodeAt(a) === 96; )
|
|
2879
2089
|
a++;
|
|
2880
2090
|
const f = a - s;
|
|
2881
|
-
if (f ===
|
|
2091
|
+
if (f === i) {
|
|
2882
2092
|
if (!e) {
|
|
2883
|
-
const
|
|
2884
|
-
|
|
2093
|
+
const d = u.push("code_inline", "code", 0);
|
|
2094
|
+
d.markup = o, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2885
2095
|
}
|
|
2886
2096
|
return u.pos = a, !0;
|
|
2887
2097
|
}
|
|
2888
2098
|
u.backticks[f] = s;
|
|
2889
2099
|
}
|
|
2890
|
-
return u.backticksScanned = !0, e || (u.pending +=
|
|
2100
|
+
return u.backticksScanned = !0, e || (u.pending += o), u.pos += i, !0;
|
|
2891
2101
|
}
|
|
2892
|
-
function
|
|
2102
|
+
function Lt(u, e) {
|
|
2893
2103
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2894
2104
|
if (e || n !== 126)
|
|
2895
2105
|
return !1;
|
|
2896
2106
|
const r = u.scanDelims(u.pos, !0);
|
|
2897
2107
|
let c = r.length;
|
|
2898
|
-
const
|
|
2108
|
+
const o = String.fromCharCode(n);
|
|
2899
2109
|
if (c < 2)
|
|
2900
2110
|
return !1;
|
|
2901
|
-
let
|
|
2902
|
-
c % 2 && (
|
|
2111
|
+
let i;
|
|
2112
|
+
c % 2 && (i = u.push("text", "", 0), i.content = o, c--);
|
|
2903
2113
|
for (let a = 0; a < c; a += 2)
|
|
2904
|
-
|
|
2114
|
+
i = u.push("text", "", 0), i.content = o + o, u.delimiters.push({
|
|
2905
2115
|
marker: n,
|
|
2906
2116
|
length: 0,
|
|
2907
2117
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -2912,42 +2122,42 @@ function Ao(u, e) {
|
|
|
2912
2122
|
});
|
|
2913
2123
|
return u.pos += r.length, !0;
|
|
2914
2124
|
}
|
|
2915
|
-
function
|
|
2125
|
+
function Ku(u, e) {
|
|
2916
2126
|
let t;
|
|
2917
2127
|
const n = [], r = e.length;
|
|
2918
2128
|
for (let c = 0; c < r; c++) {
|
|
2919
|
-
const
|
|
2920
|
-
if (
|
|
2129
|
+
const o = e[c];
|
|
2130
|
+
if (o.marker !== 126 || o.end === -1)
|
|
2921
2131
|
continue;
|
|
2922
|
-
const
|
|
2923
|
-
t = u.tokens[
|
|
2132
|
+
const i = e[o.end];
|
|
2133
|
+
t = u.tokens[o.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[i.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[i.token - 1].type === "text" && u.tokens[i.token - 1].content === "~" && n.push(i.token - 1);
|
|
2924
2134
|
}
|
|
2925
2135
|
for (; n.length; ) {
|
|
2926
2136
|
const c = n.pop();
|
|
2927
|
-
let
|
|
2928
|
-
for (;
|
|
2929
|
-
|
|
2930
|
-
|
|
2137
|
+
let o = c + 1;
|
|
2138
|
+
for (; o < u.tokens.length && u.tokens[o].type === "s_close"; )
|
|
2139
|
+
o++;
|
|
2140
|
+
o--, c !== o && (t = u.tokens[o], u.tokens[o] = u.tokens[c], u.tokens[c] = t);
|
|
2931
2141
|
}
|
|
2932
2142
|
}
|
|
2933
|
-
function
|
|
2143
|
+
function Pt(u) {
|
|
2934
2144
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2935
|
-
|
|
2145
|
+
Ku(u, u.delimiters);
|
|
2936
2146
|
for (let n = 0; n < t; n++)
|
|
2937
|
-
e[n] && e[n].delimiters &&
|
|
2147
|
+
e[n] && e[n].delimiters && Ku(u, e[n].delimiters);
|
|
2938
2148
|
}
|
|
2939
|
-
const
|
|
2940
|
-
tokenize:
|
|
2941
|
-
postProcess:
|
|
2149
|
+
const D0 = {
|
|
2150
|
+
tokenize: Lt,
|
|
2151
|
+
postProcess: Pt
|
|
2942
2152
|
};
|
|
2943
|
-
function
|
|
2153
|
+
function Ot(u, e) {
|
|
2944
2154
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2945
2155
|
if (e || n !== 95 && n !== 42)
|
|
2946
2156
|
return !1;
|
|
2947
2157
|
const r = u.scanDelims(u.pos, n === 42);
|
|
2948
2158
|
for (let c = 0; c < r.length; c++) {
|
|
2949
|
-
const
|
|
2950
|
-
|
|
2159
|
+
const o = u.push("text", "", 0);
|
|
2160
|
+
o.content = String.fromCharCode(n), u.delimiters.push({
|
|
2951
2161
|
// Char code of the starting marker (number).
|
|
2952
2162
|
//
|
|
2953
2163
|
marker: n,
|
|
@@ -2970,130 +2180,130 @@ function Do(u, e) {
|
|
|
2970
2180
|
}
|
|
2971
2181
|
return u.pos += r.length, !0;
|
|
2972
2182
|
}
|
|
2973
|
-
function
|
|
2183
|
+
function u0(u, e) {
|
|
2974
2184
|
const t = e.length;
|
|
2975
2185
|
for (let n = t - 1; n >= 0; n--) {
|
|
2976
2186
|
const r = e[n];
|
|
2977
2187
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
2978
2188
|
continue;
|
|
2979
|
-
const c = e[r.end],
|
|
2189
|
+
const c = e[r.end], o = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
2980
2190
|
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)
|
|
2981
|
-
e[r.end + 1].token === c.token + 1,
|
|
2982
|
-
a.type =
|
|
2191
|
+
e[r.end + 1].token === c.token + 1, i = String.fromCharCode(r.marker), a = u.tokens[r.token];
|
|
2192
|
+
a.type = o ? "strong_open" : "em_open", a.tag = o ? "strong" : "em", a.nesting = 1, a.markup = o ? i + i : i, a.content = "";
|
|
2983
2193
|
const s = u.tokens[c.token];
|
|
2984
|
-
s.type =
|
|
2194
|
+
s.type = o ? "strong_close" : "em_close", s.tag = o ? "strong" : "em", s.nesting = -1, s.markup = o ? i + i : i, s.content = "", o && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
2985
2195
|
}
|
|
2986
2196
|
}
|
|
2987
|
-
function
|
|
2197
|
+
function Nt(u) {
|
|
2988
2198
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2989
|
-
|
|
2199
|
+
u0(u, u.delimiters);
|
|
2990
2200
|
for (let n = 0; n < t; n++)
|
|
2991
|
-
e[n] && e[n].delimiters &&
|
|
2201
|
+
e[n] && e[n].delimiters && u0(u, e[n].delimiters);
|
|
2992
2202
|
}
|
|
2993
|
-
const
|
|
2994
|
-
tokenize:
|
|
2995
|
-
postProcess:
|
|
2203
|
+
const C0 = {
|
|
2204
|
+
tokenize: Ot,
|
|
2205
|
+
postProcess: Nt
|
|
2996
2206
|
};
|
|
2997
|
-
function
|
|
2998
|
-
let t, n, r, c,
|
|
2207
|
+
function $t(u, e) {
|
|
2208
|
+
let t, n, r, c, o = "", i = "", a = u.pos, s = !0;
|
|
2999
2209
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3000
2210
|
return !1;
|
|
3001
|
-
const f = u.pos,
|
|
3002
|
-
if (
|
|
2211
|
+
const f = u.pos, d = u.posMax, h = u.pos + 1, b = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
2212
|
+
if (b < 0)
|
|
3003
2213
|
return !1;
|
|
3004
|
-
let
|
|
3005
|
-
if (
|
|
3006
|
-
for (s = !1,
|
|
2214
|
+
let l = b + 1;
|
|
2215
|
+
if (l < d && u.src.charCodeAt(l) === 40) {
|
|
2216
|
+
for (s = !1, l++; l < d && (t = u.src.charCodeAt(l), !(!E(t) && t !== 10)); l++)
|
|
3007
2217
|
;
|
|
3008
|
-
if (
|
|
2218
|
+
if (l >= d)
|
|
3009
2219
|
return !1;
|
|
3010
|
-
if (a =
|
|
3011
|
-
for (
|
|
2220
|
+
if (a = l, r = u.md.helpers.parseLinkDestination(u.src, l, u.posMax), r.ok) {
|
|
2221
|
+
for (o = u.md.normalizeLink(r.str), u.md.validateLink(o) ? l = r.pos : o = "", a = l; l < d && (t = u.src.charCodeAt(l), !(!E(t) && t !== 10)); l++)
|
|
3012
2222
|
;
|
|
3013
|
-
if (r = u.md.helpers.parseLinkTitle(u.src,
|
|
3014
|
-
for (
|
|
2223
|
+
if (r = u.md.helpers.parseLinkTitle(u.src, l, u.posMax), l < d && a !== l && r.ok)
|
|
2224
|
+
for (i = r.str, l = r.pos; l < d && (t = u.src.charCodeAt(l), !(!E(t) && t !== 10)); l++)
|
|
3015
2225
|
;
|
|
3016
2226
|
}
|
|
3017
|
-
(
|
|
2227
|
+
(l >= d || u.src.charCodeAt(l) !== 41) && (s = !0), l++;
|
|
3018
2228
|
}
|
|
3019
2229
|
if (s) {
|
|
3020
2230
|
if (typeof u.env.references > "u")
|
|
3021
2231
|
return !1;
|
|
3022
|
-
if (
|
|
2232
|
+
if (l < d && u.src.charCodeAt(l) === 91 ? (a = l + 1, l = u.md.helpers.parseLinkLabel(u, l), l >= 0 ? n = u.src.slice(a, l++) : l = b + 1) : l = b + 1, n || (n = u.src.slice(h, b)), c = u.env.references[bu(n)], !c)
|
|
3023
2233
|
return u.pos = f, !1;
|
|
3024
|
-
|
|
2234
|
+
o = c.href, i = c.title;
|
|
3025
2235
|
}
|
|
3026
2236
|
if (!e) {
|
|
3027
|
-
u.pos =
|
|
3028
|
-
const
|
|
3029
|
-
|
|
2237
|
+
u.pos = h, u.posMax = b;
|
|
2238
|
+
const k = u.push("link_open", "a", 1), g = [["href", o]];
|
|
2239
|
+
k.attrs = g, i && g.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3030
2240
|
}
|
|
3031
|
-
return u.pos =
|
|
2241
|
+
return u.pos = l, u.posMax = d, !0;
|
|
3032
2242
|
}
|
|
3033
|
-
function
|
|
3034
|
-
let t, n, r, c,
|
|
3035
|
-
const
|
|
2243
|
+
function jt(u, e) {
|
|
2244
|
+
let t, n, r, c, o, i, a, s, f = "";
|
|
2245
|
+
const d = u.pos, h = u.posMax;
|
|
3036
2246
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3037
2247
|
return !1;
|
|
3038
|
-
const
|
|
3039
|
-
if (
|
|
2248
|
+
const b = u.pos + 2, l = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
2249
|
+
if (l < 0)
|
|
3040
2250
|
return !1;
|
|
3041
|
-
if (c =
|
|
3042
|
-
for (c++; c <
|
|
2251
|
+
if (c = l + 1, c < h && u.src.charCodeAt(c) === 40) {
|
|
2252
|
+
for (c++; c < h && (t = u.src.charCodeAt(c), !(!E(t) && t !== 10)); c++)
|
|
3043
2253
|
;
|
|
3044
|
-
if (c >=
|
|
2254
|
+
if (c >= h)
|
|
3045
2255
|
return !1;
|
|
3046
|
-
for (s = c,
|
|
2256
|
+
for (s = c, i = u.md.helpers.parseLinkDestination(u.src, c, u.posMax), i.ok && (f = u.md.normalizeLink(i.str), u.md.validateLink(f) ? c = i.pos : f = ""), s = c; c < h && (t = u.src.charCodeAt(c), !(!E(t) && t !== 10)); c++)
|
|
3047
2257
|
;
|
|
3048
|
-
if (
|
|
3049
|
-
for (a =
|
|
2258
|
+
if (i = u.md.helpers.parseLinkTitle(u.src, c, u.posMax), c < h && s !== c && i.ok)
|
|
2259
|
+
for (a = i.str, c = i.pos; c < h && (t = u.src.charCodeAt(c), !(!E(t) && t !== 10)); c++)
|
|
3050
2260
|
;
|
|
3051
2261
|
else
|
|
3052
2262
|
a = "";
|
|
3053
|
-
if (c >=
|
|
3054
|
-
return u.pos =
|
|
2263
|
+
if (c >= h || u.src.charCodeAt(c) !== 41)
|
|
2264
|
+
return u.pos = d, !1;
|
|
3055
2265
|
c++;
|
|
3056
2266
|
} else {
|
|
3057
2267
|
if (typeof u.env.references > "u")
|
|
3058
2268
|
return !1;
|
|
3059
|
-
if (c <
|
|
3060
|
-
return u.pos =
|
|
3061
|
-
f =
|
|
2269
|
+
if (c < h && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c = l + 1) : c = l + 1, r || (r = u.src.slice(b, l)), o = u.env.references[bu(r)], !o)
|
|
2270
|
+
return u.pos = d, !1;
|
|
2271
|
+
f = o.href, a = o.title;
|
|
3062
2272
|
}
|
|
3063
2273
|
if (!e) {
|
|
3064
|
-
n = u.src.slice(
|
|
3065
|
-
const
|
|
2274
|
+
n = u.src.slice(b, l);
|
|
2275
|
+
const k = [];
|
|
3066
2276
|
u.md.inline.parse(
|
|
3067
2277
|
n,
|
|
3068
2278
|
u.md,
|
|
3069
2279
|
u.env,
|
|
3070
|
-
|
|
2280
|
+
k
|
|
3071
2281
|
);
|
|
3072
|
-
const
|
|
3073
|
-
|
|
2282
|
+
const g = u.push("image", "img", 0), C = [["src", f], ["alt", ""]];
|
|
2283
|
+
g.attrs = C, g.children = k, g.content = n, a && C.push(["title", a]);
|
|
3074
2284
|
}
|
|
3075
|
-
return u.pos = c, u.posMax =
|
|
2285
|
+
return u.pos = c, u.posMax = h, !0;
|
|
3076
2286
|
}
|
|
3077
|
-
const
|
|
3078
|
-
function
|
|
2287
|
+
const Ut = /^([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])?)*)$/, Zt = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2288
|
+
function Ht(u, e) {
|
|
3079
2289
|
let t = u.pos;
|
|
3080
2290
|
if (u.src.charCodeAt(t) !== 60)
|
|
3081
2291
|
return !1;
|
|
3082
2292
|
const n = u.pos, r = u.posMax;
|
|
3083
2293
|
for (; ; ) {
|
|
3084
2294
|
if (++t >= r) return !1;
|
|
3085
|
-
const
|
|
3086
|
-
if (
|
|
3087
|
-
if (
|
|
2295
|
+
const o = u.src.charCodeAt(t);
|
|
2296
|
+
if (o === 60) return !1;
|
|
2297
|
+
if (o === 62) break;
|
|
3088
2298
|
}
|
|
3089
2299
|
const c = u.src.slice(n + 1, t);
|
|
3090
|
-
if (
|
|
3091
|
-
const
|
|
3092
|
-
if (!u.md.validateLink(
|
|
2300
|
+
if (Zt.test(c)) {
|
|
2301
|
+
const o = u.md.normalizeLink(c);
|
|
2302
|
+
if (!u.md.validateLink(o))
|
|
3093
2303
|
return !1;
|
|
3094
2304
|
if (!e) {
|
|
3095
|
-
const
|
|
3096
|
-
|
|
2305
|
+
const i = u.push("link_open", "a", 1);
|
|
2306
|
+
i.attrs = [["href", o]], i.markup = "autolink", i.info = "auto";
|
|
3097
2307
|
const a = u.push("text", "", 0);
|
|
3098
2308
|
a.content = u.md.normalizeLinkText(c);
|
|
3099
2309
|
const s = u.push("link_close", "a", -1);
|
|
@@ -3101,13 +2311,13 @@ function vo(u, e) {
|
|
|
3101
2311
|
}
|
|
3102
2312
|
return u.pos += c.length + 2, !0;
|
|
3103
2313
|
}
|
|
3104
|
-
if (
|
|
3105
|
-
const
|
|
3106
|
-
if (!u.md.validateLink(
|
|
2314
|
+
if (Ut.test(c)) {
|
|
2315
|
+
const o = u.md.normalizeLink("mailto:" + c);
|
|
2316
|
+
if (!u.md.validateLink(o))
|
|
3107
2317
|
return !1;
|
|
3108
2318
|
if (!e) {
|
|
3109
|
-
const
|
|
3110
|
-
|
|
2319
|
+
const i = u.push("link_open", "a", 1);
|
|
2320
|
+
i.attrs = [["href", o]], i.markup = "autolink", i.info = "auto";
|
|
3111
2321
|
const a = u.push("text", "", 0);
|
|
3112
2322
|
a.content = u.md.normalizeLinkText(c);
|
|
3113
2323
|
const s = u.push("link_close", "a", -1);
|
|
@@ -3117,55 +2327,55 @@ function vo(u, e) {
|
|
|
3117
2327
|
}
|
|
3118
2328
|
return !1;
|
|
3119
2329
|
}
|
|
3120
|
-
function
|
|
2330
|
+
function Vt(u) {
|
|
3121
2331
|
return /^<a[>\s]/i.test(u);
|
|
3122
2332
|
}
|
|
3123
|
-
function
|
|
2333
|
+
function Gt(u) {
|
|
3124
2334
|
return /^<\/a\s*>/i.test(u);
|
|
3125
2335
|
}
|
|
3126
|
-
function
|
|
2336
|
+
function Wt(u) {
|
|
3127
2337
|
const e = u | 32;
|
|
3128
2338
|
return e >= 97 && e <= 122;
|
|
3129
2339
|
}
|
|
3130
|
-
function
|
|
2340
|
+
function Jt(u, e) {
|
|
3131
2341
|
if (!u.md.options.html)
|
|
3132
2342
|
return !1;
|
|
3133
2343
|
const t = u.posMax, n = u.pos;
|
|
3134
2344
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
3135
2345
|
return !1;
|
|
3136
2346
|
const r = u.src.charCodeAt(n + 1);
|
|
3137
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
2347
|
+
if (r !== 33 && r !== 63 && r !== 47 && !Wt(r))
|
|
3138
2348
|
return !1;
|
|
3139
|
-
const c = u.src.slice(n).match(
|
|
2349
|
+
const c = u.src.slice(n).match(Ft);
|
|
3140
2350
|
if (!c)
|
|
3141
2351
|
return !1;
|
|
3142
2352
|
if (!e) {
|
|
3143
|
-
const
|
|
3144
|
-
|
|
2353
|
+
const o = u.push("html_inline", "", 0);
|
|
2354
|
+
o.content = c[0], Vt(o.content) && u.linkLevel++, Gt(o.content) && u.linkLevel--;
|
|
3145
2355
|
}
|
|
3146
2356
|
return u.pos += c[0].length, !0;
|
|
3147
2357
|
}
|
|
3148
|
-
const
|
|
3149
|
-
function
|
|
2358
|
+
const Qt = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Xt = /^&([a-z][a-z0-9]{1,31});/i;
|
|
2359
|
+
function Yt(u, e) {
|
|
3150
2360
|
const t = u.pos, n = u.posMax;
|
|
3151
2361
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3152
2362
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3153
|
-
const c = u.src.slice(t).match(
|
|
2363
|
+
const c = u.src.slice(t).match(Qt);
|
|
3154
2364
|
if (c) {
|
|
3155
2365
|
if (!e) {
|
|
3156
|
-
const
|
|
3157
|
-
|
|
2366
|
+
const o = c[1][0].toLowerCase() === "x" ? parseInt(c[1].slice(1), 16) : parseInt(c[1], 10), i = u.push("text_special", "", 0);
|
|
2367
|
+
i.content = Mu(o) ? fu(o) : fu(65533), i.markup = c[0], i.info = "entity";
|
|
3158
2368
|
}
|
|
3159
2369
|
return u.pos += c[0].length, !0;
|
|
3160
2370
|
}
|
|
3161
2371
|
} else {
|
|
3162
|
-
const c = u.src.slice(t).match(
|
|
2372
|
+
const c = u.src.slice(t).match(Xt);
|
|
3163
2373
|
if (c) {
|
|
3164
|
-
const
|
|
3165
|
-
if (
|
|
2374
|
+
const o = h0(c[0]);
|
|
2375
|
+
if (o !== c[0]) {
|
|
3166
2376
|
if (!e) {
|
|
3167
|
-
const
|
|
3168
|
-
|
|
2377
|
+
const i = u.push("text_special", "", 0);
|
|
2378
|
+
i.content = o, i.markup = c[0], i.info = "entity";
|
|
3169
2379
|
}
|
|
3170
2380
|
return u.pos += c[0].length, !0;
|
|
3171
2381
|
}
|
|
@@ -3173,105 +2383,105 @@ function Bo(u, e) {
|
|
|
3173
2383
|
}
|
|
3174
2384
|
return !1;
|
|
3175
2385
|
}
|
|
3176
|
-
function
|
|
2386
|
+
function e0(u) {
|
|
3177
2387
|
const e = {}, t = u.length;
|
|
3178
2388
|
if (!t) return;
|
|
3179
2389
|
let n = 0, r = -2;
|
|
3180
2390
|
const c = [];
|
|
3181
|
-
for (let
|
|
3182
|
-
const
|
|
3183
|
-
if (c.push(0), (u[n].marker !==
|
|
3184
|
-
e.hasOwnProperty(
|
|
3185
|
-
const a = e[
|
|
2391
|
+
for (let o = 0; o < t; o++) {
|
|
2392
|
+
const i = u[o];
|
|
2393
|
+
if (c.push(0), (u[n].marker !== i.marker || r !== i.token - 1) && (n = o), r = i.token, i.length = i.length || 0, !i.close) continue;
|
|
2394
|
+
e.hasOwnProperty(i.marker) || (e[i.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
2395
|
+
const a = e[i.marker][(i.open ? 3 : 0) + i.length % 3];
|
|
3186
2396
|
let s = n - c[n] - 1, f = s;
|
|
3187
2397
|
for (; s > a; s -= c[s] + 1) {
|
|
3188
|
-
const
|
|
3189
|
-
if (
|
|
3190
|
-
let
|
|
3191
|
-
if ((
|
|
3192
|
-
const
|
|
3193
|
-
c[
|
|
2398
|
+
const d = u[s];
|
|
2399
|
+
if (d.marker === i.marker && d.open && d.end < 0) {
|
|
2400
|
+
let h = !1;
|
|
2401
|
+
if ((d.close || i.open) && (d.length + i.length) % 3 === 0 && (d.length % 3 !== 0 || i.length % 3 !== 0) && (h = !0), !h) {
|
|
2402
|
+
const b = s > 0 && !u[s - 1].open ? c[s - 1] + 1 : 0;
|
|
2403
|
+
c[o] = o - s + b, c[s] = b, i.open = !1, d.end = o, d.close = !1, f = -1, r = -2;
|
|
3194
2404
|
break;
|
|
3195
2405
|
}
|
|
3196
2406
|
}
|
|
3197
2407
|
}
|
|
3198
|
-
f !== -1 && (e[
|
|
2408
|
+
f !== -1 && (e[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = f);
|
|
3199
2409
|
}
|
|
3200
2410
|
}
|
|
3201
|
-
function
|
|
2411
|
+
function Kt(u) {
|
|
3202
2412
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3203
|
-
|
|
2413
|
+
e0(u.delimiters);
|
|
3204
2414
|
for (let n = 0; n < t; n++)
|
|
3205
|
-
e[n] && e[n].delimiters &&
|
|
2415
|
+
e[n] && e[n].delimiters && e0(e[n].delimiters);
|
|
3206
2416
|
}
|
|
3207
|
-
function
|
|
2417
|
+
function ur(u) {
|
|
3208
2418
|
let e, t, n = 0;
|
|
3209
2419
|
const r = u.tokens, c = u.tokens.length;
|
|
3210
2420
|
for (e = t = 0; e < c; e++)
|
|
3211
2421
|
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < c && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
3212
2422
|
e !== t && (r.length = t);
|
|
3213
2423
|
}
|
|
3214
|
-
const
|
|
3215
|
-
["text",
|
|
3216
|
-
["linkify",
|
|
3217
|
-
["newline",
|
|
3218
|
-
["escape",
|
|
3219
|
-
["backticks",
|
|
3220
|
-
["strikethrough",
|
|
3221
|
-
["emphasis",
|
|
3222
|
-
["link",
|
|
3223
|
-
["image",
|
|
3224
|
-
["autolink",
|
|
3225
|
-
["html_inline",
|
|
3226
|
-
["entity",
|
|
3227
|
-
],
|
|
3228
|
-
["balance_pairs",
|
|
3229
|
-
["strikethrough",
|
|
3230
|
-
["emphasis",
|
|
2424
|
+
const Cu = [
|
|
2425
|
+
["text", Tt],
|
|
2426
|
+
["linkify", It],
|
|
2427
|
+
["newline", Mt],
|
|
2428
|
+
["escape", qt],
|
|
2429
|
+
["backticks", Rt],
|
|
2430
|
+
["strikethrough", D0.tokenize],
|
|
2431
|
+
["emphasis", C0.tokenize],
|
|
2432
|
+
["link", $t],
|
|
2433
|
+
["image", jt],
|
|
2434
|
+
["autolink", Ht],
|
|
2435
|
+
["html_inline", Jt],
|
|
2436
|
+
["entity", Yt]
|
|
2437
|
+
], Eu = [
|
|
2438
|
+
["balance_pairs", Kt],
|
|
2439
|
+
["strikethrough", D0.postProcess],
|
|
2440
|
+
["emphasis", C0.postProcess],
|
|
3231
2441
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3232
2442
|
// rule below merges unused segments back with the rest of the text
|
|
3233
|
-
["fragments_join",
|
|
2443
|
+
["fragments_join", ur]
|
|
3234
2444
|
];
|
|
3235
|
-
function
|
|
3236
|
-
this.ruler = new
|
|
3237
|
-
for (let u = 0; u <
|
|
3238
|
-
this.ruler.push(
|
|
3239
|
-
this.ruler2 = new
|
|
3240
|
-
for (let u = 0; u <
|
|
3241
|
-
this.ruler2.push(
|
|
3242
|
-
}
|
|
3243
|
-
|
|
2445
|
+
function cu() {
|
|
2446
|
+
this.ruler = new w();
|
|
2447
|
+
for (let u = 0; u < Cu.length; u++)
|
|
2448
|
+
this.ruler.push(Cu[u][0], Cu[u][1]);
|
|
2449
|
+
this.ruler2 = new w();
|
|
2450
|
+
for (let u = 0; u < Eu.length; u++)
|
|
2451
|
+
this.ruler2.push(Eu[u][0], Eu[u][1]);
|
|
2452
|
+
}
|
|
2453
|
+
cu.prototype.skipToken = function(u) {
|
|
3244
2454
|
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, c = u.cache;
|
|
3245
2455
|
if (typeof c[e] < "u") {
|
|
3246
2456
|
u.pos = c[e];
|
|
3247
2457
|
return;
|
|
3248
2458
|
}
|
|
3249
|
-
let
|
|
2459
|
+
let o = !1;
|
|
3250
2460
|
if (u.level < r) {
|
|
3251
|
-
for (let
|
|
3252
|
-
if (u.level++,
|
|
2461
|
+
for (let i = 0; i < n; i++)
|
|
2462
|
+
if (u.level++, o = t[i](u, !0), u.level--, o) {
|
|
3253
2463
|
if (e >= u.pos)
|
|
3254
2464
|
throw new Error("inline rule didn't increment state.pos");
|
|
3255
2465
|
break;
|
|
3256
2466
|
}
|
|
3257
2467
|
} else
|
|
3258
2468
|
u.pos = u.posMax;
|
|
3259
|
-
|
|
2469
|
+
o || u.pos++, c[e] = u.pos;
|
|
3260
2470
|
};
|
|
3261
|
-
|
|
2471
|
+
cu.prototype.tokenize = function(u) {
|
|
3262
2472
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3263
2473
|
for (; u.pos < n; ) {
|
|
3264
2474
|
const c = u.pos;
|
|
3265
|
-
let
|
|
2475
|
+
let o = !1;
|
|
3266
2476
|
if (u.level < r) {
|
|
3267
|
-
for (let
|
|
3268
|
-
if (
|
|
2477
|
+
for (let i = 0; i < t; i++)
|
|
2478
|
+
if (o = e[i](u, !1), o) {
|
|
3269
2479
|
if (c >= u.pos)
|
|
3270
2480
|
throw new Error("inline rule didn't increment state.pos");
|
|
3271
2481
|
break;
|
|
3272
2482
|
}
|
|
3273
2483
|
}
|
|
3274
|
-
if (
|
|
2484
|
+
if (o) {
|
|
3275
2485
|
if (u.pos >= n)
|
|
3276
2486
|
break;
|
|
3277
2487
|
continue;
|
|
@@ -3280,17 +2490,17 @@ ie.prototype.tokenize = function(u) {
|
|
|
3280
2490
|
}
|
|
3281
2491
|
u.pending && u.pushPending();
|
|
3282
2492
|
};
|
|
3283
|
-
|
|
2493
|
+
cu.prototype.parse = function(u, e, t, n) {
|
|
3284
2494
|
const r = new this.State(u, e, t, n);
|
|
3285
2495
|
this.tokenize(r);
|
|
3286
|
-
const c = this.ruler2.getRules(""),
|
|
3287
|
-
for (let
|
|
3288
|
-
c[
|
|
2496
|
+
const c = this.ruler2.getRules(""), o = c.length;
|
|
2497
|
+
for (let i = 0; i < o; i++)
|
|
2498
|
+
c[i](r);
|
|
3289
2499
|
};
|
|
3290
|
-
|
|
3291
|
-
function
|
|
2500
|
+
cu.prototype.State = nu;
|
|
2501
|
+
function er(u) {
|
|
3292
2502
|
const e = {};
|
|
3293
|
-
u = u || {}, e.src_Any =
|
|
2503
|
+
u = u || {}, e.src_Any = s0.source, e.src_Cc = f0.source, e.src_Z = d0.source, e.src_P = zu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3294
2504
|
const t = "[><|]";
|
|
3295
2505
|
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
|
|
3296
2506
|
",(?!" + 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)
|
|
@@ -3300,42 +2510,42 @@ function qo(u) {
|
|
|
3300
2510
|
// but can start with > (markdown blockquote)
|
|
3301
2511
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
3302
2512
|
}
|
|
3303
|
-
function
|
|
2513
|
+
function vu(u) {
|
|
3304
2514
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
3305
2515
|
t && Object.keys(t).forEach(function(n) {
|
|
3306
2516
|
u[n] = t[n];
|
|
3307
2517
|
});
|
|
3308
2518
|
}), u;
|
|
3309
2519
|
}
|
|
3310
|
-
function
|
|
2520
|
+
function pu(u) {
|
|
3311
2521
|
return Object.prototype.toString.call(u);
|
|
3312
2522
|
}
|
|
3313
|
-
function
|
|
3314
|
-
return
|
|
2523
|
+
function tr(u) {
|
|
2524
|
+
return pu(u) === "[object String]";
|
|
3315
2525
|
}
|
|
3316
|
-
function
|
|
3317
|
-
return
|
|
2526
|
+
function rr(u) {
|
|
2527
|
+
return pu(u) === "[object Object]";
|
|
3318
2528
|
}
|
|
3319
|
-
function
|
|
3320
|
-
return
|
|
2529
|
+
function nr(u) {
|
|
2530
|
+
return pu(u) === "[object RegExp]";
|
|
3321
2531
|
}
|
|
3322
|
-
function
|
|
3323
|
-
return
|
|
2532
|
+
function t0(u) {
|
|
2533
|
+
return pu(u) === "[object Function]";
|
|
3324
2534
|
}
|
|
3325
|
-
function
|
|
2535
|
+
function cr(u) {
|
|
3326
2536
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3327
2537
|
}
|
|
3328
|
-
const
|
|
2538
|
+
const E0 = {
|
|
3329
2539
|
fuzzyLink: !0,
|
|
3330
2540
|
fuzzyEmail: !0,
|
|
3331
2541
|
fuzzyIP: !1
|
|
3332
2542
|
};
|
|
3333
|
-
function
|
|
2543
|
+
function ir(u) {
|
|
3334
2544
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
3335
|
-
return e ||
|
|
2545
|
+
return e || E0.hasOwnProperty(t);
|
|
3336
2546
|
}, !1);
|
|
3337
2547
|
}
|
|
3338
|
-
const
|
|
2548
|
+
const or = {
|
|
3339
2549
|
"http:": {
|
|
3340
2550
|
validate: function(u, e, t) {
|
|
3341
2551
|
const n = u.slice(e);
|
|
@@ -3367,81 +2577,81 @@ const Wo = {
|
|
|
3367
2577
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3368
2578
|
}
|
|
3369
2579
|
}
|
|
3370
|
-
},
|
|
3371
|
-
function
|
|
2580
|
+
}, ar = "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]", sr = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
2581
|
+
function fr(u) {
|
|
3372
2582
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3373
2583
|
}
|
|
3374
|
-
function
|
|
2584
|
+
function lr(u) {
|
|
3375
2585
|
return function(e, t) {
|
|
3376
2586
|
const n = e.slice(t);
|
|
3377
2587
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
3378
2588
|
};
|
|
3379
2589
|
}
|
|
3380
|
-
function
|
|
2590
|
+
function r0() {
|
|
3381
2591
|
return function(u, e) {
|
|
3382
2592
|
e.normalize(u);
|
|
3383
2593
|
};
|
|
3384
2594
|
}
|
|
3385
|
-
function
|
|
3386
|
-
const e = u.re =
|
|
3387
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3388
|
-
function n(
|
|
3389
|
-
return
|
|
2595
|
+
function lu(u) {
|
|
2596
|
+
const e = u.re = er(u.__opts__), t = u.__tlds__.slice();
|
|
2597
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(ar), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
2598
|
+
function n(i) {
|
|
2599
|
+
return i.replace("%TLDS%", e.src_tlds);
|
|
3390
2600
|
}
|
|
3391
2601
|
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");
|
|
3392
2602
|
const r = [];
|
|
3393
2603
|
u.__compiled__ = {};
|
|
3394
|
-
function c(
|
|
3395
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
|
2604
|
+
function c(i, a) {
|
|
2605
|
+
throw new Error('(LinkifyIt) Invalid schema "' + i + '": ' + a);
|
|
3396
2606
|
}
|
|
3397
|
-
Object.keys(u.__schemas__).forEach(function(
|
|
3398
|
-
const a = u.__schemas__[
|
|
2607
|
+
Object.keys(u.__schemas__).forEach(function(i) {
|
|
2608
|
+
const a = u.__schemas__[i];
|
|
3399
2609
|
if (a === null)
|
|
3400
2610
|
return;
|
|
3401
2611
|
const s = { validate: null, link: null };
|
|
3402
|
-
if (u.__compiled__[
|
|
3403
|
-
|
|
2612
|
+
if (u.__compiled__[i] = s, rr(a)) {
|
|
2613
|
+
nr(a.validate) ? s.validate = lr(a.validate) : t0(a.validate) ? s.validate = a.validate : c(i, a), t0(a.normalize) ? s.normalize = a.normalize : a.normalize ? c(i, a) : s.normalize = r0();
|
|
3404
2614
|
return;
|
|
3405
2615
|
}
|
|
3406
|
-
if (
|
|
3407
|
-
r.push(
|
|
2616
|
+
if (tr(a)) {
|
|
2617
|
+
r.push(i);
|
|
3408
2618
|
return;
|
|
3409
2619
|
}
|
|
3410
|
-
c(
|
|
3411
|
-
}), r.forEach(function(
|
|
3412
|
-
u.__compiled__[u.__schemas__[
|
|
3413
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
|
3414
|
-
const
|
|
3415
|
-
return
|
|
3416
|
-
}).map(
|
|
3417
|
-
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" +
|
|
2620
|
+
c(i, a);
|
|
2621
|
+
}), r.forEach(function(i) {
|
|
2622
|
+
u.__compiled__[u.__schemas__[i]] && (u.__compiled__[i].validate = u.__compiled__[u.__schemas__[i]].validate, u.__compiled__[i].normalize = u.__compiled__[u.__schemas__[i]].normalize);
|
|
2623
|
+
}), u.__compiled__[""] = { validate: null, normalize: r0() };
|
|
2624
|
+
const o = Object.keys(u.__compiled__).filter(function(i) {
|
|
2625
|
+
return i.length > 0 && u.__compiled__[i];
|
|
2626
|
+
}).map(cr).join("|");
|
|
2627
|
+
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + o + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + o + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3418
2628
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3419
2629
|
"i"
|
|
3420
|
-
),
|
|
2630
|
+
), fr(u);
|
|
3421
2631
|
}
|
|
3422
|
-
function
|
|
2632
|
+
function dr(u, e) {
|
|
3423
2633
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3424
2634
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3425
2635
|
}
|
|
3426
|
-
function
|
|
3427
|
-
const t = new
|
|
2636
|
+
function Su(u, e) {
|
|
2637
|
+
const t = new dr(u, e);
|
|
3428
2638
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3429
2639
|
}
|
|
3430
|
-
function
|
|
3431
|
-
if (!(this instanceof
|
|
3432
|
-
return new
|
|
3433
|
-
e ||
|
|
2640
|
+
function v(u, e) {
|
|
2641
|
+
if (!(this instanceof v))
|
|
2642
|
+
return new v(u, e);
|
|
2643
|
+
e || ir(u) && (e = u, u = {}), this.__opts__ = vu({}, E0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = vu({}, or, u), this.__compiled__ = {}, this.__tlds__ = sr, this.__tlds_replaced__ = !1, this.re = {}, lu(this);
|
|
3434
2644
|
}
|
|
3435
|
-
|
|
3436
|
-
return this.__schemas__[e] = t,
|
|
2645
|
+
v.prototype.add = function(e, t) {
|
|
2646
|
+
return this.__schemas__[e] = t, lu(this), this;
|
|
3437
2647
|
};
|
|
3438
|
-
|
|
3439
|
-
return this.__opts__ =
|
|
2648
|
+
v.prototype.set = function(e) {
|
|
2649
|
+
return this.__opts__ = vu(this.__opts__, e), this;
|
|
3440
2650
|
};
|
|
3441
|
-
|
|
2651
|
+
v.prototype.test = function(e) {
|
|
3442
2652
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3443
2653
|
return !1;
|
|
3444
|
-
let t, n, r, c,
|
|
2654
|
+
let t, n, r, c, o, i, a, s, f;
|
|
3445
2655
|
if (this.re.schema_test.test(e)) {
|
|
3446
2656
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
|
3447
2657
|
if (c = this.testSchemaAt(e, t[2], a.lastIndex), c) {
|
|
@@ -3449,63 +2659,63 @@ X.prototype.test = function(e) {
|
|
|
3449
2659
|
break;
|
|
3450
2660
|
}
|
|
3451
2661
|
}
|
|
3452
|
-
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 && (
|
|
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 && (o = n.index + n[1].length, (this.__index__ < 0 || o < this.__index__) && (this.__schema__ = "", this.__index__ = o, 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 && (o = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || o < this.__index__ || o === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = o, this.__last_index__ = i))), this.__index__ >= 0;
|
|
3453
2663
|
};
|
|
3454
|
-
|
|
2664
|
+
v.prototype.pretest = function(e) {
|
|
3455
2665
|
return this.re.pretest.test(e);
|
|
3456
2666
|
};
|
|
3457
|
-
|
|
2667
|
+
v.prototype.testSchemaAt = function(e, t, n) {
|
|
3458
2668
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
|
3459
2669
|
};
|
|
3460
|
-
|
|
2670
|
+
v.prototype.match = function(e) {
|
|
3461
2671
|
const t = [];
|
|
3462
2672
|
let n = 0;
|
|
3463
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
|
2673
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(Su(this, n)), n = this.__last_index__);
|
|
3464
2674
|
let r = n ? e.slice(n) : e;
|
|
3465
2675
|
for (; this.test(r); )
|
|
3466
|
-
t.push(
|
|
2676
|
+
t.push(Su(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3467
2677
|
return t.length ? t : null;
|
|
3468
2678
|
};
|
|
3469
|
-
|
|
2679
|
+
v.prototype.matchAtStart = function(e) {
|
|
3470
2680
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
|
|
3471
2681
|
const t = this.re.schema_at_start.exec(e);
|
|
3472
2682
|
if (!t) return null;
|
|
3473
2683
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3474
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
|
2684
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, Su(this, 0)) : null;
|
|
3475
2685
|
};
|
|
3476
|
-
|
|
2686
|
+
v.prototype.tlds = function(e, t) {
|
|
3477
2687
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
|
3478
2688
|
return n !== c[r - 1];
|
|
3479
|
-
}).reverse(),
|
|
2689
|
+
}).reverse(), lu(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, lu(this), this);
|
|
3480
2690
|
};
|
|
3481
|
-
|
|
2691
|
+
v.prototype.normalize = function(e) {
|
|
3482
2692
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
3483
2693
|
};
|
|
3484
|
-
|
|
2694
|
+
v.prototype.onCompile = function() {
|
|
3485
2695
|
};
|
|
3486
|
-
const
|
|
2696
|
+
const V = 2147483647, I = 36, Lu = 1, eu = 26, br = 38, hr = 700, F0 = 72, A0 = 128, y0 = "-", pr = /^xn--/, xr = /[^\0-\x7F]/, _r = /[\x2E\u3002\uFF0E\uFF61]/g, mr = {
|
|
3487
2697
|
overflow: "Overflow: input needs wider integers to process",
|
|
3488
2698
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3489
2699
|
"invalid-input": "Invalid input"
|
|
3490
|
-
},
|
|
3491
|
-
function
|
|
3492
|
-
throw new RangeError(
|
|
2700
|
+
}, Fu = I - Lu, M = Math.floor, Au = String.fromCharCode;
|
|
2701
|
+
function O(u) {
|
|
2702
|
+
throw new RangeError(mr[u]);
|
|
3493
2703
|
}
|
|
3494
|
-
function
|
|
2704
|
+
function kr(u, e) {
|
|
3495
2705
|
const t = [];
|
|
3496
2706
|
let n = u.length;
|
|
3497
2707
|
for (; n--; )
|
|
3498
2708
|
t[n] = e(u[n]);
|
|
3499
2709
|
return t;
|
|
3500
2710
|
}
|
|
3501
|
-
function
|
|
2711
|
+
function w0(u, e) {
|
|
3502
2712
|
const t = u.split("@");
|
|
3503
2713
|
let n = "";
|
|
3504
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3505
|
-
const r = u.split("."), c =
|
|
2714
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(_r, ".");
|
|
2715
|
+
const r = u.split("."), c = kr(r, e).join(".");
|
|
3506
2716
|
return n + c;
|
|
3507
2717
|
}
|
|
3508
|
-
function
|
|
2718
|
+
function v0(u) {
|
|
3509
2719
|
const e = [];
|
|
3510
2720
|
let t = 0;
|
|
3511
2721
|
const n = u.length;
|
|
@@ -3519,78 +2729,78 @@ function Yt(u) {
|
|
|
3519
2729
|
}
|
|
3520
2730
|
return e;
|
|
3521
2731
|
}
|
|
3522
|
-
const
|
|
3523
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
|
3524
|
-
},
|
|
2732
|
+
const gr = (u) => String.fromCodePoint(...u), Dr = function(u) {
|
|
2733
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : I;
|
|
2734
|
+
}, n0 = function(u, e) {
|
|
3525
2735
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3526
|
-
},
|
|
2736
|
+
}, S0 = function(u, e, t) {
|
|
3527
2737
|
let n = 0;
|
|
3528
|
-
for (u = t ?
|
|
3529
|
-
u =
|
|
3530
|
-
return
|
|
3531
|
-
},
|
|
2738
|
+
for (u = t ? M(u / hr) : u >> 1, u += M(u / e); u > Fu * eu >> 1; n += I)
|
|
2739
|
+
u = M(u / Fu);
|
|
2740
|
+
return M(n + (Fu + 1) * u / (u + br));
|
|
2741
|
+
}, B0 = function(u) {
|
|
3532
2742
|
const e = [], t = u.length;
|
|
3533
|
-
let n = 0, r =
|
|
3534
|
-
|
|
3535
|
-
for (let
|
|
3536
|
-
u.charCodeAt(
|
|
3537
|
-
for (let
|
|
2743
|
+
let n = 0, r = A0, c = F0, o = u.lastIndexOf(y0);
|
|
2744
|
+
o < 0 && (o = 0);
|
|
2745
|
+
for (let i = 0; i < o; ++i)
|
|
2746
|
+
u.charCodeAt(i) >= 128 && O("not-basic"), e.push(u.charCodeAt(i));
|
|
2747
|
+
for (let i = o > 0 ? o + 1 : 0; i < t; ) {
|
|
3538
2748
|
const a = n;
|
|
3539
|
-
for (let f = 1,
|
|
3540
|
-
|
|
3541
|
-
const
|
|
3542
|
-
|
|
3543
|
-
const
|
|
3544
|
-
if (
|
|
2749
|
+
for (let f = 1, d = I; ; d += I) {
|
|
2750
|
+
i >= t && O("invalid-input");
|
|
2751
|
+
const h = Dr(u.charCodeAt(i++));
|
|
2752
|
+
h >= I && O("invalid-input"), h > M((V - n) / f) && O("overflow"), n += h * f;
|
|
2753
|
+
const b = d <= c ? Lu : d >= c + eu ? eu : d - c;
|
|
2754
|
+
if (h < b)
|
|
3545
2755
|
break;
|
|
3546
|
-
const
|
|
3547
|
-
f >
|
|
2756
|
+
const l = I - b;
|
|
2757
|
+
f > M(V / l) && O("overflow"), f *= l;
|
|
3548
2758
|
}
|
|
3549
2759
|
const s = e.length + 1;
|
|
3550
|
-
c =
|
|
2760
|
+
c = S0(n - a, s, a == 0), M(n / s) > V - r && O("overflow"), r += M(n / s), n %= s, e.splice(n++, 0, r);
|
|
3551
2761
|
}
|
|
3552
2762
|
return String.fromCodePoint(...e);
|
|
3553
|
-
},
|
|
2763
|
+
}, T0 = function(u) {
|
|
3554
2764
|
const e = [];
|
|
3555
|
-
u =
|
|
2765
|
+
u = v0(u);
|
|
3556
2766
|
const t = u.length;
|
|
3557
|
-
let n =
|
|
2767
|
+
let n = A0, r = 0, c = F0;
|
|
3558
2768
|
for (const a of u)
|
|
3559
|
-
a < 128 && e.push(
|
|
3560
|
-
const
|
|
3561
|
-
let
|
|
3562
|
-
for (
|
|
3563
|
-
let a =
|
|
2769
|
+
a < 128 && e.push(Au(a));
|
|
2770
|
+
const o = e.length;
|
|
2771
|
+
let i = o;
|
|
2772
|
+
for (o && e.push(y0); i < t; ) {
|
|
2773
|
+
let a = V;
|
|
3564
2774
|
for (const f of u)
|
|
3565
2775
|
f >= n && f < a && (a = f);
|
|
3566
|
-
const s =
|
|
3567
|
-
a - n >
|
|
2776
|
+
const s = i + 1;
|
|
2777
|
+
a - n > M((V - r) / s) && O("overflow"), r += (a - n) * s, n = a;
|
|
3568
2778
|
for (const f of u)
|
|
3569
|
-
if (f < n && ++r >
|
|
3570
|
-
let
|
|
3571
|
-
for (let
|
|
3572
|
-
const
|
|
3573
|
-
if (
|
|
2779
|
+
if (f < n && ++r > V && O("overflow"), f === n) {
|
|
2780
|
+
let d = r;
|
|
2781
|
+
for (let h = I; ; h += I) {
|
|
2782
|
+
const b = h <= c ? Lu : h >= c + eu ? eu : h - c;
|
|
2783
|
+
if (d < b)
|
|
3574
2784
|
break;
|
|
3575
|
-
const
|
|
2785
|
+
const l = d - b, k = I - b;
|
|
3576
2786
|
e.push(
|
|
3577
|
-
|
|
3578
|
-
),
|
|
2787
|
+
Au(n0(b + l % k, 0))
|
|
2788
|
+
), d = M(l / k);
|
|
3579
2789
|
}
|
|
3580
|
-
e.push(
|
|
2790
|
+
e.push(Au(n0(d, 0))), c = S0(r, s, i === o), r = 0, ++i;
|
|
3581
2791
|
}
|
|
3582
2792
|
++r, ++n;
|
|
3583
2793
|
}
|
|
3584
2794
|
return e.join("");
|
|
3585
|
-
},
|
|
3586
|
-
return
|
|
3587
|
-
return
|
|
2795
|
+
}, Cr = function(u) {
|
|
2796
|
+
return w0(u, function(e) {
|
|
2797
|
+
return pr.test(e) ? B0(e.slice(4).toLowerCase()) : e;
|
|
3588
2798
|
});
|
|
3589
|
-
},
|
|
3590
|
-
return
|
|
3591
|
-
return
|
|
2799
|
+
}, Er = function(u) {
|
|
2800
|
+
return w0(u, function(e) {
|
|
2801
|
+
return xr.test(e) ? "xn--" + T0(e) : e;
|
|
3592
2802
|
});
|
|
3593
|
-
},
|
|
2803
|
+
}, z0 = {
|
|
3594
2804
|
/**
|
|
3595
2805
|
* A string representing the current Punycode.js version number.
|
|
3596
2806
|
* @memberOf punycode
|
|
@@ -3605,14 +2815,14 @@ const ci = (u) => String.fromCodePoint(...u), oi = function(u) {
|
|
|
3605
2815
|
* @type Object
|
|
3606
2816
|
*/
|
|
3607
2817
|
ucs2: {
|
|
3608
|
-
decode:
|
|
3609
|
-
encode:
|
|
2818
|
+
decode: v0,
|
|
2819
|
+
encode: gr
|
|
3610
2820
|
},
|
|
3611
|
-
decode:
|
|
3612
|
-
encode:
|
|
3613
|
-
toASCII:
|
|
3614
|
-
toUnicode:
|
|
3615
|
-
},
|
|
2821
|
+
decode: B0,
|
|
2822
|
+
encode: T0,
|
|
2823
|
+
toASCII: Er,
|
|
2824
|
+
toUnicode: Cr
|
|
2825
|
+
}, Fr = {
|
|
3616
2826
|
options: {
|
|
3617
2827
|
// Enable HTML tags in source
|
|
3618
2828
|
html: !1,
|
|
@@ -3648,7 +2858,7 @@ const ci = (u) => String.fromCodePoint(...u), oi = function(u) {
|
|
|
3648
2858
|
block: {},
|
|
3649
2859
|
inline: {}
|
|
3650
2860
|
}
|
|
3651
|
-
},
|
|
2861
|
+
}, Ar = {
|
|
3652
2862
|
options: {
|
|
3653
2863
|
// Enable HTML tags in source
|
|
3654
2864
|
html: !1,
|
|
@@ -3703,7 +2913,7 @@ const ci = (u) => String.fromCodePoint(...u), oi = function(u) {
|
|
|
3703
2913
|
]
|
|
3704
2914
|
}
|
|
3705
2915
|
}
|
|
3706
|
-
},
|
|
2916
|
+
}, yr = {
|
|
3707
2917
|
options: {
|
|
3708
2918
|
// Enable HTML tags in source
|
|
3709
2919
|
html: !0,
|
|
@@ -3777,47 +2987,47 @@ const ci = (u) => String.fromCodePoint(...u), oi = function(u) {
|
|
|
3777
2987
|
]
|
|
3778
2988
|
}
|
|
3779
2989
|
}
|
|
3780
|
-
},
|
|
3781
|
-
default:
|
|
3782
|
-
zero:
|
|
3783
|
-
commonmark:
|
|
3784
|
-
},
|
|
3785
|
-
function
|
|
2990
|
+
}, wr = {
|
|
2991
|
+
default: Fr,
|
|
2992
|
+
zero: Ar,
|
|
2993
|
+
commonmark: yr
|
|
2994
|
+
}, vr = /^(vbscript|javascript|file|data):/, Sr = /^data:image\/(gif|png|jpeg|webp);/;
|
|
2995
|
+
function Br(u) {
|
|
3786
2996
|
const e = u.trim().toLowerCase();
|
|
3787
|
-
return
|
|
2997
|
+
return vr.test(e) ? Sr.test(e) : !0;
|
|
3788
2998
|
}
|
|
3789
|
-
const
|
|
3790
|
-
function
|
|
3791
|
-
const e =
|
|
3792
|
-
if (e.hostname && (!e.protocol ||
|
|
2999
|
+
const I0 = ["http:", "https:", "mailto:"];
|
|
3000
|
+
function Tr(u) {
|
|
3001
|
+
const e = Tu(u, !0);
|
|
3002
|
+
if (e.hostname && (!e.protocol || I0.indexOf(e.protocol) >= 0))
|
|
3793
3003
|
try {
|
|
3794
|
-
e.hostname =
|
|
3004
|
+
e.hostname = z0.toASCII(e.hostname);
|
|
3795
3005
|
} catch {
|
|
3796
3006
|
}
|
|
3797
|
-
return
|
|
3007
|
+
return ru(Bu(e));
|
|
3798
3008
|
}
|
|
3799
|
-
function
|
|
3800
|
-
const e =
|
|
3801
|
-
if (e.hostname && (!e.protocol ||
|
|
3009
|
+
function zr(u) {
|
|
3010
|
+
const e = Tu(u, !0);
|
|
3011
|
+
if (e.hostname && (!e.protocol || I0.indexOf(e.protocol) >= 0))
|
|
3802
3012
|
try {
|
|
3803
|
-
e.hostname =
|
|
3013
|
+
e.hostname = z0.toUnicode(e.hostname);
|
|
3804
3014
|
} catch {
|
|
3805
3015
|
}
|
|
3806
|
-
return
|
|
3016
|
+
return G(Bu(e), G.defaultChars + "%");
|
|
3807
3017
|
}
|
|
3808
|
-
function
|
|
3809
|
-
if (!(this instanceof
|
|
3810
|
-
return new
|
|
3811
|
-
e ||
|
|
3018
|
+
function B(u, e) {
|
|
3019
|
+
if (!(this instanceof B))
|
|
3020
|
+
return new B(u, e);
|
|
3021
|
+
e || Iu(u) || (e = u || {}, u = "default"), this.inline = new cu(), this.block = new hu(), this.core = new qu(), this.renderer = new Q(), this.linkify = new v(), this.validateLink = Br, this.normalizeLink = Tr, this.normalizeLinkText = zr, this.utils = Me, this.helpers = du({}, Pe), this.options = {}, this.configure(u), e && this.set(e);
|
|
3812
3022
|
}
|
|
3813
|
-
|
|
3814
|
-
return
|
|
3023
|
+
B.prototype.set = function(u) {
|
|
3024
|
+
return du(this.options, u), this;
|
|
3815
3025
|
};
|
|
3816
|
-
|
|
3026
|
+
B.prototype.configure = function(u) {
|
|
3817
3027
|
const e = this;
|
|
3818
|
-
if (
|
|
3028
|
+
if (Iu(u)) {
|
|
3819
3029
|
const t = u;
|
|
3820
|
-
if (u =
|
|
3030
|
+
if (u = wr[t], !u)
|
|
3821
3031
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3822
3032
|
}
|
|
3823
3033
|
if (!u)
|
|
@@ -3826,7 +3036,7 @@ Q.prototype.configure = function(u) {
|
|
|
3826
3036
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3827
3037
|
}), this;
|
|
3828
3038
|
};
|
|
3829
|
-
|
|
3039
|
+
B.prototype.enable = function(u, e) {
|
|
3830
3040
|
let t = [];
|
|
3831
3041
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3832
3042
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -3838,7 +3048,7 @@ Q.prototype.enable = function(u, e) {
|
|
|
3838
3048
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3839
3049
|
return this;
|
|
3840
3050
|
};
|
|
3841
|
-
|
|
3051
|
+
B.prototype.disable = function(u, e) {
|
|
3842
3052
|
let t = [];
|
|
3843
3053
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3844
3054
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -3850,83 +3060,153 @@ Q.prototype.disable = function(u, e) {
|
|
|
3850
3060
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
3851
3061
|
return this;
|
|
3852
3062
|
};
|
|
3853
|
-
|
|
3063
|
+
B.prototype.use = function(u) {
|
|
3854
3064
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3855
3065
|
return u.apply(u, e), this;
|
|
3856
3066
|
};
|
|
3857
|
-
|
|
3067
|
+
B.prototype.parse = function(u, e) {
|
|
3858
3068
|
if (typeof u != "string")
|
|
3859
3069
|
throw new Error("Input data should be a String");
|
|
3860
3070
|
const t = new this.core.State(u, this, e);
|
|
3861
3071
|
return this.core.process(t), t.tokens;
|
|
3862
3072
|
};
|
|
3863
|
-
|
|
3073
|
+
B.prototype.render = function(u, e) {
|
|
3864
3074
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
3865
3075
|
};
|
|
3866
|
-
|
|
3076
|
+
B.prototype.parseInline = function(u, e) {
|
|
3867
3077
|
const t = new this.core.State(u, this, e);
|
|
3868
3078
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
3869
3079
|
};
|
|
3870
|
-
|
|
3080
|
+
B.prototype.renderInline = function(u, e) {
|
|
3871
3081
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3872
3082
|
};
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3083
|
+
const Ir = {
|
|
3084
|
+
key: 0,
|
|
3085
|
+
class: "tr-bubble__avatar"
|
|
3086
|
+
}, Mr = { class: "tr-bubble__content-wrapper" }, qr = {
|
|
3087
|
+
key: 1,
|
|
3088
|
+
class: /* @__PURE__ */ i0(["tr-bubble__content"])
|
|
3089
|
+
}, Rr = { class: "tr-bubbule__body" }, Lr = ["innerHTML"], Pr = { key: 1 }, Or = {
|
|
3090
|
+
key: 2,
|
|
3091
|
+
class: "tr-bubbule__aborted"
|
|
3092
|
+
}, Nr = {
|
|
3093
|
+
key: 0,
|
|
3094
|
+
class: "tr-bubbule__footer"
|
|
3095
|
+
}, $r = /* @__PURE__ */ c0({
|
|
3096
|
+
__name: "Bubble",
|
|
3097
|
+
props: {
|
|
3098
|
+
content: { default: "" },
|
|
3099
|
+
id: {},
|
|
3100
|
+
placement: { default: "start" },
|
|
3101
|
+
avatar: {},
|
|
3102
|
+
role: {},
|
|
3103
|
+
type: { default: "text" },
|
|
3104
|
+
loading: { type: Boolean },
|
|
3105
|
+
aborted: { type: Boolean },
|
|
3106
|
+
mdConfig: {},
|
|
3107
|
+
maxWidth: { default: "80%" }
|
|
3108
|
+
},
|
|
3109
|
+
setup(u) {
|
|
3110
|
+
L0((o) => ({
|
|
3111
|
+
"2f6c8c8c": P0(V0)(e.maxWidth)
|
|
3112
|
+
}));
|
|
3113
|
+
const e = u, t = O0(), n = au(() => B(e.mdConfig || {})), r = au(() => e.type === "markdown" ? n.value.render(e.content) : e.content), c = au(() => e.placement === "start");
|
|
3114
|
+
return (o, i) => (S(), L("div", {
|
|
3115
|
+
class: i0([
|
|
3116
|
+
"tr-bubble",
|
|
3117
|
+
{
|
|
3118
|
+
"placement-start": c.value,
|
|
3119
|
+
"placement-end": !c.value
|
|
3120
|
+
}
|
|
3121
|
+
])
|
|
3122
|
+
}, [
|
|
3123
|
+
e.avatar ? (S(), L("div", Ir, [
|
|
3124
|
+
(S(), yu(o0(e.avatar)))
|
|
3125
|
+
])) : _u("", !0),
|
|
3126
|
+
Z("div", Mr, [
|
|
3127
|
+
e.loading ? mu(o.$slots, "loading", {
|
|
3128
|
+
key: 0,
|
|
3129
|
+
bubbleProps: e
|
|
3130
|
+
}, () => [
|
|
3131
|
+
i[0] || (i[0] = Z("div", { class: "tr-bubble__loading" }, [
|
|
3132
|
+
Z("span"),
|
|
3133
|
+
Z("span"),
|
|
3134
|
+
Z("span")
|
|
3135
|
+
], -1))
|
|
3136
|
+
], !0) : (S(), L("div", qr, [
|
|
3137
|
+
Z("div", Rr, [
|
|
3138
|
+
mu(o.$slots, "default", { bubbleProps: e }, () => [
|
|
3139
|
+
e.type === "markdown" ? (S(), L("span", {
|
|
3140
|
+
key: 0,
|
|
3141
|
+
innerHTML: r.value
|
|
3142
|
+
}, null, 8, Lr)) : (S(), L("span", Pr, N0(r.value), 1)),
|
|
3143
|
+
e.aborted ? (S(), L("span", Or, "(用户停止)")) : _u("", !0)
|
|
3144
|
+
], !0)
|
|
3145
|
+
]),
|
|
3146
|
+
t.footer ? (S(), L("div", Nr, [
|
|
3147
|
+
mu(o.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
3148
|
+
])) : _u("", !0)
|
|
3149
|
+
]))
|
|
3150
|
+
])
|
|
3151
|
+
], 2));
|
|
3892
3152
|
}
|
|
3893
|
-
}
|
|
3894
|
-
|
|
3895
|
-
__name: "BubbleProvider",
|
|
3153
|
+
}), J = /* @__PURE__ */ a0($r, [["__scopeId", "data-v-a0fefd10"]]), jr = /* @__PURE__ */ c0({
|
|
3154
|
+
__name: "BubbleList",
|
|
3896
3155
|
props: {
|
|
3897
|
-
|
|
3156
|
+
items: {},
|
|
3157
|
+
roles: {},
|
|
3158
|
+
autoScroll: { type: Boolean }
|
|
3898
3159
|
},
|
|
3899
3160
|
setup(u) {
|
|
3900
|
-
const e = u, t =
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3161
|
+
const e = u, t = $0(null), { y: n } = G0(t, {
|
|
3162
|
+
behavior: "smooth",
|
|
3163
|
+
throttle: 100
|
|
3164
|
+
}), r = au(() => e.items.at(-1));
|
|
3165
|
+
j0([() => e.items.length, () => {
|
|
3166
|
+
var i;
|
|
3167
|
+
return (i = r.value) == null ? void 0 : i.content;
|
|
3168
|
+
}], () => {
|
|
3169
|
+
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
3170
|
+
});
|
|
3171
|
+
const c = (i) => {
|
|
3172
|
+
var b;
|
|
3173
|
+
const a = i.role ? ((b = e.roles) == null ? void 0 : b[i.role]) || {} : {}, { slots: s, ...f } = a, { slots: d, ...h } = i;
|
|
3174
|
+
return { ...f, ...h };
|
|
3175
|
+
}, o = (i) => {
|
|
3176
|
+
var s;
|
|
3177
|
+
return { ...(i.role ? ((s = e.roles) == null ? void 0 : s[i.role]) || {} : {}).slots, ...i.slots };
|
|
3178
|
+
};
|
|
3179
|
+
return (i, a) => (S(), L("div", {
|
|
3180
|
+
class: "tr-bubble-list",
|
|
3181
|
+
ref_key: "scrollContainerRef",
|
|
3182
|
+
ref: t
|
|
3183
|
+
}, [
|
|
3184
|
+
(S(!0), L(U0, null, Ou(e.items, (s, f) => (S(), yu(J, Nu({
|
|
3185
|
+
key: s.id || f
|
|
3186
|
+
}, { ref_for: !0 }, c(s)), Z0({ _: 2 }, [
|
|
3187
|
+
Ou(o(s), (d, h) => ({
|
|
3188
|
+
name: h,
|
|
3189
|
+
fn: H0((b) => [
|
|
3190
|
+
(S(), yu(o0(o(s)[h]), Nu({ ref_for: !0 }, b), null, 16))
|
|
3191
|
+
])
|
|
3192
|
+
}))
|
|
3193
|
+
]), 1040))), 128))
|
|
3194
|
+
], 512));
|
|
3906
3195
|
}
|
|
3907
|
-
});
|
|
3908
|
-
|
|
3909
|
-
const
|
|
3910
|
-
u.component(
|
|
3911
|
-
};
|
|
3912
|
-
|
|
3913
|
-
const
|
|
3914
|
-
|
|
3915
|
-
const
|
|
3916
|
-
u.component(
|
|
3917
|
-
};
|
|
3918
|
-
|
|
3919
|
-
const
|
|
3920
|
-
ne.name = "TrBubbleProvider";
|
|
3921
|
-
const ki = function(u) {
|
|
3922
|
-
u.component(ne.name, ne);
|
|
3923
|
-
};
|
|
3924
|
-
ne.install = ki;
|
|
3925
|
-
const Ri = ne;
|
|
3196
|
+
}), tu = /* @__PURE__ */ a0(jr, [["__scopeId", "data-v-307d7ab0"]]);
|
|
3197
|
+
J.name = "TrBubble";
|
|
3198
|
+
const Ur = function(u) {
|
|
3199
|
+
u.component(J.name, J);
|
|
3200
|
+
};
|
|
3201
|
+
J.install = Ur;
|
|
3202
|
+
const Jr = J;
|
|
3203
|
+
tu.name = "TrBubbleList";
|
|
3204
|
+
const Zr = function(u) {
|
|
3205
|
+
u.component(tu.name, tu);
|
|
3206
|
+
};
|
|
3207
|
+
tu.install = Zr;
|
|
3208
|
+
const Qr = tu;
|
|
3926
3209
|
export {
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
Si as BubbleMarkdownMessageRenderer,
|
|
3930
|
-
Et as BubbleMessageClassRenderer,
|
|
3931
|
-
Ri as BubbleProvider
|
|
3210
|
+
Jr as Bubble,
|
|
3211
|
+
Qr as BubbleList
|
|
3932
3212
|
};
|