st-comp 0.0.249 → 0.0.250
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/VarietyAiHelper.cjs +2 -2
- package/es/VarietyAiHelper.js +130 -124
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +2 -2
- package/lib/{index-6ac0579e.js → index-b51777a3.js} +208 -202
- package/lib/{python-0432340a.js → python-ac4949ec.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietyAiHelper/index.vue +16 -8
- package/src/pages/VarietySearch/index.vue +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Un, inject as mt, ref as se, computed as ie, unref as F, watch as nt, shallowRef as pl, watchEffect as Ad, readonly as lw, customRef as Bhe, getCurrentScope as zhe, onScopeDispose as qQ, onMounted as
|
|
1
|
+
import { getCurrentInstance as Un, inject as mt, ref as se, computed as ie, unref as F, watch as nt, shallowRef as pl, watchEffect as Ad, readonly as lw, customRef as Bhe, getCurrentScope as zhe, onScopeDispose as qQ, onMounted as Jt, nextTick as Tt, isRef as n2, warn as Vhe, provide as Vi, defineComponent as ze, openBlock as j, createElementBlock as me, mergeProps as Fn, renderSlot as Xe, createElementVNode as de, toRef as wo, onUnmounted as Vo, useAttrs as Hk, useSlots as f3, normalizeClass as Le, normalizeStyle as Gt, createCommentVNode as Pe, Fragment as at, createBlock as Oe, withCtx as oe, resolveDynamicComponent as _i, withModifiers as Rn, toDisplayString as Qe, onBeforeUnmount as Mr, Transition as _u, withDirectives as xi, vShow as lo, createVNode as Z, reactive as Si, onActivated as KQ, onUpdated as Ag, cloneVNode as Hhe, Comment as _N, Text as GQ, Teleport as yN, onBeforeMount as Wk, onDeactivated as Whe, renderList as Et, createTextVNode as it, withKeys as oo, createSlots as Ch, isVNode as qs, toRaw as wN, vModelCheckbox as YQ, toRefs as Rc, vModelRadio as QQ, toHandlers as jhe, h as Mt, resolveComponent as Sn, normalizeProps as jk, guardReactiveProps as $he, TransitionGroup as Uhe, resolveDirective as $k, toHandlerKey as qhe, vModelText as Khe, render as Fp, createApp as Ghe, shallowReactive as ZQ, markRaw as CN, pushScopeId as yu, popScopeId as wu, mergeModels as au, useModel as i2 } from "vue";
|
|
2
2
|
import * as Ro from "echarts";
|
|
3
3
|
const XQ = Symbol(), S5 = "el", Yhe = "is-", S2 = (n, e, t, i, r) => {
|
|
4
4
|
let o = `${n}-${e}`;
|
|
@@ -1414,7 +1414,7 @@ function pme(n, e = 200, t = {}) {
|
|
|
1414
1414
|
return nt(n, () => r()), i;
|
|
1415
1415
|
}
|
|
1416
1416
|
function RZ(n, e = !0) {
|
|
1417
|
-
Un() ?
|
|
1417
|
+
Un() ? Jt(n) : e ? n() : Tt(n);
|
|
1418
1418
|
}
|
|
1419
1419
|
function d9(n, e, t = {}) {
|
|
1420
1420
|
const {
|
|
@@ -2784,7 +2784,7 @@ const v3 = (n) => n, $5e = Ft({
|
|
|
2784
2784
|
var u;
|
|
2785
2785
|
return !!(!(n.label || n.ariaLabel) && e && e.inputIds && ((u = e.inputIds) == null ? void 0 : u.length) <= 1);
|
|
2786
2786
|
});
|
|
2787
|
-
return
|
|
2787
|
+
return Jt(() => {
|
|
2788
2788
|
a = nt([wo(n, "id"), t], ([u, c]) => {
|
|
2789
2789
|
const d = u ?? (c ? void 0 : _a().value);
|
|
2790
2790
|
d !== s.value && (e != null && e.removeInputId && !o() && (s.value && e.removeInputId(s.value), !(i != null && i.value) && !c && d && e.addInputId(d)), s.value = d);
|
|
@@ -3042,7 +3042,7 @@ const e9e = "ElInput", t9e = ze({
|
|
|
3042
3042
|
Tt(() => le()), i.validateEvent && ((B = c == null ? void 0 : c.validate) == null || B.call(c, "change").catch((q) => void 0));
|
|
3043
3043
|
}), nt(A, () => ve()), nt(() => i.type, async () => {
|
|
3044
3044
|
await Tt(), ve(), le();
|
|
3045
|
-
}),
|
|
3045
|
+
}), Jt(() => {
|
|
3046
3046
|
!i.formatter && i.parser, ve(), Tt(le);
|
|
3047
3047
|
}), e({
|
|
3048
3048
|
input: b,
|
|
@@ -3535,7 +3535,7 @@ const d9e = Ft({
|
|
|
3535
3535
|
wrapElement: f
|
|
3536
3536
|
})), KQ(() => {
|
|
3537
3537
|
f.value && (f.value.scrollTop = l, f.value.scrollLeft = u);
|
|
3538
|
-
}),
|
|
3538
|
+
}), Jt(() => {
|
|
3539
3539
|
i.native || Tt(() => {
|
|
3540
3540
|
N();
|
|
3541
3541
|
});
|
|
@@ -3755,7 +3755,7 @@ const D9e = ze({
|
|
|
3755
3755
|
"onBlur",
|
|
3756
3756
|
"onContextmenu"
|
|
3757
3757
|
];
|
|
3758
|
-
return
|
|
3758
|
+
return Jt(() => {
|
|
3759
3759
|
nt(() => t.virtualRef, (d) => {
|
|
3760
3760
|
d && (r.value = ac(d));
|
|
3761
3761
|
}, {
|
|
@@ -3874,7 +3874,7 @@ const I9e = () => {
|
|
|
3874
3874
|
bT.value = "pointer", bw.value = window.performance.now();
|
|
3875
3875
|
}, _B = () => {
|
|
3876
3876
|
bT.value = "keyboard", bw.value = window.performance.now();
|
|
3877
|
-
}, F9e = () => (
|
|
3877
|
+
}, F9e = () => (Jt(() => {
|
|
3878
3878
|
G6 === 0 && (document.addEventListener("mousedown", Y6), document.addEventListener("touchstart", Y6), document.addEventListener("keydown", _B)), G6++;
|
|
3879
3879
|
}), Mr(() => {
|
|
3880
3880
|
G6--, G6 <= 0 && (document.removeEventListener("mousedown", Y6), document.removeEventListener("touchstart", Y6), document.removeEventListener("keydown", _B));
|
|
@@ -3906,7 +3906,7 @@ let S4 = [];
|
|
|
3906
3906
|
const yB = (n) => {
|
|
3907
3907
|
n.code === Pn.esc && S4.forEach((e) => e(n));
|
|
3908
3908
|
}, P9e = (n) => {
|
|
3909
|
-
|
|
3909
|
+
Jt(() => {
|
|
3910
3910
|
S4.length === 0 && document.addEventListener("keydown", yB), Fi && S4.push(n);
|
|
3911
3911
|
}), Mr(() => {
|
|
3912
3912
|
S4 = S4.filter((e) => e !== n), S4.length === 0 && Fi && document.removeEventListener("keydown", yB);
|
|
@@ -4034,7 +4034,7 @@ const yB = (n) => {
|
|
|
4034
4034
|
p.addEventListener(Zx, u), p.dispatchEvent(g), !g.defaultPrevented && (o.value == "keyboard" || !R9e() || p.contains(document.activeElement)) && E0(i ?? document.body), p.removeEventListener(Zx, u), bB.remove(s), i = null, r = null;
|
|
4035
4035
|
}
|
|
4036
4036
|
}
|
|
4037
|
-
return
|
|
4037
|
+
return Jt(() => {
|
|
4038
4038
|
n.trapped && h(), nt(() => n.trapped, (p) => {
|
|
4039
4039
|
p ? h() : f();
|
|
4040
4040
|
});
|
|
@@ -4850,7 +4850,7 @@ const X8e = 0, J8e = (n) => {
|
|
|
4850
4850
|
})), c = ie(() => K8e(n.referenceEl) || F(i)), { attributes: d, state: h, styles: f, update: p, forceUpdate: g, instanceRef: b } = Q8e(c, t, u);
|
|
4851
4851
|
return nt(b, (v) => e.value = v, {
|
|
4852
4852
|
flush: "sync"
|
|
4853
|
-
}),
|
|
4853
|
+
}), Jt(() => {
|
|
4854
4854
|
nt(() => {
|
|
4855
4855
|
var v, _;
|
|
4856
4856
|
return (_ = (v = F(c)) == null ? void 0 : v.getBoundingClientRect) == null ? void 0 : _.call(v);
|
|
@@ -4935,7 +4935,7 @@ const X8e = 0, J8e = (n) => {
|
|
|
4935
4935
|
}, E = () => {
|
|
4936
4936
|
N(!1), i.visible && i.focusOnShow ? o.value = !0 : i.visible === !1 && (o.value = !1);
|
|
4937
4937
|
};
|
|
4938
|
-
return
|
|
4938
|
+
return Jt(() => {
|
|
4939
4939
|
nt(() => i.triggerTargetEl, (L, O) => {
|
|
4940
4940
|
S == null || S(), S = void 0;
|
|
4941
4941
|
const P = F(L || f.value), k = F(O || f.value);
|
|
@@ -5067,7 +5067,7 @@ const r6e = Ti(b9e), LT = Symbol("elTooltip"), MT = Ft({
|
|
|
5067
5067
|
...h.proxy.$route
|
|
5068
5068
|
}), () => {
|
|
5069
5069
|
l.value && s.value && y();
|
|
5070
|
-
}),
|
|
5070
|
+
}), Jt(() => {
|
|
5071
5071
|
w(p[n]);
|
|
5072
5072
|
}), {
|
|
5073
5073
|
hide: y,
|
|
@@ -5582,7 +5582,7 @@ const nl = Ti(N6e), E6e = Ft({
|
|
|
5582
5582
|
});
|
|
5583
5583
|
return Mr(() => {
|
|
5584
5584
|
le == null || le();
|
|
5585
|
-
}),
|
|
5585
|
+
}), Jt(() => {
|
|
5586
5586
|
var ne;
|
|
5587
5587
|
const ce = (ne = l.value) == null ? void 0 : ne.ref;
|
|
5588
5588
|
ce && ([
|
|
@@ -7660,7 +7660,7 @@ const T7e = Ft({
|
|
|
7660
7660
|
}), u = (f) => {
|
|
7661
7661
|
e(Mi, f), Tt(() => e(Tr, f));
|
|
7662
7662
|
};
|
|
7663
|
-
|
|
7663
|
+
Jt(() => {
|
|
7664
7664
|
const f = o.value.querySelectorAll("[type=radio]"), p = f[0];
|
|
7665
7665
|
!Array.from(f).some((g) => g.checked) && p && (p.tabIndex = 0);
|
|
7666
7666
|
});
|
|
@@ -8075,7 +8075,7 @@ const RT = Z7e, rJ = Symbol("dialogInjectionKey"), PB = "dialog-fade", oJ = Ft({
|
|
|
8075
8075
|
const { offsetX: h, offsetY: f } = r;
|
|
8076
8076
|
s(h, f);
|
|
8077
8077
|
};
|
|
8078
|
-
return
|
|
8078
|
+
return Jt(() => {
|
|
8079
8079
|
Ad(() => {
|
|
8080
8080
|
t.value ? l() : u();
|
|
8081
8081
|
});
|
|
@@ -8340,7 +8340,7 @@ const aJ = Ft({
|
|
|
8340
8340
|
})) : u.value && L();
|
|
8341
8341
|
}), nt(() => n.fullscreen, (Y) => {
|
|
8342
8342
|
e.value && (Y ? (s = e.value.style.transform, e.value.style.transform = "") : e.value.style.transform = s);
|
|
8343
|
-
}),
|
|
8343
|
+
}), Jt(() => {
|
|
8344
8344
|
n.modelValue && (u.value = !0, d.value = !0, E());
|
|
8345
8345
|
}), {
|
|
8346
8346
|
afterEnter: D,
|
|
@@ -8819,7 +8819,7 @@ const dJ = "data-el-collection-item", hJ = (n) => {
|
|
|
8819
8819
|
const u = se(), c = mt(i, void 0);
|
|
8820
8820
|
Vi(r, {
|
|
8821
8821
|
collectionItemRef: u
|
|
8822
|
-
}),
|
|
8822
|
+
}), Jt(() => {
|
|
8823
8823
|
const d = F(u);
|
|
8824
8824
|
d && c.itemMap.set(d, {
|
|
8825
8825
|
ref: d,
|
|
@@ -10662,7 +10662,7 @@ var t_e = ze({
|
|
|
10662
10662
|
e.default && n.isAutoWidth && (c === "update" ? s.value = a() : c === "remove" && (t == null || t.deregisterLabelWidth(s.value)));
|
|
10663
10663
|
});
|
|
10664
10664
|
}, u = () => l("update");
|
|
10665
|
-
return
|
|
10665
|
+
return Jt(() => {
|
|
10666
10666
|
u();
|
|
10667
10667
|
}), Mr(() => {
|
|
10668
10668
|
l("remove");
|
|
@@ -10817,7 +10817,7 @@ const n_e = ze({
|
|
|
10817
10817
|
validate: G,
|
|
10818
10818
|
propString: C
|
|
10819
10819
|
});
|
|
10820
|
-
return Vi(Uf, ne),
|
|
10820
|
+
return Vi(Uf, ne), Jt(() => {
|
|
10821
10821
|
t.prop && (r == null || r.addField(ne), p = BP(E.value));
|
|
10822
10822
|
}), Mr(() => {
|
|
10823
10823
|
r == null || r.removeField(ne);
|
|
@@ -11065,7 +11065,7 @@ const o2 = Ti(wbe, {
|
|
|
11065
11065
|
a.userInput === null && I !== A && (a.currentValue = I);
|
|
11066
11066
|
}, { immediate: !0 }), nt(() => i.precision, () => {
|
|
11067
11067
|
a.currentValue = C(i.modelValue);
|
|
11068
|
-
}),
|
|
11068
|
+
}), Jt(() => {
|
|
11069
11069
|
var T;
|
|
11070
11070
|
const { min: A, max: I, modelValue: R } = i, U = (T = s.value) == null ? void 0 : T.input;
|
|
11071
11071
|
if (U.setAttribute("role", "spinbutton"), Number.isFinite(I) ? U.setAttribute("aria-valuemax", String(I)) : U.removeAttribute("aria-valuemax"), Number.isFinite(A) ? U.setAttribute("aria-valuemin", String(A)) : U.removeAttribute("aria-valuemin"), U.setAttribute("aria-valuenow", a.currentValue || a.currentValue === 0 ? String(a.currentValue) : ""), U.setAttribute("aria-disabled", String(p.value)), !Pt(R) && R != null) {
|
|
@@ -11453,7 +11453,7 @@ var WT = ze({
|
|
|
11453
11453
|
}
|
|
11454
11454
|
return t({
|
|
11455
11455
|
opened: C
|
|
11456
|
-
}),
|
|
11456
|
+
}), Jt(() => {
|
|
11457
11457
|
l.addSubMenu(N), u.addSubMenu(N);
|
|
11458
11458
|
}), Mr(() => {
|
|
11459
11459
|
u.removeSubMenu(N), l.removeSubMenu(N);
|
|
@@ -11722,7 +11722,7 @@ var w_e = ze({
|
|
|
11722
11722
|
level: 0
|
|
11723
11723
|
});
|
|
11724
11724
|
}
|
|
11725
|
-
|
|
11725
|
+
Jt(() => {
|
|
11726
11726
|
n.mode === "horizontal" && new f_e(r.vnode.el, l.namespace.value);
|
|
11727
11727
|
}), i({
|
|
11728
11728
|
open: (I) => {
|
|
@@ -11811,7 +11811,7 @@ const C_e = Ft({
|
|
|
11811
11811
|
route: i.route
|
|
11812
11812
|
}), t("click", h));
|
|
11813
11813
|
};
|
|
11814
|
-
return
|
|
11814
|
+
return Jt(() => {
|
|
11815
11815
|
c.addSubMenu(h), o.addMenuItem(h);
|
|
11816
11816
|
}), Mr(() => {
|
|
11817
11817
|
c.removeSubMenu(h), o.removeMenuItem(h);
|
|
@@ -12125,7 +12125,7 @@ const $_e = ze({
|
|
|
12125
12125
|
const l = (a = n.selectRef) == null ? void 0 : a.offsetWidth;
|
|
12126
12126
|
l ? o.value = `${l - u_e}px` : o.value = "";
|
|
12127
12127
|
}
|
|
12128
|
-
return
|
|
12128
|
+
return Jt(() => {
|
|
12129
12129
|
s(), hs(n.selectRef, s);
|
|
12130
12130
|
}), {
|
|
12131
12131
|
ns: e,
|
|
@@ -12427,7 +12427,7 @@ const K_e = (n, e) => {
|
|
|
12427
12427
|
let al;
|
|
12428
12428
|
return nt(() => re.value, (Ke) => {
|
|
12429
12429
|
Ke ? al = hs(p, q).stop : (al == null || al(), al = void 0);
|
|
12430
|
-
}),
|
|
12430
|
+
}), Jt(() => {
|
|
12431
12431
|
Q();
|
|
12432
12432
|
}), {
|
|
12433
12433
|
inputId: C,
|
|
@@ -12672,7 +12672,7 @@ const Q_e = ze({
|
|
|
12672
12672
|
}, l = () => {
|
|
12673
12673
|
r.value = a(i.subTree);
|
|
12674
12674
|
};
|
|
12675
|
-
return
|
|
12675
|
+
return Jt(() => {
|
|
12676
12676
|
l();
|
|
12677
12677
|
}), Cme(t, l, {
|
|
12678
12678
|
attributes: !0,
|
|
@@ -14267,7 +14267,7 @@ const Gye = (n, e = 0) => {
|
|
|
14267
14267
|
}, s = (a) => {
|
|
14268
14268
|
a === "leading" ? Pt(e) ? o(e) : o(e.leading) : fi(e) ? o(e.trailing) : i.value = !1;
|
|
14269
14269
|
};
|
|
14270
|
-
return
|
|
14270
|
+
return Jt(() => s("leading")), nt(() => n.value, (a) => {
|
|
14271
14271
|
s(a ? "leading" : "trailing");
|
|
14272
14272
|
}), i;
|
|
14273
14273
|
}, Yye = ze({
|
|
@@ -14429,7 +14429,7 @@ const $J = (n) => ["", ...Jd].includes(n), Jye = Ft({
|
|
|
14429
14429
|
var w, C;
|
|
14430
14430
|
(C = (w = c.value) == null ? void 0 : w.focus) == null || C.call(w);
|
|
14431
14431
|
};
|
|
14432
|
-
return
|
|
14432
|
+
return Jt(() => {
|
|
14433
14433
|
c.value.checked = v.value;
|
|
14434
14434
|
}), e({
|
|
14435
14435
|
focus: y,
|
|
@@ -15752,7 +15752,7 @@ function QT(n) {
|
|
|
15752
15752
|
const e = Un();
|
|
15753
15753
|
Wk(() => {
|
|
15754
15754
|
t.value.addObserver(e);
|
|
15755
|
-
}),
|
|
15755
|
+
}), Jt(() => {
|
|
15756
15756
|
i(t.value), r(t.value);
|
|
15757
15757
|
}), Ag(() => {
|
|
15758
15758
|
i(t.value), r(t.value);
|
|
@@ -16011,7 +16011,7 @@ var Mwe = ze({
|
|
|
16011
16011
|
};
|
|
16012
16012
|
nt(u, h), Mr(() => {
|
|
16013
16013
|
d && (clearTimeout(d), d = void 0);
|
|
16014
|
-
}),
|
|
16014
|
+
}), Jt(async () => {
|
|
16015
16015
|
await Tt(), await Tt();
|
|
16016
16016
|
const { prop: E, order: L } = n.defaultSort;
|
|
16017
16017
|
i == null || i.store.commit("sort", { prop: E, order: L, init: !0 }), h();
|
|
@@ -16725,7 +16725,7 @@ function Wwe(n, e, t, i) {
|
|
|
16725
16725
|
})), w = () => {
|
|
16726
16726
|
m.value && e.updateElsHeight(), e.updateColumnsWidth(), !(typeof window > "u") && requestAnimationFrame(S);
|
|
16727
16727
|
};
|
|
16728
|
-
|
|
16728
|
+
Jt(async () => {
|
|
16729
16729
|
await Tt(), t.updateColumns(), N(), requestAnimationFrame(w);
|
|
16730
16730
|
const A = i.vnode.el, I = i.refs.headerWrapper;
|
|
16731
16731
|
n.flexible && A && A.parentElement && (A.parentElement.style.minWidth = "0"), l.value = {
|
|
@@ -16839,7 +16839,7 @@ function jwe(n) {
|
|
|
16839
16839
|
s.forEach((a) => a());
|
|
16840
16840
|
}), e.value.observe(r, o);
|
|
16841
16841
|
};
|
|
16842
|
-
|
|
16842
|
+
Jt(() => {
|
|
16843
16843
|
t();
|
|
16844
16844
|
}), Vo(() => {
|
|
16845
16845
|
var i;
|
|
@@ -17811,7 +17811,7 @@ var lee = ze({
|
|
|
17811
17811
|
"filterClassName"
|
|
17812
17812
|
]);
|
|
17813
17813
|
L = awe(x, L), L = uwe(f, d, h)(L), i.value = L, o(), s();
|
|
17814
|
-
}),
|
|
17814
|
+
}), Jt(() => {
|
|
17815
17815
|
var m, y;
|
|
17816
17816
|
const w = c.value, C = l.value ? (m = w.vnode.el) == null ? void 0 : m.children : (y = w.refs.hiddenColumns) == null ? void 0 : y.children, x = () => g(C || [], t.vnode.el);
|
|
17817
17817
|
i.value.getColumnIndex = x, x() > -1 && r.value.store.commit("insertColumn", i.value, l.value ? "columnConfig" in w && w.columnConfig.value : null, v);
|
|
@@ -18732,7 +18732,7 @@ const NCe = ({ atXEndEdge: n, atXStartEdge: e, atYEndEdge: t, atYStartEdge: i },
|
|
|
18732
18732
|
E.value(-1, null, null);
|
|
18733
18733
|
});
|
|
18734
18734
|
};
|
|
18735
|
-
|
|
18735
|
+
Jt(() => {
|
|
18736
18736
|
if (!Fi)
|
|
18737
18737
|
return;
|
|
18738
18738
|
const { initScrollLeft: ae, initScrollTop: te } = g, ue = F(C);
|
|
@@ -19394,7 +19394,7 @@ const $Ce = (n) => {
|
|
|
19394
19394
|
rowKey: h
|
|
19395
19395
|
});
|
|
19396
19396
|
};
|
|
19397
|
-
return
|
|
19397
|
+
return Jt(() => {
|
|
19398
19398
|
F(r) && o(!0);
|
|
19399
19399
|
}), {
|
|
19400
19400
|
isScrolling: e,
|
|
@@ -20091,7 +20091,7 @@ const mxe = Ft({
|
|
|
20091
20091
|
}), vxe = (n) => {
|
|
20092
20092
|
const e = se(), t = se(0), i = se(0);
|
|
20093
20093
|
let r;
|
|
20094
|
-
return
|
|
20094
|
+
return Jt(() => {
|
|
20095
20095
|
r = hs(e, ([o]) => {
|
|
20096
20096
|
const { width: s, height: a } = o.contentRect, { paddingLeft: l, paddingRight: u, paddingTop: c, paddingBottom: d } = getComputedStyle(o.target), h = Number.parseInt(l) || 0, f = Number.parseInt(u) || 0, p = Number.parseInt(c) || 0, g = Number.parseInt(d) || 0;
|
|
20097
20097
|
t.value = s - h - f, i.value = a - p - g;
|
|
@@ -20183,7 +20183,7 @@ const yxe = Ti(gxe), wxe = Ti(_xe), Cxe = Ft({
|
|
|
20183
20183
|
}
|
|
20184
20184
|
g ? (h = t.value) == null || h.setAttribute("title", b) : (f = t.value) == null || f.removeAttribute("title");
|
|
20185
20185
|
};
|
|
20186
|
-
return
|
|
20186
|
+
return Jt(s), Ag(s), (a, l) => (j(), Oe(_i(a.tag), {
|
|
20187
20187
|
ref_key: "textRef",
|
|
20188
20188
|
ref: t,
|
|
20189
20189
|
class: Le(F(o)),
|
|
@@ -20667,7 +20667,7 @@ const Eee = [
|
|
|
20667
20667
|
function E({ code: L }) {
|
|
20668
20668
|
L === Pn.esc && N();
|
|
20669
20669
|
}
|
|
20670
|
-
return
|
|
20670
|
+
return Jt(() => {
|
|
20671
20671
|
D(), u(), d.value = !0;
|
|
20672
20672
|
}), nt(() => i.repeatNum, () => {
|
|
20673
20673
|
S(), D();
|
|
@@ -20980,7 +20980,7 @@ const on = Vme(Kf, "$message"), fE = "_trap-focus-children", hf = [], bz = (n) =
|
|
|
20980
20980
|
}) : (u.editorErrorMessage = "", u.validateError = !1));
|
|
20981
20981
|
});
|
|
20982
20982
|
const w = ie(() => n.draggable), C = ie(() => n.overflow), { isDragging: x } = sJ(g, b, w, C);
|
|
20983
|
-
|
|
20983
|
+
Jt(async () => {
|
|
20984
20984
|
await Tt(), n.closeOnHashChange && window.addEventListener("hashchange", D);
|
|
20985
20985
|
}), Mr(() => {
|
|
20986
20986
|
n.closeOnHashChange && window.removeEventListener("hashchange", D);
|
|
@@ -62214,7 +62214,7 @@ const Nit = { class: "custom-function" }, Eit = { class: "func-option" }, Lit =
|
|
|
62214
62214
|
}
|
|
62215
62215
|
}
|
|
62216
62216
|
};
|
|
62217
|
-
return
|
|
62217
|
+
return Jt(() => {
|
|
62218
62218
|
l();
|
|
62219
62219
|
}), (h, f) => {
|
|
62220
62220
|
const p = Cn, g = Dw, b = Ol, v = Il, _ = zr;
|
|
@@ -63225,7 +63225,7 @@ const wC = (n) => (yu("data-v-b2d15520"), n = n(), wu(), n), Iit = { class: "st-
|
|
|
63225
63225
|
l();
|
|
63226
63226
|
},
|
|
63227
63227
|
{ deep: !0 }
|
|
63228
|
-
),
|
|
63228
|
+
), Jt(() => {
|
|
63229
63229
|
i = Ro.init(s.value), l();
|
|
63230
63230
|
let u = !0;
|
|
63231
63231
|
r = new ResizeObserver(() => {
|
|
@@ -67104,7 +67104,7 @@ const D1t = { class: "st-kline" }, N1t = { class: "st-kline-header" }, E1t = 300
|
|
|
67104
67104
|
g.resize(), u("line");
|
|
67105
67105
|
}), b.observe(p.value), window.addEventListener("keydown", L);
|
|
67106
67106
|
};
|
|
67107
|
-
return
|
|
67107
|
+
return Jt(() => {
|
|
67108
67108
|
O();
|
|
67109
67109
|
}), Vo(() => {
|
|
67110
67110
|
E(), window.removeEventListener("keydown", L), g.dispose(), b.disconnect(), b = null;
|
|
@@ -67200,7 +67200,7 @@ const T1t = { class: "klineSub" }, I1t = { class: "klineSub-tips" }, O1t = {
|
|
|
67200
67200
|
const { data: h, activeIndex: f } = a;
|
|
67201
67201
|
return ((p = h == null ? void 0 : h.subIndicator) == null ? void 0 : p.map((g) => ({ label: g.key, color: g.color, value: g.data[f] || "-" }))) || [];
|
|
67202
67202
|
});
|
|
67203
|
-
|
|
67203
|
+
Jt(() => {
|
|
67204
67204
|
r = Ro.init(l.value);
|
|
67205
67205
|
let h = !0;
|
|
67206
67206
|
o = new ResizeObserver(() => {
|
|
@@ -67513,7 +67513,7 @@ const H1t = {
|
|
|
67513
67513
|
d();
|
|
67514
67514
|
},
|
|
67515
67515
|
{ deep: !0 }
|
|
67516
|
-
),
|
|
67516
|
+
), Jt(() => {
|
|
67517
67517
|
i = Ro.init(l.value), u(), d();
|
|
67518
67518
|
let h = !0;
|
|
67519
67519
|
r = new ResizeObserver(() => {
|
|
@@ -67973,7 +67973,7 @@ const oct = { class: "klineSub" }, sct = { class: "klineSub-tips" }, act = {
|
|
|
67973
67973
|
const { data: f, activeIndex: p } = l;
|
|
67974
67974
|
return ((g = f == null ? void 0 : f.subIndicator) == null ? void 0 : g.map((b) => ({ label: b.key, color: b.color, value: fue(b.data[p]) }))) || [];
|
|
67975
67975
|
});
|
|
67976
|
-
|
|
67976
|
+
Jt(() => {
|
|
67977
67977
|
if (s.value = !0, !u.value)
|
|
67978
67978
|
return;
|
|
67979
67979
|
r = Ro.init(u.value);
|
|
@@ -68618,7 +68618,7 @@ const pue = (n) => (yu("data-v-ae370bef"), n = n(), wu(), n), hct = {
|
|
|
68618
68618
|
}, he = () => {
|
|
68619
68619
|
S.value = [...i];
|
|
68620
68620
|
};
|
|
68621
|
-
return
|
|
68621
|
+
return Jt(() => {
|
|
68622
68622
|
$1t(h.env), I(), window.addEventListener("keydown", U);
|
|
68623
68623
|
}), nt(
|
|
68624
68624
|
() => {
|
|
@@ -68844,7 +68844,7 @@ const Eu = (n) => (yu("data-v-6e5050a9"), n = n(), wu(), n), Dct = { class: "kli
|
|
|
68844
68844
|
} else
|
|
68845
68845
|
l.value = o.cycleOptions;
|
|
68846
68846
|
};
|
|
68847
|
-
return
|
|
68847
|
+
return Jt(() => {
|
|
68848
68848
|
f(), u.value = o.indicatorStore.mainIndicatorList ?? [];
|
|
68849
68849
|
}), nt(
|
|
68850
68850
|
() => o.indicatorStore.mainIndicatorList,
|
|
@@ -69374,7 +69374,7 @@ const ldt = /* @__PURE__ */ xn(adt, [["__scopeId", "data-v-e75a1234"]]), udt = {
|
|
|
69374
69374
|
};
|
|
69375
69375
|
}) : [];
|
|
69376
69376
|
});
|
|
69377
|
-
|
|
69377
|
+
Jt(() => {
|
|
69378
69378
|
r = Ro.init(l.value);
|
|
69379
69379
|
let h = !0;
|
|
69380
69380
|
o = new ResizeObserver(() => {
|
|
@@ -69596,7 +69596,7 @@ const fdt = /* @__PURE__ */ xn(hdt, [["__scopeId", "data-v-0a2f256e"]]), pdt = /
|
|
|
69596
69596
|
d();
|
|
69597
69597
|
},
|
|
69598
69598
|
{ deep: !0 }
|
|
69599
|
-
),
|
|
69599
|
+
), Jt(() => {
|
|
69600
69600
|
i = Ro.init(l.value), u(), d();
|
|
69601
69601
|
let h = !0;
|
|
69602
69602
|
r = new ResizeObserver(() => {
|
|
@@ -70342,7 +70342,7 @@ const Adt = {
|
|
|
70342
70342
|
}
|
|
70343
70343
|
}
|
|
70344
70344
|
};
|
|
70345
|
-
return
|
|
70345
|
+
return Jt(() => {
|
|
70346
70346
|
Tt(() => {
|
|
70347
70347
|
r = Ro.init(o.value), r.on("datazoom", c), u();
|
|
70348
70348
|
});
|
|
@@ -70924,7 +70924,7 @@ const Tdt = { class: "main-chart" }, Idt = { class: "indicator" }, Odt = {
|
|
|
70924
70924
|
});
|
|
70925
70925
|
}
|
|
70926
70926
|
};
|
|
70927
|
-
return
|
|
70927
|
+
return Jt(() => {
|
|
70928
70928
|
const [I, R] = a.initTimeRange;
|
|
70929
70929
|
E({ startTime: I, endTime: R });
|
|
70930
70930
|
}), nt(
|
|
@@ -173966,7 +173966,7 @@ const Gdt = /* @__PURE__ */ xn(Kdt, [["__scopeId", "data-v-88fd5500"]]), Ydt = {
|
|
|
173966
173966
|
u();
|
|
173967
173967
|
},
|
|
173968
173968
|
{ deep: !0 }
|
|
173969
|
-
),
|
|
173969
|
+
), Jt(() => {
|
|
173970
173970
|
i = Ro.init(s.value), Ro.registerMap("China", Xdt), u();
|
|
173971
173971
|
let c = !0;
|
|
173972
173972
|
r = new ResizeObserver(() => {
|
|
@@ -189376,7 +189376,7 @@ class K1e {
|
|
|
189376
189376
|
this.lineRangeMapping = e, this.changes = t;
|
|
189377
189377
|
}
|
|
189378
189378
|
}
|
|
189379
|
-
class
|
|
189379
|
+
class en {
|
|
189380
189380
|
static addRange(e, t) {
|
|
189381
189381
|
let i = 0;
|
|
189382
189382
|
for (; i < t.length && t[i].endExclusive < e.start; )
|
|
@@ -189388,14 +189388,14 @@ class Jt {
|
|
|
189388
189388
|
t.splice(i, 0, e);
|
|
189389
189389
|
else {
|
|
189390
189390
|
const o = Math.min(e.start, t[i].start), s = Math.max(e.endExclusive, t[r - 1].endExclusive);
|
|
189391
|
-
t.splice(i, r - i, new
|
|
189391
|
+
t.splice(i, r - i, new en(o, s));
|
|
189392
189392
|
}
|
|
189393
189393
|
}
|
|
189394
189394
|
static ofLength(e) {
|
|
189395
|
-
return new
|
|
189395
|
+
return new en(0, e);
|
|
189396
189396
|
}
|
|
189397
189397
|
static ofStartAndLength(e, t) {
|
|
189398
|
-
return new
|
|
189398
|
+
return new en(e, e + t);
|
|
189399
189399
|
}
|
|
189400
189400
|
constructor(e, t) {
|
|
189401
189401
|
if (this.start = e, this.endExclusive = t, e > t)
|
|
@@ -189405,13 +189405,13 @@ class Jt {
|
|
|
189405
189405
|
return this.start === this.endExclusive;
|
|
189406
189406
|
}
|
|
189407
189407
|
delta(e) {
|
|
189408
|
-
return new
|
|
189408
|
+
return new en(this.start + e, this.endExclusive + e);
|
|
189409
189409
|
}
|
|
189410
189410
|
deltaStart(e) {
|
|
189411
|
-
return new
|
|
189411
|
+
return new en(this.start + e, this.endExclusive);
|
|
189412
189412
|
}
|
|
189413
189413
|
deltaEnd(e) {
|
|
189414
|
-
return new
|
|
189414
|
+
return new en(this.start, this.endExclusive + e);
|
|
189415
189415
|
}
|
|
189416
189416
|
get length() {
|
|
189417
189417
|
return this.endExclusive - this.start;
|
|
@@ -189427,7 +189427,7 @@ class Jt {
|
|
|
189427
189427
|
* The joined range is the smallest range that contains both ranges.
|
|
189428
189428
|
*/
|
|
189429
189429
|
join(e) {
|
|
189430
|
-
return new
|
|
189430
|
+
return new en(Math.min(this.start, e.start), Math.max(this.endExclusive, e.endExclusive));
|
|
189431
189431
|
}
|
|
189432
189432
|
/**
|
|
189433
189433
|
* for all numbers n: range1.contains(n) and range2.contains(n) <=> range1.intersect(range2).contains(n)
|
|
@@ -189438,7 +189438,7 @@ class Jt {
|
|
|
189438
189438
|
intersect(e) {
|
|
189439
189439
|
const t = Math.max(this.start, e.start), i = Math.min(this.endExclusive, e.endExclusive);
|
|
189440
189440
|
if (t <= i)
|
|
189441
|
-
return new
|
|
189441
|
+
return new en(t, i);
|
|
189442
189442
|
}
|
|
189443
189443
|
intersects(e) {
|
|
189444
189444
|
const t = Math.max(this.start, e.start), i = Math.min(this.endExclusive, e.endExclusive);
|
|
@@ -189493,7 +189493,7 @@ class wR {
|
|
|
189493
189493
|
this._sortedRanges.splice(t, 0, e);
|
|
189494
189494
|
else {
|
|
189495
189495
|
const r = Math.min(e.start, this._sortedRanges[t].start), o = Math.max(e.endExclusive, this._sortedRanges[i - 1].endExclusive);
|
|
189496
|
-
this._sortedRanges.splice(t, i - t, new
|
|
189496
|
+
this._sortedRanges.splice(t, i - t, new en(r, o));
|
|
189497
189497
|
}
|
|
189498
189498
|
}
|
|
189499
189499
|
toString() {
|
|
@@ -189728,7 +189728,7 @@ let Zt = class T0 {
|
|
|
189728
189728
|
* @internal
|
|
189729
189729
|
*/
|
|
189730
189730
|
toOffsetRange() {
|
|
189731
|
-
return new
|
|
189731
|
+
return new en(this.startLineNumber - 1, this.endLineNumberExclusive - 1);
|
|
189732
189732
|
}
|
|
189733
189733
|
};
|
|
189734
189734
|
class Gl {
|
|
@@ -190095,10 +190095,10 @@ function Oq(n) {
|
|
|
190095
190095
|
}
|
|
190096
190096
|
class zd {
|
|
190097
190097
|
static trivial(e, t) {
|
|
190098
|
-
return new zd([new Rr(
|
|
190098
|
+
return new zd([new Rr(en.ofLength(e.length), en.ofLength(t.length))], !1);
|
|
190099
190099
|
}
|
|
190100
190100
|
static trivialTimedOut(e, t) {
|
|
190101
|
-
return new zd([new Rr(
|
|
190101
|
+
return new zd([new Rr(en.ofLength(e.length), en.ofLength(t.length))], !0);
|
|
190102
190102
|
}
|
|
190103
190103
|
constructor(e, t) {
|
|
190104
190104
|
this.diffs = e, this.hitTimeout = t;
|
|
@@ -190112,7 +190112,7 @@ class Rr {
|
|
|
190112
190112
|
}), i;
|
|
190113
190113
|
}
|
|
190114
190114
|
static fromOffsetPairs(e, t) {
|
|
190115
|
-
return new Rr(new
|
|
190115
|
+
return new Rr(new en(e.offset1, t.offset1), new en(e.offset2, t.offset2));
|
|
190116
190116
|
}
|
|
190117
190117
|
constructor(e, t) {
|
|
190118
190118
|
this.seq1Range = e, this.seq2Range = t;
|
|
@@ -190252,7 +190252,7 @@ class W4t {
|
|
|
190252
190252
|
const l = [];
|
|
190253
190253
|
let u = e.length, c = t.length;
|
|
190254
190254
|
function d(p, g) {
|
|
190255
|
-
(p + 1 !== u || g + 1 !== c) && l.push(new Rr(new
|
|
190255
|
+
(p + 1 !== u || g + 1 !== c) && l.push(new Rr(new en(p + 1, u), new en(g + 1, c))), u = p, c = g;
|
|
190256
190256
|
}
|
|
190257
190257
|
let h = e.length - 1, f = t.length - 1;
|
|
190258
190258
|
for (; h >= 0 && f >= 0; )
|
|
@@ -190297,7 +190297,7 @@ class Q1e {
|
|
|
190297
190297
|
let f = r.length, p = o.length;
|
|
190298
190298
|
for (; ; ) {
|
|
190299
190299
|
const g = d ? d.x + d.length : 0, b = d ? d.y + d.length : 0;
|
|
190300
|
-
if ((g !== f || b !== p) && h.push(new Rr(new
|
|
190300
|
+
if ((g !== f || b !== p) && h.push(new Rr(new en(g, f), new en(b, p))), !d)
|
|
190301
190301
|
break;
|
|
190302
190302
|
f = d.x, p = d.y, d = d.prev;
|
|
190303
190303
|
}
|
|
@@ -190706,7 +190706,7 @@ class X_ {
|
|
|
190706
190706
|
constructor(e, t, i) {
|
|
190707
190707
|
this.lines = e, this.considerWhitespaceChanges = i, this.elements = [], this.firstCharOffsetByLine = [], this.additionalOffsetByLine = [];
|
|
190708
190708
|
let r = !1;
|
|
190709
|
-
t.start > 0 && t.endExclusive >= e.length && (t = new
|
|
190709
|
+
t.start > 0 && t.endExclusive >= e.length && (t = new en(t.start - 1, t.endExclusive), r = !0), this.lineRange = t, this.firstCharOffsetByLine[0] = 0;
|
|
190710
190710
|
for (let o = this.lineRange.start; o < this.lineRange.endExclusive; o++) {
|
|
190711
190711
|
let s = e[o], a = 0;
|
|
190712
190712
|
if (r)
|
|
@@ -190727,7 +190727,7 @@ class X_ {
|
|
|
190727
190727
|
return `Slice: "${this.text}"`;
|
|
190728
190728
|
}
|
|
190729
190729
|
get text() {
|
|
190730
|
-
return this.getText(new
|
|
190730
|
+
return this.getText(new en(0, this.length));
|
|
190731
190731
|
}
|
|
190732
190732
|
getText(e) {
|
|
190733
190733
|
return this.elements.slice(e.start, e.endExclusive).map((t) => String.fromCharCode(t)).join("");
|
|
@@ -190768,7 +190768,7 @@ class X_ {
|
|
|
190768
190768
|
let i = e;
|
|
190769
190769
|
for (; i < this.elements.length && vD(this.elements[i]); )
|
|
190770
190770
|
i++;
|
|
190771
|
-
return new
|
|
190771
|
+
return new en(t, i);
|
|
190772
190772
|
}
|
|
190773
190773
|
countLinesIn(e) {
|
|
190774
190774
|
return this.translateOffset(e.endExclusive).lineNumber - this.translateOffset(e.start).lineNumber;
|
|
@@ -190779,7 +190779,7 @@ class X_ {
|
|
|
190779
190779
|
extendToFullLines(e) {
|
|
190780
190780
|
var t, i;
|
|
190781
190781
|
const r = (t = pg(this.firstCharOffsetByLine, (s) => s <= e.start)) !== null && t !== void 0 ? t : 0, o = (i = T4t(this.firstCharOffsetByLine, (s) => e.endExclusive <= s)) !== null && i !== void 0 ? i : this.elements.length;
|
|
190782
|
-
return new
|
|
190782
|
+
return new en(r, o);
|
|
190783
190783
|
}
|
|
190784
190784
|
}
|
|
190785
190785
|
function vD(n) {
|
|
@@ -190898,7 +190898,7 @@ function Vq(n, e, t) {
|
|
|
190898
190898
|
return !0;
|
|
190899
190899
|
if (n.length > 300 && e.length > 300)
|
|
190900
190900
|
return !1;
|
|
190901
|
-
const r = new Q1e().compute(new X_([n], new
|
|
190901
|
+
const r = new Q1e().compute(new X_([n], new en(0, 1), !1), new X_([e], new en(0, 1), !1), t);
|
|
190902
190902
|
let o = 0;
|
|
190903
190903
|
const s = Rr.invert(r.diffs, n.length);
|
|
190904
190904
|
for (const c of s)
|
|
@@ -190954,7 +190954,7 @@ function Hq(n, e, t) {
|
|
|
190954
190954
|
for (u = 1; u <= l && !(n.getElement(a.seq1Range.start - u) !== n.getElement(a.seq1Range.endExclusive - u) || e.getElement(a.seq2Range.start - u) !== e.getElement(a.seq2Range.endExclusive - u)); u++)
|
|
190955
190955
|
;
|
|
190956
190956
|
if (u--, u === l) {
|
|
190957
|
-
i[i.length - 1] = new Rr(new
|
|
190957
|
+
i[i.length - 1] = new Rr(new en(s.seq1Range.start, a.seq1Range.endExclusive - l), new en(s.seq2Range.start, a.seq2Range.endExclusive - l));
|
|
190958
190958
|
continue;
|
|
190959
190959
|
}
|
|
190960
190960
|
a = a.delta(-u);
|
|
@@ -190971,7 +190971,7 @@ function Hq(n, e, t) {
|
|
|
190971
190971
|
for (u = 0; u < l && !(!n.isStronglyEqual(a.seq1Range.start + u, a.seq1Range.endExclusive + u) || !e.isStronglyEqual(a.seq2Range.start + u, a.seq2Range.endExclusive + u)); u++)
|
|
190972
190972
|
;
|
|
190973
190973
|
if (u === l) {
|
|
190974
|
-
i[o + 1] = new Rr(new
|
|
190974
|
+
i[o + 1] = new Rr(new en(a.seq1Range.start + l, s.seq1Range.endExclusive), new en(a.seq2Range.start + l, s.seq2Range.endExclusive));
|
|
190975
190975
|
continue;
|
|
190976
190976
|
}
|
|
190977
190977
|
u > 0 && (a = a.delta(u));
|
|
@@ -190984,7 +190984,7 @@ function npt(n, e, t) {
|
|
|
190984
190984
|
if (!n.getBoundaryScore || !e.getBoundaryScore)
|
|
190985
190985
|
return t;
|
|
190986
190986
|
for (let i = 0; i < t.length; i++) {
|
|
190987
|
-
const r = i > 0 ? t[i - 1] : void 0, o = t[i], s = i + 1 < t.length ? t[i + 1] : void 0, a = new
|
|
190987
|
+
const r = i > 0 ? t[i - 1] : void 0, o = t[i], s = i + 1 < t.length ? t[i + 1] : void 0, a = new en(r ? r.seq1Range.endExclusive + 1 : 0, s ? s.seq1Range.start - 1 : n.length), l = new en(r ? r.seq2Range.endExclusive + 1 : 0, s ? s.seq2Range.start - 1 : e.length);
|
|
190988
190988
|
o.seq1Range.isEmpty ? t[i] = Wq(o, n, e, a, l) : o.seq2Range.isEmpty && (t[i] = Wq(o.swap(), e, n, l, a).swap());
|
|
190989
190989
|
}
|
|
190990
190990
|
return t;
|
|
@@ -191069,7 +191069,7 @@ function spt(n, e, t) {
|
|
|
191069
191069
|
];
|
|
191070
191070
|
for (let a = 1; a < i.length; a++) {
|
|
191071
191071
|
let c = function(h, f) {
|
|
191072
|
-
const p = new
|
|
191072
|
+
const p = new en(u.seq1Range.endExclusive, l.seq1Range.start);
|
|
191073
191073
|
return n.getText(p).replace(/\s/g, "").length <= 4 && (h.seq1Range.length + h.seq2Range.length > 5 || f.seq1Range.length + f.seq2Range.length > 5);
|
|
191074
191074
|
};
|
|
191075
191075
|
const l = i[a], u = s[s.length - 1];
|
|
@@ -191091,7 +191091,7 @@ function apt(n, e, t) {
|
|
|
191091
191091
|
];
|
|
191092
191092
|
for (let l = 1; l < i.length; l++) {
|
|
191093
191093
|
let d = function(f, p) {
|
|
191094
|
-
const g = new
|
|
191094
|
+
const g = new en(c.seq1Range.endExclusive, u.seq1Range.start);
|
|
191095
191095
|
if (n.countLinesIn(g) > 5 || g.length > 500)
|
|
191096
191096
|
return !1;
|
|
191097
191097
|
const v = n.getText(g).trim();
|
|
@@ -191114,9 +191114,9 @@ function apt(n, e, t) {
|
|
|
191114
191114
|
function d(v) {
|
|
191115
191115
|
return v.length > 0 && v.trim().length <= 3 && l.seq1Range.length + l.seq2Range.length > 100;
|
|
191116
191116
|
}
|
|
191117
|
-
const h = n.extendToFullLines(l.seq1Range), f = n.getText(new
|
|
191117
|
+
const h = n.extendToFullLines(l.seq1Range), f = n.getText(new en(h.start, l.seq1Range.start));
|
|
191118
191118
|
d(f) && (c = c.deltaStart(-f.length));
|
|
191119
|
-
const p = n.getText(new
|
|
191119
|
+
const p = n.getText(new en(l.seq1Range.endExclusive, h.endExclusive));
|
|
191120
191120
|
d(p) && (c = c.deltaEnd(p.length));
|
|
191121
191121
|
const g = Rr.fromOffsetPairs(a ? a.getEndExclusives() : Cl.zero, u ? u.getStarts() : Cl.max), b = c.intersect(g);
|
|
191122
191122
|
s.length > 0 && b.getStarts().equals(s[s.length - 1].getEndExclusives()) ? s[s.length - 1] = s[s.length - 1].join(b) : s.push(b);
|
|
@@ -191176,7 +191176,7 @@ class X1e {
|
|
|
191176
191176
|
for (let C = 0; C < w; C++) {
|
|
191177
191177
|
const x = v + C, D = _ + C;
|
|
191178
191178
|
if (e[x] !== t[D]) {
|
|
191179
|
-
const S = this.refineDiff(e, t, new Rr(new
|
|
191179
|
+
const S = this.refineDiff(e, t, new Rr(new en(x, x + 1), new en(D, D + 1)), r, o);
|
|
191180
191180
|
for (const N of S.mappings)
|
|
191181
191181
|
g.push(N);
|
|
191182
191182
|
S.hitTimeout && (p = !0);
|
|
@@ -211015,24 +211015,24 @@ class sde {
|
|
|
211015
211015
|
this.parent = null, this.left = null, this.right = null;
|
|
211016
211016
|
}
|
|
211017
211017
|
}
|
|
211018
|
-
const
|
|
211019
|
-
|
|
211020
|
-
|
|
211021
|
-
|
|
211018
|
+
const tn = new sde(null, 0, 0);
|
|
211019
|
+
tn.parent = tn;
|
|
211020
|
+
tn.left = tn;
|
|
211021
|
+
tn.right = tn;
|
|
211022
211022
|
Ni(
|
|
211023
|
-
|
|
211023
|
+
tn,
|
|
211024
211024
|
0
|
|
211025
211025
|
/* NodeColor.Black */
|
|
211026
211026
|
);
|
|
211027
211027
|
class OD {
|
|
211028
211028
|
constructor() {
|
|
211029
|
-
this.root =
|
|
211029
|
+
this.root = tn, this.requestNormalizeDelta = !1;
|
|
211030
211030
|
}
|
|
211031
211031
|
intervalSearch(e, t, i, r, o, s) {
|
|
211032
|
-
return this.root ===
|
|
211032
|
+
return this.root === tn ? [] : c6t(this, e, t, i, r, o, s);
|
|
211033
211033
|
}
|
|
211034
211034
|
search(e, t, i, r) {
|
|
211035
|
-
return this.root ===
|
|
211035
|
+
return this.root === tn ? [] : u6t(this, e, t, i, r);
|
|
211036
211036
|
}
|
|
211037
211037
|
/**
|
|
211038
211038
|
* Will not set `cachedAbsoluteStart` nor `cachedAbsoluteEnd` on the returned nodes!
|
|
@@ -211079,12 +211079,12 @@ class OD {
|
|
|
211079
211079
|
}
|
|
211080
211080
|
function i6t(n) {
|
|
211081
211081
|
let e = n.root, t = 0;
|
|
211082
|
-
for (; e !==
|
|
211083
|
-
if (e.left !==
|
|
211082
|
+
for (; e !== tn; ) {
|
|
211083
|
+
if (e.left !== tn && !No(e.left)) {
|
|
211084
211084
|
e = e.left;
|
|
211085
211085
|
continue;
|
|
211086
211086
|
}
|
|
211087
|
-
if (e.right !==
|
|
211087
|
+
if (e.right !== tn && !No(e.right)) {
|
|
211088
211088
|
t += e.delta, e = e.right;
|
|
211089
211089
|
continue;
|
|
211090
211090
|
}
|
|
@@ -211120,7 +211120,7 @@ function o6t(n, e, t) {
|
|
|
211120
211120
|
let i = n.root, r = 0, o = 0, s = 0, a = 0;
|
|
211121
211121
|
const l = [];
|
|
211122
211122
|
let u = 0;
|
|
211123
|
-
for (; i !==
|
|
211123
|
+
for (; i !== tn; ) {
|
|
211124
211124
|
if (No(i)) {
|
|
211125
211125
|
bi(i.left, !1), bi(i.right, !1), i === i.parent.right && (r -= i.parent.delta), i = i.parent;
|
|
211126
211126
|
continue;
|
|
@@ -211130,7 +211130,7 @@ function o6t(n, e, t) {
|
|
|
211130
211130
|
bi(i, !0);
|
|
211131
211131
|
continue;
|
|
211132
211132
|
}
|
|
211133
|
-
if (i.left !==
|
|
211133
|
+
if (i.left !== tn) {
|
|
211134
211134
|
i = i.left;
|
|
211135
211135
|
continue;
|
|
211136
211136
|
}
|
|
@@ -211139,7 +211139,7 @@ function o6t(n, e, t) {
|
|
|
211139
211139
|
bi(i, !0);
|
|
211140
211140
|
continue;
|
|
211141
211141
|
}
|
|
211142
|
-
if (a = r + i.end, a >= e && (i.setCachedOffsets(s, a, 0), l[u++] = i), bi(i, !0), i.right !==
|
|
211142
|
+
if (a = r + i.end, a >= e && (i.setCachedOffsets(s, a, 0), l[u++] = i), bi(i, !0), i.right !== tn && !No(i.right)) {
|
|
211143
211143
|
r += i.delta, i = i.right;
|
|
211144
211144
|
continue;
|
|
211145
211145
|
}
|
|
@@ -211149,7 +211149,7 @@ function o6t(n, e, t) {
|
|
|
211149
211149
|
function s6t(n, e, t, i) {
|
|
211150
211150
|
let r = n.root, o = 0, s = 0, a = 0;
|
|
211151
211151
|
const l = i - (t - e);
|
|
211152
|
-
for (; r !==
|
|
211152
|
+
for (; r !== tn; ) {
|
|
211153
211153
|
if (No(r)) {
|
|
211154
211154
|
bi(r.left, !1), bi(r.right, !1), r === r.parent.right && (o -= r.parent.delta), Xh(r), r = r.parent;
|
|
211155
211155
|
continue;
|
|
@@ -211159,7 +211159,7 @@ function s6t(n, e, t, i) {
|
|
|
211159
211159
|
bi(r, !0);
|
|
211160
211160
|
continue;
|
|
211161
211161
|
}
|
|
211162
|
-
if (r.left !==
|
|
211162
|
+
if (r.left !== tn) {
|
|
211163
211163
|
r = r.left;
|
|
211164
211164
|
continue;
|
|
211165
211165
|
}
|
|
@@ -211168,7 +211168,7 @@ function s6t(n, e, t, i) {
|
|
|
211168
211168
|
r.start += l, r.end += l, r.delta += l, (r.delta < -1073741824 || r.delta > 1073741824) && (n.requestNormalizeDelta = !0), bi(r, !0);
|
|
211169
211169
|
continue;
|
|
211170
211170
|
}
|
|
211171
|
-
if (bi(r, !0), r.right !==
|
|
211171
|
+
if (bi(r, !0), r.right !== tn && !No(r.right)) {
|
|
211172
211172
|
o += r.delta, r = r.right;
|
|
211173
211173
|
continue;
|
|
211174
211174
|
}
|
|
@@ -211179,16 +211179,16 @@ function a6t(n, e) {
|
|
|
211179
211179
|
let t = n.root;
|
|
211180
211180
|
const i = [];
|
|
211181
211181
|
let r = 0;
|
|
211182
|
-
for (; t !==
|
|
211182
|
+
for (; t !== tn; ) {
|
|
211183
211183
|
if (No(t)) {
|
|
211184
211184
|
bi(t.left, !1), bi(t.right, !1), t = t.parent;
|
|
211185
211185
|
continue;
|
|
211186
211186
|
}
|
|
211187
|
-
if (t.left !==
|
|
211187
|
+
if (t.left !== tn && !No(t.left)) {
|
|
211188
211188
|
t = t.left;
|
|
211189
211189
|
continue;
|
|
211190
211190
|
}
|
|
211191
|
-
if (t.ownerId === e && (i[r++] = t), bi(t, !0), t.right !==
|
|
211191
|
+
if (t.ownerId === e && (i[r++] = t), bi(t, !0), t.right !== tn && !No(t.right)) {
|
|
211192
211192
|
t = t.right;
|
|
211193
211193
|
continue;
|
|
211194
211194
|
}
|
|
@@ -211199,16 +211199,16 @@ function l6t(n) {
|
|
|
211199
211199
|
let e = n.root;
|
|
211200
211200
|
const t = [];
|
|
211201
211201
|
let i = 0;
|
|
211202
|
-
for (; e !==
|
|
211202
|
+
for (; e !== tn; ) {
|
|
211203
211203
|
if (No(e)) {
|
|
211204
211204
|
bi(e.left, !1), bi(e.right, !1), e = e.parent;
|
|
211205
211205
|
continue;
|
|
211206
211206
|
}
|
|
211207
|
-
if (e.left !==
|
|
211207
|
+
if (e.left !== tn && !No(e.left)) {
|
|
211208
211208
|
e = e.left;
|
|
211209
211209
|
continue;
|
|
211210
211210
|
}
|
|
211211
|
-
if (e.right !==
|
|
211211
|
+
if (e.right !== tn && !No(e.right)) {
|
|
211212
211212
|
e = e.right;
|
|
211213
211213
|
continue;
|
|
211214
211214
|
}
|
|
@@ -211220,18 +211220,18 @@ function u6t(n, e, t, i, r) {
|
|
|
211220
211220
|
let o = n.root, s = 0, a = 0, l = 0;
|
|
211221
211221
|
const u = [];
|
|
211222
211222
|
let c = 0;
|
|
211223
|
-
for (; o !==
|
|
211223
|
+
for (; o !== tn; ) {
|
|
211224
211224
|
if (No(o)) {
|
|
211225
211225
|
bi(o.left, !1), bi(o.right, !1), o === o.parent.right && (s -= o.parent.delta), o = o.parent;
|
|
211226
211226
|
continue;
|
|
211227
211227
|
}
|
|
211228
|
-
if (o.left !==
|
|
211228
|
+
if (o.left !== tn && !No(o.left)) {
|
|
211229
211229
|
o = o.left;
|
|
211230
211230
|
continue;
|
|
211231
211231
|
}
|
|
211232
211232
|
a = s + o.start, l = s + o.end, o.setCachedOffsets(a, l, i);
|
|
211233
211233
|
let d = !0;
|
|
211234
|
-
if (e && o.ownerId && o.ownerId !== e && (d = !1), t && rde(o) && (d = !1), r && !ode(o) && (d = !1), d && (u[c++] = o), bi(o, !0), o.right !==
|
|
211234
|
+
if (e && o.ownerId && o.ownerId !== e && (d = !1), t && rde(o) && (d = !1), r && !ode(o) && (d = !1), d && (u[c++] = o), bi(o, !0), o.right !== tn && !No(o.right)) {
|
|
211235
211235
|
s += o.delta, o = o.right;
|
|
211236
211236
|
continue;
|
|
211237
211237
|
}
|
|
@@ -211242,7 +211242,7 @@ function c6t(n, e, t, i, r, o, s) {
|
|
|
211242
211242
|
let a = n.root, l = 0, u = 0, c = 0, d = 0;
|
|
211243
211243
|
const h = [];
|
|
211244
211244
|
let f = 0;
|
|
211245
|
-
for (; a !==
|
|
211245
|
+
for (; a !== tn; ) {
|
|
211246
211246
|
if (No(a)) {
|
|
211247
211247
|
bi(a.left, !1), bi(a.right, !1), a === a.parent.right && (l -= a.parent.delta), a = a.parent;
|
|
211248
211248
|
continue;
|
|
@@ -211252,7 +211252,7 @@ function c6t(n, e, t, i, r, o, s) {
|
|
|
211252
211252
|
bi(a, !0);
|
|
211253
211253
|
continue;
|
|
211254
211254
|
}
|
|
211255
|
-
if (a.left !==
|
|
211255
|
+
if (a.left !== tn) {
|
|
211256
211256
|
a = a.left;
|
|
211257
211257
|
continue;
|
|
211258
211258
|
}
|
|
@@ -211266,7 +211266,7 @@ function c6t(n, e, t, i, r, o, s) {
|
|
|
211266
211266
|
let p = !0;
|
|
211267
211267
|
i && a.ownerId && a.ownerId !== i && (p = !1), r && rde(a) && (p = !1), s && !ode(a) && (p = !1), p && (h[f++] = a);
|
|
211268
211268
|
}
|
|
211269
|
-
if (bi(a, !0), a.right !==
|
|
211269
|
+
if (bi(a, !0), a.right !== tn && !No(a.right)) {
|
|
211270
211270
|
l += a.delta, a = a.right;
|
|
211271
211271
|
continue;
|
|
211272
211272
|
}
|
|
@@ -211274,8 +211274,8 @@ function c6t(n, e, t, i, r, o, s) {
|
|
|
211274
211274
|
return bi(n.root, !1), h;
|
|
211275
211275
|
}
|
|
211276
211276
|
function rG(n, e) {
|
|
211277
|
-
if (n.root ===
|
|
211278
|
-
return e.parent =
|
|
211277
|
+
if (n.root === tn)
|
|
211278
|
+
return e.parent = tn, e.left = tn, e.right = tn, Ni(
|
|
211279
211279
|
e,
|
|
211280
211280
|
0
|
|
211281
211281
|
/* NodeColor.Black */
|
|
@@ -211341,17 +211341,17 @@ function d6t(n, e) {
|
|
|
211341
211341
|
const r = e.start, o = e.end;
|
|
211342
211342
|
for (; ; )
|
|
211343
211343
|
if (f6t(r, o, i.start + t, i.end + t) < 0)
|
|
211344
|
-
if (i.left ===
|
|
211344
|
+
if (i.left === tn) {
|
|
211345
211345
|
e.start -= t, e.end -= t, e.maxEnd -= t, i.left = e;
|
|
211346
211346
|
break;
|
|
211347
211347
|
} else
|
|
211348
211348
|
i = i.left;
|
|
211349
|
-
else if (i.right ===
|
|
211349
|
+
else if (i.right === tn) {
|
|
211350
211350
|
e.start -= t + i.delta, e.end -= t + i.delta, e.maxEnd -= t + i.delta, i.right = e;
|
|
211351
211351
|
break;
|
|
211352
211352
|
} else
|
|
211353
211353
|
t += i.delta, i = i.right;
|
|
211354
|
-
e.parent = i, e.left =
|
|
211354
|
+
e.parent = i, e.left = tn, e.right = tn, Ni(
|
|
211355
211355
|
e,
|
|
211356
211356
|
1
|
|
211357
211357
|
/* NodeColor.Red */
|
|
@@ -211359,16 +211359,16 @@ function d6t(n, e) {
|
|
|
211359
211359
|
}
|
|
211360
211360
|
function oG(n, e) {
|
|
211361
211361
|
let t, i;
|
|
211362
|
-
if (e.left ===
|
|
211362
|
+
if (e.left === tn ? (t = e.right, i = e, t.delta += e.delta, (t.delta < -1073741824 || t.delta > 1073741824) && (n.requestNormalizeDelta = !0), t.start += e.delta, t.end += e.delta) : e.right === tn ? (t = e.left, i = e) : (i = h6t(e.right), t = i.right, t.start += i.delta, t.end += i.delta, t.delta += i.delta, (t.delta < -1073741824 || t.delta > 1073741824) && (n.requestNormalizeDelta = !0), i.start += e.delta, i.end += e.delta, i.delta = e.delta, (i.delta < -1073741824 || i.delta > 1073741824) && (n.requestNormalizeDelta = !0)), i === n.root) {
|
|
211363
211363
|
n.root = t, Ni(
|
|
211364
211364
|
t,
|
|
211365
211365
|
0
|
|
211366
211366
|
/* NodeColor.Black */
|
|
211367
|
-
), e.detach(), RD(), Xh(t), n.root.parent =
|
|
211367
|
+
), e.detach(), RD(), Xh(t), n.root.parent = tn;
|
|
211368
211368
|
return;
|
|
211369
211369
|
}
|
|
211370
211370
|
const r = Os(i) === 1;
|
|
211371
|
-
if (i === i.parent.left ? i.parent.left = t : i.parent.right = t, i === e ? t.parent = i.parent : (i.parent === e ? t.parent = i : t.parent = i.parent, i.left = e.left, i.right = e.right, i.parent = e.parent, Ni(i, Os(e)), e === n.root ? n.root = i : e === e.parent.left ? e.parent.left = i : e.parent.right = i, i.left !==
|
|
211371
|
+
if (i === i.parent.left ? i.parent.left = t : i.parent.right = t, i === e ? t.parent = i.parent : (i.parent === e ? t.parent = i : t.parent = i.parent, i.left = e.left, i.right = e.right, i.parent = e.parent, Ni(i, Os(e)), e === n.root ? n.root = i : e === e.parent.left ? e.parent.left = i : e.parent.right = i, i.left !== tn && (i.left.parent = i), i.right !== tn && (i.right.parent = i)), e.detach(), r) {
|
|
211372
211372
|
R0(t.parent), i !== e && (R0(i), R0(i.parent)), RD();
|
|
211373
211373
|
return;
|
|
211374
211374
|
}
|
|
@@ -211439,28 +211439,28 @@ function oG(n, e) {
|
|
|
211439
211439
|
), RD();
|
|
211440
211440
|
}
|
|
211441
211441
|
function h6t(n) {
|
|
211442
|
-
for (; n.left !==
|
|
211442
|
+
for (; n.left !== tn; )
|
|
211443
211443
|
n = n.left;
|
|
211444
211444
|
return n;
|
|
211445
211445
|
}
|
|
211446
211446
|
function RD() {
|
|
211447
|
-
|
|
211447
|
+
tn.parent = tn, tn.delta = 0, tn.start = 0, tn.end = 0;
|
|
211448
211448
|
}
|
|
211449
211449
|
function K5(n, e) {
|
|
211450
211450
|
const t = e.right;
|
|
211451
|
-
t.delta += e.delta, (t.delta < -1073741824 || t.delta > 1073741824) && (n.requestNormalizeDelta = !0), t.start += e.delta, t.end += e.delta, e.right = t.left, t.left !==
|
|
211451
|
+
t.delta += e.delta, (t.delta < -1073741824 || t.delta > 1073741824) && (n.requestNormalizeDelta = !0), t.start += e.delta, t.end += e.delta, e.right = t.left, t.left !== tn && (t.left.parent = e), t.parent = e.parent, e.parent === tn ? n.root = t : e === e.parent.left ? e.parent.left = t : e.parent.right = t, t.left = e, e.parent = t, Xh(e), Xh(t);
|
|
211452
211452
|
}
|
|
211453
211453
|
function G5(n, e) {
|
|
211454
211454
|
const t = e.left;
|
|
211455
|
-
e.delta -= t.delta, (e.delta < -1073741824 || e.delta > 1073741824) && (n.requestNormalizeDelta = !0), e.start -= t.delta, e.end -= t.delta, e.left = t.right, t.right !==
|
|
211455
|
+
e.delta -= t.delta, (e.delta < -1073741824 || e.delta > 1073741824) && (n.requestNormalizeDelta = !0), e.start -= t.delta, e.end -= t.delta, e.left = t.right, t.right !== tn && (t.right.parent = e), t.parent = e.parent, e.parent === tn ? n.root = t : e === e.parent.right ? e.parent.right = t : e.parent.left = t, t.right = e, e.parent = t, Xh(e), Xh(t);
|
|
211456
211456
|
}
|
|
211457
211457
|
function ade(n) {
|
|
211458
211458
|
let e = n.end;
|
|
211459
|
-
if (n.left !==
|
|
211459
|
+
if (n.left !== tn) {
|
|
211460
211460
|
const t = n.left.maxEnd;
|
|
211461
211461
|
t > e && (e = t);
|
|
211462
211462
|
}
|
|
211463
|
-
if (n.right !==
|
|
211463
|
+
if (n.right !== tn) {
|
|
211464
211464
|
const t = n.right.maxEnd + n.delta;
|
|
211465
211465
|
t > e && (e = t);
|
|
211466
211466
|
}
|
|
@@ -211470,7 +211470,7 @@ function Xh(n) {
|
|
|
211470
211470
|
n.maxEnd = ade(n);
|
|
211471
211471
|
}
|
|
211472
211472
|
function R0(n) {
|
|
211473
|
-
for (; n !==
|
|
211473
|
+
for (; n !== tn; ) {
|
|
211474
211474
|
const e = ade(n);
|
|
211475
211475
|
if (n.maxEnd === e)
|
|
211476
211476
|
return;
|
|
@@ -212902,7 +212902,7 @@ class S6t extends x6t {
|
|
|
212902
212902
|
}
|
|
212903
212903
|
class aA {
|
|
212904
212904
|
constructor(e) {
|
|
212905
|
-
this.lineCount = e, this._tokenizationStateStore = new D6t(), this._invalidEndStatesLineNumbers = new N6t(), this._invalidEndStatesLineNumbers.addRange(new
|
|
212905
|
+
this.lineCount = e, this._tokenizationStateStore = new D6t(), this._invalidEndStatesLineNumbers = new N6t(), this._invalidEndStatesLineNumbers.addRange(new en(1, e + 1));
|
|
212906
212906
|
}
|
|
212907
212907
|
getEndState(e) {
|
|
212908
212908
|
return this._tokenizationStateStore.getEndState(e);
|
|
@@ -212915,10 +212915,10 @@ class aA {
|
|
|
212915
212915
|
throw new Ji("Cannot set null/undefined state");
|
|
212916
212916
|
this._invalidEndStatesLineNumbers.delete(e);
|
|
212917
212917
|
const i = this._tokenizationStateStore.setEndState(e, t);
|
|
212918
|
-
return i && e < this.lineCount && this._invalidEndStatesLineNumbers.addRange(new
|
|
212918
|
+
return i && e < this.lineCount && this._invalidEndStatesLineNumbers.addRange(new en(e + 1, e + 2)), i;
|
|
212919
212919
|
}
|
|
212920
212920
|
acceptChange(e, t) {
|
|
212921
|
-
this.lineCount += t - e.length, this._tokenizationStateStore.acceptChange(e, t), this._invalidEndStatesLineNumbers.addRangeAndResize(new
|
|
212921
|
+
this.lineCount += t - e.length, this._tokenizationStateStore.acceptChange(e, t), this._invalidEndStatesLineNumbers.addRangeAndResize(new en(e.startLineNumber, e.endLineNumberExclusive), t);
|
|
212922
212922
|
}
|
|
212923
212923
|
acceptChanges(e) {
|
|
212924
212924
|
for (const t of e) {
|
|
@@ -212927,7 +212927,7 @@ class aA {
|
|
|
212927
212927
|
}
|
|
212928
212928
|
}
|
|
212929
212929
|
invalidateEndStateRange(e) {
|
|
212930
|
-
this._invalidEndStatesLineNumbers.addRange(new
|
|
212930
|
+
this._invalidEndStatesLineNumbers.addRange(new en(e.startLineNumber, e.endLineNumberExclusive));
|
|
212931
212931
|
}
|
|
212932
212932
|
getFirstInvalidEndStateLineNumber() {
|
|
212933
212933
|
return this._invalidEndStatesLineNumbers.min;
|
|
@@ -212978,11 +212978,11 @@ class N6t {
|
|
|
212978
212978
|
const t = this._ranges.findIndex((i) => i.contains(e));
|
|
212979
212979
|
if (t !== -1) {
|
|
212980
212980
|
const i = this._ranges[t];
|
|
212981
|
-
i.start === e ? i.endExclusive === e + 1 ? this._ranges.splice(t, 1) : this._ranges[t] = new
|
|
212981
|
+
i.start === e ? i.endExclusive === e + 1 ? this._ranges.splice(t, 1) : this._ranges[t] = new en(e + 1, i.endExclusive) : i.endExclusive === e + 1 ? this._ranges[t] = new en(i.start, e) : this._ranges.splice(t, 1, new en(i.start, e), new en(e + 1, i.endExclusive));
|
|
212982
212982
|
}
|
|
212983
212983
|
}
|
|
212984
212984
|
addRange(e) {
|
|
212985
|
-
|
|
212985
|
+
en.addRange(e, this._ranges);
|
|
212986
212986
|
}
|
|
212987
212987
|
addRangeAndResize(e, t) {
|
|
212988
212988
|
let i = 0;
|
|
@@ -212995,10 +212995,10 @@ class N6t {
|
|
|
212995
212995
|
for (let s = r; s < this._ranges.length; s++)
|
|
212996
212996
|
this._ranges[s] = this._ranges[s].delta(o);
|
|
212997
212997
|
if (i === r) {
|
|
212998
|
-
const s = new
|
|
212998
|
+
const s = new en(e.start, e.start + t);
|
|
212999
212999
|
s.isEmpty || this._ranges.splice(i, 0, s);
|
|
213000
213000
|
} else {
|
|
213001
|
-
const s = Math.min(e.start, this._ranges[i].start), a = Math.max(e.endExclusive, this._ranges[r - 1].endExclusive), l = new
|
|
213001
|
+
const s = Math.min(e.start, this._ranges[i].start), a = Math.max(e.endExclusive, this._ranges[r - 1].endExclusive), l = new en(s, a + o);
|
|
213002
213002
|
l.isEmpty ? this._ranges.splice(i, r - i) : this._ranges.splice(i, r - i, l);
|
|
213003
213003
|
}
|
|
213004
213004
|
}
|
|
@@ -242693,7 +242693,7 @@ let yk = class extends Ge {
|
|
|
242693
242693
|
_goToGroupDelta(e, t) {
|
|
242694
242694
|
const i = this.groups.get();
|
|
242695
242695
|
!i || i.length <= 1 || HF(t, (r) => {
|
|
242696
|
-
this._currentGroupIdx.set(
|
|
242696
|
+
this._currentGroupIdx.set(en.ofLength(i.length).clipCyclic(this._currentGroupIdx.get() + e), r), this._currentElementIdx.set(0, r);
|
|
242697
242697
|
});
|
|
242698
242698
|
}
|
|
242699
242699
|
nextGroup(e) {
|
|
@@ -242705,7 +242705,7 @@ let yk = class extends Ge {
|
|
|
242705
242705
|
_goToLineDelta(e) {
|
|
242706
242706
|
const t = this.currentGroup.get();
|
|
242707
242707
|
!t || t.lines.length <= 1 || ao((i) => {
|
|
242708
|
-
this._currentElementIdx.set(
|
|
242708
|
+
this._currentElementIdx.set(en.ofLength(t.lines.length).clip(this._currentElementIdx.get() + e), i);
|
|
242709
242709
|
});
|
|
242710
242710
|
}
|
|
242711
242711
|
goToNextLine() {
|
|
@@ -243029,7 +243029,7 @@ class Ph extends Ge {
|
|
|
243029
243029
|
return (U + Y) / 2;
|
|
243030
243030
|
}
|
|
243031
243031
|
const N = S(D.lineRangeMapping.original, this._editors.original), E = this._originalScrollTop.read(c), L = S(D.lineRangeMapping.modified, this._editors.modified), O = this._modifiedScrollTop.read(c), P = N - E, k = L - O, T = Math.min(N, L), A = Math.max(N, L);
|
|
243032
|
-
return { range: new
|
|
243032
|
+
return { range: new en(T, A), from: P, to: k, fromWithoutScroll: N, toWithoutScroll: L, move: D };
|
|
243033
243033
|
});
|
|
243034
243034
|
v.sort(c0t(l1((D) => D.fromWithoutScroll > D.toWithoutScroll, d0t), l1((D) => D.fromWithoutScroll > D.toWithoutScroll ? D.fromWithoutScroll : -D.toWithoutScroll, Tf)));
|
|
243035
243035
|
const _ = KF.compute(v.map((D) => D.range)), m = 10, y = g.verticalScrollbarWidth, w = (_.getTrackCount() - 1) * 10 + m * 2, C = y + w + (b.contentLeft - Ph.movedCodeBlockPadding);
|
|
@@ -245849,9 +245849,9 @@ let Ik = class extends Ge {
|
|
|
245849
245849
|
render(e) {
|
|
245850
245850
|
const t = this.scrollTop.read(e);
|
|
245851
245851
|
let i = 0, r = 0, o = 0;
|
|
245852
|
-
const s = this._sizeObserver.height.read(e), a =
|
|
245852
|
+
const s = this._sizeObserver.height.read(e), a = en.ofStartAndLength(t, s), l = this._sizeObserver.width.read(e);
|
|
245853
245853
|
for (const u of this._viewItems.read(e)) {
|
|
245854
|
-
const c = u.contentHeight.read(e), d = Math.min(c, s), h =
|
|
245854
|
+
const c = u.contentHeight.read(e), d = Math.min(c, s), h = en.ofStartAndLength(r, d), f = en.ofStartAndLength(o, c);
|
|
245855
245855
|
if (f.isBefore(a))
|
|
245856
245856
|
i -= c - d, u.hide();
|
|
245857
245857
|
else if (f.isAfter(a))
|
|
@@ -245859,7 +245859,7 @@ let Ik = class extends Ge {
|
|
|
245859
245859
|
else {
|
|
245860
245860
|
const p = Math.max(0, Math.min(a.start - f.start, c - d));
|
|
245861
245861
|
i -= p;
|
|
245862
|
-
const g =
|
|
245862
|
+
const g = en.ofStartAndLength(t + i, s);
|
|
245863
245863
|
u.render(h, p, l, g);
|
|
245864
245864
|
}
|
|
245865
245865
|
r += d + this._spaceBetweenPx, o += c + this._spaceBetweenPx;
|
|
@@ -247025,7 +247025,7 @@ ihe({
|
|
|
247025
247025
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
247026
247026
|
aliases: ["Python", "py"],
|
|
247027
247027
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
247028
|
-
loader: () => import("./python-
|
|
247028
|
+
loader: () => import("./python-ac4949ec.js")
|
|
247029
247029
|
});
|
|
247030
247030
|
/*!-----------------------------------------------------------------------------
|
|
247031
247031
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -247354,7 +247354,7 @@ const Rx = (n) => (yu("data-v-e561aed9"), n = n(), wu(), n), ONt = { class: "edi
|
|
|
247354
247354
|
}, fe = (he) => {
|
|
247355
247355
|
d.value && !d.value.contains(he.target) && k(), g.value && !g.value.contains(he.target) && S();
|
|
247356
247356
|
};
|
|
247357
|
-
return
|
|
247357
|
+
return Jt(() => {
|
|
247358
247358
|
s = ehe.create(l.value, {
|
|
247359
247359
|
value: o.defaultValue,
|
|
247360
247360
|
language: o.language,
|
|
@@ -247837,7 +247837,7 @@ const hEt = {
|
|
|
247837
247837
|
f();
|
|
247838
247838
|
},
|
|
247839
247839
|
{ deep: !0 }
|
|
247840
|
-
),
|
|
247840
|
+
), Jt(() => {
|
|
247841
247841
|
a = Ro.init(c.value), f();
|
|
247842
247842
|
let p = !0;
|
|
247843
247843
|
l = new ResizeObserver(() => {
|
|
@@ -248145,7 +248145,7 @@ const _Et = /* @__PURE__ */ xn(bEt, [["__scopeId", "data-v-964eca86"]]), yEt = {
|
|
|
248145
248145
|
l();
|
|
248146
248146
|
},
|
|
248147
248147
|
{ deep: !0 }
|
|
248148
|
-
),
|
|
248148
|
+
), Jt(() => {
|
|
248149
248149
|
i = Ro.init(s.value), l();
|
|
248150
248150
|
let u = !0;
|
|
248151
248151
|
r = new ResizeObserver(() => {
|
|
@@ -248974,7 +248974,7 @@ const HEt = async ({ appId: n, apiKey: e, value: t }) => {
|
|
|
248974
248974
|
throw r.name === "AbortError" ? new Error("请求超时") : r;
|
|
248975
248975
|
}
|
|
248976
248976
|
};
|
|
248977
|
-
const she = (n) => (yu("data-v-
|
|
248977
|
+
const she = (n) => (yu("data-v-e461ef4d"), n = n(), wu(), n), WEt = { class: "chat-container" }, jEt = { class: "avatar" }, $Et = { class: "message-content" }, UEt = { class: "message-text" }, qEt = { class: "message-time" }, KEt = {
|
|
248978
248978
|
key: 0,
|
|
248979
248979
|
class: "message-item assistant"
|
|
248980
248980
|
}, GEt = { class: "avatar" }, YEt = /* @__PURE__ */ she(() => /* @__PURE__ */ de("div", { class: "message-content" }, [
|
|
@@ -248987,62 +248987,68 @@ const she = (n) => (yu("data-v-3b75cb12"), n = n(), wu(), n), WEt = { class: "ch
|
|
|
248987
248987
|
/* @__PURE__ */ de("span", null, "Ctrl + Enter 发送")
|
|
248988
248988
|
], -1)), JEt = {
|
|
248989
248989
|
__name: "index",
|
|
248990
|
-
|
|
248991
|
-
|
|
248992
|
-
|
|
248993
|
-
|
|
248994
|
-
role: "assistant",
|
|
248995
|
-
time: qt().format("HH:mm"),
|
|
248996
|
-
content: `你好呀!我是你的品种池AI助手,会根据您的自然语言去进行品种的条件查询
|
|
248990
|
+
props: {
|
|
248991
|
+
defaultMessage: {
|
|
248992
|
+
type: String,
|
|
248993
|
+
default: `你好呀!我是你的品种池AI助手,会根据您的自然语言去进行品种的条件查询
|
|
248997
248994
|
|
|
248998
248995
|
示例:
|
|
248999
|
-
|
|
249000
|
-
|
|
249001
|
-
|
|
249002
|
-
|
|
249003
|
-
|
|
248996
|
+
科创板里总市值大于1000W的, 帮我按照总市值升序进行排序`
|
|
248997
|
+
}
|
|
248998
|
+
},
|
|
248999
|
+
emits: ["callBack"],
|
|
249000
|
+
setup(n, { expose: e, emit: t }) {
|
|
249001
|
+
const i = t, r = n, o = se(!1), s = se(!1), a = se(!1), l = se(null), u = se([]), c = se(""), d = async () => {
|
|
249002
|
+
const f = c.value.trim();
|
|
249003
|
+
if (!f)
|
|
249004
249004
|
return on.warning("请输入消息内容");
|
|
249005
|
-
if (
|
|
249005
|
+
if (s.value)
|
|
249006
249006
|
return;
|
|
249007
|
-
|
|
249007
|
+
u.value.push({
|
|
249008
249008
|
role: "user",
|
|
249009
249009
|
time: qt().format("HH:mm"),
|
|
249010
|
-
content:
|
|
249011
|
-
}),
|
|
249012
|
-
let
|
|
249010
|
+
content: f
|
|
249011
|
+
}), c.value = "", await h(), s.value = !0, a.value = !0;
|
|
249012
|
+
let p = "{}";
|
|
249013
249013
|
try {
|
|
249014
|
-
|
|
249014
|
+
p = await HEt({ appId: "9e54d112acfe4531bd1fc4fee8827fef", apiKey: "sk-d995eb26a4334bdeb2ccb4cbfaf51de8", value: f }), u.value.push({
|
|
249015
249015
|
role: "assistant",
|
|
249016
249016
|
time: qt().format("HH:mm"),
|
|
249017
|
-
content:
|
|
249018
|
-
}), await
|
|
249019
|
-
} catch (
|
|
249020
|
-
on.error(`AI响应异常: ${
|
|
249017
|
+
content: p
|
|
249018
|
+
}), await h();
|
|
249019
|
+
} catch (g) {
|
|
249020
|
+
on.error(`AI响应异常: ${g}`), console.error("AI响应异常:", g);
|
|
249021
249021
|
} finally {
|
|
249022
|
-
|
|
249022
|
+
s.value = !1, a.value = !1;
|
|
249023
249023
|
}
|
|
249024
|
-
i("callBack", JSON.parse(
|
|
249025
|
-
},
|
|
249026
|
-
await Tt(),
|
|
249024
|
+
i("callBack", JSON.parse(p));
|
|
249025
|
+
}, h = async () => {
|
|
249026
|
+
await Tt(), l.value && (l.value.scrollTop = l.value.scrollHeight);
|
|
249027
249027
|
};
|
|
249028
|
-
return
|
|
249029
|
-
|
|
249028
|
+
return Jt(() => {
|
|
249029
|
+
u.value.push({
|
|
249030
|
+
role: "assistant",
|
|
249031
|
+
time: qt().format("HH:mm"),
|
|
249032
|
+
content: r.defaultMessage
|
|
249033
|
+
});
|
|
249034
|
+
}), nt(
|
|
249035
|
+
() => u.value,
|
|
249030
249036
|
() => {
|
|
249031
|
-
|
|
249037
|
+
h();
|
|
249032
249038
|
},
|
|
249033
249039
|
{ deep: !0 }
|
|
249034
249040
|
), e({
|
|
249035
|
-
open: (
|
|
249036
|
-
|
|
249037
|
-
|
|
249041
|
+
open: (f) => {
|
|
249042
|
+
o.value = !0, Tt(() => {
|
|
249043
|
+
h();
|
|
249038
249044
|
});
|
|
249039
249045
|
}
|
|
249040
|
-
}), (
|
|
249041
|
-
const
|
|
249042
|
-
return j(), Oe(
|
|
249046
|
+
}), (f, p) => {
|
|
249047
|
+
const g = P6e, b = ts, v = zr, _ = il;
|
|
249048
|
+
return j(), Oe(_, {
|
|
249043
249049
|
class: "ai-dialog",
|
|
249044
|
-
modelValue:
|
|
249045
|
-
"onUpdate:modelValue":
|
|
249050
|
+
modelValue: o.value,
|
|
249051
|
+
"onUpdate:modelValue": p[1] || (p[1] = (m) => o.value = m),
|
|
249046
249052
|
title: "✨ 品种池参数解析AI助手",
|
|
249047
249053
|
width: "500px",
|
|
249048
249054
|
center: "",
|
|
@@ -249055,27 +249061,27 @@ const she = (n) => (yu("data-v-3b75cb12"), n = n(), wu(), n), WEt = { class: "ch
|
|
|
249055
249061
|
de("div", WEt, [
|
|
249056
249062
|
de("div", {
|
|
249057
249063
|
ref_key: "messageListRef",
|
|
249058
|
-
ref:
|
|
249064
|
+
ref: l,
|
|
249059
249065
|
class: "message-list"
|
|
249060
249066
|
}, [
|
|
249061
|
-
(j(!0), me(at, null, Et(
|
|
249062
|
-
key:
|
|
249063
|
-
class: Le(["message-item",
|
|
249067
|
+
(j(!0), me(at, null, Et(u.value, (m, y) => (j(), me("div", {
|
|
249068
|
+
key: y,
|
|
249069
|
+
class: Le(["message-item", m.role])
|
|
249064
249070
|
}, [
|
|
249065
249071
|
de("div", jEt, [
|
|
249066
|
-
Z(
|
|
249072
|
+
Z(g, {
|
|
249067
249073
|
size: 32,
|
|
249068
|
-
icon:
|
|
249074
|
+
icon: m.role === "user" ? F(nX) : F(sB)
|
|
249069
249075
|
}, null, 8, ["icon"])
|
|
249070
249076
|
]),
|
|
249071
249077
|
de("div", $Et, [
|
|
249072
|
-
de("div", UEt, Qe(
|
|
249073
|
-
de("div", qEt, Qe(
|
|
249078
|
+
de("div", UEt, Qe(m.content), 1),
|
|
249079
|
+
de("div", qEt, Qe(m.time), 1)
|
|
249074
249080
|
])
|
|
249075
249081
|
], 2))), 128)),
|
|
249076
|
-
|
|
249082
|
+
a.value ? (j(), me("div", KEt, [
|
|
249077
249083
|
de("div", GEt, [
|
|
249078
|
-
Z(
|
|
249084
|
+
Z(g, {
|
|
249079
249085
|
size: 32,
|
|
249080
249086
|
icon: F(sB)
|
|
249081
249087
|
}, null, 8, ["icon"])
|
|
@@ -249084,24 +249090,24 @@ const she = (n) => (yu("data-v-3b75cb12"), n = n(), wu(), n), WEt = { class: "ch
|
|
|
249084
249090
|
])) : Pe("", !0)
|
|
249085
249091
|
], 512),
|
|
249086
249092
|
de("div", QEt, [
|
|
249087
|
-
Z(
|
|
249093
|
+
Z(b, {
|
|
249088
249094
|
class: "message-input",
|
|
249089
|
-
modelValue:
|
|
249090
|
-
"onUpdate:modelValue":
|
|
249095
|
+
modelValue: c.value,
|
|
249096
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => c.value = m),
|
|
249091
249097
|
type: "textarea",
|
|
249092
249098
|
rows: 4,
|
|
249093
249099
|
autosize: { minRows: 2, maxRows: 4 },
|
|
249094
249100
|
placeholder: "输入您想查询的品种条件...",
|
|
249095
|
-
onKeydown: oo(Rn(
|
|
249101
|
+
onKeydown: oo(Rn(d, ["ctrl"]), ["enter"])
|
|
249096
249102
|
}, null, 8, ["modelValue", "onKeydown"]),
|
|
249097
249103
|
de("div", ZEt, [
|
|
249098
249104
|
XEt,
|
|
249099
|
-
Z(
|
|
249105
|
+
Z(v, {
|
|
249100
249106
|
class: "send-btn",
|
|
249101
249107
|
type: "primary",
|
|
249102
249108
|
icon: F(S5e),
|
|
249103
|
-
loading:
|
|
249104
|
-
onClick:
|
|
249109
|
+
loading: s.value,
|
|
249110
|
+
onClick: d,
|
|
249105
249111
|
round: ""
|
|
249106
249112
|
}, {
|
|
249107
249113
|
default: oe(() => [
|
|
@@ -249117,7 +249123,7 @@ const she = (n) => (yu("data-v-3b75cb12"), n = n(), wu(), n), WEt = { class: "ch
|
|
|
249117
249123
|
}, 8, ["modelValue"]);
|
|
249118
249124
|
};
|
|
249119
249125
|
}
|
|
249120
|
-
}, eLt = /* @__PURE__ */ xn(JEt, [["__scopeId", "data-v-
|
|
249126
|
+
}, eLt = /* @__PURE__ */ xn(JEt, [["__scopeId", "data-v-e461ef4d"]]), tLt = {
|
|
249121
249127
|
install(n) {
|
|
249122
249128
|
n.component("st-varietyAiHelper", eLt);
|
|
249123
249129
|
}
|
|
@@ -252978,7 +252984,7 @@ const QAt = ["innerHTML"], ZAt = {
|
|
|
252978
252984
|
emits: ["update:visible"],
|
|
252979
252985
|
setup(n) {
|
|
252980
252986
|
const { request: e } = mt("stConfig"), t = new bu(), i = se(""), r = i2(n, "visible");
|
|
252981
|
-
return
|
|
252987
|
+
return Jt(async () => {
|
|
252982
252988
|
const { data: o } = await e.post("/middleLayer/special/getOss", { url: "resource/factor_select.md" }), s = new Uint8Array(o.data), l = new TextDecoder("utf-8").decode(s);
|
|
252983
252989
|
i.value = t.render(l);
|
|
252984
252990
|
}), (o, s) => {
|
|
@@ -255881,7 +255887,7 @@ const nIt = (n) => (yu("data-v-e4f6c06a"), n = n(), wu(), n), iIt = { class: "cu
|
|
|
255881
255887
|
}), p.focus();
|
|
255882
255888
|
}
|
|
255883
255889
|
};
|
|
255884
|
-
return
|
|
255890
|
+
return Jt(async () => {
|
|
255885
255891
|
const { body: d } = await t.request.post("/common/conf/queryAllBackVariables", { useCase: i.useCase });
|
|
255886
255892
|
a.value = d ?? [];
|
|
255887
255893
|
}), e({
|
|
@@ -256143,7 +256149,7 @@ const _It = {
|
|
|
256143
256149
|
} = r.value;
|
|
256144
256150
|
return v[m] === d.value[0] && (_ += " virtual-table-active-start"), d.value.includes(v[m]) && (_ += " virtual-table-active-row"), v[m] === d.value[d.value.length - 1] && (_ += " virtual-table-active-end"), _;
|
|
256145
256151
|
};
|
|
256146
|
-
return
|
|
256152
|
+
return Jt(() => {
|
|
256147
256153
|
window.addEventListener("keydown", f);
|
|
256148
256154
|
}), nt(() => i.tableLoading, (v) => {
|
|
256149
256155
|
v || (s.value = 0);
|