@opentiny/tiny-robot 0.3.0-rc.4 → 0.3.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-group/index.js +1 -1
- package/dist/attachments/index.js +216 -216
- package/dist/base-popper/index.js +1 -1
- package/dist/bubble/index.js +1137 -1079
- package/dist/drag-overlay/index.js +16 -16
- package/dist/dropdown-menu/index.js +2 -2
- package/dist/flow-layout-buttons/index.js +2 -2
- package/dist/history/index.js +2 -224
- package/dist/index.d.ts +161 -96
- package/dist/index.js +19 -17
- package/dist/index2.js +282 -691
- package/dist/index3.js +697 -148
- package/dist/index4.js +161 -0
- package/dist/mcp-add-form/index.js +1 -1
- package/dist/mcp-server-picker/index.js +149 -149
- package/dist/prompts/index.js +5 -5
- package/dist/sender/index.js +1076 -953
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +39 -39
- package/dist/suggestion-popover/index.js +15 -15
- package/dist/useSlotRefs.js +1 -1
- package/dist/utils.js +1 -1
- 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
|
|
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 In = { class: "tr-bubble__step-text" }, Mn = { 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
|
-
|
|
25
|
-
class:
|
|
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
|
+
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
|
-
|
|
29
|
+
Z("div", Nn, [
|
|
30
|
+
mn(Z("div", { class: "tr-bubble__step-text-content" }, Cu(e.content), 513), [
|
|
31
31
|
[_n, t.value]
|
|
32
32
|
])
|
|
33
33
|
])
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
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,12 +55,12 @@ const In = { class: "tr-bubble__step-text" }, Mn = { 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 =
|
|
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 = "";
|
|
@@ -78,73 +78,77 @@ const In = { class: "tr-bubble__step-text" }, Mn = { class: "tr-bubble__step-tex
|
|
|
78
78
|
}
|
|
79
79
|
), a;
|
|
80
80
|
};
|
|
81
|
-
return (c, a) => (S(),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(S(), eu(
|
|
85
|
-
class:
|
|
81
|
+
return (c, a) => (S(), H("div", $n, [
|
|
82
|
+
Z("div", jn, [
|
|
83
|
+
Z("div", Gn, [
|
|
84
|
+
(S(), eu(_u(r.value.icon), {
|
|
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
|
-
|
|
94
|
-
class:
|
|
92
|
+
Z("div", Vn, [
|
|
93
|
+
Dt(l0(wn), {
|
|
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
|
|
129
|
-
|
|
130
|
-
|
|
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 };
|
|
133
|
+
}, o = X(() => r(n.item.type));
|
|
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,99 +156,103 @@ j || (j = function(e) {
|
|
|
152
156
|
Q || (Q = function(e) {
|
|
153
157
|
return e;
|
|
154
158
|
});
|
|
155
|
-
|
|
156
|
-
|
|
159
|
+
r0 || (r0 = function(e, t) {
|
|
160
|
+
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++)
|
|
161
|
+
r[o - 2] = arguments[o];
|
|
162
|
+
return e.apply(t, r);
|
|
157
163
|
});
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
o0 || (o0 = function(e) {
|
|
165
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
166
|
+
n[r - 1] = arguments[r];
|
|
167
|
+
return new e(...n);
|
|
160
168
|
});
|
|
161
|
-
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);
|
|
162
170
|
function G(u) {
|
|
163
171
|
return function(e) {
|
|
164
172
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
165
173
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
166
174
|
n[r - 1] = arguments[r];
|
|
167
|
-
return
|
|
175
|
+
return r0(u, e, n);
|
|
168
176
|
};
|
|
169
177
|
}
|
|
170
|
-
function
|
|
178
|
+
function hr(u) {
|
|
171
179
|
return function() {
|
|
172
180
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
173
181
|
t[n] = arguments[n];
|
|
174
|
-
return
|
|
182
|
+
return o0(u, t);
|
|
175
183
|
};
|
|
176
184
|
}
|
|
177
185
|
function F(u, e) {
|
|
178
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
179
|
-
|
|
186
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ae;
|
|
187
|
+
Q0 && Q0(u, null);
|
|
180
188
|
let n = e.length;
|
|
181
189
|
for (; n--; ) {
|
|
182
190
|
let r = e[n];
|
|
183
191
|
if (typeof r == "string") {
|
|
184
192
|
const o = t(r);
|
|
185
|
-
o !== r && (
|
|
193
|
+
o !== r && (ir(e) || (e[n] = o), r = o);
|
|
186
194
|
}
|
|
187
195
|
u[r] = !0;
|
|
188
196
|
}
|
|
189
197
|
return u;
|
|
190
198
|
}
|
|
191
|
-
function
|
|
199
|
+
function br(u) {
|
|
192
200
|
for (let e = 0; e < u.length; e++)
|
|
193
201
|
uu(u, e) || (u[e] = null);
|
|
194
202
|
return u;
|
|
195
203
|
}
|
|
196
204
|
function du(u) {
|
|
197
|
-
const e =
|
|
198
|
-
for (const [t, n] of
|
|
199
|
-
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);
|
|
200
208
|
return e;
|
|
201
209
|
}
|
|
202
|
-
function
|
|
210
|
+
function Xu(u, e) {
|
|
203
211
|
for (; u !== null; ) {
|
|
204
|
-
const n =
|
|
212
|
+
const n = sr(u, e);
|
|
205
213
|
if (n) {
|
|
206
214
|
if (n.get)
|
|
207
215
|
return G(n.get);
|
|
208
216
|
if (typeof n.value == "function")
|
|
209
217
|
return G(n.value);
|
|
210
218
|
}
|
|
211
|
-
u =
|
|
219
|
+
u = ar(u);
|
|
212
220
|
}
|
|
213
221
|
function t() {
|
|
214
222
|
return null;
|
|
215
223
|
}
|
|
216
224
|
return t;
|
|
217
225
|
}
|
|
218
|
-
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(
|
|
219
227
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
220
228
|
// eslint-disable-line no-useless-escape
|
|
221
|
-
),
|
|
229
|
+
), Cr = Q(/^(?:\w+script|data):/i), Dr = Q(
|
|
222
230
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
223
231
|
// eslint-disable-line no-control-regex
|
|
224
|
-
),
|
|
225
|
-
var
|
|
232
|
+
), vt = Q(/^html$/i), yr = Q(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
233
|
+
var rt = /* @__PURE__ */ Object.freeze({
|
|
226
234
|
__proto__: null,
|
|
227
|
-
ARIA_ATTR:
|
|
228
|
-
ATTR_WHITESPACE:
|
|
229
|
-
CUSTOM_ELEMENT:
|
|
230
|
-
DATA_ATTR:
|
|
231
|
-
DOCTYPE_NAME:
|
|
232
|
-
ERB_EXPR:
|
|
233
|
-
IS_ALLOWED_URI:
|
|
234
|
-
IS_SCRIPT_OR_DATA:
|
|
235
|
-
MUSTACHE_EXPR:
|
|
236
|
-
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
|
|
237
245
|
});
|
|
238
|
-
const
|
|
246
|
+
const Ju = {
|
|
239
247
|
element: 1,
|
|
240
248
|
text: 3,
|
|
241
249
|
// Deprecated
|
|
242
250
|
progressingInstruction: 7,
|
|
243
251
|
comment: 8,
|
|
244
252
|
document: 9
|
|
245
|
-
},
|
|
253
|
+
}, Fr = function() {
|
|
246
254
|
return typeof window > "u" ? null : window;
|
|
247
|
-
},
|
|
255
|
+
}, Tr = function(e, t) {
|
|
248
256
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
249
257
|
return null;
|
|
250
258
|
let n = null;
|
|
@@ -263,7 +271,7 @@ const Yu = {
|
|
|
263
271
|
} catch {
|
|
264
272
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
265
273
|
}
|
|
266
|
-
},
|
|
274
|
+
}, ot = function() {
|
|
267
275
|
return {
|
|
268
276
|
afterSanitizeAttributes: [],
|
|
269
277
|
afterSanitizeElements: [],
|
|
@@ -276,10 +284,10 @@ const Yu = {
|
|
|
276
284
|
uponSanitizeShadowNode: []
|
|
277
285
|
};
|
|
278
286
|
};
|
|
279
|
-
function
|
|
280
|
-
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
281
|
-
const e = (g) =>
|
|
282
|
-
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)
|
|
283
291
|
return e.isSupported = !1, e;
|
|
284
292
|
let {
|
|
285
293
|
document: t
|
|
@@ -292,41 +300,41 @@ function vt() {
|
|
|
292
300
|
NodeFilter: s,
|
|
293
301
|
NamedNodeMap: d = u.NamedNodeMap || u.MozNamedAttrMap,
|
|
294
302
|
HTMLFormElement: f,
|
|
295
|
-
DOMParser:
|
|
296
|
-
trustedTypes:
|
|
297
|
-
} = u,
|
|
303
|
+
DOMParser: m,
|
|
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");
|
|
298
306
|
if (typeof i == "function") {
|
|
299
307
|
const g = t.createElement("template");
|
|
300
308
|
g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
|
|
301
309
|
}
|
|
302
|
-
let
|
|
310
|
+
let _, A = "";
|
|
303
311
|
const {
|
|
304
312
|
implementation: y,
|
|
305
|
-
createNodeIterator:
|
|
306
|
-
createDocumentFragment:
|
|
313
|
+
createNodeIterator: M,
|
|
314
|
+
createDocumentFragment: Y,
|
|
307
315
|
getElementsByTagName: nu
|
|
308
316
|
} = t, {
|
|
309
317
|
importNode: gu
|
|
310
318
|
} = n;
|
|
311
|
-
let
|
|
312
|
-
e.isSupported = typeof
|
|
319
|
+
let L = ot();
|
|
320
|
+
e.isSupported = typeof St == "function" && typeof k == "function" && y && y.createHTMLDocument !== void 0;
|
|
313
321
|
const {
|
|
314
|
-
MUSTACHE_EXPR:
|
|
315
|
-
ERB_EXPR:
|
|
316
|
-
TMPLIT_EXPR:
|
|
317
|
-
DATA_ATTR:
|
|
318
|
-
ARIA_ATTR:
|
|
319
|
-
IS_SCRIPT_OR_DATA:
|
|
320
|
-
ATTR_WHITESPACE:
|
|
321
|
-
CUSTOM_ELEMENT:
|
|
322
|
-
} =
|
|
322
|
+
MUSTACHE_EXPR: Hu,
|
|
323
|
+
ERB_EXPR: $u,
|
|
324
|
+
TMPLIT_EXPR: Fu,
|
|
325
|
+
DATA_ATTR: pu,
|
|
326
|
+
ARIA_ATTR: Ie,
|
|
327
|
+
IS_SCRIPT_OR_DATA: nn,
|
|
328
|
+
ATTR_WHITESPACE: E0,
|
|
329
|
+
CUSTOM_ELEMENT: rn
|
|
330
|
+
} = rt;
|
|
323
331
|
let {
|
|
324
|
-
IS_ALLOWED_URI:
|
|
325
|
-
} =
|
|
326
|
-
const
|
|
332
|
+
IS_ALLOWED_URI: A0
|
|
333
|
+
} = rt, O = null;
|
|
334
|
+
const C0 = F({}, [...ut, ...We, ...Ze, ...Ve, ...et]);
|
|
327
335
|
let z = null;
|
|
328
|
-
const
|
|
329
|
-
let R = Object.seal(
|
|
336
|
+
const D0 = F({}, [...tt, ...Ye, ...nt, ...xe]);
|
|
337
|
+
let R = Object.seal(n0(null, {
|
|
330
338
|
tagNameCheck: {
|
|
331
339
|
writable: !0,
|
|
332
340
|
configurable: !1,
|
|
@@ -345,47 +353,62 @@ function vt() {
|
|
|
345
353
|
enumerable: !0,
|
|
346
354
|
value: !1
|
|
347
355
|
}
|
|
348
|
-
})),
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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) {
|
|
364
387
|
return l instanceof RegExp || l instanceof Function;
|
|
365
|
-
},
|
|
388
|
+
}, Ue = function() {
|
|
366
389
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
367
|
-
if (!(
|
|
368
|
-
if ((!l || typeof l != "object") && (l = {}), l = du(l),
|
|
369
|
-
|
|
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) {
|
|
370
393
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
371
|
-
throw
|
|
394
|
+
throw Yu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
372
395
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
373
|
-
throw
|
|
374
|
-
|
|
396
|
+
throw Yu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
397
|
+
_ = l.TRUSTED_TYPES_POLICY, A = _.createHTML("");
|
|
375
398
|
} else
|
|
376
|
-
|
|
377
|
-
j && j(l),
|
|
399
|
+
_ === void 0 && (_ = Tr(h, r)), _ !== null && typeof A == "string" && (A = _.createHTML(""));
|
|
400
|
+
j && j(l), Mu = l;
|
|
378
401
|
}
|
|
379
|
-
},
|
|
402
|
+
}, O0 = F({}, [...We, ...Ze, ...mr]), N0 = F({}, [...Ve, ..._r]), dn = function(l) {
|
|
380
403
|
let b = k(l);
|
|
381
404
|
(!b || !b.tagName) && (b = {
|
|
382
|
-
namespaceURI:
|
|
405
|
+
namespaceURI: Iu,
|
|
383
406
|
tagName: "template"
|
|
384
407
|
});
|
|
385
|
-
const x =
|
|
386
|
-
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;
|
|
387
410
|
}, ru = function(l) {
|
|
388
|
-
|
|
411
|
+
Zu(e.removed, {
|
|
389
412
|
element: l
|
|
390
413
|
});
|
|
391
414
|
try {
|
|
@@ -393,20 +416,20 @@ function vt() {
|
|
|
393
416
|
} catch {
|
|
394
417
|
D(l);
|
|
395
418
|
}
|
|
396
|
-
},
|
|
419
|
+
}, Eu = function(l, b) {
|
|
397
420
|
try {
|
|
398
|
-
|
|
421
|
+
Zu(e.removed, {
|
|
399
422
|
attribute: b.getAttributeNode(l),
|
|
400
423
|
from: b
|
|
401
424
|
});
|
|
402
425
|
} catch {
|
|
403
|
-
|
|
426
|
+
Zu(e.removed, {
|
|
404
427
|
attribute: null,
|
|
405
428
|
from: b
|
|
406
429
|
});
|
|
407
430
|
}
|
|
408
431
|
if (b.removeAttribute(l), l === "is")
|
|
409
|
-
if (
|
|
432
|
+
if (wu || fe)
|
|
410
433
|
try {
|
|
411
434
|
ru(b);
|
|
412
435
|
} catch {
|
|
@@ -416,98 +439,100 @@ function vt() {
|
|
|
416
439
|
b.setAttribute(l, "");
|
|
417
440
|
} catch {
|
|
418
441
|
}
|
|
419
|
-
},
|
|
442
|
+
}, P0 = function(l) {
|
|
420
443
|
let b = null, x = null;
|
|
421
|
-
if (
|
|
444
|
+
if (Ne)
|
|
422
445
|
l = "<remove></remove>" + l;
|
|
423
446
|
else {
|
|
424
|
-
const
|
|
425
|
-
x =
|
|
447
|
+
const I = Ge(l, /^[\r\n\t ]+/);
|
|
448
|
+
x = I && I[0];
|
|
426
449
|
}
|
|
427
|
-
|
|
428
|
-
const v =
|
|
429
|
-
if (
|
|
450
|
+
Wu === "application/xhtml+xml" && Iu === su && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
451
|
+
const v = _ ? _.createHTML(l) : l;
|
|
452
|
+
if (Iu === su)
|
|
430
453
|
try {
|
|
431
|
-
b = new
|
|
454
|
+
b = new m().parseFromString(v, Wu);
|
|
432
455
|
} catch {
|
|
433
456
|
}
|
|
434
457
|
if (!b || !b.documentElement) {
|
|
435
|
-
b = y.createDocument(
|
|
458
|
+
b = y.createDocument(Iu, "template", null);
|
|
436
459
|
try {
|
|
437
|
-
b.documentElement.innerHTML =
|
|
460
|
+
b.documentElement.innerHTML = ze ? A : v;
|
|
438
461
|
} catch {
|
|
439
462
|
}
|
|
440
463
|
}
|
|
441
|
-
const
|
|
442
|
-
return l && x &&
|
|
443
|
-
},
|
|
444
|
-
return
|
|
464
|
+
const U = b.body || b.documentElement;
|
|
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) {
|
|
467
|
+
return M.call(
|
|
445
468
|
l.ownerDocument || l,
|
|
446
469
|
l,
|
|
447
470
|
// eslint-disable-next-line no-bitwise
|
|
448
471
|
s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
|
|
449
472
|
null
|
|
450
473
|
);
|
|
451
|
-
},
|
|
474
|
+
}, He = function(l) {
|
|
452
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");
|
|
453
|
-
},
|
|
476
|
+
}, z0 = function(l) {
|
|
454
477
|
return typeof c == "function" && l instanceof c;
|
|
455
478
|
};
|
|
456
479
|
function lu(g, l, b) {
|
|
457
|
-
|
|
458
|
-
x.call(e, l, b,
|
|
480
|
+
_e(g, (x) => {
|
|
481
|
+
x.call(e, l, b, Mu);
|
|
459
482
|
});
|
|
460
483
|
}
|
|
461
|
-
const
|
|
484
|
+
const q0 = function(l) {
|
|
462
485
|
let b = null;
|
|
463
|
-
if (lu(
|
|
486
|
+
if (lu(L.beforeSanitizeElements, l, null), He(l))
|
|
464
487
|
return ru(l), !0;
|
|
465
488
|
const x = N(l.nodeName);
|
|
466
|
-
if (lu(
|
|
489
|
+
if (lu(L.uponSanitizeElement, l, {
|
|
467
490
|
tagName: x,
|
|
468
491
|
allowedTags: O
|
|
469
|
-
}),
|
|
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))
|
|
470
493
|
return ru(l), !0;
|
|
471
|
-
if (!O[x] ||
|
|
472
|
-
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)))
|
|
473
496
|
return !1;
|
|
474
|
-
if (
|
|
475
|
-
const v = k(l) || l.parentNode,
|
|
476
|
-
if (
|
|
477
|
-
const
|
|
478
|
-
for (let W =
|
|
479
|
-
const fu = C(
|
|
497
|
+
if (Pe && !Ru[x]) {
|
|
498
|
+
const v = k(l) || l.parentNode, U = E(l) || l.childNodes;
|
|
499
|
+
if (U && v) {
|
|
500
|
+
const I = U.length;
|
|
501
|
+
for (let W = I - 1; W >= 0; --W) {
|
|
502
|
+
const fu = C(U[W], !0);
|
|
480
503
|
fu.__removalCount = (l.__removalCount || 0) + 1, v.insertBefore(fu, T(l));
|
|
481
504
|
}
|
|
482
505
|
}
|
|
483
506
|
}
|
|
484
507
|
return ru(l), !0;
|
|
485
508
|
}
|
|
486
|
-
return l instanceof a && !
|
|
487
|
-
b =
|
|
488
|
-
}), 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, {
|
|
489
512
|
element: l.cloneNode()
|
|
490
|
-
}), l.textContent = b)), lu(
|
|
491
|
-
},
|
|
492
|
-
if (
|
|
513
|
+
}), l.textContent = b)), lu(L.afterSanitizeElements, l, null), !1);
|
|
514
|
+
}, U0 = function(l, b, x) {
|
|
515
|
+
if (S0 && (b === "id" || b === "name") && (x in t || x in fn))
|
|
493
516
|
return !1;
|
|
494
|
-
if (!(
|
|
495
|
-
if (!(
|
|
496
|
-
if (!
|
|
497
|
-
if (
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
if (!
|
|
507
|
-
if (
|
|
508
|
-
if (!(
|
|
509
|
-
if (x)
|
|
510
|
-
|
|
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
|
+
}
|
|
511
536
|
}
|
|
512
537
|
}
|
|
513
538
|
}
|
|
@@ -515,14 +540,14 @@ function vt() {
|
|
|
515
540
|
}
|
|
516
541
|
}
|
|
517
542
|
return !0;
|
|
518
|
-
},
|
|
519
|
-
return l !== "annotation-xml" &&
|
|
520
|
-
},
|
|
521
|
-
lu(
|
|
543
|
+
}, H0 = function(l) {
|
|
544
|
+
return l !== "annotation-xml" && Ge(l, rn);
|
|
545
|
+
}, $0 = function(l) {
|
|
546
|
+
lu(L.beforeSanitizeAttributes, l, null);
|
|
522
547
|
const {
|
|
523
548
|
attributes: b
|
|
524
549
|
} = l;
|
|
525
|
-
if (!b ||
|
|
550
|
+
if (!b || He(l))
|
|
526
551
|
return;
|
|
527
552
|
const x = {
|
|
528
553
|
attrName: "",
|
|
@@ -533,134 +558,138 @@ function vt() {
|
|
|
533
558
|
};
|
|
534
559
|
let v = b.length;
|
|
535
560
|
for (; v--; ) {
|
|
536
|
-
const
|
|
537
|
-
name:
|
|
561
|
+
const U = b[v], {
|
|
562
|
+
name: I,
|
|
538
563
|
namespaceURI: W,
|
|
539
564
|
value: fu
|
|
540
|
-
} =
|
|
541
|
-
let
|
|
542
|
-
if (x.attrName =
|
|
543
|
-
|
|
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)) {
|
|
568
|
+
Eu(I, l);
|
|
569
|
+
continue;
|
|
570
|
+
}
|
|
571
|
+
if (Lu === "attributename" && Ge(q, "href")) {
|
|
572
|
+
Eu(I, l);
|
|
544
573
|
continue;
|
|
545
574
|
}
|
|
546
575
|
if (x.forceKeepAttr)
|
|
547
576
|
continue;
|
|
548
577
|
if (!x.keepAttr) {
|
|
549
|
-
|
|
578
|
+
Eu(I, l);
|
|
550
579
|
continue;
|
|
551
580
|
}
|
|
552
|
-
if (!
|
|
553
|
-
|
|
581
|
+
if (!T0 && $(/\/>/i, q)) {
|
|
582
|
+
Eu(I, l);
|
|
554
583
|
continue;
|
|
555
584
|
}
|
|
556
|
-
|
|
557
|
-
|
|
585
|
+
Su && _e([Hu, $u, Fu], (G0) => {
|
|
586
|
+
q = Vu(q, G0, " ");
|
|
558
587
|
});
|
|
559
|
-
const
|
|
560
|
-
if (!
|
|
561
|
-
|
|
588
|
+
const j0 = N(l.nodeName);
|
|
589
|
+
if (!U0(j0, Lu, q)) {
|
|
590
|
+
Eu(I, l);
|
|
562
591
|
continue;
|
|
563
592
|
}
|
|
564
|
-
if (
|
|
565
|
-
switch (
|
|
593
|
+
if (_ && typeof h == "object" && typeof h.getAttributeType == "function" && !W)
|
|
594
|
+
switch (h.getAttributeType(j0, Lu)) {
|
|
566
595
|
case "TrustedHTML": {
|
|
567
|
-
|
|
596
|
+
q = _.createHTML(q);
|
|
568
597
|
break;
|
|
569
598
|
}
|
|
570
599
|
case "TrustedScriptURL": {
|
|
571
|
-
|
|
600
|
+
q = _.createScriptURL(q);
|
|
572
601
|
break;
|
|
573
602
|
}
|
|
574
603
|
}
|
|
575
|
-
if (
|
|
604
|
+
if (q !== $e)
|
|
576
605
|
try {
|
|
577
|
-
W ? l.setAttributeNS(W,
|
|
606
|
+
W ? l.setAttributeNS(W, I, q) : l.setAttribute(I, q), He(l) ? ru(l) : K0(e.removed);
|
|
578
607
|
} catch {
|
|
579
|
-
|
|
608
|
+
Eu(I, l);
|
|
580
609
|
}
|
|
581
610
|
}
|
|
582
|
-
lu(
|
|
583
|
-
},
|
|
611
|
+
lu(L.afterSanitizeAttributes, l, null);
|
|
612
|
+
}, pn = function g(l) {
|
|
584
613
|
let b = null;
|
|
585
|
-
const x =
|
|
586
|
-
for (lu(
|
|
587
|
-
lu(
|
|
588
|
-
lu(
|
|
614
|
+
const x = B0(l);
|
|
615
|
+
for (lu(L.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
|
|
616
|
+
lu(L.uponSanitizeShadowNode, b, null), q0(b), $0(b), b.content instanceof o && g(b.content);
|
|
617
|
+
lu(L.afterSanitizeShadowDOM, l, null);
|
|
589
618
|
};
|
|
590
619
|
return e.sanitize = function(g) {
|
|
591
|
-
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null,
|
|
592
|
-
if (
|
|
620
|
+
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null, U = null;
|
|
621
|
+
if (ze = !g, ze && (g = "<!-->"), typeof g != "string" && !z0(g))
|
|
593
622
|
if (typeof g.toString == "function") {
|
|
594
623
|
if (g = g.toString(), typeof g != "string")
|
|
595
|
-
throw
|
|
624
|
+
throw Yu("dirty is not a string, aborting");
|
|
596
625
|
} else
|
|
597
|
-
throw
|
|
626
|
+
throw Yu("toString is not a function");
|
|
598
627
|
if (!e.isSupported)
|
|
599
628
|
return g;
|
|
600
|
-
if (
|
|
629
|
+
if (Oe || Ue(l), e.removed = [], typeof g == "string" && (Gu = !1), Gu) {
|
|
601
630
|
if (g.nodeName) {
|
|
602
631
|
const fu = N(g.nodeName);
|
|
603
|
-
if (!O[fu] ||
|
|
604
|
-
throw
|
|
632
|
+
if (!O[fu] || ju[fu])
|
|
633
|
+
throw Yu("root node is forbidden and cannot be sanitized in-place");
|
|
605
634
|
}
|
|
606
635
|
} else if (g instanceof c)
|
|
607
|
-
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);
|
|
608
637
|
else {
|
|
609
|
-
if (!
|
|
638
|
+
if (!wu && !Su && !ku && // eslint-disable-next-line unicorn/prefer-includes
|
|
610
639
|
g.indexOf("<") === -1)
|
|
611
|
-
return
|
|
612
|
-
if (b =
|
|
613
|
-
return
|
|
614
|
-
}
|
|
615
|
-
b &&
|
|
616
|
-
const
|
|
617
|
-
for (; v =
|
|
618
|
-
|
|
619
|
-
if (
|
|
640
|
+
return _ && de ? _.createHTML(g) : g;
|
|
641
|
+
if (b = P0(g), !b)
|
|
642
|
+
return wu ? null : de ? A : "";
|
|
643
|
+
}
|
|
644
|
+
b && Ne && ru(b.firstChild);
|
|
645
|
+
const I = B0(Gu ? g : b);
|
|
646
|
+
for (; v = I.nextNode(); )
|
|
647
|
+
q0(v), $0(v), v.content instanceof o && pn(v.content);
|
|
648
|
+
if (Gu)
|
|
620
649
|
return g;
|
|
621
|
-
if (
|
|
622
|
-
if (
|
|
623
|
-
for (
|
|
624
|
-
|
|
650
|
+
if (wu) {
|
|
651
|
+
if (fe)
|
|
652
|
+
for (U = Y.call(b.ownerDocument); b.firstChild; )
|
|
653
|
+
U.appendChild(b.firstChild);
|
|
625
654
|
else
|
|
626
|
-
|
|
627
|
-
return (z.shadowroot || z.shadowrootmode) && (
|
|
655
|
+
U = b;
|
|
656
|
+
return (z.shadowroot || z.shadowrootmode) && (U = gu.call(n, U, !0)), U;
|
|
628
657
|
}
|
|
629
658
|
let W = ku ? b.outerHTML : b.innerHTML;
|
|
630
|
-
return ku && O["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name &&
|
|
631
|
-
` + W),
|
|
632
|
-
W =
|
|
633
|
-
}),
|
|
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;
|
|
634
663
|
}, e.setConfig = function() {
|
|
635
664
|
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
636
|
-
|
|
665
|
+
Ue(g), Oe = !0;
|
|
637
666
|
}, e.clearConfig = function() {
|
|
638
|
-
|
|
667
|
+
Mu = null, Oe = !1;
|
|
639
668
|
}, e.isValidAttribute = function(g, l, b) {
|
|
640
|
-
|
|
669
|
+
Mu || Ue({});
|
|
641
670
|
const x = N(g), v = N(l);
|
|
642
|
-
return
|
|
671
|
+
return U0(x, v, b);
|
|
643
672
|
}, e.addHook = function(g, l) {
|
|
644
|
-
typeof l == "function" &&
|
|
673
|
+
typeof l == "function" && Zu(L[g], l);
|
|
645
674
|
}, e.removeHook = function(g, l) {
|
|
646
675
|
if (l !== void 0) {
|
|
647
|
-
const b =
|
|
648
|
-
return b === -1 ? void 0 :
|
|
676
|
+
const b = lr(L[g], l);
|
|
677
|
+
return b === -1 ? void 0 : fr(L[g], b, 1)[0];
|
|
649
678
|
}
|
|
650
|
-
return
|
|
679
|
+
return K0(L[g]);
|
|
651
680
|
}, e.removeHooks = function(g) {
|
|
652
|
-
|
|
681
|
+
L[g] = [];
|
|
653
682
|
}, e.removeAllHooks = function() {
|
|
654
|
-
|
|
683
|
+
L = ot();
|
|
655
684
|
}, e;
|
|
656
685
|
}
|
|
657
|
-
var
|
|
658
|
-
const
|
|
659
|
-
function
|
|
660
|
-
let e =
|
|
686
|
+
var Sr = Rt();
|
|
687
|
+
const ct = {};
|
|
688
|
+
function wr(u) {
|
|
689
|
+
let e = ct[u];
|
|
661
690
|
if (e)
|
|
662
691
|
return e;
|
|
663
|
-
e =
|
|
692
|
+
e = ct[u] = [];
|
|
664
693
|
for (let t = 0; t < 128; t++) {
|
|
665
694
|
const n = String.fromCharCode(t);
|
|
666
695
|
e.push(n);
|
|
@@ -671,9 +700,9 @@ function Tr(u) {
|
|
|
671
700
|
}
|
|
672
701
|
return e;
|
|
673
702
|
}
|
|
674
|
-
function
|
|
675
|
-
typeof e != "string" && (e =
|
|
676
|
-
const t =
|
|
703
|
+
function zu(u, e) {
|
|
704
|
+
typeof e != "string" && (e = zu.defaultChars);
|
|
705
|
+
const t = wr(e);
|
|
677
706
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
678
707
|
let r = "";
|
|
679
708
|
for (let o = 0, i = n.length; o < i; o += 3) {
|
|
@@ -711,14 +740,14 @@ function Nu(u, e) {
|
|
|
711
740
|
return r;
|
|
712
741
|
});
|
|
713
742
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
const
|
|
717
|
-
function
|
|
718
|
-
let e =
|
|
743
|
+
zu.defaultChars = ";/?:@&=+$,#";
|
|
744
|
+
zu.componentChars = "";
|
|
745
|
+
const it = {};
|
|
746
|
+
function vr(u) {
|
|
747
|
+
let e = it[u];
|
|
719
748
|
if (e)
|
|
720
749
|
return e;
|
|
721
|
-
e =
|
|
750
|
+
e = it[u] = [];
|
|
722
751
|
for (let t = 0; t < 128; t++) {
|
|
723
752
|
const n = String.fromCharCode(t);
|
|
724
753
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
|
@@ -727,9 +756,9 @@ function Sr(u) {
|
|
|
727
756
|
e[u.charCodeAt(t)] = u[t];
|
|
728
757
|
return e;
|
|
729
758
|
}
|
|
730
|
-
function
|
|
731
|
-
typeof e != "string" && (t = e, e =
|
|
732
|
-
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);
|
|
733
762
|
let r = "";
|
|
734
763
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
735
764
|
const c = u.charCodeAt(o);
|
|
@@ -756,20 +785,20 @@ function oe(u, e, t) {
|
|
|
756
785
|
}
|
|
757
786
|
return r;
|
|
758
787
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
function
|
|
788
|
+
ie.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
789
|
+
ie.componentChars = "-_.!~*'()";
|
|
790
|
+
function p0(u) {
|
|
762
791
|
let e = "";
|
|
763
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;
|
|
764
793
|
}
|
|
765
|
-
function
|
|
794
|
+
function ye() {
|
|
766
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;
|
|
767
796
|
}
|
|
768
|
-
const
|
|
769
|
-
`, " "],
|
|
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 = {
|
|
770
799
|
javascript: !0,
|
|
771
800
|
"javascript:": !0
|
|
772
|
-
},
|
|
801
|
+
}, dt = {
|
|
773
802
|
http: !0,
|
|
774
803
|
https: !0,
|
|
775
804
|
ftp: !0,
|
|
@@ -781,81 +810,81 @@ const wr = /^([a-z0-9.+-]+:)/i, vr = /:[0-9]*$/, Rr = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
781
810
|
"gopher:": !0,
|
|
782
811
|
"file:": !0
|
|
783
812
|
};
|
|
784
|
-
function
|
|
785
|
-
if (u && u instanceof
|
|
786
|
-
const t = new
|
|
813
|
+
function h0(u, e) {
|
|
814
|
+
if (u && u instanceof ye) return u;
|
|
815
|
+
const t = new ye();
|
|
787
816
|
return t.parse(u, e), t;
|
|
788
817
|
}
|
|
789
|
-
|
|
818
|
+
ye.prototype.parse = function(u, e) {
|
|
790
819
|
let t, n, r, o = u;
|
|
791
820
|
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
792
|
-
const s =
|
|
821
|
+
const s = Mr.exec(o);
|
|
793
822
|
if (s)
|
|
794
823
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
795
824
|
}
|
|
796
|
-
let i =
|
|
797
|
-
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, o = o.substr(i.length)), (e || i || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(i &&
|
|
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])) {
|
|
798
827
|
let s = -1;
|
|
799
|
-
for (let
|
|
800
|
-
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);
|
|
801
830
|
let d, f;
|
|
802
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;
|
|
803
|
-
for (let
|
|
804
|
-
n = o.indexOf(
|
|
832
|
+
for (let p = 0; p < at.length; p++)
|
|
833
|
+
n = o.indexOf(at[p]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
805
834
|
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
806
|
-
const
|
|
807
|
-
o = o.slice(s), this.parseHost(
|
|
808
|
-
const
|
|
809
|
-
if (!
|
|
810
|
-
const
|
|
811
|
-
for (let C = 0, D =
|
|
812
|
-
const T =
|
|
813
|
-
if (T && !T.match(
|
|
835
|
+
const m = o.slice(0, s);
|
|
836
|
+
o = o.slice(s), this.parseHost(m), this.hostname = this.hostname || "";
|
|
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)) {
|
|
814
843
|
let E = "";
|
|
815
|
-
for (let k = 0,
|
|
844
|
+
for (let k = 0, _ = T.length; k < _; k++)
|
|
816
845
|
T.charCodeAt(k) > 127 ? E += "x" : E += T[k];
|
|
817
|
-
if (!E.match(
|
|
818
|
-
const k =
|
|
819
|
-
A && (k.push(A[1]),
|
|
846
|
+
if (!E.match(lt)) {
|
|
847
|
+
const k = p.slice(0, C), _ = p.slice(C + 1), A = T.match(Br);
|
|
848
|
+
A && (k.push(A[1]), _.unshift(A[2])), _.length && (o = _.join(".") + o), this.hostname = k.join(".");
|
|
820
849
|
break;
|
|
821
850
|
}
|
|
822
851
|
}
|
|
823
852
|
}
|
|
824
853
|
}
|
|
825
|
-
this.hostname.length >
|
|
854
|
+
this.hostname.length > Pr && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
826
855
|
}
|
|
827
856
|
const c = o.indexOf("#");
|
|
828
857
|
c !== -1 && (this.hash = o.substr(c), o = o.slice(0, c));
|
|
829
858
|
const a = o.indexOf("?");
|
|
830
|
-
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;
|
|
831
860
|
};
|
|
832
|
-
|
|
833
|
-
let e =
|
|
861
|
+
ye.prototype.parseHost = function(u) {
|
|
862
|
+
let e = Ir.exec(u);
|
|
834
863
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
835
864
|
};
|
|
836
|
-
const
|
|
865
|
+
const zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
837
866
|
__proto__: null,
|
|
838
|
-
decode:
|
|
839
|
-
encode:
|
|
840
|
-
format:
|
|
841
|
-
parse:
|
|
842
|
-
}, 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({
|
|
843
872
|
__proto__: null,
|
|
844
|
-
Any:
|
|
845
|
-
Cc:
|
|
846
|
-
Cf:
|
|
847
|
-
P:
|
|
848
|
-
S:
|
|
849
|
-
Z:
|
|
850
|
-
}, 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(
|
|
851
880
|
// prettier-ignore
|
|
852
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))
|
|
853
|
-
),
|
|
882
|
+
), $r = new Uint16Array(
|
|
854
883
|
// prettier-ignore
|
|
855
884
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
856
885
|
);
|
|
857
|
-
var
|
|
858
|
-
const
|
|
886
|
+
var Xe;
|
|
887
|
+
const jr = /* @__PURE__ */ new Map([
|
|
859
888
|
[0, 65533],
|
|
860
889
|
// C1 Unicode control character reference replacements
|
|
861
890
|
[128, 8364],
|
|
@@ -885,53 +914,53 @@ const Hr = /* @__PURE__ */ new Map([
|
|
|
885
914
|
[156, 339],
|
|
886
915
|
[158, 382],
|
|
887
916
|
[159, 376]
|
|
888
|
-
]),
|
|
917
|
+
]), Gr = (
|
|
889
918
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
890
|
-
(
|
|
919
|
+
(Xe = String.fromCodePoint) !== null && Xe !== void 0 ? Xe : function(u) {
|
|
891
920
|
let e = "";
|
|
892
921
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
893
922
|
}
|
|
894
923
|
);
|
|
895
|
-
function
|
|
924
|
+
function Wr(u) {
|
|
896
925
|
var e;
|
|
897
|
-
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;
|
|
898
927
|
}
|
|
899
|
-
var
|
|
928
|
+
var B;
|
|
900
929
|
(function(u) {
|
|
901
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";
|
|
902
|
-
})(
|
|
903
|
-
const
|
|
904
|
-
var
|
|
931
|
+
})(B || (B = {}));
|
|
932
|
+
const Zr = 32;
|
|
933
|
+
var mu;
|
|
905
934
|
(function(u) {
|
|
906
935
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
907
|
-
})(
|
|
908
|
-
function
|
|
909
|
-
return u >=
|
|
936
|
+
})(mu || (mu = {}));
|
|
937
|
+
function c0(u) {
|
|
938
|
+
return u >= B.ZERO && u <= B.NINE;
|
|
910
939
|
}
|
|
911
|
-
function
|
|
912
|
-
return u >=
|
|
940
|
+
function Vr(u) {
|
|
941
|
+
return u >= B.UPPER_A && u <= B.UPPER_F || u >= B.LOWER_A && u <= B.LOWER_F;
|
|
913
942
|
}
|
|
914
|
-
function
|
|
915
|
-
return u >=
|
|
943
|
+
function Yr(u) {
|
|
944
|
+
return u >= B.UPPER_A && u <= B.UPPER_Z || u >= B.LOWER_A && u <= B.LOWER_Z || c0(u);
|
|
916
945
|
}
|
|
917
|
-
function
|
|
918
|
-
return u ===
|
|
946
|
+
function Xr(u) {
|
|
947
|
+
return u === B.EQUALS || Yr(u);
|
|
919
948
|
}
|
|
920
|
-
var
|
|
949
|
+
var P;
|
|
921
950
|
(function(u) {
|
|
922
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";
|
|
923
|
-
})(
|
|
952
|
+
})(P || (P = {}));
|
|
924
953
|
var bu;
|
|
925
954
|
(function(u) {
|
|
926
955
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
927
956
|
})(bu || (bu = {}));
|
|
928
|
-
class
|
|
957
|
+
class Jr {
|
|
929
958
|
constructor(e, t, n) {
|
|
930
|
-
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;
|
|
931
960
|
}
|
|
932
961
|
/** Resets the instance to make it reusable. */
|
|
933
962
|
startEntity(e) {
|
|
934
|
-
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;
|
|
935
964
|
}
|
|
936
965
|
/**
|
|
937
966
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -946,15 +975,15 @@ class Yr {
|
|
|
946
975
|
*/
|
|
947
976
|
write(e, t) {
|
|
948
977
|
switch (this.state) {
|
|
949
|
-
case
|
|
950
|
-
return e.charCodeAt(t) ===
|
|
951
|
-
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:
|
|
952
981
|
return this.stateNumericStart(e, t);
|
|
953
|
-
case
|
|
982
|
+
case P.NumericDecimal:
|
|
954
983
|
return this.stateNumericDecimal(e, t);
|
|
955
|
-
case
|
|
984
|
+
case P.NumericHex:
|
|
956
985
|
return this.stateNumericHex(e, t);
|
|
957
|
-
case
|
|
986
|
+
case P.NamedEntity:
|
|
958
987
|
return this.stateNamedEntity(e, t);
|
|
959
988
|
}
|
|
960
989
|
}
|
|
@@ -968,7 +997,7 @@ class Yr {
|
|
|
968
997
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
969
998
|
*/
|
|
970
999
|
stateNumericStart(e, t) {
|
|
971
|
-
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));
|
|
972
1001
|
}
|
|
973
1002
|
addToNumericResult(e, t, n, r) {
|
|
974
1003
|
if (t !== n) {
|
|
@@ -989,7 +1018,7 @@ class Yr {
|
|
|
989
1018
|
const n = t;
|
|
990
1019
|
for (; t < e.length; ) {
|
|
991
1020
|
const r = e.charCodeAt(t);
|
|
992
|
-
if (
|
|
1021
|
+
if (c0(r) || Vr(r))
|
|
993
1022
|
t += 1;
|
|
994
1023
|
else
|
|
995
1024
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1009,7 +1038,7 @@ class Yr {
|
|
|
1009
1038
|
const n = t;
|
|
1010
1039
|
for (; t < e.length; ) {
|
|
1011
1040
|
const r = e.charCodeAt(t);
|
|
1012
|
-
if (
|
|
1041
|
+
if (c0(r))
|
|
1013
1042
|
t += 1;
|
|
1014
1043
|
else
|
|
1015
1044
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1033,11 +1062,11 @@ class Yr {
|
|
|
1033
1062
|
var n;
|
|
1034
1063
|
if (this.consumed <= t)
|
|
1035
1064
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1036
|
-
if (e ===
|
|
1065
|
+
if (e === B.SEMI)
|
|
1037
1066
|
this.consumed += 1;
|
|
1038
1067
|
else if (this.decodeMode === bu.Strict)
|
|
1039
1068
|
return 0;
|
|
1040
|
-
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;
|
|
1041
1070
|
}
|
|
1042
1071
|
/**
|
|
1043
1072
|
* Parses a named entity.
|
|
@@ -1050,16 +1079,16 @@ class Yr {
|
|
|
1050
1079
|
*/
|
|
1051
1080
|
stateNamedEntity(e, t) {
|
|
1052
1081
|
const { decodeTree: n } = this;
|
|
1053
|
-
let r = n[this.treeIndex], o = (r &
|
|
1082
|
+
let r = n[this.treeIndex], o = (r & mu.VALUE_LENGTH) >> 14;
|
|
1054
1083
|
for (; t < e.length; t++, this.excess++) {
|
|
1055
1084
|
const i = e.charCodeAt(t);
|
|
1056
|
-
if (this.treeIndex =
|
|
1085
|
+
if (this.treeIndex = Qr(n, r, this.treeIndex + Math.max(1, o), i), this.treeIndex < 0)
|
|
1057
1086
|
return this.result === 0 || // If we are parsing an attribute
|
|
1058
1087
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1059
1088
|
(o === 0 || // And there should be no invalid characters.
|
|
1060
|
-
|
|
1061
|
-
if (r = n[this.treeIndex], o = (r &
|
|
1062
|
-
if (i ===
|
|
1089
|
+
Xr(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1090
|
+
if (r = n[this.treeIndex], o = (r & mu.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1091
|
+
if (i === B.SEMI)
|
|
1063
1092
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1064
1093
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1065
1094
|
}
|
|
@@ -1073,7 +1102,7 @@ class Yr {
|
|
|
1073
1102
|
*/
|
|
1074
1103
|
emitNotTerminatedNamedEntity() {
|
|
1075
1104
|
var e;
|
|
1076
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
1105
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & mu.VALUE_LENGTH) >> 14;
|
|
1077
1106
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
1078
1107
|
}
|
|
1079
1108
|
/**
|
|
@@ -1087,7 +1116,7 @@ class Yr {
|
|
|
1087
1116
|
*/
|
|
1088
1117
|
emitNamedEntityData(e, t, n) {
|
|
1089
1118
|
const { decodeTree: r } = this;
|
|
1090
|
-
return this.emitCodePoint(t === 1 ? r[e] & ~
|
|
1119
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~mu.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
|
1091
1120
|
}
|
|
1092
1121
|
/**
|
|
1093
1122
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -1099,22 +1128,22 @@ class Yr {
|
|
|
1099
1128
|
end() {
|
|
1100
1129
|
var e;
|
|
1101
1130
|
switch (this.state) {
|
|
1102
|
-
case
|
|
1131
|
+
case P.NamedEntity:
|
|
1103
1132
|
return this.result !== 0 && (this.decodeMode !== bu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1104
|
-
case
|
|
1133
|
+
case P.NumericDecimal:
|
|
1105
1134
|
return this.emitNumericEntity(0, 2);
|
|
1106
|
-
case
|
|
1135
|
+
case P.NumericHex:
|
|
1107
1136
|
return this.emitNumericEntity(0, 3);
|
|
1108
|
-
case
|
|
1137
|
+
case P.NumericStart:
|
|
1109
1138
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1110
|
-
case
|
|
1139
|
+
case P.EntityStart:
|
|
1111
1140
|
return 0;
|
|
1112
1141
|
}
|
|
1113
1142
|
}
|
|
1114
1143
|
}
|
|
1115
|
-
function
|
|
1144
|
+
function Nt(u) {
|
|
1116
1145
|
let e = "";
|
|
1117
|
-
const t = new
|
|
1146
|
+
const t = new Jr(u, (n) => e += Gr(n));
|
|
1118
1147
|
return function(r, o) {
|
|
1119
1148
|
let i = 0, c = 0;
|
|
1120
1149
|
for (; (c = r.indexOf("&", c)) >= 0; ) {
|
|
@@ -1134,8 +1163,8 @@ function Ot(u) {
|
|
|
1134
1163
|
return e = "", a;
|
|
1135
1164
|
};
|
|
1136
1165
|
}
|
|
1137
|
-
function
|
|
1138
|
-
const r = (e &
|
|
1166
|
+
function Qr(u, e, t, n) {
|
|
1167
|
+
const r = (e & mu.BRANCH_LENGTH) >> 7, o = e & mu.JUMP_TABLE;
|
|
1139
1168
|
if (r === 0)
|
|
1140
1169
|
return o !== 0 && n === o ? t : -1;
|
|
1141
1170
|
if (o) {
|
|
@@ -1154,22 +1183,22 @@ function Xr(u, e, t, n) {
|
|
|
1154
1183
|
}
|
|
1155
1184
|
return -1;
|
|
1156
1185
|
}
|
|
1157
|
-
const
|
|
1158
|
-
|
|
1159
|
-
function
|
|
1160
|
-
return
|
|
1186
|
+
const Kr = Nt(Hr);
|
|
1187
|
+
Nt($r);
|
|
1188
|
+
function Pt(u, e = bu.Legacy) {
|
|
1189
|
+
return Kr(u, e);
|
|
1161
1190
|
}
|
|
1162
|
-
function
|
|
1191
|
+
function uo(u) {
|
|
1163
1192
|
return Object.prototype.toString.call(u);
|
|
1164
1193
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1194
|
+
function m0(u) {
|
|
1195
|
+
return uo(u) === "[object String]";
|
|
1167
1196
|
}
|
|
1168
|
-
const
|
|
1169
|
-
function
|
|
1170
|
-
return
|
|
1197
|
+
const eo = Object.prototype.hasOwnProperty;
|
|
1198
|
+
function to(u, e) {
|
|
1199
|
+
return eo.call(u, e);
|
|
1171
1200
|
}
|
|
1172
|
-
function
|
|
1201
|
+
function Se(u) {
|
|
1173
1202
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1174
1203
|
if (t) {
|
|
1175
1204
|
if (typeof t != "object")
|
|
@@ -1183,10 +1212,10 @@ function Fe(u) {
|
|
|
1183
1212
|
function Bt(u, e, t) {
|
|
1184
1213
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
|
1185
1214
|
}
|
|
1186
|
-
function
|
|
1215
|
+
function _0(u) {
|
|
1187
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);
|
|
1188
1217
|
}
|
|
1189
|
-
function
|
|
1218
|
+
function Fe(u) {
|
|
1190
1219
|
if (u > 65535) {
|
|
1191
1220
|
u -= 65536;
|
|
1192
1221
|
const e = 55296 + (u >> 10), t = 56320 + (u & 1023);
|
|
@@ -1194,38 +1223,38 @@ function De(u) {
|
|
|
1194
1223
|
}
|
|
1195
1224
|
return String.fromCharCode(u);
|
|
1196
1225
|
}
|
|
1197
|
-
const
|
|
1198
|
-
function
|
|
1199
|
-
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)) {
|
|
1200
1229
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1201
|
-
return
|
|
1230
|
+
return _0(n) ? Fe(n) : u;
|
|
1202
1231
|
}
|
|
1203
|
-
const t =
|
|
1232
|
+
const t = Pt(u);
|
|
1204
1233
|
return t !== u ? t : u;
|
|
1205
1234
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
1235
|
+
function io(u) {
|
|
1236
|
+
return u.indexOf("\\") < 0 ? u : u.replace(zt, "$1");
|
|
1208
1237
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1211
|
-
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);
|
|
1212
1241
|
});
|
|
1213
1242
|
}
|
|
1214
|
-
const
|
|
1243
|
+
const ao = /[&<>"]/, so = /[&<>"]/g, lo = {
|
|
1215
1244
|
"&": "&",
|
|
1216
1245
|
"<": "<",
|
|
1217
1246
|
">": ">",
|
|
1218
1247
|
'"': """
|
|
1219
1248
|
};
|
|
1220
|
-
function
|
|
1221
|
-
return
|
|
1249
|
+
function fo(u) {
|
|
1250
|
+
return lo[u];
|
|
1222
1251
|
}
|
|
1223
1252
|
function xu(u) {
|
|
1224
|
-
return
|
|
1253
|
+
return ao.test(u) ? u.replace(so, fo) : u;
|
|
1225
1254
|
}
|
|
1226
|
-
const
|
|
1227
|
-
function
|
|
1228
|
-
return u.replace(
|
|
1255
|
+
const po = /[.?*+^$[\]\\(){}|-]/g;
|
|
1256
|
+
function ho(u) {
|
|
1257
|
+
return u.replace(po, "\\$&");
|
|
1229
1258
|
}
|
|
1230
1259
|
function w(u) {
|
|
1231
1260
|
switch (u) {
|
|
@@ -1235,7 +1264,7 @@ function w(u) {
|
|
|
1235
1264
|
}
|
|
1236
1265
|
return !1;
|
|
1237
1266
|
}
|
|
1238
|
-
function
|
|
1267
|
+
function ue(u) {
|
|
1239
1268
|
if (u >= 8192 && u <= 8202)
|
|
1240
1269
|
return !0;
|
|
1241
1270
|
switch (u) {
|
|
@@ -1254,10 +1283,10 @@ function Qu(u) {
|
|
|
1254
1283
|
}
|
|
1255
1284
|
return !1;
|
|
1256
1285
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return
|
|
1286
|
+
function ee(u) {
|
|
1287
|
+
return b0.test(u) || Lt.test(u);
|
|
1259
1288
|
}
|
|
1260
|
-
function
|
|
1289
|
+
function te(u) {
|
|
1261
1290
|
switch (u) {
|
|
1262
1291
|
case 33:
|
|
1263
1292
|
case 34:
|
|
@@ -1296,29 +1325,29 @@ function ue(u) {
|
|
|
1296
1325
|
return !1;
|
|
1297
1326
|
}
|
|
1298
1327
|
}
|
|
1299
|
-
function
|
|
1328
|
+
function we(u) {
|
|
1300
1329
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1301
1330
|
}
|
|
1302
|
-
const
|
|
1331
|
+
const bo = { mdurl: zr, ucmicro: Ur }, mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1303
1332
|
__proto__: null,
|
|
1304
1333
|
arrayReplaceAt: Bt,
|
|
1305
|
-
assign:
|
|
1334
|
+
assign: Se,
|
|
1306
1335
|
escapeHtml: xu,
|
|
1307
|
-
escapeRE:
|
|
1308
|
-
fromCodePoint:
|
|
1309
|
-
has:
|
|
1310
|
-
isMdAsciiPunct:
|
|
1311
|
-
isPunctChar:
|
|
1336
|
+
escapeRE: ho,
|
|
1337
|
+
fromCodePoint: Fe,
|
|
1338
|
+
has: to,
|
|
1339
|
+
isMdAsciiPunct: te,
|
|
1340
|
+
isPunctChar: ee,
|
|
1312
1341
|
isSpace: w,
|
|
1313
|
-
isString:
|
|
1314
|
-
isValidEntityCode:
|
|
1315
|
-
isWhiteSpace:
|
|
1316
|
-
lib:
|
|
1317
|
-
normalizeReference:
|
|
1318
|
-
unescapeAll:
|
|
1319
|
-
unescapeMd:
|
|
1342
|
+
isString: m0,
|
|
1343
|
+
isValidEntityCode: _0,
|
|
1344
|
+
isWhiteSpace: ue,
|
|
1345
|
+
lib: bo,
|
|
1346
|
+
normalizeReference: we,
|
|
1347
|
+
unescapeAll: qu,
|
|
1348
|
+
unescapeMd: io
|
|
1320
1349
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1321
|
-
function
|
|
1350
|
+
function _o(u, e, t) {
|
|
1322
1351
|
let n, r, o, i;
|
|
1323
1352
|
const c = u.posMax, a = u.pos;
|
|
1324
1353
|
for (u.pos = e + 1, n = 1; u.pos < c; ) {
|
|
@@ -1336,7 +1365,7 @@ function bo(u, e, t) {
|
|
|
1336
1365
|
let s = -1;
|
|
1337
1366
|
return r && (s = u.pos), u.pos = a, s;
|
|
1338
1367
|
}
|
|
1339
|
-
function
|
|
1368
|
+
function xo(u, e, t) {
|
|
1340
1369
|
let n, r = e;
|
|
1341
1370
|
const o = {
|
|
1342
1371
|
ok: !1,
|
|
@@ -1348,7 +1377,7 @@ function _o(u, e, t) {
|
|
|
1348
1377
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1349
1378
|
return o;
|
|
1350
1379
|
if (n === 62)
|
|
1351
|
-
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;
|
|
1352
1381
|
if (n === 92 && r + 1 < t) {
|
|
1353
1382
|
r += 2;
|
|
1354
1383
|
continue;
|
|
@@ -1374,9 +1403,9 @@ function _o(u, e, t) {
|
|
|
1374
1403
|
}
|
|
1375
1404
|
r++;
|
|
1376
1405
|
}
|
|
1377
|
-
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;
|
|
1378
1407
|
}
|
|
1379
|
-
function
|
|
1408
|
+
function go(u, e, t, n) {
|
|
1380
1409
|
let r, o = e;
|
|
1381
1410
|
const i = {
|
|
1382
1411
|
// if `true`, this is a valid link title
|
|
@@ -1402,18 +1431,18 @@ function mo(u, e, t, n) {
|
|
|
1402
1431
|
}
|
|
1403
1432
|
for (; o < t; ) {
|
|
1404
1433
|
if (r = u.charCodeAt(o), r === i.marker)
|
|
1405
|
-
return i.pos = o + 1, i.str +=
|
|
1434
|
+
return i.pos = o + 1, i.str += qu(u.slice(e, o)), i.ok = !0, i;
|
|
1406
1435
|
if (r === 40 && i.marker === 41)
|
|
1407
1436
|
return i;
|
|
1408
1437
|
r === 92 && o + 1 < t && o++, o++;
|
|
1409
1438
|
}
|
|
1410
|
-
return i.can_continue = !0, i.str +=
|
|
1439
|
+
return i.can_continue = !0, i.str += qu(u.slice(e, o)), i;
|
|
1411
1440
|
}
|
|
1412
|
-
const
|
|
1441
|
+
const ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1413
1442
|
__proto__: null,
|
|
1414
|
-
parseLinkDestination:
|
|
1415
|
-
parseLinkLabel:
|
|
1416
|
-
parseLinkTitle:
|
|
1443
|
+
parseLinkDestination: xo,
|
|
1444
|
+
parseLinkLabel: _o,
|
|
1445
|
+
parseLinkTitle: go
|
|
1417
1446
|
}, Symbol.toStringTag, { value: "Module" })), iu = {};
|
|
1418
1447
|
iu.code_inline = function(u, e, t, n, r) {
|
|
1419
1448
|
const o = u[e];
|
|
@@ -1425,7 +1454,7 @@ iu.code_block = function(u, e, t, n, r) {
|
|
|
1425
1454
|
`;
|
|
1426
1455
|
};
|
|
1427
1456
|
iu.fence = function(u, e, t, n, r) {
|
|
1428
|
-
const o = u[e], i = o.info ?
|
|
1457
|
+
const o = u[e], i = o.info ? qu(o.info).trim() : "";
|
|
1429
1458
|
let c = "", a = "";
|
|
1430
1459
|
if (i) {
|
|
1431
1460
|
const d = i.split(/(\s+)/g);
|
|
@@ -1438,10 +1467,10 @@ iu.fence = function(u, e, t, n, r) {
|
|
|
1438
1467
|
if (i) {
|
|
1439
1468
|
const d = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
|
|
1440
1469
|
d < 0 ? f.push(["class", t.langPrefix + c]) : (f[d] = f[d].slice(), f[d][1] += " " + t.langPrefix + c);
|
|
1441
|
-
const
|
|
1470
|
+
const m = {
|
|
1442
1471
|
attrs: f
|
|
1443
1472
|
};
|
|
1444
|
-
return `<pre><code${r.renderAttrs(
|
|
1473
|
+
return `<pre><code${r.renderAttrs(m)}>${s}</code></pre>
|
|
1445
1474
|
`;
|
|
1446
1475
|
}
|
|
1447
1476
|
return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
|
@@ -1471,10 +1500,10 @@ iu.html_block = function(u, e) {
|
|
|
1471
1500
|
iu.html_inline = function(u, e) {
|
|
1472
1501
|
return u[e].content;
|
|
1473
1502
|
};
|
|
1474
|
-
function
|
|
1475
|
-
this.rules =
|
|
1503
|
+
function Uu() {
|
|
1504
|
+
this.rules = Se({}, iu);
|
|
1476
1505
|
}
|
|
1477
|
-
|
|
1506
|
+
Uu.prototype.renderAttrs = function(e) {
|
|
1478
1507
|
let t, n, r;
|
|
1479
1508
|
if (!e.attrs)
|
|
1480
1509
|
return "";
|
|
@@ -1482,7 +1511,7 @@ Pu.prototype.renderAttrs = function(e) {
|
|
|
1482
1511
|
r += " " + xu(e.attrs[t][0]) + '="' + xu(e.attrs[t][1]) + '"';
|
|
1483
1512
|
return r;
|
|
1484
1513
|
};
|
|
1485
|
-
|
|
1514
|
+
Uu.prototype.renderToken = function(e, t, n) {
|
|
1486
1515
|
const r = e[t];
|
|
1487
1516
|
let o = "";
|
|
1488
1517
|
if (r.hidden)
|
|
@@ -1497,7 +1526,7 @@ Pu.prototype.renderToken = function(e, t, n) {
|
|
|
1497
1526
|
return o += i ? `>
|
|
1498
1527
|
` : ">", o;
|
|
1499
1528
|
};
|
|
1500
|
-
|
|
1529
|
+
Uu.prototype.renderInline = function(u, e, t) {
|
|
1501
1530
|
let n = "";
|
|
1502
1531
|
const r = this.rules;
|
|
1503
1532
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
@@ -1506,7 +1535,7 @@ Pu.prototype.renderInline = function(u, e, t) {
|
|
|
1506
1535
|
}
|
|
1507
1536
|
return n;
|
|
1508
1537
|
};
|
|
1509
|
-
|
|
1538
|
+
Uu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1510
1539
|
let n = "";
|
|
1511
1540
|
for (let r = 0, o = u.length; r < o; r++)
|
|
1512
1541
|
switch (u[r].type) {
|
|
@@ -1528,7 +1557,7 @@ Pu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1528
1557
|
}
|
|
1529
1558
|
return n;
|
|
1530
1559
|
};
|
|
1531
|
-
|
|
1560
|
+
Uu.prototype.render = function(u, e, t) {
|
|
1532
1561
|
let n = "";
|
|
1533
1562
|
const r = this.rules;
|
|
1534
1563
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
@@ -1537,16 +1566,16 @@ Pu.prototype.render = function(u, e, t) {
|
|
|
1537
1566
|
}
|
|
1538
1567
|
return n;
|
|
1539
1568
|
};
|
|
1540
|
-
function
|
|
1569
|
+
function V() {
|
|
1541
1570
|
this.__rules__ = [], this.__cache__ = null;
|
|
1542
1571
|
}
|
|
1543
|
-
|
|
1572
|
+
V.prototype.__find__ = function(u) {
|
|
1544
1573
|
for (let e = 0; e < this.__rules__.length; e++)
|
|
1545
1574
|
if (this.__rules__[e].name === u)
|
|
1546
1575
|
return e;
|
|
1547
1576
|
return -1;
|
|
1548
1577
|
};
|
|
1549
|
-
|
|
1578
|
+
V.prototype.__compile__ = function() {
|
|
1550
1579
|
const u = this, e = [""];
|
|
1551
1580
|
u.__rules__.forEach(function(t) {
|
|
1552
1581
|
t.enabled && t.alt.forEach(function(n) {
|
|
@@ -1558,13 +1587,13 @@ Z.prototype.__compile__ = function() {
|
|
|
1558
1587
|
});
|
|
1559
1588
|
});
|
|
1560
1589
|
};
|
|
1561
|
-
|
|
1590
|
+
V.prototype.at = function(u, e, t) {
|
|
1562
1591
|
const n = this.__find__(u), r = t || {};
|
|
1563
1592
|
if (n === -1)
|
|
1564
1593
|
throw new Error("Parser rule not found: " + u);
|
|
1565
1594
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1566
1595
|
};
|
|
1567
|
-
|
|
1596
|
+
V.prototype.before = function(u, e, t, n) {
|
|
1568
1597
|
const r = this.__find__(u), o = n || {};
|
|
1569
1598
|
if (r === -1)
|
|
1570
1599
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1575,7 +1604,7 @@ Z.prototype.before = function(u, e, t, n) {
|
|
|
1575
1604
|
alt: o.alt || []
|
|
1576
1605
|
}), this.__cache__ = null;
|
|
1577
1606
|
};
|
|
1578
|
-
|
|
1607
|
+
V.prototype.after = function(u, e, t, n) {
|
|
1579
1608
|
const r = this.__find__(u), o = n || {};
|
|
1580
1609
|
if (r === -1)
|
|
1581
1610
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1586,7 +1615,7 @@ Z.prototype.after = function(u, e, t, n) {
|
|
|
1586
1615
|
alt: o.alt || []
|
|
1587
1616
|
}), this.__cache__ = null;
|
|
1588
1617
|
};
|
|
1589
|
-
|
|
1618
|
+
V.prototype.push = function(u, e, t) {
|
|
1590
1619
|
const n = t || {};
|
|
1591
1620
|
this.__rules__.push({
|
|
1592
1621
|
name: u,
|
|
@@ -1595,7 +1624,7 @@ Z.prototype.push = function(u, e, t) {
|
|
|
1595
1624
|
alt: n.alt || []
|
|
1596
1625
|
}), this.__cache__ = null;
|
|
1597
1626
|
};
|
|
1598
|
-
|
|
1627
|
+
V.prototype.enable = function(u, e) {
|
|
1599
1628
|
Array.isArray(u) || (u = [u]);
|
|
1600
1629
|
const t = [];
|
|
1601
1630
|
return u.forEach(function(n) {
|
|
@@ -1608,12 +1637,12 @@ Z.prototype.enable = function(u, e) {
|
|
|
1608
1637
|
this.__rules__[r].enabled = !0, t.push(n);
|
|
1609
1638
|
}, this), this.__cache__ = null, t;
|
|
1610
1639
|
};
|
|
1611
|
-
|
|
1640
|
+
V.prototype.enableOnly = function(u, e) {
|
|
1612
1641
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
|
1613
1642
|
t.enabled = !1;
|
|
1614
1643
|
}), this.enable(u, e);
|
|
1615
1644
|
};
|
|
1616
|
-
|
|
1645
|
+
V.prototype.disable = function(u, e) {
|
|
1617
1646
|
Array.isArray(u) || (u = [u]);
|
|
1618
1647
|
const t = [];
|
|
1619
1648
|
return u.forEach(function(n) {
|
|
@@ -1626,7 +1655,7 @@ Z.prototype.disable = function(u, e) {
|
|
|
1626
1655
|
this.__rules__[r].enabled = !1, t.push(n);
|
|
1627
1656
|
}, this), this.__cache__ = null, t;
|
|
1628
1657
|
};
|
|
1629
|
-
|
|
1658
|
+
V.prototype.getRules = function(u) {
|
|
1630
1659
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1631
1660
|
};
|
|
1632
1661
|
function tu(u, e, t) {
|
|
@@ -1657,34 +1686,34 @@ tu.prototype.attrJoin = function(e, t) {
|
|
|
1657
1686
|
const n = this.attrIndex(e);
|
|
1658
1687
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1659
1688
|
};
|
|
1660
|
-
function
|
|
1689
|
+
function qt(u, e, t) {
|
|
1661
1690
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1662
1691
|
}
|
|
1663
|
-
|
|
1664
|
-
const
|
|
1665
|
-
function
|
|
1692
|
+
qt.prototype.Token = tu;
|
|
1693
|
+
const Eo = /\r\n?|\n/g, Ao = /\0/g;
|
|
1694
|
+
function Co(u) {
|
|
1666
1695
|
let e;
|
|
1667
|
-
e = u.src.replace(
|
|
1668
|
-
`), e = e.replace(
|
|
1696
|
+
e = u.src.replace(Eo, `
|
|
1697
|
+
`), e = e.replace(Ao, "�"), u.src = e;
|
|
1669
1698
|
}
|
|
1670
|
-
function
|
|
1699
|
+
function Do(u) {
|
|
1671
1700
|
let e;
|
|
1672
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);
|
|
1673
1702
|
}
|
|
1674
|
-
function
|
|
1703
|
+
function yo(u) {
|
|
1675
1704
|
const e = u.tokens;
|
|
1676
1705
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1677
1706
|
const r = e[t];
|
|
1678
1707
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1679
1708
|
}
|
|
1680
1709
|
}
|
|
1681
|
-
function
|
|
1710
|
+
function Fo(u) {
|
|
1682
1711
|
return /^<a[>\s]/i.test(u);
|
|
1683
1712
|
}
|
|
1684
|
-
function
|
|
1713
|
+
function To(u) {
|
|
1685
1714
|
return /^<\/a\s*>/i.test(u);
|
|
1686
1715
|
}
|
|
1687
|
-
function
|
|
1716
|
+
function So(u) {
|
|
1688
1717
|
const e = u.tokens;
|
|
1689
1718
|
if (u.md.options.linkify)
|
|
1690
1719
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
@@ -1698,72 +1727,72 @@ function Fo(u) {
|
|
|
1698
1727
|
i--;
|
|
1699
1728
|
continue;
|
|
1700
1729
|
}
|
|
1701
|
-
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)) {
|
|
1702
1731
|
const a = c.content;
|
|
1703
1732
|
let s = u.md.linkify.match(a);
|
|
1704
1733
|
const d = [];
|
|
1705
|
-
let f = c.level,
|
|
1734
|
+
let f = c.level, m = 0;
|
|
1706
1735
|
s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
|
|
1707
|
-
for (let
|
|
1708
|
-
const
|
|
1736
|
+
for (let h = 0; h < s.length; h++) {
|
|
1737
|
+
const p = s[h].url, C = u.md.normalizeLink(p);
|
|
1709
1738
|
if (!u.md.validateLink(C))
|
|
1710
1739
|
continue;
|
|
1711
|
-
let D = s[
|
|
1712
|
-
s[
|
|
1713
|
-
const T = s[
|
|
1714
|
-
if (T >
|
|
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;
|
|
1743
|
+
if (T > m) {
|
|
1715
1744
|
const A = new u.Token("text", "", 0);
|
|
1716
|
-
A.content = a.slice(
|
|
1745
|
+
A.content = a.slice(m, T), A.level = f, d.push(A);
|
|
1717
1746
|
}
|
|
1718
1747
|
const E = new u.Token("link_open", "a", 1);
|
|
1719
1748
|
E.attrs = [["href", C]], E.level = f++, E.markup = "linkify", E.info = "auto", d.push(E);
|
|
1720
1749
|
const k = new u.Token("text", "", 0);
|
|
1721
1750
|
k.content = D, k.level = f, d.push(k);
|
|
1722
|
-
const
|
|
1723
|
-
|
|
1751
|
+
const _ = new u.Token("link_close", "a", -1);
|
|
1752
|
+
_.level = --f, _.markup = "linkify", _.info = "auto", d.push(_), m = s[h].lastIndex;
|
|
1724
1753
|
}
|
|
1725
|
-
if (
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1754
|
+
if (m < a.length) {
|
|
1755
|
+
const h = new u.Token("text", "", 0);
|
|
1756
|
+
h.content = a.slice(m), h.level = f, d.push(h);
|
|
1728
1757
|
}
|
|
1729
1758
|
e[t].children = r = Bt(r, i, d);
|
|
1730
1759
|
}
|
|
1731
1760
|
}
|
|
1732
1761
|
}
|
|
1733
1762
|
}
|
|
1734
|
-
const
|
|
1763
|
+
const Ut = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, wo = /\((c|tm|r)\)/i, vo = /\((c|tm|r)\)/ig, Ro = {
|
|
1735
1764
|
c: "©",
|
|
1736
1765
|
r: "®",
|
|
1737
1766
|
tm: "™"
|
|
1738
1767
|
};
|
|
1739
|
-
function
|
|
1740
|
-
return
|
|
1768
|
+
function Io(u, e) {
|
|
1769
|
+
return Ro[e.toLowerCase()];
|
|
1741
1770
|
}
|
|
1742
|
-
function
|
|
1771
|
+
function Mo(u) {
|
|
1743
1772
|
let e = 0;
|
|
1744
1773
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1745
1774
|
const n = u[t];
|
|
1746
|
-
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++;
|
|
1747
1776
|
}
|
|
1748
1777
|
}
|
|
1749
|
-
function
|
|
1778
|
+
function Lo(u) {
|
|
1750
1779
|
let e = 0;
|
|
1751
1780
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1752
1781
|
const n = u[t];
|
|
1753
|
-
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++;
|
|
1754
1783
|
}
|
|
1755
1784
|
}
|
|
1756
|
-
function
|
|
1785
|
+
function Oo(u) {
|
|
1757
1786
|
let e;
|
|
1758
1787
|
if (u.md.options.typographer)
|
|
1759
1788
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1760
|
-
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));
|
|
1761
1790
|
}
|
|
1762
|
-
const
|
|
1763
|
-
function
|
|
1791
|
+
const No = /['"]/, pt = /['"]/g, ht = "’";
|
|
1792
|
+
function ge(u, e, t) {
|
|
1764
1793
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1765
1794
|
}
|
|
1766
|
-
function
|
|
1795
|
+
function Po(u, e) {
|
|
1767
1796
|
let t;
|
|
1768
1797
|
const n = [];
|
|
1769
1798
|
for (let r = 0; r < u.length; r++) {
|
|
@@ -1775,20 +1804,20 @@ function Oo(u, e) {
|
|
|
1775
1804
|
let c = o.content, a = 0, s = c.length;
|
|
1776
1805
|
u:
|
|
1777
1806
|
for (; a < s; ) {
|
|
1778
|
-
|
|
1779
|
-
const d =
|
|
1807
|
+
pt.lastIndex = a;
|
|
1808
|
+
const d = pt.exec(c);
|
|
1780
1809
|
if (!d)
|
|
1781
1810
|
break;
|
|
1782
|
-
let f = !0,
|
|
1811
|
+
let f = !0, m = !0;
|
|
1783
1812
|
a = d.index + 1;
|
|
1784
|
-
const
|
|
1785
|
-
let
|
|
1813
|
+
const h = d[0] === "'";
|
|
1814
|
+
let p = 32;
|
|
1786
1815
|
if (d.index - 1 >= 0)
|
|
1787
|
-
|
|
1816
|
+
p = c.charCodeAt(d.index - 1);
|
|
1788
1817
|
else
|
|
1789
1818
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
1790
1819
|
if (u[t].content) {
|
|
1791
|
-
|
|
1820
|
+
p = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1792
1821
|
break;
|
|
1793
1822
|
}
|
|
1794
1823
|
let C = 32;
|
|
@@ -1800,42 +1829,42 @@ function Oo(u, e) {
|
|
|
1800
1829
|
C = u[t].content.charCodeAt(0);
|
|
1801
1830
|
break;
|
|
1802
1831
|
}
|
|
1803
|
-
const D =
|
|
1804
|
-
if (k ? f = !1 : T && (E || D || (f = !1)), E ?
|
|
1805
|
-
|
|
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));
|
|
1806
1835
|
continue;
|
|
1807
1836
|
}
|
|
1808
|
-
if (
|
|
1837
|
+
if (m)
|
|
1809
1838
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1810
|
-
let
|
|
1839
|
+
let _ = n[t];
|
|
1811
1840
|
if (n[t].level < i)
|
|
1812
1841
|
break;
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1842
|
+
if (_.single === h && n[t].level === i) {
|
|
1843
|
+
_ = n[t];
|
|
1815
1844
|
let A, y;
|
|
1816
|
-
|
|
1817
|
-
u[
|
|
1818
|
-
|
|
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(
|
|
1846
|
+
u[_.token].content,
|
|
1847
|
+
_.pos,
|
|
1819
1848
|
A
|
|
1820
|
-
), a += y.length - 1,
|
|
1849
|
+
), a += y.length - 1, _.token === r && (a += A.length - 1), c = o.content, s = c.length, n.length = t;
|
|
1821
1850
|
continue u;
|
|
1822
1851
|
}
|
|
1823
1852
|
}
|
|
1824
1853
|
f ? n.push({
|
|
1825
1854
|
token: r,
|
|
1826
1855
|
pos: d.index,
|
|
1827
|
-
single:
|
|
1856
|
+
single: h,
|
|
1828
1857
|
level: i
|
|
1829
|
-
}) :
|
|
1858
|
+
}) : m && h && (o.content = ge(o.content, d.index, ht));
|
|
1830
1859
|
}
|
|
1831
1860
|
}
|
|
1832
1861
|
}
|
|
1833
|
-
function
|
|
1862
|
+
function Bo(u) {
|
|
1834
1863
|
if (u.md.options.typographer)
|
|
1835
1864
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
1836
|
-
u.tokens[e].type !== "inline" || !
|
|
1865
|
+
u.tokens[e].type !== "inline" || !No.test(u.tokens[e].content) || Po(u.tokens[e].children, u);
|
|
1837
1866
|
}
|
|
1838
|
-
function
|
|
1867
|
+
function zo(u) {
|
|
1839
1868
|
let e, t;
|
|
1840
1869
|
const n = u.tokens, r = n.length;
|
|
1841
1870
|
for (let o = 0; o < r; o++) {
|
|
@@ -1848,28 +1877,28 @@ function Bo(u) {
|
|
|
1848
1877
|
e !== t && (i.length = t);
|
|
1849
1878
|
}
|
|
1850
1879
|
}
|
|
1851
|
-
const
|
|
1852
|
-
["normalize",
|
|
1853
|
-
["block",
|
|
1854
|
-
["inline",
|
|
1855
|
-
["linkify",
|
|
1856
|
-
["replacements",
|
|
1857
|
-
["smartquotes",
|
|
1880
|
+
const Je = [
|
|
1881
|
+
["normalize", Co],
|
|
1882
|
+
["block", Do],
|
|
1883
|
+
["inline", yo],
|
|
1884
|
+
["linkify", So],
|
|
1885
|
+
["replacements", Oo],
|
|
1886
|
+
["smartquotes", Bo],
|
|
1858
1887
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
1859
1888
|
// and joins them with the rest of the text
|
|
1860
|
-
["text_join",
|
|
1889
|
+
["text_join", zo]
|
|
1861
1890
|
];
|
|
1862
|
-
function
|
|
1863
|
-
this.ruler = new
|
|
1864
|
-
for (let u = 0; u <
|
|
1865
|
-
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]);
|
|
1866
1895
|
}
|
|
1867
|
-
|
|
1896
|
+
x0.prototype.process = function(u) {
|
|
1868
1897
|
const e = this.ruler.getRules("");
|
|
1869
1898
|
for (let t = 0, n = e.length; t < n; t++)
|
|
1870
1899
|
e[t](u);
|
|
1871
1900
|
};
|
|
1872
|
-
|
|
1901
|
+
x0.prototype.State = qt;
|
|
1873
1902
|
function au(u, e, t, n) {
|
|
1874
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;
|
|
1875
1904
|
const r = this.src;
|
|
@@ -1935,9 +1964,9 @@ au.prototype.getLines = function(e, t, n, r) {
|
|
|
1935
1964
|
const s = this.bMarks[c];
|
|
1936
1965
|
let d = s, f;
|
|
1937
1966
|
for (c + 1 < t || r ? f = this.eMarks[c] + 1 : f = this.eMarks[c]; d < f && a < n; ) {
|
|
1938
|
-
const
|
|
1939
|
-
if (w(
|
|
1940
|
-
|
|
1967
|
+
const m = this.src.charCodeAt(d);
|
|
1968
|
+
if (w(m))
|
|
1969
|
+
m === 9 ? a += 4 - (a + this.bsCount[c]) % 4 : a++;
|
|
1941
1970
|
else if (d - s < this.tShift[c])
|
|
1942
1971
|
a++;
|
|
1943
1972
|
else
|
|
@@ -1949,19 +1978,19 @@ au.prototype.getLines = function(e, t, n, r) {
|
|
|
1949
1978
|
return o.join("");
|
|
1950
1979
|
};
|
|
1951
1980
|
au.prototype.Token = tu;
|
|
1952
|
-
const
|
|
1953
|
-
function
|
|
1981
|
+
const qo = 65536;
|
|
1982
|
+
function Qe(u, e) {
|
|
1954
1983
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
1955
1984
|
return u.src.slice(t, n);
|
|
1956
1985
|
}
|
|
1957
|
-
function
|
|
1986
|
+
function bt(u) {
|
|
1958
1987
|
const e = [], t = u.length;
|
|
1959
1988
|
let n = 0, r = u.charCodeAt(n), o = !1, i = 0, c = "";
|
|
1960
1989
|
for (; n < t; )
|
|
1961
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);
|
|
1962
1991
|
return e.push(c + u.substring(i)), e;
|
|
1963
1992
|
}
|
|
1964
|
-
function
|
|
1993
|
+
function Uo(u, e, t, n) {
|
|
1965
1994
|
if (e + 2 > t)
|
|
1966
1995
|
return !1;
|
|
1967
1996
|
let r = e + 1;
|
|
@@ -1977,17 +2006,17 @@ function zo(u, e, t, n) {
|
|
|
1977
2006
|
if (c !== 124 && c !== 45 && c !== 58 && !w(c) || i === 45 && w(c))
|
|
1978
2007
|
return !1;
|
|
1979
2008
|
for (; o < u.eMarks[r]; ) {
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
2009
|
+
const _ = u.src.charCodeAt(o);
|
|
2010
|
+
if (_ !== 124 && _ !== 45 && _ !== 58 && !w(_))
|
|
1982
2011
|
return !1;
|
|
1983
2012
|
o++;
|
|
1984
2013
|
}
|
|
1985
|
-
let a =
|
|
2014
|
+
let a = Qe(u, e + 1), s = a.split("|");
|
|
1986
2015
|
const d = [];
|
|
1987
|
-
for (let
|
|
1988
|
-
const A = s[
|
|
2016
|
+
for (let _ = 0; _ < s.length; _++) {
|
|
2017
|
+
const A = s[_].trim();
|
|
1989
2018
|
if (!A) {
|
|
1990
|
-
if (
|
|
2019
|
+
if (_ === 0 || _ === s.length - 1)
|
|
1991
2020
|
continue;
|
|
1992
2021
|
return !1;
|
|
1993
2022
|
}
|
|
@@ -1995,38 +2024,38 @@ function zo(u, e, t, n) {
|
|
|
1995
2024
|
return !1;
|
|
1996
2025
|
A.charCodeAt(A.length - 1) === 58 ? d.push(A.charCodeAt(0) === 58 ? "center" : "right") : A.charCodeAt(0) === 58 ? d.push("left") : d.push("");
|
|
1997
2026
|
}
|
|
1998
|
-
if (a =
|
|
2027
|
+
if (a = Qe(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
1999
2028
|
return !1;
|
|
2000
|
-
s =
|
|
2029
|
+
s = bt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2001
2030
|
const f = s.length;
|
|
2002
2031
|
if (f === 0 || f !== d.length)
|
|
2003
2032
|
return !1;
|
|
2004
2033
|
if (n)
|
|
2005
2034
|
return !0;
|
|
2006
|
-
const
|
|
2035
|
+
const m = u.parentType;
|
|
2007
2036
|
u.parentType = "table";
|
|
2008
|
-
const
|
|
2009
|
-
|
|
2037
|
+
const h = u.md.block.ruler.getRules("blockquote"), p = u.push("table_open", "table", 1), C = [e, 0];
|
|
2038
|
+
p.map = C;
|
|
2010
2039
|
const D = u.push("thead_open", "thead", 1);
|
|
2011
2040
|
D.map = [e, e + 1];
|
|
2012
2041
|
const T = u.push("tr_open", "tr", 1);
|
|
2013
2042
|
T.map = [e, e + 1];
|
|
2014
|
-
for (let
|
|
2043
|
+
for (let _ = 0; _ < s.length; _++) {
|
|
2015
2044
|
const A = u.push("th_open", "th", 1);
|
|
2016
|
-
d[
|
|
2045
|
+
d[_] && (A.attrs = [["style", "text-align:" + d[_]]]);
|
|
2017
2046
|
const y = u.push("inline", "", 0);
|
|
2018
|
-
y.content = s[
|
|
2047
|
+
y.content = s[_].trim(), y.children = [], u.push("th_close", "th", -1);
|
|
2019
2048
|
}
|
|
2020
2049
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
2021
2050
|
let E, k = 0;
|
|
2022
2051
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2023
|
-
let
|
|
2024
|
-
for (let y = 0,
|
|
2025
|
-
if (
|
|
2026
|
-
|
|
2052
|
+
let _ = !1;
|
|
2053
|
+
for (let y = 0, M = h.length; y < M; y++)
|
|
2054
|
+
if (h[y](u, r, t, !0)) {
|
|
2055
|
+
_ = !0;
|
|
2027
2056
|
break;
|
|
2028
2057
|
}
|
|
2029
|
-
if (
|
|
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))
|
|
2030
2059
|
break;
|
|
2031
2060
|
if (r === e + 2) {
|
|
2032
2061
|
const y = u.push("tbody_open", "tbody", 1);
|
|
@@ -2035,16 +2064,16 @@ function zo(u, e, t, n) {
|
|
|
2035
2064
|
const A = u.push("tr_open", "tr", 1);
|
|
2036
2065
|
A.map = [r, r + 1];
|
|
2037
2066
|
for (let y = 0; y < f; y++) {
|
|
2038
|
-
const
|
|
2039
|
-
d[y] && (
|
|
2040
|
-
const
|
|
2041
|
-
|
|
2067
|
+
const M = u.push("td_open", "td", 1);
|
|
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);
|
|
2042
2071
|
}
|
|
2043
2072
|
u.push("tr_close", "tr", -1);
|
|
2044
2073
|
}
|
|
2045
|
-
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType =
|
|
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;
|
|
2046
2075
|
}
|
|
2047
|
-
function
|
|
2076
|
+
function Ho(u, e, t) {
|
|
2048
2077
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2049
2078
|
return !1;
|
|
2050
2079
|
let n = e + 1, r = n;
|
|
@@ -2064,7 +2093,7 @@ function qo(u, e, t) {
|
|
|
2064
2093
|
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2065
2094
|
`, o.map = [e, u.line], !0;
|
|
2066
2095
|
}
|
|
2067
|
-
function
|
|
2096
|
+
function $o(u, e, t, n) {
|
|
2068
2097
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2069
2098
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2070
2099
|
return !1;
|
|
@@ -2081,72 +2110,72 @@ function Uo(u, e, t, n) {
|
|
|
2081
2110
|
return !1;
|
|
2082
2111
|
if (n)
|
|
2083
2112
|
return !0;
|
|
2084
|
-
let f = e,
|
|
2113
|
+
let f = e, m = !1;
|
|
2085
2114
|
for (; f++, !(f >= t || (r = c = u.bMarks[f] + u.tShift[f], o = u.eMarks[f], r < o && u.sCount[f] < u.blkIndent)); )
|
|
2086
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)))) {
|
|
2087
|
-
|
|
2116
|
+
m = !0;
|
|
2088
2117
|
break;
|
|
2089
2118
|
}
|
|
2090
|
-
a = u.sCount[e], u.line = f + (
|
|
2091
|
-
const
|
|
2092
|
-
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;
|
|
2093
2122
|
}
|
|
2094
|
-
function
|
|
2123
|
+
function jo(u, e, t, n) {
|
|
2095
2124
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2096
2125
|
const i = u.lineMax;
|
|
2097
2126
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2098
2127
|
return !1;
|
|
2099
2128
|
if (n)
|
|
2100
2129
|
return !0;
|
|
2101
|
-
const c = [], a = [], s = [], d = [], f = u.md.block.ruler.getRules("blockquote"),
|
|
2130
|
+
const c = [], a = [], s = [], d = [], f = u.md.block.ruler.getRules("blockquote"), m = u.parentType;
|
|
2102
2131
|
u.parentType = "blockquote";
|
|
2103
|
-
let
|
|
2104
|
-
for (
|
|
2105
|
-
const k = u.sCount[
|
|
2106
|
-
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)
|
|
2107
2136
|
break;
|
|
2108
2137
|
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2109
|
-
let A = u.sCount[
|
|
2110
|
-
u.src.charCodeAt(r) === 32 ? (r++, A++,
|
|
2111
|
-
let
|
|
2112
|
-
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; ) {
|
|
2113
2142
|
const nu = u.src.charCodeAt(r);
|
|
2114
2143
|
if (w(nu))
|
|
2115
|
-
nu === 9 ?
|
|
2144
|
+
nu === 9 ? Y += 4 - (Y + u.bsCount[p] + (M ? 1 : 0)) % 4 : Y++;
|
|
2116
2145
|
else
|
|
2117
2146
|
break;
|
|
2118
2147
|
r++;
|
|
2119
2148
|
}
|
|
2120
|
-
|
|
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];
|
|
2121
2150
|
continue;
|
|
2122
2151
|
}
|
|
2123
|
-
if (
|
|
2152
|
+
if (h)
|
|
2124
2153
|
break;
|
|
2125
|
-
let
|
|
2154
|
+
let _ = !1;
|
|
2126
2155
|
for (let A = 0, y = f.length; A < y; A++)
|
|
2127
|
-
if (f[A](u,
|
|
2128
|
-
|
|
2156
|
+
if (f[A](u, p, t, !0)) {
|
|
2157
|
+
_ = !0;
|
|
2129
2158
|
break;
|
|
2130
2159
|
}
|
|
2131
|
-
if (
|
|
2132
|
-
u.lineMax =
|
|
2160
|
+
if (_) {
|
|
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);
|
|
2133
2162
|
break;
|
|
2134
2163
|
}
|
|
2135
|
-
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;
|
|
2136
2165
|
}
|
|
2137
2166
|
const C = u.blkIndent;
|
|
2138
2167
|
u.blkIndent = 0;
|
|
2139
2168
|
const D = u.push("blockquote_open", "blockquote", 1);
|
|
2140
2169
|
D.markup = ">";
|
|
2141
2170
|
const T = [e, 0];
|
|
2142
|
-
D.map = T, u.md.block.tokenize(u, e,
|
|
2171
|
+
D.map = T, u.md.block.tokenize(u, e, p);
|
|
2143
2172
|
const E = u.push("blockquote_close", "blockquote", -1);
|
|
2144
|
-
E.markup = ">", u.lineMax = i, u.parentType =
|
|
2173
|
+
E.markup = ">", u.lineMax = i, u.parentType = m, T[1] = u.line;
|
|
2145
2174
|
for (let k = 0; k < d.length; k++)
|
|
2146
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];
|
|
2147
2176
|
return u.blkIndent = C, !0;
|
|
2148
2177
|
}
|
|
2149
|
-
function
|
|
2178
|
+
function Go(u, e, t, n) {
|
|
2150
2179
|
const r = u.eMarks[e];
|
|
2151
2180
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2152
2181
|
return !1;
|
|
@@ -2169,7 +2198,7 @@ function $o(u, e, t, n) {
|
|
|
2169
2198
|
const a = u.push("hr", "hr", 0);
|
|
2170
2199
|
return a.map = [e, u.line], a.markup = Array(c + 1).join(String.fromCharCode(i)), !0;
|
|
2171
2200
|
}
|
|
2172
|
-
function
|
|
2201
|
+
function mt(u, e) {
|
|
2173
2202
|
const t = u.eMarks[e];
|
|
2174
2203
|
let n = u.bMarks[e] + u.tShift[e];
|
|
2175
2204
|
const r = u.src.charCodeAt(n++);
|
|
@@ -2182,7 +2211,7 @@ function pt(u, e) {
|
|
|
2182
2211
|
}
|
|
2183
2212
|
return n;
|
|
2184
2213
|
}
|
|
2185
|
-
function
|
|
2214
|
+
function _t(u, e) {
|
|
2186
2215
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2187
2216
|
let r = t;
|
|
2188
2217
|
if (r + 1 >= n)
|
|
@@ -2204,78 +2233,78 @@ function bt(u, e) {
|
|
|
2204
2233
|
}
|
|
2205
2234
|
return r < n && (o = u.src.charCodeAt(r), !w(o)) ? -1 : r;
|
|
2206
2235
|
}
|
|
2207
|
-
function
|
|
2236
|
+
function Wo(u, e) {
|
|
2208
2237
|
const t = u.level + 2;
|
|
2209
2238
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2210
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);
|
|
2211
2240
|
}
|
|
2212
|
-
function
|
|
2241
|
+
function Zo(u, e, t, n) {
|
|
2213
2242
|
let r, o, i, c, a = e, s = !0;
|
|
2214
2243
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2215
2244
|
return !1;
|
|
2216
2245
|
let d = !1;
|
|
2217
2246
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (d = !0);
|
|
2218
|
-
let f,
|
|
2219
|
-
if ((
|
|
2220
|
-
if (f = !0, i = u.bMarks[a] + u.tShift[a],
|
|
2221
|
-
} else if ((
|
|
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)
|
|
2222
2251
|
f = !1;
|
|
2223
2252
|
else
|
|
2224
2253
|
return !1;
|
|
2225
|
-
if (d && u.skipSpaces(
|
|
2254
|
+
if (d && u.skipSpaces(h) >= u.eMarks[a])
|
|
2226
2255
|
return !1;
|
|
2227
2256
|
if (n)
|
|
2228
2257
|
return !0;
|
|
2229
|
-
const
|
|
2230
|
-
f ? (c = u.push("ordered_list_open", "ol", 1),
|
|
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);
|
|
2231
2260
|
const D = [a, 0];
|
|
2232
|
-
c.map = D, c.markup = String.fromCharCode(
|
|
2261
|
+
c.map = D, c.markup = String.fromCharCode(p);
|
|
2233
2262
|
let T = !1;
|
|
2234
2263
|
const E = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
2235
2264
|
for (u.parentType = "list"; a < t; ) {
|
|
2236
|
-
o =
|
|
2237
|
-
const
|
|
2238
|
-
let A =
|
|
2265
|
+
o = h, r = u.eMarks[a];
|
|
2266
|
+
const _ = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
|
2267
|
+
let A = _;
|
|
2239
2268
|
for (; o < r; ) {
|
|
2240
|
-
const
|
|
2241
|
-
if (
|
|
2269
|
+
const pu = u.src.charCodeAt(o);
|
|
2270
|
+
if (pu === 9)
|
|
2242
2271
|
A += 4 - (A + u.bsCount[a]) % 4;
|
|
2243
|
-
else if (
|
|
2272
|
+
else if (pu === 32)
|
|
2244
2273
|
A++;
|
|
2245
2274
|
else
|
|
2246
2275
|
break;
|
|
2247
2276
|
o++;
|
|
2248
2277
|
}
|
|
2249
2278
|
const y = o;
|
|
2250
|
-
let
|
|
2251
|
-
y >= r ?
|
|
2252
|
-
const
|
|
2253
|
-
c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(
|
|
2279
|
+
let M;
|
|
2280
|
+
y >= r ? M = 1 : M = A - _, M > 4 && (M = 1);
|
|
2281
|
+
const Y = _ + M;
|
|
2282
|
+
c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(p);
|
|
2254
2283
|
const nu = [a, 0];
|
|
2255
|
-
c.map = nu, f && (c.info = u.src.slice(i,
|
|
2256
|
-
const gu = u.tight,
|
|
2257
|
-
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)
|
|
2258
2287
|
break;
|
|
2259
|
-
let
|
|
2260
|
-
for (let
|
|
2261
|
-
if (E[
|
|
2262
|
-
|
|
2288
|
+
let Fu = !1;
|
|
2289
|
+
for (let pu = 0, Ie = E.length; pu < Ie; pu++)
|
|
2290
|
+
if (E[pu](u, a, t, !0)) {
|
|
2291
|
+
Fu = !0;
|
|
2263
2292
|
break;
|
|
2264
2293
|
}
|
|
2265
|
-
if (
|
|
2294
|
+
if (Fu)
|
|
2266
2295
|
break;
|
|
2267
2296
|
if (f) {
|
|
2268
|
-
if (
|
|
2297
|
+
if (h = _t(u, a), h < 0)
|
|
2269
2298
|
break;
|
|
2270
2299
|
i = u.bMarks[a] + u.tShift[a];
|
|
2271
|
-
} else if (
|
|
2300
|
+
} else if (h = mt(u, a), h < 0)
|
|
2272
2301
|
break;
|
|
2273
|
-
if (
|
|
2302
|
+
if (p !== u.src.charCodeAt(h - 1))
|
|
2274
2303
|
break;
|
|
2275
2304
|
}
|
|
2276
|
-
return f ? c = u.push("ordered_list_close", "ol", -1) : c = u.push("bullet_list_close", "ul", -1), c.markup = String.fromCharCode(
|
|
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;
|
|
2277
2306
|
}
|
|
2278
|
-
function
|
|
2307
|
+
function Vo(u, e, t, n) {
|
|
2279
2308
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], i = e + 1;
|
|
2280
2309
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2281
2310
|
return !1;
|
|
@@ -2283,17 +2312,17 @@ function Wo(u, e, t, n) {
|
|
|
2283
2312
|
const k = u.lineMax;
|
|
2284
2313
|
if (E >= k || u.isEmpty(E))
|
|
2285
2314
|
return null;
|
|
2286
|
-
let
|
|
2287
|
-
if (u.sCount[E] - u.blkIndent > 3 && (
|
|
2288
|
-
const
|
|
2315
|
+
let _ = !1;
|
|
2316
|
+
if (u.sCount[E] - u.blkIndent > 3 && (_ = !0), u.sCount[E] < 0 && (_ = !0), !_) {
|
|
2317
|
+
const M = u.md.block.ruler.getRules("reference"), Y = u.parentType;
|
|
2289
2318
|
u.parentType = "reference";
|
|
2290
2319
|
let nu = !1;
|
|
2291
|
-
for (let gu = 0,
|
|
2292
|
-
if (
|
|
2320
|
+
for (let gu = 0, L = M.length; gu < L; gu++)
|
|
2321
|
+
if (M[gu](u, E, k, !0)) {
|
|
2293
2322
|
nu = !0;
|
|
2294
2323
|
break;
|
|
2295
2324
|
}
|
|
2296
|
-
if (u.parentType =
|
|
2325
|
+
if (u.parentType = Y, nu)
|
|
2297
2326
|
return null;
|
|
2298
2327
|
}
|
|
2299
2328
|
const A = u.bMarks[E] + u.tShift[E], y = u.eMarks[E];
|
|
@@ -2333,7 +2362,7 @@ function Wo(u, e, t, n) {
|
|
|
2333
2362
|
if (!u.md.validateLink(f))
|
|
2334
2363
|
return !1;
|
|
2335
2364
|
r = d.pos;
|
|
2336
|
-
const
|
|
2365
|
+
const m = r, h = i, p = r;
|
|
2337
2366
|
for (; r < o; r++) {
|
|
2338
2367
|
const E = a.charCodeAt(r);
|
|
2339
2368
|
if (E === 10) {
|
|
@@ -2348,14 +2377,14 @@ function Wo(u, e, t, n) {
|
|
|
2348
2377
|
a += E, r = o, o = a.length, i++, C = u.md.helpers.parseLinkTitle(a, r, o, C);
|
|
2349
2378
|
}
|
|
2350
2379
|
let D;
|
|
2351
|
-
for (r < o &&
|
|
2380
|
+
for (r < o && p !== r && C.ok ? (D = C.str, r = C.pos) : (D = "", r = m, i = h); r < o; ) {
|
|
2352
2381
|
const E = a.charCodeAt(r);
|
|
2353
2382
|
if (!w(E))
|
|
2354
2383
|
break;
|
|
2355
2384
|
r++;
|
|
2356
2385
|
}
|
|
2357
2386
|
if (r < o && a.charCodeAt(r) !== 10 && D)
|
|
2358
|
-
for (D = "", r =
|
|
2387
|
+
for (D = "", r = m, i = h; r < o; ) {
|
|
2359
2388
|
const E = a.charCodeAt(r);
|
|
2360
2389
|
if (!w(E))
|
|
2361
2390
|
break;
|
|
@@ -2363,10 +2392,10 @@ function Wo(u, e, t, n) {
|
|
|
2363
2392
|
}
|
|
2364
2393
|
if (r < o && a.charCodeAt(r) !== 10)
|
|
2365
2394
|
return !1;
|
|
2366
|
-
const T =
|
|
2395
|
+
const T = we(a.slice(1, s));
|
|
2367
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;
|
|
2368
2397
|
}
|
|
2369
|
-
const
|
|
2398
|
+
const Yo = [
|
|
2370
2399
|
"address",
|
|
2371
2400
|
"article",
|
|
2372
2401
|
"aside",
|
|
@@ -2429,30 +2458,30 @@ const Zo = [
|
|
|
2429
2458
|
"tr",
|
|
2430
2459
|
"track",
|
|
2431
2460
|
"ul"
|
|
2432
|
-
],
|
|
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 = [
|
|
2433
2462
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2434
2463
|
[/^<!--/, /-->/, !0],
|
|
2435
2464
|
[/^<\?/, /\?>/, !0],
|
|
2436
2465
|
[/^<![A-Z]/, />/, !0],
|
|
2437
2466
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2438
|
-
[new RegExp("^</?(" +
|
|
2439
|
-
[new RegExp(
|
|
2467
|
+
[new RegExp("^</?(" + Yo.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2468
|
+
[new RegExp(ic.source + "\\s*$"), /^$/, !1]
|
|
2440
2469
|
];
|
|
2441
|
-
function
|
|
2470
|
+
function ac(u, e, t, n) {
|
|
2442
2471
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2443
2472
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2444
2473
|
return !1;
|
|
2445
2474
|
let i = u.src.slice(r, o), c = 0;
|
|
2446
|
-
for (; c <
|
|
2475
|
+
for (; c < Nu.length && !Nu[c][0].test(i); c++)
|
|
2447
2476
|
;
|
|
2448
|
-
if (c ===
|
|
2477
|
+
if (c === Nu.length)
|
|
2449
2478
|
return !1;
|
|
2450
2479
|
if (n)
|
|
2451
|
-
return
|
|
2480
|
+
return Nu[c][2];
|
|
2452
2481
|
let a = e + 1;
|
|
2453
|
-
if (!
|
|
2482
|
+
if (!Nu[c][1].test(i)) {
|
|
2454
2483
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2455
|
-
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)) {
|
|
2456
2485
|
i.length !== 0 && a++;
|
|
2457
2486
|
break;
|
|
2458
2487
|
}
|
|
@@ -2461,7 +2490,7 @@ function cc(u, e, t, n) {
|
|
|
2461
2490
|
const s = u.push("html_block", "", 0);
|
|
2462
2491
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2463
2492
|
}
|
|
2464
|
-
function
|
|
2493
|
+
function sc(u, e, t, n) {
|
|
2465
2494
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2466
2495
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2467
2496
|
return !1;
|
|
@@ -2485,7 +2514,7 @@ function ic(u, e, t, n) {
|
|
|
2485
2514
|
const f = u.push("heading_close", "h" + String(c), -1);
|
|
2486
2515
|
return f.markup = "########".slice(0, c), !0;
|
|
2487
2516
|
}
|
|
2488
|
-
function
|
|
2517
|
+
function lc(u, e, t) {
|
|
2489
2518
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2490
2519
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2491
2520
|
return !1;
|
|
@@ -2496,22 +2525,22 @@ function ac(u, e, t) {
|
|
|
2496
2525
|
if (u.sCount[c] - u.blkIndent > 3)
|
|
2497
2526
|
continue;
|
|
2498
2527
|
if (u.sCount[c] >= u.blkIndent) {
|
|
2499
|
-
let
|
|
2500
|
-
const
|
|
2501
|
-
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))) {
|
|
2502
2531
|
o = i === 61 ? 1 : 2;
|
|
2503
2532
|
break;
|
|
2504
2533
|
}
|
|
2505
2534
|
}
|
|
2506
2535
|
if (u.sCount[c] < 0)
|
|
2507
2536
|
continue;
|
|
2508
|
-
let
|
|
2509
|
-
for (let
|
|
2510
|
-
if (n[
|
|
2511
|
-
|
|
2537
|
+
let m = !1;
|
|
2538
|
+
for (let h = 0, p = n.length; h < p; h++)
|
|
2539
|
+
if (n[h](u, c, t, !0)) {
|
|
2540
|
+
m = !0;
|
|
2512
2541
|
break;
|
|
2513
2542
|
}
|
|
2514
|
-
if (
|
|
2543
|
+
if (m)
|
|
2515
2544
|
break;
|
|
2516
2545
|
}
|
|
2517
2546
|
if (!o)
|
|
@@ -2525,7 +2554,7 @@ function ac(u, e, t) {
|
|
|
2525
2554
|
const f = u.push("heading_close", "h" + String(o), -1);
|
|
2526
2555
|
return f.markup = String.fromCharCode(i), u.parentType = r, !0;
|
|
2527
2556
|
}
|
|
2528
|
-
function
|
|
2557
|
+
function fc(u, e, t) {
|
|
2529
2558
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2530
2559
|
let o = e + 1;
|
|
2531
2560
|
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
@@ -2547,27 +2576,27 @@ function sc(u, e, t) {
|
|
|
2547
2576
|
const a = u.push("inline", "", 0);
|
|
2548
2577
|
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2549
2578
|
}
|
|
2550
|
-
const
|
|
2579
|
+
const ke = [
|
|
2551
2580
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2552
2581
|
// which can be terminated by this one.
|
|
2553
|
-
["table",
|
|
2554
|
-
["code",
|
|
2555
|
-
["fence",
|
|
2556
|
-
["blockquote",
|
|
2557
|
-
["hr",
|
|
2558
|
-
["list",
|
|
2559
|
-
["reference",
|
|
2560
|
-
["html_block",
|
|
2561
|
-
["heading",
|
|
2562
|
-
["lheading",
|
|
2563
|
-
["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]
|
|
2564
2593
|
];
|
|
2565
|
-
function
|
|
2566
|
-
this.ruler = new
|
|
2567
|
-
for (let u = 0; u <
|
|
2568
|
-
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() });
|
|
2569
2598
|
}
|
|
2570
|
-
|
|
2599
|
+
ve.prototype.tokenize = function(u, e, t) {
|
|
2571
2600
|
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2572
2601
|
let i = e, c = !1;
|
|
2573
2602
|
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
|
@@ -2587,36 +2616,36 @@ Se.prototype.tokenize = function(u, e, t) {
|
|
|
2587
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);
|
|
2588
2617
|
}
|
|
2589
2618
|
};
|
|
2590
|
-
|
|
2619
|
+
ve.prototype.parse = function(u, e, t, n) {
|
|
2591
2620
|
if (!u)
|
|
2592
2621
|
return;
|
|
2593
2622
|
const r = new this.State(u, e, t, n);
|
|
2594
2623
|
this.tokenize(r, r.line, r.lineMax);
|
|
2595
2624
|
};
|
|
2596
|
-
|
|
2597
|
-
function
|
|
2625
|
+
ve.prototype.State = au;
|
|
2626
|
+
function ae(u, e, t, n) {
|
|
2598
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;
|
|
2599
2628
|
}
|
|
2600
|
-
|
|
2629
|
+
ae.prototype.pushPending = function() {
|
|
2601
2630
|
const u = new tu("text", "", 0);
|
|
2602
2631
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2603
2632
|
};
|
|
2604
|
-
|
|
2633
|
+
ae.prototype.push = function(u, e, t) {
|
|
2605
2634
|
this.pending && this.pushPending();
|
|
2606
2635
|
const n = new tu(u, e, t);
|
|
2607
2636
|
let r = null;
|
|
2608
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;
|
|
2609
2638
|
};
|
|
2610
|
-
|
|
2639
|
+
ae.prototype.scanDelims = function(u, e) {
|
|
2611
2640
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2612
2641
|
let o = u;
|
|
2613
2642
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2614
2643
|
o++;
|
|
2615
|
-
const i = o - u, c = o < t ? this.src.charCodeAt(o) : 32, a =
|
|
2616
|
-
return { can_open:
|
|
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 };
|
|
2617
2646
|
};
|
|
2618
|
-
|
|
2619
|
-
function
|
|
2647
|
+
ae.prototype.Token = tu;
|
|
2648
|
+
function dc(u) {
|
|
2620
2649
|
switch (u) {
|
|
2621
2650
|
case 10:
|
|
2622
2651
|
case 33:
|
|
@@ -2646,18 +2675,18 @@ function lc(u) {
|
|
|
2646
2675
|
return !1;
|
|
2647
2676
|
}
|
|
2648
2677
|
}
|
|
2649
|
-
function
|
|
2678
|
+
function pc(u, e) {
|
|
2650
2679
|
let t = u.pos;
|
|
2651
|
-
for (; t < u.posMax && !
|
|
2680
|
+
for (; t < u.posMax && !dc(u.src.charCodeAt(t)); )
|
|
2652
2681
|
t++;
|
|
2653
2682
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2654
2683
|
}
|
|
2655
|
-
const
|
|
2656
|
-
function
|
|
2684
|
+
const hc = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2685
|
+
function bc(u, e) {
|
|
2657
2686
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2658
2687
|
const t = u.pos, n = u.posMax;
|
|
2659
2688
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2660
|
-
const r = u.pending.match(
|
|
2689
|
+
const r = u.pending.match(hc);
|
|
2661
2690
|
if (!r) return !1;
|
|
2662
2691
|
const o = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2663
2692
|
if (!i) return !1;
|
|
@@ -2677,7 +2706,7 @@ function hc(u, e) {
|
|
|
2677
2706
|
}
|
|
2678
2707
|
return u.pos += c.length - o.length, !0;
|
|
2679
2708
|
}
|
|
2680
|
-
function
|
|
2709
|
+
function mc(u, e) {
|
|
2681
2710
|
let t = u.pos;
|
|
2682
2711
|
if (u.src.charCodeAt(t) !== 10)
|
|
2683
2712
|
return !1;
|
|
@@ -2696,13 +2725,13 @@ function pc(u, e) {
|
|
|
2696
2725
|
t++;
|
|
2697
2726
|
return u.pos = t, !0;
|
|
2698
2727
|
}
|
|
2699
|
-
const
|
|
2728
|
+
const g0 = [];
|
|
2700
2729
|
for (let u = 0; u < 256; u++)
|
|
2701
|
-
|
|
2730
|
+
g0.push(0);
|
|
2702
2731
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2703
|
-
|
|
2732
|
+
g0[u.charCodeAt(0)] = 1;
|
|
2704
2733
|
});
|
|
2705
|
-
function
|
|
2734
|
+
function _c(u, e) {
|
|
2706
2735
|
let t = u.pos;
|
|
2707
2736
|
const n = u.posMax;
|
|
2708
2737
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -2720,11 +2749,11 @@ function bc(u, e) {
|
|
|
2720
2749
|
const i = "\\" + o;
|
|
2721
2750
|
if (!e) {
|
|
2722
2751
|
const c = u.push("text_special", "", 0);
|
|
2723
|
-
r < 256 &&
|
|
2752
|
+
r < 256 && g0[r] !== 0 ? c.content = o : c.content = i, c.markup = i, c.info = "escape";
|
|
2724
2753
|
}
|
|
2725
2754
|
return u.pos = t + 1, !0;
|
|
2726
2755
|
}
|
|
2727
|
-
function
|
|
2756
|
+
function xc(u, e) {
|
|
2728
2757
|
let t = u.pos;
|
|
2729
2758
|
if (u.src.charCodeAt(t) !== 96)
|
|
2730
2759
|
return !1;
|
|
@@ -2752,7 +2781,7 @@ function _c(u, e) {
|
|
|
2752
2781
|
}
|
|
2753
2782
|
return u.backticksScanned = !0, e || (u.pending += i), u.pos += c, !0;
|
|
2754
2783
|
}
|
|
2755
|
-
function
|
|
2784
|
+
function gc(u, e) {
|
|
2756
2785
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2757
2786
|
if (e || n !== 126)
|
|
2758
2787
|
return !1;
|
|
@@ -2775,7 +2804,7 @@ function mc(u, e) {
|
|
|
2775
2804
|
});
|
|
2776
2805
|
return u.pos += r.length, !0;
|
|
2777
2806
|
}
|
|
2778
|
-
function
|
|
2807
|
+
function xt(u, e) {
|
|
2779
2808
|
let t;
|
|
2780
2809
|
const n = [], r = e.length;
|
|
2781
2810
|
for (let o = 0; o < r; o++) {
|
|
@@ -2793,17 +2822,17 @@ function _t(u, e) {
|
|
|
2793
2822
|
i--, o !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[o], u.tokens[o] = t);
|
|
2794
2823
|
}
|
|
2795
2824
|
}
|
|
2796
|
-
function
|
|
2825
|
+
function kc(u) {
|
|
2797
2826
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2798
|
-
|
|
2827
|
+
xt(u, u.delimiters);
|
|
2799
2828
|
for (let n = 0; n < t; n++)
|
|
2800
|
-
e[n] && e[n].delimiters &&
|
|
2829
|
+
e[n] && e[n].delimiters && xt(u, e[n].delimiters);
|
|
2801
2830
|
}
|
|
2802
|
-
const
|
|
2803
|
-
tokenize:
|
|
2804
|
-
postProcess:
|
|
2831
|
+
const jt = {
|
|
2832
|
+
tokenize: gc,
|
|
2833
|
+
postProcess: kc
|
|
2805
2834
|
};
|
|
2806
|
-
function
|
|
2835
|
+
function Ec(u, e) {
|
|
2807
2836
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2808
2837
|
if (e || n !== 95 && n !== 42)
|
|
2809
2838
|
return !1;
|
|
@@ -2833,7 +2862,7 @@ function gc(u, e) {
|
|
|
2833
2862
|
}
|
|
2834
2863
|
return u.pos += r.length, !0;
|
|
2835
2864
|
}
|
|
2836
|
-
function
|
|
2865
|
+
function gt(u, e) {
|
|
2837
2866
|
const t = e.length;
|
|
2838
2867
|
for (let n = t - 1; n >= 0; n--) {
|
|
2839
2868
|
const r = e[n];
|
|
@@ -2847,84 +2876,84 @@ function mt(u, e) {
|
|
|
2847
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--);
|
|
2848
2877
|
}
|
|
2849
2878
|
}
|
|
2850
|
-
function
|
|
2879
|
+
function Ac(u) {
|
|
2851
2880
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2852
|
-
|
|
2881
|
+
gt(u, u.delimiters);
|
|
2853
2882
|
for (let n = 0; n < t; n++)
|
|
2854
|
-
e[n] && e[n].delimiters &&
|
|
2883
|
+
e[n] && e[n].delimiters && gt(u, e[n].delimiters);
|
|
2855
2884
|
}
|
|
2856
|
-
const
|
|
2857
|
-
tokenize:
|
|
2858
|
-
postProcess:
|
|
2885
|
+
const Gt = {
|
|
2886
|
+
tokenize: Ec,
|
|
2887
|
+
postProcess: Ac
|
|
2859
2888
|
};
|
|
2860
|
-
function
|
|
2889
|
+
function Cc(u, e) {
|
|
2861
2890
|
let t, n, r, o, i = "", c = "", a = u.pos, s = !0;
|
|
2862
2891
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2863
2892
|
return !1;
|
|
2864
|
-
const d = u.pos, f = u.posMax,
|
|
2865
|
-
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)
|
|
2866
2895
|
return !1;
|
|
2867
|
-
let
|
|
2868
|
-
if (
|
|
2869
|
-
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++)
|
|
2870
2899
|
;
|
|
2871
|
-
if (
|
|
2900
|
+
if (p >= f)
|
|
2872
2901
|
return !1;
|
|
2873
|
-
if (a =
|
|
2874
|
-
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++)
|
|
2875
2904
|
;
|
|
2876
|
-
if (r = u.md.helpers.parseLinkTitle(u.src,
|
|
2877
|
-
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++)
|
|
2878
2907
|
;
|
|
2879
2908
|
}
|
|
2880
|
-
(
|
|
2909
|
+
(p >= f || u.src.charCodeAt(p) !== 41) && (s = !0), p++;
|
|
2881
2910
|
}
|
|
2882
2911
|
if (s) {
|
|
2883
2912
|
if (typeof u.env.references > "u")
|
|
2884
2913
|
return !1;
|
|
2885
|
-
if (
|
|
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)
|
|
2886
2915
|
return u.pos = d, !1;
|
|
2887
2916
|
i = o.href, c = o.title;
|
|
2888
2917
|
}
|
|
2889
2918
|
if (!e) {
|
|
2890
|
-
u.pos =
|
|
2919
|
+
u.pos = m, u.posMax = h;
|
|
2891
2920
|
const C = u.push("link_open", "a", 1), D = [["href", i]];
|
|
2892
2921
|
C.attrs = D, c && D.push(["title", c]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2893
2922
|
}
|
|
2894
|
-
return u.pos =
|
|
2923
|
+
return u.pos = p, u.posMax = f, !0;
|
|
2895
2924
|
}
|
|
2896
|
-
function
|
|
2925
|
+
function Dc(u, e) {
|
|
2897
2926
|
let t, n, r, o, i, c, a, s, d = "";
|
|
2898
|
-
const f = u.pos,
|
|
2927
|
+
const f = u.pos, m = u.posMax;
|
|
2899
2928
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
2900
2929
|
return !1;
|
|
2901
|
-
const
|
|
2902
|
-
if (
|
|
2930
|
+
const h = u.pos + 2, p = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
2931
|
+
if (p < 0)
|
|
2903
2932
|
return !1;
|
|
2904
|
-
if (o =
|
|
2905
|
-
for (o++; o <
|
|
2933
|
+
if (o = p + 1, o < m && u.src.charCodeAt(o) === 40) {
|
|
2934
|
+
for (o++; o < m && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
2906
2935
|
;
|
|
2907
|
-
if (o >=
|
|
2936
|
+
if (o >= m)
|
|
2908
2937
|
return !1;
|
|
2909
|
-
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 <
|
|
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++)
|
|
2910
2939
|
;
|
|
2911
|
-
if (c = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o <
|
|
2912
|
-
for (a = c.str, o = c.pos; o <
|
|
2940
|
+
if (c = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < m && s !== o && c.ok)
|
|
2941
|
+
for (a = c.str, o = c.pos; o < m && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
2913
2942
|
;
|
|
2914
2943
|
else
|
|
2915
2944
|
a = "";
|
|
2916
|
-
if (o >=
|
|
2945
|
+
if (o >= m || u.src.charCodeAt(o) !== 41)
|
|
2917
2946
|
return u.pos = f, !1;
|
|
2918
2947
|
o++;
|
|
2919
2948
|
} else {
|
|
2920
2949
|
if (typeof u.env.references > "u")
|
|
2921
2950
|
return !1;
|
|
2922
|
-
if (o <
|
|
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)
|
|
2923
2952
|
return u.pos = f, !1;
|
|
2924
2953
|
d = i.href, a = i.title;
|
|
2925
2954
|
}
|
|
2926
2955
|
if (!e) {
|
|
2927
|
-
n = u.src.slice(
|
|
2956
|
+
n = u.src.slice(h, p);
|
|
2928
2957
|
const C = [];
|
|
2929
2958
|
u.md.inline.parse(
|
|
2930
2959
|
n,
|
|
@@ -2935,10 +2964,10 @@ function Ac(u, e) {
|
|
|
2935
2964
|
const D = u.push("image", "img", 0), T = [["src", d], ["alt", ""]];
|
|
2936
2965
|
D.attrs = T, D.children = C, D.content = n, a && T.push(["title", a]);
|
|
2937
2966
|
}
|
|
2938
|
-
return u.pos = o, u.posMax =
|
|
2967
|
+
return u.pos = o, u.posMax = m, !0;
|
|
2939
2968
|
}
|
|
2940
|
-
const
|
|
2941
|
-
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) {
|
|
2942
2971
|
let t = u.pos;
|
|
2943
2972
|
if (u.src.charCodeAt(t) !== 60)
|
|
2944
2973
|
return !1;
|
|
@@ -2950,7 +2979,7 @@ function yc(u, e) {
|
|
|
2950
2979
|
if (i === 62) break;
|
|
2951
2980
|
}
|
|
2952
2981
|
const o = u.src.slice(n + 1, t);
|
|
2953
|
-
if (
|
|
2982
|
+
if (Fc.test(o)) {
|
|
2954
2983
|
const i = u.md.normalizeLink(o);
|
|
2955
2984
|
if (!u.md.validateLink(i))
|
|
2956
2985
|
return !1;
|
|
@@ -2964,7 +2993,7 @@ function yc(u, e) {
|
|
|
2964
2993
|
}
|
|
2965
2994
|
return u.pos += o.length + 2, !0;
|
|
2966
2995
|
}
|
|
2967
|
-
if (
|
|
2996
|
+
if (yc.test(o)) {
|
|
2968
2997
|
const i = u.md.normalizeLink("mailto:" + o);
|
|
2969
2998
|
if (!u.md.validateLink(i))
|
|
2970
2999
|
return !1;
|
|
@@ -2980,51 +3009,51 @@ function yc(u, e) {
|
|
|
2980
3009
|
}
|
|
2981
3010
|
return !1;
|
|
2982
3011
|
}
|
|
2983
|
-
function
|
|
3012
|
+
function Sc(u) {
|
|
2984
3013
|
return /^<a[>\s]/i.test(u);
|
|
2985
3014
|
}
|
|
2986
|
-
function
|
|
3015
|
+
function wc(u) {
|
|
2987
3016
|
return /^<\/a\s*>/i.test(u);
|
|
2988
3017
|
}
|
|
2989
|
-
function
|
|
3018
|
+
function vc(u) {
|
|
2990
3019
|
const e = u | 32;
|
|
2991
3020
|
return e >= 97 && e <= 122;
|
|
2992
3021
|
}
|
|
2993
|
-
function
|
|
3022
|
+
function Rc(u, e) {
|
|
2994
3023
|
if (!u.md.options.html)
|
|
2995
3024
|
return !1;
|
|
2996
3025
|
const t = u.posMax, n = u.pos;
|
|
2997
3026
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
2998
3027
|
return !1;
|
|
2999
3028
|
const r = u.src.charCodeAt(n + 1);
|
|
3000
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
3029
|
+
if (r !== 33 && r !== 63 && r !== 47 && !vc(r))
|
|
3001
3030
|
return !1;
|
|
3002
|
-
const o = u.src.slice(n).match(
|
|
3031
|
+
const o = u.src.slice(n).match(cc);
|
|
3003
3032
|
if (!o)
|
|
3004
3033
|
return !1;
|
|
3005
3034
|
if (!e) {
|
|
3006
3035
|
const i = u.push("html_inline", "", 0);
|
|
3007
|
-
i.content = o[0],
|
|
3036
|
+
i.content = o[0], Sc(i.content) && u.linkLevel++, wc(i.content) && u.linkLevel--;
|
|
3008
3037
|
}
|
|
3009
3038
|
return u.pos += o[0].length, !0;
|
|
3010
3039
|
}
|
|
3011
|
-
const
|
|
3012
|
-
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) {
|
|
3013
3042
|
const t = u.pos, n = u.posMax;
|
|
3014
3043
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3015
3044
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3016
|
-
const o = u.src.slice(t).match(
|
|
3045
|
+
const o = u.src.slice(t).match(Ic);
|
|
3017
3046
|
if (o) {
|
|
3018
3047
|
if (!e) {
|
|
3019
3048
|
const i = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), c = u.push("text_special", "", 0);
|
|
3020
|
-
c.content =
|
|
3049
|
+
c.content = _0(i) ? Fe(i) : Fe(65533), c.markup = o[0], c.info = "entity";
|
|
3021
3050
|
}
|
|
3022
3051
|
return u.pos += o[0].length, !0;
|
|
3023
3052
|
}
|
|
3024
3053
|
} else {
|
|
3025
|
-
const o = u.src.slice(t).match(
|
|
3054
|
+
const o = u.src.slice(t).match(Mc);
|
|
3026
3055
|
if (o) {
|
|
3027
|
-
const i =
|
|
3056
|
+
const i = Pt(o[0]);
|
|
3028
3057
|
if (i !== o[0]) {
|
|
3029
3058
|
if (!e) {
|
|
3030
3059
|
const c = u.push("text_special", "", 0);
|
|
@@ -3036,7 +3065,7 @@ function Ic(u, e) {
|
|
|
3036
3065
|
}
|
|
3037
3066
|
return !1;
|
|
3038
3067
|
}
|
|
3039
|
-
function
|
|
3068
|
+
function kt(u) {
|
|
3040
3069
|
const e = {}, t = u.length;
|
|
3041
3070
|
if (!t) return;
|
|
3042
3071
|
let n = 0, r = -2;
|
|
@@ -3050,10 +3079,10 @@ function xt(u) {
|
|
|
3050
3079
|
for (; s > a; s -= o[s] + 1) {
|
|
3051
3080
|
const f = u[s];
|
|
3052
3081
|
if (f.marker === c.marker && f.open && f.end < 0) {
|
|
3053
|
-
let
|
|
3054
|
-
if ((f.close || c.open) && (f.length + c.length) % 3 === 0 && (f.length % 3 !== 0 || c.length % 3 !== 0) && (
|
|
3055
|
-
const
|
|
3056
|
-
o[i] = i - s +
|
|
3082
|
+
let m = !1;
|
|
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;
|
|
3057
3086
|
break;
|
|
3058
3087
|
}
|
|
3059
3088
|
}
|
|
@@ -3061,49 +3090,49 @@ function xt(u) {
|
|
|
3061
3090
|
d !== -1 && (e[c.marker][(c.open ? 3 : 0) + (c.length || 0) % 3] = d);
|
|
3062
3091
|
}
|
|
3063
3092
|
}
|
|
3064
|
-
function
|
|
3093
|
+
function Oc(u) {
|
|
3065
3094
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3066
|
-
|
|
3095
|
+
kt(u.delimiters);
|
|
3067
3096
|
for (let n = 0; n < t; n++)
|
|
3068
|
-
e[n] && e[n].delimiters &&
|
|
3097
|
+
e[n] && e[n].delimiters && kt(e[n].delimiters);
|
|
3069
3098
|
}
|
|
3070
|
-
function
|
|
3099
|
+
function Nc(u) {
|
|
3071
3100
|
let e, t, n = 0;
|
|
3072
3101
|
const r = u.tokens, o = u.tokens.length;
|
|
3073
3102
|
for (e = t = 0; e < o; e++)
|
|
3074
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++);
|
|
3075
3104
|
e !== t && (r.length = t);
|
|
3076
3105
|
}
|
|
3077
|
-
const
|
|
3078
|
-
["text",
|
|
3079
|
-
["linkify",
|
|
3080
|
-
["newline",
|
|
3081
|
-
["escape",
|
|
3082
|
-
["backticks",
|
|
3083
|
-
["strikethrough",
|
|
3084
|
-
["emphasis",
|
|
3085
|
-
["link",
|
|
3086
|
-
["image",
|
|
3087
|
-
["autolink",
|
|
3088
|
-
["html_inline",
|
|
3089
|
-
["entity",
|
|
3090
|
-
],
|
|
3091
|
-
["balance_pairs",
|
|
3092
|
-
["strikethrough",
|
|
3093
|
-
["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],
|
|
3094
3123
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3095
3124
|
// rule below merges unused segments back with the rest of the text
|
|
3096
|
-
["fragments_join",
|
|
3125
|
+
["fragments_join", Nc]
|
|
3097
3126
|
];
|
|
3098
|
-
function
|
|
3099
|
-
this.ruler = new
|
|
3100
|
-
for (let u = 0; u <
|
|
3101
|
-
this.ruler.push(
|
|
3102
|
-
this.ruler2 = new
|
|
3103
|
-
for (let u = 0; u <
|
|
3104
|
-
this.ruler2.push(
|
|
3105
|
-
}
|
|
3106
|
-
|
|
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) {
|
|
3107
3136
|
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, o = u.cache;
|
|
3108
3137
|
if (typeof o[e] < "u") {
|
|
3109
3138
|
u.pos = o[e];
|
|
@@ -3121,7 +3150,7 @@ ie.prototype.skipToken = function(u) {
|
|
|
3121
3150
|
u.pos = u.posMax;
|
|
3122
3151
|
i || u.pos++, o[e] = u.pos;
|
|
3123
3152
|
};
|
|
3124
|
-
|
|
3153
|
+
se.prototype.tokenize = function(u) {
|
|
3125
3154
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3126
3155
|
for (; u.pos < n; ) {
|
|
3127
3156
|
const o = u.pos;
|
|
@@ -3143,17 +3172,17 @@ ie.prototype.tokenize = function(u) {
|
|
|
3143
3172
|
}
|
|
3144
3173
|
u.pending && u.pushPending();
|
|
3145
3174
|
};
|
|
3146
|
-
|
|
3175
|
+
se.prototype.parse = function(u, e, t, n) {
|
|
3147
3176
|
const r = new this.State(u, e, t, n);
|
|
3148
3177
|
this.tokenize(r);
|
|
3149
3178
|
const o = this.ruler2.getRules(""), i = o.length;
|
|
3150
3179
|
for (let c = 0; c < i; c++)
|
|
3151
3180
|
o[c](r);
|
|
3152
3181
|
};
|
|
3153
|
-
|
|
3154
|
-
function
|
|
3182
|
+
se.prototype.State = ae;
|
|
3183
|
+
function Pc(u) {
|
|
3155
3184
|
const e = {};
|
|
3156
|
-
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("|");
|
|
3157
3186
|
const t = "[><|]";
|
|
3158
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
|
|
3159
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)
|
|
@@ -3163,42 +3192,42 @@ function Oc(u) {
|
|
|
3163
3192
|
// but can start with > (markdown blockquote)
|
|
3164
3193
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
3165
3194
|
}
|
|
3166
|
-
function
|
|
3195
|
+
function i0(u) {
|
|
3167
3196
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
3168
3197
|
t && Object.keys(t).forEach(function(n) {
|
|
3169
3198
|
u[n] = t[n];
|
|
3170
3199
|
});
|
|
3171
3200
|
}), u;
|
|
3172
3201
|
}
|
|
3173
|
-
function
|
|
3202
|
+
function Re(u) {
|
|
3174
3203
|
return Object.prototype.toString.call(u);
|
|
3175
3204
|
}
|
|
3176
|
-
function Nc(u) {
|
|
3177
|
-
return we(u) === "[object String]";
|
|
3178
|
-
}
|
|
3179
3205
|
function Bc(u) {
|
|
3180
|
-
return
|
|
3206
|
+
return Re(u) === "[object String]";
|
|
3181
3207
|
}
|
|
3182
|
-
function
|
|
3183
|
-
return
|
|
3208
|
+
function zc(u) {
|
|
3209
|
+
return Re(u) === "[object Object]";
|
|
3184
3210
|
}
|
|
3185
|
-
function
|
|
3186
|
-
return
|
|
3211
|
+
function qc(u) {
|
|
3212
|
+
return Re(u) === "[object RegExp]";
|
|
3187
3213
|
}
|
|
3188
|
-
function
|
|
3214
|
+
function Et(u) {
|
|
3215
|
+
return Re(u) === "[object Function]";
|
|
3216
|
+
}
|
|
3217
|
+
function Uc(u) {
|
|
3189
3218
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3190
3219
|
}
|
|
3191
|
-
const
|
|
3220
|
+
const Wt = {
|
|
3192
3221
|
fuzzyLink: !0,
|
|
3193
3222
|
fuzzyEmail: !0,
|
|
3194
3223
|
fuzzyIP: !1
|
|
3195
3224
|
};
|
|
3196
|
-
function
|
|
3225
|
+
function Hc(u) {
|
|
3197
3226
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
3198
|
-
return e ||
|
|
3227
|
+
return e || Wt.hasOwnProperty(t);
|
|
3199
3228
|
}, !1);
|
|
3200
3229
|
}
|
|
3201
|
-
const
|
|
3230
|
+
const $c = {
|
|
3202
3231
|
"http:": {
|
|
3203
3232
|
validate: function(u, e, t) {
|
|
3204
3233
|
const n = u.slice(e);
|
|
@@ -3230,24 +3259,24 @@ const Uc = {
|
|
|
3230
3259
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3231
3260
|
}
|
|
3232
3261
|
}
|
|
3233
|
-
},
|
|
3234
|
-
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) {
|
|
3235
3264
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3236
3265
|
}
|
|
3237
|
-
function
|
|
3266
|
+
function Zc(u) {
|
|
3238
3267
|
return function(e, t) {
|
|
3239
3268
|
const n = e.slice(t);
|
|
3240
3269
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
3241
3270
|
};
|
|
3242
3271
|
}
|
|
3243
|
-
function
|
|
3272
|
+
function At() {
|
|
3244
3273
|
return function(u, e) {
|
|
3245
3274
|
e.normalize(u);
|
|
3246
3275
|
};
|
|
3247
3276
|
}
|
|
3248
|
-
function
|
|
3249
|
-
const e = u.re =
|
|
3250
|
-
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("|");
|
|
3251
3280
|
function n(c) {
|
|
3252
3281
|
return c.replace("%TLDS%", e.src_tlds);
|
|
3253
3282
|
}
|
|
@@ -3262,46 +3291,46 @@ function ye(u) {
|
|
|
3262
3291
|
if (a === null)
|
|
3263
3292
|
return;
|
|
3264
3293
|
const s = { validate: null, link: null };
|
|
3265
|
-
if (u.__compiled__[c] = s,
|
|
3266
|
-
|
|
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();
|
|
3267
3296
|
return;
|
|
3268
3297
|
}
|
|
3269
|
-
if (
|
|
3298
|
+
if (Bc(a)) {
|
|
3270
3299
|
r.push(c);
|
|
3271
3300
|
return;
|
|
3272
3301
|
}
|
|
3273
3302
|
o(c, a);
|
|
3274
3303
|
}), r.forEach(function(c) {
|
|
3275
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);
|
|
3276
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
|
3305
|
+
}), u.__compiled__[""] = { validate: null, normalize: At() };
|
|
3277
3306
|
const i = Object.keys(u.__compiled__).filter(function(c) {
|
|
3278
3307
|
return c.length > 0 && u.__compiled__[c];
|
|
3279
|
-
}).map(
|
|
3308
|
+
}).map(Uc).join("|");
|
|
3280
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(
|
|
3281
3310
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3282
3311
|
"i"
|
|
3283
|
-
),
|
|
3312
|
+
), Wc(u);
|
|
3284
3313
|
}
|
|
3285
|
-
function
|
|
3314
|
+
function Vc(u, e) {
|
|
3286
3315
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3287
3316
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3288
3317
|
}
|
|
3289
|
-
function
|
|
3290
|
-
const t = new
|
|
3318
|
+
function a0(u, e) {
|
|
3319
|
+
const t = new Vc(u, e);
|
|
3291
3320
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3292
3321
|
}
|
|
3293
|
-
function
|
|
3294
|
-
if (!(this instanceof
|
|
3295
|
-
return new
|
|
3296
|
-
e ||
|
|
3322
|
+
function J(u, e) {
|
|
3323
|
+
if (!(this instanceof J))
|
|
3324
|
+
return new J(u, 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);
|
|
3297
3326
|
}
|
|
3298
|
-
|
|
3299
|
-
return this.__schemas__[e] = t,
|
|
3327
|
+
J.prototype.add = function(e, t) {
|
|
3328
|
+
return this.__schemas__[e] = t, Te(this), this;
|
|
3300
3329
|
};
|
|
3301
|
-
|
|
3302
|
-
return this.__opts__ =
|
|
3330
|
+
J.prototype.set = function(e) {
|
|
3331
|
+
return this.__opts__ = i0(this.__opts__, e), this;
|
|
3303
3332
|
};
|
|
3304
|
-
|
|
3333
|
+
J.prototype.test = function(e) {
|
|
3305
3334
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3306
3335
|
return !1;
|
|
3307
3336
|
let t, n, r, o, i, c, a, s, d;
|
|
@@ -3314,61 +3343,61 @@ X.prototype.test = function(e) {
|
|
|
3314
3343
|
}
|
|
3315
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;
|
|
3316
3345
|
};
|
|
3317
|
-
|
|
3346
|
+
J.prototype.pretest = function(e) {
|
|
3318
3347
|
return this.re.pretest.test(e);
|
|
3319
3348
|
};
|
|
3320
|
-
|
|
3349
|
+
J.prototype.testSchemaAt = function(e, t, n) {
|
|
3321
3350
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
|
3322
3351
|
};
|
|
3323
|
-
|
|
3352
|
+
J.prototype.match = function(e) {
|
|
3324
3353
|
const t = [];
|
|
3325
3354
|
let n = 0;
|
|
3326
|
-
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__);
|
|
3327
3356
|
let r = n ? e.slice(n) : e;
|
|
3328
3357
|
for (; this.test(r); )
|
|
3329
|
-
t.push(
|
|
3358
|
+
t.push(a0(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3330
3359
|
return t.length ? t : null;
|
|
3331
3360
|
};
|
|
3332
|
-
|
|
3361
|
+
J.prototype.matchAtStart = function(e) {
|
|
3333
3362
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
|
|
3334
3363
|
const t = this.re.schema_at_start.exec(e);
|
|
3335
3364
|
if (!t) return null;
|
|
3336
3365
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3337
|
-
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;
|
|
3338
3367
|
};
|
|
3339
|
-
|
|
3368
|
+
J.prototype.tlds = function(e, t) {
|
|
3340
3369
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3341
3370
|
return n !== o[r - 1];
|
|
3342
|
-
}).reverse(),
|
|
3371
|
+
}).reverse(), Te(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Te(this), this);
|
|
3343
3372
|
};
|
|
3344
|
-
|
|
3373
|
+
J.prototype.normalize = function(e) {
|
|
3345
3374
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
3346
3375
|
};
|
|
3347
|
-
|
|
3376
|
+
J.prototype.onCompile = function() {
|
|
3348
3377
|
};
|
|
3349
|
-
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 = {
|
|
3350
3379
|
overflow: "Overflow: input needs wider integers to process",
|
|
3351
3380
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3352
3381
|
"invalid-input": "Invalid input"
|
|
3353
|
-
},
|
|
3354
|
-
function
|
|
3355
|
-
throw new RangeError(
|
|
3382
|
+
}, e0 = ou - k0, cu = Math.floor, t0 = String.fromCharCode;
|
|
3383
|
+
function hu(u) {
|
|
3384
|
+
throw new RangeError(ui[u]);
|
|
3356
3385
|
}
|
|
3357
|
-
function
|
|
3386
|
+
function ei(u, e) {
|
|
3358
3387
|
const t = [];
|
|
3359
3388
|
let n = u.length;
|
|
3360
3389
|
for (; n--; )
|
|
3361
3390
|
t[n] = e(u[n]);
|
|
3362
3391
|
return t;
|
|
3363
3392
|
}
|
|
3364
|
-
function
|
|
3393
|
+
function Xt(u, e) {
|
|
3365
3394
|
const t = u.split("@");
|
|
3366
3395
|
let n = "";
|
|
3367
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3368
|
-
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(".");
|
|
3369
3398
|
return n + o;
|
|
3370
3399
|
}
|
|
3371
|
-
function
|
|
3400
|
+
function Jt(u) {
|
|
3372
3401
|
const e = [];
|
|
3373
3402
|
let t = 0;
|
|
3374
3403
|
const n = u.length;
|
|
@@ -3382,78 +3411,78 @@ function Xt(u) {
|
|
|
3382
3411
|
}
|
|
3383
3412
|
return e;
|
|
3384
3413
|
}
|
|
3385
|
-
const
|
|
3414
|
+
const ti = (u) => String.fromCodePoint(...u), ni = function(u) {
|
|
3386
3415
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : ou;
|
|
3387
|
-
},
|
|
3416
|
+
}, Ct = function(u, e) {
|
|
3388
3417
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3389
|
-
},
|
|
3418
|
+
}, Qt = function(u, e, t) {
|
|
3390
3419
|
let n = 0;
|
|
3391
|
-
for (u = t ? cu(u /
|
|
3392
|
-
u = cu(u /
|
|
3393
|
-
return cu(n + (
|
|
3394
|
-
},
|
|
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) {
|
|
3395
3424
|
const e = [], t = u.length;
|
|
3396
|
-
let n = 0, r =
|
|
3425
|
+
let n = 0, r = Vt, o = Zt, i = u.lastIndexOf(Yt);
|
|
3397
3426
|
i < 0 && (i = 0);
|
|
3398
3427
|
for (let c = 0; c < i; ++c)
|
|
3399
|
-
u.charCodeAt(c) >= 128 &&
|
|
3428
|
+
u.charCodeAt(c) >= 128 && hu("not-basic"), e.push(u.charCodeAt(c));
|
|
3400
3429
|
for (let c = i > 0 ? i + 1 : 0; c < t; ) {
|
|
3401
3430
|
const a = n;
|
|
3402
3431
|
for (let d = 1, f = ou; ; f += ou) {
|
|
3403
|
-
c >= t &&
|
|
3404
|
-
const
|
|
3405
|
-
|
|
3406
|
-
const
|
|
3407
|
-
if (
|
|
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)
|
|
3408
3437
|
break;
|
|
3409
|
-
const
|
|
3410
|
-
d > cu(
|
|
3438
|
+
const p = ou - h;
|
|
3439
|
+
d > cu(Bu / p) && hu("overflow"), d *= p;
|
|
3411
3440
|
}
|
|
3412
3441
|
const s = e.length + 1;
|
|
3413
|
-
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);
|
|
3414
3443
|
}
|
|
3415
3444
|
return String.fromCodePoint(...e);
|
|
3416
|
-
},
|
|
3445
|
+
}, un = function(u) {
|
|
3417
3446
|
const e = [];
|
|
3418
|
-
u =
|
|
3447
|
+
u = Jt(u);
|
|
3419
3448
|
const t = u.length;
|
|
3420
|
-
let n =
|
|
3449
|
+
let n = Vt, r = 0, o = Zt;
|
|
3421
3450
|
for (const a of u)
|
|
3422
|
-
a < 128 && e.push(
|
|
3451
|
+
a < 128 && e.push(t0(a));
|
|
3423
3452
|
const i = e.length;
|
|
3424
3453
|
let c = i;
|
|
3425
|
-
for (i && e.push(
|
|
3426
|
-
let a =
|
|
3454
|
+
for (i && e.push(Yt); c < t; ) {
|
|
3455
|
+
let a = Bu;
|
|
3427
3456
|
for (const d of u)
|
|
3428
3457
|
d >= n && d < a && (a = d);
|
|
3429
3458
|
const s = c + 1;
|
|
3430
|
-
a - n > cu((
|
|
3459
|
+
a - n > cu((Bu - r) / s) && hu("overflow"), r += (a - n) * s, n = a;
|
|
3431
3460
|
for (const d of u)
|
|
3432
|
-
if (d < n && ++r >
|
|
3461
|
+
if (d < n && ++r > Bu && hu("overflow"), d === n) {
|
|
3433
3462
|
let f = r;
|
|
3434
|
-
for (let
|
|
3435
|
-
const
|
|
3436
|
-
if (f <
|
|
3463
|
+
for (let m = ou; ; m += ou) {
|
|
3464
|
+
const h = m <= o ? k0 : m >= o + ne ? ne : m - o;
|
|
3465
|
+
if (f < h)
|
|
3437
3466
|
break;
|
|
3438
|
-
const
|
|
3467
|
+
const p = f - h, C = ou - h;
|
|
3439
3468
|
e.push(
|
|
3440
|
-
|
|
3441
|
-
), f = cu(
|
|
3469
|
+
t0(Ct(h + p % C, 0))
|
|
3470
|
+
), f = cu(p / C);
|
|
3442
3471
|
}
|
|
3443
|
-
e.push(
|
|
3472
|
+
e.push(t0(Ct(f, 0))), o = Qt(r, s, c === i), r = 0, ++c;
|
|
3444
3473
|
}
|
|
3445
3474
|
++r, ++n;
|
|
3446
3475
|
}
|
|
3447
3476
|
return e.join("");
|
|
3448
|
-
},
|
|
3449
|
-
return
|
|
3450
|
-
return
|
|
3477
|
+
}, ri = function(u) {
|
|
3478
|
+
return Xt(u, function(e) {
|
|
3479
|
+
return Jc.test(e) ? Kt(e.slice(4).toLowerCase()) : e;
|
|
3451
3480
|
});
|
|
3452
|
-
},
|
|
3453
|
-
return
|
|
3454
|
-
return
|
|
3481
|
+
}, oi = function(u) {
|
|
3482
|
+
return Xt(u, function(e) {
|
|
3483
|
+
return Qc.test(e) ? "xn--" + un(e) : e;
|
|
3455
3484
|
});
|
|
3456
|
-
},
|
|
3485
|
+
}, en = {
|
|
3457
3486
|
/**
|
|
3458
3487
|
* A string representing the current Punycode.js version number.
|
|
3459
3488
|
* @memberOf punycode
|
|
@@ -3468,14 +3497,14 @@ const ui = (u) => String.fromCodePoint(...u), ei = function(u) {
|
|
|
3468
3497
|
* @type Object
|
|
3469
3498
|
*/
|
|
3470
3499
|
ucs2: {
|
|
3471
|
-
decode:
|
|
3472
|
-
encode:
|
|
3500
|
+
decode: Jt,
|
|
3501
|
+
encode: ti
|
|
3473
3502
|
},
|
|
3474
|
-
decode:
|
|
3475
|
-
encode:
|
|
3476
|
-
toASCII:
|
|
3477
|
-
toUnicode:
|
|
3478
|
-
},
|
|
3503
|
+
decode: Kt,
|
|
3504
|
+
encode: un,
|
|
3505
|
+
toASCII: oi,
|
|
3506
|
+
toUnicode: ri
|
|
3507
|
+
}, ci = {
|
|
3479
3508
|
options: {
|
|
3480
3509
|
// Enable HTML tags in source
|
|
3481
3510
|
html: !1,
|
|
@@ -3511,7 +3540,7 @@ const ui = (u) => String.fromCodePoint(...u), ei = function(u) {
|
|
|
3511
3540
|
block: {},
|
|
3512
3541
|
inline: {}
|
|
3513
3542
|
}
|
|
3514
|
-
},
|
|
3543
|
+
}, ii = {
|
|
3515
3544
|
options: {
|
|
3516
3545
|
// Enable HTML tags in source
|
|
3517
3546
|
html: !1,
|
|
@@ -3566,7 +3595,7 @@ const ui = (u) => String.fromCodePoint(...u), ei = function(u) {
|
|
|
3566
3595
|
]
|
|
3567
3596
|
}
|
|
3568
3597
|
}
|
|
3569
|
-
},
|
|
3598
|
+
}, ai = {
|
|
3570
3599
|
options: {
|
|
3571
3600
|
// Enable HTML tags in source
|
|
3572
3601
|
html: !0,
|
|
@@ -3640,47 +3669,47 @@ const ui = (u) => String.fromCodePoint(...u), ei = function(u) {
|
|
|
3640
3669
|
]
|
|
3641
3670
|
}
|
|
3642
3671
|
}
|
|
3643
|
-
},
|
|
3644
|
-
default:
|
|
3645
|
-
zero:
|
|
3646
|
-
commonmark:
|
|
3647
|
-
},
|
|
3648
|
-
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) {
|
|
3649
3678
|
const e = u.trim().toLowerCase();
|
|
3650
|
-
return
|
|
3679
|
+
return li.test(e) ? fi.test(e) : !0;
|
|
3651
3680
|
}
|
|
3652
|
-
const
|
|
3653
|
-
function
|
|
3654
|
-
const e =
|
|
3655
|
-
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))
|
|
3656
3685
|
try {
|
|
3657
|
-
e.hostname =
|
|
3686
|
+
e.hostname = en.toASCII(e.hostname);
|
|
3658
3687
|
} catch {
|
|
3659
3688
|
}
|
|
3660
|
-
return
|
|
3689
|
+
return ie(p0(e));
|
|
3661
3690
|
}
|
|
3662
|
-
function
|
|
3663
|
-
const e =
|
|
3664
|
-
if (e.hostname && (!e.protocol ||
|
|
3691
|
+
function hi(u) {
|
|
3692
|
+
const e = h0(u, !0);
|
|
3693
|
+
if (e.hostname && (!e.protocol || tn.indexOf(e.protocol) >= 0))
|
|
3665
3694
|
try {
|
|
3666
|
-
e.hostname =
|
|
3695
|
+
e.hostname = en.toUnicode(e.hostname);
|
|
3667
3696
|
} catch {
|
|
3668
3697
|
}
|
|
3669
|
-
return
|
|
3698
|
+
return zu(p0(e), zu.defaultChars + "%");
|
|
3670
3699
|
}
|
|
3671
3700
|
function K(u, e) {
|
|
3672
3701
|
if (!(this instanceof K))
|
|
3673
3702
|
return new K(u, e);
|
|
3674
|
-
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);
|
|
3675
3704
|
}
|
|
3676
3705
|
K.prototype.set = function(u) {
|
|
3677
|
-
return
|
|
3706
|
+
return Se(this.options, u), this;
|
|
3678
3707
|
};
|
|
3679
3708
|
K.prototype.configure = function(u) {
|
|
3680
3709
|
const e = this;
|
|
3681
|
-
if (
|
|
3710
|
+
if (m0(u)) {
|
|
3682
3711
|
const t = u;
|
|
3683
|
-
if (u =
|
|
3712
|
+
if (u = si[t], !u)
|
|
3684
3713
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3685
3714
|
}
|
|
3686
3715
|
if (!u)
|
|
@@ -3733,14 +3762,14 @@ K.prototype.parseInline = function(u, e) {
|
|
|
3733
3762
|
K.prototype.renderInline = function(u, e) {
|
|
3734
3763
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3735
3764
|
};
|
|
3736
|
-
class
|
|
3765
|
+
class Mi extends f0 {
|
|
3737
3766
|
constructor(t = {}) {
|
|
3738
3767
|
super();
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3768
|
+
Ou(this, "mdConfig");
|
|
3769
|
+
Ou(this, "dompurifyConfig");
|
|
3770
|
+
Ou(this, "sanitizeDisabled");
|
|
3771
|
+
Ou(this, "defaultAttrs");
|
|
3772
|
+
Ou(this, "md");
|
|
3744
3773
|
this.mdConfig = t.mdConfig || {}, this.dompurifyConfig = t.dompurifyConfig || {}, this.sanitizeDisabled = t.sanitizeDisabled ?? !1, this.defaultAttrs = t.defaultAttrs || {}, this.md = K(this.mdConfig);
|
|
3745
3774
|
}
|
|
3746
3775
|
render(t) {
|
|
@@ -3752,27 +3781,30 @@ class vi extends a0 {
|
|
|
3752
3781
|
console.error("Error rendering markdown:", c), o = n ?? "";
|
|
3753
3782
|
}
|
|
3754
3783
|
if (this.sanitizeDisabled)
|
|
3755
|
-
return console.warn("HTML sanitization is disabled, potential XSS risk"),
|
|
3756
|
-
const i =
|
|
3757
|
-
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 });
|
|
3758
3787
|
}
|
|
3759
3788
|
}
|
|
3760
|
-
const
|
|
3789
|
+
const bi = {
|
|
3761
3790
|
key: 0,
|
|
3762
|
-
class: /* @__PURE__ */
|
|
3763
|
-
},
|
|
3791
|
+
class: /* @__PURE__ */ Au(["tr-bubble__avatar"])
|
|
3792
|
+
}, mi = {
|
|
3793
|
+
key: 2,
|
|
3794
|
+
class: "tr-bubble__content-wrapper"
|
|
3795
|
+
}, _i = {
|
|
3764
3796
|
key: 0,
|
|
3765
3797
|
class: "tr-bubble__content-items"
|
|
3766
|
-
},
|
|
3798
|
+
}, xi = {
|
|
3767
3799
|
key: 1,
|
|
3768
3800
|
class: "tr-bubble__body-text"
|
|
3769
|
-
},
|
|
3801
|
+
}, gi = {
|
|
3770
3802
|
key: 2,
|
|
3771
3803
|
class: "tr-bubble__aborted"
|
|
3772
|
-
},
|
|
3804
|
+
}, ki = {
|
|
3773
3805
|
key: 3,
|
|
3774
3806
|
class: "tr-bubble__footer"
|
|
3775
|
-
},
|
|
3807
|
+
}, Ei = /* @__PURE__ */ yu({
|
|
3776
3808
|
__name: "Bubble",
|
|
3777
3809
|
props: {
|
|
3778
3810
|
content: { default: "" },
|
|
@@ -3789,68 +3821,70 @@ const hi = {
|
|
|
3789
3821
|
maxWidth: {}
|
|
3790
3822
|
},
|
|
3791
3823
|
setup(u) {
|
|
3792
|
-
const e = u, t =
|
|
3824
|
+
const e = u, t = kn(), n = X(() => {
|
|
3793
3825
|
const f = e.contentRenderer;
|
|
3794
|
-
return f ? typeof f == "function" ? { isComponent: !1, vNodeOrComponent: f(e) } : f instanceof
|
|
3795
|
-
}), r =
|
|
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(() => {
|
|
3796
3828
|
if (!e.customContentField)
|
|
3797
3829
|
return null;
|
|
3798
3830
|
const f = r[e.customContentField];
|
|
3799
3831
|
return typeof f == "string" || Array.isArray(f) && f.length > 0 ? f : null;
|
|
3800
|
-
}), i =
|
|
3801
|
-
"--max-width":
|
|
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)
|
|
3802
3834
|
} : {});
|
|
3803
|
-
return (f,
|
|
3804
|
-
class:
|
|
3835
|
+
return (f, m) => (S(), H("div", {
|
|
3836
|
+
class: Au([
|
|
3805
3837
|
"tr-bubble",
|
|
3806
3838
|
{
|
|
3807
3839
|
"placement-start": s.value,
|
|
3808
3840
|
"placement-end": !s.value
|
|
3809
3841
|
}
|
|
3810
3842
|
]),
|
|
3811
|
-
style:
|
|
3843
|
+
style: An(d.value)
|
|
3812
3844
|
}, [
|
|
3813
|
-
e.avatar ? (S(),
|
|
3814
|
-
(S(), eu(
|
|
3815
|
-
])) :
|
|
3816
|
-
e.loading ?
|
|
3845
|
+
e.avatar ? (S(), H("div", bi, [
|
|
3846
|
+
(S(), eu(_u(e.avatar)))
|
|
3847
|
+
])) : Pu("", !0),
|
|
3848
|
+
e.loading ? Qu(f.$slots, "loading", {
|
|
3817
3849
|
key: 1,
|
|
3818
3850
|
bubbleProps: e
|
|
3819
3851
|
}, () => [
|
|
3820
|
-
|
|
3821
|
-
class:
|
|
3822
|
-
}, [...
|
|
3823
|
-
|
|
3824
|
-
src:
|
|
3852
|
+
Z("div", {
|
|
3853
|
+
class: Au(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
3854
|
+
}, [...m[0] || (m[0] = [
|
|
3855
|
+
Z("img", {
|
|
3856
|
+
src: Fn,
|
|
3825
3857
|
alt: "loading",
|
|
3826
3858
|
class: "tr-bubble__loading"
|
|
3827
3859
|
}, null, -1)
|
|
3828
3860
|
])], 2)
|
|
3829
|
-
], !0) : (S(),
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
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
|
+
]))
|
|
3851
3885
|
], 6));
|
|
3852
3886
|
}
|
|
3853
|
-
}),
|
|
3887
|
+
}), Du = /* @__PURE__ */ ce(Ei, [["__scopeId", "data-v-7785f269"]]), Ai = /* @__PURE__ */ yu({
|
|
3854
3888
|
__name: "BubbleList",
|
|
3855
3889
|
props: {
|
|
3856
3890
|
items: {},
|
|
@@ -3860,99 +3894,123 @@ const hi = {
|
|
|
3860
3894
|
autoScroll: { type: Boolean }
|
|
3861
3895
|
},
|
|
3862
3896
|
setup(u) {
|
|
3863
|
-
const e = u, t =
|
|
3897
|
+
const e = u, t = s0(null), { y: n } = Mn(t, {
|
|
3864
3898
|
behavior: "smooth",
|
|
3865
3899
|
throttle: 100
|
|
3866
|
-
}), r =
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3900
|
+
}), r = X(() => e.items.at(-1)), o = X(() => {
|
|
3901
|
+
var d, f;
|
|
3902
|
+
if (!r.value)
|
|
3903
|
+
return 0;
|
|
3904
|
+
const a = r.value.customContentField || ((f = (d = e.roles) == null ? void 0 : d[r.value.role || ""]) == null ? void 0 : f.customContentField);
|
|
3905
|
+
if (!a)
|
|
3906
|
+
return 0;
|
|
3907
|
+
const s = r.value;
|
|
3908
|
+
if (Array.isArray(s[a])) {
|
|
3909
|
+
const m = s[a].at(-1);
|
|
3910
|
+
if (m && typeof m == "object" && "content" in m)
|
|
3911
|
+
try {
|
|
3912
|
+
return JSON.stringify(m.content).length;
|
|
3913
|
+
} catch {
|
|
3914
|
+
}
|
|
3915
|
+
return s[a].length;
|
|
3916
|
+
}
|
|
3917
|
+
return 0;
|
|
3918
|
+
});
|
|
3919
|
+
Cn(
|
|
3872
3920
|
() => {
|
|
3873
|
-
|
|
3921
|
+
var a;
|
|
3922
|
+
return [e.autoScroll, e.items.length, (a = r.value) == null ? void 0 : a.content, o.value];
|
|
3923
|
+
},
|
|
3924
|
+
([a]) => {
|
|
3925
|
+
Dn(() => {
|
|
3926
|
+
!a || !t.value || (n.value = t.value.scrollHeight);
|
|
3927
|
+
});
|
|
3874
3928
|
},
|
|
3875
3929
|
{ deep: !0 }
|
|
3876
3930
|
);
|
|
3877
|
-
const
|
|
3878
|
-
var
|
|
3879
|
-
const
|
|
3880
|
-
if (a.hidden)
|
|
3881
|
-
return null;
|
|
3882
|
-
const { slots: s, hidden: d, ...f } = a, { slots: _, ...p } = c;
|
|
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;
|
|
3883
3934
|
return {
|
|
3884
|
-
id:
|
|
3885
|
-
|
|
3886
|
-
|
|
3935
|
+
id: a.id,
|
|
3936
|
+
index: s,
|
|
3937
|
+
hidden: !!m,
|
|
3938
|
+
props: { ...h, ...C, "data-role": a.role },
|
|
3939
|
+
slots: { ...f, ...p }
|
|
3887
3940
|
};
|
|
3888
|
-
})
|
|
3889
|
-
var
|
|
3890
|
-
if (!(e.loading && e.loadingRole && ((
|
|
3941
|
+
})), c = X(() => {
|
|
3942
|
+
var d;
|
|
3943
|
+
if (!(e.loading && e.loadingRole && ((d = e.roles) != null && d[e.loadingRole])))
|
|
3891
3944
|
return null;
|
|
3892
|
-
const { slots:
|
|
3893
|
-
return { props: { ...
|
|
3945
|
+
const { slots: a, ...s } = e.roles[e.loadingRole];
|
|
3946
|
+
return { props: { ...s, loading: !0, "data-role": "loading" }, slots: a };
|
|
3894
3947
|
});
|
|
3895
|
-
return (
|
|
3948
|
+
return (a, s) => (S(), H("div", {
|
|
3896
3949
|
class: "tr-bubble-list",
|
|
3897
3950
|
ref_key: "scrollContainerRef",
|
|
3898
3951
|
ref: t
|
|
3899
3952
|
}, [
|
|
3900
|
-
(S(!0),
|
|
3901
|
-
key:
|
|
3902
|
-
},
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
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))
|
|
3915
3973
|
])
|
|
3916
3974
|
}))
|
|
3917
|
-
]), 1040)) :
|
|
3975
|
+
]), 1040)) : Pu("", !0)
|
|
3918
3976
|
], 512));
|
|
3919
3977
|
}
|
|
3920
|
-
}),
|
|
3978
|
+
}), re = /* @__PURE__ */ ce(Ai, [["__scopeId", "data-v-b8c91fe5"]]), oe = /* @__PURE__ */ yu({
|
|
3921
3979
|
__name: "BubbleProvider",
|
|
3922
3980
|
props: {
|
|
3923
3981
|
contentRenderers: { default: () => ({}) }
|
|
3924
3982
|
},
|
|
3925
3983
|
setup(u) {
|
|
3926
3984
|
const e = u, t = /* @__PURE__ */ new Map();
|
|
3927
|
-
for (const [n, r] of
|
|
3985
|
+
for (const [n, r] of yt.entries())
|
|
3928
3986
|
t.set(n, r);
|
|
3929
3987
|
for (const [n, r] of Object.entries(e.contentRenderers))
|
|
3930
3988
|
t.set(n, r);
|
|
3931
|
-
return
|
|
3989
|
+
return X0(Ft, t), X0(Tt, d0), (n, r) => Qu(n.$slots, "default");
|
|
3932
3990
|
}
|
|
3933
3991
|
});
|
|
3934
|
-
|
|
3935
|
-
const
|
|
3936
|
-
u.component(
|
|
3937
|
-
};
|
|
3938
|
-
|
|
3939
|
-
const
|
|
3940
|
-
|
|
3941
|
-
const
|
|
3942
|
-
u.component(
|
|
3943
|
-
};
|
|
3944
|
-
|
|
3945
|
-
const
|
|
3946
|
-
|
|
3947
|
-
const
|
|
3948
|
-
u.component(
|
|
3949
|
-
};
|
|
3950
|
-
|
|
3951
|
-
const
|
|
3992
|
+
Du.name = "TrBubble";
|
|
3993
|
+
const Ci = function(u) {
|
|
3994
|
+
u.component(Du.name, Du);
|
|
3995
|
+
};
|
|
3996
|
+
Du.install = Ci;
|
|
3997
|
+
const Li = Du;
|
|
3998
|
+
re.name = "TrBubbleList";
|
|
3999
|
+
const Di = function(u) {
|
|
4000
|
+
u.component(re.name, re);
|
|
4001
|
+
};
|
|
4002
|
+
re.install = Di;
|
|
4003
|
+
const Oi = re;
|
|
4004
|
+
oe.name = "TrBubbleProvider";
|
|
4005
|
+
const yi = function(u) {
|
|
4006
|
+
u.component(oe.name, oe);
|
|
4007
|
+
};
|
|
4008
|
+
oe.install = yi;
|
|
4009
|
+
const Ni = oe;
|
|
3952
4010
|
export {
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
4011
|
+
Li as Bubble,
|
|
4012
|
+
f0 as BubbleContentClassRenderer,
|
|
4013
|
+
Oi as BubbleList,
|
|
4014
|
+
Mi as BubbleMarkdownContentRenderer,
|
|
4015
|
+
Ni as BubbleProvider
|
|
3958
4016
|
};
|