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