frappe-react-sdk 1.0.25 → 1.0.27
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/frappe-react-sdk.es.js +402 -391
- package/dist/frappe-react-sdk.umd.js +12 -12
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import je, { createContext as
|
|
2
|
-
var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, St = {}, Me = {}, Ye = {}, Ge = { exports: {} },
|
|
1
|
+
import je, { createContext as er, useContext as ne, useEffect as en, useLayoutEffect as Xr, useRef as ge, useMemo as tr, useCallback as M, useDebugValue as Hr, useState as F } from "react";
|
|
2
|
+
var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, St = {}, Me = {}, Ye = {}, Ge = { exports: {} }, tn = { exports: {} }, nr = function(r, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
for (var a = new Array(arguments.length), n = 0; n < a.length; n++)
|
|
5
5
|
a[n] = arguments[n];
|
|
6
6
|
return r.apply(t, a);
|
|
7
7
|
};
|
|
8
8
|
}, Jr = nr, be = Object.prototype.toString;
|
|
9
|
-
function
|
|
9
|
+
function nn(e) {
|
|
10
10
|
return Array.isArray(e);
|
|
11
11
|
}
|
|
12
12
|
function Jt(e) {
|
|
@@ -64,9 +64,9 @@ function aa(e) {
|
|
|
64
64
|
function oa() {
|
|
65
65
|
return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function rn(e, r) {
|
|
68
68
|
if (!(e === null || typeof e > "u"))
|
|
69
|
-
if (typeof e != "object" && (e = [e]),
|
|
69
|
+
if (typeof e != "object" && (e = [e]), nn(e))
|
|
70
70
|
for (var t = 0, o = e.length; t < o; t++)
|
|
71
71
|
r.call(null, e[t], t, e);
|
|
72
72
|
else
|
|
@@ -76,14 +76,14 @@ function nn(e, r) {
|
|
|
76
76
|
function Yt() {
|
|
77
77
|
var e = {};
|
|
78
78
|
function r(a, n) {
|
|
79
|
-
st(e[n]) && st(a) ? e[n] = Yt(e[n], a) : st(a) ? e[n] = Yt({}, a) :
|
|
79
|
+
st(e[n]) && st(a) ? e[n] = Yt(e[n], a) : st(a) ? e[n] = Yt({}, a) : nn(a) ? e[n] = a.slice() : e[n] = a;
|
|
80
80
|
}
|
|
81
81
|
for (var t = 0, o = arguments.length; t < o; t++)
|
|
82
|
-
|
|
82
|
+
rn(arguments[t], r);
|
|
83
83
|
return e;
|
|
84
84
|
}
|
|
85
85
|
function ia(e, r, t) {
|
|
86
|
-
return
|
|
86
|
+
return rn(r, function(a, n) {
|
|
87
87
|
t && typeof a == "function" ? e[n] = Jr(a, t) : e[n] = a;
|
|
88
88
|
}), e;
|
|
89
89
|
}
|
|
@@ -91,7 +91,7 @@ function sa(e) {
|
|
|
91
91
|
return e.charCodeAt(0) === 65279 && (e = e.slice(1)), e;
|
|
92
92
|
}
|
|
93
93
|
var ee = {
|
|
94
|
-
isArray:
|
|
94
|
+
isArray: nn,
|
|
95
95
|
isArrayBuffer: rr,
|
|
96
96
|
isBuffer: Yr,
|
|
97
97
|
isFormData: Gr,
|
|
@@ -108,13 +108,13 @@ var ee = {
|
|
|
108
108
|
isStream: na,
|
|
109
109
|
isURLSearchParams: ra,
|
|
110
110
|
isStandardBrowserEnv: oa,
|
|
111
|
-
forEach:
|
|
111
|
+
forEach: rn,
|
|
112
112
|
merge: Yt,
|
|
113
113
|
extend: ia,
|
|
114
114
|
trim: aa,
|
|
115
115
|
stripBOM: sa
|
|
116
116
|
}, ke = ee;
|
|
117
|
-
function
|
|
117
|
+
function bn(e) {
|
|
118
118
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
119
119
|
}
|
|
120
120
|
var ir = function(r, t, o) {
|
|
@@ -129,7 +129,7 @@ var ir = function(r, t, o) {
|
|
|
129
129
|
var n = [];
|
|
130
130
|
ke.forEach(t, function(d, s) {
|
|
131
131
|
d === null || typeof d > "u" || (ke.isArray(d) ? s = s + "[]" : d = [d], ke.forEach(d, function(l) {
|
|
132
|
-
ke.isDate(l) ? l = l.toISOString() : ke.isObject(l) && (l = JSON.stringify(l)), n.push(
|
|
132
|
+
ke.isDate(l) ? l = l.toISOString() : ke.isObject(l) && (l = JSON.stringify(l)), n.push(bn(s) + "=" + bn(l));
|
|
133
133
|
}));
|
|
134
134
|
}), a = n.join("&");
|
|
135
135
|
}
|
|
@@ -182,22 +182,22 @@ var ca = lt, la = ee, fa = function(r, t) {
|
|
|
182
182
|
silentJSONParsing: !0,
|
|
183
183
|
forcedJSONParsing: !0,
|
|
184
184
|
clarifyTimeoutError: !1
|
|
185
|
-
}, Rt,
|
|
185
|
+
}, Rt, En;
|
|
186
186
|
function cr() {
|
|
187
|
-
if (
|
|
187
|
+
if (En)
|
|
188
188
|
return Rt;
|
|
189
|
-
|
|
189
|
+
En = 1;
|
|
190
190
|
var e = sr;
|
|
191
191
|
return Rt = function(t, o, a, n, i) {
|
|
192
192
|
var c = new Error(t);
|
|
193
193
|
return e(c, o, a, n, i);
|
|
194
194
|
}, Rt;
|
|
195
195
|
}
|
|
196
|
-
var gt,
|
|
196
|
+
var gt, Sn;
|
|
197
197
|
function da() {
|
|
198
|
-
if (
|
|
198
|
+
if (Sn)
|
|
199
199
|
return gt;
|
|
200
|
-
|
|
200
|
+
Sn = 1;
|
|
201
201
|
var e = cr();
|
|
202
202
|
return gt = function(t, o, a) {
|
|
203
203
|
var n = a.config.validateStatus;
|
|
@@ -210,11 +210,11 @@ function da() {
|
|
|
210
210
|
));
|
|
211
211
|
}, gt;
|
|
212
212
|
}
|
|
213
|
-
var Tt,
|
|
213
|
+
var Tt, Rn;
|
|
214
214
|
function pa() {
|
|
215
|
-
if (
|
|
215
|
+
if (Rn)
|
|
216
216
|
return Tt;
|
|
217
|
-
|
|
217
|
+
Rn = 1;
|
|
218
218
|
var e = ee;
|
|
219
219
|
return Tt = e.isStandardBrowserEnv() ? function() {
|
|
220
220
|
return {
|
|
@@ -242,33 +242,33 @@ function pa() {
|
|
|
242
242
|
};
|
|
243
243
|
}(), Tt;
|
|
244
244
|
}
|
|
245
|
-
var Ct,
|
|
245
|
+
var Ct, gn;
|
|
246
246
|
function ha() {
|
|
247
|
-
return
|
|
247
|
+
return gn || (gn = 1, Ct = function(r) {
|
|
248
248
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r);
|
|
249
249
|
}), Ct;
|
|
250
250
|
}
|
|
251
|
-
var Ot,
|
|
251
|
+
var Ot, Tn;
|
|
252
252
|
function va() {
|
|
253
|
-
return
|
|
253
|
+
return Tn || (Tn = 1, Ot = function(r, t) {
|
|
254
254
|
return t ? r.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : r;
|
|
255
255
|
}), Ot;
|
|
256
256
|
}
|
|
257
|
-
var xt,
|
|
257
|
+
var xt, Cn;
|
|
258
258
|
function ma() {
|
|
259
|
-
if (
|
|
259
|
+
if (Cn)
|
|
260
260
|
return xt;
|
|
261
|
-
|
|
261
|
+
Cn = 1;
|
|
262
262
|
var e = ha(), r = va();
|
|
263
263
|
return xt = function(o, a) {
|
|
264
264
|
return o && !e(a) ? r(o, a) : a;
|
|
265
265
|
}, xt;
|
|
266
266
|
}
|
|
267
|
-
var Ft,
|
|
267
|
+
var Ft, On;
|
|
268
268
|
function wa() {
|
|
269
|
-
if (
|
|
269
|
+
if (On)
|
|
270
270
|
return Ft;
|
|
271
|
-
|
|
271
|
+
On = 1;
|
|
272
272
|
var e = ee, r = [
|
|
273
273
|
"age",
|
|
274
274
|
"authorization",
|
|
@@ -300,11 +300,11 @@ function wa() {
|
|
|
300
300
|
}), a;
|
|
301
301
|
}, Ft;
|
|
302
302
|
}
|
|
303
|
-
var Dt,
|
|
303
|
+
var Dt, xn;
|
|
304
304
|
function _a() {
|
|
305
|
-
if (
|
|
305
|
+
if (xn)
|
|
306
306
|
return Dt;
|
|
307
|
-
|
|
307
|
+
xn = 1;
|
|
308
308
|
var e = ee;
|
|
309
309
|
return Dt = e.isStandardBrowserEnv() ? function() {
|
|
310
310
|
var t = /(msie|trident)/i.test(navigator.userAgent), o = document.createElement("a"), a;
|
|
@@ -331,11 +331,11 @@ function _a() {
|
|
|
331
331
|
};
|
|
332
332
|
}(), Dt;
|
|
333
333
|
}
|
|
334
|
-
var kt,
|
|
334
|
+
var kt, Fn;
|
|
335
335
|
function ft() {
|
|
336
|
-
if (
|
|
336
|
+
if (Fn)
|
|
337
337
|
return kt;
|
|
338
|
-
|
|
338
|
+
Fn = 1;
|
|
339
339
|
function e(r) {
|
|
340
340
|
this.message = r;
|
|
341
341
|
}
|
|
@@ -343,27 +343,27 @@ function ft() {
|
|
|
343
343
|
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
344
344
|
}, e.prototype.__CANCEL__ = !0, kt = e, kt;
|
|
345
345
|
}
|
|
346
|
-
var At,
|
|
347
|
-
function
|
|
348
|
-
if (
|
|
346
|
+
var At, Dn;
|
|
347
|
+
function kn() {
|
|
348
|
+
if (Dn)
|
|
349
349
|
return At;
|
|
350
|
-
|
|
350
|
+
Dn = 1;
|
|
351
351
|
var e = ee, r = da(), t = pa(), o = ir, a = ma(), n = wa(), i = _a(), c = cr(), d = ur, s = ft();
|
|
352
352
|
return At = function(l) {
|
|
353
|
-
return new Promise(function(h,
|
|
354
|
-
var
|
|
353
|
+
return new Promise(function(h, b) {
|
|
354
|
+
var _ = l.data, D = l.headers, C = l.responseType, S;
|
|
355
355
|
function T() {
|
|
356
356
|
l.cancelToken && l.cancelToken.unsubscribe(S), l.signal && l.signal.removeEventListener("abort", S);
|
|
357
357
|
}
|
|
358
|
-
e.isFormData(
|
|
358
|
+
e.isFormData(_) && delete D["Content-Type"];
|
|
359
359
|
var m = new XMLHttpRequest();
|
|
360
360
|
if (l.auth) {
|
|
361
361
|
var I = l.auth.username || "", y = l.auth.password ? unescape(encodeURIComponent(l.auth.password)) : "";
|
|
362
|
-
|
|
362
|
+
D.Authorization = "Basic " + btoa(I + ":" + y);
|
|
363
363
|
}
|
|
364
364
|
var A = a(l.baseURL, l.url);
|
|
365
365
|
m.open(l.method.toUpperCase(), o(A, l.params, l.paramsSerializer), !0), m.timeout = l.timeout;
|
|
366
|
-
function
|
|
366
|
+
function W() {
|
|
367
367
|
if (!!m) {
|
|
368
368
|
var N = "getAllResponseHeaders" in m ? n(m.getAllResponseHeaders()) : null, J = !C || C === "text" || C === "json" ? m.responseText : m.response, K = {
|
|
369
369
|
data: J,
|
|
@@ -376,45 +376,45 @@ function Dn() {
|
|
|
376
376
|
r(function(G) {
|
|
377
377
|
h(G), T();
|
|
378
378
|
}, function(G) {
|
|
379
|
-
|
|
379
|
+
b(G), T();
|
|
380
380
|
}, K), m = null;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
if ("onloadend" in m ? m.onloadend =
|
|
384
|
-
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
383
|
+
if ("onloadend" in m ? m.onloadend = W : m.onreadystatechange = function() {
|
|
384
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(W);
|
|
385
385
|
}, m.onabort = function() {
|
|
386
|
-
!m || (
|
|
386
|
+
!m || (b(c("Request aborted", l, "ECONNABORTED", m)), m = null);
|
|
387
387
|
}, m.onerror = function() {
|
|
388
|
-
|
|
388
|
+
b(c("Network Error", l, null, m)), m = null;
|
|
389
389
|
}, m.ontimeout = function() {
|
|
390
390
|
var J = l.timeout ? "timeout of " + l.timeout + "ms exceeded" : "timeout exceeded", K = l.transitional || d;
|
|
391
|
-
l.timeoutErrorMessage && (J = l.timeoutErrorMessage),
|
|
391
|
+
l.timeoutErrorMessage && (J = l.timeoutErrorMessage), b(c(
|
|
392
392
|
J,
|
|
393
393
|
l,
|
|
394
394
|
K.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
395
395
|
m
|
|
396
396
|
)), m = null;
|
|
397
397
|
}, e.isStandardBrowserEnv()) {
|
|
398
|
-
var
|
|
399
|
-
|
|
398
|
+
var U = (l.withCredentials || i(A)) && l.xsrfCookieName ? t.read(l.xsrfCookieName) : void 0;
|
|
399
|
+
U && (D[l.xsrfHeaderName] = U);
|
|
400
400
|
}
|
|
401
|
-
"setRequestHeader" in m && e.forEach(
|
|
402
|
-
typeof
|
|
401
|
+
"setRequestHeader" in m && e.forEach(D, function(J, K) {
|
|
402
|
+
typeof _ > "u" && K.toLowerCase() === "content-type" ? delete D[K] : m.setRequestHeader(K, J);
|
|
403
403
|
}), e.isUndefined(l.withCredentials) || (m.withCredentials = !!l.withCredentials), C && C !== "json" && (m.responseType = l.responseType), typeof l.onDownloadProgress == "function" && m.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && m.upload && m.upload.addEventListener("progress", l.onUploadProgress), (l.cancelToken || l.signal) && (S = function(N) {
|
|
404
|
-
!m || (
|
|
405
|
-
}, l.cancelToken && l.cancelToken.subscribe(S), l.signal && (l.signal.aborted ? S() : l.signal.addEventListener("abort", S))),
|
|
404
|
+
!m || (b(!N || N && N.type ? new s("canceled") : N), m.abort(), m = null);
|
|
405
|
+
}, l.cancelToken && l.cancelToken.subscribe(S), l.signal && (l.signal.aborted ? S() : l.signal.addEventListener("abort", S))), _ || (_ = null), m.send(_);
|
|
406
406
|
});
|
|
407
407
|
}, At;
|
|
408
408
|
}
|
|
409
|
-
var Y = ee,
|
|
409
|
+
var Y = ee, An = fa, ya = sr, ba = ur, Ea = {
|
|
410
410
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
411
411
|
};
|
|
412
|
-
function
|
|
412
|
+
function Ln(e, r) {
|
|
413
413
|
!Y.isUndefined(e) && Y.isUndefined(e["Content-Type"]) && (e["Content-Type"] = r);
|
|
414
414
|
}
|
|
415
415
|
function Sa() {
|
|
416
416
|
var e;
|
|
417
|
-
return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (e =
|
|
417
|
+
return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (e = kn()), e;
|
|
418
418
|
}
|
|
419
419
|
function Ra(e, r, t) {
|
|
420
420
|
if (Y.isString(e))
|
|
@@ -430,7 +430,7 @@ var dt = {
|
|
|
430
430
|
transitional: ba,
|
|
431
431
|
adapter: Sa(),
|
|
432
432
|
transformRequest: [function(r, t) {
|
|
433
|
-
return
|
|
433
|
+
return An(t, "Accept"), An(t, "Content-Type"), Y.isFormData(r) || Y.isArrayBuffer(r) || Y.isBuffer(r) || Y.isStream(r) || Y.isFile(r) || Y.isBlob(r) ? r : Y.isArrayBufferView(r) ? r.buffer : Y.isURLSearchParams(r) ? (Ln(t, "application/x-www-form-urlencoded;charset=utf-8"), r.toString()) : Y.isObject(r) || t && t["Content-Type"] === "application/json" ? (Ln(t, "application/json"), Ra(r)) : r;
|
|
434
434
|
}],
|
|
435
435
|
transformResponse: [function(r) {
|
|
436
436
|
var t = this.transitional || dt.transitional, o = t && t.silentJSONParsing, a = t && t.forcedJSONParsing, n = !o && this.responseType === "json";
|
|
@@ -463,33 +463,33 @@ Y.forEach(["delete", "get", "head"], function(r) {
|
|
|
463
463
|
Y.forEach(["post", "put", "patch"], function(r) {
|
|
464
464
|
dt.headers[r] = Y.merge(Ea);
|
|
465
465
|
});
|
|
466
|
-
var
|
|
466
|
+
var an = dt, ga = ee, Ta = an, Ca = function(r, t, o) {
|
|
467
467
|
var a = this || Ta;
|
|
468
468
|
return ga.forEach(o, function(i) {
|
|
469
469
|
r = i.call(a, r, t);
|
|
470
470
|
}), r;
|
|
471
|
-
}, Lt,
|
|
471
|
+
}, Lt, jn;
|
|
472
472
|
function lr() {
|
|
473
|
-
return
|
|
473
|
+
return jn || (jn = 1, Lt = function(r) {
|
|
474
474
|
return !!(r && r.__CANCEL__);
|
|
475
475
|
}), Lt;
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
477
|
+
var Un = ee, jt = Ca, Oa = lr(), xa = an, Fa = ft();
|
|
478
|
+
function Ut(e) {
|
|
479
479
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
480
480
|
throw new Fa("canceled");
|
|
481
481
|
}
|
|
482
482
|
var Da = function(r) {
|
|
483
|
-
|
|
483
|
+
Ut(r), r.headers = r.headers || {}, r.data = jt.call(
|
|
484
484
|
r,
|
|
485
485
|
r.data,
|
|
486
486
|
r.headers,
|
|
487
487
|
r.transformRequest
|
|
488
|
-
), r.headers =
|
|
488
|
+
), r.headers = Un.merge(
|
|
489
489
|
r.headers.common || {},
|
|
490
490
|
r.headers[r.method] || {},
|
|
491
491
|
r.headers
|
|
492
|
-
),
|
|
492
|
+
), Un.forEach(
|
|
493
493
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
494
494
|
function(a) {
|
|
495
495
|
delete r.headers[a];
|
|
@@ -497,14 +497,14 @@ var Da = function(r) {
|
|
|
497
497
|
);
|
|
498
498
|
var t = r.adapter || xa.adapter;
|
|
499
499
|
return t(r).then(function(a) {
|
|
500
|
-
return
|
|
500
|
+
return Ut(r), a.data = jt.call(
|
|
501
501
|
r,
|
|
502
502
|
a.data,
|
|
503
503
|
a.headers,
|
|
504
504
|
r.transformResponse
|
|
505
505
|
), a;
|
|
506
506
|
}, function(a) {
|
|
507
|
-
return Oa(a) || (
|
|
507
|
+
return Oa(a) || (Ut(r), a && a.response && (a.response.data = jt.call(
|
|
508
508
|
r,
|
|
509
509
|
a.response.data,
|
|
510
510
|
a.response.headers,
|
|
@@ -570,30 +570,30 @@ var Da = function(r) {
|
|
|
570
570
|
validateStatus: d
|
|
571
571
|
};
|
|
572
572
|
return te.forEach(Object.keys(r).concat(Object.keys(t)), function(l) {
|
|
573
|
-
var
|
|
574
|
-
te.isUndefined(h) &&
|
|
573
|
+
var w = s[l] || n, h = w(l);
|
|
574
|
+
te.isUndefined(h) && w !== d || (o[l] = h);
|
|
575
575
|
}), o;
|
|
576
|
-
},
|
|
576
|
+
}, Pt, Pn;
|
|
577
577
|
function dr() {
|
|
578
|
-
return Pn || (Pn = 1,
|
|
578
|
+
return Pn || (Pn = 1, Pt = {
|
|
579
579
|
version: "0.26.1"
|
|
580
|
-
}),
|
|
580
|
+
}), Pt;
|
|
581
581
|
}
|
|
582
|
-
var ka = dr().version,
|
|
582
|
+
var ka = dr().version, on = {};
|
|
583
583
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(e, r) {
|
|
584
|
-
|
|
584
|
+
on[e] = function(o) {
|
|
585
585
|
return typeof o === e || "a" + (r < 1 ? "n " : " ") + e;
|
|
586
586
|
};
|
|
587
587
|
});
|
|
588
|
-
var
|
|
589
|
-
|
|
588
|
+
var Nn = {};
|
|
589
|
+
on.transitional = function(r, t, o) {
|
|
590
590
|
function a(n, i) {
|
|
591
591
|
return "[Axios v" + ka + "] Transitional option '" + n + "'" + i + (o ? ". " + o : "");
|
|
592
592
|
}
|
|
593
593
|
return function(n, i, c) {
|
|
594
594
|
if (r === !1)
|
|
595
595
|
throw new Error(a(i, " has been removed" + (t ? " in " + t : "")));
|
|
596
|
-
return t && !
|
|
596
|
+
return t && !Nn[i] && (Nn[i] = !0, console.warn(
|
|
597
597
|
a(
|
|
598
598
|
i,
|
|
599
599
|
" has been deprecated since v" + t + " and will be removed in the near future"
|
|
@@ -618,12 +618,12 @@ function Aa(e, r, t) {
|
|
|
618
618
|
}
|
|
619
619
|
var La = {
|
|
620
620
|
assertOptions: Aa,
|
|
621
|
-
validators:
|
|
622
|
-
}, pr = ee, ja = ir,
|
|
621
|
+
validators: on
|
|
622
|
+
}, pr = ee, ja = ir, In = ca, qn = Da, pt = fr, hr = La, Ae = hr.validators;
|
|
623
623
|
function ze(e) {
|
|
624
624
|
this.defaults = e, this.interceptors = {
|
|
625
|
-
request: new
|
|
626
|
-
response: new
|
|
625
|
+
request: new In(),
|
|
626
|
+
response: new In()
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
ze.prototype.request = function(r, t) {
|
|
@@ -644,7 +644,7 @@ ze.prototype.request = function(r, t) {
|
|
|
644
644
|
});
|
|
645
645
|
var c;
|
|
646
646
|
if (!n) {
|
|
647
|
-
var d = [
|
|
647
|
+
var d = [qn, void 0];
|
|
648
648
|
for (Array.prototype.unshift.apply(d, a), d = d.concat(i), c = Promise.resolve(t); d.length; )
|
|
649
649
|
c = c.then(d.shift(), d.shift());
|
|
650
650
|
return c;
|
|
@@ -653,15 +653,15 @@ ze.prototype.request = function(r, t) {
|
|
|
653
653
|
var f = a.shift(), l = a.shift();
|
|
654
654
|
try {
|
|
655
655
|
s = f(s);
|
|
656
|
-
} catch (
|
|
657
|
-
l(
|
|
656
|
+
} catch (w) {
|
|
657
|
+
l(w);
|
|
658
658
|
break;
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
try {
|
|
662
|
-
c =
|
|
663
|
-
} catch (
|
|
664
|
-
return Promise.reject(
|
|
662
|
+
c = qn(s);
|
|
663
|
+
} catch (w) {
|
|
664
|
+
return Promise.reject(w);
|
|
665
665
|
}
|
|
666
666
|
for (; i.length; )
|
|
667
667
|
c = c.then(i.shift(), i.shift());
|
|
@@ -688,11 +688,11 @@ pr.forEach(["post", "put", "patch"], function(r) {
|
|
|
688
688
|
}));
|
|
689
689
|
};
|
|
690
690
|
});
|
|
691
|
-
var
|
|
692
|
-
function
|
|
693
|
-
if (
|
|
691
|
+
var Ua = ze, Nt, $n;
|
|
692
|
+
function Pa() {
|
|
693
|
+
if ($n)
|
|
694
694
|
return Nt;
|
|
695
|
-
|
|
695
|
+
$n = 1;
|
|
696
696
|
var e = ft();
|
|
697
697
|
function r(t) {
|
|
698
698
|
if (typeof t != "function")
|
|
@@ -744,35 +744,35 @@ function Ua() {
|
|
|
744
744
|
};
|
|
745
745
|
}, Nt = r, Nt;
|
|
746
746
|
}
|
|
747
|
-
var It,
|
|
747
|
+
var It, Bn;
|
|
748
748
|
function Na() {
|
|
749
|
-
return
|
|
749
|
+
return Bn || (Bn = 1, It = function(r) {
|
|
750
750
|
return function(o) {
|
|
751
751
|
return r.apply(null, o);
|
|
752
752
|
};
|
|
753
753
|
}), It;
|
|
754
754
|
}
|
|
755
|
-
var qt,
|
|
755
|
+
var qt, Vn;
|
|
756
756
|
function Ia() {
|
|
757
|
-
if (
|
|
757
|
+
if (Vn)
|
|
758
758
|
return qt;
|
|
759
|
-
|
|
759
|
+
Vn = 1;
|
|
760
760
|
var e = ee;
|
|
761
761
|
return qt = function(t) {
|
|
762
762
|
return e.isObject(t) && t.isAxiosError === !0;
|
|
763
763
|
}, qt;
|
|
764
764
|
}
|
|
765
|
-
var
|
|
765
|
+
var Mn = ee, qa = nr, ut = Ua, $a = fr, Ba = an;
|
|
766
766
|
function vr(e) {
|
|
767
767
|
var r = new ut(e), t = qa(ut.prototype.request, r);
|
|
768
|
-
return
|
|
768
|
+
return Mn.extend(t, ut.prototype, r), Mn.extend(t, r), t.create = function(a) {
|
|
769
769
|
return vr($a(e, a));
|
|
770
770
|
}, t;
|
|
771
771
|
}
|
|
772
772
|
var ce = vr(Ba);
|
|
773
773
|
ce.Axios = ut;
|
|
774
774
|
ce.Cancel = ft();
|
|
775
|
-
ce.CancelToken =
|
|
775
|
+
ce.CancelToken = Pa();
|
|
776
776
|
ce.isCancel = lr();
|
|
777
777
|
ce.VERSION = dr().version;
|
|
778
778
|
ce.all = function(r) {
|
|
@@ -780,10 +780,10 @@ ce.all = function(r) {
|
|
|
780
780
|
};
|
|
781
781
|
ce.spread = Na();
|
|
782
782
|
ce.isAxiosError = Ia();
|
|
783
|
-
|
|
784
|
-
|
|
783
|
+
tn.exports = ce;
|
|
784
|
+
tn.exports.default = ce;
|
|
785
785
|
(function(e) {
|
|
786
|
-
e.exports =
|
|
786
|
+
e.exports = tn.exports;
|
|
787
787
|
})(Ge);
|
|
788
788
|
var ct = j && j.__assign || function() {
|
|
789
789
|
return ct = Object.assign || function(e) {
|
|
@@ -1128,24 +1128,24 @@ var Le = Ge.exports, Ma = function() {
|
|
|
1128
1128
|
}, e.prototype.getDocList = function(r, t) {
|
|
1129
1129
|
var o;
|
|
1130
1130
|
return Te(this, void 0, void 0, function() {
|
|
1131
|
-
var a, n, i, c, d, s, f, l,
|
|
1132
|
-
return Ce(this, function(
|
|
1133
|
-
return a = {}, t && (n = t.fields, i = t.filters, c = t.orFilters, d = t.orderBy, s = t.limit, f = t.limit_start, l = t.groupBy,
|
|
1131
|
+
var a, n, i, c, d, s, f, l, w, h, b, _;
|
|
1132
|
+
return Ce(this, function(D) {
|
|
1133
|
+
return a = {}, t && (n = t.fields, i = t.filters, c = t.orFilters, d = t.orderBy, s = t.limit, f = t.limit_start, l = t.groupBy, w = t.asDict, h = w === void 0 ? !0 : w, b = d ? "".concat(d == null ? void 0 : d.field, " ").concat((o = d == null ? void 0 : d.order) !== null && o !== void 0 ? o : "asc") : "", a = {
|
|
1134
1134
|
fields: n ? JSON.stringify(n) : void 0,
|
|
1135
1135
|
filters: i ? JSON.stringify(i) : void 0,
|
|
1136
1136
|
or_filters: c ? JSON.stringify(c) : void 0,
|
|
1137
|
-
order_by:
|
|
1137
|
+
order_by: b,
|
|
1138
1138
|
group_by: l,
|
|
1139
1139
|
limit: s,
|
|
1140
1140
|
limit_start: f,
|
|
1141
1141
|
as_dict: h
|
|
1142
|
-
}),
|
|
1142
|
+
}), _ = {
|
|
1143
1143
|
Accept: "application/json",
|
|
1144
1144
|
"Content-Type": "application/json; charset=utf-8",
|
|
1145
1145
|
"X-Frappe-Site-Name": window.location.hostname
|
|
1146
|
-
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (
|
|
1146
|
+
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (_["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Le.default.get(this.getRequestURL(r), {
|
|
1147
1147
|
params: a,
|
|
1148
|
-
headers:
|
|
1148
|
+
headers: _,
|
|
1149
1149
|
withCredentials: !0
|
|
1150
1150
|
}).then(function(C) {
|
|
1151
1151
|
return C.data.data;
|
|
@@ -1380,7 +1380,7 @@ var Ha = Ge.exports, Ja = function() {
|
|
|
1380
1380
|
return e.prototype.uploadFile = function(r, t, o) {
|
|
1381
1381
|
return Wa(this, void 0, void 0, function() {
|
|
1382
1382
|
var a, n, i, c, d, s, f, l;
|
|
1383
|
-
return Xa(this, function(
|
|
1383
|
+
return Xa(this, function(w) {
|
|
1384
1384
|
return a = new FormData(), r && a.append("file", r, r.name), n = t.isPrivate, i = t.folder, c = t.file_url, d = t.doctype, s = t.docname, f = t.fieldname, n && a.append("is_private", "1"), i && a.append("folder", i), c && a.append("file_url", c), d && s && (a.append("doctype", d), a.append("docname", s), f && a.append("fieldname", f)), l = {
|
|
1385
1385
|
Accept: "application/json",
|
|
1386
1386
|
"Content-Type": "application/json; charset=utf-8",
|
|
@@ -1391,12 +1391,12 @@ var Ha = Ge.exports, Ja = function() {
|
|
|
1391
1391
|
o && o(h.loaded, h.total);
|
|
1392
1392
|
}
|
|
1393
1393
|
}).catch(function(h) {
|
|
1394
|
-
var
|
|
1394
|
+
var b, _;
|
|
1395
1395
|
throw {
|
|
1396
1396
|
httpStatus: h.response.status,
|
|
1397
1397
|
httpStatusText: h.response.statusText,
|
|
1398
|
-
message: (
|
|
1399
|
-
exception: (
|
|
1398
|
+
message: (b = h.response.data.message) !== null && b !== void 0 ? b : "There was an error while uploading the file.",
|
|
1399
|
+
exception: (_ = h.response.data.exception) !== null && _ !== void 0 ? _ : ""
|
|
1400
1400
|
};
|
|
1401
1401
|
})];
|
|
1402
1402
|
});
|
|
@@ -1404,11 +1404,11 @@ var Ha = Ge.exports, Ja = function() {
|
|
|
1404
1404
|
}, e;
|
|
1405
1405
|
}();
|
|
1406
1406
|
Qe.FrappeFileUpload = Ja;
|
|
1407
|
-
var
|
|
1407
|
+
var Wn;
|
|
1408
1408
|
function Ya() {
|
|
1409
|
-
if (
|
|
1409
|
+
if (Wn)
|
|
1410
1410
|
return Me;
|
|
1411
|
-
|
|
1411
|
+
Wn = 1, Object.defineProperty(Me, "__esModule", { value: !0 }), Me.FrappeApp = void 0;
|
|
1412
1412
|
var e = mr(), r = Ye, t = Ke, o = Qe, a = function() {
|
|
1413
1413
|
function n(i, c) {
|
|
1414
1414
|
this.url = i, this.name = c != null ? c : "FrappeApp";
|
|
@@ -1626,9 +1626,9 @@ var ot = Ge.exports, Ga = function() {
|
|
|
1626
1626
|
}, e;
|
|
1627
1627
|
}();
|
|
1628
1628
|
ht.FrappeAuth = Ga;
|
|
1629
|
-
var
|
|
1629
|
+
var Xn;
|
|
1630
1630
|
function mr() {
|
|
1631
|
-
return
|
|
1631
|
+
return Xn || (Xn = 1, function(e) {
|
|
1632
1632
|
var r = j && j.__createBinding || (Object.create ? function(o, a, n, i) {
|
|
1633
1633
|
i === void 0 && (i = n);
|
|
1634
1634
|
var c = Object.getOwnPropertyDescriptor(a, n);
|
|
@@ -1654,38 +1654,38 @@ var za = mr(), wr = { exports: {} }, $t = {};
|
|
|
1654
1654
|
* This source code is licensed under the MIT license found in the
|
|
1655
1655
|
* LICENSE file in the root directory of this source tree.
|
|
1656
1656
|
*/
|
|
1657
|
-
var
|
|
1657
|
+
var Hn;
|
|
1658
1658
|
function Ka() {
|
|
1659
|
-
if (
|
|
1659
|
+
if (Hn)
|
|
1660
1660
|
return $t;
|
|
1661
|
-
|
|
1661
|
+
Hn = 1;
|
|
1662
1662
|
var e = je;
|
|
1663
|
-
function r(l,
|
|
1664
|
-
return l ===
|
|
1663
|
+
function r(l, w) {
|
|
1664
|
+
return l === w && (l !== 0 || 1 / l === 1 / w) || l !== l && w !== w;
|
|
1665
1665
|
}
|
|
1666
1666
|
var t = typeof Object.is == "function" ? Object.is : r, o = e.useState, a = e.useEffect, n = e.useLayoutEffect, i = e.useDebugValue;
|
|
1667
|
-
function c(l,
|
|
1668
|
-
var h =
|
|
1667
|
+
function c(l, w) {
|
|
1668
|
+
var h = w(), b = o({ inst: { value: h, getSnapshot: w } }), _ = b[0].inst, D = b[1];
|
|
1669
1669
|
return n(function() {
|
|
1670
|
-
|
|
1671
|
-
}, [l, h,
|
|
1672
|
-
return d(
|
|
1673
|
-
d(
|
|
1670
|
+
_.value = h, _.getSnapshot = w, d(_) && D({ inst: _ });
|
|
1671
|
+
}, [l, h, w]), a(function() {
|
|
1672
|
+
return d(_) && D({ inst: _ }), l(function() {
|
|
1673
|
+
d(_) && D({ inst: _ });
|
|
1674
1674
|
});
|
|
1675
1675
|
}, [l]), i(h), h;
|
|
1676
1676
|
}
|
|
1677
1677
|
function d(l) {
|
|
1678
|
-
var
|
|
1678
|
+
var w = l.getSnapshot;
|
|
1679
1679
|
l = l.value;
|
|
1680
1680
|
try {
|
|
1681
|
-
var h =
|
|
1681
|
+
var h = w();
|
|
1682
1682
|
return !t(l, h);
|
|
1683
1683
|
} catch {
|
|
1684
1684
|
return !0;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
-
function s(l,
|
|
1688
|
-
return
|
|
1687
|
+
function s(l, w) {
|
|
1688
|
+
return w();
|
|
1689
1689
|
}
|
|
1690
1690
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? s : c;
|
|
1691
1691
|
return $t.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, $t;
|
|
@@ -1700,9 +1700,9 @@ var Bt = {};
|
|
|
1700
1700
|
* This source code is licensed under the MIT license found in the
|
|
1701
1701
|
* LICENSE file in the root directory of this source tree.
|
|
1702
1702
|
*/
|
|
1703
|
-
var
|
|
1703
|
+
var Jn;
|
|
1704
1704
|
function Qa() {
|
|
1705
|
-
return
|
|
1705
|
+
return Jn || (Jn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1706
1706
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1707
1707
|
var e = je, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1708
1708
|
function t(T) {
|
|
@@ -1716,40 +1716,40 @@ function Qa() {
|
|
|
1716
1716
|
{
|
|
1717
1717
|
var y = r.ReactDebugCurrentFrame, A = y.getStackAddendum();
|
|
1718
1718
|
A !== "" && (m += "%s", I = I.concat([A]));
|
|
1719
|
-
var
|
|
1720
|
-
return String(
|
|
1719
|
+
var W = I.map(function(U) {
|
|
1720
|
+
return String(U);
|
|
1721
1721
|
});
|
|
1722
|
-
|
|
1722
|
+
W.unshift("Warning: " + m), Function.prototype.apply.call(console[T], console, W);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
1725
|
function a(T, m) {
|
|
1726
1726
|
return T === m && (T !== 0 || 1 / T === 1 / m) || T !== T && m !== m;
|
|
1727
1727
|
}
|
|
1728
1728
|
var n = typeof Object.is == "function" ? Object.is : a, i = e.useState, c = e.useEffect, d = e.useLayoutEffect, s = e.useDebugValue, f = !1, l = !1;
|
|
1729
|
-
function
|
|
1729
|
+
function w(T, m, I) {
|
|
1730
1730
|
f || e.startTransition !== void 0 && (f = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
1731
1731
|
var y = m();
|
|
1732
1732
|
if (!l) {
|
|
1733
1733
|
var A = m();
|
|
1734
1734
|
n(y, A) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), l = !0);
|
|
1735
1735
|
}
|
|
1736
|
-
var
|
|
1736
|
+
var W = i({
|
|
1737
1737
|
inst: {
|
|
1738
1738
|
value: y,
|
|
1739
1739
|
getSnapshot: m
|
|
1740
1740
|
}
|
|
1741
|
-
}),
|
|
1741
|
+
}), U = W[0].inst, N = W[1];
|
|
1742
1742
|
return d(function() {
|
|
1743
|
-
|
|
1744
|
-
inst:
|
|
1743
|
+
U.value = y, U.getSnapshot = m, h(U) && N({
|
|
1744
|
+
inst: U
|
|
1745
1745
|
});
|
|
1746
1746
|
}, [T, y, m]), c(function() {
|
|
1747
|
-
h(
|
|
1748
|
-
inst:
|
|
1747
|
+
h(U) && N({
|
|
1748
|
+
inst: U
|
|
1749
1749
|
});
|
|
1750
1750
|
var J = function() {
|
|
1751
|
-
h(
|
|
1752
|
-
inst:
|
|
1751
|
+
h(U) && N({
|
|
1752
|
+
inst: U
|
|
1753
1753
|
});
|
|
1754
1754
|
};
|
|
1755
1755
|
return T(J);
|
|
@@ -1764,27 +1764,27 @@ function Qa() {
|
|
|
1764
1764
|
return !0;
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function b(T, m, I) {
|
|
1768
1768
|
return m();
|
|
1769
1769
|
}
|
|
1770
|
-
var
|
|
1770
|
+
var _ = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", D = !_, C = D ? b : w, S = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : C;
|
|
1771
1771
|
Bt.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1772
1772
|
}()), Bt;
|
|
1773
1773
|
}
|
|
1774
1774
|
(function(e) {
|
|
1775
1775
|
process.env.NODE_ENV === "production" ? e.exports = Ka() : e.exports = Qa();
|
|
1776
1776
|
})(wr);
|
|
1777
|
-
const he = /* @__PURE__ */ new WeakMap(),
|
|
1778
|
-
}, ie = _e(), Vt = Object,
|
|
1777
|
+
const he = /* @__PURE__ */ new WeakMap(), Yn = {}, _e = () => {
|
|
1778
|
+
}, ie = _e(), Vt = Object, P = (e) => e === ie, ve = (e) => typeof e == "function", ye = (e, r) => ({
|
|
1779
1779
|
...e,
|
|
1780
1780
|
...r
|
|
1781
|
-
}),
|
|
1781
|
+
}), sn = "undefined", vt = typeof window != sn, Gt = typeof document != sn, Za = () => vt && typeof window.requestAnimationFrame != sn, _r = (e, r) => {
|
|
1782
1782
|
const t = he.get(e);
|
|
1783
1783
|
return [
|
|
1784
|
-
() => e.get(r) ||
|
|
1784
|
+
() => e.get(r) || Yn,
|
|
1785
1785
|
(o) => {
|
|
1786
1786
|
const a = e.get(r);
|
|
1787
|
-
t[5](r, ye(a, o), a ||
|
|
1787
|
+
t[5](r, ye(a, o), a || Yn);
|
|
1788
1788
|
},
|
|
1789
1789
|
t[6]
|
|
1790
1790
|
];
|
|
@@ -1804,8 +1804,8 @@ const He = (e) => {
|
|
|
1804
1804
|
if (t == Vt) {
|
|
1805
1805
|
a = "#";
|
|
1806
1806
|
const i = Vt.keys(e).sort();
|
|
1807
|
-
for (; !
|
|
1808
|
-
|
|
1807
|
+
for (; !P(n = i.pop()); )
|
|
1808
|
+
P(e[n]) || (a += n + ":" + He(e[n]) + ",");
|
|
1809
1809
|
it.set(e, a);
|
|
1810
1810
|
}
|
|
1811
1811
|
} else
|
|
@@ -1821,7 +1821,7 @@ const to = () => zt, [Kt, Qt] = vt && window.addEventListener ? [
|
|
|
1821
1821
|
_e
|
|
1822
1822
|
], no = () => {
|
|
1823
1823
|
const e = Gt && document.visibilityState;
|
|
1824
|
-
return
|
|
1824
|
+
return P(e) || e !== "hidden";
|
|
1825
1825
|
}, ro = (e) => (Gt && document.addEventListener("visibilitychange", e), Kt("focus", e), () => {
|
|
1826
1826
|
Gt && document.removeEventListener("visibilitychange", e), Qt("focus", e);
|
|
1827
1827
|
}), ao = (e) => {
|
|
@@ -1839,10 +1839,10 @@ const to = () => zt, [Kt, Qt] = vt && window.addEventListener ? [
|
|
|
1839
1839
|
}, io = {
|
|
1840
1840
|
initFocus: ro,
|
|
1841
1841
|
initReconnect: ao
|
|
1842
|
-
},
|
|
1842
|
+
}, Gn = !je.useId, Je = !vt || "Deno" in window, so = (e) => Za() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Mt = Je ? en : Xr, Wt = typeof navigator < "u" && navigator.connection, zn = !Je && Wt && ([
|
|
1843
1843
|
"slow-2g",
|
|
1844
1844
|
"2g"
|
|
1845
|
-
].includes(Wt.effectiveType) || Wt.saveData),
|
|
1845
|
+
].includes(Wt.effectiveType) || Wt.saveData), un = (e) => {
|
|
1846
1846
|
if (ve(e))
|
|
1847
1847
|
try {
|
|
1848
1848
|
e = e();
|
|
@@ -1875,29 +1875,29 @@ async function Sr(...e) {
|
|
|
1875
1875
|
let d = n.optimisticData;
|
|
1876
1876
|
const s = n.revalidate !== !1, f = (h) => typeof c == "function" ? c(h) : c !== !1, l = n.throwOnError;
|
|
1877
1877
|
if (ve(t)) {
|
|
1878
|
-
const h = t,
|
|
1879
|
-
for (let
|
|
1880
|
-
const C =
|
|
1881
|
-
!C.startsWith("$inf$") && h(r.get(C)._k) &&
|
|
1878
|
+
const h = t, b = [], _ = r.keys();
|
|
1879
|
+
for (let D = _.next(); !D.done; D = _.next()) {
|
|
1880
|
+
const C = D.value;
|
|
1881
|
+
!C.startsWith("$inf$") && h(r.get(C)._k) && b.push(C);
|
|
1882
1882
|
}
|
|
1883
|
-
return Promise.all(
|
|
1883
|
+
return Promise.all(b.map(w));
|
|
1884
1884
|
}
|
|
1885
|
-
return
|
|
1886
|
-
async function
|
|
1887
|
-
const [
|
|
1888
|
-
if (!
|
|
1885
|
+
return w(t);
|
|
1886
|
+
async function w(h) {
|
|
1887
|
+
const [b] = un(h);
|
|
1888
|
+
if (!b)
|
|
1889
1889
|
return;
|
|
1890
|
-
const [
|
|
1890
|
+
const [_, D] = _r(r, b), [C, S, T] = he.get(r), m = C[b], I = () => s && (delete T[b], m && m[0]) ? m[0](Er).then(() => _().data) : _().data;
|
|
1891
1891
|
if (e.length < 3)
|
|
1892
1892
|
return I();
|
|
1893
1893
|
let y = o, A;
|
|
1894
|
-
const
|
|
1895
|
-
S[
|
|
1896
|
-
|
|
1894
|
+
const W = Zt();
|
|
1895
|
+
S[b] = [
|
|
1896
|
+
W,
|
|
1897
1897
|
0
|
|
1898
1898
|
];
|
|
1899
|
-
const
|
|
1900
|
-
if (
|
|
1899
|
+
const U = !P(d), N = _(), J = N.data, K = N._c, B = P(K) ? J : K;
|
|
1900
|
+
if (U && (d = ve(d) ? d(B) : d, D({
|
|
1901
1901
|
data: d,
|
|
1902
1902
|
_c: B
|
|
1903
1903
|
})), ve(y))
|
|
@@ -1909,21 +1909,21 @@ async function Sr(...e) {
|
|
|
1909
1909
|
if (y && ve(y.then))
|
|
1910
1910
|
if (y = await y.catch((z) => {
|
|
1911
1911
|
A = z;
|
|
1912
|
-
}),
|
|
1912
|
+
}), W !== S[b][0]) {
|
|
1913
1913
|
if (A)
|
|
1914
1914
|
throw A;
|
|
1915
1915
|
return y;
|
|
1916
1916
|
} else
|
|
1917
|
-
A &&
|
|
1917
|
+
A && U && f(A) && (i = !0, y = B, D({
|
|
1918
1918
|
data: y,
|
|
1919
1919
|
_c: ie
|
|
1920
1920
|
}));
|
|
1921
|
-
i && (A || (ve(i) && (y = i(y, B)),
|
|
1921
|
+
i && (A || (ve(i) && (y = i(y, B)), D({
|
|
1922
1922
|
data: y,
|
|
1923
1923
|
_c: ie
|
|
1924
|
-
}))), S[
|
|
1924
|
+
}))), S[b][1] = Zt();
|
|
1925
1925
|
const G = await I();
|
|
1926
|
-
if (
|
|
1926
|
+
if (D({
|
|
1927
1927
|
_c: ie
|
|
1928
1928
|
}), A) {
|
|
1929
1929
|
if (l)
|
|
@@ -1933,7 +1933,7 @@ async function Sr(...e) {
|
|
|
1933
1933
|
return i ? G : y;
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
|
-
const
|
|
1936
|
+
const Kn = (e, r) => {
|
|
1937
1937
|
for (const t in e)
|
|
1938
1938
|
e[t][0] && e[t][0](r);
|
|
1939
1939
|
}, co = (e, r) => {
|
|
@@ -1941,14 +1941,14 @@ const zn = (e, r) => {
|
|
|
1941
1941
|
const t = ye(io, r), o = {}, a = Sr.bind(ie, e);
|
|
1942
1942
|
let n = _e;
|
|
1943
1943
|
const i = {}, c = (f, l) => {
|
|
1944
|
-
const
|
|
1945
|
-
return i[f] =
|
|
1946
|
-
}, d = (f, l,
|
|
1944
|
+
const w = i[f] || [];
|
|
1945
|
+
return i[f] = w, w.push(l), () => w.splice(w.indexOf(l), 1);
|
|
1946
|
+
}, d = (f, l, w) => {
|
|
1947
1947
|
e.set(f, l);
|
|
1948
1948
|
const h = i[f];
|
|
1949
1949
|
if (h)
|
|
1950
|
-
for (let
|
|
1951
|
-
h[
|
|
1950
|
+
for (let b = h.length; b--; )
|
|
1951
|
+
h[b](w, l);
|
|
1952
1952
|
}, s = () => {
|
|
1953
1953
|
if (!he.has(e) && (he.set(e, [
|
|
1954
1954
|
o,
|
|
@@ -1959,7 +1959,7 @@ const zn = (e, r) => {
|
|
|
1959
1959
|
d,
|
|
1960
1960
|
c
|
|
1961
1961
|
]), !Je)) {
|
|
1962
|
-
const f = t.initFocus(setTimeout.bind(ie,
|
|
1962
|
+
const f = t.initFocus(setTimeout.bind(ie, Kn.bind(ie, o, yr))), l = t.initReconnect(setTimeout.bind(ie, Kn.bind(ie, o, br)));
|
|
1963
1963
|
n = () => {
|
|
1964
1964
|
f && f(), l && l(), he.delete(e);
|
|
1965
1965
|
};
|
|
@@ -1978,7 +1978,7 @@ const zn = (e, r) => {
|
|
|
1978
1978
|
];
|
|
1979
1979
|
}, lo = (e, r, t, o, a) => {
|
|
1980
1980
|
const n = t.errorRetryCount, i = a.retryCount, c = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * t.errorRetryInterval;
|
|
1981
|
-
!
|
|
1981
|
+
!P(n) && i > n || setTimeout(o, c, a);
|
|
1982
1982
|
}, fo = (e, r) => He(e) == He(r), [Rr, po] = co(/* @__PURE__ */ new Map()), ho = ye(
|
|
1983
1983
|
{
|
|
1984
1984
|
onLoadingSlow: _e,
|
|
@@ -1990,10 +1990,10 @@ const zn = (e, r) => {
|
|
|
1990
1990
|
revalidateOnReconnect: !0,
|
|
1991
1991
|
revalidateIfStale: !0,
|
|
1992
1992
|
shouldRetryOnError: !0,
|
|
1993
|
-
errorRetryInterval:
|
|
1993
|
+
errorRetryInterval: zn ? 1e4 : 5e3,
|
|
1994
1994
|
focusThrottleInterval: 5 * 1e3,
|
|
1995
1995
|
dedupingInterval: 2 * 1e3,
|
|
1996
|
-
loadingTimeout:
|
|
1996
|
+
loadingTimeout: zn ? 5e3 : 3e3,
|
|
1997
1997
|
compare: fo,
|
|
1998
1998
|
isPaused: () => !1,
|
|
1999
1999
|
cache: Rr,
|
|
@@ -2008,7 +2008,7 @@ const zn = (e, r) => {
|
|
|
2008
2008
|
o && n && (t.use = o.concat(n)), a && i && (t.fallback = ye(a, i));
|
|
2009
2009
|
}
|
|
2010
2010
|
return t;
|
|
2011
|
-
}, mo =
|
|
2011
|
+
}, mo = er({}), gr = vt && window.__SWR_DEVTOOLS_USE__, wo = gr ? window.__SWR_DEVTOOLS_USE__ : [], _o = () => {
|
|
2012
2012
|
gr && (window.__SWR_DEVTOOLS_REACT__ = je);
|
|
2013
2013
|
}, yo = (e) => ve(e[1]) ? [
|
|
2014
2014
|
e[0],
|
|
@@ -2019,7 +2019,7 @@ const zn = (e, r) => {
|
|
|
2019
2019
|
null,
|
|
2020
2020
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
2021
2021
|
], bo = () => ye(ho, ne(mo)), Eo = (e) => (r, t, o) => e(r, t && ((...n) => {
|
|
2022
|
-
const i =
|
|
2022
|
+
const i = un(r)[0], [, , , c] = he.get(Rr), d = c[i];
|
|
2023
2023
|
return d ? (delete c[i], d) : t(...n);
|
|
2024
2024
|
}), o), So = wo.concat(Eo), Ro = (e) => function(...t) {
|
|
2025
2025
|
const o = bo(), [a, n, i] = yo(t), c = vo(o, i);
|
|
@@ -2039,130 +2039,130 @@ _o();
|
|
|
2039
2039
|
const Ht = {
|
|
2040
2040
|
dedupe: !0
|
|
2041
2041
|
}, To = (e, r, t) => {
|
|
2042
|
-
const { cache: o, compare: a, suspense: n, fallbackData: i, revalidateOnMount: c, refreshInterval: d, refreshWhenHidden: s, refreshWhenOffline: f, keepPreviousData: l } = t, [
|
|
2042
|
+
const { cache: o, compare: a, suspense: n, fallbackData: i, revalidateOnMount: c, refreshInterval: d, refreshWhenHidden: s, refreshWhenOffline: f, keepPreviousData: l } = t, [w, h, b] = he.get(o), [_, D] = un(e), C = ge(!1), S = ge(!1), T = ge(_), m = ge(r), I = ge(t), y = () => I.current, A = () => y().isVisible() && y().isOnline(), [W, U, N] = _r(o, _), J = ge({}).current, K = P(i) ? t.fallback[_] : i, B = (k, q) => {
|
|
2043
2043
|
let L = !0;
|
|
2044
|
-
for (const
|
|
2045
|
-
const
|
|
2046
|
-
a(q[
|
|
2044
|
+
for (const X in J) {
|
|
2045
|
+
const H = X;
|
|
2046
|
+
a(q[H], k[H]) || H === "data" && P(k[H]) && a(q[H], xe) || (L = !1);
|
|
2047
2047
|
}
|
|
2048
2048
|
return L;
|
|
2049
2049
|
}, G = tr(() => {
|
|
2050
|
-
const
|
|
2051
|
-
const
|
|
2052
|
-
return delete
|
|
2050
|
+
const k = (() => !_ || !r ? !1 : P(c) ? !(y().isPaused() || n) : c)(), q = () => {
|
|
2051
|
+
const X = W(), H = ye(X);
|
|
2052
|
+
return delete H._k, k ? {
|
|
2053
2053
|
isValidating: !0,
|
|
2054
2054
|
isLoading: !0,
|
|
2055
|
-
...
|
|
2056
|
-
} :
|
|
2055
|
+
...H
|
|
2056
|
+
} : H;
|
|
2057
2057
|
};
|
|
2058
2058
|
let L = q();
|
|
2059
2059
|
return () => {
|
|
2060
|
-
const
|
|
2061
|
-
return B(
|
|
2060
|
+
const X = q();
|
|
2061
|
+
return B(X, L) ? L : L = X;
|
|
2062
2062
|
};
|
|
2063
2063
|
}, [
|
|
2064
2064
|
o,
|
|
2065
|
-
|
|
2066
|
-
]), z = wr.exports.useSyncExternalStore(
|
|
2067
|
-
(
|
|
2068
|
-
B(q, L) ||
|
|
2065
|
+
_
|
|
2066
|
+
]), z = wr.exports.useSyncExternalStore(M(
|
|
2067
|
+
(k) => N(_, (q, L) => {
|
|
2068
|
+
B(q, L) || k();
|
|
2069
2069
|
}),
|
|
2070
2070
|
[
|
|
2071
2071
|
o,
|
|
2072
|
-
|
|
2072
|
+
_
|
|
2073
2073
|
]
|
|
2074
|
-
), G, G),
|
|
2075
|
-
async (
|
|
2074
|
+
), G, G), Ue = !C.current, le = z.data, se = P(le) ? K : le, Oe = z.error, Pe = ge(se), xe = l ? P(le) ? Pe.current : le : se, Ne = (() => Ue && !P(c) ? c : y().isPaused() ? !1 : n ? P(se) ? !1 : t.revalidateIfStale : P(se) || t.revalidateIfStale)(), Ie = !!(_ && r && Ue && Ne), mt = P(z.isValidating) ? Ie : z.isValidating, wt = P(z.isLoading) ? Ie : z.isLoading, fe = M(
|
|
2075
|
+
async (k) => {
|
|
2076
2076
|
const q = m.current;
|
|
2077
|
-
if (!
|
|
2077
|
+
if (!_ || !q || S.current || y().isPaused())
|
|
2078
2078
|
return !1;
|
|
2079
|
-
let L,
|
|
2080
|
-
const Ee =
|
|
2079
|
+
let L, X, H = !0;
|
|
2080
|
+
const Ee = k || {}, me = !b[_] || !Ee.dedupe, ue = () => Gn ? !S.current && _ === T.current && C.current : _ === T.current, de = {
|
|
2081
2081
|
isValidating: !1,
|
|
2082
2082
|
isLoading: !1
|
|
2083
2083
|
}, $e = () => {
|
|
2084
|
-
|
|
2084
|
+
U(de);
|
|
2085
2085
|
}, Be = () => {
|
|
2086
|
-
const Z =
|
|
2087
|
-
Z && Z[1] ===
|
|
2086
|
+
const Z = b[_];
|
|
2087
|
+
Z && Z[1] === X && delete b[_];
|
|
2088
2088
|
}, Se = {
|
|
2089
2089
|
isValidating: !0
|
|
2090
2090
|
};
|
|
2091
|
-
|
|
2091
|
+
P(W().data) && (Se.isLoading = !0);
|
|
2092
2092
|
try {
|
|
2093
|
-
if (me && (
|
|
2094
|
-
|
|
2095
|
-
}, t.loadingTimeout),
|
|
2096
|
-
q(
|
|
2093
|
+
if (me && (U(Se), t.loadingTimeout && P(W().data) && setTimeout(() => {
|
|
2094
|
+
H && ue() && y().onLoadingSlow(_, t);
|
|
2095
|
+
}, t.loadingTimeout), b[_] = [
|
|
2096
|
+
q(D),
|
|
2097
2097
|
Zt()
|
|
2098
|
-
]), [L,
|
|
2099
|
-
return me && ue() && y().onDiscarded(
|
|
2098
|
+
]), [L, X] = b[_], L = await L, me && setTimeout(Be, t.dedupingInterval), !b[_] || b[_][1] !== X)
|
|
2099
|
+
return me && ue() && y().onDiscarded(_), !1;
|
|
2100
2100
|
de.error = ie;
|
|
2101
|
-
const Z = h[
|
|
2102
|
-
if (!
|
|
2103
|
-
return $e(), me && ue() && y().onDiscarded(
|
|
2104
|
-
const oe =
|
|
2105
|
-
de.data = a(oe, L) ? oe : L, me && ue() && y().onSuccess(L,
|
|
2101
|
+
const Z = h[_];
|
|
2102
|
+
if (!P(Z) && (X <= Z[0] || X <= Z[1] || Z[1] === 0))
|
|
2103
|
+
return $e(), me && ue() && y().onDiscarded(_), !1;
|
|
2104
|
+
const oe = W().data;
|
|
2105
|
+
de.data = a(oe, L) ? oe : L, me && ue() && y().onSuccess(L, _, t);
|
|
2106
2106
|
} catch (Z) {
|
|
2107
2107
|
Be();
|
|
2108
2108
|
const oe = y(), { shouldRetryOnError: Re } = oe;
|
|
2109
|
-
oe.isPaused() || (de.error = Z, me && ue() && (oe.onError(Z,
|
|
2109
|
+
oe.isPaused() || (de.error = Z, me && ue() && (oe.onError(Z, _, oe), (Re === !0 || ve(Re) && Re(Z)) && A() && oe.onErrorRetry(Z, _, oe, fe, {
|
|
2110
2110
|
retryCount: (Ee.retryCount || 0) + 1,
|
|
2111
2111
|
dedupe: !0
|
|
2112
2112
|
})));
|
|
2113
2113
|
}
|
|
2114
|
-
return
|
|
2114
|
+
return H = !1, $e(), !0;
|
|
2115
2115
|
},
|
|
2116
2116
|
[
|
|
2117
|
-
|
|
2117
|
+
_,
|
|
2118
2118
|
o
|
|
2119
2119
|
]
|
|
2120
|
-
), qe =
|
|
2121
|
-
(...
|
|
2120
|
+
), qe = M(
|
|
2121
|
+
(...k) => Sr(o, T.current, ...k),
|
|
2122
2122
|
[]
|
|
2123
2123
|
);
|
|
2124
2124
|
if (Mt(() => {
|
|
2125
|
-
m.current = r, I.current = t,
|
|
2125
|
+
m.current = r, I.current = t, P(le) || (Pe.current = le);
|
|
2126
2126
|
}), Mt(() => {
|
|
2127
|
-
if (!
|
|
2127
|
+
if (!_)
|
|
2128
2128
|
return;
|
|
2129
|
-
const
|
|
2129
|
+
const k = fe.bind(ie, Ht);
|
|
2130
2130
|
let q = 0;
|
|
2131
|
-
const
|
|
2132
|
-
if (
|
|
2131
|
+
const X = go(_, w, (H) => {
|
|
2132
|
+
if (H == Xt.FOCUS_EVENT) {
|
|
2133
2133
|
const Ee = Date.now();
|
|
2134
|
-
y().revalidateOnFocus && Ee > q && A() && (q = Ee + y().focusThrottleInterval,
|
|
2135
|
-
} else if (
|
|
2136
|
-
y().revalidateOnReconnect && A() &&
|
|
2137
|
-
else if (
|
|
2134
|
+
y().revalidateOnFocus && Ee > q && A() && (q = Ee + y().focusThrottleInterval, k());
|
|
2135
|
+
} else if (H == Xt.RECONNECT_EVENT)
|
|
2136
|
+
y().revalidateOnReconnect && A() && k();
|
|
2137
|
+
else if (H == Xt.MUTATE_EVENT)
|
|
2138
2138
|
return fe();
|
|
2139
2139
|
});
|
|
2140
|
-
return S.current = !1, T.current =
|
|
2141
|
-
_k:
|
|
2142
|
-
}), Ne && (
|
|
2143
|
-
S.current = !0,
|
|
2140
|
+
return S.current = !1, T.current = _, C.current = !0, U({
|
|
2141
|
+
_k: D
|
|
2142
|
+
}), Ne && (P(se) || Je ? k() : so(k)), () => {
|
|
2143
|
+
S.current = !0, X();
|
|
2144
2144
|
};
|
|
2145
2145
|
}, [
|
|
2146
|
-
|
|
2146
|
+
_
|
|
2147
2147
|
]), Mt(() => {
|
|
2148
|
-
let
|
|
2148
|
+
let k;
|
|
2149
2149
|
function q() {
|
|
2150
|
-
const
|
|
2151
|
-
|
|
2150
|
+
const X = ve(d) ? d(se) : d;
|
|
2151
|
+
X && k !== -1 && (k = setTimeout(L, X));
|
|
2152
2152
|
}
|
|
2153
2153
|
function L() {
|
|
2154
|
-
!
|
|
2154
|
+
!W().error && (s || y().isVisible()) && (f || y().isOnline()) ? fe(Ht).then(q) : q();
|
|
2155
2155
|
}
|
|
2156
2156
|
return q(), () => {
|
|
2157
|
-
|
|
2157
|
+
k && (clearTimeout(k), k = -1);
|
|
2158
2158
|
};
|
|
2159
2159
|
}, [
|
|
2160
2160
|
d,
|
|
2161
2161
|
s,
|
|
2162
2162
|
f,
|
|
2163
|
-
|
|
2164
|
-
]), Hr(xe), n &&
|
|
2165
|
-
throw !
|
|
2163
|
+
_
|
|
2164
|
+
]), Hr(xe), n && P(se) && _)
|
|
2165
|
+
throw !Gn && Je ? new Error("Fallback data is required when using suspense in SSR.") : (m.current = r, I.current = t, S.current = !1, P(Oe) ? fe(Ht) : Oe);
|
|
2166
2166
|
return {
|
|
2167
2167
|
mutate: qe,
|
|
2168
2168
|
get data() {
|
|
@@ -2189,21 +2189,21 @@ var Ze = Ro(To), Tr = { exports: {} }, We = {};
|
|
|
2189
2189
|
* This source code is licensed under the MIT license found in the
|
|
2190
2190
|
* LICENSE file in the root directory of this source tree.
|
|
2191
2191
|
*/
|
|
2192
|
-
var
|
|
2192
|
+
var Qn;
|
|
2193
2193
|
function Co() {
|
|
2194
|
-
if (
|
|
2194
|
+
if (Qn)
|
|
2195
2195
|
return We;
|
|
2196
|
-
|
|
2196
|
+
Qn = 1;
|
|
2197
2197
|
var e = je, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2198
2198
|
function i(c, d, s) {
|
|
2199
|
-
var f, l = {},
|
|
2200
|
-
s !== void 0 && (
|
|
2199
|
+
var f, l = {}, w = null, h = null;
|
|
2200
|
+
s !== void 0 && (w = "" + s), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
2201
2201
|
for (f in d)
|
|
2202
2202
|
o.call(d, f) && !n.hasOwnProperty(f) && (l[f] = d[f]);
|
|
2203
2203
|
if (c && c.defaultProps)
|
|
2204
2204
|
for (f in d = c.defaultProps, d)
|
|
2205
2205
|
l[f] === void 0 && (l[f] = d[f]);
|
|
2206
|
-
return { $$typeof: r, type: c, key:
|
|
2206
|
+
return { $$typeof: r, type: c, key: w, ref: h, props: l, _owner: a.current };
|
|
2207
2207
|
}
|
|
2208
2208
|
return We.Fragment = t, We.jsx = i, We.jsxs = i, We;
|
|
2209
2209
|
}
|
|
@@ -2217,27 +2217,27 @@ var Xe = {};
|
|
|
2217
2217
|
* This source code is licensed under the MIT license found in the
|
|
2218
2218
|
* LICENSE file in the root directory of this source tree.
|
|
2219
2219
|
*/
|
|
2220
|
-
var
|
|
2220
|
+
var Zn;
|
|
2221
2221
|
function Oo() {
|
|
2222
|
-
return
|
|
2223
|
-
var e = je, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"),
|
|
2224
|
-
function
|
|
2222
|
+
return Zn || (Zn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2223
|
+
var e = je, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, _ = "@@iterator";
|
|
2224
|
+
function D(u) {
|
|
2225
2225
|
if (u === null || typeof u != "object")
|
|
2226
2226
|
return null;
|
|
2227
|
-
var p =
|
|
2227
|
+
var p = b && u[b] || u[_];
|
|
2228
2228
|
return typeof p == "function" ? p : null;
|
|
2229
2229
|
}
|
|
2230
2230
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2231
2231
|
function S(u) {
|
|
2232
2232
|
{
|
|
2233
|
-
for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0),
|
|
2234
|
-
v[
|
|
2233
|
+
for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0), E = 1; E < p; E++)
|
|
2234
|
+
v[E - 1] = arguments[E];
|
|
2235
2235
|
T("error", u, v);
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
2238
|
function T(u, p, v) {
|
|
2239
2239
|
{
|
|
2240
|
-
var
|
|
2240
|
+
var E = C.ReactDebugCurrentFrame, O = E.getStackAddendum();
|
|
2241
2241
|
O !== "" && (p += "%s", v = v.concat([O]));
|
|
2242
2242
|
var x = v.map(function(g) {
|
|
2243
2243
|
return String(g);
|
|
@@ -2245,15 +2245,15 @@ function Oo() {
|
|
|
2245
2245
|
x.unshift("Warning: " + p), Function.prototype.apply.call(console[u], console, x);
|
|
2246
2246
|
}
|
|
2247
2247
|
}
|
|
2248
|
-
var m = !1, I = !1, y = !1, A = !1,
|
|
2249
|
-
|
|
2248
|
+
var m = !1, I = !1, y = !1, A = !1, W = !1, U;
|
|
2249
|
+
U = Symbol.for("react.module.reference");
|
|
2250
2250
|
function N(u) {
|
|
2251
|
-
return !!(typeof u == "string" || typeof u == "function" || u === o || u === n ||
|
|
2251
|
+
return !!(typeof u == "string" || typeof u == "function" || u === o || u === n || W || u === a || u === s || u === f || A || u === h || m || I || y || typeof u == "object" && u !== null && (u.$$typeof === w || u.$$typeof === l || u.$$typeof === i || u.$$typeof === c || u.$$typeof === d || u.$$typeof === U || u.getModuleId !== void 0));
|
|
2252
2252
|
}
|
|
2253
2253
|
function J(u, p, v) {
|
|
2254
|
-
var
|
|
2255
|
-
if (
|
|
2256
|
-
return
|
|
2254
|
+
var E = u.displayName;
|
|
2255
|
+
if (E)
|
|
2256
|
+
return E;
|
|
2257
2257
|
var O = p.displayName || p.name || "";
|
|
2258
2258
|
return O !== "" ? v + "(" + O + ")" : v;
|
|
2259
2259
|
}
|
|
@@ -2292,9 +2292,9 @@ function Oo() {
|
|
|
2292
2292
|
case d:
|
|
2293
2293
|
return J(u, u.render, "ForwardRef");
|
|
2294
2294
|
case l:
|
|
2295
|
-
var
|
|
2296
|
-
return
|
|
2297
|
-
case
|
|
2295
|
+
var E = u.displayName || null;
|
|
2296
|
+
return E !== null ? E : B(u.type) || "Memo";
|
|
2297
|
+
case w: {
|
|
2298
2298
|
var O = u, x = O._payload, g = O._init;
|
|
2299
2299
|
try {
|
|
2300
2300
|
return B(g(x));
|
|
@@ -2305,14 +2305,14 @@ function Oo() {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
return null;
|
|
2307
2307
|
}
|
|
2308
|
-
var G = Object.assign, z = 0,
|
|
2308
|
+
var G = Object.assign, z = 0, Ue, le, se, Oe, Pe, xe, Ne;
|
|
2309
2309
|
function Ie() {
|
|
2310
2310
|
}
|
|
2311
2311
|
Ie.__reactDisabledLog = !0;
|
|
2312
2312
|
function mt() {
|
|
2313
2313
|
{
|
|
2314
2314
|
if (z === 0) {
|
|
2315
|
-
|
|
2315
|
+
Ue = console.log, le = console.info, se = console.warn, Oe = console.error, Pe = console.group, xe = console.groupCollapsed, Ne = console.groupEnd;
|
|
2316
2316
|
var u = {
|
|
2317
2317
|
configurable: !0,
|
|
2318
2318
|
enumerable: !0,
|
|
@@ -2342,7 +2342,7 @@ function Oo() {
|
|
|
2342
2342
|
};
|
|
2343
2343
|
Object.defineProperties(console, {
|
|
2344
2344
|
log: G({}, u, {
|
|
2345
|
-
value:
|
|
2345
|
+
value: Ue
|
|
2346
2346
|
}),
|
|
2347
2347
|
info: G({}, u, {
|
|
2348
2348
|
value: le
|
|
@@ -2354,7 +2354,7 @@ function Oo() {
|
|
|
2354
2354
|
value: Oe
|
|
2355
2355
|
}),
|
|
2356
2356
|
group: G({}, u, {
|
|
2357
|
-
value:
|
|
2357
|
+
value: Pe
|
|
2358
2358
|
}),
|
|
2359
2359
|
groupCollapsed: G({}, u, {
|
|
2360
2360
|
value: xe
|
|
@@ -2368,14 +2368,14 @@ function Oo() {
|
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
2370
|
var fe = C.ReactCurrentDispatcher, qe;
|
|
2371
|
-
function
|
|
2371
|
+
function k(u, p, v) {
|
|
2372
2372
|
{
|
|
2373
2373
|
if (qe === void 0)
|
|
2374
2374
|
try {
|
|
2375
2375
|
throw Error();
|
|
2376
2376
|
} catch (O) {
|
|
2377
|
-
var
|
|
2378
|
-
qe =
|
|
2377
|
+
var E = O.stack.trim().match(/\n( *(at )?)/);
|
|
2378
|
+
qe = E && E[1] || "";
|
|
2379
2379
|
}
|
|
2380
2380
|
return `
|
|
2381
2381
|
` + qe + u;
|
|
@@ -2383,10 +2383,10 @@ function Oo() {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
var q = !1, L;
|
|
2385
2385
|
{
|
|
2386
|
-
var
|
|
2387
|
-
L = new
|
|
2386
|
+
var X = typeof WeakMap == "function" ? WeakMap : Map;
|
|
2387
|
+
L = new X();
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function H(u, p) {
|
|
2390
2390
|
if (!u || q)
|
|
2391
2391
|
return "";
|
|
2392
2392
|
{
|
|
@@ -2394,7 +2394,7 @@ function Oo() {
|
|
|
2394
2394
|
if (v !== void 0)
|
|
2395
2395
|
return v;
|
|
2396
2396
|
}
|
|
2397
|
-
var
|
|
2397
|
+
var E;
|
|
2398
2398
|
q = !0;
|
|
2399
2399
|
var O = Error.prepareStackTrace;
|
|
2400
2400
|
Error.prepareStackTrace = void 0;
|
|
@@ -2413,14 +2413,14 @@ function Oo() {
|
|
|
2413
2413
|
try {
|
|
2414
2414
|
Reflect.construct(g, []);
|
|
2415
2415
|
} catch (pe) {
|
|
2416
|
-
|
|
2416
|
+
E = pe;
|
|
2417
2417
|
}
|
|
2418
2418
|
Reflect.construct(u, [], g);
|
|
2419
2419
|
} else {
|
|
2420
2420
|
try {
|
|
2421
2421
|
g.call();
|
|
2422
2422
|
} catch (pe) {
|
|
2423
|
-
|
|
2423
|
+
E = pe;
|
|
2424
2424
|
}
|
|
2425
2425
|
u.call(g.prototype);
|
|
2426
2426
|
}
|
|
@@ -2428,14 +2428,14 @@ function Oo() {
|
|
|
2428
2428
|
try {
|
|
2429
2429
|
throw Error();
|
|
2430
2430
|
} catch (pe) {
|
|
2431
|
-
|
|
2431
|
+
E = pe;
|
|
2432
2432
|
}
|
|
2433
2433
|
u();
|
|
2434
2434
|
}
|
|
2435
2435
|
} catch (pe) {
|
|
2436
|
-
if (pe &&
|
|
2436
|
+
if (pe && E && typeof pe.stack == "string") {
|
|
2437
2437
|
for (var R = pe.stack.split(`
|
|
2438
|
-
`), Q =
|
|
2438
|
+
`), Q = E.stack.split(`
|
|
2439
2439
|
`), $ = R.length - 1, V = Q.length - 1; $ >= 1 && V >= 0 && R[$] !== Q[V]; )
|
|
2440
2440
|
V--;
|
|
2441
2441
|
for (; $ >= 1 && V >= 0; $--, V--)
|
|
@@ -2454,11 +2454,11 @@ function Oo() {
|
|
|
2454
2454
|
} finally {
|
|
2455
2455
|
q = !1, fe.current = x, wt(), Error.prepareStackTrace = O;
|
|
2456
2456
|
}
|
|
2457
|
-
var De = u ? u.displayName || u.name : "",
|
|
2458
|
-
return typeof u == "function" && L.set(u,
|
|
2457
|
+
var De = u ? u.displayName || u.name : "", yn = De ? k(De) : "";
|
|
2458
|
+
return typeof u == "function" && L.set(u, yn), yn;
|
|
2459
2459
|
}
|
|
2460
2460
|
function Ee(u, p, v) {
|
|
2461
|
-
return
|
|
2461
|
+
return H(u, !1);
|
|
2462
2462
|
}
|
|
2463
2463
|
function me(u) {
|
|
2464
2464
|
var p = u.prototype;
|
|
@@ -2468,14 +2468,14 @@ function Oo() {
|
|
|
2468
2468
|
if (u == null)
|
|
2469
2469
|
return "";
|
|
2470
2470
|
if (typeof u == "function")
|
|
2471
|
-
return
|
|
2471
|
+
return H(u, me(u));
|
|
2472
2472
|
if (typeof u == "string")
|
|
2473
|
-
return
|
|
2473
|
+
return k(u);
|
|
2474
2474
|
switch (u) {
|
|
2475
2475
|
case s:
|
|
2476
|
-
return
|
|
2476
|
+
return k("Suspense");
|
|
2477
2477
|
case f:
|
|
2478
|
-
return
|
|
2478
|
+
return k("SuspenseList");
|
|
2479
2479
|
}
|
|
2480
2480
|
if (typeof u == "object")
|
|
2481
2481
|
switch (u.$$typeof) {
|
|
@@ -2483,8 +2483,8 @@ function Oo() {
|
|
|
2483
2483
|
return Ee(u.render);
|
|
2484
2484
|
case l:
|
|
2485
2485
|
return ue(u.type, p, v);
|
|
2486
|
-
case
|
|
2487
|
-
var
|
|
2486
|
+
case w: {
|
|
2487
|
+
var E = u, O = E._payload, x = E._init;
|
|
2488
2488
|
try {
|
|
2489
2489
|
return ue(x(O), p, v);
|
|
2490
2490
|
} catch {
|
|
@@ -2501,7 +2501,7 @@ function Oo() {
|
|
|
2501
2501
|
} else
|
|
2502
2502
|
Be.setExtraStackFrame(null);
|
|
2503
2503
|
}
|
|
2504
|
-
function Z(u, p, v,
|
|
2504
|
+
function Z(u, p, v, E, O) {
|
|
2505
2505
|
{
|
|
2506
2506
|
var x = Function.call.bind(de);
|
|
2507
2507
|
for (var g in u)
|
|
@@ -2509,14 +2509,14 @@ function Oo() {
|
|
|
2509
2509
|
var R = void 0;
|
|
2510
2510
|
try {
|
|
2511
2511
|
if (typeof u[g] != "function") {
|
|
2512
|
-
var Q = Error((
|
|
2512
|
+
var Q = Error((E || "React class") + ": " + v + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2513
2513
|
throw Q.name = "Invariant Violation", Q;
|
|
2514
2514
|
}
|
|
2515
|
-
R = u[g](p, g,
|
|
2515
|
+
R = u[g](p, g, E, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2516
2516
|
} catch ($) {
|
|
2517
2517
|
R = $;
|
|
2518
2518
|
}
|
|
2519
|
-
R && !(R instanceof Error) && (Se(O), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
2519
|
+
R && !(R instanceof Error) && (Se(O), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", v, g, typeof R), Se(null)), R instanceof Error && !(R.message in $e) && ($e[R.message] = !0, Se(O), S("Failed %s type: %s", v, R.message), Se(null));
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
@@ -2532,24 +2532,24 @@ function Oo() {
|
|
|
2532
2532
|
}
|
|
2533
2533
|
function xr(u) {
|
|
2534
2534
|
try {
|
|
2535
|
-
return
|
|
2535
|
+
return cn(u), !1;
|
|
2536
2536
|
} catch {
|
|
2537
2537
|
return !0;
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function cn(u) {
|
|
2541
2541
|
return "" + u;
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2543
|
+
function ln(u) {
|
|
2544
2544
|
if (xr(u))
|
|
2545
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Or(u)),
|
|
2545
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Or(u)), cn(u);
|
|
2546
2546
|
}
|
|
2547
2547
|
var Ve = C.ReactCurrentOwner, Fr = {
|
|
2548
2548
|
key: !0,
|
|
2549
2549
|
ref: !0,
|
|
2550
2550
|
__self: !0,
|
|
2551
2551
|
__source: !0
|
|
2552
|
-
},
|
|
2552
|
+
}, fn, dn, _t;
|
|
2553
2553
|
_t = {};
|
|
2554
2554
|
function Dr(u) {
|
|
2555
2555
|
if (de.call(u, "ref")) {
|
|
@@ -2576,7 +2576,7 @@ function Oo() {
|
|
|
2576
2576
|
function Lr(u, p) {
|
|
2577
2577
|
{
|
|
2578
2578
|
var v = function() {
|
|
2579
|
-
|
|
2579
|
+
fn || (fn = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
2580
2580
|
};
|
|
2581
2581
|
v.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
2582
2582
|
get: v,
|
|
@@ -2587,7 +2587,7 @@ function Oo() {
|
|
|
2587
2587
|
function jr(u, p) {
|
|
2588
2588
|
{
|
|
2589
2589
|
var v = function() {
|
|
2590
|
-
|
|
2590
|
+
dn || (dn = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
2591
2591
|
};
|
|
2592
2592
|
v.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
2593
2593
|
get: v,
|
|
@@ -2595,7 +2595,7 @@ function Oo() {
|
|
|
2595
2595
|
});
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
var
|
|
2598
|
+
var Ur = function(u, p, v, E, O, x, g) {
|
|
2599
2599
|
var R = {
|
|
2600
2600
|
$$typeof: r,
|
|
2601
2601
|
type: u,
|
|
@@ -2613,7 +2613,7 @@ function Oo() {
|
|
|
2613
2613
|
configurable: !1,
|
|
2614
2614
|
enumerable: !1,
|
|
2615
2615
|
writable: !1,
|
|
2616
|
-
value:
|
|
2616
|
+
value: E
|
|
2617
2617
|
}), Object.defineProperty(R, "_source", {
|
|
2618
2618
|
configurable: !1,
|
|
2619
2619
|
enumerable: !1,
|
|
@@ -2621,10 +2621,10 @@ function Oo() {
|
|
|
2621
2621
|
value: O
|
|
2622
2622
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
2623
2623
|
};
|
|
2624
|
-
function
|
|
2624
|
+
function Pr(u, p, v, E, O) {
|
|
2625
2625
|
{
|
|
2626
2626
|
var x, g = {}, R = null, Q = null;
|
|
2627
|
-
v !== void 0 && (
|
|
2627
|
+
v !== void 0 && (ln(v), R = "" + v), kr(p) && (ln(p.key), R = "" + p.key), Dr(p) && (Q = p.ref, Ar(p, O));
|
|
2628
2628
|
for (x in p)
|
|
2629
2629
|
de.call(p, x) && !Fr.hasOwnProperty(x) && (g[x] = p[x]);
|
|
2630
2630
|
if (u && u.defaultProps) {
|
|
@@ -2636,23 +2636,23 @@ function Oo() {
|
|
|
2636
2636
|
var V = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
2637
2637
|
R && Lr(g, V), Q && jr(g, V);
|
|
2638
2638
|
}
|
|
2639
|
-
return
|
|
2639
|
+
return Ur(u, R, Q, O, E, Ve.current, g);
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
var yt = C.ReactCurrentOwner,
|
|
2642
|
+
var yt = C.ReactCurrentOwner, pn = C.ReactDebugCurrentFrame;
|
|
2643
2643
|
function Fe(u) {
|
|
2644
2644
|
if (u) {
|
|
2645
2645
|
var p = u._owner, v = ue(u.type, u._source, p ? p.type : null);
|
|
2646
|
-
|
|
2646
|
+
pn.setExtraStackFrame(v);
|
|
2647
2647
|
} else
|
|
2648
|
-
|
|
2648
|
+
pn.setExtraStackFrame(null);
|
|
2649
2649
|
}
|
|
2650
2650
|
var bt;
|
|
2651
2651
|
bt = !1;
|
|
2652
2652
|
function Et(u) {
|
|
2653
2653
|
return typeof u == "object" && u !== null && u.$$typeof === r;
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function hn() {
|
|
2656
2656
|
{
|
|
2657
2657
|
if (yt.current) {
|
|
2658
2658
|
var u = B(yt.current.type);
|
|
@@ -2675,10 +2675,10 @@ Check your code at ` + p + ":" + v + ".";
|
|
|
2675
2675
|
return "";
|
|
2676
2676
|
}
|
|
2677
2677
|
}
|
|
2678
|
-
var
|
|
2678
|
+
var vn = {};
|
|
2679
2679
|
function Ir(u) {
|
|
2680
2680
|
{
|
|
2681
|
-
var p =
|
|
2681
|
+
var p = hn();
|
|
2682
2682
|
if (!p) {
|
|
2683
2683
|
var v = typeof u == "string" ? u : u.displayName || u.name;
|
|
2684
2684
|
v && (p = `
|
|
@@ -2688,35 +2688,35 @@ Check the top-level render call using <` + v + ">.");
|
|
|
2688
2688
|
return p;
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
|
-
function
|
|
2691
|
+
function mn(u, p) {
|
|
2692
2692
|
{
|
|
2693
2693
|
if (!u._store || u._store.validated || u.key != null)
|
|
2694
2694
|
return;
|
|
2695
2695
|
u._store.validated = !0;
|
|
2696
2696
|
var v = Ir(p);
|
|
2697
|
-
if (
|
|
2697
|
+
if (vn[v])
|
|
2698
2698
|
return;
|
|
2699
|
-
|
|
2700
|
-
var
|
|
2701
|
-
u && u._owner && u._owner !== yt.current && (
|
|
2699
|
+
vn[v] = !0;
|
|
2700
|
+
var E = "";
|
|
2701
|
+
u && u._owner && u._owner !== yt.current && (E = " It was passed a child from " + B(u._owner.type) + "."), Fe(u), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, E), Fe(null);
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function wn(u, p) {
|
|
2705
2705
|
{
|
|
2706
2706
|
if (typeof u != "object")
|
|
2707
2707
|
return;
|
|
2708
2708
|
if (Re(u))
|
|
2709
2709
|
for (var v = 0; v < u.length; v++) {
|
|
2710
|
-
var
|
|
2711
|
-
Et(
|
|
2710
|
+
var E = u[v];
|
|
2711
|
+
Et(E) && mn(E, p);
|
|
2712
2712
|
}
|
|
2713
2713
|
else if (Et(u))
|
|
2714
2714
|
u._store && (u._store.validated = !0);
|
|
2715
2715
|
else if (u) {
|
|
2716
|
-
var O =
|
|
2716
|
+
var O = D(u);
|
|
2717
2717
|
if (typeof O == "function" && O !== u.entries)
|
|
2718
2718
|
for (var x = O.call(u), g; !(g = x.next()).done; )
|
|
2719
|
-
Et(g.value) &&
|
|
2719
|
+
Et(g.value) && mn(g.value, p);
|
|
2720
2720
|
}
|
|
2721
2721
|
}
|
|
2722
2722
|
}
|
|
@@ -2733,8 +2733,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
2733
2733
|
else
|
|
2734
2734
|
return;
|
|
2735
2735
|
if (v) {
|
|
2736
|
-
var
|
|
2737
|
-
Z(v, u.props, "prop",
|
|
2736
|
+
var E = B(p);
|
|
2737
|
+
Z(v, u.props, "prop", E, u);
|
|
2738
2738
|
} else if (p.PropTypes !== void 0 && !bt) {
|
|
2739
2739
|
bt = !0;
|
|
2740
2740
|
var O = B(p);
|
|
@@ -2746,50 +2746,50 @@ Check the top-level render call using <` + v + ">.");
|
|
|
2746
2746
|
function $r(u) {
|
|
2747
2747
|
{
|
|
2748
2748
|
for (var p = Object.keys(u.props), v = 0; v < p.length; v++) {
|
|
2749
|
-
var
|
|
2750
|
-
if (
|
|
2751
|
-
Fe(u), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
2749
|
+
var E = p[v];
|
|
2750
|
+
if (E !== "children" && E !== "key") {
|
|
2751
|
+
Fe(u), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Fe(null);
|
|
2752
2752
|
break;
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
u.ref !== null && (Fe(u), S("Invalid attribute `ref` supplied to `React.Fragment`."), Fe(null));
|
|
2756
2756
|
}
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function _n(u, p, v, E, O, x) {
|
|
2759
2759
|
{
|
|
2760
2760
|
var g = N(u);
|
|
2761
2761
|
if (!g) {
|
|
2762
2762
|
var R = "";
|
|
2763
2763
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2764
2764
|
var Q = Nr(O);
|
|
2765
|
-
Q ? R += Q : R +=
|
|
2765
|
+
Q ? R += Q : R += hn();
|
|
2766
2766
|
var $;
|
|
2767
2767
|
u === null ? $ = "null" : Re(u) ? $ = "array" : u !== void 0 && u.$$typeof === r ? ($ = "<" + (B(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof u, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, R);
|
|
2768
2768
|
}
|
|
2769
|
-
var V =
|
|
2769
|
+
var V = Pr(u, p, v, O, x);
|
|
2770
2770
|
if (V == null)
|
|
2771
2771
|
return V;
|
|
2772
2772
|
if (g) {
|
|
2773
2773
|
var ae = p.children;
|
|
2774
2774
|
if (ae !== void 0)
|
|
2775
|
-
if (
|
|
2775
|
+
if (E)
|
|
2776
2776
|
if (Re(ae)) {
|
|
2777
2777
|
for (var De = 0; De < ae.length; De++)
|
|
2778
|
-
|
|
2778
|
+
wn(ae[De], u);
|
|
2779
2779
|
Object.freeze && Object.freeze(ae);
|
|
2780
2780
|
} else
|
|
2781
2781
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2782
2782
|
else
|
|
2783
|
-
|
|
2783
|
+
wn(ae, u);
|
|
2784
2784
|
}
|
|
2785
2785
|
return u === o ? $r(V) : qr(V), V;
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
2788
|
function Br(u, p, v) {
|
|
2789
|
-
return
|
|
2789
|
+
return _n(u, p, v, !0);
|
|
2790
2790
|
}
|
|
2791
2791
|
function Vr(u, p, v) {
|
|
2792
|
-
return
|
|
2792
|
+
return _n(u, p, v, !1);
|
|
2793
2793
|
}
|
|
2794
2794
|
var Mr = Vr, Wr = Br;
|
|
2795
2795
|
Xe.Fragment = o, Xe.jsx = Mr, Xe.jsxs = Wr;
|
|
@@ -2798,7 +2798,7 @@ Check the top-level render call using <` + v + ">.");
|
|
|
2798
2798
|
(function(e) {
|
|
2799
2799
|
process.env.NODE_ENV === "production" ? e.exports = Co() : e.exports = Oo();
|
|
2800
2800
|
})(Tr);
|
|
2801
|
-
const xo = Tr.exports.jsx, re =
|
|
2801
|
+
const xo = Tr.exports.jsx, re = er(null), Lo = ({
|
|
2802
2802
|
url: e = "",
|
|
2803
2803
|
children: r
|
|
2804
2804
|
}) => {
|
|
@@ -2821,26 +2821,37 @@ const xo = Tr.exports.jsx, re = Zn(null), Lo = ({
|
|
|
2821
2821
|
const {
|
|
2822
2822
|
url: r,
|
|
2823
2823
|
auth: t
|
|
2824
|
-
} = ne(re), {
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
}
|
|
2824
|
+
} = ne(re), [o, a] = F(null), n = M(() => {
|
|
2825
|
+
const w = document.cookie.split(";").find((h) => h.trim().startsWith("user_id="));
|
|
2826
|
+
if (w) {
|
|
2827
|
+
const h = w.split("=")[1];
|
|
2828
|
+
a(h && h !== "Guest" ? h : null);
|
|
2829
|
+
} else
|
|
2830
|
+
a(null);
|
|
2831
|
+
}, []);
|
|
2832
|
+
en(() => {
|
|
2833
|
+
n();
|
|
2834
|
+
}, []);
|
|
2835
|
+
const {
|
|
2836
|
+
data: i,
|
|
2837
|
+
error: c,
|
|
2838
|
+
isValidating: d,
|
|
2839
|
+
mutate: s
|
|
2840
|
+
} = Ze(o ? `${r}/api/method/frappe.auth.get_logged_user` : null, () => t.getLoggedInUser(), e), f = M(async (w, h) => t.loginWithUsernamePassword({
|
|
2841
|
+
username: w,
|
|
2842
|
+
password: h
|
|
2843
|
+
}).then((b) => {
|
|
2844
|
+
n();
|
|
2845
|
+
}), []), l = M(async () => t.logout().then(() => s(null)).then(() => a(null)), []);
|
|
2835
2846
|
return {
|
|
2836
|
-
currentUser:
|
|
2837
|
-
isValidating:
|
|
2838
|
-
error:
|
|
2839
|
-
login:
|
|
2840
|
-
logout:
|
|
2841
|
-
updateCurrentUser:
|
|
2847
|
+
currentUser: i,
|
|
2848
|
+
isValidating: d,
|
|
2849
|
+
error: c,
|
|
2850
|
+
login: f,
|
|
2851
|
+
logout: l,
|
|
2852
|
+
updateCurrentUser: s
|
|
2842
2853
|
};
|
|
2843
|
-
},
|
|
2854
|
+
}, Uo = (e, r, t, o) => {
|
|
2844
2855
|
const {
|
|
2845
2856
|
db: a
|
|
2846
2857
|
} = ne(re);
|
|
@@ -2855,7 +2866,7 @@ const xo = Tr.exports.jsx, re = Zn(null), Lo = ({
|
|
|
2855
2866
|
r += "order_by=" + n + "&";
|
|
2856
2867
|
}
|
|
2857
2868
|
return e != null && e.asDict && (r += "as_dict=" + e.asDict), r;
|
|
2858
|
-
},
|
|
2869
|
+
}, Po = (e, r, t, o) => {
|
|
2859
2870
|
const {
|
|
2860
2871
|
db: a
|
|
2861
2872
|
} = ne(re);
|
|
@@ -2865,11 +2876,11 @@ const xo = Tr.exports.jsx, re = Zn(null), Lo = ({
|
|
|
2865
2876
|
}, No = () => {
|
|
2866
2877
|
const {
|
|
2867
2878
|
db: e
|
|
2868
|
-
} = ne(re), [r, t] =
|
|
2879
|
+
} = ne(re), [r, t] = F(!1), [o, a] = F(null), [n, i] = F(!1), c = M(() => {
|
|
2869
2880
|
t(!1), a(null), i(!1);
|
|
2870
2881
|
}, []);
|
|
2871
2882
|
return {
|
|
2872
|
-
createDoc:
|
|
2883
|
+
createDoc: M(async (s, f) => (a(null), i(!1), t(!0), e.createDoc(s, f).then((l) => (t(!1), i(!0), l)).catch((l) => {
|
|
2873
2884
|
throw t(!1), i(!1), a(l), l;
|
|
2874
2885
|
})), []),
|
|
2875
2886
|
loading: r,
|
|
@@ -2880,12 +2891,12 @@ const xo = Tr.exports.jsx, re = Zn(null), Lo = ({
|
|
|
2880
2891
|
}, Io = () => {
|
|
2881
2892
|
const {
|
|
2882
2893
|
db: e
|
|
2883
|
-
} = ne(re), [r, t] =
|
|
2894
|
+
} = ne(re), [r, t] = F(!1), [o, a] = F(null), [n, i] = F(!1), c = M(() => {
|
|
2884
2895
|
t(!1), a(null), i(!1);
|
|
2885
2896
|
}, []);
|
|
2886
2897
|
return {
|
|
2887
|
-
updateDoc:
|
|
2888
|
-
throw t(!1), i(!1), a(
|
|
2898
|
+
updateDoc: M(async (s, f, l) => (a(null), i(!1), t(!0), e.updateDoc(s, f, l).then((w) => (t(!1), i(!0), w)).catch((w) => {
|
|
2899
|
+
throw t(!1), i(!1), a(w), w;
|
|
2889
2900
|
})), []),
|
|
2890
2901
|
loading: r,
|
|
2891
2902
|
error: o,
|
|
@@ -2895,11 +2906,11 @@ const xo = Tr.exports.jsx, re = Zn(null), Lo = ({
|
|
|
2895
2906
|
}, qo = () => {
|
|
2896
2907
|
const {
|
|
2897
2908
|
db: e
|
|
2898
|
-
} = ne(re), [r, t] =
|
|
2909
|
+
} = ne(re), [r, t] = F(!1), [o, a] = F(null), [n, i] = F(!1), c = M(() => {
|
|
2899
2910
|
t(!1), a(null), i(!1);
|
|
2900
2911
|
}, []);
|
|
2901
2912
|
return {
|
|
2902
|
-
deleteDoc:
|
|
2913
|
+
deleteDoc: M(async (s, f) => (a(null), i(!1), t(!0), e.deleteDoc(s, f).then((l) => (t(!1), i(!0), l)).catch((l) => {
|
|
2903
2914
|
throw t(!1), i(!1), a(l), l;
|
|
2904
2915
|
})), []),
|
|
2905
2916
|
loading: r,
|
|
@@ -2944,11 +2955,11 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
|
|
|
2944
2955
|
}, Bo = (e) => {
|
|
2945
2956
|
const {
|
|
2946
2957
|
call: r
|
|
2947
|
-
} = ne(re), [t, o] =
|
|
2958
|
+
} = ne(re), [t, o] = F(null), [a, n] = F(!1), [i, c] = F(null), [d, s] = F(!1), f = M(() => {
|
|
2948
2959
|
o(null), n(!1), c(null), s(!1);
|
|
2949
2960
|
}, []);
|
|
2950
2961
|
return {
|
|
2951
|
-
call:
|
|
2962
|
+
call: M(async (w) => (c(null), s(!1), n(!0), o(null), r.post(e, w).then((h) => (o(h), n(!1), s(!0), h)).catch((h) => {
|
|
2952
2963
|
throw n(!1), s(!1), c(h), h;
|
|
2953
2964
|
})), []),
|
|
2954
2965
|
result: t,
|
|
@@ -2960,11 +2971,11 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
|
|
|
2960
2971
|
}, Vo = (e) => {
|
|
2961
2972
|
const {
|
|
2962
2973
|
call: r
|
|
2963
|
-
} = ne(re), [t, o] =
|
|
2974
|
+
} = ne(re), [t, o] = F(null), [a, n] = F(!1), [i, c] = F(null), [d, s] = F(!1), f = M(() => {
|
|
2964
2975
|
o(null), n(!1), c(null), s(!1);
|
|
2965
2976
|
}, []);
|
|
2966
2977
|
return {
|
|
2967
|
-
call:
|
|
2978
|
+
call: M(async (w) => (c(null), s(!1), n(!0), o(null), r.put(e, w).then((h) => (o(h), n(!1), s(!0), h)).catch((h) => {
|
|
2968
2979
|
throw n(!1), s(!1), c(h), h;
|
|
2969
2980
|
})), []),
|
|
2970
2981
|
result: t,
|
|
@@ -2976,11 +2987,11 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
|
|
|
2976
2987
|
}, Mo = (e) => {
|
|
2977
2988
|
const {
|
|
2978
2989
|
call: r
|
|
2979
|
-
} = ne(re), [t, o] =
|
|
2990
|
+
} = ne(re), [t, o] = F(null), [a, n] = F(!1), [i, c] = F(null), [d, s] = F(!1), f = M(() => {
|
|
2980
2991
|
o(null), n(!1), c(null), s(!1);
|
|
2981
2992
|
}, []);
|
|
2982
2993
|
return {
|
|
2983
|
-
call:
|
|
2994
|
+
call: M(async (w) => (c(null), s(!1), n(!0), o(null), r.delete(e, w).then((h) => (o(h), n(!1), s(!0), h)).catch((h) => {
|
|
2984
2995
|
throw n(!1), s(!1), c(h), h;
|
|
2985
2996
|
})), []),
|
|
2986
2997
|
result: t,
|
|
@@ -2992,9 +3003,9 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
|
|
|
2992
3003
|
}, Wo = () => {
|
|
2993
3004
|
const {
|
|
2994
3005
|
file: e
|
|
2995
|
-
} = ne(re), [r, t] =
|
|
3006
|
+
} = ne(re), [r, t] = F(0), [o, a] = F(!1), [n, i] = F(null), [c, d] = F(!1), s = M(async (l, w) => (f(), a(!0), e.uploadFile(l, w, (h, b) => t(Math.round(h / b * 100))).then((h) => (d(!0), t(100), a(!1), h.data.message)).catch((h) => {
|
|
2996
3007
|
throw console.error(h), i(h), a(!1), h;
|
|
2997
|
-
})), []), f =
|
|
3008
|
+
})), []), f = M(() => {
|
|
2998
3009
|
t(0), a(!1), i(null), d(!1);
|
|
2999
3010
|
}, []);
|
|
3000
3011
|
return {
|
|
@@ -3014,8 +3025,8 @@ const $o = (e, r, t = !1, o = !1, a, n) => {
|
|
|
3014
3025
|
filters: JSON.stringify(t != null ? t : [])
|
|
3015
3026
|
});
|
|
3016
3027
|
}, ko = (e, r) => {
|
|
3017
|
-
const [t, o] =
|
|
3018
|
-
return
|
|
3028
|
+
const [t, o] = F(e);
|
|
3029
|
+
return en(() => {
|
|
3019
3030
|
const a = setTimeout(() => {
|
|
3020
3031
|
o(e);
|
|
3021
3032
|
}, r);
|
|
@@ -3034,9 +3045,9 @@ export {
|
|
|
3034
3045
|
qo as useFrappeDeleteDoc,
|
|
3035
3046
|
Wo as useFrappeFileUpload,
|
|
3036
3047
|
Do as useFrappeGetCall,
|
|
3037
|
-
|
|
3048
|
+
Uo as useFrappeGetDoc,
|
|
3038
3049
|
$o as useFrappeGetDocCount,
|
|
3039
|
-
|
|
3050
|
+
Po as useFrappeGetDocList,
|
|
3040
3051
|
Bo as useFrappePostCall,
|
|
3041
3052
|
Vo as useFrappePutCall,
|
|
3042
3053
|
Io as useFrappeUpdateDoc,
|