st-comp 0.0.281 → 0.0.282
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/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +399 -397
- package/es/VarietySearch.cjs +8 -8
- package/es/VarietySearch.js +360 -347
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +1 -1
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +111 -111
- package/lib/{index-7282d3be.js → index-2b2824f6.js} +5777 -5762
- package/lib/{python-418be57d.js → python-b8d31c7a.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/es/VarietySearch.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { E as ve, a as _e } from "./el-select-a573c78b.js";
|
|
2
2
|
import { o as S0, E as It, a as O0 } from "./el-checkbox-b5ac7f04.js";
|
|
3
|
-
import { k as lt, s as
|
|
4
|
-
import { U as St, C as
|
|
3
|
+
import { k as lt, s as qe, i as V0, b as Bu, a as rt, q as ot, c as Be, C as at, u as Ku, N as M0, w as $t, n as je } from "./base-dd156b8e.js";
|
|
4
|
+
import { U as St, C as Ze, u as R0, E as z0 } from "./el-popper-0454c8e8.js";
|
|
5
5
|
import { h as Ot, e as q0, g as B0, d as L0, f as P0 } from "./use-form-item-784142b4.js";
|
|
6
6
|
import { u as U0 } from "./index-de9ad85c.js";
|
|
7
|
-
import { ref as
|
|
7
|
+
import { ref as G, onMounted as He, watch as Cu, inject as Lu, computed as eu, defineComponent as Xu, openBlock as g, createElementBlock as I, normalizeClass as iu, unref as $, createElementVNode as A, withDirectives as Zu, isRef as Vt, withModifiers as me, vModelRadio as Mt, renderSlot as Hu, createTextVNode as q, toDisplayString as X, nextTick as Ru, normalizeStyle as Rt, provide as zt, reactive as qt, toRefs as N0, Fragment as U, renderList as J, createBlock as P, resolveDynamicComponent as j0, mergeProps as Le, createCommentVNode as j, toRef as Z0, createVNode as h, normalizeProps as H0, mergeModels as $u, useModel as Pu, withCtx as x, resolveComponent as se, vShow as Pe, createSlots as ce } from "vue";
|
|
8
8
|
import { a as G0 } from "./index-a181f161.js";
|
|
9
9
|
import { i as J0 } from "./index-9573f74b.js";
|
|
10
10
|
import "./el-scrollbar-0a42c1d0.js";
|
|
@@ -12,10 +12,10 @@ import "./el-tag-2d8a3fe7.js";
|
|
|
12
12
|
import "./el-checkbox-group-4ed993c7.js";
|
|
13
13
|
import { B as W0, C as ju, i as Y0, b as Q0, c as be, D as K0, E as Bt, f as X0, a as un } from "./index-6a52dc7c.js";
|
|
14
14
|
import { a as Lt, E as Pt } from "./el-form-item-2be6b683.js";
|
|
15
|
-
import { E as
|
|
15
|
+
import { E as ke } from "./el-input-d23f5442.js";
|
|
16
16
|
import { E as Ut } from "./index-d9379af4.js";
|
|
17
|
-
import { E as
|
|
18
|
-
import { E as
|
|
17
|
+
import { E as ye } from "./el-button-ee9fe159.js";
|
|
18
|
+
import { E as Ce } from "./index-c09fc6f5.js";
|
|
19
19
|
import { E as ue } from "./el-dialog-060b3735.js";
|
|
20
20
|
import { E as en } from "./el-empty-552baf04.js";
|
|
21
21
|
import { E as Nt } from "./el-input-number-484fb184.js";
|
|
@@ -52,7 +52,7 @@ import "./el-autocomplete-419bfbcf.js";
|
|
|
52
52
|
const cn = (u, e = 0) => {
|
|
53
53
|
if (e === 0)
|
|
54
54
|
return u;
|
|
55
|
-
const t =
|
|
55
|
+
const t = G(lt(e) && !!e.initVal);
|
|
56
56
|
let r = null;
|
|
57
57
|
const l = (a) => {
|
|
58
58
|
if (V0(a)) {
|
|
@@ -63,9 +63,9 @@ const cn = (u, e = 0) => {
|
|
|
63
63
|
t.value = u.value;
|
|
64
64
|
}, a);
|
|
65
65
|
}, n = (a) => {
|
|
66
|
-
a === "leading" ?
|
|
66
|
+
a === "leading" ? qe(e) ? l(e) : l(e.leading) : lt(e) ? l(e.trailing) : t.value = !1;
|
|
67
67
|
};
|
|
68
|
-
return
|
|
68
|
+
return He(() => n("leading")), Cu(() => u.value, (a) => {
|
|
69
69
|
n(a ? "leading" : "trailing");
|
|
70
70
|
}), t;
|
|
71
71
|
}, Zt = Bu({
|
|
@@ -127,8 +127,8 @@ const cn = (u, e = 0) => {
|
|
|
127
127
|
*/
|
|
128
128
|
border: Boolean
|
|
129
129
|
}), Ht = {
|
|
130
|
-
[St]: (u) => rt(u) ||
|
|
131
|
-
[
|
|
130
|
+
[St]: (u) => rt(u) || qe(u) || ot(u),
|
|
131
|
+
[Ze]: (u) => rt(u) || qe(u) || ot(u)
|
|
132
132
|
}, Gt = Symbol("radioGroupKey"), fn = Bu({ ...Zt }), Jt = {
|
|
133
133
|
label: "label",
|
|
134
134
|
value: "value",
|
|
@@ -191,9 +191,9 @@ const cn = (u, e = 0) => {
|
|
|
191
191
|
type: Boolean,
|
|
192
192
|
default: !0
|
|
193
193
|
},
|
|
194
|
-
options: { type:
|
|
194
|
+
options: { type: Be(Array) },
|
|
195
195
|
props: {
|
|
196
|
-
type:
|
|
196
|
+
type: Be(Object),
|
|
197
197
|
default: () => Jt
|
|
198
198
|
},
|
|
199
199
|
type: {
|
|
@@ -203,14 +203,14 @@ const cn = (u, e = 0) => {
|
|
|
203
203
|
},
|
|
204
204
|
...R0(["ariaLabel"])
|
|
205
205
|
}), bn = Ht, Wt = (u, e) => {
|
|
206
|
-
const t =
|
|
206
|
+
const t = G(), r = Lu(Gt, void 0), l = eu(() => !!r), n = eu(() => at(u.value) ? u.label : u.value), a = eu({
|
|
207
207
|
get() {
|
|
208
208
|
return l.value ? r.modelValue : u.modelValue;
|
|
209
209
|
},
|
|
210
210
|
set(d) {
|
|
211
211
|
l.value ? r.changeEvent(d) : e && e("update:modelValue", d), t.value.checked = u.modelValue === n.value;
|
|
212
212
|
}
|
|
213
|
-
}), o = q0(eu(() => r == null ? void 0 : r.size)), i = B0(eu(() => r == null ? void 0 : r.disabled)), s =
|
|
213
|
+
}), o = q0(eu(() => r == null ? void 0 : r.size)), i = B0(eu(() => r == null ? void 0 : r.disabled)), s = G(!1), b = eu(() => i.value || l.value && a.value !== n.value ? -1 : 0);
|
|
214
214
|
return U0({
|
|
215
215
|
from: "label act as value",
|
|
216
216
|
replacement: "value",
|
|
@@ -242,10 +242,10 @@ var hn = /* @__PURE__ */ Xu({
|
|
|
242
242
|
setup(u, { emit: e }) {
|
|
243
243
|
const t = u, r = e, l = Ku("radio"), { radioRef: n, radioGroup: a, focus: o, size: i, disabled: s, modelValue: b, actualValue: d } = Wt(t, r);
|
|
244
244
|
function m() {
|
|
245
|
-
Ru(() => r(
|
|
245
|
+
Ru(() => r(Ze, b.value));
|
|
246
246
|
}
|
|
247
247
|
return (c, p) => {
|
|
248
|
-
var
|
|
248
|
+
var E;
|
|
249
249
|
return g(), I("label", { class: iu([
|
|
250
250
|
$(l).b(),
|
|
251
251
|
$(l).is("disabled", $(s)),
|
|
@@ -263,7 +263,7 @@ var hn = /* @__PURE__ */ Xu({
|
|
|
263
263
|
"onUpdate:modelValue": p[0] || (p[0] = (y) => Vt(b) ? b.value = y : null),
|
|
264
264
|
class: iu($(l).e("original")),
|
|
265
265
|
value: $(d),
|
|
266
|
-
name: u.name || ((
|
|
266
|
+
name: u.name || ((E = $(a)) == null ? void 0 : E.name),
|
|
267
267
|
disabled: $(s),
|
|
268
268
|
checked: $(b) === $(d),
|
|
269
269
|
type: "radio",
|
|
@@ -337,24 +337,24 @@ var _n = /* @__PURE__ */ Xu({
|
|
|
337
337
|
props: pn,
|
|
338
338
|
emits: bn,
|
|
339
339
|
setup(u, { emit: e }) {
|
|
340
|
-
const t = u, r = e, l = Ku("radio"), n = G0(), a =
|
|
341
|
-
r(St,
|
|
340
|
+
const t = u, r = e, l = Ku("radio"), n = G0(), a = G(), { formItem: o } = L0(), { inputId: i, isLabeledByFormItem: s } = P0(t, { formItemContext: o }), b = (E) => {
|
|
341
|
+
r(St, E), Ru(() => r(Ze, E));
|
|
342
342
|
};
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
!Array.from(
|
|
343
|
+
He(() => {
|
|
344
|
+
const E = a.value.querySelectorAll("[type=radio]"), y = E[0];
|
|
345
|
+
!Array.from(E).some((f) => f.checked) && y && (y.tabIndex = 0);
|
|
346
346
|
});
|
|
347
347
|
const d = eu(() => t.name || n.value), m = eu(() => ({
|
|
348
348
|
...Jt,
|
|
349
349
|
...t.props
|
|
350
|
-
})), c = (
|
|
350
|
+
})), c = (E) => {
|
|
351
351
|
const { label: y, value: f, disabled: w } = m.value, F = {
|
|
352
|
-
label:
|
|
353
|
-
value:
|
|
354
|
-
disabled:
|
|
352
|
+
label: E[y],
|
|
353
|
+
value: E[f],
|
|
354
|
+
disabled: E[w]
|
|
355
355
|
};
|
|
356
356
|
return {
|
|
357
|
-
...S0(
|
|
357
|
+
...S0(E, [
|
|
358
358
|
y,
|
|
359
359
|
f,
|
|
360
360
|
w
|
|
@@ -366,9 +366,9 @@ var _n = /* @__PURE__ */ Xu({
|
|
|
366
366
|
...N0(t),
|
|
367
367
|
changeEvent: b,
|
|
368
368
|
name: d
|
|
369
|
-
})), Cu(() => t.modelValue, (
|
|
370
|
-
t.validateEvent && !J0(
|
|
371
|
-
}), (
|
|
369
|
+
})), Cu(() => t.modelValue, (E, y) => {
|
|
370
|
+
t.validateEvent && !J0(E, y) && (o == null || o.validate("change").catch(M0));
|
|
371
|
+
}), (E, y) => (g(), I("div", {
|
|
372
372
|
id: $(i),
|
|
373
373
|
ref_key: "radioGroupRef",
|
|
374
374
|
ref: a,
|
|
@@ -376,13 +376,13 @@ var _n = /* @__PURE__ */ Xu({
|
|
|
376
376
|
role: "radiogroup",
|
|
377
377
|
"aria-label": $(s) ? void 0 : u.ariaLabel || "radio-group",
|
|
378
378
|
"aria-labelledby": $(s) ? $(o).labelId : void 0
|
|
379
|
-
}, [Hu(
|
|
379
|
+
}, [Hu(E.$slots, "default", {}, () => [(g(!0), I(U, null, J(u.options, (f, w) => (g(), P(j0(p.value), Le({ key: w }, { ref_for: !0 }, c(f)), null, 16))), 128))])], 10, vn));
|
|
380
380
|
}
|
|
381
381
|
}), Qt = _n;
|
|
382
|
-
const
|
|
382
|
+
const Ee = $t(Yt, {
|
|
383
383
|
RadioButton: Ge,
|
|
384
384
|
RadioGroup: Qt
|
|
385
|
-
}), ee =
|
|
385
|
+
}), ee = je(Qt), Je = je(Ge), kn = Bu({
|
|
386
386
|
/**
|
|
387
387
|
* @description whether showing the animation
|
|
388
388
|
*/
|
|
@@ -411,7 +411,7 @@ const Ce = $t(Yt, {
|
|
|
411
411
|
/**
|
|
412
412
|
* @description rendering delay in milliseconds
|
|
413
413
|
*/
|
|
414
|
-
throttle: { type:
|
|
414
|
+
throttle: { type: Be([Number, Object]) }
|
|
415
415
|
}), yn = Bu({
|
|
416
416
|
/**
|
|
417
417
|
* @description the current rendering skeleton type
|
|
@@ -449,21 +449,21 @@ var Cn = /* @__PURE__ */ Xu({
|
|
|
449
449
|
return e({
|
|
450
450
|
/** @description loading state */
|
|
451
451
|
uiLoading: l
|
|
452
|
-
}), (n, a) => $(l) ? (g(), I("div",
|
|
452
|
+
}), (n, a) => $(l) ? (g(), I("div", Le({
|
|
453
453
|
key: 0,
|
|
454
454
|
class: [$(r).b(), $(r).is("animated", u.animated)]
|
|
455
|
-
}, n.$attrs), [(g(!0), I(
|
|
455
|
+
}, n.$attrs), [(g(!0), I(U, null, J(u.count, (o) => (g(), I(U, { key: o }, [$(l) ? Hu(n.$slots, "template", { key: o }, () => [h(he, {
|
|
456
456
|
class: iu($(r).is("first")),
|
|
457
457
|
variant: "p"
|
|
458
|
-
}, null, 8, ["class"]), (g(!0), I(
|
|
458
|
+
}, null, 8, ["class"]), (g(!0), I(U, null, J(u.rows, (i) => (g(), P(he, {
|
|
459
459
|
key: i,
|
|
460
460
|
class: iu([$(r).e("paragraph"), $(r).is("last", i === u.rows && u.rows > 1)]),
|
|
461
461
|
variant: "p"
|
|
462
|
-
}, null, 8, ["class"]))), 128))]) : j("v-if", !0)], 64))), 128))], 16)) : Hu(n.$slots, "default", H0(
|
|
462
|
+
}, null, 8, ["class"]))), 128))]) : j("v-if", !0)], 64))), 128))], 16)) : Hu(n.$slots, "default", H0(Le({ key: 1 }, n.$attrs)));
|
|
463
463
|
}
|
|
464
464
|
}), Dn = En;
|
|
465
465
|
const Fn = $t(Dn, { SkeletonItem: he });
|
|
466
|
-
|
|
466
|
+
je(he);
|
|
467
467
|
const it = {
|
|
468
468
|
// 品种市场 [选项: 接口]
|
|
469
469
|
varietyMarket: {
|
|
@@ -1161,15 +1161,15 @@ xe.prototype.parse = function(u, e) {
|
|
|
1161
1161
|
const c = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1162
1162
|
if (!c) {
|
|
1163
1163
|
const p = this.hostname.split(/\./);
|
|
1164
|
-
for (let
|
|
1165
|
-
const f = p[
|
|
1164
|
+
for (let E = 0, y = p.length; E < y; E++) {
|
|
1165
|
+
const f = p[E];
|
|
1166
1166
|
if (f && !f.match(mt)) {
|
|
1167
1167
|
let w = "";
|
|
1168
1168
|
for (let F = 0, S = f.length; F < S; F++)
|
|
1169
1169
|
f.charCodeAt(F) > 127 ? w += "x" : w += f[F];
|
|
1170
1170
|
if (!w.match(mt)) {
|
|
1171
|
-
const F = p.slice(0,
|
|
1172
|
-
|
|
1171
|
+
const F = p.slice(0, E), S = p.slice(E + 1), D = f.match(qn);
|
|
1172
|
+
D && (F.push(D[1]), S.unshift(D[2])), S.length && (n = S.join(".") + n), this.hostname = F.join(".");
|
|
1173
1173
|
break;
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
@@ -1207,7 +1207,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1207
1207
|
// prettier-ignore
|
|
1208
1208
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
1209
1209
|
);
|
|
1210
|
-
var
|
|
1210
|
+
var $e;
|
|
1211
1211
|
const jn = /* @__PURE__ */ new Map([
|
|
1212
1212
|
[0, 65533],
|
|
1213
1213
|
// C1 Unicode control character reference replacements
|
|
@@ -1240,7 +1240,7 @@ const jn = /* @__PURE__ */ new Map([
|
|
|
1240
1240
|
[159, 376]
|
|
1241
1241
|
]), Zn = (
|
|
1242
1242
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1243
|
-
(
|
|
1243
|
+
($e = String.fromCodePoint) !== null && $e !== void 0 ? $e : function(u) {
|
|
1244
1244
|
let e = "";
|
|
1245
1245
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
1246
1246
|
}
|
|
@@ -1258,14 +1258,14 @@ var Iu;
|
|
|
1258
1258
|
(function(u) {
|
|
1259
1259
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1260
1260
|
})(Iu || (Iu = {}));
|
|
1261
|
-
function
|
|
1261
|
+
function Ue(u) {
|
|
1262
1262
|
return u >= lu.ZERO && u <= lu.NINE;
|
|
1263
1263
|
}
|
|
1264
1264
|
function Jn(u) {
|
|
1265
1265
|
return u >= lu.UPPER_A && u <= lu.UPPER_F || u >= lu.LOWER_A && u <= lu.LOWER_F;
|
|
1266
1266
|
}
|
|
1267
1267
|
function Wn(u) {
|
|
1268
|
-
return u >= lu.UPPER_A && u <= lu.UPPER_Z || u >= lu.LOWER_A && u <= lu.LOWER_Z ||
|
|
1268
|
+
return u >= lu.UPPER_A && u <= lu.UPPER_Z || u >= lu.LOWER_A && u <= lu.LOWER_Z || Ue(u);
|
|
1269
1269
|
}
|
|
1270
1270
|
function Yn(u) {
|
|
1271
1271
|
return u === lu.EQUALS || Wn(u);
|
|
@@ -1342,7 +1342,7 @@ class Qn {
|
|
|
1342
1342
|
const r = t;
|
|
1343
1343
|
for (; t < e.length; ) {
|
|
1344
1344
|
const l = e.charCodeAt(t);
|
|
1345
|
-
if (
|
|
1345
|
+
if (Ue(l) || Jn(l))
|
|
1346
1346
|
t += 1;
|
|
1347
1347
|
else
|
|
1348
1348
|
return this.addToNumericResult(e, r, t, 16), this.emitNumericEntity(l, 3);
|
|
@@ -1362,7 +1362,7 @@ class Qn {
|
|
|
1362
1362
|
const r = t;
|
|
1363
1363
|
for (; t < e.length; ) {
|
|
1364
1364
|
const l = e.charCodeAt(t);
|
|
1365
|
-
if (
|
|
1365
|
+
if (Ue(l))
|
|
1366
1366
|
t += 1;
|
|
1367
1367
|
else
|
|
1368
1368
|
return this.addToNumericResult(e, r, t, 10), this.emitNumericEntity(l, 2);
|
|
@@ -1525,7 +1525,7 @@ const tl = Object.prototype.hasOwnProperty;
|
|
|
1525
1525
|
function nl(u, e) {
|
|
1526
1526
|
return tl.call(u, e);
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function De(u) {
|
|
1529
1529
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1530
1530
|
if (t) {
|
|
1531
1531
|
if (typeof t != "object")
|
|
@@ -1655,13 +1655,13 @@ function Yu(u) {
|
|
|
1655
1655
|
return !1;
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function Fe(u) {
|
|
1659
1659
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1660
1660
|
}
|
|
1661
1661
|
function gt(u) {
|
|
1662
1662
|
return u === 32 || u === 9 || u === 10 || u === 13;
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function Ae(u) {
|
|
1665
1665
|
let e = 0;
|
|
1666
1666
|
for (; e < u.length && gt(u.charCodeAt(e)); e++)
|
|
1667
1667
|
;
|
|
@@ -1673,8 +1673,8 @@ function Fe(u) {
|
|
|
1673
1673
|
const hl = { mdurl: Bn, ucmicro: Pn }, xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1674
1674
|
__proto__: null,
|
|
1675
1675
|
arrayReplaceAt: ll,
|
|
1676
|
-
asciiTrim:
|
|
1677
|
-
assign:
|
|
1676
|
+
asciiTrim: Ae,
|
|
1677
|
+
assign: De,
|
|
1678
1678
|
escapeHtml: Su,
|
|
1679
1679
|
escapeRE: ml,
|
|
1680
1680
|
fromCodePoint: Gu,
|
|
@@ -1687,7 +1687,7 @@ const hl = { mdurl: Bn, ucmicro: Pn }, xl = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1687
1687
|
isValidEntityCode: Xe,
|
|
1688
1688
|
isWhiteSpace: Ju,
|
|
1689
1689
|
lib: hl,
|
|
1690
|
-
normalizeReference:
|
|
1690
|
+
normalizeReference: Fe,
|
|
1691
1691
|
unescapeAll: qu,
|
|
1692
1692
|
unescapeMd: sl
|
|
1693
1693
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1847,7 +1847,7 @@ Eu.html_inline = function(u, e) {
|
|
|
1847
1847
|
return u[e].content;
|
|
1848
1848
|
};
|
|
1849
1849
|
function Nu() {
|
|
1850
|
-
this.rules =
|
|
1850
|
+
this.rules = De({}, Eu);
|
|
1851
1851
|
}
|
|
1852
1852
|
Nu.prototype.renderAttrs = function(e) {
|
|
1853
1853
|
let t, r, l;
|
|
@@ -2081,7 +2081,7 @@ function Tl(u) {
|
|
|
2081
2081
|
let m = i.level, c = 0;
|
|
2082
2082
|
b.length > 0 && b[0].index === 0 && o > 0 && l[o - 1].type === "text_special" && (b = b.slice(1));
|
|
2083
2083
|
for (let p = 0; p < b.length; p++) {
|
|
2084
|
-
const
|
|
2084
|
+
const E = b[p].url, y = u.md.normalizeLink(E);
|
|
2085
2085
|
if (!u.md.validateLink(y))
|
|
2086
2086
|
continue;
|
|
2087
2087
|
let f = b[p].text;
|
|
@@ -2095,8 +2095,8 @@ function Tl(u) {
|
|
|
2095
2095
|
F.attrs = [["href", y]], F.level = m++, F.markup = "linkify", F.info = "auto", d.push(F);
|
|
2096
2096
|
const S = new u.Token("text", "", 0);
|
|
2097
2097
|
S.content = f, S.level = m, d.push(S);
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2098
|
+
const D = new u.Token("link_close", "a", -1);
|
|
2099
|
+
D.level = --m, D.markup = "linkify", D.info = "auto", d.push(D), c = b[p].lastIndex;
|
|
2100
2100
|
}
|
|
2101
2101
|
if (c < s.length) {
|
|
2102
2102
|
const p = new u.Token("text", "", 0);
|
|
@@ -2187,13 +2187,13 @@ function Bl(u, e) {
|
|
|
2187
2187
|
let m = !0, c = !0;
|
|
2188
2188
|
s = d.index + 1;
|
|
2189
2189
|
const p = d[0] === "'";
|
|
2190
|
-
let
|
|
2190
|
+
let E = 32;
|
|
2191
2191
|
if (d.index - 1 >= 0)
|
|
2192
|
-
|
|
2192
|
+
E = i.charCodeAt(d.index - 1);
|
|
2193
2193
|
else
|
|
2194
2194
|
for (t = n - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
2195
2195
|
if (u[t].content) {
|
|
2196
|
-
|
|
2196
|
+
E = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
2197
2197
|
break;
|
|
2198
2198
|
}
|
|
2199
2199
|
let y = 32;
|
|
@@ -2205,20 +2205,20 @@ function Bl(u, e) {
|
|
|
2205
2205
|
y = u[t].content.charCodeAt(0);
|
|
2206
2206
|
break;
|
|
2207
2207
|
}
|
|
2208
|
-
const f = Yu(
|
|
2209
|
-
if (S ? m = !1 : w && (F || f || (m = !1)), F ? c = !1 : f && (S || w || (c = !1)), y === 34 && d[0] === '"' &&
|
|
2208
|
+
const f = Yu(E) || Wu(E), w = Yu(y) || Wu(y), F = Ju(E), S = Ju(y);
|
|
2209
|
+
if (S ? m = !1 : w && (F || f || (m = !1)), F ? c = !1 : f && (S || w || (c = !1)), y === 34 && d[0] === '"' && E >= 48 && E <= 57 && (c = m = !1), m && c && (m = f, c = w), !m && !c) {
|
|
2210
2210
|
p && de(l, n, d.index, _t);
|
|
2211
2211
|
continue;
|
|
2212
2212
|
}
|
|
2213
2213
|
if (c)
|
|
2214
2214
|
for (t = r.length - 1; t >= 0; t--) {
|
|
2215
|
-
let
|
|
2215
|
+
let D = r[t];
|
|
2216
2216
|
if (r[t].level < o)
|
|
2217
2217
|
break;
|
|
2218
|
-
if (
|
|
2219
|
-
|
|
2218
|
+
if (D.single === p && r[t].level === o) {
|
|
2219
|
+
D = r[t];
|
|
2220
2220
|
let v, C;
|
|
2221
|
-
p ? (v = e.md.options.quotes[2], C = e.md.options.quotes[3]) : (v = e.md.options.quotes[0], C = e.md.options.quotes[1]), de(l, n, d.index, C), de(l,
|
|
2221
|
+
p ? (v = e.md.options.quotes[2], C = e.md.options.quotes[3]) : (v = e.md.options.quotes[0], C = e.md.options.quotes[1]), de(l, n, d.index, C), de(l, D.token, D.pos, v), r.length = t;
|
|
2222
2222
|
continue u;
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
@@ -2253,7 +2253,7 @@ function Pl(u) {
|
|
|
2253
2253
|
e !== t && (a.length = t);
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
|
-
const
|
|
2256
|
+
const Se = [
|
|
2257
2257
|
["normalize", El],
|
|
2258
2258
|
["block", Dl],
|
|
2259
2259
|
["inline", Fl],
|
|
@@ -2266,8 +2266,8 @@ const $e = [
|
|
|
2266
2266
|
];
|
|
2267
2267
|
function ut() {
|
|
2268
2268
|
this.ruler = new du();
|
|
2269
|
-
for (let u = 0; u <
|
|
2270
|
-
this.ruler.push(
|
|
2269
|
+
for (let u = 0; u < Se.length; u++)
|
|
2270
|
+
this.ruler.push(Se[u][0], Se[u][1]);
|
|
2271
2271
|
}
|
|
2272
2272
|
ut.prototype.process = function(u) {
|
|
2273
2273
|
const e = this.ruler.getRules("");
|
|
@@ -2355,7 +2355,7 @@ Du.prototype.getLines = function(e, t, r, l) {
|
|
|
2355
2355
|
};
|
|
2356
2356
|
Du.prototype.Token = vu;
|
|
2357
2357
|
const Ul = 65536;
|
|
2358
|
-
function
|
|
2358
|
+
function Oe(u, e) {
|
|
2359
2359
|
const t = u.bMarks[e] + u.tShift[e], r = u.eMarks[e];
|
|
2360
2360
|
return u.src.slice(t, r);
|
|
2361
2361
|
}
|
|
@@ -2387,20 +2387,20 @@ function Nl(u, e, t, r) {
|
|
|
2387
2387
|
return !1;
|
|
2388
2388
|
n++;
|
|
2389
2389
|
}
|
|
2390
|
-
let i =
|
|
2390
|
+
let i = Oe(u, e + 1), s = i.split("|");
|
|
2391
2391
|
const b = [];
|
|
2392
2392
|
for (let S = 0; S < s.length; S++) {
|
|
2393
|
-
const
|
|
2394
|
-
if (!
|
|
2393
|
+
const D = s[S].trim();
|
|
2394
|
+
if (!D) {
|
|
2395
2395
|
if (S === 0 || S === s.length - 1)
|
|
2396
2396
|
continue;
|
|
2397
2397
|
return !1;
|
|
2398
2398
|
}
|
|
2399
|
-
if (!/^:?-+:?$/.test(
|
|
2399
|
+
if (!/^:?-+:?$/.test(D))
|
|
2400
2400
|
return !1;
|
|
2401
|
-
|
|
2401
|
+
D.charCodeAt(D.length - 1) === 58 ? b.push(D.charCodeAt(0) === 58 ? "center" : "right") : D.charCodeAt(0) === 58 ? b.push("left") : b.push("");
|
|
2402
2402
|
}
|
|
2403
|
-
if (i =
|
|
2403
|
+
if (i = Oe(u, e).trim(), i.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2404
2404
|
return !1;
|
|
2405
2405
|
s = kt(i), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2406
2406
|
const d = s.length;
|
|
@@ -2410,15 +2410,15 @@ function Nl(u, e, t, r) {
|
|
|
2410
2410
|
return !0;
|
|
2411
2411
|
const m = u.parentType;
|
|
2412
2412
|
u.parentType = "table";
|
|
2413
|
-
const c = u.md.block.ruler.getRules("blockquote"), p = u.push("table_open", "table", 1),
|
|
2414
|
-
p.map =
|
|
2413
|
+
const c = u.md.block.ruler.getRules("blockquote"), p = u.push("table_open", "table", 1), E = [e, 0];
|
|
2414
|
+
p.map = E;
|
|
2415
2415
|
const y = u.push("thead_open", "thead", 1);
|
|
2416
2416
|
y.map = [e, e + 1];
|
|
2417
2417
|
const f = u.push("tr_open", "tr", 1);
|
|
2418
2418
|
f.map = [e, e + 1];
|
|
2419
2419
|
for (let S = 0; S < s.length; S++) {
|
|
2420
|
-
const
|
|
2421
|
-
b[S] && (
|
|
2420
|
+
const D = u.push("th_open", "th", 1);
|
|
2421
|
+
b[S] && (D.attrs = [["style", "text-align:" + b[S]]]);
|
|
2422
2422
|
const v = u.push("inline", "", 0);
|
|
2423
2423
|
v.content = s[S].trim(), v.children = [], u.push("th_close", "th", -1);
|
|
2424
2424
|
}
|
|
@@ -2431,14 +2431,14 @@ function Nl(u, e, t, r) {
|
|
|
2431
2431
|
S = !0;
|
|
2432
2432
|
break;
|
|
2433
2433
|
}
|
|
2434
|
-
if (S || (i =
|
|
2434
|
+
if (S || (i = Oe(u, l).trim(), !i) || u.sCount[l] - u.blkIndent >= 4 || (s = kt(i), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), F += d - s.length, F > Ul))
|
|
2435
2435
|
break;
|
|
2436
2436
|
if (l === e + 2) {
|
|
2437
2437
|
const v = u.push("tbody_open", "tbody", 1);
|
|
2438
2438
|
v.map = w = [e + 2, 0];
|
|
2439
2439
|
}
|
|
2440
|
-
const
|
|
2441
|
-
|
|
2440
|
+
const D = u.push("tr_open", "tr", 1);
|
|
2441
|
+
D.map = [l, l + 1];
|
|
2442
2442
|
for (let v = 0; v < d; v++) {
|
|
2443
2443
|
const C = u.push("td_open", "td", 1);
|
|
2444
2444
|
b[v] && (C.attrs = [["style", "text-align:" + b[v]]]);
|
|
@@ -2447,7 +2447,7 @@ function Nl(u, e, t, r) {
|
|
|
2447
2447
|
}
|
|
2448
2448
|
u.push("tr_close", "tr", -1);
|
|
2449
2449
|
}
|
|
2450
|
-
return w && (u.push("tbody_close", "tbody", -1), w[1] = l), u.push("table_close", "table", -1),
|
|
2450
|
+
return w && (u.push("tbody_close", "tbody", -1), w[1] = l), u.push("table_close", "table", -1), E[1] = l, u.parentType = m, u.line = l, !0;
|
|
2451
2451
|
}
|
|
2452
2452
|
function jl(u, e, t) {
|
|
2453
2453
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
@@ -2511,9 +2511,9 @@ function Hl(u, e, t, r) {
|
|
|
2511
2511
|
if (l = u.bMarks[p] + u.tShift[p], n = u.eMarks[p], l >= n)
|
|
2512
2512
|
break;
|
|
2513
2513
|
if (u.src.charCodeAt(l++) === 62 && !F) {
|
|
2514
|
-
let
|
|
2515
|
-
u.src.charCodeAt(l) === 32 ? (l++,
|
|
2516
|
-
let M =
|
|
2514
|
+
let D = u.sCount[p] + 1, v, C;
|
|
2515
|
+
u.src.charCodeAt(l) === 32 ? (l++, D++, C = !1, v = !0) : u.src.charCodeAt(l) === 9 ? (v = !0, (u.bsCount[p] + D) % 4 === 3 ? (l++, D++, C = !1) : C = !0) : v = !1;
|
|
2516
|
+
let M = D;
|
|
2517
2517
|
for (o.push(u.bMarks[p]), u.bMarks[p] = l; l < n; ) {
|
|
2518
2518
|
const O = u.src.charCodeAt(l);
|
|
2519
2519
|
if (K(O))
|
|
@@ -2522,14 +2522,14 @@ function Hl(u, e, t, r) {
|
|
|
2522
2522
|
break;
|
|
2523
2523
|
l++;
|
|
2524
2524
|
}
|
|
2525
|
-
c = l >= n, i.push(u.bsCount[p]), u.bsCount[p] = u.sCount[p] + 1 + (v ? 1 : 0), s.push(u.sCount[p]), u.sCount[p] = M -
|
|
2525
|
+
c = l >= n, i.push(u.bsCount[p]), u.bsCount[p] = u.sCount[p] + 1 + (v ? 1 : 0), s.push(u.sCount[p]), u.sCount[p] = M - D, b.push(u.tShift[p]), u.tShift[p] = l - u.bMarks[p];
|
|
2526
2526
|
continue;
|
|
2527
2527
|
}
|
|
2528
2528
|
if (c)
|
|
2529
2529
|
break;
|
|
2530
2530
|
let S = !1;
|
|
2531
|
-
for (let
|
|
2532
|
-
if (d[
|
|
2531
|
+
for (let D = 0, v = d.length; D < v; D++)
|
|
2532
|
+
if (d[D](u, p, t, !0)) {
|
|
2533
2533
|
S = !0;
|
|
2534
2534
|
break;
|
|
2535
2535
|
}
|
|
@@ -2539,7 +2539,7 @@ function Hl(u, e, t, r) {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
o.push(u.bMarks[p]), i.push(u.bsCount[p]), b.push(u.tShift[p]), s.push(u.sCount[p]), u.sCount[p] = -1;
|
|
2541
2541
|
}
|
|
2542
|
-
const
|
|
2542
|
+
const E = u.blkIndent;
|
|
2543
2543
|
u.blkIndent = 0;
|
|
2544
2544
|
const y = u.push("blockquote_open", "blockquote", 1);
|
|
2545
2545
|
y.markup = ">";
|
|
@@ -2549,7 +2549,7 @@ function Hl(u, e, t, r) {
|
|
|
2549
2549
|
w.markup = ">", u.lineMax = a, u.parentType = m, f[1] = u.line;
|
|
2550
2550
|
for (let F = 0; F < b.length; F++)
|
|
2551
2551
|
u.bMarks[F + e] = o[F], u.tShift[F + e] = b[F], u.sCount[F + e] = s[F], u.bsCount[F + e] = i[F];
|
|
2552
|
-
return u.blkIndent =
|
|
2552
|
+
return u.blkIndent = E, !0;
|
|
2553
2553
|
}
|
|
2554
2554
|
function Gl(u, e, t, r) {
|
|
2555
2555
|
const l = u.eMarks[e];
|
|
@@ -2632,7 +2632,7 @@ function Wl(u, e, t, r) {
|
|
|
2632
2632
|
return !1;
|
|
2633
2633
|
if (r)
|
|
2634
2634
|
return !0;
|
|
2635
|
-
const p = u.src.charCodeAt(c - 1),
|
|
2635
|
+
const p = u.src.charCodeAt(c - 1), E = u.tokens.length;
|
|
2636
2636
|
d ? (o = u.push("ordered_list_open", "ol", 1), m !== 1 && (o.attrs = [["start", m]])) : o = u.push("bullet_list_open", "ul", 1);
|
|
2637
2637
|
const y = [i, 0];
|
|
2638
2638
|
o.map = y, o.markup = String.fromCharCode(p);
|
|
@@ -2641,30 +2641,30 @@ function Wl(u, e, t, r) {
|
|
|
2641
2641
|
for (u.parentType = "list"; i < t; ) {
|
|
2642
2642
|
n = c, l = u.eMarks[i];
|
|
2643
2643
|
const S = u.sCount[i] + c - (u.bMarks[i] + u.tShift[i]);
|
|
2644
|
-
let
|
|
2644
|
+
let D = S;
|
|
2645
2645
|
for (; n < l; ) {
|
|
2646
|
-
const
|
|
2647
|
-
if (
|
|
2648
|
-
|
|
2649
|
-
else if (
|
|
2650
|
-
|
|
2646
|
+
const N = u.src.charCodeAt(n);
|
|
2647
|
+
if (N === 9)
|
|
2648
|
+
D += 4 - (D + u.bsCount[i]) % 4;
|
|
2649
|
+
else if (N === 32)
|
|
2650
|
+
D++;
|
|
2651
2651
|
else
|
|
2652
2652
|
break;
|
|
2653
2653
|
n++;
|
|
2654
2654
|
}
|
|
2655
2655
|
const v = n;
|
|
2656
2656
|
let C;
|
|
2657
|
-
v >= l ? C = 1 : C =
|
|
2657
|
+
v >= l ? C = 1 : C = D - S, C > 4 && (C = 1);
|
|
2658
2658
|
const M = S + C;
|
|
2659
2659
|
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(p);
|
|
2660
2660
|
const O = [i, 0];
|
|
2661
2661
|
o.map = O, d && (o.info = u.src.slice(a, c - 1));
|
|
2662
|
-
const V = u.tight, Z = u.tShift[i], _ = u.sCount[i],
|
|
2663
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = M, u.tight = !0, u.tShift[i] = v - u.bMarks[i], u.sCount[i] =
|
|
2662
|
+
const V = u.tight, Z = u.tShift[i], _ = u.sCount[i], W = u.listIndent;
|
|
2663
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = M, u.tight = !0, u.tShift[i] = v - u.bMarks[i], u.sCount[i] = D, v >= l && u.isEmpty(i + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, i, t, !0), (!u.tight || f) && (s = !1), f = u.line - i > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = W, u.tShift[i] = Z, u.sCount[i] = _, u.tight = V, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(p), i = u.line, O[1] = i, i >= t || u.sCount[i] < u.blkIndent || u.sCount[i] - u.blkIndent >= 4)
|
|
2664
2664
|
break;
|
|
2665
2665
|
let T = !1;
|
|
2666
|
-
for (let
|
|
2667
|
-
if (w[
|
|
2666
|
+
for (let N = 0, ru = w.length; N < ru; N++)
|
|
2667
|
+
if (w[N](u, i, t, !0)) {
|
|
2668
2668
|
T = !0;
|
|
2669
2669
|
break;
|
|
2670
2670
|
}
|
|
@@ -2679,7 +2679,7 @@ function Wl(u, e, t, r) {
|
|
|
2679
2679
|
if (p !== u.src.charCodeAt(c - 1))
|
|
2680
2680
|
break;
|
|
2681
2681
|
}
|
|
2682
|
-
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(p), y[1] = i, u.line = i, u.parentType = F, s && Jl(u,
|
|
2682
|
+
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(p), y[1] = i, u.line = i, u.parentType = F, s && Jl(u, E), !0;
|
|
2683
2683
|
}
|
|
2684
2684
|
function Yl(u, e, t, r) {
|
|
2685
2685
|
let l = u.bMarks[e] + u.tShift[e], n = u.eMarks[e], a = e + 1;
|
|
@@ -2702,8 +2702,8 @@ function Yl(u, e, t, r) {
|
|
|
2702
2702
|
if (u.parentType = M, O)
|
|
2703
2703
|
return null;
|
|
2704
2704
|
}
|
|
2705
|
-
const
|
|
2706
|
-
return u.src.slice(
|
|
2705
|
+
const D = u.bMarks[w] + u.tShift[w], v = u.eMarks[w];
|
|
2706
|
+
return u.src.slice(D, v + 1);
|
|
2707
2707
|
}
|
|
2708
2708
|
let i = u.src.slice(l, n + 1);
|
|
2709
2709
|
n = i.length;
|
|
@@ -2749,15 +2749,15 @@ function Yl(u, e, t, r) {
|
|
|
2749
2749
|
} else if (!K(w))
|
|
2750
2750
|
break;
|
|
2751
2751
|
}
|
|
2752
|
-
let
|
|
2753
|
-
for (;
|
|
2752
|
+
let E = u.md.helpers.parseLinkTitle(i, l, n);
|
|
2753
|
+
for (; E.can_continue; ) {
|
|
2754
2754
|
const w = o(a);
|
|
2755
2755
|
if (w === null)
|
|
2756
2756
|
break;
|
|
2757
|
-
i += w, l = n, n = i.length, a++,
|
|
2757
|
+
i += w, l = n, n = i.length, a++, E = u.md.helpers.parseLinkTitle(i, l, n, E);
|
|
2758
2758
|
}
|
|
2759
2759
|
let y;
|
|
2760
|
-
for (l < n && p !== l &&
|
|
2760
|
+
for (l < n && p !== l && E.ok ? (y = E.str, l = E.pos) : (y = "", l = m, a = c); l < n; ) {
|
|
2761
2761
|
const w = i.charCodeAt(l);
|
|
2762
2762
|
if (!K(w))
|
|
2763
2763
|
break;
|
|
@@ -2772,7 +2772,7 @@ function Yl(u, e, t, r) {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
if (l < n && i.charCodeAt(l) !== 10)
|
|
2774
2774
|
return !1;
|
|
2775
|
-
const f =
|
|
2775
|
+
const f = Fe(i.slice(1, s));
|
|
2776
2776
|
return f ? (r || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[f] > "u" && (u.env.references[f] = { title: y, href: d }), u.line = a), !0) : !1;
|
|
2777
2777
|
}
|
|
2778
2778
|
const Ql = [
|
|
@@ -2891,7 +2891,7 @@ function dr(u, e, t, r) {
|
|
|
2891
2891
|
const s = u.push("heading_open", "h" + String(o), 1);
|
|
2892
2892
|
s.markup = "########".slice(0, o), s.map = [e, u.line];
|
|
2893
2893
|
const b = u.push("inline", "", 0);
|
|
2894
|
-
b.content =
|
|
2894
|
+
b.content = Ae(u.src.slice(l, n)), b.map = [e, u.line], b.children = [];
|
|
2895
2895
|
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2896
2896
|
return d.markup = "########".slice(0, o), !0;
|
|
2897
2897
|
}
|
|
@@ -2926,7 +2926,7 @@ function fr(u, e, t) {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
if (!n)
|
|
2928
2928
|
return u.parentType = l, !1;
|
|
2929
|
-
const i =
|
|
2929
|
+
const i = Ae(u.getLines(e, o, u.blkIndent, !1));
|
|
2930
2930
|
u.line = o + 1;
|
|
2931
2931
|
const s = u.push("heading_open", "h" + String(n), 1);
|
|
2932
2932
|
s.markup = String.fromCharCode(a), s.map = [e, u.line];
|
|
@@ -2950,7 +2950,7 @@ function pr(u, e, t) {
|
|
|
2950
2950
|
if (s)
|
|
2951
2951
|
break;
|
|
2952
2952
|
}
|
|
2953
|
-
const a =
|
|
2953
|
+
const a = Ae(u.getLines(e, n, u.blkIndent, !1));
|
|
2954
2954
|
u.line = n;
|
|
2955
2955
|
const o = u.push("paragraph_open", "p", 1);
|
|
2956
2956
|
o.map = [e, u.line];
|
|
@@ -2972,12 +2972,12 @@ const fe = [
|
|
|
2972
2972
|
["lheading", fr],
|
|
2973
2973
|
["paragraph", pr]
|
|
2974
2974
|
];
|
|
2975
|
-
function
|
|
2975
|
+
function we() {
|
|
2976
2976
|
this.ruler = new du();
|
|
2977
2977
|
for (let u = 0; u < fe.length; u++)
|
|
2978
2978
|
this.ruler.push(fe[u][0], fe[u][1], { alt: (fe[u][2] || []).slice() });
|
|
2979
2979
|
}
|
|
2980
|
-
|
|
2980
|
+
we.prototype.tokenize = function(u, e, t) {
|
|
2981
2981
|
const r = this.ruler.getRules(""), l = r.length, n = u.md.options.maxNesting;
|
|
2982
2982
|
let a = e, o = !1;
|
|
2983
2983
|
for (; a < t && (u.line = a = u.skipEmptyLines(a), !(a >= t || u.sCount[a] < u.blkIndent)); ) {
|
|
@@ -2998,13 +2998,13 @@ Ae.prototype.tokenize = function(u, e, t) {
|
|
|
2998
2998
|
u.tight = !o, u.isEmpty(u.line - 1) && (o = !0), a = u.line, a < t && u.isEmpty(a) && (o = !0, a++, u.line = a);
|
|
2999
2999
|
}
|
|
3000
3000
|
};
|
|
3001
|
-
|
|
3001
|
+
we.prototype.parse = function(u, e, t, r) {
|
|
3002
3002
|
if (!u)
|
|
3003
3003
|
return;
|
|
3004
3004
|
const l = new this.State(u, e, t, r);
|
|
3005
3005
|
this.tokenize(l, l.line, l.lineMax);
|
|
3006
3006
|
};
|
|
3007
|
-
|
|
3007
|
+
we.prototype.State = Du;
|
|
3008
3008
|
function ne(u, e, t, r) {
|
|
3009
3009
|
this.src = u, this.env = t, this.md = e, this.tokens = r, this.tokens_meta = Array(r.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;
|
|
3010
3010
|
}
|
|
@@ -3336,14 +3336,14 @@ function Fr(u, e) {
|
|
|
3336
3336
|
if (s) {
|
|
3337
3337
|
if (typeof u.env.references > "u")
|
|
3338
3338
|
return !1;
|
|
3339
|
-
if (p < d && u.src.charCodeAt(p) === 91 ? (i = p + 1, p = u.md.helpers.parseLinkLabel(u, p), p >= 0 ? r = u.src.slice(i, p++) : p = c + 1) : p = c + 1, r || (r = u.src.slice(m, c)), n = u.env.references[
|
|
3339
|
+
if (p < d && u.src.charCodeAt(p) === 91 ? (i = p + 1, p = u.md.helpers.parseLinkLabel(u, p), p >= 0 ? r = u.src.slice(i, p++) : p = c + 1) : p = c + 1, r || (r = u.src.slice(m, c)), n = u.env.references[Fe(r)], !n)
|
|
3340
3340
|
return u.pos = b, !1;
|
|
3341
3341
|
a = n.href, o = n.title;
|
|
3342
3342
|
}
|
|
3343
3343
|
if (!e) {
|
|
3344
3344
|
u.pos = m, u.posMax = c;
|
|
3345
|
-
const
|
|
3346
|
-
|
|
3345
|
+
const E = u.push("link_open", "a", 1), y = [["href", a]];
|
|
3346
|
+
E.attrs = y, o && y.push(["title", o]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3347
3347
|
}
|
|
3348
3348
|
return u.pos = p, u.posMax = d, !0;
|
|
3349
3349
|
}
|
|
@@ -3373,21 +3373,21 @@ function Ar(u, e) {
|
|
|
3373
3373
|
} else {
|
|
3374
3374
|
if (typeof u.env.references > "u")
|
|
3375
3375
|
return !1;
|
|
3376
|
-
if (n < m && u.src.charCodeAt(n) === 91 ? (s = n + 1, n = u.md.helpers.parseLinkLabel(u, n), n >= 0 ? l = u.src.slice(s, n++) : n = p + 1) : n = p + 1, l || (l = u.src.slice(c, p)), a = u.env.references[
|
|
3376
|
+
if (n < m && u.src.charCodeAt(n) === 91 ? (s = n + 1, n = u.md.helpers.parseLinkLabel(u, n), n >= 0 ? l = u.src.slice(s, n++) : n = p + 1) : n = p + 1, l || (l = u.src.slice(c, p)), a = u.env.references[Fe(l)], !a)
|
|
3377
3377
|
return u.pos = d, !1;
|
|
3378
3378
|
b = a.href, i = a.title;
|
|
3379
3379
|
}
|
|
3380
3380
|
if (!e) {
|
|
3381
3381
|
r = u.src.slice(c, p);
|
|
3382
|
-
const
|
|
3382
|
+
const E = [];
|
|
3383
3383
|
u.md.inline.parse(
|
|
3384
3384
|
r,
|
|
3385
3385
|
u.md,
|
|
3386
3386
|
u.env,
|
|
3387
|
-
|
|
3387
|
+
E
|
|
3388
3388
|
);
|
|
3389
3389
|
const y = u.push("image", "img", 0), f = [["src", b], ["alt", ""]];
|
|
3390
|
-
y.attrs = f, y.children =
|
|
3390
|
+
y.attrs = f, y.children = E, y.content = r, i && f.push(["title", i]);
|
|
3391
3391
|
}
|
|
3392
3392
|
return u.pos = n, u.posMax = m, !0;
|
|
3393
3393
|
}
|
|
@@ -3534,7 +3534,7 @@ function Br(u) {
|
|
|
3534
3534
|
l[e].nesting < 0 && r--, l[e].level = r, l[e].nesting > 0 && r++, l[e].type === "text" && e + 1 < n && l[e + 1].type === "text" ? l[e + 1].content = l[e].content + l[e + 1].content : (e !== t && (l[t] = l[e]), t++);
|
|
3535
3535
|
e !== t && (l.length = t);
|
|
3536
3536
|
}
|
|
3537
|
-
const
|
|
3537
|
+
const Ve = [
|
|
3538
3538
|
["text", mr],
|
|
3539
3539
|
["linkify", gr],
|
|
3540
3540
|
["newline", vr],
|
|
@@ -3547,7 +3547,7 @@ const Oe = [
|
|
|
3547
3547
|
["autolink", Ir],
|
|
3548
3548
|
["html_inline", Vr],
|
|
3549
3549
|
["entity", zr]
|
|
3550
|
-
],
|
|
3550
|
+
], Me = [
|
|
3551
3551
|
["balance_pairs", qr],
|
|
3552
3552
|
["strikethrough", c0.postProcess],
|
|
3553
3553
|
["emphasis", d0.postProcess],
|
|
@@ -3557,11 +3557,11 @@ const Oe = [
|
|
|
3557
3557
|
];
|
|
3558
3558
|
function le() {
|
|
3559
3559
|
this.ruler = new du();
|
|
3560
|
-
for (let u = 0; u < Oe.length; u++)
|
|
3561
|
-
this.ruler.push(Oe[u][0], Oe[u][1]);
|
|
3562
|
-
this.ruler2 = new du();
|
|
3563
3560
|
for (let u = 0; u < Ve.length; u++)
|
|
3564
|
-
this.
|
|
3561
|
+
this.ruler.push(Ve[u][0], Ve[u][1]);
|
|
3562
|
+
this.ruler2 = new du();
|
|
3563
|
+
for (let u = 0; u < Me.length; u++)
|
|
3564
|
+
this.ruler2.push(Me[u][0], Me[u][1]);
|
|
3565
3565
|
}
|
|
3566
3566
|
le.prototype.skipToken = function(u) {
|
|
3567
3567
|
const e = u.pos, t = this.ruler.getRules(""), r = t.length, l = u.md.options.maxNesting, n = u.cache;
|
|
@@ -3623,27 +3623,27 @@ function Lr(u) {
|
|
|
3623
3623
|
// but can start with > (markdown blockquote)
|
|
3624
3624
|
`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${e.src_ZPCc}))((?![$+<=>^\`||])${e.tpl_host_port_no_ip_fuzzy_strict}${e.src_path})`, e;
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function Ne(u) {
|
|
3627
3627
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
3628
3628
|
t && Object.keys(t).forEach(function(r) {
|
|
3629
3629
|
u[r] = t[r];
|
|
3630
3630
|
});
|
|
3631
3631
|
}), u;
|
|
3632
3632
|
}
|
|
3633
|
-
function
|
|
3633
|
+
function Te(u) {
|
|
3634
3634
|
return Object.prototype.toString.call(u);
|
|
3635
3635
|
}
|
|
3636
3636
|
function Pr(u) {
|
|
3637
|
-
return
|
|
3637
|
+
return Te(u) === "[object String]";
|
|
3638
3638
|
}
|
|
3639
3639
|
function Ur(u) {
|
|
3640
|
-
return
|
|
3640
|
+
return Te(u) === "[object Object]";
|
|
3641
3641
|
}
|
|
3642
3642
|
function Nr(u) {
|
|
3643
|
-
return
|
|
3643
|
+
return Te(u) === "[object RegExp]";
|
|
3644
3644
|
}
|
|
3645
3645
|
function At(u) {
|
|
3646
|
-
return
|
|
3646
|
+
return Te(u) === "[object Function]";
|
|
3647
3647
|
}
|
|
3648
3648
|
function jr(u) {
|
|
3649
3649
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
@@ -3746,13 +3746,13 @@ function p0(u, e, t, r) {
|
|
|
3746
3746
|
function mu(u, e) {
|
|
3747
3747
|
if (!(this instanceof mu))
|
|
3748
3748
|
return new mu(u, e);
|
|
3749
|
-
e || Zr(u) && (e = u, u = {}), this.__opts__ =
|
|
3749
|
+
e || Zr(u) && (e = u, u = {}), this.__opts__ = Ne({}, f0, e), this.__schemas__ = Ne({}, Hr, u), this.__compiled__ = {}, this.__tlds__ = Jr, this.__tlds_replaced__ = !1, this.re = {}, ge(this);
|
|
3750
3750
|
}
|
|
3751
3751
|
mu.prototype.add = function(e, t) {
|
|
3752
3752
|
return this.__schemas__[e] = t, ge(this), this;
|
|
3753
3753
|
};
|
|
3754
3754
|
mu.prototype.set = function(e) {
|
|
3755
|
-
return this.__opts__ =
|
|
3755
|
+
return this.__opts__ = Ne(this.__opts__, e), this;
|
|
3756
3756
|
};
|
|
3757
3757
|
mu.prototype.test = function(e) {
|
|
3758
3758
|
if (!e.length)
|
|
@@ -3843,7 +3843,7 @@ const Mu = 2147483647, ku = 36, tt = 1, Qu = 26, Yr = 38, Qr = 700, b0 = 72, m0
|
|
|
3843
3843
|
overflow: "Overflow: input needs wider integers to process",
|
|
3844
3844
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3845
3845
|
"invalid-input": "Invalid input"
|
|
3846
|
-
},
|
|
3846
|
+
}, Re = ku - tt, yu = Math.floor, ze = String.fromCharCode;
|
|
3847
3847
|
function Tu(u) {
|
|
3848
3848
|
throw new RangeError(eo[u]);
|
|
3849
3849
|
}
|
|
@@ -3881,9 +3881,9 @@ const no = (u) => String.fromCodePoint(...u), lo = function(u) {
|
|
|
3881
3881
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3882
3882
|
}, v0 = function(u, e, t) {
|
|
3883
3883
|
let r = 0;
|
|
3884
|
-
for (u = t ? yu(u / Qr) : u >> 1, u += yu(u / e); u >
|
|
3885
|
-
u = yu(u /
|
|
3886
|
-
return yu(r + (
|
|
3884
|
+
for (u = t ? yu(u / Qr) : u >> 1, u += yu(u / e); u > Re * Qu >> 1; r += ku)
|
|
3885
|
+
u = yu(u / Re);
|
|
3886
|
+
return yu(r + (Re + 1) * u / (u + Yr));
|
|
3887
3887
|
}, _0 = function(u) {
|
|
3888
3888
|
const e = [], t = u.length;
|
|
3889
3889
|
let r = 0, l = m0, n = b0, a = u.lastIndexOf(h0);
|
|
@@ -3912,7 +3912,7 @@ const no = (u) => String.fromCodePoint(...u), lo = function(u) {
|
|
|
3912
3912
|
const t = u.length;
|
|
3913
3913
|
let r = m0, l = 0, n = b0;
|
|
3914
3914
|
for (const i of u)
|
|
3915
|
-
i < 128 && e.push(
|
|
3915
|
+
i < 128 && e.push(ze(i));
|
|
3916
3916
|
const a = e.length;
|
|
3917
3917
|
let o = a;
|
|
3918
3918
|
for (a && e.push(h0); o < t; ) {
|
|
@@ -3928,12 +3928,12 @@ const no = (u) => String.fromCodePoint(...u), lo = function(u) {
|
|
|
3928
3928
|
const c = m <= n ? tt : m >= n + Qu ? Qu : m - n;
|
|
3929
3929
|
if (d < c)
|
|
3930
3930
|
break;
|
|
3931
|
-
const p = d - c,
|
|
3931
|
+
const p = d - c, E = ku - c;
|
|
3932
3932
|
e.push(
|
|
3933
|
-
|
|
3934
|
-
), d = yu(p /
|
|
3933
|
+
ze(Tt(c + p % E, 0))
|
|
3934
|
+
), d = yu(p / E);
|
|
3935
3935
|
}
|
|
3936
|
-
e.push(
|
|
3936
|
+
e.push(ze(Tt(d, 0))), n = v0(l, s, o === a), l = 0, ++o;
|
|
3937
3937
|
}
|
|
3938
3938
|
++l, ++r;
|
|
3939
3939
|
}
|
|
@@ -4164,10 +4164,10 @@ function ho(u) {
|
|
|
4164
4164
|
function xu(u, e) {
|
|
4165
4165
|
if (!(this instanceof xu))
|
|
4166
4166
|
return new xu(u, e);
|
|
4167
|
-
e || Ke(u) || (e = u || {}, u = "default"), this.inline = new le(), this.block = new
|
|
4167
|
+
e || Ke(u) || (e = u || {}, u = "default"), this.inline = new le(), this.block = new we(), this.core = new ut(), this.renderer = new Nu(), this.linkify = new mu(), this.validateLink = bo, this.normalizeLink = mo, this.normalizeLinkText = ho, this.utils = xl, this.helpers = De({}, kl), this.options = {}, this.configure(u), e && this.set(e);
|
|
4168
4168
|
}
|
|
4169
4169
|
xu.prototype.set = function(u) {
|
|
4170
|
-
return
|
|
4170
|
+
return De(this.options, u), this;
|
|
4171
4171
|
};
|
|
4172
4172
|
xu.prototype.configure = function(u) {
|
|
4173
4173
|
const e = this;
|
|
@@ -4237,15 +4237,20 @@ const xo = ["innerHTML"], go = {
|
|
|
4237
4237
|
}),
|
|
4238
4238
|
emits: ["update:visible"],
|
|
4239
4239
|
setup(u) {
|
|
4240
|
-
const { request: e } = Lu("stConfig"), t = new xu(), r =
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4240
|
+
const { request: e } = Lu("stConfig"), t = new xu(), r = G(""), l = u, n = Pu(u, "visible"), a = G(""), o = eu(() => {
|
|
4241
|
+
const i = a.value.trim().toLowerCase();
|
|
4242
|
+
return i ? l.data.filter(
|
|
4243
|
+
(s) => [s.factorName, s.factorDesc, s.factorScoreDefine].filter(Boolean).some((b) => String(b).toLowerCase().includes(i))
|
|
4244
|
+
) : l.data;
|
|
4245
|
+
});
|
|
4246
|
+
return He(async () => {
|
|
4247
|
+
const { data: i } = await e.post("/middleLayer/special/getOss", { url: "resource/factor_select.md" }), s = new Uint8Array(i.data), d = new TextDecoder("utf-8").decode(s);
|
|
4248
|
+
r.value = t.render(d);
|
|
4249
|
+
}), (i, s) => {
|
|
4250
|
+
const b = ke, d = on, m = an, c = Ut, p = ue;
|
|
4251
|
+
return g(), P(p, {
|
|
4252
|
+
modelValue: n.value,
|
|
4253
|
+
"onUpdate:modelValue": s[1] || (s[1] = (E) => n.value = E),
|
|
4249
4254
|
title: u.factorType === "模版" ? "因子说明" : "脚本编写说明",
|
|
4250
4255
|
width: "1000",
|
|
4251
4256
|
"align-center": "",
|
|
@@ -4257,31 +4262,39 @@ const xo = ["innerHTML"], go = {
|
|
|
4257
4262
|
"modal-penetrable": !0
|
|
4258
4263
|
}, {
|
|
4259
4264
|
default: x(() => [
|
|
4260
|
-
h(
|
|
4265
|
+
h(c, { height: "500px" }, {
|
|
4261
4266
|
default: x(() => [
|
|
4262
|
-
u.factorType === "模版" ? (g(),
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4267
|
+
u.factorType === "模版" ? (g(), I(U, { key: 0 }, [
|
|
4268
|
+
h(b, {
|
|
4269
|
+
modelValue: a.value,
|
|
4270
|
+
"onUpdate:modelValue": s[0] || (s[0] = (E) => a.value = E),
|
|
4271
|
+
placeholder: "搜索因子名称 / 因子说明 / 分值定义",
|
|
4272
|
+
clearable: "",
|
|
4273
|
+
style: { width: "320px", "margin-bottom": "10px" }
|
|
4274
|
+
}, null, 8, ["modelValue"]),
|
|
4275
|
+
h(m, {
|
|
4276
|
+
data: o.value,
|
|
4277
|
+
border: "",
|
|
4278
|
+
height: "500"
|
|
4279
|
+
}, {
|
|
4280
|
+
default: x(() => [
|
|
4281
|
+
h(d, {
|
|
4282
|
+
prop: "factorName",
|
|
4283
|
+
label: "因子名称",
|
|
4284
|
+
width: "200"
|
|
4285
|
+
}),
|
|
4286
|
+
h(d, {
|
|
4287
|
+
prop: "factorDesc",
|
|
4288
|
+
label: "因子说明"
|
|
4289
|
+
}),
|
|
4290
|
+
h(d, {
|
|
4291
|
+
prop: "factorScoreDefine",
|
|
4292
|
+
label: "分值定义"
|
|
4293
|
+
})
|
|
4294
|
+
]),
|
|
4295
|
+
_: 1
|
|
4296
|
+
}, 8, ["data"])
|
|
4297
|
+
], 64)) : j("", !0),
|
|
4285
4298
|
u.factorType === "脚本" ? (g(), I("div", {
|
|
4286
4299
|
key: 1,
|
|
4287
4300
|
class: "markdown-body",
|
|
@@ -4328,12 +4341,12 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4328
4341
|
}),
|
|
4329
4342
|
emits: /* @__PURE__ */ $u(["actionState"], ["update:data"]),
|
|
4330
4343
|
setup(u, { emit: e }) {
|
|
4331
|
-
const { request: t, env: r } = Lu("stConfig"), l = e, n = u, a = Pu(u, "data"), o =
|
|
4344
|
+
const { request: t, env: r } = Lu("stConfig"), l = e, n = u, a = Pu(u, "data"), o = G(), i = G(), s = G(!1), b = G(!1), d = G("脚本"), m = G(!1), c = G(!1), p = G(!1), E = G(!1), y = G(""), f = G(!1), w = G(!1), F = qt({
|
|
4332
4345
|
result: null,
|
|
4333
4346
|
detail: "",
|
|
4334
4347
|
code: "",
|
|
4335
4348
|
ai: ""
|
|
4336
|
-
}), S =
|
|
4349
|
+
}), S = G(null), D = G({
|
|
4337
4350
|
// 筛选因子列表
|
|
4338
4351
|
list: [
|
|
4339
4352
|
{
|
|
@@ -4353,16 +4366,16 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4353
4366
|
factorSelectExpr: ""
|
|
4354
4367
|
}), v = () => {
|
|
4355
4368
|
const { list: R, sqlEnable: k, sqlValue: Y, factorSelectExpr: L } = a.value;
|
|
4356
|
-
|
|
4369
|
+
D.value = {
|
|
4357
4370
|
list: JSON.parse(JSON.stringify(R)),
|
|
4358
4371
|
sqlEnable: k,
|
|
4359
4372
|
sqlValue: Y,
|
|
4360
4373
|
factorSelectExpr: L
|
|
4361
|
-
},
|
|
4374
|
+
}, D.value.list.length || O(), s.value = !0;
|
|
4362
4375
|
}, C = () => {
|
|
4363
4376
|
if (d.value === "模版")
|
|
4364
4377
|
S.value.validate((R) => {
|
|
4365
|
-
const { list: k, sqlEnable: Y, sqlValue: L } =
|
|
4378
|
+
const { list: k, sqlEnable: Y, sqlValue: L } = D.value;
|
|
4366
4379
|
if (R) {
|
|
4367
4380
|
if (Y) {
|
|
4368
4381
|
if (!L)
|
|
@@ -4391,11 +4404,11 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4391
4404
|
}, s.value = !1;
|
|
4392
4405
|
}
|
|
4393
4406
|
}, M = (R) => {
|
|
4394
|
-
|
|
4407
|
+
D.value.list.splice(R, 1);
|
|
4395
4408
|
}, O = (R) => {
|
|
4396
4409
|
switch (R) {
|
|
4397
4410
|
case "compare": {
|
|
4398
|
-
|
|
4411
|
+
D.value.list.push({
|
|
4399
4412
|
key: "compare",
|
|
4400
4413
|
cycle: n.config.cycleDefault ?? null,
|
|
4401
4414
|
factor: null,
|
|
@@ -4406,7 +4419,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4406
4419
|
break;
|
|
4407
4420
|
}
|
|
4408
4421
|
default: {
|
|
4409
|
-
|
|
4422
|
+
D.value.list.push({
|
|
4410
4423
|
cycle: n.config.cycleDefault ?? null,
|
|
4411
4424
|
factor: null,
|
|
4412
4425
|
score: [null, null]
|
|
@@ -4417,11 +4430,11 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4417
4430
|
}, V = () => {
|
|
4418
4431
|
S.value.validate((R) => {
|
|
4419
4432
|
if (R)
|
|
4420
|
-
if (
|
|
4421
|
-
const k = ct(
|
|
4422
|
-
|
|
4433
|
+
if (D.value.sqlValue) {
|
|
4434
|
+
const k = ct(D.value.sqlValue);
|
|
4435
|
+
D.value.sqlValue = D.value.list.reduce((Y, L, H) => (k.includes(`条件${H + 1}`) || (Y += `&& 条件${H + 1} `), Y), D.value.sqlValue);
|
|
4423
4436
|
} else
|
|
4424
|
-
|
|
4437
|
+
D.value.sqlValue = D.value.list.reduce((k, Y, L) => (L === 0 ? k += `条件${L + 1} ` : k += `&& 条件${L + 1} `, k), "");
|
|
4425
4438
|
});
|
|
4426
4439
|
}, Z = (R) => {
|
|
4427
4440
|
switch (R.key) {
|
|
@@ -4466,7 +4479,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4466
4479
|
break;
|
|
4467
4480
|
}
|
|
4468
4481
|
}
|
|
4469
|
-
},
|
|
4482
|
+
}, W = () => {
|
|
4470
4483
|
i.value.open(o.value);
|
|
4471
4484
|
}, T = (R, k) => {
|
|
4472
4485
|
if (!o.value)
|
|
@@ -4494,7 +4507,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4494
4507
|
column: ae
|
|
4495
4508
|
}), H.focus();
|
|
4496
4509
|
}
|
|
4497
|
-
},
|
|
4510
|
+
}, N = async () => {
|
|
4498
4511
|
try {
|
|
4499
4512
|
c.value = !0;
|
|
4500
4513
|
const R = o.value.getValue();
|
|
@@ -4548,7 +4561,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4548
4561
|
}
|
|
4549
4562
|
}
|
|
4550
4563
|
}, gu = () => {
|
|
4551
|
-
l("actionState", "因子筛选", "AI分析"), p.value = !0,
|
|
4564
|
+
l("actionState", "因子筛选", "AI分析"), p.value = !0, E.value = !0, F.ai = "";
|
|
4552
4565
|
try {
|
|
4553
4566
|
rn({
|
|
4554
4567
|
baseUrl: r.VITE_BASE_URL,
|
|
@@ -4556,14 +4569,14 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4556
4569
|
value: F.code,
|
|
4557
4570
|
callback: (R, k) => {
|
|
4558
4571
|
if (R === "error") {
|
|
4559
|
-
p.value = !1,
|
|
4572
|
+
p.value = !1, E.value = !1, tu.error("AI分析失败: " + k);
|
|
4560
4573
|
return;
|
|
4561
4574
|
}
|
|
4562
|
-
R === "message" && (p.value = !1, F.ai += k), R === "finish" && (p.value = !1,
|
|
4575
|
+
R === "message" && (p.value = !1, F.ai += k), R === "finish" && (p.value = !1, E.value = !1);
|
|
4563
4576
|
}
|
|
4564
4577
|
});
|
|
4565
4578
|
} catch (R) {
|
|
4566
|
-
tu.error(`AI响应异常: ${R}`), F.ai = R, p.value = !1,
|
|
4579
|
+
tu.error(`AI响应异常: ${R}`), F.ai = R, p.value = !1, E.value = !1;
|
|
4567
4580
|
}
|
|
4568
4581
|
};
|
|
4569
4582
|
return Cu(
|
|
@@ -4597,8 +4610,8 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4597
4610
|
{ deep: !0 }
|
|
4598
4611
|
), (R, k) => {
|
|
4599
4612
|
var nt;
|
|
4600
|
-
const Y = nn, L =
|
|
4601
|
-
return g(), I(
|
|
4613
|
+
const Y = nn, L = Ce, H = tn, Q = ye, su = Bt, ou = z0, Fu = Je, hu = ee, _u = se("st-customFunction"), pu = ve, bu = _e, cu = Lt, re = Nt, oe = Ee, ae = ke, F0 = Pt, ie = Ut, Ie = ue, A0 = se("st-varietyAutoComplete"), w0 = se("v-md-editor"), T0 = Fn, I0 = en, $0 = se("st-varSelectDialog");
|
|
4614
|
+
return g(), I(U, null, [
|
|
4602
4615
|
A("div", vo, [
|
|
4603
4616
|
A("div", null, [
|
|
4604
4617
|
a.value.sqlEnable && a.value.sqlValue ? (g(), P(L, {
|
|
@@ -4622,7 +4635,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4622
4635
|
]),
|
|
4623
4636
|
_: 1
|
|
4624
4637
|
}, 8, ["title"])) : j("", !0),
|
|
4625
|
-
!a.value.sqlEnable && a.value.list.length ? (g(!0), I(
|
|
4638
|
+
!a.value.sqlEnable && a.value.list.length ? (g(!0), I(U, { key: 1 }, J(a.value.list, (B, au) => (g(), P(L, {
|
|
4626
4639
|
closable: "",
|
|
4627
4640
|
type: "info",
|
|
4628
4641
|
onClose: (z) => _("factorTag", au)
|
|
@@ -4668,7 +4681,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4668
4681
|
_: 1
|
|
4669
4682
|
}, 8, ["icon"])
|
|
4670
4683
|
]),
|
|
4671
|
-
h(
|
|
4684
|
+
h(Ie, {
|
|
4672
4685
|
"modal-class": "factor-dialog",
|
|
4673
4686
|
modelValue: s.value,
|
|
4674
4687
|
"onUpdate:modelValue": k[11] || (k[11] = (B) => s.value = B),
|
|
@@ -4728,13 +4741,13 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4728
4741
|
onInsert: T,
|
|
4729
4742
|
onActionState: k[4] || (k[4] = (...z) => l("actionState", ...z))
|
|
4730
4743
|
}, null, 512), [
|
|
4731
|
-
[
|
|
4744
|
+
[Pe, d.value === "脚本"]
|
|
4732
4745
|
]),
|
|
4733
4746
|
h(Q, {
|
|
4734
4747
|
type: "primary",
|
|
4735
4748
|
size: "small",
|
|
4736
4749
|
loading: c.value,
|
|
4737
|
-
onClick:
|
|
4750
|
+
onClick: N
|
|
4738
4751
|
}, {
|
|
4739
4752
|
default: x(() => [...k[23] || (k[23] = [
|
|
4740
4753
|
q("复制", -1)
|
|
@@ -4763,7 +4776,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4763
4776
|
_: 1
|
|
4764
4777
|
}, 8, ["icon"])
|
|
4765
4778
|
], 512), [
|
|
4766
|
-
[
|
|
4779
|
+
[Pe, d.value === "脚本"]
|
|
4767
4780
|
])
|
|
4768
4781
|
]),
|
|
4769
4782
|
A("div", Do, [
|
|
@@ -4771,7 +4784,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4771
4784
|
key: 0,
|
|
4772
4785
|
size: "small",
|
|
4773
4786
|
type: "primary",
|
|
4774
|
-
onClick:
|
|
4787
|
+
onClick: W
|
|
4775
4788
|
}, {
|
|
4776
4789
|
default: x(() => [...k[26] || (k[26] = [
|
|
4777
4790
|
q("变量选择器", -1)
|
|
@@ -4811,12 +4824,12 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4811
4824
|
h(F0, {
|
|
4812
4825
|
ref_key: "dialogFormRef",
|
|
4813
4826
|
ref: S,
|
|
4814
|
-
model:
|
|
4827
|
+
model: D.value
|
|
4815
4828
|
}, {
|
|
4816
4829
|
default: x(() => [
|
|
4817
|
-
(g(!0), I(
|
|
4830
|
+
(g(!0), I(U, null, J(D.value.list, (B, au) => (g(), I("div", Fo, [
|
|
4818
4831
|
A("span", Ao, X(`条件${au + 1}`), 1),
|
|
4819
|
-
B.key === "compare" ? (g(), I(
|
|
4832
|
+
B.key === "compare" ? (g(), I(U, { key: 0 }, [
|
|
4820
4833
|
u.config.cycleShow ? (g(), P(cu, {
|
|
4821
4834
|
key: 0,
|
|
4822
4835
|
prop: "list." + au + ".cycle",
|
|
@@ -4831,7 +4844,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4831
4844
|
size: "small"
|
|
4832
4845
|
}, {
|
|
4833
4846
|
default: x(() => [
|
|
4834
|
-
(g(!0), I(
|
|
4847
|
+
(g(!0), I(U, null, J(u.config.cycleOptions, ({ label: z, value: uu }) => (g(), P(pu, {
|
|
4835
4848
|
label: z,
|
|
4836
4849
|
value: uu,
|
|
4837
4850
|
key: uu
|
|
@@ -4859,7 +4872,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4859
4872
|
default: x(() => {
|
|
4860
4873
|
var z;
|
|
4861
4874
|
return [
|
|
4862
|
-
(g(!0), I(
|
|
4875
|
+
(g(!0), I(U, null, J((z = u.config.factorOptions) == null ? void 0 : z.filter((uu) => [4].includes(uu.type)), ({ label: uu, value: wu }) => (g(), P(pu, {
|
|
4863
4876
|
label: uu,
|
|
4864
4877
|
value: wu,
|
|
4865
4878
|
key: wu
|
|
@@ -4879,7 +4892,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4879
4892
|
size: "small"
|
|
4880
4893
|
}, {
|
|
4881
4894
|
default: x(() => [
|
|
4882
|
-
(g(), I(
|
|
4895
|
+
(g(), I(U, null, J([">", ">=", "<", "<="], (z) => h(pu, {
|
|
4883
4896
|
label: z,
|
|
4884
4897
|
value: z,
|
|
4885
4898
|
key: z
|
|
@@ -4904,7 +4917,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4904
4917
|
size: "small"
|
|
4905
4918
|
}, {
|
|
4906
4919
|
default: x(() => [
|
|
4907
|
-
(g(!0), I(
|
|
4920
|
+
(g(!0), I(U, null, J(u.config.cycleOptions, ({ label: z, value: uu }) => (g(), P(pu, {
|
|
4908
4921
|
label: z,
|
|
4909
4922
|
value: uu,
|
|
4910
4923
|
key: uu
|
|
@@ -4932,7 +4945,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4932
4945
|
default: x(() => {
|
|
4933
4946
|
var z;
|
|
4934
4947
|
return [
|
|
4935
|
-
(g(!0), I(
|
|
4948
|
+
(g(!0), I(U, null, J((z = u.config.factorOptions) == null ? void 0 : z.filter((uu) => [4].includes(uu.type)), ({ label: uu, value: wu }) => (g(), P(pu, {
|
|
4936
4949
|
label: uu,
|
|
4937
4950
|
value: wu,
|
|
4938
4951
|
key: wu
|
|
@@ -4944,7 +4957,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4944
4957
|
]),
|
|
4945
4958
|
_: 2
|
|
4946
4959
|
}, 1032, ["prop"])
|
|
4947
|
-
], 64)) : (g(), I(
|
|
4960
|
+
], 64)) : (g(), I(U, { key: 1 }, [
|
|
4948
4961
|
u.config.cycleShow ? (g(), P(cu, {
|
|
4949
4962
|
key: 0,
|
|
4950
4963
|
prop: "list." + au + ".cycle",
|
|
@@ -4959,7 +4972,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4959
4972
|
size: "small"
|
|
4960
4973
|
}, {
|
|
4961
4974
|
default: x(() => [
|
|
4962
|
-
(g(!0), I(
|
|
4975
|
+
(g(!0), I(U, null, J(u.config.cycleOptions, ({ label: z, value: uu }) => (g(), P(pu, {
|
|
4963
4976
|
label: z,
|
|
4964
4977
|
value: uu,
|
|
4965
4978
|
key: uu
|
|
@@ -4987,7 +5000,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
4987
5000
|
default: x(() => {
|
|
4988
5001
|
var z;
|
|
4989
5002
|
return [
|
|
4990
|
-
(g(!0), I(
|
|
5003
|
+
(g(!0), I(U, null, J((z = u.config.factorOptions) == null ? void 0 : z.filter((uu) => [1, 3].includes(uu.type)), ({ label: uu, value: wu }) => (g(), P(pu, {
|
|
4991
5004
|
label: uu,
|
|
4992
5005
|
value: wu,
|
|
4993
5006
|
key: wu
|
|
@@ -5059,12 +5072,12 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
5059
5072
|
])]),
|
|
5060
5073
|
_: 1
|
|
5061
5074
|
}, 8, ["icon"]),
|
|
5062
|
-
u.config.sqlShow ? (g(), I(
|
|
5075
|
+
u.config.sqlShow ? (g(), I(U, { key: 0 }, [
|
|
5063
5076
|
h(cu, { label: "SQL功能: " }, {
|
|
5064
5077
|
default: x(() => [
|
|
5065
5078
|
h(hu, {
|
|
5066
|
-
modelValue:
|
|
5067
|
-
"onUpdate:modelValue": k[9] || (k[9] = (B) =>
|
|
5079
|
+
modelValue: D.value.sqlEnable,
|
|
5080
|
+
"onUpdate:modelValue": k[9] || (k[9] = (B) => D.value.sqlEnable = B)
|
|
5068
5081
|
}, {
|
|
5069
5082
|
default: x(() => [
|
|
5070
5083
|
h(oe, {
|
|
@@ -5078,7 +5091,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
5078
5091
|
]),
|
|
5079
5092
|
_: 1
|
|
5080
5093
|
}, 8, ["modelValue"]),
|
|
5081
|
-
|
|
5094
|
+
D.value.sqlEnable ? (g(), P(Q, {
|
|
5082
5095
|
key: 0,
|
|
5083
5096
|
type: "primary",
|
|
5084
5097
|
size: "small",
|
|
@@ -5093,10 +5106,10 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
5093
5106
|
]),
|
|
5094
5107
|
_: 1
|
|
5095
5108
|
}),
|
|
5096
|
-
|
|
5109
|
+
D.value.sqlEnable ? (g(), I(U, { key: 0 }, [
|
|
5097
5110
|
h(ae, {
|
|
5098
|
-
modelValue:
|
|
5099
|
-
"onUpdate:modelValue": k[10] || (k[10] = (B) =>
|
|
5111
|
+
modelValue: D.value.sqlValue,
|
|
5112
|
+
"onUpdate:modelValue": k[10] || (k[10] = (B) => D.value.sqlValue = B),
|
|
5100
5113
|
autosize: { minRows: 4 },
|
|
5101
5114
|
type: "textarea",
|
|
5102
5115
|
style: { "margin-bottom": "10px" }
|
|
@@ -5131,7 +5144,7 @@ const vo = { class: "factor-screen" }, _o = { style: { "white-space": "pre-line"
|
|
|
5131
5144
|
factorType: d.value,
|
|
5132
5145
|
data: (nt = u.config.factorDescriptions) == null ? void 0 : nt.filter((B) => [1, 3].includes(B.type))
|
|
5133
5146
|
}, null, 8, ["visible", "factorType", "data"]),
|
|
5134
|
-
h(
|
|
5147
|
+
h(Ie, {
|
|
5135
5148
|
"modal-class": "test-variety-dialog",
|
|
5136
5149
|
modelValue: f.value,
|
|
5137
5150
|
"onUpdate:modelValue": k[17] || (k[17] = (B) => f.value = B),
|
|
@@ -5197,7 +5210,7 @@ bu8888 石油沥青期货指数`
|
|
|
5197
5210
|
]),
|
|
5198
5211
|
_: 1
|
|
5199
5212
|
}, 8, ["modelValue"]),
|
|
5200
|
-
h(
|
|
5213
|
+
h(Ie, {
|
|
5201
5214
|
"modal-class": "log-dialog",
|
|
5202
5215
|
modelValue: w.value,
|
|
5203
5216
|
"onUpdate:modelValue": k[20] || (k[20] = (B) => w.value = B),
|
|
@@ -5234,7 +5247,7 @@ bu8888 石油沥青期货指数`
|
|
|
5234
5247
|
A("div", Lo, [
|
|
5235
5248
|
h(Q, {
|
|
5236
5249
|
type: "primary",
|
|
5237
|
-
loading:
|
|
5250
|
+
loading: E.value,
|
|
5238
5251
|
onClick: gu
|
|
5239
5252
|
}, {
|
|
5240
5253
|
default: x(() => [...k[34] || (k[34] = [
|
|
@@ -5438,8 +5451,8 @@ ${F.detail}` : F.detail), 3)
|
|
|
5438
5451
|
if (["", null].includes((o = n.range) == null ? void 0 : o[0]) && ["", null].includes((i = n.range) == null ? void 0 : i[1]))
|
|
5439
5452
|
return { valid: !1, message: "格式错误: 请至少填写一个值" };
|
|
5440
5453
|
const c = ((s = n.unit) == null ? void 0 : s[0]) ?? "", p = ((b = n.unit) == null ? void 0 : b[1]) ?? "";
|
|
5441
|
-
let
|
|
5442
|
-
return !["", null].includes(n.range[0]) && !["", null].includes(n.range[1]) ?
|
|
5454
|
+
let E = "";
|
|
5455
|
+
return !["", null].includes(n.range[0]) && !["", null].includes(n.range[1]) ? E = `${t}: ${n.range[0]}${c} ~ ${n.range[1]}${p}` : ["", null].includes(n.range[0]) ? E = `${t}: ≤${n.range[1]}${p}` : E = `${t}: ≥${n.range[0]}${c}`, { valid: !0, tagText: E };
|
|
5443
5456
|
}
|
|
5444
5457
|
if (!n.radio)
|
|
5445
5458
|
return { valid: !1, message: "格式错误: 请选择时间周期" };
|
|
@@ -5500,9 +5513,9 @@ const Ho = { class: "tags" }, Go = ["onClick"], Jo = {
|
|
|
5500
5513
|
r("delete", a);
|
|
5501
5514
|
};
|
|
5502
5515
|
return (a, o) => {
|
|
5503
|
-
const i =
|
|
5516
|
+
const i = Ce;
|
|
5504
5517
|
return g(), I("div", Ho, [
|
|
5505
|
-
(g(!0), I(
|
|
5518
|
+
(g(!0), I(U, null, J(t.tags, (s, b) => (g(), P(i, {
|
|
5506
5519
|
key: s.key,
|
|
5507
5520
|
closable: "",
|
|
5508
5521
|
type: "info",
|
|
@@ -5553,13 +5566,13 @@ const Yo = {
|
|
|
5553
5566
|
}),
|
|
5554
5567
|
emits: ["update:data"],
|
|
5555
5568
|
setup(u) {
|
|
5556
|
-
const e = Lu("clearRow"), t = Pu(u, "data"), r = u, l =
|
|
5569
|
+
const e = Lu("clearRow"), t = Pu(u, "data"), r = u, l = G(!1), n = eu(() => {
|
|
5557
5570
|
var y;
|
|
5558
5571
|
return (y = t.value.find((f) => f.radioType === "1")) == null ? void 0 : y.key;
|
|
5559
5572
|
}), a = eu(() => {
|
|
5560
5573
|
let y = r.config.options;
|
|
5561
5574
|
return r.varietyMarket !== null && r.varietyMarket !== void 0 && (y = y.filter(({ parent: f }) => f.varietyMarketIds.includes(r.varietyMarket))), r.commonOption.length > 0 && (y = y.filter(({ parent: f }) => No(f.commonOptionIds, r.commonOption))), y;
|
|
5562
|
-
}), o =
|
|
5575
|
+
}), o = G({}), i = G({}), s = (y) => {
|
|
5563
5576
|
o.value = y, i.value = jo(y, n.value), l.value = !0;
|
|
5564
5577
|
}, b = () => {
|
|
5565
5578
|
const { valid: y, message: f, tagText: w } = Zo(i.value);
|
|
@@ -5618,7 +5631,7 @@ const Yo = {
|
|
|
5618
5631
|
});
|
|
5619
5632
|
break;
|
|
5620
5633
|
}
|
|
5621
|
-
},
|
|
5634
|
+
}, E = () => {
|
|
5622
5635
|
const { key: y } = o.value, f = i.value;
|
|
5623
5636
|
if (y === "mainFlow")
|
|
5624
5637
|
f.radio = null, f.rankRange = [null, null];
|
|
@@ -5633,7 +5646,7 @@ const Yo = {
|
|
|
5633
5646
|
t.value.length && (t.value = t.value.filter(({ key: y }) => a.value.find((f) => f.key === y)));
|
|
5634
5647
|
}
|
|
5635
5648
|
), (y, f) => {
|
|
5636
|
-
const w = Je, F = ee, S =
|
|
5649
|
+
const w = Je, F = ee, S = ke, D = ye, v = ve, C = _e, M = Ee, O = Nt, V = ue;
|
|
5637
5650
|
return u.config.show && a.value.length ? (g(), I("div", Yo, [
|
|
5638
5651
|
A("div", Qo, [
|
|
5639
5652
|
A("div", Ko, [
|
|
@@ -5643,7 +5656,7 @@ const Yo = {
|
|
|
5643
5656
|
}, "不限")
|
|
5644
5657
|
]),
|
|
5645
5658
|
A("div", Xo, [
|
|
5646
|
-
(g(!0), I(
|
|
5659
|
+
(g(!0), I(U, null, J(a.value, (Z) => (g(), I("span", {
|
|
5647
5660
|
key: Z.key,
|
|
5648
5661
|
onClick: (_) => s(Z)
|
|
5649
5662
|
}, X(Z.label), 9, ua))), 128))
|
|
@@ -5666,10 +5679,10 @@ const Yo = {
|
|
|
5666
5679
|
modelValue: i.value.radioType,
|
|
5667
5680
|
"onUpdate:modelValue": f[1] || (f[1] = (_) => i.value.radioType = _),
|
|
5668
5681
|
style: { "vertical-align": "4px", "margin-left": "12px" },
|
|
5669
|
-
onChange:
|
|
5682
|
+
onChange: E
|
|
5670
5683
|
}, {
|
|
5671
5684
|
default: x(() => [
|
|
5672
|
-
(g(!0), I(
|
|
5685
|
+
(g(!0), I(U, null, J(o.value.radioTypeOptions, (_) => (g(), P(w, {
|
|
5673
5686
|
key: _.value,
|
|
5674
5687
|
value: _.value,
|
|
5675
5688
|
disabled: _.value === "1" && n.value && n.value !== o.value.key
|
|
@@ -5686,7 +5699,7 @@ const Yo = {
|
|
|
5686
5699
|
}),
|
|
5687
5700
|
footer: x(() => [
|
|
5688
5701
|
A("div", Ea, [
|
|
5689
|
-
h(
|
|
5702
|
+
h(D, {
|
|
5690
5703
|
type: "primary",
|
|
5691
5704
|
onClick: b
|
|
5692
5705
|
}, {
|
|
@@ -5700,7 +5713,7 @@ const Yo = {
|
|
|
5700
5713
|
default: x(() => {
|
|
5701
5714
|
var Z;
|
|
5702
5715
|
return [
|
|
5703
|
-
o.value.type ? (g(), I(
|
|
5716
|
+
o.value.type ? (g(), I(U, { key: 1 }, [
|
|
5704
5717
|
o.value.key === "st" ? (g(), I("div", ia, [
|
|
5705
5718
|
h(F, {
|
|
5706
5719
|
modelValue: i.value.st,
|
|
@@ -5721,7 +5734,7 @@ const Yo = {
|
|
|
5721
5734
|
])) : j("", !0),
|
|
5722
5735
|
o.value.key === "tFeaturelncomes" ? (g(), I("div", sa, [
|
|
5723
5736
|
A("div", ca, [
|
|
5724
|
-
h(
|
|
5737
|
+
h(D, {
|
|
5725
5738
|
onClick: f[9] || (f[9] = (_) => p("≤0"))
|
|
5726
5739
|
}, {
|
|
5727
5740
|
default: x(() => [...f[37] || (f[37] = [
|
|
@@ -5729,7 +5742,7 @@ const Yo = {
|
|
|
5729
5742
|
])]),
|
|
5730
5743
|
_: 1
|
|
5731
5744
|
}),
|
|
5732
|
-
h(
|
|
5745
|
+
h(D, {
|
|
5733
5746
|
onClick: f[10] || (f[10] = (_) => p("≥0"))
|
|
5734
5747
|
}, {
|
|
5735
5748
|
default: x(() => [...f[38] || (f[38] = [
|
|
@@ -5737,7 +5750,7 @@ const Yo = {
|
|
|
5737
5750
|
])]),
|
|
5738
5751
|
_: 1
|
|
5739
5752
|
}),
|
|
5740
|
-
h(
|
|
5753
|
+
h(D, {
|
|
5741
5754
|
onClick: f[11] || (f[11] = (_) => p("五年内有四年以上盈利超过5千万"))
|
|
5742
5755
|
}, {
|
|
5743
5756
|
default: x(() => [...f[39] || (f[39] = [
|
|
@@ -5745,7 +5758,7 @@ const Yo = {
|
|
|
5745
5758
|
])]),
|
|
5746
5759
|
_: 1
|
|
5747
5760
|
}),
|
|
5748
|
-
h(
|
|
5761
|
+
h(D, {
|
|
5749
5762
|
onClick: f[12] || (f[12] = (_) => p("≥10亿"))
|
|
5750
5763
|
}, {
|
|
5751
5764
|
default: x(() => [...f[40] || (f[40] = [
|
|
@@ -5753,7 +5766,7 @@ const Yo = {
|
|
|
5753
5766
|
])]),
|
|
5754
5767
|
_: 1
|
|
5755
5768
|
}),
|
|
5756
|
-
h(
|
|
5769
|
+
h(D, {
|
|
5757
5770
|
onClick: f[13] || (f[13] = (_) => p("≥20亿"))
|
|
5758
5771
|
}, {
|
|
5759
5772
|
default: x(() => [...f[41] || (f[41] = [
|
|
@@ -5796,7 +5809,7 @@ const Yo = {
|
|
|
5796
5809
|
style: { width: "100%" }
|
|
5797
5810
|
}, {
|
|
5798
5811
|
default: x(() => [
|
|
5799
|
-
(g(), I(
|
|
5812
|
+
(g(), I(U, null, J([1, 2, 3, 4, 5], (_) => h(v, {
|
|
5800
5813
|
key: _,
|
|
5801
5814
|
label: `${_}分位`,
|
|
5802
5815
|
value: _
|
|
@@ -5815,7 +5828,7 @@ const Yo = {
|
|
|
5815
5828
|
style: { width: "100%" }
|
|
5816
5829
|
}, {
|
|
5817
5830
|
default: x(() => [
|
|
5818
|
-
(g(), I(
|
|
5831
|
+
(g(), I(U, null, J([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (_) => h(v, {
|
|
5819
5832
|
key: _,
|
|
5820
5833
|
label: `${_}分位`,
|
|
5821
5834
|
value: _
|
|
@@ -5834,7 +5847,7 @@ const Yo = {
|
|
|
5834
5847
|
style: { width: "100%" }
|
|
5835
5848
|
}, {
|
|
5836
5849
|
default: x(() => [
|
|
5837
|
-
(g(), I(
|
|
5850
|
+
(g(), I(U, null, J([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (_) => h(v, {
|
|
5838
5851
|
key: _,
|
|
5839
5852
|
label: `${_}分位`,
|
|
5840
5853
|
value: _
|
|
@@ -5879,7 +5892,7 @@ const Yo = {
|
|
|
5879
5892
|
style: { width: "72px" }
|
|
5880
5893
|
}, {
|
|
5881
5894
|
default: x(() => [
|
|
5882
|
-
(g(!0), I(
|
|
5895
|
+
(g(!0), I(U, null, J(o.value.unitOptions, (_) => (g(), P(v, {
|
|
5883
5896
|
label: _,
|
|
5884
5897
|
value: _
|
|
5885
5898
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -5906,7 +5919,7 @@ const Yo = {
|
|
|
5906
5919
|
style: { width: "72px" }
|
|
5907
5920
|
}, {
|
|
5908
5921
|
default: x(() => [
|
|
5909
|
-
(g(!0), I(
|
|
5922
|
+
(g(!0), I(U, null, J(o.value.unitOptions, (_) => (g(), P(v, {
|
|
5910
5923
|
label: _,
|
|
5911
5924
|
value: _
|
|
5912
5925
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -5924,7 +5937,7 @@ const Yo = {
|
|
|
5924
5937
|
"onUpdate:modelValue": f[25] || (f[25] = (_) => i.value.radio = _)
|
|
5925
5938
|
}, {
|
|
5926
5939
|
default: x(() => [
|
|
5927
|
-
(g(!0), I(
|
|
5940
|
+
(g(!0), I(U, null, J($(E0), (_) => (g(), P(M, {
|
|
5928
5941
|
key: _.value,
|
|
5929
5942
|
value: _.value
|
|
5930
5943
|
}, {
|
|
@@ -5944,7 +5957,7 @@ const Yo = {
|
|
|
5944
5957
|
placeholder: "请选择分位"
|
|
5945
5958
|
}, {
|
|
5946
5959
|
default: x(() => [
|
|
5947
|
-
(g(), I(
|
|
5960
|
+
(g(), I(U, null, J([1, 2, 3, 4, 5], (_) => h(v, {
|
|
5948
5961
|
key: _,
|
|
5949
5962
|
label: `${_}分位`,
|
|
5950
5963
|
value: _
|
|
@@ -6008,8 +6021,8 @@ const Yo = {
|
|
|
6008
6021
|
"onUpdate:modelValue": f[30] || (f[30] = (_) => i.value.enumType = _)
|
|
6009
6022
|
}, {
|
|
6010
6023
|
default: x(() => [
|
|
6011
|
-
(g(!0), I(
|
|
6012
|
-
key:
|
|
6024
|
+
(g(!0), I(U, null, J($(D0), (_, W) => (g(), P(M, {
|
|
6025
|
+
key: W,
|
|
6013
6026
|
label: _.label,
|
|
6014
6027
|
value: _.value
|
|
6015
6028
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -6017,7 +6030,7 @@ const Yo = {
|
|
|
6017
6030
|
_: 1
|
|
6018
6031
|
}, 8, ["modelValue"])
|
|
6019
6032
|
])) : j("", !0)
|
|
6020
|
-
], 64)) : (g(), I(
|
|
6033
|
+
], 64)) : (g(), I(U, { key: 0 }, [
|
|
6021
6034
|
i.value.radioType === "1" ? (g(), I("div", ta, [
|
|
6022
6035
|
f[33] || (f[33] = A("span", null, "自定义: ", -1)),
|
|
6023
6036
|
h(S, {
|
|
@@ -6033,9 +6046,9 @@ const Yo = {
|
|
|
6033
6046
|
}, null, 8, ["modelValue"])
|
|
6034
6047
|
])) : (g(), I("div", na, [
|
|
6035
6048
|
(Z = o.value.convenientOptions) != null && Z.length ? (g(), I("div", la, [
|
|
6036
|
-
(g(!0), I(
|
|
6049
|
+
(g(!0), I(U, null, J(o.value.convenientOptions, (_) => (g(), P(D, {
|
|
6037
6050
|
key: _.text,
|
|
6038
|
-
onClick: (
|
|
6051
|
+
onClick: (W) => c(_)
|
|
6039
6052
|
}, {
|
|
6040
6053
|
default: x(() => [
|
|
6041
6054
|
q(X(_.text), 1)
|
|
@@ -6060,7 +6073,7 @@ const Yo = {
|
|
|
6060
6073
|
style: { width: "72px" }
|
|
6061
6074
|
}, {
|
|
6062
6075
|
default: x(() => [
|
|
6063
|
-
(g(!0), I(
|
|
6076
|
+
(g(!0), I(U, null, J(o.value.unitOptions, (_) => (g(), P(v, {
|
|
6064
6077
|
label: _,
|
|
6065
6078
|
value: _
|
|
6066
6079
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -6087,7 +6100,7 @@ const Yo = {
|
|
|
6087
6100
|
style: { width: "72px" }
|
|
6088
6101
|
}, {
|
|
6089
6102
|
default: x(() => [
|
|
6090
|
-
(g(!0), I(
|
|
6103
|
+
(g(!0), I(U, null, J(o.value.unitOptions, (_) => (g(), P(v, {
|
|
6091
6104
|
label: _,
|
|
6092
6105
|
value: _
|
|
6093
6106
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -6132,7 +6145,7 @@ const Aa = {
|
|
|
6132
6145
|
}),
|
|
6133
6146
|
emits: /* @__PURE__ */ $u(["actionState"], ["update:data"]),
|
|
6134
6147
|
setup(u, { emit: e }) {
|
|
6135
|
-
const t = Lu("clearRow"), r = Pu(u, "data"), l = e, n = u, a =
|
|
6148
|
+
const t = Lu("clearRow"), r = Pu(u, "data"), l = e, n = u, a = G(!1), o = G({
|
|
6136
6149
|
id: null,
|
|
6137
6150
|
name: null,
|
|
6138
6151
|
// 字段名
|
|
@@ -6160,7 +6173,7 @@ const Aa = {
|
|
|
6160
6173
|
const { id: m, name: c, value: p } = o.value;
|
|
6161
6174
|
if (!c)
|
|
6162
6175
|
return tu.warning("请选择需要排序的条件");
|
|
6163
|
-
const { label:
|
|
6176
|
+
const { label: E } = i.value.find((f) => f.key === c), y = `${E}-${p === "asc" ? "升序↑" : "降序↓"}`;
|
|
6164
6177
|
if (m === null) {
|
|
6165
6178
|
const f = r.value.findIndex((w) => w.name === c);
|
|
6166
6179
|
f === -1 ? r.value.push({ ...o.value, id: c, tagText: y }) : r.value.splice(f, 1, { ...o.value, id: c, tagText: y });
|
|
@@ -6183,7 +6196,7 @@ const Aa = {
|
|
|
6183
6196
|
r.value.length && (r.value = r.value.filter(({ name: b }) => i.value.find((d) => d.key === b)));
|
|
6184
6197
|
}
|
|
6185
6198
|
), (b, d) => {
|
|
6186
|
-
const m =
|
|
6199
|
+
const m = Ce, c = ye, p = Bt, E = ve, y = _e, f = Lt, w = Ee, F = ee, S = Pt, D = ue;
|
|
6187
6200
|
return u.config.show && i.value.length ? (g(), I("div", Aa, [
|
|
6188
6201
|
A("div", wa, [
|
|
6189
6202
|
d[8] || (d[8] = A("span", null, "组合排序: ", -1)),
|
|
@@ -6192,7 +6205,7 @@ const Aa = {
|
|
|
6192
6205
|
}, "不限")
|
|
6193
6206
|
]),
|
|
6194
6207
|
A("div", Ta, [
|
|
6195
|
-
(g(!0), I(
|
|
6208
|
+
(g(!0), I(U, null, J(r.value, (v, C) => (g(), P(m, {
|
|
6196
6209
|
closable: "",
|
|
6197
6210
|
type: "info",
|
|
6198
6211
|
onClose: (M) => s("delete", C)
|
|
@@ -6219,7 +6232,7 @@ const Aa = {
|
|
|
6219
6232
|
_: 1
|
|
6220
6233
|
}, 8, ["icon"])
|
|
6221
6234
|
]),
|
|
6222
|
-
h(
|
|
6235
|
+
h(D, {
|
|
6223
6236
|
"modal-class": "order-dialog",
|
|
6224
6237
|
modelValue: a.value,
|
|
6225
6238
|
"onUpdate:modelValue": d[7] || (d[7] = (v) => a.value = v),
|
|
@@ -6286,7 +6299,7 @@ const Aa = {
|
|
|
6286
6299
|
"no-match-text": "未匹配到相关条件"
|
|
6287
6300
|
}, {
|
|
6288
6301
|
default: x(() => [
|
|
6289
|
-
(g(!0), I(
|
|
6302
|
+
(g(!0), I(U, null, J(i.value, ({ label: v, key: C }) => (g(), P(E, {
|
|
6290
6303
|
label: v,
|
|
6291
6304
|
value: C,
|
|
6292
6305
|
key: C
|
|
@@ -6337,7 +6350,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6337
6350
|
emits: ["update:data"],
|
|
6338
6351
|
setup(u) {
|
|
6339
6352
|
let e = null;
|
|
6340
|
-
const { request: t } = Lu("stConfig"), r = Pu(u, "data"), l =
|
|
6353
|
+
const { request: t } = Lu("stConfig"), r = Pu(u, "data"), l = G(!1), n = G("person"), a = G(""), o = G({}), i = G([]), s = G([]), b = G(!1), d = G(null), m = G(""), c = eu(() => r.value.map((v) => ({
|
|
6341
6354
|
name: o.value[v],
|
|
6342
6355
|
id: v
|
|
6343
6356
|
})));
|
|
@@ -6348,7 +6361,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6348
6361
|
S();
|
|
6349
6362
|
}, 300);
|
|
6350
6363
|
});
|
|
6351
|
-
const p = (v) => !!s.value.includes(v.id),
|
|
6364
|
+
const p = (v) => !!s.value.includes(v.id), E = (v) => {
|
|
6352
6365
|
p(v) ? s.value = s.value.filter((C) => C !== v.id) : s.value.push(v.id);
|
|
6353
6366
|
}, y = (v, C) => {
|
|
6354
6367
|
switch (v) {
|
|
@@ -6431,17 +6444,17 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6431
6444
|
};
|
|
6432
6445
|
}, {});
|
|
6433
6446
|
})(), (v, C) => {
|
|
6434
|
-
const M =
|
|
6435
|
-
return g(), I(
|
|
6447
|
+
const M = Ce, O = ye, V = Je, Z = ee, _ = ke, W = It, T = ue;
|
|
6448
|
+
return g(), I(U, null, [
|
|
6436
6449
|
A("div", null, [
|
|
6437
|
-
(g(!0), I(
|
|
6450
|
+
(g(!0), I(U, null, J(c.value, (N, ru) => (g(), P(M, {
|
|
6438
6451
|
closable: "",
|
|
6439
6452
|
style: { "margin-right": "10px" },
|
|
6440
6453
|
type: "info",
|
|
6441
6454
|
onClose: (Vu) => y("delete", ru)
|
|
6442
6455
|
}, {
|
|
6443
6456
|
default: x(() => [
|
|
6444
|
-
A("span", null, X(
|
|
6457
|
+
A("span", null, X(N.name), 1)
|
|
6445
6458
|
]),
|
|
6446
6459
|
_: 2
|
|
6447
6460
|
}, 1032, ["onClose"]))), 256)),
|
|
@@ -6451,7 +6464,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6451
6464
|
plain: "",
|
|
6452
6465
|
size: "small",
|
|
6453
6466
|
icon: $(ju),
|
|
6454
|
-
onClick: C[0] || (C[0] = (
|
|
6467
|
+
onClick: C[0] || (C[0] = (N) => y("add"))
|
|
6455
6468
|
}, {
|
|
6456
6469
|
default: x(() => [...C[10] || (C[10] = [
|
|
6457
6470
|
q(" 添加标签 ", -1)
|
|
@@ -6461,7 +6474,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6461
6474
|
]),
|
|
6462
6475
|
h(T, {
|
|
6463
6476
|
modelValue: l.value,
|
|
6464
|
-
"onUpdate:modelValue": C[5] || (C[5] = (
|
|
6477
|
+
"onUpdate:modelValue": C[5] || (C[5] = (N) => l.value = N),
|
|
6465
6478
|
width: "1000"
|
|
6466
6479
|
}, {
|
|
6467
6480
|
header: x(() => [
|
|
@@ -6469,7 +6482,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6469
6482
|
C[11] || (C[11] = q(" 添加标签 ", -1)),
|
|
6470
6483
|
h(Z, {
|
|
6471
6484
|
modelValue: n.value,
|
|
6472
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
6485
|
+
"onUpdate:modelValue": C[1] || (C[1] = (N) => n.value = N),
|
|
6473
6486
|
size: "small",
|
|
6474
6487
|
style: { "margin-left": "8px", "vertical-align": "5px" }
|
|
6475
6488
|
}, {
|
|
@@ -6487,7 +6500,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6487
6500
|
}, 8, ["modelValue"]),
|
|
6488
6501
|
h(_, {
|
|
6489
6502
|
modelValue: a.value,
|
|
6490
|
-
"onUpdate:modelValue": C[2] || (C[2] = (
|
|
6503
|
+
"onUpdate:modelValue": C[2] || (C[2] = (N) => a.value = N),
|
|
6491
6504
|
size: "small",
|
|
6492
6505
|
style: { width: "120px", "margin-left": "8px" },
|
|
6493
6506
|
placeholder: "请输入标签名称"
|
|
@@ -6497,7 +6510,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6497
6510
|
footer: x(() => [
|
|
6498
6511
|
A("div", Ua, [
|
|
6499
6512
|
h(O, {
|
|
6500
|
-
onClick: C[3] || (C[3] = (
|
|
6513
|
+
onClick: C[3] || (C[3] = (N) => l.value = !1)
|
|
6501
6514
|
}, {
|
|
6502
6515
|
default: x(() => [...C[12] || (C[12] = [
|
|
6503
6516
|
q("取消", -1)
|
|
@@ -6506,7 +6519,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6506
6519
|
}),
|
|
6507
6520
|
h(O, {
|
|
6508
6521
|
type: "primary",
|
|
6509
|
-
onClick: C[4] || (C[4] = (
|
|
6522
|
+
onClick: C[4] || (C[4] = (N) => y("submit"))
|
|
6510
6523
|
}, {
|
|
6511
6524
|
default: x(() => [...C[13] || (C[13] = [
|
|
6512
6525
|
q("确定", -1)
|
|
@@ -6517,25 +6530,25 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6517
6530
|
]),
|
|
6518
6531
|
default: x(() => [
|
|
6519
6532
|
A("div", qa, [
|
|
6520
|
-
(g(!0), I(
|
|
6521
|
-
h(
|
|
6522
|
-
checked: p(
|
|
6523
|
-
onChange: (ru) =>
|
|
6533
|
+
(g(!0), I(U, null, J(i.value, (N) => (g(), I("div", Ba, [
|
|
6534
|
+
h(W, {
|
|
6535
|
+
checked: p(N),
|
|
6536
|
+
onChange: (ru) => E(N)
|
|
6524
6537
|
}, {
|
|
6525
6538
|
default: x(() => [
|
|
6526
6539
|
A("div", La, [
|
|
6527
|
-
A("div", Pa, X(
|
|
6540
|
+
A("div", Pa, X(N.name), 1),
|
|
6528
6541
|
n.value === "person" ? (g(), P(O, {
|
|
6529
6542
|
key: 0,
|
|
6530
6543
|
size: "small",
|
|
6531
6544
|
icon: $(X0),
|
|
6532
|
-
onClick: (ru) => w(
|
|
6545
|
+
onClick: (ru) => w(N)
|
|
6533
6546
|
}, null, 8, ["icon", "onClick"])) : j("", !0),
|
|
6534
6547
|
n.value === "person" ? (g(), P(O, {
|
|
6535
6548
|
key: 1,
|
|
6536
6549
|
size: "small",
|
|
6537
6550
|
icon: $(un),
|
|
6538
|
-
onClick: (ru) => f(
|
|
6551
|
+
onClick: (ru) => f(N)
|
|
6539
6552
|
}, null, 8, ["icon", "onClick"])) : j("", !0)
|
|
6540
6553
|
])
|
|
6541
6554
|
]),
|
|
@@ -6548,7 +6561,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6548
6561
|
}, 8, ["modelValue"]),
|
|
6549
6562
|
h(T, {
|
|
6550
6563
|
modelValue: b.value,
|
|
6551
|
-
"onUpdate:modelValue": C[9] || (C[9] = (
|
|
6564
|
+
"onUpdate:modelValue": C[9] || (C[9] = (N) => b.value = N),
|
|
6552
6565
|
title: "编辑标签",
|
|
6553
6566
|
top: "20vh",
|
|
6554
6567
|
width: "600"
|
|
@@ -6556,7 +6569,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6556
6569
|
footer: x(() => [
|
|
6557
6570
|
A("div", ja, [
|
|
6558
6571
|
h(O, {
|
|
6559
|
-
onClick: C[7] || (C[7] = (
|
|
6572
|
+
onClick: C[7] || (C[7] = (N) => b.value = !1)
|
|
6560
6573
|
}, {
|
|
6561
6574
|
default: x(() => [...C[14] || (C[14] = [
|
|
6562
6575
|
q("取消", -1)
|
|
@@ -6565,7 +6578,7 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6565
6578
|
}),
|
|
6566
6579
|
h(O, {
|
|
6567
6580
|
type: "primary",
|
|
6568
|
-
onClick: C[8] || (C[8] = (
|
|
6581
|
+
onClick: C[8] || (C[8] = (N) => F())
|
|
6569
6582
|
}, {
|
|
6570
6583
|
default: x(() => [...C[15] || (C[15] = [
|
|
6571
6584
|
q("确定", -1)
|
|
@@ -6575,9 +6588,9 @@ const qa = { class: "tag-list" }, Ba = { class: "tab-list-item" }, La = { style:
|
|
|
6575
6588
|
])
|
|
6576
6589
|
]),
|
|
6577
6590
|
default: x(() => {
|
|
6578
|
-
var
|
|
6591
|
+
var N;
|
|
6579
6592
|
return [
|
|
6580
|
-
A("div", Na, "原名称:" + X((
|
|
6593
|
+
A("div", Na, "原名称:" + X((N = d.value) == null ? void 0 : N.name), 1),
|
|
6581
6594
|
h(_, {
|
|
6582
6595
|
modelValue: m.value,
|
|
6583
6596
|
"onUpdate:modelValue": C[6] || (C[6] = (ru) => m.value = ru)
|
|
@@ -6648,15 +6661,15 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6648
6661
|
const a = eu(() => {
|
|
6649
6662
|
const m = {};
|
|
6650
6663
|
return Object.keys(st).forEach((c) => {
|
|
6651
|
-
const p = st[c],
|
|
6664
|
+
const p = st[c], E = l.config[c] ?? {}, y = { ...p, ...E };
|
|
6652
6665
|
m[c] = y;
|
|
6653
6666
|
}), m;
|
|
6654
6667
|
}), o = eu(() => a.value.varietyMarket.options), i = eu(() => {
|
|
6655
6668
|
var c;
|
|
6656
6669
|
const { varietyMarket: m } = n.value;
|
|
6657
|
-
return m ? (((c = o.value.find(({ value:
|
|
6670
|
+
return m ? (((c = o.value.find(({ value: E }) => E === m)) == null ? void 0 : c.memo) ?? []).reduce((E, y) => {
|
|
6658
6671
|
const f = a.value.commonOption.options.find((w) => w.value === y);
|
|
6659
|
-
return f &&
|
|
6672
|
+
return f && E.push(f), E;
|
|
6660
6673
|
}, []) : a.value.commonOption.options;
|
|
6661
6674
|
}), s = eu(() => {
|
|
6662
6675
|
const { varietyMarket: m } = n.value;
|
|
@@ -6709,22 +6722,22 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6709
6722
|
() => i.value,
|
|
6710
6723
|
(m) => {
|
|
6711
6724
|
var c;
|
|
6712
|
-
(c = n.value.commonOption) != null && c.length && (n.value.commonOption = n.value.commonOption.filter((p) => m.find(({ value:
|
|
6725
|
+
(c = n.value.commonOption) != null && c.length && (n.value.commonOption = n.value.commonOption.filter((p) => m.find(({ value: E }) => E === p)));
|
|
6713
6726
|
}
|
|
6714
6727
|
), Cu(
|
|
6715
6728
|
() => s.value,
|
|
6716
6729
|
(m) => {
|
|
6717
6730
|
var c;
|
|
6718
|
-
(c = n.value.marketIds) != null && c.length && (n.value.marketIds = n.value.marketIds.filter((p) => m.find(({ value:
|
|
6731
|
+
(c = n.value.marketIds) != null && c.length && (n.value.marketIds = n.value.marketIds.filter((p) => m.find(({ value: E }) => E === p)));
|
|
6719
6732
|
}
|
|
6720
6733
|
), zt("clearRow", d), e({
|
|
6721
6734
|
// 生成接口传参结构的数据
|
|
6722
6735
|
formatData: (m) => {
|
|
6723
|
-
var p,
|
|
6736
|
+
var p, E, y, f, w, F, S;
|
|
6724
6737
|
console.log("%c[st-varietySearch]: 正在生成接口传参...", "color: tomato");
|
|
6725
6738
|
const c = {};
|
|
6726
|
-
if (m.groupId !== void 0 && m.groupId !== null && (c.groupId = m.groupId), m.varietyMarket && (c.exchangeId = String(m.varietyMarket)), (p = m.commonOption) != null && p.length && (c.optionId = m.commonOption.join(",")), (
|
|
6727
|
-
const { jcTranslate:
|
|
6739
|
+
if (m.groupId !== void 0 && m.groupId !== null && (c.groupId = m.groupId), m.varietyMarket && (c.exchangeId = String(m.varietyMarket)), (p = m.commonOption) != null && p.length && (c.optionId = m.commonOption.join(",")), (E = m.marketIds) != null && E.length && (c.marketIds = m.marketIds), (y = m.customTag) != null && y.length && (c.tagIds = m.customTag), (f = a.value.jcTranslate) != null && f.show) {
|
|
6740
|
+
const { jcTranslate: D } = m, { type: v, jcList: C } = D;
|
|
6728
6741
|
switch (v) {
|
|
6729
6742
|
case 1: {
|
|
6730
6743
|
c.translateType = 1, c.jcType = C.join(",");
|
|
@@ -6735,8 +6748,8 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6735
6748
|
}
|
|
6736
6749
|
}
|
|
6737
6750
|
if ((w = a.value.factorScreen) != null && w.show) {
|
|
6738
|
-
const { factorScreen:
|
|
6739
|
-
if ((F =
|
|
6751
|
+
const { factorScreen: D } = m;
|
|
6752
|
+
if ((F = D == null ? void 0 : D.list) != null && F.length && (c.tbFeatureFactorScores = D.list.map((v) => {
|
|
6740
6753
|
switch (v.key) {
|
|
6741
6754
|
case "compare":
|
|
6742
6755
|
return {
|
|
@@ -6754,9 +6767,9 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6754
6767
|
endScore: v.score[1]
|
|
6755
6768
|
};
|
|
6756
6769
|
}
|
|
6757
|
-
})),
|
|
6758
|
-
const v =
|
|
6759
|
-
var _,
|
|
6770
|
+
})), D.sqlEnable) {
|
|
6771
|
+
const v = D.list.reduce((M, O, V) => {
|
|
6772
|
+
var _, W;
|
|
6760
6773
|
const Z = `条件${V + 1}`;
|
|
6761
6774
|
switch (O.key) {
|
|
6762
6775
|
case "compare": {
|
|
@@ -6766,42 +6779,42 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6766
6779
|
}
|
|
6767
6780
|
default: {
|
|
6768
6781
|
let T = `factor_id = ${O.factor} and `;
|
|
6769
|
-
(
|
|
6782
|
+
(W = a.value.factorScreen) != null && W.cycleShow && (T = `freq_id = ${O.cycle} and factor_id = ${O.factor} and `), (O.score[0] || O.score[0] === 0) && (O.score[1] || O.score[1] === 0) ? T += `score >= ${O.score[0]} and score <= ${O.score[1]}` : O.score[0] || O.score[0] === 0 ? T += `score >= ${O.score[0]}` : (O.score[1] || O.score[1] === 0) && (T += `score <= ${O.score[1]}`), M.set(Z, `(${T})`);
|
|
6770
6783
|
}
|
|
6771
6784
|
}
|
|
6772
6785
|
return M;
|
|
6773
6786
|
}, /* @__PURE__ */ new Map([]));
|
|
6774
|
-
let C =
|
|
6787
|
+
let C = D.sqlValue;
|
|
6775
6788
|
for (const [M, O] of v) {
|
|
6776
6789
|
const V = new RegExp(M, "g");
|
|
6777
6790
|
C = C.replace(V, O);
|
|
6778
6791
|
}
|
|
6779
|
-
c.sql = C, c.sqlExpression =
|
|
6792
|
+
c.sql = C, c.sqlExpression = D.sqlValue;
|
|
6780
6793
|
}
|
|
6781
|
-
c.enableSql =
|
|
6794
|
+
c.enableSql = D.sqlEnable === 1 ? 2 : 1, D.factorSelectExpr && (c.factorSelectExpr = D.factorSelectExpr);
|
|
6782
6795
|
}
|
|
6783
6796
|
{
|
|
6784
|
-
const
|
|
6785
|
-
const { key: ru, type: Vu, range: fu, unit: gu, radioType: R, radio: k, rankRange: Y } =
|
|
6797
|
+
const D = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], v = m.commonIndicator.reduce((T, N) => {
|
|
6798
|
+
const { key: ru, type: Vu, range: fu, unit: gu, radioType: R, radio: k, rankRange: Y } = N;
|
|
6786
6799
|
if (ru === "mainFlow") {
|
|
6787
6800
|
let [L, H] = Y, Q = R === "0" ? `netInfow${k}d` : `last${k}DayMainFlowRank`;
|
|
6788
6801
|
T.push({ column: Q, start: L, end: H });
|
|
6789
6802
|
} else if (ru === "auditOpinionType")
|
|
6790
|
-
T.push({ column:
|
|
6803
|
+
T.push({ column: N.key, enumType: N.enumType });
|
|
6791
6804
|
else if (R === "1")
|
|
6792
6805
|
c.sortBy = {
|
|
6793
|
-
column:
|
|
6806
|
+
column: N.key,
|
|
6794
6807
|
start: Y[0] || null,
|
|
6795
6808
|
end: Y[1] || null
|
|
6796
6809
|
};
|
|
6797
6810
|
else if (["dividendYield", "incrementRevenueLyr", "netProfitGrowthRatioLyr", "fiveYearRoe"].includes(ru)) {
|
|
6798
6811
|
let [L, H] = fu;
|
|
6799
6812
|
["", null].includes(L) || (L = L / 100), ["", null].includes(H) || (H = H / 100), T.push({
|
|
6800
|
-
column:
|
|
6813
|
+
column: N.key,
|
|
6801
6814
|
start: L,
|
|
6802
6815
|
end: H
|
|
6803
6816
|
});
|
|
6804
|
-
} else if (Vu === void 0 && !
|
|
6817
|
+
} else if (Vu === void 0 && !D.includes(ru)) {
|
|
6805
6818
|
let [L, H] = fu;
|
|
6806
6819
|
if (!["", null].includes(L))
|
|
6807
6820
|
switch (gu[0]) {
|
|
@@ -6828,7 +6841,7 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6828
6841
|
break;
|
|
6829
6842
|
}
|
|
6830
6843
|
T.push({
|
|
6831
|
-
column:
|
|
6844
|
+
column: N.key,
|
|
6832
6845
|
start: L,
|
|
6833
6846
|
end: H
|
|
6834
6847
|
});
|
|
@@ -6846,9 +6859,9 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6846
6859
|
Z && (c.peTrendTtmLevels = Z.peTrendTtmLevels);
|
|
6847
6860
|
const _ = m.commonIndicator.find(({ key: T }) => T === "perVolumn");
|
|
6848
6861
|
if (_) {
|
|
6849
|
-
const { radioType: T, radio:
|
|
6862
|
+
const { radioType: T, radio: N, levels: ru, range: Vu, unit: fu } = _;
|
|
6850
6863
|
if (T === "2" && (c.perVolumn = {
|
|
6851
|
-
type:
|
|
6864
|
+
type: N,
|
|
6852
6865
|
value: ru
|
|
6853
6866
|
}), T === "0") {
|
|
6854
6867
|
let [gu, R] = Vu;
|
|
@@ -6877,44 +6890,44 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6877
6890
|
});
|
|
6878
6891
|
}
|
|
6879
6892
|
}
|
|
6880
|
-
const
|
|
6893
|
+
const W = {};
|
|
6881
6894
|
m.commonIndicator.forEach((T) => {
|
|
6882
|
-
const { key:
|
|
6883
|
-
switch (
|
|
6895
|
+
const { key: N } = T;
|
|
6896
|
+
switch (N) {
|
|
6884
6897
|
case "expireDays":
|
|
6885
|
-
["", null].includes(T.range[0]) || (
|
|
6898
|
+
["", null].includes(T.range[0]) || (W.minExpireDays = T.range[0]), ["", null].includes(T.range[1]) || (W.maxExpireDays = T.range[1]);
|
|
6886
6899
|
break;
|
|
6887
6900
|
case "virtualRealDegree":
|
|
6888
|
-
["", null].includes(T.range[0]) || (
|
|
6901
|
+
["", null].includes(T.range[0]) || (W.minVirtualRealDegree = T.range[0] / 100), ["", null].includes(T.range[1]) || (W.maxVirtualRealDegree = T.range[1] / 100);
|
|
6889
6902
|
break;
|
|
6890
6903
|
case "yearProfitRate":
|
|
6891
|
-
["", null].includes(T.range[0]) || (
|
|
6904
|
+
["", null].includes(T.range[0]) || (W.minYearProfitRate = T.range[0] / 100), ["", null].includes(T.range[1]) || (W.maxYearProfitRate = T.range[1] / 100);
|
|
6892
6905
|
break;
|
|
6893
6906
|
case "impliedVolatility":
|
|
6894
|
-
["", null].includes(T.range[0]) || (
|
|
6907
|
+
["", null].includes(T.range[0]) || (W.minImpliedVolatility = T.range[0] / 100), ["", null].includes(T.range[1]) || (W.maxImpliedVolatility = T.range[1] / 100);
|
|
6895
6908
|
break;
|
|
6896
6909
|
case "levelMultiplier":
|
|
6897
|
-
["", null].includes(T.range[0]) || (
|
|
6910
|
+
["", null].includes(T.range[0]) || (W.minLevelMultiplier = T.range[0]), ["", null].includes(T.range[1]) || (W.maxLevelMultiplier = T.range[1]);
|
|
6898
6911
|
break;
|
|
6899
6912
|
case "turnover":
|
|
6900
|
-
T.radioType === "0" && !["", null].includes(T.range[0]) && (
|
|
6913
|
+
T.radioType === "0" && !["", null].includes(T.range[0]) && (W.minTurnover = T.range[0] * 1e4), T.radioType === "0" && !["", null].includes(T.range[1]) && (W.maxTurnover = T.range[1] * 1e4);
|
|
6901
6914
|
break;
|
|
6902
6915
|
case "volume":
|
|
6903
|
-
T.radioType === "0" && !["", null].includes(T.range[0]) && (
|
|
6916
|
+
T.radioType === "0" && !["", null].includes(T.range[0]) && (W.minVolume = T.range[0]), T.radioType === "0" && !["", null].includes(T.range[1]) && (W.maxVolume = T.range[1]);
|
|
6904
6917
|
break;
|
|
6905
6918
|
case "openInterest":
|
|
6906
|
-
T.radioType === "0" && !["", null].includes(T.range[0]) && (
|
|
6919
|
+
T.radioType === "0" && !["", null].includes(T.range[0]) && (W.minOpenInterest = T.range[0]), T.radioType === "0" && !["", null].includes(T.range[1]) && (W.maxOpenInterest = T.range[1]);
|
|
6907
6920
|
break;
|
|
6908
6921
|
case "optionsCpType":
|
|
6909
|
-
|
|
6922
|
+
W.optionsCpType = T.optionsCpType;
|
|
6910
6923
|
break;
|
|
6911
6924
|
case "optionGear":
|
|
6912
|
-
["", null].includes(T.range[0]) || (
|
|
6925
|
+
["", null].includes(T.range[0]) || (W.minOptionGear = T.range[0]), ["", null].includes(T.range[1]) || (W.maxOptionGear = T.range[1]);
|
|
6913
6926
|
break;
|
|
6914
6927
|
}
|
|
6915
|
-
}), v.length && (c.query = v), Object.keys(
|
|
6928
|
+
}), v.length && (c.query = v), Object.keys(W).length && (c.searchOptionDto = W);
|
|
6916
6929
|
}
|
|
6917
|
-
return (S = m.compositeOrder) != null && S.length && (c.compositeOrder = m.compositeOrder.map(({ name:
|
|
6930
|
+
return (S = m.compositeOrder) != null && S.length && (c.compositeOrder = m.compositeOrder.map(({ name: D, value: v }) => ({ name: D, value: v }))), console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", c), c;
|
|
6918
6931
|
},
|
|
6919
6932
|
// 重置函数
|
|
6920
6933
|
reset: () => {
|
|
@@ -6948,8 +6961,8 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6948
6961
|
};
|
|
6949
6962
|
}
|
|
6950
6963
|
}), (m, c) => {
|
|
6951
|
-
var S,
|
|
6952
|
-
const p =
|
|
6964
|
+
var S, D, v, C, M, O;
|
|
6965
|
+
const p = Ee, E = ee, y = It, f = O0, w = ve, F = _e;
|
|
6953
6966
|
return g(), I("div", Ga, [
|
|
6954
6967
|
(S = a.value.varietyMarket) != null && S.show ? (g(), I("div", Ja, [
|
|
6955
6968
|
A("div", Wa, [
|
|
@@ -6958,13 +6971,13 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6958
6971
|
onClick: c[0] || (c[0] = (V) => d("varietyMarket"))
|
|
6959
6972
|
}, "不限")
|
|
6960
6973
|
]),
|
|
6961
|
-
h(
|
|
6974
|
+
h(E, {
|
|
6962
6975
|
modelValue: n.value.varietyMarket,
|
|
6963
6976
|
"onUpdate:modelValue": c[1] || (c[1] = (V) => n.value.varietyMarket = V),
|
|
6964
6977
|
size: "small"
|
|
6965
6978
|
}, {
|
|
6966
6979
|
default: x(() => [
|
|
6967
|
-
(g(!0), I(
|
|
6980
|
+
(g(!0), I(U, null, J(o.value, ({ label: V, value: Z }) => (g(), P(p, {
|
|
6968
6981
|
label: V,
|
|
6969
6982
|
value: Z,
|
|
6970
6983
|
key: Z
|
|
@@ -6973,7 +6986,7 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6973
6986
|
_: 1
|
|
6974
6987
|
}, 8, ["modelValue"])
|
|
6975
6988
|
])) : j("", !0),
|
|
6976
|
-
(
|
|
6989
|
+
(D = a.value.commonOption) != null && D.show && i.value.length ? (g(), I("div", Ya, [
|
|
6977
6990
|
A("div", Qa, [
|
|
6978
6991
|
c[18] || (c[18] = A("span", null, "常用选项: ", -1)),
|
|
6979
6992
|
A("span", {
|
|
@@ -6986,7 +6999,7 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
6986
6999
|
size: "small"
|
|
6987
7000
|
}, {
|
|
6988
7001
|
default: x(() => [
|
|
6989
|
-
(g(!0), I(
|
|
7002
|
+
(g(!0), I(U, null, J(i.value, ({ label: V, value: Z }) => (g(), P(y, {
|
|
6990
7003
|
label: V,
|
|
6991
7004
|
value: Z,
|
|
6992
7005
|
key: Z
|
|
@@ -7008,7 +7021,7 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
7008
7021
|
size: "small"
|
|
7009
7022
|
}, {
|
|
7010
7023
|
default: x(() => [
|
|
7011
|
-
(g(!0), I(
|
|
7024
|
+
(g(!0), I(U, null, J(s.value, ({ label: V, value: Z }) => (g(), P(y, {
|
|
7012
7025
|
label: V,
|
|
7013
7026
|
value: Z,
|
|
7014
7027
|
key: Z
|
|
@@ -7036,7 +7049,7 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
7036
7049
|
onClick: c[8] || (c[8] = (V) => d("jcTranslate"))
|
|
7037
7050
|
}, "不限")
|
|
7038
7051
|
]),
|
|
7039
|
-
h(
|
|
7052
|
+
h(E, {
|
|
7040
7053
|
modelValue: n.value.jcTranslate.type,
|
|
7041
7054
|
"onUpdate:modelValue": c[9] || (c[9] = (V) => n.value.jcTranslate.type = V),
|
|
7042
7055
|
size: "small"
|
|
@@ -7068,7 +7081,7 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
7068
7081
|
style: { width: "140px" }
|
|
7069
7082
|
}, {
|
|
7070
7083
|
default: x(() => [
|
|
7071
|
-
(g(!0), I(
|
|
7084
|
+
(g(!0), I(U, null, J(b.value, (V) => (g(), P(w, {
|
|
7072
7085
|
key: V.value,
|
|
7073
7086
|
label: V.label,
|
|
7074
7087
|
value: V.value
|
|
@@ -7076,7 +7089,7 @@ const Ga = { class: "variety-search" }, Ja = {
|
|
|
7076
7089
|
]),
|
|
7077
7090
|
_: 1
|
|
7078
7091
|
}, 8, ["modelValue"]), [
|
|
7079
|
-
[
|
|
7092
|
+
[Pe, n.value.jcTranslate.type === 1]
|
|
7080
7093
|
])
|
|
7081
7094
|
])) : j("", !0),
|
|
7082
7095
|
(O = a.value.factorScreen) != null && O.show ? (g(), I("div", li, [
|