frappe-react-sdk 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frappe-react-sdk.es.js +371 -362
- package/dist/frappe-react-sdk.umd.js +2 -2
- package/dist/lib/index.d.ts +5 -2
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ms = Object.defineProperty;
|
|
2
2
|
var Ws = (n, e, t) => e in n ? Ms(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import qe, { createContext as Ur, useContext as ee, useEffect as Xe, useLayoutEffect as Hs, useRef as
|
|
5
|
-
var
|
|
3
|
+
var Fe = (n, e, t) => (Ws(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import qe, { createContext as Ur, useContext as ee, useEffect as Xe, useLayoutEffect as Hs, useRef as Be, useMemo as qr, useCallback as M, useDebugValue as Ys, useState as P } from "react";
|
|
5
|
+
var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Yt = {}, rt = {}, ft = {}, le = F && F.__assign || function() {
|
|
6
6
|
return le = Object.assign || function(n) {
|
|
7
7
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
8
8
|
e = arguments[t];
|
|
@@ -11,7 +11,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
11
11
|
}
|
|
12
12
|
return n;
|
|
13
13
|
}, le.apply(this, arguments);
|
|
14
|
-
}, wt =
|
|
14
|
+
}, wt = F && F.__awaiter || function(n, e, t, r) {
|
|
15
15
|
function s(i) {
|
|
16
16
|
return i instanceof t ? i : new t(function(o) {
|
|
17
17
|
o(i);
|
|
@@ -37,7 +37,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
37
37
|
}
|
|
38
38
|
a((r = r.apply(n, e || [])).next());
|
|
39
39
|
});
|
|
40
|
-
}, Et =
|
|
40
|
+
}, Et = F && F.__generator || function(n, e) {
|
|
41
41
|
var t = { label: 0, sent: function() {
|
|
42
42
|
if (i[0] & 1)
|
|
43
43
|
throw i[1];
|
|
@@ -155,7 +155,7 @@ var Js = function() {
|
|
|
155
155
|
}, n;
|
|
156
156
|
}();
|
|
157
157
|
ft.FrappeCall = Js;
|
|
158
|
-
var ht = {}, z =
|
|
158
|
+
var ht = {}, z = F && F.__assign || function() {
|
|
159
159
|
return z = Object.assign || function(n) {
|
|
160
160
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
161
161
|
e = arguments[t];
|
|
@@ -164,7 +164,7 @@ var ht = {}, z = B && B.__assign || function() {
|
|
|
164
164
|
}
|
|
165
165
|
return n;
|
|
166
166
|
}, z.apply(this, arguments);
|
|
167
|
-
}, Ie =
|
|
167
|
+
}, Ie = F && F.__awaiter || function(n, e, t, r) {
|
|
168
168
|
function s(i) {
|
|
169
169
|
return i instanceof t ? i : new t(function(o) {
|
|
170
170
|
o(i);
|
|
@@ -190,7 +190,7 @@ var ht = {}, z = B && B.__assign || function() {
|
|
|
190
190
|
}
|
|
191
191
|
a((r = r.apply(n, e || [])).next());
|
|
192
192
|
});
|
|
193
|
-
}, Ue =
|
|
193
|
+
}, Ue = F && F.__generator || function(n, e) {
|
|
194
194
|
var t = { label: 0, sent: function() {
|
|
195
195
|
if (i[0] & 1)
|
|
196
196
|
throw i[1];
|
|
@@ -362,7 +362,7 @@ var zs = function() {
|
|
|
362
362
|
}, n;
|
|
363
363
|
}();
|
|
364
364
|
ht.FrappeDB = zs;
|
|
365
|
-
var dt = {}, Pt =
|
|
365
|
+
var dt = {}, Pt = F && F.__assign || function() {
|
|
366
366
|
return Pt = Object.assign || function(n) {
|
|
367
367
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
368
368
|
e = arguments[t];
|
|
@@ -371,7 +371,7 @@ var dt = {}, Pt = B && B.__assign || function() {
|
|
|
371
371
|
}
|
|
372
372
|
return n;
|
|
373
373
|
}, Pt.apply(this, arguments);
|
|
374
|
-
}, Ks =
|
|
374
|
+
}, Ks = F && F.__awaiter || function(n, e, t, r) {
|
|
375
375
|
function s(i) {
|
|
376
376
|
return i instanceof t ? i : new t(function(o) {
|
|
377
377
|
o(i);
|
|
@@ -397,7 +397,7 @@ var dt = {}, Pt = B && B.__assign || function() {
|
|
|
397
397
|
}
|
|
398
398
|
a((r = r.apply(n, e || [])).next());
|
|
399
399
|
});
|
|
400
|
-
}, Gs =
|
|
400
|
+
}, Gs = F && F.__generator || function(n, e) {
|
|
401
401
|
var t = { label: 0, sent: function() {
|
|
402
402
|
if (i[0] & 1)
|
|
403
403
|
throw i[1];
|
|
@@ -485,14 +485,14 @@ var Xs = function() {
|
|
|
485
485
|
}, n;
|
|
486
486
|
}();
|
|
487
487
|
dt.FrappeFileUpload = Xs;
|
|
488
|
-
var Ge = {}, Vr = { exports: {} },
|
|
488
|
+
var Ge = {}, Vr = { exports: {} }, Dn = { exports: {} }, jr = function(e, t) {
|
|
489
489
|
return function() {
|
|
490
490
|
for (var s = new Array(arguments.length), i = 0; i < s.length; i++)
|
|
491
491
|
s[i] = arguments[i];
|
|
492
492
|
return e.apply(t, s);
|
|
493
493
|
};
|
|
494
|
-
}, Qs = jr,
|
|
495
|
-
function
|
|
494
|
+
}, Qs = jr, ke = Object.prototype.toString;
|
|
495
|
+
function kn(n) {
|
|
496
496
|
return Array.isArray(n);
|
|
497
497
|
}
|
|
498
498
|
function gn(n) {
|
|
@@ -502,10 +502,10 @@ function Zs(n) {
|
|
|
502
502
|
return n !== null && !gn(n) && n.constructor !== null && !gn(n.constructor) && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
|
|
503
503
|
}
|
|
504
504
|
function $r(n) {
|
|
505
|
-
return
|
|
505
|
+
return ke.call(n) === "[object ArrayBuffer]";
|
|
506
506
|
}
|
|
507
507
|
function ei(n) {
|
|
508
|
-
return
|
|
508
|
+
return ke.call(n) === "[object FormData]";
|
|
509
509
|
}
|
|
510
510
|
function ti(n) {
|
|
511
511
|
var e;
|
|
@@ -521,28 +521,28 @@ function Mr(n) {
|
|
|
521
521
|
return n !== null && typeof n == "object";
|
|
522
522
|
}
|
|
523
523
|
function At(n) {
|
|
524
|
-
if (
|
|
524
|
+
if (ke.call(n) !== "[object Object]")
|
|
525
525
|
return !1;
|
|
526
526
|
var e = Object.getPrototypeOf(n);
|
|
527
527
|
return e === null || e === Object.prototype;
|
|
528
528
|
}
|
|
529
529
|
function si(n) {
|
|
530
|
-
return
|
|
530
|
+
return ke.call(n) === "[object Date]";
|
|
531
531
|
}
|
|
532
532
|
function ii(n) {
|
|
533
|
-
return
|
|
533
|
+
return ke.call(n) === "[object File]";
|
|
534
534
|
}
|
|
535
535
|
function oi(n) {
|
|
536
|
-
return
|
|
536
|
+
return ke.call(n) === "[object Blob]";
|
|
537
537
|
}
|
|
538
538
|
function Wr(n) {
|
|
539
|
-
return
|
|
539
|
+
return ke.call(n) === "[object Function]";
|
|
540
540
|
}
|
|
541
541
|
function ai(n) {
|
|
542
542
|
return Mr(n) && Wr(n.pipe);
|
|
543
543
|
}
|
|
544
544
|
function ui(n) {
|
|
545
|
-
return
|
|
545
|
+
return ke.call(n) === "[object URLSearchParams]";
|
|
546
546
|
}
|
|
547
547
|
function ci(n) {
|
|
548
548
|
return n.trim ? n.trim() : n.replace(/^\s+|\s+$/g, "");
|
|
@@ -552,7 +552,7 @@ function li() {
|
|
|
552
552
|
}
|
|
553
553
|
function Nn(n, e) {
|
|
554
554
|
if (!(n === null || typeof n > "u"))
|
|
555
|
-
if (typeof n != "object" && (n = [n]),
|
|
555
|
+
if (typeof n != "object" && (n = [n]), kn(n))
|
|
556
556
|
for (var t = 0, r = n.length; t < r; t++)
|
|
557
557
|
e.call(null, n[t], t, n);
|
|
558
558
|
else
|
|
@@ -562,7 +562,7 @@ function Nn(n, e) {
|
|
|
562
562
|
function _n() {
|
|
563
563
|
var n = {};
|
|
564
564
|
function e(s, i) {
|
|
565
|
-
At(n[i]) && At(s) ? n[i] = _n(n[i], s) : At(s) ? n[i] = _n({}, s) :
|
|
565
|
+
At(n[i]) && At(s) ? n[i] = _n(n[i], s) : At(s) ? n[i] = _n({}, s) : kn(s) ? n[i] = s.slice() : n[i] = s;
|
|
566
566
|
}
|
|
567
567
|
for (var t = 0, r = arguments.length; t < r; t++)
|
|
568
568
|
Nn(arguments[t], e);
|
|
@@ -577,7 +577,7 @@ function hi(n) {
|
|
|
577
577
|
return n.charCodeAt(0) === 65279 && (n = n.slice(1)), n;
|
|
578
578
|
}
|
|
579
579
|
var oe = {
|
|
580
|
-
isArray:
|
|
580
|
+
isArray: kn,
|
|
581
581
|
isArrayBuffer: $r,
|
|
582
582
|
isBuffer: Zs,
|
|
583
583
|
isFormData: ei,
|
|
@@ -625,10 +625,10 @@ var Hr = function(e, t, r) {
|
|
|
625
625
|
}
|
|
626
626
|
return e;
|
|
627
627
|
}, di = oe;
|
|
628
|
-
function
|
|
628
|
+
function Ft() {
|
|
629
629
|
this.handlers = [];
|
|
630
630
|
}
|
|
631
|
-
|
|
631
|
+
Ft.prototype.use = function(e, t, r) {
|
|
632
632
|
return this.handlers.push({
|
|
633
633
|
fulfilled: e,
|
|
634
634
|
rejected: t,
|
|
@@ -636,15 +636,15 @@ Bt.prototype.use = function(e, t, r) {
|
|
|
636
636
|
runWhen: r ? r.runWhen : null
|
|
637
637
|
}), this.handlers.length - 1;
|
|
638
638
|
};
|
|
639
|
-
|
|
639
|
+
Ft.prototype.eject = function(e) {
|
|
640
640
|
this.handlers[e] && (this.handlers[e] = null);
|
|
641
641
|
};
|
|
642
|
-
|
|
642
|
+
Ft.prototype.forEach = function(e) {
|
|
643
643
|
di.forEach(this.handlers, function(r) {
|
|
644
644
|
r !== null && e(r);
|
|
645
645
|
});
|
|
646
646
|
};
|
|
647
|
-
var pi =
|
|
647
|
+
var pi = Ft, vi = oe, yi = function(e, t) {
|
|
648
648
|
vi.forEach(e, function(s, i) {
|
|
649
649
|
i !== t && i.toUpperCase() === t.toUpperCase() && (e[t] = s, delete e[i]);
|
|
650
650
|
});
|
|
@@ -680,7 +680,7 @@ function zr() {
|
|
|
680
680
|
}, Jt;
|
|
681
681
|
}
|
|
682
682
|
var zt, Xn;
|
|
683
|
-
function
|
|
683
|
+
function mi() {
|
|
684
684
|
if (Xn)
|
|
685
685
|
return zt;
|
|
686
686
|
Xn = 1;
|
|
@@ -818,7 +818,7 @@ function Ri() {
|
|
|
818
818
|
}(), en;
|
|
819
819
|
}
|
|
820
820
|
var tn, sr;
|
|
821
|
-
function
|
|
821
|
+
function Bt() {
|
|
822
822
|
if (sr)
|
|
823
823
|
return tn;
|
|
824
824
|
sr = 1;
|
|
@@ -834,65 +834,65 @@ function or() {
|
|
|
834
834
|
if (ir)
|
|
835
835
|
return nn;
|
|
836
836
|
ir = 1;
|
|
837
|
-
var n = oe, e =
|
|
837
|
+
var n = oe, e = mi(), t = gi(), r = Hr, s = wi(), i = Ei(), o = Ri(), c = zr(), f = Jr, a = Bt();
|
|
838
838
|
return nn = function(l) {
|
|
839
839
|
return new Promise(function(v, b) {
|
|
840
840
|
var w = l.data, x = l.headers, g = l.responseType, T;
|
|
841
|
-
function
|
|
841
|
+
function D() {
|
|
842
842
|
l.cancelToken && l.cancelToken.unsubscribe(T), l.signal && l.signal.removeEventListener("abort", T);
|
|
843
843
|
}
|
|
844
844
|
n.isFormData(w) && delete x["Content-Type"];
|
|
845
|
-
var
|
|
845
|
+
var m = new XMLHttpRequest();
|
|
846
846
|
if (l.auth) {
|
|
847
847
|
var V = l.auth.username || "", U = l.auth.password ? unescape(encodeURIComponent(l.auth.password)) : "";
|
|
848
848
|
x.Authorization = "Basic " + btoa(V + ":" + U);
|
|
849
849
|
}
|
|
850
|
-
var
|
|
851
|
-
|
|
850
|
+
var L = s(l.baseURL, l.url);
|
|
851
|
+
m.open(l.method.toUpperCase(), r(L, l.params, l.paramsSerializer), !0), m.timeout = l.timeout;
|
|
852
852
|
function E() {
|
|
853
|
-
if (!!
|
|
854
|
-
var
|
|
853
|
+
if (!!m) {
|
|
854
|
+
var k = "getAllResponseHeaders" in m ? i(m.getAllResponseHeaders()) : null, X = !g || g === "text" || g === "json" ? m.responseText : m.response, ne = {
|
|
855
855
|
data: X,
|
|
856
|
-
status:
|
|
857
|
-
statusText:
|
|
858
|
-
headers:
|
|
856
|
+
status: m.status,
|
|
857
|
+
statusText: m.statusText,
|
|
858
|
+
headers: k,
|
|
859
859
|
config: l,
|
|
860
|
-
request:
|
|
860
|
+
request: m
|
|
861
861
|
};
|
|
862
862
|
e(function($) {
|
|
863
|
-
v($),
|
|
863
|
+
v($), D();
|
|
864
864
|
}, function($) {
|
|
865
|
-
b($),
|
|
866
|
-
}, ne),
|
|
865
|
+
b($), D();
|
|
866
|
+
}, ne), m = null;
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
if ("onloadend" in
|
|
870
|
-
!
|
|
871
|
-
},
|
|
872
|
-
!
|
|
873
|
-
},
|
|
874
|
-
b(c("Network Error", l, null,
|
|
875
|
-
},
|
|
869
|
+
if ("onloadend" in m ? m.onloadend = E : m.onreadystatechange = function() {
|
|
870
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
871
|
+
}, m.onabort = function() {
|
|
872
|
+
!m || (b(c("Request aborted", l, "ECONNABORTED", m)), m = null);
|
|
873
|
+
}, m.onerror = function() {
|
|
874
|
+
b(c("Network Error", l, null, m)), m = null;
|
|
875
|
+
}, m.ontimeout = function() {
|
|
876
876
|
var X = l.timeout ? "timeout of " + l.timeout + "ms exceeded" : "timeout exceeded", ne = l.transitional || f;
|
|
877
877
|
l.timeoutErrorMessage && (X = l.timeoutErrorMessage), b(c(
|
|
878
878
|
X,
|
|
879
879
|
l,
|
|
880
880
|
ne.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
881
|
-
|
|
882
|
-
)),
|
|
881
|
+
m
|
|
882
|
+
)), m = null;
|
|
883
883
|
}, n.isStandardBrowserEnv()) {
|
|
884
|
-
var j = (l.withCredentials || o(
|
|
884
|
+
var j = (l.withCredentials || o(L)) && l.xsrfCookieName ? t.read(l.xsrfCookieName) : void 0;
|
|
885
885
|
j && (x[l.xsrfHeaderName] = j);
|
|
886
886
|
}
|
|
887
|
-
"setRequestHeader" in
|
|
888
|
-
typeof w > "u" && ne.toLowerCase() === "content-type" ? delete x[ne] :
|
|
889
|
-
}), n.isUndefined(l.withCredentials) || (
|
|
890
|
-
!
|
|
891
|
-
}, l.cancelToken && l.cancelToken.subscribe(T), l.signal && (l.signal.aborted ? T() : l.signal.addEventListener("abort", T))), w || (w = null),
|
|
887
|
+
"setRequestHeader" in m && n.forEach(x, function(X, ne) {
|
|
888
|
+
typeof w > "u" && ne.toLowerCase() === "content-type" ? delete x[ne] : m.setRequestHeader(ne, X);
|
|
889
|
+
}), n.isUndefined(l.withCredentials) || (m.withCredentials = !!l.withCredentials), g && g !== "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) && (T = function(k) {
|
|
890
|
+
!m || (b(!k || k && k.type ? new a("canceled") : k), m.abort(), m = null);
|
|
891
|
+
}, l.cancelToken && l.cancelToken.subscribe(T), l.signal && (l.signal.aborted ? T() : l.signal.addEventListener("abort", T))), w || (w = null), m.send(w);
|
|
892
892
|
});
|
|
893
893
|
}, nn;
|
|
894
894
|
}
|
|
895
|
-
var Q = oe, ar =
|
|
895
|
+
var Q = oe, ar = yi, Si = Yr, Ti = Jr, Oi = {
|
|
896
896
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
897
897
|
};
|
|
898
898
|
function ur(n, e) {
|
|
@@ -949,8 +949,8 @@ Q.forEach(["delete", "get", "head"], function(e) {
|
|
|
949
949
|
Q.forEach(["post", "put", "patch"], function(e) {
|
|
950
950
|
It.headers[e] = Q.merge(Oi);
|
|
951
951
|
});
|
|
952
|
-
var Pn = It, Ai = oe,
|
|
953
|
-
var s = this ||
|
|
952
|
+
var Pn = It, Ai = oe, Li = Pn, Di = function(e, t, r) {
|
|
953
|
+
var s = this || Li;
|
|
954
954
|
return Ai.forEach(r, function(o) {
|
|
955
955
|
e = o.call(s, e, t);
|
|
956
956
|
}), e;
|
|
@@ -960,12 +960,12 @@ function Kr() {
|
|
|
960
960
|
return !!(e && e.__CANCEL__);
|
|
961
961
|
}), rn;
|
|
962
962
|
}
|
|
963
|
-
var lr = oe, sn =
|
|
963
|
+
var lr = oe, sn = Di, ki = Kr(), Ni = Pn, Pi = Bt();
|
|
964
964
|
function on(n) {
|
|
965
965
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
966
966
|
throw new Pi("canceled");
|
|
967
967
|
}
|
|
968
|
-
var
|
|
968
|
+
var Fi = function(e) {
|
|
969
969
|
on(e), e.headers = e.headers || {}, e.data = sn.call(
|
|
970
970
|
e,
|
|
971
971
|
e.data,
|
|
@@ -990,7 +990,7 @@ var Bi = function(e) {
|
|
|
990
990
|
e.transformResponse
|
|
991
991
|
), s;
|
|
992
992
|
}, function(s) {
|
|
993
|
-
return
|
|
993
|
+
return ki(s) || (on(e), s && s.response && (s.response.data = sn.call(
|
|
994
994
|
e,
|
|
995
995
|
s.response.data,
|
|
996
996
|
s.response.headers,
|
|
@@ -1065,16 +1065,16 @@ function Xr() {
|
|
|
1065
1065
|
version: "0.26.1"
|
|
1066
1066
|
}), an;
|
|
1067
1067
|
}
|
|
1068
|
-
var
|
|
1068
|
+
var Bi = Xr().version, Fn = {};
|
|
1069
1069
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(n, e) {
|
|
1070
|
-
|
|
1070
|
+
Fn[n] = function(r) {
|
|
1071
1071
|
return typeof r === n || "a" + (e < 1 ? "n " : " ") + n;
|
|
1072
1072
|
};
|
|
1073
1073
|
});
|
|
1074
1074
|
var hr = {};
|
|
1075
|
-
|
|
1075
|
+
Fn.transitional = function(e, t, r) {
|
|
1076
1076
|
function s(i, o) {
|
|
1077
|
-
return "[Axios v" +
|
|
1077
|
+
return "[Axios v" + Bi + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1078
1078
|
}
|
|
1079
1079
|
return function(i, o, c) {
|
|
1080
1080
|
if (e === !1)
|
|
@@ -1104,8 +1104,8 @@ function Ii(n, e, t) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
var Ui = {
|
|
1106
1106
|
assertOptions: Ii,
|
|
1107
|
-
validators:
|
|
1108
|
-
}, Qr = oe, qi = Hr, dr = pi, pr =
|
|
1107
|
+
validators: Fn
|
|
1108
|
+
}, Qr = oe, qi = Hr, dr = pi, pr = Fi, Ut = Gr, Zr = Ui, Ke = Zr.validators;
|
|
1109
1109
|
function pt(n) {
|
|
1110
1110
|
this.defaults = n, this.interceptors = {
|
|
1111
1111
|
request: new dr(),
|
|
@@ -1179,7 +1179,7 @@ function ji() {
|
|
|
1179
1179
|
if (vr)
|
|
1180
1180
|
return un;
|
|
1181
1181
|
vr = 1;
|
|
1182
|
-
var n =
|
|
1182
|
+
var n = Bt();
|
|
1183
1183
|
function e(t) {
|
|
1184
1184
|
if (typeof t != "function")
|
|
1185
1185
|
throw new TypeError("executor must be a function.");
|
|
@@ -1230,34 +1230,34 @@ function ji() {
|
|
|
1230
1230
|
};
|
|
1231
1231
|
}, un = e, un;
|
|
1232
1232
|
}
|
|
1233
|
-
var cn,
|
|
1233
|
+
var cn, yr;
|
|
1234
1234
|
function $i() {
|
|
1235
|
-
return
|
|
1235
|
+
return yr || (yr = 1, cn = function(e) {
|
|
1236
1236
|
return function(r) {
|
|
1237
1237
|
return e.apply(null, r);
|
|
1238
1238
|
};
|
|
1239
1239
|
}), cn;
|
|
1240
1240
|
}
|
|
1241
|
-
var ln,
|
|
1241
|
+
var ln, mr;
|
|
1242
1242
|
function Mi() {
|
|
1243
|
-
if (
|
|
1243
|
+
if (mr)
|
|
1244
1244
|
return ln;
|
|
1245
|
-
|
|
1245
|
+
mr = 1;
|
|
1246
1246
|
var n = oe;
|
|
1247
1247
|
return ln = function(t) {
|
|
1248
1248
|
return n.isObject(t) && t.isAxiosError === !0;
|
|
1249
1249
|
}, ln;
|
|
1250
1250
|
}
|
|
1251
|
-
var gr = oe, Wi = jr,
|
|
1251
|
+
var gr = oe, Wi = jr, Lt = Vi, Hi = Gr, Yi = Pn;
|
|
1252
1252
|
function es(n) {
|
|
1253
|
-
var e = new
|
|
1254
|
-
return gr.extend(t,
|
|
1253
|
+
var e = new Lt(n), t = Wi(Lt.prototype.request, e);
|
|
1254
|
+
return gr.extend(t, Lt.prototype, e), gr.extend(t, e), t.create = function(s) {
|
|
1255
1255
|
return es(Hi(n, s));
|
|
1256
1256
|
}, t;
|
|
1257
1257
|
}
|
|
1258
1258
|
var ge = es(Yi);
|
|
1259
|
-
ge.Axios =
|
|
1260
|
-
ge.Cancel =
|
|
1259
|
+
ge.Axios = Lt;
|
|
1260
|
+
ge.Cancel = Bt();
|
|
1261
1261
|
ge.CancelToken = ji();
|
|
1262
1262
|
ge.isCancel = Kr();
|
|
1263
1263
|
ge.VERSION = Xr().version;
|
|
@@ -1266,10 +1266,10 @@ ge.all = function(e) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
ge.spread = $i();
|
|
1268
1268
|
ge.isAxiosError = Mi();
|
|
1269
|
-
|
|
1270
|
-
|
|
1269
|
+
Dn.exports = ge;
|
|
1270
|
+
Dn.exports.default = ge;
|
|
1271
1271
|
(function(n) {
|
|
1272
|
-
n.exports =
|
|
1272
|
+
n.exports = Dn.exports;
|
|
1273
1273
|
})(Vr);
|
|
1274
1274
|
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
1275
1275
|
Ge.getRequestHeaders = Ge.getAxiosClient = void 0;
|
|
@@ -1313,7 +1313,7 @@ function Ki() {
|
|
|
1313
1313
|
}();
|
|
1314
1314
|
return rt.FrappeApp = i, rt;
|
|
1315
1315
|
}
|
|
1316
|
-
var qt = {}, ve =
|
|
1316
|
+
var qt = {}, ve = F && F.__assign || function() {
|
|
1317
1317
|
return ve = Object.assign || function(n) {
|
|
1318
1318
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
1319
1319
|
e = arguments[t];
|
|
@@ -1322,7 +1322,7 @@ var qt = {}, ve = B && B.__assign || function() {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
return n;
|
|
1324
1324
|
}, ve.apply(this, arguments);
|
|
1325
|
-
}, Rt =
|
|
1325
|
+
}, Rt = F && F.__awaiter || function(n, e, t, r) {
|
|
1326
1326
|
function s(i) {
|
|
1327
1327
|
return i instanceof t ? i : new t(function(o) {
|
|
1328
1328
|
o(i);
|
|
@@ -1348,7 +1348,7 @@ var qt = {}, ve = B && B.__assign || function() {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
a((r = r.apply(n, e || [])).next());
|
|
1350
1350
|
});
|
|
1351
|
-
}, St =
|
|
1351
|
+
}, St = F && F.__generator || function(n, e) {
|
|
1352
1352
|
var t = { label: 0, sent: function() {
|
|
1353
1353
|
if (i[0] & 1)
|
|
1354
1354
|
throw i[1];
|
|
@@ -1475,7 +1475,7 @@ qt.FrappeAuth = Gi;
|
|
|
1475
1475
|
var br;
|
|
1476
1476
|
function ns() {
|
|
1477
1477
|
return br || (br = 1, function(n) {
|
|
1478
|
-
var e =
|
|
1478
|
+
var e = F && F.__createBinding || (Object.create ? function(r, s, i, o) {
|
|
1479
1479
|
o === void 0 && (o = i);
|
|
1480
1480
|
var c = Object.getOwnPropertyDescriptor(s, i);
|
|
1481
1481
|
(!c || ("get" in c ? !s.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
|
|
@@ -1483,7 +1483,7 @@ function ns() {
|
|
|
1483
1483
|
} }), Object.defineProperty(r, o, c);
|
|
1484
1484
|
} : function(r, s, i, o) {
|
|
1485
1485
|
o === void 0 && (o = i), r[o] = s[i];
|
|
1486
|
-
}), t =
|
|
1486
|
+
}), t = F && F.__exportStar || function(r, s) {
|
|
1487
1487
|
for (var i in r)
|
|
1488
1488
|
i !== "default" && !Object.prototype.hasOwnProperty.call(s, i) && e(s, r, i);
|
|
1489
1489
|
};
|
|
@@ -1551,67 +1551,67 @@ function Zi() {
|
|
|
1551
1551
|
return Er || (Er = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1552
1552
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1553
1553
|
var n = qe, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1554
|
-
function t(
|
|
1554
|
+
function t(D) {
|
|
1555
1555
|
{
|
|
1556
|
-
for (var
|
|
1556
|
+
for (var m = arguments.length, V = new Array(m > 1 ? m - 1 : 0), U = 1; U < m; U++)
|
|
1557
1557
|
V[U - 1] = arguments[U];
|
|
1558
|
-
r("error",
|
|
1558
|
+
r("error", D, V);
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
function r(
|
|
1561
|
+
function r(D, m, V) {
|
|
1562
1562
|
{
|
|
1563
|
-
var U = e.ReactDebugCurrentFrame,
|
|
1564
|
-
|
|
1563
|
+
var U = e.ReactDebugCurrentFrame, L = U.getStackAddendum();
|
|
1564
|
+
L !== "" && (m += "%s", V = V.concat([L]));
|
|
1565
1565
|
var E = V.map(function(j) {
|
|
1566
1566
|
return String(j);
|
|
1567
1567
|
});
|
|
1568
|
-
E.unshift("Warning: " +
|
|
1568
|
+
E.unshift("Warning: " + m), Function.prototype.apply.call(console[D], console, E);
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
function s(
|
|
1572
|
-
return
|
|
1571
|
+
function s(D, m) {
|
|
1572
|
+
return D === m && (D !== 0 || 1 / D === 1 / m) || D !== D && m !== m;
|
|
1573
1573
|
}
|
|
1574
1574
|
var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, f = n.useLayoutEffect, a = n.useDebugValue, h = !1, l = !1;
|
|
1575
|
-
function p(
|
|
1575
|
+
function p(D, m, V) {
|
|
1576
1576
|
h || n.startTransition !== void 0 && (h = !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."));
|
|
1577
|
-
var U =
|
|
1577
|
+
var U = m();
|
|
1578
1578
|
if (!l) {
|
|
1579
|
-
var
|
|
1580
|
-
i(U,
|
|
1579
|
+
var L = m();
|
|
1580
|
+
i(U, L) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), l = !0);
|
|
1581
1581
|
}
|
|
1582
1582
|
var E = o({
|
|
1583
1583
|
inst: {
|
|
1584
1584
|
value: U,
|
|
1585
|
-
getSnapshot:
|
|
1585
|
+
getSnapshot: m
|
|
1586
1586
|
}
|
|
1587
|
-
}), j = E[0].inst,
|
|
1587
|
+
}), j = E[0].inst, k = E[1];
|
|
1588
1588
|
return f(function() {
|
|
1589
|
-
j.value = U, j.getSnapshot =
|
|
1589
|
+
j.value = U, j.getSnapshot = m, v(j) && k({
|
|
1590
1590
|
inst: j
|
|
1591
1591
|
});
|
|
1592
|
-
}, [
|
|
1593
|
-
v(j) &&
|
|
1592
|
+
}, [D, U, m]), c(function() {
|
|
1593
|
+
v(j) && k({
|
|
1594
1594
|
inst: j
|
|
1595
1595
|
});
|
|
1596
1596
|
var X = function() {
|
|
1597
|
-
v(j) &&
|
|
1597
|
+
v(j) && k({
|
|
1598
1598
|
inst: j
|
|
1599
1599
|
});
|
|
1600
1600
|
};
|
|
1601
|
-
return
|
|
1602
|
-
}, [
|
|
1601
|
+
return D(X);
|
|
1602
|
+
}, [D]), a(U), U;
|
|
1603
1603
|
}
|
|
1604
|
-
function v(
|
|
1605
|
-
var
|
|
1604
|
+
function v(D) {
|
|
1605
|
+
var m = D.getSnapshot, V = D.value;
|
|
1606
1606
|
try {
|
|
1607
|
-
var U =
|
|
1607
|
+
var U = m();
|
|
1608
1608
|
return !i(V, U);
|
|
1609
1609
|
} catch {
|
|
1610
1610
|
return !0;
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
function b(
|
|
1614
|
-
return
|
|
1613
|
+
function b(D, m, V) {
|
|
1614
|
+
return m();
|
|
1615
1615
|
}
|
|
1616
1616
|
var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", x = !w, g = x ? b : p, T = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : g;
|
|
1617
1617
|
hn.useSyncExternalStore = T, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
@@ -1621,7 +1621,7 @@ function Zi() {
|
|
|
1621
1621
|
process.env.NODE_ENV === "production" ? n.exports = Qi() : n.exports = Zi();
|
|
1622
1622
|
})(rs);
|
|
1623
1623
|
const Ae = () => {
|
|
1624
|
-
}, fe = Ae(), dn = Object, C = (n) => n === fe, xe = (n) => typeof n == "function",
|
|
1624
|
+
}, fe = Ae(), dn = Object, C = (n) => n === fe, xe = (n) => typeof n == "function", De = (n, e) => ({
|
|
1625
1625
|
...n,
|
|
1626
1626
|
...e
|
|
1627
1627
|
}), eo = (n) => xe(n.then), Tt = /* @__PURE__ */ new WeakMap();
|
|
@@ -1647,14 +1647,14 @@ const ct = (n) => {
|
|
|
1647
1647
|
} else
|
|
1648
1648
|
s = r ? n.toJSON() : e == "symbol" ? n.toString() : e == "string" ? JSON.stringify(n) : "" + n;
|
|
1649
1649
|
return s;
|
|
1650
|
-
}, Oe = /* @__PURE__ */ new WeakMap(), pn = {}, Ot = {},
|
|
1650
|
+
}, Oe = /* @__PURE__ */ new WeakMap(), pn = {}, Ot = {}, Bn = "undefined", Vt = typeof window != Bn, bn = typeof document != Bn, no = () => Vt && typeof window.requestAnimationFrame != Bn, ss = (n, e) => {
|
|
1651
1651
|
const t = Oe.get(n);
|
|
1652
1652
|
return [
|
|
1653
1653
|
() => !C(e) && n.get(e) || pn,
|
|
1654
1654
|
(r) => {
|
|
1655
1655
|
if (!C(e)) {
|
|
1656
1656
|
const s = n.get(e);
|
|
1657
|
-
e in Ot || (Ot[e] = s), t[5](e,
|
|
1657
|
+
e in Ot || (Ot[e] = s), t[5](e, De(s, r), s || pn);
|
|
1658
1658
|
}
|
|
1659
1659
|
},
|
|
1660
1660
|
t[6],
|
|
@@ -1688,10 +1688,10 @@ const ro = () => wn, [En, Rn] = Vt && window.addEventListener ? [
|
|
|
1688
1688
|
}, uo = {
|
|
1689
1689
|
initFocus: io,
|
|
1690
1690
|
initReconnect: oo
|
|
1691
|
-
}, Rr = !qe.useId, lt = !Vt || "Deno" in window, co = (n) => no() ? window.requestAnimationFrame(n) : setTimeout(n, 1), vn = lt ? Xe : Hs,
|
|
1691
|
+
}, Rr = !qe.useId, lt = !Vt || "Deno" in window, co = (n) => no() ? window.requestAnimationFrame(n) : setTimeout(n, 1), vn = lt ? Xe : Hs, yn = typeof navigator < "u" && navigator.connection, Sr = !lt && yn && ([
|
|
1692
1692
|
"slow-2g",
|
|
1693
1693
|
"2g"
|
|
1694
|
-
].includes(
|
|
1694
|
+
].includes(yn.effectiveType) || yn.saveData), In = (n) => {
|
|
1695
1695
|
if (xe(n))
|
|
1696
1696
|
try {
|
|
1697
1697
|
n = n();
|
|
@@ -1714,7 +1714,7 @@ var st = {
|
|
|
1714
1714
|
RECONNECT_EVENT: os
|
|
1715
1715
|
};
|
|
1716
1716
|
async function us(...n) {
|
|
1717
|
-
const [e, t, r, s] = n, i =
|
|
1717
|
+
const [e, t, r, s] = n, i = De({
|
|
1718
1718
|
populateCache: !0,
|
|
1719
1719
|
throwOnError: !0
|
|
1720
1720
|
}, typeof s == "boolean" ? {
|
|
@@ -1735,39 +1735,39 @@ async function us(...n) {
|
|
|
1735
1735
|
const [b] = In(v);
|
|
1736
1736
|
if (!b)
|
|
1737
1737
|
return;
|
|
1738
|
-
const [w, x] = ss(e, b), [g, T,
|
|
1738
|
+
const [w, x] = ss(e, b), [g, T, D, m] = Oe.get(e), V = g[b], U = () => a && (delete D[b], delete m[b], V && V[0]) ? V[0](as).then(() => w().data) : w().data;
|
|
1739
1739
|
if (n.length < 3)
|
|
1740
1740
|
return U();
|
|
1741
|
-
let
|
|
1741
|
+
let L = r, E;
|
|
1742
1742
|
const j = Sn();
|
|
1743
1743
|
T[b] = [
|
|
1744
1744
|
j,
|
|
1745
1745
|
0
|
|
1746
1746
|
];
|
|
1747
|
-
const
|
|
1748
|
-
if (
|
|
1747
|
+
const k = !C(f), X = w(), ne = X.data, Z = X._c, $ = C(Z) ? ne : Z;
|
|
1748
|
+
if (k && (f = xe(f) ? f($, ne) : f, x({
|
|
1749
1749
|
data: f,
|
|
1750
1750
|
_c: $
|
|
1751
|
-
})), xe(
|
|
1751
|
+
})), xe(L))
|
|
1752
1752
|
try {
|
|
1753
|
-
|
|
1753
|
+
L = L($);
|
|
1754
1754
|
} catch (be) {
|
|
1755
1755
|
E = be;
|
|
1756
1756
|
}
|
|
1757
|
-
if (
|
|
1758
|
-
if (
|
|
1757
|
+
if (L && eo(L))
|
|
1758
|
+
if (L = await L.catch((be) => {
|
|
1759
1759
|
E = be;
|
|
1760
1760
|
}), j !== T[b][0]) {
|
|
1761
1761
|
if (E)
|
|
1762
1762
|
throw E;
|
|
1763
|
-
return
|
|
1763
|
+
return L;
|
|
1764
1764
|
} else
|
|
1765
|
-
E &&
|
|
1766
|
-
data:
|
|
1765
|
+
E && k && h(E) && (o = !0, L = $, x({
|
|
1766
|
+
data: L,
|
|
1767
1767
|
_c: fe
|
|
1768
1768
|
}));
|
|
1769
|
-
o && (E || (xe(o) && (
|
|
1770
|
-
data:
|
|
1769
|
+
o && (E || (xe(o) && (L = o(L, $)), x({
|
|
1770
|
+
data: L,
|
|
1771
1771
|
error: fe,
|
|
1772
1772
|
_c: fe
|
|
1773
1773
|
}))), T[b][1] = Sn();
|
|
@@ -1779,7 +1779,7 @@ async function us(...n) {
|
|
|
1779
1779
|
throw E;
|
|
1780
1780
|
return;
|
|
1781
1781
|
}
|
|
1782
|
-
return o ? _e :
|
|
1782
|
+
return o ? _e : L;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
const Tr = (n, e) => {
|
|
@@ -1787,7 +1787,7 @@ const Tr = (n, e) => {
|
|
|
1787
1787
|
n[t][0] && n[t][0](e);
|
|
1788
1788
|
}, ho = (n, e) => {
|
|
1789
1789
|
if (!Oe.has(n)) {
|
|
1790
|
-
const t =
|
|
1790
|
+
const t = De(uo, e), r = {}, s = us.bind(fe, n);
|
|
1791
1791
|
let i = Ae;
|
|
1792
1792
|
const o = {}, c = (h, l) => {
|
|
1793
1793
|
const p = o[h] || [];
|
|
@@ -1828,7 +1828,7 @@ const Tr = (n, e) => {
|
|
|
1828
1828
|
}, po = (n, e, t, r, s) => {
|
|
1829
1829
|
const i = t.errorRetryCount, o = s.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
|
|
1830
1830
|
!C(i) && o > i || setTimeout(r, c, s);
|
|
1831
|
-
}, vo = (n, e) => ct(n) == ct(e), [cs,
|
|
1831
|
+
}, vo = (n, e) => ct(n) == ct(e), [cs, yo] = ho(/* @__PURE__ */ new Map()), mo = De(
|
|
1832
1832
|
{
|
|
1833
1833
|
onLoadingSlow: Ae,
|
|
1834
1834
|
onSuccess: Ae,
|
|
@@ -1846,15 +1846,15 @@ const Tr = (n, e) => {
|
|
|
1846
1846
|
compare: vo,
|
|
1847
1847
|
isPaused: () => !1,
|
|
1848
1848
|
cache: cs,
|
|
1849
|
-
mutate:
|
|
1849
|
+
mutate: yo,
|
|
1850
1850
|
fallback: {}
|
|
1851
1851
|
},
|
|
1852
1852
|
ao
|
|
1853
1853
|
), go = (n, e) => {
|
|
1854
|
-
const t =
|
|
1854
|
+
const t = De(n, e);
|
|
1855
1855
|
if (e) {
|
|
1856
1856
|
const { use: r, fallback: s } = n, { use: i, fallback: o } = e;
|
|
1857
|
-
r && i && (t.use = r.concat(i)), s && o && (t.fallback =
|
|
1857
|
+
r && i && (t.use = r.concat(i)), s && o && (t.fallback = De(s, o));
|
|
1858
1858
|
}
|
|
1859
1859
|
return t;
|
|
1860
1860
|
}, _o = Ur({}), ls = Vt && window.__SWR_DEVTOOLS_USE__, bo = ls ? window.__SWR_DEVTOOLS_USE__ : [], wo = () => {
|
|
@@ -1867,7 +1867,7 @@ const Tr = (n, e) => {
|
|
|
1867
1867
|
n[0],
|
|
1868
1868
|
null,
|
|
1869
1869
|
(n[1] === null ? n[2] : n[1]) || {}
|
|
1870
|
-
], Ro = () =>
|
|
1870
|
+
], Ro = () => De(mo, ee(_o)), So = (n) => (e, t, r) => n(e, t && ((...i) => {
|
|
1871
1871
|
const [o] = In(e), [, , , c] = Oe.get(cs), f = c[o];
|
|
1872
1872
|
return C(f) ? t(...i) : (delete c[o], f);
|
|
1873
1873
|
}), r), To = bo.concat(So), Oo = (n) => function(...t) {
|
|
@@ -1895,32 +1895,32 @@ const Or = qe.use || ((n) => {
|
|
|
1895
1895
|
}, (e) => {
|
|
1896
1896
|
n.status = "rejected", n.reason = e;
|
|
1897
1897
|
}), n);
|
|
1898
|
-
}),
|
|
1898
|
+
}), mn = {
|
|
1899
1899
|
dedupe: !0
|
|
1900
1900
|
}, Co = (n, e, t) => {
|
|
1901
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: f, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: l, keepPreviousData: p } = t, [v, b, w, x] = Oe.get(r), [g, T] = In(n),
|
|
1901
|
+
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: f, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: l, keepPreviousData: p } = t, [v, b, w, x] = Oe.get(r), [g, T] = In(n), D = Be(!1), m = Be(!1), V = Be(g), U = Be(e), L = Be(t), E = () => L.current, j = () => E().isVisible() && E().isOnline(), [k, X, ne, Z] = ss(r, g), $ = Be({}).current, _e = C(o) ? t.fallback[g] : o, be = (N, B) => {
|
|
1902
1902
|
for (const G in $) {
|
|
1903
1903
|
const q = G;
|
|
1904
1904
|
if (q === "data") {
|
|
1905
|
-
if (!s(N[q],
|
|
1905
|
+
if (!s(N[q], B[q]) && (!C(N[q]) || !s(Ve, B[q])))
|
|
1906
1906
|
return !1;
|
|
1907
|
-
} else if (
|
|
1907
|
+
} else if (B[q] !== N[q])
|
|
1908
1908
|
return !1;
|
|
1909
1909
|
}
|
|
1910
1910
|
return !0;
|
|
1911
1911
|
}, Ze = qr(() => {
|
|
1912
|
-
const N = (() => !g || !e ? !1 : C(c) ? E().isPaused() || i ? !1 : C(f) ? !0 : f : c)(),
|
|
1913
|
-
const he =
|
|
1912
|
+
const N = (() => !g || !e ? !1 : C(c) ? E().isPaused() || i ? !1 : C(f) ? !0 : f : c)(), B = (Y) => {
|
|
1913
|
+
const he = De(Y);
|
|
1914
1914
|
return delete he._k, N ? {
|
|
1915
1915
|
isValidating: !0,
|
|
1916
1916
|
isLoading: !0,
|
|
1917
1917
|
...he
|
|
1918
1918
|
} : he;
|
|
1919
|
-
}, G =
|
|
1919
|
+
}, G = k(), q = Z(), re = B(G), Se = G === q ? re : B(q);
|
|
1920
1920
|
let H = re;
|
|
1921
1921
|
return [
|
|
1922
1922
|
() => {
|
|
1923
|
-
const Y =
|
|
1923
|
+
const Y = B(k());
|
|
1924
1924
|
return be(Y, H) ? (H.data = Y.data, H.isLoading = Y.isLoading, H.isValidating = Y.isValidating, H.error = Y.error, H) : (H = Y, Y);
|
|
1925
1925
|
},
|
|
1926
1926
|
() => Se
|
|
@@ -1929,20 +1929,20 @@ const Or = qe.use || ((n) => {
|
|
|
1929
1929
|
r,
|
|
1930
1930
|
g
|
|
1931
1931
|
]), we = rs.exports.useSyncExternalStore(M(
|
|
1932
|
-
(N) => ne(g, (
|
|
1933
|
-
be(G,
|
|
1932
|
+
(N) => ne(g, (B, G) => {
|
|
1933
|
+
be(G, B) || N();
|
|
1934
1934
|
}),
|
|
1935
1935
|
[
|
|
1936
1936
|
r,
|
|
1937
1937
|
g
|
|
1938
1938
|
]
|
|
1939
|
-
), Ze[0], Ze[1]), et = !
|
|
1939
|
+
), Ze[0], Ze[1]), et = !D.current, yt = v[g] && v[g].length > 0, Ee = we.data, Re = C(Ee) ? _e : Ee, Ne = we.error, mt = Be(Re), Ve = p ? C(Ee) ? mt.current : Ee : Re, je = (() => yt && !C(Ne) ? !1 : et && !C(c) ? c : E().isPaused() ? !1 : i ? C(Re) ? !1 : f : C(Re) || f)(), $e = !!(g && e && et && je), Me = C(we.isValidating) ? $e : we.isValidating, tt = C(we.isLoading) ? $e : we.isLoading, pe = M(
|
|
1940
1940
|
async (N) => {
|
|
1941
|
-
const
|
|
1942
|
-
if (!g || !
|
|
1941
|
+
const B = U.current;
|
|
1942
|
+
if (!g || !B || m.current || E().isPaused())
|
|
1943
1943
|
return !1;
|
|
1944
1944
|
let G, q, re = !0;
|
|
1945
|
-
const Se = N || {}, H = !w[g] || !Se.dedupe, Y = () => Rr ? !
|
|
1945
|
+
const Se = N || {}, H = !w[g] || !Se.dedupe, Y = () => Rr ? !m.current && g === V.current && D.current : g === V.current, he = {
|
|
1946
1946
|
isValidating: !1,
|
|
1947
1947
|
isLoading: !1
|
|
1948
1948
|
}, _t = () => {
|
|
@@ -1953,12 +1953,12 @@ const Or = qe.use || ((n) => {
|
|
|
1953
1953
|
}, bt = {
|
|
1954
1954
|
isValidating: !0
|
|
1955
1955
|
};
|
|
1956
|
-
C(
|
|
1956
|
+
C(k().data) && (bt.isLoading = !0);
|
|
1957
1957
|
try {
|
|
1958
|
-
if (H && (X(bt), t.loadingTimeout && C(
|
|
1958
|
+
if (H && (X(bt), t.loadingTimeout && C(k().data) && setTimeout(() => {
|
|
1959
1959
|
re && Y() && E().onLoadingSlow(g, t);
|
|
1960
1960
|
}, t.loadingTimeout), w[g] = [
|
|
1961
|
-
|
|
1961
|
+
B(T),
|
|
1962
1962
|
Sn()
|
|
1963
1963
|
]), [G, q] = w[g], G = await G, H && setTimeout(We, t.dedupingInterval), !w[g] || w[g][1] !== q)
|
|
1964
1964
|
return H && Y() && E().onDiscarded(g), !1;
|
|
@@ -1966,7 +1966,7 @@ const Or = qe.use || ((n) => {
|
|
|
1966
1966
|
const ie = b[g];
|
|
1967
1967
|
if (!C(ie) && (q <= ie[0] || q <= ie[1] || ie[1] === 0))
|
|
1968
1968
|
return _t(), H && Y() && E().onDiscarded(g), !1;
|
|
1969
|
-
const ue =
|
|
1969
|
+
const ue = k().data;
|
|
1970
1970
|
he.data = s(ue, G) ? ue : G, H && Y() && E().onSuccess(G, g, t);
|
|
1971
1971
|
} catch (ie) {
|
|
1972
1972
|
We();
|
|
@@ -1990,16 +1990,16 @@ const Or = qe.use || ((n) => {
|
|
|
1990
1990
|
[]
|
|
1991
1991
|
);
|
|
1992
1992
|
if (vn(() => {
|
|
1993
|
-
U.current = e,
|
|
1993
|
+
U.current = e, L.current = t, C(Ee) || (mt.current = Ee);
|
|
1994
1994
|
}), vn(() => {
|
|
1995
1995
|
if (!g)
|
|
1996
1996
|
return;
|
|
1997
|
-
const N = pe.bind(fe,
|
|
1998
|
-
let
|
|
1997
|
+
const N = pe.bind(fe, mn);
|
|
1998
|
+
let B = 0;
|
|
1999
1999
|
const q = xo(g, v, (re, Se = {}) => {
|
|
2000
2000
|
if (re == st.FOCUS_EVENT) {
|
|
2001
2001
|
const H = Date.now();
|
|
2002
|
-
E().revalidateOnFocus && H >
|
|
2002
|
+
E().revalidateOnFocus && H > B && j() && (B = H + E().focusThrottleInterval, N());
|
|
2003
2003
|
} else if (re == st.RECONNECT_EVENT)
|
|
2004
2004
|
E().revalidateOnReconnect && j() && N();
|
|
2005
2005
|
else {
|
|
@@ -2009,23 +2009,23 @@ const Or = qe.use || ((n) => {
|
|
|
2009
2009
|
return pe(Se);
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
|
-
return
|
|
2012
|
+
return m.current = !1, V.current = g, D.current = !0, X({
|
|
2013
2013
|
_k: T
|
|
2014
2014
|
}), je && (C(Re) || lt ? N() : co(N)), () => {
|
|
2015
|
-
|
|
2015
|
+
m.current = !0, q();
|
|
2016
2016
|
};
|
|
2017
2017
|
}, [
|
|
2018
2018
|
g
|
|
2019
2019
|
]), vn(() => {
|
|
2020
2020
|
let N;
|
|
2021
|
-
function
|
|
2022
|
-
const q = xe(a) ? a(
|
|
2021
|
+
function B() {
|
|
2022
|
+
const q = xe(a) ? a(k().data) : a;
|
|
2023
2023
|
q && N !== -1 && (N = setTimeout(G, q));
|
|
2024
2024
|
}
|
|
2025
2025
|
function G() {
|
|
2026
|
-
!
|
|
2026
|
+
!k().error && (h || E().isVisible()) && (l || E().isOnline()) ? pe(mn).then(B) : B();
|
|
2027
2027
|
}
|
|
2028
|
-
return
|
|
2028
|
+
return B(), () => {
|
|
2029
2029
|
N && (clearTimeout(N), N = -1);
|
|
2030
2030
|
};
|
|
2031
2031
|
}, [
|
|
@@ -2036,15 +2036,15 @@ const Or = qe.use || ((n) => {
|
|
|
2036
2036
|
]), Ys(Ve), i && C(Re) && g) {
|
|
2037
2037
|
if (!Rr && lt)
|
|
2038
2038
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
|
2039
|
-
U.current = e,
|
|
2039
|
+
U.current = e, L.current = t, m.current = !1;
|
|
2040
2040
|
const N = x[g];
|
|
2041
2041
|
if (!C(N)) {
|
|
2042
|
-
const
|
|
2043
|
-
Or(
|
|
2042
|
+
const B = gt(N);
|
|
2043
|
+
Or(B);
|
|
2044
2044
|
}
|
|
2045
2045
|
if (C(Ne)) {
|
|
2046
|
-
const
|
|
2047
|
-
C(Ve) || (
|
|
2046
|
+
const B = pe(mn);
|
|
2047
|
+
C(Ve) || (B.status = "fulfilled", B.value = !0), Or(B);
|
|
2048
2048
|
} else
|
|
2049
2049
|
throw Ne;
|
|
2050
2050
|
}
|
|
@@ -2063,19 +2063,19 @@ const Or = qe.use || ((n) => {
|
|
|
2063
2063
|
return $.isLoading = !0, tt;
|
|
2064
2064
|
}
|
|
2065
2065
|
};
|
|
2066
|
-
}, vt = Oo(Co),
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
const
|
|
2075
|
-
Object.keys(
|
|
2076
|
-
|
|
2066
|
+
}, vt = Oo(Co), me = /* @__PURE__ */ Object.create(null);
|
|
2067
|
+
me.open = "0";
|
|
2068
|
+
me.close = "1";
|
|
2069
|
+
me.ping = "2";
|
|
2070
|
+
me.pong = "3";
|
|
2071
|
+
me.message = "4";
|
|
2072
|
+
me.upgrade = "5";
|
|
2073
|
+
me.noop = "6";
|
|
2074
|
+
const Dt = /* @__PURE__ */ Object.create(null);
|
|
2075
|
+
Object.keys(me).forEach((n) => {
|
|
2076
|
+
Dt[me[n]] = n;
|
|
2077
2077
|
});
|
|
2078
|
-
const Ao = { type: "error", data: "parser error" },
|
|
2078
|
+
const Ao = { type: "error", data: "parser error" }, Lo = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Do = typeof ArrayBuffer == "function", ko = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n && n.buffer instanceof ArrayBuffer, fs = ({ type: n, data: e }, t, r) => Lo && e instanceof Blob ? t ? r(e) : xr(e, r) : Do && (e instanceof ArrayBuffer || ko(e)) ? t ? r(e) : xr(new Blob([e]), r) : r(me[n] + (e || "")), xr = (n, e) => {
|
|
2079
2079
|
const t = new FileReader();
|
|
2080
2080
|
return t.onload = function() {
|
|
2081
2081
|
const r = t.result.split(",")[1];
|
|
@@ -2100,14 +2100,14 @@ const No = (n) => {
|
|
|
2100
2100
|
const t = n.charAt(0);
|
|
2101
2101
|
return t === "b" ? {
|
|
2102
2102
|
type: "message",
|
|
2103
|
-
data:
|
|
2104
|
-
} :
|
|
2105
|
-
type:
|
|
2103
|
+
data: Fo(n.substring(1), e)
|
|
2104
|
+
} : Dt[t] ? n.length > 1 ? {
|
|
2105
|
+
type: Dt[t],
|
|
2106
2106
|
data: n.substring(1)
|
|
2107
2107
|
} : {
|
|
2108
|
-
type:
|
|
2108
|
+
type: Dt[t]
|
|
2109
2109
|
} : Ao;
|
|
2110
|
-
},
|
|
2110
|
+
}, Fo = (n, e) => {
|
|
2111
2111
|
if (Po) {
|
|
2112
2112
|
const t = No(n);
|
|
2113
2113
|
return ds(t, e);
|
|
@@ -2121,7 +2121,7 @@ const No = (n) => {
|
|
|
2121
2121
|
default:
|
|
2122
2122
|
return n;
|
|
2123
2123
|
}
|
|
2124
|
-
}, ps = String.fromCharCode(30),
|
|
2124
|
+
}, ps = String.fromCharCode(30), Bo = (n, e) => {
|
|
2125
2125
|
const t = n.length, r = new Array(t);
|
|
2126
2126
|
let s = 0;
|
|
2127
2127
|
n.forEach((i, o) => {
|
|
@@ -2189,13 +2189,13 @@ K.prototype.listeners = function(n) {
|
|
|
2189
2189
|
K.prototype.hasListeners = function(n) {
|
|
2190
2190
|
return !!this.listeners(n).length;
|
|
2191
2191
|
};
|
|
2192
|
-
const
|
|
2193
|
-
function
|
|
2192
|
+
const Le = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
|
|
2193
|
+
function ys(n, ...e) {
|
|
2194
2194
|
return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {});
|
|
2195
2195
|
}
|
|
2196
2196
|
const qo = setTimeout, Vo = clearTimeout;
|
|
2197
2197
|
function jt(n, e) {
|
|
2198
|
-
e.useNativeTimers ? (n.setTimeoutFn = qo.bind(
|
|
2198
|
+
e.useNativeTimers ? (n.setTimeoutFn = qo.bind(Le), n.clearTimeoutFn = Vo.bind(Le)) : (n.setTimeoutFn = setTimeout.bind(Le), n.clearTimeoutFn = clearTimeout.bind(Le));
|
|
2199
2199
|
}
|
|
2200
2200
|
const jo = 1.33;
|
|
2201
2201
|
function $o(n) {
|
|
@@ -2212,7 +2212,7 @@ class Wo extends Error {
|
|
|
2212
2212
|
super(e), this.description = t, this.context = r, this.type = "TransportError";
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
class
|
|
2215
|
+
class ms extends K {
|
|
2216
2216
|
constructor(e) {
|
|
2217
2217
|
super(), this.writable = !1, jt(this, e), this.opts = e, this.query = e.query, this.readyState = "", this.socket = e.socket;
|
|
2218
2218
|
}
|
|
@@ -2243,8 +2243,8 @@ class ys extends K {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
2245
|
const gs = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Tn = 64, Ho = {};
|
|
2246
|
-
let Ar = 0, xt = 0,
|
|
2247
|
-
function
|
|
2246
|
+
let Ar = 0, xt = 0, Lr;
|
|
2247
|
+
function Dr(n) {
|
|
2248
2248
|
let e = "";
|
|
2249
2249
|
do
|
|
2250
2250
|
e = gs[n % Tn] + e, n = Math.floor(n / Tn);
|
|
@@ -2252,8 +2252,8 @@ function Lr(n) {
|
|
|
2252
2252
|
return e;
|
|
2253
2253
|
}
|
|
2254
2254
|
function _s() {
|
|
2255
|
-
const n =
|
|
2256
|
-
return n !==
|
|
2255
|
+
const n = Dr(+new Date());
|
|
2256
|
+
return n !== Lr ? (Ar = 0, Lr = n) : n + "." + Dr(Ar++);
|
|
2257
2257
|
}
|
|
2258
2258
|
for (; xt < Tn; xt++)
|
|
2259
2259
|
Ho[gs[xt]] = xt;
|
|
@@ -2286,7 +2286,7 @@ function Es(n) {
|
|
|
2286
2286
|
}
|
|
2287
2287
|
if (!e)
|
|
2288
2288
|
try {
|
|
2289
|
-
return new
|
|
2289
|
+
return new Le[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
|
|
2290
2290
|
} catch {
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
@@ -2297,7 +2297,7 @@ const Ko = function() {
|
|
|
2297
2297
|
xdomain: !1
|
|
2298
2298
|
}).responseType != null;
|
|
2299
2299
|
}();
|
|
2300
|
-
class Go extends
|
|
2300
|
+
class Go extends ms {
|
|
2301
2301
|
constructor(e) {
|
|
2302
2302
|
if (super(e), this.polling = !1, typeof location < "u") {
|
|
2303
2303
|
const r = location.protocol === "https:";
|
|
@@ -2346,7 +2346,7 @@ class Go extends ys {
|
|
|
2346
2346
|
this.readyState === "open" ? e() : this.once("open", e);
|
|
2347
2347
|
}
|
|
2348
2348
|
write(e) {
|
|
2349
|
-
this.writable = !1,
|
|
2349
|
+
this.writable = !1, Bo(e, (t) => {
|
|
2350
2350
|
this.doWrite(t, () => {
|
|
2351
2351
|
this.writable = !0, this.emitReserved("drain");
|
|
2352
2352
|
});
|
|
@@ -2361,7 +2361,7 @@ class Go extends ys {
|
|
|
2361
2361
|
return t + "://" + (i ? "[" + this.opts.hostname + "]" : this.opts.hostname) + r + this.opts.path + (s.length ? "?" + s : "");
|
|
2362
2362
|
}
|
|
2363
2363
|
request(e = {}) {
|
|
2364
|
-
return Object.assign(e, { xd: this.xd, xs: this.xs }, this.opts), new
|
|
2364
|
+
return Object.assign(e, { xd: this.xd, xs: this.xs }, this.opts), new ye(this.uri(), e);
|
|
2365
2365
|
}
|
|
2366
2366
|
doWrite(e, t) {
|
|
2367
2367
|
const r = this.request({
|
|
@@ -2379,12 +2379,12 @@ class Go extends ys {
|
|
|
2379
2379
|
}), this.pollXhr = e;
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
class
|
|
2382
|
+
class ye extends K {
|
|
2383
2383
|
constructor(e, t) {
|
|
2384
2384
|
super(), jt(this, t), this.opts = t, this.method = t.method || "GET", this.uri = e, this.async = t.async !== !1, this.data = t.data !== void 0 ? t.data : null, this.create();
|
|
2385
2385
|
}
|
|
2386
2386
|
create() {
|
|
2387
|
-
const e =
|
|
2387
|
+
const e = ys(this.opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
|
|
2388
2388
|
e.xdomain = !!this.opts.xd, e.xscheme = !!this.opts.xs;
|
|
2389
2389
|
const t = this.xhr = new Es(e);
|
|
2390
2390
|
try {
|
|
@@ -2417,7 +2417,7 @@ class me extends K {
|
|
|
2417
2417
|
}, 0);
|
|
2418
2418
|
return;
|
|
2419
2419
|
}
|
|
2420
|
-
typeof document < "u" && (this.index =
|
|
2420
|
+
typeof document < "u" && (this.index = ye.requestsCount++, ye.requests[this.index] = this);
|
|
2421
2421
|
}
|
|
2422
2422
|
onError(e) {
|
|
2423
2423
|
this.emitReserved("error", e, this.xhr), this.cleanup(!0);
|
|
@@ -2429,7 +2429,7 @@ class me extends K {
|
|
|
2429
2429
|
this.xhr.abort();
|
|
2430
2430
|
} catch {
|
|
2431
2431
|
}
|
|
2432
|
-
typeof document < "u" && delete
|
|
2432
|
+
typeof document < "u" && delete ye.requests[this.index], this.xhr = null;
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
2435
|
onLoad() {
|
|
@@ -2440,22 +2440,22 @@ class me extends K {
|
|
|
2440
2440
|
this.cleanup();
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
2443
|
-
|
|
2444
|
-
|
|
2443
|
+
ye.requestsCount = 0;
|
|
2444
|
+
ye.requests = {};
|
|
2445
2445
|
if (typeof document < "u") {
|
|
2446
2446
|
if (typeof attachEvent == "function")
|
|
2447
|
-
attachEvent("onunload",
|
|
2447
|
+
attachEvent("onunload", kr);
|
|
2448
2448
|
else if (typeof addEventListener == "function") {
|
|
2449
|
-
const n = "onpagehide" in
|
|
2450
|
-
addEventListener(n,
|
|
2449
|
+
const n = "onpagehide" in Le ? "pagehide" : "unload";
|
|
2450
|
+
addEventListener(n, kr, !1);
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2454
|
-
for (let n in
|
|
2455
|
-
|
|
2453
|
+
function kr() {
|
|
2454
|
+
for (let n in ye.requests)
|
|
2455
|
+
ye.requests.hasOwnProperty(n) && ye.requests[n].abort();
|
|
2456
2456
|
}
|
|
2457
|
-
const Xo = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ct =
|
|
2458
|
-
class Zo extends
|
|
2457
|
+
const Xo = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ct = Le.WebSocket || Le.MozWebSocket, Nr = !0, Qo = "arraybuffer", Pr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
2458
|
+
class Zo extends ms {
|
|
2459
2459
|
constructor(e) {
|
|
2460
2460
|
super(e), this.supportsBinary = !e.forceBase64;
|
|
2461
2461
|
}
|
|
@@ -2465,7 +2465,7 @@ class Zo extends ys {
|
|
|
2465
2465
|
doOpen() {
|
|
2466
2466
|
if (!this.check())
|
|
2467
2467
|
return;
|
|
2468
|
-
const e = this.uri(), t = this.opts.protocols, r = Pr ? {} :
|
|
2468
|
+
const e = this.uri(), t = this.opts.protocols, r = Pr ? {} : ys(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
|
|
2469
2469
|
this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
|
|
2470
2470
|
try {
|
|
2471
2471
|
this.ws = Nr && !Pr ? t ? new Ct(e, t) : new Ct(e) : new Ct(e, t, r);
|
|
@@ -2757,21 +2757,21 @@ const oa = typeof ArrayBuffer == "function", aa = (n) => typeof ArrayBuffer.isVi
|
|
|
2757
2757
|
function Un(n) {
|
|
2758
2758
|
return oa && (n instanceof ArrayBuffer || aa(n)) || ua && n instanceof Blob || ca && n instanceof File;
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function kt(n, e) {
|
|
2761
2761
|
if (!n || typeof n != "object")
|
|
2762
2762
|
return !1;
|
|
2763
2763
|
if (Array.isArray(n)) {
|
|
2764
2764
|
for (let t = 0, r = n.length; t < r; t++)
|
|
2765
|
-
if (
|
|
2765
|
+
if (kt(n[t]))
|
|
2766
2766
|
return !0;
|
|
2767
2767
|
return !1;
|
|
2768
2768
|
}
|
|
2769
2769
|
if (Un(n))
|
|
2770
2770
|
return !0;
|
|
2771
2771
|
if (n.toJSON && typeof n.toJSON == "function" && arguments.length === 1)
|
|
2772
|
-
return
|
|
2772
|
+
return kt(n.toJSON(), !0);
|
|
2773
2773
|
for (const t in n)
|
|
2774
|
-
if (Object.prototype.hasOwnProperty.call(n, t) &&
|
|
2774
|
+
if (Object.prototype.hasOwnProperty.call(n, t) && kt(n[t]))
|
|
2775
2775
|
return !0;
|
|
2776
2776
|
return !1;
|
|
2777
2777
|
}
|
|
@@ -2833,7 +2833,7 @@ class pa {
|
|
|
2833
2833
|
this.replacer = e;
|
|
2834
2834
|
}
|
|
2835
2835
|
encode(e) {
|
|
2836
|
-
return (e.type === S.EVENT || e.type === S.ACK) &&
|
|
2836
|
+
return (e.type === S.EVENT || e.type === S.ACK) && kt(e) ? this.encodeAsBinary({
|
|
2837
2837
|
type: e.type === S.EVENT ? S.BINARY_EVENT : S.BINARY_ACK,
|
|
2838
2838
|
nsp: e.nsp,
|
|
2839
2839
|
data: e.data,
|
|
@@ -2849,7 +2849,7 @@ class pa {
|
|
|
2849
2849
|
return s.unshift(r), s;
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2852
|
+
function Fr(n) {
|
|
2853
2853
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
2854
2854
|
}
|
|
2855
2855
|
class qn extends K {
|
|
@@ -2928,11 +2928,11 @@ class qn extends K {
|
|
|
2928
2928
|
static isPayloadValid(e, t) {
|
|
2929
2929
|
switch (e) {
|
|
2930
2930
|
case S.CONNECT:
|
|
2931
|
-
return
|
|
2931
|
+
return Fr(t);
|
|
2932
2932
|
case S.DISCONNECT:
|
|
2933
2933
|
return t === void 0;
|
|
2934
2934
|
case S.CONNECT_ERROR:
|
|
2935
|
-
return typeof t == "string" ||
|
|
2935
|
+
return typeof t == "string" || Fr(t);
|
|
2936
2936
|
case S.EVENT:
|
|
2937
2937
|
case S.BINARY_EVENT:
|
|
2938
2938
|
return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && ha.indexOf(t[0]) === -1);
|
|
@@ -2960,7 +2960,7 @@ class va {
|
|
|
2960
2960
|
this.reconPack = null, this.buffers = [];
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
|
-
const
|
|
2963
|
+
const ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2964
2964
|
__proto__: null,
|
|
2965
2965
|
protocol: da,
|
|
2966
2966
|
get PacketType() {
|
|
@@ -2974,7 +2974,7 @@ function de(n, e, t) {
|
|
|
2974
2974
|
n.off(e, t);
|
|
2975
2975
|
};
|
|
2976
2976
|
}
|
|
2977
|
-
const
|
|
2977
|
+
const ma = Object.freeze({
|
|
2978
2978
|
connect: 1,
|
|
2979
2979
|
connect_error: 1,
|
|
2980
2980
|
disconnect: 1,
|
|
@@ -3013,7 +3013,7 @@ class Ss extends K {
|
|
|
3013
3013
|
return e.unshift("message"), this.emit.apply(this, e), this;
|
|
3014
3014
|
}
|
|
3015
3015
|
emit(e, ...t) {
|
|
3016
|
-
if (
|
|
3016
|
+
if (ma.hasOwnProperty(e))
|
|
3017
3017
|
throw new Error('"' + e + '" is a reserved event name');
|
|
3018
3018
|
t.unshift(e);
|
|
3019
3019
|
const r = {
|
|
@@ -3222,7 +3222,7 @@ class An extends K {
|
|
|
3222
3222
|
max: this.reconnectionDelayMax(),
|
|
3223
3223
|
jitter: this.randomizationFactor()
|
|
3224
3224
|
}), this.timeout(t.timeout == null ? 2e4 : t.timeout), this._readyState = "closed", this.uri = e;
|
|
3225
|
-
const s = t.parser ||
|
|
3225
|
+
const s = t.parser || ya;
|
|
3226
3226
|
this.encoder = new s.Encoder(), this.decoder = new s.Decoder(), this._autoConnect = t.autoConnect !== !1, this._autoConnect && this.open();
|
|
3227
3227
|
}
|
|
3228
3228
|
reconnection(e) {
|
|
@@ -3358,15 +3358,20 @@ Object.assign(Nt, {
|
|
|
3358
3358
|
connect: Nt
|
|
3359
3359
|
});
|
|
3360
3360
|
class ga {
|
|
3361
|
-
constructor(e, t) {
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
var
|
|
3369
|
-
this.socket_port = t != null ? t : "9000", this.host = (
|
|
3361
|
+
constructor(e, t, r) {
|
|
3362
|
+
Fe(this, "socket_port");
|
|
3363
|
+
Fe(this, "host");
|
|
3364
|
+
Fe(this, "port");
|
|
3365
|
+
Fe(this, "protocol");
|
|
3366
|
+
Fe(this, "url");
|
|
3367
|
+
Fe(this, "socket");
|
|
3368
|
+
var s, i;
|
|
3369
|
+
this.socket_port = t != null ? t : "9000", this.host = (s = window.location) == null ? void 0 : s.hostname, this.port = (i = window.location) != null && i.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", this.url = e || `${this.protocol}://${this.host}${this.port}`, this.socket = Nt(this.url, {
|
|
3370
|
+
withCredentials: !0,
|
|
3371
|
+
extraHeaders: r && r.useToken === !0 ? {
|
|
3372
|
+
Authorization: `${r.type} ${r.token}`
|
|
3373
|
+
} : {}
|
|
3374
|
+
});
|
|
3370
3375
|
}
|
|
3371
3376
|
}
|
|
3372
3377
|
var Ts = { exports: {} }, ot = {};
|
|
@@ -3379,11 +3384,11 @@ var Ts = { exports: {} }, ot = {};
|
|
|
3379
3384
|
* This source code is licensed under the MIT license found in the
|
|
3380
3385
|
* LICENSE file in the root directory of this source tree.
|
|
3381
3386
|
*/
|
|
3382
|
-
var
|
|
3387
|
+
var Br;
|
|
3383
3388
|
function _a() {
|
|
3384
|
-
if (
|
|
3389
|
+
if (Br)
|
|
3385
3390
|
return ot;
|
|
3386
|
-
|
|
3391
|
+
Br = 1;
|
|
3387
3392
|
var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
3388
3393
|
function o(c, f, a) {
|
|
3389
3394
|
var h, l = {}, p = null, v = null;
|
|
@@ -3420,32 +3425,32 @@ function ba() {
|
|
|
3420
3425
|
var g = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3421
3426
|
function T(u) {
|
|
3422
3427
|
{
|
|
3423
|
-
for (var d = arguments.length,
|
|
3424
|
-
|
|
3425
|
-
|
|
3428
|
+
for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), _ = 1; _ < d; _++)
|
|
3429
|
+
y[_ - 1] = arguments[_];
|
|
3430
|
+
D("error", u, y);
|
|
3426
3431
|
}
|
|
3427
3432
|
}
|
|
3428
|
-
function
|
|
3433
|
+
function D(u, d, y) {
|
|
3429
3434
|
{
|
|
3430
3435
|
var _ = g.ReactDebugCurrentFrame, A = _.getStackAddendum();
|
|
3431
|
-
A !== "" && (d += "%s",
|
|
3432
|
-
var I =
|
|
3436
|
+
A !== "" && (d += "%s", y = y.concat([A]));
|
|
3437
|
+
var I = y.map(function(O) {
|
|
3433
3438
|
return String(O);
|
|
3434
3439
|
});
|
|
3435
3440
|
I.unshift("Warning: " + d), Function.prototype.apply.call(console[u], console, I);
|
|
3436
3441
|
}
|
|
3437
3442
|
}
|
|
3438
|
-
var
|
|
3443
|
+
var m = !1, V = !1, U = !1, L = !1, E = !1, j;
|
|
3439
3444
|
j = Symbol.for("react.module.reference");
|
|
3440
|
-
function
|
|
3441
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === h ||
|
|
3445
|
+
function k(u) {
|
|
3446
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === h || L || u === v || m || V || U || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === l || u.$$typeof === o || u.$$typeof === c || u.$$typeof === f || u.$$typeof === j || u.getModuleId !== void 0));
|
|
3442
3447
|
}
|
|
3443
|
-
function X(u, d,
|
|
3448
|
+
function X(u, d, y) {
|
|
3444
3449
|
var _ = u.displayName;
|
|
3445
3450
|
if (_)
|
|
3446
3451
|
return _;
|
|
3447
3452
|
var A = d.displayName || d.name || "";
|
|
3448
|
-
return A !== "" ?
|
|
3453
|
+
return A !== "" ? y + "(" + A + ")" : y;
|
|
3449
3454
|
}
|
|
3450
3455
|
function ne(u) {
|
|
3451
3456
|
return u.displayName || "Context";
|
|
@@ -3477,8 +3482,8 @@ function ba() {
|
|
|
3477
3482
|
var d = u;
|
|
3478
3483
|
return ne(d) + ".Consumer";
|
|
3479
3484
|
case o:
|
|
3480
|
-
var
|
|
3481
|
-
return ne(
|
|
3485
|
+
var y = u;
|
|
3486
|
+
return ne(y._context) + ".Provider";
|
|
3482
3487
|
case f:
|
|
3483
3488
|
return X(u, u.render, "ForwardRef");
|
|
3484
3489
|
case l:
|
|
@@ -3495,14 +3500,14 @@ function ba() {
|
|
|
3495
3500
|
}
|
|
3496
3501
|
return null;
|
|
3497
3502
|
}
|
|
3498
|
-
var $ = Object.assign, _e = 0, be, Ze, we, et,
|
|
3503
|
+
var $ = Object.assign, _e = 0, be, Ze, we, et, yt, Ee, Re;
|
|
3499
3504
|
function Ne() {
|
|
3500
3505
|
}
|
|
3501
3506
|
Ne.__reactDisabledLog = !0;
|
|
3502
|
-
function
|
|
3507
|
+
function mt() {
|
|
3503
3508
|
{
|
|
3504
3509
|
if (_e === 0) {
|
|
3505
|
-
be = console.log, Ze = console.info, we = console.warn, et = console.error,
|
|
3510
|
+
be = console.log, Ze = console.info, we = console.warn, et = console.error, yt = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
|
|
3506
3511
|
var u = {
|
|
3507
3512
|
configurable: !0,
|
|
3508
3513
|
enumerable: !0,
|
|
@@ -3544,7 +3549,7 @@ function ba() {
|
|
|
3544
3549
|
value: et
|
|
3545
3550
|
}),
|
|
3546
3551
|
group: $({}, u, {
|
|
3547
|
-
value:
|
|
3552
|
+
value: yt
|
|
3548
3553
|
}),
|
|
3549
3554
|
groupCollapsed: $({}, u, {
|
|
3550
3555
|
value: Ee
|
|
@@ -3558,7 +3563,7 @@ function ba() {
|
|
|
3558
3563
|
}
|
|
3559
3564
|
}
|
|
3560
3565
|
var je = g.ReactCurrentDispatcher, $e;
|
|
3561
|
-
function Me(u, d,
|
|
3566
|
+
function Me(u, d, y) {
|
|
3562
3567
|
{
|
|
3563
3568
|
if ($e === void 0)
|
|
3564
3569
|
try {
|
|
@@ -3580,16 +3585,16 @@ function ba() {
|
|
|
3580
3585
|
if (!u || tt)
|
|
3581
3586
|
return "";
|
|
3582
3587
|
{
|
|
3583
|
-
var
|
|
3584
|
-
if (
|
|
3585
|
-
return
|
|
3588
|
+
var y = pe.get(u);
|
|
3589
|
+
if (y !== void 0)
|
|
3590
|
+
return y;
|
|
3586
3591
|
}
|
|
3587
3592
|
var _;
|
|
3588
3593
|
tt = !0;
|
|
3589
3594
|
var A = Error.prepareStackTrace;
|
|
3590
3595
|
Error.prepareStackTrace = void 0;
|
|
3591
3596
|
var I;
|
|
3592
|
-
I = je.current, je.current = null,
|
|
3597
|
+
I = je.current, je.current = null, mt();
|
|
3593
3598
|
try {
|
|
3594
3599
|
if (d) {
|
|
3595
3600
|
var O = function() {
|
|
@@ -3647,14 +3652,14 @@ function ba() {
|
|
|
3647
3652
|
var Je = u ? u.displayName || u.name : "", zn = Je ? Me(Je) : "";
|
|
3648
3653
|
return typeof u == "function" && pe.set(u, zn), zn;
|
|
3649
3654
|
}
|
|
3650
|
-
function
|
|
3655
|
+
function B(u, d, y) {
|
|
3651
3656
|
return N(u, !1);
|
|
3652
3657
|
}
|
|
3653
3658
|
function G(u) {
|
|
3654
3659
|
var d = u.prototype;
|
|
3655
3660
|
return !!(d && d.isReactComponent);
|
|
3656
3661
|
}
|
|
3657
|
-
function q(u, d,
|
|
3662
|
+
function q(u, d, y) {
|
|
3658
3663
|
if (u == null)
|
|
3659
3664
|
return "";
|
|
3660
3665
|
if (typeof u == "function")
|
|
@@ -3670,13 +3675,13 @@ function ba() {
|
|
|
3670
3675
|
if (typeof u == "object")
|
|
3671
3676
|
switch (u.$$typeof) {
|
|
3672
3677
|
case f:
|
|
3673
|
-
return
|
|
3678
|
+
return B(u.render);
|
|
3674
3679
|
case l:
|
|
3675
|
-
return q(u.type, d,
|
|
3680
|
+
return q(u.type, d, y);
|
|
3676
3681
|
case p: {
|
|
3677
3682
|
var _ = u, A = _._payload, I = _._init;
|
|
3678
3683
|
try {
|
|
3679
|
-
return q(I(A), d,
|
|
3684
|
+
return q(I(A), d, y);
|
|
3680
3685
|
} catch {
|
|
3681
3686
|
}
|
|
3682
3687
|
}
|
|
@@ -3686,12 +3691,12 @@ function ba() {
|
|
|
3686
3691
|
var re = Object.prototype.hasOwnProperty, Se = {}, H = g.ReactDebugCurrentFrame;
|
|
3687
3692
|
function Y(u) {
|
|
3688
3693
|
if (u) {
|
|
3689
|
-
var d = u._owner,
|
|
3690
|
-
H.setExtraStackFrame(
|
|
3694
|
+
var d = u._owner, y = q(u.type, u._source, d ? d.type : null);
|
|
3695
|
+
H.setExtraStackFrame(y);
|
|
3691
3696
|
} else
|
|
3692
3697
|
H.setExtraStackFrame(null);
|
|
3693
3698
|
}
|
|
3694
|
-
function he(u, d,
|
|
3699
|
+
function he(u, d, y, _, A) {
|
|
3695
3700
|
{
|
|
3696
3701
|
var I = Function.call.bind(re);
|
|
3697
3702
|
for (var O in u)
|
|
@@ -3699,14 +3704,14 @@ function ba() {
|
|
|
3699
3704
|
var R = void 0;
|
|
3700
3705
|
try {
|
|
3701
3706
|
if (typeof u[O] != "function") {
|
|
3702
|
-
var se = Error((_ || "React class") + ": " +
|
|
3707
|
+
var se = Error((_ || "React class") + ": " + y + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
3703
3708
|
throw se.name = "Invariant Violation", se;
|
|
3704
3709
|
}
|
|
3705
|
-
R = u[O](d, O, _,
|
|
3710
|
+
R = u[O](d, O, _, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
3706
3711
|
} catch (W) {
|
|
3707
3712
|
R = W;
|
|
3708
3713
|
}
|
|
3709
|
-
R && !(R instanceof Error) && (Y(A), T("%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).", _ || "React class",
|
|
3714
|
+
R && !(R instanceof Error) && (Y(A), T("%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).", _ || "React class", y, O, typeof R), Y(null)), R instanceof Error && !(R.message in Se) && (Se[R.message] = !0, Y(A), T("Failed %s type: %s", y, R.message), Y(null));
|
|
3710
3715
|
}
|
|
3711
3716
|
}
|
|
3712
3717
|
}
|
|
@@ -3716,8 +3721,8 @@ function ba() {
|
|
|
3716
3721
|
}
|
|
3717
3722
|
function bt(u) {
|
|
3718
3723
|
{
|
|
3719
|
-
var d = typeof Symbol == "function" && Symbol.toStringTag,
|
|
3720
|
-
return
|
|
3724
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
3725
|
+
return y;
|
|
3721
3726
|
}
|
|
3722
3727
|
}
|
|
3723
3728
|
function ie(u) {
|
|
@@ -3757,40 +3762,40 @@ function ba() {
|
|
|
3757
3762
|
}
|
|
3758
3763
|
return u.key !== void 0;
|
|
3759
3764
|
}
|
|
3760
|
-
function
|
|
3765
|
+
function Ls(u, d) {
|
|
3761
3766
|
if (typeof u.ref == "string" && Pe.current && d && Pe.current.stateNode !== d) {
|
|
3762
|
-
var
|
|
3763
|
-
$t[
|
|
3767
|
+
var y = Z(Pe.current.type);
|
|
3768
|
+
$t[y] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(Pe.current.type), u.ref), $t[y] = !0);
|
|
3764
3769
|
}
|
|
3765
3770
|
}
|
|
3766
|
-
function
|
|
3771
|
+
function Ds(u, d) {
|
|
3767
3772
|
{
|
|
3768
|
-
var
|
|
3773
|
+
var y = function() {
|
|
3769
3774
|
Vn || (Vn = !0, T("%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)", d));
|
|
3770
3775
|
};
|
|
3771
|
-
|
|
3772
|
-
get:
|
|
3776
|
+
y.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
3777
|
+
get: y,
|
|
3773
3778
|
configurable: !0
|
|
3774
3779
|
});
|
|
3775
3780
|
}
|
|
3776
3781
|
}
|
|
3777
|
-
function
|
|
3782
|
+
function ks(u, d) {
|
|
3778
3783
|
{
|
|
3779
|
-
var
|
|
3784
|
+
var y = function() {
|
|
3780
3785
|
jn || (jn = !0, T("%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)", d));
|
|
3781
3786
|
};
|
|
3782
|
-
|
|
3783
|
-
get:
|
|
3787
|
+
y.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
3788
|
+
get: y,
|
|
3784
3789
|
configurable: !0
|
|
3785
3790
|
});
|
|
3786
3791
|
}
|
|
3787
3792
|
}
|
|
3788
|
-
var Ns = function(u, d,
|
|
3793
|
+
var Ns = function(u, d, y, _, A, I, O) {
|
|
3789
3794
|
var R = {
|
|
3790
3795
|
$$typeof: e,
|
|
3791
3796
|
type: u,
|
|
3792
3797
|
key: d,
|
|
3793
|
-
ref:
|
|
3798
|
+
ref: y,
|
|
3794
3799
|
props: O,
|
|
3795
3800
|
_owner: I
|
|
3796
3801
|
};
|
|
@@ -3811,10 +3816,10 @@ function ba() {
|
|
|
3811
3816
|
value: A
|
|
3812
3817
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
3813
3818
|
};
|
|
3814
|
-
function Ps(u, d,
|
|
3819
|
+
function Ps(u, d, y, _, A) {
|
|
3815
3820
|
{
|
|
3816
3821
|
var I, O = {}, R = null, se = null;
|
|
3817
|
-
|
|
3822
|
+
y !== void 0 && (He(y), R = "" + y), As(d) && (He(d.key), R = "" + d.key), Cs(d) && (se = d.ref, Ls(d, A));
|
|
3818
3823
|
for (I in d)
|
|
3819
3824
|
re.call(d, I) && !nt.hasOwnProperty(I) && (O[I] = d[I]);
|
|
3820
3825
|
if (u && u.defaultProps) {
|
|
@@ -3824,7 +3829,7 @@ function ba() {
|
|
|
3824
3829
|
}
|
|
3825
3830
|
if (R || se) {
|
|
3826
3831
|
var J = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
3827
|
-
R &&
|
|
3832
|
+
R && Ds(O, J), se && ks(O, J);
|
|
3828
3833
|
}
|
|
3829
3834
|
return Ns(u, R, se, A, _, Pe.current, O);
|
|
3830
3835
|
}
|
|
@@ -3832,8 +3837,8 @@ function ba() {
|
|
|
3832
3837
|
var Mt = g.ReactCurrentOwner, $n = g.ReactDebugCurrentFrame;
|
|
3833
3838
|
function Ye(u) {
|
|
3834
3839
|
if (u) {
|
|
3835
|
-
var d = u._owner,
|
|
3836
|
-
$n.setExtraStackFrame(
|
|
3840
|
+
var d = u._owner, y = q(u.type, u._source, d ? d.type : null);
|
|
3841
|
+
$n.setExtraStackFrame(y);
|
|
3837
3842
|
} else
|
|
3838
3843
|
$n.setExtraStackFrame(null);
|
|
3839
3844
|
}
|
|
@@ -3854,26 +3859,26 @@ Check the render method of \`` + u + "`.";
|
|
|
3854
3859
|
return "";
|
|
3855
3860
|
}
|
|
3856
3861
|
}
|
|
3857
|
-
function
|
|
3862
|
+
function Fs(u) {
|
|
3858
3863
|
{
|
|
3859
3864
|
if (u !== void 0) {
|
|
3860
|
-
var d = u.fileName.replace(/^.*[\\\/]/, ""),
|
|
3865
|
+
var d = u.fileName.replace(/^.*[\\\/]/, ""), y = u.lineNumber;
|
|
3861
3866
|
return `
|
|
3862
3867
|
|
|
3863
|
-
Check your code at ` + d + ":" +
|
|
3868
|
+
Check your code at ` + d + ":" + y + ".";
|
|
3864
3869
|
}
|
|
3865
3870
|
return "";
|
|
3866
3871
|
}
|
|
3867
3872
|
}
|
|
3868
3873
|
var Wn = {};
|
|
3869
|
-
function
|
|
3874
|
+
function Bs(u) {
|
|
3870
3875
|
{
|
|
3871
3876
|
var d = Mn();
|
|
3872
3877
|
if (!d) {
|
|
3873
|
-
var
|
|
3874
|
-
|
|
3878
|
+
var y = typeof u == "string" ? u : u.displayName || u.name;
|
|
3879
|
+
y && (d = `
|
|
3875
3880
|
|
|
3876
|
-
Check the top-level render call using <` +
|
|
3881
|
+
Check the top-level render call using <` + y + ">.");
|
|
3877
3882
|
}
|
|
3878
3883
|
return d;
|
|
3879
3884
|
}
|
|
@@ -3883,12 +3888,12 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3883
3888
|
if (!u._store || u._store.validated || u.key != null)
|
|
3884
3889
|
return;
|
|
3885
3890
|
u._store.validated = !0;
|
|
3886
|
-
var
|
|
3887
|
-
if (Wn[
|
|
3891
|
+
var y = Bs(d);
|
|
3892
|
+
if (Wn[y])
|
|
3888
3893
|
return;
|
|
3889
|
-
Wn[
|
|
3894
|
+
Wn[y] = !0;
|
|
3890
3895
|
var _ = "";
|
|
3891
|
-
u && u._owner && u._owner !== Mt.current && (_ = " It was passed a child from " + Z(u._owner.type) + "."), Ye(u), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
3896
|
+
u && u._owner && u._owner !== Mt.current && (_ = " It was passed a child from " + Z(u._owner.type) + "."), Ye(u), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, _), Ye(null);
|
|
3892
3897
|
}
|
|
3893
3898
|
}
|
|
3894
3899
|
function Yn(u, d) {
|
|
@@ -3896,8 +3901,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3896
3901
|
if (typeof u != "object")
|
|
3897
3902
|
return;
|
|
3898
3903
|
if (We(u))
|
|
3899
|
-
for (var
|
|
3900
|
-
var _ = u[
|
|
3904
|
+
for (var y = 0; y < u.length; y++) {
|
|
3905
|
+
var _ = u[y];
|
|
3901
3906
|
Ht(_) && Hn(_, d);
|
|
3902
3907
|
}
|
|
3903
3908
|
else if (Ht(u))
|
|
@@ -3915,16 +3920,16 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3915
3920
|
var d = u.type;
|
|
3916
3921
|
if (d == null || typeof d == "string")
|
|
3917
3922
|
return;
|
|
3918
|
-
var
|
|
3923
|
+
var y;
|
|
3919
3924
|
if (typeof d == "function")
|
|
3920
|
-
|
|
3925
|
+
y = d.propTypes;
|
|
3921
3926
|
else if (typeof d == "object" && (d.$$typeof === f || d.$$typeof === l))
|
|
3922
|
-
|
|
3927
|
+
y = d.propTypes;
|
|
3923
3928
|
else
|
|
3924
3929
|
return;
|
|
3925
|
-
if (
|
|
3930
|
+
if (y) {
|
|
3926
3931
|
var _ = Z(d);
|
|
3927
|
-
he(
|
|
3932
|
+
he(y, u.props, "prop", _, u);
|
|
3928
3933
|
} else if (d.PropTypes !== void 0 && !Wt) {
|
|
3929
3934
|
Wt = !0;
|
|
3930
3935
|
var A = Z(d);
|
|
@@ -3935,8 +3940,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3935
3940
|
}
|
|
3936
3941
|
function Us(u) {
|
|
3937
3942
|
{
|
|
3938
|
-
for (var d = Object.keys(u.props),
|
|
3939
|
-
var _ = d[
|
|
3943
|
+
for (var d = Object.keys(u.props), y = 0; y < d.length; y++) {
|
|
3944
|
+
var _ = d[y];
|
|
3940
3945
|
if (_ !== "children" && _ !== "key") {
|
|
3941
3946
|
Ye(u), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Ye(null);
|
|
3942
3947
|
break;
|
|
@@ -3945,18 +3950,18 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3945
3950
|
u.ref !== null && (Ye(u), T("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
|
|
3946
3951
|
}
|
|
3947
3952
|
}
|
|
3948
|
-
function Jn(u, d,
|
|
3953
|
+
function Jn(u, d, y, _, A, I) {
|
|
3949
3954
|
{
|
|
3950
|
-
var O =
|
|
3955
|
+
var O = k(u);
|
|
3951
3956
|
if (!O) {
|
|
3952
3957
|
var R = "";
|
|
3953
3958
|
(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.");
|
|
3954
|
-
var se =
|
|
3959
|
+
var se = Fs(A);
|
|
3955
3960
|
se ? R += se : R += Mn();
|
|
3956
3961
|
var W;
|
|
3957
3962
|
u === null ? W = "null" : We(u) ? W = "array" : u !== void 0 && u.$$typeof === e ? (W = "<" + (Z(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : W = typeof u, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, R);
|
|
3958
3963
|
}
|
|
3959
|
-
var J = Ps(u, d,
|
|
3964
|
+
var J = Ps(u, d, y, A, I);
|
|
3960
3965
|
if (J == null)
|
|
3961
3966
|
return J;
|
|
3962
3967
|
if (O) {
|
|
@@ -3975,11 +3980,11 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3975
3980
|
return u === r ? Us(J) : Is(J), J;
|
|
3976
3981
|
}
|
|
3977
3982
|
}
|
|
3978
|
-
function qs(u, d,
|
|
3979
|
-
return Jn(u, d,
|
|
3983
|
+
function qs(u, d, y) {
|
|
3984
|
+
return Jn(u, d, y, !0);
|
|
3980
3985
|
}
|
|
3981
|
-
function Vs(u, d,
|
|
3982
|
-
return Jn(u, d,
|
|
3986
|
+
function Vs(u, d, y) {
|
|
3987
|
+
return Jn(u, d, y, !1);
|
|
3983
3988
|
}
|
|
3984
3989
|
var js = Vs, $s = qs;
|
|
3985
3990
|
at.Fragment = r, at.jsx = js, at.jsxs = $s;
|
|
@@ -3992,24 +3997,27 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
3992
3997
|
url: n = "",
|
|
3993
3998
|
tokenParams: e,
|
|
3994
3999
|
socketPort: t,
|
|
3995
|
-
|
|
4000
|
+
enableSocket: r = !0,
|
|
4001
|
+
children: s
|
|
3996
4002
|
}) => {
|
|
3997
|
-
const
|
|
3998
|
-
const
|
|
4003
|
+
const i = qr(() => {
|
|
4004
|
+
const o = new Xi.FrappeApp(n, e);
|
|
3999
4005
|
return {
|
|
4000
4006
|
url: n,
|
|
4001
4007
|
tokenParams: e,
|
|
4002
|
-
app:
|
|
4003
|
-
auth:
|
|
4004
|
-
db:
|
|
4005
|
-
call:
|
|
4006
|
-
file:
|
|
4007
|
-
socket: new ga(n, t).socket
|
|
4008
|
+
app: o,
|
|
4009
|
+
auth: o.auth(),
|
|
4010
|
+
db: o.db(),
|
|
4011
|
+
call: o.call(),
|
|
4012
|
+
file: o.file(),
|
|
4013
|
+
socket: r ? new ga(n, t, e).socket : void 0,
|
|
4014
|
+
enableSocket: r,
|
|
4015
|
+
socketPort: t
|
|
4008
4016
|
};
|
|
4009
|
-
}, [n, e, t]);
|
|
4017
|
+
}, [n, e, t, r]);
|
|
4010
4018
|
return /* @__PURE__ */ wa(te.Provider, {
|
|
4011
|
-
value:
|
|
4012
|
-
children:
|
|
4019
|
+
value: i,
|
|
4020
|
+
children: s
|
|
4013
4021
|
});
|
|
4014
4022
|
}, Ca = (n) => {
|
|
4015
4023
|
const {
|
|
@@ -4075,7 +4083,7 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
4075
4083
|
e += "order_by=" + i + "&";
|
|
4076
4084
|
}
|
|
4077
4085
|
return n != null && n.asDict && (e += "as_dict=" + n.asDict), e;
|
|
4078
|
-
},
|
|
4086
|
+
}, La = (n, e, t, r) => {
|
|
4079
4087
|
const {
|
|
4080
4088
|
url: s,
|
|
4081
4089
|
db: i
|
|
@@ -4083,7 +4091,7 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
4083
4091
|
return {
|
|
4084
4092
|
...vt(t === void 0 ? `${Os(n, s)}?${Ea(e)}` : t, () => i.getDocList(n, e), r)
|
|
4085
4093
|
};
|
|
4086
|
-
},
|
|
4094
|
+
}, Da = () => {
|
|
4087
4095
|
const {
|
|
4088
4096
|
db: n
|
|
4089
4097
|
} = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
|
|
@@ -4098,7 +4106,7 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
4098
4106
|
isCompleted: i,
|
|
4099
4107
|
reset: c
|
|
4100
4108
|
};
|
|
4101
|
-
},
|
|
4109
|
+
}, ka = () => {
|
|
4102
4110
|
const {
|
|
4103
4111
|
db: n
|
|
4104
4112
|
} = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
|
|
@@ -4162,7 +4170,7 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4162
4170
|
return {
|
|
4163
4171
|
...vt(t === void 0 ? o : t, () => s.get(n, e), r)
|
|
4164
4172
|
};
|
|
4165
|
-
},
|
|
4173
|
+
}, Fa = (n) => {
|
|
4166
4174
|
const {
|
|
4167
4175
|
call: e
|
|
4168
4176
|
} = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [f, a] = P(!1), h = M(() => {
|
|
@@ -4178,7 +4186,7 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4178
4186
|
reset: h,
|
|
4179
4187
|
isCompleted: f
|
|
4180
4188
|
};
|
|
4181
|
-
},
|
|
4189
|
+
}, Ba = (n) => {
|
|
4182
4190
|
const {
|
|
4183
4191
|
call: e
|
|
4184
4192
|
} = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [f, a] = P(!1), h = M(() => {
|
|
@@ -4244,31 +4252,32 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4244
4252
|
clearTimeout(s);
|
|
4245
4253
|
};
|
|
4246
4254
|
}, [n, e]), t;
|
|
4247
|
-
},
|
|
4255
|
+
}, Ln = (n, e) => {
|
|
4248
4256
|
const {
|
|
4249
4257
|
socket: t
|
|
4250
4258
|
} = ee(te);
|
|
4251
4259
|
Xe(() => {
|
|
4252
|
-
|
|
4260
|
+
t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider.");
|
|
4261
|
+
let r = t == null ? void 0 : t.on(n, e);
|
|
4253
4262
|
return () => {
|
|
4254
|
-
r.off(n);
|
|
4263
|
+
r == null || r.off(n);
|
|
4255
4264
|
};
|
|
4256
4265
|
}, [n, e]);
|
|
4257
4266
|
}, Va = (n, e, t, r = !0) => {
|
|
4258
4267
|
const {
|
|
4259
4268
|
socket: s
|
|
4260
4269
|
} = ee(te), [i, o] = P([]);
|
|
4261
|
-
Xe(() => (s.emit("doc_subscribe", n, e), r && s.emit("doc_open", n, e), () => {
|
|
4262
|
-
s.emit("doc_unsubscribe", n, e), r && s.emit("doc_close", n, e);
|
|
4263
|
-
}), [n, e, r]),
|
|
4270
|
+
Xe(() => (s === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), s == null || s.emit("doc_subscribe", n, e), r && (s == null || s.emit("doc_open", n, e)), () => {
|
|
4271
|
+
s == null || s.emit("doc_unsubscribe", n, e), r && (s == null || s.emit("doc_close", n, e));
|
|
4272
|
+
}), [n, e, r]), Ln("doc_update", t);
|
|
4264
4273
|
const c = M(() => {
|
|
4265
|
-
s.emit("doc_open", n, e);
|
|
4274
|
+
s == null || s.emit("doc_open", n, e);
|
|
4266
4275
|
}, [n, e]), f = M(() => {
|
|
4267
|
-
s.emit("doc_close", n, e);
|
|
4276
|
+
s == null || s.emit("doc_close", n, e);
|
|
4268
4277
|
}, [n, e]), a = M((h) => {
|
|
4269
4278
|
h.doctype === n && h.docname === e && o(h.users);
|
|
4270
4279
|
}, [n, e]);
|
|
4271
|
-
return
|
|
4280
|
+
return Ln("doc_viewers", a), {
|
|
4272
4281
|
viewers: i,
|
|
4273
4282
|
emitDocOpen: c,
|
|
4274
4283
|
emitDocClose: f
|
|
@@ -4277,9 +4286,9 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4277
4286
|
const {
|
|
4278
4287
|
socket: t
|
|
4279
4288
|
} = ee(te);
|
|
4280
|
-
Xe(() => (t.emit("doctype_subscribe", n), () => {
|
|
4281
|
-
t.emit("doctype_unsubscribe", n);
|
|
4282
|
-
}), [n]),
|
|
4289
|
+
Xe(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), () => {
|
|
4290
|
+
t == null || t.emit("doctype_unsubscribe", n);
|
|
4291
|
+
}), [n]), Ln("list_update", e);
|
|
4283
4292
|
};
|
|
4284
4293
|
export {
|
|
4285
4294
|
te as FrappeContext,
|
|
@@ -4287,19 +4296,19 @@ export {
|
|
|
4287
4296
|
Ea as getDocListQueryString,
|
|
4288
4297
|
Os as getRequestURL,
|
|
4289
4298
|
Ca as useFrappeAuth,
|
|
4290
|
-
|
|
4299
|
+
Da as useFrappeCreateDoc,
|
|
4291
4300
|
Ia as useFrappeDeleteCall,
|
|
4292
4301
|
Na as useFrappeDeleteDoc,
|
|
4293
4302
|
ja as useFrappeDocTypeEventListener,
|
|
4294
4303
|
Va as useFrappeDocumentEventListener,
|
|
4295
|
-
|
|
4304
|
+
Ln as useFrappeEventListener,
|
|
4296
4305
|
Ua as useFrappeFileUpload,
|
|
4297
4306
|
Ra as useFrappeGetCall,
|
|
4298
4307
|
Aa as useFrappeGetDoc,
|
|
4299
4308
|
Pa as useFrappeGetDocCount,
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4309
|
+
La as useFrappeGetDocList,
|
|
4310
|
+
Fa as useFrappePostCall,
|
|
4311
|
+
Ba as useFrappePutCall,
|
|
4312
|
+
ka as useFrappeUpdateDoc,
|
|
4304
4313
|
qa as useSearch
|
|
4305
4314
|
};
|