epic-designer-gold 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{attributeView-jwbZhq65.js → attributeView-BN2nA4jI.js} +2 -2
- package/dist/attributeView-lpFl3t4a.cjs +1 -0
- package/dist/axios-CYGTE3lR.cjs +6 -0
- package/dist/axios-ITY6Uw7A.js +2085 -0
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +2 -0
- package/dist/core/components/tree/src/tree.vue.d.ts +1 -1
- package/dist/{eventView-CEeT_JLL.js → eventView-BKpQ9YIh.js} +2 -2
- package/dist/eventView-DgqXxWY1.cjs +1 -0
- package/dist/index-1afOcXnV.cjs +1 -0
- package/dist/{index-M-hTLR0c.js → index-ASoFJnMl.js} +1 -1
- package/dist/index-B03W7FZR.cjs +1 -0
- package/dist/index-BHmIF8aI.cjs +10 -0
- package/dist/index-BJlPL6eL.cjs +1 -0
- package/dist/index-BXNPTGKl.cjs +1 -0
- package/dist/{index-D4e8XNyx.js → index-BlJ0TQyn.js} +1 -1
- package/dist/index-By5rfqCj.cjs +1 -0
- package/dist/{index-E2PvWPhl.js → index-BzsFImwK.js} +2 -2
- package/dist/{index-Ba0ZjQgI.js → index-C-XUgjda.js} +1 -1
- package/dist/{index-HM72iSCq.js → index-C4sdhgF2.js} +1 -1
- package/dist/index-C6ceZM1C.cjs +1 -0
- package/dist/{index-Dm_60RQ9.js → index-CCTMCqiz.js} +3 -4
- package/dist/index-CGHtM1lr.cjs +1 -0
- package/dist/{index-yVm3iKnk.js → index-CL_7RzF7.js} +87 -88
- package/dist/index-CNzcV-bQ.cjs +1 -0
- package/dist/{index-B7sMvYm_.cjs → index-CdgT4gQu.cjs} +1 -1
- package/dist/index-CkRhCvJK.cjs +1 -0
- package/dist/index-D8YBJFH6.cjs +1 -0
- package/dist/{index-DC4NLl3o.js → index-DPfAejnH.js} +2 -2
- package/dist/{index-BcZSHbp2.js → index-DZYSBPVO.js} +2 -2
- package/dist/index-DpzLP1Zp.cjs +1 -0
- package/dist/{index-Dtax565w.js → index-Mf82MCCF.js} +2 -2
- package/dist/index-Ol-YPkY9.js +1550 -0
- package/dist/index-YHlIFgpT.cjs +1 -0
- package/dist/{index-DHwtlP2J.js → index-Yx99TN9O.js} +2 -2
- package/dist/{index-DZRPexQZ.js → index-kWCcT4er.js} +3 -3
- package/dist/{index-D3KAAzmX.cjs → index-lH0_mCG-.cjs} +1 -1
- package/dist/{index-uaq_HmHi.js → index-ooVzYa5L.js} +1 -1
- package/dist/index-qJNRPNIj.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/outline-CJSEUbgc.cjs +1 -0
- package/dist/{outline-utbOTCBV.js → outline-yy4pIEi3.js} +2 -2
- package/dist/select-B479QwwL.cjs +1 -0
- package/dist/select-CtUVWh2M.js +29 -0
- package/dist/{sign-CdhDIjlg.js → sign-BDZCr3wJ.js} +11 -12
- package/dist/sign-Gwu2PIRy.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-B1kY8Fux.js → styleView-CXp05_Ar.js} +2 -2
- package/dist/styleView-auUK19Dr.cjs +1 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +1 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-Bnl1CGxG.js → tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +2 -2
- package/package.json +1 -1
- package/dist/attributeView-DEyQL7em.cjs +0 -1
- package/dist/axios-CXDYiOMX.js +0 -1704
- package/dist/axios-tuVKNgv9.cjs +0 -6
- package/dist/eventView-CfMax_U7.cjs +0 -1
- package/dist/index-B2N4pP55.cjs +0 -1
- package/dist/index-B3dTIoEC.cjs +0 -1
- package/dist/index-B6yexTNr.js +0 -1509
- package/dist/index-Bs6GdgDl.cjs +0 -1
- package/dist/index-CTd2_vna.cjs +0 -1
- package/dist/index-Cevjl8jo.cjs +0 -1
- package/dist/index-CrrXaIZY.js +0 -4
- package/dist/index-CuxnFxdY.cjs +0 -1
- package/dist/index-D-2x46HI.cjs +0 -1
- package/dist/index-DBQ-tc2k.cjs +0 -1
- package/dist/index-DWjMyXtP.cjs +0 -1
- package/dist/index-DgRGSX7j.cjs +0 -10
- package/dist/index-Xb_SJdEs.cjs +0 -1
- package/dist/index-br62scsB.cjs +0 -1
- package/dist/index-gFqI49-0.cjs +0 -1
- package/dist/outline-UAdT8ap6.cjs +0 -1
- package/dist/pluginManager-D8PM7ICc.js +0 -383
- package/dist/pluginManager-itCTrGag.cjs +0 -1
- package/dist/select-B8HCbraJ.js +0 -29
- package/dist/select-D6bRz5G2.cjs +0 -1
- package/dist/sign-Dx0d5kWo.cjs +0 -1
- package/dist/styleView-CHar-6GB.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-BVopU0uv.cjs +0 -1
|
@@ -0,0 +1,2085 @@
|
|
|
1
|
+
var nt = Object.defineProperty;
|
|
2
|
+
var rt = (t, e, n) => e in t ? nt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var A = (t, e, n) => rt(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { defineAsyncComponent as st, ref as ye, shallowRef as be } from "vue";
|
|
5
|
+
const Z = (t, e) => st({
|
|
6
|
+
loader: t,
|
|
7
|
+
loadingComponent: e,
|
|
8
|
+
delay: 80
|
|
9
|
+
});
|
|
10
|
+
function ot(t) {
|
|
11
|
+
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, n) {
|
|
12
|
+
var r = t.get(e);
|
|
13
|
+
r ? r.push(n) : t.set(e, [n]);
|
|
14
|
+
}, off: function(e, n) {
|
|
15
|
+
var r = t.get(e);
|
|
16
|
+
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : t.set(e, []));
|
|
17
|
+
}, emit: function(e, n) {
|
|
18
|
+
var r = t.get(e);
|
|
19
|
+
r && r.slice().map(function(s) {
|
|
20
|
+
s(n);
|
|
21
|
+
}), (r = t.get("*")) && r.slice().map(function(s) {
|
|
22
|
+
s(e, n);
|
|
23
|
+
});
|
|
24
|
+
} };
|
|
25
|
+
}
|
|
26
|
+
const it = ot();
|
|
27
|
+
class at {
|
|
28
|
+
constructor() {
|
|
29
|
+
// 已初始化基础UI
|
|
30
|
+
A(this, "initialized", ye(!1));
|
|
31
|
+
// 数据源存储
|
|
32
|
+
A(this, "sourceData", []);
|
|
33
|
+
// 组件对象字典,key 为组件type,value 为组件
|
|
34
|
+
A(this, "components", {});
|
|
35
|
+
// 组件配置记录字典,key 为组件type,value 为组件配置
|
|
36
|
+
A(this, "componentConfigs", {});
|
|
37
|
+
// 基础组件type,切换ui时,可先移除该数组记录的type
|
|
38
|
+
A(this, "baseComponentTypes", []);
|
|
39
|
+
// 组件模式分组,使用 Vue Composition API 的 ref 进行响应式处理
|
|
40
|
+
A(this, "componentSchemaGroups", ye([]));
|
|
41
|
+
// 隐藏的组件列表,存储需要隐藏的组件名称
|
|
42
|
+
A(this, "hiddenComponents", []);
|
|
43
|
+
// 表单模式默认schema数据
|
|
44
|
+
A(this, "formSchemas", [
|
|
45
|
+
{
|
|
46
|
+
label: "表单",
|
|
47
|
+
type: "form",
|
|
48
|
+
componentProps: {
|
|
49
|
+
layout: "horizontal",
|
|
50
|
+
name: "default",
|
|
51
|
+
labelWidth: 100,
|
|
52
|
+
labelLayout: "fixed",
|
|
53
|
+
labelCol: {
|
|
54
|
+
span: 5
|
|
55
|
+
},
|
|
56
|
+
wrapperCol: {
|
|
57
|
+
span: 19
|
|
58
|
+
},
|
|
59
|
+
colon: !0,
|
|
60
|
+
labelAlign: "right",
|
|
61
|
+
labelPlacement: "left"
|
|
62
|
+
},
|
|
63
|
+
children: [],
|
|
64
|
+
id: "root"
|
|
65
|
+
}
|
|
66
|
+
]);
|
|
67
|
+
// 组件分组名称映射,key 为组件原名称,value 为组件分组映射名称
|
|
68
|
+
A(this, "componentGroupNameMap", {});
|
|
69
|
+
// 组件分组排序列表(设置之后,按该数组下标排序)
|
|
70
|
+
A(this, "sortedGroups", ["表单", "布局"]);
|
|
71
|
+
// 视图容器模型,包含活动栏和右侧边栏的配置
|
|
72
|
+
A(this, "viewsContainers", {
|
|
73
|
+
activitybars: be([]),
|
|
74
|
+
// 活动栏配置列表
|
|
75
|
+
rightSidebars: be([])
|
|
76
|
+
// 右侧边栏配置列表
|
|
77
|
+
});
|
|
78
|
+
// 公共方法模型,存储插件的公共方法
|
|
79
|
+
A(this, "publicMethods", {
|
|
80
|
+
// 示例数据
|
|
81
|
+
// publicTest: {
|
|
82
|
+
// describe: "测试函数",
|
|
83
|
+
// name: "test",
|
|
84
|
+
// handler: (e) => {
|
|
85
|
+
// console.log(e)
|
|
86
|
+
// // alert("测试函数弹出");
|
|
87
|
+
// },
|
|
88
|
+
// },
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 添加组件到插件管理器中
|
|
93
|
+
* @param componentType 组件类型
|
|
94
|
+
* @param component 组件
|
|
95
|
+
*/
|
|
96
|
+
component(e, n) {
|
|
97
|
+
typeof n == "function" && (n = Z(n)), this.components[e] = n;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* 注册组件到插件管理器中
|
|
101
|
+
* @param componentConfig 组件配置
|
|
102
|
+
*/
|
|
103
|
+
registerComponent(e) {
|
|
104
|
+
this.component(e.defaultSchema.type, e.component), e.defaultSchema.input && (e.config.action || (e.config.action = []), e.config.action.unshift(
|
|
105
|
+
{
|
|
106
|
+
type: "setValue",
|
|
107
|
+
describe: "设置值",
|
|
108
|
+
// 参数配置
|
|
109
|
+
argsConfigs: [
|
|
110
|
+
{
|
|
111
|
+
...e.defaultSchema,
|
|
112
|
+
label: "设置数据",
|
|
113
|
+
field: "0"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "getValue",
|
|
119
|
+
describe: "获取值"
|
|
120
|
+
}
|
|
121
|
+
)), this.componentConfigs[e.defaultSchema.type] = e, this.computedComponentSchemaGroups();
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* 从已记录的基础组件类型中移除特定类型的组件
|
|
125
|
+
* @param componentType 要移除的组件类型
|
|
126
|
+
*/
|
|
127
|
+
removeComponent(e) {
|
|
128
|
+
delete this.componentConfigs[e], delete this.components[e];
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* 设置数据源
|
|
132
|
+
* @param
|
|
133
|
+
*/
|
|
134
|
+
setSourceData(e) {
|
|
135
|
+
this.sourceData = e, it.emit("updateSource", /* @__PURE__ */ new Date());
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* 获取数据源
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
getSourceData() {
|
|
142
|
+
return Object.prototype.toString.call(this.sourceData) === "[object Array]" ? this.sourceData : [];
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* 记录基础组件类型
|
|
146
|
+
* @returns baseComponentTypes string[]
|
|
147
|
+
*/
|
|
148
|
+
setBaseComponentTypes(e) {
|
|
149
|
+
this.baseComponentTypes = e;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* 添加基础组件类型
|
|
153
|
+
* @returns baseComponentType string
|
|
154
|
+
*/
|
|
155
|
+
addBaseComponentTypes(e) {
|
|
156
|
+
this.baseComponentTypes.push(e);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* 移除已记录的基础组件类型
|
|
160
|
+
*/
|
|
161
|
+
removeBaseComponents() {
|
|
162
|
+
this.baseComponentTypes.forEach((e) => {
|
|
163
|
+
this.removeComponent(e);
|
|
164
|
+
}), this.setBaseComponentTypes([]), this.computedComponentSchemaGroups();
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* 获取所有插件管理中的所有组件
|
|
168
|
+
* @returns components
|
|
169
|
+
*/
|
|
170
|
+
getComponents() {
|
|
171
|
+
return this.components;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* 通过type 查询相应的组件
|
|
175
|
+
* @returns components
|
|
176
|
+
*/
|
|
177
|
+
getComponent(e) {
|
|
178
|
+
return this.components[e];
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* 注册或更新活动栏(Activitybar)模型。
|
|
182
|
+
* 如果模型中的组件是一个函数,则异步加载该组件。
|
|
183
|
+
* @param activitybar 要注册或更新的活动栏模型
|
|
184
|
+
*/
|
|
185
|
+
registerActivitybar(e) {
|
|
186
|
+
typeof e.component == "function" && (e.component = Z(e.component)), typeof e.visible > "u" && (e.visible = !0);
|
|
187
|
+
const n = this.viewsContainers.activitybars.value.findIndex((r) => r.id === e.id);
|
|
188
|
+
n !== -1 ? this.viewsContainers.activitybars.value[n] = e : this.viewsContainers.activitybars.value.push(e);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* 获取所有activitybars
|
|
192
|
+
* @returns activitybars
|
|
193
|
+
*/
|
|
194
|
+
getActivitybars() {
|
|
195
|
+
return this.viewsContainers.activitybars.value;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* 隐藏活动栏
|
|
199
|
+
* @param value 属性
|
|
200
|
+
* @param attr 查询字段 默认值 title
|
|
201
|
+
*/
|
|
202
|
+
hideActivitybar(e, n = "title") {
|
|
203
|
+
const r = this.viewsContainers.activitybars.value.findIndex((s) => s[n] === e);
|
|
204
|
+
r !== -1 && (this.viewsContainers.activitybars.value[r].visible = !1);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* 显示活动栏
|
|
208
|
+
* @param value 属性
|
|
209
|
+
* @param attr 查询字段 默认值 title
|
|
210
|
+
*/
|
|
211
|
+
showActivitybar(e, n = "title") {
|
|
212
|
+
const r = this.viewsContainers.activitybars.value.findIndex((s) => s[n] === e);
|
|
213
|
+
r !== -1 && (this.viewsContainers.activitybars.value[r].visible = !0);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* 注册右侧栏
|
|
217
|
+
*/
|
|
218
|
+
registerRightSidebar(e) {
|
|
219
|
+
typeof e.component == "function" && (e.component = Z(e.component)), typeof e.visible > "u" && (e.visible = !0);
|
|
220
|
+
const n = this.viewsContainers.rightSidebars.value.findIndex((r) => r.id === e.id);
|
|
221
|
+
n !== -1 ? this.viewsContainers.rightSidebars.value[n] = e : this.viewsContainers.rightSidebars.value.push(e);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* 获取所有rightSidebars
|
|
225
|
+
* @returns rightSidebars
|
|
226
|
+
*/
|
|
227
|
+
getRightSidebars() {
|
|
228
|
+
return this.viewsContainers.rightSidebars.value;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* 隐藏右侧边栏
|
|
232
|
+
* @param value 属性
|
|
233
|
+
* @param attr 查询字段 默认值 title
|
|
234
|
+
*/
|
|
235
|
+
hideRightSidebar(e, n = "title") {
|
|
236
|
+
const r = this.viewsContainers.rightSidebars.value.findIndex((s) => s[n] === e);
|
|
237
|
+
r !== -1 && (this.viewsContainers.rightSidebars.value[r].visible = !1);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* 显示右侧边栏
|
|
241
|
+
* @param value 属性
|
|
242
|
+
* @param attr 查询字段 默认值 title
|
|
243
|
+
*/
|
|
244
|
+
showRightSidebar(e, n = "title") {
|
|
245
|
+
const r = this.viewsContainers.rightSidebars.value.findIndex((s) => s[n] === e);
|
|
246
|
+
r !== -1 && (this.viewsContainers.rightSidebars.value[r].visible = !0);
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* 获取所有插件管理中的所有组件配置
|
|
250
|
+
* @returns componentAttrs
|
|
251
|
+
*/
|
|
252
|
+
getComponentConfings() {
|
|
253
|
+
return this.componentConfigs;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* 通过type获取ComponentConfing
|
|
257
|
+
* @returns
|
|
258
|
+
*/
|
|
259
|
+
getComponentConfingByType(e) {
|
|
260
|
+
return this.componentConfigs[e];
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* 计算componentSchemaGroups
|
|
264
|
+
*/
|
|
265
|
+
computedComponentSchemaGroups() {
|
|
266
|
+
const e = [];
|
|
267
|
+
Object.values(this.componentConfigs).forEach((n) => {
|
|
268
|
+
if (!this.hiddenComponents.includes(n.defaultSchema.type) && n.groupName) {
|
|
269
|
+
const r = this.componentGroupNameMap[n.groupName] ?? n.groupName;
|
|
270
|
+
let s = e.findIndex((i) => i.title === r);
|
|
271
|
+
s === -1 && (e.push({
|
|
272
|
+
title: r,
|
|
273
|
+
list: []
|
|
274
|
+
}), s = e.length - 1);
|
|
275
|
+
let o = e[s].list.findIndex(
|
|
276
|
+
(i) => i.type === n.defaultSchema.type
|
|
277
|
+
);
|
|
278
|
+
o !== -1 ? e[s].list[o] = n.defaultSchema : e[s].list.push(n.defaultSchema);
|
|
279
|
+
}
|
|
280
|
+
}), e.sort((n, r) => {
|
|
281
|
+
const s = this.sortedGroups.indexOf(n.title), o = this.sortedGroups.indexOf(r.title);
|
|
282
|
+
return s === -1 ? 1 : o === -1 ? -1 : s - o;
|
|
283
|
+
}), e.forEach((n) => {
|
|
284
|
+
n.list.sort((r, s) => {
|
|
285
|
+
var c, f;
|
|
286
|
+
const o = ((c = this.componentConfigs[r.type]) == null ? void 0 : c.sort) ?? 1e3, i = ((f = this.componentConfigs[s.type]) == null ? void 0 : f.sort) ?? 1e3;
|
|
287
|
+
return o - i;
|
|
288
|
+
});
|
|
289
|
+
}), this.componentSchemaGroups.value = e;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* 按照分组获取componentSchemaGroups 暂时没啥用
|
|
293
|
+
* @returns componentSchemaGroups
|
|
294
|
+
*/
|
|
295
|
+
getComponentSchemaGroups() {
|
|
296
|
+
return this.componentSchemaGroups;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* 设置组件分组名称到映射名称的关系
|
|
300
|
+
* @param groupName 组件分组名称
|
|
301
|
+
* @param mapName 映射的名称
|
|
302
|
+
*/
|
|
303
|
+
setComponentGroupNameMap(e, n) {
|
|
304
|
+
this.componentGroupNameMap[e] = n;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* 清空组件分组名称到映射名称的关系
|
|
308
|
+
*/
|
|
309
|
+
clearComponentGroupNameMap() {
|
|
310
|
+
this.componentGroupNameMap = {};
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* 设置组件分组的排序
|
|
314
|
+
* @param sortedGroups 包含组名和排序字段的对象数组
|
|
315
|
+
*/
|
|
316
|
+
setSortedGroups(e) {
|
|
317
|
+
this.sortedGroups = e, this.computedComponentSchemaGroups();
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* 清空组件分组的排序
|
|
321
|
+
*/
|
|
322
|
+
clearSortedGroups() {
|
|
323
|
+
this.sortedGroups = [], this.computedComponentSchemaGroups();
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* 添加需要隐藏的组件类型
|
|
327
|
+
* @param {*} type
|
|
328
|
+
* @returns
|
|
329
|
+
*/
|
|
330
|
+
hideComponent(e) {
|
|
331
|
+
this.hiddenComponents.push(e), this.computedComponentSchemaGroups();
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* 移除需要隐藏的组件类型
|
|
335
|
+
* @param {*} type
|
|
336
|
+
* @returns
|
|
337
|
+
*/
|
|
338
|
+
showComponent(e) {
|
|
339
|
+
this.hiddenComponents = this.hiddenComponents.filter((n) => n !== e), this.computedComponentSchemaGroups();
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* 设置需要隐藏的组件类型数组
|
|
343
|
+
* @param {*} type[]
|
|
344
|
+
* @returns
|
|
345
|
+
*/
|
|
346
|
+
setHideComponents(e) {
|
|
347
|
+
this.hiddenComponents = e, this.computedComponentSchemaGroups();
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* 设置initialized的状态。
|
|
351
|
+
*
|
|
352
|
+
* @param value 要设置的布尔值。
|
|
353
|
+
*/
|
|
354
|
+
setInitialized(e) {
|
|
355
|
+
this.initialized.value = e;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* 添加公共方法
|
|
359
|
+
* @param publicMethod
|
|
360
|
+
*/
|
|
361
|
+
addPublicMethod(e) {
|
|
362
|
+
const n = e.methodName ?? e.name, r = e.method ?? e.handler;
|
|
363
|
+
this.publicMethods[n] = {
|
|
364
|
+
...e,
|
|
365
|
+
name: n,
|
|
366
|
+
handler: r
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* 移除公共方法
|
|
371
|
+
* @param methodName
|
|
372
|
+
*/
|
|
373
|
+
removePublicMethod(e) {
|
|
374
|
+
delete this.publicMethods[e];
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
const qn = new at();
|
|
378
|
+
function Fe(t, e) {
|
|
379
|
+
return function() {
|
|
380
|
+
return t.apply(e, arguments);
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
const { toString: ct } = Object.prototype, { getPrototypeOf: le } = Object, W = /* @__PURE__ */ ((t) => (e) => {
|
|
384
|
+
const n = ct.call(e);
|
|
385
|
+
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
386
|
+
})(/* @__PURE__ */ Object.create(null)), N = (t) => (t = t.toLowerCase(), (e) => W(e) === t), $ = (t) => (e) => typeof e === t, { isArray: v } = Array, I = $("undefined");
|
|
387
|
+
function ut(t) {
|
|
388
|
+
return t !== null && !I(t) && t.constructor !== null && !I(t.constructor) && x(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
389
|
+
}
|
|
390
|
+
const De = N("ArrayBuffer");
|
|
391
|
+
function lt(t) {
|
|
392
|
+
let e;
|
|
393
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && De(t.buffer), e;
|
|
394
|
+
}
|
|
395
|
+
const ft = $("string"), x = $("function"), Le = $("number"), K = (t) => t !== null && typeof t == "object", dt = (t) => t === !0 || t === !1, z = (t) => {
|
|
396
|
+
if (W(t) !== "object")
|
|
397
|
+
return !1;
|
|
398
|
+
const e = le(t);
|
|
399
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
400
|
+
}, pt = N("Date"), ht = N("File"), mt = N("Blob"), yt = N("FileList"), bt = (t) => K(t) && x(t.pipe), wt = (t) => {
|
|
401
|
+
let e;
|
|
402
|
+
return t && (typeof FormData == "function" && t instanceof FormData || x(t.append) && ((e = W(t)) === "formdata" || // detect form-data instance
|
|
403
|
+
e === "object" && x(t.toString) && t.toString() === "[object FormData]"));
|
|
404
|
+
}, gt = N("URLSearchParams"), [St, Et, Rt, Ct] = ["ReadableStream", "Request", "Response", "Headers"].map(N), Ot = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
405
|
+
function q(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
406
|
+
if (t === null || typeof t > "u")
|
|
407
|
+
return;
|
|
408
|
+
let r, s;
|
|
409
|
+
if (typeof t != "object" && (t = [t]), v(t))
|
|
410
|
+
for (r = 0, s = t.length; r < s; r++)
|
|
411
|
+
e.call(null, t[r], r, t);
|
|
412
|
+
else {
|
|
413
|
+
const o = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length;
|
|
414
|
+
let c;
|
|
415
|
+
for (r = 0; r < i; r++)
|
|
416
|
+
c = o[r], e.call(null, t[c], c, t);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function Ue(t, e) {
|
|
420
|
+
e = e.toLowerCase();
|
|
421
|
+
const n = Object.keys(t);
|
|
422
|
+
let r = n.length, s;
|
|
423
|
+
for (; r-- > 0; )
|
|
424
|
+
if (s = n[r], e === s.toLowerCase())
|
|
425
|
+
return s;
|
|
426
|
+
return null;
|
|
427
|
+
}
|
|
428
|
+
const D = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ve = (t) => !I(t) && t !== D;
|
|
429
|
+
function re() {
|
|
430
|
+
const { caseless: t } = ve(this) && this || {}, e = {}, n = (r, s) => {
|
|
431
|
+
const o = t && Ue(e, s) || s;
|
|
432
|
+
z(e[o]) && z(r) ? e[o] = re(e[o], r) : z(r) ? e[o] = re({}, r) : v(r) ? e[o] = r.slice() : e[o] = r;
|
|
433
|
+
};
|
|
434
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
435
|
+
arguments[r] && q(arguments[r], n);
|
|
436
|
+
return e;
|
|
437
|
+
}
|
|
438
|
+
const Tt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
439
|
+
n && x(s) ? t[o] = Fe(s, n) : t[o] = s;
|
|
440
|
+
}, { allOwnKeys: r }), t), At = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), xt = (t, e, n, r) => {
|
|
441
|
+
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
442
|
+
value: e.prototype
|
|
443
|
+
}), n && Object.assign(t.prototype, n);
|
|
444
|
+
}, Nt = (t, e, n, r) => {
|
|
445
|
+
let s, o, i;
|
|
446
|
+
const c = {};
|
|
447
|
+
if (e = e || {}, t == null) return e;
|
|
448
|
+
do {
|
|
449
|
+
for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
|
|
450
|
+
i = s[o], (!r || r(i, t, e)) && !c[i] && (e[i] = t[i], c[i] = !0);
|
|
451
|
+
t = n !== !1 && le(t);
|
|
452
|
+
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
453
|
+
return e;
|
|
454
|
+
}, Pt = (t, e, n) => {
|
|
455
|
+
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
456
|
+
const r = t.indexOf(e, n);
|
|
457
|
+
return r !== -1 && r === n;
|
|
458
|
+
}, _t = (t) => {
|
|
459
|
+
if (!t) return null;
|
|
460
|
+
if (v(t)) return t;
|
|
461
|
+
let e = t.length;
|
|
462
|
+
if (!Le(e)) return null;
|
|
463
|
+
const n = new Array(e);
|
|
464
|
+
for (; e-- > 0; )
|
|
465
|
+
n[e] = t[e];
|
|
466
|
+
return n;
|
|
467
|
+
}, Bt = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && le(Uint8Array)), Ft = (t, e) => {
|
|
468
|
+
const r = (t && t[Symbol.iterator]).call(t);
|
|
469
|
+
let s;
|
|
470
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
471
|
+
const o = s.value;
|
|
472
|
+
e.call(t, o[0], o[1]);
|
|
473
|
+
}
|
|
474
|
+
}, Dt = (t, e) => {
|
|
475
|
+
let n;
|
|
476
|
+
const r = [];
|
|
477
|
+
for (; (n = t.exec(e)) !== null; )
|
|
478
|
+
r.push(n);
|
|
479
|
+
return r;
|
|
480
|
+
}, Lt = N("HTMLFormElement"), Ut = (t) => t.toLowerCase().replace(
|
|
481
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
482
|
+
function(n, r, s) {
|
|
483
|
+
return r.toUpperCase() + s;
|
|
484
|
+
}
|
|
485
|
+
), we = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), vt = N("RegExp"), ke = (t, e) => {
|
|
486
|
+
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
487
|
+
q(n, (s, o) => {
|
|
488
|
+
let i;
|
|
489
|
+
(i = e(s, o, t)) !== !1 && (r[o] = i || s);
|
|
490
|
+
}), Object.defineProperties(t, r);
|
|
491
|
+
}, kt = (t) => {
|
|
492
|
+
ke(t, (e, n) => {
|
|
493
|
+
if (x(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
494
|
+
return !1;
|
|
495
|
+
const r = t[n];
|
|
496
|
+
if (x(r)) {
|
|
497
|
+
if (e.enumerable = !1, "writable" in e) {
|
|
498
|
+
e.writable = !1;
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
e.set || (e.set = () => {
|
|
502
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}, jt = (t, e) => {
|
|
507
|
+
const n = {}, r = (s) => {
|
|
508
|
+
s.forEach((o) => {
|
|
509
|
+
n[o] = !0;
|
|
510
|
+
});
|
|
511
|
+
};
|
|
512
|
+
return v(t) ? r(t) : r(String(t).split(e)), n;
|
|
513
|
+
}, It = () => {
|
|
514
|
+
}, qt = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, Y = "abcdefghijklmnopqrstuvwxyz", ge = "0123456789", je = {
|
|
515
|
+
DIGIT: ge,
|
|
516
|
+
ALPHA: Y,
|
|
517
|
+
ALPHA_DIGIT: Y + Y.toUpperCase() + ge
|
|
518
|
+
}, Mt = (t = 16, e = je.ALPHA_DIGIT) => {
|
|
519
|
+
let n = "";
|
|
520
|
+
const { length: r } = e;
|
|
521
|
+
for (; t--; )
|
|
522
|
+
n += e[Math.random() * r | 0];
|
|
523
|
+
return n;
|
|
524
|
+
};
|
|
525
|
+
function Ht(t) {
|
|
526
|
+
return !!(t && x(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
527
|
+
}
|
|
528
|
+
const zt = (t) => {
|
|
529
|
+
const e = new Array(10), n = (r, s) => {
|
|
530
|
+
if (K(r)) {
|
|
531
|
+
if (e.indexOf(r) >= 0)
|
|
532
|
+
return;
|
|
533
|
+
if (!("toJSON" in r)) {
|
|
534
|
+
e[s] = r;
|
|
535
|
+
const o = v(r) ? [] : {};
|
|
536
|
+
return q(r, (i, c) => {
|
|
537
|
+
const f = n(i, s + 1);
|
|
538
|
+
!I(f) && (o[c] = f);
|
|
539
|
+
}), e[s] = void 0, o;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
return r;
|
|
543
|
+
};
|
|
544
|
+
return n(t, 0);
|
|
545
|
+
}, Gt = N("AsyncFunction"), Jt = (t) => t && (K(t) || x(t)) && x(t.then) && x(t.catch), Ie = ((t, e) => t ? setImmediate : e ? ((n, r) => (D.addEventListener("message", ({ source: s, data: o }) => {
|
|
546
|
+
s === D && o === n && r.length && r.shift()();
|
|
547
|
+
}, !1), (s) => {
|
|
548
|
+
r.push(s), D.postMessage(n, "*");
|
|
549
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
550
|
+
typeof setImmediate == "function",
|
|
551
|
+
x(D.postMessage)
|
|
552
|
+
), Vt = typeof queueMicrotask < "u" ? queueMicrotask.bind(D) : typeof process < "u" && process.nextTick || Ie, a = {
|
|
553
|
+
isArray: v,
|
|
554
|
+
isArrayBuffer: De,
|
|
555
|
+
isBuffer: ut,
|
|
556
|
+
isFormData: wt,
|
|
557
|
+
isArrayBufferView: lt,
|
|
558
|
+
isString: ft,
|
|
559
|
+
isNumber: Le,
|
|
560
|
+
isBoolean: dt,
|
|
561
|
+
isObject: K,
|
|
562
|
+
isPlainObject: z,
|
|
563
|
+
isReadableStream: St,
|
|
564
|
+
isRequest: Et,
|
|
565
|
+
isResponse: Rt,
|
|
566
|
+
isHeaders: Ct,
|
|
567
|
+
isUndefined: I,
|
|
568
|
+
isDate: pt,
|
|
569
|
+
isFile: ht,
|
|
570
|
+
isBlob: mt,
|
|
571
|
+
isRegExp: vt,
|
|
572
|
+
isFunction: x,
|
|
573
|
+
isStream: bt,
|
|
574
|
+
isURLSearchParams: gt,
|
|
575
|
+
isTypedArray: Bt,
|
|
576
|
+
isFileList: yt,
|
|
577
|
+
forEach: q,
|
|
578
|
+
merge: re,
|
|
579
|
+
extend: Tt,
|
|
580
|
+
trim: Ot,
|
|
581
|
+
stripBOM: At,
|
|
582
|
+
inherits: xt,
|
|
583
|
+
toFlatObject: Nt,
|
|
584
|
+
kindOf: W,
|
|
585
|
+
kindOfTest: N,
|
|
586
|
+
endsWith: Pt,
|
|
587
|
+
toArray: _t,
|
|
588
|
+
forEachEntry: Ft,
|
|
589
|
+
matchAll: Dt,
|
|
590
|
+
isHTMLForm: Lt,
|
|
591
|
+
hasOwnProperty: we,
|
|
592
|
+
hasOwnProp: we,
|
|
593
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
594
|
+
reduceDescriptors: ke,
|
|
595
|
+
freezeMethods: kt,
|
|
596
|
+
toObjectSet: jt,
|
|
597
|
+
toCamelCase: Ut,
|
|
598
|
+
noop: It,
|
|
599
|
+
toFiniteNumber: qt,
|
|
600
|
+
findKey: Ue,
|
|
601
|
+
global: D,
|
|
602
|
+
isContextDefined: ve,
|
|
603
|
+
ALPHABET: je,
|
|
604
|
+
generateString: Mt,
|
|
605
|
+
isSpecCompliantForm: Ht,
|
|
606
|
+
toJSONObject: zt,
|
|
607
|
+
isAsyncFn: Gt,
|
|
608
|
+
isThenable: Jt,
|
|
609
|
+
setImmediate: Ie,
|
|
610
|
+
asap: Vt
|
|
611
|
+
};
|
|
612
|
+
function m(t, e, n, r, s) {
|
|
613
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
614
|
+
}
|
|
615
|
+
a.inherits(m, Error, {
|
|
616
|
+
toJSON: function() {
|
|
617
|
+
return {
|
|
618
|
+
// Standard
|
|
619
|
+
message: this.message,
|
|
620
|
+
name: this.name,
|
|
621
|
+
// Microsoft
|
|
622
|
+
description: this.description,
|
|
623
|
+
number: this.number,
|
|
624
|
+
// Mozilla
|
|
625
|
+
fileName: this.fileName,
|
|
626
|
+
lineNumber: this.lineNumber,
|
|
627
|
+
columnNumber: this.columnNumber,
|
|
628
|
+
stack: this.stack,
|
|
629
|
+
// Axios
|
|
630
|
+
config: a.toJSONObject(this.config),
|
|
631
|
+
code: this.code,
|
|
632
|
+
status: this.status
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
const qe = m.prototype, Me = {};
|
|
637
|
+
[
|
|
638
|
+
"ERR_BAD_OPTION_VALUE",
|
|
639
|
+
"ERR_BAD_OPTION",
|
|
640
|
+
"ECONNABORTED",
|
|
641
|
+
"ETIMEDOUT",
|
|
642
|
+
"ERR_NETWORK",
|
|
643
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
644
|
+
"ERR_DEPRECATED",
|
|
645
|
+
"ERR_BAD_RESPONSE",
|
|
646
|
+
"ERR_BAD_REQUEST",
|
|
647
|
+
"ERR_CANCELED",
|
|
648
|
+
"ERR_NOT_SUPPORT",
|
|
649
|
+
"ERR_INVALID_URL"
|
|
650
|
+
// eslint-disable-next-line func-names
|
|
651
|
+
].forEach((t) => {
|
|
652
|
+
Me[t] = { value: t };
|
|
653
|
+
});
|
|
654
|
+
Object.defineProperties(m, Me);
|
|
655
|
+
Object.defineProperty(qe, "isAxiosError", { value: !0 });
|
|
656
|
+
m.from = (t, e, n, r, s, o) => {
|
|
657
|
+
const i = Object.create(qe);
|
|
658
|
+
return a.toFlatObject(t, i, function(f) {
|
|
659
|
+
return f !== Error.prototype;
|
|
660
|
+
}, (c) => c !== "isAxiosError"), m.call(i, t.message, e, n, r, s), i.cause = t, i.name = t.name, o && Object.assign(i, o), i;
|
|
661
|
+
};
|
|
662
|
+
const Wt = null;
|
|
663
|
+
function se(t) {
|
|
664
|
+
return a.isPlainObject(t) || a.isArray(t);
|
|
665
|
+
}
|
|
666
|
+
function He(t) {
|
|
667
|
+
return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
668
|
+
}
|
|
669
|
+
function Se(t, e, n) {
|
|
670
|
+
return t ? t.concat(e).map(function(s, o) {
|
|
671
|
+
return s = He(s), !n && o ? "[" + s + "]" : s;
|
|
672
|
+
}).join(n ? "." : "") : e;
|
|
673
|
+
}
|
|
674
|
+
function $t(t) {
|
|
675
|
+
return a.isArray(t) && !t.some(se);
|
|
676
|
+
}
|
|
677
|
+
const Kt = a.toFlatObject(a, {}, null, function(e) {
|
|
678
|
+
return /^is[A-Z]/.test(e);
|
|
679
|
+
});
|
|
680
|
+
function X(t, e, n) {
|
|
681
|
+
if (!a.isObject(t))
|
|
682
|
+
throw new TypeError("target must be an object");
|
|
683
|
+
e = e || new FormData(), n = a.toFlatObject(n, {
|
|
684
|
+
metaTokens: !0,
|
|
685
|
+
dots: !1,
|
|
686
|
+
indexes: !1
|
|
687
|
+
}, !1, function(y, h) {
|
|
688
|
+
return !a.isUndefined(h[y]);
|
|
689
|
+
});
|
|
690
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
|
|
691
|
+
if (!a.isFunction(s))
|
|
692
|
+
throw new TypeError("visitor must be a function");
|
|
693
|
+
function u(p) {
|
|
694
|
+
if (p === null) return "";
|
|
695
|
+
if (a.isDate(p))
|
|
696
|
+
return p.toISOString();
|
|
697
|
+
if (!f && a.isBlob(p))
|
|
698
|
+
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
699
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
700
|
+
}
|
|
701
|
+
function l(p, y, h) {
|
|
702
|
+
let w = p;
|
|
703
|
+
if (p && !h && typeof p == "object") {
|
|
704
|
+
if (a.endsWith(y, "{}"))
|
|
705
|
+
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
706
|
+
else if (a.isArray(p) && $t(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
|
|
707
|
+
return y = He(y), w.forEach(function(R, P) {
|
|
708
|
+
!(a.isUndefined(R) || R === null) && e.append(
|
|
709
|
+
// eslint-disable-next-line no-nested-ternary
|
|
710
|
+
i === !0 ? Se([y], P, o) : i === null ? y : y + "[]",
|
|
711
|
+
u(R)
|
|
712
|
+
);
|
|
713
|
+
}), !1;
|
|
714
|
+
}
|
|
715
|
+
return se(p) ? !0 : (e.append(Se(h, y, o), u(p)), !1);
|
|
716
|
+
}
|
|
717
|
+
const d = [], b = Object.assign(Kt, {
|
|
718
|
+
defaultVisitor: l,
|
|
719
|
+
convertValue: u,
|
|
720
|
+
isVisitable: se
|
|
721
|
+
});
|
|
722
|
+
function g(p, y) {
|
|
723
|
+
if (!a.isUndefined(p)) {
|
|
724
|
+
if (d.indexOf(p) !== -1)
|
|
725
|
+
throw Error("Circular reference detected in " + y.join("."));
|
|
726
|
+
d.push(p), a.forEach(p, function(w, S) {
|
|
727
|
+
(!(a.isUndefined(w) || w === null) && s.call(
|
|
728
|
+
e,
|
|
729
|
+
w,
|
|
730
|
+
a.isString(S) ? S.trim() : S,
|
|
731
|
+
y,
|
|
732
|
+
b
|
|
733
|
+
)) === !0 && g(w, y ? y.concat(S) : [S]);
|
|
734
|
+
}), d.pop();
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
if (!a.isObject(t))
|
|
738
|
+
throw new TypeError("data must be an object");
|
|
739
|
+
return g(t), e;
|
|
740
|
+
}
|
|
741
|
+
function Ee(t) {
|
|
742
|
+
const e = {
|
|
743
|
+
"!": "%21",
|
|
744
|
+
"'": "%27",
|
|
745
|
+
"(": "%28",
|
|
746
|
+
")": "%29",
|
|
747
|
+
"~": "%7E",
|
|
748
|
+
"%20": "+",
|
|
749
|
+
"%00": "\0"
|
|
750
|
+
};
|
|
751
|
+
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
752
|
+
return e[r];
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
function fe(t, e) {
|
|
756
|
+
this._pairs = [], t && X(t, this, e);
|
|
757
|
+
}
|
|
758
|
+
const ze = fe.prototype;
|
|
759
|
+
ze.append = function(e, n) {
|
|
760
|
+
this._pairs.push([e, n]);
|
|
761
|
+
};
|
|
762
|
+
ze.toString = function(e) {
|
|
763
|
+
const n = e ? function(r) {
|
|
764
|
+
return e.call(this, r, Ee);
|
|
765
|
+
} : Ee;
|
|
766
|
+
return this._pairs.map(function(s) {
|
|
767
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
768
|
+
}, "").join("&");
|
|
769
|
+
};
|
|
770
|
+
function Xt(t) {
|
|
771
|
+
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
772
|
+
}
|
|
773
|
+
function Ge(t, e, n) {
|
|
774
|
+
if (!e)
|
|
775
|
+
return t;
|
|
776
|
+
const r = n && n.encode || Xt, s = n && n.serialize;
|
|
777
|
+
let o;
|
|
778
|
+
if (s ? o = s(e, n) : o = a.isURLSearchParams(e) ? e.toString() : new fe(e, n).toString(r), o) {
|
|
779
|
+
const i = t.indexOf("#");
|
|
780
|
+
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
781
|
+
}
|
|
782
|
+
return t;
|
|
783
|
+
}
|
|
784
|
+
class Re {
|
|
785
|
+
constructor() {
|
|
786
|
+
this.handlers = [];
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Add a new interceptor to the stack
|
|
790
|
+
*
|
|
791
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
792
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
793
|
+
*
|
|
794
|
+
* @return {Number} An ID used to remove interceptor later
|
|
795
|
+
*/
|
|
796
|
+
use(e, n, r) {
|
|
797
|
+
return this.handlers.push({
|
|
798
|
+
fulfilled: e,
|
|
799
|
+
rejected: n,
|
|
800
|
+
synchronous: r ? r.synchronous : !1,
|
|
801
|
+
runWhen: r ? r.runWhen : null
|
|
802
|
+
}), this.handlers.length - 1;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Remove an interceptor from the stack
|
|
806
|
+
*
|
|
807
|
+
* @param {Number} id The ID that was returned by `use`
|
|
808
|
+
*
|
|
809
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
810
|
+
*/
|
|
811
|
+
eject(e) {
|
|
812
|
+
this.handlers[e] && (this.handlers[e] = null);
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Clear all interceptors from the stack
|
|
816
|
+
*
|
|
817
|
+
* @returns {void}
|
|
818
|
+
*/
|
|
819
|
+
clear() {
|
|
820
|
+
this.handlers && (this.handlers = []);
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Iterate over all the registered interceptors
|
|
824
|
+
*
|
|
825
|
+
* This method is particularly useful for skipping over any
|
|
826
|
+
* interceptors that may have become `null` calling `eject`.
|
|
827
|
+
*
|
|
828
|
+
* @param {Function} fn The function to call for each interceptor
|
|
829
|
+
*
|
|
830
|
+
* @returns {void}
|
|
831
|
+
*/
|
|
832
|
+
forEach(e) {
|
|
833
|
+
a.forEach(this.handlers, function(r) {
|
|
834
|
+
r !== null && e(r);
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
const Je = {
|
|
839
|
+
silentJSONParsing: !0,
|
|
840
|
+
forcedJSONParsing: !0,
|
|
841
|
+
clarifyTimeoutError: !1
|
|
842
|
+
}, Qt = typeof URLSearchParams < "u" ? URLSearchParams : fe, Zt = typeof FormData < "u" ? FormData : null, Yt = typeof Blob < "u" ? Blob : null, en = {
|
|
843
|
+
isBrowser: !0,
|
|
844
|
+
classes: {
|
|
845
|
+
URLSearchParams: Qt,
|
|
846
|
+
FormData: Zt,
|
|
847
|
+
Blob: Yt
|
|
848
|
+
},
|
|
849
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
850
|
+
}, de = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, tn = de && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), nn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
851
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rn = de && window.location.href || "http://localhost", sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
852
|
+
__proto__: null,
|
|
853
|
+
hasBrowserEnv: de,
|
|
854
|
+
hasStandardBrowserEnv: tn,
|
|
855
|
+
hasStandardBrowserWebWorkerEnv: nn,
|
|
856
|
+
navigator: oe,
|
|
857
|
+
origin: rn
|
|
858
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
859
|
+
...sn,
|
|
860
|
+
...en
|
|
861
|
+
};
|
|
862
|
+
function on(t, e) {
|
|
863
|
+
return X(t, new O.classes.URLSearchParams(), Object.assign({
|
|
864
|
+
visitor: function(n, r, s, o) {
|
|
865
|
+
return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
866
|
+
}
|
|
867
|
+
}, e));
|
|
868
|
+
}
|
|
869
|
+
function an(t) {
|
|
870
|
+
return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
871
|
+
}
|
|
872
|
+
function cn(t) {
|
|
873
|
+
const e = {}, n = Object.keys(t);
|
|
874
|
+
let r;
|
|
875
|
+
const s = n.length;
|
|
876
|
+
let o;
|
|
877
|
+
for (r = 0; r < s; r++)
|
|
878
|
+
o = n[r], e[o] = t[o];
|
|
879
|
+
return e;
|
|
880
|
+
}
|
|
881
|
+
function Ve(t) {
|
|
882
|
+
function e(n, r, s, o) {
|
|
883
|
+
let i = n[o++];
|
|
884
|
+
if (i === "__proto__") return !0;
|
|
885
|
+
const c = Number.isFinite(+i), f = o >= n.length;
|
|
886
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = cn(s[i])), !c);
|
|
887
|
+
}
|
|
888
|
+
if (a.isFormData(t) && a.isFunction(t.entries)) {
|
|
889
|
+
const n = {};
|
|
890
|
+
return a.forEachEntry(t, (r, s) => {
|
|
891
|
+
e(an(r), s, n, 0);
|
|
892
|
+
}), n;
|
|
893
|
+
}
|
|
894
|
+
return null;
|
|
895
|
+
}
|
|
896
|
+
function un(t, e, n) {
|
|
897
|
+
if (a.isString(t))
|
|
898
|
+
try {
|
|
899
|
+
return (e || JSON.parse)(t), a.trim(t);
|
|
900
|
+
} catch (r) {
|
|
901
|
+
if (r.name !== "SyntaxError")
|
|
902
|
+
throw r;
|
|
903
|
+
}
|
|
904
|
+
return (0, JSON.stringify)(t);
|
|
905
|
+
}
|
|
906
|
+
const M = {
|
|
907
|
+
transitional: Je,
|
|
908
|
+
adapter: ["xhr", "http", "fetch"],
|
|
909
|
+
transformRequest: [function(e, n) {
|
|
910
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(e);
|
|
911
|
+
if (o && a.isHTMLForm(e) && (e = new FormData(e)), a.isFormData(e))
|
|
912
|
+
return s ? JSON.stringify(Ve(e)) : e;
|
|
913
|
+
if (a.isArrayBuffer(e) || a.isBuffer(e) || a.isStream(e) || a.isFile(e) || a.isBlob(e) || a.isReadableStream(e))
|
|
914
|
+
return e;
|
|
915
|
+
if (a.isArrayBufferView(e))
|
|
916
|
+
return e.buffer;
|
|
917
|
+
if (a.isURLSearchParams(e))
|
|
918
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
919
|
+
let c;
|
|
920
|
+
if (o) {
|
|
921
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
922
|
+
return on(e, this.formSerializer).toString();
|
|
923
|
+
if ((c = a.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
924
|
+
const f = this.env && this.env.FormData;
|
|
925
|
+
return X(
|
|
926
|
+
c ? { "files[]": e } : e,
|
|
927
|
+
f && new f(),
|
|
928
|
+
this.formSerializer
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
return o || s ? (n.setContentType("application/json", !1), un(e)) : e;
|
|
933
|
+
}],
|
|
934
|
+
transformResponse: [function(e) {
|
|
935
|
+
const n = this.transitional || M.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
936
|
+
if (a.isResponse(e) || a.isReadableStream(e))
|
|
937
|
+
return e;
|
|
938
|
+
if (e && a.isString(e) && (r && !this.responseType || s)) {
|
|
939
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
940
|
+
try {
|
|
941
|
+
return JSON.parse(e);
|
|
942
|
+
} catch (c) {
|
|
943
|
+
if (i)
|
|
944
|
+
throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
return e;
|
|
948
|
+
}],
|
|
949
|
+
/**
|
|
950
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
951
|
+
* timeout is not created.
|
|
952
|
+
*/
|
|
953
|
+
timeout: 0,
|
|
954
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
955
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
956
|
+
maxContentLength: -1,
|
|
957
|
+
maxBodyLength: -1,
|
|
958
|
+
env: {
|
|
959
|
+
FormData: O.classes.FormData,
|
|
960
|
+
Blob: O.classes.Blob
|
|
961
|
+
},
|
|
962
|
+
validateStatus: function(e) {
|
|
963
|
+
return e >= 200 && e < 300;
|
|
964
|
+
},
|
|
965
|
+
headers: {
|
|
966
|
+
common: {
|
|
967
|
+
Accept: "application/json, text/plain, */*",
|
|
968
|
+
"Content-Type": void 0
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
};
|
|
972
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
973
|
+
M.headers[t] = {};
|
|
974
|
+
});
|
|
975
|
+
const ln = a.toObjectSet([
|
|
976
|
+
"age",
|
|
977
|
+
"authorization",
|
|
978
|
+
"content-length",
|
|
979
|
+
"content-type",
|
|
980
|
+
"etag",
|
|
981
|
+
"expires",
|
|
982
|
+
"from",
|
|
983
|
+
"host",
|
|
984
|
+
"if-modified-since",
|
|
985
|
+
"if-unmodified-since",
|
|
986
|
+
"last-modified",
|
|
987
|
+
"location",
|
|
988
|
+
"max-forwards",
|
|
989
|
+
"proxy-authorization",
|
|
990
|
+
"referer",
|
|
991
|
+
"retry-after",
|
|
992
|
+
"user-agent"
|
|
993
|
+
]), fn = (t) => {
|
|
994
|
+
const e = {};
|
|
995
|
+
let n, r, s;
|
|
996
|
+
return t && t.split(`
|
|
997
|
+
`).forEach(function(i) {
|
|
998
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || e[n] && ln[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
999
|
+
}), e;
|
|
1000
|
+
}, Ce = Symbol("internals");
|
|
1001
|
+
function j(t) {
|
|
1002
|
+
return t && String(t).trim().toLowerCase();
|
|
1003
|
+
}
|
|
1004
|
+
function G(t) {
|
|
1005
|
+
return t === !1 || t == null ? t : a.isArray(t) ? t.map(G) : String(t);
|
|
1006
|
+
}
|
|
1007
|
+
function dn(t) {
|
|
1008
|
+
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1009
|
+
let r;
|
|
1010
|
+
for (; r = n.exec(t); )
|
|
1011
|
+
e[r[1]] = r[2];
|
|
1012
|
+
return e;
|
|
1013
|
+
}
|
|
1014
|
+
const pn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
1015
|
+
function ee(t, e, n, r, s) {
|
|
1016
|
+
if (a.isFunction(r))
|
|
1017
|
+
return r.call(this, e, n);
|
|
1018
|
+
if (s && (e = n), !!a.isString(e)) {
|
|
1019
|
+
if (a.isString(r))
|
|
1020
|
+
return e.indexOf(r) !== -1;
|
|
1021
|
+
if (a.isRegExp(r))
|
|
1022
|
+
return r.test(e);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
function hn(t) {
|
|
1026
|
+
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
1027
|
+
}
|
|
1028
|
+
function mn(t, e) {
|
|
1029
|
+
const n = a.toCamelCase(" " + e);
|
|
1030
|
+
["get", "set", "has"].forEach((r) => {
|
|
1031
|
+
Object.defineProperty(t, r + n, {
|
|
1032
|
+
value: function(s, o, i) {
|
|
1033
|
+
return this[r].call(this, e, s, o, i);
|
|
1034
|
+
},
|
|
1035
|
+
configurable: !0
|
|
1036
|
+
});
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
class T {
|
|
1040
|
+
constructor(e) {
|
|
1041
|
+
e && this.set(e);
|
|
1042
|
+
}
|
|
1043
|
+
set(e, n, r) {
|
|
1044
|
+
const s = this;
|
|
1045
|
+
function o(c, f, u) {
|
|
1046
|
+
const l = j(f);
|
|
1047
|
+
if (!l)
|
|
1048
|
+
throw new Error("header name must be a non-empty string");
|
|
1049
|
+
const d = a.findKey(s, l);
|
|
1050
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = G(c));
|
|
1051
|
+
}
|
|
1052
|
+
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
1053
|
+
if (a.isPlainObject(e) || e instanceof this.constructor)
|
|
1054
|
+
i(e, n);
|
|
1055
|
+
else if (a.isString(e) && (e = e.trim()) && !pn(e))
|
|
1056
|
+
i(fn(e), n);
|
|
1057
|
+
else if (a.isHeaders(e))
|
|
1058
|
+
for (const [c, f] of e.entries())
|
|
1059
|
+
o(f, c, r);
|
|
1060
|
+
else
|
|
1061
|
+
e != null && o(n, e, r);
|
|
1062
|
+
return this;
|
|
1063
|
+
}
|
|
1064
|
+
get(e, n) {
|
|
1065
|
+
if (e = j(e), e) {
|
|
1066
|
+
const r = a.findKey(this, e);
|
|
1067
|
+
if (r) {
|
|
1068
|
+
const s = this[r];
|
|
1069
|
+
if (!n)
|
|
1070
|
+
return s;
|
|
1071
|
+
if (n === !0)
|
|
1072
|
+
return dn(s);
|
|
1073
|
+
if (a.isFunction(n))
|
|
1074
|
+
return n.call(this, s, r);
|
|
1075
|
+
if (a.isRegExp(n))
|
|
1076
|
+
return n.exec(s);
|
|
1077
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
has(e, n) {
|
|
1082
|
+
if (e = j(e), e) {
|
|
1083
|
+
const r = a.findKey(this, e);
|
|
1084
|
+
return !!(r && this[r] !== void 0 && (!n || ee(this, this[r], r, n)));
|
|
1085
|
+
}
|
|
1086
|
+
return !1;
|
|
1087
|
+
}
|
|
1088
|
+
delete(e, n) {
|
|
1089
|
+
const r = this;
|
|
1090
|
+
let s = !1;
|
|
1091
|
+
function o(i) {
|
|
1092
|
+
if (i = j(i), i) {
|
|
1093
|
+
const c = a.findKey(r, i);
|
|
1094
|
+
c && (!n || ee(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
return a.isArray(e) ? e.forEach(o) : o(e), s;
|
|
1098
|
+
}
|
|
1099
|
+
clear(e) {
|
|
1100
|
+
const n = Object.keys(this);
|
|
1101
|
+
let r = n.length, s = !1;
|
|
1102
|
+
for (; r--; ) {
|
|
1103
|
+
const o = n[r];
|
|
1104
|
+
(!e || ee(this, this[o], o, e, !0)) && (delete this[o], s = !0);
|
|
1105
|
+
}
|
|
1106
|
+
return s;
|
|
1107
|
+
}
|
|
1108
|
+
normalize(e) {
|
|
1109
|
+
const n = this, r = {};
|
|
1110
|
+
return a.forEach(this, (s, o) => {
|
|
1111
|
+
const i = a.findKey(r, o);
|
|
1112
|
+
if (i) {
|
|
1113
|
+
n[i] = G(s), delete n[o];
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1116
|
+
const c = e ? hn(o) : String(o).trim();
|
|
1117
|
+
c !== o && delete n[o], n[c] = G(s), r[c] = !0;
|
|
1118
|
+
}), this;
|
|
1119
|
+
}
|
|
1120
|
+
concat(...e) {
|
|
1121
|
+
return this.constructor.concat(this, ...e);
|
|
1122
|
+
}
|
|
1123
|
+
toJSON(e) {
|
|
1124
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
1125
|
+
return a.forEach(this, (r, s) => {
|
|
1126
|
+
r != null && r !== !1 && (n[s] = e && a.isArray(r) ? r.join(", ") : r);
|
|
1127
|
+
}), n;
|
|
1128
|
+
}
|
|
1129
|
+
[Symbol.iterator]() {
|
|
1130
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1131
|
+
}
|
|
1132
|
+
toString() {
|
|
1133
|
+
return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
|
|
1134
|
+
`);
|
|
1135
|
+
}
|
|
1136
|
+
get [Symbol.toStringTag]() {
|
|
1137
|
+
return "AxiosHeaders";
|
|
1138
|
+
}
|
|
1139
|
+
static from(e) {
|
|
1140
|
+
return e instanceof this ? e : new this(e);
|
|
1141
|
+
}
|
|
1142
|
+
static concat(e, ...n) {
|
|
1143
|
+
const r = new this(e);
|
|
1144
|
+
return n.forEach((s) => r.set(s)), r;
|
|
1145
|
+
}
|
|
1146
|
+
static accessor(e) {
|
|
1147
|
+
const r = (this[Ce] = this[Ce] = {
|
|
1148
|
+
accessors: {}
|
|
1149
|
+
}).accessors, s = this.prototype;
|
|
1150
|
+
function o(i) {
|
|
1151
|
+
const c = j(i);
|
|
1152
|
+
r[c] || (mn(s, i), r[c] = !0);
|
|
1153
|
+
}
|
|
1154
|
+
return a.isArray(e) ? e.forEach(o) : o(e), this;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
T.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1158
|
+
a.reduceDescriptors(T.prototype, ({ value: t }, e) => {
|
|
1159
|
+
let n = e[0].toUpperCase() + e.slice(1);
|
|
1160
|
+
return {
|
|
1161
|
+
get: () => t,
|
|
1162
|
+
set(r) {
|
|
1163
|
+
this[n] = r;
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
});
|
|
1167
|
+
a.freezeMethods(T);
|
|
1168
|
+
function te(t, e) {
|
|
1169
|
+
const n = this || M, r = e || n, s = T.from(r.headers);
|
|
1170
|
+
let o = r.data;
|
|
1171
|
+
return a.forEach(t, function(c) {
|
|
1172
|
+
o = c.call(n, o, s.normalize(), e ? e.status : void 0);
|
|
1173
|
+
}), s.normalize(), o;
|
|
1174
|
+
}
|
|
1175
|
+
function We(t) {
|
|
1176
|
+
return !!(t && t.__CANCEL__);
|
|
1177
|
+
}
|
|
1178
|
+
function k(t, e, n) {
|
|
1179
|
+
m.call(this, t ?? "canceled", m.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
1180
|
+
}
|
|
1181
|
+
a.inherits(k, m, {
|
|
1182
|
+
__CANCEL__: !0
|
|
1183
|
+
});
|
|
1184
|
+
function $e(t, e, n) {
|
|
1185
|
+
const r = n.config.validateStatus;
|
|
1186
|
+
!n.status || !r || r(n.status) ? t(n) : e(new m(
|
|
1187
|
+
"Request failed with status code " + n.status,
|
|
1188
|
+
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
1189
|
+
n.config,
|
|
1190
|
+
n.request,
|
|
1191
|
+
n
|
|
1192
|
+
));
|
|
1193
|
+
}
|
|
1194
|
+
function yn(t) {
|
|
1195
|
+
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
1196
|
+
return e && e[1] || "";
|
|
1197
|
+
}
|
|
1198
|
+
function bn(t, e) {
|
|
1199
|
+
t = t || 10;
|
|
1200
|
+
const n = new Array(t), r = new Array(t);
|
|
1201
|
+
let s = 0, o = 0, i;
|
|
1202
|
+
return e = e !== void 0 ? e : 1e3, function(f) {
|
|
1203
|
+
const u = Date.now(), l = r[o];
|
|
1204
|
+
i || (i = u), n[s] = f, r[s] = u;
|
|
1205
|
+
let d = o, b = 0;
|
|
1206
|
+
for (; d !== s; )
|
|
1207
|
+
b += n[d++], d = d % t;
|
|
1208
|
+
if (s = (s + 1) % t, s === o && (o = (o + 1) % t), u - i < e)
|
|
1209
|
+
return;
|
|
1210
|
+
const g = l && u - l;
|
|
1211
|
+
return g ? Math.round(b * 1e3 / g) : void 0;
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
function wn(t, e) {
|
|
1215
|
+
let n = 0, r = 1e3 / e, s, o;
|
|
1216
|
+
const i = (u, l = Date.now()) => {
|
|
1217
|
+
n = l, s = null, o && (clearTimeout(o), o = null), t.apply(null, u);
|
|
1218
|
+
};
|
|
1219
|
+
return [(...u) => {
|
|
1220
|
+
const l = Date.now(), d = l - n;
|
|
1221
|
+
d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
1222
|
+
o = null, i(s);
|
|
1223
|
+
}, r - d)));
|
|
1224
|
+
}, () => s && i(s)];
|
|
1225
|
+
}
|
|
1226
|
+
const J = (t, e, n = 3) => {
|
|
1227
|
+
let r = 0;
|
|
1228
|
+
const s = bn(50, 250);
|
|
1229
|
+
return wn((o) => {
|
|
1230
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
|
|
1231
|
+
r = i;
|
|
1232
|
+
const d = {
|
|
1233
|
+
loaded: i,
|
|
1234
|
+
total: c,
|
|
1235
|
+
progress: c ? i / c : void 0,
|
|
1236
|
+
bytes: f,
|
|
1237
|
+
rate: u || void 0,
|
|
1238
|
+
estimated: u && c && l ? (c - i) / u : void 0,
|
|
1239
|
+
event: o,
|
|
1240
|
+
lengthComputable: c != null,
|
|
1241
|
+
[e ? "download" : "upload"]: !0
|
|
1242
|
+
};
|
|
1243
|
+
t(d);
|
|
1244
|
+
}, n);
|
|
1245
|
+
}, Oe = (t, e) => {
|
|
1246
|
+
const n = t != null;
|
|
1247
|
+
return [(r) => e[0]({
|
|
1248
|
+
lengthComputable: n,
|
|
1249
|
+
total: t,
|
|
1250
|
+
loaded: r
|
|
1251
|
+
}), e[1]];
|
|
1252
|
+
}, Te = (t) => (...e) => a.asap(() => t(...e)), gn = O.hasStandardBrowserEnv ? (
|
|
1253
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
1254
|
+
// whether the request URL is of the same origin as current location.
|
|
1255
|
+
function() {
|
|
1256
|
+
const e = O.navigator && /(msie|trident)/i.test(O.navigator.userAgent), n = document.createElement("a");
|
|
1257
|
+
let r;
|
|
1258
|
+
function s(o) {
|
|
1259
|
+
let i = o;
|
|
1260
|
+
return e && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
1261
|
+
href: n.href,
|
|
1262
|
+
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
1263
|
+
host: n.host,
|
|
1264
|
+
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
1265
|
+
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
1266
|
+
hostname: n.hostname,
|
|
1267
|
+
port: n.port,
|
|
1268
|
+
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
return r = s(window.location.href), function(i) {
|
|
1272
|
+
const c = a.isString(i) ? s(i) : i;
|
|
1273
|
+
return c.protocol === r.protocol && c.host === r.host;
|
|
1274
|
+
};
|
|
1275
|
+
}()
|
|
1276
|
+
) : (
|
|
1277
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
1278
|
+
/* @__PURE__ */ function() {
|
|
1279
|
+
return function() {
|
|
1280
|
+
return !0;
|
|
1281
|
+
};
|
|
1282
|
+
}()
|
|
1283
|
+
), Sn = O.hasStandardBrowserEnv ? (
|
|
1284
|
+
// Standard browser envs support document.cookie
|
|
1285
|
+
{
|
|
1286
|
+
write(t, e, n, r, s, o) {
|
|
1287
|
+
const i = [t + "=" + encodeURIComponent(e)];
|
|
1288
|
+
a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
1289
|
+
},
|
|
1290
|
+
read(t) {
|
|
1291
|
+
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
1292
|
+
return e ? decodeURIComponent(e[3]) : null;
|
|
1293
|
+
},
|
|
1294
|
+
remove(t) {
|
|
1295
|
+
this.write(t, "", Date.now() - 864e5);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
) : (
|
|
1299
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1300
|
+
{
|
|
1301
|
+
write() {
|
|
1302
|
+
},
|
|
1303
|
+
read() {
|
|
1304
|
+
return null;
|
|
1305
|
+
},
|
|
1306
|
+
remove() {
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
);
|
|
1310
|
+
function En(t) {
|
|
1311
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
1312
|
+
}
|
|
1313
|
+
function Rn(t, e) {
|
|
1314
|
+
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
1315
|
+
}
|
|
1316
|
+
function Ke(t, e) {
|
|
1317
|
+
return t && !En(e) ? Rn(t, e) : e;
|
|
1318
|
+
}
|
|
1319
|
+
const Ae = (t) => t instanceof T ? { ...t } : t;
|
|
1320
|
+
function U(t, e) {
|
|
1321
|
+
e = e || {};
|
|
1322
|
+
const n = {};
|
|
1323
|
+
function r(u, l, d) {
|
|
1324
|
+
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: d }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
1325
|
+
}
|
|
1326
|
+
function s(u, l, d) {
|
|
1327
|
+
if (a.isUndefined(l)) {
|
|
1328
|
+
if (!a.isUndefined(u))
|
|
1329
|
+
return r(void 0, u, d);
|
|
1330
|
+
} else return r(u, l, d);
|
|
1331
|
+
}
|
|
1332
|
+
function o(u, l) {
|
|
1333
|
+
if (!a.isUndefined(l))
|
|
1334
|
+
return r(void 0, l);
|
|
1335
|
+
}
|
|
1336
|
+
function i(u, l) {
|
|
1337
|
+
if (a.isUndefined(l)) {
|
|
1338
|
+
if (!a.isUndefined(u))
|
|
1339
|
+
return r(void 0, u);
|
|
1340
|
+
} else return r(void 0, l);
|
|
1341
|
+
}
|
|
1342
|
+
function c(u, l, d) {
|
|
1343
|
+
if (d in e)
|
|
1344
|
+
return r(u, l);
|
|
1345
|
+
if (d in t)
|
|
1346
|
+
return r(void 0, u);
|
|
1347
|
+
}
|
|
1348
|
+
const f = {
|
|
1349
|
+
url: o,
|
|
1350
|
+
method: o,
|
|
1351
|
+
data: o,
|
|
1352
|
+
baseURL: i,
|
|
1353
|
+
transformRequest: i,
|
|
1354
|
+
transformResponse: i,
|
|
1355
|
+
paramsSerializer: i,
|
|
1356
|
+
timeout: i,
|
|
1357
|
+
timeoutMessage: i,
|
|
1358
|
+
withCredentials: i,
|
|
1359
|
+
withXSRFToken: i,
|
|
1360
|
+
adapter: i,
|
|
1361
|
+
responseType: i,
|
|
1362
|
+
xsrfCookieName: i,
|
|
1363
|
+
xsrfHeaderName: i,
|
|
1364
|
+
onUploadProgress: i,
|
|
1365
|
+
onDownloadProgress: i,
|
|
1366
|
+
decompress: i,
|
|
1367
|
+
maxContentLength: i,
|
|
1368
|
+
maxBodyLength: i,
|
|
1369
|
+
beforeRedirect: i,
|
|
1370
|
+
transport: i,
|
|
1371
|
+
httpAgent: i,
|
|
1372
|
+
httpsAgent: i,
|
|
1373
|
+
cancelToken: i,
|
|
1374
|
+
socketPath: i,
|
|
1375
|
+
responseEncoding: i,
|
|
1376
|
+
validateStatus: c,
|
|
1377
|
+
headers: (u, l) => s(Ae(u), Ae(l), !0)
|
|
1378
|
+
};
|
|
1379
|
+
return a.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
|
1380
|
+
const d = f[l] || s, b = d(t[l], e[l], l);
|
|
1381
|
+
a.isUndefined(b) && d !== c || (n[l] = b);
|
|
1382
|
+
}), n;
|
|
1383
|
+
}
|
|
1384
|
+
const Xe = (t) => {
|
|
1385
|
+
const e = U({}, t);
|
|
1386
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = e;
|
|
1387
|
+
e.headers = i = T.from(i), e.url = Ge(Ke(e.baseURL, e.url), t.params, t.paramsSerializer), c && i.set(
|
|
1388
|
+
"Authorization",
|
|
1389
|
+
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1390
|
+
);
|
|
1391
|
+
let f;
|
|
1392
|
+
if (a.isFormData(n)) {
|
|
1393
|
+
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1394
|
+
i.setContentType(void 0);
|
|
1395
|
+
else if ((f = i.getContentType()) !== !1) {
|
|
1396
|
+
const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1397
|
+
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(e)), r || r !== !1 && gn(e.url))) {
|
|
1401
|
+
const u = s && o && Sn.read(o);
|
|
1402
|
+
u && i.set(s, u);
|
|
1403
|
+
}
|
|
1404
|
+
return e;
|
|
1405
|
+
}, Cn = typeof XMLHttpRequest < "u", On = Cn && function(t) {
|
|
1406
|
+
return new Promise(function(n, r) {
|
|
1407
|
+
const s = Xe(t);
|
|
1408
|
+
let o = s.data;
|
|
1409
|
+
const i = T.from(s.headers).normalize();
|
|
1410
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, b, g, p;
|
|
1411
|
+
function y() {
|
|
1412
|
+
g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1413
|
+
}
|
|
1414
|
+
let h = new XMLHttpRequest();
|
|
1415
|
+
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1416
|
+
function w() {
|
|
1417
|
+
if (!h)
|
|
1418
|
+
return;
|
|
1419
|
+
const R = T.from(
|
|
1420
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1421
|
+
), C = {
|
|
1422
|
+
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1423
|
+
status: h.status,
|
|
1424
|
+
statusText: h.statusText,
|
|
1425
|
+
headers: R,
|
|
1426
|
+
config: t,
|
|
1427
|
+
request: h
|
|
1428
|
+
};
|
|
1429
|
+
$e(function(F) {
|
|
1430
|
+
n(F), y();
|
|
1431
|
+
}, function(F) {
|
|
1432
|
+
r(F), y();
|
|
1433
|
+
}, C), h = null;
|
|
1434
|
+
}
|
|
1435
|
+
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
1436
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1437
|
+
}, h.onabort = function() {
|
|
1438
|
+
h && (r(new m("Request aborted", m.ECONNABORTED, t, h)), h = null);
|
|
1439
|
+
}, h.onerror = function() {
|
|
1440
|
+
r(new m("Network Error", m.ERR_NETWORK, t, h)), h = null;
|
|
1441
|
+
}, h.ontimeout = function() {
|
|
1442
|
+
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1443
|
+
const C = s.transitional || Je;
|
|
1444
|
+
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
|
|
1445
|
+
P,
|
|
1446
|
+
C.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1447
|
+
t,
|
|
1448
|
+
h
|
|
1449
|
+
)), h = null;
|
|
1450
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, C) {
|
|
1451
|
+
h.setRequestHeader(C, P);
|
|
1452
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([b, p] = J(u, !0), h.addEventListener("progress", b)), f && h.upload && ([d, g] = J(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (R) => {
|
|
1453
|
+
h && (r(!R || R.type ? new k(null, t, h) : R), h.abort(), h = null);
|
|
1454
|
+
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1455
|
+
const S = yn(s.url);
|
|
1456
|
+
if (S && O.protocols.indexOf(S) === -1) {
|
|
1457
|
+
r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, t));
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
h.send(o || null);
|
|
1461
|
+
});
|
|
1462
|
+
}, Tn = (t, e) => {
|
|
1463
|
+
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1464
|
+
if (e || n) {
|
|
1465
|
+
let r = new AbortController(), s;
|
|
1466
|
+
const o = function(u) {
|
|
1467
|
+
if (!s) {
|
|
1468
|
+
s = !0, c();
|
|
1469
|
+
const l = u instanceof Error ? u : this.reason;
|
|
1470
|
+
r.abort(l instanceof m ? l : new k(l instanceof Error ? l.message : l));
|
|
1471
|
+
}
|
|
1472
|
+
};
|
|
1473
|
+
let i = e && setTimeout(() => {
|
|
1474
|
+
i = null, o(new m(`timeout ${e} of ms exceeded`, m.ETIMEDOUT));
|
|
1475
|
+
}, e);
|
|
1476
|
+
const c = () => {
|
|
1477
|
+
t && (i && clearTimeout(i), i = null, t.forEach((u) => {
|
|
1478
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
1479
|
+
}), t = null);
|
|
1480
|
+
};
|
|
1481
|
+
t.forEach((u) => u.addEventListener("abort", o));
|
|
1482
|
+
const { signal: f } = r;
|
|
1483
|
+
return f.unsubscribe = () => a.asap(c), f;
|
|
1484
|
+
}
|
|
1485
|
+
}, An = function* (t, e) {
|
|
1486
|
+
let n = t.byteLength;
|
|
1487
|
+
if (n < e) {
|
|
1488
|
+
yield t;
|
|
1489
|
+
return;
|
|
1490
|
+
}
|
|
1491
|
+
let r = 0, s;
|
|
1492
|
+
for (; r < n; )
|
|
1493
|
+
s = r + e, yield t.slice(r, s), r = s;
|
|
1494
|
+
}, xn = async function* (t, e) {
|
|
1495
|
+
for await (const n of Nn(t))
|
|
1496
|
+
yield* An(n, e);
|
|
1497
|
+
}, Nn = async function* (t) {
|
|
1498
|
+
if (t[Symbol.asyncIterator]) {
|
|
1499
|
+
yield* t;
|
|
1500
|
+
return;
|
|
1501
|
+
}
|
|
1502
|
+
const e = t.getReader();
|
|
1503
|
+
try {
|
|
1504
|
+
for (; ; ) {
|
|
1505
|
+
const { done: n, value: r } = await e.read();
|
|
1506
|
+
if (n)
|
|
1507
|
+
break;
|
|
1508
|
+
yield r;
|
|
1509
|
+
}
|
|
1510
|
+
} finally {
|
|
1511
|
+
await e.cancel();
|
|
1512
|
+
}
|
|
1513
|
+
}, xe = (t, e, n, r) => {
|
|
1514
|
+
const s = xn(t, e);
|
|
1515
|
+
let o = 0, i, c = (f) => {
|
|
1516
|
+
i || (i = !0, r && r(f));
|
|
1517
|
+
};
|
|
1518
|
+
return new ReadableStream({
|
|
1519
|
+
async pull(f) {
|
|
1520
|
+
try {
|
|
1521
|
+
const { done: u, value: l } = await s.next();
|
|
1522
|
+
if (u) {
|
|
1523
|
+
c(), f.close();
|
|
1524
|
+
return;
|
|
1525
|
+
}
|
|
1526
|
+
let d = l.byteLength;
|
|
1527
|
+
if (n) {
|
|
1528
|
+
let b = o += d;
|
|
1529
|
+
n(b);
|
|
1530
|
+
}
|
|
1531
|
+
f.enqueue(new Uint8Array(l));
|
|
1532
|
+
} catch (u) {
|
|
1533
|
+
throw c(u), u;
|
|
1534
|
+
}
|
|
1535
|
+
},
|
|
1536
|
+
cancel(f) {
|
|
1537
|
+
return c(f), s.return();
|
|
1538
|
+
}
|
|
1539
|
+
}, {
|
|
1540
|
+
highWaterMark: 2
|
|
1541
|
+
});
|
|
1542
|
+
}, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = Q && typeof ReadableStream == "function", Pn = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Ze = (t, ...e) => {
|
|
1543
|
+
try {
|
|
1544
|
+
return !!t(...e);
|
|
1545
|
+
} catch {
|
|
1546
|
+
return !1;
|
|
1547
|
+
}
|
|
1548
|
+
}, _n = Qe && Ze(() => {
|
|
1549
|
+
let t = !1;
|
|
1550
|
+
const e = new Request(O.origin, {
|
|
1551
|
+
body: new ReadableStream(),
|
|
1552
|
+
method: "POST",
|
|
1553
|
+
get duplex() {
|
|
1554
|
+
return t = !0, "half";
|
|
1555
|
+
}
|
|
1556
|
+
}).headers.has("Content-Type");
|
|
1557
|
+
return t && !e;
|
|
1558
|
+
}), Ne = 64 * 1024, ie = Qe && Ze(() => a.isReadableStream(new Response("").body)), V = {
|
|
1559
|
+
stream: ie && ((t) => t.body)
|
|
1560
|
+
};
|
|
1561
|
+
Q && ((t) => {
|
|
1562
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1563
|
+
!V[e] && (V[e] = a.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1564
|
+
throw new m(`Response type '${e}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1565
|
+
});
|
|
1566
|
+
});
|
|
1567
|
+
})(new Response());
|
|
1568
|
+
const Bn = async (t) => {
|
|
1569
|
+
if (t == null)
|
|
1570
|
+
return 0;
|
|
1571
|
+
if (a.isBlob(t))
|
|
1572
|
+
return t.size;
|
|
1573
|
+
if (a.isSpecCompliantForm(t))
|
|
1574
|
+
return (await new Request(O.origin, {
|
|
1575
|
+
method: "POST",
|
|
1576
|
+
body: t
|
|
1577
|
+
}).arrayBuffer()).byteLength;
|
|
1578
|
+
if (a.isArrayBufferView(t) || a.isArrayBuffer(t))
|
|
1579
|
+
return t.byteLength;
|
|
1580
|
+
if (a.isURLSearchParams(t) && (t = t + ""), a.isString(t))
|
|
1581
|
+
return (await Pn(t)).byteLength;
|
|
1582
|
+
}, Fn = async (t, e) => {
|
|
1583
|
+
const n = a.toFiniteNumber(t.getContentLength());
|
|
1584
|
+
return n ?? Bn(e);
|
|
1585
|
+
}, Dn = Q && (async (t) => {
|
|
1586
|
+
let {
|
|
1587
|
+
url: e,
|
|
1588
|
+
method: n,
|
|
1589
|
+
data: r,
|
|
1590
|
+
signal: s,
|
|
1591
|
+
cancelToken: o,
|
|
1592
|
+
timeout: i,
|
|
1593
|
+
onDownloadProgress: c,
|
|
1594
|
+
onUploadProgress: f,
|
|
1595
|
+
responseType: u,
|
|
1596
|
+
headers: l,
|
|
1597
|
+
withCredentials: d = "same-origin",
|
|
1598
|
+
fetchOptions: b
|
|
1599
|
+
} = Xe(t);
|
|
1600
|
+
u = u ? (u + "").toLowerCase() : "text";
|
|
1601
|
+
let g = Tn([s, o && o.toAbortSignal()], i), p;
|
|
1602
|
+
const y = g && g.unsubscribe && (() => {
|
|
1603
|
+
g.unsubscribe();
|
|
1604
|
+
});
|
|
1605
|
+
let h;
|
|
1606
|
+
try {
|
|
1607
|
+
if (f && _n && n !== "get" && n !== "head" && (h = await Fn(l, r)) !== 0) {
|
|
1608
|
+
let C = new Request(e, {
|
|
1609
|
+
method: "POST",
|
|
1610
|
+
body: r,
|
|
1611
|
+
duplex: "half"
|
|
1612
|
+
}), _;
|
|
1613
|
+
if (a.isFormData(r) && (_ = C.headers.get("content-type")) && l.setContentType(_), C.body) {
|
|
1614
|
+
const [F, H] = Oe(
|
|
1615
|
+
h,
|
|
1616
|
+
J(Te(f))
|
|
1617
|
+
);
|
|
1618
|
+
r = xe(C.body, Ne, F, H);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
a.isString(d) || (d = d ? "include" : "omit");
|
|
1622
|
+
const w = "credentials" in Request.prototype;
|
|
1623
|
+
p = new Request(e, {
|
|
1624
|
+
...b,
|
|
1625
|
+
signal: g,
|
|
1626
|
+
method: n.toUpperCase(),
|
|
1627
|
+
headers: l.normalize().toJSON(),
|
|
1628
|
+
body: r,
|
|
1629
|
+
duplex: "half",
|
|
1630
|
+
credentials: w ? d : void 0
|
|
1631
|
+
});
|
|
1632
|
+
let S = await fetch(p);
|
|
1633
|
+
const R = ie && (u === "stream" || u === "response");
|
|
1634
|
+
if (ie && (c || R && y)) {
|
|
1635
|
+
const C = {};
|
|
1636
|
+
["status", "statusText", "headers"].forEach((me) => {
|
|
1637
|
+
C[me] = S[me];
|
|
1638
|
+
});
|
|
1639
|
+
const _ = a.toFiniteNumber(S.headers.get("content-length")), [F, H] = c && Oe(
|
|
1640
|
+
_,
|
|
1641
|
+
J(Te(c), !0)
|
|
1642
|
+
) || [];
|
|
1643
|
+
S = new Response(
|
|
1644
|
+
xe(S.body, Ne, F, () => {
|
|
1645
|
+
H && H(), y && y();
|
|
1646
|
+
}),
|
|
1647
|
+
C
|
|
1648
|
+
);
|
|
1649
|
+
}
|
|
1650
|
+
u = u || "text";
|
|
1651
|
+
let P = await V[a.findKey(V, u) || "text"](S, t);
|
|
1652
|
+
return !R && y && y(), await new Promise((C, _) => {
|
|
1653
|
+
$e(C, _, {
|
|
1654
|
+
data: P,
|
|
1655
|
+
headers: T.from(S.headers),
|
|
1656
|
+
status: S.status,
|
|
1657
|
+
statusText: S.statusText,
|
|
1658
|
+
config: t,
|
|
1659
|
+
request: p
|
|
1660
|
+
});
|
|
1661
|
+
});
|
|
1662
|
+
} catch (w) {
|
|
1663
|
+
throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1664
|
+
new m("Network Error", m.ERR_NETWORK, t, p),
|
|
1665
|
+
{
|
|
1666
|
+
cause: w.cause || w
|
|
1667
|
+
}
|
|
1668
|
+
) : m.from(w, w && w.code, t, p);
|
|
1669
|
+
}
|
|
1670
|
+
}), ae = {
|
|
1671
|
+
http: Wt,
|
|
1672
|
+
xhr: On,
|
|
1673
|
+
fetch: Dn
|
|
1674
|
+
};
|
|
1675
|
+
a.forEach(ae, (t, e) => {
|
|
1676
|
+
if (t) {
|
|
1677
|
+
try {
|
|
1678
|
+
Object.defineProperty(t, "name", { value: e });
|
|
1679
|
+
} catch {
|
|
1680
|
+
}
|
|
1681
|
+
Object.defineProperty(t, "adapterName", { value: e });
|
|
1682
|
+
}
|
|
1683
|
+
});
|
|
1684
|
+
const Pe = (t) => `- ${t}`, Ln = (t) => a.isFunction(t) || t === null || t === !1, Ye = {
|
|
1685
|
+
getAdapter: (t) => {
|
|
1686
|
+
t = a.isArray(t) ? t : [t];
|
|
1687
|
+
const { length: e } = t;
|
|
1688
|
+
let n, r;
|
|
1689
|
+
const s = {};
|
|
1690
|
+
for (let o = 0; o < e; o++) {
|
|
1691
|
+
n = t[o];
|
|
1692
|
+
let i;
|
|
1693
|
+
if (r = n, !Ln(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
|
|
1694
|
+
throw new m(`Unknown adapter '${i}'`);
|
|
1695
|
+
if (r)
|
|
1696
|
+
break;
|
|
1697
|
+
s[i || "#" + o] = r;
|
|
1698
|
+
}
|
|
1699
|
+
if (!r) {
|
|
1700
|
+
const o = Object.entries(s).map(
|
|
1701
|
+
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1702
|
+
);
|
|
1703
|
+
let i = e ? o.length > 1 ? `since :
|
|
1704
|
+
` + o.map(Pe).join(`
|
|
1705
|
+
`) : " " + Pe(o[0]) : "as no adapter specified";
|
|
1706
|
+
throw new m(
|
|
1707
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1708
|
+
"ERR_NOT_SUPPORT"
|
|
1709
|
+
);
|
|
1710
|
+
}
|
|
1711
|
+
return r;
|
|
1712
|
+
},
|
|
1713
|
+
adapters: ae
|
|
1714
|
+
};
|
|
1715
|
+
function ne(t) {
|
|
1716
|
+
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1717
|
+
throw new k(null, t);
|
|
1718
|
+
}
|
|
1719
|
+
function _e(t) {
|
|
1720
|
+
return ne(t), t.headers = T.from(t.headers), t.data = te.call(
|
|
1721
|
+
t,
|
|
1722
|
+
t.transformRequest
|
|
1723
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ye.getAdapter(t.adapter || M.adapter)(t).then(function(r) {
|
|
1724
|
+
return ne(t), r.data = te.call(
|
|
1725
|
+
t,
|
|
1726
|
+
t.transformResponse,
|
|
1727
|
+
r
|
|
1728
|
+
), r.headers = T.from(r.headers), r;
|
|
1729
|
+
}, function(r) {
|
|
1730
|
+
return We(r) || (ne(t), r && r.response && (r.response.data = te.call(
|
|
1731
|
+
t,
|
|
1732
|
+
t.transformResponse,
|
|
1733
|
+
r.response
|
|
1734
|
+
), r.response.headers = T.from(r.response.headers))), Promise.reject(r);
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
const et = "1.7.7", pe = {};
|
|
1738
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1739
|
+
pe[t] = function(r) {
|
|
1740
|
+
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1741
|
+
};
|
|
1742
|
+
});
|
|
1743
|
+
const Be = {};
|
|
1744
|
+
pe.transitional = function(e, n, r) {
|
|
1745
|
+
function s(o, i) {
|
|
1746
|
+
return "[Axios v" + et + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1747
|
+
}
|
|
1748
|
+
return (o, i, c) => {
|
|
1749
|
+
if (e === !1)
|
|
1750
|
+
throw new m(
|
|
1751
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1752
|
+
m.ERR_DEPRECATED
|
|
1753
|
+
);
|
|
1754
|
+
return n && !Be[i] && (Be[i] = !0, console.warn(
|
|
1755
|
+
s(
|
|
1756
|
+
i,
|
|
1757
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1758
|
+
)
|
|
1759
|
+
)), e ? e(o, i, c) : !0;
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1762
|
+
function Un(t, e, n) {
|
|
1763
|
+
if (typeof t != "object")
|
|
1764
|
+
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1765
|
+
const r = Object.keys(t);
|
|
1766
|
+
let s = r.length;
|
|
1767
|
+
for (; s-- > 0; ) {
|
|
1768
|
+
const o = r[s], i = e[o];
|
|
1769
|
+
if (i) {
|
|
1770
|
+
const c = t[o], f = c === void 0 || i(c, o, t);
|
|
1771
|
+
if (f !== !0)
|
|
1772
|
+
throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
|
|
1773
|
+
continue;
|
|
1774
|
+
}
|
|
1775
|
+
if (n !== !0)
|
|
1776
|
+
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
const ce = {
|
|
1780
|
+
assertOptions: Un,
|
|
1781
|
+
validators: pe
|
|
1782
|
+
}, B = ce.validators;
|
|
1783
|
+
class L {
|
|
1784
|
+
constructor(e) {
|
|
1785
|
+
this.defaults = e, this.interceptors = {
|
|
1786
|
+
request: new Re(),
|
|
1787
|
+
response: new Re()
|
|
1788
|
+
};
|
|
1789
|
+
}
|
|
1790
|
+
/**
|
|
1791
|
+
* Dispatch a request
|
|
1792
|
+
*
|
|
1793
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1794
|
+
* @param {?Object} config
|
|
1795
|
+
*
|
|
1796
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1797
|
+
*/
|
|
1798
|
+
async request(e, n) {
|
|
1799
|
+
try {
|
|
1800
|
+
return await this._request(e, n);
|
|
1801
|
+
} catch (r) {
|
|
1802
|
+
if (r instanceof Error) {
|
|
1803
|
+
let s;
|
|
1804
|
+
Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
|
|
1805
|
+
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1806
|
+
try {
|
|
1807
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1808
|
+
` + o) : r.stack = o;
|
|
1809
|
+
} catch {
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
throw r;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
_request(e, n) {
|
|
1816
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = U(this.defaults, n);
|
|
1817
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1818
|
+
r !== void 0 && ce.assertOptions(r, {
|
|
1819
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1820
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1821
|
+
clarifyTimeoutError: B.transitional(B.boolean)
|
|
1822
|
+
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1823
|
+
serialize: s
|
|
1824
|
+
} : ce.assertOptions(s, {
|
|
1825
|
+
encode: B.function,
|
|
1826
|
+
serialize: B.function
|
|
1827
|
+
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1828
|
+
let i = o && a.merge(
|
|
1829
|
+
o.common,
|
|
1830
|
+
o[n.method]
|
|
1831
|
+
);
|
|
1832
|
+
o && a.forEach(
|
|
1833
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1834
|
+
(p) => {
|
|
1835
|
+
delete o[p];
|
|
1836
|
+
}
|
|
1837
|
+
), n.headers = T.concat(i, o);
|
|
1838
|
+
const c = [];
|
|
1839
|
+
let f = !0;
|
|
1840
|
+
this.interceptors.request.forEach(function(y) {
|
|
1841
|
+
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
|
|
1842
|
+
});
|
|
1843
|
+
const u = [];
|
|
1844
|
+
this.interceptors.response.forEach(function(y) {
|
|
1845
|
+
u.push(y.fulfilled, y.rejected);
|
|
1846
|
+
});
|
|
1847
|
+
let l, d = 0, b;
|
|
1848
|
+
if (!f) {
|
|
1849
|
+
const p = [_e.bind(this), void 0];
|
|
1850
|
+
for (p.unshift.apply(p, c), p.push.apply(p, u), b = p.length, l = Promise.resolve(n); d < b; )
|
|
1851
|
+
l = l.then(p[d++], p[d++]);
|
|
1852
|
+
return l;
|
|
1853
|
+
}
|
|
1854
|
+
b = c.length;
|
|
1855
|
+
let g = n;
|
|
1856
|
+
for (d = 0; d < b; ) {
|
|
1857
|
+
const p = c[d++], y = c[d++];
|
|
1858
|
+
try {
|
|
1859
|
+
g = p(g);
|
|
1860
|
+
} catch (h) {
|
|
1861
|
+
y.call(this, h);
|
|
1862
|
+
break;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
try {
|
|
1866
|
+
l = _e.call(this, g);
|
|
1867
|
+
} catch (p) {
|
|
1868
|
+
return Promise.reject(p);
|
|
1869
|
+
}
|
|
1870
|
+
for (d = 0, b = u.length; d < b; )
|
|
1871
|
+
l = l.then(u[d++], u[d++]);
|
|
1872
|
+
return l;
|
|
1873
|
+
}
|
|
1874
|
+
getUri(e) {
|
|
1875
|
+
e = U(this.defaults, e);
|
|
1876
|
+
const n = Ke(e.baseURL, e.url);
|
|
1877
|
+
return Ge(n, e.params, e.paramsSerializer);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
a.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1881
|
+
L.prototype[e] = function(n, r) {
|
|
1882
|
+
return this.request(U(r || {}, {
|
|
1883
|
+
method: e,
|
|
1884
|
+
url: n,
|
|
1885
|
+
data: (r || {}).data
|
|
1886
|
+
}));
|
|
1887
|
+
};
|
|
1888
|
+
});
|
|
1889
|
+
a.forEach(["post", "put", "patch"], function(e) {
|
|
1890
|
+
function n(r) {
|
|
1891
|
+
return function(o, i, c) {
|
|
1892
|
+
return this.request(U(c || {}, {
|
|
1893
|
+
method: e,
|
|
1894
|
+
headers: r ? {
|
|
1895
|
+
"Content-Type": "multipart/form-data"
|
|
1896
|
+
} : {},
|
|
1897
|
+
url: o,
|
|
1898
|
+
data: i
|
|
1899
|
+
}));
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
L.prototype[e] = n(), L.prototype[e + "Form"] = n(!0);
|
|
1903
|
+
});
|
|
1904
|
+
class he {
|
|
1905
|
+
constructor(e) {
|
|
1906
|
+
if (typeof e != "function")
|
|
1907
|
+
throw new TypeError("executor must be a function.");
|
|
1908
|
+
let n;
|
|
1909
|
+
this.promise = new Promise(function(o) {
|
|
1910
|
+
n = o;
|
|
1911
|
+
});
|
|
1912
|
+
const r = this;
|
|
1913
|
+
this.promise.then((s) => {
|
|
1914
|
+
if (!r._listeners) return;
|
|
1915
|
+
let o = r._listeners.length;
|
|
1916
|
+
for (; o-- > 0; )
|
|
1917
|
+
r._listeners[o](s);
|
|
1918
|
+
r._listeners = null;
|
|
1919
|
+
}), this.promise.then = (s) => {
|
|
1920
|
+
let o;
|
|
1921
|
+
const i = new Promise((c) => {
|
|
1922
|
+
r.subscribe(c), o = c;
|
|
1923
|
+
}).then(s);
|
|
1924
|
+
return i.cancel = function() {
|
|
1925
|
+
r.unsubscribe(o);
|
|
1926
|
+
}, i;
|
|
1927
|
+
}, e(function(o, i, c) {
|
|
1928
|
+
r.reason || (r.reason = new k(o, i, c), n(r.reason));
|
|
1929
|
+
});
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1933
|
+
*/
|
|
1934
|
+
throwIfRequested() {
|
|
1935
|
+
if (this.reason)
|
|
1936
|
+
throw this.reason;
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* Subscribe to the cancel signal
|
|
1940
|
+
*/
|
|
1941
|
+
subscribe(e) {
|
|
1942
|
+
if (this.reason) {
|
|
1943
|
+
e(this.reason);
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
1947
|
+
}
|
|
1948
|
+
/**
|
|
1949
|
+
* Unsubscribe from the cancel signal
|
|
1950
|
+
*/
|
|
1951
|
+
unsubscribe(e) {
|
|
1952
|
+
if (!this._listeners)
|
|
1953
|
+
return;
|
|
1954
|
+
const n = this._listeners.indexOf(e);
|
|
1955
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1956
|
+
}
|
|
1957
|
+
toAbortSignal() {
|
|
1958
|
+
const e = new AbortController(), n = (r) => {
|
|
1959
|
+
e.abort(r);
|
|
1960
|
+
};
|
|
1961
|
+
return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1965
|
+
* cancels the `CancelToken`.
|
|
1966
|
+
*/
|
|
1967
|
+
static source() {
|
|
1968
|
+
let e;
|
|
1969
|
+
return {
|
|
1970
|
+
token: new he(function(s) {
|
|
1971
|
+
e = s;
|
|
1972
|
+
}),
|
|
1973
|
+
cancel: e
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
function vn(t) {
|
|
1978
|
+
return function(n) {
|
|
1979
|
+
return t.apply(null, n);
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
function kn(t) {
|
|
1983
|
+
return a.isObject(t) && t.isAxiosError === !0;
|
|
1984
|
+
}
|
|
1985
|
+
const ue = {
|
|
1986
|
+
Continue: 100,
|
|
1987
|
+
SwitchingProtocols: 101,
|
|
1988
|
+
Processing: 102,
|
|
1989
|
+
EarlyHints: 103,
|
|
1990
|
+
Ok: 200,
|
|
1991
|
+
Created: 201,
|
|
1992
|
+
Accepted: 202,
|
|
1993
|
+
NonAuthoritativeInformation: 203,
|
|
1994
|
+
NoContent: 204,
|
|
1995
|
+
ResetContent: 205,
|
|
1996
|
+
PartialContent: 206,
|
|
1997
|
+
MultiStatus: 207,
|
|
1998
|
+
AlreadyReported: 208,
|
|
1999
|
+
ImUsed: 226,
|
|
2000
|
+
MultipleChoices: 300,
|
|
2001
|
+
MovedPermanently: 301,
|
|
2002
|
+
Found: 302,
|
|
2003
|
+
SeeOther: 303,
|
|
2004
|
+
NotModified: 304,
|
|
2005
|
+
UseProxy: 305,
|
|
2006
|
+
Unused: 306,
|
|
2007
|
+
TemporaryRedirect: 307,
|
|
2008
|
+
PermanentRedirect: 308,
|
|
2009
|
+
BadRequest: 400,
|
|
2010
|
+
Unauthorized: 401,
|
|
2011
|
+
PaymentRequired: 402,
|
|
2012
|
+
Forbidden: 403,
|
|
2013
|
+
NotFound: 404,
|
|
2014
|
+
MethodNotAllowed: 405,
|
|
2015
|
+
NotAcceptable: 406,
|
|
2016
|
+
ProxyAuthenticationRequired: 407,
|
|
2017
|
+
RequestTimeout: 408,
|
|
2018
|
+
Conflict: 409,
|
|
2019
|
+
Gone: 410,
|
|
2020
|
+
LengthRequired: 411,
|
|
2021
|
+
PreconditionFailed: 412,
|
|
2022
|
+
PayloadTooLarge: 413,
|
|
2023
|
+
UriTooLong: 414,
|
|
2024
|
+
UnsupportedMediaType: 415,
|
|
2025
|
+
RangeNotSatisfiable: 416,
|
|
2026
|
+
ExpectationFailed: 417,
|
|
2027
|
+
ImATeapot: 418,
|
|
2028
|
+
MisdirectedRequest: 421,
|
|
2029
|
+
UnprocessableEntity: 422,
|
|
2030
|
+
Locked: 423,
|
|
2031
|
+
FailedDependency: 424,
|
|
2032
|
+
TooEarly: 425,
|
|
2033
|
+
UpgradeRequired: 426,
|
|
2034
|
+
PreconditionRequired: 428,
|
|
2035
|
+
TooManyRequests: 429,
|
|
2036
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
2037
|
+
UnavailableForLegalReasons: 451,
|
|
2038
|
+
InternalServerError: 500,
|
|
2039
|
+
NotImplemented: 501,
|
|
2040
|
+
BadGateway: 502,
|
|
2041
|
+
ServiceUnavailable: 503,
|
|
2042
|
+
GatewayTimeout: 504,
|
|
2043
|
+
HttpVersionNotSupported: 505,
|
|
2044
|
+
VariantAlsoNegotiates: 506,
|
|
2045
|
+
InsufficientStorage: 507,
|
|
2046
|
+
LoopDetected: 508,
|
|
2047
|
+
NotExtended: 510,
|
|
2048
|
+
NetworkAuthenticationRequired: 511
|
|
2049
|
+
};
|
|
2050
|
+
Object.entries(ue).forEach(([t, e]) => {
|
|
2051
|
+
ue[e] = t;
|
|
2052
|
+
});
|
|
2053
|
+
function tt(t) {
|
|
2054
|
+
const e = new L(t), n = Fe(L.prototype.request, e);
|
|
2055
|
+
return a.extend(n, L.prototype, e, { allOwnKeys: !0 }), a.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2056
|
+
return tt(U(t, s));
|
|
2057
|
+
}, n;
|
|
2058
|
+
}
|
|
2059
|
+
const E = tt(M);
|
|
2060
|
+
E.Axios = L;
|
|
2061
|
+
E.CanceledError = k;
|
|
2062
|
+
E.CancelToken = he;
|
|
2063
|
+
E.isCancel = We;
|
|
2064
|
+
E.VERSION = et;
|
|
2065
|
+
E.toFormData = X;
|
|
2066
|
+
E.AxiosError = m;
|
|
2067
|
+
E.Cancel = E.CanceledError;
|
|
2068
|
+
E.all = function(e) {
|
|
2069
|
+
return Promise.all(e);
|
|
2070
|
+
};
|
|
2071
|
+
E.spread = vn;
|
|
2072
|
+
E.isAxiosError = kn;
|
|
2073
|
+
E.mergeConfig = U;
|
|
2074
|
+
E.AxiosHeaders = T;
|
|
2075
|
+
E.formToJSON = (t) => Ve(a.isHTMLForm(t) ? new FormData(t) : t);
|
|
2076
|
+
E.getAdapter = Ye.getAdapter;
|
|
2077
|
+
E.HttpStatusCode = ue;
|
|
2078
|
+
E.default = E;
|
|
2079
|
+
export {
|
|
2080
|
+
it as E,
|
|
2081
|
+
at as P,
|
|
2082
|
+
E as a,
|
|
2083
|
+
Z as l,
|
|
2084
|
+
qn as p
|
|
2085
|
+
};
|