@datus/web-chatbot 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datus-chatbot.css +1 -1
- package/dist/datus-chatbot.es.js +198 -195
- package/dist/datus-chatbot.umd.js +15 -15
- package/package.json +1 -1
package/dist/datus-chatbot.es.js
CHANGED
|
@@ -1893,7 +1893,7 @@ function ece(e, t) {
|
|
|
1893
1893
|
Tr.preMessage = qle;
|
|
1894
1894
|
Tr.resetWarned = Qle;
|
|
1895
1895
|
Tr.noteOnce = ece;
|
|
1896
|
-
function
|
|
1896
|
+
function Qn(e, t) {
|
|
1897
1897
|
const n = Object.assign({}, e);
|
|
1898
1898
|
return Array.isArray(t) && t.forEach((r) => {
|
|
1899
1899
|
delete n[r];
|
|
@@ -5169,7 +5169,7 @@ const Ns = {
|
|
|
5169
5169
|
overflow: "hidden",
|
|
5170
5170
|
whiteSpace: "nowrap",
|
|
5171
5171
|
textOverflow: "ellipsis"
|
|
5172
|
-
},
|
|
5172
|
+
}, er = (e, t = !1) => ({
|
|
5173
5173
|
boxSizing: "border-box",
|
|
5174
5174
|
margin: 0,
|
|
5175
5175
|
padding: 0,
|
|
@@ -7303,7 +7303,7 @@ function bj(e, t, n, r, i, o, a, s) {
|
|
|
7303
7303
|
var v, S;
|
|
7304
7304
|
if (t && n && e && !s) {
|
|
7305
7305
|
let et = function(Qt, At, en = he) {
|
|
7306
|
-
const
|
|
7306
|
+
const nr = F.x + Qt, Pr = F.y + At, si = nr + q, Bl = Pr + Q, Ko = Math.max(nr, en.left), _o = Math.max(Pr, en.top), Io = Math.min(si, en.right), bt = Math.min(Bl, en.bottom);
|
|
7307
7307
|
return Math.max(0, (Io - Ko) * (bt - _o));
|
|
7308
7308
|
}, ot = function() {
|
|
7309
7309
|
Me = F.y + Xe, We = Me + Q, Fe = F.x + we, Ge = Fe + q;
|
|
@@ -7909,8 +7909,8 @@ function Ofe(e = sC) {
|
|
|
7909
7909
|
var li;
|
|
7910
7910
|
we.current && Yt.has("contextMenu") ? ut(!1) : (tt(bt), ut(!0)), bt.preventDefault(), (li = ze.onContextMenu) == null || li.call(ze, bt, ...pn);
|
|
7911
7911
|
});
|
|
7912
|
-
const
|
|
7913
|
-
|
|
7912
|
+
const nr = b.useRef(!1);
|
|
7913
|
+
nr.current || (nr.current = T || De || Nt);
|
|
7914
7914
|
const Pr = {
|
|
7915
7915
|
...ze,
|
|
7916
7916
|
...ft
|
|
@@ -7931,7 +7931,7 @@ function Ofe(e = sC) {
|
|
|
7931
7931
|
...si,
|
|
7932
7932
|
ref: _o
|
|
7933
7933
|
});
|
|
7934
|
-
return /* @__PURE__ */ b.createElement(b.Fragment, null, Io,
|
|
7934
|
+
return /* @__PURE__ */ b.createElement(b.Fragment, null, Io, nr.current && (!J || !B) && /* @__PURE__ */ b.createElement(bS.Provider, {
|
|
7935
7935
|
value: fe
|
|
7936
7936
|
}, /* @__PURE__ */ b.createElement(gj, {
|
|
7937
7937
|
portal: e,
|
|
@@ -9032,7 +9032,7 @@ const Jfe = (e, t) => /* @__PURE__ */ b.createElement(Fn, dA({}, e, {
|
|
|
9032
9032
|
// ============================ Holder ============================
|
|
9033
9033
|
{
|
|
9034
9034
|
[t]: {
|
|
9035
|
-
...
|
|
9035
|
+
...er(e),
|
|
9036
9036
|
color: i,
|
|
9037
9037
|
position: "fixed",
|
|
9038
9038
|
top: f,
|
|
@@ -11328,7 +11328,7 @@ const Cpe = {
|
|
|
11328
11328
|
}, [e.onClick, ye, he]), {
|
|
11329
11329
|
compactSize: Oe,
|
|
11330
11330
|
compactItemClassnames: Ee
|
|
11331
|
-
} = Wu(ie, D), De = Si((tt) => u ?? Oe ?? be ?? tt), _e = ye ? "loading" : m, ze = v ?? g ?? "start", qe =
|
|
11331
|
+
} = Wu(ie, D), De = Si((tt) => u ?? Oe ?? be ?? tt), _e = ye ? "loading" : m, ze = v ?? g ?? "start", qe = Qn(L, ["navigate"]), ke = {
|
|
11332
11332
|
...e,
|
|
11333
11333
|
type: k,
|
|
11334
11334
|
color: ae,
|
|
@@ -14220,7 +14220,7 @@ const yc = /* @__PURE__ */ b.createContext({
|
|
|
14220
14220
|
itemRef: () => {
|
|
14221
14221
|
}
|
|
14222
14222
|
}), qj = /* @__PURE__ */ b.createContext(null), Zj = (e) => {
|
|
14223
|
-
const t =
|
|
14223
|
+
const t = Qn(e, ["prefixCls"]);
|
|
14224
14224
|
return /* @__PURE__ */ b.createElement(Yj, {
|
|
14225
14225
|
...t
|
|
14226
14226
|
});
|
|
@@ -15243,7 +15243,7 @@ const nge = (e) => {
|
|
|
15243
15243
|
// ======================== Modal ========================
|
|
15244
15244
|
{
|
|
15245
15245
|
[t]: {
|
|
15246
|
-
...
|
|
15246
|
+
...er(e),
|
|
15247
15247
|
pointerEvents: "none",
|
|
15248
15248
|
position: "relative",
|
|
15249
15249
|
top: 100,
|
|
@@ -17217,7 +17217,7 @@ const Uge = ["value", "onChange", "removeIcon", "placeholder", "maxTagCount", "m
|
|
|
17217
17217
|
E == null || E(ae);
|
|
17218
17218
|
}), {
|
|
17219
17219
|
root: j
|
|
17220
|
-
} = A, H =
|
|
17220
|
+
} = A, H = Qn(L, Uge), Q = oo(H, {
|
|
17221
17221
|
aria: !0
|
|
17222
17222
|
}), q = Object.keys(Q), K = {
|
|
17223
17223
|
...t,
|
|
@@ -17242,7 +17242,7 @@ const Uge = ["value", "onChange", "removeIcon", "placeholder", "maxTagCount", "m
|
|
|
17242
17242
|
}
|
|
17243
17243
|
return /* @__PURE__ */ b.createElement(CX.Provider, {
|
|
17244
17244
|
value: K
|
|
17245
|
-
}, /* @__PURE__ */ b.createElement("div", LS({},
|
|
17245
|
+
}, /* @__PURE__ */ b.createElement("div", LS({}, Qn(H, q), {
|
|
17246
17246
|
// Style
|
|
17247
17247
|
ref: U,
|
|
17248
17248
|
className: i,
|
|
@@ -18635,7 +18635,7 @@ const lve = (e, t) => {
|
|
|
18635
18635
|
style: Je,
|
|
18636
18636
|
className: Qe,
|
|
18637
18637
|
...ft
|
|
18638
|
-
} = he, Ot =
|
|
18638
|
+
} = he, Ot = Qn(ft, q), xe = U(oe), Oe = He || !xe && F, Ee = `${k}-option`, De = Y(k, Ee, Qe, (we = L == null ? void 0 : L.popup) == null ? void 0 : we.listItem, {
|
|
18639
18639
|
[`${Ee}-grouped`]: J,
|
|
18640
18640
|
[`${Ee}-active`]: B === ce && !Oe,
|
|
18641
18641
|
[`${Ee}-disabled`]: Oe,
|
|
@@ -19381,7 +19381,7 @@ const f6 = (e) => {
|
|
|
19381
19381
|
{
|
|
19382
19382
|
[`${n}-dropdown`]: {
|
|
19383
19383
|
// ========================== Popup ==========================
|
|
19384
|
-
...
|
|
19384
|
+
...er(e),
|
|
19385
19385
|
position: "absolute",
|
|
19386
19386
|
top: -9999,
|
|
19387
19387
|
zIndex: e.zIndexPopup,
|
|
@@ -19725,7 +19725,7 @@ const f6 = (e) => {
|
|
|
19725
19725
|
// ==========================================================
|
|
19726
19726
|
// == Base ==
|
|
19727
19727
|
// ==========================================================
|
|
19728
|
-
...
|
|
19728
|
+
...er(e, !0),
|
|
19729
19729
|
display: "inline-flex",
|
|
19730
19730
|
// gap: calc(token.paddingXXS).mul(1.5).equal(),
|
|
19731
19731
|
flexWrap: "nowrap",
|
|
@@ -20059,7 +20059,7 @@ const f6 = (e) => {
|
|
|
20059
20059
|
};
|
|
20060
20060
|
return {
|
|
20061
20061
|
[n]: {
|
|
20062
|
-
...
|
|
20062
|
+
...er(e),
|
|
20063
20063
|
// ======================== Selection ========================
|
|
20064
20064
|
[`${n}-selection-item`]: {
|
|
20065
20065
|
flex: 1,
|
|
@@ -20349,7 +20349,7 @@ const DX = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Uve = (e, t) => {
|
|
|
20349
20349
|
componentName: "Select"
|
|
20350
20350
|
}), Nt = w === !0 ? {
|
|
20351
20351
|
clearIcon: pt
|
|
20352
|
-
} : w, st =
|
|
20352
|
+
} : w, st = Qn($, ["suffixIcon", "itemIcon"]), at = Si((vn) => f ?? be ?? vn), _t = b.useContext(jo), Ft = h ?? _t, $e = {
|
|
20353
20353
|
...e,
|
|
20354
20354
|
variant: ye,
|
|
20355
20355
|
status: ke,
|
|
@@ -20524,7 +20524,7 @@ const jve = (e, t) => {
|
|
|
20524
20524
|
return /* @__PURE__ */ b.createElement(ao, {
|
|
20525
20525
|
ref: t,
|
|
20526
20526
|
suffixIcon: null,
|
|
20527
|
-
...
|
|
20527
|
+
...Qn(e, ["dataSource", "dropdownClassName", "popupClassName"]),
|
|
20528
20528
|
prefixCls: R,
|
|
20529
20529
|
classNames: k,
|
|
20530
20530
|
styles: M,
|
|
@@ -20536,7 +20536,7 @@ const jve = (e, t) => {
|
|
|
20536
20536
|
}, T);
|
|
20537
20537
|
}, FX = /* @__PURE__ */ b.forwardRef(jve), {
|
|
20538
20538
|
Option: Xve
|
|
20539
|
-
} = ao, $ve = $N(FX, "popupAlign", (e) =>
|
|
20539
|
+
} = ao, $ve = $N(FX, "popupAlign", (e) => Qn(e, ["visible"])), QN = FX;
|
|
20540
20540
|
QN.Option = Xve;
|
|
20541
20541
|
QN._InternalPanelDoNotUseOrYouWillBeFired = $ve;
|
|
20542
20542
|
const fp = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], BX = [].concat(fp).reverse(), Vve = (e) => ({
|
|
@@ -21213,7 +21213,7 @@ const UX = (e, t) => {
|
|
|
21213
21213
|
return [
|
|
21214
21214
|
{
|
|
21215
21215
|
[n]: {
|
|
21216
|
-
...
|
|
21216
|
+
...er(e),
|
|
21217
21217
|
position: "absolute",
|
|
21218
21218
|
zIndex: s,
|
|
21219
21219
|
display: "block",
|
|
@@ -21531,7 +21531,7 @@ const y6 = "50%", s0e = (e) => {
|
|
|
21531
21531
|
return [
|
|
21532
21532
|
{
|
|
21533
21533
|
[t]: {
|
|
21534
|
-
...
|
|
21534
|
+
...er(e),
|
|
21535
21535
|
position: "absolute",
|
|
21536
21536
|
top: 0,
|
|
21537
21537
|
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
|
@@ -22320,7 +22320,7 @@ class O0e extends b.Component {
|
|
|
22320
22320
|
attribute: n,
|
|
22321
22321
|
elementRef: r,
|
|
22322
22322
|
...i
|
|
22323
|
-
} = this.props, o =
|
|
22323
|
+
} = this.props, o = Qn(i, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
22324
22324
|
return Tr(!n, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ b.createElement(mc.Item, Iv({}, n, {
|
|
22325
22325
|
title: typeof t == "string" ? t : void 0
|
|
22326
22326
|
}, o, {
|
|
@@ -22388,7 +22388,7 @@ const R0e = /* @__PURE__ */ b.forwardRef((e, t) => {
|
|
|
22388
22388
|
role: c === null ? "none" : c || "menuitem",
|
|
22389
22389
|
tabIndex: a ? null : -1,
|
|
22390
22390
|
"data-menu-id": E && g ? null : g
|
|
22391
|
-
},
|
|
22391
|
+
}, Qn(m, ["extra"]), U, Q, {
|
|
22392
22392
|
component: "li",
|
|
22393
22393
|
"aria-disabled": a,
|
|
22394
22394
|
style: {
|
|
@@ -22924,7 +22924,7 @@ const H0e = /* @__PURE__ */ b.forwardRef((e, t) => {
|
|
|
22924
22924
|
} = e, i = Mp(n), o = lM(r, i);
|
|
22925
22925
|
return vC() ? o : /* @__PURE__ */ b.createElement(H0e, MS({
|
|
22926
22926
|
ref: t
|
|
22927
|
-
},
|
|
22927
|
+
}, Qn(e, ["warnKey"])), o);
|
|
22928
22928
|
});
|
|
22929
22929
|
function Uh() {
|
|
22930
22930
|
return Uh = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -23322,7 +23322,7 @@ const j0e = (e, t) => /* @__PURE__ */ b.createElement(Fn, rL({}, e, {
|
|
|
23322
23322
|
!g && !f && (E.title = null, E.open = !1);
|
|
23323
23323
|
const w = Wi(n).length;
|
|
23324
23324
|
let T = /* @__PURE__ */ b.createElement(C0, {
|
|
23325
|
-
...
|
|
23325
|
+
...Qn(e, ["title", "icon", "danger"]),
|
|
23326
23326
|
className: Y(l ? p == null ? void 0 : p.item : (_ = p == null ? void 0 : p.subMenu) == null ? void 0 : _.item, {
|
|
23327
23327
|
[`${s}-item-danger`]: o,
|
|
23328
23328
|
[`${s}-item-only-child`]: (r ? w + 1 : w) === 1
|
|
@@ -23982,7 +23982,7 @@ const j0e = (e, t) => /* @__PURE__ */ b.createElement(Fn, rL({}, e, {
|
|
|
23982
23982
|
},
|
|
23983
23983
|
{
|
|
23984
23984
|
[n]: {
|
|
23985
|
-
...
|
|
23985
|
+
...er(e),
|
|
23986
23986
|
...xv(),
|
|
23987
23987
|
marginBottom: 0,
|
|
23988
23988
|
paddingInlineStart: 0,
|
|
@@ -24401,7 +24401,7 @@ const j0e = (e, t) => /* @__PURE__ */ b.createElement(Fn, rL({}, e, {
|
|
|
24401
24401
|
return /* @__PURE__ */ b.createElement(kS.Provider, {
|
|
24402
24402
|
value: h
|
|
24403
24403
|
}, /* @__PURE__ */ b.createElement(yC, {
|
|
24404
|
-
...
|
|
24404
|
+
...Qn(e, ["icon"]),
|
|
24405
24405
|
title: f,
|
|
24406
24406
|
classNames: {
|
|
24407
24407
|
list: (m = c == null ? void 0 : c.subMenu) == null ? void 0 : m.list,
|
|
@@ -24457,7 +24457,7 @@ const q0e = {
|
|
|
24457
24457
|
style: L,
|
|
24458
24458
|
classNames: O,
|
|
24459
24459
|
styles: k
|
|
24460
|
-
} = $n("menu"), M = T(), D =
|
|
24460
|
+
} = $n("menu"), M = T(), D = Qn(E, ["collapsedWidth"]);
|
|
24461
24461
|
(de = r.validator) == null || de.call(r, {
|
|
24462
24462
|
mode: p
|
|
24463
24463
|
});
|
|
@@ -24711,7 +24711,7 @@ const J0e = (e) => {
|
|
|
24711
24711
|
}
|
|
24712
24712
|
},
|
|
24713
24713
|
[`${t}, ${t}-menu-submenu`]: {
|
|
24714
|
-
...
|
|
24714
|
+
...er(e),
|
|
24715
24715
|
[n]: {
|
|
24716
24716
|
padding: d,
|
|
24717
24717
|
listStyleType: "none",
|
|
@@ -24942,7 +24942,7 @@ const J0e = (e) => {
|
|
|
24942
24942
|
source: "menu"
|
|
24943
24943
|
}), ie(!1));
|
|
24944
24944
|
}), be = () => {
|
|
24945
|
-
const Re =
|
|
24945
|
+
const Re = Qn(W, ["root"]), Ne = Qn(X, ["root"]);
|
|
24946
24946
|
let Je;
|
|
24947
24947
|
return t != null && t.items && (Je = /* @__PURE__ */ b.createElement(Pp, {
|
|
24948
24948
|
...t,
|
|
@@ -24979,7 +24979,7 @@ const J0e = (e) => {
|
|
|
24979
24979
|
}, [oe, ye] = d0("Dropdown", U.zIndex);
|
|
24980
24980
|
let He = /* @__PURE__ */ b.createElement(VX, {
|
|
24981
24981
|
alignPoint: de,
|
|
24982
|
-
...
|
|
24982
|
+
...Qn(e, ["rootClassName", "onOpenChange"]),
|
|
24983
24983
|
mouseEnterDelay: m,
|
|
24984
24984
|
mouseLeaveDelay: g,
|
|
24985
24985
|
visible: ue,
|
|
@@ -25151,7 +25151,7 @@ const lye = (e) => {
|
|
|
25151
25151
|
} = e, r = `${t}-group`;
|
|
25152
25152
|
return {
|
|
25153
25153
|
[r]: {
|
|
25154
|
-
...
|
|
25154
|
+
...er(e),
|
|
25155
25155
|
display: "inline-block",
|
|
25156
25156
|
fontSize: 0,
|
|
25157
25157
|
// RTL
|
|
@@ -25201,7 +25201,7 @@ const lye = (e) => {
|
|
|
25201
25201
|
} = e;
|
|
25202
25202
|
return {
|
|
25203
25203
|
[`${t}-wrapper`]: {
|
|
25204
|
-
...
|
|
25204
|
+
...er(e),
|
|
25205
25205
|
display: "inline-flex",
|
|
25206
25206
|
alignItems: "baseline",
|
|
25207
25207
|
marginInlineStart: 0,
|
|
@@ -25230,7 +25230,7 @@ const lye = (e) => {
|
|
|
25230
25230
|
},
|
|
25231
25231
|
// ===================== Radio =====================
|
|
25232
25232
|
[t]: {
|
|
25233
|
-
...
|
|
25233
|
+
...er(e),
|
|
25234
25234
|
position: "relative",
|
|
25235
25235
|
whiteSpace: "nowrap",
|
|
25236
25236
|
lineHeight: 1,
|
|
@@ -26356,7 +26356,7 @@ const Fp = (e) => {
|
|
|
26356
26356
|
} = e, a = i(n).sub(i(r).mul(2)).sub(16).div(2).equal();
|
|
26357
26357
|
return {
|
|
26358
26358
|
[t]: {
|
|
26359
|
-
...
|
|
26359
|
+
...er(e),
|
|
26360
26360
|
...xC(e),
|
|
26361
26361
|
// Variants
|
|
26362
26362
|
...y$(e),
|
|
@@ -26511,7 +26511,7 @@ const Fp = (e) => {
|
|
|
26511
26511
|
return {
|
|
26512
26512
|
[`${t}-group`]: {
|
|
26513
26513
|
// Style for input-group: input with label, with button or dropdown...
|
|
26514
|
-
...
|
|
26514
|
+
...er(e),
|
|
26515
26515
|
...Sye(e),
|
|
26516
26516
|
"&-rtl": {
|
|
26517
26517
|
direction: "rtl"
|
|
@@ -27892,7 +27892,7 @@ const Jye = (e) => {
|
|
|
27892
27892
|
} = e;
|
|
27893
27893
|
return {
|
|
27894
27894
|
[`${t}-dropdown`]: {
|
|
27895
|
-
...
|
|
27895
|
+
...er(e),
|
|
27896
27896
|
position: "absolute",
|
|
27897
27897
|
top: -9999,
|
|
27898
27898
|
left: {
|
|
@@ -28452,7 +28452,7 @@ const Jye = (e) => {
|
|
|
28452
28452
|
} = e;
|
|
28453
28453
|
return {
|
|
28454
28454
|
[t]: {
|
|
28455
|
-
...
|
|
28455
|
+
...er(e),
|
|
28456
28456
|
display: "flex",
|
|
28457
28457
|
// ========================== Navigation ==========================
|
|
28458
28458
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
@@ -28840,7 +28840,7 @@ function vT(e, t, n) {
|
|
|
28840
28840
|
break;
|
|
28841
28841
|
}
|
|
28842
28842
|
}
|
|
28843
|
-
const g = Object.assign(
|
|
28843
|
+
const g = Object.assign(Qn(d, [...r, i, o]), {
|
|
28844
28844
|
title: m,
|
|
28845
28845
|
key: p,
|
|
28846
28846
|
parent: u,
|
|
@@ -29123,7 +29123,7 @@ const vbe = (e) => {
|
|
|
29123
29123
|
{
|
|
29124
29124
|
// Group
|
|
29125
29125
|
[`${t}-group`]: {
|
|
29126
|
-
...
|
|
29126
|
+
...er(e),
|
|
29127
29127
|
display: "inline-flex",
|
|
29128
29128
|
flexWrap: "wrap",
|
|
29129
29129
|
columnGap: e.marginXS,
|
|
@@ -29134,7 +29134,7 @@ const vbe = (e) => {
|
|
|
29134
29134
|
},
|
|
29135
29135
|
// Wrapper
|
|
29136
29136
|
[i]: {
|
|
29137
|
-
...
|
|
29137
|
+
...er(e),
|
|
29138
29138
|
display: "inline-flex",
|
|
29139
29139
|
alignItems: "baseline",
|
|
29140
29140
|
cursor: "pointer",
|
|
@@ -29160,7 +29160,7 @@ const vbe = (e) => {
|
|
|
29160
29160
|
},
|
|
29161
29161
|
// Wrapper > Checkbox
|
|
29162
29162
|
[t]: {
|
|
29163
|
-
...
|
|
29163
|
+
...er(e),
|
|
29164
29164
|
position: "relative",
|
|
29165
29165
|
whiteSpace: "nowrap",
|
|
29166
29166
|
lineHeight: 1,
|
|
@@ -29452,7 +29452,7 @@ const D$ = zn("Checkbox", (e, {
|
|
|
29452
29452
|
const B = S.findIndex((j) => j.value === U), V = S.findIndex((j) => j.value === $);
|
|
29453
29453
|
return B - V;
|
|
29454
29454
|
}));
|
|
29455
|
-
}, T = f("checkbox", o), _ = `${T}-group`, R = Qr(T), [A, L] = D$(T, R), O =
|
|
29455
|
+
}, T = f("checkbox", o), _ = `${T}-group`, R = Qr(T), [A, L] = D$(T, R), O = Qn(d, ["value", "disabled"]), k = i.length ? S.map((F) => /* @__PURE__ */ b.createElement(B$, {
|
|
29456
29456
|
prefixCls: T,
|
|
29457
29457
|
key: F.value.toString(),
|
|
29458
29458
|
disabled: "disabled" in F ? F.disabled : d.disabled,
|
|
@@ -29813,7 +29813,7 @@ const _be = ({
|
|
|
29813
29813
|
...v
|
|
29814
29814
|
} = e, S = b.useRef(null), x = b.useMemo(() => Vi(S, t), [S, t]), E = b.useMemo(() => Tbe(o), [o]), [w, T] = pr(s ?? ((j = E[0]) == null ? void 0 : j.value), l), [_, R] = b.useState(!1), A = (H, Q) => {
|
|
29815
29815
|
T(Q), u == null || u(Q);
|
|
29816
|
-
}, L =
|
|
29816
|
+
}, L = Qn(v, ["children"]), [O, k] = b.useState(!1), [M, D] = b.useState(!1), F = () => {
|
|
29817
29817
|
D(!0);
|
|
29818
29818
|
}, W = () => {
|
|
29819
29819
|
D(!1);
|
|
@@ -29918,7 +29918,7 @@ const Y6 = (e) => ({
|
|
|
29918
29918
|
} = e, o = e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(), a = e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(), s = e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();
|
|
29919
29919
|
return {
|
|
29920
29920
|
[t]: {
|
|
29921
|
-
...
|
|
29921
|
+
...er(e),
|
|
29922
29922
|
display: "inline-block",
|
|
29923
29923
|
padding: e.trackPadding,
|
|
29924
29924
|
color: e.itemColor,
|
|
@@ -31022,7 +31022,7 @@ const Z6 = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), J6 = (e) =>
|
|
|
31022
31022
|
// ==========================================================
|
|
31023
31023
|
{
|
|
31024
31024
|
[t]: {
|
|
31025
|
-
...
|
|
31025
|
+
...er(e),
|
|
31026
31026
|
...xC(e),
|
|
31027
31027
|
[k("input-padding-block")]: me(v),
|
|
31028
31028
|
[k("input-padding-inline")]: me(g),
|
|
@@ -31090,7 +31090,7 @@ const Z6 = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), J6 = (e) =>
|
|
|
31090
31090
|
},
|
|
31091
31091
|
// ======================== Input =========================
|
|
31092
31092
|
[`${t}-input`]: {
|
|
31093
|
-
...
|
|
31093
|
+
...er(e),
|
|
31094
31094
|
width: "100%",
|
|
31095
31095
|
paddingBlock: M("input-padding-block"),
|
|
31096
31096
|
textAlign: "start",
|
|
@@ -31673,7 +31673,7 @@ const o1e = /* @__PURE__ */ $i((e, t) => {
|
|
|
31673
31673
|
}, ue = (J) => {
|
|
31674
31674
|
W(""), D(), k.current && BS(k.current, J, r);
|
|
31675
31675
|
}, ie = H && `${c}-out-of-range`, ce = () => {
|
|
31676
|
-
const J =
|
|
31676
|
+
const J = Qn(e, [
|
|
31677
31677
|
"prefixCls",
|
|
31678
31678
|
"onPressEnter",
|
|
31679
31679
|
"addonBefore",
|
|
@@ -32266,7 +32266,7 @@ const Q$ = ["wrap", "nowrap", "wrap-reverse"], eV = ["flex-start", "flex-end", "
|
|
|
32266
32266
|
ref: t,
|
|
32267
32267
|
className: E,
|
|
32268
32268
|
style: w,
|
|
32269
|
-
...
|
|
32269
|
+
...Qn(f, ["justify", "wrap", "align"])
|
|
32270
32270
|
}, d);
|
|
32271
32271
|
}), w1e = (e, t) => Zr(e) ? typeof e == "object" && !/* @__PURE__ */ rN(e) ? {
|
|
32272
32272
|
...t,
|
|
@@ -32390,7 +32390,7 @@ const T1e = (e) => {
|
|
|
32390
32390
|
} = e;
|
|
32391
32391
|
return {
|
|
32392
32392
|
[t]: {
|
|
32393
|
-
...
|
|
32393
|
+
...er(e),
|
|
32394
32394
|
..._1e(e),
|
|
32395
32395
|
[`${t}-text`]: {
|
|
32396
32396
|
display: "inline-block",
|
|
@@ -32423,7 +32423,7 @@ const T1e = (e) => {
|
|
|
32423
32423
|
} = e, [f] = Nr(i, "grid");
|
|
32424
32424
|
return {
|
|
32425
32425
|
[t]: {
|
|
32426
|
-
...
|
|
32426
|
+
...er(e),
|
|
32427
32427
|
marginBottom: d,
|
|
32428
32428
|
verticalAlign: "top",
|
|
32429
32429
|
"&-with-help": {
|
|
@@ -33307,7 +33307,7 @@ function Y1e(e) {
|
|
|
33307
33307
|
ref: A
|
|
33308
33308
|
}, /* @__PURE__ */ b.createElement(Cbe, {
|
|
33309
33309
|
className: `${E}-row`,
|
|
33310
|
-
...
|
|
33310
|
+
...Qn(x, [
|
|
33311
33311
|
"_internalItemRender",
|
|
33312
33312
|
"colon",
|
|
33313
33313
|
"dependencies",
|
|
@@ -33928,7 +33928,7 @@ const dSe = (e, t) => /* @__PURE__ */ b.createElement(Fn, mL({}, e, {
|
|
|
33928
33928
|
} = b.useContext(Wt), T = w("input", S), _ = w("input-password", v), R = i && m(_), A = Y(_, g, {
|
|
33929
33929
|
[`${_}-${x}`]: !!x
|
|
33930
33930
|
}), L = {
|
|
33931
|
-
...
|
|
33931
|
+
...Qn(E, ["suffix", "iconRender", "visibilityToggle"]),
|
|
33932
33932
|
type: u ? "text" : "password",
|
|
33933
33933
|
className: A,
|
|
33934
33934
|
prefixCls: T,
|
|
@@ -34054,10 +34054,10 @@ const dSe = (e, t) => /* @__PURE__ */ b.createElement(Fn, mL({}, e, {
|
|
|
34054
34054
|
k.current = !1, p == null || p(J);
|
|
34055
34055
|
}, ce = oo(E, {
|
|
34056
34056
|
data: !0
|
|
34057
|
-
}), fe =
|
|
34057
|
+
}), fe = Qn({
|
|
34058
34058
|
...E,
|
|
34059
|
-
classNames:
|
|
34060
|
-
styles:
|
|
34059
|
+
classNames: Qn(L, ["button", "root"]),
|
|
34060
|
+
styles: Qn(O, ["button", "root"]),
|
|
34061
34061
|
prefixCls: D,
|
|
34062
34062
|
type: "search",
|
|
34063
34063
|
size: U,
|
|
@@ -35409,7 +35409,7 @@ const PSe = (e) => {
|
|
|
35409
35409
|
[r("item-size-actual")]: me(e.itemSizeLG),
|
|
35410
35410
|
[r("item-spacing-actual")]: me(e.marginSM)
|
|
35411
35411
|
},
|
|
35412
|
-
...
|
|
35412
|
+
...er(e),
|
|
35413
35413
|
display: "flex",
|
|
35414
35414
|
alignItems: "center",
|
|
35415
35415
|
"&-start": {
|
|
@@ -35847,7 +35847,7 @@ const ZSe = new kn("antSpinMove", {
|
|
|
35847
35847
|
} = e, n = `${t}-section`;
|
|
35848
35848
|
return {
|
|
35849
35849
|
[t]: {
|
|
35850
|
-
...
|
|
35850
|
+
...er(e),
|
|
35851
35851
|
position: "relative",
|
|
35852
35852
|
"&-rtl": {
|
|
35853
35853
|
direction: "rtl"
|
|
@@ -36707,7 +36707,7 @@ const vxe = (e) => {
|
|
|
36707
36707
|
} = e;
|
|
36708
36708
|
return {
|
|
36709
36709
|
[t]: {
|
|
36710
|
-
...
|
|
36710
|
+
...er(e),
|
|
36711
36711
|
position: "relative",
|
|
36712
36712
|
display: "inline-block",
|
|
36713
36713
|
boxSizing: "border-box",
|
|
@@ -38402,7 +38402,7 @@ const mCe = (e, t) => {
|
|
|
38402
38402
|
b.useImperativeHandle(t, () => ({
|
|
38403
38403
|
nativeElement: He.current,
|
|
38404
38404
|
scrollTo: (At) => {
|
|
38405
|
-
var en,
|
|
38405
|
+
var en, nr;
|
|
38406
38406
|
if (Ne.current instanceof HTMLElement) {
|
|
38407
38407
|
const {
|
|
38408
38408
|
index: Pr,
|
|
@@ -38426,7 +38426,7 @@ const mCe = (e, t) => {
|
|
|
38426
38426
|
});
|
|
38427
38427
|
}
|
|
38428
38428
|
}
|
|
38429
|
-
} else (
|
|
38429
|
+
} else (nr = Ne.current) != null && nr.scrollTo && Ne.current.scrollTo(At);
|
|
38430
38430
|
}
|
|
38431
38431
|
}));
|
|
38432
38432
|
const Qe = b.useRef(null), [ft, Ot] = b.useState(!1), [xe, Oe] = b.useState(!1), [Ee, De] = b.useState(/* @__PURE__ */ new Map()), ze = _C(he).map((At) => Ee.get(At)), qe = b.useMemo(() => ze, [ze.join("_")]), ke = cCe(qe, he), we = d && xL(d.y), Xe = d && xL(oe) || !!K.fixed, et = Xe && he.some(({
|
|
@@ -38452,12 +38452,12 @@ const mCe = (e, t) => {
|
|
|
38452
38452
|
minWidth: "100%"
|
|
38453
38453
|
});
|
|
38454
38454
|
const Me = b.useCallback((At, en) => {
|
|
38455
|
-
De((
|
|
38456
|
-
if (
|
|
38457
|
-
const Pr = new Map(
|
|
38455
|
+
De((nr) => {
|
|
38456
|
+
if (nr.get(At) !== en) {
|
|
38457
|
+
const Pr = new Map(nr);
|
|
38458
38458
|
return Pr.set(At, en), Pr;
|
|
38459
38459
|
}
|
|
38460
|
-
return
|
|
38460
|
+
return nr;
|
|
38461
38461
|
});
|
|
38462
38462
|
}, []), [We, Fe] = aCe();
|
|
38463
38463
|
function Ge(At, en) {
|
|
@@ -38470,14 +38470,14 @@ const mCe = (e, t) => {
|
|
|
38470
38470
|
scrollLeft: en
|
|
38471
38471
|
}) => {
|
|
38472
38472
|
var Bl;
|
|
38473
|
-
const
|
|
38474
|
-
(!Fe() || Fe() === Pr) && (We(Pr), Ge(
|
|
38473
|
+
const nr = typeof en == "number" ? en : At.scrollLeft, Pr = At || hCe;
|
|
38474
|
+
(!Fe() || Fe() === Pr) && (We(Pr), Ge(nr, Re.current), Ge(nr, Ne.current), Ge(nr, Qe.current), Ge(nr, (Bl = ut.current) == null ? void 0 : Bl.setScrollLeft));
|
|
38475
38475
|
const si = At || Re.current;
|
|
38476
38476
|
if (si) {
|
|
38477
38477
|
const Ko = (
|
|
38478
38478
|
// Should use mergedScrollX in virtual table(useInternalHooks && tailor === true)
|
|
38479
38479
|
$ && M && typeof oe == "number" ? oe : si.scrollWidth
|
|
38480
|
-
), _o = si.clientWidth, Io = Math.abs(
|
|
38480
|
+
), _o = si.clientWidth, Io = Math.abs(nr);
|
|
38481
38481
|
if (vt((bt) => {
|
|
38482
38482
|
const pn = [Io, Ko - _o];
|
|
38483
38483
|
return Ds(bt, pn) ? bt : pn;
|
|
@@ -38496,8 +38496,8 @@ const mCe = (e, t) => {
|
|
|
38496
38496
|
scrollLeft: (At = Ne.current) == null ? void 0 : At.scrollLeft
|
|
38497
38497
|
}) : (Ot(!1), Oe(!1));
|
|
38498
38498
|
}, Yt = (At) => {
|
|
38499
|
-
var
|
|
38500
|
-
(
|
|
38499
|
+
var nr, Pr;
|
|
38500
|
+
(nr = ut.current) == null || nr.checkScrollBarVisible();
|
|
38501
38501
|
let en = At ?? ((Pr = He.current) == null ? void 0 : Pr.offsetWidth) ?? 0;
|
|
38502
38502
|
$ && D && He.current && (en = D(He.current, en) || en), en !== ce && (vn(), fe(en));
|
|
38503
38503
|
};
|
|
@@ -38549,9 +38549,9 @@ const mCe = (e, t) => {
|
|
|
38549
38549
|
ref: Ne,
|
|
38550
38550
|
onScroll: It
|
|
38551
38551
|
}), yt.colWidths = he.map(({
|
|
38552
|
-
width:
|
|
38552
|
+
width: nr
|
|
38553
38553
|
}, Pr) => {
|
|
38554
|
-
const si = Pr === he.length - 1 ?
|
|
38554
|
+
const si = Pr === he.length - 1 ? nr - kr : nr;
|
|
38555
38555
|
return typeof si == "number" && !Number.isNaN(si) ? si : 0;
|
|
38556
38556
|
})) : At = /* @__PURE__ */ b.createElement("div", {
|
|
38557
38557
|
style: {
|
|
@@ -41361,7 +41361,7 @@ const rEe = (e, t) => /* @__PURE__ */ b.createElement(Fn, zL({}, e, {
|
|
|
41361
41361
|
} = t;
|
|
41362
41362
|
return {
|
|
41363
41363
|
[n]: {
|
|
41364
|
-
...
|
|
41364
|
+
...er(t),
|
|
41365
41365
|
// fix https://github.com/ant-design/ant-design/issues/50316
|
|
41366
41366
|
"--rc-virtual-list-scrollbar-bg": t.colorSplit,
|
|
41367
41367
|
background: t.colorBgContainer,
|
|
@@ -43184,7 +43184,7 @@ const HEe = (e, t) => /* @__PURE__ */ b.createElement(Fn, VL({}, e, {
|
|
|
43184
43184
|
// Dropdown
|
|
43185
43185
|
[`${n}-dropdown`]: {
|
|
43186
43186
|
[M]: {
|
|
43187
|
-
...
|
|
43187
|
+
...er(e),
|
|
43188
43188
|
minWidth: i,
|
|
43189
43189
|
backgroundColor: w,
|
|
43190
43190
|
borderRadius: m,
|
|
@@ -43863,7 +43863,7 @@ const JEe = (e) => {
|
|
|
43863
43863
|
"--rc-virtual-list-scrollbar-bg": e.tableScrollBg,
|
|
43864
43864
|
...xv(),
|
|
43865
43865
|
[t]: {
|
|
43866
|
-
...
|
|
43866
|
+
...er(e),
|
|
43867
43867
|
fontSize: c,
|
|
43868
43868
|
background: u,
|
|
43869
43869
|
borderRadius: `${me(d)} ${me(d)} 0 0`,
|
|
@@ -44166,7 +44166,7 @@ const JEe = (e) => {
|
|
|
44166
44166
|
const W = b.useMemo(() => g || wM(v), [g, v]), X = b.useMemo(() => W.some((yt) => yt.responsive), [W]), U = eM(X), $ = b.useMemo(() => {
|
|
44167
44167
|
const yt = new Set(Object.keys(U).filter((Pt) => U[Pt]));
|
|
44168
44168
|
return W.filter((Pt) => !Pt.responsive || Pt.responsive.some((nn) => yt.has(nn)));
|
|
44169
|
-
}, [W, U]), B =
|
|
44169
|
+
}, [W, U]), B = Qn(e, ["className", "style", "columns"]), {
|
|
44170
44170
|
locale: V = Bs,
|
|
44171
44171
|
table: j
|
|
44172
44172
|
} = b.useContext(Wt), {
|
|
@@ -45231,7 +45231,7 @@ const Gwe = "...", Y5 = ["delete", "mark", "code", "underline", "strong", "keybo
|
|
|
45231
45231
|
} = e, {
|
|
45232
45232
|
getPrefixCls: g,
|
|
45233
45233
|
direction: v
|
|
45234
|
-
} = b.useContext(Wt), [S] = Us("Text"), x = b.useRef(null), E = b.useRef(null), w = g("typography", n), T =
|
|
45234
|
+
} = b.useContext(Wt), [S] = Us("Text"), x = b.useRef(null), E = b.useRef(null), w = g("typography", n), T = Qn(m, Y5), [_, R] = LT(c), [A, L] = pr(!1, R.editing), {
|
|
45235
45235
|
triggerType: O = ["icon"]
|
|
45236
45236
|
} = R, k = (st) => {
|
|
45237
45237
|
var at;
|
|
@@ -45457,7 +45457,7 @@ const Gwe = "...", Y5 = ["delete", "mark", "code", "underline", "strong", "keybo
|
|
|
45457
45457
|
ellipsis: n,
|
|
45458
45458
|
children: r,
|
|
45459
45459
|
...i
|
|
45460
|
-
} = e, o = b.useMemo(() => n && typeof n == "object" ?
|
|
45460
|
+
} = e, o = b.useMemo(() => n && typeof n == "object" ? Qn(n, ["expandable", "rows"]) : n, [n]);
|
|
45461
45461
|
return /* @__PURE__ */ b.createElement(LC, {
|
|
45462
45462
|
ref: t,
|
|
45463
45463
|
...i,
|
|
@@ -48623,7 +48623,7 @@ Let's set up your environment step by step.`
|
|
|
48623
48623
|
}
|
|
48624
48624
|
const r = n && (n.message || String(n)) || "";
|
|
48625
48625
|
this.createAssistantMessageByContent({
|
|
48626
|
-
type: "
|
|
48626
|
+
type: "error",
|
|
48627
48627
|
payload: {
|
|
48628
48628
|
content: `Error occurred: ${r}`
|
|
48629
48629
|
}
|
|
@@ -48901,7 +48901,7 @@ function ld(e, t, n) {
|
|
|
48901
48901
|
[t]: { ...r, ...n }
|
|
48902
48902
|
};
|
|
48903
48903
|
}
|
|
48904
|
-
const
|
|
48904
|
+
const Zn = _c((e, t) => ({
|
|
48905
48905
|
initialized: !1,
|
|
48906
48906
|
projectId: "",
|
|
48907
48907
|
scene: "normal",
|
|
@@ -49377,7 +49377,7 @@ const QAe = "_loadingIcon_xwv0j_1", eLe = {
|
|
|
49377
49377
|
style: n
|
|
49378
49378
|
}
|
|
49379
49379
|
);
|
|
49380
|
-
}, tLe = "
|
|
49380
|
+
}, tLe = "_datusSelect_1nw1j_1", nLe = "_bordered_1nw1j_12", rLe = "_icon_1nw1j_24", iLe = "_selectorButton_1nw1j_34", oLe = "_buttonText_1nw1j_48", aLe = "_dropdownIcon_1nw1j_54", sLe = "_dropdownContent_1nw1j_61", lLe = "_headerWrapper_1nw1j_70", cLe = "_optionsList_1nw1j_73", uLe = "_optionItem_1nw1j_81", dLe = "_disabled_1nw1j_92", fLe = "_selected_1nw1j_95", hLe = "_optionLabel_1nw1j_103", mo = {
|
|
49381
49381
|
datusSelect: tLe,
|
|
49382
49382
|
bordered: nLe,
|
|
49383
49383
|
icon: rLe,
|
|
@@ -50291,17 +50291,17 @@ const oOe = "_sendChat_6v90u_1", aOe = "_normal_6v90u_13", sOe = "_waitingResult
|
|
|
50291
50291
|
agentSelector: yOe,
|
|
50292
50292
|
icon: bOe
|
|
50293
50293
|
}, SOe = (e) => {
|
|
50294
|
-
const { sessionId: t } = e, { t: n } = Ht(), r = n("chat.agent.main_agent"), i =
|
|
50295
|
-
(
|
|
50296
|
-
var
|
|
50297
|
-
return ((
|
|
50294
|
+
const { sessionId: t } = e, { t: n } = Ht(), r = n("chat.agent.main_agent"), i = Zn(
|
|
50295
|
+
(p) => {
|
|
50296
|
+
var m;
|
|
50297
|
+
return ((m = p.bySession[t]) == null ? void 0 : m.selectedAgentName) ?? null;
|
|
50298
50298
|
}
|
|
50299
|
-
), o =
|
|
50299
|
+
), o = Zn((p) => p.activeSessionId), a = Zn((p) => p.agentSelectorOpen), s = t === o, l = s && a, c = Nv((p) => p.agents), u = Nv((p) => p.fetch);
|
|
50300
50300
|
Ke(() => {
|
|
50301
|
-
|
|
50302
|
-
}, [
|
|
50303
|
-
const
|
|
50304
|
-
const
|
|
50301
|
+
u();
|
|
50302
|
+
}, [u]);
|
|
50303
|
+
const d = i ?? Es, f = Rt(() => {
|
|
50304
|
+
const p = [
|
|
50305
50305
|
{
|
|
50306
50306
|
key: Es,
|
|
50307
50307
|
dataKey: "main",
|
|
@@ -50309,7 +50309,7 @@ const oOe = "_sendChat_6v90u_1", aOe = "_normal_6v90u_13", sOe = "_waitingResult
|
|
|
50309
50309
|
db,
|
|
50310
50310
|
{
|
|
50311
50311
|
simple: !0,
|
|
50312
|
-
selected:
|
|
50312
|
+
selected: d === Es,
|
|
50313
50313
|
agent: {
|
|
50314
50314
|
id: Es,
|
|
50315
50315
|
name: Es,
|
|
@@ -50319,22 +50319,22 @@ const oOe = "_sendChat_6v90u_1", aOe = "_normal_6v90u_13", sOe = "_waitingResult
|
|
|
50319
50319
|
)
|
|
50320
50320
|
}
|
|
50321
50321
|
];
|
|
50322
|
-
return
|
|
50323
|
-
const
|
|
50324
|
-
|
|
50325
|
-
key:
|
|
50326
|
-
dataKey:
|
|
50327
|
-
label: /* @__PURE__ */ I.createElement(db, { simple: !0, selected:
|
|
50322
|
+
return c.forEach((m) => {
|
|
50323
|
+
const g = d === m.name;
|
|
50324
|
+
p.push({
|
|
50325
|
+
key: m.name,
|
|
50326
|
+
dataKey: m.id,
|
|
50327
|
+
label: /* @__PURE__ */ I.createElement(db, { simple: !0, selected: g, agent: m })
|
|
50328
50328
|
});
|
|
50329
|
-
}),
|
|
50330
|
-
}, [
|
|
50331
|
-
const
|
|
50332
|
-
|
|
50333
|
-
const
|
|
50334
|
-
|
|
50329
|
+
}), p;
|
|
50330
|
+
}, [d, c, r]), h = (p) => {
|
|
50331
|
+
const m = Zn.getState();
|
|
50332
|
+
m.setAgentSelectorOpen(!1);
|
|
50333
|
+
const g = p === Es ? null : p;
|
|
50334
|
+
m.setSelectedAgent(t, g);
|
|
50335
50335
|
};
|
|
50336
50336
|
return Rt(() => {
|
|
50337
|
-
if (
|
|
50337
|
+
if (d === Es)
|
|
50338
50338
|
return /* @__PURE__ */ I.createElement(
|
|
50339
50339
|
db,
|
|
50340
50340
|
{
|
|
@@ -50346,19 +50346,21 @@ const oOe = "_sendChat_6v90u_1", aOe = "_normal_6v90u_13", sOe = "_waitingResult
|
|
|
50346
50346
|
}
|
|
50347
50347
|
}
|
|
50348
50348
|
);
|
|
50349
|
-
const
|
|
50350
|
-
return
|
|
50351
|
-
}, [
|
|
50349
|
+
const p = c.find((m) => m.name === d);
|
|
50350
|
+
return p ? /* @__PURE__ */ I.createElement(db, { simple: !0, agent: p }) : d;
|
|
50351
|
+
}, [d, c, r]), /* @__PURE__ */ I.createElement(
|
|
50352
50352
|
DM,
|
|
50353
50353
|
{
|
|
50354
50354
|
className: TF.agentSelector,
|
|
50355
50355
|
icon: /* @__PURE__ */ I.createElement(RC, { size: 12, className: TF.icon }),
|
|
50356
|
-
open:
|
|
50357
|
-
onOpenChange: (
|
|
50358
|
-
|
|
50359
|
-
|
|
50360
|
-
|
|
50361
|
-
|
|
50356
|
+
open: l,
|
|
50357
|
+
onOpenChange: (p) => {
|
|
50358
|
+
s && Zn.getState().setAgentSelectorOpen(p);
|
|
50359
|
+
},
|
|
50360
|
+
value: d,
|
|
50361
|
+
items: f,
|
|
50362
|
+
selectedKey: d,
|
|
50363
|
+
onSelect: h,
|
|
50362
50364
|
dropdownAlign: { offset: [-28, 2] },
|
|
50363
50365
|
dropDownContentStyle: {
|
|
50364
50366
|
minWidth: 150,
|
|
@@ -50454,11 +50456,11 @@ const wOe = ({ className: e, style: t }) => {
|
|
|
50454
50456
|
commonIcon: zOe,
|
|
50455
50457
|
atIcon: HOe
|
|
50456
50458
|
}, UOe = (e) => {
|
|
50457
|
-
const { style: t, className: n, sessionId: r, subagentId: i } = e, { t: o } = Ht(), a = kl(), [s, l] = Ue(!1), c = Le(null), u = Le(null), d =
|
|
50459
|
+
const { style: t, className: n, sessionId: r, subagentId: i } = e, { t: o } = Ht(), a = kl(), [s, l] = Ue(!1), c = Le(null), u = Le(null), d = Zn(
|
|
50458
50460
|
(O) => O.bySession[r] ?? O.getBucket(r)
|
|
50459
50461
|
);
|
|
50460
50462
|
Ke(() => {
|
|
50461
|
-
|
|
50463
|
+
Zn.getState().ensureBucket(r);
|
|
50462
50464
|
}, [r]);
|
|
50463
50465
|
const {
|
|
50464
50466
|
state: f,
|
|
@@ -50479,7 +50481,7 @@ const wOe = ({ className: e, style: t }) => {
|
|
|
50479
50481
|
function E(O) {
|
|
50480
50482
|
var D, F;
|
|
50481
50483
|
const k = (F = (D = c.current) == null ? void 0 : D.resizableTextArea) == null ? void 0 : F.textArea, M = `/${O.name} `;
|
|
50482
|
-
|
|
50484
|
+
Zn.getState().setInput(r, M), setTimeout(() => {
|
|
50483
50485
|
if (!k)
|
|
50484
50486
|
return;
|
|
50485
50487
|
const W = M.length;
|
|
@@ -50490,10 +50492,10 @@ const wOe = ({ className: e, style: t }) => {
|
|
|
50490
50492
|
(O) => {
|
|
50491
50493
|
const k = O.target.value;
|
|
50492
50494
|
if (k === "@") {
|
|
50493
|
-
|
|
50495
|
+
Zn.getState().setInput(r, ""), T();
|
|
50494
50496
|
return;
|
|
50495
50497
|
}
|
|
50496
|
-
|
|
50498
|
+
Zn.getState().setInput(r, k);
|
|
50497
50499
|
const M = O.target.selectionStart, F = k.substring(0, M).match(/^\/([^\s]*)$/);
|
|
50498
50500
|
if (!F) {
|
|
50499
50501
|
p();
|
|
@@ -50513,7 +50515,7 @@ const wOe = ({ className: e, style: t }) => {
|
|
|
50513
50515
|
p(), l(!0);
|
|
50514
50516
|
}, _ = gt(async () => {
|
|
50515
50517
|
const O = d.input.trim();
|
|
50516
|
-
O && await
|
|
50518
|
+
O && await Zn.getState().sendChatMessage(r, O);
|
|
50517
50519
|
}, [r, d.input]), R = gt(() => {
|
|
50518
50520
|
a.stopChat();
|
|
50519
50521
|
}, [a]), A = gt(
|
|
@@ -50573,7 +50575,7 @@ const wOe = ({ className: e, style: t }) => {
|
|
|
50573
50575
|
AOe,
|
|
50574
50576
|
{
|
|
50575
50577
|
nodes: d.contextNodes,
|
|
50576
|
-
onRemove: (O) =>
|
|
50578
|
+
onRemove: (O) => Zn.getState().removeContextNode(r, O)
|
|
50577
50579
|
}
|
|
50578
50580
|
), /* @__PURE__ */ I.createElement(mr, { title: o("chat.input.at_context_tips") }, /* @__PURE__ */ I.createElement(
|
|
50579
50581
|
"div",
|
|
@@ -50601,7 +50603,7 @@ const wOe = ({ className: e, style: t }) => {
|
|
|
50601
50603
|
{
|
|
50602
50604
|
size: "small",
|
|
50603
50605
|
checked: d.planMode,
|
|
50604
|
-
onChange: (O) =>
|
|
50606
|
+
onChange: (O) => Zn.getState().setPlanMode(r, O)
|
|
50605
50607
|
}
|
|
50606
50608
|
), /* @__PURE__ */ I.createElement(
|
|
50607
50609
|
"span",
|
|
@@ -50619,7 +50621,7 @@ const wOe = ({ className: e, style: t }) => {
|
|
|
50619
50621
|
onClose: x,
|
|
50620
50622
|
position: L(),
|
|
50621
50623
|
onSelect: ({ type: O, title: k, value: M }) => {
|
|
50622
|
-
|
|
50624
|
+
Zn.getState().addContextNode(r, {
|
|
50623
50625
|
type: O,
|
|
50624
50626
|
title: k,
|
|
50625
50627
|
getContent() {
|
|
@@ -50696,7 +50698,7 @@ function VOe() {
|
|
|
50696
50698
|
["partial", w],
|
|
50697
50699
|
["partialRight", T],
|
|
50698
50700
|
["rearg", R]
|
|
50699
|
-
], q = "[object Arguments]", K = "[object Array]", ae = "[object AsyncFunction]", ne = "[object Boolean]", le = "[object Date]", de = "[object DOMException]", ue = "[object Error]", ie = "[object Function]", ce = "[object GeneratorFunction]", fe = "[object Map]", J = "[object Number]", he = "[object Null]", be = "[object Object]", oe = "[object Promise]", ye = "[object Proxy]", He = "[object RegExp]", Re = "[object Set]", Ne = "[object String]", Je = "[object Symbol]", Qe = "[object Undefined]", ft = "[object WeakMap]", Ot = "[object WeakSet]", xe = "[object ArrayBuffer]", Oe = "[object DataView]", Ee = "[object Float32Array]", De = "[object Float64Array]", _e = "[object Int8Array]", ze = "[object Int16Array]", qe = "[object Int32Array]", ke = "[object Uint8Array]", we = "[object Uint8ClampedArray]", Xe = "[object Uint16Array]", et = "[object Uint32Array]", ut = /\b__p \+= '';/g, pt = /\b(__p \+=) '' \+/g, Nt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, st = /&(?:amp|lt|gt|quot|#39);/g, at = /[&<>"']/g, _t = RegExp(st.source), Ft = RegExp(at.source), $e = /<%-([\s\S]+?)%>/g, tt = /<%([\s\S]+?)%>/g, Ie = /<%=([\s\S]+?)%>/g, mt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ve = /^\w*$/, Me = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, We = /[\\^$.*+?()[\]{}|]/g, Fe = RegExp(We.source), Ge = /^\s+/, ot = /\s/, vt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, It = /\{\n\/\* \[wrapped with (.+)\] \*/, In = /,? & /, vn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Yt = /[()=,{}\[\]\/\s]/, ar = /\\(\\)?/g, kr = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, yn = /\w*$/, Kt = /^[-+]0x[0-9a-f]+$/i, ht = /^0b[01]+$/i, wt = /^\[object .+?Constructor\]$/, Bt = /^0o[0-7]+$/i, rn = /^(?:0|[1-9]\d*)$/, yt = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Pt = /($^)/, nn = /['\n\r\u2028\u2029\\]/g, En = "\\ud800-\\udfff", sr = "\\u0300-\\u036f", dr = "\\ufe20-\\ufe2f", vr = "\\u20d0-\\u20ff", Un = sr + dr + vr, To = "\\u2700-\\u27bf", uo = "a-z\\xdf-\\xf6\\xf8-\\xff", hs = "\\xac\\xb1\\xd7\\xf7", Rc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Qt = "\\u2000-\\u206f", At = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", en = "A-Z\\xc0-\\xd6\\xd8-\\xde",
|
|
50701
|
+
], q = "[object Arguments]", K = "[object Array]", ae = "[object AsyncFunction]", ne = "[object Boolean]", le = "[object Date]", de = "[object DOMException]", ue = "[object Error]", ie = "[object Function]", ce = "[object GeneratorFunction]", fe = "[object Map]", J = "[object Number]", he = "[object Null]", be = "[object Object]", oe = "[object Promise]", ye = "[object Proxy]", He = "[object RegExp]", Re = "[object Set]", Ne = "[object String]", Je = "[object Symbol]", Qe = "[object Undefined]", ft = "[object WeakMap]", Ot = "[object WeakSet]", xe = "[object ArrayBuffer]", Oe = "[object DataView]", Ee = "[object Float32Array]", De = "[object Float64Array]", _e = "[object Int8Array]", ze = "[object Int16Array]", qe = "[object Int32Array]", ke = "[object Uint8Array]", we = "[object Uint8ClampedArray]", Xe = "[object Uint16Array]", et = "[object Uint32Array]", ut = /\b__p \+= '';/g, pt = /\b(__p \+=) '' \+/g, Nt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, st = /&(?:amp|lt|gt|quot|#39);/g, at = /[&<>"']/g, _t = RegExp(st.source), Ft = RegExp(at.source), $e = /<%-([\s\S]+?)%>/g, tt = /<%([\s\S]+?)%>/g, Ie = /<%=([\s\S]+?)%>/g, mt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ve = /^\w*$/, Me = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, We = /[\\^$.*+?()[\]{}|]/g, Fe = RegExp(We.source), Ge = /^\s+/, ot = /\s/, vt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, It = /\{\n\/\* \[wrapped with (.+)\] \*/, In = /,? & /, vn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Yt = /[()=,{}\[\]\/\s]/, ar = /\\(\\)?/g, kr = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, yn = /\w*$/, Kt = /^[-+]0x[0-9a-f]+$/i, ht = /^0b[01]+$/i, wt = /^\[object .+?Constructor\]$/, Bt = /^0o[0-7]+$/i, rn = /^(?:0|[1-9]\d*)$/, yt = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Pt = /($^)/, nn = /['\n\r\u2028\u2029\\]/g, En = "\\ud800-\\udfff", sr = "\\u0300-\\u036f", dr = "\\ufe20-\\ufe2f", vr = "\\u20d0-\\u20ff", Un = sr + dr + vr, To = "\\u2700-\\u27bf", uo = "a-z\\xdf-\\xf6\\xf8-\\xff", hs = "\\xac\\xb1\\xd7\\xf7", Rc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Qt = "\\u2000-\\u206f", At = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", en = "A-Z\\xc0-\\xd6\\xd8-\\xde", nr = "\\ufe0e\\ufe0f", Pr = hs + Rc + Qt + At, si = "['’]", Bl = "[" + En + "]", Ko = "[" + Pr + "]", _o = "[" + Un + "]", Io = "\\d+", bt = "[" + To + "]", pn = "[" + uo + "]", li = "[^" + En + Pr + Io + To + uo + en + "]", $s = "\\ud83c[\\udffb-\\udfff]", zl = "(?:" + _o + "|" + $s + ")", tm = "[^" + En + "]", nm = "(?:\\ud83c[\\udde6-\\uddff]){2}", Df = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ff = "[" + en + "]", Bk = "\\u200d", zk = "(?:" + pn + "|" + li + ")", qee = "(?:" + Ff + "|" + li + ")", Hk = "(?:" + si + "(?:d|ll|m|re|s|t|ve))?", Uk = "(?:" + si + "(?:D|LL|M|RE|S|T|VE))?", Wk = zl + "?", jk = "[" + nr + "]?", Zee = "(?:" + Bk + "(?:" + [tm, nm, Df].join("|") + ")" + jk + Wk + ")*", Jee = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Qee = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Xk = jk + Wk + Zee, ete = "(?:" + [bt, nm, Df].join("|") + ")" + Xk, tte = "(?:" + [tm + _o + "?", _o, nm, Df, Bl].join("|") + ")", nte = RegExp(si, "g"), rte = RegExp(_o, "g"), TE = RegExp($s + "(?=" + $s + ")|" + tte + Xk, "g"), ite = RegExp([
|
|
50700
50702
|
Ff + "?" + pn + "+" + Hk + "(?=" + [Ko, Ff, "$"].join("|") + ")",
|
|
50701
50703
|
qee + "+" + Uk + "(?=" + [Ko, Ff + zk, "$"].join("|") + ")",
|
|
50702
50704
|
Ff + "?" + zk + "+" + Hk,
|
|
@@ -50705,7 +50707,7 @@ function VOe() {
|
|
|
50705
50707
|
Jee,
|
|
50706
50708
|
Io,
|
|
50707
50709
|
ete
|
|
50708
|
-
].join("|"), "g"), ote = RegExp("[" + Bk + En + Un +
|
|
50710
|
+
].join("|"), "g"), ote = RegExp("[" + Bk + En + Un + nr + "]"), ate = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, ste = [
|
|
50709
50711
|
"Array",
|
|
50710
50712
|
"Buffer",
|
|
50711
50713
|
"DataView",
|
|
@@ -78385,13 +78387,13 @@ function Mn(e) {
|
|
|
78385
78387
|
}
|
|
78386
78388
|
return t;
|
|
78387
78389
|
}
|
|
78388
|
-
function
|
|
78390
|
+
function Jn(e, t, n) {
|
|
78389
78391
|
if (!Ut(t) || !Ut(e))
|
|
78390
78392
|
return n ? Mn(t) : e;
|
|
78391
78393
|
for (var r in t)
|
|
78392
78394
|
if (t.hasOwnProperty(r) && r !== y3) {
|
|
78393
78395
|
var i = e[r], o = t[r];
|
|
78394
|
-
Ut(o) && Ut(i) && !Tt(o) && !Tt(i) && !Wv(o) && !Wv(i) && !I8(o) && !I8(i) && !Jg(o) && !Jg(i) ?
|
|
78396
|
+
Ut(o) && Ut(i) && !Tt(o) && !Tt(i) && !Wv(o) && !Wv(i) && !I8(o) && !I8(i) && !Jg(o) && !Jg(i) ? Jn(i, o, n) : (n || !(r in e)) && (e[r] = Mn(t[r]));
|
|
78395
78397
|
}
|
|
78396
78398
|
return e;
|
|
78397
78399
|
}
|
|
@@ -83376,7 +83378,7 @@ var CZ = or({
|
|
|
83376
83378
|
"z2",
|
|
83377
83379
|
"zlevel",
|
|
83378
83380
|
"parent"
|
|
83379
|
-
]),
|
|
83381
|
+
]), tr = (function(e) {
|
|
83380
83382
|
xt(t, e);
|
|
83381
83383
|
function t(n) {
|
|
83382
83384
|
return e.call(this, n) || this;
|
|
@@ -83675,7 +83677,7 @@ var Mje = /* @__PURE__ */ (function() {
|
|
|
83675
83677
|
}, t.prototype.isZeroArea = function() {
|
|
83676
83678
|
return !this.shape.width || !this.shape.height;
|
|
83677
83679
|
}, t;
|
|
83678
|
-
})(
|
|
83680
|
+
})(tr);
|
|
83679
83681
|
qr.prototype.type = "rect";
|
|
83680
83682
|
var vz = {
|
|
83681
83683
|
fill: "#000"
|
|
@@ -83949,7 +83951,7 @@ function Vje(e, t, n, r) {
|
|
|
83949
83951
|
}
|
|
83950
83952
|
function Gje(e, t, n, r) {
|
|
83951
83953
|
var i = n && Xn(n, "select") >= 0, o = !1;
|
|
83952
|
-
if (e instanceof
|
|
83954
|
+
if (e instanceof tr) {
|
|
83953
83955
|
var a = TZ(e), s = i && a.selectFill || a.normalFill, l = i && a.selectStroke || a.normalStroke;
|
|
83954
83956
|
if (Ch(s) || Ch(l)) {
|
|
83955
83957
|
r = r || {};
|
|
@@ -84357,7 +84359,7 @@ var PZ = (function(e) {
|
|
|
84357
84359
|
}
|
|
84358
84360
|
return t.prototype.applyTransform = function(n) {
|
|
84359
84361
|
}, t;
|
|
84360
|
-
})(
|
|
84362
|
+
})(tr);
|
|
84361
84363
|
function DZ(e) {
|
|
84362
84364
|
return e.setData != null;
|
|
84363
84365
|
}
|
|
@@ -84396,7 +84398,7 @@ function gXe(e, t) {
|
|
|
84396
84398
|
var o = e[i];
|
|
84397
84399
|
n.push(o.getUpdatedPathProxy(!0));
|
|
84398
84400
|
}
|
|
84399
|
-
var a = new
|
|
84401
|
+
var a = new tr(t);
|
|
84400
84402
|
return a.createPathProxy(), a.buildPath = function(s) {
|
|
84401
84403
|
if (DZ(s)) {
|
|
84402
84404
|
s.appendPath(n);
|
|
@@ -84420,7 +84422,7 @@ var vXe = /* @__PURE__ */ (function() {
|
|
|
84420
84422
|
}, t.prototype.buildPath = function(n, r) {
|
|
84421
84423
|
n.moveTo(r.cx + r.r, r.cy), n.arc(r.cx, r.cy, r.r, 0, Math.PI * 2);
|
|
84422
84424
|
}, t;
|
|
84423
|
-
})(
|
|
84425
|
+
})(tr);
|
|
84424
84426
|
fE.prototype.type = "circle";
|
|
84425
84427
|
var yXe = /* @__PURE__ */ (function() {
|
|
84426
84428
|
function e() {
|
|
@@ -84438,7 +84440,7 @@ var yXe = /* @__PURE__ */ (function() {
|
|
|
84438
84440
|
var i = 0.5522848, o = r.cx, a = r.cy, s = r.rx, l = r.ry, c = s * i, u = l * i;
|
|
84439
84441
|
n.moveTo(o - s, a), n.bezierCurveTo(o - s, a - u, o - c, a - l, o, a - l), n.bezierCurveTo(o + c, a - l, o + s, a - u, o + s, a), n.bezierCurveTo(o + s, a + u, o + c, a + l, o, a + l), n.bezierCurveTo(o - c, a + l, o - s, a + u, o - s, a), n.closePath();
|
|
84440
84442
|
}, t;
|
|
84441
|
-
})(
|
|
84443
|
+
})(tr);
|
|
84442
84444
|
F3.prototype.type = "ellipse";
|
|
84443
84445
|
var BZ = Math.PI, x_ = BZ * 2, Ad = Math.sin, wh = Math.cos, bXe = Math.acos, qi = Math.atan2, zz = Math.abs, rv = Math.sqrt, bg = Math.max, tl = Math.min, Ss = 1e-4;
|
|
84444
84446
|
function SXe(e, t, n, r, i, o, a, s) {
|
|
@@ -84532,7 +84534,7 @@ var EXe = /* @__PURE__ */ (function() {
|
|
|
84532
84534
|
}, t.prototype.isZeroArea = function() {
|
|
84533
84535
|
return this.shape.startAngle === this.shape.endAngle || this.shape.r === this.shape.r0;
|
|
84534
84536
|
}, t;
|
|
84535
|
-
})(
|
|
84537
|
+
})(tr);
|
|
84536
84538
|
Vu.prototype.type = "sector";
|
|
84537
84539
|
var wXe = /* @__PURE__ */ (function() {
|
|
84538
84540
|
function e() {
|
|
@@ -84550,7 +84552,7 @@ var wXe = /* @__PURE__ */ (function() {
|
|
|
84550
84552
|
var i = r.cx, o = r.cy, a = Math.PI * 2;
|
|
84551
84553
|
n.moveTo(i + r.r, o), n.arc(i, o, r.r, 0, a, !1), n.moveTo(i + r.r0, o), n.arc(i, o, r.r0, 0, a, !0);
|
|
84552
84554
|
}, t;
|
|
84553
|
-
})(
|
|
84555
|
+
})(tr);
|
|
84554
84556
|
B3.prototype.type = "ring";
|
|
84555
84557
|
function TXe(e, t, n, r) {
|
|
84556
84558
|
var i = [], o = [], a = [], s = [], l, c, u, d;
|
|
@@ -84610,7 +84612,7 @@ var _Xe = /* @__PURE__ */ (function() {
|
|
|
84610
84612
|
}, t.prototype.buildPath = function(n, r) {
|
|
84611
84613
|
zZ(n, r, !0);
|
|
84612
84614
|
}, t;
|
|
84613
|
-
})(
|
|
84615
|
+
})(tr);
|
|
84614
84616
|
z3.prototype.type = "polygon";
|
|
84615
84617
|
var IXe = /* @__PURE__ */ (function() {
|
|
84616
84618
|
function e() {
|
|
@@ -84632,7 +84634,7 @@ var IXe = /* @__PURE__ */ (function() {
|
|
|
84632
84634
|
}, t.prototype.buildPath = function(n, r) {
|
|
84633
84635
|
zZ(n, r, !1);
|
|
84634
84636
|
}, t;
|
|
84635
|
-
})(
|
|
84637
|
+
})(tr);
|
|
84636
84638
|
$0.prototype.type = "polyline";
|
|
84637
84639
|
var AXe = {}, LXe = /* @__PURE__ */ (function() {
|
|
84638
84640
|
function e() {
|
|
@@ -84667,7 +84669,7 @@ var AXe = {}, LXe = /* @__PURE__ */ (function() {
|
|
|
84667
84669
|
r.y1 * (1 - n) + r.y2 * n
|
|
84668
84670
|
];
|
|
84669
84671
|
}, t;
|
|
84670
|
-
})(
|
|
84672
|
+
})(tr);
|
|
84671
84673
|
Bu.prototype.type = "line";
|
|
84672
84674
|
var ko = [], OXe = /* @__PURE__ */ (function() {
|
|
84673
84675
|
function e() {
|
|
@@ -84706,7 +84708,7 @@ var H3 = (function(e) {
|
|
|
84706
84708
|
var r = Hz(this.shape, n, !0);
|
|
84707
84709
|
return rUe(r, r);
|
|
84708
84710
|
}, t;
|
|
84709
|
-
})(
|
|
84711
|
+
})(tr);
|
|
84710
84712
|
H3.prototype.type = "bezier-curve";
|
|
84711
84713
|
var RXe = /* @__PURE__ */ (function() {
|
|
84712
84714
|
function e() {
|
|
@@ -84729,7 +84731,7 @@ var RXe = /* @__PURE__ */ (function() {
|
|
|
84729
84731
|
var i = r.cx, o = r.cy, a = Math.max(r.r, 0), s = r.startAngle, l = r.endAngle, c = r.clockwise, u = Math.cos(s), d = Math.sin(s);
|
|
84730
84732
|
n.moveTo(u * a + i, d * a + o), n.arc(i, o, a, s, l, !c);
|
|
84731
84733
|
}, t;
|
|
84732
|
-
})(
|
|
84734
|
+
})(tr);
|
|
84733
84735
|
hE.prototype.type = "arc";
|
|
84734
84736
|
var NXe = (function(e) {
|
|
84735
84737
|
xt(t, e);
|
|
@@ -84752,9 +84754,9 @@ var NXe = (function(e) {
|
|
|
84752
84754
|
for (var n = this.shape.paths || [], r = 0; r < n.length; r++)
|
|
84753
84755
|
n[r].pathUpdated();
|
|
84754
84756
|
}, t.prototype.getBoundingRect = function() {
|
|
84755
|
-
return this._updatePathDirty.call(this),
|
|
84757
|
+
return this._updatePathDirty.call(this), tr.prototype.getBoundingRect.call(this);
|
|
84756
84758
|
}, t;
|
|
84757
|
-
})(
|
|
84759
|
+
})(tr), HZ = (function() {
|
|
84758
84760
|
function e(t) {
|
|
84759
84761
|
this.colorStops = t || [];
|
|
84760
84762
|
}
|
|
@@ -84963,7 +84965,7 @@ function j3(e) {
|
|
|
84963
84965
|
}
|
|
84964
84966
|
var mR = {}, hu = ["x", "y"], Sp = ["width", "height"];
|
|
84965
84967
|
function zXe(e) {
|
|
84966
|
-
return
|
|
84968
|
+
return tr.extend(e);
|
|
84967
84969
|
}
|
|
84968
84970
|
var HXe = mXe;
|
|
84969
84971
|
function UXe(e, t) {
|
|
@@ -85256,7 +85258,7 @@ const e$e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
85256
85258
|
Line: Bu,
|
|
85257
85259
|
LinearGradient: U3,
|
|
85258
85260
|
OrientedBoundingRect: UZ,
|
|
85259
|
-
Path:
|
|
85261
|
+
Path: tr,
|
|
85260
85262
|
Point: un,
|
|
85261
85263
|
Polygon: z3,
|
|
85262
85264
|
Polyline: $0,
|
|
@@ -85551,7 +85553,7 @@ var Kh = {
|
|
|
85551
85553
|
}
|
|
85552
85554
|
return e.prototype.init = function(t, n, r) {
|
|
85553
85555
|
}, e.prototype.mergeOption = function(t, n) {
|
|
85554
|
-
|
|
85556
|
+
Jn(this.option, t, !0);
|
|
85555
85557
|
}, e.prototype.get = function(t, n) {
|
|
85556
85558
|
return t == null ? this.option : this._doGet(this.parsePath(t), !n && this.parentModel);
|
|
85557
85559
|
}, e.prototype.getShallow = function(t, n) {
|
|
@@ -85665,7 +85667,7 @@ function p$e(e, t) {
|
|
|
85665
85667
|
}
|
|
85666
85668
|
}
|
|
85667
85669
|
function JZ(e, t) {
|
|
85668
|
-
return
|
|
85670
|
+
return Jn(Jn({}, e, !0), t, !0);
|
|
85669
85671
|
}
|
|
85670
85672
|
const m$e = {
|
|
85671
85673
|
time: {
|
|
@@ -85901,9 +85903,9 @@ function eJ(e, t) {
|
|
|
85901
85903
|
function v$e(e) {
|
|
85902
85904
|
if (Dt(e)) {
|
|
85903
85905
|
var t = eS[e.toUpperCase()] || {};
|
|
85904
|
-
return e === Dx || e === K3 ? Mn(t) :
|
|
85906
|
+
return e === Dx || e === K3 ? Mn(t) : Jn(Mn(t), Mn(eS[sp]), !1);
|
|
85905
85907
|
} else
|
|
85906
|
-
return
|
|
85908
|
+
return Jn(Mn(e), Mn(eS[sp]), !1);
|
|
85907
85909
|
}
|
|
85908
85910
|
function y$e(e) {
|
|
85909
85911
|
return q3[e];
|
|
@@ -86418,9 +86420,9 @@ var U$e = Mr(), cr = (
|
|
|
86418
86420
|
this.mergeDefaultAndTheme(n, i);
|
|
86419
86421
|
}, t.prototype.mergeDefaultAndTheme = function(n, r) {
|
|
86420
86422
|
var i = Zv(this), o = i ? Y0(n) : {}, a = r.getTheme();
|
|
86421
|
-
|
|
86423
|
+
Jn(n, a.get(this.mainType)), Jn(n, this.getDefaultOption()), i && zu(n, o, i);
|
|
86422
86424
|
}, t.prototype.mergeOption = function(n, r) {
|
|
86423
|
-
|
|
86425
|
+
Jn(this.option, n, !0);
|
|
86424
86426
|
var i = Zv(this);
|
|
86425
86427
|
i && zu(this.option, n, i);
|
|
86426
86428
|
}, t.prototype.optionUpdated = function(n, r) {
|
|
@@ -86435,7 +86437,7 @@ var U$e = Mr(), cr = (
|
|
|
86435
86437
|
a && i.push(a), o = o.superClass;
|
|
86436
86438
|
}
|
|
86437
86439
|
for (var s = {}, l = i.length - 1; l >= 0; l--)
|
|
86438
|
-
s =
|
|
86440
|
+
s = Jn(s, i[l], !0);
|
|
86439
86441
|
r.defaultOption = s;
|
|
86440
86442
|
}
|
|
86441
86443
|
return r.defaultOption;
|
|
@@ -86878,7 +86880,7 @@ var Kb, $m, tH, nH = "\0_ec_inner", eVe = 1, uk = (
|
|
|
86878
86880
|
}, t.prototype._mergeOption = function(n, r) {
|
|
86879
86881
|
var i = this.option, o = this._componentsMap, a = this._componentsCount, s = [], l = Tn(), c = r && r.replaceMergeMainTypeMap;
|
|
86880
86882
|
$$e(this), ve(n, function(d, f) {
|
|
86881
|
-
d != null && (cr.hasClass(f) ? f && (s.push(f), l.set(f, !0)) : i[f] = i[f] == null ? Mn(d) :
|
|
86883
|
+
d != null && (cr.hasClass(f) ? f && (s.push(f), l.set(f, !0)) : i[f] = i[f] == null ? Mn(d) : Jn(i[f], d, !0));
|
|
86882
86884
|
}), c && c.each(function(d, f) {
|
|
86883
86885
|
cr.hasClass(f) && !l.get(f) && (s.push(f), l.set(f, !0));
|
|
86884
86886
|
}), cr.topologicalTravel(s, cr.getAllClassMainTypes(), u, this);
|
|
@@ -87063,7 +87065,7 @@ var Kb, $m, tH, nH = "\0_ec_inner", eVe = 1, uk = (
|
|
|
87063
87065
|
series: []
|
|
87064
87066
|
}), n._componentsCount = Tn();
|
|
87065
87067
|
var i = r.aria;
|
|
87066
|
-
Ut(i) && i.enabled == null && (i.enabled = !0), nVe(r, n._theme.option),
|
|
87068
|
+
Ut(i) && i.enabled == null && (i.enabled = !0), nVe(r, n._theme.option), Jn(r, X$e, !1), n._mergeOption(r, null);
|
|
87067
87069
|
};
|
|
87068
87070
|
})(), t;
|
|
87069
87071
|
})(Fr)
|
|
@@ -87077,7 +87079,7 @@ function tVe(e, t) {
|
|
|
87077
87079
|
function nVe(e, t) {
|
|
87078
87080
|
var n = e.color && !e.colorLayer;
|
|
87079
87081
|
ve(t, function(r, i) {
|
|
87080
|
-
i === "colorLayer" && n || i === "color" && e.color || cr.hasClass(i) || (typeof r == "object" ? e[i] = e[i] ?
|
|
87082
|
+
i === "colorLayer" && n || i === "color" && e.color || cr.hasClass(i) || (typeof r == "object" ? e[i] = e[i] ? Jn(e[i], r, !1) : Mn(r) : e[i] == null && (e[i] = r));
|
|
87081
87083
|
});
|
|
87082
87084
|
}
|
|
87083
87085
|
function rH(e, t, n) {
|
|
@@ -87228,7 +87230,7 @@ function A_(e) {
|
|
|
87228
87230
|
if (t)
|
|
87229
87231
|
for (var n = 0, r = aH.length; n < r; n++) {
|
|
87230
87232
|
var i = aH[n], o = t.normal, a = t.emphasis;
|
|
87231
|
-
o && o[i] && (e[i] = e[i] || {}, e[i].normal ?
|
|
87233
|
+
o && o[i] && (e[i] = e[i] || {}, e[i].normal ? Jn(e[i].normal, o[i]) : e[i].normal = o[i], o[i] = null), a && a[i] && (e[i] = e[i] || {}, e[i].emphasis ? Jn(e[i].emphasis, a[i]) : e[i].emphasis = a[i], a[i] = null);
|
|
87232
87234
|
}
|
|
87233
87235
|
}
|
|
87234
87236
|
function to(e, t, n) {
|
|
@@ -88870,9 +88872,9 @@ var eGe = "__universalTransitionEnabled", ls = (
|
|
|
88870
88872
|
wH(a, this), this.dataTask.context.data = a, Gc(this).dataBeforeProcessed = a, EH(this), this._initSelectedMapFromData(a);
|
|
88871
88873
|
}, t.prototype.mergeDefaultAndTheme = function(n, r) {
|
|
88872
88874
|
var i = Zv(this), o = i ? Y0(n) : {}, a = this.subType;
|
|
88873
|
-
cr.hasClass(a) && (a += "Series"),
|
|
88875
|
+
cr.hasClass(a) && (a += "Series"), Jn(n, r.getTheme().get(this.subType)), Jn(n, this.getDefaultOption()), rR(n, "label", ["show"]), this.fillDataTextStyle(n.data), i && zu(n, o, i);
|
|
88874
88876
|
}, t.prototype.mergeOption = function(n, r) {
|
|
88875
|
-
n =
|
|
88877
|
+
n = Jn(this.option, n, !0), this.fillDataTextStyle(n.data);
|
|
88876
88878
|
var i = Zv(this);
|
|
88877
88879
|
i && zu(this.option, n, i);
|
|
88878
88880
|
var o = Gc(this).sourceManager;
|
|
@@ -90068,7 +90070,7 @@ var NGe = Math.round(Math.random() * 9), MGe = typeof Object.defineProperty == "
|
|
|
90068
90070
|
throw TypeError("Value of WeakMap is not a non-null object.");
|
|
90069
90071
|
return t;
|
|
90070
90072
|
}, e;
|
|
90071
|
-
})(), PGe =
|
|
90073
|
+
})(), PGe = tr.extend({
|
|
90072
90074
|
type: "triangle",
|
|
90073
90075
|
shape: {
|
|
90074
90076
|
cx: 0,
|
|
@@ -90080,7 +90082,7 @@ var NGe = Math.round(Math.random() * 9), MGe = typeof Object.defineProperty == "
|
|
|
90080
90082
|
var n = t.cx, r = t.cy, i = t.width / 2, o = t.height / 2;
|
|
90081
90083
|
e.moveTo(n, r - o), e.lineTo(n + i, r + o), e.lineTo(n - i, r + o), e.closePath();
|
|
90082
90084
|
}
|
|
90083
|
-
}), DGe =
|
|
90085
|
+
}), DGe = tr.extend({
|
|
90084
90086
|
type: "diamond",
|
|
90085
90087
|
shape: {
|
|
90086
90088
|
cx: 0,
|
|
@@ -90092,7 +90094,7 @@ var NGe = Math.round(Math.random() * 9), MGe = typeof Object.defineProperty == "
|
|
|
90092
90094
|
var n = t.cx, r = t.cy, i = t.width / 2, o = t.height / 2;
|
|
90093
90095
|
e.moveTo(n, r - o), e.lineTo(n + i, r), e.lineTo(n, r + o), e.lineTo(n - i, r), e.closePath();
|
|
90094
90096
|
}
|
|
90095
|
-
}), FGe =
|
|
90097
|
+
}), FGe = tr.extend({
|
|
90096
90098
|
type: "pin",
|
|
90097
90099
|
shape: {
|
|
90098
90100
|
// x, y on the cusp
|
|
@@ -90105,7 +90107,7 @@ var NGe = Math.round(Math.random() * 9), MGe = typeof Object.defineProperty == "
|
|
|
90105
90107
|
var n = t.x, r = t.y, i = t.width / 5 * 3, o = Math.max(i, t.height), a = i / 2, s = a * a / (o - a), l = r - o + a + s, c = Math.asin(s / a), u = Math.cos(c) * a, d = Math.sin(c), f = Math.cos(c), h = a * 0.6, p = a * 0.7;
|
|
90106
90108
|
e.moveTo(n - u, l + s), e.arc(n, l, a, Math.PI - c, Math.PI * 2 + c), e.bezierCurveTo(n + u - d * h, l + s + f * h, n, r - p, n, r), e.bezierCurveTo(n, r - p, n - u + d * h, l + s + f * h, n - u, l + s), e.closePath();
|
|
90107
90109
|
}
|
|
90108
|
-
}), BGe =
|
|
90110
|
+
}), BGe = tr.extend({
|
|
90109
90111
|
type: "arrow",
|
|
90110
90112
|
shape: {
|
|
90111
90113
|
x: 0,
|
|
@@ -90160,7 +90162,7 @@ var NGe = Math.round(Math.random() * 9), MGe = typeof Object.defineProperty == "
|
|
|
90160
90162
|
ve(zGe, function(e, t) {
|
|
90161
90163
|
IR[t] = new e();
|
|
90162
90164
|
});
|
|
90163
|
-
var UGe =
|
|
90165
|
+
var UGe = tr.extend({
|
|
90164
90166
|
type: "symbol",
|
|
90165
90167
|
shape: {
|
|
90166
90168
|
symbolType: "",
|
|
@@ -90416,10 +90418,10 @@ function tf(e, t, n, r) {
|
|
|
90416
90418
|
t.beforeBrush && t.beforeBrush(), t.innerBeforeBrush();
|
|
90417
90419
|
var c = n.prevEl;
|
|
90418
90420
|
c || (l = s = !0);
|
|
90419
|
-
var u = t instanceof
|
|
90421
|
+
var u = t instanceof tr && t.autoBatch && tYe(t.style);
|
|
90420
90422
|
s || eYe(i, c.transform) ? (Ho(e, n), qJ(e, t)) : u || Ho(e, n);
|
|
90421
90423
|
var d = t0(t, n.inHover);
|
|
90422
|
-
t instanceof
|
|
90424
|
+
t instanceof tr ? (n.lastDrawType !== zH && (l = !0, n.lastDrawType = zH), BH(e, t, c, l, n), (!u || !n.batchFill && !n.batchStroke) && e.beginPath(), KGe(e, t, d, u), u && (n.batchFill = d.fill || "", n.batchStroke = d.stroke || "")) : t instanceof Ix ? (n.lastDrawType !== UH && (l = !0, n.lastDrawType = UH), BH(e, t, c, l, n), ZGe(e, t, d)) : t instanceof $u ? (n.lastDrawType !== HH && (l = !0, n.lastDrawType = HH), JGe(e, t, c, l, n), qGe(e, t, d)) : t.getTemporalDisplayables && (n.lastDrawType !== WH && (l = !0, n.lastDrawType = WH), nYe(e, t, n)), u && r && Ho(e, n), t.innerAfterBrush(), t.afterBrush && t.afterBrush(), n.prevEl = t, t.__dirty = 0, t.__isRendered = !0;
|
|
90423
90425
|
}
|
|
90424
90426
|
function nYe(e, t, n) {
|
|
90425
90427
|
var r = t.getDisplayables(), i = t.getTemporalDisplayables();
|
|
@@ -91401,7 +91403,7 @@ var Dd, D_, r1, Ql, i1, F_, B_, Lh, Oh, GH, YH, z_, KH, o1, qH, uQ, Pa, ZH, Rh,
|
|
|
91401
91403
|
if (v.states && v.states.emphasis) {
|
|
91402
91404
|
if (iv(v))
|
|
91403
91405
|
return;
|
|
91404
|
-
if (v instanceof
|
|
91406
|
+
if (v instanceof tr && sXe(v), v.__dirty) {
|
|
91405
91407
|
var S = v.prevStates;
|
|
91406
91408
|
S && v.useStates(S);
|
|
91407
91409
|
}
|
|
@@ -94586,7 +94588,7 @@ var ZQ = (
|
|
|
94586
94588
|
}
|
|
94587
94589
|
}
|
|
94588
94590
|
}, t;
|
|
94589
|
-
})(
|
|
94591
|
+
})(tr)
|
|
94590
94592
|
), fqe = (
|
|
94591
94593
|
/** @class */
|
|
94592
94594
|
(function(e) {
|
|
@@ -94619,7 +94621,7 @@ var ZQ = (
|
|
|
94619
94621
|
UR(n, o, a + c - 1, c, s, -1, r.stackedOnSmooth, l, r.connectNulls), a += c + 1, n.closePath();
|
|
94620
94622
|
}
|
|
94621
94623
|
}, t;
|
|
94622
|
-
})(
|
|
94624
|
+
})(tr)
|
|
94623
94625
|
);
|
|
94624
94626
|
function JQ(e, t, n, r, i) {
|
|
94625
94627
|
var o = e.getArea(), a = o.x, s = o.y, l = o.width, c = o.height, u = n.get(["lineStyle", "width"]) || 0;
|
|
@@ -95411,7 +95413,7 @@ var Aqe = (
|
|
|
95411
95413
|
var m = Math.cos(u), g = Math.sin(u), v = Math.cos(d), S = Math.sin(d);
|
|
95412
95414
|
p ? (n.moveTo(m * a + i, g * a + o), n.arc(m * c + i, g * c + o, l, -Math.PI + u, u, !f)) : n.moveTo(m * s + i, g * s + o), n.arc(i, o, s, u, d, !f), n.arc(v * c + i, S * c + o, l, d - Math.PI * 2, d - Math.PI, !f), a !== 0 && n.arc(i, o, a, d, u, f);
|
|
95413
95415
|
}, t;
|
|
95414
|
-
})(
|
|
95416
|
+
})(tr)
|
|
95415
95417
|
);
|
|
95416
95418
|
function Oqe(e, t) {
|
|
95417
95419
|
t = t || {};
|
|
@@ -95913,7 +95915,7 @@ var zqe = (
|
|
|
95913
95915
|
for (var i = r.points, o = this.baseDimIdx, a = 1 - this.baseDimIdx, s = [], l = [], c = this.barWidth, u = 0; u < i.length; u += 3)
|
|
95914
95916
|
l[o] = c, l[a] = i[u + 2], s[o] = i[u + o], s[a] = i[u + a], n.rect(s[0], s[1], l[0], l[1]);
|
|
95915
95917
|
}, t;
|
|
95916
|
-
})(
|
|
95918
|
+
})(tr)
|
|
95917
95919
|
);
|
|
95918
95920
|
function L9(e, t, n, r) {
|
|
95919
95921
|
var i = e.getData(), o = i.getLayout("valueAxisHorizontal") ? 1 : 0, a = i.getLayout("largeDataIndices"), s = i.getLayout("size"), l = e.getModel("backgroundStyle"), c = i.getLayout("largeBackgroundPoints");
|
|
@@ -96709,7 +96711,7 @@ var nZe = (
|
|
|
96709
96711
|
}
|
|
96710
96712
|
return n;
|
|
96711
96713
|
}, t;
|
|
96712
|
-
})(
|
|
96714
|
+
})(tr)
|
|
96713
96715
|
), oZe = (
|
|
96714
96716
|
/** @class */
|
|
96715
96717
|
(function() {
|
|
@@ -96992,7 +96994,7 @@ var uee = {
|
|
|
96992
96994
|
breakLabelLayout: {
|
|
96993
96995
|
moveOverlap: "auto"
|
|
96994
96996
|
}
|
|
96995
|
-
}, lZe =
|
|
96997
|
+
}, lZe = Jn({
|
|
96996
96998
|
// The gap at both ends of the axis. For categoryAxis, boolean.
|
|
96997
96999
|
boundaryGap: !0,
|
|
96998
97000
|
// Set false to faster category collection.
|
|
@@ -97015,7 +97017,7 @@ var uee = {
|
|
|
97015
97017
|
axisLabel: {
|
|
97016
97018
|
interval: "auto"
|
|
97017
97019
|
}
|
|
97018
|
-
}, uee), Ok =
|
|
97020
|
+
}, uee), Ok = Jn({
|
|
97019
97021
|
boundaryGap: [0, 0],
|
|
97020
97022
|
axisLine: {
|
|
97021
97023
|
// Not shown when other axis is categoryAxis in cartesian
|
|
@@ -97047,7 +97049,7 @@ var uee = {
|
|
|
97047
97049
|
width: 1
|
|
97048
97050
|
}
|
|
97049
97051
|
}
|
|
97050
|
-
}, uee), cZe =
|
|
97052
|
+
}, uee), cZe = Jn({
|
|
97051
97053
|
splitNumber: 6,
|
|
97052
97054
|
axisLabel: {
|
|
97053
97055
|
// To eliminate labels that are not nice
|
|
@@ -97082,7 +97084,7 @@ function pZe() {
|
|
|
97082
97084
|
}
|
|
97083
97085
|
function k9(e, t, n, r) {
|
|
97084
97086
|
ve(fZe, function(i, o) {
|
|
97085
|
-
var a =
|
|
97087
|
+
var a = Jn(Jn({}, dZe[o], !0), r, !0), s = (
|
|
97086
97088
|
/** @class */
|
|
97087
97089
|
(function(l) {
|
|
97088
97090
|
xt(c, l);
|
|
@@ -97092,7 +97094,7 @@ function k9(e, t, n, r) {
|
|
|
97092
97094
|
}
|
|
97093
97095
|
return c.prototype.mergeDefaultAndTheme = function(u, d) {
|
|
97094
97096
|
var f = Zv(this), h = f ? Y0(u) : {}, p = d.getTheme();
|
|
97095
|
-
|
|
97097
|
+
Jn(u, p.get(o + "Axis")), Jn(u, this.getDefaultOption()), u.type = P9(u), f && zu(u, h, f);
|
|
97096
97098
|
}, c.prototype.optionUpdated = function() {
|
|
97097
97099
|
var u = this.option;
|
|
97098
97100
|
u.type === "category" && (this.__ordinalMeta = BR.createByAxisModel(this));
|
|
@@ -99932,7 +99934,7 @@ var GJe = function(e, t) {
|
|
|
99932
99934
|
r === !0 && (r = n.selector = ["all", "inverse"]), Tt(r) && ve(r, function(o, a) {
|
|
99933
99935
|
Dt(o) && (o = {
|
|
99934
99936
|
type: o
|
|
99935
|
-
}), r[a] =
|
|
99937
|
+
}), r[a] = Jn(o, GJe(i, o.type));
|
|
99936
99938
|
});
|
|
99937
99939
|
}, t.prototype.optionUpdated = function() {
|
|
99938
99940
|
this._updateData(this.ecModel);
|
|
@@ -100886,7 +100888,7 @@ var aQe = (function() {
|
|
|
100886
100888
|
}, e.prototype.getLayer = function(t, n) {
|
|
100887
100889
|
this._singleCanvas && !this._needsManuallyCompositing && (t = Fd);
|
|
100888
100890
|
var r = this._layers[t];
|
|
100889
|
-
return r || (r = new iI("zr_" + t, this, this.dpr), r.zlevel = t, r.__builtin__ = !0, this._layerConfig[t] ?
|
|
100891
|
+
return r || (r = new iI("zr_" + t, this, this.dpr), r.zlevel = t, r.__builtin__ = !0, this._layerConfig[t] ? Jn(r, this._layerConfig[t], !0) : this._layerConfig[t - v1] && Jn(r, this._layerConfig[t - v1], !0), n && (r.virtual = n), this.insertLayer(t, r), r.initContext()), r;
|
|
100890
100892
|
}, e.prototype.insertLayer = function(t, n) {
|
|
100891
100893
|
var r = this._layers, i = this._zlevelList, o = i.length, a = this._domRoot, s = null, l = -1;
|
|
100892
100894
|
if (!r[t] && iQe(n)) {
|
|
@@ -100954,12 +100956,12 @@ var aQe = (function() {
|
|
|
100954
100956
|
}, e.prototype.configLayer = function(t, n) {
|
|
100955
100957
|
if (n) {
|
|
100956
100958
|
var r = this._layerConfig;
|
|
100957
|
-
r[t] ?
|
|
100959
|
+
r[t] ? Jn(r[t], n, !0) : r[t] = n;
|
|
100958
100960
|
for (var i = 0; i < this._zlevelList.length; i++) {
|
|
100959
100961
|
var o = this._zlevelList[i];
|
|
100960
100962
|
if (o === t || o === t + v1) {
|
|
100961
100963
|
var a = this._layers[o];
|
|
100962
|
-
|
|
100964
|
+
Jn(a, r[t], !0);
|
|
100963
100965
|
}
|
|
100964
100966
|
}
|
|
100965
100967
|
}
|
|
@@ -101408,7 +101410,7 @@ const Fee = (e) => {
|
|
|
101408
101410
|
sql: t,
|
|
101409
101411
|
sqlFileInfo: l
|
|
101410
101412
|
});
|
|
101411
|
-
|
|
101413
|
+
Zn.getState().submitPrompt(A);
|
|
101412
101414
|
}, [r, t, l]), w = gt(
|
|
101413
101415
|
(A) => {
|
|
101414
101416
|
!S || !t || Iq(
|
|
@@ -102788,7 +102790,8 @@ const Ztt = "_popover_1kif2_1", Jtt = "_popconfirm_1kif2_4", Qtt = "_confirmTitl
|
|
|
102788
102790
|
if (!t)
|
|
102789
102791
|
return;
|
|
102790
102792
|
const s = (c) => {
|
|
102791
|
-
|
|
102793
|
+
const u = c.target;
|
|
102794
|
+
u.closest(".ant-popover") || o.current && !o.current.contains(u) && i();
|
|
102792
102795
|
}, l = setTimeout(() => {
|
|
102793
102796
|
document.addEventListener("mousedown", s);
|
|
102794
102797
|
}, 0);
|
|
@@ -102933,15 +102936,15 @@ const Nnt = (e) => {
|
|
|
102933
102936
|
inlineSqlResult: i = !1,
|
|
102934
102937
|
scene: o = "normal",
|
|
102935
102938
|
source: a = pAe()
|
|
102936
|
-
} = e, { t: s } = Ht(), [l, c] = Ue(!1), u =
|
|
102937
|
-
Ke(() => (
|
|
102939
|
+
} = e, { t: s } = Ht(), [l, c] = Ue(!1), u = Zn((m) => m.tabs), d = Zn((m) => m.activeSessionId);
|
|
102940
|
+
Ke(() => (Zn.getState().init({
|
|
102938
102941
|
projectId: t,
|
|
102939
102942
|
scene: o,
|
|
102940
102943
|
source: a,
|
|
102941
102944
|
subagentId: n,
|
|
102942
102945
|
showSessionTabs: r
|
|
102943
102946
|
}), () => {
|
|
102944
|
-
|
|
102947
|
+
Zn.getState().dispose();
|
|
102945
102948
|
}), [t, o, a, n, r]), MC(async () => {
|
|
102946
102949
|
const m = u.find((g) => g.sessionId === d);
|
|
102947
102950
|
if (!m || m.initialized) {
|
|
@@ -102953,7 +102956,7 @@ const Nnt = (e) => {
|
|
|
102953
102956
|
if (kv(m.sessionId)) {
|
|
102954
102957
|
c(!1), await m.manager.createNewChat();
|
|
102955
102958
|
const g = m.userQuery;
|
|
102956
|
-
g &&
|
|
102959
|
+
g && Zn.getState().sendChatMessage(m.sessionId, g);
|
|
102957
102960
|
} else
|
|
102958
102961
|
c(!0), await m.manager.activeChat(() => {
|
|
102959
102962
|
c(!1);
|
|
@@ -102988,10 +102991,10 @@ const Nnt = (e) => {
|
|
|
102988
102991
|
{
|
|
102989
102992
|
tabs: p,
|
|
102990
102993
|
activeSessionId: d,
|
|
102991
|
-
onTabClick: (m) =>
|
|
102992
|
-
onTabClose: (m) =>
|
|
102993
|
-
onNewTab: () =>
|
|
102994
|
-
onSwitchSession: (m) =>
|
|
102994
|
+
onTabClick: (m) => Zn.getState().switchTab(m),
|
|
102995
|
+
onTabClose: (m) => Zn.getState().closeTab(m),
|
|
102996
|
+
onNewTab: () => Zn.getState().createNewTab(),
|
|
102997
|
+
onSwitchSession: (m) => Zn.getState().openSession(m)
|
|
102995
102998
|
}
|
|
102996
102999
|
), l && /* @__PURE__ */ I.createElement(bc, { title: s("chat.status.load_history") }), u.map((m) => /* @__PURE__ */ I.createElement(zAe, { key: m.sessionId, value: m.manager }, /* @__PURE__ */ I.createElement(
|
|
102997
103000
|
"div",
|
|
@@ -103020,10 +103023,10 @@ I.forwardRef((e, t) => {
|
|
|
103020
103023
|
const { scene: n, source: r, projectId: i } = e;
|
|
103021
103024
|
return I.useImperativeHandle(t, () => ({
|
|
103022
103025
|
createNewChat: () => {
|
|
103023
|
-
|
|
103026
|
+
Zn.getState().createNewTab();
|
|
103024
103027
|
},
|
|
103025
103028
|
addSelectionToChat: (o) => {
|
|
103026
|
-
|
|
103029
|
+
Zn.getState().addSelectionContext(o);
|
|
103027
103030
|
}
|
|
103028
103031
|
}), []), /* @__PURE__ */ I.createElement("div", { className: Bnt.chatPanel }, /* @__PURE__ */ I.createElement(QR, { scene: n, source: r, projectId: i }));
|
|
103029
103032
|
});
|
|
@@ -104311,14 +104314,14 @@ const Srt = "_sidebar_1jx53_1", xrt = "_collapsed_1jx53_11", Crt = "_header_1jx5
|
|
|
104311
104314
|
if (!i)
|
|
104312
104315
|
return;
|
|
104313
104316
|
let T = !1;
|
|
104314
|
-
return (async () => (await ab(1e3), !T &&
|
|
104317
|
+
return (async () => (await ab(1e3), !T && Zn.getState().openSession({ session_id: i })))(), () => {
|
|
104315
104318
|
T = !0;
|
|
104316
104319
|
};
|
|
104317
104320
|
}, [i]), Ke(() => {
|
|
104318
104321
|
if (i || !o)
|
|
104319
104322
|
return;
|
|
104320
104323
|
let T = !1;
|
|
104321
|
-
return (async () => (await ab(1e3), !T && (
|
|
104324
|
+
return (async () => (await ab(1e3), !T && (Zn.getState().createNewTab(o), tit())))(), () => {
|
|
104322
104325
|
T = !0;
|
|
104323
104326
|
};
|
|
104324
104327
|
}, [i, o]), Ke(() => fl.on(
|
|
@@ -104331,11 +104334,11 @@ const Srt = "_sidebar_1jx53_1", xrt = "_collapsed_1jx53_11", Crt = "_header_1jx5
|
|
|
104331
104334
|
s(!1), c(void 0), fI(void 0);
|
|
104332
104335
|
}, []), v = gt(
|
|
104333
104336
|
async (T) => {
|
|
104334
|
-
c(T.session_id), s(!0), fI(T.session_id), a || await ab(1e3),
|
|
104337
|
+
c(T.session_id), s(!0), fI(T.session_id), a || await ab(1e3), Zn.getState().openSession(T);
|
|
104335
104338
|
},
|
|
104336
104339
|
[a]
|
|
104337
104340
|
), S = gt(async (T) => {
|
|
104338
|
-
s(!0), await ab(1e3),
|
|
104341
|
+
s(!0), await ab(1e3), Zn.getState().createNewTab(T);
|
|
104339
104342
|
}, []), x = () => a ? m ? /* @__PURE__ */ I.createElement(
|
|
104340
104343
|
QR,
|
|
104341
104344
|
{
|