@opentiny/tiny-robot 0.3.0-alpha.16 → 0.3.0-alpha.18
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 +44 -41
- package/dist/attachments/index.js +526 -0
- package/dist/base-popper/index.js +4 -0
- package/dist/bubble/index.js +1112 -1163
- package/dist/close.js +1 -1
- package/dist/container/index.js +30 -30
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +151 -64
- package/dist/feedback/index.js +52 -52
- package/dist/flow-layout-buttons/index.js +17 -14
- package/dist/history/index.js +49 -49
- package/dist/icon-button/index.js +18 -19
- package/dist/index.d.ts +1180 -926
- package/dist/index.js +206 -77
- package/dist/index2.js +610 -530
- package/dist/index3.js +692 -297
- package/dist/index4.js +146 -622
- package/dist/index5.js +227 -2067
- package/dist/index6.js +2255 -4652
- package/dist/index7.js +6654 -0
- package/dist/mcp-server-picker/index.js +29978 -0
- package/dist/question/index.js +35 -35
- package/dist/sender/index.js +1129 -1199
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +61 -61
- package/dist/suggestion-pills/index.js +131 -155
- package/dist/suggestion-popover/index.js +250 -219
- package/dist/tiny-robot-svgs.js +679 -180
- package/dist/useSlotRefs.js +36 -0
- package/dist/utils.js +8 -13
- package/package.json +10 -3
package/dist/bubble/index.js
CHANGED
|
@@ -1,449 +1,236 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
1
|
+
var hn = Object.defineProperty;
|
|
2
|
+
var pn = (u, e, t) => e in u ? hn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
|
+
var be = (u, e, t) => pn(u, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as Cu, ref as i0, createElementBlock as H, openBlock as S, createElementVNode as Z, createVNode as At, toDisplayString as Pu, unref as bu, normalizeClass as Mu, withDirectives as bn, vShow as _n, computed as Eu, useCssModule as mn, createCommentVNode as Lu, createBlock as uu, resolveDynamicComponent as mu, createTextVNode as xn, h as $0, inject as j0, useAttrs as gn, normalizeProps as Ce, mergeProps as Ou, useSlots as kn, normalizeStyle as En, renderSlot as ke, Fragment as De, renderList as Ee, watch as An, createSlots as G0, withCtx as W0, guardReactiveProps as Cn, provide as Z0 } from "vue";
|
|
5
5
|
import { _ as Dn } from "../loading.js";
|
|
6
6
|
import { t as yn } from "../utils.js";
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as
|
|
10
|
-
class
|
|
7
|
+
import { g as Fn, _ as V0, a as Tn, V as Sn, F as wn, P as vn } from "../tiny-robot-svgs.js";
|
|
8
|
+
import { _ as re } from "../_plugin-vue_export-helper.js";
|
|
9
|
+
import { u as Rn } from "../index3.js";
|
|
10
|
+
class a0 {
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const In = { class: "tr-bubble__step-text" }, Mn = { class: "tr-bubble__step-text-title" }, Ln = { class: "tr-bubble__step-text-content-wrapper" }, On = /* @__PURE__ */ Cu({
|
|
13
13
|
__name: "collapsible-text",
|
|
14
14
|
props: {
|
|
15
15
|
title: {},
|
|
16
16
|
content: {}
|
|
17
17
|
},
|
|
18
18
|
setup(u) {
|
|
19
|
-
const e = u, t =
|
|
20
|
-
return (n, r) => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class:
|
|
19
|
+
const e = u, t = i0(!1);
|
|
20
|
+
return (n, r) => (S(), H("div", In, [
|
|
21
|
+
Z("div", Mn, [
|
|
22
|
+
Z("span", null, Pu(e.title), 1),
|
|
23
|
+
At(bu(Fn), {
|
|
24
|
+
class: Mu(["expand-icon", { "rotate-180": t.value }]),
|
|
25
25
|
onClick: r[0] || (r[0] = (c) => t.value = !t.value)
|
|
26
26
|
}, null, 8, ["class"])
|
|
27
27
|
]),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
[
|
|
28
|
+
Z("div", Ln, [
|
|
29
|
+
bn(Z("div", { class: "tr-bubble__step-text-content" }, Pu(e.content), 513), [
|
|
30
|
+
[_n, !t.value]
|
|
31
31
|
])
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), Nn = /* @__PURE__ */ re(On, [["__scopeId", "data-v-20805c77"]]), Pn = Nn, Bn = { class: "tr-bubble__text" }, zn = /* @__PURE__ */ Cu({
|
|
36
36
|
__name: "text",
|
|
37
37
|
props: {
|
|
38
38
|
content: {}
|
|
39
39
|
},
|
|
40
40
|
setup(u) {
|
|
41
41
|
const e = u;
|
|
42
|
-
return (t, n) => (
|
|
42
|
+
return (t, n) => (S(), H("span", Bn, Pu(e.content), 1));
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), qn = /* @__PURE__ */ re(zn, [["__scopeId", "data-v-5658bc8d"]]), s0 = qn, Un = { class: "tr-bubble__step-tool" }, Hn = { class: "tr-bubble__step-tool-header" }, $n = { class: "tr-bubble__step-tool-left" }, jn = { class: "tr-bubble__step-tool-title" }, Gn = { class: "tr-bubble__step-tool-name" }, Wn = { class: "tr-bubble__step-tool-expand" }, Zn = {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "tr-bubble__step-tool-params"
|
|
47
|
-
},
|
|
47
|
+
}, Vn = ["innerHTML"], Yn = /* @__PURE__ */ Cu({
|
|
48
48
|
__name: "tool",
|
|
49
49
|
props: {
|
|
50
50
|
name: {},
|
|
51
51
|
status: {},
|
|
52
|
-
|
|
52
|
+
content: {},
|
|
53
53
|
formatPretty: { type: Boolean }
|
|
54
54
|
},
|
|
55
55
|
setup(u) {
|
|
56
|
-
const e = u, t =
|
|
57
|
-
|
|
56
|
+
const e = u, t = i0(!1), n = /* @__PURE__ */ new Map([
|
|
57
|
+
["running", { text: "正在调用", icon: Sn }],
|
|
58
|
+
["success", { text: "已调用", icon: V0 }],
|
|
59
|
+
["failed", { text: "调用失败", icon: wn }],
|
|
60
|
+
["cancelled", { text: "已取消", icon: vn }]
|
|
61
|
+
]), r = Eu(() => n.get(e.status) || { text: "", icon: V0 }), c = mn(), i = (o) => {
|
|
62
|
+
if (!o)
|
|
58
63
|
return "";
|
|
59
|
-
let
|
|
60
|
-
const
|
|
64
|
+
let a = "";
|
|
65
|
+
const s = e.formatPretty ? 2 : 0;
|
|
61
66
|
try {
|
|
62
|
-
typeof
|
|
63
|
-
} catch (
|
|
64
|
-
console.warn(
|
|
67
|
+
typeof o == "string" ? a = JSON.stringify(JSON.parse(o), null, s) : a = JSON.stringify(o, null, s);
|
|
68
|
+
} catch (f) {
|
|
69
|
+
console.warn(f);
|
|
65
70
|
}
|
|
66
|
-
return
|
|
71
|
+
return a = a.replace(
|
|
67
72
|
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,
|
|
68
|
-
(
|
|
69
|
-
let
|
|
70
|
-
return /^"/.test(
|
|
73
|
+
(f) => {
|
|
74
|
+
let d = "number";
|
|
75
|
+
return /^"/.test(f) ? d = /:$/.test(f) ? "key" : "string" : /true|false/.test(f) ? d = "boolean" : /null/.test(f) && (d = "null"), `<span class="${c[d]}">${f}</span>`;
|
|
71
76
|
}
|
|
72
|
-
),
|
|
77
|
+
), a;
|
|
73
78
|
};
|
|
74
|
-
return (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
return (o, a) => (S(), H("div", Un, [
|
|
80
|
+
Z("div", Hn, [
|
|
81
|
+
Z("div", $n, [
|
|
82
|
+
(S(), uu(mu(r.value.icon), {
|
|
83
|
+
class: Mu(["tr-bubble__step-tool-icon", `icon-${e.status}`])
|
|
84
|
+
}, null, 8, ["class"])),
|
|
85
|
+
Z("span", jn, [
|
|
86
|
+
xn(Pu(r.value.text) + " ", 1),
|
|
87
|
+
Z("span", Gn, Pu(e.name), 1)
|
|
81
88
|
])
|
|
82
89
|
]),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class:
|
|
86
|
-
onClick:
|
|
90
|
+
Z("div", Wn, [
|
|
91
|
+
At(bu(Tn), {
|
|
92
|
+
class: Mu(["expand-icon", { "-rotate-90": !t.value }]),
|
|
93
|
+
onClick: a[0] || (a[0] = (s) => t.value = !t.value)
|
|
87
94
|
}, null, 8, ["class"])
|
|
88
95
|
])
|
|
89
96
|
]),
|
|
90
|
-
t.value ?
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
t.value ? (S(), H("div", Zn, [
|
|
98
|
+
a[1] || (a[1] = Z("hr", { class: "tr-bubble__step-tool-hr" }, null, -1)),
|
|
99
|
+
Z("div", {
|
|
93
100
|
class: "tr-bubble__step-tool-params-content",
|
|
94
|
-
innerHTML:
|
|
95
|
-
}, null, 8,
|
|
96
|
-
]))
|
|
101
|
+
innerHTML: i(e.content)
|
|
102
|
+
}, null, 8, Vn)
|
|
103
|
+
])) : Lu("", !0)
|
|
97
104
|
]));
|
|
98
105
|
}
|
|
99
|
-
}),
|
|
100
|
-
number:
|
|
101
|
-
key:
|
|
102
|
-
string:
|
|
103
|
-
boolean:
|
|
106
|
+
}), Xn = "_number_jtifp_2", Jn = "_key_jtifp_6", Qn = "_string_jtifp_10", Kn = "_boolean_jtifp_14", ur = {
|
|
107
|
+
number: Xn,
|
|
108
|
+
key: Jn,
|
|
109
|
+
string: Qn,
|
|
110
|
+
boolean: Kn,
|
|
104
111
|
null: "_null_jtifp_18"
|
|
105
|
-
},
|
|
106
|
-
$style:
|
|
107
|
-
},
|
|
108
|
-
["text",
|
|
109
|
-
["tool",
|
|
110
|
-
["collapsible-text",
|
|
111
|
-
]),
|
|
112
|
-
inheritAttrs: !1,
|
|
113
|
-
__name: "Message",
|
|
114
|
-
props: {
|
|
115
|
-
type: {}
|
|
116
|
-
},
|
|
117
|
-
setup(u) {
|
|
118
|
-
const e = j0(Ft, yt), t = j0(Tt, l0), n = u, r = gn(), c = (s) => {
|
|
119
|
-
const f = { ...r, ...n }, d = e.get(s) || t;
|
|
120
|
-
return typeof d == "function" ? { isComponent: !1, vNodeOrComponent: d(f) } : d instanceof s0 ? { isComponent: !1, vNodeOrComponent: d.render(f) } : typeof d == "object" && "component" in d ? { isComponent: !0, vNodeOrComponent: d.component, defaultProps: d.defaultProps } : { isComponent: !0, vNodeOrComponent: d };
|
|
121
|
-
}, { isComponent: i, vNodeOrComponent: o, defaultProps: a } = c(n.type);
|
|
122
|
-
return (s, f) => uu(i) ? (T(), ru(Au(uu(o)), Pu({ key: 0 }, { ...uu(a), ...n, ...uu(r) }, {
|
|
123
|
-
"data-type": n.type
|
|
124
|
-
}), null, 16, ["data-type"])) : (T(), ru(Au(uu(o)), {
|
|
125
|
-
key: 1,
|
|
126
|
-
"data-type": n.type
|
|
127
|
-
}, null, 8, ["data-type"]));
|
|
128
|
-
}
|
|
129
|
-
}), nr = {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: "tr-bubble__avatar"
|
|
132
|
-
}, rr = { class: "tr-bubble__content-wrapper" }, cr = {
|
|
133
|
-
key: 0,
|
|
134
|
-
class: "tr-bubble__content-messages"
|
|
135
|
-
}, or = {
|
|
136
|
-
key: 1,
|
|
137
|
-
class: "tr-bubble__body-text"
|
|
138
|
-
}, ir = {
|
|
139
|
-
key: 2,
|
|
140
|
-
class: "tr-bubble__aborted"
|
|
141
|
-
}, ar = {
|
|
142
|
-
key: 3,
|
|
143
|
-
class: "tr-bubble__footer"
|
|
144
|
-
}, sr = /* @__PURE__ */ ku({
|
|
145
|
-
__name: "Bubble",
|
|
146
|
-
props: {
|
|
147
|
-
content: { default: "" },
|
|
148
|
-
messages: {},
|
|
149
|
-
id: {},
|
|
150
|
-
role: {},
|
|
151
|
-
loading: { type: Boolean },
|
|
152
|
-
aborted: { type: Boolean },
|
|
153
|
-
placement: { default: "start" },
|
|
154
|
-
avatar: {},
|
|
155
|
-
shape: { default: "corner" },
|
|
156
|
-
contentRenderer: {},
|
|
157
|
-
hidden: { type: Boolean },
|
|
158
|
-
maxWidth: { default: "80%" }
|
|
159
|
-
},
|
|
160
|
-
setup(u) {
|
|
161
|
-
kn((i) => ({
|
|
162
|
-
"555751ca": uu(yn)(e.maxWidth)
|
|
163
|
-
}));
|
|
164
|
-
const e = u, t = En(), n = Ou(() => {
|
|
165
|
-
const i = e.contentRenderer;
|
|
166
|
-
return i ? typeof i == "function" ? { isComponent: !1, vNodeOrComponent: i(e) } : i instanceof s0 ? { isComponent: !1, vNodeOrComponent: i.render(e) } : typeof i == "object" && "component" in i ? { isComponent: !0, vNodeOrComponent: i.component, defaultProps: i.defaultProps } : { isComponent: !0, vNodeOrComponent: i } : null;
|
|
167
|
-
}), r = Ou(() => e.content), c = Ou(() => e.placement === "start");
|
|
168
|
-
return (i, o) => {
|
|
169
|
-
var a;
|
|
170
|
-
return T(), M("div", {
|
|
171
|
-
class: mu([
|
|
172
|
-
"tr-bubble",
|
|
173
|
-
{
|
|
174
|
-
"placement-start": c.value,
|
|
175
|
-
"placement-end": !c.value
|
|
176
|
-
}
|
|
177
|
-
])
|
|
178
|
-
}, [
|
|
179
|
-
e.avatar ? (T(), M("div", nr, [
|
|
180
|
-
(T(), ru(Au(e.avatar)))
|
|
181
|
-
])) : Nu("", !0),
|
|
182
|
-
I("div", rr, [
|
|
183
|
-
e.loading ? Ae(i.$slots, "loading", {
|
|
184
|
-
key: 0,
|
|
185
|
-
bubbleProps: e
|
|
186
|
-
}, () => [
|
|
187
|
-
I("div", {
|
|
188
|
-
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
189
|
-
}, o[0] || (o[0] = [
|
|
190
|
-
I("img", {
|
|
191
|
-
src: Dn,
|
|
192
|
-
alt: "loading",
|
|
193
|
-
class: "tr-bubble__loading"
|
|
194
|
-
}, null, -1)
|
|
195
|
-
]), 2)
|
|
196
|
-
], !0) : (T(), M("div", {
|
|
197
|
-
key: 1,
|
|
198
|
-
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
199
|
-
}, [
|
|
200
|
-
(a = e.messages) != null && a.length ? (T(), M("div", cr, [
|
|
201
|
-
(T(!0), M(te, null, ue(e.messages, (s, f) => (T(), ru(tr, Pu({ key: f }, { ref_for: !0 }, s), null, 16))), 128))
|
|
202
|
-
])) : Ae(i.$slots, "default", {
|
|
203
|
-
key: 1,
|
|
204
|
-
bubbleProps: e
|
|
205
|
-
}, () => [
|
|
206
|
-
n.value ? (T(), M(te, { key: 0 }, [
|
|
207
|
-
n.value.isComponent ? (T(), ru(Au(n.value.vNodeOrComponent), n0(Pu({ key: 0 }, { ...n.value.defaultProps, ...e })), null, 16)) : (T(), ru(Au(n.value.vNodeOrComponent), { key: 1 }))
|
|
208
|
-
], 64)) : (T(), M("span", or, xu(r.value), 1))
|
|
209
|
-
], !0),
|
|
210
|
-
e.aborted ? (T(), M("span", ir, "(用户停止)")) : Nu("", !0),
|
|
211
|
-
t.footer ? (T(), M("div", ar, [
|
|
212
|
-
Ae(i.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
213
|
-
])) : Nu("", !0)
|
|
214
|
-
], 2))
|
|
215
|
-
])
|
|
216
|
-
], 2);
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
}), Du = /* @__PURE__ */ Uu(sr, [["__scopeId", "data-v-7e75e225"]]), lr = /* @__PURE__ */ ku({
|
|
220
|
-
__name: "BubbleList",
|
|
221
|
-
props: {
|
|
222
|
-
items: {},
|
|
223
|
-
roles: {},
|
|
224
|
-
loading: { type: Boolean },
|
|
225
|
-
loadingRole: {},
|
|
226
|
-
autoScroll: { type: Boolean }
|
|
227
|
-
},
|
|
228
|
-
setup(u) {
|
|
229
|
-
const e = u, t = Se(null), { y: n } = wn(t, {
|
|
230
|
-
behavior: "smooth",
|
|
231
|
-
throttle: 100
|
|
232
|
-
}), r = Ou(() => e.items.at(-1));
|
|
233
|
-
Cn([() => e.items.length, () => {
|
|
234
|
-
var a;
|
|
235
|
-
return (a = r.value) == null ? void 0 : a.content;
|
|
236
|
-
}], () => {
|
|
237
|
-
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
238
|
-
});
|
|
239
|
-
const c = (a) => {
|
|
240
|
-
var p;
|
|
241
|
-
const s = a.role ? ((p = e.roles) == null ? void 0 : p[a.role]) || {} : {}, { slots: f, ...d } = s, { slots: _, ...h } = a;
|
|
242
|
-
return { ...d, ...h };
|
|
243
|
-
}, i = (a) => {
|
|
244
|
-
var f;
|
|
245
|
-
return { ...(a.role ? ((f = e.roles) == null ? void 0 : f[a.role]) || {} : {}).slots, ...a.slots };
|
|
246
|
-
}, o = Ou(() => {
|
|
247
|
-
var f;
|
|
248
|
-
if (!(e.loading && e.loadingRole && ((f = e.roles) != null && f[e.loadingRole])))
|
|
249
|
-
return null;
|
|
250
|
-
const { slots: a, ...s } = e.roles[e.loadingRole];
|
|
251
|
-
return { props: { ...s, loading: !0 }, slots: a };
|
|
252
|
-
});
|
|
253
|
-
return (a, s) => (T(), M("div", {
|
|
254
|
-
class: "tr-bubble-list",
|
|
255
|
-
ref_key: "scrollContainerRef",
|
|
256
|
-
ref: t
|
|
257
|
-
}, [
|
|
258
|
-
(T(!0), M(te, null, ue(e.items, (f, d) => (T(), M(te, {
|
|
259
|
-
key: f.id || d
|
|
260
|
-
}, [
|
|
261
|
-
f.hidden ? Nu("", !0) : (T(), ru(Du, Pu({
|
|
262
|
-
key: 0,
|
|
263
|
-
ref_for: !0
|
|
264
|
-
}, c(f)), G0({ _: 2 }, [
|
|
265
|
-
ue(i(f), (_, h) => ({
|
|
266
|
-
name: h,
|
|
267
|
-
fn: W0((p) => [
|
|
268
|
-
(T(), ru(Au(_), Pu({ ref_for: !0 }, p), null, 16))
|
|
269
|
-
])
|
|
270
|
-
}))
|
|
271
|
-
]), 1040))
|
|
272
|
-
], 64))), 128)),
|
|
273
|
-
o.value ? (T(), ru(Du, n0(Pu({ key: 0 }, o.value.props)), G0({ _: 2 }, [
|
|
274
|
-
ue(o.value.slots, (f, d) => ({
|
|
275
|
-
name: d,
|
|
276
|
-
fn: W0((_) => [
|
|
277
|
-
(T(), ru(Au(f), n0(An(_)), null, 16))
|
|
278
|
-
])
|
|
279
|
-
}))
|
|
280
|
-
]), 1040)) : Nu("", !0)
|
|
281
|
-
], 512));
|
|
282
|
-
}
|
|
283
|
-
}), ne = /* @__PURE__ */ Uu(lr, [["__scopeId", "data-v-24c3a7d6"]]), fr = { class: "tr-chain-item__header" }, dr = { class: "tr-chain-item__icon" }, pr = { class: "tr-chain-item__title" }, hr = { class: "tr-chain-item__body" }, br = ["innerHTML"], _r = /* @__PURE__ */ ku({
|
|
284
|
-
__name: "chain",
|
|
285
|
-
props: {
|
|
286
|
-
items: {},
|
|
287
|
-
html: { type: Boolean, default: !0 },
|
|
288
|
-
contentClass: {},
|
|
289
|
-
contentRenderer: {}
|
|
290
|
-
},
|
|
291
|
-
setup(u) {
|
|
292
|
-
const e = u, t = Se({}), n = (c) => {
|
|
293
|
-
t.value[c] = !t.value[c];
|
|
294
|
-
}, r = (c) => e.contentRenderer ? e.contentRenderer(c) : c;
|
|
295
|
-
return (c, i) => (T(), M("div", {
|
|
296
|
-
class: "tr-chain-list",
|
|
297
|
-
key: e.items.length
|
|
298
|
-
}, [
|
|
299
|
-
(T(!0), M(te, null, ue(e.items, (o, a) => (T(), M("div", {
|
|
300
|
-
class: "tr-chain-item",
|
|
301
|
-
key: o.content
|
|
302
|
-
}, [
|
|
303
|
-
I("div", fr, [
|
|
304
|
-
I("div", dr, [
|
|
305
|
-
ee(uu(Sn))
|
|
306
|
-
]),
|
|
307
|
-
I("div", pr, xu(o.title), 1),
|
|
308
|
-
ee(uu(Dt), {
|
|
309
|
-
class: mu(["expand-icon", { "rotate-180": t.value[a] }]),
|
|
310
|
-
onClick: (s) => n(a)
|
|
311
|
-
}, null, 8, ["class", "onClick"])
|
|
312
|
-
]),
|
|
313
|
-
Ct(I("div", hr, [
|
|
314
|
-
i[0] || (i[0] = I("div", { class: "tr-chain-item__chain-line-wrapper" }, [
|
|
315
|
-
I("div", { class: "tr-chain-item__chain-line" })
|
|
316
|
-
], -1)),
|
|
317
|
-
e.html ? (T(), M("div", {
|
|
318
|
-
key: 1,
|
|
319
|
-
class: mu(["tr-chain-item__content", e.contentClass]),
|
|
320
|
-
innerHTML: r(o.content)
|
|
321
|
-
}, null, 10, br)) : (T(), M("div", {
|
|
322
|
-
key: 0,
|
|
323
|
-
class: mu(["tr-chain-item__content", e.contentClass])
|
|
324
|
-
}, xu(r(o.content)), 3))
|
|
325
|
-
], 512), [
|
|
326
|
-
[At, !t.value[a]]
|
|
327
|
-
])
|
|
328
|
-
]))), 128))
|
|
329
|
-
]));
|
|
330
|
-
}
|
|
331
|
-
}), mr = /* @__PURE__ */ Uu(_r, [["__scopeId", "data-v-145547c7"]]), Ni = mr;
|
|
112
|
+
}, er = {
|
|
113
|
+
$style: ur
|
|
114
|
+
}, tr = /* @__PURE__ */ re(Yn, [["__cssModules", er], ["__scopeId", "data-v-8bb9c32d"]]), nr = tr, Ct = /* @__PURE__ */ new Map([
|
|
115
|
+
["text", s0],
|
|
116
|
+
["tool", nr],
|
|
117
|
+
["collapsible-text", Pn]
|
|
118
|
+
]), Dt = Symbol("bubbleContentRendererMap"), yt = Symbol("bubbleContentFallbackRenderer");
|
|
332
119
|
/*! @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 */
|
|
333
120
|
const {
|
|
334
|
-
entries:
|
|
121
|
+
entries: Ft,
|
|
335
122
|
setPrototypeOf: Y0,
|
|
336
|
-
isFrozen:
|
|
337
|
-
getPrototypeOf:
|
|
338
|
-
getOwnPropertyDescriptor:
|
|
123
|
+
isFrozen: rr,
|
|
124
|
+
getPrototypeOf: cr,
|
|
125
|
+
getOwnPropertyDescriptor: or
|
|
339
126
|
} = Object;
|
|
340
127
|
let {
|
|
341
|
-
freeze:
|
|
128
|
+
freeze: j,
|
|
342
129
|
seal: J,
|
|
343
|
-
create:
|
|
130
|
+
create: Tt
|
|
344
131
|
} = Object, {
|
|
345
|
-
apply:
|
|
346
|
-
construct:
|
|
132
|
+
apply: t0,
|
|
133
|
+
construct: n0
|
|
347
134
|
} = typeof Reflect < "u" && Reflect;
|
|
348
|
-
|
|
135
|
+
j || (j = function(e) {
|
|
349
136
|
return e;
|
|
350
137
|
});
|
|
351
138
|
J || (J = function(e) {
|
|
352
139
|
return e;
|
|
353
140
|
});
|
|
354
|
-
|
|
141
|
+
t0 || (t0 = function(e, t, n) {
|
|
355
142
|
return e.apply(t, n);
|
|
356
143
|
});
|
|
357
|
-
|
|
144
|
+
n0 || (n0 = function(e, t) {
|
|
358
145
|
return new e(...t);
|
|
359
146
|
});
|
|
360
|
-
const
|
|
361
|
-
function
|
|
147
|
+
const _e = G(Array.prototype.forEach), ir = G(Array.prototype.lastIndexOf), X0 = G(Array.prototype.pop), Zu = G(Array.prototype.push), ar = G(Array.prototype.splice), Ae = G(String.prototype.toLowerCase), je = G(String.prototype.toString), J0 = G(String.prototype.match), Vu = G(String.prototype.replace), sr = G(String.prototype.indexOf), lr = G(String.prototype.trim), K = G(Object.prototype.hasOwnProperty), $ = G(RegExp.prototype.test), Yu = fr(TypeError);
|
|
148
|
+
function G(u) {
|
|
362
149
|
return function(e) {
|
|
363
150
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
364
151
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
365
152
|
n[r - 1] = arguments[r];
|
|
366
|
-
return
|
|
153
|
+
return t0(u, e, n);
|
|
367
154
|
};
|
|
368
155
|
}
|
|
369
|
-
function
|
|
156
|
+
function fr(u) {
|
|
370
157
|
return function() {
|
|
371
158
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
372
159
|
t[n] = arguments[n];
|
|
373
|
-
return
|
|
160
|
+
return n0(u, t);
|
|
374
161
|
};
|
|
375
162
|
}
|
|
376
163
|
function F(u, e) {
|
|
377
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
164
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ae;
|
|
378
165
|
Y0 && Y0(u, null);
|
|
379
166
|
let n = e.length;
|
|
380
167
|
for (; n--; ) {
|
|
381
168
|
let r = e[n];
|
|
382
169
|
if (typeof r == "string") {
|
|
383
170
|
const c = t(r);
|
|
384
|
-
c !== r && (
|
|
171
|
+
c !== r && (rr(e) || (e[n] = c), r = c);
|
|
385
172
|
}
|
|
386
173
|
u[r] = !0;
|
|
387
174
|
}
|
|
388
175
|
return u;
|
|
389
176
|
}
|
|
390
|
-
function
|
|
177
|
+
function dr(u) {
|
|
391
178
|
for (let e = 0; e < u.length; e++)
|
|
392
179
|
K(u, e) || (u[e] = null);
|
|
393
180
|
return u;
|
|
394
181
|
}
|
|
395
|
-
function
|
|
396
|
-
const e =
|
|
397
|
-
for (const [t, n] of
|
|
398
|
-
K(u, t) && (Array.isArray(n) ? e[t] =
|
|
182
|
+
function fu(u) {
|
|
183
|
+
const e = Tt(null);
|
|
184
|
+
for (const [t, n] of Ft(u))
|
|
185
|
+
K(u, t) && (Array.isArray(n) ? e[t] = dr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = fu(n) : e[t] = n);
|
|
399
186
|
return e;
|
|
400
187
|
}
|
|
401
|
-
function
|
|
188
|
+
function Xu(u, e) {
|
|
402
189
|
for (; u !== null; ) {
|
|
403
|
-
const n =
|
|
190
|
+
const n = or(u, e);
|
|
404
191
|
if (n) {
|
|
405
192
|
if (n.get)
|
|
406
|
-
return
|
|
193
|
+
return G(n.get);
|
|
407
194
|
if (typeof n.value == "function")
|
|
408
|
-
return
|
|
195
|
+
return G(n.value);
|
|
409
196
|
}
|
|
410
|
-
u =
|
|
197
|
+
u = cr(u);
|
|
411
198
|
}
|
|
412
199
|
function t() {
|
|
413
200
|
return null;
|
|
414
201
|
}
|
|
415
202
|
return t;
|
|
416
203
|
}
|
|
417
|
-
const Q0 =
|
|
204
|
+
const Q0 = j(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ge = 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"]), We = 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"]), hr = 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"]), Ze = 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"]), pr = j(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), K0 = j(["#text"]), ut = j(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ve = j(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), et = j(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), me = j(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), br = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), _r = J(/<%[\w\W]*|[\w\W]*%>/gm), mr = J(/\$\{[\w\W]*/gm), xr = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), gr = J(/^aria-[\-\w]+$/), St = J(
|
|
418
205
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
419
206
|
// eslint-disable-line no-useless-escape
|
|
420
|
-
),
|
|
207
|
+
), kr = J(/^(?:\w+script|data):/i), Er = J(
|
|
421
208
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
422
209
|
// eslint-disable-line no-control-regex
|
|
423
|
-
),
|
|
210
|
+
), wt = J(/^html$/i), Ar = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
424
211
|
var tt = /* @__PURE__ */ Object.freeze({
|
|
425
212
|
__proto__: null,
|
|
426
|
-
ARIA_ATTR:
|
|
427
|
-
ATTR_WHITESPACE:
|
|
428
|
-
CUSTOM_ELEMENT:
|
|
429
|
-
DATA_ATTR:
|
|
430
|
-
DOCTYPE_NAME:
|
|
431
|
-
ERB_EXPR:
|
|
432
|
-
IS_ALLOWED_URI:
|
|
433
|
-
IS_SCRIPT_OR_DATA:
|
|
434
|
-
MUSTACHE_EXPR:
|
|
435
|
-
TMPLIT_EXPR:
|
|
213
|
+
ARIA_ATTR: gr,
|
|
214
|
+
ATTR_WHITESPACE: Er,
|
|
215
|
+
CUSTOM_ELEMENT: Ar,
|
|
216
|
+
DATA_ATTR: xr,
|
|
217
|
+
DOCTYPE_NAME: wt,
|
|
218
|
+
ERB_EXPR: _r,
|
|
219
|
+
IS_ALLOWED_URI: St,
|
|
220
|
+
IS_SCRIPT_OR_DATA: kr,
|
|
221
|
+
MUSTACHE_EXPR: br,
|
|
222
|
+
TMPLIT_EXPR: mr
|
|
436
223
|
});
|
|
437
|
-
const
|
|
224
|
+
const Ju = {
|
|
438
225
|
element: 1,
|
|
439
226
|
text: 3,
|
|
440
227
|
// Deprecated
|
|
441
228
|
progressingInstruction: 7,
|
|
442
229
|
comment: 8,
|
|
443
230
|
document: 9
|
|
444
|
-
},
|
|
231
|
+
}, Cr = function() {
|
|
445
232
|
return typeof window > "u" ? null : window;
|
|
446
|
-
},
|
|
233
|
+
}, Dr = function(e, t) {
|
|
447
234
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
448
235
|
return null;
|
|
449
236
|
let n = null;
|
|
@@ -475,10 +262,10 @@ const Ku = {
|
|
|
475
262
|
uponSanitizeShadowNode: []
|
|
476
263
|
};
|
|
477
264
|
};
|
|
478
|
-
function
|
|
479
|
-
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
480
|
-
const e = (g) =>
|
|
481
|
-
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !==
|
|
265
|
+
function vt() {
|
|
266
|
+
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Cr();
|
|
267
|
+
const e = (g) => vt(g);
|
|
268
|
+
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !== Ju.document || !u.Element)
|
|
482
269
|
return e.isSupported = !1, e;
|
|
483
270
|
let {
|
|
484
271
|
document: t
|
|
@@ -492,40 +279,40 @@ function Mt() {
|
|
|
492
279
|
NamedNodeMap: f = u.NamedNodeMap || u.MozNamedAttrMap,
|
|
493
280
|
HTMLFormElement: d,
|
|
494
281
|
DOMParser: _,
|
|
495
|
-
trustedTypes:
|
|
496
|
-
} = u,
|
|
282
|
+
trustedTypes: p
|
|
283
|
+
} = u, h = a.prototype, C = Xu(h, "cloneNode"), D = Xu(h, "remove"), T = Xu(h, "nextSibling"), E = Xu(h, "childNodes"), k = Xu(h, "parentNode");
|
|
497
284
|
if (typeof i == "function") {
|
|
498
285
|
const g = t.createElement("template");
|
|
499
286
|
g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
|
|
500
287
|
}
|
|
501
|
-
let m,
|
|
288
|
+
let m, A = "";
|
|
502
289
|
const {
|
|
503
290
|
implementation: y,
|
|
504
|
-
createNodeIterator:
|
|
291
|
+
createNodeIterator: I,
|
|
505
292
|
createDocumentFragment: Y,
|
|
506
293
|
getElementsByTagName: tu
|
|
507
294
|
} = t, {
|
|
508
|
-
importNode:
|
|
295
|
+
importNode: gu
|
|
509
296
|
} = n;
|
|
510
|
-
let
|
|
511
|
-
e.isSupported = typeof
|
|
297
|
+
let M = nt();
|
|
298
|
+
e.isSupported = typeof Ft == "function" && typeof k == "function" && y && y.createHTMLDocument !== void 0;
|
|
512
299
|
const {
|
|
513
|
-
MUSTACHE_EXPR:
|
|
514
|
-
ERB_EXPR:
|
|
515
|
-
TMPLIT_EXPR:
|
|
516
|
-
DATA_ATTR:
|
|
300
|
+
MUSTACHE_EXPR: Uu,
|
|
301
|
+
ERB_EXPR: Hu,
|
|
302
|
+
TMPLIT_EXPR: Du,
|
|
303
|
+
DATA_ATTR: du,
|
|
517
304
|
ARIA_ATTR: Ie,
|
|
518
|
-
IS_SCRIPT_OR_DATA:
|
|
519
|
-
ATTR_WHITESPACE:
|
|
520
|
-
CUSTOM_ELEMENT:
|
|
305
|
+
IS_SCRIPT_OR_DATA: tn,
|
|
306
|
+
ATTR_WHITESPACE: x0,
|
|
307
|
+
CUSTOM_ELEMENT: nn
|
|
521
308
|
} = tt;
|
|
522
309
|
let {
|
|
523
|
-
IS_ALLOWED_URI:
|
|
524
|
-
} = tt,
|
|
525
|
-
const
|
|
526
|
-
let
|
|
527
|
-
const
|
|
528
|
-
let R = Object.seal(
|
|
310
|
+
IS_ALLOWED_URI: g0
|
|
311
|
+
} = tt, O = null;
|
|
312
|
+
const k0 = F({}, [...Q0, ...Ge, ...We, ...Ze, ...K0]);
|
|
313
|
+
let z = null;
|
|
314
|
+
const E0 = F({}, [...ut, ...Ve, ...et, ...me]);
|
|
315
|
+
let R = Object.seal(Tt(null, {
|
|
529
316
|
tagNameCheck: {
|
|
530
317
|
writable: !0,
|
|
531
318
|
configurable: !1,
|
|
@@ -544,47 +331,47 @@ function Mt() {
|
|
|
544
331
|
enumerable: !0,
|
|
545
332
|
value: !1
|
|
546
333
|
}
|
|
547
|
-
})),
|
|
548
|
-
const
|
|
549
|
-
let
|
|
550
|
-
const
|
|
551
|
-
let
|
|
552
|
-
const
|
|
553
|
-
let
|
|
554
|
-
const
|
|
555
|
-
let
|
|
556
|
-
const
|
|
557
|
-
let
|
|
558
|
-
const
|
|
559
|
-
let
|
|
560
|
-
const
|
|
561
|
-
let
|
|
562
|
-
const
|
|
334
|
+
})), $u = null, Me = null, A0 = !0, Le = !0, C0 = !1, D0 = !0, yu = !1, ae = !0, ku = !1, Oe = !1, Ne = !1, Fu = !1, se = !1, le = !1, y0 = !0, F0 = !1;
|
|
335
|
+
const rn = "user-content-";
|
|
336
|
+
let Pe = !0, ju = !1, Tu = {}, Su = null;
|
|
337
|
+
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"]);
|
|
338
|
+
let S0 = null;
|
|
339
|
+
const w0 = F({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
340
|
+
let Be = null;
|
|
341
|
+
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", au = "http://www.w3.org/1999/xhtml";
|
|
342
|
+
let wu = au, ze = !1, qe = null;
|
|
343
|
+
const cn = F({}, [fe, de, au], je);
|
|
344
|
+
let he = F({}, ["mi", "mo", "mn", "ms", "mtext"]), pe = F({}, ["annotation-xml"]);
|
|
345
|
+
const on = F({}, ["title", "style", "font", "a", "script"]);
|
|
346
|
+
let Gu = null;
|
|
347
|
+
const an = ["application/xhtml+xml", "text/html"], sn = "text/html";
|
|
348
|
+
let N = null, vu = null;
|
|
349
|
+
const ln = t.createElement("form"), R0 = function(l) {
|
|
563
350
|
return l instanceof RegExp || l instanceof Function;
|
|
564
|
-
},
|
|
351
|
+
}, Ue = function() {
|
|
565
352
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
566
|
-
if (!(
|
|
567
|
-
if ((!l || typeof l != "object") && (l = {}), l =
|
|
568
|
-
|
|
353
|
+
if (!(vu && vu === l)) {
|
|
354
|
+
if ((!l || typeof l != "object") && (l = {}), l = fu(l), Gu = // eslint-disable-next-line unicorn/prefer-includes
|
|
355
|
+
an.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? sn : l.PARSER_MEDIA_TYPE, N = Gu === "application/xhtml+xml" ? je : Ae, O = K(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, N) : k0, z = K(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, N) : E0, qe = K(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, je) : cn, Be = K(l, "ADD_URI_SAFE_ATTR") ? F(fu(v0), l.ADD_URI_SAFE_ATTR, N) : v0, S0 = K(l, "ADD_DATA_URI_TAGS") ? F(fu(w0), l.ADD_DATA_URI_TAGS, N) : w0, Su = K(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, N) : T0, $u = K(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, N) : fu({}), Me = K(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, N) : fu({}), Tu = K(l, "USE_PROFILES") ? l.USE_PROFILES : !1, A0 = l.ALLOW_ARIA_ATTR !== !1, Le = l.ALLOW_DATA_ATTR !== !1, C0 = l.ALLOW_UNKNOWN_PROTOCOLS || !1, D0 = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, yu = l.SAFE_FOR_TEMPLATES || !1, ae = l.SAFE_FOR_XML !== !1, ku = l.WHOLE_DOCUMENT || !1, Fu = l.RETURN_DOM || !1, se = l.RETURN_DOM_FRAGMENT || !1, le = l.RETURN_TRUSTED_TYPE || !1, Ne = l.FORCE_BODY || !1, y0 = l.SANITIZE_DOM !== !1, F0 = l.SANITIZE_NAMED_PROPS || !1, Pe = l.KEEP_CONTENT !== !1, ju = l.IN_PLACE || !1, g0 = l.ALLOWED_URI_REGEXP || St, wu = l.NAMESPACE || au, 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), yu && (Le = !1), se && (Fu = !0), Tu && (O = F({}, K0), z = [], Tu.html === !0 && (F(O, Q0), F(z, ut)), Tu.svg === !0 && (F(O, Ge), F(z, Ve), F(z, me)), Tu.svgFilters === !0 && (F(O, We), F(z, Ve), F(z, me)), Tu.mathMl === !0 && (F(O, Ze), F(z, et), F(z, me))), l.ADD_TAGS && (O === k0 && (O = fu(O)), F(O, l.ADD_TAGS, N)), l.ADD_ATTR && (z === E0 && (z = fu(z)), F(z, l.ADD_ATTR, N)), l.ADD_URI_SAFE_ATTR && F(Be, l.ADD_URI_SAFE_ATTR, N), l.FORBID_CONTENTS && (Su === T0 && (Su = fu(Su)), F(Su, l.FORBID_CONTENTS, N)), Pe && (O["#text"] = !0), ku && F(O, ["html", "head", "body"]), O.table && (F(O, ["tbody"]), delete $u.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
569
356
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
570
|
-
throw
|
|
357
|
+
throw Yu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
571
358
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
572
|
-
throw
|
|
573
|
-
m = l.TRUSTED_TYPES_POLICY,
|
|
359
|
+
throw Yu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
360
|
+
m = l.TRUSTED_TYPES_POLICY, A = m.createHTML("");
|
|
574
361
|
} else
|
|
575
|
-
m === void 0 && (m =
|
|
576
|
-
|
|
362
|
+
m === void 0 && (m = Dr(p, r)), m !== null && typeof A == "string" && (A = m.createHTML(""));
|
|
363
|
+
j && j(l), vu = l;
|
|
577
364
|
}
|
|
578
|
-
}, I0 = F({}, [...
|
|
365
|
+
}, I0 = F({}, [...Ge, ...We, ...hr]), M0 = F({}, [...Ze, ...pr]), fn = function(l) {
|
|
579
366
|
let b = k(l);
|
|
580
367
|
(!b || !b.tagName) && (b = {
|
|
581
|
-
namespaceURI:
|
|
368
|
+
namespaceURI: wu,
|
|
582
369
|
tagName: "template"
|
|
583
370
|
});
|
|
584
|
-
const x =
|
|
585
|
-
return
|
|
371
|
+
const x = Ae(l.tagName), v = Ae(b.tagName);
|
|
372
|
+
return qe[l.namespaceURI] ? l.namespaceURI === de ? b.namespaceURI === au ? x === "svg" : b.namespaceURI === fe ? x === "svg" && (v === "annotation-xml" || he[v]) : !!I0[x] : l.namespaceURI === fe ? b.namespaceURI === au ? x === "math" : b.namespaceURI === de ? x === "math" && pe[v] : !!M0[x] : l.namespaceURI === au ? b.namespaceURI === de && !pe[v] || b.namespaceURI === fe && !he[v] ? !1 : !M0[x] && (on[x] || !I0[x]) : !!(Gu === "application/xhtml+xml" && qe[l.namespaceURI]) : !1;
|
|
586
373
|
}, nu = function(l) {
|
|
587
|
-
|
|
374
|
+
Zu(e.removed, {
|
|
588
375
|
element: l
|
|
589
376
|
});
|
|
590
377
|
try {
|
|
@@ -592,20 +379,20 @@ function Mt() {
|
|
|
592
379
|
} catch {
|
|
593
380
|
D(l);
|
|
594
381
|
}
|
|
595
|
-
},
|
|
382
|
+
}, Ru = function(l, b) {
|
|
596
383
|
try {
|
|
597
|
-
|
|
384
|
+
Zu(e.removed, {
|
|
598
385
|
attribute: b.getAttributeNode(l),
|
|
599
386
|
from: b
|
|
600
387
|
});
|
|
601
388
|
} catch {
|
|
602
|
-
|
|
389
|
+
Zu(e.removed, {
|
|
603
390
|
attribute: null,
|
|
604
391
|
from: b
|
|
605
392
|
});
|
|
606
393
|
}
|
|
607
394
|
if (b.removeAttribute(l), l === "is")
|
|
608
|
-
if (
|
|
395
|
+
if (Fu || se)
|
|
609
396
|
try {
|
|
610
397
|
nu(b);
|
|
611
398
|
} catch {
|
|
@@ -615,96 +402,96 @@ function Mt() {
|
|
|
615
402
|
b.setAttribute(l, "");
|
|
616
403
|
} catch {
|
|
617
404
|
}
|
|
618
|
-
},
|
|
405
|
+
}, L0 = function(l) {
|
|
619
406
|
let b = null, x = null;
|
|
620
|
-
if (
|
|
407
|
+
if (Ne)
|
|
621
408
|
l = "<remove></remove>" + l;
|
|
622
409
|
else {
|
|
623
|
-
const
|
|
624
|
-
x =
|
|
410
|
+
const L = J0(l, /^[\r\n\t ]+/);
|
|
411
|
+
x = L && L[0];
|
|
625
412
|
}
|
|
626
|
-
|
|
413
|
+
Gu === "application/xhtml+xml" && wu === au && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
627
414
|
const v = m ? m.createHTML(l) : l;
|
|
628
|
-
if (
|
|
415
|
+
if (wu === au)
|
|
629
416
|
try {
|
|
630
|
-
b = new _().parseFromString(v,
|
|
417
|
+
b = new _().parseFromString(v, Gu);
|
|
631
418
|
} catch {
|
|
632
419
|
}
|
|
633
420
|
if (!b || !b.documentElement) {
|
|
634
|
-
b = y.createDocument(
|
|
421
|
+
b = y.createDocument(wu, "template", null);
|
|
635
422
|
try {
|
|
636
|
-
b.documentElement.innerHTML =
|
|
423
|
+
b.documentElement.innerHTML = ze ? A : v;
|
|
637
424
|
} catch {
|
|
638
425
|
}
|
|
639
426
|
}
|
|
640
|
-
const
|
|
641
|
-
return l && x &&
|
|
642
|
-
},
|
|
643
|
-
return
|
|
427
|
+
const q = b.body || b.documentElement;
|
|
428
|
+
return l && x && q.insertBefore(t.createTextNode(x), q.childNodes[0] || null), wu === au ? tu.call(b, ku ? "html" : "body")[0] : ku ? b.documentElement : q;
|
|
429
|
+
}, O0 = function(l) {
|
|
430
|
+
return I.call(
|
|
644
431
|
l.ownerDocument || l,
|
|
645
432
|
l,
|
|
646
433
|
// eslint-disable-next-line no-bitwise
|
|
647
434
|
s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
|
|
648
435
|
null
|
|
649
436
|
);
|
|
650
|
-
},
|
|
437
|
+
}, He = function(l) {
|
|
651
438
|
return l instanceof d && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof f) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
652
|
-
},
|
|
439
|
+
}, N0 = function(l) {
|
|
653
440
|
return typeof o == "function" && l instanceof o;
|
|
654
441
|
};
|
|
655
|
-
function
|
|
656
|
-
|
|
657
|
-
x.call(e, l, b,
|
|
442
|
+
function su(g, l, b) {
|
|
443
|
+
_e(g, (x) => {
|
|
444
|
+
x.call(e, l, b, vu);
|
|
658
445
|
});
|
|
659
446
|
}
|
|
660
|
-
const
|
|
447
|
+
const P0 = function(l) {
|
|
661
448
|
let b = null;
|
|
662
|
-
if (
|
|
449
|
+
if (su(M.beforeSanitizeElements, l, null), He(l))
|
|
663
450
|
return nu(l), !0;
|
|
664
|
-
const x =
|
|
665
|
-
if (
|
|
451
|
+
const x = N(l.nodeName);
|
|
452
|
+
if (su(M.uponSanitizeElement, l, {
|
|
666
453
|
tagName: x,
|
|
667
|
-
allowedTags:
|
|
668
|
-
}),
|
|
454
|
+
allowedTags: O
|
|
455
|
+
}), ae && l.hasChildNodes() && !N0(l.firstElementChild) && $(/<[/\w!]/g, l.innerHTML) && $(/<[/\w!]/g, l.textContent) || l.nodeType === Ju.progressingInstruction || ae && l.nodeType === Ju.comment && $(/<[/\w]/g, l.data))
|
|
669
456
|
return nu(l), !0;
|
|
670
|
-
if (!
|
|
671
|
-
if (
|
|
457
|
+
if (!O[x] || $u[x]) {
|
|
458
|
+
if (!$u[x] && z0(x) && (R.tagNameCheck instanceof RegExp && $(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
672
459
|
return !1;
|
|
673
|
-
if (
|
|
674
|
-
const v = k(l) || l.parentNode,
|
|
675
|
-
if (
|
|
676
|
-
const
|
|
677
|
-
for (let
|
|
678
|
-
const
|
|
679
|
-
|
|
460
|
+
if (Pe && !Su[x]) {
|
|
461
|
+
const v = k(l) || l.parentNode, q = E(l) || l.childNodes;
|
|
462
|
+
if (q && v) {
|
|
463
|
+
const L = q.length;
|
|
464
|
+
for (let W = L - 1; W >= 0; --W) {
|
|
465
|
+
const lu = C(q[W], !0);
|
|
466
|
+
lu.__removalCount = (l.__removalCount || 0) + 1, v.insertBefore(lu, T(l));
|
|
680
467
|
}
|
|
681
468
|
}
|
|
682
469
|
}
|
|
683
470
|
return nu(l), !0;
|
|
684
471
|
}
|
|
685
|
-
return l instanceof a && !
|
|
686
|
-
b =
|
|
687
|
-
}), l.textContent !== b && (
|
|
472
|
+
return l instanceof a && !fn(l) || (x === "noscript" || x === "noembed" || x === "noframes") && $(/<\/no(script|embed|frames)/i, l.innerHTML) ? (nu(l), !0) : (yu && l.nodeType === Ju.text && (b = l.textContent, _e([Uu, Hu, Du], (v) => {
|
|
473
|
+
b = Vu(b, v, " ");
|
|
474
|
+
}), l.textContent !== b && (Zu(e.removed, {
|
|
688
475
|
element: l.cloneNode()
|
|
689
|
-
}), l.textContent = b)),
|
|
690
|
-
},
|
|
691
|
-
if (
|
|
476
|
+
}), l.textContent = b)), su(M.afterSanitizeElements, l, null), !1);
|
|
477
|
+
}, B0 = function(l, b, x) {
|
|
478
|
+
if (y0 && (b === "id" || b === "name") && (x in t || x in ln))
|
|
692
479
|
return !1;
|
|
693
|
-
if (!(
|
|
694
|
-
if (!(A0 &&
|
|
695
|
-
if (!
|
|
480
|
+
if (!(Le && !Me[b] && $(du, b))) {
|
|
481
|
+
if (!(A0 && $(Ie, b))) {
|
|
482
|
+
if (!z[b] || Me[b]) {
|
|
696
483
|
if (
|
|
697
484
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
698
485
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
699
486
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
700
|
-
!(
|
|
487
|
+
!(z0(l) && (R.tagNameCheck instanceof RegExp && $(R.tagNameCheck, l) || R.tagNameCheck instanceof Function && R.tagNameCheck(l)) && (R.attributeNameCheck instanceof RegExp && $(R.attributeNameCheck, b) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
701
488
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
702
|
-
b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp &&
|
|
489
|
+
b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && $(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
703
490
|
) return !1;
|
|
704
|
-
} else if (!
|
|
705
|
-
if (
|
|
706
|
-
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" &&
|
|
707
|
-
if (!(
|
|
491
|
+
} else if (!Be[b]) {
|
|
492
|
+
if (!$(g0, Vu(x, x0, ""))) {
|
|
493
|
+
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" && sr(x, "data:") === 0 && S0[l])) {
|
|
494
|
+
if (!(C0 && !$(tn, Vu(x, x0, "")))) {
|
|
708
495
|
if (x)
|
|
709
496
|
return !1;
|
|
710
497
|
}
|
|
@@ -714,148 +501,148 @@ function Mt() {
|
|
|
714
501
|
}
|
|
715
502
|
}
|
|
716
503
|
return !0;
|
|
504
|
+
}, z0 = function(l) {
|
|
505
|
+
return l !== "annotation-xml" && J0(l, nn);
|
|
717
506
|
}, q0 = function(l) {
|
|
718
|
-
|
|
719
|
-
}, U0 = function(l) {
|
|
720
|
-
lu(O.beforeSanitizeAttributes, l, null);
|
|
507
|
+
su(M.beforeSanitizeAttributes, l, null);
|
|
721
508
|
const {
|
|
722
509
|
attributes: b
|
|
723
510
|
} = l;
|
|
724
|
-
if (!b ||
|
|
511
|
+
if (!b || He(l))
|
|
725
512
|
return;
|
|
726
513
|
const x = {
|
|
727
514
|
attrName: "",
|
|
728
515
|
attrValue: "",
|
|
729
516
|
keepAttr: !0,
|
|
730
|
-
allowedAttributes:
|
|
517
|
+
allowedAttributes: z,
|
|
731
518
|
forceKeepAttr: void 0
|
|
732
519
|
};
|
|
733
520
|
let v = b.length;
|
|
734
521
|
for (; v--; ) {
|
|
735
|
-
const
|
|
736
|
-
name:
|
|
737
|
-
namespaceURI:
|
|
738
|
-
value:
|
|
739
|
-
} =
|
|
740
|
-
let
|
|
741
|
-
if (x.attrName =
|
|
742
|
-
|
|
522
|
+
const q = b[v], {
|
|
523
|
+
name: L,
|
|
524
|
+
namespaceURI: W,
|
|
525
|
+
value: lu
|
|
526
|
+
} = q, Wu = N(L), $e = lu;
|
|
527
|
+
let U = L === "value" ? $e : lr($e);
|
|
528
|
+
if (x.attrName = Wu, x.attrValue = U, x.keepAttr = !0, x.forceKeepAttr = void 0, su(M.uponSanitizeAttribute, l, x), U = x.attrValue, F0 && (Wu === "id" || Wu === "name") && (Ru(L, l), U = rn + U), ae && $(/((--!?|])>)|<\/(style|title)/i, U)) {
|
|
529
|
+
Ru(L, l);
|
|
743
530
|
continue;
|
|
744
531
|
}
|
|
745
532
|
if (x.forceKeepAttr)
|
|
746
533
|
continue;
|
|
747
534
|
if (!x.keepAttr) {
|
|
748
|
-
|
|
535
|
+
Ru(L, l);
|
|
749
536
|
continue;
|
|
750
537
|
}
|
|
751
|
-
if (!
|
|
752
|
-
|
|
538
|
+
if (!D0 && $(/\/>/i, U)) {
|
|
539
|
+
Ru(L, l);
|
|
753
540
|
continue;
|
|
754
541
|
}
|
|
755
|
-
|
|
756
|
-
|
|
542
|
+
yu && _e([Uu, Hu, Du], (H0) => {
|
|
543
|
+
U = Vu(U, H0, " ");
|
|
757
544
|
});
|
|
758
|
-
const
|
|
759
|
-
if (!
|
|
760
|
-
|
|
545
|
+
const U0 = N(l.nodeName);
|
|
546
|
+
if (!B0(U0, Wu, U)) {
|
|
547
|
+
Ru(L, l);
|
|
761
548
|
continue;
|
|
762
549
|
}
|
|
763
|
-
if (m && typeof
|
|
764
|
-
switch (
|
|
550
|
+
if (m && typeof p == "object" && typeof p.getAttributeType == "function" && !W)
|
|
551
|
+
switch (p.getAttributeType(U0, Wu)) {
|
|
765
552
|
case "TrustedHTML": {
|
|
766
|
-
|
|
553
|
+
U = m.createHTML(U);
|
|
767
554
|
break;
|
|
768
555
|
}
|
|
769
556
|
case "TrustedScriptURL": {
|
|
770
|
-
|
|
557
|
+
U = m.createScriptURL(U);
|
|
771
558
|
break;
|
|
772
559
|
}
|
|
773
560
|
}
|
|
774
|
-
if (
|
|
561
|
+
if (U !== $e)
|
|
775
562
|
try {
|
|
776
|
-
|
|
563
|
+
W ? l.setAttributeNS(W, L, U) : l.setAttribute(L, U), He(l) ? nu(l) : X0(e.removed);
|
|
777
564
|
} catch {
|
|
778
|
-
|
|
565
|
+
Ru(L, l);
|
|
779
566
|
}
|
|
780
567
|
}
|
|
781
|
-
|
|
782
|
-
},
|
|
568
|
+
su(M.afterSanitizeAttributes, l, null);
|
|
569
|
+
}, dn = function g(l) {
|
|
783
570
|
let b = null;
|
|
784
|
-
const x =
|
|
785
|
-
for (
|
|
786
|
-
|
|
787
|
-
|
|
571
|
+
const x = O0(l);
|
|
572
|
+
for (su(M.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
|
|
573
|
+
su(M.uponSanitizeShadowNode, b, null), P0(b), q0(b), b.content instanceof c && g(b.content);
|
|
574
|
+
su(M.afterSanitizeShadowDOM, l, null);
|
|
788
575
|
};
|
|
789
576
|
return e.sanitize = function(g) {
|
|
790
|
-
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null,
|
|
791
|
-
if (
|
|
577
|
+
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null, q = null;
|
|
578
|
+
if (ze = !g, ze && (g = "<!-->"), typeof g != "string" && !N0(g))
|
|
792
579
|
if (typeof g.toString == "function") {
|
|
793
580
|
if (g = g.toString(), typeof g != "string")
|
|
794
|
-
throw
|
|
581
|
+
throw Yu("dirty is not a string, aborting");
|
|
795
582
|
} else
|
|
796
|
-
throw
|
|
583
|
+
throw Yu("toString is not a function");
|
|
797
584
|
if (!e.isSupported)
|
|
798
585
|
return g;
|
|
799
|
-
if (
|
|
586
|
+
if (Oe || Ue(l), e.removed = [], typeof g == "string" && (ju = !1), ju) {
|
|
800
587
|
if (g.nodeName) {
|
|
801
|
-
const
|
|
802
|
-
if (!
|
|
803
|
-
throw
|
|
588
|
+
const lu = N(g.nodeName);
|
|
589
|
+
if (!O[lu] || $u[lu])
|
|
590
|
+
throw Yu("root node is forbidden and cannot be sanitized in-place");
|
|
804
591
|
}
|
|
805
592
|
} else if (g instanceof o)
|
|
806
|
-
b =
|
|
593
|
+
b = L0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Ju.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
|
|
807
594
|
else {
|
|
808
|
-
if (!
|
|
595
|
+
if (!Fu && !yu && !ku && // eslint-disable-next-line unicorn/prefer-includes
|
|
809
596
|
g.indexOf("<") === -1)
|
|
810
|
-
return m &&
|
|
811
|
-
if (b =
|
|
812
|
-
return
|
|
813
|
-
}
|
|
814
|
-
b &&
|
|
815
|
-
const
|
|
816
|
-
for (; v =
|
|
817
|
-
|
|
818
|
-
if (
|
|
597
|
+
return m && le ? m.createHTML(g) : g;
|
|
598
|
+
if (b = L0(g), !b)
|
|
599
|
+
return Fu ? null : le ? A : "";
|
|
600
|
+
}
|
|
601
|
+
b && Ne && nu(b.firstChild);
|
|
602
|
+
const L = O0(ju ? g : b);
|
|
603
|
+
for (; v = L.nextNode(); )
|
|
604
|
+
P0(v), q0(v), v.content instanceof c && dn(v.content);
|
|
605
|
+
if (ju)
|
|
819
606
|
return g;
|
|
820
|
-
if (
|
|
821
|
-
if (
|
|
822
|
-
for (
|
|
823
|
-
|
|
607
|
+
if (Fu) {
|
|
608
|
+
if (se)
|
|
609
|
+
for (q = Y.call(b.ownerDocument); b.firstChild; )
|
|
610
|
+
q.appendChild(b.firstChild);
|
|
824
611
|
else
|
|
825
|
-
|
|
826
|
-
return (
|
|
827
|
-
}
|
|
828
|
-
let
|
|
829
|
-
return
|
|
830
|
-
` +
|
|
831
|
-
|
|
832
|
-
}), m &&
|
|
612
|
+
q = b;
|
|
613
|
+
return (z.shadowroot || z.shadowrootmode) && (q = gu.call(n, q, !0)), q;
|
|
614
|
+
}
|
|
615
|
+
let W = ku ? b.outerHTML : b.innerHTML;
|
|
616
|
+
return ku && O["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name && $(wt, b.ownerDocument.doctype.name) && (W = "<!DOCTYPE " + b.ownerDocument.doctype.name + `>
|
|
617
|
+
` + W), yu && _e([Uu, Hu, Du], (lu) => {
|
|
618
|
+
W = Vu(W, lu, " ");
|
|
619
|
+
}), m && le ? m.createHTML(W) : W;
|
|
833
620
|
}, e.setConfig = function() {
|
|
834
621
|
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
835
|
-
|
|
622
|
+
Ue(g), Oe = !0;
|
|
836
623
|
}, e.clearConfig = function() {
|
|
837
|
-
|
|
624
|
+
vu = null, Oe = !1;
|
|
838
625
|
}, e.isValidAttribute = function(g, l, b) {
|
|
839
|
-
|
|
840
|
-
const x =
|
|
841
|
-
return
|
|
626
|
+
vu || Ue({});
|
|
627
|
+
const x = N(g), v = N(l);
|
|
628
|
+
return B0(x, v, b);
|
|
842
629
|
}, e.addHook = function(g, l) {
|
|
843
|
-
typeof l == "function" &&
|
|
630
|
+
typeof l == "function" && Zu(M[g], l);
|
|
844
631
|
}, e.removeHook = function(g, l) {
|
|
845
632
|
if (l !== void 0) {
|
|
846
|
-
const b =
|
|
847
|
-
return b === -1 ? void 0 :
|
|
633
|
+
const b = ir(M[g], l);
|
|
634
|
+
return b === -1 ? void 0 : ar(M[g], b, 1)[0];
|
|
848
635
|
}
|
|
849
|
-
return X0(
|
|
636
|
+
return X0(M[g]);
|
|
850
637
|
}, e.removeHooks = function(g) {
|
|
851
|
-
|
|
638
|
+
M[g] = [];
|
|
852
639
|
}, e.removeAllHooks = function() {
|
|
853
|
-
|
|
640
|
+
M = nt();
|
|
854
641
|
}, e;
|
|
855
642
|
}
|
|
856
|
-
var
|
|
643
|
+
var yr = vt();
|
|
857
644
|
const rt = {};
|
|
858
|
-
function
|
|
645
|
+
function Fr(u) {
|
|
859
646
|
let e = rt[u];
|
|
860
647
|
if (e)
|
|
861
648
|
return e;
|
|
@@ -870,9 +657,9 @@ function qr(u) {
|
|
|
870
657
|
}
|
|
871
658
|
return e;
|
|
872
659
|
}
|
|
873
|
-
function
|
|
874
|
-
typeof e != "string" && (e =
|
|
875
|
-
const t =
|
|
660
|
+
function Bu(u, e) {
|
|
661
|
+
typeof e != "string" && (e = Bu.defaultChars);
|
|
662
|
+
const t = Fr(e);
|
|
876
663
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
877
664
|
let r = "";
|
|
878
665
|
for (let c = 0, i = n.length; c < i; c += 3) {
|
|
@@ -910,10 +697,10 @@ function zu(u, e) {
|
|
|
910
697
|
return r;
|
|
911
698
|
});
|
|
912
699
|
}
|
|
913
|
-
|
|
914
|
-
|
|
700
|
+
Bu.defaultChars = ";/?:@&=+$,#";
|
|
701
|
+
Bu.componentChars = "";
|
|
915
702
|
const ct = {};
|
|
916
|
-
function
|
|
703
|
+
function Tr(u) {
|
|
917
704
|
let e = ct[u];
|
|
918
705
|
if (e)
|
|
919
706
|
return e;
|
|
@@ -926,9 +713,9 @@ function Ur(u) {
|
|
|
926
713
|
e[u.charCodeAt(t)] = u[t];
|
|
927
714
|
return e;
|
|
928
715
|
}
|
|
929
|
-
function
|
|
930
|
-
typeof e != "string" && (t = e, e =
|
|
931
|
-
const n =
|
|
716
|
+
function ce(u, e, t) {
|
|
717
|
+
typeof e != "string" && (t = e, e = ce.defaultChars), typeof t > "u" && (t = !0);
|
|
718
|
+
const n = Tr(e);
|
|
932
719
|
let r = "";
|
|
933
720
|
for (let c = 0, i = u.length; c < i; c++) {
|
|
934
721
|
const o = u.charCodeAt(c);
|
|
@@ -955,17 +742,17 @@ function se(u, e, t) {
|
|
|
955
742
|
}
|
|
956
743
|
return r;
|
|
957
744
|
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
function
|
|
745
|
+
ce.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
746
|
+
ce.componentChars = "-_.!~*'()";
|
|
747
|
+
function l0(u) {
|
|
961
748
|
let e = "";
|
|
962
749
|
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;
|
|
963
750
|
}
|
|
964
751
|
function ye() {
|
|
965
752
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
966
753
|
}
|
|
967
|
-
const
|
|
968
|
-
`, " "],
|
|
754
|
+
const Sr = /^([a-z0-9.+-]+:)/i, wr = /:[0-9]*$/, vr = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Rr = ["<", ">", '"', "`", " ", "\r", `
|
|
755
|
+
`, " "], Ir = ["{", "}", "|", "\\", "^", "`"].concat(Rr), Mr = ["'"].concat(Ir), ot = ["%", "/", "?", ";", "#"].concat(Mr), it = ["/", "?", "#"], Lr = 255, at = /^[+a-z0-9A-Z_-]{0,63}$/, Or = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, st = {
|
|
969
756
|
javascript: !0,
|
|
970
757
|
"javascript:": !0
|
|
971
758
|
}, lt = {
|
|
@@ -980,7 +767,7 @@ const Hr = /^([a-z0-9.+-]+:)/i, $r = /:[0-9]*$/, jr = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
980
767
|
"gopher:": !0,
|
|
981
768
|
"file:": !0
|
|
982
769
|
};
|
|
983
|
-
function
|
|
770
|
+
function f0(u, e) {
|
|
984
771
|
if (u && u instanceof ye) return u;
|
|
985
772
|
const t = new ye();
|
|
986
773
|
return t.parse(u, e), t;
|
|
@@ -988,40 +775,40 @@ function d0(u, e) {
|
|
|
988
775
|
ye.prototype.parse = function(u, e) {
|
|
989
776
|
let t, n, r, c = u;
|
|
990
777
|
if (c = c.trim(), !e && u.split("#").length === 1) {
|
|
991
|
-
const s =
|
|
778
|
+
const s = vr.exec(c);
|
|
992
779
|
if (s)
|
|
993
780
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
994
781
|
}
|
|
995
|
-
let i =
|
|
782
|
+
let i = Sr.exec(c);
|
|
996
783
|
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, c = c.substr(i.length)), (e || i || c.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = c.substr(0, 2) === "//", r && !(i && st[i]) && (c = c.substr(2), this.slashes = !0)), !st[i] && (r || i && !lt[i])) {
|
|
997
784
|
let s = -1;
|
|
998
|
-
for (let
|
|
999
|
-
n = c.indexOf(it[
|
|
785
|
+
for (let h = 0; h < it.length; h++)
|
|
786
|
+
n = c.indexOf(it[h]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
1000
787
|
let f, d;
|
|
1001
788
|
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;
|
|
1002
|
-
for (let
|
|
1003
|
-
n = c.indexOf(ot[
|
|
789
|
+
for (let h = 0; h < ot.length; h++)
|
|
790
|
+
n = c.indexOf(ot[h]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
1004
791
|
s === -1 && (s = c.length), c[s - 1] === ":" && s--;
|
|
1005
792
|
const _ = c.slice(0, s);
|
|
1006
793
|
c = c.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
1007
|
-
const
|
|
1008
|
-
if (!
|
|
1009
|
-
const
|
|
1010
|
-
for (let
|
|
1011
|
-
const
|
|
1012
|
-
if (
|
|
794
|
+
const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
795
|
+
if (!p) {
|
|
796
|
+
const h = this.hostname.split(/\./);
|
|
797
|
+
for (let C = 0, D = h.length; C < D; C++) {
|
|
798
|
+
const T = h[C];
|
|
799
|
+
if (T && !T.match(at)) {
|
|
1013
800
|
let E = "";
|
|
1014
|
-
for (let k = 0, m =
|
|
1015
|
-
|
|
801
|
+
for (let k = 0, m = T.length; k < m; k++)
|
|
802
|
+
T.charCodeAt(k) > 127 ? E += "x" : E += T[k];
|
|
1016
803
|
if (!E.match(at)) {
|
|
1017
|
-
const k =
|
|
1018
|
-
|
|
804
|
+
const k = h.slice(0, C), m = h.slice(C + 1), A = T.match(Or);
|
|
805
|
+
A && (k.push(A[1]), m.unshift(A[2])), m.length && (c = m.join(".") + c), this.hostname = k.join(".");
|
|
1019
806
|
break;
|
|
1020
807
|
}
|
|
1021
808
|
}
|
|
1022
809
|
}
|
|
1023
810
|
}
|
|
1024
|
-
this.hostname.length >
|
|
811
|
+
this.hostname.length > Lr && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1025
812
|
}
|
|
1026
813
|
const o = c.indexOf("#");
|
|
1027
814
|
o !== -1 && (this.hash = c.substr(o), c = c.slice(0, o));
|
|
@@ -1029,32 +816,32 @@ ye.prototype.parse = function(u, e) {
|
|
|
1029
816
|
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c), lt[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1030
817
|
};
|
|
1031
818
|
ye.prototype.parseHost = function(u) {
|
|
1032
|
-
let e =
|
|
819
|
+
let e = wr.exec(u);
|
|
1033
820
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
1034
821
|
};
|
|
1035
|
-
const
|
|
822
|
+
const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1036
823
|
__proto__: null,
|
|
1037
|
-
decode:
|
|
1038
|
-
encode:
|
|
1039
|
-
format:
|
|
1040
|
-
parse:
|
|
1041
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
824
|
+
decode: Bu,
|
|
825
|
+
encode: ce,
|
|
826
|
+
format: l0,
|
|
827
|
+
parse: f0
|
|
828
|
+
}, Symbol.toStringTag, { value: "Module" })), Rt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, It = /[\0-\x1F\x7F-\x9F]/, Pr = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, d0 = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Mt = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Lt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1042
829
|
__proto__: null,
|
|
1043
|
-
Any:
|
|
1044
|
-
Cc:
|
|
1045
|
-
Cf:
|
|
1046
|
-
P:
|
|
1047
|
-
S:
|
|
1048
|
-
Z:
|
|
1049
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
830
|
+
Any: Rt,
|
|
831
|
+
Cc: It,
|
|
832
|
+
Cf: Pr,
|
|
833
|
+
P: d0,
|
|
834
|
+
S: Mt,
|
|
835
|
+
Z: Lt
|
|
836
|
+
}, Symbol.toStringTag, { value: "Module" })), zr = new Uint16Array(
|
|
1050
837
|
// prettier-ignore
|
|
1051
838
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\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))
|
|
1052
|
-
),
|
|
839
|
+
), qr = new Uint16Array(
|
|
1053
840
|
// prettier-ignore
|
|
1054
841
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
1055
842
|
);
|
|
1056
|
-
var
|
|
1057
|
-
const
|
|
843
|
+
var Ye;
|
|
844
|
+
const Ur = /* @__PURE__ */ new Map([
|
|
1058
845
|
[0, 65533],
|
|
1059
846
|
// C1 Unicode control character reference replacements
|
|
1060
847
|
[128, 8364],
|
|
@@ -1084,53 +871,53 @@ const ec = /* @__PURE__ */ new Map([
|
|
|
1084
871
|
[156, 339],
|
|
1085
872
|
[158, 382],
|
|
1086
873
|
[159, 376]
|
|
1087
|
-
]),
|
|
874
|
+
]), Hr = (
|
|
1088
875
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1089
|
-
(
|
|
876
|
+
(Ye = String.fromCodePoint) !== null && Ye !== void 0 ? Ye : function(u) {
|
|
1090
877
|
let e = "";
|
|
1091
878
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
1092
879
|
}
|
|
1093
880
|
);
|
|
1094
|
-
function
|
|
881
|
+
function $r(u) {
|
|
1095
882
|
var e;
|
|
1096
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
883
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = Ur.get(u)) !== null && e !== void 0 ? e : u;
|
|
1097
884
|
}
|
|
1098
|
-
var
|
|
885
|
+
var B;
|
|
1099
886
|
(function(u) {
|
|
1100
887
|
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";
|
|
1101
|
-
})(
|
|
1102
|
-
const
|
|
888
|
+
})(B || (B = {}));
|
|
889
|
+
const jr = 32;
|
|
1103
890
|
var _u;
|
|
1104
891
|
(function(u) {
|
|
1105
892
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1106
893
|
})(_u || (_u = {}));
|
|
1107
|
-
function
|
|
1108
|
-
return u >=
|
|
894
|
+
function r0(u) {
|
|
895
|
+
return u >= B.ZERO && u <= B.NINE;
|
|
1109
896
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return u >=
|
|
897
|
+
function Gr(u) {
|
|
898
|
+
return u >= B.UPPER_A && u <= B.UPPER_F || u >= B.LOWER_A && u <= B.LOWER_F;
|
|
1112
899
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return u >=
|
|
900
|
+
function Wr(u) {
|
|
901
|
+
return u >= B.UPPER_A && u <= B.UPPER_Z || u >= B.LOWER_A && u <= B.LOWER_Z || r0(u);
|
|
1115
902
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return u ===
|
|
903
|
+
function Zr(u) {
|
|
904
|
+
return u === B.EQUALS || Wr(u);
|
|
1118
905
|
}
|
|
1119
|
-
var
|
|
906
|
+
var P;
|
|
1120
907
|
(function(u) {
|
|
1121
908
|
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";
|
|
1122
|
-
})(
|
|
1123
|
-
var
|
|
909
|
+
})(P || (P = {}));
|
|
910
|
+
var pu;
|
|
1124
911
|
(function(u) {
|
|
1125
912
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1126
|
-
})(
|
|
1127
|
-
class
|
|
913
|
+
})(pu || (pu = {}));
|
|
914
|
+
class Vr {
|
|
1128
915
|
constructor(e, t, n) {
|
|
1129
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
|
916
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = P.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = pu.Strict;
|
|
1130
917
|
}
|
|
1131
918
|
/** Resets the instance to make it reusable. */
|
|
1132
919
|
startEntity(e) {
|
|
1133
|
-
this.decodeMode = e, this.state =
|
|
920
|
+
this.decodeMode = e, this.state = P.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
1134
921
|
}
|
|
1135
922
|
/**
|
|
1136
923
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -1145,15 +932,15 @@ class ac {
|
|
|
1145
932
|
*/
|
|
1146
933
|
write(e, t) {
|
|
1147
934
|
switch (this.state) {
|
|
1148
|
-
case
|
|
1149
|
-
return e.charCodeAt(t) ===
|
|
1150
|
-
case
|
|
935
|
+
case P.EntityStart:
|
|
936
|
+
return e.charCodeAt(t) === B.NUM ? (this.state = P.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = P.NamedEntity, this.stateNamedEntity(e, t));
|
|
937
|
+
case P.NumericStart:
|
|
1151
938
|
return this.stateNumericStart(e, t);
|
|
1152
|
-
case
|
|
939
|
+
case P.NumericDecimal:
|
|
1153
940
|
return this.stateNumericDecimal(e, t);
|
|
1154
|
-
case
|
|
941
|
+
case P.NumericHex:
|
|
1155
942
|
return this.stateNumericHex(e, t);
|
|
1156
|
-
case
|
|
943
|
+
case P.NamedEntity:
|
|
1157
944
|
return this.stateNamedEntity(e, t);
|
|
1158
945
|
}
|
|
1159
946
|
}
|
|
@@ -1167,7 +954,7 @@ class ac {
|
|
|
1167
954
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1168
955
|
*/
|
|
1169
956
|
stateNumericStart(e, t) {
|
|
1170
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
957
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | jr) === B.LOWER_X ? (this.state = P.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = P.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1171
958
|
}
|
|
1172
959
|
addToNumericResult(e, t, n, r) {
|
|
1173
960
|
if (t !== n) {
|
|
@@ -1188,7 +975,7 @@ class ac {
|
|
|
1188
975
|
const n = t;
|
|
1189
976
|
for (; t < e.length; ) {
|
|
1190
977
|
const r = e.charCodeAt(t);
|
|
1191
|
-
if (
|
|
978
|
+
if (r0(r) || Gr(r))
|
|
1192
979
|
t += 1;
|
|
1193
980
|
else
|
|
1194
981
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1208,7 +995,7 @@ class ac {
|
|
|
1208
995
|
const n = t;
|
|
1209
996
|
for (; t < e.length; ) {
|
|
1210
997
|
const r = e.charCodeAt(t);
|
|
1211
|
-
if (
|
|
998
|
+
if (r0(r))
|
|
1212
999
|
t += 1;
|
|
1213
1000
|
else
|
|
1214
1001
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1232,11 +1019,11 @@ class ac {
|
|
|
1232
1019
|
var n;
|
|
1233
1020
|
if (this.consumed <= t)
|
|
1234
1021
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1235
|
-
if (e ===
|
|
1022
|
+
if (e === B.SEMI)
|
|
1236
1023
|
this.consumed += 1;
|
|
1237
|
-
else if (this.decodeMode ===
|
|
1024
|
+
else if (this.decodeMode === pu.Strict)
|
|
1238
1025
|
return 0;
|
|
1239
|
-
return this.emitCodePoint(
|
|
1026
|
+
return this.emitCodePoint($r(this.result), this.consumed), this.errors && (e !== B.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1240
1027
|
}
|
|
1241
1028
|
/**
|
|
1242
1029
|
* Parses a named entity.
|
|
@@ -1252,15 +1039,15 @@ class ac {
|
|
|
1252
1039
|
let r = n[this.treeIndex], c = (r & _u.VALUE_LENGTH) >> 14;
|
|
1253
1040
|
for (; t < e.length; t++, this.excess++) {
|
|
1254
1041
|
const i = e.charCodeAt(t);
|
|
1255
|
-
if (this.treeIndex =
|
|
1042
|
+
if (this.treeIndex = Yr(n, r, this.treeIndex + Math.max(1, c), i), this.treeIndex < 0)
|
|
1256
1043
|
return this.result === 0 || // If we are parsing an attribute
|
|
1257
|
-
this.decodeMode ===
|
|
1044
|
+
this.decodeMode === pu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1258
1045
|
(c === 0 || // And there should be no invalid characters.
|
|
1259
|
-
|
|
1046
|
+
Zr(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1260
1047
|
if (r = n[this.treeIndex], c = (r & _u.VALUE_LENGTH) >> 14, c !== 0) {
|
|
1261
|
-
if (i ===
|
|
1048
|
+
if (i === B.SEMI)
|
|
1262
1049
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
|
1263
|
-
this.decodeMode !==
|
|
1050
|
+
this.decodeMode !== pu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1264
1051
|
}
|
|
1265
1052
|
}
|
|
1266
1053
|
return -1;
|
|
@@ -1298,22 +1085,22 @@ class ac {
|
|
|
1298
1085
|
end() {
|
|
1299
1086
|
var e;
|
|
1300
1087
|
switch (this.state) {
|
|
1301
|
-
case
|
|
1302
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
1303
|
-
case
|
|
1088
|
+
case P.NamedEntity:
|
|
1089
|
+
return this.result !== 0 && (this.decodeMode !== pu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1090
|
+
case P.NumericDecimal:
|
|
1304
1091
|
return this.emitNumericEntity(0, 2);
|
|
1305
|
-
case
|
|
1092
|
+
case P.NumericHex:
|
|
1306
1093
|
return this.emitNumericEntity(0, 3);
|
|
1307
|
-
case
|
|
1094
|
+
case P.NumericStart:
|
|
1308
1095
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1309
|
-
case
|
|
1096
|
+
case P.EntityStart:
|
|
1310
1097
|
return 0;
|
|
1311
1098
|
}
|
|
1312
1099
|
}
|
|
1313
1100
|
}
|
|
1314
|
-
function
|
|
1101
|
+
function Ot(u) {
|
|
1315
1102
|
let e = "";
|
|
1316
|
-
const t = new
|
|
1103
|
+
const t = new Vr(u, (n) => e += Hr(n));
|
|
1317
1104
|
return function(r, c) {
|
|
1318
1105
|
let i = 0, o = 0;
|
|
1319
1106
|
for (; (o = r.indexOf("&", o)) >= 0; ) {
|
|
@@ -1333,7 +1120,7 @@ function Pt(u) {
|
|
|
1333
1120
|
return e = "", a;
|
|
1334
1121
|
};
|
|
1335
1122
|
}
|
|
1336
|
-
function
|
|
1123
|
+
function Yr(u, e, t, n) {
|
|
1337
1124
|
const r = (e & _u.BRANCH_LENGTH) >> 7, c = e & _u.JUMP_TABLE;
|
|
1338
1125
|
if (r === 0)
|
|
1339
1126
|
return c !== 0 && n === c ? t : -1;
|
|
@@ -1353,22 +1140,22 @@ function sc(u, e, t, n) {
|
|
|
1353
1140
|
}
|
|
1354
1141
|
return -1;
|
|
1355
1142
|
}
|
|
1356
|
-
const
|
|
1357
|
-
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1143
|
+
const Xr = Ot(zr);
|
|
1144
|
+
Ot(qr);
|
|
1145
|
+
function Nt(u, e = pu.Legacy) {
|
|
1146
|
+
return Xr(u, e);
|
|
1360
1147
|
}
|
|
1361
|
-
function
|
|
1148
|
+
function Jr(u) {
|
|
1362
1149
|
return Object.prototype.toString.call(u);
|
|
1363
1150
|
}
|
|
1364
1151
|
function h0(u) {
|
|
1365
|
-
return
|
|
1152
|
+
return Jr(u) === "[object String]";
|
|
1366
1153
|
}
|
|
1367
|
-
const
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1154
|
+
const Qr = Object.prototype.hasOwnProperty;
|
|
1155
|
+
function Kr(u, e) {
|
|
1156
|
+
return Qr.call(u, e);
|
|
1370
1157
|
}
|
|
1371
|
-
function
|
|
1158
|
+
function Se(u) {
|
|
1372
1159
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1373
1160
|
if (t) {
|
|
1374
1161
|
if (typeof t != "object")
|
|
@@ -1379,10 +1166,10 @@ function we(u) {
|
|
|
1379
1166
|
}
|
|
1380
1167
|
}), u;
|
|
1381
1168
|
}
|
|
1382
|
-
function
|
|
1169
|
+
function Pt(u, e, t) {
|
|
1383
1170
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
|
1384
1171
|
}
|
|
1385
|
-
function
|
|
1172
|
+
function p0(u) {
|
|
1386
1173
|
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);
|
|
1387
1174
|
}
|
|
1388
1175
|
function Fe(u) {
|
|
@@ -1393,38 +1180,38 @@ function Fe(u) {
|
|
|
1393
1180
|
}
|
|
1394
1181
|
return String.fromCharCode(u);
|
|
1395
1182
|
}
|
|
1396
|
-
const
|
|
1397
|
-
function
|
|
1398
|
-
if (e.charCodeAt(0) === 35 &&
|
|
1183
|
+
const Bt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, uc = /&([a-z#][a-z0-9]{1,31});/gi, ec = new RegExp(Bt.source + "|" + uc.source, "gi"), tc = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1184
|
+
function nc(u, e) {
|
|
1185
|
+
if (e.charCodeAt(0) === 35 && tc.test(e)) {
|
|
1399
1186
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1400
|
-
return
|
|
1187
|
+
return p0(n) ? Fe(n) : u;
|
|
1401
1188
|
}
|
|
1402
|
-
const t =
|
|
1189
|
+
const t = Nt(u);
|
|
1403
1190
|
return t !== u ? t : u;
|
|
1404
1191
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
1192
|
+
function rc(u) {
|
|
1193
|
+
return u.indexOf("\\") < 0 ? u : u.replace(Bt, "$1");
|
|
1407
1194
|
}
|
|
1408
|
-
function
|
|
1409
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1410
|
-
return t ||
|
|
1195
|
+
function zu(u) {
|
|
1196
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(ec, function(e, t, n) {
|
|
1197
|
+
return t || nc(e, n);
|
|
1411
1198
|
});
|
|
1412
1199
|
}
|
|
1413
|
-
const
|
|
1200
|
+
const cc = /[&<>"]/, oc = /[&<>"]/g, ic = {
|
|
1414
1201
|
"&": "&",
|
|
1415
1202
|
"<": "<",
|
|
1416
1203
|
">": ">",
|
|
1417
1204
|
'"': """
|
|
1418
1205
|
};
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1206
|
+
function ac(u) {
|
|
1207
|
+
return ic[u];
|
|
1421
1208
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return
|
|
1209
|
+
function xu(u) {
|
|
1210
|
+
return cc.test(u) ? u.replace(oc, ac) : u;
|
|
1424
1211
|
}
|
|
1425
|
-
const
|
|
1426
|
-
function
|
|
1427
|
-
return u.replace(
|
|
1212
|
+
const sc = /[.?*+^$[\]\\(){}|-]/g;
|
|
1213
|
+
function lc(u) {
|
|
1214
|
+
return u.replace(sc, "\\$&");
|
|
1428
1215
|
}
|
|
1429
1216
|
function w(u) {
|
|
1430
1217
|
switch (u) {
|
|
@@ -1434,7 +1221,7 @@ function w(u) {
|
|
|
1434
1221
|
}
|
|
1435
1222
|
return !1;
|
|
1436
1223
|
}
|
|
1437
|
-
function
|
|
1224
|
+
function Qu(u) {
|
|
1438
1225
|
if (u >= 8192 && u <= 8202)
|
|
1439
1226
|
return !0;
|
|
1440
1227
|
switch (u) {
|
|
@@ -1453,10 +1240,10 @@ function re(u) {
|
|
|
1453
1240
|
}
|
|
1454
1241
|
return !1;
|
|
1455
1242
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return
|
|
1243
|
+
function Ku(u) {
|
|
1244
|
+
return d0.test(u) || Mt.test(u);
|
|
1458
1245
|
}
|
|
1459
|
-
function
|
|
1246
|
+
function ue(u) {
|
|
1460
1247
|
switch (u) {
|
|
1461
1248
|
case 33:
|
|
1462
1249
|
case 34:
|
|
@@ -1495,29 +1282,29 @@ function oe(u) {
|
|
|
1495
1282
|
return !1;
|
|
1496
1283
|
}
|
|
1497
1284
|
}
|
|
1498
|
-
function
|
|
1285
|
+
function we(u) {
|
|
1499
1286
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1500
1287
|
}
|
|
1501
|
-
const
|
|
1288
|
+
const fc = { mdurl: Nr, ucmicro: Br }, dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1502
1289
|
__proto__: null,
|
|
1503
|
-
arrayReplaceAt:
|
|
1504
|
-
assign:
|
|
1505
|
-
escapeHtml:
|
|
1506
|
-
escapeRE:
|
|
1290
|
+
arrayReplaceAt: Pt,
|
|
1291
|
+
assign: Se,
|
|
1292
|
+
escapeHtml: xu,
|
|
1293
|
+
escapeRE: lc,
|
|
1507
1294
|
fromCodePoint: Fe,
|
|
1508
|
-
has:
|
|
1509
|
-
isMdAsciiPunct:
|
|
1510
|
-
isPunctChar:
|
|
1295
|
+
has: Kr,
|
|
1296
|
+
isMdAsciiPunct: ue,
|
|
1297
|
+
isPunctChar: Ku,
|
|
1511
1298
|
isSpace: w,
|
|
1512
1299
|
isString: h0,
|
|
1513
|
-
isValidEntityCode:
|
|
1514
|
-
isWhiteSpace:
|
|
1515
|
-
lib:
|
|
1516
|
-
normalizeReference:
|
|
1517
|
-
unescapeAll:
|
|
1518
|
-
unescapeMd:
|
|
1300
|
+
isValidEntityCode: p0,
|
|
1301
|
+
isWhiteSpace: Qu,
|
|
1302
|
+
lib: fc,
|
|
1303
|
+
normalizeReference: we,
|
|
1304
|
+
unescapeAll: zu,
|
|
1305
|
+
unescapeMd: rc
|
|
1519
1306
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1520
|
-
function
|
|
1307
|
+
function hc(u, e, t) {
|
|
1521
1308
|
let n, r, c, i;
|
|
1522
1309
|
const o = u.posMax, a = u.pos;
|
|
1523
1310
|
for (u.pos = e + 1, n = 1; u.pos < o; ) {
|
|
@@ -1535,7 +1322,7 @@ function Tc(u, e, t) {
|
|
|
1535
1322
|
let s = -1;
|
|
1536
1323
|
return r && (s = u.pos), u.pos = a, s;
|
|
1537
1324
|
}
|
|
1538
|
-
function
|
|
1325
|
+
function pc(u, e, t) {
|
|
1539
1326
|
let n, r = e;
|
|
1540
1327
|
const c = {
|
|
1541
1328
|
ok: !1,
|
|
@@ -1547,7 +1334,7 @@ function Sc(u, e, t) {
|
|
|
1547
1334
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1548
1335
|
return c;
|
|
1549
1336
|
if (n === 62)
|
|
1550
|
-
return c.pos = r + 1, c.str =
|
|
1337
|
+
return c.pos = r + 1, c.str = zu(u.slice(e + 1, r)), c.ok = !0, c;
|
|
1551
1338
|
if (n === 92 && r + 1 < t) {
|
|
1552
1339
|
r += 2;
|
|
1553
1340
|
continue;
|
|
@@ -1573,9 +1360,9 @@ function Sc(u, e, t) {
|
|
|
1573
1360
|
}
|
|
1574
1361
|
r++;
|
|
1575
1362
|
}
|
|
1576
|
-
return e === r || i !== 0 || (c.str =
|
|
1363
|
+
return e === r || i !== 0 || (c.str = zu(u.slice(e, r)), c.pos = r, c.ok = !0), c;
|
|
1577
1364
|
}
|
|
1578
|
-
function
|
|
1365
|
+
function bc(u, e, t, n) {
|
|
1579
1366
|
let r, c = e;
|
|
1580
1367
|
const i = {
|
|
1581
1368
|
// if `true`, this is a valid link title
|
|
@@ -1601,37 +1388,37 @@ function wc(u, e, t, n) {
|
|
|
1601
1388
|
}
|
|
1602
1389
|
for (; c < t; ) {
|
|
1603
1390
|
if (r = u.charCodeAt(c), r === i.marker)
|
|
1604
|
-
return i.pos = c + 1, i.str +=
|
|
1391
|
+
return i.pos = c + 1, i.str += zu(u.slice(e, c)), i.ok = !0, i;
|
|
1605
1392
|
if (r === 40 && i.marker === 41)
|
|
1606
1393
|
return i;
|
|
1607
1394
|
r === 92 && c + 1 < t && c++, c++;
|
|
1608
1395
|
}
|
|
1609
|
-
return i.can_continue = !0, i.str +=
|
|
1396
|
+
return i.can_continue = !0, i.str += zu(u.slice(e, c)), i;
|
|
1610
1397
|
}
|
|
1611
|
-
const
|
|
1398
|
+
const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1612
1399
|
__proto__: null,
|
|
1613
|
-
parseLinkDestination:
|
|
1614
|
-
parseLinkLabel:
|
|
1615
|
-
parseLinkTitle:
|
|
1616
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1617
|
-
|
|
1400
|
+
parseLinkDestination: pc,
|
|
1401
|
+
parseLinkLabel: hc,
|
|
1402
|
+
parseLinkTitle: bc
|
|
1403
|
+
}, Symbol.toStringTag, { value: "Module" })), ou = {};
|
|
1404
|
+
ou.code_inline = function(u, e, t, n, r) {
|
|
1618
1405
|
const c = u[e];
|
|
1619
|
-
return "<code" + r.renderAttrs(c) + ">" +
|
|
1406
|
+
return "<code" + r.renderAttrs(c) + ">" + xu(c.content) + "</code>";
|
|
1620
1407
|
};
|
|
1621
|
-
|
|
1408
|
+
ou.code_block = function(u, e, t, n, r) {
|
|
1622
1409
|
const c = u[e];
|
|
1623
|
-
return "<pre" + r.renderAttrs(c) + "><code>" +
|
|
1410
|
+
return "<pre" + r.renderAttrs(c) + "><code>" + xu(u[e].content) + `</code></pre>
|
|
1624
1411
|
`;
|
|
1625
1412
|
};
|
|
1626
|
-
|
|
1627
|
-
const c = u[e], i = c.info ?
|
|
1413
|
+
ou.fence = function(u, e, t, n, r) {
|
|
1414
|
+
const c = u[e], i = c.info ? zu(c.info).trim() : "";
|
|
1628
1415
|
let o = "", a = "";
|
|
1629
1416
|
if (i) {
|
|
1630
1417
|
const f = i.split(/(\s+)/g);
|
|
1631
1418
|
o = f[0], a = f.slice(2).join("");
|
|
1632
1419
|
}
|
|
1633
1420
|
let s;
|
|
1634
|
-
if (t.highlight ? s = t.highlight(c.content, o, a) ||
|
|
1421
|
+
if (t.highlight ? s = t.highlight(c.content, o, a) || xu(c.content) : s = xu(c.content), s.indexOf("<pre") === 0)
|
|
1635
1422
|
return s + `
|
|
1636
1423
|
`;
|
|
1637
1424
|
if (i) {
|
|
@@ -1646,42 +1433,42 @@ iu.fence = function(u, e, t, n, r) {
|
|
|
1646
1433
|
return `<pre><code${r.renderAttrs(c)}>${s}</code></pre>
|
|
1647
1434
|
`;
|
|
1648
1435
|
};
|
|
1649
|
-
|
|
1436
|
+
ou.image = function(u, e, t, n, r) {
|
|
1650
1437
|
const c = u[e];
|
|
1651
1438
|
return c.attrs[c.attrIndex("alt")][1] = r.renderInlineAsText(c.children, t, n), r.renderToken(u, e, t);
|
|
1652
1439
|
};
|
|
1653
|
-
|
|
1440
|
+
ou.hardbreak = function(u, e, t) {
|
|
1654
1441
|
return t.xhtmlOut ? `<br />
|
|
1655
1442
|
` : `<br>
|
|
1656
1443
|
`;
|
|
1657
1444
|
};
|
|
1658
|
-
|
|
1445
|
+
ou.softbreak = function(u, e, t) {
|
|
1659
1446
|
return t.breaks ? t.xhtmlOut ? `<br />
|
|
1660
1447
|
` : `<br>
|
|
1661
1448
|
` : `
|
|
1662
1449
|
`;
|
|
1663
1450
|
};
|
|
1664
|
-
|
|
1665
|
-
return
|
|
1451
|
+
ou.text = function(u, e) {
|
|
1452
|
+
return xu(u[e].content);
|
|
1666
1453
|
};
|
|
1667
|
-
|
|
1454
|
+
ou.html_block = function(u, e) {
|
|
1668
1455
|
return u[e].content;
|
|
1669
1456
|
};
|
|
1670
|
-
|
|
1457
|
+
ou.html_inline = function(u, e) {
|
|
1671
1458
|
return u[e].content;
|
|
1672
1459
|
};
|
|
1673
|
-
function
|
|
1674
|
-
this.rules =
|
|
1460
|
+
function qu() {
|
|
1461
|
+
this.rules = Se({}, ou);
|
|
1675
1462
|
}
|
|
1676
|
-
|
|
1463
|
+
qu.prototype.renderAttrs = function(e) {
|
|
1677
1464
|
let t, n, r;
|
|
1678
1465
|
if (!e.attrs)
|
|
1679
1466
|
return "";
|
|
1680
1467
|
for (r = "", t = 0, n = e.attrs.length; t < n; t++)
|
|
1681
|
-
r += " " +
|
|
1468
|
+
r += " " + xu(e.attrs[t][0]) + '="' + xu(e.attrs[t][1]) + '"';
|
|
1682
1469
|
return r;
|
|
1683
1470
|
};
|
|
1684
|
-
|
|
1471
|
+
qu.prototype.renderToken = function(e, t, n) {
|
|
1685
1472
|
const r = e[t];
|
|
1686
1473
|
let c = "";
|
|
1687
1474
|
if (r.hidden)
|
|
@@ -1696,7 +1483,7 @@ Hu.prototype.renderToken = function(e, t, n) {
|
|
|
1696
1483
|
return c += i ? `>
|
|
1697
1484
|
` : ">", c;
|
|
1698
1485
|
};
|
|
1699
|
-
|
|
1486
|
+
qu.prototype.renderInline = function(u, e, t) {
|
|
1700
1487
|
let n = "";
|
|
1701
1488
|
const r = this.rules;
|
|
1702
1489
|
for (let c = 0, i = u.length; c < i; c++) {
|
|
@@ -1705,7 +1492,7 @@ Hu.prototype.renderInline = function(u, e, t) {
|
|
|
1705
1492
|
}
|
|
1706
1493
|
return n;
|
|
1707
1494
|
};
|
|
1708
|
-
|
|
1495
|
+
qu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1709
1496
|
let n = "";
|
|
1710
1497
|
for (let r = 0, c = u.length; r < c; r++)
|
|
1711
1498
|
switch (u[r].type) {
|
|
@@ -1727,7 +1514,7 @@ Hu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1727
1514
|
}
|
|
1728
1515
|
return n;
|
|
1729
1516
|
};
|
|
1730
|
-
|
|
1517
|
+
qu.prototype.render = function(u, e, t) {
|
|
1731
1518
|
let n = "";
|
|
1732
1519
|
const r = this.rules;
|
|
1733
1520
|
for (let c = 0, i = u.length; c < i; c++) {
|
|
@@ -1856,34 +1643,34 @@ eu.prototype.attrJoin = function(e, t) {
|
|
|
1856
1643
|
const n = this.attrIndex(e);
|
|
1857
1644
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1858
1645
|
};
|
|
1859
|
-
function
|
|
1646
|
+
function zt(u, e, t) {
|
|
1860
1647
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1861
1648
|
}
|
|
1862
|
-
|
|
1863
|
-
const
|
|
1864
|
-
function
|
|
1649
|
+
zt.prototype.Token = eu;
|
|
1650
|
+
const mc = /\r\n?|\n/g, xc = /\0/g;
|
|
1651
|
+
function gc(u) {
|
|
1865
1652
|
let e;
|
|
1866
|
-
e = u.src.replace(
|
|
1867
|
-
`), e = e.replace(
|
|
1653
|
+
e = u.src.replace(mc, `
|
|
1654
|
+
`), e = e.replace(xc, "�"), u.src = e;
|
|
1868
1655
|
}
|
|
1869
|
-
function
|
|
1656
|
+
function kc(u) {
|
|
1870
1657
|
let e;
|
|
1871
1658
|
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);
|
|
1872
1659
|
}
|
|
1873
|
-
function
|
|
1660
|
+
function Ec(u) {
|
|
1874
1661
|
const e = u.tokens;
|
|
1875
1662
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1876
1663
|
const r = e[t];
|
|
1877
1664
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1878
1665
|
}
|
|
1879
1666
|
}
|
|
1880
|
-
function
|
|
1667
|
+
function Ac(u) {
|
|
1881
1668
|
return /^<a[>\s]/i.test(u);
|
|
1882
1669
|
}
|
|
1883
|
-
function
|
|
1670
|
+
function Cc(u) {
|
|
1884
1671
|
return /^<\/a\s*>/i.test(u);
|
|
1885
1672
|
}
|
|
1886
|
-
function
|
|
1673
|
+
function Dc(u) {
|
|
1887
1674
|
const e = u.tokens;
|
|
1888
1675
|
if (u.md.options.linkify)
|
|
1889
1676
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
@@ -1897,72 +1684,72 @@ function Bc(u) {
|
|
|
1897
1684
|
i--;
|
|
1898
1685
|
continue;
|
|
1899
1686
|
}
|
|
1900
|
-
if (o.type === "html_inline" && (
|
|
1687
|
+
if (o.type === "html_inline" && (Ac(o.content) && c > 0 && c--, Cc(o.content) && c++), !(c > 0) && o.type === "text" && u.md.linkify.test(o.content)) {
|
|
1901
1688
|
const a = o.content;
|
|
1902
1689
|
let s = u.md.linkify.match(a);
|
|
1903
1690
|
const f = [];
|
|
1904
1691
|
let d = o.level, _ = 0;
|
|
1905
1692
|
s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
|
|
1906
|
-
for (let
|
|
1907
|
-
const
|
|
1908
|
-
if (!u.md.validateLink(
|
|
1693
|
+
for (let p = 0; p < s.length; p++) {
|
|
1694
|
+
const h = s[p].url, C = u.md.normalizeLink(h);
|
|
1695
|
+
if (!u.md.validateLink(C))
|
|
1909
1696
|
continue;
|
|
1910
|
-
let D = s[
|
|
1911
|
-
s[
|
|
1912
|
-
const
|
|
1913
|
-
if (
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1697
|
+
let D = s[p].text;
|
|
1698
|
+
s[p].schema ? s[p].schema === "mailto:" && !/^mailto:/i.test(D) ? D = u.md.normalizeLinkText("mailto:" + D).replace(/^mailto:/, "") : D = u.md.normalizeLinkText(D) : D = u.md.normalizeLinkText("http://" + D).replace(/^http:\/\//, "");
|
|
1699
|
+
const T = s[p].index;
|
|
1700
|
+
if (T > _) {
|
|
1701
|
+
const A = new u.Token("text", "", 0);
|
|
1702
|
+
A.content = a.slice(_, T), A.level = d, f.push(A);
|
|
1916
1703
|
}
|
|
1917
1704
|
const E = new u.Token("link_open", "a", 1);
|
|
1918
|
-
E.attrs = [["href",
|
|
1705
|
+
E.attrs = [["href", C]], E.level = d++, E.markup = "linkify", E.info = "auto", f.push(E);
|
|
1919
1706
|
const k = new u.Token("text", "", 0);
|
|
1920
1707
|
k.content = D, k.level = d, f.push(k);
|
|
1921
1708
|
const m = new u.Token("link_close", "a", -1);
|
|
1922
|
-
m.level = --d, m.markup = "linkify", m.info = "auto", f.push(m), _ = s[
|
|
1709
|
+
m.level = --d, m.markup = "linkify", m.info = "auto", f.push(m), _ = s[p].lastIndex;
|
|
1923
1710
|
}
|
|
1924
1711
|
if (_ < a.length) {
|
|
1925
|
-
const
|
|
1926
|
-
|
|
1712
|
+
const p = new u.Token("text", "", 0);
|
|
1713
|
+
p.content = a.slice(_), p.level = d, f.push(p);
|
|
1927
1714
|
}
|
|
1928
|
-
e[t].children = r =
|
|
1715
|
+
e[t].children = r = Pt(r, i, f);
|
|
1929
1716
|
}
|
|
1930
1717
|
}
|
|
1931
1718
|
}
|
|
1932
1719
|
}
|
|
1933
|
-
const
|
|
1720
|
+
const qt = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, yc = /\((c|tm|r)\)/i, Fc = /\((c|tm|r)\)/ig, Tc = {
|
|
1934
1721
|
c: "©",
|
|
1935
1722
|
r: "®",
|
|
1936
1723
|
tm: "™"
|
|
1937
1724
|
};
|
|
1938
|
-
function
|
|
1939
|
-
return
|
|
1725
|
+
function Sc(u, e) {
|
|
1726
|
+
return Tc[e.toLowerCase()];
|
|
1940
1727
|
}
|
|
1941
|
-
function
|
|
1728
|
+
function wc(u) {
|
|
1942
1729
|
let e = 0;
|
|
1943
1730
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1944
1731
|
const n = u[t];
|
|
1945
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
1732
|
+
n.type === "text" && !e && (n.content = n.content.replace(Fc, Sc)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1946
1733
|
}
|
|
1947
1734
|
}
|
|
1948
|
-
function
|
|
1735
|
+
function vc(u) {
|
|
1949
1736
|
let e = 0;
|
|
1950
1737
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1951
1738
|
const n = u[t];
|
|
1952
|
-
n.type === "text" && !e &&
|
|
1739
|
+
n.type === "text" && !e && qt.test(n.content) && (n.content = n.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1953
1740
|
}
|
|
1954
1741
|
}
|
|
1955
|
-
function
|
|
1742
|
+
function Rc(u) {
|
|
1956
1743
|
let e;
|
|
1957
1744
|
if (u.md.options.typographer)
|
|
1958
1745
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1959
|
-
u.tokens[e].type === "inline" && (
|
|
1746
|
+
u.tokens[e].type === "inline" && (yc.test(u.tokens[e].content) && wc(u.tokens[e].children), qt.test(u.tokens[e].content) && vc(u.tokens[e].children));
|
|
1960
1747
|
}
|
|
1961
|
-
const
|
|
1962
|
-
function
|
|
1748
|
+
const Ic = /['"]/, ft = /['"]/g, dt = "’";
|
|
1749
|
+
function xe(u, e, t) {
|
|
1963
1750
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1964
1751
|
}
|
|
1965
|
-
function
|
|
1752
|
+
function Mc(u, e) {
|
|
1966
1753
|
let t;
|
|
1967
1754
|
const n = [];
|
|
1968
1755
|
for (let r = 0; r < u.length; r++) {
|
|
@@ -1980,28 +1767,28 @@ function Zc(u, e) {
|
|
|
1980
1767
|
break;
|
|
1981
1768
|
let d = !0, _ = !0;
|
|
1982
1769
|
a = f.index + 1;
|
|
1983
|
-
const
|
|
1984
|
-
let
|
|
1770
|
+
const p = f[0] === "'";
|
|
1771
|
+
let h = 32;
|
|
1985
1772
|
if (f.index - 1 >= 0)
|
|
1986
|
-
|
|
1773
|
+
h = o.charCodeAt(f.index - 1);
|
|
1987
1774
|
else
|
|
1988
1775
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
1989
1776
|
if (u[t].content) {
|
|
1990
|
-
|
|
1777
|
+
h = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1991
1778
|
break;
|
|
1992
1779
|
}
|
|
1993
|
-
let
|
|
1780
|
+
let C = 32;
|
|
1994
1781
|
if (a < s)
|
|
1995
|
-
|
|
1782
|
+
C = o.charCodeAt(a);
|
|
1996
1783
|
else
|
|
1997
1784
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1998
1785
|
if (u[t].content) {
|
|
1999
|
-
|
|
1786
|
+
C = u[t].content.charCodeAt(0);
|
|
2000
1787
|
break;
|
|
2001
1788
|
}
|
|
2002
|
-
const D =
|
|
2003
|
-
if (k ? d = !1 :
|
|
2004
|
-
|
|
1789
|
+
const D = ue(h) || Ku(String.fromCharCode(h)), T = ue(C) || Ku(String.fromCharCode(C)), E = Qu(h), k = Qu(C);
|
|
1790
|
+
if (k ? d = !1 : T && (E || D || (d = !1)), E ? _ = !1 : D && (k || T || (_ = !1)), C === 34 && f[0] === '"' && h >= 48 && h <= 57 && (_ = d = !1), d && _ && (d = D, _ = T), !d && !_) {
|
|
1791
|
+
p && (c.content = xe(c.content, f.index, dt));
|
|
2005
1792
|
continue;
|
|
2006
1793
|
}
|
|
2007
1794
|
if (_)
|
|
@@ -2009,32 +1796,32 @@ function Zc(u, e) {
|
|
|
2009
1796
|
let m = n[t];
|
|
2010
1797
|
if (n[t].level < i)
|
|
2011
1798
|
break;
|
|
2012
|
-
if (m.single ===
|
|
1799
|
+
if (m.single === p && n[t].level === i) {
|
|
2013
1800
|
m = n[t];
|
|
2014
|
-
let
|
|
2015
|
-
|
|
1801
|
+
let A, y;
|
|
1802
|
+
p ? (A = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (A = e.md.options.quotes[0], y = e.md.options.quotes[1]), c.content = xe(c.content, f.index, y), u[m.token].content = xe(
|
|
2016
1803
|
u[m.token].content,
|
|
2017
1804
|
m.pos,
|
|
2018
|
-
|
|
2019
|
-
), a += y.length - 1, m.token === r && (a +=
|
|
1805
|
+
A
|
|
1806
|
+
), a += y.length - 1, m.token === r && (a += A.length - 1), o = c.content, s = o.length, n.length = t;
|
|
2020
1807
|
continue u;
|
|
2021
1808
|
}
|
|
2022
1809
|
}
|
|
2023
1810
|
d ? n.push({
|
|
2024
1811
|
token: r,
|
|
2025
1812
|
pos: f.index,
|
|
2026
|
-
single:
|
|
1813
|
+
single: p,
|
|
2027
1814
|
level: i
|
|
2028
|
-
}) : _ &&
|
|
1815
|
+
}) : _ && p && (c.content = xe(c.content, f.index, dt));
|
|
2029
1816
|
}
|
|
2030
1817
|
}
|
|
2031
1818
|
}
|
|
2032
|
-
function
|
|
1819
|
+
function Lc(u) {
|
|
2033
1820
|
if (u.md.options.typographer)
|
|
2034
1821
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
2035
|
-
u.tokens[e].type !== "inline" || !
|
|
1822
|
+
u.tokens[e].type !== "inline" || !Ic.test(u.tokens[e].content) || Mc(u.tokens[e].children, u);
|
|
2036
1823
|
}
|
|
2037
|
-
function
|
|
1824
|
+
function Oc(u) {
|
|
2038
1825
|
let e, t;
|
|
2039
1826
|
const n = u.tokens, r = n.length;
|
|
2040
1827
|
for (let c = 0; c < r; c++) {
|
|
@@ -2047,29 +1834,29 @@ function Yc(u) {
|
|
|
2047
1834
|
e !== t && (i.length = t);
|
|
2048
1835
|
}
|
|
2049
1836
|
}
|
|
2050
|
-
const
|
|
2051
|
-
["normalize",
|
|
2052
|
-
["block",
|
|
2053
|
-
["inline",
|
|
2054
|
-
["linkify",
|
|
2055
|
-
["replacements",
|
|
2056
|
-
["smartquotes",
|
|
1837
|
+
const Xe = [
|
|
1838
|
+
["normalize", gc],
|
|
1839
|
+
["block", kc],
|
|
1840
|
+
["inline", Ec],
|
|
1841
|
+
["linkify", Dc],
|
|
1842
|
+
["replacements", Rc],
|
|
1843
|
+
["smartquotes", Lc],
|
|
2057
1844
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
2058
1845
|
// and joins them with the rest of the text
|
|
2059
|
-
["text_join",
|
|
1846
|
+
["text_join", Oc]
|
|
2060
1847
|
];
|
|
2061
|
-
function
|
|
1848
|
+
function b0() {
|
|
2062
1849
|
this.ruler = new V();
|
|
2063
|
-
for (let u = 0; u <
|
|
2064
|
-
this.ruler.push(
|
|
1850
|
+
for (let u = 0; u < Xe.length; u++)
|
|
1851
|
+
this.ruler.push(Xe[u][0], Xe[u][1]);
|
|
2065
1852
|
}
|
|
2066
|
-
|
|
1853
|
+
b0.prototype.process = function(u) {
|
|
2067
1854
|
const e = this.ruler.getRules("");
|
|
2068
1855
|
for (let t = 0, n = e.length; t < n; t++)
|
|
2069
1856
|
e[t](u);
|
|
2070
1857
|
};
|
|
2071
|
-
|
|
2072
|
-
function
|
|
1858
|
+
b0.prototype.State = zt;
|
|
1859
|
+
function iu(u, e, t, n) {
|
|
2073
1860
|
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;
|
|
2074
1861
|
const r = this.src;
|
|
2075
1862
|
for (let c = 0, i = 0, o = 0, a = 0, s = r.length, f = !1; i < s; i++) {
|
|
@@ -2084,19 +1871,19 @@ function au(u, e, t, n) {
|
|
|
2084
1871
|
}
|
|
2085
1872
|
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;
|
|
2086
1873
|
}
|
|
2087
|
-
|
|
1874
|
+
iu.prototype.push = function(u, e, t) {
|
|
2088
1875
|
const n = new eu(u, e, t);
|
|
2089
1876
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2090
1877
|
};
|
|
2091
|
-
|
|
1878
|
+
iu.prototype.isEmpty = function(e) {
|
|
2092
1879
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
|
2093
1880
|
};
|
|
2094
|
-
|
|
1881
|
+
iu.prototype.skipEmptyLines = function(e) {
|
|
2095
1882
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
|
2096
1883
|
;
|
|
2097
1884
|
return e;
|
|
2098
1885
|
};
|
|
2099
|
-
|
|
1886
|
+
iu.prototype.skipSpaces = function(e) {
|
|
2100
1887
|
for (let t = this.src.length; e < t; e++) {
|
|
2101
1888
|
const n = this.src.charCodeAt(e);
|
|
2102
1889
|
if (!w(n))
|
|
@@ -2104,7 +1891,7 @@ au.prototype.skipSpaces = function(e) {
|
|
|
2104
1891
|
}
|
|
2105
1892
|
return e;
|
|
2106
1893
|
};
|
|
2107
|
-
|
|
1894
|
+
iu.prototype.skipSpacesBack = function(e, t) {
|
|
2108
1895
|
if (e <= t)
|
|
2109
1896
|
return e;
|
|
2110
1897
|
for (; e > t; )
|
|
@@ -2112,12 +1899,12 @@ au.prototype.skipSpacesBack = function(e, t) {
|
|
|
2112
1899
|
return e + 1;
|
|
2113
1900
|
return e;
|
|
2114
1901
|
};
|
|
2115
|
-
|
|
1902
|
+
iu.prototype.skipChars = function(e, t) {
|
|
2116
1903
|
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
|
|
2117
1904
|
;
|
|
2118
1905
|
return e;
|
|
2119
1906
|
};
|
|
2120
|
-
|
|
1907
|
+
iu.prototype.skipCharsBack = function(e, t, n) {
|
|
2121
1908
|
if (e <= n)
|
|
2122
1909
|
return e;
|
|
2123
1910
|
for (; e > n; )
|
|
@@ -2125,7 +1912,7 @@ au.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2125
1912
|
return e + 1;
|
|
2126
1913
|
return e;
|
|
2127
1914
|
};
|
|
2128
|
-
|
|
1915
|
+
iu.prototype.getLines = function(e, t, n, r) {
|
|
2129
1916
|
if (e >= t)
|
|
2130
1917
|
return "";
|
|
2131
1918
|
const c = new Array(t - e);
|
|
@@ -2147,20 +1934,20 @@ au.prototype.getLines = function(e, t, n, r) {
|
|
|
2147
1934
|
}
|
|
2148
1935
|
return c.join("");
|
|
2149
1936
|
};
|
|
2150
|
-
|
|
2151
|
-
const
|
|
2152
|
-
function
|
|
1937
|
+
iu.prototype.Token = eu;
|
|
1938
|
+
const Nc = 65536;
|
|
1939
|
+
function Je(u, e) {
|
|
2153
1940
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2154
1941
|
return u.src.slice(t, n);
|
|
2155
1942
|
}
|
|
2156
|
-
function
|
|
1943
|
+
function ht(u) {
|
|
2157
1944
|
const e = [], t = u.length;
|
|
2158
1945
|
let n = 0, r = u.charCodeAt(n), c = !1, i = 0, o = "";
|
|
2159
1946
|
for (; n < t; )
|
|
2160
1947
|
r === 124 && (c ? (o += u.substring(i, n - 1), i = n) : (e.push(o + u.substring(i, n)), o = "", i = n + 1)), c = r === 92, n++, r = u.charCodeAt(n);
|
|
2161
1948
|
return e.push(o + u.substring(i)), e;
|
|
2162
1949
|
}
|
|
2163
|
-
function
|
|
1950
|
+
function Pc(u, e, t, n) {
|
|
2164
1951
|
if (e + 2 > t)
|
|
2165
1952
|
return !1;
|
|
2166
1953
|
let r = e + 1;
|
|
@@ -2181,22 +1968,22 @@ function Jc(u, e, t, n) {
|
|
|
2181
1968
|
return !1;
|
|
2182
1969
|
c++;
|
|
2183
1970
|
}
|
|
2184
|
-
let a =
|
|
1971
|
+
let a = Je(u, e + 1), s = a.split("|");
|
|
2185
1972
|
const f = [];
|
|
2186
1973
|
for (let m = 0; m < s.length; m++) {
|
|
2187
|
-
const
|
|
2188
|
-
if (!
|
|
1974
|
+
const A = s[m].trim();
|
|
1975
|
+
if (!A) {
|
|
2189
1976
|
if (m === 0 || m === s.length - 1)
|
|
2190
1977
|
continue;
|
|
2191
1978
|
return !1;
|
|
2192
1979
|
}
|
|
2193
|
-
if (!/^:?-+:?$/.test(
|
|
1980
|
+
if (!/^:?-+:?$/.test(A))
|
|
2194
1981
|
return !1;
|
|
2195
|
-
|
|
1982
|
+
A.charCodeAt(A.length - 1) === 58 ? f.push(A.charCodeAt(0) === 58 ? "center" : "right") : A.charCodeAt(0) === 58 ? f.push("left") : f.push("");
|
|
2196
1983
|
}
|
|
2197
|
-
if (a =
|
|
1984
|
+
if (a = Je(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2198
1985
|
return !1;
|
|
2199
|
-
s =
|
|
1986
|
+
s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2200
1987
|
const d = s.length;
|
|
2201
1988
|
if (d === 0 || d !== f.length)
|
|
2202
1989
|
return !1;
|
|
@@ -2204,15 +1991,15 @@ function Jc(u, e, t, n) {
|
|
|
2204
1991
|
return !0;
|
|
2205
1992
|
const _ = u.parentType;
|
|
2206
1993
|
u.parentType = "table";
|
|
2207
|
-
const
|
|
2208
|
-
|
|
1994
|
+
const p = u.md.block.ruler.getRules("blockquote"), h = u.push("table_open", "table", 1), C = [e, 0];
|
|
1995
|
+
h.map = C;
|
|
2209
1996
|
const D = u.push("thead_open", "thead", 1);
|
|
2210
1997
|
D.map = [e, e + 1];
|
|
2211
|
-
const
|
|
2212
|
-
|
|
1998
|
+
const T = u.push("tr_open", "tr", 1);
|
|
1999
|
+
T.map = [e, e + 1];
|
|
2213
2000
|
for (let m = 0; m < s.length; m++) {
|
|
2214
|
-
const
|
|
2215
|
-
f[m] && (
|
|
2001
|
+
const A = u.push("th_open", "th", 1);
|
|
2002
|
+
f[m] && (A.attrs = [["style", "text-align:" + f[m]]]);
|
|
2216
2003
|
const y = u.push("inline", "", 0);
|
|
2217
2004
|
y.content = s[m].trim(), y.children = [], u.push("th_close", "th", -1);
|
|
2218
2005
|
}
|
|
@@ -2220,30 +2007,30 @@ function Jc(u, e, t, n) {
|
|
|
2220
2007
|
let E, k = 0;
|
|
2221
2008
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2222
2009
|
let m = !1;
|
|
2223
|
-
for (let y = 0,
|
|
2224
|
-
if (
|
|
2010
|
+
for (let y = 0, I = p.length; y < I; y++)
|
|
2011
|
+
if (p[y](u, r, t, !0)) {
|
|
2225
2012
|
m = !0;
|
|
2226
2013
|
break;
|
|
2227
2014
|
}
|
|
2228
|
-
if (m || (a =
|
|
2015
|
+
if (m || (a = Je(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += d - s.length, k > Nc))
|
|
2229
2016
|
break;
|
|
2230
2017
|
if (r === e + 2) {
|
|
2231
2018
|
const y = u.push("tbody_open", "tbody", 1);
|
|
2232
2019
|
y.map = E = [e + 2, 0];
|
|
2233
2020
|
}
|
|
2234
|
-
const
|
|
2235
|
-
|
|
2021
|
+
const A = u.push("tr_open", "tr", 1);
|
|
2022
|
+
A.map = [r, r + 1];
|
|
2236
2023
|
for (let y = 0; y < d; y++) {
|
|
2237
|
-
const
|
|
2238
|
-
f[y] && (
|
|
2024
|
+
const I = u.push("td_open", "td", 1);
|
|
2025
|
+
f[y] && (I.attrs = [["style", "text-align:" + f[y]]]);
|
|
2239
2026
|
const Y = u.push("inline", "", 0);
|
|
2240
2027
|
Y.content = s[y] ? s[y].trim() : "", Y.children = [], u.push("td_close", "td", -1);
|
|
2241
2028
|
}
|
|
2242
2029
|
u.push("tr_close", "tr", -1);
|
|
2243
2030
|
}
|
|
2244
|
-
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1),
|
|
2031
|
+
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType = _, u.line = r, !0;
|
|
2245
2032
|
}
|
|
2246
|
-
function
|
|
2033
|
+
function Bc(u, e, t) {
|
|
2247
2034
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2248
2035
|
return !1;
|
|
2249
2036
|
let n = e + 1, r = n;
|
|
@@ -2263,7 +2050,7 @@ function Qc(u, e, t) {
|
|
|
2263
2050
|
return c.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2264
2051
|
`, c.map = [e, u.line], !0;
|
|
2265
2052
|
}
|
|
2266
|
-
function
|
|
2053
|
+
function zc(u, e, t, n) {
|
|
2267
2054
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2268
2055
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > c)
|
|
2269
2056
|
return !1;
|
|
@@ -2287,10 +2074,10 @@ function Kc(u, e, t, n) {
|
|
|
2287
2074
|
break;
|
|
2288
2075
|
}
|
|
2289
2076
|
a = u.sCount[e], u.line = d + (_ ? 1 : 0);
|
|
2290
|
-
const
|
|
2291
|
-
return
|
|
2077
|
+
const p = u.push("fence", "code", 0);
|
|
2078
|
+
return p.info = f, p.content = u.getLines(e + 1, d, a, !0), p.markup = s, p.map = [e, u.line], !0;
|
|
2292
2079
|
}
|
|
2293
|
-
function
|
|
2080
|
+
function qc(u, e, t, n) {
|
|
2294
2081
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2295
2082
|
const i = u.lineMax;
|
|
2296
2083
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
@@ -2299,53 +2086,53 @@ function uo(u, e, t, n) {
|
|
|
2299
2086
|
return !0;
|
|
2300
2087
|
const o = [], a = [], s = [], f = [], d = u.md.block.ruler.getRules("blockquote"), _ = u.parentType;
|
|
2301
2088
|
u.parentType = "blockquote";
|
|
2302
|
-
let
|
|
2303
|
-
for (
|
|
2304
|
-
const k = u.sCount[
|
|
2305
|
-
if (r = u.bMarks[
|
|
2089
|
+
let p = !1, h;
|
|
2090
|
+
for (h = e; h < t; h++) {
|
|
2091
|
+
const k = u.sCount[h] < u.blkIndent;
|
|
2092
|
+
if (r = u.bMarks[h] + u.tShift[h], c = u.eMarks[h], r >= c)
|
|
2306
2093
|
break;
|
|
2307
2094
|
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2308
|
-
let
|
|
2309
|
-
u.src.charCodeAt(r) === 32 ? (r++,
|
|
2310
|
-
let Y =
|
|
2311
|
-
for (o.push(u.bMarks[
|
|
2095
|
+
let A = u.sCount[h] + 1, y, I;
|
|
2096
|
+
u.src.charCodeAt(r) === 32 ? (r++, A++, I = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[h] + A) % 4 === 3 ? (r++, A++, I = !1) : I = !0) : y = !1;
|
|
2097
|
+
let Y = A;
|
|
2098
|
+
for (o.push(u.bMarks[h]), u.bMarks[h] = r; r < c; ) {
|
|
2312
2099
|
const tu = u.src.charCodeAt(r);
|
|
2313
2100
|
if (w(tu))
|
|
2314
|
-
tu === 9 ? Y += 4 - (Y + u.bsCount[
|
|
2101
|
+
tu === 9 ? Y += 4 - (Y + u.bsCount[h] + (I ? 1 : 0)) % 4 : Y++;
|
|
2315
2102
|
else
|
|
2316
2103
|
break;
|
|
2317
2104
|
r++;
|
|
2318
2105
|
}
|
|
2319
|
-
|
|
2106
|
+
p = r >= c, a.push(u.bsCount[h]), u.bsCount[h] = u.sCount[h] + 1 + (y ? 1 : 0), s.push(u.sCount[h]), u.sCount[h] = Y - A, f.push(u.tShift[h]), u.tShift[h] = r - u.bMarks[h];
|
|
2320
2107
|
continue;
|
|
2321
2108
|
}
|
|
2322
|
-
if (
|
|
2109
|
+
if (p)
|
|
2323
2110
|
break;
|
|
2324
2111
|
let m = !1;
|
|
2325
|
-
for (let
|
|
2326
|
-
if (d[
|
|
2112
|
+
for (let A = 0, y = d.length; A < y; A++)
|
|
2113
|
+
if (d[A](u, h, t, !0)) {
|
|
2327
2114
|
m = !0;
|
|
2328
2115
|
break;
|
|
2329
2116
|
}
|
|
2330
2117
|
if (m) {
|
|
2331
|
-
u.lineMax =
|
|
2118
|
+
u.lineMax = h, u.blkIndent !== 0 && (o.push(u.bMarks[h]), a.push(u.bsCount[h]), f.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] -= u.blkIndent);
|
|
2332
2119
|
break;
|
|
2333
2120
|
}
|
|
2334
|
-
o.push(u.bMarks[
|
|
2121
|
+
o.push(u.bMarks[h]), a.push(u.bsCount[h]), f.push(u.tShift[h]), s.push(u.sCount[h]), u.sCount[h] = -1;
|
|
2335
2122
|
}
|
|
2336
|
-
const
|
|
2123
|
+
const C = u.blkIndent;
|
|
2337
2124
|
u.blkIndent = 0;
|
|
2338
2125
|
const D = u.push("blockquote_open", "blockquote", 1);
|
|
2339
2126
|
D.markup = ">";
|
|
2340
|
-
const
|
|
2341
|
-
D.map =
|
|
2127
|
+
const T = [e, 0];
|
|
2128
|
+
D.map = T, u.md.block.tokenize(u, e, h);
|
|
2342
2129
|
const E = u.push("blockquote_close", "blockquote", -1);
|
|
2343
|
-
E.markup = ">", u.lineMax = i, u.parentType = _,
|
|
2130
|
+
E.markup = ">", u.lineMax = i, u.parentType = _, T[1] = u.line;
|
|
2344
2131
|
for (let k = 0; k < f.length; k++)
|
|
2345
2132
|
u.bMarks[k + e] = o[k], u.tShift[k + e] = f[k], u.sCount[k + e] = s[k], u.bsCount[k + e] = a[k];
|
|
2346
|
-
return u.blkIndent =
|
|
2133
|
+
return u.blkIndent = C, !0;
|
|
2347
2134
|
}
|
|
2348
|
-
function
|
|
2135
|
+
function Uc(u, e, t, n) {
|
|
2349
2136
|
const r = u.eMarks[e];
|
|
2350
2137
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2351
2138
|
return !1;
|
|
@@ -2368,7 +2155,7 @@ function eo(u, e, t, n) {
|
|
|
2368
2155
|
const a = u.push("hr", "hr", 0);
|
|
2369
2156
|
return a.map = [e, u.line], a.markup = Array(o + 1).join(String.fromCharCode(i)), !0;
|
|
2370
2157
|
}
|
|
2371
|
-
function
|
|
2158
|
+
function pt(u, e) {
|
|
2372
2159
|
const t = u.eMarks[e];
|
|
2373
2160
|
let n = u.bMarks[e] + u.tShift[e];
|
|
2374
2161
|
const r = u.src.charCodeAt(n++);
|
|
@@ -2403,78 +2190,78 @@ function bt(u, e) {
|
|
|
2403
2190
|
}
|
|
2404
2191
|
return r < n && (c = u.src.charCodeAt(r), !w(c)) ? -1 : r;
|
|
2405
2192
|
}
|
|
2406
|
-
function
|
|
2193
|
+
function Hc(u, e) {
|
|
2407
2194
|
const t = u.level + 2;
|
|
2408
2195
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2409
2196
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2410
2197
|
}
|
|
2411
|
-
function
|
|
2198
|
+
function $c(u, e, t, n) {
|
|
2412
2199
|
let r, c, i, o, a = e, s = !0;
|
|
2413
2200
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2414
2201
|
return !1;
|
|
2415
2202
|
let f = !1;
|
|
2416
2203
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (f = !0);
|
|
2417
|
-
let d, _,
|
|
2418
|
-
if ((
|
|
2419
|
-
if (d = !0, i = u.bMarks[a] + u.tShift[a], _ = Number(u.src.slice(i,
|
|
2420
|
-
} else if ((
|
|
2204
|
+
let d, _, p;
|
|
2205
|
+
if ((p = bt(u, a)) >= 0) {
|
|
2206
|
+
if (d = !0, i = u.bMarks[a] + u.tShift[a], _ = Number(u.src.slice(i, p - 1)), f && _ !== 1) return !1;
|
|
2207
|
+
} else if ((p = pt(u, a)) >= 0)
|
|
2421
2208
|
d = !1;
|
|
2422
2209
|
else
|
|
2423
2210
|
return !1;
|
|
2424
|
-
if (f && u.skipSpaces(
|
|
2211
|
+
if (f && u.skipSpaces(p) >= u.eMarks[a])
|
|
2425
2212
|
return !1;
|
|
2426
2213
|
if (n)
|
|
2427
2214
|
return !0;
|
|
2428
|
-
const
|
|
2215
|
+
const h = u.src.charCodeAt(p - 1), C = u.tokens.length;
|
|
2429
2216
|
d ? (o = u.push("ordered_list_open", "ol", 1), _ !== 1 && (o.attrs = [["start", _]])) : o = u.push("bullet_list_open", "ul", 1);
|
|
2430
2217
|
const D = [a, 0];
|
|
2431
|
-
o.map = D, o.markup = String.fromCharCode(
|
|
2432
|
-
let
|
|
2218
|
+
o.map = D, o.markup = String.fromCharCode(h);
|
|
2219
|
+
let T = !1;
|
|
2433
2220
|
const E = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
2434
2221
|
for (u.parentType = "list"; a < t; ) {
|
|
2435
|
-
c =
|
|
2436
|
-
const m = u.sCount[a] +
|
|
2437
|
-
let
|
|
2222
|
+
c = p, r = u.eMarks[a];
|
|
2223
|
+
const m = u.sCount[a] + p - (u.bMarks[a] + u.tShift[a]);
|
|
2224
|
+
let A = m;
|
|
2438
2225
|
for (; c < r; ) {
|
|
2439
|
-
const
|
|
2440
|
-
if (
|
|
2441
|
-
|
|
2442
|
-
else if (
|
|
2443
|
-
|
|
2226
|
+
const du = u.src.charCodeAt(c);
|
|
2227
|
+
if (du === 9)
|
|
2228
|
+
A += 4 - (A + u.bsCount[a]) % 4;
|
|
2229
|
+
else if (du === 32)
|
|
2230
|
+
A++;
|
|
2444
2231
|
else
|
|
2445
2232
|
break;
|
|
2446
2233
|
c++;
|
|
2447
2234
|
}
|
|
2448
2235
|
const y = c;
|
|
2449
|
-
let
|
|
2450
|
-
y >= r ?
|
|
2451
|
-
const Y = m +
|
|
2452
|
-
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(
|
|
2236
|
+
let I;
|
|
2237
|
+
y >= r ? I = 1 : I = A - m, I > 4 && (I = 1);
|
|
2238
|
+
const Y = m + I;
|
|
2239
|
+
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(h);
|
|
2453
2240
|
const tu = [a, 0];
|
|
2454
|
-
o.map = tu, d && (o.info = u.src.slice(i,
|
|
2455
|
-
const
|
|
2456
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] =
|
|
2241
|
+
o.map = tu, d && (o.info = u.src.slice(i, p - 1));
|
|
2242
|
+
const gu = u.tight, M = u.tShift[a], Uu = u.sCount[a], Hu = u.listIndent;
|
|
2243
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = A, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || T) && (s = !1), T = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = Hu, u.tShift[a] = M, u.sCount[a] = Uu, u.tight = gu, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(h), a = u.line, tu[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2457
2244
|
break;
|
|
2458
|
-
let
|
|
2459
|
-
for (let
|
|
2460
|
-
if (E[
|
|
2461
|
-
|
|
2245
|
+
let Du = !1;
|
|
2246
|
+
for (let du = 0, Ie = E.length; du < Ie; du++)
|
|
2247
|
+
if (E[du](u, a, t, !0)) {
|
|
2248
|
+
Du = !0;
|
|
2462
2249
|
break;
|
|
2463
2250
|
}
|
|
2464
|
-
if (
|
|
2251
|
+
if (Du)
|
|
2465
2252
|
break;
|
|
2466
2253
|
if (d) {
|
|
2467
|
-
if (
|
|
2254
|
+
if (p = bt(u, a), p < 0)
|
|
2468
2255
|
break;
|
|
2469
2256
|
i = u.bMarks[a] + u.tShift[a];
|
|
2470
|
-
} else if (
|
|
2257
|
+
} else if (p = pt(u, a), p < 0)
|
|
2471
2258
|
break;
|
|
2472
|
-
if (
|
|
2259
|
+
if (h !== u.src.charCodeAt(p - 1))
|
|
2473
2260
|
break;
|
|
2474
2261
|
}
|
|
2475
|
-
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(
|
|
2262
|
+
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(h), D[1] = a, u.line = a, u.parentType = k, s && Hc(u, C), !0;
|
|
2476
2263
|
}
|
|
2477
|
-
function
|
|
2264
|
+
function jc(u, e, t, n) {
|
|
2478
2265
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e], i = e + 1;
|
|
2479
2266
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2480
2267
|
return !1;
|
|
@@ -2484,19 +2271,19 @@ function ro(u, e, t, n) {
|
|
|
2484
2271
|
return null;
|
|
2485
2272
|
let m = !1;
|
|
2486
2273
|
if (u.sCount[E] - u.blkIndent > 3 && (m = !0), u.sCount[E] < 0 && (m = !0), !m) {
|
|
2487
|
-
const
|
|
2274
|
+
const I = u.md.block.ruler.getRules("reference"), Y = u.parentType;
|
|
2488
2275
|
u.parentType = "reference";
|
|
2489
2276
|
let tu = !1;
|
|
2490
|
-
for (let
|
|
2491
|
-
if (
|
|
2277
|
+
for (let gu = 0, M = I.length; gu < M; gu++)
|
|
2278
|
+
if (I[gu](u, E, k, !0)) {
|
|
2492
2279
|
tu = !0;
|
|
2493
2280
|
break;
|
|
2494
2281
|
}
|
|
2495
2282
|
if (u.parentType = Y, tu)
|
|
2496
2283
|
return null;
|
|
2497
2284
|
}
|
|
2498
|
-
const
|
|
2499
|
-
return u.src.slice(
|
|
2285
|
+
const A = u.bMarks[E] + u.tShift[E], y = u.eMarks[E];
|
|
2286
|
+
return u.src.slice(A, y + 1);
|
|
2500
2287
|
}
|
|
2501
2288
|
let a = u.src.slice(r, c + 1);
|
|
2502
2289
|
c = a.length;
|
|
@@ -2532,7 +2319,7 @@ function ro(u, e, t, n) {
|
|
|
2532
2319
|
if (!u.md.validateLink(d))
|
|
2533
2320
|
return !1;
|
|
2534
2321
|
r = f.pos;
|
|
2535
|
-
const _ = r,
|
|
2322
|
+
const _ = r, p = i, h = r;
|
|
2536
2323
|
for (; r < c; r++) {
|
|
2537
2324
|
const E = a.charCodeAt(r);
|
|
2538
2325
|
if (E === 10) {
|
|
@@ -2540,21 +2327,21 @@ function ro(u, e, t, n) {
|
|
|
2540
2327
|
k !== null && (a += k, c = a.length, i++);
|
|
2541
2328
|
} else if (!w(E)) break;
|
|
2542
2329
|
}
|
|
2543
|
-
let
|
|
2544
|
-
for (;
|
|
2330
|
+
let C = u.md.helpers.parseLinkTitle(a, r, c);
|
|
2331
|
+
for (; C.can_continue; ) {
|
|
2545
2332
|
const E = o(i);
|
|
2546
2333
|
if (E === null) break;
|
|
2547
|
-
a += E, r = c, c = a.length, i++,
|
|
2334
|
+
a += E, r = c, c = a.length, i++, C = u.md.helpers.parseLinkTitle(a, r, c, C);
|
|
2548
2335
|
}
|
|
2549
2336
|
let D;
|
|
2550
|
-
for (r < c &&
|
|
2337
|
+
for (r < c && h !== r && C.ok ? (D = C.str, r = C.pos) : (D = "", r = _, i = p); r < c; ) {
|
|
2551
2338
|
const E = a.charCodeAt(r);
|
|
2552
2339
|
if (!w(E))
|
|
2553
2340
|
break;
|
|
2554
2341
|
r++;
|
|
2555
2342
|
}
|
|
2556
2343
|
if (r < c && a.charCodeAt(r) !== 10 && D)
|
|
2557
|
-
for (D = "", r = _, i =
|
|
2344
|
+
for (D = "", r = _, i = p; r < c; ) {
|
|
2558
2345
|
const E = a.charCodeAt(r);
|
|
2559
2346
|
if (!w(E))
|
|
2560
2347
|
break;
|
|
@@ -2562,10 +2349,10 @@ function ro(u, e, t, n) {
|
|
|
2562
2349
|
}
|
|
2563
2350
|
if (r < c && a.charCodeAt(r) !== 10)
|
|
2564
2351
|
return !1;
|
|
2565
|
-
const
|
|
2566
|
-
return
|
|
2352
|
+
const T = we(a.slice(1, s));
|
|
2353
|
+
return T ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[T] > "u" && (u.env.references[T] = { title: D, href: d }), u.line = i), !0) : !1;
|
|
2567
2354
|
}
|
|
2568
|
-
const
|
|
2355
|
+
const Gc = [
|
|
2569
2356
|
"address",
|
|
2570
2357
|
"article",
|
|
2571
2358
|
"aside",
|
|
@@ -2628,30 +2415,30 @@ const co = [
|
|
|
2628
2415
|
"tr",
|
|
2629
2416
|
"track",
|
|
2630
2417
|
"ul"
|
|
2631
|
-
],
|
|
2418
|
+
], Wc = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Zc = "[^\"'=<>`\\x00-\\x20]+", Vc = "'[^']*'", Yc = '"[^"]*"', Xc = "(?:" + Zc + "|" + Vc + "|" + Yc + ")", Jc = "(?:\\s+" + Wc + "(?:\\s*=\\s*" + Xc + ")?)", Ut = "<[A-Za-z][A-Za-z0-9\\-]*" + Jc + "*\\s*\\/?>", Ht = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Qc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Kc = "<[?][\\s\\S]*?[?]>", uo = "<![A-Za-z][^>]*>", eo = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", to = new RegExp("^(?:" + Ut + "|" + Ht + "|" + Qc + "|" + Kc + "|" + uo + "|" + eo + ")"), no = new RegExp("^(?:" + Ut + "|" + Ht + ")"), Iu = [
|
|
2632
2419
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2633
2420
|
[/^<!--/, /-->/, !0],
|
|
2634
2421
|
[/^<\?/, /\?>/, !0],
|
|
2635
2422
|
[/^<![A-Z]/, />/, !0],
|
|
2636
2423
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2637
|
-
[new RegExp("^</?(" +
|
|
2638
|
-
[new RegExp(
|
|
2424
|
+
[new RegExp("^</?(" + Gc.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2425
|
+
[new RegExp(no.source + "\\s*$"), /^$/, !1]
|
|
2639
2426
|
];
|
|
2640
|
-
function
|
|
2427
|
+
function ro(u, e, t, n) {
|
|
2641
2428
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2642
2429
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2643
2430
|
return !1;
|
|
2644
2431
|
let i = u.src.slice(r, c), o = 0;
|
|
2645
|
-
for (; o <
|
|
2432
|
+
for (; o < Iu.length && !Iu[o][0].test(i); o++)
|
|
2646
2433
|
;
|
|
2647
|
-
if (o ===
|
|
2434
|
+
if (o === Iu.length)
|
|
2648
2435
|
return !1;
|
|
2649
2436
|
if (n)
|
|
2650
|
-
return
|
|
2437
|
+
return Iu[o][2];
|
|
2651
2438
|
let a = e + 1;
|
|
2652
|
-
if (!
|
|
2439
|
+
if (!Iu[o][1].test(i)) {
|
|
2653
2440
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2654
|
-
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a], i = u.src.slice(r, c),
|
|
2441
|
+
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a], i = u.src.slice(r, c), Iu[o][1].test(i)) {
|
|
2655
2442
|
i.length !== 0 && a++;
|
|
2656
2443
|
break;
|
|
2657
2444
|
}
|
|
@@ -2660,7 +2447,7 @@ function go(u, e, t, n) {
|
|
|
2660
2447
|
const s = u.push("html_block", "", 0);
|
|
2661
2448
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2662
2449
|
}
|
|
2663
|
-
function
|
|
2450
|
+
function co(u, e, t, n) {
|
|
2664
2451
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
|
2665
2452
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2666
2453
|
return !1;
|
|
@@ -2684,7 +2471,7 @@ function ko(u, e, t, n) {
|
|
|
2684
2471
|
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2685
2472
|
return d.markup = "########".slice(0, o), !0;
|
|
2686
2473
|
}
|
|
2687
|
-
function
|
|
2474
|
+
function oo(u, e, t) {
|
|
2688
2475
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2689
2476
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2690
2477
|
return !1;
|
|
@@ -2695,9 +2482,9 @@ function Eo(u, e, t) {
|
|
|
2695
2482
|
if (u.sCount[o] - u.blkIndent > 3)
|
|
2696
2483
|
continue;
|
|
2697
2484
|
if (u.sCount[o] >= u.blkIndent) {
|
|
2698
|
-
let
|
|
2699
|
-
const
|
|
2700
|
-
if (
|
|
2485
|
+
let p = u.bMarks[o] + u.tShift[o];
|
|
2486
|
+
const h = u.eMarks[o];
|
|
2487
|
+
if (p < h && (i = u.src.charCodeAt(p), (i === 45 || i === 61) && (p = u.skipChars(p, i), p = u.skipSpaces(p), p >= h))) {
|
|
2701
2488
|
c = i === 61 ? 1 : 2;
|
|
2702
2489
|
break;
|
|
2703
2490
|
}
|
|
@@ -2705,8 +2492,8 @@ function Eo(u, e, t) {
|
|
|
2705
2492
|
if (u.sCount[o] < 0)
|
|
2706
2493
|
continue;
|
|
2707
2494
|
let _ = !1;
|
|
2708
|
-
for (let
|
|
2709
|
-
if (n[
|
|
2495
|
+
for (let p = 0, h = n.length; p < h; p++)
|
|
2496
|
+
if (n[p](u, o, t, !0)) {
|
|
2710
2497
|
_ = !0;
|
|
2711
2498
|
break;
|
|
2712
2499
|
}
|
|
@@ -2724,7 +2511,7 @@ function Eo(u, e, t) {
|
|
|
2724
2511
|
const d = u.push("heading_close", "h" + String(c), -1);
|
|
2725
2512
|
return d.markup = String.fromCharCode(i), u.parentType = r, !0;
|
|
2726
2513
|
}
|
|
2727
|
-
function
|
|
2514
|
+
function io(u, e, t) {
|
|
2728
2515
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2729
2516
|
let c = e + 1;
|
|
2730
2517
|
for (u.parentType = "paragraph"; c < t && !u.isEmpty(c); c++) {
|
|
@@ -2746,27 +2533,27 @@ function Co(u, e, t) {
|
|
|
2746
2533
|
const a = u.push("inline", "", 0);
|
|
2747
2534
|
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2748
2535
|
}
|
|
2749
|
-
const
|
|
2536
|
+
const ge = [
|
|
2750
2537
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2751
2538
|
// which can be terminated by this one.
|
|
2752
|
-
["table",
|
|
2753
|
-
["code",
|
|
2754
|
-
["fence",
|
|
2755
|
-
["blockquote",
|
|
2756
|
-
["hr",
|
|
2757
|
-
["list",
|
|
2758
|
-
["reference",
|
|
2759
|
-
["html_block",
|
|
2760
|
-
["heading",
|
|
2761
|
-
["lheading",
|
|
2762
|
-
["paragraph",
|
|
2539
|
+
["table", Pc, ["paragraph", "reference"]],
|
|
2540
|
+
["code", Bc],
|
|
2541
|
+
["fence", zc, ["paragraph", "reference", "blockquote", "list"]],
|
|
2542
|
+
["blockquote", qc, ["paragraph", "reference", "blockquote", "list"]],
|
|
2543
|
+
["hr", Uc, ["paragraph", "reference", "blockquote", "list"]],
|
|
2544
|
+
["list", $c, ["paragraph", "reference", "blockquote"]],
|
|
2545
|
+
["reference", jc],
|
|
2546
|
+
["html_block", ro, ["paragraph", "reference", "blockquote"]],
|
|
2547
|
+
["heading", co, ["paragraph", "reference", "blockquote"]],
|
|
2548
|
+
["lheading", oo],
|
|
2549
|
+
["paragraph", io]
|
|
2763
2550
|
];
|
|
2764
|
-
function
|
|
2551
|
+
function ve() {
|
|
2765
2552
|
this.ruler = new V();
|
|
2766
|
-
for (let u = 0; u <
|
|
2767
|
-
this.ruler.push(
|
|
2553
|
+
for (let u = 0; u < ge.length; u++)
|
|
2554
|
+
this.ruler.push(ge[u][0], ge[u][1], { alt: (ge[u][2] || []).slice() });
|
|
2768
2555
|
}
|
|
2769
|
-
|
|
2556
|
+
ve.prototype.tokenize = function(u, e, t) {
|
|
2770
2557
|
const n = this.ruler.getRules(""), r = n.length, c = u.md.options.maxNesting;
|
|
2771
2558
|
let i = e, o = !1;
|
|
2772
2559
|
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
|
@@ -2786,36 +2573,36 @@ Re.prototype.tokenize = function(u, e, t) {
|
|
|
2786
2573
|
u.tight = !o, u.isEmpty(u.line - 1) && (o = !0), i = u.line, i < t && u.isEmpty(i) && (o = !0, i++, u.line = i);
|
|
2787
2574
|
}
|
|
2788
2575
|
};
|
|
2789
|
-
|
|
2576
|
+
ve.prototype.parse = function(u, e, t, n) {
|
|
2790
2577
|
if (!u)
|
|
2791
2578
|
return;
|
|
2792
2579
|
const r = new this.State(u, e, t, n);
|
|
2793
2580
|
this.tokenize(r, r.line, r.lineMax);
|
|
2794
2581
|
};
|
|
2795
|
-
|
|
2796
|
-
function
|
|
2582
|
+
ve.prototype.State = iu;
|
|
2583
|
+
function oe(u, e, t, n) {
|
|
2797
2584
|
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;
|
|
2798
2585
|
}
|
|
2799
|
-
|
|
2586
|
+
oe.prototype.pushPending = function() {
|
|
2800
2587
|
const u = new eu("text", "", 0);
|
|
2801
2588
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2802
2589
|
};
|
|
2803
|
-
|
|
2590
|
+
oe.prototype.push = function(u, e, t) {
|
|
2804
2591
|
this.pending && this.pushPending();
|
|
2805
2592
|
const n = new eu(u, e, t);
|
|
2806
2593
|
let r = null;
|
|
2807
2594
|
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;
|
|
2808
2595
|
};
|
|
2809
|
-
|
|
2596
|
+
oe.prototype.scanDelims = function(u, e) {
|
|
2810
2597
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2811
2598
|
let c = u;
|
|
2812
2599
|
for (; c < t && this.src.charCodeAt(c) === n; )
|
|
2813
2600
|
c++;
|
|
2814
|
-
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, a =
|
|
2815
|
-
return { can_open: _ && (e || !
|
|
2601
|
+
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, a = ue(r) || Ku(String.fromCharCode(r)), s = ue(o) || Ku(String.fromCharCode(o)), f = Qu(r), d = Qu(o), _ = !d && (!s || f || a), p = !f && (!a || d || s);
|
|
2602
|
+
return { can_open: _ && (e || !p || a), can_close: p && (e || !_ || s), length: i };
|
|
2816
2603
|
};
|
|
2817
|
-
|
|
2818
|
-
function
|
|
2604
|
+
oe.prototype.Token = eu;
|
|
2605
|
+
function ao(u) {
|
|
2819
2606
|
switch (u) {
|
|
2820
2607
|
case 10:
|
|
2821
2608
|
case 33:
|
|
@@ -2845,18 +2632,18 @@ function Ao(u) {
|
|
|
2845
2632
|
return !1;
|
|
2846
2633
|
}
|
|
2847
2634
|
}
|
|
2848
|
-
function
|
|
2635
|
+
function so(u, e) {
|
|
2849
2636
|
let t = u.pos;
|
|
2850
|
-
for (; t < u.posMax && !
|
|
2637
|
+
for (; t < u.posMax && !ao(u.src.charCodeAt(t)); )
|
|
2851
2638
|
t++;
|
|
2852
2639
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2853
2640
|
}
|
|
2854
|
-
const
|
|
2855
|
-
function
|
|
2641
|
+
const lo = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2642
|
+
function fo(u, e) {
|
|
2856
2643
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2857
2644
|
const t = u.pos, n = u.posMax;
|
|
2858
2645
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2859
|
-
const r = u.pending.match(
|
|
2646
|
+
const r = u.pending.match(lo);
|
|
2860
2647
|
if (!r) return !1;
|
|
2861
2648
|
const c = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - c.length));
|
|
2862
2649
|
if (!i) return !1;
|
|
@@ -2876,7 +2663,7 @@ function Fo(u, e) {
|
|
|
2876
2663
|
}
|
|
2877
2664
|
return u.pos += o.length - c.length, !0;
|
|
2878
2665
|
}
|
|
2879
|
-
function
|
|
2666
|
+
function ho(u, e) {
|
|
2880
2667
|
let t = u.pos;
|
|
2881
2668
|
if (u.src.charCodeAt(t) !== 10)
|
|
2882
2669
|
return !1;
|
|
@@ -2895,13 +2682,13 @@ function To(u, e) {
|
|
|
2895
2682
|
t++;
|
|
2896
2683
|
return u.pos = t, !0;
|
|
2897
2684
|
}
|
|
2898
|
-
const
|
|
2685
|
+
const _0 = [];
|
|
2899
2686
|
for (let u = 0; u < 256; u++)
|
|
2900
|
-
|
|
2687
|
+
_0.push(0);
|
|
2901
2688
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2902
|
-
|
|
2689
|
+
_0[u.charCodeAt(0)] = 1;
|
|
2903
2690
|
});
|
|
2904
|
-
function
|
|
2691
|
+
function po(u, e) {
|
|
2905
2692
|
let t = u.pos;
|
|
2906
2693
|
const n = u.posMax;
|
|
2907
2694
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -2919,11 +2706,11 @@ function So(u, e) {
|
|
|
2919
2706
|
const i = "\\" + c;
|
|
2920
2707
|
if (!e) {
|
|
2921
2708
|
const o = u.push("text_special", "", 0);
|
|
2922
|
-
r < 256 &&
|
|
2709
|
+
r < 256 && _0[r] !== 0 ? o.content = c : o.content = i, o.markup = i, o.info = "escape";
|
|
2923
2710
|
}
|
|
2924
2711
|
return u.pos = t + 1, !0;
|
|
2925
2712
|
}
|
|
2926
|
-
function
|
|
2713
|
+
function bo(u, e) {
|
|
2927
2714
|
let t = u.pos;
|
|
2928
2715
|
if (u.src.charCodeAt(t) !== 96)
|
|
2929
2716
|
return !1;
|
|
@@ -2951,7 +2738,7 @@ function wo(u, e) {
|
|
|
2951
2738
|
}
|
|
2952
2739
|
return u.backticksScanned = !0, e || (u.pending += i), u.pos += o, !0;
|
|
2953
2740
|
}
|
|
2954
|
-
function
|
|
2741
|
+
function _o(u, e) {
|
|
2955
2742
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2956
2743
|
if (e || n !== 126)
|
|
2957
2744
|
return !1;
|
|
@@ -2992,17 +2779,17 @@ function _t(u, e) {
|
|
|
2992
2779
|
i--, c !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[c], u.tokens[c] = t);
|
|
2993
2780
|
}
|
|
2994
2781
|
}
|
|
2995
|
-
function
|
|
2782
|
+
function mo(u) {
|
|
2996
2783
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2997
2784
|
_t(u, u.delimiters);
|
|
2998
2785
|
for (let n = 0; n < t; n++)
|
|
2999
2786
|
e[n] && e[n].delimiters && _t(u, e[n].delimiters);
|
|
3000
2787
|
}
|
|
3001
|
-
const
|
|
3002
|
-
tokenize:
|
|
3003
|
-
postProcess:
|
|
2788
|
+
const $t = {
|
|
2789
|
+
tokenize: _o,
|
|
2790
|
+
postProcess: mo
|
|
3004
2791
|
};
|
|
3005
|
-
function
|
|
2792
|
+
function xo(u, e) {
|
|
3006
2793
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3007
2794
|
if (e || n !== 95 && n !== 42)
|
|
3008
2795
|
return !1;
|
|
@@ -3046,61 +2833,61 @@ function mt(u, e) {
|
|
|
3046
2833
|
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? o + o : o, s.content = "", i && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3047
2834
|
}
|
|
3048
2835
|
}
|
|
3049
|
-
function
|
|
2836
|
+
function go(u) {
|
|
3050
2837
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3051
2838
|
mt(u, u.delimiters);
|
|
3052
2839
|
for (let n = 0; n < t; n++)
|
|
3053
2840
|
e[n] && e[n].delimiters && mt(u, e[n].delimiters);
|
|
3054
2841
|
}
|
|
3055
|
-
const
|
|
3056
|
-
tokenize:
|
|
3057
|
-
postProcess:
|
|
2842
|
+
const jt = {
|
|
2843
|
+
tokenize: xo,
|
|
2844
|
+
postProcess: go
|
|
3058
2845
|
};
|
|
3059
|
-
function
|
|
2846
|
+
function ko(u, e) {
|
|
3060
2847
|
let t, n, r, c, i = "", o = "", a = u.pos, s = !0;
|
|
3061
2848
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3062
2849
|
return !1;
|
|
3063
|
-
const f = u.pos, d = u.posMax, _ = u.pos + 1,
|
|
3064
|
-
if (
|
|
2850
|
+
const f = u.pos, d = u.posMax, _ = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
2851
|
+
if (p < 0)
|
|
3065
2852
|
return !1;
|
|
3066
|
-
let
|
|
3067
|
-
if (
|
|
3068
|
-
for (s = !1,
|
|
2853
|
+
let h = p + 1;
|
|
2854
|
+
if (h < d && u.src.charCodeAt(h) === 40) {
|
|
2855
|
+
for (s = !1, h++; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
3069
2856
|
;
|
|
3070
|
-
if (
|
|
2857
|
+
if (h >= d)
|
|
3071
2858
|
return !1;
|
|
3072
|
-
if (a =
|
|
3073
|
-
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ?
|
|
2859
|
+
if (a = h, r = u.md.helpers.parseLinkDestination(u.src, h, u.posMax), r.ok) {
|
|
2860
|
+
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? h = r.pos : i = "", a = h; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
3074
2861
|
;
|
|
3075
|
-
if (r = u.md.helpers.parseLinkTitle(u.src,
|
|
3076
|
-
for (o = r.str,
|
|
2862
|
+
if (r = u.md.helpers.parseLinkTitle(u.src, h, u.posMax), h < d && a !== h && r.ok)
|
|
2863
|
+
for (o = r.str, h = r.pos; h < d && (t = u.src.charCodeAt(h), !(!w(t) && t !== 10)); h++)
|
|
3077
2864
|
;
|
|
3078
2865
|
}
|
|
3079
|
-
(
|
|
2866
|
+
(h >= d || u.src.charCodeAt(h) !== 41) && (s = !0), h++;
|
|
3080
2867
|
}
|
|
3081
2868
|
if (s) {
|
|
3082
2869
|
if (typeof u.env.references > "u")
|
|
3083
2870
|
return !1;
|
|
3084
|
-
if (
|
|
2871
|
+
if (h < d && u.src.charCodeAt(h) === 91 ? (a = h + 1, h = u.md.helpers.parseLinkLabel(u, h), h >= 0 ? n = u.src.slice(a, h++) : h = p + 1) : h = p + 1, n || (n = u.src.slice(_, p)), c = u.env.references[we(n)], !c)
|
|
3085
2872
|
return u.pos = f, !1;
|
|
3086
2873
|
i = c.href, o = c.title;
|
|
3087
2874
|
}
|
|
3088
2875
|
if (!e) {
|
|
3089
|
-
u.pos = _, u.posMax =
|
|
3090
|
-
const
|
|
3091
|
-
|
|
2876
|
+
u.pos = _, u.posMax = p;
|
|
2877
|
+
const C = u.push("link_open", "a", 1), D = [["href", i]];
|
|
2878
|
+
C.attrs = D, o && D.push(["title", o]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3092
2879
|
}
|
|
3093
|
-
return u.pos =
|
|
2880
|
+
return u.pos = h, u.posMax = d, !0;
|
|
3094
2881
|
}
|
|
3095
|
-
function
|
|
2882
|
+
function Eo(u, e) {
|
|
3096
2883
|
let t, n, r, c, i, o, a, s, f = "";
|
|
3097
2884
|
const d = u.pos, _ = u.posMax;
|
|
3098
2885
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3099
2886
|
return !1;
|
|
3100
|
-
const
|
|
3101
|
-
if (
|
|
2887
|
+
const p = u.pos + 2, h = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
2888
|
+
if (h < 0)
|
|
3102
2889
|
return !1;
|
|
3103
|
-
if (c =
|
|
2890
|
+
if (c = h + 1, c < _ && u.src.charCodeAt(c) === 40) {
|
|
3104
2891
|
for (c++; c < _ && (t = u.src.charCodeAt(c), !(!w(t) && t !== 10)); c++)
|
|
3105
2892
|
;
|
|
3106
2893
|
if (c >= _)
|
|
@@ -3118,26 +2905,26 @@ function Oo(u, e) {
|
|
|
3118
2905
|
} else {
|
|
3119
2906
|
if (typeof u.env.references > "u")
|
|
3120
2907
|
return !1;
|
|
3121
|
-
if (c < _ && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c =
|
|
2908
|
+
if (c < _ && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c = h + 1) : c = h + 1, r || (r = u.src.slice(p, h)), i = u.env.references[we(r)], !i)
|
|
3122
2909
|
return u.pos = d, !1;
|
|
3123
2910
|
f = i.href, a = i.title;
|
|
3124
2911
|
}
|
|
3125
2912
|
if (!e) {
|
|
3126
|
-
n = u.src.slice(
|
|
3127
|
-
const
|
|
2913
|
+
n = u.src.slice(p, h);
|
|
2914
|
+
const C = [];
|
|
3128
2915
|
u.md.inline.parse(
|
|
3129
2916
|
n,
|
|
3130
2917
|
u.md,
|
|
3131
2918
|
u.env,
|
|
3132
|
-
|
|
2919
|
+
C
|
|
3133
2920
|
);
|
|
3134
|
-
const D = u.push("image", "img", 0),
|
|
3135
|
-
D.attrs =
|
|
2921
|
+
const D = u.push("image", "img", 0), T = [["src", f], ["alt", ""]];
|
|
2922
|
+
D.attrs = T, D.children = C, D.content = n, a && T.push(["title", a]);
|
|
3136
2923
|
}
|
|
3137
2924
|
return u.pos = c, u.posMax = _, !0;
|
|
3138
2925
|
}
|
|
3139
|
-
const
|
|
3140
|
-
function
|
|
2926
|
+
const Ao = /^([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])?)*)$/, Co = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2927
|
+
function Do(u, e) {
|
|
3141
2928
|
let t = u.pos;
|
|
3142
2929
|
if (u.src.charCodeAt(t) !== 60)
|
|
3143
2930
|
return !1;
|
|
@@ -3149,7 +2936,7 @@ function Bo(u, e) {
|
|
|
3149
2936
|
if (i === 62) break;
|
|
3150
2937
|
}
|
|
3151
2938
|
const c = u.src.slice(n + 1, t);
|
|
3152
|
-
if (
|
|
2939
|
+
if (Co.test(c)) {
|
|
3153
2940
|
const i = u.md.normalizeLink(c);
|
|
3154
2941
|
if (!u.md.validateLink(i))
|
|
3155
2942
|
return !1;
|
|
@@ -3163,7 +2950,7 @@ function Bo(u, e) {
|
|
|
3163
2950
|
}
|
|
3164
2951
|
return u.pos += c.length + 2, !0;
|
|
3165
2952
|
}
|
|
3166
|
-
if (
|
|
2953
|
+
if (Ao.test(c)) {
|
|
3167
2954
|
const i = u.md.normalizeLink("mailto:" + c);
|
|
3168
2955
|
if (!u.md.validateLink(i))
|
|
3169
2956
|
return !1;
|
|
@@ -3179,51 +2966,51 @@ function Bo(u, e) {
|
|
|
3179
2966
|
}
|
|
3180
2967
|
return !1;
|
|
3181
2968
|
}
|
|
3182
|
-
function
|
|
2969
|
+
function yo(u) {
|
|
3183
2970
|
return /^<a[>\s]/i.test(u);
|
|
3184
2971
|
}
|
|
3185
|
-
function
|
|
2972
|
+
function Fo(u) {
|
|
3186
2973
|
return /^<\/a\s*>/i.test(u);
|
|
3187
2974
|
}
|
|
3188
|
-
function
|
|
2975
|
+
function To(u) {
|
|
3189
2976
|
const e = u | 32;
|
|
3190
2977
|
return e >= 97 && e <= 122;
|
|
3191
2978
|
}
|
|
3192
|
-
function
|
|
2979
|
+
function So(u, e) {
|
|
3193
2980
|
if (!u.md.options.html)
|
|
3194
2981
|
return !1;
|
|
3195
2982
|
const t = u.posMax, n = u.pos;
|
|
3196
2983
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
3197
2984
|
return !1;
|
|
3198
2985
|
const r = u.src.charCodeAt(n + 1);
|
|
3199
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
2986
|
+
if (r !== 33 && r !== 63 && r !== 47 && !To(r))
|
|
3200
2987
|
return !1;
|
|
3201
|
-
const c = u.src.slice(n).match(
|
|
2988
|
+
const c = u.src.slice(n).match(to);
|
|
3202
2989
|
if (!c)
|
|
3203
2990
|
return !1;
|
|
3204
2991
|
if (!e) {
|
|
3205
2992
|
const i = u.push("html_inline", "", 0);
|
|
3206
|
-
i.content = c[0],
|
|
2993
|
+
i.content = c[0], yo(i.content) && u.linkLevel++, Fo(i.content) && u.linkLevel--;
|
|
3207
2994
|
}
|
|
3208
2995
|
return u.pos += c[0].length, !0;
|
|
3209
2996
|
}
|
|
3210
|
-
const
|
|
3211
|
-
function
|
|
2997
|
+
const wo = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, vo = /^&([a-z][a-z0-9]{1,31});/i;
|
|
2998
|
+
function Ro(u, e) {
|
|
3212
2999
|
const t = u.pos, n = u.posMax;
|
|
3213
3000
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3214
3001
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3215
|
-
const c = u.src.slice(t).match(
|
|
3002
|
+
const c = u.src.slice(t).match(wo);
|
|
3216
3003
|
if (c) {
|
|
3217
3004
|
if (!e) {
|
|
3218
3005
|
const i = c[1][0].toLowerCase() === "x" ? parseInt(c[1].slice(1), 16) : parseInt(c[1], 10), o = u.push("text_special", "", 0);
|
|
3219
|
-
o.content =
|
|
3006
|
+
o.content = p0(i) ? Fe(i) : Fe(65533), o.markup = c[0], o.info = "entity";
|
|
3220
3007
|
}
|
|
3221
3008
|
return u.pos += c[0].length, !0;
|
|
3222
3009
|
}
|
|
3223
3010
|
} else {
|
|
3224
|
-
const c = u.src.slice(t).match(
|
|
3011
|
+
const c = u.src.slice(t).match(vo);
|
|
3225
3012
|
if (c) {
|
|
3226
|
-
const i =
|
|
3013
|
+
const i = Nt(c[0]);
|
|
3227
3014
|
if (i !== c[0]) {
|
|
3228
3015
|
if (!e) {
|
|
3229
3016
|
const o = u.push("text_special", "", 0);
|
|
@@ -3251,8 +3038,8 @@ function xt(u) {
|
|
|
3251
3038
|
if (d.marker === o.marker && d.open && d.end < 0) {
|
|
3252
3039
|
let _ = !1;
|
|
3253
3040
|
if ((d.close || o.open) && (d.length + o.length) % 3 === 0 && (d.length % 3 !== 0 || o.length % 3 !== 0) && (_ = !0), !_) {
|
|
3254
|
-
const
|
|
3255
|
-
c[i] = i - s +
|
|
3041
|
+
const p = s > 0 && !u[s - 1].open ? c[s - 1] + 1 : 0;
|
|
3042
|
+
c[i] = i - s + p, c[s] = p, o.open = !1, d.end = i, d.close = !1, f = -1, r = -2;
|
|
3256
3043
|
break;
|
|
3257
3044
|
}
|
|
3258
3045
|
}
|
|
@@ -3260,49 +3047,49 @@ function xt(u) {
|
|
|
3260
3047
|
f !== -1 && (e[o.marker][(o.open ? 3 : 0) + (o.length || 0) % 3] = f);
|
|
3261
3048
|
}
|
|
3262
3049
|
}
|
|
3263
|
-
function
|
|
3050
|
+
function Io(u) {
|
|
3264
3051
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3265
3052
|
xt(u.delimiters);
|
|
3266
3053
|
for (let n = 0; n < t; n++)
|
|
3267
3054
|
e[n] && e[n].delimiters && xt(e[n].delimiters);
|
|
3268
3055
|
}
|
|
3269
|
-
function
|
|
3056
|
+
function Mo(u) {
|
|
3270
3057
|
let e, t, n = 0;
|
|
3271
3058
|
const r = u.tokens, c = u.tokens.length;
|
|
3272
3059
|
for (e = t = 0; e < c; e++)
|
|
3273
3060
|
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++);
|
|
3274
3061
|
e !== t && (r.length = t);
|
|
3275
3062
|
}
|
|
3276
|
-
const
|
|
3277
|
-
["text",
|
|
3278
|
-
["linkify",
|
|
3279
|
-
["newline",
|
|
3280
|
-
["escape",
|
|
3281
|
-
["backticks",
|
|
3282
|
-
["strikethrough",
|
|
3283
|
-
["emphasis",
|
|
3284
|
-
["link",
|
|
3285
|
-
["image",
|
|
3286
|
-
["autolink",
|
|
3287
|
-
["html_inline",
|
|
3288
|
-
["entity",
|
|
3289
|
-
],
|
|
3290
|
-
["balance_pairs",
|
|
3291
|
-
["strikethrough",
|
|
3292
|
-
["emphasis",
|
|
3063
|
+
const Qe = [
|
|
3064
|
+
["text", so],
|
|
3065
|
+
["linkify", fo],
|
|
3066
|
+
["newline", ho],
|
|
3067
|
+
["escape", po],
|
|
3068
|
+
["backticks", bo],
|
|
3069
|
+
["strikethrough", $t.tokenize],
|
|
3070
|
+
["emphasis", jt.tokenize],
|
|
3071
|
+
["link", ko],
|
|
3072
|
+
["image", Eo],
|
|
3073
|
+
["autolink", Do],
|
|
3074
|
+
["html_inline", So],
|
|
3075
|
+
["entity", Ro]
|
|
3076
|
+
], Ke = [
|
|
3077
|
+
["balance_pairs", Io],
|
|
3078
|
+
["strikethrough", $t.postProcess],
|
|
3079
|
+
["emphasis", jt.postProcess],
|
|
3293
3080
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3294
3081
|
// rule below merges unused segments back with the rest of the text
|
|
3295
|
-
["fragments_join",
|
|
3082
|
+
["fragments_join", Mo]
|
|
3296
3083
|
];
|
|
3297
|
-
function
|
|
3084
|
+
function ie() {
|
|
3298
3085
|
this.ruler = new V();
|
|
3299
|
-
for (let u = 0; u <
|
|
3300
|
-
this.ruler.push(
|
|
3086
|
+
for (let u = 0; u < Qe.length; u++)
|
|
3087
|
+
this.ruler.push(Qe[u][0], Qe[u][1]);
|
|
3301
3088
|
this.ruler2 = new V();
|
|
3302
|
-
for (let u = 0; u <
|
|
3303
|
-
this.ruler2.push(
|
|
3089
|
+
for (let u = 0; u < Ke.length; u++)
|
|
3090
|
+
this.ruler2.push(Ke[u][0], Ke[u][1]);
|
|
3304
3091
|
}
|
|
3305
|
-
|
|
3092
|
+
ie.prototype.skipToken = function(u) {
|
|
3306
3093
|
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, c = u.cache;
|
|
3307
3094
|
if (typeof c[e] < "u") {
|
|
3308
3095
|
u.pos = c[e];
|
|
@@ -3320,7 +3107,7 @@ fe.prototype.skipToken = function(u) {
|
|
|
3320
3107
|
u.pos = u.posMax;
|
|
3321
3108
|
i || u.pos++, c[e] = u.pos;
|
|
3322
3109
|
};
|
|
3323
|
-
|
|
3110
|
+
ie.prototype.tokenize = function(u) {
|
|
3324
3111
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3325
3112
|
for (; u.pos < n; ) {
|
|
3326
3113
|
const c = u.pos;
|
|
@@ -3342,17 +3129,17 @@ fe.prototype.tokenize = function(u) {
|
|
|
3342
3129
|
}
|
|
3343
3130
|
u.pending && u.pushPending();
|
|
3344
3131
|
};
|
|
3345
|
-
|
|
3132
|
+
ie.prototype.parse = function(u, e, t, n) {
|
|
3346
3133
|
const r = new this.State(u, e, t, n);
|
|
3347
3134
|
this.tokenize(r);
|
|
3348
3135
|
const c = this.ruler2.getRules(""), i = c.length;
|
|
3349
3136
|
for (let o = 0; o < i; o++)
|
|
3350
3137
|
c[o](r);
|
|
3351
3138
|
};
|
|
3352
|
-
|
|
3353
|
-
function
|
|
3139
|
+
ie.prototype.State = oe;
|
|
3140
|
+
function Lo(u) {
|
|
3354
3141
|
const e = {};
|
|
3355
|
-
u = u || {}, e.src_Any =
|
|
3142
|
+
u = u || {}, e.src_Any = Rt.source, e.src_Cc = It.source, e.src_Z = Lt.source, e.src_P = d0.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3356
3143
|
const t = "[><|]";
|
|
3357
3144
|
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
|
|
3358
3145
|
",(?!" + 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)
|
|
@@ -3362,42 +3149,42 @@ function Vo(u) {
|
|
|
3362
3149
|
// but can start with > (markdown blockquote)
|
|
3363
3150
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
3364
3151
|
}
|
|
3365
|
-
function
|
|
3152
|
+
function c0(u) {
|
|
3366
3153
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
3367
3154
|
t && Object.keys(t).forEach(function(n) {
|
|
3368
3155
|
u[n] = t[n];
|
|
3369
3156
|
});
|
|
3370
3157
|
}), u;
|
|
3371
3158
|
}
|
|
3372
|
-
function
|
|
3159
|
+
function Re(u) {
|
|
3373
3160
|
return Object.prototype.toString.call(u);
|
|
3374
3161
|
}
|
|
3375
|
-
function
|
|
3376
|
-
return
|
|
3162
|
+
function Oo(u) {
|
|
3163
|
+
return Re(u) === "[object String]";
|
|
3377
3164
|
}
|
|
3378
|
-
function
|
|
3379
|
-
return
|
|
3165
|
+
function No(u) {
|
|
3166
|
+
return Re(u) === "[object Object]";
|
|
3380
3167
|
}
|
|
3381
|
-
function
|
|
3382
|
-
return
|
|
3168
|
+
function Po(u) {
|
|
3169
|
+
return Re(u) === "[object RegExp]";
|
|
3383
3170
|
}
|
|
3384
3171
|
function gt(u) {
|
|
3385
|
-
return
|
|
3172
|
+
return Re(u) === "[object Function]";
|
|
3386
3173
|
}
|
|
3387
|
-
function
|
|
3174
|
+
function Bo(u) {
|
|
3388
3175
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3389
3176
|
}
|
|
3390
|
-
const
|
|
3177
|
+
const Gt = {
|
|
3391
3178
|
fuzzyLink: !0,
|
|
3392
3179
|
fuzzyEmail: !0,
|
|
3393
3180
|
fuzzyIP: !1
|
|
3394
3181
|
};
|
|
3395
|
-
function
|
|
3182
|
+
function zo(u) {
|
|
3396
3183
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
3397
|
-
return e ||
|
|
3184
|
+
return e || Gt.hasOwnProperty(t);
|
|
3398
3185
|
}, !1);
|
|
3399
3186
|
}
|
|
3400
|
-
const
|
|
3187
|
+
const qo = {
|
|
3401
3188
|
"http:": {
|
|
3402
3189
|
validate: function(u, e, t) {
|
|
3403
3190
|
const n = u.slice(e);
|
|
@@ -3429,11 +3216,11 @@ const ui = {
|
|
|
3429
3216
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3430
3217
|
}
|
|
3431
3218
|
}
|
|
3432
|
-
},
|
|
3433
|
-
function
|
|
3219
|
+
}, Uo = "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]", Ho = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3220
|
+
function $o(u) {
|
|
3434
3221
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3435
3222
|
}
|
|
3436
|
-
function
|
|
3223
|
+
function jo(u) {
|
|
3437
3224
|
return function(e, t) {
|
|
3438
3225
|
const n = e.slice(t);
|
|
3439
3226
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3445,8 +3232,8 @@ function kt() {
|
|
|
3445
3232
|
};
|
|
3446
3233
|
}
|
|
3447
3234
|
function Te(u) {
|
|
3448
|
-
const e = u.re =
|
|
3449
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3235
|
+
const e = u.re = Lo(u.__opts__), t = u.__tlds__.slice();
|
|
3236
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(Uo), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3450
3237
|
function n(o) {
|
|
3451
3238
|
return o.replace("%TLDS%", e.src_tlds);
|
|
3452
3239
|
}
|
|
@@ -3461,11 +3248,11 @@ function Te(u) {
|
|
|
3461
3248
|
if (a === null)
|
|
3462
3249
|
return;
|
|
3463
3250
|
const s = { validate: null, link: null };
|
|
3464
|
-
if (u.__compiled__[o] = s,
|
|
3465
|
-
|
|
3251
|
+
if (u.__compiled__[o] = s, No(a)) {
|
|
3252
|
+
Po(a.validate) ? s.validate = jo(a.validate) : gt(a.validate) ? s.validate = a.validate : c(o, a), gt(a.normalize) ? s.normalize = a.normalize : a.normalize ? c(o, a) : s.normalize = kt();
|
|
3466
3253
|
return;
|
|
3467
3254
|
}
|
|
3468
|
-
if (
|
|
3255
|
+
if (Oo(a)) {
|
|
3469
3256
|
r.push(o);
|
|
3470
3257
|
return;
|
|
3471
3258
|
}
|
|
@@ -3475,30 +3262,30 @@ function Te(u) {
|
|
|
3475
3262
|
}), u.__compiled__[""] = { validate: null, normalize: kt() };
|
|
3476
3263
|
const i = Object.keys(u.__compiled__).filter(function(o) {
|
|
3477
3264
|
return o.length > 0 && u.__compiled__[o];
|
|
3478
|
-
}).map(
|
|
3265
|
+
}).map(Bo).join("|");
|
|
3479
3266
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3480
3267
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3481
3268
|
"i"
|
|
3482
|
-
),
|
|
3269
|
+
), $o(u);
|
|
3483
3270
|
}
|
|
3484
|
-
function
|
|
3271
|
+
function Go(u, e) {
|
|
3485
3272
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3486
3273
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3487
3274
|
}
|
|
3488
|
-
function
|
|
3489
|
-
const t = new
|
|
3275
|
+
function o0(u, e) {
|
|
3276
|
+
const t = new Go(u, e);
|
|
3490
3277
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3491
3278
|
}
|
|
3492
3279
|
function X(u, e) {
|
|
3493
3280
|
if (!(this instanceof X))
|
|
3494
3281
|
return new X(u, e);
|
|
3495
|
-
e ||
|
|
3282
|
+
e || zo(u) && (e = u, u = {}), this.__opts__ = c0({}, Gt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = c0({}, qo, u), this.__compiled__ = {}, this.__tlds__ = Ho, this.__tlds_replaced__ = !1, this.re = {}, Te(this);
|
|
3496
3283
|
}
|
|
3497
3284
|
X.prototype.add = function(e, t) {
|
|
3498
3285
|
return this.__schemas__[e] = t, Te(this), this;
|
|
3499
3286
|
};
|
|
3500
3287
|
X.prototype.set = function(e) {
|
|
3501
|
-
return this.__opts__ =
|
|
3288
|
+
return this.__opts__ = c0(this.__opts__, e), this;
|
|
3502
3289
|
};
|
|
3503
3290
|
X.prototype.test = function(e) {
|
|
3504
3291
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
@@ -3522,10 +3309,10 @@ X.prototype.testSchemaAt = function(e, t, n) {
|
|
|
3522
3309
|
X.prototype.match = function(e) {
|
|
3523
3310
|
const t = [];
|
|
3524
3311
|
let n = 0;
|
|
3525
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
|
3312
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(o0(this, n)), n = this.__last_index__);
|
|
3526
3313
|
let r = n ? e.slice(n) : e;
|
|
3527
3314
|
for (; this.test(r); )
|
|
3528
|
-
t.push(
|
|
3315
|
+
t.push(o0(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3529
3316
|
return t.length ? t : null;
|
|
3530
3317
|
};
|
|
3531
3318
|
X.prototype.matchAtStart = function(e) {
|
|
@@ -3533,7 +3320,7 @@ X.prototype.matchAtStart = function(e) {
|
|
|
3533
3320
|
const t = this.re.schema_at_start.exec(e);
|
|
3534
3321
|
if (!t) return null;
|
|
3535
3322
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3536
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
|
3323
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, o0(this, 0)) : null;
|
|
3537
3324
|
};
|
|
3538
3325
|
X.prototype.tlds = function(e, t) {
|
|
3539
3326
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
|
@@ -3545,29 +3332,29 @@ X.prototype.normalize = function(e) {
|
|
|
3545
3332
|
};
|
|
3546
3333
|
X.prototype.onCompile = function() {
|
|
3547
3334
|
};
|
|
3548
|
-
const
|
|
3335
|
+
const Nu = 2147483647, ru = 36, m0 = 1, ee = 26, Wo = 38, Zo = 700, Wt = 72, Zt = 128, Vt = "-", Vo = /^xn--/, Yo = /[^\0-\x7F]/, Xo = /[\x2E\u3002\uFF0E\uFF61]/g, Jo = {
|
|
3549
3336
|
overflow: "Overflow: input needs wider integers to process",
|
|
3550
3337
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3551
3338
|
"invalid-input": "Invalid input"
|
|
3552
|
-
},
|
|
3339
|
+
}, u0 = ru - m0, cu = Math.floor, e0 = String.fromCharCode;
|
|
3553
3340
|
function hu(u) {
|
|
3554
|
-
throw new RangeError(
|
|
3341
|
+
throw new RangeError(Jo[u]);
|
|
3555
3342
|
}
|
|
3556
|
-
function
|
|
3343
|
+
function Qo(u, e) {
|
|
3557
3344
|
const t = [];
|
|
3558
3345
|
let n = u.length;
|
|
3559
3346
|
for (; n--; )
|
|
3560
3347
|
t[n] = e(u[n]);
|
|
3561
3348
|
return t;
|
|
3562
3349
|
}
|
|
3563
|
-
function
|
|
3350
|
+
function Yt(u, e) {
|
|
3564
3351
|
const t = u.split("@");
|
|
3565
3352
|
let n = "";
|
|
3566
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3567
|
-
const r = u.split("."), c =
|
|
3353
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(Xo, ".");
|
|
3354
|
+
const r = u.split("."), c = Qo(r, e).join(".");
|
|
3568
3355
|
return n + c;
|
|
3569
3356
|
}
|
|
3570
|
-
function
|
|
3357
|
+
function Xt(u) {
|
|
3571
3358
|
const e = [];
|
|
3572
3359
|
let t = 0;
|
|
3573
3360
|
const n = u.length;
|
|
@@ -3581,78 +3368,78 @@ function Qt(u) {
|
|
|
3581
3368
|
}
|
|
3582
3369
|
return e;
|
|
3583
3370
|
}
|
|
3584
|
-
const
|
|
3585
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
|
3371
|
+
const Ko = (u) => String.fromCodePoint(...u), ui = function(u) {
|
|
3372
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : ru;
|
|
3586
3373
|
}, Et = function(u, e) {
|
|
3587
3374
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3588
|
-
},
|
|
3375
|
+
}, Jt = function(u, e, t) {
|
|
3589
3376
|
let n = 0;
|
|
3590
|
-
for (u = t ?
|
|
3591
|
-
u =
|
|
3592
|
-
return
|
|
3593
|
-
},
|
|
3377
|
+
for (u = t ? cu(u / Zo) : u >> 1, u += cu(u / e); u > u0 * ee >> 1; n += ru)
|
|
3378
|
+
u = cu(u / u0);
|
|
3379
|
+
return cu(n + (u0 + 1) * u / (u + Wo));
|
|
3380
|
+
}, Qt = function(u) {
|
|
3594
3381
|
const e = [], t = u.length;
|
|
3595
|
-
let n = 0, r =
|
|
3382
|
+
let n = 0, r = Zt, c = Wt, i = u.lastIndexOf(Vt);
|
|
3596
3383
|
i < 0 && (i = 0);
|
|
3597
3384
|
for (let o = 0; o < i; ++o)
|
|
3598
3385
|
u.charCodeAt(o) >= 128 && hu("not-basic"), e.push(u.charCodeAt(o));
|
|
3599
3386
|
for (let o = i > 0 ? i + 1 : 0; o < t; ) {
|
|
3600
3387
|
const a = n;
|
|
3601
|
-
for (let f = 1, d =
|
|
3388
|
+
for (let f = 1, d = ru; ; d += ru) {
|
|
3602
3389
|
o >= t && hu("invalid-input");
|
|
3603
|
-
const _ =
|
|
3604
|
-
_ >=
|
|
3605
|
-
const
|
|
3606
|
-
if (_ <
|
|
3390
|
+
const _ = ui(u.charCodeAt(o++));
|
|
3391
|
+
_ >= ru && hu("invalid-input"), _ > cu((Nu - n) / f) && hu("overflow"), n += _ * f;
|
|
3392
|
+
const p = d <= c ? m0 : d >= c + ee ? ee : d - c;
|
|
3393
|
+
if (_ < p)
|
|
3607
3394
|
break;
|
|
3608
|
-
const
|
|
3609
|
-
f >
|
|
3395
|
+
const h = ru - p;
|
|
3396
|
+
f > cu(Nu / h) && hu("overflow"), f *= h;
|
|
3610
3397
|
}
|
|
3611
3398
|
const s = e.length + 1;
|
|
3612
|
-
c =
|
|
3399
|
+
c = Jt(n - a, s, a == 0), cu(n / s) > Nu - r && hu("overflow"), r += cu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3613
3400
|
}
|
|
3614
3401
|
return String.fromCodePoint(...e);
|
|
3615
|
-
},
|
|
3402
|
+
}, Kt = function(u) {
|
|
3616
3403
|
const e = [];
|
|
3617
|
-
u =
|
|
3404
|
+
u = Xt(u);
|
|
3618
3405
|
const t = u.length;
|
|
3619
|
-
let n =
|
|
3406
|
+
let n = Zt, r = 0, c = Wt;
|
|
3620
3407
|
for (const a of u)
|
|
3621
|
-
a < 128 && e.push(
|
|
3408
|
+
a < 128 && e.push(e0(a));
|
|
3622
3409
|
const i = e.length;
|
|
3623
3410
|
let o = i;
|
|
3624
|
-
for (i && e.push(
|
|
3625
|
-
let a =
|
|
3411
|
+
for (i && e.push(Vt); o < t; ) {
|
|
3412
|
+
let a = Nu;
|
|
3626
3413
|
for (const f of u)
|
|
3627
3414
|
f >= n && f < a && (a = f);
|
|
3628
3415
|
const s = o + 1;
|
|
3629
|
-
a - n >
|
|
3416
|
+
a - n > cu((Nu - r) / s) && hu("overflow"), r += (a - n) * s, n = a;
|
|
3630
3417
|
for (const f of u)
|
|
3631
|
-
if (f < n && ++r >
|
|
3418
|
+
if (f < n && ++r > Nu && hu("overflow"), f === n) {
|
|
3632
3419
|
let d = r;
|
|
3633
|
-
for (let _ =
|
|
3634
|
-
const
|
|
3635
|
-
if (d <
|
|
3420
|
+
for (let _ = ru; ; _ += ru) {
|
|
3421
|
+
const p = _ <= c ? m0 : _ >= c + ee ? ee : _ - c;
|
|
3422
|
+
if (d < p)
|
|
3636
3423
|
break;
|
|
3637
|
-
const
|
|
3424
|
+
const h = d - p, C = ru - p;
|
|
3638
3425
|
e.push(
|
|
3639
|
-
|
|
3640
|
-
), d =
|
|
3426
|
+
e0(Et(p + h % C, 0))
|
|
3427
|
+
), d = cu(h / C);
|
|
3641
3428
|
}
|
|
3642
|
-
e.push(
|
|
3429
|
+
e.push(e0(Et(d, 0))), c = Jt(r, s, o === i), r = 0, ++o;
|
|
3643
3430
|
}
|
|
3644
3431
|
++r, ++n;
|
|
3645
3432
|
}
|
|
3646
3433
|
return e.join("");
|
|
3647
|
-
},
|
|
3648
|
-
return
|
|
3649
|
-
return
|
|
3434
|
+
}, ei = function(u) {
|
|
3435
|
+
return Yt(u, function(e) {
|
|
3436
|
+
return Vo.test(e) ? Qt(e.slice(4).toLowerCase()) : e;
|
|
3650
3437
|
});
|
|
3651
|
-
},
|
|
3652
|
-
return
|
|
3653
|
-
return
|
|
3438
|
+
}, ti = function(u) {
|
|
3439
|
+
return Yt(u, function(e) {
|
|
3440
|
+
return Yo.test(e) ? "xn--" + Kt(e) : e;
|
|
3654
3441
|
});
|
|
3655
|
-
},
|
|
3442
|
+
}, un = {
|
|
3656
3443
|
/**
|
|
3657
3444
|
* A string representing the current Punycode.js version number.
|
|
3658
3445
|
* @memberOf punycode
|
|
@@ -3667,14 +3454,14 @@ const pi = (u) => String.fromCodePoint(...u), hi = function(u) {
|
|
|
3667
3454
|
* @type Object
|
|
3668
3455
|
*/
|
|
3669
3456
|
ucs2: {
|
|
3670
|
-
decode:
|
|
3671
|
-
encode:
|
|
3457
|
+
decode: Xt,
|
|
3458
|
+
encode: Ko
|
|
3672
3459
|
},
|
|
3673
|
-
decode:
|
|
3674
|
-
encode:
|
|
3675
|
-
toASCII:
|
|
3676
|
-
toUnicode:
|
|
3677
|
-
},
|
|
3460
|
+
decode: Qt,
|
|
3461
|
+
encode: Kt,
|
|
3462
|
+
toASCII: ti,
|
|
3463
|
+
toUnicode: ei
|
|
3464
|
+
}, ni = {
|
|
3678
3465
|
options: {
|
|
3679
3466
|
// Enable HTML tags in source
|
|
3680
3467
|
html: !1,
|
|
@@ -3710,7 +3497,7 @@ const pi = (u) => String.fromCodePoint(...u), hi = function(u) {
|
|
|
3710
3497
|
block: {},
|
|
3711
3498
|
inline: {}
|
|
3712
3499
|
}
|
|
3713
|
-
},
|
|
3500
|
+
}, ri = {
|
|
3714
3501
|
options: {
|
|
3715
3502
|
// Enable HTML tags in source
|
|
3716
3503
|
html: !1,
|
|
@@ -3765,7 +3552,7 @@ const pi = (u) => String.fromCodePoint(...u), hi = function(u) {
|
|
|
3765
3552
|
]
|
|
3766
3553
|
}
|
|
3767
3554
|
}
|
|
3768
|
-
},
|
|
3555
|
+
}, ci = {
|
|
3769
3556
|
options: {
|
|
3770
3557
|
// Enable HTML tags in source
|
|
3771
3558
|
html: !0,
|
|
@@ -3839,47 +3626,47 @@ const pi = (u) => String.fromCodePoint(...u), hi = function(u) {
|
|
|
3839
3626
|
]
|
|
3840
3627
|
}
|
|
3841
3628
|
}
|
|
3842
|
-
},
|
|
3843
|
-
default:
|
|
3844
|
-
zero:
|
|
3845
|
-
commonmark:
|
|
3846
|
-
},
|
|
3847
|
-
function
|
|
3629
|
+
}, oi = {
|
|
3630
|
+
default: ni,
|
|
3631
|
+
zero: ri,
|
|
3632
|
+
commonmark: ci
|
|
3633
|
+
}, ii = /^(vbscript|javascript|file|data):/, ai = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3634
|
+
function si(u) {
|
|
3848
3635
|
const e = u.trim().toLowerCase();
|
|
3849
|
-
return
|
|
3636
|
+
return ii.test(e) ? ai.test(e) : !0;
|
|
3850
3637
|
}
|
|
3851
|
-
const
|
|
3852
|
-
function
|
|
3853
|
-
const e =
|
|
3854
|
-
if (e.hostname && (!e.protocol ||
|
|
3638
|
+
const en = ["http:", "https:", "mailto:"];
|
|
3639
|
+
function li(u) {
|
|
3640
|
+
const e = f0(u, !0);
|
|
3641
|
+
if (e.hostname && (!e.protocol || en.indexOf(e.protocol) >= 0))
|
|
3855
3642
|
try {
|
|
3856
|
-
e.hostname =
|
|
3643
|
+
e.hostname = un.toASCII(e.hostname);
|
|
3857
3644
|
} catch {
|
|
3858
3645
|
}
|
|
3859
|
-
return
|
|
3646
|
+
return ce(l0(e));
|
|
3860
3647
|
}
|
|
3861
|
-
function
|
|
3862
|
-
const e =
|
|
3863
|
-
if (e.hostname && (!e.protocol ||
|
|
3648
|
+
function fi(u) {
|
|
3649
|
+
const e = f0(u, !0);
|
|
3650
|
+
if (e.hostname && (!e.protocol || en.indexOf(e.protocol) >= 0))
|
|
3864
3651
|
try {
|
|
3865
|
-
e.hostname =
|
|
3652
|
+
e.hostname = un.toUnicode(e.hostname);
|
|
3866
3653
|
} catch {
|
|
3867
3654
|
}
|
|
3868
|
-
return
|
|
3655
|
+
return Bu(l0(e), Bu.defaultChars + "%");
|
|
3869
3656
|
}
|
|
3870
3657
|
function Q(u, e) {
|
|
3871
3658
|
if (!(this instanceof Q))
|
|
3872
3659
|
return new Q(u, e);
|
|
3873
|
-
e || h0(u) || (e = u || {}, u = "default"), this.inline = new
|
|
3660
|
+
e || h0(u) || (e = u || {}, u = "default"), this.inline = new ie(), this.block = new ve(), this.core = new b0(), this.renderer = new qu(), this.linkify = new X(), this.validateLink = si, this.normalizeLink = li, this.normalizeLinkText = fi, this.utils = dc, this.helpers = Se({}, _c), this.options = {}, this.configure(u), e && this.set(e);
|
|
3874
3661
|
}
|
|
3875
3662
|
Q.prototype.set = function(u) {
|
|
3876
|
-
return
|
|
3663
|
+
return Se(this.options, u), this;
|
|
3877
3664
|
};
|
|
3878
3665
|
Q.prototype.configure = function(u) {
|
|
3879
3666
|
const e = this;
|
|
3880
3667
|
if (h0(u)) {
|
|
3881
3668
|
const t = u;
|
|
3882
|
-
if (u =
|
|
3669
|
+
if (u = oi[t], !u)
|
|
3883
3670
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3884
3671
|
}
|
|
3885
3672
|
if (!u)
|
|
@@ -3932,15 +3719,13 @@ Q.prototype.parseInline = function(u, e) {
|
|
|
3932
3719
|
Q.prototype.renderInline = function(u, e) {
|
|
3933
3720
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3934
3721
|
};
|
|
3935
|
-
class
|
|
3936
|
-
constructor(
|
|
3722
|
+
class Ri extends a0 {
|
|
3723
|
+
constructor(t, n) {
|
|
3937
3724
|
super();
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
Iu(this, "styleOptions");
|
|
3943
|
-
this.mdConfig = t || {}, this.dompurifyConfig = n || {}, this.md = Q(this.mdConfig), this.sanitizeDisabled = r ?? !1, this.styleOptions = c ?? {};
|
|
3725
|
+
be(this, "mdConfig");
|
|
3726
|
+
be(this, "dompurifyConfig");
|
|
3727
|
+
be(this, "md");
|
|
3728
|
+
this.mdConfig = t || {}, this.dompurifyConfig = n || {}, this.md = Q(this.mdConfig);
|
|
3944
3729
|
}
|
|
3945
3730
|
render(t) {
|
|
3946
3731
|
let n = "";
|
|
@@ -3949,49 +3734,213 @@ class Pi extends s0 {
|
|
|
3949
3734
|
} catch (c) {
|
|
3950
3735
|
console.error("Error rendering markdown:", c), n = t.content ?? "";
|
|
3951
3736
|
}
|
|
3952
|
-
if (this.
|
|
3953
|
-
return console.warn("HTML sanitization is disabled, potential XSS risk"),
|
|
3954
|
-
const r =
|
|
3955
|
-
return
|
|
3737
|
+
if (this.dompurifyConfig.disable)
|
|
3738
|
+
return console.warn("HTML sanitization is disabled, potential XSS risk"), $0("div", { innerHTML: n });
|
|
3739
|
+
const r = yr.sanitize(n, this.dompurifyConfig);
|
|
3740
|
+
return $0("div", { innerHTML: r });
|
|
3956
3741
|
}
|
|
3957
3742
|
}
|
|
3958
|
-
const
|
|
3743
|
+
const di = /* @__PURE__ */ Cu({
|
|
3744
|
+
inheritAttrs: !1,
|
|
3745
|
+
__name: "ContentItem",
|
|
3746
|
+
props: {
|
|
3747
|
+
type: {}
|
|
3748
|
+
},
|
|
3749
|
+
setup(u) {
|
|
3750
|
+
const e = j0(Dt, Ct), t = j0(yt, s0), n = u, r = gn(), c = (a) => {
|
|
3751
|
+
const s = { ...r, ...n }, f = e.get(a) || t;
|
|
3752
|
+
return typeof f == "function" ? { isComponent: !1, vNodeOrComponent: f(s) } : f instanceof a0 ? { isComponent: !1, vNodeOrComponent: f.render(s) } : { isComponent: !0, vNodeOrComponent: f };
|
|
3753
|
+
}, { isComponent: i, vNodeOrComponent: o } = c(n.type);
|
|
3754
|
+
return (a, s) => bu(i) ? (S(), uu(mu(bu(o)), Ce(Ou({ key: 0 }, { ...n, ...bu(r) })), null, 16)) : (S(), uu(mu(bu(o)), { key: 1 }));
|
|
3755
|
+
}
|
|
3756
|
+
}), hi = {
|
|
3757
|
+
key: 0,
|
|
3758
|
+
class: "tr-bubble__avatar"
|
|
3759
|
+
}, pi = { class: "tr-bubble__content-wrapper" }, bi = {
|
|
3760
|
+
key: 0,
|
|
3761
|
+
class: "tr-bubble__content-items"
|
|
3762
|
+
}, _i = {
|
|
3763
|
+
key: 1,
|
|
3764
|
+
class: "tr-bubble__body-text"
|
|
3765
|
+
}, mi = {
|
|
3766
|
+
key: 2,
|
|
3767
|
+
class: "tr-bubble__aborted"
|
|
3768
|
+
}, xi = {
|
|
3769
|
+
key: 3,
|
|
3770
|
+
class: "tr-bubble__footer"
|
|
3771
|
+
}, gi = /* @__PURE__ */ Cu({
|
|
3772
|
+
__name: "Bubble",
|
|
3773
|
+
props: {
|
|
3774
|
+
content: { default: "" },
|
|
3775
|
+
id: {},
|
|
3776
|
+
role: {},
|
|
3777
|
+
loading: { type: Boolean },
|
|
3778
|
+
aborted: { type: Boolean },
|
|
3779
|
+
placement: { default: "start" },
|
|
3780
|
+
avatar: {},
|
|
3781
|
+
shape: { default: "corner" },
|
|
3782
|
+
contentRenderer: {},
|
|
3783
|
+
hidden: { type: Boolean },
|
|
3784
|
+
maxWidth: { default: "80%" }
|
|
3785
|
+
},
|
|
3786
|
+
setup(u) {
|
|
3787
|
+
const e = u, t = kn(), n = Eu(() => {
|
|
3788
|
+
const o = e.contentRenderer;
|
|
3789
|
+
return o ? typeof o == "function" ? { isComponent: !1, vNodeOrComponent: o(e) } : o instanceof a0 ? { isComponent: !1, vNodeOrComponent: o.render(e) } : { isComponent: !0, vNodeOrComponent: o } : null;
|
|
3790
|
+
}), r = Eu(() => Array.isArray(e.content) ? "" : e.content), c = Eu(() => Array.isArray(e.content) ? e.content : []), i = Eu(() => e.placement === "start");
|
|
3791
|
+
return (o, a) => (S(), H("div", {
|
|
3792
|
+
class: Mu([
|
|
3793
|
+
"tr-bubble",
|
|
3794
|
+
{
|
|
3795
|
+
"placement-start": i.value,
|
|
3796
|
+
"placement-end": !i.value
|
|
3797
|
+
}
|
|
3798
|
+
]),
|
|
3799
|
+
style: En({ maxWidth: bu(yn)(e.maxWidth) })
|
|
3800
|
+
}, [
|
|
3801
|
+
e.avatar ? (S(), H("div", hi, [
|
|
3802
|
+
(S(), uu(mu(e.avatar)))
|
|
3803
|
+
])) : Lu("", !0),
|
|
3804
|
+
Z("div", pi, [
|
|
3805
|
+
e.loading ? ke(o.$slots, "loading", {
|
|
3806
|
+
key: 0,
|
|
3807
|
+
bubbleProps: e
|
|
3808
|
+
}, () => [
|
|
3809
|
+
Z("div", {
|
|
3810
|
+
class: Mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
3811
|
+
}, a[0] || (a[0] = [
|
|
3812
|
+
Z("img", {
|
|
3813
|
+
src: Dn,
|
|
3814
|
+
alt: "loading",
|
|
3815
|
+
class: "tr-bubble__loading"
|
|
3816
|
+
}, null, -1)
|
|
3817
|
+
]), 2)
|
|
3818
|
+
], !0) : (S(), H("div", {
|
|
3819
|
+
key: 1,
|
|
3820
|
+
class: Mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
3821
|
+
}, [
|
|
3822
|
+
c.value.length ? (S(), H("div", bi, [
|
|
3823
|
+
(S(!0), H(De, null, Ee(c.value, (s, f) => (S(), uu(bu(di), Ou({ key: f }, { ref_for: !0 }, s), null, 16))), 128))
|
|
3824
|
+
])) : ke(o.$slots, "default", {
|
|
3825
|
+
key: 1,
|
|
3826
|
+
bubbleProps: e
|
|
3827
|
+
}, () => [
|
|
3828
|
+
n.value ? (S(), H(De, { key: 0 }, [
|
|
3829
|
+
n.value.isComponent ? (S(), uu(mu(n.value.vNodeOrComponent), Ce(Ou({ key: 0 }, e)), null, 16)) : (S(), uu(mu(n.value.vNodeOrComponent), { key: 1 }))
|
|
3830
|
+
], 64)) : (S(), H("span", _i, Pu(r.value), 1))
|
|
3831
|
+
], !0),
|
|
3832
|
+
e.aborted ? (S(), H("span", mi, "(用户停止)")) : Lu("", !0),
|
|
3833
|
+
t.footer ? (S(), H("div", xi, [
|
|
3834
|
+
ke(o.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
3835
|
+
])) : Lu("", !0)
|
|
3836
|
+
], 2))
|
|
3837
|
+
])
|
|
3838
|
+
], 6));
|
|
3839
|
+
}
|
|
3840
|
+
}), Au = /* @__PURE__ */ re(gi, [["__scopeId", "data-v-95b9962c"]]), ki = /* @__PURE__ */ Cu({
|
|
3841
|
+
__name: "BubbleList",
|
|
3842
|
+
props: {
|
|
3843
|
+
items: {},
|
|
3844
|
+
roles: {},
|
|
3845
|
+
loading: { type: Boolean },
|
|
3846
|
+
loadingRole: {},
|
|
3847
|
+
autoScroll: { type: Boolean }
|
|
3848
|
+
},
|
|
3849
|
+
setup(u) {
|
|
3850
|
+
const e = u, t = i0(null), { y: n } = Rn(t, {
|
|
3851
|
+
behavior: "smooth",
|
|
3852
|
+
throttle: 100
|
|
3853
|
+
}), r = Eu(() => e.items.at(-1));
|
|
3854
|
+
An(
|
|
3855
|
+
[() => e.items.length, () => {
|
|
3856
|
+
var a;
|
|
3857
|
+
return (a = r.value) == null ? void 0 : a.content;
|
|
3858
|
+
}],
|
|
3859
|
+
() => {
|
|
3860
|
+
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
3861
|
+
},
|
|
3862
|
+
{ deep: !0 }
|
|
3863
|
+
);
|
|
3864
|
+
const c = (a) => {
|
|
3865
|
+
var h;
|
|
3866
|
+
const s = a.role ? ((h = e.roles) == null ? void 0 : h[a.role]) || {} : {}, { slots: f, ...d } = s, { slots: _, ...p } = a;
|
|
3867
|
+
return { ...d, ...p };
|
|
3868
|
+
}, i = (a) => {
|
|
3869
|
+
var f;
|
|
3870
|
+
return { ...(a.role ? ((f = e.roles) == null ? void 0 : f[a.role]) || {} : {}).slots, ...a.slots };
|
|
3871
|
+
}, o = Eu(() => {
|
|
3872
|
+
var f;
|
|
3873
|
+
if (!(e.loading && e.loadingRole && ((f = e.roles) != null && f[e.loadingRole])))
|
|
3874
|
+
return null;
|
|
3875
|
+
const { slots: a, ...s } = e.roles[e.loadingRole];
|
|
3876
|
+
return { props: { ...s, loading: !0 }, slots: a };
|
|
3877
|
+
});
|
|
3878
|
+
return (a, s) => (S(), H("div", {
|
|
3879
|
+
class: "tr-bubble-list",
|
|
3880
|
+
ref_key: "scrollContainerRef",
|
|
3881
|
+
ref: t
|
|
3882
|
+
}, [
|
|
3883
|
+
(S(!0), H(De, null, Ee(e.items, (f, d) => (S(), H(De, {
|
|
3884
|
+
key: f.id || d
|
|
3885
|
+
}, [
|
|
3886
|
+
f.hidden ? Lu("", !0) : (S(), uu(Au, Ou({
|
|
3887
|
+
key: 0,
|
|
3888
|
+
ref_for: !0
|
|
3889
|
+
}, c(f)), G0({ _: 2 }, [
|
|
3890
|
+
Ee(i(f), (_, p) => ({
|
|
3891
|
+
name: p,
|
|
3892
|
+
fn: W0((h) => [
|
|
3893
|
+
(S(), uu(mu(_), Ou({ ref_for: !0 }, h), null, 16))
|
|
3894
|
+
])
|
|
3895
|
+
}))
|
|
3896
|
+
]), 1040))
|
|
3897
|
+
], 64))), 128)),
|
|
3898
|
+
o.value ? (S(), uu(Au, Ce(Ou({ key: 0 }, o.value.props)), G0({ _: 2 }, [
|
|
3899
|
+
Ee(o.value.slots, (f, d) => ({
|
|
3900
|
+
name: d,
|
|
3901
|
+
fn: W0((_) => [
|
|
3902
|
+
(S(), uu(mu(f), Ce(Cn(_)), null, 16))
|
|
3903
|
+
])
|
|
3904
|
+
}))
|
|
3905
|
+
]), 1040)) : Lu("", !0)
|
|
3906
|
+
], 512));
|
|
3907
|
+
}
|
|
3908
|
+
}), te = /* @__PURE__ */ re(ki, [["__scopeId", "data-v-e1e12abe"]]), ne = /* @__PURE__ */ Cu({
|
|
3959
3909
|
__name: "BubbleProvider",
|
|
3960
3910
|
props: {
|
|
3961
|
-
|
|
3911
|
+
contentRenderers: { default: () => ({}) }
|
|
3962
3912
|
},
|
|
3963
3913
|
setup(u) {
|
|
3964
3914
|
const e = u, t = /* @__PURE__ */ new Map();
|
|
3965
|
-
for (const [n, r] of
|
|
3915
|
+
for (const [n, r] of Ct.entries())
|
|
3966
3916
|
t.set(n, r);
|
|
3967
|
-
for (const [n, r] of Object.entries(e.
|
|
3917
|
+
for (const [n, r] of Object.entries(e.contentRenderers))
|
|
3968
3918
|
t.set(n, r);
|
|
3969
|
-
return
|
|
3919
|
+
return Z0(Dt, t), Z0(yt, s0), (n, r) => ke(n.$slots, "default");
|
|
3970
3920
|
}
|
|
3971
3921
|
});
|
|
3972
|
-
|
|
3973
|
-
const
|
|
3974
|
-
u.component(
|
|
3975
|
-
};
|
|
3976
|
-
|
|
3977
|
-
const
|
|
3978
|
-
|
|
3979
|
-
const
|
|
3922
|
+
Au.name = "TrBubble";
|
|
3923
|
+
const Ei = function(u) {
|
|
3924
|
+
u.component(Au.name, Au);
|
|
3925
|
+
};
|
|
3926
|
+
Au.install = Ei;
|
|
3927
|
+
const Ii = Au;
|
|
3928
|
+
te.name = "TrBubbleList";
|
|
3929
|
+
const Ai = function(u) {
|
|
3930
|
+
u.component(te.name, te);
|
|
3931
|
+
};
|
|
3932
|
+
te.install = Ai;
|
|
3933
|
+
const Mi = te;
|
|
3934
|
+
ne.name = "TrBubbleProvider";
|
|
3935
|
+
const Ci = function(u) {
|
|
3980
3936
|
u.component(ne.name, ne);
|
|
3981
3937
|
};
|
|
3982
|
-
ne.install =
|
|
3983
|
-
const
|
|
3984
|
-
ae.name = "TrBubbleProvider";
|
|
3985
|
-
const Si = function(u) {
|
|
3986
|
-
u.component(ae.name, ae);
|
|
3987
|
-
};
|
|
3988
|
-
ae.install = Si;
|
|
3989
|
-
const qi = ae;
|
|
3938
|
+
ne.install = Ci;
|
|
3939
|
+
const Li = ne;
|
|
3990
3940
|
export {
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
qi as BubbleProvider
|
|
3941
|
+
Ii as Bubble,
|
|
3942
|
+
a0 as BubbleContentClassRenderer,
|
|
3943
|
+
Mi as BubbleList,
|
|
3944
|
+
Ri as BubbleMarkdownContentRenderer,
|
|
3945
|
+
Li as BubbleProvider
|
|
3997
3946
|
};
|