@ea-lab/reactive-json 1.3.0 → 1.4.0
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/component/action/CustomEventListener.js +1 -1
- package/dist/component/action/ReactOnEvent.js +1 -1
- package/dist/component/attributeTransformer/setAttributeValue.js +1 -1
- package/dist/component/attributeTransformer/toggleAttributeValue.js +1 -1
- package/dist/component/attributeTransformer/unsetAttributeValue.js +1 -1
- package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +1 -1
- package/dist/component/element/special/Count.js +1 -1
- package/dist/component/element/special/ReactiveJsonSubroot.js +1 -1
- package/dist/component/index.js +1 -1
- package/dist/component/reaction/fetchData.js +1 -1
- package/dist/component/reaction/index.js +1 -1
- package/dist/component/reaction/submitData.js +1 -1
- package/dist/component/reaction/utility/httpRequestCommon.js +2 -2
- package/dist/component/reaction/utility/index.js +1 -1
- package/dist/engine/ReactiveJsonRoot.js +1 -1
- package/dist/engine/utility/parseRjBuild.js +1 -1
- package/dist/{httpRequestCommon-BNA1zivP.js → httpRequestCommon-C7MsJIKA.js} +370 -358
- package/dist/{js-yaml-Bw0KO4XO.js → js-yaml-CFDLc3Ha.js} +196 -193
- package/dist/main.js +1 -1
- package/package.json +2 -2
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { evaluateTemplateValue as
|
|
2
|
-
import { alterData as
|
|
1
|
+
import { evaluateTemplateValue as mt, dataLocationToPath as yt } from "./engine/TemplateSystem.js";
|
|
2
|
+
import { alterData as Ne } from "./engine/utility/alterData.js";
|
|
3
3
|
import { applyDataMapping as bt } from "./engine/utility/dataMappingSystem.js";
|
|
4
|
-
import "./js-yaml-
|
|
5
|
-
function
|
|
4
|
+
import "./js-yaml-CFDLc3Ha.js";
|
|
5
|
+
function Ve(e, t) {
|
|
6
6
|
return function() {
|
|
7
7
|
return e.apply(t, arguments);
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
const { toString: wt } = Object.prototype, { getPrototypeOf: Ae } = Object, { iterator: fe, toStringTag:
|
|
10
|
+
const { toString: wt } = Object.prototype, { getPrototypeOf: Ae } = Object, { iterator: fe, toStringTag: We } = Symbol, de = /* @__PURE__ */ ((e) => (t) => {
|
|
11
11
|
const n = wt.call(t);
|
|
12
12
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
13
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
14
|
-
function
|
|
15
|
-
return e !== null && !
|
|
13
|
+
})(/* @__PURE__ */ Object.create(null)), U = (e) => (e = e.toLowerCase(), (t) => de(t) === e), he = (e) => (t) => typeof t === e, { isArray: K } = Array, v = he("undefined");
|
|
14
|
+
function ne(e) {
|
|
15
|
+
return e !== null && !v(e) && e.constructor !== null && !v(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const ve = U("ArrayBuffer");
|
|
18
18
|
function gt(e) {
|
|
19
19
|
let t;
|
|
20
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
20
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ve(e.buffer), t;
|
|
21
21
|
}
|
|
22
|
-
const Et = he("string"),
|
|
22
|
+
const Et = he("string"), P = he("function"), Ke = he("number"), re = (e) => e !== null && typeof e == "object", St = (e) => e === !0 || e === !1, ae = (e) => {
|
|
23
23
|
if (de(e) !== "object")
|
|
24
24
|
return !1;
|
|
25
25
|
const t = Ae(e);
|
|
26
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
26
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(We in e) && !(fe in e);
|
|
27
27
|
}, Rt = (e) => {
|
|
28
|
-
if (!
|
|
28
|
+
if (!re(e) || ne(e))
|
|
29
29
|
return !1;
|
|
30
30
|
try {
|
|
31
31
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
32
32
|
} catch {
|
|
33
33
|
return !1;
|
|
34
34
|
}
|
|
35
|
-
}, Ot =
|
|
35
|
+
}, Ot = U("Date"), At = U("File"), Tt = U("Blob"), xt = U("FileList"), Ct = (e) => re(e) && P(e.pipe), Nt = (e) => {
|
|
36
36
|
let t;
|
|
37
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
38
|
-
t === "object" &&
|
|
39
|
-
}, Pt =
|
|
40
|
-
function
|
|
37
|
+
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = de(e)) === "formdata" || // detect form-data instance
|
|
38
|
+
t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
|
|
39
|
+
}, Pt = U("URLSearchParams"), [Ft, _t, Dt, Bt] = ["ReadableStream", "Request", "Response", "Headers"].map(U), Lt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
40
|
+
function se(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
41
41
|
if (e === null || typeof e > "u")
|
|
42
42
|
return;
|
|
43
43
|
let r, s;
|
|
44
|
-
if (typeof e != "object" && (e = [e]),
|
|
44
|
+
if (typeof e != "object" && (e = [e]), K(e))
|
|
45
45
|
for (r = 0, s = e.length; r < s; r++)
|
|
46
46
|
t.call(null, e[r], r, e);
|
|
47
47
|
else {
|
|
48
|
-
if (
|
|
48
|
+
if (ne(e))
|
|
49
49
|
return;
|
|
50
50
|
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
51
51
|
let c;
|
|
@@ -53,8 +53,8 @@ function ne(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
53
53
|
c = i[r], t.call(null, e[c], c, e);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
if (
|
|
56
|
+
function Xe(e, t) {
|
|
57
|
+
if (ne(e))
|
|
58
58
|
return null;
|
|
59
59
|
t = t.toLowerCase();
|
|
60
60
|
const n = Object.keys(e);
|
|
@@ -64,18 +64,18 @@ function Ke(e, t) {
|
|
|
64
64
|
return s;
|
|
65
65
|
return null;
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ge = (e) => !v(e) && e !== z;
|
|
68
68
|
function ge() {
|
|
69
|
-
const { caseless: e, skipUndefined: t } =
|
|
70
|
-
const o = e &&
|
|
71
|
-
ae(n[o]) && ae(s) ? n[o] = ge(n[o], s) : ae(s) ? n[o] = ge({}, s) :
|
|
69
|
+
const { caseless: e, skipUndefined: t } = Ge(this) && this || {}, n = {}, r = (s, i) => {
|
|
70
|
+
const o = e && Xe(n, i) || i;
|
|
71
|
+
ae(n[o]) && ae(s) ? n[o] = ge(n[o], s) : ae(s) ? n[o] = ge({}, s) : K(s) ? n[o] = s.slice() : (!t || !v(s)) && (n[o] = s);
|
|
72
72
|
};
|
|
73
73
|
for (let s = 0, i = arguments.length; s < i; s++)
|
|
74
|
-
arguments[s] &&
|
|
74
|
+
arguments[s] && se(arguments[s], r);
|
|
75
75
|
return n;
|
|
76
76
|
}
|
|
77
|
-
const Ut = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
78
|
-
n &&
|
|
77
|
+
const Ut = (e, t, n, { allOwnKeys: r } = {}) => (se(t, (s, i) => {
|
|
78
|
+
n && P(s) ? e[i] = Ve(s, n) : e[i] = s;
|
|
79
79
|
}, { allOwnKeys: r }), e), kt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jt = (e, t, n, r) => {
|
|
80
80
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
81
81
|
value: t.prototype
|
|
@@ -96,9 +96,9 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (ne(t, (s, i) => {
|
|
|
96
96
|
return r !== -1 && r === n;
|
|
97
97
|
}, Ht = (e) => {
|
|
98
98
|
if (!e) return null;
|
|
99
|
-
if (
|
|
99
|
+
if (K(e)) return e;
|
|
100
100
|
let t = e.length;
|
|
101
|
-
if (!
|
|
101
|
+
if (!Ke(t)) return null;
|
|
102
102
|
const n = new Array(t);
|
|
103
103
|
for (; t-- > 0; )
|
|
104
104
|
n[t] = e[t];
|
|
@@ -116,23 +116,23 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (ne(t, (s, i) => {
|
|
|
116
116
|
for (; (n = e.exec(t)) !== null; )
|
|
117
117
|
r.push(n);
|
|
118
118
|
return r;
|
|
119
|
-
}, Jt =
|
|
119
|
+
}, Jt = U("HTMLFormElement"), Vt = (e) => e.toLowerCase().replace(
|
|
120
120
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
121
121
|
function(n, r, s) {
|
|
122
122
|
return r.toUpperCase() + s;
|
|
123
123
|
}
|
|
124
|
-
),
|
|
124
|
+
), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Wt = U("RegExp"), Qe = (e, t) => {
|
|
125
125
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
126
|
-
|
|
126
|
+
se(n, (s, i) => {
|
|
127
127
|
let o;
|
|
128
128
|
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
129
129
|
}), Object.defineProperties(e, r);
|
|
130
130
|
}, vt = (e) => {
|
|
131
|
-
|
|
132
|
-
if (
|
|
131
|
+
Qe(e, (t, n) => {
|
|
132
|
+
if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
133
133
|
return !1;
|
|
134
134
|
const r = e[n];
|
|
135
|
-
if (
|
|
135
|
+
if (P(r)) {
|
|
136
136
|
if (t.enumerable = !1, "writable" in t) {
|
|
137
137
|
t.writable = !1;
|
|
138
138
|
return;
|
|
@@ -148,95 +148,95 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (ne(t, (s, i) => {
|
|
|
148
148
|
n[i] = !0;
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
|
-
return
|
|
151
|
+
return K(e) ? r(e) : r(String(e).split(t)), n;
|
|
152
152
|
}, Xt = () => {
|
|
153
153
|
}, Gt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
154
154
|
function Qt(e) {
|
|
155
|
-
return !!(e &&
|
|
155
|
+
return !!(e && P(e.append) && e[We] === "FormData" && e[fe]);
|
|
156
156
|
}
|
|
157
157
|
const Zt = (e) => {
|
|
158
158
|
const t = new Array(10), n = (r, s) => {
|
|
159
|
-
if (
|
|
159
|
+
if (re(r)) {
|
|
160
160
|
if (t.indexOf(r) >= 0)
|
|
161
161
|
return;
|
|
162
|
-
if (
|
|
162
|
+
if (ne(r))
|
|
163
163
|
return r;
|
|
164
164
|
if (!("toJSON" in r)) {
|
|
165
165
|
t[s] = r;
|
|
166
|
-
const i =
|
|
167
|
-
return
|
|
166
|
+
const i = K(r) ? [] : {};
|
|
167
|
+
return se(r, (o, c) => {
|
|
168
168
|
const d = n(o, s + 1);
|
|
169
|
-
!
|
|
169
|
+
!v(d) && (i[c] = d);
|
|
170
170
|
}), t[s] = void 0, i;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
return r;
|
|
174
174
|
};
|
|
175
175
|
return n(e, 0);
|
|
176
|
-
}, Yt =
|
|
177
|
-
s ===
|
|
176
|
+
}, Yt = U("AsyncFunction"), en = (e) => e && (re(e) || P(e)) && P(e.then) && P(e.catch), Ze = ((e, t) => e ? setImmediate : t ? ((n, r) => (z.addEventListener("message", ({ source: s, data: i }) => {
|
|
177
|
+
s === z && i === n && r.length && r.shift()();
|
|
178
178
|
}, !1), (s) => {
|
|
179
|
-
r.push(s),
|
|
179
|
+
r.push(s), z.postMessage(n, "*");
|
|
180
180
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
181
181
|
typeof setImmediate == "function",
|
|
182
|
-
|
|
183
|
-
), tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
184
|
-
isArray:
|
|
185
|
-
isArrayBuffer:
|
|
186
|
-
isBuffer:
|
|
182
|
+
P(z.postMessage)
|
|
183
|
+
), tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(z) : typeof process < "u" && process.nextTick || Ze, nn = (e) => e != null && P(e[fe]), a = {
|
|
184
|
+
isArray: K,
|
|
185
|
+
isArrayBuffer: ve,
|
|
186
|
+
isBuffer: ne,
|
|
187
187
|
isFormData: Nt,
|
|
188
188
|
isArrayBufferView: gt,
|
|
189
189
|
isString: Et,
|
|
190
|
-
isNumber:
|
|
190
|
+
isNumber: Ke,
|
|
191
191
|
isBoolean: St,
|
|
192
|
-
isObject:
|
|
192
|
+
isObject: re,
|
|
193
193
|
isPlainObject: ae,
|
|
194
194
|
isEmptyObject: Rt,
|
|
195
195
|
isReadableStream: Ft,
|
|
196
196
|
isRequest: _t,
|
|
197
197
|
isResponse: Dt,
|
|
198
|
-
isHeaders:
|
|
199
|
-
isUndefined:
|
|
198
|
+
isHeaders: Bt,
|
|
199
|
+
isUndefined: v,
|
|
200
200
|
isDate: Ot,
|
|
201
201
|
isFile: At,
|
|
202
202
|
isBlob: Tt,
|
|
203
203
|
isRegExp: Wt,
|
|
204
|
-
isFunction:
|
|
204
|
+
isFunction: P,
|
|
205
205
|
isStream: Ct,
|
|
206
206
|
isURLSearchParams: Pt,
|
|
207
207
|
isTypedArray: Mt,
|
|
208
208
|
isFileList: xt,
|
|
209
|
-
forEach:
|
|
209
|
+
forEach: se,
|
|
210
210
|
merge: ge,
|
|
211
211
|
extend: Ut,
|
|
212
|
-
trim:
|
|
212
|
+
trim: Lt,
|
|
213
213
|
stripBOM: kt,
|
|
214
214
|
inherits: jt,
|
|
215
215
|
toFlatObject: qt,
|
|
216
216
|
kindOf: de,
|
|
217
|
-
kindOfTest:
|
|
217
|
+
kindOfTest: U,
|
|
218
218
|
endsWith: It,
|
|
219
219
|
toArray: Ht,
|
|
220
220
|
forEachEntry: $t,
|
|
221
221
|
matchAll: zt,
|
|
222
222
|
isHTMLForm: Jt,
|
|
223
|
-
hasOwnProperty:
|
|
224
|
-
hasOwnProp:
|
|
223
|
+
hasOwnProperty: Pe,
|
|
224
|
+
hasOwnProp: Pe,
|
|
225
225
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
226
|
-
reduceDescriptors:
|
|
226
|
+
reduceDescriptors: Qe,
|
|
227
227
|
freezeMethods: vt,
|
|
228
228
|
toObjectSet: Kt,
|
|
229
229
|
toCamelCase: Vt,
|
|
230
230
|
noop: Xt,
|
|
231
231
|
toFiniteNumber: Gt,
|
|
232
|
-
findKey:
|
|
233
|
-
global:
|
|
234
|
-
isContextDefined:
|
|
232
|
+
findKey: Xe,
|
|
233
|
+
global: z,
|
|
234
|
+
isContextDefined: Ge,
|
|
235
235
|
isSpecCompliantForm: Qt,
|
|
236
236
|
toJSONObject: Zt,
|
|
237
237
|
isAsyncFn: Yt,
|
|
238
238
|
isThenable: en,
|
|
239
|
-
setImmediate:
|
|
239
|
+
setImmediate: Ze,
|
|
240
240
|
asap: tn,
|
|
241
241
|
isIterable: nn
|
|
242
242
|
};
|
|
@@ -264,7 +264,7 @@ a.inherits(y, Error, {
|
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
|
-
const
|
|
267
|
+
const Ye = y.prototype, et = {};
|
|
268
268
|
[
|
|
269
269
|
"ERR_BAD_OPTION_VALUE",
|
|
270
270
|
"ERR_BAD_OPTION",
|
|
@@ -280,12 +280,12 @@ const Ze = y.prototype, Ye = {};
|
|
|
280
280
|
"ERR_INVALID_URL"
|
|
281
281
|
// eslint-disable-next-line func-names
|
|
282
282
|
].forEach((e) => {
|
|
283
|
-
|
|
283
|
+
et[e] = { value: e };
|
|
284
284
|
});
|
|
285
|
-
Object.defineProperties(y,
|
|
286
|
-
Object.defineProperty(
|
|
285
|
+
Object.defineProperties(y, et);
|
|
286
|
+
Object.defineProperty(Ye, "isAxiosError", { value: !0 });
|
|
287
287
|
y.from = (e, t, n, r, s, i) => {
|
|
288
|
-
const o = Object.create(
|
|
288
|
+
const o = Object.create(Ye);
|
|
289
289
|
a.toFlatObject(e, o, function(l) {
|
|
290
290
|
return l !== Error.prototype;
|
|
291
291
|
}, (u) => u !== "isAxiosError");
|
|
@@ -296,12 +296,12 @@ const rn = null;
|
|
|
296
296
|
function Ee(e) {
|
|
297
297
|
return a.isPlainObject(e) || a.isArray(e);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function tt(e) {
|
|
300
300
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Fe(e, t, n) {
|
|
303
303
|
return e ? e.concat(t).map(function(s, i) {
|
|
304
|
-
return s =
|
|
304
|
+
return s = tt(s), !n && i ? "[" + s + "]" : s;
|
|
305
305
|
}).join(n ? "." : "") : t;
|
|
306
306
|
}
|
|
307
307
|
function sn(e) {
|
|
@@ -334,46 +334,46 @@ function pe(e, t, n) {
|
|
|
334
334
|
return a.isArrayBuffer(f) || a.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
335
335
|
}
|
|
336
336
|
function l(f, m, h) {
|
|
337
|
-
let
|
|
337
|
+
let g = f;
|
|
338
338
|
if (f && !h && typeof f == "object") {
|
|
339
339
|
if (a.endsWith(m, "{}"))
|
|
340
340
|
m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
|
|
341
|
-
else if (a.isArray(f) && sn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (
|
|
342
|
-
return m =
|
|
343
|
-
!(a.isUndefined(
|
|
341
|
+
else if (a.isArray(f) && sn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (g = a.toArray(f)))
|
|
342
|
+
return m = tt(m), g.forEach(function(R, T) {
|
|
343
|
+
!(a.isUndefined(R) || R === null) && t.append(
|
|
344
344
|
// eslint-disable-next-line no-nested-ternary
|
|
345
|
-
o === !0 ?
|
|
346
|
-
u(
|
|
345
|
+
o === !0 ? Fe([m], T, i) : o === null ? m : m + "[]",
|
|
346
|
+
u(R)
|
|
347
347
|
);
|
|
348
348
|
}), !1;
|
|
349
349
|
}
|
|
350
|
-
return Ee(f) ? !0 : (t.append(
|
|
350
|
+
return Ee(f) ? !0 : (t.append(Fe(h, m, i), u(f)), !1);
|
|
351
351
|
}
|
|
352
352
|
const p = [], b = Object.assign(on, {
|
|
353
353
|
defaultVisitor: l,
|
|
354
354
|
convertValue: u,
|
|
355
355
|
isVisitable: Ee
|
|
356
356
|
});
|
|
357
|
-
function
|
|
357
|
+
function O(f, m) {
|
|
358
358
|
if (!a.isUndefined(f)) {
|
|
359
359
|
if (p.indexOf(f) !== -1)
|
|
360
360
|
throw Error("Circular reference detected in " + m.join("."));
|
|
361
|
-
p.push(f), a.forEach(f, function(
|
|
362
|
-
(!(a.isUndefined(
|
|
361
|
+
p.push(f), a.forEach(f, function(g, N) {
|
|
362
|
+
(!(a.isUndefined(g) || g === null) && s.call(
|
|
363
363
|
t,
|
|
364
|
-
|
|
365
|
-
a.isString(
|
|
364
|
+
g,
|
|
365
|
+
a.isString(N) ? N.trim() : N,
|
|
366
366
|
m,
|
|
367
367
|
b
|
|
368
|
-
)) === !0 &&
|
|
368
|
+
)) === !0 && O(g, m ? m.concat(N) : [N]);
|
|
369
369
|
}), p.pop();
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
if (!a.isObject(e))
|
|
373
373
|
throw new TypeError("data must be an object");
|
|
374
|
-
return
|
|
374
|
+
return O(e), t;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function _e(e) {
|
|
377
377
|
const t = {
|
|
378
378
|
"!": "%21",
|
|
379
379
|
"'": "%27",
|
|
@@ -390,14 +390,14 @@ function Fe(e) {
|
|
|
390
390
|
function Te(e, t) {
|
|
391
391
|
this._pairs = [], e && pe(e, this, t);
|
|
392
392
|
}
|
|
393
|
-
const
|
|
394
|
-
|
|
393
|
+
const nt = Te.prototype;
|
|
394
|
+
nt.append = function(t, n) {
|
|
395
395
|
this._pairs.push([t, n]);
|
|
396
396
|
};
|
|
397
|
-
|
|
397
|
+
nt.toString = function(t) {
|
|
398
398
|
const n = t ? function(r) {
|
|
399
|
-
return t.call(this, r,
|
|
400
|
-
} :
|
|
399
|
+
return t.call(this, r, _e);
|
|
400
|
+
} : _e;
|
|
401
401
|
return this._pairs.map(function(s) {
|
|
402
402
|
return n(s[0]) + "=" + n(s[1]);
|
|
403
403
|
}, "").join("&");
|
|
@@ -405,7 +405,7 @@ tt.toString = function(t) {
|
|
|
405
405
|
function an(e) {
|
|
406
406
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function rt(e, t, n) {
|
|
409
409
|
if (!t)
|
|
410
410
|
return e;
|
|
411
411
|
const r = n && n.encode || an;
|
|
@@ -420,7 +420,7 @@ function nt(e, t, n) {
|
|
|
420
420
|
}
|
|
421
421
|
return e;
|
|
422
422
|
}
|
|
423
|
-
class
|
|
423
|
+
class De {
|
|
424
424
|
constructor() {
|
|
425
425
|
this.handlers = [];
|
|
426
426
|
}
|
|
@@ -474,7 +474,7 @@ class _e {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
477
|
+
const st = {
|
|
478
478
|
silentJSONParsing: !0,
|
|
479
479
|
forcedJSONParsing: !0,
|
|
480
480
|
clarifyTimeoutError: !1
|
|
@@ -494,14 +494,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pn
|
|
|
494
494
|
hasStandardBrowserWebWorkerEnv: hn,
|
|
495
495
|
navigator: Se,
|
|
496
496
|
origin: pn
|
|
497
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
497
|
+
}, Symbol.toStringTag, { value: "Module" })), C = {
|
|
498
498
|
...mn,
|
|
499
499
|
...fn
|
|
500
500
|
};
|
|
501
501
|
function yn(e, t) {
|
|
502
|
-
return pe(e, new
|
|
502
|
+
return pe(e, new C.classes.URLSearchParams(), {
|
|
503
503
|
visitor: function(n, r, s, i) {
|
|
504
|
-
return
|
|
504
|
+
return C.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
505
505
|
},
|
|
506
506
|
...t
|
|
507
507
|
});
|
|
@@ -518,7 +518,7 @@ function wn(e) {
|
|
|
518
518
|
i = n[r], t[i] = e[i];
|
|
519
519
|
return t;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ot(e) {
|
|
522
522
|
function t(n, r, s, i) {
|
|
523
523
|
let o = n[i++];
|
|
524
524
|
if (o === "__proto__") return !0;
|
|
@@ -543,13 +543,13 @@ function gn(e, t, n) {
|
|
|
543
543
|
}
|
|
544
544
|
return (n || JSON.stringify)(e);
|
|
545
545
|
}
|
|
546
|
-
const
|
|
547
|
-
transitional:
|
|
546
|
+
const oe = {
|
|
547
|
+
transitional: st,
|
|
548
548
|
adapter: ["xhr", "http", "fetch"],
|
|
549
549
|
transformRequest: [function(t, n) {
|
|
550
550
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
|
|
551
551
|
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
552
|
-
return s ? JSON.stringify(
|
|
552
|
+
return s ? JSON.stringify(ot(t)) : t;
|
|
553
553
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
554
554
|
return t;
|
|
555
555
|
if (a.isArrayBufferView(t))
|
|
@@ -572,7 +572,7 @@ const re = {
|
|
|
572
572
|
return i || s ? (n.setContentType("application/json", !1), gn(t)) : t;
|
|
573
573
|
}],
|
|
574
574
|
transformResponse: [function(t) {
|
|
575
|
-
const n = this.transitional ||
|
|
575
|
+
const n = this.transitional || oe.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
576
576
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
577
577
|
return t;
|
|
578
578
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -596,8 +596,8 @@ const re = {
|
|
|
596
596
|
maxContentLength: -1,
|
|
597
597
|
maxBodyLength: -1,
|
|
598
598
|
env: {
|
|
599
|
-
FormData:
|
|
600
|
-
Blob:
|
|
599
|
+
FormData: C.classes.FormData,
|
|
600
|
+
Blob: C.classes.Blob
|
|
601
601
|
},
|
|
602
602
|
validateStatus: function(t) {
|
|
603
603
|
return t >= 200 && t < 300;
|
|
@@ -610,7 +610,7 @@ const re = {
|
|
|
610
610
|
}
|
|
611
611
|
};
|
|
612
612
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
613
|
-
|
|
613
|
+
oe.headers[e] = {};
|
|
614
614
|
});
|
|
615
615
|
const En = a.toObjectSet([
|
|
616
616
|
"age",
|
|
@@ -637,8 +637,8 @@ const En = a.toObjectSet([
|
|
|
637
637
|
`).forEach(function(o) {
|
|
638
638
|
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && En[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
639
639
|
}), t;
|
|
640
|
-
},
|
|
641
|
-
function
|
|
640
|
+
}, Be = Symbol("internals");
|
|
641
|
+
function te(e) {
|
|
642
642
|
return e && String(e).trim().toLowerCase();
|
|
643
643
|
}
|
|
644
644
|
function ce(e) {
|
|
@@ -676,14 +676,14 @@ function Tn(e, t) {
|
|
|
676
676
|
});
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
|
-
let
|
|
679
|
+
let F = class {
|
|
680
680
|
constructor(t) {
|
|
681
681
|
t && this.set(t);
|
|
682
682
|
}
|
|
683
683
|
set(t, n, r) {
|
|
684
684
|
const s = this;
|
|
685
685
|
function i(c, d, u) {
|
|
686
|
-
const l =
|
|
686
|
+
const l = te(d);
|
|
687
687
|
if (!l)
|
|
688
688
|
throw new Error("header name must be a non-empty string");
|
|
689
689
|
const p = a.findKey(s, l);
|
|
@@ -707,7 +707,7 @@ let P = class {
|
|
|
707
707
|
return this;
|
|
708
708
|
}
|
|
709
709
|
get(t, n) {
|
|
710
|
-
if (t =
|
|
710
|
+
if (t = te(t), t) {
|
|
711
711
|
const r = a.findKey(this, t);
|
|
712
712
|
if (r) {
|
|
713
713
|
const s = this[r];
|
|
@@ -724,7 +724,7 @@ let P = class {
|
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
has(t, n) {
|
|
727
|
-
if (t =
|
|
727
|
+
if (t = te(t), t) {
|
|
728
728
|
const r = a.findKey(this, t);
|
|
729
729
|
return !!(r && this[r] !== void 0 && (!n || ye(this, this[r], r, n)));
|
|
730
730
|
}
|
|
@@ -734,7 +734,7 @@ let P = class {
|
|
|
734
734
|
const r = this;
|
|
735
735
|
let s = !1;
|
|
736
736
|
function i(o) {
|
|
737
|
-
if (o =
|
|
737
|
+
if (o = te(o), o) {
|
|
738
738
|
const c = a.findKey(r, o);
|
|
739
739
|
c && (!n || ye(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
740
740
|
}
|
|
@@ -792,18 +792,18 @@ let P = class {
|
|
|
792
792
|
return n.forEach((s) => r.set(s)), r;
|
|
793
793
|
}
|
|
794
794
|
static accessor(t) {
|
|
795
|
-
const r = (this[
|
|
795
|
+
const r = (this[Be] = this[Be] = {
|
|
796
796
|
accessors: {}
|
|
797
797
|
}).accessors, s = this.prototype;
|
|
798
798
|
function i(o) {
|
|
799
|
-
const c =
|
|
799
|
+
const c = te(o);
|
|
800
800
|
r[c] || (Tn(s, o), r[c] = !0);
|
|
801
801
|
}
|
|
802
802
|
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
803
803
|
}
|
|
804
804
|
};
|
|
805
|
-
|
|
806
|
-
a.reduceDescriptors(
|
|
805
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
806
|
+
a.reduceDescriptors(F.prototype, ({ value: e }, t) => {
|
|
807
807
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
808
808
|
return {
|
|
809
809
|
get: () => e,
|
|
@@ -812,24 +812,24 @@ a.reduceDescriptors(P.prototype, ({ value: e }, t) => {
|
|
|
812
812
|
}
|
|
813
813
|
};
|
|
814
814
|
});
|
|
815
|
-
a.freezeMethods(
|
|
815
|
+
a.freezeMethods(F);
|
|
816
816
|
function be(e, t) {
|
|
817
|
-
const n = this ||
|
|
817
|
+
const n = this || oe, r = t || n, s = F.from(r.headers);
|
|
818
818
|
let i = r.data;
|
|
819
819
|
return a.forEach(e, function(c) {
|
|
820
820
|
i = c.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
821
821
|
}), s.normalize(), i;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function it(e) {
|
|
824
824
|
return !!(e && e.__CANCEL__);
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function X(e, t, n) {
|
|
827
827
|
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
828
828
|
}
|
|
829
|
-
a.inherits(
|
|
829
|
+
a.inherits(X, y, {
|
|
830
830
|
__CANCEL__: !0
|
|
831
831
|
});
|
|
832
|
-
function
|
|
832
|
+
function at(e, t, n) {
|
|
833
833
|
const r = n.config.validateStatus;
|
|
834
834
|
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
835
835
|
"Request failed with status code " + n.status,
|
|
@@ -855,8 +855,8 @@ function Cn(e, t) {
|
|
|
855
855
|
b += n[p++], p = p % e;
|
|
856
856
|
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - o < t)
|
|
857
857
|
return;
|
|
858
|
-
const
|
|
859
|
-
return
|
|
858
|
+
const O = l && u - l;
|
|
859
|
+
return O ? Math.round(b * 1e3 / O) : void 0;
|
|
860
860
|
};
|
|
861
861
|
}
|
|
862
862
|
function Nn(e, t) {
|
|
@@ -897,10 +897,10 @@ const ue = (e, t, n = 3) => {
|
|
|
897
897
|
total: e,
|
|
898
898
|
loaded: r
|
|
899
899
|
}), t[1]];
|
|
900
|
-
},
|
|
901
|
-
new URL(
|
|
902
|
-
|
|
903
|
-
) : () => !0, Fn =
|
|
900
|
+
}, Ue = (e) => (...t) => a.asap(() => e(...t)), Pn = C.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, C.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
901
|
+
new URL(C.origin),
|
|
902
|
+
C.navigator && /(msie|trident)/i.test(C.navigator.userAgent)
|
|
903
|
+
) : () => !0, Fn = C.hasStandardBrowserEnv ? (
|
|
904
904
|
// Standard browser envs support document.cookie
|
|
905
905
|
{
|
|
906
906
|
write(e, t, n, r, s, i) {
|
|
@@ -933,12 +933,12 @@ function _n(e) {
|
|
|
933
933
|
function Dn(e, t) {
|
|
934
934
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function ct(e, t, n) {
|
|
937
937
|
let r = !_n(t);
|
|
938
938
|
return e && (r || n == !1) ? Dn(e, t) : t;
|
|
939
939
|
}
|
|
940
|
-
const
|
|
941
|
-
function
|
|
940
|
+
const ke = (e) => e instanceof F ? { ...e } : e;
|
|
941
|
+
function V(e, t) {
|
|
942
942
|
t = t || {};
|
|
943
943
|
const n = {};
|
|
944
944
|
function r(u, l, p, b) {
|
|
@@ -995,21 +995,21 @@ function J(e, t) {
|
|
|
995
995
|
socketPath: o,
|
|
996
996
|
responseEncoding: o,
|
|
997
997
|
validateStatus: c,
|
|
998
|
-
headers: (u, l, p) => s(
|
|
998
|
+
headers: (u, l, p) => s(ke(u), ke(l), p, !0)
|
|
999
999
|
};
|
|
1000
1000
|
return a.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1001
1001
|
const p = d[l] || s, b = p(e[l], t[l], l);
|
|
1002
1002
|
a.isUndefined(b) && p !== c || (n[l] = b);
|
|
1003
1003
|
}), n;
|
|
1004
1004
|
}
|
|
1005
|
-
const
|
|
1006
|
-
const t =
|
|
1005
|
+
const lt = (e) => {
|
|
1006
|
+
const t = V({}, e);
|
|
1007
1007
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
|
|
1008
|
-
if (t.headers = o =
|
|
1008
|
+
if (t.headers = o = F.from(o), t.url = rt(ct(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
|
|
1009
1009
|
"Authorization",
|
|
1010
1010
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1011
1011
|
), a.isFormData(n)) {
|
|
1012
|
-
if (
|
|
1012
|
+
if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv)
|
|
1013
1013
|
o.setContentType(void 0);
|
|
1014
1014
|
else if (a.isFunction(n.getHeaders)) {
|
|
1015
1015
|
const d = n.getHeaders(), u = ["content-type", "content-length"];
|
|
@@ -1018,65 +1018,65 @@ const ct = (e) => {
|
|
|
1018
1018
|
});
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
if (
|
|
1021
|
+
if (C.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Pn(t.url))) {
|
|
1022
1022
|
const d = s && i && Fn.read(i);
|
|
1023
1023
|
d && o.set(s, d);
|
|
1024
1024
|
}
|
|
1025
1025
|
return t;
|
|
1026
|
-
},
|
|
1026
|
+
}, Bn = typeof XMLHttpRequest < "u", Ln = Bn && function(e) {
|
|
1027
1027
|
return new Promise(function(n, r) {
|
|
1028
|
-
const s =
|
|
1028
|
+
const s = lt(e);
|
|
1029
1029
|
let i = s.data;
|
|
1030
|
-
const o =
|
|
1031
|
-
let { responseType: c, onUploadProgress: d, onDownloadProgress: u } = s, l, p, b,
|
|
1030
|
+
const o = F.from(s.headers).normalize();
|
|
1031
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: u } = s, l, p, b, O, f;
|
|
1032
1032
|
function m() {
|
|
1033
|
-
|
|
1033
|
+
O && O(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1034
1034
|
}
|
|
1035
1035
|
let h = new XMLHttpRequest();
|
|
1036
1036
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1037
|
-
function
|
|
1037
|
+
function g() {
|
|
1038
1038
|
if (!h)
|
|
1039
1039
|
return;
|
|
1040
|
-
const
|
|
1040
|
+
const R = F.from(
|
|
1041
1041
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1042
|
-
),
|
|
1042
|
+
), A = {
|
|
1043
1043
|
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1044
1044
|
status: h.status,
|
|
1045
1045
|
statusText: h.statusText,
|
|
1046
|
-
headers:
|
|
1046
|
+
headers: R,
|
|
1047
1047
|
config: e,
|
|
1048
1048
|
request: h
|
|
1049
1049
|
};
|
|
1050
|
-
|
|
1051
|
-
n(
|
|
1052
|
-
}, function(
|
|
1053
|
-
r(
|
|
1054
|
-
},
|
|
1050
|
+
at(function(x) {
|
|
1051
|
+
n(x), m();
|
|
1052
|
+
}, function(x) {
|
|
1053
|
+
r(x), m();
|
|
1054
|
+
}, A), h = null;
|
|
1055
1055
|
}
|
|
1056
|
-
"onloadend" in h ? h.onloadend =
|
|
1057
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1056
|
+
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1057
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1058
1058
|
}, h.onabort = function() {
|
|
1059
1059
|
h && (r(new y("Request aborted", y.ECONNABORTED, e, h)), h = null);
|
|
1060
|
-
}, h.onerror = function(
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1060
|
+
}, h.onerror = function(T) {
|
|
1061
|
+
const A = T && T.message ? T.message : "Network Error", k = new y(A, y.ERR_NETWORK, e, h);
|
|
1062
|
+
k.event = T || null, r(k), h = null;
|
|
1063
1063
|
}, h.ontimeout = function() {
|
|
1064
|
-
let
|
|
1065
|
-
const
|
|
1066
|
-
s.timeoutErrorMessage && (
|
|
1067
|
-
|
|
1068
|
-
|
|
1064
|
+
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1065
|
+
const A = s.transitional || st;
|
|
1066
|
+
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(new y(
|
|
1067
|
+
T,
|
|
1068
|
+
A.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1069
1069
|
e,
|
|
1070
1070
|
h
|
|
1071
1071
|
)), h = null;
|
|
1072
|
-
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(
|
|
1073
|
-
h.setRequestHeader(
|
|
1074
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([b, f] = ue(u, !0), h.addEventListener("progress", b)), d && h.upload && ([p,
|
|
1075
|
-
h && (r(!
|
|
1072
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(T, A) {
|
|
1073
|
+
h.setRequestHeader(A, T);
|
|
1074
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([b, f] = ue(u, !0), h.addEventListener("progress", b)), d && h.upload && ([p, O] = ue(d), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", O)), (s.cancelToken || s.signal) && (l = (R) => {
|
|
1075
|
+
h && (r(!R || R.type ? new X(null, e, h) : R), h.abort(), h = null);
|
|
1076
1076
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1077
|
-
const
|
|
1078
|
-
if (
|
|
1079
|
-
r(new y("Unsupported protocol " +
|
|
1077
|
+
const N = xn(s.url);
|
|
1078
|
+
if (N && C.protocols.indexOf(N) === -1) {
|
|
1079
|
+
r(new y("Unsupported protocol " + N + ":", y.ERR_BAD_REQUEST, e));
|
|
1080
1080
|
return;
|
|
1081
1081
|
}
|
|
1082
1082
|
h.send(i || null);
|
|
@@ -1089,7 +1089,7 @@ const ct = (e) => {
|
|
|
1089
1089
|
if (!s) {
|
|
1090
1090
|
s = !0, c();
|
|
1091
1091
|
const l = u instanceof Error ? u : this.reason;
|
|
1092
|
-
r.abort(l instanceof y ? l : new
|
|
1092
|
+
r.abort(l instanceof y ? l : new X(l instanceof Error ? l.message : l));
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
1095
|
let o = t && setTimeout(() => {
|
|
@@ -1132,7 +1132,7 @@ const ct = (e) => {
|
|
|
1132
1132
|
} finally {
|
|
1133
1133
|
await t.cancel();
|
|
1134
1134
|
}
|
|
1135
|
-
},
|
|
1135
|
+
}, je = (e, t, n, r) => {
|
|
1136
1136
|
const s = jn(e, t);
|
|
1137
1137
|
let i = 0, o, c = (d) => {
|
|
1138
1138
|
o || (o = !0, r && r(d));
|
|
@@ -1161,13 +1161,13 @@ const ct = (e) => {
|
|
|
1161
1161
|
}, {
|
|
1162
1162
|
highWaterMark: 2
|
|
1163
1163
|
});
|
|
1164
|
-
},
|
|
1164
|
+
}, qe = 64 * 1024, { isFunction: ie } = a, In = (({ Request: e, Response: t }) => ({
|
|
1165
1165
|
Request: e,
|
|
1166
1166
|
Response: t
|
|
1167
1167
|
}))(a.global), {
|
|
1168
|
-
ReadableStream:
|
|
1169
|
-
TextEncoder:
|
|
1170
|
-
} = a.global,
|
|
1168
|
+
ReadableStream: Ie,
|
|
1169
|
+
TextEncoder: He
|
|
1170
|
+
} = a.global, Me = (e, ...t) => {
|
|
1171
1171
|
try {
|
|
1172
1172
|
return !!e(...t);
|
|
1173
1173
|
} catch {
|
|
@@ -1180,24 +1180,24 @@ const ct = (e) => {
|
|
|
1180
1180
|
const { fetch: t, Request: n, Response: r } = e, s = t ? ie(t) : typeof fetch == "function", i = ie(n), o = ie(r);
|
|
1181
1181
|
if (!s)
|
|
1182
1182
|
return !1;
|
|
1183
|
-
const c = s && ie(
|
|
1183
|
+
const c = s && ie(Ie), d = s && (typeof He == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new He()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), u = i && c && Me(() => {
|
|
1184
1184
|
let f = !1;
|
|
1185
|
-
const m = new n(
|
|
1186
|
-
body: new
|
|
1185
|
+
const m = new n(C.origin, {
|
|
1186
|
+
body: new Ie(),
|
|
1187
1187
|
method: "POST",
|
|
1188
1188
|
get duplex() {
|
|
1189
1189
|
return f = !0, "half";
|
|
1190
1190
|
}
|
|
1191
1191
|
}).headers.has("Content-Type");
|
|
1192
1192
|
return f && !m;
|
|
1193
|
-
}), l = o && c &&
|
|
1193
|
+
}), l = o && c && Me(() => a.isReadableStream(new r("").body)), p = {
|
|
1194
1194
|
stream: l && ((f) => f.body)
|
|
1195
1195
|
};
|
|
1196
1196
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
1197
1197
|
!p[f] && (p[f] = (m, h) => {
|
|
1198
|
-
let
|
|
1199
|
-
if (
|
|
1200
|
-
return
|
|
1198
|
+
let g = m && m[f];
|
|
1199
|
+
if (g)
|
|
1200
|
+
return g.call(m);
|
|
1201
1201
|
throw new y(`Response type '${f}' is not supported`, y.ERR_NOT_SUPPORT, h);
|
|
1202
1202
|
});
|
|
1203
1203
|
});
|
|
@@ -1207,7 +1207,7 @@ const ct = (e) => {
|
|
|
1207
1207
|
if (a.isBlob(f))
|
|
1208
1208
|
return f.size;
|
|
1209
1209
|
if (a.isSpecCompliantForm(f))
|
|
1210
|
-
return (await new n(
|
|
1210
|
+
return (await new n(C.origin, {
|
|
1211
1211
|
method: "POST",
|
|
1212
1212
|
body: f
|
|
1213
1213
|
}).arrayBuffer()).byteLength;
|
|
@@ -1215,7 +1215,7 @@ const ct = (e) => {
|
|
|
1215
1215
|
return f.byteLength;
|
|
1216
1216
|
if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
|
|
1217
1217
|
return (await d(f)).byteLength;
|
|
1218
|
-
},
|
|
1218
|
+
}, O = async (f, m) => {
|
|
1219
1219
|
const h = a.toFiniteNumber(f.getContentLength());
|
|
1220
1220
|
return h ?? b(m);
|
|
1221
1221
|
};
|
|
@@ -1223,89 +1223,89 @@ const ct = (e) => {
|
|
|
1223
1223
|
let {
|
|
1224
1224
|
url: m,
|
|
1225
1225
|
method: h,
|
|
1226
|
-
data:
|
|
1227
|
-
signal:
|
|
1228
|
-
cancelToken:
|
|
1229
|
-
timeout:
|
|
1230
|
-
onDownloadProgress:
|
|
1231
|
-
onUploadProgress:
|
|
1232
|
-
responseType:
|
|
1233
|
-
headers:
|
|
1234
|
-
withCredentials:
|
|
1235
|
-
fetchOptions:
|
|
1236
|
-
} =
|
|
1237
|
-
|
|
1238
|
-
let M = Un([
|
|
1239
|
-
const
|
|
1226
|
+
data: g,
|
|
1227
|
+
signal: N,
|
|
1228
|
+
cancelToken: R,
|
|
1229
|
+
timeout: T,
|
|
1230
|
+
onDownloadProgress: A,
|
|
1231
|
+
onUploadProgress: k,
|
|
1232
|
+
responseType: x,
|
|
1233
|
+
headers: I,
|
|
1234
|
+
withCredentials: _ = "same-origin",
|
|
1235
|
+
fetchOptions: G
|
|
1236
|
+
} = lt(f), Q = t || fetch;
|
|
1237
|
+
x = x ? (x + "").toLowerCase() : "text";
|
|
1238
|
+
let M = Un([N, R && R.toAbortSignal()], T), H = null;
|
|
1239
|
+
const j = M && M.unsubscribe && (() => {
|
|
1240
1240
|
M.unsubscribe();
|
|
1241
1241
|
});
|
|
1242
|
-
let
|
|
1242
|
+
let Z;
|
|
1243
1243
|
try {
|
|
1244
|
-
if (
|
|
1245
|
-
let
|
|
1244
|
+
if (k && u && h !== "get" && h !== "head" && (Z = await O(I, g)) !== 0) {
|
|
1245
|
+
let E = new n(m, {
|
|
1246
1246
|
method: "POST",
|
|
1247
|
-
body:
|
|
1247
|
+
body: g,
|
|
1248
1248
|
duplex: "half"
|
|
1249
|
-
}),
|
|
1250
|
-
if (a.isFormData(
|
|
1251
|
-
const [
|
|
1252
|
-
|
|
1253
|
-
ue(
|
|
1249
|
+
}), B;
|
|
1250
|
+
if (a.isFormData(g) && (B = E.headers.get("content-type")) && I.setContentType(B), E.body) {
|
|
1251
|
+
const [W, $] = Le(
|
|
1252
|
+
Z,
|
|
1253
|
+
ue(Ue(k))
|
|
1254
1254
|
);
|
|
1255
|
-
|
|
1255
|
+
g = je(E.body, qe, W, $);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
a.isString(
|
|
1259
|
-
const
|
|
1260
|
-
...
|
|
1258
|
+
a.isString(_) || (_ = _ ? "include" : "omit");
|
|
1259
|
+
const D = i && "credentials" in n.prototype, Y = {
|
|
1260
|
+
...G,
|
|
1261
1261
|
signal: M,
|
|
1262
1262
|
method: h.toUpperCase(),
|
|
1263
|
-
headers:
|
|
1264
|
-
body:
|
|
1263
|
+
headers: I.normalize().toJSON(),
|
|
1264
|
+
body: g,
|
|
1265
1265
|
duplex: "half",
|
|
1266
|
-
credentials:
|
|
1266
|
+
credentials: D ? _ : void 0
|
|
1267
1267
|
};
|
|
1268
|
-
|
|
1269
|
-
let
|
|
1270
|
-
const
|
|
1271
|
-
if (l && (
|
|
1272
|
-
const
|
|
1268
|
+
H = i && new n(m, Y);
|
|
1269
|
+
let L = await (i ? Q(H, G) : Q(m, Y));
|
|
1270
|
+
const ee = l && (x === "stream" || x === "response");
|
|
1271
|
+
if (l && (A || ee && j)) {
|
|
1272
|
+
const E = {};
|
|
1273
1273
|
["status", "statusText", "headers"].forEach((Ce) => {
|
|
1274
|
-
|
|
1274
|
+
E[Ce] = L[Ce];
|
|
1275
1275
|
});
|
|
1276
|
-
const
|
|
1277
|
-
|
|
1278
|
-
ue(
|
|
1276
|
+
const B = a.toFiniteNumber(L.headers.get("content-length")), [W, $] = A && Le(
|
|
1277
|
+
B,
|
|
1278
|
+
ue(Ue(A), !0)
|
|
1279
1279
|
) || [];
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1280
|
+
L = new r(
|
|
1281
|
+
je(L.body, qe, W, () => {
|
|
1282
|
+
$ && $(), j && j();
|
|
1283
1283
|
}),
|
|
1284
|
-
|
|
1284
|
+
E
|
|
1285
1285
|
);
|
|
1286
1286
|
}
|
|
1287
|
-
|
|
1288
|
-
let
|
|
1289
|
-
return !
|
|
1290
|
-
|
|
1291
|
-
data:
|
|
1292
|
-
headers:
|
|
1293
|
-
status:
|
|
1294
|
-
statusText:
|
|
1287
|
+
x = x || "text";
|
|
1288
|
+
let w = await p[a.findKey(p, x) || "text"](L, f);
|
|
1289
|
+
return !ee && j && j(), await new Promise((E, B) => {
|
|
1290
|
+
at(E, B, {
|
|
1291
|
+
data: w,
|
|
1292
|
+
headers: F.from(L.headers),
|
|
1293
|
+
status: L.status,
|
|
1294
|
+
statusText: L.statusText,
|
|
1295
1295
|
config: f,
|
|
1296
|
-
request:
|
|
1296
|
+
request: H
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
1299
|
-
} catch (
|
|
1300
|
-
throw
|
|
1301
|
-
new y("Network Error", y.ERR_NETWORK, f,
|
|
1299
|
+
} catch (D) {
|
|
1300
|
+
throw j && j(), D && D.name === "TypeError" && /Load failed|fetch/i.test(D.message) ? Object.assign(
|
|
1301
|
+
new y("Network Error", y.ERR_NETWORK, f, H),
|
|
1302
1302
|
{
|
|
1303
|
-
cause:
|
|
1303
|
+
cause: D.cause || D
|
|
1304
1304
|
}
|
|
1305
|
-
) : y.from(
|
|
1305
|
+
) : y.from(D, D && D.code, f, H);
|
|
1306
1306
|
}
|
|
1307
1307
|
};
|
|
1308
|
-
}, Mn = /* @__PURE__ */ new Map(),
|
|
1308
|
+
}, Mn = /* @__PURE__ */ new Map(), ut = (e) => {
|
|
1309
1309
|
let t = e ? e.env : {};
|
|
1310
1310
|
const { fetch: n, Request: r, Response: s } = t, i = [
|
|
1311
1311
|
r,
|
|
@@ -1317,12 +1317,12 @@ const ct = (e) => {
|
|
|
1317
1317
|
d = i[c], u = l.get(d), u === void 0 && l.set(d, u = c ? /* @__PURE__ */ new Map() : Hn(t)), l = u;
|
|
1318
1318
|
return u;
|
|
1319
1319
|
};
|
|
1320
|
-
|
|
1320
|
+
ut();
|
|
1321
1321
|
const Re = {
|
|
1322
1322
|
http: rn,
|
|
1323
|
-
xhr:
|
|
1323
|
+
xhr: Ln,
|
|
1324
1324
|
fetch: {
|
|
1325
|
-
get:
|
|
1325
|
+
get: ut
|
|
1326
1326
|
}
|
|
1327
1327
|
};
|
|
1328
1328
|
a.forEach(Re, (e, t) => {
|
|
@@ -1334,7 +1334,7 @@ a.forEach(Re, (e, t) => {
|
|
|
1334
1334
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1335
1335
|
}
|
|
1336
1336
|
});
|
|
1337
|
-
const
|
|
1337
|
+
const $e = (e) => `- ${e}`, $n = (e) => a.isFunction(e) || e === null || e === !1, ft = {
|
|
1338
1338
|
getAdapter: (e, t) => {
|
|
1339
1339
|
e = a.isArray(e) ? e : [e];
|
|
1340
1340
|
const { length: n } = e;
|
|
@@ -1354,8 +1354,8 @@ const Me = (e) => `- ${e}`, $n = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1354
1354
|
([d, u]) => `adapter ${d} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1355
1355
|
);
|
|
1356
1356
|
let c = n ? o.length > 1 ? `since :
|
|
1357
|
-
` + o.map(
|
|
1358
|
-
`) : " " +
|
|
1357
|
+
` + o.map($e).join(`
|
|
1358
|
+
`) : " " + $e(o[0]) : "as no adapter specified";
|
|
1359
1359
|
throw new y(
|
|
1360
1360
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1361
1361
|
"ERR_NOT_SUPPORT"
|
|
@@ -1367,36 +1367,36 @@ const Me = (e) => `- ${e}`, $n = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1367
1367
|
};
|
|
1368
1368
|
function we(e) {
|
|
1369
1369
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1370
|
-
throw new
|
|
1370
|
+
throw new X(null, e);
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return we(e), e.headers =
|
|
1372
|
+
function ze(e) {
|
|
1373
|
+
return we(e), e.headers = F.from(e.headers), e.data = be.call(
|
|
1374
1374
|
e,
|
|
1375
1375
|
e.transformRequest
|
|
1376
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1376
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ft.getAdapter(e.adapter || oe.adapter, e)(e).then(function(r) {
|
|
1377
1377
|
return we(e), r.data = be.call(
|
|
1378
1378
|
e,
|
|
1379
1379
|
e.transformResponse,
|
|
1380
1380
|
r
|
|
1381
|
-
), r.headers =
|
|
1381
|
+
), r.headers = F.from(r.headers), r;
|
|
1382
1382
|
}, function(r) {
|
|
1383
|
-
return
|
|
1383
|
+
return it(r) || (we(e), r && r.response && (r.response.data = be.call(
|
|
1384
1384
|
e,
|
|
1385
1385
|
e.transformResponse,
|
|
1386
1386
|
r.response
|
|
1387
|
-
), r.response.headers =
|
|
1387
|
+
), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
|
|
1388
1388
|
});
|
|
1389
1389
|
}
|
|
1390
|
-
const
|
|
1390
|
+
const dt = "1.12.2", me = {};
|
|
1391
1391
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1392
1392
|
me[e] = function(r) {
|
|
1393
1393
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1394
1394
|
};
|
|
1395
1395
|
});
|
|
1396
|
-
const
|
|
1396
|
+
const Je = {};
|
|
1397
1397
|
me.transitional = function(t, n, r) {
|
|
1398
1398
|
function s(i, o) {
|
|
1399
|
-
return "[Axios v" +
|
|
1399
|
+
return "[Axios v" + dt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1400
1400
|
}
|
|
1401
1401
|
return (i, o, c) => {
|
|
1402
1402
|
if (t === !1)
|
|
@@ -1404,7 +1404,7 @@ me.transitional = function(t, n, r) {
|
|
|
1404
1404
|
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1405
1405
|
y.ERR_DEPRECATED
|
|
1406
1406
|
);
|
|
1407
|
-
return n && !
|
|
1407
|
+
return n && !Je[o] && (Je[o] = !0, console.warn(
|
|
1408
1408
|
s(
|
|
1409
1409
|
o,
|
|
1410
1410
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1435,12 +1435,12 @@ function zn(e, t, n) {
|
|
|
1435
1435
|
const le = {
|
|
1436
1436
|
assertOptions: zn,
|
|
1437
1437
|
validators: me
|
|
1438
|
-
},
|
|
1439
|
-
let
|
|
1438
|
+
}, q = le.validators;
|
|
1439
|
+
let J = class {
|
|
1440
1440
|
constructor(t) {
|
|
1441
1441
|
this.defaults = t || {}, this.interceptors = {
|
|
1442
|
-
request: new
|
|
1443
|
-
response: new
|
|
1442
|
+
request: new De(),
|
|
1443
|
+
response: new De()
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
1446
|
/**
|
|
@@ -1469,20 +1469,20 @@ let z = class {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
_request(t, n) {
|
|
1472
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1472
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = V(this.defaults, n);
|
|
1473
1473
|
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1474
1474
|
r !== void 0 && le.assertOptions(r, {
|
|
1475
|
-
silentJSONParsing:
|
|
1476
|
-
forcedJSONParsing:
|
|
1477
|
-
clarifyTimeoutError:
|
|
1475
|
+
silentJSONParsing: q.transitional(q.boolean),
|
|
1476
|
+
forcedJSONParsing: q.transitional(q.boolean),
|
|
1477
|
+
clarifyTimeoutError: q.transitional(q.boolean)
|
|
1478
1478
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1479
1479
|
serialize: s
|
|
1480
1480
|
} : le.assertOptions(s, {
|
|
1481
|
-
encode:
|
|
1482
|
-
serialize:
|
|
1481
|
+
encode: q.function,
|
|
1482
|
+
serialize: q.function
|
|
1483
1483
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), le.assertOptions(n, {
|
|
1484
|
-
baseUrl:
|
|
1485
|
-
withXsrfToken:
|
|
1484
|
+
baseUrl: q.spelling("baseURL"),
|
|
1485
|
+
withXsrfToken: q.spelling("withXSRFToken")
|
|
1486
1486
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1487
1487
|
let o = i && a.merge(
|
|
1488
1488
|
i.common,
|
|
@@ -1493,7 +1493,7 @@ let z = class {
|
|
|
1493
1493
|
(f) => {
|
|
1494
1494
|
delete i[f];
|
|
1495
1495
|
}
|
|
1496
|
-
), n.headers =
|
|
1496
|
+
), n.headers = F.concat(o, i);
|
|
1497
1497
|
const c = [];
|
|
1498
1498
|
let d = !0;
|
|
1499
1499
|
this.interceptors.request.forEach(function(m) {
|
|
@@ -1505,24 +1505,24 @@ let z = class {
|
|
|
1505
1505
|
});
|
|
1506
1506
|
let l, p = 0, b;
|
|
1507
1507
|
if (!d) {
|
|
1508
|
-
const f = [
|
|
1508
|
+
const f = [ze.bind(this), void 0];
|
|
1509
1509
|
for (f.unshift(...c), f.push(...u), b = f.length, l = Promise.resolve(n); p < b; )
|
|
1510
1510
|
l = l.then(f[p++], f[p++]);
|
|
1511
1511
|
return l;
|
|
1512
1512
|
}
|
|
1513
1513
|
b = c.length;
|
|
1514
|
-
let
|
|
1514
|
+
let O = n;
|
|
1515
1515
|
for (; p < b; ) {
|
|
1516
1516
|
const f = c[p++], m = c[p++];
|
|
1517
1517
|
try {
|
|
1518
|
-
|
|
1518
|
+
O = f(O);
|
|
1519
1519
|
} catch (h) {
|
|
1520
1520
|
m.call(this, h);
|
|
1521
1521
|
break;
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
1524
|
try {
|
|
1525
|
-
l =
|
|
1525
|
+
l = ze.call(this, O);
|
|
1526
1526
|
} catch (f) {
|
|
1527
1527
|
return Promise.reject(f);
|
|
1528
1528
|
}
|
|
@@ -1531,14 +1531,14 @@ let z = class {
|
|
|
1531
1531
|
return l;
|
|
1532
1532
|
}
|
|
1533
1533
|
getUri(t) {
|
|
1534
|
-
t =
|
|
1535
|
-
const n =
|
|
1536
|
-
return
|
|
1534
|
+
t = V(this.defaults, t);
|
|
1535
|
+
const n = ct(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1536
|
+
return rt(n, t.params, t.paramsSerializer);
|
|
1537
1537
|
}
|
|
1538
1538
|
};
|
|
1539
1539
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1540
|
-
|
|
1541
|
-
return this.request(
|
|
1540
|
+
J.prototype[t] = function(n, r) {
|
|
1541
|
+
return this.request(V(r || {}, {
|
|
1542
1542
|
method: t,
|
|
1543
1543
|
url: n,
|
|
1544
1544
|
data: (r || {}).data
|
|
@@ -1548,7 +1548,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1548
1548
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1549
1549
|
function n(r) {
|
|
1550
1550
|
return function(i, o, c) {
|
|
1551
|
-
return this.request(
|
|
1551
|
+
return this.request(V(c || {}, {
|
|
1552
1552
|
method: t,
|
|
1553
1553
|
headers: r ? {
|
|
1554
1554
|
"Content-Type": "multipart/form-data"
|
|
@@ -1558,9 +1558,9 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1558
1558
|
}));
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
|
|
1561
|
+
J.prototype[t] = n(), J.prototype[t + "Form"] = n(!0);
|
|
1562
1562
|
});
|
|
1563
|
-
let Jn = class
|
|
1563
|
+
let Jn = class ht {
|
|
1564
1564
|
constructor(t) {
|
|
1565
1565
|
if (typeof t != "function")
|
|
1566
1566
|
throw new TypeError("executor must be a function.");
|
|
@@ -1584,7 +1584,7 @@ let Jn = class dt {
|
|
|
1584
1584
|
r.unsubscribe(i);
|
|
1585
1585
|
}, o;
|
|
1586
1586
|
}, t(function(i, o, c) {
|
|
1587
|
-
r.reason || (r.reason = new
|
|
1587
|
+
r.reason || (r.reason = new X(i, o, c), n(r.reason));
|
|
1588
1588
|
});
|
|
1589
1589
|
}
|
|
1590
1590
|
/**
|
|
@@ -1626,7 +1626,7 @@ let Jn = class dt {
|
|
|
1626
1626
|
static source() {
|
|
1627
1627
|
let t;
|
|
1628
1628
|
return {
|
|
1629
|
-
token: new
|
|
1629
|
+
token: new ht(function(s) {
|
|
1630
1630
|
t = s;
|
|
1631
1631
|
}),
|
|
1632
1632
|
cancel: t
|
|
@@ -1709,32 +1709,32 @@ const Oe = {
|
|
|
1709
1709
|
Object.entries(Oe).forEach(([e, t]) => {
|
|
1710
1710
|
Oe[t] = e;
|
|
1711
1711
|
});
|
|
1712
|
-
function
|
|
1713
|
-
const t = new
|
|
1714
|
-
return a.extend(n,
|
|
1715
|
-
return
|
|
1712
|
+
function pt(e) {
|
|
1713
|
+
const t = new J(e), n = Ve(J.prototype.request, t);
|
|
1714
|
+
return a.extend(n, J.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1715
|
+
return pt(V(e, s));
|
|
1716
1716
|
}, n;
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1718
|
+
const S = pt(oe);
|
|
1719
|
+
S.Axios = J;
|
|
1720
|
+
S.CanceledError = X;
|
|
1721
|
+
S.CancelToken = Jn;
|
|
1722
|
+
S.isCancel = it;
|
|
1723
|
+
S.VERSION = dt;
|
|
1724
|
+
S.toFormData = pe;
|
|
1725
|
+
S.AxiosError = y;
|
|
1726
|
+
S.Cancel = S.CanceledError;
|
|
1727
|
+
S.all = function(t) {
|
|
1728
1728
|
return Promise.all(t);
|
|
1729
1729
|
};
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1730
|
+
S.spread = Vn;
|
|
1731
|
+
S.isAxiosError = Wn;
|
|
1732
|
+
S.mergeConfig = V;
|
|
1733
|
+
S.AxiosHeaders = F;
|
|
1734
|
+
S.formToJSON = (e) => ot(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1735
|
+
S.getAdapter = ft.getAdapter;
|
|
1736
|
+
S.HttpStatusCode = Oe;
|
|
1737
|
+
S.default = S;
|
|
1738
1738
|
const {
|
|
1739
1739
|
Axios: Yn,
|
|
1740
1740
|
AxiosError: er,
|
|
@@ -1752,21 +1752,21 @@ const {
|
|
|
1752
1752
|
formToJSON: dr,
|
|
1753
1753
|
getAdapter: hr,
|
|
1754
1754
|
mergeConfig: pr
|
|
1755
|
-
} =
|
|
1756
|
-
var
|
|
1757
|
-
const r = e == null ? void 0 : e.
|
|
1755
|
+
} = S, mr = (e, t, n = "httpRequest") => {
|
|
1756
|
+
var Q, M, H, j, Z, D, Y, L, ee;
|
|
1757
|
+
const r = e == null ? void 0 : e.eventData, s = document.body, i = ((Q = e == null ? void 0 : e.args) == null ? void 0 : Q.allowConcurrent) === !0;
|
|
1758
1758
|
if (!i) {
|
|
1759
1759
|
if (s.dataset.htmlBuilderIsSubmitting === "true")
|
|
1760
1760
|
return;
|
|
1761
1761
|
s.dataset.htmlBuilderIsSubmitting = "true";
|
|
1762
1762
|
}
|
|
1763
|
-
const o = typeof ((
|
|
1763
|
+
const o = typeof ((M = e == null ? void 0 : e.args) == null ? void 0 : M.submitSilently) == "boolean";
|
|
1764
1764
|
o && ((H = e == null ? void 0 : e.args) != null && H.submitSilently ? s.dataset.htmlBuilderIsSubmittingSilently = "true" : delete s.dataset.htmlBuilderIsSubmittingSilently);
|
|
1765
|
-
const c = (
|
|
1766
|
-
|
|
1765
|
+
const c = (w, E, B) => {
|
|
1766
|
+
B || delete w.dataset.htmlBuilderIsSubmitting, o && delete w.dataset.htmlBuilderIsSubmittingSilently, E != null && E.dataset && delete E.dataset.isSubmitting;
|
|
1767
1767
|
}, d = r == null ? void 0 : r.currentTarget;
|
|
1768
1768
|
d != null && d.dataset && (d.dataset.isSubmitting = "true");
|
|
1769
|
-
const { globalDataContext: u, templateContext: l } = e, p = u.getRootContext ? u.getRootContext() : u, b = (
|
|
1769
|
+
const { globalDataContext: u, templateContext: l } = e, p = u.getRootContext ? u.getRootContext() : u, b = (j = e == null ? void 0 : e.args) == null ? void 0 : j.dataMapping, O = ((Z = e == null ? void 0 : e.args) == null ? void 0 : Z.refreshAppOnResponse) ?? !0, f = ((D = e == null ? void 0 : e.args) == null ? void 0 : D.updateOnlyData) ?? !1, m = (Y = e == null ? void 0 : e.args) == null ? void 0 : Y.updateDataAtLocation, h = mt({
|
|
1770
1770
|
valueToEvaluate: (L = e == null ? void 0 : e.args) == null ? void 0 : L.url,
|
|
1771
1771
|
globalDataContext: p,
|
|
1772
1772
|
templateContext: l
|
|
@@ -1775,85 +1775,97 @@ const {
|
|
|
1775
1775
|
c(s, d, i);
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
1778
|
-
const
|
|
1778
|
+
const g = p.headersForRjBuild ?? {}, { setData: N, setRawAppRjBuild: R, updateData: T } = p, A = {
|
|
1779
1779
|
method: t.method,
|
|
1780
1780
|
url: h,
|
|
1781
1781
|
...t.data ? { data: t.data } : {}
|
|
1782
1782
|
};
|
|
1783
|
-
Object.keys(
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1783
|
+
Object.keys(g).length > 0 && (A.headers = g);
|
|
1784
|
+
const k = ((ee = p.plugins) == null ? void 0 : ee.dataProcessor) || {};
|
|
1785
|
+
let x = {
|
|
1786
|
+
url: A.url,
|
|
1787
|
+
method: A.method,
|
|
1788
|
+
headers: A.headers || {},
|
|
1789
|
+
body: A.data
|
|
1790
|
+
}, I = null, _ = null;
|
|
1791
|
+
const G = f === !1;
|
|
1792
|
+
S(A).then((w) => {
|
|
1793
|
+
if (I = {
|
|
1794
|
+
headers: w.headers || {},
|
|
1795
|
+
status: w.status,
|
|
1796
|
+
data: w.data
|
|
1797
|
+
}, _ = Ne({
|
|
1798
|
+
requestContext: x,
|
|
1799
|
+
responseContext: I,
|
|
1800
|
+
responseBody: w.data,
|
|
1801
|
+
isRjBuild: G,
|
|
1802
|
+
dataProcessors: k
|
|
1803
|
+
}), O)
|
|
1803
1804
|
if (f) {
|
|
1804
1805
|
if (b)
|
|
1805
1806
|
try {
|
|
1806
1807
|
bt({
|
|
1807
1808
|
dataMapping: b,
|
|
1808
|
-
responseData:
|
|
1809
|
+
responseData: _,
|
|
1809
1810
|
globalDataContext: p,
|
|
1810
1811
|
templateContext: l
|
|
1811
1812
|
});
|
|
1812
1813
|
return;
|
|
1813
|
-
} catch (
|
|
1814
|
-
console.error(`reactionFunction:${n} : Error applying dataMapping:`,
|
|
1814
|
+
} catch (B) {
|
|
1815
|
+
console.error(`reactionFunction:${n} : Error applying dataMapping:`, B);
|
|
1815
1816
|
return;
|
|
1816
1817
|
}
|
|
1817
1818
|
if (!m) {
|
|
1818
|
-
|
|
1819
|
+
N(_);
|
|
1819
1820
|
return;
|
|
1820
1821
|
}
|
|
1821
|
-
const
|
|
1822
|
+
const E = yt({
|
|
1822
1823
|
dataLocation: m,
|
|
1823
1824
|
currentPath: "data",
|
|
1824
1825
|
globalDataContext: p,
|
|
1825
1826
|
templateContext: l
|
|
1826
1827
|
});
|
|
1827
|
-
if (typeof
|
|
1828
|
+
if (typeof E != "string" || !E.startsWith("data")) {
|
|
1828
1829
|
console.warn(
|
|
1829
1830
|
`reactionFunction:${n} : updateDataAtLocation evaluation did not result in a valid locationstring:`,
|
|
1830
1831
|
m,
|
|
1831
1832
|
"->",
|
|
1832
|
-
|
|
1833
|
+
E
|
|
1833
1834
|
);
|
|
1834
1835
|
return;
|
|
1835
1836
|
}
|
|
1836
|
-
if (
|
|
1837
|
-
|
|
1837
|
+
if (E === "data") {
|
|
1838
|
+
N(_);
|
|
1838
1839
|
return;
|
|
1839
1840
|
}
|
|
1840
|
-
|
|
1841
|
+
T(_, E);
|
|
1841
1842
|
} else
|
|
1842
|
-
|
|
1843
|
-
|
|
1843
|
+
R(_);
|
|
1844
|
+
}).catch((w) => {
|
|
1845
|
+
var E, B, W, $;
|
|
1846
|
+
console.log(`reactionFunction:${n} : Could not execute request. Reason: ${w.message}`), I = {
|
|
1847
|
+
headers: ((E = w == null ? void 0 : w.response) == null ? void 0 : E.headers) || {},
|
|
1848
|
+
status: ((B = w == null ? void 0 : w.response) == null ? void 0 : B.status) || 500,
|
|
1849
|
+
data: ((W = w == null ? void 0 : w.response) == null ? void 0 : W.data) || null
|
|
1850
|
+
}, _ = Ne({
|
|
1851
|
+
requestContext: x,
|
|
1852
|
+
responseContext: I,
|
|
1853
|
+
responseBody: (($ = w == null ? void 0 : w.response) == null ? void 0 : $.data) || null,
|
|
1854
|
+
isRjBuild: G,
|
|
1855
|
+
dataProcessors: k
|
|
1856
|
+
});
|
|
1857
|
+
}).finally(() => {
|
|
1858
|
+
c(s, d, i);
|
|
1859
|
+
const w = new CustomEvent("response", {
|
|
1844
1860
|
bubbles: !1,
|
|
1845
1861
|
cancelable: !0,
|
|
1846
1862
|
composed: !0,
|
|
1847
|
-
detail: { requestContext:
|
|
1863
|
+
detail: { requestContext: x, value: _, responseContext: I }
|
|
1848
1864
|
});
|
|
1849
|
-
d == null || d.dispatchEvent(
|
|
1850
|
-
}).catch((S) => {
|
|
1851
|
-
console.log(`reactionFunction:${n} : Could not execute request. Reason: ${S.message}`);
|
|
1852
|
-
}).finally(() => {
|
|
1853
|
-
c(s, d, i);
|
|
1865
|
+
console.log(`reactionFunction:${n} : Dispatching event: response`, w), console.log("currentTarget", d), d == null || d.dispatchEvent(w);
|
|
1854
1866
|
});
|
|
1855
1867
|
};
|
|
1856
1868
|
export {
|
|
1857
|
-
|
|
1869
|
+
S as a,
|
|
1858
1870
|
mr as e
|
|
1859
1871
|
};
|