workdesktop-ai 1.1.1 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -6
- package/README.md +26 -13
- package/dist/api-button/index.mjs +1 -1
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/base.css +1 -1
- package/dist/checkbox-list/index.mjs +1 -1
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-KKzJxwpV.mjs → ApiButton.vue_vue_type_script_setup_true_lang-3BjZSAPZ.mjs} +2 -2
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-KKzJxwpV.mjs.map → ApiButton.vue_vue_type_script_setup_true_lang-3BjZSAPZ.mjs.map} +1 -1
- package/dist/chunks/{AutoComplete-CLV_PwcZ.mjs → AutoComplete-C6Nxatvt.mjs} +2 -2
- package/dist/chunks/{AutoComplete-CLV_PwcZ.mjs.map → AutoComplete-C6Nxatvt.mjs.map} +1 -1
- package/dist/chunks/{CheckboxList-Bx3Ce1q5.mjs → CheckboxList-5AEx33r5.mjs} +2 -2
- package/dist/chunks/{CheckboxList-Bx3Ce1q5.mjs.map → CheckboxList-5AEx33r5.mjs.map} +1 -1
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-D4w6G2Kv.mjs → ConfirmButton.vue_vue_type_script_setup_true_lang-CXYH1Rlc.mjs} +2 -2
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-D4w6G2Kv.mjs.map → ConfirmButton.vue_vue_type_script_setup_true_lang-CXYH1Rlc.mjs.map} +1 -1
- package/dist/chunks/{DataForm-C5MBVdei.mjs → DataForm-C6VLTSOm.mjs} +16 -16
- package/dist/chunks/{DataForm-C5MBVdei.mjs.map → DataForm-C6VLTSOm.mjs.map} +1 -1
- package/dist/chunks/{DataGrid-HUzKWuQx.mjs → DataGrid-Dd7n5JM7.mjs} +4 -4
- package/dist/chunks/{DataGrid-HUzKWuQx.mjs.map → DataGrid-Dd7n5JM7.mjs.map} +1 -1
- package/dist/chunks/{EditableGrid-C8A-nJZv.mjs → EditableGrid-CDeeVkaX.mjs} +330 -333
- package/dist/chunks/EditableGrid-CDeeVkaX.mjs.map +1 -0
- package/dist/chunks/{ImageUpload-DGehzaYa.mjs → ImageUpload-CQA9XQ7Q.mjs} +2 -2
- package/dist/chunks/{ImageUpload-DGehzaYa.mjs.map → ImageUpload-CQA9XQ7Q.mjs.map} +1 -1
- package/dist/chunks/{Panel-CrRqBTj6.mjs → Panel-BHqAeBaH.mjs} +8 -8
- package/dist/chunks/Panel-BHqAeBaH.mjs.map +1 -0
- package/dist/chunks/Path-C_oyo6Dg.mjs +200 -0
- package/dist/chunks/Path-C_oyo6Dg.mjs.map +1 -0
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-Gck1QAHc.mjs → PromptButton.vue_vue_type_script_setup_true_lang-oYaMH-CI.mjs} +2 -2
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-Gck1QAHc.mjs.map → PromptButton.vue_vue_type_script_setup_true_lang-oYaMH-CI.mjs.map} +1 -1
- package/dist/chunks/{RadioList-vE8JOuST.mjs → RadioList-BUWcP_Pk.mjs} +2 -2
- package/dist/chunks/{RadioList-vE8JOuST.mjs.map → RadioList-BUWcP_Pk.mjs.map} +1 -1
- package/dist/chunks/{Requester.vue_vue_type_script_setup_true_lang-B8TwXbYR.mjs → Requester.vue_vue_type_script_setup_true_lang-DkLqAjug.mjs} +2 -2
- package/dist/chunks/{Requester.vue_vue_type_script_setup_true_lang-B8TwXbYR.mjs.map → Requester.vue_vue_type_script_setup_true_lang-DkLqAjug.mjs.map} +1 -1
- package/dist/chunks/{SearchPanel-xQ1hPaNq.mjs → SearchPanel-DPlWWuXb.mjs} +2 -2
- package/dist/chunks/{SearchPanel-xQ1hPaNq.mjs.map → SearchPanel-DPlWWuXb.mjs.map} +1 -1
- package/dist/chunks/{Select-DAGZDXvI.mjs → Select-uvFy7_NU.mjs} +2 -2
- package/dist/chunks/{Select-DAGZDXvI.mjs.map → Select-uvFy7_NU.mjs.map} +1 -1
- package/dist/chunks/Station-DLV19USa.mjs +780 -0
- package/dist/chunks/Station-DLV19USa.mjs.map +1 -0
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-CulPqp7M.mjs → Switch.vue_vue_type_script_setup_true_lang-DUhXAGs2.mjs} +2 -2
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-CulPqp7M.mjs.map → Switch.vue_vue_type_script_setup_true_lang-DUhXAGs2.mjs.map} +1 -1
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-D07Bhllc.mjs → Upload.vue_vue_type_script_setup_true_lang-CHGCjpKK.mjs} +2 -2
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-D07Bhllc.mjs.map → Upload.vue_vue_type_script_setup_true_lang-CHGCjpKK.mjs.map} +1 -1
- package/dist/chunks/{Viewer-iub6TjoD.mjs → Viewer-CjLSQTrw.mjs} +2 -2
- package/dist/chunks/{Viewer-iub6TjoD.mjs.map → Viewer-CjLSQTrw.mjs.map} +1 -1
- package/dist/chunks/http-C06mNpwY.mjs +4141 -0
- package/dist/chunks/http-C06mNpwY.mjs.map +1 -0
- package/dist/chunks/station-linkage-D54-_iyL.mjs +77 -0
- package/dist/chunks/station-linkage-D54-_iyL.mjs.map +1 -0
- package/dist/chunks/{useApiAction-6_vvf5Fd.mjs → useApiAction-DxVQWWxv.mjs} +2 -2
- package/dist/chunks/{useApiAction-6_vvf5Fd.mjs.map → useApiAction-DxVQWWxv.mjs.map} +1 -1
- package/dist/chunks/{useColumnSettings-BYDQdk4o.mjs → useColumnSettings-BwG2V9xp.mjs} +2 -2
- package/dist/chunks/{useColumnSettings-BYDQdk4o.mjs.map → useColumnSettings-BwG2V9xp.mjs.map} +1 -1
- package/dist/chunks/{useOptionsLoader-Bi8oqNbG.mjs → useOptionsLoader-DEVCYhrp.mjs} +2 -2
- package/dist/chunks/{useOptionsLoader-Bi8oqNbG.mjs.map → useOptionsLoader-DEVCYhrp.mjs.map} +1 -1
- package/dist/confirm-button/index.mjs +1 -1
- package/dist/data-form/index.mjs +1 -1
- package/dist/data-form/style.css +1 -1
- package/dist/data-grid/index.mjs +1 -1
- package/dist/data-grid/style.css +1 -1
- package/dist/editable-grid/index.mjs +1 -1
- package/dist/editable-grid/style.css +1 -1
- package/dist/image-upload/index.mjs +1 -1
- package/dist/index.esm.js +133 -124
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +705 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/panel/index.mjs +1 -1
- package/dist/panel/style.css +1 -1
- package/dist/path/index.mjs +7 -0
- package/dist/path/index.mjs.map +1 -0
- package/dist/path/style.css +1 -0
- package/dist/prompt-button/index.mjs +1 -1
- package/dist/radio-list/index.mjs +1 -1
- package/dist/requester/index.mjs +1 -1
- package/dist/search-panel/index.mjs +1 -1
- package/dist/search-panel/style.css +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/station/index.mjs +1 -1
- package/dist/station/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/index.mjs +1 -1
- package/dist/upload/index.mjs +1 -1
- package/dist/viewer/index.mjs +1 -1
- package/llms.txt +99 -9
- package/package.json +6 -1
- package/dist/chunks/EditableGrid-C8A-nJZv.mjs.map +0 -1
- package/dist/chunks/Panel-CrRqBTj6.mjs.map +0 -1
- package/dist/chunks/Station-BF_QlQ8c.mjs +0 -796
- package/dist/chunks/Station-BF_QlQ8c.mjs.map +0 -1
- package/dist/chunks/http-Bs-dM076.mjs +0 -2951
- package/dist/chunks/http-Bs-dM076.mjs.map +0 -1
- package/dist/types/src/components/buttons/ApiButton.vue.d.ts +0 -134
- package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +0 -169
- package/dist/types/src/components/buttons/DialogButton.vue.d.ts +0 -167
- package/dist/types/src/components/buttons/DrawerButton.vue.d.ts +0 -186
- package/dist/types/src/components/buttons/PopconfirmButton.vue.d.ts +0 -317
- package/dist/types/src/components/buttons/PromptButton.vue.d.ts +0 -180
- package/dist/types/src/components/buttons/RouteButton.vue.d.ts +0 -122
- package/dist/types/src/components/buttons/TipsButton.vue.d.ts +0 -66
- package/dist/types/src/components/buttons/useApiAction.d.ts +0 -20
- package/dist/types/src/components/common/props.d.ts +0 -122
- package/dist/types/src/components/containers/Drawer.vue.d.ts +0 -172
- package/dist/types/src/components/containers/Iframe.vue.d.ts +0 -81
- package/dist/types/src/components/containers/containerContext.d.ts +0 -15
- package/dist/types/src/components/containers/useContainerController.d.ts +0 -24
- package/dist/types/src/components/containers/useIframeContainer.d.ts +0 -20
- package/dist/types/src/components/core/Requester.vue.d.ts +0 -41
- package/dist/types/src/components/data/datagrid/DataGrid.vue.d.ts +0 -542
- package/dist/types/src/components/data/datagrid/useColumnSettings.d.ts +0 -62
- package/dist/types/src/components/data/editable-grid/EditableGrid.vue.d.ts +0 -586
- package/dist/types/src/components/data/viewer/Viewer.vue.d.ts +0 -187
- package/dist/types/src/components/form/FormItem.vue.d.ts +0 -62
- package/dist/types/src/components/form/SearchItem.vue.d.ts +0 -62
- package/dist/types/src/components/form/SearchPanel.vue.d.ts +0 -167
- package/dist/types/src/components/form/data-form/DataForm.vue.d.ts +0 -311
- package/dist/types/src/components/index.d.ts +0 -31
- package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +0 -166
- package/dist/types/src/components/inputs/CheckboxList.vue.d.ts +0 -166
- package/dist/types/src/components/inputs/RadioList.vue.d.ts +0 -166
- package/dist/types/src/components/inputs/Select.vue.d.ts +0 -176
- package/dist/types/src/components/inputs/Switch.vue.d.ts +0 -116
- package/dist/types/src/components/inputs/useOptionsLoader.d.ts +0 -32
- package/dist/types/src/components/layout/Station.vue.d.ts +0 -302
- package/dist/types/src/components/layout/StationMenuNode.vue.d.ts +0 -20
- package/dist/types/src/components/layout/types.d.ts +0 -54
- package/dist/types/src/components/styles/Panel.vue.d.ts +0 -94
- package/dist/types/src/components/styles/Tips.vue.d.ts +0 -60
- package/dist/types/src/components/upload/ImageUpload.vue.d.ts +0 -176
- package/dist/types/src/components/upload/Upload.vue.d.ts +0 -235
- package/dist/types/src/entries/api-button.d.ts +0 -9
- package/dist/types/src/entries/auto-complete.d.ts +0 -9
- package/dist/types/src/entries/checkbox-list.d.ts +0 -9
- package/dist/types/src/entries/components-map.d.ts +0 -8
- package/dist/types/src/entries/confirm-button.d.ts +0 -9
- package/dist/types/src/entries/data-form.d.ts +0 -9
- package/dist/types/src/entries/data-grid.d.ts +0 -9
- package/dist/types/src/entries/dialog-button.d.ts +0 -9
- package/dist/types/src/entries/drawer-button.d.ts +0 -9
- package/dist/types/src/entries/drawer.d.ts +0 -9
- package/dist/types/src/entries/editable-grid.d.ts +0 -9
- package/dist/types/src/entries/form-item.d.ts +0 -9
- package/dist/types/src/entries/iframe.d.ts +0 -9
- package/dist/types/src/entries/image-upload.d.ts +0 -9
- package/dist/types/src/entries/panel.d.ts +0 -9
- package/dist/types/src/entries/prompt-button.d.ts +0 -9
- package/dist/types/src/entries/radio-list.d.ts +0 -9
- package/dist/types/src/entries/requester.d.ts +0 -9
- package/dist/types/src/entries/route-button.d.ts +0 -9
- package/dist/types/src/entries/search-item.d.ts +0 -9
- package/dist/types/src/entries/search-panel.d.ts +0 -9
- package/dist/types/src/entries/select.d.ts +0 -9
- package/dist/types/src/entries/station.d.ts +0 -9
- package/dist/types/src/entries/switch.d.ts +0 -9
- package/dist/types/src/entries/tips-button.d.ts +0 -9
- package/dist/types/src/entries/tips.d.ts +0 -9
- package/dist/types/src/entries/upload.d.ts +0 -9
- package/dist/types/src/entries/viewer.d.ts +0 -9
- package/dist/types/src/index.d.ts +0 -21
- package/dist/types/src/lib/composables/useConfig.d.ts +0 -19
- package/dist/types/src/lib/composables/useDataGrid.d.ts +0 -69
- package/dist/types/src/lib/composables/useEventBus.d.ts +0 -16
- package/dist/types/src/lib/composables/useGlobalState.d.ts +0 -5
- package/dist/types/src/lib/composables/useRequest.d.ts +0 -42
- package/dist/types/src/lib/configs/default-config.d.ts +0 -6
- package/dist/types/src/lib/core/config.d.ts +0 -28
- package/dist/types/src/lib/core/http.d.ts +0 -100
- package/dist/types/src/lib/core/linkage.d.ts +0 -48
- package/dist/types/src/lib/core/station-linkage.d.ts +0 -41
- package/dist/types/src/lib/core/theme.d.ts +0 -6
- package/dist/types/src/lib/core/utils.d.ts +0 -28
- package/dist/types/src/lib/install.d.ts +0 -11
- package/dist/types/src/types/config.d.ts +0 -126
- package/dist/types/src/types/index.d.ts +0 -4
- package/dist/types/vite.config.d.ts +0 -7
|
@@ -0,0 +1,4141 @@
|
|
|
1
|
+
var gr = Object.defineProperty;
|
|
2
|
+
var br = (e, t, r) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var Z = (e, t, r) => br(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { ElLoading as hr, ElMessage as mr, ElNotification as wr, ElMessageBox as xr } from "element-plus";
|
|
5
|
+
function Ct(e, t) {
|
|
6
|
+
return function() {
|
|
7
|
+
return e.apply(t, arguments);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
const { toString: yr } = Object.prototype, { getPrototypeOf: K } = Object, { iterator: we, toStringTag: Nt } = Symbol, he = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Dt = (e) => typeof e == "string" && (e === "__proto__" || e === "constructor" || e === "prototype"), Lt = (e, t, r) => e === Object.prototype || !r && t === null, _r = (e) => {
|
|
11
|
+
if (!Object.isExtensible(e))
|
|
12
|
+
return !1;
|
|
13
|
+
const t = Object.getOwnPropertyNames(e);
|
|
14
|
+
return Object.getOwnPropertySymbols && t.push(...Object.getOwnPropertySymbols(e)), t.every((r) => {
|
|
15
|
+
if (Dt(r))
|
|
16
|
+
return !1;
|
|
17
|
+
const n = Object.getOwnPropertyDescriptor(e, r);
|
|
18
|
+
return !!n && n.configurable && n.writable === !0;
|
|
19
|
+
});
|
|
20
|
+
}, me = (e, t) => {
|
|
21
|
+
let r = e;
|
|
22
|
+
const n = [];
|
|
23
|
+
for (; r != null; ) {
|
|
24
|
+
if (n.indexOf(r) !== -1)
|
|
25
|
+
return !1;
|
|
26
|
+
n.push(r);
|
|
27
|
+
const o = K(r);
|
|
28
|
+
if (Lt(r, o, r === e))
|
|
29
|
+
return !1;
|
|
30
|
+
if (he(r, t))
|
|
31
|
+
return !0;
|
|
32
|
+
r = o;
|
|
33
|
+
}
|
|
34
|
+
return !1;
|
|
35
|
+
}, Er = (e, t) => e != null && me(e, t) ? e[t] : void 0, Rr = (e) => {
|
|
36
|
+
if (e == null || typeof e != "object" && typeof e != "function")
|
|
37
|
+
return e;
|
|
38
|
+
const t = K(e);
|
|
39
|
+
if (t === null && _r(e))
|
|
40
|
+
return e;
|
|
41
|
+
const r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), o = [];
|
|
42
|
+
let s = e;
|
|
43
|
+
for (; s != null && o.indexOf(s) === -1; ) {
|
|
44
|
+
o.push(s);
|
|
45
|
+
const a = s === e ? t : K(s);
|
|
46
|
+
if (Lt(s, a, s === e))
|
|
47
|
+
break;
|
|
48
|
+
const i = Object.getOwnPropertyNames(s);
|
|
49
|
+
Object.getOwnPropertySymbols && i.push(...Object.getOwnPropertySymbols(s));
|
|
50
|
+
for (const c of i)
|
|
51
|
+
Dt(c) || he(n, c) || (r[c] = e[c], n[c] = !0);
|
|
52
|
+
s = a;
|
|
53
|
+
}
|
|
54
|
+
return r;
|
|
55
|
+
}, Qe = /* @__PURE__ */ ((e) => (t) => {
|
|
56
|
+
const r = yr.call(t);
|
|
57
|
+
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
58
|
+
})(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (t) => Qe(t) === e), Ne = (e) => (t) => typeof t === e, { isArray: re } = Array, ne = Ne("undefined");
|
|
59
|
+
function ie(e) {
|
|
60
|
+
return e !== null && !ne(e) && e.constructor !== null && !ne(e.constructor) && U(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
61
|
+
}
|
|
62
|
+
const Ut = j("ArrayBuffer");
|
|
63
|
+
function Sr(e) {
|
|
64
|
+
let t;
|
|
65
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ut(e.buffer), t;
|
|
66
|
+
}
|
|
67
|
+
const Or = Ne("string"), U = Ne("function"), Ft = Ne("number"), le = (e) => e !== null && typeof e == "object", kr = (e) => e === !0 || e === !1, ke = (e) => {
|
|
68
|
+
if (!le(e))
|
|
69
|
+
return !1;
|
|
70
|
+
const t = K(e);
|
|
71
|
+
return (t === null || t === Object.prototype || K(t) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
72
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
73
|
+
// only through shared or terminal prototype boundaries.
|
|
74
|
+
!me(e, Nt) && !me(e, we);
|
|
75
|
+
}, vr = (e) => {
|
|
76
|
+
if (!le(e) || ie(e))
|
|
77
|
+
return !1;
|
|
78
|
+
try {
|
|
79
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
80
|
+
} catch {
|
|
81
|
+
return !1;
|
|
82
|
+
}
|
|
83
|
+
}, Ar = j("Date"), Pr = j("File"), Tr = (e) => !!(e && typeof e.uri < "u"), Cr = (e) => e && typeof e.getParts < "u", Nr = j("Blob"), Dr = j("FileList"), Lr = j("Set"), Ur = (e) => le(e) && U(e.pipe);
|
|
84
|
+
function Fr() {
|
|
85
|
+
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
86
|
+
}
|
|
87
|
+
const ut = Fr(), ft = typeof ut.FormData < "u" ? ut.FormData : void 0, jr = (e) => {
|
|
88
|
+
if (!e) return !1;
|
|
89
|
+
if (ft && e instanceof ft) return !0;
|
|
90
|
+
const t = K(e);
|
|
91
|
+
if (!t || t === Object.prototype || !U(e.append)) return !1;
|
|
92
|
+
const r = Qe(e);
|
|
93
|
+
return r === "formdata" || // detect form-data instance
|
|
94
|
+
r === "object" && U(e.toString) && e.toString() === "[object FormData]";
|
|
95
|
+
}, Br = j("URLSearchParams"), [Ir, Mr, $r, Hr] = [
|
|
96
|
+
"ReadableStream",
|
|
97
|
+
"Request",
|
|
98
|
+
"Response",
|
|
99
|
+
"Headers"
|
|
100
|
+
].map(j), zr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
101
|
+
function xe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
102
|
+
if (e === null || typeof e > "u")
|
|
103
|
+
return;
|
|
104
|
+
let n, o;
|
|
105
|
+
if (typeof e != "object" && (e = [e]), re(e))
|
|
106
|
+
for (n = 0, o = e.length; n < o; n++)
|
|
107
|
+
t.call(null, e[n], n, e);
|
|
108
|
+
else {
|
|
109
|
+
if (ie(e))
|
|
110
|
+
return;
|
|
111
|
+
const s = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
|
|
112
|
+
let i;
|
|
113
|
+
for (n = 0; n < a; n++)
|
|
114
|
+
i = s[n], t.call(null, e[i], i, e);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function jt(e, t) {
|
|
118
|
+
if (ie(e))
|
|
119
|
+
return null;
|
|
120
|
+
t = t.toLowerCase();
|
|
121
|
+
const r = Object.keys(e);
|
|
122
|
+
let n = r.length, o;
|
|
123
|
+
for (; n-- > 0; )
|
|
124
|
+
if (o = r[n], t === o.toLowerCase())
|
|
125
|
+
return o;
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Bt = (e) => !ne(e) && e !== ee;
|
|
129
|
+
function Xe(...e) {
|
|
130
|
+
const { caseless: t, skipUndefined: r } = Bt(this) && this || {}, n = {}, o = (s, a) => {
|
|
131
|
+
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
132
|
+
return;
|
|
133
|
+
const i = t && typeof a == "string" && jt(n, a) || a, c = he(n, i) ? n[i] : void 0;
|
|
134
|
+
ke(c) && ke(s) ? n[i] = Xe(c, s) : ke(s) ? n[i] = Xe({}, s) : re(s) ? n[i] = s.slice() : (!r || !ne(s)) && (n[i] = s);
|
|
135
|
+
};
|
|
136
|
+
for (let s = 0, a = e.length; s < a; s++) {
|
|
137
|
+
const i = e[s];
|
|
138
|
+
if (!i || ie(i) || (xe(i, o), typeof i != "object" || re(i)))
|
|
139
|
+
continue;
|
|
140
|
+
const c = Object.getOwnPropertySymbols(i);
|
|
141
|
+
for (let f = 0; f < c.length; f++) {
|
|
142
|
+
const d = c[f];
|
|
143
|
+
tn.call(i, d) && o(i[d], d);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return n;
|
|
147
|
+
}
|
|
148
|
+
const Vr = (e, t, r, { allOwnKeys: n } = {}) => (xe(
|
|
149
|
+
t,
|
|
150
|
+
(o, s) => {
|
|
151
|
+
r && U(o) ? Object.defineProperty(e, s, {
|
|
152
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
153
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
154
|
+
__proto__: null,
|
|
155
|
+
value: Ct(o, r),
|
|
156
|
+
writable: !0,
|
|
157
|
+
enumerable: !0,
|
|
158
|
+
configurable: !0
|
|
159
|
+
}) : Object.defineProperty(e, s, {
|
|
160
|
+
__proto__: null,
|
|
161
|
+
value: o,
|
|
162
|
+
writable: !0,
|
|
163
|
+
enumerable: !0,
|
|
164
|
+
configurable: !0
|
|
165
|
+
});
|
|
166
|
+
},
|
|
167
|
+
{ allOwnKeys: n }
|
|
168
|
+
), e), qr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Wr = (e, t, r, n) => {
|
|
169
|
+
e.prototype = Object.create(t.prototype, n), Object.defineProperty(e.prototype, "constructor", {
|
|
170
|
+
__proto__: null,
|
|
171
|
+
value: e,
|
|
172
|
+
writable: !0,
|
|
173
|
+
enumerable: !1,
|
|
174
|
+
configurable: !0
|
|
175
|
+
}), Object.defineProperty(e, "super", {
|
|
176
|
+
__proto__: null,
|
|
177
|
+
value: t.prototype
|
|
178
|
+
}), r && Object.assign(e.prototype, r);
|
|
179
|
+
}, Xr = (e, t, r, n) => {
|
|
180
|
+
let o, s, a;
|
|
181
|
+
const i = {};
|
|
182
|
+
if (t = t || {}, e == null) return t;
|
|
183
|
+
do {
|
|
184
|
+
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
185
|
+
a = o[s], (!n || n(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
186
|
+
e = r !== !1 && K(e);
|
|
187
|
+
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
188
|
+
return t;
|
|
189
|
+
}, Jr = (e, t, r) => {
|
|
190
|
+
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
191
|
+
const n = e.indexOf(t, r);
|
|
192
|
+
return n !== -1 && n === r;
|
|
193
|
+
}, Kr = (e) => {
|
|
194
|
+
if (!e) return null;
|
|
195
|
+
if (re(e)) return e;
|
|
196
|
+
let t = e.length;
|
|
197
|
+
if (!Ft(t)) return null;
|
|
198
|
+
const r = new Array(t);
|
|
199
|
+
for (; t-- > 0; )
|
|
200
|
+
r[t] = e[t];
|
|
201
|
+
return r;
|
|
202
|
+
}, Qr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && K(Uint8Array)), Yr = (e, t) => {
|
|
203
|
+
const n = (e && e[we]).call(e);
|
|
204
|
+
let o;
|
|
205
|
+
for (; (o = n.next()) && !o.done; ) {
|
|
206
|
+
const s = o.value;
|
|
207
|
+
t.call(e, s[0], s[1]);
|
|
208
|
+
}
|
|
209
|
+
}, Gr = (e, t) => {
|
|
210
|
+
let r;
|
|
211
|
+
const n = [];
|
|
212
|
+
for (; (r = e.exec(t)) !== null; )
|
|
213
|
+
n.push(r);
|
|
214
|
+
return n;
|
|
215
|
+
}, Zr = j("HTMLFormElement"), en = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, o) {
|
|
216
|
+
return n.toUpperCase() + o;
|
|
217
|
+
}), { propertyIsEnumerable: tn } = Object.prototype, rn = j("RegExp"), It = (e, t) => {
|
|
218
|
+
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
219
|
+
xe(r, (o, s) => {
|
|
220
|
+
let a;
|
|
221
|
+
(a = t(o, s, e)) !== !1 && (n[s] = a || o);
|
|
222
|
+
}), Object.defineProperties(e, n);
|
|
223
|
+
}, nn = (e) => {
|
|
224
|
+
It(e, (t, r) => {
|
|
225
|
+
if (U(e) && ["arguments", "caller", "callee"].includes(r))
|
|
226
|
+
return !1;
|
|
227
|
+
const n = e[r];
|
|
228
|
+
if (U(n)) {
|
|
229
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
230
|
+
t.writable = !1;
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
t.set || (t.set = () => {
|
|
234
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}, on = (e, t) => {
|
|
239
|
+
const r = {}, n = (o) => {
|
|
240
|
+
o.forEach((s) => {
|
|
241
|
+
r[s] = !0;
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
return re(e) ? n(e) : n(String(e).split(t)), r;
|
|
245
|
+
}, sn = () => {
|
|
246
|
+
}, an = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
247
|
+
function ln(e) {
|
|
248
|
+
return !!(e && U(e.append) && e[Nt] === "FormData" && e[we]);
|
|
249
|
+
}
|
|
250
|
+
const cn = (e) => {
|
|
251
|
+
const t = /* @__PURE__ */ new WeakSet(), r = (n) => {
|
|
252
|
+
if (le(n)) {
|
|
253
|
+
if (t.has(n))
|
|
254
|
+
return;
|
|
255
|
+
if (ie(n))
|
|
256
|
+
return n;
|
|
257
|
+
if (!("toJSON" in n)) {
|
|
258
|
+
t.add(n);
|
|
259
|
+
let o;
|
|
260
|
+
if (Lr(n)) {
|
|
261
|
+
o = [];
|
|
262
|
+
for (const s of n) {
|
|
263
|
+
const a = r(s);
|
|
264
|
+
!ne(a) && o.push(a);
|
|
265
|
+
}
|
|
266
|
+
} else
|
|
267
|
+
o = re(n) ? [] : {}, xe(n, (s, a) => {
|
|
268
|
+
const i = r(s);
|
|
269
|
+
!ne(i) && (o[a] = i);
|
|
270
|
+
});
|
|
271
|
+
return t.delete(n), o;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return n;
|
|
275
|
+
};
|
|
276
|
+
return r(e);
|
|
277
|
+
}, dn = j("AsyncFunction"), un = (e) => e && (le(e) || U(e)) && U(e.then) && U(e.catch), Mt = ((e, t) => e ? setImmediate : t ? ((r, n) => (ee.addEventListener(
|
|
278
|
+
"message",
|
|
279
|
+
({ source: o, data: s }) => {
|
|
280
|
+
o === ee && s === r && n.length && n.shift()();
|
|
281
|
+
},
|
|
282
|
+
!1
|
|
283
|
+
), (o) => {
|
|
284
|
+
n.push(o), ee.postMessage(r, "*");
|
|
285
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", U(ee.postMessage)), fn = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || Mt, $t = (e) => e != null && U(e[we]), pn = (e) => e != null && me(e, we) && $t(e), l = {
|
|
286
|
+
isArray: re,
|
|
287
|
+
isArrayBuffer: Ut,
|
|
288
|
+
isBuffer: ie,
|
|
289
|
+
isFormData: jr,
|
|
290
|
+
isArrayBufferView: Sr,
|
|
291
|
+
isString: Or,
|
|
292
|
+
isNumber: Ft,
|
|
293
|
+
isBoolean: kr,
|
|
294
|
+
isObject: le,
|
|
295
|
+
isPlainObject: ke,
|
|
296
|
+
isEmptyObject: vr,
|
|
297
|
+
isReadableStream: Ir,
|
|
298
|
+
isRequest: Mr,
|
|
299
|
+
isResponse: $r,
|
|
300
|
+
isHeaders: Hr,
|
|
301
|
+
isUndefined: ne,
|
|
302
|
+
isDate: Ar,
|
|
303
|
+
isFile: Pr,
|
|
304
|
+
isReactNativeBlob: Tr,
|
|
305
|
+
isReactNative: Cr,
|
|
306
|
+
isBlob: Nr,
|
|
307
|
+
isRegExp: rn,
|
|
308
|
+
isFunction: U,
|
|
309
|
+
isStream: Ur,
|
|
310
|
+
isURLSearchParams: Br,
|
|
311
|
+
isTypedArray: Qr,
|
|
312
|
+
isFileList: Dr,
|
|
313
|
+
forEach: xe,
|
|
314
|
+
merge: Xe,
|
|
315
|
+
extend: Vr,
|
|
316
|
+
trim: zr,
|
|
317
|
+
stripBOM: qr,
|
|
318
|
+
inherits: Wr,
|
|
319
|
+
toFlatObject: Xr,
|
|
320
|
+
kindOf: Qe,
|
|
321
|
+
kindOfTest: j,
|
|
322
|
+
endsWith: Jr,
|
|
323
|
+
toArray: Kr,
|
|
324
|
+
forEachEntry: Yr,
|
|
325
|
+
matchAll: Gr,
|
|
326
|
+
isHTMLForm: Zr,
|
|
327
|
+
hasOwnProperty: he,
|
|
328
|
+
hasOwnProp: he,
|
|
329
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
330
|
+
hasOwnInPrototypeChain: me,
|
|
331
|
+
getSafeProp: Er,
|
|
332
|
+
toSafeFlatObject: Rr,
|
|
333
|
+
reduceDescriptors: It,
|
|
334
|
+
freezeMethods: nn,
|
|
335
|
+
toObjectSet: on,
|
|
336
|
+
toCamelCase: en,
|
|
337
|
+
noop: sn,
|
|
338
|
+
toFiniteNumber: an,
|
|
339
|
+
findKey: jt,
|
|
340
|
+
global: ee,
|
|
341
|
+
isContextDefined: Bt,
|
|
342
|
+
isSpecCompliantForm: ln,
|
|
343
|
+
toJSONObject: cn,
|
|
344
|
+
isAsyncFn: dn,
|
|
345
|
+
isThenable: un,
|
|
346
|
+
setImmediate: Mt,
|
|
347
|
+
asap: fn,
|
|
348
|
+
isIterable: $t,
|
|
349
|
+
isSafeIterable: pn
|
|
350
|
+
}, gn = l.toObjectSet([
|
|
351
|
+
"age",
|
|
352
|
+
"authorization",
|
|
353
|
+
"content-length",
|
|
354
|
+
"content-type",
|
|
355
|
+
"etag",
|
|
356
|
+
"expires",
|
|
357
|
+
"from",
|
|
358
|
+
"host",
|
|
359
|
+
"if-modified-since",
|
|
360
|
+
"if-unmodified-since",
|
|
361
|
+
"last-modified",
|
|
362
|
+
"location",
|
|
363
|
+
"max-forwards",
|
|
364
|
+
"proxy-authorization",
|
|
365
|
+
"referer",
|
|
366
|
+
"retry-after",
|
|
367
|
+
"user-agent"
|
|
368
|
+
]), bn = (e) => {
|
|
369
|
+
const t = {};
|
|
370
|
+
let r, n, o;
|
|
371
|
+
return e && e.split(`
|
|
372
|
+
`).forEach(function(a) {
|
|
373
|
+
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim();
|
|
374
|
+
const i = l.hasOwnProp(t, r);
|
|
375
|
+
!r || i && l.hasOwnProp(gn, r) || (r === "set-cookie" ? i ? t[r].push(n) : t[r] = [n] : t[r] = i ? t[r] + ", " + n : n);
|
|
376
|
+
}), t;
|
|
377
|
+
};
|
|
378
|
+
function hn(e) {
|
|
379
|
+
let t = 0, r = e.length;
|
|
380
|
+
for (; t < r; ) {
|
|
381
|
+
const n = e.charCodeAt(t);
|
|
382
|
+
if (n !== 9 && n !== 32)
|
|
383
|
+
break;
|
|
384
|
+
t += 1;
|
|
385
|
+
}
|
|
386
|
+
for (; r > t; ) {
|
|
387
|
+
const n = e.charCodeAt(r - 1);
|
|
388
|
+
if (n !== 9 && n !== 32)
|
|
389
|
+
break;
|
|
390
|
+
r -= 1;
|
|
391
|
+
}
|
|
392
|
+
return t === 0 && r === e.length ? e : e.slice(t, r);
|
|
393
|
+
}
|
|
394
|
+
const mn = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), wn = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
395
|
+
function Ye(e, t) {
|
|
396
|
+
return l.isArray(e) ? e.map((r) => Ye(r, t)) : hn(String(e).replace(t, ""));
|
|
397
|
+
}
|
|
398
|
+
const xn = (e) => Ye(e, mn), yn = (e) => Ye(e, wn);
|
|
399
|
+
function Ht(e) {
|
|
400
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
401
|
+
return l.forEach(e.toJSON(), (r, n) => {
|
|
402
|
+
t[n] = yn(r);
|
|
403
|
+
}), t;
|
|
404
|
+
}
|
|
405
|
+
const pt = Symbol("internals");
|
|
406
|
+
function fe(e) {
|
|
407
|
+
return e && String(e).trim().toLowerCase();
|
|
408
|
+
}
|
|
409
|
+
function ve(e) {
|
|
410
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map(ve) : xn(String(e));
|
|
411
|
+
}
|
|
412
|
+
function _n(e) {
|
|
413
|
+
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
414
|
+
let n;
|
|
415
|
+
for (; n = r.exec(e); )
|
|
416
|
+
t[n[1]] = n[2];
|
|
417
|
+
return t;
|
|
418
|
+
}
|
|
419
|
+
const En = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
420
|
+
function Be(e) {
|
|
421
|
+
let t = 0, r = e.length;
|
|
422
|
+
for (; t < r; ) {
|
|
423
|
+
const n = e.charCodeAt(t);
|
|
424
|
+
if (n !== 9 && n !== 32)
|
|
425
|
+
break;
|
|
426
|
+
t += 1;
|
|
427
|
+
}
|
|
428
|
+
for (; r > t; ) {
|
|
429
|
+
const n = e.charCodeAt(r - 1);
|
|
430
|
+
if (n !== 9 && n !== 32)
|
|
431
|
+
break;
|
|
432
|
+
r -= 1;
|
|
433
|
+
}
|
|
434
|
+
return t === 0 && r === e.length ? e : e.slice(t, r);
|
|
435
|
+
}
|
|
436
|
+
function Rn(e) {
|
|
437
|
+
const t = e.length - 1;
|
|
438
|
+
if (t < 1 || e.charCodeAt(0) !== 34 || e.charCodeAt(t) !== 34)
|
|
439
|
+
return e;
|
|
440
|
+
let r = "";
|
|
441
|
+
for (let n = 1; n < t; n++) {
|
|
442
|
+
const o = e.charCodeAt(n);
|
|
443
|
+
if (o === 34 || o === 92 && (n += 1, n >= t))
|
|
444
|
+
return e;
|
|
445
|
+
r += e[n];
|
|
446
|
+
}
|
|
447
|
+
return r;
|
|
448
|
+
}
|
|
449
|
+
function Sn(e) {
|
|
450
|
+
const t = /* @__PURE__ */ Object.create(null), r = String(e);
|
|
451
|
+
let n = 0, o = !1, s = !1;
|
|
452
|
+
function a(i) {
|
|
453
|
+
const c = Be(r.slice(n, i)), f = c.indexOf("=");
|
|
454
|
+
if (f < 1)
|
|
455
|
+
return;
|
|
456
|
+
const d = Be(c.slice(0, f));
|
|
457
|
+
if (!En.test(d))
|
|
458
|
+
return;
|
|
459
|
+
const p = d.toLowerCase();
|
|
460
|
+
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
461
|
+
return;
|
|
462
|
+
const h = Be(c.slice(f + 1));
|
|
463
|
+
t[p] = Rn(h);
|
|
464
|
+
}
|
|
465
|
+
for (let i = 0; i < r.length; i++) {
|
|
466
|
+
const c = r.charCodeAt(i);
|
|
467
|
+
o ? s ? s = !1 : c === 92 ? s = !0 : c === 34 && (o = !1) : c === 34 ? o = !0 : (c === 44 || c === 59) && (a(i), n = i + 1);
|
|
468
|
+
}
|
|
469
|
+
return a(r.length), t;
|
|
470
|
+
}
|
|
471
|
+
const On = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
472
|
+
function Ie(e, t, r, n, o) {
|
|
473
|
+
if (l.isFunction(n))
|
|
474
|
+
return n.call(this, t, r);
|
|
475
|
+
if (o && (t = r), !!l.isString(t)) {
|
|
476
|
+
if (l.isString(n))
|
|
477
|
+
return t.indexOf(n) !== -1;
|
|
478
|
+
if (l.isRegExp(n))
|
|
479
|
+
return n.test(t);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
function kn(e) {
|
|
483
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
484
|
+
}
|
|
485
|
+
function vn(e, t) {
|
|
486
|
+
const r = l.toCamelCase(" " + t);
|
|
487
|
+
["get", "set", "has"].forEach((n) => {
|
|
488
|
+
Object.defineProperty(e, n + r, {
|
|
489
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
490
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
491
|
+
__proto__: null,
|
|
492
|
+
value: function(o, s, a) {
|
|
493
|
+
return this[n].call(this, t, o, s, a);
|
|
494
|
+
},
|
|
495
|
+
configurable: !0
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
let L = class {
|
|
500
|
+
constructor(t) {
|
|
501
|
+
t && this.set(t);
|
|
502
|
+
}
|
|
503
|
+
set(t, r, n) {
|
|
504
|
+
const o = this;
|
|
505
|
+
function s(i, c, f) {
|
|
506
|
+
const d = fe(c);
|
|
507
|
+
if (!d)
|
|
508
|
+
return;
|
|
509
|
+
const p = l.findKey(o, d);
|
|
510
|
+
(!p || o[p] === void 0 || f === !0 || f === void 0 && o[p] !== !1) && (o[p || c] = ve(i));
|
|
511
|
+
}
|
|
512
|
+
const a = (i, c) => l.forEach(i, (f, d) => s(f, d, c));
|
|
513
|
+
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
514
|
+
a(t, r);
|
|
515
|
+
else if (l.isString(t) && (t = t.trim()) && !On(t))
|
|
516
|
+
a(bn(t), r);
|
|
517
|
+
else if (l.isObject(t) && l.isSafeIterable(t)) {
|
|
518
|
+
let i = /* @__PURE__ */ Object.create(null), c, f;
|
|
519
|
+
for (const d of t) {
|
|
520
|
+
if (!l.isArray(d))
|
|
521
|
+
throw new TypeError("Object iterator must return a key-value pair");
|
|
522
|
+
f = d[0], l.hasOwnProp(i, f) ? (c = i[f], i[f] = l.isArray(c) ? [...c, d[1]] : [c, d[1]]) : i[f] = d[1];
|
|
523
|
+
}
|
|
524
|
+
a(i, r);
|
|
525
|
+
} else
|
|
526
|
+
t != null && s(r, t, n);
|
|
527
|
+
return this;
|
|
528
|
+
}
|
|
529
|
+
get(t, r) {
|
|
530
|
+
if (t = fe(t), t) {
|
|
531
|
+
const n = l.findKey(this, t);
|
|
532
|
+
if (n) {
|
|
533
|
+
const o = this[n];
|
|
534
|
+
if (!r)
|
|
535
|
+
return o;
|
|
536
|
+
if (r === !0)
|
|
537
|
+
return _n(o);
|
|
538
|
+
if (l.isFunction(r))
|
|
539
|
+
return r.call(this, o, n);
|
|
540
|
+
if (l.isRegExp(r))
|
|
541
|
+
return r.exec(o);
|
|
542
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
has(t, r) {
|
|
547
|
+
if (t = fe(t), t) {
|
|
548
|
+
const n = l.findKey(this, t);
|
|
549
|
+
return !!(n && this[n] !== void 0 && (!r || Ie(this, this[n], n, r)));
|
|
550
|
+
}
|
|
551
|
+
return !1;
|
|
552
|
+
}
|
|
553
|
+
delete(t, r) {
|
|
554
|
+
const n = this;
|
|
555
|
+
let o = !1;
|
|
556
|
+
function s(a) {
|
|
557
|
+
if (a = fe(a), a) {
|
|
558
|
+
const i = l.findKey(n, a);
|
|
559
|
+
i && (!r || Ie(n, n[i], i, r)) && (delete n[i], o = !0);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return l.isArray(t) ? t.forEach(s) : s(t), o;
|
|
563
|
+
}
|
|
564
|
+
clear(t) {
|
|
565
|
+
const r = Object.keys(this);
|
|
566
|
+
let n = r.length, o = !1;
|
|
567
|
+
for (; n--; ) {
|
|
568
|
+
const s = r[n];
|
|
569
|
+
(!t || Ie(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
570
|
+
}
|
|
571
|
+
return o;
|
|
572
|
+
}
|
|
573
|
+
normalize(t) {
|
|
574
|
+
const r = this, n = {};
|
|
575
|
+
return l.forEach(this, (o, s) => {
|
|
576
|
+
const a = l.findKey(n, s);
|
|
577
|
+
if (a) {
|
|
578
|
+
r[a] = ve(o), delete r[s];
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
const i = t ? kn(s) : String(s).trim();
|
|
582
|
+
i !== s && delete r[s], r[i] = ve(o), n[i] = !0;
|
|
583
|
+
}), this;
|
|
584
|
+
}
|
|
585
|
+
concat(...t) {
|
|
586
|
+
return this.constructor.concat(this, ...t);
|
|
587
|
+
}
|
|
588
|
+
toJSON(t) {
|
|
589
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
590
|
+
return l.forEach(this, (n, o) => {
|
|
591
|
+
n != null && n !== !1 && (r[o] = t && l.isArray(n) ? n.join(", ") : n);
|
|
592
|
+
}), r;
|
|
593
|
+
}
|
|
594
|
+
[Symbol.iterator]() {
|
|
595
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
596
|
+
}
|
|
597
|
+
toString() {
|
|
598
|
+
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
|
|
599
|
+
`);
|
|
600
|
+
}
|
|
601
|
+
getSetCookie() {
|
|
602
|
+
const t = this.get("set-cookie");
|
|
603
|
+
return l.isArray(t) ? t : t == null || t === !1 ? [] : [t];
|
|
604
|
+
}
|
|
605
|
+
get [Symbol.toStringTag]() {
|
|
606
|
+
return "AxiosHeaders";
|
|
607
|
+
}
|
|
608
|
+
static from(t) {
|
|
609
|
+
return t instanceof this ? t : new this(t);
|
|
610
|
+
}
|
|
611
|
+
static parseParameters(t) {
|
|
612
|
+
return Sn(t);
|
|
613
|
+
}
|
|
614
|
+
static concat(t, ...r) {
|
|
615
|
+
const n = new this(t);
|
|
616
|
+
return r.forEach((o) => n.set(o)), n;
|
|
617
|
+
}
|
|
618
|
+
static accessor(t) {
|
|
619
|
+
const n = (this[pt] = this[pt] = {
|
|
620
|
+
accessors: {}
|
|
621
|
+
}).accessors, o = this.prototype;
|
|
622
|
+
function s(a) {
|
|
623
|
+
const i = fe(a);
|
|
624
|
+
n[i] || (vn(o, a), n[i] = !0);
|
|
625
|
+
}
|
|
626
|
+
return l.isArray(t) ? t.forEach(s) : s(t), this;
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
L.accessor([
|
|
630
|
+
"Content-Type",
|
|
631
|
+
"Content-Length",
|
|
632
|
+
"Accept",
|
|
633
|
+
"Accept-Encoding",
|
|
634
|
+
"User-Agent",
|
|
635
|
+
"Authorization"
|
|
636
|
+
]);
|
|
637
|
+
l.reduceDescriptors(L.prototype, ({ value: e }, t) => {
|
|
638
|
+
let r = t[0].toUpperCase() + t.slice(1);
|
|
639
|
+
return {
|
|
640
|
+
get: () => e,
|
|
641
|
+
set(n) {
|
|
642
|
+
this[r] = n;
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
});
|
|
646
|
+
l.freezeMethods(L);
|
|
647
|
+
const Te = "[REDACTED ****]";
|
|
648
|
+
function An(e) {
|
|
649
|
+
if (l.hasOwnProp(e, "toJSON"))
|
|
650
|
+
return !0;
|
|
651
|
+
let t = Object.getPrototypeOf(e);
|
|
652
|
+
for (; t && t !== Object.prototype; ) {
|
|
653
|
+
if (l.hasOwnProp(t, "toJSON"))
|
|
654
|
+
return !0;
|
|
655
|
+
t = Object.getPrototypeOf(t);
|
|
656
|
+
}
|
|
657
|
+
return !1;
|
|
658
|
+
}
|
|
659
|
+
function Pn(e, t) {
|
|
660
|
+
const r = new Set(t.map((s) => String(s).toLowerCase())), n = [], o = (s) => {
|
|
661
|
+
if (s === null || typeof s != "object" || l.isBuffer(s)) return s;
|
|
662
|
+
if (n.indexOf(s) !== -1) return;
|
|
663
|
+
s instanceof L && (s = s.toJSON()), n.push(s);
|
|
664
|
+
let a;
|
|
665
|
+
if (l.isArray(s))
|
|
666
|
+
a = [], s.forEach((i, c) => {
|
|
667
|
+
const f = o(i);
|
|
668
|
+
l.isUndefined(f) || (a[c] = f);
|
|
669
|
+
});
|
|
670
|
+
else {
|
|
671
|
+
if (!l.isPlainObject(s) && An(s))
|
|
672
|
+
return n.pop(), s;
|
|
673
|
+
a = /* @__PURE__ */ Object.create(null);
|
|
674
|
+
for (const [i, c] of Object.entries(s)) {
|
|
675
|
+
const f = r.has(i.toLowerCase()) ? Te : o(c);
|
|
676
|
+
l.isUndefined(f) || (a[i] = f);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return n.pop(), a;
|
|
680
|
+
};
|
|
681
|
+
return o(e);
|
|
682
|
+
}
|
|
683
|
+
function gt(e) {
|
|
684
|
+
try {
|
|
685
|
+
return String(e);
|
|
686
|
+
} catch {
|
|
687
|
+
return "";
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
function Tn(e) {
|
|
691
|
+
return e.errors.map((r) => {
|
|
692
|
+
try {
|
|
693
|
+
return r && r.message ? gt(r.message) : gt(r);
|
|
694
|
+
} catch {
|
|
695
|
+
return "";
|
|
696
|
+
}
|
|
697
|
+
}).filter(Boolean).join("; ") || e.name || "AggregateError";
|
|
698
|
+
}
|
|
699
|
+
let g = class zt extends Error {
|
|
700
|
+
static from(t, r, n, o, s, a) {
|
|
701
|
+
let i = t.message;
|
|
702
|
+
!i && l.isArray(t.errors) && t.errors.length && (i = Tn(t));
|
|
703
|
+
const c = new zt(i, r || t.code, n, o, s);
|
|
704
|
+
return Object.defineProperty(c, "cause", {
|
|
705
|
+
__proto__: null,
|
|
706
|
+
value: t,
|
|
707
|
+
writable: !0,
|
|
708
|
+
enumerable: !1,
|
|
709
|
+
configurable: !0
|
|
710
|
+
}), c.name = t.name, t.status != null && c.status == null && (c.status = t.status), a && Object.assign(c, a), c;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
714
|
+
*
|
|
715
|
+
* @param {string} message The error message.
|
|
716
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
717
|
+
* @param {Object} [config] The config.
|
|
718
|
+
* @param {Object} [request] The request.
|
|
719
|
+
* @param {Object} [response] The response.
|
|
720
|
+
*
|
|
721
|
+
* @returns {Error} The created error.
|
|
722
|
+
*/
|
|
723
|
+
constructor(t, r, n, o, s) {
|
|
724
|
+
super(t), Object.defineProperty(this, "message", {
|
|
725
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
726
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
727
|
+
__proto__: null,
|
|
728
|
+
value: t,
|
|
729
|
+
enumerable: !0,
|
|
730
|
+
writable: !0,
|
|
731
|
+
configurable: !0
|
|
732
|
+
}), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), n && (this.config = n), o && (this.request = o), s && (this.response = s, this.status = s.status);
|
|
733
|
+
}
|
|
734
|
+
toJSON() {
|
|
735
|
+
const t = this.config, r = t && l.hasOwnProp(t, "redact") ? t.redact : void 0, n = l.isArray(r) && r.length > 0 ? Pn(t, r) : l.toJSONObject(t);
|
|
736
|
+
return {
|
|
737
|
+
// Standard
|
|
738
|
+
message: this.message,
|
|
739
|
+
name: this.name,
|
|
740
|
+
// Microsoft
|
|
741
|
+
description: this.description,
|
|
742
|
+
number: this.number,
|
|
743
|
+
// Mozilla
|
|
744
|
+
fileName: this.fileName,
|
|
745
|
+
lineNumber: this.lineNumber,
|
|
746
|
+
columnNumber: this.columnNumber,
|
|
747
|
+
stack: this.stack,
|
|
748
|
+
// Axios
|
|
749
|
+
config: n,
|
|
750
|
+
code: this.code,
|
|
751
|
+
status: this.status
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
g.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
756
|
+
g.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
757
|
+
g.ECONNABORTED = "ECONNABORTED";
|
|
758
|
+
g.ETIMEDOUT = "ETIMEDOUT";
|
|
759
|
+
g.ECONNREFUSED = "ECONNREFUSED";
|
|
760
|
+
g.ERR_NETWORK = "ERR_NETWORK";
|
|
761
|
+
g.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
762
|
+
g.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
763
|
+
g.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
764
|
+
g.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
765
|
+
g.ERR_CANCELED = "ERR_CANCELED";
|
|
766
|
+
g.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
767
|
+
g.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
768
|
+
g.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
769
|
+
const Cn = null, Vt = 100;
|
|
770
|
+
function Je(e) {
|
|
771
|
+
return l.isPlainObject(e) || l.isArray(e);
|
|
772
|
+
}
|
|
773
|
+
function qt(e) {
|
|
774
|
+
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
775
|
+
}
|
|
776
|
+
function Me(e, t, r) {
|
|
777
|
+
return e ? e.concat(t).map(function(o, s) {
|
|
778
|
+
return o = qt(o), !r && s ? "[" + o + "]" : o;
|
|
779
|
+
}).join(r ? "." : "") : t;
|
|
780
|
+
}
|
|
781
|
+
function Nn(e) {
|
|
782
|
+
return l.isArray(e) && !e.some(Je);
|
|
783
|
+
}
|
|
784
|
+
const Dn = l.toFlatObject(l, {}, null, function(t) {
|
|
785
|
+
return /^is[A-Z]/.test(t);
|
|
786
|
+
});
|
|
787
|
+
function De(e, t, r) {
|
|
788
|
+
if (!l.isObject(e))
|
|
789
|
+
throw new TypeError("target must be an object");
|
|
790
|
+
t = t || new FormData();
|
|
791
|
+
const n = (b, y) => {
|
|
792
|
+
const w = l.getSafeProp(r, b);
|
|
793
|
+
return l.isUndefined(w) ? y : w;
|
|
794
|
+
}, o = n("metaTokens", !0), s = n("visitor") || E, a = n("dots", !1), i = n("indexes", !1), c = n("Blob") || typeof Blob < "u" && Blob, f = n("maxDepth", Vt), d = c && l.isSpecCompliantForm(t), p = [];
|
|
795
|
+
if (!l.isFunction(s))
|
|
796
|
+
throw new TypeError("visitor must be a function");
|
|
797
|
+
function h(b) {
|
|
798
|
+
if (b === null) return "";
|
|
799
|
+
if (l.isDate(b))
|
|
800
|
+
return b.toISOString();
|
|
801
|
+
if (l.isBoolean(b))
|
|
802
|
+
return b.toString();
|
|
803
|
+
if (!d && l.isBlob(b))
|
|
804
|
+
throw new g("Blob is not supported. Use a Buffer instead.");
|
|
805
|
+
if (l.isArrayBuffer(b) || l.isTypedArray(b)) {
|
|
806
|
+
if (d && typeof c == "function")
|
|
807
|
+
return new c([b]);
|
|
808
|
+
throw new g(
|
|
809
|
+
"Blob is not supported. Use a Buffer instead.",
|
|
810
|
+
g.ERR_NOT_SUPPORT
|
|
811
|
+
);
|
|
812
|
+
}
|
|
813
|
+
return b;
|
|
814
|
+
}
|
|
815
|
+
function m(b) {
|
|
816
|
+
if (b > f)
|
|
817
|
+
throw new g(
|
|
818
|
+
"Object is too deeply nested (" + b + " levels). Max depth: " + f,
|
|
819
|
+
g.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
820
|
+
);
|
|
821
|
+
}
|
|
822
|
+
function _(b, y) {
|
|
823
|
+
if (f === 1 / 0)
|
|
824
|
+
return JSON.stringify(b);
|
|
825
|
+
const w = [];
|
|
826
|
+
return JSON.stringify(b, function(C, S) {
|
|
827
|
+
if (!l.isObject(S))
|
|
828
|
+
return S;
|
|
829
|
+
for (; w.length && w[w.length - 1] !== this; )
|
|
830
|
+
w.pop();
|
|
831
|
+
return w.push(S), m(y + w.length - 1), S;
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
function E(b, y, w) {
|
|
835
|
+
let v = b;
|
|
836
|
+
if (l.isReactNative(t) && l.isReactNativeBlob(b))
|
|
837
|
+
return t.append(Me(w, y, a), h(b)), !1;
|
|
838
|
+
if (b && !w && typeof b == "object") {
|
|
839
|
+
if (l.endsWith(y, "{}"))
|
|
840
|
+
y = o ? y : y.slice(0, -2), b = _(b, 1);
|
|
841
|
+
else if (l.isArray(b) && Nn(b) || (l.isFileList(b) || l.endsWith(y, "[]")) && (v = l.toArray(b)))
|
|
842
|
+
return y = qt(y), v.forEach(function(S, I) {
|
|
843
|
+
!(l.isUndefined(S) || S === null) && t.append(
|
|
844
|
+
// eslint-disable-next-line no-nested-ternary
|
|
845
|
+
i === !0 ? Me([y], I, a) : i === null ? y : y + "[]",
|
|
846
|
+
h(S)
|
|
847
|
+
);
|
|
848
|
+
}), !1;
|
|
849
|
+
}
|
|
850
|
+
return Je(b) ? !0 : (t.append(Me(w, y, a), h(b)), !1);
|
|
851
|
+
}
|
|
852
|
+
const k = Object.assign(Dn, {
|
|
853
|
+
defaultVisitor: E,
|
|
854
|
+
convertValue: h,
|
|
855
|
+
isVisitable: Je
|
|
856
|
+
});
|
|
857
|
+
function u(b, y, w = 0) {
|
|
858
|
+
if (!l.isUndefined(b)) {
|
|
859
|
+
if (m(w), p.indexOf(b) !== -1)
|
|
860
|
+
throw new Error("Circular reference detected in " + y.join("."));
|
|
861
|
+
p.push(b), l.forEach(b, function(C, S) {
|
|
862
|
+
(!(l.isUndefined(C) || C === null) && s.call(t, C, l.isString(S) ? S.trim() : S, y, k)) === !0 && u(C, y ? y.concat(S) : [S], w + 1);
|
|
863
|
+
}), p.pop();
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
if (!l.isObject(e))
|
|
867
|
+
throw new TypeError("data must be an object");
|
|
868
|
+
return u(e), t;
|
|
869
|
+
}
|
|
870
|
+
function bt(e) {
|
|
871
|
+
const t = {
|
|
872
|
+
"!": "%21",
|
|
873
|
+
"'": "%27",
|
|
874
|
+
"(": "%28",
|
|
875
|
+
")": "%29",
|
|
876
|
+
"~": "%7E",
|
|
877
|
+
"%20": "+"
|
|
878
|
+
};
|
|
879
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20/g, function(n) {
|
|
880
|
+
return t[n];
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
function Ge(e, t) {
|
|
884
|
+
this._pairs = [], e && De(e, this, t);
|
|
885
|
+
}
|
|
886
|
+
const Wt = Ge.prototype;
|
|
887
|
+
Wt.append = function(t, r) {
|
|
888
|
+
this._pairs.push([t, r]);
|
|
889
|
+
};
|
|
890
|
+
Wt.toString = function(t) {
|
|
891
|
+
const r = t ? (n) => t.call(this, n, bt) : bt;
|
|
892
|
+
return this._pairs.map(function(o) {
|
|
893
|
+
return r(o[0]) + "=" + r(o[1]);
|
|
894
|
+
}, "").join("&");
|
|
895
|
+
};
|
|
896
|
+
function Ln(e) {
|
|
897
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
898
|
+
}
|
|
899
|
+
function Xt(e, t, r) {
|
|
900
|
+
if (!t)
|
|
901
|
+
return e;
|
|
902
|
+
e = e || "";
|
|
903
|
+
const n = l.isFunction(r) ? {
|
|
904
|
+
serialize: r
|
|
905
|
+
} : r, o = l.getSafeProp(n, "encode") || Ln, s = l.getSafeProp(n, "serialize");
|
|
906
|
+
let a;
|
|
907
|
+
if (s ? a = s(t, n) : a = l.isURLSearchParams(t) ? t.toString() : new Ge(t, n).toString(o), a) {
|
|
908
|
+
const i = e.indexOf("#");
|
|
909
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
910
|
+
}
|
|
911
|
+
return e;
|
|
912
|
+
}
|
|
913
|
+
const pe = Symbol("internals");
|
|
914
|
+
function Jt(e) {
|
|
915
|
+
return e ? e.length : 0;
|
|
916
|
+
}
|
|
917
|
+
function ht(e) {
|
|
918
|
+
if (e)
|
|
919
|
+
for (; e.length && e[e.length - 1] === null; )
|
|
920
|
+
e.pop();
|
|
921
|
+
}
|
|
922
|
+
function ge(e, t) {
|
|
923
|
+
const r = e.handlers, n = Jt(r);
|
|
924
|
+
r !== t.handlersRef ? (t.handlersRef = r, t.handlerEntries.clear()) : n !== t.handlersLength && (n ? t.handlerEntries.forEach(function(s, a) {
|
|
925
|
+
r[s.index] !== s.handler && t.handlerEntries.delete(a);
|
|
926
|
+
}) : t.handlerEntries.clear()), t.handlersLength = n;
|
|
927
|
+
}
|
|
928
|
+
class mt {
|
|
929
|
+
constructor() {
|
|
930
|
+
this.handlers = [], this[pe] = {
|
|
931
|
+
handlersRef: this.handlers,
|
|
932
|
+
handlersLength: this.handlers.length,
|
|
933
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
934
|
+
iterationDepth: 0,
|
|
935
|
+
nextId: 0
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Add a new interceptor to the stack
|
|
940
|
+
*
|
|
941
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
942
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
943
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
944
|
+
*
|
|
945
|
+
* @return {Number} An ID used to remove interceptor later
|
|
946
|
+
*/
|
|
947
|
+
use(t, r, n) {
|
|
948
|
+
const o = {
|
|
949
|
+
fulfilled: t,
|
|
950
|
+
rejected: r,
|
|
951
|
+
synchronous: n ? n.synchronous : !1,
|
|
952
|
+
runWhen: n ? n.runWhen : null
|
|
953
|
+
}, s = this[pe];
|
|
954
|
+
this.handlers == null && (this.handlers = []), ge(this, s);
|
|
955
|
+
const a = s.nextId++;
|
|
956
|
+
return this.handlers.push(o), s.handlerEntries.set(a, {
|
|
957
|
+
handler: o,
|
|
958
|
+
index: this.handlers.length - 1
|
|
959
|
+
}), s.handlersLength = this.handlers.length, a;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Remove an interceptor from the stack
|
|
963
|
+
*
|
|
964
|
+
* @param {Number} id The ID that was returned by `use`
|
|
965
|
+
*
|
|
966
|
+
* @returns {void}
|
|
967
|
+
*/
|
|
968
|
+
eject(t) {
|
|
969
|
+
const r = this[pe];
|
|
970
|
+
ge(this, r);
|
|
971
|
+
const n = r.handlerEntries.get(t);
|
|
972
|
+
if (n) {
|
|
973
|
+
if (r.handlerEntries.delete(t), this.handlers[n.index] !== n.handler)
|
|
974
|
+
return;
|
|
975
|
+
this.handlers[n.index] = null, r.iterationDepth || (ht(this.handlers), r.handlersLength = this.handlers.length);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Clear all interceptors from the stack
|
|
980
|
+
*
|
|
981
|
+
* @returns {void}
|
|
982
|
+
*/
|
|
983
|
+
clear() {
|
|
984
|
+
this.handlers && (this.handlers = [], ge(this, this[pe]));
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Iterate over all the registered interceptors
|
|
988
|
+
*
|
|
989
|
+
* This method is particularly useful for skipping over any
|
|
990
|
+
* interceptors that may have become `null` calling `eject`.
|
|
991
|
+
*
|
|
992
|
+
* @param {Function} fn The function to call for each interceptor
|
|
993
|
+
*
|
|
994
|
+
* @returns {void}
|
|
995
|
+
*/
|
|
996
|
+
forEach(t) {
|
|
997
|
+
const r = this[pe];
|
|
998
|
+
ge(this, r), r.iterationDepth++;
|
|
999
|
+
try {
|
|
1000
|
+
l.forEach(this.handlers, function(o) {
|
|
1001
|
+
o !== null && t(o);
|
|
1002
|
+
});
|
|
1003
|
+
} finally {
|
|
1004
|
+
--r.iterationDepth || (ge(this, r), ht(this.handlers), r.handlersLength = Jt(this.handlers));
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
const Ze = {
|
|
1009
|
+
silentJSONParsing: !0,
|
|
1010
|
+
forcedJSONParsing: !0,
|
|
1011
|
+
clarifyTimeoutError: !1,
|
|
1012
|
+
legacyInterceptorReqResOrdering: !0,
|
|
1013
|
+
advertiseZstdAcceptEncoding: !1,
|
|
1014
|
+
validateStatusUndefinedResolves: !0
|
|
1015
|
+
}, Un = typeof URLSearchParams < "u" ? URLSearchParams : Ge, Fn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Bn = {
|
|
1016
|
+
isBrowser: !0,
|
|
1017
|
+
classes: {
|
|
1018
|
+
URLSearchParams: Un,
|
|
1019
|
+
FormData: Fn,
|
|
1020
|
+
Blob: jn
|
|
1021
|
+
},
|
|
1022
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1023
|
+
}, et = typeof window < "u" && typeof document < "u", Ke = typeof navigator == "object" && navigator || void 0, In = et && (!Ke || ["ReactNative", "NativeScript", "NS"].indexOf(Ke.product) < 0), Mn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1024
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $n = et && window.location.href || "http://localhost", Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1025
|
+
__proto__: null,
|
|
1026
|
+
hasBrowserEnv: et,
|
|
1027
|
+
hasStandardBrowserEnv: In,
|
|
1028
|
+
hasStandardBrowserWebWorkerEnv: Mn,
|
|
1029
|
+
navigator: Ke,
|
|
1030
|
+
origin: $n
|
|
1031
|
+
}, Symbol.toStringTag, { value: "Module" })), A = {
|
|
1032
|
+
...Hn,
|
|
1033
|
+
...Bn
|
|
1034
|
+
};
|
|
1035
|
+
function zn(e, t) {
|
|
1036
|
+
return De(e, new A.classes.URLSearchParams(), {
|
|
1037
|
+
visitor: function(r, n, o, s) {
|
|
1038
|
+
return A.isNode && l.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
1039
|
+
},
|
|
1040
|
+
...t
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
const wt = Vt;
|
|
1044
|
+
function Kt(e) {
|
|
1045
|
+
if (e > wt)
|
|
1046
|
+
throw new g(
|
|
1047
|
+
"FormData field is too deeply nested (" + e + " levels). Max depth: " + wt,
|
|
1048
|
+
g.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
function Vn(e) {
|
|
1052
|
+
const t = [], r = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
1053
|
+
let n;
|
|
1054
|
+
for (; (n = r.exec(e)) !== null; )
|
|
1055
|
+
Kt(t.length), t.push(n[0] === "[]" ? "" : n[1] || n[0]);
|
|
1056
|
+
return t;
|
|
1057
|
+
}
|
|
1058
|
+
function qn(e) {
|
|
1059
|
+
const t = {}, r = Object.keys(e);
|
|
1060
|
+
let n;
|
|
1061
|
+
const o = r.length;
|
|
1062
|
+
let s;
|
|
1063
|
+
for (n = 0; n < o; n++)
|
|
1064
|
+
s = r[n], t[s] = e[s];
|
|
1065
|
+
return t;
|
|
1066
|
+
}
|
|
1067
|
+
function Qt(e) {
|
|
1068
|
+
function t(r, n, o, s) {
|
|
1069
|
+
Kt(s);
|
|
1070
|
+
let a = r[s++];
|
|
1071
|
+
if (a === "__proto__") return !0;
|
|
1072
|
+
const i = Number.isFinite(+a), c = s >= r.length;
|
|
1073
|
+
return a = !a && l.isArray(o) ? o.length : a, c ? (l.hasOwnProp(o, a) ? o[a] = l.isArray(o[a]) ? o[a].concat(n) : [o[a], n] : o[a] = n, !i) : ((!l.hasOwnProp(o, a) || !l.isObject(o[a])) && (o[a] = []), t(r, n, o[a], s) && l.isArray(o[a]) && (o[a] = qn(o[a])), !i);
|
|
1074
|
+
}
|
|
1075
|
+
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
1076
|
+
const r = {};
|
|
1077
|
+
return l.forEachEntry(e, (n, o) => {
|
|
1078
|
+
t(Vn(n), o, r, 0);
|
|
1079
|
+
}), r;
|
|
1080
|
+
}
|
|
1081
|
+
return null;
|
|
1082
|
+
}
|
|
1083
|
+
const Yt = Object.freeze([
|
|
1084
|
+
"get",
|
|
1085
|
+
"delete",
|
|
1086
|
+
"head",
|
|
1087
|
+
"options",
|
|
1088
|
+
"post",
|
|
1089
|
+
"put",
|
|
1090
|
+
"patch",
|
|
1091
|
+
"purge",
|
|
1092
|
+
"link",
|
|
1093
|
+
"unlink",
|
|
1094
|
+
"query"
|
|
1095
|
+
]), ae = (e, t) => e != null && l.hasOwnProp(e, t) ? e[t] : void 0;
|
|
1096
|
+
function Wn(e, t, r) {
|
|
1097
|
+
if (l.isString(e))
|
|
1098
|
+
try {
|
|
1099
|
+
return (t || JSON.parse)(e), l.trim(e);
|
|
1100
|
+
} catch (n) {
|
|
1101
|
+
if (n.name !== "SyntaxError")
|
|
1102
|
+
throw n;
|
|
1103
|
+
}
|
|
1104
|
+
return (r || JSON.stringify)(e);
|
|
1105
|
+
}
|
|
1106
|
+
const ye = {
|
|
1107
|
+
transitional: Ze,
|
|
1108
|
+
adapter: ["xhr", "http", "fetch"],
|
|
1109
|
+
transformRequest: [
|
|
1110
|
+
function(t, r) {
|
|
1111
|
+
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, s = l.isObject(t);
|
|
1112
|
+
if (s && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
1113
|
+
return o ? JSON.stringify(Qt(t)) : t;
|
|
1114
|
+
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
1115
|
+
return t;
|
|
1116
|
+
if (l.isArrayBufferView(t))
|
|
1117
|
+
return t.buffer;
|
|
1118
|
+
if (l.isURLSearchParams(t))
|
|
1119
|
+
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1120
|
+
let i;
|
|
1121
|
+
if (s) {
|
|
1122
|
+
const c = ae(this, "formSerializer");
|
|
1123
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1124
|
+
return zn(t, c).toString();
|
|
1125
|
+
if ((i = l.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
1126
|
+
const f = ae(this, "env"), d = f && f.FormData;
|
|
1127
|
+
return De(
|
|
1128
|
+
i ? { "files[]": t } : t,
|
|
1129
|
+
d && new d(),
|
|
1130
|
+
c
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
return s || o ? (r.setContentType("application/json", !1), Wn(t)) : t;
|
|
1135
|
+
}
|
|
1136
|
+
],
|
|
1137
|
+
transformResponse: [
|
|
1138
|
+
function(t) {
|
|
1139
|
+
const r = ae(this, "transitional") || ye.transitional, n = r && r.forcedJSONParsing, o = ae(this, "responseType"), s = o === "json";
|
|
1140
|
+
if (l.isResponse(t) || l.isReadableStream(t))
|
|
1141
|
+
return t;
|
|
1142
|
+
if (t && l.isString(t) && (n && !o || s)) {
|
|
1143
|
+
const i = !(r && r.silentJSONParsing) && s;
|
|
1144
|
+
try {
|
|
1145
|
+
return JSON.parse(t, ae(this, "parseReviver"));
|
|
1146
|
+
} catch (c) {
|
|
1147
|
+
if (i)
|
|
1148
|
+
throw c.name === "SyntaxError" ? g.from(c, g.ERR_BAD_RESPONSE, this, null, ae(this, "response")) : c;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
return t;
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
/**
|
|
1155
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
1156
|
+
* timeout is not created.
|
|
1157
|
+
*/
|
|
1158
|
+
timeout: 0,
|
|
1159
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
1160
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1161
|
+
maxContentLength: -1,
|
|
1162
|
+
maxBodyLength: -1,
|
|
1163
|
+
env: {
|
|
1164
|
+
FormData: A.classes.FormData,
|
|
1165
|
+
Blob: A.classes.Blob
|
|
1166
|
+
},
|
|
1167
|
+
validateStatus: function(t) {
|
|
1168
|
+
return t >= 200 && t < 300;
|
|
1169
|
+
},
|
|
1170
|
+
headers: {
|
|
1171
|
+
common: {
|
|
1172
|
+
Accept: "application/json, text/plain, */*",
|
|
1173
|
+
"Content-Type": void 0
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
};
|
|
1177
|
+
l.forEach(Yt, (e) => {
|
|
1178
|
+
ye.headers[e] = {};
|
|
1179
|
+
});
|
|
1180
|
+
function $e(e, t) {
|
|
1181
|
+
const r = this || ye, n = t || r, o = L.from(n.headers);
|
|
1182
|
+
let s = n.data;
|
|
1183
|
+
return l.forEach(e, function(i) {
|
|
1184
|
+
s = i.call(r, s, o.normalize(), t ? t.status : void 0);
|
|
1185
|
+
}), o.normalize(), s;
|
|
1186
|
+
}
|
|
1187
|
+
function Gt(e) {
|
|
1188
|
+
return !!(e && e.__CANCEL__);
|
|
1189
|
+
}
|
|
1190
|
+
let _e = class extends g {
|
|
1191
|
+
/**
|
|
1192
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
1193
|
+
*
|
|
1194
|
+
* @param {string=} message The message.
|
|
1195
|
+
* @param {Object=} config The config.
|
|
1196
|
+
* @param {Object=} request The request.
|
|
1197
|
+
*
|
|
1198
|
+
* @returns {CanceledError} The created error.
|
|
1199
|
+
*/
|
|
1200
|
+
constructor(t, r, n) {
|
|
1201
|
+
super(t ?? "canceled", g.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
1202
|
+
}
|
|
1203
|
+
};
|
|
1204
|
+
function Zt(e, t, r) {
|
|
1205
|
+
const n = r.config.validateStatus;
|
|
1206
|
+
!r.status || !n || n(r.status) ? e(r) : t(new g(
|
|
1207
|
+
"Request failed with status code " + r.status,
|
|
1208
|
+
r.status >= 400 && r.status < 500 ? g.ERR_BAD_REQUEST : g.ERR_BAD_RESPONSE,
|
|
1209
|
+
r.config,
|
|
1210
|
+
r.request,
|
|
1211
|
+
r
|
|
1212
|
+
));
|
|
1213
|
+
}
|
|
1214
|
+
const Xn = /[\t\n\r]/g;
|
|
1215
|
+
function er(e) {
|
|
1216
|
+
if (typeof e != "string")
|
|
1217
|
+
return e;
|
|
1218
|
+
let t = 0;
|
|
1219
|
+
for (; t < e.length && e.charCodeAt(t) <= 32; )
|
|
1220
|
+
t++;
|
|
1221
|
+
return e.slice(t).replace(Xn, "");
|
|
1222
|
+
}
|
|
1223
|
+
function He(e) {
|
|
1224
|
+
const t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
|
|
1225
|
+
return t && t[1] || "";
|
|
1226
|
+
}
|
|
1227
|
+
function Jn(e, t) {
|
|
1228
|
+
e = e || 10;
|
|
1229
|
+
const r = new Array(e), n = new Array(e);
|
|
1230
|
+
let o = 0, s = 0, a;
|
|
1231
|
+
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
1232
|
+
const f = Date.now(), d = n[s];
|
|
1233
|
+
a || (a = f), r[o] = c, n[o] = f;
|
|
1234
|
+
let p = s, h = 0;
|
|
1235
|
+
for (; p !== o; )
|
|
1236
|
+
h += r[p++], p = p % e;
|
|
1237
|
+
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), f - a < t)
|
|
1238
|
+
return;
|
|
1239
|
+
const m = d && f - d;
|
|
1240
|
+
return m ? Math.round(h * 1e3 / m) : void 0;
|
|
1241
|
+
};
|
|
1242
|
+
}
|
|
1243
|
+
function Kn(e, t) {
|
|
1244
|
+
let r = 0, n = 1e3 / t, o, s;
|
|
1245
|
+
const a = (d, p = Date.now()) => {
|
|
1246
|
+
r = p, o = null, s && (clearTimeout(s), s = null), e(...d);
|
|
1247
|
+
};
|
|
1248
|
+
return [(...d) => {
|
|
1249
|
+
const p = Date.now(), h = p - r;
|
|
1250
|
+
h >= n ? a(d, p) : (o = d, s || (s = setTimeout(() => {
|
|
1251
|
+
s = null, a(o);
|
|
1252
|
+
}, n - h)));
|
|
1253
|
+
}, () => o && a(o), (...d) => a(d)];
|
|
1254
|
+
}
|
|
1255
|
+
const Ce = (e, t, r = 3) => {
|
|
1256
|
+
let n = 0;
|
|
1257
|
+
const o = Jn(50, 250);
|
|
1258
|
+
return Kn((s) => {
|
|
1259
|
+
if (!s || !l.isNumber(s.loaded))
|
|
1260
|
+
return;
|
|
1261
|
+
const a = s.loaded, i = s.lengthComputable ? s.total : void 0, c = Math.max(0, i != null ? Math.min(a, i) : a), f = Math.max(0, c - n), d = o(f);
|
|
1262
|
+
n = Math.max(n, c);
|
|
1263
|
+
const p = {
|
|
1264
|
+
loaded: c,
|
|
1265
|
+
total: i,
|
|
1266
|
+
progress: i ? c / i : void 0,
|
|
1267
|
+
bytes: f,
|
|
1268
|
+
rate: d || void 0,
|
|
1269
|
+
estimated: d && i ? (i - c) / d : void 0,
|
|
1270
|
+
event: s,
|
|
1271
|
+
lengthComputable: i != null,
|
|
1272
|
+
[t ? "download" : "upload"]: !0
|
|
1273
|
+
};
|
|
1274
|
+
e(p);
|
|
1275
|
+
}, r);
|
|
1276
|
+
}, xt = (e, t) => {
|
|
1277
|
+
const r = e != null;
|
|
1278
|
+
return [
|
|
1279
|
+
(n) => t[0]({
|
|
1280
|
+
lengthComputable: r,
|
|
1281
|
+
total: e,
|
|
1282
|
+
loaded: n
|
|
1283
|
+
}),
|
|
1284
|
+
t[1]
|
|
1285
|
+
];
|
|
1286
|
+
}, yt = (e, t = l.asap) => (...r) => t(() => e(...r)), Qn = A.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, A.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
1287
|
+
new URL(A.origin),
|
|
1288
|
+
A.navigator && /(msie|trident)/i.test(A.navigator.userAgent)
|
|
1289
|
+
) : () => !0, Yn = A.hasStandardBrowserEnv ? (
|
|
1290
|
+
// Standard browser envs support document.cookie
|
|
1291
|
+
{
|
|
1292
|
+
write(e, t, r, n, o, s, a) {
|
|
1293
|
+
if (typeof document > "u") return;
|
|
1294
|
+
const i = [`${e}=${encodeURIComponent(t)}`];
|
|
1295
|
+
l.isNumber(r) && i.push(`expires=${new Date(r).toUTCString()}`), l.isString(n) && i.push(`path=${n}`), l.isString(o) && i.push(`domain=${o}`), s === !0 && i.push("secure"), l.isString(a) && i.push(`SameSite=${a}`), document.cookie = i.join("; ");
|
|
1296
|
+
},
|
|
1297
|
+
read(e) {
|
|
1298
|
+
if (typeof document > "u") return null;
|
|
1299
|
+
const t = document.cookie.split(";");
|
|
1300
|
+
for (let r = 0; r < t.length; r++) {
|
|
1301
|
+
const n = t[r].replace(/^\s+/, ""), o = n.indexOf("=");
|
|
1302
|
+
if (o !== -1 && n.slice(0, o) === e)
|
|
1303
|
+
try {
|
|
1304
|
+
return decodeURIComponent(n.slice(o + 1));
|
|
1305
|
+
} catch {
|
|
1306
|
+
return n.slice(o + 1);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
return null;
|
|
1310
|
+
},
|
|
1311
|
+
remove(e) {
|
|
1312
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
) : (
|
|
1316
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1317
|
+
{
|
|
1318
|
+
write() {
|
|
1319
|
+
},
|
|
1320
|
+
read() {
|
|
1321
|
+
return null;
|
|
1322
|
+
},
|
|
1323
|
+
remove() {
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
);
|
|
1327
|
+
function Gn(e) {
|
|
1328
|
+
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1329
|
+
}
|
|
1330
|
+
function Zn(e, t) {
|
|
1331
|
+
if (!t)
|
|
1332
|
+
return e;
|
|
1333
|
+
let r = e.length;
|
|
1334
|
+
for (; r > 0 && e.charCodeAt(r - 1) === 47; )
|
|
1335
|
+
r--;
|
|
1336
|
+
return e.slice(0, r) + "/" + t.replace(/^\/+/, "");
|
|
1337
|
+
}
|
|
1338
|
+
const eo = /^https?:(?!\/\/)/i;
|
|
1339
|
+
function to(e) {
|
|
1340
|
+
return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (t, r, n = "") => `${r}${n}${Te}`);
|
|
1341
|
+
}
|
|
1342
|
+
function ro(e) {
|
|
1343
|
+
const t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Te}@`), r = t.indexOf("#"), o = (r === -1 ? t : t.slice(0, r)).replace(
|
|
1344
|
+
/([?&][^=&#]*=)[^&#]*/g,
|
|
1345
|
+
`$1${Te}`
|
|
1346
|
+
);
|
|
1347
|
+
return r === -1 ? o : `${o}#${to(t.slice(r + 1))}`;
|
|
1348
|
+
}
|
|
1349
|
+
function _t(e, t) {
|
|
1350
|
+
if (typeof e == "string") {
|
|
1351
|
+
const r = er(e);
|
|
1352
|
+
if (eo.test(r))
|
|
1353
|
+
throw new g(
|
|
1354
|
+
`Invalid URL ${JSON.stringify(ro(r))}: missing "//" after protocol`,
|
|
1355
|
+
g.ERR_INVALID_URL,
|
|
1356
|
+
t
|
|
1357
|
+
);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
function tr(e, t, r, n) {
|
|
1361
|
+
_t(t, n);
|
|
1362
|
+
let o = !Gn(t);
|
|
1363
|
+
return e && (o || r === !1) ? (_t(e, n), Zn(e, t)) : t;
|
|
1364
|
+
}
|
|
1365
|
+
const Et = (e) => e instanceof L ? { ...e } : e, no = (e) => Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor ? Object.keys(e).concat(
|
|
1366
|
+
Object.getOwnPropertySymbols(e).filter(
|
|
1367
|
+
(t) => Object.getOwnPropertyDescriptor(e, t).enumerable
|
|
1368
|
+
)
|
|
1369
|
+
) : Object.keys(e);
|
|
1370
|
+
function oe(e, t) {
|
|
1371
|
+
e = e || {}, t = t || {};
|
|
1372
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
1373
|
+
Object.defineProperty(r, "hasOwnProperty", {
|
|
1374
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
1375
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
1376
|
+
__proto__: null,
|
|
1377
|
+
value: Object.prototype.hasOwnProperty,
|
|
1378
|
+
enumerable: !1,
|
|
1379
|
+
writable: !0,
|
|
1380
|
+
configurable: !0
|
|
1381
|
+
});
|
|
1382
|
+
function n(d, p, h, m) {
|
|
1383
|
+
return l.isPlainObject(d) && l.isPlainObject(p) ? l.merge.call({ caseless: m }, d, p) : l.isPlainObject(p) ? l.merge({}, p) : l.isArray(p) ? p.slice() : p;
|
|
1384
|
+
}
|
|
1385
|
+
function o(d, p, h, m) {
|
|
1386
|
+
if (l.isUndefined(p)) {
|
|
1387
|
+
if (!l.isUndefined(d))
|
|
1388
|
+
return n(void 0, d, h, m);
|
|
1389
|
+
} else return n(d, p, h, m);
|
|
1390
|
+
}
|
|
1391
|
+
function s(d, p) {
|
|
1392
|
+
if (!l.isUndefined(p))
|
|
1393
|
+
return n(void 0, p);
|
|
1394
|
+
}
|
|
1395
|
+
function a(d, p) {
|
|
1396
|
+
if (l.isUndefined(p)) {
|
|
1397
|
+
if (!l.isUndefined(d))
|
|
1398
|
+
return n(void 0, d);
|
|
1399
|
+
} else return n(void 0, p);
|
|
1400
|
+
}
|
|
1401
|
+
function i(d) {
|
|
1402
|
+
const p = l.hasOwnProp(t, "transitional") ? t.transitional : void 0;
|
|
1403
|
+
if (!l.isUndefined(p))
|
|
1404
|
+
if (l.isPlainObject(p)) {
|
|
1405
|
+
if (l.hasOwnProp(p, d))
|
|
1406
|
+
return p[d];
|
|
1407
|
+
} else
|
|
1408
|
+
return;
|
|
1409
|
+
const h = l.hasOwnProp(e, "transitional") ? e.transitional : void 0;
|
|
1410
|
+
if (l.isPlainObject(h) && l.hasOwnProp(h, d))
|
|
1411
|
+
return h[d];
|
|
1412
|
+
}
|
|
1413
|
+
function c(d, p, h) {
|
|
1414
|
+
if (l.hasOwnProp(t, h))
|
|
1415
|
+
return n(d, p);
|
|
1416
|
+
if (l.hasOwnProp(e, h))
|
|
1417
|
+
return n(void 0, d);
|
|
1418
|
+
}
|
|
1419
|
+
const f = {
|
|
1420
|
+
url: s,
|
|
1421
|
+
method: s,
|
|
1422
|
+
data: s,
|
|
1423
|
+
baseURL: a,
|
|
1424
|
+
transformRequest: a,
|
|
1425
|
+
transformResponse: a,
|
|
1426
|
+
paramsSerializer: a,
|
|
1427
|
+
timeout: a,
|
|
1428
|
+
timeoutErrorMessage: a,
|
|
1429
|
+
withCredentials: a,
|
|
1430
|
+
withXSRFToken: a,
|
|
1431
|
+
adapter: a,
|
|
1432
|
+
responseType: a,
|
|
1433
|
+
xsrfCookieName: a,
|
|
1434
|
+
xsrfHeaderName: a,
|
|
1435
|
+
onUploadProgress: a,
|
|
1436
|
+
onDownloadProgress: a,
|
|
1437
|
+
decompress: a,
|
|
1438
|
+
maxContentLength: a,
|
|
1439
|
+
maxBodyLength: a,
|
|
1440
|
+
beforeRedirect: a,
|
|
1441
|
+
transport: a,
|
|
1442
|
+
httpAgent: a,
|
|
1443
|
+
httpsAgent: a,
|
|
1444
|
+
cancelToken: a,
|
|
1445
|
+
socketPath: a,
|
|
1446
|
+
allowedSocketPaths: a,
|
|
1447
|
+
responseEncoding: a,
|
|
1448
|
+
validateStatus: c,
|
|
1449
|
+
headers: (d, p, h) => o(Et(d), Et(p), h, !0)
|
|
1450
|
+
};
|
|
1451
|
+
return l.forEach(no({ ...e, ...t }), function(p) {
|
|
1452
|
+
if (p === "__proto__" || p === "constructor" || p === "prototype") return;
|
|
1453
|
+
const h = l.hasOwnProp(f, p) ? f[p] : o, m = l.hasOwnProp(e, p) ? e[p] : void 0, _ = l.hasOwnProp(t, p) ? t[p] : void 0, E = h(m, _, p);
|
|
1454
|
+
l.isUndefined(E) && h !== c || (r[p] = E);
|
|
1455
|
+
}), l.hasOwnProp(t, "validateStatus") && l.isUndefined(t.validateStatus) && i("validateStatusUndefinedResolves") === !1 && (l.hasOwnProp(e, "validateStatus") ? r.validateStatus = n(void 0, e.validateStatus) : delete r.validateStatus), r;
|
|
1456
|
+
}
|
|
1457
|
+
const oo = ["content-type", "content-length"];
|
|
1458
|
+
function so(e, t, r) {
|
|
1459
|
+
if (r !== "content-only") {
|
|
1460
|
+
e.set(t);
|
|
1461
|
+
return;
|
|
1462
|
+
}
|
|
1463
|
+
Object.entries(t || {}).forEach(([n, o]) => {
|
|
1464
|
+
oo.includes(n.toLowerCase()) && e.set(n, o);
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
const ao = (e) => encodeURIComponent(e).replace(
|
|
1468
|
+
/%([0-9A-F]{2})/gi,
|
|
1469
|
+
(t, r) => String.fromCharCode(parseInt(r, 16))
|
|
1470
|
+
);
|
|
1471
|
+
function rr(e) {
|
|
1472
|
+
const t = oe({}, e), r = (h) => l.hasOwnProp(t, h) ? t[h] : void 0, n = r("data");
|
|
1473
|
+
let o = r("withXSRFToken");
|
|
1474
|
+
const s = r("xsrfHeaderName"), a = r("xsrfCookieName");
|
|
1475
|
+
let i = r("headers");
|
|
1476
|
+
const c = r("auth"), f = r("baseURL"), d = r("allowAbsoluteUrls"), p = r("url");
|
|
1477
|
+
if (t.headers = i = L.from(i), t.url = Xt(
|
|
1478
|
+
tr(f, p, d, t),
|
|
1479
|
+
r("params"),
|
|
1480
|
+
r("paramsSerializer")
|
|
1481
|
+
), c) {
|
|
1482
|
+
const h = l.getSafeProp(c, "username") || "", m = l.getSafeProp(c, "password") || "";
|
|
1483
|
+
try {
|
|
1484
|
+
i.set(
|
|
1485
|
+
"Authorization",
|
|
1486
|
+
"Basic " + btoa(h + ":" + (m ? ao(m) : ""))
|
|
1487
|
+
);
|
|
1488
|
+
} catch (_) {
|
|
1489
|
+
throw g.from(_, g.ERR_BAD_OPTION_VALUE, e);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
if (l.isFormData(n)) {
|
|
1493
|
+
const h = l.getSafeProp(n, "getHeaders");
|
|
1494
|
+
A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv || l.isReactNative(n) ? i.setContentType(void 0) : l.isFunction(h) && so(i, h.call(n), r("formDataHeaderPolicy"));
|
|
1495
|
+
}
|
|
1496
|
+
if (A.hasStandardBrowserEnv && (l.isFunction(o) && (o = o(t)), o === !0 || o == null && Qn(t.url))) {
|
|
1497
|
+
const m = s && a && Yn.read(a);
|
|
1498
|
+
m && i.set(s, m);
|
|
1499
|
+
}
|
|
1500
|
+
return t;
|
|
1501
|
+
}
|
|
1502
|
+
const io = typeof XMLHttpRequest < "u", lo = io && function(e) {
|
|
1503
|
+
return new Promise(function(r, n) {
|
|
1504
|
+
const o = rr(e);
|
|
1505
|
+
let s = o.data;
|
|
1506
|
+
const a = L.from(o.headers).normalize();
|
|
1507
|
+
let { responseType: i, onUploadProgress: c, onDownloadProgress: f } = o, d, p, h, m, _, E;
|
|
1508
|
+
function k() {
|
|
1509
|
+
m && m(), _ && _(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
|
|
1510
|
+
}
|
|
1511
|
+
let u = new XMLHttpRequest();
|
|
1512
|
+
u.open(o.method.toUpperCase(), o.url, !0), u.timeout = o.timeout;
|
|
1513
|
+
function b(w) {
|
|
1514
|
+
if (!u)
|
|
1515
|
+
return;
|
|
1516
|
+
if (u.status === 0 && (He(er(o.url)) || He(A.origin)) !== "file" && !(u.responseURL && u.responseURL.startsWith("file:"))) {
|
|
1517
|
+
n(new g("Request aborted", g.ECONNABORTED, e, u)), k(), u = null;
|
|
1518
|
+
return;
|
|
1519
|
+
}
|
|
1520
|
+
try {
|
|
1521
|
+
w ? E && E(w) : _ && _();
|
|
1522
|
+
} catch (I) {
|
|
1523
|
+
setTimeout(() => {
|
|
1524
|
+
throw I;
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
if (!u)
|
|
1528
|
+
return;
|
|
1529
|
+
const v = L.from(
|
|
1530
|
+
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
1531
|
+
), S = {
|
|
1532
|
+
data: !i || i === "text" || i === "json" ? u.responseText : u.response,
|
|
1533
|
+
status: u.status,
|
|
1534
|
+
statusText: u.statusText,
|
|
1535
|
+
headers: v,
|
|
1536
|
+
config: e,
|
|
1537
|
+
request: u
|
|
1538
|
+
};
|
|
1539
|
+
Zt(
|
|
1540
|
+
function(Q) {
|
|
1541
|
+
r(Q), k();
|
|
1542
|
+
},
|
|
1543
|
+
function(Q) {
|
|
1544
|
+
n(Q), k();
|
|
1545
|
+
},
|
|
1546
|
+
S
|
|
1547
|
+
), u = null;
|
|
1548
|
+
}
|
|
1549
|
+
"onloadend" in u ? u.onloadend = b : u.onreadystatechange = function() {
|
|
1550
|
+
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.startsWith("file:")) || setTimeout(b);
|
|
1551
|
+
}, u.onabort = function() {
|
|
1552
|
+
u && (n(new g("Request aborted", g.ECONNABORTED, e, u)), k(), u = null);
|
|
1553
|
+
}, u.onerror = function(v) {
|
|
1554
|
+
const C = v && v.message ? v.message : "Network Error", S = new g(C, g.ERR_NETWORK, e, u);
|
|
1555
|
+
S.event = v || null, n(S), k(), u = null;
|
|
1556
|
+
}, u.ontimeout = function() {
|
|
1557
|
+
let v = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1558
|
+
const C = o.transitional || Ze;
|
|
1559
|
+
o.timeoutErrorMessage && (v = o.timeoutErrorMessage), n(
|
|
1560
|
+
new g(
|
|
1561
|
+
v,
|
|
1562
|
+
C.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
|
|
1563
|
+
e,
|
|
1564
|
+
u
|
|
1565
|
+
)
|
|
1566
|
+
), k(), u = null;
|
|
1567
|
+
}, s === void 0 && a.setContentType(null), "setRequestHeader" in u && l.forEach(Ht(a), function(v, C) {
|
|
1568
|
+
u.setRequestHeader(C, v);
|
|
1569
|
+
}), l.isUndefined(o.withCredentials) || (u.withCredentials = !!o.withCredentials), i && i !== "json" && (u.responseType = o.responseType), f && ([h, _, E] = Ce(
|
|
1570
|
+
f,
|
|
1571
|
+
!0
|
|
1572
|
+
), u.addEventListener("progress", h)), c && u.upload && ([p, m] = Ce(c), u.upload.addEventListener("progress", p), u.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (d = (w) => {
|
|
1573
|
+
u && (n(!w || w.type ? new _e(null, e, u) : w), u.abort(), k(), u = null);
|
|
1574
|
+
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
1575
|
+
const y = He(o.url);
|
|
1576
|
+
if (y && !A.protocols.includes(y)) {
|
|
1577
|
+
n(
|
|
1578
|
+
new g(
|
|
1579
|
+
"Unsupported protocol " + y + ":",
|
|
1580
|
+
g.ERR_BAD_REQUEST,
|
|
1581
|
+
e
|
|
1582
|
+
)
|
|
1583
|
+
), k();
|
|
1584
|
+
return;
|
|
1585
|
+
}
|
|
1586
|
+
u.send(s || null);
|
|
1587
|
+
});
|
|
1588
|
+
}, co = (e, t) => {
|
|
1589
|
+
if (e = e ? e.filter(Boolean) : [], !t && !e.length)
|
|
1590
|
+
return;
|
|
1591
|
+
const r = new AbortController();
|
|
1592
|
+
let n = !1;
|
|
1593
|
+
const o = function(c) {
|
|
1594
|
+
if (!n) {
|
|
1595
|
+
n = !0, a();
|
|
1596
|
+
const f = c instanceof Error ? c : this.reason;
|
|
1597
|
+
r.abort(
|
|
1598
|
+
f instanceof g ? f : new _e(f instanceof Error ? f.message : f)
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1601
|
+
};
|
|
1602
|
+
let s = t && setTimeout(() => {
|
|
1603
|
+
s = null, o(new g(`timeout of ${t}ms exceeded`, g.ETIMEDOUT));
|
|
1604
|
+
}, t);
|
|
1605
|
+
const a = () => {
|
|
1606
|
+
e && (s && clearTimeout(s), s = null, e.forEach((c) => {
|
|
1607
|
+
c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
|
|
1608
|
+
}), e = null);
|
|
1609
|
+
};
|
|
1610
|
+
e.forEach((c) => {
|
|
1611
|
+
if (!n) {
|
|
1612
|
+
if (c.aborted) {
|
|
1613
|
+
o.call(c);
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
c.addEventListener("abort", o, { once: !0 });
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1619
|
+
const { signal: i } = r;
|
|
1620
|
+
return i.unsubscribe = () => l.asap(a), i;
|
|
1621
|
+
}, uo = function* (e, t) {
|
|
1622
|
+
let r = e.byteLength;
|
|
1623
|
+
if (r < t) {
|
|
1624
|
+
yield e;
|
|
1625
|
+
return;
|
|
1626
|
+
}
|
|
1627
|
+
let n = 0, o;
|
|
1628
|
+
for (; n < r; )
|
|
1629
|
+
o = n + t, yield e.slice(n, o), n = o;
|
|
1630
|
+
}, fo = async function* (e, t) {
|
|
1631
|
+
for await (const r of po(e))
|
|
1632
|
+
yield* uo(r, t);
|
|
1633
|
+
}, po = async function* (e) {
|
|
1634
|
+
if (e[Symbol.asyncIterator]) {
|
|
1635
|
+
yield* e;
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1638
|
+
const t = e.getReader();
|
|
1639
|
+
try {
|
|
1640
|
+
for (; ; ) {
|
|
1641
|
+
const { done: r, value: n } = await t.read();
|
|
1642
|
+
if (r)
|
|
1643
|
+
break;
|
|
1644
|
+
yield n;
|
|
1645
|
+
}
|
|
1646
|
+
} finally {
|
|
1647
|
+
await t.cancel();
|
|
1648
|
+
}
|
|
1649
|
+
}, Rt = (e, t, r, n) => {
|
|
1650
|
+
const o = fo(e, t);
|
|
1651
|
+
let s = 0, a, i = (c) => {
|
|
1652
|
+
a || (a = !0, n && n(c));
|
|
1653
|
+
};
|
|
1654
|
+
return new ReadableStream(
|
|
1655
|
+
{
|
|
1656
|
+
async pull(c) {
|
|
1657
|
+
try {
|
|
1658
|
+
const { done: f, value: d } = await o.next();
|
|
1659
|
+
if (f) {
|
|
1660
|
+
i(), c.close();
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1663
|
+
let p = d.byteLength;
|
|
1664
|
+
if (r) {
|
|
1665
|
+
let h = s += p;
|
|
1666
|
+
r(h);
|
|
1667
|
+
}
|
|
1668
|
+
c.enqueue(new Uint8Array(d));
|
|
1669
|
+
} catch (f) {
|
|
1670
|
+
throw i(f), f;
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
cancel(c) {
|
|
1674
|
+
return i(c), o.return();
|
|
1675
|
+
}
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
highWaterMark: 2
|
|
1679
|
+
}
|
|
1680
|
+
);
|
|
1681
|
+
}, St = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, nr = (e, t, r) => t + 2 < r && St(e.charCodeAt(t + 1)) && St(e.charCodeAt(t + 2)), Ot = (e) => e <= 57 ? e - 48 : (e & 223) - 55, go = (e) => e >= 65 && e <= 90 || // A-Z
|
|
1682
|
+
e >= 97 && e <= 122 || // a-z
|
|
1683
|
+
e >= 48 && e <= 57 || // 0-9
|
|
1684
|
+
e === 43 || // +
|
|
1685
|
+
e === 47 || // /
|
|
1686
|
+
e === 45 || // - (base64url)
|
|
1687
|
+
e === 95, bo = (e) => e === 9 || e === 10 || e === 12 || e === 13 || e === 32, ho = (e) => {
|
|
1688
|
+
const t = Math.floor(e / 4), r = e % 4;
|
|
1689
|
+
return t * 3 + (r === 2 ? 1 : r === 3 ? 2 : 0);
|
|
1690
|
+
}, mo = (e) => {
|
|
1691
|
+
const t = e.length;
|
|
1692
|
+
let r = 0;
|
|
1693
|
+
return t > 0 && e.charCodeAt(t - 1) === 61 && (r++, t > 1 && e.charCodeAt(t - 2) === 61 && r++), Math.floor((t - r) * 3 / 4);
|
|
1694
|
+
}, wo = (e) => {
|
|
1695
|
+
const t = e.length;
|
|
1696
|
+
let r = 0, n = 0, o = !1;
|
|
1697
|
+
for (let s = 0; s < t; s++) {
|
|
1698
|
+
let a = e.charCodeAt(s);
|
|
1699
|
+
if (a === 37 && nr(e, s, t) && (a = Ot(e.charCodeAt(s + 1)) * 16 + Ot(e.charCodeAt(s + 2)), s += 2), !bo(a)) {
|
|
1700
|
+
if (a === 61) {
|
|
1701
|
+
n++;
|
|
1702
|
+
continue;
|
|
1703
|
+
}
|
|
1704
|
+
if (!go(a) || n > 0) {
|
|
1705
|
+
o = !0;
|
|
1706
|
+
continue;
|
|
1707
|
+
}
|
|
1708
|
+
r++;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
return o || n > 2 || n > 0 && (r + n) % 4 !== 0 || r % 4 === 1 ? mo(e) : ho(r);
|
|
1712
|
+
}, xo = (e, t) => {
|
|
1713
|
+
if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
|
|
1714
|
+
const r = e.indexOf(",");
|
|
1715
|
+
if (r < 0) return 0;
|
|
1716
|
+
const n = e.slice(5, r), o = e.slice(r + 1);
|
|
1717
|
+
if (/;base64/i.test(n))
|
|
1718
|
+
return t(o);
|
|
1719
|
+
let a = 0;
|
|
1720
|
+
for (let i = 0, c = o.length; i < c; i++) {
|
|
1721
|
+
const f = o.charCodeAt(i);
|
|
1722
|
+
if (f === 37 && nr(o, i, c))
|
|
1723
|
+
a += 1, i += 2;
|
|
1724
|
+
else if (f < 128)
|
|
1725
|
+
a += 1;
|
|
1726
|
+
else if (f < 2048)
|
|
1727
|
+
a += 2;
|
|
1728
|
+
else if (f >= 55296 && f <= 56319 && i + 1 < c) {
|
|
1729
|
+
const d = o.charCodeAt(i + 1);
|
|
1730
|
+
d >= 56320 && d <= 57343 ? (a += 4, i++) : a += 3;
|
|
1731
|
+
} else
|
|
1732
|
+
a += 3;
|
|
1733
|
+
}
|
|
1734
|
+
return a;
|
|
1735
|
+
};
|
|
1736
|
+
function yo(e) {
|
|
1737
|
+
const t = typeof e == "string" ? e.indexOf("#") : -1;
|
|
1738
|
+
return xo(
|
|
1739
|
+
t === -1 ? e : e.slice(0, t),
|
|
1740
|
+
wo
|
|
1741
|
+
);
|
|
1742
|
+
}
|
|
1743
|
+
const tt = "1.20.0", kt = 64 * 1024, _o = {
|
|
1744
|
+
cache: "default",
|
|
1745
|
+
redirect: "follow",
|
|
1746
|
+
referrer: "about:client",
|
|
1747
|
+
referrerPolicy: "",
|
|
1748
|
+
mode: "cors",
|
|
1749
|
+
integrity: "",
|
|
1750
|
+
keepalive: !1,
|
|
1751
|
+
priority: "auto",
|
|
1752
|
+
window: null
|
|
1753
|
+
}, { isFunction: Oe } = l, Eo = (e) => encodeURIComponent(e).replace(
|
|
1754
|
+
/%([0-9A-F]{2})/gi,
|
|
1755
|
+
(t, r) => String.fromCharCode(parseInt(r, 16))
|
|
1756
|
+
), vt = (e) => {
|
|
1757
|
+
if (!l.isString(e))
|
|
1758
|
+
return e;
|
|
1759
|
+
try {
|
|
1760
|
+
return decodeURIComponent(e);
|
|
1761
|
+
} catch {
|
|
1762
|
+
return e;
|
|
1763
|
+
}
|
|
1764
|
+
}, At = (e, ...t) => {
|
|
1765
|
+
try {
|
|
1766
|
+
return !!e(...t);
|
|
1767
|
+
} catch {
|
|
1768
|
+
return !1;
|
|
1769
|
+
}
|
|
1770
|
+
}, Ro = (e) => {
|
|
1771
|
+
const t = e.indexOf("://");
|
|
1772
|
+
let r = e;
|
|
1773
|
+
return t !== -1 && (r = r.slice(t + 3)), r.includes("@") || r.includes(":");
|
|
1774
|
+
}, So = (e) => {
|
|
1775
|
+
const t = l.global !== void 0 && l.global !== null ? l.global : globalThis, { ReadableStream: r, TextEncoder: n } = t;
|
|
1776
|
+
e = l.merge.call(
|
|
1777
|
+
{
|
|
1778
|
+
skipUndefined: !0
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
Request: t.Request,
|
|
1782
|
+
Response: t.Response
|
|
1783
|
+
},
|
|
1784
|
+
e
|
|
1785
|
+
);
|
|
1786
|
+
const { fetch: o, Request: s, Response: a } = e, i = o ? Oe(o) : typeof fetch == "function", c = Oe(s), f = Oe(a);
|
|
1787
|
+
if (!i)
|
|
1788
|
+
return !1;
|
|
1789
|
+
const d = i && Oe(r), p = i && (typeof n == "function" ? /* @__PURE__ */ ((u) => (b) => u.encode(b))(new n()) : async (u) => new Uint8Array(await new s(u).arrayBuffer())), h = c && d && At(() => {
|
|
1790
|
+
let u = !1;
|
|
1791
|
+
const b = new s(A.origin, {
|
|
1792
|
+
body: new r(),
|
|
1793
|
+
method: "POST",
|
|
1794
|
+
get duplex() {
|
|
1795
|
+
return u = !0, "half";
|
|
1796
|
+
}
|
|
1797
|
+
}), y = b.headers.has("Content-Type");
|
|
1798
|
+
return b.body != null && b.body.cancel(), u && !y;
|
|
1799
|
+
}), m = f && d && At(() => l.isReadableStream(new a("").body)), _ = {
|
|
1800
|
+
stream: m && ((u) => u.body)
|
|
1801
|
+
};
|
|
1802
|
+
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
1803
|
+
!_[u] && (_[u] = (b, y) => {
|
|
1804
|
+
let w = b && b[u];
|
|
1805
|
+
if (w)
|
|
1806
|
+
return w.call(b);
|
|
1807
|
+
throw new g(
|
|
1808
|
+
`Response type '${u}' is not supported`,
|
|
1809
|
+
g.ERR_NOT_SUPPORT,
|
|
1810
|
+
y
|
|
1811
|
+
);
|
|
1812
|
+
});
|
|
1813
|
+
});
|
|
1814
|
+
const E = async (u) => {
|
|
1815
|
+
if (u == null)
|
|
1816
|
+
return 0;
|
|
1817
|
+
if (l.isBlob(u))
|
|
1818
|
+
return u.size;
|
|
1819
|
+
if (l.isSpecCompliantForm(u))
|
|
1820
|
+
return (await new s(A.origin, {
|
|
1821
|
+
method: "POST",
|
|
1822
|
+
body: u
|
|
1823
|
+
}).arrayBuffer()).byteLength;
|
|
1824
|
+
if (l.isArrayBufferView(u) || l.isArrayBuffer(u))
|
|
1825
|
+
return u.byteLength;
|
|
1826
|
+
if (l.isURLSearchParams(u) && (u = u + ""), l.isString(u))
|
|
1827
|
+
return (await p(u)).byteLength;
|
|
1828
|
+
}, k = async (u, b) => {
|
|
1829
|
+
const y = l.toFiniteNumber(u.getContentLength());
|
|
1830
|
+
return y ?? E(b);
|
|
1831
|
+
};
|
|
1832
|
+
return async (u) => {
|
|
1833
|
+
let {
|
|
1834
|
+
url: b,
|
|
1835
|
+
method: y,
|
|
1836
|
+
data: w,
|
|
1837
|
+
signal: v,
|
|
1838
|
+
cancelToken: C,
|
|
1839
|
+
timeout: S,
|
|
1840
|
+
onDownloadProgress: I,
|
|
1841
|
+
onUploadProgress: Q,
|
|
1842
|
+
responseType: q,
|
|
1843
|
+
headers: W,
|
|
1844
|
+
withCredentials: Ee = "same-origin",
|
|
1845
|
+
fetchOptions: Ue,
|
|
1846
|
+
maxContentLength: M,
|
|
1847
|
+
maxBodyLength: Re,
|
|
1848
|
+
maxRedirects: dr
|
|
1849
|
+
} = rr(u);
|
|
1850
|
+
const ce = l.isNumber(M) && M > -1, Fe = l.isNumber(Re) && Re > -1, ur = (R) => l.hasOwnProp(u, R) ? u[R] : void 0;
|
|
1851
|
+
let at = o || fetch;
|
|
1852
|
+
q = q ? (q + "").toLowerCase() : "text";
|
|
1853
|
+
let X = co(
|
|
1854
|
+
[v, C && C.toAbortSignal()],
|
|
1855
|
+
S
|
|
1856
|
+
), P = null;
|
|
1857
|
+
const Y = X && X.unsubscribe && (() => {
|
|
1858
|
+
X.unsubscribe();
|
|
1859
|
+
});
|
|
1860
|
+
let se, de = null;
|
|
1861
|
+
const it = () => new g(
|
|
1862
|
+
"Request body larger than maxBodyLength limit",
|
|
1863
|
+
g.ERR_BAD_REQUEST,
|
|
1864
|
+
u,
|
|
1865
|
+
P
|
|
1866
|
+
);
|
|
1867
|
+
try {
|
|
1868
|
+
let R;
|
|
1869
|
+
const F = ur("auth");
|
|
1870
|
+
if (F) {
|
|
1871
|
+
const x = l.getSafeProp(F, "username") || "", N = l.getSafeProp(F, "password") || "";
|
|
1872
|
+
R = {
|
|
1873
|
+
username: x,
|
|
1874
|
+
password: N
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1877
|
+
if (Ro(b)) {
|
|
1878
|
+
const x = new URL(b, A.origin);
|
|
1879
|
+
if (!R && (x.username || x.password)) {
|
|
1880
|
+
const N = vt(x.username), J = vt(x.password);
|
|
1881
|
+
R = {
|
|
1882
|
+
username: N,
|
|
1883
|
+
password: J
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
(x.username || x.password) && (x.username = "", x.password = "", b = x.href);
|
|
1887
|
+
}
|
|
1888
|
+
if (R && (W.delete("authorization"), W.set(
|
|
1889
|
+
"Authorization",
|
|
1890
|
+
"Basic " + btoa(Eo((R.username || "") + ":" + (R.password || "")))
|
|
1891
|
+
)), ce && typeof b == "string" && b.startsWith("data:") && yo(b) > M)
|
|
1892
|
+
throw new g(
|
|
1893
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1894
|
+
g.ERR_BAD_RESPONSE,
|
|
1895
|
+
u,
|
|
1896
|
+
P
|
|
1897
|
+
);
|
|
1898
|
+
if (Fe && y !== "get" && y !== "head") {
|
|
1899
|
+
const x = await E(w);
|
|
1900
|
+
if (typeof x == "number" && isFinite(x) && (se = x, x > Re))
|
|
1901
|
+
throw it();
|
|
1902
|
+
}
|
|
1903
|
+
const Se = Fe && (l.isReadableStream(w) || l.isStream(w)), lt = (x, N, J) => Rt(
|
|
1904
|
+
x,
|
|
1905
|
+
kt,
|
|
1906
|
+
(G) => {
|
|
1907
|
+
if (Fe && G > Re)
|
|
1908
|
+
throw de = it();
|
|
1909
|
+
N && N(G);
|
|
1910
|
+
},
|
|
1911
|
+
J
|
|
1912
|
+
);
|
|
1913
|
+
if (h && y !== "get" && y !== "head" && (Q || Se)) {
|
|
1914
|
+
if (se = se ?? await k(W, w), se !== 0 || Se) {
|
|
1915
|
+
let x = new s(b, {
|
|
1916
|
+
method: "POST",
|
|
1917
|
+
body: w,
|
|
1918
|
+
duplex: "half"
|
|
1919
|
+
}), N;
|
|
1920
|
+
if (l.isFormData(w) && (N = x.headers.get("content-type")) && W.setContentType(N), x.body) {
|
|
1921
|
+
const [J, G] = Q && xt(
|
|
1922
|
+
se,
|
|
1923
|
+
Ce(yt(Q))
|
|
1924
|
+
) || [];
|
|
1925
|
+
w = lt(x.body, J, G);
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
} else if (Se && !c && d && y !== "get" && y !== "head")
|
|
1929
|
+
w = lt(w);
|
|
1930
|
+
else if (Se && c && !h && y !== "get" && y !== "head")
|
|
1931
|
+
throw new g(
|
|
1932
|
+
"Stream request bodies are not supported by the current fetch implementation",
|
|
1933
|
+
g.ERR_NOT_SUPPORT,
|
|
1934
|
+
u,
|
|
1935
|
+
P
|
|
1936
|
+
);
|
|
1937
|
+
l.isString(Ee) || (Ee = Ee ? "include" : "omit");
|
|
1938
|
+
const fr = c && "credentials" in s.prototype;
|
|
1939
|
+
if (l.isFormData(w)) {
|
|
1940
|
+
const x = W.getContentType();
|
|
1941
|
+
x && /^multipart\/form-data/i.test(x) && !/boundary=/i.test(x) && W.delete("content-type");
|
|
1942
|
+
}
|
|
1943
|
+
W.set("User-Agent", "axios/" + tt, !1);
|
|
1944
|
+
const B = Ue == null ? Ue : Object.assign(/* @__PURE__ */ Object.create(null), Ue);
|
|
1945
|
+
B && (delete B.body, delete B.headers, delete B.method, delete B.signal, delete B.duplex, delete B.credentials);
|
|
1946
|
+
const $ = Object.assign(/* @__PURE__ */ Object.create(null), B, {
|
|
1947
|
+
signal: X,
|
|
1948
|
+
method: y.toUpperCase(),
|
|
1949
|
+
headers: Ht(W.normalize()),
|
|
1950
|
+
body: w,
|
|
1951
|
+
duplex: "half",
|
|
1952
|
+
credentials: fr ? Ee : void 0
|
|
1953
|
+
});
|
|
1954
|
+
c && (l.forEach(_o, (x, N) => {
|
|
1955
|
+
$[N] === void 0 && ($[N] = x);
|
|
1956
|
+
}), $.signal === void 0 && ($.signal = null), $.body === void 0 && ($.body = null)), dr === 0 && ($.redirect = "manual", B && (B.redirect = "manual")), P = c && new s(b, $);
|
|
1957
|
+
let H = await (c ? at(P, B) : at(b, $));
|
|
1958
|
+
const ct = L.from(H.headers);
|
|
1959
|
+
if (ce) {
|
|
1960
|
+
const x = l.toFiniteNumber(ct.getContentLength());
|
|
1961
|
+
if (x != null && x > M)
|
|
1962
|
+
throw new g(
|
|
1963
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1964
|
+
g.ERR_BAD_RESPONSE,
|
|
1965
|
+
u,
|
|
1966
|
+
P
|
|
1967
|
+
);
|
|
1968
|
+
}
|
|
1969
|
+
const je = m && (q === "stream" || q === "response");
|
|
1970
|
+
if (m && H.body && (I || ce || je && Y)) {
|
|
1971
|
+
const x = {};
|
|
1972
|
+
["status", "statusText", "headers"].forEach((ue) => {
|
|
1973
|
+
x[ue] = H[ue];
|
|
1974
|
+
});
|
|
1975
|
+
const N = l.toFiniteNumber(ct.getContentLength()), [J, G] = I && xt(
|
|
1976
|
+
N,
|
|
1977
|
+
Ce(yt(I), !0)
|
|
1978
|
+
) || [];
|
|
1979
|
+
let dt = 0;
|
|
1980
|
+
const pr = (ue) => {
|
|
1981
|
+
if (ce && (dt = ue, dt > M))
|
|
1982
|
+
throw new g(
|
|
1983
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1984
|
+
g.ERR_BAD_RESPONSE,
|
|
1985
|
+
u,
|
|
1986
|
+
P
|
|
1987
|
+
);
|
|
1988
|
+
J && J(ue);
|
|
1989
|
+
};
|
|
1990
|
+
H = new a(
|
|
1991
|
+
Rt(H.body, kt, pr, () => {
|
|
1992
|
+
G && G(), Y && Y();
|
|
1993
|
+
}),
|
|
1994
|
+
x
|
|
1995
|
+
);
|
|
1996
|
+
}
|
|
1997
|
+
q = q || "text";
|
|
1998
|
+
let z = await _[l.findKey(_, q) || "text"](
|
|
1999
|
+
H,
|
|
2000
|
+
u
|
|
2001
|
+
);
|
|
2002
|
+
if (ce && !m && !je) {
|
|
2003
|
+
let x;
|
|
2004
|
+
if (z != null && (typeof z.byteLength == "number" ? x = z.byteLength : typeof z.size == "number" ? x = z.size : typeof z == "string" && (x = typeof n == "function" ? new n().encode(z).byteLength : z.length)), typeof x == "number" && x > M)
|
|
2005
|
+
throw new g(
|
|
2006
|
+
"maxContentLength size of " + M + " exceeded",
|
|
2007
|
+
g.ERR_BAD_RESPONSE,
|
|
2008
|
+
u,
|
|
2009
|
+
P
|
|
2010
|
+
);
|
|
2011
|
+
}
|
|
2012
|
+
return !je && Y && Y(), await new Promise((x, N) => {
|
|
2013
|
+
Zt(x, N, {
|
|
2014
|
+
data: z,
|
|
2015
|
+
headers: L.from(H.headers),
|
|
2016
|
+
status: H.status,
|
|
2017
|
+
statusText: H.statusText,
|
|
2018
|
+
config: u,
|
|
2019
|
+
request: P
|
|
2020
|
+
});
|
|
2021
|
+
});
|
|
2022
|
+
} catch (R) {
|
|
2023
|
+
if (Y && Y(), X && X.aborted && X.reason instanceof g) {
|
|
2024
|
+
const F = X.reason;
|
|
2025
|
+
throw F.config = u, P && (F.request = P), R !== F && Object.defineProperty(F, "cause", {
|
|
2026
|
+
__proto__: null,
|
|
2027
|
+
value: R,
|
|
2028
|
+
writable: !0,
|
|
2029
|
+
enumerable: !1,
|
|
2030
|
+
configurable: !0
|
|
2031
|
+
}), F;
|
|
2032
|
+
}
|
|
2033
|
+
if (de)
|
|
2034
|
+
throw P && !de.request && (de.request = P), de;
|
|
2035
|
+
if (R instanceof g)
|
|
2036
|
+
throw P && !R.request && (R.request = P), R;
|
|
2037
|
+
if (R && R.name === "TypeError" && /Load failed|fetch/i.test(R.message)) {
|
|
2038
|
+
const F = new g(
|
|
2039
|
+
"Network Error",
|
|
2040
|
+
g.ERR_NETWORK,
|
|
2041
|
+
u,
|
|
2042
|
+
P,
|
|
2043
|
+
R && R.response
|
|
2044
|
+
);
|
|
2045
|
+
throw Object.defineProperty(F, "cause", {
|
|
2046
|
+
__proto__: null,
|
|
2047
|
+
value: R.cause || R,
|
|
2048
|
+
writable: !0,
|
|
2049
|
+
enumerable: !1,
|
|
2050
|
+
configurable: !0
|
|
2051
|
+
}), F;
|
|
2052
|
+
}
|
|
2053
|
+
throw g.from(R, R && R.code, u, P, R && R.response);
|
|
2054
|
+
}
|
|
2055
|
+
};
|
|
2056
|
+
}, Oo = /* @__PURE__ */ new Map(), or = (e) => {
|
|
2057
|
+
let t = e && e.env || {};
|
|
2058
|
+
const { fetch: r, Request: n, Response: o } = t, s = [n, o, r];
|
|
2059
|
+
let a = s.length, i = a, c, f, d = Oo;
|
|
2060
|
+
for (; i--; )
|
|
2061
|
+
c = s[i], f = d.get(c), f === void 0 && d.set(c, f = i ? /* @__PURE__ */ new Map() : So(t)), d = f;
|
|
2062
|
+
return f;
|
|
2063
|
+
};
|
|
2064
|
+
or();
|
|
2065
|
+
const rt = {
|
|
2066
|
+
http: Cn,
|
|
2067
|
+
xhr: lo,
|
|
2068
|
+
fetch: {
|
|
2069
|
+
get: or
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
l.forEach(rt, (e, t) => {
|
|
2073
|
+
if (e) {
|
|
2074
|
+
try {
|
|
2075
|
+
Object.defineProperty(e, "name", { __proto__: null, value: t });
|
|
2076
|
+
} catch {
|
|
2077
|
+
}
|
|
2078
|
+
Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
const Pt = (e) => `- ${e}`, ko = (e) => l.isFunction(e) || e === null || e === !1;
|
|
2082
|
+
function vo(e, t) {
|
|
2083
|
+
e = l.isArray(e) ? e : [e];
|
|
2084
|
+
const { length: r } = e;
|
|
2085
|
+
let n, o;
|
|
2086
|
+
const s = {};
|
|
2087
|
+
for (let a = 0; a < r; a++) {
|
|
2088
|
+
n = e[a];
|
|
2089
|
+
let i;
|
|
2090
|
+
if (o = n, !ko(n) && (o = rt[(i = String(n)).toLowerCase()], o === void 0))
|
|
2091
|
+
throw new g(`Unknown adapter '${i}'`);
|
|
2092
|
+
if (o && (l.isFunction(o) || (o = o.get(t))))
|
|
2093
|
+
break;
|
|
2094
|
+
s[i || "#" + a] = o;
|
|
2095
|
+
}
|
|
2096
|
+
if (!o) {
|
|
2097
|
+
const a = Object.entries(s).map(
|
|
2098
|
+
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2099
|
+
);
|
|
2100
|
+
let i = r ? a.length > 1 ? `since :
|
|
2101
|
+
` + a.map(Pt).join(`
|
|
2102
|
+
`) : " " + Pt(a[0]) : "as no adapter specified";
|
|
2103
|
+
throw new g(
|
|
2104
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
2105
|
+
g.ERR_NOT_SUPPORT
|
|
2106
|
+
);
|
|
2107
|
+
}
|
|
2108
|
+
return o;
|
|
2109
|
+
}
|
|
2110
|
+
const sr = {
|
|
2111
|
+
/**
|
|
2112
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
2113
|
+
* @type {Function}
|
|
2114
|
+
*/
|
|
2115
|
+
getAdapter: vo,
|
|
2116
|
+
/**
|
|
2117
|
+
* Exposes all known adapters
|
|
2118
|
+
* @type {Object<string, Function|Object>}
|
|
2119
|
+
*/
|
|
2120
|
+
adapters: rt
|
|
2121
|
+
};
|
|
2122
|
+
function ze(e) {
|
|
2123
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2124
|
+
throw new _e(null, e);
|
|
2125
|
+
}
|
|
2126
|
+
function Ve(e) {
|
|
2127
|
+
const t = l.toSafeFlatObject(e);
|
|
2128
|
+
return ze(t), t.headers = L.from(l.getSafeProp(t, "headers")), t.data = $e.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), sr.getAdapter(t.adapter || ye.adapter, t)(t).then(
|
|
2129
|
+
function(o) {
|
|
2130
|
+
ze(t), t.response = o;
|
|
2131
|
+
try {
|
|
2132
|
+
o.data = $e.call(t, t.transformResponse, o);
|
|
2133
|
+
} finally {
|
|
2134
|
+
delete t.response;
|
|
2135
|
+
}
|
|
2136
|
+
return o.headers = L.from(o.headers), o;
|
|
2137
|
+
},
|
|
2138
|
+
function(o) {
|
|
2139
|
+
if (!Gt(o) && (ze(t), o && o.response)) {
|
|
2140
|
+
t.response = o.response;
|
|
2141
|
+
try {
|
|
2142
|
+
o.response.data = $e.call(
|
|
2143
|
+
t,
|
|
2144
|
+
t.transformResponse,
|
|
2145
|
+
o.response
|
|
2146
|
+
);
|
|
2147
|
+
} finally {
|
|
2148
|
+
delete t.response;
|
|
2149
|
+
}
|
|
2150
|
+
o.response.headers = L.from(o.response.headers);
|
|
2151
|
+
}
|
|
2152
|
+
return Promise.reject(o);
|
|
2153
|
+
}
|
|
2154
|
+
);
|
|
2155
|
+
}
|
|
2156
|
+
const Le = {};
|
|
2157
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2158
|
+
Le[e] = function(n) {
|
|
2159
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2160
|
+
};
|
|
2161
|
+
});
|
|
2162
|
+
const Tt = {};
|
|
2163
|
+
Le.transitional = function(t, r, n) {
|
|
2164
|
+
function o(s, a) {
|
|
2165
|
+
return "[Axios v" + tt + "] Transitional option '" + s + "'" + a + (n ? ". " + n : "");
|
|
2166
|
+
}
|
|
2167
|
+
return (s, a, i) => {
|
|
2168
|
+
if (t === !1)
|
|
2169
|
+
throw new g(
|
|
2170
|
+
o(a, " has been removed" + (r ? " in " + r : "")),
|
|
2171
|
+
g.ERR_DEPRECATED
|
|
2172
|
+
);
|
|
2173
|
+
return r && !Tt[a] && (Tt[a] = !0, console.warn(
|
|
2174
|
+
o(
|
|
2175
|
+
a,
|
|
2176
|
+
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
2177
|
+
)
|
|
2178
|
+
)), t ? t(s, a, i) : !0;
|
|
2179
|
+
};
|
|
2180
|
+
};
|
|
2181
|
+
Le.spelling = function(t) {
|
|
2182
|
+
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
2183
|
+
};
|
|
2184
|
+
function Ao(e, t, r) {
|
|
2185
|
+
if (typeof e != "object" || e === null)
|
|
2186
|
+
throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
|
|
2187
|
+
const n = Object.keys(e);
|
|
2188
|
+
let o = n.length;
|
|
2189
|
+
for (; o-- > 0; ) {
|
|
2190
|
+
const s = n[o], a = Object.prototype.hasOwnProperty.call(t, s) ? t[s] : void 0;
|
|
2191
|
+
if (a) {
|
|
2192
|
+
const i = e[s], c = i === void 0 || a(i, s, e);
|
|
2193
|
+
if (c !== !0)
|
|
2194
|
+
throw new g(
|
|
2195
|
+
"option " + s + " must be " + c,
|
|
2196
|
+
g.ERR_BAD_OPTION_VALUE
|
|
2197
|
+
);
|
|
2198
|
+
continue;
|
|
2199
|
+
}
|
|
2200
|
+
if (r !== !0)
|
|
2201
|
+
throw new g("Unknown option " + s, g.ERR_BAD_OPTION);
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
const Ae = {
|
|
2205
|
+
assertOptions: Ao,
|
|
2206
|
+
validators: Le
|
|
2207
|
+
}, D = Ae.validators;
|
|
2208
|
+
let te = class {
|
|
2209
|
+
constructor(t) {
|
|
2210
|
+
this.defaults = t || {}, this.interceptors = {
|
|
2211
|
+
request: new mt(),
|
|
2212
|
+
response: new mt()
|
|
2213
|
+
};
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Dispatch a request
|
|
2217
|
+
*
|
|
2218
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
2219
|
+
* @param {?Object} config
|
|
2220
|
+
*
|
|
2221
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
2222
|
+
*/
|
|
2223
|
+
async request(t, r) {
|
|
2224
|
+
try {
|
|
2225
|
+
return await this._request(t, r);
|
|
2226
|
+
} catch (n) {
|
|
2227
|
+
if (n instanceof Error)
|
|
2228
|
+
try {
|
|
2229
|
+
let o = {};
|
|
2230
|
+
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
2231
|
+
const s = o.stack;
|
|
2232
|
+
let a = "";
|
|
2233
|
+
if (typeof s == "string") {
|
|
2234
|
+
const i = s.indexOf(`
|
|
2235
|
+
`);
|
|
2236
|
+
a = i === -1 ? "" : s.slice(i + 1);
|
|
2237
|
+
}
|
|
2238
|
+
if (!n.stack)
|
|
2239
|
+
n.stack = a;
|
|
2240
|
+
else if (a) {
|
|
2241
|
+
const i = a.indexOf(`
|
|
2242
|
+
`), c = i === -1 ? -1 : a.indexOf(`
|
|
2243
|
+
`, i + 1), f = c === -1 ? "" : a.slice(c + 1);
|
|
2244
|
+
String(n.stack).endsWith(f) || (n.stack += `
|
|
2245
|
+
` + a);
|
|
2246
|
+
}
|
|
2247
|
+
} catch {
|
|
2248
|
+
}
|
|
2249
|
+
throw n;
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
_request(t, r) {
|
|
2253
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = oe(this.defaults, r);
|
|
2254
|
+
const { transitional: n, paramsSerializer: o, headers: s } = r;
|
|
2255
|
+
n !== void 0 && Ae.assertOptions(
|
|
2256
|
+
n,
|
|
2257
|
+
{
|
|
2258
|
+
silentJSONParsing: D.transitional(D.boolean),
|
|
2259
|
+
forcedJSONParsing: D.transitional(D.boolean),
|
|
2260
|
+
clarifyTimeoutError: D.transitional(D.boolean),
|
|
2261
|
+
legacyInterceptorReqResOrdering: D.transitional(D.boolean),
|
|
2262
|
+
advertiseZstdAcceptEncoding: D.transitional(D.boolean),
|
|
2263
|
+
validateStatusUndefinedResolves: D.transitional(D.boolean)
|
|
2264
|
+
},
|
|
2265
|
+
!1
|
|
2266
|
+
), o != null && (l.isFunction(o) ? r.paramsSerializer = {
|
|
2267
|
+
serialize: o
|
|
2268
|
+
} : Ae.assertOptions(
|
|
2269
|
+
o,
|
|
2270
|
+
{
|
|
2271
|
+
encode: D.function,
|
|
2272
|
+
serialize: D.function
|
|
2273
|
+
},
|
|
2274
|
+
!0
|
|
2275
|
+
)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Ae.assertOptions(
|
|
2276
|
+
r,
|
|
2277
|
+
{
|
|
2278
|
+
baseUrl: D.spelling("baseURL"),
|
|
2279
|
+
withXsrfToken: D.spelling("withXSRFToken")
|
|
2280
|
+
},
|
|
2281
|
+
!0
|
|
2282
|
+
), r.method = (l.getSafeProp(r, "method") || l.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
2283
|
+
let a = s && l.merge(s.common, s[r.method]);
|
|
2284
|
+
s && l.forEach(Yt.concat("common"), (_) => {
|
|
2285
|
+
delete s[_];
|
|
2286
|
+
}), r.headers = L.concat(a, s);
|
|
2287
|
+
const i = [];
|
|
2288
|
+
let c = !0;
|
|
2289
|
+
this.interceptors.request.forEach(function(E) {
|
|
2290
|
+
if (typeof E.runWhen == "function" && E.runWhen(r) === !1)
|
|
2291
|
+
return;
|
|
2292
|
+
c = c && E.synchronous;
|
|
2293
|
+
const k = r.transitional || Ze;
|
|
2294
|
+
k && k.legacyInterceptorReqResOrdering ? i.unshift(E.fulfilled, E.rejected) : i.push(E.fulfilled, E.rejected);
|
|
2295
|
+
});
|
|
2296
|
+
const f = [];
|
|
2297
|
+
this.interceptors.response.forEach(function(E) {
|
|
2298
|
+
f.push(E.fulfilled, E.rejected);
|
|
2299
|
+
});
|
|
2300
|
+
let d, p = 0, h;
|
|
2301
|
+
if (!c) {
|
|
2302
|
+
const _ = [Ve.bind(this), void 0];
|
|
2303
|
+
for (_.unshift(...i), _.push(...f), h = _.length, d = Promise.resolve(r); p < h; )
|
|
2304
|
+
d = d.then(_[p++], _[p++]);
|
|
2305
|
+
return d;
|
|
2306
|
+
}
|
|
2307
|
+
h = i.length;
|
|
2308
|
+
let m = r;
|
|
2309
|
+
for (; p < h; ) {
|
|
2310
|
+
const _ = i[p++], E = i[p++];
|
|
2311
|
+
try {
|
|
2312
|
+
m = _ ? _(m) : m;
|
|
2313
|
+
} catch (k) {
|
|
2314
|
+
if (!E) {
|
|
2315
|
+
d = Promise.reject(k);
|
|
2316
|
+
break;
|
|
2317
|
+
}
|
|
2318
|
+
try {
|
|
2319
|
+
const u = E.call(this, k);
|
|
2320
|
+
l.isThenable(u) && (d = Promise.resolve(u).then(
|
|
2321
|
+
() => Ve.call(this, m)
|
|
2322
|
+
));
|
|
2323
|
+
} catch (u) {
|
|
2324
|
+
d = Promise.reject(u);
|
|
2325
|
+
}
|
|
2326
|
+
break;
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
if (!d)
|
|
2330
|
+
try {
|
|
2331
|
+
d = Ve.call(this, m);
|
|
2332
|
+
} catch (_) {
|
|
2333
|
+
d = Promise.reject(_);
|
|
2334
|
+
}
|
|
2335
|
+
for (p = 0, h = f.length; p < h; )
|
|
2336
|
+
d = d.then(f[p++], f[p++]);
|
|
2337
|
+
return d;
|
|
2338
|
+
}
|
|
2339
|
+
getUri(t) {
|
|
2340
|
+
t = oe(this.defaults, t);
|
|
2341
|
+
const r = tr(t.baseURL, t.url, t.allowAbsoluteUrls, t);
|
|
2342
|
+
return Xt(r, t.params, t.paramsSerializer);
|
|
2343
|
+
}
|
|
2344
|
+
};
|
|
2345
|
+
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2346
|
+
te.prototype[t] = function(r, n) {
|
|
2347
|
+
return this.request(
|
|
2348
|
+
oe(n || {}, {
|
|
2349
|
+
method: t,
|
|
2350
|
+
url: r,
|
|
2351
|
+
data: n && l.hasOwnProp(n, "data") ? n.data : void 0
|
|
2352
|
+
})
|
|
2353
|
+
);
|
|
2354
|
+
};
|
|
2355
|
+
});
|
|
2356
|
+
l.forEach(["post", "put", "patch", "query"], function(t) {
|
|
2357
|
+
function r(n) {
|
|
2358
|
+
return function(s, a, i) {
|
|
2359
|
+
return this.request(
|
|
2360
|
+
oe(i || {}, {
|
|
2361
|
+
method: t,
|
|
2362
|
+
headers: n ? {
|
|
2363
|
+
"Content-Type": "multipart/form-data"
|
|
2364
|
+
} : {},
|
|
2365
|
+
url: s,
|
|
2366
|
+
data: a
|
|
2367
|
+
})
|
|
2368
|
+
);
|
|
2369
|
+
};
|
|
2370
|
+
}
|
|
2371
|
+
te.prototype[t] = r(), t !== "query" && (te.prototype[t + "Form"] = r(!0));
|
|
2372
|
+
});
|
|
2373
|
+
let Po = class ar {
|
|
2374
|
+
constructor(t) {
|
|
2375
|
+
if (typeof t != "function")
|
|
2376
|
+
throw new TypeError("executor must be a function.");
|
|
2377
|
+
let r;
|
|
2378
|
+
this.promise = new Promise(function(s) {
|
|
2379
|
+
r = s;
|
|
2380
|
+
});
|
|
2381
|
+
const n = this;
|
|
2382
|
+
this.promise.then((o) => {
|
|
2383
|
+
if (!n._listeners) return;
|
|
2384
|
+
let s = n._listeners.length;
|
|
2385
|
+
for (; s-- > 0; )
|
|
2386
|
+
n._listeners[s](o);
|
|
2387
|
+
n._listeners = null;
|
|
2388
|
+
}), this.promise.then = (o) => {
|
|
2389
|
+
let s;
|
|
2390
|
+
const a = new Promise((i) => {
|
|
2391
|
+
n.subscribe(i), s = i;
|
|
2392
|
+
}).then(o);
|
|
2393
|
+
return a.cancel = function() {
|
|
2394
|
+
n.unsubscribe(s);
|
|
2395
|
+
}, a;
|
|
2396
|
+
}, t(function(s, a, i) {
|
|
2397
|
+
n.reason || (n.reason = new _e(s, a, i), r(n.reason));
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
/**
|
|
2401
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
2402
|
+
*/
|
|
2403
|
+
throwIfRequested() {
|
|
2404
|
+
if (this.reason)
|
|
2405
|
+
throw this.reason;
|
|
2406
|
+
}
|
|
2407
|
+
/**
|
|
2408
|
+
* Subscribe to the cancel signal
|
|
2409
|
+
*/
|
|
2410
|
+
subscribe(t) {
|
|
2411
|
+
if (this.reason) {
|
|
2412
|
+
t(this.reason);
|
|
2413
|
+
return;
|
|
2414
|
+
}
|
|
2415
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
* Unsubscribe from the cancel signal
|
|
2419
|
+
*/
|
|
2420
|
+
unsubscribe(t) {
|
|
2421
|
+
if (!this._listeners)
|
|
2422
|
+
return;
|
|
2423
|
+
const r = this._listeners.indexOf(t);
|
|
2424
|
+
r !== -1 && this._listeners.splice(r, 1);
|
|
2425
|
+
}
|
|
2426
|
+
toAbortSignal() {
|
|
2427
|
+
const t = new AbortController(), r = (n) => {
|
|
2428
|
+
t.abort(n);
|
|
2429
|
+
};
|
|
2430
|
+
return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
|
|
2431
|
+
}
|
|
2432
|
+
/**
|
|
2433
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
2434
|
+
* cancels the `CancelToken`.
|
|
2435
|
+
*/
|
|
2436
|
+
static source() {
|
|
2437
|
+
let t;
|
|
2438
|
+
return {
|
|
2439
|
+
token: new ar(function(o) {
|
|
2440
|
+
t = o;
|
|
2441
|
+
}),
|
|
2442
|
+
cancel: t
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
};
|
|
2446
|
+
function To(e) {
|
|
2447
|
+
return function(r) {
|
|
2448
|
+
return e.apply(null, r);
|
|
2449
|
+
};
|
|
2450
|
+
}
|
|
2451
|
+
function Co(e) {
|
|
2452
|
+
return l.isObject(e) && e.isAxiosError === !0;
|
|
2453
|
+
}
|
|
2454
|
+
const Pe = {
|
|
2455
|
+
Continue: 100,
|
|
2456
|
+
SwitchingProtocols: 101,
|
|
2457
|
+
Processing: 102,
|
|
2458
|
+
EarlyHints: 103,
|
|
2459
|
+
Ok: 200,
|
|
2460
|
+
Created: 201,
|
|
2461
|
+
Accepted: 202,
|
|
2462
|
+
NonAuthoritativeInformation: 203,
|
|
2463
|
+
NoContent: 204,
|
|
2464
|
+
ResetContent: 205,
|
|
2465
|
+
PartialContent: 206,
|
|
2466
|
+
MultiStatus: 207,
|
|
2467
|
+
AlreadyReported: 208,
|
|
2468
|
+
ImUsed: 226,
|
|
2469
|
+
MultipleChoices: 300,
|
|
2470
|
+
MovedPermanently: 301,
|
|
2471
|
+
Found: 302,
|
|
2472
|
+
SeeOther: 303,
|
|
2473
|
+
NotModified: 304,
|
|
2474
|
+
UseProxy: 305,
|
|
2475
|
+
Unused: 306,
|
|
2476
|
+
TemporaryRedirect: 307,
|
|
2477
|
+
PermanentRedirect: 308,
|
|
2478
|
+
BadRequest: 400,
|
|
2479
|
+
Unauthorized: 401,
|
|
2480
|
+
PaymentRequired: 402,
|
|
2481
|
+
Forbidden: 403,
|
|
2482
|
+
NotFound: 404,
|
|
2483
|
+
MethodNotAllowed: 405,
|
|
2484
|
+
NotAcceptable: 406,
|
|
2485
|
+
ProxyAuthenticationRequired: 407,
|
|
2486
|
+
RequestTimeout: 408,
|
|
2487
|
+
Conflict: 409,
|
|
2488
|
+
Gone: 410,
|
|
2489
|
+
LengthRequired: 411,
|
|
2490
|
+
PreconditionFailed: 412,
|
|
2491
|
+
/**
|
|
2492
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
2493
|
+
*/
|
|
2494
|
+
PayloadTooLarge: 413,
|
|
2495
|
+
ContentTooLarge: 413,
|
|
2496
|
+
UriTooLong: 414,
|
|
2497
|
+
UnsupportedMediaType: 415,
|
|
2498
|
+
RangeNotSatisfiable: 416,
|
|
2499
|
+
ExpectationFailed: 417,
|
|
2500
|
+
ImATeapot: 418,
|
|
2501
|
+
MisdirectedRequest: 421,
|
|
2502
|
+
/**
|
|
2503
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
2504
|
+
*/
|
|
2505
|
+
UnprocessableEntity: 422,
|
|
2506
|
+
UnprocessableContent: 422,
|
|
2507
|
+
Locked: 423,
|
|
2508
|
+
FailedDependency: 424,
|
|
2509
|
+
TooEarly: 425,
|
|
2510
|
+
UpgradeRequired: 426,
|
|
2511
|
+
PreconditionRequired: 428,
|
|
2512
|
+
TooManyRequests: 429,
|
|
2513
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
2514
|
+
UnavailableForLegalReasons: 451,
|
|
2515
|
+
InternalServerError: 500,
|
|
2516
|
+
NotImplemented: 501,
|
|
2517
|
+
BadGateway: 502,
|
|
2518
|
+
ServiceUnavailable: 503,
|
|
2519
|
+
GatewayTimeout: 504,
|
|
2520
|
+
HttpVersionNotSupported: 505,
|
|
2521
|
+
VariantAlsoNegotiates: 506,
|
|
2522
|
+
InsufficientStorage: 507,
|
|
2523
|
+
LoopDetected: 508,
|
|
2524
|
+
NotExtended: 510,
|
|
2525
|
+
NetworkAuthenticationRequired: 511,
|
|
2526
|
+
WebServerReturnsAnUnknownError: 520,
|
|
2527
|
+
WebServerIsDown: 521,
|
|
2528
|
+
ConnectionTimedOut: 522,
|
|
2529
|
+
OriginIsUnreachable: 523,
|
|
2530
|
+
TimeoutOccurred: 524,
|
|
2531
|
+
SslHandshakeFailed: 525,
|
|
2532
|
+
InvalidSslCertificate: 526
|
|
2533
|
+
};
|
|
2534
|
+
Object.entries(Pe).forEach(([e, t]) => {
|
|
2535
|
+
Pe[t] === void 0 && (Pe[t] = e);
|
|
2536
|
+
});
|
|
2537
|
+
function ir(e) {
|
|
2538
|
+
const t = new te(e), r = Ct(te.prototype.request, t);
|
|
2539
|
+
return l.extend(r, te.prototype, t, { allOwnKeys: !0 }), l.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
2540
|
+
return ir(oe(e, o));
|
|
2541
|
+
}, r;
|
|
2542
|
+
}
|
|
2543
|
+
const O = ir(ye);
|
|
2544
|
+
O.Axios = te;
|
|
2545
|
+
O.CanceledError = _e;
|
|
2546
|
+
O.CancelToken = Po;
|
|
2547
|
+
O.isCancel = Gt;
|
|
2548
|
+
O.VERSION = tt;
|
|
2549
|
+
O.toFormData = De;
|
|
2550
|
+
O.AxiosError = g;
|
|
2551
|
+
O.Cancel = O.CanceledError;
|
|
2552
|
+
O.all = function(t) {
|
|
2553
|
+
return Promise.all(t);
|
|
2554
|
+
};
|
|
2555
|
+
O.spread = To;
|
|
2556
|
+
O.isAxiosError = Co;
|
|
2557
|
+
O.mergeConfig = oe;
|
|
2558
|
+
O.AxiosHeaders = L;
|
|
2559
|
+
O.formToJSON = (e) => Qt(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
2560
|
+
O.getAdapter = sr.getAdapter;
|
|
2561
|
+
O.HttpStatusCode = Pe;
|
|
2562
|
+
O.default = O;
|
|
2563
|
+
const {
|
|
2564
|
+
Axios: ns,
|
|
2565
|
+
AxiosError: os,
|
|
2566
|
+
CanceledError: ss,
|
|
2567
|
+
isCancel: as,
|
|
2568
|
+
CancelToken: is,
|
|
2569
|
+
VERSION: ls,
|
|
2570
|
+
all: cs,
|
|
2571
|
+
Cancel: ds,
|
|
2572
|
+
isAxiosError: us,
|
|
2573
|
+
spread: fs,
|
|
2574
|
+
toFormData: ps,
|
|
2575
|
+
AxiosHeaders: gs,
|
|
2576
|
+
HttpStatusCode: bs,
|
|
2577
|
+
formToJSON: hs,
|
|
2578
|
+
getAdapter: ms,
|
|
2579
|
+
mergeConfig: ws,
|
|
2580
|
+
create: xs
|
|
2581
|
+
} = O, No = "1.2.1", nt = {
|
|
2582
|
+
// 库版本号,界面版本号显示统一从这里读取
|
|
2583
|
+
version: No,
|
|
2584
|
+
page: {
|
|
2585
|
+
global: {
|
|
2586
|
+
size: "default"
|
|
2587
|
+
},
|
|
2588
|
+
componentDefault: {
|
|
2589
|
+
// Requester 请求触发组件默认值(开发者可通过全局配置覆盖)
|
|
2590
|
+
WdRequester: {
|
|
2591
|
+
method: "post"
|
|
2592
|
+
}
|
|
2593
|
+
},
|
|
2594
|
+
pager: {
|
|
2595
|
+
size: 32,
|
|
2596
|
+
pageSizes: [10, 20, 50, 100, 200],
|
|
2597
|
+
pageSize: 20,
|
|
2598
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
2599
|
+
hideOnSinglePage: !1,
|
|
2600
|
+
position: "right"
|
|
2601
|
+
}
|
|
2602
|
+
},
|
|
2603
|
+
request: {
|
|
2604
|
+
urlPrefix: "",
|
|
2605
|
+
throwException: !1,
|
|
2606
|
+
// 并发相同请求合并去重(method+url+params 一致只发一次),表列内请求组件等场景自动收敛为一次调用
|
|
2607
|
+
dedup: !0,
|
|
2608
|
+
loading: {
|
|
2609
|
+
enable: !0,
|
|
2610
|
+
props: {
|
|
2611
|
+
lock: !0,
|
|
2612
|
+
text: "加载中...",
|
|
2613
|
+
background: "rgba(255, 255, 255, 0.7)"
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
axiosConfig: {
|
|
2617
|
+
timeout: 3e4
|
|
2618
|
+
},
|
|
2619
|
+
pageParam: {
|
|
2620
|
+
pageField: "currentPage",
|
|
2621
|
+
sizeField: "pageSize",
|
|
2622
|
+
searchField: "param"
|
|
2623
|
+
},
|
|
2624
|
+
transform: {}
|
|
2625
|
+
},
|
|
2626
|
+
response: {
|
|
2627
|
+
props: {
|
|
2628
|
+
codeName: "code",
|
|
2629
|
+
messageName: "message",
|
|
2630
|
+
dataName: "data"
|
|
2631
|
+
},
|
|
2632
|
+
successCode: 0,
|
|
2633
|
+
list: {
|
|
2634
|
+
listName: "list",
|
|
2635
|
+
totalName: "total",
|
|
2636
|
+
pageSizeName: "pageSize",
|
|
2637
|
+
currentPageName: "currentPage"
|
|
2638
|
+
},
|
|
2639
|
+
success: {
|
|
2640
|
+
tipsMode: "message",
|
|
2641
|
+
tipsType: "success",
|
|
2642
|
+
showTips: !1,
|
|
2643
|
+
props: {}
|
|
2644
|
+
},
|
|
2645
|
+
fail: {
|
|
2646
|
+
tipsMode: "messagebox",
|
|
2647
|
+
tipsType: "error",
|
|
2648
|
+
showTips: !0,
|
|
2649
|
+
title: "操作失败",
|
|
2650
|
+
props: {}
|
|
2651
|
+
},
|
|
2652
|
+
exception: {
|
|
2653
|
+
tipsMode: "messagebox",
|
|
2654
|
+
tipsType: "error",
|
|
2655
|
+
showTips: !0,
|
|
2656
|
+
title: "网络异常",
|
|
2657
|
+
props: {}
|
|
2658
|
+
},
|
|
2659
|
+
complete: {
|
|
2660
|
+
tipsType: "message"
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2663
|
+
theme: {
|
|
2664
|
+
colors: {},
|
|
2665
|
+
cssVars: {}
|
|
2666
|
+
}
|
|
2667
|
+
};
|
|
2668
|
+
function qe(e) {
|
|
2669
|
+
if (e === null || typeof e != "object") return !1;
|
|
2670
|
+
const t = Object.getPrototypeOf(e);
|
|
2671
|
+
return t === Object.prototype || t === null;
|
|
2672
|
+
}
|
|
2673
|
+
function V(...e) {
|
|
2674
|
+
const t = {};
|
|
2675
|
+
for (const r of e)
|
|
2676
|
+
if (qe(r))
|
|
2677
|
+
for (const n of Object.keys(r)) {
|
|
2678
|
+
const o = t[n], s = r[n];
|
|
2679
|
+
Array.isArray(s) ? t[n] = s.slice() : qe(s) ? t[n] = V(qe(o) ? o : {}, s) : s !== void 0 && (t[n] = s);
|
|
2680
|
+
}
|
|
2681
|
+
return t;
|
|
2682
|
+
}
|
|
2683
|
+
function ys(e, t) {
|
|
2684
|
+
if (!e) return t;
|
|
2685
|
+
try {
|
|
2686
|
+
return JSON.parse(e);
|
|
2687
|
+
} catch {
|
|
2688
|
+
return t;
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
const Do = {
|
|
2692
|
+
key: "default",
|
|
2693
|
+
label: "默认",
|
|
2694
|
+
desc: "WorkDesktop 品牌蓝,源自产品 Logo 的 V 形主色",
|
|
2695
|
+
theme: {}
|
|
2696
|
+
}, Lo = {
|
|
2697
|
+
key: "fashion",
|
|
2698
|
+
label: "时尚",
|
|
2699
|
+
desc: "珊瑚橙主色与奶油暖底柔光斑,白卡片大圆角,适合 SaaS / 运营 / 电商后台",
|
|
2700
|
+
theme: {
|
|
2701
|
+
colors: {
|
|
2702
|
+
// 珊瑚橙加深至 #cd3c1d:原 #f0553a 白字对比度仅 3.46,不达 WCAG AA 4.5 质量门
|
|
2703
|
+
primary: "#cd3c1d",
|
|
2704
|
+
success: "#22b573",
|
|
2705
|
+
warning: "#f5a623",
|
|
2706
|
+
danger: "#d92d20",
|
|
2707
|
+
info: "#64748b"
|
|
2708
|
+
},
|
|
2709
|
+
cssVars: {
|
|
2710
|
+
"--wd-bg-color-page": "#f6f1ea",
|
|
2711
|
+
"--wd-text-color-primary": "#1d2129",
|
|
2712
|
+
// 原 #6b7280 对奶油页底对比度 4.30 不达标,加深至 #646b78(≈4.77)
|
|
2713
|
+
"--wd-text-color-secondary": "#646b78",
|
|
2714
|
+
"--wd-border-color": "#e9e1d6",
|
|
2715
|
+
"--wd-border-color-light": "#f2ebe0",
|
|
2716
|
+
"--wd-radius-base": "8px",
|
|
2717
|
+
"--wd-radius-small": "6px",
|
|
2718
|
+
// 杂志风白卡片:14px 大圆角 + 暖调弥散阴影
|
|
2719
|
+
"--wd-panel-radius": "14px",
|
|
2720
|
+
"--wd-panel-shadow-sm": "0 1px 2px rgba(31, 25, 16, 0.04), 0 10px 24px -6px rgba(31, 25, 16, 0.08)",
|
|
2721
|
+
"--wd-datagrid-radius": "14px",
|
|
2722
|
+
// 标题回归纯文字:彩色标识条宽度归零(伪元素隐藏,与参考图一致)
|
|
2723
|
+
"--wd-panel-title-bar-width": "0",
|
|
2724
|
+
// 容器类毛玻璃:面板 / 搜索 / 表格半透白底(配 cssRules 的 backdrop-filter 成磨砂,页面光斑隐约透出),面板亮边模拟玻璃高光
|
|
2725
|
+
"--wd-panel-bg": "rgba(255, 255, 255, 0.62)",
|
|
2726
|
+
"--wd-panel-border-color": "rgba(255, 255, 255, 0.7)",
|
|
2727
|
+
"--wd-search-bg": "rgba(255, 255, 255, 0.5)",
|
|
2728
|
+
"--wd-datagrid-bg": "rgba(255, 255, 255, 0.55)",
|
|
2729
|
+
"--wd-editable-grid-bg": "rgba(255, 255, 255, 0.55)",
|
|
2730
|
+
// EP 表格默认不透明白底会盖住容器玻璃底,透明化透出;表头留半透白分层,行 hover 暖色透底(默认浅灰不透明会糊块)
|
|
2731
|
+
"--el-table-bg-color": "transparent",
|
|
2732
|
+
"--el-table-tr-bg-color": "transparent",
|
|
2733
|
+
"--el-table-header-bg-color": "rgba(255, 255, 255, 0.45)",
|
|
2734
|
+
"--el-table-row-hover-bg-color": "rgba(205, 60, 29, 0.05)",
|
|
2735
|
+
// 导航区:半透奶油白侧栏 + 半透白顶栏 / tabs 条(配 cssRules 的 backdrop-filter 成毛玻璃,页面光斑隐约透出)
|
|
2736
|
+
"--wd-station-aside-bg": "rgba(251, 247, 240, 0.72)",
|
|
2737
|
+
"--wd-station-header-bg": "rgba(255, 255, 255, 0.65)",
|
|
2738
|
+
"--wd-station-tabs-bg": "rgba(255, 255, 255, 0.55)"
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
2741
|
+
// 皮肤专属 CSS 规则:页面柔光斑氛围底 + 毛玻璃导航区 + 侧栏深墨胶囊选中态(渐变光晕/背景模糊/选中胶囊为 rule 级定制,EP 变量做不到)
|
|
2742
|
+
cssRules: `
|
|
2743
|
+
/* 页面氛围:奶油底上叠桃橙 / 雾蓝 / 淡紫柔光斑(radial 渐变叠加在 --wd-bg-color-page 之上,用户改底色可联动) */
|
|
2744
|
+
.wd-station {
|
|
2745
|
+
background:
|
|
2746
|
+
radial-gradient(620px 480px at -6% -8%, rgba(205, 60, 29, 0.16), transparent 70%),
|
|
2747
|
+
radial-gradient(560px 460px at 106% 104%, rgba(94, 132, 220, 0.18), transparent 70%),
|
|
2748
|
+
radial-gradient(380px 320px at 4% 98%, rgba(158, 146, 214, 0.12), transparent 70%),
|
|
2749
|
+
var(--wd-bg-color-page);
|
|
2750
|
+
}
|
|
2751
|
+
/* 毛玻璃导航区:半透底(见 cssVars)+ 背景模糊提亮,光斑透过来形成磨砂质感 */
|
|
2752
|
+
.wd-station__aside,
|
|
2753
|
+
.wd-station__header,
|
|
2754
|
+
.wd-station__tabs-bar {
|
|
2755
|
+
backdrop-filter: blur(16px) saturate(1.5);
|
|
2756
|
+
-webkit-backdrop-filter: blur(16px) saturate(1.5);
|
|
2757
|
+
}
|
|
2758
|
+
/* 容器类毛玻璃:面板 / 搜索 / 表格半透底(见 cssVars)+ 背景模糊提亮,比导航区弱一档保持内容清晰 */
|
|
2759
|
+
.wd-panel,
|
|
2760
|
+
.wd-search-panel,
|
|
2761
|
+
.wd-datagrid,
|
|
2762
|
+
.wd-editable-grid {
|
|
2763
|
+
backdrop-filter: blur(14px) saturate(1.4);
|
|
2764
|
+
-webkit-backdrop-filter: blur(14px) saturate(1.4);
|
|
2765
|
+
}
|
|
2766
|
+
/* EP 菜单默认不透明白底会盖住侧栏毛玻璃,改透明(含 inline 展开子菜单) */
|
|
2767
|
+
.wd-station__menu.el-menu,
|
|
2768
|
+
.wd-station__menu .el-menu--inline {
|
|
2769
|
+
background: transparent;
|
|
2770
|
+
}
|
|
2771
|
+
/* 侧边菜单:深墨胶囊选中态(参考图侧栏标志性处理),圆角 + 左右内收 */
|
|
2772
|
+
.wd-station__menu .el-menu-item,
|
|
2773
|
+
.wd-station__menu .el-sub-menu__title {
|
|
2774
|
+
margin: 2px 10px;
|
|
2775
|
+
border-radius: 10px;
|
|
2776
|
+
}
|
|
2777
|
+
.wd-station__menu .el-menu-item:hover,
|
|
2778
|
+
.wd-station__menu .el-sub-menu__title:hover {
|
|
2779
|
+
background: rgba(31, 37, 50, 0.06);
|
|
2780
|
+
}
|
|
2781
|
+
.wd-station__menu .el-menu-item.is-active {
|
|
2782
|
+
background: #1f2532;
|
|
2783
|
+
color: #fff;
|
|
2784
|
+
font-weight: 600;
|
|
2785
|
+
}
|
|
2786
|
+
.wd-station__menu .el-menu-item.is-active .el-icon {
|
|
2787
|
+
color: #fff;
|
|
2788
|
+
}
|
|
2789
|
+
`
|
|
2790
|
+
}, Uo = {
|
|
2791
|
+
key: "business",
|
|
2792
|
+
label: "商务",
|
|
2793
|
+
desc: "藏青边栏配白卡浅灰内容区,商务金点缀,适合企业级管理后台",
|
|
2794
|
+
theme: {
|
|
2795
|
+
colors: {
|
|
2796
|
+
primary: "#1e2c4f",
|
|
2797
|
+
success: "#2e7d5d",
|
|
2798
|
+
warning: "#c9a24b",
|
|
2799
|
+
danger: "#b0413e",
|
|
2800
|
+
info: "#7a8699"
|
|
2801
|
+
},
|
|
2802
|
+
cssVars: {
|
|
2803
|
+
"--wd-bg-color-page": "#f4f5f7",
|
|
2804
|
+
"--wd-text-color-primary": "#1f2d3d",
|
|
2805
|
+
"--wd-text-color-regular": "#4e5a6e",
|
|
2806
|
+
"--wd-border-color": "#d4dae3",
|
|
2807
|
+
"--wd-border-color-light": "#e6e9ef",
|
|
2808
|
+
"--wd-radius-base": "6px",
|
|
2809
|
+
"--wd-radius-small": "4px",
|
|
2810
|
+
// 组件级:白卡 + 金色标题标识条(呼应参考图标题金线点缀),面板轻微浮起
|
|
2811
|
+
"--wd-panel-title-bar-bg": "#c9a24b",
|
|
2812
|
+
"--wd-panel-shadow-sm": "0 1px 3px rgba(30, 44, 79, 0.06), 0 6px 16px rgba(30, 44, 79, 0.06)",
|
|
2813
|
+
// 导航区:侧栏 / 顶栏 / 底栏统一深藏青边栏框架(文字浅化与菜单金色选中见 cssRules)
|
|
2814
|
+
"--wd-station-aside-bg": "#1e2c4f",
|
|
2815
|
+
"--wd-station-header-bg": "#1e2c4f",
|
|
2816
|
+
"--wd-station-footer-bg": "#1e2c4f"
|
|
2817
|
+
}
|
|
2818
|
+
},
|
|
2819
|
+
cssRules: `
|
|
2820
|
+
/* 表格表头浅灰底(参考图客户列表):EP 在 .el-table 元素规则上自定义 --el-table-header-bg-color,
|
|
2821
|
+
:root 注入会被元素自身规则盖住(自定义属性继承恒弱于元素声明),须同选择器级覆盖 */
|
|
2822
|
+
.el-table {
|
|
2823
|
+
--el-table-header-bg-color: #f7f8fa;
|
|
2824
|
+
}
|
|
2825
|
+
/* ===== 藏青边栏框架配套 =====
|
|
2826
|
+
混合模式:边栏深藏青、内容区保持白卡浅灰;菜单变量限定 Station 作用域,不影响内容区。
|
|
2827
|
+
EP 默认菜单 hover 底为主色 light-9(浅灰蓝),藏青底上会糊成浅色亮块,改半透明白同源 */
|
|
2828
|
+
.wd-station__menu,
|
|
2829
|
+
.wd-station__top-menu .el-menu {
|
|
2830
|
+
--el-menu-bg-color: transparent;
|
|
2831
|
+
--el-menu-text-color: #b8c2d4;
|
|
2832
|
+
--el-menu-hover-bg-color: rgba(255, 255, 255, 0.08);
|
|
2833
|
+
}
|
|
2834
|
+
/* 侧栏菜单:商务金实心选中态(藏青字加粗,金底藏青字对比度 ≈8:1),与顶栏金下划线呼应 */
|
|
2835
|
+
.wd-station__menu .el-menu-item,
|
|
2836
|
+
.wd-station__menu .el-sub-menu__title {
|
|
2837
|
+
margin: 2px 8px;
|
|
2838
|
+
border-radius: 6px;
|
|
2839
|
+
}
|
|
2840
|
+
.wd-station__menu .el-menu-item.is-active {
|
|
2841
|
+
background: var(--wd-color-warning);
|
|
2842
|
+
color: #1e2c4f;
|
|
2843
|
+
font-weight: 600;
|
|
2844
|
+
}
|
|
2845
|
+
.wd-station__menu .el-menu-item.is-active:hover {
|
|
2846
|
+
background: var(--wd-color-warning);
|
|
2847
|
+
color: #1e2c4f;
|
|
2848
|
+
}
|
|
2849
|
+
/* 含激活子项的分组标题:藏青主色字在藏青底上不可读,转商务金 */
|
|
2850
|
+
.wd-station__menu .el-sub-menu.is-active > .el-sub-menu__title {
|
|
2851
|
+
color: var(--wd-color-warning);
|
|
2852
|
+
}
|
|
2853
|
+
/* 顶栏:文字基色浅化供插槽内容继承,标题纯白,折叠钮 hover 转金,底部分隔线同色淡化。
|
|
2854
|
+
Station 样式为 scoped(编译后选择器自带 [data-v] 属性、优先级高一级),
|
|
2855
|
+
皮肤规则统一用两级选择器追平优先级,靠 <style data-workdesktop-theme> 后注入胜出 */
|
|
2856
|
+
.wd-station .wd-station__header {
|
|
2857
|
+
color: #e8ecf3;
|
|
2858
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
2859
|
+
}
|
|
2860
|
+
.wd-station__header .wd-station__logo-title,
|
|
2861
|
+
.wd-station__header .wd-station__header-title {
|
|
2862
|
+
color: #ffffff;
|
|
2863
|
+
}
|
|
2864
|
+
.wd-station .wd-station__collapse { color: #b8c2d4; }
|
|
2865
|
+
.wd-station .wd-station__collapse:hover { color: var(--wd-color-warning); }
|
|
2866
|
+
/* 分导台:未选项浅灰白,激活项商务金文字 + 金色下划线(下划线随 warning 色联动) */
|
|
2867
|
+
.wd-station__header .wd-station__nav-item { color: #b8c2d4; }
|
|
2868
|
+
.wd-station__header .wd-station__nav-item:hover {
|
|
2869
|
+
color: #ffffff;
|
|
2870
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2871
|
+
}
|
|
2872
|
+
.wd-station__header .wd-station__nav-item.is-active {
|
|
2873
|
+
color: var(--wd-color-warning);
|
|
2874
|
+
background: transparent;
|
|
2875
|
+
box-shadow: inset 0 -2px 0 var(--wd-color-warning);
|
|
2876
|
+
}
|
|
2877
|
+
/* 顶部水平菜单:激活下划线同步商务金 */
|
|
2878
|
+
.wd-station__top-menu .el-menu--horizontal > .el-menu-item.is-active,
|
|
2879
|
+
.wd-station__top-menu .el-menu--horizontal > .el-sub-menu.is-active .el-sub-menu__title {
|
|
2880
|
+
border-bottom-color: var(--wd-color-warning);
|
|
2881
|
+
color: var(--wd-color-warning);
|
|
2882
|
+
}
|
|
2883
|
+
/* 侧栏:logo 白字 + 分隔线同色淡化,右边框在藏青底上转透明系 */
|
|
2884
|
+
.wd-station .wd-station__aside { border-right-color: rgba(255, 255, 255, 0.06); }
|
|
2885
|
+
.wd-station__aside .wd-station__logo { border-bottom-color: rgba(255, 255, 255, 0.1); }
|
|
2886
|
+
.wd-station__aside .wd-station__logo-title { color: #ffffff; }
|
|
2887
|
+
/* 底栏:藏青底文字浅化 + 分隔线同色淡化 */
|
|
2888
|
+
.wd-station .wd-station__footer {
|
|
2889
|
+
border-top-color: rgba(255, 255, 255, 0.1);
|
|
2890
|
+
color: #8fa0b8;
|
|
2891
|
+
}
|
|
2892
|
+
.wd-station .wd-station__footer-info { color: #b8c2d4; }
|
|
2893
|
+
/* 分页:当前页藏青方块白字(主色联动,覆盖主色随动) */
|
|
2894
|
+
.el-pagination .el-pager li.is-active {
|
|
2895
|
+
background: var(--el-color-primary);
|
|
2896
|
+
color: #fff;
|
|
2897
|
+
border-radius: 4px;
|
|
2898
|
+
}
|
|
2899
|
+
.el-pagination .el-pager li.is-active:hover {
|
|
2900
|
+
background: var(--el-color-primary-dark-2);
|
|
2901
|
+
}
|
|
2902
|
+
`
|
|
2903
|
+
}, Fo = {
|
|
2904
|
+
key: "tech",
|
|
2905
|
+
label: "科技",
|
|
2906
|
+
desc: "深空霓虹青配非连续边框,适合数据大屏 / AI 类产品",
|
|
2907
|
+
theme: {
|
|
2908
|
+
colors: {
|
|
2909
|
+
primary: "#00e5ff",
|
|
2910
|
+
success: "#00ffa3",
|
|
2911
|
+
warning: "#ffb020",
|
|
2912
|
+
danger: "#ff4d6d",
|
|
2913
|
+
info: "#5b7ba6"
|
|
2914
|
+
},
|
|
2915
|
+
cssVars: {
|
|
2916
|
+
"--wd-bg-color": "#0a1828",
|
|
2917
|
+
"--wd-bg-color-page": "#050d1a",
|
|
2918
|
+
"--wd-bg-color-overlay": "#0d1e33",
|
|
2919
|
+
"--wd-text-color-primary": "#dcf4ff",
|
|
2920
|
+
"--wd-text-color-regular": "#9cc3e8",
|
|
2921
|
+
"--wd-text-color-secondary": "#6b90bb",
|
|
2922
|
+
"--wd-text-color-placeholder": "#45638c",
|
|
2923
|
+
"--wd-border-color": "rgba(0, 229, 255, 0.28)",
|
|
2924
|
+
"--wd-border-color-light": "rgba(0, 229, 255, 0.16)",
|
|
2925
|
+
"--wd-radius-base": "6px",
|
|
2926
|
+
"--wd-radius-small": "4px",
|
|
2927
|
+
// 组件级:面板 / 表格深空蓝玻璃底 + 霓虹青描边辉光,青蓝渐变标识条,导航区压黑
|
|
2928
|
+
"--wd-panel-bg": "#0a1828",
|
|
2929
|
+
// 底边调暗衬非连续边框(角码/虚线段见 cssRules ::before)+ 面板近直角
|
|
2930
|
+
"--wd-panel-border-color": "rgba(0, 229, 255, 0.14)",
|
|
2931
|
+
"--wd-panel-radius": "3px",
|
|
2932
|
+
"--wd-panel-header-bg": "rgba(0, 229, 255, 0.06)",
|
|
2933
|
+
"--wd-panel-title-color": "#5ee9ff",
|
|
2934
|
+
"--wd-panel-shadow-sm": "0 0 18px rgba(0, 229, 255, 0.14)",
|
|
2935
|
+
"--wd-panel-shadow-md": "0 0 28px rgba(0, 229, 255, 0.26)",
|
|
2936
|
+
"--wd-panel-title-bar-bg": "linear-gradient(180deg, #00e5ff, #2979ff)",
|
|
2937
|
+
"--wd-datagrid-bg": "#0a1828",
|
|
2938
|
+
"--wd-datagrid-border-color": "rgba(0, 229, 255, 0.3)",
|
|
2939
|
+
"--wd-editable-grid-bg": "#0a1828",
|
|
2940
|
+
"--wd-editable-grid-border-color": "rgba(0, 229, 255, 0.3)",
|
|
2941
|
+
"--wd-search-bg": "#0a1828",
|
|
2942
|
+
// DataForm 按钮容器:青蓝渐变 HUD 操作条 + 四周内边距 + 圆角(默认令牌仅顶部留白,给底色必须同步 padding/radius 防按钮贴边)
|
|
2943
|
+
"--wd-form-footer-bg": "linear-gradient(90deg, rgba(0, 229, 255, 0.09), rgba(41, 121, 255, 0.05))",
|
|
2944
|
+
"--wd-form-footer-padding": "10px 12px",
|
|
2945
|
+
"--wd-form-footer-radius": "6px",
|
|
2946
|
+
"--wd-station-aside-bg": "#040b16",
|
|
2947
|
+
"--wd-station-header-bg": "#040b16",
|
|
2948
|
+
"--wd-station-tabs-bg": "#040b16",
|
|
2949
|
+
// 背景素材:面板保持纯深空蓝(装饰收敛到非连续边框,视觉不吵);
|
|
2950
|
+
// 表格 / 搜索贴青色 HUD 网格,导航区贴青色扫描线(CRT 屏幕感),低透明度不影响可读性
|
|
2951
|
+
"--wd-datagrid-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.045) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.045) 0 1px, transparent 1px 24px)",
|
|
2952
|
+
"--wd-editable-grid-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.045) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.045) 0 1px, transparent 1px 24px)",
|
|
2953
|
+
"--wd-search-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.045) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.045) 0 1px, transparent 1px 24px)",
|
|
2954
|
+
"--wd-station-aside-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 4px)",
|
|
2955
|
+
"--wd-station-header-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 4px)",
|
|
2956
|
+
"--wd-station-tabs-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 4px)",
|
|
2957
|
+
// 菜单深色联动:底色贴合导航区压黑;EP 默认 hover 底为主色 light-9(浅青),深底下会糊成浅色亮块,改为青色同源深透底
|
|
2958
|
+
"--el-menu-bg-color": "#040b16",
|
|
2959
|
+
"--el-menu-hover-bg-color": "rgba(0, 229, 255, 0.1)",
|
|
2960
|
+
"--el-menu-item-hover-fill": "rgba(0, 229, 255, 0.1)",
|
|
2961
|
+
// ElementPlus 深色联动(填充 / 遮罩 / 阴影 / 按钮文字色)
|
|
2962
|
+
"--el-fill-color-blank": "#0a1828",
|
|
2963
|
+
"--el-fill-color": "#10233a",
|
|
2964
|
+
"--el-fill-color-light": "#12263e",
|
|
2965
|
+
"--el-fill-color-lighter": "#142a44",
|
|
2966
|
+
"--el-fill-color-extra-light": "#0c1c30",
|
|
2967
|
+
"--el-fill-color-dark": "#16304c",
|
|
2968
|
+
"--el-fill-color-darker": "#1a3656",
|
|
2969
|
+
// 仅作按钮文字色(EP 深色皮肤标准做法);注意 EP 内凡以 --el-color-white 作背景的场景会同步变深,实测无异常,改动需回归
|
|
2970
|
+
"--el-color-white": "#06121f",
|
|
2971
|
+
"--el-mask-color": "rgba(2, 8, 18, 0.72)",
|
|
2972
|
+
"--el-box-shadow": "0 4px 16px rgba(0, 0, 0, 0.5)",
|
|
2973
|
+
"--el-box-shadow-light": "0 2px 8px rgba(0, 0, 0, 0.4)"
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
// 皮肤专属 CSS 规则:表格内线青色 + 青光渐变主按钮 + ghost 青默认按钮 + 霓虹 primary 标签 +
|
|
2977
|
+
// 菜单选中光条 + 面板非连续边框 + 科技动画(面板扫描光 / 标识条呼吸 / 按钮流光 / 聚焦光晕 / 进度条流光 / 加载呼吸)
|
|
2978
|
+
// (EP 变量只能纯色填充,渐变/外发光必须 rule 级覆盖;发光色与面板描边 rgba(0,229,255) 同源)
|
|
2979
|
+
cssRules: `
|
|
2980
|
+
/* 表格内线青色:el-table 单元格线统一同源青 0.2(弱于容器外框拉开层次)。
|
|
2981
|
+
EP 在 .el-table 元素规则上自定义 --el-table-border-color,cssVars :root 注入会被盖住,
|
|
2982
|
+
必须同选择器级覆盖——本规则与 EP .el-table 规则同 specificity (0,1,0),皮肤样式注入在后胜出 */
|
|
2983
|
+
.el-table {
|
|
2984
|
+
--el-table-border-color: rgba(0, 229, 255, 0.2);
|
|
2985
|
+
}
|
|
2986
|
+
/* 主按钮:青→蓝渐变 + 青光外发光(渐变起点跟随 --el-color-primary,用户覆盖主色可联动;文字取已压深的 --el-color-white) */
|
|
2987
|
+
.el-button--primary {
|
|
2988
|
+
background-image: linear-gradient(135deg, var(--el-color-primary), #2979ff);
|
|
2989
|
+
--el-button-border-color: transparent;
|
|
2990
|
+
--el-button-hover-border-color: transparent;
|
|
2991
|
+
box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
|
|
2992
|
+
}
|
|
2993
|
+
.el-button--primary:hover {
|
|
2994
|
+
background-image: linear-gradient(135deg, var(--el-color-primary-light-3), #4d94ff);
|
|
2995
|
+
box-shadow: 0 0 22px rgba(0, 229, 255, 0.6);
|
|
2996
|
+
}
|
|
2997
|
+
.el-button--primary.is-disabled,
|
|
2998
|
+
.el-button--primary.is-disabled:hover {
|
|
2999
|
+
background-image: none;
|
|
3000
|
+
box-shadow: none;
|
|
3001
|
+
}
|
|
3002
|
+
/* 默认按钮:ghost 青(深青底 + 青描边 + 亮青字);:not 排除语义色按钮与 text/link 形态 */
|
|
3003
|
+
.el-button:not([class*='el-button--']):not(.is-text):not(.is-link) {
|
|
3004
|
+
--el-button-bg-color: rgba(0, 229, 255, 0.08);
|
|
3005
|
+
--el-button-border-color: rgba(0, 229, 255, 0.4);
|
|
3006
|
+
--el-button-text-color: #a5f3ff;
|
|
3007
|
+
--el-button-hover-bg-color: rgba(0, 229, 255, 0.18);
|
|
3008
|
+
--el-button-hover-border-color: rgba(94, 233, 255, 0.65);
|
|
3009
|
+
--el-button-hover-text-color: #d6f8ff;
|
|
3010
|
+
}
|
|
3011
|
+
/* primary 标签:深青底 + 亮青字(success 等语义标签不动) */
|
|
3012
|
+
.el-tag.el-tag--primary {
|
|
3013
|
+
--el-tag-bg-color: rgba(0, 229, 255, 0.14);
|
|
3014
|
+
--el-tag-border-color: rgba(0, 229, 255, 0.36);
|
|
3015
|
+
--el-tag-text-color: #a5f3ff;
|
|
3016
|
+
--el-tag-hover-color: #5ee9ff;
|
|
3017
|
+
}
|
|
3018
|
+
/* 菜单选中项:青色 tint 底 + 左侧 2px 霓虹条 + 文字发光(仅垂直菜单,横向菜单走 EP 底部指示条) */
|
|
3019
|
+
.el-menu--vertical .el-menu-item.is-active {
|
|
3020
|
+
background-color: rgba(0, 229, 255, 0.1);
|
|
3021
|
+
box-shadow: inset 2px 0 0 var(--el-color-primary);
|
|
3022
|
+
text-shadow: 0 0 8px rgba(0, 229, 255, 0.55);
|
|
3023
|
+
}
|
|
3024
|
+
/* 非连续边框(参考 Loss Curve 科技面板):底边调暗至 0.14 衬断续感,::before 叠
|
|
3025
|
+
四角 L 角码(8 层 3px 粗 20px 臂亮青 0.95,视觉主角)+ 四边断续虚线段(16px 亮 /
|
|
3026
|
+
12px 间隔、0.42 弱于角码拉开层次,内缩 32px = 20px 角码臂 + 12px 间隙,不横穿角码区,
|
|
3027
|
+
角码与虚线分离才读得出层次),drop-shadow 3px 辉光集中在角码;
|
|
3028
|
+
::after 已被扫描光占用故用 ::before;面板 overflow:hidden 负责圆角裁切;
|
|
3029
|
+
no-border 变体不画框;pointer-events:none 不拦截交互 */
|
|
3030
|
+
.wd-panel:not(.wd-panel--no-border)::before {
|
|
3031
|
+
content: '';
|
|
3032
|
+
position: absolute;
|
|
3033
|
+
inset: 0;
|
|
3034
|
+
pointer-events: none;
|
|
3035
|
+
background:
|
|
3036
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) left top / 20px 3px,
|
|
3037
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) left top / 3px 20px,
|
|
3038
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) right top / 20px 3px,
|
|
3039
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) right top / 3px 20px,
|
|
3040
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) left bottom / 20px 3px,
|
|
3041
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) left bottom / 3px 20px,
|
|
3042
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) right bottom / 20px 3px,
|
|
3043
|
+
linear-gradient(rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.95)) right bottom / 3px 20px,
|
|
3044
|
+
repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.42) 0 16px, transparent 16px 28px) left 32px top / calc(100% - 64px) 1px,
|
|
3045
|
+
repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.42) 0 16px, transparent 16px 28px) left 32px bottom / calc(100% - 64px) 1px,
|
|
3046
|
+
repeating-linear-gradient(180deg, rgba(0, 229, 255, 0.42) 0 16px, transparent 16px 28px) left top 32px / 1px calc(100% - 64px),
|
|
3047
|
+
repeating-linear-gradient(180deg, rgba(0, 229, 255, 0.42) 0 16px, transparent 16px 28px) right top 32px / 1px calc(100% - 64px);
|
|
3048
|
+
background-repeat: no-repeat;
|
|
3049
|
+
filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.55));
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
/* ===== 科技动画体系:扫描光 + 呼吸 + 流光 + 聚焦光晕 =====
|
|
3053
|
+
守则:只动 transform/opacity/box-shadow(合成层,不触发 layout);无限动画仅低透明 /
|
|
3054
|
+
低振幅不干扰阅读;disabled/loading 态不做 hover 变换 */
|
|
3055
|
+
/* 面板扫描光:斜切光带周期性横向扫过面板(呼应参考图数据流扫描线,透明度 0.07 不遮内容) */
|
|
3056
|
+
@keyframes wd-tech-scan {
|
|
3057
|
+
from { transform: translateX(-120%) skewX(-14deg); }
|
|
3058
|
+
to { transform: translateX(560%) skewX(-14deg); }
|
|
3059
|
+
}
|
|
3060
|
+
.wd-panel {
|
|
3061
|
+
position: relative;
|
|
3062
|
+
}
|
|
3063
|
+
.wd-panel::after {
|
|
3064
|
+
content: '';
|
|
3065
|
+
position: absolute;
|
|
3066
|
+
top: 0;
|
|
3067
|
+
bottom: 0;
|
|
3068
|
+
width: 22%;
|
|
3069
|
+
background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.07), transparent);
|
|
3070
|
+
transform: translateX(-120%) skewX(-14deg);
|
|
3071
|
+
animation: wd-tech-scan 6s linear infinite;
|
|
3072
|
+
pointer-events: none;
|
|
3073
|
+
}
|
|
3074
|
+
/* 标识条呼吸:面板头青蓝渐变条低振幅明暗(与 cool 同款节奏) */
|
|
3075
|
+
@keyframes wd-tech-glow {
|
|
3076
|
+
0%, 100% { opacity: 1; }
|
|
3077
|
+
50% { opacity: 0.55; }
|
|
3078
|
+
}
|
|
3079
|
+
.wd-panel__header::before {
|
|
3080
|
+
animation: wd-tech-glow 3.6s ease-in-out infinite;
|
|
3081
|
+
}
|
|
3082
|
+
/* 主按钮流光:hover 时斜切光带扫过一次(与渐变规则共存,overflow 裁进圆角) */
|
|
3083
|
+
@keyframes wd-tech-shine {
|
|
3084
|
+
from { transform: translateX(-130%) skewX(-18deg); }
|
|
3085
|
+
to { transform: translateX(280%) skewX(-18deg); }
|
|
3086
|
+
}
|
|
3087
|
+
.el-button--primary {
|
|
3088
|
+
position: relative;
|
|
3089
|
+
overflow: hidden;
|
|
3090
|
+
}
|
|
3091
|
+
.el-button--primary::after {
|
|
3092
|
+
content: '';
|
|
3093
|
+
position: absolute;
|
|
3094
|
+
top: 0;
|
|
3095
|
+
bottom: 0;
|
|
3096
|
+
width: 45%;
|
|
3097
|
+
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
|
|
3098
|
+
transform: translateX(-130%) skewX(-18deg);
|
|
3099
|
+
pointer-events: none;
|
|
3100
|
+
}
|
|
3101
|
+
.el-button--primary:not(.is-disabled):hover::after {
|
|
3102
|
+
animation: wd-tech-shine 0.7s ease;
|
|
3103
|
+
}
|
|
3104
|
+
/* 输入框/文本域/选择器:边框过渡 + 聚焦青光环(EP 聚焦描边上叠一层外发光) */
|
|
3105
|
+
.el-input__wrapper,
|
|
3106
|
+
.el-textarea__inner,
|
|
3107
|
+
.el-select__wrapper {
|
|
3108
|
+
transition: box-shadow 0.25s ease, border-color 0.25s ease;
|
|
3109
|
+
}
|
|
3110
|
+
.el-input__wrapper.is-focus,
|
|
3111
|
+
.el-textarea__inner:focus,
|
|
3112
|
+
.el-select__wrapper.is-focused {
|
|
3113
|
+
box-shadow: 0 0 0 1px var(--el-color-primary) inset, 0 0 12px rgba(0, 229, 255, 0.45);
|
|
3114
|
+
}
|
|
3115
|
+
/* 进度条:条纹流光(主色条上叠 45° 光纹流动,周期 28px 整除不跳帧) */
|
|
3116
|
+
@keyframes wd-tech-flow {
|
|
3117
|
+
from { background-position: 0 0; }
|
|
3118
|
+
to { background-position: 28px 0; }
|
|
3119
|
+
}
|
|
3120
|
+
.el-progress-bar__inner {
|
|
3121
|
+
position: relative;
|
|
3122
|
+
overflow: hidden;
|
|
3123
|
+
transition: width 0.3s ease;
|
|
3124
|
+
}
|
|
3125
|
+
.el-progress-bar__inner::after {
|
|
3126
|
+
content: '';
|
|
3127
|
+
position: absolute;
|
|
3128
|
+
inset: 0;
|
|
3129
|
+
background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 14px, transparent 14px 28px);
|
|
3130
|
+
animation: wd-tech-flow 1.2s linear infinite;
|
|
3131
|
+
}
|
|
3132
|
+
/* 加载:旋转环呼吸发光(保留 EP loading-dash 扫动,并列叠加) */
|
|
3133
|
+
.el-loading-spinner .path {
|
|
3134
|
+
animation: loading-dash 1.5s ease-in-out infinite, wd-tech-glow 2.4s ease-in-out infinite;
|
|
3135
|
+
}
|
|
3136
|
+
/* 面板 hover:描边轻微提亮即可(0.3 以内不盖过非连续边框的断续感;
|
|
3137
|
+
阴影走 --wd-panel-shadow-md 青色辉光变量,用户覆盖不丢) */
|
|
3138
|
+
.wd-panel:hover {
|
|
3139
|
+
border-color: rgba(0, 229, 255, 0.3);
|
|
3140
|
+
}
|
|
3141
|
+
`
|
|
3142
|
+
}, jo = {
|
|
3143
|
+
key: "cyberpunk",
|
|
3144
|
+
label: "赛博朋克",
|
|
3145
|
+
desc: "暗夜紫霓品红硬朗直角,适合大屏 / 潮玩类产品",
|
|
3146
|
+
theme: {
|
|
3147
|
+
colors: {
|
|
3148
|
+
primary: "#d946ef",
|
|
3149
|
+
success: "#00ffa3",
|
|
3150
|
+
warning: "#ffd600",
|
|
3151
|
+
danger: "#ff2a6d",
|
|
3152
|
+
info: "#8b7ec8"
|
|
3153
|
+
},
|
|
3154
|
+
cssVars: {
|
|
3155
|
+
"--wd-bg-color": "#120e24",
|
|
3156
|
+
"--wd-bg-color-page": "#0a0714",
|
|
3157
|
+
"--wd-bg-color-overlay": "#1c1535",
|
|
3158
|
+
"--wd-text-color-primary": "#f3e8ff",
|
|
3159
|
+
"--wd-text-color-regular": "#c9b8e8",
|
|
3160
|
+
"--wd-text-color-secondary": "#9d8cc7",
|
|
3161
|
+
"--wd-text-color-placeholder": "#6b5b94",
|
|
3162
|
+
"--wd-border-color": "#2d2152",
|
|
3163
|
+
"--wd-border-color-light": "#251a46",
|
|
3164
|
+
"--wd-border-width": "2px",
|
|
3165
|
+
"--wd-radius-base": "0px",
|
|
3166
|
+
"--wd-radius-small": "0px",
|
|
3167
|
+
"--wd-spacing-base": "10px",
|
|
3168
|
+
"--wd-spacing-large": "14px",
|
|
3169
|
+
// 组件级:面板 / 表格暗夜紫玻璃底 + 品红霓虹描边辉光,青品渐变标识条撞色,导航区压黑
|
|
3170
|
+
"--wd-panel-bg": "#150f2a",
|
|
3171
|
+
"--wd-panel-border-color": "rgba(217, 70, 239, 0.4)",
|
|
3172
|
+
"--wd-panel-header-bg": "rgba(217, 70, 239, 0.08)",
|
|
3173
|
+
"--wd-panel-title-color": "#e879f9",
|
|
3174
|
+
"--wd-panel-shadow-sm": "0 0 18px rgba(217, 70, 239, 0.16)",
|
|
3175
|
+
"--wd-panel-shadow-md": "0 0 28px rgba(217, 70, 239, 0.28)",
|
|
3176
|
+
"--wd-panel-title-bar-bg": "linear-gradient(180deg, #00e5ff, #d946ef)",
|
|
3177
|
+
"--wd-datagrid-bg": "#150f2a",
|
|
3178
|
+
"--wd-datagrid-border-color": "rgba(217, 70, 239, 0.4)",
|
|
3179
|
+
"--wd-editable-grid-bg": "#150f2a",
|
|
3180
|
+
"--wd-editable-grid-border-color": "rgba(217, 70, 239, 0.4)",
|
|
3181
|
+
"--wd-search-bg": "#150f2a",
|
|
3182
|
+
"--wd-form-footer-bg": "rgba(217, 70, 239, 0.05)",
|
|
3183
|
+
"--wd-station-aside-bg": "#070412",
|
|
3184
|
+
"--wd-station-header-bg": "#070412",
|
|
3185
|
+
"--wd-station-tabs-bg": "#070412",
|
|
3186
|
+
// 背景素材(纯 CSS 生成零外部资源):内容容器贴青色 HUD 网格(呼应参考图青辅色连接线),导航区贴品红扫描线(CRT 屏幕感);低透明度不影响可读性
|
|
3187
|
+
"--wd-panel-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px)",
|
|
3188
|
+
"--wd-datagrid-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px)",
|
|
3189
|
+
"--wd-editable-grid-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px)",
|
|
3190
|
+
"--wd-search-bg-image": "repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 24px)",
|
|
3191
|
+
"--wd-station-aside-bg-image": "repeating-linear-gradient(0deg, rgba(217, 70, 239, 0.06) 0 1px, transparent 1px 4px)",
|
|
3192
|
+
"--wd-station-header-bg-image": "repeating-linear-gradient(0deg, rgba(217, 70, 239, 0.06) 0 1px, transparent 1px 4px)",
|
|
3193
|
+
"--wd-station-tabs-bg-image": "repeating-linear-gradient(0deg, rgba(217, 70, 239, 0.06) 0 1px, transparent 1px 4px)",
|
|
3194
|
+
// 菜单深色联动:底色贴合导航区压黑;EP 默认 hover 底为主色 light-9(浅粉),紫黑底下会糊成浅色亮块反白,改为品红同源深透底
|
|
3195
|
+
"--el-menu-bg-color": "#070412",
|
|
3196
|
+
"--el-menu-hover-bg-color": "rgba(217, 70, 239, 0.14)",
|
|
3197
|
+
"--el-menu-item-hover-fill": "rgba(217, 70, 239, 0.14)",
|
|
3198
|
+
// ElementPlus 深色联动(填充 / 遮罩 / 阴影 / 按钮文字色)
|
|
3199
|
+
"--el-fill-color-blank": "#120e24",
|
|
3200
|
+
"--el-fill-color": "#221740",
|
|
3201
|
+
"--el-fill-color-light": "#241a44",
|
|
3202
|
+
"--el-fill-color-lighter": "#281c4a",
|
|
3203
|
+
"--el-fill-color-extra-light": "#181231",
|
|
3204
|
+
"--el-fill-color-dark": "#2d2154",
|
|
3205
|
+
"--el-fill-color-darker": "#32255e",
|
|
3206
|
+
// 仅作按钮文字色(EP 深色皮肤标准做法);注意 EP 内凡以 --el-color-white 作背景的场景会同步变深,实测无异常,改动需回归
|
|
3207
|
+
"--el-color-white": "#2a0a33",
|
|
3208
|
+
"--el-mask-color": "rgba(10, 5, 24, 0.7)",
|
|
3209
|
+
"--el-box-shadow": "0 4px 16px rgba(0, 0, 0, 0.5)",
|
|
3210
|
+
"--el-box-shadow-light": "0 2px 8px rgba(0, 0, 0, 0.4)"
|
|
3211
|
+
}
|
|
3212
|
+
},
|
|
3213
|
+
// 皮肤专属 CSS 规则:品红渐变主按钮 + 紫光外发光 + ghost 默认按钮 + 霓虹 primary 标签
|
|
3214
|
+
// (EP 变量只能纯色填充,渐变/外发光必须 rule 级覆盖;发光色与面板描边 rgba(217,70,239) 同源)
|
|
3215
|
+
cssRules: `
|
|
3216
|
+
/* 主按钮:品红→紫罗兰渐变 + 紫光外发光(渐变起点跟随 --el-color-primary,用户覆盖主色可联动) */
|
|
3217
|
+
.el-button--primary {
|
|
3218
|
+
background-image: linear-gradient(135deg, var(--el-color-primary), #ad6bf5);
|
|
3219
|
+
--el-button-border-color: transparent;
|
|
3220
|
+
--el-button-hover-border-color: transparent;
|
|
3221
|
+
box-shadow: 0 0 14px rgba(217, 70, 239, 0.45);
|
|
3222
|
+
}
|
|
3223
|
+
.el-button--primary:hover {
|
|
3224
|
+
background-image: linear-gradient(135deg, var(--el-color-primary-light-3), #b07dfa);
|
|
3225
|
+
box-shadow: 0 0 22px rgba(217, 70, 239, 0.6);
|
|
3226
|
+
}
|
|
3227
|
+
.el-button--primary.is-disabled,
|
|
3228
|
+
.el-button--primary.is-disabled:hover {
|
|
3229
|
+
background-image: none;
|
|
3230
|
+
box-shadow: none;
|
|
3231
|
+
}
|
|
3232
|
+
/* 默认按钮:ghost 紫(深紫底 + 紫描边 + 亮紫字);:not 排除语义色按钮与 text/link 形态 */
|
|
3233
|
+
.el-button:not([class*='el-button--']):not(.is-text):not(.is-link) {
|
|
3234
|
+
--el-button-bg-color: rgba(217, 70, 239, 0.1);
|
|
3235
|
+
--el-button-border-color: rgba(217, 70, 239, 0.45);
|
|
3236
|
+
--el-button-text-color: #e9d5ff;
|
|
3237
|
+
--el-button-hover-bg-color: rgba(217, 70, 239, 0.22);
|
|
3238
|
+
--el-button-hover-border-color: rgba(232, 121, 249, 0.7);
|
|
3239
|
+
--el-button-hover-text-color: #f5e8ff;
|
|
3240
|
+
}
|
|
3241
|
+
/* primary 标签:深紫底 + 亮紫字(success 等语义标签不动) */
|
|
3242
|
+
.el-tag.el-tag--primary {
|
|
3243
|
+
--el-tag-bg-color: rgba(217, 70, 239, 0.16);
|
|
3244
|
+
--el-tag-border-color: rgba(217, 70, 239, 0.38);
|
|
3245
|
+
--el-tag-text-color: #e9d5ff;
|
|
3246
|
+
--el-tag-hover-color: #e879f9;
|
|
3247
|
+
}
|
|
3248
|
+
/* 菜单选中项:品红 tint 底 + 左侧 2px 霓虹条(仅垂直菜单,横向菜单走 EP 底部指示条) */
|
|
3249
|
+
.el-menu--vertical .el-menu-item.is-active {
|
|
3250
|
+
background-color: rgba(217, 70, 239, 0.14);
|
|
3251
|
+
box-shadow: inset 2px 0 0 var(--el-color-primary);
|
|
3252
|
+
}
|
|
3253
|
+
`
|
|
3254
|
+
}, Bo = {
|
|
3255
|
+
key: "chinese",
|
|
3256
|
+
label: "中式",
|
|
3257
|
+
desc: "墨绿山水金箔描边,适合文化 / 国风类产品",
|
|
3258
|
+
theme: {
|
|
3259
|
+
colors: {
|
|
3260
|
+
primary: "#c9a24b",
|
|
3261
|
+
success: "#3e9e86",
|
|
3262
|
+
warning: "#d98e2b",
|
|
3263
|
+
danger: "#c0453c",
|
|
3264
|
+
info: "#7f8f80"
|
|
3265
|
+
},
|
|
3266
|
+
cssVars: {
|
|
3267
|
+
"--wd-bg-color": "#123128",
|
|
3268
|
+
"--wd-bg-color-page": "#0a211c",
|
|
3269
|
+
"--wd-bg-color-overlay": "#163a2f",
|
|
3270
|
+
"--wd-text-color-primary": "#ece3c8",
|
|
3271
|
+
"--wd-text-color-regular": "#b3bda8",
|
|
3272
|
+
"--wd-text-color-secondary": "#8a9a86",
|
|
3273
|
+
"--wd-text-color-placeholder": "#758a79",
|
|
3274
|
+
"--wd-border-color": "rgba(201, 162, 75, 0.38)",
|
|
3275
|
+
"--wd-border-color-light": "rgba(201, 162, 75, 0.2)",
|
|
3276
|
+
"--wd-radius-base": "6px",
|
|
3277
|
+
"--wd-radius-small": "4px",
|
|
3278
|
+
"--wd-spacing-base": "14px",
|
|
3279
|
+
"--wd-spacing-large": "18px",
|
|
3280
|
+
// 组件级:面板 / 卡片深墨绿底 + 金箔描边与标题,导航区压深
|
|
3281
|
+
"--wd-panel-bg": "#102c23",
|
|
3282
|
+
"--wd-panel-border-color": "rgba(201, 162, 75, 0.42)",
|
|
3283
|
+
"--wd-panel-header-bg": "rgba(201, 162, 75, 0.1)",
|
|
3284
|
+
"--wd-panel-title-color": "#dec07a",
|
|
3285
|
+
"--wd-datagrid-bg": "#102c23",
|
|
3286
|
+
// 表格边框烫金:外框实色金箔(同源金不透明,烫印实心感)
|
|
3287
|
+
"--wd-datagrid-border-color": "#c9a24b",
|
|
3288
|
+
"--wd-editable-grid-bg": "#102c23",
|
|
3289
|
+
"--wd-editable-grid-border-color": "#c9a24b",
|
|
3290
|
+
"--wd-search-bg": "#102c23",
|
|
3291
|
+
"--wd-form-footer-bg": "rgba(201, 162, 75, 0.06)",
|
|
3292
|
+
"--wd-station-aside-bg": "#071a15",
|
|
3293
|
+
"--wd-station-header-bg": "#071a15",
|
|
3294
|
+
"--wd-station-tabs-bg": "#071a15",
|
|
3295
|
+
// 背景素材(内联 SVG data URI 零外部资源,定位规则见 cssRules):
|
|
3296
|
+
// 侧栏贴底山水纹(青峦 + 金脊线 + 朱砂日,菜单未占满时在下方留白露出,呼应参考图侧栏山水);
|
|
3297
|
+
// 页头右侧祥云纹;面板贴底淡山水(装表格时被 DataGrid 不透明底自然遮住,统计卡类内容透出,与参考图一致)
|
|
3298
|
+
"--wd-station-aside-bg-image": `url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='110' viewBox='0 0 480 110'><circle cx='312' cy='24' r='11' fill='%23c0453c' fill-opacity='0.5'/><path d='M0 74 Q40 40 78 58 T150 50 Q190 20 226 46 T300 52 Q340 30 380 50 T480 58 V110 H0 Z' fill='%233e9e86' fill-opacity='0.16'/><path d='M0 90 Q52 64 104 78 T208 72 Q262 52 316 72 T480 80 V110 H0 Z' fill='%232a5a4a' fill-opacity='0.55'/><path d='M0 74 Q40 40 78 58 T150 50 Q190 20 226 46 T300 52 Q340 30 380 50 T480 58' fill='none' stroke='%23c9a24b' stroke-opacity='0.3' stroke-width='1.2'/><path d='M60 98 h56 M330 96 h52' stroke='%23c9a24b' stroke-opacity='0.18' stroke-width='1' fill='none'/></svg>")`,
|
|
3299
|
+
"--wd-station-header-bg-image": `url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='132' height='36' viewBox='0 0 132 36'><g fill='none' stroke='%23c9a24b' stroke-opacity='0.3' stroke-width='1.2' stroke-linecap='round'><path d='M6 26c-1-7 6-12 13-10 2-6 11-8 16-3 5-3 12 0 12 6 5-1 10 3 9 7'/><path d='M4 30h58'/><path d='M74 27c0-4 5-7 9-5 2-4 9-4 11 0 4-1 8 2 8 5'/><path d='M72 30h36'/><path d='M114 13c2-3 7-3 9 0 3-2 7 0 7 3'/></g></svg>")`,
|
|
3300
|
+
"--wd-panel-bg-image": `url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='110' viewBox='0 0 480 110'><circle cx='312' cy='24' r='11' fill='%23c0453c' fill-opacity='0.35'/><path d='M0 74 Q40 40 78 58 T150 50 Q190 20 226 46 T300 52 Q340 30 380 50 T480 58 V110 H0 Z' fill='%233e9e86' fill-opacity='0.1'/><path d='M0 90 Q52 64 104 78 T208 72 Q262 52 316 72 T480 80 V110 H0 Z' fill='%232a5a4a' fill-opacity='0.34'/><path d='M0 74 Q40 40 78 58 T150 50 Q190 20 226 46 T300 52 Q340 30 380 50 T480 58' fill='none' stroke='%23c9a24b' stroke-opacity='0.2' stroke-width='1.2'/><path d='M60 98 h56 M330 96 h52' stroke='%23c9a24b' stroke-opacity='0.12' stroke-width='1' fill='none'/></svg>")`,
|
|
3301
|
+
// 菜单悬停:EP 默认 hover 底为主色 light-9(浅米金),深底下会糊成浅色亮块,改为金箔同源深透底
|
|
3302
|
+
"--el-menu-hover-bg-color": "rgba(201, 162, 75, 0.14)",
|
|
3303
|
+
// ElementPlus 深色联动(填充 / 遮罩 / 阴影 / 按钮文字色)
|
|
3304
|
+
// 注:el-table 内部线烫金不放此处——EP 在 .el-table 元素规则上自定义 --el-table-border-color,
|
|
3305
|
+
// :root 注入会被元素自身规则盖住(自定义属性继承恒弱于元素声明),见下方 cssRules
|
|
3306
|
+
"--el-fill-color-blank": "#123128",
|
|
3307
|
+
"--el-fill-color": "#1a3d31",
|
|
3308
|
+
"--el-fill-color-light": "#1a3d31",
|
|
3309
|
+
"--el-fill-color-lighter": "#1e4436",
|
|
3310
|
+
"--el-fill-color-extra-light": "#16352b",
|
|
3311
|
+
"--el-fill-color-dark": "#20473a",
|
|
3312
|
+
"--el-fill-color-darker": "#265040",
|
|
3313
|
+
// 仅作按钮文字色(EP 深色皮肤标准做法);注意 EP 内凡以 --el-color-white 作背景的场景会同步变深,实测无异常,改动需回归
|
|
3314
|
+
"--el-color-white": "#0d231c",
|
|
3315
|
+
"--el-mask-color": "rgba(4, 12, 9, 0.72)",
|
|
3316
|
+
"--el-box-shadow": "0 4px 16px rgba(0, 0, 0, 0.5)",
|
|
3317
|
+
"--el-box-shadow-light": "0 2px 8px rgba(0, 0, 0, 0.4)"
|
|
3318
|
+
}
|
|
3319
|
+
},
|
|
3320
|
+
// 皮肤专属 CSS 规则:金箔渐变主按钮 + ghost 金默认按钮 + 深金 primary 标签 + 表格烫金线
|
|
3321
|
+
// (EP 变量只能纯色填充,渐变/外发光必须 rule 级覆盖;描边金与面板描边 rgba(201,162,75) 同源)
|
|
3322
|
+
cssRules: `
|
|
3323
|
+
/* 表格边框烫金:el-table 外框/竖线/单元格横线统一同源金 0.45(弱于卡片实色外框拉开层次)。
|
|
3324
|
+
EP 在 .el-table 元素规则上自定义 --el-table-border-color,cssVars :root 注入会被盖住,
|
|
3325
|
+
必须同选择器级覆盖——本规则与 EP .el-table 规则同 specificity (0,1,0),皮肤样式注入在后胜出 */
|
|
3326
|
+
.el-table {
|
|
3327
|
+
--el-table-border-color: rgba(201, 162, 75, 0.45);
|
|
3328
|
+
}
|
|
3329
|
+
/* 主按钮:金箔渐变 + 淡金外发光(渐变起点跟随 --el-color-primary,用户覆盖主色可联动;文字取已压深的 --el-color-white) */
|
|
3330
|
+
.el-button--primary {
|
|
3331
|
+
background-image: linear-gradient(135deg, var(--el-color-primary), #e0be6e);
|
|
3332
|
+
--el-button-border-color: transparent;
|
|
3333
|
+
--el-button-hover-border-color: transparent;
|
|
3334
|
+
box-shadow: 0 0 12px rgba(201, 162, 75, 0.4);
|
|
3335
|
+
}
|
|
3336
|
+
.el-button--primary:hover {
|
|
3337
|
+
background-image: linear-gradient(135deg, var(--el-color-primary-light-3), #eed18c);
|
|
3338
|
+
box-shadow: 0 0 18px rgba(201, 162, 75, 0.55);
|
|
3339
|
+
}
|
|
3340
|
+
.el-button--primary.is-disabled,
|
|
3341
|
+
.el-button--primary.is-disabled:hover {
|
|
3342
|
+
background-image: none;
|
|
3343
|
+
box-shadow: none;
|
|
3344
|
+
}
|
|
3345
|
+
/* 默认按钮:ghost 金(深金底 + 金描边 + 亮金字);:not 排除语义色按钮与 text/link 形态 */
|
|
3346
|
+
.el-button:not([class*='el-button--']):not(.is-text):not(.is-link) {
|
|
3347
|
+
--el-button-bg-color: rgba(201, 162, 75, 0.1);
|
|
3348
|
+
--el-button-border-color: rgba(201, 162, 75, 0.45);
|
|
3349
|
+
--el-button-text-color: #dec07a;
|
|
3350
|
+
--el-button-hover-bg-color: rgba(201, 162, 75, 0.2);
|
|
3351
|
+
--el-button-hover-border-color: rgba(222, 192, 122, 0.7);
|
|
3352
|
+
--el-button-hover-text-color: #f0dcaa;
|
|
3353
|
+
}
|
|
3354
|
+
/* primary 标签:深金底 + 亮金字(success 等语义标签不动) */
|
|
3355
|
+
.el-tag.el-tag--primary {
|
|
3356
|
+
--el-tag-bg-color: rgba(201, 162, 75, 0.16);
|
|
3357
|
+
--el-tag-border-color: rgba(201, 162, 75, 0.38);
|
|
3358
|
+
--el-tag-text-color: #dec07a;
|
|
3359
|
+
--el-tag-hover-color: #eed18c;
|
|
3360
|
+
}
|
|
3361
|
+
/* 背景素材定位(cssVars 只挂 background-image,repeat/position/size 在此补);
|
|
3362
|
+
选择器提权至 (0,2,1):压过组件 scoped background 简写(0,2,0)中的定位初始值 */
|
|
3363
|
+
/* 侧栏山水:贴底居中;SVG 固有 480px 宽,窄于 480 的侧栏居中裁剪保主峰与红日 */
|
|
3364
|
+
div.wd-station .wd-station__aside {
|
|
3365
|
+
background-repeat: no-repeat;
|
|
3366
|
+
background-position: bottom center;
|
|
3367
|
+
background-size: auto;
|
|
3368
|
+
}
|
|
3369
|
+
/* 页头祥云:右端垂直居中,高约 26px */
|
|
3370
|
+
div.wd-station .wd-station__header {
|
|
3371
|
+
background-repeat: no-repeat;
|
|
3372
|
+
background-position: right 16px center;
|
|
3373
|
+
background-size: auto 26px;
|
|
3374
|
+
}
|
|
3375
|
+
/* 面板山水:贴底居中(同名叠类提权);宽面板呈 480px 中央山带,呼应参考图统计卡 */
|
|
3376
|
+
div.wd-panel.wd-panel {
|
|
3377
|
+
background-repeat: no-repeat;
|
|
3378
|
+
background-position: bottom center;
|
|
3379
|
+
background-size: auto;
|
|
3380
|
+
}
|
|
3381
|
+
/* 面板头右侧小祥云(组件未预留 header 背景令牌,image 在此挂;背景层天然在标题文字之下) */
|
|
3382
|
+
div.wd-panel .wd-panel__header {
|
|
3383
|
+
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='132' height='36' viewBox='0 0 132 36'><g fill='none' stroke='%23c9a24b' stroke-opacity='0.3' stroke-width='1.2' stroke-linecap='round'><path d='M6 26c-1-7 6-12 13-10 2-6 11-8 16-3 5-3 12 0 12 6 5-1 10 3 9 7'/><path d='M4 30h58'/><path d='M74 27c0-4 5-7 9-5 2-4 9-4 11 0 4-1 8 2 8 5'/><path d='M72 30h36'/><path d='M114 13c2-3 7-3 9 0 3-2 7 0 7 3'/></g></svg>");
|
|
3384
|
+
background-repeat: no-repeat;
|
|
3385
|
+
background-position: right 14px center;
|
|
3386
|
+
background-size: auto 18px;
|
|
3387
|
+
}
|
|
3388
|
+
`
|
|
3389
|
+
}, Io = {
|
|
3390
|
+
key: "flat",
|
|
3391
|
+
label: "扁平",
|
|
3392
|
+
desc: "经典扁平配色零圆角,轻量直给",
|
|
3393
|
+
theme: {
|
|
3394
|
+
colors: {
|
|
3395
|
+
primary: "#2470a8",
|
|
3396
|
+
success: "#2ecc71",
|
|
3397
|
+
warning: "#f39c12",
|
|
3398
|
+
danger: "#e74c3c",
|
|
3399
|
+
info: "#95a5a6"
|
|
3400
|
+
},
|
|
3401
|
+
cssVars: {
|
|
3402
|
+
"--wd-bg-color-page": "#f2f4f6",
|
|
3403
|
+
"--wd-border-color": "#dfe4ea",
|
|
3404
|
+
"--wd-border-color-light": "#e8ecf1",
|
|
3405
|
+
"--wd-radius-base": "0px",
|
|
3406
|
+
"--wd-radius-small": "0px"
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3409
|
+
}, Mo = {
|
|
3410
|
+
key: "cool",
|
|
3411
|
+
label: "酷炫",
|
|
3412
|
+
desc: "石墨深底电光紫,适合游戏 / 娱乐类产品",
|
|
3413
|
+
theme: {
|
|
3414
|
+
colors: {
|
|
3415
|
+
primary: "#6847f0",
|
|
3416
|
+
success: "#00d68f",
|
|
3417
|
+
warning: "#ffb020",
|
|
3418
|
+
danger: "#ff4d6d",
|
|
3419
|
+
info: "#7d8ba3"
|
|
3420
|
+
},
|
|
3421
|
+
cssVars: {
|
|
3422
|
+
"--wd-bg-color": "#16181d",
|
|
3423
|
+
"--wd-bg-color-page": "#0f1114",
|
|
3424
|
+
"--wd-bg-color-overlay": "#1c1f26",
|
|
3425
|
+
"--wd-text-color-primary": "#e8eaf0",
|
|
3426
|
+
"--wd-text-color-regular": "#a0a6b5",
|
|
3427
|
+
"--wd-text-color-secondary": "#7d8496",
|
|
3428
|
+
"--wd-text-color-placeholder": "#5d6475",
|
|
3429
|
+
"--wd-border-color": "#2a2e38",
|
|
3430
|
+
"--wd-border-color-light": "#22252e",
|
|
3431
|
+
"--wd-radius-base": "8px",
|
|
3432
|
+
"--wd-radius-small": "6px",
|
|
3433
|
+
// 组件级:面板泛紫描边 + 紫光标题(描边/标题用亮紫发光色,深底上更有霓虹感),导航区压黑
|
|
3434
|
+
"--wd-panel-bg": "#14161c",
|
|
3435
|
+
"--wd-panel-border-color": "rgba(124, 92, 255, 0.35)",
|
|
3436
|
+
"--wd-panel-header-bg": "rgba(124, 92, 255, 0.08)",
|
|
3437
|
+
"--wd-panel-title-color": "#a78bff",
|
|
3438
|
+
"--wd-station-aside-bg": "#0c0e12",
|
|
3439
|
+
"--wd-station-header-bg": "#0c0e12",
|
|
3440
|
+
"--wd-station-tabs-bg": "#0c0e12",
|
|
3441
|
+
// 菜单悬停:EP 默认 hover 底为主色 light-9(浅紫),深底下会糊成浅色亮块,改为紫光同源深透底
|
|
3442
|
+
"--el-menu-hover-bg-color": "rgba(124, 92, 255, 0.14)",
|
|
3443
|
+
"--el-fill-color-blank": "#16181d",
|
|
3444
|
+
"--el-fill-color": "#22252e",
|
|
3445
|
+
"--el-fill-color-light": "#22252e",
|
|
3446
|
+
"--el-fill-color-lighter": "#262a34",
|
|
3447
|
+
"--el-fill-color-extra-light": "#1a1d24",
|
|
3448
|
+
"--el-fill-color-dark": "#2a2f3a",
|
|
3449
|
+
"--el-fill-color-darker": "#303646",
|
|
3450
|
+
"--el-color-white": "#f2f4f8",
|
|
3451
|
+
"--el-mask-color": "rgba(0, 0, 0, 0.65)",
|
|
3452
|
+
"--el-box-shadow": "0 4px 16px rgba(0, 0, 0, 0.5)",
|
|
3453
|
+
"--el-box-shadow-light": "0 2px 8px rgba(0, 0, 0, 0.4)"
|
|
3454
|
+
}
|
|
3455
|
+
},
|
|
3456
|
+
// 皮肤专属 CSS 规则:霓虹渐变主按钮 + ghost 默认按钮 + 霓虹 primary 标签
|
|
3457
|
+
// (EP 变量只能纯色填充,渐变/外发光必须 rule 级覆盖;发光紫与面板描边 rgba(124,92,255) 同源)
|
|
3458
|
+
cssRules: `
|
|
3459
|
+
/* 主按钮:紫罗兰渐变 + 紫光外发光(渐变起点跟随 --el-color-primary,用户覆盖主色可联动) */
|
|
3460
|
+
.el-button--primary {
|
|
3461
|
+
background-image: linear-gradient(135deg, var(--el-color-primary), #a855f7);
|
|
3462
|
+
--el-button-border-color: transparent;
|
|
3463
|
+
--el-button-hover-border-color: transparent;
|
|
3464
|
+
box-shadow: 0 0 14px rgba(124, 92, 255, 0.45);
|
|
3465
|
+
}
|
|
3466
|
+
.el-button--primary:hover {
|
|
3467
|
+
background-image: linear-gradient(135deg, var(--el-color-primary-light-3), #b07dfa);
|
|
3468
|
+
box-shadow: 0 0 20px rgba(124, 92, 255, 0.6);
|
|
3469
|
+
}
|
|
3470
|
+
.el-button--primary.is-disabled,
|
|
3471
|
+
.el-button--primary.is-disabled:hover {
|
|
3472
|
+
background-image: none;
|
|
3473
|
+
box-shadow: none;
|
|
3474
|
+
}
|
|
3475
|
+
/* 默认按钮:ghost 紫(深紫底 + 紫描边 + 亮紫字);:not 排除语义色按钮与 text/link 形态 */
|
|
3476
|
+
.el-button:not([class*='el-button--']):not(.is-text):not(.is-link) {
|
|
3477
|
+
--el-button-bg-color: rgba(124, 92, 255, 0.1);
|
|
3478
|
+
--el-button-border-color: rgba(124, 92, 255, 0.45);
|
|
3479
|
+
--el-button-text-color: #c4b5fd;
|
|
3480
|
+
--el-button-hover-bg-color: rgba(124, 92, 255, 0.22);
|
|
3481
|
+
--el-button-hover-border-color: rgba(167, 139, 255, 0.7);
|
|
3482
|
+
--el-button-hover-text-color: #e6dcff;
|
|
3483
|
+
}
|
|
3484
|
+
/* primary 标签:深紫底 + 亮紫字(success 等语义标签不动) */
|
|
3485
|
+
.el-tag.el-tag--primary {
|
|
3486
|
+
--el-tag-bg-color: rgba(124, 92, 255, 0.16);
|
|
3487
|
+
--el-tag-border-color: rgba(124, 92, 255, 0.38);
|
|
3488
|
+
--el-tag-text-color: #c4b5fd;
|
|
3489
|
+
--el-tag-hover-color: #b07dfa;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
/* ===== 动画体系:流光 + 呼吸 + 弹性滑入 =====
|
|
3493
|
+
涵盖率:22 类可动画组件全覆盖(100% > 90% 门槛)——按钮族/主按钮流光/标签/输入框/
|
|
3494
|
+
文本域/选择器/下拉弹出层/菜单/页签/表格行/分页/弹窗/消息框/抽屉/消息/开关/单选/
|
|
3495
|
+
复选/加载/进度条/上传/面板(Iframe 为纯内容容器,无交互动画意义,不计入分母)。
|
|
3496
|
+
守则:只动 transform/opacity/box-shadow(合成层,不触发 layout);过渡 ≤0.3s、
|
|
3497
|
+
入场 ≤0.28s;无限动画仅低振幅呼吸;disabled/loading 态不做 hover 变换 */
|
|
3498
|
+
@keyframes wd-cool-glow {
|
|
3499
|
+
0%, 100% { opacity: 1; }
|
|
3500
|
+
50% { opacity: 0.65; }
|
|
3501
|
+
}
|
|
3502
|
+
@keyframes wd-cool-shine {
|
|
3503
|
+
from { transform: translateX(-130%) skewX(-18deg); }
|
|
3504
|
+
to { transform: translateX(280%) skewX(-18deg); }
|
|
3505
|
+
}
|
|
3506
|
+
@keyframes wd-cool-pop-in {
|
|
3507
|
+
from { opacity: 0; transform: translateY(10px) scale(0.97); }
|
|
3508
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
3509
|
+
}
|
|
3510
|
+
@keyframes wd-cool-flow {
|
|
3511
|
+
from { background-position: 0 0; }
|
|
3512
|
+
to { background-position: 28px 0; }
|
|
3513
|
+
}
|
|
3514
|
+
/* 按钮族(wd 8 个按钮组件同基于 el-button):弹性过渡 + hover 上浮 + 按压回弹 */
|
|
3515
|
+
.el-button {
|
|
3516
|
+
transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
|
|
3517
|
+
}
|
|
3518
|
+
.el-button:not(.is-disabled):not(.is-loading):hover {
|
|
3519
|
+
transform: translateY(-1px);
|
|
3520
|
+
}
|
|
3521
|
+
.el-button:not(.is-disabled):not(.is-loading):active {
|
|
3522
|
+
transform: scale(0.96);
|
|
3523
|
+
}
|
|
3524
|
+
/* 主按钮:hover 流光扫过(::after 斜切光带,overflow 裁进圆角;与上方渐变规则共存) */
|
|
3525
|
+
.el-button--primary {
|
|
3526
|
+
position: relative;
|
|
3527
|
+
overflow: hidden;
|
|
3528
|
+
}
|
|
3529
|
+
.el-button--primary::after {
|
|
3530
|
+
content: '';
|
|
3531
|
+
position: absolute;
|
|
3532
|
+
top: 0;
|
|
3533
|
+
bottom: 0;
|
|
3534
|
+
width: 45%;
|
|
3535
|
+
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
|
|
3536
|
+
transform: translateX(-130%) skewX(-18deg);
|
|
3537
|
+
pointer-events: none;
|
|
3538
|
+
}
|
|
3539
|
+
.el-button--primary:not(.is-disabled):hover::after {
|
|
3540
|
+
animation: wd-cool-shine 0.7s ease;
|
|
3541
|
+
}
|
|
3542
|
+
/* 标签:过渡 + hover 上浮 + 紫光环 */
|
|
3543
|
+
.el-tag {
|
|
3544
|
+
transition: all 0.25s ease;
|
|
3545
|
+
}
|
|
3546
|
+
.el-tag:hover {
|
|
3547
|
+
transform: translateY(-1px);
|
|
3548
|
+
box-shadow: 0 0 10px rgba(124, 92, 255, 0.35);
|
|
3549
|
+
}
|
|
3550
|
+
/* 输入框/文本域/选择器:边框过渡 + 聚焦紫光晕(EP 聚焦描边上叠一层外发光) */
|
|
3551
|
+
.el-input__wrapper,
|
|
3552
|
+
.el-textarea__inner,
|
|
3553
|
+
.el-select__wrapper {
|
|
3554
|
+
transition: box-shadow 0.25s ease, border-color 0.25s ease;
|
|
3555
|
+
}
|
|
3556
|
+
.el-input__wrapper.is-focus,
|
|
3557
|
+
.el-textarea__inner:focus,
|
|
3558
|
+
.el-select__wrapper.is-focused {
|
|
3559
|
+
box-shadow: 0 0 0 1px var(--el-color-primary) inset, 0 0 12px rgba(124, 92, 255, 0.45);
|
|
3560
|
+
}
|
|
3561
|
+
/* 下拉弹出层(选择器/自动完成/下拉菜单):入场上滑淡入(popper 每次挂载播放一次) */
|
|
3562
|
+
.el-select-dropdown.el-popper,
|
|
3563
|
+
.el-autocomplete__popper.el-popper,
|
|
3564
|
+
.el-dropdown__popper.el-popper {
|
|
3565
|
+
animation: wd-cool-pop-in 0.22s ease;
|
|
3566
|
+
}
|
|
3567
|
+
/* 菜单:项过渡 + hover 紫光渐入;选中项左光条展开 + 文字发光 */
|
|
3568
|
+
.el-menu-item,
|
|
3569
|
+
.el-sub-menu__title {
|
|
3570
|
+
transition: background-color 0.25s ease, color 0.25s ease;
|
|
3571
|
+
}
|
|
3572
|
+
.el-menu-item {
|
|
3573
|
+
position: relative;
|
|
3574
|
+
}
|
|
3575
|
+
.el-menu-item::before {
|
|
3576
|
+
content: '';
|
|
3577
|
+
position: absolute;
|
|
3578
|
+
left: 0;
|
|
3579
|
+
top: 8px;
|
|
3580
|
+
bottom: 8px;
|
|
3581
|
+
width: 3px;
|
|
3582
|
+
border-radius: 2px;
|
|
3583
|
+
background: linear-gradient(180deg, var(--el-color-primary), #a855f7);
|
|
3584
|
+
transform: scaleY(0);
|
|
3585
|
+
transition: transform 0.25s ease;
|
|
3586
|
+
}
|
|
3587
|
+
.el-menu-item.is-active::before {
|
|
3588
|
+
transform: scaleY(1);
|
|
3589
|
+
}
|
|
3590
|
+
.el-menu-item.is-active {
|
|
3591
|
+
text-shadow: 0 0 8px rgba(167, 139, 255, 0.6);
|
|
3592
|
+
}
|
|
3593
|
+
/* 页签:项过渡 + hover 上浮;激活条发光 */
|
|
3594
|
+
.el-tabs__item {
|
|
3595
|
+
transition: color 0.25s ease, transform 0.2s ease;
|
|
3596
|
+
}
|
|
3597
|
+
.el-tabs__item:hover {
|
|
3598
|
+
transform: translateY(-1px);
|
|
3599
|
+
}
|
|
3600
|
+
.el-tabs__active-bar {
|
|
3601
|
+
box-shadow: 0 0 8px rgba(124, 92, 255, 0.7);
|
|
3602
|
+
}
|
|
3603
|
+
/* 表格:行背景过渡(hover 底色渐入渐出) */
|
|
3604
|
+
.el-table__row {
|
|
3605
|
+
transition: background-color 0.2s ease;
|
|
3606
|
+
}
|
|
3607
|
+
/* 分页:页码/翻页钮过渡 + hover 上浮 */
|
|
3608
|
+
.el-pagination .el-pager li,
|
|
3609
|
+
.el-pagination button {
|
|
3610
|
+
transition: all 0.2s ease;
|
|
3611
|
+
}
|
|
3612
|
+
.el-pagination .el-pager li:not(.is-disabled):hover,
|
|
3613
|
+
.el-pagination button:not(:disabled):hover {
|
|
3614
|
+
transform: translateY(-1px);
|
|
3615
|
+
}
|
|
3616
|
+
/* 弹窗/消息框/消息:入场弹入(元素 v-if 重建时播放一次,与 EP 淡入方向一致) */
|
|
3617
|
+
.el-dialog {
|
|
3618
|
+
animation: wd-cool-pop-in 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
|
|
3619
|
+
}
|
|
3620
|
+
.el-message-box {
|
|
3621
|
+
animation: wd-cool-pop-in 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
|
|
3622
|
+
}
|
|
3623
|
+
.el-message {
|
|
3624
|
+
animation: wd-cool-pop-in 0.24s ease;
|
|
3625
|
+
}
|
|
3626
|
+
/* 抽屉:保留 EP 方向性滑入语义,仅替换为弹性曲线 */
|
|
3627
|
+
.el-drawer {
|
|
3628
|
+
transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
|
|
3629
|
+
}
|
|
3630
|
+
/* 开关:滑槽过渡 + 开启紫光晕;滑块弹性位移 */
|
|
3631
|
+
.el-switch__core {
|
|
3632
|
+
transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
|
|
3633
|
+
}
|
|
3634
|
+
.el-switch.is-checked .el-switch__core {
|
|
3635
|
+
box-shadow: 0 0 10px rgba(124, 92, 255, 0.55);
|
|
3636
|
+
}
|
|
3637
|
+
.el-switch__core .el-switch__action {
|
|
3638
|
+
transition: left 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
|
|
3639
|
+
}
|
|
3640
|
+
/* 单选/复选:圈/框过渡 + 选中光晕;勾选标记弹性 */
|
|
3641
|
+
.el-radio__inner,
|
|
3642
|
+
.el-checkbox__inner {
|
|
3643
|
+
transition: all 0.22s ease;
|
|
3644
|
+
}
|
|
3645
|
+
.el-radio.is-checked .el-radio__inner,
|
|
3646
|
+
.el-checkbox__input.is-checked .el-checkbox__inner {
|
|
3647
|
+
box-shadow: 0 0 8px rgba(124, 92, 255, 0.55);
|
|
3648
|
+
}
|
|
3649
|
+
.el-radio__inner::after {
|
|
3650
|
+
transition: transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1);
|
|
3651
|
+
}
|
|
3652
|
+
.el-checkbox__inner::after {
|
|
3653
|
+
transition: transform 0.22s ease;
|
|
3654
|
+
}
|
|
3655
|
+
/* 加载:遮罩淡入 + 旋转环呼吸发光(保留 EP loading-dash 扫动,并列叠加) */
|
|
3656
|
+
.el-loading-mask {
|
|
3657
|
+
transition: opacity 0.25s ease;
|
|
3658
|
+
}
|
|
3659
|
+
.el-loading-spinner .path {
|
|
3660
|
+
animation: loading-dash 1.5s ease-in-out infinite, wd-cool-glow 2.4s ease-in-out infinite;
|
|
3661
|
+
}
|
|
3662
|
+
/* 进度条:条纹流光(主色条上叠 45° 光纹流动,周期 28px 整除不跳帧) */
|
|
3663
|
+
.el-progress-bar__inner {
|
|
3664
|
+
position: relative;
|
|
3665
|
+
overflow: hidden;
|
|
3666
|
+
transition: width 0.3s ease;
|
|
3667
|
+
}
|
|
3668
|
+
.el-progress-bar__inner::after {
|
|
3669
|
+
content: '';
|
|
3670
|
+
position: absolute;
|
|
3671
|
+
inset: 0;
|
|
3672
|
+
background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 14px, transparent 14px 28px);
|
|
3673
|
+
animation: wd-cool-flow 1.2s linear infinite;
|
|
3674
|
+
}
|
|
3675
|
+
/* 上传拖拽区:过渡 + hover 上浮发光 */
|
|
3676
|
+
.el-upload-dragger {
|
|
3677
|
+
transition: all 0.25s ease;
|
|
3678
|
+
}
|
|
3679
|
+
.el-upload-dragger:hover {
|
|
3680
|
+
transform: translateY(-2px);
|
|
3681
|
+
box-shadow: 0 0 14px rgba(124, 92, 255, 0.35);
|
|
3682
|
+
}
|
|
3683
|
+
/* 面板:hover 描边提亮 + 紫光扩散;标识条低振幅呼吸(不碰 border-color 变量,用户覆盖不丢) */
|
|
3684
|
+
.wd-panel {
|
|
3685
|
+
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
|
3686
|
+
}
|
|
3687
|
+
.wd-panel:hover {
|
|
3688
|
+
border-color: rgba(124, 92, 255, 0.6);
|
|
3689
|
+
box-shadow: 0 0 18px rgba(124, 92, 255, 0.28);
|
|
3690
|
+
}
|
|
3691
|
+
.wd-panel__header::before {
|
|
3692
|
+
animation: wd-cool-glow 3.6s ease-in-out infinite;
|
|
3693
|
+
}
|
|
3694
|
+
`
|
|
3695
|
+
}, $o = {
|
|
3696
|
+
key: "governance",
|
|
3697
|
+
label: "党政风",
|
|
3698
|
+
desc: "中国红暖米白粗描边,适合政务 / 党建类产品",
|
|
3699
|
+
theme: {
|
|
3700
|
+
colors: {
|
|
3701
|
+
primary: "#c7000b",
|
|
3702
|
+
success: "#2e7d4f",
|
|
3703
|
+
warning: "#c9973f",
|
|
3704
|
+
danger: "#a8071a",
|
|
3705
|
+
info: "#8b8378"
|
|
3706
|
+
},
|
|
3707
|
+
cssVars: {
|
|
3708
|
+
"--wd-bg-color-page": "#fdf9f3",
|
|
3709
|
+
"--wd-text-color-primary": "#33261a",
|
|
3710
|
+
"--wd-text-color-regular": "#5c4f3d",
|
|
3711
|
+
"--wd-border-color": "#e8d9c4",
|
|
3712
|
+
"--wd-border-color-light": "#f2e7d5",
|
|
3713
|
+
"--wd-border-width": "2px",
|
|
3714
|
+
"--wd-radius-base": "4px",
|
|
3715
|
+
"--wd-radius-small": "2px",
|
|
3716
|
+
"--wd-spacing-base": "14px",
|
|
3717
|
+
"--wd-spacing-large": "18px",
|
|
3718
|
+
// 组件级:Panel 红头白字标题栏,面板 / 卡片暖米底
|
|
3719
|
+
"--wd-panel-bg": "#fffaf0",
|
|
3720
|
+
"--wd-panel-header-bg": "#c7000b",
|
|
3721
|
+
"--wd-panel-title-color": "#ffffff",
|
|
3722
|
+
"--wd-datagrid-bg": "#fffaf0",
|
|
3723
|
+
"--wd-editable-grid-bg": "#fffaf0",
|
|
3724
|
+
"--wd-search-bg": "#fffaf0",
|
|
3725
|
+
"--wd-form-footer-bg": "#faf2e6"
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
}, Ho = {
|
|
3729
|
+
key: "apple",
|
|
3730
|
+
label: "苹果",
|
|
3731
|
+
desc: "iOS/macOS 浅色风:苹果蓝 + 灰白底白卡大圆角 + 胶囊控件 + 蓝底白字菜单 + 毛玻璃顶栏",
|
|
3732
|
+
theme: {
|
|
3733
|
+
colors: {
|
|
3734
|
+
primary: "#006ee6",
|
|
3735
|
+
success: "#34c759",
|
|
3736
|
+
warning: "#ff9500",
|
|
3737
|
+
danger: "#ff3b30",
|
|
3738
|
+
info: "#8e8e93"
|
|
3739
|
+
},
|
|
3740
|
+
cssVars: {
|
|
3741
|
+
"--wd-bg-color-page": "#f5f5f7",
|
|
3742
|
+
"--wd-text-color-primary": "#1d1d1f",
|
|
3743
|
+
"--wd-text-color-regular": "#3a3a3c",
|
|
3744
|
+
"--wd-text-color-secondary": "#6e6e73",
|
|
3745
|
+
"--wd-text-color-placeholder": "#aeaeb2",
|
|
3746
|
+
"--wd-border-color": "#d2d2d7",
|
|
3747
|
+
"--wd-border-color-light": "#e5e5ea",
|
|
3748
|
+
"--wd-radius-base": "10px",
|
|
3749
|
+
"--wd-radius-small": "6px",
|
|
3750
|
+
// 组件级:白卡大圆角 + 苹果柔影(弱化边框、阴影分层),标识条归零
|
|
3751
|
+
"--wd-panel-radius": "16px",
|
|
3752
|
+
"--wd-panel-border-color": "#e5e5ea",
|
|
3753
|
+
"--wd-panel-shadow-sm": "0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08)",
|
|
3754
|
+
"--wd-panel-title-bar-width": "0",
|
|
3755
|
+
"--wd-datagrid-radius": "16px",
|
|
3756
|
+
// 导航区:侧栏纯白,顶栏半透明(毛玻璃见 cssRules)
|
|
3757
|
+
"--wd-station-aside-bg": "#ffffff",
|
|
3758
|
+
"--wd-station-header-bg": "rgba(251, 251, 253, 0.72)",
|
|
3759
|
+
// 菜单 hover 浅灰底(选中态为蓝色实心,见 cssRules)
|
|
3760
|
+
"--el-menu-hover-bg-color": "rgba(0, 0, 0, 0.04)",
|
|
3761
|
+
// 表格表头灰色小字(iOS 列表区隔感)
|
|
3762
|
+
"--el-table-header-text-color": "#6e6e73"
|
|
3763
|
+
}
|
|
3764
|
+
},
|
|
3765
|
+
cssRules: `
|
|
3766
|
+
/* 胶囊按钮:苹果标志性 pill 形态;按钮组回落直角相连、两端胶囊 */
|
|
3767
|
+
.el-button { border-radius: 999px; }
|
|
3768
|
+
.el-button-group .el-button { border-radius: 0; }
|
|
3769
|
+
.el-button-group .el-button:first-child { border-radius: 999px 0 0 999px; }
|
|
3770
|
+
.el-button-group .el-button:last-child { border-radius: 0 999px 999px 0; }
|
|
3771
|
+
/* 主按钮 hover/active 加深(苹果惯例悬停变深;dark-2 由主色推导随用户覆盖联动) */
|
|
3772
|
+
.el-button--primary {
|
|
3773
|
+
--el-button-hover-bg-color: var(--el-color-primary-dark-2);
|
|
3774
|
+
--el-button-hover-border-color: var(--el-color-primary-dark-2);
|
|
3775
|
+
--el-button-active-bg-color: var(--el-color-primary-dark-2);
|
|
3776
|
+
--el-button-active-border-color: var(--el-color-primary-dark-2);
|
|
3777
|
+
}
|
|
3778
|
+
/* 默认按钮:iOS 浅灰底 + 无边框 + 近黑字(:not 排除语义色与 text/link 形态) */
|
|
3779
|
+
.el-button:not([class*='el-button--']):not(.is-text):not(.is-link) {
|
|
3780
|
+
--el-button-bg-color: #e8e8ed;
|
|
3781
|
+
--el-button-border-color: transparent;
|
|
3782
|
+
--el-button-text-color: #1d1d1f;
|
|
3783
|
+
--el-button-hover-bg-color: #dedee3;
|
|
3784
|
+
--el-button-hover-border-color: transparent;
|
|
3785
|
+
--el-button-hover-text-color: #1d1d1f;
|
|
3786
|
+
}
|
|
3787
|
+
/* 标签:胶囊徽章;primary 实心蓝白字(iOS 徽章惯例;success 等语义标签仅胶囊化) */
|
|
3788
|
+
.el-tag { border-radius: 999px; }
|
|
3789
|
+
.el-tag.el-tag--primary {
|
|
3790
|
+
--el-tag-bg-color: var(--el-color-primary);
|
|
3791
|
+
--el-tag-border-color: transparent;
|
|
3792
|
+
--el-tag-text-color: #fff;
|
|
3793
|
+
}
|
|
3794
|
+
/* info 标签:白底灰边中性胶囊 */
|
|
3795
|
+
.el-tag.el-tag--info {
|
|
3796
|
+
--el-tag-bg-color: #fff;
|
|
3797
|
+
--el-tag-border-color: var(--el-border-color);
|
|
3798
|
+
--el-tag-text-color: var(--el-text-color-regular);
|
|
3799
|
+
}
|
|
3800
|
+
/* 输入框聚焦:iOS 主色描边 + 同色光晕(color-mix 随主色覆盖联动;不支持时回落整组规则前的 EP 默认描边) */
|
|
3801
|
+
.el-input__wrapper.is-focus {
|
|
3802
|
+
box-shadow: 0 0 0 1px var(--el-color-primary) inset, 0 0 0 4px color-mix(in srgb, var(--el-color-primary) 12%, transparent);
|
|
3803
|
+
}
|
|
3804
|
+
/* 顶栏毛玻璃:macOS 标志特性(配合半透明 --wd-station-header-bg) */
|
|
3805
|
+
.wd-station__header {
|
|
3806
|
+
backdrop-filter: saturate(180%) blur(16px);
|
|
3807
|
+
-webkit-backdrop-filter: saturate(180%) blur(16px);
|
|
3808
|
+
}
|
|
3809
|
+
/* 侧栏菜单:iOS 蓝色实心选中态(蓝底白字加粗),hover 浅灰由 --el-menu-hover-bg-color 控制 */
|
|
3810
|
+
.wd-station__menu .el-menu-item,
|
|
3811
|
+
.wd-station__menu .el-sub-menu__title {
|
|
3812
|
+
margin: 2px 8px;
|
|
3813
|
+
border-radius: 8px;
|
|
3814
|
+
}
|
|
3815
|
+
.wd-station__menu .el-menu-item.is-active {
|
|
3816
|
+
background: var(--el-color-primary);
|
|
3817
|
+
color: #fff;
|
|
3818
|
+
font-weight: 600;
|
|
3819
|
+
}
|
|
3820
|
+
.wd-station__menu .el-menu-item.is-active:hover {
|
|
3821
|
+
background: var(--el-color-primary-dark-2);
|
|
3822
|
+
}
|
|
3823
|
+
`
|
|
3824
|
+
}, lr = {
|
|
3825
|
+
default: Do,
|
|
3826
|
+
fashion: Lo,
|
|
3827
|
+
business: Uo,
|
|
3828
|
+
tech: Fo,
|
|
3829
|
+
cyberpunk: jo,
|
|
3830
|
+
chinese: Bo,
|
|
3831
|
+
flat: Io,
|
|
3832
|
+
cool: Mo,
|
|
3833
|
+
governance: $o,
|
|
3834
|
+
apple: Ho
|
|
3835
|
+
};
|
|
3836
|
+
function cr(e) {
|
|
3837
|
+
if (e)
|
|
3838
|
+
return lr[e];
|
|
3839
|
+
}
|
|
3840
|
+
function _s() {
|
|
3841
|
+
return Object.values(lr);
|
|
3842
|
+
}
|
|
3843
|
+
let be = null;
|
|
3844
|
+
const zo = {
|
|
3845
|
+
primary: { wd: "--wd-color-primary", el: "--el-color-primary" },
|
|
3846
|
+
success: { wd: "--wd-color-success", el: "--el-color-success" },
|
|
3847
|
+
warning: { wd: "--wd-color-warning", el: "--el-color-warning" },
|
|
3848
|
+
danger: { wd: "--wd-color-danger", el: "--el-color-danger" },
|
|
3849
|
+
error: { wd: "--wd-color-danger", el: "--el-color-danger" },
|
|
3850
|
+
info: { wd: "--wd-color-info", el: "--el-color-info" }
|
|
3851
|
+
}, Vo = ["primary", "success", "warning", "danger", "info"], qo = [
|
|
3852
|
+
{ suffix: "light-3", target: [255, 255, 255], ratio: 0.3 },
|
|
3853
|
+
{ suffix: "light-5", target: [255, 255, 255], ratio: 0.5 },
|
|
3854
|
+
{ suffix: "light-7", target: [255, 255, 255], ratio: 0.7 },
|
|
3855
|
+
{ suffix: "light-8", target: [255, 255, 255], ratio: 0.8 },
|
|
3856
|
+
{ suffix: "light-9", target: [255, 255, 255], ratio: 0.9 },
|
|
3857
|
+
{ suffix: "dark-2", target: [0, 0, 0], ratio: 0.2 }
|
|
3858
|
+
];
|
|
3859
|
+
function Wo(e) {
|
|
3860
|
+
const t = /^#?([0-9a-f]{6})$/i.exec(e.trim());
|
|
3861
|
+
if (!t) return [22, 119, 255];
|
|
3862
|
+
const r = parseInt(t[1], 16);
|
|
3863
|
+
return [r >> 16 & 255, r >> 8 & 255, r & 255];
|
|
3864
|
+
}
|
|
3865
|
+
function Xo(e, t, r) {
|
|
3866
|
+
const [n, o, s] = Wo(e), a = (c, f) => Math.round(c + (f - c) * r), i = (c) => c.toString(16).padStart(2, "0");
|
|
3867
|
+
return `#${i(a(n, t[0]))}${i(a(o, t[1]))}${i(a(s, t[2]))}`;
|
|
3868
|
+
}
|
|
3869
|
+
function Jo(e) {
|
|
3870
|
+
if (!e || !e.skin) return e;
|
|
3871
|
+
const t = cr(e.skin);
|
|
3872
|
+
return t ? {
|
|
3873
|
+
colors: { ...t.theme.colors, ...e.colors },
|
|
3874
|
+
cssVars: { ...t.theme.cssVars, ...e.cssVars }
|
|
3875
|
+
} : (console.warn(`[WorkDesktop] 未知皮肤 "${e.skin}",已回退默认皮肤`), { colors: e.colors, cssVars: e.cssVars });
|
|
3876
|
+
}
|
|
3877
|
+
function ot(e) {
|
|
3878
|
+
if (typeof document > "u") return;
|
|
3879
|
+
const t = Jo(e);
|
|
3880
|
+
if (!t) return;
|
|
3881
|
+
be || (be = document.createElement("style"), be.setAttribute("data-workdesktop-theme", ""), document.head.appendChild(be));
|
|
3882
|
+
const r = [":root {"], n = {};
|
|
3883
|
+
if (t.colors)
|
|
3884
|
+
for (const [s, a] of Object.entries(t.colors)) {
|
|
3885
|
+
const i = zo[s.toLowerCase()];
|
|
3886
|
+
if (i)
|
|
3887
|
+
r.push(` ${i.wd}: ${a};`), r.push(` ${i.el}: ${a};`), n[i.el.replace("--el-color-", "")] = a;
|
|
3888
|
+
else {
|
|
3889
|
+
const c = s.startsWith("--") ? s : `--wd-color-${s}`;
|
|
3890
|
+
r.push(` ${c}: ${a};`);
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
for (const s of Vo) {
|
|
3894
|
+
const a = n[s];
|
|
3895
|
+
if (a)
|
|
3896
|
+
for (const i of qo)
|
|
3897
|
+
r.push(` --el-color-${s}-${i.suffix}: ${Xo(a, i.target, i.ratio)};`);
|
|
3898
|
+
}
|
|
3899
|
+
if (t.cssVars)
|
|
3900
|
+
for (const [s, a] of Object.entries(t.cssVars)) {
|
|
3901
|
+
const i = s.startsWith("--") ? s : `--${s}`;
|
|
3902
|
+
r.push(` ${i}: ${a};`);
|
|
3903
|
+
}
|
|
3904
|
+
r.push("}");
|
|
3905
|
+
const o = e != null && e.skin ? cr(e.skin) : void 0;
|
|
3906
|
+
o != null && o.cssRules && r.push(o.cssRules), be.textContent = r.join(`
|
|
3907
|
+
`);
|
|
3908
|
+
}
|
|
3909
|
+
let T = V(nt);
|
|
3910
|
+
function Ko() {
|
|
3911
|
+
if (typeof window < "u" && window.workDesktopConfig)
|
|
3912
|
+
return window.workDesktopConfig;
|
|
3913
|
+
}
|
|
3914
|
+
function Es(e) {
|
|
3915
|
+
return e && (T = V(T, e)), ot(T.theme), T;
|
|
3916
|
+
}
|
|
3917
|
+
function Qo() {
|
|
3918
|
+
return T;
|
|
3919
|
+
}
|
|
3920
|
+
function Rs() {
|
|
3921
|
+
return T = V(nt), ot(T.theme), T;
|
|
3922
|
+
}
|
|
3923
|
+
function Ss(e) {
|
|
3924
|
+
return e ? V(T, e) : T;
|
|
3925
|
+
}
|
|
3926
|
+
function Os(e) {
|
|
3927
|
+
var r;
|
|
3928
|
+
const t = ((r = T.page) == null ? void 0 : r.componentDefault) || {};
|
|
3929
|
+
return t[e] || t[Yo(e)] || {};
|
|
3930
|
+
}
|
|
3931
|
+
function Yo(e) {
|
|
3932
|
+
return e.replace(/(^|-|_)(\w)/g, (t, r, n) => n.toUpperCase()).replace(/^wd/i, "Wd");
|
|
3933
|
+
}
|
|
3934
|
+
function ks(e) {
|
|
3935
|
+
T = V(nt);
|
|
3936
|
+
const t = Ko();
|
|
3937
|
+
return T = t ? V(T, t, e || {}) : V(T, e || {}), ot(T.theme), T;
|
|
3938
|
+
}
|
|
3939
|
+
function We(e, t) {
|
|
3940
|
+
if (!e || e.showTips === !1) return;
|
|
3941
|
+
const r = e.tipsMode;
|
|
3942
|
+
if (!r || r === "none") return;
|
|
3943
|
+
const n = e.tipsType || "info", o = e.props || {};
|
|
3944
|
+
if (r === "message") {
|
|
3945
|
+
mr({ message: t, type: n, ...o });
|
|
3946
|
+
return;
|
|
3947
|
+
}
|
|
3948
|
+
if (r === "notify") {
|
|
3949
|
+
wr({ message: t, type: n, ...o });
|
|
3950
|
+
return;
|
|
3951
|
+
}
|
|
3952
|
+
if (r === "messagebox") {
|
|
3953
|
+
const s = e.title || "";
|
|
3954
|
+
xr.alert(t, s, { type: n, ...o }).catch(() => {
|
|
3955
|
+
});
|
|
3956
|
+
return;
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3959
|
+
class st {
|
|
3960
|
+
constructor(t) {
|
|
3961
|
+
Z(this, "axiosInstance");
|
|
3962
|
+
Z(this, "listeners", /* @__PURE__ */ new Set());
|
|
3963
|
+
/** 组件/实例级配置覆盖(request.create 使用) */
|
|
3964
|
+
Z(this, "instanceConfig", {});
|
|
3965
|
+
Z(this, "loadingInstance", null);
|
|
3966
|
+
Z(this, "loadingCount", 0);
|
|
3967
|
+
/** 进行中的请求(in-flight dedup):key = method:url:序列化params,并发相同请求合并为一次网络调用 */
|
|
3968
|
+
Z(this, "inFlightRequests", /* @__PURE__ */ new Map());
|
|
3969
|
+
this.axiosInstance = O.create(t || {});
|
|
3970
|
+
}
|
|
3971
|
+
/**
|
|
3972
|
+
* 创建绑定组件级配置的实例(PRD 5.1)
|
|
3973
|
+
* 子实例复用父级监听器与去重表:同族实例(全局单例 + 各组件 create 出来的子实例)
|
|
3974
|
+
* 之间并发相同请求同样合并,保证表列内多行组件发起的相同请求只打一次网络。
|
|
3975
|
+
*/
|
|
3976
|
+
create(t) {
|
|
3977
|
+
const r = new st();
|
|
3978
|
+
return r.instanceConfig = t || {}, r.listeners = this.listeners, r.inFlightRequests = this.inFlightRequests, r;
|
|
3979
|
+
}
|
|
3980
|
+
on(t) {
|
|
3981
|
+
return this.listeners.add(t), () => this.listeners.delete(t);
|
|
3982
|
+
}
|
|
3983
|
+
off(t) {
|
|
3984
|
+
this.listeners.delete(t);
|
|
3985
|
+
}
|
|
3986
|
+
emit(t) {
|
|
3987
|
+
this.listeners.forEach((r) => {
|
|
3988
|
+
try {
|
|
3989
|
+
r(t);
|
|
3990
|
+
} catch (n) {
|
|
3991
|
+
console.error("[WorkDesktop] api event handler error:", n);
|
|
3992
|
+
}
|
|
3993
|
+
});
|
|
3994
|
+
}
|
|
3995
|
+
/**
|
|
3996
|
+
* 取有效配置:全局配置 + 实例级覆盖
|
|
3997
|
+
*/
|
|
3998
|
+
resolveConfig() {
|
|
3999
|
+
const t = Qo();
|
|
4000
|
+
return this.instanceConfig && Object.keys(this.instanceConfig).length ? V(t, this.instanceConfig) : t;
|
|
4001
|
+
}
|
|
4002
|
+
openLoading(t) {
|
|
4003
|
+
var o;
|
|
4004
|
+
const r = this.resolveConfig();
|
|
4005
|
+
((t == null ? void 0 : t.showLoading) ?? r.request.loading.enable) && (this.loadingCount += 1, this.loadingCount === 1 && (this.loadingInstance = hr.service({
|
|
4006
|
+
...r.request.loading.props,
|
|
4007
|
+
...((o = t == null ? void 0 : t.axiosConfig) == null ? void 0 : o.loadingProps) || {}
|
|
4008
|
+
})));
|
|
4009
|
+
}
|
|
4010
|
+
closeLoading(t) {
|
|
4011
|
+
const r = this.resolveConfig();
|
|
4012
|
+
((t == null ? void 0 : t.showLoading) ?? r.request.loading.enable) && (this.loadingCount = Math.max(0, this.loadingCount - 1), this.loadingCount === 0 && this.loadingInstance && (this.loadingInstance.close(), this.loadingInstance = null));
|
|
4013
|
+
}
|
|
4014
|
+
/**
|
|
4015
|
+
* 核心请求方法
|
|
4016
|
+
* 返回 Promise<ApiResult<T>>:业务失败也 resolve(success=false),仅网络异常 reject
|
|
4017
|
+
*/
|
|
4018
|
+
async request(t, r) {
|
|
4019
|
+
const n = this.resolveConfig(), o = (t.method || "get").toLowerCase(), s = this.buildUrl(t.url || "", n);
|
|
4020
|
+
if ((r == null ? void 0 : r.dedup) ?? n.request.dedup) {
|
|
4021
|
+
const i = this.buildDedupKey(o, s, t), c = this.inFlightRequests.get(i);
|
|
4022
|
+
if (c) return c;
|
|
4023
|
+
const f = this.executeRequest(t, r, s, o);
|
|
4024
|
+
return this.inFlightRequests.set(i, f), f.then(
|
|
4025
|
+
() => this.inFlightRequests.delete(i),
|
|
4026
|
+
() => this.inFlightRequests.delete(i)
|
|
4027
|
+
), f;
|
|
4028
|
+
}
|
|
4029
|
+
return this.executeRequest(t, r, s, o);
|
|
4030
|
+
}
|
|
4031
|
+
/** 去重 key:method + 解析后 url + 序列化请求体;请求体不可序列化时退化为固定后缀(该场景不合并) */
|
|
4032
|
+
buildDedupKey(t, r, n) {
|
|
4033
|
+
let o;
|
|
4034
|
+
try {
|
|
4035
|
+
o = JSON.stringify(n.data ?? n.params ?? null);
|
|
4036
|
+
} catch {
|
|
4037
|
+
o = "[unserializable]";
|
|
4038
|
+
}
|
|
4039
|
+
return `${t}:${r}:${o}`;
|
|
4040
|
+
}
|
|
4041
|
+
/** 真实请求执行体(含事件/loading/封解封),被 request() 去重包装后调用 */
|
|
4042
|
+
async executeRequest(t, r, n, o) {
|
|
4043
|
+
var f;
|
|
4044
|
+
const s = this.resolveConfig(), a = {
|
|
4045
|
+
type: "apiBefore",
|
|
4046
|
+
url: n,
|
|
4047
|
+
method: o,
|
|
4048
|
+
params: t.data ?? t.params
|
|
4049
|
+
};
|
|
4050
|
+
this.emit(a), this.openLoading(r);
|
|
4051
|
+
let i = {
|
|
4052
|
+
...s.request.axiosConfig,
|
|
4053
|
+
...t,
|
|
4054
|
+
url: n,
|
|
4055
|
+
method: o,
|
|
4056
|
+
signal: (r == null ? void 0 : r.signal) ?? t.signal
|
|
4057
|
+
};
|
|
4058
|
+
const c = s.request.transform.requestInterceptor;
|
|
4059
|
+
c && (i = await c(i) || i);
|
|
4060
|
+
try {
|
|
4061
|
+
let d = await this.axiosInstance.request(i);
|
|
4062
|
+
const p = s.request.transform.responseInterceptor;
|
|
4063
|
+
p && (d = await p(d) ?? d);
|
|
4064
|
+
const h = d.data, m = this.unpack(h, s, r, { url: n, method: o, params: a.params });
|
|
4065
|
+
return this.emit({
|
|
4066
|
+
type: m.success ? "apiSuccess" : "apiFail",
|
|
4067
|
+
url: n,
|
|
4068
|
+
method: o,
|
|
4069
|
+
params: a.params,
|
|
4070
|
+
data: m.data,
|
|
4071
|
+
code: m.code,
|
|
4072
|
+
message: m.message,
|
|
4073
|
+
raw: h
|
|
4074
|
+
}), this.emit({ type: "apiAfter", url: n, method: o, data: m.data, code: m.code, message: m.message }), m;
|
|
4075
|
+
} catch (d) {
|
|
4076
|
+
const p = (d == null ? void 0 : d.message) || "网络异常,请稍后重试", h = ((f = r == null ? void 0 : r.tipsConfig) == null ? void 0 : f.exception) ?? s.response.exception;
|
|
4077
|
+
if (We(h, p), this.emit({ type: "apiException", url: n, method: o, params: a.params, error: d, message: p }), this.emit({ type: "apiAfter", url: n, method: o, error: d, message: p }), s.request.throwException)
|
|
4078
|
+
throw d;
|
|
4079
|
+
return Promise.reject(
|
|
4080
|
+
Object.assign(new Error(p), { success: !1, data: null, message: p, error: d })
|
|
4081
|
+
);
|
|
4082
|
+
} finally {
|
|
4083
|
+
this.closeLoading(r);
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
/**
|
|
4087
|
+
* 解封响应体:按 resConfig 取 code/message/data
|
|
4088
|
+
*/
|
|
4089
|
+
unpack(t, r, n, o) {
|
|
4090
|
+
var m, _;
|
|
4091
|
+
if (t == null || typeof t != "object" || Array.isArray(t))
|
|
4092
|
+
return { success: !0, data: t, raw: t };
|
|
4093
|
+
const { codeName: s, messageName: a, dataName: i } = r.response.props, c = t[s], f = t[a] ?? "", d = t[i];
|
|
4094
|
+
if (this.checkSuccess(c, r)) {
|
|
4095
|
+
const E = ((m = n == null ? void 0 : n.tipsConfig) == null ? void 0 : m.success) ?? r.response.success;
|
|
4096
|
+
return E != null && E.showTips && We(E, f || "操作成功"), { success: !0, data: d, code: c, message: f, raw: t };
|
|
4097
|
+
}
|
|
4098
|
+
const h = ((_ = n == null ? void 0 : n.tipsConfig) == null ? void 0 : _.fail) ?? r.response.fail;
|
|
4099
|
+
return (h == null ? void 0 : h.showTips) !== !1 && We(h, f || "操作失败"), { success: !1, data: null, code: c, message: f, raw: t };
|
|
4100
|
+
}
|
|
4101
|
+
checkSuccess(t, r) {
|
|
4102
|
+
if (t == null) return !0;
|
|
4103
|
+
const n = Number(t);
|
|
4104
|
+
return Number.isNaN(n) ? !0 : n >= r.response.successCode;
|
|
4105
|
+
}
|
|
4106
|
+
buildUrl(t, r) {
|
|
4107
|
+
if (!t || /^https?:\/\//.test(t)) return t;
|
|
4108
|
+
const n = r.request.urlPrefix || "";
|
|
4109
|
+
return n ? `${n.replace(/\/$/, "")}/${t.replace(/^\//, "")}` : t;
|
|
4110
|
+
}
|
|
4111
|
+
// 便捷方法。返回值已解封业务 data(成功场景)
|
|
4112
|
+
get(t, r, n) {
|
|
4113
|
+
return this.request({ url: t, method: "get", params: r }, n);
|
|
4114
|
+
}
|
|
4115
|
+
post(t, r, n) {
|
|
4116
|
+
return this.request({ url: t, method: "post", data: r }, n);
|
|
4117
|
+
}
|
|
4118
|
+
put(t, r, n) {
|
|
4119
|
+
return this.request({ url: t, method: "put", data: r }, n);
|
|
4120
|
+
}
|
|
4121
|
+
delete(t, r, n) {
|
|
4122
|
+
return this.request({ url: t, method: "delete", params: r }, n);
|
|
4123
|
+
}
|
|
4124
|
+
}
|
|
4125
|
+
const vs = new st();
|
|
4126
|
+
export {
|
|
4127
|
+
st as R,
|
|
4128
|
+
lr as S,
|
|
4129
|
+
Qo as a,
|
|
4130
|
+
cr as b,
|
|
4131
|
+
Rs as c,
|
|
4132
|
+
V as d,
|
|
4133
|
+
ys as e,
|
|
4134
|
+
Os as g,
|
|
4135
|
+
ks as i,
|
|
4136
|
+
_s as l,
|
|
4137
|
+
Ss as m,
|
|
4138
|
+
vs as r,
|
|
4139
|
+
Es as s
|
|
4140
|
+
};
|
|
4141
|
+
//# sourceMappingURL=http-C06mNpwY.mjs.map
|