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