data-source-tree 0.0.1 → 0.0.2
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/COLLECTION-CGr8r7D0.js +4 -0
- package/INDEX-CWRlbxz6.js +4 -0
- package/NODE_LABEL-BNtE9a8x.js +4 -0
- package/PACKAGE-Cdqdazmm.js +4 -0
- package/PROCEDURE-BFKXCwJs.js +4 -0
- package/RELATIONSHIP_TYPE-DH_Ql50v.js +4 -0
- package/TABLE-C6D4BTNb.js +4 -0
- package/TOPIC-DDMJFl8M.js +4 -0
- package/VIEW-Dy2H__0e.js +4 -0
- package/cassandra-kZBMMRLi.js +4 -0
- package/clickhouse-wZad6bX_.js +4 -0
- package/cratedb-Bp9DafHH.js +4 -0
- package/dameng-DDKENLSf.js +4 -0
- package/database-DorJeeaH.js +4 -0
- package/db2-BQLq-8O9.js +4 -0
- package/dm-DDKENLSf.js +4 -0
- package/doris-sPgf3dKR.js +4 -0
- package/druid-BCpjCk40.js +4 -0
- package/elasticsearch-IjsXozrl.js +4 -0
- package/file-CYyJ85qD.js +4 -0
- package/filesystem-CHNDPEkF.js +4 -0
- package/folder-B_IZAYKT.js +4 -0
- package/folderClose-Ci16QLsN.js +4 -0
- package/folderOpen-ClecyRH1.js +4 -0
- package/ftp-B1EMbJZ8.js +4 -0
- package/gbase-Cfbti4wa.js +4 -0
- package/greenplum-C72qwgT6.js +4 -0
- package/hbase-DJlmFvuj.js +4 -0
- package/hdfs-HbRnS4Ee.js +4 -0
- package/hive-CFGs347R.js +4 -0
- package/hive-metastore-CFGs347R.js +4 -0
- package/hudi-BXyzOfLV.js +4 -0
- package/iceberg-BCCMLWKb.js +4 -0
- package/index.js +3286 -14
- package/index.umd.cjs +6 -1
- package/kafka-BQTmKvyf.js +4 -0
- package/kingbase-CtbaKFzM.js +4 -0
- package/mariadb-DUUVCuEd.js +4 -0
- package/milvus-B_EXXpE7.js +4 -0
- package/minio-DrkEY6Lg.js +4 -0
- package/mission-DP49naae.js +4 -0
- package/mongodb-sCoR-0DO.js +4 -0
- package/mssql-CyLYBEca.js +4 -0
- package/mysql-B6gniQbL.js +4 -0
- package/neo4j-fM-N6RPF.js +4 -0
- package/note-KSl8tOvD.js +4 -0
- package/oceanbase-CHQGzVAU.js +4 -0
- package/opensearch-Bkb3qPjF.js +4 -0
- package/oracle-7N_bpyOE.js +4 -0
- package/package.json +5 -2
- package/paimon-ChRYie-E.js +4 -0
- package/postgres-CU2CHKIj.js +4 -0
- package/presto-XCYrPD7W.js +4 -0
- package/report-zbtqy9nr.js +4 -0
- package/schema-DHIGvfp2.js +4 -0
- package/snowflake-Cy_FOrcV.js +4 -0
- package/sqlserver-CyLYBEca.js +4 -0
- package/starrocks-BAeDPSaX.js +4 -0
- package/style.css +1 -0
- package/sybase-JxsUZBj2.js +4 -0
- package/tidb-CKZDxkdA.js +4 -0
- package/trino-CTo8-zn8.js +4 -0
- package//345/205/250/346/226/207/346/243/200/347/264/242-CM_FkicR.js +4 -0
- package//345/205/263/347/263/273/345/236/213/346/225/260/346/215/256/345/272/223-CdxjM7fF.js +4 -0
- package//345/210/206/346/236/220/345/236/213/346/225/260/346/215/256/345/272/223-DCG17zXf.js +4 -0
- package//345/220/221/351/207/217/346/225/260/346/215/256/345/272/223-Sus8yO-o.js +4 -0
- package//345/233/276/346/225/260/346/215/256/345/272/223-m2gN34YV.js +4 -0
- package//346/225/260/346/215/256/346/271/226-DYPNBEro.js +4 -0
- package//346/226/207/344/273/266/347/263/273/347/273/237-BpeHJ8ur.js +4 -0
- package//346/226/207/346/241/243/346/225/260/346/215/256/345/272/223-CYyJ85qD.js +4 -0
- package//346/227/266/345/272/217/346/225/260/346/215/256/345/272/223-BKM1uC99.js +4 -0
- package//346/266/210/346/201/257/351/230/237/345/210/227-BZj1tfb_.js +4 -0
- package//351/235/236/345/205/263/347/263/273/345/236/213/357/274/210NoSQL/357/274/211/346/225/260/346/215/256/345/272/223-Ciz5Z_Sa.js +4 -0
package/index.js
CHANGED
|
@@ -1,23 +1,3295 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineComponent as Je, openBlock as A, createElementBlock as $, createElementVNode as g, ref as P, watch as Wt, onMounted as Gs, nextTick as fe, getCurrentInstance as Qs, reactive as Ys, resolveComponent as J, resolveDirective as Zs, withDirectives as Ct, createVNode as I, isRef as Ce, unref as C, withCtx as x, createTextVNode as B, createBlock as de, normalizeClass as Ue, Fragment as pe, withModifiers as tt, createCommentVNode as ge, normalizeStyle as en, toDisplayString as X } from "vue";
|
|
2
|
+
import { ElLoading as tn } from "element-plus";
|
|
3
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
4
|
+
var sn = /* @__PURE__ */ Je({
|
|
5
|
+
name: "Folder",
|
|
6
|
+
__name: "folder",
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (t, s) => (A(), $("svg", {
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
viewBox: "0 0 1024 1024"
|
|
11
|
+
}, [
|
|
12
|
+
g("path", {
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"
|
|
15
|
+
})
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
}), nn = sn, rn = /* @__PURE__ */ Je({
|
|
19
|
+
name: "Plus",
|
|
20
|
+
__name: "plus",
|
|
21
|
+
setup(e) {
|
|
22
|
+
return (t, s) => (A(), $("svg", {
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
viewBox: "0 0 1024 1024"
|
|
25
|
+
}, [
|
|
26
|
+
g("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
29
|
+
})
|
|
30
|
+
]));
|
|
31
|
+
}
|
|
32
|
+
}), on = rn, an = /* @__PURE__ */ Je({
|
|
33
|
+
name: "Refresh",
|
|
34
|
+
__name: "refresh",
|
|
35
|
+
setup(e) {
|
|
36
|
+
return (t, s) => (A(), $("svg", {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
viewBox: "0 0 1024 1024"
|
|
39
|
+
}, [
|
|
40
|
+
g("path", {
|
|
41
|
+
fill: "currentColor",
|
|
42
|
+
d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
|
|
43
|
+
})
|
|
44
|
+
]));
|
|
45
|
+
}
|
|
46
|
+
}), ln = an, cn = /* @__PURE__ */ Je({
|
|
47
|
+
name: "Search",
|
|
48
|
+
__name: "search",
|
|
49
|
+
setup(e) {
|
|
50
|
+
return (t, s) => (A(), $("svg", {
|
|
51
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
+
viewBox: "0 0 1024 1024"
|
|
53
|
+
}, [
|
|
54
|
+
g("path", {
|
|
55
|
+
fill: "currentColor",
|
|
56
|
+
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
|
|
57
|
+
})
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
}), un = cn;
|
|
61
|
+
const Ot = (e, t, s) => {
|
|
62
|
+
const n = e[t];
|
|
63
|
+
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((r, a) => {
|
|
64
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
65
|
+
a.bind(
|
|
66
|
+
null,
|
|
67
|
+
new Error(
|
|
68
|
+
"Unknown variable dynamic import: " + t + (t.split("/").length !== s ? ". Note that variables only represent file names one level deep." : "")
|
|
69
|
+
)
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
function Kt(e, t) {
|
|
75
|
+
return function() {
|
|
76
|
+
return e.apply(t, arguments);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const { toString: dn } = Object.prototype, { getPrototypeOf: dt } = Object, { iterator: We, toStringTag: Xt } = Symbol, Ke = /* @__PURE__ */ ((e) => (t) => {
|
|
80
|
+
const s = dn.call(t);
|
|
81
|
+
return e[s] || (e[s] = s.slice(8, -1).toLowerCase());
|
|
82
|
+
})(/* @__PURE__ */ Object.create(null)), te = (e) => (e = e.toLowerCase(), (t) => Ke(t) === e), Xe = (e) => (t) => typeof t === e, { isArray: Ee } = Array, Ie = Xe("undefined");
|
|
83
|
+
function ke(e) {
|
|
84
|
+
return e !== null && !Ie(e) && e.constructor !== null && !Ie(e.constructor) && G(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
85
|
+
}
|
|
86
|
+
const Gt = te("ArrayBuffer");
|
|
87
|
+
function fn(e) {
|
|
88
|
+
let t;
|
|
89
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Gt(e.buffer), t;
|
|
90
|
+
}
|
|
91
|
+
const mn = Xe("string"), G = Xe("function"), Qt = Xe("number"), Pe = (e) => e !== null && typeof e == "object", pn = (e) => e === !0 || e === !1, je = (e) => {
|
|
92
|
+
if (Ke(e) !== "object")
|
|
93
|
+
return !1;
|
|
94
|
+
const t = dt(e);
|
|
95
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Xt in e) && !(We in e);
|
|
96
|
+
}, gn = (e) => {
|
|
97
|
+
if (!Pe(e) || ke(e))
|
|
98
|
+
return !1;
|
|
99
|
+
try {
|
|
100
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
101
|
+
} catch {
|
|
102
|
+
return !1;
|
|
103
|
+
}
|
|
104
|
+
}, hn = te("Date"), vn = te("File"), yn = te("Blob"), bn = te("FileList"), wn = (e) => Pe(e) && G(e.pipe), Sn = (e) => {
|
|
105
|
+
let t;
|
|
106
|
+
return e && (typeof FormData == "function" && e instanceof FormData || G(e.append) && ((t = Ke(e)) === "formdata" || // detect form-data instance
|
|
107
|
+
t === "object" && G(e.toString) && e.toString() === "[object FormData]"));
|
|
108
|
+
}, In = te("URLSearchParams"), [En, Tn, _n, xn] = ["ReadableStream", "Request", "Response", "Headers"].map(te), Rn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
109
|
+
function Ne(e, t, { allOwnKeys: s = !1 } = {}) {
|
|
110
|
+
if (e === null || typeof e > "u")
|
|
111
|
+
return;
|
|
112
|
+
let n, r;
|
|
113
|
+
if (typeof e != "object" && (e = [e]), Ee(e))
|
|
114
|
+
for (n = 0, r = e.length; n < r; n++)
|
|
115
|
+
t.call(null, e[n], n, e);
|
|
116
|
+
else {
|
|
117
|
+
if (ke(e))
|
|
118
|
+
return;
|
|
119
|
+
const a = s ? Object.getOwnPropertyNames(e) : Object.keys(e), i = a.length;
|
|
120
|
+
let u;
|
|
121
|
+
for (n = 0; n < i; n++)
|
|
122
|
+
u = a[n], t.call(null, e[u], u, e);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
function Yt(e, t) {
|
|
126
|
+
if (ke(e))
|
|
127
|
+
return null;
|
|
128
|
+
t = t.toLowerCase();
|
|
129
|
+
const s = Object.keys(e);
|
|
130
|
+
let n = s.length, r;
|
|
131
|
+
for (; n-- > 0; )
|
|
132
|
+
if (r = s[n], t === r.toLowerCase())
|
|
133
|
+
return r;
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
const he = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Zt = (e) => !Ie(e) && e !== he;
|
|
137
|
+
function it() {
|
|
138
|
+
const { caseless: e, skipUndefined: t } = Zt(this) && this || {}, s = {}, n = (r, a) => {
|
|
139
|
+
const i = e && Yt(s, a) || a;
|
|
140
|
+
je(s[i]) && je(r) ? s[i] = it(s[i], r) : je(r) ? s[i] = it({}, r) : Ee(r) ? s[i] = r.slice() : (!t || !Ie(r)) && (s[i] = r);
|
|
141
|
+
};
|
|
142
|
+
for (let r = 0, a = arguments.length; r < a; r++)
|
|
143
|
+
arguments[r] && Ne(arguments[r], n);
|
|
144
|
+
return s;
|
|
145
|
+
}
|
|
146
|
+
const Cn = (e, t, s, { allOwnKeys: n } = {}) => (Ne(t, (r, a) => {
|
|
147
|
+
s && G(r) ? Object.defineProperty(e, a, {
|
|
148
|
+
value: Kt(r, s),
|
|
149
|
+
writable: !0,
|
|
150
|
+
enumerable: !0,
|
|
151
|
+
configurable: !0
|
|
152
|
+
}) : Object.defineProperty(e, a, {
|
|
153
|
+
value: r,
|
|
154
|
+
writable: !0,
|
|
155
|
+
enumerable: !0,
|
|
156
|
+
configurable: !0
|
|
157
|
+
});
|
|
158
|
+
}, { allOwnKeys: n }), e), On = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), An = (e, t, s, n) => {
|
|
159
|
+
e.prototype = Object.create(t.prototype, n), Object.defineProperty(e.prototype, "constructor", {
|
|
160
|
+
value: e,
|
|
161
|
+
writable: !0,
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
configurable: !0
|
|
164
|
+
}), Object.defineProperty(e, "super", {
|
|
165
|
+
value: t.prototype
|
|
166
|
+
}), s && Object.assign(e.prototype, s);
|
|
167
|
+
}, kn = (e, t, s, n) => {
|
|
168
|
+
let r, a, i;
|
|
169
|
+
const u = {};
|
|
170
|
+
if (t = t || {}, e == null) return t;
|
|
171
|
+
do {
|
|
172
|
+
for (r = Object.getOwnPropertyNames(e), a = r.length; a-- > 0; )
|
|
173
|
+
i = r[a], (!n || n(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
|
|
174
|
+
e = s !== !1 && dt(e);
|
|
175
|
+
} while (e && (!s || s(e, t)) && e !== Object.prototype);
|
|
6
176
|
return t;
|
|
7
|
-
},
|
|
8
|
-
|
|
177
|
+
}, Pn = (e, t, s) => {
|
|
178
|
+
e = String(e), (s === void 0 || s > e.length) && (s = e.length), s -= t.length;
|
|
179
|
+
const n = e.indexOf(t, s);
|
|
180
|
+
return n !== -1 && n === s;
|
|
181
|
+
}, Nn = (e) => {
|
|
182
|
+
if (!e) return null;
|
|
183
|
+
if (Ee(e)) return e;
|
|
184
|
+
let t = e.length;
|
|
185
|
+
if (!Qt(t)) return null;
|
|
186
|
+
const s = new Array(t);
|
|
187
|
+
for (; t-- > 0; )
|
|
188
|
+
s[t] = e[t];
|
|
189
|
+
return s;
|
|
190
|
+
}, Bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && dt(Uint8Array)), $n = (e, t) => {
|
|
191
|
+
const n = (e && e[We]).call(e);
|
|
192
|
+
let r;
|
|
193
|
+
for (; (r = n.next()) && !r.done; ) {
|
|
194
|
+
const a = r.value;
|
|
195
|
+
t.call(e, a[0], a[1]);
|
|
196
|
+
}
|
|
197
|
+
}, Fn = (e, t) => {
|
|
198
|
+
let s;
|
|
199
|
+
const n = [];
|
|
200
|
+
for (; (s = e.exec(t)) !== null; )
|
|
201
|
+
n.push(s);
|
|
202
|
+
return n;
|
|
203
|
+
}, Ln = te("HTMLFormElement"), Un = (e) => e.toLowerCase().replace(
|
|
204
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
205
|
+
function(s, n, r) {
|
|
206
|
+
return n.toUpperCase() + r;
|
|
207
|
+
}
|
|
208
|
+
), At = (({ hasOwnProperty: e }) => (t, s) => e.call(t, s))(Object.prototype), Dn = te("RegExp"), es = (e, t) => {
|
|
209
|
+
const s = Object.getOwnPropertyDescriptors(e), n = {};
|
|
210
|
+
Ne(s, (r, a) => {
|
|
211
|
+
let i;
|
|
212
|
+
(i = t(r, a, e)) !== !1 && (n[a] = i || r);
|
|
213
|
+
}), Object.defineProperties(e, n);
|
|
214
|
+
}, Mn = (e) => {
|
|
215
|
+
es(e, (t, s) => {
|
|
216
|
+
if (G(e) && ["arguments", "caller", "callee"].indexOf(s) !== -1)
|
|
217
|
+
return !1;
|
|
218
|
+
const n = e[s];
|
|
219
|
+
if (G(n)) {
|
|
220
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
221
|
+
t.writable = !1;
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
t.set || (t.set = () => {
|
|
225
|
+
throw Error("Can not rewrite read-only method '" + s + "'");
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}, jn = (e, t) => {
|
|
230
|
+
const s = {}, n = (r) => {
|
|
231
|
+
r.forEach((a) => {
|
|
232
|
+
s[a] = !0;
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
return Ee(e) ? n(e) : n(String(e).split(t)), s;
|
|
236
|
+
}, qn = () => {
|
|
237
|
+
}, Vn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
238
|
+
function Hn(e) {
|
|
239
|
+
return !!(e && G(e.append) && e[Xt] === "FormData" && e[We]);
|
|
240
|
+
}
|
|
241
|
+
const zn = (e) => {
|
|
242
|
+
const t = new Array(10), s = (n, r) => {
|
|
243
|
+
if (Pe(n)) {
|
|
244
|
+
if (t.indexOf(n) >= 0)
|
|
245
|
+
return;
|
|
246
|
+
if (ke(n))
|
|
247
|
+
return n;
|
|
248
|
+
if (!("toJSON" in n)) {
|
|
249
|
+
t[r] = n;
|
|
250
|
+
const a = Ee(n) ? [] : {};
|
|
251
|
+
return Ne(n, (i, u) => {
|
|
252
|
+
const h = s(i, r + 1);
|
|
253
|
+
!Ie(h) && (a[u] = h);
|
|
254
|
+
}), t[r] = void 0, a;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return n;
|
|
258
|
+
};
|
|
259
|
+
return s(e, 0);
|
|
260
|
+
}, Jn = te("AsyncFunction"), Wn = (e) => e && (Pe(e) || G(e)) && G(e.then) && G(e.catch), ts = ((e, t) => e ? setImmediate : t ? ((s, n) => (he.addEventListener("message", ({ source: r, data: a }) => {
|
|
261
|
+
r === he && a === s && n.length && n.shift()();
|
|
262
|
+
}, !1), (r) => {
|
|
263
|
+
n.push(r), he.postMessage(s, "*");
|
|
264
|
+
}))(`axios@${Math.random()}`, []) : (s) => setTimeout(s))(
|
|
265
|
+
typeof setImmediate == "function",
|
|
266
|
+
G(he.postMessage)
|
|
267
|
+
), Kn = typeof queueMicrotask < "u" ? queueMicrotask.bind(he) : typeof process < "u" && process.nextTick || ts, Xn = (e) => e != null && G(e[We]), c = {
|
|
268
|
+
isArray: Ee,
|
|
269
|
+
isArrayBuffer: Gt,
|
|
270
|
+
isBuffer: ke,
|
|
271
|
+
isFormData: Sn,
|
|
272
|
+
isArrayBufferView: fn,
|
|
273
|
+
isString: mn,
|
|
274
|
+
isNumber: Qt,
|
|
275
|
+
isBoolean: pn,
|
|
276
|
+
isObject: Pe,
|
|
277
|
+
isPlainObject: je,
|
|
278
|
+
isEmptyObject: gn,
|
|
279
|
+
isReadableStream: En,
|
|
280
|
+
isRequest: Tn,
|
|
281
|
+
isResponse: _n,
|
|
282
|
+
isHeaders: xn,
|
|
283
|
+
isUndefined: Ie,
|
|
284
|
+
isDate: hn,
|
|
285
|
+
isFile: vn,
|
|
286
|
+
isBlob: yn,
|
|
287
|
+
isRegExp: Dn,
|
|
288
|
+
isFunction: G,
|
|
289
|
+
isStream: wn,
|
|
290
|
+
isURLSearchParams: In,
|
|
291
|
+
isTypedArray: Bn,
|
|
292
|
+
isFileList: bn,
|
|
293
|
+
forEach: Ne,
|
|
294
|
+
merge: it,
|
|
295
|
+
extend: Cn,
|
|
296
|
+
trim: Rn,
|
|
297
|
+
stripBOM: On,
|
|
298
|
+
inherits: An,
|
|
299
|
+
toFlatObject: kn,
|
|
300
|
+
kindOf: Ke,
|
|
301
|
+
kindOfTest: te,
|
|
302
|
+
endsWith: Pn,
|
|
303
|
+
toArray: Nn,
|
|
304
|
+
forEachEntry: $n,
|
|
305
|
+
matchAll: Fn,
|
|
306
|
+
isHTMLForm: Ln,
|
|
307
|
+
hasOwnProperty: At,
|
|
308
|
+
hasOwnProp: At,
|
|
309
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
310
|
+
reduceDescriptors: es,
|
|
311
|
+
freezeMethods: Mn,
|
|
312
|
+
toObjectSet: jn,
|
|
313
|
+
toCamelCase: Un,
|
|
314
|
+
noop: qn,
|
|
315
|
+
toFiniteNumber: Vn,
|
|
316
|
+
findKey: Yt,
|
|
317
|
+
global: he,
|
|
318
|
+
isContextDefined: Zt,
|
|
319
|
+
isSpecCompliantForm: Hn,
|
|
320
|
+
toJSONObject: zn,
|
|
321
|
+
isAsyncFn: Jn,
|
|
322
|
+
isThenable: Wn,
|
|
323
|
+
setImmediate: ts,
|
|
324
|
+
asap: Kn,
|
|
325
|
+
isIterable: Xn
|
|
326
|
+
};
|
|
327
|
+
let _ = class ss extends Error {
|
|
328
|
+
static from(t, s, n, r, a, i) {
|
|
329
|
+
const u = new ss(t.message, s || t.code, n, r, a);
|
|
330
|
+
return u.cause = t, u.name = t.name, i && Object.assign(u, i), u;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
334
|
+
*
|
|
335
|
+
* @param {string} message The error message.
|
|
336
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
337
|
+
* @param {Object} [config] The config.
|
|
338
|
+
* @param {Object} [request] The request.
|
|
339
|
+
* @param {Object} [response] The response.
|
|
340
|
+
*
|
|
341
|
+
* @returns {Error} The created error.
|
|
342
|
+
*/
|
|
343
|
+
constructor(t, s, n, r, a) {
|
|
344
|
+
super(t), this.name = "AxiosError", this.isAxiosError = !0, s && (this.code = s), n && (this.config = n), r && (this.request = r), a && (this.response = a, this.status = a.status);
|
|
345
|
+
}
|
|
346
|
+
toJSON() {
|
|
347
|
+
return {
|
|
348
|
+
// Standard
|
|
349
|
+
message: this.message,
|
|
350
|
+
name: this.name,
|
|
351
|
+
// Microsoft
|
|
352
|
+
description: this.description,
|
|
353
|
+
number: this.number,
|
|
354
|
+
// Mozilla
|
|
355
|
+
fileName: this.fileName,
|
|
356
|
+
lineNumber: this.lineNumber,
|
|
357
|
+
columnNumber: this.columnNumber,
|
|
358
|
+
stack: this.stack,
|
|
359
|
+
// Axios
|
|
360
|
+
config: c.toJSONObject(this.config),
|
|
361
|
+
code: this.code,
|
|
362
|
+
status: this.status
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
_.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
367
|
+
_.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
368
|
+
_.ECONNABORTED = "ECONNABORTED";
|
|
369
|
+
_.ETIMEDOUT = "ETIMEDOUT";
|
|
370
|
+
_.ERR_NETWORK = "ERR_NETWORK";
|
|
371
|
+
_.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
372
|
+
_.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
373
|
+
_.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
374
|
+
_.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
375
|
+
_.ERR_CANCELED = "ERR_CANCELED";
|
|
376
|
+
_.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
377
|
+
_.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
378
|
+
const Gn = null;
|
|
379
|
+
function lt(e) {
|
|
380
|
+
return c.isPlainObject(e) || c.isArray(e);
|
|
381
|
+
}
|
|
382
|
+
function ns(e) {
|
|
383
|
+
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
384
|
+
}
|
|
385
|
+
function kt(e, t, s) {
|
|
386
|
+
return e ? e.concat(t).map(function(r, a) {
|
|
387
|
+
return r = ns(r), !s && a ? "[" + r + "]" : r;
|
|
388
|
+
}).join(s ? "." : "") : t;
|
|
389
|
+
}
|
|
390
|
+
function Qn(e) {
|
|
391
|
+
return c.isArray(e) && !e.some(lt);
|
|
392
|
+
}
|
|
393
|
+
const Yn = c.toFlatObject(c, {}, null, function(t) {
|
|
394
|
+
return /^is[A-Z]/.test(t);
|
|
395
|
+
});
|
|
396
|
+
function Ge(e, t, s) {
|
|
397
|
+
if (!c.isObject(e))
|
|
398
|
+
throw new TypeError("target must be an object");
|
|
399
|
+
t = t || new FormData(), s = c.toFlatObject(s, {
|
|
400
|
+
metaTokens: !0,
|
|
401
|
+
dots: !1,
|
|
402
|
+
indexes: !1
|
|
403
|
+
}, !1, function(E, b) {
|
|
404
|
+
return !c.isUndefined(b[E]);
|
|
405
|
+
});
|
|
406
|
+
const n = s.metaTokens, r = s.visitor || d, a = s.dots, i = s.indexes, h = (s.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
|
|
407
|
+
if (!c.isFunction(r))
|
|
408
|
+
throw new TypeError("visitor must be a function");
|
|
409
|
+
function p(m) {
|
|
410
|
+
if (m === null) return "";
|
|
411
|
+
if (c.isDate(m))
|
|
412
|
+
return m.toISOString();
|
|
413
|
+
if (c.isBoolean(m))
|
|
414
|
+
return m.toString();
|
|
415
|
+
if (!h && c.isBlob(m))
|
|
416
|
+
throw new _("Blob is not supported. Use a Buffer instead.");
|
|
417
|
+
return c.isArrayBuffer(m) || c.isTypedArray(m) ? h && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
418
|
+
}
|
|
419
|
+
function d(m, E, b) {
|
|
420
|
+
let D = m;
|
|
421
|
+
if (m && !b && typeof m == "object") {
|
|
422
|
+
if (c.endsWith(E, "{}"))
|
|
423
|
+
E = n ? E : E.slice(0, -2), m = JSON.stringify(m);
|
|
424
|
+
else if (c.isArray(m) && Qn(m) || (c.isFileList(m) || c.endsWith(E, "[]")) && (D = c.toArray(m)))
|
|
425
|
+
return E = ns(E), D.forEach(function(N, O) {
|
|
426
|
+
!(c.isUndefined(N) || N === null) && t.append(
|
|
427
|
+
// eslint-disable-next-line no-nested-ternary
|
|
428
|
+
i === !0 ? kt([E], O, a) : i === null ? E : E + "[]",
|
|
429
|
+
p(N)
|
|
430
|
+
);
|
|
431
|
+
}), !1;
|
|
432
|
+
}
|
|
433
|
+
return lt(m) ? !0 : (t.append(kt(b, E, a), p(m)), !1);
|
|
434
|
+
}
|
|
435
|
+
const v = [], k = Object.assign(Yn, {
|
|
436
|
+
defaultVisitor: d,
|
|
437
|
+
convertValue: p,
|
|
438
|
+
isVisitable: lt
|
|
439
|
+
});
|
|
440
|
+
function F(m, E) {
|
|
441
|
+
if (!c.isUndefined(m)) {
|
|
442
|
+
if (v.indexOf(m) !== -1)
|
|
443
|
+
throw Error("Circular reference detected in " + E.join("."));
|
|
444
|
+
v.push(m), c.forEach(m, function(D, L) {
|
|
445
|
+
(!(c.isUndefined(D) || D === null) && r.call(
|
|
446
|
+
t,
|
|
447
|
+
D,
|
|
448
|
+
c.isString(L) ? L.trim() : L,
|
|
449
|
+
E,
|
|
450
|
+
k
|
|
451
|
+
)) === !0 && F(D, E ? E.concat(L) : [L]);
|
|
452
|
+
}), v.pop();
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
if (!c.isObject(e))
|
|
456
|
+
throw new TypeError("data must be an object");
|
|
457
|
+
return F(e), t;
|
|
458
|
+
}
|
|
459
|
+
function Pt(e) {
|
|
460
|
+
const t = {
|
|
461
|
+
"!": "%21",
|
|
462
|
+
"'": "%27",
|
|
463
|
+
"(": "%28",
|
|
464
|
+
")": "%29",
|
|
465
|
+
"~": "%7E",
|
|
466
|
+
"%20": "+",
|
|
467
|
+
"%00": "\0"
|
|
468
|
+
};
|
|
469
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
470
|
+
return t[n];
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
function ft(e, t) {
|
|
474
|
+
this._pairs = [], e && Ge(e, this, t);
|
|
475
|
+
}
|
|
476
|
+
const rs = ft.prototype;
|
|
477
|
+
rs.append = function(t, s) {
|
|
478
|
+
this._pairs.push([t, s]);
|
|
479
|
+
};
|
|
480
|
+
rs.toString = function(t) {
|
|
481
|
+
const s = t ? function(n) {
|
|
482
|
+
return t.call(this, n, Pt);
|
|
483
|
+
} : Pt;
|
|
484
|
+
return this._pairs.map(function(r) {
|
|
485
|
+
return s(r[0]) + "=" + s(r[1]);
|
|
486
|
+
}, "").join("&");
|
|
487
|
+
};
|
|
488
|
+
function Zn(e) {
|
|
489
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
490
|
+
}
|
|
491
|
+
function os(e, t, s) {
|
|
492
|
+
if (!t)
|
|
493
|
+
return e;
|
|
494
|
+
const n = s && s.encode || Zn, r = c.isFunction(s) ? {
|
|
495
|
+
serialize: s
|
|
496
|
+
} : s, a = r && r.serialize;
|
|
497
|
+
let i;
|
|
498
|
+
if (a ? i = a(t, r) : i = c.isURLSearchParams(t) ? t.toString() : new ft(t, r).toString(n), i) {
|
|
499
|
+
const u = e.indexOf("#");
|
|
500
|
+
u !== -1 && (e = e.slice(0, u)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
501
|
+
}
|
|
502
|
+
return e;
|
|
503
|
+
}
|
|
504
|
+
class Nt {
|
|
505
|
+
constructor() {
|
|
506
|
+
this.handlers = [];
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Add a new interceptor to the stack
|
|
510
|
+
*
|
|
511
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
512
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
513
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
514
|
+
*
|
|
515
|
+
* @return {Number} An ID used to remove interceptor later
|
|
516
|
+
*/
|
|
517
|
+
use(t, s, n) {
|
|
518
|
+
return this.handlers.push({
|
|
519
|
+
fulfilled: t,
|
|
520
|
+
rejected: s,
|
|
521
|
+
synchronous: n ? n.synchronous : !1,
|
|
522
|
+
runWhen: n ? n.runWhen : null
|
|
523
|
+
}), this.handlers.length - 1;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Remove an interceptor from the stack
|
|
527
|
+
*
|
|
528
|
+
* @param {Number} id The ID that was returned by `use`
|
|
529
|
+
*
|
|
530
|
+
* @returns {void}
|
|
531
|
+
*/
|
|
532
|
+
eject(t) {
|
|
533
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Clear all interceptors from the stack
|
|
537
|
+
*
|
|
538
|
+
* @returns {void}
|
|
539
|
+
*/
|
|
540
|
+
clear() {
|
|
541
|
+
this.handlers && (this.handlers = []);
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Iterate over all the registered interceptors
|
|
545
|
+
*
|
|
546
|
+
* This method is particularly useful for skipping over any
|
|
547
|
+
* interceptors that may have become `null` calling `eject`.
|
|
548
|
+
*
|
|
549
|
+
* @param {Function} fn The function to call for each interceptor
|
|
550
|
+
*
|
|
551
|
+
* @returns {void}
|
|
552
|
+
*/
|
|
553
|
+
forEach(t) {
|
|
554
|
+
c.forEach(this.handlers, function(n) {
|
|
555
|
+
n !== null && t(n);
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
const as = {
|
|
560
|
+
silentJSONParsing: !0,
|
|
561
|
+
forcedJSONParsing: !0,
|
|
562
|
+
clarifyTimeoutError: !1
|
|
563
|
+
}, er = typeof URLSearchParams < "u" ? URLSearchParams : ft, tr = typeof FormData < "u" ? FormData : null, sr = typeof Blob < "u" ? Blob : null, nr = {
|
|
564
|
+
isBrowser: !0,
|
|
565
|
+
classes: {
|
|
566
|
+
URLSearchParams: er,
|
|
567
|
+
FormData: tr,
|
|
568
|
+
Blob: sr
|
|
569
|
+
},
|
|
570
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
571
|
+
}, mt = typeof window < "u" && typeof document < "u", ct = typeof navigator == "object" && navigator || void 0, rr = mt && (!ct || ["ReactNative", "NativeScript", "NS"].indexOf(ct.product) < 0), or = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
572
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ar = mt && window.location.href || "http://localhost", ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
573
|
+
__proto__: null,
|
|
574
|
+
hasBrowserEnv: mt,
|
|
575
|
+
hasStandardBrowserEnv: rr,
|
|
576
|
+
hasStandardBrowserWebWorkerEnv: or,
|
|
577
|
+
navigator: ct,
|
|
578
|
+
origin: ar
|
|
579
|
+
}, Symbol.toStringTag, { value: "Module" })), W = {
|
|
580
|
+
...ir,
|
|
581
|
+
...nr
|
|
582
|
+
};
|
|
583
|
+
function lr(e, t) {
|
|
584
|
+
return Ge(e, new W.classes.URLSearchParams(), {
|
|
585
|
+
visitor: function(s, n, r, a) {
|
|
586
|
+
return W.isNode && c.isBuffer(s) ? (this.append(n, s.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
587
|
+
},
|
|
588
|
+
...t
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
function cr(e) {
|
|
592
|
+
return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
593
|
+
}
|
|
594
|
+
function ur(e) {
|
|
595
|
+
const t = {}, s = Object.keys(e);
|
|
596
|
+
let n;
|
|
597
|
+
const r = s.length;
|
|
598
|
+
let a;
|
|
599
|
+
for (n = 0; n < r; n++)
|
|
600
|
+
a = s[n], t[a] = e[a];
|
|
601
|
+
return t;
|
|
602
|
+
}
|
|
603
|
+
function is(e) {
|
|
604
|
+
function t(s, n, r, a) {
|
|
605
|
+
let i = s[a++];
|
|
606
|
+
if (i === "__proto__") return !0;
|
|
607
|
+
const u = Number.isFinite(+i), h = a >= s.length;
|
|
608
|
+
return i = !i && c.isArray(r) ? r.length : i, h ? (c.hasOwnProp(r, i) ? r[i] = [r[i], n] : r[i] = n, !u) : ((!r[i] || !c.isObject(r[i])) && (r[i] = []), t(s, n, r[i], a) && c.isArray(r[i]) && (r[i] = ur(r[i])), !u);
|
|
609
|
+
}
|
|
610
|
+
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
611
|
+
const s = {};
|
|
612
|
+
return c.forEachEntry(e, (n, r) => {
|
|
613
|
+
t(cr(n), r, s, 0);
|
|
614
|
+
}), s;
|
|
615
|
+
}
|
|
616
|
+
return null;
|
|
617
|
+
}
|
|
618
|
+
function dr(e, t, s) {
|
|
619
|
+
if (c.isString(e))
|
|
620
|
+
try {
|
|
621
|
+
return (t || JSON.parse)(e), c.trim(e);
|
|
622
|
+
} catch (n) {
|
|
623
|
+
if (n.name !== "SyntaxError")
|
|
624
|
+
throw n;
|
|
625
|
+
}
|
|
626
|
+
return (s || JSON.stringify)(e);
|
|
627
|
+
}
|
|
628
|
+
const Be = {
|
|
629
|
+
transitional: as,
|
|
630
|
+
adapter: ["xhr", "http", "fetch"],
|
|
631
|
+
transformRequest: [function(t, s) {
|
|
632
|
+
const n = s.getContentType() || "", r = n.indexOf("application/json") > -1, a = c.isObject(t);
|
|
633
|
+
if (a && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
|
|
634
|
+
return r ? JSON.stringify(is(t)) : t;
|
|
635
|
+
if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
|
|
636
|
+
return t;
|
|
637
|
+
if (c.isArrayBufferView(t))
|
|
638
|
+
return t.buffer;
|
|
639
|
+
if (c.isURLSearchParams(t))
|
|
640
|
+
return s.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
641
|
+
let u;
|
|
642
|
+
if (a) {
|
|
643
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
644
|
+
return lr(t, this.formSerializer).toString();
|
|
645
|
+
if ((u = c.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
646
|
+
const h = this.env && this.env.FormData;
|
|
647
|
+
return Ge(
|
|
648
|
+
u ? { "files[]": t } : t,
|
|
649
|
+
h && new h(),
|
|
650
|
+
this.formSerializer
|
|
651
|
+
);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
return a || r ? (s.setContentType("application/json", !1), dr(t)) : t;
|
|
655
|
+
}],
|
|
656
|
+
transformResponse: [function(t) {
|
|
657
|
+
const s = this.transitional || Be.transitional, n = s && s.forcedJSONParsing, r = this.responseType === "json";
|
|
658
|
+
if (c.isResponse(t) || c.isReadableStream(t))
|
|
659
|
+
return t;
|
|
660
|
+
if (t && c.isString(t) && (n && !this.responseType || r)) {
|
|
661
|
+
const i = !(s && s.silentJSONParsing) && r;
|
|
662
|
+
try {
|
|
663
|
+
return JSON.parse(t, this.parseReviver);
|
|
664
|
+
} catch (u) {
|
|
665
|
+
if (i)
|
|
666
|
+
throw u.name === "SyntaxError" ? _.from(u, _.ERR_BAD_RESPONSE, this, null, this.response) : u;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
return t;
|
|
670
|
+
}],
|
|
671
|
+
/**
|
|
672
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
673
|
+
* timeout is not created.
|
|
674
|
+
*/
|
|
675
|
+
timeout: 0,
|
|
676
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
677
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
678
|
+
maxContentLength: -1,
|
|
679
|
+
maxBodyLength: -1,
|
|
680
|
+
env: {
|
|
681
|
+
FormData: W.classes.FormData,
|
|
682
|
+
Blob: W.classes.Blob
|
|
683
|
+
},
|
|
684
|
+
validateStatus: function(t) {
|
|
685
|
+
return t >= 200 && t < 300;
|
|
686
|
+
},
|
|
687
|
+
headers: {
|
|
688
|
+
common: {
|
|
689
|
+
Accept: "application/json, text/plain, */*",
|
|
690
|
+
"Content-Type": void 0
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
695
|
+
Be.headers[e] = {};
|
|
696
|
+
});
|
|
697
|
+
const fr = c.toObjectSet([
|
|
698
|
+
"age",
|
|
699
|
+
"authorization",
|
|
700
|
+
"content-length",
|
|
701
|
+
"content-type",
|
|
702
|
+
"etag",
|
|
703
|
+
"expires",
|
|
704
|
+
"from",
|
|
705
|
+
"host",
|
|
706
|
+
"if-modified-since",
|
|
707
|
+
"if-unmodified-since",
|
|
708
|
+
"last-modified",
|
|
709
|
+
"location",
|
|
710
|
+
"max-forwards",
|
|
711
|
+
"proxy-authorization",
|
|
712
|
+
"referer",
|
|
713
|
+
"retry-after",
|
|
714
|
+
"user-agent"
|
|
715
|
+
]), mr = (e) => {
|
|
716
|
+
const t = {};
|
|
717
|
+
let s, n, r;
|
|
718
|
+
return e && e.split(`
|
|
719
|
+
`).forEach(function(i) {
|
|
720
|
+
r = i.indexOf(":"), s = i.substring(0, r).trim().toLowerCase(), n = i.substring(r + 1).trim(), !(!s || t[s] && fr[s]) && (s === "set-cookie" ? t[s] ? t[s].push(n) : t[s] = [n] : t[s] = t[s] ? t[s] + ", " + n : n);
|
|
721
|
+
}), t;
|
|
722
|
+
}, Bt = Symbol("internals");
|
|
723
|
+
function Oe(e) {
|
|
724
|
+
return e && String(e).trim().toLowerCase();
|
|
725
|
+
}
|
|
726
|
+
function qe(e) {
|
|
727
|
+
return e === !1 || e == null ? e : c.isArray(e) ? e.map(qe) : String(e);
|
|
728
|
+
}
|
|
729
|
+
function pr(e) {
|
|
730
|
+
const t = /* @__PURE__ */ Object.create(null), s = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
731
|
+
let n;
|
|
732
|
+
for (; n = s.exec(e); )
|
|
733
|
+
t[n[1]] = n[2];
|
|
734
|
+
return t;
|
|
735
|
+
}
|
|
736
|
+
const gr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
737
|
+
function st(e, t, s, n, r) {
|
|
738
|
+
if (c.isFunction(n))
|
|
739
|
+
return n.call(this, t, s);
|
|
740
|
+
if (r && (t = s), !!c.isString(t)) {
|
|
741
|
+
if (c.isString(n))
|
|
742
|
+
return t.indexOf(n) !== -1;
|
|
743
|
+
if (c.isRegExp(n))
|
|
744
|
+
return n.test(t);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
function hr(e) {
|
|
748
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, s, n) => s.toUpperCase() + n);
|
|
749
|
+
}
|
|
750
|
+
function vr(e, t) {
|
|
751
|
+
const s = c.toCamelCase(" " + t);
|
|
752
|
+
["get", "set", "has"].forEach((n) => {
|
|
753
|
+
Object.defineProperty(e, n + s, {
|
|
754
|
+
value: function(r, a, i) {
|
|
755
|
+
return this[n].call(this, t, r, a, i);
|
|
756
|
+
},
|
|
757
|
+
configurable: !0
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
let Q = class {
|
|
762
|
+
constructor(t) {
|
|
763
|
+
t && this.set(t);
|
|
764
|
+
}
|
|
765
|
+
set(t, s, n) {
|
|
766
|
+
const r = this;
|
|
767
|
+
function a(u, h, p) {
|
|
768
|
+
const d = Oe(h);
|
|
769
|
+
if (!d)
|
|
770
|
+
throw new Error("header name must be a non-empty string");
|
|
771
|
+
const v = c.findKey(r, d);
|
|
772
|
+
(!v || r[v] === void 0 || p === !0 || p === void 0 && r[v] !== !1) && (r[v || h] = qe(u));
|
|
773
|
+
}
|
|
774
|
+
const i = (u, h) => c.forEach(u, (p, d) => a(p, d, h));
|
|
775
|
+
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
776
|
+
i(t, s);
|
|
777
|
+
else if (c.isString(t) && (t = t.trim()) && !gr(t))
|
|
778
|
+
i(mr(t), s);
|
|
779
|
+
else if (c.isObject(t) && c.isIterable(t)) {
|
|
780
|
+
let u = {}, h, p;
|
|
781
|
+
for (const d of t) {
|
|
782
|
+
if (!c.isArray(d))
|
|
783
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
784
|
+
u[p = d[0]] = (h = u[p]) ? c.isArray(h) ? [...h, d[1]] : [h, d[1]] : d[1];
|
|
785
|
+
}
|
|
786
|
+
i(u, s);
|
|
787
|
+
} else
|
|
788
|
+
t != null && a(s, t, n);
|
|
789
|
+
return this;
|
|
790
|
+
}
|
|
791
|
+
get(t, s) {
|
|
792
|
+
if (t = Oe(t), t) {
|
|
793
|
+
const n = c.findKey(this, t);
|
|
794
|
+
if (n) {
|
|
795
|
+
const r = this[n];
|
|
796
|
+
if (!s)
|
|
797
|
+
return r;
|
|
798
|
+
if (s === !0)
|
|
799
|
+
return pr(r);
|
|
800
|
+
if (c.isFunction(s))
|
|
801
|
+
return s.call(this, r, n);
|
|
802
|
+
if (c.isRegExp(s))
|
|
803
|
+
return s.exec(r);
|
|
804
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
has(t, s) {
|
|
809
|
+
if (t = Oe(t), t) {
|
|
810
|
+
const n = c.findKey(this, t);
|
|
811
|
+
return !!(n && this[n] !== void 0 && (!s || st(this, this[n], n, s)));
|
|
812
|
+
}
|
|
813
|
+
return !1;
|
|
814
|
+
}
|
|
815
|
+
delete(t, s) {
|
|
816
|
+
const n = this;
|
|
817
|
+
let r = !1;
|
|
818
|
+
function a(i) {
|
|
819
|
+
if (i = Oe(i), i) {
|
|
820
|
+
const u = c.findKey(n, i);
|
|
821
|
+
u && (!s || st(n, n[u], u, s)) && (delete n[u], r = !0);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
return c.isArray(t) ? t.forEach(a) : a(t), r;
|
|
825
|
+
}
|
|
826
|
+
clear(t) {
|
|
827
|
+
const s = Object.keys(this);
|
|
828
|
+
let n = s.length, r = !1;
|
|
829
|
+
for (; n--; ) {
|
|
830
|
+
const a = s[n];
|
|
831
|
+
(!t || st(this, this[a], a, t, !0)) && (delete this[a], r = !0);
|
|
832
|
+
}
|
|
833
|
+
return r;
|
|
834
|
+
}
|
|
835
|
+
normalize(t) {
|
|
836
|
+
const s = this, n = {};
|
|
837
|
+
return c.forEach(this, (r, a) => {
|
|
838
|
+
const i = c.findKey(n, a);
|
|
839
|
+
if (i) {
|
|
840
|
+
s[i] = qe(r), delete s[a];
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
const u = t ? hr(a) : String(a).trim();
|
|
844
|
+
u !== a && delete s[a], s[u] = qe(r), n[u] = !0;
|
|
845
|
+
}), this;
|
|
846
|
+
}
|
|
847
|
+
concat(...t) {
|
|
848
|
+
return this.constructor.concat(this, ...t);
|
|
849
|
+
}
|
|
850
|
+
toJSON(t) {
|
|
851
|
+
const s = /* @__PURE__ */ Object.create(null);
|
|
852
|
+
return c.forEach(this, (n, r) => {
|
|
853
|
+
n != null && n !== !1 && (s[r] = t && c.isArray(n) ? n.join(", ") : n);
|
|
854
|
+
}), s;
|
|
855
|
+
}
|
|
856
|
+
[Symbol.iterator]() {
|
|
857
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
858
|
+
}
|
|
859
|
+
toString() {
|
|
860
|
+
return Object.entries(this.toJSON()).map(([t, s]) => t + ": " + s).join(`
|
|
861
|
+
`);
|
|
862
|
+
}
|
|
863
|
+
getSetCookie() {
|
|
864
|
+
return this.get("set-cookie") || [];
|
|
865
|
+
}
|
|
866
|
+
get [Symbol.toStringTag]() {
|
|
867
|
+
return "AxiosHeaders";
|
|
868
|
+
}
|
|
869
|
+
static from(t) {
|
|
870
|
+
return t instanceof this ? t : new this(t);
|
|
871
|
+
}
|
|
872
|
+
static concat(t, ...s) {
|
|
873
|
+
const n = new this(t);
|
|
874
|
+
return s.forEach((r) => n.set(r)), n;
|
|
875
|
+
}
|
|
876
|
+
static accessor(t) {
|
|
877
|
+
const n = (this[Bt] = this[Bt] = {
|
|
878
|
+
accessors: {}
|
|
879
|
+
}).accessors, r = this.prototype;
|
|
880
|
+
function a(i) {
|
|
881
|
+
const u = Oe(i);
|
|
882
|
+
n[u] || (vr(r, i), n[u] = !0);
|
|
883
|
+
}
|
|
884
|
+
return c.isArray(t) ? t.forEach(a) : a(t), this;
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
Q.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
888
|
+
c.reduceDescriptors(Q.prototype, ({ value: e }, t) => {
|
|
889
|
+
let s = t[0].toUpperCase() + t.slice(1);
|
|
890
|
+
return {
|
|
891
|
+
get: () => e,
|
|
892
|
+
set(n) {
|
|
893
|
+
this[s] = n;
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
});
|
|
897
|
+
c.freezeMethods(Q);
|
|
898
|
+
function nt(e, t) {
|
|
899
|
+
const s = this || Be, n = t || s, r = Q.from(n.headers);
|
|
900
|
+
let a = n.data;
|
|
901
|
+
return c.forEach(e, function(u) {
|
|
902
|
+
a = u.call(s, a, r.normalize(), t ? t.status : void 0);
|
|
903
|
+
}), r.normalize(), a;
|
|
904
|
+
}
|
|
905
|
+
function ls(e) {
|
|
906
|
+
return !!(e && e.__CANCEL__);
|
|
907
|
+
}
|
|
908
|
+
let $e = class extends _ {
|
|
909
|
+
/**
|
|
910
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
911
|
+
*
|
|
912
|
+
* @param {string=} message The message.
|
|
913
|
+
* @param {Object=} config The config.
|
|
914
|
+
* @param {Object=} request The request.
|
|
915
|
+
*
|
|
916
|
+
* @returns {CanceledError} The created error.
|
|
917
|
+
*/
|
|
918
|
+
constructor(t, s, n) {
|
|
919
|
+
super(t ?? "canceled", _.ERR_CANCELED, s, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
function cs(e, t, s) {
|
|
923
|
+
const n = s.config.validateStatus;
|
|
924
|
+
!s.status || !n || n(s.status) ? e(s) : t(new _(
|
|
925
|
+
"Request failed with status code " + s.status,
|
|
926
|
+
[_.ERR_BAD_REQUEST, _.ERR_BAD_RESPONSE][Math.floor(s.status / 100) - 4],
|
|
927
|
+
s.config,
|
|
928
|
+
s.request,
|
|
929
|
+
s
|
|
930
|
+
));
|
|
931
|
+
}
|
|
932
|
+
function yr(e) {
|
|
933
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
934
|
+
return t && t[1] || "";
|
|
935
|
+
}
|
|
936
|
+
function br(e, t) {
|
|
937
|
+
e = e || 10;
|
|
938
|
+
const s = new Array(e), n = new Array(e);
|
|
939
|
+
let r = 0, a = 0, i;
|
|
940
|
+
return t = t !== void 0 ? t : 1e3, function(h) {
|
|
941
|
+
const p = Date.now(), d = n[a];
|
|
942
|
+
i || (i = p), s[r] = h, n[r] = p;
|
|
943
|
+
let v = a, k = 0;
|
|
944
|
+
for (; v !== r; )
|
|
945
|
+
k += s[v++], v = v % e;
|
|
946
|
+
if (r = (r + 1) % e, r === a && (a = (a + 1) % e), p - i < t)
|
|
947
|
+
return;
|
|
948
|
+
const F = d && p - d;
|
|
949
|
+
return F ? Math.round(k * 1e3 / F) : void 0;
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
function wr(e, t) {
|
|
953
|
+
let s = 0, n = 1e3 / t, r, a;
|
|
954
|
+
const i = (p, d = Date.now()) => {
|
|
955
|
+
s = d, r = null, a && (clearTimeout(a), a = null), e(...p);
|
|
956
|
+
};
|
|
957
|
+
return [(...p) => {
|
|
958
|
+
const d = Date.now(), v = d - s;
|
|
959
|
+
v >= n ? i(p, d) : (r = p, a || (a = setTimeout(() => {
|
|
960
|
+
a = null, i(r);
|
|
961
|
+
}, n - v)));
|
|
962
|
+
}, () => r && i(r)];
|
|
963
|
+
}
|
|
964
|
+
const He = (e, t, s = 3) => {
|
|
965
|
+
let n = 0;
|
|
966
|
+
const r = br(50, 250);
|
|
967
|
+
return wr((a) => {
|
|
968
|
+
const i = a.loaded, u = a.lengthComputable ? a.total : void 0, h = i - n, p = r(h), d = i <= u;
|
|
969
|
+
n = i;
|
|
970
|
+
const v = {
|
|
971
|
+
loaded: i,
|
|
972
|
+
total: u,
|
|
973
|
+
progress: u ? i / u : void 0,
|
|
974
|
+
bytes: h,
|
|
975
|
+
rate: p || void 0,
|
|
976
|
+
estimated: p && u && d ? (u - i) / p : void 0,
|
|
977
|
+
event: a,
|
|
978
|
+
lengthComputable: u != null,
|
|
979
|
+
[t ? "download" : "upload"]: !0
|
|
980
|
+
};
|
|
981
|
+
e(v);
|
|
982
|
+
}, s);
|
|
983
|
+
}, $t = (e, t) => {
|
|
984
|
+
const s = e != null;
|
|
985
|
+
return [(n) => t[0]({
|
|
986
|
+
lengthComputable: s,
|
|
987
|
+
total: e,
|
|
988
|
+
loaded: n
|
|
989
|
+
}), t[1]];
|
|
990
|
+
}, Ft = (e) => (...t) => c.asap(() => e(...t)), Sr = W.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (s) => (s = new URL(s, W.origin), e.protocol === s.protocol && e.host === s.host && (t || e.port === s.port)))(
|
|
991
|
+
new URL(W.origin),
|
|
992
|
+
W.navigator && /(msie|trident)/i.test(W.navigator.userAgent)
|
|
993
|
+
) : () => !0, Ir = W.hasStandardBrowserEnv ? (
|
|
994
|
+
// Standard browser envs support document.cookie
|
|
995
|
+
{
|
|
996
|
+
write(e, t, s, n, r, a, i) {
|
|
997
|
+
if (typeof document > "u") return;
|
|
998
|
+
const u = [`${e}=${encodeURIComponent(t)}`];
|
|
999
|
+
c.isNumber(s) && u.push(`expires=${new Date(s).toUTCString()}`), c.isString(n) && u.push(`path=${n}`), c.isString(r) && u.push(`domain=${r}`), a === !0 && u.push("secure"), c.isString(i) && u.push(`SameSite=${i}`), document.cookie = u.join("; ");
|
|
1000
|
+
},
|
|
1001
|
+
read(e) {
|
|
1002
|
+
if (typeof document > "u") return null;
|
|
1003
|
+
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
1004
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
1005
|
+
},
|
|
1006
|
+
remove(e) {
|
|
1007
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
) : (
|
|
1011
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1012
|
+
{
|
|
1013
|
+
write() {
|
|
1014
|
+
},
|
|
1015
|
+
read() {
|
|
1016
|
+
return null;
|
|
1017
|
+
},
|
|
1018
|
+
remove() {
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
);
|
|
1022
|
+
function Er(e) {
|
|
1023
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1024
|
+
}
|
|
1025
|
+
function Tr(e, t) {
|
|
1026
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1027
|
+
}
|
|
1028
|
+
function us(e, t, s) {
|
|
1029
|
+
let n = !Er(t);
|
|
1030
|
+
return e && (n || s == !1) ? Tr(e, t) : t;
|
|
1031
|
+
}
|
|
1032
|
+
const Lt = (e) => e instanceof Q ? { ...e } : e;
|
|
1033
|
+
function ye(e, t) {
|
|
1034
|
+
t = t || {};
|
|
1035
|
+
const s = {};
|
|
1036
|
+
function n(p, d, v, k) {
|
|
1037
|
+
return c.isPlainObject(p) && c.isPlainObject(d) ? c.merge.call({ caseless: k }, p, d) : c.isPlainObject(d) ? c.merge({}, d) : c.isArray(d) ? d.slice() : d;
|
|
1038
|
+
}
|
|
1039
|
+
function r(p, d, v, k) {
|
|
1040
|
+
if (c.isUndefined(d)) {
|
|
1041
|
+
if (!c.isUndefined(p))
|
|
1042
|
+
return n(void 0, p, v, k);
|
|
1043
|
+
} else return n(p, d, v, k);
|
|
1044
|
+
}
|
|
1045
|
+
function a(p, d) {
|
|
1046
|
+
if (!c.isUndefined(d))
|
|
1047
|
+
return n(void 0, d);
|
|
1048
|
+
}
|
|
1049
|
+
function i(p, d) {
|
|
1050
|
+
if (c.isUndefined(d)) {
|
|
1051
|
+
if (!c.isUndefined(p))
|
|
1052
|
+
return n(void 0, p);
|
|
1053
|
+
} else return n(void 0, d);
|
|
1054
|
+
}
|
|
1055
|
+
function u(p, d, v) {
|
|
1056
|
+
if (v in t)
|
|
1057
|
+
return n(p, d);
|
|
1058
|
+
if (v in e)
|
|
1059
|
+
return n(void 0, p);
|
|
1060
|
+
}
|
|
1061
|
+
const h = {
|
|
1062
|
+
url: a,
|
|
1063
|
+
method: a,
|
|
1064
|
+
data: a,
|
|
1065
|
+
baseURL: i,
|
|
1066
|
+
transformRequest: i,
|
|
1067
|
+
transformResponse: i,
|
|
1068
|
+
paramsSerializer: i,
|
|
1069
|
+
timeout: i,
|
|
1070
|
+
timeoutMessage: i,
|
|
1071
|
+
withCredentials: i,
|
|
1072
|
+
withXSRFToken: i,
|
|
1073
|
+
adapter: i,
|
|
1074
|
+
responseType: i,
|
|
1075
|
+
xsrfCookieName: i,
|
|
1076
|
+
xsrfHeaderName: i,
|
|
1077
|
+
onUploadProgress: i,
|
|
1078
|
+
onDownloadProgress: i,
|
|
1079
|
+
decompress: i,
|
|
1080
|
+
maxContentLength: i,
|
|
1081
|
+
maxBodyLength: i,
|
|
1082
|
+
beforeRedirect: i,
|
|
1083
|
+
transport: i,
|
|
1084
|
+
httpAgent: i,
|
|
1085
|
+
httpsAgent: i,
|
|
1086
|
+
cancelToken: i,
|
|
1087
|
+
socketPath: i,
|
|
1088
|
+
responseEncoding: i,
|
|
1089
|
+
validateStatus: u,
|
|
1090
|
+
headers: (p, d, v) => r(Lt(p), Lt(d), v, !0)
|
|
1091
|
+
};
|
|
1092
|
+
return c.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
1093
|
+
const v = h[d] || r, k = v(e[d], t[d], d);
|
|
1094
|
+
c.isUndefined(k) && v !== u || (s[d] = k);
|
|
1095
|
+
}), s;
|
|
1096
|
+
}
|
|
1097
|
+
const ds = (e) => {
|
|
1098
|
+
const t = ye({}, e);
|
|
1099
|
+
let { data: s, withXSRFToken: n, xsrfHeaderName: r, xsrfCookieName: a, headers: i, auth: u } = t;
|
|
1100
|
+
if (t.headers = i = Q.from(i), t.url = os(us(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), u && i.set(
|
|
1101
|
+
"Authorization",
|
|
1102
|
+
"Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : ""))
|
|
1103
|
+
), c.isFormData(s)) {
|
|
1104
|
+
if (W.hasStandardBrowserEnv || W.hasStandardBrowserWebWorkerEnv)
|
|
1105
|
+
i.setContentType(void 0);
|
|
1106
|
+
else if (c.isFunction(s.getHeaders)) {
|
|
1107
|
+
const h = s.getHeaders(), p = ["content-type", "content-length"];
|
|
1108
|
+
Object.entries(h).forEach(([d, v]) => {
|
|
1109
|
+
p.includes(d.toLowerCase()) && i.set(d, v);
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
if (W.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(t)), n || n !== !1 && Sr(t.url))) {
|
|
1114
|
+
const h = r && a && Ir.read(a);
|
|
1115
|
+
h && i.set(r, h);
|
|
1116
|
+
}
|
|
1117
|
+
return t;
|
|
1118
|
+
}, _r = typeof XMLHttpRequest < "u", xr = _r && function(e) {
|
|
1119
|
+
return new Promise(function(s, n) {
|
|
1120
|
+
const r = ds(e);
|
|
1121
|
+
let a = r.data;
|
|
1122
|
+
const i = Q.from(r.headers).normalize();
|
|
1123
|
+
let { responseType: u, onUploadProgress: h, onDownloadProgress: p } = r, d, v, k, F, m;
|
|
1124
|
+
function E() {
|
|
1125
|
+
F && F(), m && m(), r.cancelToken && r.cancelToken.unsubscribe(d), r.signal && r.signal.removeEventListener("abort", d);
|
|
1126
|
+
}
|
|
1127
|
+
let b = new XMLHttpRequest();
|
|
1128
|
+
b.open(r.method.toUpperCase(), r.url, !0), b.timeout = r.timeout;
|
|
1129
|
+
function D() {
|
|
1130
|
+
if (!b)
|
|
1131
|
+
return;
|
|
1132
|
+
const N = Q.from(
|
|
1133
|
+
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
1134
|
+
), H = {
|
|
1135
|
+
data: !u || u === "text" || u === "json" ? b.responseText : b.response,
|
|
1136
|
+
status: b.status,
|
|
1137
|
+
statusText: b.statusText,
|
|
1138
|
+
headers: N,
|
|
1139
|
+
config: e,
|
|
1140
|
+
request: b
|
|
1141
|
+
};
|
|
1142
|
+
cs(function(j) {
|
|
1143
|
+
s(j), E();
|
|
1144
|
+
}, function(j) {
|
|
1145
|
+
n(j), E();
|
|
1146
|
+
}, H), b = null;
|
|
1147
|
+
}
|
|
1148
|
+
"onloadend" in b ? b.onloadend = D : b.onreadystatechange = function() {
|
|
1149
|
+
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(D);
|
|
1150
|
+
}, b.onabort = function() {
|
|
1151
|
+
b && (n(new _("Request aborted", _.ECONNABORTED, e, b)), b = null);
|
|
1152
|
+
}, b.onerror = function(O) {
|
|
1153
|
+
const H = O && O.message ? O.message : "Network Error", se = new _(H, _.ERR_NETWORK, e, b);
|
|
1154
|
+
se.event = O || null, n(se), b = null;
|
|
1155
|
+
}, b.ontimeout = function() {
|
|
1156
|
+
let O = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1157
|
+
const H = r.transitional || as;
|
|
1158
|
+
r.timeoutErrorMessage && (O = r.timeoutErrorMessage), n(new _(
|
|
1159
|
+
O,
|
|
1160
|
+
H.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
|
|
1161
|
+
e,
|
|
1162
|
+
b
|
|
1163
|
+
)), b = null;
|
|
1164
|
+
}, a === void 0 && i.setContentType(null), "setRequestHeader" in b && c.forEach(i.toJSON(), function(O, H) {
|
|
1165
|
+
b.setRequestHeader(H, O);
|
|
1166
|
+
}), c.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), u && u !== "json" && (b.responseType = r.responseType), p && ([k, m] = He(p, !0), b.addEventListener("progress", k)), h && b.upload && ([v, F] = He(h), b.upload.addEventListener("progress", v), b.upload.addEventListener("loadend", F)), (r.cancelToken || r.signal) && (d = (N) => {
|
|
1167
|
+
b && (n(!N || N.type ? new $e(null, e, b) : N), b.abort(), b = null);
|
|
1168
|
+
}, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
|
|
1169
|
+
const L = yr(r.url);
|
|
1170
|
+
if (L && W.protocols.indexOf(L) === -1) {
|
|
1171
|
+
n(new _("Unsupported protocol " + L + ":", _.ERR_BAD_REQUEST, e));
|
|
1172
|
+
return;
|
|
1173
|
+
}
|
|
1174
|
+
b.send(a || null);
|
|
1175
|
+
});
|
|
1176
|
+
}, Rr = (e, t) => {
|
|
1177
|
+
const { length: s } = e = e ? e.filter(Boolean) : [];
|
|
1178
|
+
if (t || s) {
|
|
1179
|
+
let n = new AbortController(), r;
|
|
1180
|
+
const a = function(p) {
|
|
1181
|
+
if (!r) {
|
|
1182
|
+
r = !0, u();
|
|
1183
|
+
const d = p instanceof Error ? p : this.reason;
|
|
1184
|
+
n.abort(d instanceof _ ? d : new $e(d instanceof Error ? d.message : d));
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
1187
|
+
let i = t && setTimeout(() => {
|
|
1188
|
+
i = null, a(new _(`timeout of ${t}ms exceeded`, _.ETIMEDOUT));
|
|
1189
|
+
}, t);
|
|
1190
|
+
const u = () => {
|
|
1191
|
+
e && (i && clearTimeout(i), i = null, e.forEach((p) => {
|
|
1192
|
+
p.unsubscribe ? p.unsubscribe(a) : p.removeEventListener("abort", a);
|
|
1193
|
+
}), e = null);
|
|
1194
|
+
};
|
|
1195
|
+
e.forEach((p) => p.addEventListener("abort", a));
|
|
1196
|
+
const { signal: h } = n;
|
|
1197
|
+
return h.unsubscribe = () => c.asap(u), h;
|
|
1198
|
+
}
|
|
1199
|
+
}, Cr = function* (e, t) {
|
|
1200
|
+
let s = e.byteLength;
|
|
1201
|
+
if (s < t) {
|
|
1202
|
+
yield e;
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
let n = 0, r;
|
|
1206
|
+
for (; n < s; )
|
|
1207
|
+
r = n + t, yield e.slice(n, r), n = r;
|
|
1208
|
+
}, Or = async function* (e, t) {
|
|
1209
|
+
for await (const s of Ar(e))
|
|
1210
|
+
yield* Cr(s, t);
|
|
1211
|
+
}, Ar = async function* (e) {
|
|
1212
|
+
if (e[Symbol.asyncIterator]) {
|
|
1213
|
+
yield* e;
|
|
1214
|
+
return;
|
|
1215
|
+
}
|
|
1216
|
+
const t = e.getReader();
|
|
1217
|
+
try {
|
|
1218
|
+
for (; ; ) {
|
|
1219
|
+
const { done: s, value: n } = await t.read();
|
|
1220
|
+
if (s)
|
|
1221
|
+
break;
|
|
1222
|
+
yield n;
|
|
1223
|
+
}
|
|
1224
|
+
} finally {
|
|
1225
|
+
await t.cancel();
|
|
1226
|
+
}
|
|
1227
|
+
}, Ut = (e, t, s, n) => {
|
|
1228
|
+
const r = Or(e, t);
|
|
1229
|
+
let a = 0, i, u = (h) => {
|
|
1230
|
+
i || (i = !0, n && n(h));
|
|
1231
|
+
};
|
|
1232
|
+
return new ReadableStream({
|
|
1233
|
+
async pull(h) {
|
|
1234
|
+
try {
|
|
1235
|
+
const { done: p, value: d } = await r.next();
|
|
1236
|
+
if (p) {
|
|
1237
|
+
u(), h.close();
|
|
1238
|
+
return;
|
|
1239
|
+
}
|
|
1240
|
+
let v = d.byteLength;
|
|
1241
|
+
if (s) {
|
|
1242
|
+
let k = a += v;
|
|
1243
|
+
s(k);
|
|
1244
|
+
}
|
|
1245
|
+
h.enqueue(new Uint8Array(d));
|
|
1246
|
+
} catch (p) {
|
|
1247
|
+
throw u(p), p;
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
cancel(h) {
|
|
1251
|
+
return u(h), r.return();
|
|
1252
|
+
}
|
|
1253
|
+
}, {
|
|
1254
|
+
highWaterMark: 2
|
|
1255
|
+
});
|
|
1256
|
+
}, Dt = 64 * 1024, { isFunction: De } = c, kr = (({ Request: e, Response: t }) => ({
|
|
1257
|
+
Request: e,
|
|
1258
|
+
Response: t
|
|
1259
|
+
}))(c.global), {
|
|
1260
|
+
ReadableStream: Mt,
|
|
1261
|
+
TextEncoder: jt
|
|
1262
|
+
} = c.global, qt = (e, ...t) => {
|
|
1263
|
+
try {
|
|
1264
|
+
return !!e(...t);
|
|
1265
|
+
} catch {
|
|
1266
|
+
return !1;
|
|
1267
|
+
}
|
|
1268
|
+
}, Pr = (e) => {
|
|
1269
|
+
e = c.merge.call({
|
|
1270
|
+
skipUndefined: !0
|
|
1271
|
+
}, kr, e);
|
|
1272
|
+
const { fetch: t, Request: s, Response: n } = e, r = t ? De(t) : typeof fetch == "function", a = De(s), i = De(n);
|
|
1273
|
+
if (!r)
|
|
1274
|
+
return !1;
|
|
1275
|
+
const u = r && De(Mt), h = r && (typeof jt == "function" ? /* @__PURE__ */ ((m) => (E) => m.encode(E))(new jt()) : async (m) => new Uint8Array(await new s(m).arrayBuffer())), p = a && u && qt(() => {
|
|
1276
|
+
let m = !1;
|
|
1277
|
+
const E = new s(W.origin, {
|
|
1278
|
+
body: new Mt(),
|
|
1279
|
+
method: "POST",
|
|
1280
|
+
get duplex() {
|
|
1281
|
+
return m = !0, "half";
|
|
1282
|
+
}
|
|
1283
|
+
}).headers.has("Content-Type");
|
|
1284
|
+
return m && !E;
|
|
1285
|
+
}), d = i && u && qt(() => c.isReadableStream(new n("").body)), v = {
|
|
1286
|
+
stream: d && ((m) => m.body)
|
|
1287
|
+
};
|
|
1288
|
+
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((m) => {
|
|
1289
|
+
!v[m] && (v[m] = (E, b) => {
|
|
1290
|
+
let D = E && E[m];
|
|
1291
|
+
if (D)
|
|
1292
|
+
return D.call(E);
|
|
1293
|
+
throw new _(`Response type '${m}' is not supported`, _.ERR_NOT_SUPPORT, b);
|
|
1294
|
+
});
|
|
1295
|
+
});
|
|
1296
|
+
const k = async (m) => {
|
|
1297
|
+
if (m == null)
|
|
1298
|
+
return 0;
|
|
1299
|
+
if (c.isBlob(m))
|
|
1300
|
+
return m.size;
|
|
1301
|
+
if (c.isSpecCompliantForm(m))
|
|
1302
|
+
return (await new s(W.origin, {
|
|
1303
|
+
method: "POST",
|
|
1304
|
+
body: m
|
|
1305
|
+
}).arrayBuffer()).byteLength;
|
|
1306
|
+
if (c.isArrayBufferView(m) || c.isArrayBuffer(m))
|
|
1307
|
+
return m.byteLength;
|
|
1308
|
+
if (c.isURLSearchParams(m) && (m = m + ""), c.isString(m))
|
|
1309
|
+
return (await h(m)).byteLength;
|
|
1310
|
+
}, F = async (m, E) => {
|
|
1311
|
+
const b = c.toFiniteNumber(m.getContentLength());
|
|
1312
|
+
return b ?? k(E);
|
|
1313
|
+
};
|
|
1314
|
+
return async (m) => {
|
|
1315
|
+
let {
|
|
1316
|
+
url: E,
|
|
1317
|
+
method: b,
|
|
1318
|
+
data: D,
|
|
1319
|
+
signal: L,
|
|
1320
|
+
cancelToken: N,
|
|
1321
|
+
timeout: O,
|
|
1322
|
+
onDownloadProgress: H,
|
|
1323
|
+
onUploadProgress: se,
|
|
1324
|
+
responseType: j,
|
|
1325
|
+
headers: le,
|
|
1326
|
+
withCredentials: ce = "same-origin",
|
|
1327
|
+
fetchOptions: q
|
|
1328
|
+
} = ds(m), be = t || fetch;
|
|
1329
|
+
j = j ? (j + "").toLowerCase() : "text";
|
|
1330
|
+
let ie = Rr([L, N && N.toAbortSignal()], O), ne = null;
|
|
1331
|
+
const K = ie && ie.unsubscribe && (() => {
|
|
1332
|
+
ie.unsubscribe();
|
|
1333
|
+
});
|
|
1334
|
+
let Te;
|
|
1335
|
+
try {
|
|
1336
|
+
if (se && p && b !== "get" && b !== "head" && (Te = await F(le, D)) !== 0) {
|
|
1337
|
+
let oe = new s(E, {
|
|
1338
|
+
method: "POST",
|
|
1339
|
+
body: D,
|
|
1340
|
+
duplex: "half"
|
|
1341
|
+
}), ue;
|
|
1342
|
+
if (c.isFormData(D) && (ue = oe.headers.get("content-type")) && le.setContentType(ue), oe.body) {
|
|
1343
|
+
const [xe, we] = $t(
|
|
1344
|
+
Te,
|
|
1345
|
+
He(Ft(se))
|
|
1346
|
+
);
|
|
1347
|
+
D = Ut(oe.body, Dt, xe, we);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
c.isString(ce) || (ce = ce ? "include" : "omit");
|
|
1351
|
+
const Z = a && "credentials" in s.prototype, _e = {
|
|
1352
|
+
...q,
|
|
1353
|
+
signal: ie,
|
|
1354
|
+
method: b.toUpperCase(),
|
|
1355
|
+
headers: le.normalize().toJSON(),
|
|
1356
|
+
body: D,
|
|
1357
|
+
duplex: "half",
|
|
1358
|
+
credentials: Z ? ce : void 0
|
|
1359
|
+
};
|
|
1360
|
+
ne = a && new s(E, _e);
|
|
1361
|
+
let re = await (a ? be(ne, q) : be(E, _e));
|
|
1362
|
+
const Fe = d && (j === "stream" || j === "response");
|
|
1363
|
+
if (d && (H || Fe && K)) {
|
|
1364
|
+
const oe = {};
|
|
1365
|
+
["status", "statusText", "headers"].forEach((Le) => {
|
|
1366
|
+
oe[Le] = re[Le];
|
|
1367
|
+
});
|
|
1368
|
+
const ue = c.toFiniteNumber(re.headers.get("content-length")), [xe, we] = H && $t(
|
|
1369
|
+
ue,
|
|
1370
|
+
He(Ft(H), !0)
|
|
1371
|
+
) || [];
|
|
1372
|
+
re = new n(
|
|
1373
|
+
Ut(re.body, Dt, xe, () => {
|
|
1374
|
+
we && we(), K && K();
|
|
1375
|
+
}),
|
|
1376
|
+
oe
|
|
1377
|
+
);
|
|
1378
|
+
}
|
|
1379
|
+
j = j || "text";
|
|
1380
|
+
let Ye = await v[c.findKey(v, j) || "text"](re, m);
|
|
1381
|
+
return !Fe && K && K(), await new Promise((oe, ue) => {
|
|
1382
|
+
cs(oe, ue, {
|
|
1383
|
+
data: Ye,
|
|
1384
|
+
headers: Q.from(re.headers),
|
|
1385
|
+
status: re.status,
|
|
1386
|
+
statusText: re.statusText,
|
|
1387
|
+
config: m,
|
|
1388
|
+
request: ne
|
|
1389
|
+
});
|
|
1390
|
+
});
|
|
1391
|
+
} catch (Z) {
|
|
1392
|
+
throw K && K(), Z && Z.name === "TypeError" && /Load failed|fetch/i.test(Z.message) ? Object.assign(
|
|
1393
|
+
new _("Network Error", _.ERR_NETWORK, m, ne),
|
|
1394
|
+
{
|
|
1395
|
+
cause: Z.cause || Z
|
|
1396
|
+
}
|
|
1397
|
+
) : _.from(Z, Z && Z.code, m, ne);
|
|
1398
|
+
}
|
|
1399
|
+
};
|
|
1400
|
+
}, Nr = /* @__PURE__ */ new Map(), fs = (e) => {
|
|
1401
|
+
let t = e && e.env || {};
|
|
1402
|
+
const { fetch: s, Request: n, Response: r } = t, a = [
|
|
1403
|
+
n,
|
|
1404
|
+
r,
|
|
1405
|
+
s
|
|
1406
|
+
];
|
|
1407
|
+
let i = a.length, u = i, h, p, d = Nr;
|
|
1408
|
+
for (; u--; )
|
|
1409
|
+
h = a[u], p = d.get(h), p === void 0 && d.set(h, p = u ? /* @__PURE__ */ new Map() : Pr(t)), d = p;
|
|
1410
|
+
return p;
|
|
1411
|
+
};
|
|
1412
|
+
fs();
|
|
1413
|
+
const pt = {
|
|
1414
|
+
http: Gn,
|
|
1415
|
+
xhr: xr,
|
|
1416
|
+
fetch: {
|
|
1417
|
+
get: fs
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
c.forEach(pt, (e, t) => {
|
|
1421
|
+
if (e) {
|
|
1422
|
+
try {
|
|
1423
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1424
|
+
} catch {
|
|
1425
|
+
}
|
|
1426
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1427
|
+
}
|
|
1428
|
+
});
|
|
1429
|
+
const Vt = (e) => `- ${e}`, Br = (e) => c.isFunction(e) || e === null || e === !1;
|
|
1430
|
+
function $r(e, t) {
|
|
1431
|
+
e = c.isArray(e) ? e : [e];
|
|
1432
|
+
const { length: s } = e;
|
|
1433
|
+
let n, r;
|
|
1434
|
+
const a = {};
|
|
1435
|
+
for (let i = 0; i < s; i++) {
|
|
1436
|
+
n = e[i];
|
|
1437
|
+
let u;
|
|
1438
|
+
if (r = n, !Br(n) && (r = pt[(u = String(n)).toLowerCase()], r === void 0))
|
|
1439
|
+
throw new _(`Unknown adapter '${u}'`);
|
|
1440
|
+
if (r && (c.isFunction(r) || (r = r.get(t))))
|
|
1441
|
+
break;
|
|
1442
|
+
a[u || "#" + i] = r;
|
|
1443
|
+
}
|
|
1444
|
+
if (!r) {
|
|
1445
|
+
const i = Object.entries(a).map(
|
|
1446
|
+
([h, p]) => `adapter ${h} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1447
|
+
);
|
|
1448
|
+
let u = s ? i.length > 1 ? `since :
|
|
1449
|
+
` + i.map(Vt).join(`
|
|
1450
|
+
`) : " " + Vt(i[0]) : "as no adapter specified";
|
|
1451
|
+
throw new _(
|
|
1452
|
+
"There is no suitable adapter to dispatch the request " + u,
|
|
1453
|
+
"ERR_NOT_SUPPORT"
|
|
1454
|
+
);
|
|
1455
|
+
}
|
|
1456
|
+
return r;
|
|
1457
|
+
}
|
|
1458
|
+
const ms = {
|
|
1459
|
+
/**
|
|
1460
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
1461
|
+
* @type {Function}
|
|
1462
|
+
*/
|
|
1463
|
+
getAdapter: $r,
|
|
1464
|
+
/**
|
|
1465
|
+
* Exposes all known adapters
|
|
1466
|
+
* @type {Object<string, Function|Object>}
|
|
1467
|
+
*/
|
|
1468
|
+
adapters: pt
|
|
1469
|
+
};
|
|
1470
|
+
function rt(e) {
|
|
1471
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1472
|
+
throw new $e(null, e);
|
|
1473
|
+
}
|
|
1474
|
+
function Ht(e) {
|
|
1475
|
+
return rt(e), e.headers = Q.from(e.headers), e.data = nt.call(
|
|
1476
|
+
e,
|
|
1477
|
+
e.transformRequest
|
|
1478
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ms.getAdapter(e.adapter || Be.adapter, e)(e).then(function(n) {
|
|
1479
|
+
return rt(e), n.data = nt.call(
|
|
1480
|
+
e,
|
|
1481
|
+
e.transformResponse,
|
|
1482
|
+
n
|
|
1483
|
+
), n.headers = Q.from(n.headers), n;
|
|
1484
|
+
}, function(n) {
|
|
1485
|
+
return ls(n) || (rt(e), n && n.response && (n.response.data = nt.call(
|
|
1486
|
+
e,
|
|
1487
|
+
e.transformResponse,
|
|
1488
|
+
n.response
|
|
1489
|
+
), n.response.headers = Q.from(n.response.headers))), Promise.reject(n);
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
const ps = "1.13.4", Qe = {};
|
|
1493
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1494
|
+
Qe[e] = function(n) {
|
|
1495
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1496
|
+
};
|
|
1497
|
+
});
|
|
1498
|
+
const zt = {};
|
|
1499
|
+
Qe.transitional = function(t, s, n) {
|
|
1500
|
+
function r(a, i) {
|
|
1501
|
+
return "[Axios v" + ps + "] Transitional option '" + a + "'" + i + (n ? ". " + n : "");
|
|
1502
|
+
}
|
|
1503
|
+
return (a, i, u) => {
|
|
1504
|
+
if (t === !1)
|
|
1505
|
+
throw new _(
|
|
1506
|
+
r(i, " has been removed" + (s ? " in " + s : "")),
|
|
1507
|
+
_.ERR_DEPRECATED
|
|
1508
|
+
);
|
|
1509
|
+
return s && !zt[i] && (zt[i] = !0, console.warn(
|
|
1510
|
+
r(
|
|
1511
|
+
i,
|
|
1512
|
+
" has been deprecated since v" + s + " and will be removed in the near future"
|
|
1513
|
+
)
|
|
1514
|
+
)), t ? t(a, i, u) : !0;
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
Qe.spelling = function(t) {
|
|
1518
|
+
return (s, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
1519
|
+
};
|
|
1520
|
+
function Fr(e, t, s) {
|
|
1521
|
+
if (typeof e != "object")
|
|
1522
|
+
throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
|
|
1523
|
+
const n = Object.keys(e);
|
|
1524
|
+
let r = n.length;
|
|
1525
|
+
for (; r-- > 0; ) {
|
|
1526
|
+
const a = n[r], i = t[a];
|
|
1527
|
+
if (i) {
|
|
1528
|
+
const u = e[a], h = u === void 0 || i(u, a, e);
|
|
1529
|
+
if (h !== !0)
|
|
1530
|
+
throw new _("option " + a + " must be " + h, _.ERR_BAD_OPTION_VALUE);
|
|
1531
|
+
continue;
|
|
1532
|
+
}
|
|
1533
|
+
if (s !== !0)
|
|
1534
|
+
throw new _("Unknown option " + a, _.ERR_BAD_OPTION);
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
const Ve = {
|
|
1538
|
+
assertOptions: Fr,
|
|
1539
|
+
validators: Qe
|
|
1540
|
+
}, ae = Ve.validators;
|
|
1541
|
+
let ve = class {
|
|
1542
|
+
constructor(t) {
|
|
1543
|
+
this.defaults = t || {}, this.interceptors = {
|
|
1544
|
+
request: new Nt(),
|
|
1545
|
+
response: new Nt()
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Dispatch a request
|
|
1550
|
+
*
|
|
1551
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1552
|
+
* @param {?Object} config
|
|
1553
|
+
*
|
|
1554
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1555
|
+
*/
|
|
1556
|
+
async request(t, s) {
|
|
1557
|
+
try {
|
|
1558
|
+
return await this._request(t, s);
|
|
1559
|
+
} catch (n) {
|
|
1560
|
+
if (n instanceof Error) {
|
|
1561
|
+
let r = {};
|
|
1562
|
+
Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
|
|
1563
|
+
const a = r.stack ? r.stack.replace(/^.+\n/, "") : "";
|
|
1564
|
+
try {
|
|
1565
|
+
n.stack ? a && !String(n.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
1566
|
+
` + a) : n.stack = a;
|
|
1567
|
+
} catch {
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
throw n;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
_request(t, s) {
|
|
1574
|
+
typeof t == "string" ? (s = s || {}, s.url = t) : s = t || {}, s = ye(this.defaults, s);
|
|
1575
|
+
const { transitional: n, paramsSerializer: r, headers: a } = s;
|
|
1576
|
+
n !== void 0 && Ve.assertOptions(n, {
|
|
1577
|
+
silentJSONParsing: ae.transitional(ae.boolean),
|
|
1578
|
+
forcedJSONParsing: ae.transitional(ae.boolean),
|
|
1579
|
+
clarifyTimeoutError: ae.transitional(ae.boolean)
|
|
1580
|
+
}, !1), r != null && (c.isFunction(r) ? s.paramsSerializer = {
|
|
1581
|
+
serialize: r
|
|
1582
|
+
} : Ve.assertOptions(r, {
|
|
1583
|
+
encode: ae.function,
|
|
1584
|
+
serialize: ae.function
|
|
1585
|
+
}, !0)), s.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? s.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : s.allowAbsoluteUrls = !0), Ve.assertOptions(s, {
|
|
1586
|
+
baseUrl: ae.spelling("baseURL"),
|
|
1587
|
+
withXsrfToken: ae.spelling("withXSRFToken")
|
|
1588
|
+
}, !0), s.method = (s.method || this.defaults.method || "get").toLowerCase();
|
|
1589
|
+
let i = a && c.merge(
|
|
1590
|
+
a.common,
|
|
1591
|
+
a[s.method]
|
|
1592
|
+
);
|
|
1593
|
+
a && c.forEach(
|
|
1594
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1595
|
+
(m) => {
|
|
1596
|
+
delete a[m];
|
|
1597
|
+
}
|
|
1598
|
+
), s.headers = Q.concat(i, a);
|
|
1599
|
+
const u = [];
|
|
1600
|
+
let h = !0;
|
|
1601
|
+
this.interceptors.request.forEach(function(E) {
|
|
1602
|
+
typeof E.runWhen == "function" && E.runWhen(s) === !1 || (h = h && E.synchronous, u.unshift(E.fulfilled, E.rejected));
|
|
1603
|
+
});
|
|
1604
|
+
const p = [];
|
|
1605
|
+
this.interceptors.response.forEach(function(E) {
|
|
1606
|
+
p.push(E.fulfilled, E.rejected);
|
|
1607
|
+
});
|
|
1608
|
+
let d, v = 0, k;
|
|
1609
|
+
if (!h) {
|
|
1610
|
+
const m = [Ht.bind(this), void 0];
|
|
1611
|
+
for (m.unshift(...u), m.push(...p), k = m.length, d = Promise.resolve(s); v < k; )
|
|
1612
|
+
d = d.then(m[v++], m[v++]);
|
|
1613
|
+
return d;
|
|
1614
|
+
}
|
|
1615
|
+
k = u.length;
|
|
1616
|
+
let F = s;
|
|
1617
|
+
for (; v < k; ) {
|
|
1618
|
+
const m = u[v++], E = u[v++];
|
|
1619
|
+
try {
|
|
1620
|
+
F = m(F);
|
|
1621
|
+
} catch (b) {
|
|
1622
|
+
E.call(this, b);
|
|
1623
|
+
break;
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
try {
|
|
1627
|
+
d = Ht.call(this, F);
|
|
1628
|
+
} catch (m) {
|
|
1629
|
+
return Promise.reject(m);
|
|
1630
|
+
}
|
|
1631
|
+
for (v = 0, k = p.length; v < k; )
|
|
1632
|
+
d = d.then(p[v++], p[v++]);
|
|
1633
|
+
return d;
|
|
1634
|
+
}
|
|
1635
|
+
getUri(t) {
|
|
1636
|
+
t = ye(this.defaults, t);
|
|
1637
|
+
const s = us(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1638
|
+
return os(s, t.params, t.paramsSerializer);
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1642
|
+
ve.prototype[t] = function(s, n) {
|
|
1643
|
+
return this.request(ye(n || {}, {
|
|
1644
|
+
method: t,
|
|
1645
|
+
url: s,
|
|
1646
|
+
data: (n || {}).data
|
|
1647
|
+
}));
|
|
1648
|
+
};
|
|
1649
|
+
});
|
|
1650
|
+
c.forEach(["post", "put", "patch"], function(t) {
|
|
1651
|
+
function s(n) {
|
|
1652
|
+
return function(a, i, u) {
|
|
1653
|
+
return this.request(ye(u || {}, {
|
|
1654
|
+
method: t,
|
|
1655
|
+
headers: n ? {
|
|
1656
|
+
"Content-Type": "multipart/form-data"
|
|
1657
|
+
} : {},
|
|
1658
|
+
url: a,
|
|
1659
|
+
data: i
|
|
1660
|
+
}));
|
|
1661
|
+
};
|
|
1662
|
+
}
|
|
1663
|
+
ve.prototype[t] = s(), ve.prototype[t + "Form"] = s(!0);
|
|
1664
|
+
});
|
|
1665
|
+
let Lr = class gs {
|
|
1666
|
+
constructor(t) {
|
|
1667
|
+
if (typeof t != "function")
|
|
1668
|
+
throw new TypeError("executor must be a function.");
|
|
1669
|
+
let s;
|
|
1670
|
+
this.promise = new Promise(function(a) {
|
|
1671
|
+
s = a;
|
|
1672
|
+
});
|
|
1673
|
+
const n = this;
|
|
1674
|
+
this.promise.then((r) => {
|
|
1675
|
+
if (!n._listeners) return;
|
|
1676
|
+
let a = n._listeners.length;
|
|
1677
|
+
for (; a-- > 0; )
|
|
1678
|
+
n._listeners[a](r);
|
|
1679
|
+
n._listeners = null;
|
|
1680
|
+
}), this.promise.then = (r) => {
|
|
1681
|
+
let a;
|
|
1682
|
+
const i = new Promise((u) => {
|
|
1683
|
+
n.subscribe(u), a = u;
|
|
1684
|
+
}).then(r);
|
|
1685
|
+
return i.cancel = function() {
|
|
1686
|
+
n.unsubscribe(a);
|
|
1687
|
+
}, i;
|
|
1688
|
+
}, t(function(a, i, u) {
|
|
1689
|
+
n.reason || (n.reason = new $e(a, i, u), s(n.reason));
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1694
|
+
*/
|
|
1695
|
+
throwIfRequested() {
|
|
1696
|
+
if (this.reason)
|
|
1697
|
+
throw this.reason;
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Subscribe to the cancel signal
|
|
1701
|
+
*/
|
|
1702
|
+
subscribe(t) {
|
|
1703
|
+
if (this.reason) {
|
|
1704
|
+
t(this.reason);
|
|
1705
|
+
return;
|
|
1706
|
+
}
|
|
1707
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1708
|
+
}
|
|
1709
|
+
/**
|
|
1710
|
+
* Unsubscribe from the cancel signal
|
|
1711
|
+
*/
|
|
1712
|
+
unsubscribe(t) {
|
|
1713
|
+
if (!this._listeners)
|
|
1714
|
+
return;
|
|
1715
|
+
const s = this._listeners.indexOf(t);
|
|
1716
|
+
s !== -1 && this._listeners.splice(s, 1);
|
|
1717
|
+
}
|
|
1718
|
+
toAbortSignal() {
|
|
1719
|
+
const t = new AbortController(), s = (n) => {
|
|
1720
|
+
t.abort(n);
|
|
1721
|
+
};
|
|
1722
|
+
return this.subscribe(s), t.signal.unsubscribe = () => this.unsubscribe(s), t.signal;
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1726
|
+
* cancels the `CancelToken`.
|
|
1727
|
+
*/
|
|
1728
|
+
static source() {
|
|
1729
|
+
let t;
|
|
1730
|
+
return {
|
|
1731
|
+
token: new gs(function(r) {
|
|
1732
|
+
t = r;
|
|
1733
|
+
}),
|
|
1734
|
+
cancel: t
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
function Ur(e) {
|
|
1739
|
+
return function(s) {
|
|
1740
|
+
return e.apply(null, s);
|
|
1741
|
+
};
|
|
1742
|
+
}
|
|
1743
|
+
function Dr(e) {
|
|
1744
|
+
return c.isObject(e) && e.isAxiosError === !0;
|
|
1745
|
+
}
|
|
1746
|
+
const ut = {
|
|
1747
|
+
Continue: 100,
|
|
1748
|
+
SwitchingProtocols: 101,
|
|
1749
|
+
Processing: 102,
|
|
1750
|
+
EarlyHints: 103,
|
|
1751
|
+
Ok: 200,
|
|
1752
|
+
Created: 201,
|
|
1753
|
+
Accepted: 202,
|
|
1754
|
+
NonAuthoritativeInformation: 203,
|
|
1755
|
+
NoContent: 204,
|
|
1756
|
+
ResetContent: 205,
|
|
1757
|
+
PartialContent: 206,
|
|
1758
|
+
MultiStatus: 207,
|
|
1759
|
+
AlreadyReported: 208,
|
|
1760
|
+
ImUsed: 226,
|
|
1761
|
+
MultipleChoices: 300,
|
|
1762
|
+
MovedPermanently: 301,
|
|
1763
|
+
Found: 302,
|
|
1764
|
+
SeeOther: 303,
|
|
1765
|
+
NotModified: 304,
|
|
1766
|
+
UseProxy: 305,
|
|
1767
|
+
Unused: 306,
|
|
1768
|
+
TemporaryRedirect: 307,
|
|
1769
|
+
PermanentRedirect: 308,
|
|
1770
|
+
BadRequest: 400,
|
|
1771
|
+
Unauthorized: 401,
|
|
1772
|
+
PaymentRequired: 402,
|
|
1773
|
+
Forbidden: 403,
|
|
1774
|
+
NotFound: 404,
|
|
1775
|
+
MethodNotAllowed: 405,
|
|
1776
|
+
NotAcceptable: 406,
|
|
1777
|
+
ProxyAuthenticationRequired: 407,
|
|
1778
|
+
RequestTimeout: 408,
|
|
1779
|
+
Conflict: 409,
|
|
1780
|
+
Gone: 410,
|
|
1781
|
+
LengthRequired: 411,
|
|
1782
|
+
PreconditionFailed: 412,
|
|
1783
|
+
PayloadTooLarge: 413,
|
|
1784
|
+
UriTooLong: 414,
|
|
1785
|
+
UnsupportedMediaType: 415,
|
|
1786
|
+
RangeNotSatisfiable: 416,
|
|
1787
|
+
ExpectationFailed: 417,
|
|
1788
|
+
ImATeapot: 418,
|
|
1789
|
+
MisdirectedRequest: 421,
|
|
1790
|
+
UnprocessableEntity: 422,
|
|
1791
|
+
Locked: 423,
|
|
1792
|
+
FailedDependency: 424,
|
|
1793
|
+
TooEarly: 425,
|
|
1794
|
+
UpgradeRequired: 426,
|
|
1795
|
+
PreconditionRequired: 428,
|
|
1796
|
+
TooManyRequests: 429,
|
|
1797
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1798
|
+
UnavailableForLegalReasons: 451,
|
|
1799
|
+
InternalServerError: 500,
|
|
1800
|
+
NotImplemented: 501,
|
|
1801
|
+
BadGateway: 502,
|
|
1802
|
+
ServiceUnavailable: 503,
|
|
1803
|
+
GatewayTimeout: 504,
|
|
1804
|
+
HttpVersionNotSupported: 505,
|
|
1805
|
+
VariantAlsoNegotiates: 506,
|
|
1806
|
+
InsufficientStorage: 507,
|
|
1807
|
+
LoopDetected: 508,
|
|
1808
|
+
NotExtended: 510,
|
|
1809
|
+
NetworkAuthenticationRequired: 511,
|
|
1810
|
+
WebServerIsDown: 521,
|
|
1811
|
+
ConnectionTimedOut: 522,
|
|
1812
|
+
OriginIsUnreachable: 523,
|
|
1813
|
+
TimeoutOccurred: 524,
|
|
1814
|
+
SslHandshakeFailed: 525,
|
|
1815
|
+
InvalidSslCertificate: 526
|
|
1816
|
+
};
|
|
1817
|
+
Object.entries(ut).forEach(([e, t]) => {
|
|
1818
|
+
ut[t] = e;
|
|
1819
|
+
});
|
|
1820
|
+
function hs(e) {
|
|
1821
|
+
const t = new ve(e), s = Kt(ve.prototype.request, t);
|
|
1822
|
+
return c.extend(s, ve.prototype, t, { allOwnKeys: !0 }), c.extend(s, t, null, { allOwnKeys: !0 }), s.create = function(r) {
|
|
1823
|
+
return hs(ye(e, r));
|
|
1824
|
+
}, s;
|
|
1825
|
+
}
|
|
1826
|
+
const M = hs(Be);
|
|
1827
|
+
M.Axios = ve;
|
|
1828
|
+
M.CanceledError = $e;
|
|
1829
|
+
M.CancelToken = Lr;
|
|
1830
|
+
M.isCancel = ls;
|
|
1831
|
+
M.VERSION = ps;
|
|
1832
|
+
M.toFormData = Ge;
|
|
1833
|
+
M.AxiosError = _;
|
|
1834
|
+
M.Cancel = M.CanceledError;
|
|
1835
|
+
M.all = function(t) {
|
|
1836
|
+
return Promise.all(t);
|
|
9
1837
|
};
|
|
10
|
-
|
|
11
|
-
|
|
1838
|
+
M.spread = Ur;
|
|
1839
|
+
M.isAxiosError = Dr;
|
|
1840
|
+
M.mergeConfig = ye;
|
|
1841
|
+
M.AxiosHeaders = Q;
|
|
1842
|
+
M.formToJSON = (e) => is(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1843
|
+
M.getAdapter = ms.getAdapter;
|
|
1844
|
+
M.HttpStatusCode = ut;
|
|
1845
|
+
M.default = M;
|
|
1846
|
+
const {
|
|
1847
|
+
Axios: Xo,
|
|
1848
|
+
AxiosError: Go,
|
|
1849
|
+
CanceledError: Qo,
|
|
1850
|
+
isCancel: Yo,
|
|
1851
|
+
CancelToken: Zo,
|
|
1852
|
+
VERSION: ea,
|
|
1853
|
+
all: ta,
|
|
1854
|
+
Cancel: sa,
|
|
1855
|
+
isAxiosError: na,
|
|
1856
|
+
spread: ra,
|
|
1857
|
+
toFormData: oa,
|
|
1858
|
+
AxiosHeaders: aa,
|
|
1859
|
+
HttpStatusCode: ia,
|
|
1860
|
+
formToJSON: la,
|
|
1861
|
+
getAdapter: ca,
|
|
1862
|
+
mergeConfig: ua
|
|
1863
|
+
} = M, z = M.create({
|
|
1864
|
+
baseURL: localStorage.getItem("dynamicBaseURL"),
|
|
1865
|
+
headers: { "Content-Type": "application/json" },
|
|
1866
|
+
withCredentials: !0,
|
|
1867
|
+
// send cookies when cross-domain requests
|
|
1868
|
+
timeout: 6e5
|
|
1869
|
+
// service timeout
|
|
1870
|
+
});
|
|
1871
|
+
function Mr(e) {
|
|
1872
|
+
return `/metadata/driver/icon/${e}`;
|
|
12
1873
|
}
|
|
13
|
-
|
|
1874
|
+
function jr() {
|
|
1875
|
+
return z({
|
|
1876
|
+
url: "/metadata/search/getDataSourceTree",
|
|
1877
|
+
method: "post"
|
|
1878
|
+
});
|
|
1879
|
+
}
|
|
1880
|
+
function qr(e) {
|
|
1881
|
+
return z({
|
|
1882
|
+
url: `/metadata/datasource/testConnection/${e}`,
|
|
1883
|
+
method: "post"
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1886
|
+
function Vr(e) {
|
|
1887
|
+
return z({
|
|
1888
|
+
url: `/metadata/search/getDataSourceInfo/${e}`,
|
|
1889
|
+
method: "post"
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
function Hr(e) {
|
|
1893
|
+
return z({
|
|
1894
|
+
url: `/metadata/search/getDataSetInfo/${e}`,
|
|
1895
|
+
method: "post"
|
|
1896
|
+
});
|
|
1897
|
+
}
|
|
1898
|
+
function ot(e) {
|
|
1899
|
+
return z({
|
|
1900
|
+
url: "/metadata/dataSourceTree/addDataSourceToDir",
|
|
1901
|
+
method: "post",
|
|
1902
|
+
data: e
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
function zr(e) {
|
|
1906
|
+
return z({
|
|
1907
|
+
url: `/metadata/dataSourceTree/removeDataSourceTree/${e}`,
|
|
1908
|
+
method: "post"
|
|
1909
|
+
});
|
|
1910
|
+
}
|
|
1911
|
+
function Me(e) {
|
|
1912
|
+
return z({
|
|
1913
|
+
url: "/metadata/dataSourceTree/removeDataSourceFromDir",
|
|
1914
|
+
method: "post",
|
|
1915
|
+
data: e
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
function Jr(e) {
|
|
1919
|
+
return z({
|
|
1920
|
+
url: "/metadata/dataSourceTree/saveDataSourceTree",
|
|
1921
|
+
method: "post",
|
|
1922
|
+
data: e
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
function at(e) {
|
|
1926
|
+
return z({
|
|
1927
|
+
url: "/metadata/dataSourceTree/updateDataSourceTree",
|
|
1928
|
+
method: "post",
|
|
1929
|
+
data: e
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1932
|
+
function Wr(e) {
|
|
1933
|
+
return z({
|
|
1934
|
+
url: "/metadata/search/updateDataSourceInfo",
|
|
1935
|
+
method: "post",
|
|
1936
|
+
data: e
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
function Kr(e) {
|
|
1940
|
+
return z({
|
|
1941
|
+
url: "/metadata/search/updateDataSetInfo",
|
|
1942
|
+
method: "post",
|
|
1943
|
+
data: e
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
function Xr(e) {
|
|
1947
|
+
return z({
|
|
1948
|
+
url: `/metadata/search/deleteDataSourceInfo/${e}`,
|
|
1949
|
+
method: "post"
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
function Gr(e) {
|
|
1953
|
+
return z({
|
|
1954
|
+
url: `/metadata/search/deleteDataSetInfo/${e}`,
|
|
1955
|
+
method: "post"
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
function Qr(e) {
|
|
1959
|
+
return z({
|
|
1960
|
+
url: `/metadata/ingestion/executeDatasetSyncTask/${e}`,
|
|
1961
|
+
method: "get"
|
|
1962
|
+
});
|
|
1963
|
+
}
|
|
1964
|
+
function Yr(e) {
|
|
1965
|
+
return z({
|
|
1966
|
+
url: `/metadata/search/syncDataSetInfo/${e}`,
|
|
1967
|
+
method: "post"
|
|
1968
|
+
});
|
|
1969
|
+
}
|
|
1970
|
+
function Zr(e) {
|
|
1971
|
+
return z({
|
|
1972
|
+
url: `/metadata/dataset/statistic/${e}`,
|
|
1973
|
+
method: "get"
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
function eo() {
|
|
1977
|
+
return z({
|
|
1978
|
+
url: "/metadata/search/getDataSourceClassifyTree",
|
|
1979
|
+
method: "post"
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1982
|
+
function to(e) {
|
|
1983
|
+
return z({
|
|
1984
|
+
url: `/metadata/datasource/getCreateTableDdlByDatasetId/${e}`,
|
|
1985
|
+
method: "post"
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1988
|
+
const ze = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2018%2018'%20style='enable-background:new%200%200%2018%2018;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23999FAB;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M15,4.7h-4.6c-0.3,0-0.5-0.1-0.7-0.3L8.6,3.1C8.2,2.7,7.7,2.5,7.1,2.5H3c-1.1,0-2,0.9-2,2v9c0,1.1,0.9,2,2,2%20h12c1.1,0,2-0.9,2-2V6.7C17,5.6,16.1,4.7,15,4.7z%20M15.5,13.5c0,0.3-0.2,0.5-0.5,0.5H3c-0.3,0-0.5-0.2-0.5-0.5v-9C2.5,4.2,2.7,4,3,4%20h4.1c0.1,0,0.3,0.1,0.4,0.2l1.1,1.2c0.5,0.5,1.1,0.8,1.8,0.8H15c0.3,0,0.5,0.2,0.5,0.5V13.5z'/%3e%3cpath%20class='st0'%20d='M7.2,11H4.8C4.3,11,4,11.3,4,11.8s0.3,0.8,0.8,0.8h2.5c0.4,0,0.8-0.3,0.8-0.8S7.7,11,7.2,11z'/%3e%3c/g%3e%3c/svg%3e", Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1989
|
+
__proto__: null,
|
|
1990
|
+
default: ze
|
|
1991
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = {
|
|
1992
|
+
__name: "treeIcon",
|
|
1993
|
+
props: {
|
|
1994
|
+
typeName: {
|
|
1995
|
+
type: String,
|
|
1996
|
+
default: "default"
|
|
1997
|
+
},
|
|
1998
|
+
isDataSource: {
|
|
1999
|
+
type: Boolean,
|
|
2000
|
+
default: !1
|
|
2001
|
+
}
|
|
2002
|
+
},
|
|
2003
|
+
setup(e) {
|
|
2004
|
+
const t = e, s = P(null), n = async () => {
|
|
2005
|
+
if (await fe(), s.value)
|
|
2006
|
+
if (t.isDataSource)
|
|
2007
|
+
try {
|
|
2008
|
+
s.value.src = Mr(t.typeName);
|
|
2009
|
+
} catch {
|
|
2010
|
+
try {
|
|
2011
|
+
const a = await Ot(/* @__PURE__ */ Object.assign({ "../../../assets/images/treeIcons/COLLECTION.svg": () => import("./COLLECTION-CGr8r7D0.js"), "../../../assets/images/treeIcons/INDEX.svg": () => import("./INDEX-CWRlbxz6.js"), "../../../assets/images/treeIcons/NODE_LABEL.svg": () => import("./NODE_LABEL-BNtE9a8x.js"), "../../../assets/images/treeIcons/PACKAGE.svg": () => import("./PACKAGE-Cdqdazmm.js"), "../../../assets/images/treeIcons/PROCEDURE.svg": () => import("./PROCEDURE-BFKXCwJs.js"), "../../../assets/images/treeIcons/RELATIONSHIP_TYPE.svg": () => import("./RELATIONSHIP_TYPE-DH_Ql50v.js"), "../../../assets/images/treeIcons/TABLE.svg": () => import("./TABLE-C6D4BTNb.js"), "../../../assets/images/treeIcons/TOPIC.svg": () => import("./TOPIC-DDMJFl8M.js"), "../../../assets/images/treeIcons/VIEW.svg": () => import("./VIEW-Dy2H__0e.js"), "../../../assets/images/treeIcons/cassandra.svg": () => import("./cassandra-kZBMMRLi.js"), "../../../assets/images/treeIcons/clickhouse.svg": () => import("./clickhouse-wZad6bX_.js"), "../../../assets/images/treeIcons/cratedb.svg": () => import("./cratedb-Bp9DafHH.js"), "../../../assets/images/treeIcons/dameng.svg": () => import("./dameng-DDKENLSf.js"), "../../../assets/images/treeIcons/database.svg": () => import("./database-DorJeeaH.js"), "../../../assets/images/treeIcons/db2.svg": () => import("./db2-BQLq-8O9.js"), "../../../assets/images/treeIcons/default.svg": () => Promise.resolve().then(() => Jt), "../../../assets/images/treeIcons/dm.svg": () => import("./dm-DDKENLSf.js"), "../../../assets/images/treeIcons/doris.svg": () => import("./doris-sPgf3dKR.js"), "../../../assets/images/treeIcons/druid.svg": () => import("./druid-BCpjCk40.js"), "../../../assets/images/treeIcons/elasticsearch.svg": () => import("./elasticsearch-IjsXozrl.js"), "../../../assets/images/treeIcons/file.svg": () => import("./file-CYyJ85qD.js"), "../../../assets/images/treeIcons/filesystem.svg": () => import("./filesystem-CHNDPEkF.js"), "../../../assets/images/treeIcons/folder.svg": () => import("./folder-B_IZAYKT.js"), "../../../assets/images/treeIcons/folderClose.svg": () => import("./folderClose-Ci16QLsN.js"), "../../../assets/images/treeIcons/folderOpen.svg": () => import("./folderOpen-ClecyRH1.js"), "../../../assets/images/treeIcons/ftp.svg": () => import("./ftp-B1EMbJZ8.js"), "../../../assets/images/treeIcons/gbase.svg": () => import("./gbase-Cfbti4wa.js"), "../../../assets/images/treeIcons/greenplum.svg": () => import("./greenplum-C72qwgT6.js"), "../../../assets/images/treeIcons/hbase.svg": () => import("./hbase-DJlmFvuj.js"), "../../../assets/images/treeIcons/hdfs.svg": () => import("./hdfs-HbRnS4Ee.js"), "../../../assets/images/treeIcons/hive-metastore.svg": () => import("./hive-metastore-CFGs347R.js"), "../../../assets/images/treeIcons/hive.svg": () => import("./hive-CFGs347R.js"), "../../../assets/images/treeIcons/hudi.svg": () => import("./hudi-BXyzOfLV.js"), "../../../assets/images/treeIcons/iceberg.svg": () => import("./iceberg-BCCMLWKb.js"), "../../../assets/images/treeIcons/kafka.svg": () => import("./kafka-BQTmKvyf.js"), "../../../assets/images/treeIcons/kingbase.svg": () => import("./kingbase-CtbaKFzM.js"), "../../../assets/images/treeIcons/mariadb.svg": () => import("./mariadb-DUUVCuEd.js"), "../../../assets/images/treeIcons/milvus.svg": () => import("./milvus-B_EXXpE7.js"), "../../../assets/images/treeIcons/minio.svg": () => import("./minio-DrkEY6Lg.js"), "../../../assets/images/treeIcons/mission.svg": () => import("./mission-DP49naae.js"), "../../../assets/images/treeIcons/mongodb.svg": () => import("./mongodb-sCoR-0DO.js"), "../../../assets/images/treeIcons/mssql.svg": () => import("./mssql-CyLYBEca.js"), "../../../assets/images/treeIcons/mysql.svg": () => import("./mysql-B6gniQbL.js"), "../../../assets/images/treeIcons/neo4j.svg": () => import("./neo4j-fM-N6RPF.js"), "../../../assets/images/treeIcons/note.svg": () => import("./note-KSl8tOvD.js"), "../../../assets/images/treeIcons/oceanbase.svg": () => import("./oceanbase-CHQGzVAU.js"), "../../../assets/images/treeIcons/opensearch.svg": () => import("./opensearch-Bkb3qPjF.js"), "../../../assets/images/treeIcons/oracle.svg": () => import("./oracle-7N_bpyOE.js"), "../../../assets/images/treeIcons/paimon.svg": () => import("./paimon-ChRYie-E.js"), "../../../assets/images/treeIcons/postgres.svg": () => import("./postgres-CU2CHKIj.js"), "../../../assets/images/treeIcons/presto.svg": () => import("./presto-XCYrPD7W.js"), "../../../assets/images/treeIcons/report.svg": () => import("./report-zbtqy9nr.js"), "../../../assets/images/treeIcons/schema.svg": () => import("./schema-DHIGvfp2.js"), "../../../assets/images/treeIcons/snowflake.svg": () => import("./snowflake-Cy_FOrcV.js"), "../../../assets/images/treeIcons/sqlserver.svg": () => import("./sqlserver-CyLYBEca.js"), "../../../assets/images/treeIcons/starrocks.svg": () => import("./starrocks-BAeDPSaX.js"), "../../../assets/images/treeIcons/sybase.svg": () => import("./sybase-JxsUZBj2.js"), "../../../assets/images/treeIcons/tidb.svg": () => import("./tidb-CKZDxkdA.js"), "../../../assets/images/treeIcons/trino.svg": () => import("./trino-CTo8-zn8.js"), "../../../assets/images/treeIcons/全文检索.svg": () => import("./全文检索-CM_FkicR.js"), "../../../assets/images/treeIcons/关系型数据库.svg": () => import("./关系型数据库-CdxjM7fF.js"), "../../../assets/images/treeIcons/分析型数据库.svg": () => import("./分析型数据库-DCG17zXf.js"), "../../../assets/images/treeIcons/向量数据库.svg": () => import("./向量数据库-Sus8yO-o.js"), "../../../assets/images/treeIcons/图数据库.svg": () => import("./图数据库-m2gN34YV.js"), "../../../assets/images/treeIcons/数据湖.svg": () => import("./数据湖-DYPNBEro.js"), "../../../assets/images/treeIcons/文件系统.svg": () => import("./文件系统-BpeHJ8ur.js"), "../../../assets/images/treeIcons/文档数据库.svg": () => import("./文档数据库-CYyJ85qD.js"), "../../../assets/images/treeIcons/时序数据库.svg": () => import("./时序数据库-BKM1uC99.js"), "../../../assets/images/treeIcons/消息队列.svg": () => import("./消息队列-BZj1tfb_.js"), "../../../assets/images/treeIcons/非关系型(NoSQL)数据库.svg": () => import("./非关系型(NoSQL)数据库-Ciz5Z_Sa.js") }), `../../../assets/images/treeIcons/${t.typeName}.svg`, 7);
|
|
2012
|
+
s.value.src = a.default;
|
|
2013
|
+
} catch {
|
|
2014
|
+
console.log(`暂无该图标: ${t.typeName}`), s.value.src = ze;
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
else
|
|
2018
|
+
try {
|
|
2019
|
+
const r = await Ot(/* @__PURE__ */ Object.assign({ "../../../assets/images/treeIcons/COLLECTION.svg": () => import("./COLLECTION-CGr8r7D0.js"), "../../../assets/images/treeIcons/INDEX.svg": () => import("./INDEX-CWRlbxz6.js"), "../../../assets/images/treeIcons/NODE_LABEL.svg": () => import("./NODE_LABEL-BNtE9a8x.js"), "../../../assets/images/treeIcons/PACKAGE.svg": () => import("./PACKAGE-Cdqdazmm.js"), "../../../assets/images/treeIcons/PROCEDURE.svg": () => import("./PROCEDURE-BFKXCwJs.js"), "../../../assets/images/treeIcons/RELATIONSHIP_TYPE.svg": () => import("./RELATIONSHIP_TYPE-DH_Ql50v.js"), "../../../assets/images/treeIcons/TABLE.svg": () => import("./TABLE-C6D4BTNb.js"), "../../../assets/images/treeIcons/TOPIC.svg": () => import("./TOPIC-DDMJFl8M.js"), "../../../assets/images/treeIcons/VIEW.svg": () => import("./VIEW-Dy2H__0e.js"), "../../../assets/images/treeIcons/cassandra.svg": () => import("./cassandra-kZBMMRLi.js"), "../../../assets/images/treeIcons/clickhouse.svg": () => import("./clickhouse-wZad6bX_.js"), "../../../assets/images/treeIcons/cratedb.svg": () => import("./cratedb-Bp9DafHH.js"), "../../../assets/images/treeIcons/dameng.svg": () => import("./dameng-DDKENLSf.js"), "../../../assets/images/treeIcons/database.svg": () => import("./database-DorJeeaH.js"), "../../../assets/images/treeIcons/db2.svg": () => import("./db2-BQLq-8O9.js"), "../../../assets/images/treeIcons/default.svg": () => Promise.resolve().then(() => Jt), "../../../assets/images/treeIcons/dm.svg": () => import("./dm-DDKENLSf.js"), "../../../assets/images/treeIcons/doris.svg": () => import("./doris-sPgf3dKR.js"), "../../../assets/images/treeIcons/druid.svg": () => import("./druid-BCpjCk40.js"), "../../../assets/images/treeIcons/elasticsearch.svg": () => import("./elasticsearch-IjsXozrl.js"), "../../../assets/images/treeIcons/file.svg": () => import("./file-CYyJ85qD.js"), "../../../assets/images/treeIcons/filesystem.svg": () => import("./filesystem-CHNDPEkF.js"), "../../../assets/images/treeIcons/folder.svg": () => import("./folder-B_IZAYKT.js"), "../../../assets/images/treeIcons/folderClose.svg": () => import("./folderClose-Ci16QLsN.js"), "../../../assets/images/treeIcons/folderOpen.svg": () => import("./folderOpen-ClecyRH1.js"), "../../../assets/images/treeIcons/ftp.svg": () => import("./ftp-B1EMbJZ8.js"), "../../../assets/images/treeIcons/gbase.svg": () => import("./gbase-Cfbti4wa.js"), "../../../assets/images/treeIcons/greenplum.svg": () => import("./greenplum-C72qwgT6.js"), "../../../assets/images/treeIcons/hbase.svg": () => import("./hbase-DJlmFvuj.js"), "../../../assets/images/treeIcons/hdfs.svg": () => import("./hdfs-HbRnS4Ee.js"), "../../../assets/images/treeIcons/hive-metastore.svg": () => import("./hive-metastore-CFGs347R.js"), "../../../assets/images/treeIcons/hive.svg": () => import("./hive-CFGs347R.js"), "../../../assets/images/treeIcons/hudi.svg": () => import("./hudi-BXyzOfLV.js"), "../../../assets/images/treeIcons/iceberg.svg": () => import("./iceberg-BCCMLWKb.js"), "../../../assets/images/treeIcons/kafka.svg": () => import("./kafka-BQTmKvyf.js"), "../../../assets/images/treeIcons/kingbase.svg": () => import("./kingbase-CtbaKFzM.js"), "../../../assets/images/treeIcons/mariadb.svg": () => import("./mariadb-DUUVCuEd.js"), "../../../assets/images/treeIcons/milvus.svg": () => import("./milvus-B_EXXpE7.js"), "../../../assets/images/treeIcons/minio.svg": () => import("./minio-DrkEY6Lg.js"), "../../../assets/images/treeIcons/mission.svg": () => import("./mission-DP49naae.js"), "../../../assets/images/treeIcons/mongodb.svg": () => import("./mongodb-sCoR-0DO.js"), "../../../assets/images/treeIcons/mssql.svg": () => import("./mssql-CyLYBEca.js"), "../../../assets/images/treeIcons/mysql.svg": () => import("./mysql-B6gniQbL.js"), "../../../assets/images/treeIcons/neo4j.svg": () => import("./neo4j-fM-N6RPF.js"), "../../../assets/images/treeIcons/note.svg": () => import("./note-KSl8tOvD.js"), "../../../assets/images/treeIcons/oceanbase.svg": () => import("./oceanbase-CHQGzVAU.js"), "../../../assets/images/treeIcons/opensearch.svg": () => import("./opensearch-Bkb3qPjF.js"), "../../../assets/images/treeIcons/oracle.svg": () => import("./oracle-7N_bpyOE.js"), "../../../assets/images/treeIcons/paimon.svg": () => import("./paimon-ChRYie-E.js"), "../../../assets/images/treeIcons/postgres.svg": () => import("./postgres-CU2CHKIj.js"), "../../../assets/images/treeIcons/presto.svg": () => import("./presto-XCYrPD7W.js"), "../../../assets/images/treeIcons/report.svg": () => import("./report-zbtqy9nr.js"), "../../../assets/images/treeIcons/schema.svg": () => import("./schema-DHIGvfp2.js"), "../../../assets/images/treeIcons/snowflake.svg": () => import("./snowflake-Cy_FOrcV.js"), "../../../assets/images/treeIcons/sqlserver.svg": () => import("./sqlserver-CyLYBEca.js"), "../../../assets/images/treeIcons/starrocks.svg": () => import("./starrocks-BAeDPSaX.js"), "../../../assets/images/treeIcons/sybase.svg": () => import("./sybase-JxsUZBj2.js"), "../../../assets/images/treeIcons/tidb.svg": () => import("./tidb-CKZDxkdA.js"), "../../../assets/images/treeIcons/trino.svg": () => import("./trino-CTo8-zn8.js"), "../../../assets/images/treeIcons/全文检索.svg": () => import("./全文检索-CM_FkicR.js"), "../../../assets/images/treeIcons/关系型数据库.svg": () => import("./关系型数据库-CdxjM7fF.js"), "../../../assets/images/treeIcons/分析型数据库.svg": () => import("./分析型数据库-DCG17zXf.js"), "../../../assets/images/treeIcons/向量数据库.svg": () => import("./向量数据库-Sus8yO-o.js"), "../../../assets/images/treeIcons/图数据库.svg": () => import("./图数据库-m2gN34YV.js"), "../../../assets/images/treeIcons/数据湖.svg": () => import("./数据湖-DYPNBEro.js"), "../../../assets/images/treeIcons/文件系统.svg": () => import("./文件系统-BpeHJ8ur.js"), "../../../assets/images/treeIcons/文档数据库.svg": () => import("./文档数据库-CYyJ85qD.js"), "../../../assets/images/treeIcons/时序数据库.svg": () => import("./时序数据库-BKM1uC99.js"), "../../../assets/images/treeIcons/消息队列.svg": () => import("./消息队列-BZj1tfb_.js"), "../../../assets/images/treeIcons/非关系型(NoSQL)数据库.svg": () => import("./非关系型(NoSQL)数据库-Ciz5Z_Sa.js") }), `../../../assets/images/treeIcons/${t.typeName}.svg`, 7);
|
|
2020
|
+
s.value.src = r.default;
|
|
2021
|
+
} catch {
|
|
2022
|
+
console.log(`暂无该图标: ${t.typeName}`), s.value.src = ze;
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
2025
|
+
return Wt(() => t.typeName, () => {
|
|
2026
|
+
n();
|
|
2027
|
+
}), Gs(() => {
|
|
2028
|
+
n();
|
|
2029
|
+
}), (r, a) => (A(), $("img", {
|
|
2030
|
+
ref_key: "imgRef",
|
|
2031
|
+
ref: s
|
|
2032
|
+
}, null, 512));
|
|
2033
|
+
}
|
|
2034
|
+
}, so = (e, t) => {
|
|
2035
|
+
const s = e.__vccOpts || e;
|
|
2036
|
+
for (const [n, r] of t)
|
|
2037
|
+
s[n] = r;
|
|
2038
|
+
return s;
|
|
2039
|
+
}, no = { class: "active" }, ro = { style: { display: "flex", "justify-content": "space-between" } }, oo = { class: "plainButton dropdown-button" }, ao = {
|
|
2040
|
+
class: "filter-input-group",
|
|
2041
|
+
style: { "margin-bottom": "10px" }
|
|
2042
|
+
}, io = ["src"], lo = ["onClick"], co = ["onClick"], uo = { class: "tree-name" }, fo = ["onMouseenter"], mo = {
|
|
2043
|
+
key: 0,
|
|
2044
|
+
style: { width: "50%", textAlign: "right", color: "#AAAAAA", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }
|
|
2045
|
+
}, po = { key: 1 }, go = { key: 2 }, ho = {
|
|
2046
|
+
key: 0,
|
|
2047
|
+
class: "tree-btn"
|
|
2048
|
+
}, vo = {
|
|
2049
|
+
key: 0,
|
|
2050
|
+
class: "detail-info"
|
|
2051
|
+
}, yo = { class: "info-item" }, bo = { class: "value" }, wo = { class: "info-item" }, So = { class: "value" }, Io = { class: "info-item" }, Eo = { class: "value" }, To = { class: "info-item" }, _o = { class: "value" }, xo = { class: "info-item" }, Ro = { class: "value" }, Co = { class: "info-item" }, Oo = { class: "value" }, Ao = { class: "info-item" }, ko = { class: "value" }, Po = { class: "info-item" }, No = { class: "value" }, Bo = { class: "info-item" }, $o = { class: "value" }, Fo = { class: "info-item" }, Lo = { class: "value" }, Uo = {
|
|
2052
|
+
key: 1,
|
|
2053
|
+
class: "no-data"
|
|
2054
|
+
}, Do = {
|
|
2055
|
+
slot: "footer",
|
|
2056
|
+
class: "dialog-footer"
|
|
2057
|
+
}, Mo = {
|
|
2058
|
+
name: "dataSourceTree"
|
|
2059
|
+
}, jo = /* @__PURE__ */ Object.assign(Mo, {
|
|
2060
|
+
props: {
|
|
2061
|
+
dynamicBaseURL: {
|
|
2062
|
+
type: String,
|
|
2063
|
+
default: () => "https://10.47.75.41:30002"
|
|
2064
|
+
},
|
|
2065
|
+
getFilters: {
|
|
2066
|
+
type: Function,
|
|
2067
|
+
default() {
|
|
2068
|
+
return [];
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
setup(e) {
|
|
2073
|
+
const t = e;
|
|
2074
|
+
Wt(() => t.dynamicBaseURL, (l) => {
|
|
2075
|
+
l && localStorage.setItem("dynamicBaseURL", l);
|
|
2076
|
+
}, { immediate: !0 });
|
|
2077
|
+
const { proxy: s } = Qs(), n = P(null), r = P(!1), a = P("file"), i = P({
|
|
2078
|
+
fileTree: !1,
|
|
2079
|
+
typeTree: !1
|
|
2080
|
+
}), u = P(null), h = P([]), p = P([]), d = P([]), v = P(""), k = P([]), F = P(null), m = P("add"), E = P(!1), b = P("all"), D = Ys({
|
|
2081
|
+
children: "children",
|
|
2082
|
+
label: "label"
|
|
2083
|
+
}), L = P(null), N = P(null), O = P(null), H = P(null), se = P(""), j = P(null), le = P(!1), ce = P(!1), q = P(null), be = P(null), ie = P(!1), ne = P(["minio", "ftp", "sftp", "hdfs"]), K = P(""), Te = P(null), Z = () => {
|
|
2084
|
+
N.value && clearTimeout(N.value), O.value && clearTimeout(O.value), O.value = setTimeout(() => {
|
|
2085
|
+
ie.value || _e();
|
|
2086
|
+
}, 500);
|
|
2087
|
+
}, _e = () => {
|
|
2088
|
+
N.value && (clearTimeout(N.value), N.value = null), O.value && (clearTimeout(O.value), O.value = null), le.value = !1, H.value = null, j.value = null, q.value = null, ie.value = !1;
|
|
2089
|
+
}, re = (l) => !!(l.type === "folder" || l.level === 1 && !ne.value.includes(l.type) || l.level === 4 || l.level === 1 && ne.value.includes(l.type)), Fe = (l) => {
|
|
2090
|
+
const { action: o, data: f } = l;
|
|
2091
|
+
switch (o) {
|
|
2092
|
+
case "addDir":
|
|
2093
|
+
Et(f);
|
|
2094
|
+
break;
|
|
2095
|
+
case "editDir":
|
|
2096
|
+
Ye(f);
|
|
2097
|
+
break;
|
|
2098
|
+
case "deleteDir":
|
|
2099
|
+
oe(f);
|
|
2100
|
+
break;
|
|
2101
|
+
case "addDataSource":
|
|
2102
|
+
break;
|
|
2103
|
+
case "editDataSource":
|
|
2104
|
+
break;
|
|
2105
|
+
case "renameDataSource":
|
|
2106
|
+
ue(f);
|
|
2107
|
+
break;
|
|
2108
|
+
case "deleteDataSource":
|
|
2109
|
+
xe(f);
|
|
2110
|
+
break;
|
|
2111
|
+
case "addTableOrView":
|
|
2112
|
+
break;
|
|
2113
|
+
case "refreshDataSource":
|
|
2114
|
+
we(f);
|
|
2115
|
+
break;
|
|
2116
|
+
case "testConnection":
|
|
2117
|
+
Ze(f);
|
|
2118
|
+
break;
|
|
2119
|
+
case "viewDetail":
|
|
2120
|
+
Le(f);
|
|
2121
|
+
break;
|
|
2122
|
+
case "updateMetadata":
|
|
2123
|
+
vs(f);
|
|
2124
|
+
break;
|
|
2125
|
+
case "updateStatistics":
|
|
2126
|
+
ys(f);
|
|
2127
|
+
break;
|
|
2128
|
+
case "copyCreateTableSql":
|
|
2129
|
+
bs(f);
|
|
2130
|
+
break;
|
|
2131
|
+
case "renameDataset":
|
|
2132
|
+
ws(f);
|
|
2133
|
+
break;
|
|
2134
|
+
case "deleteDataset":
|
|
2135
|
+
Ss(f);
|
|
2136
|
+
break;
|
|
2137
|
+
case "addFileSet":
|
|
2138
|
+
Is(f);
|
|
2139
|
+
break;
|
|
2140
|
+
case "viewInfo":
|
|
2141
|
+
break;
|
|
2142
|
+
case "removeOut":
|
|
2143
|
+
Es(f.node);
|
|
2144
|
+
break;
|
|
2145
|
+
default:
|
|
2146
|
+
console.warn("未知的菜单操作:", o);
|
|
2147
|
+
}
|
|
2148
|
+
}, Ye = (l) => {
|
|
2149
|
+
F.value = l.pid, m.value = "edit", K.value = l.name, Te.value = l.id, E.value = !0;
|
|
2150
|
+
}, oe = (l) => {
|
|
2151
|
+
s.$confirm(`此操作将永久删除 ${l.name} 目录, 是否继续?`, "提示", {
|
|
2152
|
+
confirmButtonText: "确定",
|
|
2153
|
+
cancelButtonText: "取消",
|
|
2154
|
+
type: "warning"
|
|
2155
|
+
}).then(() => {
|
|
2156
|
+
zr(l.id).then((o) => {
|
|
2157
|
+
s.$message({
|
|
2158
|
+
type: "success",
|
|
2159
|
+
message: "删除成功!"
|
|
2160
|
+
}), V();
|
|
2161
|
+
});
|
|
2162
|
+
});
|
|
2163
|
+
}, ue = (l) => {
|
|
2164
|
+
s.$prompt("请输入新的数据源名称", "重命名数据源", {
|
|
2165
|
+
confirmButtonText: "确定",
|
|
2166
|
+
cancelButtonText: "取消",
|
|
2167
|
+
inputValue: l.name || l.label,
|
|
2168
|
+
inputValidator: (o) => !o || o.trim() === "" ? "数据源名称不能为空" : !0
|
|
2169
|
+
}).then(async ({ value: o }) => {
|
|
2170
|
+
(await Wr({ id: l.id, datasourceName: o })).code === 0 && (s.$message.success("操作成功"), V());
|
|
2171
|
+
}).catch(() => {
|
|
2172
|
+
});
|
|
2173
|
+
}, xe = (l) => {
|
|
2174
|
+
s.$confirm(
|
|
2175
|
+
`此操作将永久删除数据源 "${l.name || l.label}",是否继续?`,
|
|
2176
|
+
"提示",
|
|
2177
|
+
{
|
|
2178
|
+
confirmButtonText: "确定",
|
|
2179
|
+
cancelButtonText: "取消",
|
|
2180
|
+
type: "warning"
|
|
2181
|
+
}
|
|
2182
|
+
).then(async () => {
|
|
2183
|
+
(await Xr(l.id)).code === 0 && (s.$message.success("数据源删除成功"), V());
|
|
2184
|
+
}).catch(() => {
|
|
2185
|
+
});
|
|
2186
|
+
}, we = (l) => {
|
|
2187
|
+
s.$confirm(
|
|
2188
|
+
"确定要刷新数据源吗?这将重新加载数据源的所有元数据信息。",
|
|
2189
|
+
"提示",
|
|
2190
|
+
{
|
|
2191
|
+
confirmButtonText: "确定",
|
|
2192
|
+
cancelButtonText: "取消",
|
|
2193
|
+
type: "info"
|
|
2194
|
+
}
|
|
2195
|
+
).then(async () => {
|
|
2196
|
+
r.value = !0;
|
|
2197
|
+
const o = await Qr(l.id);
|
|
2198
|
+
r.value = !1, o.code === 0 && (s.$message.success("数据源刷新成功"), V(l));
|
|
2199
|
+
}).catch(() => {
|
|
2200
|
+
r.value = !1;
|
|
2201
|
+
});
|
|
2202
|
+
}, Le = (l) => {
|
|
2203
|
+
console.log("viewDetail", l);
|
|
2204
|
+
}, vs = (l) => {
|
|
2205
|
+
s.$confirm(
|
|
2206
|
+
"确定要更新元数据吗?这将重新获取数据集的元数据信息。",
|
|
2207
|
+
"提示",
|
|
2208
|
+
{
|
|
2209
|
+
confirmButtonText: "确定",
|
|
2210
|
+
cancelButtonText: "取消",
|
|
2211
|
+
type: "info"
|
|
2212
|
+
}
|
|
2213
|
+
).then(async () => {
|
|
2214
|
+
(await Yr(l.id)).code === 0 && s.$message.success("更新元数据成功");
|
|
2215
|
+
}).catch(() => {
|
|
2216
|
+
});
|
|
2217
|
+
}, ys = (l) => {
|
|
2218
|
+
s.$confirm(
|
|
2219
|
+
"确定要更新统计信息吗?这将重新计算数据集的统计信息。",
|
|
2220
|
+
"提示",
|
|
2221
|
+
{
|
|
2222
|
+
confirmButtonText: "确定",
|
|
2223
|
+
cancelButtonText: "取消",
|
|
2224
|
+
type: "info"
|
|
2225
|
+
}
|
|
2226
|
+
).then(async () => {
|
|
2227
|
+
(await Zr(l.id)).code === 0 && s.$message.success("更新统计信息成功");
|
|
2228
|
+
}).catch(() => {
|
|
2229
|
+
});
|
|
2230
|
+
}, bs = async (l) => {
|
|
2231
|
+
const o = tn.service({
|
|
2232
|
+
lock: !0,
|
|
2233
|
+
text: "正在获取建表语句...",
|
|
2234
|
+
spinner: "el-icon-loading",
|
|
2235
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
2236
|
+
});
|
|
2237
|
+
try {
|
|
2238
|
+
const f = await to(l.id);
|
|
2239
|
+
if (o.close(), f.code === 0 && f.data) {
|
|
2240
|
+
const w = document.createElement("textarea");
|
|
2241
|
+
w.value = f.data, w.style.position = "fixed", w.style.opacity = "0", document.body.appendChild(w), w.select();
|
|
2242
|
+
try {
|
|
2243
|
+
document.execCommand("copy") ? s.$message.success("建表语句已复制到剪贴板") : gt(f.data);
|
|
2244
|
+
} catch {
|
|
2245
|
+
gt(f.data);
|
|
2246
|
+
} finally {
|
|
2247
|
+
document.body.removeChild(w);
|
|
2248
|
+
}
|
|
2249
|
+
} else
|
|
2250
|
+
s.$message.error(f.message || "获取建表语句失败");
|
|
2251
|
+
} catch (f) {
|
|
2252
|
+
console.error("复制建表语句失败:", f), s.$message.error("复制建表语句失败: " + (f.message || "未知错误")), o.close();
|
|
2253
|
+
}
|
|
2254
|
+
}, gt = (l) => {
|
|
2255
|
+
navigator.clipboard.writeText(l).then(() => {
|
|
2256
|
+
s.$message.success("建表语句已复制到剪贴板");
|
|
2257
|
+
}).catch((o) => {
|
|
2258
|
+
console.error("复制失败:", o), s.$message.error("复制失败,请手动复制");
|
|
2259
|
+
});
|
|
2260
|
+
}, ws = (l) => {
|
|
2261
|
+
s.$prompt("请输入新的数据集中文名称", "重命名数据集", {
|
|
2262
|
+
confirmButtonText: "确定",
|
|
2263
|
+
cancelButtonText: "取消",
|
|
2264
|
+
inputValue: l.label || l.name,
|
|
2265
|
+
inputValidator: (o) => !o || o.trim() === "" ? "数据集名称不能为空" : !0
|
|
2266
|
+
}).then(async ({ value: o }) => {
|
|
2267
|
+
(await Kr({ id: l.id, description: o })).code === 0 && (s.$message.success("数据集重命名成功"), V());
|
|
2268
|
+
}).catch(() => {
|
|
2269
|
+
});
|
|
2270
|
+
}, Ss = (l) => {
|
|
2271
|
+
s.$confirm(
|
|
2272
|
+
`此操作将永久删除数据集 "${l.name || l.label}",是否继续?`,
|
|
2273
|
+
"提示",
|
|
2274
|
+
{
|
|
2275
|
+
confirmButtonText: "确定",
|
|
2276
|
+
cancelButtonText: "取消",
|
|
2277
|
+
type: "warning"
|
|
2278
|
+
}
|
|
2279
|
+
).then(async () => {
|
|
2280
|
+
(await Gr(l.id)).code === 0 && (s.$message.success("数据集删除成功"), V());
|
|
2281
|
+
}).catch(() => {
|
|
2282
|
+
});
|
|
2283
|
+
}, Is = (l) => {
|
|
2284
|
+
console.log("addFileSet", l);
|
|
2285
|
+
}, Es = (l) => {
|
|
2286
|
+
console.log("node-remove", l);
|
|
2287
|
+
const o = {
|
|
2288
|
+
id: l.parent.data.id,
|
|
2289
|
+
sourceId: l.data.id
|
|
2290
|
+
};
|
|
2291
|
+
s.$confirm(
|
|
2292
|
+
`是否将 ${l.data.name} 数据源移出自定义分类树?(可重新拖回)`,
|
|
2293
|
+
"提示",
|
|
2294
|
+
{
|
|
2295
|
+
confirmButtonText: "确定",
|
|
2296
|
+
cancelButtonText: "取消",
|
|
2297
|
+
type: "warning"
|
|
2298
|
+
}
|
|
2299
|
+
).then(() => {
|
|
2300
|
+
Me(o).then((f) => {
|
|
2301
|
+
f.code === 0 ? s.$message.success("移除成功") : s.$message.error("移除失败:" + f.message), V();
|
|
2302
|
+
});
|
|
2303
|
+
});
|
|
2304
|
+
}, Ts = () => {
|
|
2305
|
+
ie.value = !0, O.value && (clearTimeout(O.value), O.value = null);
|
|
2306
|
+
}, _s = () => {
|
|
2307
|
+
ie.value = !1, O.value = setTimeout(() => {
|
|
2308
|
+
_e();
|
|
2309
|
+
}, 300);
|
|
2310
|
+
}, xs = () => {
|
|
2311
|
+
if (K.value === "") {
|
|
2312
|
+
s.$message({
|
|
2313
|
+
type: "error",
|
|
2314
|
+
message: "目录名称不能为空,请填写目录名称!"
|
|
2315
|
+
});
|
|
2316
|
+
return;
|
|
2317
|
+
}
|
|
2318
|
+
if (m.value === "add") {
|
|
2319
|
+
const l = { name: K.value, parentId: F.value };
|
|
2320
|
+
Jr(l).then((o) => {
|
|
2321
|
+
o.code === 0 ? s.$message.success("新增成功") : s.$message.error("新增失败:" + o.message), V(), close();
|
|
2322
|
+
});
|
|
2323
|
+
} else if (m.value === "edit") {
|
|
2324
|
+
const l = { parentId: F.value, id: Te.value, name: K.value };
|
|
2325
|
+
at(l).then((o) => {
|
|
2326
|
+
o.code === 0 ? s.$message.success("修改成功") : s.$message.error("修改失败:" + o.message), V(), close();
|
|
2327
|
+
});
|
|
2328
|
+
}
|
|
2329
|
+
}, ht = (l) => {
|
|
2330
|
+
switch (l) {
|
|
2331
|
+
case "ACTIVE":
|
|
2332
|
+
return "state-normal";
|
|
2333
|
+
case "INACTIVE":
|
|
2334
|
+
return "state-error";
|
|
2335
|
+
case "UNKNOWN":
|
|
2336
|
+
return "state-disconnected";
|
|
2337
|
+
case "loading":
|
|
2338
|
+
case "connecting":
|
|
2339
|
+
return "state-loading";
|
|
2340
|
+
default:
|
|
2341
|
+
return "state-disconnected";
|
|
2342
|
+
}
|
|
2343
|
+
}, Ze = (l) => {
|
|
2344
|
+
l.state === "loading" || l.state === "connecting" || (l.state = "loading", Rs(l));
|
|
2345
|
+
}, Rs = async (l) => {
|
|
2346
|
+
try {
|
|
2347
|
+
const o = l.id || l.sourceId;
|
|
2348
|
+
if (!o) {
|
|
2349
|
+
s.$message.error("数据源ID不存在,无法进行连接测试"), l.state = "UNKNOWN";
|
|
2350
|
+
return;
|
|
2351
|
+
}
|
|
2352
|
+
s.$message.info("正在检测数据源连接...");
|
|
2353
|
+
const f = await qr(o);
|
|
2354
|
+
f.code === 0 && (l.state = f.data.state, l.stateMessage = f.data.state_message, f.data.state === "ACTIVE" ? s.$message.success("数据源连接成功") : f.data.state === "INACTIVE" ? s.$message.warning("数据源连接失败") : f.data.state === "UNKNOWN" && s.$message.warning("数据源连接状态未知"));
|
|
2355
|
+
} catch (o) {
|
|
2356
|
+
l.state = "INACTIVE", s.$message.error("数据源连接测试失败:" + (o.message || "网络异常")), console.error("数据源连接测试失败:", o);
|
|
2357
|
+
}
|
|
2358
|
+
}, Cs = (l) => l.level === 1 || l.level === 4, Os = (l, o) => {
|
|
2359
|
+
N.value && clearTimeout(N.value), O.value && (clearTimeout(O.value), O.value = null), N.value = setTimeout(() => {
|
|
2360
|
+
As(l, o);
|
|
2361
|
+
}, 300);
|
|
2362
|
+
}, As = async (l, o) => {
|
|
2363
|
+
try {
|
|
2364
|
+
O.value && (clearTimeout(O.value), O.value = null), H.value = o, se.value = o.level === 1 ? "数据源信息" : "数据集信息";
|
|
2365
|
+
const f = `popover-trigger-${o.key || o.id}`;
|
|
2366
|
+
if (j.value = document.querySelector(`[ref="${f}"]`) || document.querySelector(`.${f}`), !j.value)
|
|
2367
|
+
return;
|
|
2368
|
+
le.value = !0, ce.value = !0, q.value = null, ks();
|
|
2369
|
+
let w;
|
|
2370
|
+
if (o.level === 1) {
|
|
2371
|
+
const T = o.id || o.sourceId;
|
|
2372
|
+
w = await Vr(T);
|
|
2373
|
+
} else if (o.level === 4) {
|
|
2374
|
+
const T = o.id || o.urn;
|
|
2375
|
+
w = await Hr(T);
|
|
2376
|
+
}
|
|
2377
|
+
w && w.code === 0 ? q.value = w.data : q.value = null;
|
|
2378
|
+
} catch (f) {
|
|
2379
|
+
console.error("获取详情数据失败:", f), q.value = null;
|
|
2380
|
+
} finally {
|
|
2381
|
+
ce.value = !1;
|
|
2382
|
+
}
|
|
2383
|
+
}, ks = () => {
|
|
2384
|
+
le.value && j.value && be.value && fe(() => {
|
|
2385
|
+
const l = j.value.getBoundingClientRect(), o = be.value.$el;
|
|
2386
|
+
o && (o.style.position = "fixed", o.style.left = `${l.right + 10}px`, o.style.top = `${l.top}px`, o.style.zIndex = "2000");
|
|
2387
|
+
});
|
|
2388
|
+
}, Ps = (l, o, f) => {
|
|
2389
|
+
if (!l) return !0;
|
|
2390
|
+
const w = (U, S) => (U || "").indexOf(S) !== -1, T = (U) => {
|
|
2391
|
+
const S = U && (U.name || U.label) || "";
|
|
2392
|
+
switch (b.value) {
|
|
2393
|
+
case "all":
|
|
2394
|
+
return w(S, l);
|
|
2395
|
+
case "dataSource":
|
|
2396
|
+
return U && U.level === 1 && w(S, l);
|
|
2397
|
+
case "schemaName":
|
|
2398
|
+
return U && U.level === 2 && w(S, l);
|
|
2399
|
+
case "dataSet":
|
|
2400
|
+
return U && U.level === 4 && w(S, l);
|
|
2401
|
+
default:
|
|
2402
|
+
return w(S, l);
|
|
2403
|
+
}
|
|
2404
|
+
};
|
|
2405
|
+
if (T(o)) return !0;
|
|
2406
|
+
let R = f && f.parent;
|
|
2407
|
+
for (; R && R.data; ) {
|
|
2408
|
+
if (T(R.data)) return !0;
|
|
2409
|
+
R = R.parent;
|
|
2410
|
+
}
|
|
2411
|
+
return !1;
|
|
2412
|
+
}, Ns = (l) => {
|
|
2413
|
+
if (l.data.type && l.data.type !== "folder") {
|
|
2414
|
+
const o = {
|
|
2415
|
+
data: l.data,
|
|
2416
|
+
parent: l.parent.data.id
|
|
2417
|
+
};
|
|
2418
|
+
return L.value = JSON.parse(JSON.stringify(o)), !0;
|
|
2419
|
+
} else
|
|
2420
|
+
return !1;
|
|
2421
|
+
}, Bs = (l, o, f) => o.data.type === "folder" && f === "inner" ? !0 : o.data.type !== "folder" && f === "inner" || o.data.type === "folder" && L.value.parent === o.parent.data.id ? !1 : o.level > 1 && o.data.type, $s = (l, o, f) => {
|
|
2422
|
+
const w = {
|
|
2423
|
+
id: o.data.id,
|
|
2424
|
+
sourceId: l.data.id || l.data.sourceId
|
|
2425
|
+
};
|
|
2426
|
+
if (console.log("---params", l, o), f === "inner")
|
|
2427
|
+
ot(w).then((T) => {
|
|
2428
|
+
T.code === 0 && (L.value.parent ? Me({
|
|
2429
|
+
id: L.value.parent,
|
|
2430
|
+
sourceId: l.data.id || l.data.sourceId
|
|
2431
|
+
}).then((R) => {
|
|
2432
|
+
R.code === 0 && (s.$message.success("移动成功"), V());
|
|
2433
|
+
}) : (s.$message.success("移动成功"), V()));
|
|
2434
|
+
});
|
|
2435
|
+
else if (o.data.type === "folder") {
|
|
2436
|
+
if (w.id = o.parent.data.id, console.log("文件夹前后", w), L.value.parent === o.parent.data.id) {
|
|
2437
|
+
V();
|
|
2438
|
+
return;
|
|
2439
|
+
}
|
|
2440
|
+
ot(w).then((T) => {
|
|
2441
|
+
T.code === 0 && (L.value.parent ? Me({
|
|
2442
|
+
id: L.value.parent,
|
|
2443
|
+
sourceId: l.data.id || l.data.sourceId
|
|
2444
|
+
}).then((R) => {
|
|
2445
|
+
R.code === 0 && (s.$message.success("移动成功"), V());
|
|
2446
|
+
}) : (s.$message.success("移动成功"), V()));
|
|
2447
|
+
});
|
|
2448
|
+
} else if (L.value.parent === o.parent.data.id) {
|
|
2449
|
+
const T = o.parent.childNodes.map((S) => S.data.urn).filter((S) => S !== l.data.urn), R = T.indexOf(o.data.urn);
|
|
2450
|
+
f === "before" ? T.splice(R, 0, l.data.urn) : T.splice(R + 1, 0, l.data.urn);
|
|
2451
|
+
const U = {
|
|
2452
|
+
sourceId: T.join(","),
|
|
2453
|
+
id: o.parent.data.id
|
|
2454
|
+
};
|
|
2455
|
+
console.log("par", U), at(U).then((S) => {
|
|
2456
|
+
S.code === 0 ? s.$message.success("修改成功") : s.$message.error("修改失败:" + S.message), V();
|
|
2457
|
+
});
|
|
2458
|
+
} else {
|
|
2459
|
+
const T = {
|
|
2460
|
+
id: o.parent.data.id,
|
|
2461
|
+
sourceId: l.data.id || l.data.sourceId
|
|
2462
|
+
};
|
|
2463
|
+
ot(T).then((R) => {
|
|
2464
|
+
R.code === 0 ? Me({
|
|
2465
|
+
id: L.value.parent,
|
|
2466
|
+
sourceId: l.data.id || l.data.sourceId
|
|
2467
|
+
}).then((U) => {
|
|
2468
|
+
if (U.code === 0) {
|
|
2469
|
+
const S = o.parent.childNodes.map((ee) => ee.data.urn).filter((ee) => ee !== l.data.urn), me = S.indexOf(o.data.urn);
|
|
2470
|
+
f === "before" ? S.splice(me, 0, l.data.urn) : S.splice(me + 1, 0, l.data.urn);
|
|
2471
|
+
const Se = {
|
|
2472
|
+
sourceId: S.join(","),
|
|
2473
|
+
id: o.parent.data.id
|
|
2474
|
+
};
|
|
2475
|
+
console.log("par", Se), at(Se).then((ee) => {
|
|
2476
|
+
ee.code === 0 ? s.$message.success("移动成功") : s.$message.error("移动失败:" + ee.message), V();
|
|
2477
|
+
});
|
|
2478
|
+
} else
|
|
2479
|
+
s.$message.error("移动失败:" + U.message), V();
|
|
2480
|
+
}) : (s.$message.success("移动失败"), V());
|
|
2481
|
+
});
|
|
2482
|
+
}
|
|
2483
|
+
}, Fs = (l, o) => {
|
|
2484
|
+
console.log("nodeClick", o, l), !(l.type === "folder" || l.level === -1 || l.level === 0) && t.getFilters(l);
|
|
2485
|
+
}, Ls = ({ paneName: l }) => {
|
|
2486
|
+
a.value = l, Tt(l);
|
|
2487
|
+
}, vt = (l) => {
|
|
2488
|
+
l === 0 ? i.value.fileTree ? (d.value = p.value, yt()) : wt() : l === 1 && (i.value.typeTree ? (d.value = k.value, yt()) : bt());
|
|
2489
|
+
}, yt = () => {
|
|
2490
|
+
fe(() => {
|
|
2491
|
+
(!v.value || v.value.trim() === "") && Re();
|
|
2492
|
+
});
|
|
2493
|
+
}, bt = (l) => {
|
|
2494
|
+
r.value = !0, eo().then((o) => {
|
|
2495
|
+
if (o.code === 0) {
|
|
2496
|
+
const f = o.data.data || [];
|
|
2497
|
+
f.forEach((T) => {
|
|
2498
|
+
T.key = T.id || T.urn, T.type && T.type !== "folder" && (T.state || (T.state = "disconnected"));
|
|
2499
|
+
}), k.value = f, d.value = f, i.value.typeTree = !0, r.value = !1;
|
|
2500
|
+
let w = [];
|
|
2501
|
+
l && l.parentId && (w = St(f, l.parentId), w && w.length > 0 && w.push(l.id)), h.value = w && w.length > 0 ? w : [], fe(() => {
|
|
2502
|
+
(!v.value || v.value.trim() === "") && Re();
|
|
2503
|
+
});
|
|
2504
|
+
} else
|
|
2505
|
+
s.$message.error("加载类型分类数据失败:" + (o.message || "未知错误")), r.value = !1;
|
|
2506
|
+
}).catch((o) => {
|
|
2507
|
+
console.error("加载类型分类数据失败:", o), s.$message.error("加载类型分类数据失败,请稍后重试"), r.value = !1;
|
|
2508
|
+
});
|
|
2509
|
+
}, wt = (l) => {
|
|
2510
|
+
r.value = !0, jr().then((o) => {
|
|
2511
|
+
if (o.code === 0) {
|
|
2512
|
+
const f = o.data.data.sort((T, R) => T.type === "folder" && R.type !== "folder" ? -1 : R.type === "folder" && T.type !== "folder" ? 1 : 0);
|
|
2513
|
+
f.forEach((T) => {
|
|
2514
|
+
T.key = T.id || T.urn, T.type && T.type !== "folder" && (T.state || (T.state = "disconnected"));
|
|
2515
|
+
}), u.value = f.filter((T) => T.type === "folder")[0];
|
|
2516
|
+
let w = [];
|
|
2517
|
+
l && l.parentId ? (w = St(f, l.parentId), w && w.length > 0 && w.push(l.id)) : l && l.id && w.push(l.id), h.value = w && w.length > 0 ? w : u.value ? [u.value.key] : [], p.value = f, d.value = f, i.value.fileTree = !0, r.value = !1, fe(() => {
|
|
2518
|
+
(!v.value || v.value.trim() === "") && Re();
|
|
2519
|
+
});
|
|
2520
|
+
} else
|
|
2521
|
+
s.$message.error("加载文件分类数据失败:" + (o.message || "未知错误")), r.value = !1;
|
|
2522
|
+
}).catch((o) => {
|
|
2523
|
+
console.error("加载文件分类数据失败:", o), s.$message.error("加载文件分类数据失败,请稍后重试"), r.value = !1;
|
|
2524
|
+
});
|
|
2525
|
+
}, St = (l, o) => {
|
|
2526
|
+
const f = [];
|
|
2527
|
+
return !l || l[0].level > 1 ? f : (l.some((w, T) => {
|
|
2528
|
+
if (w.id === o)
|
|
2529
|
+
return f.push(w.id), !0;
|
|
2530
|
+
if (w.children && w.children.length > 0) {
|
|
2531
|
+
let R = et(w, o);
|
|
2532
|
+
if (R && R.length > 0)
|
|
2533
|
+
for (f.push(R); !R || R.length < 1; )
|
|
2534
|
+
R = et(w, R), R && R.length > 0 && f.push(R);
|
|
2535
|
+
if (f.length > 0)
|
|
2536
|
+
return f.push(o), !0;
|
|
2537
|
+
}
|
|
2538
|
+
}), f.reverse());
|
|
2539
|
+
}, et = (l, o) => {
|
|
2540
|
+
let f = "";
|
|
2541
|
+
return !l.children || l.children.length < 1 || l.children[0].level > 1 || l.children.some((w, T) => {
|
|
2542
|
+
if (w.id === o)
|
|
2543
|
+
return f = l.id, !0;
|
|
2544
|
+
if (w.children && w.children.length > 0) {
|
|
2545
|
+
if (w.children[0].level > 1)
|
|
2546
|
+
return !0;
|
|
2547
|
+
if (f = et(w, o), f && f.length > 0)
|
|
2548
|
+
return !0;
|
|
2549
|
+
}
|
|
2550
|
+
}), f;
|
|
2551
|
+
}, Re = () => {
|
|
2552
|
+
if (n.value) {
|
|
2553
|
+
const l = (f) => {
|
|
2554
|
+
f && f.length > 0 && f.forEach((w) => {
|
|
2555
|
+
w.expanded = !1, w.childNodes && w.childNodes.length > 0 && l(w.childNodes);
|
|
2556
|
+
});
|
|
2557
|
+
}, o = n.value.store._getAllNodes();
|
|
2558
|
+
l(o), fe(() => {
|
|
2559
|
+
h.value.forEach((f, w) => {
|
|
2560
|
+
const T = n.value.getNode(f);
|
|
2561
|
+
T && (T.expanded = !0), o.forEach((R, U) => {
|
|
2562
|
+
if (R.data.id === f) {
|
|
2563
|
+
R.expanded = !0;
|
|
2564
|
+
const S = [];
|
|
2565
|
+
h.value.forEach((me, Se) => S.push(me)), S.splice(w, 1), It(S, R.childNodes);
|
|
2566
|
+
}
|
|
2567
|
+
});
|
|
2568
|
+
});
|
|
2569
|
+
});
|
|
2570
|
+
}
|
|
2571
|
+
}, It = (l, o) => {
|
|
2572
|
+
l.some((f, w) => {
|
|
2573
|
+
let T = !1;
|
|
2574
|
+
if (o && o.length > 0 && o.some((R, U) => {
|
|
2575
|
+
if (f === R.data.id) {
|
|
2576
|
+
R.expanded = !0, T = !0;
|
|
2577
|
+
const S = l;
|
|
2578
|
+
if (S.splice(w, 1), S.length > 0)
|
|
2579
|
+
return It(S, R.childNodes), !0;
|
|
2580
|
+
}
|
|
2581
|
+
}), T)
|
|
2582
|
+
return !0;
|
|
2583
|
+
});
|
|
2584
|
+
}, V = (l) => {
|
|
2585
|
+
a.value === "file" ? (i.value.fileTree = !1, wt(l)) : a.value === "type" && (i.value.typeTree = !1, bt(l));
|
|
2586
|
+
}, Us = () => {
|
|
2587
|
+
s.$message.info("正在刷新数据..."), V();
|
|
2588
|
+
}, Ds = (l) => {
|
|
2589
|
+
l === "addDir" ? Et() : l === "addDataSource" && Ms();
|
|
2590
|
+
}, Et = (l) => {
|
|
2591
|
+
l ? F.value = l.id || null : F.value = null, m.value = "add", E.value = !0;
|
|
2592
|
+
}, Ms = () => {
|
|
2593
|
+
console.log("addDataSource");
|
|
2594
|
+
}, js = () => {
|
|
2595
|
+
if (v.value = "", n.value)
|
|
2596
|
+
try {
|
|
2597
|
+
n.value.filter("");
|
|
2598
|
+
} catch {
|
|
2599
|
+
}
|
|
2600
|
+
fe(() => {
|
|
2601
|
+
Re();
|
|
2602
|
+
});
|
|
2603
|
+
}, qs = (l) => {
|
|
2604
|
+
b.value = l, n.value.filter(v.value);
|
|
2605
|
+
}, Vs = () => {
|
|
2606
|
+
const l = (v.value || "").trim();
|
|
2607
|
+
if (n.value)
|
|
2608
|
+
try {
|
|
2609
|
+
n.value.filter(l);
|
|
2610
|
+
} catch (o) {
|
|
2611
|
+
console.warn("triggerFilter: tree.filter 调用失败", o);
|
|
2612
|
+
}
|
|
2613
|
+
l || fe(() => {
|
|
2614
|
+
Re();
|
|
2615
|
+
});
|
|
2616
|
+
}, Tt = (l) => {
|
|
2617
|
+
l === "file" ? vt(0) : l === "type" && vt(1);
|
|
2618
|
+
};
|
|
2619
|
+
return Tt("file"), (l, o) => {
|
|
2620
|
+
const f = J("el-tab-pane"), w = J("el-tabs"), T = J("el-button"), R = J("el-tooltip"), U = J("el-icon"), S = J("el-dropdown-item"), me = J("el-dropdown-menu"), Se = J("el-dropdown"), ee = J("el-option"), Hs = J("el-select"), _t = J("el-input"), zs = J("el-tree"), Js = J("el-popover"), Ws = J("el-form-item"), Ks = J("el-form"), Xs = J("el-dialog"), xt = Zs("loading");
|
|
2621
|
+
return Ct((A(), $("div", no, [
|
|
2622
|
+
g("div", ro, [
|
|
2623
|
+
I(w, {
|
|
2624
|
+
modelValue: C(a),
|
|
2625
|
+
"onUpdate:modelValue": o[0] || (o[0] = (Y) => Ce(a) ? a.value = Y : null),
|
|
2626
|
+
class: "custom-tabs",
|
|
2627
|
+
onTabClick: Ls
|
|
2628
|
+
}, {
|
|
2629
|
+
default: x(() => [
|
|
2630
|
+
I(f, {
|
|
2631
|
+
label: "默认分类",
|
|
2632
|
+
name: "file"
|
|
2633
|
+
}),
|
|
2634
|
+
I(f, {
|
|
2635
|
+
label: "按类型分类",
|
|
2636
|
+
name: "type"
|
|
2637
|
+
})
|
|
2638
|
+
]),
|
|
2639
|
+
_: 1
|
|
2640
|
+
}, 8, ["modelValue"]),
|
|
2641
|
+
g("div", null, [
|
|
2642
|
+
g("span", null, [
|
|
2643
|
+
I(R, {
|
|
2644
|
+
content: "刷新数据",
|
|
2645
|
+
placement: "top"
|
|
2646
|
+
}, {
|
|
2647
|
+
default: x(() => [
|
|
2648
|
+
I(T, {
|
|
2649
|
+
link: "",
|
|
2650
|
+
icon: C(ln),
|
|
2651
|
+
size: "small",
|
|
2652
|
+
class: "refresh-btn",
|
|
2653
|
+
onClick: Us
|
|
2654
|
+
}, null, 8, ["icon"])
|
|
2655
|
+
]),
|
|
2656
|
+
_: 1
|
|
2657
|
+
})
|
|
2658
|
+
]),
|
|
2659
|
+
I(Se, {
|
|
2660
|
+
class: "treeAdd",
|
|
2661
|
+
trigger: "click",
|
|
2662
|
+
placement: "bottom-end",
|
|
2663
|
+
onCommand: Ds
|
|
2664
|
+
}, {
|
|
2665
|
+
dropdown: x(() => [
|
|
2666
|
+
I(me, { class: "custom-dropdown-menu" }, {
|
|
2667
|
+
default: x(() => [
|
|
2668
|
+
I(S, {
|
|
2669
|
+
command: "addDir",
|
|
2670
|
+
class: "dropdown-item"
|
|
2671
|
+
}, {
|
|
2672
|
+
default: x(() => [
|
|
2673
|
+
I(U, { style: { "margin-right": "5px" } }, {
|
|
2674
|
+
default: x(() => [
|
|
2675
|
+
I(C(nn))
|
|
2676
|
+
]),
|
|
2677
|
+
_: 1
|
|
2678
|
+
}),
|
|
2679
|
+
o[7] || (o[7] = B(" 新建文件夹 ", -1))
|
|
2680
|
+
]),
|
|
2681
|
+
_: 1
|
|
2682
|
+
}),
|
|
2683
|
+
I(S, {
|
|
2684
|
+
command: "addDataSource",
|
|
2685
|
+
class: "dropdown-item"
|
|
2686
|
+
}, {
|
|
2687
|
+
default: x(() => [...o[8] || (o[8] = [
|
|
2688
|
+
g("i", {
|
|
2689
|
+
class: "el-icon-circle-plus-outline",
|
|
2690
|
+
style: { "margin-right": "5px" }
|
|
2691
|
+
}, null, -1),
|
|
2692
|
+
B(" 添加数据源 ", -1)
|
|
2693
|
+
])]),
|
|
2694
|
+
_: 1
|
|
2695
|
+
})
|
|
2696
|
+
]),
|
|
2697
|
+
_: 1
|
|
2698
|
+
})
|
|
2699
|
+
]),
|
|
2700
|
+
default: x(() => [
|
|
2701
|
+
g("span", oo, [
|
|
2702
|
+
I(U, null, {
|
|
2703
|
+
default: x(() => [
|
|
2704
|
+
I(C(on))
|
|
2705
|
+
]),
|
|
2706
|
+
_: 1
|
|
2707
|
+
}),
|
|
2708
|
+
o[6] || (o[6] = g("span", { class: "dropdown-corner" }, null, -1))
|
|
2709
|
+
])
|
|
2710
|
+
]),
|
|
2711
|
+
_: 1
|
|
2712
|
+
})
|
|
2713
|
+
])
|
|
2714
|
+
]),
|
|
2715
|
+
g("div", ao, [
|
|
2716
|
+
I(Hs, {
|
|
2717
|
+
modelValue: C(b),
|
|
2718
|
+
"onUpdate:modelValue": o[1] || (o[1] = (Y) => Ce(b) ? b.value = Y : null),
|
|
2719
|
+
class: "customselect",
|
|
2720
|
+
placeholder: "请选择",
|
|
2721
|
+
onChange: qs
|
|
2722
|
+
}, {
|
|
2723
|
+
default: x(() => [
|
|
2724
|
+
I(ee, {
|
|
2725
|
+
label: "全部",
|
|
2726
|
+
value: "all"
|
|
2727
|
+
}),
|
|
2728
|
+
I(ee, {
|
|
2729
|
+
label: "数据源",
|
|
2730
|
+
value: "dataSource"
|
|
2731
|
+
}),
|
|
2732
|
+
I(ee, {
|
|
2733
|
+
label: "模式名",
|
|
2734
|
+
value: "schemaName"
|
|
2735
|
+
}),
|
|
2736
|
+
I(ee, {
|
|
2737
|
+
label: "数据集",
|
|
2738
|
+
value: "dataSet"
|
|
2739
|
+
})
|
|
2740
|
+
]),
|
|
2741
|
+
_: 1
|
|
2742
|
+
}, 8, ["modelValue"]),
|
|
2743
|
+
I(_t, {
|
|
2744
|
+
modelValue: C(v),
|
|
2745
|
+
"onUpdate:modelValue": o[2] || (o[2] = (Y) => Ce(v) ? v.value = Y : null),
|
|
2746
|
+
class: "custominput",
|
|
2747
|
+
clearable: "",
|
|
2748
|
+
placeholder: "输入检索内容",
|
|
2749
|
+
onClear: js
|
|
2750
|
+
}, {
|
|
2751
|
+
append: x(() => [
|
|
2752
|
+
I(T, {
|
|
2753
|
+
icon: C(un),
|
|
2754
|
+
onClick: Vs
|
|
2755
|
+
}, null, 8, ["icon"])
|
|
2756
|
+
]),
|
|
2757
|
+
_: 1
|
|
2758
|
+
}, 8, ["modelValue"])
|
|
2759
|
+
]),
|
|
2760
|
+
C(r) ? ge("", !0) : (A(), de(zs, {
|
|
2761
|
+
key: 0,
|
|
2762
|
+
ref_key: "treeRef",
|
|
2763
|
+
ref: n,
|
|
2764
|
+
class: "filter-tree",
|
|
2765
|
+
data: C(d),
|
|
2766
|
+
props: C(D),
|
|
2767
|
+
"filter-node-method": Ps,
|
|
2768
|
+
"expand-on-click-node": !1,
|
|
2769
|
+
draggable: "",
|
|
2770
|
+
"node-key": "key",
|
|
2771
|
+
"default-expanded-keys": [...C(h)],
|
|
2772
|
+
"allow-drag": Ns,
|
|
2773
|
+
"allow-drop": Bs,
|
|
2774
|
+
onNodeDrop: $s,
|
|
2775
|
+
onNodeClick: Fs
|
|
2776
|
+
}, {
|
|
2777
|
+
default: x(({ node: Y, data: y }) => [
|
|
2778
|
+
g("div", {
|
|
2779
|
+
class: Ue(["treeNodeIcon", { outNode: y.level === 1 && y.type !== "folder" }])
|
|
2780
|
+
}, [
|
|
2781
|
+
g("div", {
|
|
2782
|
+
class: Ue(["treeIcon", { "has-state": y.level === 1 && y.type !== "folder" }])
|
|
2783
|
+
}, [
|
|
2784
|
+
y.type === "folder" || y.level === 0 ? (A(), de(Ae, {
|
|
2785
|
+
key: 0,
|
|
2786
|
+
"type-name": Y.expanded ? "folderOpen" : "folderClose"
|
|
2787
|
+
}, null, 8, ["type-name"])) : y.level === -1 ? (A(), de(Ae, {
|
|
2788
|
+
key: 1,
|
|
2789
|
+
"type-name": y.name
|
|
2790
|
+
}, null, 8, ["type-name"])) : y.level === 1 ? (A(), de(Ae, {
|
|
2791
|
+
key: 2,
|
|
2792
|
+
"type-name": y.type,
|
|
2793
|
+
"is-data-source": !0
|
|
2794
|
+
}, null, 8, ["type-name"])) : y.level === 3 ? (A(), de(Ae, {
|
|
2795
|
+
key: 3,
|
|
2796
|
+
"type-name": Y.expanded ? "folderOpen" : "folderClose"
|
|
2797
|
+
}, null, 8, ["type-name"])) : y.type ? (A(), de(Ae, {
|
|
2798
|
+
key: 4,
|
|
2799
|
+
"type-name": y.type
|
|
2800
|
+
}, null, 8, ["type-name"])) : (A(), $("img", {
|
|
2801
|
+
key: 5,
|
|
2802
|
+
src: C(ze),
|
|
2803
|
+
style: { transform: "translateY(.5px)" },
|
|
2804
|
+
alt: ""
|
|
2805
|
+
}, null, 8, io)),
|
|
2806
|
+
y.level === 1 && y.type !== "folder" ? (A(), $(pe, { key: 6 }, [
|
|
2807
|
+
y.stateMessage ? (A(), de(R, {
|
|
2808
|
+
key: 0,
|
|
2809
|
+
content: y.stateMessage,
|
|
2810
|
+
placement: "top",
|
|
2811
|
+
effect: "light",
|
|
2812
|
+
"open-delay": "500"
|
|
2813
|
+
}, {
|
|
2814
|
+
default: x(() => [
|
|
2815
|
+
g("div", {
|
|
2816
|
+
class: Ue(["state-dot", ht(y.state)]),
|
|
2817
|
+
onClick: tt((Rt) => Ze(y), ["stop"])
|
|
2818
|
+
}, null, 10, lo)
|
|
2819
|
+
]),
|
|
2820
|
+
_: 2
|
|
2821
|
+
}, 1032, ["content"])) : (A(), $("div", {
|
|
2822
|
+
key: 1,
|
|
2823
|
+
class: Ue(["state-dot", ht(y.state)]),
|
|
2824
|
+
onClick: tt((Rt) => Ze(y), ["stop"])
|
|
2825
|
+
}, null, 10, co))
|
|
2826
|
+
], 64)) : ge("", !0)
|
|
2827
|
+
], 2),
|
|
2828
|
+
g("div", uo, [
|
|
2829
|
+
Cs(y) ? (A(), $("div", {
|
|
2830
|
+
key: 0,
|
|
2831
|
+
ref: `popover-trigger-${y.key || y.id}`,
|
|
2832
|
+
class: "popover-trigger",
|
|
2833
|
+
style: { display: "flex", "justify-content": "space-between" },
|
|
2834
|
+
onMouseenter: (Rt) => Os(Y, y),
|
|
2835
|
+
onMouseleave: Z
|
|
2836
|
+
}, [
|
|
2837
|
+
g("span", {
|
|
2838
|
+
style: en({ width: y.level === 4 ? "50%" : "100%", textAlign: "left", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" })
|
|
2839
|
+
}, X(y.name || y.label), 5),
|
|
2840
|
+
y.level === 4 ? (A(), $("span", mo, X(y.label || "--"), 1)) : ge("", !0)
|
|
2841
|
+
], 40, fo)) : y.level === 3 ? (A(), $("span", po, X(y.label || y.name), 1)) : (A(), $("span", go, X(y.name || y.label), 1))
|
|
2842
|
+
]),
|
|
2843
|
+
re(y) ? (A(), $("div", ho, [
|
|
2844
|
+
I(Se, {
|
|
2845
|
+
trigger: "click",
|
|
2846
|
+
placement: "bottom-start",
|
|
2847
|
+
onCommand: Fe
|
|
2848
|
+
}, {
|
|
2849
|
+
default: x(() => [
|
|
2850
|
+
g("span", {
|
|
2851
|
+
class: "tree-more-btn",
|
|
2852
|
+
onClick: o[3] || (o[3] = tt(() => {
|
|
2853
|
+
}, ["stop"]))
|
|
2854
|
+
}, [...o[9] || (o[9] = [
|
|
2855
|
+
g("i", { class: "el-icon-more" }, null, -1)
|
|
2856
|
+
])]),
|
|
2857
|
+
I(me, {
|
|
2858
|
+
slot: "dropdown",
|
|
2859
|
+
class: "custom-dropdown-menu"
|
|
2860
|
+
}, {
|
|
2861
|
+
default: x(() => [
|
|
2862
|
+
y.type === "folder" ? (A(), $(pe, { key: 0 }, [
|
|
2863
|
+
I(S, {
|
|
2864
|
+
command: { action: "addDir", data: y },
|
|
2865
|
+
class: "dropdown-item"
|
|
2866
|
+
}, {
|
|
2867
|
+
default: x(() => [...o[10] || (o[10] = [
|
|
2868
|
+
g("i", {
|
|
2869
|
+
class: "el-icon-circle-plus-outline",
|
|
2870
|
+
style: { "margin-right": "5px" }
|
|
2871
|
+
}, null, -1),
|
|
2872
|
+
B(" 新建子目录 ", -1)
|
|
2873
|
+
])]),
|
|
2874
|
+
_: 1
|
|
2875
|
+
}, 8, ["command"]),
|
|
2876
|
+
I(S, {
|
|
2877
|
+
command: { action: "editDir", data: y },
|
|
2878
|
+
class: "dropdown-item"
|
|
2879
|
+
}, {
|
|
2880
|
+
default: x(() => [...o[11] || (o[11] = [
|
|
2881
|
+
g("i", {
|
|
2882
|
+
class: "el-icon-edit-outline",
|
|
2883
|
+
style: { "margin-right": "5px" }
|
|
2884
|
+
}, null, -1),
|
|
2885
|
+
B(" 重命名 ", -1)
|
|
2886
|
+
])]),
|
|
2887
|
+
_: 1
|
|
2888
|
+
}, 8, ["command"]),
|
|
2889
|
+
y.id !== C(u).id && y.children.length === 0 ? (A(), de(S, {
|
|
2890
|
+
key: 0,
|
|
2891
|
+
command: { action: "deleteDir", data: y },
|
|
2892
|
+
class: "dropdown-item"
|
|
2893
|
+
}, {
|
|
2894
|
+
default: x(() => [...o[12] || (o[12] = [
|
|
2895
|
+
g("i", {
|
|
2896
|
+
class: "el-icon-delete",
|
|
2897
|
+
style: { "margin-right": "5px" }
|
|
2898
|
+
}, null, -1),
|
|
2899
|
+
B(" 删除 ", -1)
|
|
2900
|
+
])]),
|
|
2901
|
+
_: 1
|
|
2902
|
+
}, 8, ["command"])) : ge("", !0),
|
|
2903
|
+
I(S, { class: "dropdown-divider" }),
|
|
2904
|
+
I(S, {
|
|
2905
|
+
command: { action: "addDataSource", data: y },
|
|
2906
|
+
class: "dropdown-item"
|
|
2907
|
+
}, {
|
|
2908
|
+
default: x(() => [...o[13] || (o[13] = [
|
|
2909
|
+
g("i", {
|
|
2910
|
+
class: "el-icon-circle-plus-outline",
|
|
2911
|
+
style: { "margin-right": "5px" }
|
|
2912
|
+
}, null, -1),
|
|
2913
|
+
B(" 添加数据源 ", -1)
|
|
2914
|
+
])]),
|
|
2915
|
+
_: 1
|
|
2916
|
+
}, 8, ["command"])
|
|
2917
|
+
], 64)) : y.level === 1 && !C(ne).includes(y.type) ? (A(), $(pe, { key: 1 }, [
|
|
2918
|
+
I(S, {
|
|
2919
|
+
command: { action: "editDataSource", data: y },
|
|
2920
|
+
class: "dropdown-item"
|
|
2921
|
+
}, {
|
|
2922
|
+
default: x(() => [...o[14] || (o[14] = [
|
|
2923
|
+
g("i", {
|
|
2924
|
+
class: "el-icon-edit-outline",
|
|
2925
|
+
style: { "margin-right": "5px" }
|
|
2926
|
+
}, null, -1),
|
|
2927
|
+
B(" 编辑数据源 ", -1)
|
|
2928
|
+
])]),
|
|
2929
|
+
_: 1
|
|
2930
|
+
}, 8, ["command"]),
|
|
2931
|
+
I(S, {
|
|
2932
|
+
command: { action: "renameDataSource", data: y },
|
|
2933
|
+
class: "dropdown-item"
|
|
2934
|
+
}, {
|
|
2935
|
+
default: x(() => [...o[15] || (o[15] = [
|
|
2936
|
+
g("i", {
|
|
2937
|
+
class: "el-icon-edit",
|
|
2938
|
+
style: { "margin-right": "5px" }
|
|
2939
|
+
}, null, -1),
|
|
2940
|
+
B(" 重命名 ", -1)
|
|
2941
|
+
])]),
|
|
2942
|
+
_: 1
|
|
2943
|
+
}, 8, ["command"]),
|
|
2944
|
+
I(S, {
|
|
2945
|
+
command: { action: "deleteDataSource", data: y },
|
|
2946
|
+
class: "dropdown-item"
|
|
2947
|
+
}, {
|
|
2948
|
+
default: x(() => [...o[16] || (o[16] = [
|
|
2949
|
+
g("i", {
|
|
2950
|
+
class: "el-icon-delete",
|
|
2951
|
+
style: { "margin-right": "5px" }
|
|
2952
|
+
}, null, -1),
|
|
2953
|
+
B(" 删除 ", -1)
|
|
2954
|
+
])]),
|
|
2955
|
+
_: 1
|
|
2956
|
+
}, 8, ["command"]),
|
|
2957
|
+
I(S, { class: "dropdown-divider" }),
|
|
2958
|
+
I(S, {
|
|
2959
|
+
command: { action: "addTableOrView", data: y },
|
|
2960
|
+
class: "dropdown-item"
|
|
2961
|
+
}, {
|
|
2962
|
+
default: x(() => [...o[17] || (o[17] = [
|
|
2963
|
+
g("i", {
|
|
2964
|
+
class: "el-icon-circle-plus-outline",
|
|
2965
|
+
style: { "margin-right": "5px" }
|
|
2966
|
+
}, null, -1),
|
|
2967
|
+
B(" 添加表/视图 ", -1)
|
|
2968
|
+
])]),
|
|
2969
|
+
_: 1
|
|
2970
|
+
}, 8, ["command"]),
|
|
2971
|
+
I(S, {
|
|
2972
|
+
command: { action: "refreshDataSource", data: y },
|
|
2973
|
+
class: "dropdown-item"
|
|
2974
|
+
}, {
|
|
2975
|
+
default: x(() => [...o[18] || (o[18] = [
|
|
2976
|
+
g("i", {
|
|
2977
|
+
class: "el-icon-refresh",
|
|
2978
|
+
style: { "margin-right": "5px" }
|
|
2979
|
+
}, null, -1),
|
|
2980
|
+
B(" 刷新数据源 ", -1)
|
|
2981
|
+
])]),
|
|
2982
|
+
_: 1
|
|
2983
|
+
}, 8, ["command"]),
|
|
2984
|
+
I(S, {
|
|
2985
|
+
command: { action: "testConnection", data: y },
|
|
2986
|
+
class: "dropdown-item"
|
|
2987
|
+
}, {
|
|
2988
|
+
default: x(() => [...o[19] || (o[19] = [
|
|
2989
|
+
g("i", {
|
|
2990
|
+
class: "el-icon-connection",
|
|
2991
|
+
style: { "margin-right": "5px" }
|
|
2992
|
+
}, null, -1),
|
|
2993
|
+
B(" 测试连接 ", -1)
|
|
2994
|
+
])]),
|
|
2995
|
+
_: 1
|
|
2996
|
+
}, 8, ["command"])
|
|
2997
|
+
], 64)) : y.level === 4 ? (A(), $(pe, { key: 2 }, [
|
|
2998
|
+
I(S, {
|
|
2999
|
+
command: { action: "viewDetail", data: y },
|
|
3000
|
+
class: "dropdown-item"
|
|
3001
|
+
}, {
|
|
3002
|
+
default: x(() => [...o[20] || (o[20] = [
|
|
3003
|
+
g("i", {
|
|
3004
|
+
class: "el-icon-view",
|
|
3005
|
+
style: { "margin-right": "5px" }
|
|
3006
|
+
}, null, -1),
|
|
3007
|
+
B(" 查看详情 ", -1)
|
|
3008
|
+
])]),
|
|
3009
|
+
_: 1
|
|
3010
|
+
}, 8, ["command"]),
|
|
3011
|
+
I(S, {
|
|
3012
|
+
command: { action: "updateMetadata", data: y },
|
|
3013
|
+
class: "dropdown-item"
|
|
3014
|
+
}, {
|
|
3015
|
+
default: x(() => [...o[21] || (o[21] = [
|
|
3016
|
+
g("i", {
|
|
3017
|
+
class: "el-icon-refresh-left",
|
|
3018
|
+
style: { "margin-right": "5px" }
|
|
3019
|
+
}, null, -1),
|
|
3020
|
+
B(" 更新元数据 ", -1)
|
|
3021
|
+
])]),
|
|
3022
|
+
_: 1
|
|
3023
|
+
}, 8, ["command"]),
|
|
3024
|
+
I(S, {
|
|
3025
|
+
command: { action: "updateStatistics", data: y },
|
|
3026
|
+
class: "dropdown-item"
|
|
3027
|
+
}, {
|
|
3028
|
+
default: x(() => [...o[22] || (o[22] = [
|
|
3029
|
+
g("i", {
|
|
3030
|
+
class: "el-icon-data-analysis",
|
|
3031
|
+
style: { "margin-right": "5px" }
|
|
3032
|
+
}, null, -1),
|
|
3033
|
+
B(" 更新统计 ", -1)
|
|
3034
|
+
])]),
|
|
3035
|
+
_: 1
|
|
3036
|
+
}, 8, ["command"]),
|
|
3037
|
+
I(S, {
|
|
3038
|
+
command: { action: "copyCreateTableSql", data: y },
|
|
3039
|
+
class: "dropdown-item"
|
|
3040
|
+
}, {
|
|
3041
|
+
default: x(() => [...o[23] || (o[23] = [
|
|
3042
|
+
g("i", {
|
|
3043
|
+
class: "el-icon-document-copy",
|
|
3044
|
+
style: { "margin-right": "5px" }
|
|
3045
|
+
}, null, -1),
|
|
3046
|
+
B(" 复制建表语句 ", -1)
|
|
3047
|
+
])]),
|
|
3048
|
+
_: 1
|
|
3049
|
+
}, 8, ["command"]),
|
|
3050
|
+
I(S, { class: "dropdown-divider" }),
|
|
3051
|
+
I(S, {
|
|
3052
|
+
command: { action: "renameDataset", data: y },
|
|
3053
|
+
class: "dropdown-item"
|
|
3054
|
+
}, {
|
|
3055
|
+
default: x(() => [...o[24] || (o[24] = [
|
|
3056
|
+
g("i", {
|
|
3057
|
+
class: "el-icon-edit",
|
|
3058
|
+
style: { "margin-right": "5px" }
|
|
3059
|
+
}, null, -1),
|
|
3060
|
+
B(" 重命名 ", -1)
|
|
3061
|
+
])]),
|
|
3062
|
+
_: 1
|
|
3063
|
+
}, 8, ["command"]),
|
|
3064
|
+
I(S, {
|
|
3065
|
+
command: { action: "deleteDataset", data: y },
|
|
3066
|
+
class: "dropdown-item"
|
|
3067
|
+
}, {
|
|
3068
|
+
default: x(() => [...o[25] || (o[25] = [
|
|
3069
|
+
g("i", {
|
|
3070
|
+
class: "el-icon-delete",
|
|
3071
|
+
style: { "margin-right": "5px" }
|
|
3072
|
+
}, null, -1),
|
|
3073
|
+
B(" 删除 ", -1)
|
|
3074
|
+
])]),
|
|
3075
|
+
_: 1
|
|
3076
|
+
}, 8, ["command"])
|
|
3077
|
+
], 64)) : y.level === 1 && C(ne).includes(y.type) ? (A(), $(pe, { key: 3 }, [
|
|
3078
|
+
I(S, {
|
|
3079
|
+
command: { action: "editDataSource", data: y },
|
|
3080
|
+
class: "dropdown-item"
|
|
3081
|
+
}, {
|
|
3082
|
+
default: x(() => [...o[26] || (o[26] = [
|
|
3083
|
+
g("i", {
|
|
3084
|
+
class: "el-icon-edit-outline",
|
|
3085
|
+
style: { "margin-right": "5px" }
|
|
3086
|
+
}, null, -1),
|
|
3087
|
+
B(" 编辑数据源 ", -1)
|
|
3088
|
+
])]),
|
|
3089
|
+
_: 1
|
|
3090
|
+
}, 8, ["command"]),
|
|
3091
|
+
I(S, {
|
|
3092
|
+
command: { action: "renameDataSource", data: y },
|
|
3093
|
+
class: "dropdown-item"
|
|
3094
|
+
}, {
|
|
3095
|
+
default: x(() => [...o[27] || (o[27] = [
|
|
3096
|
+
g("i", {
|
|
3097
|
+
class: "el-icon-edit",
|
|
3098
|
+
style: { "margin-right": "5px" }
|
|
3099
|
+
}, null, -1),
|
|
3100
|
+
B(" 重命名 ", -1)
|
|
3101
|
+
])]),
|
|
3102
|
+
_: 1
|
|
3103
|
+
}, 8, ["command"]),
|
|
3104
|
+
I(S, {
|
|
3105
|
+
command: { action: "deleteDataSource", data: y },
|
|
3106
|
+
class: "dropdown-item"
|
|
3107
|
+
}, {
|
|
3108
|
+
default: x(() => [...o[28] || (o[28] = [
|
|
3109
|
+
g("i", {
|
|
3110
|
+
class: "el-icon-delete",
|
|
3111
|
+
style: { "margin-right": "5px" }
|
|
3112
|
+
}, null, -1),
|
|
3113
|
+
B(" 删除 ", -1)
|
|
3114
|
+
])]),
|
|
3115
|
+
_: 1
|
|
3116
|
+
}, 8, ["command"]),
|
|
3117
|
+
I(S, { class: "dropdown-divider" }),
|
|
3118
|
+
I(S, {
|
|
3119
|
+
command: { action: "addFileSet", data: y },
|
|
3120
|
+
class: "dropdown-item"
|
|
3121
|
+
}, {
|
|
3122
|
+
default: x(() => [...o[29] || (o[29] = [
|
|
3123
|
+
g("i", {
|
|
3124
|
+
class: "el-icon-folder-add",
|
|
3125
|
+
style: { "margin-right": "5px" }
|
|
3126
|
+
}, null, -1),
|
|
3127
|
+
B(" 添加文件集 ", -1)
|
|
3128
|
+
])]),
|
|
3129
|
+
_: 1
|
|
3130
|
+
}, 8, ["command"]),
|
|
3131
|
+
I(S, {
|
|
3132
|
+
command: { action: "refreshDataSource", data: y },
|
|
3133
|
+
class: "dropdown-item"
|
|
3134
|
+
}, {
|
|
3135
|
+
default: x(() => [...o[30] || (o[30] = [
|
|
3136
|
+
g("i", {
|
|
3137
|
+
class: "el-icon-refresh",
|
|
3138
|
+
style: { "margin-right": "5px" }
|
|
3139
|
+
}, null, -1),
|
|
3140
|
+
B(" 刷新数据源 ", -1)
|
|
3141
|
+
])]),
|
|
3142
|
+
_: 1
|
|
3143
|
+
}, 8, ["command"]),
|
|
3144
|
+
I(S, {
|
|
3145
|
+
command: { action: "testConnection", data: y },
|
|
3146
|
+
class: "dropdown-item"
|
|
3147
|
+
}, {
|
|
3148
|
+
default: x(() => [...o[31] || (o[31] = [
|
|
3149
|
+
g("i", {
|
|
3150
|
+
class: "el-icon-connection",
|
|
3151
|
+
style: { "margin-right": "5px" }
|
|
3152
|
+
}, null, -1),
|
|
3153
|
+
B(" 测试连接 ", -1)
|
|
3154
|
+
])]),
|
|
3155
|
+
_: 1
|
|
3156
|
+
}, 8, ["command"])
|
|
3157
|
+
], 64)) : ge("", !0)
|
|
3158
|
+
]),
|
|
3159
|
+
_: 2
|
|
3160
|
+
}, 1024)
|
|
3161
|
+
]),
|
|
3162
|
+
_: 2
|
|
3163
|
+
}, 1024)
|
|
3164
|
+
])) : ge("", !0)
|
|
3165
|
+
], 2)
|
|
3166
|
+
]),
|
|
3167
|
+
_: 1
|
|
3168
|
+
}, 8, ["data", "props", "default-expanded-keys"])),
|
|
3169
|
+
I(Js, {
|
|
3170
|
+
ref_key: "singlePopover",
|
|
3171
|
+
ref: be,
|
|
3172
|
+
visible: C(le),
|
|
3173
|
+
placement: "right",
|
|
3174
|
+
width: "350",
|
|
3175
|
+
trigger: "manual",
|
|
3176
|
+
"popper-class": "custom-tree-popover",
|
|
3177
|
+
title: C(se),
|
|
3178
|
+
"virtual-ref": C(j),
|
|
3179
|
+
"virtual-triggering": ""
|
|
3180
|
+
}, {
|
|
3181
|
+
default: x(() => [
|
|
3182
|
+
Ct((A(), $("div", {
|
|
3183
|
+
class: "popover-content",
|
|
3184
|
+
onMouseenter: Ts,
|
|
3185
|
+
onMouseleave: _s
|
|
3186
|
+
}, [
|
|
3187
|
+
C(q) ? (A(), $("div", vo, [
|
|
3188
|
+
C(H) && C(H).level === 1 ? (A(), $(pe, { key: 0 }, [
|
|
3189
|
+
g("div", yo, [
|
|
3190
|
+
o[32] || (o[32] = g("span", { class: "label" }, "IP地址:", -1)),
|
|
3191
|
+
g("span", bo, X(C(q).datasourceIp || "--"), 1)
|
|
3192
|
+
]),
|
|
3193
|
+
g("div", wo, [
|
|
3194
|
+
o[33] || (o[33] = g("span", { class: "label" }, "端口:", -1)),
|
|
3195
|
+
g("span", So, X(C(q).datasourcePort || "--"), 1)
|
|
3196
|
+
]),
|
|
3197
|
+
g("div", Io, [
|
|
3198
|
+
o[34] || (o[34] = g("span", { class: "label" }, "资源描述:", -1)),
|
|
3199
|
+
g("span", Eo, X(C(q).description || "--"), 1)
|
|
3200
|
+
])
|
|
3201
|
+
], 64)) : C(H) && C(H).level === 4 ? (A(), $(pe, { key: 1 }, [
|
|
3202
|
+
g("div", To, [
|
|
3203
|
+
o[35] || (o[35] = g("span", { class: "label" }, "资源名称:", -1)),
|
|
3204
|
+
g("span", _o, X(C(q).datasetName || "--"), 1)
|
|
3205
|
+
]),
|
|
3206
|
+
g("div", xo, [
|
|
3207
|
+
o[36] || (o[36] = g("span", { class: "label" }, "模式名:", -1)),
|
|
3208
|
+
g("span", Ro, X(C(q).schemaName || "--"), 1)
|
|
3209
|
+
]),
|
|
3210
|
+
g("div", Co, [
|
|
3211
|
+
o[37] || (o[37] = g("span", { class: "label" }, "资源注释:", -1)),
|
|
3212
|
+
g("span", Oo, X(C(q).datasetComment || "--"), 1)
|
|
3213
|
+
]),
|
|
3214
|
+
g("div", Ao, [
|
|
3215
|
+
o[38] || (o[38] = g("span", { class: "label" }, "数据量:", -1)),
|
|
3216
|
+
g("span", ko, X(C(q).rowCount || "--"), 1)
|
|
3217
|
+
]),
|
|
3218
|
+
g("div", Po, [
|
|
3219
|
+
o[39] || (o[39] = g("span", { class: "label" }, "字段数:", -1)),
|
|
3220
|
+
g("span", No, X(C(q).fieldCount || "--") + "个", 1)
|
|
3221
|
+
]),
|
|
3222
|
+
g("div", Bo, [
|
|
3223
|
+
o[40] || (o[40] = g("span", { class: "label" }, "最后统计信息:", -1)),
|
|
3224
|
+
g("span", $o, X(C(q).countTime || "-"), 1)
|
|
3225
|
+
]),
|
|
3226
|
+
g("div", Fo, [
|
|
3227
|
+
o[41] || (o[41] = g("span", { class: "label" }, "最后统计状态:", -1)),
|
|
3228
|
+
g("span", Lo, X(C(q).latestCountState || "-"), 1)
|
|
3229
|
+
])
|
|
3230
|
+
], 64)) : ge("", !0)
|
|
3231
|
+
])) : (A(), $("div", Uo, "暂无详情数据"))
|
|
3232
|
+
], 32)), [
|
|
3233
|
+
[xt, C(ce)]
|
|
3234
|
+
])
|
|
3235
|
+
]),
|
|
3236
|
+
_: 1
|
|
3237
|
+
}, 8, ["visible", "title", "virtual-ref"]),
|
|
3238
|
+
I(Xs, {
|
|
3239
|
+
title: C(m) === "edit" ? "编辑目录信息" : "添加目录",
|
|
3240
|
+
visible: C(E),
|
|
3241
|
+
"onUpdate:visible": o[5] || (o[5] = (Y) => Ce(E) ? E.value = Y : null),
|
|
3242
|
+
width: "30%"
|
|
3243
|
+
}, {
|
|
3244
|
+
default: x(() => [
|
|
3245
|
+
I(Ks, { "label-width": "80px" }, {
|
|
3246
|
+
default: x(() => [
|
|
3247
|
+
I(Ws, { label: "目录名称" }, {
|
|
3248
|
+
default: x(() => [
|
|
3249
|
+
I(_t, {
|
|
3250
|
+
modelValue: C(K),
|
|
3251
|
+
"onUpdate:modelValue": o[4] || (o[4] = (Y) => Ce(K) ? K.value = Y : null),
|
|
3252
|
+
placeholder: "请输入目录名称"
|
|
3253
|
+
}, null, 8, ["modelValue"])
|
|
3254
|
+
]),
|
|
3255
|
+
_: 1
|
|
3256
|
+
})
|
|
3257
|
+
]),
|
|
3258
|
+
_: 1
|
|
3259
|
+
}),
|
|
3260
|
+
g("div", Do, [
|
|
3261
|
+
I(T, { onClick: l.close }, {
|
|
3262
|
+
default: x(() => [...o[42] || (o[42] = [
|
|
3263
|
+
B("取 消", -1)
|
|
3264
|
+
])]),
|
|
3265
|
+
_: 1
|
|
3266
|
+
}, 8, ["onClick"]),
|
|
3267
|
+
I(T, {
|
|
3268
|
+
type: "primary",
|
|
3269
|
+
onClick: xs
|
|
3270
|
+
}, {
|
|
3271
|
+
default: x(() => [...o[43] || (o[43] = [
|
|
3272
|
+
B("确 定", -1)
|
|
3273
|
+
])]),
|
|
3274
|
+
_: 1
|
|
3275
|
+
})
|
|
3276
|
+
])
|
|
3277
|
+
]),
|
|
3278
|
+
_: 1
|
|
3279
|
+
}, 8, ["title", "visible"])
|
|
3280
|
+
])), [
|
|
3281
|
+
[xt, C(r)]
|
|
3282
|
+
]);
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3285
|
+
}), qo = /* @__PURE__ */ so(jo, [["__scopeId", "data-v-45b9b537"]]), Vo = [qo], da = {
|
|
14
3286
|
install(e) {
|
|
15
|
-
|
|
16
|
-
e.component(
|
|
3287
|
+
Vo.forEach((t) => {
|
|
3288
|
+
e.component(t.name, t);
|
|
17
3289
|
});
|
|
18
3290
|
}
|
|
19
3291
|
};
|
|
20
3292
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
3293
|
+
qo as dataSourceTree,
|
|
3294
|
+
da as default
|
|
23
3295
|
};
|