@quidgest/chatbot 0.0.6 → 0.0.8
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/README.md +8 -0
- package/dist/components/CBMessage.vue.d.ts +4 -4
- package/dist/components/ChatBot.vue.d.ts +8 -7
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -3066
- package/dist/index.mjs +1925 -2377
- package/dist/style.css +1 -93
- package/package.json +13 -9
- package/src/assets/styles/styles.scss +55 -11
- package/src/components/CBMessage.vue +4 -5
- package/src/components/ChatBot.vue +130 -165
- package/src/components/index.ts +3 -6
- package/src/types/message.type.ts +5 -5
- package/src/types/texts.type.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,382 +1,231 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
return function
|
|
4
|
-
return
|
|
1
|
+
import { getCurrentInstance as Be, computed as O, inject as Pt, defineComponent as q, createElementBlock as T, openBlock as A, normalizeStyle as ue, normalizeClass as j, withModifiers as Dt, createCommentVNode as I, createElementVNode as P, createVNode as H, unref as R, renderSlot as k, Fragment as ae, createTextVNode as Ue, toDisplayString as X, createBlock as de, resolveDynamicComponent as Ft, h as je, ref as J, mergeProps as Ne, toRef as kt, readonly as Lt, customRef as qt, getCurrentScope as zt, onScopeDispose as Ut, shallowRef as Se, watch as ee, nextTick as st, toValue as Pe, onMounted as ot, mergeModels as jt, useModel as It, createSlots as Mt, withCtx as _, withDirectives as _t, toHandlers as Ht, vModelText as Wt, useTemplateRef as Qt, renderList as Vt, withKeys as Gt, isRef as Jt } from "vue";
|
|
2
|
+
function it(e, t) {
|
|
3
|
+
return function() {
|
|
4
|
+
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString } = Object.prototype
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return result;
|
|
32
|
-
}
|
|
33
|
-
const isString = typeOfTest("string");
|
|
34
|
-
const isFunction = typeOfTest("function");
|
|
35
|
-
const isNumber = typeOfTest("number");
|
|
36
|
-
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
37
|
-
const isBoolean = (thing) => thing === true || thing === false;
|
|
38
|
-
const isPlainObject = (val) => {
|
|
39
|
-
if (kindOf(val) !== "object") {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
const prototype2 = getPrototypeOf(val);
|
|
43
|
-
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
|
44
|
-
};
|
|
45
|
-
const isDate = kindOfTest("Date");
|
|
46
|
-
const isFile = kindOfTest("File");
|
|
47
|
-
const isBlob = kindOfTest("Blob");
|
|
48
|
-
const isFileList = kindOfTest("FileList");
|
|
49
|
-
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
50
|
-
const isFormData = (thing) => {
|
|
51
|
-
let kind;
|
|
52
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
53
|
-
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
54
|
-
};
|
|
55
|
-
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
56
|
-
const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
57
|
-
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
58
|
-
if (obj === null || typeof obj === "undefined") {
|
|
7
|
+
const { toString: Xt } = Object.prototype, { getPrototypeOf: De } = Object, fe = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = Xt.call(t);
|
|
9
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), z = (e) => (e = e.toLowerCase(), (t) => fe(t) === e), pe = (e) => (t) => typeof t === e, { isArray: Z } = Array, te = pe("undefined");
|
|
11
|
+
function Zt(e) {
|
|
12
|
+
return e !== null && !te(e) && e.constructor !== null && !te(e.constructor) && L(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
|
+
}
|
|
14
|
+
const at = z("ArrayBuffer");
|
|
15
|
+
function Yt(e) {
|
|
16
|
+
let t;
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && at(e.buffer), t;
|
|
18
|
+
}
|
|
19
|
+
const Kt = pe("string"), L = pe("function"), lt = pe("number"), he = (e) => e !== null && typeof e == "object", $t = (e) => e === !0 || e === !1, se = (e) => {
|
|
20
|
+
if (fe(e) !== "object")
|
|
21
|
+
return !1;
|
|
22
|
+
const t = De(e);
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
+
}, en = z("Date"), tn = z("File"), nn = z("Blob"), rn = z("FileList"), sn = (e) => he(e) && L(e.pipe), on = (e) => {
|
|
25
|
+
let t;
|
|
26
|
+
return e && (typeof FormData == "function" && e instanceof FormData || L(e.append) && ((t = fe(e)) === "formdata" || // detect form-data instance
|
|
27
|
+
t === "object" && L(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
+
}, an = z("URLSearchParams"), [ln, cn, un, dn] = ["ReadableStream", "Request", "Response", "Headers"].map(z), fn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
|
+
function ne(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
|
+
if (e === null || typeof e > "u")
|
|
59
31
|
return;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
for (
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
} else {
|
|
71
|
-
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
72
|
-
const len = keys.length;
|
|
73
|
-
let key;
|
|
74
|
-
for (i2 = 0; i2 < len; i2++) {
|
|
75
|
-
key = keys[i2];
|
|
76
|
-
fn.call(null, obj[key], key, obj);
|
|
77
|
-
}
|
|
32
|
+
let r, s;
|
|
33
|
+
if (typeof e != "object" && (e = [e]), Z(e))
|
|
34
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
35
|
+
t.call(null, e[r], r, e);
|
|
36
|
+
else {
|
|
37
|
+
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
38
|
+
let a;
|
|
39
|
+
for (r = 0; r < o; r++)
|
|
40
|
+
a = i[r], t.call(null, e[a], a, e);
|
|
78
41
|
}
|
|
79
42
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (key === _key.toLowerCase()) {
|
|
88
|
-
return _key;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
43
|
+
function ct(e, t) {
|
|
44
|
+
t = t.toLowerCase();
|
|
45
|
+
const n = Object.keys(e);
|
|
46
|
+
let r = n.length, s;
|
|
47
|
+
for (; r-- > 0; )
|
|
48
|
+
if (s = n[r], t === s.toLowerCase())
|
|
49
|
+
return s;
|
|
91
50
|
return null;
|
|
92
51
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
})();
|
|
98
|
-
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
99
|
-
function merge() {
|
|
100
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
101
|
-
const result = {};
|
|
102
|
-
const assignValue = (val, key) => {
|
|
103
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
104
|
-
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
105
|
-
result[targetKey] = merge(result[targetKey], val);
|
|
106
|
-
} else if (isPlainObject(val)) {
|
|
107
|
-
result[targetKey] = merge({}, val);
|
|
108
|
-
} else if (isArray(val)) {
|
|
109
|
-
result[targetKey] = val.slice();
|
|
110
|
-
} else {
|
|
111
|
-
result[targetKey] = val;
|
|
112
|
-
}
|
|
52
|
+
const W = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ut = (e) => !te(e) && e !== W;
|
|
53
|
+
function ve() {
|
|
54
|
+
const { caseless: e } = ut(this) && this || {}, t = {}, n = (r, s) => {
|
|
55
|
+
const i = e && ct(t, s) || s;
|
|
56
|
+
se(t[i]) && se(r) ? t[i] = ve(t[i], r) : se(r) ? t[i] = ve({}, r) : Z(r) ? t[i] = r.slice() : t[i] = r;
|
|
113
57
|
};
|
|
114
|
-
for (let
|
|
115
|
-
arguments[
|
|
116
|
-
|
|
117
|
-
return result;
|
|
58
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
59
|
+
arguments[r] && ne(arguments[r], n);
|
|
60
|
+
return t;
|
|
118
61
|
}
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
};
|
|
129
|
-
const stripBOM = (content) => {
|
|
130
|
-
if (content.charCodeAt(0) === 65279) {
|
|
131
|
-
content = content.slice(1);
|
|
132
|
-
}
|
|
133
|
-
return content;
|
|
134
|
-
};
|
|
135
|
-
const inherits = (constructor, superConstructor, props, descriptors2) => {
|
|
136
|
-
constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
|
|
137
|
-
constructor.prototype.constructor = constructor;
|
|
138
|
-
Object.defineProperty(constructor, "super", {
|
|
139
|
-
value: superConstructor.prototype
|
|
140
|
-
});
|
|
141
|
-
props && Object.assign(constructor.prototype, props);
|
|
142
|
-
};
|
|
143
|
-
const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
144
|
-
let props;
|
|
145
|
-
let i2;
|
|
146
|
-
let prop;
|
|
147
|
-
const merged = {};
|
|
148
|
-
destObj = destObj || {};
|
|
149
|
-
if (sourceObj == null)
|
|
150
|
-
return destObj;
|
|
62
|
+
const pn = (e, t, n, { allOwnKeys: r } = {}) => (ne(t, (s, i) => {
|
|
63
|
+
n && L(s) ? e[i] = it(s, n) : e[i] = s;
|
|
64
|
+
}, { allOwnKeys: r }), e), hn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mn = (e, t, n, r) => {
|
|
65
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
|
+
value: t.prototype
|
|
67
|
+
}), n && Object.assign(e.prototype, n);
|
|
68
|
+
}, gn = (e, t, n, r) => {
|
|
69
|
+
let s, i, o;
|
|
70
|
+
const a = {};
|
|
71
|
+
if (t = t || {}, e == null) return t;
|
|
151
72
|
do {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
73
|
+
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
74
|
+
o = s[i], (!r || r(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
|
|
75
|
+
e = n !== !1 && De(e);
|
|
76
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
|
+
return t;
|
|
78
|
+
}, bn = (e, t, n) => {
|
|
79
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
|
+
const r = e.indexOf(t, n);
|
|
81
|
+
return r !== -1 && r === n;
|
|
82
|
+
}, yn = (e) => {
|
|
83
|
+
if (!e) return null;
|
|
84
|
+
if (Z(e)) return e;
|
|
85
|
+
let t = e.length;
|
|
86
|
+
if (!lt(t)) return null;
|
|
87
|
+
const n = new Array(t);
|
|
88
|
+
for (; t-- > 0; )
|
|
89
|
+
n[t] = e[t];
|
|
90
|
+
return n;
|
|
91
|
+
}, wn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && De(Uint8Array)), An = (e, t) => {
|
|
92
|
+
const r = (e && e[Symbol.iterator]).call(e);
|
|
93
|
+
let s;
|
|
94
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
95
|
+
const i = s.value;
|
|
96
|
+
t.call(e, i[0], i[1]);
|
|
97
|
+
}
|
|
98
|
+
}, En = (e, t) => {
|
|
99
|
+
let n;
|
|
100
|
+
const r = [];
|
|
101
|
+
for (; (n = e.exec(t)) !== null; )
|
|
102
|
+
r.push(n);
|
|
103
|
+
return r;
|
|
104
|
+
}, Sn = z("HTMLFormElement"), vn = (e) => e.toLowerCase().replace(
|
|
105
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
106
|
+
function(n, r, s) {
|
|
107
|
+
return r.toUpperCase() + s;
|
|
108
|
+
}
|
|
109
|
+
), Ie = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Rn = z("RegExp"), dt = (e, t) => {
|
|
110
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
111
|
+
ne(n, (s, i) => {
|
|
112
|
+
let o;
|
|
113
|
+
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
114
|
+
}), Object.defineProperties(e, r);
|
|
115
|
+
}, Tn = (e) => {
|
|
116
|
+
dt(e, (t, n) => {
|
|
117
|
+
if (L(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
118
|
+
return !1;
|
|
119
|
+
const r = e[n];
|
|
120
|
+
if (L(r)) {
|
|
121
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
122
|
+
t.writable = !1;
|
|
123
|
+
return;
|
|
159
124
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return destObj;
|
|
164
|
-
};
|
|
165
|
-
const endsWith = (str, searchString, position) => {
|
|
166
|
-
str = String(str);
|
|
167
|
-
if (position === void 0 || position > str.length) {
|
|
168
|
-
position = str.length;
|
|
169
|
-
}
|
|
170
|
-
position -= searchString.length;
|
|
171
|
-
const lastIndex = str.indexOf(searchString, position);
|
|
172
|
-
return lastIndex !== -1 && lastIndex === position;
|
|
173
|
-
};
|
|
174
|
-
const toArray = (thing) => {
|
|
175
|
-
if (!thing)
|
|
176
|
-
return null;
|
|
177
|
-
if (isArray(thing))
|
|
178
|
-
return thing;
|
|
179
|
-
let i2 = thing.length;
|
|
180
|
-
if (!isNumber(i2))
|
|
181
|
-
return null;
|
|
182
|
-
const arr = new Array(i2);
|
|
183
|
-
while (i2-- > 0) {
|
|
184
|
-
arr[i2] = thing[i2];
|
|
185
|
-
}
|
|
186
|
-
return arr;
|
|
187
|
-
};
|
|
188
|
-
const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
|
|
189
|
-
return (thing) => {
|
|
190
|
-
return TypedArray && thing instanceof TypedArray;
|
|
191
|
-
};
|
|
192
|
-
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
193
|
-
const forEachEntry = (obj, fn) => {
|
|
194
|
-
const generator = obj && obj[Symbol.iterator];
|
|
195
|
-
const iterator = generator.call(obj);
|
|
196
|
-
let result;
|
|
197
|
-
while ((result = iterator.next()) && !result.done) {
|
|
198
|
-
const pair = result.value;
|
|
199
|
-
fn.call(obj, pair[0], pair[1]);
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
const matchAll = (regExp, str) => {
|
|
203
|
-
let matches;
|
|
204
|
-
const arr = [];
|
|
205
|
-
while ((matches = regExp.exec(str)) !== null) {
|
|
206
|
-
arr.push(matches);
|
|
207
|
-
}
|
|
208
|
-
return arr;
|
|
209
|
-
};
|
|
210
|
-
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
211
|
-
const toCamelCase = (str) => {
|
|
212
|
-
return str.toLowerCase().replace(
|
|
213
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
214
|
-
function replacer(m2, p1, p2) {
|
|
215
|
-
return p1.toUpperCase() + p2;
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
220
|
-
const isRegExp = kindOfTest("RegExp");
|
|
221
|
-
const reduceDescriptors = (obj, reducer) => {
|
|
222
|
-
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
223
|
-
const reducedDescriptors = {};
|
|
224
|
-
forEach(descriptors2, (descriptor, name) => {
|
|
225
|
-
let ret;
|
|
226
|
-
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
227
|
-
reducedDescriptors[name] = ret || descriptor;
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
Object.defineProperties(obj, reducedDescriptors);
|
|
231
|
-
};
|
|
232
|
-
const freezeMethods = (obj) => {
|
|
233
|
-
reduceDescriptors(obj, (descriptor, name) => {
|
|
234
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
235
|
-
return false;
|
|
236
|
-
}
|
|
237
|
-
const value = obj[name];
|
|
238
|
-
if (!isFunction(value))
|
|
239
|
-
return;
|
|
240
|
-
descriptor.enumerable = false;
|
|
241
|
-
if ("writable" in descriptor) {
|
|
242
|
-
descriptor.writable = false;
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
if (!descriptor.set) {
|
|
246
|
-
descriptor.set = () => {
|
|
247
|
-
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
248
|
-
};
|
|
125
|
+
t.set || (t.set = () => {
|
|
126
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
127
|
+
});
|
|
249
128
|
}
|
|
250
129
|
});
|
|
251
|
-
}
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
arr.forEach((value) => {
|
|
256
|
-
obj[value] = true;
|
|
130
|
+
}, Cn = (e, t) => {
|
|
131
|
+
const n = {}, r = (s) => {
|
|
132
|
+
s.forEach((i) => {
|
|
133
|
+
n[i] = !0;
|
|
257
134
|
});
|
|
258
135
|
};
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
const DIGIT = "0123456789";
|
|
270
|
-
const ALPHABET = {
|
|
271
|
-
DIGIT,
|
|
272
|
-
ALPHA,
|
|
273
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
274
|
-
};
|
|
275
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
276
|
-
let str = "";
|
|
277
|
-
const { length } = alphabet;
|
|
278
|
-
while (size--) {
|
|
279
|
-
str += alphabet[Math.random() * length | 0];
|
|
280
|
-
}
|
|
281
|
-
return str;
|
|
282
|
-
};
|
|
283
|
-
function isSpecCompliantForm(thing) {
|
|
284
|
-
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
285
|
-
}
|
|
286
|
-
const toJSONObject = (obj) => {
|
|
287
|
-
const stack = new Array(10);
|
|
288
|
-
const visit = (source, i2) => {
|
|
289
|
-
if (isObject(source)) {
|
|
290
|
-
if (stack.indexOf(source) >= 0) {
|
|
136
|
+
return Z(e) ? r(e) : r(String(e).split(t)), n;
|
|
137
|
+
}, On = () => {
|
|
138
|
+
}, xn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
139
|
+
function Bn(e) {
|
|
140
|
+
return !!(e && L(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
141
|
+
}
|
|
142
|
+
const Nn = (e) => {
|
|
143
|
+
const t = new Array(10), n = (r, s) => {
|
|
144
|
+
if (he(r)) {
|
|
145
|
+
if (t.indexOf(r) >= 0)
|
|
291
146
|
return;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
});
|
|
300
|
-
stack[i2] = void 0;
|
|
301
|
-
return target;
|
|
147
|
+
if (!("toJSON" in r)) {
|
|
148
|
+
t[s] = r;
|
|
149
|
+
const i = Z(r) ? [] : {};
|
|
150
|
+
return ne(r, (o, a) => {
|
|
151
|
+
const f = n(o, s + 1);
|
|
152
|
+
!te(f) && (i[a] = f);
|
|
153
|
+
}), t[s] = void 0, i;
|
|
302
154
|
}
|
|
303
155
|
}
|
|
304
|
-
return
|
|
156
|
+
return r;
|
|
305
157
|
};
|
|
306
|
-
return
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
158
|
+
return n(e, 0);
|
|
159
|
+
}, Pn = z("AsyncFunction"), Dn = (e) => e && (he(e) || L(e)) && L(e.then) && L(e.catch), ft = ((e, t) => e ? setImmediate : t ? ((n, r) => (W.addEventListener("message", ({ source: s, data: i }) => {
|
|
160
|
+
s === W && i === n && r.length && r.shift()();
|
|
161
|
+
}, !1), (s) => {
|
|
162
|
+
r.push(s), W.postMessage(n, "*");
|
|
163
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
164
|
+
typeof setImmediate == "function",
|
|
165
|
+
L(W.postMessage)
|
|
166
|
+
), Fn = typeof queueMicrotask < "u" ? queueMicrotask.bind(W) : typeof process < "u" && process.nextTick || ft, l = {
|
|
167
|
+
isArray: Z,
|
|
168
|
+
isArrayBuffer: at,
|
|
169
|
+
isBuffer: Zt,
|
|
170
|
+
isFormData: on,
|
|
171
|
+
isArrayBufferView: Yt,
|
|
172
|
+
isString: Kt,
|
|
173
|
+
isNumber: lt,
|
|
174
|
+
isBoolean: $t,
|
|
175
|
+
isObject: he,
|
|
176
|
+
isPlainObject: se,
|
|
177
|
+
isReadableStream: ln,
|
|
178
|
+
isRequest: cn,
|
|
179
|
+
isResponse: un,
|
|
180
|
+
isHeaders: dn,
|
|
181
|
+
isUndefined: te,
|
|
182
|
+
isDate: en,
|
|
183
|
+
isFile: tn,
|
|
184
|
+
isBlob: nn,
|
|
185
|
+
isRegExp: Rn,
|
|
186
|
+
isFunction: L,
|
|
187
|
+
isStream: sn,
|
|
188
|
+
isURLSearchParams: an,
|
|
189
|
+
isTypedArray: wn,
|
|
190
|
+
isFileList: rn,
|
|
191
|
+
forEach: ne,
|
|
192
|
+
merge: ve,
|
|
193
|
+
extend: pn,
|
|
194
|
+
trim: fn,
|
|
195
|
+
stripBOM: hn,
|
|
196
|
+
inherits: mn,
|
|
197
|
+
toFlatObject: gn,
|
|
198
|
+
kindOf: fe,
|
|
199
|
+
kindOfTest: z,
|
|
200
|
+
endsWith: bn,
|
|
201
|
+
toArray: yn,
|
|
202
|
+
forEachEntry: An,
|
|
203
|
+
matchAll: En,
|
|
204
|
+
isHTMLForm: Sn,
|
|
205
|
+
hasOwnProperty: Ie,
|
|
206
|
+
hasOwnProp: Ie,
|
|
347
207
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
348
|
-
reduceDescriptors,
|
|
349
|
-
freezeMethods,
|
|
350
|
-
toObjectSet,
|
|
351
|
-
toCamelCase,
|
|
352
|
-
noop,
|
|
353
|
-
toFiniteNumber,
|
|
354
|
-
findKey,
|
|
355
|
-
global:
|
|
356
|
-
isContextDefined,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
208
|
+
reduceDescriptors: dt,
|
|
209
|
+
freezeMethods: Tn,
|
|
210
|
+
toObjectSet: Cn,
|
|
211
|
+
toCamelCase: vn,
|
|
212
|
+
noop: On,
|
|
213
|
+
toFiniteNumber: xn,
|
|
214
|
+
findKey: ct,
|
|
215
|
+
global: W,
|
|
216
|
+
isContextDefined: ut,
|
|
217
|
+
isSpecCompliantForm: Bn,
|
|
218
|
+
toJSONObject: Nn,
|
|
219
|
+
isAsyncFn: Pn,
|
|
220
|
+
isThenable: Dn,
|
|
221
|
+
setImmediate: ft,
|
|
222
|
+
asap: Fn
|
|
363
223
|
};
|
|
364
|
-
function
|
|
365
|
-
Error.call(this);
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
this.stack = new Error().stack;
|
|
370
|
-
}
|
|
371
|
-
this.message = message;
|
|
372
|
-
this.name = "AxiosError";
|
|
373
|
-
code && (this.code = code);
|
|
374
|
-
config && (this.config = config);
|
|
375
|
-
request && (this.request = request);
|
|
376
|
-
response && (this.response = response);
|
|
377
|
-
}
|
|
378
|
-
utils$1.inherits(AxiosError, Error, {
|
|
379
|
-
toJSON: function toJSON() {
|
|
224
|
+
function b(e, t, n, r, s) {
|
|
225
|
+
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), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
226
|
+
}
|
|
227
|
+
l.inherits(b, Error, {
|
|
228
|
+
toJSON: function() {
|
|
380
229
|
return {
|
|
381
230
|
// Standard
|
|
382
231
|
message: this.message,
|
|
@@ -390,14 +239,13 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
390
239
|
columnNumber: this.columnNumber,
|
|
391
240
|
stack: this.stack,
|
|
392
241
|
// Axios
|
|
393
|
-
config:
|
|
242
|
+
config: l.toJSONObject(this.config),
|
|
394
243
|
code: this.code,
|
|
395
|
-
status: this.
|
|
244
|
+
status: this.status
|
|
396
245
|
};
|
|
397
246
|
}
|
|
398
247
|
});
|
|
399
|
-
const
|
|
400
|
-
const descriptors = {};
|
|
248
|
+
const pt = b.prototype, ht = {};
|
|
401
249
|
[
|
|
402
250
|
"ERR_BAD_OPTION_VALUE",
|
|
403
251
|
"ERR_BAD_OPTION",
|
|
@@ -412,139 +260,98 @@ const descriptors = {};
|
|
|
412
260
|
"ERR_NOT_SUPPORT",
|
|
413
261
|
"ERR_INVALID_URL"
|
|
414
262
|
// eslint-disable-next-line func-names
|
|
415
|
-
].forEach((
|
|
416
|
-
|
|
263
|
+
].forEach((e) => {
|
|
264
|
+
ht[e] = { value: e };
|
|
417
265
|
});
|
|
418
|
-
Object.defineProperties(
|
|
419
|
-
Object.defineProperty(
|
|
420
|
-
|
|
421
|
-
const
|
|
422
|
-
|
|
423
|
-
return
|
|
424
|
-
}, (
|
|
425
|
-
return prop !== "isAxiosError";
|
|
426
|
-
});
|
|
427
|
-
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
428
|
-
axiosError.cause = error;
|
|
429
|
-
axiosError.name = error.name;
|
|
430
|
-
customProps && Object.assign(axiosError, customProps);
|
|
431
|
-
return axiosError;
|
|
266
|
+
Object.defineProperties(b, ht);
|
|
267
|
+
Object.defineProperty(pt, "isAxiosError", { value: !0 });
|
|
268
|
+
b.from = (e, t, n, r, s, i) => {
|
|
269
|
+
const o = Object.create(pt);
|
|
270
|
+
return l.toFlatObject(e, o, function(f) {
|
|
271
|
+
return f !== Error.prototype;
|
|
272
|
+
}, (a) => a !== "isAxiosError"), b.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
|
|
432
273
|
};
|
|
433
|
-
const
|
|
434
|
-
function
|
|
435
|
-
return
|
|
436
|
-
}
|
|
437
|
-
function
|
|
438
|
-
return
|
|
439
|
-
}
|
|
440
|
-
function
|
|
441
|
-
|
|
442
|
-
return
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
return
|
|
450
|
-
}
|
|
451
|
-
const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
452
|
-
return /^is[A-Z]/.test(prop);
|
|
274
|
+
const kn = null;
|
|
275
|
+
function Re(e) {
|
|
276
|
+
return l.isPlainObject(e) || l.isArray(e);
|
|
277
|
+
}
|
|
278
|
+
function mt(e) {
|
|
279
|
+
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
280
|
+
}
|
|
281
|
+
function Me(e, t, n) {
|
|
282
|
+
return e ? e.concat(t).map(function(s, i) {
|
|
283
|
+
return s = mt(s), !n && i ? "[" + s + "]" : s;
|
|
284
|
+
}).join(n ? "." : "") : t;
|
|
285
|
+
}
|
|
286
|
+
function Ln(e) {
|
|
287
|
+
return l.isArray(e) && !e.some(Re);
|
|
288
|
+
}
|
|
289
|
+
const qn = l.toFlatObject(l, {}, null, function(t) {
|
|
290
|
+
return /^is[A-Z]/.test(t);
|
|
453
291
|
});
|
|
454
|
-
function
|
|
455
|
-
if (!
|
|
292
|
+
function me(e, t, n) {
|
|
293
|
+
if (!l.isObject(e))
|
|
456
294
|
throw new TypeError("target must be an object");
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}, false, function defined(option, source) {
|
|
464
|
-
return !utils$1.isUndefined(source[option]);
|
|
295
|
+
t = t || new FormData(), n = l.toFlatObject(n, {
|
|
296
|
+
metaTokens: !0,
|
|
297
|
+
dots: !1,
|
|
298
|
+
indexes: !1
|
|
299
|
+
}, !1, function(m, h) {
|
|
300
|
+
return !l.isUndefined(h[m]);
|
|
465
301
|
});
|
|
466
|
-
const metaTokens =
|
|
467
|
-
|
|
468
|
-
const dots = options.dots;
|
|
469
|
-
const indexes = options.indexes;
|
|
470
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
471
|
-
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
472
|
-
if (!utils$1.isFunction(visitor)) {
|
|
302
|
+
const r = n.metaTokens, s = n.visitor || u, i = n.dots, o = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
303
|
+
if (!l.isFunction(s))
|
|
473
304
|
throw new TypeError("visitor must be a function");
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
if (
|
|
477
|
-
return
|
|
478
|
-
if (
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
if (
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
let arr = value;
|
|
491
|
-
if (value && !path && typeof value === "object") {
|
|
492
|
-
if (utils$1.endsWith(key, "{}")) {
|
|
493
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
494
|
-
value = JSON.stringify(value);
|
|
495
|
-
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
|
|
496
|
-
key = removeBrackets(key);
|
|
497
|
-
arr.forEach(function each(el, index) {
|
|
498
|
-
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
305
|
+
function c(p) {
|
|
306
|
+
if (p === null) return "";
|
|
307
|
+
if (l.isDate(p))
|
|
308
|
+
return p.toISOString();
|
|
309
|
+
if (!f && l.isBlob(p))
|
|
310
|
+
throw new b("Blob is not supported. Use a Buffer instead.");
|
|
311
|
+
return l.isArrayBuffer(p) || l.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
312
|
+
}
|
|
313
|
+
function u(p, m, h) {
|
|
314
|
+
let v = p;
|
|
315
|
+
if (p && !h && typeof p == "object") {
|
|
316
|
+
if (l.endsWith(m, "{}"))
|
|
317
|
+
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
318
|
+
else if (l.isArray(p) && Ln(p) || (l.isFileList(p) || l.endsWith(m, "[]")) && (v = l.toArray(p)))
|
|
319
|
+
return m = mt(m), v.forEach(function(x, g) {
|
|
320
|
+
!(l.isUndefined(x) || x === null) && t.append(
|
|
499
321
|
// eslint-disable-next-line no-nested-ternary
|
|
500
|
-
|
|
501
|
-
|
|
322
|
+
o === !0 ? Me([m], g, i) : o === null ? m : m + "[]",
|
|
323
|
+
c(x)
|
|
502
324
|
);
|
|
503
|
-
});
|
|
504
|
-
return false;
|
|
505
|
-
}
|
|
325
|
+
}), !1;
|
|
506
326
|
}
|
|
507
|
-
|
|
508
|
-
return true;
|
|
509
|
-
}
|
|
510
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
511
|
-
return false;
|
|
512
|
-
}
|
|
513
|
-
const stack = [];
|
|
514
|
-
const exposedHelpers = Object.assign(predicates, {
|
|
515
|
-
defaultVisitor,
|
|
516
|
-
convertValue,
|
|
517
|
-
isVisitable
|
|
518
|
-
});
|
|
519
|
-
function build(value, path) {
|
|
520
|
-
if (utils$1.isUndefined(value))
|
|
521
|
-
return;
|
|
522
|
-
if (stack.indexOf(value) !== -1) {
|
|
523
|
-
throw Error("Circular reference detected in " + path.join("."));
|
|
524
|
-
}
|
|
525
|
-
stack.push(value);
|
|
526
|
-
utils$1.forEach(value, function each(el, key) {
|
|
527
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
|
|
528
|
-
formData,
|
|
529
|
-
el,
|
|
530
|
-
utils$1.isString(key) ? key.trim() : key,
|
|
531
|
-
path,
|
|
532
|
-
exposedHelpers
|
|
533
|
-
);
|
|
534
|
-
if (result === true) {
|
|
535
|
-
build(el, path ? path.concat(key) : [key]);
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
stack.pop();
|
|
327
|
+
return Re(p) ? !0 : (t.append(Me(h, m, i), c(p)), !1);
|
|
539
328
|
}
|
|
540
|
-
|
|
329
|
+
const d = [], y = Object.assign(qn, {
|
|
330
|
+
defaultVisitor: u,
|
|
331
|
+
convertValue: c,
|
|
332
|
+
isVisitable: Re
|
|
333
|
+
});
|
|
334
|
+
function E(p, m) {
|
|
335
|
+
if (!l.isUndefined(p)) {
|
|
336
|
+
if (d.indexOf(p) !== -1)
|
|
337
|
+
throw Error("Circular reference detected in " + m.join("."));
|
|
338
|
+
d.push(p), l.forEach(p, function(v, C) {
|
|
339
|
+
(!(l.isUndefined(v) || v === null) && s.call(
|
|
340
|
+
t,
|
|
341
|
+
v,
|
|
342
|
+
l.isString(C) ? C.trim() : C,
|
|
343
|
+
m,
|
|
344
|
+
y
|
|
345
|
+
)) === !0 && E(v, m ? m.concat(C) : [C]);
|
|
346
|
+
}), d.pop();
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if (!l.isObject(e))
|
|
541
350
|
throw new TypeError("data must be an object");
|
|
542
|
-
|
|
543
|
-
build(obj);
|
|
544
|
-
return formData;
|
|
351
|
+
return E(e), t;
|
|
545
352
|
}
|
|
546
|
-
function
|
|
547
|
-
const
|
|
353
|
+
function _e(e) {
|
|
354
|
+
const t = {
|
|
548
355
|
"!": "%21",
|
|
549
356
|
"'": "%27",
|
|
550
357
|
"(": "%28",
|
|
@@ -553,51 +360,44 @@ function encode$1(str) {
|
|
|
553
360
|
"%20": "+",
|
|
554
361
|
"%00": "\0"
|
|
555
362
|
};
|
|
556
|
-
return encodeURIComponent(
|
|
557
|
-
return
|
|
363
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
364
|
+
return t[r];
|
|
558
365
|
});
|
|
559
366
|
}
|
|
560
|
-
function
|
|
561
|
-
this._pairs = [];
|
|
562
|
-
params && toFormData(params, this, options);
|
|
367
|
+
function Fe(e, t) {
|
|
368
|
+
this._pairs = [], e && me(e, this, t);
|
|
563
369
|
}
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
this._pairs.push([
|
|
370
|
+
const gt = Fe.prototype;
|
|
371
|
+
gt.append = function(t, n) {
|
|
372
|
+
this._pairs.push([t, n]);
|
|
567
373
|
};
|
|
568
|
-
|
|
569
|
-
const
|
|
570
|
-
return
|
|
571
|
-
} :
|
|
572
|
-
return this._pairs.map(function
|
|
573
|
-
return
|
|
374
|
+
gt.toString = function(t) {
|
|
375
|
+
const n = t ? function(r) {
|
|
376
|
+
return t.call(this, r, _e);
|
|
377
|
+
} : _e;
|
|
378
|
+
return this._pairs.map(function(s) {
|
|
379
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
574
380
|
}, "").join("&");
|
|
575
381
|
};
|
|
576
|
-
function
|
|
577
|
-
return encodeURIComponent(
|
|
578
|
-
}
|
|
579
|
-
function
|
|
580
|
-
if (!
|
|
581
|
-
return
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
if (serializedParams) {
|
|
592
|
-
const hashmarkIndex = url.indexOf("#");
|
|
593
|
-
if (hashmarkIndex !== -1) {
|
|
594
|
-
url = url.slice(0, hashmarkIndex);
|
|
595
|
-
}
|
|
596
|
-
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
382
|
+
function zn(e) {
|
|
383
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
384
|
+
}
|
|
385
|
+
function bt(e, t, n) {
|
|
386
|
+
if (!t)
|
|
387
|
+
return e;
|
|
388
|
+
const r = n && n.encode || zn;
|
|
389
|
+
l.isFunction(n) && (n = {
|
|
390
|
+
serialize: n
|
|
391
|
+
});
|
|
392
|
+
const s = n && n.serialize;
|
|
393
|
+
let i;
|
|
394
|
+
if (s ? i = s(t, n) : i = l.isURLSearchParams(t) ? t.toString() : new Fe(t, n).toString(r), i) {
|
|
395
|
+
const o = e.indexOf("#");
|
|
396
|
+
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
597
397
|
}
|
|
598
|
-
return
|
|
398
|
+
return e;
|
|
599
399
|
}
|
|
600
|
-
class
|
|
400
|
+
class He {
|
|
601
401
|
constructor() {
|
|
602
402
|
this.handlers = [];
|
|
603
403
|
}
|
|
@@ -609,14 +409,13 @@ class InterceptorManager {
|
|
|
609
409
|
*
|
|
610
410
|
* @return {Number} An ID used to remove interceptor later
|
|
611
411
|
*/
|
|
612
|
-
use(
|
|
613
|
-
this.handlers.push({
|
|
614
|
-
fulfilled,
|
|
615
|
-
rejected,
|
|
616
|
-
synchronous:
|
|
617
|
-
runWhen:
|
|
618
|
-
});
|
|
619
|
-
return this.handlers.length - 1;
|
|
412
|
+
use(t, n, r) {
|
|
413
|
+
return this.handlers.push({
|
|
414
|
+
fulfilled: t,
|
|
415
|
+
rejected: n,
|
|
416
|
+
synchronous: r ? r.synchronous : !1,
|
|
417
|
+
runWhen: r ? r.runWhen : null
|
|
418
|
+
}), this.handlers.length - 1;
|
|
620
419
|
}
|
|
621
420
|
/**
|
|
622
421
|
* Remove an interceptor from the stack
|
|
@@ -625,10 +424,8 @@ class InterceptorManager {
|
|
|
625
424
|
*
|
|
626
425
|
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
627
426
|
*/
|
|
628
|
-
eject(
|
|
629
|
-
|
|
630
|
-
this.handlers[id] = null;
|
|
631
|
-
}
|
|
427
|
+
eject(t) {
|
|
428
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
632
429
|
}
|
|
633
430
|
/**
|
|
634
431
|
* Clear all interceptors from the stack
|
|
@@ -636,9 +433,7 @@ class InterceptorManager {
|
|
|
636
433
|
* @returns {void}
|
|
637
434
|
*/
|
|
638
435
|
clear() {
|
|
639
|
-
|
|
640
|
-
this.handlers = [];
|
|
641
|
-
}
|
|
436
|
+
this.handlers && (this.handlers = []);
|
|
642
437
|
}
|
|
643
438
|
/**
|
|
644
439
|
* Iterate over all the registered interceptors
|
|
@@ -650,187 +445,122 @@ class InterceptorManager {
|
|
|
650
445
|
*
|
|
651
446
|
* @returns {void}
|
|
652
447
|
*/
|
|
653
|
-
forEach(
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
fn(h2);
|
|
657
|
-
}
|
|
448
|
+
forEach(t) {
|
|
449
|
+
l.forEach(this.handlers, function(r) {
|
|
450
|
+
r !== null && t(r);
|
|
658
451
|
});
|
|
659
452
|
}
|
|
660
453
|
}
|
|
661
|
-
const
|
|
662
|
-
silentJSONParsing:
|
|
663
|
-
forcedJSONParsing:
|
|
664
|
-
clarifyTimeoutError:
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
668
|
-
const Blob$1 = typeof Blob !== "undefined" ? Blob : null;
|
|
669
|
-
const platform$1 = {
|
|
670
|
-
isBrowser: true,
|
|
454
|
+
const yt = {
|
|
455
|
+
silentJSONParsing: !0,
|
|
456
|
+
forcedJSONParsing: !0,
|
|
457
|
+
clarifyTimeoutError: !1
|
|
458
|
+
}, Un = typeof URLSearchParams < "u" ? URLSearchParams : Fe, jn = typeof FormData < "u" ? FormData : null, In = typeof Blob < "u" ? Blob : null, Mn = {
|
|
459
|
+
isBrowser: !0,
|
|
671
460
|
classes: {
|
|
672
|
-
URLSearchParams:
|
|
673
|
-
FormData:
|
|
674
|
-
Blob:
|
|
461
|
+
URLSearchParams: Un,
|
|
462
|
+
FormData: jn,
|
|
463
|
+
Blob: In
|
|
675
464
|
},
|
|
676
465
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
const hasStandardBrowserEnv = ((product) => {
|
|
680
|
-
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
681
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
682
|
-
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
683
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
684
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
685
|
-
})();
|
|
686
|
-
const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
466
|
+
}, ke = typeof window < "u" && typeof document < "u", Te = typeof navigator == "object" && navigator || void 0, _n = ke && (!Te || ["ReactNative", "NativeScript", "NS"].indexOf(Te.product) < 0), Hn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
467
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Wn = ke && window.location.href || "http://localhost", Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
687
468
|
__proto__: null,
|
|
688
|
-
hasBrowserEnv,
|
|
689
|
-
hasStandardBrowserEnv,
|
|
690
|
-
hasStandardBrowserWebWorkerEnv
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
...
|
|
469
|
+
hasBrowserEnv: ke,
|
|
470
|
+
hasStandardBrowserEnv: _n,
|
|
471
|
+
hasStandardBrowserWebWorkerEnv: Hn,
|
|
472
|
+
navigator: Te,
|
|
473
|
+
origin: Wn
|
|
474
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
475
|
+
...Qn,
|
|
476
|
+
...Mn
|
|
695
477
|
};
|
|
696
|
-
function
|
|
697
|
-
return
|
|
698
|
-
visitor: function(
|
|
699
|
-
|
|
700
|
-
this.append(key, value.toString("base64"));
|
|
701
|
-
return false;
|
|
702
|
-
}
|
|
703
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
478
|
+
function Vn(e, t) {
|
|
479
|
+
return me(e, new N.classes.URLSearchParams(), Object.assign({
|
|
480
|
+
visitor: function(n, r, s, i) {
|
|
481
|
+
return N.isNode && l.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
704
482
|
}
|
|
705
|
-
},
|
|
483
|
+
}, t));
|
|
706
484
|
}
|
|
707
|
-
function
|
|
708
|
-
return
|
|
709
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
710
|
-
});
|
|
485
|
+
function Gn(e) {
|
|
486
|
+
return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
711
487
|
}
|
|
712
|
-
function
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
const
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
if (utils$1.hasOwnProp(target, name)) {
|
|
734
|
-
target[name] = [target[name], value];
|
|
735
|
-
} else {
|
|
736
|
-
target[name] = value;
|
|
737
|
-
}
|
|
738
|
-
return !isNumericKey;
|
|
739
|
-
}
|
|
740
|
-
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
741
|
-
target[name] = [];
|
|
742
|
-
}
|
|
743
|
-
const result = buildPath(path, value, target[name], index);
|
|
744
|
-
if (result && utils$1.isArray(target[name])) {
|
|
745
|
-
target[name] = arrayToObject(target[name]);
|
|
746
|
-
}
|
|
747
|
-
return !isNumericKey;
|
|
748
|
-
}
|
|
749
|
-
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
750
|
-
const obj = {};
|
|
751
|
-
utils$1.forEachEntry(formData, (name, value) => {
|
|
752
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
753
|
-
});
|
|
754
|
-
return obj;
|
|
488
|
+
function Jn(e) {
|
|
489
|
+
const t = {}, n = Object.keys(e);
|
|
490
|
+
let r;
|
|
491
|
+
const s = n.length;
|
|
492
|
+
let i;
|
|
493
|
+
for (r = 0; r < s; r++)
|
|
494
|
+
i = n[r], t[i] = e[i];
|
|
495
|
+
return t;
|
|
496
|
+
}
|
|
497
|
+
function wt(e) {
|
|
498
|
+
function t(n, r, s, i) {
|
|
499
|
+
let o = n[i++];
|
|
500
|
+
if (o === "__proto__") return !0;
|
|
501
|
+
const a = Number.isFinite(+o), f = i >= n.length;
|
|
502
|
+
return o = !o && l.isArray(s) ? s.length : o, f ? (l.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !l.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && l.isArray(s[o]) && (s[o] = Jn(s[o])), !a);
|
|
503
|
+
}
|
|
504
|
+
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
505
|
+
const n = {};
|
|
506
|
+
return l.forEachEntry(e, (r, s) => {
|
|
507
|
+
t(Gn(r), s, n, 0);
|
|
508
|
+
}), n;
|
|
755
509
|
}
|
|
756
510
|
return null;
|
|
757
511
|
}
|
|
758
|
-
function
|
|
759
|
-
if (
|
|
512
|
+
function Xn(e, t, n) {
|
|
513
|
+
if (l.isString(e))
|
|
760
514
|
try {
|
|
761
|
-
(
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
throw e2;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
770
|
-
}
|
|
771
|
-
const defaults = {
|
|
772
|
-
transitional: transitionalDefaults,
|
|
773
|
-
adapter: ["xhr", "http"],
|
|
774
|
-
transformRequest: [function transformRequest(data, headers) {
|
|
775
|
-
const contentType = headers.getContentType() || "";
|
|
776
|
-
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
777
|
-
const isObjectPayload = utils$1.isObject(data);
|
|
778
|
-
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
779
|
-
data = new FormData(data);
|
|
780
|
-
}
|
|
781
|
-
const isFormData2 = utils$1.isFormData(data);
|
|
782
|
-
if (isFormData2) {
|
|
783
|
-
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
784
|
-
}
|
|
785
|
-
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) {
|
|
786
|
-
return data;
|
|
515
|
+
return (t || JSON.parse)(e), l.trim(e);
|
|
516
|
+
} catch (r) {
|
|
517
|
+
if (r.name !== "SyntaxError")
|
|
518
|
+
throw r;
|
|
787
519
|
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
520
|
+
return (n || JSON.stringify)(e);
|
|
521
|
+
}
|
|
522
|
+
const re = {
|
|
523
|
+
transitional: yt,
|
|
524
|
+
adapter: ["xhr", "http", "fetch"],
|
|
525
|
+
transformRequest: [function(t, n) {
|
|
526
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = l.isObject(t);
|
|
527
|
+
if (i && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
528
|
+
return s ? JSON.stringify(wt(t)) : t;
|
|
529
|
+
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
530
|
+
return t;
|
|
531
|
+
if (l.isArrayBufferView(t))
|
|
532
|
+
return t.buffer;
|
|
533
|
+
if (l.isURLSearchParams(t))
|
|
534
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
535
|
+
let a;
|
|
536
|
+
if (i) {
|
|
537
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
538
|
+
return Vn(t, this.formSerializer).toString();
|
|
539
|
+
if ((a = l.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
540
|
+
const f = this.env && this.env.FormData;
|
|
541
|
+
return me(
|
|
542
|
+
a ? { "files[]": t } : t,
|
|
543
|
+
f && new f(),
|
|
805
544
|
this.formSerializer
|
|
806
545
|
);
|
|
807
546
|
}
|
|
808
547
|
}
|
|
809
|
-
|
|
810
|
-
headers.setContentType("application/json", false);
|
|
811
|
-
return stringifySafely(data);
|
|
812
|
-
}
|
|
813
|
-
return data;
|
|
548
|
+
return i || s ? (n.setContentType("application/json", !1), Xn(t)) : t;
|
|
814
549
|
}],
|
|
815
|
-
transformResponse: [function
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
if (
|
|
820
|
-
const
|
|
821
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
550
|
+
transformResponse: [function(t) {
|
|
551
|
+
const n = this.transitional || re.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
552
|
+
if (l.isResponse(t) || l.isReadableStream(t))
|
|
553
|
+
return t;
|
|
554
|
+
if (t && l.isString(t) && (r && !this.responseType || s)) {
|
|
555
|
+
const o = !(n && n.silentJSONParsing) && s;
|
|
822
556
|
try {
|
|
823
|
-
return JSON.parse(
|
|
824
|
-
} catch (
|
|
825
|
-
if (
|
|
826
|
-
|
|
827
|
-
throw AxiosError.from(e2, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
828
|
-
}
|
|
829
|
-
throw e2;
|
|
830
|
-
}
|
|
557
|
+
return JSON.parse(t);
|
|
558
|
+
} catch (a) {
|
|
559
|
+
if (o)
|
|
560
|
+
throw a.name === "SyntaxError" ? b.from(a, b.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
831
561
|
}
|
|
832
562
|
}
|
|
833
|
-
return
|
|
563
|
+
return t;
|
|
834
564
|
}],
|
|
835
565
|
/**
|
|
836
566
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
@@ -842,24 +572,23 @@ const defaults = {
|
|
|
842
572
|
maxContentLength: -1,
|
|
843
573
|
maxBodyLength: -1,
|
|
844
574
|
env: {
|
|
845
|
-
FormData:
|
|
846
|
-
Blob:
|
|
575
|
+
FormData: N.classes.FormData,
|
|
576
|
+
Blob: N.classes.Blob
|
|
847
577
|
},
|
|
848
|
-
validateStatus: function
|
|
849
|
-
return
|
|
578
|
+
validateStatus: function(t) {
|
|
579
|
+
return t >= 200 && t < 300;
|
|
850
580
|
},
|
|
851
581
|
headers: {
|
|
852
582
|
common: {
|
|
853
|
-
|
|
583
|
+
Accept: "application/json, text/plain, */*",
|
|
854
584
|
"Content-Type": void 0
|
|
855
585
|
}
|
|
856
586
|
}
|
|
857
587
|
};
|
|
858
|
-
|
|
859
|
-
|
|
588
|
+
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
589
|
+
re.headers[e] = {};
|
|
860
590
|
});
|
|
861
|
-
const
|
|
862
|
-
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
591
|
+
const Zn = l.toObjectSet([
|
|
863
592
|
"age",
|
|
864
593
|
"authorization",
|
|
865
594
|
"content-length",
|
|
@@ -877,299 +606,281 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
|
877
606
|
"referer",
|
|
878
607
|
"retry-after",
|
|
879
608
|
"user-agent"
|
|
880
|
-
])
|
|
881
|
-
const
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
if (key === "set-cookie") {
|
|
894
|
-
if (parsed[key]) {
|
|
895
|
-
parsed[key].push(val);
|
|
896
|
-
} else {
|
|
897
|
-
parsed[key] = [val];
|
|
898
|
-
}
|
|
899
|
-
} else {
|
|
900
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
901
|
-
}
|
|
902
|
-
});
|
|
903
|
-
return parsed;
|
|
904
|
-
};
|
|
905
|
-
const $internals = Symbol("internals");
|
|
906
|
-
function normalizeHeader(header) {
|
|
907
|
-
return header && String(header).trim().toLowerCase();
|
|
609
|
+
]), Yn = (e) => {
|
|
610
|
+
const t = {};
|
|
611
|
+
let n, r, s;
|
|
612
|
+
return e && e.split(`
|
|
613
|
+
`).forEach(function(o) {
|
|
614
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Zn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
615
|
+
}), t;
|
|
616
|
+
}, We = Symbol("internals");
|
|
617
|
+
function K(e) {
|
|
618
|
+
return e && String(e).trim().toLowerCase();
|
|
908
619
|
}
|
|
909
|
-
function
|
|
910
|
-
|
|
911
|
-
return value;
|
|
912
|
-
}
|
|
913
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
620
|
+
function oe(e) {
|
|
621
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map(oe) : String(e);
|
|
914
622
|
}
|
|
915
|
-
function
|
|
916
|
-
const
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
}
|
|
922
|
-
return tokens;
|
|
623
|
+
function Kn(e) {
|
|
624
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
625
|
+
let r;
|
|
626
|
+
for (; r = n.exec(e); )
|
|
627
|
+
t[r[1]] = r[2];
|
|
628
|
+
return t;
|
|
923
629
|
}
|
|
924
|
-
const
|
|
925
|
-
function
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
return;
|
|
934
|
-
if (utils$1.isString(filter2)) {
|
|
935
|
-
return value.indexOf(filter2) !== -1;
|
|
936
|
-
}
|
|
937
|
-
if (utils$1.isRegExp(filter2)) {
|
|
938
|
-
return filter2.test(value);
|
|
630
|
+
const $n = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
631
|
+
function we(e, t, n, r, s) {
|
|
632
|
+
if (l.isFunction(r))
|
|
633
|
+
return r.call(this, t, n);
|
|
634
|
+
if (s && (t = n), !!l.isString(t)) {
|
|
635
|
+
if (l.isString(r))
|
|
636
|
+
return t.indexOf(r) !== -1;
|
|
637
|
+
if (l.isRegExp(r))
|
|
638
|
+
return r.test(t);
|
|
939
639
|
}
|
|
940
640
|
}
|
|
941
|
-
function
|
|
942
|
-
return
|
|
943
|
-
return char.toUpperCase() + str;
|
|
944
|
-
});
|
|
641
|
+
function er(e) {
|
|
642
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
945
643
|
}
|
|
946
|
-
function
|
|
947
|
-
const
|
|
948
|
-
["get", "set", "has"].forEach((
|
|
949
|
-
Object.defineProperty(
|
|
950
|
-
value: function(
|
|
951
|
-
return this[
|
|
644
|
+
function tr(e, t) {
|
|
645
|
+
const n = l.toCamelCase(" " + t);
|
|
646
|
+
["get", "set", "has"].forEach((r) => {
|
|
647
|
+
Object.defineProperty(e, r + n, {
|
|
648
|
+
value: function(s, i, o) {
|
|
649
|
+
return this[r].call(this, t, s, i, o);
|
|
952
650
|
},
|
|
953
|
-
configurable:
|
|
651
|
+
configurable: !0
|
|
954
652
|
});
|
|
955
653
|
});
|
|
956
654
|
}
|
|
957
|
-
class
|
|
958
|
-
constructor(
|
|
959
|
-
|
|
960
|
-
}
|
|
961
|
-
set(
|
|
962
|
-
const
|
|
963
|
-
function
|
|
964
|
-
const
|
|
965
|
-
if (!
|
|
655
|
+
let F = class {
|
|
656
|
+
constructor(t) {
|
|
657
|
+
t && this.set(t);
|
|
658
|
+
}
|
|
659
|
+
set(t, n, r) {
|
|
660
|
+
const s = this;
|
|
661
|
+
function i(a, f, c) {
|
|
662
|
+
const u = K(f);
|
|
663
|
+
if (!u)
|
|
966
664
|
throw new Error("header name must be a non-empty string");
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
}
|
|
665
|
+
const d = l.findKey(s, u);
|
|
666
|
+
(!d || s[d] === void 0 || c === !0 || c === void 0 && s[d] !== !1) && (s[d || f] = oe(a));
|
|
667
|
+
}
|
|
668
|
+
const o = (a, f) => l.forEach(a, (c, u) => i(c, u, f));
|
|
669
|
+
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
670
|
+
o(t, n);
|
|
671
|
+
else if (l.isString(t) && (t = t.trim()) && !$n(t))
|
|
672
|
+
o(Yn(t), n);
|
|
673
|
+
else if (l.isHeaders(t))
|
|
674
|
+
for (const [a, f] of t.entries())
|
|
675
|
+
i(f, a, r);
|
|
676
|
+
else
|
|
677
|
+
t != null && i(n, t, r);
|
|
981
678
|
return this;
|
|
982
679
|
}
|
|
983
|
-
get(
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
if (
|
|
993
|
-
return
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
return parser.call(this, value, key);
|
|
997
|
-
}
|
|
998
|
-
if (utils$1.isRegExp(parser)) {
|
|
999
|
-
return parser.exec(value);
|
|
1000
|
-
}
|
|
680
|
+
get(t, n) {
|
|
681
|
+
if (t = K(t), t) {
|
|
682
|
+
const r = l.findKey(this, t);
|
|
683
|
+
if (r) {
|
|
684
|
+
const s = this[r];
|
|
685
|
+
if (!n)
|
|
686
|
+
return s;
|
|
687
|
+
if (n === !0)
|
|
688
|
+
return Kn(s);
|
|
689
|
+
if (l.isFunction(n))
|
|
690
|
+
return n.call(this, s, r);
|
|
691
|
+
if (l.isRegExp(n))
|
|
692
|
+
return n.exec(s);
|
|
1001
693
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1002
694
|
}
|
|
1003
695
|
}
|
|
1004
696
|
}
|
|
1005
|
-
has(
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
697
|
+
has(t, n) {
|
|
698
|
+
if (t = K(t), t) {
|
|
699
|
+
const r = l.findKey(this, t);
|
|
700
|
+
return !!(r && this[r] !== void 0 && (!n || we(this, this[r], r, n)));
|
|
1010
701
|
}
|
|
1011
|
-
return
|
|
1012
|
-
}
|
|
1013
|
-
delete(
|
|
1014
|
-
const
|
|
1015
|
-
let
|
|
1016
|
-
function
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
1021
|
-
delete self2[key];
|
|
1022
|
-
deleted = true;
|
|
1023
|
-
}
|
|
702
|
+
return !1;
|
|
703
|
+
}
|
|
704
|
+
delete(t, n) {
|
|
705
|
+
const r = this;
|
|
706
|
+
let s = !1;
|
|
707
|
+
function i(o) {
|
|
708
|
+
if (o = K(o), o) {
|
|
709
|
+
const a = l.findKey(r, o);
|
|
710
|
+
a && (!n || we(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
1024
711
|
}
|
|
1025
712
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
const keys = Object.keys(this);
|
|
1035
|
-
let i2 = keys.length;
|
|
1036
|
-
let deleted = false;
|
|
1037
|
-
while (i2--) {
|
|
1038
|
-
const key = keys[i2];
|
|
1039
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
1040
|
-
delete this[key];
|
|
1041
|
-
deleted = true;
|
|
1042
|
-
}
|
|
713
|
+
return l.isArray(t) ? t.forEach(i) : i(t), s;
|
|
714
|
+
}
|
|
715
|
+
clear(t) {
|
|
716
|
+
const n = Object.keys(this);
|
|
717
|
+
let r = n.length, s = !1;
|
|
718
|
+
for (; r--; ) {
|
|
719
|
+
const i = n[r];
|
|
720
|
+
(!t || we(this, this[i], i, t, !0)) && (delete this[i], s = !0);
|
|
1043
721
|
}
|
|
1044
|
-
return
|
|
1045
|
-
}
|
|
1046
|
-
normalize(
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
self2[key] = normalizeValue(value);
|
|
1053
|
-
delete self2[header];
|
|
722
|
+
return s;
|
|
723
|
+
}
|
|
724
|
+
normalize(t) {
|
|
725
|
+
const n = this, r = {};
|
|
726
|
+
return l.forEach(this, (s, i) => {
|
|
727
|
+
const o = l.findKey(r, i);
|
|
728
|
+
if (o) {
|
|
729
|
+
n[o] = oe(s), delete n[i];
|
|
1054
730
|
return;
|
|
1055
731
|
}
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1060
|
-
self2[normalized] = normalizeValue(value);
|
|
1061
|
-
headers[normalized] = true;
|
|
1062
|
-
});
|
|
1063
|
-
return this;
|
|
732
|
+
const a = t ? er(i) : String(i).trim();
|
|
733
|
+
a !== i && delete n[i], n[a] = oe(s), r[a] = !0;
|
|
734
|
+
}), this;
|
|
1064
735
|
}
|
|
1065
|
-
concat(...
|
|
1066
|
-
return this.constructor.concat(this, ...
|
|
736
|
+
concat(...t) {
|
|
737
|
+
return this.constructor.concat(this, ...t);
|
|
1067
738
|
}
|
|
1068
|
-
toJSON(
|
|
1069
|
-
const
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
});
|
|
1073
|
-
return obj;
|
|
739
|
+
toJSON(t) {
|
|
740
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
741
|
+
return l.forEach(this, (r, s) => {
|
|
742
|
+
r != null && r !== !1 && (n[s] = t && l.isArray(r) ? r.join(", ") : r);
|
|
743
|
+
}), n;
|
|
1074
744
|
}
|
|
1075
745
|
[Symbol.iterator]() {
|
|
1076
746
|
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1077
747
|
}
|
|
1078
748
|
toString() {
|
|
1079
|
-
return Object.entries(this.toJSON()).map(([
|
|
749
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
750
|
+
`);
|
|
1080
751
|
}
|
|
1081
752
|
get [Symbol.toStringTag]() {
|
|
1082
753
|
return "AxiosHeaders";
|
|
1083
754
|
}
|
|
1084
|
-
static from(
|
|
1085
|
-
return
|
|
755
|
+
static from(t) {
|
|
756
|
+
return t instanceof this ? t : new this(t);
|
|
1086
757
|
}
|
|
1087
|
-
static concat(
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
return computed2;
|
|
758
|
+
static concat(t, ...n) {
|
|
759
|
+
const r = new this(t);
|
|
760
|
+
return n.forEach((s) => r.set(s)), r;
|
|
1091
761
|
}
|
|
1092
|
-
static accessor(
|
|
1093
|
-
const
|
|
762
|
+
static accessor(t) {
|
|
763
|
+
const r = (this[We] = this[We] = {
|
|
1094
764
|
accessors: {}
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
const lHeader = normalizeHeader(_header);
|
|
1100
|
-
if (!accessors[lHeader]) {
|
|
1101
|
-
buildAccessors(prototype2, _header);
|
|
1102
|
-
accessors[lHeader] = true;
|
|
1103
|
-
}
|
|
765
|
+
}).accessors, s = this.prototype;
|
|
766
|
+
function i(o) {
|
|
767
|
+
const a = K(o);
|
|
768
|
+
r[a] || (tr(s, o), r[a] = !0);
|
|
1104
769
|
}
|
|
1105
|
-
|
|
1106
|
-
return this;
|
|
770
|
+
return l.isArray(t) ? t.forEach(i) : i(t), this;
|
|
1107
771
|
}
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
let
|
|
772
|
+
};
|
|
773
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
774
|
+
l.reduceDescriptors(F.prototype, ({ value: e }, t) => {
|
|
775
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
1112
776
|
return {
|
|
1113
|
-
get: () =>
|
|
1114
|
-
set(
|
|
1115
|
-
this[
|
|
777
|
+
get: () => e,
|
|
778
|
+
set(r) {
|
|
779
|
+
this[n] = r;
|
|
1116
780
|
}
|
|
1117
781
|
};
|
|
1118
782
|
});
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
utils$1.forEach(fns, function transform(fn) {
|
|
1127
|
-
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
1128
|
-
});
|
|
1129
|
-
headers.normalize();
|
|
1130
|
-
return data;
|
|
783
|
+
l.freezeMethods(F);
|
|
784
|
+
function Ae(e, t) {
|
|
785
|
+
const n = this || re, r = t || n, s = F.from(r.headers);
|
|
786
|
+
let i = r.data;
|
|
787
|
+
return l.forEach(e, function(a) {
|
|
788
|
+
i = a.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
789
|
+
}), s.normalize(), i;
|
|
1131
790
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return !!(
|
|
791
|
+
function At(e) {
|
|
792
|
+
return !!(e && e.__CANCEL__);
|
|
1134
793
|
}
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1137
|
-
this.name = "CanceledError";
|
|
794
|
+
function Y(e, t, n) {
|
|
795
|
+
b.call(this, e ?? "canceled", b.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1138
796
|
}
|
|
1139
|
-
|
|
1140
|
-
__CANCEL__:
|
|
797
|
+
l.inherits(Y, b, {
|
|
798
|
+
__CANCEL__: !0
|
|
1141
799
|
});
|
|
1142
|
-
function
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
}
|
|
1156
|
-
|
|
800
|
+
function Et(e, t, n) {
|
|
801
|
+
const r = n.config.validateStatus;
|
|
802
|
+
!n.status || !r || r(n.status) ? e(n) : t(new b(
|
|
803
|
+
"Request failed with status code " + n.status,
|
|
804
|
+
[b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
805
|
+
n.config,
|
|
806
|
+
n.request,
|
|
807
|
+
n
|
|
808
|
+
));
|
|
809
|
+
}
|
|
810
|
+
function nr(e) {
|
|
811
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
812
|
+
return t && t[1] || "";
|
|
813
|
+
}
|
|
814
|
+
function rr(e, t) {
|
|
815
|
+
e = e || 10;
|
|
816
|
+
const n = new Array(e), r = new Array(e);
|
|
817
|
+
let s = 0, i = 0, o;
|
|
818
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
819
|
+
const c = Date.now(), u = r[i];
|
|
820
|
+
o || (o = c), n[s] = f, r[s] = c;
|
|
821
|
+
let d = i, y = 0;
|
|
822
|
+
for (; d !== s; )
|
|
823
|
+
y += n[d++], d = d % e;
|
|
824
|
+
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), c - o < t)
|
|
825
|
+
return;
|
|
826
|
+
const E = u && c - u;
|
|
827
|
+
return E ? Math.round(y * 1e3 / E) : void 0;
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
function sr(e, t) {
|
|
831
|
+
let n = 0, r = 1e3 / t, s, i;
|
|
832
|
+
const o = (c, u = Date.now()) => {
|
|
833
|
+
n = u, s = null, i && (clearTimeout(i), i = null), e.apply(null, c);
|
|
834
|
+
};
|
|
835
|
+
return [(...c) => {
|
|
836
|
+
const u = Date.now(), d = u - n;
|
|
837
|
+
d >= r ? o(c, u) : (s = c, i || (i = setTimeout(() => {
|
|
838
|
+
i = null, o(s);
|
|
839
|
+
}, r - d)));
|
|
840
|
+
}, () => s && o(s)];
|
|
841
|
+
}
|
|
842
|
+
const le = (e, t, n = 3) => {
|
|
843
|
+
let r = 0;
|
|
844
|
+
const s = rr(50, 250);
|
|
845
|
+
return sr((i) => {
|
|
846
|
+
const o = i.loaded, a = i.lengthComputable ? i.total : void 0, f = o - r, c = s(f), u = o <= a;
|
|
847
|
+
r = o;
|
|
848
|
+
const d = {
|
|
849
|
+
loaded: o,
|
|
850
|
+
total: a,
|
|
851
|
+
progress: a ? o / a : void 0,
|
|
852
|
+
bytes: f,
|
|
853
|
+
rate: c || void 0,
|
|
854
|
+
estimated: c && a && u ? (a - o) / c : void 0,
|
|
855
|
+
event: i,
|
|
856
|
+
lengthComputable: a != null,
|
|
857
|
+
[t ? "download" : "upload"]: !0
|
|
858
|
+
};
|
|
859
|
+
e(d);
|
|
860
|
+
}, n);
|
|
861
|
+
}, Qe = (e, t) => {
|
|
862
|
+
const n = e != null;
|
|
863
|
+
return [(r) => t[0]({
|
|
864
|
+
lengthComputable: n,
|
|
865
|
+
total: e,
|
|
866
|
+
loaded: r
|
|
867
|
+
}), t[1]];
|
|
868
|
+
}, Ve = (e) => (...t) => l.asap(() => e(...t)), or = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, N.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
869
|
+
new URL(N.origin),
|
|
870
|
+
N.navigator && /(msie|trident)/i.test(N.navigator.userAgent)
|
|
871
|
+
) : () => !0, ir = N.hasStandardBrowserEnv ? (
|
|
1157
872
|
// Standard browser envs support document.cookie
|
|
1158
873
|
{
|
|
1159
|
-
write(
|
|
1160
|
-
const
|
|
1161
|
-
|
|
1162
|
-
utils$1.isString(path) && cookie.push("path=" + path);
|
|
1163
|
-
utils$1.isString(domain) && cookie.push("domain=" + domain);
|
|
1164
|
-
secure === true && cookie.push("secure");
|
|
1165
|
-
document.cookie = cookie.join("; ");
|
|
874
|
+
write(e, t, n, r, s, i) {
|
|
875
|
+
const o = [e + "=" + encodeURIComponent(t)];
|
|
876
|
+
l.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), l.isString(r) && o.push("path=" + r), l.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
1166
877
|
},
|
|
1167
|
-
read(
|
|
1168
|
-
const
|
|
1169
|
-
return
|
|
878
|
+
read(e) {
|
|
879
|
+
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
880
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
1170
881
|
},
|
|
1171
|
-
remove(
|
|
1172
|
-
this.write(
|
|
882
|
+
remove(e) {
|
|
883
|
+
this.write(e, "", Date.now() - 864e5);
|
|
1173
884
|
}
|
|
1174
885
|
}
|
|
1175
886
|
) : (
|
|
@@ -1184,498 +895,488 @@ const cookies = platform.hasStandardBrowserEnv ? (
|
|
|
1184
895
|
}
|
|
1185
896
|
}
|
|
1186
897
|
);
|
|
1187
|
-
function
|
|
1188
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(
|
|
1189
|
-
}
|
|
1190
|
-
function combineURLs(baseURL, relativeURL) {
|
|
1191
|
-
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
1192
|
-
}
|
|
1193
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
1194
|
-
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
1195
|
-
return combineURLs(baseURL, requestedURL);
|
|
1196
|
-
}
|
|
1197
|
-
return requestedURL;
|
|
1198
|
-
}
|
|
1199
|
-
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
1200
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
1201
|
-
// whether the request URL is of the same origin as current location.
|
|
1202
|
-
function standardBrowserEnv() {
|
|
1203
|
-
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
1204
|
-
const urlParsingNode = document.createElement("a");
|
|
1205
|
-
let originURL;
|
|
1206
|
-
function resolveURL(url) {
|
|
1207
|
-
let href = url;
|
|
1208
|
-
if (msie) {
|
|
1209
|
-
urlParsingNode.setAttribute("href", href);
|
|
1210
|
-
href = urlParsingNode.href;
|
|
1211
|
-
}
|
|
1212
|
-
urlParsingNode.setAttribute("href", href);
|
|
1213
|
-
return {
|
|
1214
|
-
href: urlParsingNode.href,
|
|
1215
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
1216
|
-
host: urlParsingNode.host,
|
|
1217
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
1218
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
1219
|
-
hostname: urlParsingNode.hostname,
|
|
1220
|
-
port: urlParsingNode.port,
|
|
1221
|
-
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
originURL = resolveURL(window.location.href);
|
|
1225
|
-
return function isURLSameOrigin2(requestURL) {
|
|
1226
|
-
const parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
1227
|
-
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
1228
|
-
};
|
|
1229
|
-
}()
|
|
1230
|
-
) : (
|
|
1231
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
1232
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
1233
|
-
return function isURLSameOrigin2() {
|
|
1234
|
-
return true;
|
|
1235
|
-
};
|
|
1236
|
-
}()
|
|
1237
|
-
);
|
|
1238
|
-
function parseProtocol(url) {
|
|
1239
|
-
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
1240
|
-
return match && match[1] || "";
|
|
1241
|
-
}
|
|
1242
|
-
function speedometer(samplesCount, min) {
|
|
1243
|
-
samplesCount = samplesCount || 10;
|
|
1244
|
-
const bytes = new Array(samplesCount);
|
|
1245
|
-
const timestamps = new Array(samplesCount);
|
|
1246
|
-
let head = 0;
|
|
1247
|
-
let tail = 0;
|
|
1248
|
-
let firstSampleTS;
|
|
1249
|
-
min = min !== void 0 ? min : 1e3;
|
|
1250
|
-
return function push(chunkLength) {
|
|
1251
|
-
const now = Date.now();
|
|
1252
|
-
const startedAt = timestamps[tail];
|
|
1253
|
-
if (!firstSampleTS) {
|
|
1254
|
-
firstSampleTS = now;
|
|
1255
|
-
}
|
|
1256
|
-
bytes[head] = chunkLength;
|
|
1257
|
-
timestamps[head] = now;
|
|
1258
|
-
let i2 = tail;
|
|
1259
|
-
let bytesCount = 0;
|
|
1260
|
-
while (i2 !== head) {
|
|
1261
|
-
bytesCount += bytes[i2++];
|
|
1262
|
-
i2 = i2 % samplesCount;
|
|
1263
|
-
}
|
|
1264
|
-
head = (head + 1) % samplesCount;
|
|
1265
|
-
if (head === tail) {
|
|
1266
|
-
tail = (tail + 1) % samplesCount;
|
|
1267
|
-
}
|
|
1268
|
-
if (now - firstSampleTS < min) {
|
|
1269
|
-
return;
|
|
1270
|
-
}
|
|
1271
|
-
const passed = startedAt && now - startedAt;
|
|
1272
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
1273
|
-
};
|
|
898
|
+
function ar(e) {
|
|
899
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1274
900
|
}
|
|
1275
|
-
function
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
};
|
|
1294
|
-
|
|
1295
|
-
|
|
901
|
+
function lr(e, t) {
|
|
902
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
903
|
+
}
|
|
904
|
+
function St(e, t, n) {
|
|
905
|
+
let r = !ar(t);
|
|
906
|
+
return e && r || n == !1 ? lr(e, t) : t;
|
|
907
|
+
}
|
|
908
|
+
const Ge = (e) => e instanceof F ? { ...e } : e;
|
|
909
|
+
function V(e, t) {
|
|
910
|
+
t = t || {};
|
|
911
|
+
const n = {};
|
|
912
|
+
function r(c, u, d, y) {
|
|
913
|
+
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless: y }, c, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
|
|
914
|
+
}
|
|
915
|
+
function s(c, u, d, y) {
|
|
916
|
+
if (l.isUndefined(u)) {
|
|
917
|
+
if (!l.isUndefined(c))
|
|
918
|
+
return r(void 0, c, d, y);
|
|
919
|
+
} else return r(c, u, d, y);
|
|
920
|
+
}
|
|
921
|
+
function i(c, u) {
|
|
922
|
+
if (!l.isUndefined(u))
|
|
923
|
+
return r(void 0, u);
|
|
924
|
+
}
|
|
925
|
+
function o(c, u) {
|
|
926
|
+
if (l.isUndefined(u)) {
|
|
927
|
+
if (!l.isUndefined(c))
|
|
928
|
+
return r(void 0, c);
|
|
929
|
+
} else return r(void 0, u);
|
|
930
|
+
}
|
|
931
|
+
function a(c, u, d) {
|
|
932
|
+
if (d in t)
|
|
933
|
+
return r(c, u);
|
|
934
|
+
if (d in e)
|
|
935
|
+
return r(void 0, c);
|
|
936
|
+
}
|
|
937
|
+
const f = {
|
|
938
|
+
url: i,
|
|
939
|
+
method: i,
|
|
940
|
+
data: i,
|
|
941
|
+
baseURL: o,
|
|
942
|
+
transformRequest: o,
|
|
943
|
+
transformResponse: o,
|
|
944
|
+
paramsSerializer: o,
|
|
945
|
+
timeout: o,
|
|
946
|
+
timeoutMessage: o,
|
|
947
|
+
withCredentials: o,
|
|
948
|
+
withXSRFToken: o,
|
|
949
|
+
adapter: o,
|
|
950
|
+
responseType: o,
|
|
951
|
+
xsrfCookieName: o,
|
|
952
|
+
xsrfHeaderName: o,
|
|
953
|
+
onUploadProgress: o,
|
|
954
|
+
onDownloadProgress: o,
|
|
955
|
+
decompress: o,
|
|
956
|
+
maxContentLength: o,
|
|
957
|
+
maxBodyLength: o,
|
|
958
|
+
beforeRedirect: o,
|
|
959
|
+
transport: o,
|
|
960
|
+
httpAgent: o,
|
|
961
|
+
httpsAgent: o,
|
|
962
|
+
cancelToken: o,
|
|
963
|
+
socketPath: o,
|
|
964
|
+
responseEncoding: o,
|
|
965
|
+
validateStatus: a,
|
|
966
|
+
headers: (c, u, d) => s(Ge(c), Ge(u), d, !0)
|
|
1296
967
|
};
|
|
968
|
+
return l.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
969
|
+
const d = f[u] || s, y = d(e[u], t[u], u);
|
|
970
|
+
l.isUndefined(y) && d !== a || (n[u] = y);
|
|
971
|
+
}), n;
|
|
1297
972
|
}
|
|
1298
|
-
const
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
let
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
if (!request) {
|
|
973
|
+
const vt = (e) => {
|
|
974
|
+
const t = V({}, e);
|
|
975
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = t;
|
|
976
|
+
t.headers = o = F.from(o), t.url = bt(St(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
|
|
977
|
+
"Authorization",
|
|
978
|
+
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
979
|
+
);
|
|
980
|
+
let f;
|
|
981
|
+
if (l.isFormData(n)) {
|
|
982
|
+
if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
|
|
983
|
+
o.setContentType(void 0);
|
|
984
|
+
else if ((f = o.getContentType()) !== !1) {
|
|
985
|
+
const [c, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
986
|
+
o.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
if (N.hasStandardBrowserEnv && (r && l.isFunction(r) && (r = r(t)), r || r !== !1 && or(t.url))) {
|
|
990
|
+
const c = s && i && ir.read(i);
|
|
991
|
+
c && o.set(s, c);
|
|
992
|
+
}
|
|
993
|
+
return t;
|
|
994
|
+
}, cr = typeof XMLHttpRequest < "u", ur = cr && function(e) {
|
|
995
|
+
return new Promise(function(n, r) {
|
|
996
|
+
const s = vt(e);
|
|
997
|
+
let i = s.data;
|
|
998
|
+
const o = F.from(s.headers).normalize();
|
|
999
|
+
let { responseType: a, onUploadProgress: f, onDownloadProgress: c } = s, u, d, y, E, p;
|
|
1000
|
+
function m() {
|
|
1001
|
+
E && E(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1002
|
+
}
|
|
1003
|
+
let h = new XMLHttpRequest();
|
|
1004
|
+
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1005
|
+
function v() {
|
|
1006
|
+
if (!h)
|
|
1333
1007
|
return;
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
headers: responseHeaders,
|
|
1344
|
-
config,
|
|
1345
|
-
request
|
|
1346
|
-
};
|
|
1347
|
-
settle(function _resolve(value) {
|
|
1348
|
-
resolve(value);
|
|
1349
|
-
done();
|
|
1350
|
-
}, function _reject(err) {
|
|
1351
|
-
reject(err);
|
|
1352
|
-
done();
|
|
1353
|
-
}, response);
|
|
1354
|
-
request = null;
|
|
1355
|
-
}
|
|
1356
|
-
if ("onloadend" in request) {
|
|
1357
|
-
request.onloadend = onloadend;
|
|
1358
|
-
} else {
|
|
1359
|
-
request.onreadystatechange = function handleLoad() {
|
|
1360
|
-
if (!request || request.readyState !== 4) {
|
|
1361
|
-
return;
|
|
1362
|
-
}
|
|
1363
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
|
|
1364
|
-
return;
|
|
1365
|
-
}
|
|
1366
|
-
setTimeout(onloadend);
|
|
1008
|
+
const x = F.from(
|
|
1009
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1010
|
+
), w = {
|
|
1011
|
+
data: !a || a === "text" || a === "json" ? h.responseText : h.response,
|
|
1012
|
+
status: h.status,
|
|
1013
|
+
statusText: h.statusText,
|
|
1014
|
+
headers: x,
|
|
1015
|
+
config: e,
|
|
1016
|
+
request: h
|
|
1367
1017
|
};
|
|
1018
|
+
Et(function(D) {
|
|
1019
|
+
n(D), m();
|
|
1020
|
+
}, function(D) {
|
|
1021
|
+
r(D), m();
|
|
1022
|
+
}, w), h = null;
|
|
1023
|
+
}
|
|
1024
|
+
"onloadend" in h ? h.onloadend = v : h.onreadystatechange = function() {
|
|
1025
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(v);
|
|
1026
|
+
}, h.onabort = function() {
|
|
1027
|
+
h && (r(new b("Request aborted", b.ECONNABORTED, e, h)), h = null);
|
|
1028
|
+
}, h.onerror = function() {
|
|
1029
|
+
r(new b("Network Error", b.ERR_NETWORK, e, h)), h = null;
|
|
1030
|
+
}, h.ontimeout = function() {
|
|
1031
|
+
let g = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1032
|
+
const w = s.transitional || yt;
|
|
1033
|
+
s.timeoutErrorMessage && (g = s.timeoutErrorMessage), r(new b(
|
|
1034
|
+
g,
|
|
1035
|
+
w.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1036
|
+
e,
|
|
1037
|
+
h
|
|
1038
|
+
)), h = null;
|
|
1039
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && l.forEach(o.toJSON(), function(g, w) {
|
|
1040
|
+
h.setRequestHeader(w, g);
|
|
1041
|
+
}), l.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), c && ([y, p] = le(c, !0), h.addEventListener("progress", y)), f && h.upload && ([d, E] = le(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (x) => {
|
|
1042
|
+
h && (r(!x || x.type ? new Y(null, e, h) : x), h.abort(), h = null);
|
|
1043
|
+
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1044
|
+
const C = nr(s.url);
|
|
1045
|
+
if (C && N.protocols.indexOf(C) === -1) {
|
|
1046
|
+
r(new b("Unsupported protocol " + C + ":", b.ERR_BAD_REQUEST, e));
|
|
1047
|
+
return;
|
|
1368
1048
|
}
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1049
|
+
h.send(i || null);
|
|
1050
|
+
});
|
|
1051
|
+
}, dr = (e, t) => {
|
|
1052
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1053
|
+
if (t || n) {
|
|
1054
|
+
let r = new AbortController(), s;
|
|
1055
|
+
const i = function(c) {
|
|
1056
|
+
if (!s) {
|
|
1057
|
+
s = !0, a();
|
|
1058
|
+
const u = c instanceof Error ? c : this.reason;
|
|
1059
|
+
r.abort(u instanceof b ? u : new Y(u instanceof Error ? u.message : u));
|
|
1372
1060
|
}
|
|
1373
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
1374
|
-
request = null;
|
|
1375
1061
|
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1062
|
+
let o = t && setTimeout(() => {
|
|
1063
|
+
o = null, i(new b(`timeout ${t} of ms exceeded`, b.ETIMEDOUT));
|
|
1064
|
+
}, t);
|
|
1065
|
+
const a = () => {
|
|
1066
|
+
e && (o && clearTimeout(o), o = null, e.forEach((c) => {
|
|
1067
|
+
c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
|
|
1068
|
+
}), e = null);
|
|
1379
1069
|
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
}
|
|
1409
|
-
if (!utils$1.isUndefined(config.withCredentials)) {
|
|
1410
|
-
request.withCredentials = !!config.withCredentials;
|
|
1411
|
-
}
|
|
1412
|
-
if (responseType && responseType !== "json") {
|
|
1413
|
-
request.responseType = config.responseType;
|
|
1414
|
-
}
|
|
1415
|
-
if (typeof config.onDownloadProgress === "function") {
|
|
1416
|
-
request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
|
|
1417
|
-
}
|
|
1418
|
-
if (typeof config.onUploadProgress === "function" && request.upload) {
|
|
1419
|
-
request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
|
|
1070
|
+
e.forEach((c) => c.addEventListener("abort", i));
|
|
1071
|
+
const { signal: f } = r;
|
|
1072
|
+
return f.unsubscribe = () => l.asap(a), f;
|
|
1073
|
+
}
|
|
1074
|
+
}, fr = function* (e, t) {
|
|
1075
|
+
let n = e.byteLength;
|
|
1076
|
+
if (n < t) {
|
|
1077
|
+
yield e;
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1080
|
+
let r = 0, s;
|
|
1081
|
+
for (; r < n; )
|
|
1082
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
1083
|
+
}, pr = async function* (e, t) {
|
|
1084
|
+
for await (const n of hr(e))
|
|
1085
|
+
yield* fr(n, t);
|
|
1086
|
+
}, hr = async function* (e) {
|
|
1087
|
+
if (e[Symbol.asyncIterator]) {
|
|
1088
|
+
yield* e;
|
|
1089
|
+
return;
|
|
1090
|
+
}
|
|
1091
|
+
const t = e.getReader();
|
|
1092
|
+
try {
|
|
1093
|
+
for (; ; ) {
|
|
1094
|
+
const { done: n, value: r } = await t.read();
|
|
1095
|
+
if (n)
|
|
1096
|
+
break;
|
|
1097
|
+
yield r;
|
|
1420
1098
|
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1099
|
+
} finally {
|
|
1100
|
+
await t.cancel();
|
|
1101
|
+
}
|
|
1102
|
+
}, Je = (e, t, n, r) => {
|
|
1103
|
+
const s = pr(e, t);
|
|
1104
|
+
let i = 0, o, a = (f) => {
|
|
1105
|
+
o || (o = !0, r && r(f));
|
|
1106
|
+
};
|
|
1107
|
+
return new ReadableStream({
|
|
1108
|
+
async pull(f) {
|
|
1109
|
+
try {
|
|
1110
|
+
const { done: c, value: u } = await s.next();
|
|
1111
|
+
if (c) {
|
|
1112
|
+
a(), f.close();
|
|
1424
1113
|
return;
|
|
1425
1114
|
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1115
|
+
let d = u.byteLength;
|
|
1116
|
+
if (n) {
|
|
1117
|
+
let y = i += d;
|
|
1118
|
+
n(y);
|
|
1119
|
+
}
|
|
1120
|
+
f.enqueue(new Uint8Array(u));
|
|
1121
|
+
} catch (c) {
|
|
1122
|
+
throw a(c), c;
|
|
1433
1123
|
}
|
|
1124
|
+
},
|
|
1125
|
+
cancel(f) {
|
|
1126
|
+
return a(f), s.return();
|
|
1434
1127
|
}
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
1438
|
-
return;
|
|
1439
|
-
}
|
|
1440
|
-
request.send(requestData || null);
|
|
1128
|
+
}, {
|
|
1129
|
+
highWaterMark: 2
|
|
1441
1130
|
});
|
|
1131
|
+
}, ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Rt = ge && typeof ReadableStream == "function", mr = ge && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Tt = (e, ...t) => {
|
|
1132
|
+
try {
|
|
1133
|
+
return !!e(...t);
|
|
1134
|
+
} catch {
|
|
1135
|
+
return !1;
|
|
1136
|
+
}
|
|
1137
|
+
}, gr = Rt && Tt(() => {
|
|
1138
|
+
let e = !1;
|
|
1139
|
+
const t = new Request(N.origin, {
|
|
1140
|
+
body: new ReadableStream(),
|
|
1141
|
+
method: "POST",
|
|
1142
|
+
get duplex() {
|
|
1143
|
+
return e = !0, "half";
|
|
1144
|
+
}
|
|
1145
|
+
}).headers.has("Content-Type");
|
|
1146
|
+
return e && !t;
|
|
1147
|
+
}), Xe = 64 * 1024, Ce = Rt && Tt(() => l.isReadableStream(new Response("").body)), ce = {
|
|
1148
|
+
stream: Ce && ((e) => e.body)
|
|
1442
1149
|
};
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1150
|
+
ge && ((e) => {
|
|
1151
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1152
|
+
!ce[t] && (ce[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1153
|
+
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, r);
|
|
1154
|
+
});
|
|
1155
|
+
});
|
|
1156
|
+
})(new Response());
|
|
1157
|
+
const br = async (e) => {
|
|
1158
|
+
if (e == null)
|
|
1159
|
+
return 0;
|
|
1160
|
+
if (l.isBlob(e))
|
|
1161
|
+
return e.size;
|
|
1162
|
+
if (l.isSpecCompliantForm(e))
|
|
1163
|
+
return (await new Request(N.origin, {
|
|
1164
|
+
method: "POST",
|
|
1165
|
+
body: e
|
|
1166
|
+
}).arrayBuffer()).byteLength;
|
|
1167
|
+
if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
|
|
1168
|
+
return e.byteLength;
|
|
1169
|
+
if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
|
|
1170
|
+
return (await mr(e)).byteLength;
|
|
1171
|
+
}, yr = async (e, t) => {
|
|
1172
|
+
const n = l.toFiniteNumber(e.getContentLength());
|
|
1173
|
+
return n ?? br(t);
|
|
1174
|
+
}, wr = ge && (async (e) => {
|
|
1175
|
+
let {
|
|
1176
|
+
url: t,
|
|
1177
|
+
method: n,
|
|
1178
|
+
data: r,
|
|
1179
|
+
signal: s,
|
|
1180
|
+
cancelToken: i,
|
|
1181
|
+
timeout: o,
|
|
1182
|
+
onDownloadProgress: a,
|
|
1183
|
+
onUploadProgress: f,
|
|
1184
|
+
responseType: c,
|
|
1185
|
+
headers: u,
|
|
1186
|
+
withCredentials: d = "same-origin",
|
|
1187
|
+
fetchOptions: y
|
|
1188
|
+
} = vt(e);
|
|
1189
|
+
c = c ? (c + "").toLowerCase() : "text";
|
|
1190
|
+
let E = dr([s, i && i.toAbortSignal()], o), p;
|
|
1191
|
+
const m = E && E.unsubscribe && (() => {
|
|
1192
|
+
E.unsubscribe();
|
|
1193
|
+
});
|
|
1194
|
+
let h;
|
|
1195
|
+
try {
|
|
1196
|
+
if (f && gr && n !== "get" && n !== "head" && (h = await yr(u, r)) !== 0) {
|
|
1197
|
+
let w = new Request(t, {
|
|
1198
|
+
method: "POST",
|
|
1199
|
+
body: r,
|
|
1200
|
+
duplex: "half"
|
|
1201
|
+
}), B;
|
|
1202
|
+
if (l.isFormData(r) && (B = w.headers.get("content-type")) && u.setContentType(B), w.body) {
|
|
1203
|
+
const [D, G] = Qe(
|
|
1204
|
+
h,
|
|
1205
|
+
le(Ve(f))
|
|
1206
|
+
);
|
|
1207
|
+
r = Je(w.body, Xe, D, G);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
l.isString(d) || (d = d ? "include" : "omit");
|
|
1211
|
+
const v = "credentials" in Request.prototype;
|
|
1212
|
+
p = new Request(t, {
|
|
1213
|
+
...y,
|
|
1214
|
+
signal: E,
|
|
1215
|
+
method: n.toUpperCase(),
|
|
1216
|
+
headers: u.normalize().toJSON(),
|
|
1217
|
+
body: r,
|
|
1218
|
+
duplex: "half",
|
|
1219
|
+
credentials: v ? d : void 0
|
|
1220
|
+
});
|
|
1221
|
+
let C = await fetch(p);
|
|
1222
|
+
const x = Ce && (c === "stream" || c === "response");
|
|
1223
|
+
if (Ce && (a || x && m)) {
|
|
1224
|
+
const w = {};
|
|
1225
|
+
["status", "statusText", "headers"].forEach((ye) => {
|
|
1226
|
+
w[ye] = C[ye];
|
|
1227
|
+
});
|
|
1228
|
+
const B = l.toFiniteNumber(C.headers.get("content-length")), [D, G] = a && Qe(
|
|
1229
|
+
B,
|
|
1230
|
+
le(Ve(a), !0)
|
|
1231
|
+
) || [];
|
|
1232
|
+
C = new Response(
|
|
1233
|
+
Je(C.body, Xe, D, () => {
|
|
1234
|
+
G && G(), m && m();
|
|
1235
|
+
}),
|
|
1236
|
+
w
|
|
1237
|
+
);
|
|
1238
|
+
}
|
|
1239
|
+
c = c || "text";
|
|
1240
|
+
let g = await ce[l.findKey(ce, c) || "text"](C, e);
|
|
1241
|
+
return !x && m && m(), await new Promise((w, B) => {
|
|
1242
|
+
Et(w, B, {
|
|
1243
|
+
data: g,
|
|
1244
|
+
headers: F.from(C.headers),
|
|
1245
|
+
status: C.status,
|
|
1246
|
+
statusText: C.statusText,
|
|
1247
|
+
config: e,
|
|
1248
|
+
request: p
|
|
1249
|
+
});
|
|
1250
|
+
});
|
|
1251
|
+
} catch (v) {
|
|
1252
|
+
throw m && m(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
|
|
1253
|
+
new b("Network Error", b.ERR_NETWORK, e, p),
|
|
1254
|
+
{
|
|
1255
|
+
cause: v.cause || v
|
|
1256
|
+
}
|
|
1257
|
+
) : b.from(v, v && v.code, e, p);
|
|
1258
|
+
}
|
|
1259
|
+
}), Oe = {
|
|
1260
|
+
http: kn,
|
|
1261
|
+
xhr: ur,
|
|
1262
|
+
fetch: wr
|
|
1446
1263
|
};
|
|
1447
|
-
|
|
1448
|
-
if (
|
|
1264
|
+
l.forEach(Oe, (e, t) => {
|
|
1265
|
+
if (e) {
|
|
1449
1266
|
try {
|
|
1450
|
-
Object.defineProperty(
|
|
1451
|
-
} catch
|
|
1267
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1268
|
+
} catch {
|
|
1452
1269
|
}
|
|
1453
|
-
Object.defineProperty(
|
|
1270
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1454
1271
|
}
|
|
1455
1272
|
});
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
let
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
adapter = nameOrAdapter;
|
|
1469
|
-
if (!isResolvedHandle(nameOrAdapter)) {
|
|
1470
|
-
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
1471
|
-
if (adapter === void 0) {
|
|
1472
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
if (adapter) {
|
|
1273
|
+
const Ze = (e) => `- ${e}`, Ar = (e) => l.isFunction(e) || e === null || e === !1, Ct = {
|
|
1274
|
+
getAdapter: (e) => {
|
|
1275
|
+
e = l.isArray(e) ? e : [e];
|
|
1276
|
+
const { length: t } = e;
|
|
1277
|
+
let n, r;
|
|
1278
|
+
const s = {};
|
|
1279
|
+
for (let i = 0; i < t; i++) {
|
|
1280
|
+
n = e[i];
|
|
1281
|
+
let o;
|
|
1282
|
+
if (r = n, !Ar(n) && (r = Oe[(o = String(n)).toLowerCase()], r === void 0))
|
|
1283
|
+
throw new b(`Unknown adapter '${o}'`);
|
|
1284
|
+
if (r)
|
|
1476
1285
|
break;
|
|
1477
|
-
|
|
1478
|
-
rejectedReasons[id || "#" + i2] = adapter;
|
|
1286
|
+
s[o || "#" + i] = r;
|
|
1479
1287
|
}
|
|
1480
|
-
if (!
|
|
1481
|
-
const
|
|
1482
|
-
([
|
|
1288
|
+
if (!r) {
|
|
1289
|
+
const i = Object.entries(s).map(
|
|
1290
|
+
([a, f]) => `adapter ${a} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1483
1291
|
);
|
|
1484
|
-
let
|
|
1485
|
-
|
|
1486
|
-
|
|
1292
|
+
let o = t ? i.length > 1 ? `since :
|
|
1293
|
+
` + i.map(Ze).join(`
|
|
1294
|
+
`) : " " + Ze(i[0]) : "as no adapter specified";
|
|
1295
|
+
throw new b(
|
|
1296
|
+
"There is no suitable adapter to dispatch the request " + o,
|
|
1487
1297
|
"ERR_NOT_SUPPORT"
|
|
1488
1298
|
);
|
|
1489
1299
|
}
|
|
1490
|
-
return
|
|
1300
|
+
return r;
|
|
1491
1301
|
},
|
|
1492
|
-
adapters:
|
|
1302
|
+
adapters: Oe
|
|
1493
1303
|
};
|
|
1494
|
-
function
|
|
1495
|
-
if (
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1498
|
-
if (config.signal && config.signal.aborted) {
|
|
1499
|
-
throw new CanceledError(null, config);
|
|
1500
|
-
}
|
|
1304
|
+
function Ee(e) {
|
|
1305
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1306
|
+
throw new Y(null, e);
|
|
1501
1307
|
}
|
|
1502
|
-
function
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
response
|
|
1519
|
-
);
|
|
1520
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
1521
|
-
return response;
|
|
1522
|
-
}, function onAdapterRejection(reason) {
|
|
1523
|
-
if (!isCancel(reason)) {
|
|
1524
|
-
throwIfCancellationRequested(config);
|
|
1525
|
-
if (reason && reason.response) {
|
|
1526
|
-
reason.response.data = transformData.call(
|
|
1527
|
-
config,
|
|
1528
|
-
config.transformResponse,
|
|
1529
|
-
reason.response
|
|
1530
|
-
);
|
|
1531
|
-
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
return Promise.reject(reason);
|
|
1308
|
+
function Ye(e) {
|
|
1309
|
+
return Ee(e), e.headers = F.from(e.headers), e.data = Ae.call(
|
|
1310
|
+
e,
|
|
1311
|
+
e.transformRequest
|
|
1312
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ct.getAdapter(e.adapter || re.adapter)(e).then(function(r) {
|
|
1313
|
+
return Ee(e), r.data = Ae.call(
|
|
1314
|
+
e,
|
|
1315
|
+
e.transformResponse,
|
|
1316
|
+
r
|
|
1317
|
+
), r.headers = F.from(r.headers), r;
|
|
1318
|
+
}, function(r) {
|
|
1319
|
+
return At(r) || (Ee(e), r && r.response && (r.response.data = Ae.call(
|
|
1320
|
+
e,
|
|
1321
|
+
e.transformResponse,
|
|
1322
|
+
r.response
|
|
1323
|
+
), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
|
|
1535
1324
|
});
|
|
1536
1325
|
}
|
|
1537
|
-
const
|
|
1538
|
-
function
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
function getMergedValue(target, source, caseless) {
|
|
1542
|
-
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
1543
|
-
return utils$1.merge.call({ caseless }, target, source);
|
|
1544
|
-
} else if (utils$1.isPlainObject(source)) {
|
|
1545
|
-
return utils$1.merge({}, source);
|
|
1546
|
-
} else if (utils$1.isArray(source)) {
|
|
1547
|
-
return source.slice();
|
|
1548
|
-
}
|
|
1549
|
-
return source;
|
|
1550
|
-
}
|
|
1551
|
-
function mergeDeepProperties(a2, b2, caseless) {
|
|
1552
|
-
if (!utils$1.isUndefined(b2)) {
|
|
1553
|
-
return getMergedValue(a2, b2, caseless);
|
|
1554
|
-
} else if (!utils$1.isUndefined(a2)) {
|
|
1555
|
-
return getMergedValue(void 0, a2, caseless);
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
function valueFromConfig2(a2, b2) {
|
|
1559
|
-
if (!utils$1.isUndefined(b2)) {
|
|
1560
|
-
return getMergedValue(void 0, b2);
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
function defaultToConfig2(a2, b2) {
|
|
1564
|
-
if (!utils$1.isUndefined(b2)) {
|
|
1565
|
-
return getMergedValue(void 0, b2);
|
|
1566
|
-
} else if (!utils$1.isUndefined(a2)) {
|
|
1567
|
-
return getMergedValue(void 0, a2);
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
function mergeDirectKeys(a2, b2, prop) {
|
|
1571
|
-
if (prop in config2) {
|
|
1572
|
-
return getMergedValue(a2, b2);
|
|
1573
|
-
} else if (prop in config1) {
|
|
1574
|
-
return getMergedValue(void 0, a2);
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
const mergeMap = {
|
|
1578
|
-
url: valueFromConfig2,
|
|
1579
|
-
method: valueFromConfig2,
|
|
1580
|
-
data: valueFromConfig2,
|
|
1581
|
-
baseURL: defaultToConfig2,
|
|
1582
|
-
transformRequest: defaultToConfig2,
|
|
1583
|
-
transformResponse: defaultToConfig2,
|
|
1584
|
-
paramsSerializer: defaultToConfig2,
|
|
1585
|
-
timeout: defaultToConfig2,
|
|
1586
|
-
timeoutMessage: defaultToConfig2,
|
|
1587
|
-
withCredentials: defaultToConfig2,
|
|
1588
|
-
withXSRFToken: defaultToConfig2,
|
|
1589
|
-
adapter: defaultToConfig2,
|
|
1590
|
-
responseType: defaultToConfig2,
|
|
1591
|
-
xsrfCookieName: defaultToConfig2,
|
|
1592
|
-
xsrfHeaderName: defaultToConfig2,
|
|
1593
|
-
onUploadProgress: defaultToConfig2,
|
|
1594
|
-
onDownloadProgress: defaultToConfig2,
|
|
1595
|
-
decompress: defaultToConfig2,
|
|
1596
|
-
maxContentLength: defaultToConfig2,
|
|
1597
|
-
maxBodyLength: defaultToConfig2,
|
|
1598
|
-
beforeRedirect: defaultToConfig2,
|
|
1599
|
-
transport: defaultToConfig2,
|
|
1600
|
-
httpAgent: defaultToConfig2,
|
|
1601
|
-
httpsAgent: defaultToConfig2,
|
|
1602
|
-
cancelToken: defaultToConfig2,
|
|
1603
|
-
socketPath: defaultToConfig2,
|
|
1604
|
-
responseEncoding: defaultToConfig2,
|
|
1605
|
-
validateStatus: mergeDirectKeys,
|
|
1606
|
-
headers: (a2, b2) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), true)
|
|
1607
|
-
};
|
|
1608
|
-
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
1609
|
-
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
1610
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
1611
|
-
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
1612
|
-
});
|
|
1613
|
-
return config;
|
|
1614
|
-
}
|
|
1615
|
-
const VERSION = "1.6.7";
|
|
1616
|
-
const validators$1 = {};
|
|
1617
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i2) => {
|
|
1618
|
-
validators$1[type] = function validator2(thing) {
|
|
1619
|
-
return typeof thing === type || "a" + (i2 < 1 ? "n " : " ") + type;
|
|
1326
|
+
const Ot = "1.8.3", be = {};
|
|
1327
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1328
|
+
be[e] = function(r) {
|
|
1329
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1620
1330
|
};
|
|
1621
1331
|
});
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1624
|
-
function
|
|
1625
|
-
return "[Axios v" +
|
|
1626
|
-
}
|
|
1627
|
-
return (
|
|
1628
|
-
if (
|
|
1629
|
-
throw new
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
);
|
|
1633
|
-
}
|
|
1634
|
-
if (version && !deprecatedWarnings[opt]) {
|
|
1635
|
-
deprecatedWarnings[opt] = true;
|
|
1636
|
-
console.warn(
|
|
1637
|
-
formatMessage(
|
|
1638
|
-
opt,
|
|
1639
|
-
" has been deprecated since v" + version + " and will be removed in the near future"
|
|
1640
|
-
)
|
|
1332
|
+
const Ke = {};
|
|
1333
|
+
be.transitional = function(t, n, r) {
|
|
1334
|
+
function s(i, o) {
|
|
1335
|
+
return "[Axios v" + Ot + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1336
|
+
}
|
|
1337
|
+
return (i, o, a) => {
|
|
1338
|
+
if (t === !1)
|
|
1339
|
+
throw new b(
|
|
1340
|
+
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1341
|
+
b.ERR_DEPRECATED
|
|
1641
1342
|
);
|
|
1642
|
-
|
|
1643
|
-
|
|
1343
|
+
return n && !Ke[o] && (Ke[o] = !0, console.warn(
|
|
1344
|
+
s(
|
|
1345
|
+
o,
|
|
1346
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1347
|
+
)
|
|
1348
|
+
)), t ? t(i, o, a) : !0;
|
|
1644
1349
|
};
|
|
1645
1350
|
};
|
|
1646
|
-
function
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
const
|
|
1658
|
-
if (
|
|
1659
|
-
throw new
|
|
1660
|
-
}
|
|
1351
|
+
be.spelling = function(t) {
|
|
1352
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1353
|
+
};
|
|
1354
|
+
function Er(e, t, n) {
|
|
1355
|
+
if (typeof e != "object")
|
|
1356
|
+
throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1357
|
+
const r = Object.keys(e);
|
|
1358
|
+
let s = r.length;
|
|
1359
|
+
for (; s-- > 0; ) {
|
|
1360
|
+
const i = r[s], o = t[i];
|
|
1361
|
+
if (o) {
|
|
1362
|
+
const a = e[i], f = a === void 0 || o(a, i, e);
|
|
1363
|
+
if (f !== !0)
|
|
1364
|
+
throw new b("option " + i + " must be " + f, b.ERR_BAD_OPTION_VALUE);
|
|
1661
1365
|
continue;
|
|
1662
1366
|
}
|
|
1663
|
-
if (
|
|
1664
|
-
throw new
|
|
1665
|
-
}
|
|
1367
|
+
if (n !== !0)
|
|
1368
|
+
throw new b("Unknown option " + i, b.ERR_BAD_OPTION);
|
|
1666
1369
|
}
|
|
1667
1370
|
}
|
|
1668
|
-
const
|
|
1669
|
-
assertOptions,
|
|
1670
|
-
validators:
|
|
1671
|
-
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
request: new InterceptorManager(),
|
|
1678
|
-
response: new InterceptorManager()
|
|
1371
|
+
const ie = {
|
|
1372
|
+
assertOptions: Er,
|
|
1373
|
+
validators: be
|
|
1374
|
+
}, U = ie.validators;
|
|
1375
|
+
let Q = class {
|
|
1376
|
+
constructor(t) {
|
|
1377
|
+
this.defaults = t, this.interceptors = {
|
|
1378
|
+
request: new He(),
|
|
1379
|
+
response: new He()
|
|
1679
1380
|
};
|
|
1680
1381
|
}
|
|
1681
1382
|
/**
|
|
@@ -1686,244 +1387,197 @@ class Axios {
|
|
|
1686
1387
|
*
|
|
1687
1388
|
* @returns {Promise} The Promise to be fulfilled
|
|
1688
1389
|
*/
|
|
1689
|
-
async request(
|
|
1390
|
+
async request(t, n) {
|
|
1690
1391
|
try {
|
|
1691
|
-
return await this._request(
|
|
1692
|
-
} catch (
|
|
1693
|
-
if (
|
|
1694
|
-
let
|
|
1695
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1392
|
+
return await this._request(t, n);
|
|
1393
|
+
} catch (r) {
|
|
1394
|
+
if (r instanceof Error) {
|
|
1395
|
+
let s = {};
|
|
1396
|
+
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1397
|
+
const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1398
|
+
try {
|
|
1399
|
+
r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1400
|
+
` + i) : r.stack = i;
|
|
1401
|
+
} catch {
|
|
1701
1402
|
}
|
|
1702
1403
|
}
|
|
1703
|
-
throw
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
_request(
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
serialize: paramsSerializer
|
|
1726
|
-
};
|
|
1727
|
-
} else {
|
|
1728
|
-
validator.assertOptions(paramsSerializer, {
|
|
1729
|
-
encode: validators.function,
|
|
1730
|
-
serialize: validators.function
|
|
1731
|
-
}, true);
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
1735
|
-
let contextHeaders = headers && utils$1.merge(
|
|
1736
|
-
headers.common,
|
|
1737
|
-
headers[config.method]
|
|
1404
|
+
throw r;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
_request(t, n) {
|
|
1408
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = V(this.defaults, n);
|
|
1409
|
+
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1410
|
+
r !== void 0 && ie.assertOptions(r, {
|
|
1411
|
+
silentJSONParsing: U.transitional(U.boolean),
|
|
1412
|
+
forcedJSONParsing: U.transitional(U.boolean),
|
|
1413
|
+
clarifyTimeoutError: U.transitional(U.boolean)
|
|
1414
|
+
}, !1), s != null && (l.isFunction(s) ? n.paramsSerializer = {
|
|
1415
|
+
serialize: s
|
|
1416
|
+
} : ie.assertOptions(s, {
|
|
1417
|
+
encode: U.function,
|
|
1418
|
+
serialize: U.function
|
|
1419
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ie.assertOptions(n, {
|
|
1420
|
+
baseUrl: U.spelling("baseURL"),
|
|
1421
|
+
withXsrfToken: U.spelling("withXSRFToken")
|
|
1422
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1423
|
+
let o = i && l.merge(
|
|
1424
|
+
i.common,
|
|
1425
|
+
i[n.method]
|
|
1738
1426
|
);
|
|
1739
|
-
|
|
1427
|
+
i && l.forEach(
|
|
1740
1428
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1741
|
-
(
|
|
1742
|
-
delete
|
|
1743
|
-
}
|
|
1744
|
-
);
|
|
1745
|
-
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
1746
|
-
const requestInterceptorChain = [];
|
|
1747
|
-
let synchronousRequestInterceptors = true;
|
|
1748
|
-
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
1749
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
|
|
1750
|
-
return;
|
|
1429
|
+
(p) => {
|
|
1430
|
+
delete i[p];
|
|
1751
1431
|
}
|
|
1752
|
-
|
|
1753
|
-
|
|
1432
|
+
), n.headers = F.concat(o, i);
|
|
1433
|
+
const a = [];
|
|
1434
|
+
let f = !0;
|
|
1435
|
+
this.interceptors.request.forEach(function(m) {
|
|
1436
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, a.unshift(m.fulfilled, m.rejected));
|
|
1754
1437
|
});
|
|
1755
|
-
const
|
|
1756
|
-
this.interceptors.response.forEach(function
|
|
1757
|
-
|
|
1438
|
+
const c = [];
|
|
1439
|
+
this.interceptors.response.forEach(function(m) {
|
|
1440
|
+
c.push(m.fulfilled, m.rejected);
|
|
1758
1441
|
});
|
|
1759
|
-
let
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1771
|
-
return promise;
|
|
1772
|
-
}
|
|
1773
|
-
len = requestInterceptorChain.length;
|
|
1774
|
-
let newConfig = config;
|
|
1775
|
-
i2 = 0;
|
|
1776
|
-
while (i2 < len) {
|
|
1777
|
-
const onFulfilled = requestInterceptorChain[i2++];
|
|
1778
|
-
const onRejected = requestInterceptorChain[i2++];
|
|
1442
|
+
let u, d = 0, y;
|
|
1443
|
+
if (!f) {
|
|
1444
|
+
const p = [Ye.bind(this), void 0];
|
|
1445
|
+
for (p.unshift.apply(p, a), p.push.apply(p, c), y = p.length, u = Promise.resolve(n); d < y; )
|
|
1446
|
+
u = u.then(p[d++], p[d++]);
|
|
1447
|
+
return u;
|
|
1448
|
+
}
|
|
1449
|
+
y = a.length;
|
|
1450
|
+
let E = n;
|
|
1451
|
+
for (d = 0; d < y; ) {
|
|
1452
|
+
const p = a[d++], m = a[d++];
|
|
1779
1453
|
try {
|
|
1780
|
-
|
|
1781
|
-
} catch (
|
|
1782
|
-
|
|
1454
|
+
E = p(E);
|
|
1455
|
+
} catch (h) {
|
|
1456
|
+
m.call(this, h);
|
|
1783
1457
|
break;
|
|
1784
1458
|
}
|
|
1785
1459
|
}
|
|
1786
1460
|
try {
|
|
1787
|
-
|
|
1788
|
-
} catch (
|
|
1789
|
-
return Promise.reject(
|
|
1790
|
-
}
|
|
1791
|
-
i2 = 0;
|
|
1792
|
-
len = responseInterceptorChain.length;
|
|
1793
|
-
while (i2 < len) {
|
|
1794
|
-
promise = promise.then(responseInterceptorChain[i2++], responseInterceptorChain[i2++]);
|
|
1461
|
+
u = Ye.call(this, E);
|
|
1462
|
+
} catch (p) {
|
|
1463
|
+
return Promise.reject(p);
|
|
1795
1464
|
}
|
|
1796
|
-
|
|
1465
|
+
for (d = 0, y = c.length; d < y; )
|
|
1466
|
+
u = u.then(c[d++], c[d++]);
|
|
1467
|
+
return u;
|
|
1797
1468
|
}
|
|
1798
|
-
getUri(
|
|
1799
|
-
|
|
1800
|
-
const
|
|
1801
|
-
return
|
|
1469
|
+
getUri(t) {
|
|
1470
|
+
t = V(this.defaults, t);
|
|
1471
|
+
const n = St(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1472
|
+
return bt(n, t.params, t.paramsSerializer);
|
|
1802
1473
|
}
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
return this.request(
|
|
1807
|
-
method,
|
|
1808
|
-
url,
|
|
1809
|
-
data: (
|
|
1474
|
+
};
|
|
1475
|
+
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1476
|
+
Q.prototype[t] = function(n, r) {
|
|
1477
|
+
return this.request(V(r || {}, {
|
|
1478
|
+
method: t,
|
|
1479
|
+
url: n,
|
|
1480
|
+
data: (r || {}).data
|
|
1810
1481
|
}));
|
|
1811
1482
|
};
|
|
1812
1483
|
});
|
|
1813
|
-
|
|
1814
|
-
function
|
|
1815
|
-
return function
|
|
1816
|
-
return this.request(
|
|
1817
|
-
method,
|
|
1818
|
-
headers:
|
|
1484
|
+
l.forEach(["post", "put", "patch"], function(t) {
|
|
1485
|
+
function n(r) {
|
|
1486
|
+
return function(i, o, a) {
|
|
1487
|
+
return this.request(V(a || {}, {
|
|
1488
|
+
method: t,
|
|
1489
|
+
headers: r ? {
|
|
1819
1490
|
"Content-Type": "multipart/form-data"
|
|
1820
1491
|
} : {},
|
|
1821
|
-
url,
|
|
1822
|
-
data
|
|
1492
|
+
url: i,
|
|
1493
|
+
data: o
|
|
1823
1494
|
}));
|
|
1824
1495
|
};
|
|
1825
1496
|
}
|
|
1826
|
-
|
|
1827
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
1497
|
+
Q.prototype[t] = n(), Q.prototype[t + "Form"] = n(!0);
|
|
1828
1498
|
});
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
if (typeof executor !== "function") {
|
|
1499
|
+
let Sr = class xt {
|
|
1500
|
+
constructor(t) {
|
|
1501
|
+
if (typeof t != "function")
|
|
1833
1502
|
throw new TypeError("executor must be a function.");
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
resolvePromise = resolve;
|
|
1503
|
+
let n;
|
|
1504
|
+
this.promise = new Promise(function(i) {
|
|
1505
|
+
n = i;
|
|
1838
1506
|
});
|
|
1839
|
-
const
|
|
1840
|
-
this.promise.then((
|
|
1841
|
-
if (!
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
token.unsubscribe(_resolve);
|
|
1857
|
-
};
|
|
1858
|
-
return promise;
|
|
1859
|
-
};
|
|
1860
|
-
executor(function cancel(message, config, request) {
|
|
1861
|
-
if (token.reason) {
|
|
1862
|
-
return;
|
|
1863
|
-
}
|
|
1864
|
-
token.reason = new CanceledError(message, config, request);
|
|
1865
|
-
resolvePromise(token.reason);
|
|
1507
|
+
const r = this;
|
|
1508
|
+
this.promise.then((s) => {
|
|
1509
|
+
if (!r._listeners) return;
|
|
1510
|
+
let i = r._listeners.length;
|
|
1511
|
+
for (; i-- > 0; )
|
|
1512
|
+
r._listeners[i](s);
|
|
1513
|
+
r._listeners = null;
|
|
1514
|
+
}), this.promise.then = (s) => {
|
|
1515
|
+
let i;
|
|
1516
|
+
const o = new Promise((a) => {
|
|
1517
|
+
r.subscribe(a), i = a;
|
|
1518
|
+
}).then(s);
|
|
1519
|
+
return o.cancel = function() {
|
|
1520
|
+
r.unsubscribe(i);
|
|
1521
|
+
}, o;
|
|
1522
|
+
}, t(function(i, o, a) {
|
|
1523
|
+
r.reason || (r.reason = new Y(i, o, a), n(r.reason));
|
|
1866
1524
|
});
|
|
1867
1525
|
}
|
|
1868
1526
|
/**
|
|
1869
1527
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
1870
1528
|
*/
|
|
1871
1529
|
throwIfRequested() {
|
|
1872
|
-
if (this.reason)
|
|
1530
|
+
if (this.reason)
|
|
1873
1531
|
throw this.reason;
|
|
1874
|
-
}
|
|
1875
1532
|
}
|
|
1876
1533
|
/**
|
|
1877
1534
|
* Subscribe to the cancel signal
|
|
1878
1535
|
*/
|
|
1879
|
-
subscribe(
|
|
1536
|
+
subscribe(t) {
|
|
1880
1537
|
if (this.reason) {
|
|
1881
|
-
|
|
1538
|
+
t(this.reason);
|
|
1882
1539
|
return;
|
|
1883
1540
|
}
|
|
1884
|
-
|
|
1885
|
-
this._listeners.push(listener);
|
|
1886
|
-
} else {
|
|
1887
|
-
this._listeners = [listener];
|
|
1888
|
-
}
|
|
1541
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1889
1542
|
}
|
|
1890
1543
|
/**
|
|
1891
1544
|
* Unsubscribe from the cancel signal
|
|
1892
1545
|
*/
|
|
1893
|
-
unsubscribe(
|
|
1894
|
-
if (!this._listeners)
|
|
1546
|
+
unsubscribe(t) {
|
|
1547
|
+
if (!this._listeners)
|
|
1895
1548
|
return;
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1549
|
+
const n = this._listeners.indexOf(t);
|
|
1550
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1551
|
+
}
|
|
1552
|
+
toAbortSignal() {
|
|
1553
|
+
const t = new AbortController(), n = (r) => {
|
|
1554
|
+
t.abort(r);
|
|
1555
|
+
};
|
|
1556
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1901
1557
|
}
|
|
1902
1558
|
/**
|
|
1903
1559
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1904
1560
|
* cancels the `CancelToken`.
|
|
1905
1561
|
*/
|
|
1906
1562
|
static source() {
|
|
1907
|
-
let
|
|
1908
|
-
const token = new CancelToken(function executor(c) {
|
|
1909
|
-
cancel = c;
|
|
1910
|
-
});
|
|
1563
|
+
let t;
|
|
1911
1564
|
return {
|
|
1912
|
-
token
|
|
1913
|
-
|
|
1565
|
+
token: new xt(function(s) {
|
|
1566
|
+
t = s;
|
|
1567
|
+
}),
|
|
1568
|
+
cancel: t
|
|
1914
1569
|
};
|
|
1915
1570
|
}
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
function
|
|
1919
|
-
|
|
1920
|
-
return callback.apply(null, arr);
|
|
1571
|
+
};
|
|
1572
|
+
function vr(e) {
|
|
1573
|
+
return function(n) {
|
|
1574
|
+
return e.apply(null, n);
|
|
1921
1575
|
};
|
|
1922
1576
|
}
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1577
|
+
function Rr(e) {
|
|
1578
|
+
return l.isObject(e) && e.isAxiosError === !0;
|
|
1925
1579
|
}
|
|
1926
|
-
const
|
|
1580
|
+
const xe = {
|
|
1927
1581
|
Continue: 100,
|
|
1928
1582
|
SwitchingProtocols: 101,
|
|
1929
1583
|
Processing: 102,
|
|
@@ -1988,208 +1642,209 @@ const HttpStatusCode = {
|
|
|
1988
1642
|
NotExtended: 510,
|
|
1989
1643
|
NetworkAuthenticationRequired: 511
|
|
1990
1644
|
};
|
|
1991
|
-
Object.entries(
|
|
1992
|
-
|
|
1645
|
+
Object.entries(xe).forEach(([e, t]) => {
|
|
1646
|
+
xe[t] = e;
|
|
1993
1647
|
});
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
axios.toFormData = toFormData;
|
|
2012
|
-
axios.AxiosError = AxiosError;
|
|
2013
|
-
axios.Cancel = axios.CanceledError;
|
|
2014
|
-
axios.all = function all(promises) {
|
|
2015
|
-
return Promise.all(promises);
|
|
1648
|
+
function Bt(e) {
|
|
1649
|
+
const t = new Q(e), n = it(Q.prototype.request, t);
|
|
1650
|
+
return l.extend(n, Q.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1651
|
+
return Bt(V(e, s));
|
|
1652
|
+
}, n;
|
|
1653
|
+
}
|
|
1654
|
+
const S = Bt(re);
|
|
1655
|
+
S.Axios = Q;
|
|
1656
|
+
S.CanceledError = Y;
|
|
1657
|
+
S.CancelToken = Sr;
|
|
1658
|
+
S.isCancel = At;
|
|
1659
|
+
S.VERSION = Ot;
|
|
1660
|
+
S.toFormData = me;
|
|
1661
|
+
S.AxiosError = b;
|
|
1662
|
+
S.Cancel = S.CanceledError;
|
|
1663
|
+
S.all = function(t) {
|
|
1664
|
+
return Promise.all(t);
|
|
2016
1665
|
};
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|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W/Qz3FXtgSkrbHxsIBE0hwxNkfKGUuV8mwvARwhUiziZhJBl5i5I1IMmAQuIRD0HtPXdj9dRcMfxQV6czvt/tG/ScJIWRYomaHaOJo93Sr1GChLd3u9o3l7ar3fRFK6MsPXu13n32XIHQ8HdO2iL5aR1MS0AX7zxW/VQsxb+3tXCXdwjgUuJ1cAuUiDHVdzI1JTZmNVOFmbfOjh1U1vcR0w89lc3V9OCFbekm7gJWWbom23h4vWajkU4NWaVWZnGo3bYVeNkvnKzMPeuYamVbX1fMfnePb+x2owCmGDRwWVYJAxINUJ2holLTDWAtj2QXesED7r0+uomOFzvYnbY3LDMrIMltw1JtcbavbYrx4vCyMLNcIMG+mEc0AuLkByjlkvDzwn42YIxghm/M2DsoMcYQmNQyIugi6YynMWy3OXwgBPLdbvTA7YmFhqcLFNtd0Mpfr8Hj/tdq4FN9xWkHmkvz7RDl7yP/1CdqGW83dgwWE/FPzZO2E9Bazl5kR3dMj9yBr21Fctofh9/X/vIiNS6jvqMGI7jQMWpC436CFQBqFAFoEIVgIpTEv8PTBPiNKVw25gAAAAASUVORK5CYII=";
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
null,
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
const c = n2[o2], r2 = e2[o2];
|
|
2060
|
-
if (t$3(c) && t$3(r2)) {
|
|
2061
|
-
t2[o2] = f(
|
|
2062
|
-
c,
|
|
2063
|
-
r2
|
|
1666
|
+
S.spread = vr;
|
|
1667
|
+
S.isAxiosError = Rr;
|
|
1668
|
+
S.mergeConfig = V;
|
|
1669
|
+
S.AxiosHeaders = F;
|
|
1670
|
+
S.formToJSON = (e) => wt(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1671
|
+
S.getAdapter = Ct.getAdapter;
|
|
1672
|
+
S.HttpStatusCode = xe;
|
|
1673
|
+
S.default = S;
|
|
1674
|
+
const {
|
|
1675
|
+
Axios: Ms,
|
|
1676
|
+
AxiosError: _s,
|
|
1677
|
+
CanceledError: Hs,
|
|
1678
|
+
isCancel: Ws,
|
|
1679
|
+
CancelToken: Qs,
|
|
1680
|
+
VERSION: Vs,
|
|
1681
|
+
all: Gs,
|
|
1682
|
+
Cancel: Js,
|
|
1683
|
+
isAxiosError: Xs,
|
|
1684
|
+
spread: Zs,
|
|
1685
|
+
toFormData: Ys,
|
|
1686
|
+
AxiosHeaders: Ks,
|
|
1687
|
+
HttpStatusCode: $s,
|
|
1688
|
+
formToJSON: eo,
|
|
1689
|
+
getAdapter: to,
|
|
1690
|
+
mergeConfig: no
|
|
1691
|
+
} = S, Tr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOk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N9xWkHmkvz7RDl7yP/1CdqGW83dgwWE/FPzZO2E9Bazl5kR3dMj9yBr21Fctofh9/X/vIiNS6jvqMGI7jQMWpC436CFQBqFAFoEIVgIpTEv8PTBPiNKVw25gAAAAASUVORK5CYII=";
|
|
1692
|
+
function Cr(e) {
|
|
1693
|
+
return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
|
|
1694
|
+
}
|
|
1695
|
+
function $e(e) {
|
|
1696
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
1697
|
+
}
|
|
1698
|
+
function Nt(e = {}, t = {}) {
|
|
1699
|
+
const n = {};
|
|
1700
|
+
for (const r in e)
|
|
1701
|
+
n[r] = e[r];
|
|
1702
|
+
for (const r in t) {
|
|
1703
|
+
const s = e[r], i = t[r];
|
|
1704
|
+
if ($e(s) && $e(i)) {
|
|
1705
|
+
n[r] = Nt(
|
|
1706
|
+
s,
|
|
1707
|
+
i
|
|
2064
1708
|
);
|
|
2065
1709
|
continue;
|
|
2066
1710
|
}
|
|
2067
|
-
|
|
1711
|
+
n[r] = i;
|
|
2068
1712
|
}
|
|
2069
|
-
return
|
|
1713
|
+
return n;
|
|
2070
1714
|
}
|
|
2071
|
-
const
|
|
2072
|
-
function
|
|
2073
|
-
var
|
|
2074
|
-
const
|
|
2075
|
-
if (!
|
|
1715
|
+
const Or = "q-defaults";
|
|
1716
|
+
function xr() {
|
|
1717
|
+
var e, t;
|
|
1718
|
+
const n = Be();
|
|
1719
|
+
if (!n)
|
|
2076
1720
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
2077
|
-
const
|
|
2078
|
-
if (!
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
if (
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
return
|
|
2097
|
-
}
|
|
2098
|
-
function
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
if (s === null)
|
|
2111
|
-
return t2(r2, n$1);
|
|
2112
|
-
const a2 = new Proxy(r2, {
|
|
2113
|
-
get(l2, u2) {
|
|
2114
|
-
var i2;
|
|
2115
|
-
const f2 = Reflect.get(l2, u2), p2 = (i2 = o2.value) == null ? void 0 : i2[u2];
|
|
2116
|
-
return typeof u2 == "string" && !y(s.vnode, u2) ? p2 ?? f2 : f2;
|
|
1721
|
+
const r = n.type.name ?? n.type.__name;
|
|
1722
|
+
if (!r) throw new Error("[Quidgest UI] Could not determine component name");
|
|
1723
|
+
const s = Br(), i = (e = s.value) == null ? void 0 : e.Global, o = (t = s.value) == null ? void 0 : t[r];
|
|
1724
|
+
return O(() => Nt(i, o));
|
|
1725
|
+
}
|
|
1726
|
+
function Br() {
|
|
1727
|
+
const e = Pt(Or, void 0);
|
|
1728
|
+
if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
1729
|
+
return e;
|
|
1730
|
+
}
|
|
1731
|
+
function Nr(e) {
|
|
1732
|
+
return e.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([0-9])([a-zA-Z])/g, "$1 $2").replace(/([a-zA-Z])([0-9])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").trim().split(/\s+/);
|
|
1733
|
+
}
|
|
1734
|
+
function Pr(e) {
|
|
1735
|
+
return Nr(e).join("-").toLowerCase();
|
|
1736
|
+
}
|
|
1737
|
+
function Dr(e, t) {
|
|
1738
|
+
var n;
|
|
1739
|
+
const r = Pr(t);
|
|
1740
|
+
return r ? typeof ((n = e.props) == null ? void 0 : n[r]) < "u" : !1;
|
|
1741
|
+
}
|
|
1742
|
+
function M(e) {
|
|
1743
|
+
const t = e, n = t.setup;
|
|
1744
|
+
return n && (t.setup = (r, s) => {
|
|
1745
|
+
const i = xr();
|
|
1746
|
+
if (Cr(i.value)) return n(r, s);
|
|
1747
|
+
const o = Be();
|
|
1748
|
+
if (o === null) return n(r, s);
|
|
1749
|
+
const a = new Proxy(r, {
|
|
1750
|
+
get(f, c) {
|
|
1751
|
+
var u;
|
|
1752
|
+
const d = Reflect.get(f, c), y = (u = i.value) == null ? void 0 : u[c];
|
|
1753
|
+
return typeof c == "string" && !Dr(o.vnode, c) ? y ?? d : d;
|
|
2117
1754
|
}
|
|
2118
1755
|
});
|
|
2119
|
-
return
|
|
2120
|
-
}),
|
|
1756
|
+
return n(a, s);
|
|
1757
|
+
}), e;
|
|
2121
1758
|
}
|
|
2122
|
-
const
|
|
2123
|
-
|
|
1759
|
+
const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
1760
|
+
__name: "QSpinnerLoader",
|
|
1761
|
+
props: {
|
|
1762
|
+
id: {},
|
|
1763
|
+
class: {},
|
|
1764
|
+
size: { default: 48 }
|
|
1765
|
+
},
|
|
1766
|
+
setup(e) {
|
|
1767
|
+
const t = e, n = O(() => ({
|
|
1768
|
+
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
1769
|
+
}));
|
|
1770
|
+
return (r, s) => (A(), T("div", {
|
|
1771
|
+
id: t.id,
|
|
1772
|
+
class: j(["q-spinner-loader", t.class]),
|
|
1773
|
+
style: ue(n.value)
|
|
1774
|
+
}, null, 14, Fr));
|
|
1775
|
+
}
|
|
1776
|
+
}), Lr = M(kr), qr = ["id", "disabled"], zr = {
|
|
2124
1777
|
key: 0,
|
|
2125
1778
|
class: "q-btn__spinner"
|
|
2126
|
-
},
|
|
1779
|
+
}, Ur = { class: "q-btn__content" }, jr = /* @__PURE__ */ q({
|
|
2127
1780
|
__name: "QButton",
|
|
2128
1781
|
props: {
|
|
1782
|
+
id: {},
|
|
1783
|
+
class: {},
|
|
2129
1784
|
active: { type: Boolean },
|
|
2130
1785
|
bStyle: { default: "secondary" },
|
|
2131
|
-
label: {
|
|
1786
|
+
label: {},
|
|
2132
1787
|
disabled: { type: Boolean },
|
|
2133
1788
|
iconOnRight: { type: Boolean },
|
|
2134
1789
|
borderless: { type: Boolean },
|
|
2135
1790
|
elevated: { type: Boolean },
|
|
2136
1791
|
block: { type: Boolean },
|
|
2137
1792
|
loading: { type: Boolean },
|
|
2138
|
-
size: { default: "regular" }
|
|
2139
|
-
class: { default: void 0 }
|
|
1793
|
+
size: { default: "regular" }
|
|
2140
1794
|
},
|
|
2141
1795
|
emits: ["click"],
|
|
2142
|
-
setup(
|
|
2143
|
-
const
|
|
2144
|
-
function
|
|
2145
|
-
|
|
1796
|
+
setup(e, { emit: t }) {
|
|
1797
|
+
const n = e, r = t, s = O(() => n.disabled || n.loading);
|
|
1798
|
+
function i(a) {
|
|
1799
|
+
s.value || r("click", a);
|
|
2146
1800
|
}
|
|
2147
|
-
const
|
|
2148
|
-
const
|
|
1801
|
+
const o = O(() => {
|
|
1802
|
+
const a = n.size !== "regular" ? `q-btn--${n.size}` : void 0;
|
|
2149
1803
|
return [
|
|
2150
1804
|
"q-btn",
|
|
2151
|
-
`q-btn--${
|
|
2152
|
-
|
|
1805
|
+
`q-btn--${n.bStyle}`,
|
|
1806
|
+
a,
|
|
2153
1807
|
{
|
|
2154
|
-
"q-btn--active":
|
|
2155
|
-
"q-btn--borderless":
|
|
2156
|
-
"q-btn--elevated":
|
|
2157
|
-
"q-btn--block":
|
|
2158
|
-
"q-btn--loading":
|
|
1808
|
+
"q-btn--active": n.active,
|
|
1809
|
+
"q-btn--borderless": n.borderless,
|
|
1810
|
+
"q-btn--elevated": n.elevated,
|
|
1811
|
+
"q-btn--block": n.block,
|
|
1812
|
+
"q-btn--loading": n.loading
|
|
2159
1813
|
},
|
|
2160
|
-
|
|
1814
|
+
n.class
|
|
2161
1815
|
];
|
|
2162
1816
|
});
|
|
2163
|
-
return (
|
|
1817
|
+
return (a, f) => (A(), T("button", {
|
|
1818
|
+
id: n.id,
|
|
2164
1819
|
type: "button",
|
|
2165
|
-
class:
|
|
2166
|
-
disabled:
|
|
2167
|
-
onClick:
|
|
1820
|
+
class: j(o.value),
|
|
1821
|
+
disabled: s.value,
|
|
1822
|
+
onClick: Dt(i, ["stop", "prevent"])
|
|
2168
1823
|
}, [
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
])) :
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
1824
|
+
a.loading ? (A(), T("div", zr, [
|
|
1825
|
+
H(R(Lr), { size: 20 })
|
|
1826
|
+
])) : I("v-if", !0),
|
|
1827
|
+
P("span", Ur, [
|
|
1828
|
+
a.iconOnRight ? (A(), T(
|
|
1829
|
+
ae,
|
|
2175
1830
|
{ key: 0 },
|
|
2176
1831
|
[
|
|
2177
|
-
|
|
2178
|
-
|
|
1832
|
+
Ue(
|
|
1833
|
+
X(n.label),
|
|
2179
1834
|
1
|
|
2180
1835
|
/* TEXT */
|
|
2181
1836
|
)
|
|
2182
1837
|
],
|
|
2183
1838
|
64
|
|
2184
1839
|
/* STABLE_FRAGMENT */
|
|
2185
|
-
)) :
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
1840
|
+
)) : I("v-if", !0),
|
|
1841
|
+
k(a.$slots, "default"),
|
|
1842
|
+
a.iconOnRight ? I("v-if", !0) : (A(), T(
|
|
1843
|
+
ae,
|
|
2189
1844
|
{ key: 1 },
|
|
2190
1845
|
[
|
|
2191
|
-
|
|
2192
|
-
|
|
1846
|
+
Ue(
|
|
1847
|
+
X(n.label),
|
|
2193
1848
|
1
|
|
2194
1849
|
/* TEXT */
|
|
2195
1850
|
)
|
|
@@ -2198,105 +1853,86 @@ const h$3 = ["disabled"], z$2 = {
|
|
|
2198
1853
|
/* STABLE_FRAGMENT */
|
|
2199
1854
|
))
|
|
2200
1855
|
])
|
|
2201
|
-
], 10,
|
|
1856
|
+
], 10, qr));
|
|
2202
1857
|
}
|
|
2203
|
-
})
|
|
2204
|
-
const p$2 = C$3(O);
|
|
2205
|
-
const _$1 = /* @__PURE__ */ defineComponent({
|
|
1858
|
+
}), et = M(jr), Ir = /* @__PURE__ */ q({
|
|
2206
1859
|
__name: "QIcon",
|
|
2207
1860
|
props: {
|
|
1861
|
+
id: {},
|
|
1862
|
+
class: {},
|
|
2208
1863
|
icon: {},
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
class: { default: void 0 }
|
|
1864
|
+
size: {},
|
|
1865
|
+
type: { default: "svg" }
|
|
2212
1866
|
},
|
|
2213
|
-
setup(
|
|
2214
|
-
const
|
|
2215
|
-
switch (
|
|
1867
|
+
setup(e) {
|
|
1868
|
+
const t = e, n = O(() => {
|
|
1869
|
+
switch (t.type) {
|
|
2216
1870
|
case "svg":
|
|
2217
|
-
return
|
|
1871
|
+
return Yr;
|
|
2218
1872
|
case "font":
|
|
2219
|
-
return
|
|
1873
|
+
return Xr;
|
|
2220
1874
|
case "img":
|
|
2221
|
-
return
|
|
1875
|
+
return Zr;
|
|
2222
1876
|
default:
|
|
2223
1877
|
return;
|
|
2224
1878
|
}
|
|
2225
1879
|
});
|
|
2226
|
-
return (
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
}
|
|
2233
|
-
|
|
1880
|
+
return (r, s) => (A(), de(Ft(n.value), {
|
|
1881
|
+
id: t.id,
|
|
1882
|
+
class: j(t.class),
|
|
1883
|
+
icon: t.icon,
|
|
1884
|
+
size: t.size
|
|
1885
|
+
}, null, 8, ["id", "class", "icon", "size"]));
|
|
1886
|
+
}
|
|
1887
|
+
}), Mr = ["id"], _r = /* @__PURE__ */ q({
|
|
2234
1888
|
__name: "QIconFont",
|
|
2235
1889
|
props: {
|
|
1890
|
+
id: {},
|
|
1891
|
+
class: {},
|
|
2236
1892
|
icon: {},
|
|
1893
|
+
size: {},
|
|
2237
1894
|
library: { default: "" },
|
|
2238
|
-
variant: {
|
|
2239
|
-
size: { default: void 0 },
|
|
2240
|
-
class: { default: void 0 }
|
|
1895
|
+
variant: {}
|
|
2241
1896
|
},
|
|
2242
|
-
setup(
|
|
2243
|
-
const
|
|
2244
|
-
"font-size":
|
|
1897
|
+
setup(e) {
|
|
1898
|
+
const t = e, n = O(() => t.variant ? `${t.library}-${t.variant}` : t.library), r = O(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), s = O(() => ({
|
|
1899
|
+
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
2245
1900
|
}));
|
|
2246
|
-
return (
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
},
|
|
2252
|
-
null,
|
|
2253
|
-
6
|
|
2254
|
-
/* CLASS, STYLE */
|
|
2255
|
-
));
|
|
1901
|
+
return (i, o) => (A(), T("i", {
|
|
1902
|
+
id: t.id,
|
|
1903
|
+
class: j(["q-icon", "q-icon__font", n.value, r.value, t.class]),
|
|
1904
|
+
style: ue(s.value)
|
|
1905
|
+
}, null, 14, Mr));
|
|
2256
1906
|
}
|
|
2257
|
-
})
|
|
2258
|
-
const a$1 = ["src"], u$1 = /* @__PURE__ */ defineComponent({
|
|
1907
|
+
}), Hr = ["id", "src"], Wr = /* @__PURE__ */ q({
|
|
2259
1908
|
__name: "QIconImg",
|
|
2260
1909
|
props: {
|
|
1910
|
+
id: {},
|
|
1911
|
+
class: {},
|
|
2261
1912
|
icon: {},
|
|
2262
|
-
size: {}
|
|
2263
|
-
class: {}
|
|
1913
|
+
size: {}
|
|
2264
1914
|
},
|
|
2265
|
-
setup(
|
|
2266
|
-
const
|
|
2267
|
-
"font-size":
|
|
1915
|
+
setup(e) {
|
|
1916
|
+
const t = e, n = O(() => ({
|
|
1917
|
+
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
2268
1918
|
}));
|
|
2269
|
-
return (
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
}
|
|
2276
|
-
|
|
1919
|
+
return (r, s) => (A(), T("img", {
|
|
1920
|
+
id: t.id,
|
|
1921
|
+
src: t.icon,
|
|
1922
|
+
class: j(["q-icon", "q-icon__img", t.class]),
|
|
1923
|
+
style: ue(n.value)
|
|
1924
|
+
}, null, 14, Hr));
|
|
1925
|
+
}
|
|
1926
|
+
}), $ = {}, Qr = q({
|
|
2277
1927
|
name: "InlineSvg",
|
|
2278
|
-
|
|
2279
|
-
loaded: (t2) => typeof t2 == "object",
|
|
2280
|
-
unloaded: () => true,
|
|
2281
|
-
error: (t2) => typeof t2 == "object"
|
|
2282
|
-
},
|
|
2283
|
-
inheritAttrs: false,
|
|
2284
|
-
render() {
|
|
2285
|
-
if (!this.svgElSource)
|
|
2286
|
-
return null;
|
|
2287
|
-
const t2 = this.getSvgContent(this.svgElSource);
|
|
2288
|
-
if (!t2)
|
|
2289
|
-
return h$4("div", this.$attrs);
|
|
2290
|
-
const e2 = {};
|
|
2291
|
-
return this.copySvgAttrs(e2, this.svgElSource), this.copySvgAttrs(e2, t2), this.copyComponentAttrs(e2, this.$attrs), e2.innerHTML = t2.innerHTML, h$4("svg", e2);
|
|
2292
|
-
},
|
|
1928
|
+
inheritAttrs: !1,
|
|
2293
1929
|
props: {
|
|
2294
1930
|
/**
|
|
2295
1931
|
* The source URL of the SVG bundle.
|
|
2296
1932
|
*/
|
|
2297
1933
|
src: {
|
|
2298
1934
|
type: String,
|
|
2299
|
-
required:
|
|
1935
|
+
required: !0
|
|
2300
1936
|
},
|
|
2301
1937
|
/**
|
|
2302
1938
|
* The ID of the SVG symbol to be rendered.
|
|
@@ -2326,43 +1962,51 @@ const o = {}, h$2 = defineComponent({
|
|
|
2326
1962
|
*/
|
|
2327
1963
|
keepDuringLoading: {
|
|
2328
1964
|
type: Boolean,
|
|
2329
|
-
default:
|
|
1965
|
+
default: !0
|
|
2330
1966
|
}
|
|
2331
1967
|
},
|
|
1968
|
+
emits: {
|
|
1969
|
+
loaded: (e) => typeof e == "object",
|
|
1970
|
+
unloaded: () => !0,
|
|
1971
|
+
error: (e) => typeof e == "object"
|
|
1972
|
+
},
|
|
2332
1973
|
data() {
|
|
2333
1974
|
return {
|
|
2334
1975
|
/** @type SVGElement */
|
|
2335
1976
|
svgElSource: null
|
|
2336
1977
|
};
|
|
2337
1978
|
},
|
|
1979
|
+
watch: {
|
|
1980
|
+
src(e) {
|
|
1981
|
+
this.getSource(e);
|
|
1982
|
+
}
|
|
1983
|
+
},
|
|
2338
1984
|
async mounted() {
|
|
2339
1985
|
await this.getSource(this.src);
|
|
2340
1986
|
},
|
|
2341
1987
|
methods: {
|
|
2342
|
-
copySvgAttrs(
|
|
2343
|
-
const
|
|
2344
|
-
if (
|
|
2345
|
-
for (const n2 of r2)
|
|
2346
|
-
t2[n2.name] = n2.value;
|
|
1988
|
+
copySvgAttrs(e, t) {
|
|
1989
|
+
const n = t.attributes;
|
|
1990
|
+
if (n) for (const r of n) e[r.name] = r.value;
|
|
2347
1991
|
},
|
|
2348
|
-
copyComponentAttrs(
|
|
2349
|
-
for (const [
|
|
2350
|
-
|
|
1992
|
+
copyComponentAttrs(e, t) {
|
|
1993
|
+
for (const [n, r] of Object.entries(t))
|
|
1994
|
+
r !== !1 && r !== null && r !== void 0 && (e[n] = r);
|
|
2351
1995
|
},
|
|
2352
|
-
getSvgContent(
|
|
2353
|
-
return this.symbol && (
|
|
1996
|
+
getSvgContent(e) {
|
|
1997
|
+
return this.symbol && (e = e.getElementById(this.symbol), !e) ? null : (this.transformSource && (e = e.cloneNode(!0), e = this.transformSource(e)), this.title && (this.transformSource || (e = e.cloneNode(!0)), Vr(e, this.title)), e);
|
|
2354
1998
|
},
|
|
2355
1999
|
/**
|
|
2356
2000
|
* Get svgElSource
|
|
2357
2001
|
* @param {string} src
|
|
2358
2002
|
*/
|
|
2359
|
-
async getSource(
|
|
2003
|
+
async getSource(e) {
|
|
2360
2004
|
try {
|
|
2361
|
-
|
|
2362
|
-
const
|
|
2363
|
-
this.svgElSource =
|
|
2364
|
-
} catch (
|
|
2365
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
2005
|
+
$[e] || ($[e] = Gr(this.download(e))), this.svgElSource && $[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
2006
|
+
const t = await $[e];
|
|
2007
|
+
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
2008
|
+
} catch (t) {
|
|
2009
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete $[e], this.$emit("error", t);
|
|
2366
2010
|
}
|
|
2367
2011
|
},
|
|
2368
2012
|
/**
|
|
@@ -2370,352 +2014,354 @@ const o = {}, h$2 = defineComponent({
|
|
|
2370
2014
|
* @param {string} url
|
|
2371
2015
|
* @returns {PromiseWithState<Element>}
|
|
2372
2016
|
*/
|
|
2373
|
-
async download(
|
|
2374
|
-
const
|
|
2375
|
-
if (!
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
throw new Error("Loaded file is not a valid SVG");
|
|
2380
|
-
return i2;
|
|
2017
|
+
async download(e) {
|
|
2018
|
+
const t = await fetch(e);
|
|
2019
|
+
if (!t.ok) throw new Error("Error loading SVG");
|
|
2020
|
+
const n = await t.text(), r = new DOMParser().parseFromString(n, "text/xml").getElementsByTagName("svg")[0];
|
|
2021
|
+
if (!r) throw new Error("Loaded file is not a valid SVG");
|
|
2022
|
+
return r;
|
|
2381
2023
|
}
|
|
2382
2024
|
},
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2025
|
+
render() {
|
|
2026
|
+
if (!this.svgElSource) return null;
|
|
2027
|
+
const e = this.getSvgContent(this.svgElSource);
|
|
2028
|
+
if (!e) return je("div", this.$attrs);
|
|
2029
|
+
const t = {};
|
|
2030
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, e), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = e.innerHTML, je("svg", t);
|
|
2387
2031
|
},
|
|
2388
2032
|
expose: []
|
|
2389
2033
|
});
|
|
2390
|
-
function
|
|
2391
|
-
const
|
|
2392
|
-
if (
|
|
2393
|
-
|
|
2034
|
+
function Vr(e, t) {
|
|
2035
|
+
const n = e.getElementsByTagName("title");
|
|
2036
|
+
if (n.length)
|
|
2037
|
+
n[0].textContent = t;
|
|
2394
2038
|
else {
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2397
|
-
}
|
|
2398
|
-
}
|
|
2399
|
-
function
|
|
2400
|
-
if (
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
(
|
|
2405
|
-
|
|
2406
|
-
throw e2 = false, n2;
|
|
2039
|
+
const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
2040
|
+
r.textContent = t, e.insertBefore(r, e.firstChild);
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
function Gr(e) {
|
|
2044
|
+
if (e.getIsPending) return e;
|
|
2045
|
+
let t = !0;
|
|
2046
|
+
const n = e.then(
|
|
2047
|
+
(r) => (t = !1, r),
|
|
2048
|
+
(r) => {
|
|
2049
|
+
throw t = !1, r;
|
|
2407
2050
|
}
|
|
2408
2051
|
);
|
|
2409
|
-
return
|
|
2052
|
+
return n.getIsPending = () => t, n;
|
|
2410
2053
|
}
|
|
2411
|
-
const
|
|
2054
|
+
const Jr = /* @__PURE__ */ q({
|
|
2412
2055
|
__name: "QIconSvg",
|
|
2413
2056
|
props: {
|
|
2057
|
+
id: {},
|
|
2058
|
+
class: {},
|
|
2414
2059
|
icon: {},
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
class: { default: void 0 }
|
|
2060
|
+
size: {},
|
|
2061
|
+
bundle: { default: "" }
|
|
2418
2062
|
},
|
|
2419
2063
|
emits: ["loaded", "unloaded"],
|
|
2420
|
-
setup(
|
|
2421
|
-
const
|
|
2422
|
-
"font-size":
|
|
2064
|
+
setup(e, { emit: t }) {
|
|
2065
|
+
const n = e, r = t, s = O(() => ({
|
|
2066
|
+
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
2423
2067
|
}));
|
|
2424
|
-
function
|
|
2425
|
-
|
|
2426
|
-
}
|
|
2427
|
-
function
|
|
2428
|
-
|
|
2429
|
-
}
|
|
2430
|
-
return (
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
let
|
|
2442
|
-
function r(
|
|
2443
|
-
return
|
|
2068
|
+
function i(a) {
|
|
2069
|
+
r("loaded", a);
|
|
2070
|
+
}
|
|
2071
|
+
function o() {
|
|
2072
|
+
r("unloaded");
|
|
2073
|
+
}
|
|
2074
|
+
return (a, f) => (A(), de(R(Qr), {
|
|
2075
|
+
id: n.id,
|
|
2076
|
+
class: j(["q-icon", "q-icon__svg", n.class]),
|
|
2077
|
+
src: n.bundle,
|
|
2078
|
+
symbol: n.icon,
|
|
2079
|
+
style: ue(s.value),
|
|
2080
|
+
onLoaded: i,
|
|
2081
|
+
onUnloaded: o
|
|
2082
|
+
}, null, 8, ["id", "class", "src", "symbol", "style"]));
|
|
2083
|
+
}
|
|
2084
|
+
}), tt = M(Ir), Xr = M(_r), Zr = M(Wr), Yr = M(Jr);
|
|
2085
|
+
let Kr = 0;
|
|
2086
|
+
function $r(e) {
|
|
2087
|
+
return R(e) || `uid-${++Kr}`;
|
|
2444
2088
|
}
|
|
2445
|
-
const
|
|
2089
|
+
const es = ["id"], ts = {
|
|
2446
2090
|
key: 0,
|
|
2447
2091
|
class: "q-field__label"
|
|
2448
|
-
},
|
|
2092
|
+
}, ns = ["for"], rs = {
|
|
2449
2093
|
key: 0,
|
|
2450
2094
|
class: "q-field__prepend"
|
|
2451
|
-
},
|
|
2095
|
+
}, ss = {
|
|
2452
2096
|
key: 1,
|
|
2453
2097
|
class: "q-field__append"
|
|
2454
|
-
},
|
|
2098
|
+
}, os = {
|
|
2455
2099
|
key: 1,
|
|
2456
2100
|
class: "q-field__extras"
|
|
2457
|
-
},
|
|
2458
|
-
inheritAttrs:
|
|
2101
|
+
}, is = /* @__PURE__ */ q({
|
|
2102
|
+
inheritAttrs: !1,
|
|
2459
2103
|
__name: "QField",
|
|
2460
2104
|
props: {
|
|
2461
|
-
id: {
|
|
2462
|
-
|
|
2463
|
-
|
|
2105
|
+
id: {},
|
|
2106
|
+
class: {},
|
|
2107
|
+
label: {},
|
|
2108
|
+
for: {},
|
|
2464
2109
|
size: { default: "medium" },
|
|
2465
2110
|
readonly: { type: Boolean },
|
|
2466
2111
|
disabled: { type: Boolean },
|
|
2467
|
-
required: { type: Boolean }
|
|
2468
|
-
class: { default: void 0 }
|
|
2112
|
+
required: { type: Boolean }
|
|
2469
2113
|
},
|
|
2470
|
-
setup(
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
"q-field"
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2114
|
+
setup(e, { expose: t }) {
|
|
2115
|
+
const n = e, r = J(null), s = O(() => n.required && !n.readonly && !n.disabled), i = O(() => [
|
|
2116
|
+
"q-field",
|
|
2117
|
+
`q-field--${n.size}`,
|
|
2118
|
+
{
|
|
2119
|
+
"q-field--readonly": n.readonly,
|
|
2120
|
+
"q-field--disabled": n.disabled,
|
|
2121
|
+
"q-field--required": s.value
|
|
2122
|
+
},
|
|
2123
|
+
n.class
|
|
2124
|
+
]);
|
|
2125
|
+
return t({
|
|
2126
|
+
fieldRef: r
|
|
2127
|
+
}), (o, a) => (A(), T("div", {
|
|
2128
|
+
id: n.id,
|
|
2129
|
+
class: j(i.value)
|
|
2486
2130
|
}, [
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
for:
|
|
2491
|
-
},
|
|
2492
|
-
|
|
2493
|
-
])) :
|
|
2494
|
-
|
|
2495
|
-
|
|
2131
|
+
n.label ? (A(), T("div", ts, [
|
|
2132
|
+
k(o.$slots, "label.prepend"),
|
|
2133
|
+
P("label", {
|
|
2134
|
+
for: n.for
|
|
2135
|
+
}, X(n.label), 9, ns),
|
|
2136
|
+
k(o.$slots, "label.append")
|
|
2137
|
+
])) : I("v-if", !0),
|
|
2138
|
+
k(o.$slots, "control", {}, () => [
|
|
2139
|
+
P(
|
|
2496
2140
|
"div",
|
|
2497
|
-
|
|
2498
|
-
class: "q-field__control",
|
|
2141
|
+
Ne({
|
|
2499
2142
|
ref_key: "fieldRef",
|
|
2500
|
-
ref:
|
|
2501
|
-
|
|
2143
|
+
ref: r,
|
|
2144
|
+
class: "q-field__control"
|
|
2145
|
+
}, o.$attrs),
|
|
2502
2146
|
[
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
])) :
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
])) :
|
|
2147
|
+
o.$slots.prepend ? (A(), T("div", rs, [
|
|
2148
|
+
k(o.$slots, "prepend")
|
|
2149
|
+
])) : I("v-if", !0),
|
|
2150
|
+
k(o.$slots, "default"),
|
|
2151
|
+
o.$slots.append ? (A(), T("div", ss, [
|
|
2152
|
+
k(o.$slots, "append")
|
|
2153
|
+
])) : I("v-if", !0)
|
|
2510
2154
|
],
|
|
2511
2155
|
16
|
|
2512
2156
|
/* FULL_PROPS */
|
|
2513
2157
|
)
|
|
2514
2158
|
]),
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
])) :
|
|
2518
|
-
], 10,
|
|
2159
|
+
o.$slots.extras ? (A(), T("div", os, [
|
|
2160
|
+
k(o.$slots, "extras")
|
|
2161
|
+
])) : I("v-if", !0)
|
|
2162
|
+
], 10, es));
|
|
2519
2163
|
}
|
|
2520
|
-
})
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2164
|
+
}), as = M(is), ls = ["id"], cs = /* @__PURE__ */ q({
|
|
2165
|
+
__name: "QLineLoader",
|
|
2166
|
+
props: {
|
|
2167
|
+
id: {},
|
|
2168
|
+
class: {}
|
|
2169
|
+
},
|
|
2170
|
+
setup(e) {
|
|
2171
|
+
const t = e;
|
|
2172
|
+
return (n, r) => (A(), T("div", {
|
|
2173
|
+
id: t.id,
|
|
2174
|
+
class: j(["q-line-loader", t.class])
|
|
2175
|
+
}, null, 10, ls));
|
|
2176
|
+
}
|
|
2177
|
+
}), us = M(cs);
|
|
2178
|
+
function ds(e) {
|
|
2179
|
+
return zt() ? (Ut(e), !0) : !1;
|
|
2180
|
+
}
|
|
2181
|
+
const fs = typeof window < "u" && typeof document < "u";
|
|
2182
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2183
|
+
const ps = () => {
|
|
2184
|
+
};
|
|
2185
|
+
function nt(...e) {
|
|
2186
|
+
if (e.length !== 1)
|
|
2187
|
+
return kt(...e);
|
|
2188
|
+
const t = e[0];
|
|
2189
|
+
return typeof t == "function" ? Lt(qt(() => ({ get: t, set: ps }))) : J(t);
|
|
2190
|
+
}
|
|
2191
|
+
const Le = fs ? window : void 0;
|
|
2192
|
+
function rt(e) {
|
|
2193
|
+
var t;
|
|
2194
|
+
const n = Pe(e);
|
|
2195
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
2196
|
+
}
|
|
2197
|
+
function hs() {
|
|
2198
|
+
const e = Se(!1), t = Be();
|
|
2199
|
+
return t && ot(() => {
|
|
2200
|
+
e.value = !0;
|
|
2201
|
+
}, t), e;
|
|
2202
|
+
}
|
|
2203
|
+
function ms(e) {
|
|
2204
|
+
const t = hs();
|
|
2205
|
+
return O(() => (t.value, !!e()));
|
|
2206
|
+
}
|
|
2207
|
+
function gs(e, t, n = {}) {
|
|
2208
|
+
const { window: r = Le, ...s } = n;
|
|
2209
|
+
let i;
|
|
2210
|
+
const o = ms(() => r && "ResizeObserver" in r), a = () => {
|
|
2211
|
+
i && (i.disconnect(), i = void 0);
|
|
2212
|
+
}, f = O(() => {
|
|
2213
|
+
const d = Pe(e);
|
|
2214
|
+
return Array.isArray(d) ? d.map((y) => rt(y)) : [rt(d)];
|
|
2215
|
+
}), c = ee(
|
|
2216
|
+
f,
|
|
2217
|
+
(d) => {
|
|
2218
|
+
if (a(), o.value && r) {
|
|
2219
|
+
i = new ResizeObserver(t);
|
|
2220
|
+
for (const y of d)
|
|
2221
|
+
y && i.observe(y, s);
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
{ immediate: !0, flush: "post" }
|
|
2225
|
+
), u = () => {
|
|
2226
|
+
a(), c();
|
|
2227
|
+
};
|
|
2228
|
+
return ds(u), {
|
|
2229
|
+
isSupported: o,
|
|
2230
|
+
stop: u
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
function bs(e = Le, t) {
|
|
2234
|
+
e && typeof e.requestAnimationFrame == "function" ? e.requestAnimationFrame(t) : t();
|
|
2235
|
+
}
|
|
2236
|
+
function ys(e = {}) {
|
|
2237
|
+
var t, n;
|
|
2238
|
+
const { window: r = Le } = e, s = nt(e == null ? void 0 : e.element), i = nt((t = e == null ? void 0 : e.input) != null ? t : ""), o = (n = e == null ? void 0 : e.styleProp) != null ? n : "height", a = Se(1), f = Se(0);
|
|
2239
|
+
function c() {
|
|
2240
|
+
var u;
|
|
2241
|
+
if (!s.value)
|
|
2242
|
+
return;
|
|
2243
|
+
let d = "";
|
|
2244
|
+
s.value.style[o] = "1px", a.value = (u = s.value) == null ? void 0 : u.scrollHeight;
|
|
2245
|
+
const y = Pe(e == null ? void 0 : e.styleTarget);
|
|
2246
|
+
y ? y.style[o] = `${a.value}px` : d = `${a.value}px`, s.value.style[o] = d;
|
|
2247
|
+
}
|
|
2248
|
+
return ee([i, s], () => st(c), { immediate: !0 }), ee(a, () => {
|
|
2249
|
+
var u;
|
|
2250
|
+
return (u = e == null ? void 0 : e.onResize) == null ? void 0 : u.call(e);
|
|
2251
|
+
}), gs(s, ([{ contentRect: u }]) => {
|
|
2252
|
+
f.value !== u.width && bs(r, () => {
|
|
2253
|
+
f.value = u.width, c();
|
|
2254
|
+
});
|
|
2255
|
+
}), e != null && e.watch && ee(e.watch, c, { immediate: !0, deep: !0 }), {
|
|
2256
|
+
textarea: s,
|
|
2257
|
+
input: i,
|
|
2258
|
+
triggerResize: c
|
|
2259
|
+
};
|
|
2260
|
+
}
|
|
2261
|
+
const ws = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], As = /* @__PURE__ */ q({
|
|
2262
|
+
inheritAttrs: !1,
|
|
2263
|
+
__name: "QTextArea",
|
|
2264
|
+
props: /* @__PURE__ */ jt({
|
|
2265
|
+
id: {},
|
|
2266
|
+
class: {},
|
|
2267
|
+
label: {},
|
|
2268
|
+
for: {},
|
|
2269
|
+
size: {},
|
|
2531
2270
|
readonly: { type: Boolean },
|
|
2532
2271
|
disabled: { type: Boolean },
|
|
2533
2272
|
required: { type: Boolean },
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2273
|
+
placeholder: {},
|
|
2274
|
+
maxLength: {},
|
|
2275
|
+
rows: { default: 3 },
|
|
2276
|
+
cols: {},
|
|
2277
|
+
resize: { default: "vertical" },
|
|
2278
|
+
wrap: { default: "soft" },
|
|
2279
|
+
autosize: { type: Boolean }
|
|
2537
2280
|
}, {
|
|
2538
2281
|
modelValue: {},
|
|
2539
2282
|
modelModifiers: {}
|
|
2540
2283
|
}),
|
|
2541
2284
|
emits: ["update:modelValue"],
|
|
2542
|
-
setup(
|
|
2543
|
-
const
|
|
2544
|
-
() =>
|
|
2545
|
-
)
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
class:
|
|
2556
|
-
for:
|
|
2557
|
-
label:
|
|
2558
|
-
size:
|
|
2559
|
-
readonly:
|
|
2560
|
-
disabled:
|
|
2561
|
-
required:
|
|
2562
|
-
},
|
|
2563
|
-
"label.prepend":
|
|
2564
|
-
|
|
2285
|
+
setup(e) {
|
|
2286
|
+
const t = e, n = It(e, "modelValue"), r = $r(t.id), s = O(
|
|
2287
|
+
() => t.readonly || t.disabled ? void 0 : t.placeholder
|
|
2288
|
+
), i = O(() => ({ input: t.autosize ? a : null })), o = J(), { triggerResize: a } = ys({
|
|
2289
|
+
element: O(() => t.autosize ? o.value : void 0),
|
|
2290
|
+
styleProp: "minHeight"
|
|
2291
|
+
}), f = O({
|
|
2292
|
+
get: () => n.value,
|
|
2293
|
+
set: (c) => {
|
|
2294
|
+
n.value = t.maxLength ? c == null ? void 0 : c.slice(0, t.maxLength) : c;
|
|
2295
|
+
}
|
|
2296
|
+
});
|
|
2297
|
+
return (c, u) => (A(), de(R(as), {
|
|
2298
|
+
class: j(["q-text-area", t.class]),
|
|
2299
|
+
for: R(r),
|
|
2300
|
+
label: t.label,
|
|
2301
|
+
size: t.size,
|
|
2302
|
+
readonly: t.readonly,
|
|
2303
|
+
disabled: t.disabled,
|
|
2304
|
+
required: t.required
|
|
2305
|
+
}, Mt({
|
|
2306
|
+
"label.prepend": _(() => [
|
|
2307
|
+
k(c.$slots, "label.prepend")
|
|
2565
2308
|
]),
|
|
2566
|
-
"label.append":
|
|
2567
|
-
|
|
2309
|
+
"label.append": _(() => [
|
|
2310
|
+
k(c.$slots, "label.append")
|
|
2568
2311
|
]),
|
|
2569
|
-
default:
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
ref_key: "
|
|
2573
|
-
ref:
|
|
2574
|
-
|
|
2575
|
-
class: "q-text-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2312
|
+
default: _(() => [
|
|
2313
|
+
_t(P("textarea", Ne({
|
|
2314
|
+
id: R(r),
|
|
2315
|
+
ref_key: "textareaRef",
|
|
2316
|
+
ref: o,
|
|
2317
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => f.value = d),
|
|
2318
|
+
class: "q-text-area__input",
|
|
2319
|
+
required: t.required,
|
|
2320
|
+
placeholder: s.value,
|
|
2321
|
+
readonly: t.readonly,
|
|
2322
|
+
disabled: t.disabled,
|
|
2323
|
+
maxlength: t.maxLength,
|
|
2324
|
+
rows: t.rows,
|
|
2325
|
+
cols: t.cols,
|
|
2326
|
+
resize: t.resize,
|
|
2327
|
+
wrap: t.wrap
|
|
2328
|
+
}, c.$attrs, Ht(i.value, !0)), null, 16, ws), [
|
|
2329
|
+
[Wt, f.value]
|
|
2585
2330
|
])
|
|
2586
2331
|
]),
|
|
2587
2332
|
_: 2
|
|
2588
2333
|
/* DYNAMIC */
|
|
2589
2334
|
}, [
|
|
2590
|
-
|
|
2335
|
+
c.$slots.prepend ? {
|
|
2591
2336
|
name: "prepend",
|
|
2592
|
-
fn:
|
|
2593
|
-
|
|
2337
|
+
fn: _(() => [
|
|
2338
|
+
k(c.$slots, "prepend")
|
|
2594
2339
|
]),
|
|
2595
2340
|
key: "0"
|
|
2596
2341
|
} : void 0,
|
|
2597
|
-
|
|
2342
|
+
c.$slots.append ? {
|
|
2598
2343
|
name: "append",
|
|
2599
|
-
fn:
|
|
2600
|
-
|
|
2344
|
+
fn: _(() => [
|
|
2345
|
+
k(c.$slots, "append")
|
|
2601
2346
|
]),
|
|
2602
2347
|
key: "1"
|
|
2603
2348
|
} : void 0,
|
|
2604
|
-
|
|
2349
|
+
c.$slots.extras ? {
|
|
2605
2350
|
name: "extras",
|
|
2606
|
-
fn:
|
|
2607
|
-
|
|
2351
|
+
fn: _(() => [
|
|
2352
|
+
k(c.$slots, "extras")
|
|
2608
2353
|
]),
|
|
2609
2354
|
key: "2"
|
|
2610
2355
|
} : void 0
|
|
2611
2356
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
2612
2357
|
}
|
|
2613
|
-
})
|
|
2614
|
-
const p$1 = C$3(L);
|
|
2615
|
-
const q = {
|
|
2616
|
-
key: 0,
|
|
2617
|
-
class: "q-input-group__prepend"
|
|
2618
|
-
}, z = { key: 0 }, $ = {
|
|
2619
|
-
key: 1,
|
|
2620
|
-
class: "q-input-group__append"
|
|
2621
|
-
}, h = { key: 0 }, Q = /* @__PURE__ */ defineComponent({
|
|
2622
|
-
__name: "QInputGroup",
|
|
2623
|
-
props: {
|
|
2624
|
-
id: { default: void 0 },
|
|
2625
|
-
label: { default: "" },
|
|
2626
|
-
required: { type: Boolean },
|
|
2627
|
-
prependIcon: { default: void 0 },
|
|
2628
|
-
appendIcon: { default: void 0 },
|
|
2629
|
-
size: { default: "large" },
|
|
2630
|
-
class: { default: void 0 }
|
|
2631
|
-
},
|
|
2632
|
-
setup(c) {
|
|
2633
|
-
const e2 = c;
|
|
2634
|
-
return I$1({
|
|
2635
|
-
QField: {
|
|
2636
|
-
size: "block"
|
|
2637
|
-
}
|
|
2638
|
-
}), (o2, y2) => (openBlock(), createBlock(unref(t$1), {
|
|
2639
|
-
id: e2.id,
|
|
2640
|
-
class: normalizeClass(["q-input-group", e2.class]),
|
|
2641
|
-
label: e2.label,
|
|
2642
|
-
required: e2.required,
|
|
2643
|
-
size: e2.size
|
|
2644
|
-
}, createSlots({
|
|
2645
|
-
default: withCtx(() => [
|
|
2646
|
-
o2.$slots.prepend || e2.prependIcon ? (openBlock(), createElementBlock("div", q, [
|
|
2647
|
-
e2.prependIcon ? (openBlock(), createElementBlock("span", z, [
|
|
2648
|
-
createVNode(
|
|
2649
|
-
unref(_),
|
|
2650
|
-
normalizeProps(guardReactiveProps(e2.prependIcon)),
|
|
2651
|
-
null,
|
|
2652
|
-
16
|
|
2653
|
-
/* FULL_PROPS */
|
|
2654
|
-
)
|
|
2655
|
-
])) : createCommentVNode("v-if", true),
|
|
2656
|
-
renderSlot(o2.$slots, "prepend")
|
|
2657
|
-
])) : createCommentVNode("v-if", true),
|
|
2658
|
-
renderSlot(o2.$slots, "default"),
|
|
2659
|
-
o2.$slots.append || e2.appendIcon ? (openBlock(), createElementBlock("div", $, [
|
|
2660
|
-
e2.appendIcon ? (openBlock(), createElementBlock("span", h, [
|
|
2661
|
-
createVNode(
|
|
2662
|
-
unref(_),
|
|
2663
|
-
normalizeProps(guardReactiveProps(e2.appendIcon)),
|
|
2664
|
-
null,
|
|
2665
|
-
16
|
|
2666
|
-
/* FULL_PROPS */
|
|
2667
|
-
)
|
|
2668
|
-
])) : createCommentVNode("v-if", true),
|
|
2669
|
-
renderSlot(o2.$slots, "append")
|
|
2670
|
-
])) : createCommentVNode("v-if", true)
|
|
2671
|
-
]),
|
|
2672
|
-
_: 2
|
|
2673
|
-
/* DYNAMIC */
|
|
2674
|
-
}, [
|
|
2675
|
-
o2.$slots.extras ? {
|
|
2676
|
-
name: "extras",
|
|
2677
|
-
fn: withCtx(() => [
|
|
2678
|
-
renderSlot(o2.$slots, "extras")
|
|
2679
|
-
]),
|
|
2680
|
-
key: "0"
|
|
2681
|
-
} : void 0
|
|
2682
|
-
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
2683
|
-
}
|
|
2684
|
-
});
|
|
2685
|
-
const m = C$3(Q);
|
|
2686
|
-
const p = /* @__PURE__ */ defineComponent({
|
|
2687
|
-
__name: "QLineLoader",
|
|
2688
|
-
props: {
|
|
2689
|
-
class: { default: void 0 }
|
|
2690
|
-
},
|
|
2691
|
-
setup(e2) {
|
|
2692
|
-
const o2 = e2;
|
|
2693
|
-
return (r2, t2) => (openBlock(), createElementBlock(
|
|
2694
|
-
"div",
|
|
2695
|
-
{
|
|
2696
|
-
class: normalizeClass(["q-line-loader", o2.class])
|
|
2697
|
-
},
|
|
2698
|
-
null,
|
|
2699
|
-
2
|
|
2700
|
-
/* CLASS */
|
|
2701
|
-
));
|
|
2702
|
-
}
|
|
2703
|
-
});
|
|
2704
|
-
const t = C$3(p);
|
|
2705
|
-
const _hoisted_1$1 = { class: "q-chatbot__message-container" };
|
|
2706
|
-
const _hoisted_2$1 = ["src"];
|
|
2707
|
-
const _hoisted_3$1 = { class: "q-chatbot__message-wrapper" };
|
|
2708
|
-
const _hoisted_4$1 = {
|
|
2358
|
+
}), Es = M(As), Ss = { class: "q-chatbot__message-container" }, vs = ["src"], Rs = { class: "q-chatbot__message-wrapper" }, Ts = {
|
|
2709
2359
|
key: 0,
|
|
2710
2360
|
class: "q-chatbot__sender"
|
|
2711
|
-
}
|
|
2712
|
-
const _hoisted_5 = { class: "q-chatbot__message" };
|
|
2713
|
-
const _hoisted_6 = ["innerHTML"];
|
|
2714
|
-
const _hoisted_7 = {
|
|
2361
|
+
}, Cs = { class: "q-chatbot__message" }, Os = ["innerHTML"], xs = {
|
|
2715
2362
|
key: 1,
|
|
2716
2363
|
class: "q-chatbot__text"
|
|
2717
|
-
}
|
|
2718
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2364
|
+
}, Bs = /* @__PURE__ */ q({
|
|
2719
2365
|
__name: "CBMessage",
|
|
2720
2366
|
props: {
|
|
2721
2367
|
sender: { default: "user" },
|
|
@@ -2724,65 +2370,42 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2724
2370
|
loading: { type: Boolean },
|
|
2725
2371
|
dateFormat: {}
|
|
2726
2372
|
},
|
|
2727
|
-
setup(
|
|
2728
|
-
const
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
2751
|
-
props.sender === "bot" ? (openBlock(), createElementBlock("img", {
|
|
2752
|
-
key: 0,
|
|
2753
|
-
src: unref(ChatBotIcon),
|
|
2754
|
-
alt: "Chatbot",
|
|
2755
|
-
class: "q-chatbot__profile"
|
|
2756
|
-
}, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
|
|
2757
|
-
createElementVNode("div", _hoisted_3$1, [
|
|
2758
|
-
!_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_4$1, toDisplayString(messageHeader.value), 1)) : createCommentVNode("", true),
|
|
2759
|
-
createElementVNode("div", _hoisted_5, [
|
|
2760
|
-
_ctx.loading ? (openBlock(), createBlock(unref(t), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2761
|
-
props.sender == "bot" ? (openBlock(), createElementBlock("div", {
|
|
2762
|
-
key: 0,
|
|
2763
|
-
class: "q-chatbot__text",
|
|
2764
|
-
innerHTML: props.message
|
|
2765
|
-
}, null, 8, _hoisted_6)) : (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(props.message), 1))
|
|
2766
|
-
], 64))
|
|
2767
|
-
])
|
|
2373
|
+
setup(e) {
|
|
2374
|
+
const t = e, n = O(() => t.sender === "bot" ? "GenioBot" : "You"), r = O(() => t.dateFormat ? i(t.date, t.dateFormat) : t.date.toLocaleString()), s = O(() => `${n.value} ${r.value}`);
|
|
2375
|
+
function i(o, a) {
|
|
2376
|
+
const f = o.getDate().toString().padStart(2, "0"), c = (o.getMonth() + 1).toString().padStart(2, "0"), u = o.getFullYear().toString().padStart(2, "0"), d = o.getHours().toString().padStart(2, "0"), y = o.getMinutes().toString().padStart(2, "0"), E = o.getSeconds().toString().padStart(2, "0");
|
|
2377
|
+
return a.replace("dd", f).replace("MM", c).replace("yyyy", u).replace("HH", d).replace("mm", y).replace("ss", E);
|
|
2378
|
+
}
|
|
2379
|
+
return (o, a) => (A(), T("div", Ss, [
|
|
2380
|
+
t.sender === "bot" ? (A(), T("img", {
|
|
2381
|
+
key: 0,
|
|
2382
|
+
src: R(Tr),
|
|
2383
|
+
alt: "Chatbot",
|
|
2384
|
+
class: "q-chatbot__profile"
|
|
2385
|
+
}, null, 8, vs)) : I("", !0),
|
|
2386
|
+
P("div", Rs, [
|
|
2387
|
+
o.loading ? I("", !0) : (A(), T("div", Ts, X(s.value), 1)),
|
|
2388
|
+
P("div", Cs, [
|
|
2389
|
+
o.loading ? (A(), de(R(us), { key: 0 })) : (A(), T(ae, { key: 1 }, [
|
|
2390
|
+
t.sender == "bot" ? (A(), T("div", {
|
|
2391
|
+
key: 0,
|
|
2392
|
+
class: "q-chatbot__text",
|
|
2393
|
+
innerHTML: t.message
|
|
2394
|
+
}, null, 8, Os)) : (A(), T("div", xs, X(t.message), 1))
|
|
2395
|
+
], 64))
|
|
2768
2396
|
])
|
|
2769
|
-
])
|
|
2770
|
-
|
|
2397
|
+
])
|
|
2398
|
+
]));
|
|
2771
2399
|
}
|
|
2772
|
-
})
|
|
2773
|
-
|
|
2774
|
-
const _hoisted_2 = { class: "q-chatbot__content" };
|
|
2775
|
-
const _hoisted_3 = { class: "q-chatbot__tools" };
|
|
2776
|
-
const _hoisted_4 = { class: "q-chatbot__messages-container" };
|
|
2777
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2778
|
-
...{ name: "ChatBot" },
|
|
2400
|
+
}), Ns = { class: "q-chatbot" }, Ps = { class: "q-chatbot__content" }, Ds = { class: "q-chatbot__tools" }, Fs = { class: "q-chatbot__messages-container" }, ks = { class: "q-chatbot__footer-container" }, Ls = { class: "q-chatbot__footer" }, qs = { class: "q-chatbot__input" }, zs = { class: "q-chatbot__send-container" }, ro = /* @__PURE__ */ q({
|
|
2401
|
+
name: "ChatBot",
|
|
2779
2402
|
__name: "ChatBot",
|
|
2780
2403
|
props: {
|
|
2781
2404
|
apiEndpoint: { default: "http://localhost:3000" },
|
|
2782
2405
|
texts: { default: () => ({
|
|
2783
2406
|
chatbotTitle: "ChatBot",
|
|
2784
2407
|
qButtonTitle: "Send message",
|
|
2785
|
-
|
|
2408
|
+
inputLabel: "What can I help with?",
|
|
2786
2409
|
initialMessage: "Howdy! I am GenioBot 👋, Quidgest's personal AI assistant! How can I help you?",
|
|
2787
2410
|
loginError: "Uh oh, I could not authenticate with the Quidgest API endpoint 😓",
|
|
2788
2411
|
botIsSick: "*cough cough* GenioBot is not feeling alright 🥴️🤒, looks like something failed!"
|
|
@@ -2791,274 +2414,199 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2791
2414
|
projectPath: {},
|
|
2792
2415
|
dateFormat: {}
|
|
2793
2416
|
},
|
|
2794
|
-
setup(
|
|
2795
|
-
let
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
let isLoading = ref(false);
|
|
2800
|
-
let isChatDisabled = false;
|
|
2801
|
-
const scrollElement = ref(null);
|
|
2802
|
-
const promptInput = ref(null);
|
|
2803
|
-
const props = __props;
|
|
2804
|
-
onMounted(() => {
|
|
2805
|
-
initChat();
|
|
2806
|
-
});
|
|
2807
|
-
const userMessages = computed(() => {
|
|
2808
|
-
return messages.value.filter((m2) => m2.sender === "user");
|
|
2417
|
+
setup(e) {
|
|
2418
|
+
let t = J([]), n = 1, r = J(""), s = J(!1), i = !1;
|
|
2419
|
+
const o = Qt("scrollElement"), a = e;
|
|
2420
|
+
ot(() => {
|
|
2421
|
+
c();
|
|
2809
2422
|
});
|
|
2810
|
-
function
|
|
2811
|
-
|
|
2423
|
+
function f(g) {
|
|
2424
|
+
i = g;
|
|
2812
2425
|
}
|
|
2813
|
-
function
|
|
2814
|
-
|
|
2815
|
-
username:
|
|
2426
|
+
function c() {
|
|
2427
|
+
S.post(a.apiEndpoint + "/auth/login", {
|
|
2428
|
+
username: a.username,
|
|
2816
2429
|
password: "test"
|
|
2817
|
-
}).then((
|
|
2818
|
-
if (
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
return console.log(
|
|
2822
|
-
`Unsuccessful login, endpoint gave status ${response.status}`
|
|
2430
|
+
}).then((g) => {
|
|
2431
|
+
if (g.status != 200 || !g.data.success)
|
|
2432
|
+
return f(!0), d(a.texts.loginError), console.log(
|
|
2433
|
+
`Unsuccessful login, endpoint gave status ${g.status}`
|
|
2823
2434
|
);
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
console.log(
|
|
2830
|
-
"The following error ocurred while trying to login: \n" + error
|
|
2435
|
+
u();
|
|
2436
|
+
}).catch((g) => {
|
|
2437
|
+
f(!0), d(a.texts.loginError), console.log(
|
|
2438
|
+
`The following error ocurred while trying to login:
|
|
2439
|
+
` + g
|
|
2831
2440
|
);
|
|
2832
2441
|
});
|
|
2833
2442
|
}
|
|
2834
|
-
function
|
|
2835
|
-
|
|
2836
|
-
username:
|
|
2837
|
-
project:
|
|
2838
|
-
}).then((
|
|
2839
|
-
if (
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
return console.log(
|
|
2843
|
-
`Unsuccessful load, endpoint gave status ${response.status}`
|
|
2443
|
+
function u() {
|
|
2444
|
+
S.post(a.apiEndpoint + "/prompt/load", {
|
|
2445
|
+
username: a.username,
|
|
2446
|
+
project: a.projectPath
|
|
2447
|
+
}).then((g) => {
|
|
2448
|
+
if (g.status != 200 || !g.data.success)
|
|
2449
|
+
return f(!0), d(a.texts.loginError), console.log(
|
|
2450
|
+
`Unsuccessful load, endpoint gave status ${g.status}`
|
|
2844
2451
|
);
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2452
|
+
E(), g.data.history.forEach(
|
|
2453
|
+
(w) => {
|
|
2454
|
+
d(
|
|
2455
|
+
w.content,
|
|
2456
|
+
w.type === "ai" ? "bot" : "user"
|
|
2457
|
+
);
|
|
2458
|
+
}
|
|
2459
|
+
);
|
|
2460
|
+
}).catch((g) => {
|
|
2461
|
+
f(!0), d(a.texts.loginError), console.log(
|
|
2462
|
+
`The following error ocurred while trying to login:
|
|
2463
|
+
` + g
|
|
2855
2464
|
);
|
|
2856
2465
|
});
|
|
2857
2466
|
}
|
|
2858
|
-
function
|
|
2859
|
-
|
|
2860
|
-
id:
|
|
2861
|
-
message,
|
|
2467
|
+
function d(g, w = "bot") {
|
|
2468
|
+
t.value.push({
|
|
2469
|
+
id: n++,
|
|
2470
|
+
message: g,
|
|
2862
2471
|
date: /* @__PURE__ */ new Date(),
|
|
2863
|
-
sender
|
|
2864
|
-
});
|
|
2865
|
-
nextTick(scrollToBottom);
|
|
2472
|
+
sender: w
|
|
2473
|
+
}), st(m);
|
|
2866
2474
|
}
|
|
2867
|
-
function
|
|
2868
|
-
return
|
|
2869
|
-
(
|
|
2475
|
+
function y() {
|
|
2476
|
+
return t.value.find(
|
|
2477
|
+
(g) => g.id === n - 1
|
|
2870
2478
|
);
|
|
2871
2479
|
}
|
|
2872
|
-
function
|
|
2873
|
-
|
|
2480
|
+
function E() {
|
|
2481
|
+
d(a.texts.initialMessage);
|
|
2874
2482
|
}
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2877
|
-
msgHistoryStack = [];
|
|
2878
|
-
userPrompt.value = "";
|
|
2879
|
-
isLoading.value = false;
|
|
2880
|
-
setDisabledState(false);
|
|
2483
|
+
function p() {
|
|
2484
|
+
t.value = [], r.value = "", s.value = !1, f(!1);
|
|
2881
2485
|
}
|
|
2882
|
-
function
|
|
2883
|
-
var
|
|
2884
|
-
(
|
|
2486
|
+
function m() {
|
|
2487
|
+
var g;
|
|
2488
|
+
(g = o.value) == null || g.scrollIntoView({ behavior: "smooth" });
|
|
2885
2489
|
}
|
|
2886
|
-
function
|
|
2887
|
-
|
|
2888
|
-
return;
|
|
2889
|
-
if (event.key == "ArrowUp") {
|
|
2890
|
-
if (userMessages.value.length == 0)
|
|
2891
|
-
return;
|
|
2892
|
-
let lastMsgObj = userMessages.value[userMessages.value.length - 1 - msgHistoryStack.length];
|
|
2893
|
-
if (!lastMsgObj)
|
|
2894
|
-
return;
|
|
2895
|
-
msgHistoryStack.push(userPrompt.value);
|
|
2896
|
-
userPrompt.value = lastMsgObj.message;
|
|
2897
|
-
nextTick(
|
|
2898
|
-
() => setCursorPosition(
|
|
2899
|
-
promptInput.value,
|
|
2900
|
-
lastMsgObj.message.length
|
|
2901
|
-
)
|
|
2902
|
-
);
|
|
2903
|
-
} else if (event.key == "ArrowDown") {
|
|
2904
|
-
let previousHistoryText = msgHistoryStack.pop();
|
|
2905
|
-
if (!previousHistoryText) {
|
|
2906
|
-
userPrompt.value = "";
|
|
2907
|
-
return;
|
|
2908
|
-
}
|
|
2909
|
-
userPrompt.value = previousHistoryText;
|
|
2910
|
-
}
|
|
2911
|
-
}
|
|
2912
|
-
function sendMessage() {
|
|
2913
|
-
if (userPrompt.value.trim().length == 0 || isLoading.value || isChatDisabled)
|
|
2914
|
-
return;
|
|
2915
|
-
addChatMessage(userPrompt.value, "user");
|
|
2916
|
-
setChatPrompt(userPrompt.value);
|
|
2917
|
-
userPrompt.value = "";
|
|
2490
|
+
function h() {
|
|
2491
|
+
r.value.trim().length == 0 || s.value || i || (d(r.value, "user"), v(r.value), r.value = "");
|
|
2918
2492
|
}
|
|
2919
|
-
function
|
|
2920
|
-
|
|
2921
|
-
let
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
user: props.username
|
|
2493
|
+
function v(g) {
|
|
2494
|
+
d("");
|
|
2495
|
+
let w = y(), B = {
|
|
2496
|
+
message: g,
|
|
2497
|
+
project: a.projectPath,
|
|
2498
|
+
user: a.username
|
|
2926
2499
|
};
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
url: props.apiEndpoint + "/prompt/message",
|
|
2500
|
+
s.value = !0, S({
|
|
2501
|
+
url: a.apiEndpoint + "/prompt/message",
|
|
2930
2502
|
method: "POST",
|
|
2931
|
-
data:
|
|
2932
|
-
onDownloadProgress: (
|
|
2933
|
-
var
|
|
2934
|
-
const
|
|
2935
|
-
|
|
2936
|
-
if (status != 200)
|
|
2937
|
-
return;
|
|
2938
|
-
if (msg)
|
|
2939
|
-
msg.message = chunk;
|
|
2940
|
-
scrollToBottom();
|
|
2503
|
+
data: B,
|
|
2504
|
+
onDownloadProgress: (D) => {
|
|
2505
|
+
var qe, ze;
|
|
2506
|
+
const G = (qe = D.event) == null ? void 0 : qe.currentTarget.response;
|
|
2507
|
+
((ze = D.event) == null ? void 0 : ze.currentTarget.status) == 200 && (w && (w.message = G), m());
|
|
2941
2508
|
}
|
|
2942
|
-
}).then(({ data }) => {
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
addChatMessage(props.texts.botIsSick);
|
|
2947
|
-
setDisabledState(true);
|
|
2948
|
-
console.log(error);
|
|
2509
|
+
}).then(({ data: D }) => {
|
|
2510
|
+
w && (w.message = D);
|
|
2511
|
+
}).catch((D) => {
|
|
2512
|
+
d(a.texts.botIsSick), f(!0), console.log(D);
|
|
2949
2513
|
}).finally(() => {
|
|
2950
|
-
|
|
2514
|
+
s.value = !1;
|
|
2951
2515
|
});
|
|
2952
2516
|
}
|
|
2953
|
-
function
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
}).then((response) => {
|
|
2962
|
-
if (response.status != 200 || !response.data.success) {
|
|
2963
|
-
setDisabledState(true);
|
|
2964
|
-
addChatMessage(props.texts.loginError);
|
|
2965
|
-
return console.log(
|
|
2966
|
-
`Unsuccessful login, endpoint gave status ${response.status}`
|
|
2517
|
+
function C() {
|
|
2518
|
+
S.post(a.apiEndpoint + "/prompt/clear", {
|
|
2519
|
+
username: a.username,
|
|
2520
|
+
project: a.projectPath
|
|
2521
|
+
}).then((g) => {
|
|
2522
|
+
if (g.status != 200 || !g.data.success)
|
|
2523
|
+
return f(!0), d(a.texts.loginError), console.log(
|
|
2524
|
+
`Unsuccessful login, endpoint gave status ${g.status}`
|
|
2967
2525
|
);
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
addChatMessage(props.texts.loginError);
|
|
2974
|
-
console.log(
|
|
2975
|
-
"The following error ocurred while trying to communicate with the endpoint: \n" + error
|
|
2526
|
+
p(), E();
|
|
2527
|
+
}).catch((g) => {
|
|
2528
|
+
f(!0), d(a.texts.loginError), console.log(
|
|
2529
|
+
`The following error ocurred while trying to communicate with the endpoint:
|
|
2530
|
+
` + g
|
|
2976
2531
|
);
|
|
2977
2532
|
});
|
|
2978
2533
|
}
|
|
2979
|
-
function
|
|
2980
|
-
const
|
|
2981
|
-
|
|
2982
|
-
classes.push("q-chatbot__messages-wrapper_right");
|
|
2983
|
-
return classes;
|
|
2534
|
+
function x(g) {
|
|
2535
|
+
const w = ["q-chatbot__messages-wrapper"];
|
|
2536
|
+
return g == "user" && w.push("q-chatbot__messages-wrapper_right"), w;
|
|
2984
2537
|
}
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
]),
|
|
3006
|
-
createElementVNode("div", _hoisted_4, [
|
|
3007
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(messages), (message) => {
|
|
3008
|
-
return openBlock(), createElementBlock("div", {
|
|
3009
|
-
key: message.id,
|
|
3010
|
-
class: normalizeClass(getMessageClasses(message.sender))
|
|
3011
|
-
}, [
|
|
3012
|
-
createVNode(unref(_sfc_main$1), mergeProps(message, {
|
|
3013
|
-
"date-format": props.dateFormat,
|
|
3014
|
-
loading: unref(isLoading) && !message.message
|
|
3015
|
-
}), null, 16, ["date-format", "loading"])
|
|
3016
|
-
], 2);
|
|
3017
|
-
}), 128))
|
|
3018
|
-
]),
|
|
3019
|
-
createElementVNode("div", {
|
|
3020
|
-
ref_key: "scrollElement",
|
|
3021
|
-
ref: scrollElement
|
|
3022
|
-
}, null, 512)
|
|
2538
|
+
return ee(
|
|
2539
|
+
() => a.apiEndpoint,
|
|
2540
|
+
() => {
|
|
2541
|
+
p(), c();
|
|
2542
|
+
}
|
|
2543
|
+
), (g, w) => (A(), T("div", Ns, [
|
|
2544
|
+
P("div", Ps, [
|
|
2545
|
+
P("div", Ds, [
|
|
2546
|
+
H(R(et), {
|
|
2547
|
+
title: a.texts.qButtonTitle,
|
|
2548
|
+
"b-style": "secondary",
|
|
2549
|
+
disabled: R(i),
|
|
2550
|
+
borderless: "",
|
|
2551
|
+
onClick: C
|
|
2552
|
+
}, {
|
|
2553
|
+
default: _(() => [
|
|
2554
|
+
H(R(tt), { icon: "bin" })
|
|
2555
|
+
]),
|
|
2556
|
+
_: 1
|
|
2557
|
+
}, 8, ["title", "disabled"])
|
|
3023
2558
|
]),
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
2559
|
+
P("div", Fs, [
|
|
2560
|
+
(A(!0), T(ae, null, Vt(R(t), (B) => (A(), T("div", {
|
|
2561
|
+
key: B.id,
|
|
2562
|
+
class: j(x(B.sender))
|
|
2563
|
+
}, [
|
|
2564
|
+
H(R(Bs), Ne({ ref_for: !0 }, B, {
|
|
2565
|
+
"date-format": a.dateFormat,
|
|
2566
|
+
loading: R(s) && !B.message
|
|
2567
|
+
}), null, 16, ["date-format", "loading"])
|
|
2568
|
+
], 2))), 128))
|
|
2569
|
+
]),
|
|
2570
|
+
P("div", {
|
|
2571
|
+
ref_key: "scrollElement",
|
|
2572
|
+
ref: o
|
|
2573
|
+
}, null, 512),
|
|
2574
|
+
P("div", ks, [
|
|
2575
|
+
P("label", null, X(a.texts.inputLabel), 1),
|
|
2576
|
+
P("div", Ls, [
|
|
2577
|
+
P("div", qs, [
|
|
2578
|
+
H(R(Es), {
|
|
2579
|
+
modelValue: R(r),
|
|
2580
|
+
"onUpdate:modelValue": w[0] || (w[0] = (B) => Jt(r) ? r.value = B : r = B),
|
|
2581
|
+
size: "block",
|
|
2582
|
+
autosize: "",
|
|
2583
|
+
resize: "none",
|
|
2584
|
+
rows: 2,
|
|
2585
|
+
disabled: R(i),
|
|
2586
|
+
onKeyup: Gt(h, ["enter"])
|
|
2587
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
2588
|
+
]),
|
|
2589
|
+
P("div", zs, [
|
|
2590
|
+
H(R(et), {
|
|
2591
|
+
title: a.texts.qButtonTitle,
|
|
2592
|
+
"b-style": "primary",
|
|
2593
|
+
class: "q-chatbot__send",
|
|
2594
|
+
disabled: R(i) || R(s),
|
|
2595
|
+
loading: R(s),
|
|
2596
|
+
onClick: h
|
|
2597
|
+
}, {
|
|
2598
|
+
default: _(() => [
|
|
2599
|
+
H(R(tt), { icon: "send" })
|
|
2600
|
+
]),
|
|
2601
|
+
_: 1
|
|
2602
|
+
}, 8, ["title", "disabled", "loading"])
|
|
2603
|
+
])
|
|
2604
|
+
])
|
|
2605
|
+
])
|
|
2606
|
+
])
|
|
2607
|
+
]));
|
|
3060
2608
|
}
|
|
3061
2609
|
});
|
|
3062
2610
|
export {
|
|
3063
|
-
|
|
2611
|
+
ro as default
|
|
3064
2612
|
};
|