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