@yuku123/z-agent-component 0.1.2 → 0.1.4
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/echarts-BRUNUPov.js +556 -0
- package/dist/z-agent-component.js +2917 -2863
- package/dist/z-agent-pages.js +2632 -2578
- package/package.json +1 -1
- package/dist/PagedTable-D9Bw7uhG-D0CawPBa.js +0 -843
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import { createRequest as x } from "@yuku123/z-frontend-common";
|
|
2
|
+
import le from "react";
|
|
3
|
+
import * as z from "echarts/core";
|
|
4
|
+
import { BarChart as ce, LineChart as ue } from "echarts/charts";
|
|
5
|
+
import { GridComponent as ge, LegendComponent as fe, TitleComponent as de, TooltipComponent as Ae } from "echarts/components";
|
|
6
|
+
import { CanvasRenderer as Te } from "echarts/renderers";
|
|
7
|
+
import me from "echarts-for-react/lib/core";
|
|
8
|
+
const H = x({ baseURL: "/api", timeout: 15e3 }), j = x({ baseURL: "/api", timeout: 15e3 }), C = x({ baseURL: "/api", timeout: 15e3 });
|
|
9
|
+
function $(r) {
|
|
10
|
+
const n = function(o, p = {}) {
|
|
11
|
+
const l = { ...p };
|
|
12
|
+
return l.body !== void 0 && (l.data = l.body, delete l.body), typeof l.method == "string" && (l.method = l.method.toUpperCase()), l.url = o, r.request(l);
|
|
13
|
+
};
|
|
14
|
+
return ["get", "post", "put", "delete", "patch", "head", "request", "create", "interceptors"].forEach((o) => {
|
|
15
|
+
typeof r[o] == "function" ? n[o] = r[o].bind(r) : n[o] = r[o];
|
|
16
|
+
}), n;
|
|
17
|
+
}
|
|
18
|
+
const Ee = $(H);
|
|
19
|
+
$(j);
|
|
20
|
+
$(C);
|
|
21
|
+
function Ie({ apiBase: r } = {}) {
|
|
22
|
+
if (r !== void 0)
|
|
23
|
+
for (const n of [H, j, C])
|
|
24
|
+
n.defaults.baseURL = r;
|
|
25
|
+
}
|
|
26
|
+
const B = { GET: "GET", DELETE: "DELETE" }, b = {};
|
|
27
|
+
function e(r, n, a, o, p) {
|
|
28
|
+
b[r] || (b[r] = {}), b[r][n] = { verb: a, path: o, transform: p };
|
|
29
|
+
}
|
|
30
|
+
function he(r, n) {
|
|
31
|
+
let a = 0;
|
|
32
|
+
return r.replace(/\{(\w+)\}/g, () => String(n[a++] ?? ""));
|
|
33
|
+
}
|
|
34
|
+
class be extends Error {
|
|
35
|
+
constructor(n, a, o) {
|
|
36
|
+
super(`[apiRouter] ${n}.${a}() 未注册路由(${o}):本次没有发出任何请求。若该端点本应存在,请先在 agent/api/routes.js 里 reg('${n}', '${a}', ...)。`), this.name = "ApiRouteError", this.__missing_route = !0, this.api = n, this.method = a;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class ve extends Error {
|
|
40
|
+
constructor(n, a, o) {
|
|
41
|
+
super(`[apiRouter] ${n}.${a}() 参数形状不对:${o}`), this.name = "ApiParamError", this.__param_shape = !0, this.api = n, this.method = a;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function Pe(r, n) {
|
|
45
|
+
return n.startsWith("/ctc/ac") || n.startsWith("/ctc/authorization") || n.startsWith("/ctc/surl") ? C : n.startsWith("/auth/") ? j : Ee;
|
|
46
|
+
}
|
|
47
|
+
function Se(r) {
|
|
48
|
+
const n = { data: void 0, params: void 0 };
|
|
49
|
+
if (!r.length) return n;
|
|
50
|
+
const a = r[0];
|
|
51
|
+
if (a && typeof a == "object" && !Array.isArray(a) && ("data" in a || "params" in a) ? ("data" in a && (n.data = a.data), "params" in a && (n.params = a.params)) : n.data = a, r.length > 1) {
|
|
52
|
+
const o = r[1];
|
|
53
|
+
o && typeof o == "object" && !Array.isArray(o) && ("params" in o ? n.params = o.params : "data" in o ? n.data = o.data : n.params = o);
|
|
54
|
+
}
|
|
55
|
+
return n;
|
|
56
|
+
}
|
|
57
|
+
function Oe(r, n, a, o) {
|
|
58
|
+
const p = {};
|
|
59
|
+
if (r === B.GET || r === B.DELETE) {
|
|
60
|
+
const i = n[0];
|
|
61
|
+
if (i != null) {
|
|
62
|
+
if (typeof i != "object" || Array.isArray(i))
|
|
63
|
+
throw new ve(
|
|
64
|
+
a,
|
|
65
|
+
o,
|
|
66
|
+
`GET/DELETE 端点收到标量参数 ${JSON.stringify(i)},query 参数名未知,请改用 {params:{<参数名>: 值}}`
|
|
67
|
+
);
|
|
68
|
+
p.params = "params" in i ? i.params : i;
|
|
69
|
+
}
|
|
70
|
+
return p;
|
|
71
|
+
}
|
|
72
|
+
const { data: l, params: d } = Se(n);
|
|
73
|
+
return l !== void 0 && (p.data = l), d !== void 0 && (p.params = d), p;
|
|
74
|
+
}
|
|
75
|
+
function f(r) {
|
|
76
|
+
return new Proxy({}, {
|
|
77
|
+
get: (n, a) => {
|
|
78
|
+
if (!(a === "then" || typeof a == "symbol"))
|
|
79
|
+
return a === "toJSON" || a === "constructor" || a === "toString" ? () => `[apiRouter:${r}]` : async (...o) => {
|
|
80
|
+
var l, d;
|
|
81
|
+
const p = (l = b[r]) == null ? void 0 : l[a];
|
|
82
|
+
if (!p) {
|
|
83
|
+
const i = b[r] ? "方法名未注册" : "api key 未注册", A = new be(r, a, i);
|
|
84
|
+
throw console.error(A.message), A;
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
const i = he(p.path, o), A = Pe(p.verb, i), O = Oe(p.verb, o, r, a), m = await A.request({
|
|
88
|
+
method: p.verb,
|
|
89
|
+
url: i,
|
|
90
|
+
...O
|
|
91
|
+
});
|
|
92
|
+
return p.transform ? p.transform(m, o) : m;
|
|
93
|
+
} catch (i) {
|
|
94
|
+
if (i && i.__missing_route) throw i;
|
|
95
|
+
if (i && i.__param_shape)
|
|
96
|
+
throw console.error(i.message), i;
|
|
97
|
+
i && typeof i == "object" && (i.__api_error = !0, i.__api = r, i.__api_method = a);
|
|
98
|
+
const A = (d = i == null ? void 0 : i.response) == null ? void 0 : d.status;
|
|
99
|
+
throw console.error(
|
|
100
|
+
`[apiRouter] ${r}.${a}() 请求失败${A ? `(HTTP ${A})` : ""}:${(i == null ? void 0 : i.message) || i}`
|
|
101
|
+
), i;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
e("llmApi", "toolTemplateList", "GET", "/z-llm/config/tool-template/list");
|
|
108
|
+
e("mcpApi", "list", "GET", "/mcp/server/list");
|
|
109
|
+
e("mcpApi", "listTools", "POST", "/mcp/server/tools/list");
|
|
110
|
+
e("mcpApi", "callTool", "POST", "/mcp/server/tools/call");
|
|
111
|
+
e("ossApi", "listBuckets", "GET", "/v1/bucket");
|
|
112
|
+
e("ossApi", "getBucketStats", "GET", "/v1/bucket/stats");
|
|
113
|
+
e("ossApi", "createBucket", "POST", "/v1/bucket");
|
|
114
|
+
e("ossApi", "deleteBucket", "DELETE", "/v1/bucket");
|
|
115
|
+
e("ossApi", "setBucketAcl", "PUT", "/v1/bucket/acl");
|
|
116
|
+
e("ossApi", "listObjects", "GET", "/v1/object");
|
|
117
|
+
e("ossApi", "presignedUrl", "GET", "/v1/object/url");
|
|
118
|
+
e("ossApi", "uploadObject", "POST", "/v1/object");
|
|
119
|
+
e("ossApi", "downloadUrl", "GET", "/v1/object/url");
|
|
120
|
+
e("ossApi", "deleteObject", "DELETE", "/v1/object");
|
|
121
|
+
e("ossApi", "copyObject", "POST", "/v1/object/copy");
|
|
122
|
+
e("ossApi", "batchDelete", "POST", "/v1/object/batch-delete");
|
|
123
|
+
e("ossApi", "createFolder", "POST", "/v1/folder");
|
|
124
|
+
e("scriptApi", "list", "GET", "/script/list");
|
|
125
|
+
e("scriptApi", "create", "POST", "/script");
|
|
126
|
+
e("scriptApi", "update", "POST", "/script/update");
|
|
127
|
+
e("scriptApi", "delete", "POST", "/script/delete");
|
|
128
|
+
e("scriptApi", "publish", "POST", "/script/publish");
|
|
129
|
+
e("scriptApi", "unpublish", "POST", "/script/unpublish");
|
|
130
|
+
e("scriptApi", "run", "POST", "/script/run");
|
|
131
|
+
e("scriptApi", "importCurl", "POST", "/script/import-curl");
|
|
132
|
+
e("scriptApi", "importOpenApi", "POST", "/script/import-openapi");
|
|
133
|
+
e("scriptApi", "previewMapping", "POST", "/script/preview-mapping");
|
|
134
|
+
e("skillApi", "page", "POST", "/skill/page");
|
|
135
|
+
e("skillApi", "categoryTree", "GET", "/skill/category/tree");
|
|
136
|
+
e("skillApi", "create", "POST", "/skill");
|
|
137
|
+
e("skillApi", "createCategory", "POST", "/skill/category");
|
|
138
|
+
e("skillApi", "deleteCategory", "POST", "/skill/category/delete");
|
|
139
|
+
e("skillApi", "getBySkillCode", "GET", "/skill/by-code");
|
|
140
|
+
e("skillApi", "install", "POST", "/skill/install");
|
|
141
|
+
e("skillApi", "stats", "GET", "/skill/stats");
|
|
142
|
+
e("skillApi", "versions", "GET", "/skill/versions");
|
|
143
|
+
e("skillApi", "downloadPackage", "GET", "/skill/download");
|
|
144
|
+
e("skillApi", "uploadPackage", "POST", "/skill/upload");
|
|
145
|
+
e("agentApi", "appPage", "POST", "/agent/app/page");
|
|
146
|
+
e("agentApi", "appGet", "GET", "/agent/app/get");
|
|
147
|
+
e("agentApi", "appCreate", "POST", "/agent/app");
|
|
148
|
+
e("agentApi", "appUpdate", "POST", "/agent/app/update");
|
|
149
|
+
e("agentApi", "appDelete", "POST", "/agent/app/delete");
|
|
150
|
+
e("agentApi", "appPublish", "POST", "/agent/app/publish");
|
|
151
|
+
e("agentApi", "appUpgrade", "POST", "/agent/app/upgrade");
|
|
152
|
+
e("agentApi", "appToggleShare", "POST", "/agent/app/toggleShare");
|
|
153
|
+
e("agentApi", "versions", "GET", "/agent/app/versions");
|
|
154
|
+
e("agentApi", "groupTree", "GET", "/agent/group/tree");
|
|
155
|
+
e("agentApi", "groupCreate", "POST", "/agent/group");
|
|
156
|
+
e("agentApi", "groupUpdate", "POST", "/agent/group/update");
|
|
157
|
+
e("agentApi", "groupDelete", "POST", "/agent/group/delete");
|
|
158
|
+
e("agentApi", "chatHistory", "GET", "/agent/chat/history");
|
|
159
|
+
e("agentApi", "chatStream", "POST", "/agent/chat/send");
|
|
160
|
+
e("agentApi", "chatClear", "POST", "/agent/chat/clear");
|
|
161
|
+
e("agentApi", "shareVerify", "GET", "/agent/share/verify");
|
|
162
|
+
e("flowApi", "list", "GET", "/agent/flow/list");
|
|
163
|
+
e("flowApi", "get", "GET", "/agent/flow/byId");
|
|
164
|
+
e("flowApi", "byFlowId", "GET", "/agent/flow/byFlowId");
|
|
165
|
+
e("flowApi", "versions", "GET", "/agent/flow/versions");
|
|
166
|
+
e("flowApi", "create", "POST", "/agent/flow/create");
|
|
167
|
+
e("flowApi", "update", "POST", "/agent/flow/update");
|
|
168
|
+
e("flowApi", "publish", "POST", "/agent/flow/publish");
|
|
169
|
+
e("flowApi", "archive", "POST", "/agent/flow/archive");
|
|
170
|
+
e("flowApi", "newVersion", "POST", "/agent/flow/newVersion");
|
|
171
|
+
e("flowApi", "delete", "POST", "/agent/flow/delete");
|
|
172
|
+
e("flowApi", "execute", "POST", "/agent/flow/execute");
|
|
173
|
+
e("flowApi", "health", "GET", "/agent/flow/health");
|
|
174
|
+
e("statsApi", "overview", "GET", "/agent/stats/overview");
|
|
175
|
+
e("statsApi", "trend", "GET", "/agent/stats/trend");
|
|
176
|
+
e("statsApi", "latency", "GET", "/agent/stats/latency");
|
|
177
|
+
e("statsApi", "byApp", "GET", "/agent/stats/by-app");
|
|
178
|
+
e("statsApi", "byUser", "GET", "/agent/stats/by-user");
|
|
179
|
+
e("statsApi", "health", "GET", "/agent/stats/health");
|
|
180
|
+
e("pluginApi", "page", "GET", "/agent/plugin/page");
|
|
181
|
+
e("pluginApi", "get", "GET", "/agent/plugin/byId");
|
|
182
|
+
e("pluginApi", "byCode", "GET", "/agent/plugin/byCode");
|
|
183
|
+
e("pluginApi", "create", "POST", "/agent/plugin/create");
|
|
184
|
+
e("pluginApi", "update", "POST", "/agent/plugin/update");
|
|
185
|
+
e("pluginApi", "status", "POST", "/agent/plugin/status");
|
|
186
|
+
e("pluginApi", "delete", "POST", "/agent/plugin/delete");
|
|
187
|
+
e("pluginApi", "execute", "POST", "/agent/plugin/execute");
|
|
188
|
+
e("pluginApi", "builtinBeans", "GET", "/agent/plugin/builtin-beans");
|
|
189
|
+
e("pluginApi", "health", "GET", "/agent/plugin/health");
|
|
190
|
+
e("triggerApi", "page", "GET", "/agent/trigger/page");
|
|
191
|
+
e("triggerApi", "get", "GET", "/agent/trigger/byId");
|
|
192
|
+
e("triggerApi", "create", "POST", "/agent/trigger/create");
|
|
193
|
+
e("triggerApi", "update", "POST", "/agent/trigger/update");
|
|
194
|
+
e("triggerApi", "status", "POST", "/agent/trigger/status");
|
|
195
|
+
e("triggerApi", "delete", "POST", "/agent/trigger/delete");
|
|
196
|
+
e("triggerApi", "fire", "POST", "/agent/trigger/fire");
|
|
197
|
+
e("triggerApi", "health", "GET", "/agent/trigger/health");
|
|
198
|
+
e("templateApi", "page", "GET", "/agent/template/page");
|
|
199
|
+
e("templateApi", "get", "GET", "/agent/template/byId");
|
|
200
|
+
e("templateApi", "hot", "GET", "/agent/template/hot");
|
|
201
|
+
e("templateApi", "create", "POST", "/agent/template/create");
|
|
202
|
+
e("templateApi", "update", "POST", "/agent/template/update");
|
|
203
|
+
e("templateApi", "status", "POST", "/agent/template/status");
|
|
204
|
+
e("templateApi", "delete", "POST", "/agent/template/delete");
|
|
205
|
+
e("templateApi", "fork", "POST", "/agent/template/fork");
|
|
206
|
+
e("templateApi", "health", "GET", "/agent/template/health");
|
|
207
|
+
e("textGenApi", "page", "GET", "/agent/textgen/page");
|
|
208
|
+
e("textGenApi", "get", "GET", "/agent/textgen/byId");
|
|
209
|
+
e("textGenApi", "results", "GET", "/agent/textgen/results");
|
|
210
|
+
e("textGenApi", "create", "POST", "/agent/textgen/create");
|
|
211
|
+
e("textGenApi", "delete", "POST", "/agent/textgen/delete");
|
|
212
|
+
e("textGenApi", "run", "POST", "/agent/textgen/run");
|
|
213
|
+
e("textGenApi", "createAndRun", "POST", "/agent/textgen/createAndRun");
|
|
214
|
+
e("textGenApi", "health", "GET", "/agent/textgen/health");
|
|
215
|
+
e("humanInputApi", "inbox", "GET", "/agent/human/inbox");
|
|
216
|
+
e("humanInputApi", "listByExecution", "GET", "/agent/human/execution");
|
|
217
|
+
e("humanInputApi", "getById", "GET", "/agent/human/byId");
|
|
218
|
+
e("humanInputApi", "getByCode", "GET", "/agent/human/by-code");
|
|
219
|
+
e("humanInputApi", "decide", "POST", "/agent/human/decide");
|
|
220
|
+
e("humanInputApi", "create", "POST", "/agent/human/create");
|
|
221
|
+
e("humanInputApi", "health", "GET", "/agent/human/health");
|
|
222
|
+
e("productApi", "page", "GET", "/v1/products");
|
|
223
|
+
e("productApi", "create", "POST", "/v1/products");
|
|
224
|
+
e("productApi", "update", "PUT", "/v1/products");
|
|
225
|
+
e("productApi", "delete", "DELETE", "/v1/products");
|
|
226
|
+
e("productApi", "publish", "POST", "/v1/products/publish");
|
|
227
|
+
e("productApi", "offline", "POST", "/v1/products/offline");
|
|
228
|
+
e("productApi", "configGet", "GET", "/v1/products/config");
|
|
229
|
+
e("productApi", "configSave", "PUT", "/v1/products/config");
|
|
230
|
+
e("sceneApi", "page", "GET", "/v1/scenes");
|
|
231
|
+
e("sceneApi", "create", "POST", "/v1/scenes");
|
|
232
|
+
e("sceneApi", "update", "PUT", "/v1/scenes");
|
|
233
|
+
e("sceneApi", "delete", "DELETE", "/v1/scenes");
|
|
234
|
+
e("sceneApi", "duplicate", "POST", "/v1/scenes/duplicate");
|
|
235
|
+
e("sceneApi", "publish", "POST", "/v1/scenes/publish");
|
|
236
|
+
e("sceneApi", "offline", "POST", "/v1/scenes/offline");
|
|
237
|
+
e("sceneApi", "execute", "POST", "/v1/scenes/execute");
|
|
238
|
+
e("sceneApi", "canvasGet", "GET", "/v1/scenes/canvas");
|
|
239
|
+
e("sceneApi", "configGet", "GET", "/v1/scenes/config");
|
|
240
|
+
e("sceneApi", "nodes", "GET", "/v1/scenes/nodes");
|
|
241
|
+
e("sceneApi", "chatHistory", "GET", "/v1/scenes/chat-history");
|
|
242
|
+
const Le = f("agentApi"), Ue = f("flowApi"), De = f("statsApi");
|
|
243
|
+
f("pluginApi");
|
|
244
|
+
f("memoryApi");
|
|
245
|
+
f("triggerApi");
|
|
246
|
+
const Ne = f("templateApi");
|
|
247
|
+
f("textGenApi");
|
|
248
|
+
f("humanInputApi");
|
|
249
|
+
const Ye = f("llmApi"), qe = f("mcpApi"), Fe = f("scriptApi"), We = f("skillApi"), Be = f("productApi"), Me = f("sceneApi"), Ve = f("ossApi");
|
|
250
|
+
var S = { exports: {} }, E = {};
|
|
251
|
+
/**
|
|
252
|
+
* @license React
|
|
253
|
+
* react-jsx-runtime.production.js
|
|
254
|
+
*
|
|
255
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the MIT license found in the
|
|
258
|
+
* LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/
|
|
260
|
+
var M;
|
|
261
|
+
function ye() {
|
|
262
|
+
if (M) return E;
|
|
263
|
+
M = 1;
|
|
264
|
+
var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
265
|
+
function a(o, p, l) {
|
|
266
|
+
var d = null;
|
|
267
|
+
if (l !== void 0 && (d = "" + l), p.key !== void 0 && (d = "" + p.key), "key" in p) {
|
|
268
|
+
l = {};
|
|
269
|
+
for (var i in p)
|
|
270
|
+
i !== "key" && (l[i] = p[i]);
|
|
271
|
+
} else l = p;
|
|
272
|
+
return p = l.ref, {
|
|
273
|
+
$$typeof: r,
|
|
274
|
+
type: o,
|
|
275
|
+
key: d,
|
|
276
|
+
ref: p !== void 0 ? p : null,
|
|
277
|
+
props: l
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
return E.Fragment = n, E.jsx = a, E.jsxs = a, E;
|
|
281
|
+
}
|
|
282
|
+
var h = {};
|
|
283
|
+
/**
|
|
284
|
+
* @license React
|
|
285
|
+
* react-jsx-runtime.development.js
|
|
286
|
+
*
|
|
287
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the MIT license found in the
|
|
290
|
+
* LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/
|
|
292
|
+
var V;
|
|
293
|
+
function _e() {
|
|
294
|
+
return V || (V = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
295
|
+
function r(t) {
|
|
296
|
+
if (t == null) return null;
|
|
297
|
+
if (typeof t == "function")
|
|
298
|
+
return t.$$typeof === se ? null : t.displayName || t.name || null;
|
|
299
|
+
if (typeof t == "string") return t;
|
|
300
|
+
switch (t) {
|
|
301
|
+
case y:
|
|
302
|
+
return "Fragment";
|
|
303
|
+
case Q:
|
|
304
|
+
return "Profiler";
|
|
305
|
+
case Z:
|
|
306
|
+
return "StrictMode";
|
|
307
|
+
case re:
|
|
308
|
+
return "Suspense";
|
|
309
|
+
case ae:
|
|
310
|
+
return "SuspenseList";
|
|
311
|
+
case ie:
|
|
312
|
+
return "Activity";
|
|
313
|
+
}
|
|
314
|
+
if (typeof t == "object")
|
|
315
|
+
switch (typeof t.tag == "number" && console.error(
|
|
316
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
317
|
+
), t.$$typeof) {
|
|
318
|
+
case X:
|
|
319
|
+
return "Portal";
|
|
320
|
+
case ee:
|
|
321
|
+
return t.displayName || "Context";
|
|
322
|
+
case K:
|
|
323
|
+
return (t._context.displayName || "Context") + ".Consumer";
|
|
324
|
+
case te:
|
|
325
|
+
var s = t.render;
|
|
326
|
+
return t = t.displayName, t || (t = s.displayName || s.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
327
|
+
case ne:
|
|
328
|
+
return s = t.displayName || null, s !== null ? s : r(t.type) || "Memo";
|
|
329
|
+
case _:
|
|
330
|
+
s = t._payload, t = t._init;
|
|
331
|
+
try {
|
|
332
|
+
return r(t(s));
|
|
333
|
+
} catch {
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return null;
|
|
337
|
+
}
|
|
338
|
+
function n(t) {
|
|
339
|
+
return "" + t;
|
|
340
|
+
}
|
|
341
|
+
function a(t) {
|
|
342
|
+
try {
|
|
343
|
+
n(t);
|
|
344
|
+
var s = !1;
|
|
345
|
+
} catch {
|
|
346
|
+
s = !0;
|
|
347
|
+
}
|
|
348
|
+
if (s) {
|
|
349
|
+
s = console;
|
|
350
|
+
var c = s.error, u = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
351
|
+
return c.call(
|
|
352
|
+
s,
|
|
353
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
354
|
+
u
|
|
355
|
+
), n(t);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function o(t) {
|
|
359
|
+
if (t === y) return "<>";
|
|
360
|
+
if (typeof t == "object" && t !== null && t.$$typeof === _)
|
|
361
|
+
return "<...>";
|
|
362
|
+
try {
|
|
363
|
+
var s = r(t);
|
|
364
|
+
return s ? "<" + s + ">" : "<...>";
|
|
365
|
+
} catch {
|
|
366
|
+
return "<...>";
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function p() {
|
|
370
|
+
var t = k.A;
|
|
371
|
+
return t === null ? null : t.getOwner();
|
|
372
|
+
}
|
|
373
|
+
function l() {
|
|
374
|
+
return Error("react-stack-top-frame");
|
|
375
|
+
}
|
|
376
|
+
function d(t) {
|
|
377
|
+
if (D.call(t, "key")) {
|
|
378
|
+
var s = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
379
|
+
if (s && s.isReactWarning) return !1;
|
|
380
|
+
}
|
|
381
|
+
return t.key !== void 0;
|
|
382
|
+
}
|
|
383
|
+
function i(t, s) {
|
|
384
|
+
function c() {
|
|
385
|
+
N || (N = !0, console.error(
|
|
386
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
387
|
+
s
|
|
388
|
+
));
|
|
389
|
+
}
|
|
390
|
+
c.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
391
|
+
get: c,
|
|
392
|
+
configurable: !0
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
function A() {
|
|
396
|
+
var t = r(this.type);
|
|
397
|
+
return Y[t] || (Y[t] = !0, console.error(
|
|
398
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
399
|
+
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
400
|
+
}
|
|
401
|
+
function O(t, s, c, u, P, w) {
|
|
402
|
+
var g = c.ref;
|
|
403
|
+
return t = {
|
|
404
|
+
$$typeof: U,
|
|
405
|
+
type: t,
|
|
406
|
+
key: s,
|
|
407
|
+
props: c,
|
|
408
|
+
_owner: u
|
|
409
|
+
}, (g !== void 0 ? g : null) !== null ? Object.defineProperty(t, "ref", {
|
|
410
|
+
enumerable: !1,
|
|
411
|
+
get: A
|
|
412
|
+
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
413
|
+
configurable: !1,
|
|
414
|
+
enumerable: !1,
|
|
415
|
+
writable: !0,
|
|
416
|
+
value: 0
|
|
417
|
+
}), Object.defineProperty(t, "_debugInfo", {
|
|
418
|
+
configurable: !1,
|
|
419
|
+
enumerable: !1,
|
|
420
|
+
writable: !0,
|
|
421
|
+
value: null
|
|
422
|
+
}), Object.defineProperty(t, "_debugStack", {
|
|
423
|
+
configurable: !1,
|
|
424
|
+
enumerable: !1,
|
|
425
|
+
writable: !0,
|
|
426
|
+
value: P
|
|
427
|
+
}), Object.defineProperty(t, "_debugTask", {
|
|
428
|
+
configurable: !1,
|
|
429
|
+
enumerable: !1,
|
|
430
|
+
writable: !0,
|
|
431
|
+
value: w
|
|
432
|
+
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
433
|
+
}
|
|
434
|
+
function m(t, s, c, u, P, w) {
|
|
435
|
+
var g = s.children;
|
|
436
|
+
if (g !== void 0)
|
|
437
|
+
if (u)
|
|
438
|
+
if (oe(g)) {
|
|
439
|
+
for (u = 0; u < g.length; u++)
|
|
440
|
+
I(g[u]);
|
|
441
|
+
Object.freeze && Object.freeze(g);
|
|
442
|
+
} else
|
|
443
|
+
console.error(
|
|
444
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
445
|
+
);
|
|
446
|
+
else I(g);
|
|
447
|
+
if (D.call(s, "key")) {
|
|
448
|
+
g = r(t);
|
|
449
|
+
var T = Object.keys(s).filter(function(pe) {
|
|
450
|
+
return pe !== "key";
|
|
451
|
+
});
|
|
452
|
+
u = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}", W[g + u] || (T = 0 < T.length ? "{" + T.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
453
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
454
|
+
let props = %s;
|
|
455
|
+
<%s {...props} />
|
|
456
|
+
React keys must be passed directly to JSX without using spread:
|
|
457
|
+
let props = %s;
|
|
458
|
+
<%s key={someKey} {...props} />`,
|
|
459
|
+
u,
|
|
460
|
+
g,
|
|
461
|
+
T,
|
|
462
|
+
g
|
|
463
|
+
), W[g + u] = !0);
|
|
464
|
+
}
|
|
465
|
+
if (g = null, c !== void 0 && (a(c), g = "" + c), d(s) && (a(s.key), g = "" + s.key), "key" in s) {
|
|
466
|
+
c = {};
|
|
467
|
+
for (var G in s)
|
|
468
|
+
G !== "key" && (c[G] = s[G]);
|
|
469
|
+
} else c = s;
|
|
470
|
+
return g && i(
|
|
471
|
+
c,
|
|
472
|
+
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
473
|
+
), O(
|
|
474
|
+
t,
|
|
475
|
+
g,
|
|
476
|
+
c,
|
|
477
|
+
p(),
|
|
478
|
+
P,
|
|
479
|
+
w
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
function I(t) {
|
|
483
|
+
L(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === _ && (t._payload.status === "fulfilled" ? L(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
|
|
484
|
+
}
|
|
485
|
+
function L(t) {
|
|
486
|
+
return typeof t == "object" && t !== null && t.$$typeof === U;
|
|
487
|
+
}
|
|
488
|
+
var v = le, U = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), Z = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ae = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), se = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, oe = Array.isArray, R = console.createTask ? console.createTask : function() {
|
|
489
|
+
return null;
|
|
490
|
+
};
|
|
491
|
+
v = {
|
|
492
|
+
react_stack_bottom_frame: function(t) {
|
|
493
|
+
return t();
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
var N, Y = {}, q = v.react_stack_bottom_frame.bind(
|
|
497
|
+
v,
|
|
498
|
+
l
|
|
499
|
+
)(), F = R(o(l)), W = {};
|
|
500
|
+
h.Fragment = y, h.jsx = function(t, s, c) {
|
|
501
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
502
|
+
return m(
|
|
503
|
+
t,
|
|
504
|
+
s,
|
|
505
|
+
c,
|
|
506
|
+
!1,
|
|
507
|
+
u ? Error("react-stack-top-frame") : q,
|
|
508
|
+
u ? R(o(t)) : F
|
|
509
|
+
);
|
|
510
|
+
}, h.jsxs = function(t, s, c) {
|
|
511
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
512
|
+
return m(
|
|
513
|
+
t,
|
|
514
|
+
s,
|
|
515
|
+
c,
|
|
516
|
+
!0,
|
|
517
|
+
u ? Error("react-stack-top-frame") : q,
|
|
518
|
+
u ? R(o(t)) : F
|
|
519
|
+
);
|
|
520
|
+
};
|
|
521
|
+
})()), h;
|
|
522
|
+
}
|
|
523
|
+
var J;
|
|
524
|
+
function ke() {
|
|
525
|
+
return J || (J = 1, process.env.NODE_ENV === "production" ? S.exports = ye() : S.exports = _e()), S.exports;
|
|
526
|
+
}
|
|
527
|
+
var Re = ke();
|
|
528
|
+
z.use([
|
|
529
|
+
ce,
|
|
530
|
+
ue,
|
|
531
|
+
ge,
|
|
532
|
+
fe,
|
|
533
|
+
de,
|
|
534
|
+
Ae,
|
|
535
|
+
Te
|
|
536
|
+
]);
|
|
537
|
+
function Je(r) {
|
|
538
|
+
return /* @__PURE__ */ Re.jsx(me, { echarts: z, ...r });
|
|
539
|
+
}
|
|
540
|
+
export {
|
|
541
|
+
Je as R,
|
|
542
|
+
Le as a,
|
|
543
|
+
De as b,
|
|
544
|
+
Ie as c,
|
|
545
|
+
Fe as d,
|
|
546
|
+
We as e,
|
|
547
|
+
Ue as f,
|
|
548
|
+
Re as j,
|
|
549
|
+
Ye as l,
|
|
550
|
+
qe as m,
|
|
551
|
+
Ve as o,
|
|
552
|
+
Be as p,
|
|
553
|
+
Me as s,
|
|
554
|
+
Ne as t,
|
|
555
|
+
Ee as u
|
|
556
|
+
};
|