st-comp 0.0.196 → 0.0.198
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/es/ChartLayout.js +4 -4
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +21 -21
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +42 -39
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +68 -65
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +20 -17
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +29 -26
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +49 -46
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +19 -16
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +22 -19
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +45 -42
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +52 -49
- package/es/User.cjs +1 -1
- package/es/User.js +646 -491
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +27 -24
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +18 -16
- package/es/VarietySearch.cjs +11 -11
- package/es/VarietySearch.js +708 -705
- package/es/VarietyTextCopy.cjs +5 -0
- package/es/VarietyTextCopy.js +89 -0
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +31 -29
- package/es/_initCloneObject-52b6a510.cjs +1 -0
- package/es/{_initCloneObject-64989891.js → _initCloneObject-eaef9418.js} +5 -5
- package/es/{base-62a70f61.js → base-a5af3db3.js} +2 -2
- package/es/castArray-35947698.cjs +1 -0
- package/es/castArray-7741a212.js +10 -0
- package/es/config-provider-a584d81e.cjs +1 -0
- package/es/{config-provider-962c9213.js → config-provider-b16efd62.js} +4 -4
- package/es/{debounce-ccdceb02.js → debounce-8d53f4dd.js} +9 -9
- package/es/dropdown-071c5d7e.cjs +1 -0
- package/es/{dropdown-220099ea.js → dropdown-a59bba73.js} +19 -19
- package/es/el-autocomplete-a07e9439.cjs +1 -0
- package/es/{el-autocomplete-a2dd1bb5.js → el-autocomplete-ba808eb6.js} +13 -12
- package/es/{el-button-639a79ee.js → el-button-c95adb85.js} +4 -4
- package/es/el-button-eec58cff.cjs +1 -0
- package/es/{el-dialog-43cb14a3.js → el-dialog-41ab8417.js} +6 -6
- package/es/el-dialog-ae86edb8.cjs +1 -0
- package/es/{el-divider-2f300113.js → el-divider-4e059794.js} +1 -1
- package/es/{el-empty-34086220.js → el-empty-33cb66f1.js} +3 -3
- package/es/el-form-item-c3fe189b.cjs +12 -0
- package/es/{el-form-item-5425e443.js → el-form-item-eeb64520.js} +29 -28
- package/es/{el-input-f24248f2.js → el-input-2f75c4ba.js} +5 -5
- package/es/el-input-7fd293af.cjs +1 -0
- package/es/el-input-number-22e21d16.cjs +1 -0
- package/es/{el-input-number-36036e60.js → el-input-number-5193fe6d.js} +6 -6
- package/es/{el-loading-a6dd5081.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-74b350d7.js → el-loading-f6022062.js} +2 -2
- package/es/el-menu-item-17dc717e.cjs +1 -0
- package/es/{el-menu-item-7d04ed7a.js → el-menu-item-7e881203.js} +6 -6
- package/es/el-message-5e6a6be9.cjs +1 -0
- package/es/el-message-box-48d71ee5.cjs +1 -0
- package/es/{el-message-box-1286fd77.js → el-message-box-81ffd21e.js} +11 -11
- package/es/{el-message-4e885359.js → el-message-e544a8f5.js} +27 -27
- package/es/{el-overlay-0310aac7.js → el-overlay-09ad71cd.js} +29 -29
- package/es/el-overlay-9e34965f.cjs +1 -0
- package/es/el-popconfirm-70a976bf.cjs +1 -0
- package/es/{el-popconfirm-6235978c.js → el-popconfirm-81dcd202.js} +11 -11
- package/es/el-popper-b4f97157.js +2094 -0
- package/es/el-popper-b6c99b28.cjs +1 -0
- package/es/el-scrollbar-323542e7.js +34 -0
- package/es/el-scrollbar-bc3f790d.cjs +1 -0
- package/es/{el-segmented-ee920d27.js → el-segmented-b868d074.js} +4 -4
- package/es/el-segmented-f8fce9ac.cjs +1 -0
- package/es/{el-select-bfade57c.js → el-select-95627997.js} +318 -316
- package/es/el-select-d8d91db1.cjs +1 -0
- package/es/el-table-column-079b76f5.cjs +14 -0
- package/es/{el-table-column-41685d02.js → el-table-column-72c50d58.js} +38 -36
- package/es/{el-tag-ada32d9e.js → el-tag-66cab138.js} +17 -17
- package/es/{el-tag-defe821c.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/index-11547a0c.cjs +1 -0
- package/es/{index-492bd129.js → index-1f7d4f70.js} +2 -2
- package/es/index-298075cf.cjs +1 -0
- package/es/{index-787d3588.js → index-57672682.js} +3 -3
- package/es/index-844bdd85.js +326 -0
- package/es/{index-843be67c.js → index-88546436.js} +10 -10
- package/es/{index-89502796.js → index-960806da.js} +6 -6
- package/es/{index-0a8e1adb.js → index-a871c3eb.js} +1 -1
- package/es/index-c108567d.cjs +1 -0
- package/es/{index-482f09b5.js → index-d77a7336.js} +1 -1
- package/es/{index-6277c792.js → index-d91dc23f.js} +5 -5
- package/es/{index-3e26cc9f.js → index-e5566b94.js} +88 -95
- package/es/index-f3562b52.cjs +1 -0
- package/es/{index-bc26fe71.cjs → index-f967d6c1.cjs} +1 -1
- package/es/{raf-41aed4d4.js → raf-80ef0c0a.js} +1 -1
- package/es/{scroll-7d352c1f.js → scroll-679bd6bf.js} +1 -1
- package/es/style.css +1 -1
- package/es/{el-scrollbar-d8e60ed2.js → use-form-common-props-815d48a6.js} +120 -151
- package/es/use-form-common-props-fd9b61a0.cjs +1 -0
- package/es/use-global-config-30d7d8ce.cjs +1 -0
- package/es/{use-global-config-2704a841.js → use-global-config-b5e9d3d5.js} +16 -16
- package/es/validator-1b8a6128.cjs +1 -0
- package/es/{validator-61a65ac7.js → validator-764a9db0.js} +1 -1
- package/es/{vnode-c51c8aa3.js → vnode-5ddb7ed1.js} +1 -1
- package/es/{zh-cn-6ee4b8df.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-19fbf029.js → zh-cn-e963c628.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +162 -158
- package/lib/{index-dac23ed6.js → index-a75ac019.js} +18140 -17918
- package/lib/{python-fdc6b946.js → python-0eadb75b.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/ConfigProvider/index.vue +3 -2
- package/packages/User/components/EditInfoDialog.vue +132 -0
- package/packages/User/index.vue +19 -3
- package/packages/VarietyTextCopy/index.ts +8 -0
- package/packages/VarietyTextCopy/index.vue +136 -0
- package/packages/index.ts +2 -0
- package/src/pages/User/index.vue +2 -2
- package/src/pages/VarietyTextCopy/index.vue +24 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-1136ed17.cjs +0 -1
- package/es/config-provider-c629566a.cjs +0 -1
- package/es/dropdown-28ffc2a0.cjs +0 -1
- package/es/el-autocomplete-01985d09.cjs +0 -1
- package/es/el-button-1cb4ce47.cjs +0 -1
- package/es/el-dialog-10b4cda4.cjs +0 -1
- package/es/el-form-item-6d81753f.cjs +0 -12
- package/es/el-input-ebe964c2.cjs +0 -1
- package/es/el-input-number-e3d58911.cjs +0 -1
- package/es/el-menu-item-9a591f08.cjs +0 -1
- package/es/el-message-3517c44c.cjs +0 -1
- package/es/el-message-box-317e9f09.cjs +0 -1
- package/es/el-overlay-ed457566.cjs +0 -1
- package/es/el-popconfirm-d61782ad.cjs +0 -1
- package/es/el-popper-32eaad7d.cjs +0 -1
- package/es/el-popper-f38ba0a1.js +0 -2412
- package/es/el-scrollbar-2cac7413.cjs +0 -1
- package/es/el-segmented-bf42d915.cjs +0 -1
- package/es/el-select-64816d07.cjs +0 -1
- package/es/el-table-column-00904cbd.cjs +0 -14
- package/es/index-b306360f.cjs +0 -1
- package/es/index-d4910ece.cjs +0 -1
- package/es/index-ecf79ee2.cjs +0 -1
- package/es/use-global-config-878461f3.cjs +0 -1
- package/es/validator-027eff1b.cjs +0 -1
package/es/VarietySearch.js
CHANGED
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
import { b as Uu, c as Oe, p as Ve, o as $e, k as Re, u as se, _ as de, e as Me, w as X0, l as r0 } from "./base-
|
|
2
|
-
import "./el-tag-
|
|
3
|
-
import { E as fe, a as pe } from "./el-select-
|
|
4
|
-
import
|
|
5
|
-
import { U as be, C as he, u as
|
|
6
|
-
import { b as
|
|
7
|
-
import { E as
|
|
8
|
-
import { ref as eu, inject as
|
|
9
|
-
import { E as ge } from "./el-dialog-
|
|
10
|
-
import "./el-overlay-
|
|
11
|
-
import { E as
|
|
12
|
-
import { E as
|
|
13
|
-
import { E as
|
|
1
|
+
import { b as Uu, c as Oe, p as Ve, o as $e, k as Re, u as se, _ as de, e as Me, w as X0, l as r0 } from "./base-a5af3db3.js";
|
|
2
|
+
import "./el-tag-66cab138.js";
|
|
3
|
+
import { E as fe, a as pe } from "./el-select-95627997.js";
|
|
4
|
+
import "./el-scrollbar-323542e7.js";
|
|
5
|
+
import { U as be, C as he, u as ut, d as et, E as tt } from "./el-popper-b4f97157.js";
|
|
6
|
+
import { b as nt, c as rt, E as ot, a as at } from "./el-table-column-72c50d58.js";
|
|
7
|
+
import { E as lt, a as it } from "./el-message-box-81ffd21e.js";
|
|
8
|
+
import { ref as eu, inject as o0, computed as Q, defineComponent as Du, openBlock as E, createElementBlock as S, normalizeClass as lu, unref as O, createElementVNode as V, withDirectives as Nu, isRef as a0, withModifiers as qu, vModelRadio as l0, renderSlot as me, createTextVNode as L, toDisplayString as uu, nextTick as Bu, normalizeStyle as i0, onMounted as c0, provide as ct, reactive as st, toRefs as dt, watch as vu, Fragment as z, renderList as Z, createBlock as P, mergeProps as ft, mergeModels as ju, useModel as Zu, withCtx as D, createVNode as y, createCommentVNode as U, resolveComponent as qe, vShow as s0, pushScopeId as xe, popScopeId as _e, createSlots as Ku } from "vue";
|
|
9
|
+
import { E as ge } from "./el-dialog-41ab8417.js";
|
|
10
|
+
import "./el-overlay-09ad71cd.js";
|
|
11
|
+
import { E as pt, a as bt } from "./el-form-item-eeb64520.js";
|
|
12
|
+
import { E as d0 } from "./el-input-2f75c4ba.js";
|
|
13
|
+
import { E as f0 } from "./el-input-number-5193fe6d.js";
|
|
14
14
|
import "./el-tooltip-4ed993c7.js";
|
|
15
|
-
import { E as
|
|
15
|
+
import { E as p0 } from "./el-button-c95adb85.js";
|
|
16
16
|
import "./el-popover-4ed993c7.js";
|
|
17
|
-
import { p as Xu, i as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
17
|
+
import { p as Xu, i as ht, c as mt, s as xt, E as _t } from "./index-a871c3eb.js";
|
|
18
|
+
import { E as b0 } from "./index-844bdd85.js";
|
|
19
|
+
import { M as gt } from "./index-bc8e277e.js";
|
|
20
|
+
import { E as W } from "./el-message-e544a8f5.js";
|
|
20
21
|
import { _ as ke } from "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
-
import { E as
|
|
22
|
-
import { E as
|
|
22
|
+
import { E as h0 } from "./index-57672682.js";
|
|
23
|
+
import { E as kt } from "./index-88546436.js";
|
|
24
|
+
import { h as m0, e as yt, g as vt, d as Ct, f as Et } from "./use-form-common-props-815d48a6.js";
|
|
23
25
|
import { u as Dt } from "./index-2e331d74.js";
|
|
24
|
-
import { u as Ft } from "./index-
|
|
25
|
-
import { i as At } from "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
26
|
+
import { u as Ft } from "./index-960806da.js";
|
|
27
|
+
import { i as At } from "./index-e5566b94.js";
|
|
28
|
+
import "./index-d77a7336.js";
|
|
29
|
+
import "./castArray-7741a212.js";
|
|
30
|
+
import "./index-d91dc23f.js";
|
|
31
|
+
import "./scroll-679bd6bf.js";
|
|
32
|
+
import "./debounce-8d53f4dd.js";
|
|
33
|
+
import "./vnode-5ddb7ed1.js";
|
|
34
|
+
import "./use-global-config-b5e9d3d5.js";
|
|
35
|
+
import "./_initCloneObject-eaef9418.js";
|
|
36
|
+
import "./raf-80ef0c0a.js";
|
|
37
|
+
import "./validator-764a9db0.js";
|
|
35
38
|
import "./typescript-7ae59c4c.js";
|
|
36
39
|
import "./index-657047bb.js";
|
|
37
40
|
import "./index-7ed0999e.js";
|
|
38
|
-
import "./config-provider-
|
|
39
|
-
import "./dropdown-
|
|
41
|
+
import "./config-provider-b16efd62.js";
|
|
42
|
+
import "./dropdown-a59bba73.js";
|
|
40
43
|
const x0 = Uu({
|
|
41
44
|
modelValue: {
|
|
42
45
|
type: [String, Number, Boolean],
|
|
43
46
|
default: void 0
|
|
44
47
|
},
|
|
45
|
-
size:
|
|
48
|
+
size: m0,
|
|
46
49
|
disabled: Boolean,
|
|
47
50
|
label: {
|
|
48
51
|
type: [String, Number, Boolean],
|
|
@@ -63,14 +66,14 @@ const x0 = Uu({
|
|
|
63
66
|
[be]: (u) => Oe(u) || Ve(u) || $e(u),
|
|
64
67
|
[he]: (u) => Oe(u) || Ve(u) || $e(u)
|
|
65
68
|
}, g0 = Symbol("radioGroupKey"), k0 = (u, e) => {
|
|
66
|
-
const t = eu(), n =
|
|
69
|
+
const t = eu(), n = o0(g0, void 0), r = Q(() => !!n), o = Q(() => Re(u.value) ? u.label : u.value), l = Q({
|
|
67
70
|
get() {
|
|
68
71
|
return r.value ? n.modelValue : u.modelValue;
|
|
69
72
|
},
|
|
70
73
|
set(s) {
|
|
71
|
-
r.value ? n.changeEvent(s) : e && e(be, s), t.value.checked = u.modelValue ===
|
|
74
|
+
r.value ? n.changeEvent(s) : e && e(be, s), t.value.checked = u.modelValue === o.value;
|
|
72
75
|
}
|
|
73
|
-
}),
|
|
76
|
+
}), a = yt(Q(() => n == null ? void 0 : n.size)), c = vt(Q(() => n == null ? void 0 : n.disabled)), i = eu(!1), f = Q(() => c.value || r.value && l.value !== o.value ? -1 : 0);
|
|
74
77
|
return Dt({
|
|
75
78
|
from: "label act as value",
|
|
76
79
|
replacement: "value",
|
|
@@ -82,11 +85,11 @@ const x0 = Uu({
|
|
|
82
85
|
isGroup: r,
|
|
83
86
|
radioGroup: n,
|
|
84
87
|
focus: i,
|
|
85
|
-
size:
|
|
88
|
+
size: a,
|
|
86
89
|
disabled: c,
|
|
87
90
|
tabIndex: f,
|
|
88
91
|
modelValue: l,
|
|
89
|
-
actualValue:
|
|
92
|
+
actualValue: o
|
|
90
93
|
};
|
|
91
94
|
}, Tt = Du({
|
|
92
95
|
name: "ElRadio"
|
|
@@ -95,7 +98,7 @@ const x0 = Uu({
|
|
|
95
98
|
props: wt,
|
|
96
99
|
emits: _0,
|
|
97
100
|
setup(u, { emit: e }) {
|
|
98
|
-
const t = u, n = se("radio"), { radioRef: r, radioGroup:
|
|
101
|
+
const t = u, n = se("radio"), { radioRef: r, radioGroup: o, focus: l, size: a, disabled: c, modelValue: i, actualValue: f } = k0(t, e);
|
|
99
102
|
function s() {
|
|
100
103
|
Bu(() => e(he, i.value));
|
|
101
104
|
}
|
|
@@ -108,7 +111,7 @@ const x0 = Uu({
|
|
|
108
111
|
O(n).is("focus", O(l)),
|
|
109
112
|
O(n).is("bordered", p.border),
|
|
110
113
|
O(n).is("checked", O(i) === O(f)),
|
|
111
|
-
O(n).m(O(
|
|
114
|
+
O(n).m(O(a))
|
|
112
115
|
])
|
|
113
116
|
}, [
|
|
114
117
|
V("span", {
|
|
@@ -121,10 +124,10 @@ const x0 = Uu({
|
|
|
121
124
|
Nu(V("input", {
|
|
122
125
|
ref_key: "radioRef",
|
|
123
126
|
ref: r,
|
|
124
|
-
"onUpdate:modelValue": (w) =>
|
|
127
|
+
"onUpdate:modelValue": (w) => a0(i) ? i.value = w : null,
|
|
125
128
|
class: lu(O(n).e("original")),
|
|
126
129
|
value: O(f),
|
|
127
|
-
name: p.name || ((d = O(
|
|
130
|
+
name: p.name || ((d = O(o)) == null ? void 0 : d.name),
|
|
128
131
|
disabled: O(c),
|
|
129
132
|
checked: O(i) === O(f),
|
|
130
133
|
type: "radio",
|
|
@@ -134,7 +137,7 @@ const x0 = Uu({
|
|
|
134
137
|
onClick: qu(() => {
|
|
135
138
|
}, ["stop"])
|
|
136
139
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
137
|
-
[
|
|
140
|
+
[l0, O(i)]
|
|
138
141
|
]),
|
|
139
142
|
V("span", {
|
|
140
143
|
class: lu(O(n).e("inner"))
|
|
@@ -162,7 +165,7 @@ const It = Uu({
|
|
|
162
165
|
...Ot,
|
|
163
166
|
props: It,
|
|
164
167
|
setup(u) {
|
|
165
|
-
const e = u, t = se("radio"), { radioRef: n, focus: r, size:
|
|
168
|
+
const e = u, t = se("radio"), { radioRef: n, focus: r, size: o, disabled: l, modelValue: a, radioGroup: c, actualValue: i } = k0(e), f = Q(() => ({
|
|
166
169
|
backgroundColor: (c == null ? void 0 : c.fill) || "",
|
|
167
170
|
borderColor: (c == null ? void 0 : c.fill) || "",
|
|
168
171
|
boxShadow: c != null && c.fill ? `-1px 0 0 0 ${c.fill}` : "",
|
|
@@ -173,16 +176,16 @@ const It = Uu({
|
|
|
173
176
|
return E(), S("label", {
|
|
174
177
|
class: lu([
|
|
175
178
|
O(t).b("button"),
|
|
176
|
-
O(t).is("active", O(
|
|
179
|
+
O(t).is("active", O(a) === O(i)),
|
|
177
180
|
O(t).is("disabled", O(l)),
|
|
178
181
|
O(t).is("focus", O(r)),
|
|
179
|
-
O(t).bm("button", O(
|
|
182
|
+
O(t).bm("button", O(o))
|
|
180
183
|
])
|
|
181
184
|
}, [
|
|
182
185
|
Nu(V("input", {
|
|
183
186
|
ref_key: "radioRef",
|
|
184
187
|
ref: n,
|
|
185
|
-
"onUpdate:modelValue": (d) =>
|
|
188
|
+
"onUpdate:modelValue": (d) => a0(a) ? a.value = d : null,
|
|
186
189
|
class: lu(O(t).be("button", "original-radio")),
|
|
187
190
|
value: O(i),
|
|
188
191
|
type: "radio",
|
|
@@ -193,11 +196,11 @@ const It = Uu({
|
|
|
193
196
|
onClick: qu(() => {
|
|
194
197
|
}, ["stop"])
|
|
195
198
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
196
|
-
[
|
|
199
|
+
[l0, O(a)]
|
|
197
200
|
]),
|
|
198
201
|
V("span", {
|
|
199
202
|
class: lu(O(t).be("button", "inner")),
|
|
200
|
-
style:
|
|
203
|
+
style: i0(O(a) === O(i) ? O(f) : {}),
|
|
201
204
|
onKeydown: qu(() => {
|
|
202
205
|
}, ["stop"])
|
|
203
206
|
}, [
|
|
@@ -215,7 +218,7 @@ const $t = Uu({
|
|
|
215
218
|
type: String,
|
|
216
219
|
default: void 0
|
|
217
220
|
},
|
|
218
|
-
size:
|
|
221
|
+
size: m0,
|
|
219
222
|
disabled: Boolean,
|
|
220
223
|
modelValue: {
|
|
221
224
|
type: [String, Number, Boolean],
|
|
@@ -244,7 +247,7 @@ const $t = Uu({
|
|
|
244
247
|
type: Me(Object),
|
|
245
248
|
default: () => C0
|
|
246
249
|
},
|
|
247
|
-
...
|
|
250
|
+
...ut(["ariaLabel"])
|
|
248
251
|
}), Rt = _0, C0 = {
|
|
249
252
|
label: "label",
|
|
250
253
|
value: "value",
|
|
@@ -256,13 +259,13 @@ const $t = Uu({
|
|
|
256
259
|
props: $t,
|
|
257
260
|
emits: Rt,
|
|
258
261
|
setup(u, { emit: e }) {
|
|
259
|
-
const t = u, n = se("radio"), r = Ft(),
|
|
262
|
+
const t = u, n = se("radio"), r = Ft(), o = eu(), { formItem: l } = Ct(), { inputId: a, isLabeledByFormItem: c } = Et(t, {
|
|
260
263
|
formItemContext: l
|
|
261
264
|
}), i = (m) => {
|
|
262
265
|
e(be, m), Bu(() => e(he, m));
|
|
263
266
|
};
|
|
264
|
-
|
|
265
|
-
const m =
|
|
267
|
+
c0(() => {
|
|
268
|
+
const m = o.value.querySelectorAll("[type=radio]"), d = m[0];
|
|
266
269
|
!Array.from(m).some((w) => w.checked) && d && (d.tabIndex = 0);
|
|
267
270
|
});
|
|
268
271
|
const f = Q(() => t.name || r.value), s = Q(() => ({
|
|
@@ -276,23 +279,23 @@ const $t = Uu({
|
|
|
276
279
|
};
|
|
277
280
|
return { ...m, ...d };
|
|
278
281
|
};
|
|
279
|
-
return
|
|
280
|
-
...
|
|
282
|
+
return ct(g0, st({
|
|
283
|
+
...dt(t),
|
|
281
284
|
changeEvent: i,
|
|
282
285
|
name: f
|
|
283
286
|
})), vu(() => t.modelValue, (m, d) => {
|
|
284
|
-
t.validateEvent && !At(m, d) && (l == null || l.validate("change").catch((w) =>
|
|
287
|
+
t.validateEvent && !At(m, d) && (l == null || l.validate("change").catch((w) => et()));
|
|
285
288
|
}), (m, d) => (E(), S("div", {
|
|
286
|
-
id: O(
|
|
289
|
+
id: O(a),
|
|
287
290
|
ref_key: "radioGroupRef",
|
|
288
|
-
ref:
|
|
291
|
+
ref: o,
|
|
289
292
|
class: lu(O(n).b("group")),
|
|
290
293
|
role: "radiogroup",
|
|
291
294
|
"aria-label": O(c) ? void 0 : m.ariaLabel || "radio-group",
|
|
292
295
|
"aria-labelledby": O(c) ? O(l).labelId : void 0
|
|
293
296
|
}, [
|
|
294
297
|
me(m.$slots, "default", {}, () => [
|
|
295
|
-
(E(!0), S(z, null, Z(t.options, (w, $) => (E(), P(y0,
|
|
298
|
+
(E(!0), S(z, null, Z(t.options, (w, $) => (E(), P(y0, ft({ key: $ }, p(w)), null, 16))), 128))
|
|
296
299
|
])
|
|
297
300
|
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
298
301
|
}
|
|
@@ -943,33 +946,33 @@ function Cu(u, e) {
|
|
|
943
946
|
const t = Lt(e);
|
|
944
947
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
945
948
|
let r = "";
|
|
946
|
-
for (let
|
|
947
|
-
const
|
|
948
|
-
if (
|
|
949
|
-
r += t[
|
|
949
|
+
for (let o = 0, l = n.length; o < l; o += 3) {
|
|
950
|
+
const a = parseInt(n.slice(o + 1, o + 3), 16);
|
|
951
|
+
if (a < 128) {
|
|
952
|
+
r += t[a];
|
|
950
953
|
continue;
|
|
951
954
|
}
|
|
952
|
-
if ((
|
|
953
|
-
const c = parseInt(n.slice(
|
|
955
|
+
if ((a & 224) === 192 && o + 3 < l) {
|
|
956
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16);
|
|
954
957
|
if ((c & 192) === 128) {
|
|
955
|
-
const i =
|
|
956
|
-
i < 128 ? r += "��" : r += String.fromCharCode(i),
|
|
958
|
+
const i = a << 6 & 1984 | c & 63;
|
|
959
|
+
i < 128 ? r += "��" : r += String.fromCharCode(i), o += 3;
|
|
957
960
|
continue;
|
|
958
961
|
}
|
|
959
962
|
}
|
|
960
|
-
if ((
|
|
961
|
-
const c = parseInt(n.slice(
|
|
963
|
+
if ((a & 240) === 224 && o + 6 < l) {
|
|
964
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16), i = parseInt(n.slice(o + 7, o + 9), 16);
|
|
962
965
|
if ((c & 192) === 128 && (i & 192) === 128) {
|
|
963
|
-
const f =
|
|
964
|
-
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f),
|
|
966
|
+
const f = a << 12 & 61440 | c << 6 & 4032 | i & 63;
|
|
967
|
+
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), o += 6;
|
|
965
968
|
continue;
|
|
966
969
|
}
|
|
967
970
|
}
|
|
968
|
-
if ((
|
|
969
|
-
const c = parseInt(n.slice(
|
|
971
|
+
if ((a & 248) === 240 && o + 9 < l) {
|
|
972
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16), i = parseInt(n.slice(o + 7, o + 9), 16), f = parseInt(n.slice(o + 10, o + 12), 16);
|
|
970
973
|
if ((c & 192) === 128 && (i & 192) === 128 && (f & 192) === 128) {
|
|
971
|
-
let s =
|
|
972
|
-
s < 65536 || s > 1114111 ? r += "����" : (s -= 65536, r += String.fromCharCode(55296 + (s >> 10), 56320 + (s & 1023))),
|
|
974
|
+
let s = a << 18 & 1835008 | c << 12 & 258048 | i << 6 & 4032 | f & 63;
|
|
975
|
+
s < 65536 || s > 1114111 ? r += "����" : (s -= 65536, r += String.fromCharCode(55296 + (s >> 10), 56320 + (s & 1023))), o += 9;
|
|
973
976
|
continue;
|
|
974
977
|
}
|
|
975
978
|
}
|
|
@@ -998,28 +1001,28 @@ function Ou(u, e, t) {
|
|
|
998
1001
|
typeof e != "string" && (t = e, e = Ou.defaultChars), typeof t > "u" && (t = !0);
|
|
999
1002
|
const n = Pt(e);
|
|
1000
1003
|
let r = "";
|
|
1001
|
-
for (let
|
|
1002
|
-
const
|
|
1003
|
-
if (t &&
|
|
1004
|
-
r += u.slice(
|
|
1004
|
+
for (let o = 0, l = u.length; o < l; o++) {
|
|
1005
|
+
const a = u.charCodeAt(o);
|
|
1006
|
+
if (t && a === 37 && o + 2 < l && /^[0-9a-f]{2}$/i.test(u.slice(o + 1, o + 3))) {
|
|
1007
|
+
r += u.slice(o, o + 3), o += 2;
|
|
1005
1008
|
continue;
|
|
1006
1009
|
}
|
|
1007
|
-
if (
|
|
1008
|
-
r += n[
|
|
1010
|
+
if (a < 128) {
|
|
1011
|
+
r += n[a];
|
|
1009
1012
|
continue;
|
|
1010
1013
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
if (
|
|
1013
|
-
const c = u.charCodeAt(
|
|
1014
|
+
if (a >= 55296 && a <= 57343) {
|
|
1015
|
+
if (a >= 55296 && a <= 56319 && o + 1 < l) {
|
|
1016
|
+
const c = u.charCodeAt(o + 1);
|
|
1014
1017
|
if (c >= 56320 && c <= 57343) {
|
|
1015
|
-
r += encodeURIComponent(u[
|
|
1018
|
+
r += encodeURIComponent(u[o] + u[o + 1]), o++;
|
|
1016
1019
|
continue;
|
|
1017
1020
|
}
|
|
1018
1021
|
}
|
|
1019
1022
|
r += "%EF%BF%BD";
|
|
1020
1023
|
continue;
|
|
1021
1024
|
}
|
|
1022
|
-
r += encodeURIComponent(u[
|
|
1025
|
+
r += encodeURIComponent(u[o]);
|
|
1023
1026
|
}
|
|
1024
1027
|
return r;
|
|
1025
1028
|
}
|
|
@@ -1055,24 +1058,24 @@ function Ee(u, e) {
|
|
|
1055
1058
|
return t.parse(u, e), t;
|
|
1056
1059
|
}
|
|
1057
1060
|
zu.prototype.parse = function(u, e) {
|
|
1058
|
-
let t, n, r,
|
|
1059
|
-
if (
|
|
1060
|
-
const i = jt.exec(
|
|
1061
|
+
let t, n, r, o = u;
|
|
1062
|
+
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
1063
|
+
const i = jt.exec(o);
|
|
1061
1064
|
if (i)
|
|
1062
1065
|
return this.pathname = i[1], i[2] && (this.search = i[2]), this;
|
|
1063
1066
|
}
|
|
1064
|
-
let l = Ut.exec(
|
|
1065
|
-
if (l && (l = l[0], t = l.toLowerCase(), this.protocol = l,
|
|
1067
|
+
let l = Ut.exec(o);
|
|
1068
|
+
if (l && (l = l[0], t = l.toLowerCase(), this.protocol = l, o = o.substr(l.length)), (e || l || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(l && Ze[l]) && (o = o.substr(2), this.slashes = !0)), !Ze[l] && (r || l && !He[l])) {
|
|
1066
1069
|
let i = -1;
|
|
1067
1070
|
for (let d = 0; d < Ne.length; d++)
|
|
1068
|
-
n =
|
|
1071
|
+
n = o.indexOf(Ne[d]), n !== -1 && (i === -1 || n < i) && (i = n);
|
|
1069
1072
|
let f, s;
|
|
1070
|
-
i === -1 ? s =
|
|
1073
|
+
i === -1 ? s = o.lastIndexOf("@") : s = o.lastIndexOf("@", i), s !== -1 && (f = o.slice(0, s), o = o.slice(s + 1), this.auth = f), i = -1;
|
|
1071
1074
|
for (let d = 0; d < Ue.length; d++)
|
|
1072
|
-
n =
|
|
1073
|
-
i === -1 && (i =
|
|
1074
|
-
const p =
|
|
1075
|
-
|
|
1075
|
+
n = o.indexOf(Ue[d]), n !== -1 && (i === -1 || n < i) && (i = n);
|
|
1076
|
+
i === -1 && (i = o.length), o[i - 1] === ":" && i--;
|
|
1077
|
+
const p = o.slice(0, i);
|
|
1078
|
+
o = o.slice(i), this.parseHost(p), this.hostname = this.hostname || "";
|
|
1076
1079
|
const m = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1077
1080
|
if (!m) {
|
|
1078
1081
|
const d = this.hostname.split(/\./);
|
|
@@ -1084,7 +1087,7 @@ zu.prototype.parse = function(u, e) {
|
|
|
1084
1087
|
A.charCodeAt(k) > 127 ? h += "x" : h += A[k];
|
|
1085
1088
|
if (!h.match(je)) {
|
|
1086
1089
|
const k = d.slice(0, w), b = d.slice(w + 1), x = A.match(Wt);
|
|
1087
|
-
x && (k.push(x[1]), b.unshift(x[2])), b.length && (
|
|
1090
|
+
x && (k.push(x[1]), b.unshift(x[2])), b.length && (o = b.join(".") + o), this.hostname = k.join(".");
|
|
1088
1091
|
break;
|
|
1089
1092
|
}
|
|
1090
1093
|
}
|
|
@@ -1092,10 +1095,10 @@ zu.prototype.parse = function(u, e) {
|
|
|
1092
1095
|
}
|
|
1093
1096
|
this.hostname.length > Jt && (this.hostname = ""), m && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1094
1097
|
}
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1097
|
-
const c =
|
|
1098
|
-
return c !== -1 && (this.search =
|
|
1098
|
+
const a = o.indexOf("#");
|
|
1099
|
+
a !== -1 && (this.hash = o.substr(a), o = o.slice(0, a));
|
|
1100
|
+
const c = o.indexOf("?");
|
|
1101
|
+
return c !== -1 && (this.search = o.substr(c), o = o.slice(0, c)), o && (this.pathname = o), He[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1099
1102
|
};
|
|
1100
1103
|
zu.prototype.parseHost = function(u) {
|
|
1101
1104
|
let e = Nt.exec(u);
|
|
@@ -1176,14 +1179,14 @@ var hu;
|
|
|
1176
1179
|
function le(u) {
|
|
1177
1180
|
return u >= Y.ZERO && u <= Y.NINE;
|
|
1178
1181
|
}
|
|
1179
|
-
function
|
|
1182
|
+
function on(u) {
|
|
1180
1183
|
return u >= Y.UPPER_A && u <= Y.UPPER_F || u >= Y.LOWER_A && u <= Y.LOWER_F;
|
|
1181
1184
|
}
|
|
1182
|
-
function
|
|
1185
|
+
function an(u) {
|
|
1183
1186
|
return u >= Y.UPPER_A && u <= Y.UPPER_Z || u >= Y.LOWER_A && u <= Y.LOWER_Z || le(u);
|
|
1184
1187
|
}
|
|
1185
1188
|
function ln(u) {
|
|
1186
|
-
return u === Y.EQUALS ||
|
|
1189
|
+
return u === Y.EQUALS || an(u);
|
|
1187
1190
|
}
|
|
1188
1191
|
var J;
|
|
1189
1192
|
(function(u) {
|
|
@@ -1240,8 +1243,8 @@ class cn {
|
|
|
1240
1243
|
}
|
|
1241
1244
|
addToNumericResult(e, t, n, r) {
|
|
1242
1245
|
if (t !== n) {
|
|
1243
|
-
const
|
|
1244
|
-
this.result = this.result * Math.pow(r,
|
|
1246
|
+
const o = n - t;
|
|
1247
|
+
this.result = this.result * Math.pow(r, o) + parseInt(e.substr(t, o), r), this.consumed += o;
|
|
1245
1248
|
}
|
|
1246
1249
|
}
|
|
1247
1250
|
/**
|
|
@@ -1257,7 +1260,7 @@ class cn {
|
|
|
1257
1260
|
const n = t;
|
|
1258
1261
|
for (; t < e.length; ) {
|
|
1259
1262
|
const r = e.charCodeAt(t);
|
|
1260
|
-
if (le(r) ||
|
|
1263
|
+
if (le(r) || on(r))
|
|
1261
1264
|
t += 1;
|
|
1262
1265
|
else
|
|
1263
1266
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1318,17 +1321,17 @@ class cn {
|
|
|
1318
1321
|
*/
|
|
1319
1322
|
stateNamedEntity(e, t) {
|
|
1320
1323
|
const { decodeTree: n } = this;
|
|
1321
|
-
let r = n[this.treeIndex],
|
|
1324
|
+
let r = n[this.treeIndex], o = (r & hu.VALUE_LENGTH) >> 14;
|
|
1322
1325
|
for (; t < e.length; t++, this.excess++) {
|
|
1323
1326
|
const l = e.charCodeAt(t);
|
|
1324
|
-
if (this.treeIndex = sn(n, r, this.treeIndex + Math.max(1,
|
|
1327
|
+
if (this.treeIndex = sn(n, r, this.treeIndex + Math.max(1, o), l), this.treeIndex < 0)
|
|
1325
1328
|
return this.result === 0 || // If we are parsing an attribute
|
|
1326
1329
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1327
|
-
(
|
|
1330
|
+
(o === 0 || // And there should be no invalid characters.
|
|
1328
1331
|
ln(l)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1329
|
-
if (r = n[this.treeIndex],
|
|
1332
|
+
if (r = n[this.treeIndex], o = (r & hu.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1330
1333
|
if (l === Y.SEMI)
|
|
1331
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
1334
|
+
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1332
1335
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1333
1336
|
}
|
|
1334
1337
|
}
|
|
@@ -1383,40 +1386,40 @@ class cn {
|
|
|
1383
1386
|
function S0(u) {
|
|
1384
1387
|
let e = "";
|
|
1385
1388
|
const t = new cn(u, (n) => e += tn(n));
|
|
1386
|
-
return function(r,
|
|
1387
|
-
let l = 0,
|
|
1388
|
-
for (; (
|
|
1389
|
-
e += r.slice(l,
|
|
1389
|
+
return function(r, o) {
|
|
1390
|
+
let l = 0, a = 0;
|
|
1391
|
+
for (; (a = r.indexOf("&", a)) >= 0; ) {
|
|
1392
|
+
e += r.slice(l, a), t.startEntity(o);
|
|
1390
1393
|
const i = t.write(
|
|
1391
1394
|
r,
|
|
1392
1395
|
// Skip the "&"
|
|
1393
|
-
|
|
1396
|
+
a + 1
|
|
1394
1397
|
);
|
|
1395
1398
|
if (i < 0) {
|
|
1396
|
-
l =
|
|
1399
|
+
l = a + t.end();
|
|
1397
1400
|
break;
|
|
1398
1401
|
}
|
|
1399
|
-
l =
|
|
1402
|
+
l = a + i, a = i === 0 ? l + 1 : l;
|
|
1400
1403
|
}
|
|
1401
1404
|
const c = e + r.slice(l);
|
|
1402
1405
|
return e = "", c;
|
|
1403
1406
|
};
|
|
1404
1407
|
}
|
|
1405
1408
|
function sn(u, e, t, n) {
|
|
1406
|
-
const r = (e & hu.BRANCH_LENGTH) >> 7,
|
|
1409
|
+
const r = (e & hu.BRANCH_LENGTH) >> 7, o = e & hu.JUMP_TABLE;
|
|
1407
1410
|
if (r === 0)
|
|
1408
|
-
return
|
|
1409
|
-
if (
|
|
1410
|
-
const c = n -
|
|
1411
|
+
return o !== 0 && n === o ? t : -1;
|
|
1412
|
+
if (o) {
|
|
1413
|
+
const c = n - o;
|
|
1411
1414
|
return c < 0 || c >= r ? -1 : u[t + c] - 1;
|
|
1412
1415
|
}
|
|
1413
|
-
let l = t,
|
|
1414
|
-
for (; l <=
|
|
1415
|
-
const c = l +
|
|
1416
|
+
let l = t, a = l + r - 1;
|
|
1417
|
+
for (; l <= a; ) {
|
|
1418
|
+
const c = l + a >>> 1, i = u[c];
|
|
1416
1419
|
if (i < n)
|
|
1417
1420
|
l = c + 1;
|
|
1418
1421
|
else if (i > n)
|
|
1419
|
-
|
|
1422
|
+
a = c - 1;
|
|
1420
1423
|
else
|
|
1421
1424
|
return u[c + r];
|
|
1422
1425
|
}
|
|
@@ -1587,14 +1590,14 @@ const Fn = { mdurl: Qt, ucmicro: Kt }, An = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1587
1590
|
unescapeMd: gn
|
|
1588
1591
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1589
1592
|
function wn(u, e, t) {
|
|
1590
|
-
let n, r,
|
|
1591
|
-
const
|
|
1592
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
|
1593
|
-
if (
|
|
1593
|
+
let n, r, o, l;
|
|
1594
|
+
const a = u.posMax, c = u.pos;
|
|
1595
|
+
for (u.pos = e + 1, n = 1; u.pos < a; ) {
|
|
1596
|
+
if (o = u.src.charCodeAt(u.pos), o === 93 && (n--, n === 0)) {
|
|
1594
1597
|
r = !0;
|
|
1595
1598
|
break;
|
|
1596
1599
|
}
|
|
1597
|
-
if (l = u.pos, u.md.inline.skipToken(u),
|
|
1600
|
+
if (l = u.pos, u.md.inline.skipToken(u), o === 91) {
|
|
1598
1601
|
if (l === u.pos - 1)
|
|
1599
1602
|
n++;
|
|
1600
1603
|
else if (t)
|
|
@@ -1606,7 +1609,7 @@ function wn(u, e, t) {
|
|
|
1606
1609
|
}
|
|
1607
1610
|
function Tn(u, e, t) {
|
|
1608
1611
|
let n, r = e;
|
|
1609
|
-
const
|
|
1612
|
+
const o = {
|
|
1610
1613
|
ok: !1,
|
|
1611
1614
|
pos: 0,
|
|
1612
1615
|
str: ""
|
|
@@ -1614,16 +1617,16 @@ function Tn(u, e, t) {
|
|
|
1614
1617
|
if (u.charCodeAt(r) === 60) {
|
|
1615
1618
|
for (r++; r < t; ) {
|
|
1616
1619
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1617
|
-
return
|
|
1620
|
+
return o;
|
|
1618
1621
|
if (n === 62)
|
|
1619
|
-
return
|
|
1622
|
+
return o.pos = r + 1, o.str = Eu(u.slice(e + 1, r)), o.ok = !0, o;
|
|
1620
1623
|
if (n === 92 && r + 1 < t) {
|
|
1621
1624
|
r += 2;
|
|
1622
1625
|
continue;
|
|
1623
1626
|
}
|
|
1624
1627
|
r++;
|
|
1625
1628
|
}
|
|
1626
|
-
return
|
|
1629
|
+
return o;
|
|
1627
1630
|
}
|
|
1628
1631
|
let l = 0;
|
|
1629
1632
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
@@ -1634,7 +1637,7 @@ function Tn(u, e, t) {
|
|
|
1634
1637
|
continue;
|
|
1635
1638
|
}
|
|
1636
1639
|
if (n === 40 && (l++, l > 32))
|
|
1637
|
-
return
|
|
1640
|
+
return o;
|
|
1638
1641
|
if (n === 41) {
|
|
1639
1642
|
if (l === 0)
|
|
1640
1643
|
break;
|
|
@@ -1642,10 +1645,10 @@ function Tn(u, e, t) {
|
|
|
1642
1645
|
}
|
|
1643
1646
|
r++;
|
|
1644
1647
|
}
|
|
1645
|
-
return e === r || l !== 0 || (
|
|
1648
|
+
return e === r || l !== 0 || (o.str = Eu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1646
1649
|
}
|
|
1647
1650
|
function Sn(u, e, t, n) {
|
|
1648
|
-
let r,
|
|
1651
|
+
let r, o = e;
|
|
1649
1652
|
const l = {
|
|
1650
1653
|
// if `true`, this is a valid link title
|
|
1651
1654
|
ok: !1,
|
|
@@ -1661,21 +1664,21 @@ function Sn(u, e, t, n) {
|
|
|
1661
1664
|
if (n)
|
|
1662
1665
|
l.str = n.str, l.marker = n.marker;
|
|
1663
1666
|
else {
|
|
1664
|
-
if (
|
|
1667
|
+
if (o >= t)
|
|
1665
1668
|
return l;
|
|
1666
|
-
let
|
|
1667
|
-
if (
|
|
1669
|
+
let a = u.charCodeAt(o);
|
|
1670
|
+
if (a !== 34 && a !== 39 && a !== 40)
|
|
1668
1671
|
return l;
|
|
1669
|
-
e++,
|
|
1672
|
+
e++, o++, a === 40 && (a = 41), l.marker = a;
|
|
1670
1673
|
}
|
|
1671
|
-
for (;
|
|
1672
|
-
if (r = u.charCodeAt(
|
|
1673
|
-
return l.pos =
|
|
1674
|
+
for (; o < t; ) {
|
|
1675
|
+
if (r = u.charCodeAt(o), r === l.marker)
|
|
1676
|
+
return l.pos = o + 1, l.str += Eu(u.slice(e, o)), l.ok = !0, l;
|
|
1674
1677
|
if (r === 40 && l.marker === 41)
|
|
1675
1678
|
return l;
|
|
1676
|
-
r === 92 &&
|
|
1679
|
+
r === 92 && o + 1 < t && o++, o++;
|
|
1677
1680
|
}
|
|
1678
|
-
return l.can_continue = !0, l.str += Eu(u.slice(e,
|
|
1681
|
+
return l.can_continue = !0, l.str += Eu(u.slice(e, o)), l;
|
|
1679
1682
|
}
|
|
1680
1683
|
const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1681
1684
|
__proto__: null,
|
|
@@ -1684,40 +1687,40 @@ const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1684
1687
|
parseLinkTitle: Sn
|
|
1685
1688
|
}, Symbol.toStringTag, { value: "Module" })), su = {};
|
|
1686
1689
|
su.code_inline = function(u, e, t, n, r) {
|
|
1687
|
-
const
|
|
1688
|
-
return "<code" + r.renderAttrs(
|
|
1690
|
+
const o = u[e];
|
|
1691
|
+
return "<code" + r.renderAttrs(o) + ">" + mu(o.content) + "</code>";
|
|
1689
1692
|
};
|
|
1690
1693
|
su.code_block = function(u, e, t, n, r) {
|
|
1691
|
-
const
|
|
1692
|
-
return "<pre" + r.renderAttrs(
|
|
1694
|
+
const o = u[e];
|
|
1695
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + mu(u[e].content) + `</code></pre>
|
|
1693
1696
|
`;
|
|
1694
1697
|
};
|
|
1695
1698
|
su.fence = function(u, e, t, n, r) {
|
|
1696
|
-
const
|
|
1697
|
-
let
|
|
1699
|
+
const o = u[e], l = o.info ? Eu(o.info).trim() : "";
|
|
1700
|
+
let a = "", c = "";
|
|
1698
1701
|
if (l) {
|
|
1699
1702
|
const f = l.split(/(\s+)/g);
|
|
1700
|
-
|
|
1703
|
+
a = f[0], c = f.slice(2).join("");
|
|
1701
1704
|
}
|
|
1702
1705
|
let i;
|
|
1703
|
-
if (t.highlight ? i = t.highlight(
|
|
1706
|
+
if (t.highlight ? i = t.highlight(o.content, a, c) || mu(o.content) : i = mu(o.content), i.indexOf("<pre") === 0)
|
|
1704
1707
|
return i + `
|
|
1705
1708
|
`;
|
|
1706
1709
|
if (l) {
|
|
1707
|
-
const f =
|
|
1708
|
-
f < 0 ? s.push(["class", t.langPrefix +
|
|
1710
|
+
const f = o.attrIndex("class"), s = o.attrs ? o.attrs.slice() : [];
|
|
1711
|
+
f < 0 ? s.push(["class", t.langPrefix + a]) : (s[f] = s[f].slice(), s[f][1] += " " + t.langPrefix + a);
|
|
1709
1712
|
const p = {
|
|
1710
1713
|
attrs: s
|
|
1711
1714
|
};
|
|
1712
1715
|
return `<pre><code${r.renderAttrs(p)}>${i}</code></pre>
|
|
1713
1716
|
`;
|
|
1714
1717
|
}
|
|
1715
|
-
return `<pre><code${r.renderAttrs(
|
|
1718
|
+
return `<pre><code${r.renderAttrs(o)}>${i}</code></pre>
|
|
1716
1719
|
`;
|
|
1717
1720
|
};
|
|
1718
1721
|
su.image = function(u, e, t, n, r) {
|
|
1719
|
-
const
|
|
1720
|
-
return
|
|
1722
|
+
const o = u[e];
|
|
1723
|
+
return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(u, e, t);
|
|
1721
1724
|
};
|
|
1722
1725
|
su.hardbreak = function(u, e, t) {
|
|
1723
1726
|
return t.xhtmlOut ? `<br />
|
|
@@ -1752,31 +1755,31 @@ Fu.prototype.renderAttrs = function(e) {
|
|
|
1752
1755
|
};
|
|
1753
1756
|
Fu.prototype.renderToken = function(e, t, n) {
|
|
1754
1757
|
const r = e[t];
|
|
1755
|
-
let
|
|
1758
|
+
let o = "";
|
|
1756
1759
|
if (r.hidden)
|
|
1757
1760
|
return "";
|
|
1758
|
-
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (
|
|
1759
|
-
`),
|
|
1761
|
+
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (o += `
|
|
1762
|
+
`), o += (r.nesting === -1 ? "</" : "<") + r.tag, o += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (o += " /");
|
|
1760
1763
|
let l = !1;
|
|
1761
1764
|
if (r.block && (l = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1762
|
-
const
|
|
1763
|
-
(
|
|
1765
|
+
const a = e[t + 1];
|
|
1766
|
+
(a.type === "inline" || a.hidden || a.nesting === -1 && a.tag === r.tag) && (l = !1);
|
|
1764
1767
|
}
|
|
1765
|
-
return
|
|
1766
|
-
` : ">",
|
|
1768
|
+
return o += l ? `>
|
|
1769
|
+
` : ">", o;
|
|
1767
1770
|
};
|
|
1768
1771
|
Fu.prototype.renderInline = function(u, e, t) {
|
|
1769
1772
|
let n = "";
|
|
1770
1773
|
const r = this.rules;
|
|
1771
|
-
for (let
|
|
1772
|
-
const
|
|
1773
|
-
typeof r[
|
|
1774
|
+
for (let o = 0, l = u.length; o < l; o++) {
|
|
1775
|
+
const a = u[o].type;
|
|
1776
|
+
typeof r[a] < "u" ? n += r[a](u, o, e, t, this) : n += this.renderToken(u, o, e);
|
|
1774
1777
|
}
|
|
1775
1778
|
return n;
|
|
1776
1779
|
};
|
|
1777
1780
|
Fu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1778
1781
|
let n = "";
|
|
1779
|
-
for (let r = 0,
|
|
1782
|
+
for (let r = 0, o = u.length; r < o; r++)
|
|
1780
1783
|
switch (u[r].type) {
|
|
1781
1784
|
case "text":
|
|
1782
1785
|
n += u[r].content;
|
|
@@ -1799,9 +1802,9 @@ Fu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1799
1802
|
Fu.prototype.render = function(u, e, t) {
|
|
1800
1803
|
let n = "";
|
|
1801
1804
|
const r = this.rules;
|
|
1802
|
-
for (let
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1805
|
+
for (let o = 0, l = u.length; o < l; o++) {
|
|
1806
|
+
const a = u[o].type;
|
|
1807
|
+
a === "inline" ? n += this.renderInline(u[o].children, e, t) : typeof r[a] < "u" ? n += r[a](u, o, e, t, this) : n += this.renderToken(u, o, e, t);
|
|
1805
1808
|
}
|
|
1806
1809
|
return n;
|
|
1807
1810
|
};
|
|
@@ -1833,25 +1836,25 @@ tu.prototype.at = function(u, e, t) {
|
|
|
1833
1836
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1834
1837
|
};
|
|
1835
1838
|
tu.prototype.before = function(u, e, t, n) {
|
|
1836
|
-
const r = this.__find__(u),
|
|
1839
|
+
const r = this.__find__(u), o = n || {};
|
|
1837
1840
|
if (r === -1)
|
|
1838
1841
|
throw new Error("Parser rule not found: " + u);
|
|
1839
1842
|
this.__rules__.splice(r, 0, {
|
|
1840
1843
|
name: e,
|
|
1841
1844
|
enabled: !0,
|
|
1842
1845
|
fn: t,
|
|
1843
|
-
alt:
|
|
1846
|
+
alt: o.alt || []
|
|
1844
1847
|
}), this.__cache__ = null;
|
|
1845
1848
|
};
|
|
1846
1849
|
tu.prototype.after = function(u, e, t, n) {
|
|
1847
|
-
const r = this.__find__(u),
|
|
1850
|
+
const r = this.__find__(u), o = n || {};
|
|
1848
1851
|
if (r === -1)
|
|
1849
1852
|
throw new Error("Parser rule not found: " + u);
|
|
1850
1853
|
this.__rules__.splice(r + 1, 0, {
|
|
1851
1854
|
name: e,
|
|
1852
1855
|
enabled: !0,
|
|
1853
1856
|
fn: t,
|
|
1854
|
-
alt:
|
|
1857
|
+
alt: o.alt || []
|
|
1855
1858
|
}), this.__cache__ = null;
|
|
1856
1859
|
};
|
|
1857
1860
|
tu.prototype.push = function(u, e, t) {
|
|
@@ -1897,10 +1900,10 @@ tu.prototype.disable = function(u, e) {
|
|
|
1897
1900
|
tu.prototype.getRules = function(u) {
|
|
1898
1901
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1899
1902
|
};
|
|
1900
|
-
function
|
|
1903
|
+
function au(u, e, t) {
|
|
1901
1904
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
1902
1905
|
}
|
|
1903
|
-
|
|
1906
|
+
au.prototype.attrIndex = function(e) {
|
|
1904
1907
|
if (!this.attrs)
|
|
1905
1908
|
return -1;
|
|
1906
1909
|
const t = this.attrs;
|
|
@@ -1909,26 +1912,26 @@ ou.prototype.attrIndex = function(e) {
|
|
|
1909
1912
|
return n;
|
|
1910
1913
|
return -1;
|
|
1911
1914
|
};
|
|
1912
|
-
|
|
1915
|
+
au.prototype.attrPush = function(e) {
|
|
1913
1916
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1914
1917
|
};
|
|
1915
|
-
|
|
1918
|
+
au.prototype.attrSet = function(e, t) {
|
|
1916
1919
|
const n = this.attrIndex(e), r = [e, t];
|
|
1917
1920
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1918
1921
|
};
|
|
1919
|
-
|
|
1922
|
+
au.prototype.attrGet = function(e) {
|
|
1920
1923
|
const t = this.attrIndex(e);
|
|
1921
1924
|
let n = null;
|
|
1922
1925
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1923
1926
|
};
|
|
1924
|
-
|
|
1927
|
+
au.prototype.attrJoin = function(e, t) {
|
|
1925
1928
|
const n = this.attrIndex(e);
|
|
1926
1929
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1927
1930
|
};
|
|
1928
1931
|
function $0(u, e, t) {
|
|
1929
1932
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1930
1933
|
}
|
|
1931
|
-
$0.prototype.Token =
|
|
1934
|
+
$0.prototype.Token = au;
|
|
1932
1935
|
const On = /\r\n?|\n/g, Vn = /\0/g;
|
|
1933
1936
|
function $n(u) {
|
|
1934
1937
|
let e;
|
|
@@ -1958,19 +1961,19 @@ function zn(u) {
|
|
|
1958
1961
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1959
1962
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1960
1963
|
continue;
|
|
1961
|
-
let r = e[t].children,
|
|
1964
|
+
let r = e[t].children, o = 0;
|
|
1962
1965
|
for (let l = r.length - 1; l >= 0; l--) {
|
|
1963
|
-
const
|
|
1964
|
-
if (
|
|
1965
|
-
for (l--; r[l].level !==
|
|
1966
|
+
const a = r[l];
|
|
1967
|
+
if (a.type === "link_close") {
|
|
1968
|
+
for (l--; r[l].level !== a.level && r[l].type !== "link_open"; )
|
|
1966
1969
|
l--;
|
|
1967
1970
|
continue;
|
|
1968
1971
|
}
|
|
1969
|
-
if (
|
|
1970
|
-
const c =
|
|
1972
|
+
if (a.type === "html_inline" && (qn(a.content) && o > 0 && o--, Bn(a.content) && o++), !(o > 0) && a.type === "text" && u.md.linkify.test(a.content)) {
|
|
1973
|
+
const c = a.content;
|
|
1971
1974
|
let i = u.md.linkify.match(c);
|
|
1972
1975
|
const f = [];
|
|
1973
|
-
let s =
|
|
1976
|
+
let s = a.level, p = 0;
|
|
1974
1977
|
i.length > 0 && i[0].index === 0 && l > 0 && r[l - 1].type === "text_special" && (i = i.slice(1));
|
|
1975
1978
|
for (let m = 0; m < i.length; m++) {
|
|
1976
1979
|
const d = i[m].url, w = u.md.normalizeLink(d);
|
|
@@ -2035,16 +2038,16 @@ function Jn(u, e) {
|
|
|
2035
2038
|
let t;
|
|
2036
2039
|
const n = [];
|
|
2037
2040
|
for (let r = 0; r < u.length; r++) {
|
|
2038
|
-
const
|
|
2041
|
+
const o = u[r], l = u[r].level;
|
|
2039
2042
|
for (t = n.length - 1; t >= 0 && !(n[t].level <= l); t--)
|
|
2040
2043
|
;
|
|
2041
|
-
if (n.length = t + 1,
|
|
2044
|
+
if (n.length = t + 1, o.type !== "text")
|
|
2042
2045
|
continue;
|
|
2043
|
-
let
|
|
2046
|
+
let a = o.content, c = 0, i = a.length;
|
|
2044
2047
|
u:
|
|
2045
2048
|
for (; c < i; ) {
|
|
2046
2049
|
Ge.lastIndex = c;
|
|
2047
|
-
const f = Ge.exec(
|
|
2050
|
+
const f = Ge.exec(a);
|
|
2048
2051
|
if (!f)
|
|
2049
2052
|
break;
|
|
2050
2053
|
let s = !0, p = !0;
|
|
@@ -2052,7 +2055,7 @@ function Jn(u, e) {
|
|
|
2052
2055
|
const m = f[0] === "'";
|
|
2053
2056
|
let d = 32;
|
|
2054
2057
|
if (f.index - 1 >= 0)
|
|
2055
|
-
d =
|
|
2058
|
+
d = a.charCodeAt(f.index - 1);
|
|
2056
2059
|
else
|
|
2057
2060
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
2058
2061
|
if (u[t].content) {
|
|
@@ -2061,7 +2064,7 @@ function Jn(u, e) {
|
|
|
2061
2064
|
}
|
|
2062
2065
|
let w = 32;
|
|
2063
2066
|
if (c < i)
|
|
2064
|
-
w =
|
|
2067
|
+
w = a.charCodeAt(c);
|
|
2065
2068
|
else
|
|
2066
2069
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
2067
2070
|
if (u[t].content) {
|
|
@@ -2070,7 +2073,7 @@ function Jn(u, e) {
|
|
|
2070
2073
|
}
|
|
2071
2074
|
const $ = Su(d) || Tu(String.fromCharCode(d)), A = Su(w) || Tu(String.fromCharCode(w)), h = wu(d), k = wu(w);
|
|
2072
2075
|
if (k ? s = !1 : A && (h || $ || (s = !1)), h ? p = !1 : $ && (k || A || (p = !1)), w === 34 && f[0] === '"' && d >= 48 && d <= 57 && (p = s = !1), s && p && (s = $, p = A), !s && !p) {
|
|
2073
|
-
m && (
|
|
2076
|
+
m && (o.content = Ru(o.content, f.index, Je));
|
|
2074
2077
|
continue;
|
|
2075
2078
|
}
|
|
2076
2079
|
if (p)
|
|
@@ -2081,11 +2084,11 @@ function Jn(u, e) {
|
|
|
2081
2084
|
if (b.single === m && n[t].level === l) {
|
|
2082
2085
|
b = n[t];
|
|
2083
2086
|
let x, g;
|
|
2084
|
-
m ? (x = e.md.options.quotes[2], g = e.md.options.quotes[3]) : (x = e.md.options.quotes[0], g = e.md.options.quotes[1]),
|
|
2087
|
+
m ? (x = e.md.options.quotes[2], g = e.md.options.quotes[3]) : (x = e.md.options.quotes[0], g = e.md.options.quotes[1]), o.content = Ru(o.content, f.index, g), u[b.token].content = Ru(
|
|
2085
2088
|
u[b.token].content,
|
|
2086
2089
|
b.pos,
|
|
2087
2090
|
x
|
|
2088
|
-
), c += g.length - 1, b.token === r && (c += x.length - 1),
|
|
2091
|
+
), c += g.length - 1, b.token === r && (c += x.length - 1), a = o.content, i = a.length, n.length = t;
|
|
2089
2092
|
continue u;
|
|
2090
2093
|
}
|
|
2091
2094
|
}
|
|
@@ -2094,7 +2097,7 @@ function Jn(u, e) {
|
|
|
2094
2097
|
pos: f.index,
|
|
2095
2098
|
single: m,
|
|
2096
2099
|
level: l
|
|
2097
|
-
}) : p && m && (
|
|
2100
|
+
}) : p && m && (o.content = Ru(o.content, f.index, Je));
|
|
2098
2101
|
}
|
|
2099
2102
|
}
|
|
2100
2103
|
}
|
|
@@ -2106,14 +2109,14 @@ function Wn(u) {
|
|
|
2106
2109
|
function Qn(u) {
|
|
2107
2110
|
let e, t;
|
|
2108
2111
|
const n = u.tokens, r = n.length;
|
|
2109
|
-
for (let
|
|
2110
|
-
if (n[
|
|
2112
|
+
for (let o = 0; o < r; o++) {
|
|
2113
|
+
if (n[o].type !== "inline")
|
|
2111
2114
|
continue;
|
|
2112
|
-
const l = n[
|
|
2113
|
-
for (e = 0; e <
|
|
2115
|
+
const l = n[o].children, a = l.length;
|
|
2116
|
+
for (e = 0; e < a; e++)
|
|
2114
2117
|
l[e].type === "text_special" && (l[e].type = "text");
|
|
2115
|
-
for (e = t = 0; e <
|
|
2116
|
-
l[e].type === "text" && e + 1 <
|
|
2118
|
+
for (e = t = 0; e < a; e++)
|
|
2119
|
+
l[e].type === "text" && e + 1 < a && l[e + 1].type === "text" ? l[e + 1].content = l[e].content + l[e + 1].content : (e !== t && (l[t] = l[e]), t++);
|
|
2117
2120
|
e !== t && (l.length = t);
|
|
2118
2121
|
}
|
|
2119
2122
|
}
|
|
@@ -2142,20 +2145,20 @@ we.prototype.State = $0;
|
|
|
2142
2145
|
function du(u, e, t, n) {
|
|
2143
2146
|
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;
|
|
2144
2147
|
const r = this.src;
|
|
2145
|
-
for (let
|
|
2148
|
+
for (let o = 0, l = 0, a = 0, c = 0, i = r.length, f = !1; l < i; l++) {
|
|
2146
2149
|
const s = r.charCodeAt(l);
|
|
2147
2150
|
if (!f)
|
|
2148
2151
|
if (j(s)) {
|
|
2149
|
-
|
|
2152
|
+
a++, s === 9 ? c += 4 - c % 4 : c++;
|
|
2150
2153
|
continue;
|
|
2151
2154
|
} else
|
|
2152
2155
|
f = !0;
|
|
2153
|
-
(s === 10 || l === i - 1) && (s !== 10 && l++, this.bMarks.push(
|
|
2156
|
+
(s === 10 || l === i - 1) && (s !== 10 && l++, this.bMarks.push(o), this.eMarks.push(l), this.tShift.push(a), this.sCount.push(c), this.bsCount.push(0), f = !1, a = 0, c = 0, o = l + 1);
|
|
2154
2157
|
}
|
|
2155
2158
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2156
2159
|
}
|
|
2157
2160
|
du.prototype.push = function(u, e, t) {
|
|
2158
|
-
const n = new
|
|
2161
|
+
const n = new au(u, e, t);
|
|
2159
2162
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2160
2163
|
};
|
|
2161
2164
|
du.prototype.isEmpty = function(e) {
|
|
@@ -2198,26 +2201,26 @@ du.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2198
2201
|
du.prototype.getLines = function(e, t, n, r) {
|
|
2199
2202
|
if (e >= t)
|
|
2200
2203
|
return "";
|
|
2201
|
-
const
|
|
2202
|
-
for (let l = 0,
|
|
2204
|
+
const o = new Array(t - e);
|
|
2205
|
+
for (let l = 0, a = e; a < t; a++, l++) {
|
|
2203
2206
|
let c = 0;
|
|
2204
|
-
const i = this.bMarks[
|
|
2207
|
+
const i = this.bMarks[a];
|
|
2205
2208
|
let f = i, s;
|
|
2206
|
-
for (
|
|
2209
|
+
for (a + 1 < t || r ? s = this.eMarks[a] + 1 : s = this.eMarks[a]; f < s && c < n; ) {
|
|
2207
2210
|
const p = this.src.charCodeAt(f);
|
|
2208
2211
|
if (j(p))
|
|
2209
|
-
p === 9 ? c += 4 - (c + this.bsCount[
|
|
2210
|
-
else if (f - i < this.tShift[
|
|
2212
|
+
p === 9 ? c += 4 - (c + this.bsCount[a]) % 4 : c++;
|
|
2213
|
+
else if (f - i < this.tShift[a])
|
|
2211
2214
|
c++;
|
|
2212
2215
|
else
|
|
2213
2216
|
break;
|
|
2214
2217
|
f++;
|
|
2215
2218
|
}
|
|
2216
|
-
c > n ?
|
|
2219
|
+
c > n ? o[l] = new Array(c - n + 1).join(" ") + this.src.slice(f, s) : o[l] = this.src.slice(f, s);
|
|
2217
2220
|
}
|
|
2218
|
-
return
|
|
2221
|
+
return o.join("");
|
|
2219
2222
|
};
|
|
2220
|
-
du.prototype.Token =
|
|
2223
|
+
du.prototype.Token = au;
|
|
2221
2224
|
const Yn = 65536;
|
|
2222
2225
|
function te(u, e) {
|
|
2223
2226
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
@@ -2225,10 +2228,10 @@ function te(u, e) {
|
|
|
2225
2228
|
}
|
|
2226
2229
|
function We(u) {
|
|
2227
2230
|
const e = [], t = u.length;
|
|
2228
|
-
let n = 0, r = u.charCodeAt(n),
|
|
2231
|
+
let n = 0, r = u.charCodeAt(n), o = !1, l = 0, a = "";
|
|
2229
2232
|
for (; n < t; )
|
|
2230
|
-
r === 124 && (
|
|
2231
|
-
return e.push(
|
|
2233
|
+
r === 124 && (o ? (a += u.substring(l, n - 1), l = n) : (e.push(a + u.substring(l, n)), a = "", l = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2234
|
+
return e.push(a + u.substring(l)), e;
|
|
2232
2235
|
}
|
|
2233
2236
|
function Kn(u, e, t, n) {
|
|
2234
2237
|
if (e + 2 > t)
|
|
@@ -2236,20 +2239,20 @@ function Kn(u, e, t, n) {
|
|
|
2236
2239
|
let r = e + 1;
|
|
2237
2240
|
if (u.sCount[r] < u.blkIndent || u.sCount[r] - u.blkIndent >= 4)
|
|
2238
2241
|
return !1;
|
|
2239
|
-
let
|
|
2240
|
-
if (
|
|
2242
|
+
let o = u.bMarks[r] + u.tShift[r];
|
|
2243
|
+
if (o >= u.eMarks[r])
|
|
2241
2244
|
return !1;
|
|
2242
|
-
const l = u.src.charCodeAt(
|
|
2243
|
-
if (l !== 124 && l !== 45 && l !== 58 ||
|
|
2245
|
+
const l = u.src.charCodeAt(o++);
|
|
2246
|
+
if (l !== 124 && l !== 45 && l !== 58 || o >= u.eMarks[r])
|
|
2244
2247
|
return !1;
|
|
2245
|
-
const
|
|
2246
|
-
if (
|
|
2248
|
+
const a = u.src.charCodeAt(o++);
|
|
2249
|
+
if (a !== 124 && a !== 45 && a !== 58 && !j(a) || l === 45 && j(a))
|
|
2247
2250
|
return !1;
|
|
2248
|
-
for (;
|
|
2249
|
-
const b = u.src.charCodeAt(
|
|
2251
|
+
for (; o < u.eMarks[r]; ) {
|
|
2252
|
+
const b = u.src.charCodeAt(o);
|
|
2250
2253
|
if (b !== 124 && b !== 45 && b !== 58 && !j(b))
|
|
2251
2254
|
return !1;
|
|
2252
|
-
|
|
2255
|
+
o++;
|
|
2253
2256
|
}
|
|
2254
2257
|
let c = te(u, e + 1), i = c.split("|");
|
|
2255
2258
|
const f = [];
|
|
@@ -2329,30 +2332,30 @@ function Xn(u, e, t) {
|
|
|
2329
2332
|
break;
|
|
2330
2333
|
}
|
|
2331
2334
|
u.line = r;
|
|
2332
|
-
const
|
|
2333
|
-
return
|
|
2334
|
-
`,
|
|
2335
|
+
const o = u.push("code_block", "code", 0);
|
|
2336
|
+
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2337
|
+
`, o.map = [e, u.line], !0;
|
|
2335
2338
|
}
|
|
2336
2339
|
function ur(u, e, t, n) {
|
|
2337
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2338
|
-
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 >
|
|
2340
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2341
|
+
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2339
2342
|
return !1;
|
|
2340
2343
|
const l = u.src.charCodeAt(r);
|
|
2341
2344
|
if (l !== 126 && l !== 96)
|
|
2342
2345
|
return !1;
|
|
2343
|
-
let
|
|
2346
|
+
let a = r;
|
|
2344
2347
|
r = u.skipChars(r, l);
|
|
2345
|
-
let c = r -
|
|
2348
|
+
let c = r - a;
|
|
2346
2349
|
if (c < 3)
|
|
2347
2350
|
return !1;
|
|
2348
|
-
const i = u.src.slice(
|
|
2351
|
+
const i = u.src.slice(a, r), f = u.src.slice(r, o);
|
|
2349
2352
|
if (l === 96 && f.indexOf(String.fromCharCode(l)) >= 0)
|
|
2350
2353
|
return !1;
|
|
2351
2354
|
if (n)
|
|
2352
2355
|
return !0;
|
|
2353
2356
|
let s = e, p = !1;
|
|
2354
|
-
for (; s++, !(s >= t || (r =
|
|
2355
|
-
if (u.src.charCodeAt(r) === l && !(u.sCount[s] - u.blkIndent >= 4) && (r = u.skipChars(r, l), !(r -
|
|
2357
|
+
for (; s++, !(s >= t || (r = a = u.bMarks[s] + u.tShift[s], o = u.eMarks[s], r < o && u.sCount[s] < u.blkIndent)); )
|
|
2358
|
+
if (u.src.charCodeAt(r) === l && !(u.sCount[s] - u.blkIndent >= 4) && (r = u.skipChars(r, l), !(r - a < c) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
2356
2359
|
p = !0;
|
|
2357
2360
|
break;
|
|
2358
2361
|
}
|
|
@@ -2361,24 +2364,24 @@ function ur(u, e, t, n) {
|
|
|
2361
2364
|
return m.info = f, m.content = u.getLines(e + 1, s, c, !0), m.markup = i, m.map = [e, u.line], !0;
|
|
2362
2365
|
}
|
|
2363
2366
|
function er(u, e, t, n) {
|
|
2364
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2367
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2365
2368
|
const l = u.lineMax;
|
|
2366
2369
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2367
2370
|
return !1;
|
|
2368
2371
|
if (n)
|
|
2369
2372
|
return !0;
|
|
2370
|
-
const
|
|
2373
|
+
const a = [], c = [], i = [], f = [], s = u.md.block.ruler.getRules("blockquote"), p = u.parentType;
|
|
2371
2374
|
u.parentType = "blockquote";
|
|
2372
2375
|
let m = !1, d;
|
|
2373
2376
|
for (d = e; d < t; d++) {
|
|
2374
2377
|
const k = u.sCount[d] < u.blkIndent;
|
|
2375
|
-
if (r = u.bMarks[d] + u.tShift[d],
|
|
2378
|
+
if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
|
|
2376
2379
|
break;
|
|
2377
2380
|
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2378
2381
|
let x = u.sCount[d] + 1, g, _;
|
|
2379
2382
|
u.src.charCodeAt(r) === 32 ? (r++, x++, _ = !1, g = !0) : u.src.charCodeAt(r) === 9 ? (g = !0, (u.bsCount[d] + x) % 4 === 3 ? (r++, x++, _ = !1) : _ = !0) : g = !1;
|
|
2380
2383
|
let I = x;
|
|
2381
|
-
for (
|
|
2384
|
+
for (a.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
|
|
2382
2385
|
const v = u.src.charCodeAt(r);
|
|
2383
2386
|
if (j(v))
|
|
2384
2387
|
v === 9 ? I += 4 - (I + u.bsCount[d] + (_ ? 1 : 0)) % 4 : I++;
|
|
@@ -2386,7 +2389,7 @@ function er(u, e, t, n) {
|
|
|
2386
2389
|
break;
|
|
2387
2390
|
r++;
|
|
2388
2391
|
}
|
|
2389
|
-
m = r >=
|
|
2392
|
+
m = r >= o, c.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (g ? 1 : 0), i.push(u.sCount[d]), u.sCount[d] = I - x, f.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
|
|
2390
2393
|
continue;
|
|
2391
2394
|
}
|
|
2392
2395
|
if (m)
|
|
@@ -2398,10 +2401,10 @@ function er(u, e, t, n) {
|
|
|
2398
2401
|
break;
|
|
2399
2402
|
}
|
|
2400
2403
|
if (b) {
|
|
2401
|
-
u.lineMax = d, u.blkIndent !== 0 && (
|
|
2404
|
+
u.lineMax = d, u.blkIndent !== 0 && (a.push(u.bMarks[d]), c.push(u.bsCount[d]), f.push(u.tShift[d]), i.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
2402
2405
|
break;
|
|
2403
2406
|
}
|
|
2404
|
-
|
|
2407
|
+
a.push(u.bMarks[d]), c.push(u.bsCount[d]), f.push(u.tShift[d]), i.push(u.sCount[d]), u.sCount[d] = -1;
|
|
2405
2408
|
}
|
|
2406
2409
|
const w = u.blkIndent;
|
|
2407
2410
|
u.blkIndent = 0;
|
|
@@ -2412,31 +2415,31 @@ function er(u, e, t, n) {
|
|
|
2412
2415
|
const h = u.push("blockquote_close", "blockquote", -1);
|
|
2413
2416
|
h.markup = ">", u.lineMax = l, u.parentType = p, A[1] = u.line;
|
|
2414
2417
|
for (let k = 0; k < f.length; k++)
|
|
2415
|
-
u.bMarks[k + e] =
|
|
2418
|
+
u.bMarks[k + e] = a[k], u.tShift[k + e] = f[k], u.sCount[k + e] = i[k], u.bsCount[k + e] = c[k];
|
|
2416
2419
|
return u.blkIndent = w, !0;
|
|
2417
2420
|
}
|
|
2418
2421
|
function tr(u, e, t, n) {
|
|
2419
2422
|
const r = u.eMarks[e];
|
|
2420
2423
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2421
2424
|
return !1;
|
|
2422
|
-
let
|
|
2423
|
-
const l = u.src.charCodeAt(
|
|
2425
|
+
let o = u.bMarks[e] + u.tShift[e];
|
|
2426
|
+
const l = u.src.charCodeAt(o++);
|
|
2424
2427
|
if (l !== 42 && l !== 45 && l !== 95)
|
|
2425
2428
|
return !1;
|
|
2426
|
-
let
|
|
2427
|
-
for (;
|
|
2428
|
-
const i = u.src.charCodeAt(
|
|
2429
|
+
let a = 1;
|
|
2430
|
+
for (; o < r; ) {
|
|
2431
|
+
const i = u.src.charCodeAt(o++);
|
|
2429
2432
|
if (i !== l && !j(i))
|
|
2430
2433
|
return !1;
|
|
2431
|
-
i === l &&
|
|
2434
|
+
i === l && a++;
|
|
2432
2435
|
}
|
|
2433
|
-
if (
|
|
2436
|
+
if (a < 3)
|
|
2434
2437
|
return !1;
|
|
2435
2438
|
if (n)
|
|
2436
2439
|
return !0;
|
|
2437
2440
|
u.line = e + 1;
|
|
2438
2441
|
const c = u.push("hr", "hr", 0);
|
|
2439
|
-
return c.map = [e, u.line], c.markup = Array(
|
|
2442
|
+
return c.map = [e, u.line], c.markup = Array(a + 1).join(String.fromCharCode(l)), !0;
|
|
2440
2443
|
}
|
|
2441
2444
|
function Qe(u, e) {
|
|
2442
2445
|
const t = u.eMarks[e];
|
|
@@ -2445,8 +2448,8 @@ function Qe(u, e) {
|
|
|
2445
2448
|
if (r !== 42 && r !== 45 && r !== 43)
|
|
2446
2449
|
return -1;
|
|
2447
2450
|
if (n < t) {
|
|
2448
|
-
const
|
|
2449
|
-
if (!j(
|
|
2451
|
+
const o = u.src.charCodeAt(n);
|
|
2452
|
+
if (!j(o))
|
|
2450
2453
|
return -1;
|
|
2451
2454
|
}
|
|
2452
2455
|
return n;
|
|
@@ -2456,22 +2459,22 @@ function Ye(u, e) {
|
|
|
2456
2459
|
let r = t;
|
|
2457
2460
|
if (r + 1 >= n)
|
|
2458
2461
|
return -1;
|
|
2459
|
-
let
|
|
2460
|
-
if (
|
|
2462
|
+
let o = u.src.charCodeAt(r++);
|
|
2463
|
+
if (o < 48 || o > 57)
|
|
2461
2464
|
return -1;
|
|
2462
2465
|
for (; ; ) {
|
|
2463
2466
|
if (r >= n)
|
|
2464
2467
|
return -1;
|
|
2465
|
-
if (
|
|
2468
|
+
if (o = u.src.charCodeAt(r++), o >= 48 && o <= 57) {
|
|
2466
2469
|
if (r - t >= 10)
|
|
2467
2470
|
return -1;
|
|
2468
2471
|
continue;
|
|
2469
2472
|
}
|
|
2470
|
-
if (
|
|
2473
|
+
if (o === 41 || o === 46)
|
|
2471
2474
|
break;
|
|
2472
2475
|
return -1;
|
|
2473
2476
|
}
|
|
2474
|
-
return r < n && (
|
|
2477
|
+
return r < n && (o = u.src.charCodeAt(r), !j(o)) ? -1 : r;
|
|
2475
2478
|
}
|
|
2476
2479
|
function nr(u, e) {
|
|
2477
2480
|
const t = u.level + 2;
|
|
@@ -2479,7 +2482,7 @@ function nr(u, e) {
|
|
|
2479
2482
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2480
2483
|
}
|
|
2481
2484
|
function rr(u, e, t, n) {
|
|
2482
|
-
let r,
|
|
2485
|
+
let r, o, l, a, c = e, i = !0;
|
|
2483
2486
|
if (u.sCount[c] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[c] - u.listIndent >= 4 && u.sCount[c] < u.blkIndent)
|
|
2484
2487
|
return !1;
|
|
2485
2488
|
let f = !1;
|
|
@@ -2497,34 +2500,34 @@ function rr(u, e, t, n) {
|
|
|
2497
2500
|
if (n)
|
|
2498
2501
|
return !0;
|
|
2499
2502
|
const d = u.src.charCodeAt(m - 1), w = u.tokens.length;
|
|
2500
|
-
s ? (
|
|
2503
|
+
s ? (a = u.push("ordered_list_open", "ol", 1), p !== 1 && (a.attrs = [["start", p]])) : a = u.push("bullet_list_open", "ul", 1);
|
|
2501
2504
|
const $ = [c, 0];
|
|
2502
|
-
|
|
2505
|
+
a.map = $, a.markup = String.fromCharCode(d);
|
|
2503
2506
|
let A = !1;
|
|
2504
2507
|
const h = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
2505
2508
|
for (u.parentType = "list"; c < t; ) {
|
|
2506
|
-
|
|
2509
|
+
o = m, r = u.eMarks[c];
|
|
2507
2510
|
const b = u.sCount[c] + m - (u.bMarks[c] + u.tShift[c]);
|
|
2508
2511
|
let x = b;
|
|
2509
|
-
for (;
|
|
2510
|
-
const N = u.src.charCodeAt(
|
|
2512
|
+
for (; o < r; ) {
|
|
2513
|
+
const N = u.src.charCodeAt(o);
|
|
2511
2514
|
if (N === 9)
|
|
2512
2515
|
x += 4 - (x + u.bsCount[c]) % 4;
|
|
2513
2516
|
else if (N === 32)
|
|
2514
2517
|
x++;
|
|
2515
2518
|
else
|
|
2516
2519
|
break;
|
|
2517
|
-
|
|
2520
|
+
o++;
|
|
2518
2521
|
}
|
|
2519
|
-
const g =
|
|
2522
|
+
const g = o;
|
|
2520
2523
|
let _;
|
|
2521
2524
|
g >= r ? _ = 1 : _ = x - b, _ > 4 && (_ = 1);
|
|
2522
2525
|
const I = b + _;
|
|
2523
|
-
|
|
2526
|
+
a = u.push("list_item_open", "li", 1), a.markup = String.fromCharCode(d);
|
|
2524
2527
|
const v = [c, 0];
|
|
2525
|
-
|
|
2528
|
+
a.map = v, s && (a.info = u.src.slice(l, m - 1));
|
|
2526
2529
|
const T = u.tight, F = u.tShift[c], q = u.sCount[c], B = u.listIndent;
|
|
2527
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = I, u.tight = !0, u.tShift[c] = g - u.bMarks[c], u.sCount[c] = x, g >= r && u.isEmpty(c + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, c, t, !0), (!u.tight || A) && (i = !1), A = u.line - c > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = B, u.tShift[c] = F, u.sCount[c] = q, u.tight = T,
|
|
2530
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = I, u.tight = !0, u.tShift[c] = g - u.bMarks[c], u.sCount[c] = x, g >= r && u.isEmpty(c + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, c, t, !0), (!u.tight || A) && (i = !1), A = u.line - c > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = B, u.tShift[c] = F, u.sCount[c] = q, u.tight = T, a = u.push("list_item_close", "li", -1), a.markup = String.fromCharCode(d), c = u.line, v[1] = c, c >= t || u.sCount[c] < u.blkIndent || u.sCount[c] - u.blkIndent >= 4)
|
|
2528
2531
|
break;
|
|
2529
2532
|
let C = !1;
|
|
2530
2533
|
for (let N = 0, H = h.length; N < H; N++)
|
|
@@ -2543,13 +2546,13 @@ function rr(u, e, t, n) {
|
|
|
2543
2546
|
if (d !== u.src.charCodeAt(m - 1))
|
|
2544
2547
|
break;
|
|
2545
2548
|
}
|
|
2546
|
-
return s ?
|
|
2549
|
+
return s ? a = u.push("ordered_list_close", "ol", -1) : a = u.push("bullet_list_close", "ul", -1), a.markup = String.fromCharCode(d), $[1] = c, u.line = c, u.parentType = k, i && nr(u, w), !0;
|
|
2547
2550
|
}
|
|
2548
|
-
function
|
|
2549
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2551
|
+
function or(u, e, t, n) {
|
|
2552
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], l = e + 1;
|
|
2550
2553
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2551
2554
|
return !1;
|
|
2552
|
-
function
|
|
2555
|
+
function a(h) {
|
|
2553
2556
|
const k = u.lineMax;
|
|
2554
2557
|
if (h >= k || u.isEmpty(h))
|
|
2555
2558
|
return null;
|
|
@@ -2569,10 +2572,10 @@ function ar(u, e, t, n) {
|
|
|
2569
2572
|
const x = u.bMarks[h] + u.tShift[h], g = u.eMarks[h];
|
|
2570
2573
|
return u.src.slice(x, g + 1);
|
|
2571
2574
|
}
|
|
2572
|
-
let c = u.src.slice(r,
|
|
2573
|
-
|
|
2575
|
+
let c = u.src.slice(r, o + 1);
|
|
2576
|
+
o = c.length;
|
|
2574
2577
|
let i = -1;
|
|
2575
|
-
for (r = 1; r <
|
|
2578
|
+
for (r = 1; r < o; r++) {
|
|
2576
2579
|
const h = c.charCodeAt(r);
|
|
2577
2580
|
if (h === 91)
|
|
2578
2581
|
return !1;
|
|
@@ -2580,24 +2583,24 @@ function ar(u, e, t, n) {
|
|
|
2580
2583
|
i = r;
|
|
2581
2584
|
break;
|
|
2582
2585
|
} else if (h === 10) {
|
|
2583
|
-
const k =
|
|
2584
|
-
k !== null && (c += k,
|
|
2585
|
-
} else if (h === 92 && (r++, r <
|
|
2586
|
-
const k =
|
|
2587
|
-
k !== null && (c += k,
|
|
2586
|
+
const k = a(l);
|
|
2587
|
+
k !== null && (c += k, o = c.length, l++);
|
|
2588
|
+
} else if (h === 92 && (r++, r < o && c.charCodeAt(r) === 10)) {
|
|
2589
|
+
const k = a(l);
|
|
2590
|
+
k !== null && (c += k, o = c.length, l++);
|
|
2588
2591
|
}
|
|
2589
2592
|
}
|
|
2590
2593
|
if (i < 0 || c.charCodeAt(i + 1) !== 58)
|
|
2591
2594
|
return !1;
|
|
2592
|
-
for (r = i + 2; r <
|
|
2595
|
+
for (r = i + 2; r < o; r++) {
|
|
2593
2596
|
const h = c.charCodeAt(r);
|
|
2594
2597
|
if (h === 10) {
|
|
2595
|
-
const k =
|
|
2596
|
-
k !== null && (c += k,
|
|
2598
|
+
const k = a(l);
|
|
2599
|
+
k !== null && (c += k, o = c.length, l++);
|
|
2597
2600
|
} else if (!j(h))
|
|
2598
2601
|
break;
|
|
2599
2602
|
}
|
|
2600
|
-
const f = u.md.helpers.parseLinkDestination(c, r,
|
|
2603
|
+
const f = u.md.helpers.parseLinkDestination(c, r, o);
|
|
2601
2604
|
if (!f.ok)
|
|
2602
2605
|
return !1;
|
|
2603
2606
|
const s = u.md.normalizeLink(f.str);
|
|
@@ -2605,41 +2608,41 @@ function ar(u, e, t, n) {
|
|
|
2605
2608
|
return !1;
|
|
2606
2609
|
r = f.pos;
|
|
2607
2610
|
const p = r, m = l, d = r;
|
|
2608
|
-
for (; r <
|
|
2611
|
+
for (; r < o; r++) {
|
|
2609
2612
|
const h = c.charCodeAt(r);
|
|
2610
2613
|
if (h === 10) {
|
|
2611
|
-
const k =
|
|
2612
|
-
k !== null && (c += k,
|
|
2614
|
+
const k = a(l);
|
|
2615
|
+
k !== null && (c += k, o = c.length, l++);
|
|
2613
2616
|
} else if (!j(h))
|
|
2614
2617
|
break;
|
|
2615
2618
|
}
|
|
2616
|
-
let w = u.md.helpers.parseLinkTitle(c, r,
|
|
2619
|
+
let w = u.md.helpers.parseLinkTitle(c, r, o);
|
|
2617
2620
|
for (; w.can_continue; ) {
|
|
2618
|
-
const h =
|
|
2621
|
+
const h = a(l);
|
|
2619
2622
|
if (h === null)
|
|
2620
2623
|
break;
|
|
2621
|
-
c += h, r =
|
|
2624
|
+
c += h, r = o, o = c.length, l++, w = u.md.helpers.parseLinkTitle(c, r, o, w);
|
|
2622
2625
|
}
|
|
2623
2626
|
let $;
|
|
2624
|
-
for (r <
|
|
2627
|
+
for (r < o && d !== r && w.ok ? ($ = w.str, r = w.pos) : ($ = "", r = p, l = m); r < o; ) {
|
|
2625
2628
|
const h = c.charCodeAt(r);
|
|
2626
2629
|
if (!j(h))
|
|
2627
2630
|
break;
|
|
2628
2631
|
r++;
|
|
2629
2632
|
}
|
|
2630
|
-
if (r <
|
|
2631
|
-
for ($ = "", r = p, l = m; r <
|
|
2633
|
+
if (r < o && c.charCodeAt(r) !== 10 && $)
|
|
2634
|
+
for ($ = "", r = p, l = m; r < o; ) {
|
|
2632
2635
|
const h = c.charCodeAt(r);
|
|
2633
2636
|
if (!j(h))
|
|
2634
2637
|
break;
|
|
2635
2638
|
r++;
|
|
2636
2639
|
}
|
|
2637
|
-
if (r <
|
|
2640
|
+
if (r < o && c.charCodeAt(r) !== 10)
|
|
2638
2641
|
return !1;
|
|
2639
2642
|
const A = Gu(c.slice(1, i));
|
|
2640
2643
|
return A ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[A] > "u" && (u.env.references[A] = { title: $, href: s }), u.line = l), !0) : !1;
|
|
2641
2644
|
}
|
|
2642
|
-
const
|
|
2645
|
+
const ar = [
|
|
2643
2646
|
"address",
|
|
2644
2647
|
"article",
|
|
2645
2648
|
"aside",
|
|
@@ -2708,24 +2711,24 @@ const or = [
|
|
|
2708
2711
|
[/^<\?/, /\?>/, !0],
|
|
2709
2712
|
[/^<![A-Z]/, />/, !0],
|
|
2710
2713
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2711
|
-
[new RegExp("^</?(" +
|
|
2714
|
+
[new RegExp("^</?(" + ar.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2712
2715
|
[new RegExp(_r.source + "\\s*$"), /^$/, !1]
|
|
2713
2716
|
];
|
|
2714
2717
|
function gr(u, e, t, n) {
|
|
2715
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2718
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2716
2719
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2717
2720
|
return !1;
|
|
2718
|
-
let l = u.src.slice(r,
|
|
2719
|
-
for (;
|
|
2721
|
+
let l = u.src.slice(r, o), a = 0;
|
|
2722
|
+
for (; a < ku.length && !ku[a][0].test(l); a++)
|
|
2720
2723
|
;
|
|
2721
|
-
if (
|
|
2724
|
+
if (a === ku.length)
|
|
2722
2725
|
return !1;
|
|
2723
2726
|
if (n)
|
|
2724
|
-
return ku[
|
|
2727
|
+
return ku[a][2];
|
|
2725
2728
|
let c = e + 1;
|
|
2726
|
-
if (!ku[
|
|
2729
|
+
if (!ku[a][1].test(l)) {
|
|
2727
2730
|
for (; c < t && !(u.sCount[c] < u.blkIndent); c++)
|
|
2728
|
-
if (r = u.bMarks[c] + u.tShift[c],
|
|
2731
|
+
if (r = u.bMarks[c] + u.tShift[c], o = u.eMarks[c], l = u.src.slice(r, o), ku[a][1].test(l)) {
|
|
2729
2732
|
l.length !== 0 && c++;
|
|
2730
2733
|
break;
|
|
2731
2734
|
}
|
|
@@ -2735,28 +2738,28 @@ function gr(u, e, t, n) {
|
|
|
2735
2738
|
return i.map = [e, c], i.content = u.getLines(e, c, u.blkIndent, !0), !0;
|
|
2736
2739
|
}
|
|
2737
2740
|
function kr(u, e, t, n) {
|
|
2738
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2741
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2739
2742
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2740
2743
|
return !1;
|
|
2741
2744
|
let l = u.src.charCodeAt(r);
|
|
2742
|
-
if (l !== 35 || r >=
|
|
2745
|
+
if (l !== 35 || r >= o)
|
|
2743
2746
|
return !1;
|
|
2744
|
-
let
|
|
2745
|
-
for (l = u.src.charCodeAt(++r); l === 35 && r <
|
|
2746
|
-
|
|
2747
|
-
if (
|
|
2747
|
+
let a = 1;
|
|
2748
|
+
for (l = u.src.charCodeAt(++r); l === 35 && r < o && a <= 6; )
|
|
2749
|
+
a++, l = u.src.charCodeAt(++r);
|
|
2750
|
+
if (a > 6 || r < o && !j(l))
|
|
2748
2751
|
return !1;
|
|
2749
2752
|
if (n)
|
|
2750
2753
|
return !0;
|
|
2751
|
-
|
|
2752
|
-
const c = u.skipCharsBack(
|
|
2753
|
-
c > r && j(u.src.charCodeAt(c - 1)) && (
|
|
2754
|
-
const i = u.push("heading_open", "h" + String(
|
|
2755
|
-
i.markup = "########".slice(0,
|
|
2754
|
+
o = u.skipSpacesBack(o, r);
|
|
2755
|
+
const c = u.skipCharsBack(o, 35, r);
|
|
2756
|
+
c > r && j(u.src.charCodeAt(c - 1)) && (o = c), u.line = e + 1;
|
|
2757
|
+
const i = u.push("heading_open", "h" + String(a), 1);
|
|
2758
|
+
i.markup = "########".slice(0, a), i.map = [e, u.line];
|
|
2756
2759
|
const f = u.push("inline", "", 0);
|
|
2757
|
-
f.content = u.src.slice(r,
|
|
2758
|
-
const s = u.push("heading_close", "h" + String(
|
|
2759
|
-
return s.markup = "########".slice(0,
|
|
2760
|
+
f.content = u.src.slice(r, o).trim(), f.map = [e, u.line], f.children = [];
|
|
2761
|
+
const s = u.push("heading_close", "h" + String(a), -1);
|
|
2762
|
+
return s.markup = "########".slice(0, a), !0;
|
|
2760
2763
|
}
|
|
2761
2764
|
function yr(u, e, t) {
|
|
2762
2765
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
@@ -2764,59 +2767,59 @@ function yr(u, e, t) {
|
|
|
2764
2767
|
return !1;
|
|
2765
2768
|
const r = u.parentType;
|
|
2766
2769
|
u.parentType = "paragraph";
|
|
2767
|
-
let
|
|
2768
|
-
for (;
|
|
2769
|
-
if (u.sCount[
|
|
2770
|
+
let o = 0, l, a = e + 1;
|
|
2771
|
+
for (; a < t && !u.isEmpty(a); a++) {
|
|
2772
|
+
if (u.sCount[a] - u.blkIndent > 3)
|
|
2770
2773
|
continue;
|
|
2771
|
-
if (u.sCount[
|
|
2772
|
-
let m = u.bMarks[
|
|
2773
|
-
const d = u.eMarks[
|
|
2774
|
+
if (u.sCount[a] >= u.blkIndent) {
|
|
2775
|
+
let m = u.bMarks[a] + u.tShift[a];
|
|
2776
|
+
const d = u.eMarks[a];
|
|
2774
2777
|
if (m < d && (l = u.src.charCodeAt(m), (l === 45 || l === 61) && (m = u.skipChars(m, l), m = u.skipSpaces(m), m >= d))) {
|
|
2775
|
-
|
|
2778
|
+
o = l === 61 ? 1 : 2;
|
|
2776
2779
|
break;
|
|
2777
2780
|
}
|
|
2778
2781
|
}
|
|
2779
|
-
if (u.sCount[
|
|
2782
|
+
if (u.sCount[a] < 0)
|
|
2780
2783
|
continue;
|
|
2781
2784
|
let p = !1;
|
|
2782
2785
|
for (let m = 0, d = n.length; m < d; m++)
|
|
2783
|
-
if (n[m](u,
|
|
2786
|
+
if (n[m](u, a, t, !0)) {
|
|
2784
2787
|
p = !0;
|
|
2785
2788
|
break;
|
|
2786
2789
|
}
|
|
2787
2790
|
if (p)
|
|
2788
2791
|
break;
|
|
2789
2792
|
}
|
|
2790
|
-
if (!
|
|
2793
|
+
if (!o)
|
|
2791
2794
|
return !1;
|
|
2792
|
-
const c = u.getLines(e,
|
|
2793
|
-
u.line =
|
|
2794
|
-
const i = u.push("heading_open", "h" + String(
|
|
2795
|
+
const c = u.getLines(e, a, u.blkIndent, !1).trim();
|
|
2796
|
+
u.line = a + 1;
|
|
2797
|
+
const i = u.push("heading_open", "h" + String(o), 1);
|
|
2795
2798
|
i.markup = String.fromCharCode(l), i.map = [e, u.line];
|
|
2796
2799
|
const f = u.push("inline", "", 0);
|
|
2797
2800
|
f.content = c, f.map = [e, u.line - 1], f.children = [];
|
|
2798
|
-
const s = u.push("heading_close", "h" + String(
|
|
2801
|
+
const s = u.push("heading_close", "h" + String(o), -1);
|
|
2799
2802
|
return s.markup = String.fromCharCode(l), u.parentType = r, !0;
|
|
2800
2803
|
}
|
|
2801
2804
|
function vr(u, e, t) {
|
|
2802
2805
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2803
|
-
let
|
|
2804
|
-
for (u.parentType = "paragraph";
|
|
2805
|
-
if (u.sCount[
|
|
2806
|
+
let o = e + 1;
|
|
2807
|
+
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
2808
|
+
if (u.sCount[o] - u.blkIndent > 3 || u.sCount[o] < 0)
|
|
2806
2809
|
continue;
|
|
2807
2810
|
let i = !1;
|
|
2808
2811
|
for (let f = 0, s = n.length; f < s; f++)
|
|
2809
|
-
if (n[f](u,
|
|
2812
|
+
if (n[f](u, o, t, !0)) {
|
|
2810
2813
|
i = !0;
|
|
2811
2814
|
break;
|
|
2812
2815
|
}
|
|
2813
2816
|
if (i)
|
|
2814
2817
|
break;
|
|
2815
2818
|
}
|
|
2816
|
-
const l = u.getLines(e,
|
|
2817
|
-
u.line =
|
|
2818
|
-
const
|
|
2819
|
-
|
|
2819
|
+
const l = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2820
|
+
u.line = o;
|
|
2821
|
+
const a = u.push("paragraph_open", "p", 1);
|
|
2822
|
+
a.map = [e, u.line];
|
|
2820
2823
|
const c = u.push("inline", "", 0);
|
|
2821
2824
|
return c.content = l, c.map = [e, u.line], c.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2822
2825
|
}
|
|
@@ -2829,7 +2832,7 @@ const Mu = [
|
|
|
2829
2832
|
["blockquote", er, ["paragraph", "reference", "blockquote", "list"]],
|
|
2830
2833
|
["hr", tr, ["paragraph", "reference", "blockquote", "list"]],
|
|
2831
2834
|
["list", rr, ["paragraph", "reference", "blockquote"]],
|
|
2832
|
-
["reference",
|
|
2835
|
+
["reference", or],
|
|
2833
2836
|
["html_block", gr, ["paragraph", "reference", "blockquote"]],
|
|
2834
2837
|
["heading", kr, ["paragraph", "reference", "blockquote"]],
|
|
2835
2838
|
["lheading", yr],
|
|
@@ -2841,10 +2844,10 @@ function Ju() {
|
|
|
2841
2844
|
this.ruler.push(Mu[u][0], Mu[u][1], { alt: (Mu[u][2] || []).slice() });
|
|
2842
2845
|
}
|
|
2843
2846
|
Ju.prototype.tokenize = function(u, e, t) {
|
|
2844
|
-
const n = this.ruler.getRules(""), r = n.length,
|
|
2845
|
-
let l = e,
|
|
2847
|
+
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2848
|
+
let l = e, a = !1;
|
|
2846
2849
|
for (; l < t && (u.line = l = u.skipEmptyLines(l), !(l >= t || u.sCount[l] < u.blkIndent)); ) {
|
|
2847
|
-
if (u.level >=
|
|
2850
|
+
if (u.level >= o) {
|
|
2848
2851
|
u.line = t;
|
|
2849
2852
|
break;
|
|
2850
2853
|
}
|
|
@@ -2858,7 +2861,7 @@ Ju.prototype.tokenize = function(u, e, t) {
|
|
|
2858
2861
|
}
|
|
2859
2862
|
if (!i)
|
|
2860
2863
|
throw new Error("none of the block rules matched");
|
|
2861
|
-
u.tight = !
|
|
2864
|
+
u.tight = !a, u.isEmpty(u.line - 1) && (a = !0), l = u.line, l < t && u.isEmpty(l) && (a = !0, l++, u.line = l);
|
|
2862
2865
|
}
|
|
2863
2866
|
};
|
|
2864
2867
|
Ju.prototype.parse = function(u, e, t, n) {
|
|
@@ -2872,24 +2875,24 @@ function Vu(u, e, t, n) {
|
|
|
2872
2875
|
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;
|
|
2873
2876
|
}
|
|
2874
2877
|
Vu.prototype.pushPending = function() {
|
|
2875
|
-
const u = new
|
|
2878
|
+
const u = new au("text", "", 0);
|
|
2876
2879
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2877
2880
|
};
|
|
2878
2881
|
Vu.prototype.push = function(u, e, t) {
|
|
2879
2882
|
this.pending && this.pushPending();
|
|
2880
|
-
const n = new
|
|
2883
|
+
const n = new au(u, e, t);
|
|
2881
2884
|
let r = null;
|
|
2882
2885
|
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;
|
|
2883
2886
|
};
|
|
2884
2887
|
Vu.prototype.scanDelims = function(u, e) {
|
|
2885
2888
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2886
|
-
let
|
|
2887
|
-
for (;
|
|
2888
|
-
|
|
2889
|
-
const l =
|
|
2889
|
+
let o = u;
|
|
2890
|
+
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2891
|
+
o++;
|
|
2892
|
+
const l = o - u, a = o < t ? this.src.charCodeAt(o) : 32, c = Su(r) || Tu(String.fromCharCode(r)), i = Su(a) || Tu(String.fromCharCode(a)), f = wu(r), s = wu(a), p = !s && (!i || f || c), m = !f && (!c || s || i);
|
|
2890
2893
|
return { can_open: p && (e || !m || c), can_close: m && (e || !p || i), length: l };
|
|
2891
2894
|
};
|
|
2892
|
-
Vu.prototype.Token =
|
|
2895
|
+
Vu.prototype.Token = au;
|
|
2893
2896
|
function Cr(u) {
|
|
2894
2897
|
switch (u) {
|
|
2895
2898
|
case 10:
|
|
@@ -2936,26 +2939,26 @@ function Fr(u, e) {
|
|
|
2936
2939
|
const r = u.pending.match(Dr);
|
|
2937
2940
|
if (!r)
|
|
2938
2941
|
return !1;
|
|
2939
|
-
const
|
|
2942
|
+
const o = r[1], l = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2940
2943
|
if (!l)
|
|
2941
2944
|
return !1;
|
|
2942
|
-
let
|
|
2943
|
-
if (
|
|
2945
|
+
let a = l.url;
|
|
2946
|
+
if (a.length <= o.length)
|
|
2944
2947
|
return !1;
|
|
2945
|
-
|
|
2946
|
-
const c = u.md.normalizeLink(
|
|
2948
|
+
a = a.replace(/\*+$/, "");
|
|
2949
|
+
const c = u.md.normalizeLink(a);
|
|
2947
2950
|
if (!u.md.validateLink(c))
|
|
2948
2951
|
return !1;
|
|
2949
2952
|
if (!e) {
|
|
2950
|
-
u.pending = u.pending.slice(0, -
|
|
2953
|
+
u.pending = u.pending.slice(0, -o.length);
|
|
2951
2954
|
const i = u.push("link_open", "a", 1);
|
|
2952
2955
|
i.attrs = [["href", c]], i.markup = "linkify", i.info = "auto";
|
|
2953
2956
|
const f = u.push("text", "", 0);
|
|
2954
|
-
f.content = u.md.normalizeLinkText(
|
|
2957
|
+
f.content = u.md.normalizeLinkText(a);
|
|
2955
2958
|
const s = u.push("link_close", "a", -1);
|
|
2956
2959
|
s.markup = "linkify", s.info = "auto";
|
|
2957
2960
|
}
|
|
2958
|
-
return u.pos +=
|
|
2961
|
+
return u.pos += a.length - o.length, !0;
|
|
2959
2962
|
}
|
|
2960
2963
|
function Ar(u, e) {
|
|
2961
2964
|
let t = u.pos;
|
|
@@ -2965,10 +2968,10 @@ function Ar(u, e) {
|
|
|
2965
2968
|
if (!e)
|
|
2966
2969
|
if (n >= 0 && u.pending.charCodeAt(n) === 32)
|
|
2967
2970
|
if (n >= 1 && u.pending.charCodeAt(n - 1) === 32) {
|
|
2968
|
-
let
|
|
2969
|
-
for (;
|
|
2970
|
-
|
|
2971
|
-
u.pending = u.pending.slice(0,
|
|
2971
|
+
let o = n - 1;
|
|
2972
|
+
for (; o >= 1 && u.pending.charCodeAt(o - 1) === 32; )
|
|
2973
|
+
o--;
|
|
2974
|
+
u.pending = u.pending.slice(0, o), u.push("hardbreak", "br", 0);
|
|
2972
2975
|
} else
|
|
2973
2976
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2974
2977
|
else
|
|
@@ -2994,15 +2997,15 @@ function wr(u, e) {
|
|
|
2994
2997
|
t++;
|
|
2995
2998
|
return u.pos = t, !0;
|
|
2996
2999
|
}
|
|
2997
|
-
let
|
|
3000
|
+
let o = u.src[t];
|
|
2998
3001
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
|
2999
|
-
const
|
|
3000
|
-
|
|
3002
|
+
const a = u.src.charCodeAt(t + 1);
|
|
3003
|
+
a >= 56320 && a <= 57343 && (o += u.src[t + 1], t++);
|
|
3001
3004
|
}
|
|
3002
|
-
const l = "\\" +
|
|
3005
|
+
const l = "\\" + o;
|
|
3003
3006
|
if (!e) {
|
|
3004
|
-
const
|
|
3005
|
-
r < 256 && Te[r] !== 0 ?
|
|
3007
|
+
const a = u.push("text_special", "", 0);
|
|
3008
|
+
r < 256 && Te[r] !== 0 ? a.content = o : a.content = l, a.markup = l, a.info = "escape";
|
|
3006
3009
|
}
|
|
3007
3010
|
return u.pos = t + 1, !0;
|
|
3008
3011
|
}
|
|
@@ -3012,18 +3015,18 @@ function Tr(u, e) {
|
|
|
3012
3015
|
return !1;
|
|
3013
3016
|
const r = t;
|
|
3014
3017
|
t++;
|
|
3015
|
-
const
|
|
3016
|
-
for (; t <
|
|
3018
|
+
const o = u.posMax;
|
|
3019
|
+
for (; t < o && u.src.charCodeAt(t) === 96; )
|
|
3017
3020
|
t++;
|
|
3018
|
-
const l = u.src.slice(r, t),
|
|
3019
|
-
if (u.backticksScanned && (u.backticks[
|
|
3020
|
-
return e || (u.pending += l), u.pos +=
|
|
3021
|
+
const l = u.src.slice(r, t), a = l.length;
|
|
3022
|
+
if (u.backticksScanned && (u.backticks[a] || 0) <= r)
|
|
3023
|
+
return e || (u.pending += l), u.pos += a, !0;
|
|
3021
3024
|
let c = t, i;
|
|
3022
3025
|
for (; (i = u.src.indexOf("`", c)) !== -1; ) {
|
|
3023
|
-
for (c = i + 1; c <
|
|
3026
|
+
for (c = i + 1; c < o && u.src.charCodeAt(c) === 96; )
|
|
3024
3027
|
c++;
|
|
3025
3028
|
const f = c - i;
|
|
3026
|
-
if (f ===
|
|
3029
|
+
if (f === a) {
|
|
3027
3030
|
if (!e) {
|
|
3028
3031
|
const s = u.push("code_inline", "code", 0);
|
|
3029
3032
|
s.markup = l, s.content = u.src.slice(t, i).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
@@ -3032,21 +3035,21 @@ function Tr(u, e) {
|
|
|
3032
3035
|
}
|
|
3033
3036
|
u.backticks[f] = i;
|
|
3034
3037
|
}
|
|
3035
|
-
return u.backticksScanned = !0, e || (u.pending += l), u.pos +=
|
|
3038
|
+
return u.backticksScanned = !0, e || (u.pending += l), u.pos += a, !0;
|
|
3036
3039
|
}
|
|
3037
3040
|
function Sr(u, e) {
|
|
3038
3041
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3039
3042
|
if (e || n !== 126)
|
|
3040
3043
|
return !1;
|
|
3041
3044
|
const r = u.scanDelims(u.pos, !0);
|
|
3042
|
-
let
|
|
3045
|
+
let o = r.length;
|
|
3043
3046
|
const l = String.fromCharCode(n);
|
|
3044
|
-
if (
|
|
3047
|
+
if (o < 2)
|
|
3045
3048
|
return !1;
|
|
3046
|
-
let
|
|
3047
|
-
|
|
3048
|
-
for (let c = 0; c <
|
|
3049
|
-
|
|
3049
|
+
let a;
|
|
3050
|
+
o % 2 && (a = u.push("text", "", 0), a.content = l, o--);
|
|
3051
|
+
for (let c = 0; c < o; c += 2)
|
|
3052
|
+
a = u.push("text", "", 0), a.content = l + l, u.delimiters.push({
|
|
3050
3053
|
marker: n,
|
|
3051
3054
|
length: 0,
|
|
3052
3055
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -3060,19 +3063,19 @@ function Sr(u, e) {
|
|
|
3060
3063
|
function Ke(u, e) {
|
|
3061
3064
|
let t;
|
|
3062
3065
|
const n = [], r = e.length;
|
|
3063
|
-
for (let
|
|
3064
|
-
const l = e[
|
|
3066
|
+
for (let o = 0; o < r; o++) {
|
|
3067
|
+
const l = e[o];
|
|
3065
3068
|
if (l.marker !== 126 || l.end === -1)
|
|
3066
3069
|
continue;
|
|
3067
|
-
const
|
|
3068
|
-
t = u.tokens[l.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[
|
|
3070
|
+
const a = e[l.end];
|
|
3071
|
+
t = u.tokens[l.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[a.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[a.token - 1].type === "text" && u.tokens[a.token - 1].content === "~" && n.push(a.token - 1);
|
|
3069
3072
|
}
|
|
3070
3073
|
for (; n.length; ) {
|
|
3071
|
-
const
|
|
3072
|
-
let l =
|
|
3074
|
+
const o = n.pop();
|
|
3075
|
+
let l = o + 1;
|
|
3073
3076
|
for (; l < u.tokens.length && u.tokens[l].type === "s_close"; )
|
|
3074
3077
|
l++;
|
|
3075
|
-
l--,
|
|
3078
|
+
l--, o !== l && (t = u.tokens[l], u.tokens[l] = u.tokens[o], u.tokens[o] = t);
|
|
3076
3079
|
}
|
|
3077
3080
|
}
|
|
3078
3081
|
function Ir(u) {
|
|
@@ -3090,7 +3093,7 @@ function Or(u, e) {
|
|
|
3090
3093
|
if (e || n !== 95 && n !== 42)
|
|
3091
3094
|
return !1;
|
|
3092
3095
|
const r = u.scanDelims(u.pos, n === 42);
|
|
3093
|
-
for (let
|
|
3096
|
+
for (let o = 0; o < r.length; o++) {
|
|
3094
3097
|
const l = u.push("text", "", 0);
|
|
3095
3098
|
l.content = String.fromCharCode(n), u.delimiters.push({
|
|
3096
3099
|
// Char code of the starting marker (number).
|
|
@@ -3121,12 +3124,12 @@ function Xe(u, e) {
|
|
|
3121
3124
|
const r = e[n];
|
|
3122
3125
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
3123
3126
|
continue;
|
|
3124
|
-
const
|
|
3127
|
+
const o = e[r.end], l = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
3125
3128
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
3126
|
-
e[r.end + 1].token ===
|
|
3127
|
-
c.type = l ? "strong_open" : "em_open", c.tag = l ? "strong" : "em", c.nesting = 1, c.markup = l ?
|
|
3128
|
-
const i = u.tokens[
|
|
3129
|
-
i.type = l ? "strong_close" : "em_close", i.tag = l ? "strong" : "em", i.nesting = -1, i.markup = l ?
|
|
3129
|
+
e[r.end + 1].token === o.token + 1, a = String.fromCharCode(r.marker), c = u.tokens[r.token];
|
|
3130
|
+
c.type = l ? "strong_open" : "em_open", c.tag = l ? "strong" : "em", c.nesting = 1, c.markup = l ? a + a : a, c.content = "";
|
|
3131
|
+
const i = u.tokens[o.token];
|
|
3132
|
+
i.type = l ? "strong_close" : "em_close", i.tag = l ? "strong" : "em", i.nesting = -1, i.markup = l ? a + a : a, i.content = "", l && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3130
3133
|
}
|
|
3131
3134
|
}
|
|
3132
3135
|
function Vr(u) {
|
|
@@ -3140,7 +3143,7 @@ const z0 = {
|
|
|
3140
3143
|
postProcess: Vr
|
|
3141
3144
|
};
|
|
3142
3145
|
function $r(u, e) {
|
|
3143
|
-
let t, n, r,
|
|
3146
|
+
let t, n, r, o, l = "", a = "", c = u.pos, i = !0;
|
|
3144
3147
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3145
3148
|
return !1;
|
|
3146
3149
|
const f = u.pos, s = u.posMax, p = u.pos + 1, m = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
@@ -3156,7 +3159,7 @@ function $r(u, e) {
|
|
|
3156
3159
|
for (l = u.md.normalizeLink(r.str), u.md.validateLink(l) ? d = r.pos : l = "", c = d; d < s && (t = u.src.charCodeAt(d), !(!j(t) && t !== 10)); d++)
|
|
3157
3160
|
;
|
|
3158
3161
|
if (r = u.md.helpers.parseLinkTitle(u.src, d, u.posMax), d < s && c !== d && r.ok)
|
|
3159
|
-
for (
|
|
3162
|
+
for (a = r.str, d = r.pos; d < s && (t = u.src.charCodeAt(d), !(!j(t) && t !== 10)); d++)
|
|
3160
3163
|
;
|
|
3161
3164
|
}
|
|
3162
3165
|
(d >= s || u.src.charCodeAt(d) !== 41) && (i = !0), d++;
|
|
@@ -3164,44 +3167,44 @@ function $r(u, e) {
|
|
|
3164
3167
|
if (i) {
|
|
3165
3168
|
if (typeof u.env.references > "u")
|
|
3166
3169
|
return !1;
|
|
3167
|
-
if (d < s && u.src.charCodeAt(d) === 91 ? (c = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(c, d++) : d = m + 1) : d = m + 1, n || (n = u.src.slice(p, m)),
|
|
3170
|
+
if (d < s && u.src.charCodeAt(d) === 91 ? (c = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(c, d++) : d = m + 1) : d = m + 1, n || (n = u.src.slice(p, m)), o = u.env.references[Gu(n)], !o)
|
|
3168
3171
|
return u.pos = f, !1;
|
|
3169
|
-
l =
|
|
3172
|
+
l = o.href, a = o.title;
|
|
3170
3173
|
}
|
|
3171
3174
|
if (!e) {
|
|
3172
3175
|
u.pos = p, u.posMax = m;
|
|
3173
3176
|
const w = u.push("link_open", "a", 1), $ = [["href", l]];
|
|
3174
|
-
w.attrs = $,
|
|
3177
|
+
w.attrs = $, a && $.push(["title", a]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3175
3178
|
}
|
|
3176
3179
|
return u.pos = d, u.posMax = s, !0;
|
|
3177
3180
|
}
|
|
3178
3181
|
function Rr(u, e) {
|
|
3179
|
-
let t, n, r,
|
|
3182
|
+
let t, n, r, o, l, a, c, i, f = "";
|
|
3180
3183
|
const s = u.pos, p = u.posMax;
|
|
3181
3184
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3182
3185
|
return !1;
|
|
3183
3186
|
const m = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
3184
3187
|
if (d < 0)
|
|
3185
3188
|
return !1;
|
|
3186
|
-
if (
|
|
3187
|
-
for (
|
|
3189
|
+
if (o = d + 1, o < p && u.src.charCodeAt(o) === 40) {
|
|
3190
|
+
for (o++; o < p && (t = u.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
|
|
3188
3191
|
;
|
|
3189
|
-
if (
|
|
3192
|
+
if (o >= p)
|
|
3190
3193
|
return !1;
|
|
3191
|
-
for (i =
|
|
3194
|
+
for (i = o, a = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), a.ok && (f = u.md.normalizeLink(a.str), u.md.validateLink(f) ? o = a.pos : f = ""), i = o; o < p && (t = u.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
|
|
3192
3195
|
;
|
|
3193
|
-
if (
|
|
3194
|
-
for (c =
|
|
3196
|
+
if (a = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < p && i !== o && a.ok)
|
|
3197
|
+
for (c = a.str, o = a.pos; o < p && (t = u.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
|
|
3195
3198
|
;
|
|
3196
3199
|
else
|
|
3197
3200
|
c = "";
|
|
3198
|
-
if (
|
|
3201
|
+
if (o >= p || u.src.charCodeAt(o) !== 41)
|
|
3199
3202
|
return u.pos = s, !1;
|
|
3200
|
-
|
|
3203
|
+
o++;
|
|
3201
3204
|
} else {
|
|
3202
3205
|
if (typeof u.env.references > "u")
|
|
3203
3206
|
return !1;
|
|
3204
|
-
if (
|
|
3207
|
+
if (o < p && u.src.charCodeAt(o) === 91 ? (i = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(i, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(m, d)), l = u.env.references[Gu(r)], !l)
|
|
3205
3208
|
return u.pos = s, !1;
|
|
3206
3209
|
f = l.href, c = l.title;
|
|
3207
3210
|
}
|
|
@@ -3217,7 +3220,7 @@ function Rr(u, e) {
|
|
|
3217
3220
|
const $ = u.push("image", "img", 0), A = [["src", f], ["alt", ""]];
|
|
3218
3221
|
$.attrs = A, $.children = w, $.content = n, c && A.push(["title", c]);
|
|
3219
3222
|
}
|
|
3220
|
-
return u.pos =
|
|
3223
|
+
return u.pos = o, u.posMax = p, !0;
|
|
3221
3224
|
}
|
|
3222
3225
|
const Mr = /^([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])?)*)$/, qr = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3223
3226
|
function Br(u, e) {
|
|
@@ -3234,34 +3237,34 @@ function Br(u, e) {
|
|
|
3234
3237
|
if (l === 62)
|
|
3235
3238
|
break;
|
|
3236
3239
|
}
|
|
3237
|
-
const
|
|
3238
|
-
if (qr.test(
|
|
3239
|
-
const l = u.md.normalizeLink(
|
|
3240
|
+
const o = u.src.slice(n + 1, t);
|
|
3241
|
+
if (qr.test(o)) {
|
|
3242
|
+
const l = u.md.normalizeLink(o);
|
|
3240
3243
|
if (!u.md.validateLink(l))
|
|
3241
3244
|
return !1;
|
|
3242
3245
|
if (!e) {
|
|
3243
|
-
const
|
|
3244
|
-
|
|
3246
|
+
const a = u.push("link_open", "a", 1);
|
|
3247
|
+
a.attrs = [["href", l]], a.markup = "autolink", a.info = "auto";
|
|
3245
3248
|
const c = u.push("text", "", 0);
|
|
3246
|
-
c.content = u.md.normalizeLinkText(
|
|
3249
|
+
c.content = u.md.normalizeLinkText(o);
|
|
3247
3250
|
const i = u.push("link_close", "a", -1);
|
|
3248
3251
|
i.markup = "autolink", i.info = "auto";
|
|
3249
3252
|
}
|
|
3250
|
-
return u.pos +=
|
|
3253
|
+
return u.pos += o.length + 2, !0;
|
|
3251
3254
|
}
|
|
3252
|
-
if (Mr.test(
|
|
3253
|
-
const l = u.md.normalizeLink("mailto:" +
|
|
3255
|
+
if (Mr.test(o)) {
|
|
3256
|
+
const l = u.md.normalizeLink("mailto:" + o);
|
|
3254
3257
|
if (!u.md.validateLink(l))
|
|
3255
3258
|
return !1;
|
|
3256
3259
|
if (!e) {
|
|
3257
|
-
const
|
|
3258
|
-
|
|
3260
|
+
const a = u.push("link_open", "a", 1);
|
|
3261
|
+
a.attrs = [["href", l]], a.markup = "autolink", a.info = "auto";
|
|
3259
3262
|
const c = u.push("text", "", 0);
|
|
3260
|
-
c.content = u.md.normalizeLinkText(
|
|
3263
|
+
c.content = u.md.normalizeLinkText(o);
|
|
3261
3264
|
const i = u.push("link_close", "a", -1);
|
|
3262
3265
|
i.markup = "autolink", i.info = "auto";
|
|
3263
3266
|
}
|
|
3264
|
-
return u.pos +=
|
|
3267
|
+
return u.pos += o.length + 2, !0;
|
|
3265
3268
|
}
|
|
3266
3269
|
return !1;
|
|
3267
3270
|
}
|
|
@@ -3284,14 +3287,14 @@ function Ur(u, e) {
|
|
|
3284
3287
|
const r = u.src.charCodeAt(n + 1);
|
|
3285
3288
|
if (r !== 33 && r !== 63 && r !== 47 && !Pr(r))
|
|
3286
3289
|
return !1;
|
|
3287
|
-
const
|
|
3288
|
-
if (!
|
|
3290
|
+
const o = u.src.slice(n).match(xr);
|
|
3291
|
+
if (!o)
|
|
3289
3292
|
return !1;
|
|
3290
3293
|
if (!e) {
|
|
3291
3294
|
const l = u.push("html_inline", "", 0);
|
|
3292
|
-
l.content =
|
|
3295
|
+
l.content = o[0], zr(l.content) && u.linkLevel++, Lr(l.content) && u.linkLevel--;
|
|
3293
3296
|
}
|
|
3294
|
-
return u.pos +=
|
|
3297
|
+
return u.pos += o[0].length, !0;
|
|
3295
3298
|
}
|
|
3296
3299
|
const Nr = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, jr = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3297
3300
|
function Zr(u, e) {
|
|
@@ -3299,24 +3302,24 @@ function Zr(u, e) {
|
|
|
3299
3302
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n)
|
|
3300
3303
|
return !1;
|
|
3301
3304
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3302
|
-
const
|
|
3303
|
-
if (
|
|
3305
|
+
const o = u.src.slice(t).match(Nr);
|
|
3306
|
+
if (o) {
|
|
3304
3307
|
if (!e) {
|
|
3305
|
-
const l =
|
|
3306
|
-
|
|
3308
|
+
const l = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), a = u.push("text_special", "", 0);
|
|
3309
|
+
a.content = Ae(l) ? Lu(l) : Lu(65533), a.markup = o[0], a.info = "entity";
|
|
3307
3310
|
}
|
|
3308
|
-
return u.pos +=
|
|
3311
|
+
return u.pos += o[0].length, !0;
|
|
3309
3312
|
}
|
|
3310
3313
|
} else {
|
|
3311
|
-
const
|
|
3312
|
-
if (
|
|
3313
|
-
const l = I0(
|
|
3314
|
-
if (l !==
|
|
3314
|
+
const o = u.src.slice(t).match(jr);
|
|
3315
|
+
if (o) {
|
|
3316
|
+
const l = I0(o[0]);
|
|
3317
|
+
if (l !== o[0]) {
|
|
3315
3318
|
if (!e) {
|
|
3316
|
-
const
|
|
3317
|
-
|
|
3319
|
+
const a = u.push("text_special", "", 0);
|
|
3320
|
+
a.content = l, a.markup = o[0], a.info = "entity";
|
|
3318
3321
|
}
|
|
3319
|
-
return u.pos +=
|
|
3322
|
+
return u.pos += o[0].length, !0;
|
|
3320
3323
|
}
|
|
3321
3324
|
}
|
|
3322
3325
|
}
|
|
@@ -3327,26 +3330,26 @@ function u0(u) {
|
|
|
3327
3330
|
if (!t)
|
|
3328
3331
|
return;
|
|
3329
3332
|
let n = 0, r = -2;
|
|
3330
|
-
const
|
|
3333
|
+
const o = [];
|
|
3331
3334
|
for (let l = 0; l < t; l++) {
|
|
3332
|
-
const
|
|
3333
|
-
if (
|
|
3335
|
+
const a = u[l];
|
|
3336
|
+
if (o.push(0), (u[n].marker !== a.marker || r !== a.token - 1) && (n = l), r = a.token, a.length = a.length || 0, !a.close)
|
|
3334
3337
|
continue;
|
|
3335
|
-
e.hasOwnProperty(
|
|
3336
|
-
const c = e[
|
|
3337
|
-
let i = n -
|
|
3338
|
-
for (; i > c; i -=
|
|
3338
|
+
e.hasOwnProperty(a.marker) || (e[a.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3339
|
+
const c = e[a.marker][(a.open ? 3 : 0) + a.length % 3];
|
|
3340
|
+
let i = n - o[n] - 1, f = i;
|
|
3341
|
+
for (; i > c; i -= o[i] + 1) {
|
|
3339
3342
|
const s = u[i];
|
|
3340
|
-
if (s.marker ===
|
|
3343
|
+
if (s.marker === a.marker && s.open && s.end < 0) {
|
|
3341
3344
|
let p = !1;
|
|
3342
|
-
if ((s.close ||
|
|
3343
|
-
const m = i > 0 && !u[i - 1].open ?
|
|
3344
|
-
|
|
3345
|
+
if ((s.close || a.open) && (s.length + a.length) % 3 === 0 && (s.length % 3 !== 0 || a.length % 3 !== 0) && (p = !0), !p) {
|
|
3346
|
+
const m = i > 0 && !u[i - 1].open ? o[i - 1] + 1 : 0;
|
|
3347
|
+
o[l] = l - i + m, o[i] = m, a.open = !1, s.end = l, s.close = !1, f = -1, r = -2;
|
|
3345
3348
|
break;
|
|
3346
3349
|
}
|
|
3347
3350
|
}
|
|
3348
3351
|
}
|
|
3349
|
-
f !== -1 && (e[
|
|
3352
|
+
f !== -1 && (e[a.marker][(a.open ? 3 : 0) + (a.length || 0) % 3] = f);
|
|
3350
3353
|
}
|
|
3351
3354
|
}
|
|
3352
3355
|
function Hr(u) {
|
|
@@ -3357,9 +3360,9 @@ function Hr(u) {
|
|
|
3357
3360
|
}
|
|
3358
3361
|
function Gr(u) {
|
|
3359
3362
|
let e, t, n = 0;
|
|
3360
|
-
const r = u.tokens,
|
|
3361
|
-
for (e = t = 0; e <
|
|
3362
|
-
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 <
|
|
3363
|
+
const r = u.tokens, o = u.tokens.length;
|
|
3364
|
+
for (e = t = 0; e < o; e++)
|
|
3365
|
+
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++);
|
|
3363
3366
|
e !== t && (r.length = t);
|
|
3364
3367
|
}
|
|
3365
3368
|
const ne = [
|
|
@@ -3392,32 +3395,32 @@ function $u() {
|
|
|
3392
3395
|
this.ruler2.push(re[u][0], re[u][1]);
|
|
3393
3396
|
}
|
|
3394
3397
|
$u.prototype.skipToken = function(u) {
|
|
3395
|
-
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting,
|
|
3396
|
-
if (typeof
|
|
3397
|
-
u.pos =
|
|
3398
|
+
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, o = u.cache;
|
|
3399
|
+
if (typeof o[e] < "u") {
|
|
3400
|
+
u.pos = o[e];
|
|
3398
3401
|
return;
|
|
3399
3402
|
}
|
|
3400
3403
|
let l = !1;
|
|
3401
3404
|
if (u.level < r) {
|
|
3402
|
-
for (let
|
|
3403
|
-
if (u.level++, l = t[
|
|
3405
|
+
for (let a = 0; a < n; a++)
|
|
3406
|
+
if (u.level++, l = t[a](u, !0), u.level--, l) {
|
|
3404
3407
|
if (e >= u.pos)
|
|
3405
3408
|
throw new Error("inline rule didn't increment state.pos");
|
|
3406
3409
|
break;
|
|
3407
3410
|
}
|
|
3408
3411
|
} else
|
|
3409
3412
|
u.pos = u.posMax;
|
|
3410
|
-
l || u.pos++,
|
|
3413
|
+
l || u.pos++, o[e] = u.pos;
|
|
3411
3414
|
};
|
|
3412
3415
|
$u.prototype.tokenize = function(u) {
|
|
3413
3416
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3414
3417
|
for (; u.pos < n; ) {
|
|
3415
|
-
const
|
|
3418
|
+
const o = u.pos;
|
|
3416
3419
|
let l = !1;
|
|
3417
3420
|
if (u.level < r) {
|
|
3418
|
-
for (let
|
|
3419
|
-
if (l = e[
|
|
3420
|
-
if (
|
|
3421
|
+
for (let a = 0; a < t; a++)
|
|
3422
|
+
if (l = e[a](u, !1), l) {
|
|
3423
|
+
if (o >= u.pos)
|
|
3421
3424
|
throw new Error("inline rule didn't increment state.pos");
|
|
3422
3425
|
break;
|
|
3423
3426
|
}
|
|
@@ -3434,9 +3437,9 @@ $u.prototype.tokenize = function(u) {
|
|
|
3434
3437
|
$u.prototype.parse = function(u, e, t, n) {
|
|
3435
3438
|
const r = new this.State(u, e, t, n);
|
|
3436
3439
|
this.tokenize(r);
|
|
3437
|
-
const
|
|
3438
|
-
for (let
|
|
3439
|
-
a
|
|
3440
|
+
const o = this.ruler2.getRules(""), l = o.length;
|
|
3441
|
+
for (let a = 0; a < l; a++)
|
|
3442
|
+
o[a](r);
|
|
3440
3443
|
};
|
|
3441
3444
|
$u.prototype.State = Vu;
|
|
3442
3445
|
function Jr(u) {
|
|
@@ -3486,7 +3489,7 @@ function Xr(u) {
|
|
|
3486
3489
|
return e || L0.hasOwnProperty(t);
|
|
3487
3490
|
}, !1);
|
|
3488
3491
|
}
|
|
3489
|
-
const
|
|
3492
|
+
const uo = {
|
|
3490
3493
|
"http:": {
|
|
3491
3494
|
validate: function(u, e, t) {
|
|
3492
3495
|
const n = u.slice(e);
|
|
@@ -3518,11 +3521,11 @@ const ua = {
|
|
|
3518
3521
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3519
3522
|
}
|
|
3520
3523
|
}
|
|
3521
|
-
},
|
|
3522
|
-
function
|
|
3524
|
+
}, eo = "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]", to = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3525
|
+
function no(u) {
|
|
3523
3526
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3524
3527
|
}
|
|
3525
|
-
function
|
|
3528
|
+
function ro(u) {
|
|
3526
3529
|
return function(e, t) {
|
|
3527
3530
|
const n = e.slice(t);
|
|
3528
3531
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3535,53 +3538,53 @@ function t0() {
|
|
|
3535
3538
|
}
|
|
3536
3539
|
function Pu(u) {
|
|
3537
3540
|
const e = u.re = Jr(u.__opts__), t = u.__tlds__.slice();
|
|
3538
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3539
|
-
function n(
|
|
3540
|
-
return
|
|
3541
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(eo), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3542
|
+
function n(a) {
|
|
3543
|
+
return a.replace("%TLDS%", e.src_tlds);
|
|
3541
3544
|
}
|
|
3542
3545
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
|
3543
3546
|
const r = [];
|
|
3544
3547
|
u.__compiled__ = {};
|
|
3545
|
-
function a
|
|
3546
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
|
3548
|
+
function o(a, c) {
|
|
3549
|
+
throw new Error('(LinkifyIt) Invalid schema "' + a + '": ' + c);
|
|
3547
3550
|
}
|
|
3548
|
-
Object.keys(u.__schemas__).forEach(function(
|
|
3549
|
-
const c = u.__schemas__[
|
|
3551
|
+
Object.keys(u.__schemas__).forEach(function(a) {
|
|
3552
|
+
const c = u.__schemas__[a];
|
|
3550
3553
|
if (c === null)
|
|
3551
3554
|
return;
|
|
3552
3555
|
const i = { validate: null, link: null };
|
|
3553
|
-
if (u.__compiled__[
|
|
3554
|
-
Yr(c.validate) ? i.validate =
|
|
3556
|
+
if (u.__compiled__[a] = i, Qr(c)) {
|
|
3557
|
+
Yr(c.validate) ? i.validate = ro(c.validate) : e0(c.validate) ? i.validate = c.validate : o(a, c), e0(c.normalize) ? i.normalize = c.normalize : c.normalize ? o(a, c) : i.normalize = t0();
|
|
3555
3558
|
return;
|
|
3556
3559
|
}
|
|
3557
3560
|
if (Wr(c)) {
|
|
3558
|
-
r.push(
|
|
3561
|
+
r.push(a);
|
|
3559
3562
|
return;
|
|
3560
3563
|
}
|
|
3561
|
-
a
|
|
3562
|
-
}), r.forEach(function(
|
|
3563
|
-
u.__compiled__[u.__schemas__[
|
|
3564
|
+
o(a, c);
|
|
3565
|
+
}), r.forEach(function(a) {
|
|
3566
|
+
u.__compiled__[u.__schemas__[a]] && (u.__compiled__[a].validate = u.__compiled__[u.__schemas__[a]].validate, u.__compiled__[a].normalize = u.__compiled__[u.__schemas__[a]].normalize);
|
|
3564
3567
|
}), u.__compiled__[""] = { validate: null, normalize: t0() };
|
|
3565
|
-
const l = Object.keys(u.__compiled__).filter(function(
|
|
3566
|
-
return
|
|
3568
|
+
const l = Object.keys(u.__compiled__).filter(function(a) {
|
|
3569
|
+
return a.length > 0 && u.__compiled__[a];
|
|
3567
3570
|
}).map(Kr).join("|");
|
|
3568
3571
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + l + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + l + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3569
3572
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3570
3573
|
"i"
|
|
3571
|
-
),
|
|
3574
|
+
), no(u);
|
|
3572
3575
|
}
|
|
3573
|
-
function
|
|
3576
|
+
function oo(u, e) {
|
|
3574
3577
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3575
3578
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3576
3579
|
}
|
|
3577
3580
|
function ce(u, e) {
|
|
3578
|
-
const t = new
|
|
3581
|
+
const t = new oo(u, e);
|
|
3579
3582
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3580
3583
|
}
|
|
3581
3584
|
function ru(u, e) {
|
|
3582
3585
|
if (!(this instanceof ru))
|
|
3583
3586
|
return new ru(u, e);
|
|
3584
|
-
e || Xr(u) && (e = u, u = {}), this.__opts__ = ie({}, L0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = ie({},
|
|
3587
|
+
e || Xr(u) && (e = u, u = {}), this.__opts__ = ie({}, L0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = ie({}, uo, u), this.__compiled__ = {}, this.__tlds__ = to, this.__tlds_replaced__ = !1, this.re = {}, Pu(this);
|
|
3585
3588
|
}
|
|
3586
3589
|
ru.prototype.add = function(e, t) {
|
|
3587
3590
|
return this.__schemas__[e] = t, Pu(this), this;
|
|
@@ -3592,15 +3595,15 @@ ru.prototype.set = function(e) {
|
|
|
3592
3595
|
ru.prototype.test = function(e) {
|
|
3593
3596
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3594
3597
|
return !1;
|
|
3595
|
-
let t, n, r,
|
|
3598
|
+
let t, n, r, o, l, a, c, i, f;
|
|
3596
3599
|
if (this.re.schema_test.test(e)) {
|
|
3597
3600
|
for (c = this.re.schema_search, c.lastIndex = 0; (t = c.exec(e)) !== null; )
|
|
3598
|
-
if (
|
|
3599
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length +
|
|
3601
|
+
if (o = this.testSchemaAt(e, t[2], c.lastIndex), o) {
|
|
3602
|
+
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + o;
|
|
3600
3603
|
break;
|
|
3601
3604
|
}
|
|
3602
3605
|
}
|
|
3603
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (i = e.search(this.re.host_fuzzy_test), i >= 0 && (this.__index__ < 0 || i < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (l = n.index + n[1].length, (this.__index__ < 0 || l < this.__index__) && (this.__schema__ = "", this.__index__ = l, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (l = r.index + r[1].length,
|
|
3606
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (i = e.search(this.re.host_fuzzy_test), i >= 0 && (this.__index__ < 0 || i < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (l = n.index + n[1].length, (this.__index__ < 0 || l < this.__index__) && (this.__schema__ = "", this.__index__ = l, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (l = r.index + r[1].length, a = r.index + r[0].length, (this.__index__ < 0 || l < this.__index__ || l === this.__index__ && a > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = l, this.__last_index__ = a))), this.__index__ >= 0;
|
|
3604
3607
|
};
|
|
3605
3608
|
ru.prototype.pretest = function(e) {
|
|
3606
3609
|
return this.re.pretest.test(e);
|
|
@@ -3627,8 +3630,8 @@ ru.prototype.matchAtStart = function(e) {
|
|
|
3627
3630
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, ce(this, 0)) : null;
|
|
3628
3631
|
};
|
|
3629
3632
|
ru.prototype.tlds = function(e, t) {
|
|
3630
|
-
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r,
|
|
3631
|
-
return n !==
|
|
3633
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3634
|
+
return n !== o[r - 1];
|
|
3632
3635
|
}).reverse(), Pu(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Pu(this), this);
|
|
3633
3636
|
};
|
|
3634
3637
|
ru.prototype.normalize = function(e) {
|
|
@@ -3636,15 +3639,15 @@ ru.prototype.normalize = function(e) {
|
|
|
3636
3639
|
};
|
|
3637
3640
|
ru.prototype.onCompile = function() {
|
|
3638
3641
|
};
|
|
3639
|
-
const yu = 2147483647, iu = 36, Se = 1, Iu = 26,
|
|
3642
|
+
const yu = 2147483647, iu = 36, Se = 1, Iu = 26, ao = 38, lo = 700, P0 = 72, U0 = 128, N0 = "-", io = /^xn--/, co = /[^\0-\x7F]/, so = /[\x2E\u3002\uFF0E\uFF61]/g, fo = {
|
|
3640
3643
|
overflow: "Overflow: input needs wider integers to process",
|
|
3641
3644
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3642
3645
|
"invalid-input": "Invalid input"
|
|
3643
|
-
},
|
|
3646
|
+
}, oe = iu - Se, cu = Math.floor, ae = String.fromCharCode;
|
|
3644
3647
|
function pu(u) {
|
|
3645
|
-
throw new RangeError(
|
|
3648
|
+
throw new RangeError(fo[u]);
|
|
3646
3649
|
}
|
|
3647
|
-
function
|
|
3650
|
+
function po(u, e) {
|
|
3648
3651
|
const t = [];
|
|
3649
3652
|
let n = u.length;
|
|
3650
3653
|
for (; n--; )
|
|
@@ -3654,9 +3657,9 @@ function fa(u, e) {
|
|
|
3654
3657
|
function j0(u, e) {
|
|
3655
3658
|
const t = u.split("@");
|
|
3656
3659
|
let n = "";
|
|
3657
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3658
|
-
const r = u.split("."),
|
|
3659
|
-
return n +
|
|
3660
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(so, ".");
|
|
3661
|
+
const r = u.split("."), o = po(r, e).join(".");
|
|
3662
|
+
return n + o;
|
|
3660
3663
|
}
|
|
3661
3664
|
function Z0(u) {
|
|
3662
3665
|
const e = [];
|
|
@@ -3665,83 +3668,83 @@ function Z0(u) {
|
|
|
3665
3668
|
for (; t < n; ) {
|
|
3666
3669
|
const r = u.charCodeAt(t++);
|
|
3667
3670
|
if (r >= 55296 && r <= 56319 && t < n) {
|
|
3668
|
-
const
|
|
3669
|
-
(
|
|
3671
|
+
const o = u.charCodeAt(t++);
|
|
3672
|
+
(o & 64512) == 56320 ? e.push(((r & 1023) << 10) + (o & 1023) + 65536) : (e.push(r), t--);
|
|
3670
3673
|
} else
|
|
3671
3674
|
e.push(r);
|
|
3672
3675
|
}
|
|
3673
3676
|
return e;
|
|
3674
3677
|
}
|
|
3675
|
-
const
|
|
3678
|
+
const bo = (u) => String.fromCodePoint(...u), ho = function(u) {
|
|
3676
3679
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : iu;
|
|
3677
3680
|
}, n0 = function(u, e) {
|
|
3678
3681
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3679
3682
|
}, H0 = function(u, e, t) {
|
|
3680
3683
|
let n = 0;
|
|
3681
|
-
for (u = t ? cu(u /
|
|
3682
|
-
u = cu(u /
|
|
3683
|
-
return cu(n + (
|
|
3684
|
+
for (u = t ? cu(u / lo) : u >> 1, u += cu(u / e); u > oe * Iu >> 1; n += iu)
|
|
3685
|
+
u = cu(u / oe);
|
|
3686
|
+
return cu(n + (oe + 1) * u / (u + ao));
|
|
3684
3687
|
}, G0 = function(u) {
|
|
3685
3688
|
const e = [], t = u.length;
|
|
3686
|
-
let n = 0, r = U0,
|
|
3689
|
+
let n = 0, r = U0, o = P0, l = u.lastIndexOf(N0);
|
|
3687
3690
|
l < 0 && (l = 0);
|
|
3688
|
-
for (let
|
|
3689
|
-
u.charCodeAt(
|
|
3690
|
-
for (let
|
|
3691
|
+
for (let a = 0; a < l; ++a)
|
|
3692
|
+
u.charCodeAt(a) >= 128 && pu("not-basic"), e.push(u.charCodeAt(a));
|
|
3693
|
+
for (let a = l > 0 ? l + 1 : 0; a < t; ) {
|
|
3691
3694
|
const c = n;
|
|
3692
3695
|
for (let f = 1, s = iu; ; s += iu) {
|
|
3693
|
-
|
|
3694
|
-
const p =
|
|
3696
|
+
a >= t && pu("invalid-input");
|
|
3697
|
+
const p = ho(u.charCodeAt(a++));
|
|
3695
3698
|
p >= iu && pu("invalid-input"), p > cu((yu - n) / f) && pu("overflow"), n += p * f;
|
|
3696
|
-
const m = s <=
|
|
3699
|
+
const m = s <= o ? Se : s >= o + Iu ? Iu : s - o;
|
|
3697
3700
|
if (p < m)
|
|
3698
3701
|
break;
|
|
3699
3702
|
const d = iu - m;
|
|
3700
3703
|
f > cu(yu / d) && pu("overflow"), f *= d;
|
|
3701
3704
|
}
|
|
3702
3705
|
const i = e.length + 1;
|
|
3703
|
-
|
|
3706
|
+
o = H0(n - c, i, c == 0), cu(n / i) > yu - r && pu("overflow"), r += cu(n / i), n %= i, e.splice(n++, 0, r);
|
|
3704
3707
|
}
|
|
3705
3708
|
return String.fromCodePoint(...e);
|
|
3706
3709
|
}, J0 = function(u) {
|
|
3707
3710
|
const e = [];
|
|
3708
3711
|
u = Z0(u);
|
|
3709
3712
|
const t = u.length;
|
|
3710
|
-
let n = U0, r = 0,
|
|
3713
|
+
let n = U0, r = 0, o = P0;
|
|
3711
3714
|
for (const c of u)
|
|
3712
|
-
c < 128 && e.push(
|
|
3715
|
+
c < 128 && e.push(ae(c));
|
|
3713
3716
|
const l = e.length;
|
|
3714
|
-
let
|
|
3715
|
-
for (l && e.push(N0);
|
|
3717
|
+
let a = l;
|
|
3718
|
+
for (l && e.push(N0); a < t; ) {
|
|
3716
3719
|
let c = yu;
|
|
3717
3720
|
for (const f of u)
|
|
3718
3721
|
f >= n && f < c && (c = f);
|
|
3719
|
-
const i =
|
|
3722
|
+
const i = a + 1;
|
|
3720
3723
|
c - n > cu((yu - r) / i) && pu("overflow"), r += (c - n) * i, n = c;
|
|
3721
3724
|
for (const f of u)
|
|
3722
3725
|
if (f < n && ++r > yu && pu("overflow"), f === n) {
|
|
3723
3726
|
let s = r;
|
|
3724
3727
|
for (let p = iu; ; p += iu) {
|
|
3725
|
-
const m = p <=
|
|
3728
|
+
const m = p <= o ? Se : p >= o + Iu ? Iu : p - o;
|
|
3726
3729
|
if (s < m)
|
|
3727
3730
|
break;
|
|
3728
3731
|
const d = s - m, w = iu - m;
|
|
3729
3732
|
e.push(
|
|
3730
|
-
|
|
3733
|
+
ae(n0(m + d % w, 0))
|
|
3731
3734
|
), s = cu(d / w);
|
|
3732
3735
|
}
|
|
3733
|
-
e.push(
|
|
3736
|
+
e.push(ae(n0(s, 0))), o = H0(r, i, a === l), r = 0, ++a;
|
|
3734
3737
|
}
|
|
3735
3738
|
++r, ++n;
|
|
3736
3739
|
}
|
|
3737
3740
|
return e.join("");
|
|
3738
|
-
},
|
|
3741
|
+
}, mo = function(u) {
|
|
3739
3742
|
return j0(u, function(e) {
|
|
3740
|
-
return
|
|
3743
|
+
return io.test(e) ? G0(e.slice(4).toLowerCase()) : e;
|
|
3741
3744
|
});
|
|
3742
|
-
},
|
|
3745
|
+
}, xo = function(u) {
|
|
3743
3746
|
return j0(u, function(e) {
|
|
3744
|
-
return
|
|
3747
|
+
return co.test(e) ? "xn--" + J0(e) : e;
|
|
3745
3748
|
});
|
|
3746
3749
|
}, W0 = {
|
|
3747
3750
|
/**
|
|
@@ -3759,13 +3762,13 @@ const pa = (u) => String.fromCodePoint(...u), ba = function(u) {
|
|
|
3759
3762
|
*/
|
|
3760
3763
|
ucs2: {
|
|
3761
3764
|
decode: Z0,
|
|
3762
|
-
encode:
|
|
3765
|
+
encode: bo
|
|
3763
3766
|
},
|
|
3764
3767
|
decode: G0,
|
|
3765
3768
|
encode: J0,
|
|
3766
|
-
toASCII:
|
|
3767
|
-
toUnicode:
|
|
3768
|
-
},
|
|
3769
|
+
toASCII: xo,
|
|
3770
|
+
toUnicode: mo
|
|
3771
|
+
}, _o = {
|
|
3769
3772
|
options: {
|
|
3770
3773
|
// Enable HTML tags in source
|
|
3771
3774
|
html: !1,
|
|
@@ -3801,7 +3804,7 @@ const pa = (u) => String.fromCodePoint(...u), ba = function(u) {
|
|
|
3801
3804
|
block: {},
|
|
3802
3805
|
inline: {}
|
|
3803
3806
|
}
|
|
3804
|
-
},
|
|
3807
|
+
}, go = {
|
|
3805
3808
|
options: {
|
|
3806
3809
|
// Enable HTML tags in source
|
|
3807
3810
|
html: !1,
|
|
@@ -3856,7 +3859,7 @@ const pa = (u) => String.fromCodePoint(...u), ba = function(u) {
|
|
|
3856
3859
|
]
|
|
3857
3860
|
}
|
|
3858
3861
|
}
|
|
3859
|
-
},
|
|
3862
|
+
}, ko = {
|
|
3860
3863
|
options: {
|
|
3861
3864
|
// Enable HTML tags in source
|
|
3862
3865
|
html: !0,
|
|
@@ -3930,17 +3933,17 @@ const pa = (u) => String.fromCodePoint(...u), ba = function(u) {
|
|
|
3930
3933
|
]
|
|
3931
3934
|
}
|
|
3932
3935
|
}
|
|
3933
|
-
},
|
|
3934
|
-
default:
|
|
3935
|
-
zero:
|
|
3936
|
-
commonmark:
|
|
3937
|
-
},
|
|
3938
|
-
function
|
|
3936
|
+
}, yo = {
|
|
3937
|
+
default: _o,
|
|
3938
|
+
zero: go,
|
|
3939
|
+
commonmark: ko
|
|
3940
|
+
}, vo = /^(vbscript|javascript|file|data):/, Co = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3941
|
+
function Eo(u) {
|
|
3939
3942
|
const e = u.trim().toLowerCase();
|
|
3940
|
-
return
|
|
3943
|
+
return vo.test(e) ? Co.test(e) : !0;
|
|
3941
3944
|
}
|
|
3942
3945
|
const Q0 = ["http:", "https:", "mailto:"];
|
|
3943
|
-
function
|
|
3946
|
+
function Do(u) {
|
|
3944
3947
|
const e = Ee(u, !0);
|
|
3945
3948
|
if (e.hostname && (!e.protocol || Q0.indexOf(e.protocol) >= 0))
|
|
3946
3949
|
try {
|
|
@@ -3949,7 +3952,7 @@ function Ea(u) {
|
|
|
3949
3952
|
}
|
|
3950
3953
|
return Ou(Ce(e));
|
|
3951
3954
|
}
|
|
3952
|
-
function
|
|
3955
|
+
function Fo(u) {
|
|
3953
3956
|
const e = Ee(u, !0);
|
|
3954
3957
|
if (e.hostname && (!e.protocol || Q0.indexOf(e.protocol) >= 0))
|
|
3955
3958
|
try {
|
|
@@ -3958,19 +3961,19 @@ function Da(u) {
|
|
|
3958
3961
|
}
|
|
3959
3962
|
return Cu(Ce(e), Cu.defaultChars + "%");
|
|
3960
3963
|
}
|
|
3961
|
-
function
|
|
3962
|
-
if (!(this instanceof
|
|
3963
|
-
return new
|
|
3964
|
-
e || Fe(u) || (e = u || {}, u = "default"), this.inline = new $u(), this.block = new Ju(), this.core = new we(), this.renderer = new Fu(), this.linkify = new ru(), this.validateLink =
|
|
3964
|
+
function ou(u, e) {
|
|
3965
|
+
if (!(this instanceof ou))
|
|
3966
|
+
return new ou(u, e);
|
|
3967
|
+
e || Fe(u) || (e = u || {}, u = "default"), this.inline = new $u(), this.block = new Ju(), this.core = new we(), this.renderer = new Fu(), this.linkify = new ru(), this.validateLink = Eo, this.normalizeLink = Do, this.normalizeLinkText = Fo, this.utils = An, this.helpers = Hu({}, In), this.options = {}, this.configure(u), e && this.set(e);
|
|
3965
3968
|
}
|
|
3966
|
-
|
|
3969
|
+
ou.prototype.set = function(u) {
|
|
3967
3970
|
return Hu(this.options, u), this;
|
|
3968
3971
|
};
|
|
3969
|
-
|
|
3972
|
+
ou.prototype.configure = function(u) {
|
|
3970
3973
|
const e = this;
|
|
3971
3974
|
if (Fe(u)) {
|
|
3972
3975
|
const t = u;
|
|
3973
|
-
if (u =
|
|
3976
|
+
if (u = yo[t], !u)
|
|
3974
3977
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3975
3978
|
}
|
|
3976
3979
|
if (!u)
|
|
@@ -3979,7 +3982,7 @@ au.prototype.configure = function(u) {
|
|
|
3979
3982
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3980
3983
|
}), this;
|
|
3981
3984
|
};
|
|
3982
|
-
|
|
3985
|
+
ou.prototype.enable = function(u, e) {
|
|
3983
3986
|
let t = [];
|
|
3984
3987
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3985
3988
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -3991,7 +3994,7 @@ au.prototype.enable = function(u, e) {
|
|
|
3991
3994
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3992
3995
|
return this;
|
|
3993
3996
|
};
|
|
3994
|
-
|
|
3997
|
+
ou.prototype.disable = function(u, e) {
|
|
3995
3998
|
let t = [];
|
|
3996
3999
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3997
4000
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -4003,27 +4006,27 @@ au.prototype.disable = function(u, e) {
|
|
|
4003
4006
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
4004
4007
|
return this;
|
|
4005
4008
|
};
|
|
4006
|
-
|
|
4009
|
+
ou.prototype.use = function(u) {
|
|
4007
4010
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
4008
4011
|
return u.apply(u, e), this;
|
|
4009
4012
|
};
|
|
4010
|
-
|
|
4013
|
+
ou.prototype.parse = function(u, e) {
|
|
4011
4014
|
if (typeof u != "string")
|
|
4012
4015
|
throw new Error("Input data should be a String");
|
|
4013
4016
|
const t = new this.core.State(u, this, e);
|
|
4014
4017
|
return this.core.process(t), t.tokens;
|
|
4015
4018
|
};
|
|
4016
|
-
|
|
4019
|
+
ou.prototype.render = function(u, e) {
|
|
4017
4020
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
4018
4021
|
};
|
|
4019
|
-
|
|
4022
|
+
ou.prototype.parseInline = function(u, e) {
|
|
4020
4023
|
const t = new this.core.State(u, this, e);
|
|
4021
4024
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
4022
4025
|
};
|
|
4023
|
-
|
|
4026
|
+
ou.prototype.renderInline = function(u, e) {
|
|
4024
4027
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
4025
4028
|
};
|
|
4026
|
-
const
|
|
4029
|
+
const Ao = ["innerHTML"], wo = {
|
|
4027
4030
|
__name: "FactorDescription",
|
|
4028
4031
|
props: /* @__PURE__ */ ju({
|
|
4029
4032
|
factorType: { type: String, default: "模版" },
|
|
@@ -4034,12 +4037,12 @@ const Fa = ["innerHTML"], Aa = {
|
|
|
4034
4037
|
}),
|
|
4035
4038
|
emits: ["update:visible"],
|
|
4036
4039
|
setup(u) {
|
|
4037
|
-
const { request: e } =
|
|
4038
|
-
return
|
|
4039
|
-
const { data:
|
|
4040
|
+
const { request: e } = o0("stConfig"), t = new ou(), n = eu(""), r = Zu(u, "visible");
|
|
4041
|
+
return c0(async () => {
|
|
4042
|
+
const { data: o } = await e.post("/middleLayer/special/getOss", { url: "resource/factor_select.md" }), l = new Uint8Array(o.data), c = new TextDecoder("utf-8").decode(l);
|
|
4040
4043
|
n.value = t.render(c);
|
|
4041
|
-
}), (
|
|
4042
|
-
const
|
|
4044
|
+
}), (o, l) => {
|
|
4045
|
+
const a = nt, c = rt, i = b0, f = ge;
|
|
4043
4046
|
return E(), P(f, {
|
|
4044
4047
|
modelValue: r.value,
|
|
4045
4048
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
|
|
@@ -4063,16 +4066,16 @@ const Fa = ["innerHTML"], Aa = {
|
|
|
4063
4066
|
height: "500"
|
|
4064
4067
|
}, {
|
|
4065
4068
|
default: D(() => [
|
|
4066
|
-
y(
|
|
4069
|
+
y(a, {
|
|
4067
4070
|
prop: "factorName",
|
|
4068
4071
|
label: "因子名称",
|
|
4069
4072
|
width: "200"
|
|
4070
4073
|
}),
|
|
4071
|
-
y(
|
|
4074
|
+
y(a, {
|
|
4072
4075
|
prop: "factorDesc",
|
|
4073
4076
|
label: "因子说明"
|
|
4074
4077
|
}),
|
|
4075
|
-
y(
|
|
4078
|
+
y(a, {
|
|
4076
4079
|
prop: "factorScoreDefine",
|
|
4077
4080
|
label: "分值定义"
|
|
4078
4081
|
})
|
|
@@ -4083,7 +4086,7 @@ const Fa = ["innerHTML"], Aa = {
|
|
|
4083
4086
|
key: 1,
|
|
4084
4087
|
class: "markdown-body",
|
|
4085
4088
|
innerHTML: n.value
|
|
4086
|
-
}, null, 8,
|
|
4089
|
+
}, null, 8, Ao)) : U("", !0)
|
|
4087
4090
|
]),
|
|
4088
4091
|
_: 1
|
|
4089
4092
|
})
|
|
@@ -4093,7 +4096,7 @@ const Fa = ["innerHTML"], Aa = {
|
|
|
4093
4096
|
};
|
|
4094
4097
|
}
|
|
4095
4098
|
};
|
|
4096
|
-
const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u),
|
|
4099
|
+
const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), To = { class: "factor-screen" }, So = { style: { "white-space": "pre-line" } }, Io = { class: "custom-header" }, Oo = { class: "left" }, Vo = ["id"], $o = { class: "right" }, Ro = { class: "form-row" }, Mo = { class: "index" }, qo = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Bo = /* @__PURE__ */ Y0(() => /* @__PURE__ */ V("span", null, "~", -1)), zo = /* @__PURE__ */ Y0(() => /* @__PURE__ */ V("span", null, "&&代表and,||代表or", -1)), Lo = { class: "dialog-footer" }, Po = {
|
|
4097
4100
|
__name: "index",
|
|
4098
4101
|
props: /* @__PURE__ */ ju({
|
|
4099
4102
|
config: {
|
|
@@ -4125,7 +4128,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4125
4128
|
}),
|
|
4126
4129
|
emits: ["update:data"],
|
|
4127
4130
|
setup(u) {
|
|
4128
|
-
const e = u, t = Zu(u, "data"), n = eu(), r = eu(),
|
|
4131
|
+
const e = u, t = Zu(u, "data"), n = eu(), r = eu(), o = eu(!1), l = eu(!1), a = eu("脚本"), c = eu(null), i = eu({
|
|
4129
4132
|
// 筛选因子列表
|
|
4130
4133
|
list: [
|
|
4131
4134
|
{
|
|
@@ -4150,9 +4153,9 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4150
4153
|
sqlEnable: b,
|
|
4151
4154
|
sqlValue: x,
|
|
4152
4155
|
factorSelectExpr: g
|
|
4153
|
-
}, i.value.list.length || m(),
|
|
4156
|
+
}, i.value.list.length || m(), o.value = !0;
|
|
4154
4157
|
}, s = () => {
|
|
4155
|
-
if (
|
|
4158
|
+
if (a.value === "模版")
|
|
4156
4159
|
c.value.validate((k) => {
|
|
4157
4160
|
const { list: b, sqlEnable: x, sqlValue: g } = i.value;
|
|
4158
4161
|
if (k) {
|
|
@@ -4168,7 +4171,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4168
4171
|
sqlEnable: x,
|
|
4169
4172
|
sqlValue: g,
|
|
4170
4173
|
factorSelectExpr: ""
|
|
4171
|
-
},
|
|
4174
|
+
}, o.value = !1;
|
|
4172
4175
|
}
|
|
4173
4176
|
});
|
|
4174
4177
|
else {
|
|
@@ -4180,7 +4183,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4180
4183
|
sqlEnable: 0,
|
|
4181
4184
|
sqlValue: null,
|
|
4182
4185
|
factorSelectExpr: k
|
|
4183
|
-
},
|
|
4186
|
+
}, o.value = !1;
|
|
4184
4187
|
}
|
|
4185
4188
|
}, p = (k) => {
|
|
4186
4189
|
i.value.list.splice(k, 1);
|
|
@@ -4243,7 +4246,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4243
4246
|
break;
|
|
4244
4247
|
}
|
|
4245
4248
|
case "scriptTag": {
|
|
4246
|
-
|
|
4249
|
+
lt.confirm("是否确认删除因子筛选: 脚本模式", "删除操作", {
|
|
4247
4250
|
confirmButtonText: "确认",
|
|
4248
4251
|
cancelButtonText: "取消",
|
|
4249
4252
|
type: "warning"
|
|
@@ -4288,12 +4291,12 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4288
4291
|
}
|
|
4289
4292
|
};
|
|
4290
4293
|
return vu(
|
|
4291
|
-
() =>
|
|
4294
|
+
() => o.value,
|
|
4292
4295
|
(k) => {
|
|
4293
4296
|
switch (k) {
|
|
4294
4297
|
case !0: {
|
|
4295
4298
|
Bu(() => {
|
|
4296
|
-
n.value.resize(), t.value.factorSelectExpr && (
|
|
4299
|
+
n.value.resize(), t.value.factorSelectExpr && (a.value = "脚本", n.value.setValue(t.value.factorSelectExpr), n.value.focusToEnd()), (t.value.sqlEnable && t.value.sqlValue || !t.value.sqlEnable && t.value.list.length) && (a.value = "模版");
|
|
4297
4300
|
});
|
|
4298
4301
|
break;
|
|
4299
4302
|
}
|
|
@@ -4304,7 +4307,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4304
4307
|
}
|
|
4305
4308
|
}
|
|
4306
4309
|
), vu(
|
|
4307
|
-
() =>
|
|
4310
|
+
() => a.value,
|
|
4308
4311
|
(k) => {
|
|
4309
4312
|
k === "模版" && r.value.close(), k === "脚本" && Bu(() => {
|
|
4310
4313
|
n.value.focusToEnd();
|
|
@@ -4313,9 +4316,9 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4313
4316
|
{ deep: !0 }
|
|
4314
4317
|
), (k, b) => {
|
|
4315
4318
|
var Ie;
|
|
4316
|
-
const x =
|
|
4319
|
+
const x = it, g = h0, _ = kt, I = p0, v = _t, T = tt, F = D0, q = ve, B = qe("st-customFunction"), C = fe, N = pe, H = pt, xu = f0, _u = ye, gu = d0, K = bt, X = b0, Yu = ge, K0 = qe("st-varSelectDialog");
|
|
4317
4320
|
return E(), S(z, null, [
|
|
4318
|
-
V("div",
|
|
4321
|
+
V("div", To, [
|
|
4319
4322
|
V("div", null, [
|
|
4320
4323
|
t.value.sqlEnable && t.value.sqlValue ? (E(), P(g, {
|
|
4321
4324
|
key: 0,
|
|
@@ -4366,7 +4369,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4366
4369
|
})
|
|
4367
4370
|
]),
|
|
4368
4371
|
default: D(() => [
|
|
4369
|
-
V("div",
|
|
4372
|
+
V("div", So, uu(t.value.factorSelectExpr), 1)
|
|
4370
4373
|
]),
|
|
4371
4374
|
_: 1
|
|
4372
4375
|
})) : U("", !0),
|
|
@@ -4386,8 +4389,8 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4386
4389
|
]),
|
|
4387
4390
|
y(Yu, {
|
|
4388
4391
|
"modal-class": "factor-dialog",
|
|
4389
|
-
modelValue:
|
|
4390
|
-
"onUpdate:modelValue": b[8] || (b[8] = (M) =>
|
|
4392
|
+
modelValue: o.value,
|
|
4393
|
+
"onUpdate:modelValue": b[8] || (b[8] = (M) => o.value = M),
|
|
4391
4394
|
width: "1000",
|
|
4392
4395
|
"align-center": "",
|
|
4393
4396
|
"destroy-on-close": "",
|
|
@@ -4398,12 +4401,12 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4398
4401
|
"show-close": !1
|
|
4399
4402
|
}, {
|
|
4400
4403
|
header: D(({ titleId: M, titleClass: nu }) => [
|
|
4401
|
-
V("div",
|
|
4402
|
-
V("div",
|
|
4404
|
+
V("div", Io, [
|
|
4405
|
+
V("div", Oo, [
|
|
4403
4406
|
V("span", {
|
|
4404
4407
|
id: M,
|
|
4405
4408
|
class: lu(nu)
|
|
4406
|
-
}, " 因子筛选 ", 10,
|
|
4409
|
+
}, " 因子筛选 ", 10, Vo),
|
|
4407
4410
|
y(T, {
|
|
4408
4411
|
effect: "dark",
|
|
4409
4412
|
content: "点击查看: 因子使用说明",
|
|
@@ -4414,7 +4417,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4414
4417
|
onClick: b[2] || (b[2] = (R) => l.value = !0)
|
|
4415
4418
|
}, {
|
|
4416
4419
|
default: D(() => [
|
|
4417
|
-
y(O(
|
|
4420
|
+
y(O(ht))
|
|
4418
4421
|
]),
|
|
4419
4422
|
_: 1
|
|
4420
4423
|
})
|
|
@@ -4422,8 +4425,8 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4422
4425
|
_: 1
|
|
4423
4426
|
}),
|
|
4424
4427
|
y(q, {
|
|
4425
|
-
modelValue:
|
|
4426
|
-
"onUpdate:modelValue": b[3] || (b[3] = (R) =>
|
|
4428
|
+
modelValue: a.value,
|
|
4429
|
+
"onUpdate:modelValue": b[3] || (b[3] = (R) => a.value = R),
|
|
4427
4430
|
size: "small"
|
|
4428
4431
|
}, {
|
|
4429
4432
|
default: D(() => [
|
|
@@ -4442,11 +4445,11 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4442
4445
|
size: "small",
|
|
4443
4446
|
onInsert: h
|
|
4444
4447
|
}, null, 512), [
|
|
4445
|
-
[
|
|
4448
|
+
[s0, a.value === "脚本"]
|
|
4446
4449
|
])
|
|
4447
4450
|
]),
|
|
4448
|
-
V("div",
|
|
4449
|
-
|
|
4451
|
+
V("div", $o, [
|
|
4452
|
+
a.value === "脚本" ? (E(), P(I, {
|
|
4450
4453
|
key: 0,
|
|
4451
4454
|
size: "small",
|
|
4452
4455
|
type: "primary",
|
|
@@ -4458,10 +4461,10 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4458
4461
|
_: 1
|
|
4459
4462
|
})) : U("", !0),
|
|
4460
4463
|
y(v, {
|
|
4461
|
-
onClick: b[4] || (b[4] = (R) =>
|
|
4464
|
+
onClick: b[4] || (b[4] = (R) => o.value = !1)
|
|
4462
4465
|
}, {
|
|
4463
4466
|
default: D(() => [
|
|
4464
|
-
y(O(
|
|
4467
|
+
y(O(mt))
|
|
4465
4468
|
]),
|
|
4466
4469
|
_: 1
|
|
4467
4470
|
})
|
|
@@ -4469,7 +4472,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4469
4472
|
])
|
|
4470
4473
|
]),
|
|
4471
4474
|
footer: D(() => [
|
|
4472
|
-
V("div",
|
|
4475
|
+
V("div", Lo, [
|
|
4473
4476
|
y(I, {
|
|
4474
4477
|
type: "primary",
|
|
4475
4478
|
onClick: s
|
|
@@ -4482,7 +4485,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4482
4485
|
])
|
|
4483
4486
|
]),
|
|
4484
4487
|
default: D(() => [
|
|
4485
|
-
|
|
4488
|
+
a.value === "模版" ? (E(), P(X, {
|
|
4486
4489
|
key: 0,
|
|
4487
4490
|
height: "400px"
|
|
4488
4491
|
}, {
|
|
@@ -4493,8 +4496,8 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4493
4496
|
model: i.value
|
|
4494
4497
|
}, {
|
|
4495
4498
|
default: D(() => [
|
|
4496
|
-
(E(!0), S(z, null, Z(i.value.list, (M, nu) => (E(), S("div",
|
|
4497
|
-
V("span",
|
|
4499
|
+
(E(!0), S(z, null, Z(i.value.list, (M, nu) => (E(), S("div", Ro, [
|
|
4500
|
+
V("span", Mo, uu(`条件${nu + 1}`), 1),
|
|
4498
4501
|
M.key === "compare" ? (E(), S(z, { key: 0 }, [
|
|
4499
4502
|
u.config.cycleShow ? (E(), P(H, {
|
|
4500
4503
|
key: 0,
|
|
@@ -4684,14 +4687,14 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4684
4687
|
style: { width: "200px", "margin-right": "10px" }
|
|
4685
4688
|
}, {
|
|
4686
4689
|
default: D(() => [
|
|
4687
|
-
V("div",
|
|
4690
|
+
V("div", qo, [
|
|
4688
4691
|
y(xu, {
|
|
4689
4692
|
modelValue: M.score[0],
|
|
4690
4693
|
"onUpdate:modelValue": (R) => M.score[0] = R,
|
|
4691
4694
|
size: "small",
|
|
4692
4695
|
"controls-position": "right"
|
|
4693
4696
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
4694
|
-
|
|
4697
|
+
Bo,
|
|
4695
4698
|
y(xu, {
|
|
4696
4699
|
modelValue: M.score[1],
|
|
4697
4700
|
"onUpdate:modelValue": (R) => M.score[1] = R,
|
|
@@ -4707,7 +4710,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4707
4710
|
onClick: (R) => p(nu)
|
|
4708
4711
|
}, {
|
|
4709
4712
|
default: D(() => [
|
|
4710
|
-
y(O(
|
|
4713
|
+
y(O(xt))
|
|
4711
4714
|
]),
|
|
4712
4715
|
_: 2
|
|
4713
4716
|
}, 1032, ["onClick"])
|
|
@@ -4780,7 +4783,7 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4780
4783
|
type: "textarea",
|
|
4781
4784
|
style: { "margin-bottom": "10px" }
|
|
4782
4785
|
}, null, 8, ["modelValue"]),
|
|
4783
|
-
|
|
4786
|
+
zo
|
|
4784
4787
|
], 64)) : U("", !0)
|
|
4785
4788
|
], 64)) : U("", !0)
|
|
4786
4789
|
]),
|
|
@@ -4790,9 +4793,9 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4790
4793
|
_: 1
|
|
4791
4794
|
})) : U("", !0),
|
|
4792
4795
|
V("div", {
|
|
4793
|
-
style:
|
|
4796
|
+
style: i0([{ width: "968px", height: "400px" }, a.value === "脚本" ? null : { position: "fixed", top: "-400px", zIndex: -1, visibility: "hidden", pointerEvents: "none" }])
|
|
4794
4797
|
}, [
|
|
4795
|
-
y(
|
|
4798
|
+
y(gt, {
|
|
4796
4799
|
ref_key: "monacoEditorRef",
|
|
4797
4800
|
ref: n,
|
|
4798
4801
|
language: "lua",
|
|
@@ -4803,10 +4806,10 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4803
4806
|
_: 1
|
|
4804
4807
|
}, 8, ["modelValue"])
|
|
4805
4808
|
]),
|
|
4806
|
-
y(
|
|
4809
|
+
y(wo, {
|
|
4807
4810
|
visible: l.value,
|
|
4808
4811
|
"onUpdate:visible": b[9] || (b[9] = (M) => l.value = M),
|
|
4809
|
-
factorType:
|
|
4812
|
+
factorType: a.value,
|
|
4810
4813
|
data: (Ie = u.config.factorDescriptions) == null ? void 0 : Ie.filter((M) => [1, 3].includes(M.type))
|
|
4811
4814
|
}, null, 8, ["visible", "factorType", "data"]),
|
|
4812
4815
|
y(K0, {
|
|
@@ -4816,20 +4819,20 @@ const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "fact
|
|
|
4816
4819
|
], 64);
|
|
4817
4820
|
};
|
|
4818
4821
|
}
|
|
4819
|
-
},
|
|
4820
|
-
const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u),
|
|
4822
|
+
}, Uo = /* @__PURE__ */ ke(Po, [["__scopeId", "data-v-deab9c48"]]);
|
|
4823
|
+
const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
4821
4824
|
key: 0,
|
|
4822
4825
|
class: "common-indicator"
|
|
4823
|
-
},
|
|
4826
|
+
}, jo = { class: "indicator" }, Zo = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("div", { class: "title" }, [
|
|
4824
4827
|
/* @__PURE__ */ V("span", null, "常用指标: "),
|
|
4825
4828
|
/* @__PURE__ */ V("span", null, "不限")
|
|
4826
|
-
], -1)),
|
|
4829
|
+
], -1)), Ho = { class: "options" }, Go = ["onClick"], Jo = { class: "tags" }, Wo = ["onClick"], Qo = { style: { "font-size": "18px" } }, Yo = {
|
|
4827
4830
|
key: 0,
|
|
4828
4831
|
class: "out-box"
|
|
4829
|
-
},
|
|
4832
|
+
}, Ko = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("span", null, "自定义: ", -1)), Xo = {
|
|
4830
4833
|
key: 0,
|
|
4831
4834
|
class: "convenient-option-box"
|
|
4832
|
-
},
|
|
4835
|
+
}, ua = { class: "out-box" }, ea = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("span", null, "自定义: ", -1)), ta = { key: 0 }, na = { key: 0 }, ra = { key: 0 }, oa = { key: 1 }, aa = { class: "tFeaturelncomes-option-box" }, la = { class: "tFeaturelncomes-out-box" }, ia = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("span", null, "自定义: ", -1)), ca = { key: 2 }, sa = { key: 3 }, da = { key: 4 }, fa = { key: 5 }, pa = { key: 6 }, ba = { style: { display: "flex", "align-items": "center" } }, ha = { key: 7 }, ma = { class: "dialog-footer" }, xa = {
|
|
4833
4836
|
__name: "index",
|
|
4834
4837
|
props: /* @__PURE__ */ ju({
|
|
4835
4838
|
config: { type: Object, default: () => {
|
|
@@ -4855,10 +4858,10 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
4855
4858
|
{ label: "保留意见", value: 2 },
|
|
4856
4859
|
{ label: "否定意见", value: 3 },
|
|
4857
4860
|
{ label: "无法表示意见", value: 4 }
|
|
4858
|
-
], n = Zu(u, "data"), r = u,
|
|
4861
|
+
], n = Zu(u, "data"), r = u, o = eu(!1), l = Q(() => {
|
|
4859
4862
|
var A;
|
|
4860
4863
|
return (A = r.data.find((h) => h.radioType === "1")) == null ? void 0 : A.key;
|
|
4861
|
-
}),
|
|
4864
|
+
}), a = Q(() => {
|
|
4862
4865
|
let A = [];
|
|
4863
4866
|
return r.varietyMarket === null && !r.commonOption.length ? A = r.config.options : (A = r.config.options, r.varietyMarket && (A = A.filter(({ parent: h }) => h.varietyMarketIds.includes(r.varietyMarket))), r.commonOption.length && (A = A.filter(({ parent: h }) => {
|
|
4864
4867
|
const { commonOptionIds: k } = h;
|
|
@@ -4934,7 +4937,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
4934
4937
|
// 默认排名
|
|
4935
4938
|
};
|
|
4936
4939
|
}
|
|
4937
|
-
|
|
4940
|
+
o.value = !0;
|
|
4938
4941
|
}, s = () => {
|
|
4939
4942
|
var h, k;
|
|
4940
4943
|
switch (i.value.key) {
|
|
@@ -5021,9 +5024,9 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5021
5024
|
}
|
|
5022
5025
|
}
|
|
5023
5026
|
const A = n.value.findIndex(({ key: b }) => b === i.value.key);
|
|
5024
|
-
A === -1 ? n.value.push(i.value) : n.value.splice(A, 1, i.value),
|
|
5027
|
+
A === -1 ? n.value.push(i.value) : n.value.splice(A, 1, i.value), o.value = !1;
|
|
5025
5028
|
}, p = (A) => {
|
|
5026
|
-
c.value =
|
|
5029
|
+
c.value = a.value.find(({ key: h }) => h === A.key), i.value = JSON.parse(JSON.stringify(A)), o.value = !0;
|
|
5027
5030
|
}, m = (A) => {
|
|
5028
5031
|
n.value.splice(A, 1);
|
|
5029
5032
|
}, d = (A) => {
|
|
@@ -5074,27 +5077,27 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5074
5077
|
}
|
|
5075
5078
|
};
|
|
5076
5079
|
vu(
|
|
5077
|
-
() =>
|
|
5080
|
+
() => a.value,
|
|
5078
5081
|
() => {
|
|
5079
|
-
n.value.length && (n.value = n.value.filter(({ key: A }) =>
|
|
5082
|
+
n.value.length && (n.value = n.value.filter(({ key: A }) => a.value.find((h) => h.key === A)));
|
|
5080
5083
|
}
|
|
5081
5084
|
);
|
|
5082
5085
|
const $ = () => {
|
|
5083
5086
|
i.value.radio = null, i.value.rankRange = [null, null];
|
|
5084
5087
|
};
|
|
5085
5088
|
return (A, h) => {
|
|
5086
|
-
const k =
|
|
5087
|
-
return u.config.show &&
|
|
5088
|
-
V("div",
|
|
5089
|
-
|
|
5090
|
-
V("div",
|
|
5091
|
-
(E(!0), S(z, null, Z(
|
|
5089
|
+
const k = h0, b = D0, x = ve, g = d0, _ = p0, I = fe, v = pe, T = ye, F = f0, q = ge;
|
|
5090
|
+
return u.config.show && a.value.length ? (E(), S("div", No, [
|
|
5091
|
+
V("div", jo, [
|
|
5092
|
+
Zo,
|
|
5093
|
+
V("div", Ho, [
|
|
5094
|
+
(E(!0), S(z, null, Z(a.value, (B) => (E(), S("span", {
|
|
5092
5095
|
key: B.key,
|
|
5093
5096
|
onClick: (C) => f(B)
|
|
5094
|
-
}, uu(B.label), 9,
|
|
5097
|
+
}, uu(B.label), 9, Go))), 128))
|
|
5095
5098
|
])
|
|
5096
5099
|
]),
|
|
5097
|
-
V("div",
|
|
5100
|
+
V("div", Jo, [
|
|
5098
5101
|
(E(!0), S(z, null, Z(n.value, (B, C) => (E(), P(k, {
|
|
5099
5102
|
closable: "",
|
|
5100
5103
|
type: "info",
|
|
@@ -5105,21 +5108,21 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5105
5108
|
V("span", {
|
|
5106
5109
|
class: "edit",
|
|
5107
5110
|
onClick: (N) => p(B)
|
|
5108
|
-
}, "编辑", 8,
|
|
5111
|
+
}, "编辑", 8, Wo)
|
|
5109
5112
|
]),
|
|
5110
5113
|
_: 2
|
|
5111
5114
|
}, 1032, ["onClose"]))), 256))
|
|
5112
5115
|
]),
|
|
5113
5116
|
y(q, {
|
|
5114
|
-
modelValue:
|
|
5115
|
-
"onUpdate:modelValue": h[26] || (h[26] = (B) =>
|
|
5117
|
+
modelValue: o.value,
|
|
5118
|
+
"onUpdate:modelValue": h[26] || (h[26] = (B) => o.value = B),
|
|
5116
5119
|
title: c.value.label,
|
|
5117
5120
|
width: "600",
|
|
5118
5121
|
"align-center": "",
|
|
5119
5122
|
"destroy-on-close": ""
|
|
5120
5123
|
}, Ku({
|
|
5121
5124
|
footer: D(() => [
|
|
5122
|
-
V("div",
|
|
5125
|
+
V("div", ma, [
|
|
5123
5126
|
y(_, {
|
|
5124
5127
|
type: "primary",
|
|
5125
5128
|
onClick: s
|
|
@@ -5134,8 +5137,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5134
5137
|
default: D(() => {
|
|
5135
5138
|
var B;
|
|
5136
5139
|
return [
|
|
5137
|
-
c.value.type === void 0 && i.value.radioType === "1" ? (E(), S("div",
|
|
5138
|
-
|
|
5140
|
+
c.value.type === void 0 && i.value.radioType === "1" ? (E(), S("div", Yo, [
|
|
5141
|
+
Ko,
|
|
5139
5142
|
y(g, {
|
|
5140
5143
|
modelValue: i.value.rankRange[0],
|
|
5141
5144
|
"onUpdate:modelValue": h[2] || (h[2] = (C) => i.value.rankRange[0] = C),
|
|
@@ -5148,7 +5151,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5148
5151
|
style: { flex: "1" }
|
|
5149
5152
|
}, null, 8, ["modelValue"])
|
|
5150
5153
|
])) : c.value.type === void 0 ? (E(), S(z, { key: 1 }, [
|
|
5151
|
-
(B = c.value.convenientOptions) != null && B.length ? (E(), S("div",
|
|
5154
|
+
(B = c.value.convenientOptions) != null && B.length ? (E(), S("div", Xo, [
|
|
5152
5155
|
(E(!0), S(z, null, Z(c.value.convenientOptions, (C) => (E(), P(_, {
|
|
5153
5156
|
key: C.text,
|
|
5154
5157
|
onClick: (N) => d(C)
|
|
@@ -5159,8 +5162,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5159
5162
|
_: 2
|
|
5160
5163
|
}, 1032, ["onClick"]))), 128))
|
|
5161
5164
|
])) : U("", !0),
|
|
5162
|
-
V("div",
|
|
5163
|
-
|
|
5165
|
+
V("div", ua, [
|
|
5166
|
+
ea,
|
|
5164
5167
|
y(g, {
|
|
5165
5168
|
modelValue: i.value.range[0],
|
|
5166
5169
|
"onUpdate:modelValue": h[5] || (h[5] = (C) => i.value.range[0] = C),
|
|
@@ -5169,7 +5172,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5169
5172
|
c.value.unitOptions.length ? {
|
|
5170
5173
|
name: "append",
|
|
5171
5174
|
fn: D(() => [
|
|
5172
|
-
c.value.unitOptions.length === 1 ? (E(), S("span",
|
|
5175
|
+
c.value.unitOptions.length === 1 ? (E(), S("span", ta, uu(i.value.unit[0]), 1)) : (E(), P(v, {
|
|
5173
5176
|
key: 1,
|
|
5174
5177
|
modelValue: i.value.unit[0],
|
|
5175
5178
|
"onUpdate:modelValue": h[4] || (h[4] = (C) => i.value.unit[0] = C),
|
|
@@ -5196,7 +5199,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5196
5199
|
c.value.unitOptions.length ? {
|
|
5197
5200
|
name: "append",
|
|
5198
5201
|
fn: D(() => [
|
|
5199
|
-
c.value.unitOptions.length === 1 ? (E(), S("span",
|
|
5202
|
+
c.value.unitOptions.length === 1 ? (E(), S("span", na, uu(i.value.unit[1]), 1)) : (E(), P(v, {
|
|
5200
5203
|
key: 1,
|
|
5201
5204
|
modelValue: i.value.unit[1],
|
|
5202
5205
|
"onUpdate:modelValue": h[6] || (h[6] = (C) => i.value.unit[1] = C),
|
|
@@ -5216,7 +5219,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5216
5219
|
]), 1032, ["modelValue"])
|
|
5217
5220
|
])
|
|
5218
5221
|
], 64)) : (E(), S(z, { key: 2 }, [
|
|
5219
|
-
c.value.key === "st" ? (E(), S("div",
|
|
5222
|
+
c.value.key === "st" ? (E(), S("div", ra, [
|
|
5220
5223
|
y(x, {
|
|
5221
5224
|
modelValue: i.value.st,
|
|
5222
5225
|
"onUpdate:modelValue": h[8] || (h[8] = (C) => i.value.st = C)
|
|
@@ -5234,8 +5237,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5234
5237
|
_: 1
|
|
5235
5238
|
}, 8, ["modelValue"])
|
|
5236
5239
|
])) : U("", !0),
|
|
5237
|
-
c.value.key === "tFeaturelncomes" ? (E(), S("div",
|
|
5238
|
-
V("div",
|
|
5240
|
+
c.value.key === "tFeaturelncomes" ? (E(), S("div", oa, [
|
|
5241
|
+
V("div", aa, [
|
|
5239
5242
|
y(_, {
|
|
5240
5243
|
onClick: h[9] || (h[9] = (C) => w("≤0"))
|
|
5241
5244
|
}, {
|
|
@@ -5277,8 +5280,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5277
5280
|
_: 1
|
|
5278
5281
|
})
|
|
5279
5282
|
]),
|
|
5280
|
-
V("div",
|
|
5281
|
-
|
|
5283
|
+
V("div", la, [
|
|
5284
|
+
ia,
|
|
5282
5285
|
V("div", null, [
|
|
5283
5286
|
y(F, {
|
|
5284
5287
|
modelValue: i.value.withFewYears,
|
|
@@ -5301,7 +5304,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5301
5304
|
])
|
|
5302
5305
|
])
|
|
5303
5306
|
])) : U("", !0),
|
|
5304
|
-
c.value.key === "priceLevels" ? (E(), S("div",
|
|
5307
|
+
c.value.key === "priceLevels" ? (E(), S("div", ca, [
|
|
5305
5308
|
y(v, {
|
|
5306
5309
|
modelValue: i.value.priceLevels,
|
|
5307
5310
|
"onUpdate:modelValue": h[17] || (h[17] = (C) => i.value.priceLevels = C),
|
|
@@ -5320,7 +5323,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5320
5323
|
_: 1
|
|
5321
5324
|
}, 8, ["modelValue"])
|
|
5322
5325
|
])) : U("", !0),
|
|
5323
|
-
c.value.key === "peTtmLevels" ? (E(), S("div",
|
|
5326
|
+
c.value.key === "peTtmLevels" ? (E(), S("div", sa, [
|
|
5324
5327
|
y(v, {
|
|
5325
5328
|
modelValue: i.value.peTtmLevels,
|
|
5326
5329
|
"onUpdate:modelValue": h[18] || (h[18] = (C) => i.value.peTtmLevels = C),
|
|
@@ -5339,7 +5342,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5339
5342
|
_: 1
|
|
5340
5343
|
}, 8, ["modelValue"])
|
|
5341
5344
|
])) : U("", !0),
|
|
5342
|
-
c.value.key === "optionsCpType" ? (E(), S("div",
|
|
5345
|
+
c.value.key === "optionsCpType" ? (E(), S("div", da, [
|
|
5343
5346
|
y(x, {
|
|
5344
5347
|
modelValue: i.value.optionsCpType,
|
|
5345
5348
|
"onUpdate:modelValue": h[19] || (h[19] = (C) => i.value.optionsCpType = C)
|
|
@@ -5357,7 +5360,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5357
5360
|
_: 1
|
|
5358
5361
|
}, 8, ["modelValue"])
|
|
5359
5362
|
])) : U("", !0),
|
|
5360
|
-
c.value.key === "perVolumn" ? (E(), S("div",
|
|
5363
|
+
c.value.key === "perVolumn" ? (E(), S("div", fa, [
|
|
5361
5364
|
y(x, {
|
|
5362
5365
|
modelValue: i.value.radio,
|
|
5363
5366
|
"onUpdate:modelValue": h[20] || (h[20] = (C) => i.value.radio = C)
|
|
@@ -5393,7 +5396,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5393
5396
|
_: 1
|
|
5394
5397
|
}, 8, ["modelValue"])
|
|
5395
5398
|
])) : U("", !0),
|
|
5396
|
-
c.value.key === "mainFlow" ? (E(), S("div",
|
|
5399
|
+
c.value.key === "mainFlow" ? (E(), S("div", pa, [
|
|
5397
5400
|
y(x, {
|
|
5398
5401
|
modelValue: i.value.radio,
|
|
5399
5402
|
"onUpdate:modelValue": h[22] || (h[22] = (C) => i.value.radio = C)
|
|
@@ -5426,7 +5429,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5426
5429
|
]),
|
|
5427
5430
|
_: 1
|
|
5428
5431
|
}, 8, ["modelValue"]),
|
|
5429
|
-
V("div",
|
|
5432
|
+
V("div", ba, [
|
|
5430
5433
|
V("span", null, uu(i.value.radioType === "0" ? "涨幅范围" : "排名范围") + ": ", 1),
|
|
5431
5434
|
y(g, {
|
|
5432
5435
|
modelValue: i.value.rankRange[0],
|
|
@@ -5441,7 +5444,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5441
5444
|
}, null, 8, ["modelValue"])
|
|
5442
5445
|
])
|
|
5443
5446
|
])) : U("", !0),
|
|
5444
|
-
c.value.key === "auditOpinionType" ? (E(), S("div",
|
|
5447
|
+
c.value.key === "auditOpinionType" ? (E(), S("div", ha, [
|
|
5445
5448
|
y(x, {
|
|
5446
5449
|
modelValue: i.value.enumType,
|
|
5447
5450
|
"onUpdate:modelValue": h[25] || (h[25] = (C) => i.value.enumType = C)
|
|
@@ -5464,7 +5467,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5464
5467
|
c.value.showRankType ? {
|
|
5465
5468
|
name: "header",
|
|
5466
5469
|
fn: D(() => [
|
|
5467
|
-
V("span",
|
|
5470
|
+
V("span", Qo, uu(c.value.label), 1),
|
|
5468
5471
|
y(x, {
|
|
5469
5472
|
modelValue: i.value.radioType,
|
|
5470
5473
|
"onUpdate:modelValue": h[0] || (h[0] = (B) => i.value.radioType = B),
|
|
@@ -5515,26 +5518,26 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
|
5515
5518
|
])) : U("", !0);
|
|
5516
5519
|
};
|
|
5517
5520
|
}
|
|
5518
|
-
},
|
|
5519
|
-
const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u),
|
|
5521
|
+
}, _a = /* @__PURE__ */ ke(xa, [["__scopeId", "data-v-3e69da40"]]);
|
|
5522
|
+
const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "variety-search" }, ka = {
|
|
5520
5523
|
key: 0,
|
|
5521
5524
|
class: "variety-search-row"
|
|
5522
|
-
},
|
|
5525
|
+
}, ya = { class: "title" }, va = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "品种市场: ", -1)), Ca = {
|
|
5523
5526
|
key: 1,
|
|
5524
5527
|
class: "variety-search-row"
|
|
5525
|
-
},
|
|
5528
|
+
}, Ea = { class: "title" }, Da = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "常用选项: ", -1)), Fa = {
|
|
5526
5529
|
key: 2,
|
|
5527
5530
|
class: "variety-search-row"
|
|
5528
|
-
},
|
|
5531
|
+
}, Aa = { class: "title" }, wa = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "上市板块: ", -1)), Ta = {
|
|
5529
5532
|
key: 3,
|
|
5530
5533
|
class: "variety-search-row"
|
|
5531
|
-
},
|
|
5534
|
+
}, Sa = { class: "title" }, Ia = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "自定标签: ", -1)), Oa = {
|
|
5532
5535
|
key: 4,
|
|
5533
5536
|
class: "variety-search-row"
|
|
5534
|
-
},
|
|
5537
|
+
}, Va = { class: "title" }, $a = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "价差转换: ", -1)), Ra = {
|
|
5535
5538
|
key: 5,
|
|
5536
5539
|
class: "variety-search-row"
|
|
5537
|
-
},
|
|
5540
|
+
}, Ma = { class: "title" }, qa = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "因子筛选: ", -1)), Ba = {
|
|
5538
5541
|
__name: "index",
|
|
5539
5542
|
props: /* @__PURE__ */ ju({ config: { type: Object, default: {} } }, {
|
|
5540
5543
|
searchData: {},
|
|
@@ -5573,13 +5576,13 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5573
5576
|
const m = Be[p], d = t.config[p] ?? {}, w = { ...m, ...d };
|
|
5574
5577
|
s[p] = w;
|
|
5575
5578
|
}), s;
|
|
5576
|
-
}),
|
|
5579
|
+
}), o = Q(() => r.value.varietyMarket.options), l = Q(() => {
|
|
5577
5580
|
const { varietyMarket: s } = n.value;
|
|
5578
|
-
return s ?
|
|
5581
|
+
return s ? o.value.find(({ value: m }) => m === s).memo.reduce((m, d) => {
|
|
5579
5582
|
const w = r.value.commonOption.options.find(($) => $.value === d);
|
|
5580
5583
|
return w && m.push(w), m;
|
|
5581
5584
|
}, []) : r.value.commonOption.options;
|
|
5582
|
-
}),
|
|
5585
|
+
}), a = Q(() => {
|
|
5583
5586
|
const { varietyMarket: s } = n.value;
|
|
5584
5587
|
return s ? r.value.marketIds.options.filter((p) => p.varietyMarketIds.includes(s)) : r.value.marketIds.options;
|
|
5585
5588
|
}), c = Q(() => r.value.customTag.options), i = Q(() => r.value.jcTranslate.jcOptions), f = (s) => {
|
|
@@ -5629,7 +5632,7 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5629
5632
|
(p = n.value.commonOption) != null && p.length && (n.value.commonOption = n.value.commonOption.filter((m) => s.find(({ value: d }) => d === m)));
|
|
5630
5633
|
}
|
|
5631
5634
|
), vu(
|
|
5632
|
-
() =>
|
|
5635
|
+
() => a.value,
|
|
5633
5636
|
(s) => {
|
|
5634
5637
|
var p;
|
|
5635
5638
|
(p = n.value.marketIds) != null && p.length && (n.value.marketIds = n.value.marketIds.filter((m) => s.find(({ value: d }) => d === m)));
|
|
@@ -5838,11 +5841,11 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5838
5841
|
}
|
|
5839
5842
|
}), (s, p) => {
|
|
5840
5843
|
var k, b, x, g, _, I;
|
|
5841
|
-
const m = ye, d = ve, w =
|
|
5842
|
-
return E(), S("div",
|
|
5843
|
-
(k = r.value.varietyMarket) != null && k.show ? (E(), S("div",
|
|
5844
|
-
V("div",
|
|
5845
|
-
|
|
5844
|
+
const m = ye, d = ve, w = ot, $ = at, A = fe, h = pe;
|
|
5845
|
+
return E(), S("div", ga, [
|
|
5846
|
+
(k = r.value.varietyMarket) != null && k.show ? (E(), S("div", ka, [
|
|
5847
|
+
V("div", ya, [
|
|
5848
|
+
va,
|
|
5846
5849
|
V("span", {
|
|
5847
5850
|
onClick: p[0] || (p[0] = (v) => f("varietyMarket"))
|
|
5848
5851
|
}, "不限")
|
|
@@ -5853,7 +5856,7 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5853
5856
|
size: "small"
|
|
5854
5857
|
}, {
|
|
5855
5858
|
default: D(() => [
|
|
5856
|
-
(E(!0), S(z, null, Z(
|
|
5859
|
+
(E(!0), S(z, null, Z(o.value, ({ label: v, value: T }) => (E(), P(m, {
|
|
5857
5860
|
label: v,
|
|
5858
5861
|
value: T,
|
|
5859
5862
|
key: T
|
|
@@ -5862,9 +5865,9 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5862
5865
|
_: 1
|
|
5863
5866
|
}, 8, ["modelValue"])
|
|
5864
5867
|
])) : U("", !0),
|
|
5865
|
-
(b = r.value.commonOption) != null && b.show && l.value.length ? (E(), S("div",
|
|
5866
|
-
V("div",
|
|
5867
|
-
|
|
5868
|
+
(b = r.value.commonOption) != null && b.show && l.value.length ? (E(), S("div", Ca, [
|
|
5869
|
+
V("div", Ea, [
|
|
5870
|
+
Da,
|
|
5868
5871
|
V("span", {
|
|
5869
5872
|
onClick: p[2] || (p[2] = (v) => f("commonOption"))
|
|
5870
5873
|
}, "不限")
|
|
@@ -5884,9 +5887,9 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5884
5887
|
_: 1
|
|
5885
5888
|
}, 8, ["modelValue"])
|
|
5886
5889
|
])) : U("", !0),
|
|
5887
|
-
(x = r.value.marketIds) != null && x.show &&
|
|
5888
|
-
V("div",
|
|
5889
|
-
|
|
5890
|
+
(x = r.value.marketIds) != null && x.show && a.value.length ? (E(), S("div", Fa, [
|
|
5891
|
+
V("div", Aa, [
|
|
5892
|
+
wa,
|
|
5890
5893
|
V("span", {
|
|
5891
5894
|
onClick: p[4] || (p[4] = (v) => f("marketIds"))
|
|
5892
5895
|
}, "不限")
|
|
@@ -5897,7 +5900,7 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5897
5900
|
size: "small"
|
|
5898
5901
|
}, {
|
|
5899
5902
|
default: D(() => [
|
|
5900
|
-
(E(!0), S(z, null, Z(
|
|
5903
|
+
(E(!0), S(z, null, Z(a.value, ({ label: v, value: T }) => (E(), P(w, {
|
|
5901
5904
|
label: v,
|
|
5902
5905
|
value: T,
|
|
5903
5906
|
key: T
|
|
@@ -5906,9 +5909,9 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5906
5909
|
_: 1
|
|
5907
5910
|
}, 8, ["modelValue"])
|
|
5908
5911
|
])) : U("", !0),
|
|
5909
|
-
(g = r.value.customTag) != null && g.show && c.value.length ? (E(), S("div",
|
|
5910
|
-
V("div",
|
|
5911
|
-
|
|
5912
|
+
(g = r.value.customTag) != null && g.show && c.value.length ? (E(), S("div", Ta, [
|
|
5913
|
+
V("div", Sa, [
|
|
5914
|
+
Ia,
|
|
5912
5915
|
V("span", {
|
|
5913
5916
|
onClick: p[6] || (p[6] = (v) => f("customTag"))
|
|
5914
5917
|
}, "不限")
|
|
@@ -5928,9 +5931,9 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5928
5931
|
_: 1
|
|
5929
5932
|
}, 8, ["modelValue"])
|
|
5930
5933
|
])) : U("", !0),
|
|
5931
|
-
(_ = r.value.jcTranslate) != null && _.show ? (E(), S("div",
|
|
5932
|
-
V("div",
|
|
5933
|
-
$
|
|
5934
|
+
(_ = r.value.jcTranslate) != null && _.show ? (E(), S("div", Oa, [
|
|
5935
|
+
V("div", Va, [
|
|
5936
|
+
$a,
|
|
5934
5937
|
V("span", {
|
|
5935
5938
|
onClick: p[8] || (p[8] = (v) => f("jcTranslate"))
|
|
5936
5939
|
}, "不限")
|
|
@@ -5975,23 +5978,23 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
5975
5978
|
]),
|
|
5976
5979
|
_: 1
|
|
5977
5980
|
}, 8, ["modelValue"]), [
|
|
5978
|
-
[
|
|
5981
|
+
[s0, n.value.jcTranslate.type === 1]
|
|
5979
5982
|
])
|
|
5980
5983
|
])) : U("", !0),
|
|
5981
|
-
(I = r.value.factorScreen) != null && I.show ? (E(), S("div",
|
|
5982
|
-
V("div",
|
|
5983
|
-
|
|
5984
|
+
(I = r.value.factorScreen) != null && I.show ? (E(), S("div", Ra, [
|
|
5985
|
+
V("div", Ma, [
|
|
5986
|
+
qa,
|
|
5984
5987
|
V("span", {
|
|
5985
5988
|
onClick: p[11] || (p[11] = (v) => f("factorScreen"))
|
|
5986
5989
|
}, "不限")
|
|
5987
5990
|
]),
|
|
5988
|
-
y(
|
|
5991
|
+
y(Uo, {
|
|
5989
5992
|
data: n.value.factorScreen,
|
|
5990
5993
|
"onUpdate:data": p[12] || (p[12] = (v) => n.value.factorScreen = v),
|
|
5991
5994
|
config: r.value.factorScreen
|
|
5992
5995
|
}, null, 8, ["data", "config"])
|
|
5993
5996
|
])) : U("", !0),
|
|
5994
|
-
y(
|
|
5997
|
+
y(_a, {
|
|
5995
5998
|
data: n.value.commonIndicator,
|
|
5996
5999
|
"onUpdate:data": p[13] || (p[13] = (v) => n.value.commonIndicator = v),
|
|
5997
6000
|
varietyMarket: n.value.varietyMarket,
|
|
@@ -6001,11 +6004,11 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "vari
|
|
|
6001
6004
|
]);
|
|
6002
6005
|
};
|
|
6003
6006
|
}
|
|
6004
|
-
},
|
|
6007
|
+
}, za = /* @__PURE__ */ ke(Ba, [["__scopeId", "data-v-efd872de"]]), wl = {
|
|
6005
6008
|
install(u) {
|
|
6006
|
-
u.component("st-varietySearch",
|
|
6009
|
+
u.component("st-varietySearch", za);
|
|
6007
6010
|
}
|
|
6008
6011
|
};
|
|
6009
6012
|
export {
|
|
6010
|
-
|
|
6013
|
+
wl as default
|
|
6011
6014
|
};
|