dld-vue-ui 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dld-vue-ui.js +1655 -17
- package/dist/dld-vue-ui.umd.cjs +3 -1
- package/dist/env.d.ts +9 -0
- package/dist/packages/component/SplitPanes/index.d.ts +3 -0
- package/dist/packages/component/SplitPanes/index.vue.d.ts +44 -0
- package/dist/packages/component/SplitPanes/pane.vue.d.ts +23 -0
- package/dist/packages/index.d.ts +4 -1
- package/dist/packages/method/DvAxios.d.ts +29 -0
- package/dist/style.css +1 -0
- package/dist/vite-env.d.ts +2 -0
- package/package.json +12 -5
package/dist/dld-vue-ui.js
CHANGED
|
@@ -1,29 +1,1667 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as q, openBlock as v, createElementBlock as Z, toDisplayString as Ee, h as $e, normalizeStyle as G, renderSlot as ee, createBlock as xe, unref as we, withCtx as Pe } from "vue";
|
|
2
|
+
const Ie = /* @__PURE__ */ q({
|
|
3
3
|
__name: "index",
|
|
4
4
|
props: {
|
|
5
|
-
name: { default: "\u9ED8\u8BA4\u6309\u94AE" }
|
|
5
|
+
name: { type: String, required: !1, default: "\u9ED8\u8BA4\u6309\u94AE" }
|
|
6
6
|
},
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
return (
|
|
7
|
+
setup(e) {
|
|
8
|
+
const t = e;
|
|
9
|
+
return (n, s) => (v(), Z("button", null, Ee(t.name), 1));
|
|
10
10
|
}
|
|
11
|
-
}),
|
|
11
|
+
}), $ = (e, t) => {
|
|
12
|
+
const n = e.__vccOpts || e;
|
|
13
|
+
for (const [s, r] of t)
|
|
14
|
+
n[s] = r;
|
|
15
|
+
return n;
|
|
16
|
+
}, He = /* @__PURE__ */ $(Ie, [["__file", "D:/vscode/electron/dld-vue-ui/src/packages/component/Button/index.vue"]]), Je = /* @__PURE__ */ q({
|
|
12
17
|
__name: "index",
|
|
13
18
|
props: {
|
|
14
|
-
title: { default: "\u9ED8\u8BA4\u5B57\u6BB5" }
|
|
19
|
+
title: { type: String, required: !1, default: "\u9ED8\u8BA4\u5B57\u6BB5" }
|
|
15
20
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
return (
|
|
21
|
+
setup(e) {
|
|
22
|
+
const t = e;
|
|
23
|
+
return (n, s) => (v(), Z("p", null, Ee(t.title), 1));
|
|
19
24
|
}
|
|
20
|
-
}),
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
}), Ve = /* @__PURE__ */ $(Je, [["__file", "D:/vscode/electron/dld-vue-ui/src/packages/component/P/index.vue"]]);
|
|
26
|
+
function be(e, t) {
|
|
27
|
+
return function() {
|
|
28
|
+
return e.apply(t, arguments);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const { toString: ze } = Object.prototype, { getPrototypeOf: te } = Object, ne = ((e) => (t) => {
|
|
32
|
+
const n = ze.call(t);
|
|
33
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
34
|
+
})(/* @__PURE__ */ Object.create(null)), z = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), I = (e) => (t) => typeof t === e, { isArray: _ } = Array, C = I("undefined");
|
|
35
|
+
function Ke(e) {
|
|
36
|
+
return e !== null && !C(e) && e.constructor !== null && !C(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
37
|
+
}
|
|
38
|
+
const Oe = z("ArrayBuffer");
|
|
39
|
+
function We(e) {
|
|
40
|
+
let t;
|
|
41
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Oe(e.buffer), t;
|
|
42
|
+
}
|
|
43
|
+
const Xe = I("string"), R = I("function"), Re = I("number"), se = (e) => e !== null && typeof e == "object", Qe = (e) => e === !0 || e === !1, k = (e) => {
|
|
44
|
+
if (ne(e) !== "object")
|
|
45
|
+
return !1;
|
|
46
|
+
const t = te(e);
|
|
47
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
48
|
+
}, Ye = z("Date"), Ze = z("File"), Ge = z("Blob"), et = z("FileList"), tt = (e) => se(e) && R(e.pipe), nt = (e) => {
|
|
49
|
+
const t = "[object FormData]";
|
|
50
|
+
return e && (typeof FormData == "function" && e instanceof FormData || ze.call(e) === t || R(e.toString) && e.toString() === t);
|
|
51
|
+
}, st = z("URLSearchParams"), rt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
52
|
+
function D(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
53
|
+
if (e === null || typeof e > "u")
|
|
54
|
+
return;
|
|
55
|
+
let s, r;
|
|
56
|
+
if (typeof e != "object" && (e = [e]), _(e))
|
|
57
|
+
for (s = 0, r = e.length; s < r; s++)
|
|
58
|
+
t.call(null, e[s], s, e);
|
|
59
|
+
else {
|
|
60
|
+
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
61
|
+
let c;
|
|
62
|
+
for (s = 0; s < o; s++)
|
|
63
|
+
c = i[s], t.call(null, e[c], c, e);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function ge(e, t) {
|
|
67
|
+
t = t.toLowerCase();
|
|
68
|
+
const n = Object.keys(e);
|
|
69
|
+
let s = n.length, r;
|
|
70
|
+
for (; s-- > 0; )
|
|
71
|
+
if (r = n[s], t === r.toLowerCase())
|
|
72
|
+
return r;
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
const _e = typeof self > "u" ? typeof global > "u" ? globalThis : global : self, Ae = (e) => !C(e) && e !== _e;
|
|
76
|
+
function X() {
|
|
77
|
+
const { caseless: e } = Ae(this) && this || {}, t = {}, n = (s, r) => {
|
|
78
|
+
const i = e && ge(t, r) || r;
|
|
79
|
+
k(t[i]) && k(s) ? t[i] = X(t[i], s) : k(s) ? t[i] = X({}, s) : _(s) ? t[i] = s.slice() : t[i] = s;
|
|
80
|
+
};
|
|
81
|
+
for (let s = 0, r = arguments.length; s < r; s++)
|
|
82
|
+
arguments[s] && D(arguments[s], n);
|
|
83
|
+
return t;
|
|
84
|
+
}
|
|
85
|
+
const it = (e, t, n, { allOwnKeys: s } = {}) => (D(t, (r, i) => {
|
|
86
|
+
n && R(r) ? e[i] = be(r, n) : e[i] = r;
|
|
87
|
+
}, { allOwnKeys: s }), e), ot = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), at = (e, t, n, s) => {
|
|
88
|
+
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
89
|
+
value: t.prototype
|
|
90
|
+
}), n && Object.assign(e.prototype, n);
|
|
91
|
+
}, ct = (e, t, n, s) => {
|
|
92
|
+
let r, i, o;
|
|
93
|
+
const c = {};
|
|
94
|
+
if (t = t || {}, e == null)
|
|
95
|
+
return t;
|
|
96
|
+
do {
|
|
97
|
+
for (r = Object.getOwnPropertyNames(e), i = r.length; i-- > 0; )
|
|
98
|
+
o = r[i], (!s || s(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
|
|
99
|
+
e = n !== !1 && te(e);
|
|
100
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
101
|
+
return t;
|
|
102
|
+
}, ut = (e, t, n) => {
|
|
103
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
104
|
+
const s = e.indexOf(t, n);
|
|
105
|
+
return s !== -1 && s === n;
|
|
106
|
+
}, lt = (e) => {
|
|
107
|
+
if (!e)
|
|
108
|
+
return null;
|
|
109
|
+
if (_(e))
|
|
110
|
+
return e;
|
|
111
|
+
let t = e.length;
|
|
112
|
+
if (!Re(t))
|
|
113
|
+
return null;
|
|
114
|
+
const n = new Array(t);
|
|
115
|
+
for (; t-- > 0; )
|
|
116
|
+
n[t] = e[t];
|
|
117
|
+
return n;
|
|
118
|
+
}, dt = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && te(Uint8Array)), ht = (e, t) => {
|
|
119
|
+
const s = (e && e[Symbol.iterator]).call(e);
|
|
120
|
+
let r;
|
|
121
|
+
for (; (r = s.next()) && !r.done; ) {
|
|
122
|
+
const i = r.value;
|
|
123
|
+
t.call(e, i[0], i[1]);
|
|
124
|
+
}
|
|
125
|
+
}, pt = (e, t) => {
|
|
126
|
+
let n;
|
|
127
|
+
const s = [];
|
|
128
|
+
for (; (n = e.exec(t)) !== null; )
|
|
129
|
+
s.push(n);
|
|
130
|
+
return s;
|
|
131
|
+
}, ft = z("HTMLFormElement"), mt = (e) => e.toLowerCase().replace(
|
|
132
|
+
/[_-\s]([a-z\d])(\w*)/g,
|
|
133
|
+
function(n, s, r) {
|
|
134
|
+
return s.toUpperCase() + r;
|
|
135
|
+
}
|
|
136
|
+
), ce = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), St = z("RegExp"), Ne = (e, t) => {
|
|
137
|
+
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
138
|
+
D(n, (r, i) => {
|
|
139
|
+
t(r, i, e) !== !1 && (s[i] = r);
|
|
140
|
+
}), Object.defineProperties(e, s);
|
|
141
|
+
}, yt = (e) => {
|
|
142
|
+
Ne(e, (t, n) => {
|
|
143
|
+
if (R(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
144
|
+
return !1;
|
|
145
|
+
const s = e[n];
|
|
146
|
+
if (!!R(s)) {
|
|
147
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
148
|
+
t.writable = !1;
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
t.set || (t.set = () => {
|
|
152
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}, Et = (e, t) => {
|
|
157
|
+
const n = {}, s = (r) => {
|
|
158
|
+
r.forEach((i) => {
|
|
159
|
+
n[i] = !0;
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
return _(e) ? s(e) : s(String(e).split(t)), n;
|
|
163
|
+
}, xt = () => {
|
|
164
|
+
}, wt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Pt = (e) => {
|
|
165
|
+
const t = new Array(10), n = (s, r) => {
|
|
166
|
+
if (se(s)) {
|
|
167
|
+
if (t.indexOf(s) >= 0)
|
|
168
|
+
return;
|
|
169
|
+
if (!("toJSON" in s)) {
|
|
170
|
+
t[r] = s;
|
|
171
|
+
const i = _(s) ? [] : {};
|
|
172
|
+
return D(s, (o, c) => {
|
|
173
|
+
const l = n(o, r + 1);
|
|
174
|
+
!C(l) && (i[c] = l);
|
|
175
|
+
}), t[r] = void 0, i;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return s;
|
|
179
|
+
};
|
|
180
|
+
return n(e, 0);
|
|
181
|
+
}, a = {
|
|
182
|
+
isArray: _,
|
|
183
|
+
isArrayBuffer: Oe,
|
|
184
|
+
isBuffer: Ke,
|
|
185
|
+
isFormData: nt,
|
|
186
|
+
isArrayBufferView: We,
|
|
187
|
+
isString: Xe,
|
|
188
|
+
isNumber: Re,
|
|
189
|
+
isBoolean: Qe,
|
|
190
|
+
isObject: se,
|
|
191
|
+
isPlainObject: k,
|
|
192
|
+
isUndefined: C,
|
|
193
|
+
isDate: Ye,
|
|
194
|
+
isFile: Ze,
|
|
195
|
+
isBlob: Ge,
|
|
196
|
+
isRegExp: St,
|
|
197
|
+
isFunction: R,
|
|
198
|
+
isStream: tt,
|
|
199
|
+
isURLSearchParams: st,
|
|
200
|
+
isTypedArray: dt,
|
|
201
|
+
isFileList: et,
|
|
202
|
+
forEach: D,
|
|
203
|
+
merge: X,
|
|
204
|
+
extend: it,
|
|
205
|
+
trim: rt,
|
|
206
|
+
stripBOM: ot,
|
|
207
|
+
inherits: at,
|
|
208
|
+
toFlatObject: ct,
|
|
209
|
+
kindOf: ne,
|
|
210
|
+
kindOfTest: z,
|
|
211
|
+
endsWith: ut,
|
|
212
|
+
toArray: lt,
|
|
213
|
+
forEachEntry: ht,
|
|
214
|
+
matchAll: pt,
|
|
215
|
+
isHTMLForm: ft,
|
|
216
|
+
hasOwnProperty: ce,
|
|
217
|
+
hasOwnProp: ce,
|
|
218
|
+
reduceDescriptors: Ne,
|
|
219
|
+
freezeMethods: yt,
|
|
220
|
+
toObjectSet: Et,
|
|
221
|
+
toCamelCase: mt,
|
|
222
|
+
noop: xt,
|
|
223
|
+
toFiniteNumber: wt,
|
|
224
|
+
findKey: ge,
|
|
225
|
+
global: _e,
|
|
226
|
+
isContextDefined: Ae,
|
|
227
|
+
toJSONObject: Pt
|
|
228
|
+
};
|
|
229
|
+
function m(e, t, n, s, r) {
|
|
230
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), s && (this.request = s), r && (this.response = r);
|
|
231
|
+
}
|
|
232
|
+
a.inherits(m, Error, {
|
|
233
|
+
toJSON: function() {
|
|
234
|
+
return {
|
|
235
|
+
message: this.message,
|
|
236
|
+
name: this.name,
|
|
237
|
+
description: this.description,
|
|
238
|
+
number: this.number,
|
|
239
|
+
fileName: this.fileName,
|
|
240
|
+
lineNumber: this.lineNumber,
|
|
241
|
+
columnNumber: this.columnNumber,
|
|
242
|
+
stack: this.stack,
|
|
243
|
+
config: a.toJSONObject(this.config),
|
|
244
|
+
code: this.code,
|
|
245
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
const Ce = m.prototype, Te = {};
|
|
250
|
+
[
|
|
251
|
+
"ERR_BAD_OPTION_VALUE",
|
|
252
|
+
"ERR_BAD_OPTION",
|
|
253
|
+
"ECONNABORTED",
|
|
254
|
+
"ETIMEDOUT",
|
|
255
|
+
"ERR_NETWORK",
|
|
256
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
257
|
+
"ERR_DEPRECATED",
|
|
258
|
+
"ERR_BAD_RESPONSE",
|
|
259
|
+
"ERR_BAD_REQUEST",
|
|
260
|
+
"ERR_CANCELED",
|
|
261
|
+
"ERR_NOT_SUPPORT",
|
|
262
|
+
"ERR_INVALID_URL"
|
|
263
|
+
].forEach((e) => {
|
|
264
|
+
Te[e] = { value: e };
|
|
265
|
+
});
|
|
266
|
+
Object.defineProperties(m, Te);
|
|
267
|
+
Object.defineProperty(Ce, "isAxiosError", { value: !0 });
|
|
268
|
+
m.from = (e, t, n, s, r, i) => {
|
|
269
|
+
const o = Object.create(Ce);
|
|
270
|
+
return a.toFlatObject(e, o, function(l) {
|
|
271
|
+
return l !== Error.prototype;
|
|
272
|
+
}, (c) => c !== "isAxiosError"), m.call(o, e.message, t, n, s, r), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
|
|
273
|
+
};
|
|
274
|
+
var bt = typeof self == "object" ? self.FormData : window.FormData;
|
|
275
|
+
const zt = bt;
|
|
276
|
+
function Q(e) {
|
|
277
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
278
|
+
}
|
|
279
|
+
function ve(e) {
|
|
280
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
281
|
+
}
|
|
282
|
+
function ue(e, t, n) {
|
|
283
|
+
return e ? e.concat(t).map(function(r, i) {
|
|
284
|
+
return r = ve(r), !n && i ? "[" + r + "]" : r;
|
|
285
|
+
}).join(n ? "." : "") : t;
|
|
286
|
+
}
|
|
287
|
+
function Ot(e) {
|
|
288
|
+
return a.isArray(e) && !e.some(Q);
|
|
289
|
+
}
|
|
290
|
+
const Rt = a.toFlatObject(a, {}, null, function(t) {
|
|
291
|
+
return /^is[A-Z]/.test(t);
|
|
292
|
+
});
|
|
293
|
+
function gt(e) {
|
|
294
|
+
return e && a.isFunction(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator];
|
|
295
|
+
}
|
|
296
|
+
function H(e, t, n) {
|
|
297
|
+
if (!a.isObject(e))
|
|
298
|
+
throw new TypeError("target must be an object");
|
|
299
|
+
t = t || new (zt || FormData)(), n = a.toFlatObject(n, {
|
|
300
|
+
metaTokens: !0,
|
|
301
|
+
dots: !1,
|
|
302
|
+
indexes: !1
|
|
303
|
+
}, !1, function(f, w) {
|
|
304
|
+
return !a.isUndefined(w[f]);
|
|
305
|
+
});
|
|
306
|
+
const s = n.metaTokens, r = n.visitor || d, i = n.dots, o = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && gt(t);
|
|
307
|
+
if (!a.isFunction(r))
|
|
308
|
+
throw new TypeError("visitor must be a function");
|
|
309
|
+
function u(h) {
|
|
310
|
+
if (h === null)
|
|
311
|
+
return "";
|
|
312
|
+
if (a.isDate(h))
|
|
313
|
+
return h.toISOString();
|
|
314
|
+
if (!l && a.isBlob(h))
|
|
315
|
+
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
316
|
+
return a.isArrayBuffer(h) || a.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
317
|
+
}
|
|
318
|
+
function d(h, f, w) {
|
|
319
|
+
let x = h;
|
|
320
|
+
if (h && !w && typeof h == "object") {
|
|
321
|
+
if (a.endsWith(f, "{}"))
|
|
322
|
+
f = s ? f : f.slice(0, -2), h = JSON.stringify(h);
|
|
323
|
+
else if (a.isArray(h) && Ot(h) || a.isFileList(h) || a.endsWith(f, "[]") && (x = a.toArray(h)))
|
|
324
|
+
return f = ve(f), x.forEach(function(B, qe) {
|
|
325
|
+
!(a.isUndefined(B) || B === null) && t.append(
|
|
326
|
+
o === !0 ? ue([f], qe, i) : o === null ? f : f + "[]",
|
|
327
|
+
u(B)
|
|
328
|
+
);
|
|
329
|
+
}), !1;
|
|
330
|
+
}
|
|
331
|
+
return Q(h) ? !0 : (t.append(ue(w, f, i), u(h)), !1);
|
|
332
|
+
}
|
|
333
|
+
const p = [], y = Object.assign(Rt, {
|
|
334
|
+
defaultVisitor: d,
|
|
335
|
+
convertValue: u,
|
|
336
|
+
isVisitable: Q
|
|
337
|
+
});
|
|
338
|
+
function S(h, f) {
|
|
339
|
+
if (!a.isUndefined(h)) {
|
|
340
|
+
if (p.indexOf(h) !== -1)
|
|
341
|
+
throw Error("Circular reference detected in " + f.join("."));
|
|
342
|
+
p.push(h), a.forEach(h, function(x, g) {
|
|
343
|
+
(!(a.isUndefined(x) || x === null) && r.call(
|
|
344
|
+
t,
|
|
345
|
+
x,
|
|
346
|
+
a.isString(g) ? g.trim() : g,
|
|
347
|
+
f,
|
|
348
|
+
y
|
|
349
|
+
)) === !0 && S(x, f ? f.concat(g) : [g]);
|
|
350
|
+
}), p.pop();
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (!a.isObject(e))
|
|
354
|
+
throw new TypeError("data must be an object");
|
|
355
|
+
return S(e), t;
|
|
356
|
+
}
|
|
357
|
+
function le(e) {
|
|
358
|
+
const t = {
|
|
359
|
+
"!": "%21",
|
|
360
|
+
"'": "%27",
|
|
361
|
+
"(": "%28",
|
|
362
|
+
")": "%29",
|
|
363
|
+
"~": "%7E",
|
|
364
|
+
"%20": "+",
|
|
365
|
+
"%00": "\0"
|
|
366
|
+
};
|
|
367
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
|
|
368
|
+
return t[s];
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
function re(e, t) {
|
|
372
|
+
this._pairs = [], e && H(e, this, t);
|
|
373
|
+
}
|
|
374
|
+
const De = re.prototype;
|
|
375
|
+
De.append = function(t, n) {
|
|
376
|
+
this._pairs.push([t, n]);
|
|
377
|
+
};
|
|
378
|
+
De.toString = function(t) {
|
|
379
|
+
const n = t ? function(s) {
|
|
380
|
+
return t.call(this, s, le);
|
|
381
|
+
} : le;
|
|
382
|
+
return this._pairs.map(function(r) {
|
|
383
|
+
return n(r[0]) + "=" + n(r[1]);
|
|
384
|
+
}, "").join("&");
|
|
385
|
+
};
|
|
386
|
+
function _t(e) {
|
|
387
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
388
|
+
}
|
|
389
|
+
function Me(e, t, n) {
|
|
390
|
+
if (!t)
|
|
391
|
+
return e;
|
|
392
|
+
const s = n && n.encode || _t, r = n && n.serialize;
|
|
393
|
+
let i;
|
|
394
|
+
if (r ? i = r(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new re(t, n).toString(s), i) {
|
|
395
|
+
const o = e.indexOf("#");
|
|
396
|
+
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
397
|
+
}
|
|
398
|
+
return e;
|
|
399
|
+
}
|
|
400
|
+
class At {
|
|
401
|
+
constructor() {
|
|
402
|
+
this.handlers = [];
|
|
403
|
+
}
|
|
404
|
+
use(t, n, s) {
|
|
405
|
+
return this.handlers.push({
|
|
406
|
+
fulfilled: t,
|
|
407
|
+
rejected: n,
|
|
408
|
+
synchronous: s ? s.synchronous : !1,
|
|
409
|
+
runWhen: s ? s.runWhen : null
|
|
410
|
+
}), this.handlers.length - 1;
|
|
411
|
+
}
|
|
412
|
+
eject(t) {
|
|
413
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
414
|
+
}
|
|
415
|
+
clear() {
|
|
416
|
+
this.handlers && (this.handlers = []);
|
|
417
|
+
}
|
|
418
|
+
forEach(t) {
|
|
419
|
+
a.forEach(this.handlers, function(s) {
|
|
420
|
+
s !== null && t(s);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
const de = At, Be = {
|
|
425
|
+
silentJSONParsing: !0,
|
|
426
|
+
forcedJSONParsing: !0,
|
|
427
|
+
clarifyTimeoutError: !1
|
|
428
|
+
}, Nt = typeof URLSearchParams < "u" ? URLSearchParams : re, Ct = FormData, Tt = (() => {
|
|
429
|
+
let e;
|
|
430
|
+
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
431
|
+
})(), P = {
|
|
432
|
+
isBrowser: !0,
|
|
433
|
+
classes: {
|
|
434
|
+
URLSearchParams: Nt,
|
|
435
|
+
FormData: Ct,
|
|
436
|
+
Blob
|
|
437
|
+
},
|
|
438
|
+
isStandardBrowserEnv: Tt,
|
|
439
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
440
|
+
};
|
|
441
|
+
function vt(e, t) {
|
|
442
|
+
return H(e, new P.classes.URLSearchParams(), Object.assign({
|
|
443
|
+
visitor: function(n, s, r, i) {
|
|
444
|
+
return P.isNode && a.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
445
|
+
}
|
|
446
|
+
}, t));
|
|
447
|
+
}
|
|
448
|
+
function Dt(e) {
|
|
449
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
450
|
+
}
|
|
451
|
+
function Mt(e) {
|
|
452
|
+
const t = {}, n = Object.keys(e);
|
|
453
|
+
let s;
|
|
454
|
+
const r = n.length;
|
|
455
|
+
let i;
|
|
456
|
+
for (s = 0; s < r; s++)
|
|
457
|
+
i = n[s], t[i] = e[i];
|
|
458
|
+
return t;
|
|
459
|
+
}
|
|
460
|
+
function ke(e) {
|
|
461
|
+
function t(n, s, r, i) {
|
|
462
|
+
let o = n[i++];
|
|
463
|
+
const c = Number.isFinite(+o), l = i >= n.length;
|
|
464
|
+
return o = !o && a.isArray(r) ? r.length : o, l ? (a.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !c) : ((!r[o] || !a.isObject(r[o])) && (r[o] = []), t(n, s, r[o], i) && a.isArray(r[o]) && (r[o] = Mt(r[o])), !c);
|
|
465
|
+
}
|
|
466
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
467
|
+
const n = {};
|
|
468
|
+
return a.forEachEntry(e, (s, r) => {
|
|
469
|
+
t(Dt(s), r, n, 0);
|
|
470
|
+
}), n;
|
|
471
|
+
}
|
|
472
|
+
return null;
|
|
473
|
+
}
|
|
474
|
+
const Bt = {
|
|
475
|
+
"Content-Type": void 0
|
|
476
|
+
};
|
|
477
|
+
function kt(e, t, n) {
|
|
478
|
+
if (a.isString(e))
|
|
479
|
+
try {
|
|
480
|
+
return (t || JSON.parse)(e), a.trim(e);
|
|
481
|
+
} catch (s) {
|
|
482
|
+
if (s.name !== "SyntaxError")
|
|
483
|
+
throw s;
|
|
484
|
+
}
|
|
485
|
+
return (n || JSON.stringify)(e);
|
|
486
|
+
}
|
|
487
|
+
const J = {
|
|
488
|
+
transitional: Be,
|
|
489
|
+
adapter: ["xhr", "http"],
|
|
490
|
+
transformRequest: [function(t, n) {
|
|
491
|
+
const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, i = a.isObject(t);
|
|
492
|
+
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
493
|
+
return r && r ? JSON.stringify(ke(t)) : t;
|
|
494
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
495
|
+
return t;
|
|
496
|
+
if (a.isArrayBufferView(t))
|
|
497
|
+
return t.buffer;
|
|
498
|
+
if (a.isURLSearchParams(t))
|
|
499
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
500
|
+
let c;
|
|
501
|
+
if (i) {
|
|
502
|
+
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
503
|
+
return vt(t, this.formSerializer).toString();
|
|
504
|
+
if ((c = a.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
505
|
+
const l = this.env && this.env.FormData;
|
|
506
|
+
return H(
|
|
507
|
+
c ? { "files[]": t } : t,
|
|
508
|
+
l && new l(),
|
|
509
|
+
this.formSerializer
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return i || r ? (n.setContentType("application/json", !1), kt(t)) : t;
|
|
514
|
+
}],
|
|
515
|
+
transformResponse: [function(t) {
|
|
516
|
+
const n = this.transitional || J.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
517
|
+
if (t && a.isString(t) && (s && !this.responseType || r)) {
|
|
518
|
+
const o = !(n && n.silentJSONParsing) && r;
|
|
519
|
+
try {
|
|
520
|
+
return JSON.parse(t);
|
|
521
|
+
} catch (c) {
|
|
522
|
+
if (o)
|
|
523
|
+
throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
return t;
|
|
527
|
+
}],
|
|
528
|
+
timeout: 0,
|
|
529
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
530
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
531
|
+
maxContentLength: -1,
|
|
532
|
+
maxBodyLength: -1,
|
|
533
|
+
env: {
|
|
534
|
+
FormData: P.classes.FormData,
|
|
535
|
+
Blob: P.classes.Blob
|
|
536
|
+
},
|
|
537
|
+
validateStatus: function(t) {
|
|
538
|
+
return t >= 200 && t < 300;
|
|
539
|
+
},
|
|
540
|
+
headers: {
|
|
541
|
+
common: {
|
|
542
|
+
Accept: "application/json, text/plain, */*"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
a.forEach(["delete", "get", "head"], function(t) {
|
|
547
|
+
J.headers[t] = {};
|
|
548
|
+
});
|
|
549
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
550
|
+
J.headers[t] = a.merge(Bt);
|
|
551
|
+
});
|
|
552
|
+
const ie = J, Ft = a.toObjectSet([
|
|
553
|
+
"age",
|
|
554
|
+
"authorization",
|
|
555
|
+
"content-length",
|
|
556
|
+
"content-type",
|
|
557
|
+
"etag",
|
|
558
|
+
"expires",
|
|
559
|
+
"from",
|
|
560
|
+
"host",
|
|
561
|
+
"if-modified-since",
|
|
562
|
+
"if-unmodified-since",
|
|
563
|
+
"last-modified",
|
|
564
|
+
"location",
|
|
565
|
+
"max-forwards",
|
|
566
|
+
"proxy-authorization",
|
|
567
|
+
"referer",
|
|
568
|
+
"retry-after",
|
|
569
|
+
"user-agent"
|
|
570
|
+
]), Ut = (e) => {
|
|
571
|
+
const t = {};
|
|
572
|
+
let n, s, r;
|
|
573
|
+
return e && e.split(`
|
|
574
|
+
`).forEach(function(o) {
|
|
575
|
+
r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || t[n] && Ft[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
|
|
576
|
+
}), t;
|
|
577
|
+
}, he = Symbol("internals");
|
|
578
|
+
function A(e) {
|
|
579
|
+
return e && String(e).trim().toLowerCase();
|
|
580
|
+
}
|
|
581
|
+
function F(e) {
|
|
582
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(F) : String(e);
|
|
583
|
+
}
|
|
584
|
+
function Lt(e) {
|
|
585
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
586
|
+
let s;
|
|
587
|
+
for (; s = n.exec(e); )
|
|
588
|
+
t[s[1]] = s[2];
|
|
589
|
+
return t;
|
|
590
|
+
}
|
|
591
|
+
function jt(e) {
|
|
592
|
+
return /^[-_a-zA-Z]+$/.test(e.trim());
|
|
593
|
+
}
|
|
594
|
+
function pe(e, t, n, s) {
|
|
595
|
+
if (a.isFunction(s))
|
|
596
|
+
return s.call(this, t, n);
|
|
597
|
+
if (!!a.isString(t)) {
|
|
598
|
+
if (a.isString(s))
|
|
599
|
+
return t.indexOf(s) !== -1;
|
|
600
|
+
if (a.isRegExp(s))
|
|
601
|
+
return s.test(t);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
function qt(e) {
|
|
605
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
|
|
606
|
+
}
|
|
607
|
+
function $t(e, t) {
|
|
608
|
+
const n = a.toCamelCase(" " + t);
|
|
609
|
+
["get", "set", "has"].forEach((s) => {
|
|
610
|
+
Object.defineProperty(e, s + n, {
|
|
611
|
+
value: function(r, i, o) {
|
|
612
|
+
return this[s].call(this, t, r, i, o);
|
|
613
|
+
},
|
|
614
|
+
configurable: !0
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
class V {
|
|
619
|
+
constructor(t) {
|
|
620
|
+
t && this.set(t);
|
|
621
|
+
}
|
|
622
|
+
set(t, n, s) {
|
|
623
|
+
const r = this;
|
|
624
|
+
function i(c, l, u) {
|
|
625
|
+
const d = A(l);
|
|
626
|
+
if (!d)
|
|
627
|
+
throw new Error("header name must be a non-empty string");
|
|
628
|
+
const p = a.findKey(r, d);
|
|
629
|
+
(!p || r[p] === void 0 || u === !0 || u === void 0 && r[p] !== !1) && (r[p || l] = F(c));
|
|
630
|
+
}
|
|
631
|
+
const o = (c, l) => a.forEach(c, (u, d) => i(u, d, l));
|
|
632
|
+
return a.isPlainObject(t) || t instanceof this.constructor ? o(t, n) : a.isString(t) && (t = t.trim()) && !jt(t) ? o(Ut(t), n) : t != null && i(n, t, s), this;
|
|
633
|
+
}
|
|
634
|
+
get(t, n) {
|
|
635
|
+
if (t = A(t), t) {
|
|
636
|
+
const s = a.findKey(this, t);
|
|
637
|
+
if (s) {
|
|
638
|
+
const r = this[s];
|
|
639
|
+
if (!n)
|
|
640
|
+
return r;
|
|
641
|
+
if (n === !0)
|
|
642
|
+
return Lt(r);
|
|
643
|
+
if (a.isFunction(n))
|
|
644
|
+
return n.call(this, r, s);
|
|
645
|
+
if (a.isRegExp(n))
|
|
646
|
+
return n.exec(r);
|
|
647
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
has(t, n) {
|
|
652
|
+
if (t = A(t), t) {
|
|
653
|
+
const s = a.findKey(this, t);
|
|
654
|
+
return !!(s && (!n || pe(this, this[s], s, n)));
|
|
655
|
+
}
|
|
656
|
+
return !1;
|
|
657
|
+
}
|
|
658
|
+
delete(t, n) {
|
|
659
|
+
const s = this;
|
|
660
|
+
let r = !1;
|
|
661
|
+
function i(o) {
|
|
662
|
+
if (o = A(o), o) {
|
|
663
|
+
const c = a.findKey(s, o);
|
|
664
|
+
c && (!n || pe(s, s[c], c, n)) && (delete s[c], r = !0);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
return a.isArray(t) ? t.forEach(i) : i(t), r;
|
|
668
|
+
}
|
|
669
|
+
clear() {
|
|
670
|
+
return Object.keys(this).forEach(this.delete.bind(this));
|
|
671
|
+
}
|
|
672
|
+
normalize(t) {
|
|
673
|
+
const n = this, s = {};
|
|
674
|
+
return a.forEach(this, (r, i) => {
|
|
675
|
+
const o = a.findKey(s, i);
|
|
676
|
+
if (o) {
|
|
677
|
+
n[o] = F(r), delete n[i];
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
const c = t ? qt(i) : String(i).trim();
|
|
681
|
+
c !== i && delete n[i], n[c] = F(r), s[c] = !0;
|
|
682
|
+
}), this;
|
|
683
|
+
}
|
|
684
|
+
concat(...t) {
|
|
685
|
+
return this.constructor.concat(this, ...t);
|
|
686
|
+
}
|
|
687
|
+
toJSON(t) {
|
|
688
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
689
|
+
return a.forEach(this, (s, r) => {
|
|
690
|
+
s != null && s !== !1 && (n[r] = t && a.isArray(s) ? s.join(", ") : s);
|
|
691
|
+
}), n;
|
|
692
|
+
}
|
|
693
|
+
[Symbol.iterator]() {
|
|
694
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
695
|
+
}
|
|
696
|
+
toString() {
|
|
697
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
698
|
+
`);
|
|
699
|
+
}
|
|
700
|
+
get [Symbol.toStringTag]() {
|
|
701
|
+
return "AxiosHeaders";
|
|
702
|
+
}
|
|
703
|
+
static from(t) {
|
|
704
|
+
return t instanceof this ? t : new this(t);
|
|
705
|
+
}
|
|
706
|
+
static concat(t, ...n) {
|
|
707
|
+
const s = new this(t);
|
|
708
|
+
return n.forEach((r) => s.set(r)), s;
|
|
709
|
+
}
|
|
710
|
+
static accessor(t) {
|
|
711
|
+
const s = (this[he] = this[he] = {
|
|
712
|
+
accessors: {}
|
|
713
|
+
}).accessors, r = this.prototype;
|
|
714
|
+
function i(o) {
|
|
715
|
+
const c = A(o);
|
|
716
|
+
s[c] || ($t(r, o), s[c] = !0);
|
|
717
|
+
}
|
|
718
|
+
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
V.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent"]);
|
|
722
|
+
a.freezeMethods(V.prototype);
|
|
723
|
+
a.freezeMethods(V);
|
|
724
|
+
const b = V;
|
|
725
|
+
function K(e, t) {
|
|
726
|
+
const n = this || ie, s = t || n, r = b.from(s.headers);
|
|
727
|
+
let i = s.data;
|
|
728
|
+
return a.forEach(e, function(c) {
|
|
729
|
+
i = c.call(n, i, r.normalize(), t ? t.status : void 0);
|
|
730
|
+
}), r.normalize(), i;
|
|
731
|
+
}
|
|
732
|
+
function Fe(e) {
|
|
733
|
+
return !!(e && e.__CANCEL__);
|
|
734
|
+
}
|
|
735
|
+
function M(e, t, n) {
|
|
736
|
+
m.call(this, e == null ? "canceled" : e, m.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
737
|
+
}
|
|
738
|
+
a.inherits(M, m, {
|
|
739
|
+
__CANCEL__: !0
|
|
740
|
+
});
|
|
741
|
+
const It = null;
|
|
742
|
+
function Ht(e, t, n) {
|
|
743
|
+
const s = n.config.validateStatus;
|
|
744
|
+
!n.status || !s || s(n.status) ? e(n) : t(new m(
|
|
745
|
+
"Request failed with status code " + n.status,
|
|
746
|
+
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
747
|
+
n.config,
|
|
748
|
+
n.request,
|
|
749
|
+
n
|
|
750
|
+
));
|
|
751
|
+
}
|
|
752
|
+
const Jt = P.isStandardBrowserEnv ? function() {
|
|
753
|
+
return {
|
|
754
|
+
write: function(n, s, r, i, o, c) {
|
|
755
|
+
const l = [];
|
|
756
|
+
l.push(n + "=" + encodeURIComponent(s)), a.isNumber(r) && l.push("expires=" + new Date(r).toGMTString()), a.isString(i) && l.push("path=" + i), a.isString(o) && l.push("domain=" + o), c === !0 && l.push("secure"), document.cookie = l.join("; ");
|
|
757
|
+
},
|
|
758
|
+
read: function(n) {
|
|
759
|
+
const s = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
760
|
+
return s ? decodeURIComponent(s[3]) : null;
|
|
761
|
+
},
|
|
762
|
+
remove: function(n) {
|
|
763
|
+
this.write(n, "", Date.now() - 864e5);
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
}() : function() {
|
|
767
|
+
return {
|
|
768
|
+
write: function() {
|
|
769
|
+
},
|
|
770
|
+
read: function() {
|
|
771
|
+
return null;
|
|
772
|
+
},
|
|
773
|
+
remove: function() {
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
}();
|
|
777
|
+
function Vt(e) {
|
|
778
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
779
|
+
}
|
|
780
|
+
function Kt(e, t) {
|
|
781
|
+
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
782
|
+
}
|
|
783
|
+
function Ue(e, t) {
|
|
784
|
+
return e && !Vt(t) ? Kt(e, t) : t;
|
|
785
|
+
}
|
|
786
|
+
const Wt = P.isStandardBrowserEnv ? function() {
|
|
787
|
+
const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
|
|
788
|
+
let s;
|
|
789
|
+
function r(i) {
|
|
790
|
+
let o = i;
|
|
791
|
+
return t && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
|
|
792
|
+
href: n.href,
|
|
793
|
+
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
794
|
+
host: n.host,
|
|
795
|
+
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
796
|
+
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
797
|
+
hostname: n.hostname,
|
|
798
|
+
port: n.port,
|
|
799
|
+
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
return s = r(window.location.href), function(o) {
|
|
803
|
+
const c = a.isString(o) ? r(o) : o;
|
|
804
|
+
return c.protocol === s.protocol && c.host === s.host;
|
|
805
|
+
};
|
|
806
|
+
}() : function() {
|
|
807
|
+
return function() {
|
|
808
|
+
return !0;
|
|
809
|
+
};
|
|
810
|
+
}();
|
|
811
|
+
function Xt(e) {
|
|
812
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
813
|
+
return t && t[1] || "";
|
|
814
|
+
}
|
|
815
|
+
function Qt(e, t) {
|
|
816
|
+
e = e || 10;
|
|
817
|
+
const n = new Array(e), s = new Array(e);
|
|
818
|
+
let r = 0, i = 0, o;
|
|
819
|
+
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
820
|
+
const u = Date.now(), d = s[i];
|
|
821
|
+
o || (o = u), n[r] = l, s[r] = u;
|
|
822
|
+
let p = i, y = 0;
|
|
823
|
+
for (; p !== r; )
|
|
824
|
+
y += n[p++], p = p % e;
|
|
825
|
+
if (r = (r + 1) % e, r === i && (i = (i + 1) % e), u - o < t)
|
|
826
|
+
return;
|
|
827
|
+
const S = d && u - d;
|
|
828
|
+
return S ? Math.round(y * 1e3 / S) : void 0;
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
function fe(e, t) {
|
|
832
|
+
let n = 0;
|
|
833
|
+
const s = Qt(50, 250);
|
|
834
|
+
return (r) => {
|
|
835
|
+
const i = r.loaded, o = r.lengthComputable ? r.total : void 0, c = i - n, l = s(c), u = i <= o;
|
|
836
|
+
n = i;
|
|
837
|
+
const d = {
|
|
838
|
+
loaded: i,
|
|
839
|
+
total: o,
|
|
840
|
+
progress: o ? i / o : void 0,
|
|
841
|
+
bytes: c,
|
|
842
|
+
rate: l || void 0,
|
|
843
|
+
estimated: l && o && u ? (o - i) / l : void 0,
|
|
844
|
+
event: r
|
|
845
|
+
};
|
|
846
|
+
d[t ? "download" : "upload"] = !0, e(d);
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
const Yt = typeof XMLHttpRequest < "u", Zt = Yt && function(e) {
|
|
850
|
+
return new Promise(function(n, s) {
|
|
851
|
+
let r = e.data;
|
|
852
|
+
const i = b.from(e.headers).normalize(), o = e.responseType;
|
|
853
|
+
let c;
|
|
854
|
+
function l() {
|
|
855
|
+
e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
|
|
856
|
+
}
|
|
857
|
+
a.isFormData(r) && P.isStandardBrowserEnv && i.setContentType(!1);
|
|
858
|
+
let u = new XMLHttpRequest();
|
|
859
|
+
if (e.auth) {
|
|
860
|
+
const S = e.auth.username || "", h = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
861
|
+
i.set("Authorization", "Basic " + btoa(S + ":" + h));
|
|
862
|
+
}
|
|
863
|
+
const d = Ue(e.baseURL, e.url);
|
|
864
|
+
u.open(e.method.toUpperCase(), Me(d, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
|
|
865
|
+
function p() {
|
|
866
|
+
if (!u)
|
|
867
|
+
return;
|
|
868
|
+
const S = b.from(
|
|
869
|
+
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
870
|
+
), f = {
|
|
871
|
+
data: !o || o === "text" || o === "json" ? u.responseText : u.response,
|
|
872
|
+
status: u.status,
|
|
873
|
+
statusText: u.statusText,
|
|
874
|
+
headers: S,
|
|
875
|
+
config: e,
|
|
876
|
+
request: u
|
|
877
|
+
};
|
|
878
|
+
Ht(function(x) {
|
|
879
|
+
n(x), l();
|
|
880
|
+
}, function(x) {
|
|
881
|
+
s(x), l();
|
|
882
|
+
}, f), u = null;
|
|
883
|
+
}
|
|
884
|
+
if ("onloadend" in u ? u.onloadend = p : u.onreadystatechange = function() {
|
|
885
|
+
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(p);
|
|
886
|
+
}, u.onabort = function() {
|
|
887
|
+
!u || (s(new m("Request aborted", m.ECONNABORTED, e, u)), u = null);
|
|
888
|
+
}, u.onerror = function() {
|
|
889
|
+
s(new m("Network Error", m.ERR_NETWORK, e, u)), u = null;
|
|
890
|
+
}, u.ontimeout = function() {
|
|
891
|
+
let h = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
892
|
+
const f = e.transitional || Be;
|
|
893
|
+
e.timeoutErrorMessage && (h = e.timeoutErrorMessage), s(new m(
|
|
894
|
+
h,
|
|
895
|
+
f.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
896
|
+
e,
|
|
897
|
+
u
|
|
898
|
+
)), u = null;
|
|
899
|
+
}, P.isStandardBrowserEnv) {
|
|
900
|
+
const S = (e.withCredentials || Wt(d)) && e.xsrfCookieName && Jt.read(e.xsrfCookieName);
|
|
901
|
+
S && i.set(e.xsrfHeaderName, S);
|
|
902
|
+
}
|
|
903
|
+
r === void 0 && i.setContentType(null), "setRequestHeader" in u && a.forEach(i.toJSON(), function(h, f) {
|
|
904
|
+
u.setRequestHeader(f, h);
|
|
905
|
+
}), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), o && o !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", fe(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", fe(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (S) => {
|
|
906
|
+
!u || (s(!S || S.type ? new M(null, e, u) : S), u.abort(), u = null);
|
|
907
|
+
}, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
|
|
908
|
+
const y = Xt(d);
|
|
909
|
+
if (y && P.protocols.indexOf(y) === -1) {
|
|
910
|
+
s(new m("Unsupported protocol " + y + ":", m.ERR_BAD_REQUEST, e));
|
|
911
|
+
return;
|
|
912
|
+
}
|
|
913
|
+
u.send(r || null);
|
|
914
|
+
});
|
|
915
|
+
}, U = {
|
|
916
|
+
http: It,
|
|
917
|
+
xhr: Zt
|
|
918
|
+
};
|
|
919
|
+
a.forEach(U, (e, t) => {
|
|
920
|
+
if (e) {
|
|
921
|
+
try {
|
|
922
|
+
Object.defineProperty(e, "name", { value: t });
|
|
923
|
+
} catch {
|
|
924
|
+
}
|
|
925
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
926
|
+
}
|
|
927
|
+
});
|
|
928
|
+
const Gt = {
|
|
929
|
+
getAdapter: (e) => {
|
|
930
|
+
e = a.isArray(e) ? e : [e];
|
|
931
|
+
const { length: t } = e;
|
|
932
|
+
let n, s;
|
|
933
|
+
for (let r = 0; r < t && (n = e[r], !(s = a.isString(n) ? U[n.toLowerCase()] : n)); r++)
|
|
934
|
+
;
|
|
935
|
+
if (!s)
|
|
936
|
+
throw s === !1 ? new m(
|
|
937
|
+
`Adapter ${n} is not supported by the environment`,
|
|
938
|
+
"ERR_NOT_SUPPORT"
|
|
939
|
+
) : new Error(
|
|
940
|
+
a.hasOwnProp(U, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
|
|
941
|
+
);
|
|
942
|
+
if (!a.isFunction(s))
|
|
943
|
+
throw new TypeError("adapter is not a function");
|
|
944
|
+
return s;
|
|
945
|
+
},
|
|
946
|
+
adapters: U
|
|
947
|
+
};
|
|
948
|
+
function W(e) {
|
|
949
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
950
|
+
throw new M();
|
|
951
|
+
}
|
|
952
|
+
function me(e) {
|
|
953
|
+
return W(e), e.headers = b.from(e.headers), e.data = K.call(
|
|
954
|
+
e,
|
|
955
|
+
e.transformRequest
|
|
956
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Gt.getAdapter(e.adapter || ie.adapter)(e).then(function(s) {
|
|
957
|
+
return W(e), s.data = K.call(
|
|
958
|
+
e,
|
|
959
|
+
e.transformResponse,
|
|
960
|
+
s
|
|
961
|
+
), s.headers = b.from(s.headers), s;
|
|
962
|
+
}, function(s) {
|
|
963
|
+
return Fe(s) || (W(e), s && s.response && (s.response.data = K.call(
|
|
964
|
+
e,
|
|
965
|
+
e.transformResponse,
|
|
966
|
+
s.response
|
|
967
|
+
), s.response.headers = b.from(s.response.headers))), Promise.reject(s);
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
const Se = (e) => e instanceof b ? e.toJSON() : e;
|
|
971
|
+
function T(e, t) {
|
|
972
|
+
t = t || {};
|
|
973
|
+
const n = {};
|
|
974
|
+
function s(u, d, p) {
|
|
975
|
+
return a.isPlainObject(u) && a.isPlainObject(d) ? a.merge.call({ caseless: p }, u, d) : a.isPlainObject(d) ? a.merge({}, d) : a.isArray(d) ? d.slice() : d;
|
|
976
|
+
}
|
|
977
|
+
function r(u, d, p) {
|
|
978
|
+
if (a.isUndefined(d)) {
|
|
979
|
+
if (!a.isUndefined(u))
|
|
980
|
+
return s(void 0, u, p);
|
|
981
|
+
} else
|
|
982
|
+
return s(u, d, p);
|
|
983
|
+
}
|
|
984
|
+
function i(u, d) {
|
|
985
|
+
if (!a.isUndefined(d))
|
|
986
|
+
return s(void 0, d);
|
|
987
|
+
}
|
|
988
|
+
function o(u, d) {
|
|
989
|
+
if (a.isUndefined(d)) {
|
|
990
|
+
if (!a.isUndefined(u))
|
|
991
|
+
return s(void 0, u);
|
|
992
|
+
} else
|
|
993
|
+
return s(void 0, d);
|
|
994
|
+
}
|
|
995
|
+
function c(u, d, p) {
|
|
996
|
+
if (p in t)
|
|
997
|
+
return s(u, d);
|
|
998
|
+
if (p in e)
|
|
999
|
+
return s(void 0, u);
|
|
1000
|
+
}
|
|
1001
|
+
const l = {
|
|
1002
|
+
url: i,
|
|
1003
|
+
method: i,
|
|
1004
|
+
data: i,
|
|
1005
|
+
baseURL: o,
|
|
1006
|
+
transformRequest: o,
|
|
1007
|
+
transformResponse: o,
|
|
1008
|
+
paramsSerializer: o,
|
|
1009
|
+
timeout: o,
|
|
1010
|
+
timeoutMessage: o,
|
|
1011
|
+
withCredentials: o,
|
|
1012
|
+
adapter: o,
|
|
1013
|
+
responseType: o,
|
|
1014
|
+
xsrfCookieName: o,
|
|
1015
|
+
xsrfHeaderName: o,
|
|
1016
|
+
onUploadProgress: o,
|
|
1017
|
+
onDownloadProgress: o,
|
|
1018
|
+
decompress: o,
|
|
1019
|
+
maxContentLength: o,
|
|
1020
|
+
maxBodyLength: o,
|
|
1021
|
+
beforeRedirect: o,
|
|
1022
|
+
transport: o,
|
|
1023
|
+
httpAgent: o,
|
|
1024
|
+
httpsAgent: o,
|
|
1025
|
+
cancelToken: o,
|
|
1026
|
+
socketPath: o,
|
|
1027
|
+
responseEncoding: o,
|
|
1028
|
+
validateStatus: c,
|
|
1029
|
+
headers: (u, d) => r(Se(u), Se(d), !0)
|
|
1030
|
+
};
|
|
1031
|
+
return a.forEach(Object.keys(e).concat(Object.keys(t)), function(d) {
|
|
1032
|
+
const p = l[d] || r, y = p(e[d], t[d], d);
|
|
1033
|
+
a.isUndefined(y) && p !== c || (n[d] = y);
|
|
1034
|
+
}), n;
|
|
1035
|
+
}
|
|
1036
|
+
const Le = "1.2.0", oe = {};
|
|
1037
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1038
|
+
oe[e] = function(s) {
|
|
1039
|
+
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1040
|
+
};
|
|
1041
|
+
});
|
|
1042
|
+
const ye = {};
|
|
1043
|
+
oe.transitional = function(t, n, s) {
|
|
1044
|
+
function r(i, o) {
|
|
1045
|
+
return "[Axios v" + Le + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
|
|
1046
|
+
}
|
|
1047
|
+
return (i, o, c) => {
|
|
1048
|
+
if (t === !1)
|
|
1049
|
+
throw new m(
|
|
1050
|
+
r(o, " has been removed" + (n ? " in " + n : "")),
|
|
1051
|
+
m.ERR_DEPRECATED
|
|
1052
|
+
);
|
|
1053
|
+
return n && !ye[o] && (ye[o] = !0, console.warn(
|
|
1054
|
+
r(
|
|
1055
|
+
o,
|
|
1056
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1057
|
+
)
|
|
1058
|
+
)), t ? t(i, o, c) : !0;
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
function en(e, t, n) {
|
|
1062
|
+
if (typeof e != "object")
|
|
1063
|
+
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1064
|
+
const s = Object.keys(e);
|
|
1065
|
+
let r = s.length;
|
|
1066
|
+
for (; r-- > 0; ) {
|
|
1067
|
+
const i = s[r], o = t[i];
|
|
1068
|
+
if (o) {
|
|
1069
|
+
const c = e[i], l = c === void 0 || o(c, i, e);
|
|
1070
|
+
if (l !== !0)
|
|
1071
|
+
throw new m("option " + i + " must be " + l, m.ERR_BAD_OPTION_VALUE);
|
|
1072
|
+
continue;
|
|
1073
|
+
}
|
|
1074
|
+
if (n !== !0)
|
|
1075
|
+
throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
const Y = {
|
|
1079
|
+
assertOptions: en,
|
|
1080
|
+
validators: oe
|
|
1081
|
+
}, O = Y.validators;
|
|
1082
|
+
class j {
|
|
1083
|
+
constructor(t) {
|
|
1084
|
+
this.defaults = t, this.interceptors = {
|
|
1085
|
+
request: new de(),
|
|
1086
|
+
response: new de()
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
request(t, n) {
|
|
1090
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = T(this.defaults, n);
|
|
1091
|
+
const { transitional: s, paramsSerializer: r, headers: i } = n;
|
|
1092
|
+
s !== void 0 && Y.assertOptions(s, {
|
|
1093
|
+
silentJSONParsing: O.transitional(O.boolean),
|
|
1094
|
+
forcedJSONParsing: O.transitional(O.boolean),
|
|
1095
|
+
clarifyTimeoutError: O.transitional(O.boolean)
|
|
1096
|
+
}, !1), r !== void 0 && Y.assertOptions(r, {
|
|
1097
|
+
encode: O.function,
|
|
1098
|
+
serialize: O.function
|
|
1099
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1100
|
+
let o;
|
|
1101
|
+
o = i && a.merge(
|
|
1102
|
+
i.common,
|
|
1103
|
+
i[n.method]
|
|
1104
|
+
), o && a.forEach(
|
|
1105
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1106
|
+
(h) => {
|
|
1107
|
+
delete i[h];
|
|
1108
|
+
}
|
|
1109
|
+
), n.headers = b.concat(o, i);
|
|
1110
|
+
const c = [];
|
|
1111
|
+
let l = !0;
|
|
1112
|
+
this.interceptors.request.forEach(function(f) {
|
|
1113
|
+
typeof f.runWhen == "function" && f.runWhen(n) === !1 || (l = l && f.synchronous, c.unshift(f.fulfilled, f.rejected));
|
|
1114
|
+
});
|
|
1115
|
+
const u = [];
|
|
1116
|
+
this.interceptors.response.forEach(function(f) {
|
|
1117
|
+
u.push(f.fulfilled, f.rejected);
|
|
1118
|
+
});
|
|
1119
|
+
let d, p = 0, y;
|
|
1120
|
+
if (!l) {
|
|
1121
|
+
const h = [me.bind(this), void 0];
|
|
1122
|
+
for (h.unshift.apply(h, c), h.push.apply(h, u), y = h.length, d = Promise.resolve(n); p < y; )
|
|
1123
|
+
d = d.then(h[p++], h[p++]);
|
|
1124
|
+
return d;
|
|
1125
|
+
}
|
|
1126
|
+
y = c.length;
|
|
1127
|
+
let S = n;
|
|
1128
|
+
for (p = 0; p < y; ) {
|
|
1129
|
+
const h = c[p++], f = c[p++];
|
|
1130
|
+
try {
|
|
1131
|
+
S = h(S);
|
|
1132
|
+
} catch (w) {
|
|
1133
|
+
f.call(this, w);
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
try {
|
|
1138
|
+
d = me.call(this, S);
|
|
1139
|
+
} catch (h) {
|
|
1140
|
+
return Promise.reject(h);
|
|
1141
|
+
}
|
|
1142
|
+
for (p = 0, y = u.length; p < y; )
|
|
1143
|
+
d = d.then(u[p++], u[p++]);
|
|
1144
|
+
return d;
|
|
1145
|
+
}
|
|
1146
|
+
getUri(t) {
|
|
1147
|
+
t = T(this.defaults, t);
|
|
1148
|
+
const n = Ue(t.baseURL, t.url);
|
|
1149
|
+
return Me(n, t.params, t.paramsSerializer);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1153
|
+
j.prototype[t] = function(n, s) {
|
|
1154
|
+
return this.request(T(s || {}, {
|
|
1155
|
+
method: t,
|
|
1156
|
+
url: n,
|
|
1157
|
+
data: (s || {}).data
|
|
1158
|
+
}));
|
|
1159
|
+
};
|
|
1160
|
+
});
|
|
1161
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
1162
|
+
function n(s) {
|
|
1163
|
+
return function(i, o, c) {
|
|
1164
|
+
return this.request(T(c || {}, {
|
|
1165
|
+
method: t,
|
|
1166
|
+
headers: s ? {
|
|
1167
|
+
"Content-Type": "multipart/form-data"
|
|
1168
|
+
} : {},
|
|
1169
|
+
url: i,
|
|
1170
|
+
data: o
|
|
1171
|
+
}));
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
|
|
1175
|
+
});
|
|
1176
|
+
const L = j;
|
|
1177
|
+
class ae {
|
|
1178
|
+
constructor(t) {
|
|
1179
|
+
if (typeof t != "function")
|
|
1180
|
+
throw new TypeError("executor must be a function.");
|
|
1181
|
+
let n;
|
|
1182
|
+
this.promise = new Promise(function(i) {
|
|
1183
|
+
n = i;
|
|
1184
|
+
});
|
|
1185
|
+
const s = this;
|
|
1186
|
+
this.promise.then((r) => {
|
|
1187
|
+
if (!s._listeners)
|
|
1188
|
+
return;
|
|
1189
|
+
let i = s._listeners.length;
|
|
1190
|
+
for (; i-- > 0; )
|
|
1191
|
+
s._listeners[i](r);
|
|
1192
|
+
s._listeners = null;
|
|
1193
|
+
}), this.promise.then = (r) => {
|
|
1194
|
+
let i;
|
|
1195
|
+
const o = new Promise((c) => {
|
|
1196
|
+
s.subscribe(c), i = c;
|
|
1197
|
+
}).then(r);
|
|
1198
|
+
return o.cancel = function() {
|
|
1199
|
+
s.unsubscribe(i);
|
|
1200
|
+
}, o;
|
|
1201
|
+
}, t(function(i, o, c) {
|
|
1202
|
+
s.reason || (s.reason = new M(i, o, c), n(s.reason));
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
throwIfRequested() {
|
|
1206
|
+
if (this.reason)
|
|
1207
|
+
throw this.reason;
|
|
1208
|
+
}
|
|
1209
|
+
subscribe(t) {
|
|
1210
|
+
if (this.reason) {
|
|
1211
|
+
t(this.reason);
|
|
1212
|
+
return;
|
|
1213
|
+
}
|
|
1214
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1215
|
+
}
|
|
1216
|
+
unsubscribe(t) {
|
|
1217
|
+
if (!this._listeners)
|
|
1218
|
+
return;
|
|
1219
|
+
const n = this._listeners.indexOf(t);
|
|
1220
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1221
|
+
}
|
|
1222
|
+
static source() {
|
|
1223
|
+
let t;
|
|
1224
|
+
return {
|
|
1225
|
+
token: new ae(function(r) {
|
|
1226
|
+
t = r;
|
|
1227
|
+
}),
|
|
1228
|
+
cancel: t
|
|
1229
|
+
};
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
const tn = ae;
|
|
1233
|
+
function nn(e) {
|
|
1234
|
+
return function(n) {
|
|
1235
|
+
return e.apply(null, n);
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
function sn(e) {
|
|
1239
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
1240
|
+
}
|
|
1241
|
+
function je(e) {
|
|
1242
|
+
const t = new L(e), n = be(L.prototype.request, t);
|
|
1243
|
+
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
1244
|
+
return je(T(e, r));
|
|
1245
|
+
}, n;
|
|
1246
|
+
}
|
|
1247
|
+
const E = je(ie);
|
|
1248
|
+
E.Axios = L;
|
|
1249
|
+
E.CanceledError = M;
|
|
1250
|
+
E.CancelToken = tn;
|
|
1251
|
+
E.isCancel = Fe;
|
|
1252
|
+
E.VERSION = Le;
|
|
1253
|
+
E.toFormData = H;
|
|
1254
|
+
E.AxiosError = m;
|
|
1255
|
+
E.Cancel = E.CanceledError;
|
|
1256
|
+
E.all = function(t) {
|
|
1257
|
+
return Promise.all(t);
|
|
1258
|
+
};
|
|
1259
|
+
E.spread = nn;
|
|
1260
|
+
E.isAxiosError = sn;
|
|
1261
|
+
E.AxiosHeaders = b;
|
|
1262
|
+
E.formToJSON = (e) => ke(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1263
|
+
E.default = E;
|
|
1264
|
+
const N = E;
|
|
1265
|
+
class mn {
|
|
1266
|
+
constructor(t, n) {
|
|
1267
|
+
N.defaults.baseURL = t, N.defaults.timeout = n;
|
|
1268
|
+
}
|
|
1269
|
+
Request(t, n, s = "get") {
|
|
1270
|
+
return N({
|
|
1271
|
+
method: s,
|
|
1272
|
+
url: t,
|
|
1273
|
+
data: n
|
|
1274
|
+
});
|
|
1275
|
+
}
|
|
1276
|
+
RequestIntercept(t) {
|
|
1277
|
+
N.interceptors.request.use((n) => t(n));
|
|
1278
|
+
}
|
|
1279
|
+
ResponseIntercept(t) {
|
|
1280
|
+
N.interceptors.response.use((n) => t(n));
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
const rn = {
|
|
1284
|
+
name: "splitpanes",
|
|
1285
|
+
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
1286
|
+
props: {
|
|
1287
|
+
horizontal: { type: Boolean },
|
|
1288
|
+
pushOtherPanes: { type: Boolean, default: !0 },
|
|
1289
|
+
dblClickSplitter: { type: Boolean, default: !0 },
|
|
1290
|
+
rtl: { type: Boolean, default: !1 },
|
|
1291
|
+
firstSplitter: { type: Boolean }
|
|
1292
|
+
},
|
|
1293
|
+
provide() {
|
|
1294
|
+
return {
|
|
1295
|
+
requestUpdate: this.requestUpdate,
|
|
1296
|
+
onPaneAdd: this.onPaneAdd,
|
|
1297
|
+
onPaneRemove: this.onPaneRemove,
|
|
1298
|
+
onPaneClick: this.onPaneClick
|
|
1299
|
+
};
|
|
1300
|
+
},
|
|
1301
|
+
data: () => ({
|
|
1302
|
+
container: null,
|
|
1303
|
+
ready: !1,
|
|
1304
|
+
panes: [],
|
|
1305
|
+
touch: {
|
|
1306
|
+
mouseDown: !1,
|
|
1307
|
+
dragging: !1,
|
|
1308
|
+
activeSplitter: null
|
|
1309
|
+
},
|
|
1310
|
+
splitterTaps: {
|
|
1311
|
+
splitter: null,
|
|
1312
|
+
timeoutId: null
|
|
1313
|
+
}
|
|
1314
|
+
}),
|
|
1315
|
+
computed: {
|
|
1316
|
+
panesCount() {
|
|
1317
|
+
return this.panes.length;
|
|
1318
|
+
},
|
|
1319
|
+
indexedPanes() {
|
|
1320
|
+
return this.panes.reduce((e, t) => (e[t.id] = t) && e, {});
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
methods: {
|
|
1324
|
+
updatePaneComponents() {
|
|
1325
|
+
this.panes.forEach((e) => {
|
|
1326
|
+
e.update && e.update({
|
|
1327
|
+
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[e.id].size}%`
|
|
1328
|
+
});
|
|
1329
|
+
});
|
|
1330
|
+
},
|
|
1331
|
+
bindEvents() {
|
|
1332
|
+
document.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.addEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.addEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.addEventListener("touchend", this.onMouseUp));
|
|
1333
|
+
},
|
|
1334
|
+
unbindEvents() {
|
|
1335
|
+
document.removeEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.removeEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.removeEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.removeEventListener("touchend", this.onMouseUp));
|
|
1336
|
+
},
|
|
1337
|
+
onMouseDown(e, t) {
|
|
1338
|
+
this.bindEvents(), this.touch.mouseDown = !0, this.touch.activeSplitter = t;
|
|
1339
|
+
},
|
|
1340
|
+
onMouseMove(e) {
|
|
1341
|
+
this.touch.mouseDown && (e.preventDefault(), this.touch.dragging = !0, this.calculatePanesSize(this.getCurrentMouseDrag(e)), this.$emit("resize", this.panes.map((t) => ({ min: t.min, max: t.max, size: t.size }))));
|
|
1342
|
+
},
|
|
1343
|
+
onMouseUp() {
|
|
1344
|
+
this.touch.dragging && this.$emit("resized", this.panes.map((e) => ({ min: e.min, max: e.max, size: e.size }))), this.touch.mouseDown = !1, setTimeout(() => {
|
|
1345
|
+
this.touch.dragging = !1, this.unbindEvents();
|
|
1346
|
+
}, 100);
|
|
1347
|
+
},
|
|
1348
|
+
onSplitterClick(e, t) {
|
|
1349
|
+
"ontouchstart" in window && (e.preventDefault(), this.dblClickSplitter && (this.splitterTaps.splitter === t ? (clearTimeout(this.splitterTaps.timeoutId), this.splitterTaps.timeoutId = null, this.onSplitterDblClick(e, t), this.splitterTaps.splitter = null) : (this.splitterTaps.splitter = t, this.splitterTaps.timeoutId = setTimeout(() => {
|
|
1350
|
+
this.splitterTaps.splitter = null;
|
|
1351
|
+
}, 500)))), this.touch.dragging || this.$emit("splitter-click", this.panes[t]);
|
|
1352
|
+
},
|
|
1353
|
+
onSplitterDblClick(e, t) {
|
|
1354
|
+
let n = 0;
|
|
1355
|
+
this.panes = this.panes.map((s, r) => (s.size = r === t ? s.max : s.min, r !== t && (n += s.min), s)), this.panes[t].size -= n, this.$emit("pane-maximize", this.panes[t]), this.$emit("resized", this.panes.map((s) => ({ min: s.min, max: s.max, size: s.size })));
|
|
1356
|
+
},
|
|
1357
|
+
onPaneClick(e, t) {
|
|
1358
|
+
this.$emit("pane-click", this.indexedPanes[t]);
|
|
1359
|
+
},
|
|
1360
|
+
getCurrentMouseDrag(e) {
|
|
1361
|
+
const t = this.container.getBoundingClientRect(), { clientX: n, clientY: s } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
1362
|
+
return {
|
|
1363
|
+
x: n - t.left,
|
|
1364
|
+
y: s - t.top
|
|
1365
|
+
};
|
|
1366
|
+
},
|
|
1367
|
+
getCurrentDragPercentage(e) {
|
|
1368
|
+
e = e[this.horizontal ? "y" : "x"];
|
|
1369
|
+
const t = this.container[this.horizontal ? "clientHeight" : "clientWidth"];
|
|
1370
|
+
return this.rtl && !this.horizontal && (e = t - e), e * 100 / t;
|
|
1371
|
+
},
|
|
1372
|
+
calculatePanesSize(e) {
|
|
1373
|
+
const t = this.touch.activeSplitter;
|
|
1374
|
+
let n = {
|
|
1375
|
+
prevPanesSize: this.sumPrevPanesSize(t),
|
|
1376
|
+
nextPanesSize: this.sumNextPanesSize(t),
|
|
1377
|
+
prevReachedMinPanes: 0,
|
|
1378
|
+
nextReachedMinPanes: 0
|
|
1379
|
+
};
|
|
1380
|
+
const s = 0 + (this.pushOtherPanes ? 0 : n.prevPanesSize), r = 100 - (this.pushOtherPanes ? 0 : n.nextPanesSize), i = Math.max(Math.min(this.getCurrentDragPercentage(e), r), s);
|
|
1381
|
+
let o = [t, t + 1], c = this.panes[o[0]] || null, l = this.panes[o[1]] || null;
|
|
1382
|
+
const u = c.max < 100 && i >= c.max + n.prevPanesSize, d = l.max < 100 && i <= 100 - (l.max + this.sumNextPanesSize(t + 1));
|
|
1383
|
+
if (u || d) {
|
|
1384
|
+
u ? (c.size = c.max, l.size = Math.max(100 - c.max - n.prevPanesSize - n.nextPanesSize, 0)) : (c.size = Math.max(100 - l.max - n.prevPanesSize - this.sumNextPanesSize(t + 1), 0), l.size = l.max);
|
|
1385
|
+
return;
|
|
1386
|
+
}
|
|
1387
|
+
if (this.pushOtherPanes) {
|
|
1388
|
+
const p = this.doPushOtherPanes(n, i);
|
|
1389
|
+
if (!p)
|
|
1390
|
+
return;
|
|
1391
|
+
({ sums: n, panesToResize: o } = p), c = this.panes[o[0]] || null, l = this.panes[o[1]] || null;
|
|
1392
|
+
}
|
|
1393
|
+
c !== null && (c.size = Math.min(Math.max(i - n.prevPanesSize - n.prevReachedMinPanes, c.min), c.max)), l !== null && (l.size = Math.min(Math.max(100 - i - n.nextPanesSize - n.nextReachedMinPanes, l.min), l.max));
|
|
1394
|
+
},
|
|
1395
|
+
doPushOtherPanes(e, t) {
|
|
1396
|
+
const n = this.touch.activeSplitter, s = [n, n + 1];
|
|
1397
|
+
return t < e.prevPanesSize + this.panes[s[0]].min && (s[0] = this.findPrevExpandedPane(n).index, e.prevReachedMinPanes = 0, s[0] < n && this.panes.forEach((r, i) => {
|
|
1398
|
+
i > s[0] && i <= n && (r.size = r.min, e.prevReachedMinPanes += r.min);
|
|
1399
|
+
}), e.prevPanesSize = this.sumPrevPanesSize(s[0]), s[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((r, i) => {
|
|
1400
|
+
i > 0 && i <= n && (r.size = r.min, e.prevReachedMinPanes += r.min);
|
|
1401
|
+
}), this.panes[s[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : t > 100 - e.nextPanesSize - this.panes[s[1]].min && (s[1] = this.findNextExpandedPane(n).index, e.nextReachedMinPanes = 0, s[1] > n + 1 && this.panes.forEach((r, i) => {
|
|
1402
|
+
i > n && i < s[1] && (r.size = r.min, e.nextReachedMinPanes += r.min);
|
|
1403
|
+
}), e.nextPanesSize = this.sumNextPanesSize(s[1] - 1), s[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((r, i) => {
|
|
1404
|
+
i < this.panesCount - 1 && i >= n + 1 && (r.size = r.min, e.nextReachedMinPanes += r.min);
|
|
1405
|
+
}), this.panes[s[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: s };
|
|
1406
|
+
},
|
|
1407
|
+
sumPrevPanesSize(e) {
|
|
1408
|
+
return this.panes.reduce((t, n, s) => t + (s < e ? n.size : 0), 0);
|
|
1409
|
+
},
|
|
1410
|
+
sumNextPanesSize(e) {
|
|
1411
|
+
return this.panes.reduce((t, n, s) => t + (s > e + 1 ? n.size : 0), 0);
|
|
1412
|
+
},
|
|
1413
|
+
findPrevExpandedPane(e) {
|
|
1414
|
+
return [...this.panes].reverse().find((t) => t.index < e && t.size > t.min) || {};
|
|
1415
|
+
},
|
|
1416
|
+
findNextExpandedPane(e) {
|
|
1417
|
+
return this.panes.find((t) => t.index > e + 1 && t.size > t.min) || {};
|
|
1418
|
+
},
|
|
1419
|
+
checkSplitpanesNodes() {
|
|
1420
|
+
Array.from(this.container.children).forEach((e) => {
|
|
1421
|
+
const t = e.classList.contains("splitpanes__pane"), n = e.classList.contains("splitpanes__splitter");
|
|
1422
|
+
!t && !n && (e.parentNode.removeChild(e), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
1423
|
+
});
|
|
1424
|
+
},
|
|
1425
|
+
addSplitter(e, t, n = !1) {
|
|
1426
|
+
const s = e - 1, r = document.createElement("div");
|
|
1427
|
+
r.classList.add("splitpanes__splitter"), n || (r.onmousedown = (i) => this.onMouseDown(i, s), typeof window < "u" && "ontouchstart" in window && (r.ontouchstart = (i) => this.onMouseDown(i, s)), r.onclick = (i) => this.onSplitterClick(i, s + 1)), this.dblClickSplitter && (r.ondblclick = (i) => this.onSplitterDblClick(i, s + 1)), t.parentNode.insertBefore(r, t);
|
|
1428
|
+
},
|
|
1429
|
+
removeSplitter(e) {
|
|
1430
|
+
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.parentNode.removeChild(e);
|
|
1431
|
+
},
|
|
1432
|
+
redoSplitters() {
|
|
1433
|
+
const e = Array.from(this.container.children);
|
|
1434
|
+
e.forEach((n) => {
|
|
1435
|
+
n.className.includes("splitpanes__splitter") && this.removeSplitter(n);
|
|
1436
|
+
});
|
|
1437
|
+
let t = 0;
|
|
1438
|
+
e.forEach((n) => {
|
|
1439
|
+
n.className.includes("splitpanes__pane") && (!t && this.firstSplitter ? this.addSplitter(t, n, !0) : t && this.addSplitter(t, n), t++);
|
|
1440
|
+
});
|
|
1441
|
+
},
|
|
1442
|
+
requestUpdate({ target: e, ...t }) {
|
|
1443
|
+
const n = this.indexedPanes[e._.uid];
|
|
1444
|
+
Object.entries(t).forEach(([s, r]) => n[s] = r);
|
|
1445
|
+
},
|
|
1446
|
+
onPaneAdd(e) {
|
|
1447
|
+
let t = -1;
|
|
1448
|
+
Array.from(e.$el.parentNode.children).some((r) => (r.className.includes("splitpanes__pane") && t++, r === e.$el));
|
|
1449
|
+
const n = parseFloat(e.minSize), s = parseFloat(e.maxSize);
|
|
1450
|
+
this.panes.splice(t, 0, {
|
|
1451
|
+
id: e._.uid,
|
|
1452
|
+
index: t,
|
|
1453
|
+
min: isNaN(n) ? 0 : n,
|
|
1454
|
+
max: isNaN(s) ? 100 : s,
|
|
1455
|
+
size: e.size === null ? null : parseFloat(e.size),
|
|
1456
|
+
givenSize: e.size,
|
|
1457
|
+
update: e.update
|
|
1458
|
+
}), this.panes.forEach((r, i) => r.index = i), this.ready && this.$nextTick(() => {
|
|
1459
|
+
this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[t] }), this.$emit("pane-add", { index: t, panes: this.panes.map((r) => ({ min: r.min, max: r.max, size: r.size })) });
|
|
1460
|
+
});
|
|
1461
|
+
},
|
|
1462
|
+
onPaneRemove(e) {
|
|
1463
|
+
const t = this.panes.findIndex((s) => s.id === e._.uid), n = this.panes.splice(t, 1)[0];
|
|
1464
|
+
this.panes.forEach((s, r) => s.index = r), this.$nextTick(() => {
|
|
1465
|
+
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...n, index: t } }), this.$emit("pane-remove", { removed: n, panes: this.panes.map((s) => ({ min: s.min, max: s.max, size: s.size })) });
|
|
1466
|
+
});
|
|
1467
|
+
},
|
|
1468
|
+
resetPaneSizes(e = {}) {
|
|
1469
|
+
!e.addedPane && !e.removedPane ? this.initialPanesSizing() : this.panes.some((t) => t.givenSize !== null || t.min || t.max < 100) ? this.equalizeAfterAddOrRemove(e) : this.equalize(), this.ready && this.$emit("resized", this.panes.map((t) => ({ min: t.min, max: t.max, size: t.size })));
|
|
1470
|
+
},
|
|
1471
|
+
equalize() {
|
|
1472
|
+
const e = 100 / this.panesCount;
|
|
1473
|
+
let t = 0;
|
|
1474
|
+
const n = [], s = [];
|
|
1475
|
+
this.panes.forEach((r) => {
|
|
1476
|
+
r.size = Math.max(Math.min(e, r.max), r.min), t -= r.size, r.size >= r.max && n.push(r.id), r.size <= r.min && s.push(r.id);
|
|
1477
|
+
}), t > 0.1 && this.readjustSizes(t, n, s);
|
|
1478
|
+
},
|
|
1479
|
+
initialPanesSizing() {
|
|
1480
|
+
let e = 100;
|
|
1481
|
+
const t = [], n = [];
|
|
1482
|
+
let s = 0;
|
|
1483
|
+
this.panes.forEach((i) => {
|
|
1484
|
+
e -= i.size, i.size !== null && s++, i.size >= i.max && t.push(i.id), i.size <= i.min && n.push(i.id);
|
|
1485
|
+
});
|
|
1486
|
+
let r = 100;
|
|
1487
|
+
e > 0.1 && (this.panes.forEach((i) => {
|
|
1488
|
+
i.size === null && (i.size = Math.max(Math.min(e / (this.panesCount - s), i.max), i.min)), r -= i.size;
|
|
1489
|
+
}), r > 0.1 && this.readjustSizes(e, t, n));
|
|
1490
|
+
},
|
|
1491
|
+
equalizeAfterAddOrRemove({ addedPane: e, removedPane: t } = {}) {
|
|
1492
|
+
let n = 100 / this.panesCount, s = 0;
|
|
1493
|
+
const r = [], i = [];
|
|
1494
|
+
e && e.givenSize !== null && (n = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((o) => {
|
|
1495
|
+
s -= o.size, o.size >= o.max && r.push(o.id), o.size <= o.min && i.push(o.id);
|
|
1496
|
+
}), !(Math.abs(s) < 0.1) && (this.panes.forEach((o) => {
|
|
1497
|
+
e && e.givenSize !== null && e.id === o.id || (o.size = Math.max(Math.min(n, o.max), o.min)), s -= o.size, o.size >= o.max && r.push(o.id), o.size <= o.min && i.push(o.id);
|
|
1498
|
+
}), s > 0.1 && this.readjustSizes(s, r, i));
|
|
1499
|
+
},
|
|
1500
|
+
readjustSizes(e, t, n) {
|
|
1501
|
+
let s;
|
|
1502
|
+
e > 0 ? s = e / (this.panesCount - t.length) : s = e / (this.panesCount - n.length), this.panes.forEach((r, i) => {
|
|
1503
|
+
if (e > 0 && !t.includes(r.id)) {
|
|
1504
|
+
const o = Math.max(Math.min(r.size + s, r.max), r.min), c = o - r.size;
|
|
1505
|
+
e -= c, r.size = o;
|
|
1506
|
+
} else if (!n.includes(r.id)) {
|
|
1507
|
+
const o = Math.max(Math.min(r.size + s, r.max), r.min), c = o - r.size;
|
|
1508
|
+
e -= c, r.size = o;
|
|
1509
|
+
}
|
|
1510
|
+
r.update({
|
|
1511
|
+
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[r.id].size}%`
|
|
1512
|
+
});
|
|
1513
|
+
}), Math.abs(e) > 0.1 && this.$nextTick(() => {
|
|
1514
|
+
this.ready && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
watch: {
|
|
1519
|
+
panes: {
|
|
1520
|
+
deep: !0,
|
|
1521
|
+
immediate: !1,
|
|
1522
|
+
handler() {
|
|
1523
|
+
this.updatePaneComponents();
|
|
1524
|
+
}
|
|
1525
|
+
},
|
|
1526
|
+
horizontal() {
|
|
1527
|
+
this.updatePaneComponents();
|
|
1528
|
+
},
|
|
1529
|
+
firstSplitter() {
|
|
1530
|
+
this.redoSplitters();
|
|
1531
|
+
},
|
|
1532
|
+
dblClickSplitter(e) {
|
|
1533
|
+
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t, n) => {
|
|
1534
|
+
t.ondblclick = e ? (s) => this.onSplitterDblClick(s, n) : void 0;
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
beforeUnmount() {
|
|
1539
|
+
this.ready = !1;
|
|
1540
|
+
},
|
|
1541
|
+
mounted() {
|
|
1542
|
+
this.container = this.$refs.container, this.checkSplitpanesNodes(), this.redoSplitters(), this.resetPaneSizes(), this.$emit("ready"), this.ready = !0;
|
|
1543
|
+
},
|
|
1544
|
+
render() {
|
|
1545
|
+
return $e(
|
|
1546
|
+
"div",
|
|
1547
|
+
{
|
|
1548
|
+
ref: "container",
|
|
1549
|
+
class: [
|
|
1550
|
+
"splitpanes",
|
|
1551
|
+
`splitpanes--${this.horizontal ? "horizontal" : "vertical"}`,
|
|
1552
|
+
{
|
|
1553
|
+
"splitpanes--dragging": this.touch.dragging
|
|
1554
|
+
}
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1557
|
+
this.$slots.default()
|
|
1558
|
+
);
|
|
1559
|
+
}
|
|
1560
|
+
}, on = (e, t) => {
|
|
1561
|
+
const n = e.__vccOpts || e;
|
|
1562
|
+
for (const [s, r] of t)
|
|
1563
|
+
n[s] = r;
|
|
1564
|
+
return n;
|
|
1565
|
+
}, an = {
|
|
1566
|
+
name: "pane",
|
|
1567
|
+
inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
|
|
1568
|
+
props: {
|
|
1569
|
+
size: { type: [Number, String], default: null },
|
|
1570
|
+
minSize: { type: [Number, String], default: 0 },
|
|
1571
|
+
maxSize: { type: [Number, String], default: 100 }
|
|
1572
|
+
},
|
|
1573
|
+
data: () => ({
|
|
1574
|
+
style: {}
|
|
1575
|
+
}),
|
|
1576
|
+
mounted() {
|
|
1577
|
+
this.onPaneAdd(this);
|
|
1578
|
+
},
|
|
1579
|
+
beforeUnmount() {
|
|
1580
|
+
this.onPaneRemove(this);
|
|
1581
|
+
},
|
|
1582
|
+
methods: {
|
|
1583
|
+
update(e) {
|
|
1584
|
+
this.style = e;
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
computed: {
|
|
1588
|
+
sizeNumber() {
|
|
1589
|
+
return this.size || this.size === 0 ? parseFloat(this.size) : null;
|
|
1590
|
+
},
|
|
1591
|
+
minSizeNumber() {
|
|
1592
|
+
return parseFloat(this.minSize);
|
|
1593
|
+
},
|
|
1594
|
+
maxSizeNumber() {
|
|
1595
|
+
return parseFloat(this.maxSize);
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
watch: {
|
|
1599
|
+
sizeNumber(e) {
|
|
1600
|
+
this.requestUpdate({ target: this, size: e });
|
|
1601
|
+
},
|
|
1602
|
+
minSizeNumber(e) {
|
|
1603
|
+
this.requestUpdate({ target: this, min: e });
|
|
1604
|
+
},
|
|
1605
|
+
maxSizeNumber(e) {
|
|
1606
|
+
this.requestUpdate({ target: this, max: e });
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
};
|
|
1610
|
+
function cn(e, t, n, s, r, i) {
|
|
1611
|
+
return v(), Z("div", {
|
|
1612
|
+
class: "splitpanes__pane",
|
|
1613
|
+
onClick: t[0] || (t[0] = (o) => i.onPaneClick(o, e._.uid)),
|
|
1614
|
+
style: G(e.style)
|
|
1615
|
+
}, [
|
|
1616
|
+
ee(e.$slots, "default")
|
|
1617
|
+
], 4);
|
|
1618
|
+
}
|
|
1619
|
+
const un = /* @__PURE__ */ on(an, [["render", cn]]);
|
|
1620
|
+
const ln = /* @__PURE__ */ q({
|
|
1621
|
+
__name: "index",
|
|
1622
|
+
props: {
|
|
1623
|
+
styles: { type: Object, required: !1, default: () => ({ width: "100%", height: "100%" }) },
|
|
1624
|
+
horizontal: { type: Boolean, required: !1, default: !1 },
|
|
1625
|
+
title: { type: String, required: !1 }
|
|
1626
|
+
},
|
|
1627
|
+
setup(e) {
|
|
1628
|
+
return (t, n) => (v(), xe(we(rn), {
|
|
1629
|
+
horizontal: e.horizontal,
|
|
1630
|
+
style: G(e.styles),
|
|
1631
|
+
class: "splitpanes"
|
|
1632
|
+
}, {
|
|
1633
|
+
default: Pe(() => [
|
|
1634
|
+
ee(t.$slots, "default", {}, void 0, !0)
|
|
1635
|
+
]),
|
|
1636
|
+
_: 3
|
|
1637
|
+
}, 8, ["horizontal", "style"]));
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
const dn = /* @__PURE__ */ $(ln, [["__scopeId", "data-v-a9f55ace"], ["__file", "D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/index.vue"]]), hn = /* @__PURE__ */ q({
|
|
1641
|
+
__name: "pane",
|
|
1642
|
+
props: {
|
|
1643
|
+
styles: { type: Object, required: !0, default: () => ({ background: "#ececec" }) }
|
|
1644
|
+
},
|
|
1645
|
+
setup(e) {
|
|
1646
|
+
return (t, n) => (v(), xe(we(un), {
|
|
1647
|
+
style: G(e.styles)
|
|
1648
|
+
}, {
|
|
1649
|
+
default: Pe(() => [
|
|
1650
|
+
ee(t.$slots, "default")
|
|
1651
|
+
]),
|
|
1652
|
+
_: 3
|
|
1653
|
+
}, 8, ["style"]));
|
|
1654
|
+
}
|
|
1655
|
+
}), pn = /* @__PURE__ */ $(hn, [["__file", "D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/pane.vue"]]), Sn = {
|
|
1656
|
+
install: (e) => {
|
|
1657
|
+
e.component("DVButton", He), e.component("DVP", Ve), e.component("SplitPanes", dn), e.component("Pane", pn);
|
|
23
1658
|
}
|
|
24
1659
|
};
|
|
25
1660
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1661
|
+
He as DVButton,
|
|
1662
|
+
Ve as DVP,
|
|
1663
|
+
mn as DvAxios,
|
|
1664
|
+
pn as Pane,
|
|
1665
|
+
dn as SplitPanes,
|
|
1666
|
+
Sn as default
|
|
29
1667
|
};
|