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